* lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of
[official-gcc.git] / gcc / ChangeLog
blob96fe2ecee59ab719a0df32faaf8f74686157f2da
1 2012-12-08  Eric Botcazou  <ebotcazou@adacore.com>
3         * lto-streamer-out.c (lto_write_tree): Do not reset the DECL_INITIAL of
4         variables in the global contant pool.
6 2012-12-08  Steven Bosscher  <steven@gcc.gnu.org>
8         PR rtl-optimization/55158
9         * sched-rgn.c (bb_state_array, bb_state): Add some explaining
10         comment, and initialize to NULL explicitly.
11         (realloc_bb_state_array): New function.
12         (free_bb_state_array): New function.
13         (schedule_region): Call realloc_bb_state_array after schedule_block.
14         (sched_rgn_init): Use realloc_bb_state_array to initialize bb_state.
15         (sched_rgn_finish): Use free_bb_state_array to free it.
17 2012-12-08  Eric Botcazou  <ebotcazou@adacore.com>
19         * tree-ssa-loop-im.c (for_each_index) <CONST_DECL>: New case.
21 2012-12-07  Steven Bosscher  <steven@gcc.gnu.org>
23         * ree.c (struct ext_cand): Remove GTY markers.
25 2012-12-07  Vladimir Makarov  <vmakarov@redhat.com>
27         testsuite/gcc.target/i386/pr55141.c
28         * lra-constraints.c (lra_constraints): Use biggest mode for
29         df_set_regs_ever_live.
31 2012-12-07  Jan Hubicka  <jh@suse.cz>
33         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add UPPER_BOUND
34         parameter.
35         (try_unroll_loop_completely) Update.
37 2012-12-07  Jakub Jelinek  <jakub@redhat.com>
39         PR fortran/55395
40         * varpool.c (varpool_remove_node): Don't drop DECL_INITIAL
41         for -g for any kind of debug info.
43 2012-12-07  Richard Biener  <rguenther@suse.de>
45         PR tree-optimization/54886
46         * graphite-sese-to-poly.c (build_loop_iteration_domains): Properly
47         free all memory.
49 2012-12-07  Martin Jambor  <mjambor@suse.cz>
51         PR middle-end/55078
52         * ipa-inline-transform.c (inline_call): Turn #if 0 to #ifdef
53         ENABLE_CHECKING.
54         * ipa-prop.c (try_make_edge_direct_simple_call): Use
55         ipa_value_from_jfunc.
56         (try_make_edge_direct_virtual_call): Likewise.
57         (update_indirect_edges_after_inlining): Lookup new_root_info and pass
58         it to the functions above.
60 2012-12-07  Martin Jambor  <mjambor@suse.cz>
62         PR tree-optimization/55590
63         * tree-sra.c (build_ref_for_offset): Use get_object_alignment_1 to
64         get base alignment.
66 2012-12-06  Uros Bizjak  <ubizjak@gmail.com>
67             H.J. Lu  <hongjiu.lu@intel.com>
69         PR target/55597
70         * config/i386/i386.c (legitimize_tls_address): Zero-extend x to Pmode,
71         before using it as insn or call equivalent.
73 2012-12-06  Peter Bergner  <bergner@vnet.ibm.com>
75         * config/rs6000/sysv4.h (TARGET_ASAN_SHADOW_OFFSET): Define.
76         * config/rs6000/rs6000.c (rs6000_asan_shadow_offset): New function.
77         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Disable if using ASAN.
79 2012-12-06  Jakub Jelinek  <jakub@redhat.com>
81         PR fortran/55395
82         * varpool.c (varpool_remove_node): Don't drop DECL_INITIAL
83         if -g and emitting DWARF2+.
85 2012-12-06  Pat Haugen <pthaugen@us.ibm.com>
87         * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
88         default loop peeling limits.
90 2012-12-06  Jason Merrill  <jason@redhat.com>
92         PR c++/55032
93         PR c++/55245
94         * tree.c (build_array_type_1): Re-layout if we found it in the
95         hash table.
97 2012-12-06  Jack Howarth  <howarth@bromo.med.uc.edu>
99         PR 55599/sanitizer
100         * config/darwin.h (LINK_COMMAND_SPEC_A): Remove static libasan support.
102 2012-12-06  Jakub Jelinek  <jakub@redhat.com>
104         PR middle-end/43631
105         * var-tracking.c (emit_note_insn_var_location, emit_notes_in_bb):
106         Clear BLOCK_FOR_INSN on notes emitted in between basic blocks,
107         don't adjust BB_END when inserting note after BB_END of some bb.
109         PR c++/55137
110         * fold-const.c (fold_binary_loc) <associate>: Don't introduce
111         TREE_OVERFLOW through reassociation.  If type doesn't have defined
112         overflow, but one or both of the operands do, use the wrapping type
113         for reassociation and only convert to type at the end.
115 2012-12-06  Richard Biener  <rguenther@suse.de>
117         * gimple-fold.c (fold_stmt_1): Remove code handling folding stmts away.
119 2012-12-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
121         * doc/sourcebuild.texi: Document arm_v8_neon_ok.
123 2012-12-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
125         * config/arm/arm.c (neon_itype): Define NEON_RINT enum element.
126         (neon_builtin_data): Register vrintn, vrinta, vrintp, vrintm,
127         vrintz, vrintx neon builtins.
128         (arm_init_neon_builtins): Handle NEON_RINT.
129         (arm_expand_neon_builtin): Likewise.
130         * config/arm/unspecs.md: New file.
131         * config/arm/arm.md ("unspec"): Move to unspecs.md.
132         * config/arm/iterators.md (NEON_VRINT): New int iterator.
133         (nvrint_variant): New int attribute.
134         * config/arm/neon.md
135         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): New pattern.
136         ("unspec"): Move to unspecs.md.
137         * config/arm/iwmmxt2.md ("unspec"): Move to unspecs.md.
139 2012-12-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
141         * config/pa/pa.md: Use "const_int 0" instead of match_test to simplify
142         opaque cond in all call insns.
144 2012-12-05  Steven Bosscher  <steven@gcc.gnu.org>
146         PR rtl-optimization/55604
147         * lra-lives.c (lra_create_live_ranges): If there are no referenced
148         pseudos left, do not compute live ranges.
150 2012-12-05  Steven Bosscher  <steven@gcc.gnu.org>
152         * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Update documentation.
153         * doc/tm.texi: Regenerate.
154         * regs.h (REG_LIVE_LENGTH): Update comments to not refer to no longer
155         existing files global.c and local-alloc.c.
156         * regmove.c (copy_src_to_dest): Likewise.
157         * function.h (struct rtl_data): Likewise.
158         * ira-color.c (allocno_priority_compare_func): Likewise.
159         * regstat.c (regstat_compute_ri): Likewise.
160         * config/epiphany/epiphany.h, config/vax/vax.h, config/cris/cris.h,
161         config/h8300/h8300.h, config/alpha/alpha.h, config/sparc/sparc.h,
162         config/rs6000/rs6000.h, config/pdp11/pdp11.h, config/pa/pa.h,
163         config/v850/v850.h, config/mn10300/mn10300.h, config/m32r/m32r.h,
164         config/i386/i386.h, config/mcore/mcore.h, config/sh/sh.h,
165         config/arm/arm.h (REGNO_OK_FOR_BASE_P): Likewise.
167 2012-12-05  Aldy Hernandez  <aldyh@redhat.com>
169         PR target/54160
170         * config/t-darwin (darwin-c.o): Depend on $(CPP_INTERNAL_H).
171         * config/darwin-c.c (darwin_cpp_builtins): Only set __OBJC2__ when
172         in obj mode.
173         Include libcpp/internal.h.
175 2012-12-05  Michael Eager  <eager@eagercon.com>
177         PR rtl-optimization/54739
178         * config/microblaze/microblaze.md: (anddi3, iordi3, xordi3): Delete
179         patterns.
181 2012-12-05  James Greenhalgh  <james.greenhalgh@arm.com>
183         * config/aarch64/aarch64-simd-builtins.def: Add new builtins.
184         * config/aarch64/aarch64-simd.md (simd_type): Add uzp.
185         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): New.
186         * config/aarch64/aarch64.c (aarch64_evpc_trn): New.
187         (aarch64_evpc_uzp): Likewise.
188         (aarch64_evpc_zip): Likewise.
189         (aarch64_expand_vec_perm_const_1): Check for trn, zip, uzp patterns.
190         * config/aarch64/iterators.md (unspec): Add neccessary unspecs.
191         (PERMUTE): New.
192         (perm_insn): Likewise.
193         (perm_hilo): Likewise.
195 2012-12-05  James Greenhalgh  <james.greenhalgh@arm.com>
197         * config/aarch64/aarch64-protos.h
198         (aarch64_split_combinev16qi): New.
199         (aarch64_expand_vec_perm): Likewise.
200         (aarch64_expand_vec_perm_const): Likewise.
201         * config/aarch64/aarch64-simd.md (vec_perm_const<mode>): New.
202         (vec_perm<mode>): Likewise.
203         (aarch64_tbl1<mode>): Likewise.
204         (aarch64_tbl2v16qi): Likewise.
205         (aarch64_combinev16qi): New.
206         * config/aarch64/aarch64.c
207         (aarch64_vectorize_vec_perm_const_ok): New.
208         (aarch64_split_combinev16qi): Likewise.
209         (MAX_VECT_LEN): Define.
210         (expand_vec_perm_d): New.
211         (aarch64_expand_vec_perm_1): Likewise.
212         (aarch64_expand_vec_perm): Likewise.
213         (aarch64_evpc_tbl): Likewise.
214         (aarch64_expand_vec_perm_const_1): Likewise.
215         (aarch64_expand_vec_perm_const): Likewise.
216         (aarch64_vectorize_vec_perm_const_ok): Likewise.
217         (TARGET_VECTORIZE_VEC_PERM_CONST_OK): Likewise.
218         * config/aarch64/iterators.md
219         (unspec): Add UNSPEC_TBL, UNSPEC_CONCAT.
220         (V_cmp_result): Add mapping for V2DF.
222 2012-12-05  Yufeng Zhang  <yufeng.zhang@arm.com>
224         * config/aarch64/aarch64.c (aarch64_simd_mangle_map_entry): New
225         typedef.
226         (aarch64_simd_mangle_map): New table.
227         (aarch64_mangle_type): Locate and return the mangled name for
228         a given AdvSIMD vector type.
230 2012-12-05  Yufeng Zhang  <yufeng.zhang@arm.com>
232         * config/aarch64/aarch64.c (aarch64_mangle_type): New function.
233         (TARGET_MANGLE_TYPE): Define.
235 2012-12-05  James Greenhalgh  <james.greenhalgh@arm.com>
237         * config/aarch64/aarch64-builtins.c
238         (aarch64_builtin_vectorized_function): New.
239         * config/aarch64/aarch64-protos.h
240         (aarch64_builtin_vectorized_function): Declare.
241         * config/aarch64/aarch64-simd-builtins.def (frintz, frintp): Add.
242         (frintm, frinti, frintx, frinta, fcvtzs, fcvtzu): Likewise.
243         (fcvtas, fcvtau, fcvtps, fcvtpu, fcvtms, fcvtmu): Likewise.
244         * config/aarch64/aarch64-simd.md
245         (aarch64_frint_<frint_suffix><mode>): New.
246         (<frint_pattern><mode>2): Likewise.
247         (aarch64_fcvt<frint_suffix><su><mode>): Likewise.
248         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Likewise.
249         * config/aarch64/aarch64.c (TARGET_VECTORIZE_BUILTINS): Define.
250         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
251         * config/aarch64/aarch64.md
252         (btrunc<mode>2, ceil<mode>2, floor<mode>2)
253         (round<mode>2, rint<mode>2, nearbyint<mode>2): Consolidate as...
254         (<frint_pattern><mode>2): ...this.
255         (lceil<su_optab><mode><mode>2, lfloor<su_optab><mode><mode>2)
256         (lround<su_optab><mode><mode>2)
257         (lrint<su_optab><mode><mode>2): Consolidate as...
258         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): ... this.
259         * config/aarch64/iterators.md (fcvt_target): New.
260         (FCVT_TARGET): Likewise.
261         (FRINT): Likewise.
262         (FCVT): Likewise.
263         (frint_pattern): Likewise.
264         (frint_suffix): Likewise.
265         (fcvt_pattern): Likewise.
267 2012-12-05  Steven Bosscher  <steven@gcc.gnu.org>
269         * passes.c (pass_init_dump_file): Only open a clean graph dump file if
270         the dump was not already initialized.
272         Revert:
273         2012-12-03  Steven Bosscher  <steven@gcc.gnu.org>
274         * passes.c (finish_optimization_passes): Don't finish graph dumps here.
275         (pass_fini_dump_file): Wrap in TV_DUMP.  Finish graph dumps.
276         (execute_one_pass): Don't set up graph dumps here.
278 2012-12-05  Richard Biener  <rguenther@suse.de>
280         PR lto/55525
281         * gimple-streamer-in.c (input_gimple_stmt): Fixup ARRAY_REFs as well.
283 2012-12-04  Ian Lance Taylor  <iant@google.com>
285         * godump.c (find_dummy_types): Output a dummy type if we couldn't
286         output the real type.
288 2012-12-04  Steven Bosscher  <steven@gcc.gnu.org>
290         * rtl.h (print_insn_with_notes): Remove prototype.
291         (rtl_dump_bb_for_graph): New prototype.
292         * sched-vis.c (print_insn_with_notes): Make static again.  Fix
293         printing of notes.
294         (rtl_dump_bb_for_graph): New function.
295         * cfghooks.h (struct cfg_hooks) <dump_bb_for_graph>: New hook.
296         (dump_bb_for_graph): New prototype.
297         * cfghooks.c (dump_bb_for_graph): New function.
298         * tree-cfg.c (gimple_cfg_hooks): Register gimple_dump_bb_for_graph
299         as dump_bb_for_graph hook implementation for GIMPLE.
300         * cfgrtl.c (rtl_cfg_hooks): Likewise for rtl_dump_bb_for_graph.
301         (cfg_layout_rtl_cfg_hooks): Likewise.
302         * graph.c (draw_cfg_node): Don't include sbitmap.h, rtl.h, tree.h,
303         gimple.h, and gimple-pretty-print.h.
304         (draw_cfg_node, draw_cfg_node_succ_edges): Use the uniqe function
305         definition number instead of the function declaration UID.
306         (print_graph_cfg): Take a struct function instead of a tree.
307         Use the dump_bb_for_graph hook to dump the basic block content.
308         * graph.h (print_graph_cfg): Update prototype.
309         * passes.c (execute_function_dump): Update print_graph_cfg call.
310         * Makefile.in (graph.o): Fixup dependencies.
312 2012-12-04  Marcus Shawcroft  <marcus.shawcroft@arm.com>
314         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Set
315         TYPE_STUB_DECL.
317 2012-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
319         * config/s390/s390.c (s390_select_ccmode): Enable using CC of
320           x + imm for higher immediates on z9-109 upwards.
322 2012-12-04  Richard Earnshaw  <rearnsha@arm.com>
324         * arm.opt (cirrus-fix-invalid-insns): Delete option.
325         * invoke.texi (cirrus-fix-invalid-insns): Remove documentation.
327 2012-12-04  Jakub Jelinek  <jakub@redhat.com>
329         * tsan.c (instrument_expr): If expr_ptr isn't a gimple val, first
330         store it into a SSA_NAME.
332         PR sanitizer/55439
333         * Makefile.in (tsan.o): Depend on tree-ssa-propagate.h.
334         * sanitizer.def: Add __tsan_atomic* builtins.
335         * asan.c (initialize_sanitizer_builtins): Adjust to also
336         initialize __tsan_atomic* builtins.
337         * tsan.c: Include tree-ssa-propagate.h.
338         (enum tsan_atomic_action): New enum.
339         (tsan_atomic_table): New table.
340         (instrument_builtin_call): New function.
341         (instrument_gimple): Take pointer to gimple_stmt_iterator
342         instead of gimple_stmt_iterator.  Call instrument_builtin_call
343         on builtin call stmts.
344         (instrument_memory_accesses): Adjust instrument_gimple caller.
345         * builtin-types.def (BT_FN_BOOL_VPTR_PTR_I1_INT_INT,
346         BT_FN_BOOL_VPTR_PTR_I2_INT_INT, BT_FN_BOOL_VPTR_PTR_I4_INT_INT,
347         BT_FN_BOOL_VPTR_PTR_I8_INT_INT, BT_FN_BOOL_VPTR_PTR_I16_INT_INT): New.
349 2012-12-04  Tejas Belagod  <tejas.belagod@arm.com>
351         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment,
352         aarch64_simd_vector_alignment_reachable): New.
353         (TARGET_VECTOR_ALIGNMENT, TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE):
354         Define.
356 2012-12-04  Richard Biener  <rguenther@suse.de>
358         PR tree-optimization/55124
359         * tree-ssa-pre.c (find_or_generate_expression): Instead of
360         ICEing when we are not able to generate an expression defer it
361         by signalling failure.  Fix possible wrong-code issue by
362         not picking random REFERENCE expressions as fallback.
363         (create_component_ref_by_pieces_1): Adjust.  Add failure paths.
364         (create_expression_by_pieces): Likewise.
365         (insert_into_preds_of_block): When expression generation failed
366         for one edge make sure to not insert a PHI node.
368 2012-12-03  Eric Botcazou  <ebotcazou@adacore.com>
370         * config/ia64/ia64.c (ia64_compute_frame_size): Allocate the scratch
371         area if the function allocates dynamic stack space.
372         (ia64_initial_elimination_offset): Adjust offsets to above change.
374 2012-12-03  Steven Bosscher  <steven@gcc.gnu.org>
376         * gcse.c (struct reg_use): Remove unused struct.
377         (gcse_emit_move_after): Do not create REG_EQUAL notes that reference
378         the SET_DEST of the instruction the note would be attached to.
379         * cse.c (cse_main): Add the DF_NOTE problem.
381 2012-12-03  Jakub Jelinek  <jakub@redhat.com>
383         * sanitizer.def: Add Address Sanitizer builtins.
384         Rename BUILT_IN_TSAN_READ_* to BUILT_IN_TSAN_READ* and
385         BUILT_IN_TSAN_WRITE_* to BUILT_IN_TSAN_WRITE*.
386         * Makefile.in (asan.o): Depend on langhooks.h.
387         (tsan.o): Depend on asan.h.
388         * asan.h (initialize_sanitizer_builtins): New prototype.
389         * asan.c: Include langhooks.h.
390         (report_error_func): Use builtin_decl_implicit of corresponding
391         BUILT_IN_ASAN_REPORT_{LOAD,STORE}*.
392         (asan_init_func): Removed.
393         (initialize_sanitizer_builtins): New function.
394         (asan_finish_file): Call it.  Use builtin_decl_implicit
395         on BUILT_IN_ASAN_{INIT,{,UN}REGISTER_GLOBALS}.
396         (asan_instrument): Call initialize_sanitizer_builtins.
397         * builtins.def (DEF_SANITIZER_BUILTIN): Change condition to
398         (flag_asan || flag_tsan).
399         * tsan.c: Include asan.h and tsan.h.
400         (get_memory_access_decl): Rename BUILT_IN_TSAN_{READ,WRITE}_*
401         to BUILT_IN_TSAN_{READ,WRITE}*.
402         (tsan_pass): Call initialize_sanitizer_builtins.
403         (tsan_gate, tsan_gate_O0): Don't check if
404         builtin_decl_implicit_p (BUILT_IN_TSAN_INIT) is true.
405         (tsan_finish_file): Call initialize_sanitizer_builtins.
406         * builtin-types.def (BT_FN_VOID_PTR_PTRMODE): New fn type.
408 2012-12-03  Aldy Hernandez  <aldyh@redhat.com>
410         PR middle-end/55401
411         * trans-mem.c (get_tm_region_blocks): Exclude uninstrumented
412         blocks from vector if requested.
413         (collect_bb2reg): Pass new argument to get_tm_region_blocks.
414         (get_bb_regions_instrumented): Add INCLUDE_UNINSTRUMENTED_P
415         argument, and pass it to expand_regions.
416         (execute_tm_mark): Pass new argument to get_bb_regions_instrumented.
417         (execute_tm_edges): Same.
419 2012-12-03  Jakub Jelinek  <jakub@redhat.com>
421         * asan.c (instrument_mem_region_access): Don't instrument
422         if base doesn't have pointer type or len integral type.
423         Add cast if len doesn't have size_t compatible type.
424         (instrument_builtin_call): Don't instrument BUILT_IN_ATOMIC_LOAD,
425         BUILT_IN_ATOMIC_TEST_AND_SET, BUILT_IN_ATOMIC_CLEAR,
426         BUILT_IN_ATOMIC_EXCHANGE, BUILT_IN_ATOMIC_COMPARE_EXCHANGE
427         and BUILT_IN_ATOMIC_STORE.
429         * asan.c (instrument_assignment): Instrument lhs only
430         for gimple_store_p and rhs1 only for gimple_assign_load_p.
432 2012-12-03  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
434         * Makefile.in: Add target mddump, build/genmddump.o.  Extend
435         genprogrtl with mddump.
436         * genmddump.c: New.
438 2012-12-03  Steven Bosscher  <steven@gcc.gnu.org>
440         * rtl.h (print_insn_with_notes): Prototype.
441         * sched-vis.c (print_insn_with_notes): Export it.
443         * gimple-pretty-print.h (gimple_dump_bb_for_graph): Prototype.
444         * gimple-pretty-print.c (print_gimple_expr): Flush the buffer.
445         (pp_gimple_stmt_1): Don't do it here.
446         (gimple_dump_bb_for_graph): New function.
447         * tree-pretty-print.c (print_generic_expr): Flush the buffer here.
448         (dump_generic_node): Don't flush the buffer here.
450         * graph.h (print_rtl_graph_with_bb): Rename to print_graph_cfg.
451         * graph.c: Include gimple.h, dumpfile.h, and gimple-pretty-print.h.
452         (draw_cfg_node): Handle GIMPLE basic blocks also.
453         (print_rtl_graph_with_bb): Rename to print_graph_cfg.
454         * passes.c (finish_optimization_passes): Don't finish graph dumps here.
455         (execute_function_dump): Use print_graph_cfg. Enable dumping the CFG
456         for GIMPLE also.
457         (pass_init_dump_file): Wrap in TV_DUMP.  Set up CFG graph dumps.
458         (pass_fini_dump_file): Wrap in TV_DUMP.  Finish graph dumps.
459         (execute_one_pass): Don't set up graph dumps here.
461 2012-12-03  Eric Botcazou  <ebotcazou@adacore.com>
463         * tree-ssa.c (warn_uninitialized_var): Use OPT_Wmaybe_uninitialized tag
464         in the non-always executed case.
466 2012-12-03  Sofiane Naci  <sofiane.naci@arm.com>
468         * config/aarch64/aarch64.c (aarch64_build_constant): Update prototype.
469         Call emit_move_insn instead of printing movi/movn/movz instructions.
470         Call gen_insv_immdi instead of printing movk instruction.
471         (aarch64_add_constant): Update prototype.
472         Generate RTL instead of printing add/sub instructions.
473         (aarch64_output_mi_thunk): Update calls to aarch64_build_constant
474         and aarch64_add_constant.
476 2012-12-03 Kai Tietz  <ktietz@redhat.com>
478         PR target/53912
479         * ggc-common.c (POINTER_HASH): Cast from pointer via intptr_t.
481         PR target/53912
482         * tree-dump.c (dump_pointer): Print pointer via HOST_WIDE_INT_PRINT.
484         PR target/53912
485         * pointer-set.c (hash1): Cast from pointer via uintptr_t.
487 2012-12-02  Marek Polacek  <polacek@redhat.com>
489         PR middle-end/54838
490         * cprop.c (bypass_block): Determine number of latches.  Return
491         when there is more than one latch edge.
493 2012-12-02  Teresa Johnson  <tejohnson@google.com>
495         PR gcov-profile/55551
496         * lto-cgraph.c (merge_profile_summaries): Handle scaled histogram
497         entries that map to the same index.
499 2012-12-02  Steven Bosscher  <steven@gcc.gnu.org>
501         * optabs.c (add_equal_note): Do not create self-referencing REG_EQUAL
502         notes.
503         * fwprop.c (forward_propagate_and_simplify): Likewise.
505 2012-12-02  Steven Bosscher  <steven@gcc.gnu.org>
507         * function.h (struct rtl_data): Remove epilogue_delay_list.
508         * reorg.c (find_end_label): Simplify always-true test.
509         (optimize_skip): Likewise.
510         * final.c (leaf_function_p): Don't loop over epilogue_delay_list.
511         (leaf_renumber_regs): Likewise.
512         * varasm.c (mark_constant_pool): Likewise.
513         * except.c (set_nothrow_function_flags): Likewise.
514         * cfgrtl.c (print_rtl_with_bb): Likewise.
516 2012-12-02  Hans-Peter Nilsson  <hp@bitrange.com>
518         * config/mmix/mmix.c (mmix_function_value): Set the mode of the
519         returned PARALLEL to that of the return-value, not VOIDmode.
521 2012-12-02  Sandra Loosemore  <sandra@codesourcery.com>
523         * doc/extend.texi: Various corrections to punctuation and grammar
524         throughout the file.  Use consistent terminology and proper names.
525         Correct some minor markup issues.
527 2010-12-01  Xinliang David Li  <davidxl@google.com>
529         * config/i386/i386.c: Allow sign extend instructions (cltd etc)
530         on modern CPUs.
532 2012-12-02  Steven Bosscher  <steven@gcc.gnu.org>
534         * reorg.c: Remove an obsolete comment.
535         * config/pa/pa.md: Add back the HP-PA comment here, with details.
537 2012-11-30  Eric Botcazou  <ebotcazou@adacore.com>
539         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
540         Deal with degenerate cases where the bitsize isn't positive.
541         Rework comment.
543 2012-11-30  David Edelsohn  <dje.gcc@gmail.com>
545         * xcoffout.c (xcoff_tls_data_section_name): Define.
546         * xcoffout.h (xcoff_tls_data_section_name): Declare.
547         * config/rs6000/rs6000.c (tls_data_section): Define.
548         (TARGET_USE_BLOCKS_FOR_DECL_P): Define.
549         (rs6000_legitimize_tls_address_aix): New function.
550         (rs6000_legitimize_tls_address): Use new function for AIX.
551         (rs6000_cannot_force_const_mem): No sum in TLS TOC symbols.
552         Allow TLS symbol in constant pool other than ELF.
553         (rs6000_legitimate_address_p): Allow TLS symbol other than ELF.
554         (rs6000_assemble_visibility): Do not emit anything on AIX.
555         (output_toc): Handle alias of TLS general-dynamic symbols.
556         Emit TLS decorations on symbols.
557         (rs6000_use_blocks_for_decl_p): New function.
558         (rs6000_xcoff_output_tls_section_asm_op): New function.
559         (rs6000_xcoff_asm_init_sections): Initialize tls_data_section.
560         (rs6000_xcoff_select_section): Choose tls_data_section for
561         thread-local storage.
562         (rs6000_xcoff_file_start): Generate xcoff_tls_data_section_name.
563         (rs6000_legitimate_constant_p): Allow TLS symbol other than ELF.
564         * config/rs6000/rs6000.md (tls_tls_): Restrict to ELF.
565         (tls_get_tpointer): New.
566         (tle_get_tpointer_internal): New.
567         (tls_get_addr<mode>): New.
568         (tls_get_addr_internal<mode>): New.
569         * config/rs6000/xcoff.h (ASM_OUTPUT_TLS_COMMON): Define.
571 2012-11-30  Teresa Johnson  <tejohnson@google.com>
573         * lto-cgraph.c (output_profile_summary): Stream out sum_all
574         and histogram.
575         (input_profile_summary): Stream in sum_all and histogram.
576         (merge_profile_summaries): Merge sum_all and histogram, and
577         change to use RDIV.
578         (input_symtab): Call compute_working_sets after merging summaries.
579         * gcov-io.c (gcov_histo_index): Make extern for compiler.
580         * gcov-io.h (gcov_histo_index): Ditto.
581         * profile.c (compute_working_sets): Remove static keyword.
582         * profile.h (compute_working_sets): Ditto.
583         * Makefile.in (lto-cgraph.o): Depend on profile.h.
585 2012-11-30  Martin Jambor  <mjambor@suse.cz>
587         PR middle-end/52890
588         PR tree-optimization/55415
589         PR tree-optimization/54386
590         PR target/55448
591         * ipa-prop.c (ipa_modify_call_arguments): Be optimistic when
592         get_pointer_alignment_1 returns false and the base was not a
593         dereference.
594         * tree-sra.c (access_precludes_ipa_sra_p): New parameter req_align,
595         added check for required alignment.  Update the user.
597 2012-11-30  Ramana Radhakrishnan <Ramana.Radhakrishnan@arm.com>
598             Greta Yorsh  <Greta.Yorsh@arm.com>
600         * config/arm/arm.md (type): Subdivide "alu" into "alu_reg"
601         and "simple_alu_imm".
602         (core_cycles): Use new names.
603         (arm_addsi3): Set type of patterns to use to alu_reg and simple_alu_imm.
604         (addsi3_compare0, addsi3_compare0_scratch): Likewise.
605         (addsi3_compare_op1, addsi3_compare_op2, compare_addsi2_op0): Likewise.
606         (compare_addsi2_op1, arm_subsi3_insn, subsi3_compare0): Likewise.
607         (subsi3_compare, arm_decscc,arm_andsi3_insn): Likewise.
608         (thumb1_andsi3_insn, andsi3_compare0_scratch): Likewise.
609         (zeroextractsi_compare0_scratch,iorsi3_insn,iorsi3_compare0): Likewise.
610         (iorsi3_compare0_scratch, arm_xorsi3, thumb1_xorsi3_insn): Likewise.
611         (xorsi3_compare0, xorsi3_compare0_scratch): Likewise.
612         (thumb1_zero_extendhisi2,arm_zero_extendhisi2_v6): Likewise.
613         (thumb1_zero_extendqisi2_v, arm_zero_extendqisi2_v6): Likewise.
614         (thumb1_extendhisi2, arm_extendqisi_v6): Likewise.
615         (thumb1_extendqisi2, arm_movsi_insn): Likewise.
616         (movsi_compare0, movhi_insn_arch4, movhi_bytes): Likewise.
617         (arm_movqi_insn, thumb1_movqi_insn, arm_cmpsi_insn): Likewise.
618         (movsicc_insn, if_plus_move, if_move_plus): Likewise.
619         * config/arm/neon.md (neon_mov<mode>/VDX): Likewise.
620         (neon_mov<mode>/VQXMOV): Likewise.
621         * config/arm/arm1020e.md (1020alu_op): Likewise.
622         * config/arm/fmp626.md (mp626_alu_op): Likewise.
623         * config/arm/fa726te.md (726te_alu_op): Likewise.
624         * config/arm/fa626te.md (626te_alu_op): Likewise.
625         * config/arm/fa606te.md (606te_alu_op): Likewise.
626         * config/arm/fa526.md (526_alu_op): Likewise.
627         * config/arm/cortex-r4.md (cortex_r4_alu, cortex_r4_mov): Likewise.
628         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
629         * config/arm/cortex-a9.md (cprtex_a9_dp): Likewise.
630         * config/arm/cortex-a8.md (cortex_a8_alu, cortex_a8_mov): Likewise.
631         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
632         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
633         * config/arm/arm926ejs.md (9_alu_op): Likewise.
634         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
635         * config/arm/arm1026ejs.md (alu_op): Likewise.
637 2012-11-30  Richard Biener  <rguenther@suse.de>
639         * tree-ssa-pre.c (get_expr_value_id): Do not allocate value-ids here.
641 2012-11-30  Richard Biener  <rguenther@suse.de>
643         * tree-ssa-sccvn.c (run_scc_vn): Remove iteration propagating
644         value_ids.
646 2012-11-30  Steven Bosscher  <steven@gcc.gnu.org>
648         * coretypes.h (struct pretty_print_info): Make a coretype.
649         (typedef pretty_printer): Likewise.
650         * pretty-print.h (typedef pretty_printer): Not needed here anymore.
651         * pretty-print.c (pp_write_text_as_dot_label_to_stream): New function.
652         * rtl.h (str_pattern_slim): New prototype.
653         (print_value, print_pattern, print_insn): Adjust prototypes to take
654         a pretty-printer rather than a char buffer.
655         * sched-vis.c (safe_concat): Remove.
656         (print_exp): Print into a pretty-printer.
657         (print_value): Likewise.
658         (print_pattern): Likewise.
659         (print_insn): Likewise.
660         (print_insn_with_notes): New static function.
661         (init_rtl_slim_pretty_print): New function.
662         (dump_value_slim): Simplify.  Print into and flush a pretty-printer.
663         (dump_insn_slim): Likewise.
664         (dump_rtl_slim): Likewise.
665         (str_pattern_slim): New function.
666         * haifa-sched.c (model_recompute): Use str_pattern_slim instead of
667         static buffers.
668         (model_record_pressures): Likewise.
669         (schedule_insn): Likewise.
670         * sel-sched-dump.c (dump_insn_rtx_1): Likewise.
671         (sel_prepare_string_for_dot_label): Refer to graph.c CFG dumper code.
672         * graph.c: Include pretty-print.h.
673         (init_graph_slim_pretty_print): New function.
674         (print_escaped_line): Removed here, and reincarnated as
675         pp_write_text_as_dot_label_to_stream.
676         (draw_cfg_node): Print into a pretty printer.
677         (draw_cfg_node_succ_edges): Likewise.
678         (print_rtl_graph_with_bb): Likewise.
679         * Makefile.in (graph.o): Fix dependencies.
680         (tree-optimize.o, toplev.o, sched-vis.o): Likewise.
682 2012-11-30  Jakub Jelinek  <jakub@redhat.com>
684         * tsan.c (is_load_of_const_p): Removed.
685         (instrument_expr): Use result of get_inner_reference
686         instead of get_base_address, avoid some unnecessary tests,
687         use !pt_solution_includes and !may_be_aliased tests to
688         check whether base might escape current function.
690 2012-11-30  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
692         * gensupport.c (maybe_eval_c_test): Remove not-null check for expr.
693         * read-rtl.c (apply_iterators): Initialize condition with "" instead
694         of NULL.
696 2012-11-30  Kai Tietz  <ktietz@redhat.com>
698         * config/i386/host-mingw32.c (va_granularity): Make none-const.
699         (mingw32_gt_pch_alloc_granularity): Return OS' allocation granularity.
700         (mingw32_gt_pch_use_address): Retry mapping of used address
701         as multiple instances might interfer.
703         * config/i386/mingw32.h (SHARED_LIBGCC_SPEC): Synchronize with
704         cygwin-host.
706 2012-11-29  Eric Botcazou  <ebotcazou@adacore.com>
708         PR middle-end/55321
709         * calls.c (emit_library_call_value_1): Mark as no-nonlocal if no-throw.
711 2012-11-29  Vladimir Makarov  <vmakarov@redhat.com>
713         PR middle-end/55456
714         * lra-int.h (lra_new_regno_start): New external.
715         * lra.c (lra_new_regno_start): New global.
716         (lra): Set up lra_new_regno_start.
717         * lra-constraints.c (match_reload): Sync values only for original
718         pseudos.
720 2012-11-29 Kai Tietz  <ktietz@redhat.com>
722         PR target/53912
723         * prefix.c (lookup_key): Replace xmalloc/xrealloc
724         use by XNEWVEC/XRESIZEVEC.
726 2012-11-29  Richard Earnshaw  <rearnsha@arm.com>
728         PR target/55073
729         * config/arm/neon.md (neon_vtrn<mode>_internal): Split into expand
730         and insn patterns.  Re-order insn arguments to tie inputs to outputs.
731         (neon_vzip<mode>_internal): Likewise.
732         (neon_vuzp<mode>_internal): Likewise.
734 2012-11-29  Marc Glisse  <marc.glisse@inria.fr>
736         PR c++/53094
737         * fold-const.c (fold): Replace a CONSTRUCTOR with a VECTOR_CST.
739 2012-11-29  Richard Biener  <rguenther@suse.de>
741         * tree-ssa-pre.c (get_expr_value_id): Do not add expr
742         to the set of value expressions here.
743         (add_to_exp_gen, make_values_for_phi): Fold into ...
744         (compute_avail): ... here, and avoid useless work.  Dump
745         avail sets in processing order.
746         (do_pre): Do not dump avail sets here.
748 2012-11-29  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
750         PR target/54974
751         * config/arm/arm.md (thumb2_pool_range, pool_range): Add comment on
752         Thumb pool ranges.
753         (thumb1_extendhisi2): Reduce Thumb pool range.
754         (arm_movdi): Likewise.
755         (thumb1_movdi_insn): Likewise.
756         (thumb1_movsi_insn): Likewise.
757         (pic_load_addr_unified): Likewise.
758         (pic_load_addr_32bit): Likewise.
759         (pic_load_addr_thumb1): Likewise.
760         (thumb1_movhf): Likewise.
761         (arm_movsf_soft_insn): Likewise.
762         (thumb1_movsf_soft_insn): Likewise.
763         (movdf_soft_insn): Likewise.
764         (thumb1_movdf_soft_insn): Likewise.
765         * config/arm/neon.md (*neon_mov<mode>): Likewise.
766         (*neon_mov<mode>): Likwise.
767         * config/arm/thumb2.md: (*thumb2_movsi_insn): Likewise.
768         (*thumb2_movhi_insn): Likewise.
769         (*thumb2_extendqisi_v6): Likewise.
770         (*thumb2_zero_extendqisi_v6): Likewise.
771         (*thumb2_zero_extendqisi2_v6): Likewise.
772         * config/arm/vfp.md: (*thumb2_movsi_vfp): Likewise.
773         (*movdi_vfp): Likewise.
774         (*movdi_vfp_cortexa8): Likewise.
775         (*thumb2_movsf_vfp): Likewise.
776         (*thumb2_movdf_vfp): Likewise.
778 2012-11-29  Kai Tietz  <ktietz@redhat.com>
780         PR target/55171
781         * config/i386/i386.c (get_scratch_register_on_entry): Handle
782         thiscall-convention.
783         (split_stack_prologue_scratch_regno): Likewise.
784         (ix86_static_chain): Likewise.
785         (x86_output_mi_thunk): Likewise.
787 2012-11-29  Marek Polacek  <polacek@redhat.com>
789         * cprop.c (bypass_block): Improve debug message.
791 2012-11-29  Oleg Raikhman  <oleg@adapteva.com>
793         * config/epiphany/epiphany.h (FIXED_REGISTERS, CALL_USED_REGISTERS):
794         Make r40..r43 call-used.
795         (REG_ALLOC_ORDER): Sort r40..r43 into the call-used registers.
797 2012-11-29  Joern Rennecke  <joern.rennecke@embecosm.com>
799         * config/epiphany/predicates.md (addsub_operator): New predicate.
800         * config/epiphany/epiphany-sched.md (sched_use_fpu): New attribute.
801         * config/epiphany/epiphany.md (isub_i+1): New peephole2.
802         * config/epiphany/epiphany-protos.h (get_attr_sched_use_fpu): Declare.
804         * config/epiphany/epiphany.h (EPIPHANY_LIBRARY_EXTRA_SPEC): Define.
805         (EXTRA_SPECS, DRIVER_SELF_SPECS): Likewise.
806         * config/epiphany/t-epiphany (SPECS): Set.
807         (specs): New rule.
809         * config/epiphany/epiphany.md (isub_i+1): Work around generator bug.
811         * config/epiphany/epiphany.c (epiphany_adjust_cost): Use
812         reg_overlap_mentioned_p.
814 2012-11-28  Jakub Jelinek  <jakub@redhat.com>
816         PR debug/36728
817         PR debug/55467
818         PR middle-end/55507
819         PR bootstrap/55511
820         * cselib.c (cselib_process_insn): If cselib_preserve_constants,
821         don't reset table and exit early on volatile insns and setjmp.
822         Reset table afterwards on setjmp.
824 2012-11-28  Andrew Pinski  <apinski@cavium.com>
826         PR bootstrap/54279
827         * Makefile.in (${QMTEST_DIR}/context): Use xg++ instead of g++.
829 2012-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
831         PR rtl-optimization/55052
832         * simplify-rtx.c (simplify_subreg): Restore SCALAR_INT_MODE_P check.
834 2012-11-28  David Edelsohn  <dje.gcc@gmail.com>
836         * target.def (use_blocks_for_decl_p): New hook.
837         * varasm.c (use_blocks_for_decl_p): Apply hook as final condition.
838         * doc/tm.texi.in (USE_BLOCKS_FOR_DECL_P): New description.
839         * doc/tm.texi: Regenerated.
841 2012-11-28  Richard Sandiford  <rdsandiford@googlemail.com>
843         PR middle-end/55438
844         * expmed.c (simple_mem_bitfield_p): New function, extracted from
845         store_bit_field_1 and extract_bit_field_1.  Use GET_MODE_ALIGNMENT
846         rather than bitsize when checking the alignment.
847         (store_bit_field_1, extract_bit_field_1): Call it.
848         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
849         Don't limit ALIGN_.  Assume that memory is mapped in chunks of at
850         least word size, regardless of BIGGEST_ALIGNMENT.
851         (bit_field_mode_iterator::get_mode): Use GET_MODE_ALIGNMENT rather
852         than unit when checking the alignment.
853         (get_best_mode): Use GET_MODE_ALIGNMENT.
855 2012-11-28  Vladimir Makarov  <vmakarov@redhat.com>
857         PR rtl-optimization/55512
858         * lra-assigns.c (assign_by_spills): Assigned arbitrary hard regs
859         to failed reload pseudos instead of changing asm pattern.
860         * lra-constraints.c (MAX_CONSTRAINT_ITERATION_NUMBER): Increase value.
862 2012-11-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
864         PR other/55358
865         * dse.c (rest_of_handle_dse): Remove superfluous clearing.
867 2012-11-28  Joern Rennecke  <joern.rennecke@embecosm.com>
869         * config/epiphany/predicates.md (move_double_src_operand):
870         Check that misaligned addresses are offsettable.
871         (move_dest_operand): Likewise.
872         * config/epiphany/epiphany.c (REG_OK_FOR_BASE_P): Don't force a
873         misaligned stack address to reg+index.
875         * config/epiphany/epiphany.opt (mfp-iarith): New option.
876         * config/epiphany/epiphgany.md (addsi3): Check for TARGET_FP_IARITH.
877         (subsi3, iadd, isub): Rename to ..
878         (subsi3_i, iadd_i, isub_i): .. This.
879         (subsi3, iadd, isub): New define_expands.
881         * config/epiphany/epiphgany.md (attribute type): Add v2fp.
882         (attribute fp_mode): Test for v2fp.
883         (<float_operation:insn_opname>v2sf3_i): Change type to v2fp.
884         * config/epiphany/epiphgany-sched.md (fp_arith_nearest,
885         fp_arith_trunc): Combine to ..
886         (fp_arith): .. this.
887         (v2fp_arith): New insn reservation.
889         * config/epiphany/epiphgany.md (maddsi_combine): Fix output pattern.
891 2012-11-28  Oleg Raikhman  <oleg@adapteva.com>
893         * config/epiphany/epiphany.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
895 2012-11-28  Joern Rennecke  <joern.rennecke@embecosm.com>
897         * config/epiphany/epiphany.h (HARD_REGNO_RENAME_OK): Define.
898         * config/epiphany/epiphany-protos.h (epiphany_regno_rename_ok):
899         Declare.
900         * config/epiphany/epiphany.c (epiphany_regno_rename_ok): New function.
902         * config/epiphany/epiphany.md (mov<mode>, *mov<mode>_insn): Check
903         for misaligned memory operands.
904         * config/epiphany/predicates.md (misaligned_operand): New predicate.
906         * config/epiphany/epiphany.opt (-may-round-for-trunc): New option.
907         * config/epiphany/epiphany.md (*fix_truncsfsi2_i): Take it
908         into account.
910 2012-11-28  Richard Biener  <rguenther@suse.de>
912         PR tree-optimization/54547
913         * tree-vrp.c (set_and_canonicalize_value_range): Handle
914         1-bit anti-ranges explicitely.
915         (extract_range_from_assert): Properly canonicalize all
916         built anti-ranges.
918 2012-11-28  Eric Botcazou  <ebotcazou@adacore.com>
920         * stor-layout.c (layout_type) <ARRAY_TYPE>: Do not clear TREE_OVERFLOW
921         on overflowed zeroes, except in one specific case.
923 2012-11-28  Marc Glisse  <marc.glisse@inria.fr>
925         PR middle-end/55266
926         * fold-const.c (fold_ternary_loc) [BIT_FIELD_REF]: Handle
927         CONSTRUCTOR with vector elements.
928         * tree-ssa-propagate.c (valid_gimple_rhs_p): Handle CONSTRUCTOR
929         and BIT_FIELD_REF.
931 2012-11-28  Richard Biener  <rguenther@suse.de>
933         PR c/35634
934         * gimple.h (gimplify_self_mod_expr): Declare.
935         * gimplify.c (gimplify_self_mod_expr): Export.  Take a different
936         type for performing the arithmetic in.
937         (gimplify_expr): Adjust.
938         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Strip
939         sign conversions we can re-apply after adjusting the IV.
941 2012-11-28  Steven Bosscher  <steven@gcc.gnu.org>
943         PR rtl-optimization/55006
944         * loop-unroll.c (struct iv_to_split): Add new 'orig_var' member.
945         (analyze_iv_to_split_insn): Record it.
946         (maybe_strip_eq_note_for_split_iv): New function to remove REG_EQUAL
947         notes that refer to IVs that are being split.
948         (apply_opt_in_copies): Use maybe_strip_eq_note_for_split_iv.  Twice.
949         Use FOR_BB_INSNS_SAFE.
951 2012-11-27  Steven Bosscher  <steven@gcc.gnu.org>
953         * rtl.h (debug_bb_n_slim, debug_bb_slim, debug_insn_slim): Remove
954         prototypes.
955         (debug_rtl_slim): Rename to dump_rtl_slim.
956         (print_value_slim): Rename to dump_value_slim.
957         * ira.c (ira_update_equiv_info_by_shuffle_insn): Update
958         print_value_slim user.
959         * lra.c (lra_process_new_insns): Use dump_insn_slim to dump single
960         insns.  Use dump_rtl_slim for insn chains.
961         * lra-constraints.c (get_reload_reg): Update print_value_slim user.
962         (process_addr_reg): Likewise.
963         (equiv_address_substitution): Likewise.
964         (inherit_reload_reg): Likewise.  Use dump_insn_slim to dump single
965         insns.
966         (check_and_process_move): Likewise.
967         (lra_constraints): Likewise.
968         (split_reg): Likewise.
969         (update_ebb_live_info): Likewise.
970         (remove_inheritance_pseudos): Likewise.
971         * sched-vis.c: Don't include sched-int.h.
972         Remove #ifdef INSN_SCHEDULING tests.
973         (print_value_slim): Rename to dump_value_slim.  Simplify a few
974         cases using GET_RTX_NAME.
975         (print_pattern): Do not handle UNSPEC and UNSPECV here, explain why.
976         (print_insn): Reorganize code to be independent of INSN_SCHEDULING.
977         Always print CALL_INSN patterns.  Harmonize INSN_UID dumping template.
978         Handle NOTE_INSN_CALL_ARG_LOCATION.
979         (dump_rtl_slim): Copied from debug_rtl_slim.
980         (debug_rtl_slim): Wrapper around dump_rtl_slim to stderr.
981         * haifa-sched.c (schedule_insn): Update print_insn user.
983 2012-11-27  Vladimir Makarov  <vmakarov@redhat.com>
985         PR rtl-optimization/55458
986         * lra-assigns.c: Include rtl-error.h.
987         (assign_by_spills): Report about asm impossible constraints.
988         * Makefile.in (lra-assigns.c): Add $(RTL_ERROR_H).
990 2012-11-27  Paolo Bonzini  <pbonzini@redhat.com>
992         PR rtl-optimization/55489
993         * gcse.c (compute_transp): Precompute a canonical version
994         of XEXP (x, 0), and pass it to canon_true_dependence.
996         * alias.c (init_alias_analysis): Fix allocation of reg_known_value.
998 2012-11-27  Diego Novillo  <dnovillo@google.com>
1000         * vec.h: Replace 'class vec' with 'struct vec' everywhere.
1001         (ggc_internal_cleared_alloc_stat): Remove.
1002         (va_gc::reserve): Add PASS_MEM_STAT to ggc_realloc_stat call.
1003         (va_stack::reserve): Add PASS_MEM_STAT to va_heap::reserve call.
1004         (vec<T, A, vl_embed>::copy): Replace ALONE_MEM_STAT_DECL with
1005         ALONE_CXX_MEM_STAT_INFO.
1006         (vec_safe_reserve): Replace MEM_STAT_DECL with CXX_MEM_STAT_INFO.
1007         (vec_safe_reserve_exact): Likewise.
1008         (vec_alloc): Likewise.
1009         (vec_safe_grow): Likewise.
1010         (vec_safe_grow_cleared): Likewise.
1011         (vec_safe_push): Likewise.
1012         (vec_safe_insert): Likewise.
1013         (vec_safe_splice): Likewise.
1014         (vec_alloc): Likewise.
1015         (vec_check_alloc): Likewise.
1017 2012-11-27  Marc Glisse  <marc.glisse@inria.fr>
1019         * tree-cfg.c (verify_gimple_comparison): Verify that vector
1020         comparison returns a vector.
1022 2012-11-27  Meador Inge  <meadori@codesourcery.com>
1024         * collect2.c (main): Call find_file_set_debug.
1025         (find_a_find, add_prefix, prefix_from_env, prefix_from_string):
1026         Factor out into ...
1027         * file-find.c (New file): ... here and ...
1028         * file-find.h (New file): ... here.
1029         * gcc-ar.c (standard_exec_prefix): New variable.
1030         (standard_libexec_prefix): Ditto.
1031         (tooldir_base_prefix) Ditto.
1032         (self_exec_prefix): Ditto.
1033         (self_libexec_prefix): Ditto.
1034         (self_tooldir_prefix): Ditto.
1035         (target_version): Ditto.
1036         (path): Ditto.
1037         (target_path): Ditto.
1038         (setup_prefixes): New function.
1039         (main): Rework how wrapped programs are found.
1040         * Makefile.in (OBJS-libcommon-target): Add file-find.o.
1041         (AR_OBJS): New variable.
1042         (gcc-ar$(exeext)): Add dependency on $(AR_OBJS).
1043         (gcc-nm$(exeext)): Ditto.
1044         (gcc-ranlib(exeext)): Ditto.
1045         (COLLECT2_OBJS): Add file-find.o.
1046         (collect2.o): Add file-find.h prerequisite.
1047         (file-find.o): New rule.
1049 2010-11-27  Dehao Chen  <dehao@google.com>
1051         * ipa-prop.c (ipa_modify_call_arguments): Set loc correctly.
1052         * emit-rtl.c (last_location): Remove unused variable.
1054 2012-11-27  Uros Bizjak  <ubizjak@gmail.com>
1056         * config/i386/i386.md
1057         (*jcc<X87MODEF:mode>_<SWI24:mode>_i387 splitters): Remove
1058         unneeded temporary.
1060 2012-11-27  Dehao Chen  <dehao@google.com>
1062         * cfgrtl.c (rtl_merge_blocks): Check with UNKNOWN_LOCATION correctly.
1063         (cfg_layout_merge_blocks): Likewise.
1065 2012-11-27  Jakub Jelinek  <jakub@redhat.com>
1067         * passes.c (init_optimization_passes): Add pass_asan and pass_tsan
1068         to -Og optimization passes.
1070 2012-11-27  H.J. Lu  <hongjiu.lu@intel.com>
1071             Markus Trippelsdorf  <markus@trippelsdorf.de>
1073         PR lto/54795
1074         * lto-opts.c (lto_write_options): Also handle
1075         OPT_SPECIAL_unknown, OPT_SPECIAL_ignore and
1076         OPT_SPECIAL_program_name.
1078         PR lto/55474
1079         * lto-wrapper.c (merge_and_complain): Handle
1080         OPT_SPECIAL_unknown, OPT_SPECIAL_ignore,
1081         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
1083 2012-11-27  Jakub Jelinek  <jakub@redhat.com>
1085         PR middle-end/52650
1086         * function.c (instantiate_virtual_regs_in_insn): Don't delete invalid
1087         asm gotos, instead just clear their template and inputs.
1089         PR tree-optimization/55110
1090         * tree-vect-loop.c (vectorizable_reduction): Don't assert
1091         that STMT_VINFO_RELATED_STMT of orig_stmt is stmt.
1093 2012-11-27  Richard Biener  <rguenther@suse.de>
1095         * gimple-fold.c (fold_stmt_1): Remove unnecessary code.
1097 2012-11-27  Bin Cheng  <bin.cheng@arm.com>
1099         * config/arm/arm.c (thumb1_reorg): New function.
1100         (arm_reorg): Call thumb1_reorg.
1101         (thumb1_final_prescan_insn): Record src operand in thumb1_cc_op0.
1102         * config/arm/arm.md : Remove peephole2 patterns which rewrite move
1103         into subtract of ZERO.
1105 2012-11-27  Richard Biener  <rguenther@suse.de>
1107         PR middle-end/55331
1108         * gimple-fold.c (gimplify_and_update_call_from_tree): Replace
1109         stmt with a NOP instead of removing it.
1111 2012-11-27  Steven Bosscher  <steven@gcc.gnu.org>
1113         * loop-invariant.c (check_invariant_table_size): Take sizeof of
1114         the right type.
1116         * reorg.c (resource_conflicts_p): Use hard_reg_set_intersect_p.
1117         (rare_destination): Remove.
1118         (mostly_true_jump): Simplify.  Base result on REG_BR_PROP notes if
1119         available, otherwise assume branches are not taken.
1120         (fill_eager_delay_slots): Update mostly_true_jump call.
1121         (relax_delay_slots): Likewise.
1123 2012-11-26  Eric Botcazou  <ebotcazou@adacore.com>
1125         * reorg.c (redundant_insn): Do not handle DEBUG_INSNs.
1127 2012-11-26  Vladimir Makarov  <vmakarov@redhat.com>
1129         PR target/55277
1130         * lra-constraints.c (in_class_p): Check reg class contents too.
1132 2012-11-26  James Greenhalgh  <james.greenhalgh@arm.com>
1134         * config/aarch64/aarch64-builtins.c (aarch64_builtin_decls): New.
1135         (aarch64_init_simd_builtins): Store declaration after builtin
1136         initialisation.
1137         (aarch64_builtin_decl): New.
1138         * config/aarch64/aarch64-protos.h (aarch64_builtin_decl): New.
1139         * config/aarch64/aarch64.c (TARGET_BUILTIN_DECL): Define.
1141 2012-11-26  Steven Bosscher  <steven@gcc.gnu.org>
1143         * doc/invoke.texi: Remove -dv documentation.  Fix up graph dump related
1144         documentation.  Document the '-graph' dump option.  Complete the '-slim'
1145         dump option documentation.
1147         * common.opt (Variable graph_dump_format): Remove.
1148         * flag-types.h (enum graph_dump_types): Remove.
1149         * flags.h (dump_for_graph): Remove.
1150         * opts.c (decode_d_option): Remove -dv handling.
1151         * sched-int.h (print_insn, print_pattern, print_value): Move prototypes
1152         from here ...
1153         * rtl.h: ...to here.  Add note that these functions ought to be in
1154         another file.
1155         * sched-vis.c (print_insn): Add detailed dump for insn notes.
1156         * print-rtl.c (dump_for_graph): Remove.
1157         (print_rtx): Remove dump_for_graph related code.
1158         * graph.c: Almost complete re-write to dump DOT (GraphViz) dumps
1159         instead of VCG dumps.
1160         * graph.h (print_rtl_graph_with_bb): Update prototype.
1161         * passes.c (finish_optimization_passes): Fix profile dump finishing.
1162         Unconditionally loop over graph dumps to finalize.
1163         (execute_function_dump): Split code to dump graphs to separate block.
1164         (execute_one_pass): Don't set TDF_GRAPH here, let the dump option
1165         decoders do their job.
1167         * ddg.c (vcg_print_ddg): Make it a DEBUG_FUNCTION.
1168         * toplev.c: Don't include graph.h.
1169         * tree-optimize.c: Don't include graph.h.
1171 2012-11-26  Marek Polacek  <polacek@redhat.com>
1173         * cprop.c (hash_set): Remove variable.  Use regno variable directly.
1175 2012-11-26  Eric Botcazou  <ebotcazou@adacore.com>
1177         * tree.h (DECL_RESTRICTED_P): Delete.
1178         (DECL_READ_P): Add comment.
1179         (DECL_NONSHAREABLE): Likewise.
1180         (TYPE_NO_FORCE_BLK): Fix comment.
1181         (struct tree_decl_common): Remove decl_restricted_flag, add decl_flag_3.
1182         * tree-emutls.c (new_emutls_decl): Do not deal with DECL_RESTRICTED_P.
1183         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
1184         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1186         * alias.c (nonoverlapping_component_refs_p): Fix thinko.
1188 2012-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1190         * doc/sourcebuild.texi: Document arm_v8_vfp_ok.
1192 2012-11-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1194         * config/arm/arm.h (TARGET_FPU_ARMV8): New macro.
1195         * config/arm/arm.md (UNSPEC_VRINTZ, UNSPEC_VRINTP, UNSPEC_VRINTM)
1196         (UNSPEC_VRINTR, UNSPEC_VRINTX, UNSPEC_VRINTA): New unspecs.
1197         (f_rints, f_rintd): New types.
1198         * config/arm/iterators.md (VRINT): New int iterator.
1199         (F_fma_type): Remove.
1200         (vfp_type): New mode attribute.
1201         (vfp_double_cond): Likewise.
1202         (vrint_pattern, vrint_variant, vrint_predicable): New int attribute.
1203         * config/arm/vfp.md (fma<SDF:mode>4): Use vfp_type iterator
1204         instead of F_fma_type.
1205         (*fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4): Likewise.
1206         (<vrint_pattern><SDF:mode>2): New pattern.
1208 2012-11-26  Eric Botcazou  <ebotcazou@adacore.com>
1210         * fold-const.c (const_binop): Adjust comment.
1211         (extract_muldiv_1): Likewise.
1212         (fold_comparison): Likewise.
1213         * stor-layout.c (place_field): Fix typo.
1214         * tree.c (double_int_fits_to_tree_p): Remove obsolete comment.
1215         (force_fit_type_double): Likewise.  Fix long line.
1217 2012-11-26  Greta Yorsh  <Greta.Yorsh@arm.com>
1219         * config/arm/arm.h (TARGET_LDRD): Reject Thumb1 targets.
1221 2012-11-26  Matthias Klose  <doko@ubuntu.com>
1223         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix unbalanced
1224         parentheses.
1226 2012-11-26  Jakub Jelinek  <jakub@redhat.com>
1228         PR tree-optimization/54471
1229         * tree-vrp.c (extract_range_from_binary_expr_1): For MULT_EXPR,
1230         don't canonicalize range if min2 is zero.
1232 2012-11-26  Hans-Peter Nilsson  <hp@bitrange.com>
1234         PR middle-end/55030
1235         * builtins.c (expand_builtin_setjmp_receiver): Update comment
1236         regarding purpose of blockage.
1237         * emit-rtl.c [!HAVE_blockage] (gen_blockage): Similarly for
1238         the head comment.
1239         * rtlanal.c (volatile_insn_p): Ditto.
1240         * doc/md.texi (blockage): Update similarly.  Change wording to
1241         require one of two forms, rather than implying a wider choice.
1242         * cse.c (cse_insn): Where checking for blocking insns, use
1243         volatile_insn_p instead of manual check for volatile ASM.
1244         * dse.c (scan_insn): Ditto.
1245         * cselib.c (cselib_process_insn): Ditto.
1247 2012-11-25  Uros Bizjak  <ubizjak@gmail.com>
1249         * config/i386/sse.md (<sse>_loadu<ssemodesuffix><avxsizesuffix>):
1250         Do not depend on TARGET_SSE_TYPELESS_STORES.
1251         (<sse2>_loaddqu<avxsizesuffix>): Ditto.
1252         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Fix handling of
1253         TARGET_SSE_TYPELESS_STORES.
1254         (<sse2>_storedqu<avxsizesuffix>): Ditto.
1256 2012-11-25  Steven Bosscher  <steven@gcc.gnu.org>
1258         * doc/tm.texi.in (DELAY_SLOTS_FOR_EPILOGUE): Remove documentation.
1259         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
1260         * doc/tm.texi: Regenerate.
1261         * reorg.c (fill_simple_delay_slots): Remove code conditional on
1262         DELAY_SLOTS_FOR_EPILOGUE being defined.
1263         (make_return_insns, dbr_schedule): Likewise.
1264         * system.h (DELAY_SLOTS_FOR_EPILOGUE): Poison.
1265         (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
1267 2012-11-24  Jack Howarth <howarth@bromo.med.uc.edu>
1269         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fsanitize=address.
1271 2012-11-24  Matthias Klose  <doko@ubuntu.com>
1273         * configure.ac (multiarch): Use $enableval instead of $withval.
1274         * configure: Regenerate.
1275         * config/i386/t-kfreebsd (MULTILIB_OSDIRNAMES): Filter out x32.
1276         * gcc/config/i386/t-linux64 (MULTILIB_OSDIRNAMES): Use
1277         x86_64-linux-gnux32 as multiarch name for x32.
1279 2012-11-23  Tobias Burnus  <burnus@net-b.de>
1281         * doc/invoke.texi (-fsanitize=address): Remove obsolete remark.
1283 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
1285         PR c++/54046
1286         * Makefile.in (gimple-low.o): Depend on langhooks.h.
1287         * gimple-low.c: Include langhooks.c.
1288         (block_may_fallthru): Handle TARGET_EXPR and ERROR_MARK,
1289         by default call lang_hooks.block_may_fallthru.
1290         * langhooks.h (struct lang_hooks): Add block_may_fallthru langhook.
1291         * langhooks-def.h (LANG_HOOKS_BLOCK_MAY_FALLTHRU): Define.
1292         (LANG_HOOKS_INITIALIZER): Use it.
1294 2012-11-23  Jan Hubicka  <jh@suse.cz>
1296         * i386-c.c (ix86_target_macros_internal): Update handling of core
1297         chips.
1298         * i386.c (DUMMY_STRINGOP_ALGS): Update
1299         (*_cost): Update.
1300         (core_cost): Copy from generic64_cost; fix stringop descriptors.
1301         (m_CORE2_32, m_CORE2_64, m_COREI7_32, m_COREI7_64, m_CORE2I7_32,
1302         m_CORE2I7_64): Remove.
1303         (m_CORE2, m_COREI7, m_CORE2I7): Update.
1304         (initial_ix86_tune_features): Update.
1305         (processor_target): Update.
1306         (ix86_option_override_internal): Update.
1307         (ix86_option_override_internal): Remove PROCESSOR_CORE2_64,
1308         PROCESSOR_COREI7_64 special cases.
1309         (decide_alg): Add noalign parameter; set it.
1310         (ix86_expand_movmem, ix86_expand_setmem): Update noalign handling.
1311         (ix86_issue_rate): Update.
1312         (ia32_multipass_dfa_lookahead): Update.
1313         (ix86_sched_init_global): Update.
1314         (get_builtin_code_for_version): Update.
1315         * i386.h (stringop_strategy): Add noalign flag.
1316         (TARGET_CORE2_32, TARGET_CORE2_64, TARGET_COREI7_32, TARGET_COREI7_64):
1317         Remove.
1318         (TARGET_CORE2, TARGET_COREI7): New.
1319         (enum processor_type): Remove PROCESSOR_CORE2_32, PROCESSOR_CORE2_64,
1320         PROCESSOR_COREI7_32, PROCESSOR_COREI7_64; add PROCESSOR_CORE2,
1321         PROCESSOR_COREI7.
1323 2012-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1325         PR rtl-optimization/55388
1326         * alias.c (nonoverlapping_component_refs_p): Handle bitfields.
1327         * emit-rtl.c (adjust_address_1): Deal with VOIDmode early.
1328         * expmed.c (store_bit_field): Turn the call to adjust_address
1329         into a call to adjust_bitfield_address_size.
1331 2012-11-23  Vladimir Makarov  <vmakarov@redhat.com>
1333         * lra.c (lra): Move init_reg_info and expand_reg_info calls before
1334         init_insn_recog_data.
1336 2012-11-23  Jakub Jelinek  <jakub@redhat.com>
1338         * tsan.c: Fix up comment formatting.
1339         (instrument_gimple): Ignore gimple_clobber_p stmts.
1340         (pass_tsan, pass_tsan_O0): Remove TODO_update_address_taken
1341         from todo_flags_finish.
1343         PR sanitizer/55435
1344         * asan.c (gate_asan): Don't instrument functions with
1345         no_address_safety_analysis attribute.
1346         (gate_asan_O0): Use !optimize && gate_asan ().
1347         * doc/extend.texi (no_address_safety_analysis): Document new
1348         function attribute.
1350 2012-11-22  Teresa Johnson  <tejohnson@google.com>
1351             Jan Hubicka  <jh@suse.cz>
1353         * predict.c (maybe_hot_count_p): Use threshold from profiled working
1354         set instead of hard limit.
1355         (cgraph_maybe_hot_edge_p): Invoke maybe_hot_count_p() instead of
1356         directly checking limit.
1357         * params.def (HOT_BB_COUNT_FRACTION): Remove.
1358         (HOT_BB_COUNT_WS_PERMILLE): New parameter.
1359         * doc/invoke.texi (hot-bb-count-fraction): Remove.
1360         (hot-bb-count-ws-permille): Document.
1362 2012-11-22  Vladimir Makarov  <vmakarov@redhat.com>
1364         PR middle-end/55430
1365         * lra.c: Move #include "hard-reg-set.h" before #include "rtl.h".
1366         (new_insn_reg): Update biggest_mode.
1367         (collect_non_operand_hard_regs): Check eliminable regs too.
1368         (initialize_lra_reg_info_element): Initialize biggest_mode.
1369         (add_regs_to_insn_regno_info): Ignore non-allocatable
1370         non-eliminable hard regs.
1371         (lra.c): Move setting lra_no_alloc_regs before
1372         init_insn_recog_data.
1373         * lra-constraints.c (simplify_operand_subreg): Add a comment.
1374         (lra_constraints): Ignore equivalent memory of
1375         regs occuring in paradoxical subregs.
1376         * lra-lives.c (lra_create_live_ranges): Add a comment.
1378 2012-11-22  Dmitry Vyukov  <dvyukov@google.com>
1379             Wei Mi  <wmi@google.com>
1381         * builtins.def (DEF_SANITIZER_BUILTIN): Define tsan builtins.
1382         * sanitizer.def: Ditto.
1383         * Makefile.in (tsan.o): Add tsan.o target.
1384         (BUILTINS_DEF): Add sanitizer.def.
1385         * passes.c (init_optimization_passes): Add tsan passes.
1386         * tree-pass.h (register_pass_info): Ditto.
1387         * toplev.c (compile_file): Ditto.
1388         * doc/invoke.texi: Document tsan related options.
1389         * gcc.c (LINK_COMMAND_SPEC): Add LIBTSAN_SPEC in link command if
1390         -fsanitize=thread.
1391         * tsan.c: New file about tsan.
1392         * tsan.h: Ditto.
1393         * common.opt: Add -fsanitize=thread.
1395 2012-11-22  Uros Bizjak  <ubizjak@gmail.com>
1397         * doc/md.texi (RTL Templates Transformation): Use @pxref for
1398         cross-reference in parentheses.
1400 2012-11-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1402         * doc/md.texi (AArch64 family): Remove Utf.
1404 2012-11-22  Uros Bizjak  <ubizjak@gmail.com>
1406         * config/i386/i386.md (*jcc<mode>_0_i387): Macroize insn
1407         from *fp_jcc_3_387 using X87MODEF mode iterator.
1408         (*jcc<mode>_0_r_i387): New.
1409         (*jccxf_i387): Ditto.
1410         (*jccxf_r_i387): Ditto.
1411         (*jcc<mode>_i387): Macroize insn from *fp_jcc_1_387 using
1412         MODEF mode iterator.
1413         (*jcc<mode>_r_i387): Macroize insn from *fp_jcc_1r_387 using
1414         MODEF mode iterator.
1415         (*jccu<mode>_i387): Macroize insn from *fp_jcc_2_387 using
1416         X87MODEF mode iterator.
1417         (*jccu<mode>_r_i387): Macroize insn from *fp_jcc_2r_387 using
1418         X87MODEF mode iterator.
1419         (*jcc{,u}<mode>_i387 splitters): Macroize splitters using
1420         X87MODEF mode iterator.
1421         (*jcc<X87MODEF:mode>_<SWI24:mode>_i387): Macroize insn
1422         from *fp_jcc_4_<mode>_387 using X87MODEF mode iterator.
1423         (*jcc<X87MODEF:mode>_<SWI24:mode>_r_i387): New.
1424         (*jcc<X87MODEF:mode>_<SWI24:mode>_i387 splitters): Macroize
1425         splitters using X87MODEF and SWI24 mode iterators.
1427 2012-11-22  Uros Bizjak  <ubizjak@gmail.com>
1429         * config/i386/i386.md (FPCMP): New mode iterator.
1430         (unord): New mode attribute.
1431         (*cmp<mode>_0_i387): Macroize insn from *cmpfp_0
1432         using X87MODEF mode iterator.
1433         (*cmp<mode>_0_cc_i387): Macroize insn from *cmpfp_0_cc using
1434         X87MODEF mode iterator.
1435         (*cmpxf_i387): Rename from *cmpfp_xf.
1436         (*cmpxf_cc_i387): Rename from *cmpfp_xf_cc.
1437         (*cmp<mode>_i387): Rename from *cmpfp_<mode>.
1438         (*cmp<mode>_cc_i387): Rename from *cmpfp_<mode>_cc.
1439         (*cmpu<mode>_i387): Macroize insn from *cmpfp_u using X87MODEF
1440         mode iterator.
1441         (*cmpu<mode>_cc_i387): Macroize insn from *cmpfp_u_cc using X87MODEF
1442         mode iterator.
1443         (*cmp<X87MODEF:mode>_<SWI24:mode>_i387): Macroize_insn from
1444         *cmpfp_<mode> using X87MODEF mode iterator.
1445         (*cmp<X87MODEF:mode>_<SWI24:mode>_cc_i387): Macroize_insn from
1446         *cmpfp_<mode>_cc using X87MODEF mode iterator.
1447         (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Macroize insn from
1448         *cmpfp_i{,u}_mixed using FPCMP and MODEF mode iterators.
1449         (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Macroize insn from
1450         *cmpfp_i{,u}_sse using FPCMP and MODEF mode iterators.
1451         (*cmpi<CCFPCMP:unord><X87MODEF:mode>_i387): Macroize insn from
1452         *cmpfp_i{,u}_387 using FPCMP and X87MODEF mode iterators.
1454 2012-11-22  Ian Bolton  <ian.bolton@arm.com>
1456         * config/aarch64/aarch64.md (bswaphi2): New pattern.
1458 2012-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1460         PR sanitizer/55379
1461         * gcc.c (LINK_COMMAND_SPEC): Issue an error for -static with
1462         -fsanitize=address.
1464 2012-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1466         * gcc.c (ADD_STATIC_LIBASAN_LIBS): New macro.  Defined
1467         with STATIC_LIBASAN_LIBS.
1468         (LIBASAN_SPEC): Add STATIC_LIBASAN_LIBS.
1469         * config/gnu-user.h (STATIC_LIBASAN_LIBS): New macro.
1471 2012-11-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1473         * config/arm/arm.md (*arm_abssi2): Define predicable attribute.
1474         (*arm_neg_abssi2): Likewise.
1475         * config/arm/thumb2.md (*thumb2_abssi2): Likewise.
1476         (*thumb2_neg_abssi2): Likewise.
1478 2012-11-22  Jakub Jelinek  <jakub@redhat.com>
1480         * ree.c (struct ext_modified): Add ATTRIBUTE_PACKED.
1482 2012-11-22  Georg-Johann Lay  <avr@gjlay.de>
1484         Adjust decimal point of signed accum mode to GCC default.
1486         PR target/54222
1487         * config/avr/avr-modes.def (HA, SA, DA): Remove mode adjustments.
1488         (TA): Move decimal point one bit to the right.
1489         * config/avr/avr.c (avr_out_fract): Rewrite.
1491 2012-11-21  Matthias Klose  <doko@ubuntu.com>
1493         * config/alpha/t-linux: New file; define MULTIARCH_DIRNAME.
1494         * config.gcc <alpha*-*-linux*> (tmake_file): Include alpha/t-linux.
1496 2012-11-21  Matthias Klose  <doko@ubuntu.com>
1498         * config/m68k/t-linux: Define MULTIARCH_DIRNAME.
1500 2012-11-21  Matthias Klose  <doko@ubuntu.com>
1502         * config/ia64/t-linux: New file; define MULTIARCH_DIRNAME.
1503         * config.gcc <ia64*-*-linux*> (tmake_file): Include ia64/t-linux.
1505 2012-11-21  Vladimir Makarov  <vmakarov@redhat.com>
1507         PR rtl-optimization/55414
1508         * lra-constraints.c (Index): New function.
1509         (lra_constraints): Check dead equiv init insns.
1511 2012-11-21  Richard Henderson  <rth@redhat.com>
1513         * config/alpha/alpha.md (extvmisaligndi): Rename from extv; update
1514         mode of operand 1; remove ancient extract_bit_field workaround.
1515         (insvmisaligndi): Rename from insv and update similarly.
1516         (extzvmisaligndi): Rename from extzv and update similarly; split out...
1517         (extzvdi): New expander.
1519 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
1521         * doc/cpp.texi: Document __SANITIZE_ADDRESS__.
1523 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
1525         PR c/55397
1526         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
1527         Define __SANITIZE_ADDRESS__ for flag_asan.
1529 2012-11-21  Wei Mi  <wmi@google.com>
1531         * common.opt: Change faddress-sanitizer to fsanitize=address.
1532         * toplev.c (process_options): Likewise.
1533         * gcc.c (LINK_COMMAND_SPEC): Likewise.
1534         * testsuite/lib/asan-dg.exp
1535         (check_effective_target_faddress_sanitizer): Likewise.
1536         (asan_init): Likewise.
1537         * doc/invoke.texi (-fsanitize=address): Document.
1539 2012-11-21  Martin Jambor  <mjambor@suse.cz>
1541         * ipa-prop.h (struct ipa_node_params): Rename clone_for_all_contexts to
1542         do_clone_for_all_contexts.  Update all uses.  New flag
1543         is_all_contexts_clone.
1544         * ipa-cp.c (cgraph_edge_brings_value_p): Also consider the case when cs
1545         leads to the clone for all contexts.
1546         (perhaps_add_new_callers): Likewise.
1547         (decide_whether_version_node): Remove bogus !plats->aggs test.  Set
1548         is_all_contexts_clone when cloning for all contexts.
1550 2012-11-21  Martin Jambor  <mjambor@suse.cz>
1552         PR tree-optimization/55260
1553         * ipa-cp.c (intersect_aggregates_with_edge): New function.
1554         (find_aggregate_values_for_callers_subset): Part moved to the function
1555         above.  Call it.
1556         (cgraph_edge_brings_all_agg_vals_for_node): Reimplemented using
1557         intersect_aggregates_with_edge.
1559 2012-11-21  Matthias Klose  <doko@ubuntu.com>
1561         * config/s390/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
1563 2012-11-21  Teresa Johnson  <tejohnson@google.com>
1565         PR gcov-profile/55417
1566         * profile.c (compute_working_sets): Check index first
1567         to avoid out-of-bounds array access.
1569 2012-11-21  Matthias Klose  <doko@ubuntu.com>
1571         * config/aarch64/t-aarch64-linux: Define MULTIARCH_DIRNAME for
1572         linux target.
1574 2012-11-21  Uros Bizjak  <ubizjak@gmail.com>
1576         * config/i386/i386.md
1577         (*float<SWI48x:mode><MODEF:mode>2_mixed_with_temp): Use SWI48 mode
1578         iterator instead of SWI48x.  Update insn constraint.
1579         (*float<SWI48x:mode><MODEF:mode>2_mixed_interunit): Ditto.
1580         (*float<SWI48x:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
1581         (*float<SWI48x:mode><MODEF:mode>2_sse_with_temp): Ditto.
1582         (*float<SWI48x:mode><MODEF:mode>2_sse_interunit): Ditto.
1583         (*float<SWI48x:mode><MODEF:mode>2_sse_nointerunit): Ditto.
1584         (*float<SWI48x:mode><MODEF:mode>2 splitters): Ditto.
1585         (lrint<MODEF:mode><SWI48x:mode>2): Ditto.
1587 2012-11-21  Marcus Shawcroft  <marcus.shawcroft@arm.com>
1589         * Makefile.in (gengtype-lex.o): Add dependency on $(BCONFIG_H).
1591 2012-11-21  Bin Cheng  <bin.cheng@arm.com>
1593         * config/arm/arm-cores.def (cortex-m1, cortex-m0)
1594         (cortex-m0plus): Use v6m.
1595         * config/arm/arm-protos.h (tune_params): Add
1596         logical_op_non_short_circuit.
1597         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
1598         (arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune)
1599         (arm_cortex_tune, arm_cortex_a15_tune, arm_cortex_a5_tune)
1600         (arm_cortex_a9_tune, arm_fa726te_tune): Set
1601         logical_op_non_short_circuit field.
1602         (arm_v6m_tune): New tune_params struct.
1603         * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Define.
1605 2012-11-20  Matthias Klose  <doko@ubuntu.com>
1607         * configure.ac: Substitute `with_cpu'.
1608         * configure: Regenerate.
1609         * Makefile.in: Define `with_cpu'.
1610         * config/rs6000/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
1611         * config/rs6000/t-linux: New file; define MULTIARCH_DIRNAME.
1612         * config/rs6000/t-fprules (SOFT_FLOAT_CPUS): New macro. Add e300c2
1613         to the list.
1614         (MULTILIB_MATCHES_FLOAT): Define in terms of SOFT_FLOAT_CPUS.
1615         * config/rs6000/t-spe: Define MULTIARCH_DIRNAME.
1616         * config.gcc <powerpc-*-linux* | powerpc64-*-linux*> (tmake_file):
1617         Include rs6000/t-linux for 32bit non-biarch configurations.
1619 2012-11-20  Matthias Klose  <doko@ubuntu.com>
1621         * doc/install.texi: Move multiarch paragraph out of multilib
1622         documentation.
1624 2012-11-20  Matthias Klose  <doko@ubuntu.com>
1626         * config/arm/t-linux-eabi: Define MULTIARCH_DIRNAME for linux target.
1628 2012-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
1630         * stor-layout.c (bit_field_mode_iterator::next_mode): Fix signedness.
1632 2012-11-20  Vladimir Makarov  <vmakarov@redhat.com>
1634         PR rtl-optimization/55396
1635         * lra-constraints.c (get_reload_reg): Change class if it is
1636         different from reg class.
1638 2012-11-20  Jakub Jelinek  <jakub@redhat.com>
1640         * vec.h (class vec_prefix): Change into struct.
1641         Rename field alloc_PRIVATE_ back to alloc_.
1642         Rename field num_PRIVATE_ to num_.
1643         Update all users.
1644         (class vec<T, A, vl_embed>): Rename field pfx_PRIVATE_ to vecpfx_.
1645         Rename field data_PRIVATE_ to vecdata_.
1646         Update all users.
1647         (class vec<T, A, vl_ptr>): Make every field public.
1648         Rename field vec_PRIVATE_ back to vec_.
1649         Update all users.
1651 2012-11-20  Richard Sandiford  <rdsandiford@googlemail.com>
1653         PR middle-end/55403
1654         PR middle-end/55391
1655         * expmed.c (store_bit_field_1): Use adjust_bitfield_address_size
1656         rather than adjust_bitfield_address to change the mode of a reference.
1657         (extract_bit_field_1): Likewise.
1659 2012-11-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
1661         * config/rs6000/rs6000.md (movdf_hardfloat32): Add a comment
1662         explaining the register ordering preferences.
1664 2012-11-20  Aldy Hernandez  <aldyh@redhat.com>
1666         PR tree-optimization/55350
1667         * gimple-ssa-strength-reduction.c (replace_dependent): Handle
1668         POINTER_PLUS_EXPR correctly.
1670 2012-11-20  Uros Bizjak  <ubizjak@gmail.com>
1672         * config/i386/i386.md (fix_trunc<MODEF:mode><SWI48:mode>_sse): Macroize
1673         insn from fix_trunc<mode>{si,di}_sse using SWI48 mode iterator.
1674         (peephole2 to avoid vector decoded forms): Macroize peephole2
1675         using MODEF mode iterator.  Use SWI48 mode iterator instead of SWI48x.
1677 2012-11-20  Uros Bizjak  <ubizjak@gmail.com>
1679         PR target/19398
1680         * config/i386/i386.md
1681         (peephole2 to shorten x87->SSE reload sequences): Remove peephole2.
1682         * config/i386/i386.h (enum ix86_tune_indices)
1683         <IX86_TUNE_SHORTEN_X87_SSE>: Remove.
1684         (TARGET_SHORTEN_X87_SSE): Remove.
1685         * config/i386/i386.c (initial_ix86_tune_features): Update.
1687 2012-11-20  Vladimir Makarov  <vmakarov@redhat.com>
1689         PR target/19398
1690         * lra-constraints.c (process_alt_operands): Discourage reloads
1691         through secondary memory.
1693 2012-11-20  David Edelsohn  <dje.gcc@gmail.com>
1695         * config/rs6000/rs6000.md (largetoc_low): Revert.
1696         (largetoc_low_aix<mode>): New.
1698 2012-11-20  Diego Novillo  <dnovillo@google.com>
1699             Jakub Jelinek  <jakub@redhat.com>
1701         * vec.h (struct vnull): Declare.
1702         (vNULL): Declare.
1703         * vec.c (vNULL): Define.
1704         * bb-reorder.c: Replace all vec<T, A>() initializers with vNULL.
1705         * cfgexpand.c: Likewise.
1706         * cfgloop.c: Likewise.
1707         * cfgloopanal.c: Likewise.
1708         * cfgloopmanip.c: Likewise.
1709         * cgraph.c: Likewise.
1710         * config/c6x/c6x.c: Likewise.
1711         * config/i386/i386.c: Likewise.
1712         * df-core.c: Likewise.
1713         * dominance.c: Likewise.
1714         * dwarf2out.c: Likewise.
1715         * except.c: Likewise.
1716         * function.c: Likewise.
1717         * gcse.c: Likewise.
1718         * genautomata.c: Likewise.
1719         * graphds.c: Likewise.
1720         * graphite-scop-detection.c: Likewise.
1721         * graphite.c: Likewise.
1722         * haifa-sched.c: Likewise.
1723         * ifcvt.c: Likewise.
1724         * ipa-cp.c: Likewise.
1725         * ipa-inline-analysis.c: Likewise.
1726         * ipa-inline-transform.c: Likewise.
1727         * ipa-inline.c: Likewise.
1728         * ipa-prop.c: Likewise.
1729         * ipa-split.c: Likewise.
1730         * ipa-utils.c: Likewise.
1731         * ira-build.c: Likewise.
1732         * lto-cgraph.c: Likewise.
1733         * lto-streamer-in.c: Likewise.
1734         * lto-symtab.c: Likewise.
1735         * opts-global.c: Likewise.
1736         * passes.c: Likewise.
1737         * ree.c: Likewise.
1738         * sched-deps.c: Likewise.
1739         * sel-sched-ir.c: Likewise.
1740         * sel-sched-ir.h: Likewise.
1741         * sel-sched.c: Likewise.
1742         * stor-layout.c: Likewise.
1743         * trans-mem.c: Likewise.
1744         * tree-call-cdce.c: Likewise.
1745         * tree-cfg.c: Likewise.
1746         * tree-data-ref.c: Likewise.
1747         * tree-diagnostic.c: Likewise.
1748         * tree-eh.c: Likewise.
1749         * tree-loop-distribution.c: Likewise.
1750         * tree-predcom.c: Likewise.
1751         * tree-ssa-loop-im.c: Likewise.
1752         * tree-ssa-loop-ivcanon.c: Likewise.
1753         * tree-ssa-loop-manip.c: Likewise.
1754         * tree-ssa-loop-niter.c: Likewise.
1755         * tree-ssa-loop-prefetch.c: Likewise.
1756         * tree-ssa-math-opts.c: Likewise.
1757         * tree-ssa-phiopt.c: Likewise.
1758         * tree-ssa-pre.c: Likewise.
1759         * tree-ssa-propagate.c: Likewise.
1760         * tree-ssa-reassoc.c: Likewise.
1761         * tree-ssa-sccvn.c: Likewise.
1762         * tree-ssa-structalias.c: Likewise.
1763         * tree-ssa-threadedge.c: Likewise.
1764         * tree-ssa-uninit.c: Likewise.
1765         * tree-stdarg.c: Likewise.
1766         * tree-switch-conversion.c: Likewise.
1767         * tree-vect-data-refs.c: Likewise.
1768         * tree-vect-loop.c: Likewise.
1769         * tree-vect-slp.c: Likewise.
1770         * tree-vect-stmts.c: Likewise.
1771         * value-prof.c: Likewise.
1772         * varasm.c: Likewise.
1774 2012-11-20  Diego Novillo  <dnovillo@google.com>
1776         * Makefile.in (tlink.o): Add dependency on VEC_H.
1778 2012-11-20  Diego Novillo  <dnovillo@google.com>
1780         PR middle-end/55398
1781         * vec.h (class vec_prefix): Make every field public.
1782         Rename field alloc_ to alloc_PRIVATE_.
1783         Rename field num_ to num_PRIVATE_.
1784         Update all users.
1785         (class vec<T, A, vl_embed>): Make every field public.
1786         Rename field pfx_ to pfx_PRIVATE_.
1787         Rename field data_ to data_PRIVATE_.
1788         Update all users.
1789         (class vec<T, A, vl_ptr>): Make every field public.
1790         Rename field vec_ to vec_PRIVATE_.
1791         Update all users.
1793 2012-11-20  Kai Tietz  <ktietz@redhat.com>
1795         PR target/55268
1796         * i386.c (ix86_mangle_decl_assembler_name): Use
1797         SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME if defined.
1798         * cygming.h (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Rename
1799         to SUBTARGET_MANGLE_DECL_ASSEMBLER_NAME.
1801 2012-11-20  Uros Bizjak  <ubizjak@gmail.com>
1803         * config/i386/i386.c (ix86_expand_call): Emit CLOBBERs in VOIDmode.
1805 2012-11-20  Nick Clifton  <nickc@redhat.com>
1807         * config/v850/v850.c (F): New function.  Mark the given insn as
1808         being frame related.
1809         (v850_all_frame_related): New function.  Mark the given push insn
1810         as being frame related.
1811         (v850_pass_by_reference): When using the RH850 ABI do not pass
1812         arguments by reference.
1813         (v850_strict_argument_naming): Delete function.
1814         (v850_function_arg): Use word alignment with the RH850 ABI.
1815         (v850_arg_partial_bytes): Likewise.
1816         (v850_function_arg_advance): Likewise.
1817         (v850_print_operand): Handle CONST_INT and CONST_DOUBLE.
1818         (compute_register_save_size): Use df_regs_ever_live_p.
1819         (increment_stack): Mark prologue adjustments as being frame related.
1820         (expand_prologue): Handle pretend args.  Mark insns generated as
1821         being frame related.
1822         (expand_epilogue): Likewise.
1823         (v850_return_in_memory): When using the RH850 ABI return
1824         aggregates in memory.
1825         (v850_setup_incoming_varargs): Delete function.
1826         (v850_option_override): New function.
1827         (TARGET_DEBUG_UNWIND_INFO): Delete definition.
1828         (TARGET_SETUP_INCOMING_VARARGS): Likewise.
1829         (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
1830         (TARGET_OPTION_OVERRIDE): Define.
1831         * config/v850/v850.h (ASM_SPEC): Pass 8byte-align and gcc-abi
1832         options on to assembler.
1833         (LINK_SPEC): Likewise.
1834         (TARGET_CPU_CPP_BUILTINS): Define __V850_8BYTE_ALIGN__ and
1835         __V850_GCC_ABI__.
1836         (STACK_BOUNDARY): Set to BIGGEST_ALIGNMENT.
1837         (FUNCTION_BOUNDARY): With the RH850 ABI always 32-bit alignment.
1838         (BIGGEST_ALIGNMENT): With -8byte-align set to 64-bits.
1839         (BIGGEST_FIELD_ALIGNMENT): Likewise.
1840         (enum reg_class): Swap EVEN_REGS and GENERAL_REGS.
1841         (REG_CLASS_NAMES): Likewise.
1842         (REG_CLASS_CONTENTS): Likewise.
1843         (struct cum_arg): Delete anonymous_args field.
1844         (INIT_CUMULATIVE_ARGS): Update.
1845         (PREFERRED_DEBUG): Set to DWARF2_DEBUG.
1846         (DWARF2_FRAME_INFO): Define.
1847         (DWARF2_UNWIND_INFO): Define.
1848         (INCOMING_RETURN_ADDR_RTX): Define.
1849         (DWARF_FRAME_RETURN_COLUMN): Define.
1850         (TARGET_USE_FPU): Define.
1851         * config/v850/v850.md: Replace TARGET_V850E2V3 in floating point
1852         insns with TARGET_USE_FPU.
1853         (fixuns_truncsfsi2): New pattern.
1854         (fixuns_truncdfsi2): New pattern.
1855         (fix_truncsfdi2): New pattern.
1856         (fixuns_truncsfdi2): New pattern.
1857         (fix_truncdfdi2): New pattern.
1858         (fixuns_truncdfdi2): New pattern.
1859         (unsfloatsisf2): New pattern.
1860         (unsfloatsidf2): New pattern.
1861         (floatdisf2): New pattern.
1862         (unsfloatdisf2): New pattern.
1863         (floatdidf2): New pattern.
1864         (unsfloatdidf2): New pattern.
1865         (fnmasf4): Fix RTl description.
1866         (fnmssf4): Likewise.
1867         * config/v850/v850.opt (mrelax): New option.
1868         (mlong-jumps): Likewise.
1869         (msoft-float): Likewise.
1870         (mhard-float): Likewise.
1871         (mrh850-abi): Likewise.
1872         (mgcc-abi): Likewise.
1873         (m8byte-align): Likewise.
1874         * config/v850/t-v850 (MULTILIB_OPTIONS): Update multilib options.
1875         (MULTILIB_DIRNAMES): Likewise.
1877 2012-11-20  Nick Clifton  <nickc@redhat.com>
1879         * config/rx/rx.c (rx_function_arg_boundary): When using the RX ABI
1880         align stack arguments to their natural alignment.
1881         (rx_narrow_volatile_bitfield): New function.  Allows narrow
1882         volatile bitfields.
1883         (rx_ok_to_inline): New function.  Do not inline functions with
1884         local variables into a naked caller.
1885         (TARGET_NARROW_VOLATILE_BITFIELD): Define.
1886         (TARGET_CAN_INLINE_P): Define.
1887         * config/rx/rx.c (TARGET_CPU_CPP_BUILTINS): Define __RX_ABI__ or
1888         __RX_GC_ABI__.
1889         (ASM_SPEC): Pass -mgcc-abi on to the assembler.
1890         (STRICT_ALIGNMENT): Set to false.
1891         (CTORS_SECTION_ASM_OP): Add executable attribute.
1892         (DTORS_SECTION_ASM_OP): Add executable attribute.
1893         (INIT_ARRAY_SECTION_ASM_OP): Add executable attribute.
1894         (FINI_ARRAY_SECTION_ASM_OP): Add executable attribute.
1895         * config/rx/rx.md (subdi3): Don't allow MEMs as the third operand,
1896         as it causes too much reload pressure.
1897         * config/rx/rx.opt (mgcc-abi): New option.
1898         (mrx-abi): New option.
1899         * config/rx/t-rx (MULTILIB_OPTIONS): Show how to add an ABI multilib.
1900         (MULTILIB_DIRNAMES): Likewise.
1902 2012-11-20  James Greenhalgh  <james.greenhalgh@arm.com>
1903             Tejas Belagod  <tejas.belagod@arm.com>
1905         * config/aarch64/aarch64-builtins.c
1906         (aarch64_simd_builtin_type_bits): Rename to...
1907         (aarch64_simd_builtin_type_mode): ...this, make sequential.
1908         (aarch64_simd_builtin_datum): Refactor members.
1909         (VAR1, VAR2, ..., VAR12): Update accordingly.
1910         (aarch64_simd_builtin_data): Include from aarch64-simd-builtins.def.
1911         (aarch64_builtins): Update accordingly.
1912         (init_aarch64_simd_builtins): Refactor, rename to...
1913         (aarch64_init_simd_builtins): ...this.
1914         (aarch64_simd_builtin_compare): Remove.
1915         (locate_simd_builtin_icode): Likewise.
1916         * config/aarch64/aarch64-protos.h (aarch64_init_builtins): New.
1917         (aarch64_expand_builtin): New.
1918         * config/aarch64/aarch64-simd-builtins.def: New file.
1919         * config/aarch64/aarch64.c (aarch64_init_builtins):
1920         Move to aarch64-builtins.c.
1921         (aarch64_expand_builtin): Likewise.
1922         * config/aarch64/aarch64.h
1923         (aarch64_builtins): Move to aarch64-builtins.c.
1925 2012-11-20  Martin Jambor  <mjambor@suse.cz>
1927         PR tree-optimization/55260
1928         * ipa-cp.c (find_aggregate_values_for_callers_subset): Rename info to
1929         dest_info, use caller_info instead of info when determining whether
1930         callee is a clone.
1932 2012-11-20  Andrey Turetskiy  <andrey.turetskiy@gmail.com>
1934         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3): Merge
1935         *avx2_pmulhrswv16hi3 and *ssse3_pmulhrswv8hi3 into one pattern.
1937 2012-11-20  Sofiane Naci  <sofiane.naci@arm.com>
1939         * config/aarch64/aarch64.md
1940         (define_attr "sync_*"): Remove.
1941         (define_attr "length"): Update.
1942         Include atomics.md.
1943         * config/aarch64/aarch64-protos.h
1944         (aarch64_expand_compare_and_swap): Add function prototype.
1945         (aarch64_split_compare_and_swap): Likewise.
1946         (aarch64_split_atomic_op): Likewise.
1947         (aarch64_expand_sync): Remove function prototype.
1948         (aarch64_output_sync_insn): Likewise.
1949         (aarch64_output_sync_lock_release): Likewise.
1950         (aarch64_sync_loop_insns): Likewise.
1951         (struct aarch64_sync_generator): Remove.
1952         (enum aarch64_sync_generator_tag): Likewise.
1953         * config/aarch64/aarch64.c
1954         (aarch64_legitimize_sync_memory): Remove function.
1955         (aarch64_emit): Likewise.
1956         (aarch64_insn_count): Likewise.
1957         (aarch64_output_asm_insn): Likewise.
1958         (aarch64_load_store_suffix): Likewise.
1959         (aarch64_output_sync_load): Likewise.
1960         (aarch64_output_sync_store): Likewise.
1961         (aarch64_output_op2): Likewise.
1962         (aarch64_output_op3): Likewise.
1963         (aarch64_output_sync_loop): Likewise.
1964         (aarch64_get_sync_operand): Likewise.
1965         (aarch64_process_output_sync_insn): Likewise.
1966         (aarch64_output_sync_insn): Likewise.
1967         (aarch64_output_sync_lock_release): Likewise.
1968         (aarch64_sync_loop_insns): Likewise.
1969         (aarch64_call_generator): Likewise.
1970         (aarch64_expand_sync): Likewise.
1971         (* emit_f): Remove variable.
1972         (aarch64_insn_count): Likewise.
1973         (FETCH_SYNC_OPERAND): Likewise.
1974         (aarch64_emit_load_exclusive): New function.
1975         (aarch64_emit_store_exclusive): Likewise.
1976         (aarch64_emit_unlikely_jump): Likewise.
1977         (aarch64_expand_compare_and_swap): Likewise.
1978         (aarch64_split_compare_and_swap): Likewise.
1979         (aarch64_split_atomic_op): Likewise.
1980         * config/aarch64/iterators.md
1981         (atomic_sfx): New mode attribute.
1982         (atomic_optab): New code attribute.
1983         (atomic_op_operand): Likewise.
1984         (atomic_op_str): Likewise.
1985         (syncop): Rename to atomic_op.
1986         * config/aarch64/sync.md: Delete.
1987         * config/aarch64/atomics.md: New file.
1989 2012-11-20  Jakub Jelinek  <jakub@redhat.com>
1991         PR middle-end/55094
1992         * builtins.c (expand_builtin_trap): Add REG_ARGS_SIZE note
1993         on the trap insn for !ACCUMULATE_OUTGOING_ARGS.
1994         * cfgcleanup.c (outgoing_edges_match): Don't look at debug insns
1995         on the first old_insns_match_p call.  For !ACCUMULATE_OUTGOING_ARGS
1996         fail if the last real insn doesn't have REG_ARGS_SIZE note.
1998         PR rtl-optimization/54921
1999         * cselib.h (fp_setter_insn): New prototype.
2000         * cselib.c (fp_setter_insn): New function.
2001         (cselib_process_insn): If frame_pointer_needed,
2002         call cselib_invalidate_rtx (stack_pointer_rtx) after
2003         processing a frame pointer setter.
2004         * var-tracking.c (fp_setter): Removed.
2005         (vt_initialize): Use fp_setter_insn instead of fp_setter.
2007 2012-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
2009         * config/rs6000/rs6000.md (movdf_hardfloat32): Reorder move
2010         constraints so that the traditional floating point loads, stores,
2011         and moves are done first, then the VSX loads, stores, and moves,
2012         and finally the GPR loads, stores, and moves so that reload
2013         chooses FPRs over GPRs, and uses the traditional load/store
2014         instructions which provide an offset.
2015         (movdf_hardfloat64): Likewise.
2017 2012-11-19  Richard Sandiford  <rdsandiford@googlemail.com>
2019         PR middle-end/55359
2020         * simplify-rtx.c (simplify_subreg): Return null for invalid offsets.
2022 2012-11-19  Aldy Hernandez  <aldyh@redhat.com>
2024         * trans-mem.c (execute_tm_mark): Release bb_regions.
2026 2012-11-19  Aldy Hernandez  <aldyh@redhat.com>
2028         * trans-mem (collect_bb2reg): Stop scanning at irrevocable blocks.
2029         (get_bb_regions_instrumented): Add new traverse_clone argument and
2030         use it.
2031         (expand_regions_1): Same.
2032         (expand_region): Same.
2033         (execute_tm_mark): Pass new argument to expand_regions.
2034         (expand_block_edges): Pass new argument to get_bb_regions_instrumented.
2036 2012-11-19  Sofiane Naci  <sofiane.naci@arm.com>
2038         * config/aarch64/aarch64.c
2039         (aarch64_output_mi_thunk): Refactor to generate RTL patterns.
2041 2012-11-19  Mans Rullgard  <mans@mansr.com>
2043         PR target/55276
2044         * config/rs6000/rs6000.c (rs6000_stack_info): Always set vrsave_mask
2045         for TARGET_ALTIVEC_ABI.  Zero vrsave_save_offset if
2046         !TARGET_ALTIVEC_VRSAVE.
2047         (rs6000_emit_prologue): For SAVE_INLINE_VLRs, check vrsave_size
2048         not vrsave_mask.
2050 2012-11-19  David Edelsohn  <dje.gcc@gmail.com>
2052         PR bootstrap/55384
2053         * system.h (vec_free): Undef.
2055 2012-11-19  Jakub Jelinek  <jakub@redhat.com>
2057         PR middle-end/54630
2058         * tree-ssa-coalesce.c (coalesce_ssa_name): Remove static
2059         keyword from ssa_name_hash var.
2061 2012-11-19  Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2062             Kirill Yukhin  <kirill.yukhin@intel.com>
2063             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2065         * doc/md.texi: Document define_subst.
2066         * gensupport.c (MAX_OPERANDS): New define.
2067         (operand_data): New.
2068         (match_operand_entries_in_pattern): New.
2069         (used_operands_numbers): New.
2070         (subst_true): New.
2071         (subst_false): New.
2072         (define_subst_queue): New.
2073         (define_subst_tail): New.
2074         (define_subst_attr_queue): New.
2075         (define_subst_attr_tail): New.
2076         (has_subst_attribute): New.
2077         (subst_pattern_match): New.
2078         (get_alternatives_number): New.
2079         (alter_output_for_subst_insn): New.
2080         (alter_attrs_for_subst_insn): New.
2081         (process_substs_on_one_elem): New.
2082         (subst_dup): New.
2083         (process_define_subst): New.
2084         (duplicate_alternatives): New.
2085         (duplicate_each_alternative): New.
2086         (constraints_handler_t): New typedef.
2087         (alter_constraints): New.
2088         (adjust_operands_numbers): New.
2089         (replace_duplicating_operands_in_pattern): New.
2090         (remove_from_queue): New.
2091         (process_rtx): Handle define_subst and define_subst_attr.
2092         (change_subst_attribute): New.
2093         (alter_predicate_for_insn): Fix formatting.
2094         (alter_attrs_for_insn): Likewise.
2095         (alter_output_for_insn): Likewise.
2096         (mark_operands_from_match_dup): New.
2097         (mark_operands_used_in_match_dup): New.
2098         (find_first_unused_number_of_operand): New.
2099         (renumerate_operands_in_pattern): New.
2100         (generate_match_dup): New.
2101         (check_define_attr_duplicates): New.
2102         (init_rtx_reader_args_cb): Add checking for duplicated attrs and
2103         processing of define_subst.
2104         (read_md_rtx): Handle define_subst.
2105         * read-rtl.c (struct subst_attr_to_iter_mapping): New.
2106         (substs): New global.
2107         (apply_subst_iterator): New.
2108         (bind_subst_iter_and_attr): New.
2109         (find_subst_iter_by_attr): New.
2110         (map_attr_string): Handle subst-iterators.
2111         (add_condition_to_rtx): Handle define_subst.
2112         (apply_iterators): Likewise.
2113         (initialize_iterators): Likewise.
2114         (add_define_attr_for_define_subst): New.
2115         (add_define_subst_attr): New.
2116         (read_subst_mapping): New.
2117         (read_rtx): Handle define_subst_attr.
2118         (read_rtx_code): Add subst-attributes recognition during reading of
2119         strings.
2120         * rtl.def (DEFINE_EXPAND): Add vector of attributes.
2121         (DEFINE_SUBST): New.
2122         (DEFINE_SUBST_ATTR): New.
2124 2012-11-19  Tom de Vries  <tom@codesourcery.com>
2126         PR rtl-optimization/55315
2128         * rtlanal.c (nonzero_address_p): Don't assume a nonzero address plus a
2129         const is a nonzero address.
2131 2012-11-18  Sandra Loosemore  <sandra@codesourcery.com>
2133         * doc/extend.texi: Use @smallexample consistently.  Add @noindent
2134         when continuing a sentence or paragraph past an example.  Change
2135         tabs to spaces in examples.
2137 2012-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2139         * doc/md.texi (extv@var{m}, extvmisalign@var{m}, extzv@var{m})
2140         (extzvmisalign@var{m}, insv@var{m}, insvmisalign@var{m}): Document.
2141         (insv, extv, extzv): Deprecate.
2142         * optabs.def (insv_optab, extv_optab, extzv_optab)
2143         (insvmisalign_optab, extvmisalign_optab, extzvmisalign_optab):
2144         New optabs.
2145         * optabs.c (get_optab_extraction_insn): New function.
2146         (get_extraction_insn): Use it.
2147         * config/mips/mips.md (extv): Split into...
2148         (extvmisalign<mode>, extv<mode>): ...these new patterns.  Rename
2149         existing extv<mode> pattern to...
2150         (*extv<mode>): ...this.
2151         (extzv): Split into...
2152         (extzvmisalign<mode>, extzv<mode>): ...these new patterns.  Rename
2153         existing extzv<mode> pattern to...
2154         (*extzv<mode>): ...this.
2155         (insv): Split into...
2156         (insvmisalign<mode>, insv<mode>): ...these new patterns.  Rename
2157         existing insv<mode> pattern to...
2158         (*insv<mode>): ...this.  Use const_int_operand rather than
2159         immediate_operand.
2160         * config/mips/mips.c (mips_block_move_straight): Use set_mem_size
2161         to set the size of BLKmode accesses.
2162         (mips_get_unaligned_mem): Require OP0 to be a BLKmode memory,
2163         turning it from an "rtx *" to an rtx.
2164         (mips_expand_ext_as_unaligned_load): Simplify for new optab
2165         interface.  Update call to mips_get_unaligned_mem.
2166         (mips_expand_ins_as_unaligned_store): Update call to
2167         mips_get_unaligned_mem.
2169 2012-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2171         * Makefile.in (recog.o): Add insn-codes.h.
2172         * expr.h (extraction_pattern): Move to optabs.h.
2173         (mode_for_extraction): Delete.
2174         * optabs.h (extraction_insn): New structure.
2175         (extraction_pattern): Moved from expr.h.
2176         (get_best_reg_extraction_insn, get_best_mem_extraction_insn): Declare.
2177         * optabs.c (HAVE_insv, CODE_FOR_insv, HAVE_extv, CODE_FOR_extv)
2178         (HAVE_extzv, CODE_FOR_extzv): Provide defaults.
2179         (extraction_type): New enum.
2180         (get_traditional_extraction_insn, get_extraction_insn)
2181         (get_best_reg_extraction_insn, get_best_mem_extraction_insn):
2182         New functions.
2183         * combine.c (make_extraction): Use get_best_reg_extraction_insn
2184         instead of mode_for_extraction.
2185         * expmed.c (HAVE_insv, CODE_FOR_insv, gen_insv, HAVE_extv)
2186         (CODE_FOR_extv, gen_extv, HAVE_extzv, CODE_FOR_extzv, gen_extzv):
2187         Remove fallback definitions.
2188         (mode_for_extraction): Delete.
2189         (adjust_bit_field_mem_for_reg): New function.
2190         (store_bit_field_using_insv): Replace OP_MODE parameter with
2191         an extraction_insn.  Pass struct_mode to narrow_bit_field_mem.
2192         (extract_bit_field_using_extv): Likewise EXT_MODE.
2193         (store_bit_field_1): Use get_best_reg_extraction_insn and
2194         get_best_mem_extraction_insn instead of mode_for_extraction.
2195         Use adjust_bit_field_mem_for_reg when forcing memory to a
2196         register and doing a register insertion.  Update calls to
2197         store_bit_field_using_insv.
2198         (extract_bit_field_1): Likewise extractions and calls to
2199         extract_bit_field_using_extv.
2200         (store_Bit_field): When narrowing to a bitregion, don't use the
2201         insv mode as a limit.
2202         * recog.c: (HAVE_extv, CODE_FOR_extv, HAVE_extzv, CODE_FOR_extzv):
2203         Provide defaults.
2204         (simplify_while_replacing): Use insn_data instead of
2205         mode_for_extraction.
2207 2012-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2209         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
2210         Set up a default value of bitregion_end_.
2211         (bit_field_mode_iterator::next_mode): Always apply bitregion_end_
2212         check.  Include SLOW_UNALIGNED_ACCESS in the alignment check.
2213         (get_best_mode): Ignore modes that are wider than the alignment.
2215 2012-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2217         * machmode.h (bit_field_mode_iterator): New class.
2218         (get_best_mode): Change final parameter to bool.
2219         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator)
2220         (bit_field_mode_iterator::next_mode): New functions, split out from...
2221         (get_best_mode): ...here.  Change final parameter to bool.
2222         Use bit_field_mode_iterator.
2224 2012-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2226         * expmed.c (narrow_bit_field_mem): New function.
2227         (store_bit_field_using_insv, store_bit_field_1, store_fixed_bit_field)
2228         (extract_bit_field_1): Use it.
2230 2012-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2232         * expr.h (adjust_address_1): Add a size parameter.
2233         (adjust_address, adjust_address_nv, adjust_bitfield_address)
2234         (adjust_bitfield_address_nv): Adjust accordingly.
2235         (adjust_bitfield_address_size): Define.
2236         * emit-rtl.c (adjust_address_1): Add a size parameter.
2237         Use it to set the size if MODE has no size.  Check whether
2238         the size matches before returning the original memref.
2239         Require the size to be known for adjust_object.
2240         (adjust_automodify_address_1, widen_memory_access): Update calls
2241         to adjust_address_1.
2243 2012-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2245         * combine.c (make_extraction): Handle TRUNCATEd INNERs.
2247 2012-11-18  Richard Sandiford  <rdsandiford@googlemail.com>
2249         * expr.c (expand_assignment): Don't set MEM_KEEP_ALIAS_SET_P here.
2250         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle DECL_BIT_FIELDs,
2251         using their size instead of the COMPONENT_REF's.
2253 2012-11-17  Matthias Klose  <doko@ubuntu.com>
2255         * config/mips/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
2257 2012-11-17  Diego Novillo  <dnovillo@google.com>
2259         VEC API overhaul (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
2261         * vec.c (register_overhead): Convert it into
2262         member function of vec_prefix.
2263         (release_overhead): Likewise.
2264         (calculate_allocation): Likewise.
2265         (vec_heap_free): Remove.
2266         (vec_gc_o_reserve_1): Remove.
2267         (vec_heap_o_reserve_1): Remove.
2268         (vec_stack_o_reserve_1): Remove.
2269         (vec_stack_o_reserve_exact): Remove.
2270         (register_stack_vec): New.
2271         (stack_vec_register_index): New.
2272         (unregister_stack_vec): New.
2273         (vec_assert_fail): Remove.
2274         * vec.h: Conditionally include ggc.h.  Document conditional hackery.
2275         Update top-level documentation.
2276         (ALONE_VEC_CHECK_INFO): Remove.
2277         (VEC_CHECK_INFO): Remove.
2278         (ALONE_VEC_CHECK_DECL): Remove.
2279         (VEC_CHECK_DECL): Remove.
2280         (ALONE_VEC_CHECK_PASS): Remove.
2281         (VEC_CHECK_PASS): Remove.
2282         (VEC_ASSERT): Remove.
2283         (vec_prefix): Add friends va_gc, va_gc_atomic, va_heap and va_stack.
2284         Mark fields alloc_ and num_ as protected.
2285         (struct vec_t): Remove.  Remove all function members.
2286         (struct vl_embed): Declare.
2287         (struct vl_ptr): Declare.
2288         (free): Remove.
2289         (reserve_exact): Remove.
2290         (reserve): Remove.
2291         (safe_splice): Remove.
2292         (safe_push): Remove.
2293         (safe_grow): Remove.
2294         (safe_grow_cleared): Remove.
2295         (safe_insert): Remove.
2296         (DEF_VEC_I): Remove.
2297         (DEF_VEC_ALLOC_I): Remove.
2298         (DEF_VEC_P): Remove.
2299         (DEF_VEC_ALLOC_P): Remove.
2300         (DEF_VEC_O): Remove.
2301         (DEF_VEC_ALLOC_O): Remove.
2302         (DEF_VEC_ALLOC_P_STACK): Remove.
2303         (DEF_VEC_ALLOC_O_STACK): Remove.
2304         (DEF_VEC_ALLOC_I_STACK): Remove.
2305         (DEF_VEC_A): Remove.
2306         (DEF_VEC_ALLOC_A): Remove.
2307         (vec_stack_p_reserve_exact_1): Remove.
2308         (vec_stack_o_reserve): Remove.
2309         (vec_stack_o_reserve_exact): Remove.
2310         (VEC_length): Remove.
2311         (VEC_empty): Remove.
2312         (VEC_address): Remove.
2313         (vec_address): Remove.
2314         (VEC_last): Remove.
2315         (VEC_index): Remove.
2316         (VEC_iterate): Remove.
2317         (VEC_embedded_size): Remove.
2318         (VEC_embedded_init): Remove.
2319         (VEC_free): Remove.
2320         (VEC_copy): Remove.
2321         (VEC_space): Remove.
2322         (VEC_reserve): Remove.
2323         (VEC_reserve_exact): Remove.
2324         (VEC_splice): Remove.
2325         (VEC_safe_splice): Remove.
2326         (VEC_quick_push): Remove.
2327         (VEC_safe_push): Remove.
2328         (VEC_pop): Remove.
2329         (VEC_truncate): Remove.
2330         (VEC_safe_grow): Remove.
2331         (VEC_replace): Remove.
2332         (VEC_quick_insert): Remove.
2333         (VEC_safe_insert): Remove.
2334         (VEC_ordered_remove): Remove.
2335         (VEC_unordered_remove): Remove.
2336         (VEC_block_remove): Remove.
2337         (VEC_lower_bound): Remove.
2338         (VEC_alloc): Remove.
2339         (VEC_qsort): Remove.
2341         (va_heap): Declare.
2342         (va_heap::default_layout): New typedef to vl_ptr.
2343         (va_heap::reserve): New.
2344         (va_heap::release): New.
2345         (va_gc): Declare.
2346         (va_gc::default_layout): New typedef to vl_embed.
2347         (va_gc::reserve): New.
2348         (va_gc::release): New.
2349         (va_gc_atomic): Declare.  Inherit from va_gc.
2350         (va_stack): Declare.
2351         (va_stack::default_layout): New typedef to vl_ptr.
2352         (va_stack::alloc): New.
2353         (va_stack::reserve): New.
2354         (va_stack::release): New.
2355         (register_stack_vec): Declare.
2356         (stack_vec_register_index): Declare.
2357         (unregister_stack_vec): Declare.
2359         (vec<T, A = va_heap, L = typename A::default_layout>): Declare
2360         empty vec template.
2361         (vec<T, A, vl_embed>): Partial specialization for embedded
2362         layout.
2363         (vec<T, A, vl_embed>::allocated): New.
2364         (vec<T, A, vl_embed>::length): New.
2365         (vec<T, A, vl_embed>::is_empty): New.
2366         (vec<T, A, vl_embed>::address): New.
2367         (vec<T, A, vl_embed>::operator[]): New.
2368         (vec<T, A, vl_embed>::last New.
2369         (vec<T, A, vl_embed>::space): New.
2370         (vec<T, A, vl_embed>::iterate): New.
2371         (vec<T, A, vl_embed>::iterate): New.
2372         (vec<T, A, vl_embed>::copy): New.
2373         (vec<T, A, vl_embed>::splice): New.
2374         (vec<T, A, vl_embed>::quick_push New.
2375         (vec<T, A, vl_embed>::pop New.
2376         (vec<T, A, vl_embed>::truncate): New.
2377         (vec<T, A, vl_embed>::quick_insert): New.
2378         (vec<T, A, vl_embed>::ordered_remove): New.
2379         (vec<T, A, vl_embed>::unordered_remove): New.
2380         (vec<T, A, vl_embed>::block_remove): New.
2381         (vec<T, A, vl_embed>::qsort): New.
2382         (vec<T, A, vl_embed>::lower_bound): New.
2383         (vec<T, A, vl_embed>::embedded_size): New.
2384         (vec<T, A, vl_embed>::embedded_init): New.
2385         (vec<T, A, vl_embed>::quick_grow): New.
2386         (vec<T, A, vl_embed>::quick_grow_cleared): New.
2387         (vec_safe_space): New.
2388         (vec_safe_length): New.
2389         (vec_safe_address): New.
2390         (vec_safe_is_empty): New.
2391         (vec_safe_reserve): New.
2392         (vec_safe_reserve_exact): New.
2393         (vec_alloc): New.
2394         (vec_free): New.
2395         (vec_safe_grow): New.
2396         (vec_safe_grow_cleared): New.
2397         (vec_safe_iterate): New.
2398         (vec_safe_push): New.
2399         (vec_safe_insert): New.
2400         (vec_safe_truncate): New.
2401         (vec_safe_copy): New.
2402         (vec_safe_splice): New.
2404         (vec<T, A, vl_ptr>): New partial specialization for the space
2405         efficient layout.
2406         (vec<T, A, vl_ptr>::exists): New.
2407         (vec<T, A, vl_ptr>::is_empty): New.
2408         (vec<T, A, vl_ptr>::length): New.
2409         (vec<T, A, vl_ptr>::address): New.
2410         (vec<T, A, vl_ptr>::operator[]): New.
2411         (vec<T, A, vl_ptr>::operator!=): New.
2412         (vec<T, A, vl_ptr>::operator==): New.
2413         (vec<T, A, vl_ptr>::last): New.
2414         (vec<T, A, vl_ptr>::space): New.
2415         (vec<T, A, vl_ptr>::iterate): New.
2416         (vec<T, A, vl_ptr>::copy): New.
2417         (vec<T, A, vl_ptr>::reserve): New.
2418         (vec<T, A, vl_ptr>::reserve_exact): New.
2419         (vec<T, A, vl_ptr>::splice): New.
2420         (vec<T, A, vl_ptr>::safe_splice): New.
2421         (vec<T, A, vl_ptr>::quick_push): New.
2422         (vec<T, A, vl_ptr>::safe_push): New.
2423         (vec<T, A, vl_ptr>::pop): New.
2424         (vec<T, A, vl_ptr>::truncate): New.
2425         (vec<T, A, vl_ptr>::safe_grow): New.
2426         (vec<T, A, vl_ptr>::safe_grow_cleared): New.
2427         (vec<T, A, vl_ptr>::quick_grow): New.
2428         (vec<T, A, vl_ptr>::quick_grow_cleared): New.
2429         (vec<T, A, vl_ptr>::quick_insert): New.
2430         (vec<T, A, vl_ptr>::safe_insert): New.
2431         (vec<T, A, vl_ptr>::ordered_remove): New.
2432         (vec<T, A, vl_ptr>::unordered_remove): New.
2433         (vec<T, A, vl_ptr>::block_remove): New.
2434         (vec<T, A, vl_ptr>::qsort): New.
2435         (vec<T, A, vl_ptr>::lower_bound): New.
2436         (vec_stack_alloc): Define.
2437         (FOR_EACH_VEC_SAFE_ELT): Define.
2438         * vecir.h: Remove.  Update all users.
2439         * vecprim.h: Remove.  Update all users.
2440         Move uchar to coretypes.h.
2442         * Makefile.in (VEC_H): Add $(GGC_H).
2443         Remove vecir.h and vecprim.h dependencies everywhere.
2445 2012-11-16  Diego Novillo  <dnovillo@google.com>
2447         * gengtype-lex.l (VEC): Remove.
2448         Add characters in the set [\!\>\.-].
2449         * gengtype-parse.c (token_names): Remove "VEC".
2450         (require_template_declaration): Remove handling of VEC_TOKEN.
2451         (type): Likewise.
2452         Call create_user_defined_type when parsing GTY((user)).
2453         * gengtype-state.c (type_lineloc): handle TYPE_UNDEFINED.
2454         (write_state_undefined_type): New.
2455         (write_state_type): Call write_state_undefined_type for TYPE_UNDEFINED.
2456         (read_state_type): Call read_state_undefined_type for TYPE_UNDEFINED.
2457         * gengtype.c (dbgprint_count_type_at): Handle TYPE_UNDEFINED.
2458         (create_user_defined_type): Make extern.
2459         (type_for_name): Factor out of resolve_typedef.
2460         (create_undefined_type): New
2461         (resolve_typedef): Call it when we cannot find a previous
2462         typedef and the type is not a template.
2463         (find_structure): Accept TYPE_UNDEFINED.
2464         (set_gc_used_type): Add argument ALLOWED_UNDEFINED_TYPES,
2465         default to false.
2466         Emit an error for TYPE_UNDEFINED unless LEVEL is GC_UNUSED or
2467         ALLOWED_UNDEFINED_TYPES is set.
2468         Set ALLOWED_UNDEFINED_TYPES to true for TYPE_USER_STRUCT.
2469         (filter_type_name): Accept templates with more than one argument.
2470         (output_mangled_typename): Handle TYPE_UNDEFINED
2471         (walk_type): Likewise.
2472         (write_types_process_field): Likewise.
2473         (write_func_for_structure): If CHAIN_NEXT is set, ORIG_S
2474         should not be a user-defined type.
2475         (write_types_local_user_process_field): Handle TYPE_ARRAY,
2476         TYPE_NONE and TYPE_UNDEFINED.
2477         (write_types_local_process_field): Likewise.
2478         (contains_scalar_p): Return 0 for TYPE_USER_STRUCT.
2479         (write_root): Reject user-defined types that are not pointers.
2480         Handle TYPE_NONE, TYPE_UNDEFINED, TYPE_UNION, TYPE_LANG_STRUCT
2481         and TYPE_PARAM_STRUCT.
2482         (output_typename): Handle TYPE_NONE, TYPE_UNDEFINED, and TYPE_ARRAY.
2483         (dump_typekind): Handle TYPE_UNDEFINED.
2484         * gengtype.h (enum typekind): Add TYPE_UNDEFINED.
2485         (create_user_defined_type): Declare.
2486         (enum gty_token): Remove VEC_TOKEN.
2488 2012-11-16  Diego Novillo  <dnovillo@google.com>
2490         Adjust for new vec API (http://gcc.gnu.org/wiki/cxx-conversion/cxx-vec)
2492         * coretypes.h (uchar): Define.
2493         * alias.c: Use new vec API in vec.h.
2494         * asan.c: Likewise.
2495         * attribs.c: Likewise.
2496         * basic-block.h: Likewise.
2497         * bb-reorder.c: Likewise.
2498         * builtins.c: Likewise.
2499         * calls.c: Likewise.
2500         * cfg.c: Likewise.
2501         * cfganal.c: Likewise.
2502         * cfgcleanup.c: Likewise.
2503         * cfgexpand.c: Likewise.
2504         * cfghooks.c: Likewise.
2505         * cfghooks.h: Likewise.
2506         * cfgloop.c: Likewise.
2507         * cfgloop.h: Likewise.
2508         * cfgloopanal.c: Likewise.
2509         * cfgloopmanip.c: Likewise.
2510         * cfgrtl.c: Likewise.
2511         * cgraph.c: Likewise.
2512         * cgraph.h: Likewise.
2513         * cgraphclones.c: Likewise.
2514         * cgraphunit.c: Likewise.
2515         * combine.c: Likewise.
2516         * compare-elim.c: Likewise.
2517         * coverage.c: Likewise.
2518         * cprop.c: Likewise.
2519         * data-streamer.h: Likewise.
2520         * dbxout.c: Likewise.
2521         * dce.c: Likewise.
2522         * df-core.c: Likewise.
2523         * df-problems.c: Likewise.
2524         * df-scan.c: Likewise.
2525         * dominance.c: Likewise.
2526         * domwalk.c: Likewise.
2527         * domwalk.h: Likewise.
2528         * dse.c: Likewise.
2529         * dwarf2cfi.c: Likewise.
2530         * dwarf2out.c: Likewise.
2531         * dwarf2out.h: Likewise.
2532         * emit-rtl.c: Likewise.
2533         * except.c: Likewise.
2534         * except.h: Likewise.
2535         * expr.c: Likewise.
2536         * expr.h: Likewise.
2537         * final.c: Likewise.
2538         * fold-const.c: Likewise.
2539         * function.c: Likewise.
2540         * function.h: Likewise.
2541         * fwprop.c: Likewise.
2542         * gcc.c: Likewise.
2543         * gcse.c: Likewise.
2544         * genattr.c: Likewise.
2545         * genattrtab.c: Likewise.
2546         * genautomata.c: Likewise.
2547         * genextract.c: Likewise.
2548         * genopinit.c: Likewise
2549         * ggc-common.c: Likewise.
2550         * ggc.h: Likewise.
2551         * gimple-low.c: Likewise.
2552         * gimple-ssa-strength-reduction.c: Likewise.
2553         * gimple-streamer-in.c: Likewise.
2554         * gimple.c: Likewise.
2555         * gimple.h: Likewise.
2556         * gimplify.c: Likewise.
2557         * graph.c: Likewise.
2558         * graphds.c: Likewise.
2559         * graphds.h: Likewise.
2560         * graphite-blocking.c: Likewise.
2561         * graphite-clast-to-gimple.c: Likewise.
2562         * graphite-dependences.c: Likewise.
2563         * graphite-interchange.c: Likewise.
2564         * graphite-optimize-isl.c: Likewise.
2565         * graphite-poly.c: Likewise.
2566         * graphite-poly.h: Likewise.
2567         * graphite-scop-detection.c: Likewise.
2568         * graphite-scop-detection.h: Likewise.
2569         * graphite-sese-to-poly.c: Likewise.
2570         * graphite.c: Likewise.
2571         * godump.c: Likewise.
2572         * haifa-sched.c: Likewise.
2573         * hw-doloop.c: Likewise.
2574         * hw-doloop.h: Likewise.
2575         * ifcvt.c: Likewise.
2576         * insn-addr.h: Likewise.
2577         * ipa-cp.c: Likewise.
2578         * ipa-inline-analysis.c: Likewise.
2579         * ipa-inline-transform.c: Likewise.
2580         * ipa-inline.c: Likewise.
2581         * ipa-inline.h: Likewise.
2582         * ipa-prop.c: Likewise.
2583         * ipa-prop.h: Likewise.
2584         * ipa-pure-const.c: Likewise.
2585         * ipa-ref-inline.h: Likewise.
2586         * ipa-ref.c: Likewise.
2587         * ipa-ref.h: Likewise.
2588         * ipa-reference.c: Likewise.
2589         * ipa-split.c: Likewise.
2590         * ipa-utils.c: Likewise.
2591         * ipa-utils.h: Likewise.
2592         * ipa.c: Likewise.
2593         * ira-build.c: Likewise.
2594         * ira-color.c: Likewise.
2595         * ira-emit.c: Likewise.
2596         * ira-int.h: Likewise.
2597         * ira.c: Likewise.
2598         * loop-invariant.c: Likewise.
2599         * loop-unroll.c: Likewise.
2600         * lower-subreg.c: Likewise.
2601         * lra-lives.c: Likewise.
2602         * lra.c: Likewise.
2603         * lto-cgraph.c: Likewise.
2604         * lto-section-out.c: Likewise.
2605         * lto-streamer-in.c: Likewise.
2606         * lto-streamer-out.c: Likewise.
2607         * lto-streamer.h: Likewise.
2608         * lto-symtab.c: Likewise.
2609         * mcf.c: Likewise.
2610         * modulo-sched.c: Likewise.
2611         * omp-low.c: Likewise.
2612         * opts-common.c: Likewise.
2613         * opts-global.c: Likewise.
2614         * opts.c: Likewise.
2615         * opts.h: Likewise.
2616         * passes.c: Likewise.
2617         * predict.c: Likewise.
2618         * print-tree.c: Likewise.
2619         * profile.c: Likewise.
2620         * profile.h: Likewise.
2621         * read-rtl.c: Likewise.
2622         * ree.c: Likewise.
2623         * reg-stack.c: Likewise.
2624         * regrename.c: Likewise.
2625         * regrename.h: Likewise.
2626         * reload.c: Likewise.
2627         * reload.h: Likewise.
2628         * reload1.c: Likewise.
2629         * rtl.h: Likewise.
2630         * sched-deps.c: Likewise.
2631         * sched-int.h: Likewise.
2632         * sdbout.c: Likewise.
2633         * sel-sched-dump.c: Likewise.
2634         * sel-sched-ir.c: Likewise.
2635         * sel-sched-ir.h: Likewise.
2636         * sel-sched.c: Likewise.
2637         * sese.c: Likewise.
2638         * sese.h: Likewise.
2639         * statistics.h: Likewise.
2640         * stmt.c: Likewise.
2641         * stor-layout.c: Likewise.
2642         * store-motion.c: Likewise.
2643         * tlink.c: Likewise.
2644         * toplev.c: Likewise.
2645         * trans-mem.c: Likewise.
2646         * tree-browser.c: Likewise.
2647         * tree-call-cdce.c: Likewise.
2648         * tree-cfg.c: Likewise.
2649         * tree-cfgcleanup.c: Likewise.
2650         * tree-chrec.c: Likewise.
2651         * tree-chrec.h: Likewise.
2652         * tree-complex.c: Likewise.
2653         * tree-data-ref.c: Likewise.
2654         * tree-data-ref.h: Likewise.
2655         * tree-dfa.c: Likewise.
2656         * tree-diagnostic.c: Likewise.
2657         * tree-dump.c: Likewise.
2658         * tree-eh.c: Likewise.
2659         * tree-emutls.c: Likewise.
2660         * tree-flow.h: Likewise.
2661         * tree-if-conv.c: Likewise.
2662         * tree-inline.c: Likewise.
2663         * tree-inline.h: Likewise.
2664         * tree-into-ssa.c: Likewise.
2665         * tree-iterator.c: Likewise.
2666         * tree-loop-distribution.c: Likewise.
2667         * tree-mudflap.c: Likewise.
2668         * tree-optimize.c: Likewise.
2669         * tree-outof-ssa.c: Likewise.
2670         * tree-parloops.c: Likewise.
2671         * tree-phinodes.c: Likewise.
2672         * tree-predcom.c: Likewise.
2673         * tree-pretty-print.c: Likewise.
2674         * tree-scalar-evolution.c: Likewise.
2675         * tree-sra.c: Likewise.
2676         * tree-ssa-address.c: Likewise.
2677         * tree-ssa-alias.c: Likewise.
2678         * tree-ssa-ccp.c: Likewise.
2679         * tree-ssa-coalesce.c: Likewise.
2680         * tree-ssa-dce.c: Likewise.
2681         * tree-ssa-dom.c: Likewise.
2682         * tree-ssa-forwprop.c: Likewise.
2683         * tree-ssa-live.c: Likewise.
2684         * tree-ssa-live.h: Likewise.
2685         * tree-ssa-loop-im.c: Likewise.
2686         * tree-ssa-loop-ivcanon.c: Likewise.
2687         * tree-ssa-loop-ivopts.c: Likewise.
2688         * tree-ssa-loop-manip.c: Likewise.
2689         * tree-ssa-loop-niter.c: Likewise.
2690         * tree-ssa-loop-prefetch.c: Likewise.
2691         * tree-ssa-math-opts.c: Likewise.
2692         * tree-ssa-operands.c: Likewise.
2693         * tree-ssa-phiopt.c: Likewise.
2694         * tree-ssa-phiprop.c: Likewise.
2695         * tree-ssa-pre.c: Likewise.
2696         * tree-ssa-propagate.c: Likewise.
2697         * tree-ssa-reassoc.c: Likewise.
2698         * tree-ssa-sccvn.c: Likewise.
2699         * tree-ssa-sccvn.h: Likewise.
2700         * tree-ssa-strlen.c: Likewise.
2701         * tree-ssa-structalias.c: Likewise.
2702         * tree-ssa-tail-merge.c: Likewise.
2703         * tree-ssa-threadedge.c: Likewise.
2704         * tree-ssa-threadupdate.c: Likewise.
2705         * tree-ssa-uncprop.c: Likewise.
2706         * tree-ssa-uninit.c: Likewise.
2707         * tree-ssa.c: Likewise.
2708         * tree-ssanames.c: Likewise.
2709         * tree-stdarg.c: Likewise.
2710         * tree-streamer-in.c: Likewise.
2711         * tree-streamer-out.c: Likewise.
2712         * tree-streamer.c: Likewise.
2713         * tree-streamer.h: Likewise.
2714         * tree-switch-conversion.c: Likewise.
2715         * tree-vect-data-refs.c: Likewise.
2716         * tree-vect-generic.c: Likewise.
2717         * tree-vect-loop-manip.c: Likewise.
2718         * tree-vect-loop.c: Likewise.
2719         * tree-vect-patterns.c: Likewise.
2720         * tree-vect-slp.c: Likewise.
2721         * tree-vect-stmts.c: Likewise.
2722         * tree-vectorizer.c: Likewise.
2723         * tree-vectorizer.h: Likewise.
2724         * tree-vrp.c: Likewise.
2725         * tree.c: Likewise.
2726         * tree.h: Likewise.
2727         * value-prof.c: Likewise.
2728         * value-prof.h: Likewise.
2729         * var-tracking.c: Likewise.
2730         * varasm.c: Likewise.
2731         * varpool.c: Likewise.
2732         * vmsdbgout.c: Likewise.
2733         * config/bfin/bfin.c: Likewise.
2734         * config/c6x/c6x.c: Likewise.
2735         * config/darwin.c: Likewise.
2736         * config/i386/i386.c: Likewise.
2737         * config/ia64/ia64.c: Likewise.
2738         * config/mep/mep.c: Likewise.
2739         * config/mips/mips.c: Likewise.
2740         * config/pa/pa.c: Likewise.
2741         * config/rs6000/rs6000-c.c: Likewise.
2742         * config/rs6000/rs6000.c: Likewise.
2743         * config/rx/rx.c: Likewise.
2744         * config/spu/spu-c.c: Likewise.
2745         * config/vms/vms.c: Likewise.
2746         * config/vxworks.c: Likewise.
2747         * config/epiphany/resolve-sw-modes.c: Likewise.
2749 2012-11-17  Jakub Jelinek  <jakub@redhat.com>
2751         PR tree-optimization/55236
2752         * fold-const.c (make_range_step) <case NEGATE_EXPR>: For -fwrapv
2753         and signed ARG0_TYPE, force low and high to be non-NULL.
2755 2012-11-17  H.J. Lu  <hongjiu.lu@intel.com>
2757         * common.opt (static-libasan): New option.
2758         * gcc.c (LIBASAN_SPEC): New macro.
2759         (LINK_COMMAND_SPEC): Replace -lasan with LIBASAN_SPEC.
2760         * doc/invoke.texi: Document -static-libasan.
2762 2012-11-17  Vladimir Makarov  <vmakarov@redhat.com>
2764         PR rtl-optimization/55342
2765         * lra-assigns.c (spill_for): Try to allocate other reload pseudos
2766         before and after spilling.
2768 2012-11-16  Sandra Loosemore  <sandra@codesourcery.com>
2770         * doc/extend.texi: Various copy-edits to comply with GCC coding
2771         standards for spelling, terminology, and markup, including use of
2772         American spelling, correct use of terms like "back end" and
2773         "run time", use correct name for GCC, use "@:" markup.
2775 2012-11-16  Jakub Jelinek  <jakub@redhat.com>
2777         PR tree-optimization/55329
2778         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Never clear
2779         bits in needed_eh_cleanup while iterating over the bitmap.
2780         Look through all forwarder blocks at once.
2782 2012-11-16  Jan Hubicka  <jh@suse.cz>
2784         * params.def (max-peeled-insns, max-completely-peeled-insns): Reduce
2785         to 100.
2787 2012-11-16  Simon Baldwin  <simonb@google.com>
2789         * doc/cppopts.texi: Document -f[no-]canonical-system-headers.
2790         * doc/install.texi: Document --enable-canonical-system-headers.
2792 2012-11-16  Vladimir Makarov  <vmakarov@redhat.com>
2794         PR rtl-optimization/55330
2795         * lra-constraints.c (MAX_INHERITANCE_PASSES): New macro.
2796         (lra_inheritance, lra_undo_inheritance): Use it to limit number of
2797         the passes.
2799 2012-11-16  Matthias Klose  <doko@ubuntu.com>
2801         * config/pa/t-linux: New file; define MULTIARCH_DIRNAME.
2802         * config.gcc <hppa*64*-*-linux*, hppa*-*-linux*> (tmake_file):
2803         Include pa/t-linux.
2805 2012-11-16  Jakub Jelinek  <jakub@redhat.com>
2807         PR target/54073
2808         * config/i386/i386.md (mov<mode>cc): Use comparison_operator
2809         instead of ordered_comparison_operator resp.
2810         ix86_fp_comparison_operator predicates.
2811         * config/i386/i386.c (ix86_expand_fp_movcc): Reject TImode
2812         or for -m32 DImode comparisons.
2814 2012-11-16  Jan Hubicka  <jh@suse.cz>
2816         PR tree-optimization/54717
2817         * tree-ssa-pre.c (do_partial_partial_insertion): Consider also edges
2818         with ANTIC_IN.
2820 2012-11-16  Uros Bizjak  <ubizjak@gmail.com>
2822         * config/i386/i386-protos.h (ix86_emit_mode_set): Add third argument.
2823         * config/i386/i386.h (EMIT_MODE_SET): Update.
2824         * config/i386/i386.c (ix86_avx_emit_vzeroupper): New function.
2825         (ix86_emit_mode_set) <AVX_U128>: Call ix86_avx_emit_vzeroupper.
2827 2012-11-16  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
2829         bdver3 Enablement
2830         * doc/extend.texi: Add details about bdver3.
2831         * doc/invoke.texi: Add details about bdver3.
2832         * config.gcc (i[34567]86-*-linux* | ...): Add bdver3.
2833         (case ${target}): Add bdver3.
2834         * config/i386/i386.h (TARGET_BDVER3): New definition.
2835         * config/i386/i386.md (define_attr "cpu"): Add bdver3.
2836         * config/i386/sse.md (sseshuf, sseshuf1): New type attributes.
2837         * config/i386/athlon.md: Handle sseshuf attribute.
2838         * config/i386/atom.md: Likewise.
2839         * config/i386/ppro.md: Likewise.
2840         * config/i386/bdver1.md: Likewise.
2841         * config/i386/i386.opt (flag_dispatch_scheduler): Add bdver3.
2842         * config/i386/i386-c.c (ix86_target_macros_internal): Add
2843         bdver3 def_and_undef
2844         * config/i386/driver-i386.c (host_detect_local_cpu): Let
2845         -march=native recognize bdver3 processors.
2846         * config/i386/i386.c (struct processor_costs bdver3_cost): New.
2847         (m_BDVER3): New definition.
2848         (m_AMD_MULTIPLE): Includes m_BDVER3.
2849         (initial_ix86_tune_features): Add bdver3 tune.
2850         (processor_target_table): Add bdver3 entry.
2851         (static const char *const cpu_names): Add bdver3 entry.
2852         (software_prefetching_beneficial_p): Add bdver3.
2853         (ix86_option_override_internal): Add bdver3 instruction sets.
2854         (ix86_option_override_internal): Remove XSAVEOPT for bdver1 and bdver2.
2855         (ix86_issue_rate): Add bdver3.
2856         (ix86_adjust_cost): Add bdver3.
2857         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver3.
2858         (enum processor_type): Add PROCESSOR_BDVER3.
2859         * config/i386/bdver3.md: New file describing bdver3 pipelines.
2861 2012-11-15  David S. Miller  <davem@davemloft.net>
2863         * expmed.c (expand_shift_1): Don't strip non-integral SUBREGs.
2865         * configure.ac: Add check for assembler SPARC4 instruction support.
2866         * configure: Rebuild.
2867         * config.in: Add HAVE_AS_SPARC4 section.
2868         * config/sparc/sparc.opt (mcbcond): New option.
2869         * doc/invoke.texi: Document it.
2870         * config/sparc/constraints.md: New constraint 'A' for 5-bit signed
2871         immediates.
2872         * doc/md.texi: Document it.
2873         * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_CBCOND.
2874         (sparc_option_override): Likewise.
2875         (emit_cbcond_insn): New function.
2876         (emit_conditional_branch_insn): Call it.
2877         (emit_cbcond_nop): New function.
2878         (output_ubranch): Use cbcond, remove label arg.
2879         (output_cbcond): New function.
2880         * config/sparc/sparc-protos.h (output_ubranch): Update.
2881         (output_cbcond): Declare it.
2882         (emit_cbcond_nop): Likewise.
2883         * config/sparc/sparc.md (type attribute): New types 'cbcond'
2884         and uncond_cbcond.
2885         (emit_cbcond_nop): New attribute.
2886         (length attribute): Handle cbcond and uncond_cbcond.
2887         (in_call_delay attribute): Reject cbcond and uncond_cbcond.
2888         (in_branch_delay attribute): Likewise.
2889         (in_uncond_branch_delay attribute): Likewise.
2890         (in_annul_branch_delay attribute): Likewise.
2891         (*cbcond_sp32, *cbcond_sp64): New insn patterns.
2892         (jump): Rewrite into an expander.
2893         (*jump_ubranch, *jump_cbcond): New patterns.
2894         * config/sparc/niagara4.md: Match 'cbcond' in 'n4_cti'.
2895         * config/sparc/sparc.h (AS_NIAGARA4_FLAG): New macro, use it
2896         when target default is niagara4.
2897         (SPARC_SIMM5_P): Define.
2898         * config/sparc/sol2.h (AS_SPARC64_FLAG): Adjust.
2899         (AS_SPARC32_FLAG): Define.
2900         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Use
2901         AS_NIAGARA4_FLAG as needed.
2903 2012-11-15  Steve Ellcey  <sellcey@mips.com>
2905         * expr.c (expand_cond_expr_using_cmove): Use promoted mode for temp.
2907 2012-11-15  Tom de Vries  <tom@codesourcery.com>
2909         PR tree-optimization/54619
2910         * tree-ssa-loop-ivopts.c (get_use_type): New function.
2911         (get_computation_at): Use get_use_type.
2912         (get_computation_cost_at): Declare and set mem_mode.  Use mem_mode.
2914 2012-11-15  Jakub Jelinek  <jakub@redhat.com>
2916         * asan.c (report_error_func): Set DECL_IGNORED_P, don't touch
2917         DECL_ASSEMBLER_NAME.
2918         (asan_init_func): Likewise.
2919         (asan_finish_file): Use void * instead of __asan_global * as type of
2920         __asan_{,un}register_globals.  Set DECL_IGNORED_P on the decls.
2922 2012-11-15  Matthias Klose  <doko@ubuntu.com>
2924         * Makefile.in (if_multiarch): Don't use a GNU make 3.81 feature.
2926 2012-11-14  Jan Hubicka  <jh@suse.cz>
2928         PR bootstrap/55051
2929         * gcov-io.c (gcov_read_summary): Fix array bound check.
2931 2012-11-14  Sterling Augustine  <saugustine@google.com>
2933         PR debug/55328
2934         * dwarf2out.c (index_address_table_entry): Check a node's refcount.
2936 2012-11-14  Jan Hubicka  <jh@suse.cz>
2938         PR bootstrap/55051
2939         * ipa-inline.c (edge_badness): Improve dumping; fix overflow.
2941 2012-11-14  Matthias Klose  <doko@ubuntu.com>
2943         * config/sparc/t-linux64: Add multiarch names in MULTILIB_OSDIRNAMES.
2944         * config/sparc/t-linux: New file; define MULTIARCH_DIRNAME.
2945         * config.gcc <sparc-*-linux*> (tmake_file): Include sparc/t-linux
2946         for 32bit non-biarch configurations.
2948 2012-11-14  Matthias Klose  <doko@ubuntu.com>
2950         * doc/invoke.texi: Document -print-multiarch.
2951         * doc/install.texi: Document --enable-multiarch.
2952         * doc/fragments.texi: Document MULTILIB_OSDIRNAMES, MULTIARCH_DIRNAME.
2953         * configure.ac: Add --enable-multiarch option.
2954         * configure: Regenerate.
2955         * Makefile.in (s-mlib): Pass MULTIARCH_DIRNAME to genmultilib.
2956         enable_multiarch, with_float: New macros.
2957         if_multiarch: New macro, define in terms of enable_multiarch.
2958         * genmultilib: Add new argument for the multiarch name.
2959         * gcc.c (multiarch_dir): Define.
2960         (for_each_path): Search for multiarch suffixes.
2961         (driver_handle_option): Handle multiarch option.
2962         (do_spec_1): Pass -imultiarch if defined.
2963         (main): Print multiarch.
2964         (set_multilib_dir): Separate multilib and multiarch names
2965         from multilib_select.
2966         (print_multilib_info): Ignore multiarch names in multilib_select.
2967         * incpath.c (add_standard_paths): Search the multiarch include dirs.
2968         * cppdefault.h (default_include): Document multiarch in multilib
2969         member.
2970         * cppdefault.c: [LOCAL_INCLUDE_DIR, STANDARD_INCLUDE_DIR] Add an
2971         include directory for multiarch directories.
2972         * common.opt: New options --print-multiarch and -imultilib.
2973         * config.gcc <i[34567]86-*-linux* | x86_64-*-linux*> (tmake_file):
2974         Include i386/t-linux.
2975         <i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu> (tmake_file):
2976         Include i386/t-kfreebsd.
2977         <i[34567]86-*-gnu*> (tmake_file): Include i386/t-gnu.
2978         * config/i386/t-linux64: Add multiarch names in
2979         MULTILIB_OSDIRNAMES, define MULTIARCH_DIRNAME.
2980         * config/i386/t-gnu: New file.
2981         * config/i386/t-kfreebsd: Likewise.
2982         * config/i386/t-linux: Likewise.
2984 2012-11-14  Jan Hubicka  <jh@suse.cz>
2986         * tree.c (set_call_expr_flags): New function.
2987         (local_define_builtin): Use it.
2988         * tree.h (set_call_expr_flags): Declare.
2990 2012-11-14  Uros Bizjak  <ubizjak@gmail.com>
2991             Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
2993         PR target/47440
2994         * config/i386/i386.c (gate_insert_vzeroupper): New function.
2995         (rest_of_handle_insert_vzeroupper): Ditto.
2996         (struct rtl_opt_pass pass_insert_vzeroupper): New.
2997         (ix86_option_override): Register vzeroupper insertion pass here.
2998         (ix86_check_avx256_register): Handle SUBREGs properly.
2999         (ix86_init_machine_status): Remove optimize_mode_switching[AVX_U128]
3000         initialization.
3002 2012-11-14  David Edelsohn  <dje.gcc@gmail.com>
3004         * configure.ac (HAVE_LD_LARGE_TOC): Add AIX test.
3005         * configure: Regenerated.
3006         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Warn if
3007         other toc options used with cmodel. Disable TARGET_NO_FP_IN_TOC
3008         and TARGET_NO_SUM_IN_TOC if not CMODEL_SMALL. CMODEL_MEDIUM means
3009         CMODEL_LARGE on AIX.
3010         (ASM_SPEC): -mvsx implies -mpwr6. Add -many.
3011         (ASM_DEFAULT_SPEC): Use -mpwr4.
3012         (TARGET_CMODEL): Define.
3013         (SET_CMODEL): Define.
3014         * config/rs6000/rs6000.md (largetoc_high_aix<mode>): New.
3015         (largetoc_high_plus_aix<mode>): New.
3016         (largetoc_low<mode>): Change to mode iterator. Test TARGET_TOC
3017         instead of TARGET_ELF.
3018         (tocref): Remove TARGET_ELF test.
3019         * config/rs6000/rs6000.c (output_toc): Use [TE] for large TOC
3020         symbols on AIX.
3021         * config/rs6000/aix64.opt (mcmodel): New.
3023 2012-11-14  Andreas Tobler  <andreast@fgznet.ch>
3025         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Guard
3026         variables with ASM_OUTPUT_TYPE_DIRECTIVE and
3027         HAVE_GNU_INDIRECT_FUNCTION where needed.
3029 2012-11-13  Ian Lance Taylor  <iant@google.com>
3031         * common.opt (fPIC, fPIE, fpic, fpie): Create a Negative loop such
3032         that any of these options disables the others.
3034 2012-11-13  Sriraman Tallam  <tmsriram@google.com>
3036         * cgraph.c (insert_new_cgraph_node_version): Use cgraph_get_node
3037         instead of cgraph_get_create_node.
3038         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Move
3039         ifunc not supported code to the end.
3041 2012-11-13  Martin Jambor  <mjambor@suse.cz>
3043         PR tree-optimization/55253
3044         * ipa-cp.c (merge_aggregate_lattices): Propagate aggs_contain_variable
3045         flag.
3047 2012-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3048             H.J. Lu  <hongjiu.lu@intel.com>
3050         PR middle-end/55142
3051         * config/i386/i386.c (legitimize_pic_address): Properly handle
3052         REG + CONST.
3053         (ix86_print_operand_address): Set code to 'k' when forcing
3054         addr32 prefix.  For x32, zero-extend negative displacement if
3055         it < -16*1024*1024.
3057 2012-11-13  Uros Bizjak  <ubizjak@gmail.com>
3059         PR target/41993
3060         * mode-switching.c (create_pre_exit): Set return_copy to last_insn if
3061         copy_start is not a function return regno. Skip debug instructions
3062         in instruction scan loop.
3064 2012-11-13  Andrew Stubbs  <ams@codesourcery.com>
3065             Ulrich Weigand  <ulrich.weigand@linaro.org>
3067         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): Fix comment.
3068         * config/arm/arm.md (opt, opt_enabled): New attributes.
3069         (enabled): Use opt_enabled.
3070         (ashldi3, ashrdi3, lshrdi3): Add TARGET_NEON case.
3071         (ashldi3): Allow general operands for TARGET_NEON case.
3072         * config/arm/iterators.md (rshifts): New code iterator.
3073         (shift, shifttype): New code attributes.
3074         * config/arm/neon.md (UNSPEC_LOAD_COUNT): New unspec type.
3075         (neon_load_count, ashldi3_neon_noclobber, ashldi3_neon,
3076         signed_shift_di3_neon, unsigned_shift_di3_neon,
3077         ashrdi3_neon_imm_noclobber, lshrdi3_neon_imm_noclobber,
3078         <shift>di3_neon): New patterns.
3080 2012-11-13  Jakub Jelinek  <jakub@redhat.com>
3082         * Makefile.in (asan.o): Depend on $(TM_P_H).
3084         PR tree-optimization/55281
3085         * tree-vect-generic.c (expand_vector_condition): Accept any
3086         is_gimple_val rather than just SSA_NAME if not COMPARISON_CLASS_P.
3087         * fold-const.c (fold_ternary_loc): Fold VEC_COND_EXPR if arg0 is
3088         either integer_all_onesp or integer_zerop.
3089         * tree-vect-stmts.c (vectorizable_condition): Build the condition
3090         using corresponding vector integer type instead of vectype.
3092         PR rtl-optimization/54127
3093         * cfgrtl.c (force_nonfallthru_and_redirect): When redirecting
3094         asm goto labels from BB_HEAD (e->dest) to target bb, decrement
3095         LABEL_NUSES of BB_HEAD (e->dest) and increment LABEL_NUSES of
3096         BB_HEAD (target) appropriately and adjust JUMP_LABEL and/or
3097         REG_LABEL_TARGET and REG_LABEL_OPERAND.
3099 2012-11-12  Jakub Jelinek  <jakub@redhat.com>
3101         * asan.c (instrument_builtin_call) <case BUILT_IN_BCOPY>: Fix up
3102         dest assignment.
3104 2012-11-13  Hans-Peter Nilsson  <hp@axis.com>
3106         PR target/55257
3107         * config/cris/cris.c (cris_asm_output_mi_thunk): Call
3108         final_start_function and final_end_function.
3110 2012-11-12  David Edelsohn  <dje.gcc@gmail.com>
3112         * asan.c: Include tm_p.h.
3114 2012-11-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3116         PR target/55195
3117         * config/pa/pa.md (attr type): Add sibcall and sh_func_adrs insn types.
3118         (in_branch_delay): Don't allow sibcall or sh_func_adrs insns.
3119         (in_nullified_branch_delay): Likewise.
3120         (in_call_delay): Likewise.
3121         Define delay for sibcall insns.  Adjust Z3 and Z4 insn reservations for
3122         new types.  Add opaque cond to mark all calls, sibcalls, dyncalls and
3123         the $$sh_func_adrs call as variable.  Update type of sibcalls and
3124         $$sh_func_adrs call.
3125         * config/pa/pa.c (pa_adjust_insn_length): Revise to return updated
3126         length instead of adjustment.  Handle negative and undefined call
3127         adjustments for insn_default_length.  Remove adjustment for millicode
3128         insn with unfilled delay slot.
3129         (pa_output_millicode_call): Update for revised millicode length.
3130         * config/pa/pa.h (ADJUST_INSN_LENGTH): Revise to set LENGTH.
3132 2012-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3134         * tree-ssa-ccp.c (dump_lattice_value) <CONSTANT>: Fix duplication.
3136 2012-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3138         * common.opt (fvar-tracking-uninit): Document.
3139         * toplev.c (process_options): Fix handling of flag_var_tracking_uninit.
3140         * config/darwin.c (darwin_override_options): Likewise.
3142 2012-11-12  Steven Bosscher  <steven@gcc.gnu.org>
3144         * sched-vis.c (print_pattern): Handle NULL patterns.
3146 2012-11-12  Steven Bosscher  <steven@gcc.gnu.org>
3147             Jakub Jelinek  <jakub@redhat.com>
3149         PR rtl-optimization/51447
3150         * df-scan.c (df_get_entry_block_def_set): Add global regs to the set.
3151         * df-problems.c (df_lr_local_compute): Make global regs always live.
3152         * dce.c (deletable_insn_p): Make insns setting a global reg
3153         inherently necessary.
3155 2012-11-12  Ian Bolton  <ian.bolton@arm.com>
3157         * config/aarch64/aarch64.md (cmov<mode>_insn): Emit CSINC when
3158         one of the alternatives is constant 1.
3159         * config/aarch64/constraints.md: New constraint.
3160         * config/aarch64/predicates.md: Rename predicate
3161         aarch64_reg_zero_or_m1 to aarch64_reg_zero_or_m1_or_1.
3163 2012-11-12  Ian Bolton  <ian.bolton@arm.com>
3165         * config/aarch64/aarch64.md (*compare_neg<mode>): New pattern.
3167 2012-11-12  Tobias Burnus  <burnus@net-b.de>
3169         * doc/invoke.texi: Move -faddress-sanitizer from Optimization
3170         Options to Debugging Options.
3172 2012-11-12  Jakub Jelinek  <jakub@redhat.com>
3174         * asan.c: Formatting cleanups.
3176 2012-11-12  Wei Mi  <wmi@google.com>
3178         * gcc.c (LINK_COMMAND_SPEC): Add -lasan to link command if
3179         -faddress-sanitizer is on.
3181 2012-11-12  Dodji Seketeli  <dodji@redhat.com>
3183         * gimple.h (is_gimple_builtin_call): Declare ...
3184         * gimple.c (is_gimple_builtin_call): ... new public function.
3185         * asan.c (insert_if_then_before_iter, instrument_mem_region_access,
3186         instrument_strlen_call, maybe_instrument_builtin_call,
3187         instrument_call): New static functions.
3188         (create_cond_insert_point): Renamed
3189         create_cond_insert_point_before_iter into this.  Add a new
3190         parameter to decide whether to insert the condition before or
3191         after the statement iterator.
3192         (build_check_stmt): Adjust for the new create_cond_insert_point.
3193         Add a new parameter to decide whether to add the instrumentation
3194         code before or after the statement iterator.
3195         (instrument_assignment): Factorize from ...
3196         (transform_statements): ... here.  Use maybe_instrument_call to
3197         instrument builtin function calls as well.
3198         (instrument_derefs): Adjust for the new parameter of
3199         build_check_stmt.  Fix detection of bit-field access.
3201 2012-11-12  Dodji Seketeli  <dodji@redhat.com>
3203         * asan.c (create_cond_insert_point_before_iter): Factorize out of ...
3204         (build_check_stmt): ... here.
3206 2012-11-12  Dodji Seketeli  <dodji@redhat.com>
3208         * asan.c (create_cond_insert_point_before_iter): Factorize out of ...
3209         (build_check_stmt): ... here.
3211 2012-11-12  Dodji Seketeli  <dodji@redhat.com>
3213         * asan.c (build_check_stmt): Accept the memory access to be
3214         represented by an SSA_NAME.
3216 2012-11-12  Jakub Jelinek  <jakub@redhat.com>
3217             Wei Mi  <wmi@google.com>
3219         * varasm.c: Include asan.h.
3220         (assemble_noswitch_variable): Grow size by asan_red_zone_size
3221         if decl is asan protected.
3222         (place_block_symbol): Likewise.
3223         (assemble_variable): If decl is asan protected, increase
3224         DECL_ALIGN if needed, and for decls emitted using
3225         assemble_variable_contents append padding zeros after it.
3226         * Makefile.in (varasm.o): Depend on asan.h.
3227         * asan.c: Include output.h.
3228         (asan_pp, asan_pp_initialized, asan_ctor_statements): New variables.
3229         (asan_pp_initialize, asan_pp_string): New functions.
3230         (asan_emit_stack_protection): Use asan_pp{,_initialized}
3231         instead of local pp{,_initialized} vars, use asan_pp_initialize
3232         and asan_pp_string helpers.
3233         (asan_needs_local_alias, asan_protect_global,
3234         asan_global_struct, asan_add_global): New functions.
3235         (asan_finish_file): Protect global vars that can be protected. Use
3236         asan_ctor_statements instead of ctor_statements
3237         * asan.h (asan_protect_global): New prototype.
3238         (asan_red_zone_size): New inline function.
3240 2012-11-12  Jakub Jelinek  <jakub@redhat.com>
3242         * Makefile.in (asan.o): Depend on $(EXPR_H) $(OPTABS_H).
3243         (cfgexpand.o): Depend on asan.h.
3244         * asan.c: Include expr.h and optabs.h.
3245         (asan_shadow_set): New variable.
3246         (asan_shadow_cst, asan_emit_stack_protection): New functions.
3247         (asan_init_shadow_ptr_types): Initialize also asan_shadow_set.
3248         * cfgexpand.c: Include asan.h.  Define HOST_WIDE_INT heap vector.
3249         (partition_stack_vars): If i is large alignment and j small
3250         alignment or vice versa, break out of the loop instead of continue,
3251         and put the test earlier.  If flag_asan, break out of the loop
3252         if for small alignment size is different.
3253         (struct stack_vars_data): New type.
3254         (expand_stack_vars): Add DATA argument.  Change PRED type to
3255         function taking size_t argument instead of tree.  Adjust pred
3256         calls.  Fill DATA in and add needed padding in between variables
3257         if -faddress-sanitizer.
3258         (defer_stack_allocation): Defer everything for flag_asan.
3259         (stack_protect_decl_phase_1, stack_protect_decl_phase_2): Take
3260         size_t index into stack_vars array instead of the decl directly.
3261         (asan_decl_phase_3): New function.
3262         (expand_used_vars): Return var destruction sequence.  Adjust
3263         expand_stack_vars calls, add another one for flag_asan.  Call
3264         asan_emit_stack_protection if expand_stack_vars added anything
3265         to the vectors.
3266         (expand_gimple_basic_block): Add disable_tail_calls argument.
3267         (gimple_expand_cfg): Pass true to it if expand_used_vars returned
3268         non-NULL.  Emit the sequence returned by expand_used_vars after
3269         return_label.
3270         * asan.h (asan_emit_stack_protection): New prototype.
3271         (asan_shadow_set): New decl.
3272         (ASAN_RED_ZONE_SIZE, ASAN_STACK_MAGIC_LEFT, ASAN_STACK_MAGIC_MIDDLE,
3273         ASAN_STACK_MAGIC_RIGHT, ASAN_STACK_FRAME_MAGIC): Define.
3274         (asan_protect_stack_decl): New inline.
3275         * toplev.c (process_options): Also disable -faddress-sanitizer on
3276         !FRAME_GROWS_DOWNWARDS targets.
3278 2012-11-12  Jakub Jelinek  <jakub@redhat.com>
3280         * asan.c (build_check_stmt): Rename join_bb variable to else_bb.
3281         (gate_asan_O0): New function.
3282         (pass_asan_O0): New variable.
3283         * passes.c (init_optimization_passes): Add pass_asan_O0.
3284         * tree-pass.h (pass_asan_O0): New declaration.
3286 2012-11-12  Jakub Jelinek  <jakub@redhat.com>
3287             Xinliang David Li  <davidxl@google.com>
3288             Dodji Seketeli  <dodji@redhat.com>
3290         * Makefile.in (GTFILES): Add $(srcdir)/asan.c.
3291         (asan.o): Update the dependencies of asan.o.
3292         * asan.c (tm.h, tree.h, tm_p.h, basic-block.h, flags.h
3293         function.h, tree-inline.h, tree-dump.h, diagnostic.h, demangle.h,
3294         langhooks.h, ggc.h, cgraph.h, gimple.h): Remove these unused but
3295         included headers.
3296         (shadow_ptr_types): New variable.
3297         (report_error_func): Change is_store argument to bool, don't append
3298         newline to function name.
3299         (PROB_VERY_UNLIKELY, PROB_ALWAYS): Define.
3300         (build_check_stmt): Change is_store argument to bool.  Emit GIMPLE
3301         directly instead of creating trees and gimplifying them.  Mark
3302         the error reporting function as very unlikely.
3303         (instrument_derefs): Change is_store argument to bool.  Use
3304         int_size_in_bytes to compute size_in_bytes, simplify size check.
3305         Use build_fold_addr_expr instead of build_addr.
3306         (transform_statements): Adjust instrument_derefs caller.
3307         Use gimple_assign_single_p as stmt test.  Don't look at MEM refs
3308         in rhs2.
3309         (asan_init_shadow_ptr_types): New function.
3310         (asan_instrument): Don't push/pop gimplify context.
3311         Call asan_init_shadow_ptr_types if not yet initialized.
3312         * asan.h (ASAN_SHADOW_SHIFT): Adjust comment.
3314 2012-11-12  Jakub Jelinek  <jakub@redhat.com>
3316         * toplev.c (process_options): Warn and turn off
3317         -faddress-sanitizer if not supported by target.
3318         * asan.c: Include target.h.
3319         (asan_scale, asan_offset_log_32, asan_offset_log_64,
3320         asan_offset_log): Removed.
3321         (build_check_stmt): Use ASAN_SHADOW_SHIFT and
3322         targetm.asan_shadow_offset ().
3323         (asan_instrument): Don't initialize asan_offset_log.
3324         * asan.h (ASAN_SHADOW_SHIFT): Define.
3325         * target.def (TARGET_ASAN_SHADOW_OFFSET): New hook.
3326         * doc/tm.texi.in (TARGET_ASAN_SHADOW_OFFSET): Add it.
3327         * doc/tm.texi: Regenerated.
3328         * Makefile.in (asan.o): Depend on $(TARGET_H).
3329         * config/i386/i386.c (ix86_asan_shadow_offset): New function.
3330         (TARGET_ASAN_SHADOW_OFFSET): Define.
3332 2012-11-12  Wei Mi  <wmi@google.com>
3333             Diego Novillo  <dnovillo@google.com>
3334             Dodji Seketeli  <dodji@redhat.com>
3336         * Makefile.in: Add asan.c and its dependencies.
3337         * common.opt: Add -faddress-sanitizer option.
3338         * doc/invoke.texi: Document the new flag.
3339         * passes.c: Add the asan pass.
3340         * toplev.c (compile_file): Call asan_finish_file.
3341         * asan.c: New file.
3342         * asan.h: New file.
3343         * tree-pass.h: Declare pass_asan.
3345 2012-11-12  Tobias Burnus  <burnus@net-b.de>
3347         * diagnostic.c (diagnostic_append_note): Also call va_end when
3348         inhibit_notes_p is true.
3350 2012-11-12  Bin Cheng  <bin.cheng@arm.com>
3352         * gcse.c (struct bb_data): Add new fields, old_pressure, live_in
3353         and backup.
3354         (get_regno_pressure_class): Add prototype.
3355         (update_bb_reg_pressure): New.
3356         (should_hoist_expr_to_dom): Add new parameter from.
3357         Monitor the change of reg pressure and use it to drive hoisting.
3358         (hoist_code): Update LIVE and reg pressure information.
3359         (calculate_bb_reg_pressure): Initialize live_in and backup.
3361 2012-11-12  Oleg Endo  <olegendo@gcc.gnu.org>
3363         * doc/md.texi (Standard Pattern Names For Generation): Fix swapped
3364         sine and cosine operands in the sincos description.
3366 2012-11-12  Oleg Endo  <olegendo@gcc.gnu.org>
3368         PR target/53512
3369         * config/sh/sh.md (sincossf3): Fix swapped sin and cos operands.
3371 2012-11-11  H.J. Lu  <hongjiu.lu@intel.com>
3373         * config/i386/i386.md (*movti_internal_rex64): Remove "!" from
3374         riF->o alternative.
3376 2012-11-11  Eric Botcazou  <ebotcazou@adacore.com>
3378         * config/sparc/sparc.h (AS_NIAGARA3_FLAG): Tweak.
3379         * config/sparc/sol2.h (TARGET_CPU_niagara4 support): Fix pasto.
3381 2012-11-11  Eric Botcazou  <ebotcazou@adacore.com>
3382             H.J. Lu  <hongjiu.lu@intel.com>
3384         PR rtl-optimization/55247
3385         PR middle-end/55259
3386         * emit-rtl.c (adjust_address_1): If POINTERS_EXTEND_UNSIGNED > 0,
3387         handle ZERO_EXTEND.
3388         * recog.c (offsettable_address_addr_space_p): Likewise.
3390 2012-11-11  Steven Bosscher  <steven@gcc.gnu.org>
3392         PR middle-end/55263
3393         * postreload.c (rest_of_handle_postreload): With non-call exceptions,
3394         if edges are purged call cleanup_cfg to remove unreachable blocks.
3396 2012-11-11  Sandra Loosemore  <sandra@codesourcery.com>
3398         * doc/extend.texi: Copy-edit to use "built-in function" instead
3399         of "builtin", per GCC coding standards.  Also use consistent
3400         capitalization in titles of sections describing built-in functions.
3402 2012-11-11  Martin Jambor  <mjambor@suse.cz>
3404         PR tree-optimization/55238
3405         * ipa-cp.c (agg_pass_through_permissible_p): New function.
3406         (propagate_aggs_accross_jump_function): Use it.
3407         (find_aggregate_values_for_callers_subset): Likewise and relax an
3408         assert.
3410 2012-11-10  Uros Bizjak  <ubizjak@gmail.com>
3412         PR target/47440
3413         * config/i386/i386.c (check_avx256_stores): Remove.
3414         (ix86_check_avx256_register): New.
3415         (ix86_avx_u128_mode_needed): Use ix86_check_avx256_register.
3416         Check the whole RTX for 256bit registers using for_each_rtx.
3417         (ix86_check_avx_stores): New.
3418         (ix86_avx_u128_mode_after): Change mode of CALL RTX to AVX_U128_CLEAN
3419         if there are no 256bit registers used in the function return register.
3420         (ix86_avx_u128_mode_entry): Use ix86_check_avx256_register.
3421         (ix86_avx_u128_mode_exit): Ditto.
3423 2012-11-10  Jan Hubicka  <jh@suse.cz>
3425         PR middle-end/48636
3426         * ipa-inline.c (want_inline_small_function_p): Take aray index hint.
3427         (edge_badness): Likewise.
3428         * ipa-inline.h (inline_hints_vals): Add array_index and comments.
3429         (inline_summary): Add ARRAY_INDEX.
3430         * ipa-inline-analysis.c (dump_inline_hints): Dump array_index hint.
3431         (reset_inline_summary): Handle array_index hint.
3432         (inline_node_duplication_hook): Likewise.
3433         (dump_inline_summary): Likewise.
3434         (array_index_predicate): New function.
3435         (estimate_function_body_sizes): Use it.
3436         (estimate_node_size_and_time): Use array_index hint.
3437         (inline_merge_summary, inline_read_section): Likewise.
3439 2012-11-10  Sandra Loosemore  <sandra@codesourcery.com>
3441         * doc/extend.texi: Copy-edit to use "bit-field" consistently
3442         instead of "bitfield" or "bit field".
3444 2012-11-10  Sandra Loosemore  <sandra@codesourcery.com>
3446         * doc/extend.texi: Copy-edit to fix incorrect hyphenation phrases
3447         involving "bit", "byte", "word", "precision", and "floating"
3448         modifiers.
3450 2012-11-10  Sandra Loosemore  <sandra@codesourcery.com>
3452         * doc/extend.texi: Copy-edit to fix incorrect uses of "which"
3453         and "that" throughout the file.
3455 2012-11-10  Andrew Pinski  <apinski@cavium.com>
3457         PR bootstrap/55202
3458         * configure.ac: Set PLUGIN_LD_SUFFIX to just "ld" if it was "ld-new"
3459         or "collect-ld".
3460         * configure: Regenerate.
3462 2012-11-10  Eric Botcazou  <ebotcazou@adacore.com>
3464         * expr.c (store_field): Remove TYPE parameter.  Remove block of code
3465         dealing with BLKmode in registers.  Reimplement this support using
3466         pseudo-registers and bit-field techniques.
3467         (store_constructor_field): Remove TYPE parameter and adjust calls to
3468         store_field.
3469         (expand_assignment): Adjust calls to store_field.  Add comment.
3470         (store_expr): Add comment.
3471         (store_constructor): Adjust calls to store_constructor_field.
3472         (expand_expr_real_2): Adjust call to store_field.
3474 2012-11-10  Vladimir Makarov  <vmakarov@redhat.com>
3475             Uros Bizjak  <ubizjak@gmail.com>
3477         PR target/55247
3478         * config/i386/i386.md (*movti_internal_rex64): Add "!" to riF->o
3479         alternative.
3481 2012-11-09  Ed Smith-Rowland  <3dw4rd@verizon.net>
3483         PR c++/54413
3484         * doc/invoke.texi: Document f[no-]ext-numeric-literals flag.
3486 2012-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3488         * doc/install.texi (sparc64-x-solaris2): Mention MPC as well.
3490 2012-11-09  Richard Henderson  <rth@redhat.com>
3492         * config/i386/i386.c (ix86_lra_p): Remove.
3493         (TARGET_LRA_P): Use hook_bool_void_true.
3495 2012-11-09  Jason Merrill  <jason@redhat.com>
3497         * attribs.c (lookup_attribute_spec): Handle getting a TREE_LIST.
3499 2012-11-09  Vladimir Makarov  <vmakarov@redhat.com>
3501         PR tree-optimization/55154
3502         * lra-int.h (LRA_LOSER_COST_FACTOR, LRA_MAX_REJECT): New macros.
3503         * lra.c (setup_operand_alternative): Use them.
3504         * lra-constraints.c (LOSER_COST_FACTOR, MAX_OVERALL_COST_BOUND):
3505         Remove.
3506         (process_alt_operands): Use LRA_LOSER_COST_FACTOR and LRA_MAX_REJECT.
3507         Accumulate reject instead of setting for non-const.
3508         (curr_insn_transform): Initialize best_losers and best_overall by
3509         INT_MAX.
3511 2012-11-09  Christian Bruel  <christian.bruel@st.com>
3513         * config/sh/sh.c (sh_can_use_simple_return_p): Enable with
3514         -freorder-blocks-and-partition.
3516 2012-11-09  Kenneth Zadeck <zadeck@naturalbridge.com>
3518         * rtl.h (CONST_SCALAR_INT_P): New macro.
3519         * cfgexpand.c (expand_debug_locations): Changed to use
3520         CONST_SCALAR_INT_P macro.
3521         * combine.c (try_combine, subst, make_extraction,
3522         gen_lowpart_for_combine): Ditto.
3523         * cselib.c (entry_and_rtx_equal_p, rtx_equal_for_cselib_1): Ditto.
3524         * dwarf2out.c (loc_descriptor): Ditto.
3525         * emit-rtl.c (gen_lowpart_common): Ditto.
3526         * ira-costs.c (record_reg_classes, record_address_regs): Ditto.
3527         * ira-lives.c (single_reg_class): Ditto.
3528         * recog.c (simplify_while_replacing, asm_operand_ok,
3529         constrain_operands): Ditto.
3530         * reload.c (find_reloads): Ditto.
3531         * simplify-rtx.c (simplify_unary_operation_1,
3532         simplify_const_unary_operation, simplify_binary_operation_1,
3533         simplify_const_binary_operation, simplify_relational_operation_1,
3534         simplify_subreg): Ditto.
3536 2012-11-09  Steven Bosscher  <steven@gcc.gnu.org>
3538         PR middle-end/54385
3539         * postreload.c (reload_cse_simplify): Return a bool indicating
3540         whether the CFG was changed.
3541         (reload_cse_regs_1): Traverse the CFG instead of the insns chain.
3542         Cleanup the CFG if edges may have been removed.
3543         (reload_cse_regs): Update.
3545 2012-11-09  Andrey Belevantsev  <abel@ispras.ru>
3547         PR rtl-optimization/54472
3548         * sel-sched-ir.c (has_dependence_note_reg_set): Handle implicit sets.
3549         (has_dependence_note_reg_clobber, has_dependence_note_reg_use):
3550         Likewise.
3552 2012-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3554         * config/i386/i386.c (release_scratch_register_on_entry): Also adjust
3555         sp_offset manually.
3557 2012-11-08  Christian Bruel  <christian.bruel@st.com>
3559         * tree-ssa-tail-merge.c (replace_block_by): Update bb2 profile count.
3560         Do not reset dead bb1->frequency.
3562 2012-11-08  Steven Bosscher  <steven@gcc.gnu.org>
3564         PR tree-optimization/55191
3565         * cfganal.c (connect_infinite_loops_to_exit): Call dfs_deadend here.
3566         (flow_dfs_compute_reverse_execute): Don't call it here.
3568 2012-11-08  Jakub Jelinek  <jakub@redhat.com>
3570         PR debug/53145
3571         * dwarf2out.c (gen_compile_unit_die): Don't call gen_producer_string
3572         here, instead add "" if producer_string is NULL.
3573         (dwarf2out_finish): Call gen_producer_string here, unconditionally
3574         decrease refcount of the old indirect string and set val_str to
3575         find_AT_string result.
3577         PR debug/54499
3578         * cgraphunit.c (assemble_thunk): Don't call source_line debug hook
3579         here, instead call insn_locations_{init,finalize} and initialize
3580         prologue_location.
3582 2012-11-08  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
3584         PR driver/54789
3585         * gcc.c (process_command): Use save_switch for synthesized
3586         -fcompare-debug=* option; mark the switch as known.
3588 2012-11-08  Jakub Jelinek  <jakub@redhat.com>
3590         PR target/54308
3591         * config/rs6000/rs6000.c (legitimate_indirect_address_p): Remove
3592         inline keyword.
3594 2012-11-08  Bernd Schmidt  <bernds@codesourcery.com>
3596         PR rtl-optimization/54850
3597         * sched-deps.c (find_inc): Add all dependencies from the inc_insn
3598         to the mem_insn.
3600 2012-11-08  Jan Hubicka  <jh@suse.cz>
3602         PR middle-end/48636
3603         * ipa-inline.c (big_speedup_p): New function.
3604         (want_inline_small_function_p): Use it.
3605         (edge_badness): Dump it.
3606         * params.def (inline-min-speedup): New parameter.
3607         * doc/invoke.texi (inline-min-speedup): Document.
3609 2012-11-08  Martin Jambor  <mjambor@suse.cz>
3611         * ipa-prop.c (determine_known_aggregate_parts): Skip writes to
3612         different declarations when tracking writes to a declaration.
3614 2012-11-07  David S. Miller  <davem@davemloft.net>
3616         * config/sparc/constraints.md ("U"): Document, in detail,
3617         which this constraint is necessary.
3619 2012-11-07  Uros Bizjak  <ubizjak@gmail.com>
3621         PR middle-end/55235
3622         * expr.c (store_expr): Do not call emit_block_move for
3623         non-BLKmode values.
3625 2012-11-07  Eric Botcazou  <ebotcazou@adacore.com>
3627         PR middle-end/55219
3628         * fold-const.c (fold_binary_op_with_conditional_arg): Do not fold if
3629         the argument is itself a conditional expression.
3631 2012-11-07  Vladimir Makarov  <vmakarov@redhat.com>
3633         PR rtl-optimization/55122
3634         * lra-constraints.c (match_reload): Sync values for dead input pseudos.
3636 2012-11-07  Richard Henderson  <rth@redhat.com>
3638         * trans-mem.c (pass_ipa_tm): Don't use TODO_update_ssa.
3640 2012-11-07  Peter Bergner  <bergner@vnet.ibm.com>
3642         * doc/invoke.texi (-mcpu=power8): Document.
3643         * config.in (HAVE_AS_POWER8): New.
3644         * config.gcc: Add cpu_type power8.
3645         * configure.ac: (HAVE_AS_POWER8): Check for assembler support for
3646         the POWER8 instructions.
3647         * configure: Regenerate.
3648         * config/rs6000/rs6000.h: (ASM_CPU_POWER8_SPEC): Define.
3649         (ASM_CPU_SPEC): Pass %(asm_cpu_power8) for -mcpu=power8.
3650         (EXTRA_SPECS): Add asm_cpu_power8 spec string.
3651         * config/rs6000/rs6000-cpus.def (processor_target_table): Alias
3652         POWER8 to POWER7.
3653         * config/rs6000/rs6000-tables.opt: Regenerate.
3654         * config/rs6000/driver-rs6000.c (ASM_CPU_SPEC): For -mcpu=power8,
3655         pass %(asm_cpu_power8)/-mpwr8.
3656         * config/rs6000/aix53.h: Likewise.
3657         * config/rs6000/aix61.h: Likewise.
3659 2012-11-07  Uros Bizjak  <ubizjak@gmail.com>
3661         PR target/55224
3662         * config/i386/i386.c (ix86_function_ok_for_sibcall): Put back exception
3663         to make a sibcall if one of the functions has void return type.
3665 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3667         PR c/53063
3668         * doc/invoke.texi (Wformat): Update.
3670 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3672         * optc-gen.awk: Factor code out to...
3673         * opt-functions.awk (lang_enabled_by): ... this new function.
3675 2012-11-07  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3677         PR c/53063
3678         * common.opt (Wswitch,Wswitch-default,Wswitch-enum): Move to c.opt.
3680 2012-11-07  Yufeng Zhang  <yufeng.zhang@arm.com>
3682         * config/aarch64/aarch64.c (aarch64_expand_prologue): Add the missing
3683         argument 'Pmode' to the 'plus_constant' call.
3685 2012-11-07  Martin Jambor  <mjambor@suse.cz>
3687         PR tree-optimization/53787
3688         * ipa-cp.c (ipcp_value_source): New field offset.
3689         (ipcp_agg_lattice): New type.
3690         (ipcp_param_lattices): Likewise, move virt_call from ipcp_lattice here.
3691         (ipcp_agg_lattice_pool): New variable.
3692         (ipa_get_parm_lattices): New function.
3693         (ipa_get_lattice): Turned into ipa_get_scalar_lat, use the above.
3694         Adjusted all callers.
3695         (print_lattice): New function.
3696         (print_all_lattices): Use the above, also print aggregate lattices.
3697         (set_agg_lats_to_bottom): New function.
3698         (set_agg_lats_contain_variable): Likewise.
3699         (set_all_contains_variable): Likewise.
3700         (initialize_node_lattices): Also handle aggregate lattices, set
3701         virt_call in ipcp_param_lattices.
3702         (add_value_source): Handle offsets.
3703         (add_value_to_lattice): Likewise.
3704         (add_scalar_value_to_lattice): New function.
3705         (propagate_vals_accross_pass_through): Use add_scalar_value_to_lattice.
3706         (propagate_vals_accross_ancestor): Likewise.
3707         (propagate_accross_jump_function): Renamed to
3708         propagate_scalar_accross_jump_function, use
3709         add_scalar_value_to_lattice.
3710         (set_check_aggs_by_ref): New function.
3711         (merge_agg_lats_step): Likewise.
3712         (set_chain_of_aglats_contains_variable): Likewise.
3713         (merge_aggregate_lattices): Likewise.
3714         (propagate_constants_accross_call): Also handle aggregate lattices.
3715         (hint_time_bonus): New function.
3716         (context_independent_aggregate_values): Likewise.
3717         (gather_context_independent_values): Also handle agggregate values.
3718         (agg_jmp_p_vec_for_t_vec): New function.
3719         (estimate_local_effects): Also handle agggregate values.
3720         (add_all_node_vals_to_toposort): Likewise.
3721         (ipcp_propagate_stage): Use struct ipcp_param_lattices.
3722         (get_clone_agg_value): New function.
3723         (cgraph_edge_brings_value_p): Also handle agggregate values.
3724         (create_specialized_node): Likewise.
3725         (find_more_values_for_callers_subset): Rename to
3726         find_more_scalar_values_for_callers_subset.  Modify dump.
3727         (copy_plats_to_inter): New function.
3728         (intersect_with_plats): Likewise.
3729         (agg_replacements_to_vector): Likewise.
3730         (intersect_with_agg_replacements): Likewise.
3731         (find_aggregate_values_for_callers_subset): Likewise.
3732         (known_aggs_to_agg_replacement_list): Likewise.
3733         (cgraph_edge_brings_all_scalars_for_node): Likewise.
3734         (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
3735         (perhaps_add_new_callers): Old functionality moved to
3736         cgraph_edge_brings_all_scalars_for_node, call it and
3737         cgraph_edge_brings_all_agg_vals_for_node.
3738         (ipcp_val_in_agg_replacements_p): New function.
3739         (decide_about_value): New function.
3740         (decide_whether_version_node): A lot of functionality moved to
3741         decide_about_value.  Also handle agggregate values.
3742         (ipcp_driver): Also allocate ipcp_agg_lattice_pool.
3743         (pass_ipa_cp): Fill in new entries.
3744         * ipa-prop.c (ipa_node_agg_replacements): New variable.
3745         (free_parms_ainfo): New function.
3746         (ipa_analyze_node): Use free_parms_ainfo to free stuff.
3747         (ipa_find_agg_cst_for_param): Do not rely on offset ordering.
3748         (ipa_set_node_agg_value_chain): New function.
3749         (ipa_node_removal_hook): Also handle ipa_node_agg_replacements.
3750         (ipa_node_duplication_hook): Likewise.
3751         (ipa_free_all_structures_after_ipa_cp): Also free ipcp_agg_lattice_pool.
3752         (ipa_free_all_structures_after_iinln): Likewise.
3753         (ipa_dump_agg_replacement_values): New function.
3754         (write_agg_replacement_chain): Likewise.
3755         (read_agg_replacement_chain): Likewise.
3756         (ipa_prop_write_all_agg_replacement): Likewise.
3757         (read_replacements_section): Likewise.
3758         (ipa_prop_read_all_agg_replacement): Likewise.
3759         (adjust_agg_replacement_values): Likewise.
3760         (ipcp_transform_function): Likewise.
3761         * ipa-prop.h: Also define heap vector of ipa_agg_jf_item_t and of
3762         ipa_agg_jump_function_t.
3763         (ipa_node_params): Make lattices an array of ipcp_param_lattices.
3764         (ipa_agg_replacement_value): New type and its vector.
3765         (ipa_set_node_agg_value_chain) Declare.
3766         (ipa_node_agg_replacements): Likewise.
3767         (ipa_get_agg_replacements_for_node): New function.
3768         (ipcp_agg_lattice_pool): Declare.
3769         (ipa_dump_agg_replacement_values): Likewise.
3770         (ipa_prop_write_all_agg_replacement): Likewise.
3771         (ipa_prop_read_all_agg_replacement): Likewise.
3772         (ipcp_transform_function): Likewise.
3773         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time): Pass around
3774         known aggregates and hints.
3775         * ipa-inline.h: include ipa-prop.h.
3776         (estimate_ipcp_clone_size_and_time): Adjust declaration.
3777         * lto-streamer.h (lto_section_type): New item
3778         LTO_section_ipcp_transform.
3779         * lto-section-in.c (lto_section_name): New element ipcp_trans.
3780         * params.def (PARAM_IPA_CP_LOOP_HINT_BONUS): New parameter.
3781         * Makefile.in (IPA_INLINE_H): New.  Use everywhee instead of
3782         ipa-inline.h.
3784 2012-11-07  Uros Bizjak  <ubizjak@gmail.com>
3786         * config/i386/i386.c (enum upper_128bits_state): Remove.
3787         (check_avx256_store): Use bool pointer argument.
3788         (ix86_avx_u128_mode_needed): Use note_stores also for CALL insns.
3789         * config/i386/predicates.md (vzeroupper_operation): Use match_test.
3791 2012-11-07  Yufeng Zhang  <yufeng.zhang@arm.com>
3793         * config/aarch64/aarch64.c (aarch64_expand_prologue): For the
3794         load-pair with writeback instruction, replace
3795         aarch64_set_frame_expr with add_reg_note (REG_CFA_ADJUST_CFA);
3796         add new local variable 'cfa_reg' and use it.
3798 2012-11-07  Kaz Kojima  <kkojima@gcc.gnu.org>
3800         PR middle-end/49220
3801         * mode-switching.c (create_pre_exit): Set short_block if there
3802         are no copy insns.
3804 2012-11-07  Martin Jambor  <mjambor@suse.cz>
3806         * lto-cgraph.c: Include tree-pass.h.
3807         (lto_output_node): Stream node->ipa_transforms_to_apply.
3808         (input_node): Likewise.
3809         * tree-pass.h (passes_by_id): Declare.
3810         (passes_by_id_size): Likewise.
3811         * Makefile.in (lto-cgraph.o): Add TREE_PASS_H to dependencies.
3813 2012-11-07  Jan Hubicka  <jh@suse.cz>
3815         * ipa-inline-analysis.c (true_predicate, single_cond_predicate,
3816         reset_inline_edge_summary): Fix formatting.
3817         (account_size_time): Bump up the limit on number of size/time
3818         entries to 256.
3819         (estimate_function_body_sizes): Work in reverse postorder.
3821 2012-11-07  David S. Miller  <davem@davemloft.net>
3823         PR bootstrap/55211
3824         Revert:
3825         * config/sparc/constraints.md ("U"): Delete.
3826         * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
3827         * config/sparc/sync.md: Likewise.
3828         And revert parts of:
3829         * doc/md.texi: Sync sparc constraint documentation with reality.
3831 2012-11-07  Jakub Jelinek  <jakub@redhat.com>
3833         * config/i386/i386.c (ix86_avx_u128_mode_after): Don't
3834         look for reg in CALL operand.
3836         PR debug/54693
3837         * tree-flow.h (propagate_threaded_block_debug_into): New prototype.
3838         * tree-ssa-threadedge.c (propagate_threaded_block_debug_into): No
3839         longer static.
3840         * tree-ssa-loop-ch.c (copy_loop_headers): Use it.
3842 2012-11-06  Sterling Augustine <saugustine@google.com>
3844         * dwarf2out.c (output_comdat_type_unit): Check for OBJECT_FORMAT_ELF.
3846 2012-11-06  Aldy Hernandez  <aldyh@redhat.com>
3847             Richard Henderson  <rth@redhat.com>
3849         * cfg-flags.def (TM_UNINSTRUMENTED, TM_ABORT): New.
3850         * trans-mem.c (PROB_VERY_LIKELY, PROB_UNLIKELY, PROB_LIKELY): New.
3851         (struct tm_region): Add tm_state, restart_block,
3852         original_transaction_was_outer.
3853         (tm_region_init_0): Initialize them.
3854         (collect_bb2reg, get_bb_regions_instrumented): New.
3855         (tm_log_emit_save_or_restores): Merge into ...
3856         (expand_transaction): ... here.
3857         (generate_tm_state, propagate_tm_flags_out): New.
3858         (execute_tm_mark): Avoid processing blocks more than once.
3859         (split_bb_make_tm_edge): Split out from ...
3860         (make_tm_edge): ... here.  And merge the rest into ...
3861         (expand_block_edges): ... here.
3862         (execute_tm_edges): Avoid processing blocks more than once.
3863         (ipa_uninstrument_transaction): New.
3864         (ipa_tm_scan_calls_transaction): Use it.  Rebuild cgraph and ssa.
3865         (ipa_tm_execute): Init and free original_copy_tables.
3866         * trans-mem.h (PR_MULTIWAYCODE): New.
3867         * tree-cfg.c (make_edges): Use EDGE_TM_ABORT.
3869 2012-11-06  Aldy Hernandez  <aldyh@redhat.com>
3871         * cfghooks.c (copy_bbs): Handle a null loop_father.
3873         * cgraph.c (cgraph_debug_gimple_stmt): Handle a null
3874         current_function_decl.
3876 2012-11-06  Richard Henderson  <rth@redhat.com>
3878         * tree-ssa-tail-merge.c (find_duplicate): Do not consider
3879         is_tm_ending_fndecl calls as mergable.
3881 2012-11-06  Sterling Augustine <saugustine@google.com>
3882             Cary Coutant <ccoutant@google.com>
3884         * common.opt (gno-split-dwarf, gsplit-dwarf): New switches.
3885         * doc/invoke.texi (Debugging Options): Document them.
3886         * gcc.c (replace_extension_spec_func):  New function.
3887         (ASM_FINAL_SPEC): Adjust.
3888         (static_spec_functions): Add new field for replace-extension.
3889         (check_live_switch): Adjust comment.  Add case for 'g'.
3890         * opts.c (finish_options): Set x_debug_generate_pub_sections based on
3891         x_dwarf_split_debug_info.
3892         (common_handle_option): Add case for OPT_gsplit_dwarf.
3893         * dwarf2out.h (addr_table_entry_struct): Add forward declaration.
3894         (dw_val_struct): Add val_entry pointer.
3895         * dwarf2out.c (debug_skeleton_info_section,
3896         debug_skeleton_abbrev_section, debug_addr_section,
3897         debug_skeleton_line_section, debug_str_offsets_section): New globals.
3898         (NOT_INDEXED, NO_INDEX_ASSIGNED): New defines.
3899         (indirect_string_node): New field index.
3900         (ate_kind): New enum with fields ate_kind_rtc, ate_kind_rtx_dtprel,
3901         ate_kind_label.
3902         (addr_table_entry): New structure and type.
3903         (dw_loc_list_struct): Add field begin_entry.
3904         (new_loc_desc): Initialize val_entry.
3905         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
3906         Add cases for DW_OP_GNU_addr_index and DW_OP_const_index.
3907         (build_cfa_loc): Initialize val_entry.
3908         (AT_index, add_addr_table_entry, remove_addr_table_entry,
3909         add_AT_lbl_id): New functions.
3910         (add_AT_addr, add_AT_range_list): New parameter force_direct.
3911         (output_die_abbrevs): New function.
3912         (add_ranges_by_labels): New parameter force_direct.
3913         (output_line_info): New parameter prologue_only.
3914         (dtprel_bool): New enum with dtprel_false and dtprel_true.
3915         (dw_addr_op, new_addr_loc_descr): New functions.
3916         (DEBUG_DWO_INFO_SECTION, DEBUG_DWO_ABBREV_SECTION,
3917         DEBUG_ADDR_SECTION, DEBUG_NORM_MACINFO_SECTION,
3918         DEBUG_DWO_MACINFO_SECTION, DEBUG_MACINFO_SECTION,
3919         DEBUG_NORM_MACRO_SECTION, DEBUG_DWO_MACRO_SECTION,
3920         DEBUG_MACRO_SECTION, DEBUG_DWO_LINE_SECTION,
3921         DEBUG_DWO_LOC_SECTION, DEBUG_NORM_STR_OFFSETS_SECTION,
3922         DEBUG_DWO_STR_OFFSETS_SECTION, DEBUG_STR_OFFSETS_SECTION,
3923         DEBUG_DWO_STR_SECTION, DEBUG_NORM_STR_SECTION, DEBUG_STR_SECTION,
3924         DEBUG_MACRO_SECTION_FLAGS, DEBUG_SKELETON_LINE_SECTION_LABEL,
3925         DEBUG_SKELETON_INFO_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL
3926         DEBUG_SKELETON_ABBREV_SECTION_LABEL): New macros.
3927         (DEBUG_STR_SECTION_FLAGS): Adjust.
3928         (TEXT_SECTION_LABEL, COLD_TEXT_SECTION_LABEL,
3929         DEBUG_LINE_SECTION_LABEL, DEBUG_INFO_SECTION_LABEL,
3930         DEBUG_ABBREV_SECTION_LABEL, DEBUG_ADDR_SECTION_LABEL,
3931         DEBUG_LOC_SECTION_LABEL, DEBUG_RANGES_SECTION_LABEL,
3932         DEBUG_MACINFO_SECTION_LABEL, DEBUG_MACRO_SECTION_LABEL): Adjust
3933         indentation.
3934         (debug_skeleton_abbrev_section_label, debug_addr_section_label,
3935         debug_skeleton_line_section_label, debug_skeleton_info_section_label):
3936         New global variables.
3937         (add_AT_flag, add_AT_int, add_AT_unsigned, add_AT_double, add_AT_vec,
3938         add_AT_data8): Initialize val_entry.
3939         (add_AT_low_high_pc): New parameter force_direct. Handle
3940         dwarf_split_debug_info.
3941         (set_indirect_string, find_AT_string_form): New functions.
3942         (AT_string_form): Adjust to call find_AT_string_from.
3943         (add_AT_die_ref, add_AT_fde_ref, add_AT_loc, add_AT_list):
3944         Initialize val_entry.
3945         (addr_index_table): New global variable.
3946         (addr_table_entry_do_hash, addr_table_entry_eq, add_addr_table_entry,
3947         init_addr_table_entry, remove_addr_table_entry, index_addr_table_entry,
3948         remove_loc_list_addr_table_entries): New functions.
3949         (add_AT_addr, add_AT_lbl_id, add_AT_range_list): New parameter
3950         force_direct.  Handle dwarf_split_debug_info.
3951         (add_AT_file, add_AT_vms_delta, add_AT_lineptr, add_AT_macptr,
3952         add_AT_offset): Initialize val_entry.
3953         (UNRELOCATED_OFFSET, RELOCATED_OFFSET): New defines.
3954         (size_of_die): Handle dwarf_split_debug_info.
3955         (size_of_aranges, value_format): Call AT_class.  Check AT_index.
3956         (output_die_abbrevs): New function.
3957         (output_abbrev_section): Call output_die_abbrevs.
3958         (new_loc_list): Initialize begin_entry.
3959         (output_loc_list): Handle dwarf_split_debug_info.
3960         (output_range_list_offset, output_loc_list_offset,
3961         output_attr_index_or_value, ): New functions.
3962         (output_die): Fix call to dw2_asm_output_data.  Call
3963         output_attr_index_or_value and output_range_list_offset.
3964         Adjust logic around dw_val_class_str.
3965         (add_top_lebel_skeleton_die_attrs, get_skeleton_type_unit,
3966         output_skeleton_debug_sections): New functions.
3967         (output_comdat_type_unit, output_pubname, output_aranges): Handle
3968         dwarf_split_debug_info.
3969         (add_ranges_by_labels): New parameter force_direct.
3970         (mem_loc_descriptor, loc_descr): Call new_addr_loc_descr.
3971         (loc_list_from_tree, add_const_value_attribtue): Use dtprel_bools in
3972         place of generic integer.
3973         (dwarf2out_vms_debug_main_pointer, gen_entry_point_die, gen_label_die,
3974         gen_call_site_die, gen_subprogram_die, gen_variable_die,
3975         add_high_low_attributes): Adjust calls to add_AT_lbl_id.
3976         (output_macinfo_op): Adjust indirect_string_logic.
3977         (save_macinfo_strings): New function.
3978         (output_macinfo): Adjust.
3979         (dwarf2out_init): Handle dwarf_split_debug_info.
3980         (index_string, output_index_string_offset, output_index_string): New
3981         functions.
3982         (output_indirect_string): Adjust.
3983         (output_indirect_strings, output_addr_table_entry, output_addr_table):
3984         New functions.
3985         (resolve_addr_in_expr, hash_loc_operands): Handle DW_OP_GNU_addr_index
3986         and DW_OP_GNU_const_index.  Handle dwarf_split_debug_info.  Call
3987         remove_loc_list_addr_table_entries and remove_addr_table_entry.
3988         (index_location_lists): New function.
3989         (dwarf2out_finish): Handle dwarf_split_debug_info.  New variable
3990         main_comp_unit_die.  Adjust calls to add_AT_low_high_pc,
3991         add_ranges_by_labels, add_AT_addr, and add_AT_lineptr. Call
3992         save_macinfo_strings and output_indirect_strings.
3994 2012-11-06  Gerald Pfeifer  <gerald@pfeifer.com>
3996         * config/i386/i386.c (make_dispatcher_decl): Guard with
3997         ASM_OUTPUT_TYPE_DIRECTIVE and HAVE_GNU_INDIRECT_FUNCTION.
3999 2012-11-06  Jan Hubicka  <jh@suse.cz>
4001         * ipa-inline-analysis.c (estimate_function_body_sizes,
4002         inline_update_overall_summary): Cap time calculations.
4004 2012-11-06  Uros Bizjak  <ubizjak@gmail.com>
4006         * config/i386/i386.c (ix86_init_machine_status): Do not
4007         explicitly clear tls_descriptor_call_expanded_p again.
4009 2012-11-06  Uros Bizjak  <ubizjak@gmail.com>
4011         * config/i386/sse.md
4012         (<avx_avx2>_maskstore<ssemodesuffix><avxsizesuffix>): Mark operand 0
4013         as read and written by the instruction.
4015 2012-11-06  Alexandre Oliva <aoliva@redhat.com>
4017         PR debug/54693
4018         * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
4019         Use a stack vector before allocating a pointer set.
4021 2012-11-06  Martin Jambor  <mjambor@suse.cz>
4023         * ipa-prop.c (ipa_get_param_decl_index_1): New function.
4024         (ipa_get_param_decl_index): Just call ipa_get_param_decl_index_1.
4025         (ipa_populate_param_decls): Accept descriptors parameter rather
4026         than the whole info.
4027         (load_from_unmodified_param): Likewise.
4028         (ipa_load_from_parm_agg_1): Likewise.
4029         (ipa_load_from_parm_agg): Extract descriptors from info.
4030         (compute_complex_assign_jump_func): Likewise.
4031         (ipa_analyze_indirect_call_uses): Likewise.
4033 2012-11-06  Jan Hubicka  <jh@suse.cz>
4035         * ipa-inline.c (compute_uninlined_call_time): Return gcov_type.
4036         (compute_inlined_call_time): Watch overflows.
4037         (relative_time_benefit): Compute in gcov_type.
4039 2012-11-06  Jan Hubicka  <jh@suse.cz>
4041         * cfgloopanal.c (get_loop_hot_path): New function.
4042         * tree-ssa-lop-ivcanon.c (struct loop_size): Add CONSTANT_IV,
4043         NUM_NON_PURE_CALLS_ON_HOT_PATH, NUM_PURE_CALLS_ON_HOT_PATH,
4044         NUM_BRANCHES_ON_HOT_PATH.
4045         (tree_estimate_loop_size): Compute the new values.
4046         (try_unroll_loop_completely): Disable unrolling of loops with only
4047         calls or too many branches.
4048         (tree_unroll_loops_completely): Deal also with outer loops of hot loops.
4049         * cfgloop.h (get_loop_hot_path): Declare.
4050         * params.def (PARAM_MAX_PEEL_BRANCHES): New parameters.
4051         * invoke.texi (max-peel-branches): Document.
4053 2012-11-06  Jan Hubicka  <jh@suse.cz>
4055         * ipa-pure-const.c (check_stmt): Fix debug info formatting.
4057 2012-11-06  Uros Bizjak  <ubizjak@gmail.com>
4059         * config/i386/i386.c (TARGET_INSTANTIATE_DECLS): New define.
4060         (ix86_instantiate_decls): New function.
4061         (ix86_expand_builtin) <case IX86_BUILTIN_LDMXCSR>: Use SLOT_TEMP
4062         stack slot instead of SLOT_VIRTUAL.
4063         <case IX86_BUILTIN_STMXCSR>: Ditto.
4064         (assign_386_stack_local): Do not assert when virtual slot is valid.
4065         * config/i386/i386.h (enum ix86_stack_slot): Remove SLOT_VIRTUAL.
4066         * config/i386/i386.md (truncdfsf2): Do not use SLOT_VIRTUAL stack slot.
4067         (truncxf<mode>2): Ditto.
4068         (floatunssi<mode>2): Ditto.
4069         (isinf<mode>2): Ditto.
4070         * config/i386/sync.md (atomic_load<mode>): Ditto.
4071         (atomic_store<mode>): Ditto.
4073 2012-11-06  Jan Hubicka  <jh@suse.cz>
4075         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound,
4076         vect_do_peeling_for_alignment): Fix loop bound computation.
4077         * tree-vect-loop.c (vect_transform_loop): Maintain loop bounds.
4079 2012-11-06  Oleg Endo  <olegendo@gcc.gnu.org>
4081         PR target/54089
4082         * config/sh/sh.c (and_xor_ior_costs, addsubcosts): Double the costs for
4083         ops larger than SImode.
4084         * config/sh/sh.md (rotcl, *rotcl): New insns and splits.
4085         (ashldi3_k): Convert to insn_and_split and use new rotcl insn.
4087 2012-11-06  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
4089         PR target/47440
4090         * config/i386/i386-protos.h (emit_i387_cw_initialization): Delete.
4091         (emit_vzero): Add prototype.
4092         (ix86_mode_entry): Likewise.
4093         (ix86_mode_exit): Likewise.
4094         (ix86_emit_mode_set): Likewise.
4096         * config/i386/i386.c (typedef struct block_info_def): Delete.
4097         (define BLOCK_INFO): Delete.
4098         (check_avx256_stores): Add checking for MEM_P.
4099         (move_or_delete_vzeroupper_2): Delete.
4100         (move_or_delete_vzeroupper_1): Delete.
4101         (move_or_delete_vzeroupper): Delete.
4102         (ix86_maybe_emit_epilogue_vzeroupper): Delete.
4103         (function_pass_avx256_p): Delete.
4104         (ix86_function_ok_for_sibcall): Remove sibcall disabling.
4105         (nit_cumulative_args): Remove initialization of of avx256 fields of
4106         cfun->machine.
4107         (ix86_emit_restore_sse_regs_using_mov): Remove vzeroupper generation.
4108         (ix86_expand_epilogue): Likewise.
4109         (ix86_avx_u128_mode_needed): New.
4110         (ix86_i387_mode_needed): Rename from ix86_mode_needed.
4111         (ix86_mode_needed): New.
4112         (ix86_avx_u128_mode_after): New.
4113         (ix86_mode_after): New.
4114         (ix86_avx_u128_mode_entry): New.
4115         (ix86_mode_entry): New.
4116         (ix86_avx_u128_mode_exit): New.
4117         (ix86_mode_exit): New.
4118         (ix86_emit_mode_set): New.
4119         (ix86_expand_call): Delete vzeroupper generation.
4120         (ix86_split_call_vzeroupper): Delete.
4121         (ix86_init_machine_status): Initialize optimize_mode_switching.
4122         (ix86_expand_special_args_builtin): Change.
4123         (ix86_reorg): Delete a call of move_or_delete_vzeroupper.
4125         * config/i386/i386.h  (VALID_AVX256_REG_OR_OI_MODE): New.
4126         (AVX_U128): New.
4127         (avx_u128_state): New.
4128         (NUM_MODES_FOR_MODE_SWITCHING): Added AVX_U128_ANY.
4129         (MODE_AFTER): New.
4130         (MODE_ENTRY): New.
4131         (MODE_EXIT): New.
4132         (EMIT_MODE_SET): Change.
4133         (machine_function): Delete avx256 fields.
4135         * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): Delete.
4136         (define_insn_and_split "*call_vzeroupper"): Delete.
4137         (define_insn_and_split "*call_rex64_ms_sysv_vzeroupper"): Delete.
4138         (define_insn_and_split "*sibcall_vzeroupper"): Delete.
4139         (define_insn_and_split "*call_pop_vzeroupper"): Delete.
4140         (define_insn_and_split "*sibcall_pop_vzeroupper"): Delete.
4141         (define_insn_and_split "*call_value_vzeroupper"): Delete.
4142         (define_insn_and_split "*sibcall_value_vzeroupper"): Delete.
4143         (define_insn_and_split "*call_value_rex64_ms_sysv_vzeroupper"): Delete.
4144         (define_insn_and_split "*call_value_pop_vzeroupper"): Delete.
4145         (define_insn_and_split "*sibcall_value_pop_vzeroupper"): Delete.
4146         (define_expand "return"): Remove vzeroupper emitting.
4147         (define_expand "simple_return"): Delete.
4149         * config/i386/predicates.md (vzeroupper_operation): New.
4151         * config/i386/sse.md (avx_vzeroupper): Change.
4153 2012-11-06  Uros Bizjak  <ubizjak@gmail.com>
4154             Kaz Kojima  <kkojima@gcc.gnu.org>
4156         PR target/41993
4157         * mode-switching.c (create_pre_exit): Set return_copy to
4158         last_insn when copy_start is a pseudo reg.
4160 2012-11-06  Andrey Turetskiy  <andrey.turetskiy@gmail.com>
4162         * config/i386/i386.c (bdesc_args): Rename CODE_FOR_avx2_umulhrswv16hi3
4163         to CODE_FOR_avx2_pmulhrswv16hi3.
4164         * config/i386/predicates.md (const1_operand): Extend for vectors.
4165         * config/i386/sse.md (ssse3_avx2): Extend.
4166         (ssedoublemode): Ditto.
4167         (<sse2_avx2>_uavg<mode>3): Merge avx2_uavgv32qi3, sse2_uavgv16qi3,
4168         avx2_uavgv16hi3 and sse2_uavgv8hi3 into one.
4169         (*<sse2_avx2>_uavg<mode>3): Merge *avx2_uavgv32qi3, *sse2_uavgv16qi3,
4170         *avx2_uavgv16hi3 and *sse2_uavgv8hi3 into one.
4171         (PMULHRSW): New.
4172         (<ssse3_avx2>_pmulhrsw<mode>3): Merge avx2_umulhrswv16hi3,
4173         ssse3_pmulhrswv8hi3 and ssse3_pmulhrswv4hi3 into one.
4174         (*avx2_pmulhrswv16hi3): Replace const_vector with const1_operand
4175         predicate.
4176         (*ssse3_pmulhrswv8hi3): Ditto.
4177         (*ssse3_pmulhrswv4hi3): Ditto.
4179 2012-11-06  Joern Rennecke  <joern.rennecke@embecosm.com>
4181         * config/epiphany/epiphany.c (epiphany_address_cost):
4182         Use MODE parameter.
4184 2012-11-05  Sriraman Tallam  <tmsriram@google.com>
4186         * doc/tm.texi.in (TARGET_OPTION_FUNCTION_VERSIONS): New hook
4187         description.
4188         * (TARGET_COMPARE_VERSION_PRIORITY): New hook description.
4189         * (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New hook description.
4190         * (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New hook description.
4191         * doc/tm.texi: Regenerate.
4192         * target.def (compare_version_priority): New target hook.
4193         * (generate_version_dispatcher_body): New target hook.
4194         * (get_function_versions_dispatcher): New target hook.
4195         * (function_versions): New target hook.
4196         * cgraph.c (cgraph_fnver_htab): New htab.
4197         (cgraph_fn_ver_htab_hash): New function.
4198         (cgraph_fn_ver_htab_eq): New function.
4199         (version_info_node): New pointer.
4200         (insert_new_cgraph_node_version): New function.
4201         (get_cgraph_node_version): New function.
4202         (delete_function_version): New function.
4203         (record_function_versions): New function.
4204         * cgraph.h (cgraph_node): New bitfield dispatcher_function.
4205         (cgraph_function_version_info): New struct.
4206         (get_cgraph_node_version): New function.
4207         (insert_new_cgraph_node_version): New function.
4208         (record_function_versions): New function.
4209         (delete_function_version): New function.
4210         (init_lowered_empty_function): Expose function.
4211         * tree.h (DECL_FUNCTION_VERSIONED): New macro.
4212         (tree_function_decl): New bit-field versioned_function.
4213         * cgraphunit.c (cgraph_analyze_function): Generate body of multiversion
4214         function dispatcher.
4215         (cgraph_analyze_functions): Analyze dispatcher function.
4216         (init_lowered_empty_function): Make non-static. New parameter in_ssa.
4217         (assemble_thunk): Add parameter to call to init_lowered_empty_function.
4218         * config/i386/i386.c (add_condition_to_bb): New function.
4219         (get_builtin_code_for_version): New function.
4220         (ix86_compare_version_priority): New function.
4221         (feature_compare): New function.
4222         (dispatch_function_versions): New function.
4223         (ix86_function_versions): New function.
4224         (attr_strcmp): New function.
4225         (ix86_mangle_function_version_assembler_name): New function.
4226         (ix86_mangle_decl_assembler_name): New function.
4227         (make_name): New function.
4228         (make_dispatcher_decl): New function.
4229         (is_function_default_version): New function.
4230         (ix86_get_function_versions_dispatcher): New function.
4231         (make_attribute): New function.
4232         (make_resolver_func): New function.
4233         (ix86_generate_version_dispatcher_body): New function.
4234         (fold_builtin_cpu): Return integer for cpu builtins.
4235         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): New macro.
4236         (TARGET_COMPARE_VERSION_PRIORITY): New macro.
4237         (TARGET_GENERATE_VERSION_DISPATCHER_BODY): New macro.
4238         (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): New macro.
4239         (TARGET_OPTION_FUNCTION_VERSIONS): New macro.
4241 2012-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
4243         * recog.c (extract_insn): Enabled alternative defaults to 1.
4245 2012-11-05  H.J. Lu  <hongjiu.lu@intel.com>
4247         * config/i386/i386.c (print_reg): Replace REX_INT_REG_P with
4248         REX_INT_REGNO_P.
4250 2012-11-05  Eric Botcazou  <ebotcazou@adacore.com>
4252         PR tree-optimization/54986
4253         * gimple-fold.c (canonicalize_constructor_val): Strip again all no-op
4254         conversions on entry but add them back on exit if needed.
4256 2012-11-05  Andreas Schwab  <schwab@linux-m68k.org>
4258         * final.c (final_scan_insn) [HAVE_cc0]: Handle all comparison
4259         codes in non-jump and cmove insn.
4261 2012-11-05  Uros Bizjak  <ubizjak@gmail.com>
4262             Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
4264         * mode-switching.c (create_pre_exit): Force late switching if
4265         __builtin_{apply,return} emitted a load that require mode,
4266         other than MODE_EXIT.
4268 2012-11-05  Richard Sandiford  <rdsandiford@googlemail.com>
4270         PR target/55204
4271         * config/i386/i386.c (ix86_address_subreg_operand): Remove stack
4272         pointer check.
4273         (print_reg): Use true_regnum rather than REGNO.
4274         (ix86_print_operand_address): Remove SUBREG handling.
4276 2012-11-05  Jan Hubicka  <jh@suse.cz>
4278         * tree-ssa-loop-niter.c (finite_loop_p): Revamp to be just wrapper of
4279         max_loop_iterations.
4281 2012-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
4283         * reorg.c (fill_simple_delay_slots): Avoid calling optimize_skip
4284         with a return instruction.
4286 2012-11-05  Vladimir Makarov  <vmakarov@redhat.com>
4288         PR rtl-optimization/55151
4289         * lra-constraints.c (process_alt_operands): Permit putting reg
4290         value into memory.  Increase reject for this case.
4292 2012-11-05  Dehao Chen  <dehao@google.com>
4294         * final.c (reemit_insn_block_notes): Do not change scope if insn
4295         location is UNKNOWN_LOCATION.
4297 2012-11-05  Joern Rennecke  <joern.rennecke@embecosm.com>
4299         * doc/md.texi (Defining Attributes): Document that we are defining
4300         HAVE_ATTR_name macros as 1 for defined attributes, and as 0
4301         for undefined special attributes.
4302         * final.c (asm_insn_count, align_fuzz): Always define.
4303         (insn_current_reference_address): Likewise.
4304         (init_insn_lengths): Use if (HAVE_ATTR_length) instead of
4305         #ifdef HAVE_ATTR_length.
4306         (get_attr_length_1, shorten_branches, final): Likewise.
4307         (final_scan_insn, output_asm_name): Likewise.
4308         * genattr.c (gen_attr): Define HAVE_ATTR_name macros for
4309         defined attributes as 1.
4310         Remove ancient get_attr_alternative compatibility code.
4311         For special purpose attributes not provided, define HAVE_ATTR_name
4312         as 0.
4313         In case no length attribute is given, provide stub definitions
4314         for insn_*_length* functions, and also include insn-addr.h.
4315         In case no enabled attribute is given, provide stub definition.
4316         * genattrtab.c (write_length_unit_log): Always write a definition.
4317         * hooks.c (hook_int_rtx_1, hook_int_rtx_unreachable): New functions.
4318         * hooks.h (hook_int_rtx_1, hook_int_rtx_unreachable): Declare.
4319         * lra-int.h (struct lra_insn_recog_data): Make member
4320         alternative_enabled_p unconditional.
4321         * lra.c (free_insn_recog_data): Use if (HAVE_ATTR_length) instead of
4322         #ifdef HAVE_ATTR_length.
4323         (lra_set_insn_recog_data): Likewise.  Make initialization of
4324         alternative_enabled_p unconditional.
4325         (lra_update_insn_recog_data): Use #if instead of #ifdef for
4326         HAVE_ATTR_enabled.
4327         * recog.c [!HAVE_ATTR_enabled] (get_attr_enabled): Don't define.
4328         (extract_insn): Check HAVE_ATTR_enabled.
4329         (gate_handle_split_before_regstack): Use #if instead of
4330         #if defined for HAVE_ATTR_length.
4332 2012-11-05  Jan Hubicka  <jh@suse.cz>
4334         * ipa-inline.c (compute_uninlined_call_time,
4335         compute_inlined_call_time): New functions.
4336         (RELATIVE_TIME_BENEFIT_RANGE): New macro.
4337         (relative_time_benefit): Rewrite.
4338         (edge_badness): Rewrite path with guessed profile and estimated profile.
4339         * ipa-inline.h (INLINE_HINT_declared_inline, INLINE_HINT_cross_module):
4340         New hints.
4341         (struct inline_summary): Add GROWTH filed.
4342         * ipa-inline-analysis.c (dump_inline_hints): Update.
4343         (reset_inline_summary): Update.
4344         (dump_inline_summary): Update.
4345         (will_be_nonconstant_predicate): Cleanup to use gimple_store_p and
4346         gimple_assign_load_p predicates.
4347         (estimate_node_size_and_time): Drop INLINE_HINT_declared_inline hint.
4348         (simple_edge_hints): New function.
4349         (do_estimate_edge_time): Return time of invocation of callee rather
4350         than the time scaled by edge frequency; update hints code.
4351         (do_estimate_edge_hints): Update.
4352         (do_estimate_growth): Cleanup.
4354 2012-11-05  Jakub Jelinek  <jakub@redhat.com>
4356         PR target/55194
4357         * dwarf2out.c (value_format) <case dw_val_class_high_pc>: Handle
4358         also DWARF2_ADDR_SIZE 1 and 2.
4360 2012-11-05  Jan Hubicka  <jh@suse.cz>
4362         * tree-ssa-loop-niter.c (find_loop_niter): Remove just_once_each_iteration_p.
4363         (maybe_lower_iteration_bound): Initialize not_executed_last_iteration to  NULL
4364         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Skip
4365         just_once_each_iteration_p; record estimated bound when loop has only one
4366         likely exit; test just_once_each_iteration_p before IV canon itself.
4368 2012-11-05  Jan Hubicka  <jh@suse.cz>
4370         * ipa-inline.c (leaf_node_p): Rename to ...
4371         (num_calls) ... this one.
4372         (want_early_inline_function_p): Allow smal growth on non-leafs.
4374 2012-11-05  Jakub Jelinek  <jakub@redhat.com>
4376         PR debug/54402
4377         * var-tracking.c (fp_setter): Return false if there is REG_CFA_RESTORE
4378         hfp note.
4379         (vt_initialize): Look for fp_setter in any bb, not just successor of
4380         entry bb.
4382 2012-11-05  Oleg Endo  <olegendo@gcc.gnu.org>
4384         * config/sh/sh.h (TARGET_CACHE32, TARGET_HARVARD): Delete macro.
4385         (TARGET_SUPERSCALAR): Add TARGET_SH2A.
4386         (CACHE_LOG): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
4387         TARGET_CACHE32.
4388         (TRAMPOLINE_ALIGNMENT): Use TARGET_HARD_SH4 and TARGET_SH5 instead of
4389         TARGET_HARVARD.
4390         * config/sh/sh.c (sh_trampoline_init): Likewise.
4392 2012-11-05  David Edelsohn  <dje.gcc@gmail.com>
4394         * system.h (loc_t): Poison.
4396 2012-11-05  Marc Glisse  <marc.glisse@inria.fr>
4398         * fold-const.c (fold_unary_loc): Disable conversion optimization
4399         for void type.
4401 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
4403         * configure: Regenerate.
4405 2012-11-04  Eric Botcazou  <ebotcazou@adacore.com>
4407         * combine.c: Adjust toplevel comment.
4408         (make_extraction): Adjust head comment and move up canonicalization.
4410 2012-11-04  Alexandre Oliva <aoliva@redhat.com>
4411             Jakub Jelinek <jakub@redhat.com>
4413         PR debug/54693
4414         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Emit debug temps
4415         for dropped IV sets.
4417 2012-11-04  Alexandre Oliva <aoliva@redhat.com>
4419         PR debug/54693
4420         * tree-ssa-threadedge.c (propagate_threaded_block_debug_into):
4421         New, rewritten from debug stmt copying code...
4422         (thread_around_empty_block): ... removed from here.
4423         (thread_across_edge): Call propagate_threaded_block_debug_into.
4425 2012-11-04  Dehao Chen  <dehao@google.com>
4427         * expr.c (expand_expr_real_1): Change to not using input_location.
4429 2012-11-03  Jan Hubicka  <jh@suse.cz>
4431         * invoke.texi (profile-use): update documentation.
4432         * opts.c (common_handle_option): Enable tree-vectorize
4433         and tree-loop-distribute-patterns.
4434         * tree-loop-distribution.c (tree_loop_distribution): Skip loops
4435         optimized for size.
4436         * config/i386/i386.c (ix86_option_override_internal): Enabe
4437         prefetch_lop_arrays for profile-use.
4439 2012-11-03  Robert Mason  <rbmj@verizon.net>
4441         * gcov-io.c (gcov_open): Add file mode to open call (need for VxWorks)
4443 2012-11-03  Sandra Loosemore  <sandra@codesourcery.com>
4445         * doc/extend.texi: Copy-edit to use present tense except when
4446         explicitly describing future or past behavior.
4448 2012-11-03  Oleg Endo  <olegendo@gcc.gnu.org>
4450         * config/sh/sh.c (output_movedouble, output_far_jump,
4451         output_ieee_ccmpeq): Use multi-line strings for asm.
4452         (find_regmode_weight): Wrap lines.
4453         (sh_optimize_target_register_callee_saved): Remove commented out
4454         variable.
4455         (emit_load_ptr): Remove prototype.
4457 2012-11-03  Oleg Endo  <olegendo@gcc.gnu.org>
4459         PR target/51244
4460         * config/sh/sh.md (*cbranch_t): Allow splitting after reload.
4461         Allow going beyond current basic block before reload when looking for
4462         the reg set insn.
4463         * config/sh/sh.c (sh_find_set_of_reg): Don't stop at labels.
4465 2012-11-02  Jan Hubicka  <jh@suse.cz>
4467         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add
4468         missing sign to unsigned.
4470 2012-11-02  Andrew Pinski  <apinski@cavium.com>
4472         PR rtl-opt/54524
4473         * simplify-rtx.c (simplify_relational_operation_1): Don't simplify
4474         (LTU/GEU (PLUS a 0) 0) into (GEU/LTU a 0) since they are not
4475         equivalent.
4477 2012-11-02  Jan Hubicka  <jh@suse.cz>
4479         * tree-ssa-loop-niter.c (double_int_cmp, bound_index,
4480         discover_iteration_bound_by_body_walk): New functions.
4481         (discover_iteration_bound_by_body_walk): Use it.
4483 2012-11-02  Jan Hubicka  <jh@suse.cz>
4485         * predict.c (predict_loops): Predict also exits not dominating latch.
4487 2012-11-02  Jan Hubicka  <jh@suse.cz>
4489         * predict.c (predict_loops): Do not predict infinite loops.
4491 2012-11-02  Jan Hubicka  <jh@suse.cz>
4493         PR middle-end/55079
4494         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
4495         MAX field if NITER was folded to contant.
4496         (record_estimate): Sanity check.
4497         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): New
4498         function.
4499         (remove_redundant_iv_test): New function.
4500         (loops_to_unloop, loops_to_unloop_nunroll): New static vars.
4501         (unloop_loops): Break out from ...
4502         (try_unroll_loop_completely): ... here; Pass in MAXITER; use
4503         remove_exits_and_undefined_stmts; do not unloop.
4504         (canonicalize_loop_induction_variables): Compute MAXITER;
4505         use remove_redundant_iv_test; remove loop_close_ssa_invalidated
4506         and irred_invalidated arguments.
4507         (canonicalize_induction_variables): Compute fresh bound estimates;
4508         unloop; walk from innermost.
4509         (tree_unroll_loops_completely): Likewise.
4511 2012-11-02  Vladimir Makarov  <vmakarov@redhat.com>
4513         PR middle-end/55130
4514         * lra-constraints.c (debug_loc_equivalence_change_p): Rename to
4515         loc_equivalence_change_p.
4516         (lra_constraints): Check equiv_insn_bitmap for debug insn.  Call
4517         loc_equivalence_change_p for non-transformed insn.
4519 2012-11-02  Eric Botcazou  <ebotcazou@adacore.com>
4521         * cfg-flags.def (ABNORMAL_CALL): Fix comment.
4522         (EH): Likewise.
4523         (SIBCALL): Likewise.
4524         * cfgrtl.c (rtl_verify_flow_info_1): Adjust error messages.
4525         Deal with EDGE_SIBCALL and fix the EDGE_ABNORMAL check.
4527 2012-11-02  Jakub Jelinek  <jakub@redhat.com>
4529         PR target/55147
4530         * config/i386/i386.md (bswapdi2): Limit to TARGET_64BIT.
4531         (*bswapdi2_doubleword): Removed.
4533 2012-11-02  Gerald Pfeifer  <gerald@pfeifer.com>
4535         * doc/install.texi (Specific): Remove moxie web reference.
4537 2012-11-01  Marc Glisse  <marc.glisse@inria.fr>
4539         PR middle-end/55001
4540         * tree-vect-generic.c (expand_vector_condition): New function.
4541         (expand_vector_operations_1): Call it.
4543 2012-11-01  Steve Ellcey  <sellcey@mips.com>
4545         * target-globals.c (save_target_globals): Save lra_int struct.
4547 2012-11-01  Gerald Pfeifer  <gerald@pfeifer.com>
4549         * doc/standards.texi (Standards): Adjust reference to Go specification.
4551 2012-11-01  Lawrence Crowl  <crowl@google.com>
4553         * ebitmap.h: Remove unused.
4554         * ebitmap.c: Remove unused.
4555         * Makefile.in: Remove ebitmap.h and ebitmap.c.
4556         * sbitmap.h (SBITMAP_SIZE_BYTES): Move to source file.
4557         (SET_BIT_WITH_POPCOUNT): Remove unused.
4558         (RESET_BIT_WITH_POPCOUNT): Remove unused.
4559         (bitmap_copy_n): Remove unused.
4560         (bitmap_range_empty_p): Remove unused.
4561         (sbitmap_popcount): Remove unused.
4562         (sbitmap_verify_popcount): Make private to source file.
4563         * sbitmap.c (SBITMAP_SIZE_BYTES): Move here from header.
4564         (bitmap_copy_n): Remove unused.
4565         (bitmap_range_empty_p): Remove unused.
4566         (sbitmap_popcount): Remove unused.
4567         (sbitmap_verify_popcount): Make private to source file.
4569 2012-11-01  Lawrence Crowl  <crowl@google.com>
4571         * sbitmap.h (sbitmap_iter_init): Rename bmp_iter_set_init and add
4572         unused parameter to match bitmap iterator.  Update callers.
4573         (sbitmap_iter_cond): Rename bmp_iter_set.  Update callers.
4574         (sbitmap_iter_next): Rename bmp_iter_next and add unused parameter to
4575         match bitmap iterator.  Update callers.
4576         (EXECUTE_IF_SET_IN_SBITMAP_REV): Remove unused.
4577         (EXECUTE_IF_SET_IN_SBITMAP): Rename EXECUTE_IF_SET_IN_BITMAP and
4578         adjust to be identical to the definition in bitmap.h.  Conditionalize
4579         the definition based on not having been defined.  Update callers.
4580         * bitmap.h (EXECUTE_IF_SET_IN_BITMAP): Conditionalize the definition
4581         based on not having been defined.  (To match the above.)
4583 2012-11-01  Lawrence Crowl  <crowl@google.com>
4585         * sbitmap.h (TEST_BIT): Rename bitmap_bit_p, normalizing parameter
4586         type. Update callers to match.
4587         (SET_BIT): Rename bitmap_set_bit, normalizing parameter type. Update
4588         callers to match.
4589         (SET_BIT_WITH_POPCOUNT): Rename bitmap_set_bit_with_popcount,
4590         normalizing parameter type. Update callers to match.
4591         (RESET_BIT): Rename bitmap_clear_bit, normalizing parameter type.
4592         Update callers to match.
4593         (RESET_BIT_WITH_POPCOUNT): Rename bitmap_clear_bit_with_popcount,
4594         normalizing parameter type. Update callers to match.
4595         * basic-block.h (sbitmap_intersection_of_succs): Rename
4596         bitmap_intersection_of_succs. Update callers to match.
4597         * basic-block.h (sbitmap_intersection_of_preds): Rename
4598         bitmap_intersection_of_preds. Update callers to match.
4599         * basic-block.h (sbitmap_union_of_succs): Rename
4600         bitmap_union_of_succs. Update callers to match.
4601         * basic-block.h (sbitmap_union_of_preds): Rename
4602         bitmap_union_of_preds. Update callers to match.
4604 2012-11-01  Vladimir Makarov  <vmakarov@redhat.com>
4606         PR middle-end/55150
4607         * lra-constraints.c (lra_constraints): Check only pseudos with
4608         equivalences.  Add insns with equivalence pseudos.
4610 2012-11-01  Sharad Singhai  <singhai@google.com>
4612         PR other/55164
4613         * dumpfile.h (struct dump_file_info): Fix order of flags.
4615 2012-11-01  Jan Hubicka  <jh@suse.cz>
4617         PR middle-end/55104
4618         * ipa-inline-transform.c (inline_call): Silence an sanity check until
4619         ipa-cp issue if fixed.
4621 2012-11-01  Sharad Singhai  <singhai@google.com>
4623         * doc/invoke.texi: Update -fopt-info documentation.
4624         * dumpfile.c: Move dump_flags here from passes.c.
4625         Rename opt_info_options to optinfo_verbosity_options.
4626         Add optgroup_options.
4627         (dump_files): Add field for optinfo_flags in the static initializer.
4628         (dump_register): Handle additional parameter for optgroup_flags.
4629         (opt_info_enable_passes): Renamed opt_info_enable_all. Handle
4630         optgroup_flags. Fix documentation.
4631         (opt_info_switch_p_1): Handle optgroup options.
4632         (opt_info_switch_p): Handle optgroup_flags. Warn on multiple files.
4633         * dumpfile.h (dump_register): Additional argument for optgroup_flags.
4634         All callers updated.
4635         (struct dump_file_info): Add field for optgroup_flags.
4636         Define OPTGROUP_* flags.
4637         * tree-pass.h (struct opt_pass): Add addtional field for optinfo_flags.
4638         All opt_pass static initializers updated.
4639         * opts-global.c (dump_remap_tree_vectorizer_verbose): Use 'all'
4640         instead of 'optall'.
4641         (handle_common_deferred_options): Fix typo in error message.
4642         * passes.c (register_one_dump_file): Add argument for optgroup_flags.
4643         Turn on OPTGROUP_IPA for IPA passes.
4644         Move dump_flags from here to dumpfile.c.
4645         * statistics.c (statistics_early_init): Use OPTGROUP_NONE in call to
4646         dump_register.
4648 2012-11-01  Joern Rennecke  <joern.rennecke@embecosm.com>
4650         PR target/55160
4651         * config/sh/sh.md (doloop_end): Use emit_jump_insn.
4653 2012-10-31  Jakub Jelinek  <jakub@redhat.com>
4655         PR tree-optimization/53708
4656         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
4657         user-supplied alignment when used with an explicit section name.
4659 2012-10-31  Dehao Chen  <dehao@google.com>
4661         * tree-eh.c (do_return_redirection): Set location for jump statement.
4662         (do_goto_redirection): Likewise.
4663         (frob_into_branch_around): Likewise.
4664         (lower_try_finally_nofallthru): Likewise.
4665         (lower_try_finally_copy): Likewise.
4666         (lower_try_finally_switch): Likewise.
4667         * expr.c (store_expr): Use current insn location instead of expr
4668         location.
4669         (expand_expr_real): Likewise.
4670         (expand_expr_real_1): Likewise.
4672 2012-10-31   Easwaran Raman  <eraman@google.com>
4674         PR target/54938
4675         PR middle-end/54957
4676         * optabs.c (emit_cmp_and_jump_insn_1): Add REG_BR_PROB note
4677         only if it doesn't already exist.
4678         * stmt.c (get_outgoing_edge_probs): Return 0 if BB is NULL.
4679         (emit_case_dispatch_table): Handle the case where STMT_BB is NULL.
4680         (expand_sjlj_dispatch_table): Pass BB containing before_case
4681         to emit_case_dispatch_table.
4683 2012-10-31  Lawrence Crowl  <crowl@google.com>
4685         * is-a.h: New.
4686         (is_a <T> (U*)): New.  Test for is-a relationship.
4687         (as_a <T> (U*)): New.  Treat as a derived type.
4688         (dyn_cast <T> (U*)): New.  Conditionally cast based on is_a.
4689         * cgraph.h (varpool_node): Rename to varpool_node_for_decl.
4690         Adjust callers to match.
4691         (is_a_helper <cgraph_node>::test (symtab_node_def *)): New.
4692         (is_a_helper <varpool_node>::test (symtab_node_def *)): New.
4693         (symtab_node_def::try_function): New.  Change most calls to
4694         symtab_function_p with calls to dyn_cast <cgraph_node> (p).
4695         (symtab_node_def::try_variable): New.  Change most calls to
4696         symtab_variable_p with calls to dyn_cast <varpool_node> (p).
4697         (symtab_function_p): Remove.  Change callers to use
4698         is_a <cgraph_node> (p) instead.
4699         (symtab_variable_p): Remove.  Change callers to use
4700         is_a <varpool_node> (p) instead.
4701         * cgraph.c (cgraph_node_for_asm): Remove redundant call to
4702         symtab_node_for_asm.
4703         * cgraphunit.c (symbol_finalized_and_needed): New.
4704         (symbol_finalized): New.
4705         (cgraph_analyze_functions): Split complicated conditionals out into
4706         above new functions.
4707         * Makefile.in (CGRAPH_H): Add is-a.h as used by cgraph.h.
4709 2012-10-31  Steven Bosscher  <steven@gcc.gnu.org>
4710             Jakub Jelinek  <jakub@redhat.com>
4712         PR tree-optimization/55018
4713         * basic-block.h (dfs_find_deadend): New prototype.
4714         * cfganal.c (dfs_find_deadend): No longer static.  Use bitmap
4715         instead of sbitmap for visited.
4716         (flow_dfs_compute_reverse_execute): Use dfs_find_deadend here, too.
4717         * dominance.c (calc_dfs_tree): If saw_unconnected, traverse from
4718         dfs_find_deadend of unconnected b instead of b directly.
4720 2012-10-31  Eric Botcazou  <ebotcazou@adacore.com>
4722         * config/i386/i386.c (ix86_expand_prologue): Emit frame info for the
4723         special register pushes before frame probing and allocation.
4725 2012-10-31  Vladimir Makarov  <vmakarov@redhat.com>
4727         PR middle-end/55150
4728         * lra-constraints.c (lra_constraints): Update debug insn info
4729         after equivalence change.
4731 2012-10-31  Jan Hubicka  <jh@suse.cz>
4733         * ipa-inline.c (ipa_inline): Avoid infinite loop on inlining
4734         empty virtual functions calling themselves.
4736 2012-10-31  Tom Tromey  <tromey@redhat.com>
4738         PR other/50899
4739         * doc/gcc.texi: Add @direntry for gcov.
4741 2012-10-31  Joern Rennecke  <joern.rennecke@embecosm.com>
4743         * expr.c (can_move_by_pieces): Apply ATTRIBUTE_UNUSED to len.
4745 2012-10-31  Jakub Jelinek  <jakub@redhat.com>
4747         PR tree-optimization/19105
4748         PR tree-optimization/21643
4749         PR tree-optimization/46309
4750         * tree-ssa-reassoc.c (init_range_entry): Add STMT argument
4751         and use it if EXP is NULL.
4752         (update_range_test): Handle OPCODE equal to ERROR_MARK and oe->op NULL.
4753         (optimize_range_tests): Likewise.
4754         (final_range_test_p, suitable_cond_bb, no_side_effect_bb, get_ops,
4755         maybe_optimize_range_tests): New functions.
4756         (reassociate_bb): Call maybe_optimize_range_tests if last
4757         stmt of bb is GIMPLE_COND that hasn't been visited yet.
4759 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
4761         * config/rs6000/rs6000.md (insvsi, insvdi, extvsi, extvdi): Rename
4762         to...
4763         (insvsi_internal, insvdi_internal, extvsi_internal)
4764         (extvdi_internal): ...this.
4765         (insv, extv): Update accordingly.
4767 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
4769         * combine.c (simplify_comparison): If BITS_BIG_ENDIAN, always assume
4770         that zero_extracts of const_ints are doing word-sized extractions.
4772 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
4774         * combine.c (make_extraction): Remove dead wanted_inner_mode-
4775         and pos_rtx-related code.
4777 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
4779         * expmed.c (store_bit_field_1): Move generation of MEM insvs
4780         to the MEM_P block.
4781         (extract_bit_field_1): Likewise extvs and extzvs.
4783 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
4785         * expmed.c (store_bit_field_using_insv): New function,
4786         split out from...
4787         (store_bit_field_1): ...here.
4788         (extract_bit_field_using_extv): New function, split out from...
4789         (extract_bit_field_1): ...here.
4791 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
4793         * expmed.c (store_bit_field_1): Use OP_MODE to check whether an
4794         insv pattern is available.  Remove redundant checks for OP_MODE
4795         being MAX_MACHINE_MODE.
4796         (extract_bit_field_1): Remove redundant checks for EXT_MODE being
4797         MAX_MACHINE_MODE.
4799 2012-10-31  Richard Sandiford  <rdsandiford@googlemail.com>
4801         * expmed.c (store_bit_field_1): Remove test for BLKmode values.
4803 2012-10-31  Ralf Corsépius  <ralf.corsepius@rtems.org>,
4804             Joel Sherrill  <joel.sherrill@oarcorp.com>
4806         * config/sparc/t-rtems: New (Custom multilibs).
4807         * config/sparc/t-rtems-64: New (Custom multilibs).
4808         * config.gcc (sparc64-*-rtems*): Add sparc/t-rtems-64.
4809         (sparc-*-rtems*): Add sparc/t-rtems.
4811 2012-10-31  Alan Modra  <amodra@gmail.com>
4813         * config/rs6000/rs6000.c (legitimize_reload_address): Remove code
4814         handling non-aligned ld/std.
4815         * config/rs6000/paired.md (movv2sf_paired): Use 'Y' instead of 'o'.
4816         * config/rs6000/vsx.md (vsx_mov, vsx_movti): Likewise.
4817         * config/rs6000/altivec.md (altivec_mov, altivec_movti): Likewise.
4818         * config/rs6000/dfp.md (movtd_internal): Use 'm' instead of 'o'.
4820 2012-10-31  Alan Modra  <amodra@gmail.com>
4822         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Define _CALL_LINUX.
4824 2012-10-31  Joern Rennecke  <joern.rennecke@embecosm.com>
4826         * lra-constraints.c (choose_split_class): Add ATTRIBUTE_UNUSED to
4827         hard_reg_class.
4829         PR target/52498
4830         * vmsdbgout.c (vmsdbgout_write_source_line): Comment out names of
4831         last two parameters.
4833 2012-10-30  Alexandre Oliva <aoliva@redhat.com>
4835         PR debug/54551
4836         PR debug/54693
4837         * valtrack.c (dead_debug_promote_uses): Assert-check that
4838         global used bit was clear and initialize entry unconditionally.
4840 2012-10-30  Eric Botcazou  <ebotcazou@adacore.com>
4842         * cse.c (hash_rtx_cb): Replace RTX_UNCHANGING_P with MEM_READONLY_P in
4843         head comment.
4844         (hash_rtx): Likewise.
4846 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
4848         PR rtl-optimization/55093
4849         * rtlanal.c (simplify_subreg_regno): Remove lra_in_progress
4850         check for ARG_POINTER_REGNUM.
4852 2012-10-30  Steve Ellcey  <sellcey@mips.com>
4854         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Change order
4855         and add mabi=64.
4856         (DRIVER_SELF_SPECS): Make -n32 the default on mips64* archs.
4857         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Change order.
4858         (MULTILIB_DIRNAMES): Ditto.
4859         (MULTILIB_EXCEPTIONS): New.
4861 2012-10-30  Joern Rennecke  <joern.rennecke@embecosm.com>
4863         * lra-constraints.c (check_secondary_memory_needed_p):
4864         Add ATTRIBUTE_UNUSED to parameters.
4866 2012-10-30  Richard Sandiford  <rdsandiford@googlemail.com>
4868         * defaults.h (SLOW_UNALIGNED_ACCESS): Provide default definition.
4869         * expmed.c (SLOW_UNALIGNED_ACCESS): Remove default definition.
4870         * expr.c (SLOW_UNALIGNED_ACCESS): Likewise.
4871         * lra-constraints.c (SLOW_UNALIGNED_ACCESS): Likewise.
4872         (simplify_operand_subreg): Don't check STRICT_ALIGNMENT here.
4874 2012-10-30  Jan Hubicka  <jh@suse.cz>
4876         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Cleanup.
4878 2012-10-30  Jan Hubicka  <jh@suse.cz>
4880         * tree-ssa-loop-niter.c (number_of_iterations_exit): New parameter
4881         EVERY_ITERATION with implicit value of true.
4882         (record_estimate): Check dominance relationship of the basic block
4883         we are estimating on instead of relying on UPPER to be false.
4884         (struct ilb_data): Drop RELIABLE.
4885         (idx_infer_loop_bounds): Update.
4886         (infer_loop_bounds_from_ref): Drop parameter RELIABLE.
4887         (infer_loop_bounds_from_array): Drop parameter RELIABLE.
4888         (infer_loop_bounds_from_undefined): Update comments and handling
4889         of RELIABLE.
4890         (estimate_numbers_of_iterations_loop): Record all bounds.
4892 2012-10-30  Richard Sandiford  <r.sandiford@uk.ibm.com>
4894         * lra-eliminations.c (lra_eliminate_regs_1): Use simplify_gen_subreg
4895         rather than gen_rtx_SUBREG.
4897 2012-10-30  Richard Biener  <rguenther@suse.de>
4899         * gimple.h (gimple_store_p): New predicate.
4900         (gimple_assign_load_p): Likewise.
4901         * tree-inline.c (estimate_num_insns): Use it.
4903 2012-10-30  Marc Glisse  <marc.glisse@inria.fr>
4905         * fold-const.c (fold_binary_op_with_conditional_arg): Handle vectors.
4906         (fold_binary_loc): Call it for VEC_COND_EXPR.
4908 2012-10-30  James Greenhalgh  <james.greenhalgh@arm.com>
4909             Tejas Belagod  <tejas.belagod@arm.com>
4911         * config/aarch64/aarch64-simd.md
4912         (aarch64_simd_bsl<mode>_internal): New pattern.
4913         (aarch64_simd_bsl<mode>): Likewise.
4914         (aarch64_vcond_internal<mode>): Likewise.
4915         (vcondu<mode><mode>): Likewise.
4916         (vcond<mode><mode>): Likewise.
4917         * config/aarch64/iterators.md (UNSPEC_BSL): Add to define_constants.
4919 2012-10-30  Richard Biener  <rguenther@suse.de>
4921         PR tree-optimization/55111
4922         * tree-ssa-pre.c (eliminate_insert): Properly fold the built stmt.
4924 2012-10-30  Oleg Endo  <olegendo@gcc.gnu.org>
4926         PR target/54963
4927         * config/sh/iterators.md (SIDI): New mode iterator.
4928         * config/sh/sh.md (negdi2): Use parallel around operation and T_REG
4929         clobber in expander.
4930         (*negdi2): Mark output operand as early clobbered.  Add T_REG clobber.
4931         Split after reload.  Simplify split code.
4932         (abssi2, absdi2): Fold expanders into abs<mode>2.
4933         (*abssi2, *absdi2): Fold into *abs<mode>2 insn_and_split.  Split insns
4934         before reload.
4935         (*negabssi2, *negabsdi2): Fold into *negabs<mode>2.  Add T_REG clobber.
4936         Split insns before reload.
4937         (negsi_cond): Reformat.  Use emit_move_insn instead of gen_movesi.
4938         (negdi_cond): Reformat.  Use emit_move_insn instead of a pair
4939         of gen_movsi.  Split insn before reload.
4941 2012-10-30  Oleg Endo  <olegendo@gcc.gnu.org>
4943         PR target/53988
4944         * config/sh/sh.md (tstqi_t_zero): Rename to *tstqi_t_zero.
4945         (*tst<mode>_t_zero): New insns.
4946         * config/sh/iterators.md (lowpart_be, lowpart_le): New mode attributes.
4948 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
4950         * gimple-pretty-print.c (dump_gimple_bb_header): Avoid alloca.
4952 2012-10-30  Jakub Jelinek  <jakub@redhat.com>
4954         PR debug/54953
4955         * valtrack.h (DEBUG_TEMP_AFTER_WITH_REG_FORCE): New.
4956         * valtrack.c (dead_debug_insert_temp): Use emit_debug_insn_after
4957         even for where == DEBUG_TEMP_AFTER_WITH_REG_FORCE.
4958         * dce.c (word_dce_process_block, dce_process_block): Pass
4959         DEBUG_TEMP_AFTER_WITH_REG_FORCE if insn is needed and therefore
4960         not going to be eliminated.
4962 2012-10-29  Lawrence Crowl  <crowl@google.com>
4964         * sbitmap.h (sbitmap_copy): Rename bitmap_copy.
4965         (sbitmap_copy_n): Rename bitmap_copy_n.
4966         (sbitmap_equal): Rename bitmap_equal_p.
4967         (sbitmap_empty_p): Rename bitmap_empty_p.
4968         (sbitmap_range_empty_p): Rename bitmap_range_empty_p.
4969         (sbitmap_zero): Rename bitmap_clear.
4970         (sbitmap_ones): Rename bitmap_ones.
4971         (sbitmap_vector_zero): Rename bitmap_vector_clear.
4972         (sbitmap_vector_ones): Rename bitmap_vector_ones.
4973         (sbitmap_not): Rename bitmap_not.
4974         (sbitmap_a_and_b_cg): Commented out.
4975         (sbitmap_a_and_b): Rename bitmap_and.  Add bool return.
4976         (sbitmap_difference): Rename bitmap_and_compl.
4977         (sbitmap_a_or_b_cg): Commented out.
4978         (sbitmap_a_or_b): Rename bitmap_xor.  Add bool return.
4979         (sbitmap_a_xor_b_cg): Commented out.
4980         (sbitmap_a_xor_b): Rename bitmap_xor.  Add bool return.
4981         (sbitmap_a_and_b_or_c_cg): Rename bitmap_and_or.
4982         (sbitmap_a_and_b_or_c): Commented out.
4983         (sbitmap_a_or_b_and_c_cg): Rename bitmap_or_and.
4984         (sbitmap_a_or_b_and_c): Commented out.
4985         (sbitmap_union_of_diff_cg): Rename bitmap_ior_and_compl.
4986         (sbitmap_union_of_diff): Commented out.
4987         (dump_sbitmap): Rename dump_bitmap.
4988         (dump_sbitmap_file): Rename dump_bitmap_file.
4989         (debug_sbitmap): Rename debug_bitmap.
4990         (dump_sbitmap_vector): Rename dump_bitmap_vector.
4991         (sbitmap_first_set_bit): Rename bitmap_first_set_bit.
4992         (sbitmap_last_set_bit): Rename bitmap_last_set_bit.
4993         (sbitmap_a_subset_b_p): Rename bitmap_subset_p.
4994         (sbitmap_any_common_bits): Rename bitmap_intersect_p.
4995         (#define sbitmap_free): Reimplement as inline function.
4996         (#define sbitmap_vector_free): Reimplement as inline function.
4997         * bitmap.h (#define bitmap_zero): Remove as redundant.
4998         (#define bitmap_empty_p): Reimplement as inline function.
4999         (#define dump_bitmap): Reimplement as inline function.
5001 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
5003         PR c++/54930
5004         * doc/invoke.texi (Warning Options): Document -Wno-return-local-addr.
5006 2012-10-29  H.J. Lu  <hongjiu.lu@intel.com>
5008         * lra-assigns.c: Remove trailing white spaces.
5009         * lra-coalesce.c: Likewise.
5010         * lra-constraints.c: Likewise.
5011         * lra-eliminations.c: Likewise.
5012         * lra-int.h: Likewise.
5013         * lra-spills.c: Likewise.
5014         * lra.c: Likewise.
5016 2012-10-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5018         PR c/53066
5019         * tree.h (FUNCTION_POINTER_TYPE_P): New.
5021 2012-10-29  Alexandre Oliva <aoliva@redhat.com>
5023         PR debug/54693
5024         * valtrack.c (dead_debug_insert_temp): Defer rescan of
5025         newly-emitted debug insn.
5027 2012-10-29  Alexandre Oliva <aoliva@redhat.com>
5029         PR debug/54693
5030         * tree-ssa-threadedge.c (thread_around_empty_block): Copy
5031         debug temps from predecessor before threading.
5033 2012-10-29  Alexandre Oliva <aoliva@redhat.com>
5035         PR debug/54551
5036         PR debug/54693
5037         * valtrack.c (dead_debug_global_find): Accept NULL dtemp.
5038         (dead_debug_global_insert): Return new entry.
5039         (dead_debug_global_replace_temp): Return early if REG is no
5040         longer in place, or if dtemp was already substituted.
5041         (dead_debug_promote_uses): Insert for all defs and replace all
5042         debug uses at once.
5043         (dead_debug_local_finish): Release used after promotion.
5044         (dead_debug_insert_temp): Stop if dtemp is NULL.
5046 2012-10-29  Alexandre Oliva <aoliva@redhat.com>
5048         PR debug/54693
5049         * loop-unroll.c (loop_exit_at_end_p): Skip debug insns.
5051 2012-10-29  Alexandre Oliva <aoliva@redhat.com>
5053         PR debug/54693
5054         * config/i386/i386.c (add_parameter_dependencies): Stop
5055         backward scan at the insn before the incoming head.
5056         (ix86_dependencies_evaluation_hook): Skip debug insns.  Stop
5057         if first_arg is head.
5059 2012-10-29  Andrew Pinski  <apinski@cavium.com>
5061         * config/aarch64/aarch64-protos.h (aarch64_load_tp): New proto.
5062         * config/aarch64/aarch64.c (aarch64_load_tp): Export.
5063         (aarch64_init_builtins): Don't add __builtin_thread_pointer builtin.
5064         * config/aarch64/aarch64.h (aarch64_builtins): Delete
5065         AARCH64_BUILTIN_THREAD_POINTER.
5066         * config/aarch64/aarch64.md (get_thread_pointerdi): New pattern.
5068 2012-10-29  Marc Glisse  <marc.glisse@inria.fr>
5070         PR middle-end/55027
5071         * tree.c (real_zerop, real_onep, real_twop, real_minus_onep):
5072         Handle VECTOR_CST.
5074 2012-10-29  Vladimir Makarov  <vmakarov@redhat.com>
5076         * rtlanal.c (strip_address_mutation): Use SUBREG_REG instead of XEXP.
5078 2012-10-29  Uros Bizjak  <ubizjak@gmail.com>
5080         * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
5081         for all addresses, zero-extended with AND.
5083 2012-10-29  Vladimir Makarov  <vmakarov@redhat.com>
5085         PR middle-end/55116
5086         * rtlanal.c (strip_address_mutation): Add SUBREG case.
5088 2012-10-29  Jan Hubicka  <jh@suse.cz>
5090         * ipa-inline.c (want_inline_function_called_once_p): Rename to ...
5091         (want_inline_function_to_all_callers_p): check also functions with
5092         multiple callers.
5093         (ipa_inline): Handle inlining for size into multiple callers.
5095 2012-10-29  Richard Guenther  <rguenther@suse.de>
5097         PR middle-end/53695
5098         * tracer.c (tracer): Fixup loop structure.
5099         * cfgloopmanip.c (force_single_succ_latches): Add assert.
5100         (fix_loop_structure): Re-compute loop latches and disambiguate
5101         loops with multiple latches if required.
5103 2012-10-29  Uros Bizjak  <ubizjak@gmail.com>
5105         * config/i386/i386.c (ix86_decompose_address): Use simplify_gen_subreg
5106         to check SImode equivalent of address, zero-extended with AND RTX.
5107         * config/i386/i386.md (ashift to lea splitter): Split to SImode mult.
5108         (simple lea to add/shift peephole2s): Remove peephole2s that operate
5109         on subregs of DImode operations.
5111 2012-10-28  Vladimir Makarov  <vmakarov@redhat.com>
5113         PR rtl-optimization/55106
5114         * lra-constraints.c (skip_usage_debug_insns): New function.
5115         (check_secondary_memory_needed_p): Ditto.
5116         (inherit_reload_reg): Use the new functions.  Improve debug output.
5118 2012-10-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
5120         * doc/cpp.texi (Search Path): Fix outdated C++ path.
5122 2012-10-28  Jan Hubicka  <jh@suse.cz>
5124         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Handle
5125         &this->field expressions.
5127 2012-10-28  Vladimir Makarov  <vmakarov@redhat.com>
5129         * rtl.h (struct rtx_def): Add a comment for member unchanging.
5130         * lra-int.h (LRA_TEMP_CLOBBER_P): New macro.
5131         (lra_hard_reg_substitution): Rename to lra_final_code_change.
5132         * lra-constraints.c (match_reload): Mark temporary clobbers.
5133         * lra-spill.c (lra_hard_reg_substitution): Rename to
5134         lra_final_code_change.  Remove temporary clobbers.
5135         * lra.c (lra): Rename to lra_final_code_change.
5137 2012-10-28  Jan Hubicka  <jh@suse.cz>
5139         * ipa-inline.c (edge_badness): Fix overflow.
5140         (inline_small_functions): Initialize SCCs correctly.
5141         (do_estimate_edge_time, do_estimate_edge_hints): Skip self
5142         recursive functions in SCC hints.
5144 2012-10-28  Steven Bosscher  <steven@gcc.gnu.org>
5146         PR rtl-optimization/38711
5147         * ira.c (ira): Remove DF_LIVE if the problem is in the stack.
5148         (do_reload): Add it back at the end for -O2 and higher.
5150         * function.c (thread_prologue_and_epilogue_insns): Use
5151         REG_SET_TO_HARD_REG_SET instead of CLEAR_HARD_REG_SET and
5152         reg_set_to_hard_reg_set.
5154 2012-10-28  Jan Hubicka  <jh@suse.cz>
5156         * ipa-inline.c (edge_badness): Reduce precision; use scc hints.
5157         (inline_small_functions): Fix dumps; update all callees after inlining.
5158         * ipa-inline.h (INLINE_HINT_in_scc, INLINE_HINT_same_scc): New
5159         constants.
5160         (inline summary): Add SCC_NO.
5161         * ipa-inline-analysis.c (dump_inline_hints): Dump SCC hints.
5162         (reset_inline_summary): Reset scc_no.
5163         (estimate_node_size_and_time): Set in_scc hint.
5164         (do_estimate_edge_time): Add same_scc hint.
5165         (do_estimate_edge_hints): Likewise.
5167 2012-10-28  Andreas Schwab  <schwab@linux-m68k.org>
5169         * doc/cppopts.texi: Fix use of @item vs. @itemx inside @table.
5170         * doc/extend.texi: Likewise.
5171         * doc/generic.texi: Likewise.
5172         * doc/invoke.texi: Likewise.
5173         * doc/md.texi: Likewise.
5174         * doc/sourcebuild.texi: Likewise.
5176         * doc/tm.texi.in (Misc): Add newline before @end.
5177         * doc/tm.texi: Update.
5179 2012-10-27  Joern Rennecke  <joern.rennecke@embecosm.com>
5181         * lra-assigns.c (find_hard_regno_for): Fix use of WORDS_BIG_ENDIAN.
5183 2012-10-27  Georg-Johann Lay  <avr@gjlay.de>
5185         PR target/55034
5186         * config/avr/avr.c (avr_out_lpm): Remove unused regno_dest.
5188 2012-10-27  Oleg Endo  <olegendo@gcc.gnu.org>
5190         PR target/55042
5191         * config/sh/sh.c (sh1_builtin_p): Comment out unused function.
5193 2012-10-27  Uros Bizjak  <ubizjak@gmail.com>
5195         * config/i386/i386.md (*lea<mode>): Remove unneeded temporary.
5197 2012-10-26  David S. Miller  <davem@davemloft.net>
5199         * config/sparc/constraints.md: Update unused letter list, move
5200         "w" near other memory constraints.  Remove no longer relevant
5201         comment.
5202         * doc/md.texi: Sync sparc constraint documentation with reality.
5204 2012-10-26  DJ Delorie  <dj@redhat.com>
5206         * config/rl78/rl78.c (rl78_as_legitimate_address): Do not allow
5207         reg+addend addresses for the _far namespace.
5209 2012-10-26  Segher Boessenkool  <segher@kernel.crashing.org>
5211         * config/rs6000/sync.md (ATOMIC): Correct DI condition.
5213 2012-10-26  Jakub Jelinek  <jakub@redhat.com>
5215         PR debug/54970
5216         * cfgexpand.c (expand_debug_expr): Expand &MEM_REF[&var, n]
5217         as DEBUG_IMPLICIT_PTR + n if &var expands to DEBUG_IMPLICIT_PTR.
5218         * tree-sra.c (create_access_replacement): Allow also MEM_REFs
5219         with ADDR_EXPR first operand in DECL_DEBUG_EXPR expressions.
5220         * var-tracking.c (track_expr_p): Handle MEM_REFs in DECL_DEBUG_EXPR
5221         expressions.
5222         * dwarf2out.c (add_var_loc_to_decl): Likewise.
5224 2012-10-26  Jeff Law  <law@redhat.com>
5226         * tree-ssa-threadedge.c (cond_arg_set_in_bb): Use last stmt.
5228 2012-10-26  Gunther Nikl  <gnikl@users.sourceforge.net>
5230         * common/config/m68k/m68k-common.c (m68k_handle_option): Set
5231         gcc_options fields of opts_set for -m68020-40 and -m68020-60.
5233 2012-10-26  Teresa Johnson  <tejohnson@google.com>
5235         * ree.c (add_removable_extension): Remove unnecessary
5236         mode check with other extension.
5237         * testsuite/gcc.c-torture/execute/20111227-2.c: New test.
5238         * testsuite/gcc.c-torture/execute/20111227-3.c: Ditto.
5240 2012-10-26  Jan Hubicka  <jh@suse.cz>
5242         * ipa-inline-transform.c (inline_call): Only account size changes
5243         for !DECL_EXTERNAL.
5245 2012-10-26  Martin Jambor  <mjambor@suse.cz>
5247         PR debug/54971
5248         * tree-sra.c (struct access): New flag grp_to_be_debug_replaced.
5249         (dump_access): Dump the new flag.
5250         (analyze_access_subtree): Set the new flag when appropriate.
5251         (create_access_replacement): Handle debug replacements differently.
5252         (generate_subtree_copies): Handle the grp_to_be_debug_replaced flag.
5253         (init_subtree_with_zero): Likewise.
5254         (sra_modify_expr): Likewise.
5255         (load_assign_lhs_subreplacements): Likewise.
5256         (sra_modify_assign): Likewise.
5258 2012-10-23  Yuri Rumyantsev  <ysrumyan@gmail.com>
5260         * config/i386/i386.c (insn_is_function_arg) : Add check on CALL
5261         instruction.
5262         (ix86_dependencies_evaluation_hook): Insert dependencies in all
5263         predecessors of call block for non-trivial region avoiding creation
5264         of loop-carried dependency to avoid cross-block motion of HW registers.
5266 2012-10-26  Richard Biener  <rguenther@suse.de>
5268         PR middle-end/54824
5269         * tree-optimize.c (execute_fixup_cfg): Insert __builtin_unreachable
5270         at the end of blocks with no successors.
5272 2012-10-26  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5273             Uros Bizjak  <ubizjak@gmail.com>
5275         * common/config/i386/i386-common.c
5276         (OPTION_MASK_ISA_FXSR_SET): New.
5277         (OPTION_MASK_ISA_XSAVE_SET): Likewise.
5278         (OPTION_MASK_ISA_XSAVEOPT_SET): Likewise.
5279         (ix86_handle_option): Handle mfxsr, mxsave, mxsaveopt options.
5280         * config.gcc (i[34567]86-*-*): Add fxsrintrin.h,
5281         xsaveintrin.h, xsaveoptintrin.h.
5282         (x86_64-*-*): Likewise.
5283         * config/i386/fxsrintrin.h: New header.
5284         * config/i386/xsaveintrin.h: Likewise.
5285         * config/i386/xsaveoptintrin.h: Likewise.
5286         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5287         FXSR/XSAVE/XSAVEOPT support.
5288         * config/i386/i386-builtin-types.def
5289         (VOID_FTYPE_PVOID_INT64): New function type.
5290         * config/i386/i386-c.c: Define __FXSR__, __XSAVE__
5291         and __XSAVEOPT__ if needed.
5292         * config/i386/i386.c (ix86_target_string): Define -mfxsr,
5293          -mxsave and -mxsaveopt options.
5294         (PTA_FXSR): New.
5295         (PTA_XSAVE): Likewise.
5296         (PTA_XSAVEOPT): Likewise.
5297         (ix86_option_override_internal): Handle new option.
5298         (processor_alias_table): Added PTA_FXSR, PTA_XSAVE, PTA_XSAVEOPT.
5299         (ix86_valid_target_attribute_inner_p): Add OPT_mfxsr,
5300         OPT_mxsave, OPT_mxsaveopt.
5301         (ix86_builtins): Add IX86_BUILTIN_FXSAVE, IX86_BUILTIN_FXRSTOR,
5302         IX86_BUILTIN_FXSAVE64, IX86_BUILTIN_XSAVE, IX86_BUILTIN_XSAVE64,
5303         IX86_BUILTIN_XRSTOR, IX86_BUILTIN_XRSTOR64, IX86_BUILTIN_XSAVEOPT,
5304         IX86_BUILTIN_XSAVEOPT64.
5305         (ix86_expand_builtin): Handle these built-ins.
5306         * config/i386/i386.h (TARGET_FXSR): New.
5307         (TARGET_XSAVE): Likewise.
5308         (TARGET_XSAVEOPT): Likewise.
5309         * config/i386/i386.md (ANY_XSAVE): New int iterator.
5310         (ANY_XSAVE64): Likewise.
5311         (xsave): New int attribute.
5312         (fxsave): New instruction.
5313         (fxsave64): Likewise.
5314         (fxrstor): Likewise.
5315         (fxrstor64): Likewise.
5316         (<xsave>): Likewise.
5317         (<xsave>_rex64): Likewise.
5318         (xrstor): Likewise.
5319         (xrstor_rex64): Likewise.
5320         (xrstor64): Likewise.
5321         * config/i386/i386.opt (mfxsr): New.
5322         (mxsave): Likewise.
5323         (mxsaveopt): Likewise.
5324         * config/i386/x86intrin.h: Include
5325         xsaveintrin.h, fxsrintrin.h, xsaveoptintrin.h.
5327 2012-10-26  Ralf Corsépius  <ralf.corsepius@rtems.org>
5329         * config/avr/t-rtems: Revert previous commit.
5331 2012-10-26  Richard Sandiford  <rdsandiford@googlemail.com>
5333         PR bootstrap/55049
5334         * Makefile.in (rtlanal.o): Add dependency on addresses.h.
5335         * rtl.h (address_info): New structure.
5336         (strip_address_mutations, decompose_address, decompose_lea_address)
5337         (decompose_mem_address, update_address, get_index_scale)
5338         (get_index_code): Declare.
5339         * rtlanal.c: Include addresses.h.
5340         (strip_address_mutations, must_be_base_p, must_be_index_p)
5341         (set_address_segment, set_address_base, set_address_index)
5342         (set_address_disp, decompose_incdec_address, decompose_automod_address)
5343         (extract_plus_operands, baseness, decompose_normal_address)
5344         (decompose_address, decompose_lea_address, decompose_mem_address)
5345         (update_address, get_index_scale, get_index_code): New functions.
5346         * lra-constraints.c (strip_subreg): New function.
5347         (address, extract_loc_address_regs, extract_address_regs)
5348         (get_index_scale): Delete.
5349         (process_addr_reg): Apply strip_subreg to the location.
5350         (uses_hard_regs_p): Use decompose_mem_address.
5351         (valid_address_p, base_plus_disp_to_reg, can_add_disp_p)
5352         (equiv_address_substitution): Take an address_info rather
5353         than an address.  Remove other arguments.  Avoid using Pmode.
5354         (process_address): Use decompose_mem_address and decompose_lea_address.
5355         Update calls to above functions.
5357 2012-10-26  Richard Sandiford  <rdsandiford@googlemail.com>
5359         * lra-constraints.c (process_address): Tighten arguments to
5360         base_reg_class.  Use simplify_gen_binary to generate PLUS rtxes.
5362 2012-10-26  Richard Sandiford  <rdsandiford@googlemail.com>
5364         * lra-constraints.c (get_index_scale, can_add_disp_p): New functions.
5365         (equiv_address_substitution): Use them.
5367 2012-10-26  Richard Sandiford  <rdsandiford@googlemail.com>
5369         * lra-constraints.c (valid_address_p): New function, split out from...
5370         (process_address): ...here.
5372 2012-10-26  Richard Sandiford  <rdsandiford@googlemail.com>
5374         * lra-constraints.c (process_address): Describe the kinds of address
5375         that we might see.
5377 2012-10-25  Vladimir Makarov  <vmakarov@redhat.com>
5379         * lra-int.h (lra_assert): Redefine it gcc_checking_assert.
5380         * lra-constraints.c (check_and_process_move): Remove #if
5381         ENABLE_ASSERT_CHECKING.
5383 2012-10-26  Ralf Corsépius  <ralf.corsepius@rtems.org>
5385         * config/avr/rtems.h (TARGET_OS_CPP_BUILTINS): Remove
5386         __USE_INIT_FINI__.
5387         * config/avr/t-rtems (LIB1ASMFUNCS): Filter out _exit.
5389 2012-10-25  David S. Miller  <davem@davemloft.net>
5391         * config/sparc/constraints.md ("U"): Delete.
5392         * config/sparc/sparc.md: Use 'r' constraint instead of 'U'.
5393         * config/sparc/sync.md: Likewise.
5395 2012-10-25  Lawrence Crowl  <crowl@google.com>
5397         * hash-table.h: Add usage documentation.
5398         (template struct typed_free_remove): Clarify documentation.
5399         Rename template parameter.
5400         (struct typed_noop_remove): Likewise.
5401         (descriptor concept): Change typedef T to value_type.
5402         Add typedef compare_type.  Use more precise template parameter name,
5403         Descriptor instead of Descr.  Update users to match.
5404         (struct hash_table): Change 'find' parameters to use compare_type
5405         instead of the value type.
5407 2012-10-25  Jan Hubicka  <jh@suse.cz>
5409         * ipa-cp.c (ipcp_discover_new_direct_edges): If something was turned
5410         to direct call update the summary.
5411         * ipa-inline-transform.c (inline_call): Sanity check that summaries
5412         match the predicted effect; fix updating of summary after edge
5413         redirection.
5414         * ipa-inline-analysis.c (inline_node_duplication_hook): Do not try
5415         to update the summary and recompute it instead.
5416         (estimate_function_body_sizes): Fix self size estimation; double
5417         check that it agrees with inline_update_overall_summary.
5418         (estimate_edge_size_and_time): Handle devirtualizaiton costs.
5419         (estimate_edge_devirt_benefit): Update to be called from
5420         estimate_edge_size_and_time.
5421         (estimate_calls_size_and_time): Update.
5422         (estimate_node_size_and_time): Watch overflows.
5423         (inline_merge_summary): Likewise.
5424         * ipa-prob.c: Include ipa-inline.h
5425         (ipa_make_edge_direct_to_target): After redirection update the summary.
5427 2012-10-25  Cary Coutant  <ccoutant@google.com>
5429         PR debug/55063
5430         * dwarf2out.c (prune_unused_types_prune): Check whether DIE is
5431         already a declaration.
5433 2012-10-25  Vladimir Makarov  <vmakarov@redhat.com>
5435         * lra-assigns.c (assign_by_spills): Add non-reload pseudos
5436         assigned to hard register to changed_pseudo_bitmap.
5438 2012-10-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
5440         * config.gcc (microblaze*-*-rtems*): New target.
5441         * config/microblaze/rtems.h: New.
5442         * config/microblaze/t-rtems: New.
5444 2012-10-25  Jan Hubicka  <jh@suse.cz>
5446         PR tree-optimize/54980
5447         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Fix obvious typo.
5448         (loop_edge_to_cancel): Be sure that the edge is from an conditional
5449         so we can cancel it.
5451 2012-10-25  Marc Glisse  <marc.glisse@inria.fr>
5453         PR c++/54427
5454         * tree.c (signed_or_unsigned_type_for): Handle vectors.
5456 2012-10-25  Jan Hubicka  <jh@suse.cz>
5458         * ipa-inline.c (recursive_inlining): Redirect to master
5459         clone before testing profitability.
5461 2012-10-25  Richard Biener  <rguenther@suse.de>
5463         PR tree-optimization/54902
5464         * tree-ssa-pre.c (fini_eliminate): Return TODO.
5465         (do_pre): Adjust.
5466         (execute_fre): Likewise.
5467         * tree-ssa-tailmerge.c (tail_merge_optimize): Delete unreachable
5468         blocks before computing dominators.
5470 2012-10-25  Richard Sandiford  <rdsandiford@googlemail.com>
5472         * expr.c (emit_block_move_via_loop): Use simplify_gen_binary
5473         rather than gen_rtx_PLUS.
5475 2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>
5477         PR bootstrap/55068
5478         PR regression/55050
5479         * ira.c (setup_reg_renumber): Fix assert.
5480         * ira-emit.c (emit_move_list): Update equivalences only for LRA.
5482 2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>
5484         PR bootstrap/55067
5485         * lra.c: Rename loc to sloc and loc_t to sloc_t.
5487 2012-10-24  Sharad Singhai  <singhai@google.com>
5489         * config/rs6000/rs6000.c (rs6000_density_test): Use dump_enabled_p
5490         instead of dump_kind_p.
5492 2012-10-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5494         PR c++/54928
5495         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc):
5496         Use diagnostic_append_note.
5497         * diagnostic.c (diagnostic_build_prefix): Make diagnostic const.
5498         (default_diagnostic_finalizer): Do not destroy prefix here.
5499         (diagnostic_report_diagnostic): Destroy it here.
5500         (diagnostic_append_note): New.
5501         * diagnostic.h (diagnostic_append_note): Declare.
5503 2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>
5505         PR rtl-optimization/55055
5506         * lra-spills.c (alter_subregs): New function.
5507         (lra_hard_reg_substitution): Use it.
5509 2012-10-24  Sharad Singhai  <singhai@google.com>
5511         * dumpfile.c (dump_enabled_p): Make it inline and move the definition
5512         to dumpfile.h.
5513         (dump_kind_p): Deleted. Functionality replaced by dump_enabled_p.
5514         Make alt_dump_file extern.
5515         * dumpfile.h (dump_enabled_p): Move inline definition here.
5516         (dump_kind_p): Delete declaration.
5517         Add extern declaration of alt_dump_file.
5518         * toplev.c: Move dump_file and dump_file_name to dumpfile.c.
5519         * tree-vect-loop-manip.c: Replace all uses of dump_kind_p with
5520         dump_enabled_p.
5521         * tree-vectorizer.c: Likewise.
5522         * tree-vect-loop.c: Likewise.
5523         * tree-vect-data-refs.c: Likewise.
5524         * tree-vect-patterns.c: Likewise.
5525         * tree-vect-stmts.c: Likewise.
5526         * tree-vect-slp.c: Likewise.
5528 2012-10-24  Richard Sandiford  <rdsandiford@googlemail.com>
5530         * expmed.c (lowpart_bit_field_p): Add missing == 0 check.
5532 2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>
5534         PR bootstrap/55049
5535         * lra-constraints.c (extract_loc_address_regs): Pass top_p for
5536         ZERO_EXTEND operand.
5538 2012-10-24  Vladimir Makarov  <vmakarov@redhat.com>
5540         PR bootstrap/55048
5541         * lra-constraints.c (update_ebb_live_info): Skip
5542         non-NOTE_INSN_BASIC_BLOCK notes.
5544 2012-10-24  Jakub Jelinek  <jakub@redhat.com>
5546         PR rtl-optimization/55010
5547         * cse.c (fold_rtx) <RTX_COMPARE>: Call copy_rtx on folded_arg{0,1}
5548         before passing it to simplify_relational_operation.
5550         PR debug/54828
5551         * gimple.h (is_gimple_sizepos): New inline function.
5552         * gimplify.c (gimplify_one_sizepos): Use it.  Remove useless
5553         final assignment to expr variable.
5554         * tree.c (RETURN_TRUE_IF_VAR): Return true also if
5555         !TYPE_SIZES_GIMPLIFIED (type) and _t is going to be gimplified
5556         into a local temporary.
5558 2012-10-23  David S. Miller  <davem@davemloft.net>
5560         * config/sparc/constraints.md ("T", "W"): Change
5561         definitions to use define_memory_constraint.  Do not match 'reg'.
5562         * config/sparc/sparc.c (memory_ok_for_ldd): Remove all non-MEM
5563         handling code, update comment.
5565 2012-10-23  Ian Lance Taylor  <iant@google.com>
5567         * doc/extend.texi (Extended Asm): The '+' constraint does not
5568         require a register.
5570 2012-10-23  Jeff Law  <law@redhat.com>
5572         * tree-ssa-threadedge.c (thread_across_edge): Remove unused
5573         parameter in call to cond_arg_set_in_bb.
5575         * tree-ssa-threadedge.c (cond_arg_set_in_bb): Remove unused
5576         debugging argument.
5578         PR tree-optimization/54985
5579         * tree-ssa-threadedge.c (cond_arg_set_in_bb): New function extracted
5580         from thread_across_edge.
5581         (thread_across_edge): Use it in all cases where we might thread
5582         across a back edge.
5584 2012-10-23  Vladimir Makarov  <vmakarov@redhat.com>
5586         * lra-constraints.c (update_ebb_live_info): Process empty blocks.
5588 2012-10-23  Richard Sandiford  <rdsandiford@googlemail.com>
5590         * expmed.c (store_split_bit_field): Update the calls to
5591         extract_fixed_bit_field.  In the big-endian case, always
5592         use the mode of OP0 to count the number of significant bits.
5593         (extract_bit_field_1): Remove unit, offset, bitpos and
5594         byte_offset from the outermost scope.  Express conditions in terms
5595         of bitnum rather than offset, bitpos and byte_offset.  Move the
5596         computation of MODE1 to the block that needs it.  Use MODE unless
5597         the TMODE-based mode_for_size calculation succeeds.  Split the
5598         plain move cases into two, one for memory accesses and one for
5599         register accesses.  Generalize the memory case, freeing it from
5600         the old register-based endian checks.  Move the INT_MODE calculation
5601         above the code that needs it.  Use simplify_gen_subreg to handle
5602         multiword OP0s.  If the field still spans several words, pass it
5603         directly to extract_split_bit_field.  Assume after that point
5604         that both targets and register sources fit within a word.
5605         Replace x-prefixed variables with non-prefixed forms.
5606         Compute the bitpos for ext(z)v register operands directly in the
5607         chosen unit size, rather than going through an intermediate
5608         BITS_PER_WORD unit size.  Simplify the containment check
5609         used when forcing OP0 into a register.  Update the call to
5610         extract_fixed_bit_field.
5611         (extract_fixed_bit_field): Replace the bitpos and offset parameters
5612         with a single bitnum parameter, of the same form as extract_bit_field.
5613         Assume that OP0 contains the full field.  Simplify the memory offset
5614         calculation and containment check for volatile bitfields.  Make the
5615         offset explicit when volatile bitfields force a misaligned access.
5616         Remove WARNED and fix long lines.  Assert that the processed OP0
5617         has an integral mode.
5618         (store_split_bit_field): Update the call to store_fixed_bit_field.
5620 2012-10-23  Richard Sandiford  <rdsandiford@googlemail.com>
5622         * expmed.c (lowpart_bit_field_p): New function.
5623         (store_bit_field_1): Remove unit, offset, bitpos and byte_offset
5624         from the outermost scope.  Express conditions in terms of bitnum
5625         rather than offset, bitpos and byte_offset.  Split the plain move
5626         cases into two, one for memory accesses and one for register accesses.
5627         Allow simplify_gen_subreg to fail rather than calling validate_subreg.
5628         Move the handling of multiword OP0s after the code that coerces VALUE
5629         to an integer mode.  Use simplify_gen_subreg for this case and assert
5630         that it succeeds.  If the field still spans several words, pass it
5631         directly to store_split_bit_field.  Assume after that point that
5632         both sources and register targets fit within a word.  Replace
5633         x-prefixed variables with non-prefixed forms.  Compute the bitpos
5634         for insv register operands directly in the chosen unit size, rather
5635         than going through an intermediate BITS_PER_WORD unit size.
5636         Update the call to store_fixed_bit_field.
5637         (store_fixed_bit_field): Replace the bitpos and offset parameters
5638         with a single bitnum parameter, of the same form as store_bit_field.
5639         Assume that OP0 contains the full field.  Simplify the memory offset
5640         calculation.  Assert that the processed OP0 has an integral mode.
5641         (store_split_bit_field): Update the call to store_fixed_bit_field.
5643 2012-10-23  Paul Koning  <ni1d@arrl.net>
5645         PR debug/54508
5646         * dwarf2out.c (prune_unused_types_prune): If pruning a class and
5647         not all its children were marked, add DW_AT_declaration flag.
5649 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
5650             James Greenhalgh  <james.greenhalgh@arm.com>
5651             Jim MacArthur  <jim.macarthur@arm.com>
5652             Marcus Shawcroft  <marcus.shawcroft@arm.com>
5653             Nigel Stephens  <nigel.stephens@arm.com>
5654             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5655             Richard Earnshaw  <rearnsha@arm.com>
5656             Sofiane Naci  <sofiane.naci@arm.com>
5657             Stephen Thomas  <stephen.thomas@arm.com>
5658             Tejas Belagod  <tejas.belagod@arm.com>
5659             Yufeng Zhang  <yufeng.zhang@arm.com>
5661         * config.gcc: Add AArch64.
5662         * configure.ac: Add AArch64 TLS support detection.
5663         * configure: Regenerate.
5665 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
5666             James Greenhalgh  <james.greenhalgh@arm.com>
5667             Jim MacArthur  <jim.macarthur@arm.com>
5668             Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
5669             Marcus Shawcroft  <marcus.shawcroft@arm.com>
5670             Nigel Stephens  <nigel.stephens@arm.com>
5671             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5672             Richard Earnshaw  <rearnsha@arm.com>
5673             Sofiane Naci  <sofiane.naci@arm.com>
5674             Stephen Thomas  <stephen.thomas@arm.com>
5675             Tejas Belagod  <tejas.belagod@arm.com>
5676             Yufeng Zhang  <yufeng.zhang@arm.com>
5678         * doc/invoke.texi (AArch64 Options): New.
5679         * doc/md.texi (Machine Constraints): Add AArch64.
5681 2012-10-23  Ian Bolton  <ian.bolton@arm.com>
5682             James Greenhalgh  <james.greenhalgh@arm.com>
5683             Jim MacArthur  <jim.macarthur@arm.com>
5684             Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
5685             Marcus Shawcroft  <marcus.shawcroft@arm.com>
5686             Nigel Stephens  <nigel.stephens@arm.com>
5687             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5688             Richard Earnshaw  <rearnsha@arm.com>
5689             Sofiane Naci  <sofiane.naci@arm.com>
5690             Stephen Thomas  <stephen.thomas@arm.com>
5691             Tejas Belagod  <tejas.belagod@arm.com>
5692             Yufeng Zhang  <yufeng.zhang@arm.com>
5694         * common/config/aarch64/aarch64-common.c: New file.
5695         * config/aarch64/aarch64-arches.def: New file.
5696         * config/aarch64/aarch64-builtins.c: New file.
5697         * config/aarch64/aarch64-cores.def: New file.
5698         * config/aarch64/aarch64-elf-raw.h: New file.
5699         * config/aarch64/aarch64-elf.h: New file.
5700         * config/aarch64/aarch64-generic.md: New file.
5701         * config/aarch64/aarch64-linux.h: New file.
5702         * config/aarch64/aarch64-modes.def: New file.
5703         * config/aarch64/aarch64-option-extensions.def: New file.
5704         * config/aarch64/aarch64-opts.h: New file.
5705         * config/aarch64/aarch64-protos.h: New file.
5706         * config/aarch64/aarch64-simd.md: New file.
5707         * config/aarch64/aarch64-tune.md: New file.
5708         * config/aarch64/aarch64.c: New file.
5709         * config/aarch64/aarch64.h: New file.
5710         * config/aarch64/aarch64.md: New file.
5711         * config/aarch64/aarch64.opt: New file.
5712         * config/aarch64/arm_neon.h: New file.
5713         * config/aarch64/constraints.md: New file.
5714         * config/aarch64/gentune.sh: New file.
5715         * config/aarch64/iterators.md: New file.
5716         * config/aarch64/large.md: New file.
5717         * config/aarch64/predicates.md: New file.
5718         * config/aarch64/small.md: New file.
5719         * config/aarch64/sync.md: New file.
5720         * config/aarch64/t-aarch64-linux: New file.
5721         * config/aarch64/t-aarch64: New file.
5723 2012-10-23  Michael Matz  <matz@suse.de>
5725         * tree-ssa-operands.h (struct def_optype_d, def_optype_p): Remove.
5726         (ssa_operands.free_defs): Remove.
5727         (DEF_OP_PTR, DEF_OP): Remove.
5728         (struct ssa_operand_iterator_d): Remove 'defs', add 'flags' members,
5729         rename 'phi_stmt' to 'stmt', 'phi_i' to 'i' and 'num_phi' to 'numops'.
5730         * gimple.h (gimple_statement_with_ops.def_ops): Remove.
5731         (gimple_def_ops, gimple_set_def_ops): Remove.
5732         (gimple_vdef_op): Don't take const gimple, adjust.
5733         (gimple_asm_input_op, gimple_asm_input_op_ptr,
5734         gimple_asm_set_input_op, gimple_asm_output_op,
5735         gimple_asm_output_op_ptr, gimple_asm_set_output_op): Adjust asserts,
5736         and rewrite to move def operands to front.
5737         (gimple_asm_clobber_op, gimple_asm_set_clobber_op,
5738         gimple_asm_label_op, gimple_asm_set_label_op): Correct asserts.
5739         * tree-ssa-operands.c (build_defs): Remove.
5740         (init_ssa_operands): Don't initialize it.
5741         (fini_ssa_operands): Don't free it.
5742         (cleanup_build_arrays): Don't truncate it.
5743         (finalize_ssa_stmt_operands): Don't assert on it.
5744         (alloc_def, add_def_op, append_def): Remove.
5745         (finalize_ssa_defs): Remove building of def_ops list.
5746         (finalize_ssa_uses): Don't mark for SSA renaming here, ...
5747         (add_stmt_operand): ... but here, don't call append_def.
5748         (get_indirect_ref_operands): Remove recurse_on_base argument.
5749         (get_expr_operands): Adjust call to get_indirect_ref_operands.
5750         (verify_ssa_operands): Don't check def operands.
5751         (free_stmt_operands): Don't free def operands.
5752         * gimple.c (gimple_copy): Don't clear def operands.
5753         * tree-flow-inline.h (op_iter_next_use): Adjust to explicitely
5754         handle def operand.
5755         (op_iter_next_tree, op_iter_next_def): Ditto.
5756         (clear_and_done_ssa_iter): Clear new fields.
5757         (op_iter_init): Adjust to setup new iterator structure.
5758         (op_iter_init_phiuse): Adjust.
5760 2012-10-23  Greta Yorsh  <Greta.Yorsh@arm.com>
5762         * config/arm/arm.c (offset_ok_for_ldrd_strd): Return false for Thumb1.
5764 2012-10-23  Vladimir Makarov  <vmakarov@redhat.com>
5766         * dbxout.c (dbxout_symbol_location): Pass new argument to alter_subreg.
5767         * dwarf2out.c: Include ira.h and lra.h.
5768         (based_loc_descr, compute_frame_pointer_to_fb_displacement): Use
5769         lra_eliminate_regs for LRA instead of eliminate_regs.
5770         * expr.c (emit_move_insn_1): Pass an additional argument to
5771         emit_move_via_integer.  Use emit_move_via_integer for LRA only if
5772         the insn is recognized.
5773         * emit-rtl.c (gen_rtx_REG): Add lra_in_progress.
5774         (validate_subreg): Don't check offset for LRA and floating point modes.
5775         * final.c (final_scan_insn, cleanup_subreg_operands): Pass new
5776         argument to alter_subreg.
5777         (walk_alter_subreg, output_operand): Ditto.
5778         (alter_subreg): Add new argument.
5779         * gcse.c (calculate_bb_reg_pressure): Add parameter to
5780         ira_setup_eliminable_regset call.
5781         * ira.c: Include lra.h.
5782         (ira_init_once, ira_init, ira_finish_once): Call lra_start_once,
5783         lra_init, lra_finish_once in anyway.
5784         (ira_setup_eliminable_regset): Add parameter.  Remove need_fp.
5785         Call lra_init_elimination and mark HARD_FRAME_POINTER_REGNUM as
5786         living forever if frame_pointer_needed.
5787         (setup_reg_class_relations): Set up ira_reg_class_subset.
5788         (ira_reg_equiv_invariant_p, ira_reg_equiv_const): Remove.
5789         (find_reg_equiv_invariant_const): Ditto.
5790         (setup_reg_renumber): Use ira_equiv_no_lvalue_p instead of
5791         ira_reg_equiv_invariant_p.  Skip caps for LRA.
5792         (setup_reg_equiv_init, ira_update_equiv_info_by_shuffle_insn): New
5793         functions.
5794         (ira_reg_equiv_len, ira_reg_equiv): New externals.
5795         (ira_reg_equiv): New.
5796         (ira_expand_reg_equiv, init_reg_equiv, finish_reg_equiv): New
5797         functions.
5798         (no_equiv, update_equiv_regs): Use ira_reg_equiv instead of
5799         reg_equiv_init.
5800         (setup_reg_equiv): New function.
5801         (ira_use_lra_p): New global.
5802         (ira): Set up lra_simple_p and ira_conflicts_p.  Set up and
5803         restore flag_caller_saves and flag_ira_region.  Move
5804         initialization of ira_obstack and ira_bitmap_obstack upper.  Call
5805         init_reg_equiv, setup_reg_equiv, and setup_reg_equiv_init instead
5806         of initialization of ira_reg_equiv_len, ira_reg_equiv_invariant_p,
5807         and ira_reg_equiv_const.  Call ira_setup_eliminable_regset with a
5808         new argument.  Don't flatten IRA IRA for LRA.  Don't reassign
5809         conflict allocnos for LRA. Call finish_reg_equiv.
5810         (do_reload): Prepare code for LRA call.  Call LRA.
5811         * ira.h (ira_use_lra_p): New external.
5812         (struct target_ira): Add members x_ira_class_subset_p
5813         x_ira_reg_class_subset, and x_ira_reg_classes_intersect_p.
5814         (ira_class_subset_p, ira_reg_class_subset): New macros.
5815         (ira_reg_classes_intersect_p): New macro.
5816         (struct ira_reg_equiv): New.
5817         (ira_setup_eliminable_regset): Add an argument.
5818         (ira_expand_reg_equiv, ira_update_equiv_info_by_shuffle_insn): New
5819         prototypes.
5820         * ira-color.c (color_pass, move_spill_restore, coalesce_allocnos):
5821         Use ira_equiv_no_lvalue_p.
5822         (coalesce_spill_slots, ira_sort_regnos_for_alter_reg): Ditto.
5823         * ira-emit.c (ira_create_new_reg): Call ira_expand_reg_equiv.
5824         (generate_edge_moves, change_loop) Use ira_equiv_no_lvalue_p.
5825         (emit_move_list): Simplify code.  Call
5826         ira_update_equiv_info_by_shuffle_insn.  Use ira_reg_equiv instead
5827         of ira_reg_equiv_invariant_p and ira_reg_equiv_const.  Change assert.
5828         * ira-int.h (struct target_ira_int): Remove x_ira_class_subset_p
5829         and x_ira_reg_classes_intersect_p.
5830         (ira_class_subset_p, ira_reg_classes_intersect_p): Remove.
5831         (ira_reg_equiv_len, ira_reg_equiv_invariant_p): Ditto.
5832         (ira_reg_equiv_const): Ditto.
5833         (ira_equiv_no_lvalue_p): New function.
5834         * jump.c (true_regnum): Always use hard_regno for subreg_get_info
5835         when lra is in progress.
5836         * haifa-sched.c (sched_init): Pass new argument to
5837         ira_setup_eliminable_regset.
5838         * loop-invariant.c (calculate_loop_reg_pressure): Pass new
5839         argument to ira_setup_eliminable_regset.
5840         * lra.h: New.
5841         * lra-int.h: Ditto.
5842         * lra.c: Ditto.
5843         * lra-assigns.c: Ditto.
5844         * lra-constraints.c: Ditto.
5845         * lra-coalesce.c: Ditto.
5846         * lra-eliminations.c: Ditto.
5847         * lra-lives.c: Ditto.
5848         * lra-spills.c: Ditto.
5849         * Makefile.in (LRA_INT_H): New.
5850         (OBJS): Add lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o,
5851         lra-eliminations.o, lra-lives.o, and lra-spills.o.
5852         (dwarf2out.o): Add dependence on ira.h and lra.h.
5853         (ira.o): Add dependence on lra.h.
5854         (lra.o, lra-assigns.o, lra-coalesce.o, lra-constraints.o): New entries.
5855         (lra-eliminations.o, lra-lives.o, lra-spills.o): Ditto.
5856         * output.h (alter_subreg): Add new argument.
5857         * rtlanal.c (simplify_subreg_regno): Permit mode changes for LRA.
5858         Permit ARG_POINTER_REGNUM and STACK_POINTER_REGNUM for LRA.
5859         * recog.c (general_operand, register_operand): Accept paradoxical
5860         FLOAT_MODE subregs for LRA.
5861         (scratch_operand): Accept pseudos for LRA.
5862         * rtl.h (lra_in_progress): New external.
5863         (debug_bb_n_slim, debug_bb_slim, print_value_slim): New prototypes.
5864         (debug_rtl_slim, debug_insn_slim): Ditto.
5865         * sdbout.c (sdbout_symbol): Pass new argument to alter_subreg.
5866         * sched-vis.c (print_value_slim): New.
5867         * target.def (lra_p): New hook.
5868         (register_priority): Ditto.
5869         (different_addr_displacement_p): Ditto.
5870         (spill_class): Ditto.
5871         * target-globals.h (this_target_lra_int): New external.
5872         (target_globals): New member lra_int.
5873         (restore_target_globals): Restore this_target_lra_int.
5874         * target-globals.c: Include lra-int.h.
5875         (default_target_globals): Add &default_target_lra_int.
5876         * targhooks.c (default_lra_p): New function.
5877         (default_register_priority): Ditto.
5878         (default_different_addr_displacement_p): Ditto.
5879         * targhooks.h (default_lra_p): Declare.
5880         (default_register_priority): Ditto.
5881         (default_different_addr_displacement_p): Ditto.
5882         * timevar.def (TV_LRA, TV_LRA_ELIMINATE, TV_LRA_INHERITANCE): New.
5883         (TV_LRA_CREATE_LIVE_RANGES, TV_LRA_ASSIGN, TV_LRA_COALESCE): New.
5884         * config/arm/arm.c (load_multiple_sequence): Pass new argument to
5885         alter_subreg.
5886         (store_multiple_sequence): Ditto.
5887         * config/i386/i386.h (enum ix86_tune_indices): Add
5888         X86_TUNE_GENERAL_REGS_SSE_SPILL.
5889         (TARGET_GENERAL_REGS_SSE_SPILL): New macro.
5890         * config/i386/i386.c (initial_ix86_tune_features): Set up
5891         X86_TUNE_GENERAL_REGS_SSE_SPILL for m_COREI7 and m_CORE2I7.
5892         (ix86_lra_p, ix86_register_priority): New functions.
5893         (ix86_secondary_reload): Add NON_Q_REGS, SIREG, DIREG.
5894         (inline_secondary_memory_needed): Change assert.
5895         (ix86_spill_class): New function.
5896         (TARGET_LRA_P, TARGET_REGISTER_BANK, TARGET_SPILL_CLASS): New macros.
5897         * config/m68k/m68k.c (emit_move_sequence): Pass new argument to
5898         alter_subreg.
5899         * config/m32r/m32r.c (gen_split_move_double): Ditto.
5900         * config/pa/pa.c (pa_emit_move_sequence): Ditto.
5901         * config/sh/sh.md: Ditto.
5902         * config/v850/v850.c (v850_reorg): Ditto.
5903         * config/xtensa/xtensa.c (fixup_subreg_mem): Ditto.
5904         * doc/md.texi: Add new interpretation of hint * for LRA.
5905         * doc/passes.texi: Describe LRA pass.
5906         * doc/tm.texi.in: Add TARGET_LRA_P, TARGET_REGISTER_PRIORITY,
5907         TARGET_DIFFERENT_ADDR_DISPLACEMENT_P, and TARGET_SPILL_CLASS.
5908         * doc/tm.texi: Update.
5910 2012-10-23  Jan Hubicka  <jh@suse.cz>
5912         * loop-unroll.c (decide_peel_simple): Simple peeling makes sense even
5913         with simple loops; bound number of branches only when FDO is not
5914         available.
5915         (decide_unroll_stupid): Mention that num_loop_branches heuristics
5916         is off.
5918 2012-10-23  Nick Clifton  <nickc@redhat.com>
5920         PR target/54660
5921         * config/iq2000/iq2000.c (iq2000_function_arg_advance): Suppress
5922         compile time warning about pointer printing.
5924 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
5926         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
5927         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu): Use
5928         glibc-c.o in c_target_objs and cxx_target_objs.  Use t-glibc in
5929         tmake_file.  Set target_has_targetcm.
5930         (tilegx-*-linux*, tilepro-*-linux*): Append to c_target_objs and
5931         cxx_target_objs rather than overriding previous value.
5932         * config/glibc-c.c, config/t-glibc: New.
5933         * doc/tm.texi.in (TARGET_C_PREINCLUDE): New @hook.
5934         * doc/tm.texi: Regenerate.
5935         * hooks.c (hook_constcharptr_void_null): New.
5936         * hooks.h (hook_constcharptr_void_null): Declare.
5938 2012-10-23  Eric Botcazou  <ebotcazou@adacore.com>
5940         * config/mips/linux-common.h (STACK_CHECK_STATIC_BUILTIN): Define.
5941         (STACK_CHECK_PROTECT): Likewise.
5942         * config/mips/mips.h (MIPS_PROLOGUE_TEMP2_REGNUM): Likewise.
5943         (MIPS_PROLOGUE_TEMP2): Likewise.
5944         * config/mips/mips-protos.h (mips_output_probe_stack_range): Declare.
5945         * config/mips/mips.c: Include common/common-target.h.
5946         (mips_emit_probe_stack_range): New function.
5947         (mips_output_probe_stack_range): Likewise.
5948         (mips_expand_prologue): Invoke mips_emit_probe_stack_range if static
5949         builtin stack checking is enabled.
5950         * config/mips/mips.md (UNSPEC_PROBE_STACK_RANGE): New constant.
5951         (probe_stack_range_<P:mode>): New insn.
5953 2012-10-23  Marc Glisse  <marc.glisse@inria.fr>
5955         * tree-ssa-forwprop.c (forward_propagate_into_cond): Handle vectors.
5956         * fold-const.c (fold_relational_const): Handle VECTOR_CST.
5957         * doc/generic.texi (VEC_COND_EXPR): Document current policy.
5959 2012-10-23  Jan Hubicka  <jh@suse.cz>
5961         PR middle-end/54937
5962         * tree-ssa-loop-niter.c (record_estimate): Do not try to lower
5963         the bound of non-is_exit statements.
5964         (maybe_lower_iteration_bound): Do it here.
5965         (estimate_numbers_of_iterations_loop): Call it.
5967 2012-10-23  Jan Hubicka  <jh@suse.cz>
5969         PR middle-end/54967
5970         * cfgloopmanip.c (fix_bb_placements): Add loop_closed_ssa_invalidated;
5971         track basic blocks that moved out of their loops.
5972         (unloop): Likewise.
5973         (remove_path): Update.
5974         (fix_loop_placements): Update.
5975         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Add
5976         loop_closed_ssa_invalidated parameter; pass it around.
5977         (canonicalize_loop_induction_variables): Update loop closed
5978         SSA form if needed.
5979         (tree_unroll_loops_completely): Likewise; do irred update out of
5980         the outer loop; verify that SSA form is closed.
5981         * cfgloop.h (unrloop): Update.
5983 2012-10-23  Terry Guo  <terry.guo@arm.com>
5985         PR target/55019
5986         * config/arm/arm.c (thumb1_expand_prologue): Don't push high regs with
5987         live argument regs.
5989 2012-10-23  Hans-Peter Nilsson  <hp@bitrange.com>
5991         PR middle-end/55030
5992         Revert:
5993         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
5994         expand_builtin_setjmp_receiver.
5995         (expand_label): Adjust, call expand_builtin_setjmp_receiver
5996         with NULL for the label parameter.
5997         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
5998         the frame-pointer.  Adjust comments.
5999         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
6000         only if LABEL is non-NULL.
6002 2012-10-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6004         PR tree-optimization/55008
6005         * gimple-ssa-strength-reduction.c (find_basis_for_candidate):
6006         Don't allow a candidate to be a basis for itself under another
6007         interpretation.
6009 2012-10-22  Sharad Singhai  <singhai@google.com>
6011         * dumpfile.c (dump_phase_enabled_p): Renamed dump_enabled_p. Update
6012         all callers.
6013         (dump_enabled_p): A new function to check if any of the dump files
6014         is available.
6015         (dump_kind_p): Remove check for current_function_decl. Add check for
6016         dumpfile and alt_dump_file.
6017         * dumpfile.h: Add declaration of dump_enabled_p.
6019 2012-10-22  Richard Biener  <rguenther@suse.de>
6021         PR lto/55021
6022         * tree-streamer-in.c (unpack_ts_int_cst_value_fields): Remove
6023         bogus truncations.
6025 2012-10-22  Uros Bizjak  <ubizjak@gmail.com>
6027         * config/i386/i386.c (memory_address_length): Assert that non-null
6028         base or index RTXes are registers.  Do not check for REG RTXes.
6029         Determine addr32 prefix using SImode_address_operand or
6030         from original base and index RTXes.  Simplify code.
6032 2012-10-22  Richard Biener  <rguenther@suse.de>
6034         PR tree-optimization/55011
6035         * tree-vrp.c (update_value_range): For invalid lattice transitions
6036         drop to VARYING.
6038 2012-10-22  Julian Brown  <julian@codesourcery.com>
6040         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Avoid subreg'ing
6041         VFP D registers in big-endian mode.
6043 2012-10-22  Georg-Johann Lay  <avr@gjlay.de>
6045         * doc/invoke.texi (AVR Options): Document __AVR_ARCH__.
6046         Note __AVR_<device>__ is not defined for cores.
6047         Don't point to --help=target.
6049 2012-10-22  Sameera Deshpande  <sameera.deshpande@arm.com>
6050             Greta Yorsh  <Greta.Yorsh@arm.com>
6052         * config/arm/arm.c (thumb2_emit_ldrd_pop): New function.
6053         (arm_expand_epilogue): Use the new function.
6055 2012-10-22  Sameera Deshpande  <sameera.deshpande@arm.com>
6056             Greta Yorsh  <Greta.Yorsh@arm.com>
6058         * config/arm/arm.c (thumb2_emit_strd_push): New function.
6059         (arm_expand_prologue): Use the new function.
6061 2012-10-22  Sameera Deshpande  <sameera.deshpande@arm.com>
6062             Greta Yorsh  <Greta.Yorsh@arm.com>
6064         * config/arm/arm-protos.h (offset_ok_for_ldrd_strd): New declaration.
6065         (operands_ok_ldrd_strd): Likewise.
6066         * config/arm/arm.c (offset_ok_for_ldrd_strd): New function.
6067         (operands_ok_ldrd_strd): Likewise.
6068         * config/arm/arm.md (thumb2_ldrd, thumb2_ldrd_base): New patterns.
6069         (thumb2_ldrd_base_neg): Likewise.
6070         (thumb2_strd, thumb2_strd_base, thumb_strd_base_neg): Likewise.
6071         * predicates.md (ldrd_strd_offset_operand): New predicate.
6072         * config/arm/constraints.md (Do): New constraint.
6074 2012-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
6076         * config/mmix/mmix.md ("nonlocal_goto_receiver"): Refer to the
6077         frame-pointer as an operand.
6078         ("*nonlocal_goto_receiver_expanded"): Ditto.  Use
6079         mmix_output_register_setting instead of naked output_asm_insn for
6080         the offset from the frame-pointer to the saved rO.
6081         * config/mmix/mmix.c (mmix_output_register_setting): Emit NEGU for
6082         values -255..0.
6083         * config/mmix/predicates.md ("frame_pointer_operand"): New.
6084         * config/mmix/constraints.md ("Yf"): New.
6086         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
6087         expand_builtin_setjmp_receiver.
6088         (expand_label): Adjust, call expand_builtin_setjmp_receiver
6089         with NULL for the label parameter.
6090         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
6091         the frame-pointer.  Adjust comments.
6092         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
6093         only if LABEL is non-NULL.
6095 2012-10-21  Uros Bizjak  <ubizjak@gmail.com>
6097         * config/i386/i386-protos.h (memory_address_length): Add new bool
6098         argument.  Update all uses.
6099         * config/i386/i386.c (memory_address_length): If not LEA insn, then
6100         add length of addr32 prefix based on mode of base or index register.
6101         (ix86_attr_length_address_default) <TYPE_LEA>: Do not handle SImode
6102         addresses here.  Update call to memory_address_length.
6103         (ix86_print_address_operand): Use SImode_address_operand predicate.
6104         * config/i386/predicates.md (SImode_address_operand): New.
6105         * config/i386/i386.md (lea<mode>): Use SImode_address_operand
6106         to calculate "mode" attribute.  Use SImode_address_operand predicate
6107         instead of open-coding accepted RTX codes.
6109 2012-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
6111         * rtl.def (ADDR_DIFF_VEC): Fix comment typo.
6113 2012-10-21  Eric Botcazou  <ebotcazou@adacore.com>
6115         PR rtl-optimization/44194
6116         * calls.c (expand_call): Allow sibling calls in the PARALLEL case.
6118 2012-10-21  Tobias Burnus  <burnus@net-b.de>
6120         PR fortran/54725
6121         * Makefile.in (TARGET_SYSTEM_ROOT_DEFINE): New.
6123 2012-10-21  Chung-Lin Tang  <cltang@codesourcery.com>
6125         * config/xtensa/xtensa.c (xtensa_expand_builtin): Remove unused 'arg'
6126         variable.
6128 2012-10-20  Eric Botcazou  <ebotcazou@adacore.com>
6130         PR rtl-optimization/54315
6131         * calls.c (expand_call): Don't deal specifically with BLKmode values
6132         returned in naked registers.
6133         * expr.h (copy_blkmode_from_reg): Adjust prototype.
6134         * expr.c (copy_blkmode_from_reg): Rename first parameter into
6135         TARGET and make it required.  Assert that SRCREG hasn't BLKmode.
6136         Add a couple of short-circuits for common cases and be prepared
6137         for sub-word registers.
6138         (expand_assignment): Call copy_blkmode_from_reg for BLKmode values
6139         returned in naked registers.
6140         (store_expr): Likewise.
6141         (store_field): Likewise.
6143 2012-10-20  Jan Hubicka  <jh@suse.cz>
6145         * loop-unroll.c (decide_unroll_constant_iterations): Don't
6146         perform unrolling for loops with low iterations bounds or estimates.
6148 2012-10-20  Jan Hubicka  <jh@suse.cz>
6150         * loop-iv.c (iv_number_of_iterations): Record the upper bound
6151         only if there are no further conditions on it.
6153 2012-10-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6155         PR c/53063
6156         PR c/40989
6157         * opts.c (finish_options): Remove explicit handling from here.
6159 2012-10-20  Joern Rennecke  <joern.rennecke@embecosm.com>
6160             Richard Sandiford  <rdsandiford@googlemail.com>
6162         * emit-rtl.c (copy_delay_slot_insn): New function.
6163         * emit-rtl.h (copy_delay_slot_insn): Declare.
6164         * reorg.c: Include "emit-rtl.h".
6165         (steal_delay_list_from_target): Use copy_delay_slot_insn.
6166         (fill_slots_from_thread, fill_simple_delay_slots): Likewise.
6168         * final.c (shorten_branches): When optimizing, start with small
6169         length and increase from there, and don't decrease lengths.
6171 2012-10-19  Jan Hubicka  <jh@suse.cz>
6173         * builtins.def (BUILT_IN_UNREACHABLE): Make
6174         ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST.
6175         * builtin-attrs.def (ATTR_CONST_NORETURN_NOTHROW_LEAF_LIST): Define.
6177 2012-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
6178             Dominique Dhumieres  <dominiq@lps.ens.fr>
6180         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Don't assume
6181         OPTION_MASK_STRICT_ALIGN is defined.
6182         (MASK_STRICT_ALIGN): If OPTION_MASK_STRICT_ALIGN is not defined,
6183         define this to 0 for the 3 ports that use it.
6185         * config/rs6000/rs6000.c (OPTION_MASK_STRICT_ALIGN): Don't do
6186         check for ports not having -mstrict-align here, move test to
6187         rs6000-cpus.def.
6188         (MASK_STRICT_ALIGN): Likewise.
6189         (rs6000_debug_reg_global): Print out correct target flag words if
6190         -mdebug=reg.
6192 2012-10-19  Marek Polacek  <polacek@redhat.com>
6194         PR middle-end/54945
6195         * fold-const.c (fold_sign_changed_comparison):  Punt if folding
6196         pointer/non-pointer comparison.
6198 2012-10-19  Greta Yorsh  <Greta.Yorsh@arm.com>
6200         * doc/sourcebuild.texi (Effective-Target Keywords): Document
6201         new effective target keyword arm_prefer_ldrd_strd.
6203 2012-10-19  Richard Guenther  <rguenther@suse.de>
6205         PR tree-optimization/54981
6206         * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p):
6207         Do not consider debug stmts as uses.
6209 2012-10-19  Richard Biener  <rguenther@suse.de>
6211         PR tree-optimization/54976
6212         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
6213         Robustify against odd inner_mode inputs.
6215 2012-10-19  Zhenqiang Chen <zhenqiang.chen@linaro.org>
6217         PR target/54892
6218         * config/arm/arm.c (arm_expand_compare_and_swap): Use SImode to make
6219         sure the mode is correct when falling through from above cases.
6221 2012-10-19  Bin Cheng  <bin.cheng@arm.com>
6223         * common.opt (flag_ira_hoist_pressure): New.
6224         * doc/invoke.texi (-fira-hoist-pressure): Describe.
6225         * ira-costs.c (ira_set_pseudo_classes): New parameter.
6226         * ira.h: Update copyright dates.
6227         (ira_set_pseudo_classes): Update prototype.
6228         * haifa-sched.c (sched_init): Update call.
6229         * ira.c (ira): Update call.
6230         * regmove.c: Update copyright dates.
6231         (regmove_optimize): Update call.
6232         * loop-invariant.c: Update copyright dates.
6233         (move_loop_invariants): Update call.
6234         * gcse.c: (struct bb_data): New structure.
6235         (BB_DATA): New macro.
6236         (curr_bb, curr_reg_pressure): New static variables.
6237         (should_hoist_expr_to_dom): Rename from hoist_expr_reaches_here_p.
6238         Change parameter expr_index to expr.
6239         New parameters pressure_class, nregs and hoisted_bbs.
6240         Use reg pressure to determine the distance expr can be hoisted.
6241         (hoist_code): Use reg pressure to direct the hoist process.
6242         (get_regno_pressure_class, get_pressure_class_and_nregs)
6243         (change_pressure, calculate_bb_reg_pressure): New.
6244         (one_code_hoisting_pass): Calculate register pressure. Allocate
6245         and free data.
6247 2012-10-19  Bin Cheng  <bin.cheng@arm.com>
6249         * gcse.c: Update copyright dates.
6250         (hoist_expr_reaches_here_p): Change parameter type from char *
6251         to sbitmap.
6253 2012-10-19  Sebastian Huber <sebastian.huber@embedded-brains.de>
6255         * config.gcc
6256         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*): Rename
6257         "arm*-*-rtemseabi*" to "arm*-*-rtems*".
6259 2012-10-19  Alan Modra  <amodra@gmail.com>
6261         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set if using gold.
6262         (HAVE_LD_LARGE_TOC): Likewise.
6263         * configure: Regenerate.
6265 2012-10-19  Alan Modra  <amodra@gmail.com>
6267         * config/rs6000/predicates.md (splat_input_operand): Don't call
6268         input_operand for MEMs.  Instead check for volatile and call
6269         memory_address_addr_space_p with modified mode.
6271 2012-10-18  Uros Bizjak  <ubizjak@gmail.com>
6273         * config/i386/i386.md (rdpmc): Remove expander.
6274         (rdtsc): Ditto.
6275         (rdtscp): Ditto.
6276         (rdpmc): Rename from *rdpmc.
6277         (rdpmc_rex64): Rename from *rdpmc_rex64.
6278         (rdtsc): Rename from *rdtsc.
6279         (rdtsc_rex64): Rename from *rdtsc_rex64.
6280         (rdtscp): Rename from *rdtscp.
6281         (rdtscp_rex64): Rename from *rdtscp_rex64.
6283         * config/i386/i386.c (struct builtin_description bdesc_special_args)
6284         <IX86_BUILTIN_RDTSC>: Use CODE_FOR_NOTHING.
6285         <IX86_BUILTIN_RDTSCP>: Ditto.
6286         (struct builtin_description bdesc__args) <IX86_BUILTIN_RDPMC>: Ditto.
6287         (ix86_expand_builtin) <IX86_BUILTIN_{RDPMC,RDTSC,RDTSCP}>: Handle here.
6289 2012-10-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
6291         * config/sh/sh.c: Fix comment to silence warning.
6293 2012-10-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6294             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6295             Sameera Deshpande  <sameera.deshpande@arm.com>
6297         * config/arm/cortex-a15-neon.md: New file.
6298         * config/arm/cortex-a15.md (cortex_a15_call): Adjust reservation.
6299         (cortex_a15_load1): Likewise.
6300         (cortex_a15_load3): Likewise.
6301         (cortex_a15_store1): Likewise.
6302         (cortex_a15_store3): Likewise.
6303         (cortex-a15-neon.md): Include.
6305 2012-10-18  Segher Boessenkool  <segher@kernel.crashing.org>
6307         * config/rs6000/altivec.md (altivec_lvsl, altivec_lvsr): Add mode.
6308         (altivec_vsumsws_nomode): Delete.
6309         (reduc_splus_<mode>, reduc_uplus_<mode>): Call gen_altivec_vsumsws
6310         instead of gen_altivec_vsumsws_nomode.
6311         (altivec_lvlx, altivec_lvlxl, altivec_lvrx, altivec_lvrxl): Add mode.
6312         * config/rs6000/rs6000.md (probe_stack): Rename to...
6313         (probe_stack_<mode>): ... this.  Add mode.  Change pattern to
6314         use std instead of stw when appropriate.
6315         (probe_stack): New expander.
6316         (move_from_CR_ov_bit): Add mode.
6317         (splitter for compare_plus_ne0_<mode>, splitter for
6318         compare_plus_ne0_<mode>_1): Remove constraints.
6319         * config/rs6000/sync.md (loadsync): Rename to...
6320         (loadsync_<mode>): ... this.  Add mode.
6321         (atomic_load<mode>): Adjust.
6323 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
6325         * loop-invariant.c: Include target.h.
6326         (check_dependency): Return false for an uninitialized argument register
6327         that is likely to be spilled.
6328         * Makefile.in (loop-invariant.o): Add $(TARGET_H).
6330 2012-10-18  Eric Botcazou  <ebotcazou@adacore.com>
6332         * except.c (sjlj_emit_function_enter): Remove unused variable.
6334 2012-10-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6335             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6337         * config/arm/arm.c (neon_builtin_data): Add vfma and vfms builtins.
6338         * config/arm/neon-docgen.ml (intrinsic_groups): Add
6339         fused-multiply-* groups.
6340         * config/neon-gen.ml (print_feature_test_start): New function.
6341         (print_feature_test_end): Likewise.
6342         (print_variant): Print feature test macros.
6343         * config/arm/neon-testgen.ml (emit_prologue): Allow different
6344         tests to require different effective targets.
6345         (effective_target): New function.
6346         (test_intrinsic): Specify correct effective targets.
6347         * config/arm/neon.md (fma<VCVTF:mode>4_intrinsic): New pattern.
6348         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
6349         (neon_vfma<VCVFT:mode>): New expand.
6350         (neon_vfms<VCVFT:mode>): Likewise.
6351         * config/neon.ml (opcode): Add Vfma and Vfms.
6352         (features): Add Requires_feature.
6353         (ops): Add VFMA and VFMS intrinsics.
6354         * config/arm/arm_neon.h: Regenerate.
6355         * doc/arm-neon-intrinsics.texi: Likewise.
6357 2012-10-18  Richard Guenther  <rguenther@suse.de>
6359         * lto-streamer.h (enum LTO_tags): Add LTO_integer_cst.
6360         * lto-streamer-in.c (lto_input_tree): Use it.
6361         * lto-streamer-out.c (lto_output_tree): Likewise, for
6362         !TREE_OVERFLOW integer constants only.
6363         * tree-streamer-in.c (unpack_ts_int_cst_value_fields): New function.
6364         (unpack_value_fields): Call it.
6365         (streamer_read_integer_cst): Simplify.
6366         * tree-streamer-out.c (pack_ts_int_cst_value_fields): New function.
6367         (streamer_pack_tree_bitfields): Call it.
6368         (streamer_write_integer_cst): Adjust.
6370 2012-10-18  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
6371             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6373         * config.gcc: Add support for ARMv8 for arm*-*-* targets.
6374         * config/arm/arm-arches.def: Add armv8-a
6375         * config/arm/arm-fpus.def: Add fp-armv8, neon-fp-armv8,
6376         crypto-neon-fp-armv8.  Add crypto field.
6377         * config/arm/arm-tables.opt: Regenerate.
6378         * config/arm/arm.c (FL_FOR_ARCH8A): Likewise.
6379         (arm_arch8): New global variable.
6380         (ARM_FPU): Add crypto parameter.
6381         (arm_option_override): Set arm_arch8, update comments.
6382         * config/arm/arm.h (TARGET_CRYPTO): New macro.
6383         (arm_fpu_desc): Add crypto field.
6384         (base_architecture): Add ARMv8 entry.
6385         (arm_arch8): New variable declaration.
6386         * config/arm/bpabi.h: ARMv8 supports BE8.
6387         * doc/invoke.texi: Document ARMv8 options.
6389 2012-10-17  Aldy Hernandez  <aldyh@redhat.com>
6391         PR middle-end/54893
6392         * trans-mem.c (diagnose_tm_1_op): Allow volatiles inside relaxed
6393         transactions.
6395 2012-10-17  Aldy Hernandez  <aldyh@redhat.com>
6397         PR rtl-optimization/54900
6398         * ifcvt.c (noce_can_store_speculate_p): Call
6399         memory_must_be_modified_in_insn_p.
6400         * alias.c (memory_must_be_modified_in_insn_p): New.
6401         (set_dest_equal_p): New.
6402         * rtl.h (memory_must_be_modified_in_p): Protoize.
6404 2012-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
6406         * config/rs6000/rs6000.opt (rs6000_isa_flags): New flag word to
6407         replace target_flags that gives us 63 possible switches.
6408         (x_rs6000_isa_flags): Save area for rs6000_isa_flags.
6409         (x_rs6000_isa_flags_explicit): Save area for rs6000_isa_flags_explicit.
6410         (rs6000_target_flags_explicit): Delete in favor of
6411         x_rs6000_isa_flags_explicit.
6412         (-mpowerpc64): Change all switches that used to be in target_flags
6413         to now be in rs6000_isa_flags.  In using rs6000_isa_flags, the
6414         options machinary will generate names of the form OPITON_<xxx>
6415         instead of TARGET_<xxx> and OPTION_MASK_<xxx> instead of MASK_<xxx>.
6416         (-mpowerpc-gpopt): Likewise.
6417         (-mpowerpc-gfxopt): Likewise.
6418         (-mmfcrf): Likewise.
6419         (-mpopcntb): Likewise.
6420         (-mfprnd): Likewise.
6421         (-mcmpb): Likewise.
6422         (-mmfpgpr): Likewise.
6423         (-maltivec): Likewise.
6424         (-mhard-dfp): Likewise.
6425         (-mmulhw): Likewise.
6426         (-mdlmzb): Likewise.
6427         (-mmultiple): Likewise.
6428         (-mstring): Likewise.
6429         (-msoft-float): Likewise.
6430         (-mhard-float): Likewise.
6431         (-mpopcntd): Likewise.
6432         (-mvsx): Likewise.
6433         (-mno-update): Likewise.
6434         (-mupdate): Likewise.
6435         (-mrecip-precision): Likewise.
6436         (-mminimal-toc): Likewise.
6437         (-misel): Likewise.
6438         * config/rs6000/aix64.opt (-maix64): Likewise.
6439         (-maix32): Likewise.
6440         * config/rs6000/sysv4.opt (-mstrict-align): Likewise.
6441         (-mrelocatable): Likewise.
6442         (-mlittle-endian): Likewise.
6443         (-mlittle): Likewise.
6444         (-mbig-endian): LIkewise.
6445         (-mbig): Likewise.
6446         (-meabi): Likewise.
6447         (-m64): Likewise.
6448         (-m32): Likewise.
6449         * config/rs6000/darwin.opt (-m64): Likewise.
6450         (-m32): Likewise.
6452         * config/rs6000/rs6000-cpus.def (ISA_2_1_MASKS): Move the various
6453         masks used in rs6000.c here, since they are more logically in this
6454         file.  Convert from being enums to just #defines, since the types
6455         of these masks is now HOST_WIDE_INT instead of int.  For
6456         POWERPC_MASKS, add MASK_SOFT_FLOAT, since the only use case or'ed
6457         in the mask.  Change the use in rs6000.c not to do the OR of
6458         MASK_SOFT_FLOAT.
6459         (ISA_2_1_MASKS): Likewise.
6460         (ISA_2_2_MASKS): Likewise.
6461         (ISA_2_4_MASKS): Likewise.
6462         (ISA_2_5_MASKS_EMBEDDED): Likewise.
6463         (ISA_2_5_MASKS_SERVER): Likewise.
6464         (POWERPC_7400_MASK): Likewise.
6465         (POWERPC_MASKS): Likewise.
6466         * config/rs6000/rs6000.c (ISA_2_1_MASKS): Likewise.
6467         (ISA_2_1_MASKS): Likewise.
6468         (ISA_2_2_MASKS): Likewise.
6469         (ISA_2_4_MASKS): Likewise.
6470         (ISA_2_5_MASKS_EMBEDDED): Likewise.
6471         (ISA_2_5_MASKS_SERVER): Likewise.
6472         (POWERPC_7400_MASK): Likewise.
6473         (POWERPC_MASKS): Likewise.
6474         (rs6000_option_override_internal): Likewise.
6476         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Change
6477         all uses of target_flags to rs6000_isa_flags.  Change all uses of
6478         target_flags_explicit to rs6000_isa_flags_explicit.  Change the
6479         use of MASK_<xxx> to OPTION_MASK_<xxx> that options.h defines when
6480         we use a secondary flags word.  Save/restore/print the new flags
6481         word when switching contexts with different target attributes.
6482         (rs6000_option_override_internal): Likewise.
6483         (rs6000_darwin_file_start): Likewise.
6484         (rs6000_opt_masks): Likewise.
6485         (rs6000_inner_target_options): Likewise.
6486         (rs6000_pragma_target_parse): Likewise.
6487         (rs6000_set_current_function): Likewise.
6488         (rs6000_function_specific_save): Likewise.
6489         (rs6000_function_specific_restore): Likewise.
6490         (rs6000_function_specific_print): Likewise.
6491         (rs6000_can_inline_p): Likewise.
6492         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Likewise.
6493         (rs6000_cpu_cpp_builtins): Likewise.
6494         * common/config/rs6000/rs6000-driver.c (rs6000_handle_option):
6495         Likewise.
6497         * config/rs6000/rs6000.h (MASK_ALTIVEC): In moving to using
6498         Var(...) for all of the isa switches, the options machinery now
6499         uses OPTION_MASK_<xxx> instead of MASK_<xxx> for the mask name.
6500         Use #define to map the old name into the new name.  For switches
6501         that are defined in aix64.opt, sysv4.opt, and darwin.opt, only do
6502         the definition if those switches were defined.
6503         (MASK_ALTIVEC): Likewise.
6504         (MASK_CMPB): Likewise.
6505         (MASK_DFP): Likewise.
6506         (MASK_DLMZB): Likewise.
6507         (MASK_EABI): Likewise.
6508         (MASK_FPRND): Likewise.
6509         (MASK_HARD_FLOAT): Likewise.
6510         (MASK_ISEL): Likewise.
6511         (MASK_MFCRF): Likewise.
6512         (MASK_MFPGPR): Likewise.
6513         (MASK_MULHW): Likewise.
6514         (MASK_MULTIPLE): Likewise.
6515         (MASK_NO_UPDATE): Likewise.
6516         (MASK_POPCNTB): Likewise.
6517         (MASK_POPCNTD): Likewise.
6518         (MASK_PPC_GFXOPT): Likewise.
6519         (MASK_PPC_GPOPT): Likewise.
6520         (MASK_RECIP_PRECISION): Likewise.
6521         (MASK_SOFT_FLOAT): Likewise.
6522         (MASK_STRICT_ALIGN): Likewise.
6523         (MASK_STRING): Likewise.
6524         (MASK_UPDATE): Likewise.
6525         (MASK_VSX): Likewise.
6526         (MASK_POWERPC64): Likewise.
6527         (MASK_64BIT): Likewise.
6528         (MASK_RELOCATABLE): Likewise.
6529         (MASK_LITTLE_ENDIAN): Likewise.
6530         (MASK_MINIMAL_TOC): Likewise.
6531         (MASK_REGNAMES): Likewise.
6532         (MASK_PROTOTYPE): Likewise.
6533         (rs6000_isa_flags_explicit): Define in terms of the
6534         global_options_set structure.
6536         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS):
6537         Change use of target_flags to rs6000_isa_flags, target_flags_explicit
6538         to rs6000_isa_flags_explicit, and MASK_<xxx> to OPTION_MASK_<xxx>.
6539         * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
6540         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
6541         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
6542         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
6543         * config/rs6000/freebsd64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
6544         (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
6545         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
6546         * config/rs6000/linux64.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
6547         (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
6548         (OPTION_LITTLE_ENDIAN): Likewise.
6549         (OPTION_RELOCATABLE): Likewise.
6550         (OPTION_EABI): Likewise.
6551         (OPTION_PROTOTYPE): Likewise.
6552         * config/rs6000/linux.h (RELOCATABLE_NEEDS_FIXUP): Likewise.
6553         * config/rs6000/option-defaults.h (OPTION_MASK_64BIT): Likewise.
6554         (OPT_ARCH32): Likewise.
6555         (OPT_ARCH64): Likewise.
6556         * config/rs6000/sysv4.h (TARGET_TOC): Likewise.
6557         (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
6558         (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
6559         (TARGET_OS_SYSV_CPP_BUILTINS): Likewise.
6561         * config/rs6000/t-rs6000 (rs6000.o): Add rs6000-cpus.def as a
6562         dependency.
6564 2012-10-17  Jan Hubicka  <jh@suse.cz>
6566         * cfgloopmanip.c (copy_loop_info): New function.
6567         (duplicate_loop): Use it.
6568         (loop_version): Use it.
6569         * loop-unswitch.c (unswitch_loop): Use it.
6570         * cfgloop.h (copy_loop_info): Declare.
6572 2012-10-17  Jan Hubicka  <jh@suse.cz>
6574         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Add edge_to_cancel
6575         parameter and use it to estimate code optimized out in the final
6576         iteration.
6577         (loop_edge_to_cancel): New function.
6578         (try_unroll_loop_completely): New IRRED_IVALIDATED parameter;
6579         handle unrolling loops with bounds given via max_loop_iteratins;
6580         handle unrolling non-inner loops when code size shrinks;
6581         tidy dump output; when the last iteration loop still stays
6582         as loop in the CFG forcongly redirect the latch to
6583         __builtin_unreachable.
6584         (canonicalize_loop_induction_variables): Add irred_invlaidated
6585         parameter; record niter bound derrived; dump
6586         max_loop_iterations bounds; call try_unroll_loop_completely
6587         even if no niter bound is given.
6588         (canonicalize_induction_variables): Handle irred_invalidated.
6589         (tree_unroll_loops_completely): Handle non-innermost loops;
6590         handle irred_invalidated.
6591         * cfgloop.h (unlop): Declare.
6592         * cfgloopmanip.c (unloop): Export.
6593         * tree.c (build_common_builtin_nodes): Build BULTIN_UNREACHABLE.
6595 2012-10-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
6597         * opth-gen.awk (TARGET_* generation): Always generate TARGET_<xxx>
6598         for Mask options, whether they use Var(...) or not.
6600         * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): Use
6601         TARGET_<xxx> instead of OPTION_<xxx>.
6602         * config/i386/i386.h (TARGET_64BIT): Likewise.
6603         (TARGET_MMX): Likewise.
6604         (TARGET_3DNOW): Likewise.
6605         (TARGET_3DNOW_A): Likewise.
6606         (TARGET_SSE): Likewise.
6607         (TARGET_SSE2): Likewise.
6608         (TARGET_SSE3): Likewise.
6609         (TARGET_SSSE3): Likewise.
6610         (TARGET_SSE4_1): Likewise.
6611         (TARGET_SSE4_2): Likewise.
6612         (TARGET_AVX): Likewise.
6613         (TARGET_AVX2): Likewise.
6614         (TARGET_FMA): Likewise.
6615         (TARGET_SSE4A): Likewise.
6616         (TARGET_FMA4): Likewise.
6617         (TARGET_XOP): Likewise.
6618         (TARGET_LWP): Likewise.
6619         (TARGET_ROUND): Likewise.
6620         (TARGET_ABM): Likewise.
6621         (TARGET_BMI): Likewise.
6622         (TARGET_BMI2): Likewise.
6623         (TARGET_LZCNT): Likewise.
6624         (TARGET_TBM): Likewise.
6625         (TARGET_POPCNT): Likewise.
6626         (TARGET_SAHF): Likewise.
6627         (TARGET_MOVBE): Likewise.
6628         (TARGET_CRC32): Likewise.
6629         (TARGET_AES): Likewise.
6630         (TARGET_PCLMUL): Likewise.
6631         (TARGET_CMPXCHG16B): Likewise.
6632         (TARGET_FSGSBASE): Likewise.
6633         (TARGET_RDRND): Likewise.
6634         (TARGET_F16C): Likewise.
6635         (TARGET_RTM): Likewise.
6636         (TARGET_HLE): Likewise.
6637         (TARGET_RDSEED): Likewise.
6638         (TARGET_PRFCHW): Likewise.
6639         (TARGET_ADX): Likewise.
6640         (TARGET_64BIT): Likewise.
6641         (TARGET_MMX): Likewise.
6642         (TARGET_3DNOW): Likewise.
6643         (TARGET_3DNOW_A): Likewise.
6644         (TARGET_SSE): Likewise.
6645         (TARGET_SSE2): Likewise.
6646         (TARGET_SSE3): Likewise.
6647         (TARGET_SSSE3): Likewise.
6648         (TARGET_SSE4_1): Likewise.
6649         (TARGET_SSE4_2): Likewise.
6650         (TARGET_AVX): Likewise.
6651         (TARGET_AVX2): Likewise.
6652         (TARGET_FMA): Likewise.
6653         (TARGET_SSE4A): Likewise.
6654         (TARGET_FMA4): Likewise.
6655         (TARGET_XOP): Likewise.
6656         (TARGET_LWP): Likewise.
6657         (TARGET_ROUND): Likewise.
6658         (TARGET_ABM): Likewise.
6659         (TARGET_BMI): Likewise.
6660         (TARGET_BMI2): Likewise.
6661         (TARGET_LZCNT): Likewise.
6662         (TARGET_TBM): Likewise.
6663         (TARGET_POPCNT): Likewise.
6664         (TARGET_SAHF): Likewise.
6665         (TARGET_MOVBE): Likewise.
6666         (TARGET_CRC32): Likewise.
6667         (TARGET_AES): Likewise.
6668         (TARGET_PCLMUL): Likewise.
6669         (TARGET_CMPXCHG16B): Likewise.
6670         (TARGET_FSGSBASE): Likewise.
6671         (TARGET_RDRND): Likewise.
6672         (TARGET_F16C): Likewise.
6673         (TARGET_RTM): Likewise.
6674         (TARGET_HLE): Likewise.
6675         (TARGET_RDSEED): Likewise.
6676         (TARGET_PRFCHW): Likewise.
6677         (TARGET_ADX): Likewise.
6678         (TARGET_LP64): Likewise.
6679         (TARGET_X32): Likewise.
6680         (TARGET_ISA_ROUND): Likewise.
6681         * config/i386/darwin.h (TARGET_64BIT): Likewise.
6683         * doc/options.texi (Mask): Update documentation to specify only
6684         TARGET_<xxx> is generated.
6686 2012-10-17  Greta Yorsh  <Greta.Yorsh@arm.com>
6688         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): Rename this...
6689         (UNSPEC_REGISTER_USE): ... to this.
6690         (prologue_use): Rename this...
6691           (force_register_use): ... to this and update output assembly.
6692         (epilogue) Rename gen_prologue_use to gen_force_register_use.
6693         * config/arm/arm.c (arm_expand_prologue): Likewise.
6694         (thumb1_expand_epilogue): Likewise.
6695         (arm_expand_epilogue): Likewise.
6696         (arm_expand_epilogue): Likewise.
6698 2012-10-17  Georg-Johann Lay  <avr@gjlay.de>
6700         * config/avr/avr-arch.h (avr_extra_arch_macro): Remove prototype.
6701         * config/avr/avr.c (avr_extra_arch_macro): Remove variable.
6702         (avr_option_override): Remove setting of avr_extra_arch_macro.
6703         * config/avr/avr-c.c (avr_extra_arch_macro): Replace with
6704         avr_current_device->macro.
6706 2012-10-17  Richard Biener  <rguenther@suse.de>
6708         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
6709         Do not write TREE_CHAIN of PARM_DECLs.
6710         (write_ts_decl_non_common_tree_pointers): Instead stream
6711         the DECL_ARGUMENTS chain.
6712         * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6713         Do not read TREE_CHAIN of PARM_DECLs.
6714         (lto_input_ts_decl_non_common_tree_pointes): Instead read
6715         the DECL_ARGUMENTS as chain.
6717 2012-10-17  Steven Bosscher  <steven@gcc.gnu.org>
6719         * config/iq2000/iq2000.h (call_used_regs): Remove definition.
6721 2012-10-16  Eric Botcazou  <ebotcazou@adacore.com>
6723         PR rtl-optimization/54870
6724         * tree.h (TREE_ADDRESSABLE): Document special usage on SSA_NAME.
6725         * cfgexpand.c (update_alias_info_with_stack_vars ): Set it on the
6726         SSA_NAME pointer that points to a partition if there is at least
6727         one variable with it set in the partition.
6728         * dse.c (local_variable_can_escape): New predicate.
6729         (can_escape): Call it.
6730         * gimplify.c (mark_addressable): If this is a partitioned decl, also
6731         mark the SSA_NAME pointer that points to a partition.
6733 2012-10-16  Steven Bosscher  <steven@gcc.gnu.org>
6735         * df-problems.c (df_kill_notes): Split up in two functions.
6736         (df_remove_dead_and_unused_notes): New function, first half of
6737         df_kill notes to remove all REG_DEAD and REG_UNUSED notes.
6738         (df_remove_dead_eq_notes): New function, second half of df_kill_notes
6739         to remove REG_EQUAL and REG_EQUIV notes referring to dead registers.
6740         (df_note_bb_compute): Call df_remove_dead_and_unused_notes instead
6741         of df_kill_notes.  Call df_remove_dead_eq_notes after processing insn.
6743         * web.c (web): Re-add DF_RD_PRUNE_DEAD_DEFS;
6745 2012-10-16  Ian Lance Taylor  <iant@google.com>
6747         * doc/extend.texi (Return Address): Change
6748         __builtin_extract_return_address to
6749         __builtin_extract_return_addr.
6751 2012-10-16  Steven Bosscher  <steven@gcc.gnu.org>
6753         * rtl.h (get_call_rtx_from): New prototype.
6754         * rtlanal.c (get_call_rtx_from): New function.
6755         * calls.c (emit_call_1): Use it.
6756         * dse.c (scan_insn): Likewise
6757         * dwarf2out.c (dwarf2out_var_location): Likewise.
6758         * sched-deps.c (call_may_noreturn_p): Likewise.
6759         * var-tracking.c (prepare_call_arguments): Likewise.
6760         * config/sh/sh.c (sh_adjust_cost): Likewise.
6762 2012-10-16  Tom de Vries  <tom@codesourcery.com>
6764         * expr.c (move_by_pieces, move_by_pieces_ninsns, can_store_by_pieces)
6765         (store_by_pieces_1): Don't enter loop when no more data is left.
6767 2012-10-16  Joern Rennecke  <joern.rennecke@embecosm.com>
6769         * loop-doloop.c (doloop_modify): Pass doloop_end pattern to
6770         gen_doloop_begin.
6771         (doloop_optimize): Pass flag to indicate if loop is entered at top
6772         to gen_doloop_end.
6773         * config/arm/thumb2.md (doloop_end): Accept extra operand.
6774         * config/bfin/bfin.md (doloop_end): Likewise.
6775         * config/c6x/c6x.md (doloop_end): Likewise.
6776         * config/ia64/ia64.md (doloop_end): Likewise.
6777         * config/mep/mep.md (doloop_begin, doloop_end): Likewise.
6778         * config/rs6000/rs6000.md (doloop_end): Likewise.
6779         * config/s390/s390.md (doloop_end): Likewise.
6780         * config/sh/sh.md (doloop_end): Likewise.
6781         * config/spu/spu.md (doloop_end): Likewise.
6782         * config/tilegx/tilegx.md (doloop_end): Likewise.
6783         * config/tilepro/tilepro.md (doloop_end): Likewise.
6784         * doc/md.texi (doloop_end): Document new operand.
6785         * basic-block.h (contains_no_active_insn_p): Declare.
6786         * cfgrtl.c (contains_no_active_insn_p): New function, factored
6787         out of ...
6788         (forwarder_block_p): ... here.
6790 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6792         PR c/53063
6793         PR c/40989
6794         * doc/options.texi (EnabledBy): Document new form.
6795         * optc-gen.awk: Handle new form of EnabledBy.
6796         * common.opt (Wunused-but-set-parameter): Use EnabledBy.
6797         (Wunused-parameter): Likewise.
6798         * opts.c (finish_options): Do not handle them explicitly.
6799         * opt-functions.awk (search_var_name): New.
6801 2012-10-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6803         PR c/53063
6804         PR c/40989
6805         * optc-gen.awk: Handle new form of LangEnabledBy.
6806         * opts.c (set_Wstrict_aliasing): Declare here. Make static.
6807         * common.opt (Wstrict-aliasing=,Wstrict-overflow=): Do not use Init.
6808         * doc/options.texi (LangEnabledBy): Document new form.
6809         * flags.h (set_Wstrict_aliasing): Do not declare.
6811 2012-10-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6813         * reload.c (find_reloads_subreg_address): Remove FORCE_REPLACE
6814         parameter.  Always replace normal subreg with memory reference
6815         whenever possible.  Return NULL otherwise.
6816         (find_reloads_toplev): Always call find_reloads_subreg_address
6817         for subregs of registers equivalent to a memory location.
6818         Only recurse further if find_reloads_subreg_address fails.
6819         (find_reloads_address_1): Only call find_reloads_subreg_address
6820         for subregs of registers equivalent to a memory location.
6821         Properly handle failure of find_reloads_subreg_address.
6823 2012-10-16  Jakub Jelinek  <jakub@redhat.com>
6825         PR debug/54796
6826         * rtl.h: Document jump flag on VALUE.
6827         * cselib.h (cselib_set_value_sp_based,
6828         cselib_sp_based_value_p): New prototypes.
6829         * alias.c (find_base_term): For cselib_sp_based_value_p
6830         return static_reg_base_value[STACK_POINTER_REGNUM].
6831         * cselib.c (SP_BASED_VALUE_P): Define.
6832         (cselib_set_value_sp_based, cselib_sp_based_value_p): New functions.
6833         * var-tracking.c (add_stores): Call cselib_set_value_sp_based
6834         for not yet preserved VALUEs of sp on sp assignments if
6835         hard_frame_pointer_adjustment != -1.
6836         (vt_initialize): When setting hard_frame_pointer_adjustment,
6837         disassociate sp from its previous value and call
6838         cselib_set_value_sp_based on a new VALUE created for sp.
6840         PR tree-optimization/54889
6841         * tree-vect-stmts.c (vectorizable_load): Add VIEW_CONVERT_EXPR if
6842         ARRAY_REF newref doesn't have compatible type with vectype element
6843         type, use vectype element type for MEM_REF.
6845 2012-10-16  Steven Bosscher  <steven@gcc.gnu.org>
6847         * combine.c (record_dead_and_set_regs): Iterate over hard register set
6848         with a hard_reg_set_iterator.
6849         * cse.c (invalidate_for_call): Likewise.
6850         * gcse.c (compute_hash_table_work): Likewise.
6851         * loop-iv.c (simplify_using_initial_values): Likewise.
6852         * postreload-gcse.c (record_opr_changes): Likewise.
6853         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
6854         * var-tracking.c (dataflow_set_clear_at_call): Likewise.
6856 2012-10-15   Easwaran Raman  <eraman@google.com>
6858         * optabs.c (emit_cmp_and_jump_insn_1): Add a new parameter to
6859         specificy the probability of taking the jump.
6860         (emit_cmp_and_jump_insns): Likewise.
6861         (expand_compare_and_swap_loop): Make the jump predicted not taken.
6862         * dojump.c (do_compare_rtx_and_jump): Remove the code attaching
6863         REG_BR_PROB note and pass probability to emit_cmp_and_jump_insns.
6864         * cfgbuild.c (compute_outgoing_frequencies): Do not guess outgoing
6865         probabilities for branches with more than two successors.
6866         * expr.c (emit_block_move_via_loop): Predict the loop backedge loop
6867         to be highly taken.
6868         (try_casesi): Pass the probability of jumping to the default label.
6869         (try_tablejump): Likewise.
6870         (do_tablejump): Likewise.
6871         * expr.h (try_tablejump): Add a new parameter.
6872         (try_casesi): Likewise.
6873         (emit_cmp_and_jump_insns): Add probability as default parameter with a
6874         default value of -1.
6875         * except.c (sjlj_emit_function_enter): Pass probability to
6876         emit_cmp_and_jump_insns.
6877         * stmt.c (case_node): Add new fields PROB and SUBTREE_PROB.
6878         (do_jump_if_equal): Pass probability for REG_BR_PROB note.
6879         (add_case_node): Pass estimated probability of jumping to the case
6880         label.
6881         (emit_case_decision_tree): Pass default_prob to emit_case_nodes.
6882         (get_outgoing_edge_probs): New function.
6883         (conditional_probability): Likewise.
6884         (reset_out_edges_aux): Likewise.
6885         (compute_cases_per_edge): Likewise.
6886         (emit_case_dispatch_table): Update probabilities of edges coming out
6887         of the switch statement.
6888         (expand_case): Compute and propagate default edge probability to
6889         emit_case_dispatch_table.
6890         (expand_sjlj_dispatch_table): Update calls to add_case_node and
6891         emit_case_dispatch_table.
6892         (balance_case_nodes): Update subtree_prob values.
6893         (emit_case_nodes): Compute edge probabilities and add pass them to
6894         emit_cmp_and_jump_insns.
6896 2012-10-15  Oleg Endo  <olegendo@gcc.gnu.org>
6898         PR target/51244
6899         * config/sh/sh-protos.h (set_of_reg): New struct.
6900         (sh_find_set_of_reg, sh_is_logical_t_store_expr,
6901         sh_try_omit_signzero_extend):  Declare...
6902         * config/sh/sh.c (sh_find_set_of_reg, sh_is_logical_t_store_expr,
6903         sh_try_omit_signzero_extend): ...these new functions.
6904         * config/sh/sh.md (*logical_op_t): New insn_and_split.
6905         (*zero_extend<mode>si2_compact): Use sh_try_omit_signzero_extend
6906         in splitter.
6907         (*extend<mode>si2_compact_reg): Convert to insn_and_split.
6908         Use sh_try_omit_signzero_extend in splitter.
6909         (*mov<mode>_reg_reg): Disallow t_reg_operand as operand 1.
6910         (*cbranch_t): Rewrite combine part in splitter using new
6911         sh_find_set_of_reg function.
6913 2012-10-15  Oleg Endo  <olegendo@gcc.gnu.org>
6915         PR target/54760
6916         * config/sh/sh.c (sh_find_base_reg_disp): Stop searching insns when
6917         hitting a call insn if GBR is marked as call used.
6918         * config/sh/iterators.md (QIHISIDI): New mode iterator.
6919         * config/sh/predicates.md (gbr_address_mem): New predicate.
6920         * config/sh/sh.md (*movdi_gbr_load, *movdi_gbr_store): New
6921         insn_and_split.  Use QIHISIDI instead of QIHISI in unnamed GBR
6922         addressing splits.
6924 2012-10-15  Oleg Endo  <olegendo@gcc.gnu.org>
6926         * config/sh/sh.c: Update function attribute comments.
6927         * doc/extend.texi (function_vector): Rephrase SH2A specific part.
6928         (nosave_low_regs, renesas, trapa_handler): Document SH specific
6929         attributes.
6930         (sp_switch, trap_exit): Add to index.
6932 2012-10-15  Matthias Klose  <doko@ubuntu.com>
6934         * config.gcc: Match arm*-*-linux-* for ARM Linux/GNU.
6935         * doc/install.texi: Use arm-*-*linux-* instead of arm-*-*linux-gnueabi.
6937 2012-10-15  Uros Bizjak  <ubizjak@gmail.com>
6939         * config/i386/sse.md (UNSPEC_MOVU): Remove.
6940         (UNSPEC_LOADU): New.
6941         (UNSPEC_STOREU): Ditto.
6942         (<sse>_movu<ssemodesuffix><avxsizesuffix>): Split to ...
6943         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): ... this and ...
6944         (<sse>_storeu<ssemodesuffix><avxsizesuffix>) ... this.
6945         (<sse2>_movdqu<avxsizesuffix>): Split to ...
6946         (<sse2>_loaddqu<avxsizesuffix>): ... this and ...
6947         (<sse2>_storedqu<avxsizesuffix>): ... this.
6948         (*sse4_2_pcmpestr_unaligned): Update.
6949         (*sse4_2_pcmpistr_unaligned): Ditto.
6951         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign): Use
6952         gen_avx_load{dqu,ups,upd}256 to load from unaligned memory and
6953         gen_avx_store{dqu,ups,upd}256 to store to unaligned memory.
6954         (ix86_expand_vector_move_misalign): Use gen_sse_loadups or
6955         gen_sse2_load{dqu,upd} to load from unaligned memory and
6956         gen_sse_loadups or gen_sse2_store{dqu,upd}256 to store to
6957         unaligned memory.
6958         (struct builtin_description bdesc_spec) <IX86_BUILTIN_LOADUPS>:
6959         Use CODE_FOR_sse_loadups.
6960         <IX86_BUILTIN_LOADUPD>: Use CODE_FOR_sse2_loadupd.
6961         <IX86_BUILTIN_LOADDQU>: Use CODE_FOR_sse2_loaddqu.
6962         <IX86_BUILTIN_STOREUPS>: Use CODE_FOR_sse_storeups.
6963         <IX86_BUILTIN_STOREUPD>: Use CODE_FOR_sse2_storeupd.
6964         <IX86_BUILTIN_STOREDQU>: Use CODE_FOR_sse2_storedqu.
6965         <IX86_BUILTIN_LOADUPS256>: Use CODE_FOR_avx_loadups256.
6966         <IX86_BUILTIN_LOADUPD256>: Use CODE_FOR_avx_loadupd256.
6967         <IX86_BUILTIN_LOADDQU256>: Use CODE_FOR_avx_loaddqu256.
6968         <IX86_BUILTIN_STOREUPS256>: Use CODE_FOR_avx_storeups256.
6969         <IX86_BUILTIN_STOREUPD256>: Use CODE_FOR_avx_storeupd256.
6970         <IX86_BUILTIN_STOREDQU256>: Use CODE_FOR_avx_storedqu256.
6972 2012-10-15  Dodji Seketeli  <dodji@redhat.com>
6974         * alias.c: Cleanup comments.
6976 2012-10-15  Marc Glisse  <marc.glisse@inria.fr>
6978         PR tree-optimization/54915
6979         * tree-ssa-forwprop.c (simplify_vector_constructor): Check
6980         argument's type.
6982 2012-10-15  Richard Biener  <rguenther@suse.de>
6984         * data-streamer.h (bp_pack_string_with_length): New function.
6985         (bp_pack_string): Likewise.
6986         (bp_unpack_indexed_string): Likewise.
6987         (bp_unpack_string): Likewise.
6988         * data-streamer-out.c (bp_pack_string_with_length): Likewise.
6989         (bp_pack_string): Likewise.
6990         * data-streamer-in.c (bp_unpack_indexed_string): Likewise.
6991         (bp_unpack_string): Likewise.
6992         * tree-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
6993         Pack TRANSLATION_UNIT_LANGUAGE here, not ...
6994         (write_ts_translation_unit_decl_tree_pointers): ... here.  Remove.
6995         (streamer_pack_tree_bitfields): Adjust.
6996         (streamer_write_tree_body): Likewise.
6997         * tree-streamer-in.c (unpack_ts_translation_unit_decl_value_fields):
6998         Unpack TRANSLATION_UNIT_LANGUAGE here, not ...
6999         (lto_input_ts_translation_unit_decl_tree_pointers): ... here.  Remove.
7000         (unpack_value_fields): Adjust.
7001         (streamer_read_tree_body): Likewise.
7003 2012-10-15  J"orn Rennecke  <joern.rennecke@arc.com>
7005         * genoutput.c (process_template): Process '*' in '@' alternatives.
7006         * doc/md.texi (node Output Statement): Provide example for the above.
7008 2012-10-15  Richard Guenther  <rguenther@suse.de>
7010         PR tree-optimization/54920
7011         * tree-ssa-pre.c (create_expression_by_pieces): Properly
7012         allocate temporary storage for all NARY elements.
7014 2012-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
7016         * web.c (union_match_dups): Properly handle OP_INOUT match_dups.
7018 2012-10-15  Eric Botcazou  <ebotcazou@adacore.com>
7020         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Do not unnecessarily
7021         copy the object in the MEM_P case.
7023 2012-10-15  Richard Guenther  <rguenther@suse.de>
7025         * tree-streamer-out.c (streamer_pack_tree_bitfields): Back
7026         BINFO_BASE_ACCESSES and CONSTRUCTOR lengths here.
7027         (streamer_write_chain): Write TREE_CHAIN as null-terminated list.
7028         (write_ts_exp_tree_pointers): Adjust.
7029         (write_ts_binfo_tree_pointers): Likewise.
7030         (write_ts_constructor_tree_pointers): Likewise.
7031         * tree-streamer-in.c (streamer_read_chain): Read TREE_CHAIN as
7032         null-terminated list.
7033         (unpack_value_fields): Unpack BINFO_BASE_ACCESSES and
7034         CONSTRUCTOR lengths and materialize the arrays.
7035         (lto_input_ts_exp_tree_pointers): Adjust.
7036         (lto_input_ts_binfo_tree_pointers): Likewise.
7037         (lto_input_ts_constructor_tree_pointers): Likewise.
7039 2012-10-14  Hans-Peter Nilsson  <hp@bitrange.com>
7041         * config/mmix/mmix.c (mmix_opposite_regno): Handle the
7042         return-value register too.
7044 2012-10-14  Steven Bosscher  <steven@gcc.gnu.org>
7046         PR rtl-optimization/38711
7047         * df.h (df_get_live_out, df_get_live_in): Make static inline functions.
7048         * df-problems.c (df_get_live_out, df_get_live_in): Moved to df.h.
7049         * ira-lives.c (process_bb_node_lives): Use df_get_live_out instead of
7050         DF_LR_OUT.
7051         * ira-build.c (create_bb_allocnos): Likewise.
7052         (create_loop_allocnos): Likewise, and use df_get_live_in instead of
7053         DF_LR_IN.
7054         * ira-emit.c (generate_edge_moves): Likewise.
7055         (add_ranges_and_copies): Likewise.
7056         * ira-color.c (ira_loop_edge_freq): Use df_get_live_out instead of
7057         DF_LR_OUT, and df_get_live_in instead of DF_LR_IN.
7058         * ira.c (mark_elimination): Update DF_LR and DF_LIVE.
7059         (build_insn_chain): Use df_get_live_out instead of DF_LR_OUT.
7060         (do_reload): Remove the DF_LIVE problem for -O1.
7062 2012-10-14  Steven Bosscher  <steven@gcc.gnu.org>
7064         PR rtl-optimization/54919
7065         * loop-unroll.c (struct var_to_expand): Remove accum_pos field.
7066         (analyze_insn_to_expand_var): Do not record accum_pos.
7067         (expand_var_during_unrolling): Use validate_replace_rtx_group to
7068         perform replacement of all references to SET_DEST (set) with the
7069         new register, including references in REG_EQUAL notes.
7070         (insert_var_expansion_initialization): Insert initializatio insns
7071         at the bottom of the pre-header of the loop.
7073 2012-10-14  Jan Hubicka  <jh@suse.cz>
7075         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
7076         predict loops with multiple exits realistically.
7077         * cfgloopanal.c (single_likely_exit): New function.
7079 2012-10-14  Uros Bizjak  <ubizjak@gmail.com>
7081         * config/alpha/alpha.md: Remove empty predicates and/or constraints.
7082         * config/alpha/sync.md: Ditto.
7084 2012-10-13  Uros Bizjak  <ubizjak@gmail.com>
7086         * config/alpha/alpha.md (I24MODE): New mode iterator.
7087         (any_divmod): New code iterator.
7088         (<code>si3): Macroize expander from {div,mod,udiv,umod}si3 using
7089         any_divmod code iterator.
7090         (<code>si3): Macroize expander from {div,mod,udiv,umod}di3 using
7091         any_divmod code iterator.
7092         (extendqi<mode>2): Macroize insn from extendqi{hi,si}2 using
7093         I24MODE mode iterator.
7094         (unaligned_store<mode>): Macroize expander from unaligned_store{qi,hi}
7095         using I12MODE mode iterator.
7096         (mov<mode>): Macroize expander from mov{qi,hi} using
7097         I12MODE mode iterator.
7099 2012-10-13  Eric Botcazou  <ebotcazou@adacore.com>
7101         PR rtl-optimization/54871
7102         * loop-iv.c (simplify_using_initial_values): When scanning previous
7103         basic blocks, prune the recorded conditions if the current insn was
7104         not used to make a replacement.
7106         * loop-unroll.c (decide_unroll_constant_iterations): Clean up message.
7107         (unroll_loop_constant_iterations): Clarify head comment.
7108         (decide_unroll_runtime_iterations): Clean up message.
7109         (unroll_loop_runtime_iterations): Clarify head comment.
7110         (decide_peel_simple): Clean up message.
7111         (peel_loop_simple): Clarify head comment.
7112         (decide_unroll_stupid): Clean up message.
7113         (unroll_loop_stupid): Clarify head comment.
7115 2012-10-13  Andreas Schwab  <schwab@linux-m68k.org>
7117         PR gcov-profile/44728
7118         * gcov.c (create_file_names): When stripping extension only look
7119         at base name.
7121 2012-10-13  Jan Hubicka  <jh@suse.cz>
7123         * loop-iv.c (determine_max_iter): Fix handling of AND.
7124         (iv_number_of_iterations): Record upper bounds as unsigned
7125         values.
7127 2012-10-13  Steven Bosscher  <steven@gcc.gnu.org>
7129         * ira.c (ira): Set current_loops to &ira_loops before recording
7130         loop exits.  Release recorded exits and loops early.
7132 2012-10-13  Chung-Lin Tang  <cltang@codesourcery.com>
7134         * builtins.c (expand_builtin_set_thread_pointer): Use
7135         create_input_operand() instead of create_fixed_operand().
7137 2012-10-13  Uros Bizjak  <ubizjak@gmail.com>
7139         * config/alpha/alpha.md (FMODE): New mode iterator.
7140         (modesuffix): Handle SF and DF modes.
7141         (opmode): New mode attribute.
7142         (abs<mode>2): Macroize insn from abs{sf,df}2 using FMODE mode iterator.
7143         (*nabs<mode>2): Macroize insn from *nabs{sf,df}2 using
7144         FMODE mode iterator.
7145         (neg<mode>2): Macroize insn from neg{sf,df}2 using FMODE mode iterator.
7146         (copysign<mode>3): Macroize insn from copysign{sf,df}3 using
7147         FMODE mode iterator.
7148         (*ncopysign<mode>3): Macroize insn from *ncopysign{sf,df}3 using
7149         FMODE mode iterator.
7150         (*add<mode>3_ieee): Macroize insn from *add{sf,df}_ieee using
7151         FMODE mode iterator.
7152         (add<mode>3): Macroize insn from add{sf,df}3 using FMODE mode iterator.
7153         (*sub<mode>3_ieee): Macroize insn from *sub{sf,df}3_ieee using
7154         FMODE mode iterator.
7155         (sub<mode>3): Macroize insn from sub{sf,df}3 using FMODE mode iterator.
7156         (*mul<mode>3_ieee): Macroize insn from *mul{sf,df}3_ieee using
7157         FMODE mode iterator.
7158         (mul<mode>3): Macroize insn from mul{sf,df}3 using FMODE mode iterator.
7159         (*div<mode>3_ieee): Macroize insn from *div{sf,df}3_ieee using
7160         FMODE mode iterator.
7161         (div<mode>3): Macroize insn from div{sf,df}3 using FMODE mode iterator.
7162         (*sqrt<mode>2_ieee): Macroize insn from *sqrt{sf,df}2_ieee using
7163         FMODE mode iterator.
7164         (sqrt<mode>2): Macroize insn from sqrt{sf,df}2
7165         using FMODE mode iterator.
7166         (*mov<mode>cc_internal): Macroize insn from *mov{sf,df}cc_internal
7167         using FMODE mode iterator.
7168         (mov<mode>cc): Macroize expander from mov{sf,df}cc
7169         using FMODE mode iterator.
7171 2012-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
7173         PR target/54602
7174         * config/sh/sh.md: Correct define_delay for return insns.
7175         (*movsi_pop): Delete.
7177 2012-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
7179         PR target/54680
7180         * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_int2sf): Fix swapped
7181         comments.
7182         * config/sh/predicates.md (fpul_operand): Add comment.
7183         (fpul_fsca_operand, fsca_scale_factor): New predicates.
7184         * config/sh/sh.md (fsca): Move below sincossf3 expander.  Convert to
7185         insn_and_split.  Use fpul_fsca_operand and fsca_scale_factor
7186         predicates.  Simplify fpul operand in splitter.
7188 2012-10-12  Jan Hubicka <jh@suse.cz>
7190         * tree-ssa-threadupdate.c (def_split_header_continue_p): Do not
7191         escape the loop.
7193 2012-10-12  Jan Hubicka <jh@suse.cz>
7195         * web.c (web_main): Do not set DF_RD_PRUNE_DEAD_DEFS flag.
7197 2012-10-12  Aaron Gray <aaronngray.lists@gmail.com>
7198             Diego Novillo <dnovillo@google.com>
7200         * gengtype-lex.l: Support for C++ single line comments.
7201         Support for classes.
7202         (CXX_KEYWORD): New.  Support C++ keywords inline, public,
7203         protected, private, template, operator, friend, &, ~.
7204         (TYPEDEF): New.  Support typedef.
7205         * gengtype-parser.c: updated 'token_names[]'
7206         (direct_declarator): Add support for parsing functions and ctors.
7208 2012-10-12  Diego Novillo  <dnovillo@google.com>
7210         * doc/gty.texi: Document C++ limitations in gengtype.
7211         * gengtype-lex.l (CID): Rename from ID.
7212         (ID): Include scoping '::' as part of the identifier name.
7213         * gengtype-parse.c (token_names): Update.
7214         (token_value_format): Update.
7215         (consume_until_eos): Rename from consume_until_semi.
7216         Remove unused argument IMMEDIATE.  Update all callers.
7217         Also consider '}' as a finalizer.
7218         (consume_until_comma_or_eos): Rename from
7219         consume_until_comma_or_semi.
7220         Remove unused argument IMMEDIATE.  Update all callers.
7221         Also consider '}' as a finalizer.
7222         (direct_declarator): Add documentation on ctor support.
7223         Add argument IN_STRUCT.
7224         If the token following ID is a '(', consider ID a
7225         function and return NULL.
7226         If the token following '(' is not a '*', and IN_STRUCT is true,
7227         conclude that this is a ctor and return NULL.
7228         If the token is IGNORABLE_CXX_KEYWORD, return NULL.
7229         (inner_declarator): Add argument IN_STRUCT.
7230         Update all callers.
7231         (declarator): Add argument IN_STRUCT with default value false.
7232         Update all callers.
7233         (type): Document argument NESTED.
7234         Skip over C++ inheritance specifiers.
7235         If a token TYPEDEF is found, emit an error.
7236         If an enum is found inside a class/structure, emit an error.
7237         (typedefs, structures, param_structs, variables): Initialize.
7238         (new_structure): Do not complain about duplicate
7239         structures if S has a line location set.
7240         * gengtype-state.c (write_state_type): Remove default handler.
7241         Add handler for TYPE_NONE.
7242         (read_state_scalar_char_type):
7243         * gengtype.c: Fix spacing.
7244         * gengtype.h (enum gty_token): Add name.  Add token
7245         IGNORABLE_CXX_KEYWORD.
7247 2012-10-12  Chung-Lin Tang  <cltang@codesourcery.com>
7249         * config/arm/arm.md (get_thread_pointersi): Moved to place with
7250         other TLS related patterns.
7252 2012-10-12  Richard Biener  <rguenther@suse.de>
7254         * tree-streamer-out.c (pack_ts_target_option): Rename from ...
7255         (write_ts_target_option): ... this.
7256         (pack_ts_optimization): Rename from ...
7257         (write_ts_optimization): ... this.
7258         (streamer_pack_tree_bitfields): Pack them in the bitfield section ...
7259         (streamer_write_tree_body): ... not here.
7260         * tree-streamer-in.c (unpack_ts_target_option): Rename from ...
7261         (lto_input_ts_target_option): ... this.
7262         (unpack_ts_optimization): Rename from ...
7263         (lto_input_ts_optimization): ... this.
7264         (unpack_value_fields): Unpack them from the bitfield section ...
7265         (streamer_read_tree_body): ... not from here.
7267 2012-10-12  Uros Bizjak  <ubizjak@gmail.com>
7269         * config/alpha/alpha.md (vecmodesuffix): New mode attribute.
7270         (modesuffix): Handle V8QI and V4HI modes.
7271         (any_maxmin): New code iterator.
7272         (maxmin): New code attribute.
7273         (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{qi,hi}3
7274         using any_maxmin code iterator and I12MODE mode iterator.
7275         (<code><mode>3): Macroize insn from {smax,smin,umax,umin}{v8qi,v4hi}3
7276         using any_maxmin code iterator and VEC12 mode iterator.
7278 2012-10-12  Marc Glisse  <marc.glisse@inria.fr>
7280         * optabs.c (vector_compare_rtx): Change prototype.
7281         (expand_vec_cond_expr): Handle VEC_COND_EXPR whose first operand
7282         is not a comparison.
7283         * gimplify.c (gimplify_expr): Handle VEC_COND_EXPR.
7285 2012-10-12  Richard Biener  <rguenther@suse.de>
7287         PR tree-optimization/54894
7288         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
7289         Handle over-aligned scalar types properly.
7291 2012-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
7293         PR target/54760
7294         * config/sh/sh.c (bdesc): Remove thread pointer built-ins.
7295         * config/sh/sh.md (get_thread_pointer, set_thread_pointer): Append mode
7296         name 'si'.
7298 2012-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
7300         PR target/51244
7301         * config/sh/sh.md (negsi_cond, negdi_cond, stack_protect_test): Remove
7302         get_t_reg_rtx when invoking gen_branch_true or gen_branch_false.
7303         (*zero_extend<mode>si2_compact): Convert to insn_and_split.  Convert
7304         zero extensions of T bit stores to reg moves in splitter.  Remove
7305         obsolete unnamed peephole2 that caught zero extensions after negc T bit
7306         stores.
7307         (*branch_true_eq, *branch_false_ne): Delete.
7308         (branch_true, branch_false): Convert insn to expander.  Move actual
7309         insn logic to...
7310         (*cbranch_t): ...this new insn_and_split.  Try to find preceding
7311         redundant T bit stores and tests and combine them with the conditional
7312         branch if possible in the splitter.
7313         (movrt_xor, *movt_movrt): New insn_and_split.
7314         * config/sh/predicates.md (cbranch_treg_value): New predicate.
7315         * config/sh/sh-protos.h (sh_eval_treg_value): Forward declare...
7316         * config/sh/sh.c (sh_eval_treg_value): ...this new function.
7317         (expand_cbranchsi4, expand_cbranchdi4): Remove get_t_reg_rtx
7318         when invoking gen_branch_true or gen_branch_false.
7320 2012-10-11  Uros Bizjak  <ubizjak@gmail.com>
7322         * config/alpha/alpha.md (IMODE): New mode iterator.
7323         (I124MODE): Ditto.
7324         (I248MODE): Ditto.
7325         (modesuffix): Handle QI and HI modes.
7326         (zero_extendqi<mode>2): Macroize insn from zero_extendqi{hi,si,di}2
7327         using I248MODE mode iterator.
7328         (zero_extendhi<mode>2): Macroize insn from zero_extendhi{si,di}2
7329         using I48MODE mode iterator.
7330         (andnot<mode>3): Macroize insn from andnot{si,di}3 using
7331         I48MODE mode iterator.
7332         (ins<modesuffix>l_const): Macroize insn from ins{b,w,l}l_const
7333         using I248MODE mode iterator.
7334         (ins<modesuffix>l): Macroize insn from ins{b,w,l}l
7335         using I248MODE mode iterator.
7336         (*mov<mode>cc_internal): Macroize insn from
7337         *mov{qi,hi,si,di}cc_internal using IMODE mode iterator.
7338         (*mov<mode>cc_lbc): Macroize insn from
7339         *mov{qi,hi,si,di}cc_lbc using IMODE mode iterator.
7340         (*mov<mode>cc_lbs): Macroize insn from
7341         *mov{qi,hi,si,di}cc_lbs using IMODE mode iterator.
7342         (mov<mode>cc): Macroize expander from mov{si,di}cc
7343         using I48MODE mode iterator.
7345 2012-10-11  Steven Bosscher  <steven@gcc.gnu.org>
7347         * ira-build.c (ira_loop_tree_body_rev_postorder): New function.
7348         (ira_traverse_loop_tree): Traverse a loop's basic blocks in
7349         reverse post-order of the reversed control-flow direction.
7350         * ira-conflicts.c (ira_build_conflicts): Pass add_copies as
7351         the pre-order function to ira_traverse_loop_tree to preserve
7352         the existing semantics.
7354         * ira-lives.c (remove_some_program_points_and_update_live_ranges):
7355         Squeeze out live range chain elements if their program points are
7356         connected.
7358 2012-10-11  Jakub Jelinek  <jakub@redhat.com>
7360         * tree.def (REDUC_PLUS_EXPR): Fix up comment.
7362         * fold-const.c (fold_unary_loc): Handle REDUC_MIN_EXPR,
7363         REDUC_MAX_EXPR and REDUC_PLUS_EXPR.
7365 2012-10-11  James Lemke  <jwlemke@codesourcery.com>
7367         * config/rs6000/predicates.md (zero_fp_constant): Fix comment.
7368         * config/rs6000/rs6000.md (return_pred): Fix null return.
7369         * config/rs6000/rs6000.c (rs6000_emit_set_const): Fix indentation.
7370         (print_operand): Make FALLTHRU obvious.
7371         (output_cbranch): Correct comment.
7373 2012-10-11  Uros Bizjak  <ubizjak@gmail.com>
7375         * config/alpha/alpha.md (DWI): New mode attribute.
7376         (*sadd<modesuffix>): Macroize insn from *saddl and *saddq using
7377         I48MODE mode iterator.
7378         (addv<mode>3): Macroize insn from addvsi3 and addvdi3 using
7379         I48MODE mode iterator.
7380         (neg<mode>2): Macroize insn from negsi2 and negdi2 using
7381         I48MODE mode iterator.
7382         (negv<mode>2): Macroize insn from negvsi2 and negvdi2 using
7383         I48MODE mode iterator.
7384         (sub<mode>3): Macroize insn from subsi3 and subdi3 using
7385         I48MODE mode iterator.
7386         (*ssub<modesuffix>): Macroize insn from *ssubl and *ssubq using
7387         I48MODE mode iterator.
7388         (subv<mode>3): Macroize insn from subvsi3 and subvdi3 using
7389         I48MODE mode iterator.
7390         (mul<mode>3): Macroize insn from mulsi3 and muldi3 using
7391         I48MODE mode iterator.
7392         (mulv<mode>3): Macroize insn from mulvsi3 and mulvdi3 using
7393         I48MODE mode iterator.
7394         (*iornot<mode>3): Macroize insn from *iornotsi3 and *iornotdi3 using
7395         I48MODE mode iterator.
7396         (*xornot<mode>3): Macroize insn from *xornotsi3 and *xornotdi3 using
7397         I48MODE mode iterator.
7399 2012-10-11  Jason Merrill  <jason@redhat.com>
7401         * configure.ac (gcc_cv_as_aix_ref): Fix typo.
7402         * configure: Regenerate.
7404 2012-10-11  Chung-Lin Tang  <cltang@codesourcery.com>
7406         * builtins.c (expand_builtin_thread_pointer): New.
7407         (expand_builtin_set_thread_pointer): New.
7408         (expand_builtin): Add BUILT_IN_THREAD_POINTER,
7409         BUILT_IN_SET_THREAD_POINTER expand cases.
7410         * builtins.def (BUILT_IN_THREAD_POINTER):
7411         New __builtin_thread_pointer builtin.
7412         (BUILT_IN_SET_THREAD_POINTER):
7413         New __builtin_set_thread_pointer builtin.
7414         * optabs.def (get_thread_pointer,set_thread_pointer):
7415         New standard names.
7416         * doc/md.texi (Standard Names): Document get_thread_pointer and
7417         set_thread_pointer patterns.
7418         * config/alpha/alpha.md (get_thread_pointerdi): Rename from load_tp.
7419         (set_thread_pointerdi): Rename from set_tp.
7420         * config/alpha/alpha.c (alpha_legitimize_address_1): Change
7421         gen_load_tp calls to gen_get_thread_pointerdi.
7422         (alpha_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
7423         ALPHA_BUILTIN_SET_THREAD_POINTER.
7424         (code_for_builtin): Remove CODE_FOR_load_tp, CODE_FOR_set_tp.
7425         (alpha_init_builtins): Remove __builtin_thread_pointer,
7426         __builtin_set_thread_pointer machine-specific builtins.
7427         (alpha_expand_builtin_thread_pointer): Add hook function for
7428         TARGET_EXPAND_BUILTIN_THREAD_POINTER.
7429         (alpha_expand_builtin_set_thread_pointer): Add hook function for
7430         TARGET_EXPAND_BUILTIN_SET_THREAD_POINTER.
7431         (alpha_fold_builtin): Remove ALPHA_BUILTIN_THREAD_POINTER,
7432         ALPHA_BUILTIN_SET_THREAD_POINTER cases.
7433         * config/arm/arm.md (get_thread_pointersi): New pattern.
7434         * config/arm/arm-protos.h (arm_load_tp): Add extern declaration.
7435         * config/arm/arm.c (arm_load_tp): Remove static.
7436         (arm_builtins): Remove ARM_BUILTIN_THREAD_POINTER.
7437         (arm_init_tls_builtins): Remove function.
7438         (arm_init_builtins): Remove call to arm_init_tls_builtins().
7439         (arm_expand_builtin): Remove ARM_BUILTIN_THREAD_POINTER case.
7440         * config/mips/mips.md (get_thread_pointer<mode>): New pattern.
7441         * config/mips/mips-protos.h (mips_expand_thread_pointer):
7442         Add extern declaration.
7443         * config/mips/mips.c (mips_expand_thread_pointer):
7444         Renamed from mips_get_tp.
7445         (mips_get_tp): New stub calling mips_expand_thread_pointer.
7446         * config/s390/s390.c (s390_builtin,code_for_builtin_64,
7447         code_for_builtin_31,s390_init_builtins,s390_expand_builtin): Remove.
7448         * config/s390/s390.md (get_tp_64,get_tp_31,set_tp_64,set_tp_31):
7449         Remove.
7450         (get_thread_pointer<mode>,set_thread_pointer<mode>):
7451         New, adapted from removed patterns.
7452         * config/xtensa/xtensa.md (get_thread_pointersi):
7453         Renamed from load_tp.
7454         (set_thread_pointersi): Renamed from set_tp.
7455         * config/xtensa/xtensa.c (xtensa_legitimize_tls_address):
7456         Change gen_load_tp calls to gen_get_thread_pointersi.
7457         (xtensa_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER and
7458         XTENSA_BUILTIN_SET_THREAD_POINTER.
7459         (xtensa_init_builtins): Remove __builtin_thread_pointer,
7460         __builtin_set_thread_pointer machine-specific builtins.
7461         (xtensa_fold_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
7462         XTENSA_BUILTIN_SET_THREAD_POINTER cases.
7463         (xtensa_expand_builtin): Remove XTENSA_BUILTIN_THREAD_POINTER,
7464         XTENSA_BUILTIN_SET_THREAD_POINTER cases.
7466 2012-10-11  Marc Glisse  <marc.glisse@inria.fr>
7468         * doc/extend.texi (Vector Extensions): C++ improvements.
7469         * doc/generic.texi (LSHIFT_EXPR, RSHIFT_EXPR): Mixed vector-scalar.
7470         (LT_EXPR, LE_EXPR, GT_EXPR, GE_EXPR, EQ_EXPR, NE_EXPR): Specify
7471         the vector case.
7472         (VEC_COND_EXPR): Document it.
7474 2012-10-11  Terry Guo  <terry.guo@arm.com>
7476         * config/arm/arm.c (arm_arch6m): New variable to denote armv6-m
7477         architecture.
7478         * config/arm/arm.h (TARGET_HAVE_DMB): The armv6-m also has DMB
7479         instruction.
7481 2012-10-11  Hans-Peter Nilsson  <hp@bitrange.com>
7483         PR target/54373
7484         * configure.ac (out-of-tree linker .hidden support) Set to "no"
7485         for mmix-knuth-mmixware.
7486         * configure: Regenerate.
7488         * configure.ac (gcc_cv_as_comdat_group_group): Default to no.
7489         * configure: Regenerate.
7491         * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION): Allow a single
7492         character to quote the VERSION= contents.  Sanity-check contents.
7493         * configure.ac ("what linker to use" ld version extraction): Ditto.
7494         * configure: Regenerate.
7496 2012-10-10  Segher Boessenkool  <segher@kernel.crashing.org>
7498         * config/rs6000/rs6000.h (PRINT_OPERAND_PUNCT_VALID_P): Delete '.'.
7500 2012-10-10  Jakub Jelinek  <jakub@redhat.com>
7502         PR tree-optimization/54877
7503         * tree-vect-loop.c (vect_is_simple_reduction_1): For MINUS_EXPR
7504         use make_ssa_name instead of copy_ssa_name.
7506 2012-10-10  Richard Biener  <rguenther@suse.de>
7508         * lto-streamer-in.c (lto_input_location_bitpack): Rename to ...
7509         (lto_input_location): ... this.  Kill original.
7510         (input_eh_region): Adjust.
7511         (input_struct_function_base): Likewise.
7512         (lto_read_tree): Likewise.
7513         * lto-streamer-out.c (lto_output_location_bitpack): Rename to ...
7514         (lto_output_location): ... this.  Kill original.
7515         (lto_write_tree): Adjust.
7516         (output_eh_region): Likewise.
7517         (output_struct_function_base): Likewise.
7518         * lto-streamer.c (lto_streamer_hooks_init): Initialize location hooks.
7519         * lto-streamer.h (lto_input_location): Adjust prototype.
7520         (lto_output_location): Likewise.
7521         * streamer-hooks.h (struct streamer_hooks): Adjust prototype
7522         of input_location and output_location hooks.
7523         (stream_input_location): New define.
7524         (stream_output_location): Likewise.
7525         * tree-streamer-in.c (unpack_ts_block_value_fields): Adjust.
7526         (unpack_value_fields): Likewise.
7527         (streamer_read_tree_bitfields): Likewise.
7528         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
7529         (lto_input_ts_exp_tree_pointers): Likewise.
7530         (lto_input_ts_block_tree_pointers): Likewise.
7531         * tree-streamer-out.c (pack_ts_block_value_fields): Adjust.
7532         (streamer_pack_tree_bitfields): Likewise.
7533         (write_ts_decl_minimal_tree_pointers): Likewise.
7534         (write_ts_exp_tree_pointers): Likewise.
7535         (write_ts_block_tree_pointers): Likewise.
7536         * gimple-streamer-in.c (input_phi): Adjust.
7537         (input_gimple_stmt): Likewise.
7538         * gimple-streamer-out.c (output_phi): Adjust.
7539         (output_gimple_stmt): Likewise.
7540         * tree-streamer.h (streamer_read_tree_bitfields): Adjust prototype.
7541         (streamer_pack_tree_bitfields): Likewise.
7543 2012-10-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
7545         * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Fix signed
7546         vs. unsigned warnings by using enum type for function code.
7547         (paired_expand_builtin): Likewise.
7548         (spe_expand_builtin): Likewise.
7550         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Change
7551         builtin mask, target flags masks type to HOST_WIDE_INT in
7552         preparation for growing the number of ISA switches from 31 to 63.
7554         * config/rs6000/rs6000.opt (rs6000_builtin_mask): Make mask type
7555         HOST_WIDE_INT.
7557         * config/rs6000/rs6000.c (struct builtin_description): Make
7558         builtin mask field HOST_WIDE_INT.  Make target flags field
7559         HOST_WIDE_INT in preparation for growing the # of ISA switches.
7560         (struct rs6000_builtin_info_type): Likewise.
7561         (struct rs6000_ptt): Likewise.
7562         (rs6000_builtin_mask_calculate): Likewise.
7563         (rs6000_invalid_builtin): Likewise.
7564         (rs6000_builtin_decl): Likewise.
7565         (rs6000_common_init_builtins): Likewise.
7566         (rs6000_darwin_file_start): Likewise.
7567         (rs6000_final_prescan_insn): Likewise.
7568         (rs6000_inner_target_options): Likewise.
7569         (build_target_option_node): Likewise.
7570         (rs6000_function_specific_print): Likewise.
7571         (DEBUG_FMT_W): New format for printing HOST_WIDE_INT in hex.
7573         * config/rs6000/rs6000-protos.h (rs6000_builtin_mask_calculate):
7574         Make target flags, builtin masks arguments/return values
7575         HOST_WIDE_INT in preparation for growing the number of ISA from 31
7576         to 63.
7577         (rs6000_target_modify_macros): Likewise.
7578         (rs6000_target_modify_macros_ptr): Likewise.
7580         * config/rs6000/rs6000.c (DEBUG_FMT_ID): Move "-32s" to a separate
7581         define and change DEBUG_FMT_<x> to use it.
7582         (DEBUG_FMT_D): Likewise.
7583         (DEBUG_FMT_S): Likewise.
7584         (DEBUG_FMT_X): Delete, no longer used.
7585         (DEBUG_FMT_W): Likewise.
7586         (DEBUG_FMT_WX): New debug format for printing options in a
7587         friendly fashion.
7588         (rs6000_debug_reg_global): If -mdebug=reg, print all of the
7589         options in target_flags and target_flags_explicit.  Print the
7590         default options for -mcpu=<xxx>, -mtune=<xxx>, and the default
7591         options.  Adjust printing out the builtin options.
7592         (rs6000_option_override_internal): Change printing the builtin
7593         options to use rs6000_print_builtin_options.
7594         (rs6000_function_specific_print): Change to use
7595         rs6000_print_isa_options to print ISA flags.
7596         (rs6000_print_options_internal): New function for expanded
7597         -mdebug=reg option printing to print both the ISA options, and the
7598         builtins that are enabled.
7599         (rs6000_print_isa_options): New function to print the ISA options.
7600         (rs6000_print_builtin_options): New function to print the builtin
7601         functions enabled.
7603 2012-10-10  Jakub Jelinek  <jakub@redhat.com>
7605         PR target/51109
7606         * config/i386/bdver1.md (bdver1-mult): Remove.
7608         PR middle-end/54879
7609         * combine.c (count_rtxs): Use RTX_BIN_ARITH resp. RTX_COMM_ARITH
7610         instead of '2' resp. 'c' for GET_RTX_CLASS comparisons.
7612         PR middle-end/54862
7613         * simplify-rtx.c (simplify_truncation): Compare UINTVAL instead of
7614         INTVAL of second argument with precision resp. op_precision.
7616 2012-10-10  Dodji Seketeli  <dodji@redhat.com>
7618         PR middle-end/54860 - Make sure attributes hash table is created
7619         * attribs.c (register_scoped_attributes): Ensure the attribute
7620         hash table is created.
7622 2012-10-10  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
7624         PR target/51109
7625         * config/i386/bdver1.md (bdver1_int): Automaton has been
7626         split to reduce state transitions.
7628 2012-10-10  Richard Biener  <rguenther@suse.de>
7630         PR middle-end/54876
7631         * ipa-prop.c (prune_expression_for_jf_1): New function.
7632         (prune_expression_for_jf): Clear EXPR_LOCATION for all
7633         sub-expressions as well.
7635 2012-10-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7637         * config.gcc: Enable zEC12 for with-arch and with-tune
7638         configure switches.
7639         * common/config/s390/s390-common.c (processor_flags_table): Add
7640         zEC12 entry.
7641         * config/s390/2827.md: New file.
7642         * config/s390/s390-opts.h (enum processor_type): Add
7643         PROCESSOR_2827_ZEC12.
7644         * config/s390/s390.h (enum processor_flags): Add PF_ZEC12.
7645         (TARGET_CPU_ZEC12, TARGET_ZEC12): New macro definitions.
7646         * config/s390/s390.c (zEC12_cost): New definition.
7647         (s390_option_override): Set costs for zEC12.
7648         Set parameter defaults for zEC12.
7649         (legitimate_reload_fp_constant_p): Adjust comment.
7650         (preferred_la_operand_p): Adjust comment.
7651         (s390_expand_insv): Generate insv pattern without CC clobber for zEC12.
7652         (s390_adjust_priority): Add zEC12 check.
7653         (s390_issue_rate): Return 2 for zEC12.
7654         (s390_reorg): Enable code optimizations for zEC12.
7655         (s390_sched_reorder): Reorder insns according to OOO attributes.
7656         (s390_get_sched_attrmask): New function.
7657         (s390_sched_score): New function.
7658         (s390_sched_variable_issue): Update s390_sched_state.
7659         (s390_sched_init): Reset s390_sched_state.
7660         (s390_loop_unroll_adjust): Enable for zEC12.
7661         * config/s390/s390.opt: Add zEC12 processor type value.
7662         * config/s390/s390.md: Enable mnemonic attribute.
7663         (attr cpu, cpu_facility): Add zEC12.
7664         Include 2827.md.
7665         ("*insv<mode>_zEC12", "*insv<mode>_zEC12_noshift")
7666         ("*load_and_trap<mode>"): New insn definition.
7667         ("*cmp_and_trap_unsigned_int<mode>"): Add clt and clgt.
7669 2012-10-09  David S. Miller  <davem@davemloft.net>
7671         * config/sparc/sparc.md (type attribute): Add new types 'visl'
7672         (VIS logical operation), 'vismv' (VIS move), and 'pdistn'.  Rename
7673         'fgm_pdist' to 'pdist'.
7674         (*movsi_insn): Use vismv and visl.
7675         (*movdi_insn_sp64): Likewise.
7676         (*movsf_insn): Likewise.
7677         (*movdf_insn_sp64): Likewise.
7678         (*mov<VM32:mode>_insn): Likewise, use 'fsrc2s' instead of 'fsrc1s'.
7679         (*mov<VM64:mode>_insn_sp64): Likewise, use 'fsrc2s'
7680         instead of 'fsrc1s'.
7681         (*mov<VM64:mode>_insn_sp32): Likewise, use 'fsrc2s'
7682         instead of 'fsrc1s'.
7683         (VIS logical instructions): Mark as visl.
7684         (pdist_vis): Use 'pdist'.
7685         (pditsn<mode>_vis): Use 'pdistn'.
7686         * config/sparc/ultra1_2.md: Adjust for new VIS attribute types.
7687         * config/sparc/ultra3.md: Likewise.
7688         * config/sparc/niagara.md: Likewise.
7689         * config/sparc/niagara2.md: Likewise.
7690         * config/sparc/niagara4.md: Add cpu units "n4_slot2" and
7691         "n4_load_store" for special store scheduling.  Use them in load
7692         and store reservations.  Integer divide and multiply can only
7693         issue in slot-1.  Represent 1-cycle VIS moves and 3-cycle VIS
7694         logic operations.
7696 2012-10-10  Dehao Chen  <dehao@google.com>
7698         * tree-eh.c (lower_try_finally_onedest): Set correct location for
7699         deallocator.
7700         * gimplify.c (gimplify_expr): Set correct location for TRY stmt.
7702 2012-10-10  Oleg Endo  <olegendo@gcc.gnu.org>
7704         PR target/52480
7705         * config/sh/sh.md (extv, extzv): Check that operands[3] is zero,
7706         regardless of the endianness.
7708 2012-10-09  Lawrence Crowl  <crowl@google.com>
7710         * Makefile.in (fold-const.o): Add depencence on hash-table.h.
7711         (dse.o): Likewise.
7712         (cfg.o): Likewise.
7713         * fold-const.c (fold_checksum_tree): Change to new
7714         type-safe hash table.
7715         * (print_fold_checksum): Likewise.
7716         * cfg.c (var bb_original): Likewise.
7717         * (var bb_copy): Likewise.
7718         * (var loop_copy): Likewise.
7719         * hash-table.h (template hash_table): Constify parameters for find...
7720         and remove_elt... member functions.
7721         (hash_table::empty) Correct size expression.
7722         (hash_table::clear_slot) Correct deleted entry assignment.
7723         * dse.c (var rtx_group_table): Change to new type-safe hash table.
7725 2012-10-09  Steven Bosscher  <steven@gcc.gnu.org>
7727         * basic-block. (profile_record): New struct, moved from passes.c.
7728         * cfghooks.h (struct cfg_hooks) <account_profile_record>: New hook.
7729         (account_profile_record): New prototype.
7730         * cfghooks.c (account_profile_record): New function.
7731         * tree-cfg.c (gimple_account_profile_record): New function
7732         (gimple_cfg_hooks): Add it.
7733         * cfgrtl.c (rtl_account_profile_record): New function
7734         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Add it.
7735         * passes.c (check_profile_consistency): Simplify.  Move IR-dependent
7736         code around using cfghooks machinery.
7738 2012-10-09  Oleg Endo  <olegendo@gcc.gnu.org>
7740         PR target/54760
7741         * doc/extend.texi (Target Builtins): Add SH built-in section.
7742         Document __builtin_thread_pointer and __builtin_set_thread_pointer.
7744 2012-10-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
7746         PR middle-end/53397
7747         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
7748         Perform non constant step prefetching in inner loop, only
7749         when it is invariant in the entire loop nest.
7750         * tree-ssa-loop-prefetch.c (dump_mem_details): New function to dump
7751         base, step and delta values of memeory reference analysed for
7752         prefetching.
7753         * tree-ssa-loop-prefetch.c (dump_mem_ref): Call dump_mem_details
7754         to print base, step and delta values of memory reference.
7755         * cfgloop.h (loop_outermost): New function that returns outermost
7756         loop for a given loop in a loop nest.
7758 2012-10-09  Richard Guenther  <rguenther@suse.de>
7760         PR middle-end/54837
7761         * cfgexpand.c (expand_debug_source_expr): Move checking
7762         code conditional on a found decl_debug_args vector.
7764 2012-10-09  Richard Guenther  <rguenther@suse.de>
7766         * tree-streamer.c (streamer_tree_cache_get): Move ...
7767         * tree-streamer.h (streamer_tree_cache_get): ... here as inline.
7769 2012-10-09  Jan Hubicka  <jh@suse.cz>
7771         * loop-unroll.c (unroll_loop_constant_iterations): Add
7772         update of loop->nb_iterations_upper_bound I missed in my previous
7773         commit; use TRUNC_DIV_EXPR instead of FLOOR_DIV_EXPR to divide
7774         iteration count.
7775         (decide_unroll_runtime_iterations): Avoid overflow.
7776         (unroll_loop_runtime_iterations): Use TRUNC_DIV_EXPR instead of
7777         FLOOR_DIV_EXPR to update iteration bounds.
7778         (decide_peel_simple): Avoid integer overflow when deciding
7779         on number of peelings.
7780         (decide_unroll_stupid): Likewise.
7782 2012-10-09  Tobias Burnus  <burnus@net-b.de>
7784         * lto-cgraph.c (input_node_opt_summary): Remove unused code.
7785         * lto-opts.c (append_to_collect_gcc_options): Fix condition.
7786         * lto-symtab.c (lto_cgraph_replace_node): Don't xstrdup string
7787         which is passed to fprintf.
7789 2012-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
7791         PR c++/54194
7792         * tree.h: Add EXPR_LOC_OR_LOC.
7794 2012-10-09  Nick Clifton  <nickc@redhat.com>
7796         PR rtl-optimization/54739
7797         * config/mcore/mcore.md: (anddi3, iordi3, xordi3): Delete patterns.
7799         PR target/54661
7800         * config/mcore/mcore.c (mcore_output_movedouble): Fix typo.
7802 2012-10-09  Marc Glisse  <marc.glisse@inria.fr>
7804         PR c++/54427
7805         * fold-const.c (fold_binary_loc): Use build_zero_cst instead of
7806         build_int_cst for a potential vector.
7808 2012-10-08  Uros Bizjak  <ubizjak@gmail.com>
7810         * config/i386/atom.md (atom_sse_4): Merge atom_sse_attr attibutes.
7811         (atom_sse_5): Ditto.
7813 2012-10-08  Marc Glisse  <marc.glisse@inria.fr>
7815         PR target/54400
7816         * config/i386/i386.md (type attribute): Add sseadd1.
7817         (unit attribute): Add support for sseadd1.
7818         (memory attribute): Likewise.
7819         * config/i386/athlon.md: Likewise.
7820         * config/i386/core2.md: Likewise.
7821         * config/i386/atom.md: Likewise.
7822         * config/i386/ppro.md: Likewise.
7823         * config/i386/bdver1.md: Likewise.
7824         * config/i386/sse.md (sse3_h<plusminus_insn>v2df3): Split into...
7825         (sse3_haddv2df3): ... expander.
7826         (*sse3_haddv2df3): ... define_insn. Accept permuted operands.
7827         (sse3_hsubv2df3): ... define_insn.
7828         (*sse3_haddv2df3_low): New define_insn.
7829         (*sse3_hsubv2df3_low): New define_insn.
7831 2012-10-08  Jan Hubicka  <jh@suse.cz>
7833         * loop-unswitch.c (unswitch_single_loop): Use
7834         estimated_loop_iterations_int to prevent unswitching when loop
7835         is known to not roll.
7836         * tree-ssa-loop-niter.c (estimated_loop_iterations): Do not segfault
7837         when SCEV is not initialized.
7838         (max_loop_iterations): Likewise.
7839         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Use
7840         estimated_loop_iterations_int to prevent unswithcing when
7841         loop is known to not roll.
7842         * tree-scalar-evolution.c (scev_initialized_p): New function.
7843         * tree-scalar-evolution.h (scev_initialized_p): Likewise.
7844         * loop-unroll.c (decide_peel_once_rolling): Use
7845         max_loop_iterations_int.
7846         (unroll_loop_constant_iterations): Update
7847         nb_iterations_upper_bound and nb_iterations_estimate.
7848         (decide_unroll_runtime_iterations): Use
7849         estimated_loop_iterations or max_loop_iterations;
7850         (unroll_loop_runtime_iterations): fix profile updating.
7851         (decide_peel_simple): Use estimated_loop_iterations
7852         and max_loop_iterations.
7853         (decide_unroll_stupid): Use estimated_loop_iterations
7854         ad max_loop_iterations.
7855         * loop-doloop.c (doloop_modify): Use max_loop_iterations_int.
7856         (doloop_optimize): Likewise.
7857         * loop-iv.c (iv_number_of_iterations): Use record_niter_bound.
7858         (find_simple_exit): Likewise.
7859         * cfgloop.h (struct niter_desc): Remove niter_max.
7861 2012-10-08  Marek Polacek  <polacek@redhat.com>
7863         PR debug/54831
7864         * var-tracking.c (vt_add_function_parameter): Use condition instead
7865         of gcc_assert.
7867 2012-10-08  Dehao Chen  <dehao@google.com>
7869         * predict.c (predict_loops): Predict for short-circuit conditions.
7870         (predict_extra_loop_exits): New Function.
7872 2012-10-08  Steven Bosscher  <steven@gcc.gnu.org>
7874         * bitmap.h (bitmap_and_into): Update prototype.
7875         * bitmap.c (bitmap_and_into): Return true if the target bitmap
7876         changed, false otherwise.
7878         * df.h (df_dump_insn_problem_function): New function type.
7879         (struct df_problem): Add two functions, to dump just before and
7880         just after an insn.
7881         (DF_RD_PRUNE_DEAD_DEFS): New changable flag.
7882         (df_dump_insn_top, df_dump_insn_bottom): New prototypes.
7883         * df-core (df_dump_region): Use dump_bb.
7884         (df_dump_bb_problem_data): New function.
7885         (df_dump_top, df_dump_bottom): Rewrite using df_dump_bb_problem_data.
7886         (df_dump_insn_problem_data): New function.
7887         (df_dump_insn_top, df_dump_insn_bottom): New functions.
7888         * df-scan.c (problem_SCAN): Add NULL fields for new members.
7889         * df-problems.c (df_rd_local_compute): Ignore hard registers if
7890         DF_NO_HARD_REGS is in effect.
7891         (df_rd_transfer_function): If DF_RD_PRUNE_DEAD_DEFS is in effect,
7892         prune reaching defs using the LR problem.
7893         (df_rd_start_dump): Fix dumping of DEFs map.
7894         (df_rd_dump_defs_set): New function.
7895         (df_rd_top_dump, df_rd_bottom_dump): Use it.
7896         (problem_RD): Add NULL fields for new members.
7897         (problem_LR, problem_LIVE): Likewise.
7898         (df_chain_bb_dump): New function.
7899         (df_chain_top_dump): Dump only for artificial DEFs and USEs,
7900         using df_chain_bb_dump.
7901         (df_chain_bottom_dump): Likewise.
7902         (df_chain_insn_top_dump, df_chain_insn_bottom_dump): New functions.
7903         (problem_CHAIN): Add them as new members.
7904         (problem_WORD_LR, problem_NOTE): Add NULL fields for new members.
7905         (problem_MD): Likewise.
7906         * cfgrtl.c (rtl_dump_bb): Use df_dump_insn_top and df_dump_insn_bottom.
7907         (print_rtl_with_bb): Likewise.
7909         * dce.c (init_dce): Use DF_RD_PRUNE_DEAD_DEFS.
7910         * loop-invariant.c (find_defs): Likewise.
7911         * loop-iv.c (iv_analysis_loop_init): Likewise.
7912         * ree.c (find_and_remove_re): Likewise.
7913         * web.c (web_main): Likewise.
7915 2012-10-08  Jason Merrill  <jason@redhat.com>
7917         * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
7918         ASM_WEAKEN_DECL with #if RS6000_WEAK.
7920 2012-10-08  Richard Guenther  <rguenther@suse.de>
7922         PR tree-optimization/54825
7923         * tree-ssa-sccvn.c (vn_nary_length_from_stmt): Handle BIT_FIELD_REF.
7924         (init_vn_nary_op_from_stmt): Likewise.
7925         * tree-ssa-pre.c (compute_avail): Use vn_nary_op_lookup_stmt.
7926         * tree-ssa-sccvn.h (sizeof_vn_nary_op): Avoid overflow.
7928 2012-10-08  Richard Guenther  <rguenther@suse.de>
7930         * tree-ssa-pre.c (postorder_num): New global.
7931         (compute_antic): Initialize all blocks and adjust for
7932         generic postorder.
7933         (my_rev_post_order_compute): Remove.
7934         (init_pre): Use inverted_post_order_compute.
7936 2012-10-08  Bernd Schmidt  <bernds@codesourcery.com>
7938         * sched-int.h (schedule_block): Adjust declaration.
7939         * sched-rgn.c (bb_state_array, bb_state): New static variables.
7940         (sched_rgn_init): Initialize them.
7941         (sched_rgn_free): Free them.
7942         (schedule_region): Save scheduling state for future blocks, and
7943         pass such state to schedule_block.
7944         * params.def (PARAM_SCHED_STATE_EDGE_PROB_CUTOFF): New.
7945         * doc/invoke.texi (--param): Document it.
7946         * haifa-sched.c (schedule_block): New arg init_state.  Use it to
7947         initialize state if nonnull.  All callers changed.
7948         Call advance_one_cycle after scheduling.
7950 2012-10-08  Georg-Johann Lay  <avr@gjlay.de>
7952         PR target/54854
7953         * doc/invoke.texi (AVR Options): Remove -mshort-calls.
7954         * config/avr/avr.opt (-mshort-calls): Remove option.
7955         * config/avr/avr.h (AVR_HAVE_JMP_CALL): Don't depend on
7956         TARGET_SHORT_CALLS.
7958 2012-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
7960         PR target/54685
7961         * config/sh/sh.md (one_cmplsi2): Make insn_and_split.  Add manual
7962         combine matching for an insn sequence where a ge:SI pattern
7963         can be used.
7965 2012-10-08  Dodji Seketeli  <dodji@redhat.com>
7967         PR c++/53528 C++11 attribute support
7968         * plugin.h (register_scoped_attributes): Declare new function.
7969         * tree.h (enu attribute_flags::ATTR_FLAG_CXX_11): New flag.
7970         (lookup_scoped_attribute_spec, cxx_11_attribute_p)
7971         (get_attribute_name, get_attribute_namespace): Declare new functions.
7972         (struct attribute_spec): Remove const qualifier from the members.
7973         * tree.c (comp_type_attributes, private_lookup_attribute)
7974         (lookup_ident_attribute, remove_attribute, merge_attribute)
7975         (attribute_hash_list, attribute_list_contained): Use
7976         get_attribute_name.
7977         * attribs.c (decl_attributes): Don't crash on error_mark_node.
7978         Forbid c++11 attributes appertaining to type-specifiers.
7979         (attribute_hash): Remove global variable.
7980         (attributes_table): New global variable.
7981         (find_attribute_namespace, register_scoped_attribute): New static
7982         functions.
7983         (register_scoped_attributes, lookup_scoped_attribute_spec)
7984         (cxx11_attribute_p, get_attribute_name, get_attribute_namespace):
7985         New public functions.
7986         (init_attributes): Register all the GNU attributes into the "gnu"
7987         namespace.
7988         (register_attribute): Use register_scoped_attribute to register
7989         the attribute into the "gnu" namespace.
7990         (lookup_attribute_spec): Use lookup_scoped_attribute_spec to
7991         lookup the attribute in the "gnu" namespace.
7992         (decl_attributes): Use new get_attribute_namespace and
7993         lookup_scoped_attribute_spec to consider attribute namespaces when
7994         looking up attributes.  When operating in c++-11 mode, pass flag
7995         ATTR_FLAG_CXX11 to the spec handler.
7997 2012-10-08  Georg-Johann Lay  <avr@gjlay.de>
7999         PR target/54815
8000         * config/avr/avr.md (*add<mode>3, add<mode>3, addpsi3): Make
8001         constraint alternative "r,0,r" slighly more expensive.
8002         (sub<mode>3, andqi3, andhi3, andpsi3, andsi3): Ditto.
8003         (iorqi3, iorhi3, iorpsi3, iorsi3): Ditto.
8004         (xorhi3, xorpsi3, xorsi3): Ditto.
8006 2012-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
8008         PR target/54760
8009         * config/sh/sh.md (*mov<mode>_gbr_load, *mov<mode>_gbr_store): New
8010         insns and accompanying unnamed splits.
8011         * config/sh/predicates.md (general_movsrc_operand,
8012         general_movdst_operand): Reject GBR addresses.
8013         * config/sh/sh-protos.h (sh_find_equiv_gbr_addr): New declaration.
8014         * config/sh/sh.c (sh_address_cost, sh_legitimate_address_p,
8015         sh_secondary_reload): Handle GBR addresses.
8016         (base_reg_disp): New class.
8017         (sh_find_base_reg_disp, sh_find_equiv_gbr_addr): New functions.
8019 2012-10-08  Hans-Peter Nilsson  <hp@bitrange.com>
8021         * config/mmix/mmix.c (mmix_output_octa): Don't assume
8022         HOST_WIDEST_INT_PRINT_HEX starts with "0x".  Instead use
8023         HOST_WIDE_INT_PRINT_HEX_PURE, falling back to
8024         HOST_WIDEST_INT_PRINT_UNSIGNED.
8026 2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
8028         * machmode.h (GET_MODE_UNIT_PRECISION): New macro.
8029         * simplify-rtx.c (simplify_truncation): New function,
8030         extracted from simplify_subreg and (in small part) from
8031         simplify_unary_operation_1.
8032         (simplify_unary_operation_1) <TRUNCATE>: Use it.  Remove sign bit
8033         test for !TRULY_NOOP_TRUNCATION_MODES_P.
8034         (simplify_subreg): Use simplify_truncate for lowpart subregs
8035         where both the inner and outer modes are scalar integers.
8036         * config/mips/mips.c (mips_truncated_op_cost): New function.
8037         (mips_rtx_costs): Adjust test for BADDU.
8038         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
8040 2012-10-07  Jan Hubicka  <jh@suse.cz>
8042         * ipa-inline-analysis.c (do_estimate_edge_time): Return actual
8043         time spent by the inlined sequence.
8044         (do_estimate_edge_growth): Rename to ...
8045         (do_estimate_edge_time): ... this one; return size of inlined sequence.
8046         * ipa-inline.h (do_estimate_edge_size): New.
8047         (do_estimate_edge_growth): Remove.
8048         (estimate_edge_size): New function.
8049         (estimate_edge_growth): Use it.
8051 2012-10-07  Jan Hubicka  <jh@suse.cz>
8053         * lto-cgraph.c (lto_symtab_encoder_new): New parameter FOR_INPUT.
8054         (lto_symtab_encoder_delete): Update.
8055         (lto_symtab_encoder_encode): Update.
8056         (compute_ltrans_boundary): Update.
8057         (input_symtab): Update.
8058         * lto-streamer.h (lto_symtab_encoder_new): Update.
8060 2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
8062         * config/mips/mips-protos.h (mips_split_type): New enum.
8063         (mips_split_64bit_move_p, mips_split_doubleword_move): Delete.
8064         (mips_split_move_p, mips_split_move, mips_split_move_insn_p)
8065         (mips_split_move_insn): Declare.
8066         * config/mips/mips.c (mips_tuning_info): New variable.
8067         (mips_load_store_insns): Use mips_split_move_insn_p instead of
8068         mips_split_64bit_move_p.
8069         (mips_emit_move_or_split, mips_mult_move_p): New functions.
8070         (mips_split_64bit_move_p): Rename to...
8071         (mips_split_move_p): ...this and take a mips_split_type argument.
8072         Generalize to all moves.  Call mips_mult_move_p.
8073         (mips_split_doubleword_move): Rename to...
8074         (mips_split_move): ...this and take a mips_split_type argument.
8075         Assert that mips_split_move_p holds.
8076         (mips_insn_split_type, mips_split_move_insn_p, mips_split_move_insn):
8077         New functions.
8078         (mips_output_move): Use mips_split_move_p instead of
8079         mips_split_64bit_move_p.  Handle MULT $0, $0 moves.
8080         (mips_save_reg): Use mips_emit_move_or_split.
8081         (mips_sim_reset): Assign to curr_state.  Call targetm.sched.init
8082         and advance_state.
8083         (mips_sim_init): Call targetm.sched.init_dfa_pre_cycle_insn and
8084         targetm.sched.init_dfa_post_cycle_insn, if defined.
8085         (mips_sim_next_cycle): Assign to curr_state.  Use advance_state
8086         instead of state_transition.
8087         (mips_sim_issue_insn): Assign to curr_state.  Use
8088         targetm.sched.variable_issue to see how many more insns can be issued.
8089         (mips_seq_time, mips_mult_zero_zero_cost)
8090         (mips_set_fast_mult_zero_zero_p, mips_set_tuning_info)
8091         (mips_expand_to_rtl_hook): New functions.
8092         (TARGET_EXPAND_TO_RTL_HOOK): Define.
8093         * config/mips/mips.md (move_type): Add imul.
8094         (type): Map imul move_types to imul.
8095         (*movdi_32bit, *movti): Add imul alternatives.
8096         Use mips_split_move_insn_p and mips_split_move_insn instead of
8097         mips_split_64bit_move_p and mips_split_doubleword_move in move
8098         splitters.
8100 2012-10-06  Segher Boessenkool  <segher@kernel.crashing.org>
8102         * config/rs6000/rs6000.c (print_operand) ['A']: Delete.
8104 2012-10-06  Paolo Carlini  <paolo.carlini@oracle.com>
8106         PR c++/52764
8107         * ginclude/stdint-wrap.h: In C++11 if __STDC_HOSTED__ define
8108         __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS.
8109         * ginclude/stdint-gcc.h: In C++11 unconditionally define
8110         limit and constant macros.
8112 2012-10-06  Paolo Carlini  <paolo.carlini@oracle.com>
8114         PR c++/54249
8115         * ginclude/stddef.h: In C++11 mode declare nullptr_t in the global
8116         namespace.
8118 2012-10-06  Jan Hubicka  <jh@suse.cz>
8120         PR lto/53831
8121         PR lto/54776
8122         * lto-streamer-out.c (produce_symtab): Cleanup; drop v1 API hack.
8124 2012-10-06  Dehao Chen  <dehao@google.com>
8126         PR debug/54826
8127         * gimple-low.c (lower_stmt): Set the block for call args.
8129 2012-10-06  Jan Hubicka  <jh@suse.cz>
8131         * doc/invoke.texi (-fprofile-report): Document.
8132         * common.opt (-fprofile-report): New option.
8133         * toplev.c (finalize): Call dump_profile_report.
8134         * toplev.h (profile_report): Declare.
8135         * passes.c (profile_record): New static var.
8136         (check_profile_consistency): New function.
8137         (dump_profile_record): New function.
8138         (execute_one_ipa_transform_pass): Call check_profile_consistency.
8139         (execute_one_pass): Likewise.
8141 2012-10-06  Jan Hubicka  <jh@suse.cz>
8143         PR lto/54790
8144         * lto-streamer.h (lto_symtab_register_decl, lto_symtab_get_resolution,
8145         lto_mark_nothrow_fndecl, lto_fixup_nothrow_decls): Remove.
8146         * lto-symtab.c (lto_symtab_register_decl): Remove.
8148 2012-10-06  Andreas Schwab  <schwab@linux-m68k.org>
8150         PR rtl-optimization/54739
8151         * config/m68k/m68k.md (anddi3, iordi3, xordi3, one_cmpldi2): Remove.
8153 2012-10-06  Oleg Endo  <olegendo@gcc.gnu.org>
8155         PR target/54760
8156         * config/sh/sh.md (define_constants): Add UNSPECV_GBR.
8157         (get_thread_pointer, set_thread_pointer): New expanders.
8158         (load_gbr): Rename to store_gbr.  Remove GBR_REG use.
8159         (store_gbr): New insn.
8160         * config/sh/sh.c (prepare_move_operands): Use gen_store_gbr instead of
8161         gen_load_gbr in TLS_MODEL_LOCAL_EXEC case.
8162         (sh1_builtin_p): New function.
8163         (signature_args): Add SH_BLTIN_VP.
8164         (bdesc): Add __builtin_thread_pointer and __builtin_set_thread_pointer.
8166 2012-10-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8168         PR rtl-optimization/54739
8169         * config/pa/pa.md: Remove DImode and, not and, ior and xor patterns
8170         for 32-bit targets.  Adjust expanders.
8172         * config/pa/pa.md: Adjust unamed HImode add insn pattern.
8174 2012-10-05  Oleg Endo  <olegendo@gcc.gnu.org>
8176         * config/sh/sh.c (builtin_description): Add is_enabled member.
8177         (shmedia_builtin_p): New function.
8178         (bdesc): Use shmedia_builtin_p for existing built-ins.
8179         (sh_media_init_builtins, sh_init_builtins): Merge into single function
8180         sh_init_builtins.  Add is_enabled checking.  Move variable declarations
8181         to where they are actually used.
8182         (sh_media_builtin_decl, sh_builtin_decl): Merge into single function
8183         sh_builtin_decl.  Add is_enabled checking.
8184         (sh_expand_builtin): Move variable declarations to where they are
8185         actually used.
8187 2012-10-05  Jakub Jelinek  <jakub@redhat.com>
8189         * tree-inline.c (expand_call_inline): Move VAR_DECLs with
8190         PARM_DECL origins from remapped DECL_INITIAL's BLOCK_VARS
8191         into id->block's BLOCK_VARS.
8193         PR debug/54519
8194         * ipa-split.c (split_function): Add debug args and debug source
8195         and normal stmts for args_to_skip which are gimple regs.
8196         * tree-inline.c (copy_debug_stmt): When inlining, adjust source
8197         debug bind stmts to debug binds of corresponding DEBUG_EXPR_DECL.
8199 2012-10-05  Georg-Johann Lay  <avr@gjlay.de>
8201         * config/avr/avr.md: Fix indentations of insn C snippets.
8203 2012-10-05  Richard Guenther  <rguenther@suse.de>
8205         PR middle-end/54811
8206         * tree-ssa-live.c (clear_unused_block_pointer_1): Look at
8207         DECL_DEBUG_EXPR again.
8209 2012-10-05  Jan Hubicka  <jh@suse.cz>
8210             Jakub Jelinek  <jakub@redhat.com>
8212         PR tree-optimization/33763
8213         * tree-inline.c (expand_call_inline): Silently ignore always_inline
8214         attribute for redefined extern inline functions.
8216 2012-10-04  Jan Hubicka  <jh@suse.cz>
8218         * tree-vectorizer.h (vect_estimate_min_profitable_iters): Remove.
8219         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Declare here.
8220         (vect_analyze_loop_operations): Use loop count estimate to rule out
8221         unprofitable vectorization.
8222         (vect_estimate_min_profitable_iters): Return
8223         ret_min_profitable_estimate.
8225 2012-10-05  Jakub Jelinek  <jakub@redhat.com>
8227         PR tree-optimization/54810
8228         * tree-vrp.c (register_edge_assert_for_2): Handle
8229         NAME = (unsigned) NAME2; if (NAME cmp CST) for
8230         narrowing casts to unsigned integral type like
8231         NAME = NAME2 & CST2; if (NAME cmp CST) where CST2
8232         is the max value of the unsigned integral type.
8234 2012-10-04  Jeff Law  <law@redhat.com>
8236         PR target/50356
8237         * config/h8300/h8300.c (h8300_rtx_costs): Fix typo in CONST_INT case.
8239 2012-10-04  Jason Merrill  <jason@redhat.com>
8241         * config/rs6000/rs6000.c (rs6000_code_end): Protect the use of
8242         ASM_WEAKEN_DECL with #if RS6000_WEAK.
8244 2012-10-04  Basile Starynkevitch  <basile@starynkevitch.net>
8246         * gengtype.c (walk_type): Emit mark_hook when inside a
8247         struct of a union member.
8249 2012-10-04  Georg-Johann Lay  <avr@gjlay.de>
8251         * config/avr/predicates.md (flash_operand): New predicate.
8252         * config/avr/avr.md (reload_in<mode>): Use it in operand 1 instead
8253         of memory_operand.
8255 2012-10-04  Tobias Burnus  <burnus@net-b.de>
8257         * gcc.c (record_temp_file, add_sysrooted_prefix, process_command,
8258         do_self_spec, compare_debug_dump_opt_spec_function): Plug memleaks.
8259         (do_spec_1): Ditto, fix out-of-bound access.
8260         * opts.c (common_handle_option): Plug memleak.
8262 2012-10-04  Jason Merrill  <jason@redhat.com>
8264         * config/darwin.c (darwin_assemble_visibility): Treat
8265         VISIBILITY_INTERNAL as hidden.
8267         * config/darwin-c.c (find_subframework_file): Add missing const.
8268         (framework_construct_pathname): Likewise.
8270 2012-10-04  Florian Weimer  <fweimer@redhat.com>
8272         * doc/cpp.texi (Pragmas): Document #pragma GCC warning, #pragma
8273         GCC error.
8275 2012-10-04  Richard Guenther  <rguenther@suse.de>
8277         PR middle-end/54735
8278         * tree-ssa-pre.c (do_pre): Make sure to update virtual SSA form before
8279         cleaning up the CFG.
8281 2012-10-04  Richard Guenther  <rguenther@suse.de>
8283         PR lto/47799
8284         * tree-streamer-out.c (write_ts_block_tree_pointers): For
8285         inlined functions outer scopes write the ultimate origin
8286         as BLOCK_ABSTRACT_ORIGIN and BLOCK_SOURCE_LOCATION.
8287         Do not stream the fragment chains.
8288         * tree-streamer-in.c (lto_input_ts_block_tree_pointers): Likewise.
8289         * dwarf2out.c (gen_subprogram_die): Handle NULL DECL_INITIAL.
8290         (dwarf2out_decl): Always output DECL_ABSTRACT function decls.
8292 2012-10-04  Arnaud Charlet  <charlet@adacore.com>
8294         * dumpfile.h, dumpfile.c: Remove TDI_ada.
8296 2012-10-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
8298         * config/i386/i386.c (ix86_dep_by_shift_count_body) : Add
8299         check on reload_completed since it can be invoked before
8300         register allocation phase in pre-reload schedule.
8301         (ia32_multipass_dfa_lookahead) : Do not use dfa_lookahead for
8302         pre-reload schedule to save compile time.
8303         (ix86_sched_reorder) : Do not perform ready list reordering for
8304         pre-reload schedule to save compile time.
8305         (insn_is_function_arg) : New function. Returns true if lhs of insn is
8306         HW function argument register.
8307         (add_parameter_dependencies) : New function. Add output dependencies
8308         for chain of function adjacent arguments if only there is a move to
8309         likely spilled HW registers. Return first argument if at least one
8310         dependence was added or NULL otherwise.
8311         (avoid_func_arg_motion) : New function. Add output or anti dependency
8312         from insn to first_arg to restrict code motion.
8313         (add_dependee_for_func_arg) : New function. Avoid cross block motion of
8314         function argument through adding dependency from the first non-jump
8315         insn in bb.
8316         (ix86_dependencies_evaluation_hook) : New function. Hook for
8317         pre-reload schedule: avoid motion of function arguments passed in
8318         likely spilled HW registers.
8319         (ix86_adjust_priority) : New function. Hook for pre-reload schedule:
8320         set priority of moves from likely spilled HW registers to maximum to
8321         schedule them as soon as possible.
8322         (ix86_sched_init_global): Do not perform multipass scheduling for
8323         pre-reload schedule to save compile time.
8325 2012-10-04  Uros Bizjak  <ubizjak@gmail.com>
8327         * configure.ac (noexception_flags): Add -fasynchronous-unwind-tables.
8328         * configure: Regenerate.
8330 2012-10-04  Kaz Kojima  <kkojima@gcc.gnu.org>
8332         * config/sh/sh.c (sh_can_use_simple_return_p): Return false for
8333         SHmedia and SHcompact using call cookie.
8334         * config/sh/sh.md (epilogue): Emit non-inlined return insns for
8335         SHmedia and SHcompact using call cookie.
8337 2012-10-03  Oleg Endo  <olegendo@gcc.gnu.org>
8339         PR target/51244
8340         * config/sh/sh.md (*mov_t_msb_neg): New insn and two accompanying
8341         unnamed split patterns.
8343 2012-10-03  Oleg Endo  <olegendo@gcc.gnu.org>
8345         PR target/50457
8346         * config/sh/sh.c (parse_validate_atomic_model_option): Handle name
8347         strings in sh_atomic_model.
8348         * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Move macro implementation
8349         to ...
8350         * config/sh/sh-c.c (sh_cpu_cpp_builtins): ... this new function.
8351         Add __SH1__ and __SH2__ defines.  Add __SH_ATOMIC_MODEL_*__ define.
8352         * config/sh/sh-protos.h (sh_atomic_model): Add name and cdef_name
8353         variables.
8354         (sh_cpu_cpp_builtins): Declare new function.
8356 2012-10-03  Dehao Chen  <dehao@google.com>
8358         PR middle-end/54782
8359         * tree-cfg.c (move_block_to_fn): Update lexical block for phi_args.
8361 2012-10-03  Vladimir Makarov  <vmakarov@redhat.com>
8363         * reginfo.c (max_regno_since_last_resize): New.
8364         (reg_preferred_class, reg_alternate_class): Add assert.
8365         (allocate_reg_info): Initialize allocated reg info.
8366         (resize_reg_info): Make bigger reg_info and initialize new memory.
8367         (reginfo_init): Initialize max_regno_since_last_resize.
8368         (setup_reg_classes): Change assert.
8370 2012-10-03  Andrew W. Nosenko <andrew.w.nosenko@gmail.com>
8372         * config/i386/driver-i386.c (host_detect_local_cpu): Fix logic
8373         in SSE and YMM state support check for -march=native.
8375 2012-10-03  Nick Clifton  <nickc@redhat.com>
8377         * config/rx/rx.c (struct decl_chain): New local structure.
8378         (warned_decls): New local variable.  Contains a stack of decls for
8379         which warnings have been issued.
8380         (add_warned_decl): Adds a decl to the stack.
8381         (already_warned): Returns true if a given decl is on the stack.
8382         (rx_set_current_function): Issue a warning if multiple fast
8383         interrupt handlers are defined.
8384         * config/rx/rx.opt (mwarn-multiple-fast-interrupts): New option.
8385         * doc/invoke.texi: Document the option.
8387 2012-10-03  Mark Kettenis  <kettenis@openbsd.org>
8389         * config.gcc (*-*-openbsd4.[3-9]|*-*-openbsd[5-9]*): Set
8390         default_use_cxa_atexit to yes.
8392 2012-10-03  Jakub Jelinek  <jakub@redhat.com>
8394         PR rtl-optimization/54792
8395         * sched-deps.c (find_modifiable_mems): Scan also TAIL insn.
8397 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
8399         PR target/54785
8400         * doc/invoke.texi: Document -mprefer-avx128.
8402 2012-10-02  Andrew Pinski  <apinski@cavium.com>
8404         * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
8405         Don't optimize a truncate of a mem if it is a vector mode.
8407 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
8409         PR debug/54551
8410         * Makefile.in (VALTRACK_H): Add hash-table.h.
8411         * valtrack.h: Include hash-table.h.
8412         (struct dead_debug_global_entry): New.
8413         (struct dead_debug_hash_descr): New.
8414         (struct dead_debug_global): New.
8415         (struct dead_debug): Rename to...
8416         (struct dead_debug_local): ... this.  Adjust all uses.
8417         (dead_debug_global_init, dead_debug_global_finish): New.
8418         (dead_debug_init): Rename to...
8419         (dead_debug_local_init): ... this.  Adjust all callers.
8420         (dead_debug_finish): Rename to...
8421         (dead_debug_local_finish): ... this.  Adjust all callers.
8422         * valtrack.c (dead_debug_global_init): New.
8423         (dead_debug_init): Rename to...
8424         (dead_debug_local_init): ... this.  Take global parameter.
8425         Save it and initialize used bitmap from it.
8426         (dead_debug_global_find, dead_debug_global_insert): New.
8427         (dead_debug_global_replace_temp): New.
8428         (dead_debug_promote_uses): New.
8429         (dead_debug_finish): Rename to...
8430         (dead_debug_local_finish): ... this.  Promote remaining uses.
8431         (dead_debug_global_finish): New.
8432         (dead_debug_add): Try to replace global temps first.
8433         (dead_debug_insert_temp): Support global replacements.
8434         * dce.c (word_dce_process_block, dce_process_block): Add
8435         global_debug parameter.  Pass it on.
8436         (fast_dce): Initialize, pass on and finalize global_debug.
8437         * df-problems.c (df_set_unused_notes_for_mw): Adjusted.
8438         (df_create_unused_notes, df_note_bb_compute): Likewise.
8439         (df_note_compute): Justify local-only dead debug analysis.
8441 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
8443         PR debug/53135
8444         * dwarf2out.c (value_format): Use block4 for dw_val_class_loc
8445         when needed.
8447 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
8449         PR debug/54177
8450         * var-tracking.c (vt_add_function_parameter): Bail if
8451         var_lowpart fails.
8453 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
8455         PR target/54741
8456         * config/i386/driver-i386.c (XCR_XFEATURE_ENABLED_MASK): New.
8457         (XSTATE_FP): Likewise.
8458         (XSTATE_SSE): Likewise.
8459         (XSTATE_YMM): Likewise.
8460         (host_detect_local_cpu): Disable AVX, AVX2, FMA, FMA4 and XOP if
8461         SSE and YMM states aren't supported.
8463 2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
8465         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
8466         (*baddu_si): ...this new pattern.
8468 2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
8470         * ira-int.h (target_ira_int): Add x_ira_useful_class_mode_regs.
8471         (ira_useful_class_mode_regs): New macro.
8472         * ira.c (clarify_prohibited_class_mode_regs): Set up
8473         ira_useful_class_mode_regs.
8474         * ira-color.c (setup_profitable_hard_regs): Use it to initialise
8475         profitable_hard_regs.
8477 2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
8479         * ira.h (target_ira): Add x_ira_class_singleton.
8480         (ira_class_singleton): New macro.
8481         * ira.c (setup_prohibited_class_mode_regs): Set up ira_class_singleton.
8482         * ira-build.c (update_conflict_hard_reg_costs): Use
8483         ira_class_singleton to check for classes with a single
8484         allocatable register.
8485         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Likewise.
8486         (single_reg_class): Likewise.  When more than one class is specified,
8487         check whether they have the same singleton register.
8488         (process_single_reg_class_operands): Require single_reg_class
8489         to return NO_REGS or a class with a single allocatable register.
8490         Obtain that register from ira_class_singleton.
8492 2012-10-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
8494         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8495         -mcpu=<xxx> is not specified and the compiler is not configured
8496         using --with-cpu=<xxx>, use the bits from the TARGET_DEFAULT to
8497         set the initial options.
8499 2012-10-02  Sharad Singhai  <singhai@google.com>
8501         PR testsuite/54772
8502         * tree-vect-stmts.c (vectorizable_operation): Add missing return.
8504 2012-10-02  David Edelsohn  <dje.gcc@gmail.com>
8506         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
8507         set TARGET_ALTIVEC_VRSAVE for TARGET_ELF.
8508         (rs6000_stack_info): Only set vrsave_mask if TARGET_ALTIVEC_VRSAVE.
8510 2012-10-02  Jakub Jelinek  <jakub@redhat.com>
8512         PR tree-optimization/54713
8513         * expr.c (categorize_ctor_elements_1): Don't assume purpose is
8514         non-NULL.
8515         * tree-cfg.c (verify_gimple_assign_single): Add verification of
8516         vector CONSTRUCTORs.
8517         * tree-ssa-sccvn.c (vn_reference_lookup_3): For VECTOR_TYPE
8518         CONSTRUCTORs, don't do anything if element type is VECTOR_TYPE,
8519         and don't check index.
8520         * tree-vect-slp.c (vect_get_constant_vectors): VIEW_CONVERT_EXPR ctor
8521         elements first if their type isn't compatible with vector element type.
8523 2012-10-02  Eric Botcazou  <ebotcazou@adacore.com>
8525         * tree.h (DECL_NONLOCAL_FRAME): New macro.
8526         * tree-nested.c (get_frame_type): Set DECL_NONLOCAL_FRAME.
8527         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Stream in
8528         DECL_NONLOCAL_FRAME flag.
8529         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Stream out
8530         DECL_NONLOCAL_FRAME flag.
8532 2012-10-02  Marc Glisse  <marc.glisse@inria.fr>
8534         * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
8535         boolean_type_node for vectors.
8537 2012-10-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8539         * config/rs6000/rs6000.c (toplevel): Include dumpfile.h.
8540         (rs6000_density_test): Rework to accommodate 09-30 change by
8541         Sharad Singhai.
8543         * config/rs6000/t-rs6000 (rs6000.o): Add dumpfile.h dependency.
8545 2012-10-01  Dehao Chen  <dehao@google.com>
8547         PR middle-end/54759
8548         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Use
8549         LOCATION_LOCUS to compare with UNKNOWN_LOCATION.
8550         (slpeel_tree_peel_loop_to_edge): Likewise.
8551         * tree-vectorizer.c (vectorize_loops): Likewise.
8553 2012-10-01  Andrew MacLeod  <amacleod@redhat.com>
8555         PR target/54087
8556         * optabs.c (expand_atomic_fetch_op_no_fallback): New.  Factored code
8557         from expand_atomic_fetch_op.
8558         (expand_atomic_fetch_op):  Try atomic_{add|sub} operations in terms of
8559         the other one if direct opcode fails.
8561 2012-10-01  Uros Bizjak  <ubizjak@gmail.com>
8563         PR rtl-optimization/54457
8564         * simplify-rtx.c (simplify_subreg):
8565         Simplify (subreg:M (op:N ((x:N) (y:N)), 0)
8566         to (op:M (subreg:M (x:N) 0) (subreg:M (x:N) 0)), where
8567         the outer subreg is effectively a truncation to the original mode M.
8569 2012-10-01  Richard Guenther  <rguenther@suse.de>
8571         * builtins.def (ATTR_MATHFN_FPROUNDING): Do not use no-vops
8572         with -frounding-math.
8573         * builtin-attrs.def (ATTR_PURE_NOTHROW_NOVOPS_LIST): Remove.
8574         (ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST): Likewise.
8576 2012-10-01  Eric Botcazou  <ebotcazou@adacore.com>
8578         * tree.h (copy_mem_ref_info): Delete.
8579         * tree-ssa-address.c (copy_mem_ref_info): Likewise.
8580         (maybe_fold_tmr): Copy flags manually.
8581         * tree-ssa-loop-im.c (simple_mem_ref_in_stmt): Rewrite.
8583 2012-10-01  Marc Glisse  <marc.glisse@inria.fr>
8585         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8586         Detect the identity.
8587         <VEC_CONCAT>: Handle VEC_SELECTs from the same vector.
8589 2012-10-01  Oleg Endo  <olegendo@gcc.gnu.org>
8591         PR target/50457
8592         * config/sh/sh.opt (matomic-model): New option.
8593         (msoft-atomic): Mark as deprecated and alias to
8594         matomic-model=soft-gusa.
8595         (mhard-atomic): Delete.
8596         * config/sh/predicates.md (gbr_displacement): New predicate.
8597         * config/sh/sh-protos.h (sh_atomic_model): New struct.
8598         (selected_atomic_model): New declaration.
8599         (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT, TARGET_ATOMIC_SOFT_GUSA,
8600         TARGET_ATOMIC_HARD_LLCS, TARGET_ATOMIC_SOFT_TCB,
8601         TARGET_ATOMIC_SOFT_TCB_GBR_OFFSET_RTX, TARGET_ATOMIC_SOFT_IMASK):
8602         New macros.
8603         * config/sh/linux.h (SUBTARGET_OVERRIDE_OPTIONS): Adapt setting to
8604         default atomic model.
8605         * config/sh/sh.c (selected_atomic_model_): New global variable.
8606         (selected_atomic_model, parse_validate_atomic_model_option): New
8607         functions.
8608         (sh_option_override): Replace atomic selection checks with call to
8609         parse_validate_atomic_model_option.
8610         * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
8611         UNSUPPORTED_HARD_ATOMIC_CPU): Delete.
8612         (DRIVER_SELF_SPECS): Remove atomic checks.
8613         config/sh/sync.md: Update documentation comments.
8614         (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
8615         atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
8616         atomic_<fetchop_name>_fetch<mode>, atomic_nand_fetch<mode>): Use
8617         TARGET_ATOMIC_ANY as condition.  Add TARGET_ATOMIC_STRICT check for
8618         SH4A case.  Handle new TARGET_ATOMIC_SOFT_TCB and
8619         TARGET_ATOMIC_SOFT_IMASK cases.
8620         (atomic_test_and_set): Handle new TARGET_ATOMIC_SOFT_TCB and
8621         TARGET_ATOMIC_SOFT_IMASK cases.
8622         (atomic_compare_and_swapsi_hard, atomic_exchangesi_hard,
8623         atomic_fetch_<fetchop_name>si_hard, atomic_fetch_nandsi_hard,
8624         atomic_<fetchop_name>_fetchsi_hard, atomic_nand_fetchsi_hard):
8625         Add TARGET_ATOMIC_STRICT check.
8626         (atomic_compare_and_swap<mode>_hard, atomic_exchange<mode>_hard,
8627         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nand<mode>_hard,
8628         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetch<mode>_hard,
8629         atomic_test_and_set_hard): Use TARGET_ATOMIC_HARD_LLCS condition.
8630         (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
8631         atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
8632         atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
8633         atomic_test_and_set_soft): Append _gusa to the insn names and use
8634         TARGET_ATOMIC_SOFT_GUSA as condition.
8635         (atomic_compare_and_swap<mode>_soft_tcb,
8636         atomic_exchange<mode>_soft_tcb,
8637         atomic_fetch_<fetchop_name><mode>_soft_tcb,
8638         atomic_fetch_nand<mode>_soft_tcb,
8639         atomic_<fetchop_name>_fetch<mode>_soft_tcb,
8640         atomic_nand_fetch<mode>_soft_tcb, atomic_test_and_set_soft_tcb):
8641         New insns.
8642         (atomic_compare_and_swap<mode>_soft_imask,
8643         atomic_exchange<mode>_soft_imask,
8644         atomic_fetch_<fetchop_name><mode>_soft_imask,
8645         atomic_fetch_nand<mode>_soft_imask,
8646         atomic_<fetchop_name>_fetch<mode>_soft_imask,
8647         atomic_nand_fetch<mode>_soft_imask, atomic_test_and_set_soft_imask):
8648         New insns.
8649         * doc/invoke.texi (SH Options): Document new matomic-model option.
8650         Remove msoft-atomic and mhard-atomic options.
8652 2012-10-01  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8654         PR target/54746
8655         * config/s390/s390.c (s390_option_override): Add missing break.
8657 2012-09-30  Sharad Singhai  <singhai@google.com>
8659         * dumpfile.c: New file with parts moved from tree-dump.c.
8660         (pflags): New variable.
8661         (alt_flags): Ditto.
8662         (alt_dump_file): Ditto.
8663         (dump_files):  Update to include additional fields.
8664         (struct dump_option_value_info): Add additional entries.
8665         (get_dump_file_name): Use command line filename if available.
8666         (dump_open_alternate_stream): New function.
8667         (dump_loc): Ditto.
8668         (dump_gimple_stmt): Ditto.
8669         (dump_gimple_stmt_loc): Ditto.
8670         (dump_generic_expr): Ditto.
8671         (dump_generic_expr_loc): Ditto.
8672         (dump_printf): Ditto.
8673         (dump_printf_loc): Ditto.
8674         (dump_start): Ditto.
8675         (dump_finish): Ditto.
8676         (dump_begin): Ditto.
8677         (dump_enabled_p): Return true if either of the dump types is enabled.
8678         (dump_initialized_p): Return true if either type of dump is
8679         initialized.
8680         (dump_end): Do not close standard streams.
8681         (dump_enable_all): Handle filenames for regular dumps.
8682         (dump_switch_p_1): Handle command-line dump filenames.
8683         (opt_info_enable_all): New function.
8684         (opt_info_switch_p_1): Ditto.
8685         (opt_info_switch_p): Ditto.
8686         (dump_kind_p): Ditto.
8687         (dump_basic_block): Ditto.
8688         (dump_combine_total_stats): Ditto.
8689         (dump_remap_tree_vectorizer_verbose): Ditto.
8690         * gimple-pretty-print.h: Rename dump_gimple_stmt to
8691         pp_gimple_stmt_1.  All callers updated.
8693 2012-09-30  Sharad Singhai  <singhai@google.com>
8695         * doc/invoke.texi: Add documentation for the new -fopt-info option.
8696         * tree-dump.c: Move general dump file related functionality into
8697         dumpfile.c. Remove unneeded headers.
8698         * tree-dump.h: Move function declarations into dumpfile.h.
8699         * dumpfile.h: Include "line-map.h". Add defines for MSG flags.
8700         (struct dump_file_info): Move here from tree-dump.c.  Rename flags
8701         to pflags, state to pstate, stream to pstream, filename to
8702         pfilename. All callers updated. Add alt_flags, alt_state,
8703         alt_filenmae, alt_stream.
8704         * tree-vectorizer.c: Include "dumpfile.h". Remove vect_dump.
8705         (vect_set_dump_settings): Remove.
8706         (vect_print_dump_info): Ditto.
8707         * tree-vectorizer.h: Remove declaration of vect_dump and
8708         vect_print_dump_info.
8709         * tree-vect-loop.c: Include "dumpfile.h". Use new dump style.
8710         * tree-vect-data-refs.c: Ditto.
8711         * tree-vect-stmts.c: Ditto.
8712         * tree-vect-slp.c: Ditto.
8713         * tree-vect-patterns.c: Ditto.
8714         * tree-vect-loop-manip.c: Ditto.
8715         * opts.c (vect_set_verbosity_level): Remove.
8716         (common_handle_option): Handle -fopt-info flag. Deprecate
8717         -ftree-vectorizer-verbose.
8718         * tree-parloops.c (gather_scalar_reductions): Remove reference to
8719         vect_dump.
8720         * flag-types.h: Remove vect_verbosity_levels.
8721         * common.opt: Add -fopt-info. Deprecate -ftree-vectorizer-verbose.
8722         * opts-global.c (dump_remap_tree_vectorizer_verbose): New function.
8723         (handle_common_deferred_options): Handle -fopt-info and
8724         -ftree-vectorizer-verbose.
8725         * Makefile.in: Add dumpfile.o.
8726         (tree-dump.o): Update dependencies.
8727         (tree-vect-loop.o): Ditto.
8728         (tree-vect-loop-manip.o): Ditto.
8729         (tree-vect-slp.o): Ditto.
8730         (tree-vect-stmts.o): Ditto.
8731         (tree-vectorizer.o): Ditto.
8732         (opts.o): Ditto.
8733         * passes.c (finish_optimization_passes): Instead of using
8734         dump_begin/dump_end, use dump_start/dump_finish. Do not use dump_file.
8735         (pass_init_dump_file): Ditto.
8737 2012-09-30  Joern Rennecke  <joern.rennecke@embecosm.com>
8739         PR rtl-optimization/38449:
8740         * hooks.c (hook_bool_const_rtx_const_rtx_true): New function.
8741         * hooks.h (hook_bool_const_rtx_const_rtx_true): Declare.
8742         * target.def: Merge in definitions and documentation for
8743         TARGET_CAN_FOLLOW_JUMP.
8744         * doc/tm.texi.in: Add documentation locations for the above.
8745         * doc/tm.texi: Regenerate.
8746         * reorg.c (follow_jumps): New parameters jump and crossing.
8747         Changed all callers.
8749 2012-09-30  Eric Botcazou  <ebotcazou@adacore.com>
8751         * reorg.c (relax_delay_slots): Use delay_insn consistently.
8753         * config/sparc/sparc.c (gen_stack_pointer_dec): Delete.
8754         (sparc_expand_epilogue): Use gen_stack_pointer_inc and adjust.
8755         (sparc_flat_expand_epilogue): Likewise.
8756         (emit_and_preserve): Likewise.
8757         (sparc_fold_builtin): Fix thinko in latest change.
8759 2012-09-30  Andreas Schwab  <schwab@linux-m68k.org>
8761         * config/m68k/m68k.md: Add names to bitfield insert and extract
8762         insns.
8763         (*insv_8_16_reg): Remove constraints and conditions that assume
8764         that operand 0 could be a MEM.
8765         (*extzv_8_16_reg, *extv_8_16_reg): Likewise, for operand 1.
8767 2012-09-30  Jan Hubicka  <jh@suse.cz>
8769         * cfgloop.c (scale_loop_profile): Move to...
8770         * cfgloopmanip.c (scale_loop_profile): .. here; use
8771         scale_loop_frequencies.
8772         (loopify): Use RDIV.
8774 2012-09-28  Jan Hubicka  <jh@suse.cz>
8776         * tree-call-cdce.c (shrink_wrap_one_built_in_call): Update profile.
8778 2012-09-28  Jan Hubicka  <jh@suse.cz>
8780         * function.c (dup_block_and_redirect): Update profile.
8782 2012-09-29  Andreas Tobler  <andreast@fgznet.ch>
8784         * config.gcc: Replace 'host' with 'target' when configuring for
8785         powerpc64*-*-freebsd.
8787 2012-09-29  Marc Glisse  <marc.glisse@inria.fr>
8789         * tree.c (truth_type_for): New function.
8790         * tree.h (truth_type_for): Declare.
8791         * gimple-fold.c (and_comparisons_1): Call it.
8792         (or_comparisons_1): Likewise.
8793         * tree-ssa-forwprop.c (forward_propagate_into_cond): Don't use
8794         boolean_type_node for vectors.
8796 2012-09-28  Jan Hubicka  <jh@suse.cz>
8798         * basic-block.h (RDIV): Define.
8799         (EDGE_FREQUENCY): Simplify.
8800         (check_probability, combine_probabilities, apply_probability,
8801         inverse_probability): New.
8802         * cfgloop.c (scale_loop_profile): New function.
8803         * cfgloop.h (scale_loop_profile): Declare.
8804         (slpeel_add_loop_guard): Add probability parameter.
8805         (set_prologue_iterations): Add probability parameter.
8806         (slpeel_tree_peel_loop_to_edge): Add bound1 and bound2 parameters;
8807         update probabilities correctly.
8808         (vect_do_peeling_for_alignment, vect_gen_niters_for_prolog_loop): New.
8810 2012-09-20  Bernd Schmidt  <bernds@codesourcery.com>
8812         PR bootstrap/54688
8813         * sched-deps.c (parse_add_or_inc): Remove MINUS handling.  Take
8814         STACK_GROWS_DOWNWARD into account.
8816 2012-09-28  Jakub Jelinek  <jakub@redhat.com>
8818         PR target/54716
8819         * config/i386/predicates.md (nonimmediate_or_const_vector_operand):
8820         New predicate.
8821         * config/i386/i386.c (ix86_expand_vector_logical_operator): New
8822         function.
8823         * config/i386/i386-protos.h (ix86_expand_vector_logical_operator): New
8824         prototype.
8825         * config/i386/sse.md (<code><mode>3 VI logic): Use it.
8827         PR tree-optimization/54713
8828         * fold-const.c (vec_cst_ctor_to_array): Give up if vector CONSTRUCTOR
8829         has vector elements.
8830         (fold_ternary_loc) <case BIT_FIELD_REF>: Likewise.
8831         * tree-vect-generic.c (vector_element): Don't rely on CONSTRUCTOR elts
8832         indexes.  Use BIT_FIELD_REF if CONSTRUCTOR has vector elements.
8833         (lower_vec_perm): Use NULL_TREE CONSTRUCTOR indexes.
8835 2012-09-28  Georg-Johann Lay  <avr@gjlay.de>
8837         * config/avr/avr.md (adjust_len): Add lpm.
8838         (reload_in<mode>): Use avr_out_lpm for output.  Use "lpm" for
8839         adjust_len.
8840         * config/avr/avr-protos.h (avr_out_lpm): New prototype.
8841         * config/avr/avr.c (avr_out_lpm): Make global.
8842         (adjust_insn_length): Handle ADJUST_LEN_LPM.
8844 2012-09-28  Richard Guenther  <rguenther@suse.de>
8846         PR lto/47799
8847         * lto-streamer-out.c (tree_is_indexable): Make PARM_DECLs global.
8848         (lto_output_tree_ref): Handle references to them.
8849         (output_function): Do not output function arguments again.
8850         * lto-streamer-in.c (input_function): Do not input arguments
8851         again, nor overwrite them.
8853 2012-09-28  Richard Guenther  <rguenther@suse.de>
8855         * cgraph.h (symtab_node_base): Re-order and pack fields.
8857 2012-09-28  Georg-Johann Lay  <avr@gjlay.de>
8859         * config/avr/avr.c (avr_pgm_check_var_decl): Fix non-error diagnostic.
8861 2012-09-28  Georg-Johann Lay  <avr@gjlay.de>
8863         PR rtl-optimization/52543
8864         * config/avr/avr.c (avr_mode_dependent_address_p): Return true for
8865         all non-generic address spaces.
8866         (TARGET_SECONDARY_RELOAD): New hook define to...
8867         (avr_secondary_reload): ...this new static function.
8868         * config/avr/avr.md (reload_in<mode>): New insns.
8870         Undo r185605 (mostly):
8871         * config/avr/avr-protos.h (avr_load_lpm): Remove.
8872         * config/avr/avr.c (avr_load_libgcc_p): Don't restrict to __flash
8873         loads.
8874         (avr_out_lpm): Also handle loads > 1 byte.
8875         (avr_load_lpm): Remove.
8876         (avr_find_unused_d_reg): New static function.
8877         (avr_out_lpm_no_lpmx): New static function.
8878         (adjust_insn_length): Remove ADJUST_LEN_LOAD_LPM.
8879         * config/avr/avr.md (unspec): Remove UNSPEC_LPM.
8880         (load_<mode>_libgcc): Use MEM instead of UNSPEC_LPM.
8881         (load_<mode>, load_<mode>_clobber): Remove.
8882         (mov<mode>): For multi-byte move from non-generic
8883         16-bit address spaces: Expand to *mov<mode> again.
8884         (load<mode>_libgcc): New expander.
8885         (split-lpmx): Remove split.
8887 2012-09-27  Dehao Chen  <dehao@google.com>
8889         * tree.h (tree_constructor): Remove IS_UNKNOWN_LOCATION.
8890         (extern void protected_set_expr_location): Likewise.
8891         (function_args_iter_next): Likewise.
8892         (inlined_function_outer_scope_p): Likewise.
8893         * input.h (IS_UNKNOWN_LOCATION): Likewise.
8894         * fold-const.c (expr_location_or): Likewise.
8895         * lto-cgraph.c (output_node_opt_summary): Likewise.
8896         * dwarf2out.c (add_src_coords_attributes): Likewise.
8897         * tree-eh.c (lower_try_finally_dup_block): Likewise.
8898         * profile.c (branch_prob):
8899         * cfgexpand.c (expand_gimple_cond): Likewise.
8900         (expand_gimple_basic_block): Likewise.
8901         (construct_exit_block): Likewise.
8902         (gimple_expand_cfg): Likewise.
8903         * cfgcleanup.c (try_forward_edges): Likewise.
8904         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
8905         (dump_scope_block): Likewise.
8906         * ipa-prop.c (ipa_write_jump_function): Likewise.
8907         * rtl.h (extern void rtl_check_failed_flag): Likewise.
8908         * gimple.h (gimple_set_location): Likewise.
8909         (gimple_has_location): Likewise.
8910         * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
8911         (force_nonfallthru_and_redirect): Likewise.
8912         (fixup_reorder_chain): Likewise.
8913         (cfg_layout_merge_blocks): Likewise.
8915 2012-09-27  Meador Inge  <meadori@codesourcery.com>
8917         * gcc-ar.c (main): Handle the returning of the sub-process error
8918         code correctly.
8920 2012-09-27  Ulrich Weigand  <ulrich.weigand@linaro.org>
8922         * lower-subreg.c (enum classify_move_insn): Rename
8923         SIMPLE_PSEUDO_REG_MOVE to DECOMPOSABLE_SIMPLE_MOVE.
8924         (find_decomposable_subregs): Update.
8925         (decompose_multiword_subregs): Add DECOMPOSE_COPIES parameter.
8926         Only mark pseudo-to-pseudo copies as DECOMPOSABLE_SIMPLE_MOVE
8927         if that parameter is true.
8928         (rest_of_handle_lower_subreg): Call decompose_multiword_subregs
8929         with DECOMPOSE_COPIES false.
8930         (rest_of_handle_lower_subreg2): Call decompose_multiword_subregs
8931         with DECOMPOSE_COPIES true.
8933 2012-09-27  Marek Polacek  <polacek@redhat.com>
8935         * doc/gcov.texi (Gcov Data Files): Fix a typo.
8937 2012-09-27  Jakub Jelinek  <jakub@redhat.com>
8939         PR target/54703
8940         * simplify-rtx.c (simplify_binary_operation_1): Perform
8941         (x - (x & y)) -> (x & ~y) optimization only for integral modes.
8943 2012-09-27  Marc Glisse  <marc.glisse@inria.fr>
8945         PR c/53024
8946         PR c++/54427
8947         * doc/extend.texi (Vector Extensions): C++ improvements.
8948         Power of 2 size requirement.
8950 2012-09-27  Richard Guenther  <rguenther@suse.de>
8952         PR lto/54709
8953         * lto-symtab.c (resolution_guessed_p): Remove.
8954         (set_resolution_guessed): Likewise.
8955         (lto_symtab_register_decl): Remove assert.
8956         (lto_symtab_resolve_symbols): Do not alter symbol resolutions
8957         and return the prevailing symbol, checking for multiple prevailing
8958         symbols here.
8959         (lto_symtab_merge_decls_1): Use the result from
8960         lto_symtab_resolve_symbols.  Do not alter symbol resolutions.
8962 2012-09-26  Steve Ellcey  <sellcey@mips.com>
8964         PR web/54711
8965         * doc/install.texi: Fix example.
8967 2012-09-26  Dehao Chen  <dehao@google.com>
8969          * tree-ssa-live.c (clear_unused_block_pointer): Use explicitit (void)
8970         for function parameter.
8971         (remove_unused_locals): Don't use LOCATION_BLOCK if it is NULL.
8973 2012-09-26  Oleg Endo  <olegendo@gcc.gnu.org>
8975         * doc/extend.texi (bswap Builtins): Change signed types to unsigned
8976         types.
8978 2012-09-26  Ian Lance Taylor  <iant@google.com>
8980         * diagnostic.c (bt_callback): Cast pc when calling fprintf.
8982 2012-09-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8984         PR tree-optimization/54674
8985         * gimple-ssa-strength-reduction.c (analyze_increments): Don't
8986         introduce a multiplication with a pointer operand.
8988 2012-09-26  Georg-Johann Lay  <avr@gjlay.de>
8990         PR middle-end/54635
8991         * doc/tm.texi.in (TARGET_MODE_DEPENDENT_ADDRESS_P): Document new
8992         parameter addrspace.
8993         * doc/tm.texi: Regenerate.
8994         * target.def (mode_dependent_address_p): Add addr_space_t parameter.
8995         * targhooks.h (default_mode_dependent_address_p): Ditto.
8996         * targhooks.c (default_mode_dependent_address_p): Ditto.
8997         * expr.c (convert_move): Pass address space to
8998         mode_dependent_address_p.
8999         * combine.c (combine_simplify_rtx): Ditto.
9000         (make_extraction): Ditto.
9001         (simplify_shift_const_1): Ditto.
9002         (gen_lowpart_for_combine): Ditto.
9003         * lower-subreg.c (simple_move_operand): Ditto.
9004         * recog.c (simplify_while_replacing): Ditto.
9005         (offsettable_address_addr_space_p): Ditto.
9006         (mode_dependent_address_p): Ditto.
9007         * simplify-rtx.c (simplify_unary_operation_1): Ditto.
9008         (simplify_subreg): Ditto.
9009         * config/m68k/m68k.md: Ditto.
9010         * config/vax/vax.md: Ditto.
9011         * config/vax/constraints.md (Q): Ditto.
9012         * config/vax/predicates.md (indexed_memory_operand): Ditto.
9013         * config/alpha/alpha.c (alpha_mode_dependent_address_p): Add
9014         unused addr_space_t parameter.
9015         * config/avr/avr.c (avr_mode_dependent_address_p): Ditto.
9016         * config/h8300/h8300.c (h8300_mode_dependent_address_p): Ditto.
9017         * config/m32r/m32r.c (m32r_mode_dependent_address_p): Ditto.
9018         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): Ditto.
9019         * config/rx/rx.c (rx_mode_dependent_address_p): Ditto.
9020         * config/sparc/sparc.c (sparc_mode_dependent_address_p): Ditto.
9021         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
9022         Ditto.
9023         * config/vax/vax.c (vax_mode_dependent_address_p): Ditto.
9024         * config/xtensa/xtensa.c (xtensa_mode_dependent_address_p): Ditto.
9026 2012-09-26  Christophe Lyon <christophe.lyon@linaro.org>
9028         * tree-ssa-math-opts.c (bswap_stats): Add found_16bit field.
9029         (execute_optimize_bswap): Add support for builtin_bswap16.
9031 2012-09-26  Richard Guenther  <rguenther@suse.de>
9033         * tree.h (DECL_IS_BUILTIN): Compare LOCATION_LOCUS.
9035 2012-09-26  Ian Lance Taylor  <iant@google.com>
9037         * diagnostic.c: Include "demangle.h" and "backtrace.h".
9038         (bt_stop): New static array.
9039         (bt_callback, bt_err_callback): New static functions.
9040         (diagnostic_action_after_output): Call backtrace_full for DK_ICE.
9041         * Makefile.in (BACKTRACE): New variable.
9042         (BACKTRACEINC, LIBBACKTRACE): New variables.
9043         (BACKTRACE_H): New variable.
9044         (LIBDEPS, LIBS): Add $(LIBBACKTRACE).
9045         (INCLUDES): Add $(BACKTRACEINC).
9046         (diagnostic.o): Depend upon $(DEMANGLE_H) and $(BACKTRACE_H).
9048 2012-09-25  Segher Boessenkool  <segher@kernel.crashing.org>
9050         PR target/51274
9051         PR target/53087
9052         * config/rs6000/rs6000.md (ne0si): Remove unnecessary
9053         earlyclobber.  Merge with...
9054         (ne0di): ... to...
9055         (ne0_<mode>): New.
9056         (plus_ne0si): Merge with...
9057         (plus_ne0di): ... to...
9058         (plus_ne0_<mode>): New.
9059         (compare_plus_ne0si): Merge with...
9060         (compare_plus_ne0di)... to...
9061         (compare_plus_ne0_<mode>): New.
9062         (compare_plus_ne0_<mode>_1): New.
9063         (plus_ne0si_compare): Merge with...
9064         (plus_ne0di_compare)... to...
9065         (plus_ne0_<mode>_compare): New.
9067 2012-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
9069         PR target/54089
9070         * config/sh/constraints.md (Jhb): New constraint.
9071         * config/sh/predicates.md (negt_reg_shl31_operand): New predicate.
9072         * config/sh/sh.md (rotrsi3): New expander.
9073         (rotrsi3_1, *rotrsi3_1, *rotlsi3_1): New insns.
9074         (rotlsi3, rotlhi3): Use const_int_operand predicate instead of
9075         immediate_operand and remove CONST_INT_P checks in expansion code.
9076         (*rotcr): Cleanup variable usage.  Handle preceding nott insn.  Add
9077         split with swapped operands.
9078         (*rotcr_neg_t, *movt_msb, *negt_msb): New insns and splits.
9080 2012-09-25  Aldy Hernandez  <aldyh@redhat.com>
9082         PR middle-end/53850
9083         * trans-mem.c (expand_call_tm): Handle late built built-ins.
9085 2012-09-25  Georg-Johann Lay  <avr@gjlay.de>
9087         PR other/54701
9088         * config/avr/avr-log.c (avr_double_int_pop_digit): Rewrite using
9089         double_int::udivmod.
9091 2012-09-25  Georg-Johann Lay  <avr@gjlay.de>
9093         * config/avr/avr.c (avr_set_current_function): Check cfun->machine
9094         to be non-NULL.
9096 2012-09-25  Georg-Johann Lay  <avr@gjlay.de>
9098         PR target/54641
9099         * config/avr/t-avr: Use ALL_COMPILERFLAGS instead of ALL_CFLAGS
9100         for sources compiled with COMPILER.
9102 2012-09-25  Richard Guenther  <rguenther@suse.de>
9104         PR lto/54625
9105         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Do not merge
9106         cgraph nodes for builtins.
9108 2012-09-25  Jakub Jelinek  <jakub@redhat.com>
9110         PR tree-optimization/54676
9111         * tree-vrp.c (set_and_canonicalize_value_range): Handle
9112         one bit precision properly.
9114         PR other/54692
9115         * configure.ac (CFLAGS, CXXFLAGS): Remove -Ofast or -Og properly.
9116         * configure: Regenerated.
9118 2012-09-25  Georg-Johann Lay  <avr@gjlay.de>
9120         PR other/54701
9121         * config/avr/avr.c (avr_map_decompose): Use double_int::from_uhwi
9122         instead of uhwi_to_double_int.
9124 2012-09-25  Richard Guenther  <rguenther@suse.de>
9126         * lto-symtab.c (lto_symtab_merge_decls_1): Properly merge
9127         all of the chain.
9129 2012-09-25  Richard Guenther  <rguenther@suse.de>
9131         PR tree-optimization/53663
9132         * tree-ssa-sccvn.c (vn_reference_lookup_3): Conditional
9133         native encode/interpret translation on VN_WALKREWRITE.
9135 2012-09-24  Dehao Chen  <dehao@google.com>
9137         * tree-cfg.c (move_stmt_op): Reset the expr block only when necessary.
9138         (move_block_to_fn): Reset the edge's goto block even
9139         when the goto locus is unknown.
9141 2012-09-24  Lawrence Crowl  <crowl@google.com>
9143         * double-int.h (double_int::from_pair): New.
9144         (double_int::wide_mul_with_sign): New.
9145         (double_int::sub_with_overflow): New.
9146         (double_int::neg_with_overflow): New.
9147         (double_int::divmod_with_overflow): New.
9148         (shwi_to_double_int): Remove.
9149         (uhwi_to_double_int): Remove.
9150         (double_int_to_shwi): Remove.
9151         (double_int_to_uhwi): Remove.
9152         (double_int_fits_in_uhwi_p): Remove.
9153         (double_int_fits_in_shwi_p): Remove.
9154         (double_int_fits_in_hwi_p): Remove.
9155         (double_int_mul): Remove.
9156         (double_int_mul_with_sign): Remove.
9157         (double_int_add): Remove.
9158         (double_int_sub): Remove.
9159         (double_int_neg): Remove.
9160         (double_int_div): Remove.
9161         (double_int_sdiv): Remove.
9162         (double_int_udiv): Remove.
9163         (double_int_mod): Remove.
9164         (double_int_smod): Remove.
9165         (double_int_umod): Remove.
9166         (double_int_divmod): Remove.
9167         (double_int_sdivmod): Remove.
9168         (double_int_udivmod): Remove.
9169         (double_int_multiple_of): Remove.
9170         (double_int_setbit): Remove.
9171         (double_int_ctz): Remove.
9172         (double_int_not): Remove.
9173         (double_int_ior): Remove.
9174         (double_int_and): Remove.
9175         (double_int_and_not): Remove.
9176         (double_int_xor): Remove.
9177         (double_int_lshift): Remove.
9178         (double_int_rshift): Remove.
9179         (double_int_lrotate): Remove.
9180         (double_int_rrotate): Remove.
9181         (double_int_negative_p): Remove.
9182         (double_int_cmp): Remove.
9183         (double_int_scmp): Remove.
9184         (double_int_ucmp): Remove.
9185         (double_int_max): Remove.
9186         (double_int_smax): Remove.
9187         (double_int_umax): Remove.
9188         (double_int_min): Remove.
9189         (double_int_smin): Remove.
9190         (double_int_umin): Remove.
9191         (double_int_ext): Remove.
9192         (double_int_sext): Remove.
9193         (double_int_zext): Remove.
9194         (double_int_mask): Remove.
9195         (double_int_max_value): Remove.
9196         (double_int_min_value): Remove.
9197         (double_int_zero_p): Remove.
9198         (double_int_one_p): Remove.
9199         (double_int_minus_one_p): Remove.
9200         (double_int_equal_p): Remove.
9201         (double_int_popcount): Remove.
9202         (extern add_double_with_sign): Remove.
9203         (#define add_double): Remove.
9204         (extern neg_double): Remove.
9205         (extern mul_double_with_sign): Remove.
9206         (extern mul_double_wide_with_sign): Remove.
9207         (#define mul_double): Remove.
9208         (extern lshift_double): Remove.
9209         (extern div_and_round_double): Remove.
9210         * double-int.c (add_double_with_sign): Make static.
9211         (#defined add_double): Localized from header.
9212         (neg_double): Make static.
9213         (mul_double_with_sign): Make static.
9214         (mul_double_wide_with_sign): Make static.
9215         (#defined mul_double): Localized from header.
9216         (lshift_double): Make static.
9217         (div_and_round_double): Make static.
9218         (double_int::wide_mul_with_sign): New.
9219         (double_int::sub_with_overflow): New.
9220         (double_int::neg_with_overflow): New.
9221         (double_int::divmod_with_overflow): New.
9222         * emit-rtl.c (init_emit_once): Change to new double_int API.
9223         * explow.c (plus_constant): Likewise.
9224         * expmed.c (choose_multiplier): Likewise.
9225         * fold-const.c (#define OVERFLOW_SUM_SIGN): Remove.
9226         (int_const_binop_1): Change to new double_int API.
9227         (fold_div_compare): Likewise.
9228         (maybe_canonicalize_comparison): Likewise.
9229         (pointer_may_wrap_p): Likewise.
9230         (fold_negate_const): Likewise.
9231         (fold_abs_const): Likewise.
9232         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
9233         (simplify_const_binary_operation): Likewise.
9234         * tree-chrec.c (tree_fold_binomial): Likewise.
9235         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
9236         * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
9237         * config/avr/avr.c (avr_double_int_push_digit): Likewise.
9238         (avr_map): Likewise.
9239         (avr_map_decompose): Likewise.
9240         (avr_out_insert_bits): Likewise.
9242 2012-09-24  Janis Johnson  <janisjo@codesourcery.com>
9244         * doc/sourcebuild.texi (Selectors): Document the use of target
9245         and xfail used together.
9247 2012-09-24  Richard Guenther  <rguenther@suse.de>
9249         PR middle-end/54632
9250         * tree-ssa-live.c (clear_unused_block_pointer_1): Do not
9251         handle DECL_DEBUG_EXPR_IS_FROM here...
9252         (clear_unused_block_pointer): ... but here when walking all
9253         local decls.
9255 2012-09-24  Richard Guenther  <rguenther@suse.de>
9257         PR tree-optimization/54684
9258         * tree-ssa-ccp.c (optimize_unreachable): Properly update stmts.
9260 2012-09-24  Marc Glisse  <marc.glisse@inria.fr>
9262         * tree-ssa-forwprop.c: Include tree-ssa-propagate.h.
9263         (simplify_bitfield_ref): Handle constructors.
9264         * Makefile.in (tree-ssa-forwprop.o): Depend on tree-ssa-propagate.h.
9266 2012-09-24  Richard Guenther  <rguenther@suse.de>
9268         * tree-ssa-pre.c (bitmap_find_leader, create_expression_by_pieces,
9269         find_or_generate_expression): Remove dominating stmt argument.
9270         (find_leader_in_sets, phi_translate_1, bitmap_find_leader,
9271         create_component_ref_by_pieces_1, create_component_ref_by_pieces,
9272         do_regular_insertion, do_partial_partial_insertion): Adjust.
9273         (compute_avail): Do not set uids.
9275 2012-09-24  Eric Botcazou  <ebotcazou@adacore.com>
9277         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream in
9278         TYPE_NONALIASED_COMPONENT flag.
9279         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream out
9280         TYPE_NONALIASED_COMPONENT flag.
9282 2012-09-24  Jia Liu  <proljc@gmail.com>
9284         * doc/lto.texi: Separate sections.
9285         * doc/plugins.texi: Likewise.
9287 2012-09-24  Richard Guenther  <rguenther@suse.de>
9289         PR middle-end/52173
9290         * gimple.c (gimple_copy): Properly mark the copy modified
9291         if SSA operands are present.
9293 2012-09-23  Eric Botcazou  <ebotcazou@adacore.com>
9295         PR tree-optimization/54669
9296         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Invoke
9297         maybe_clean_or_replace_eh_stmt on the modified use statements.
9299 2012-09-23  Marc Glisse  <marc.glisse@inria.fr>
9301         * expr.c (do_store_flag): Remove duplicated code.
9303 2012-09-22  Segher Boessenkool  <segher@kernel.crashing.org>
9305         * config/rs6000/predicates.md (altivec_register_operand,
9306         vsx_register_operand, vfloat_operand, vint_operand,
9307         vlogical_operand, gpc_reg_operand, cc_reg_operand,
9308         cc_reg_not_cr0_operand, cc_reg_not_micro_cr0_operand):
9309         If op is a SUBREG, consider its SUBREG_REG instead.
9311 2012-09-22  Uros Bizjak  <ubizjak@gmail.com>
9313         * optabs.c (prepare_cmp_insn): Expand comparison of the result
9314         of memcmp through generic comparison expansion code.
9316 2012-09-21  Anthony Green  <green@moxielogic.com>
9318         * config/moxie/moxie.opt: Add -mno-crt0 option.
9319         * config/moxie/moxie.h (STARTFILE_SPEC): Handle -mno-crt0 option.
9320         * doc/invoke.texi (Option Summary): Document -mno-crt0 option.
9322 2012-09-21  Jack Howarth  <howarth@bromo.med.uc.edu>
9324         PR bootstrap/54642
9325         * Makefile.in (lto-symtab.o): Remove gt-lto-symtab.h dependency.
9327 2012-09-21  Dehao Chen  <dehao@google.com>
9329         PR go/54649
9330         * tree-eh.c (lower_try_finally_dup_block): Set the correct block for
9331         stmts in the duplicated EH block.
9333 2012-09-21  Richard Guenther  <rguenther@suse.de>
9335         PR tree-optimization/54647
9336         * tree-ssa-pre.c (compute_avail): Do not put COND_EXPR
9337         or VEC_COND_EXPR into EXP_GEN again.
9339 2012-09-21  Jakub Jelinek  <jakub@redhat.com>
9341         PR tree-optimization/54629
9342         * tree-loop-distribution.c (classify_partition): Free loop nest only
9343         after freeing ddr.  Free ddr and loop nest also if successful.
9345 2012-09-21  Matthias Klose  <doko@ubuntu.com>
9347         * config/arm/arm.c (arm_mangle_type): Don't warn anymore that
9348         4.4 has changed the `va_list' mangling.
9350 2012-09-21  Eric Botcazou  <ebotcazou@adacore.com>
9352         PR rtl-optimization/54290
9353         PR rtl-optimization/54644
9354         * reload1.c (choose_reload_regs): Fix thinko in previous change.
9356 2012-09-20  Segher Boessenkool  <segher@kernel.crashing.org>
9358         * config/rs6000/rs6000.md (define_split for plus_eqsi):
9359         Fix output pattern.
9361 2012-09-20  Eric Botcazou  <ebotcazou@adacore.com>
9363         * reload1.c (choose_reload_regs): Add missing #ifdef/#endif pair.
9365 2012-09-20  Bernd Schmidt  <bernds@codesourcery.com>
9367         PR bootstrap/54643
9368         * haifa-sched.c (schedule_block): Skip find_modifiable_mems if using
9369         SCHED_PRESSURE_MODEL.
9371 2012-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
9373         * rtlanal.c (dead_or_set_regno_p): Fix COND_EXEC handling.
9375 2012-09-20  Marek Polacek  <polacek@redhat.com>
9377         * tree-ssa-operands.c (get_expr_operands): Merge identical cases.
9379 2012-09-20  Marek Polacek  <polacek@redhat.com>
9381         * tree-ssa-threadupdate.c (mark_threaded_blocks): Don't cast XNEWVEC's
9382         result.
9383         (create_edge_and_update_destination_phis): Likewise.
9385 2012-09-20  Martin Jambor  <mjambor@suse.cz>
9387         * function.c (push_cfun): Check old current_function_decl matches
9388         old cfun, set new current_function_decl to the decl of the new cfun.
9389         (push_struct_function): Likewise.
9390         (pop_cfun): Likewise.
9391         (allocate_struct_function): Move call to
9392         invoke_set_current_function_hook to the end of the function.
9393         * cfgexpand.c (estimated_stack_frame_size): Do not set and restore
9394         current_function_decl.
9395         * cgraph.c (cgraph_release_function_body): Likewise.
9396         * cgraphunit.c (cgraph_process_new_functions): Likewise.
9397         (cgraph_add_new_function): Likewise.
9398         (cgraph_analyze_function): Likewise.
9399         (assemble_thunk): Set cfun to NULL at the end.
9400         (expand_function): Move call to set_cfun downwards.
9401         * gimple-low.c (record_vars_into): Only check current_function_decl
9402         before possibly doing push_cfun.
9403         * gimplify.c (gimplify_function_tree): Do not set and restore
9404         current_function_decl.
9405         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
9406         (inline_analyze_function): Likewise.
9407         * ipa-prop.c (ipa_analyze_node): Likewise.
9408         * ipa-pure-const.c (analyze_function): Likewise.
9409         * lto-streamer-in.c (lto_input_function_body): Do not set
9410         current_function_decl.
9411         * lto-streamer-out.c (output_function): Do not set and restore
9412         current_function_decl.
9413         * omp-low.c (finalize_task_copyfn): Likewise.
9414         (expand_omp_taskreg): Likewise.
9415         (create_task_copyfn): Likewise, move push_cfun up quite a bit.
9416         * passes.c (dump_passes): Do not set and restore current_function_decl.
9417         (do_per_function): Likewise.
9418         (do_per_function_toporder): Likewise.
9419         * trans-mem.c (ipa_tm_scan_irr_function): Likewise.
9420         (ipa_tm_transform_transaction): Likewise.
9421         (ipa_tm_transform_clone): Likewise.
9422         (ipa_tm_execute): Likewise.
9423         * tree-emutls.c (lower_emutls_function_body): Likewise.
9424         * tree-inline.c (initialize_cfun): Do not call pop_cfun.
9425         (tree_function_versioning): Do not call push_cfun, do not set and
9426         restore current_function_decl.  Remove assert checking consistency of
9427         cfun and current_function_decl.
9428         * tree-profile.c (tree_profiling): Do not set and restore
9429         current_function_decl.
9430         * tree-sra.c (convert_callers_for_node): Do not set
9431         current_function_decl.
9432         (convert_callers): Do not restore current_function_decl.
9433         (modify_function): Do not set current_function_decl.
9434         * tree-ssa-structalias.c (ipa_pta_execute): Do not set and restore
9435         current_function_decl.
9437 2012-09-20  Diego Novillo  <dnovillo@google.com>
9439         PR target/54631
9440         * config/vxworks.c (vxworks_emutls_var_init): Update for new
9441         VEC_quick_push interface.
9443 2012-09-20  Richard Guenther  <rguenther@suse.de>
9445         PR tree-optimization/54634
9446         * tree-data-ref.c (get_references_in_stmt): For now give
9447         up for pure functions.
9449 2012-09-20  Chen Wei-Ren  <chenwj@iis.sinica.edu.tw>
9451         * doc/lto.texi: Correct typo.
9453 2012-09-19  Dehao Chen  <dehao@google.com>
9455         * config/s390/s390.c (s390_chunkify_start): Replacing INSN_LOCATOR.
9456         * config/spu/spu.c (emit_nop_for_insn): Likewise.
9457         (pad_bb): Likewise.
9458         (spu_emit_branch_hint): Likewise.
9459         (insert_hbrp_for_ilb_runout): Likewise.
9460         * config/mep/mep.c (mep_make_bundle): Likewise.
9461         (mep_bundle_insns): Likewise.
9462         * config/sh/sh.c (gen_block_redirect): Likewise.
9463         * config/c6x/c6x.c (gen_one_bundle): Likewise.
9464         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Likewise.
9465         * config/picochip/picochip.c (picochip_reorg): Likewise.
9466         * config/arm/arm.c (require_pic_register): Likewise.
9467         * config/mips/mips.c (mips16_gp_pseudo_reg): Likewise.
9468         * config/bfin/bfin.c (gen_one_bundle): Likewise.
9470 2012-09-19  Mark Kettenis  <kettenis@openbsd.org>
9472         * config.gcc (hppa*-*-openbsd*): New target.
9473         * config/pa/pa-openbsd.h: New file.
9474         * config/pa/pa32-openbsd.h: New file.
9475         * config/host-openbsd.c: Update copyright year.
9476         (TRY_EXCEPT_VM_SPACE): Define for OpenBSD/hppa.
9478 2012-09-19  Martin Jambor  <mjambor@suse.cz>
9480         * ipa-prop.c (prune_expression_for_jf): New function.
9481         (ipa_set_jf_constant): Use it.
9482         (ipa_set_jf_arith_pass_through): Likewise.
9483         (determine_known_aggregate_parts): Likewise.
9485 2012-09-19  Steve Ellcey  <sellcey@mips.com>
9487         * config.gcc (mips*-mti-elf*): New target.
9488         * config/mips/mti-elf.h: New file.
9489         * config/mips/t-mti-elf: New file.
9491 2012-09-19  Dehao Chen  <dehao@google.com>
9493         * toplev.c (general_init): Init block_locations.
9494         * tree.c (tree_set_block): New.
9495         (tree_block): Change to use LOCATION_BLOCK.
9496         * tree.h (TREE_SET_BLOCK): New.
9497         * final.c (reemit_insn_block_notes): Change to use LOCATION_BLOCK.
9498         (final_start_function): Likewise.
9499         * input.c (expand_location_1): Likewise.
9500         * input.h (LOCATION_LOCUS): New.
9501         (LOCATION_BLOCK): New.
9502         (IS_UNKNOWN_LOCATION): New.
9503         * fold-const.c (expr_location_or): Change to use new location.
9504         * reorg.c (emit_delay_sequence): Likewise.
9505         (try_merge_delay_insns): Likewise.
9506         * modulo-sched.c (dump_insn_location): Likewise.
9507         * lto-streamer-out.c (lto_output_location_bitpack): Likewise.
9508         * lto-cgraph.c (output_node_opt_summary): Likewise.
9509         * jump.c (rtx_renumbered_equal_p): Likewise.
9510         * ifcvt.c (noce_try_move): Likewise.
9511         (noce_try_store_flag): Likewise.
9512         (noce_try_store_flag_constants): Likewise.
9513         (noce_try_addcc): Likewise.
9514         (noce_try_store_flag_mask): Likewise.
9515         (noce_try_cmove): Likewise.
9516         (noce_try_cmove_arith): Likewise.
9517         (noce_try_minmax): Likewise.
9518         (noce_try_abs): Likewise.
9519         (noce_try_sign_mask): Likewise.
9520         (noce_try_bitop): Likewise.
9521         (noce_process_if_block): Likewise.
9522         (cond_move_process_if_block): Likewise.
9523         (find_cond_trap): Likewise.
9524         * ipa-prop.c (ipa_set_jf_constant): Likewise.
9525         (ipa_write_jump_function): Likewise.
9526         * dwarf2out.c (add_src_coords_attributes): Likewise.
9527         * expr.c (expand_expr_real): Likewise.
9528         * tree-parloops.c (create_loop_fn): Likewise.
9529         * recog.c (peep2_attempt): Likewise.
9530         * function.c (free_after_compilation): Likewise.
9531         (expand_function_end): Likewise.
9532         (set_insn_locations): Likewise.
9533         (thread_prologue_and_epilogue_insns): Likewise.
9534         * print-rtl.c (print_rtx): Likewise.
9535         * profile.c (branch_prob): Likewise.
9536         * trans-mem.c (ipa_tm_scan_irr_block): Likewise.
9537         * gimplify.c (gimplify_call_expr): Likewise.
9538         * except.c (duplicate_eh_regions_1): Likewise.
9539         * emit-rtl.c (try_split): Likewise.
9540         (make_insn_raw): Likewise.
9541         (make_debug_insn_raw): Likewise.
9542         (make_jump_insn_raw): Likewise.
9543         (make_call_insn_raw): Likewise.
9544         (emit_pattern_after_setloc): Likewise.
9545         (emit_pattern_after): Likewise.
9546         (emit_debug_insn_after): Likewise.
9547         (emit_pattern_before): Likewise.
9548         (emit_insn_before_setloc): Likewise.
9549         (emit_jump_insn_before): Likewise.
9550         (emit_call_insn_before_setloc): Likewise.
9551         (emit_call_insn_before): Likeise.
9552         (emit_debug_insn_before_setloc): Likewise.
9553         (emit_copy_of_insn_after): Likewise.
9554         (insn_locators_alloc): Remove.
9555         (insn_locators_finalize): Remove.
9556         (insn_locators_free): Remove.
9557         (set_curr_insn_source_location): Remove.
9558         (get_curr_insn_source_location): Remove.
9559         (set_curr_insn_block): Remove.
9560         (get_curr_insn_block): Remove.
9561         (locator_scope): Remove.
9562         (insn_scope): Change to use new location.
9563         (locator_location): Remove.
9564         (insn_line): Change to use new location.
9565         (locator_file): Remove.
9566         (insn_file): Change to use new location.
9567         (locator_eq): Remove.
9568         (insn_locations_init): New.
9569         (insn_locations_finalize): New.
9570         (set_curr_insn_location): New.
9571         (curr_insn_location): New.
9572         * cfgexpand.c (gimple_assign_rhs_to_tree): Change to use new location.
9573         (expand_gimple_cond): Likewise.
9574         (expand_call_stmt): Likewise.
9575         (expand_gimple_stmt_1): Likewise.
9576         (expand_gimple_basic_block): Likewise.
9577         (construct_exit_block): Likewise.
9578         (gimple_expand_cfg): Likewise.
9579         * cfgcleanup.c (try_forward_edges): Likewise.
9580         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
9581         (dump_scope_block): Likewise.
9582         (remove_unused_locals): Likewise.
9583         * rtl.c (rtx_equal_p_cb): Likewise.
9584         (rtx_equal_p): Likewise.
9585         * rtl.h (XUINT): New.
9586         (INSN_LOCATOR): Remove.
9587         (CURR_INSN_LOCATION): Remove.
9588         (INSN_LOCATION): New.
9589         (INSN_HAS_LOCATION): New.
9590         * tree-inline.c (remap_gimple_op_r): Change to use new location.
9591         (copy_tree_body_r): Likewise.
9592         (copy_phis_for_bb): Likewise.
9593         (expand_call_inline): Likewise.
9594         * tree-streamer-in.c (lto_input_ts_exp_tree_pointers): Likewise.
9595         * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
9596         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
9597         * combine.c (try_combine): Likewise.
9598         * tree-outof-ssa.c (set_location_for_edge): Likewise.
9599         (insert_partition_copy_on_edge): Likewise.
9600         (insert_value_copy_on_edge): Likewise.
9601         (insert_rtx_to_part_on_edge): Likewise.
9602         (insert_part_to_rtx_on_edge): Likewise.
9603         * basic-block.h (edge_def): Remove field.
9604         * gimple.h (gimple_statement_base): Remove field.
9605         (gimple_bb): Change to use new location.
9606         (gimple_set_block): Likewise.
9607         (gimple_has_location): Likewise.
9608         * tree-cfg.c (make_cond_expr_edges): Likewise.
9609         (make_goto_expr_edges): Likewise.
9610         (gimple_can_merge_blocks_p): Likewise.
9611         (move_stmt_op): Likewise.
9612         (move_block_to_fn): Likewise.
9613         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
9614         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
9615         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
9616         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
9617         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
9618         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
9619         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
9620         * config/score/score.c (score_output_mi_thunk): Likewise.
9621         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
9622         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
9623         * cfgrtl.c (unique_locus_on_edge_between_p): Likewise.
9624         (unique_locus_on_edge_between_p): Likewise.
9625         (emit_nop_for_unique_locus_between): Likewise.
9626         (force_nonfallthru_and_redirect): Likewise.
9627         (fixup_reorder_chain): Likewise.
9628         (cfg_layout_merge_blocks): Likewise.
9629         * stmt.c (emit_case_nodes): Likewise.
9631 2012-09-19  Bernd Schmidt  <bernds@codesourcery.com>
9633         * dbgcnt.def (sched_breakdep): New counter.
9634         * haifa-sched.c (update_insn_after_change): New static function,
9635         broken out of haifa_change_pattern.
9636         (haifa_change_pattern): Call it.
9637         (dep_t heap vecs): Declare.
9638         (INSN_COST): Define earlier.
9639         (next_cycle_replace_deps, next_cycle_apply): New static variables.
9640         (apply_replacement): New static function.
9641         (recompute_todo_spec): New argument FOR_BACKTRACK.  All callers
9642         changed.  Handle DEP_REPLACE deps.
9643         (contributes_to_priority_p): False for replaceable deps.
9644         (must_restore_pattern_p, restore_pattern): New static functions.
9645         (schedule_insn): Use them.  Apply replacements for broken deps.
9646         (struct haifa_saved_data): Add new fields to keep track of
9647         replacements.
9648         (save_backtrack_point): Initialize them.
9649         (undo_replacements_for_backtrack): New static function.
9650         (restore_last_backtrack_point, free_topmost_backtrack_point):
9651         Use it and keep track of replacements.
9652         (perform_replacements_new_cycle, undo_all_replacements): New static
9653         functions.
9654         (schedule_block): Call these two as necessary.  Call
9655         find_modifiable_mems.
9656         (try_ready): Tweak the assert.  Check for DEP_POSTPONED.
9657         * sched-deps.c: Include "emit-rtl.h".
9658         (init_dep_1): Initialize DEP_NONREG, DEP_MULTIPLE and DEP_REPLACE.
9659         (dep_spec_p): True for DEP_REPLACE deps.
9660         (mark_as_hard): New static variable.
9661         (update_dep): Update DEP_NONREG and DEP_MULTIPLE.
9662         (add_dependence_list): New argument hard.  All callers changed.  Set
9663         and clear mark_as_hard around function body.
9664         (add_dependence_list_and_free): Likewise.
9665         (haifa_note_mem_dep): Set DEP_NONREG.
9666         (haifa_note_dep): Likewise if mark_as_hard is true.
9667         (sched_analyze_insn): Switch loop with if statement testing for
9668         sel_sched_p.
9669         (struct mem_inc_info): New.
9670         (attempt_change, parse_add_or_inc, find_inc, find_mem): New static
9671         functions.
9672         (find_modifiable_mems): New function.
9673         * sched-int.h (struct dep_replacement): New.
9674         (struct _dep): Add replace, nonreg and multiple fields.  Make type and
9675         cost bitfields.
9676         (UNKNOWN_DEP_COST): Change to match the bitfield.
9677         (DEP_NONREG, DEP_MULTIPLE, DEP_REPLACE): New macros.
9678         (DEP_POSTPONED): New macro.
9679         (DEP_CANCELLED): Renumber.
9680         (find_modifiable_mems): Declare.
9681         (enum SCHED_FLAGS): Add DONT_BREAK_DEPENDENCIES.
9682         * sched-rgn.c (init_ready_list): Set TODO_SPEC here.
9683         (new_ready): Don't set HARD_DEP, use DEP_POSTPONED.
9684         (debug_dependencies): Dump DEP_NONREG and DEP_MULTIPLE.
9685         * Makefile.in (sched-deps.o): Update dependencies.
9686         * config/c6x/c6x.c (in_hwloop): New static variable.
9687         (c6x_set_sched_flags): If it is true, add DONT_BREAK_DEPENDENCIES.
9688         (hwloop_optimize): Set and clear it around preliminary scheduling pass.
9690 2012-09-19  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
9692         * config/rs6000/rs6000-builtin.def: Add __builtin_ppc_get_timebase
9693         and __builtin_ppc_mftb.
9694         * config/rs6000/rs6000.c (rs6000_expand_zeroop_builtin): New function
9695         to expand an expression that calls a built-in without arguments.
9696         (rs6000_expand_builtin): Add __builtin_ppc_get_timebase and
9697         __builtin_ppc_mftb.
9698         (rs6000_init_builtins): Likewise.
9699         * config/rs6000/rs6000.md (rs6000_get_timebase): New pattern.
9700         (rs6000_get_timebase_ppc32): New pattern.
9701         (rs6000_mftb_<mode>): New pattern.
9703         * doc/extend.texi (PowerPC Built-in Functions): New section.
9704         (PowerPC AltiVec/VSX Built-in Functions): Move some built-ins
9705         unrelated to Altivec/VSX to the new section.
9707 2012-09-19  David Edelsohn  <dje.gcc@gmail.com>
9709         * rs6000.md (mac*): Remove extra spaces.
9710         (mulhw*): Same.
9712 2012-09-19  Oleg Endo  <olegendo@gcc.gnu.org>
9714         PR target/54089
9715         * config/sh/predicates.md (arith_reg_or_t_reg_operand): New predicate.
9716         * config/sh/sh.md (*rotcr): Use arith_reg_or_t_reg_operand predicate.
9717         Handle the case where one of the operands is T_REG.
9718         Add new pattern to handle MSB extraction.
9720 2012-09-19  Oleg Endo  <olegendo@gcc.gnu.org>
9722         PR target/54236
9723         * config/sh/sh.md (*addc): Add pattern to handle one bit left shifts.
9725 2012-09-19  Oleg Endo  <olegendo@gcc.gnu.org>
9727         * config/sh/sh.md (prologue, epilogue): Use braced strings.
9729 2012-09-19  Eric Botcazou  <ebotcazou@adacore.com>
9731         PR rtl-optimization/54290
9732         * reload1.c (choose_reload_regs): Also take into account secondary MEMs
9733         to remove address replacements for inherited reloads.
9734         (replaced_subreg): Move around.
9736 2012-09-19  David Edelsohn  <dje.gcc@gmail.com>
9738         * config/rs6000/aix61.h (TARGET_DEFAULT): Add MASK_PPC_GPOPT,
9739         MASK_PPC_GFXOPT, and MASK_MFCRF.
9741 2012-09-19  Richard Guenther  <rguenther@suse.de>
9743         * passes.c (init_optimization_passes): For -Og move
9744         pass_object_sizes inbetween CCP and copyprop.
9746 2012-09-19  Richard Guenther  <rguenther@suse.de>
9748         * tree-ssa-forwprop.c (get_prop_source_stmt): Simplify.
9750 2012-09-19  Jan Hubicka  <jh@suse.cz>
9752         * symtab.c (insert_to_assembler_name_hash): Do not insert
9753         register vars.
9754         (unlink_from_assembler_name_hash): NULL out pointers of unlinked var.
9755         (symtab_prevail_in_asm_name_hash): New.
9756         (symtab_initialize_asm_name_hash): Break out from ...
9757         (symtab_node_for_asm): ... here.
9758         (dump_symtab_base): Dump LTO file data.
9759         (verify_symtab_base): Register vars are not in symtab.
9760         * cgraph.h (symtab_initialize_asm_name_hash,
9761         symtab_prevail_in_asm_name_hash): New functions.
9762         (symtab_real_symbol_p): New inline.
9763         * lto-symtab.c: Do not include gt-lto-symtab.h.
9764         (lto_symtab_entry_def): Remove.
9765         (lto_symtab_entry_t): Remove.
9766         (lto_symtab_identifiers): Remove.
9767         (lto_symtab_free): Remove.
9768         (lto_symtab_entry_hash): Remove.
9769         (lto_symtab_entry_eq): Remove.
9770         (lto_symtab_entry_marked_p): Remove.
9771         (lto_symtab_maybe_init_hash_table): Remove.
9772         (resolution_guessed_p, set_resolution_guessed): New functions.
9773         (lto_symtab_register_decl): Only set resolution info.
9774         (lto_symtab_get, lto_symtab_get_resolution): Remove.
9775         (lto_symtab_merge): Reorg to work across symtab; do nothing if decls
9776         are same.
9777         (lto_symtab_resolve_replaceable_p): Reorg to work on symtab.
9778         (lto_symtab_resolve_can_prevail_p): Likewise; only real symbols can
9779         prevail.
9780         (lto_symtab_resolve_symbols): Reorg to work on symtab.
9781         (lto_symtab_merge_decls_2): Likewise.
9782         (lto_symtab_merge_decls_1): Likewise; add debug dumps.
9783         (lto_symtab_merge_decls): Likewise; do not merge at ltrans stage.
9784         (lto_symtab_merge_cgraph_nodes_1): Reorg to work on symtab.
9785         (lto_symtab_merge_cgraph_nodes): Likewise; do not merge at ltrans
9786         stage.
9787         (lto_symtab_prevailing_decl): Rewrite to lookup into symtab.
9788         * lto-streaer.h (lto_symtab_free): Remove.
9789         * lto-cgraph.c (add_references): Cleanup.
9790         * varpool.c (varpool_assemble_decl): Skip hard regs.
9792 2012-09-19  Richard Guenther  <rguenther@suse.de>
9794         PR other/53316
9795         * common/common-target.h (OPT_LEVELS_1_PLUS_NOT_DEBUG): Add.
9797 2012-09-19  Richard Guenther  <rguenther@suse.de>
9799         PR other/53316
9800         * common.opt (optimize_debug): New variable.
9801         (Og): New optimization level.
9802         * doc/invoke.texi (Og): Document.
9803         * opts.c (maybe_default_option): Add debug parameter.
9804         (maybe_default_options): Likewise.
9805         (default_options_optimization): Handle -Og.
9806         (common_handle_option): Likewise.
9807         * passes.c (gate_all_optimizations): Do not run with -Og.
9808         (gate_all_optimizations_g): New gate, run with -Og.
9809         (pass_all_optimizations_g): New container pass, run with -Og.
9810         (init_optimization_passes): Schedule pass_all_optimizations_g
9811         alongside pass_all_optimizations.
9813 2012-09-19  Richard Guenther  <rguenther@suse.de>
9815         PR tree-optimization/54132
9816         * tree-loop-distribution.c (classify_partition): Properly
9817         check dependences for memmove.
9818         * tree-data-ref.h (compute_affine_dependence): Declare.
9819         * tree-data-ref.c (compute_affine_dependence): Export.
9821 2012-09-19  Zhenqiang Chen <zhenqiang.chen@arm.com>
9823         PR middle-end/54364
9824         * bb-reorder.c (connect_better_edge_p): New added.
9825         (find_traces_1_round): When optimizing for size, ignore edge frequency
9826         and probability, and handle all in one round.
9827         (bb_to_key): Use bb->index as key when optimizing for size.
9828         (better_edge_p): The bb with smaller index is better when optimizing
9829         for size.
9830         (connect_traces): When optimizing for size, connect block n with
9831         block n + 1; connect trace m with trace m + 1 if falling through.
9832         (gate_handle_reorder_blocks): Enable bbro when optimizing for -Os.
9834 2012-09-19  Bin Cheng  <bin.cheng@arm.com>
9836         * fold-const.c (fold_truth_andor): Remove duplicated check on
9837         BRANCH_COST.
9839 2012-09-18  Eric Botcazou  <ebotcazou@adacore.com>
9841         PR middle-end/54617
9842         * expr.c (store_field): Handle a PARALLEL in more cases.
9844 2012-09-18  Segher Boessenkool  <segher@kernel.crashing.org>
9846         * config/rs6000/rs6000.md (sminsi3, smaxsi3, uminsi3, umaxsi3): Delete.
9847         (abssi2, abs<mode>2_isel, nabs<mode>2_isel, abssi2_nopower,
9848         nabs_nopower): Delete.
9849         (absdi2, absdi2_internal, nabsdi2): Delete.
9850         (smindi3, smaxdi3, umindi3, umaxdi3): Delete.
9852 2012-09-18  Georg-Johann Lay  <avr@gjlay.de>
9854         * config/avr/avr.md: Tidy up empty "".  Fix C code indentation.
9855         * config/avr/avr-fixed.md: Ditto.
9857 2012-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
9859         * config/rs6000/rs6000.c (print_operand) <'c'>: Remove.
9860         * config/rs6000/spe.md: Remove a leftover comment.
9862 2012-09-18  Jakub Jelinek  <jakub@redhat.com>
9864         PR target/54592
9865         * config/i386/i386.c (ix86_rtx_costs): Limit > UNITS_PER_WORD
9866         AND/IOR/XOR cost calculation to MODE_INT class modes.
9868 2012-09-18 Thomas Quinot  <quinot@adacore.com>
9870         * doc/invoke.texi: Document -fada-spec-parent.
9872 2012-09-18  Jakub Jelinek  <jakub@redhat.com>
9874         PR tree-optimization/54610
9875         * tree-ssa-forwprop.c: Include optabs.h.  Don't include
9876         tree-vectorizer.h.
9877         (simplify_vector_constructor): Don't use vect_gen_perm_mask,
9878         instead create the mask constant here.
9879         * Makefile.in (tree-ssa-forwprop.o): Depend on $(OPTABS_H).
9880         Don't depend on $(TREE_VECTORIZER_H).
9882 2012-09-18  Florian Weimer  <fweimer@redhat.com>
9884         * Makefile.in (BASIC_BLOCK_H): Add cfg-flags.def.
9886 2012-09-18  Richard Guenther  <rguenther@suse.de>
9888         * statistics.h (CXX_MEM_STAT_INFO): New define.
9889         * gimple.h (gimple_build_assign_with_ops_stat,
9890         gimple_build_assign_with_ops, gimple_build_assign_with_ops3):
9891         Turn into an overload of the function gimple_build_assign_with_ops.
9892         * gimple.c (gimple_build_assign_with_ops_stat): Rename to ...
9893         (gimple_build_assign_with_ops): ... this.
9894         * tree-ssa-loop-im.c (move_computations_stmt): Adjust.
9895         * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
9896         * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
9897         (vect_permute_load_chain): Likewise.
9898         * tree-vect-generic.c (expand_vector_divmod): Likewise.
9899         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
9900         (vect_recog_divmod_pattern): Likewise.
9901         (vect_recog_mixed_size_cond_pattern): Likewise.
9902         (adjust_bool_pattern): Likewise.
9903         * tree-vect-slp.c (vect_create_mask_and_perm): Likewise.
9904         * tree-vect-stmts.c (vectorizable_operation): Likewise.
9905         (permute_vec_elements): Likewise.
9906         (vectorizable_load): Likewise.
9908 2012-09-17  Paul Koning  <ni1d@arrl.net>
9910         * doc/invoke.text (-feliminate-unused-debug-types): Update to
9911         reflect that this is enabled by default.
9913 2012-09-17  Ben Cheng  <bccheng@google.com
9915         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Suppress the
9916         dynamic linker commands for statically linked programs.
9918 2012-09-17  Ulrich Weigand  <ulrich.weigand@linaro.org>
9920         * config/arm/arm.c (arm_rtx_costs_1): Handle vec_extract and vec_set
9921         patterns.
9922         * config/arm/arm.md ("vec_set<mode>_internal"): Support memory source
9923         operands, implemented via vld1 instruction.
9924         ("vec_extract<mode>"): Support memory destination operands, implemented
9925         via vst1 instruction.
9926         ("neon_vst1_lane<mode>"): Use UNSPEC_VST1_LANE instead of vec_select.
9927         * config/arm/predicates.md ("neon_lane_number"): Remove.
9929 2012-09-17  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9930             Ulrich Weigand  <ulrich.weigand@linaro.org>
9932         * config/arm/arm.c (output_move_neon): Update comment.
9933         Use vld1.64/vst1.64 instead of vldm/vstm where possible.
9934         (neon_vector_mem_operand): Support double-word modes.
9935         * config/arm/neon.md (*neon_mov VD): Call output_move_neon
9936         instead of output_move_vfp.  Change constraint from Uv to Un.
9938 2012-09-17  Richard Guenther  <rguenther@suse.de>
9940         PR lto/54598
9941         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Use ggc'ed
9942         FIXED_VALUE_TYPE instead of struct fixed_value.
9944 2012-09-17  Georg-Johann Lay  <avr@gjlay.de>
9946         * config/avr/avr.c (CONST_FIXED_P): Remove define.
9947         * config/avr/avr.md (add<mode>3): Use CONST_FIXED_P.
9949 2012-09-17  Georg-Johann Lay  <avr@gjlay.de>
9951         PR target/54607
9952         * config.gcc (tm_file,avr): Add avr/avr-arch.h.
9953         * config/avr/t-avr (gen-avr-mmcu-texi): Use CC_FOR_BUILD to
9954         compile.  Don't depend on TM_H.  Use CFLAGS_FOR_BUILD.
9955         * config/avr/avr.h (avr_arch, base_arch_s, mcu_type_s): Source out
9956         to...
9957         * config/avr/avr-arch.h: ...this new file.
9958         * config/avr/gen-avr-mmcu-texi.c: Include avr-arch.h, stdio.h,
9959         stdlib.h.
9960         * comparator: Make letters smaller than digits.
9961         * config/avr/avr-devices.c: Don't include headers if used in
9962         gen-avr-mmcu-texi.c.
9963         * doc/avr-mmcu.texi: Regenerate.
9965 2012-09-17  Georg-Johann Lay  <avr@gjlay.de>
9967         * rtl.h (CONST_FIXED_P): New predicate macro.
9969 2012-09-17  Eric Botcazou  <ebotcazou@adacore.com>
9971         * tree-cfgcleanup. (cleanup_control_expr_graph) <GIMPLE_COND>: Remove
9972         code doing propagation from degenerate PHI nodes.
9973         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): New function.
9974         (propagate_constants_for_unrolling): Likewise.
9975         (tree_unroll_loops_completely): If the current loop has been unrolled
9976         and its father isn't the entire function, propagate constants within
9977         the new basic blocks by means of propagate_constants_for_unrolling.
9979 2012-09-17  Jakub Jelinek  <jakub@redhat.com>
9981         PR tree-optimization/54563
9982         * tree-ssa-math-opts.c (execute_cse_sincos): Call
9983         gimple_purge_dead_eh_edges if last call has been changed.
9985 2012-09-17  Georg-Johann Lay  <avr@gjlay.de>
9987         PR target/54222
9988         * config/avr/avr.c (avr_out_plus_symbol): Fix typo if PLUS and PSImode.
9989         (avr_out_plus_1): Remove log comments from assembler output.
9991 2012-09-17  Ruben Buchatskiy  <ruben@ispras.ru>
9993         * config/arm/vfp.md (*thumb2_movdf_vfp): Require one of the operands
9994         to be a register.
9996 2012-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
9998         * calls.c (expand_call): Use emit_group_move for PARALLEL->PARALLEL
9999         moves.
10001 2012-09-15  Tom de Vries  <tom@codesourcery.com>
10003         * tree-vrp.c (extract_range_from_binary_expr_1): Fix bug in handling of
10004         LSHIFT_EXPR with shift range.  Handle more LSHIFT_EXPR cases with shift
10005         range.
10007 2012-09-15  Georg-Johann Lay  <avr@gjlay.de>
10009         PR target/54222
10010         * config/avr/avr-fixed.md (ALL2S, ALL4S, ALL24S, ALL124S,
10011         ALL124U): New mode iterators.
10012         (<code_stdname><mode>3): New insns for SS_PLUS, SS_MINUS.
10013         (<code_stdname><mode>3): New insns for US_PLUS, US_MINUS.
10014         (usneg<mode>2): New insns.
10015         (<code_stdname><mode>2): New expanders for SS_NEG, SS_ABS.
10016         (*<code_stdname><mode>2): New insns for SS_NEG, SS_ABS.
10017         * config/avr/avr-dimode.md (ALL8U, ALL8S): New mode iterators.
10018         (avr_out_plus64, avr_out_minus64): Use avr_out_plus instead.
10019         (<code_stdname><mode>3): New expanders for SS_PLUS, SS_MINUS.
10020         (<code_stdname><mode>3): New expanders for US_PLUS, US_MINUS.
10021         (<code_stdname><mode>3_insn): New insns.
10022         (<code_stdname><mode>3_const_insn): New insns.
10023         * config/avr/avr.md (cc): Add: plus. Remove: out_plus,
10024         out_plus_noclobber, minus.
10025         (length): Add: plus.  Remove: out_plus, out_plus_noclobber,
10026         plus64, minus, minus64.
10027         (abelian): New code_attr.
10028         (code_stdname): Handle: ss_plus, ss_minus, ss_neg, ss_abs,
10029         us_plus, us_minus, us_neg.
10030         (*add<mode>3, add<mode>3_clobber, add<mode>3, addpsi3, sub<mode>3):
10031         Use avr_out_plus to output.
10032         * config/avr/avr-protos.h (avr_out_plus): Change prototype.
10033         (avr_out_plus_noclobber, avr_out_minus): Remove.
10034         (avr_out_plus64, avr_out_minus64): Remove.
10035         * config/avr/avr.c (avr_out_plus_1): Add new default arguments
10036         code_sat, sign.  Saturate after operation if code_sat != UNKNOWN.
10037         (avr_out_plus_symbol): New static function.
10038         (avr_out_plus): Rewrite.
10039         (adjust_insn_length): Handle: ADJUST_LEN_PLUS.  Remove handling
10040         of: ADJUST_LEN_OUT_PLUS, ADJUST_LEN_PLUS64, ADJUST_LEN_MINUS,
10041         ADJUST_LEN_MINUS64, ADJUST_LEN_OUT_PLUS_NOCLOBBER.
10042         (notice_update_cc): Handle: CC_PLUS.  Remove handling of: CC_MINUS,
10043         CC_OUT_PLUS, CC_OUT_PLUS_NOCLOBBER
10044         (avr_out_plus_noclobber, avr_out_minus): Remove.
10045         (avr_out_plus64, avr_out_minus64): Remove.
10046         (avr_print_operand): Print raw REGNO if 'r' is used with REG.
10048 2012-09-15  Oleg Endo  <olegendo@gcc.gnu.org>
10050         * config/sh/sh.c (sh_rtx_costs): Add handling of MEM, SIGN_EXTEND,
10051         ZERO_EXTEND and PARALLEL cases.
10052         (sh_address_cost): Correct rtx parsing and tweak cost estimations.
10054 2012-09-14  Sandra Loosemore  <sandra@codesourcery.com>
10056         * doc/tm.texi.in (Stack Arguments): Update obsolete references
10057         to current_function_outgoing_args_size.
10058         (Function Entry): Likewise for current_function_pops_args,
10059         current_function_pretend_args_size,
10060         current_function_outgoing_args_size, and
10061         current_function_epilogue_delay_list.
10062         (Misc): Fix garbled sentence referencing nonexistent
10063         current_function_leaf_function.
10064         * doc/tm.texi: Regenerated.
10066 2012-09-14  Dehao Chen  <dehao@google.com>
10068          * tree-eh.c (goto_queue_node): New field.
10069         (record_in_goto_queue): New parameter.
10070         (record_in_goto_queue_label): New parameter.
10071         (lower_try_finally_dup_block): New parameter.
10072         (maybe_record_in_goto_queue): Update source location.
10073         (lower_try_finally_copy): Likewise.
10074         (honor_protect_cleanup_actions): Likewise.
10075         * gimplify.c (gimplify_expr): Reset the location to unknown.
10077 2012-09-14  David Edelsohn  <dje.gcc@gmail.com>
10079         * configure: Regenerated.
10081 2012-09-14  Walter Lee  <walt@tilera.com>
10083         * doc/invoke.texi (Option Summary): fix typesetting for -mcpu
10084         option for TILEPro and TILE-Gx.
10085         (TILE-Gx Options): Fix grammar and spellings in documentation for
10086         -mcmodel.
10088 2012-09-14  Marc Glisse  <marc.glisse@inria.fr>
10090         PR c++/54427
10091         * fold-const.c (fold_unary_loc): Disable for VECTOR_TYPE.
10092         (fold_binary_loc): Likewise.
10093         * gimple-fold.c (and_comparisons_1): Handle VECTOR_TYPE.
10094         (or_comparisons_1): Likewise.
10096 2012-09-14  Richard Earnshaw  <rearnsha@arm.com>
10098         PR target/54516
10099         PR rtl-optimization/54540
10100         * reload.c (find_dummy_reload): Don't use OUT as a reload reg
10101         for IN if it overlaps a fixed register.
10103 2012-09-14  Eric Botcazou  <ebotcazou@adacore.com>
10105         PR rtl-optimization/44194
10106         * calls.c (expand_call): In the PARALLEL case, copy the return value
10107         into pseudos instead of spilling it onto the stack.
10108         * emit-rtl.c (adjust_address_1): Rename ADJUST into ADJUST_ADDRESS and
10109         add new ADJUST_OBJECT parameter.
10110         If ADJUST_OBJECT is set, drop the underlying object if it cannot be
10111         proved that the adjusted memory access is still within its bounds.
10112         (adjust_automodify_address_1): Adjust call to adjust_address_1.
10113         (widen_memory_access): Likewise.
10114         * expmed.c (store_bit_field_1): Call adjust_bitfield_address instead
10115         of adjust_address.  Do not drop the underlying object of a MEM.
10116         (store_fixed_bit_field): Likewise.
10117         (extract_bit_field_1): Likewise.  Fix oversight in recursion.
10118         (extract_fixed_bit_field): Likewise.
10119         * expr.h (adjust_address_1): Adjust prototype.
10120         (adjust_address): Adjust call to adjust_address_1.
10121         (adjust_address_nv): Likewise.
10122         (adjust_bitfield_address): New macro.
10123         (adjust_bitfield_address_nv): Likewise.
10124         * expr.c (expand_assignment): Handle a PARALLEL in more cases.
10125         (store_expr): Likewise.
10126         (store_field): Likewise.
10128         * dse.c: Fix typos in the head comment.
10130 2012-09-14  Christian Bruel  <christian.bruel@st.com>
10132         PR target/54546
10133         * config/sh/sh-protos.h (sh_need_epilogue): Delete.
10134         (sh_can_use_simple_return_p): Declare.
10135         * config/sh/sh.c (sh_can_use_simple_return_p): Define.
10136         (sh_need_epilogue, sh_need_epilogue_known): Delete.
10137         (sh_output_function_epilogue): Remove sh_need_epilogue_known.
10138         * config/sh/sh.md (simple_return, return): Define.
10139         (epilogue): Use inline return rtl.
10140         (sh_expand_epilogue): Cleanup parameters boolean type.
10141         * config/sh/iterators.md (any_return): New iterator.
10143 2012-09-14  Christian Bruel  <christian.bruel@st.com>
10145         * config/sh/predicates.md (t_reg_operand): Check REG_P for SUBREG.
10146         * config/sh/sh.c (sequence_insn_p): Check INSNP_P for SEQUENCE.
10148 2012-09-14  Jakub Jelinek  <jakub@redhat.com>
10150         PR target/54564
10151         * config/i386/sse.md (fmai_vmfmadd_<mode>): Use (match_dup 1)
10152         instead of (match_dup 0) as second argument to vec_merge.
10153         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>): Likewise.
10154         Remove third alternative.
10155         (*fmai_fnmadd_<mode>, *fmai_fnmsub_<mode>): Likewise.  Negate
10156         operand 2 instead of operand 1, but put it as first argument of fma.
10157         * config/i386/fmaintrin.h (_mm_fnmadd_sd, _mm_fnmadd_ss,
10158         _mm_fnmsub_sd, _mm_fnmsub_ss): Negate the second argument instead
10159         of the first.
10161 2012-09-14  Richard Guenther  <rguenther@suse.de>
10163         PR tree-optimization/54565
10164         * passes.c (init_optimization_passes): Adjust comments.
10165         (execute_function_todo): Do not execute execute_update_addresses_taken
10166         before processing TODO_rebuild_alias.
10167         * tree-ssa-ccp.c (do_ssa_ccp): Schedule TODO_update_address_taken.
10169 2012-09-14  Richard Guenther  <rguenther@suse.de>
10171         * tree-vrp.c (register_new_assert_for): Simplify for backward walk.
10172         (find_assert_locations_1): Walk the basic-block backwards, properly
10173         add/prune from live.  Use live for asserts derived from stmts.
10175 2012-09-14  Marc Glisse  <marc.glisse@inria.fr>
10177         * tree-ssa-forwprop.c (simplify_bitfield_ref): Call
10178         get_prop_source_stmt.
10179         (simplify_permutation): Likewise.
10180         (simplify_vector_constructor): Likewise.
10182 2012-09-14  Richard Guenther  <rguenther@suse.de>
10184         * builtin-types.def (BT_FN_CONST_STRING): Add.
10185         * builtins.def (BUILT_IN_FILE, BUILT_IN_FUNCTION,
10186         BUILT_IN_LINE): New builtins.
10187         * gimplify.c (gimplify_call_expr): Expand them.
10188         * doc/extend.texi (__builtin_LINE, __builtin_FUNCTION,
10189         __builtin_FILE): Document.
10191 2012-09-13  Anthony Green  <green@moxielogic.com>
10193         * config/moxie/moxie.h (LINK_SPEC): Add bi-endian support.
10194         (MULTILIB_DEFAULTS): Define.
10195         (ASM_SPEC): Define.
10196         (BYTES_BIG_ENDIAN, WORDS_BIG_ENDIAN): Add bi-endian support.
10197         (TARGET_CPU_CPP_BUILTINS): Add __MOXIE_LITTLE_ENDIAN__ and
10198         __MOXIE_BIG_ENDIAN__.
10199         * config/moxie/t-moxie (MULTILIB_DIRNAMES, MULTILIB_OPTIONS): Define.
10200         * config/moxie/moxie.opt: New file.
10201         * doc/invoke.texi (Moxie Options): Add section documenting -mel
10202         and -meb.
10204 2012-09-13  Paolo Carlini  <paolo.carlini@oracle.com>
10205             Manuel López-Ibáñez  <manu@gcc.gnu.org>
10207         PR c++/53210
10208         * doc/invoke.texi ([Winit-self]): Document as enabled by -Wall in C++.
10210 2012-09-13  Eric Botcazou  <ebotcazou@adacore.com>
10212         * config/sparc/predicates.md (input_operand): Do not consider TImode
10213         constants as 1-instruction integer constants.
10214         Use register_or_zero_operand instead of register_operand and tidy up.
10215         * config/sparc/sparc.md (movti): New expander.
10216         (movti_insn_sp64): New instruction.
10217         (movti_insn_sp64_hq): Likewise.
10218         (TImode splitters): New splitters.
10219         * config/sparc/sparc.c (sparc_expand_move) <TImode>: New case.
10220         (sparc_legitimate_address_p): Return 0 for REG+REG in TImode.
10222         * config/sparc/sparc-protos.h (arith_double_4096_operand): Delete.
10223         (arith_4096_operand): Likewise.
10224         (zero_operand): Likewise.
10225         (fp_zero_operand): Likewise.
10226         (reg_or_0_operand): Likewise.
10228 2012-09-13  Jakub Jelinek  <jakub@redhat.com>
10230         * configure.ac (CXXFLAGS): Remove -O2 when not bootstrapping.
10231         * configure: Regenerated.
10233 2012-08-13  Uros Bizjak  <ubizjak@gmail.com>
10235         * config/i386/i386.md (prefetch): Do not assert mode of operand 0.
10236         (*prefetch_sse_<mode>): Do not set mode of address_operand predicate.
10237         Rename to ...
10238         (*prefetch_sse): ... this.
10239         (*prefetch_3dnow_<mode>): Do not set mode of address_operand predicate.
10240         Rename to ...
10241         (*prefetch_3dnow): ... this.
10243 2012-09-13  Steven Bosscher  <steven@gcc.gnu.org>
10245         * ipa-pure-const.c (state_from_flags, local_pure_const): Use
10246         current_function_name instead of lang_hooks.decl_printable_name.
10248         * function.h (fndecl_name): New prototype.
10249         * function.c (fndecl_name): New function.
10250         * vecir.h (cgraph_node_p): New standard IR VEC type.
10251         * trans-mem.c (cgraph_node_p): No need anymore to define it here.
10252         * ipa-utils.h (ipa_get_nodes_in_cycle): New prototype.
10253         * ipa-utils.c (ipa_get_nodes_in_cycle): New function.
10254         * ipa-reference.c: Don't include langhooks.h, and certainly not twice.
10255         Fix many formatting issues (long lines, short lines, spacing, etc.).
10256         (get_static_name): Use fndecl_name.
10257         (dump_static_vars_set_to_file): New function split out from propagate.
10258         (union_static_var_sets): New function, union two sets and collapse
10259         to all_module_statics as quickly as possible.
10260         (intersect_static_var_sets): New function, similar to above.
10261         (copy_static_var_set): Renamed from copy_global_bitmap and rewritten
10262         to allocate a copy on the same bitmap_obstack as the source set.
10263         (propagate_bits): Simplify, and clarify by using union_static_var_sets.
10264         (generate_summary): Remove bm_temp.  Print UID of promotable globals.
10265         (read_write_all_from_decl): Use pass-by-reference, bless C++.
10266         (get_read_write_all_from_node): New function, split out from propagate.
10267         (propagate): Simplify and clarify with helper functions.  Use
10268         ipa_get_nodes_in_cycle to walk all nodes in a reduced node.
10269         (ipa_reference_read_optimization_summary): Use fndecl_name instead of
10270         lang_hooks.decl_printable_name.
10272         * rtl.h (print_rtl_single_with_indent): New prototype.
10273         * print-rtl.c (print_rtl_single_with_indent): New function.
10274         * cfghooks.h (empty_block_p, split_block_before_cond_jump): New hooks.
10275         * cfghooks.c (empty_block_p, split_block_before_cond_jump): Implement.
10276         * cfgrtl.c (rtl_block_empty_p, rtl_split_block_before_cond_jump):
10277         Implement RTL specific hooks.
10278         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Register the new hooks.
10279         * tree-cfg.c (gimple_empty_block_p,
10280         gimple_split_block_before_cond_jump): Implement GIMPLE specific hooks.
10281         (gimple_cfg_hooks): Register the new hooks.
10282         * tree-ssa-phiopt.c (empty_block_p): Remove in favor of new hook.
10284 2012-09-13  Richard Guenther  <rguenther@suse.de>
10286         * tree-ssa-sccvn.h (enum vn_kind): New.
10287         (vn_get_stmt_kind): Likewise.
10288         * tree-ssa-sccvn.c (vn_get_stmt_kind): New function, adjust
10289         ADDR_EXPR handling.
10290         (visit_use): Use it.
10291         * tree-ssa-pre.c (compute_avail): Likewise, simplify further.
10293 2012-09-13  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
10295         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
10296         for targets bdver1, bdver2, btver1 and btver2.
10298 2012-09-13  Christophe Lyon  <christophe.lyon@linaro.org>
10299             Richard Earnshaw  <rearnsha@arm.com>
10301         * config/arm/arm.md (arm_rev): Factorize thumb1, thumb2 and arm
10302         variants for rev instruction..
10303         (thumb1_rev): Delete pattern.
10304         (arm_revsh): New pattern to support builtin_bswap16.
10305         (arm_rev16, bswaphi2): Likewise.
10307 2012-09-12  Teresa Johnson  <tejohnson@google.com>
10309         PR gcov-profile/54487
10310         * configure.ac (HOST_HAS_F_SETLKW): Set based on compile
10311         test using F_SETLKW with fcntl.
10312         * configure, config.in: Regenerate.
10314 2012-09-12  Jan Hubicka  <jh@suse.cz>
10316         PR fortran/48636
10317         * ipa-inline-analysis.c (dump_inline_hints): Dump loop stride.
10318         (set_hint_predicate): New function.
10319         (reset_inline_summary): Reset loop stride.
10320         (remap_predicate_after_duplication): New function.
10321         (remap_hint_predicate_after_duplication): New function.
10322         (inline_node_duplication_hook): Update.
10323         (dump_inline_summary): Dump stride summaries.
10324         (estimate_function_body_sizes): Compute strides.
10325         (remap_hint_predicate): New function.
10326         (inline_merge_summary): Use it.
10327         (inline_read_section): Read stride.
10328         (inline_write_summary): Write stride.
10329         * ipa-inline.c (want_inline_small_function_p): Handle strides.
10330         (edge_badness): Likewise.
10331         * ipa-inline.h (inline_hints_vals): Add stride hint.
10332         (inline_summary): Update stride.
10334 2012-09-12  Uros Bizjak  <ubizjak@gmail.com>
10336         * config/i386/i386.c (x86_prefetch_sse): Change to unsigned char.
10337         * config/i386/i386.h (x86_prefetch_sse): Ditto.
10339 2012-09-12  H.J. Lu  <hongjiu.lu@intel.com>
10341         PR target/54445
10342         * config/i386/predicates.md (x86_64_immediate_operand): Allow
10343         negative offset for UNSPEC_DTPOFF/UNSPEC_NTPOFF.
10345 2012-09-12  Jan Hubicka  <jh@suse.cz>
10347         * common.opt (flto-partition): Add "max".
10348         * invoke.texi (flto-partition): Document "max"
10350 2012-09-12  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
10352         * config/i386/i386.md : Comments on fma4 instruction selection
10353         reflect requirement on register pressure based cost model.
10355         * config/i386/driver-i386.c (host_detect_local_cpu): fma4
10356         flag is set-reset as informed by the cpuid flag.
10358         * config/i386/i386.c (processor_alias_table): fma4
10359         flag is enabled for bdver2.
10361 2012-09-12  Richard Guenther  <rguenther@suse.de>
10363         PR tree-optimization/54489
10364         * tree-ssa-pre.c: Include domwalk.h.
10365         (in_fre): Remove.
10366         (sccvn_valnum_from_value_id): New function.
10367         (debug_bitmap_sets_for): Simplify.
10368         (get_representative_for): Properly initialize the SCCVN valnum.
10369         (create_expression_by_pieces): Likewise.
10370         (insert_into_preds_of_block): Likewise.
10371         (can_PRE_operation): Remove.
10372         (make_values_for_phi): Simplify.
10373         (compute_avail): Likewise.
10374         (do_SCCVN_insertion): Remove.
10375         (eliminate_avail, eliminate_push_avail, eliminate_insert):
10376         New functions.
10377         (eliminate): Split and perform a domwalk.
10378         (eliminate_bb): Former eliminate part that is now dom-enter.
10379         (eliminate_leave_block): New function.
10380         (fini_eliminate): Likewise.
10381         (init_pre): Simplify.
10382         (fini_pre): Likewise.
10383         (execute_pre): Fold into do_pre and do_fre.
10384         (do_pre): Consume execute_pre.
10385         (do_fre): Likewise.
10386         * Makefile.in (tree-ssa-pre.o): Add domwalk.h dependency.
10388 2012-09-12  Diego Novillo  <dnovillo@google.com>
10390         * vec.h: Remove compatibility notes for previous distinction
10391         between vectors of objects and vectors of pointers.
10393 2012-09-12  Christian Bruel  <christian.bruel@st.com>
10395         * config/sh/newlib.h (NO_IMPLICIT_EXTERN_C): Define.
10397 2012-09-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10399         * rtl.h (FFS, FLOAT, ABS, PC): Don't undef.
10400         * system.h (FFS, FLOAT, ABS, PC): Undef.
10402 2012-09-12  Richard Guenther  <rguenther@suse.de>
10404         PR middle-end/54553
10405         * common.opt (finline): Mark with Optimization.
10407 2012-09-12  Jakub Jelinek  <jakub@redhat.com>
10409         * config.gcc: Obsolete picochip-*.
10411 2012-09-12  Nathan Froyd  <froydnj@gcc.gnu.org>
10412             Hans-Peter Nilsson  <hp@bitrange.com>
10414         * config/mmix/mmix.h (MMIX_REG_OK_STRICT): Delete.
10415         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P): Delete.
10416         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
10417         * config/mmix/mmix-protos.h (mmix_intval): Declare.
10418         (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
10419         (mmix_const_double_ok_for_letter_p): Delete.
10420         * config/mmix/constraints.md: New file.
10421         * config/mmix/mmix.md: Include it.
10422         (iordi3): Fix typo; use "I" instead of undefined "H" constraint.
10423         ("*call_real"): Update comment about not using the "p" constraint.
10424         * config/mmix/predicates.md (mmix_reg_or_8bit_operand): Use
10425         satisfies_constraint_I.
10426         (mmix_address_operand): New predicate.
10427         (mmix_symbolic_or_address_operand): Use it instead of address_operand.
10428         * config/mmix/mmix.c: #include tm-constrs.h.
10429         (mmix_intval): Delete declaration.  Make non-static.
10430         (mmix_const_ok_for_letter_p, mmix_extra_constraint): Delete.
10431         (mmix_const_double_ok_for_letter_p): Delete.
10432         (mmix_legitimate_address_p): Use satisfies_constraint_I.
10433         (mmix_print_operand_address): Likewise.
10434         (mmix_emit_sp_add): Adjust to use insn_const_int_ok_for_constraint
10435         when matching "L" constraint.
10437 2012-09-11  Steven Bosscher  <steven@gcc.gnu.org>
10439         * tree.h (expand_case): Move prototype ...
10440         * expr.h (expand_case): ...here.
10441         (expand_sjlj_dispatch_table): New prototype.
10442         * stmt.c: Include pointer-set.h instead of bitmap.h.
10443         (expand_case): Use a pointer set instead of a bitmap for
10444         already-seen labels.  Fold label values here.
10445         (add_case_node): Don't fold label values here.
10446         (expand_sjlj_dispatch_table): New function.
10447         * except.c (sjlj_emit_dispatch_table): Use it.
10449 2012-09-11  Marc Glisse  <marc.glisse@inria.fr>
10451         * tree-ssa-forwprop.c (simplify_vector_constructor): New function.
10452         (ssa_forward_propagate_and_combine): Call it.
10454 2012-09-11  Diego Novillo  <dnovillo@google.com>
10456         * var-tracking.c (vt_add_function_parameter): Adjust for VEC changes.
10458 2012-09-11  Dominique Dhumieres  <dominiq@lps.ens.fr>
10460         * config/darwin.c (darwin_asm_named_section): Adjust for VEC changes.
10461         (darwin_asm_dwarf_section): Likewise.
10463 2012-09-11  Martin Jambor  <mjambor@suse.cz>
10465         * dwarf2out.c (dwarf2out_abstract_function): Do not change cfun.
10466         (premark_used_types): New parameter fun, use it instead of cfun.
10467         (gen_subprogram_die): Use DECL_STRUCT_FUNCTION (decl) instead of cfun,
10468         also pass it to premark_used_types.
10470 2012-09-11  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10472         * doc/sourcebuild.texi (arm_neon_v2_ok): Adjust command line.
10474 2012-09-11  Tobias Burnus  <burnus@net-b.de>
10476         * doc/sourcebuild.texi (arm_neon_v2_ok): Fix @anchor.
10478 2012-09-11  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
10479             Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
10481         * config/arm/neon.md (fma<VCVTF:mode>4): New pattern.
10482         (*fmsub<VCVTF:mode>4): Likewise.
10483         * doc/sourcebuild.texi (arm_neon_v2_ok, arm_neon_v2_hw):  Document it.
10485 2012-09-11  Aldy Hernandez  <aldyh@redhat.com>
10487         PR middle-end/54149
10488         * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set): Only set
10489         flag for writes.
10491 2012-09-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10493         PR tree-optimization/55492
10494         * doc/invoke.texi (max-slsr-cand-scan): New description.
10495         * gimple-ssa-strength-reduction.c (find_basis_for_candidate): Limit
10496         the time spent searching for a basis.
10497         * params.def (PARAM_MAX_SLSR_CANDIDATE_SCAN): New param.
10499 2012-09-11  Richard Guenther  <rguenther@suse.de>
10501         * gimple.h (gimple_register_type): Remove.
10502         (print_gimple_types_stats): Adjust prototype.
10503         * lto-streamer.h (print_lto_report): Likewise.
10504         * lto-streamer.c (print_lto_report): Adjust.
10505         * gimple.c (gimple_types, type_hash_cache, enum gtc_mode,
10506         struct type_pair_d, lookup_type_pair, struct sccs,
10507         next_dfs_num, gtc_next_dfs_num, struct gimple_type_leader_entry_s,
10508         gimple_type_leader, gimple_lookup_type_leader, compare_type_names_p,
10509         gtc_visit, gimple_types_compatible_p_1, gimple_types_compatible_p,
10510         visit, iterative_hash_name, struct type_hash_pair,
10511         type_hash_pair_compare, iterative_hash_gimple_type, gimple_type_hash,
10512         gimple_type_eq, gimple_register_type_1, gimple_register_type):
10513         Move to lto/lto.c.
10514         (print_gimple_types_stats): Adjust.
10515         (free_gimple_type_tables): Likewise.
10517 2012-09-11  Richard Guenther  <rguenther@suse.de>
10519         * graphite-scop-detection.c (move_sd_regions): Adjust for VEC changes.
10520         (scopdet_basic_block_info): Likewise.
10521         (build_scops_1): Likewise.
10522         (limit_scops): Likewise.
10524 2012-09-11  Richard Guenther  <rguenther@suse.de>
10526         PR middle-end/54515
10527         * gimple.c (get_base_address): Do not return NULL_TREE apart
10528         from for WITH_SIZE_EXPR.
10529         * gimple-fold.c (canonicalize_constructor_val): Do not call
10530         get_base_address when not necessary.
10532 2012-09-10  Andrew Pinski  <apinski@cavium.com>
10534         PR tree-opt/54362
10535         * trans-mem.c (thread_private_new_memory): Handle COND_EXPR also.
10537 2012-09-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
10539         * config/m68k/m68k.c (m68k_sched_dfa_post_advance_cycle): Support
10540         starting scheduling from a pre-existing state.
10542 2012-09-10  Diego Novillo  <dnovillo@google.com>
10544         * vec.h (vec_t::quick_push): Remove overload that accepts 'T *'.
10545         Update all users.
10546         (vec_t::safe_push): Likewise.
10547         (vec_t::quick_insert): Likewise.
10548         (vec_t::lower_bound): Likewise.
10549         (vec_t::safe_insert): Likewise.
10550         (vec_t::replace): Change second argument to 'T &'.
10552 2012-09-10  Maciej W. Rozycki  <macro@codesourcery.com>
10554         * config/rs6000/rs6000.md: Move a splitter next to its insn.
10556 2012-09-10  Oleg Endo  <olegendo@gcc.gnu.org>
10558         PR target/54089
10559         * config/sh/sh.h (SH_DYNAMIC_SHIFT_COST): Set always to 1 if
10560         dynamic shifts are available.
10561         (SHIFT_COUNT_TRUNCATED): Always define to 0.  Correct comment.
10562         * config/sh/sh.c (ashl_lshr_seq, ext_ashl_lshr_seq): Add comments.
10563         * config/sh/predicates.md (shift_count_operand): Allow
10564         arith_reg_operand even if TARGET_DYNSHIFT is false.
10565         * config/sh/sh.md (ashlsi3, lshrsi3): Expand library call patterns
10566         if needed.
10567         (ashlsi3_d_call, lshrsi3_d_call): New insns.
10569 2012-09-10  Richard Sandiford  <rdsandiford@googlemail.com>
10571         * ira.c (setup_pressure_classes): Handle synonymous classes.
10573 2012-09-10  Marc Glisse  <marc.glisse@inria.fr>
10575         * tree-ssa-forwprop.c (simplify_bitfield_ref): New function.
10576         (ssa_forward_propagate_and_combine): Call it.
10578 2012-09-10  Steve Ellcey  <sellcey@mips.com>
10580         * config.gcc: Add mips*-mti-linux* target
10581         Handle with_synci like other options.
10582         * config/mips/gnu-user64.h (LINUX64_DRIVER_SELF_SPECS): New.
10583         (DRIVER_SELF_SPECS): Define in terms of LINUX64_DRIVER_SELF_SPECS.
10584         * config/mips/mips.h (MIPS_ISA_SYNCI_SPEC): New.
10585         * config/mips/mti-linux.h: New file.
10586         * config/mips/t-mti-linux: New file.
10588 2012-09-10  Marc Glisse  <marc.glisse@inria.fr>
10590         * tree-ssa-forwprop.c (simplify_permutation): Handle CONSTRUCTOR.
10592 2012-09-10  Martin Jambor  <mjambor@suse.cz>
10594         * params.def (PARAM_IPA_MAX_AGG_ITEMS): New parameter.
10595         * ipa-prop.c: Include params.h.
10596         (IPA_MAX_AFF_JF_ITEMS): Removed.
10597         (determine_known_aggregate_parts): Use param value of
10598         PARAM_IPA_MAX_AGG_ITEMS instead of IPA_MAX_AFF_JF_ITEMS.
10599         * Makefile.in (ipa-prop.o): Add PARAMS_H dependency.
10601 2012-09-10  Richard Guenther  <rguenther@suse.de>
10603         PR tree-optimization/54520
10604         * tree-ssa-threadupdate.c (def_split_header_continue_p):
10605         Properly consider sub-loops.
10607 2012-09-10  Richard Henderson  <rth@redhat.com>
10609         * config/alpha/predicates.md (small_symbolic_operand): Disallow
10610         large offsets.
10612 2012-09-10  Georg-Johann Lay  <avr@gjlay.de>
10614         PR target/54536
10615         * config/avr/avr-mcus.def (at90usb1287): Set LIBRARY_NAME to "usb1287".
10617 2012-09-10  Jan Hubicka  <jh@suse.cz>
10619         * lto-cgraph.c (compute_ltrans_boundary): Do not care about aliases.
10620         * symtab.c (symtab_make_decl_local): Remove user defined visibility
10621         when making symbol local.
10623 2012-09-09  Mark Kettenis  <kettenis@gnu.org>
10625         * config/openbsd-stdint.h (INTMAX_TYPE, UINTMAX_TYPE): Define.
10627 2012-09-09  Jan Hubicka  <jh@suse.cz>
10629         * passes.c (ipa_write_summaries_1): Set state;
10630         do not call compute_ltrans_boundary.
10631         (ipa_write_optimization_summaries): Likewise.
10632         (ipa_write_summaries): compute_ltrans_boundary here.
10633         * lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap.
10634         (compute_ltrans_boundary): Update prototype.
10636 2012-09-09  Ulrich Drepper  <drepper@gmail.com>
10638         * config/i386/cpuid.h: Define signature_*_e[bcd]x macros for
10639         matching results of level 0 calls to __cpuid to processor
10640         manufacturers.
10641         * config/i386/driver-i386.c (vendor_signatures): Removed.
10642         (processor_signatures): Removed.
10643         (host_detect_local_cpu): Replace uses of now-removed SIG_*
10644         constants with the new signature_*_ebx constants.
10646 2012-09-08  Jan Hubicka  <jh@suse.cz>
10648         Replace cgraph_node_set and varpool_node_set by symtab_node_encoder
10649         in partitioning.
10650         * tree-pass.h (cgraph_node_set_def, varpool_node_set_def): Remove
10651         forward declaration.
10652         (lto_symtab_encoder_d): Forward declare.
10653         (ipa_write_optimization_summaries): Update.
10654         * lto-cgraph.c (lto_symtab_encoder_new): Do not initialize
10655         body, initializer and in_partition.
10656         (lto_symtab_encoder_delete): Update.
10657         (lto_symtab_encoder_encode): Update.
10658         (lto_symtab_encoder_lookup): Move inline.
10659         (lto_symtab_encoder_delete_node): New function.
10660         (lto_symtab_encoder_encode_body_p, lto_set_symtab_encoder_encode_body,
10661         lto_symtab_encoder_encode_initializer_p,
10662         lto_set_symtab_encoder_encode_initializer,
10663         lto_symtab_encoder_in_partition_p,
10664         lto_symtab_encoder_in_partition_p): Update.
10665         (compute_ltrans_boundary): Take encoder as an input.
10666         * passes.c (ipa_write_summaries_1): Update.
10667         (ipa_write_summaries_1): Update.
10668         (ipa_write_summaries): Update.
10669         (ipa_write_optimization_summaries): Update.
10670         * lto-streamer.c (print_lto_report): Report number of cgraph nodes.
10671         * lto-streamer.h (lto_stats_d): Replace num_output_cgraph_nodes by
10672         num_output_symtab_nodes.
10673         (lto_encoder_entry): New structure.
10674         (struct lto_symtab_encoder_d): Reorg.
10675         (lto_symtab_encoder_delete_node): Declare.
10676         (lto_symtab_encoder_lookup): Bring inline.
10677         (compute_ltrans_boundary): Update.
10678         (lto_symtab_encoder_size): Update.
10679         (lsei_node, lsei_cgraph_node, lsei_varpool_node): Update.
10680         (lto_symtab_encoder_deref): Update.
10682 2012-09-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10684         * config/pa/pa.c (hppa_rtx_costs): Update costs for large
10685         integer modes.
10687 2012-09-08  Andi Kleen  <ak@linux.intel.com>
10689         * lto/lto.c (do_whole_program_analysis): Fix last broken patch.
10691 2012-09-08  Andi Kleen  <ak@linux.intel.com>
10693         * common.opt (-fmem-report-wpa): Add
10694         * doc/invoke.texi (-fmem-report-wpa): Document.
10695         * lto/lto.c (do_whole_program_analysis): Run mem_report
10696         when mem_report_wpa is set.
10698 2012-09-07  Anthony Green  <green@moxielogic.com>
10700         * config/moxie/moxie.c (moxie_expand_prologue): Optimize prologue
10701         for functions with large static stack requirements.
10702         (moxie_expand_epilogue): Use $r12 instead of $r5 for pulling saved
10703         values off of the stack.
10705 2012-09-07  Nick Clifton  <nickc@redhat.com>
10707         * config/v850/v850.h (DBX_DEBUGGING_INFO): Define.
10708         (ASM_GENERATE_INTERNAL_LABEL): Define if not already provided.
10709         * config/v850/v850.c (compute_register_save_size): Always include
10710         the link pointer.
10711         (increment_stack): New function - emits insns to increment or
10712         decrement the stack pointer.
10713         (expand_prologue, expand_epilogue): Use it.
10714         (expand_prologue): Set the function stack size, if requested.
10715         (v850_debug_unwind_info): New function.
10716         (TARGET_DEBUG_UNWIND_INFO): Define.
10718 2012-09-07  Richard Earnshaw  <rearnsha@arm.com>
10720         PR tree-ssa/54295
10721         * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
10722         Sign-extension of a zero-extended value can be simplified to
10723         just zero-extension.
10725 2012-09-07  Richard Guenther  <rguenther@suse.de>
10727         PR middle-end/53667
10728         * tree-ssa-structalias.c (handle_rhs_call): Properly clobber
10729         EAF_NOESCAPED arguments.  Transitively close non-EAF_DIRECT
10730         arguments separately.
10732 2012-09-07  Steven Bosscher  <steven@gcc.gnu.org>
10734         * bitmap.c (bitmap_last_set_bit): Rewrite to return the correct bit.
10736         * graphite.c (print_global_statistics): Use EDGE_COUNT instead
10737         of VEC_length.
10738         (print_graphite_scop_statistics): Likewise.
10739         * graphite-scop-detection.c (get_bb_type): Use single_succ_p.
10740         (print_graphite_scop_statistics): Use EDGE_COUNT, not VEC_length.
10741         (canonicalize_loop_closed_ssa): Use single_pred_p.
10743         * alias.c (reg_seen): Make this an sbitmap.
10744         (record_set, init_alias_analysis): Update.
10746         * tree-ssa-coalesce.c (ssa_conflicts_dump): Fix dumping.
10748 2012-09-07  Tom de Vries  <tom@codesourcery.com>
10750         PR tree-optimization/53986
10751         * tree-vrp.c (extract_range_from_multiplicative_op_1): Allow
10752         LSHIFT_EXPR.
10753         (extract_range_from_binary_expr_1): Handle LSHIFT with constant
10754         range as shift amount.
10756 2012-09-07  Segher Boessenkool  <segher@kernel.crashing.org>
10758         * config/rs6000/aix43.h (RS6000_CALL_GLUE): Delete.
10759         * config/rs6000/aix51.h (RS6000_CALL_GLUE): Delete.
10760         * config/rs6000/aix52.h (RS6000_CALL_GLUE): Delete.
10761         * config/rs6000/aix53.h (RS6000_CALL_GLUE): Delete.
10762         * config/rs6000/aix61.h (RS6000_CALL_GLUE): Delete.
10763         * config/rs6000/freebsd64.h (RS6000_CALL_GLUE): Delete.
10764         * config/rs6000/linux64.h (RS6000_CALL_GLUE): Delete.
10765         * config/rs6000/rs6000.c (print_operand) ['.']: Delete.
10766         * config/rs6000/rs6000.h (RS6000_CALL_GLUE): Delete.
10767         * config/rs6000/rs6000.md (tls_gd_aix<TLSmode:tls_abi_suffix>):
10768         Replace %. with nop.
10769         (tls_gd_call_aix<TLSmode:tls_abi_suffix>): Ditto.
10770         (tls_ld_aix<TLSmode:tls_abi_suffix>): Ditto.
10771         (tls_ld_call_aix<TLSmode:tls_abi_suffix>): Ditto.
10772         (call_nonlocal_aix32): Ditto.
10773         (call_nonlocal_aix64): Ditto.
10774         (call_value_nonlocal_aix32): Ditto.
10775         (call_value_nonlocal_aix64): Ditto.
10777 2012-09-06  Andi Kleen  <ak@linux.intel.com>
10779         * doc/invoke.texi (-ffat-lto-objects): Clarify that gcc-ar
10780         et.al. should be used.
10782 2012-09-06  Andi Kleen  <ak@linux.intel.com>
10784         * lto-streamer.h (res_pair): Add.
10785         (lto_file_decl_data): Replace resolutions with respairs.
10786         Add max_index.
10787         * lto/lto.c (lto_resolution_read): Remove max_index.  Add rp.
10788         Initialize respairs.
10789         (lto_file_finalize): Set up resolutions vector lazily from respairs.
10791 2012-09-06  Lawrence Crowl  <crowl@google.com>
10793         * double-int.h (double_int::operator &=): New.
10794         (double_int::operator ^=): New.
10795         (double_int::operator |=): New.
10796         (double_int::mul_with_sign): Modify overflow parameter to bool*.
10797         (double_int::add_with_sign): New.
10798         (double_int::ule): New.
10799         (double_int::sle): New.
10800         (binary double_int::operator *): Remove parameter name.
10801         (binary double_int::operator +): Likewise.
10802         (binary double_int::operator -): Likewise.
10803         (binary double_int::operator &): Likewise.
10804         (double_int::operator |): Likewise.
10805         (double_int::operator ^): Likewise.
10806         (double_int::and_not): Likewise.
10807         (double_int::from_shwi): Tidy formatting.
10808         (double_int::from_uhwi): Likewise.
10809         (double_int::from_uhwi): Likewise.
10810         * double-int.c (double_int::mul_with_sign): Modify overflow parameter
10811         to bool*.
10812         (double_int::add_with_sign): New.
10813         (double_int::ule): New.
10814         (double_int::sle): New.
10815         * builtins.c: Modify to use the new double_int interface.
10816         * cgraph.c: Likewise.
10817         * combine.c: Likewise.
10818         * dwarf2out.c: Likewise.
10819         * emit-rtl.c: Likewise.
10820         * expmed.c: Likewise.
10821         * expr.c: Likewise.
10822         * fixed-value.c: Likewise.
10823         * fold-const.c: Likewise.
10824         * gimple-fold.c: Likewise.
10825         * gimple-ssa-strength-reduction.c: Likewise.
10826         * gimplify-rtx.c: Likewise.
10827         * ipa-prop.c: Likewise.
10828         * loop-iv.c: Likewise.
10829         * optabs.c: Likewise.
10830         * stor-layout.c: Likewise.
10831         * tree-affine.c: Likewise.
10832         * tree-cfg.c: Likewise.
10833         * tree-dfa.c: Likewise.
10834         * tree-flow-inline.h: Likewise.
10835         * tree-object-size.c: Likewise.
10836         * tree-predcom.c: Likewise.
10837         * tree-pretty-print.c: Likewise.
10838         * tree-sra.c: Likewise.
10839         * tree-ssa-address.c: Likewise.
10840         * tree-ssa-alias.c: Likewise.
10841         * tree-ssa-ccp.c: Likewise.
10842         * tree-ssa-forwprop.c: Likewise.
10843         * tree-ssa-loop-ivopts.c: Likewise.
10844         * tree-ssa-loop-niter.c: Likewise.
10845         * tree-ssa-phiopt.c: Likewise.
10846         * tree-ssa-pre.c: Likewise.
10847         * tree-ssa-sccvn: Likewise.
10848         * tree-ssa-structalias.c: Likewise.
10849         * tree-ssa.c: Likewise.
10850         * tree-switch-conversion.c: Likewise.
10851         * tree-vect-loop-manip.c: Likewise.
10852         * tree-vrp.c: Likewise.
10853         * tree.h: Likewise.
10854         * tree.c: Likewise.
10855         * varasm.c: Likewise.
10857 2012-09-06  Uros Bizjak  <ubizjak@gmail.com>
10859         * configure.ac (hle prefixes): Remove .code64 directive.
10860         * configure: Regenerated.
10862 2012-09-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10864         * config/arm/arm.c: Use CONST_INT_P, CONST_DOUBLE_P, REG_P, MEM_P,
10865         LABEL_P, JUMP_P, CALL_P, NOTE_P, BARRIER_P consistently.
10866         * config/arm/arm.h: Use REG_P, MEM_P consistently.
10867         * config/arm/arm.md: Use CONST_INT_P, REG_P, MEM_P, CONST_DOUBLE_P
10868         consistently.
10869         * config/arm/neon.md: Use REG_P consistently.
10870         * config/arm/predicates.md: Use CONST_INT_P, REG_P, MEM_P consistently.
10871         * config/arm/thumb2.md: Use CONST_INT_P, REG_P consistently.
10872         * config/arm/vec-common.md: Use REG_P consistently.
10874 2012-09-06  Richard Guenther  <rguenther@suse.de>
10876         PR tree-optimization/54498
10877         * tree-ssa-alias.h (get_continuation_for_phi): Add flag to
10878         abort when reaching an already visited region.
10879         * tree-ssa-alias.c (maybe_skip_until): Likewise.  And do it.
10880         (get_continuation_for_phi_1): Likewise.
10881         (walk_non_aliased_vuses): When we translated the reference,
10882         abort when we re-visit a region.
10883         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
10885 2012-09-06  David Edelsohn  <dje.gcc@gmail.com>
10887         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Add TLS
10888         section.
10889         * config/rs6000/rs6000.c (rs6000_debug_address_cost): Add new
10890         arguments to TARGET_ADDRESS_COST call.
10892 2012-09-06  Richard Guenther  <rguenther@suse.de>
10894         * tree.h (MOVE_NONTEMPORAL): Remove.
10895         * tree-pretty-print.c (dump_generic_node): Remove
10896         MOVE_NONTEMPORAL handling.
10897         * expr.c (expand_expr_real_1): Likewise.
10899 2012-09-06  Richard Guenther  <rguenther@suse.de>
10901         * passes.c (execute_function_todo): Call compute_may_aliases
10902         only if flag_tree_pta is set.
10904 2012-09-06  Andrew Pinski  <apinski@cavium.com>
10906         PR tree-opt/54494
10907         * tree-inline.c (remap_gimple_op_r): Copy TREE_SIDE_EFFECTS also.
10909 2012-09-06  Jakub Jelinek  <jakub@redhat.com>
10911         PR rtl-optimization/54455
10912         * sel-sched-ir.c (maybe_tidy_empty_bb): Give up if previous fallthru
10913         bb ends up with asm goto referencing bb's label.
10915 2012-09-06  Chen Liqin  <liqin.gcc@gmail.com>
10917         * config/score/score.c: Remove TARGET_LEGITIMIZE_ADDRESS define and
10918         score_legitimize_address function, use compiler default code instead.
10920 2012-09-05  Jan Hubicka  <jh@suse.cz>
10922         * ipa-inline.c (want_inline_small_function_p): Use
10923         INLINE_HINT_loop_iterations hint.
10925 2012-09-05  Andrew Pinski  <apinski@cavium.com>
10927         * optabs.c (emit_conditional_add): Correct comment about the arguments.
10928         Remove code which might swap op2 and op3 since they cannot be swapped.
10929         * doc/md.texi (add@var{mode}cc): Fix document about how the arguments
10930         are used.
10932 2012-09-05  Oleg Endo  <olegendo@gcc.gnu.org>
10934         * hooks.c (hook_int_rtx_mode_as_bool_0): New function.
10935         * hooks.h (hook_int_rtx_mode_as_bool_0): Declare it.
10936         * output.h (default_address_cost): Add machine_mode and address space
10937         arguments.
10938         * target.def (address_cost): Likewise.
10939         * rtlanal.c (address_cost): Pass mode and address space to target hook.
10940         (default_address_cost): Add unnamed machine_mode and address space
10941         arguments.
10942         * doc/tm.texi: Regenerate.
10943         * config/alpha/alpha.c (TARGET_ADDRESS_COST): Use
10944         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
10945         * config/arm/arm.c (arm_address_cost): Add machine_mode and address
10946         space arguments.
10947         * config/avr/avr.c (avr_address_cost): Likewise.
10948         * config/bfin/bfin.c (bfin_address_cost): Likewise.
10949         * config/cr16/cr16.c (cr16_address_cost): Likewise.
10950         * config/cris/cris.c (cris_address_cost): Likewise.
10951         * config/epiphany/epiphany.c (epiphany_address_cost): Likewise.
10952         * config/i386/i386.c (ix86_address_cost): Likewise.
10953         * config/ia64/ia64.c (TARGET_ADDRESS_COST): Use
10954         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
10955         * config/iq2000/iq2000.c (iq2000_address_cost): Add machine_mode and
10956         address space arguments.  Pass them on in recursive invocation.
10957         * config/lm32/lm32.c (TARGET_ADDRESS_COST): Use
10958         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
10959         * config/m32c/m32c.c (m32c_address_cost): Add machine_mode and address
10960         space arguments.
10961         * config/m32r/m32r.c (TARGET_ADDRESS_COST): Use
10962         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
10963         * config/mcore/mcore.c (TARGET_ADDRESS_COST): Likewise.
10964         * config/mep/mep.c (mep_address_cost): Add machine_mode and address
10965         space arguments.
10966         * config/microblaze/microblaze.c (microblaze_address_cost): Likewise.
10967         * config/mips/mips.c (mips_address_cost): Likewise.
10968         * config/mmix/mmix.c (TARGET_ADDRESS_COST): Use
10969         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
10970         * config/mn10300/mn10300.c (mn10300_address_cost): Add machine_mode and
10971         address space arguments.
10972         (mn10300_rtx_costs): Pass GET_MODE (x) and MEM_ADDR_SPACE (x) to
10973         mn10300_address_cost.
10974         * config/pa/pa.c (hppa_address_cost): Add machine_mode and address
10975         space arguments.
10976         * config/rs6000/rs6000.c (rs6000_debug_address_cost): Likewise.
10977         (TARGET_ADDRESS_COST): Use hook_int_rtx_mode_as_bool_0 instead of
10978         hook_int_rtx_bool_0.
10979         * config/rx/rx.c (rx_address_cost): Add machine_mode and address
10980         space arguments.
10981         * config/s390/s390.c (s390_address_cost): Likewise.
10982         * config/score/score-protos.h (score_address_cost): Likewise.
10983         * config/score/score.c (score_address_cost): Likewise.
10984         * config/sh/sh.c (sh_address_cost): Likewise.
10985         * config/sparc/sparc.c (TARGET_ADDRESS_COST): Use
10986         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
10987         * config/spu/spu.c (TARGET_ADDRESS_COST): Likewise.
10988         * config/stormy16/stormy16.c (xstormy16_address_cost): Add machine_mode
10989         and address space arguments.
10990         * config/v850/v850.c (TARGET_ADDRESS_COST): Use
10991         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
10992         * config/vax/vax.c (vax_address_cost): Add machine_mode and address
10993         space arguments.
10994         * config/xtensa/xtensa (TARGET_ADDRESS_COST): Use
10995         hook_int_rtx_mode_as_bool_0 instead of hook_int_rtx_bool_0.
10997 2012-09-05  Diego Novillo  <dnovillo@google.com>
10999         PR bootstrap/54484
11000         * vec.h (vec_t::lower_bound): Fix spelling of LESSTHAN argument.
11002 2012-09-05  Jakub Jelinek  <jakub@redhat.com>
11004         PR middle-end/54486
11005         * builtins.c (fold_builtin_strspn, fold_builtin_strcspn): Use
11006         build_int_cst with size_type_node instead of size_int.
11008 2012-09-05  Uros Bizjak  <ubizjak@gmail.com>
11010         * config/i386/sse.md (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>):
11011         Use register_operand instead of reg_not_xmm0_operand{,_maybe_avx}.
11012         Use nonimmediate_operand instead of
11013         nonimm_not_xmm0_operand{,_maybe_avx}.
11014         (<sse4_1_avx2>_pblendvb): Ditto.
11015         (sse4_2_pcmpestr): Ditto.
11016         (*sse4_2_pcmpestr_unaligned): Ditto.
11017         (sse4_2_pcmpistr): Ditto.
11018         (*sse4_2_pcmpistr_unaligned): Ditto.
11019         * config/i386/predicates.md (reg_not_xmm0_operand): Remove predicate.
11020         (nonimm_not_xmm0_operand): Ditto.
11021         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
11022         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
11023         * config/i386/i386.md (rdpmc): Do not force operand 1 into ecx.
11025 2012-09-05  Eric Botcazou  <ebotcazou@adacore.com>
11027         * bb-reorder.c: Clarify a few points in the head comment and fix
11028         long lines in other comments.
11029         (find_traces): Fix long line.
11030         (find_traces_1_round): Likewise.
11031         (better_edge_p): Likewise.
11032         (connect_traces): Likewise.
11033         (duplicate_computed_gotos): Likewise.
11034         (find_rarely_executed_basic_blocks_and_cr): Remove trailing spaces.
11035         (fix_up_fall_thru_edges): Fix formatting.
11037 2012-09-05  Richard Guenther  <rguenther@suse.de>
11039         PR tree-optimization/46590
11040         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Do not
11041         update SSA form here.
11042         (canonicalize_induction_variables): Assert we do not need to
11043         update SSA form.
11044         (tree_unroll_loops_completely): Update SSA form here.
11045         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11046         Do not verify loop-closed SSA form if SSA form is not up-to-date.
11048 2012-09-05  Georg-Johann Lay  <avr@gjlay.de>
11050         PR target/54461
11051         * config.gcc (tm_file,target=avr-*-*): Add avr/avrlibc.h if
11052         not configured --with-avrlibc=no.
11053         (tm_defines,target=avr-*-*): Add WITH_AVRLIBC if not configured
11054         --with-avrlibc=no.
11055         * config/avr/avrlibc.h: New file.
11056         * config/avr/avr-c.c: Build-in define __WITH_AVRLIBC__ if
11057         not configured --with-avrlibc=no.
11058         * doc/invoke.texi (AVR Built-in Macros): Document __WITH_AVRLIBC__
11060 2012-09-04  Teresa Johnson  <tejohnson@google.com>
11062         * gcov-io.c (gcov_write_summary): Write out non-zero histogram
11063         entries to function summary along with an occupancy bit vector.
11064         (gcov_read_summary): Read in the histogram entries.
11065         (gcov_histo_index): New function.
11066         (void gcov_histogram_merge): Ditto.
11067         * gcov-io.h (gcov_type_unsigned): New type.
11068         (struct gcov_bucket_type): Ditto.
11069         (struct gcov_ctr_summary): Include histogram.
11070         (GCOV_TAG_SUMMARY_LENGTH): Update to include histogram entries.
11071         (GCOV_HISTOGRAM_SIZE): New macro.
11072         (GCOV_HISTOGRAM_BITVECTOR_SIZE): Ditto.
11073         * profile.c (NUM_GCOV_WORKING_SETS): Ditto.
11074         (gcov_working_sets): New global variable.
11075         (compute_working_sets): New function.
11076         (find_working_set): Ditto.
11077         (get_exec_counts): Invoke compute_working_sets.
11078         * coverage.c (read_counts_file): Merge histograms, and
11079         fix bug with accessing summary info for non-summable counters.
11080         * basic-block.h (gcov_type_unsigned): New type.
11081         (struct gcov_working_set_info): Ditto.
11082         (find_working_set): Declare.
11083         * gcov-dump.c (tag_summary): Dump out histogram.
11085 2012-09-04  Diego Novillo  <dnovillo@google.com>
11087         PR bootstrap/54484
11088         * vec.h (vec_t::embedded_init): Move default argument value
11089         to function declaration.
11091 2012-09-04  Eric Botcazou  <ebotcazou@adacore.com>
11093         * bb-reorder.c (gate_handle_reorder_blocks): Move around.
11094         (rest_of_handle_reorder_blocks): Likewise.
11095         (pass_reorder_blocks): Likewise.
11096         (gate_handle_partition_blocks): Likewise.
11098 2012-09-04  Eric Botcazou  <ebotcazou@adacore.com>
11100         PR rtl-optimization/54456
11101         * sched-rgn.c (gate_handle_sched): Return 1 only if optimize > 0.
11103 2012-09-04  Diego Novillo  <dnovillo@google.com>
11105         PR bootstrap/54478
11106         * vec.h (vec_t::alloc): Remove explicit type specification
11107         in call to reserve.
11108         (vec_t::copy): Likewise.
11109         (vec_t::reserve): Likewise.
11110         (vec_t::reserve_exact): Likewise.
11111         (vec_t::safe_splice): Likewise.
11112         (vec_t::safe_push): Likewise.
11113         (vec_t::safe_grow): Likewise.
11114         (vec_t::safe_grow_cleared): Likewise.
11115         (vec_t::safe_insert): Likewise.
11117 2012-09-04  Richard Henderson  <rth@redhat.com>
11119         * alias.c (read_dependence): Return true for ALIAS_SET_MEMORY_BARRIER.
11121 2012-09-04  Richard Guenther  <rguenther@suse.de>
11123         * tree-ssa-pre.c (value_expressions): Make it a vector of
11124         bitmaps containing expression IDs.
11125         (add_to_value): Adjust.
11126         (sorted_array_from_bitmap_set): Likewise.
11127         (bitmap_set_replace_value): Likewise.
11128         (print_value_expressions): Likewise.
11129         (get_constant_for_value_id): Likewise.
11130         (get_representative_for): Likewise.
11131         (phi_translate_1): Likewise.
11132         (bitmap_find_leader): Likewise.
11133         (find_or_generate_expression): Likewise.
11134         (do_regular_insertion): Likewise.
11135         (init_pre): Likewise.
11136         (fini_pre): Likewise.
11138 2012-09-04  Diego Novillo  <dnovillo@google.com>
11140         PR bootstrap/54479
11141         * vec.h (vec_t::copy): Add cast in call to reserve_exact.
11143 2012-09-04  Richard Guenther  <rguenther@suse.de>
11145         * tree-ssa-pre.c (add_to_exp_gen): Adjust.
11146         (make_values_for_phi): Do not add to PHI_GEN for FRE.
11147         (compute_avail): Stop processing after adding all defs to
11148         AVAIL_OUT for FRE.
11149         (init_pre): Do not allocate not needed bitmap sets for FRE.
11151 2012-09-04  Diego Novillo  <dnovillo@google.com>
11153         Rewrite VEC_* functions as member functions of vec_t.
11155         * vec.h: Update documentation.
11156         (ALONE_VEC_CHECK_INFO): Define.
11157         (ALONE_VEC_CHECK_DECL): Define.
11158         (ALONE_VEC_CHECK_PASS): Define.
11159         (struct vec_prefix): Rename field NUM to NUM_.
11160         Rename field ALLOC to ALLOC_.
11161         Update all users.
11162         (struct vec_t): Rename field PREFIX to PREFIX_.
11163         Rename field VEC to VEC_.
11164         Update all users.
11165         (vec_t::length): Rename from VEC_length_1.  Update all users.
11166         (vec_t::empty): Rename from VEC_empty_1.  Update all users.
11167         (vec_t::address): Rename from VEC_address_1.  Update all users.
11168         (vec_address): New.
11169         (vec_t::last): Rename from VEC_last_1.  Update all users.
11170         (vec_t::operator[]): Rename from VEC_index_1.  Update all users.
11171         (vec_t::iterate): Rename from VEC_iterate_1.  Update all users.
11172         (vec_t::embedded_size): Rename from VEC_embedded_size_1.
11173         Update all users.
11174         (vec_t::embedded_init): Rename from VEC_embedded_init_1.
11175         Update all users.
11176         (vec_t::alloc): Rename from VEC_alloc_1.  Update all users.
11177         (vec_t::free): Rename from VEC_free_1.  Update all users.
11178         (vec_t::copy): Rename from VEC_copy_1.  Update all users.
11179         (vec_t::space): Rename from VEC_space_1.  Update all users.
11180         (vec_t::reserve): Rename from VEC_reserve_1.  Update all users.
11181         (vec_t::reserve_exact): Rename from VEC_reserve_exact_1.
11182         Update all users.
11183         (vec_t::splice): Rename from VEC_splice_1.  Update all users.
11184         (vec_t::safe_splice): Rename from VEC_safe_splice_1.  Update all users.
11185         (vec_t::quick_push): Rename from VEC_quick_push_1.  Update all users.
11186         (vec_t::safe_push): Rename from VEC_safe_push_1.  Update all users.
11187         (vec_t::pop): Rename from VEC_pop_1.  Update all users.
11188         (vec_t::truncate): Rename from VEC_truncate_1.  Update all users.
11189         (vec_t::safe_grow): Rename from VEC_safe_grow_1.  Update all users.
11190         (vec_t::safe_grow_cleared): Rename from VEC_safe_grow_cleared_1.
11191         Update all users.
11192         (vec_t::replace): Rename from VEC_replace_1.  Update all users.
11193         (vec_t::quick_insert): Rename from VEC_quick_insert_1.
11194         Update all users.
11195         (vec_t::safe_insert): Rename from VEC_safe_insert_1.  Update all users.
11196         (vec_t::ordered_remove): Rename from VEC_ordered_remove_1.
11197         Update all users.
11198         (vec_t::unordered_remove): Rename from VEC_unordered_remove_1.
11199         Update all users.
11200         (vec_t::block_remove): Rename from VEC_block_remove_1. Update all users.
11201         (vec_t::lower_bound): Rename from VEC_lower_bound_1. Update all users.
11203 2012-09-04  Steven Bosscher  <steven@gcc.gnu.org>
11205         * gimple.h (gimple_build_switch): Remove.
11206         (gimple_build_switch_vec): Promote to the new gimple_build_switch.
11207         (gimple_switch_default_label): Assert the default case label is
11208         really a default case label.
11209         (gimple_switch_set_default_label): Likewise.
11210         * gimple.c (gimple_build_switch_nlabels): Make sure a default label
11211         is passed in, and simplify accordingly.
11212         (gimple_build_switch): Removed.
11213         (gimple_build_switch_vec): Rename to gimple_build_switch.
11214         * gimplify.c (gimplify_switch_expr): Update gimple_build_switch use.
11215         * gimple-pretty-print.c (dump_gimple_switch): Do not accept a NULL
11216         case label.
11217         * stmt.c (expand_case): Simplify using the fact that every GIMPLE
11218         switch must have a default case.
11219         * tree-cfg.c (group_case_labels_stmt): Likewise.
11220         (verify_gimple_switch): Use gimple_switch_label in verifier to get
11221         the label at index 0, and verify that it is a valid default case.
11222         * except.c (sjlj_emit_dispatch_table): Rewrite construction of the
11223         switch for dispatching.
11224         * tree-eh.c (lower_try_finally_switch): Update gimple_build_switch use.
11225         (lower_eh_dispatch): Likewise.
11226         * tree-vrp.c (execute_vrp): Use gimple_switch_label to get the case
11227         label at index 0 before turning it into a default case label.
11228         * omp-low.c (expand_omp_sections): Update gimple_build_switch use.
11229         * tree-switch-conversion.c (emit_case_bit_tests): Get the default case
11230         label using gimple_switch_default_label.
11231         (collect_switch_conv_info): Likewise.
11232         (process_switch): Likewise.
11233         * doc/gimple.texi: Update documentation of gimple_build_switch.
11235 2012-09-04  Georg-Johann Lay  <avr@gjlay.de>
11237         PR target/54476
11238         * config/avr/avr.c (avr_expand_delay_cycles): Mask operand with
11239         SImode.
11241 2012-09-04  Bin Cheng  <bin.cheng@arm.com>
11243         PR target/45070
11244         * config/arm/arm.c (thumb1_extra_regs_pushed): Handle return value
11245         of size less than 4 bytes by using macro ARM_NUM_INTS.
11246         (thumb1_unexpanded_epilogue): Use macro ARM_NUM_INTS.
11248 2012-09-04  Richard Guenther  <rguenther@suse.de>
11250         PR tree-optimization/54458
11251         * tree-ssa-threadupdate.c (thread_through_loop_header): If we
11252         turn the loop into one with multiple latches mark it so.
11254 2012-09-04  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
11256         PR target/54220
11257         * config/avr/avr.c (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): New
11258         define to...
11259         (avr_allocate_stack_slots_for_args): ...this new static function.
11261 2012-09-04  Christophe Lyon  <christophe.lyon@linaro.org>
11263         * config/arm/arm.c (arm_expand_builtin): Replace gen_rtx_CONST_INT
11264         by GEN_INT.
11265         (arm_emit_coreregs_64bit_shift): Likewise.
11267 2012-09-04  Christophe Lyon  <christophe.lyon@linaro.org>
11269         * config/arm/arm.c (arm_evpc_neon_vext): New function.
11270         (arm_expand_vec_perm_const_1): Add call to arm_evpc_neon_vext.
11272 2012-09-04  Oleg Endo  <olegendo@gcc.gnu.org>
11274         PR target/51244
11275         * config/sh/sh.c (prepare_cbranch_operands): Pull out comparison
11276         canonicalization code into...
11277         * (sh_canonicalize_comparison): This new function.
11278         * config/sh/sh-protos.h: Declare it.
11279         * config/sh/sh.h: Use it in new macro CANONICALIZE_COMPARISON.
11280         * config/sh/sh.md (cbranchsi4): Remove TARGET_CBRANCHDI4 check and
11281         always invoke expand_cbranchsi4.
11283 2012-09-03  Andi Kleen  <ak@linux.intel.com>
11285         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Initialize
11286         addr_offset always.
11288 2012-09-03  Andrew Pinski  <apinski@cavium.com>
11290         PR tree-opt/53395
11291         * tree-if-conv.c (constant_or_ssa_name): New function.
11292         (fold_build_cond_expr): New function.
11293         (predicate_scalar_phi): Use fold_build_cond_expr instead of build3.
11294         (predicate_mem_writes): Likewise.
11296 2012-09-03  Marc Glisse  <marc.glisse@inria.fr>
11298         * fold-const.c (fold_ternary_loc): Constant-propagate after
11299         removing dead operands.
11301 2012-09-03  Michael Matz  <matz@suse.de>
11303         PR tree-optimization/46590
11304         * tree-cfg.c (gimple_duplicate_sese_region): Don't update
11305         SSA web here ...
11306         * tree-ssa-loop-ch.c (copy_loop_headers): ... but here.
11308 2012-09-03  Sandra Loosemore  <sandra@codesourcery.com>
11310         * doc/invoke.texi: Fix numerous typos and punctuation/grammatical
11311         errors throughout the file.  Re-word some awkward sentences and
11312         paragraphs.
11314 2012-09-03  Richard Guenther  <rguenther@suse.de>
11316         PR tree-optimization/54362
11317         * tree-ssa-structalias.c (find_func_aliases): Handle COND_EXPR.
11319 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11321         * config/s390/s390.c (s390_loadrelative_operand_p): New function.
11322         (s390_check_qrst_address, print_operand_address): Use
11323         s390_loadrelative_operand_p instead of s390_symref_operand_p.
11324         (s390_check_symref_alignment): Accept pointer size alignment for
11325         GOT slots.
11326         (legitimize_pic_address): Use load relative on z10 or later.
11328 2012-09-03  Jakub Jelinek  <jakub@redhat.com>
11330         PR debug/53923
11331         * valtrack.c (dead_debug_insert_temp): Drop non-reg uses
11332         from the chain.
11334 2012-09-03  Joseph Myers  <joseph@codesourcery.com>
11336         * common.opt (--no-sysroot-suffix): New driver option.
11337         * doc/invoke.texi (--no-sysroot-suffix): Document.
11338         * gcc.c (driver_handle_option): Handle --no-sysroot-suffix as not
11339         needing spec processing.
11340         (main): Do not process sysroot suffixes if no_sysroot_suffix.
11342 2012-09-02  Oleg Endo  <olegendo@gcc.gnu.org>
11344         PR target/33135
11345         * common/config/sh/sh-common.c: Update copyright years.
11346         (sh_option_init_struct): Delete.
11347         (TARGET_OPTION_INIT_STRUCT): Likewise.
11349 2012-09-02  Oleg Endo  <olegendo@gcc.gnu.org>
11351         PR target/54418
11352         * config/sh/sh.md (cmpgeusi_t): Remove N alternative.
11353         Check operands[1] in split condition instead of operands[0].
11354         Add comments.
11356 2012-09-02  Mark Kettenis  <kettenis@openbsd.org>
11358         * config.gcc (x86_64-*-openbsd*): New target.
11359         * config.host (*-*-openbsd*): New target.
11360         * config/openbsd.h (TARGET_C99_FUNCTIONS): Define.
11361         * config/i386/openbsdelf.h: Remove some superfluous defines and
11362         group things together in a more logical fashion.
11363         (DBX_REGISTER_NUMBER): Provide a
11364         definition that works on both 32-bit and 64-bit targets.
11365         (WCHAR_TYPE_SIZE): Hardcode as 32.
11366         (NO_DOLLAR_IN_LABEL): Remove undef.
11367         (TARGET_DEFAULT): Remove.
11368         (SET_ASM_OP): Remove.
11369         (DEFAULT_PCC_STRUCT_RETURN): Undef first to prevent warning.
11370         (ASM_OUTPUT_MAX_SKIP_ALIGN): Synch with x86-64.h
11371         (DWARF2_UNWIND_INFO): Remove define.
11372         (HAVE_ENABLE_EXECUTE_STACK): Define.
11373         * config/host-openbsd.c: New file.
11374         * config/t-openbsd (USER_H): Add EXTRA_HEADERS.
11375         * config/x-openbsd: New file.
11377 2012-09-02  Oleg Endo  <olegendo@gcc.gnu.org>
11379         * config/sh/sh.md (*extend<mode>si2_compact_mem_disp): Pass iterated
11380         mode to sh_legitimate_index_p instead of QImode.
11382 2012-09-02  Eric Botcazou  <ebotcazou@adacore.com>
11384         PR rtl-optimization/54369
11385         * config/mips/mips.c (mips_reorg): Invoke cleanup_barriers before
11386         calling dbr_schedule.
11387         * config/sparc/sparc.c (sparc_reorg): Likewise.
11389 2012-09-01  Jakub Jelinek  <jakub@redhat.com>
11391         PR target/54436
11392         * config/i386/i386.md (*mov<mode>_insv_1_rex64, *movsi_insv_1): If
11393         operands[1] is CONST_INT_P, convert it to QImode before printing.
11395 2012-09-01  Andrew Pinski  <apinski@cavium.com>
11397         * simplify-rtx.c (simplify_unary_operation_1 <case TRUNCATE>):
11398         A truncate of a memory is just loading the low part of the memory.
11400 2012-09-01  Uros Bizjak  <ubizjak@gmail.com>
11402         PR target/46829
11403         PR target/46843
11404         * config/i386/i386.c (ix86_legitimate_combined_insn): New function.
11405         (TARGET_LEGITIMATE_COMBINED_INSN): New macro.
11407 2012-09-01  Uros Bizjak  <ubizjak@gmail.com>
11409         * target.def (legitimate_combined_insn): New target hook.
11410         * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook.
11411         * doc/tm.texi: Regenerated.
11412         * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn
11413         to allow targets to reject combined insn.
11414         * hooks.h (hook_bool_rtx_true): New.
11415         * hooks.c (hook_bool_rtx_true): Ditto.
11417 2012-08-31  Martin Jambor  <mjambor@suse.cz>
11419         * ipa-inline-analysis.c (estimate_function_body_sizes): Allocate
11420         nonconstant_names after calculate_dominance_info and
11421         loop_optimizer_init.
11423 2012-08-31  Greta Yorsh  <Greta.Yorsh@arm.com>
11425         * config/arm/arm.c (arm_expand_epilogue): Remove unused variable
11426         floats_from_frame.
11428 2012-08-31  Martin Jambor  <mjambor@suse.cz>
11430         PR middle-end/54409
11431         * ipa-inline-analysis.c (remap_predicate): Fix the offset_map
11432         checking condition.
11434 2012-08-31  Martin Jambor  <mjambor@suse.cz>
11436         * ipa-inline-analysis.c (phi_result_unknown_predicate): New function.
11437         (predicate_for_phi_result): Likewise.
11438         (estimate_function_body_sizes): Use the above two functions.
11440 2012-08-31  Martin Jambor  <mjambor@suse.cz>
11442         PR middle-end/54394
11443         * ipa-inline-analysis.c (estimate_function_body_sizes): Compute
11444         dominance info and loops whenever optimizing.
11446 2012-08-29  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11447             Richard Earnshaw  <richard.earnshaw@arm.com>
11449         PR target/54252
11450         * config/arm/arm.c (neon_dereference_pointer): Adjust nelems by
11451         element size. Use elem_type from the formal parameter. New parameter
11452         fcode.
11453         (neon_expand_args): Adjust call to neon_dereference_pointer.
11455 2012-08-29  Steven Bosscher  <steven@gcc.gnu.org>
11457         * cfg.c (dump_bb_info): Print a newline if there were no edges to dump.
11459 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
11461         Revert:
11462         * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
11463         mapping style, add ../lib/mips16.
11464         (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
11465         (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
11467 2012-08-29  Richard Sandiford  <rdsandiford@googlemail.com>
11469         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_synci
11470         if TARGET_SYNCI.
11472 2012-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
11474         * config/sh/sh.opt (menable-tas): Rename to mtas.
11475         * doc/invoke.texi (SH options): Likewise.
11476         * config/sh/sync.md: Update comments.
11478 2012-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
11480         * config/sh/iterators.md: New file.
11481         * config/sh/sync.md (I124, I12, i124suffix): Delete.  Replace usage
11482         with new iterators QIHISI, QIHI, bw, bwl respectively throughout
11483         the file.
11484         * config/sh/sh.md: Include new file iterators.md.
11485         (zero_extendhisi2, zero_extendqisi2): Fold into zero_extend<mode>si2.
11486         (*zero_extendhisi2_compact, *zero_extendqisi2_compact): Fold into
11487         *zero_extend<mode>si2_compact.
11488         (*zero_extendqisi2_disp_mem, zero_extendhisi2_disp_mem): Fold into
11489         *zero_extend<mode>si2_disp_mem.
11490         (extendhisi2, extendqisi2): Fold into extend<mode>si2.
11491         (*extendqisi2_compact_reg, *extendhisi2_compact_reg): Fold into
11492         *extend<mode>si2_compact_reg.
11493         (*extendqisi2_compact_mem_disp, *extendhisi2_compact_mem_disp): Fold
11494         into *extend<mode>si2_compact_mem_disp.
11495         (*extendqisi2_compact_snd, *extendhisi2_compact_snd): Fold into
11496         *extend<mode>si2_compact_snd.
11497         (*movsi_index_disp, *movhi_index_disp): Fold with iterators and rename
11498         to *movsi_index_disp_load, *movhi_index_disp_load,
11499         *mov<mode>_index_disp_store.
11500         (*movqi_reg_reg, *movhi_reg_reg): Fold into *mov<mode>_reg_reg.
11501         (*movqi_store_mem_disp04, *movhi_store_mem_disp05): Fold into
11502         *mov<mode>_store_mem_disp04.
11503         (*movqi_store_mem_disp12, *movhi_store_mem_disp13): Fold into
11504         *mov<mode>_store_mem_disp12.
11505         (*movqi_load_mem_disp, *movhi_load_mem_disp): Fold into
11506         *mov<mode>_load_mem_disp04 and *mov<mode>_load_mem_disp12.
11508 2012-08-29  Martin Jambor  <mjambor@suse.cz>
11510         * ipa-inline.h (estimate_edge_hints): Call do_estimate_edge_hints, not
11511         do_estimate_edge_time.
11513 2012-08-29  Chung-Lin Tang  <cltang@codesourcery.com>
11515         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Add nomips16 asm
11516         directives, remove #ifndef __mips16 guards.
11517         * config/mips/t-linux64 (MULTILIB_OSDIRNAMES): Change to use
11518         mapping style, add ../lib/mips16.
11519         (MULTILIB_OPTIONS,MULTILIB_DIRNAMES): Add mips16.
11520         (MULTILIB_EXCLUSIONS): Exclude mips16 when not -mabi=32.
11522 2012-08-28  Walter Lee  <walt@tilera.com>
11523         * confg/tilegx/tilegx.md: Fix code style.
11524         (*zero_extendsidi_truncdisi): Fix typo.
11525         * config/tilegx/tilegx.c: Fix code style.
11526         (tilegx_function_profiler): Fix typo.
11528 2012-08-28  Walter Lee  <walt@tilera.com>
11530         * doc/invoke.texi: Document -mcmodel=small, -mcmodel=large.
11531         * config/tilegx/tilegx.h: Include config/tilegx/tilegx-opts.h.
11532         (CRT_CALL_STATIC_FUNCTION): Define.
11533         * config/tilegx/predicates.md (const_last_symbolic_operand):
11534         Handle UNSPEC_HW2_LAST_PCREL, UNSPEC_HW1_LAST_PLT_PCREL, and
11535         UNSPEC_HW2_LAST_PLT_PCREL.
11536         (const_symbolic_operand): Handle UNSPEC_HW1_PCREL,
11537         UNSPEC_HW0_PLT_PCREL, and UNSPEC_HW1_PLT_PCREL.
11538         * config/tilegx/tilegx.md (UNSPEC_MOV_LARGE_PCREL_STEP4): Define,
11539         and renumber the constants that follow.
11540         (UNSPEC_HW1_PCREL): Ditto.
11541         (UNSPEC_HW2_LAST_PCREL): Ditto.
11542         (UNSPEC_HW0_PLT_PCREL): Define.
11543         (UNSPEC_HW1_PLT_PCREL): Define.
11544         (UNSPEC_HW1_LAST_PLT_PCREL): Define.
11545         (UNSPEC_HW2_LAST_PLT_PCREL): Define.
11546         (mov_large_pcrel_step1): Define.
11547         (mov_large_pcrel_step2): Define.
11548         (mov_large_pcrel_step3): Define.
11549         (mov_large_pcrel_step4): Define.
11550         (mov_plt_pcrel_step1): Define.
11551         (mov_plt_pcrel_step2): Define.
11552         (mov_plt_pcrel_step3): Define.
11553         (mov_plt_pcrel_step1_32bit): Define.
11554         (mov_plt_pcrel_step2_32bit): Define.
11555         (call): Handle tilegx_cmodel == CM_LARGE, CM_LARGE_PIC.
11556         (call_value): Ditto.
11557         * config/tilegx/tilegx.opt: Include config/tilegx/tilegx-opts.h.
11558         (mcmodel): New option.
11559         (enum cmodel): Define.
11560         (CM_SMALL): Define.
11561         (CM_LARGE): Define.
11562         * config/tilegx/tilegx-opts.h: New file.
11563         * config/tilegx/tilegx-protos.h (tilegx_compute_pcrel_address):
11564         Declare.
11565         (tilegx_compute_pcrel_plt_address): Declare.
11566         * config/tilegx/tilegx.c (tilegx_option_override): Handle
11567         tilegx_cmodel.
11568         (tilegx_function_ok_for_sibcall): Ditto.
11569         (compute_pcrel_address): Rename to tilegx_compute_pcrel_address,
11570         and don't declare static.  Handle tilegx_cmodel.
11571         (tilegx_compute_pcrel_plt_address): Define.
11572         (tilegx_legitimize_pic_address): Rename calls to
11573         compute_pcrel_address.
11574         (tilegx_delegitimize_address): Handle UNSPEC_HW1_PCREL,
11575         UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
11576         UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
11577         (load_pic_register): Rename call to compute_pcrel_address.
11578         (tilegx_print_operand): Handle UNSPEC_HW1_PCREL,
11579         UNSPEC_HW2_LAST_PCREL, UNSPEC_HW0_PLT_PCREL, UNSPEC_HW1_PLT_PCREL,
11580         UNSPEC_HW1_LAST_PLT_PCREL, UNSPEC_HW2_LAST_PLT_PCREL.
11582 2012-08-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
11584         * sched-deps.c (add_dependence_list_and_free): Simplify.
11585         (flush_pending_list_and_free): Fix a hack that was fixing a hack.  Free
11586         lists when add_dependence_list_and_free doesn't free them.
11588 2012-08-27  Uros Bizjak  <ubizjak@gmail.com>
11590         PR target/46254
11591         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Return
11592         true for TARGET_64BIT or !flag_pic.
11593         * config/i386/sync.md (*atomic_compare_and_swap_doubledi_pic): Remove.
11594         (atomic_compare_and_swap_double<mode>): Change operand 2 predicate
11595         to cmpxchg8b_pic_memory_operand.  Use DWIH mode iterator.
11596         Add insn constraint.  Conditionally emit xchg asm insns.
11597         (atomic_compare_and_swap<mode>): Update calls.  Check only
11598         cmpxchg8b_pic_memory_operand in memory address fixup.
11599         (DCASMODE): Remove.
11600         (CASHMODE): Rename from DCASHMODE.
11601         (doublemodesuffix): Update modes.
11602         (regprefix): New mode attribute.
11604         (unspecv) <UNSPECV_CMPXCHG_{1,2,3,4}>: Remove.
11605         <UNSPECV_CMPXCHG>: New constant.
11606         (atomic_compare_and_swap<mode>_1): Rename from
11607         atomic_compare_and_swap_single<mode>.  Update calls and
11608         unspec_volatile constants.
11609         (atomic_compare_and_swap<mode>_doubleword): Rename from
11610         atomic_compare_and_swap_double<mode>.  Update calls and
11611         unspec_volatile constants.
11613 2012-08-27  Walter Lee  <walt@tilera.com>
11615         * doc/md.texi (TILE-Gx): Fix typo.
11617 2012-08-27  Walter Lee  <walt@tilera.com>
11619         * config/tilegx/tilegx.c (tilegx_function_profiler): Fix typo.
11620         * config/tilepro/tilepro.c (tilepro_function_profiler): Ditto.
11622 2012-08-27  Walter Lee  <walt@tilera.com>
11624         * config/tilegx/tilegx.md (*bfins): Rename to insn_bfins.
11625         (insn_bfins): Delete.
11627 2012-08-27  Walter Lee  <walt@tilera.com>
11629         * config/tilegx/sync.md (atomic_compare_and_swap_bare<mode>,
11630         atomic_exchange_bare<mode>,
11631         atomic_fetch_<fetchop_name>_bare<mode>): Set type to X1_remote.
11632         * config/tilegx/tilegx-generic.md (X1_remote): New
11633         insn_reservation.
11634         * config/tilegx/tilegx.md (type): Add X1_remove.
11635         (insn_cmpexch<four_if_si>, insn_exch<four_if_si>,
11636         insn_fetchadd<four_if_si>, insn_fetchaddgez<four_if_si>,
11637         insn_fetchand<four_if_si>, insn_fetchor<four_if_si>): Set type to
11638         X1_remote.
11640 2012-08-27  Andreas Schwab  <schwab@linux-m68k.org>
11642         * gdbinit.in: Fix syntax of skip command.
11644 2012-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
11646         * config/mips/mips.c (mips_pic_call_symbol_from_set): Check for
11647         SYMBOL_REF SET_SRCs.
11649 2012-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
11651         * config/mips/mips.c (vr4130_align_insns): Don't simulate
11652         ghost instructions.  Assert that the required instructions exist.
11654 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
11656         * config/mips/mips.h (AVOID_CCMODE_COPIES): Update rationale for
11657         definition.
11658         * config/mips/mips.c (machine_function): Add next_fcc.
11659         (mips_output_move): Remove handling of fcc moves.
11660         (mips_allocate_fcc): New function.
11661         (mips_emit_compare, mips_expand_vcondv2sf): Use it.
11662         (mips_hard_regno_mode_ok_p): Restrict CCmode to ST registers.
11663         Remove special case for CCmode reloads.
11664         (mips_expand_builtin_compare_1): Use mips_allocate_fcc and treat
11665         the result a fixed operand.
11666         * config/mips/mips.md (move_type): Remove lui_movf.
11667         (type, length): Remove references to it.
11668         (movcc, reload_incc, reload_outcc): Delete.
11670 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
11672         * config/mips/mips.c (mips_has_long_branch_p): New function,
11673         split out from...
11674         (mips_expand_ghost_gp_insns): ...here.  Look inside sequences.
11676 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
11678         * config/mips/mips.c (r10k_safe_mem_expr_p): Use get_inner_reference.
11680 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
11682         * config/mips/mips.c (mips_rtx_costs): Add costs for CINS.
11684 2012-08-26  Richard Sandiford  <rdsandiford@googlemail.com>
11686         * config/mips/mips.c (mips_rtx_costs): Add missing COSTS_N_INSNS
11687         to the size cost of multiplication.
11689 2012-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
11691         * doc/install.texi (Specific): Clarify what needs to be added to
11692         this section.
11694 2012-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
11696         * doc/tm.texi.in (Misc): Move descriptions of NO_DOLLAR_IN_LABEL
11697         and NO_DOT_IN_LABEL from here...
11698         (Label Output): ...to here.
11699         * doc/tm.texi: Regenerate.
11701 2012-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
11703         * doc/invoke.texi (C++ Dialect Options): Add missing space.
11705 2012-08-25  Eric Botcazou  <ebotcazou@adacore.com>
11707         PR rtl-optimization/54088
11708         * jump.c (delete_related_insns): Robustify latest change.
11710 2012-08-25  Ricardo Catalinas Jiménez  <jimenezrick@gmail.com>
11712         * doc/extend.texi (__atomic Builtins): Remove space before comma.
11714 2012-08-25  Richard Sandiford  <rdsandiford@googlemail.com>
11715             Andrew Pinski  <apinski@cavium.com>
11717         * config/mips/mips.h (CASE_VECTOR_MODE): For not
11718         TARGET_MIPS16_SHORT_JUMP_TABLES use ptr_mode.
11719         (CASE_VECTOR_SHORTEN_MODE): Likewise.
11721 2012-08-25  Uros Bizjak  <ubizjak@gmail.com>
11723         * config/i386/i386.h (FP_REG_P): Remove macro.
11724         (FP_REGNO_P): Ditto.
11725         (HARD_REGNO_NREGS): Use STACK_REGNO_P instead of FP_REGNO_P.
11726         (HARD_REGNO_NREGS_HAS_PADDING): Ditto.
11727         (ANY_FP_REGNO_P): Ditto.
11728         (HARD_REGNO_RENAME_OK): Use STACK_REGNO_P.
11729         * config/i386/i386.c (output_387_ffreep): Use STACK_REGNO_P
11730         instead of FP_REGNO_P.
11731         (ix86_hard_regno_mode_ok): Ditto.
11732         * config/i386/predicates.md (fp_register_operand): Ditto.
11733         (register_and_not_fp_reg_operand): Ditto.
11734         * config/i386/sync.md (atomic_loaddi_fpu): Use STACK_REG_P instead
11735         of FP_REG_P.
11737         * reg-stack.c (get_true_reg): Use STACK_REG_P instead of FP_REG_P.
11739 2012-08-24  Jason Merrill  <jason@redhat.com>
11741         * print-tree.c (print_node): Don't check TREE_LANG_FLAG_*
11742         on TREE_VEC or SSA_NAME.
11744 2012-08-24  Jakub Jelinek  <jakub@redhat.com>
11746         PR c/54363
11747         * gimplify.c (optimize_compound_literals_in_ctor): Only recurse
11748         if init is a CONSTRUCTOR.
11750 2012-08-24  Steven Bosscher  <steven@gcc.gnu.org>
11752         * tree-ssa-live.c (dump_var_map): Do not dump the partition
11753         map of virtual operands.
11755 2012-08-24  Yuri Rumyantsev  <ysrumyan@gmail.com>
11757         * config/i386/i386.c (ia32_multipass_dfa_lookahead) : Add
11758         case for Atom processor.
11760 2012-08-24  Simon Baldwin  <simonb@google.com>
11762         * dwarf2out.c (gen_producer_string): Omit command line switch if
11763         CL_NO_DWARF_RECORD flag set.
11764         * opts.h (CL_NO_DWARF_RECORD): New.
11765         * opt-functions.awk (switch_flags): Add NoDWARFRecord.
11766         * doc/options.texi: Document NoDWARFRecord option flag.
11768 2012-08-24  H.J. Lu  <hongjiu.lu@intel.com>
11770         PR debug/52857
11771         * dwarf2out.c (mem_loc_descriptor): Allow arg_pointer_rtx and
11772         frame_pointer_rtx for based_loc_descr.
11774 2012-08-24  Martin Jambor  <mjambor@suse.cz>
11776         * predict.c (maybe_hot_frequency_p): New parameter fun.  Use its decl
11777         instead of current_function_decl, use profile_status_for_function and
11778         ENTRY_BLOCK_PTR_FOR_FUNCTION with fun instead of their cfun variants.
11779         (maybe_hot_count_p): New parameter fun, use
11780         profile_status_for_function instead of its cfun_variant.
11781         (maybe_hot_bb_p): New parameter fun, checking-assert it, pass it to
11782         all callees.
11783         (maybe_hot_edge_p): Pass cfun to maybe_hot_count_p and
11784         maybe_hot_frequency_p.
11785         (probably_never_executed_bb_p): New parameter fun, use its decl
11786         instead of current_function_decl.
11787         (optimize_bb_for_size_p): Pass cfun to maybe_hot_bb_p.
11788         (rtl_profile_for_bb): Likewise.
11789         (compute_function_frequency): Pass cfun to maybe_hot_bb_p and
11790         probably_never_executed_bb_p.
11791         * tree-ssa-operands.c (ssa_operands_active): New operator fun.  Use it
11792         instead of cfun.
11793         (update_stmt_operands): Pass cfun as an argument of
11794         ssa_operands_active.
11795         (swap_tree_operands): Likewise.
11796         * gimple-iterator.c (update_modified_stmt): Likewise.
11797         (update_modified_stmts): Likewise.
11798         * tree-flow-inline.h (delink_stmt_imm_use): Likewise.
11799         * tree-ssa.c (delete_tree_ssa): Likewise.
11800         * bb-reorder.c (bb_to_key): Pass cfun to probably_never_executed_bb_p.
11801         (push_to_next_round_p): Likewise.
11802         (find_rarely_executed_basic_blocks_and_crossing_edges ): Likewise.
11803         * cfg.c: Inlude tree.h.
11804         (check_bb_profile): Use profile_status_for_function,
11805         EXIT_BLOCK_PTR_FOR_FUNCTION and ENTRY_BLOCK_PTR_FOR_FUNCTION with
11806         DECL_STRUCT_FUNCTION (current_function_decl) instead of their cfun
11807         variants.
11808         (dump_bb_info): Pass DECL_STRUCT_FUNCTION (current_function_decl) to
11809         maybe_hot_bb_p and probably_never_executed_bb_p.
11810         * gimple-pretty-print.c (gimple_dump_bb_buff): Checking-assert that
11811         DECL_STRUCT_FUNCTION (current_function_decl) is not NULL.  Pass it to
11812         dump_histograms_for_stmt.
11813         (dump_gimple_mem_ops): Pass
11814         DECL_STRUCT_FUNCTION (current_function_decl)
11815         as an argument to dump_gimple_mem_ops.
11816         * tree-cfg.c (dump_function_to_file): Rename parameter fn to fndecl.
11817         Do not change cfun.  Change and restore current_function_decl.
11818         * Makefile.in (cfg.o): Include TREE_H in dependencies.
11820 2012-08-24  Georg-Johann Lay  <avr@gjlay.de>
11822         PR target/54222
11823         * avr-modes.def (HA, SA, DA, TA, UTA): Adjust modes.
11824         * avr/avr-fixed.md: New file.
11825         * avr/avr.md: Include it.
11826         (cc): Add: minus.
11827         (adjust_len): Add: minus, minus64, ufract, sfract.
11828         (ALL1, ALL2, ALL4, ORDERED234): New mode iterators.
11829         (MOVMODE): Add: QQ, UQQ, HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
11830         (MPUSH): Add: HQ, UHQ, HA, UHA, SQ, USQ, SA, USA.
11831         (pushqi1, xload8_A, xload_8, movqi_insn, *reload_inqi, addqi3,
11832         subqi3, ashlqi3, *ashlqi3, ashrqi3, lshrqi3, *lshrqi3, *cmpqi,
11833         cbranchqi4, *cpse.eq): Generalize to handle all 8-bit modes in ALL1.
11834         (*movhi, reload_inhi, addhi3, *addhi3, addhi3_clobber, subhi3,
11835         ashlhi3, *ashlhi3_const, ashrhi3, *ashirhi3_const, lshrhi3,
11836         *lshrhi3_const, *cmphi, cbranchhi4): Generalize to handle all
11837         16-bit modes in ALL2.
11838         (subhi3, casesi, strlenhi): Add clobber when expanding minus:HI.
11839         (*movsi, *reload_insi, addsi3, subsi3, ashlsi3, *ashlsi3_const,
11840         ashrsi3, *ashrhi3_const, *ashrsi3_const, lshrsi3, *lshrsi3_const,
11841         *reversed_tstsi, *cmpsi, cbranchsi4): Generalize to handle all
11842         32-bit modes in ALL4.
11843         * avr-dimode.md (ALL8): New mode iterator.
11844         (adddi3, adddi3_insn, adddi3_const_insn, subdi3, subdi3_insn,
11845         subdi3_const_insn, cbranchdi4, compare_di2,
11846         compare_const_di2, ashrdi3, lshrdi3, rotldi3, ashldi3_insn,
11847         ashrdi3_insn, lshrdi3_insn, rotldi3_insn): Generalize to handle
11848         all 64-bit modes in ALL8.
11849         * config/avr/avr-protos.h (avr_to_int_mode): New prototype.
11850         (avr_out_fract, avr_out_minus, avr_out_minus64): New prototypes.
11851         * config/avr/avr.c (TARGET_FIXED_POINT_SUPPORTED_P): Define to...
11852         (avr_fixed_point_supported_p): ...this new static function.
11853         (TARGET_BUILD_BUILTIN_VA_LIST): Define to...
11854         (avr_build_builtin_va_list): ...this new static function.
11855         (avr_adjust_type_node): New static function.
11856         (avr_scalar_mode_supported_p): Allow if ALL_FIXED_POINT_MODE_P.
11857         (avr_builtin_setjmp_frame_value): Use gen_subhi3 and return new
11858         pseudo instead of gen_rtx_MINUS.
11859         (avr_print_operand, avr_operand_rtx_cost): Handle: CONST_FIXED.
11860         (notice_update_cc): Handle: CC_MINUS.
11861         (output_movqi): Generalize to handle respective fixed-point modes.
11862         (output_movhi, output_movsisf, avr_2word_insn_p): Ditto.
11863         (avr_out_compare, avr_out_plus_1): Also handle fixed-point modes.
11864         (avr_assemble_integer): Ditto.
11865         (output_reload_in_const, output_reload_insisf): Ditto.
11866         (avr_compare_pattern): Skip all modes > 4 bytes.
11867         (avr_2word_insn_p): Skip movuqq_insn, movqq_insn.
11868         (avr_out_fract, avr_out_minus, avr_out_minus64): New functions.
11869         (avr_to_int_mode): New function.
11870         (adjust_insn_length): Handle: ADJUST_LEN_SFRACT,
11871         ADJUST_LEN_UFRACT, ADJUST_LEN_MINUS, ADJUST_LEN_MINUS64.
11872         * config/avr/predicates.md (const0_operand): Allow const_fixed.
11873         (const_operand, const_or_immediate_operand): New.
11874         (nonmemory_or_const_operand): New.
11875         * config/avr/constraints.md (Ynn, Y00, Y01, Y02, Ym1, Ym2, YIJ):
11876         New constraints.
11877         * config/avr/avr.h (LONG_LONG_ACCUM_TYPE_SIZE): Define.
11879 2012-08-23  Kenneth Zadeck <zadeck@naturalbridge.com>
11881         * alias.c (rtx_equal_for_memref_p): Convert constant cases.
11882         * combine.c (find_single_use_1, mark_used_regs_combine): Convert
11883         to CASE_CONST_ANY.
11884         * cse.c (exp_equiv_p, canon_reg, fold_rtx, cse_process_notes_1,
11885         count_reg_usage): Convert constant cases.
11886         * cselib.c (cselib_expand_value_rtx_1): Convert to CASE_CONST_ANY.
11887         (cselib_subst_to_values): Convert constant cases.
11888         * df-scan.c (df_uses_record): Ditto.
11889         * dse.c (const_or_frame_p): Convert case statements to explicit
11890         if-then-else using mode classes.
11891         * emit-rtl.c (verify_rtx_sharing, copy_insn_1): Convert constant cases.
11892         * explow.c (convert_memory_address_addr_space): Ditto.
11893         * gcse.c (want_to_gcse_p, oprs_unchanged_p, compute_transp): Ditto.
11894         * genattrtab.c (attr_copy_rtx, clear_struct_flag): Ditto.
11895         * ira.c (equiv_init_varies_p, contains_replace_regs,
11896         memref_referenced_p, rtx_moveable_p): Ditto.
11897         * jump.c (mark_jump_label_1): Remove constant cases.
11898         (rtx_renumbered_equal_p): Convert to CASE_CONST_UNIQUE.
11899         * loop-invariant.c (check_maybe_invariant, hash_invariant_expr_1,
11900         invariant_expr_equal_p): Convert to CASE_CONST_ANY.
11901         * postreload-gcse.c (oprs_unchanged_p): Convert constant cases.
11902         * reginfo.c (reg_scan_mark_refs): Ditto.
11903         * regrename.c (scan_rtx): Ditto.
11904         * reload1.c (eliminate_regs_1, elimination_effects,
11905         scan_paradoxical_subregs): Ditto.
11906         * reload.c (operands_match_p, subst_reg_equivs):  Ditto.
11907         * resource.c (mark_referenced_resources, mark_set_resources): Ditto.
11908         * rtlanal.c (rtx_unstable_p, rtx_varies_p, count_occurrences)
11909         (reg_mentioned_p, modified_between_p, modified_in_p)
11910         (volatile_insn_p, volatile_refs_p, side_effects_p, may_trap_p_1,
11911         inequality_comparisons_p, computed_jump_p_1): Ditto.
11912         * rtl.c (copy_rtx, rtx_equal_p_cb, rtx_equal_p): Ditto.
11913         * sched-deps.c (sched_analyze_2): Ditto.
11914         * valtrack.c (cleanup_auto_inc_dec): Ditto.
11915         * rtl.h: (CASE_CONST_SCALAR_INT, CASE_CONST_UNIQUE,
11916         CASE_CONST_ANY): New macros.
11918 2012-08-23  Julian Brown  <julian@codesourcery.com>
11919             Sandra Loosemore  <sandra@codesourcery.com>
11921         * config/mips/mips.md
11922         (UNSPEC_CASESI_DISPATCH): New.
11923         (MIPS16_T_REGNUM): New constant.
11924         (tablejump): Don't use for MIPS16_SHORT_JUMP_TABLES.
11925         (casesi): New.
11926         (casesi_internal_mips16_<mode>): New.
11927         * config/mips/mips.c (mips16_split_long_branches): Adjust test
11928         to ignore casesi jump tables.
11929         * config/mips/mips.h (TARGET_MIPS16_SHORT_JUMP_TABLES): Update
11930         comment.
11931         (CASE_VECTOR_MODE): Use SImode unconditionally.
11932         (CASE_VECTOR_SHORTEN_MODE): Define.
11933         (ASM_OUTPUT_ADDR_DIFF_ELT): Output word-sized addr_diff_elts
11934         when necessary for MIPS16_SHORT_JUMP_TABLES.
11936 2012-08-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11938         * config/rs6000/rs6000.c (rs6000_density_test): Free loop body.
11940 2012-08-23  H.J. Lu  <hongjiu.lu@intel.com>
11942         PR driver/54335
11943         * doc/invoke.texi: Add -da and remove -dm.
11945 2012-08-23  Richard Guenther  <rguenther@suse.de>
11947         * tree-vect-stmts.c (vect_finish_stmt_generation): Update
11948         virtual SSA form.
11950 2012-08-23  Jakub Jelinek  <jakub@redhat.com>
11952         * tree.c (copy_node_stat): Clear DECL_STRUCT_FUNCTION.
11954 2012-08-23  Mingjie Xing  <mingjie.xing@gmail.com>
11956         * doc/gty.texi: Fix typo.
11958 2012-08-23  Richard Guenther  <rguenther@suse.de>
11960         * tree-ssa-loop-manip.c (add_exit_phis_var): Allow virtual operands.
11961         (find_uses_to_rename_use): Likewise.
11962         (find_uses_to_rename_bb): Likewise.
11963         (find_uses_to_rename_stmt): Walk over all operands.
11965 2012-08-22  Oleg Endo  <olegendo@gcc.gnu.org>
11967         PR target/54089
11968         * config/sh/predicates (p27_rshift_count_operand,
11969         not_p27_rshift_count_operand): New predicates.
11970         * config/sh/sh.c (sh_ashlsi_clobbers_t_reg_p,
11971         sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p): Handle special
11972         case when shift amount is 31.
11973         (gen_ashift): Emit gen_shlr instead of gen_lshrsi3_m.
11974         * config/sh/sh.md (ashlsi3_d): Set type to 'dyn_shift' instead
11975         of 'arith'.
11976         (ashlsi_c): Rename to shll.  Adapt calls to gen_ashlsi_c throughout
11977         the file.
11978         (lshrsi3): Remove clobber from expander.  Use shift_count_operand
11979         instead of nonmemory_operand predicate for second operand.  Add
11980         handling of case lshrsi3_n_clobbers_t.
11981         (lshrsi3_k): Use p27_rshift_count_operand for second operand.
11982         (lshrsi3_d): Make insn_and_split.  Split dynamic shift to constant
11983         shift sequences if beneficial.
11984         (lshrsi3_n): Make insn_and_split.  Split constant shift sequence to
11985         dynamic shift if beneficial.
11986         (lshrsi3_n_clobbers_t): New insn_and_split.
11987         (lshrsi3_m): Delete.
11989 2012-08-22  Steven Bosscher  <steven@gcc.gnu.org>
11991         * tracer.c (mark_bb_seen): Use SBITMAP_SIZE.
11993         * alias.c (MAX_ALIAS_LOOP_PASSES): Update comment with rationale,
11994         or rather a lack thereof.
11995         (init_alias_analysis): Propagate the latest information across
11996         the CFG in topological order to propagate as far as possible in
11997         each iteration.  Ignore debug insns.
11999 2012-08-22  H.J. Lu  <hongjiu.lu@intel.com>
12001         * doc/invoke.texi: Document -mlong-double-64/-mlong-double-80.
12003         * config/i386/i386.c (flag_opts): Add -mlong-double-64.
12004         (TARGET_HAS_BIONIC): Default long double to 64-bit for Bionic.
12006         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 64 if
12007         TARGET_LONG_DOUBLE_64 is true.
12008         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New macro.
12009         (WIDEST_HARDWARE_FP_SIZE): Defined to 80.
12011         * config/i386/i386.opt (mlong-double-80): New option.
12012         (mlong-double-64): Likewise.
12014         * config/i386/i386-c.c (ix86_target_macros): Define
12015         __LONG_DOUBLE_64__ for TARGET_LONG_DOUBLE_64.
12017 2012-08-22  H.J. Lu  <hongjiu.lu@intel.com>
12019         PR target/54347
12020         * config/i386/i386.c (ix86_split_to_parts): Replace
12021         REAL_VALUE_TO_TARGET_LONG_DOUBLE with real_to_target.
12023 2012-08-22  Richard Guenther  <rguenther@suse.de>
12025         * tree-vectorizer.c (vectorize_loops): Do not call
12026         mark_virtual_operands_for_renaming.
12027         * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
12028         Do not update SSA form here.
12030 2012-08-22  Dodji Seketeli  <dodji@redhat.com>
12032         * tree.h (TREE_NOTHROW): Use the base.nothrow_flag.
12034 2012-08-22  Richard Guenther  <rguenther@suse.de>
12036         PR tree-optimization/46590
12037         * tree-ssa-alias.h (get_continuation_for_phi): Add alias query
12038         counter output argument.
12039         (walk_non_aliased_vuses): Add alias query counter argument
12040         to the walker callback.
12041         * tree-ssa-alias.c (maybe_skip_until): Add alias query counter
12042         output argument and count alias queries.
12043         (get_continuation_for_phi_1): Likewise.
12044         (get_continuation_for_phi): Likewise.
12045         (walk_non_aliased_vuses): Add alias query counter argument
12046         to the walker callback and allow it to abort the walk by
12047         returning -1.
12048         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
12049         * tree-ssa-sccvn.c (vn_reference_lookup_2): Add alias query
12050         counter parmeter, abort walk if that is bigger than
12051         --param sccvn-max-alias-queries-per-access.
12052         * params.def (sccvn-max-alias-queries-per-access): New param.
12053         * doc/invoke.texi (sccvn-max-alias-queries-per-access): Document.
12055 2012-08-22  Richard Guenther  <rguenther@suse.de>
12057         * tree-ssa-loop-ch.c (copy_loop_headers): Remove redundant checking.
12058         * tree-into-ssa.c (initialize_flags_in_bb): Use gcc_checking_assert
12059         instead of gcc_assert.
12060         (mark_block_for_update): Likewise.
12061         (add_new_name_mapping): Likewise.
12062         (mark_def_sites): Likewise.
12063         (insert_phi_nodes_for): Likewise.
12064         (rewrite_debug_stmt_uses): Likewise.
12065         (rewrite_stmt): Likewise.
12066         (maybe_register_def): Likewise.
12067         (rewrite_update_phi_arguments): Likewise.
12068         (rewrite_update_enter_block): Likewise.
12069         (mark_def_interesting): Likewise.
12070         (prepare_def_site_for): Likewise.
12071         (insert_updated_phi_nodes_for): Likewise.
12073 2012-08-22  Jakub Jelinek  <jakub@redhat.com>
12075         * tree-vect-loop.c (vect_transform_loop): Initialize
12076         check_profitability to false.
12078         * tree-predcom.c (try_combine_chains): Free the worklist vector
12079         at the end.
12081 2012-08-22  Marc Glisse  <marc.glisse@inria.fr>
12083         PR tree-optimization/54317
12084         * tree-vrp.c (extract_range_from_binary_expr_1): Test for
12085         double_int overflow.
12086         Remove dead tests.
12088 2012-08-22  Jakub Jelinek  <jakub@redhat.com>
12090         * tree-vrp.c (find_assert_locations): Skip also edges
12091         from the entry block.
12093         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Call
12094         free_stmt_vec_info on orig_cond after gsi_removing it.
12095         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Always
12096         free body_cost_vec vector.
12097         (vect_analyze_data_refs): If gather is unsuccessful,
12098         free_data_ref (dr).
12099         * tree-inline.c (tree_function_versioning): Free
12100         old_transforms_to_apply vector.
12102 2012-08-22  Steven Bosscher  <steven@gcc.gnu.org>
12104         * tree-ssa-coalesce.c (struct ssa_conflicts_d): Make contents
12105         of this a VEC and add a bitmap obstack.
12106         (ssa_conflicts_new): Allocate the obstack and grow the VEC cleared
12107         to the right size.
12108         (ssa_conflicts_delete): Free the VEC and release the obstack.
12109         (ssa_conflicts_test_p, ssa_conflicts_test_p, ssa_conflicts_add_one,
12110         ssa_conflicts_merge, ssa_conflicts_dump): Update for above changes.
12111         (truct live_track_d): Add another bitmap obstack here.
12112         (new_live_track): Initialize it and use it for all bitmaps.
12113         (delete_live_track): Don't free the bitmaps one at a time, just
12114         release the obstack.
12115         (create_outofssa_var_map): Fix to conform to GCC code style rules.
12117 2012-08-21  Nathan Froyd  <froydnj@gcc.gnu.org>
12119         * config/m32c/constraints.md: New file.
12120         * config/m32c/t-m32c (MD_FILES): Add constraints.
12121         * config/m32c/m32c-protos.h (m32c_const_ok_for_constraint_p): Delete.
12122         (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
12123         (m32c_reg_class_from_constraint): Delete.
12124         (m32c_extra_constraint_p, m32c_extra_constraint_p2): Delete.
12125         (m32c_matches_constraint_p): Declare.
12126         * config/m32c/m32c.h (CONSTRAINT_LEN): Delete.
12127         (REG_CLASS_FROM_CONSTRAINT): Delete.
12128         (CONST_OK_FOR_CONSTRAINT_P): Delete.
12129         (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Delete.
12130         (EXTRA_CONSTRAINT_STR): Delete.
12131         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Delete.
12132         * config/m32c/m32c.c: Include tm-constrs.h
12133         (m32c_reg_class_from_constraint): Delete.
12134         (m32c_const_ok_for_constraint_p): Delete.
12135         (m32c_extra_constraint_p2): Rename to...
12136         (m32c_matches_constraint_p): ...this.  Make it return bool.  Tweak
12137         formatting.
12138         (m32c_extra_constraint_p): Delete.
12139         (m32c_extra_address_constraint, m32c_extra_memory_constraint): Delete.
12140         (m32c_split_move): Use satisfies_constraint_Ss.
12141         * config/m32c/predicates.md (memsym_operand): Use
12142         satisfies_constraint_Si.
12143         (memimmed_operand): Use satisfies_constraint_Sp.
12144         (m32c_psi_scale, m32c_1bit8_operand): Use satisfies_constraint_Ilb.
12145         (m32c_1bit16_operand): Use satisfies_constraint_Ilw.
12146         (m32c_1mask8_operand): Use satisfies_constraint_ImB.
12147         (m32c_1mask16_operand): Use satisfies_constraint_Imw.
12149 2012-08-21  Nathan Froyd  <froydnj@gcc.gnu.org>
12151         * config/mep/mep.h (REG_CLASS_FROM_CONSTRAINT): Delete.
12152         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12153         (CONSTRAINT_LEN, EXTRA_CONSTRAINT): Delete.
12154         * config/mep/mep.c (mep_reg_class_from_constraint): Delete.
12155         (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
12156         * config/mep/mep-protos.h (mep_reg_class_from_constraint): Delete.
12157         (mep_const_ok_for_letter_p, mep_extra_constraint): Delete.
12159 2012-08-21  Oleg Endo  <olegendo@gcc.gnu.org>
12161         * config/sh/sh.md (cmpeqdi_t, cmpgtdi_t, cmpgedi_t, cmpgeudi_t,
12162         cmpgtudi_t, *movsicc_t_false, *movsicc_t_true, divsi_inv20, negsi_cond,
12163         truncdihi2, ic_invalidate_line_i, ic_invalidate_line_sh4a,
12164         ic_invalidate_line_media, movdf_i4, calli_pcrel, call_valuei,
12165         call_valuei_pcrel, sibcalli_pcrel, sibcall_compact,
12166         sibcall_valuei_pcrel, sibcall_value_compact, casesi_worker_1,
12167         casesi_worker_2, bandreg_m2a, borreg_m2a, bxorreg_m2a, sp_switch_1,
12168         sp_switch_2, stack_protect_set_si, stack_protect_set_si_media,
12169         stack_protect_set_di_media, stack_protect_test_si,
12170         stack_protect_test_si_media, stack_protect_test_di_media): Convert to
12171         multi-line asm output strings.
12172         (divsi_inv_qitable, divsi_inv_hitable): Use single-alternative asm
12173         output.
12174         (*andsi3_bclr, rotldi3_mextr, rotrdi3_mextr, calli,
12175         call_valuei_tbr_rel, movml_push_banked, movml_pop_banked, bclr_m2a,
12176         bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12177         bld_reg, *bld_regqi, band_m2a, bor_m2a, bxor_m2a, mextr_rl, *mextr_lr):
12178         Use tab char instead of '\\t'.
12179         (iordi3): Use braced string.
12180         (*movsi_pop): Use tab chars instead of spaces.
12182 2012-08-21  Oleg Endo  <olegendo@gcc.gnu.org>
12184         PR target/39423
12185         * config/sh/sh.md (*movhi_index_disp): Add support for SH2A
12186         movu.w insn.
12188 2012-08-21  H.J. Lu  <hongjiu.lu@intel.com>
12190         PR middle-end/54332
12191         * df-scan.c (df_bb_verify): Restore df_free_collection_rec call
12192         inside the insn traversal loop.
12194         * vec.h (vec_reserve): Remove the stack allocation check.
12196 2012-08-21  Marc Glisse  <marc.glisse@inria.fr>
12198         * fold-const.c (fold_ternary_loc): Detect identity permutations.
12199         Canonicalize permutations more.
12200         * tree-ssa-forwprop.c (is_combined_permutation_identity): New function.
12201         (simplify_permutation): Likewise.
12202         (ssa_forward_propagate_and_combine): Call it.
12204 2012-08-21  Richard Guenther  <rguenther@suse.de>
12206         * tree-ssa-loop-im.c (tree_ssa_lim_finalize): Properly free
12207         the affine expansion cache.
12208         * tree-ssa-dom.c (free_expr_hash_elt_contents): New function,
12209         split out from ...
12210         (free_expr_hash_elt): ... this one.
12211         (record_cond): Properly free a not needed hashtable element.
12212         (lookup_avail_expr): Likewise.
12213         * tree-into-ssa.c (init_ssa_renamer): Specify a free function
12214         for the var_infos hashtable.
12215         (update_ssa): Likewise.
12217 2012-08-21  Richard Guenther  <rguenther@suse.de>
12219         * alloc-pool.c (pool_alloc): Fix valgrind annotation.
12220         * tree.h: Fix typo and complete flags documentation.
12222 2012-08-21  Richard Guenther  <rguenther@suse.de>
12224         * tree.h (struct tree_base): Add union to make it possible to
12225         re-use the upper 4 bytes for tree codes that do not need as
12226         many flags as others.  Move visited and default_def_flag to
12227         common bits section in exchange for saturating_flag and
12228         unsigned_flag.  Add SSA name version and tree vec length
12229         fields here.
12230         (struct tree_vec): Remove length field here.
12231         (struct tree_ssa_name): Remove version field here.
12233 2012-08-20  Jan Hubicka  <jh@suse.cz>
12235         PR fortran/48636
12236         * ipa-inline.c (want_inline_small_function_p): Take loop_iterations
12237         hint.
12238         (edge_badness): Likewise.
12239         * ipa-inline.h (inline_hints_vals): Add INLINE_HINT_loop_iterations.
12240         (inline_summary): Add loop_iterations.
12241         * ipa-inline-analysis.c: Include tree-scalar-evolution.h.
12242         (dump_inline_hints): Dump loop_iterations.
12243         (reset_inline_summary): Free loop_iterations.
12244         (inline_node_duplication_hook): Update loop_iterations.
12245         (dump_inline_summary): Dump loop_iterations.
12246         (will_be_nonconstant_expr_predicate): New function.
12247         (estimate_function_body_sizes): Analyze loops.
12248         (estimate_node_size_and_time): Set hint loop_iterations.
12249         (inline_merge_summary): Merge loop iterations.
12250         (inline_read_section): Stream in loop_iterations.
12251         (inline_write_summary): Stream out loop_iterations.
12253 2012-08-20  Oleg Endo  <olegendo@gcc.gnu.org>
12255         PR target/54089
12256         * config/sh/sh.md (rotcr, *rotcr, shar, shlr): New insns and splits.
12257         (ashrdi3_k, lshrdi3_k): Rewrite as insn_and_split.
12258         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p): New function.
12259         * config/sh/sh-protos.h (sh_lshrsi_clobbers_t_reg_p): Declare it.
12261 2012-08-20  Oleg Endo  <olegendo@gcc.gnu.org>
12263         PR target/51244
12264         * config/sh/sh.md (*cset_zero): New insns.
12266 2012-08-20  Mark Wielaard  <mjw@redhat.com>
12268         * dwarf2out.h (enum dw_val_class): Add dw_val_class_high_pc.
12269         * dwarf2out.c (dw_val_equal_p): Handle dw_val_class_high_pc.
12270         (add_AT_low_high_pc): New function.
12271         (AT_lbl): Handle dw_val_class_high_pc.
12272         (print_die): Likewise.
12273         (attr_checksum): Likewise.
12274         (attr_checksum_ordered): Likewise.
12275         (same_dw_val_p): Likewise.
12276         (size_of_die): Likewise.
12277         (value_format): Likewise.
12278         (output_die): Likewise.
12279         (gen_subprogram_die): Use add_AT_low_high_pc.
12280         (add_high_low_attributes): Likewise.
12281         (dwarf2out_finish): Likewise.
12283 2012-08-20  Jakub Jelinek  <jakub@redhat.com>
12285         PR rtl-optimization/54294
12286         * fwprop.c (all_uses_available_at): Ignore debug insns in between
12287         def_insn and target_insn when checking whether the shortcut is
12288         possible.
12290 2012-08-20  Eric Botcazou  <ebotcazou@adacore.com>
12292         * config/sparc/sparc.h (MAX_FIXED_MODE_SIZE): Define.
12294 2012-08-20  Patrick Marlier  <patrick.marlier@gmail.com>
12296         PR middle-end/53992
12297         * omp-low.c (lower_omp_1): Handle GIMPLE_TRANSACTION.
12299 2012-08-20  Richard Earnshaw  <rearnsha@arm.com>
12301         PR tree-ssa/54295
12302         * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
12303         declaration and setter.
12305 2012-08-20  Richard Earnshaw  <rearnsha@arm.com>
12307         PR tree-ssa/54295
12308         * tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
12309         New function.
12310         (is_widening_mult_rhs_p): Use it.
12312 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
12314         * configure.ac (ffs): Check for declaration.
12315         * configure, config.in: Regenerate.
12317 2012-08-20  Richard Guenther  <rguenther@suse.de>
12319         * tree-flow.h (register_new_name_mapping): Remove.
12320         * tree-into-ssa.c (register_new_name_mapping): Likewise.
12321         (add_new_name_mapping): Do not push/pop timevar here.
12322         (create_new_def_for): Instead do it here.  Initialize
12323         update-ssa here, handle a NULL def.
12324         * tree-vrp.c (build_assert_expr_for): Use create_new_def_for.
12326 2012-08-20  Richard Guenther  <rguenther@suse.de>
12328         PR tree-optimization/54327
12329         * gimple-fold.c (get_maxval_strlen): Do not walk use-def chains
12330         if the use is registered for SSA update.
12332 2012-08-20  Jakub Jelinek  <jakub@redhat.com>
12334         PR tree-optimization/54321
12335         * tree-ssa-forwprop.c (simplify_builtin_call): Pass 0 instead of 1
12336         as second argument to tree_low_cst call on val2.
12338 2012-08-20  Richard Guenther  <rguenther@suse.de>
12340         * gimple.h (gimple_statement_base): Annotate with GTY chain_next.
12342 2012-08-20  Richard Guenther  <rguenther@suse.de>
12344         PR bootstrap/54326
12345         * genoutput.c (note_constraint): Properly use CONST_CAST.
12347 2012-08-19  Nick Clifton  <nickc@redhat.com>
12349         PR target/54306
12350         * config/arm/mmintrin.h: Remove spurious #endif.
12352 2012-08-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12354         * config/avr/avr-log.c (avr_log_vadump): Properly use
12355         int-promoted enum values.
12356         * config/avr/avr.h (struct mcu_type_s): Change `arch' from
12357         int to enum avr_arch.
12358         * config/avr/gen-avr-mmcu-texi.c (main): Use correct initializer.
12360 2012-08-18  Jan Hubicka  <jh@suse.cz>
12362         PR lto/45375
12363         * ipa-inline.c (want_inline_small_function_p): Bypass
12364         inline limits for hinted functions.
12365         (edge_badness): Dump hints; decrease badness for hinted funcitons.
12366         * ipa-inline.h (enum inline_hints_vals): New enum.
12367         (inline_hints): New type.
12368         (edge_growth_cache_entry): Add hints.
12369         (dump_inline_summary): Update.
12370         (dump_inline_hints): Declare.
12371         (do_estimate_edge_hints): Declare.
12372         (estimate_edge_hints): New inline function.
12373         (reset_edge_growth_cache): Update.
12374         * predict.c (cgraph_maybe_hot_edge_p): Do not ice on indirect edges.
12375         * ipa-inline-analysis.c (dump_inline_hints): New function.
12376         (estimate_edge_devirt_benefit): Return true when function should be
12377         hinted.
12378         (estimate_calls_size_and_time): New hints argument; set it when
12379         devritualization happens.
12380         (estimate_node_size_and_time): New hints argument.
12381         (do_estimate_edge_time): Cache hints.
12382         (do_estimate_edge_growth): Update.
12383         (do_estimate_edge_hints): New function
12385 2012-08-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12387         PR middle-end/53823
12388         * expmed.c (expand_mult): Skip synth_mult for negative coefficients
12389         if the mode is larger than a wide int and it is too costly to multiply
12390         by a positive multiplier and negate the result.
12392 2012-08-18  Steven Bosscher  <steven@gcc.gnu.org>
12394         * sparseset.c (sparseset_alloc): Use non-clearing allocation.  Tell
12395         valgrind not to worry about reading from unitialized memory.
12397 2012-08-18  Steven Bosscher  <steven@gcc.gnu.org>
12399         PR middle-end/54313
12400         * dse.c (dse_step7): Don't free kill_on_calls bitmap, it is
12401         freed when its obstack is release.
12403 2012-08-18  Andrew Pinski  <pinskia@gmail.com>
12405         * alloc-pool.c (pool_alloc): Add valgrind markers.
12406         (pool_free): Likewise.
12408 2012-08-17  Walter Lee  <walt@tilera.com>
12410         * config/tilegx/feedback.h (FEEDBACK_ENTER_EXPLICIT): Define.
12411         (FEEDBACK_ENTER): Define.
12412         (FEEDBACK_REENTER): Define.
12413         (FEEDBACK_ENTRY): Define.
12414         * config/tilepro/feedback.h: (FEEDBACK_ENTER_EXPLICIT): Define.
12415         (FEEDBACK_ENTER): Define.
12416         (FEEDBACK_REENTER): Define.
12417         (FEEDBACK_ENTRY): Define.
12419 2012-08-17  H.J. Lu  <hongjiu.lu@intel.com>
12420             Gary Funck <gary@intrepid.com>
12422         PR target/20020
12423         * config/i386/i386.c (ix86_member_type_forces_blk): New function.
12424         (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
12426         * config/i386/i386.h (MAX_FIXED_MODE_SIZE): New macro.
12428 2012-08-17  Marc Glisse  <marc.glisse@inria.fr>
12430         * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
12431         a concatenation.
12433 2012-08-17  H.J. Lu  <hongjiu.lu@intel.com>
12435         * stor-layout.c (compute_record_mode): Replace
12436         MEMBER_TYPE_FORCES_BLK with targetm.member_type_forces_blk.
12437         (layout_type): Likewise.
12439         * system.h: Poison MEMBER_TYPE_FORCES_BLK.
12441         * target.def (member_type_forces_blk): New target hook.
12443         * targhooks.c (default_member_type_forces_blk): New.
12444         * targhooks.h (default_member_type_forces_blk): Likewise.
12446         * doc/tm.texi.in (MEMBER_TYPE_FORCES_BLK): Removed.
12447         (TARGET_MEMBER_TYPE_FORCES_BLK): New hook.
12448         * doc/tm.texi: Regenerated.
12450         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Removed.
12452         * config/ia64/ia64.c (ia64_member_type_forces_blk): New function.
12453         (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
12455         * config/rs6000/rs6000.c (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
12456         (rs6000_member_type_forces_blk): New function.
12458         * config/rs6000/rs6000.h (MEMBER_TYPE_FORCES_BLK): Removed.
12460         * config/xtensa/xtensa.c (xtensa_member_type_forces_blk): New function.
12461         (TARGET_MEMBER_TYPE_FORCES_BLK): New macro.
12463         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Removed.
12465 2012-08-17  Diego Novillo  <dnovillo@google.com>
12467         PR bootstrap/54281
12468         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
12469         * config.in: Regenerate.
12470         * configure: Regenerate.
12471         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
12473 2012-08-17  Richard Guenther  <rguenther@suse.de>
12475         * bitmap.h (struct bitmap_element_def): GTY annotate next/prev.
12476         (struct bitmap_head_def): GTY skip current field.
12478 2012-08-17  Steven Bosscher  <steven@gcc.gnu.org>
12480         PR middle-end/54146
12481         * tree-ssa-loop-im.c (lim_bitmap_obstack): New bitmap_obstack.
12482         (memref_free): Don't free the bitmaps individually here.
12483         (mem_ref_alloc): Allocate the bitmaps on the new bitmap obstack.
12484         (analyze_memory_references): Likewise.
12485         (tree_ssa_lim_initialize): Initialize the new bitmap obstack.
12486         (tree_ssa_lim_finalize): Release it.
12487         * dse.c (dse_bitmap_obstack): New bitmap obstack.
12488         (dse_obstack): New obstack.
12489         (get_group_info): Allocate the bitmaps on the new bitmap obstack.
12490         (dse_step0): Allocate the scratch bitmap on reg_obstack.  Initialize
12491         the new bitmap obstack and normal obstack.  Use XNEWVEC for bb_table.
12492         (record_store): Allocate regs_set on reg_obstack.
12493         (dse_step1): Allocate regs_live on reg_obstack.
12494         (dse_step2_init): Allocate offset_map_n and offset_map_p on the new
12495         obstack.
12496         (dse_step3_scan): Allocate bitmaps on the new bitmap obstack.
12497         (dse_step3): Likewise.
12498         (dse_confluence_0): Likewise.
12499         (dse_confluence_n): Likewise.
12500         (dse_transfer_function): Likewise.
12501         (dse_step7): Destroy the new obstacks, and everything allocated on
12502         them, in one big sweep.
12503         (rest_of_handle_dse): Update.
12504         * cfgexpand.c (stack_var_bitmap_obstack): New bitmap obstack.
12505         (add_stack_var_conflict): Allocate bitmaps on it.
12506         (add_scope_conflicts_1): Likewise.
12507         (add_scope_conflicts): Likewise.
12508         (update_alias_info_with_stack_vars): Likewise.
12509         (init_vars_expansion): Move TREE_USED fiddling expand_used_vars.
12510         Initialize the new bitmap obstack.
12511         (fini_vars_expansion): Release it.
12512         (estimated_stack_frame_size): Use init_vars_expansion to set things up
12513         and always clean up at the end.
12514         (expand_used_vars): Do the TREE_USED trickery here.  Always call
12515         fini_vars_expansion.
12516         * tree-ssa-live.h (struct tree_live_info_d): Make livein and liveout
12517         arrays of bitmap_head to avoid one indirection per bitmap access.
12518         (live_on_entry, live_on_exit, live_var_map, live_merge_and_clear,
12519         make_live_on_entry): Update.
12520         * tree-ssa-live.c (partition_view_bitmap): Don't double-free 'used'.
12521         (liveness_bitmap_obstack): New bitmap obstack.
12522         (remove_unused_locals): Use it to allocate all bitmaps on.  Update
12523         for livein/liveout changes in tree-ssa-live.h.
12524         (delete_tree_live_info): Release the bitmap obstack.
12525         (loe_visit_block, live_worklist, set_var_live_on_entry,
12526         calculate_live_on_exit, dump_live_info): Update.
12527         (calculate_live_ranges): Initialize the bitmap.
12528         * tree-ssa-ter.c (ter_bitmap_obstack): New bitmap obstack.
12529         (new_temp_expr_table): Allocate bitmap on it.
12530         (make_dependent_on_partition, add_to_partition_kill_list,
12531         add_dependence, process_replaceable): Likewise.
12532         (find_replaceable_exprs): Initialize and release the new obstack here.
12533         * df-problems.c (df_lr_add_problem): Allocate persistent bitmap
12534         for out_of_date_transfer_functions on df_bitmap_obstack.
12535         (df_live_add_problem): Likewise.
12536         (df_chain_add_problem): Likewise.
12537         (df_word_lr_add_problem): Likewise.
12539 2012-08-17  Nick Clifton  <nickc@redhat.com>
12541         * config/fr30/fr30.md (cbranchsi4): Remove mode from comparison.
12542         (branch_true): Likewise.
12543         (branch_false): Likewise.
12545         * config/mcore/mcore.md (cbranchsi4): Remove mode from comparison.
12547         * config/iq2000/iq2000.md (cbranchsi4): Remove mode from
12548         comparison and label.
12549         (branch_zero): Likewise.
12550         (branch_zero_inverted): Likewise.
12551         (branch_equality): Likewise.
12552         (branch_equality_inverted): Likewise.
12553         (extend-and-compare): Disable until reload issues can be resolved.
12554         * config/iq2000/iq2000.c (gen_conditional_branch): Use VOIDmode
12555         for comparison.
12556         (iq2000_function_arg_advance): Remove CONST_CAST2.
12558         * config/mep/t-mep (mep-pragma.o): Use $(COMPILER) to compile
12559         mep-pragma.c.
12561 2012-08-17  Georg-Johann Lay  <avr@gjlay.de>
12563         * config/avr/t-avr (gen-avr-mmcu-texi): Use $(CC) to compile
12564         gen-avr-mmcu-texi.c.
12566 2012-08-17  Richard Earnshaw  <rearnsha@arm.com>
12568         * arm.md (arm_addsi3): New variant for Thumb2 16-bit ADD instruction.
12569         * arm.c (thumb2_reorg): Don't convert an ADD instruction that's
12570         already 16 bits.
12572 2012-08-17  Richard Guenther  <rguenther@suse.de>
12574         * hash-table.h (class hash_table): Use a descriptor template
12575         argument instead of decomposed element type and support functions.
12576         (struct pointer_hash): New generic typed pointer-hash.
12577         (struct typed_free_remove, struct typed_noop_remove): Generic
12578         hash_table support pieces.
12579         * coverage.c (struct counts_entry): Add hash_table support members.
12580         * tree-ssa-ccp.c (gimple_htab): Use pointer_hash.
12581         * tree-ssa-coalesce.c (struct ssa_name_var_hash): New generic
12582         SSA name by SSA_NAME_VAR hash.
12583         (coalesce_ssa_name): Use it.
12584         * tree-ssa-pre.c (struct pre_expr_d): Add hash_table support.
12585         (expression_to_id): Adjust.
12586         (struct expr_pred_trans_d): Add hash_table support.
12587         (phi_translate_table): Adjust.
12588         (phi_trans_lookup): Likewise.
12589         (phi_trans_add): Likewise.
12590         (do_regular_insertion): Likewise.
12591         * tree-ssa-tail-merge.c (struct same_succ_def): Add hash_table support.
12592         (same_succ_htab): Adjust.
12593         (find_same_succ_bb): Likewise.
12594         (find_same_succ): Likewise.
12595         (update_worklist): Likewise.
12596         * tree-ssa-threadupdate.c (struct redirection_data): Add hash_table
12597         support.
12598         (redirection_data): Adjust.
12600 2012-08-17  Richard Guenther  <rguenther@suse.de>
12602         * params.def (integer-share-limit): Decrease from 256 to 251,
12603         add rationale.
12605 2012-08-17  Richard Guenther  <rguenther@suse.de>
12607         * tree-sra.c (modify_function): Free redirect_callers vector.
12608         * ipa-split.c (split_function): Free args_to_pass vector.
12609         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Free
12610         body_cost_vec properly.
12611         (vect_enhance_data_refs_alignment): Likewise.
12612         * tree-vect-stmts.c (vectorizable_operation): Do not pre-allocate
12613         vec_oprnds.
12614         (new_stmt_vec_info): Do not pre-allocate STMT_VINFO_SAME_ALIGN_REFS.
12615         * tree-vect-slp.c (vect_free_slp_instance): Free the instance.
12616         (vect_analyze_slp_instance): Free everything.
12617         (destroy_bb_vec_info): Free the SLP instances.
12619 2012-08-17  Iain Sandoe  <iain@codesourcery.com>
12621         * config/rs6000/rs6000.c (macho_branch_islands): Adjust for changes
12622         to vec.h.
12624 2012-08-17  Jakub Jelinek  <jakub@redhat.com>
12626         * doc/invoke.texi (-Wsizeof-pointer-memaccess): Document.
12628 2012-08-16  Sandra Loosemore  <sandra@codesourcery.com>
12630         * config/mips/mips-dsp.md (mips_dpau_h_qbl, mips_dpau_h_qbr)
12631         (mips_dpsu_h_qbl, mips_dpsu_h_qbr, mips_dpaq_s_w_ph)
12632         (mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph, mips_dpaq_sa_l_w)
12633         (mips_dpsq_sa_l_w, mips_maq_s_w_phl, mips_maq_s_w_phr)
12634         (mips_maq_sa_w_phl, mips_maq_sa_w_phr): Add accum_in attribute.
12636 2012-08-16  Oleg Endo  <olegendo@gcc.gnu.org>
12638         PR target/54236
12639         * config/sh/sh.md (addc): Add commutative modifier.
12640         (*addc, *minus_plus_one, *subc, *negc): New insns and splits.
12642 2012-08-16  Oleg Endo  <olegendo@gcc.gnu.org>
12644         PR target/39423
12645         * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): Handle
12646         potential T_REG clobber.  Convert zero extending split to
12647         insn_and_split.
12649 2012-08-16  Oleg Endo  <olegendo@gcc.gnu.org>
12651         PR target/54089
12652         * config/sh/sh.md (ashlsi3_d): Do not split if it would result
12653         in a T_REG clobber.  Correct comment.
12654         (ashlsi3_n): Correct comment.
12656 2012-08-16  Hans-Peter Nilsson  <hp@axis.com>
12658         PR middle-end/54261
12659         * optabs.c (expand_atomic_fetch_op): Save and restore code when
12660         retrying after failed attempt.
12662 2012-08-16  Yuri Rumyantsev  <ysrumyan@gmail.com>
12664         * config/i386/i386-protos.h (ix86_split_lea_for_addr) : Add
12665         additional argument.
12666         * config/i386/i386.md (ix86_split_lea_for_addr) : Add
12667         additional argument curr_insn.
12668         * config/i386/i386.c (ix86_split_lea_for_addr): Load base or index
12669         register first, depending on their defintion distances.
12670         (ix86_lea_outperforms): Prefer LEA only if split cost exceeds
12671         AGU stall.
12672         (find_nearest_reg-def): New function. Find register with
12673         nearest definition.
12675 2012-08-16  Walter Lee  <walt@tilera.com>
12677         * config.gcc (tilegx-*-linux*): Add feedback.h.
12678         (tilepro-*-linux*): Likewise.
12679         * config/tilegx/feedback.h: New file.
12680         * config/tilepro/feedback.h: New file.
12682 2012-08-16  Diego Novillo  <dnovillo@google.com>
12684         Revert
12686         PR bootstrap/54281
12687         * double-int.h: Move including of gmp.h ...
12688         * system.h: ... here.
12689         * realmpfr.h: Do not include gmp.h.
12690         * tree-ssa-loop-niter.c: Do not include gmp.h.
12692 2012-08-16  Segher Boessenkool  <segher@kernel.crashing.org>
12694         * config/rs6000/darwin.h (TARGET_IEEE_QUAD): Fix comment.
12696 2012-08-16  Richard Guenther  <rguenther@suse.de>
12698         PR middle-end/54146
12699         * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Free the
12700         exit vector.
12701         * ipa-pure-const.c (analyze_function): Use FOR_EACH_LOOP_BREAK.
12702         * cfgloop.h (FOR_EACH_LOOP_BREAK): Fix.
12703         * tree-ssa-structalias.c (handle_lhs_call): Properly free rhsc.
12704         * tree-into-ssa.c (get_ssa_name_ann): Allocate info only when needed.
12705         * tree-ssa-loop-im.c (analyze_memory_references): Adjust.
12706         (tree_ssa_lim_finalize): Free all mem_refs.
12707         * tree-ssa-sccvn.c (extract_and_process_scc_for_name): Free
12708         scc when bailing out.
12709         * modulo-sched.c (sms_schedule): Use FOR_EACH_LOOP_BREAK.
12710         * ira-build.c (loop_with_complex_edge_p): Free loop exit vector.
12711         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): Use
12712         FOR_EACH_LOOP_BREAK.
12714 2012-08-16  Diego Novillo  <dnovillo@google.com>
12716         PR bootstrap/54281
12717         * double-int.h: Move including of gmp.h ...
12718         * system.h: ... here.
12719         * realmpfr.h: Do not include gmp.h.
12720         * tree-ssa-loop-niter.c: Do not include gmp.h.
12722 2012-08-16  Steven Bosscher  <steven@gcc.gnu.org>
12724         PR middle-end/54146
12725         * tree-flow.h (compute_global_livein): Remove prototype.
12726         * tree-into-ssa.c (compute_global_livein): Remove function.
12727         * tree-ssa-loop-manip.c: Include gimple-pretty-print.h.
12728         (find_sibling_superloop): New function.
12729         (compute_live_loop_exits): New function.
12730         (add_exit_phis_edge): Rename to add_exit_phi.  Do not allow
12731         inserting a PHI in a block that is not a loop exit for VAR.
12732         Add dumping if TDF_DETAILS.
12733         (add_exit_phis_var): Rewrite.
12734         (add_exit_phis): Update.
12735         (get_loops_exits): Rewrite to return an array of per-loop exits
12736         rather than one bitmap with all loop exits.
12737         (find_uses_to_rename_bb): Ignore virtual PHI nodes.
12738         (rewrite_into_loop_closed_ssa): Update.
12740 2012-08-16  Nick Clifton  <nickc@redhat.com>
12742         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Cast _ascii_bytes
12743         before passing it to ASM_OUTPUT_LIMITED_STRING.
12745         * config/bfin/bfin.c (hwloop_optimize): Fix use of VEC_last macro.
12747         * config/avr/t-avr: Replace occurrences of $(CC) with $(COMPILER).
12748         * config/avr/avr.c (avr_legitimize_reload_address): Add casts
12749         for reload_type enums.
12750         (DEF_BUILTIN): Cast the icode to enum insn_code.
12752 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
12754         * config/rs6000/aix43.h (ASM_CPU_SPEC): Use %(asm_default)
12755         instead of -mppc.
12756         * config/rs6000/aix51.h (ASM_CPU_SPEC): Ditto.
12758 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
12760         * config/rs6000/aix43.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
12761         (RS6000_CALL_GLUE): Adjust for single assembler syntax.
12762         * config/rs6000/aix51.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
12763         * config/rs6000/aix52.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
12764         * config/rs6000/aix53.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
12765         * config/rs6000/aix61.h (TARGET_DEFAULT, RS6000_CALL_GLUE): Ditto.
12766         * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
12767         * config/rs6000/darwin.md (whole file): Adjust to single
12768         assembler syntax.
12769         * config/rs6000/darwin64.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
12770         * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
12771         * config/rs6000/dfp.md: (whole file): Adjust to single
12772         assembler syntax.
12773         * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
12774         * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
12775         * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
12776         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
12777         * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
12778         * config/rs6000/rs6000-cpus.def (whole file): Delete POWERPC_BASE_MASK.
12779         * config/rs6000/rs6000-tables.opt: Regenerate.
12780         * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete.
12781         (num_insns_constant_wide): Adjust comments.
12782         (whole file): Adjust to single assembler syntax.
12783         (output_cbranch): Adjust comment.
12784         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Delete.
12785         * config/rs6000/rs6000.md: (whole file): Adjust to single
12786         assembler syntax.
12787         * config/rs6000/rs6000.opt (mnew-mnemonics): Delete.
12788         (mold-mnemonics): Delete.
12789         * config/rs6000/spe.md: (whole file): Adjust to single
12790         assembler syntax.
12791         * config/rs6000/sync.md: (whole file): Adjust to single
12792         assembler syntax.
12793         * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
12794         (ASM_OUTPUT_REG_PUSH): Adjust.
12795         (ASM_OUTPUT_REG_POP): Adjust.
12796         * config/rs6000/sysv4le.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
12797         * config/rs6000/vsx.md: (whole file): Adjust to single
12798         assembler syntax.
12799         * config/rs6000/vxworks.h (TARGET_DEFAULT): Delete MASK_NEW_MNEMONICS.
12800         * doc/invoke.texi: Adjust documentation to reflect the
12801         removal of -mnew-mnemonics and -mold-mnemonics.
12803 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
12805         * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
12806         Delete handling for -mno-powerpc and -mpowerpc.
12807         * config/rs6000/aix43.h (ASM_CPU_SPEC): Similar.
12808         (ASM_DEFAULT_SPEC): Use -mppc instead of -mcom.
12809         * config/rs6000/aix51.h (ASM_CPU_SPEC, ASM_DEFAULT_SPEC): Ditto.
12810         * config/rs6000/aix52.h (TARGET_DEFAULT): Delete MASK_POWERPC.
12811         * config/rs6000/aix53.h (TARGET_DEFAULT): Ditto.
12812         * config/rs6000/aix61.h (TARGET_DEFAULT): Ditto.
12813         * config/rs6000/darwin.h (TARGET_DEFAULT): Ditto.
12814         * config/rs6000/darwin64.h (TARGET_DEFAULT): Ditto.
12815         * config/rs6000/default64.h (TARGET_DEFAULT): Ditto.
12816         * config/rs6000/driver-rs6000.c (asm_names): Delete handling
12817         for -mcpu=common and -mpowerpc.
12818         * config/rs6000/eabi.h (TARGET_DEFAULT): Delete MASK_POWERPC.
12819         * config/rs6000/eabialtivec.h (TARGET_DEFAULT): Ditto.
12820         * config/rs6000/eabispe.h (TARGET_DEFAULT): Ditto.
12821         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Ditto.
12822         * config/rs6000/linuxspe.h (TARGET_DEFAULT): Ditto.
12823         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING):
12824         Use RS6000_BTM_ALWAYS instead of RS6000_BTM_POWERPC.
12825         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
12826         (rs6000_cpu_cpp_builtins): Adjust.
12827         * config/rs6000/rs6000.c (POWERPC_BASE_MASK): Delete MASK_POWERPC.
12828         (rs6000_builtin_mask_calculate): Adjust.
12829         (rs6000_emit_move): Delete code for ! TARGET_POWERPC.
12830         (rs6000_init_libfuncs): Ditto.
12831         (rs6000_output_function_prologue): Ditto.
12832         (rs6000_opt_masks): Delete MASK_POWERPC.
12833         (rs6000_builtin_mask_names): Delete RS6000_BTM_POWERPC.
12834         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete handling for -mpowerpc.
12835         (RS6000_BTM_POWERPC): Delete.
12836         (RS6000_BTM_COMMON): Delete RS6000_BTM_POWERPC.
12837         * config/rs6000/rs6000.md (extendqisi2 patterns): Adjust for
12838         TARGET_POWERPC always on.
12839         (extendqihi2 patterns): Similar.
12840         (various unnamed subtract patterns): Similar.
12841         (bswaphi2 patterns): Similar.
12842         (divmodsi4): Similar.
12843         (udiv<GPR:mode>3): Similar.
12844         (div<GPR:mode>3 patterns): Similar.
12845         (udivmodsi4): Similar.
12846         (mulhcall): Delete.
12847         (mullcall): Delete.
12848         (divss_call): Delete.
12849         (divus_call): Delete.
12850         (quoss_call): Delete.
12851         (quous_call): Delete.
12852         (insvsi patterns): Adjust.
12853         (addsf3 patterns): Adjust.
12854         (subsf3 patterns): Adjust.
12855         (mulsf3 patterns): Adjust.
12856         (divsf3 patterns): Adjust.
12857         (*fmasf4_fpr): Adjust.
12858         (*fmssf4_fpr): Adjust.
12859         (*nfmasf4_fpr): Adjust.
12860         (*nfmssf4_fpr): Adjust.
12861         (*floatunssidf2_internal): Adjust.
12862         (fix_trunc<SFDF:mode>si2_internal): Adjust.
12863         (fctiwz_<SFDF:mode>): Adjust.
12864         (mulsidi3 patterns): Adjust.
12865         (smulsi3_highpart patterns): Adjust.
12866         (umulsi3_highpart patterns): Adjust.
12867         (fix_trunctfsi2 patterns): Adjust.
12868         (prefetch): Adjust.
12869         * config/rs6000/rs6000.opt (mpowerpc): Replace by stub option.
12870         (mno-powerpc): Delete.
12871         * config/rs6000/sync.md (load_locked<ATOMIC:mode>): Adjust.
12872         (store_conditional<ATOMIC:mode>): Adjust.
12873         (atomic_compare_and_swap<ATOMIC:mode>): Adjust.
12874         (atomic_exchange<ATOMIC:mode>): Adjust.
12875         (atomic_<fetchop_name><ATOMIC:mode>): Adjust.
12876         (atomic_nand<ATOMIC:mode>): Adjust.
12877         (atomic_fetch_<fetchop_name><ATOMIC:mode>): Adjust.
12878         (atomic_fetch_nand<ATOMIC:mode>): Adjust.
12879         (atomic_<fetchop_name>_fetch<ATOMIC:mode>): Adjust.
12880         (atomic_nand_fetch<ATOMIC:mode>): Adjust.
12881         * config/rs6000/sysv4.h (TARGET_DEFAULT): Delete MASK_POWERPC.
12882         * config/rs6000/sysv4le.h (TARGET_DEFAULT): Ditto.
12883         * config/rs6000/vxworks.h (TARGET_DEFAULT): Ditto.
12884         * doc/invoke.texi: Adjust documentation.
12886 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
12888         * config/rs6000/rs6000.h (RS6000_BTM_ALWAYS): New.
12890 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
12892         * config/rs6000/aix52.h (ASM_CPU_SPEC): Fix typo.
12893         * config/rs6000/aix53.h (ASM_CPU_SPEC): Ditto.
12894         * config/rs6000/aix61.h (ASM_CPU_SPEC): Ditto.
12895         * config/rs6000/driver-rs6000.c (asm_names): Ditto.
12897 2012-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
12899         PR target/54142
12900         * config/rs6000/driver-rs6000.c (asm_names): Use %(asm_default)
12901         instead of -mcom.
12902         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Ditto.
12904 2012-08-15  Sandra Loosemore  <sandra@codesourcery.com>
12905             Maxim Kuvyrkov  <maxim@codesourcery.com>
12906             Julian Brown  <julian@codesourcery.com>
12907             MIPS Technologies, Inc.
12909         * config/mips/mips.md (dspmac, dspmacsat, accext, accmod, dspalu)
12910         (dspalusat): Add insn types.
12911         * config/mips/mips-dsp.md (add<DSPV:mode>3)
12912         (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>)
12913         (sub<DSPV:mode>3, mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc)
12914         (mips_addwc, mips_modsub, mips_raddu_w_qb, mips_absq_s_<DSPQ:dspfmt2>)
12915         (mips_precrq_qb_ph, mips_precrq_ph_w, mips_precrq_rs_ph_w)
12916         (mips_precrqu_s_qb_ph, mips_preceq_w_phl, mips_preceq_w_phr)
12917         (mips_precequ_ph_qbl, mips_precequ_ph_qbr, mips_precequ_ph_qbla)
12918         (mips_precequ_ph_qbra, mips_preceu_ph_qbl, mips_preceu_ph_qbr)
12919         (mips_preceu_ph_qbla, mips_preceu_ph_qbra, mips_shll_<DSPV:dspfmt2>)
12920         (mips_shll_s_<DSPQ:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>, mips_shrl_qb)
12921         (mips_shra_ph, mips_shra_r_<DSPQ:dspfmt2>, mips_bitrev, mips_insv)
12922         (mips_repl_qb, mips_repl_ph)
12923         (mips_cmp<DSPV:dspfmt1_1>_eq_<DSPV:dspfmt2>)
12924         (mips_cmp<DSPV:dspfmt1_1>_lt_<DSPV:dspfmt2>)
12925         (mips_cmp<DSPV:dspfmt1_1>_le_<DSPV:dspfmt2>, mips_cmpgu_eq_qb)
12926         (mips_cmpgu_lt_qb, mips_cmpgu_le_qb, mips_pick_<DSPV:dspfmt2>)
12927         (mips_packrl_ph, mips_wrdsp, mips_rddsp): Change type to dspalu.
12928         (mips_dpau_h_qbl, mips_dpau_h_qbr, mips_dpsu_h_qbl, mips_dpsu_h_qbr)
12929         (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph)
12930         (mips_maq_s_w_phl, mips_maq_s_w_phr, mips_maq_sa_w_phr): Set type to
12931         dspmac.
12932         (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_sa_w_phl): Set type to
12933         dspmacsat.
12934         (mips_extr_w, mips_extr_r_w, mips_extr_rs_w, mips_extp, mips_extpdp):
12935         Set type to accext.
12936         (mips_shilo, mips_mthlip): Set type to accmod.
12937         * config/mips/mips-dspr2.md (mips_absq_s_qb, mips_addu_s_ph)
12938         (mips_adduh_r_qb): Set type to dspalusat.
12939         (mips_addu_ph, mips_adduh_qb, mips_append, mips_balign)
12940         (mips_cmpgdu_eq_qb, mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb)
12941         (mips_precr_qb_ph, mips_precr_sra_ph_w, mips_precr_sra_r_ph_w)
12942         (mips_prepend, mips_shra_qb, mips_shra_r_qb, mips_shrl_ph)
12943         (mips_subu_ph, mips_subuh_qb, mips_subuh_r_qb, mips_addqh_ph)
12944         (mips_addqh_r_ph, mips_addqh_w, mips_addqh_r_w, mips_subqh_ph)
12945         (mips_subqh_r_ph, mips_subqh_w, mips_subqh_r_w): Set type to dspalu.
12946         (mips_dpa_w_ph, mips_dps_w_ph, mips_mulsa_w_ph, mips_dpax_w_ph)
12947         (mips_dpsx_w_ph, mips_dpaqx_s_w_ph, mips_dpsqx_s_w_ph): Set type to
12948         dspmac.  Set accum_in attribute.
12949         (mips_subu_s_ph): Set type to dspalusat.
12950         (mips_dpaqx_sa_w_ph, mips_dpsqx_sa_w_ph): Set type to dspmacsat.
12951         Set accum_in attribute.
12952         * config/mips/mips-protos.h (mips_dspalu_bypass_p): Add prototype.
12953         * config/mips/mips.c (dspalu_bypass_table): New.
12954         (mips_dspalu_bypass_p): New.
12955         * config/mips/24k.md (r24k_dsp_alu, r24k_dsp_mac, r24k_dsp_mac_sat)
12956         (r24k_dsp_acc_ext, r24k_dsp_acc_mod): New insn reservations.
12957         (r24k_int_mult, r24k_int_mthilo, r24k_dsp_mac, r24k_dsp_mac_sat)
12958         (r24k_dsp_acc_ext, r24k_dsp_acc_mod, r24k_dsp_alu): New bypasses.
12959         * config/mips/74k.md (r74k_dsp_alu, r74k_dsp_alu_sat, r74k_dsp_mac)
12960         (r74k_dsp_mac_sat, r74k_dsp_acc_ext, r74k_dsp_acc_mod): New insn
12961         reservations.
12962         (r74k_dsp_mac, r74k_dsp_mac_sat, r74k_int_mult, r74k_int_mul3)
12963         (r74k_dsp_mac, r74k_dsp_mac_sat): New bypasses.
12965 2012-08-15  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12967         * config/spu/spu.c: Include "cfgloop.h".
12968         (spu_machine_dependent_reorg): Call loop_optimizer_init and
12969         loop_optimizer_finalize.  Use bb_loop_depth instead of loop_depth.
12970         Directly compare loop_father values where appropriate.
12971         * config/spu/t-spu-elf (spu.o): Update dependencies.
12973 2012-08-15  H.J. Lu  <hongjiu.lu@intel.com>
12975         * Makefile.in (tree-cfg.o): Also depend on $(TARGET_H).
12977 2012-08-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12979         PR tree-optimization/54245
12980         * gimple-ssa-strength-reduction.c (legal_cast_p_1): New function.
12981         (legal_cast_p): Split out logic to legal_cast_p_1.
12982         (analyze_increments): Avoid introducing multiplies in smaller types.
12984 2012-08-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12986         PR tree-optimization/54240
12987         * tree-ssa-phiopt.c (hoist_adjacent_loads): Correct test for
12988         existence of conditional move with given mode.
12990 2012-08-15  Richard Guenther  <rguenther@suse.de>
12992         * double-int.h (double_int::from_unsigned): Rename to ...
12993         (double_int::from_uhwi): ... this.
12994         (double_int::from_signed): Rename to ...
12995         (double_int::from_shwi): ... this.
12996         (double_int::to_signed): Rename to ...
12997         (double_int::to_shwi): ... this.
12998         (double_int::to_unsigned): Rename to ...
12999         (double_int::to_uhwi): ... this.
13000         (double_int::fits_unsigned): Rename to ...
13001         (double_int::fits_uhwi): ... this.
13002         (double_int::fits_signed): Rename to ...
13003         (double_int::fits_shwi): ... this.
13004         (double_int::fits): Rename to ...
13005         (double_int::fits_hwi): ... this.
13006         * double-int.c: Likewise.
13008 2012-08-15  Steven Bosscher  <steven@gcc.gnu.org>
13010         * timevar.def (TV_VARPOOL, TV_WHOPR_WPA_LTRANS_EXEC, TV_LIFE,
13011         TV_LIFE_UPDATE, TV_DF_UREC, TV_INLINE_HEURISTICS,
13012         TV_TREE_LINEAR_TRANSFORM, TV_TREE_LOOP_INIT, TV_TREE_LOOP_FINI,
13013         TV_VPT, TV_LOCAL_ALLOC, TV_GLOBAL_ALLOC, TV_SEQABSTR): Remove.
13014         (TV_IPA_INLINING, TV_FLATTEN_INLINING, TV_EARLY_INLINING,
13015         TV_INLINE_PARAMETERS, TV_LOOP_INIT, TV_LOOP_FINI): New.
13016         * timevar.c (timevar_print): Make printing width of timevar names
13017         more flexible, but enforce maximum length.
13018         * ipa-inline.c (pass_early_inline): Use TV_EARLY_INLINING.
13019         (pass_ipa_inline): Use TV_IPA_INLINING.
13020         * ipa-inline-analysis.c (pass_inline_parameters): Use
13021         TV_INLINE_HEURISTICS.
13022         * tree-ssa-loop.c (pass_tree_loop_init): No timevar for wrapper pass.
13023         (pass_tree_loop_done): Likewise.
13024         * final.c (pass_shorten_branches): Use TV_SHORTEN_BRANCH.
13025         * loop-init.c (loop_optimizer_init): Push/pop TV_LOOP_INIT.
13026         (loop_optimizer_finalize): Push/pop TV_LOOP_FINI.
13028 2012-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13030         * config/arm/neon.md (neon_vaba<mode> VDQIW): Canonicalize operands.
13031         (neon_vabal<mode> VDQIW): Likewise.
13033 2012-08-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
13035         PR target/54212
13036         * config/arm/neon.md (vec_set<mode>_internal VD,VQ): Do not
13037         mark as predicable. Adjust asm template.
13038         (vec_setv2di_internal): Likewise.
13039         (vec_extract<mode> VD, VQ): Likewise.
13040         (vec_extractv2di): Likewise.
13041         (neon_vget_lane<mode>_sext_internal VD, VQ): Likewise.
13042         (neon_vset_lane<mode>_sext_internal VD, VQ): Likewise.
13043         (neon_vdup_n<mode> VX, V32): Likewise.
13044         (neon_vdup_nv2di): Likewise.
13046 2012-08-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
13048         * config/mips/mips.md (define_attr accum_in): New instruction
13049         attribute.  Set it for imadd and fmadd patterns.
13050         * config/mips/mips.c (mips_linked_madd_p): Use accum_in to extract
13051         accumulator register.
13053 2012-08-14  Diego Novillo  <dnovillo@google.com>
13055         Merge from cxx-conversion branch.  Configury.
13057         * configure.ac (CXX_FOR_BUILD): Define and substitute.
13058         (BUILD_CXXFLAGS): Define.
13059         Remove all handlers of ENABLE_BUILD_WITH_CXX.
13060         Force all build to be with C++.
13061         * Makefile.in (BUILD_CXXFLAGS): Use it.
13062         Remove all handlers of ENABLE_BUILD_WITH_CXX.
13063         * configure: Regenerate.
13064         * config.in: Regenerate.
13065         * doc/install.texi: Remove documentation for --enable-build-with-cxx
13066         and --enable-build-poststage1-with-cxx.
13068 2012-08-14  Diego Novillo  <dnovillo@google.com>
13070         Merge from cxx-conversion branch.  Re-implement VEC in C++.
13072         * vec.c (vec_heap_free): Convert into a template function.
13073         (vec_gc_o_reserve_1): Make extern.
13074         (vec_gc_p_reserve): Remove.
13075         (vec_gc_p_reserve_exact): Remove.
13076         (vec_gc_o_reserve): Remove.
13077         (vec_gc_o_reserve_exact): Remove.
13078         (vec_heap_o_reserve_1): Make extern.
13079         (vec_heap_p_reserve): Remove.
13080         (vec_heap_p_reserve_exact): Remove.
13081         (vec_heap_o_reserve): Remove.
13082         (vec_heap_o_reserve_exact): Remove.
13083         (vec_stack_p_reserve): Remove.
13084         (vec_stack_p_reserve_exact): Remove.
13085         * vec.h (VEC_CHECK_INFO, VEC_CHECK_DECL, VEC_CHECK_PASS, VEC_ASSERT,
13086         VEC_ASSERT_FAIL, vec_assert_fail): Move earlier in the file.
13087         (VEC): Define to vec_t<T>.
13088         (vec_allocation_t): Define.
13089         (struct vec_prefix): Move earlier in the file.
13090         (vec_t<T>): New template.
13091         (DEF_VEC_I, DEF_VECL_ALLOC_I, DEF_VEC_P, DEF_VEC_ALLOC_P,
13092         DEF_VEC_O, DEF_VEC_ALLOC_P, DEF_VEC_O, DEF_VEC_ALLOC_O,
13093         DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_O_STACK,
13094         DEF_VEC_ALLOC_I_STACK): Expand to 'struct vec_swallow_trailing_semi'.
13095         (DEF_VEC_A): Provide template instantiations for
13096         GC/PCH markers that do not traverse the vector.
13097         (vec_stack_p_reserve): Remove.
13098         (vec_stack_p_reserve_exact): Remove.
13099         (vec_stack_p_reserve_exact_1): Remove.
13100         (vec_stack_o_reserve): Remove.
13101         (vec_stack_o_reserve_exact): Remove.
13102         (vec_stack_free): Re-write as a template function.
13103         (vec_reserve): New template function.
13104         (vec_reserve_exact): New template function.
13105         (vec_heap_free): New template function if GATHER_STATISTICS is
13106         defined.  Otherwise, macro that expands to free().
13107         (VEC_length_1): New template function.
13108         (VEC_length): Call it.
13109         (VEC_empty_1): New template function.
13110         (VEC_empty): Call it.
13111         (VEC_address_1): New template function.
13112         (VEC_address): Call it.
13113         (VEC_last_1): New template function.
13114         (VEC_last): Call it.  Change return type to T&.
13115         Change all users that used VEC_Os.
13116         (VEC_index_1): New template function.
13117         (VEC_index): Call it.  Return a T& instead of a T*.
13118         Update all callers that were using VEC_O before.
13119         (VEC_iterate_1): New template function.
13120         (VEC_iterate): Call it.
13121         (VEC_embedded_size_1): New template function.
13122         (VEC_embedded_size): Call it.
13123         (VEC_embedded_init_1): New template function.
13124         (VEC_embedded_init): Call it.
13125         (VEC_alloc_1): New template function.
13126         (VEC_alloc): Call it.  If A is 'stack', call XALLOCAVAR to
13127         do the allocation.
13128         (VEC_free_1): New template function.
13129         (VEC_free): Call it.
13130         (VEC_copy_1): New template function.
13131         (VEC_copy): Call it.
13132         (VEC_space_1): New template function
13133         (VEC_space): Call it.
13134         (VEC_reserve_1): New template function.
13135         (VEC_reserve): Call it.
13136         (VEC_reserve_exact_1): New template function.
13137         (VEC_reserve_exact): Call it.
13138         (VEC_splice_1): New template function.
13139         (VEC_splice): Call it.
13140         (VEC_safe_splice_1): New template function.
13141         (VEC_safe_splice): Call it.
13142         (VEC_quick_push_1): New template function.  Create two overloads, one
13143         accepting T, the other accepting T *.  Update all callers
13144         where T and T * are ambiguous.
13145         (VEC_quick_push): Call it.
13146         (VEC_safe_push_1): New template function. Create two overloads, one
13147         accepting T, the other accepting T *.  Update all callers
13148         where T and T * are ambiguous.
13149         (VEC_safe_push): Call it.
13150         (VEC_pop_1): New template function.
13151         (VEC_pop): Call it.
13152         (VEC_truncate_1): New template function.
13153         (VEC_truncate): Call it.
13154         (VEC_safe_grow_1): New template function.
13155         (VEC_safe_grow): Call it.
13156         (VEC_safe_grow_cleared_1): New template function.
13157         (VEC_safe_grow_cleared): Call it.
13158         (VEC_replace_1): New template function.
13159         (VEC_replace): Call it.  Always accept T instead of T*.
13160         Update all callers that used VEC_Os.
13161         (VEC_quick_insert_1): New template function.
13162         (VEC_quick_insert): Call it.
13163         (VEC_safe_insert_1): New template function.
13164         (VEC_safe_insert): Call it.
13165         (VEC_ordered_remove_1): New template function.
13166         (VEC_ordered_remove): Call it.
13167         (VEC_unordered_remove_1): New template function.
13168         (VEC_unordered_remove): Call it.
13169         (VEC_block_remove_1): New template function.
13170         (VEC_block_remove): Call it.
13171         (VEC_lower_bound_1): New template function.
13172         (VEC_lower_bound): Call it.
13173         (VEC_OP): Remove.
13174         (DEF_VEC_FUNC_P): Remove.
13175         (DEF_VEC_ALLOC_FUNC_P): Remove.
13176         (DEF_VEC_NONALLOC_FUNCS_P): Remove.
13177         (DEF_VEC_FUNC_O): Remove.
13178         (DEF_VEC_ALLOC_FUNC_O): Remove.
13179         (DEF_VEC_NONALLOC_FUNCS_O): Remove.
13180         (DEF_VEC_ALLOC_FUNC_I): Remove.
13181         (DEF_VEC_NONALLOC_FUNCS_I): Remove.
13182         (DEF_VEC_ALLOC_FUNC_P_STACK): Remove.
13183         (DEF_VEC_ALLOC_FUNC_O_STACK): Remove.
13184         (DEF_VEC_ALLOC_FUNC_I_STACK): Remove.
13185         (vec_reserve_exact): New template function.
13187         * gengtype-lex.l (DEF_VEC_ALLOC_[IOP]/{EOID}): Remove.
13188         * gengtype-parse.c (token_names): Remove DEF_VEC_ALLOC_[IOP].
13189         (typedef_name): Emit vec_t<C1> instead of VEC_C1_C2.
13190         (def_vec_alloc): Remove.  Update all callers.
13191         * gengtype.c (filter_type_name): New.
13192         (output_mangled_typename): Call it.
13193         (write_func_for_structure): Likewise.
13194         (write_types): Likewise.
13195         (write_root): Likewise.
13196         (write_typed_alloc_def): Likewise.
13197         (note_def_vec): Emit vec_t<TYPE_NAME> instead of VEC_TYPE_NAME_base.
13198         (note_def_vec_alloc): Remove.
13199         * gengtype.h (note_def_vec_alloc): Remove.
13200         (DEFVEC_ALLOC): Remove token code.
13202         * df-scan.c (df_bb_verify): Remove call to df_free_collection_rec
13203         inside the insn traversal loop.
13204         * gimplify.c (gimplify_compound_lval): Rename STACK to EXPR_STACK.
13205         * ipa-inline.c (inline_small_functions): Rename HEAP to EDGE_HEAP.
13206         * reg-stack.c (stack): Rename to STACK_PTR.  Update all users.
13207         * tree-vrp.c (stack): Rename to EQUIV_STACK.  Update all users.
13209         * config/bfin/bfin.c (hwloop_optimize): Update some calls to
13210         VEC_* for vectors of non-pointers.
13211         * config/c6x/c6x.c (try_rename_operands): Likewise.
13212         (reshuffle_units): Likewise.
13213         * config/mips/mips.c (mips_multi_start): Likewise.
13214         (mips_multi_add): Likewise.
13215         (mips_multi_copy_insn): Likewise.
13216         (mips_multi_set_operand): Likewise.
13217         * hw-doloop.c (discover_loop): Likewise.
13218         (discover_loops): Likewise.
13219         (reorg_loops): Likewise.
13221 2012-08-14  Diego Novillo  <dnovillo@google.com>
13223         Merge from cxx-conversion branch.  C++ support in gengtype.
13225         * coretypes.h (gt_pointer_operator): Move from ...
13226         * ggc.h: ... here.
13227         * doc/gty.texi: Document support for C++ templates and
13228         user-provided markers.
13229         * gengtype-lex.l: Update copyright year.
13230         Remove support for recognizing DEF_VEC_O, DEF_VEC_P and DEFVEC_I.
13231         * gengtype-parse.c: Update copyright year.
13232         (token_names): Remove DEF_VEC_O, DEF_VEC_P and DEF_VEC_I.
13233         (require_template_declaration): New.
13234         (typedef_name): Call it.
13235         (type): Replace IS_UNION with KIND. Replace all users.
13236         (def_vec): Remove.  Update all users.
13237         * gengtype-state.c (type_lineloc): Handle TYPE_USER_STRUCT.
13238         (write_state_user_struct_type): New.
13239         (write_state_type): Call it.
13240         (read_state_user_struct_type): New.
13241         (read_state_type): Call it.
13242         * gengtype.c: Update copyright year.
13243         (dump_pair): Move declaration to the top.
13244         (dump_type): Likewise.
13245         (dump_type_list): Likewise.
13246         (dbgprint_count_type_at): Handle TYPE_USER_STRUCT.
13247         (create_user_defined_type): New.
13248         (resolve_typedef): Call it.
13249         (new_structure): Replace argument ISUNION with KIND.
13250         Change users to refer to KIND directly.
13251         Update all callers.
13252         (find_structure): Likewise.
13253         (set_gc_used_type): Handle TYPE_USER_STRUCT.
13254         (create_file): Update HDR to include new copyright year.
13255         (struct walk_type_data): Add field IN_PTR_FIELD.
13256         (output_mangled_typename): Handle TYPE_USER_STRUCT.
13257         (walk_type): Set D->IN_PTR_FIELD when walking a TYPE_POINTER.
13258         Clear it afterwards.
13259         Handle TYPE_USER_STRUCT.
13260         (write_types_process_field): Handle TYPE_USER_STRUCT.
13261         (get_type_specifier): Move earlier in the file.
13262         (write_type_decl): New.
13263         (write_marker_function_name): New.
13264         (write_user_func_for_structure_ptr): New.
13265         (write_user_func_for_structure_body): New.
13266         (write_user_marking_functions): New.
13267         (write_func_for_structure): Call write_marker_function_name
13268         and write_type_decl.
13269         Do not call walk_type for TYPE_USER_STRUCT. Emit a call to the user
13270         function directly.
13271         Call write_user_marking_functions on TYPE_USER_STRUCTs.
13272         (write_types_local_user_process_field): New.
13273         (write_pch_user_walking_for_structure_body): New.
13274         (write_pch_user_walking_functions): New.
13275         (write_types_local_process_field): Handle TYPE_USER_STRUCT.
13276         (write_local_func_for_structure): Do not call walk_type for
13277         TYPE_USER_STRUCT. Instead, emit the call to gt_pch_nx directly.
13278         Call write_pch_user_walking_functions for TYPE_USER_STRUCTs.
13279         (write_root): Handle TYPE_USER_STRUCT.
13280         (vec_prefix_type): Remove.  Update all users.
13281         (note_def_vec): Remove.  Update all users.
13282         (dump_typekind): Handle TYPE_USER_STRUCT.
13283         (dump_type): Initialize SEEN_TYPES, if needed.
13284         Handle TYPE_USER_STRUCT.
13285         (dump_everything): Do not initialize SEEN_TYPES.
13286         * gengtype.h: Update copyright year.
13287         (enum typekind): Add TYPE_USER_STRUCT.
13288         (union_or_struct_p): Rename from UNION_OR_STRUCT_P.
13289         Convert into function.
13290         Add an overload taking const_type_p.
13291         Update all callers.
13292         (new_structure): Change second field to type enum typekind.
13293         Update all users.
13294         (find_structure): Likewise.
13295         (note_def_vec): Remove.
13296         (DEFVEC_OP): Remove.
13297         (DEFVEC_I): Remove.
13298         * ggc-page.c (gt_ggc_mx): Add entry points for marking
13299         'const char *&', 'unsigned char *&' and 'unsigned char&'.
13300         * ggc-zone.c (gt_ggc_mx): Add entry points for marking
13301         'const char *&' and 'unsigned char *&'.
13302         * stringpool.c (gt_pch_nx): Add entry points for marking
13303         'const char *&', 'unsigned char *&' and 'unsigned char&'.
13304         Add an entry point for the overload taking arguments 'unsigned char
13305         *', 'gt_pointer_operator' and 'void *'.
13306         * vec.h (struct vec_prefix): Remove GTY marker.
13307         (struct vec_t): Remove GTY((length)) attribute from field 'vec'.
13308         (gt_ggc_mx (vec_t<T> *)): New template function.
13309         (gt_pch_nx (vec_t<T> *)): New template function.
13310         (gt_pch_nx (vec_t<T *> *, gt_pointer_operator, void *)): New template
13311         function.
13312         (gt_pch_nx (vec_t<T> *, gt_pointer_operator, void *)): New template
13313         function.
13315         * basic-block.h (struct edge_def): Mark GTY((user)).
13316         Remove all GTY markers from fields.
13317         (gt_ggc_mx): Declare.
13318         (gt_pch_nx): Declare.
13319         * tree-cfg.c (gt_ggc_mx): New.
13320         (gt_pch_nx): New.
13322         * gengtype-lex.l (USER_GTY): Add pattern for "user".
13323         * gengtype-parse.c (option): Handle USER_GTY.
13324         (opts_have): New.
13325         (type): Call it.
13326         If the keyword 'user' is used, do not walk the fields
13327         of the structure.
13328         * gengtype.h (USER_GTY): Add.
13329         * doc/gty.texi: Update.
13331 2012-08-14  Lawrence Crowl  <crowl@google.com>
13333         Merge cxx-conversion branch.  Implement C++ hash table.
13335         * hash-table.h: New. Implementation borrowed from libiberty/hashtab.c.
13336         * hash-table.c: Likewise.
13337         * tree-ssa-tail-merge.c: Include hash-table.h instead of hashtab.h.
13338         (static htab_t same_succ_htab): Change type to hash_table;
13339         move specification of helper functions from create call to declaration.
13340         Change users to invoke member functions.
13341         (same_succ_print_traverse): Make extern ssa_.... Change callers.
13342         Remove void* casting.
13343         (same_succ_hash): Likewise.
13344         (same_succ_equal): Likewise.
13345         (same_succ_delete): Likewise.
13346         * tree-ssa-threadupdate.c: Include hash-table.h.
13347         (struct local_info): Rename to ssa_local_info_t to avoid overloading
13348         the type name local_info with the variable name local_info.
13349         (static htab_t redirection_data): Change type to hash_table.
13350         Move specification of helper functions from create call to declaration.
13351         Change users to invoke member functions.
13352         (redirection_data_hash): Make extern ssa_.... Change callers.
13353         Remove void* casting.
13354         (redirection_data_eq): Likewise.
13355         (fix_duplicate_block_edges): Likewise.
13356         (create_duplicates): Likewise.
13357         (fixup_template_block): Likewise.
13358         (redirect_edges): Likewise.
13359         (lookup_redirection_data): Change types associated with the hash table
13360         from void* to their actual type. Remove unnecessary casts.
13361         * tree-ssa-ccp.c: Include hash-table.h.
13362         (typedef gimple_htab): New.  Uses hash_table.  Replace specific uses
13363         of htab_t with gimple_htab.  Change users to invoke member functions.
13364         Move specification of helper functions from create call to declaration.
13365         * tree-ssa-coalesce.c: Include hash-table.h instead of hashtab.h.
13366         (hash_ssa_name_by_var): Make extern. Remove void* casting.
13367         (eq_ssa_name_by_var): Likewise.
13368         (coalesce_ssa_name): Change type of local static htab_t ssa_name_hash
13369         to hash_table. Change users to invoke member functions.
13370         Move specification of helper functions from create call to declaration.
13371         * coverage.c: Include hash-table.h instead of hashtab.h.
13372         (static htab_t counts_hash): Change type to hash_table;
13373         move specification of helper functions from create call to declaration.
13374         Change users to invoke member functions.
13375         (htab_counts_entry_hash): Make extern. Rename with coverage_... instead
13376         of htab_... Remove void* casting.
13377         (htab_counts_entry_eq): Likewise.
13378         (htab_counts_entry_del): Likewise.
13379         * tree-ssa-pre.c: Include hash-table.h instead of hashtab.h.
13380         (static htab_t expression_to_id): Change type to hash_table.
13381         Move specification of helper functions from create call to declaration.
13382         Change users to invoke member functions.
13383         (static htab_t phi_translate_table): Likewise.
13384         (pre_expr_eq): Make extern ssa_.... Change callers.
13385         Remove void* casting.
13386         (pre_expr_hash): Likewise.
13387         (expr_pred_trans_hash): Likewise.
13388         (expr_pred_trans_eq): Likewise.
13389         (alloc_expression_id): Change types associated with the hash table
13390         from void* to their actual type. Remove unnecessary casts.
13391         (lookup_expression_id): Likewise.
13392         (phi_trans_lookup): Likewise.
13393         (phi_trans_add): Likewise.
13394         * stringpool.c: Rename uses of libcpp typedef hash_table to
13395         cpp_hash_table.
13396         * Makefile.in: Add hash-table.o to OBJS-libcommon-target.
13397         Add $(HASH_TABLE_H). Add new dependences on $(HASH_TABLE_H).
13399 2012-08-14  Lawrence Crowl  <crowl@google.com>
13401         Merge from cxx-conversion branch.  Re-write double_int in C++.
13403         * hash-table.h
13404         (typedef double_int): Change to struct (POD).
13405         (double_int::make): New overloads for int to double-int conversion.
13406         (double_int::mask): New.
13407         (double_int::max_value): New.
13408         (double_int::min_value): New.
13409         (double_int::operator ++): New.
13410         (double_int::operator --): New.
13411         (double_int::operator *=): New.
13412         (double_int::operator +=): New.
13413         (double_int::operator -=): New.
13414         (double_int::to_signed): New.
13415         (double_int::to_unsigned): New.
13416         (double_int::fits_unsigned): New.
13417         (double_int::fits_signed): New.
13418         (double_int::fits): New.
13419         (double_int::trailing_zeros): New.
13420         (double_int::popcount): New.
13421         (double_int::multiple_of): New.
13422         (double_int::set_bit): New.
13423         (double_int::mul_with_sign): New.
13424         (double_int::operator * (binary)): New.
13425         (double_int::operator + (binary)): New.
13426         (double_int::operator - (binary)): New.
13427         (double_int::operator - (unary)): New.
13428         (double_int::operator ~ (unary)): New.
13429         (double_int::operator & (binary)): New.
13430         (double_int::operator | (binary)): New.
13431         (double_int::operator ^ (binary)): New.
13432         (double_int::and_not): New.
13433         (double_int::lshift): New.
13434         (double_int::rshift): New.
13435         (double_int::alshift): New.
13436         (double_int::arshift): New.
13437         (double_int::llshift): New.
13438         (double_int::lrshift): New.
13439         (double_int::lrotate): New.
13440         (double_int::rrotate): New.
13441         (double_int::div): New.
13442         (double_int::sdiv): New.
13443         (double_int::udiv): New.
13444         (double_int::mod): New.
13445         (double_int::smod): New.
13446         (double_int::umod): New.
13447         (double_int::divmod): New.
13448         (double_int::sdivmod): New.
13449         (double_int::udivmod): New.
13450         (double_int::ext): New.
13451         (double_int::zext): New.
13452         (double_int::sext): New.
13453         (double_int::is_zero): New.
13454         (double_int::is_one): New.
13455         (double_int::is_minus_one): New.
13456         (double_int::is_negative): New.
13457         (double_int::cmp): New.
13458         (double_int::ucmp): New.
13459         (double_int::scmp): New.
13460         (double_int::ult): New.
13461         (double_int::ugt): New.
13462         (double_int::slt): New.
13463         (double_int::sgt): New.
13464         (double_int::max): New.
13465         (double_int::smax): New.
13466         (double_int::umax): New.
13467         (double_int::min): New.
13468         (double_int::smin): New.
13469         (double_int::umin): New.
13470         (double_int::operator ==): New.
13471         (double_int::operator !=): New.
13472         (shwi_to_double_int): Change implementation to use member function.
13473         (double_int_minus_one): Likewise.
13474         (double_int_zero): Likewise.
13475         (double_int_one): Likewise.
13476         (double_int_two): Likewise.
13477         (double_int_ten): Likewise.
13478         (uhwi_to_double_int): Likewise.
13479         (double_int_to_shwi): Likewise.
13480         (double_int_to_uhwi): Likewise.
13481         (double_int_fits_in_uhwi_p): Likewise.
13482         (double_int_fits_in_shwi_p): Likewise.
13483         (double_int_fits_in_hwi_p): Likewise.
13484         (double_int_mul): Likewise.
13485         (double_int_mul_with_sign): Likewise.
13486         (double_int_add): Likewise.
13487         (double_int_sub): Likewise.
13488         (double_int_neg): Likewise.
13489         (double_int_div): Likewise.
13490         (double_int_sdiv): Likewise.
13491         (double_int_udiv): Likewise.
13492         (double_int_mod): Likewise.
13493         (double_int_smod): Likewise.
13494         (double_int_umod): Likewise.
13495         (double_int_divmod): Likewise.
13496         (double_int_sdivmod): Likewise.
13497         (double_int_udivmod): Likewise.
13498         (double_int_multiple_of): Likewise.
13499         (double_int_setbit): Likewise.
13500         (double_int_ctz): Likewise.
13501         (double_int_not): Likewise.
13502         (double_int_ior): Likewise.
13503         (double_int_and): Likewise.
13504         (double_int_and_not): Likewise.
13505         (double_int_xor): Likewise.
13506         (double_int_lshift): Likewise.
13507         (double_int_rshift): Likewise.
13508         (double_int_lrotate): Likewise.
13509         (double_int_rrotate): Likewise.
13510         (double_int_cmp): Likewise.
13511         (double_int_scmp): Likewise.
13512         (double_int_ucmp): Likewise.
13513         (double_int_max): Likewise.
13514         (double_int_smax): Likewise.
13515         (double_int_umax): Likewise.
13516         (double_int_min): Likewise.
13517         (double_int_smin): Likewise.
13518         (double_int_umin): Likewise.
13519         (double_int_ext): Likewise.
13520         (double_int_sext): Likewise.
13521         (double_int_zext): Likewise.
13522         (double_int_mask): Likewise.
13523         (double_int_max_value): Likewise.
13524         (double_int_min_value): Likewise.
13525         (double_int_zero_p): Likewise.
13526         (double_int_one_p): Likewise.
13527         (double_int_minus_one_p): Likewise.
13528         (double_int_equal_p): Likewise.
13529         (double_int_popcount): Likewise.
13530         * hash-table.c
13531         (double_int_mask): Reuse implementation for double_int::mask.
13532         (double_int_max_value): Likewise.
13533         (double_int_min_value): Likewise.
13534         (double_int_ext): Likewise.
13535         (double_int_zext): Likewise.
13536         (double_int_sext): Likewise.
13537         (double_int_mul_with_sign): Likewise.
13538         (double_int_divmod): Likewise.
13539         (double_int_sdivmod): Likewise.
13540         (double_int_udivmod): Likewise.
13541         (double_int_div): Likewise.
13542         (double_int_sdiv): Likewise.
13543         (double_int_udiv): Likewise.
13544         (double_int_mod): Likewise.
13545         (double_int_smod): Likewise.
13546         (double_int_umod): Likewise.
13547         (double_int_multiple_of): Likewise.
13548         (double_int_lshift): Likewise.
13549         (double_int_rshift): Likewise.
13550         (double_int_lrotate): Likewise.
13551         (double_int_rrotate): Likewise.
13552         (double_int_cmp): Likewise.
13553         (double_int_ucmp): Likewise.
13554         (double_int_scmp): Likewise.
13555         (double_int_max): Likewise.
13556         (double_int_smax): Likewise.
13557         (double_int_umax): Likewise.
13558         (double_int_min): Likewise.
13559         (double_int_smin): Likewise.
13560         (double_int_umin): Likewise.
13561         (double_int_min): Likewise.
13562         (double_int_min): Likewise.
13563         (double_int_min): Likewise.
13564         (double_int_min): Likewise.
13565         (double_int_min): Likewise.
13566         (double_int_min): Likewise.
13567         (double_int::alshift): New.
13568         (double_int::arshift): New.
13569         (double_int::llshift): New.
13570         (double_int::lrshift): New.
13571         (double_int::ult): New.
13572         (double_int::ugt): New.
13573         (double_int::slt): New.
13574         (double_int::sgt): New.
13575         (double_int_setbit): Reuse implementation for double_int::set_bit,
13576         which avoids a name conflict with a macro.
13577         (double_int_double_int_ctz): Reuse implementation for
13578         double_int::trailing_zeros.
13579         (double_int_fits_in_shwi_p): Reuse implementation for
13580         double_int::fits_signed.
13581         (double_int_fits_in_hwi_p): Reuse implementation for double_int::fits.
13582         (double_int_mul): Reuse implementation for binary
13583         double_int::operator *.
13584         (double_int_add): Likewise.
13585         (double_int_sub): Likewise.
13586         (double_int_neg): Reuse implementation for unary
13587         double_int::operator -.
13588         (double_int_max_value): Likewise.
13589         * fixed-value.c: Change to use member functions introduced above.
13591 2012-08-14  Lawrence Crowl  <crowl@google.com>
13593         Merge cxx-conversion branch.  Support tree macro calling from gdb.
13595         * tree.h (tree_check): New.
13596         (TREE_CHECK): Use inline function above instead of __extension__.
13597         (tree_not_check): New.
13598         (TREE_NOT_CHECK): Use inline function above instead of __extension__.
13599         (tree_check2): New.
13600         (TREE_CHECK2): Use inline function above instead of __extension__.
13601         (tree_not_check2): New.
13602         (TREE_NOT_CHECK2): Use inline function above instead of __extension__.
13603         (tree_check3): New.
13604         (TREE_CHECK3): Use inline function above instead of __extension__.
13605         (tree_not_check3): New.
13606         (TREE_NOT_CHECK3): Use inline function above instead of __extension__.
13607         (tree_check4): New.
13608         (TREE_CHECK4): Use inline function above instead of __extension__.
13609         (tree_not_check4): New.
13610         (TREE_NOT_CHECK4): Use inline function above instead of __extension__.
13611         (tree_check5): New.
13612         (TREE_CHECK5): Use inline function above instead of __extension__.
13613         (tree_not_check5): New.
13614         (TREE_NOT_CHECK5): Use inline function above instead of __extension__.
13615         (contains_struct_check): New.
13616         (CONTAINS_STRUCT_CHECK): Use inline function above instead of
13617         __extension__.
13618         (tree_class_check): New.
13619         (TREE_CLASS_CHECK): Use inline function above instead of __extension__.
13620         (tree_range_check): New.
13621         (TREE_RANGE_CHECK): Use inline function above instead of __extension__.
13622         (omp_clause_subcode_check): New.
13623         (OMP_CLAUSE_SUBCODE_CHECK): Use inline function above instead of
13624         __extension__.
13625         (omp_clause_range_check): New.
13626         (OMP_CLAUSE_RANGE_CHECK): Use inline function above instead of
13627         __extension__.
13628         (expr_check): New.
13629         (EXPR_CHECK): Use inline function above instead of __extension__.
13630         (non_type_check): New.
13631         (NON_TYPE_CHECK): Use inline function above instead of __extension__.
13632         (tree_vec_elt_check): New.
13633         (TREE_VEC_ELT_CHECK): Use inline function above instead of
13634         __extension__.
13635         (omp_clause_elt_check): New.
13636         (OMP_CLAUSE_ELT_CHECK): Use inline function above instead of
13637         __extension__.
13638         (tree_operand_check): New.
13639         (TREE_OPERAND_CHECK): Use inline function above instead of
13640         __extension__.
13641         (tree_operand_check_code): New.
13642         (TREE_OPERAND_CHECK_CODE): Use inline function above instead of
13643         __extension__.
13644         (TREE_CHAIN): Simplify implementation.
13645         (TREE_TYPE): Simplify implementation.
13646         (tree_operand_length): Move for compilation dependences.
13647         * gdbinit.in: (macro define __FILE__): New.
13648         (macro define __LINE__): New.
13649         (skip "tree.h"): New.
13651 2012-08-14  Oleg Endo  <olegendo@gcc.gnu.org>
13653         PR target/52933
13654         * config/sh/sh.md (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0,
13655         *cmp_div0s_1, *cbranch_div0s, *movsicc_div0s): New insns.
13656         * config/sh/sh.c (sh_rtx_costs): Handle div0s patterns.
13658 2012-08-14  Oleg Endo  <olegendo@gcc.gnu.org>
13660         PR target/50751
13661         * config/sh/constraints.md (Sra): New constraint.
13662         * config/sh/predicates.md (simple_mem_operand,
13663         displacement_mem_operand, zero_extend_movu_operand): New predicates.
13664         (zero_extend_operand): Check zero_extend_movu_operand for SH2A.
13665         * config/sh/sh.md (*zero_extendqisi2_disp_mem,
13666         *zero_extendhisi2_disp_mem): Add new insns and two new related
13667         peephole2 patterns.
13669 2012-08-14  Steven Bosscher  <steven@gcc.gnu.org>
13671         * graphite-scop-detection.c (create_sese_edges): Compute dominance
13672         info before trying to fix loop structure.
13673         * cfgloopmanip.c (fix_loop_structure): Require fast DOM queries.
13674         * tree-cfgcleanup.c (repair_loop_structures): Likewise.
13675         * cfgloop.c (verify_loop_structure): Verify loop fathers.
13677         * dominance.c (init_dom_info): Use gcc_checking_assert, not gcc_assert.
13678         (dom_convert_dir_to_idx, compute_dom_fast_query,
13679         get_immediate_dominator, set_immediate_dominator, get_dominated_by,
13680         redirect_immediate_dominators, nearest_common_dominator,
13681         (dominated_by_p, bb_dom_dfs_in, bb_dom_dfs_out, recompute_dominator,
13682         iterate_fix_dominators, add_to_dominance_info,
13683         delete_from_dominance_info): Likewise.
13685 2012-08-14  Richard Guenther  <rguenther@suse.de>
13687         * cfgexpand.c (expand_used_vars): Use virtual_operand_p.
13688         * gimple-pretty-print.c (dump_phi_nodes): Likewise.
13689         * gimple-streamer-out.c (output_bb): Likewise.
13690         * graphite-sese-to-poly.c (scalar_close_phi_node_p): Likewise.
13691         (rewrite_reductions_out_of_ssa): Likewise.
13692         (rewrite_commutative_reductions_out_of_ss): Likewise.
13693         * ipa-split.c (verify_non_ssa_vars): Likewise.
13694         (consider_split): Likewise.
13695         (visit_bb): Likewise.
13696         (split_function): Likewise.
13697         * lto-streamer-out.c (output_ssa_names): Likewise.
13698         * sese.c (rename_uses): Likewise.
13699         * tree-cfg.c (replace_uses_by): Likewise.
13700         (gimple_merge_blocks): Likewise.
13701         (gimple_cfg2dot): Likewise.
13702         (verify_gimple_phi): Likewise.
13703         (replace_ssa_name): Likewise.
13704         (move_block_to_fn): Likewise.
13705         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
13706         * tree-if-conv.c (if_convertible_phi_p): Likewise.
13707         (predicate_scalar_phi): Likewise.
13708         * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
13709         (copy_phis_for_bb): Likewise.
13710         * tree-loop-distribution.c (generate_loops_for_partition): Likewise.
13711         (destroy_loop): Likewise.
13712         * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
13713         (insert_backedge_copies): Likewise.
13714         * tree-parloops.c (transform_to_exit_first_loop): Likewise.
13715         (gather_scalar_reductions): Likewise.
13716         (try_create_reduction_list): Likewise.
13717         * tree-scalar-evolution.c (analyze_scalar_evolution_for_all_loop_ph):
13718         Likewise.
13719         (scev_const_prop): Likewise.
13720         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
13721         (get_default_value): Likewise.
13722         (ccp_initialize): Likewise.
13723         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
13724         * tree-ssa-copy.c (may_propagate_copy): Likewise.
13725         (init_copy_prop): Likewise.
13726         * tree-ssa-dce.c (propagate_necessity): Likewise.
13727         (remove_dead_phis): Likewise.
13728         (forward_edge_to_pdom): Likewise.
13729         (eliminate_unnecessary_stmts): Likewise.
13730         * tree-ssa-live.c (partition_view_init): Likewise.
13731         (remove_unused_locals): Likewise.
13732         (register_ssa_partition_check): Likewise.
13733         * tree-ssa-loop-im.c (movement_possibility): Likewise.
13734         (move_computations_stmt): Likewise.
13735         * tree-ssa-loop-ivopts.c (determine_biv_step): Likewise.
13736         (record_invariant): Likewise.
13737         (find_interesting_uses_outside): Likewise.
13738         (determine_set_costs): Likewise.
13739         * tree-ssa-loop-manip.c (add_exit_phis_var): Likewise.
13740         (find_uses_to_rename_use): Likewise.
13741         (check_loop_closed_ssa_use): Likewise.
13742         (rewrite_phi_with_iv): Likewise.
13743         (canonicalize_loop_ivs): Likewise.
13744         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
13745         * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
13746         * tree-ssa-pre.c (make_values_for_phi): Likewise.
13747         (compute_avail): Likewise.
13748         (eliminate): Likewise.
13749         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
13750         * tree-ssa-reassoc.c (phi_rank): Likewise.
13751         * tree-ssa-strlen.c (strlen_enter_block): Likewise.
13752         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
13753         (ipa_pta_execute): Likewise.
13754         * tree-ssa-tail-merge.c (same_succ_hash): Likewise.
13755         (release_last_vdef): Likewise.
13756         (same_phi_alternatives_1): Likewise.
13757         (bb_has_non_vop_phi): Likewise.
13758         (vop_phi): Likewise.
13759         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
13760         Likewise.
13761         * tree-ssa-uninit.c (warn_uninitialized_phi): Likewise.
13762         (execute_late_warn_uninitialized): Likewise.
13763         * tree-ssa.c (verify_ssa_name): Likewise.
13764         (verify_phi_args): Likewise.
13765         (verify_ssa): Likewise.
13766         * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13767         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
13768         Likewise.
13769         (slpeel_tree_peel_loop_to_edge): Likewise.
13770         (vect_can_advance_ivs_p): Likewise.
13771         (vect_update_ivs_after_vectorizer): Likewise.
13772         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
13773         * tree-vrp.c (remove_range_assertions): Likewise.
13774         * value-prof.c (gimple_divmod_values_to_profile): Likewise.
13776 2012-08-14  Richard Guenther  <rguenther@suse.de>
13778         PR tree-optimization/54146
13779         * tree-ssa-pre.c (do_regular_insertion): Use a VEC
13780         indexed by pred edge index for avail.
13781         (do_partial_partial_insertion): Likewise.
13782         (insert_into_preds_of_block): Adjust.
13784 2012-08-14  Richard Guenther  <rguenther@suse.de>
13786         * gimplify.c (create_tmp_from_val): Mark temporary with
13787         DECL_GIMPLE_REG_P here ...
13788         (internal_get_tmp_var): ... instead of here.  If we go into
13789         SSA create an SSA name instead of a VAR_DECL.
13790         (gimplify_modify_expr): Do not create SSA names here, assert
13791         we already got them.
13792         (force_gimple_operand_1): Create an SSA name if we go into SSA.
13793         * sese.c (rename_uses): Simplify.
13795 2012-08-14  Richard Guenther  <rguenther@suse.de>
13797         * tree-into-ssa.c: Include diagnostic-core.h.
13798         * Makefile.in (tree-into-ssa.o): Adjust.
13800 2012-08-14  Richard Guenther  <rguenther@suse.de>
13802         * tree-into-ssa.c (update_ssa): Verify we do not rename
13803         symbols that are already partly in SSA form.
13805 2012-08-14  Jakub Jelinek  <jakub@redhat.com>
13807         PR middle-end/53411
13808         PR rtl-optimization/53495
13809         * ira.c (ira): Move delete_trivially_dead_insns call before
13810         find_moveable_pseudos call.
13812 2012-08-13  Steven Bosscher  <steven@gcc.gnu.org>
13814         * tree-ssa-pre.c (do_regular_insertion): Add FIXME markers at points
13815         of potentially huge memset overhead.
13816         (do_partial_partial_insertion): Likewise.
13817         * cfgexpand.c (gimple_expand_cfg): Use XCNEWVEC instead of xcalloc.
13818         * tree-vrp.c (find_assert_locations): Use XNEWVEC instead of XCNEWVEC
13819         for arrays to be filled by pre_and_rev_post_order_compute.  Allocate
13820         the right number of slots, not that number plus NUM_FIXED_BLOCKS.
13821         * tree-ssa-reassoc.c (init_reassoc): Likewise.
13822         * cfganal.c (dfs_enumerate_from): Use XNEWVEC instead of XCNEWVEC for
13823         array used as stack.
13824         * tree-ssa-sccvn.c (init_scc_vn): Use XNEWVEC instead of XCNEWVEC for
13825         arrays to be filled by pre_and_rev_post_order_compute.
13826         * cfgloopmanip.c (find_path): Use XNEWVEC instead of XCNEWVEC for
13827         array to be filled by dfs_enumerate_from.
13828         (remove_path): Likewise.
13829         (duplicate_loop_to_header_edge): Use XNEWVEC instead of XCNEWVEC for
13830         array of loops that is filled on the next lines.
13831         * cfgloop.c (get_loop_body): Use XNEWVEC instead of XCNEWVEC for
13832         array of basic blocks to be returned.
13833         (get_loop_body_in_dom_order): Likewise.
13834         (get_loop_body_in_bfs_order): Likewise.
13835         * tree-ssa-loop-manip.c (loop_renamer_obstack): New static obstack
13836         for all bitmaps used for rewriting into loop-closed SSA form.
13837         (add_exit_phis_var): Allocate the def bitmap on it.  Clear the livein
13838         bitmap at the end to release a lot of memory.
13839         (add_exit_phis): Allocate the exits bitmap on the new obstack.
13840         (get_loops_exits): Allocate the exits bitmap on the new obstack.
13841         (find_uses_to_rename_use): Allocate a use_blocks bitmap if ver is
13842         seen for the first time.
13843         (find_uses_to_rename): Add "???" for why the whole function must
13844         be re-scanned if changed_bbs is empty.
13845         (rewrite_into_loop_closed_ssa): Allocate bitmaps on the new obstack.
13846         Use XNEWVEC to allocate the use_blocks array.  Initialize the new
13847         obstack, and free it at the end.  Remove loop over all SSA names.
13848         (check_loop_closed_ssa_stmt): Look only at SSA_OP_USE operands.
13849         * tree-cfg.c (move_sese_region_to_fn): Use XNEWVEC instead of
13850         xcalloc to allocate edge_pred and edge_flag arrays.
13852 2012-08-13  Uros Bizjak  <ubizjak@gmail.com>
13854         * config/i386/i386.h (FIXED_REGISTERS): Do not mark REX registers here.
13855         (CALL_USED_REGISTERS): Use bitmaps to mark call-used registers
13856         for different ABIs.
13857         (enum reg_class): Move CLOBBERED_REGS just before GENERAL_REGS.
13858         (REG_CLASS_NAMES): Update.
13859         (REG_CLASS_CONTENTS): Update.  Clear CLOBBERED_REGS members.
13860         * config/i386/i386.c (ix86_conditional_register_usage): Disable
13861         REX registers on 32bit targets.  Handle bitmaps from
13862         CALL_USED_REGISTERS initializer.  Calculate CLOBBERED_REGS register
13863         set from GENERAL_REGS also for 32bit targets.  Do not change call
13864         used register set for TARGET_64BIT_MS_ABI separately.
13866 2012-08-13  Richard Guenther  <rguenther@suse.de>
13868         * basic-block.h (struct basic_block): Remove loop_depth
13869         member, move flags and index members next to each other.
13870         * cfgloop.h (bb_loop_depth): New inline function.
13871         * cfghooks.c (split_block): Do not set loop_depth.
13872         (duplicate_block): Likewise.
13873         * cfgloop.c (flow_loop_nodes_find): Likewise.
13874         (flow_loops_find): Likewise.
13875         (add_bb_to_loop): Likewise.
13876         (remove_bb_from_loops): Likewise.
13877         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13878         * gimple-streamer-in.c (input_bb): Do not stream loop_depth.
13879         * gimple-streamer-out.c (output_bb): Likewise.
13880         * bt-load.c: Include cfgloop.h.
13881         (migrate_btr_defs): Use bb_loop_depth.
13882         * cfg.c (dump_bb_info): Likewise.
13883         * final.c (compute_alignments): Likewise.
13884         * ira.c (update_equiv_regs): Likewise.
13885         * tree-ssa-copy.c (init_copy_prop): Likewise.
13886         * tree-ssa-dom.c (loop_depth_of_name): Likewise.
13887         * tree-ssa-forwprop.c: Include cfgloop.h.
13888         (forward_propagate_addr_expr): Use bb_loop_depth.
13889         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
13890         * tree-ssa-sink.c (select_best_block): Likewise.
13891         * ipa-inline-analysis.c: Include cfgloop.h.
13892         (estimate_function_body_sizes): Use bb_loop_depth.
13893         * Makefile.in (tree-ssa-forwprop.o): Depend on $(CFGLOOP_H).
13894         (ipa-inline-analysis.o): Likewise.
13895         (bt-load.o): Likewise.
13897 2012-08-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
13898             Jakub Jelinek  <jakub@redhat.com>
13900         PR driver/54210
13901         * config/i386/driver-i386.c (host_detect_local_cpu): Test bit_PRFCHW
13902         bit of CPUID 0x80000001 %ecx instead of CPUID 7 %ecx.
13903         * config/i386/cpuid.h (bits_PRFCHW): Move definition to CPUID
13904         0x80000001 %ecx flags.
13906 2012-08-13  Richard Guenther  <rguenther@suse.de>
13908         * tree-cfg.c (print_loop): Avoid ICEing for loops marked for
13909         removal and loops with multiple latches.
13911 2012-08-13  Jakub Jelinek  <jakub@redhat.com>
13913         PR c/53968
13914         * tree.c (integer_pow2p): Avoid undefined signed overflows.
13915         * simplify-rtx.c (neg_const_int): Likewise.
13916         * expr.c (fixup_args_size_notes): Likewise.
13917         * stor-layout.c (set_min_and_max_values_for_integral_type): Likewise.
13918         * double-int.c (mul_double_wide_with_sign): Likewise.
13919         (double_int_mask): Likewise.
13920         * tree-ssa-loop-ivopts.c (get_address_cost): Likewise.
13922 2012-08-13  Richard Guenther  <rguenther@suse.de>
13924         PR tree-optimization/54200
13925         * tree-ssa-copyrename.c (rename_ssa_copies): Do not add
13926         PHI results to another partition if not all PHI arguments
13927         have the same partition.
13929 2012-08-12  Jan Hubicka  <jh@suse.cz>
13931         * tree-pass.h (write_summary, write_optimization_summary): Remove
13932         set and vset arguments.
13933         * ipa-cp.c (ipcp_write_summary): Remove set and vset arugments.
13934         (write_node_summary_p): Likewise; use the encoder.
13935         (ipa_reference_write_optimization_summary): Likewise.
13936         * lto-cgraph.c (output_cgraph_opt_summary): Use encoder.
13937         (lto_symtab_encoder_new): Initialize in_partition field.
13938         (lto_symtab_encoder_delete): Destroy in_partition field.
13939         (LCC_NOT_FOUND): Move to lto-streamer.h
13940         (lto_symtab_encoder_deref): Likewise.
13941         (lto_symtab_encoder_in_partition_p,
13942         lto_set_symtab_encoder_in_partition): New functions.
13943         (referenced_from_other_partition_p): Rewrite to use encoder.
13944         (reachable_from_other_partition_p): Likewise.
13945         (referenced_from_this_partition_p): Likewise.
13946         (reachable_from_this_partition_p): Likewise.
13947         (lto_output_node): Likewise.
13948         (lto_output_varpool_node): Likewise.
13949         (output_refs): Likewise.
13950         (compute_ltrans_boundary): Initialize in_partition fileds of
13951         the encoder.
13952         (output_symtab): Likewise.
13953         (input_refs): Match the changes in output_refs.
13954         (output_cgraph_opt_summary_p): Remove set argument.
13955         (output_node_opt_summary): Replace set by encoder.
13956         (output_cgraph_opt_summary): Remove set argument; use
13957         the encoder.
13958         * ipa-pure-const.c (pure_const_write_summary): Remove set and vset
13959         arguments; use the encoder.
13960         * lto-streamer-out.c (lto_output): Remove set and vset argument; use
13961         the encoder.
13962         (produce_symtab): Likewise.
13963         * ipa-inline.h (inline_write_summary): Remove set and vset arguments.
13964         * ipa-inline-analysis.c (inline_write_summary): Likewise.
13965         * ipa-prop.c (ipa_prop_write_jump_functions): Remove set argument;
13966         use encoder.
13967         * ipa-prop.h (ipa_prop_write_jump_functions): Likewise.
13968         * passes.c (ipa_write_summaries_2): Remove set and vset arguments.
13969         (ipa_write_summaries_1): Update.
13970         (ipa_write_optimization_summaries_1): Likewise.
13971         (ipa_write_optimization_summaries): Likewise.
13972         * lto-streamer.h (lto_symtab_encoder_t): Add in_partition.
13973         (lto_symtab_encoder_iterator): New type.
13974         (lto_symtab_encoder_deref): Make inline.
13975         (output_symtab, referenced_from_other_partition_p,
13976         reachable_from_other_partition_p, referenced_from_this_partition_p,
13977         reachable_from_this_partition_p): Update.
13978         (lsei_end_p, lsei_next, lsei_node, lsei_cgraph_node,
13979         lsei_varpool_node): New inline functions.
13980         (LCC_NOT_FOUND): New macro.
13981         (lto_symtab_encoder_deref, lsei_start, lsei_next_in_partition,
13982         lsei_start_in_partition, lsei_next_function_in_partition,
13983         lsei_start_function_in_partition, lsei_next_variable_in_partition,
13984         lsei_start_variable_in_partition): New inline functions.
13986 2012-08-12  Oleg Endo  <olegendo@gcc.gnu.org>
13988         * config/sh/sh.md (prefetch): Simplify expander.  Fix condition to
13989         allow SH3.
13990         (*prefetch_media): Move insn below expander.
13991         (*prefetch): Fix condition to allow SH3.
13993 2012-08-12  Oleg Endo  <olegendo@gcc.gnu.org>
13995         PR target/51244
13996         * config/sh/sh.md: Add splits for inverted compare and branch
13997         opportunities.
13998         (*cmpeqsi_t): New insn.
13999         (cmpgtsi_t, cmpgesi_t): Swap r and N alternatives.
14000         (cmpgeusi_t): Use satisfies_constraint_Z.  Emit sett insn in
14001         replacement insn list and not in the preparation statements.
14002         (clrt, sett): Add mt_group attribute.
14004 2012-08-12 Marc Glisse <marc.glisse@inria.fr>
14006         PR middle-end/54193
14007         * gimple-pretty-print.c (dump_ternary_rhs): Handle 4 arguments.
14009 2012-08-12  Oleg Endo  <olegendo@gcc.gnu.org>
14011         PR target/39423
14012         * config/sh/predicates.md (mem_index_disp_operand): Check for
14013         arith_reg_operand instead of REG_P.
14015 2012-08-11  Bernd Schmidt  <bernds@codesourcery.com>
14017         * reload1.c (replaced_subreg, gen_reload): Add
14018         SECONDARY_MEMORY_NEEDED ifdefs as necessary.
14020 2012-08-11  Jan Hubicka  <jh@suse.cz>
14022         * lto-section-in.c (lto_section_name): Do not use "symtab" as part of
14023         symtab_node sectoin name; it confuses plugin.
14025 2012-08-11  Uros Bizjak  <ubizjak@gmail.com>
14027         * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Shift DECL_UID
14028         index in the va_list_vars bitmap by num_ssa_names.
14030 2012-08-11  Uros Bizjak  <ubizjak@gmail.com>
14032         * config/i386/sse.md (xop integer multiply/add insns): Use
14033         register_operand for operand 3 predicate.
14034         (xop_phadd<u>bq):  Fix vec_select selectors.
14036 2012-08-11  Martin Jambor  <mjambor@suse.cz>
14038         PR fortran/48636
14039         * ipa-inline.h (condition): New fields offset, agg_contents and by_ref.
14040         * ipa-inline-analysis.c (agg_position_info): New type.
14041         (add_condition): New parameter aggpos, also store agg_contents, by_ref
14042         and offset.
14043         (dump_condition): Also dump aggregate conditions.
14044         (evaluate_conditions_for_known_args): Also handle aggregate
14045         conditions.  New parameter known_aggs.
14046         (evaluate_properties_for_edge): Gather known aggregate contents.
14047         (inline_node_duplication_hook): Pass NULL known_aggs to
14048         evaluate_conditions_for_known_args.
14049         (unmodified_parm): Split into unmodified_parm and unmodified_parm_1.
14050         (unmodified_parm_or_parm_agg_item): New function.
14051         (set_cond_stmt_execution_predicate): Handle values passed in
14052         aggregates.
14053         (set_switch_stmt_execution_predicate): Likewise.
14054         (will_be_nonconstant_predicate): Likewise.
14055         (estimate_edge_devirt_benefit): Pass new parameter known_aggs to
14056         ipa_get_indirect_edge_target.
14057         (estimate_calls_size_and_time): New parameter known_aggs, pass it
14058         recrsively to itself and to estimate_edge_devirt_benefit.
14059         (estimate_node_size_and_time): New vector known_aggs, pass it o
14060         functions which need it.
14061         (remap_predicate): New parameter offset_map, use it to remap aggregate
14062         conditions.
14063         (remap_edge_summaries): New parameter offset_map, pass it recursively
14064         to itself and to remap_predicate.
14065         (inline_merge_summary): Also create and populate vector offset_map.
14066         (do_estimate_edge_time): New vector of known aggregate contents,
14067         passed to functions which need it.
14068         (inline_read_section): Stream new fields of condition.
14069         (inline_write_summary): Likewise.
14070         * ipa-cp.c (ipa_get_indirect_edge_target): Also examine the aggregate
14071         contents.  Let all local callers pass NULL for known_aggs.
14073 2012-08-11  Jan Hubicka  <jh@suse.cz>
14075         * lto-cgraph.c (output_cgraph): Rename to ...
14076         (output_symtab): ... this one. Update for LTO_section_symtab_nodes.
14077         (input_cgraph): Rename to ...
14078         (input_symtab): ... this one. Update for LTO_section_symtab_nodes.
14079         * lto-streamer-out.c (create_output_block): Do not set
14080         section_type.
14081         (produce_asm): Likewise.
14082         (lto_output_toplevel_asms): Likewise.
14083         (produce_asm_for_decls): Likewise.
14084         (lto_output): Use output_symtab.
14085         * lto-section-in.c (lto_section_name): Update.
14086         * lto-section-out.c (lto_destroy_simple_output_block): Remove
14087         section_type.
14088         * lto-streamer.h (enum lto_section_type): Remove LTO_section_varpool;
14089         rename LTO_section_cgraph to LTO_section_symtab_nodes.
14090         (struct lto_header): Remove section_type.
14092 2012-08-11  Jan Hubicka  <jh@suse.cz>
14094         * cgraph.h (vector types for symtab_node): Add.
14095         * ipa-reference.c (ipa_reference_write_optimization_summary): Update
14096         for new symtab encoder.
14097         (ipa_reference_read_optimization_summary): Likewise.
14098         * lto-cgraph.c (output_varpool): Remove.
14099         (input_cgraph_opt_summary): Take symtab nodes vector as argument.
14100         (LTO_cgraph_tags): Rename to ...
14101         (LTO_symtab_tags): ... this one; add LTO_symtab_variable.
14102         (lto_cgraph_encoder_new): Rename to ...
14103         (lto_symtab_encoder_new): ... this on.
14104         (lto_cgraph_encoder_encode): Rename to ...
14105         (lto_symtab_encoder_encode): ... this one.
14106         (lto_cgraph_encoder_delete): Rename to ...
14107         (lto_symtab_encoder_delete): ... this one.
14108         (lto_cgraph_encoder_deref): Rename to ...
14109         (lto_symtab_encoder_deref): ... this one.
14110         (lto_cgraph_encoder_encode_body_p): Rename to ...
14111         (lto_symtab_encoder_encode_body_p): ... this one.
14112         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
14113         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
14114         lto_varpool_encoder_deref): Remove.
14115         (lto_varpool_encoder_encode_initializer_p): Rename to ...
14116         (lto_symtab_encoder_encode_initializer_p): ... this one.
14117         (lto_set_varpool_encoder_encode_initializer): Rename to ...
14118         (lto_set_symtab_encoder_encode_initializer): ... this one.
14119         (lto_output_edge): Update.
14120         (lto_output_node): Update.
14121         (lto_output_varpool_node): Update; stream out LTO_symtab_variable tag.
14122         (lto_output_ref): Drop varpool_encoder; update.
14123         (add_node_to): Update.
14124         (add_references): Update.
14125         (output_outgoing_cgraph_edges): Update.
14126         (output_refs): Update.
14127         (compute_ltrans_boundary): Update.
14128         (output_cgraph): Update; output varpools too.
14129         (input_overwrite_node): Update.
14130         (output_varpool): Remove.
14131         (input_node): Update.
14132         (input_ref): Update.
14133         (input_edge): Update.
14134         (input_cgraph_1): Update; input varpool too; unify fixup code.
14135         (input_varpool_1): Remove.
14136         (input_refs): Update.
14137         (input_cgraph): Update.
14138         (output_node_opt_summary): Update.
14139         (input_cgraph_opt_section): Update.
14140         (input_cgraph_opt_summary): Update.
14141         * ipa-pure-const.c (pure_const_write_summary): Update.
14142         (pure_const_read_summary): Update.
14143         * lto-streamer-out.c (lto_write_tree): Update.
14144         (lto_output): Likewise.
14145         (produce_symtab): Update.
14146         (produce_asm_for_decls): Update.
14147         * ipa-inline-analysis.c (inline_read_section): Update.
14148         (inline_write_summary): Update.
14149         * ipa-prop.c (ipa_write_node_info): Update.
14150         (ipa_prop_read_section): Update.
14151         * lto-streamer.h (lto_cgraph_encoder_d): Rename to ...
14152         (lto_symtab_encoder_d): ... this one;  add initializer.
14153         (lto_cgraph_encoder_t): Rename to ...
14154         (lto_symtab_encoder_t): ... this one.
14155         (lto_cgraph_encoder_size): Rename to ...
14156         (lto_symtab_encoder_size): ... this one.
14157         (lto_varpool_encoder_d): ... remove.
14158         (lto_varpool_encoder_t): Remove.
14159         (lto_out_decl_state): Remove cgraph_node_encoder, varpool_node_encoder
14160         add symtab_node_encoder.
14161         (lto_file_decl_data): Likewise.
14162         (lto_cgraph_encoder_deref, lto_cgraph_encoder_lookup,
14163         lto_cgraph_encoder_new, lto_cgraph_encoder_encode,
14164         lto_cgraph_encoder_delete, lto_cgraph_encoder_encode_body_p,
14165         lto_varpool_encoder_encode_body_p, lto_varpool_encoder_deref,
14166         lto_varpool_encoder_lookup, lto_varpool_encoder_new,
14167         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
14168         lto_varpool_encoder_encode_initializer_p): Remove.
14169         (lto_symtab_encoder_deref, lto_symtab_encoder_lookup,
14170         lto_symtab_encoder_t, lto_symtab_encoder_encode,
14171         lto_symtab_encoder_delete, lto_symtab_encoder_encode_body_p,
14172         lto_symtab_encoder_encode_initializer_p): New.
14174 2012-08-11  Uros Bizjak  <ubizjak@gmail.com>
14176         * config/i386/i386.md (isa): Add fma and fma4.
14177         (enabled): Handle fma and fma4.
14178         * config/i386/sse.md (*fma_fmadd_<mode>): Merge *fma4_fmadd_<mode>.
14179         (*fma_fmsub_<mode>): Merge *fma4_fmsub_<mode>.
14180         (*fma_fnmadd_<mode>): Merge *fma4_fnmadd_<mode>.
14181         (*fma_fnmsub_<mode>): Merge *fma4_fnmsub_<mode>.
14182         (*fma_fmaddsub_<mode>): Merge *fma4_fmaddsub_<mode>.
14183         (*fma_fmsubadd_<mode>): Merge *fma4_fmsubadd_<mode>.
14185 2012-08-10  Uros Bizjak  <ubizjak@gmail.com>
14187         * config/i386/sse.md (*fma_fmadd_<mode>, *fma_fmsub_<mode>,
14188         *fma_fnmadd_<mode>, *fma_fnmsub_<mode>, *fma_fmaddsub_<mode>,
14189         *fma_fmsubadd_<mode>): Move FMA3 insn patterns before FMA4 patterns.
14191 2012-08-10  Uros Bizjak  <ubizjak@gmail.com>
14193         * config/i386/i386.md (simple LEA peephole2s): Add zero-extend
14194         variants of PLUS and MULT simple LEA patterns.  Disable PLUS
14195         patterns for TARGET_OPT_AGU.
14197 2012-08-10  Richard Guenther  <rguenther@suse.de>
14199         * Makefile.in (OBJS): Remove matrix-reorg.o.
14200         (matrix-reorg.o): Remove dependence rule.
14201         (GTFILES): Remove matrix-reorg.c.
14202         * matrix-reorg.c: Remove.
14203         * passes.c (init_optimization_passes): Do not schedule
14204         pass_ipa_matrix_reorg.
14205         * tree-pass.h (pass_ipa_matrix_reorg): Remove.
14206         * common.opt (fipa-matrix-reorg): Stub out.
14207         * doc/invoke.texi (fipa-matrix-reorg): Remove documentation.
14209 2012-08-10  Richard Guenther  <rguenther@suse.de>
14211         PR middle-end/54219
14212         * fold-const.c (fold_ternary_loc): Do not reverse the mask
14213         when canonicalizing it when folding VEC_PERM_EXPR.
14215 2012-08-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14217         PR middle-end/54211
14218         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
14219         Use cand_type to determine whether pointer arithmetic will be generated.
14221 2012-08-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14223         * doc/sourcebuild.texi: Document long_neq_int effective target.
14225 2012-08-10  Richard Guenther  <rguenther@suse.de>
14227         PR tree-optimization/54109
14228         * tree-ssa-forwprop.c
14229         (forward_propagate_addr_into_variable_array_index): Remove.
14230         (forward_propagate_addr_expr_1): Adjust.
14232 2012-08-10  Richard Guenther  <rguenther@suse.de>
14234         * tree-cfg.c (dump_function_to_file): Make sure to dump
14235         anonymous SSA names when there are no local decls.
14237 2012-08-10  Steven Bosscher  <steven@gcc.gnu.org>
14239         * tree-ssa-pre.c (alloc_expression_id): Fix use of VEC_reserve.
14240         * tree-into-ssa.c (get_ssa_name_ann): Likewise.
14241         (mark_phi_for_rewrite): Likewise.
14242         (compute_global_livein): Use VEC_reserve outside the innermost
14243         loop and VEC_quick_push instead of VEC_safe_push in that loop.
14244         (update_ssa): Re-organize to avoid unnecessary sbitmap_zero'ing
14245         of new_ssa_names and old_ssa_names.  Allocate phis_to_rewrite to
14246         the correct initial size.
14248 2012-08-10  Richard Guenther  <rguenther@suse.de>
14250         * tree-ssa-pre.c (pretemp, storetemp, prephitemp): Remove.
14251         (need_creation): Remove.
14252         (get_representative_for): Use anonymous named SSA names.
14253         (create_expression_by_pieces): Likewise.
14254         (insert_into_preds_of_block): Likewise.
14255         (init_pre): Do not init removed vars.
14256         (fini_pre): Do not free need_creation.
14257         * tree-ssa-forwprop.c (simplify_bitwise_binary): Use anonymous
14258         SSA names.
14259         * tree-ssa-loop-manip.c (create_iv): Likewise.
14260         * value-prof.c (gimple_divmod_fixed_value): Likewise.
14261         (gimple_mod_pow2): Likewise.
14262         (gimple_mod_subtract): Likewise.
14263         (gimple_ic): Likewise.
14264         (gimple_stringop_fixed_value): Likewise.
14265         * tree-ssa-phiopt.c (condstoretemp): Remove.
14266         (tree_ssa_phiopt_worker): Use anonymous named SSA names.
14267         (conditional_replacement): Likewise.
14268         (abs_replacement): Likewise.
14269         (cond_store_replacement): Likewise.
14270         (cond_if_else_store_replacement_1): Likewise.
14271         * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
14272         (rewrite_bittest): Likewise.
14273         * tree-ssa-reassoc.c (build_and_add_sum): Get type from callers
14274         and build anonymous SSA names.
14275         (undistribute_ops_list): Adjust.
14276         (eliminate_redundant_comparison): Use anonymous SSA names.
14277         (rewrite_expr_tree_parallel): Likewise.
14278         (get_reassoc_pow_ssa_name): Remove.
14279         (attempt_builtin_powi): Adjust.
14280         (reassociate_bb): Likewise.
14281         * tree-ssa-strlen.c (get_string_length): Use anonymous SSA names.
14282         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
14283         (build_arrays): Likewise.
14284         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
14285         (create_tailcall_accumulator): Likewise.
14286         * tree-vect-generic.c (expand_vector_divmod): Likewise.
14287         * tree-profile.c (gcov_type_tmp_var): Remove.
14288         (gimple_init_edge_profiler): Do not initialize it and use anonymous
14289         SSA names.
14290         (gimple_gen_ic_profiler): Likewise.
14291         (tree_profiling): Adjust.
14292         * tree-sra.c (build_ref_for_offset): Use anonymous SSA names.
14293         * tree-ssa-math-opts.c (execute_cse_sincos_1): Likewise.
14294         (powi_as_mults_1): Likewise.
14295         (powi_as_mults): Likewise.
14296         (build_and_insert_call): Adjust.
14297         (build_and_insert_binop): Likewise.
14298         (build_and_insert_ref): Likewise.
14299         (build_and_insert_cast): Likewise.
14300         (gimple_expand_builtin_pow): Likewise.
14301         (gimple_expand_builtin_cabs): Likewise.
14302         (execute_optimize_bswap): Use anonymous SSA names.
14303         (convert_mult_to_widen): Likewise.
14304         (convert_plusminus_to_widen): Likewise.
14305         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
14306         * tree-ssa-propagate.c (update_call_from_tree): Likewise.
14307         * tree-if-conv.c (ifc_temp_var): Likewise.
14308         * tree-loop-distribution.c (generate_memset_builtin): Likewise.
14309         * tree-parloops.c (take_address_of): Likewise.
14310         * tree-vect-data-refs.c (vect_permute_store_chain): Likewise.
14311         (vect_permute_load_chain): Likewise.
14312         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks): Likewise.
14313         * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
14314         (vect_handle_widen_op_by_const): Likewise.
14315         (vect_operation_fits_smaller_type): Likewise.
14316         (vect_recog_over_widening_pattern): Likewise.
14317         * tree-vect-stmts.c (vect_init_vector): Likewise.
14318         * tree-vrp.c (simplify_truth_ops_using_ranges): Likewise.
14319         (simplify_float_conversion_using_ranges): Likewise.
14321 2012-08-10  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14323         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix
14324         target mask of __builtin_ia32_rdseed_di_step builtin.
14326 2012-08-10  Richard Guenther  <rguenther@suse.de>
14328         PR tree-optimization/54027
14329         * tree-vrp.c (extract_range_from_binary_expr_1): Merge RSHIFT_EXPR
14330         and LSHIFT_EXPR handling, force -fwrapv for the multiplication used
14331         to handle LSHIFT_EXPR with a constant.
14333 2012-08-10  Richard Guenther  <rguenther@suse.de>
14335         * tree.h (SSA_NAME_VAR): Return NULL_TREE if an IDENTIFIER_NODE
14336         is recorded as var.
14337         (SSA_NAME_IDENTIFIER): Return the IDENTIFIER_NODE of the SSA_NAME
14338         or its SSA_NAME_VAR.
14339         (SET_SSA_NAME_VAR_OR_IDENTIFIER): New setter.
14340         * tree-ssanames.c (make_ssa_name_fn): Handle creating anonymous
14341         SSA names by passing a type instead of a variable decl.
14342         (release_ssa_name): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
14343         (copy_ssa_name_fn): Handle anonymous SSA names.
14344         (replace_ssa_name_symbol): Use SET_SSA_NAME_VAR_OR_IDENTIFIER.
14345         * tree-flow-inline.h (make_temp_ssa_name): New inline function.
14346         * tree-pretty-print.c (dump_generic_node): Use SSA_NAME_IDENTIFIER,
14347         dump SSA names without a name as <anon>.
14348         * cfgexpand.c (expand_used_vars): Assing anonymous SSA names we are
14349         going to expand a decl.
14350         (gimple_expand_cfg): Assign all SSA names of a partition the
14351         decl we created for its leader.
14352         * tree-ssa.c (target_for_debug_bind): Handle SSA_NAMEs.
14353         (verify_ssa_name): Handle anonymous SSA names.
14354         (verify_def): Likewise.
14355         * tree-predcom.c (eliminate_temp_copies): Likewise.
14356         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
14357         * tree-ssa-live.c (var_map_base_init): Compute conflicts for
14358         anonymous SSA names with the same type.
14359         (mark_all_vars_used_1): Handle anonymous SSA names.
14360         (verify_live_on_entry): Likewise.
14361         * tree-ssa-coalesce.c (abnormal_corrupt): Remove.
14362         (create_outofssa_var_map): Adjust with respect to conflicts we
14363         compute for anonymous SSA names.  Do not restrict abnormal
14364         coalescing.
14365         (coalesce_partitions): Do not restrict abnormal coalescing.
14366         Assert we only ever coalesce variables we computed conflicts for.
14367         * tree-ssa-ter.c (process_replaceable): Do not restrict TER
14368         of anonymous names.
14369         * expr.c (expand_expr_real_1): Handle anonymous SSA names
14370         expanded from IVOPTs by creating a raw REG here.
14371         * tree-cfg.c (replace_ssa_name): Handle anonymous SSA names.
14372         (dump_function_to_file): Dump anonymous SSA names alongside
14373         with their types in the variable list.
14374         (verify_gimple_return): Guard use of SSA_NAME_VAR.
14375         * tree-into-ssa.c (mark_for_renaming): Handle a NULL symbol.
14376         (rewrite_into_ssa): Make SSA names anonymous.
14377         * tree-ssa-structalias.c (alias_get_name): Rewrite.
14378         * tree-ssa-uninit.c (ssa_undefined_value_p): Handle anonymous
14379         SSA names.
14380         (warn_uninitialized_phi): Likewise.
14381         * tree-ssa-loop-ivopts.c (prepare_decl_rtl): Defer expanding
14382         anonymous SSA names to the expander.
14383         (determine_iv_cost): Anonymous SSA names are artificial.
14384         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
14385         Handle anonymous SSA names.
14386         * lto-streamer-out.c (output_ssa_names): Stream SSA_NAME_VAR
14387         or if NULL, the type of the SSA name.
14388         * tree-inline.c (remap_ssa_name): Handle anonymous SSA names,
14389         remap names as anonymous where appropriate.
14390         (insert_init_stmt): Pass SSA names down to insert_init_debug_bind.
14391         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Adjust
14392         according to what we create conflicts for in out-of-SSA
14393         coalescing.
14394         * tree-parloops.c (separate_decls_in_region_name): Handle
14395         anonymous SSA names.
14396         (add_field_for_name): Likewise.
14397         * tree.c (get_name): Handle SSA names.
14398         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Defer to get_name for
14399         SSA_NAMEs.
14400         * tree-vect-loop-manip.c (adjust_debug_stmts): Use
14401         virtual_operand_p.
14402         * tree-sra.c (create_access_replacement): Give up generating
14403         a DECL_DEBUG_EXPR for SSA names in the memory reference.
14404         (replace_removed_params_ssa_names): Guard use of SSA_NAME_VAR.
14405         * tree-complex.c (get_component_ssa_name): Handle anonymous
14406         SSA names.
14407         (set_component_ssa_name): Likewise.
14408         * tree-ssa-sccvn.c (visit_reference_op_load): Likewise.
14409         * tree-object-size.c (collect_object_sizes_for): Handle
14410         uninitialized SSA names properly.
14411         * ipa-inline-analysis.c (eliminated_by_inlining_prob): Guard use of
14412         SSA_NAME_VAR.
14413         * ipa-split.c (test_nonssa_use): Likewise.
14414         (consider_split): Likewise.
14415         (mark_nonssa_use): Likewise.
14417 2012-08-09  Jan Hubicka  <jh@suse.cz>
14419         PR middle-end/54146
14420         * ipa-inline-transform.c (inline_call): Add UPDATE_OVERALL_SUMMARY
14421         parameter; honnor it.
14422         * ipa-inline.c (recursive_inlining): Update call
14423         of inline_call.
14424         (inline_small_functions): Likewise.
14425         (ipa_inline): Likewise.
14426         (inline_always_inline_functions): Likewise.
14427         (early_inline_small_functions): Likewise.
14428         (flatten_function): Do separate update of summary info.
14429         * ipa-inline.h (inline_update_overall_summary): Declare.
14430         (inline_call): Update.
14431         * ipa-inline-analysis.c (inline_merge_summary): Break out
14432         updating code to ...
14433         (inline_update_overall_summary): Likewise.
14435 2012-08-09  Richard Henderson  <rth@redhat.com>
14437         * config/s390/s390.c (s390_expand_insv): Use VOIDmode in gen_rtx_SET.
14439         * config/s390/s390.c (s390_expand_cs_hqi): Copy val to a temp before
14440         performing the compare for the restart loop.
14442 2012-08-09  DJ Delorie  <dj@redhat.com>
14444         * config/rl78/rl78.c (rl78_alloc_physical_registers): Check for
14445         SET before extracting SET_SRC.
14446         (rl78_remove_unused_sets): Check for REG before extractnig REGNO.
14448 2012-08-09  Oleg Endo  <olegendo@gcc.gnu.org>
14450         PR target/54089
14451         * config/sh/sh-protos (shift_insns_rtx): Delete.
14452         (sh_ashlsi_clobbers_t_reg_p): Add.
14453         * config/sh/sh.c (shift_insns, shift_amounts, ext_shift_insns,
14454         ext_shift_amounts): Merge arrays of ints to array of structs.
14455         Adapt usage of arrays throughout the file.
14456         (shift_insns_rtx): Delete unused function.
14457         (sh_ashlsi_clobbers_t_reg_p): New function.
14458         * config/sh/sh.md (ashlsi3): Emit ashlsi3_n_clobbers_t insn if the
14459         final shift sequence will clobber T_REG.
14460         (ashlsi3_n): Split only if the final shift sequence will not
14461         clobber T_REG.
14462         (ashlsi3_n_clobbers_t): New insn_and_split.
14464 2012-08-09  Steven Bosscher  <steven@gcc.gnu.org>
14466         * calls.c (mem_overlaps_already_clobbered_arg_p): Use SBITMAP_SIZE
14467         instead of looking at sbitmap n_bits member directly.
14468         * gcse.c (hoist_code): Likewise.
14469         * sched-rgn.c (split_edges): Likewise.
14470         * tree-into-ssa.c (is_old_name, is_new_name, add_new_name_mapping,
14471         update_ssa): Likewise.
14473 2012-08-09  Uros Bizjak  <ubizjak@gmail.com>
14475         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Return preferred
14476         single unit register class for classes that contain registers form
14477         multiple units.
14478         (REG_CLASS_CONTENTS): Add missing "frame" register to FLOAT_INT_REGS,
14479         INT_SSE_REGS and FLOAT_INT_SSE_REGS register classes.
14481 2012-08-09  Martin Jambor  <mjambor@suse.cz>
14483         * cgraph.h (cgraph_indirect_call_info): Field anc_offse renamd to
14484         offset, updated all users.  New field agg_contents.
14485         * ipa-prop.h (jump_func_type): Removed IPA_JF_CONST_MEMBER_PTR.
14486         (ipa_pass_through_data): New field agg_preserved.
14487         (ipa_ancestor_jf_data): Likewise.
14488         (ipa_member_ptr_cst): Removed.
14489         (ipa_agg_jf_item): New type.
14490         (ipa_agg_jump_function): Likewise.
14491         (ipa_jump_func): New field agg.  Removed field member_cst.
14492         (ipa_get_jf_pass_through_agg_preserved): New function.
14493         (ipa_get_jf_ancestor_agg_preserved): Likewise.
14494         (ipa_get_jf_member_ptr_pfn): Removed.
14495         (ipa_find_agg_cst_for_param): Declare.
14496         (ipa_load_from_parm_agg): Likewise.
14497         * ipa-prop.c (param_analysis_info): Fields modified and
14498         visited_statements rename to parm_modified and parm_visited_statements
14499         respectively, added fields ref_modified, ref_visited_statements,
14500         pt_modified and pt_visited_statements.
14501         (ipa_print_node_jump_functions_for_edge): Do not dump const member
14502         functions.  Dump agg_preserved flags and aggregate jump functions.
14503         (ipa_set_jf_simple_pass_through): Set also agg_preserved.
14504         (ipa_set_ancestor_jf): Likewise.
14505         (ipa_set_jf_arith_pass_through): Clear agg_preserved.
14506         (ipa_set_jf_member_ptr_cst): Removed.
14507         (is_parm_modified_before_stmt): Logic reversed, renamed to
14508         parm_preserved_before_stmt_p.  Cache visited bitmap only for
14509         naked DECL parameters.  All callers updated.
14510         (load_from_unmodified_param): Allow NULL parms_ainfo.
14511         (parm_ref_data_preserved_p): New function.
14512         (parm_ref_data_pass_through_p): Likewise.
14513         (ipa_load_from_parm_agg_1): Likewise.
14514         (ipa_load_from_parm_agg): Likewise.
14515         (compute_complex_assign_jump_func): Check if aggregate contents are
14516         preserved.
14517         (compute_complex_ancestor_jump_func): Likewise.
14518         (compute_scalar_jump_functions): Removed.
14519         (type_like_member_ptr_p): Also check field position are known and sane.
14520         (compute_pass_through_member_ptrs): Removed.
14521         (determine_cst_member_ptr): Likewise.
14522         (ipa_known_agg_contents_list): New type.
14523         (determine_known_aggregate_parts): New function.
14524         (compute_cst_member_ptr_arguments): Removed.
14525         (ipa_compute_jump_functions_for_edge): Compute all kinds of jump
14526         functions (scalar, aggregate and member pointer).
14527         (ipa_get_member_ptr_load_param): Incorporate into
14528         ipa_get_stmt_member_ptr_load_param, also pass back an offset.
14529         (ipa_note_param_call): Clear agg_contents.
14530         (ipa_analyze_indirect_call_uses): Also look for simple pointers loaded
14531         from aggregates.  In such cases, store offset of the called field.
14532         (ipa_analyze_node): Initialize new fields of param_analysis_info.
14533         (update_jump_functions_after_inlining): Handle aggregate contents.
14534         (ipa_find_agg_cst_for_param): New function.
14535         (try_make_edge_direct_simple_call): Handle called aggregate values.
14536         (update_indirect_edges_after_inlining): Make sure aggregate preserving
14537         jump functions comply with type compatibility requirements.
14538         (ipa_edge_duplication_hook): Copy also aggregate jump functions.
14539         (ipa_write_jump_function): Stream agg_preserved flags and aggregate
14540         jump functions.  Do not stream member pointer constant jump functions.
14541         (ipa_read_jump_function): Likewise.
14542         (ipa_write_indirect_edge_info): Stream new cgraph_indirect_call_info
14543         fields.
14544         (ipa_read_indirect_edge_info): Likewise.
14546 2012-08-09  Oleg Endo  <olegendo@gcc.gnu.org>
14548         PR target/39423
14549         * config/sh/predicates.md (mem_index_disp_operand): New predicate.
14550         * config/sh/sh.md (*movsi_index_disp): Rewrite insns to use the new
14551         mem_index_disp_operand predicate.
14553 2012-08-09  Oleg Endo  <olegendo@gcc.gnu.org>
14555         PR target/51244
14556         * config/sh/sh.md: Add negc extu sequence peephole.
14557         (movrt, movnegt, movrt_negc, nott): Use t_reg_operand predicate.
14558         (*movrt_negc): New insn.
14559         * config/sh/sync.md (atomic_test_and_set): Pass gen_t_reg_rtx to
14560         gen_movnegt.
14561         * config/sh/sh.c (expand_cbranchsi4, sh_emit_scc_to_t,
14562         sh_emit_compare_and_branch, sh_emit_compare_and_set): Use
14563         get_t_reg_rtx.
14564         (sh_expand_t_scc): Pass gen_t_reg_rtx to gen_movnegt.
14566 2012-08-09  Oleg Endo  <olegendo@gcc.gnu.org>
14568         PR target/50751
14569         * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg):
14570         Use arith_reg_operand predicate instead of register_operand.
14571         * config/sh/predicates.md (movsrc_no_disp_mem_operand): Accept
14572         only mem, simplify.
14574 2012-08-09  Uros Bizjak  <ubizjak@gmail.com>
14576         * config/alpha/alpha.c (alpha_pad_noreturn): Rename to ...
14577         (alpha_pad_function_end): ... this.  Also insert NOP between
14578         sibling call and GP load.
14579         (alpha_reorg): Update call to alpha_pad_function_end.  Expand comment.
14581 2012-08-09  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14583         * config/i386/adxintrin.h: Remove guarding __ADX__ check.
14584         * config/i386/x86intrin.h: Likewise.
14585         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove
14586         OPTION_MASK_ISA_ADX from needed options for
14587         __builtin_ia32_addcarryx_u32 and __builtin_ia32_addcarryx_u64.
14588         (ix86_expand_builtin): Use add<mode>3_carry in expanding of
14589         IX86_BUILTIN_ADDCARRYX32 and IX86_BUILTIN_ADDCARRYX64.
14591 2012-08-09  Andrey Belevantsev  <abel@ispras.ru>
14593         PR rtl-optimization/53701
14594         * sel-sched.c (vinsn_vec_has_expr_p): Clarify function comment.
14595         Process not only expr's vinsns but all old vinsns from expr's
14596         history of changes.
14597         (update_and_record_unavailable_insns): Clarify comment.
14599 2012-08-09  Bernd Schmidt  <bernds@codesourcery.com>
14601         * reload.c (find_valid_class_1): New static function.
14602         (push_reload): Use it when reloading a SYMBOL_REG as the inner
14603         of a subreg.  Keep better track of needed classes for the
14604         secondary memory case.
14605         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Limit INT_SSE_REGS to
14606         GENERAL_REGS.
14607         * reload1.c (replaced_subreg): New static function.
14608         (gen_reload): Use it when deciding whether to use secondary
14609         memory.
14611 2012-08-09  Richard Guenther  <rguenther@suse.de>
14613         * tree.h (SSA_VAR_P): Simplify.
14614         * tree-ssanames.c (make_ssa_name_fn): Strengthen assert.
14615         * fold-const.c (fold_comparison): Check for default def first
14616         before checking for PARM_DECL.
14617         * tree-complex.c (get_component_ssa_name): Likewise.
14618         * tree-inline.c (remap_ssa_name): Likewise.
14619         * tree-ssa-loop-ivopts.c (parm_decl_cost): Likewise.
14620         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
14621         (find_what_p_points_to): Likewise.
14622         * tree-ssa-operands.c (add_stmt_operand): Simplify.
14624 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
14626         * simplify-rtx.c (simplify_binary_operation_1): Do not simplify
14627         IOR to a constant if one operand has side effects.
14629 2012-08-08  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14631         * builtins.c (expand_builtin_atomic_compare_exchange): Pass old
14632         value operand as MEM to expand_atomic_compare_and_swap.
14634         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Accept
14635         nonimmediate_operand for old value; generate load and store if
14636         needed.
14637         * config/s390/s390.c (s390_expand_cs_hqi): Accept any operand
14638         as vtarget.
14640 2012-08-08  Steven Bosscher  <steven@gcc.gnu.org>
14642         PR middle-end/54146
14643         * gimpify.c (gimplify_body): Only verify_gimple_in_seq with
14644         checking enabled.
14645         * tree-ssa-loop-manip.c (add_exit_phis_var): Assert that var is
14646         a gimple_reg if checking is enabled.
14647         (find_uses_to_rename_stmt): Only look at non-virtual USE operands.
14648         * tree-into-ssa (compute_global_livein): Change the worklist
14649         type from an array to a VEC.
14651 2012-08-08  Richard Guenther  <rguenther@suse.de>
14653         * tree-ssa-operands.h (virtual_operand_p): Declare.
14654         * tree-ssa-operands.c (virtual_operand_p): New predicate.
14655         * gimple.c (is_gimple_reg): Use virtual_operand_p.
14656         * tree-into-ssa.c (prepare_block_for_update): Likewise.
14657         * tree-vect-loop-manip.c (adjust_debug_stmts): Likewise.
14659 2012-08-08  Richard Guenther  <rguenther@suse.de>
14661         * tree-call-cdce.c (check_pow): Simplify.
14662         (gen_conditions_for_pow_int_base): Likewise.
14663         * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not handle
14664         virtual operands here.
14665         * tree-ssa-operands.c (get_name_decl): Remove unused function.
14666         * gimplify.c (gimple_regimplify_operands): Remove dead code.
14667         * tree-vrp.c (get_value_range): Move SSA_NAME_VAR access.
14668         * tree-parloops.c (create_phi_for_local_result): Use copy_ssa_name.
14669         * value-prof.c (gimple_ic): Use duplicate_ssa_name.
14670         (gimple_stringop_fixed_value): Likewise.
14671         * tree.c (needs_to_live_in_memory): Remove SSA name handling.
14672         * tree-stdarg.c (find_va_list_reference): Store SSA_NAME_VERSIONs
14673         in the bitmap alongside shifted DECL_UIDs.
14674         (va_list_counter_struct_op): Likewise.
14675         (va_list_ptr_read): Likewise.
14676         (va_list_ptr_write): Likewise.
14677         (check_va_list_escapes): Likewise.
14678         (check_all_va_list_escapes): Likewise.
14679         (execute_optimize_stdarg): Likewise.
14680         * tree-outof-ssa.c (insert_backedge_copies): Use copy_ssa_name.
14682 2012-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
14683             H.J. Lu  <hongjiu.lu@intel.com>
14685         PR rtl-optimization/54157
14686         * combine.c (gen_lowpart_for_combine): Don't return identity
14687         for CONST or symbolic reference.
14689 2012-08-08  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
14691         * common/config/i386/i386-common.c (OPTION_MASK_ISA_ADX_SET): New.
14692         (OPTION_MASK_ISA_ADX_UNSET): Likewise.
14693         (ix86_handle_option): Handle madx option.
14694         * config.gcc (i[34567]86-*-*): Add adxintrin.h.
14695         (x86_64-*-*): Likewise.
14696         * config/i386/adxintrin.h: New header.
14697         * config/i386/driver-i386.c (host_detect_local_cpu): Detect ADCX/ADOX
14698         support.
14699         * config/i386/i386-builtin-types.def
14700         (UCHAR_FTYPE_UCHAR_UINT_UINT_PUNSIGNED): New function type.
14701         (UCHAR_FTYPE_UCHAR_ULONGLONG_ULONGLONG_PULONGLONG): Likewise.
14702         * config/i386/i386-c.c: Define __ADX__ if needed.
14703         * config/i386/i386.c (ix86_target_string): Define -madx option.
14704         (PTA_ADX): New.
14705         (ix86_option_override_internal): Handle new option.
14706         (ix86_valid_target_attribute_inner_p): Add OPT_madx.
14707         (ix86_builtins): Add IX86_BUILTIN_ADDCARRYX32,
14708         IX86_BUILTIN_ADDCARRYX64.
14709         (ix86_init_mmx_sse_builtins): Define corresponding built-ins.
14710         (ix86_expand_builtin): Handle these built-ins.
14711         (ix86_expand_args_builtin): Handle new function types.
14712         * config/i386/i386.h (TARGET_ADX): New.
14713         * config/i386/i386.md (adcx<mode>3): New define_insn.
14714         * config/i386/i386.opt (madx): New.
14715         * config/i386/x86intrin.h: Include adxintrin.h.
14717 2012-08-08  Nick Clifton  <nickc@redhat.com>
14719         * config/rl78/rl78.c: Include tree-pass.h.
14721 2012-08-08  Steven Bosscher  <steven@gcc.gnu.org>
14723         PR middle-end/54146
14724         * ira.c (init_live_subregs): Take live_subregs_used as a bitmap.
14725         (build_insn_chain): Make live_subregs_used a bitmap.
14726         Use SBITMAP_SIZE to ignore the paradoxical bytes of subregs.
14727         Use sbitmap_free to free the live_subreg sbitmaps.
14729         PR middle-end/54146
14730         * ifcvt.c: Include pointer-set.h.
14731         (cond_move_process_if_block): Change type of then_regs and
14732         else_regs from alloca'd array to pointer_sets.
14733         (check_cond_move_block): Update for this change.
14734         (cond_move_convert_if_block): Likewise.
14735         * Makefile.in: Fix dependencies for ifcvt.o.
14737 2012-08-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14739         * gimple-ssa-strength-reduction.c (struct incr_info_d): New struct.
14740         (incr_vec): New static var.
14741         (incr_vec_len): Likewise.
14742         (address_arithmetic_p): Likewise.
14743         (stmt_cost): Remove dead assignment.
14744         (dump_incr_vec): New function.
14745         (cand_abs_increment): Likewise.
14746         (lazy_create_slsr_reg): Likewise.
14747         (incr_vec_index): Likewise.
14748         (count_candidates): Likewise.
14749         (record_increment): Likewise.
14750         (record_increments): Likewise.
14751         (unreplaced_cand_in_tree): Likewise.
14752         (optimize_cands_for_speed_p): Likewise.
14753         (lowest_cost_path): Likewise.
14754         (total_savings): Likewise.
14755         (analyze_increments): Likewise.
14756         (ncd_for_two_cands): Likewise.
14757         (nearest_common_dominator_for_cands): Likewise.
14758         (profitable_increment_p): Likewise.
14759         (insert_initializers): Likewise.
14760         (introduce_cast_before_cand): Likewise.
14761         (replace_rhs_if_not_dup): Likewise.
14762         (replace_one_candidate): Likewise.
14763         (replace_profitable_candidates): Likewise.
14764         (analyze_candidates_and_replace): Handle candidates with SSA-name
14765         strides.
14767 2012-08-07  Steven Bosscher  <steven@gcc.gnu.org>
14769         * cfg.c (debug_bb): Do not set TDF_BLOCKS.
14770         * cfghooks.c (dump_bb): Honor ~TDF_BLOCKS.
14771         * pretty-print.c (pp_base_flush): Do not add a newline, and do not
14772         clear pp_needs_newline.
14773         * pretty-print.h (pp_newline_and_flush): New macro with the behavior
14774         of pp_base_flush before the above change.
14775         * langhooks.c (lhd_print_error_function): Use pp_newline_and_flush
14776         instead of pp_flush.
14777         * diagnostic.c (diagnostic_finish): Likewise.
14778         (diagnostic_report_diagnostic): Likewise.
14779         (verbatim): Likewise.
14780         (error_recursion): Likewise.
14781         * tree-pretty-print.c (print_generic_stmt): Likewise.
14782         (print_generic_stmt_indented): LIkewise.
14783         * gimple-pretty-print.c (print_gimple_stmt): Likewise.
14784         (print_gimple_seq): Likewise.
14785         (gimple_dump_bb_buff): Likewise.
14787 2012-08-07  Uros Bizjak  <ubizjak@gmail.com>
14789         PR debug/54177
14790         * var-tracking.c (var_lowpart): Exit early for matched modes.
14792 2012-08-07  Richard Henderson  <rth@redhat.com>
14794         * config/s390/s390.c (s390_emit_compare_and_swap): Update for
14795         atomic_compare_and_swapsi_internal name change.
14796         (s390_expand_insv): Try RISBG last, not requiring operands in
14797         registers but forcing them there.  Try a limited form of ICM.
14798         (s390_two_part_insv): New.
14799         (s390_expand_cs_hqi): Use it.  Update for atomic optabs.
14800         * config/s390/s390.md (UNSPEC_MOVA): New.
14801         (TDSI): Remove mode iterator.
14802         (DGPR, DINT, TDI): New mode iterators.
14803         (td): New mode attribute.
14804         (mem_signal_fence): New.
14805         (mem_thread_fence): Rename from memory_barrier; update for model arg.
14806         (mem_thread_fence_1): Rename from *memory_barrier.
14807         (atomic_load<DINT>, atomic_store<DINT>): New expanders.
14808         (atomic_loaddi_1, atomic_loadti_1): New.
14809         (atomic_storedi_1, atomic_storeti_1): New.
14810         (sync_compare_and_swap<TDSI>, sync_compare_and_swap<HQI>): Remove.
14811         (atomic_compare_and_swap<DGPR>, atomic_compare_and_swap<HQI>): New.
14812         (atomic_compare_and_swap<DGPR>_internal): New.
14813         (*sync_compare_and_swap<DW>, *sync_compare_and_swap<GPR>): Remove.
14814         (*atomic_compare_and_swap<TDI>_1): New.
14815         (*atomic_compare_and_swapdi_2, *atomic_compare_and_swapsi_3): New.
14816         (sync_<ATOMIC_Z196><GPR>, sync_old_<ATOMIC_Z196><GPR>): Remove.
14817         (atomic_fetch_<ATOMIC_Z196><GPR>): New.
14818         (atomic_fetch_<ATOMC_Z196><GPR>_iaf): New.
14819         (sync_<ATOMIC><HQI>, sync_old_<ATOMIC><HQI>): Remove.
14820         (sync_new_<ATOMIC><HQI>): Remove.
14821         (atomic_<ATOMIC><HQI>, atomic_fetch_<ATOMIC><HQI>): New.
14822         (atomic_<ATOMIC>_fetch<HQI>): New.
14823         (sync_lock_test_and_set<HQI>): Remove.
14824         (atomic_exchange<HQI>): New.
14826 2012-08-07  Paul Brook  <paul@codesourcery.com>
14827             Sandra Loosemore  <sandra@codesourcery.com>
14829         * except.c (switch_to_exception_section): Place tables for
14830         DECL_ONE_ONLY functions in comdat groups.
14832 2012-08-07  Richard Guenther  <rguenther@suse.de>
14834         * tree-flow.h (copy_ssa_name_fn): New function.
14835         (duplicate_ssa_name_fn): Likewise.
14836         * tree-flow-inline.h (copy_ssa_name): New function.
14837         (duplicate_ssa_name): Likewise.
14838         * tree-ssanames.c (copy_ssa_name_fn): New function.
14839         (duplicate_ssa_name): Rename to ...
14840         (duplicate_ssa_name_fn): ... this and adjust.
14841         * tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
14842         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
14843         Likewise.
14844         (slpeel_update_phi_nodes_for_guard2): Likewise.
14845         (slpeel_tree_peel_loop_to_edge): Likewise.
14846         (vect_loop_versioning): Likewise.
14847         * tree-parloops.c (transform_to_exit_first_loop): Likewise.
14848         (create_parallel_loop): Likewise.
14849         * ipa-split.c (split_function): Likewise.
14850         * tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
14851         (vect_create_epilog_for_reduction): Likewise.
14852         * tree-vect-data-refs.c (bump_vector_ptr): Likewise.
14853         (vect_setup_realignment): Likewise.
14854         * tree-vect-stmts.c (vectorizable_load): Likewise.
14855         * tree-switch-conversion.c (build_one_array): Likewise.
14856         (gen_def_assigns): Likewise.
14857         * tree-cfg.c (gimple_make_forwarder_block): Likewise.
14858         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
14859         create_zero_dim_array with the SSA name.
14860         (rewrite_phi_out_of_ssa): Likewise.
14861         (rewrite_cross_bb_scalar_dependence): Likewise.  Use copy_ssa_name.
14863 2012-08-07  Richard Guenther  <rguenther@suse.de>
14865         * tree-dfa.c (set_ssa_default_def): Clear the SSA_NAME_DEFAULT_DEF
14866         bit of the old name when we clear the slot.
14867         * tree-ssa-live.c (remove_unused_locals): Release any default
14868         def associated with an unused var.
14869         * tree-ssa-copy.c (may_propagate_copy_into_asm): Always return true.
14871 2012-08-07  Richard Guenther  <rguenther@suse.de>
14873         * tree-into-ssa.c (rewrite_stmt): Remove clobbers for variables
14874         we rewrite into SSA form.
14875         (rewrite_enter_block): Adjust.
14876         * gimple-iterator.c (gsi_replace): Also allow replacement with
14877         a stmt without a lhs.
14878         * tree-ssa-live.c (remove_unused_locals): Remove code handling
14879         clobbers of SSA names.
14880         * tree-nested.c (convert_local_reference_stmt): Remove clobbers
14881         for variables we access through the local chain.
14882         * tree-cfg.c (verify_gimple_assign_single): Verify clobbers
14883         clobber full decls only.
14885 2012-08-07  Richard Guenther  <rguenther@suse.de>
14887         * gimple.h (gimple_phi_set_result): Adjust SSA_NAME_DEF_STMT.
14888         * tree-phinodes.c (make_phi_node): Allow a NULL var.
14889         * tree-into-ssa.c (insert_phi_nodes_for): Simplify.
14890         * tree-complex.c (update_phi_components): Likewise.
14891         * tree-ssa-loop-manip.c (create_iv): Likewise.
14892         (add_exit_phis_edge): Likewise.
14893         (split_loop_exit_edge): Likewise.
14894         (tree_transform_and_unroll_loop): Likewise.
14895         * value-prof.c (gimple_ic): Likewise.
14896         (gimple_stringop_fixed_value): Likewise.
14897         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
14898         * omp-low.c (expand_parallel_call): Likewise.
14899         (expand_omp_for_static_chunk): Likewise.
14900         (expand_omp_atomic_pipeline): Likewise.
14901         * tree-parloops.c (create_phi_for_local_result): Likewise.
14902         (transform_to_exit_first_loop): Likewise.
14903         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
14904         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
14905         * tree-predcom.c (initialize_root_vars): Likewise.
14906         (initialize_root_vars_lm): Likewise.
14907         * sese.c (sese_add_exit_phis_edge): Likewise.
14908         * gimple-streamer-in.c (input_phi): Likewise.
14909         * tree-inline.c (copy_phis_for_bb): Likewise.
14910         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
14911         * tree-cfg.c (gimple_make_forwarder_block): Likewise.
14912         (gimple_duplicate_bb): Likewise.
14914 2012-08-07  Nick Clifton  <nickc@redhat.com>
14916         * config/mn10300/mn10300.c (mn10300_expand_prologue): Report
14917         stack usage if requested.
14919 2012-08-06  Cary Coutant  <ccoutant@google.com>
14921         * cgraphunit.c (assemble_thunk): Add source line info.
14922         * final.c (final): Check for non-null cfg pointer.
14924 2012-08-06  Sandra Loosemore  <sandra@codesourcery.com>
14925             Maxim Kuvyrkov  <maxim@codesourcery.com>
14926             Julian Brown  <julian@codesourcery.com>
14928         * config/mips/24k.md (r24k_unknown_store): Delete special handling
14929         for cprestore.
14930         (r24k_int_load, r24k_int_arith, r24k_int_mul3, r24k_int_mfhilo)
14931         (r24k_int_cop, r24k_int_multi)
14932         (r24kf2_1_fcvt_f2i, r24kf2_1_fxfer)
14933         (r24kf1_1_fcvt_f2i, r24kf1_1_fxfer): Use mips_store_data_bypass_p
14934         instead of store_data_bypass_p.
14935         * config/mips/74k.md (r74k_int_store): Delete special handling for
14936         cprestore.
14937         (r74k_int_load, r74k_int_logical, r74k_int_arith, r74k_int_cmove):
14938         Use mips_store_data_bypass_p instead of store_data_bypass_p.
14940 2012-08-06  Marc Glisse  <marc.glisse@inria.fr>
14942         PR tree-optimization/51938
14943         PR tree-optimization/52005
14944         * tree-ssa-ifcombine.c (ifcombine_ifandif): New parameters for
14945         inverted conditions.
14946         (ifcombine_iforif): Remove, merge code into ifcombine_ifandif.
14947         (tree_ssa_ifcombine_bb): Update calls to the above. Detect !a&&b
14948         and !a||b patterns.
14950 2012-08-06  Olivier Hainque  <hainque@adacore.com>
14952         * tree-emutls.c (new_emutls_decl): When a var_section is requested by
14953         the target, attach the new decl to that, not to the template section.
14955 2012-08-06  Tom de Vries  <tom@codesourcery.com>
14957         * tree-switch-conversion.c (emit_case_bit_tests): Generate MINUS_EXPR in
14958         unsigned type.
14960 2012-08-05  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
14962         * doc/invoke.texi: Document AMD btver2.
14963         * doc/extend.texi: Document AMD btver1 and btver2.
14965 2012-08-04  Sandra Loosemore  <sandra@codesourcery.com>
14966             Richard Sandiford  <rdsandiford@googlemail.com>
14968         * config/mips/mips.c (mips_option_override): Check -fpic
14969         for compatibility with -mabicalls and ABI.
14971 2012-08-04  Catherine Moore  <clm@codesourcery.com>
14972             Sandra Loosemore  <sandra@codesourcery.com>
14974         * config/mips/xlr.md (ir_xlr_alu_clz): New insn_reservation.
14975         (ir_xlr_alu): Remove clz.
14976         * config/mips/mips-cpus.def (xlr): Set PTF_AVOID_BRANCHLIKELY.
14978 2012-08-04  Richard Earnshaw  <rearnsha@arm.com>
14980         * arm.c (arm_gen_constant): Use SImode when preparing operands for
14981         gen_extzv_t2.
14983 2012-08-04  Uros Bizjak  <ubizjak@gmail.com>
14985         * config/i386/i386.h (QI_REGNO_P): New define.
14986         (ANY_QI_REGNO_P): Ditto.
14987         (GENERAL_REGNO_P): Use IN_RANGE macro.
14988         (QI_REG_P): Use QI_REGNO_P.
14989         (ANY_QI_REG_P): Use GENERAL_REGNO_P and QI_REGNO_P.
14990         (HARD_REGNO_CALLER_SAVE_MODE): Use QI_REGNO_P.
14991         * config/i386/i386.c (ix86_hard_regno_mode_ok): Ditto.
14992         (x86_extended_QIreg_mentioned_p): Ditto.  Also check if
14993         register is a general register.
14995 2012-08-03  Uros Bizjak  <ubizjak@gmail.com>
14997         * config/i386/sync.md (*atomic_fetch_add_cmp<mode>): Use
14998         incdec_operand predicate to return INC or DEC insn mnemonic.
14999         Add %K operand modifier.
15000         (atomic_add<mode>): Use incdec_operand predicate to
15001         return INC or DEC insn mnemonic.
15002         (atomic_dec<mode>): Ditto.
15004 2012-08-03  Michael Matz  <matz@suse.de>
15006         PR tree-optimization/54146
15007         * cfgexpand.c (add_scope_conflicts_1): Use bitmap_ior_into.
15008         (add_scope_conflicts): Iterate in RPO order.
15009         (add_stack_protection_conflicts): Iterate over the other triangle.
15010         (fini_vars_expansion): Clear stack_vars_sorted.
15012 2012-08-03  Marc Glisse  <marc.glisse@inria.fr>
15014         PR tree-optimization/30318
15015         * double-int.c (mul_double_wide_with_sign): New function.
15016         (mul_double_with_sign): Call the new function.
15017         * double-int.h (mul_double_wide_with_sign): Declare the new function.
15018         * tree-vrp.c (extract_range_from_binary_expr_1) [MULT_EXPR]:
15019         Handle integer types that wrap on overflow.
15020         (quad_int_cmp): New helper function.
15021         (quad_int_pair_sort): Likewise.
15023 2012-08-03  Richard Guenther  <rguenther@suse.de>
15025         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Query
15026         is_gimple_reg on the SSA name, not its variable.
15027         (vect_update_ivs_after_vectorizer): Likewise.
15028         * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
15029         * tree-if-conv.c (if_convertible_phi_p): Likewise.
15030         (predicate_scalar_phi): Likewise.
15031         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Likewise.
15032         (vect_analyze_scalar_cycles_1): Likewise.
15033         * tree-ssa-live.c (register_ssa_partition_check): Likewise.
15034         * tree-outof-ssa.c (eliminate_useless_phis): Likewise.
15035         * tree-ssa-reassoc.c (phi_rank): Likewise.
15036         * tree-parloops.c (separate_decls_in_region_name): Use
15037         replace_ssa_name_symbol.
15038         * tree-predcom.c (base_names_in_chain_on): Likewise.
15039         * matrix-reorg.c (update_type_size): Query the type of the SSA name,
15040         not its variable.
15041         * gimple-ssa-strength-reduction.c (create_mul_ssa_cand): Likewise.
15042         (create_mul_imm_cand): Likewise.
15043         (create_add_ssa_cand): Likewise.
15044         (create_add_imm_cand): Likewise.
15045         (slsr_process_add): Likewise.
15046         * tree-inline.c (remap_ssa_name): Do not set the type of the
15047         new SSA_NAME.
15048         * tree-ssa-structalias.c (get_constraint_for_ssa_var): Clarify assert.
15049         Check for default def first.
15051 2012-08-04  Steven Bosscher  <steven@gcc.gnu.org>
15053         * cfgrtl.c (print_rtl_with_bb): Do not print a newline between insns.
15055         * sched-vis.c (print_pattern): Handle SEQUENCE also.
15057 2012-08-02  Richard Henderson  <rth@redhat.com>
15059         Revert:
15060         PR 34548
15061         * function.h (struct rtl_data): Add max_dynamic_stack_alignment.
15062         * cfgexpand.c (gimple_expand_cfg): Initialise it.
15063         * explow.c (allocate_dynamic_stack_space): Set it.  Simplify
15064         alignment requirements given the known alignment of dynamic_offset.
15065         * function.c (instantiate_virtual_regs): Align dtnamic_offset.
15067 2012-08-02  Kenneth Zadeck <zadeck@naturalbridge.com>
15069         * cfgexpand.c (expand_debug_locations):  Encapsulate test for
15070         CONST_DOUBLE in macro.
15071         * combine.c (try_combine, gen_lowpart_for_combine): Ditto.
15072         * cprop.c (implicit_set_cond_p): Ditto.
15073         * cselib.c (rtx_equal_for_cselib_1): Ditto.
15074         * expmed.c (expand_mult): Ditto.
15075         * expr.c (convert_modes): Ditto.
15076         * ira-costs.c (record_reg_classes): Ditto.
15077         * ira-lives.c (single_reg_class): Ditto.
15078         * optabs.c (expand_copysign_absneg, expand_copysign): Ditto.
15079         * print-rtl.c (print_rtx): Ditto.
15080         * recog.c (simplify_while_replacing, const_double_operand)
15081         (asm_operand_ok, constrain_operands): Ditto.
15082         * reg-stack.c (subst_stack_regs_pat): Ditto.
15083         * reload.c (find_reloads, find_equiv_reg): Ditto.
15084         * rtlanal.c (replace_rtx): Remove test.
15085         * rtlanal.c (constant_pool_constant_p, split_double): Encapsulate
15086         test for CONST_DOUBLE in macro.
15087         * simplify-rtx.c (mode_signbit_p, avoid_constant_pool_reference)
15088         (simplify_unary_operation_1, simplify_const_unary_operation)
15089         (simplify_binary_operation_1, simplify_const_binary_operation)
15090         (simplify_relational_operation_1)
15091         (simplify_const_relational_operations)
15092         (implify_subreg): Ditto.
15093         * varasm.c (output_constant_pool_2): Ditto.
15094         * rtl.h (CONST_DOUBLE_AS_INT_P, CONST_DOUBLE_AS_FLOAT_P): New macros.
15095         * rtl.def (CONST_DOUBLE):  Updated comments.
15097 2012-08-02  Richard Sandiford  <rdsandiford@googlemail.com>
15099         PR target/51931
15100         * config/mips/mips-protos.h (mips_strip_unspec_address): Declare.
15101         * config/mips/mips.c (mips_strip_unspec_address): Make extern.
15102         (mips16_rewrite_pool_constant): Make a copy of the pool constant
15103         before adding to a PC-relative table.
15104         (mips16_lay_out_constants): Add a SPLIT_P parameter.
15105         (mips16_load_branch_target, mips16_split_long_branches): New functions.
15106         (mips_reorg): Update call to mips16_lay_out_constants.
15107         Call mips16_split_long_branches.
15108         * config/mips/predicates.md (pc_or_label_operand): Delete.
15109         * config/mips/mips.md (length): Add a calculation for MIPS16 branches.
15110         Move the extended_mips16 handling further down.
15111         (*branch_equality<mode>_mips16): Replace use pc_or_label_operand
15112         with explicit label_ref and pc.  Follow the usual operand numbering.
15113         (*branch_equality<mode>_mips16_inverted): New pattern.
15114         (*jump_mips16): Add length attribute.
15115         (indirect_jump_and_restore_<mode>): New pattern.
15116         (consttable_int): Call mips_strip_unspec_address on the operand.
15118 2012-08-02  Richard Sandiford  <rdsandiford@googlemail.com>
15120         * recog.c (split_insn): Copy the original SET_SRC before using
15121         it as a note.
15123 2012-08-02  Richard Sandiford  <rdsandiford@googlemail.com>
15125         * reorg.c (dbr_schedule): Delete REG_BR_PRED loop.
15127 2012-08-02  Marc Glisse  <marc.glisse@inria.fr>
15129         PR tree-optimization/53805
15130         * fold-const.c (invert_tree_comparison): Invert ORDERED_EXPR and
15131         UNORDERED_EXPR even for trapping floating point.
15133 2012-08-02  H.J. Lu  <hongjiu.lu@intel.com>
15135         PR middle-end/53321
15136         PR middle-end/53865
15137         * ipa-inline-analysis.c (inline_free_summary): Return if
15138         inline_edge_summary_vec is NULL.
15140         * ipa-split.c (execute_split_functions): Check if a function
15141         is inlinable only if inline_edge_summary_vec != NULL.
15143         * ipa.c (symtab_remove_unreachable_nodes): Restore
15144         cgraph_propagate_frequency call when something was changed.
15145         (free_inline_summary): New function.
15146         (pass_ipa_free_inline_summary): New pass.
15148         * passes.c (init_optimization_passes): Add
15149         pass_ipa_free_inline_summary before pass_ipa_tree_profile.
15151         * timevar.def (TV_IPA_FREE_INLINE_SUMMARY): New.
15153         * tree-pass.h (pass_ipa_free_inline_summary): New.
15155 2012-08-02  Richard Earnshaw  <rearnsha@arm.com>
15157         * arm.c (arm_gen_constant): Use UBFX for some AND operations when
15158         available.
15160 2012-08-02  Richard Guenther  <rguenther@suse.de>
15162         * tree-into-ssa.c (struct common_info_d): New struct.
15163         (struct var_info_d, struct ssa_name_info): Use it.
15164         (get_ssa_name_ann): Adjust.
15165         (get_phi_state, set_phi_state): Remove.
15166         (get_common_info): New function.
15167         (get_current_def, set_current_def): Adjust.
15168         (get_def_blocks_for): Take a common info as param.
15169         (set_def_block): Call get_common_info once.
15170         (set_livein_block): Likewise.
15171         (find_def_blocks_for): Adjust.
15172         (insert_phi_nodes): Likewise.
15173         (register_new_def): Call get_common_info once.
15174         (get_reaching_def): Likewise.
15175         (rewrite_debug_stmt_uses): Likewise.
15176         (rewrite_leave_block): Likewise.
15177         (dump_currdefs): Likewise.
15178         (debug_var_infos_r): Adjust.
15179         (register_new_update_single): Call get_common_info once.
15180         (maybe_replace_use_in_debug_stmt): Likewise.
15181         (rewrite_update_leave_block): Likewise.
15182         (mark_use_interesting): Adjust.
15183         (create_new_def_for): Likewise.
15184         (update_ssa): Likewise.
15186 2012-08-02  Michael Matz  <matz@suse.de>
15188         * tree-ssa-live.c (set_is_used): Return a bool.
15189         (mark_all_vars_used): Don't take data argument.
15190         (mark_all_vars_used_1): Adjust calls to above, merge handling
15191         of local and global vars.
15192         (remove_unused_scope_block_p): Don't take global_unused_vars,
15193         merge handling of local and global vars.
15194         (remove_unused_locals): Don't allocate/fill/pass global_unused_vars,
15195         use is_used_p for local and global vars.
15197 2012-08-02  Richard Guenther  <rguenther@suse.de>
15199         * tree-flow.h (make_rename_temp): Remove.
15200         * tree-dfa.c (make_rename_temp): Likewise.
15201         * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
15202         instead of make_rename_temp.
15203         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
15204         expand_omp_atomic_pipeline): Likewise.
15205         * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
15206         build_tm_store, expand_call_tm, expand_transaction,
15207         ipa_tm_insert_gettmclone_call): Likewise.
15208         * tree-complex.c (expand_complex_div_wide): Likewise.
15209         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
15210         Likewise.
15211         * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
15212         Likewise.
15213         * tree-ssa-math-opts.c (insert_reciprocals): Likewise.
15214         * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
15215         gimple_mod_subtract): Likewise.
15217 2012-08-02  Richard Guenther  <rguenther@suse.de>
15219         * tree-flow.h (set_default_def): Rename to ...
15220         (set_ssa_default_def): ... this.  Take a struct function argument.
15221         (gimple_default_def): Rename to ...
15222         (ssa_default_def): ... this.
15223         (get_or_create_ssa_default_def): New function.
15224         * tree-dfa.c: Likewise.
15225         (dump_variable): Adjust.
15226         * ipa-prop.c (ipa_analyze_params_uses): Adjust, properly check
15227         for used parameters.
15228         * ipa-split.c (consider_split): Adjust, avoid repeated default-def
15229         lookups.
15230         (split_function): Likewise.
15231         * lto-streamer-in.c (input_ssa_names): Adjust.
15232         * omp-low.c (expand_omp_taskreg): Likewise.
15233         * tree-cfg.c (replace_ssa_name): Adjust, no need to push/pop cfun.
15234         * tree-complex.c (init_parameter_lattice_values): Adjust.
15235         (get_component_ssa_name): Likewise.
15236         (update_parameter_components): Likewise.
15237         * tree-inline.c (remap_ssa_name): Likewise.
15238         (setup_one_parameter): Likewise.
15239         (initialize_inlined_parameters): Likewise.
15240         (declare_return_variable): Likewise.
15241         (expand_call_inline): Likewise.
15242         (tree_function_versioning): Likewise.
15243         * tree-into-ssa.c (get_default_def_for): Remove.
15244         (get_reaching_def): Use get_or_create_ssa_default_def instead.
15245         * tree-predcom.c (replace_ref_with): Adjust.
15246         * tree-sra.c (get_repl_default_def_ssa_name): Likewise.
15247         (is_unused_scalar_param): Likewise.
15248         (ptr_parm_has_direct_uses): Likewise.
15249         (sra_ipa_reset_debug_stmts): Likewise.
15250         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust.
15251         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Likewise.
15252         * tree-ssa-live.c (verify_live_on_entry): Likewise.
15253         * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise,
15254         avoid repeated default def lookups.
15255         * tree-ssa-sccvn.c (run_scc_vn): Likewise.
15256         * tree-tailcall.c (arg_needs_copy_p): Adjust.
15257         (tree_optimize_tail_calls_1): Likewise.
15259 2012-08-02  Richard Guenther  <rguenther@suse.de>
15261         PR tree-optimization/50672
15262         Revert
15263         2012-08-01  Richard Guenther  <rguenther@suse.de>
15265         * tree-ssa-tail-merge.c (release_last_vdef): Remove.
15266         (replace_block_by): Adjust.
15268 2012-08-02  Richard Guenther  <rguenther@suse.de>
15270         * tree-dfa.c (referenced_var_lookup): Remove.
15271         (find_referenced_vars): Remove.
15272         (pass_referenced_vars): Likewise.
15273         (make_rename_temp): Do not add referenced vars.
15274         (dump_referenced_vars): Remove.
15275         (debug_referenced_vars): Likewise.
15276         (dump_dfa_stats): Do not dump referenced var stats.
15277         (find_vars_r): Remove.
15278         (find_referenced_vars_in): Likewise.
15279         (referenced_var_check_and_insert): Likewise.
15280         (add_referenced_var_1): Likewise.
15281         (remove_referenced_var): Likewise.
15282         * tree-flow.h (referenced_var_lookup): Likewise.
15283         (struct gimple_df): Remove referenced_vars member.
15284         (typedef referenced_var_iterator): Remove.
15285         (FOR_EACH_REFERENCED_VAR): Likewise.
15286         (num_referenced_vars): Likewise.
15287         (debug_referenced_vars, dump_referenced_vars): Likewise.
15288         (add_referenced_var_1, add_referenced_var): Likewise.
15289         (remove_referenced_var): Likewise.
15290         (find_referenced_vars_in): Likewise.
15291         * tree-flow-inline.h (gimple_referenced_vars): Remove.
15292         (first_referenced_var): Likewise.
15293         (end_referenced_vars_p): Likewise.
15294         (next_referenced_var): Likewise.
15295         * cfgexpand.c (update_alias_info_with_stack_vars): Remove assert.
15296         * gimple-pretty-print.c (pp_points_to_solution): Dump UIDs
15297         unconditionally.
15298         * tree-into-ssa.c (dump_decl_set): Likewise.
15299         (pass_build_ssa): Do not require PROP_referenced_vars.
15300         * tree-ssa.c (target_for_debug_bind): Virtual operands are
15301         not suitable, but all register type vars are.
15302         (init_tree_ssa): Do not allocate referenced vars.
15303         (delete_tree_ssa): Do not free referenced vars.
15304         * cgraphunit.c (init_lowered_empty_function): Do not set
15305         PROP_referenced_vars.
15306         (assemble_thunk): Do not add referenced vars.
15307         * gimple-fold.c (canonicalize_constructor_val): Likewise.
15308         (gimplify_and_update_call_from_tree): Likewise.
15309         * gimple-streamer-in.c (input_bb): Likewise.
15310         * passes.c (init_optimization_passes): Do not run
15311         pass_referenced_vars.
15312         (dump_properties): Do not dump PROP_referenced_vars.
15313         * tree-inline.c (remap_decl): Do not add referenced vars.
15314         (remap_gimple_op_r): Likewise.
15315         (copy_tree_body_r): Likewise.
15316         (copy_bb): Likewise.
15317         (setup_one_parameter): Likewise.
15318         (declare_return_variable): Likewise.
15319         (copy_decl_for_dup_finish): Likewise.
15320         (copy_arguments_for_versioning): Likewise.
15321         (tree_function_versioning): Likewise.
15322         * tree-pass.h (PROP_referenced_vars): Remove.
15323         (pass_referenced_vars): Likewise.
15324         * tree-profile.c (gimple_gen_edge_profiler): Do not add
15325         referenced vars.
15326         (gimple_gen_interval_profiler): Likewise.
15327         (gimple_gen_pow2_profiler): Likewise.
15328         (gimple_gen_one_value_profiler): Likewise.
15329         (gimple_gen_ic_profiler): Likewise.
15330         (gimple_gen_average_profiler): Likewise.
15331         (gimple_gen_ior_profiler): Likewise.
15332         * tree-ssa-live.c (remove_unused_locals): Do not touch referenced vars.
15333         * tree-cfg.c (replace_ssa_name): Do not add referenced vars.
15334         (move_stmt_op): Likewise.
15335         * tree-ssa-operands.c (create_vop_var): Likewise.
15336         * gimple-low.c (record_vars_into): Likewise.
15337         * gimplify.c (gimple_regimplify_operands): Likewise.
15338         (force_gimple_operand_1): Likewise.
15339         * omp-low.c (expand_omp_for_generic): Likewise.
15340         (expand_omp_for_static_chunk): Likewise.
15341         (expand_omp_atomic_pipeline): Likewise.
15342         * graphite-clast-to-gimple.c (graphite_create_new_loop): Likewise.
15343         (translate_clast_assignment): Likewise.
15344         * graphite-sese-to-poly.c (create_zero_dim_array): Likewise.
15345         (handle_scalar_deps_crossing_scop_limits): Likewise.
15346         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
15347         * ipa-split.c (split_function): Likewise.
15348         * matrix-reorg.c (transform_access_sites): Likewise.
15349         * trans-mem.c (tm_log_add): Likewise.
15350         (ipa_tm_insert_gettmclone_call): Likewise.
15351         * tree-complex.c (create_one_component_var): Likewise.
15352         * tree-if-conv.c (ifc_temp_var): Likewise.
15353         * tree-parloops.c (take_address_of): Likewise.
15354         (initialize_reductions): Likewise.
15355         (separate_decls_in_region_name): Likewise.
15356         (create_call_for_reduction_1): Likewise.
15357         (separate_decls_in_region): Likewise.
15358         * tree-predcom.c (predcom_tmp_var): Likewise.
15359         (reassociate_to_the_same_stmt): Likewise.
15360         * tree-sra.c (build_ref_for_offset): Likewise.
15361         (create_access_replacement): Likewise.
15362         (get_replaced_param_substitute): Likewise.
15363         (sra_ipa_reset_debug_stmts): Likewise.
15364         * tree-ssa-loop-im.c (rewrite_reciprocal): Likewise.
15365         (rewrite_bittest): Likewise.
15366         * tree-ssa-loop-ivopts.c (create_new_iv): Likewise.
15367         * tree-ssa-loop-manip.c (create_iv): Likewise.
15368         (tree_transform_and_unroll_loop): Likewise.
15369         * tree-ssa-math-opts.c (powi_as_mults): Likewise.
15370         (build_and_insert_call): Likewise.
15371         (gimple_expand_builtin_cabs): Likewise.
15372         (execute_optimize_bswap): Likewise.
15373         * tree-ssa-phiopt.c (conditional_replacement): Likewise.
15374         (abs_replacement): Likewise.
15375         (cond_store_replacement): Likewise.
15376         (cond_if_else_store_replacement_1): Likewise.
15377         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
15378         * tree-ssa-pre.c (get_representative_for): Likewise.
15379         (create_expression_by_pieces): Likewise.
15380         (insert_into_preds_of_block): Likewise.
15381         * tree-ssa-propagate.c (update_call_from_tree): Likewise.
15382         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
15383         (eliminate_redundant_comparison): Likewise.
15384         (rewrite_expr_tree_parallel): Likewise.
15385         (get_reassoc_pow_ssa_name): Likewise.
15386         * tree-ssa-strlen.c (get_string_length): Likewise.
15387         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
15388         (build_arrays): Likewise.
15389         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
15390         (create_tailcall_accumulator): Likewise.
15391         * tree-vect-data-refs.c (vect_get_new_vect_var): Likewise.
15392         (vect_create_addr_base_for_vector_ref): Likewise.
15393         (vect_permute_store_chain): Likewise.
15394         (vect_permute_load_chain): Likewise.
15395         * tree-vect-generic.c (expand_vector_divmod): Likewise.
15396         * tree-vect-loop-manip.c (set_prologue_iterations): Likewise.
15397         (vect_build_loop_niters): Likewise.
15398         (vect_generate_tmps_on_preheader): Likewise.
15399         (vect_update_ivs_after_vectorizer): Likewise.
15400         (vect_gen_niters_for_prolog_loop): Likewise.
15401         (vect_do_peeling_for_alignment): Likewise.
15402         (vect_create_cond_for_align_checks): Likewise.
15403         * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
15404         (vect_handle_widen_op_by_const): Likewise.
15405         (vect_operation_fits_smaller_type): Likewise.
15406         (vect_recog_over_widening_pattern): Likewise.
15407         * tree-vect-stmts.c (vect_init_vector): Likewise.
15409 2012-08-01  Alexandre Oliva  <aoliva@redhat.com>
15411         PR debug/52983
15412         * valtrack.c (dead_debug_insert_temp): Use cleanup_auto_inc_dec.
15414 2012-08-01  Alexandre Oliva  <aoliva@redhat.com>
15416         PR debug/52983
15417         * valtrack.c (cleanup_auto_inc_dec): Implement unconditionally,
15418         falling back to copy_rtx on non-autoinc machines.
15419         (propagate_for_debug_subst): Always use cleanup_auto_inc_dec.
15421 2012-08-01  Alexandre Oliva  <aoliva@redhat.com>
15423         PR debug/52983
15424         * valtrack.h, valtrack.c: New.
15425         * Makefile.in (VALTRACK_H): New.
15426         (OBJS): Add valtrack.o.
15427         (valtrack.o): New.
15428         (cselib.o, dce.o, df-problems.o, combine.o): Add VALTRACK_H.
15429         * combine.c: Include valtrack.h.
15430         (make_compound_operation): Publish.
15431         (cleanup_auto_inc_dec): Move to valtrack.c.
15432         (struct rtx_subst_pair, propagate_for_debug_subst): Likewise.
15433         (propagate_for_debug): Likewise.  Add this_basic_block parameter.
15434         Adjust all callers.
15435         * cselib.c: Include valtrack.h.
15436         * dce.c: Likewise.
15437         * df-problems.c: Likewise.
15438         (dead_debug_init, dead_debug_reset_uses): Move to valtrack.c.
15439         (dead_debug_finish, dead_debug_add): Likewise.
15440         (dead_debug_insert_temp): Likewise.
15441         * df.h (struct dead_debug_use): Move to valtrack.h.
15442         (struct dead_debug, enum debug_temp_where): Likewise.
15443         (dead_debug_init, dead_debug_reset_uses): Move to valtrack.h.
15444         (dead_debug_finish, dead_debug_add): Likewise.
15445         (dead_debug_insert_temp): Likewise.
15446         * rtl.h (make_compound_operation): Declare.
15448 2012-08-01  Catherine Moore  <clm@codesourcery.com>
15449             Sandra Loosemore  <sandra@codesourcery.com>
15451         * config/mips/mips-cpus.def (34kn): New.
15452         * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Add 34kn.
15453         (BASE_DRIVER_SELF_SPECS): Do not imply -mdsp for the 34kn.
15454         * config/mips/mips-tables.opt: Regenerate.
15455         * doc/invoke.texi (MIPS Options): Document -march=34kn.
15457 2012-08-01  Richard Henderson  <rth@redhat.com>
15459         * expmed.h (NUM_MODE_PARTIAL_INT): New.
15460         (NUM_MODE_VECTOR_INT, NUM_MODE_IP_INT, NUM_MODE_IPV_INT): New.
15461         (struct expmed_op_cheap): Size one array on NUM_MODE_IPV_INT.
15462         (struct expmed_op_costs): Likewise.
15463         (struct target_expmed): Size x_convert_cost on NUM_MODE_IP_INT.
15464         (expmed_mode_index): New.
15465         (expmed_op_cheap_ptr, expmed_op_cost_ptr): Use expmed_mode_index.
15466         (convert_cost_ptr): Likewise.
15467         * expmed.c (struct init_expmed_rtl): Rename convert to trunc.
15468         (init_expmed_one_conv): Split out from ...
15469         (init_expmed_one_mode): ... here.  Iterate conversions over
15470         partial integer modes too.
15471         (init_expmed): Iterate over partial integer modes too.
15473 2012-08-01  Richard Henderson  <rth@redhat.com>
15475         * config/m32c/m32c.c (TARGET_INIT_LIBFUNCS): Remove.
15476         (m32c_init_libfuncs): Remove.
15477         * config/m32c/cond.md (cstore<QHPSI>4_16): Rename from cstore<QHPSI>4.
15478         (cstore<QHPSI>4): New expander.
15480 2012-08-01  Richard Guenther  <rguenther@suse.de>
15482         * tree-flow-inline.h (referenced_var): Remove.
15483         * tree-ssa-coalesce.c (create_outofssa_var_map): Remove duplicate
15484         checking code.
15485         * tree-sra.c (candidates): New global hashtable.
15486         (candidate): New function.
15487         (sra_initialize): Initialize candidates.
15488         (sra_deinitialize): Free candidates.
15489         (disqualify_candidate): Remove candidate from candidates.
15490         (maybe_add_sra_candidate): New function.
15491         (find_var_candidates): Walk over all local decls and parameters,
15492         add candidates to candidates hashtable.
15493         (find_param_candidates): Add candidates to candidates hashtable.
15494         (analyze_all_variable_accesses): Use candidate instead of
15495         referenced_var.
15497 2012-08-01  Tom de Vries  <tom@codesourcery.com>
15499         * tree-vrp.c (find_case_label_ranges): New function.
15500         (vrp_visit_switch_stmt, simplify_switch_using_ranges): Use
15501         find_case_label_ranges instead of find_case_label_range.  Handle second
15502         range.
15504 2012-08-01  Michael Matz  <matz@suse.de>
15506         * tree-complex.c (init_parameter_lattice_values): Don't call var_ann.
15507         * tree-dfa.c (struct dfa_stats_d): Remove num_var_anns member.
15508         (dump_dfa_stats): Don't dump stats about var anns.
15509         (collect_dfa_stats): Don't collect them.
15510         (add_referenced_var_1): Don't set var annotation pointers.
15511         (remove_referenced_var): Ditto, and only remove it it's in the
15512         hash table.
15514         * tree-flow-inline.h (var_ann): Remove.
15515         * tree-flow.h (struct var_ann_d, var_ann_t): Remove.
15517         * tree-inline.c (remapped_type): Remove.
15518         (can_be_nonlocal): Most variable will be considered live here,
15519         return false earlier.
15520         (remap_decls): Don't call var_ann, all variables will be considered
15521         referenced here.
15522         (copy_debug_stmt): Ditto, and use is_global_var.
15524         * tree-into-ssa.c (rewrite_debug_stmt_uses): Use get_current_def to
15525         determine if a variable was referred to, not var_ann.
15526         * tree-ssa-live.c (remove_unused_scope_block_p): Don't check var_ann.
15527         (remove_unused_locals): Ditto.
15528         * tree-ssa.c (delete_tree_ssa): Don't free/clear var ann pointers.
15529         * tree-tailcall.c (arg_needs_copy_p): Don't check var_ann.
15530         * tree.c (copy_node_stat): Don't clear var ann pointer.
15531         * tree.h (tree_result_decl, tree_parm_decl, tree_var_decl): Remove
15532         ann member.
15533         (DECL_VAR_ANN_PTR): Remove.
15535 2012-08-01  Michael Matz  <matz@suse.de>
15537         * tree-flow.h (struct var_ann_d): Rename used member.
15538         (set_is_used): Don't declare.
15539         * tree-flow-inline.h (clear_is_used): Remove.
15540         (set_is_used, is_used_p): Move to ...
15541         * tree-ssa-live.c (set_is_used, is_used_p): ... here, and use
15542         on the side bitmap.
15543         (usedvars): New bitmap.
15544         (dump_scope_block): Don't dump unusedness.
15545         (remove_unused_locals): Allocate and free usedvars.
15546         * tree-nrv.c (tree_nrv): Don't clear used flags here.
15548 2012-08-01  Michael Matz  <matz@suse.de>
15550         * tree-flow.h (struct var_ann_d): Remove base_var_processed and
15551         base_index members.
15552         * tree-ssa-live.h (struct _var_map): Remove basevars member.
15553         (VAR_ANN_BASE_INDEX): Remove.
15554         * tree-ssa-live.c (var_map_base_init): Use a hash table instead
15555         of var annotation to compress index space.  Don't deal with above
15556         removed members.
15557         (var_map_base_fini): Don't free basevars.
15558         (init_var_map): Don't clear basevars.
15560 2012-08-01  Bill Schmidt  <wschmidt@linux.ibm.com>
15562         * gimple-ssa-strength-reduction.c (struct slsr_cand_d): Change
15563         base_name to base_expr.
15564         (struct cand_chain_d): Likewise.
15565         (base_cand_hash): Likewise.
15566         (base_cand_eq): Likewise.
15567         (record_potential_basis): Likewise.
15568         (alloc_cand_and_find_basis): Likewise.
15569         (create_mul_ssa_cand): Likewise.
15570         (create_mul_imm_cand): Likewise.
15571         (create_add_ssa_cand): Likewise.
15572         (create_add_imm_cand): Likewise.
15573         (slsr_process_cast): Likewise.
15574         (slsr_process_copy): Likewise.
15575         (dump_candidate): Likewise.
15576         (base_cand_dump_callback): Likewise.
15577         (unconditional_cands_with_known_stride_p): Likewise.
15578         (cand_increment): Likewise.
15580 2012-08-01  Bill Schmidt  <wschmidt@linux.ibm.com>
15582         PR tree-optimization/46556
15583         * gimple-ssa-strength-reduction.c (enum cand_kind): Add CAND_REF.
15584         (base_cand_map): Change to hash table.
15585         (base_cand_hash): New function.
15586         (base_cand_free): Likewise.
15587         (base_cand_eq): Likewise.
15588         (lookup_cand): Change base_cand_map to hash table.
15589         (find_basis_for_candidate): Likewise.
15590         (base_cand_from_table): Exclude CAND_REF.
15591         (restructure_reference): New function.
15592         (slsr_process_ref): Likewise.
15593         (find_candidates_in_block): Call slsr_process_ref.
15594         (dump_candidate): Handle CAND_REF.
15595         (base_cand_dump_callback): New function.
15596         (dump_cand_chains): Change base_cand_map to hash table.
15597         (replace_ref): New function.
15598         (replace_refs): Likewise.
15599         (analyze_candidates_and_replace): Call replace_refs.
15600         (execute_strength_reduction): Change base_cand_map to hash table.
15602 2012-08-01  Uros Bizjak  <ubizjak@gmail.com>
15604         * config/i386/i386.c (ix86_address_subreg_operand): Reject
15605         stack pointer.
15606         (ix86_print_operand_address): Assert that parts.base and parts.index
15607         are non-NULL after call to simplify_subreg.
15609 2012-08-01  Richard Guenther  <rguenther@suse.de>
15611         * doc/tree-ssa.texi: Remove pieces mentioning mark_sym_for_renaming.
15613 2012-08-01  Richard Guenther  <rguenther@suse.de>
15615         * graphite-clast-to-gimple.c (translate_clast_user): Rename
15616         virtual operands.
15617         * sese.c (graphite_copy_stmts_from_block): Do not rename virtual
15618         operands here.
15619         * tree-call-cdce.c (tree_call_cdce): Use
15620         mark_virtual_operands_for_renaming.
15621         * tree-eh.c (sink_clobbers): Simplify.
15622         * tree-flow.h (mark_sym_for_renaming): Remove.
15623         (mark_virtual_operands_for_renaming): New function.
15624         * tree-if-conv.c (tree_if_conversion): Use
15625         mark_virtual_operands_for_renaming.
15626         * tree-inline.c (update_ssa_across_abnormal_edges): Likewise.
15627         * tree-into-ssa.c (mark_sym_for_renaming): Remove.
15628         (mark_virtual_operands_for_renaming): New function.
15629         * tree-loop-distribution.c (tree_loop_distribution): Use
15630         mark_virtual_operands_for_renaming.
15631         * tree-ssa-dce.c (mark_virtual_operand_for_renaming): Do not
15632         update stmts, use mark_virtual_operands_for_renaming.
15633         * tree-ssa-tail-merge.c (release_last_vdef): Remove.
15634         (replace_block_by): Adjust.
15635         (tail_merge_optimize): Use mark_virtual_operands_for_renaming.
15636         * tree-tailcall.c (tree_optimize_tail_calls_1): Use
15637         mark_virtual_operands_for_renaming.
15638         * tree-vect-slp.c (vect_slp_transform_bb): Likewise.
15639         * tree-vectorizer.c (vectorize_loops): Likewise.
15641 2012-08-01  Richard Guenther  <rguenther@suse.de>
15643         * tree-flow.h (struct gimple_df): Remove syms_to_rename member,
15644         add ssa_renaming_needed and rename_vops flags.
15645         (SYMS_TO_RENAME): Remove.
15646         (symbol_marked_for_renaming): Likewise.
15647         (mark_virtual_ops_for_renaming): Likewise.
15648         * tree-into-ssa.c (symbols_to_rename_set, symbols_to_rename):
15649         New globals.
15650         (mark_for_renaming, marked_for_renaming): New functions.
15651         (symbol_marked_for_renaming): Remove.
15652         (dump_currdefs): Adjust.
15653         (maybe_replace_use): Likewise.
15654         (maybe_replace_use_in_debug_stmt): Likewise.
15655         (maybe_register_def): Likewise.
15656         (rewrite_update_phi_arguments): Likewise.
15657         (rewrite_update_enter_block): Likewise.
15658         (fini_ssa_renamer): Clear update SSA status here ...
15659         (delete_update_ssa): ... not here.  Free rename set.
15660         (prepare_block_for_update): Compute which decls need renaming.
15661         (dump_update_ssa): Adjust.
15662         (mark_sym_for_renaming): Adjust update SSA status for virtuals.
15663         (need_ssa_update_p): Adjust.
15664         (insert_updated_phi_nodes_for): Likewise.
15665         (update_ssa): Likewise.
15666         * tree-ssa-operands.c (finalize_ssa_defs): Adjust update SSA status
15667         for virtual and real operands.
15668         (finalize_ssa_uses): Likewise.
15669         * tree-ssanames.c (init_ssanames): Adjust.
15670         * tree-ssa.c (maybe_rewrite_mem_ref_base, maybe_optimize_var,
15671         execute_update_addresses_taken): Add bitmap to keep track of which
15672         candidates are suitable for rewriting and later renaming by SSA update.
15673         * matrix-reorg.c (transform_access_sites): Do not rename all defs.
15674         * tree-dfa.c (make_rename_temp): Do not mark real operands for
15675         renaming.
15676         * cgraphunit.c (assemble_thunk): Likewise.
15677         * gimplify.c (gimple_regimplify_operands): Likewise.
15678         (force_gimple_operand_1): Likewise.
15679         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
15680         * tree-inline.c (declare_return_variable): Likewise.
15681         * tree-parloops.c (separate_decls_in_region_stmt): Do not call
15682         mark_virtual_ops_for_renaming.
15683         (create_stores_for_reduction): Likewise.
15684         (create_loads_and_stores_for_name): Likewise.
15685         * tree-predcom.c (mark_virtual_ops_for_renaming): Remove.
15686         (initialize_root_vars_lm): Do not call mark_virtual_ops_for_renaming.
15687         (execute_load_motion): Likewise.
15688         (remove_stmt): Likewise.
15689         (execute_pred_commoning_chain): Likewise.
15690         * tree-sra.c (create_access_replacement): Do not rename real operands.
15691         (get_unrenamed_access_replacement): Unify with ...
15692         (get_access_replacement): ... this.
15693         (get_repl_default_def_ssa_name): Adjust.
15694         * tree-ssa-loop-im.c (move_computations_stmt): Manually update
15695         virtual SSA form.
15696         (rewrite_mem_ref_loc): Do not call mark_virtual_ops_for_renaming.
15697         * tree-ssa-loop-prefetch.c (emit_mfence_after_loop): Likewise.
15699 2012-07-31  DJ Delorie  <dj@redhat.com>
15701         * config/s390/s390.c (s390_option_override): Disable DWARF 3/4
15702         extensions for TPF, unless specifically selected.
15704 2012-08-01  Alan Modra  <amodra@gmail.com>
15706         PR target/54131
15707         * config/rs6000/rs6000.c (mem_operand_gpr): Don't limit range
15708         of lo_sum offsets.  Comment.  Assert mode at least word size
15709         rather than bypassing powerpc64 word offset check.
15711 2012-07-31  Bill Schmidt  <wschmidt@linux.ibm.com>
15713         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
15714         costs for vec_perm and vec_promote_demote down to more natural values.
15715         (struct _rs6000_cost_data): New data structure.
15716         (rs6000_density_test): New function.
15717         (rs6000_init_cost): Change to use rs6000_cost_data.
15718         (rs6000_add_stmt_cost): Likewise.
15719         (rs6000_finish_cost): Perform density test when vectorizing a loop.
15721 2012-07-31  Steven Bosscher  <steven@gcc.gnu.org>
15723         * sched-vis.c (print_exp): Handle FMA explicitly.  Simplify handling
15724         of RTX_UNARY function-like operations.  Print unknown expression
15725         RTX classes as pseudo-functions.
15726         (print_pattern): Simplify return pattern printing.
15727         (dump_insn_slim): Print the value of notes as a pattern for proper
15728         printing of CFA notes.
15730 2012-07-31  Dehao Chen  <dehao@google.com>
15732         * predict.c (tree_estimate_probability_driver): Normalize the
15733         loop when initializing the loop optimizer.
15735 2012-07-31  Richard Guenther  <rguenther@suse.de>
15737         * tree-flow.h (struct var_ann_d): Remove need_phi_state
15738         and current_def members.
15739         * tree-into-ssa.c (struct def_blocks_d): Remove var member.
15740         (def_blocks): Remove.
15741         (struct var_info_d): New.
15742         (var_infos): New hashtable.
15743         (struct ssa_name_info): Add def_blocks member.
15744         (get_ssa_name_ann): Adjust.
15745         (get_var_info): New function.
15746         (get_phi_state, set_phi_state, get_current_def,
15747         set_current_def, get_def_blocks_for, find_def_blocks_for): Adjust.
15748         (insert_phi_nodes_compare_def_blocks): Rename to ...
15749         (insert_phi_nodes_compare_var_infos): ... this and adjust.
15750         (insert_phi_nodes): Adjust.
15751         (dump_tree_ssa, dump_tree_ssa_stats): Adjust.
15752         (def_blocks_hash, def_blocks_eq, def_blocks_free): Remove.
15753         (debug_def_blocks_r): Rename to ...
15754         (debug_var_infos_r): ... this and adjust.
15755         (var_info_hash): New function.
15756         (var_info_eq): Likewise.
15757         (rewrite_blocks): Adjust.
15758         (init_ssa_renamer): Likewise.
15759         (fini_ssa_renamer): Likewise.
15760         (delete_update_ssa): Likewise.
15761         (update_ssa): Likewise.
15762         * tree-ssanames.c (release_dead_ssa_names): Do not clear current defs.
15764 2012-07-31  Bill Schmidt  <wschmidt@linux.ibm.com>
15766         PR tree-optimization/53773
15767         * tree-vectorizer.h (struct _loop_vec_info): Add operands_swapped.
15768         (LOOP_VINFO_OPERANDS_SWAPPED): New macro.
15769         * tree-vect-loop.c (new_loop_vec_info): Initialize
15770         LOOP_VINFO_OPERANDS_SWAPPED field.
15771         (destroy_loop_vec_info): Restore canonical form.
15772         (vect_is_slp_reduction): Set LOOP_VINFO_OPERANDS_SWAPPED field.
15773         (vect_is_simple_reduction_1): Likewise.
15775 2012-07-31  Steven Bosscher  <steven@gcc.gnu.org>
15777         * sched-vis.c (dump_insn_slim): Print print_rtx_head at the
15778         start of each new line.
15779         * final.c (final_scan_insn): If the final dump is requested as
15780         slim RTL, dump slim RTL to the assembly file also.
15782 2012-07-31  Andrey Belevantsev  <abel@ispras.ru>
15784         PR target/53975
15786         * sel-sched-ir.c (has_dependence_note_reg_use): Clarify comment.
15788         Revert
15789         2011-08-04  Sergey Grechanik  <mouseentity@ispras.ru>
15791         * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
15792         only if producer writes to the register given by regno.
15794 2012-07-31  Nick Clifton  <nickc@redhat.com>
15796         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Add
15797         support for reporting stack usage.
15799         * config/frv/frv.c (QUAD): Fix typo.
15800         (frv_expand_prologue): Report stack usage.
15802 2012-07-31  Steven Bosscher  <steven@gcc.gnu.org>
15804         PR pch/53880
15805         * gengtype.c (struct walk_type_data): Add have_this_obj field.
15806         (walk_type): For functions that take a this_obj argument and
15807         that process fields with a GTY((length)) argument, write the
15808         test that write_types_local_process_field will write also at the
15809         head of the loop, effectively unswitching the loop.
15810         (write_func_for_structure, write_local_func_for_structure): Clear
15811         have_this_obj before calling walk_type.
15812         (write_local_func_for_structure): Set have_this_obj before walk_type.
15813         (write_array): Set have_this_obj for output of local pointer walking
15814         functions but not for marker functions.
15815         (write_types_local_process_field): Assert have_this_obj is set.
15817         * rtl.h (simplify_using_condition): Adjust prototype using bitmap
15818         from coretypes.h.
15820 2012-07-30  Nathan Froyd  <froydnj@gcc.gnu.org>
15823         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15824         * targhooks.c (default_mode_dependent_address_p): Delete code
15825         for GO_IF_MODE_DEPENDENT_ADDRESS.
15826         * system.h (GO_IF_MODE_DEPENDENT_ADDRESS): Poison.
15827         * doc/tm.texi.in (GO_IF_MODE_DEPENDENT_ADDRESS): Delete documention.
15828         * doc/tm.texi: Regenerate.
15829         * config/alpha.h (GO_IF_MODE_DEPENDENT_ADDRESS): Move code to...
15830         * config/alpha.c (alpha_mode_dependent_address_p): ...here.  New
15831         function.
15832         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15833         * config/cr16/cr16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15834         * config/mep/mep.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15835         * config/vax/vax-protos.h (vax_mode_dependent_address_p): Delete.
15836         * config/vax/vax.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
15837         * config/vax/vax.c (vax_mode_dependent_address_p): Make static.
15838         Take a const_rtx.
15839         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15841 2012-07-30  Nathan Froyd  <froydnj@gcc.gnu.org>
15843         * expmed.h (NUM_MODE_VECTOR_INT): Define.
15844         (struct expmed_op_cheap, struct expmed_op_costs): New structures.
15845         (struct target_expmed): Convert x_mul_highpart_cost and
15846         x_mul_widen_cost fields to be indexed by integer modes.
15847         Convert x_sdiv_pow2_cheap and x_smod_pow2_cheap fields to be
15848         of type struct expmed_op_cheap.  Convert other cost fields to be
15849         of type struct_expmed_op_costs.
15850         (mul_widen_cost_ptr, mul_highpart_cost_ptr): Adjust for new
15851         indexing of respective fields.
15852         (expmed_op_cheap_ptr): New function.
15853         (sdiv_pow2_cheap_ptr, smod_pow2_cheap_ptr): Call it.
15854         (expmed_op_cost_ptr): New function.
15855         (add_cost_ptr, neg_cost_ptr, shift_cost_ptr, shiftadd_cost_ptr,
15856         shiftsub0_cost_ptr, shiftsub1_cost_ptr, mul_cost_ptr,
15857         sdiv_cost_ptr, udiv_cost_ptr): Call it.
15859 2012-07-30  Sandra Loosemore  <sandra@codesourcery.com>
15860             Julian Brown  <julian@codesourcery.com>
15862         * doc/invoke.texi (MIPS Options): Document -mno-float.
15863         * config/mips/mips.h (MIPS_ARCH_FLOAT_SPEC): Make it know
15864         about -mno-float.
15866 2012-07-30  Joseph Myers  <joseph@codesourcery.com>
15868         * doc/sourcebuild.texi (Subdirectories): Document common subdirectory.
15870 2012-07-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15872         PR middle-end/53823
15873         * expmed.c (expand_mult): Skip synth_mult for constant double op1 except
15874         for special cases.  Don't initialize coeff and is_neg.
15876 2012-07-30  Ulrich Weigand  <ulrich.weigand@linaro.org>
15877             Richard Earnshaw  <rearnsha@arm.com>
15879         * target.def (vector_alignment): New target hook.
15880         * doc/tm.texi.in (TARGET_VECTOR_ALIGNMENT): Document new hook.
15881         * doc/tm.texi: Regenerate.
15882         * targhooks.c (default_vector_alignment): New function.
15883         * targhooks.h (default_vector_alignment): Add prototype.
15884         * stor-layout.c (layout_type): Use targetm.vector_alignment.
15885         * config/arm/arm.c (arm_vector_alignment): New function.
15886         (TARGET_VECTOR_ALIGNMENT): Define.
15888         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use
15889         vector type alignment instead of size.
15890         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Use
15891         element type size directly instead of computing it from alignment.
15892         Fix variable naming and comment.
15894 2012-07-30  Kirill Yukhin  <kirill.yukhin@intel.com>
15895             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15897         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
15898         (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
15899         (ix86_handle_option): Handle mrdseed option.
15900         * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
15901         (x86_64-*-*): Likewise.
15902         * config/i386/prfchwintrin.h: New header.
15903         * config/i386/cpuid.h (bit_RDSEED): New.
15904         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
15905         RDSEED support.
15906         * config/i386/i386-c.c: Define __RDSEED__ if needed.
15907         * config/i386/i386.c (ix86_target_string): Define -mrdseed option.
15908         (PTA_RDSEED): New.
15909         (ix86_option_override_internal): Handle new option.
15910         (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
15911         (ix86_builtins): Add enum entries for RDSEED* builtins.
15912         (ix86_init_mmx_sse_builtins): Define new builtins.
15913         (ix86_expand_builtin): Expand RDSEED* builtins.
15914         * config/i386/i386.h (TARGET_RDSEED): New.
15915         * config/i386/i386.md (rdseed<mode>_1): New.
15916         * config/i386/i386.opt (mrdseed): New.
15917         * config/i386/x86intrin.h: Include rdseedintrin.h.
15919 2012-07-30  Richard Guenther  <rguenther@suse.de>
15921         * tree-into-ssa.c (mark_def_sites): Also process virtual operands.
15922         (rewrite_stmt): Likewise.
15923         (rewrite_enter_block): Likewise.
15924         (pass_build_ssa): Do not update virtual SSA form during TODO.
15925         (mark_symbol_for_renaming): Do nothing if we are not in SSA form.
15926         * lto-streamer-in.c (lto_read_body): Set in_ssa_p earlier.
15928 2012-07-30  Oleg Endo  <olegendo@gcc.gnu.org>
15930         PR target/39423
15931         * config/sh/sh.md (*movsi_index_disp, *movhi_index_disp): New
15932         insns.
15934 2012-07-30  Oleg Endo  <olegendo@gcc.gnu.org>
15936         PR target/51244
15937         * config/sh/sh.md (mov_neg_si_t): Move to Scc instructions section.
15938         Use t_reg_operand predicate.  Add split for negated case.
15939         (ashrsi2_31): Pass get_t_reg_rtx to gen_mov_neg_si_t.
15940         * config/sh/sh.c (expand_ashiftrt): Likewise.
15942 2012-07-30  Oleg Endo  <olegendo@gcc.gnu.org>
15944         PR target/54089
15945         * config/sh/sh.md (ashlsi3_d): Invoke gen_shifty_op directly instead
15946         of trying to emit ashlsi3_n.
15948 2012-07-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
15949             Steven Bosscher  <steven@gcc.gnu.org>
15951         * gengtype.c (adjust_field_type): Diagnose duplicate "length"
15952         option applications and option being applied to arrays of atomic types.
15953         (walk_type): Allow "atomic" option on strings too.
15954         * dwarf2out.h (struct dw_vec_struct): Use the "atomic" GTY option
15955         for the array field.
15956         * vec.h: Describe the atomic object "A" type of the macros in
15957         the header comment.
15958         (VEC_T_GTY_ATOMIC, DEF_VEC_A, DEF_VEC_ALLOC_A): Define.
15959         * emit-rtl.c (locations_locators_vals): use the atomic object vector.
15960         * doc/gty.texi: Clarify that GTY option "length" is only for
15961         arrays of non-atomic objects.  Fix typo in the description of the
15962         "atomic" option.
15964 2012-07-27  Uros Bizjak  <ubizjak@gmail.com>
15966         * config/i386/i386.c (ix86_avoid_lea_for_addr): Handle
15967         zero-extended addresses.  Return false if the address has less
15968         than two components.
15969         (ix86_split_lea_for_addr): Unconditionally convert target and
15970         all address operands to requested mode.
15971         * config/i386/i386.md (*lea<mode>): Recover operands from curr_insn.
15972         Pass SImode to ix86_split_lea_for_addr when splitting zero-extended
15973         address.
15974         (zero-extended add splitter): New splitter to conditionally split
15975         non-destructive adds.
15976         (*zero_extendsidi2_rex64): Conditionally emit leal instead of movl.
15978 2012-07-28  Alan Modra  <amodra@gmail.com>
15980         PR target/54093
15981         * config/rs6000/rs6000.c (rs6000_secondary_reload): Limit 32-bit
15982         multi-gpr reload to cases where predicate passes.  Do the same for
15983         64-bit multi-gpr reload.
15985 2012-07-27  Nathan Froyd  <froydnj@gcc.gnu.org>
15987         * expmed.h (alg_hash, alg_hash_used_p, sdiv_pow2_cheap,
15988         smod_pow2_cheap, zero_cost, add_cost, neg_cost, shift_cost)
15989         shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost,
15990         sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete
15991         macro definitions and re-purpose as inline functions.
15992         (alg_hash_entry_ptr, set_alg_hash_used_p, sdiv_pow2_cheap_ptr,
15993         set_sdiv_pow2_cheap, smod_pow2_cheap_ptr, set_smod_pow2_cheap,
15994         zero_cost_ptr, set_zero_cost, add_cost_ptr, set_add_cost,
15995         neg_cost_ptr, set_neg_cost, shift_cost_ptr, set_shift_cost,
15996         shiftadd_cost_ptr, set_shiftadd_cost, shiftsub0_cost_ptr,
15997         set_shiftsub0_cost, shiftsub1_cost_ptr, set_shiftsub1_cost,
15998         mul_cost_ptr, set_mul_cost, sdiv_cost_ptr, set_sdiv_cost,
15999         udiv_cost_ptr, set_udiv_cost, mul_widen_cost_ptr,
16000         set_mul_widen_cost, mul_highpart_cost_ptr, set_mul_highpart_cost):
16001         New functions.
16002         (convert_cost_ptr): New function, split out from...
16003         (set_convert_cost, convert_cost): ...here.
16004         * expmed.c, tree-ssa-loop-ivopts.c: Update for new functions.
16005         * gimple-ssa-strength-reduction.c: Likewise.
16007 2012-07-20  Ryan Mansfield  <rmansfield@qnx.com>
16009         * gcc.c (main): Move GCC_DRIVER_HOST_INITIALIZATION after
16010         diagnostic_initialize.
16012 2012-07-27  Oleg Endo  <olegendo@gcc.gnu.org>
16014         PR target/54089
16015         * config/sh/sh.c (shiftcosts): Remove case where first operand
16016         is a const_int.  Move COSTS_N_INSNS usage into caller ...
16017         (sh_rtx_costs) ... here.  Return false when shiftcosts cannot be
16018         calculated instead of MAX_COST.
16020 2012-07-27  Richard Guenther  <rguenther@suse.de>
16022         * tree-cfg.c (gimple_can_merge_blocks_p): Do more fine-grained
16023         check whether SSA form is not up-to-date.
16024         * tree-flow.h (name_mappings_registered_p): Remove.
16025         * tree-into-ssa.c (struct repl_map_d): Remove.
16026         (repl_tbl): Likewise.
16027         (struct ssa_name_info): Add repl_set member.
16028         (update_ssa_obstack): New static global.
16029         (get_ssa_name_ann): Initialize repl_set.
16030         (clear_ssa_name_info): Assert age did not wrap.
16031         (repl_map_hash, repl_map_eq, repl_map_free): Remove.
16032         (names_replaced_by): Adjust.
16033         (add_to_repl_tbl): Likewise.
16034         (dump_tree_ssa_stats): Likewise.
16035         (init_update_ssa): Initialize update_ssa_obstack.
16036         (delete_update_ssa): Free update_ssa_obstack.
16037         (name_mappings_registered_p): Remove.
16038         (update_ssa): Adjust.
16040 2012-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
16042         * config/rs6000/constraints.md: Delete "q" constraint.
16043         * config/rs6000/dfp.md (movsd_hardfloat, movsd_softfloat):
16044         Delete the "q" alternative.
16045         * config/rs6000/predicates.md (gpc_reg_operand): Adjust.
16046         * config/rs6000/rs6000.c (rs6000_debug_reg_global)
16047         (rs6000_init_hard_regno_mode_ok, rs6000_dbx_register_number):
16048         adjust to MQ_REGNO removal.
16049         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust
16050         comment.
16051         (REG_ALLOC_ORDER): Adjust comment.  Remove MQ from alloc order.
16052         (enum reg_class): Adjust comment.  Delete MQ_REGS.
16053         (REG_CLASS_CONTENTS): Adjust.
16054         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust comment.
16055         * config/rs6000/rs6000.md: Delete MQ_REGNO.
16056         (movsi_internal1, movsi_internal1_single, movhi_internal,
16057         movqi_internal, movcc_internal1, movsf_hardfloat,
16058         movsf_softfloat): Delete the "q" alternative.
16059         (ctr<mode>_internal1, ctr<mode>_internal2, ctr<mode>_internal5,
16060         ctr<mode>_internal6): Delete "q" constraint.
16062 2012-07-27  Richard Guenther  <rguenther@suse.de>
16064         * tree-into-ssa.c (def_blocks_p): New typedef.
16065         (insert_phi_nodes_compare_def_blocks): New function.
16066         (insert_phi_nodes): Do not walk over referenced vars, instead
16067         walk over recorded def_blocks, record relevant ones and sort
16068         them to avoid repeated hashtable lookups.
16070 2012-07-27  Richard Guenther  <rguenther@suse.de>
16072         * doc/invoke.texi (min-virtual-mappings, virtual-mappings-ratio):
16073         Remove param documentation.
16074         * params.def (PARAM_MIN_VIRTUAL_MAPPINGS,
16075         PARAM_VIRTUAL_MAPPINGS_TO_SYMS_RATIO): Remove.
16076         * tree-flow.h (mark_set_for_renaming): Remove.
16077         * tree-into-ssa.c (struct update_ssa_stats_d): Remove.
16078         (add_new_name_mapping): Remove bookkeeping code.
16079         (dump_update_ssa): Remove stats dumping code.
16080         (init_update_ssa): Remove stats allocation code.
16081         (delete_update_ssa): Remove stats freeing code.
16082         (mark_set_for_renaming): Remove.
16083         (switch_virtuals_to_full_rewrite_p): Likewise.
16084         (switch_virtuals_to_full_rewrite): Likewise.
16085         (update_ssa): Do not call switch_virtuals_to_full_rewrite.
16087 2012-07-27  Marek Polacek  <polacek@redhat.com>
16089         * cgraphunit.c: Rename varpool_finalize_variable to
16090         varpool_finalize_decl in a comment.
16092 2012-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
16094         * common/config/rs6000/rs6000-common.c (rs6000_handle_option):
16095         Delete code for -mno-power, -mpower, and -mpower2.
16096         * config/rs6000/aix43.h (NON_POWERPC_MASKS): Delete.
16097         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16098         with -maix64.
16099         (ASM_CPU_SPEC): Delete support for POWER and POWER2.
16100         * config/rs6000/aix51.h (NON_POWERPC_MASKS): Delete.
16101         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16102         with -maix64.
16103         (ASM_CPU_SPEC): Delete support for POWER and POWER2.
16104         * config/rs6000/aix52.h (NON_POWERPC_MASKS): Delete.
16105         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16106         with -maix64.
16107         (TARGET_POWER): Delete.
16108         * config/rs6000/aix53.h (NON_POWERPC_MASKS): Delete.
16109         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16110         with -maix64.
16111         (TARGET_POWER): Delete.
16112         * config/rs6000/aix61.h (NON_POWERPC_MASKS): Delete.
16113         (SUBTARGET_OVERRIDE_OPTIONS): Delete check for POWER together
16114         with -maix64.
16115         (TARGET_POWER): Delete.
16116         * config/rs6000/darwin.h (TARGET_POWER): Delete.
16117         * config/rs6000/driver-rs6000.c (struct asm_names): Delete
16118         support for -mpower, -mpower2, and -mno-power.
16119         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
16120         Likewise.
16121         (rs6000_cpu_cpp_builtins): Likewise.
16122         * config/rs6000/rs6000-cpus.def: Likewise.
16123         * config/rs6000/rs6000-tables.opt: Regenerate.
16124         * config/rs6000/rs6000.c (POWER_MASKS): Delete.
16125         (rs6000_option_override_internal): Adjust.
16126         (rs6000_conditional_register_usage): Adjust.
16127         (rs6000_emit_move): Adjust.
16128         (rs6000_common_init_builtins): Adjust.
16129         (rs6000_init_libfuncs): Adjust.
16130         (rs6000_output_function_prologue): Adjust.
16131         (rs6000_adjust_cost): Adjust.
16132         (struct rs6000_opt_masks): Delete MASK_POWER and MASK_POWER2.
16133         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
16134         POWER and POWER2.
16135         (TARGET_DEFAULT): Adjust.
16136         (PROCESSOR_POWER): Delete.
16137         (SHIFT_COUNT_TRUNCATED): Adjust.
16138         * config/rs6000/rs6000.md (extendqisi2): Delete POWER support.
16139         (extendqisi2_power): Delete.
16140         (extendqisi2_no_power): Adjust.
16141         (extendqihi2, extendqihi2_power, extendqihi2_no_power):
16142         Likewise.
16143         (sminsi3, smaxsi3, uminsi3, umaxsi3): Adjust.
16144         (anonymous doz insn patterns): Delete.
16145         (abssi2): Adjust.
16146         (abssi2_power): Delete.
16147         (abssi2_nopower): Adjust.
16148         (nabs_power, nabs_nopower): Likewise.
16149         (mulsi3, mulsi3_mq, mulsi3_no_mq, mulsi3_mq_internal1):
16150         Likewise.  Delete anonymous post-reload splitter.
16151         (mulsi3_no_mq_internal1): rename to...
16152         (mulsi3_internal1): New define_insn.
16153         (mulsi3_mq_internal2, mulsi3_no_mq_internal2, mulsi3_internal2):
16154         Likewise.
16155         (divmodsi4, divmodsi4_internal, udiv<mode>3, udivsi3_mq,
16156         udivsi3_no_mq, udivsi3, div<mode>3, divsi3_mq, div<mode>3_no_mq,
16157         udivmodsi4_normal, udivmodsi4_tests, udivmodsi4): Likewise.
16158         (mulh_call, mull_call, divss_call, divus_call, quoss_call,
16159         quous_call): Likewise.
16160         (maskir_internal1, maskir_internal2, maskir_internal3,
16161         maskir_internal4, maskir_internal5, maskir_internal6,
16162         maskir_internal7, maskir_internal8): Delete.
16163         (ashlsi3, ashlsi3_power, ashlsi3_no_power): Adjust.
16164         (anonymous sl insn patterns): Delete.
16165         (lshrsi3, lshrsi3_power, lshrsi3_no_power): Adjust.
16166         (lshrsi3_64): Adjust.
16167         (anonymous sr insn patterns): Delete.
16168         (anonymous rrib insn patterns): Delete.
16169         (ashrsi3, ashrsi3_power, ashrsi3_no_power): Adjust.
16170         (anonymous sra insn patterns): Delete.
16171         (sqrtsf2, sqrtdf2, sqrtdf2_fpr): Adjust.
16172         (fix_trunc<mode>si2, fix_trunc<mode>si2_internal,
16173         fctiwz_<mode>): Adjust.
16174         (mulsidi3, mulsidi3_mq, mulsidi3_no_mq, umulsidi3, umulsidi3_mq,
16175         umulsidi3_no_mq, smulsi3_highpart, smulsi3_highpart_mq,
16176         smulsi3_highpart_no_mq, umulsi3_highpart, umulsi3_highpart_mq,
16177         umulsi3_highpart_no_mq): Adjust.
16178         (ashldi3_power, lshrdi3_power, ashrdi3_power): Delete.
16179         (ashrdi3_no_power, ashldi3, ashldi3_internal1,
16180         lshrdi3_internal1): Adjust.
16181         (fix_trunctfsi2, fix_trunctfsi2_fprs): Adjust.
16182         (movti_power): Delete.
16183         (movti_string): Adjust.
16184         (stmsi8, stmsi7, stmsi6, stmsi5, stmsi4, stmsi3): Adjust.
16185         (stmsi8_power, stmsi7_power, stmsi6_power, stmsi5_power,
16186         stmsi4_power, stmsi3_power): Delete.
16187         (anonymous movmemsi insn patterns): Adjust.
16188         (lfq_power2, stfq_power2): Delete.
16189         (eq<mode>, eq<mode>_compare): Adjust.
16190         (eqsi_power): Delete.
16191         (ne0si): Adjust.
16192         (anonymous le, lt, ge, gt insn patterns): Delete.
16193         * config/rs6000/rs6000.opt (mpower, mno-power, mpower2): Delete.
16194         * config/rs6000/sysv4.h (TARGET_POWER): Delete.
16195         * config/rs6000/t-aix43 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
16196         MULTILIB_MATCHES): Adjust.
16197         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
16198         -mpower, -mno-power, -mpower2, -mno-power2 documentation.
16199         Delete -mcpu=power and -mcpu=power2 documentation.
16201 2012-07-27  Segher Boessenkool  <segher@kernel.crashing.org>
16203         * config/rs6000/601.md: New file.
16204         * config/rs6000/aix43.h (ASM_CPU_SPEC): Delete support for
16205         RIOS CPUs.
16206         * config/rs6000/aix51.h (ASM_CPU_SPEC): Likewise.
16207         * config/rs6000/driver-rs6000.c (detect_processor_aix,
16208         struct asm_names): Likewise.
16209         * config/rs6000/rios1.md: Delete file.
16210         * config/rs6000/rios2.md: Delete file.
16211         * config/rs6000/rs6000-cpus.def: Delete definitions for RIOS
16212         CPUs.
16213         * config/rs6000/rs6000-opts.h (enum processor_type): Delete
16214         PROCESSOR_RIOS1 and PROCESSOR_RIOS2.
16215         * config/rs6000/rs6000-tables.opt: Regenerated.
16216         * config/rs6000/rs6000.c (struct rios1_cost, struct rios2_cost):
16217         Delete.
16218         (rs6000_option_override_internal): Delete support for RIOS CPUs.
16219         (rs6000_conditional_register_usage): Adjust comment.
16220         (rs6000_issue_rate):Delete support for RIOS CPUs.
16221         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Delete support for
16222         RIOS CPUs.
16223         (PROCESSOR_POWER): Change to PROCESSOR_PPC601.
16224         (PROCESSOR_DEFAULT): Change to PROCESSOR_PPC603.
16225         * config/rs6000/rs6000.md (define_attr "cpu"): Delete rios1
16226         and rios2.
16227         (include "rios1.md", include "rios2.md"): Delete.
16228         (include "601.md"): New.
16229         * config/rs6000/rs6000.opt (enum rs6000_cpu): Default to
16230         PROCESSOR_PPC603.
16231         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Delete support
16232         for RIOS CPUs.
16233         * config/rs6000/t-rs6000 (MD_INCLUDES): Delete rios1.md and
16234         rios2.md .  Add 601.md .
16236 2012-07-26  Richard Henderson  <rth@redhat.com>
16238         * doc/extend.texi (attribute): Document hot/cold for labels.
16239         * predict.c (tree_estimate_probability_bb): Handle hot/cold
16240         attributes on user labels.
16241         * predict.def (PRED_HOT_LABEL, PRED_COLD_LABEL): New.
16243 2012-07-26  Andrew Jenner  <andrew@codesourcery.com>
16244             Sandra Loosemore  <sandra@codesourcery.com>
16246         * cse.c (find_comparison_args): Check for cycles of any length.
16248 2012-07-26  Nick Clifton  <nickc@redhat.com>
16250         * config/mn10300/mn10300.c (REG_SAVE_BYTES): Delete.
16251         (mn10300_get_live_callee_saved_regs): If requested return a count
16252         of the number of bytes in the mask.
16253         (mn10300_expand_prologue): Add argument to invocation of
16254         mn10300_get_live_callee_regs.
16255         (mn10300_expand_epilogue): Compute reg_save_bytes by calling
16256         mn10300_get_live_callee_saved_regs.
16257         (mn10300_initial_offset): Likewise.
16258         * config/mn10300/mn10300-protos.h (mn10300_get_live_callee_saved_regs):
16259         Update prototype.
16260         * config/mn10300/mn10300.md (return_ret): Add argument to
16261         invocation of mn10300_get_live_callee_saved_regs.
16263 2012-07-26  Steven Bosscher  <steven@gcc.gnu.org>
16265         PR regression/54084
16266         * sel-sched-ir.c (cmp_v_in_regset_pool): Clarify logic, fix
16267         pointer difference check.
16269 2012-07-26  Bill Schmidt  <wschmidt@linux.ibm.com>
16271         * tree-ssa-loop-ivopts.c (mbc_entry_hash): Remove.
16272         (mbc_entry_eq): Likewise.
16273         (mult_costs): Likewise.
16274         (cost_tables_exist): Likewise.
16275         (initialize_costs): Likewise.
16276         (finalize_costs): Likewise.
16277         (tree_ssa_iv_optimize_init): Remove call to initialize_costs.
16278         (add_regs_cost): Remove.
16279         (multiply_regs_cost): Likewise.
16280         (add_const_cost): Likewise.
16281         (extend_or_trunc_reg_cost): Likewise.
16282         (negate_reg_cost): Likewise.
16283         (struct mbc_entry): Likewise.
16284         (multiply_by_const_cost): Likewise.
16285         (get_address_cost): Change add_regs_cost calls to add_cost lookups;
16286         change multiply_by_const_cost to mult_by_coeff_cost.
16287         (force_expr_to_var_cost): Likewise.
16288         (difference_cost): Change multiply_by_const_cost to mult_by_coeff_cost.
16289         (get_computation_cost_at): Change add_regs_cost calls to add_cost
16290         lookups; change multiply_by_const_cost to mult_by_coeff_cost.
16291         (determine_iv_cost): Change add_regs_cost calls to add_cost lookups.
16292         (tree_ssa_iv_optimize_finalize): Remove call to finalize_costs.
16293         * tree-ssa-address.c (expmed.h): New #include.
16294         (most_expensive_mult_to_index): Change multiply_by_const_cost to
16295         mult_by_coeff_cost.
16296         * gimple-ssa-strength-reduction.c (expmed.h): New #include.
16297         (stmt_cost): Change to use mult_by_coeff_cost, mul_cost, add_cost,
16298         neg_cost, and convert_cost instead of IVOPTS interfaces.
16299         (execute_strength_reduction): Remove calls to initialize_costs and
16300         finalize_costs.
16301         * expmed.c (struct init_expmed_rtl): Add convert rtx_def.
16302         (init_expmed_one_mode): Initialize convert rtx_def; initialize
16303         x_convert_cost for related modes.
16304         (mult_by_coeff_cost): New function.
16305         * expmed.h (NUM_MODE_INT): New #define.
16306         (struct target_expmed): Add x_convert_cost matrix.
16307         (set_convert_cost): New inline function.
16308         (convert_cost): Likewise.
16309         (mult_by_coeff_cost): New extern decl.
16310         * tree-flow.h (initialize_costs): Remove decl.
16311         (finalize_costs): Likewise.
16312         (multiply_by_const_cost): Likewise.
16313         (add_regs_cost): Likewise.
16314         (multiply_regs_cost): Likewise.
16315         (add_const_cost): Likewise.
16316         (extend_or_trunc_reg_cost): Likewise.
16317         (negate_reg_cost): Likewise.
16318         * Makefile.in (gimple-ssa-strength-reduction.o): Update dependencies.
16319         (tree-ssa-address.o): Update dependencies.
16321 2012-07-26  Steven Bosscher  <steven@gcc.gnu.org>
16323         * bitmap.h: Add explanation of sparse set as linked-list bitmap.
16324         * sbitmap.h: Add explanation about non-sparse sets as simple bitmap.
16325         (TEST_BIT): Make a static inline function for stronger type checking.
16326         (SET_BIT): Don't handle sbitmaps with popcount.
16327         (RESET_BIT): Likewise.
16328         (SET_BIT_WITH_POPCOUNT): New, like SET_BIT but with popcount.
16329         (RESET_BIT_WITH_POPCOUNT): New, like RESET_BIT but with popcount.
16330         * ebitmap.c (ebitmap_clear_bit): Use SET_BIT_WITH_POPCOUNT and
16331         RESET_BIT_WITH_POPCOUNT on wordmask bitmaps.
16332         (ebitmap_set_bit, ebitmap_and_into, ebitmap_and, ebitmap_ior_into,
16333         ebitmap_and_compl_into, ebitmap_and_compl): Likewise.
16334         * sparseset.h: Add explanation of sparse set representation.
16336 2012-07-26  Richard Guenther  <rguenther@suse.de>
16338         PR tree-optimization/54098
16339         * tree-vrp.c (vrp_visit_phi_node): Iterate once more if the
16340         original range was UNDEFINED.
16342 2012-07-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16344         * config/arm/neon.ml (ops): Fix regexp for vld1Q_dups64 and
16345         vld1Q_dupu64 tests.
16347 2012-07-26  Oleg Endo  <olegendo@gcc.gnu.org>
16349         PR target/51244
16350         * config/sh/sh.opt (mzdcbranch): New option.
16351         * doc/invoke.texi: Document it.
16352         * config/sh/sh.md (negsi_cond): Use TARGET_ZDCBRANCH as condition
16353         instead of TARGET_HARD_SH4.
16354         * config/sh/sh.c (sh_option_override): Set TARGET_ZDCBRANCH as default
16355         for TARGET_HARD_SH4.
16357 2012-07-25  Oleg Endo  <olegendo@gcc.gnu.org>
16359         PR target/54089
16360         * config/sh/predicates.md (shift_count_operand): Handle not-SHMEDIA
16361         case.
16362         (p27_shift_count_operand, not_p27_shift_count_operand): New predicates.
16363         * config/sh/sh.md (ashlsi3): Remove parallel and T_REG clobber
16364         from expander.  Do not emit shift insn for not-SHMEDIA case.
16365         (ashlsi3_std): Replace with ...
16366         (ashlsi3_k, ashlsi3_d): ... these new insns.
16367         * config/sh/sh.c (gen_ashift): Make static.  Add sanity checks.
16368         Emit ashlsi3_k insn instead of ashlsi3_std in ASHIFT case.
16369         (gen_ashift_hi): Make static.
16370         * config/sh/sh-protos.h (gen_ashift, gen_ashift_hi): Remove forward
16371         declaration.
16373 2012-07-25  Bharathi Seshadri  <bseshadr@cisco.com>
16374             Jim Wilson  <jimwilso@cisco.com>
16376         * config/arm/bpabi.h (BE8_LINK_SPEC): Set according to
16377         TARGET_BIG_ENDIAN_DEFAULT.
16379 2012-07-25  Eric Botcazou  <ebotcazou@adacore.com>
16381         * gimple-low.c (lower_try_catch): New function.
16382         (lower_stmt) <GIMPLE_TRY>: Use it to lower GIMPLE_TRY_CATCH.
16383         <GIMPLE_CATCH>: Delete.
16384         <GIMPLE_EH_FILTER>: Likewise.
16386 2012-07-25  Eric Botcazou  <ebotcazou@adacore.com>
16388         * expr.c (expand_expr_real_1): Do not expand operand #1 and #2
16389         of BIT_FIELD_REF for ignored results.
16390         * fold-const.c (fold_ternary_loc) <BIT_FIELD_REF>: Check that the
16391         CONSTRUCTOR has vector type before using vector accessors on it.
16392         * gimplify.c (gimplify_compound_lval): Do not gimplify operand #1 and
16393         #2 of BIT_FIELD_REF.
16394         (gimplify_expr) <BIT_FIELD_REF>: Likewise.
16395         * tree-nested.c (convert_nonlocal_reference_op) <BIT_FIELD_REF>: Do
16396         not process operand #1 and #2.
16397         (convert_local_reference_op): Likewise.
16398         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Remove superfluous
16399         breaks throughout.
16400         <BIT_FIELD_REF>: Reuse operand #1 and #2 directly.
16401         * tree.c (stabilize_reference) <BIT_FIELD_REF>: Do not stabilize
16402         operand #1 and #2.
16403         (UPDATE_FLAGS): Do not consider operand #2 of BIT_FIELD_REF.
16404         (build6_stat): Delete.
16405         * tree.h (build6_stat, build6, build6_stat_loc, build6_loc): Likewise.
16407 2012-07-25 Marc Glisse <marc.glisse@inria.fr>
16409         PR tree-optimization/30318
16410         * tree-vrp.c (extract_range_from_binary_expr_1) [PLUS_EXPR]:
16411         Handle __int128.
16412         [MINUS_EXPR]: Merge with PLUS_EXPR.
16414 2012-07-25  Sandra Loosemore  <sandra@codesourcery.com>
16415             Paul Brook  <paul@codesourcery.com>
16417         PR target/53633
16418         * target.def (warn_func_return): New hook.
16419         * doc/tm.texi.in (TARGET_WARN_FUNC_RETURN): New hook.
16420         * doc/tm.texi: Regenerate.
16421         * doc/sourcebuild.texi (Effective-Target Keywords): Document
16422         naked_functions.
16423         * ipa-pure-const.c (warn_function_noreturn): Check
16424         targetm.warn_func_return.
16425         * tree-cfg.c (execute_warn_function_return): Likewise.
16426         * config/spu/spu.c (spu_warn_func_return): New.
16427         (TARGET_WARN_FUNC_RETURN): Define.
16428         * config/rx/rx.c (rx_warn_func_return): New.
16429         (TARGET_WARN_FUNC_RETURN): Define.
16430         * config/avr/avr.c (avr_warn_func_return): New.
16431         (TARGET_WARN_FUNC_RETURN): Define.
16432         * config/arm/arm.c (arm_warn_func_return): New.
16433         (TARGET_WARN_FUNC_RETURN): Define.
16434         * config/mcore/mcore.c (mcore_warn_func_return): New.
16435         (TARGET_WARN_FUNC_RETURN): Define.
16436         (saved_warn_return_type, saved_warn_return_type_count): Remove.
16437         (mcore_reorg, mcore_handle_naked_attribute): Remove warn_return hack.
16439 2012-07-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
16441         * final.c [ASSEMBLER_DIALECT](do_assembler_dialects): New
16442         function to implement assembler dialects.
16443         (output_asm_insn): Use do_assembler_dialects.
16444         (asm_fprintf): Likewise.
16446 2012-07-25  Richard Henderson  <rth@redhat.com>
16448         PR bootstrap/54092
16449         * libfuncs.h: Don't include optabs.h.
16450         (struct libfunc_entry): Use "int" for op, mode1, mode2 members.
16451         * optabs.c (hash_libfunc): Don't cast members to int.
16452         * Makefile.in (LIBFUNCS_H): Don't include OPTABS_H.
16454 2012-07-25  Dodji Seketeli  <dodji@redhat.com>
16456         * basic-block.c: Fix typo in comment.
16458 2012-07-25  Kirill Yukhin  <kirill.yukhin@intel.com>
16459             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16461         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PRFCHW_SET): New.
16462         (OPTION_MASK_ISA_PRFCHW_UNSET): Likewise.
16463         (ix86_handle_option): Handle mprfchw option.
16464         * config.gcc (i[34567]86-*-*): Add prfchwintrin.h.
16465         (x86_64-*-*): Likewise.
16466         * config/i386/prfchwintrin.h: New header.
16467         * config/i386/cpuid.h (bit_PRFCHW): New.
16468         (bit_BMI): Formatting fix.
16469         (bit_HLE): Likewise.
16470         (bit_RTM): Likewise.
16471         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
16472         PREFETCHW support.
16473         * config/i386/i386-c.c: Define __PRFCHW__ if needed.
16474         * config/i386/i386.c (ix86_target_string): Define
16475         -mprfchw option. Formatting fixes.
16476         (PTA_HLE): Formatting fix.
16477         (PTA_PRFCHW): New.
16478         (ix86_option_override_internal): Handle new option.
16479         (ix86_valid_target_attribute_inner_p): Add OPT_mprfchw.
16480         * config/i386/i386.h (TARGET_PRFCHW): New.
16481         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW.
16482         * config/i386/i386.opt (mprfchw): New.
16483         * config/i386/mm3dnow.h: Move _m_prefetchw from here to prfchwintrin.h.
16484         * config/i386/x86intrin.h: Include prfchwintrin.h.
16486 2012-07-25 Sergey Melnikov <sergey.melnikov@intel.com>
16488         * config/i386/i386.md (stack_protect_set): Disable the pattern
16489         for Android since Android libc (bionic) does not provide random
16490         value for stack protection guard at gs:0x14. Guard value
16491         will be provided from external symbol (default implementation).
16492         (stack_protect_set_<mode>): Likewise.
16493         (stack_protect_test): Likewise.
16494         (stack_protect_test_<mode>): Likewise.
16495         * defaults.h: Define macro TARGET_HAS_BIONIC to 0 - target does
16496         not have Bionic by default
16497         * config/linux.h: Redefine macro TARGET_HAS_BIONIC to (OPTION_BIONIC)
16498         Macro OPTION_BIONIC is defined in this file and provides Bionic
16499         accessibility status
16501 2012-07-25  Steven Bosscher  <steven@gcc.gnu.org>
16503         * gimple-pretty-print.c (gimple_dump_bb_buff): Call pp_flush.
16505 2012-07-25  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
16507         btver2 Enablement
16508         * config.gcc (i[34567]86-*-linux* | ...): Add btver2.
16509         (case ${target}): Add btver2.
16510         * config/i386/driver-i386.c (host_detect_local_cpu): Let
16511         -march=native recognize btver2 processors.
16512         * config/i386/i386-c.c (ix86_target_macros_internal): Add
16513         btver2 def_and_undef
16514         * config/i386/i386.c (struct processor_costs btver2_cost): New
16515         btver2 cost table.
16516         (m_BTVER2): New definition.
16517         (m_AMD_MULTIPLE): Includes m_BTVER2.
16518         (initial_ix86_tune_features): Add btver2 tune.
16519         (processor_target_table): Add btver2 entry.
16520         (static const char *const cpu_names): Add btver2 entry.
16521         (software_prefetching_beneficial_p): Add btver2.
16522         (ix86_option_override_internal): Add btver2 instruction sets.
16523         (ix86_issue_rate): Add btver2.
16524         (ix86_adjust_cost): Add btver2.
16525         * config/i386/i386.h (TARGET_BTVER2): New definition.
16526         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver2.
16527         (enum processor_type): Add PROCESSOR_BTVER2.
16528         * config/i386/i386.md (define_attr "cpu"): Add btver2.
16530 2012-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
16532         * doc/tm.texi: Regenerate.
16533         * targhooks.c (default_init_cost): Add prologue and epilogue costs.
16534         (default_add_stmt_cost): Likewise; also handle NULL stmt_info.
16535         (default_finish_cost): Add prologue and epilogue costs.
16536         * targhooks.h (default_add_stmt_cost): Change parameter list.
16537         (default_finish_cost): Likewise.
16538         * target.def (init_cost): Change documentation string.
16539         (add_stmt_cost): Change documentation string and parameter list.
16540         (finish_cost): Likewise.
16541         * target.h (vect_cost_model_location): New enum.
16542         * tree-vectorizer.h (struct _slp_tree): Remove cost substruct.
16543         (struct _slp_instance): Remove cost substruct; rename stmt_cost_vec
16544         to body_cost_vec.
16545         (SLP_INSTANCE_OUTSIDE_OF_LOOP_COST): Remove.
16546         (SLP_INSTANCE_STMT_COST_VEC): Rename to SLP_INSTANCE_BODY_COST_VEC.
16547         (SLP_TREE_OUTSIDE_OF_LOOP_COST): Remove.
16548         (struct _vect_peel_extended_info): Rename stmt_cost_vec to
16549         body_cost_vec.
16550         (struct _stmt_vec_info): Remove cost substruct.
16551         (STMT_VINFO_OUTSIDE_OF_LOOP_COST): Remove.
16552         (stmt_vinfo_set_outside_of_loop_cost): Remove.
16553         (builtin_vectorization_cost): New function.
16554         (vect_get_stmt_cost): Change to use builtin_vectorization_cost.
16555         (add_stmt_cost): Change parameter list.
16556         (finish_cost): Likewise.
16557         (vect_model_simple_cost): Likewise.
16558         (vect_model_store_cost): Likewise.
16559         (vect_model_load_cost): Likewise.
16560         (record_stmt_cost): Likewise.
16561         (vect_get_load_cost): Likewise.
16562         (vect_get_known_peeling_cost): Likewise.
16563         * tree-vect-loop.c (vect_get_known_peeling_cost): Change parameter
16564         list; call record_stmt_cost for prologue and epilogue costs.
16565         (vect_estimate_min_profitable_iters): Call add_stmt_cost for
16566         prologue and epilogue costs; remove computation of vec_outside_cost;
16567         return vec_prologue_cost and vec_epilogue_cost from finish_cost.
16568         (vect_model_reduction_cost): Revise call to add_stmt_cost for body
16569         costs; call add_stmt_cost for prologue and epilogue costs.
16570         (vect_model_induction_cost): Revise call to add_stmt_cost for body
16571         costs; call add_stmt_cost for prologue costs.
16572         * tree-vect-data-refs.c (vect_get_data_access_cost): Change parameter
16573         list for function and arguments for calls to vect_get_load_cost and
16574         vect_get_store_cost.
16575         (vect_peeling_hash_get_lowest_cost): Change argument list for calls to
16576         vect_get_data_access_cost and vect_get_known_peeling_cost; use
16577         temporary vectors prologue_cost_vec and epilogue_cost_vec for the
16578         latter call and discard their results; rename stmt_cost_vec to
16579         body_cost_vec; correct possible storage leak for body_cost_vec.
16580         (vect_peeling_hash_choose_best_peeling): Rename stmt_cost_vec to
16581         body_cost_vec.
16582         (vect_enhance_data_refs_alignment): Rename stmt_cost_vec to
16583         body_cost_vec; add extra dummy parameter on calls to
16584         vect_get_data_access_cost; tolerate null si->stmt; add vect_body to
16585         argument list on call to add_stmt_cost.
16586         * tree-vect-stmts.c (record_stmt_cost): Change parameter list;
16587         rename stmt_cost_vec to body_cost_vec; tolerate null stmt_info; call
16588         builtin_vectorization_cost; add "where" parameter on call to
16589         add_stmt_cost.
16590         (vect_model_simple_cost): Change parameter list; call record_stmt_cost
16591         for prologue costs; remove call to stmt_vinfo_set_outside_of_loop_cost;
16592         rename stmt_cost_vec to body_cost_vec.
16593         (vect_model_promotion_demotion_cost): Add vect_body argument to call
16594         to add_stmt_cost; call add_stmt_cost for prologue costs; remove call
16595         to stmt_vinfo_set_outside_of_loop_cost.
16596         (vect_model_store_cost): Change parameter list; call record_stmt_cost
16597         for prologue costs; add vect_body argument to call to record_stmt_cost;
16598         rename stmt_cost_vec to body_cost_vec; remove call to
16599         stmt_vinfo_set_outside_of_loop_cost.
16600         (vect_get_store_cost): Rename stmt_cost_vec to body_cost_vec; add
16601         vect_body argument to calls to record_stmt_cost.
16602         (vect_model_load_cost): Change parameter list; rename stmt_cost_vec to
16603         body_cost_vec; add vect_body argument to calls to record_stmt_cost;
16604         remove call to stmt_vinfo_set_outside_of_loop_cost.
16605         (vect_get_load_cost): Change parameter list; rename stmt_cost_vec to
16606         body_cost_vec; add vect_body argument to calls to record_stmt_cost;
16607         call record_stmt_cost for prologue costs.
16608         (vectorizable_store): Change argument list for call to
16609         vect_model_store_cost.
16610         (vectorizable_load): Change argument list for call to
16611         vect_model_load_cost.
16612         (new_stmt_vec_info): Remove assignment to
16613         STMT_VINFO_OUTSIDE_OF_LOOP_COST.
16614         * config/spu/spu.c (spu_init_cost): Add prologue and epilogue costs.
16615         (spu_add_stmt_cost): Likewise; also handle NULL stmt_info.
16616         (spu_finish_cost): Add prologue and epilogue costs.
16617         * config/i386/i386.c (i386_init_cost): Add prologue and epilogue costs.
16618         (i386_add_stmt_cost): Likewise; also handle NULL stmt_info.
16619         (i386_finish_cost): Add prologue and epilogue costs.
16620         * config/rs6000/rs6000.c (rs6000_init_cost): Add prologue and epilogue
16621         costs.
16622         (rs6000_add_stmt_cost): Likewise; also handle NULL stmt_info.
16623         (rs6000_finish_cost): Add prologue and epilogue costs.
16624         * tree-vect-slp.c (vect_free_slp_instance): Rename
16625         SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC.
16626         (vect_create_new_slp_node): Remove assignment to
16627         SLP_TREE_OUTSIDE_OF_LOOP_COST.
16628         (vect_get_and_check_slp_defs): Change parameter list; change argument
16629         lists to calls to vect_model_store_cost and vect_model_simple_cost.
16630         (vect_build_slp_tree): Change parameter list; change argument lists
16631         to calls to vect_model_load_cost, vect_get_and_check_slp_defs, and
16632         recursive self-calls; remove setting of outside_cost from
16633         SLP_TREE_OUTSIDE_OF_LOOP_COST; add vect_body argument to call to
16634         record_stmt_cost.
16635         (vect_analyze_slp_instance): Rename stmt_cost_vec to body_cost_vec;
16636         rename SLP_INSTANCE_STMT_COST_VEC to SLP_INSTANCE_BODY_COST_VEC;
16637         remove assignment to SLP_INSTANCE_OUTSIDE_OF_LOOP_COST; record SLP
16638         prologue costs.
16639         (vect_bb_vectorization_profitable_p): Rename stmt_cost_vec to
16640         body_cost_vec; handle null ci->stmt; add vect_body argument to call
16641         to add_stmt_cost; simplify calls to targetm.vectorize.
16642         builtin_vectorization_cost; return vec_prologue_cost and
16643         vec_epilogue_cost from finish_cost.
16644         (vect_update_slp_costs_according_to_vf): Rename stmt_cost_vec to
16645         body_cost_vec; add vect_body argument to call to add_stmt_cost.
16647 2012-07-24  Richard Henderson  <rth@redhat.com>
16649         * system.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Poison.
16650         * config/cris/cris.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
16651         * config/h8300/h8300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
16652         * config/mn10300/mn10300.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
16653         * config/rs6000/rs6000.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove
16654         comment reference.
16655         * config/v850/v850.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
16656         * config/v850/v850.md (fixuns_truncsfsi2, fixuns_truncdfsi2): New.
16657         (fix_truncsfsi2, fix_truncdfsi2): Avoid double FIX.
16658         * config/vax/vax.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
16659         * config/vax/vax.md (fixuns_trunc<VAXfp><VAXint>): New.
16660         * doc/tm.texi.in (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
16661         * doc/tm.texi: Rebuild.
16663 2012-07-24  Richard Henderson  <rth@redhat.com>
16665         * optabs.def: New file.
16666         * Makefile.in (OPTABS_H): Add insn-opinit.h.
16667         (MOSTLYCLEANFILES): Likewise.
16668         (insn-opinit.o): Remove reload.h
16669         (simple_rtl_generated_c): Remove insn-opinit.c.
16670         (s-opinit): New rule.
16671         (build/genopinit.o): Add optabs.def.
16672         * genopinit.c (rtx_upname): New.
16673         (optabs): Extract to optabs.def
16674         (enum optab_tag, struct optab_def_d, optabs): New.
16675         (struct pattern_d, patterns): New.
16676         (match_pattern): Split out from ...
16677         (gen_insn): ... here.  Push matches on patterns vec.
16678         (pattern_cmp, optab_kind_cmp, optab_rcode_cmp): New.
16679         (header_file_name, source_file_name, handle_arg): New.
16680         (open_outfile): New.
16681         (main): Sort and emit new tables.  Generate lookup_handler,
16682         raw_optab_handler, swap_optab_enable.
16683         * libfuncs.h (libfunc_entry): Change "size_t optab" to "optab op".
16684         * optabs.c (code_to_optab_): Remove.
16685         (hash_libfunc): Update for optab name change.
16686         (eq_libfunc): Likewise.
16687         (convert_optab_libfunc): Update computation of optab member;
16688         use the new convlib_def table.
16689         (optab_libfunc): Similarly.
16690         (set_optab_libfunc, set_conv_libfunc): Likewise.
16691         (sign_expand_binop): Use swap_optab_enable instead of fake optabs.
16692         (init_insn_codes, init_optab, init_optabv, init_convert_optab): Remove.
16693         (init_optabs): Don't call them; export the data to optabs.def.
16694         (gen_int_libfunc, gen_fp_libfunc): Export non-static.
16695         (gen_fixed_libfunc, gen_signed_fixed_libfunc): Likewise.
16696         (gen_unsigned_fixed_libfunc, gen_int_fp_libfunc): Likewise.
16697         (gen_intv_fp_libfunc, gen_int_fp_fixed_libfunc): Likewise.
16698         (gen_int_fp_signed_fixed_libfunc, gen_int_fixed_libfunc): Likewise.
16699         (gen_int_signed_fixed_libfunc): Likewise.
16700         (gen_int_unsigned_fixed_libfunc): Likewise.
16701         (gen_interclass_conv_libfunc, gen_int_to_fp_conv_libfunc): Likewise.
16702         (gen_ufloat_conv_libfunc): Likewise.
16703         (gen_int_to_fp_nondecimal_conv_libfunc): Likewise.
16704         (gen_fp_to_int_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
16705         (gen_trunc_conv_libfunc, gen_extend_conv_libfunc): Likewise.
16706         (gen_fract_conv_libfunc, gen_fractuns_conv_libfunc): Likewise.
16707         (gen_satfract_conv_libfunc, gen_satfractuns_conv_libfunc): Likewise.
16708         (debug_optab_libfuncs): Update for optab representation change.
16709         * optabs.h: Include insn-opinit.h.
16710         (optab, convert_optab, direct_optab): New typedefs.
16711         (struct optab_handlers, struct widening_optab_handlers): Remove.
16712         (struct optab_libcall_d): Rename from optab_d; remove code_,
16713         handlers, widening members.
16714         (struct convert_optab_libcall_d): Rename from convert_optab_d;
16715         remove code_ and handlers members.
16716         (enum optab_index, enum convert_optab_index): Remove.
16717         (enum direct_optab_index): Remove.
16718         (code_to_optab_): Fix array range.
16719         (optab_to_code): Covert to inline function.
16720         (optab_to_code_, convlib_def, normlib_def): Declare.
16721         (raw_optab_handler, swap_optab_enable): Declare.
16722         (unknown_optab): Remove; export to optabs.def
16723         (ssadd_optab, usadd_optab, sssub_optab, ussub_optab, ssmul_optab,
16724         usmul_optab, ssdiv_optab, usdiv_optab, ssneg_optab, usneg_optab,
16725         ssashl_optab, usashl_optab, add_optab, sub_optab, smul_optab,
16726         addv_optab, subv_optab, smul_highpart_optab, umul_highpart_optab,
16727         smul_widen_optab, umul_widen_optab, usmul_widen_optab,
16728         smadd_widen_optab, umadd_widen_optab, ssmadd_widen_optab,
16729         usmadd_widen_optab, smsub_widen_optab, umsub_widen_optab,
16730         ssmsub_widen_optab, usmsub_widen_optab, sdiv_optab, smulv_optab,
16731         sdivv_optab, sdivmod_optab, udiv_optab, udivmod_optab, smod_optab,
16732         umod_optab, fmod_optab, remainder_optab, ftrunc_optab, and_optab,
16733         ior_optab, xor_optab, ashl_optab, lshr_optab, ashr_optab, rotl_optab,
16734         rotr_optab, vashl_optab, vlshr_optab, vashr_optab, vrotl_optab,
16735         vrotr_optab, smin_optab, smax_optab, umin_optab, umax_optab, pow_optab,
16736         atan2_optab, fma_optab, fms_optab, fnma_optab, fnms_optab, mov_optab,
16737         movstrict_optab, movmisalign_optab, storent_optab, neg_optab,
16738         negv_optab, abs_optab, absv_optab, one_cmpl_optab, bswap_optab,
16739         ffs_optab, clz_optab, ctz_optab, clrsb_optab, popcount_optab,
16740         parity_optab, sqrt_optab, sincos_optab, sin_optab, asin_optab,
16741         cos_optab, acos_optab, exp_optab, exp10_optab, exp2_optab, expm1_optab,
16742         ldexp_optab, scalb_optab, significand_optab, logb_optab, ilogb_optab,
16743         log_optab, log10_optab, log2_optab, log1p_optab, floor_optab,
16744         ceil_optab, btrunc_optab, round_optab, nearbyint_optab, rint_optab,
16745         tan_optab, atan_optab, copysign_optab, signbit_optab, isinf_optab,
16746         cmp_optab, ucmp_optab, eq_optab, ne_optab, gt_optab, ge_optab,
16747         lt_optab, le_optab, unord_optab, strlen_optab, cbranch_optab,
16748         cmov_optab, cstore_optab, ctrap_optab, push_optab, addcc_optab,
16749         reduc_smax_optab, reduc_umax_optab, reduc_smin_optab, reduc_umin_optab,
16750         reduc_splus_optab, reduc_uplus_optab, ssum_widen_optab,
16751         usum_widen_optab, sdot_prod_optab, udot_prod_optab, vec_set_optab,
16752         vec_extract_optab, vec_init_optab, vec_shl_optab, vec_shr_optab,
16753         vec_realign_load_optab, vec_widen_umult_hi_optab,
16754         vec_widen_umult_lo_optab, vec_widen_smult_hi_optab,
16755         vec_widen_smult_lo_optab, vec_widen_umult_even_optab,
16756         vec_widen_umult_odd_optab, vec_widen_smult_even_optab,
16757         vec_widen_smult_odd_optab, vec_widen_ushiftl_hi_optab,
16758         vec_widen_ushiftl_lo_optab, vec_widen_sshiftl_hi_optab,
16759         vec_widen_sshiftl_lo_optab, vec_unpacks_hi_optab, vec_unpacks_lo_optab,
16760         vec_unpacku_hi_optab, vec_unpacku_lo_optab, vec_unpacks_float_hi_optab,
16761         vec_unpacks_float_lo_optab, vec_unpacku_float_hi_optab,
16762         vec_unpacku_float_lo_optab, vec_pack_trunc_optab, vec_pack_ssat_optab,
16763         vec_pack_usat_optab, vec_pack_sfix_trunc_optab,
16764         vec_pack_ufix_trunc_optab, powi_optab, sync_compare_and_swap_optab,
16765         sync_lock_test_and_set_optab, sync_old_add_optab, sync_old_sub_optab,
16766         sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab,
16767         sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab,
16768         sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab,
16769         sync_new_nand_optab, sext_optab, zext_optab, trunc_optab, sfix_optab,
16770         ufix_optab, sfixtrunc_optab, ufixtrunc_optab, sfloat_optab,
16771         ufloat_optab, lrint_optab, lround_optab, lfloor_optab, lceil_optab,
16772         fract_optab, fractuns_optab, satfract_optab, satfractuns_optab,
16773         vec_load_lanes_optab, vec_store_lanes_optab, vcond_optab, vcondu_optab,
16774         movcc_optab, reload_in_optab, reload_out_optab, movmem_optab,
16775         setmem_optab, cmpstr_optab, cmpstrn_optab, cmpmem_optab,
16776         sync_lock_release_optab, sync_add_optab, sync_sub_optab,
16777         sync_ior_optab, sync_and_optab, sync_xor_optab, sync_nand_optab,
16778         atomic_exchange_optab, atomic_compare_and_swap_optab,
16779         atomic_load_optab, atomic_store_optab, atomic_add_fetch_optab,
16780         atomic_sub_fetch_optab, atomic_and_fetch_optab,
16781         atomic_nand_fetch_optab, atomic_xor_fetch_optab, atomic_or_fetch_optab,
16782         atomic_fetch_add_optab, atomic_fetch_sub_optab, atomic_fetch_and_optab,
16783         atomic_fetch_nand_optab, atomic_fetch_xor_optab, atomic_fetch_or_optab,
16784         atomic_add_optab, atomic_sub_optab, atomic_and_optab,
16785         atomic_nand_optab, atomic_xor_optab, atomic_or_optab,
16786         atomic_always_lock_free_optab, atomic_is_lock_free_optab,
16787         atomic_thread_fence_optab, atomic_signal_fence_optab,
16788         vec_perm_optab, vec_perm_const_optab): Likewise.
16789         (struct target_optabs): Remove x_optab_table, x_convert_optab_table,
16790         and x_direct_optab_table members; add pat_enable.
16791         (optab_table, convert_optab_table, direct_optab_table): Remove.
16792         (optab_handler): Use raw_optab_handler.
16793         (widening_optab_handler, convert_optab_handler): Likewise.
16794         (set_optab_handler, set_widening_optab_handler): Remove.
16795         (set_convert_optab_handler, set_direct_optab_handler): Remove.
16796         (direct_optab_handler): Defer to optab_handler.
16797         * rtl.h (NON_GENERATOR_NUM_RTX_CODE): New.
16799 2012-07-24  Jason Merrill  <jason@redhat.com>
16801         * bitmap.c (bitmap_descriptor): Adjust order of parameters to
16802         match MEM_STAT_DECL.
16803         * statistics.h (ALONE_FINAL_MEM_STAT_DECL): Correct typo.
16805 2012-07-24  Richard Henderson  <rth@redhat.com>
16807         * optabs.h (struct optab_d): Rename code member to code_.
16808         (struct convert_optab_h): Likewise.
16809         (code_to_optab_): Rename from code_to_optab.
16810         (code_to_optab, optab_to_code): New.
16811         * dojump.c (do_compare_rtx_and_jump): Use code_to_optab.
16812         * ifcvt.c (noce_emit_move_insn): Likewise.
16813         * optabs.c (simplify_expand_binop): Use optab_to_code.
16814         (expand_simple_binop, shift_optab_p, commutative_optab_p): Likewise.
16815         (avoid_expensive_constant, expand_binop_directly): Likewise.
16816         (expand_binop, expand_simple_unop, expand_unop_direct): Likewise.
16817         (expand_unop, prepare_float_lib_cmp, expand_fixed_convert): Likewise.
16818         (have_insn_for, debug_optab_libfuncs): Likewise.
16819         (init_optab, init_optabv, init_convert_optab): Update for optab
16820         member name change.
16822         * libfuncs.h: Include optabs.h.
16823         * dwarf2out.c, lto-streamer.in.c: Don't include libfuncs.h.
16824         * Makefile.in (LIBFUNCS_H): Add OPTABS_H.
16825         (lto-streamer-in.o, dwarf2out.o): Update deps.
16827         * optabs.h (unknown_optab): New.
16828         * builtins.c (interclass_mathfn_icode): Use it.
16829         * dojump.c (do_compare_rtx_and_jump): Likewise.
16830         * optabs.c (optab_for_tree_code, expand_binop): Likewise.
16831         * tree-vect-generic.c (add_rshift, expand_vector_divmod): Likewise.
16832         (expand_vector_operations_1): Likewise.
16833         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
16834         * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
16836 2012-07-24  Steven Bosscher  <steven@gcc.gnu.org>
16838         * alloc-pool.c (create_alloc_pool): Fix ENABLE_CHECKING check.
16840 2012-07-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
16842         PR target/54051
16843         * config/arm/arm.c (arm_print_operand_address): Remove superfluous
16844         printing of 0.
16845         * config/arm/neon.md ("neon_vld3_lane<mode>":VD): Remove alignment
16846         specifier.
16847         ("neon_vld3_lane<mode>":VMQ): Likewise.
16848         ("neon_vld3_dup<mode>":VDX): Likewise.
16849         ("neon_vst3_lane<mode>":VD): Likewise.
16850         ("neon_vst3_lane<mode>":VMQ): Likewise.
16852 2012-07-24  Roland McGrath  <mcgrathr@google.com>
16854         * arm.c (arm_get_frame_offsets): Don't use fixed regs for
16855         stack alignment padding.
16857 2012-07-24  Uros Bizjak  <ubizjak@gmail.com>
16859         PR target/53961
16860         * config/i386/i386.c (ix86_legitimate_address_p): Move check for
16861         negative constant address for TARGET_X32 ...
16862         (ix86_decompose_address): ... here.  Reject constant addresses
16863         that don't satisfy x86_64_immediate_operand predicate.
16865 2012-07-24  Julian Brown  <julian@codesourcery.com>
16867         * doc/sourcebuild.texi (arm_hf_eabi): Document effective-target check.
16869 2012-07-24  Steven Bosscher  <steven@gcc.gnu.org>
16871         * sbitmap.h (SBITMAP_ELT_BITS): Use "1u" trick as for BITMAP_WORD_BITS.
16872         Move test to check that there is a popcount function for the the number
16873         of bits in SBITMAP_ELT_BITS to sbitmap.c.
16874         * sbitmap.c: Test SBITMAP_ELT_BITS, not HOST_BITS_PER_WIDEST_FAST_INT.
16875         MEM_STAT_INFO): Define in terms of their ALONE counterparts.
16877         * configure.ac (GATHER_STATISTICS): Always define, non-zero if enabled.
16878         * configure: Regenerate.
16879         * statistics.h (GATHER_STATISTICS): Error out if it is not defined.
16880         (GCC_MEM_STAT_ARGUMENTS): New define.
16881         (ALONE_MEM_STAT_DECL): Define in terms of GCC_MEM_STAT_ARGUMENTS.
16882         (ALONE_FINAL_MEM_STAT_DECL, ALONE_FINAL_PASS_MEM_STAT): New defines.
16883         (MEM_STAT_DECL, FINAL_MEM_STAT_DECL, PASS_MEM_STAT,
16884         FINAL_PASS_MEM_STAT): Define.
16885         * ggc-internal.h (ggc_record_overhead): Use FINAL_MEM_STAT_DECL.
16886         * ggc.h (ggc_record_overhead, ggc_free_overhead,
16887         ggc_prune_overhead_list): Remove internal prototypes, they are defined
16888         already in ggc-internal.h.
16889         * ggc-common.c (struct loc_descriptor): Remove #ifdef GATHER_STATISTICS
16890         wrappers.
16891         (add_statistics): Likewise.
16892         (dump_ggc_loc_statistics): Likewise. Return if GATHER_STATISTICS is 0.
16893         * ggc-zone.c (struct page_entry): Remove #ifdef GATHER_STATISTICS
16894         wrappers around "survived" and "stats" members.
16895         (alloc_large_page): Always initialize survived.
16896         (ggc_internal_alloc_zone_stat): Likewise.
16897         Remove #ifdef GATHER_STATISTICS wrappers.  Record overhead if
16898         GATHER_STATISTICS is non-0.
16899         (ggc_free): Convert #ifdef GATHER_STATISTICS to if-code.
16900         (sweep_pages): Always increase survived.
16901         (ggc_collect_1): Convert #ifdef GATHER_STATISTICS to if-code.
16902         (calculate_average_page_survival): Always define.
16903         (ggc_collect): Convert #ifdef GATHER_STATISTICS to if-code.
16904         (ggc_print_statistics): Likewise.
16905         (ggc_pch_read): Likewise.
16906         * ggc-page.c (struct globals): Always define "stats" member.
16907         (ggc_internal_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
16908         (ggc_free): Likewise.
16909         (ggc_collec): Likewise.
16910         (ggc_print_statistics): Likewise.
16911         * bitmap.h (struct bitmap_head_def): Always define "desc" member.
16912         (bitmap_initialize_stat): Convert #ifdef GATHER_STATISTICS to if-code.
16913         * gimple.h (enum gimple_alloc_kind): Always define.
16914         (gimple_alloc_kind): Likewise.
16915         * tree-flow.h (phinodes_print_statistics): Always define.
16916         (ssanames_print_statistics): Likewise.
16917         * vec.h (vec_heap_free): Always define.
16918         (VEC_stack_alloc): Define if GATHER_STATISTICS is non-0.
16919         * alloc-pool.c (alloc_pool_descriptor): Always define.
16920         (create_alloc_pool): Convert #ifdef GATHER_STATISTICS to if-code.
16921         (empty_alloc_pool): Likewise.
16922         (pool_alloc): Likewise.
16923         (pool_free): Likewise.
16924         (dump_alloc_pool_statistics): Likewise.
16925         (print_statistics): Always define.
16926         * bitmap.c (struct bitmap_descriptor): Always define.
16927         (bitmap_register): Pass ALONE_FINAL_PASS_MEM_STAT.
16928         (register_overhead): Always define.
16929         (bitmap_element_free): Convert #ifdef GATHER_STATISTICS to if-code.
16930         (bitmap_element_allocate): Likewise.
16931         (bitmap_elt_clear_from): Likewise.
16932         (bitmap_obstack_alloc_stat): Likewise.
16933         (bitmap_gc_alloc_stat): Likewise.
16934         (bitmap_obstack_free): Likewise.
16935         (bitmap_find_bit): Likewise.
16936         (bitmap_ior_and_into):  Likewise.
16937         (bitmap_print): Likewise.
16938         (dump_bitmap_statistics): Likewise. Return if GATHER_STATISTICS is 0.
16939         * gimple.c (gimple_alloc_counts, gimple_alloc_sizes): Always define.
16940         (gimple_alloc_kind_names): Likewise.
16941         (gimple_alloc_stat): Convert #ifdef GATHER_STATISTICS to if-code.
16942         (dump_gimple_statistics): Likewise. Return if GATHER_STATISTICS is 0.
16943         * rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
16944         rtvec_alloc_sizes): Always define.
16945         (rvec_alloc): Convert #ifdef GATHER_STATISTICS to if-code.
16946         (rtx_alloc_stat): Likewise.
16947         (dump_rtx_statistics): Likewise. Return if GATHER_STATISTICS is 0.
16948         * tree.c (_obstack_allocated_p, tree_code_counts, tree_node_counts,
16949         tree_node_sizes, tree_node_kind_names): Always define.
16950         (record_node_allocation_statistics): Convert #ifdef GATHER_STATISTICS
16951         to if-code.
16952         (type_hash_canon): Likewise.
16953         (dump_tree_statistics): Likewise.
16954         * tree-ssanames.c (ssa_name_nodes_reused, ssa_name_nodes_created):
16955         Always define.
16956         (ssanames_print_statistics): Likewise.
16957         (make_ssa_name_fn): Convert #ifdef GATHER_STATISTICS to if-code.
16958         * tree-phinodes.c (phi_nodes_reused, phi_nodes_created): Always define.
16959         (phinodes_print_statistics): Likewise.
16960         (allocate_phi_node): Convert #ifdef GATHER_STATISTICS to if-code.
16961         * vec.c (struct vec_descriptor): Always define.
16962         (hash_descriptor, eq_descriptor, ptr_hash_entry, hash_ptr, eq_ptr,
16963         vec_descriptor, rester_overhead, free_overhead): Likewise.
16964         (cmp_statistic): Likewise.
16965         (vec_heap_free): Convert #ifdef GATHER_STATISTICS to if-code.
16966         (vec_heap_o_reserve_1): Likewise.
16967         (dump_vec_loc_statistics): Likewise.
16969 2012-07-24  Richard Guenther  <rguenther@suse.de>
16971         PR tree-optimization/53616
16972         * tree-loop-distribution.c (ldist_gen): Do not change
16973         partition ordering when merging partitions.
16975 2012-07-24  Alan Modra  <amodra@gmail.com>
16977         PR target/53914
16978         PR target/54009
16979         * config/rs6000/constraints.md (Y): Use mem_operand_gpr.
16980         * config/rs6000/predicates.md (word_offset_memref_operand): Delete.
16981         Adjust all rs6000_legitimate_offset_address_p calls.
16982         * config/rs6000/rs6000-protos.h (mem_operand_gpr): Declare.
16983         (rs6000_secondary_reload_gpr): Declare.
16984         (rs6000_legitimate_offset_address_p): Update prototype.
16985         (rs6000_offsettable_memref_p): Delete.
16986         (rs6000_secondary_reload_ppc64): Delete.
16987         * config/rs6000/rs6000.c (address_offset): New function.
16988         (mem_operand_gpr): Likewise.
16989         (rs6000_legitimate_offset_address_p): Add worst_case param.  When
16990         not worst_case assume class of regs with least restrictive offsets.
16991         Adjust all calls.
16992         (legitimate_lo_sum_address_p): Simplify register mode tests.
16993         (rs6000_legitimize_address): Likewise.  Assume best case offset
16994         addressing.  Combine ELF and MACHO lo_sum code.
16995         (rs6000_mode_dependent_address): Correct offset addressing limits.
16996         (rs6000_offsettable_memref_p): Make static, add reg_mode param.
16997         Use reg_mode to help rs6000_legitimate_offset_address_p.
16998         (rs6000_secondary_reload): Use address_offset.  Handle 32-bit multi
16999         gpr load/store when offset too large.
17000         (rs6000_secondary_reload_gpr): Renamed rs6000_secondary_reload_ppc64.
17001         (rs6000_split_multireg_move): Adjust rs6000_offsettable_memref_p calls.
17002         * config/rs6000/rs6000.md (movdf_hardfloat32): Use 'Y' constraint
17003         for gpr load/store.  Order alternatives as r->Y,Y->r,r->r and
17004         d->m,m->d,d->d.  Correct size of gpr load/store.
17005         (movdf_softfloat32): Use 'Y' constraint for gpr load/store.  Order
17006         alternatives.
17007         (movti_ppc64): Likewise.
17008         (movdi_internal32): Likewise.  Also disparage fprs.
17009         (movdi_mfpgpr, movdi_internal64): Likewise.
17010         (movtf_internal): Use 'm' for fpr load/store.  Order alternatives.
17011         (movtf_softfloat): Order alternatives.
17012         (extenddftf2_internal): Use 'm' and 'Y' for store.
17013         (movti_power, movti_string): Use 'Y' for gpr load/store.  Order.
17014         (stack_protect_setdi, stack_protect_testdi): Likewise.
17015         (movdf_hardfloat64_mfpgpr, movdf_hardfloat64): Order alternatives.
17016         (movdf_softfloat64): Likewise.
17017         (reload_<mode>_store): Adjust reload_di_store to provide
17018         reload_si_store as well.
17019         (reload_<mode>_load): Likewise.
17021 2012-07-23  Oleg Endo  <olegendo@gcc.gnu.org>
17023         PR target/51244
17024         * config/sh/predicates.md (general_movsrc_operand,
17025         general_movdst_operand): Reject T_REG.
17026         * config/sh/sh.md (*extendqisi2_compact_reg, *extendhisi2_compact_reg,
17027         movsi_i, movsi_ie, movsi_i_lowpart, *movqi_reg_reg, *movhi_reg_reg):
17028         Remove T_REG alternatives.
17029         (*negtstsi): New insn.
17031 2012-07-23  Oleg Endo  <olegendo@gcc.gnu.org>
17033         PR target/53511
17034         * config/sh/sh.md (mulsf3_ie): Delete.
17035         (mulsf3_i4): Rename to mulsf3_i.
17036         (mulsf3): Emit mulsf3_i insn.
17038 2012-07-23  Oleg Endo  <olegendo@gcc.gnu.org>
17040         * config/sh/sh.md (addc1, subc1): Delete.
17041         (adddi3_compact): Use addc instead of addc1.
17042         (subdi3_compact): Use subc instead of subc1.
17044 2012-07-23  Uros Bizjak  <ubizjak@gmail.com>
17046         * config/i386/i386-protos.h (ix86_lea_outperforms): Remove prototype.
17047         * config/i386/i386.c (ix86_lea_outperforms): Make static.  Make
17048         split_cost argument signed.
17049         (ix86_avoid_lea_for_add): Cleanup.
17050         (ix86_use_lea_for_mov): Use INVALID_REGNUM instead of -1.
17051         (ix86_avoid_lea_for_addr): Ditto.  Make split_cost signed.
17052         Use gen_lowpart instead of gen_rtx_SUBREG.  Cleanup.
17054 2012-07-23  Ulrich Weigand  <ulrich.weigand@linaro.org>
17056         * config/arm/arm.c (arm_reorg): Ensure all insns are split.
17058 2012-07-23  Uros Bizjak  <ubizjak@gmail.com>
17060         PR target/53961
17061         * config/i386/i386.md (*lea): Add asserts to detect invalid addresses.
17062         * config/i386/i386.c (ix86_print_operand_address): Ditto.
17063         (ix86_decompose_address): Allow (zero_extend:DI (subreg:SI (...)))
17064         addresses.  Prevent zero extensions of CONST_INT operands.
17066 2012-07-23  Steven Bosscher  <steven@gcc.gnu.org>
17068         * sbitmap.h (struct int_list): Remove.
17069         (sbitmap_intersect_of_predsucc, sbitmap_union_of_predsucc):
17070         Remove prototypes of non-existing function.
17071         (sbitmap_intersect_of_predecessors, sbitmap_intersect_of_successors,
17072         sbitmap_union_of_predecessors, sbitmap_union_of_successors): Remove
17073         unused defines.
17074         (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
17075         sbitmap_union_of_succs, sbitmap_union_of_preds): Move prototypes to...
17076         * basic-block.h: ... here.
17077         * sbitmap.c: Do not include basic-block.h.
17078         (sbitmap_intersection_of_succs, sbitmap_intersection_of_preds,
17079         sbitmap_union_of_succs, sbitmap_union_of_preds): Move functions to...
17080         * cfganal.c: ... here.
17081         * bt-load.c (compute_out, link_btr_uses): Update for above changes.
17082         * gcse.c (compute_code_hoist_vbeinout): Likewise.
17083         * lcm.c (compute_antinout_edge, compute_available): Likewise.
17084         * Makefile.in: Fix sbitmap.o dependencies.
17086 2012-07-23  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
17087             Nick Clifton  <nickc@redhat.com>
17089         * config/frv/frv-protos.h (frv_ifcvt_machdep_init): Prototype.
17090         * config/frv/frv.c (frv_ifcvt_machdep_init): Change type of
17091         (unused) parameter to void *.
17093 2012-07-23  Richard Guenther  <rguenther@suse.de>
17095         * tree-ssa-alias.c (dump_alias_info): Walk over local decls
17096         instead of referenced vars.
17098 2012-07-23  Steven Bosscher  <steven@gcc.gnu.org>
17100         * coverage.c: Refer to "notes file" instead of "graph file"
17101         in all comments.  Explain history of bbg prefix.
17102         * gcov-io.h: Likewise.
17103         * gcov.c: Likewise.
17104         (find_source): Likewise in fnotice.
17105         (read_graph_file): Likewise.
17106         (read_count_file): Likewise.
17107         * doc/gcov.texi: Document -fprofile-dir flag.  Add "notes file"
17108         and "data file" explicitly in the explanation of the files.
17110 2012-07-22  Steven Bosscher  <steven@gcc.gnu.org>
17112         PR tree-optimization/53881
17113         * tree-cfg.c (group_case_labels_stmt): Look up the basic block
17114         for each label and compare them instead of labels.
17116 2012-07-22  Steven Bosscher <steven@gcc.gnu.org>
17118         * opts.c (common_handle_option): Do not set
17119         flag_value_profile_transformations for -fprofile-generate.
17120         * profile.c (instrument_values): Use COUNTER_FOR_HIST_TYPE.
17121         (BB_TO_GCOV_INDEX): Remove.
17122         (output_location): Don't use it.
17123         (branch_prob): Likewise.  Don't fiddle with the index of
17124         ENTRY_BLOCK_PTR and EXIT_BLOCK_PTR.  Use clear_aux_for_blocks.
17125         (find_spanning_tree):
17126         * gcov.c (struct function_info): Document that blocks 0 and 1
17127         are the entry resp. exit blocks in gcov, too, like in GCC itself.
17128         (solve_flow_graph): Use ENTRY_BLOCK and EXIT_BLOCK for special
17129         blocks identification.
17130         (output_lines): Likewise.
17131         * value-prof.c (gimple_value_profile_transformations): Do not
17132         test flag_value_profile_transformations again.
17133         (gimple_ic_transform): Take a gimple_stmt_iterator like all other
17134         transformation functions.
17135         (gimple_values_to_profile):
17136         Don't test flag_value_profile_transformations
17137         * tree-profile.c (tree_profiling): Assert that the cgraph is in
17138         the CGRAPH_STATE_IPA_SSA state.
17139         Do not set, or look at, after_tree_profile.
17140         * function.h (struct function): Remove after_tree_profile bit.
17141         * omp-low.c (expand_omp_taskreg): Don't set after_tree_profile.
17142         * tree-inline.c (initialize_cfun): Don't copy it.
17143         * lto-streamer-out.c (output_struct_function_base): Don't stream it.
17144         * lto-streamer-in.c (input_struct_function_base): Likewise.
17146 2012-07-22  Oleg Endo  <olegendo@gcc.gnu.org>
17148         * config/sh/sh.h (TARGET_DYNSHIFT): New macro.
17149         (SH_DYNAMIC_SHIFT_COST): Use it.
17150         * config/sh/sh.c (expand_ashiftrt, shl_sext_kind): Likewise.
17151         (sh_dynamicalize_shift_p): Add TARGET_DYNSHIFT condition.
17152         Add sanity check for input value.  Add function description.
17153         * config/sh/sh.md (ashlsi3, ashlsi3_std, ashrsi3_d, lshrsi3,
17154         lshrsi3_d): Use TARGET_DYNSHIFT.
17156 2012-07-22  Oleg Endo  <olegendo@gcc.gnu.org>
17158         * config/sh/sh.md (negc): Delete expander.
17159         (*negc): Rename insn to negc.
17161 2012-07-22  Uros Bizjak  <ubizjak@gmail.com>
17163         PR target/53961
17164         * config/i386/i386.md (*lea): New insn pattern.
17165         (*lea_1): Remove.
17166         (*lea<mode>_2): Ditto.
17167         (*lea_{3,4,5,6}_zext): Ditto.
17168         * config/i386/predicates.md (lea_address_operand): Do not reject
17169         zero-extended address operands.
17170         * config/i386/constraints.md (j): Remove address constraint.
17171         * config/i386/i386.c (ix86_decompose_address): Allow SImode subreg
17172         of an address.
17173         (ix86_print_operand_address): Handle SImode subreg of an address.
17174         (ix86_avoid_lea_for_addr): Reject zero-extended addresses for now.
17176 2012-07-22  Hans-Peter Nilsson  <hp@axis.com>
17178         Emit executable-stack note correctly for CRIS targets.
17179         * config/cris/cris.c (cris_file_end): New function.
17180         (TARGET_ASM_FILE_END): Define.
17182 2012-07-22  Chung-Lin Tang  <cltang@codesourcery.com>
17183             Maxim Kuvyrkov  <maxim@codesourcery.com>
17184             NetLogic Microsystems Inc.
17186         * config/mips/mips.c (mips_issue_rate): Handle XLP.
17187         * config/mips/mips.md: Include xlp.md.
17188         * config/mips/xlp.md: New file.
17190 2012-07-21  Steven Bosscher <steven@gcc.gnu.org>
17192         PR gcov-profile/32543
17193         * profile.c (branch_prob): Update total_num_edges_instrumented and
17194         report the number of edges to instrument.
17196 2012-07-21  Oleg Endo  <olegendo@gcc.gnu.org>
17198         * config/sh/sh.md: Correct comment regarding clrt and sett insns.
17200 2012-07-21  Andrew Pinski  <apinski@cavium.com>
17202         * config/mips/mips.md (*popcountdi2_trunc): New pattern
17203         to handle popcount of a truncation.
17205 2012-07-21  Andrew Pinski  <apinski@cavium.com>
17207         * config/mips/mips-protos.h (mips_expand_ext_as_unaligned_load):
17208         Add a bool argument.
17209         * config/mips/mips.c (mips_block_move_straight): Update call to
17210         mips_expand_ext_as_unaligned_load.
17211         (mips_expand_ext_as_unaligned_load): Add unsigned_p argument.
17212         Accept DImode dest when the width is that of SImode.
17213         * config/mips/mips.md (extv): Update call to
17214         mips_expand_ext_as_unaligned_load.
17215         (extzv): Likewise.
17217 2012-07-21  Andrew Pinski  <apinski@cavium.com>
17219         * config/mips/mips.c (mips_get_unaligned_mem): Copy *op after calling
17220         adjust_address.
17222 2012-07-20  Maxim Kuvyrkov  <maxim@codesourcery.com>
17224         * config/mips/mips.md (define_attr sync_*): Move before "type".
17225         (define_attr "type"): New values "atomic" and "syncloop".
17226         * config/mips/sync.md (atomic_exchange<mode>, atomic_fetch_add<mode>):
17227         Set "type" attribute.
17228         * config/mips/generic.md (generic_atomic, generic_syncloop):
17229         New reservations.
17230         * config/mips/10000.md, config/mips/20kc.md,
17231         * config/mips/24k.md, config/mips/4130.md,
17232         * config/mips/4k.md, config/mips/5400.md,
17233         * config/mips/5500.md, config/mips/5k.md,
17234         * config/mips/7000.md, config/mips/74k.md,
17235         * config/mips/9000.md, config/mips/loongson2ef.md,
17236         * config/mips/loongson3a.md, config/mips/octeon.md,
17237         * config/mips/sb1.md, config/mips/sr71k.md,
17238         * config/mips/xlr.md: Handle "atomic" and "syncloop" types.
17240 2012-07-20  Oleg Endo  <olegendo@gcc.gnu.org>
17242         * config/sh/sh.md: Group and sort shift related patterns.
17243         (ashlsi3_n, *ashlhi3_n, lshrsi3_n): Remove length attributes.
17245 2012-07-20  Hans-Peter Nilsson  <hp@axis.com>
17247         * config/cris/cris.c (cris_asm_output_ident): Remove unused
17248         local variables section_asm_op, size, buf.
17250 2012-07-20  Pat Haugen <pthaugen@us.ibm.com>
17251             Steven Bosscher  <steven@gcc.gnu.org>
17253         * config/rs6000/power4.md (power4-store-update): Fix reservation.
17254         (power4-three): Likewise.
17256 2012-07-20  Sameera Deshpande  <sameera.deshpande@arm.com>
17257             Greta Yorsh  <Greta.Yorsh@arm.com>
17259         * config/arm/arm.c (arm_cortex_a15_tune): New tune.
17260         * config/arm/arm-cores.def (cortex-a15): Use it.
17262 2012-07-20  Sameera Deshpande  <sameera.deshpande@arm.com>
17263             Greta Yorsh  <Greta.Yorsh@arm.com>
17265         * config/arm/arm-protos.h (tune_params): Add prefer_ldrd_strd.
17266         * config/arm/arm.c (arm_slowmul_tune): Initialize it.
17267         (arm_fastmul_tune, arm_strongarm_tune): Likewise.
17268         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune): Likewise.
17269         (arm_cortex_tune, arm_cortex_a5_tune, arm_cortex_a9_tune): Likewise.
17270         (arm_fa726te_tune): Likewise.
17272 2012-07-20  Richard Guenther  <rguenther@suse.de>
17274         * tree-dfa.c (collect_dfa_stats): Simplify.
17275         * tree-ssa-structalias.c (compute_may_aliases): Do not dump
17276         referenced vars.
17277         * cfgexpand.c (estimated_stack_frame_size): Walk over local
17278         decls instead of referenced vars.
17279         * tree-ssa.c (delete_tree_ssa): Simplify.
17280         * tree-tailcall.c (find_tail_calls): Walk over local decls
17281         instead of referenced vars.
17282         (add_virtual_phis): Remove.
17283         (tree_optimize_tail_calls_1): Instead mark the virtual operand
17284         for renaming.
17286 2012-07-20  Steven Bosscher  <steven@gcc.gnu.org>
17288         * basic-block.h (BB_FLAGS_TO_PRESERVE): New define.
17289         (brief_dump_cfg): Update prototype to take flags argument.
17290         (check_bb_profile): Remove prototype.
17291         * tracer.c (tracer): Update brief_dump_cfg calls.
17292         * cfghooks.c (dump_bb): Do not pass TDF_COMMENT to dump_bb_info.
17293         Call dump_bb_info before and after the cfghook dump_bb.  Terminate
17294         the dump with a newline.
17295         (dump_flow_info): Do not call check_bb_profile.
17296         * cfg.c (clear_bb_flags): Update using BB_FLAGS_TO_PRESERVE.
17297         (check_bb_profile): Make static.  Take indent and flags arguments.
17298         (dump_bb_info): Always dump loop depth.  With TDF_DETAILS, call
17299         check_bb_profile.  Print one edge per line.
17300         (brief_dump_cfg): Take a flags argument, and filter out
17301         TDF_COMMENT and TDF_DETAILS.
17302         * pretty-print.c (pp_base_newline): Set pp_needs_newline to false.
17303         * gimple-pretty-print.c (dump_gimple_bb_header): Do not use
17304         dump_bb_info here, it is already called from dump_bb.  Idem for
17305         check_bb_profile.
17306         (dump_gimple_bb_footer): Likewise.
17307         (gimple_dump_bb_buff): Call pp_flush after dump_gimple_stmt to
17308         avoid broken dumps for statement histograms.
17309         (gimple_dump_bb): Handle ENTRY_BLOCK and EXIT_BLOCK.  Do
17310         not call pp_flush here, the buffer should be empty.
17311         * sched-rgn.c (debug_region): Pass TDF_BLOCKS to dump_bb.
17312         * sched-vis.c (debug_bb_slim): Likewise.
17313         * tree-cfg.c (remove_bb): Pass dump_flags to dump_bb.
17314         (gimple_debug_bb): Pass TDF_BLOCKS to dump_bb.
17315         (gimple_dump_cfg): Do brief_dump_cfg with TDF_COMMENT.
17316         (dump_function_to_file): Do not call check_bb_profile on
17317         ENTRY_BLOCK and EXIT_BLOCK, check_bb_profile doesn't handle them.
17318         Use dump_bb instead of gimple_dump_bb.
17319         (print_loops_bb): Use dump_bb instead of gimple_dump_bb.
17320         * passes.c (execute_function_dump): Always call print_rtl_with_bb
17321         for RTL dumps.
17322         * cfgrtl.c (print_rtl_with_bb): Handle printing without an up-to-date
17323         CFG.  With TDF_BLOCKS and TDF_DETAILS, do DF dumps at the top and
17324         bottom of each basic block.
17326 2012-07-20  Richard Guenther  <rguenther@suse.de>
17328         PR tree-optimization/54031
17329         * tree-ssa-ccp.c (get_value_from_alignment): Use
17330         get_pointer_alignment_1.
17332 2012-07-20  Richard Guenther  <rguenther@suse.de>
17334         * tree-inline.c (add_local_variables): Remove check_var_ann
17335         parameter and dead code.
17336         (expand_call_inline): Adjust.
17337         (tree_function_versioning): Likewise.
17339 2012-07-20  Jakub Jelinek  <jakub@redhat.com>
17341         PR c++/28656
17342         * tree-vrp.c (nonnull_arg_p): Handle all nonnull attributes instead
17343         of just the first one.
17345 2012-07-20  Richard Guenther  <rguenther@suse.de>
17347         * builtins.c (get_object_alignment_2): Correct offset handling
17348         when using type alignment of a MEM_REF kind base.
17350 2012-07-20  Kirill Yukhin  <kirill.yukhin@intel.com>
17352         PR target/53877
17353         * config/i386/lzcntintrin.h (_lzcnt_u32): New.
17354         (_lzcnt_u64): Ditto.
17356 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
17358         * config/sparc/sparc.md (adddi3_insn_sp32): Add earlyclobber.
17360 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
17362         * tree-ssa-forwprop.c (combine_conversions): Punt if the RHS of the
17363         defining statement is a SSA name that occurs in abnormal PHIs.
17365 2012-07-19  Eric Botcazou  <ebotcazou@adacore.com>
17367         * gimple-fold.c (canonicalize_constructor_val): Strip only useless type
17368         conversions.
17370 2012-07-19  Jakub Jelinek  <jakub@redhat.com>
17372         PR rtl-optimization/53942
17373         * function.c (assign_parm_setup_reg): Avoid zero/sign extension
17374         directly from likely spilled non-fixed hard registers, move them
17375         to pseudo first.
17377 2012-07-19  Steve Ellcey  <sellcey@mips.com>
17379         * config/mips/mips.c (mips_set_mips16_mode): Clear SYNCI_MASK in
17380         MIPS16 mode.
17382 2012-07-19  Jason Merrill  <jason@redhat.com>
17384         PR debug/53235
17385         * dwarf2out.c (get_die_parent): New.
17386         (generate_type_signature): Use it.
17388 2012-07-19  Richard Henderson  <rth@redhat.com>
17390         * config/ia64/vect.md (smulv4hi3_highpart): New.
17391         (umulv4hi3_highpart): New.
17392         (vec_widen_smult_even_v4hi): Rename from pmpy2_even.
17393         (vec_widen_smult_odd_v4hi): Rename from pmpy2_odd.
17394         (udot_prodv8qi, sdot_prodv8qi): Remove.
17395         (sdot_prodv4hi, udot_prodv4hi): Remove.
17396         * config/ia64/ia64.c (ia64_expand_dot_prod_v8qi): Remove.
17397         * config/ia64/ia64-protos.h: Update.
17399         * tree-vect-patterns.c (vect_recog_divmod_pattern): Do not require
17400         vectors larger than UNITS_PER_WORD.
17402         * expr.c (store_constructor): Initialize icode with CODE_FOR_nothing.
17403         * tree-vect-stmts.c (vectorizable_operation): Use LAST_INSN_CODE for
17404         dummy != CODE_FOR_nothing value.
17406 2012-07-19  Uros Bizjak  <ubizjak@gmail.com>
17408         * doc/tm.texi.in (MODE_AFTER): Add entity as the first macro argument.
17409         * doc/tm.texi: Regenerate.
17410         * mode-switching.c (optimize_mode_switching): Update MODE_AFTER call.
17411         * config/sh/sh.h (MODE_AFTER): Update.
17412         * config/epiphany/epiphany.h (MODE_AFTER): Update.
17414 2012-07-19  Jakub Jelinek  <jakub@redhat.com>
17416         PR middle-end/54017
17417         * tree-cfgcleanup.c (cleanup_omp_return): Remove.
17418         (cleanup_tree_cfg_bb): Don't call it.
17419         * omp-low.c (expand_omp_sections): Fix up the !exit_reachable case
17420         handling.
17422 2012-07-19  Christian Bruel  <christian.bruel@st.com>
17424         PR target/54029
17425         * config/sh/sh.c (gen_far_branch): Set JUMP_LABEL for return jumps.
17427 2012-07-19  Richard Guenther  <rguenther@suse.de>
17428             Eric Botcazou  <ebotcazou@adacore.com>
17430         * tree-ssa-ccp.c (valid_lattice_transition): Clarify comment
17431         about transition from invariant to known bits.
17432         (likely_value): Addresses with UNDEFINED components are UNDEFINED.
17434 2012-07-19  Richard Guenther  <rguenther@suse.de>
17436         PR tree-optimization/53970
17437         * tree-vect-data-refs.c (not_size_aligned): Avoid sign-compare warning.
17439 2012-07-19  Tristan Gingold  <gingold@adacore.com>
17440             Richard Henderson  <rth@redhat.com>
17442         * opts.c (finish_options): Handle UI_SEH.
17443         * expr.c (build_personality_function): Handle UI_SEH.
17444         * dwarf2out.c (dwarf2out_begin_prologue): Handle UI_SEH.
17445         * coretypes.h (unwind_info_type): Add UI_SEH.
17446         * config/i386/winnt.c (i386_pe_seh_emit_except_personality):
17447         New function.
17448         (i386_pe_seh_init_sections): Likewise.
17449         * config/i386/cygming.h (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): Define.
17450         (TARGET_ASM_INIT_SECTIONS): Define.
17451         * common/config/i386/i386-common.c (TARGET_EXCEPT_UNWIND_INFO): Define.
17452         (i386_except_unwind_info): New function.
17454 2012-07-18  Maciej W. Rozycki  <macro@codesourcery.com>
17455             Chao-ying Fu  <fu@mips.com>
17457         * config/mips/mips.opt (mmcu): New option.
17458         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define
17459         _mips_mcu when TARGET_MCU.
17460         (ASM_SPEC): Pass mcu options to the assembler.
17461         * doc/invoke.texi (MIPS Options): Document -mmcu and -mno-mcu.
17463 2012-07-18  Ralf Corsépius  <ralf.corsepius@rtems.org>
17465         * config.gcc (v850-*-rtems*): New target.
17466         * config/v850/rtems.h: New.
17467         * config/v850/t-rtems: New.
17469 2012-07-18  Bill Schmidt  <wschmidt@linux.ibm.com>
17471         * doc/invoke.texi: Add -fhoist-adjacent-loads and -ftree-slsr to list
17472         of flags controlling optimization; add -ftree-slsr to list of flags
17473         enabled by default at -O; add -fhoist-adjacent-loads to list of flags
17474         enabled by default at -O2; add -fvect-cost-model to list of flags
17475         enabled by default at -O3; document -fhoist-adjacent-loads and
17476         -ftree-slsr.
17477         * opts.c (default_option): Make -ftree-slsr default at -O1 and above.
17478         * gimple-ssa-strength-reduction.c (gate_strength_reduction): Use
17479         flag_tree_slsr.
17480         * common.opt: Add -ftree-slsr with flag_tree_slsr.
17482 2012-07-18  Jie Zhang  <jzhang918@gmail.com>
17483             Julian Brown  <julian@codesourcery.com>
17485         * config/arm/arm.c (arm_rtx_costs_1): Adjust cost for CONST_VECTOR.
17486         (arm_size_rtx_costs): Likewise.
17487         (neon_valid_immediate): Add a case for double 0.0.
17489 2012-07-18  Andrew Stubbs  <ams@codesourcery.com>
17490             Mark Shinwell  <shinwell@codesourcery.com>
17491             Julian Brown  <julian@codesourcery.com>
17493         * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp)
17494         (*movdi_vfp_cortexa8, *movsf_vfp, *thumb2_movsf_vfp)
17495         (*movdf_vfp, *thumb2_movdf_vfp, *movsfcc_vfp)
17496         (*thumb2_movsfcc_vfp, *movdfcc_vfp, *thumb2_movdfcc_vfp): Add
17497         neon_type.
17498         * config/arm/arm.md (neon_type): Update comment.
17500 2012-07-18  Richard Guenther  <rguenther@suse.de>
17502         PR tree-optimization/53970
17503         * tree.h (contains_packed_reference): Remove.
17504         * expr.c (contains_packed_reference): Likewise.
17505         * tree-vect-data-refs.c (not_size_aligned): New function.
17506         (vector_alignment_reachable_p): Use it.
17507         (vect_supportable_dr_alignment): Likewise.
17509 2012-07-18  Richard Guenther  <rguenther@suse.de>
17511         * tree.h (get_object_or_type_alignment): Remove.
17512         * builtins.c (get_object_alignment_2): New function copied from
17513         get_object_alignment_1.  Take extra argument to indicate whether
17514         we take the address of EXP.  Rework to use type alignment information
17515         if not, and return whether the result is an approximation or not.
17516         (get_object_alignment_1): Wrap around get_object_alignment_2.
17517         (get_pointer_alignment_1): Call get_object_alignment_2 indicating
17518         we take the address.
17519         (get_object_or_type_alignment): Remove.
17520         * expr.c (expand_assignment): Call get_object_alignment.
17521         (expand_expr_real_1): Likewise.
17523 2012-07-18  Nick Clifton  <nickc@redhat.com>
17525         * doc/invoke.texi (ARM Options): Document -munaligned-access.
17527 2012-07-18  Oleg Endo  <olegendo@gcc.gnu.org>
17529         * config/sh/sh.md (mulsidi3, umulsidi3): Remove constraints in
17530         expander.  Use arith_reg_dest predicate.
17531         (rotldi3, rotrdi3): Remove constraints in expander.
17532         (adddi3_compact, subdi3_compact, mulsidi3_compact, umulsidi3_compact,
17533         ashlsi3_n, *ashlhi3_n, ashrsi2_16, ashrsi2_31, lshrsi3_n): Convert to
17534         insn_and_split.
17536 2012-07-18  Oleg Endo  <olegendo@gcc.gnu.org>
17538         PR target/33135
17539         * config/sh/sh.opt (mieee): Use Var instead of Mask.  Correct
17540         description.
17541         * config/sh/sh.c (sh_option_override): Do not change
17542         flag_finite_math_only.  Set TARGET_IEEE to complement of
17543         flag_finite_math_only.
17544         * doc/invoke.texi (SH options): Add mno-ieee.  Correct description
17545         of mieee and mno-ieee behavior.
17547 2012-07-18  Steven Bosscher  <steven@gcc.gnu.org>
17549         * graphite-poly.c (print_pbb_body): Fixup dump_bb call.
17551 2012-07-18  Steven Bosscher  <steven@gcc.gnu.org>
17553         * dumpfile.h (TDF_COMMENT): New define.
17554         * basic-block.h (EDGE_FALLTHRU, EDGE_ABNORMAL, EDGE_ABNORMAL_CALL,
17555         EDGE_EH, EDGE_FAKE, EDGE_DFS_BACK, EDGE_CAN_FALLTHRU,
17556         EDGE_IRREDUCIBLE_LOOP, EDGE_SIBCALL, EDGE_LOOP_EXIT, EDGE_TRUE_VALUE,
17557         EDGE_FALSE_VALUE, EDGE_EXECUTABLE, EDGE_CROSSING, EDGE_PRESERVE):
17558         Move to new file cfg-flags.h.
17559         (enum cfg_edge_flags): New enum, using cfg-flags.h.
17560         (EDGE_ALL_FLAGS): Compute value automatically.
17561         (BB_NEW, BB_REACHABLE, BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK,
17562         BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION,
17563         BB_DUPLICATED, BB_NON_LOCAL_GOTO_TARGET, BB_RTL,
17564         BB_FORWARDER_BLOCK, BB_NONTHREADABLE_BLOCK, BB_MODIFIED, BB_VISITED,
17565         BB_IN_TRANSACTION): Move to new file cfg-flags.h.
17566         (enum bb_flags): Rename to cfg_bb_flags.  Use cfg-flags.h.
17567         (BB_ALL_FLAGS): New, compute value automatically.
17568         (dump_bb_info): Update prototype.
17569         (dump_edge_info): Update prototype.
17570         * cfg-flags.h: New file.
17571         * cfg.c (dump_edge_info): Take flags argument.  Be verbose only if
17572         TDF_DETAILS and not TDF_SLIM.  Include cfg-flags.h for bitnames.
17573         Check that the edge flags are within the range of EDGE_ALL_FLAGS.
17574         (debug_bb): Update dump_bb call.
17575         (dump_cfg_bb_info): Remove.
17576         (dump_bb_info): New function.  Use cfg-flags.h for bitnames.
17577         Adjust verbosity using TDF_* flags.  Check that the basic block flags
17578         are within the range of BB_ALL_FLAGS.
17579         (brief_dump_cfg): Use dump_bb_info instead of dump_cfg_bb_info.
17580         * cfghooks.h (struct cfghooks): Update dump_bb hook, take a FILE
17581         first for consistency with other dump functions.
17582         (dump_bb): Update prototype accordingly.
17583         * cfghooks.c: Include dumpfile.h.
17584         (verify_flow_info): Update dump_edge_info calls.
17585         (dump_bb): Take a flags argument and pass it around.
17586         Use dump_bb_info to dump common information about a basic block.
17587         (dump_flow_info): Moved here from cfgrtl.c.  Make IL agnostic.
17588         (debug_flow_info): Moved here from cfgrtl.c.
17589         * profile.c (is_edge_inconsistent): Update dump_bb calls.
17590         * loop-invariant.c (find_defs): Update print_rtl_with_bb call.
17591         * rtl.h (debug_bb_n_slim, debug_bb_slim, print_rtl_slim,
17592         print_rtl_slim_with_bb): Remove prototypes.
17593         (dump_insn_slim): Adjust prototype to take a const_rtx.
17594         (print_rtl_with_bb): Adjust prototype.
17595         * sched-rgn.c (debug_region): Use dump_bb instead of debug_bb_n_slim.
17596         * sched-vis.c (dump_insn_slim): Take a const_rtx.
17597         (debug_insn_slim): Prototype here near DEBUG_FUNCTION marker.
17598         (print_rtl_slim_with_bb): Remove.
17599         (print_rtl_slim): Rename to debug_rtl_slim.  Print only insn info,
17600         not basic block info (print_rtl_with_bb with TDF_SLIM should be used
17601         for that.  Prototype here near DEBUG_FUNCTION marker.
17602         (debug_bb_slim): Prototype here near DEBUG_FUNCTION marker.
17603         Use dump_bb.
17604         (debug_bb_n_slim): Prototype here near DEBUG_FUNCTION marker.
17605         * tree-cfg.c (gimple_can_merge_blocks_p): Use EDGE_COMPLEX.
17606         (remove_bb): Update dump_bb call.
17607         (gimple_debug_bb): Use dump_bb.
17608         (dump_function_to_file): Update gimple_dump_bb call.
17609         (print_loops_bb): Likewise.
17610         * tree-flow.h (gimple_dump_bb): Update prototype.
17611         * gimple-pretty-print.c (dump_bb_header): Rename to
17612         dump_gimple_bb_header.  Write to a stream instead of a pretty
17613         printer.  Use dump_bb_info to dump basic block info.
17614         (dump_bb_end): Rename to dump_gimple_bb_footer.  Write to a
17615         stream instead of a pretty printer.  Use dump_bb_info.
17616         (gimple_dump_bb_buff): Do not call dump_bb_header and dump_bb_end.
17617         (gimple_dump_bb): Do it here with dump_gimple_bb_header and
17618         dump_gimple_bb_footer.
17619         * cfgrtl.c (rtl_dump_bb): Update prototype.  Only dump DF if the
17620         dump flags have TDF_DETAILS.  Use dump_insn_slim if TDF_SLIM.
17621         (print_rtl_with_bb): Take a flags argument and pass it around.
17622         Use dump_insn_slim if TDF_SLIM.
17623         (dump_bb_info): Removed and re-incarnated in cfg.c.
17624         (dump_flow_info): Moved to cfghooks.c.
17625         (debug_flow_info): Moved to cfghooks.c.
17626         * passes.c (execute_function_dump): Unconditionally use
17627         print_rtl_with_bb for RTL dumps, now that it understands TDF_SLIM.
17628         * final.c (dump_basic_block_info): Update dump_edge_info calls.
17629         * tree-vrp.c (dump_asserts_for): Likewise.
17630         * ifcvt.c (if_convert): Unconditionally use print_rtl_with_bb.
17631         * tree-if-conv.c (if_convertible_bb_p): Don't look at
17632         EDGE_ABNORMAL_CALL, it has no meaning in the GIMPLE world.
17633         * trans-mem.c (make_tm_edge): Don't set EDGE_ABNORMAL_CALL,
17634         for the same reason.
17635         * config/rl78/rl78.c (rl78_reorg): Update print_rtl_with_bb calls.
17637 2012-07-17  Richard Guenther  <rguenther@suse.de>
17639         * tree-vect-data-refs.c (vect_get_new_vect_var): Add referenced
17640         vars here, use create_tmp_reg where appropriate.
17641         (vect_create_addr_base_for_vector_ref): Do not add referenced
17642         vars here, use create_tmp_reg where appropriate.
17643         (vect_create_data_ref_ptr): Likewise.
17644         (vect_create_destination_var): Likewise.
17645         (vect_permute_store_chain): Likewise.
17646         (vect_permute_load_chain): Likewise.
17647         * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
17648         Likewise.
17649         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
17650         * tree-vect-patterns.c (vect_recog_temp_ssa_var): Likewise.
17651         (vect_handle_widen_op_by_const): Likewise.
17652         * tree-vect-stmts.c (vect_init_vector): Likewise.
17653         (vectorizable_load): Likewise.
17655 2012-07-17  Tom de Vries  <tom@codesourcery.com>
17657         * hwint.c: Fix loop range.
17659 2012-07-17  Tom de Vries  <tom@codesourcery.com>
17661         * double-int.h (double_int_popcount): New inline function.
17662         * hwint.c (popcount_hwi): New function.
17663         * hwint.h (popcount_hwi): Declare function.  New inline function.
17665 2012-07-17  Richard Henderson  <rth@redhat.com>
17667         * tree-vect-stmts.c (supportable_widening_operation): Remove decl
17668         parameters.
17669         (vectorizable_conversion): Update supportable_widening_operation call.
17670         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
17671         (vect_recog_widen_shift_pattern): Likewise.
17672         * tree-vectorizer.h: Update decl.
17674 2012-07-17  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17675             Ulrich Weigand  <ulrich.weigand@linaro.org>
17677         * common/config/arm/arm-common.c (arm_option_optimization_table):
17678         Enable -fsched-pressure by default while optimizing.
17679         * config/arm/arm.c (arm_option_override): Use the alternate scheduler
17680         pressure algorithm by default.
17682 2012-07-16  Oleg Endo  <olegendo@gcc.gnu.org>
17684         * config/sh/sh.h (CONST_OK_FOR_I06): Delete.
17685         (CONST_OK_FOR_I10): Move macro to ...
17686         * config/sh/sh.c: ... here.
17687         (sh_legitimate_index_p): Use satisfies_constraint_I06 instead of
17688         CONST_OK_FOR_I06.
17690 2012-07-16  Oleg Endo  <olegendo@gcc.gnu.org>
17692         * config/sh/sh.md: Delete mov related define_peephole patterns.
17694 2012-07-16  Jonathan Wakely  <jwakely.gcc@gmail.com>
17696         PR c++/53919
17697         * doc/install.texi (Installing GCC): Refer to instructions for
17698         released versions. Fix hyphenation.
17700 2012-07-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17702         * config/spu/spu.c (targetm): Move to bottom of file.
17703         (spu_attribute_table): Likewise.
17704         (spu_option_override, spu_init_builtins, spu_builtin_decl,
17705         spu_scalar_mode_supported_p, spu_vector_mode_supported_p,
17706         spu_legitimate_address_p, spu_addr_space_legitimate_address_p,
17707         adjust_operand, get_pic_reg, need_to_save_reg, frame_emit_store,
17708         frame_emit_load, frame_emit_add_imm, emit_nop_for_insn,
17709         insn_clobbers_hbr, spu_emit_branch_hint, spu_emit_vector_compare,
17710         get_branch_target, spu_machine_dependent_reorg, spu_sched_issue_rate,
17711         spu_sched_variable_issue, spu_sched_adjust_cost, spu_sched_init_global,
17712         spu_sched_init, spu_sched_reorder, spu_handle_fndecl_attribute,
17713         spu_handle_vector_attribute, spu_pass_by_reference, spu_function_arg,
17714         spu_function_arg_advance, spu_build_builtin_va_list, spu_va_start,
17715         spu_gimplify_va_arg_expr, store_with_one_insn_p, reg_aligned_for_addr,
17716         spu_assemble_integer, spu_asm_globalize_label, spu_rtx_costs,
17717         spu_function_ok_for_sibcall, spu_init_libfuncs, spu_return_in_memory,
17718         spu_encode_section_info, spu_legitimize_address,
17719         spu_addr_space_legitimize_address, spu_builtin_mask_for_load,
17720         spu_builtin_vectorization_cost, spu_vector_alignment_reachable,
17721         spu_addr_space_pointer_mode, spu_addr_space_address_mode,
17722         spu_addr_space_subset_p, spu_addr_space_convert, spu_sms_res_mii,
17723         spu_section_type_flags, spu_select_section, spu_unique_section,
17724         spu_trampoline_init, spu_conditional_register_usage,
17725         spu_ref_may_alias_errno, spu_output_mi_thunk, spu_unwind_word_mode,
17726         spu_libgcc_cmp_return_mode, spu_libgcc_shift_count_mode,
17727         spu_setup_incoming_varargs): Remove prototypes.
17728         (spu_legitimize_address): Add "static" to definition.
17730 2012-07-16  Jakub Jelinek  <jakub@redhat.com>
17732         * config/i386/rtmintrin.h (_xabort): Remove trailing semicolon.
17734 2012-07-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
17736         * tree-ssa-ccp.c (optimize_unreachable): Check gsi_end_p
17737         before calling gsi_stmt.
17739 2012-07-16  Kirill Yukhin  <kirill.yukhin@intel.com>
17741         Revert
17742         2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
17744         * config/i386/i386.md (stack_protect_set): Disable the pattern
17745         for Android since Android libc (bionic) does not provide random
17746         value for stack protection guard at gs:0x14. Guard value
17747         will be provided from external symbol (default implementation).
17748         (stack_protect_set_<mode>): Likewise.
17749         (stack_protect_test): Likewise.
17750         (stack_protect_test_<mode>): Likewise.
17752 2012-07-16  H.J. Lu  <hongjiu.lu@intel.com>
17754         PR middle-end/53959
17755         PR bootstrap/53963
17756         * gimple.c (gimple_types_compatible_p_1): Restore type attribute
17757         comparison.
17759 2012-07-16  Bill Schmidt  <wschmidt@linux.ibm.com>
17761         * opts.c (default_option): Add -fvect-cost-model to default options
17762         at -O3 and above.
17764 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
17766         * graphite-clast-to-gimple.c, graphite-dependences.c,
17767         graphite-sese-to-poly.c: Include tree-pass.h instead of dumpfile.h
17768         for pass TODO flags.
17769         * Makefile.in: Fix dependencies.
17771 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
17773         * haifa-sched.c (init_before_recovery): Do not set EDGE_CAN_FALLTHRU.
17774         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
17776         * function.c (stack_protect_epilogue): Use expand_call to expand
17777         targetm.stack_protect_fail.
17778         * stmt.c (expand_expr_stmt): Remove now-unused function.
17779         * tree.h (expand_expr_stmt): Remove prototype.
17780         * doc/tm.texi.in (TARGET_STACK_PROTECT_FAIL): Document that this
17781         hook must return a CALL_EXPR.
17782         * doc/tm.texi: Regenerate.
17784         * emit-rtl.c (emit_label_before): Do not allow the same label
17785         to be emitted twice.
17786         (emit_label_after): Likewise.
17787         (emit_label): Likewise.
17789         * flags.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
17790         TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): Move to tree.h.
17791         * tree.h (TYPE_OVERFLOW_WRAPS, TYPE_OVERFLOW_UNDEFINED,
17792         TYPE_OVERFLOW_TRAPS, POINTER_TYPE_OVERFLOW_UNDEFINED): New home.
17794 2012-07-16  Steven Bosscher  <steven@gcc.gnu.org>
17796         * system.h (dump_file): Do not define.
17797         * tree-pass.h: Include dumpfile.h, which is a new file containing...
17798         (enum tree_dump_index, TDF_*, get_dump_file_name, dump_enabled_p,
17799         dump_initialized_p, dump_begin, dump_end, dump_node, dump_switch_p,
17800         dump_flag_name, dump_file, dump_flags, dump_file_name,
17801         get_dump_file_info, struct dump_file_info): all of this, moved to...
17802         * dumpfile.h: Here, new file.
17803         * tree-dump.h: Include dumpfile.h, but not tree-pass.h.
17804         (dump_stmt): Remove prototype for C++ specific function.
17805         (dump_enumerated_decls): Move prototype from here...
17806         * tree-flow.h (dump_enumerated_decls): ... to here.
17807         (get_ref_base_and_extent) Move prototype from here ...
17808         * tree.h (get_ref_base_and_extent) ... to here.
17809         * tree-ssa-live.c: Do not inclde tree-pretty-print.h, because
17810         gimple-pretty-print.h is enough.  Do not include tree-dump.h,
17811         include timevar.h and dumpfile.h instead.
17812         (struct numbered_tree_d, compare_decls_by_uid,
17813         dump_enumerated_decls_push, dump_enumerated_decls): Move from here ...
17814         * tree-dfa.c:(struct numbered_tree_d, compare_decls_by_uid,
17815         dump_enumerated_decls_push, dump_enumerated_decls):... to here.
17816         Do not include timevar.h.
17817         * tree.c: Do not include timevar.h.
17818         * tree-cfg.c: Do not include langhooks.h, tree-pretty-print.h, and
17819         timevar.h.
17820         (dump_cfg_stats): Use current_function_name.
17821         (gimple_cfg2vcg): Likewise.
17822         (dump_function_to_file): Likewise.
17823         * df-scan.c: Do not include tree-pass.h and timevar.h.
17824         Include dumpfile.h.
17825         (df_entry_block_bitmap_verify, df_exit_block_bitmap_verify): Do not
17826         use print_current_pass.
17827         * df-problems.c: Include dumpfile.h.
17828         Always define REG_DEAD_DEBUGGING, avoid #ifdef code, because it
17829         leads to errors in the code not selected.
17830         (df_note_compute): Do not print_rtl_with_bb here.  Fix compilation
17831         bug if REG_DEAD_DEBUGGING is not 0, get_insns is not available here.
17832         * lcm.c: Include dumpfile.h.
17833         Remove obsolete include of insn-attr.h.
17834         * dojump.c (do_compare_rtx_and_jump): Remove failure printing for
17835         missing probability notes.
17836         * stmt.c: Include dumpfile.h.
17837         (emit_case_decision_tree): Re-enable printing expand details only
17838         if TDF_DETAILS.
17839         * alias.c, auto-inc-dec.c, bb-reorder.c, caller-save.c, cfg.c,
17840         cfgcleanup.c, cfgexpand.c, cfgloop.c, cfgloopmanip.c, cgraph.c,
17841         cgraphclones.c, cgraphunit.c, combine.c, combine-stack-adj.c,
17842         coverage.c, cprop.c, cse.c, cselib.c, dbgcnt.c, dce.c, df-core.c,
17843         dse.c, dwarf2out.c, emit-rtl.c, except.c, expr.c, final.c,
17844         function.c, fwprop.c, gcse.c, gimple-fold.c,
17845         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
17846         gimplify.c, graphite-blocking.c, graphite-clast-to-gimple.c,
17847         graphite-dependences.c, graphite-interchange.c,
17848         graphite-optimize-isl.c, graphite-poly.c,
17849         graphite-sese-to-poly.c, haifa-sched.c, hw-doloop.c, ifcvt.c,
17850         ipa.c, ipa-cp.c, ipa-inline-analysis.c, ipa-inline.c,
17851         ipa-inline-transform.c, ipa-prop.c, ipa-pure-const.c,
17852         ipa-reference.c, ipa-split.c, ipa-utils.c, ira.c, ira-emit.c,
17853         jump.c, loop-doloop.c, loop-init.c, loop-invariant.c, loop-iv.c,
17854         loop-unroll.c, loop-unswitch.c, lower-subreg.c,
17855         lto-section-out.c, lto-streamer-in.c, matrix-reorg.c, mcf.c,
17856         mode-switching.c, modulo-sched.c, omega.c, omp-low.c, passes.c,
17857         plugin.c, postreload.c, postreload-gcse.c, predict.c, print-rtl.c,
17858         print-tree.c, profile.c, recog.c, ree.c, regcprop.c, reginfo.c,
17859         regmove.c, regrename.c, reg-stack.c, reload1.c, reorg.c,
17860         sched-rgn.c, sched-vis.c, sel-sched.c, sel-sched-ir.c,
17861         store-motion.c, tracer.c, trans-mem.c, tree-affine.c,
17862         tree-call-cdce.c, tree-cfgcleanup.c, tree-chrec.c,
17863         tree-data-ref.c, tree-diagnostic.c, tree-dump.c,
17864         tree-eh.c, tree-flow-inline.h, tree-if-conv.c, tree-into-ssa.c,
17865         tree-mudflap.c, tree-nrv.c, tree-object-size.c,
17866         tree-optimize.c, tree-outof-ssa.c, tree-predcom.c,
17867         tree-pretty-print.c, tree-profile.c, tree-scalar-evolution.c,
17868         tree-sra.c, tree-ssa-address.c, tree-ssa-alias.c, tree-ssa.c,
17869         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-copy.c,
17870         tree-ssa-copyrename.c,, tree-ssa-dce.c, tree-ssa-dom.c,
17871         tree-ssa-dse.c, tree-ssa-forwprop.c, tree-ssa-ifcombine.c,
17872         tree-ssa-loop.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
17873         tree-ssa-loop-ivcanon.c, tree-ssa-loop-ivopts.c,
17874         tree-ssa-loop-manip.c, tree-ssa-loop-niter.c,
17875         tree-ssa-loop-prefetch.c, tree-ssa-loop-unswitch.c,
17876         tree-ssa-math-opts.c, tree-ssa-operands.c, tree-ssa-phiopt.c,
17877         tree-ssa-phiprop.c, tree-ssa-pre.c, tree-ssa-propagate.c,
17878         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-sink.c,
17879         tree-ssa-structalias.c, tree-ssa-tail-merge.c, tree-ssa-ter.c,
17880         tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
17881         tree-ssa-uncprop.c, tree-ssa-uninit.c,
17882         tree-switch-conversion.c, tree-tailcall.c,
17883         tree-vect-data-refs.c, tree-vect-loop.c,
17884         tree-vect-loop-manip.c, tree-vectorizer.c,
17885         tree-vect-patterns.c, tree-vect-slp.c, tree-vect-stmts.c,
17886         tree-vrp.c, value-prof.c, var-tracking.c, web.c: Include tree-pass.h
17887         only if needed.  If tree-pass.h is included, do not include timevar.h
17888         and dumpfile.h.  If tree-pass.h is not included but dump_file, or
17889         dump_flags, or the TDF_* flags are used, include dumpfile.h.
17890         If gimple-pretty-print.h is included, don't include
17891         tree-pretty-print.h.  Remove assorted unnecessary includes.
17893         * config/mn10300/mn10300.c, config/c6x/c6x.c, config/ia64/ia64.c,
17894         config/arm/arm.c, config/bfin/bfin.c, config/frv/frv.c,
17895         config/spu/spu.c, config/mep/mep.c, config/i386/i386.c:
17896         Include dumpfile.h.
17897         * config/rl78/rl78.c: Include dumpfile.h instead of tree-pass.h.
17898         * arm/t-arm, avr/t-avr, i386/t-i386, ia64/t-ia64, mep/t-mep,
17899         spu/t-spu-elf: Fix dependencies.
17901 2012-07-16  Dehao Chen  <dehao@google.com>
17903         Revert
17904         2012-07-10  Dehao Chen  <dehao@google.com>
17906         * tree.h (phi_arg_d): New field.
17907         * tree-flow-inline.h (gimple_phi_arg_block): New function.
17908         (gimple_phi_arg_block_from_edge): New function.
17909         (gimple_phi_arg_set_block): New function.
17910         (gimple_phi_arg_has_block): New function.
17911         (redirect_edge_var_map_block): New function.
17912         * tree-flow.h (_edge_var_map): New field.
17913         * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
17914         * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
17915         redirect_edge_var_map_add.
17916         * tree-outof-ssa.c (_elim_graph): New field.
17917         (insert_partition_copy_on_edge): New parameter.
17918         (insert_value_copy_on_edge): New parameter.
17919         (insert_rtx_to_part_on_edge): New parameter.
17920         (insert_part_to_rtx_on_edge): New parameter.
17921         (elim_graph_add_edge): New parameter.
17922         (elim_graph_remove_succ_edge): New parameter.
17923         (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
17924         (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
17925         (new_elim_graph): Add block debug info.
17926         (clear_elim_graph): Likewise.
17927         (delete_elim_graph): Likewise.
17928         (elim_graph_add_node): Likewise.
17929         (elim_graph_add_edge): Likewise.
17930         (elim_graph_remove_succ_edge): Likewise.
17931         (eliminate_build): Likewise.
17932         (elim_forward): Likewise.
17933         (elim_unvisited_predecessor): Likewise.
17934         (elim_backward): Likewise.
17935         (elim_create): Likewise.
17936         (eliminate_phi): Likewise.
17937         (insert_backedge_copies): Likewise.
17938         * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
17939         add_phi_arg.
17940         (rewrite_add_phi_arguments): Likewise.
17941         * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
17942         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
17943         * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
17944         * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
17945         * tree-ssa-loop-manip.c (create_iv): Likewise.
17946         (add_exit_phis_edge): Likewise.
17947         (split_loop_exit_edge): Likewise.
17948         (copy_phi_node_args): Likewise.
17949         (tree_transform_and_unroll_loop): Likewise.
17950         * value-prof.c (gimple_ic): Likewise.
17951         (gimple_stringop_fixed_value): Likewise.
17952         * tree-tailcall.c (add_successor_phi_arg): Likewise.
17953         (eliminate_tail_call): Likewise.
17954         (create_tailcall_accumulator): Likewise.
17955         (tree_optimize_tail_calls_1): Likewise.
17956         * tree-phinodes.c (add_phi_arg): Likewise.
17957         (make_phi_node): Likewise.
17958         (resize_phi_node): Likewise.
17959         (remove_phi_arg_num): Likewise.
17960         * omp-low.c (expand_parallel_call): Likewise.
17961         (expand_omp_for_static_chunk): Likewise.
17962         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
17963         Likewise.
17964         (slpeel_update_phi_nodes_for_guard1): Likewise.
17965         (slpeel_update_phi_nodes_for_guard2): Likewise.
17966         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
17967         (set_prologue_iterations): Likewise.
17968         (slpeel_tree_peel_loop_to_edge): Likewise.
17969         (vect_loop_versioning): Likewise.
17970         * tree-parloops.c (create_phi_for_local_result): Likewise.
17971         (transform_to_exit_first_loop): Likewise.
17972         (create_parallel_loop): Likewise.
17973         * ipa-split.c (split_function): Likewise.
17974         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
17975         (vect_create_epilog_for_reduction): Likewise.
17976         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
17977         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
17978         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
17979         (cond_if_else_store_replacement_1): Likewise.
17980         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
17981         (remove_forwarder_block_with_phi): Likewise.
17982         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
17983         * tree-predcom.c (initialize_root_vars): Likewise.
17984         (initialize_root_vars_lm): Likewise.
17985         * sese.c (sese_add_exit_phis_edge): Likewise.
17986         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
17987         * tree-ssa.c (flush_pending_stmts): Likewise.
17988         (redirect_edge_var_map_add): Likewise.
17989         (ssa_redirect_edge): Likewise.
17990         * gimple-streamer-in.c (input_phi): Likewise.
17991         * tree-vect-stmts.c (vectorizable_load): Likewise.
17992         * tree-inline.c (copy_phis_for_bb): Likewise.
17993         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
17994         * tree-switch-conversion.c (fix_phi_nodes): Likewise.
17995         * tree-cfg.c (reinstall_phi_args): Likewise.
17996         (gimple_make_forwarder_block): Likewise.
17997         (add_phi_args_after_copy_edge): Likewise.
17998         (gimple_duplicate_sese_tail): Likewise.
18000 2012-07-16 Sergey Melnikov <sergey.melnikov@intel.com>
18002         * config/i386/i386.md (stack_protect_set): Disable the pattern
18003         for Android since Android libc (bionic) does not provide random
18004         value for stack protection guard at gs:0x14. Guard value
18005         will be provided from external symbol (default implementation).
18006         (stack_protect_set_<mode>): Likewise.
18007         (stack_protect_test): Likewise.
18008         (stack_protect_test_<mode>): Likewise.
18010 2012-07-16  Hans-Peter Nilsson  <hp@axis.com>
18012         * config/cris/cris-protos.h (cris_legitimate_address_p): Declare.
18013         * config/cris/cris.h (CONSTANT_ADDRESS_P): Define in terms of
18014         CONSTANT_P and cris_legitimate_address_p.
18015         * config/cris/cris.c (cris_legitimate_address_p): Make non-static.
18016         (cris_preferred_reload_class): Don't return GENERAL_REGS as
18017         preferred to MOF_SRP_REGS.
18019         * config/cris/cris.c (cris_init_libfuncs): Handle initialization
18020         of library functions for basic atomic compare-and-swap.
18021         * config/cris/cris.h (TARGET_ATOMICS_MAY_CALL_LIBFUNCS): New macro.
18022         * config/cris/cris.opt (munaligned-atomic-may-use-library): New option.
18023         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>")
18024         ("cris_atomic_fetch_<atomic_op_name><mode>_1")
18025         ("atomic_compare_and_swap<mode>")
18026         ("cris_atomic_compare_and_swap<mode>_1"): Make conditional on
18027         TARGET_ATOMICS_MAY_CALL_LIBFUNCS for sizes larger than byte.
18028         * config/cris/cris.c (cris_print_operand) <case 'P', 'q'>: New cases.
18029         * config/cris/sync.md (atomic_op_op_cnstr): New code_attr.
18030         (atomic_op_op_pred): Ditto.
18031         (atomic_op_mnem_pre_op2): Renamed from atomic_op_mnem_pre; to
18032         reflect the change to include %2 in expansion.  All callers changed.
18033         (qm3): New mode_attr.
18034         ("atomic_fetch_<atomic_op_name><mode>"): Use <atomic_op_op_pred>
18035         as predicate for operand 2.
18036         ("cris_atomic_fetch_<atomic_op_name><mode>_1"): Update FIXME.  Use
18037         "<atomic_op_op_pred>" "<atomic_op_op_cnstr>" for predicate and
18038         constraint for operand 2.
18039         ("atomic_compare_and_swap<mode>"): Add FIXME.  Change predicate to
18040         nonmemory_operand for operand 3.
18041         ("cris_atomic_compare_and_swap<mode>_1"): Change operand 3 to
18042         exclude memory.  Improve emitted sync code for v10 and v32.  Use
18043         <qm3> instead of <m> for size designator for cmp.
18044         ("atomic_compare_and_swap<mode>"): Change predicate to
18045         nonmemory_operand for operand 3.  Add FIXME.
18046         ("cris_atomic_compare_and_swap<mode>_1"): Change predicates and
18047         constraints for operand 3 to exclude memory.
18048         ("atomic_fetch_<atomic_op_name><mode>")
18049         ("atomic_compare_and_swap<mode>"): Gate expand_mem_thread_fence
18050         calls on result of call to need_atomic_barrier_p.
18052 2012-07-15  Richard Sandiford  <rdsandiford@googlemail.com>
18054         * config/mips/mips.md (move_type): Replace mfhilo and mthilo
18055         with mflo and mtlo.
18056         (type): Split mfhilo into mfhi and mflo.  Split mthilo into mthi
18057         and mtlo.  Adjust move_type->type mapping.
18058         (may_clobber_hilo): Split mthilo into mthi and mtlo.
18059         (*movdi_32bit, *movdi_32bit_mips16, *movdi_64bit, *movdi_64bit_mips16)
18060         (*mov<mode>_internal, *mov<mode>_mips16, *movhi_internal)
18061         (*movhi_mips16, *movqi_internal, *movqi_mips16): Use mtlo and mflo
18062         instead of mthilo and mfhilo.
18063         (mfhi<GPR:mode>_<HILO:mode>): Use mfhi instead of mfhilo.
18064         (mthi<GPR:mode>_<HILO:mode>): Use mthi instead of mthilo.
18065         * config/mips/mips-dsp.md (mips_extr_w, mips_extr_r_w, mips_extr_rs_w)
18066         (mips_extr_s_h, mips_extp, mips_extpdp, mips_shilo, mips_mthlip):
18067         Use mflo instead of mfhilo.
18068         * config/mips/10000.md (r10k_arith): Split mthilo.
18069         (r10k_mfhi, r10k_mflo): Use mfhi and mflo directly.
18070         * config/mips/sb1.md (ir_sb1_mfhi, ir_sb1_mflo): Likewise.
18071         (ir_sb1_mthilo): Split mthilo into mthi and mtlo.
18072         * config/mips/20kc.md (r20kc_imthilo, r20kc_imfhilo): Split
18073         mthilo and mfhilo.
18074         * config/mips/24k.md (r24k_int_mfhilo, r24k_int_mthilo): Likewise.
18075         * config/mips/4130.md (vr4130_class, vr4130_mfhilo, vr4130_mthilo):
18076         Likewise.
18077         * config/mips/4k.md (r4k_int_mthilo, r4k_int_mfhilo): Likewise.
18078         * config/mips/5400.md (ir_vr54_hilo): Likewise.
18079         * config/mips/5500.md (ir_vr55_mthilo, ir_vr55_mfhilo): Likewise.
18080         * config/mips/5k.md (r5k_int_mthilo, r5k_int_mfhilo): Likewise.
18081         * config/mips/7000.md (rm7_mthilo, rm7_mfhilo): Likewise.
18082         * config/mips/74k.md (r74k_int_mfhilo, r74k_int_mthilo): Likewise.
18083         * config/mips/9000.md (rm9k_mfhilo, rm9k_mthilo): Likewise.
18084         * config/mips/generic.md (generic_hilo): Likewise.
18085         * config/mips/loongson2ef.md (ls2_alu): Likewise.
18086         * config/mips/loongson3a.md (ls3a_mfhilo): Likewise.
18087         * config/mips/octeon.md (octeon_imul_o1, octeon_imul_o2)
18088         (octeon_mfhilo_o1, octeon_mfhilo_o2): Likewise.
18089         * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
18090         * config/mips/xlr.md (xlr_hilo): Likewise.
18092 2012-07-14  Andrew Stubbs  <ams@codesourcery.com>
18093             Sandra Loosemore  <sandra@codesourcery.com>
18095         * config/sh/sh.h (SH_ASM_SPEC): Add spaces between options.
18097 2012-07-14  Uros Bizjak  <ubizjak@gmail.com>
18099         * config/i386/i386.c (ix86_set_reg_reg_cost): Enable TFmode/TCmode
18100         for TARGET_SSE.
18102 2012-07-14  Steven Bosscher  <steven@gcc.gnu.org>
18104         * toplev.c (init_asm_output): Open asm_out_file in 'w' mode.
18106 2012-07-13  Bill Schmidt  <wschmidt@linux.ibm.com>
18108         PR bootstrap/53955
18109         * config/spu/spu.c (spu_init_cost): Mark static.
18110         (spu_add_stmt_cost): Likewise.
18111         (spu_finish_cost): Likewise.
18112         (spu_destroy_cost_data): Likewise.
18113         * config/i386/i386.c (ix86_init_cost): Mark static.
18114         (ix86_add_stmt_cost): Likewise.
18115         (ix86_finish_cost): Likewise.
18116         (ix86_destroy_cost_data): Likewise.
18117         * config/rs6000/rs6000.c (rs6000_init_cost): Mark static.
18118         (rs6000_add_stmt_cost): Likewise.
18119         (rs6000_finish_cost): Likewise.
18120         (rs6000_destroy_cost_data): Likewise.
18122 2012-07-13  Steven Bosscher  <steven@gcc.gnu.org>
18124         * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
18125         ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
18126         ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
18127         ATTRIBUTE_MALLOC.
18128         * alloc-pool.h (pool_alloc): Likewise.
18130         * final.c (final): Do not loop to find max_uid.
18132 2012-07-13  Steven Bosscher  <steven@gcc.gnu.org>
18134         * emit-rtl.c (make_debug_insn_raw, make_jump_insn_raw): Make static.
18135         * rtl.h (make_debug_insn_raw, make_jump_insn_raw): Remove prototypes.
18137 2012-07-13  Richard Guenther  <rguenther@suse.de>
18139         PR tree-optimization/53907
18140         * tree-ssa-forwprop.c (associate_pointerplus): New function.
18141         (ssa_forward_propagate_and_combine): Call it.
18143 2012-07-13  Richard Guenther  <rguenther@suse.de>
18145         PR tree-optimization/53922
18146         * tree-vrp.c (value_inside_range): Change prototype to take
18147         min/max instead of value-range.
18148         (range_includes_zero_p): Likewise.  Return the result from
18149         value_inside_range.
18150         (extract_range_from_binary_expr_1): Adjust to handle dont-know
18151         return value from range_includes_zero_p.
18152         (extract_range_from_unary_expr_1): Likewise.
18153         (compare_range_with_value): Likewise.
18154         (vrp_meet_1): Likewise.
18156 2012-07-13  Bill Schmidt  <wschmidt@linux.ibm.com>
18158         * doc/tm.texi: Regenerate.
18159         * doc/tm.texi.in (TARGET_VECTORIZE_INIT_COST): New hook.
18160         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
18161         (TARGET_VECTORIZE_FINISH_COST): Likewise.
18162         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
18163         * targhooks.c (default_init_cost): New function.
18164         (default_add_stmt_cost): Likewise.
18165         (default_finish_cost): Likewise.
18166         (default_destroy_cost_data): Likewise.
18167         * targhooks.h (default_init_cost): New decl.
18168         (default_add_stmt_cost): Likewise.
18169         (default_finish_cost): Likewise.
18170         (default_destroy_cost_data): Likewise.
18171         * target.def (init_cost): New DEFHOOK.
18172         (add_stmt_cost): Likewise.
18173         (finish_cost): Likewise.
18174         (destroy_cost_data): Likewise.
18175         * target.h (struct _stmt_vec_info): New extern decl.
18176         (stmt_vectype): Likewise.
18177         (stmt_in_inner_loop_p): Likewise.
18178         * tree-vectorizer.h (stmt_info_for_cost): New struct/typedef.
18179         (stmt_vector_for_cost): New VEC/typedef.
18180         (add_stmt_info_to_vec): New function.
18181         (struct _slp_tree): Remove cost.inside_of_loop field.
18182         (struct _slp_instance): Remove cost.inside_of_loop field; add
18183         stmt_cost_vec field.
18184         (SLP_INSTANCE_INSIDE_OF_LOOP_COST): Remove macro.
18185         (SLP_INSTANCE_STMT_COST_VEC): New accessor macro.
18186         (SLP_TREE_INSIDE_OF_LOOP_COST): Remove macro.
18187         (struct _vect_peel_extended_info): Add stmt_cost_vec field.
18188         (struct _loop_vec_info): Add target_cost_data field.
18189         (LOOP_VINFO_TARGET_COST_DATA): New accessor macro.
18190         (struct _bb_vec_info): Add target_cost_data field.
18191         (BB_VINFO_TARGET_COST_DATA): New accessor macro.
18192         (struct _stmt_vec_info): Remove cost.inside_of_loop field.
18193         (STMT_VINFO_INSIDE_OF_LOOP_COST): Remove macro.
18194         (stmt_vinfo_set_inside_of_loop_cost): Remove function.
18195         (init_cost): New function.
18196         (add_stmt_cost): Likewise.
18197         (finish_cost): Likewise.
18198         (destroy_cost_data): Likewise.
18199         (vect_model_simple_cost): Change parameter list.
18200         (vect_model_store_cost): Likewise.
18201         (vect_model_load_cost): Likewise.
18202         (record_stmt_cost): New extern decl.
18203         (vect_get_load_cost): Change parameter list.
18204         (vect_get_store_cost): Likewise.
18205         * tree-vect-loop.c (new_loop_vec_info): Call init_cost.
18206         (destroy_loop_vec_info): Call destroy_cost_data.
18207         (vect_estimate_min_profitable_iters): Remove old calculation of
18208         inside costs; call finish_cost instead.
18209         (vect_model_reduction_cost): Call add_stmt_cost instead of old
18210         inside-costs calculation.
18211         (vect_model_induction_cost): Likewise.
18212         * tree-vect-data-refs.c (vect_get_data_access_cost): Change to
18213         return a stmt_vector_for_cost; modify calls to vect_get_load_cost
18214         and vect_get_store_cost to obtain the value to return.
18215         (vect_peeling_hash_get_lowest_cost): Obtain a stmt_cost_vec from
18216         vect_get_data_access_cost and store it in the minimum peeling
18217         structure.
18218         (vect_peeling_hash_choose_best_peeling): Change the parameter list
18219         to add a (stmt_vector_for_cost *) output parameter, and set its value.
18220         (vect_enhance_data_refs_alignment): Ignore the new return value from
18221         calls to vect_get_data_access_cost; obtain stmt_cost_vec from
18222         vect_peeling_hash_choose_best_peeling and pass its contents to the
18223         target cost model.
18224         * tree-vect-stmts.c (stmt_vectype): New function.
18225         (stmt_in_inner_loop_p): Likewise.
18226         (record_stmt_cost): Likewise.
18227         (vect_model_simple_cost): Add stmt_cost_vec parameter; call
18228         record_stmt_cost instead of old calculation; don't call
18229         stmt_vinfo_set_inside_of_loop_cost.
18230         (vect_model_promotion_demotion_cost): Call add_stmt_cost instead of
18231         old calculation; don't call stmt_vinfo_set_inside_of_loop_cost.
18232         (vect_model_store_cost): Add stmt_cost_vec parameter; call
18233         record_stmt_cost instead of old calculation; add stmt_cost_vec
18234         parameter to vect_get_store_cost call; don't call
18235         stmt_vinfo_set_inside_of_loop_cost.
18236         (vect_get_store_cost): Add stmt_cost_vec parameter; call
18237         record_stmt_cost instead of old calculation.
18238         (vect_model_load_cost): Add stmt_cost_vec parameter; call
18239         record_stmt_cost instead of old calculation; add stmt_cost_vec
18240         parameter to vect_get_load_cost call; don't call
18241         stmt_vinfo_set_inside_of_loop_cost.
18242         (vect_get_load_cost): Add stmt_cost_vec parameter; call
18243         record_stmt_cost instead of old calculation.
18244         (vectorizable_call): Add NULL parameter to vect_model_simple_cost call.
18245         (vectorizable_conversion): Likewise.
18246         (vectorizable_assignment): Likewise.
18247         (vectorizable_shift): Likewise.
18248         (vectorizable_operation): Likewise.
18249         (vectorizable_store): Add NULL parameter to vect_model_store_cost call.
18250         (vectorizable_load): Add NULL parameter to vect_model_load_cost call.
18251         (new_stmt_vec_info): Don't set STMT_VINFO_INSIDE_OF_LOOP_COST.
18252         * config/spu/spu.c (TARGET_VECTORIZE_INIT_COST): New macro def.
18253         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
18254         (TARGET_VECTORIZE_FINISH_COST): Likewise.
18255         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
18256         (spu_init_cost): New function.
18257         (spu_add_stmt_cost): Likewise.
18258         (spu_finish_cost): Likewise.
18259         (spu_destroy_cost_data): Likewise.
18260         * config/i386/i386.c (ix86_init_cost): New function.
18261         (ix86_add_stmt_cost): Likewise.
18262         (ix86_finish_cost): Likewise.
18263         (ix86_destroy_cost_data): Likewise.
18264         (TARGET_VECTORIZE_INIT_COST): New macro def.
18265         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
18266         (TARGET_VECTORIZE_FINISH_COST): Likewise.
18267         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
18268         * config/rs6000/rs6000.c (TARGET_VECTORIZE_INIT_COST): New macro def.
18269         (TARGET_VECTORIZE_ADD_STMT_COST): Likewise.
18270         (TARGET_VECTORIZE_FINISH_COST): Likewise.
18271         (TARGET_VECTORIZE_DESTROY_COST_DATA): Likewise.
18272         (rs6000_init_cost): New function.
18273         (rs6000_add_stmt_cost): Likewise.
18274         (rs6000_finish_cost): Likewise.
18275         (rs6000_destroy_cost_data): Likewise.
18276         * tree-vect-slp.c (vect_free_slp_instance): Free stmt_cost_vec.
18277         (vect_create_new_slp_node): Don't set SLP_TREE_INSIDE_OF_LOOP_COST.
18278         (vect_get_and_check_slp_defs): Add stmt_cost_vec parameter; add
18279         stmt_cost_vec parameter to vect_model_store_cost and
18280         vect_model_simple_cost calls.
18281         (vect_build_slp_tree): Remove inside_cost parameter; add stmt_cost_vec
18282         parameter; add stmt_cost_vec parameter to vect_get_and_check_slp_defs,
18283         vect_model_load_cost, and recursive vect_build_slp_tree calls; prevent
18284         calculating cost more than once for loads; remove inside_cost
18285         parameter from recursive vect_build_slp_tree calls; call
18286         record_stmt_cost instead of old calculation.
18287         (vect_analyze_slp_instance): Allocate stmt_cost_vec and save it with
18288         the instance; free it on premature exit; remove inside_cost parameter
18289         from vect_build_slp_tree call; add stmt_cost_vec parameter to
18290         vect_build_slp_tree call; don't set SLP_INSTANCE_INSIDE_OF_LOOP_COST.
18291         (new_bb_vec_info): Call init_cost.
18292         (destroy_bb_vec_info): Call destroy_cost_data.
18293         (vect_bb_vectorization_profitable_p): Call add_stmt_cost for each
18294         statement recorded with an SLP instance; call finish_cost instead of
18295         the old calculation.
18296         (vect_update_slp_costs_according_to_vf): Record statement costs from
18297         SLP instances, multiplying by the appropriate number of copies; don't
18298         update SLP_INSTANCE_INSIDE_OF_LOOP_COST.
18300 2012-07-13  Richard Guenther  <rguenther@suse.de>
18302         PR middle-end/53937
18303         * builtins.c (get_pointer_alignment_1): Handle constant
18304         pointers.
18306 2012-07-13  Richard Sandiford  <rdsandiford@googlemail.com>
18307             Steven Bosscher  <steven@gcc.gnu.org>
18308             Bernd Schmidt  <bernds@codesourcery.com>
18310         PR rtl-optimization/53908
18311         * df-problems.c (can_move_insns_across): When doing
18312         memory-reference book-keeping, handle call insns.
18314 2012-07-13  Richard Guenther  <rguenther@suse.de>
18316         * gimple.c (gimple_types_compatible_p_1): Remove redundant
18317         type attribute comparisons.
18318         (gimple_canonical_types_compatible_p): Likewise.
18320 2012-07-12  Hans-Peter Nilsson  <hp@axis.com>
18322         PR rtl-optimization/53176
18323         * rtlanal.c (rtx_cost): Adjust default cost for X with a
18324         UNITS_PER_WORD factor for all X according to the size of
18325         its mode, not just for SUBREGs with untieable modes.
18326         Handle SET.  Use factor * factor for MULT, DIV, UDIV,
18327         MOD, UMOD.
18329 2012-07-12  Uros Bizjak  <ubizjak@gmail.com>
18331         * config/i386/i386.md (QImode and HImode cmove splitters): Merge
18332         QImode and HImode splitters.  Use ix86_comparison_operator.
18333         Explicitly match FLAGS_REG.
18334         (DFmode cmove splitter): Explicitly match FLAGS_REG.
18336 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
18338         * expr.h (can_move_by_pieces): Move prototype from here ...
18339         * tree.h (can_move_by_pieces): ... to here.
18340         * optabs.h (set_widening_optab_handler): Use XCNEW.
18341         * gimplify.c: Do not include expr.h.
18343         * toplev.c: Do not include dwarf2out.h.
18344         * config/ia64/ia64.c: Likewise.
18345         * config/sparc/sparc.c: Likewise.
18346         * config/sparc/t-sparc (sparc.o): Fix dependencies.
18348         * Makefile.in (toplev.o): Fix dependencies
18349         (c-family/c-gimplify.o): Likewise.
18350         (c-family/c-common.o): Likewise.
18352 2012-07-11  Steven Bosscher  <steven@gcc.gnu.org>
18354         * basic-block.h (struct edge_def): Use basic_block instead of
18355         basic_block_def *.
18356         * cfgloop.h (struct loop_exit, struct loop): Likewise.
18357         * gengenrtl.c (type_from_format): Likewise.  Also for 'tree'
18358         instead of union tree_node *.
18359         * rtl.h (union rtunion_def, emit_insn_before_noloc,
18360         emit_insn_after_noloc, add_insn_before, add_insn_after,
18361         debug_bb_slim): Likewise.
18362         * tree-inline.h (struct copy_body_data): Likewise.
18363         * sched-rgn.c (dump_region_dot): Likewise.
18364         * gimple.h (struct gimple_statement_base, gimple_set_bb,
18365         gsi_move_to_bb_end): Likewise.
18366         * sched-vis.c (debug_bb_slim): Likewise.
18367         (debug_bb_n_slim): Likewise.
18368         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Likewise.
18369         (mn10300_block_contains_call):
18371 2012-07-11  Greta Yorsh  <Greta.Yorsh@arm.com>
18373         PR target/53859
18374         * config/arm/arm.c (arm_early_load_addr_dep): Handle new
18375         epilogue patterns.
18377 2012-07-11  Jonathan Wakely  <jwakely.gcc@gmail.com>
18379         * doc/extend.texi (Namespace Association): Alter cautionary text.
18381 2012-07-10  Oleg Endo  <olegendo@gcc.gnu.org>
18383         PR target/53911
18384         * config/sh/sh.md: Remove displacement addresssing related splits.
18386 2012-07-10  Xinliang David Li  <davidxl@google.com>
18388         * doc/invoke.texi: New option documented.
18389         * flag-types.h: New enum type.
18390         * gimplify.c (gimplify_bind_expr): Control
18391         clobber generation with new option.
18392         (gimplify_target_expr): Ditto.
18393         * common.opt: New option.
18395 2012-07-10  Julian Brown  <julian@codesourcery.com>
18397         * config/arm/arm.md (movsi): Don't split symbol refs here.
18398         (define_split): New.
18400 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
18402         PR bootstrap/53913
18403         * config/m68k/m68k.c (m68k_epilogue_uses): New.
18404         * config/m68k/m68k.h (EPILOGUE_USES): Use it.
18405         * config/m68k/m68k-protos.h (m68k_epilogue_uses): Add prototype.
18407 2012-07-10  Richard Henderson  <rth@redhat.com>
18409         * target.def (builtin_mul_widen_even, builtin_mul_widen_odd): Remove.
18410         * system.h (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Poison.
18411         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Poison.
18412         * config/i386/i386.c (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): Remove.
18413         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): Remove.
18414         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): Remove.
18415         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): Remove.
18416         (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): Remove.
18417         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): Remove.
18418         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): Remove.
18419         (bdesc_args): Remove entries to match.
18420         (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): Remove.
18421         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
18422         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
18423         * config/rs6000/rs6000.c (rs6000_builtin_mul_widen_even): Remove.
18424         (rs6000_builtin_mul_widen_odd): Remove.
18425         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
18426         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
18427         * config/spu/spu.c (spu_builtin_mul_widen_even): Remove.
18428         (spu_builtin_mul_widen_odd): Remove.
18429         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): Remove.
18430         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): Remove.
18431         * doc/tm.texi.in: Don't document the removed hooks.
18433         * tree-vect-stmts.c (supportable_widening_operation): Expand
18434         WIDEN_MULT_EXPR via VEC_WIDEN_MULT_EVEN/ODD_EXPR if possible.
18436         * expmed.c (expmed_mult_highpart): Rename from expand_mult_highpart.
18437         (expmed_mult_highpart_optab): Rename from expand_mult_highpart_optab.
18438         * optabs.c (can_mult_highpart_p): New.
18439         (expand_mult_highpart): New.
18440         * expr.c (expand_expr_real_2) [MULT_HIGHPART_EXPR): Use it.
18441         * tree-vect-generic.c (expand_vector_operations_1): Don't expand
18442         by pieces if can_mult_highpart_p.
18443         (expand_vector_divmod): Use can_mult_highpart_p and always
18444         generate MULT_HIGHPART_EXPR.
18445         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
18446         * tree-vect-stmts.c (vectorizable_operation): Likewise.
18448         * config/spu/spu-builtins.md (spu_mpy): Move to spu.md.
18449         (spu_mpyu, spu_mpyhhu, spu_mpyhh): Likewise.
18450         * config/spu/spu.md (vec_widen_smult_odd_v8hi): Rename from spu_mpy.
18451         (vec_widen_umult_odd_v8hi): Rename from spu_mpyu.
18452         (vec_widen_smult_even_v8hi): Rename from spu_mpyhh.
18453         (vec_widen_umult_even_v8hi): Rename from spu_mpyhhu.
18454         * config/spu/spu-builtins.def: Update pattern names to match.
18456         * config/rs6000/altivec.md (vec_widen_umult_even_v16qi): Rename
18457         from altivec_vmuleub.
18458         (vec_widen_smult_even_v16qi): Rename from altivec_vmulesb.
18459         (vec_widen_umult_even_v8hi): Rename from altivec_vmuleuh.
18460         (vec_widen_smult_even_v8hi): Rename from altivec_vmulesh.
18461         (vec_widen_umult_odd_v16qi): Rename from altivec_vmuloub.
18462         (vec_widen_smult_odd_v16qi): Rename from altivec_vmulosb.
18463         (vec_widen_umult_odd_v8hi): Rename from altivec_vmulouh.
18464         (vec_widen_smult_odd_v8hi): Rename from altivec_vmulosh.
18465         * config/rs6000/rs6000-builtin.def: Update pattern names to match.
18467         * config/i386/sse.md (vec_widen_umult_even_v8si): Rename from
18468         avx2_umulv4siv4di3.
18469         (vec_widen_umult_even_v4si): Rename from sse2_umulv2siv2di3.
18470         (vec_widen_smult_even_v8si): Rename from avx2_mulv4siv4di3.
18471         (mulv4si3): Remove XOP test shadowed by SSE4 test.
18472         * config/i386/i386.c (bdesc_args): Update pattern names.
18473         (ix86_expand_sse2_mulvxdi3): Likewise.
18474         (ix86_expand_mul_widen_evenodd): Likewise.  Remove XOP test
18475         shadowed by SSE4 test.
18477         * tree.def (VEC_WIDEN_MULT_EVEN_EXPR, VEC_WIDEN_MULT_ODD_EXPR): New.
18478         * cfgexpand.c (expand_debug_expr): Handle them.
18479         * expr.c (expand_expr_real_2): Likewise.
18480         * fold-const.c (fold_binary_loc): Likewise.
18481         * gimple-pretty-print.c (dump_binary_rhs): Likewise.
18482         * optabs.c (optab_for_tree_code): Likewise.
18483         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
18484         * tree-inline.c (estimate_operator_cost): Likewise.
18485         * tree-pretty-print.c (dump_generic_node): Likewise.
18486         * tree.c (commutative_tree_code): Likewise.
18487         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
18488         Handle type change before looking up optab.
18489         * optabs.h (OTI_vec_widen_umult_even, OTI_vec_widen_umult_odd): New.
18490         (OTI_vec_widen_smult_even, OTI_vec_widen_smult_odd): New.
18491         (vec_widen_umult_even_optab, vec_widen_umult_odd_optab): New.
18492         (vec_widen_smult_even_optab, vec_widen_smult_odd_optab): New.
18493         * genopinit.c (optabs): Initialize them.
18494         * doc/md.texi: Document them.
18496 2012-07-10  Dehao Chen  <dehao@google.com>
18498         * tree.h (phi_arg_d): New field.
18499         * tree-flow-inline.h (gimple_phi_arg_block): New function.
18500         (gimple_phi_arg_block_from_edge): New function.
18501         (gimple_phi_arg_set_block): New function.
18502         (gimple_phi_arg_has_block): New function.
18503         (redirect_edge_var_map_block): New function.
18504         * tree-flow.h (_edge_var_map): New field.
18505         * tree-ssa-live.c (remove_unused_locals): Mark phi_arg's block as used.
18506         * tree-eh.c (cleanup_empty_eh_merge_phis): Add block debug info for
18507         redirect_edge_var_map_add.
18508         * tree-outof-ssa.c (_elim_graph): New field.
18509         (insert_partition_copy_on_edge): New parameter.
18510         (insert_value_copy_on_edge): New parameter.
18511         (insert_rtx_to_part_on_edge): New parameter.
18512         (insert_part_to_rtx_on_edge): New parameter.
18513         (elim_graph_add_edge): New parameter.
18514         (elim_graph_remove_succ_edge): New parameter.
18515         (FOR_EACH_ELIM_GRAPH_SUCC): New parameter.
18516         (FOR_EACH_ELIM_GRAPH_PRED): New parameter.
18517         (new_elim_graph): Add block debug info.
18518         (clear_elim_graph): Likewise.
18519         (delete_elim_graph): Likewise.
18520         (elim_graph_add_node): Likewise.
18521         (elim_graph_add_edge): Likewise.
18522         (elim_graph_remove_succ_edge): Likewise.
18523         (eliminate_build): Likewise.
18524         (elim_forward): Likewise.
18525         (elim_unvisited_predecessor): Likewise.
18526         (elim_backward): Likewise.
18527         (elim_create): Likewise.
18528         (eliminate_phi): Likewise.
18529         (insert_backedge_copies): Likewise.
18530         * tree-into-ssa.c (insert_phi_nodes_for): Add block debug info for
18531         add_phi_arg.
18532         (rewrite_add_phi_arguments): Likewise.
18533         * tree-ssa-loop-im.c (execute_sm_if_changed): Likewise.
18534         * tree-ssa-tail-merge.c (replace_block_by): Likewise.
18535         * tree-ssa-threadupdate.c (copy_phi_args): Likewise.
18536         * tree-loop-distribution.c (update_phis_for_loop_copy): Likewise.
18537         * tree-ssa-loop-manip.c (create_iv): Likewise.
18538         (add_exit_phis_edge): Likewise.
18539         (split_loop_exit_edge): Likewise.
18540         (copy_phi_node_args): Likewise.
18541         (tree_transform_and_unroll_loop): Likewise.
18542         * value-prof.c (gimple_ic): Likewise.
18543         (gimple_stringop_fixed_value): Likewise.
18544         * tree-tailcall.c (add_successor_phi_arg): Likewise.
18545         (eliminate_tail_call): Likewise.
18546         (create_tailcall_accumulator): Likewise.
18547         (tree_optimize_tail_calls_1): Likewise.
18548         * tree-phinodes.c (add_phi_arg): Likewise.
18549         (make_phi_node): Likewise.
18550         (resize_phi_node): Likewise.
18551         (remove_phi_arg_num): Likewise.
18552         * omp-low.c (expand_parallel_call): Likewise.
18553         (expand_omp_for_static_chunk): Likewise.
18554         * tree-vect-loop-manip.c (slpeel_update_phis_for_duplicate_loop):
18555         Likewise.
18556         (slpeel_update_phi_nodes_for_guard1): Likewise.
18557         (slpeel_update_phi_nodes_for_guard2): Likewise.
18558         (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
18559         (set_prologue_iterations): Likewise.
18560         (slpeel_tree_peel_loop_to_edge): Likewise.
18561         (vect_loop_versioning): Likewise.
18562         * tree-parloops.c (create_phi_for_local_result): Likewise.
18563         (transform_to_exit_first_loop): Likewise.
18564         (create_parallel_loop): Likewise.
18565         * ipa-split.c (split_function): Likewise.
18566         * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
18567         (vect_create_epilog_for_reduction): Likewise.
18568         * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
18569         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Likewise.
18570         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
18571         (cond_if_else_store_replacement_1): Likewise.
18572         * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
18573         (remove_forwarder_block_with_phi): Likewise.
18574         * tree-ssa-pre.c (insert_into_preds_of_block): Likewise.
18575         * tree-predcom.c (initialize_root_vars): Likewise.
18576         (initialize_root_vars_lm): Likewise.
18577         * sese.c (sese_add_exit_phis_edge): Likewise.
18578         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
18579         * tree-ssa.c (flush_pending_stmts): Likewise.
18580         (redirect_edge_var_map_add): Likewise.
18581         (ssa_redirect_edge): Likewise.
18582         * gimple-streamer-in.c (input_phi): Likewise.
18583         * tree-vect-stmts.c (vectorizable_load): Likewise.
18584         * tree-inline.c (copy_phis_for_bb): Likewise.
18585         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
18586         * tree-switch-conversion.c (fix_phi_nodes): Likewise.
18587         * tree-cfg.c (reinstall_phi_args): Likewise.
18588         (gimple_make_forwarder_block): Likewise.
18589         (add_phi_args_after_copy_edge): Likewise.
18590         (gimple_duplicate_sese_tail): Likewise.
18592 2012-07-09  Oleg Endo  <olegendo@gcc.gnu.org>
18594         PR target/53886
18595         * config/sh/sh.c (sequence_insn_p): New function.
18596         (find_barrier, sh_insn_length_adjustment): Use it.
18598 2012-07-09  Iain Sandoe  <iain@codesourcery.com>
18600         PR target/53283
18601         * config/i386/i386.c (ix86_fold_builtin): Call SUBTARGET_FOLD_BUILTIN
18602         if defined.
18603         * config/darwin.h: Rename TARGET_FOLD_BUILTIN to
18604         SUBTARGET_FOLD_BUILTIN.
18605         * config/rs6000/darwin.h: Map TARGET_FOLD_BUILTIN onto
18606         SUBTARGET_FOLD_BUILTIN.
18608 2012-07-09  Iain Sandoe  <iain@codesourcery.com>
18610         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): Move NeXT
18611         runtime exceptions model setting from here ...
18612         * config/darwin.c (darwin_override_options): ... to here.
18614 2012-07-09  Steven Bosscher  <steven@gcc.gnu.org>
18616         PR tree-optimization/53887
18617         * tree-cfg.c (group_case_labels_stmt): Make non-static.
18618         * tree-flow.h (group_case_labels_stmt): Add prototype.
18619         * tree-switch-conversion.c (process_switch): Use group_case_labels_stmt
18620         to pre-process every switch.
18622 2012-07-09  Jason Merrill  <jason@redhat.com>
18624         PR c++/53882
18625         * tree.c (type_contains_placeholder_1): Handle NULLPTR_TYPE.
18626         (type_hash_eq): Likewise.
18628 2012-07-09  Tom de Vries  <tom@codesourcery.com>
18629             Richard Guenther  <rguenther@suse.de>
18631         * tree-ssa-ccp.c (optimize_unreachable): New function.
18632         (execute_fold_all_builtins): Use optimize_unreachable to optimize
18633         BUILT_IN_UNREACHABLE.  Don't optimize after BUILT_IN_UNREACHABLE.
18635 2012-07-09  Richard Guenther  <rguenther@suse.de>
18637         PR bootstrap/53898
18638         * graphite-optimize-isl.c: Make sure CU is not empty.
18640 2012-07-09  Steven Bosscher  <steven@gcc.gnu.org>
18642         * gensupport.c (init_rtx_reader_args_cb): Start counting code
18643         generating patterns from 1 to free up 0 for CODE_FOR_nothing.
18644         * gencodes.c (main): Give CODE_FOR_nothing the value 0.  Add
18645         the LAST_INSN_CODE marker at the end.
18646         * genoutput.c (nothing): New static struct data.
18647         (idata): Initialize to &nothing.
18648         (idata_end): Initialize to &nothing.next.
18649         (init_insn_for_nothing): New function to create dummy 'nothing' insn.
18650         (main): Use it.
18651         * genpeep.c (insn_code_number): Remove global variable.
18652         (gen_peephole): Take it as an argument instead.
18653         (main): Take insn_code_number from read_md_rtx.
18654         * optabs.h: Revert r161809:
18655         (optab_handlers): Change type of insn_code back to insn_code.
18656         (optab_handler, widening_optab_handler, set_optab_handler,
18657         set_widening_optab_handler, convert_optab_handler,
18658         set_convert_optab_handler, direct_optab_handler,
18659         set_direct_optab_handler): Remove int casts.
18660         Revert to treating the insn_code field as "insn_code".
18662 2012-07-08  Oleg Endo  <olegendo@gcc.gnu.org>
18664         * config/sh/sh.md (*return_i): Move trap_exit attribute check to ...
18665         * config/sh/sh.c (sh_cfun_trap_exit_p): ... this new function.
18666         * config/sh/sh-protos.h: Declare it.
18668 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
18670         * mcf.c: Do not include tm.h, tree.h, and langhooks.h.
18671         (dump_fixup_graph): Use current_function_name.
18672         (adjust_cfg_counts): Likewise.
18673         * ira-conflicts.c: Do not include tree.h.
18674         (ira_build_conflicts): Use REG_USERVAR_P instead of DECL_ARTIFICIAL.
18676 2012-07-08  Oleg Endo  <olegendo@gcc.gnu.org>
18678         PR target/51244
18679         * config/sh/sh.md (*branch_true_eq, *branch_false_ne, nott): New insns.
18681 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
18683         * basic-block.h: Re-group most prototypes per file.
18684         (struct edge_list): Remove num_blocks field.
18685         (dump_bb_info): Adjust prototypes.
18686         (dump_reg_info): Move prototype to regs.h.
18687         * function.h: Do not include tree.h.
18688         Include vec.h, vecir.h, input.h and machmode.h to compensate.
18689         (function_name): New prototype.
18690         * gimple.h: Include tree.h to compensate for basic-block.h change.
18691         * langhooks.h: Note that tree.h is only necessary for enum tree_code.
18692         * regs.h (dump_reg_info): Prototype here.
18693         * regset.h: Adjust file reference in comment.
18694         (debug_regset): Remove prototype.
18695         * rtl.h: Include flags.h for flag_var_tracking_assignments.
18696         (MAY_HAVE_DEBUG_INSNS): Define as flag_var_tracking_assignments
18697         instead of no-longer-available tree.h's MAY_HAVE_DEBUG_STMTS.
18698         (dump_reg_info, dump_flow_info): Remove prototypes.
18699         * bb-reorder.c (set_edge_can_fallthru_flag): Move from cfganal.c
18700         to here, the only user.  Make static.
18701         (reorder_basic_blocks): Call dump_reg_info before dump_flow_info.
18702         * cfg.c: Do not include tm.h, tree.h, rtl.h, hard-reg-set.h, regs.h,
18703         flags.h, function.h, except.h, diagnostic-core.h, tm_p.h, timevar.h,
18704         tree-pass.h, cfgloop.h, and tree-flow.h.
18705         Include basic-block.h, the first header I'd expect to be included.
18706         (reg_obstack): Move to df-core.c.
18707         (free_edge): Remove bogus ATTRIBUTE_UNUSED.
18708         (remove_edge_raw): Do not call tree-ssa's redirect_edge_var_map_clear.
18709         (redirect_edge_succ_nodup): Move to cfghooks.c.
18710         (dump_regset, debug_regset): Move to df-core.c.
18711         (dump_bb_info): Move to cfgrtl.c.
18712         (dump_reg_info): Move to regstat.c.
18713         (dump_flow_info): Move to cfgrtl.c.
18714         (debug_flow_info): Likewise.
18715         (dump_edge_info): Do not look at cfun, a CFG without cfun is nonsense.
18716         * cfganal.c: Do not include tm.h, rtl.h, obstack.h, hard-reg-set.h,
18717         insn-config.h, recog.h, diagnostic-core.h, tm_p.h, and cfgloop.h.
18718         (flow_active_insn_p, forwarder_block_p, can_fallthru,
18719         could_fall_through): Move to cfgrtl.c.
18720         (set_edge_can_fallthru_flag): Moved to bb-reorder.c.
18721         (create_edge_list): Do not set edge_list's removed num_blocks.
18722         (print_edge_list): Look at n_basic_blocks instead of num_blocks.
18723         (flow_nodes_print): Remove.
18724         (flow_edge_list_print): Remove.
18725         (inverted_post_order_compute): Use FOR_ALL_BB.
18726         * cfgrtl.c (dump_flow_info): Moved from cfg.c.
18727         Do not call dump_reg_info.
18728         (debug_flow_info): Moved from cfg.c
18729         (dump_bb_info): Moved from cfg.c.  Take 'verbose' argument
18730         to avoid looking at TDF_* flags from tree-pass.h.
18731         (flow_active_insn_p, forwarder_block_p, can_fallthru,
18732         could_fall_through): Moved from cfganal.c.
18733         (print_rtl_with_bb): Adjust dump_bb_info calls.
18734         * cfghooks.c (redirect_edge_succ_nodup): Moved from cfg.c.
18735         (remove_edge): Call redirect_edge_var_map_clear if IR_GIMPLE.
18736         (cfgcleanup.c): Look at MAY_HAVE_DEBUG_INSNS, not MAY_HAVE_DEBUG_STMTS.
18737         * cselib.c: Include tree.h with a FIXME.
18738         * df-core.c (reg_obstack): Moved from cfg.c.
18739         (dump_regset): Likewise.
18740         (debug_regset): Likewise.  Make a DEBUG_FUNCTION.
18741         * final.c (compute_alignments): Call dump_reg_info before
18742         dump_flow_info.
18743         * function.c (function_name): New function.
18744         (current_function_name): Use it.
18745         * ifcvt.c (rest_of_handle_if_conversion): Call dump_reg_info before
18746         dump_flow_info.
18747         * ira-conflicts.c: Include tree.h with a note.
18748         * regstat.c (dump_reg_info): Moved here from cfg.c.
18749         * loop-init.c: Include regs.h instead of hard-reg-set.h.
18750         (rtl_loop_init): Call dump_reg_info before dump_flow_info.
18751         (rtl_loop_done): Likewise.
18752         * mcf.c: Include tree.h before langhooks.h.
18753         * predict.c (maybe_hot_count_p): Assert we have cfun.
18754         (probably_never_executed_bb_p): Likewise.
18755         * profile.c (compute_branch_probabilities): Use gimple_dump_cfg
18756         instead of dump_flow_info.
18757         * sched-deps.c: Include tree.h with a FIXME.
18758         (call_may_noreturn_p): Add FIXME note why this function has to
18759         look at function decls instead of function decl flags.
18760         * sched-vis.c: Include tree.h with a FIXME.
18761         (print_rtl_slim): Adjust dump_bb_info uses.
18762         * statistics.c (statistics_fini_pass_2): Use current_function_name
18763         to avoid including tree.h.
18764         (statistics_counter_event): Use function_name for the same reason.
18765         (statistics_histogram_event): Likewise.
18766         * tracer.c (tracer): Remove bogus gcc_assert.  Use brief_dump_cfg
18767         instead of dump_flow_info.
18768         * var-tracking.c (variable_tracking_main_1): Call dump_reg_info
18769         before dump_flow_info.
18770         * doc/cfg.texi: Update CFG documentation.
18771         * Makefile.in (RTL_H): Depend on FLAGS_H.
18772         (GIMPLE_H): Depend on TREE_H.
18773         (FUNCTION_H): Depend on VEC_H, vecir.h, INPUT_H and MACHMODE_H,
18774         but no longer on TREE_H.
18775         (C_COMMON_H): Depend on TREE_H.
18776         (cselib.o, cse.o, cfganal.o, loop-init.o, ira-conflicts.o,
18777         sched-deps.o, sched-vis.o): Fixup dependencies.
18779 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
18781         * alias.h: Do not include coretypes.h in header files.
18782         * cppbuiltin.h: Likewise.
18783         * double-int.h: Likewise.
18784         * gimple-fold.h: Likewise.
18785         * flags.h: Likewise.
18786         * tree-ssa-alias.h: Likewise.
18787         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free,
18788         OBSTACK_CHUNK_SIZE): Define here to avoid dependency on coretypes.h.
18789         * Makefile.in (RTL_BASE_H): Depend on coretypes.h.
18790         (TREE_H): Likewise.
18791         (ALIAS_H): Do not depend on coretypes.h.
18792         (FLAGS_H): Likewise.
18793         (realmpfr.o): Depend on coretypes.h.
18795 2012-07-08  Steven Bosscher  <steven@gcc.gnu.org>
18797         * Makefile.in (gengtype-lex.o, gengtype-parse.o, gengtype-state.o,
18798         gengtype.o): Add -DGENERATOR_FILE manually for host gengtype objects.
18800 2012-07-07  Richard Earnshaw  <rearnsha@arm.com>
18802         * arm.h (TARGET_CPU_CPP_BUILTINS): Remove Maverick support.
18803         (TARGET_FPA): Delete definition.
18804         (TARGET_MAVERICK): Likewise.
18805         (TARGET_FPA_EMU2): Likewise.
18806         (arm_fp_model): Remove FPA and Maverick models.
18807         (arm_arch_cirrus): Delete declaration.
18808         (FLOAT_WORDS_BIG_ENDIAN): Delete definition.
18809         (FIXED_REGISTERS): Remove FPA and Maverick support.  Reorganize.
18810         (CALL_USED_REGISTERS): Likewise.
18811         (FIRST_FPA_REGNUM, LAST_FPA_REGNUM): Delete definition.
18812         (FIRST_VFP_REGNUM): Renumbered.
18813         (D7_VFP_REGNUM): Chain definition.
18814         (LAST_LO_VFP_REGNUM): Likewise.
18815         (FIRST_HI_VFP_REGNUM): Likewise.
18816         (LAST_HI_VFP_REGNUM): Likewise.
18817         (FIRST_IWMMXT_GR_REGNUM): Likewise.
18818         (LAST_IWMMXT_GR_REGNUM): Likewise.
18819         (FIRST_IWMMXT_REGNUM): Likewise.
18820         (LAST_IWMMXT_REGNUM): Likewise.
18821         (FRAME_POINTER_REGNUM): Renumbered.
18822         (ARG_POINTER_REGNUM): Renumbered.
18823         (FIRST_PSEUDO_REGISTER): Remove FPA and Maverick registers.
18824         (FIRST_CIRRUS_FP_REGNUM, LAST_CIRRUS_FP_REGNUM): Delete definitions.
18825         (HARD_REGNO_REGNUM): Remove FPA support.
18826         (REG_ALLOC_ORDER): Remove FPA and Maverick registers.  Reorganize.
18827         (reg_class): Likewise.
18828         (REG_CLASS_NAMES): Likewise.
18829         (REG_CLASS_CONTENTS): Likewise.
18830         (CANNOT_CHANGE_MODE_CLASS): Never true.  Update comment.
18831         (SECONDARY_INPUT_RELOAD_CLASS): Remove Maverick support.
18832         (CLASS_MAX_NREGS): Remove FPA and Maverick support.
18833         * aout.h (REGISTER_NAMES): Remove FPA and Maverick registers.
18834         Reorganize.  Use AAPCS preferred names.
18835         (ADDITIONAL_REGISTER_NAMES): Remove aliases for Maverick.  Update
18836         comments.
18837         (OVERLAPPING_REGISTER_NAMES): Update register numbering.
18838         * arm.c (FL_CIRRUS): Delete definition.
18839         (arm_arch_cirrus): Delete variable.
18840         (arm_float_words_big_endian): Delete function.
18841         (cirrus_memory_offset): Delete function.
18842         (output_mov_long_double_fpa_from_arm): Delete function.
18843         (output_mov_long_double_arm_from_fpa): Delete function.
18844         (output_mov_double_fpa_from_arm): Delete function.
18845         (output_mov_double_arm_from_fpa): Delete function.
18846         (emit_sfm): Delete function.
18847         (maybe_get_arm_condition_code): Update comment.
18848         (arm_file_start): Always use softvfp for softfloat systems.
18849         (thumb_core_reg_alloc_order): Adjust for updated register allocation.
18850         (arm_option_override): Remove FPA and Maverick support.  Always
18851         default to vfp as the fallback FPU format.
18852         (use_return_insn): Remove FPA support.
18853         (arm_get_frame_offsets): Likewise.
18854         (arm_save_coproc_regs): Likewise.
18855         (arm_canonicalize_comparison): Remove Maverick support.
18856         (arm_select_cc_mode): Likewise.
18857         (arm_gen_compare_reg): Likewise.
18858         (arm_print_operand): Likewise.
18859         (arm_libcall_value_1): Remove FPA and Maverick support.
18860         (arm_function_value_regno_p): Likewise.
18861         (arm_apply_result_size): Likewise.
18862         (arm_legitimate_index_p): Likewise.
18863         (thumb2_legitimate_index_p): Likewise.
18864         (legitimize_reload_address): Likewise.
18865         (arm_register_move_cost): Likewise.
18866         (arm_hard_regno_mode_ok): Likewise.
18867         (arm_regno_class): Likewise.
18868         (arm_dbx_register_number): Likewise.
18869         (arm_emit_unwind_sequence): Likewise.
18870         (arm_conditional_register_usage): Likewise.
18871         * arm-protos.h (neg_const_double_rtx_ok_for_fpa): Remove declaration.
18872         (cirrus_memory_offset): Likewise.
18873         (output_move_long_double_fpa_from_arm): Likewise.
18874         (output_move_long_double_arm_from_fpa): Likewise.
18875         (output_move_double_fpa_from_arm): Likewise.
18876         (output_move_double_arm_from_fpa): Likewise.
18877         (arm_float_words_big_endian): Likewise.
18878         * arm.md (CC_REGNUM): Renumbered.
18879         (VFPCC_REGNUM): Moved here.  Renumbered.
18880         (FPA_F0_REGNUM, FPA_F7_REGNUM): Delete.
18881         (attr fpu): Remove FPA and Maverick support.
18882         * vfp.md (VFPCC_REGNUM): Delete.  Moved to arm.md.
18883         * arm-cores.def (ep9312): Remove Maverick support.
18884         * arm-arches.def (ep9312): Delete architecture.
18885         * arm-tables.opt: Regenerated.
18887         * arm/linux-elf.h (FPUTYPE_DEFAULT): Set to vfp.
18889 2012-07-07  Steven Bosscher  <steven@gcc.gnu.org>
18891         PR tree-optimization/53881
18892         * tree-switch-conversion.c (emit_case_bit_tests): Do not rely on
18893         comparing labels to establish uniqueness of a switch case target,
18894         use the CFG instead.
18896 2012-07-07  Ulrich Weigand  <ulrich.weigand@linaro.org>
18898         * combine.c (force_to_mode) [LSHIFTRT]: Avoid undefined behaviour
18899         due to negative shift amount.
18901 2012-07-07  Hans-Peter Nilsson  <hp@axis.com>
18903         Fix configure test for "stack protector support in target C library".
18904         * configure.ac (test_prefix, test_exec_prefix): Move setting from
18905         inside sysroot handling to before and outside it.
18906         * configure: Regenerate.
18908 2012-07-06  Kai Tietz  <ktietz@redhat.com>
18910         PR bootstrap/52947
18911         * config/i386/mingw32.h (NATIVE_SYSTEM_HEADER_DIR): Define it always
18912         as "/mingw/include".
18914 2012-07-06  Alexandre Oliva  <aoliva@redhat.com>
18916         PR debug/53820
18917         * var-tracking.c (vt_add_function_parameter): Convert
18918         internal_arg_pointer into arg_pointer-based address even
18919         without DRAP.
18921 2012-07-06  Alexandre Oilva  <aoliva@redhat.com>
18923         PR rtl-optimization/53827
18924         PR debug/53671
18925         PR debug/49888
18926         * alias.c (memrefs_conflict_p): Adjust offset and size by the
18927         same amount for alignment ANDs.
18929 2012-07-06  Tom de Vries  <tom@codesourcery.com>
18931         PR tree-optimization/51879
18932         * tree-ssa-sccvn.c (copy_reference_ops_from_call)
18933         (visit_reference_op_call): Handle case that lhs is not an SSA_NAME.
18934         (visit_use): Also call visit_reference_op_call for calls with a vdef.
18936 2012-07-06  Tom de Vries  <tom@codesourcery.com>
18938         PR tree-optimization/52009
18939         * tree-ssa-tail-merge.c (gimple_equal_p): For GIMPLE_ASSIGN, compare
18940         value numbers of gimple_vdef.
18941         * tree-ssa-sccvn.h (vn_reference_insert): Add vdef parameter to
18942         prototype.
18943         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MODIFY_EXPR.
18944         (vn_reference_insert): Add and handle vdef parameter.
18945         (visit_reference_op_load): Add argument to vn_reference_insert call.
18946         (visit_reference_op_store): Find value number of vdef of store.  Insert
18947         value number of vdef of store.
18949 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
18951         * config/i386/i386.md (simple lea to add peephole): Also transform
18952         RTXes where second PLUS operand matches output.
18954 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
18956         * config/i386/i386.c (construct_plt_address): Make static.
18957         * config/i386/i386-protos.h (construct_plt_address): Remove.
18959 2012-07-06  Nick Clifton  <nickc@redhat.com>
18961         * config/mn10300/mn10300.c (mn10300_encode_section_info): Call
18962         default_encode_section_info.
18964 2012-07-06  Uros Bizjak  <ubizjak@gmail.com>
18966         PR target/53853
18967         * config/i386/i386.c (x86_output_mi_thunk): For CM_LARGE_PIC model,
18968         emit PIC sequence for fnaddr symbol reference in advance.
18970 2012-07-06  Eric Botcazou  <ebotcazou@adacore.com>
18972         Revert
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-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
18987             Julian Brown  <julian@codesourcery.com>
18989         PR target/48941
18990         PR target/51980
18991         * config/arm/neon-gen.ml (return_by_ptr): Delete.
18992         (print_function): Handle empty strings.
18993         (return): Delete use of return_by_ptr.
18994         (mask_shape_for_shuffle): New function.
18995         (mask_elems): Likewise.
18996         (shuffle_fn): Likewise.
18997         (params): Simplify and remove use of return_by_ptr.
18998         (get_shuffle): New function.
18999         (print_variant): Update.
19000         * config/arm/neon.ml (rev_elems): New function.
19001         (permute_range): Likewise.
19002         (zip_range): Likewise.
19003         (uzip_range): Likewise.
19004         (trn_range): Likewise.
19005         (zip_elems): Likewise.
19006         (uzip_elems): Likewise.
19007         (trn_elems): Likewise.
19008         (features): New enumeration Use_shuffle. Delete ReturnPtr.
19009         (pf_su_8_16): New.
19010         (suf_32): New.
19011         (ops): Update entries for Vrev64, Vrev32, Vrev16, Vtr, Vzip, Vuzp.
19012         * config/arm/arm_neon.h: Regenerate.
19014 2012-07-05  Richard Guenther  <rguenther@suse.de>
19016         * tree-pretty-print.c (dump_generic_node): Properly test
19017         the result of exact_log2.
19019 2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19021         * config/s390/s390-protos.h (s390_expand_movmem)
19022         (s390_expand_cmpmem): Add return value.
19023         * config/s390/s390.c (s390_expand_movmem, s390_expand_cmpmem):
19024         Return FALSE to use the library function in some cases.
19025         * config/s390/s390.md (movmem, cmpmem): Evaluate return value of C
19026         helper functions.
19028 2012-07-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19030         * config.gcc: Enable ifunc attribute by default on s390 and s390x.
19032 2012-07-05  Steven Bosscher  <steven@gcc.gnu.org>
19034         * expr.c (try_casesi): Remove bogus ATTRIBUTE_UNUSED markers.
19035         * stmt.c (dump_case_nodes): New.
19036         (expand_case): Split out code generation parts into new functions.
19037         (expand_switch_as_decision_tree_p): Split out from expand_case.
19038         (emit_case_decision_tree): Likewise.
19039         (emit_case_dispatch_table): Likewise.
19041 2012-07-05  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
19043         * config/arm/iterators.md (SDF): New mode iterator.
19044         (V_if_elem): Add support for SF and DF modes.
19045         (V_reg): Likewise.
19046         (F_constraint): New mode iterator attribute.
19047         (F_fma_type): Likewise.
19048         config/arm/vfp.md (fma<SDF:mode>4): New pattern.
19049         (*fmsub<SDF:mode>4): Likewise.
19050         (*fmnsub<SDF:mode>4): Likewise.
19051         (*fmnadd<SDF:mode>4): Likewise.
19053 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
19055         * expmed.c (expand_mult): Initialize coeff and is_neg.
19057 2012-07-04  Oleg Endo  <olegendo@gcc.gnu.org>
19059         * config/sh/predicates.md (zero_extend_operand): New predicate.
19060         * config/sh/sh.md (zero_extendhisi2): Simplify by using new
19061         zero_extend_operand predicate.
19062         (zero_extendqisi2): Likewise.
19064 2012-07-04  Uros Bizjak  <ubizjak@gmail.com>
19066         PR middle-end/53321
19067         * ipa.c (symtab_remove_unreachable_nodes): Partially revert r187375
19068         to not call cgraph_propagate_frequency if something was changed.
19070 2012-07-04  Richard Guenther  <rguenther@suse.de>
19072         PR middle-end/53433
19073         * gimple-fold.c (get_base_constructor): Do not return an
19074         error_mark_node DECL_INITIAL.
19076 2012-07-04  Richard Guenther  <rguenther@suse.de>
19078         PR tree-optimization/53844
19079         * tree-ssa-dse.c (dse_possible_dead_store_p): Properly handle
19080         the loop virtual PHI.
19082 2012-07-04  Richard Guenther  <rguenther@suse.de>
19084         PR tree-optimization/53849
19085         * tree-cfg.c (move_stmt_op): Only call add_referenced_var
19086         for duplicated locals.  Use add_referenced_var_1 to avoid
19087         pushing/popping cfun.
19089 2012-07-04  Kai Tietz  <ktietz@redhat.com>
19091         * config/i386/winnt.c (i386_pe_reloc_rw_mask): New function.
19092         * config/i386/i386-protos.h (i386_pe_reloc_rw_mask): Add
19093         prototype.
19094         * config/i386/cygming.h (TARGET_ASM_RELOC_RW_MASK): Define
19095         as i386_pe_reloc_rw_mask.
19097 2012-07-04  Richard Guenther  <rguenther@suse.de>
19099         * tree.c (find_decls_types_r): Handle TYPE_CONTEXT the same
19100         as in free_lang_data_in_type.
19102 2012-07-04  Tobias Grosser <tobias@grosser.es>
19103             Michael Matz  <matz@suse.de>
19105         * Makefile.in (OBJS): Add graphite-optimize-isl.o.
19106         (graphite-optimize-isl.o): Add dependencies.
19107         * common.opt (floop-nest-optimize): New flag.
19108         * doc/invoke.texi (floop-nest-optimize): Document.
19109         * graphite-dependences.c (compute_deps): Export.
19110         * graphite-poly.h (compute_deps): Declare.
19111         * graphite-optimize-isl.c: New file.
19112         * graphite-poly.c (apply_poly_transforms): Run the loop
19113         nest optimizer.
19114         * tree-ssa-loop.c (gate_graphite_transforms): Enable graphite
19115         if -floop-nest-optimize is enabled.
19117 2012-07-03  Oleg Endo  <olegendo@gcc.gnu.org>
19119         * config/sh/predicates.md (logical_and_operand): New predicate.
19120         * config/sh/constraints.md (Jmb, Jmw): New constraints.
19121         * config/sh/sh.md (andsi3): Move expander above insns.  Add handling
19122         of 0xFFFF constant.  Use logical_and_operand predicate and
19123         satisfies_constraint_Jmb, satisfies_constraint_Jmw.
19124         (*andsi3_compact): Make it an insn_and_split.  Use
19125         logical_and_operand predicate.  Add Jmb,Jmw alternatives.
19127 2012-07-03  Jason Merrill  <jason@redhat.com>
19129         PR c++/53826
19130         * tree.c (build_zero_cst): Handle NULLPTR_TYPE.
19132 2012-07-03  Nick Clifton  <nickc@redhat.com>
19134         * config/mep/mep.c (mep_reorg_regmove): Use
19135         next_nonnote_non_debug_insn to advance to the next insn.  Do not
19136         expect delete_insn to return an rtx.
19138 2012-07-03  Richard Guenther  <rguenther@suse.de>
19140         * doc/install.texi (CLooG): Clarify how CLooG needs to be
19141         configured and that it needs to be built against ISL 0.10.
19143 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
19145         * config/i386/i386.c (ix86_option_override_internal): Fix wrong
19146         code model string in the error message.
19148 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
19150         PR target/53811
19151         * config/i386/i386.c (x86_output_mi_thunk): Check if fnaddr satisfies
19152         sibcall_insn_operand.  Move it to a temporary register if not.
19154 2012-07-03  Andreas Schwab  <schwab@linux-m68k.org>
19156         PR target/28896
19157         * config/m68k/m68k.c (m68k_option_override): Reset stack_limit_rtx
19158         if !TARGET_68020.
19160 2012-07-03  Uros Bizjak  <ubizjak@gmail.com>
19162         * config/i386/xmmintrin.h (_mm_sfence): Use __builtin_ia32_pause.
19164 2012-07-03  Roland McGrath  <mcgrathr@google.com>
19166         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): Also require that the
19167         assembler accept 'rep bsf ...', 'rep bsr ...', 'rep ret' and 'rep nop'.
19168         * configure: Regenerated.
19169         * config/i386/i386.md (simple_return_internal_long): Use %;
19170         (ctz<mode>2): Likewise.
19171         (*pause): Likewise.
19173 2012-07-02  Oleg Endo  <olegendo@gcc.gnu.org>
19175         PR target/51244
19176         * config/sh/predicates.md (t_reg_operand, negt_reg_operand): New
19177         predicates.
19178         * config/sh/sh-protos.h (get_t_reg_rtx): New prototype.
19179         * config/sh/sh.c (get_t_reg_rtx): New function.  Use it when invoking
19180         gen_branch_true and gen_branch_false.
19181         * config/sh/sh.md: Use get_t_reg_rtx when invoking gen_branch_true and
19182         gen_branch_false.
19183         (branch_true, branch_false): Use t_reg_operand predicate.
19184         (*branch_true, *branch_false): Delete.
19185         (movt): Use t_reg_operand predicate.
19186         (*negnegt): Use negt_reg_operand predicate and fold little and big
19187         endian variants.
19188         (*movtt): Use t_reg_operand and fold little and big endian variants.
19189         (*movt_qi): Delete.
19191 2012-07-02  Steven Bosscher  <steven@gcc.gnu.org>
19193         * stmt.c (emit_case_bit_tests): Remove.
19194         (expand_case): Remove expand_switch_using_bit_tests_p code.
19195         * tree-switch-conversion.c (hoist_edge_and_branch_if_true): New.
19196         (MAX_CASE_BIT_TESTS): Moved from stmt.c to here.
19197         (lshift_cheap_p): Likewise.
19198         (expand_switch_using_bit_tests_p): Likewise.
19199         (struct case_bit_test): Likewise.
19200         (case_bit_test_cmp): Likewise.
19201         (emit_case_bit_tests): New implementation for GIMPLE.
19202         (gen_inbound_check): Do not release post-dominator info here.
19203         (process_switch): Reorder code.  Expand as bit tests if it
19204         looks like a win.
19205         (do_switchconv): Release post-dominator info here if something changed.
19206         (struct gimple_opt_pass): Verify more.
19207         * tree.h (expand_switch_using_bit_tests_p): Remove prototype.
19209 2012-07-02  Martin Jambor  <mjambor@suse.cz>
19211         PR middle-end/38474
19212         * ipa-prop.c (compute_known_type_jump_func): Put BINFO check before a
19213         dynamic type change check.
19215 2012-07-02  Richard Guenther  <rguenther@suse.de>
19216             Michael Matz  <matz@suse.de>
19217             Tobias Grosser <tobias@grosser.es>
19218             Sebastian Pop <sebpop@gmail.com>
19220         * Makefile.in: Remove PPL flags in favor of ISL ones.
19221         (BACKENDLIBS): Remove PPL libs.
19222         (INCLUDES): Remove PPL includes in favor of ISL ones.
19223         (graphite-clast-to-gimple.o): Remove graphite-dependences.h and
19224         graphite-cloog-compat.h dependencies.
19225         (graphite-dependences.o): Likewise.
19226         (graphite-poly.o): Likewise.
19227         * configure.ac: Declare ISL vars instead of PPL ones.
19228         * configure: Regenerated.
19229         * doc/install.texi: Replace PPL requirement documentation with ISL one.
19230         * graphite-blocking.c: Remove PPL code, add ISL equivalent.
19231         * graphite-clast-to-gimple.c: Likewise.
19232         * graphite-dependences.c: Likewise.
19233         * graphite-interchange.c: Likewise.
19234         * graphite-poly.h: Likewise.
19235         * graphite-poly.c: Likewise.
19236         * graphite-sese-to-poly.c: Likewise.
19237         * graphite.c: Likewise.
19238         * graphite-scop-detection.c: Re-arrange includes.
19239         * graphite-cloog-util.c: Remove.
19240         * graphite-cloog-util.h: Likewise.
19241         * graphite-ppl.h: Likewise.
19242         * graphite-ppl.c: Likewise.
19243         * graphite-dependences.h: Likewise.
19245 2012-07-02  Richard Guenther  <rguenther@suse.de>
19247         Merge from graphite branch
19248         2011-07-21  Tobias Grosser  <tobias@grosser.es>
19250         * Makefile.in (graphite-clast-to-gimple.o, graphite-cloog-util.o):
19251         Remove graphite-cloog-util.h.
19252         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop,
19253         build_iv_mapping, translate_clast_user, translate_clast,
19254         free_scattering, initialize_cloog_names, build_cloog_prog,
19255         create_params_index): Do not use old compatibility functions.
19256         (clast_name_to_index, set_cloog_options): Remove code for legacy cloog.
19257         * graphite-cloog-util.c (openscop_print_cloog_matrix): Do not use old
19258         compatibility functions.
19259         (new_Cloog_Scattering_from_ppl_Polyhedron): Remove code for legacy
19260         cloog.
19261         * graphite-cloog-util.h: Remove include of graphite-cloog-util.h.
19262         * graphite.c (graphite.c): Do not call outdated cloog_initialize() and
19263         cloog_finalize().
19264         * graphite-cloog-compat.h: Remove.
19266         2011-08-09  Tobias Grosser <tobias@grosser.es>
19268         * graphite-clast-to-gimple.c (new_clast_name_index): Store a copy
19269         of the string, no just a reference.
19270         (clast_name_index): Add a new field, that specifies if we need to free
19271         the name.
19272         (free_clast_name_index): If necessary, free the name string.
19273         (clast_name_index_elt_info): Calculate the hash based on the string
19274         content, not the memory location it is stored in.
19275         (clast_name_to_level): Specify that we do not need to free the name.
19276         (clast_name_to_index): Dito.
19277         (clast_name_to_lb_ub): Dito.
19278         (eq_clast_name_indexes): Compare the strings, not their base pointers.
19279         (free_scattering): Removed.
19280         (initialize_cloog_names): Renamed to add_names_to_union_domain().
19281         (add_names_to_union_domain): Changed to work on a union_domain,
19282         instead of a CloogNames structure.
19283         (build_cloog_prog): Removed.
19284         (build_cloog_union_domain): New.
19285         (generate_cloog_input): New.
19286         (scop_to_clast): Use CloogInput instead of CloogProgram.
19287         (print_generated_program): Adapt to new scop_to_clast() and do not
19288         print the CloogProgram any more.
19289         (create_params_index): Removed, functionality integrated in
19290         add_names_to_union_domain().
19291         (gloog): Adapt to new scop_to_clast().
19292         * graphite-clast-to-gimple.h (scop_to_clast): Remove.
19294         2012-01-11  Tobias Grosser <tobias@grosser.es>
19296         * graphite-clast-to-gimple.c (clast_name_to_index,
19297         clast_name_to_lb_ub, clast_name_to_gcc): Change types.
19298         (clast_to_gcc_expression): Add clast_expr_name as a new
19299         case. Do not assume a clast_expr_term points always to a
19300         clast_expr_name.
19301         (type_for_clast_term): Do not assume a clast_expr_term points always to
19302         a clast_expr_name.
19303         (type_for_clast_name): New.
19304         (type_for_clast_expr): Add clast_expr_name as a new case.
19306         2011-08-03  Sebastian Pop <sebpop@gmail.com>
19308         * graphite-cloog-util.c (new_Cloog_Domain_from_ppl_Polyhedron,
19309         new_Cloog_Scattering_from_ppl_Polyhedron,
19310         new_Cloog_Domain_from_ppl_Pointset_Powerset): Remove ATTRIBUTE_UNUSED.
19312 2012-07-02  Jakub Jelinek  <jakub@redhat.com>
19314         PR tree-optimization/53645
19315         * tree-vect-generic.c (expand_vector_divmod): Use TYPE_MODE (type)
19316         instead of TYPE_MODE (wider_type) as can_vec_perm_p argument.
19318 2012-07-01  Wei Guozhi  <carrot@google.com>
19320         PR target/53447
19321         * config/arm/arm-protos.h (const_ok_for_dimode_op): New prototype.
19322         * config/arm/arm.c (const_ok_for_dimode_op): New function.
19323         * config/arm/constraints.md (Dd): New constraint.
19324         * config/arm/predicates.md (arm_adddi_operand): New predicate.
19325         * config/arm/arm.md (adddi3): Extend it to handle constants.
19326         (arm_adddi3): Likewise.
19327         (addsi3_carryin_<optab>): Extend it to handle sbc case.
19328         (addsi3_carryin_alt2_<optab>): Likewise.
19329         * config/arm/neon.md (adddi3_neon): Extend it to handle constants.
19331 2012-06-30  Nathan Sidwell  <nathan@acm.org>
19333         * coverage.c (bbg_file_stamp): New.
19334         (read_counts_file): Merge incoming stamp with bbg_file_stamp.
19335         (build_info): Write bbg_file_stamp.
19336         (coverage_init): Initialize bbg_file_stamp.  Read counts file
19337         before writing graph header.
19338         (coverage_finish): Don't unlink the data file if we can generate a
19339         unique file stamp.
19340         * tree.h (crc32_unsigned): Declare.
19341         * tree.c (crc32_unsigned_bits): New, broken out of ...
19342         (crc32_byte): ... here.  Use it.
19343         (crc32_unsigned): New.
19345 2012-06-29  Cary Coutant  <ccoutant@google.com>
19347         * dwarf2out.c (add_pubname_string): Don't check for want_pubnames.
19348         (gen_subprogram_die): Don't add pubname if want_pubnames is false.
19349         (gen_variable_die): Likewise.
19350         (gen_namespace_die): Likewise.
19352 2012-06-29  Eric Botcazou  <ebotcazou@adacore.com>
19354         * tree-eh.c (lower_try_finally_switch): Really put the location of the
19355         last statement of the finally block onto the switch.
19357 2012-06-29  H.J. Lu  <hongjiu.lu@intel.com>
19359         PR target/53539
19360         * config/i386/gnu-user64.h (WCHAR_TYPE): Use "int" only for
19361         TARGET_LP64.
19363 2012-06-29  Sterling Augustine  <saugustine@google.com>
19365         * dwarf2out.c (add_pubname): Add comment.
19366         (add_pubtype): Fix indentation.
19367         (gen_enumeration_type_die): Likewise.
19369 2012-06-29  Jakub Jelinek  <jakub@redhat.com>
19371         * tree-vect-generic.c (expand_vector_divmod): For even/odd
19372         widening multiply, put even always as first argument to VEC_PERM_EXPR.
19374 2012-06-29  Richard Henderson  <rth@redhat.com>
19376         * tree-vect-generic.c: Include target.h.
19377         (expand_vector_divmod): Use builtin_mul_widen_even/odd if supported.
19378         * Makefile.in (tree-vect-generic.o): Update.
19380 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
19382         * configure.ac: Remove special gtfiles case for C.
19383         * configure: Regenerate.
19384         * Makefile.in: Remove C front-end hooks and build hooks that
19385         will be picked up from c/Make-lang.in now.
19386         Add tree-mudflap to C_COMMON_OBJS.
19387         * gengtype.c (files_rules): Adjust gt-files for c/c-decl.c.
19388         * config/vms/vms.c: Look for c-tree.h in c/.
19389         * doc/gty.texi: Remove reference to c-config-lang.in.
19390         * doc/sourcebuild.texi: Document the c/ subdirectory.
19392 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
19394         * system.h (CASE_USE_BIT_TESTS): Poison.
19395         * stmt.c (CASE_USE_BIT_TESTS): Fold away into its only user ...
19396         (expand_switch_using_bit_tests_p): ...here.
19397         * doc/tm.texi.in (CASE_USE_BIT_TESTS): Remove documentation.
19398         * doc/tm.texi (CASE_USE_BIT_TESTS): Regenerate.
19400 2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
19402         * system.h (IFCVT_EXTRA_FIELDS): Poison.
19403         (IFCVT_INIT_EXTRA_FIELDS): Poison.
19404         * basic-block.h (struct ce_if_block): Remove IFCVT_EXTRA_FIELDS.
19405         * ifcvt.c (find_if_header): Use IFCVT_MACHDEP_INIT instead of
19406         IFCVT_INIT_EXTRA_FIELDS.
19407         * gengtype-parse.c (struct_field_seq): Remove obsolete comment.
19408         * config/frv/frv.h (IFCVT_INIT_EXTRA_FIELDS): Rename to
19409         IFCVT_MACHDEP_INIT.
19410         * config/frv/frv.c (frv_ifcvt_init_extra_fields): Rename to
19411         frv_ifcvt_machdep_init.
19412         * doc/tm.texi.in (IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS):
19413         Remove documentation.
19414         (IFCVT_MACHDEP_INIT): Document.
19415         * doc/tm.texi: Regenerate.
19417 2012-06-29  Nick Clifton  <nickc@redhat.com>
19419         * config/lm32/lm32.c (lm32_compute_frame_size): Fix typo.
19421 2012-06-29  Jakub Jelinek  <jakub@redhat.com>
19423         * tree-vect-stmts.c (vectorizable_operation): Check both
19424         VEC_WIDEN_MULT_LO_EXPR and VEC_WIDEN_MULT_HI_EXPR optabs.
19425         Verify that operand[0]'s mode is TYPE_MODE (wide_vectype).
19427 2012-06-28  Richard Henderson  <rth@redhat.com>
19429         * doc/generic.texi (MULT_HIGHPART_EXPR): Document it.
19431 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
19433         PR tree-optimization/51581
19434         * tree-vect-stmts.c (permute_vec_elements): Add forward decl.
19435         (vectorizable_operation): Handle vectorization of MULT_HIGHPART_EXPR
19436         also using VEC_WIDEN_MULT_*_EXPR or builtin_mul_widen_* plus
19437         VEC_PERM_EXPR if vector MULT_HIGHPART_EXPR isn't supported.
19438         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use
19439         MULT_HIGHPART_EXPR instead of VEC_WIDEN_MULT_*_EXPR and shifts.
19441         PR tree-optimization/53645
19442         * tree-vect-generic.c (expand_vector_divmod): Use MULT_HIGHPART_EXPR
19443         instead of VEC_WIDEN_MULT_{HI,LO}_EXPR followed by VEC_PERM_EXPR
19444         if possible.
19446 2012-06-28  Georg-Johann Lay  <avr@gjlay.de>
19448         PR 53595
19449         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): New.
19450         * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered): New.
19451         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Forward to
19452         avr_hard_regno_call_part_clobbered.
19454 2012-06-28  Richard Guenther  <rguenther@suse.de>
19456         PR middle-end/53790
19457         * expr.c (expand_expr_real_1): Verify if the type is complete
19458         before inspecting its size.
19460 2012-06-28  Andreas Schwab  <schwab@linux-m68k.org>
19462         * doc/include/gpl.texi: Remove.
19463         * doc/sourcebuild.texi (Texinfo Manuals): Don't mention gpl.texi.
19465 2012-06-28  Jakub Jelinek  <jakub@redhat.com>
19467         PR tree-optimization/53645
19468         * tree-vect-generic.c (add_rshift): New function.
19469         (expand_vector_divmod): New function.
19470         (expand_vector_operation): Use it for vector integer
19471         TRUNC_{DIV,MOD}_EXPR by VECTOR_CST.
19472         * tree-vect-patterns.c (vect_recog_divmod_pattern): Replace
19473         unused lguup variable with dummy_int.
19475 2012-06-28  OLivier Hainque  <hainque@adacore.com>
19477         * expr.c (convert_move): Latch mem integer inputs into a
19478         register before expanding a multi-instructions sequence.
19480 2012-06-28  Alexandre Oliva  <aoliva@redhat.com>
19481             Uros Bizjak  <ubizjak@gmail.com>
19482             Jakub Jelinek  <jakub@redhat.com>
19484         PR debug/53706
19485         PR debug/47624
19486         * var-tracking.c (vt_emit_notes): Release loc_exp_dep_pool...
19487         (vt_finalize): ... here instead, if needed.
19489 2012-06-28  Alexandre Oliva  <aoliva@redhat.com>
19491         PR debug/53740
19492         PR debug/52983
19493         PR debug/48866
19494         * dce.c (word_dce_process_block): Check whether inserting debug
19495         temps are needed even for needed insns.
19496         (dce_process_block): Likewise.
19497         * df-problems.c (dead_debug_add): Add comment about multi-regs.
19498         (dead_debug_insert_temp): Likewise.  Don't subreg when we're
19499         setting fewer regs than a multi-reg requires.
19501 2012-06-27  Richard Henderson  <rth@redhat.com>
19503         * config/alpha/alpha.c (alpha_dimode_u): New.
19504         (alpha_init_builtins): Initialize it, and use it.
19505         (alpha_fold_builtin_cmpbge): Use alpha_dimode_u.
19506         (alpha_fold_builtin_zapnot, alpha_fold_builtin_insxx): Likewise.
19507         (alpha_fold_vector_minmax, alpha_fold_builtin_perr): Likewise.
19508         (alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb): Likewise.
19509         (alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw): Likewise.
19510         (alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz): Likewise.
19511         (alpha_fold_builtin_ctpop): Likewise.
19512         (alpha_fold_builtin_umulh): Remove.
19513         (alpha_fold_builtin): Use MULT_HIGHPART_EXPR for UMULH; fix
19514         typo in MAX_ARGS check.
19516 2012-06-27  Richard Henderson  <rth@redhat.com>
19518         * tree.def (MULT_HIGHPART_EXPR): New.
19519         * cfgexpand.c (expand_debug_expr): Ignore it.
19520         * expr.c (expand_expr_real_2): Handle it.
19521         * fold-const.c (int_const_binop_1): Likewise.
19522         * optabs.c (optab_for_tree_code): Likewise.
19523         * tree-cfg.c (verify_gimple_assign_binary): Likewise.
19524         * tree-inline.c (estimate_operator_cost): Likewise.
19525         * tree-pretty-print.c (dump_generic_node): Likewise.
19526         (op_code_prio, op_symbol_code): Likewise.
19527         * tree.c (commutative_tree_code): Likewise.  Also handle
19528         WIDEN_MULT_EXPR, VEC_WIDEN_MULT_HI_EXPR, VEC_WIDEN_MULT_LO_EXPR.
19530 2012-06-27  Richard Henderson  <rth@redhat.com>
19532         PR target/53749
19533         * config/i386/i386.c (ix86_rtx_costs): Fix typo vs UNITS_PER_WORD
19534         in 2012-06-23 change.  Adjust two other DImode tests as well.
19536 2012-06-27  Nick Clifton  <nickc@redhat.com>
19538         * config/rx/rx.md (comparesi3_extend): Remove = modifier from
19539         input operand.
19541 2012-06-27  Richard Guenther  <rguenther@suse.de>
19543         PR middle-end/53676
19544         * tree-chrec.c (chrec_convert_1): Represent truncation to
19545         a type with undefined overflow as truncation to an unsigned
19546         type converted to the type with undefined overflow.
19547         * tree-scalar-evolution.c (interpret_rhs_expr): For computing
19548         the scalar evolution of a truncated widened operation avoid
19549         looking at the non-existing evolution of the widened operation
19550         result.
19552 2012-06-27  Richard Guenther  <rguenther@suse.de>
19554         PR tree-optimization/53774
19555         * tree-ssa-reassoc.c (get_rank): All default defs have
19556         precomputed rank.
19557         (init_reassoc): Precompute rank for all SSA default defs.
19559 2012-06-27  Nick Clifton  <nickc@redhat.com>
19561         * config/rx/rx.md (simple_return): Use the simple_return rtx.
19563 2012-06-26  Richard Henderson  <rth@redhat.com>
19565         * config/i386/i386.c (ix86_rtx_costs): Use standard_sse_constant_p
19566         and don't fall thru from standard_80387_constant_p to the memory
19567         fallback.
19569 2012-06-26  Richard Henderson  <rth@redhat.com>
19571         * config/i386/i386.c (bdesc_args): Update.  Change
19572         IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI to OPTION_MASK_ISA_SSE2.
19573         (IX86_BUILTIN_VEC_WIDEN_SMUL_EVEN_V4SI): New.
19574         (ix86_builtin_mul_widen_even): Use it.
19575         (ix86_builtin_mul_widen_odd): Relax SMUL_ODD from sse4 to sse2.
19576         (ix86_expand_mul_widen_evenodd): Handle signed for sse2.
19577         * config/i386/sse.md (vec_widen_<s>mult_hi_<V124_AVX2>): Allow
19578         for all SSE2.
19579         (vec_widen_<s>mult_lo_<V124_AVX2>): Likewise.
19580         (vec_widen_<s>mult_odd_<VI4_AVX2>): Likewise.  Relax from V124_AVX2.
19581         (vec_widen_smult_even_v4si): New.
19583 2012-06-26  Richard Henderson  <rth@redhat.com>
19585         * config/i386/sse.md (mul<VI8_AVX2>3): Change from insn_and_split
19586         to expander; move guts to ...
19587         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): ... here.  Add
19588         highparts before shifting up.
19589         * config/i386/i386-protos.h: Update.
19591 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
19593         * system.h (USE_COMMON_FOR_ONE_ONLY): Poison.
19594         * defaults.h (USE_COMMON_FOR_ONE_ONLY): Do not provide default.
19595         * config/darwin.h (USE_COMMON_FOR_ONE_ONLY): Do not define.
19597 2012-06-26  Alexandre Oliva  <aoliva@redhat.com>
19599         * var-tracking.c (vt_add_function_parameter): Use a preserved
19600         VALUE for the MEM address of an incoming parameter.
19602 2012-06-26  Sterling Augustine <saugustine@google.com>
19604         * dwarf2out.c (output_pubnames): Add check for DW_TAG_enumerator.
19605         (prune_unused_types): Likewise.
19607 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
19609         * system.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
19610         UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Poison.
19611         * vmsdbgout.c (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
19612         UNALIGNED_LONG_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Rename to
19613         VMS_UNALIGNED_SHORT_ASM_OP, VMS_UNALIGNED_INT_ASM_OP,
19614         VMS_UNALIGNED_LONG_ASM_OP, and VMS_UNALIGNED_DOUBLE_INT_ASM_OP.
19615         * config/microblaze/microblaze.h (UNALIGNED_SHORT_ASM_OP,
19616         UNALIGNED_INT_ASM_OP, UNALIGNED_DOUBLE_INT_ASM_OP): Do not define.
19617         * doc/tm.texi.in: Remove UNALIGNED_INT_ASM_OP reference from the
19618         documentation.
19619         * doc/tm.texi: Regenerate.
19620         * doc/cpp.texi: Make example for #error generic.
19621         * config/frv/frv.h: Fix example text to match tm.texi.
19623 2012-06-26  Bill Schmidt  <wschmidt@linux.ibm.com>
19625         * tree-pass.h (pass_strength_reduction): New decl.
19626         * tree-ssa-loop-ivopts.c (initialize_costs): Make non-static.
19627         (finalize_costs): Likewise.
19628         * timevar.def (TV_TREE_SLSR): New timevar.
19629         * gimple-ssa-strength-reduction.c: New.
19630         * tree-flow.h (initialize_costs): New decl.
19631         (finalize_costs): Likewise.
19632         * Makefile.in (tree-ssa-strength-reduction.o): New dependencies.
19633         * passes.c (init_optimization_passes): Add pass_strength_reduction.
19635 2012-06-26  Matt Turner  <mattst88@gmail.com>
19637         * doc/extend.texi (__builtin_arm_tinsrb): Add missing second parameter.
19638         (__builtin_arm_tinsrh): Likewise.
19639         (__builtin_arm_tinsrw): Likewise.
19640         (__builtin_arm_wsadb): Add missing v2si parameter.
19641         (__builtin_arm_wsadh): Likewise.
19642         (__builtin_arm_getwcx): Delete.
19643         (__builtin_arm_setwcx): Delete.
19644         (__builtin_arm_getwcgr0): Add.
19645         (__builtin_arm_getwcgr1): Add.
19646         (__builtin_arm_getwcgr2): Add.
19647         (__builtin_arm_getwcgr3): Add.
19648         (__builtin_arm_setwcgr0): Add.
19649         (__builtin_arm_setwcgr1): Add.
19650         (__builtin_arm_setwcgr2): Add.
19651         (__builtin_arm_setwcgr3): Add.
19653 2012-06-26  Richard Guenther  <rguenther@suse.de>
19655         Revert
19656         2012-06-21  Richard Guenther  <rguenther@suse.de>
19658         * tree-inline.c (estimate_num_insns): Estimate call cost for
19659         tailcalls properly.
19661 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
19663         PR other/33190
19664         * doc/tm.texi.in: Document LOGICAL_OP_NON_SHORT_CIRCUIT.
19665         * doc/tm.texi: Regenerate.
19667 2012-06-26  Steven Bosscher  <steven@gcc.gnu.org>
19669         PR other/33190
19670         * config/mips/mips.h: Do not define ALL_COP_ADDITIONAL_REGISTER_NAMES.
19671         * config/frv/frv.h: Do not define REVERSE_CONDEXEC_PREDICATES_P.
19672         * doc/tm.texi.in: Remove documentation for unused target macros
19673         ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
19674         DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
19675         REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
19676         TARGET_NARROW_VOLATILE_BITFIELDS.
19677         Document that MD_HANDLE_UNWABI is a macro in libgcc.
19678         * doc/tm.texi: Regenerate.
19679         * system.h: Poison target macros
19680         ALL_COP_ADDITIONAL_REGISTER_NAMES, DBX_OUTPUT_LBRAC, DBX_OUTPUT_NFUN,
19681         DBX_OUTPUT_RBRAC, RANGE_TEST_NON_SHORT_CIRCUIT, REAL_VALUE_TRUNCATE,
19682         REVERSE_CONDEXEC_PREDICATES_P, TARGET_ALIGN_ANON_BITFIELDS, and
19683         TARGET_NARROW_VOLATILE_BITFIELDS
19685 2012-06-26  Jan Hubicka  <jh@suse.cz>
19687         PR lto/53572
19688         * cgraph.h (varpool_can_remove_if_no_refs): Fix handling of
19689         used symbols.
19691 2012-06-26  Dehao Chen  <dehao@google.com>
19693         * tree-inline.c: (expand_call_inline): Ensure that lexical block's
19694         source location is consistant with the call stmt.
19696 2012-06-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
19698         PR tree-optimization/53729
19699         PR tree-optimization/53636
19700         * tree-vect-slp.c (vect_slp_analyze_bb_1): Delay call to
19701         vect_verify_datarefs_alignment until after statements have
19702         been marked as relevant/irrelevant.
19703         * tree-vect-data-refs.c (vect_verify_datarefs_alignment):
19704         Skip irrelevant statements.
19705         (vect_enhance_data_refs_alignment): Use STMT_VINFO_RELEVANT_P
19706         instead of STMT_VINFO_RELEVANT.
19707         (vect_get_data_access_cost): Do not check for supportable
19708         alignment before calling vect_get_load_cost/vect_get_store_cost.
19709         * tree-vect-stmts.c (vect_get_store_cost): Do not abort when
19710         handling unsupported alignment.
19711         (vect_get_load_cost): Likewise.
19713 2012-06-25  Steven Bosscher  <steven@gcc.gnu.org>
19715         * config/rl78/rl78.h: Do not undefine DONT_USE_BUILTIN_SETJMP.
19716         Do not define JMP_BUF_SIZE.
19718 2012-06-26  Jakub Jelinek  <jakub@redhat.com>
19720         PR tree-optimization/53748
19721         * tree-ssa-phiopt.c (conditional_replacement): Only optimize
19722         if arg0/arg1 have integral or pointer types.
19724 2012-06-25  Richard Henderson  <rth@redhat.com>
19726         * config/i386/sse.md (sse2_sse4_1): Remove code attr.
19727         (<s>dot_prodv4si, <s>dot_prodv8si): Remove
19728         (sdot_prodv4si): New; handle only XOP.
19730 2012-06-25  Richard Henderson  <rth@redhat.com>
19732         * config/i386/i386-builtin-types.def (V4UDI, V8USI): New.
19733         (V2UDI_FUNC_V4USI_V4USI): New.
19734         (V4UDI_FUNC_V8USI_V8USI): New.
19735         * config/i386/i386.c (ix86_expand_args_builtin): Handle them.
19736         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V4SI): New.
19737         (IX86_BUILTIN_VEC_WIDEN_SMUL_ODD_V8SI): New.
19738         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V4SI): New.
19739         (IX86_BUILTIN_VEC_WIDEN_UMUL_ODD_V8SI): New.
19740         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V4SI): New.
19741         (IX86_BUILTIN_VEC_WIDEN_UMUL_EVEN_V8SI): New.
19742         (bdesc_args): Add them.
19743         (ix86_builtin_mul_widen_even, ix86_builtin_mul_widen_odd): New.
19744         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_EVEN): New.
19745         (TARGET_VECTORIZE_BUILTIN_MUL_WIDEN_ODD): New.
19746         (ix86_expand_mul_widen_evenodd): Use xop_pmacsdqh.
19747         * config/i386/sse.md (vec_widen_<s>mult_odd_<V124_AVX2>): New.
19749 2012-06-25  Richard Henderson  <rth@redhat.com>
19751         * config/i386.sse.md (mul<VI4_AVX2>3): Use xop_pmacsdd.
19753 2012-06-25  Richard Henderson  <rth@redhat.com>
19755         * config/i386/i386.c (ix86_rtx_costs) [MULT]: Only apply XOP cost
19756         to V16QImode.
19757         (ix86_expand_vec_interleave): New.
19758         (ix86_expand_mul_widen_evenodd): New.
19759         (ix86_expand_mul_widen_hilo): New.
19760         (ix86_expand_sse2_mulv4si3): Use ix86_expand_mul_widen_evenodd.
19761         * config/i386/i386.md (u_bool) New code attr.
19762         * config/i386/predicates.md
19763         (nonimmediate_or_const_vector_operand): Remove.
19764         * config/i386/sse.md (mul<VI4_AVX2>3): Don't use it; don't test
19765         both AVX and SSE4_1.
19766         (vec_widen<s>mult_hi_<VI2_AVX2>): Remove.
19767         (vec_widen<s>mult_lo_<VI2_AVX2>): Remove.
19768         (vec_widen<s>mult_hi_v8si): Remove.
19769         (vec_widen<s>mult_lo_v8si): Remove.
19770         (vec_widen_smult_hi_v4si): Remove.
19771         (vec_widen_smult_lo_v4si): Remove.
19772         (vec_widen_umult_hi_v4si): Remove.
19773         (vec_widen_umult_lo_v4si): Remove.
19774         (vec_widen_<s>mult_hi_<VI124_AVX2>): New.
19775         (vec_widen_<s>mult_lo_<VI124_AVX2>): New.
19776         * config/i386/i386-protos.h: Update.
19778 2012-06-25  Christophe Lyon  <christophe.lyon@st.com>
19780         * config/arm/neon.md (UNSPEC_VLD1_DUP): Remove.
19781         (neon_vld1_dup): Restrict to VQ operands.
19782         (neon_vld1_dupv2di): New, fixes vld1q_dup_s64.
19784 2012-06-25  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
19785             James Greenhalgh  <james.greenhalgh@arm.com>
19787         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add new built-ins.
19788         (TARGET_FMA): New macro.
19789         (TARGET_ARM_QBIT, TARGET_ARM_SAT): Likewise.
19790         (TARGET_ARM_ARCH): Likewise.
19791         (TARGET_ARM_ARCH_ISA_THUMB): Likewise.
19792         (TARGET_V6M, TARGET_V7M): Likewise.
19793         (TARGET_ARM_ARCH_PROFILE): Likewise.
19794         (TARGET_ARM_FEATURE_LDREX): Likewise.
19795         (TARGET_ARM_FP, TARGET_NEON_FP): Likewise.
19796         (ARM_MIN_ENUM_SIZE): Likewise.
19797         * config/arm/arm.c (arm_file_start): Refactor appropriately.
19798         (base_architecture): New enumeration.
19799         (arm_base_arch): New global variable.
19800         (processors): Add field base_arch.
19801         (ARM_ARCH, ARM_CORE): Adjust accordingly.
19802         (arm_option_override): Add initialization of arm_base_arch.
19803         * doc/cpp.texi (system-specific predefined macros.): Change.
19805 2012-06-25  Jakub Jelinek  <jakub@redhat.com>
19807         PR target/53759
19808         * config/i386/sse.md (sse_loadlps): Use x m x constraints instead
19809         of x x x in the vmovlps load alternative.
19811 2012-06-25  Richard Sandiford  <rdsandiford@googlemail.com>
19813         PR debug/53740
19814         * df.h (dead_debug_add): Remove third argument.
19815         * df-problems.c (dead_debug_add): Likewise.  Use the REGNO of the
19816         REG that we want to replace instead.
19817         (dead_debug_insert_temp): Use the REGNO of the reg that we want
19818         to replace instead of DF_REF_REGNO.  Require there to always be
19819         at least one such use.  Check for cases where the same location
19820         has more than df_ref associated with it.
19821         (df_note_bb_compute): Remove third dead_debug_add argument.
19822         * dce.c (word_dce_process_block): Likewise.
19824 2012-06-25  Steven Bosscher  <steven@gcc.gnu.org>
19826         * config/v850/v850.c: Remove redundant extern declarations for
19827         last_assemble_variable_decl and size_directive_output.
19829         * doc/tm.texi.in: Document JMP_BUF_SIZE.
19830         * doc/tm.texi: Regenerate.
19831         * config/sparc/sparc.h (JMP_BUF_SIZE): Do not define.
19832         * config/pa/pa.h (JMP_BUF_SIZE): Likewise.
19833         * config/stormy16/stormy16.h: Likewise.
19835         * config/picochip/picochip.c: Do not define DONT_USE_BUILTIN_SETJMP.
19837         * doc/sourcebuild.texi: Add missing subdirectories.
19839 2012-06-25  Tristan Gingold  <gingold@adacore.com>
19841         * config/i386/i386.h: Fix typo.
19843 2012-06-25  Tristan Gingold  <gingold@adacore.com>
19845         * config/i386/winnt.c (i386_pe_seh_end_prologue): Move code to ...
19846         (seh_cfa_adjust_cfa): ... that function.
19847         (seh_emit_stackalloc): Do not emit out of range values.
19848         * config/i386/i386.md: Delete unused UNSPEC_REG_SAVE,
19849         UNSPEC_DEF_CFA constants.
19850         * config/i386/i386.h (SEH_MAX_FRAME_SIZE): Define.
19851         * config/i386/i386.c (ix86_frame_pointer_required): Required
19852         for very large frames on SEH target.
19853         (ix86_compute_frame_layout): Save area is before frame pointer
19854         on SEH target.  Handle very large frames.
19855         (ix86_expand_prologue): Likewise.
19857 2012-06-24  Steven Bosscher  <steven@gcc.gnu.org>
19859         * output.h: (current_function_is_leaf,
19860         current_function_sp_is_unchanging,
19861         current_function_uses_only_leaf_regs): Remove.
19862         * function.c (current_function_is_leaf,
19863         current_function_sp_is_unchanging,
19864         current_function_uses_only_leaf_regs): Remove.
19865         (rest_of_handle_check_leaf_regs): Set crtl->uses_only_leaf_regs
19866         instead of current_function_uses_only_leaf_regs.
19867         * function.h (struct rtl_data): New fields sp_is_unchanging,
19868         is_leaf, uses_only_leaf_regs.
19869         * resource.c (init_resource_info): Replace current_function_is_leaf,
19870         current_function_sp_is_unchanging, and
19871         current_function_uses_only_leaf_regs with new crtl fields.
19872         * sdbout.c (sdbout_symbol): Likewise.
19873         * df-core.c (rest_of_handle_df_initialize): Likewise.
19874         * ira.c (ira): Likewise.
19875         * final.c (final_start_function): Likewise.
19876         * reorg.c (fill_simple_delay_slots): Likewise.
19877         * regrename.c (check_new_reg_p): Likewise.
19878         * stack-ptr-mod.c (notice_stack_pointer_modification_1): Likewise.
19879         (notice_stack_pointer_modification): Likewise.
19880         * dbxout.c (dbxout_symbol): Likewise.
19881         (dbxout_parms): Likewise.
19882         * sel-sched.c (init_regs_for_mode): Likewise.
19883         * dwarf2out.c (dbx_reg_number): Likewise.
19884         (multiple_reg_loc_descriptor): Likewise.
19885         * config/i386/i386.c (ix86_frame_pointer_required): Likewise.
19886         (gen_pop): Likewise.
19887         (ix86_select_alt_pic_regnum): Likewise.
19888         (ix86_compute_frame_layout): Likewise.
19889         (ix86_finalize_stack_realign_flags): Likewise.
19890         (ix86_expand_epilogue): Likewise.
19891         * config/rs6000/rs6000.c (rs6000_stack_info): Likewise.
19892         * config/h8300/h8300.c (byte_reg): Likewise.
19893         * config/c6x/c6x.c (must_reload_pic_reg_p): Likewise.
19894         (c6x_save_reg): Likewise.
19895         (c6x_compute_frame_layout): Likewise.
19896         * config/pa/pa.c (pa_compute_frame_size): Likewise.
19897         (pa_output_function_prologue): Likewise.
19898         * config/stormy16/stormy16.c (struct xstormy16_stack_layout): Likewise.
19899         * config/sparc/sparc.md (attr "leaf_function"): Likewise.
19900         * config/sparc/sparc.c (sparc_initial_elimination_offset): Likewise.
19901         (sparc_expand_prologue): Likewise.
19902         (sparc_flat_expand_prologue): Likewise.
19903         (sparc_asm_function_prologue): Likewise.
19904         (sparc_output_mi_thunk): Likewise.
19905         (sparc_frame_pointer_required): Likewise.
19906         * config/epiphany/epiphany.c (epiphany_compute_function_type):
19907         Likewise.
19908         (epiphany_compute_frame_size): Likewise.
19909         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
19910         * config/cris/cris.c (cris_md_asm_clobbers): Likewise.
19911         (cris_frame_pointer_required): Likewise.
19912         * config/tilepro/tilepro.c (emit_sp_adjust): Likewise.
19913         (tilepro_current_function_is_leaf): Likewise.
19914         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Likewise.
19915         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
19916         * config/ia64/ia64.c (find_gr_spill): Likewise.
19917         (ia64_compute_frame_size): Likewise.
19918         (ia64_can_eliminate): Likewise.
19919         (ia64_initial_elimination_offset): Likewise.
19920         * config/m68k/m68k.c (m68k_save_reg): Likewise.
19921         (m68k_expand_epilogue): Likewise.
19922         * config/rx/rx.c (rx_get_stack_layout): Likewise.
19923         * config/tilegx/tilegx.c (tilegx_current_function_is_leaf): Likewise.
19924         * config/picochip/picochip.c (picochip_can_eliminate_link_sp_save):
19925         Likewise.
19926         (picochip_output_frame_debug): Likewise.
19927         * config/sh/sh.c (sh_media_register_for_return): Likewise.
19928         (sh_allocate_initial_value): Likewise.
19929         (sh_output_mi_thunk): Likewise.
19930         * config/microblaze/microblaze.c (microblaze_must_save_register):
19931         Likewise.
19932         (compute_frame_size): Likewise.
19933         (microblaze_initial_elimination_offset): Likewise.
19934         (microblaze_expand_prologue): Likewise.
19935         (microblaze_expand_epilogue): Likewise.
19936         * config/frv/frv.c (frv_expand_epilogue): Likewise.
19937         (frv_frame_pointer_required): Likewise.
19938         * config/spu/spu.c (get_pic_reg): Likewise.
19939         (direct_return): Likewise.
19940         (spu_expand_prologue): Likewise.
19941         (spu_expand_epilogue): Likewise.
19942         (spu_initial_elimination_offset): Likewise.
19943         * config/mips/mips.c (mips_global_pointer): Likewise.
19944         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
19945         (mips_compute_frame_info): Likewise.
19946         * config/mep/mep.c (mep_interrupt_saved_reg): Likewise.
19947         (mep_reload_pointer): Likewise.
19948         * config/rl78/rl78.c (need_to_save): Likewise.
19949         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
19950         * config/score/score.c (score_compute_frame_size): Likewise.
19951         (score_function_prologue): Likewise.
19952         * config/bfin/bfin.c (must_save_p): Likewise.
19953         (expand_prologue_reg_save): Likewise.
19954         (expand_epilogue_reg_restore): Likewise.
19955         (bfin_frame_pointer_required): Likewise.
19956         (n_regs_saved_by_prologue): Likewise.
19957         (add_to_reg): Likewise.
19958         (expand_interrupt_handler_prologue): Likewise.
19959         (expand_interrupt_handler_epilogue): Likewise.
19960         (bfin_expand_prologue): Likewise.
19961         * config/avr/avr.c (avr_regs_to_save): Likewise.
19962         (avr_prologue_setup_frame): Likewise.
19963         (expand_epilogue): Likewise.
19964         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
19965         (s390_register_info): Likewise.
19966         (s390_frame_info): Likewise.
19967         (s390_init_frame_layout): Likewise.
19968         (s390_emit_prologue): Likewise.
19971 2012-06-24  Steven Bosscher  <steven@gcc.gnu.org>
19973         * system.h: Poison ASM_BYTE_OP and ASM_OUTPUT_BYTE.
19974         * vmsdbgout: Do not undefine it if defined.
19975         Rename local ASM_BYTE_OP definition to VMS_ASM_BYTE_OP.
19976         * config/microblaze/microblaze/h: Do no define ASM_BYTE_OP.
19977         * config/mep/mep.h: Do not define ASM_OUTPUT_BYTE.
19979 2012-06-24  Richard Sandiford  <rdsandiford@googlemail.com>
19981         * config/mips/mips.c (mips_process_sync_loop): Add missing enum cast.
19983 2012-06-23  Richard Henderson  <rth@redhat.com>
19985         PR target/53749
19986         * config/i386/i386.c (ix86_rtx_costs): Add reasonable costs for
19987         V*QImode shifts and multiply.
19988         (ix86_expand_vecop_qihi): Support shifts.
19989         * config/i386/i386.md (any_shift): New code iterator.
19990         * config/i386/sse.md (ashlv16qi3): Merge ...
19991         (<any_shiftrt>v16qi3): ... into ...
19992         (<any_shift><VI1_AVX2>3): ... here.  Use ix86_expand_vecop_qihi
19993         to support SSE and AVX.
19995         * config/i386/i386.c (ix86_expand_sse_unpack): Split operands[]
19996         parameter into src and dest.
19997         * config/i386/sse.md (vec_unpacku_hi_<V124_AVX2>): Update call.
19998         (vec_unpacks_hi_<V124_AVX2>): Likewise.
19999         (vec_unpacku_lo_<V124_AVX2>): Likewise.
20000         (vec_unpacks_lo_<V124_AVX2>): Likewise.
20001         * config/i386/i386-protos.h: Update.
20003         * config/i386/sse.md (mul<VI1_AVX2>3): Change from insn_and_split to
20004         pure expander; move expansion code ...
20005         * config/i386/i386.c (ix86_expand_vecop_qihi): ... here.  New function.
20006         * config/i386/i386-protos.h: Update.
20008 2012-06-22  Edmar Wienskoski  <edmar@freescale.com>
20010         * config/rs6000/rs6000.md (define_attr "type"): New type popcnt.
20011         (popcntb<mode>2): Add attribute type popcnt.
20012         (popcntd<mode>2): Ditto.
20013         * config/rs6000/power4.md (define_insn_reservation): Add type popcnt.
20014         * config/rs6000/power5.md (define_insn_reservation): Ditto.
20015         * config/rs6000/power7.md (define_insn_reservation): Ditto.
20016         * config/rs6000/476.md (define_insn_reservation): Ditto.
20017         * config/rs6000/power6.md (define_insn_reservation): New
20018         reservation for popcnt instructions.
20020 2012-06-22  H.J. Lu  <hongjiu.lu@intel.com>
20022         * doc/invoke.texi: Update -mpreferred-stack-boundary=3 warning.
20024 2012-06-22  H.J. Lu  <hongjiu.lu@intel.com>
20026         PR target/53383
20027         * doc/invoke.texi: Add a warning for -mpreferred-stack-boundary=3.
20029         * config/i386/i386.c (ix86_option_override_internal): Allow
20030         -mpreferred-stack-boundary=3 for 64-bit if SSE is disabled.
20032         * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to 64 for 64-bit
20033         if SSE is disabled.
20035 2012-06-22  Bill Schmidt  <wschmidt@linux.ibm.com>
20037         * double-int.c (double_int_multiple_of): New function.
20038         * double-int.h (double_int_multiple_of): New decl.
20039         * tree-ssa-loop-ivopts.c (add_cost, zero_cost): Remove undefs.
20040         (mbc_entry_hash): New forward decl.
20041         (mbc_entry_eq): Likewise.
20042         (zero_cost): Change to no_cost.
20043         (mult_costs): New static var.
20044         (cost_tables_exist): Likewise.
20045         (initialize_costs): New function.
20046         (finalize_costs): Likewise.
20047         (tree_ssa_iv_optimize_init): Call initialize_costs.
20048         (add_cost): Change to add_regs_cost; distinguish costs by speed.
20049         (multiply_regs_cost): New function.
20050         (add_const_cost): Likewise.
20051         (extend_or_trunc_reg_cost): Likewise.
20052         (negate_reg_cost): Likewise.
20053         (multiply_by_cost): Change to multiply_by_const_cost; distinguish
20054         costs by speed.
20055         (get_address_cost): Change add_cost to add_regs_cost; change
20056         multiply_by_cost to multiply_by_const_cost.
20057         (force_expr_to_var_cost): Change zero_cost to no_cost; change
20058         add_cost to add_regs_cost; change multiply_by_cost to
20059         multiply_by_const_cost.
20060         (split_cost): Change zero_cost to no_cost.
20061         (ptr_difference_cost): Likewise.
20062         (difference_cost): Change zero_cost to no_cost; change multiply_by_cost
20063         to multiply_by_const_cost.
20064         (get_computation_cost_at): Change add_cost to add_regs_cost; change
20065         multiply_by_cost to multiply_by_const_cost.
20066         (determine_use_iv_cost_generic): Change zero_cost to no_cost.
20067         (determine_iv_cost): Change add_cost to add_regs_cost.
20068         (iv_ca_new): Change zero_cost to no_cost.
20069         (tree_ssa_iv_optimize_finalize): Call finalize_costs.
20070         * tree-ssa-address.c (most_expensive_mult_to_index): Change
20071         multiply_by_cost to multiply_by_const_cost.
20072         * tree-flow.h (multiply_by_cost): Change to multiply_by_const_cost.
20073         (add_regs_cost): New decl.
20074         (multiply_regs_cost): Likewise.
20075         (add_const_cost): Likewise.
20076         (extend_or_trunc_reg_cost): Likewise.
20077         (negate_reg_cost): Likewise.
20079 2012-06-22  Richard Guenther  <rguenther@suse.de>
20081         Merge from graphite branch
20082         2011-08-10  Sebastian Pop <sebpop@gmail.com>
20084         * graphite-sese-to-poly.c (build_scop_drs): Fix memory leak.
20086         2012-01-13  Tobias Grosser  <tobias@grosser.es>
20088         * tree-flow.h (parallelized_function_p): Declare.
20089         * tree-parloops.c (parallelized_function_p): Export.
20090         * graphite.c (graphite_transform_loops): Do not run graphite on
20091         already parallel functions.
20093 2012-06-22  Alan Modra  <amodra@gmail.com>
20095         * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Pass in and
20096         return mem.  Convert to indirect addressing if not indirect or
20097         indexed.  Adjust all callers.
20099 2012-06-22  Richard Guenther  <rguenther@suse.de>
20101         * gcov-iov.c: Include bconfig.h and system.h.
20103 2012-06-22  Andreas Schwab  <schwab@linux-m68k.org>
20105         * doc/include/texinfo.tex: Update to version 2012-06-05.14.
20107 2012-06-22  Richard Guenther  <rguenther@suse.de>
20109         PR gcov-profile/53744
20110         * gcov-iov.c (main): Treat "" and "prerelease" the same.
20112 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
20114         PR debug/53704
20115         * dwarf2out.c (gen_compile_unit_die): Use DW_LANG_Fortran90 as language
20116         for GNU Fortran if in strict DWARF2 mode.
20118 2012-06-22  Eric Botcazou  <ebotcazou@adacore.com>
20120         * tree-ssa-live.c (remove_unused_scope_block_p): Remove again
20121         DECL_IGNORED_P non-reg vars even if they are used.
20123 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
20125         PR debug/53671
20126         PR debug/49888
20127         * var-tracking.c (vt_get_canonicalize_base): New.
20128         (vt_canonicalize_addr, vt_stack_offset_p): New.
20129         (vt_canon_true_dep): New.
20130         (drop_overlapping_mem_locs): Use vt_canon_true_dep.
20131         (clobber_overlaping_mems): Use vt_canonicalize_addr.
20133 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
20135         PR debug/53671
20136         PR debug/49888
20137         * var-tracking.c (vt_initialize): Record initial offset between
20138         arg pointer and stack pointer.
20140 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
20142         PR debug/53671
20143         PR debug/49888
20144         * var-tracking.c (vt_init_cfa_base): Drop redundant recording of
20145         CFA base.
20147 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
20149         PR debug/53671
20150         PR debug/49888
20151         * alias.c (memrefs_conflict_p): Improve handling of AND for alignment.
20153 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
20155         * ddg.c (build_intra_loop_deps): Discard deps of nondebug on debug.
20157 2012-06-21  Alexandre Oliva  <aoliva@redhat.com>
20159         PR debug/53682
20160         * cselib.c (promote_debug_loc): Don't crash on NULL argument.
20162 2012-06-21  Meador Inge  <meadori@codesourcery.com>
20164         PR c/53702
20165         * c-decl.c (c_push_function_context): Restore the behavior to reuse
20166         the language function allocated for -Wunused-local-typedefs.
20167         (c_pop_function_context): If necessary, clear the language function
20168         created in c_push_function_context.  Always clear out the
20169         x_cur_stmt_list field of the restored language function.
20171 2012-06-21  Sterling Augustine  <saugustine@google.com>
20172             Cary Coutant  <ccoutant@google.com>
20174         * dwarf2out.c (is_cu_die, is_namespace_die, is_class_die,
20175         add_AT_pubnames, add_enumerator_pubname, want_pubnames): New functions.
20176         (comdat_type_struct): New field 'skeleton_die'.
20177         (breakout_comdat_types): Update it.
20178         (add_pubname): Rework logic.  Call is_class_die, is_cu_die and
20179         is_namespace_die.  Fix minor style violation.  Call want_pubnames.
20180         (add_pubname_string): Call want_pubnames.
20181         (add_pubtype): Rework logic for calculating type name.  Call
20182         is_namespace_die.  Call want_pubnames.
20183         (output_pubnames): Move conditional logic deciding when to produce the
20184         section from dwarf2out_finish.  Use new skeleton_die field.
20185         (base_type_die): Call add_pubtype.
20186         (gen_enumeration_type_die): Unconditionally call add_pubtype.
20187         (gen_subprogram_die): Adjust calls to add_pubname.
20188         (gen_namespace_die): Call add_pubname_string.
20189         (dwarf2out_finish): Call add_AT_pubnames; Move logic on when to
20190         produce pubnames and pubtypes sections to output_pubnames.
20191         * common.opt (-gpubnames): New option.
20192         * doc/invoke.texi: Document it.
20194 2012-06-21  Steven Bosscher  <steven@gcc.gnu.org>
20196         * config/m32c/m32c-pragma.c: Remove unnecessary includes.
20198 2012-06-21  Michael Matz  <matz@suse.de>
20200         PR middle-end/53688
20201         * builtins.c (get_memory_rtx): Always build an all-aliasing MEM_REF
20202         with correct size.
20204 2012-06-21  Richard Guenther  <rguenther@suse.de>
20206         * tree-inline.c (estimate_num_insns): Estimate call cost for
20207         tailcalls properly.
20209 2012-06-20  Rüdiger Sonderfeld  <ruediger@c-plusplus.de>
20211         * tree.h (DECL_SOURCE_COLUMN): New accessor.
20213 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
20215         * config/i386/i386.md (SINCOS): New int iterator.
20216         (sincos): New int attribute.
20217         (*<sincos>xf2_i387): Macroize insn from *{sin,cos}xf2_i387 using
20218         SINCOS int iterator.
20219         (*<sincos>_extend<mode>xf2_i387): Macroize insn from
20220         *{sin,cos}_extend<mode>xf2_i387 using SINCOS int iterator.
20222 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
20224         * config/i386/i386.md (RDFSGSBASE): New int iterator.
20225         (WRFSGSBASE): Ditto.
20226         (fsgs): New int attribute.
20227         (rd<fsgs>base<mode>): Macroize insn from rd<fsgs>base<mode> using
20228         RDFSGSBASE int iterator.
20229         (wr<fsgs>base<mode>): Macroize insn from wr<fsgs>base<mode> using
20230         WRFSGSBASE int iterator.
20232 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
20234         * config/i386/i386.md (<rounding_insn><mode>2): Macroize expander
20235         from {floor,ceil,btrunc}<mode>2 using FIST_ROUNDING int iterator.
20236         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Macroize expander
20237         from l{floor,ceil}<MODEF:mode><SWI48:mode>2 using FIST_ROUNDING
20238         int iterator.
20240 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
20242         * system.h: Poison ASM_OUTPUT_IDENT and IDENT_ASM_OP.
20244 2012-06-20  Richard Guenther  <rguenther@suse.de>
20246         PR tree-optimization/30318
20247         * tree-vrp.c (range_int_cst_p): Do not reject overflowed
20248         constants here.
20249         (range_int_cst_singleton_p): But explicitely here.
20250         (zero_nonzero_bits_from_vr): And here.
20251         (extract_range_from_binary_expr_1): Re-implement PLUS_EXPR
20252         to cover all cases we can perform arbitrary precision
20253         arithmetic with double-ints.
20254         (intersect_ranges): Handle adjacent anti-ranges.
20256 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
20258         * config/i386/i386.md (rounding_insn): New int attribute.
20259         (<rounding_insn>xf2): Macroize insn from
20260         {floor,ceil,btrunc}xf2 using FRNDINT_ROUNDING int iterator.
20261         (l<rounding_insn>xf<mode>2): Rename from l<rounding>xf<mode>2.
20263 2012-06-20  Uros Bizjak  <ubizjak@gmail.com>
20265         * config/i386/i386.md (IEEE_MAXMIN): New int iterator.
20266         (ieee_maxmin): New int attribute.
20267         (*ieee_s<ieee_maxmin><mode>3): Macroize insn from
20268         *ieee_s{max,min}<mode>3 using IEEE_MAXMIN int iterator.
20270 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
20272         * config/arm/arm.h (EMIT_EABI_ATTRIBUTE): Remove.
20273         * config/arm/arm.c: Do not include c-pragma.h.
20274         (arm_emit_eabi_attribute): New function based on EMIT_EABI_ATTRIBUTE.
20275         (arm_file_start): Replace uses of EMIT_EABI_ATTRIBUTE with calls
20276         to arm_emit_eabi_attribute.
20277         * arm-c.c: Do not include output.h.
20278         (arm_output_c_attributes): Replace use of EMIT_EABI_ATTRIBUTE with a
20279         call to arm_emit_eabi_attribute.
20280         * config/arm/arm-protos.h (arm_emit_eabi_attribute): Prototype it.
20282 2012-06-20  Richard Guenther  <rguenther@suse.de>
20284         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
20285         Allow adjusting alignment of user-aligned decls again.
20287 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
20289         * config/rl78/rl78-c.c: Remove unnecessary includes.
20291 2012-06-20  Steven Bosscher  <steven@gcc.gnu.org>
20293         * config/cris/cris.c: Include cgraph.h.
20294         (cris_option_override): Do not set non-existing flag_no_gcc_ident.
20296 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
20298         * emit-rtl.c (need_atomic_barrier_p): New function.
20299         * emit-rtl.h (need_atomic_barrier_p): Declare it.
20300         * config/alpha/alpha.c (alpha_{pre,post}_atomic_barrier): Use it.
20301         * config/arm/arm.c (arm_{pre,post}_atomic_barrier): Use it.
20302         * config/tilegx/tilegx.c (tile_{pre,post}_atomic_barrier): Use it.
20303         * config/mips/mips.c (mips_{pre,post}_atomic_barrier_p): Remove.
20304         (mips_process_sync_loop): Use generic version instead.
20306 2012-06-19  Maxim Kuvyrkov  <maxim@codesourcery.com>
20308         * config/mips/mips.c (mips_process_sync_loop): Emit cmp result only if
20309         it is used.
20311 2012-06-19  Tom de Vries  <vries@codesourcery.com>
20312             Maxim Kuvyrkov  <maxim@codesourcery.com>
20314         * config/mips/constraints.md (ZR): New constraint.
20315         * config/mips/predicates.md (mem_noofs_operand): New predicate.
20316         * config/mips/mips.c (mips_print_operand): Handle new print modifier.
20317         * config/mips/mips.h (TARGET_XLP): Define.
20318         (TARGET_SYNC_AFTER_SC): Update.
20319         (ISA_HAS_SWAP, ISA_HAS_LDADD): Define.
20320         * config/mips/sync.md (atomic_exchange, atomic_fetch_add): Use
20321         XLP-specific swap and ldadd patterns.
20322         (atomic_exchange_swap, atomic_fetch_add_ldadd): New patterns.
20324 2012-06-19  Tom de Vries  <vries@codesourcery.com>
20325             Maxim Kuvyrkov  <maxim@codesourcery.com>
20327         * config/mips/mips.c (mips_emit_pre_atomic_barrier_p,)
20328         (mips_emit_post_atomic_barrier_p): New static functions.
20329         (mips_process_sync_loop): Use them.  Emit sync memory barriers in
20330         accordance with memory model semantics.  Add return of CMP result for
20331         compare_and_swap.
20332         * config/mips/mips.md: Update comment.
20333         (sync_cmp): New attribute.
20334         (sync_memmodel): New attribute replacing sync_release_barrier.
20335         * config/mips/sync.md (UNSPEC_ATOMIC_COMPARE_AND_SWAP,)
20336         (UNSPEC_ATOMIC_EXCHANGE, UNSPEC_ATOMIC_FETCH_OP): New constants.
20337         (sync_lock_test_and_set, test_and_set_12): Update.
20338         (atomic_compare_and_swap, atomic_exchange, atomic_exchange_llsc,)
20339         (atomic_fetch_add, atomic_fetch_add_llsc): New patterns.
20341 2012-06-19  Joseph Myers  <joseph@codesourcery.com>
20343         * config/rs6000/spe.md (*mov_si<mode>_e500_subreg0): Rename to
20344         mov_si<mode>_e500_subreg0.
20345         (*mov_si<mode>_e500_subreg0_elf_low)
20346         (*mov_si<mode>_e500_subreg4_elf_low): New patterns.
20348 2012-06-19  Richard Henderson  <rth@redhat.com>
20350         * config/alpha/alpha.c: Include params.h.
20351         (alpha_option_override): Initialize PARAM_L1_CACHE_LINE_SIZE,
20352         PARAM_L1_CACHE_SIZE, PARAM_L2_CACHE_SIZE for the cpu tuning.
20354 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
20356         * doc/tm.texi.in (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE,
20357         TARGET_OBJC_DECLARE_CLASS_DEFINITION): Add @hooks.
20358         (ASM_DECLARE_CLASS_REFERENCE, ASM_DECLARE_UNRESOLVED_REFERENCE):
20359         Remove.
20360         * doc/tm.texi: Regenerate.
20361         * config/darwin.h (ASM_OUTPUT_LABELREF): Remove special case for
20362         .objc_class_name_*.
20363         * config/darwin-c.c: Include target.h.
20364         (darwin_objc_declare_unresolved_class_reference): New function.
20365         (darwin_objc_declare_class_definition): New function.
20366         (TARGET_OBJC_DECLARE_UNRESOLVED_CLASS_REFERENCE): Define.
20367         (TARGET_OBJC_DECLARE_CLASS_DEFINITION): Define.
20369 2012-06-19  Steven Bosscher  <steven@gcc.gnu.org>
20371         * target.def (output_ident): New hook.
20372         * targhooks.h (default_asm_output_ident_directive): Add prototype.
20373         * varasm.c (assemble_asm): Only prefix a tab if the string does not
20374         already start with one.
20375         (default_asm_output_ident_directive): New function to emit
20376         .ident as a top-level asm node while parsing, or directly to
20377         asm_out_file after parsing.
20378         * toplev.c (compile_file): Print a GCC .ident with
20379         targetm.asm_out.output_ident.
20380         * doc/tm.texi.in (ASM_OUTPUT_IDENT): Remove documentation for macro.
20381         (TARGET_ASM_OUTPUT_IDENT): Add @hook for this.
20382         * doc/tm.texi: Update.
20384         * config/elfos.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
20385         (TARGET_ASM_OUTPUT_IDENT): Define.
20386         * config/i386/djgpp.h (IDENT_ASM_OP): Remove.
20387         * config/i386/gas.h (ASM_OUTPUT_IDENT): Remove.
20388         * config/arm/aout.h (ASM_OUTPUT_IDENT): Remove.
20389         * config/sparc/sparc.h (IDENT_ASM_OP): Remove.
20390         (TARGET_ASM_OUTPUT_IDENT): Define.
20391         * config/picochip/picochip.h (IDENT_ASM_OP): Remove.
20392         (TARGET_ASM_OUTPUT_IDENT): Define.
20394         * config/cris/cris-protos.h (cris_asm_output_ident): Add prototype.
20395         * config/cris/cris.c (cris_asm_output_ident): New function.
20396         * config/cris/cris.h (ASM_OUTPUT_IDENT, IDENT_ASM_OP): Remove.
20398         * config/microblaze/microblaze-protos.h (microblaze_asm_output_ident):
20399         Add prototype.
20400         * config/microblaze/microblaze.c: Include cgraph.h for add_asm_node.
20401         (microblaze_asm_output_ident): Rewrite to work similar to
20402         default_asm_output_ident_directive for front-end .idents.
20403         * config/microblaze/microblaze.h (ASM_OUTPUT_IDENT): Remove.
20404         (TARGET_ASM_OUTPUT_IDENT): Define.
20406         * config/mips/mips.h (ASM_OUTPUT_IDENT): Remove.
20407         * config/mips/sde.h (IDENT_ASM_OP, ASM_OUTPUT_IDENT): Remove.
20409         * config/rx/rx.c: Include cgraph.h for add_asm_node.
20410         (rx_asm_output_ident): New function, similar to
20411         default_asm_output_ident_directive, but handle AS100 syntax also, so
20412         that #ident also works for rx in AS100 syntax.
20413         (TARGET_ASM_OUTPUT_IDENT): Define.
20414         * config/rx/rx.h (IDENT_ASM_OP): Remove.
20416         * Makefile.in: Fix dependencies for c-family/c-lex.o.
20418 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
20420         * config/i386/i386.md (FIST_ROUNDING): New int iterator.
20421         (rounding): Handle UNSPEC_FIST_{FLOOR,CEIL}.
20422         (ROUNDING): Ditto.
20423         (*fist<mode>2_<rounding>_1): Macroize insn from
20424         *fist<mode>2_{floor,ceil}_1 using FIST_ROUNDING int iterator.
20425         (fistdi2_<rounding>): Macroize insn from
20426         fistdi2_{floor,ceil} using FIST_ROUNDING int iterator.
20427         (fistdi2_<rounding>_with_temp and splitters): Macroize insn and
20428         corresponding splitters from fistdi2_{floor,ceil} and corresponding
20429         splitters using FIST_ROUNDING int iterator.
20430         (fist<mode>2_<rounding>): Macroize insn from
20431         fist<mode>2_{floor,ceil} using FIST_ROUNDING int iterator.
20432         (fist<mode>2_<rounding>_with_temp and splitters): Macroize insn and
20433         corresponding splitters from fist<mode>2_{floor,ceil} and corresponding
20434         splitters using FIST_ROUNDING int iterator.
20435         (l<rounding>xf<mode>2): Macroize expander from l{floor,ceil}xf<mode>2
20436         using FIST_ROUNDING int iterator.
20438 2012-06-19  Richard Henderson  <rth@redhat.com>
20440         * config/i386/i386-protos.h (ix86_expand_sse2_mulv4si3): Declare.
20441         * config/i386/i386.c (ix86_expand_sse2_mulv4si3): New.
20442         * config/i386/predicates.md (nonimmediate_or_const_vector_operand): New.
20443         * config/i386/sse.md (sse2_mulv4si3): Delete.
20444         (mul<VI4_AVX2>3): Use ix86_expand_sse2_mulv4si3 and
20445         nonimmediate_or_const_vector_operand.
20447 2012-06-19  Richard Henderson  <rth@redhat.com>
20449         * expmed.c (struct init_expmed_rtl): Split ...
20450         (init_expmed_one_mode): ... out of ...
20451         (init_expmed): ... here.  Initialize integer vector modes also.
20452         (synth_mult): Handle integer vector modes.
20453         (choose_mult_variant): Likewise.
20454         (expand_mult_const): Likewise.
20455         (expand_mult): Likewise.
20456         * machmode.h (GET_MODE_UNIT_BITSIZE): New.
20458 2012-06-19  Richard Henderson  <rth@redhat.com>
20460         * config/i386/i386.c (ix86_rtx_costs): Handle CONST_VECTOR, and
20461         integral vector modes.
20463 2012-06-19  Uros Bizjak  <ubizjak@gmail.com>
20465         * config/i386/i386.md (FRNDINT_ROUNDING): New int iterator.
20466         (rounding): New int attribute.
20467         (ROUNDING): Ditto.
20468         (frndintxf2_<rounding>): Macroize insn from
20469         frndintxf2_{floor,ceil,trunc} using FRNDINT_ROUNDING int iterator.
20470         (frndintxf2_<rounding>_i387): Macroize insn from
20471         frndintxf2_{floor,ceil,trunc}_i387 using FRNDINT_ROUNDING int iterator.
20473 2012-06-19  Richard Guenther  <rguenther@suse.de>
20475         * tree-vrp.c (union_ranges): New function.
20476         (vrp_meet_1): Use union_ranges.
20477         (vrp_meet): Dump what we union and call vrp_meet_1.
20479 2012-06-19  Richard Earnshaw  <rearnsha@arm.com>
20481         * arm.md (enum unspec): Delete UNSPEC_SIN and UNSPEC_COS.
20482         (attr type): Remove fmul, ffmul, farith, ffarith, float_em
20483         f_fpa_load, f_fpa_store, f_mem_r, r_mem_f.
20484         (attr write_conflict, attr core_cycles): Update.
20485         * arm-generic.md (r_mem_f_wbuf): Delete reservation.
20487 2012-06-19  Richard Guenther  <rguenther@suse.de>
20489         * tree-vrp.c (intersect_ranges): Handle more cases.
20490         (vrp_intersect_ranges): Dump what we intersect and call ...
20491         (vrp_intersect_ranges_1): ... this.
20493 2012-06-19  Richard Guenther  <rguenther@suse.de>
20495         PR tree-optimization/53708
20496         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Preserve
20497         user-supplied alignment and alignment of decls with the used
20498         attribute.
20500 2012-06-18  Lawrence Crowl  <crowl@google.com>
20502         * timevar.def (TV_PHASE_GENERATE): Rename to TV_PHASE_LATE_ASM.
20503         (TV_PHASE_CGRAPH): Rename to TV_PHASE_OPT_GEN.
20504         (TV_PHASE_STREAM_IN): New.
20505         (TV_PHASE_STREAM_OUT): New.
20506         * timevar.c (validate_phases): New.
20507         (timevar_print): Call validate_phases.
20508         * c-decl.c (c_write_global_declarations): Rename use of TV_PHASE_CGRAPH
20509         to TV_PHASE_OPT_GEN.
20510         * langhooks.c (write_global_declarations): Rename use of
20511         TV_PHASE_CGRAPH to TV_PHASE_OPT_GEN.  Use TV_PHASE_DBGINFO instead of
20512         TV_PHASE_CHECK_DBGINFO.
20513         * toplev.c (compile_file): Rename use of TV_PHASE_GENERATE to
20514         TV_PHASE_LATE_ASM.  Move start of TV_PHASE_LATE_ASM to after call to
20515         lang_hooks.decls.final_write_globals.
20517 2012-06-18  David Edelshn  <dje.gcc@gmail.com>
20519         * config/rs6000/aix52.h (TARGET_EXTRA_BUILTINS): Define as 0.
20521 2012-06-18  Uros Bizjak  <ubizjak@gmail.com>
20523         PR target/53712
20524         * config/i386/sse.md (*sse4_2_pcmpestr_unaligned): New.
20525         (*sse4_2_pcmpistr_unaligned): New.
20527 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
20528             Sameera Deshpande  <sameera.deshpande@arm.com>
20529             Greta Yorsh  <greta.yorsh@arm.com>
20531         * config/arm/arm-protos.h (arm_output_epilogue): Remove.
20532         * config/arm/arm.c (print_multi_reg): Remove.
20533         (vfp_output_fldmd): Likewise.
20534         (arm_output_epilogue): Likewise.
20535         * config/arm/arm.md (epilogue_insns): Update condition and code.
20537 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
20538             Sameera Deshpande  <sameera.deshpande@arm.com>
20539             Greta Yorsh  <greta.yorsh@arm.com>
20541         * config/arm/arm-protos.h (thumb2_expand_return): New declaration.
20542         * config/arm/arm.c (thumb2_expand_return): New function.
20543         * config/arm/arm.md (return): Update condition and code.
20545 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
20546             Sameera Deshpande  <sameera.deshpande@arm.com>
20547             Greta Yorsh  <greta.yorsh@arm.com>
20549         * config/arm/arm-protos.h (output_return_instruction): New parameter
20550         and int to bool change of parameter types.
20551         * config/arm/arm.c (output_return_instruction): Likewise.
20552         * config/arm/arm.md (arm_simple_return): New pattern.
20553         (arm_return, cond_return, cond_return_inverted): Add new arguments.
20554         * config/arm/thumb2.md (thumb2_return): Update condition and code.
20556 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
20557             Sameera Deshpande  <sameera.deshpande@arm.com>
20558             Greta Yorsh  <greta.yorsh@arm.com>
20560         * config/arm/arm-protos.h (arm_expand_epilogue): New declaration.
20561         * config/arm/arm.c (arm_expand_epilogue): New function.
20562         * config/arm/arm.md (epilogue): Update condition and code.
20563         (sibcall_epilogue): Likewise.
20565 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
20566             Sameera Deshpande  <sameera.deshpande@arm.com>
20567             Greta Yorsh  <greta.yorsh@arm.com>
20569         * config/arm/arm.c (arm_expand_epilogue_apcs_frame): New function.
20570         * config/arm/arm.md (arm_addsi3) Add an alternative.
20572 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
20573             Sameera Deshpande  <sameera.deshpande@arm.com>
20574             Greta Yorsh  <greta.yorsh@arm.com>
20576         * config/arm/arm.md (vfp_pop_multiple_with_writeback) New define_insn.
20577         * config/arm/predicates.md (pop_multiple_fp) New special predicate.
20578         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): New function.
20580 2012-06-18  Ian Bolton  <ian.bolton@arm.com>
20581             Sameera Deshpande  <sameera.deshpande@arm.com>
20582             Greta Yorsh  <greta.yorsh@arm.com>
20584         * config/arm/arm.md (load_multiple_with_writeback) New define_insn.
20585         (load_multiple, pop_multiple_with_writeback_and_return) Likewise.
20586         (pop_multiple_with_return, ldr_with_return) Likewise.
20587         * config/arm/predicates.md (pop_multiple_return) New special predicate.
20588         * config/arm/arm-protos.h (arm_output_multireg_pop) New declaration.
20589         * config/arm/arm.c (arm_output_multireg_pop) New function.
20590         (arm_emit_multi_reg_pop): New function.
20592 2012-06-18  Greta Yorsh  <Greta.Yorsh@arm.com>
20594         * config/arm/arm.c (ldm_stm_operation_p): Require SP
20595         as base register for loads if SP is in the register list.
20597 2012-06-18  Richard Guenther  <rguenther@suse.de>
20599         PR tree-optimization/53693
20600         * tree-vect-patterns.c (vect_operation_fits_smaller_type):
20601         Reject operands with more than one use.
20603 2012-06-18  Bill Schmidt  <wschmidt@linux.ibm.com>
20605         PR tree-optimization/53703
20606         * tree-ssa-phiopt.c (hoist_adjacent_loads): Skip virtual phis;
20607         correctly set bb_for_def[12].
20609 2012-06-18  Steven Bosscher  <steven@gcc.gnu.org>
20611         * config/vax/vax.h (VMS_TARGET): Remove.
20613 2012-06-18  Richard Guenther  <rguenther@suse.de>
20615         * tree-vrp.c (extract_range_from_assert): Split out range
20616         intersecting code.
20617         (intersect_ranges): New function.
20618         (vrp_intersect_ranges): Likewise.
20620 2012-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20622         * config/s390/s390.c (s390_gimplify_va_arg): Revert change from
20623         r187965.
20625 2012-06-18  Tejas Belagod  <tejas.belagod@arm.com>
20627         * doc/md.texi: Document int iterators.
20628         * read-rtl.c (ints): New iterator group.
20629         (find_int): Int iterator group callback.
20630         (apply_int_iterator): Likewise.
20631         (apply_iterators): Traverse int iterator table and add all the used
20632         iterators to list.
20633         (initialize_iterators): Initialize data structures and callbacks for
20634         int iterators.
20635         (read_rtx): Parse and read mappings for int iterators.
20636         (read_rtx_code): Record int iterator usage.
20638 2012-06-18  Richard Sandiford  <rdsandiford@googlemail.com>
20640         PR middle-end/53698
20641         * expr.c (expand_expr_addr_expr_1): Convert to tmode before
20642         performing an addition.
20644 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
20646         * output.h (split_double): Move prototype to rtl.h.
20647         (constructor_static_from_elts_p): Move prototype to tree.c.
20648         * rtl.h (split_double): Moved here from output.h.
20649         * tree.h (constructor_static_from_elts_p): Moved here from output.h.
20650         * final.c (split_double): Move from here ...
20651         * rtlanal.c (split_double): ... to here.
20652         * expr.c: Do not include output.h.
20654 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
20656         * cfglayout.h: Remove.
20657         * cfglayout.c: Remove.
20658         * function.h (struct function): Remove x_last_location field.
20659         * function.c: Do not include cfglayout.h.
20660         (expand_function_start): Do not call no-op force_next_line_note.
20661         (expand_function_end): Likewise.
20662         * cfgrtl.c: Do not include cfglayout.h.  Include gt-cfgrtl.h.
20663         (unlink_insn_chain): Moved here from cfglayout.c.
20664         (skip_insns_after_block, label_for_bb, record_effective_endpoints,
20665         into_cfg_layout_mode, outof_cfg_layout_mode,
20666         pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode,
20667         relink_block_chain, fixup_reorder_chain, verify_insn_chain,
20668         fixup_fallthru_exit_predecessor, force_one_exit_fallthru,
20669         cfg_layout_can_duplicate_bb_p, duplicate_insn_chain,
20670         cfg_layout_duplicate_bb, cfg_layout_initialize, break_superblocks,
20671         cfg_layout_finalize): Likewise.
20672         (rtl_can_remove_branch_p): Likewise.
20673         * rtl.h (insn_scope): Move prototype from cfglayout.h here.
20674         (duplicate_insn_chain): Likewise.
20675         (force_next_line_note): Remove prototype.
20676         * emit-rtl.c: Do not include tree-flow.h, egad.  Include vecprim.h.
20677         (last_location): Remove #define to emit.x_last_location.
20678         (force_next_line_note): Remove no-op function.
20679         (init_emit): Don't set x_last_location.
20680         (block_locators_locs, block_locators_blocks, locations_locators_locs,
20681         locations_locators_vals, prologue_locator, epilogue_locator,
20682         curr_location, last_location, curr_block, last_block, curr_rtl_loc):
20683         Move POD to here from cfglayout.c.
20684         (insn_locators_alloc, insn_locators_finalize, insn_locators_free,
20685         set_curr_insn_source_location, get_curr_insn_source_location,
20686         set_curr_insn_block, get_curr_insn_block, curr_insn_locator,
20687         locator_scope, insn_scope, locator_location, locator_line, insn_line,
20688         locator_file, insn_file, locator_eq): Move to here from cfglayout.c.
20689         * cfghooks.h: Remove double-include protection.
20690         (can_copy_bbs_p, copy_bbs): Move prototypes from cfglayout.h to here.
20691         * cfghooks.c (can_copy_bbs_p, copy_bbs): Move to here from cfglayout.c.
20692         * final.c: Do not include cfglayout.h.
20693         (choose_inner_scope, change_scope): Move to here from cfglayout.c.
20694         (reemit_insn_block_notes): Likewise.  Make static.
20695         * tree-flow.h (tree_could_trap_p, operation_could_trap_helper_p,
20696         operation_could_trap_p, tree_could_throw_p): Move from here...
20697         * tree.h: ... to here.
20698         * gengtype.c (open_base_files): Remove cfglayout.h from the list.
20699         * profile.c: Do not include cfghooks.h.
20700         * cfgloopmanip.c: Do not include cfglayout.h and cfghooks.h.
20701         * modulo-sched.c: Likewise.
20702         * loop-unswitch.c: Do not include cfglayout.h.
20703         * sched-ebb.c: Likewise.
20704         * tracer.c: Likewise.
20705         * ddg.c: Likewise.
20706         * tree-vect-loop-manip.c: Likewise.
20707         * loop-init.c: Likewise.
20708         * dwarf2out.c: Likewise.
20709         * hw-doloop.c: Likewise.
20710         * loop-unroll.c: Likewise.
20711         * cfgcleanup.c: Likewise.
20712         * bb-reorder.c: Likewise.
20713         * sched-rgn.c: Likewise.
20714         * tree-cfg.c: Likewise.
20715         * config/alpha/alpha.c: Likewise.
20716         * config/spu/spu.c: Likewise.
20717         * config/sparc/sparc.c: Likewise.
20718         * config/sh/sh.c: Likewise.
20719         * config/c6x/c6x.c: Likewise.
20720         * config/ia64/ia64.c: Likewise.
20721         * config/rs6000/rs6000.c: Likewise.
20722         * config/score/score.c: Likewise.
20723         * config/mips/mips.c: Likewise.
20724         * config/bfin/bfin.c: Likewise.
20725         * Makefile.in (CFGAYOUT_H): Remove, and fixup users.
20726         * config/rs6000/t-rs6000 (rs6000.o): Do not depend on cfglayout.h.
20727         * config/spu/t-spu-elf (spu.o: $): Likewise.
20728         * config/sparc/t-sparc (sparc.o): Do not depend on CFGLAYOUT_H.
20730 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
20732         * cfgloop.h: Do not include rtl.h.
20733         (enum iv_extend_code): New.
20734         (struct rtx_iv): Use iv_extend_code instead of rtx_code.
20735         * Makefile.in (CFGLOOP_H): Do not depend on RTL_H.
20736         * loop-iv.c (iv_extend_to_rtx_code): New function to translate
20737         an IV_EXTEND_CODE to an RTX_CODE.
20738         (dump_iv_info): Update for rtx_iv field type change.
20739         (iv_constant): Likewise.
20740         (iv_subreg): Likewise.
20741         (iv_extend): Likewise.
20742         (iv_neg): Likewise.
20743         (iv_add): Likewise.
20744         (iv_mult): Likewise.
20745         (iv_shift): Likewise.
20746         (get_biv_step_1): Likewise.
20747         (get_biv_step): Likewise.
20748         (iv_analyze_biv): Likewise.
20749         (get_iv_value): Likewise.
20750         (shorten_into_mode): Likewise.
20751         (canonicalize_iv_subregs): Likewise.
20752         * sese.c (sese_build_liveouts): Use MAY_HAVE_DEBUG_STMTS instead
20753         of MAY_HAVE_DEBUG_INSNS.
20754         * tree-ssa-loop-ivopts.c: Include recog.h after expr.h.
20755         * tree-ssa-loop-prefetch.c: Likewise.
20757 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
20759         * expmed.c (ceil_log2): Move from here...
20760         * hwint.c: ... to here for older GCCs...
20761         * hwint.h: ... and here for newer GCCs.
20762         * rtl.h (ceil_log2): Remove prototype.
20764         * tree-phinodes.c: Do not include rtl.h.
20765         * Makefile.in (tree-phinodes.o): Do not depend on RTL_H.
20767 2012-06-17  Steven Bosscher  <steven@gcc.gnu.org>
20769         * config/cris/cris.h (TARGET_ELF): Remove.
20770         (FORCE_EH_FRAME_INFO_IN_DATA_SECTION): Remove.
20771         (CRIS_ASM_OUTPUT_ALIGNED_DECL_COMMON): Simpify using TARGET_ELF==1.
20772         (LOCAL_LABEL_PREFIX): Likewise.
20773         * config/cris/cris.c (cris_target_asm_named_section): Remove.
20774         (cris_option_override): Simpify using TARGET_ELF==1.
20775         (cris_file_start): Likewise.
20776         * config/cris/cris-protos.h (cris_target_asm_named_section): Remove.
20778 2012-06-17  Uros Bizjak  <ubizjak@gmail.com>
20780         * config/i386/sse.md (vcvtph2ps): Fix vec_select selector.
20782 2012-06-16  Eric Botcazou  <ebotcazou@adacore.com>
20784         PR middle-end/53590
20785         * tree-inline.c (initialize_cfun): Copy can_delete_dead_exceptions.
20787 2012-06-15  Easwaran Raman  <eraman@google.com>
20789         * passes.c (init_optimization_passes): Remove pass_call_cdce
20790         from its current position and insert after pass_dce.
20792 2012-06-15  Walter Lee  <walt@tilera.com>
20794         * config/tilegx/sync.md (atomic_fetch_<fetchop_name><mode>): Fix typo.
20796 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
20798         * arm.c (note_invalid_constants): Don't return a result.
20799         (arm_memory_load_p): Delete function.
20800         (arm_const_double_rtx): Delete iterator variable i;
20801         (fp_immediate_constant): Likewise.
20802         (fp_const_from_val): Likewise.
20804         * arm.c (arm_init_iwmmxt_builtins): Delete void_ftype_void.
20806 2012-06-15  Marc Glisse  <marc.glisse@inria.fr>
20808         PR c++/51033
20809         * c-typeck.c (c_build_vec_perm_expr): Move to c-family/c-common.c.
20810         * c-tree.h (c_build_vec_perm_expr): Move to c-family/c-common.h.
20812 2012-06-15  Georg-Johann Lay  <avr@gjlay.de>
20814         * config/avr/avr.c (avr_default_expand_builtin): New function.
20815         (avr_expand_builtin): Use it.
20816         (avr_expand_unop_builtin): Remove.
20817         (avr_expand_binop_builtin): Remove.
20818         (avr_expand_triop_builtin): Remove.
20820 2012-06-15  Michael Matz  <matz@suse.de>
20822         PR middle-end/38474
20823         * cfgexpand.c (add_alias_set_conflicts): Remove.
20824         (expand_used_vars): Don't call it.
20825         (aggregate_contains_union_type): Remove.
20826         * function.c (n_temp_slots_in_use): New static data.
20827         (make_slot_available, assign_stack_temp_for_type): Update it.
20828         (init_temp_slots): Zero it.
20829         (remove_unused_temp_slot_addresses): Use it for quicker removal.
20830         (remove_unused_temp_slot_addresses_1): Use htab_clear_slot.
20832 2012-06-15  Michael Matz  <matz@suse.de>
20834         * gimplify.c (gimplify_compound_literal_expr): Take gimple_test_f
20835         argument, don't emit assign statement if value is directly usable.
20836         (gimplify_expr): Adjust.
20838 2012-06-15  Michael Matz  <matz@suse.de>
20840         * gimplify.c (gimplify_modify_expr): Fold generated statements.
20841         * gimple-fold.c (can_refer_decl_in_current_unit_p): Check flag_ltrans.
20843 2012-06-15  Richard Guenther  <rguenther@suse.de>
20845         * tree-vrp.c (set_and_canonicalize_value_range): Use canonical
20846         predicates to set VR_UNDEFINED and VR_VARYING.  Drop a case
20847         we assert for in set_value_range to VR_VARYING.
20849 2012-06-15  Richard Earnshaw  <rearnsha@arm.com>
20851         * arm.md (addsf3, adddf3): Use s_register_operand.
20852         (subsf3, subdf3): Likewise.
20853         (mulsf3, muldf3): Likewise.
20854         (difsf3, divdf3): Likewise.
20855         (movsfcc, movdfcc): Likewise.
20856         * predicates.md (f_register_operand): Delete.
20857         (arm_float_rhs_operand): Delete.
20858         (arm_float_add_operand): Delete.
20859         (arm_float_compare_operand): Use s_register_operand when
20860         there's no VFP.
20861         (cirrus_register_operand): Delete.
20862         (cirrus_fp_register): Delete.
20863         (cirrus_shift_const): Delete.
20864         (cmpdi_operand): Remove Maverick support.
20865         * constraints.md (f, v, H): Delete constraints.
20866         (G): Update documentation.
20867         * arm.c (fp_consts_inited): Convert to bool.
20868         (strings_fp): Delete.
20869         (values_fp): Delete.
20870         (value_fp0): New variable.
20871         (init_fp_table): Simplify logic.
20872         (arm_const_double_rtx): Likewise.
20873         (fp_immediate_constant): Likewise.
20874         (fp_const_from_val): Likewise.
20875         (neg_const_double_rtx_ok_for_fpa): Delete.
20876         * doc/md.texi (ARM constraints): Update documentation.
20878 2012-06-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
20880         PR tree-optimization/53636
20881         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Verify
20882         stride when doing basic-block vectorization.
20884 2012-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20886         * tree-vect-generic.c (lower_vec_perm): Propagate vector constants
20887         into VEC_PERM_EXPR.
20889 2012-06-15  Jakub Jelinek  <jakub@redhat.com>
20891         * tree-vect-patterns.c (vect_pattern_recog): Don't unnecessarily
20892         allocate and free bbs array for the SLP case.
20894         PR tree-optimization/51581
20895         * expr.h (choose_multiplier): New prototype.
20896         * expmed.c (choose_multiplier): No longer static.
20897         Change multiplier_ptr from rtx * to UHWI *.
20898         (expand_divmod): Adjust callers.
20899         * tree-vect-patterns.c (vect_recog_sdivmod_pow2_pattern): Renamed to...
20900         (vect_recog_divmod_pattern): ... this.  Pass bb_vinfo as last
20901         argument to new_stmt_vec_info.  Attempt to optimize also divisions
20902         by non-pow2 constants if integer vector division isn't supported.
20903         * tree-vect-stmts.c (vect_analyze_stmt): If node != NULL,
20904         don't look at pattern stmts and sequences.
20906 2012-06-15  Eric Botcazou  <ebotcazou@adacore.com>
20908         PR middle-end/53590
20909         * common.opt (-fdelete-dead-exceptions): New switch.
20910         * doc/invoke.texi (Code Gen Options): Document it.
20911         * cse.c (count_reg_usage) <CALL_INSN>: Use !insn_nothrow_p in lieu of
20912         insn_could_throw_p predicate.  Do not skip an insn that could throw
20913         if dead exceptions can be deleted.
20914         (insn_live_p): Likewise, do not return true in that case.
20915         * dce.c (can_alter_cfg): New flag.
20916         (deletable_insn_p): Do not return false for an insn that can throw if
20917         the CFG can be altered and dead exceptions can be deleted.
20918         (init_dce): Set can_alter_cfg to false for fast DCE, true otherwise.
20919         * dse.c (scan_insn): Use !insn_nothrow_p in lieu of insn_could_throw_
20920         predicate. Do not preserve an insn that could throw if dead exceptions
20921         can be deleted.
20922         * function.h (struct function): Add can_delete_dead_exceptions flag.
20923         * function.c (allocate_struct_function): Set it.
20924         * lto-streamer-in.c (input_struct_function_base): Stream it.
20925         * lto-streamer-out.c (input_struct_function_base): Likewise.
20926         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Do not mark a
20927         statement that could throw as necessary if dead exceptions can be
20928         deleted.
20930 2012-06-14  Maxim Kuvyrkov  <maxim@codesourcery.com>
20932         * config/tilegx/sync.md (atomic_fetch_sub<mode>): Fix typo.
20934 2012-06-14  Oleg Endo  <olegendo@gcc.gnu.org>
20936         PR target/53568
20937         * config/sh/sh.md: Add peephole for swapbsi2.
20938         (*swapbisi2_and_shl8, *swapbhisi2): New insns and splits.
20940 2012-06-14  Uros Bizjak  <ubizjak@gmail.com>
20942         * config/i386/i386.md (*zero_extendsidi2): Remove x,x alternative.
20943         (*zero_extendsidi2_rex64): Ditto.  Remove isa attribute.
20945 2012-06-14  Jakub Jelinek  <jakub@redhat.com>
20947         PR target/53639
20948         * config/i386/i386.md (*anddi_1 into *andsi_1_zext splitter): New.
20950 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
20952         * arm.c (arm_cirrus_insn_p): Delete.
20953         (cirrus_reorg): Delete.
20954         (arm_reorg): Don't call cirrus_reorg.
20955         (arm_final_prescan_insn_p): Don't check for cirrus insns.
20956         * arm.md (define_attr "type"): Remove mav_farith and mav_dmult.
20957         (adddi3, subdi3): Remove Maverick support.
20958         (arm_adddi3): Likewise.
20959         (adddi_sesidi_di, adddi_zesidi_di): Likewise.
20960         (addsf3, adddf3): Likewise.
20961         (subsf3, subdf3): Likewise.
20962         (mulsf3, muldf3): Likewise.
20963         (ashldi3, ashrdi3, lshrdi3): Likewise.
20964         (floatsisf2, floatsidf2): Likewise.
20965         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
20966         (arm_movdi, thumb1_movdi_insn): Likewise.
20967         (arm_cmpdi_insn): Likewise.
20968         (cirrus_cmpsf, cirrus_cmpdf, cirrus_cmpdi): Likewise.
20969         (cirrus.md): Don't include.
20970         * cirrus.md: Delete file.
20971         * t-arm (MD_INCLUDES): Remove cirrus.md.
20973 2012-06-14  Eric Botcazou  <ebotcazou@adacore.com>
20975         * dwarf2out.c (function_possibly_abstracted_p): New static function.
20976         (gen_subprogram_die): Use it function_possibly_abstracted_p in lieu of
20977         cgraph_function_possibly_inlined_p.
20978         (gen_inlined_subroutine_die): Return if the origin is to be ignored.
20979         (process_scope_var): Do not emit concrete instances of abstracted
20980         nested functions from here.
20981         (gen_decl_die): Emit the abstract instance if the function is possibly
20982         abstracted and not only possibly inlined.
20983         (dwarf2out_finish): Find the first non-abstract parent instance and
20984         attach concrete instances on the limbo list to it.
20986 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
20988         * arm.md (divsf3, divdf3): Remove FPA support.
20989         (negsf2, negdf2): Likewise.
20990         (sqrtsf2, sqrtdf2): Likewise.
20991         (movdfcc): Likewise.
20992         (modsf3, moddf3, movxf): Delete.
20993         (push_fp_multi): Delete.
20994         (fpa.md): Don't include it.
20995         * fpa.md: Delete file.
20996         * t-arm (MD_INCLUDES): Remove fpa.md.
20998 2012-06-14  Bill Schmidt  <wschmidt@linux.ibm.com>
21000         * tree-vectorizer.h (vect_get_stmt_cost): Move from tree-vect-stmts.c.
21001         (cost_for_stmt): Remove decl.
21002         (vect_get_single_scalar_iteration_cost): Correct typo in name.
21003         * tree-vect-loop.c (vect_get_cost): Remove.
21004         (vect_get_single_scalar_iteration_cost): Correct typo in name; use
21005         vect_get_stmt_cost rather than vect_get_cost.
21006         (vect_get_known_peeling_cost): Use vect_get_stmt_cost rather than
21007         vect_get_cost.
21008         (vect_estimate_min_profitable_iters): Correct typo in call to
21009         vect_get_single_scalar_iteration_cost; use vect_get_stmt_cost rather
21010         than vect_get_cost.
21011         (vect_model_reduction_cost): Use vect_get_stmt_cost rather than
21012         vect_get_cost.
21013         (vect_model_induction_cost): Likewise.
21014         * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Correct
21015         typo in call to vect_get_single_scalar_iteration_cost.
21016         * tree-vect-stmts.c (vect_get_stmt_cost): Move to tree-vectorizer.h.
21017         (cost_for_stmt): Remove unnecessary function.
21018         * Makefile.in (TREE_VECTORIZER_H): Update dependencies.
21020 2012-06-14  Richard Earnshaw  <rearnsha@arm.com>
21022         * arm.opt (mfp=2, mfp=3, mfpe, mfpe=2, mfpe=3): Delete options.
21023         * arm-fpus.def (fpa, fpe2, fpe3, maverick): Delete FPU types.
21024         * arm-tables.opt: Regenerated.
21025         * doc/invoke.texi: Remove references to deleted options.
21027 2012-06-14  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
21029         * config/h8300/genmova.sh: Modified to add offset bits of
21030         mova/Sz assembly instruction for memory access.
21031         * config/h8300/h8300.c: Likewise.
21032         * config/h8300/mova.md: Likewise.
21034 2012-06-12  Christian Bruel  <christian.bruel@st.com>
21036         PR target/53621
21037         * config/sh/sh.c (sh_option_override): Don't force
21038          flag_omit_frame_pointer and maccumulate_outgoing_args.
21039         * config/sh/sh.opt (maccumulate-outgoing-args): Init as Var.
21041 2012-06-14  Richard Guenther  <rguenther@suse.de>
21043         * tree-vrp.c (VR_INITIALIZER): New define.
21044         (ranges_from_anti_range): New function.
21045         (extract_range_from_binary_expr_1): Decompose operations on
21046         VR_ANTI_RANGEs to operations on VR_RANGE.
21047         (extract_range_from_unary_expr_1): Likewise.
21048         (extract_range_from_binary_expr_1, extract_range_from_binary_expr,
21049         extract_range_from_unary_expr_1, extract_range_from_unary_expr,
21050         extract_range_from_cond_expr, adjust_range_with_scev,
21051         vrp_visit_assignment_or_call, vrp_visit_phi_node,
21052         simplify_bit_ops_using_ranges): Use VR_INITIALIZER.
21054 2012-06-13  Richard Henderson  <rth@redhat.com>
21056         * hwint.h (HOST_WIDEST_INT_C): New.
21057         (HOST_WIDE_INT_C): New.
21058         (HOST_WIDE_INT_1): Use it.
21059         * config/alpha/alpha.c (alpha_trampoline_init): Use it.
21061 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
21063         PR debug/49888
21064         * var-tracking.c: Include alias.h.
21065         (overlapping_mems): New struct.
21066         (drop_overlapping_mem_locs): New.
21067         (clobber_overlapping_mems): New.
21068         (var_mem_delete_and_set, var_mem_delete): Call it.
21069         (val_bind): Likewise, but only if modified.
21070         (compute_bb_dataflow, emit_notes_in_bb): Call it on MEMs.
21071         * Makefile.in (var-tracking.o): Depend in $(ALIAS_H).
21073 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
21075         PR debug/47624
21076         * var-tracking.c (loc_exp_dep_pool): New.
21077         (vt_emit_notes): Create and release the pool.
21078         (compute_bb_dataflow): Use value-based locations in MO_VAL_SET.
21079         (emit_notes_in_bb): Likewise.
21080         (loc_exp_dep_insert): Deal with NOT_ONEPART vars.
21081         (notify_dependents_of_changed_value): Likewise.
21082         (notify_dependents_of_resolved_value): Check that NOT_ONEPART
21083         variables don't have a VAR_LOC_DEP_LST.
21084         (emit_note_insn_var_location): Expand NOT_ONEPART locs that are
21085         VALUEs or MEMs of VALUEs.
21087 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
21089         PR debug/52983
21090         PR debug/48866
21091         * dce.c (word_dce_process_block): Insert debug temps only if the
21092         insn is not marked.
21093         (dce_process_block): Likewise, and if debug.used is not empty,
21094         and only after iterating over all DEFs that might mark the insn.
21096 2012-06-13  Alexandre Oliva  <aoliva@redhat.com>
21098         * common.opt (ftree-coalesce-inlined-vars): New.
21099         (ftree-coalesce-vars): New.
21100         * doc/invoke.texi: Document them.
21101         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
21102         Implement them.
21104 2012-06-13  Richard Sandiford  <rdsandiford@googlemail.com>
21106         * read-rtl.c (mapping): Remove index field.  Add current_value field.
21107         Define heap vectors.
21108         (iterator_group): Fix long line.  Remove num_builtins field and
21109         uses_iterator fields.  Make apply_iterator take a void * parameter.
21110         (iterator_use, atttribute_use): New structures.
21111         (iterator_traverse_data, BELLWETHER_CODE, bellwether_codes): Delete.
21112         (current_iterators, iterator_uses, attribute_uses): New variables.
21113         (uses_mode_iterator_p, uses_code_iterator_p): Delete.
21114         (apply_mode_iterator, apply_code_iterator): Take a void * parameter.
21115         (map_attr_string, apply_iterator_to_string): Remove iterator
21116         and value parameters.  Look through all current iterator values
21117         for a matching attribute.
21118         (mode_attr_index, apply_mode_maps): Delete.
21119         (apply_iterator_to_rtx): Replace with...
21120         (copy_rtx_for_iterators): ...this new function.
21121         (uses_iterator_p, apply_iterator_traverse): Delete.
21122         (apply_attribute_uses, add_current_iterators, apply_iterators): New
21123         functions.
21124         (add_mapping): Remove index field.  Set current_value field.
21125         (initialize_iterators): Don't set num_builtins and uses_iterator_p
21126         fields.
21127         (find_iterator): Delete.
21128         (record_iterator_use, record_attribute_use): New functions.
21129         (record_potential_iterator_use): New function.
21130         (check_code_iterator): Remove handling of bellwether codes.
21131         (read_rtx): Remove mode maps.  Truncate iterator and attribute uses.
21132         (read_rtx_code, read_nested_rtx, read_rtx_variadic): Remove mode_maps
21133         parameter.  Use the first code iterator value instead of the
21134         bellwether_codes array.  Use record_potential_iterator_use for modes.
21136 2012-06-13  Oleg Endo  <olegendo@gcc.gnu.org>
21138         PR target/53568
21139         * config/sh/sh.md (bswapsi2): New expander.
21140         (swapbsi2): New insn.
21142 2012-06-13  H.J. Lu  <hongjiu.lu@intel.com>
21144         PR target/53647
21145         * config/i386/i386.c (ix86_tune_cost): New variable.
21146         (ix86_option_override_internal): Set ix86_tune_cost.  Use
21147         ix86_tune_cost for simultaneous_prefetches, prefetch_block,
21148         l1_cache_size and l2_cache_size.
21150 2012-06-13  Richard Guenther  <rguenther@suse.de>
21152         * tree-vrp.c (vrp_meet): Properly meet equivalent ranges.
21153         Handle meeting two VR_RANGE to an VR_ANTI_RANGE.  Implement
21154         all possible meetings of VR_RANGE with VR_ANTI_RANGE and
21155         VR_ANTI_RANGE with VR_ANTI_RANGE.
21157 2012-06-13  Richard Earnshaw  <rearnsha@arm.com>
21159         * config.gcc (unsupported): Move obsoleted FPA-based configurations
21160         here from ...
21161         (obsolete): ... here.
21162         (arm*-*-freebsd*): Remove.
21163         (arm*-*-linux*): Only accept EABI variants.  Simplify logic.
21164         (arm*-*-uclinux*): Likewise.
21165         (arm*-*-ecos-elf): Remove.
21166         (arm*-*-rtems*): Remove.
21167         (arm*-*-elf): Remove.
21168         (arm*-wince-pe*): Remove.
21169         (arm, --with-fpu): Remove support for fpa and Maverick variants.
21170         * arm/ecos-elf.h: Delete.
21171         * arm/t-strongarm-elf: Delete.
21172         * arm/rtems-elf.h: Delete.
21173         * arm/wince-pe.h: Delete.
21174         * arm/pe.c: Delete.
21175         * arm/pe.h: Delete.
21176         * arm/t-wince-pe: Delete.
21178 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
21180         PR tree-optimization/53647
21181         * tree-ssa-phiopt.c (gate_hoist_loads): Skip transformation for
21182         targets with no defined cache line size.
21184 2012-06-13  Bill Schmidt  <wschmidt@linux.ibm.com>
21186         * targhooks.c (default_builtin_vectorized_conversion): Handle
21187         vec_construct, using vectype to base cost on subparts.
21188         * target.h (enum vect_cost_for_stmt): Add vec_construct.
21189         * tree-vect-stmts.c (vect_model_load_cost): Use vec_construct
21190         instead of scalar_to-vec.
21191         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
21192         vec_construct in same way as default for now.
21193         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
21194         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
21195         Handle vec_construct, including special case for 32-bit loads.
21197 2012-06-13  Xinyu Qi <xyqi@marvell.com>
21199         * config/arm/arm.c (FL_IWMMXT2): New define.
21200         (arm_arch_iwmmxt2): New variable.
21201         (arm_option_override): Enable use of iWMMXt with VFP.
21202         Disable use of iWMMXt with NEON. Disable use of iWMMXt under
21203         Thumb mode. Set arm_arch_iwmmxt2.
21204         (arm_expand_binop_builtin): Accept VOIDmode op.
21205         (enum arm_builtins): Revise built-in fcode.
21206         (IWMMXT2_BUILTIN): New define.
21207         (IWMMXT2_BUILTIN2): Likewise.
21208         (iwmmx2_mbuiltin): Likewise.
21209         (builtin_description bdesc_2arg): Revise built in declaration.
21210         (builtin_description bdesc_1arg): Likewise.
21211         (arm_init_iwmmxt_builtins): Revise built in initialization.
21212         (arm_expand_builtin): Revise built in expansion.
21213         (arm_output_iwmmxt_shift_immediate): New function.
21214         (arm_output_iwmmxt_tinsr): Likewise.
21215         * config/arm/arm-protos.h (arm_output_iwmmxt_shift_immediate): Declare.
21216         (arm_output_iwmmxt_tinsr): Likewise.
21217         * config/arm/iwmmxt.md (WCGR0, WCGR1, WCGR2, WCGR3): New constant.
21218         (iwmmxt_psadbw, iwmmxt_walign, iwmmxt_tmrc, iwmmxt_tmcr): Delete.
21219         (rorv4hi3, rorv2si3, rordi3): Likewise.
21220         (rorv4hi3_di, rorv2si3_di, rordi3_di): Likewise.
21221         (ashrv4hi3_di, ashrv2si3_di, ashrdi3_di): Likewise.
21222         (lshrv4hi3_di, lshrv2si3_di, lshrdi3_di): Likewise.
21223         (ashlv4hi3_di, ashlv2si3_di, ashldi3_di): Likewise.
21224         (iwmmxt_tbcstqi, iwmmxt_tbcsthi, iwmmxt_tbcstsi): Likewise
21225         (*iwmmxt_clrv8qi, *iwmmxt_clrv4hi, *iwmmxt_clrv2si): Likewise.
21226         (tbcstv8qi, tbcstv4hi, tbsctv2si): New pattern.
21227         (iwmmxt_clrv8qi, iwmmxt_clrv4hi, iwmmxt_clrv2si): Likewise.
21228         (*and<mode>3_iwmmxt, *ior<mode>3_iwmmxt, *xor<mode>3_iwmmxt): Likewise.
21229         (ror<mode>3, ror<mode>3_di): Likewise.
21230         (ashr<mode>3_di, lshr<mode>3_di, ashl<mode>3_di): Likewise.
21231         (ashli<mode>3_iwmmxt, iwmmxt_waligni, iwmmxt_walignr): Likewise.
21232         (iwmmxt_walignr0, iwmmxt_walignr1): Likewise.
21233         (iwmmxt_walignr2, iwmmxt_walignr3): Likewise.
21234         (iwmmxt_setwcgr0, iwmmxt_setwcgr1): Likewise.
21235         (iwmmxt_setwcgr2, iwmmxt_setwcgr3): Likewise.
21236         (iwmmxt_getwcgr0, iwmmxt_getwcgr1): Likewise.
21237         (iwmmxt_getwcgr2, iwmmxt_getwcgr3): Likewise.
21238         (All instruction patterns): Add wtype attribute.
21239         (*iwmmxt_arm_movdi, *iwmmxt_movsi_insn): iWMMXt coexist with vfp.
21240         (iwmmxt_uavgrndv8qi3, iwmmxt_uavgrndv4hi3): Revise the pattern.
21241         (iwmmxt_uavgv8qi3, iwmmxt_uavgv4hi3): Likewise.
21242         (ashr<mode>3_iwmmxt, ashl<mode>3_iwmmxt, lshr<mode>3_iwmmxt): Likewise.
21243         (iwmmxt_tinsrb, iwmmxt_tinsrh, iwmmxt_tinsrw):Likewise.
21244         (eqv8qi3, eqv4hi3, eqv2si3, gtuv8qi3): Likewise.
21245         (gtuv4hi3, gtuv2si3, gtv8qi3, gtv4hi3, gtv2si3): Likewise.
21246         (iwmmxt_wunpckihh, iwmmxt_wunpckihw, iwmmxt_wunpckilh): Likewise.
21247         (iwmmxt_wunpckilw, iwmmxt_wunpckehub, iwmmxt_wunpckehuh): Likewise.
21248         (iwmmxt_wunpckehuw, iwmmxt_wunpckehsb, iwmmxt_wunpckehsh): Likewise.
21249         (iwmmxt_wunpckehsw, iwmmxt_wunpckelub, iwmmxt_wunpckeluh): Likewise.
21250         (iwmmxt_wunpckeluw, iwmmxt_wunpckelsb, iwmmxt_wunpckelsh): Likewise.
21251         (iwmmxt_wunpckelsw, iwmmxt_wmadds, iwmmxt_wmaddu): Likewise.
21252         (iwmmxt_wsadb, iwmmxt_wsadh, iwmmxt_wsadbz, iwmmxt_wsadhz): Likewise.
21253         (iwmmxt2.md): Include.
21254         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __IWMMXT2__.
21255         (TARGET_IWMMXT2): New define.
21256         (TARGET_REALLY_IWMMXT2): Likewise.
21257         (arm_arch_iwmmxt2): Declare.
21258         * config/arm/mmintrin.h: Use __IWMMXT__ to enable iWMMXt intrinsics.
21259         Use __IWMMXT2__ to enable iWMMXt2 intrinsics.
21260         Use C name-mangling for intrinsics.
21261         (__v8qi): Redefine.
21262         (_mm_cvtsi32_si64, _mm_andnot_si64, _mm_sad_pu8): Revise.
21263         (_mm_sad_pu16, _mm_align_si64, _mm_setwcx, _mm_getwcx): Likewise.
21264         (_m_from_int): Likewise.
21265         (_mm_sada_pu8, _mm_sada_pu16): New intrinsic.
21266         (_mm_alignr0_si64, _mm_alignr1_si64, _mm_alignr2_si64): Likewise.
21267         (_mm_alignr3_si64, _mm_tandcb, _mm_tandch, _mm_tandcw): Likewise.
21268         (_mm_textrcb, _mm_textrch, _mm_textrcw, _mm_torcb): Likewise.
21269         (_mm_torch, _mm_torcw, _mm_tbcst_pi8, _mm_tbcst_pi16): Likewise.
21270         (_mm_tbcst_pi32): Likewise.
21271         (_mm_abs_pi8, _mm_abs_pi16, _mm_abs_pi32): New iWMMXt2 intrinsic.
21272         (_mm_addsubhx_pi16, _mm_absdiff_pu8, _mm_absdiff_pu16): Likewise.
21273         (_mm_absdiff_pu32, _mm_addc_pu16, _mm_addc_pu32): Likewise.
21274         (_mm_avg4_pu8, _mm_avg4r_pu8, _mm_maddx_pi16, _mm_maddx_pu16): Likewise.
21275         (_mm_msub_pi16, _mm_msub_pu16, _mm_mulhi_pi32): Likewise.
21276         (_mm_mulhi_pu32, _mm_mulhir_pi16, _mm_mulhir_pi32): Likewise.
21277         (_mm_mulhir_pu16, _mm_mulhir_pu32, _mm_mullo_pi32): Likewise.
21278         (_mm_qmulm_pi16, _mm_qmulm_pi32, _mm_qmulmr_pi16): Likewise.
21279         (_mm_qmulmr_pi32, _mm_subaddhx_pi16, _mm_addbhusl_pu8): Likewise.
21280         (_mm_addbhusm_pu8, _mm_qmiabb_pi32, _mm_qmiabbn_pi32): Likewise.
21281         (_mm_qmiabt_pi32, _mm_qmiabtn_pi32, _mm_qmiatb_pi32): Likewise.
21282         (_mm_qmiatbn_pi32, _mm_qmiatt_pi32, _mm_qmiattn_pi32): Likewise.
21283         (_mm_wmiabb_si64, _mm_wmiabbn_si64, _mm_wmiabt_si64): Likewise.
21284         (_mm_wmiabtn_si64, _mm_wmiatb_si64, _mm_wmiatbn_si64): Likewise.
21285         (_mm_wmiatt_si64, _mm_wmiattn_si64, _mm_wmiawbb_si64): Likewise.
21286         (_mm_wmiawbbn_si64, _mm_wmiawbt_si64, _mm_wmiawbtn_si64): Likewise.
21287         (_mm_wmiawtb_si64, _mm_wmiawtbn_si64, _mm_wmiawtt_si64): Likewise.
21288         (_mm_wmiawttn_si64, _mm_merge_si64): Likewise.
21289         (_mm_torvscb, _mm_torvsch, _mm_torvscw): Likewise.
21290         (_m_to_int): New define.
21291         * config/arm/arm-cores.def (iwmmxt2): Add FL_IWMMXT2.
21292         * config/arm/arm-arches.def (iwmmxt2): Likewise.
21293         * config/arm/t-arm (MD_INCLUDES): Add marvell-f-iwmmxt.md and
21294         iwmmxt2.md.
21295         * config/arm/arm.md (marvell-f-iwmmxt.md): Include.
21296         (arch): Add "iwmmxt2".
21297         (arch_enabled): Handle "iwmmxt2".
21298         (wtype): New attribute.
21299         (UNSPEC_WMADDS, UNSPEC_WMADDU): Delete.
21300         (UNSPEC_WALIGNI): New unspec.
21301         * config/arm/predicates.md (imm_or_reg_operand): New predicate.
21302         * config/arm/iterators.md (VMMX2): New mode_iterator.
21303         * config/arm/marvell-f-iwmmxt.md: New file.
21304         * config/arm/iwmmxt2.md: New file.
21306 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
21308         PR c/53532
21309         PR c/51034
21310         PR c/53196
21311         * c-decl.c (build_compound_literal): Call c_incomplete_type_error
21312         if type isn't complete.
21314 2012-06-12  Uros Bizjak  <ubizjak@gmail.com>
21316         * config/ia64/sync.md (fetchop_name): Change ior attribute to "or".
21318 2012-06-12  Richard Henderson  <rth@redhat.com>
21320         * config/rs6000/sync.md (atomic_load, atomic_store): Use INT1 mode
21321         iterator instead of INT.
21323 2012-06-12  Bill Schmidt  <wschmidt@linux.ibm.com>
21325         * opts.c: Add -fhoist-adjacent-loads to -O2 and above.
21326         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Add argument to forward
21327         declaration.
21328         (hoist_adjacent_loads, gate_hoist_loads): New forward declarations.
21329         (tree_ssa_phiopt): Call gate_hoist_loads.
21330         (tree_ssa_cs_elim): Add parm to tree_ssa_phiopt_worker call.
21331         (tree_ssa_phiopt_worker): Add do_hoist_loads to formal arg list; call
21332         hoist_adjacent_loads.
21333         (local_mem_dependence): New function.
21334         (hoist_adjacent_loads): Likewise.
21335         (gate_hoist_loads): Likewise.
21336         * common.opt (fhoist-adjacent-loads): New switch.
21337         * Makefile.in (tree-ssa-phiopt.o): Added dependencies.
21339 2012-06-12  Michael Matz  <matz@suse.de>
21341         * alias.c (nonoverlapping_component_refs_p): Take two rtx arguments.
21342         (nonoverlapping_memrefs_p): Don't call it here ...
21343         (true_dependence_1): ... but here.
21345 2012-06-12  Richard Guenther  <rguenther@suse.de>
21347         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove dead code.
21348         * alias.c (ao_ref_from_mem): MEM_EXPR is conservative, MEM_OFFSET
21349         and MEM_SIZE only refines it.  Reflect that and be less conservative
21350         if either of the latter is not known.
21352 2012-06-12  Jakub Jelinek  <jakub@redhat.com>
21354         PR rtl-optimization/53589
21355         * cfgrtl.c (force_nonfallthru_and_redirect): Do asm_goto_edge
21356         discovery even when e->dest != target.  If any LABEL_REF points
21357         to e->dest label, redirect it to target's label.
21359 2012-06-12  Chung-Lin Tang  <cltang@codesourcery.com>
21361         * config/sh/sh.c (output_stack_adjust): Remove !epilogue_p
21362         condition for generating REG_FRAME_RELATED_EXPR note.
21363         (pop): Add code for generating REG_CFA_RESTORE,
21364         REG_CFA_ADJUST_CFA notes. Set RTX_FRAME_RELATED_P to 1.
21365         (sh_expand_epilogue): Use frame_insn() for FP to SP move.
21366         Set 'frame_p' of calls to output_stack_adjust() to 'true'.
21368 2012-06-11  Richard Henderson  <rth@redhat.com>
21370         * config/alpha/alpha.c (HWI_HEX2): Add missing shift.
21371         * vmsdbgout.c (VMS_EPOCH_OFFSET): Add LL suffix.
21373         * config/alpha/alpha.c (alpha_trampoline_init): Split large constants.
21375 2012-06-12  Hans-Peter Nilsson  <hp@axis.com>
21377         * doc/tm.texi.in (Addressing Modes) <TARGET_LEGITIMIZE_ADDRESS>:
21378         Mention that this hook needs to be defined for native TLS.
21379         * doc/tm.texi: Regenerate.
21381 2012-06-11  Mike Stump  <mikestump@comcast.net>
21383         * emit-rtl.c (init_emit_once): Iterate through the
21384         MODE_PARTIAL_INT modes with MIN_MODE_PARTIAL_INT and
21385         MAX_MODE_PARTIAL_INT, as GET_MODE_WIDER_MODE doesn't step through
21386         all the MIN_MODE_PARTIAL_INT modes anymore.
21388 2012-06-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
21390         * config/mips/mips-tables.opt (xlp): Fix merge typo.
21392 2012-06-11  Roland McGrath  <mcgrathr@google.com>
21394         * dwarf2out.c (const_ok_for_output_1): Detect a TLS UNSPEC using
21395         SYMBOL_REF_TLS_MODEL rather than DECL_THREAD_LOCAL_P, in case it's
21396         not a VAR_DECL.  Also don't limit it to UNSPECs with exactly one
21397         operand.
21399 2012-06-11  Oleg Endo  <olegendo@gcc.gnu.org>
21401         PR target/53511
21402         * config/sh/sh.md (fmasf4): New expander.
21403         (*macsf3): Rename to fmasf4_i.  Adapt to fma pattern.
21404         (mac_media): Rename to fmasf4_media.  Adapt to fma pattern.
21405         * config/sh/sh.opt (mfused-madd): Remove.
21406         * config/sh/sh.c (sh_option_override): Remove mfused-madd handling.
21407         (builtin_description bdesc): Remove __builtin_sh_media_FMAC_S.
21408         * config.gcc (sh[123456789lbe]*-*-* | sh-*-*): Add fused-madd.opt
21409         as extra options.
21410         * doc/invoke.texi (SH Options): Update mfused-madd and mno-fused-madd
21411         descriptions.
21413 2012-06-11  Richard Henderson  <rth@redhat.com>
21415         * dwarf2cfi.c (scan_trace): Handle annulled branch-taken delay slots.
21417 2012-06-11  Richard Guenther  <rguenther@suse.de>
21419         PR middle-end/53470
21420         * tree.c (free_lang_data_in_type): Do not clear TYPE_CONTEXT but
21421         replace it with the first non-BLOCK context.
21423 2012-06-11  Richard Guenther  <rguenther@suse.de>
21425         * alias.c (aliases_everything_p): Remove.
21426         (DIFFERENT_ALIAS_SETS_P): Likewise.
21427         (true_dependence_1): Use mems_in_disjoint_alias_sets_p directly.
21428         Do not use aliases_everything_p or special-case ANDs.  Do not
21429         special-case BLKmode moves.
21430         (may_alias_p): Likewise.  Handle BLKmode similar like everywhere
21431         - for SCATCH only.
21433 2012-06-09  Hans-Peter Nilsson  <hp@axis.com>
21435         Fix CRIS build errors with --enable-build-with-cxx.
21436         * config/cris/cris.c (cris_emit_trap_for_misalignment): Rename
21437         variable "and" to "andop".
21438         * config/cris/sync.md ("atomic_fetch_<atomic_op_name><mode>"): Use
21439         temporary variable for memory model, passing C++-type-correct
21440         parameter type to expand_mem_thread_fence.
21441         ("atomic_compare_and_swap<mode>"): Ditto.
21443 2012-06-09  Richard Henderson  <rth@redhat.com>
21445         PR c++/53602
21446         * cfgcleanup.c (execute_jump): Rename from rest_of_handle_jump2.
21447         (pass_jump): Rename from pass_jump2.
21448         (execute_jump2, pass_jump2): New.
21449         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Don't
21450         perform cfg cleanup here.  Move the test of PUSH_ROUNDING
21451         and ACCUMULATE_OUTGOING_ARGS test...
21452         (gate_handle_stack_adjustments): ... here.
21453         * passes.c (init_optimization_passes): Update for pass_jump2 rename.
21454         Place new pass_jump2 after pass_stack_adjustments.
21455         * tree-pass.h (pass_jump): Declare.
21457 2012-06-09  Kenneth Zadeck <zadeck@naturalbridge.com>
21459         * simplify-rtx.c (simplify_const_binary_operation): Fixed shift
21460         count trucation.
21462 2012-06-08  Richard Henderson  <rth@redhat.com>
21464         PR c++/53602
21465         * combine-stack-adj.c (force_move_args_size_note): Add ARGS_SIZE
21466         note to a clobber insn when no other insn is available.
21468 2012-06-08  Georg-Johann Lay  <avr@gjlay.de>
21470         * config/avr/avr.c (avr_case_values_threshold): Return 7.
21472 2012-06-07  Andreas Schwab  <schwab@linux-m68k.org>
21474         * genhooks.c (main): Set progname.
21475         (emit_documentation): Remove variable found_start, always bail out
21476         when a place is missing.
21477         * doc/tm.texi.in (C++ ABI): Add @hook TARGET_CXX_DECL_MANGLING_CONTEXT.
21479 2012-06-07  Jakub Jelinek  <jakub@redhat.com>
21481         PR middle-end/53580
21482         * omp-low.c (scan_omp): Change first argument to gimple_seq *,
21483         call walk_gimple_seq_mod instead of walk_gimple_seq.
21484         (scan_sharing_clauses, scan_omp_parallel, scan_omp_task,
21485         scan_omp_for, scan_omp_sections, scan_omp_single,
21486         execute_lower_omp): Adjust callers.
21487         (scan_omp_1_stmt): Likewise.  If check_omp_nesting_restrictions
21488         returns false, replace stmt with GIMPLE_NOP.
21489         (check_omp_nesting_restrictions): Instead of issuing warnings,
21490         issue errors and return false if any errors were reported.
21492 2012-06-06  Steven Bosscher  <steven@gcc.gnu.org>
21494         * doc/invoke.texi (fconserve-space): Remove documentation.
21496 2012-06-06  Edmar Wienskoski  <edmar@freescale.com>
21498         * config/rs6000/rs6000-tables.opt: Regenerated.
21500 2012-06-06  Richard Guenther  <rguenther@suse.de>
21502         PR tree-optimization/53081
21503         * tree-data-ref.h (adjacent_store_dr_p): Rename to ...
21504         (adjacent_dr_p): ... this and make it work for reads, too.
21505         * tree-loop-distribution.c (enum partition_kind): Add PKIND_MEMCPY.
21506         (struct partition_s): Change main_stmt to main_dr, add
21507         secondary_dr member.
21508         (build_size_arg_loc): Change to date data-reference and not
21509         gimplify here.
21510         (build_addr_arg_loc): New function split out from ...
21511         (generate_memset_builtin): ... here.  Use it and simplify.
21512         (generate_memcpy_builtin): New function.
21513         (generate_code_for_partition): Adjust.
21514         (classify_partition): Streamline pattern detection.  Detect memcpy.
21515         (ldist_gen): Adjust.
21516         (tree_loop_distribution): Adjust seed statements for memcpy
21517         recognition.
21519 2012-06-06  Matt Turner  <mattst88@gmail.com>
21521         * config/arm/mmintrin.h (_mm_empty): New.
21522         (_m_empty): New.
21524 2012-06-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
21526         * doc/invoke.texi (sched-pressure-algorithm): Document new --param.
21527         * common.opt (fsched-pressure-algorithm=): Remove.
21528         * flag-types.h (sched_pressure_algorithm): Move to...
21529         * sched-int.h (sched_pressure_algorithm): ...here.
21530         * params.def (sched-pressure-algorithm): New param.
21531         * haifa-sched.c (sched_init): Use it to initialize sched_pressure.
21532         * common/config/s390/s390-common.c (s390_option_optimization_table):
21533         Remove OPT_fsched_pressure_algorithm_ entry.
21534         * config/s390/s390.c (s390_option_override): Set a default value for
21535         PARAM_SCHED_PRESSURE_ALGORITHM.
21537 2012-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
21539         PR target/53487
21540         * config/rs6000/rs6000.c (rs6000_generate_compare): If we are
21541         doing an unsigned compare, make sure the second argument is not a
21542         negative constant.
21543         (rs6000_emit_cmove): Don't allow floating point comparisons when
21544         generating ISEL moves.
21546 2012-06-05  Edmar Wienskoski  <edmar@freescale.com>
21548         * config/rs6000/e5500.md: New file.
21549         * config/rs6000/e6500.md: New file.
21550         * config/rs6000/rs6000.c (processor_costs): Add new costs for
21551         e5500 and e6500.
21552         (rs6000_option_override_internal): Altivec and Spe options not
21553         allowed with e5500. Spe options not allowed with e6500. Increase
21554         move inline limit for e5500 and e6500. Disable string instructions
21555         for e5500 and e6500. Enable branch targets alignment for e5500 and
21556         e6500. Initialize rs6000_cost for e5500 and e6500.
21557         (rs6000_adjust_cost): Add extra scheduling cycles between compare
21558         and brnach for e5500 and e6500.
21559         (rs6000_issue_rate): Set issue rate for e5500 and e6500.
21560         * config/rs6000/rs6000-cpus.def: Add cpu definitions for e5500 and
21561         e6500.
21562         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add e5500 and e6500.
21563         * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce5500 and
21564         ppce6500.
21565         Include e5500.md and e6500.md.
21566         * config/rs6000/rs6000-opt.h (processor_type): Add
21567         PROCESSOR_PPCE5500 and PROCESSOR_PPCE6500.
21568         * config.gcc (cpu_is_64bit): Add new cores e5500, e6500.
21569         (powerpc*-*-*): Add new cores e5500, e6500.
21570         * doc/invoke.texi: (item -mcpu): Add e5500 and e6500 to list of cpus.
21572 2012-06-05  Richard Guenther  <rguenther@suse.de>
21574         * tree-vect-data-refs.c (vect_analyze_data_refs): Fix last change.
21576 2012-06-05  H.J. Lu  <hongjiu.lu@intel.com>
21578         PR target/53575
21579         * config.gcc: Select x32 run-time library if --with-abi={x32|mx32}
21580         is used for x86_64-*-*.
21582 2012-06-05  Richard Guenther  <rguenther@suse.de>
21584         PR tree-optimization/30442
21585         * tree-vect-data-refs.c (vect_analyze_data_refs): For basic-block
21586         vectorization stop analysis at the first stmt we cannot compute
21587         a data-reference for instead of giving up completely.
21589 2012-06-05  Richard Guenther  <rguenther@suse.de>
21591         * tree-loop-distribution.c (struct partition_s): Add has_writes member.
21592         (partition_alloc): Initialize it.
21593         (partition_has_writes): New function.
21594         (rdg_flag_uses): Adjust.
21595         (rdg_flag_vertex): Likewise.
21596         (rdg_flag_vertex_and_dependent): Likewise.
21597         (rdg_flag_loop_exits): Likewise.
21598         (build_rdg_partition_for_component): Likewise.
21599         (rdg_build_partitions): Likewise.
21601 2012-06-05  Richard Guenther  <rguenther@suse.de>
21603         PR tree-optimization/53081
21604         * tree-loop-distribution.c (generate_memset_builtin): Handle all
21605         kinds of byte-sized stores.
21606         (classify_partition): Likewise.
21607         (tree_loop_distribution): Adjust seed statements used for
21608         !flag_tree_loop_distribution.
21610 2012-06-05  Alan Modra  <amodra@gmail.com>
21612         * config/rs6000/rs6000.c (ptr_regno_for_savres): Comment.
21613         (rs6000_emit_prologue): Ensure register used for inline saves
21614         of vector regs is not the static chain register.  Revise comment.
21616 2012-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
21618         * doc/md.texi (Standard Pattern Names For Generation): Document
21619         sincos pattern.
21621 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
21623         PR bootstrap/53555
21624         * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
21626 2012-06-04  Jason Merrill  <jason@redhat.com>
21628         * dwarf2out.c (is_unit_die): New.
21629         (copy_declaration_context, copy_ancestor_tree): Use it.
21630         (copy_decls_walk): Likewise.
21632 2012-06-04  Paolo Carlini  <paolo.carlini@oracle.com>
21634         PR c++/53524
21635         * doc/invoke.texi (Wenum-compare): Update documentation.
21637 2012-06-04  Dodji Seketeli  <dodji@redhat.com>
21639         PR preprocessor/53463
21640         * parser.c (cp_parser_assignment_expression): Use the location
21641         for the '=' as the default location for the expression.
21643 2012-06-04  Edmar Wienskoski  <edmar@freescale.com>
21645         PR target/53559
21646         * config/rs6000/altivec.md (altivec_stvlx): Change machine mode of
21647         operands.
21648         (altivec_stvlxl): Ditto.
21649         (altivec_stvrx): Ditto.
21650         (altivec_stvrxl): Ditto.
21652 2012-06-04  Vladimir Makarov  <vmakarov@redhat.com>
21654         * ira-int.h (struct target_ira_int): Add member x_ira_uniform_class_p.
21655         (ira_uniform_class_p): New macro.
21657         * ira.c (setup_uniform_class_p): New function.
21658         (setup_allocno_and_important_classes): Call the function.
21659         (print_unform_and_important_classes): New function.
21660         (print_classes): Rename to print_translated_classes.
21661         (ira_debug_allocno_classes): Add call of
21662         print_unform_and_important_classes.
21664         * ira-costs.c (setup_regno_cost_classes_by_aclass): Use uniform
21665         classes instead of pressure classes.
21667 2012-06-04  Aldy Hernandez  <aldyh@redhat.com>
21669         PR middle-end/47530
21670         * trans-mem.c (expand_block_edges): Do not skip the first
21671         statement when resetting the BB.
21673 2012-06-04  Richard Guenther  <rguenther@suse.de>
21675         * tree-data-ref.c (stores_from_loop): Remove.
21676         (stmt_with_adjacent_zero_store_dr_p): Likewise.
21677         (stores_zero_from_loop): Likewise.
21678         * tree-data-ref.h (stores_from_loop, stores_zero_from_loop,
21679         stmt_with_adjacent_zero_store_dr_p, stride_of_unit_type_p): Remove.
21680         (adjacent_store_dr_p): New function.
21681         * tree-loop-distribution.c (generate_memset_builtin): Pass
21682         the RDG, use the already available data-reference.
21683         (generate_code_for_partition): Pass down RDG.
21684         (classify_partition): Inline parts of the former
21685         stmt_with_adjacent_zero_store_dr_p here and use adjacent_store_dr_p.
21686         (ldist_gen): Remember if there was any detected builtin and
21687         do less work if not and flag_tree_loop_distribution is not set.
21688         (tree_loop_distribution): Inline and fuse stores_from_loop
21689         and stores_zero_from_loop here.
21691 2012-06-04  Richard Guenther  <rguenther@suse.de>
21693         PR middle-end/53471
21694         * dwarf2out.c (dwarf2out_finish): If generating LTO do not
21695         create new assembler names.
21697 2012-06-04  Richard Guenther  <rguenther@suse.de>
21699         * tree-data-ref.c (struct rdg_vertex_info): Remove.
21700         (rdg_vertex_for_stmt): Simplify using gimple_uid.
21701         (create_rdg_vertices): Pass loop argument, remove stmt to RDG index
21702         hashtable.  Record stmt data-references.
21703         (hash_stmt_vertex_info): Remove.
21704         (eq_stmt_vertex_info): Likewise.
21705         (hash_stmt_vertex_del): Likewise.
21706         (build_empty_rdg): Simplify.
21707         (build_rdg): Adjust.
21708         (free_rdg): Likewise.
21709         (ref_base_address): Remove.
21710         (have_similar_memory_accesses): Likewise.
21711         * tree-data-ref.h (create_rdg_vertices): Remove.
21712         (struct rdg_vertex): Add datarefs member.
21713         (RDGV_DATAREFS): New define.
21714         (RDG_DATAREFS): Likewise.
21715         (have_similar_memory_accesses): Remove.
21716         (rdg_has_similar_memory_accesses): Likewise.
21717         * tree-loop-distribution.c (ref_base_address): Re-implement here.
21718         (similar_memory_accesses): Re-implement using existing data-references.
21719         (tree_loop_distribution): Initialize stmt uids for the stmt to
21720         RDG index mapping.
21721         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
21722         access stmt vinfo for stmts in loop.
21724 2012-06-04  Andreas Schwab  <schwab@linux-m68k.org>
21726         PR target/53461
21727         * config/m68k/m68k.md ("tablejump"): Fix check for
21728         CASE_VECTOR_PC_RELATIVE.
21730 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
21732         * output.h (merge_weak, assemble_alias,
21733         initializer_constant_valid_p,
21734         initializer_constant_valid_for_bitfield_p): Move protos from here...
21735         * tree.h: ... to here.
21736         * cgraphclones.c: Do not include output.h.
21737         * gimplify.c: Likewise.
21738         * reload.c: Likewise.
21739         * recog.c: Likewise.
21740         * tree-ssa-loop-ivopts.c: Likewise.
21741         * tree-switch-conversion.c: Likewise.
21742         * c-parser.c: Likewise.
21743         * c-typeck.c: Likewise.
21744         * Makefile.in: Fix dependencies.
21746 2012-06-04  Georg-Johann Lay  <avr@gjlay.de>
21748         PR target/46261
21749         * config/avr/avr-stdint.h: New file.
21750         * config.gcc (avr-*-*,tm_file): Use avr/avr-stdint.h instead of
21751         newlib-stdint.h
21753 2012-06-04  Jakub Jelinek  <jakub@redhat.com>
21755         PR tree-optimization/53550
21756         * tree-ssa-loop-niter.c (number_of_iterations_cond): If type
21757         is POINTER_TYPE_P, use sizetype as step type instead of type.
21759 2012-06-04  Richard Guenther  <rguenther@suse.de>
21761         * tree-data-ref.c (have_similar_memory_accesses_1): Remove.
21762         (ref_base_address_1): Likewise.
21763         (remove_similar_memory_refs): Likewise.
21764         * tree-data-ref.h (remove_similar_memory_refs): Remove.
21765         * tree-loop-distribution.c (classify_partition): Do not classify
21766         as builtin if -ftree-loop-distribute-patterns is not enabled.
21767         (fuse_partitions_with_similar_memory_accesses): Inline ...
21768         (ldist_gen): ... here.  Fuse all non-builtin partitions if
21769         -ftree-loop-distribution is not enabled.  Properly return
21770         the number of created partitions.  Do not update SSA form here but ...
21771         (tree_loop_distribution): ... once here for the whole function.
21772         Only walk innermost loops, constrain loops we consider here
21773         further.  Do not call remove_similar_memory_refs.
21774         (distribute_loop): Do not check number of loop nodes here.
21776 2012-06-04  Steven Bosscher  <steven@gcc.gnu.org>
21778         * Makefile.in (GIMPLE_H): Do not depend on TARGET_H.
21780 2012-06-03  Martin Jambor  <mjambor@suse.cz>
21782         * ipa-prop.h (ipa_get_jf_known_type_offset): New function.
21783         (ipa_get_jf_known_type_base_type): Likewise.
21784         (ipa_get_jf_known_type_component_type): Likewise.
21785         (ipa_get_jf_constant): Likewise.
21786         (ipa_get_jf_pass_through_formal_id): Likewise.
21787         (ipa_get_jf_pass_through_operation): Likewise.
21788         (ipa_get_jf_ancestor_offset): Likewise.
21789         (ipa_get_jf_ancestor_type): Likewise.
21790         (ipa_get_jf_ancestor_formal_id): Likewise.
21791         (ipa_get_jf_member_ptr_pfn): Likewise.
21792         * ipa-prop.c (ipa_set_jf_known_type): New function.
21793         (ipa_set_jf_constant): Likewise.
21794         (ipa_set_jf_simple_pass_through): Likewise.
21795         (ipa_set_jf_arith_pass_through): Likewise.
21796         (ipa_set_ancestor_jf): Likewise.
21797         (fill_member_ptr_cst_jump_function): Moved up and renamed to
21798         ipa_set_jf_member_ptr_cst.
21799         (detect_type_change_1): Use the new jump function creation functions.
21800         (compute_complex_assign_jump_func): Likewise.
21801         (compute_complex_ancestor_jump_func): Likewise.
21802         (compute_known_type_jump_func): Likewise.
21803         (compute_scalar_jump_functions): Likewise.
21804         (compute_pass_through_member_ptrs): Likewise.
21805         (determine_cst_member_ptr): Likewise.
21806         (combine_known_type_and_ancestor_jfs): Likewise.
21807         (try_make_edge_direct_simple_call): Likewise.
21808         (try_make_edge_direct_virtual_call): Likewise.
21809         (update_indirect_edges_after_inlining): Likewise.
21810         * ipa-cp.c (ipa_get_jf_pass_through_result): Use jump function
21811         access functions.  Incorporat NOP_EXPR and BINFO handling from its
21812         callers.
21813         (ipa_get_jf_ancestor_result): Likewise.  Incorporate handling BINFOs
21814         which was in its callers.
21815         (ipa_value_from_jfunc): Use jump function access functions.  Some
21816         functionality moved to functions above.
21817         (propagate_vals_accross_ancestor): Likewise.
21818         (propagate_vals_accross_pass_through): Use jump function access
21819         functions.
21820         (propagate_accross_jump_function): Likewise.
21821         * ipa-inline-analysis.c (remap_edge_change_prob): Use jump function
21822         access functions.
21823         (inline_merge_summary): Likewise.
21825 2012-06-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21827         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Define.
21828         * config/pa/pa.c (pa_attr_length_millicode_call): Use
21829         MAX_PCREL17F_OFFSET instead of fixed offset.
21830         (pa_attr_length_call): Likewise.
21831         (pa_attr_length_indirect_call): Likewise.
21833 2012-06-03  Oleg Endo  <olegendo@gcc.gnu.org>
21835         PR target/53512
21836         * config/sh/sh.opt (mfsca, mfsrra): New options.
21837         * config/sh/sh.md (rsqrtsf2): Use TARGET_FPU_ANY and TARGET_FSRRA
21838         condition.
21839         (fsca): Use TARGET_FPU_ANY and TARGET_FSCA condition.
21840         (sinssf2, cossf2): Fold expanders to ...
21841         (sincossf3): ... this new expander.  Use TARGET_FPU_ANY and
21842         TARGET_FSCA condition.
21843         * config/sh/sh.c (sh_option_override): Handle TARGET_FSRRA and
21844         TARGET_FSCA.
21845         * doc/invoke.texi (SH Options): Add descriptions for -mfsca,
21846         -mno-fsca, -mfsrra, -mno-fsrra.
21848 2012-06-03  Matt Turner  <mattst88@gmail.com>
21850         * config/mips/4600.md (r4700_imul_si): New.
21851         (r4700_imul_di): New.
21852         (r4700_fmul_single): New.
21853         (r4700_fmul_double): New.
21854         * config/mips/mips-cpus.def: Add r4700.
21855         * config/mips/mips.c: Likewise.
21856         * config/mips/mips.md: Likewise.
21857         * config/mips/mips-tables.opt: Regenerate.
21859 2012-06-02  Steven Bosscher  <steven@gcc.gnu.org>
21861         * config/sparc/sparc.h (INITIAL_ELIMINATION_OFFSET): Split out to
21862         new function sparc_initial_elimination_offset.
21863         * config/sparc/sparc.c (sparc_initial_elimination_offset): New
21864         function.
21865         * config/sparc/sparc-protos.h (sparc_initial_elimination_offset):
21866         Prototype it.
21868 2012-06-02  Kenneth Zadeck <zadeck@naturalbridge.com>
21870         * expmed.c (expand_mult, choose_multiplier): Change
21871         "2 * HOST_BITS_PER_WIDE_INT" to "HOST_BITS_PER_DOUBLE_INT".
21872         * expr.c (convert_modes): Likewise.
21873         * explow.c (plus_constant): Likewise.
21874         * fixed-value.c (fixed_saturate1, fixed_saturate2)
21875         (do_fixed_add, do_fixed_multiply, do_fixed_multiply)
21876         (do_fixed_multiply, do_fixed_multiply, do_fixed_divide)
21877         (do_fixed_divide, do_fixed_divide, do_fixed_divide)
21878         (do_fixed_divide, do_fixed_divide, do_fixed_shift, do_fixed_shift)
21879         (do_fixed_shift, fixed_convert, fixed_convert)
21880         (fixed_convert_from_int, fixed_convert_from_int)
21881         (fixed_convert_from_real): Likewise.
21882         * fold-const.c (fold_convert_const_int_from_fixed, sign_bit_p)
21883         (native_interpret_int, fold_binary_loc, fold_ternary_loc): Likewise.
21884         * varasm.c (output_constructor_bitfield): Likewise.
21885         * tree-vrp.c (register_edge_assert_for_2): Likewise.
21886         * double-int.c (rshift_double, lshift_double): Likewise.
21887         * double-int.h (double_int_fits_in_uhwi_p, double_int, double_int):
21888         Likewise.
21889         * simplify-rtx.c (mode_signbit_p)
21890         (simplify_const_unary_operation, simplify_binary_operation_1)
21891         (simplify_immed_subreg): Likewise.
21892         * builtins.c (c_readstr, fold_builtin_bitop): Likewise.
21893         * tree-vect-generic.c (build_replicated_const): Likewise.
21894         * dbxout.c (stabstr_O): Likewise.
21895         * emit-rtl.c (immed_double_int_const, immed_double_const)
21896         (gen_lowpart_common, init_emit_once): Likewise.
21897         * tree.c (integer_pow2p, tree_log2, tree_floor_log2)
21898         (widest_int_cst_value, upper_bound_in_type): Likewise.
21899         * stor-layout.c (initialize_sizetypes, fixup_signed_type)
21900         (fixup_unsigned_type): Likewise.
21901         * real.c (real_to_integer2, real_from_integer): Likewise.
21902         * dwarf2out.c (size_of_loc_descr, size_of_die, output_die)
21903         (clz_loc_descriptor, mem_loc_descriptor): Likewise.
21905 2012-06-01  Eric Botcazou  <ebotcazou@adacore.com>
21907         PR middle-end/53501
21908         * fold-const.c (fold_binary_loc): Refine previous change.
21910 2012-06-01  Olivier Hainque  <hainque@adacore.com>
21912         * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Restore
21913         the "do {" part of the do-while(0) loop.
21915 2012-06-01  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
21917         * config/i386/i386.c (x86_sched_reorder): New function.
21918         Added new function x86_sched_reorder.
21920 2012-06-01  Richard Guenther  <rguenther@suse.de>
21922         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
21923         Handle PHIs.
21924         (classify_partition): Likewise.
21926 2012-06-01  Richard Guenther  <rguenther@suse.de>
21928         * tree-loop-distribution.c (enum partition_kind): New enum.
21929         (struct partition_s): Add kind and main_stmt members.
21930         (partition_alloc): Initialize kind to PKIND_NORMAL.
21931         (partition_builtin_p): New function.
21932         (copy_loop_before): Remove failure path and assert instead.
21933         (generate_loops_for_partition): Likewise.
21934         (generate_memset_zero): Fold into ...
21935         (generate_memset_builtin): ... this.
21936         (classify_partition): New function with code from
21937         can_generate_builtin and generate_builtin.
21938         (generate_builtin): Remove.
21939         (can_generate_builtin): Likewise.
21940         (fuse_partitions_with_similar_memory_accesses): Call
21941         partition_builtin_p instead of can_generate_builtin.
21942         (rdg_build_partitions): Do not call
21943         fuse_partitions_with_similar_memory_accesses here...
21944         (ldist_gen): ... but here after classifying all partitions.
21945         Remove failure path of generate_code_for_partition.
21946         (generate_code_for_partition): Generate code according
21947         to partition classification.
21949 2012-06-01  Manuel López-Ibáñez  <manu@gcc.gnu.org>
21950             Jonathan Wakely  <jwakely.gcc@gmail.com>
21952         PR c++/50134
21953         * doc/invoke.texi (Warning Options): Explain purpose and differences
21954         between -Wmissing-prototypes and -Wmissing-declarations.
21956 2012-06-01  Christian Bruel  <christian.bruel@st.com>
21958         * gcc.c (save_switch): Add user_p parameter.
21959         (read_specs): Likewise.
21960         (set_specs): Likewise.
21961         (validate_switches): Likewise.
21962         (validate_switches_from_spec): Likewise.
21963         (validate_all_switches): Pass on user_p parameter.
21964         (struct spec_list): Add user_p field.
21965         (struct switchstr): Add known field.
21966         (save_switch): Add known parameter.
21967         (INIT_STATIC_SPEC): Initialize user_p;
21968         (driver_unknown_option_callbac): call save_switch if
21969         OPT_SPECIAL_unknown.
21970         (driver_handle_option): Propagate OPT_specs.
21971         (do_spec_1): Set validated only if known.
21972         (check_live_switch): Likewise.
21973         (validate_switches): Set validated if known or user_spec.
21975 2012-06-01  Hans-Peter Nilsson  <hp@axis.com>
21977         Add CRIS atomic patterns for 1, 2, and 4 bytes.
21978         * config/cris/cris.c (cris_emit_trap_for_misalignment): New function.
21979         * config/cris/cris-protos.h: Declare it.
21980         * config/cris/cris.h [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 32]
21981         (TARGET_DEFAULT): Add alignment by 32.
21982         [!TARGET_DEFAULT, TARGET_CPU_DEFAULT == 10] (TARGET_DEFAULT): New
21983         case, as TARGET_CPU_DEFAULT == 0 but with alignment as for
21984         TARGET_CPU_DEFAULT == 32.
21985         (TARGET_TRAP_UNALIGNED_ATOMIC): New macro.
21986         * config/cris/cris.md: Include sync.md.  Avoid allocating specific
21987         numbers by replacing the define_constants for all UNSPECs with the
21988         equivalent define_c_enum construct.
21989         * config/cris/cris.opt (mtrap-unaligned-atomic): New option.
21990         * config/cris/sync.md: New file.
21992 2012-05-31  Matt Turner  <mattst88@gmail.com>
21994         * config/mips/4600.md (r4600_imul_si): Rename from r4600_imul.
21995         (r4600_imul_di): New.
21996         (r4600_idiv_si): Rename from r4600_idiv.
21997         (r4600_idiv_di): New.
21999 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
22001         * output.h (__gcc_host_wide_int__): Move to hwint.h.
22002         (decl_default_tls_model): Move to tree.h
22003         (dump_file): Move to system.h.
22004         (default_stabs_asm_out_destructor, default_stabs_asm_out_constructor,
22005         dbxout_int, dbxout_stabd, dbxout_begin_stabn, dbxout_begin_stabn_sline,
22006         dbxout_begin_empty_stabs, dbxout_begin_simple_stabs,
22007         dbxout_begin_simple_stabs_desc, dbxout_stab_value_zero,
22008         dbxout_stab_value_zero, dbxout_stab_value_label_diff,
22009         dbxout_stab_value_internal_label,
22010         dbxout_stab_value_internal_label_diff): Move from here ...
22011         * dbxout.h: ... to here.
22012         * system.h (dump_file): Moved here from output.h.
22013         * hwint.h (__gcc_host_wide_int__): Moved here from output.h.
22014         * tree.h (decl_default_tls_model): Moved here from output.h.
22015         * varasm.c (default_stabs_asm_out_destructor,
22016         default_stabs_asm_out_constructor): Move from here ...
22017         * dbxout.c: ... to here.
22019         * gcov-dump.c (dump_file): Rename to dump_gcov_file.  Update callers.
22021         * collect2.h (dump_file): Rename to dump_ld_file.
22022         * collect2.c: Likewise.
22023         * tlink.c: Likewise.
22025         * alias.c: Do not include output.h.
22026         * auto-inc-dec.c: Likewise.
22027         * bt-load.c: Likewise.
22028         * caller-save.c: Likewise.
22029         * cfg.c: Likewise.
22030         * cfgbuild.c: Likewise.
22031         * cfgcleanup.c: Likewise.
22032         * cfglayout.c: Likewise.
22033         * cfgloop.c: Likewise.
22034         * cfgloopanal.c: Likewise.
22035         * cfgloopmanip.c: Likewise.
22036         * cfgrtl.c: Likewise.
22037         * cgraph.c: Likewise.
22038         * cgraphclones.c: Likewise.
22039         * combine-stack-adj.c: Likewise.
22040         * combine.c: Likewise.
22041         * cprop.c: Likewise.
22042         * cse.c: Likewise.
22043         * cselib.c: Likewise.
22044         * dbgcnt.c: Likewise.
22045         * df-problems.c: Likewise.
22046         * df-scan.c: Likewise.
22047         * dojump.c: Likewise.
22048         * fwprop.c: Likewise.
22049         * gcse.c: Likewise.
22050         * graph.c: Likewise.
22051         * haifa-sched.c: Likewise.
22052         * hw-doloop.c: Likewise.
22053         * ipa-inline-transform.c: Likewise.
22054         * ipa-pure-const.c: Likewise.
22055         * ipa-reference.c: Likewise.
22056         * ipa-utils.c: Likewise.
22057         * ira-build.c: Likewise.
22058         * ira-emit.c: Likewise.
22059         * lcm.c: Likewise.
22060         * loop-doloop.c: Likewise.
22061         * loop-invariant.c: Likewise.
22062         * loop-iv.c: Likewise.
22063         * loop-unroll.c: Likewise.
22064         * loop-unswitch.c: Likewise.
22065         * lto-cgraph.c: Likewise.
22066         * lto-section-in.c: Likewise.
22067         * lto-streamer-in.c: Likewise.
22068         * mcf.c: Likewise.
22069         * mode-switching.c: Likewise.
22070         * postreload-gcse.c: Likewise.
22071         * postreload.c: Likewise.
22072         * predict.c: Likewise.
22073         * profile.c: Likewise.
22074         * ree.c: Likewise.
22075         * reg-stack.c: Likewise.
22076         * regcprop.c: Likewise.
22077         * regmove.c: Likewise.
22078         * regstat.c: Likewise.
22079         * reload1.c: Likewise.
22080         * sched-ebb.c: Likewise.
22081         * sel-sched-dump.c: Likewise.
22082         * simplify-rtx.c: Likewise.
22083         * stor-layout.c: Likewise.
22084         * store-motion.c: Likewise.
22085         * tracer.c: Likewise.
22086         * tree-affine.c: Likewise.
22087         * tree-cfg.c: Likewise.
22088         * tree-cfgcleanup.c: Likewise.
22089         * tree-dfa.c: Likewise.
22090         * tree-into-ssa.c: Likewise.
22091         * tree-nomudflap.c: Likewise.
22092         * tree-optimize.c: Likewise.
22093         * tree-pretty-print.c: Likewise.
22094         * tree-profile.c: Likewise.
22095         * tree-ssa-address.c: Likewise.
22096         * tree-ssa-ccp.c: Likewise.
22097         * tree-ssa-copy.c: Likewise.
22098         * tree-ssa-dom.c: Likewise.
22099         * tree-ssa-loop-ch.c: Likewise.
22100         * tree-ssa-loop-im.c: Likewise.
22101         * tree-ssa-loop-manip.c: Likewise.
22102         * tree-ssa-loop-niter.c: Likewise.
22103         * tree-ssa-loop-prefetch.c: Likewise.
22104         * tree-ssa-loop-unswitch.c: Likewise.
22105         * tree-ssa-loop.c: Likewise.
22106         * tree-ssa-propagate.c: Likewise.
22107         * tree-ssa-structalias.c: Likewise.
22108         * tree-ssa-tail-merge.c: Likewise.
22109         * tree-ssa-threadedge.c: Likewise.
22110         * tree-ssa-threadupdate.c: Likewise.
22111         * tree-ssa-uncprop.c: Likewise.
22112         * tree-ssa-uninit.c: Likewise.
22113         * tree-ssa.c: Likewise.
22114         * value-prof.c: Likewise.
22115         * var-tracking.c: Likewise.
22116         * web.c: Likewise.
22118         * config/m32r/m32r.c: Include dbxout.h.
22119         * config/pa/pa.c: Likewise.
22120         * config/rs6000/rs6000.c: Likewise.
22122         * Makefile.in: Fix dependencies.
22123         * config/rs6000/t-rs5000: Likewise.
22125 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
22127         * tree-ssa-loop-im.c (execute_sm): Do not check flag_tm.
22128         * gimple.h (block_in_transaction): Check for flag_tm.
22130 2012-05-31  Aldy Hernandez  <aldyh@redhat.com>
22132         PR tree-optimization/52558
22133         * cfg.c (alloc_aux_for_edge): Fix comment.
22134         (alloc_aux_for_edge): Remove static.
22135         * basic-block.h (alloc_aux_for_edge): Protoize.
22136         * tree-ssa-loop-im.c (execute_sm_if_changed): New.
22137         (execute_sm_if_changed_flag): New.
22138         (execute_sm_if_changed_flag_set): New.
22139         (execute_sm): Do not generate data races unless requested.
22140         (tree_ssa_lim_initialize): Call alloc_aux_for_edges.
22141         (tree_ssa_lim_finalize): Call free_aux_for_edges.
22142         * gimple.h (block_in_transaction): New.
22143         (gimple_in_transaction): Use block_in_transaction.
22145 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
22147         PR target/51345
22148         * config/avr/avr.opt (-msp8): Document it.
22149         * doc/invoke.texi (AVR Options): Ditto.  And document related
22150         built-in macros.
22152 2012-05-31  Diego Novillo  <dnovillo@google.com>
22154         * configure.ac (CXX_FOR_BUILD): Define and substitute.
22155         (BUILD_CXXFLAGS): Define and substitute.
22156         * Makefile.in (BUILD_CXXFLAGS): Define.
22157         (CXX_FOR_BUILD): Define.
22158         (COMPILER_FOR_BUILD): Set to CXX_FOR_BUILD if building with C++.
22159         (LINKER_FOR_BUILD): Likewise.
22160         (BUILD_COMPILERFLAGS): Set to BUILD_CXXFLAGS if building with C++.
22161         (BUILD_LINKERFLAGS): Likewise.
22162         * configure: Regenerate.
22164 2012-05-31  Steven Bosscher  <steven@gcc.gnu.org>
22166         * Makefile.in: Fix many dependencies.
22167         * tree-profile.c: Don't include regs.h.
22168         * tree-vectorizer.c: Don't include cfglayout.h.
22169         * tree-vect-stmts.c: Likewise.
22170         * tree-vect-slp.c: Likewise.
22171         * tree-vect-loop.c: Likewise.
22172         * reg-stack.c: Likewise.
22173         * tree-ssa-loop-manip.c: Likewise.
22174         * toplev.c: Likewise.
22175         * varasm.c: Don't include cfglayout.h, basic-block.h,
22176         and tree-iterator.h.
22177         * tree-cfgcleanup.c: Don't include cfglayout.h.
22178         * passes.c: Don't include cfglayout.h, dwarf2asm.h,
22179         dwarf2out.h, dbxout.h, sdbout.h, and xcoffout.h.
22180         * cgraphclones.c: Don't include plugin.h.
22182 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
22184         * config/avr/t-avr: Correct avr-mmcu.texi dependencies.
22185         (s-avr-mmcu-texi): Don't sed on gen-avr-mmcu-texi output.
22186         * doc/avr-mmcu.texi (svn:eol-style): Set to native.
22188 2012-05-31  Richard Guenther  <rguenther@suse.de>
22190         * tree-loop-distribution.c (struct partition_s): New struct,
22191         typedef and vector type.
22192         (partition_alloc, partition_free): New functions.
22193         (generate_loops_for_partition, generate_builtin,
22194         generate_code_for_partition, rdg_flag_uses, rdg_flag_vertex,
22195         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
22196         build_rdg_partition_for_component, can_generate_builtin,
22197         similar_memory_accesses, fuse_partitions_with_similar_memory_accesses,
22198         rdg_build_partitions, dump_rdg_partitions, debug_rdg_partitions,
22199         number_of_rw_in_partition, partition_contains_all_rw,
22200         ldist_gen): Use partition_t instead of bitmap.
22202 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
22204         * config/avr/gen-avr-mmcu-texi.c: Sort MCUs.
22205         * doc/avr-mmcu.texi: Regenerate.
22207 2012-05-31  Richard Guenther  <rguenther@suse.de>
22209         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
22210         Use FOR_EACH_SSA_DEF_OPERAND.
22211         (generate_builtin): Adjust.
22212         (stmt_generated_in_another_partition): Remove.
22213         (add_scalar_computations_to_partition): Likewise.
22214         (rdg_build_partitions): Do not call
22215         add_scalar_computations_to_partition.
22217 2012-05-31  Eric Botcazou  <ebotcazou@adacore.com>
22219         * tree-dfa.c (get_ref_base_and_extent): Compute the offset using
22220         double ints throughout.
22221         * tree-sra.c (build_user_friendly_ref_for_offset) <RECORD_TYPE>:
22222         Check that the position of the field is representable as an integer.
22224 2012-05-31  Richard Guenther  <rguenther@suse.de>
22226         * tree-data-ref.c (dr_analyze_innermost): Properly convert
22227         the MEM_REF offset to sizetype.
22229 2012-05-31  Georg-Johann Lay  <avr@gjlay.de>
22231         * doc/invoke.texi (AVR Options): Fix typos.
22233 2012-05-31  Hans-Peter Nilsson  <hp@axis.com>
22235         * config/cris/cris.h (CC1_SPEC): Pass through all -march=
22236         and -mcpu= options.
22237         (ASM_SPEC): Ditto, not just -march=v32, but translate non-v10,
22238         non-v32 into --march=v0_v10.
22240 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
22242         * ira-int.h (target_ira_int): Rename x_move_cost to
22243         x_ira_register_move_cost, x_may_move_in_cost to
22244         x_ira_may_move_in_cost and x_may_move_out_cost to
22245         x_ira_may_move_out_cost.  Delete the old fields with
22246         those names and also x_ira_max_register_move_cost,
22247         x_ira_max_may_move_in_cost and x_ira_max_may_move_out_cost.
22248         (move_cost, may_move_in_cost, may_move_out_cost)
22249         (ira_max_register_move_cost, ira_max_may_move_in_cost)
22250         (ira_max_may_move_out_cost): Delete.
22251         * ira.c (init_move_cost): Rename to...
22252         (ira_init_register_move_cost): ...this, deleting the old
22253         function with that name.  Apply above variable renamings.
22254         Retain asserts for null fields.
22255         (ira_init_once): Don't initialize register move costs here.
22256         (free_register_move_costs): Apply above variable renamings.
22257         Remove code for deleted fields.
22259 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
22261         * ira.c (init_move_cost): Adjust choice of subclasses to match
22262         the current ira_init_register_move_cost choice.  Use
22263         ira_class_subset_p instead of reg_class_subset_p.
22264         (ira_init_register_move_cost): Assert that move_cost,
22265         may_move_in_cost and may_move_out_cost already hold the desired
22266         values for their ira_* equivalents.  For the latter two,
22267         ignore classes that can't store a register of the given mode.
22269 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
22271         * ira.c (setup_allocno_and_important_classes): Use
22272         ira_class_hard_regs_num to check whether a class has any
22273         allocatable registers.
22274         (ira_init_register_move_cost): Likewise.
22276 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
22278         * ira.c (init_move_cost): Adjust local variable names to match
22279         file conventions.  Use ira_assert instead of gcc_assert.
22281 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
22283         * regs.h (move_table, move_cost, may_move_in_cost, may_move_out_cost):
22284         Move these definitions and associated target_globals fields to...
22285         * ira-int.h: ...here.
22286         * rtl.h (init_move_cost): Delete.
22287         * reginfo.c (last_mode_for_init_move_cost, init_move_cost): Move to...
22288         * ira.c: ...here, making the latter static.
22290 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
22292         * ira-costs.c (copy_cost): Use ira_init_register_move_cost_if_necessary
22293         and ira_register_move_cost instead of init_move_cost and move_cost.
22295 2012-05-31  Richard Sandiford  <rdsandiford@googlemail.com>
22297         * ira.h (target_ira): Delete x_ira_available_class_regs.
22298         (ira_available_class_regs): Delete.
22299         * ira.c (setup_available_class_regs): Delete.
22300         (setup_alloc_classes): Don't call it.
22301         (setup_pressure_classes): Use ira_class_hard_regs_num instead of
22302         ira_available_class_regs.
22303         * haifa-sched.c (print_curr_reg_pressure, setup_insn_reg_pressure_info)
22304         (model_spill_cost): Likewise.
22305         * ira-build.c (low_pressure_loop_node_p): Likewise.
22306         * ira-color.c (color_pass): Likewise.
22307         * ira-emit.c (change_loop): Likewise.
22308         * ira-lives.c (inc_register_pressure, dec_register_pressure)
22309         (single_reg_class, ira_implicitly_set_insn_hard_regs)
22310         (process_bb_node_lives): Likewise.
22311         * loop-invariant.c (gain_for_invariant): Likewise.
22313 2012-05-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22315         PR target/52999
22316         * config/pa/pa.c (TARGET_SECTION_TYPE_FLAGS): Define.
22317         (pa_section_type_flags): New.
22318         (pa_legitimate_constant_p): Revert previous change.
22320 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
22322         * ira.c (allocate_initial_values): Make static.
22324 2012-05-30  Uros Bizjak  <ubizjak@gmail.com>
22326         * config/i386/i386.c (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>:
22327         Generate tls_initial_exec_64_sun only when !TARGET_X32.
22329 2012-05-30  Richard Guenther  <rguenther@suse.de>
22331         PR middle-end/53501
22332         * fold-const.c (fold_binary_loc): Make sure to call
22333         fold_plusminus_mult_expr with the original sign of operands.
22335 2012-05-30  Steven Bosscher  <steven@gcc.gnu.org>
22337         * Makefile.in: Fix many dependencies.
22338         (DWARF2_H): Depend on dwarf2.def.
22339         (RTL_ERROR_H): Depend on rtl-error.h.
22340         (TREE_PRETTY_PRINT_H, GIMPLE_PRETTY_PRINT_H): New.  Replace
22341         all gimple-pretty-print.h and tree-pretty-print.h references.
22343 2012-05-30  Marc Glisse  <marc.glisse@inria.fr>
22345         * simplify-rtx.c (simplify_binary_operation_1): Optimize shuffle of
22346         concatenations.
22348 2012-05-30  Richard Guenther  <rguenther@suse.de>
22350         PR middle-end/53522
22351         * tree-emutls.c (gen_emutls_addr): Do not add globals to
22352         referenced-vars.
22354 2012-05-30  Eric Botcazou  <ebotcazou@adacore.com>
22356         * explow.c (probe_stack_range): Restore simple control flow and stop
22357         again when the probe cannot be generated if HAVE_check_stack.
22359 2012-05-30  Jakub Jelinek  <jakub@redhat.com>
22361         PR rtl-optimization/53519
22362         * combine.c (simplify_shift_const_1) <case NOT>: Use constm1_rtx
22363         instead of GEN_INT (GET_MODE_MASK (mode)) as second operand of XOR.
22365 2012-05-30  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
22367         * config/arm/arm.c (arm_evpc_neon_vrev): Adjust off by one error.
22369 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
22371         PR debug/53453
22372         * doc/tm.texi: Update.
22373         * doc/tm.texi.in (SDB and DWARF) <TARGET_FORCE_AT_COMP_DIR>: Add @hook.
22374         * target.def (force_at_comp_dir): New hook.
22375         * config/darwin.h (TARGET_FORCE_AT_COMP_DIR): Define.
22376         * dwarf2out.c (dwarf2out_finish): Check targetm.force_at_comp_dir.
22378 2012-05-29  Jack Howarth  <howarth@bromo.med.uc.edu>
22380         * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
22381         Darwin >= 10.
22382         (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
22383         (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
22385 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
22387         PR target/51340
22388         * config/sh/sh.c (sh_option_override): Set TARGET_FMAC if
22389         flag_unsafe_math_optimizations is set.
22390         * doc/invoke.texi (SH Options): Add -mno-fused-madd description.
22391         Update description of -mfused-madd.
22393 2012-05-29  Oleg Endo  <olegendo@gcc.gnu.org>
22395         PR target/52941
22396         * config/sh/predicates.md (atomic_arith_operand,
22397         atomic_logical_operand): New predicates.
22398         * config/sh/sh.c (sh_option_override): Check atomic options.
22399         * config/sh/sh.h (TARGET_ANY_ATOMIC, UNSUPPORTED_ATOMIC_OPTIONS,
22400         UNSUPPORTED_HARD_ATOMIC_CPU): New macros.
22401         (DRIVER_SELF_SPECS): Use UNSUPPORTED_ATOMIC_OPTIONS and
22402         UNSUPPORTED_HARD_ATOMIC_CPU.
22403         * config/sh/sync.md: Update description comments.
22404         (I12): New mode iterator.
22405         (fetchop_predicate, fetchop_constraint): New code attributes.
22406         (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
22407         atomic_exchangesi_hard, atomic_exchange<mode>_hard,
22408         atomic_fetch_<fetchop_name>si_hard,
22409         atomic_fetch_<fetchop_name><mode>_hard,
22410         atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
22411         atomic_<fetchop_name>_fetchsi_hard,
22412         atomic_<fetchop_name>_fetch<mode>_hard,
22413         atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
22414         atomic_test_and_set_hard): New insns.
22415         (atomic_compare_and_swap<mode>_soft, atomic_exchange<mode>_soft,
22416         atomic_fetch_<fetchop_name><mode>_soft, atomic_fetch_nand<mode>_soft,
22417         atomic_<fetchop_name>_fetch<mode>_soft, atomic_nand_fetch<mode>_soft,
22418         atomic_test_and_set_soft): Use same formatting for the first line of
22419         the asm block as in new insns above.
22420         (atomic_compare_and_swap<mode>, atomic_exchange<mode>,
22421         atomic_fetch_<fetchop_name><mode>, atomic_<fetchop_name>_fetch<mode>,
22422         atomic_test_and_set): Integrate new *_hard insns into expanders.
22423         * config/sh/sh.opt (mhard-atomic): New option.
22424         * doc/invoke.texi (SH Options): Document it.
22426 2012-05-29  Meador Inge  <meadori@codesourcery.com>
22428         * c-decl.c (c_push_function_context): Always create a new language
22429         function.
22430         (c_pop_function_context): Clear the language function created in
22431         c_push_function_context.
22433 2012-05-29  Matt Turner  <mattst88@gmail.com>
22435         * config/alpha/ev6.md: (define_bypass "ev6_fmul,ev6_fadd"): New.
22436         (define_bypass "ev6_fcmov"): New.
22438 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22440         * integrate.c: Remove.
22441         * integrate.h: Remove.
22442         * Makefile.in: Remove make rules for integrate.c and INTEGRATE_H.
22443         * config/arm/t-arm: Remove INTEGRATE_H dependency for target files.
22444         * config/rs6000/t-rs6000: Likewise
22445         * config/spu/t-spu-elf: Likewise.
22446         * function.h (get_hard_reg_initial_val, has_hard_reg_initial_val,
22447         get_hard_reg_initial_reg, emit_initial_value_sets): Move prototypes
22448         from integrate.h to here.
22449         (initial_value_entry): New prototype.
22450         * reload.h (allocate_initial_values): Remove prototype.
22451         * tree.h (set_decl_abstract_flags, set_decl_origin_self): Likewise.
22452         * cse.c (fixed_base_plus_p): Don't handle virtual registers for
22453         integrate.c.
22454         * dwarf2out.c (set_decl_origin_self, set_block_origin_self,
22455         set_decl_abstract_flags, set_block_abstract_flags): Move from
22456         integrate.c to here, the only user.
22457         * expmed.c (extract_fixed_bit_field): Remove outdated comment
22458         about integrate.c.
22459         * function.c: Don't include integrate.h.
22460         (struct initial_value_pair, struct initial_value_struct,
22461         get_hard_reg_initial_val, has_hard_reg_initial_val,
22462         get_hard_reg_initial_reg, emit_initial_value_sets): Move from
22463         integrate.c to here.
22464         (initial_value_entry): New function.
22465         * genemit.c (main): Don't print integrate.h include line.
22466         * ira.c: Don't include integrate.h.
22467         (allocate_initial_values): Move from integrate.c to here.
22468         (ira): Update allocate_initial_values call.
22469         * tree-inline.c: Don't include integrate.h.
22470         (function_attribute_inlinable_p): Moved from integrate.c to here.
22471         * cfgexpand.c: Don't include integrate.h.
22472         * except.c: Likewise.
22473         * langhooks.c: Likewise.
22474         * passes.c: Likewise.
22475         * toplev.c: Likewise.
22476         * config/frv/frv.c: Likewise.
22477         * config/pa/pa.c: Likewise.
22478         * config/spu/spu.c: Likewise.
22479         * config/epiphany/epiphany.c: Likewise.
22480         * config/mep/mep.c: Likewise.
22481         * config/score/score.c: Likewise.
22482         * config/picochip/picochip.c: Likewise.
22483         * config/sh/sh.c: Likewise.
22484         * config/alpha/alpha.c: Likewise.
22485         * config/microblaze/microblaze.c: Likewise.
22486         * config/mips/mips.c: Likewise.
22487         * config/v850/v850.c: Likewise.
22488         * config/mmix/mmix.c: Likewise.
22489         * config/bfin/bfin.c: Likewise.
22490         * config/arm/arm.c: Likewise.
22491         * config/s390/s390.c: Likewise.
22492         * config/m32r/m32r.c: Likewise.
22493         * config/rs6000/rs6000.c: Likewise.
22494         * config/c6x/c6x.c: Include function.h instead of integrate.h.
22495         * config/tilegx/tilegx.c: Likewise.
22496         * config/tilepro/tilepro.c: Likewise.
22498 2012-05-29  Georg-Johann Lay  <avr@gjlay.de>
22500         * config/avr/t-avr (s-avr-mmcu-texi): Call
22501         gen-avr-mmcu-texi$(build_exeext) via ./ and don't assume . is in PATH.
22503 2012-05-29  Michael Matz  <matz@suse.de>
22505         * rtl.h (assign_stack_temp, assign_stack_temp_for_type,
22506         assign_temp): Remove 'keep' argument.
22507         (mark_temp_addr_taken): Remove prototype.
22508         * tree.h (expand_decl): Remove prototype.
22509         * function.c (struct temp_slot): Remove addr_taken and keep member.
22510         (assign_stack_temp_for_type) Don't initialize above, remove
22511         keep argument.
22512         (assign_stack_temp, assign_temp): Remove keep argument.
22513         (mark_temp_addr_taken): Remove.
22514         (preserve_temp_slots): Remove handling of addr_taken and keep members.
22515         (free_temp_slots): Ditto.
22516         * expr.c (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Remove
22517         dead code.
22518         * stmt.c (expand_asm_operands): Remove dead code.
22519         (expand_decl): Remove.
22520         * c-decl.c (finish_struct): Don't call expand_decl.
22521         * builtins.c (expand_builtin_cexpi): Adjust calls to assign_temp
22522         and assign_stack_temp.
22523         * calls.c (save_fixed_argument_area, initialize_argument_information,
22524         expand_call, emit_library_call_value_1, store_one_arg): Ditto.
22525         * expmed.c (extract_bit_field_1): Ditto.
22526         * expr.c (emit_group_load_1, emit_group_store,
22527         copy_blkmode_from_reg, emit_push_insn, expand_assignment,
22528         store_field, expand_constructor, expand_cond_expr_using_cmove,
22529         expand_expr_real_2, expand_expr_real_1): Ditto.
22530         * stmt.c (expand_asm_operands, expand_return): Ditto.
22532         * function.c (pop_temp_slots): Call free_temp_slots.
22533         * calls.c (store_one_arg): Don't call preserve_temp_slots or
22534         free_temp_slots.
22535         * expr.c (expand_assignment): Don't call free_temp_slots.
22537         * config/arm/arm.c (neon_expand_vector_init): Ditto.
22538         * config/i386/i386.c (ix86_expand_vector_set): Ditto.
22539         (ix86_expand_vector_extract): Ditto.
22540         * config/ia64/ia64.c (spill_xfmode_rfmode_operand,
22541         ia64_expand_movxf_movrf): Ditto.
22542         * config/mips/mips.c (mips_expand_vi_general): Ditto.
22543         * config/mmix/mmix.md (floatdisf2, floatunsdisf2, truncdfsf2,
22544         extendsfdf2): Ditto.
22545         * config/rs6000/rs6000.c (rs6000_expand_vector_init,
22546         rs6000_expand_vector_set, rs6000_expand_vector_extract,
22547         rs6000_allocate_stack_temp): Ditto.
22548         * config/rs6000/rs6000.md (fix_trunctfsi2_fprs): Ditto.
22549         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
22550         sparc_emit_float_lib_cmp, sparc_emit_float_lib_cmp,
22551         sparc_expand_vector_init): Ditto.
22553 2012-05-29  Michael Matz  <matz@suse.de>
22555         * c-tree.h (c_expand_decl): Remove prototype.
22557         * expr.c (expand_expr_real_1 <normal_inner_ref>): Don't allocate
22558         a kept temp.
22559         (expand_expr_real_1 <COMPOUND_LITERAL_EXPR>): Make unreachable.
22560         * gimple-fold.c (canonicalize_constructor_val): Canonicalize
22561         COMPOUND_LITERAL_EXPR.
22562         * function.c (expand_function_start): Don't call expand_decl,
22563         instead assert that we have RTL assigned.
22564         * tree-ssa-live.c (remove_unused_locals): Clear
22565         nonlocal_goto_save_area if its backing variable is removed.
22566         * stmt.c (expand_asm_operands): Remove handling of non-lvalues
22567         as mem inputs.
22568         (expand_decl): Assert that this does nothing.
22569         * calls.c (expand_call): Don't call mark_temp_addr_taken.
22571 2012-05-29  Richard Guenther  <rguenther@suse.de>
22573         PR tree-optimization/53516
22574         * tree-data-ref.c (stmt_with_adjacent_zero_store_dr_p): Reject
22575         bitfield accesses.
22576         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
22578 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
22580         * LANGUAGES: Fix typos.
22581         * Makefile.in: Fix typos.
22582         * alias.c: Fix typos.
22583         * auto-inc-dec.c: Fix typos.
22584         * bb-reorder.c: Fix typos.
22585         * cfgcleanup.c: Fix typos.
22586         * cgraph.c: Fix typos.
22587         * cgraph.h: Fix typos.
22588         * cgraphunit.c: Fix typos.
22589         * collect2-aix.h: Fix typos.
22590         * collect2.c: Fix typos.
22591         * compare-elim.c: Fix typos.
22592         * config/alpha/vms.h: Fix typos.
22593         * config/arm/README-interworking: Fix typos.
22594         * config/arm/arm.c: Fix typos.
22595         * config/arm/iterators.md: Fix typos.
22596         * config/arm/vxworks.h: Fix typos.
22597         * config/avr/avr.c: Fix typos.
22598         * config/avr/avr.h: Fix typos.
22599         * config/avr/avr.md: Fix typos.
22600         * config/avr/builtins.def: Fix typos.
22601         * config/c6x/c6x.c: Fix typos.
22602         * config/cr16/cr16.c: Fix typos.
22603         * config/cr16/cr16.md: Fix typos.
22604         * config/cris/cris.md: Fix typos.
22605         * config/darwin.c: Fix typos.
22606         * config/darwin.opt: Fix typos.
22607         * config/i386/i386-c.c: Fix typos.
22608         * config/i386/i386.c: Fix typos.
22609         * config/ia64/ia64.c: Fix typos.
22610         * config/m68k/cf.md: Fix typos.
22611         * config/mep/mep.c: Fix typos.
22612         * config/microblaze/microblaze.c: Fix typos.
22613         * config/microblaze/microblaze.h: Fix typos.
22614         * config/mn10300/mn10300.c: Fix typos.
22615         * config/mn10300/mn10300.md: Fix typos.
22616         * config/pa/pa.c: Fix typos.
22617         * config/picochip/picochip.h: Fix typos.
22618         * config/rs6000/a2.md: Fix typos.
22619         * config/rs6000/rs6000.c: Fix typos.
22620         * config/rs6000/vector.md: Fix typos.
22621         * config/rx/rx.md: Fix typos.
22622         * config/rx/rx.opt: Fix typos.
22623         * config/s390/2097.md: Fix typos.
22624         * config/s390/s390.c: Fix typos.
22625         * config/s390/s390.h: Fix typos.
22626         * config/sh/sh.c: Fix typos.
22627         * config/sh/sh.md: Fix typos.
22628         * config/sparc/sync.md: Fix typos.
22629         * config/spu/spu.c: Fix typos.
22630         * config/spu/spu.md: Fix typos.
22631         * config/vms/vms.c: Fix typos.
22632         * config/vxworks-dummy.h: Fix typos.
22633         * config/vxworks.h: Fix typos.
22634         * cselib.c: Fix typos.
22635         * df-scan.c: Fix typos.
22636         * df.h: Fix typos.
22637         * doc/extend.texi: Fix typos.
22638         * doc/install.texi: Fix typos.
22639         * doc/invoke.texi: Fix typos.
22640         * doc/md.texi: Fix typos.
22641         * doc/plugins.texi: Fix typos.
22642         * doc/rtl.texi: Fix typos.
22643         * dse.c: Fix typos.
22644         * dwarf2asm.c: Fix typos.
22645         * dwarf2out.c: Fix typos.
22646         * except.h: Fix typos.
22647         * expr.c: Fix typos.
22648         * fold-const.c: Fix typos.
22649         * gcc.c: Fix typos.
22650         * gcse.c: Fix typos.
22651         * genautomata.c: Fix typos.
22652         * gengtype-state.c: Fix typos.
22653         * gengtype.c: Fix typos.
22654         * genhooks.c: Fix typos.
22655         * gimple-fold.c: Fix typos.
22656         * gimple-pretty-print.c: Fix typos.
22657         * gimple.c: Fix typos.
22658         * gimple.h: Fix typos.
22659         * gimplify.c: Fix typos.
22660         * graphite-interchange.c: Fix typos.
22661         * graphite-sese-to-poly.c: Fix typos.
22662         * ifcvt.c: Fix typos.
22663         * input.c: Fix typos.
22664         * ipa-cp.c: Fix typos.
22665         * ipa-inline-analysis.c: Fix typos.
22666         * ipa-inline-transform.c: Fix typos.
22667         * ipa-inline.c: Fix typos.
22668         * ipa-pure-const.c: Fix typos.
22669         * ipa-ref.h: Fix typos.
22670         * ipa-reference.c: Fix typos.
22671         * ipa-utils.c: Fix typos.
22672         * ipa.c: Fix typos.
22673         * ira-emit.c: Fix typos.
22674         * ira-lives.c: Fix typos.
22675         * lto-streamer.c: Fix typos.
22676         * lto-streamer.h: Fix typos.
22677         * lto-wrapper.c: Fix typos.
22678         * mcf.c: Fix typos.
22679         * mode-switching.c: Fix typos.
22680         * modulo-sched.c: Fix typos.
22681         * plugin.c: Fix typos.
22682         * postreload.c: Fix typos.
22683         * sched-deps.c: Fix typos.
22684         * sel-sched-ir.c: Fix typos.
22685         * sel-sched-ir.h: Fix typos.
22686         * sel-sched.c: Fix typos.
22687         * sese.c: Fix typos.
22688         * stor-layout.c: Fix typos.
22689         * target-hooks-macros.h: Fix typos.
22690         * target.def: Fix typos.
22691         * trans-mem.c: Fix typos.
22692         * tree-eh.c: Fix typos.
22693         * tree-predcom.c: Fix typos.
22694         * tree-sra.c: Fix typos.
22695         * tree-ssa-address.c: Fix typos.
22696         * tree-ssa-loop-ivopts.c: Fix typos.
22697         * tree-ssa-loop-niter.c: Fix typos.
22698         * tree-ssa-math-opts.c: Fix typos.
22699         * tree-ssa-pre.c: Fix typos.
22700         * tree-ssa-propagate.c: Fix typos.
22701         * tree-ssa-reassoc.c: Fix typos.
22702         * tree-ssa-sccvn.c: Fix typos.
22703         * tree-ssa-ter.c: Fix typos.
22704         * tree-ssa-uninit.c: Fix typos.
22705         * tree-ssanames.c: Fix typos.
22706         * tree-vect-generic.c: Fix typos.
22707         * tree-vect-slp.c: Fix typos.
22708         * tree.c: Fix typos.
22709         * tree.h: Fix typos.
22710         * varasm.c: Fix typos.
22711         * varpool.c: Fix typos.
22713 2012-05-29  Joseph Myers  <joseph@codesourcery.com>
22715         * doc/include/texinfo.tex: Update to version 2012-05-16.16.
22717 2012-05-29  Richard Guenther  <rguenther@suse.de>
22719         * tree-dfa.c (find_vars_r): Do not call add_referenced_vars
22720         for globals.
22721         (add_referenced_var_1): Re-organize.  Assert we are not
22722         called for globals.
22723         (remove_referenced_var): Likewise.
22724         * varpool.c (add_new_static_var): Use create_tmp_var_raw.
22725         * tree-mudflap.c (execute_mudflap_function_ops): Do not
22726         call add_referenced_var on globals.
22727         * matrix-reorg.c (transform_access_sites): Likewise.
22729 2012-05-29  Steven Bosscher  <steven@gcc.gnu.org>
22731         * alias.c (reg_known_value): Make this a VEC.
22732         (reg_known_equiv_p): Make this an sbitmap.
22733         (reg_known_value_size): Remove.
22734         (get_reg_known_value, set_reg_known_value, get_reg_known_equiv_p,
22735         set_reg_known_equiv_p): Update for reg_known_value and
22736         reg_known_value_size data structure change.
22737         (init_alias_analysis, end_alias_analysis): Likewise.
22739 2012-05-29  Jakub Jelinek  <jakub@redhat.com>
22741         PR middle-end/53510
22742         * input.c (read_line): Use XRESIZEVEC instead of XNEWVEC
22743         to avoid leaking memory.  No need to handle memory allocation
22744         failure.  Double string_len on each reallocation instead of adding 2.
22745         * gcov.c (read_line): Likewise.
22747 2012-05-29  Hans-Peter Nilsson  <hp@axis.com>
22749         * config/cris/cris.h (TARGET_HAS_BREAK, TARGET_TRAP_USING_BREAK8):
22750         New macros.
22751         * config/cris/cris.md ("trap"): Define, enabled for
22752         TARGET_TRAP_USING_BREAK8.
22753         * config/cris/cris.opt (mtrap-using-break8): New option.
22755 2012-05-28  Paolo Carlini  <paolo.carlini@oracle.com>
22757         PR c++/25137
22758         * doc/invoke.texi: Document -Wmissing-braces not enabled by -Wall
22759         for C++.
22761 2012-05-28  Hans-Peter Nilsson  <hp@axis.com>
22763         * doc/md.texi (stack_protect_test): Remove negation of branch to label.
22764         (Standard Names): Fix typos in documentation of atomic patterns.
22766 2012-05-27  Nathan Sidwell  <nathan@acm.org>
22768         * tree.c (build_constructor): Propagate TREE_SIDE_EFFECTS.
22770 2012-05-26  Jason Merrill  <jason@redhat.com>
22772         PR c++/53220
22773         * c-typeck.c (array_to_pointer_conversion): Give -Wc++-compat warning
22774         about array compound literals.
22776 2012-05-26  Eric Botcazou  <ebotcazou@adacore.com>
22778         * cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
22779         if CLEANUP_NO_INSN_DEL.
22780         * cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
22781         from cfg_layout_merge_blocks.
22782         (emit_nop_for_unique_locus_between): New function.
22783         (rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
22784         (cfg_layout_merge_blocks): Likewise.
22786 2012-05-26  Dimitrios Apostolou  <jimis@gmx.net>
22787             Paolo Bonzini  <bonzini@gnu.org>
22789         * df-scan.c (df_def_record_1): Assert a parallel must contain an
22790         EXPR_LIST at this point.  Receive the LOC and move its extraction...
22791         (df_defs_record): ... here. Change if-else to a switch statement.
22792         (df_find_hard_reg_defs, df_find_hard_reg_defs_1): New.
22793         (df_get_call_refs): Changed defs_generated from bitmap to HARD_REG_SET
22794         and compute it from df_find_hard_reg_defs(). Record DF_REF_BASE
22795         DEFs in REGNO order. Use HARD_REG_SET instead of bitmap for
22796         regs_invalidated_by_call.
22797         (df_insn_refs_collect): Record DF_REF_REGULAR DEFs after
22798         df_get_call_refs().
22800 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
22802         PR lto/52178
22803         * tree-inline.c (remap_gimple_op_r): Fix handling of FIELD_DECL.
22804         * tree.c (RETURN_TRUE_IF_VAR): Do not return true for PLACEHOLDER_EXPR.
22806 2012-05-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
22808         * config/rs6000/t-linux64: Delete the 32-bit multilib that uses
22809         software floating point emulation.  No longer build the multilibs
22810         with -mstrict-align.
22812 2012-05-25  Aldy Hernandez  <aldyh@redhat.com>
22814         PR middle-end/53008
22815         * trans-mem.c (ipa_tm_create_version_alias): Output new_node if
22816         accessed indirectly.
22817         (ipa_tm_create_version): Same.
22819 2012-05-25  Uros Bizjak  <ubizjak@gmail.com>
22821         PR target/53474
22822         * config/i386/i386.c (ix86_print_operand) <case 'O'>: Print '.' here.
22823         <case 'C', case 'c', case 'F', case 'f'>: Print '.' only for C and c.
22825 2012-05-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
22827         PR target/53435
22828         * config/i386/i386.c (ix86_expand_vec_perm): Use correct op.
22829         (ix86_expand_vec_perm): Use int mode instead of float.
22830         (expand_vec_perm_pshufb): Remove handling of useseless type
22831         conversion.
22833 2012-05-25  Eric Botcazou  <ebotcazou@adacore.com>
22835         PR ada/52362
22836         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Set gas and
22837         gnu_ld variables to yes.
22838         * configure.ac (HAVE_GNU_LD): Move to after config.gcc inclusion.
22839         (HAVE_GNU_AS): Likewise.
22840         * config.in: Regenerate.
22841         * configure: Likewise.
22843 2012-05-25  Tristan Gingold  <gingold@adacore.com>
22845         * config/i386/i386.c (struct ix86_frame): Remove unused frame field.
22846         (ix86_compute_frame_layout): Fix type of stack_alignment_needed
22847         and preferred_alignment.
22849 2012-05-25  Tristan Gingold  <gingold@adacore.com>
22851         * common/config/ia64/ia64-common.c (ia64_except_unwind_info): Fix typo.
22853 2012-05-25  Thomas Schwinge  <thomas@codesourcery.com>
22855         * fold-const.c (optimize_bit_field_compare): Abort early in the strict
22856         volatile bitfields case.
22858 2012-05-24  Pat Haugen  <pthaugen@us.ibm.com>
22860         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
22861         rs6000_sched_costly_dep default to true_store_to_load_dep_costly.
22862         (adjacent_mem_locations): Move some code to and call...
22863         (get_memref_parts): ...new function.
22864         (mem_locations_overlap): New function.
22865         (rs6000_adjust_priority): Adjust calls to is_load_insn/is_store_insn.
22866         (is_mem_ref): Rename to...
22867         (find_mem_ref): ...this. Return MEM rtx.
22868         (get_store_dest): Remove function.
22869         (is_load_insn1, is_load_insn, is_store_insn1, is_store_insn): Add
22870         new parameter and adjust calls.
22871         (rs6000_is_costly_dependence): Update calls for extra arg. Make sure
22872         mem refs overlap for true_store_to_load_dep_costly.
22873         (rs6000_sched_reorder2): Update calls for extra arg. Adjust args
22874         passed to adjacent_mem_locations.
22875         (is_costly_group): Walk resolved dependency list.
22876         (force_new_group): Emit group ending nop for Power6/Power7.
22877         * config/rs6000/rs6000.md (UNSPEC_GRP_END_NOP): New enum value.
22878         (group_ending_nop): New define_insn.
22880 2012-05-24  Dodji Seketeli  <dodji@redhat.com>
22882         Make unwound macro expansion trace less redundant
22883         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Don't print
22884         context of macro definition in the trace, when it's redundant.
22885         Update comments.
22887 2012-05-24  Richard Guenther  <rguenther@suse.de>
22889         PR middle-end/53460
22890         * tree-profile.c (tree_profiling): Cleanup the CFG if
22891         execute_fixup_cfg requests it.
22893 2012-05-24  Richard Guenther  <rguenther@suse.de>
22895         * tree-flow.h (create_var_ann): Remove.
22896         * tree-dfa.c (create_var_ann): Remove and inline into its
22897         single caller ...
22898         (add_referenced_var_1): ... here.
22899         * varpool.c (add_new_static_var): Do not call add_referenced_var
22900         for global vars.
22901         * gimple-fold.c (canonicalize_constructor_val): Likewise.
22902         * tree-switch-conversion.c (build_one_array): Likewise.
22903         * tree-profile.c (gimple_gen_ic_profiler): Likewise.
22904         * tree-flow-inline.h (gimple_referenced_vars): Guard against
22905         NULL fn argument.
22906         * tree-inline.c (remap_gimple_op_r): Likewise.  Check
22907         gimple_referenced_vars instead of gimple_in_ssa_p.
22908         (copy_tree_body_r): Likewise.
22909         (setup_one_parameter): Likewise.
22910         (declare_return_variable): Likewise.
22911         (tree_function_versioning): Likewise.
22913 2012-05-24  Jakub Jelinek  <jakub@redhat.com>
22915         PR tree-optimization/53465
22916         * tree-vrp.c (extract_range_from_cond_expr): First copy_value_range
22917         vr0 into *vr, then vrp_meet that.
22918         (vrp_meet): If one vr type is VR_UNDEFINED, ensure the result doesn't
22919         have any equivalences.
22920         (vrp_visit_phi_node): Call copy_value_range instead of vrp_meet the
22921         first time.
22923 2012-05-24  Jim MacArthur  <jim.macarthur@arm.com>
22925         * recog.c (reg_fits_class_p): Check both regno and regno + offset are
22926         hard registers.
22927         * regs.h (in_hard_reg_set_p): Assert that regno is a hard register and
22928         check end_regno - 1 is a hard register.
22930 2012-05-24  Richard Guenther  <rguenther@suse.de>
22932         * varpool.c (add_new_static_var): Remove call to create_var_ann.
22933         * tree-ssa-operands.c (create_vop_var): Likewise.
22935 2012-05-24  Richard Guenther  <rguenther@suse.de>
22937         PR bootstrap/53466
22938         * tree-ssa-live.c (remove_unused_scope_block_p): Properly
22939         handle globals.
22940         (remove_unused_locals): Pass global_unused_vars to
22941         remove_unused_scope_block_p.  Restore code walking all
22942         referenced vars and pruning them.
22944 2012-05-23  Jan Hubicka  <jh@suse.cz>
22946         * tree.h (alias_diag_flags): Remove.
22947         (alias_pair): Remove emitted_diags.
22948         (finish_aliases_1, finish_aliases_2, remove_unreachable_alias_pairs,
22949         symbol_alias_set_t, symbol_alias_set_destroy,
22950         symbol_alias_set_contains, propagate_aliases_backward): Remove.
22951         * toplev.c (compile_file): Do not call finish_aliases_2
22952         * cgraphunit.c (cgraph_process_new_functions): Do not call
22953         finish_aliases_1.
22954         (handle_alias_pairs): Output diagnostics about aliases to externals.
22955         (assemble_thunks_and_aliases): Use do_assemble_alias.
22956         (output_weakrefs): Likewise.
22957         (finalize_compilation_unit): Do not call finish_aliases_1.
22958         * ipa.c (symtab_remove_unreachable_nodes): De not call
22959         remove_unreachable_alias_pairs.
22960         * varasm.c (do_assemble_alias): Export.
22961         (symbol_alias_set_create, symbol_alias_set_destroy,
22962         symbol_alias_set_contains, symbol_alias_set_insert,
22963         propagate_aliases_forward, propagate_aliases_backward,
22964         propagate_aliases_backward, trivially_visible_alias,
22965         trivially_defined_alias, remove_unreachable_alias_pairs,
22966         finish_aliases_1, finish_aliases_2, assemble_alias): Remove.
22967         * output.h (do_assemble_alias): Declare.
22968         * varpool.c (varpool_remove_unreferenced_decls): Do not call
22969         finish_aliases_1.
22971 2012-05-23  Martin Jambor  <mjambor@suse.cz>
22973         * ipa-inline-analysis.c (inline_merge_summary): Free operand_map.
22975 2012-05-23  Eric Botcazou  <ebotcazou@adacore.com>
22977         * gimple.c (gimple_types_compatible_p_1) <ARRAY_TYPE>: Remove bogus
22978         size handling.
22979         (gimple_canonical_types_compatible_p) <ARRAY_TYPE>: Likewise.
22980         (iterative_hash_gimple_type): Adjust comment.
22981         (iterative_hash_canonical_type): Likewise.  Hash the bounds of the
22982         domain for an array type instead of the domain type itself.
22984 2012-05-23  Richard Guenther  <rguenther@suse.de>
22986         PR tree-optimization/53438
22987         * tree-sra.c (analyze_access_subtree): Correct bitfield exclusion.
22989 2012-05-23  Georg-Johann Lay  <avr@gjlay.de>
22991         PR target/53448
22992         * config/avr/avr.h (ASM_OUTPUT_ALIGN): Don't inhibit .p2align 1.
22993         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Use
22994         ASM_OUTPUT_ALIGN.
22996 2012-05-23  Richard Guenther  <rguenther@suse.de>
22998         * tree-dfa.c (add_referenced_var_1): Do not add global vars.
22999         * tree-ssa-live.c (mark_all_vars_used_1): Handle global vars
23000         via the global_unused_vars bitmap.
23001         (remove_unused_locals): Handle global vars in local-decls via
23002         a global_unused_vars bitmap instead of the used flag in the
23003         var annotation.  Simplify global variable handling and removal.
23005 2012-05-22  Jan Hubicka  <jh@suse.cz>
23007         PR middle-end/53426
23008         * tree-ssa-structalias.c (create_variable_info_for): Skip constructors
23009         from other partitions.
23011 2012-05-22  Jan Hubicka  <jh@suse.cz>
23013         PR middle-end/53161
23014         * symtab.c (symtab_register_node): Fix ordering issue.
23016 2012-05-22  Steven Drake <sbd@NetBSD.org>
23018         * gcc.c (do_spec_1): Add %M spec token to output multilib_os_dir.
23020 2012-05-22  David Edelsohn  <dje.gcc@gmail.com>
23022         * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_table_ref):
23023         Use strip_name_encoding target hook.
23025 2012-05-22  Richard Guenther  <rguenther@suse.de>
23027         * tree.h (VAR_DECL_IS_VIRTUAL_OPERAND): New.
23028         (init_function_for_compilation): Remove.
23029         * tree-dfa.c (find_vars_r): Take struct function argument.
23030         (find_referenced_vars_in): Adjust.
23031         * tree-ssa-operands.c (clobber_stats): Remove.
23032         (create_vop_var): Take struct function argument.  Mark
23033         virtual operand with VAR_DECL_IS_VIRTUAL_OPERAND.
23034         (init_ssa_operands): Take struct function argument.
23035         (fini_ssa_operands): Do not dump dead stats.
23036         * tree-ssa-operands.h (init_ssa_operands): Take struct function
23037         argument.
23038         * cgraphunit.c (init_lowered_empty_function): Adjust.
23039         * lto-streamer-in.c (input_cfg): Likewise.
23040         * tree-inline.c (initialize_cfun): Likewise.
23041         * tree-into-ssa.c (rewrite_into_ssa): Likewise.
23042         * omp-low.c (expand_omp_taskreg): Likewise.  Avoid switching cfun.
23043         * gimple.c (is_gimple_reg): Optimize the SSA_NAME case,
23044         virtual operands are not registers.
23046 2012-05-22  Richard Guenther  <rguenther@suse.de>
23048         * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
23050 2012-05-22  Richard Guenther  <rguenther@suse.de>
23052         PR middle-end/53437
23053         * tree-inline.c (setup_one_parameter): Create a dummy init
23054         statement for unused parameters when not optimizing.
23056 2012-05-22  Richard Guenther  <rguenther@suse.de>
23058         * tree-flow.h (add_referenced_var_1): Declare.
23059         (add_referenced_var): Define.
23060         * tree-dfa.c (referenced_var_check_and_insert): Avoid one hash lookup.
23061         (add_referenced_var): Rename to ...
23062         (add_referenced_var_1): ... this.  Take struct function argument.
23064 2012-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
23066         PR target/53334
23067         * config/arm/arm-protos.h (arm_validize_comparison): Declare.
23068         * config/arm/arm.c (arm_validize_comparison): Define.
23069         * config/arm/arm.md ("cbranchsi4"): Cleanup expansion and use
23070         arm_validize_comparison.
23071         ("cbranchdi4"): Likewise.
23072         ("cstoredi4"): Likewise.
23073         ("movsicc"): Likewise.
23074         ("movsfcc"): Likewise.
23075         ("movdfcc"): Likewise.
23077 2012-05-22  Dimitrios Apostolou  <jimis@gmx.net>
23079         * df-scan.c (df_scan_alloc): Round up allocation pools size, reduce
23080         the mw_reg_pool size.
23082 2012-05-22  Paolo Bonzini  <bonzini@gnu.org>
23084         PR tree-optimization/53336
23085         * tree-cfg.c (verify_gimple_assign_unary): Allow conversion from
23086         non-integer integral types to offset type and vice versa.
23088 2012-05-22  Alan Modra  <amodra@gmail.com>
23090         * config/rs6000/aix.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
23091         * config/rs6000/darwin.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Delete.
23092         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE,
23093         V_SAVE_INLINE): Delete.
23094         * config/rs6000/rs6000.c (V_SAVE_INLINE): Delete.
23095         (rs6000_savres_strategy): Reimplement GP/FP/V_SAVE_INLINE logic.
23096         For ELF targets, use out-of-line restores for -Os and any number
23097         of regs if the restore exits, and out-of-line gp save for two or
23098         more regs.  Use save_reg_p to test for holes in reg restore set.
23099         Replace "#if" with "if".
23101 2012-05-22  Alan Modra  <amodra@gmail.com>
23103         * config/rs6000/rs6000.c (save_reg_p): New function.
23104         (first_reg_to_save, first_fp_reg_to_save): Use it here.
23105         (first_altivec_reg_to_save, restore_saved_cr): Likewise.
23106         (emit_frame_save): Use gen_frame_store.
23107         (gen_frame_mem_offset): Correct SPE condition requiring reg+reg.
23108         (rs6000_emit_prologue): Use save_reg_p.  Use gen_frame_store for
23109         vrsave and toc.
23110         (rs6000_emit_epilogue): Use save_reg_p.  Use gen_frame_load for
23111         vrsave, toc, gp and fp restores.
23113 2012-05-22  Alan Modra  <amodra@gmail.com>
23115         * config/rs6000/rs6000.c: Delete unnecessary forward declarations.
23116         Move those with ATTRIBUTE_UNUSED to immediately before definitions.
23117         Move function pointer variables after forward declarations.
23118         (rs6000_builtin_support_vector_misalignment): Make static.
23119         (rs6000_legitimate_address_p, rs6000_gimplify_va_arg): Likewise.
23120         (rs6000_function_value, rs6000_can_eliminate): Likewise.
23122 2012-05-21  Bernd Schmidt  <bernds@codesourcery.com>
23124         PR rtl-optimization/53373
23125         * caller-save.c (save_call_clobbered_regs): Look into a possible
23126         PARALLEL manually rather than using single_set on a call insn.
23128 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
23130         PR tree-optimization/53436
23131         * omp-low.c (omp_build_component_ref): New function.
23132         (build_receiver_ref, build_sender_ref, create_task_copyfn): Use it.
23134 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
23136         * config/i386/i386.c (put_condition_code): Change "reverse" and "fp"
23137         arguments to bool.
23138         (ix86_print_operand) <case 'O'>: Look at mode size of the operand.
23139         Do not print '.' here.  Output operand lossage error for unhandled
23140         sizes.  Move.
23141         <case '*'>: Move.
23142         <case '&'>: Ditto.
23143         <case 'Y'>: Ditto.
23144         <case 'z'>: Hardcode "code" argument into error strings.
23145         <case 'Z'>: Ditto.
23146         <case 'D'>: Merge AVX and non-AVX codes.
23147         <case 'C', case 'c', case 'F', case 'f'>: Merge.  Fix error string.
23148         Update call to put_condition_code.
23150 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
23152         * config/m68k/m68k.md (*clzsi2_cf): Renamed from clzsi2.  Call
23153         CC_STATUS_INIT.
23154         (clzsi2): New expander.
23155         (*clzsi2_68k): New insn.
23156         * config/m68k/m68k.h: Update comment about CLZ_DEFINED_VALUE_AT_ZERO.
23158 2012-05-21  Aldy Hernandez  <aldyh@redhat.com>
23160         * gimple.h (gimple_set_in_transaction): Remove.
23161         (gimple_in_transaction): Look in BB instead.
23162         (gimple_statement_base): Remove in_transaction field.
23163         * basic-block.h (enum bb_flags): Add BB_IN_TRANSACTION.
23164         * trans-mem.c (compute_transaction_bits): Place transaction bit
23165         information into basic blocks.
23167 2012-05-21  Andreas Schwab  <schwab@linux-m68k.org>
23169         * expr.c (get_def_for_expr_class): Define only if
23170         HAVE_conditional_move.
23171         (convert_tree_comp_to_rtx): Likewise.
23173 2012-05-21  Uros Bizjak  <ubizjak@gmail.com>
23175         PR target/53399
23176         * config/i386/i386.md (ffs<mode>2): Generate CCCmode compare
23177         for TARGET_BMI.
23178         (ffssi2_no_cmove): Ditto.
23179         (*ffs<mode>_1): Remove insn pattern.
23180         (*tzcnt<mode>_1): New insn pattern.
23181         (*bsf<mode>1): Ditto.
23183 2012-05-21  Richard Guenther  <rguenther@suse.de>
23185         * tree-dfa.c (add_referenced_var): Do not walk DECL_INITIAL for
23186         more referenced vars.
23187         * tree-ssa-live.c (mark_all_vars_used_1): Only set the used
23188         flag on variables that have a var-annotation.
23190 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
23192         PR c/53418
23193         * c-typeck.c (build_conditional_expr): Remove C_MAYBE_CONST_EXPR
23194         from folded operands before wrapping another around the
23195         conditional expression.
23197 2012-05-21  Jakub Jelinek  <jakub@redhat.com>
23199         PR tree-optimization/53366
23200         * tree-vect-slp.c (vect_supported_load_permutation_p): Don't shortcut
23201         tests if complex_numbers == 2, but there are non-complex number loads
23202         too.
23204         PR tree-optimization/53409
23205         * tree-vect-loop.c (vect_analyze_loop_operations): Don't check
23206         vinfo_for_stmt (op_def_stmt) if op_def_stmt isn't inside loop.
23208         PR tree-optimization/53410
23209         * fold-const.c (fold_binary_loc): Use build_zero_cst (type)
23210         instead of build_int_cst (type, 0) where vector types might be
23211         involved. Instead of build_int_cst (type, 1) convert the original
23212         integer_onep argument to the desired type.
23214 2012-05-21  Michael Matz  <matz@suse.de>
23216         * genattrtab.c (attr_rtx_cost): Move earlier, start with cost being 1.
23217         (simplify_test_exp): Handle one more case of distributive law,
23218         decrease cost threshold.
23219         (tests_attr_p, get_attr_order): New functions.
23220         (optimize_attrs): Use topological order, inline only cheap values.
23221         (write_attr_set): Reset our_known_true after some time.
23223 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23225         PR target/53425
23226         * config/i386/i386.c (type_natural_mode): Warn passing SSE
23227         vector argument without SSE enabled changes the ABI.
23229 2012-05-21  Richard Guenther  <rguenther@suse.de>
23231         PR tree-optimization/53408
23232         * tree-vect-loop.c (vectorizable_induction): Properly check
23233         the restriction that we cannot handle induction results from
23234         the inner loop outside of the outer loop.
23236 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
23238         PR target/53416
23239         * config/i386/i386.md (UNSPEC_RDRAND): Renamed to ...
23240         (UNSPECV_RDRAND): This.
23241         (rdrand<mode>_1): Updated.
23243 2012-05-21  Richard Guenther  <rguenther@suse.de>
23245         * tree-loop-distribution.c (can_generate_builtin): Reject
23246         volatile stmts.
23248 2012-05-21  Chung-Lin Tang  <cltang@codesourcery.com>
23250         * Makefile.in (options.c): Add options.h to included header
23251         files, before tm.h.
23253 2012-05-21  Razya Ladelsky  <razya@il.ibm.com>
23255         * tree-parloops.c : Add myself to contributors, update
23256         TODO list, add link to wiki.
23258 2012-05-21  Alan Modra  <amodra@gmail.com>
23260         * config/rs6000/predicates.md (input_operand): Don't match
23261         constant pool addresses.  Remove label_ref, high and plus from
23262         match_code list.  Remove redundant CONSTANT_P test.
23263         (splat_input_operand): Similarly update match_code list.
23264         (small_toc_ref): New predicate.
23265         * config/rs6000/rs6000-protos.h (toc_relative_expr_p): Update prototype.
23266         * config/rs6000/rs6000.c (tocrel_base, tocrel_offset): Make const.
23267         (legitimate_constant_pool_address_p): Move TARGET_TOC test and
23268         register checks to..
23269         (toc_relative_expr_p): ..here.  Add "strict" param.  Match new rtl
23270         generated by create_TOC_reference.
23271         (rs6000_legitimize_address): Update cerate_TOC_reference call.
23272         (rs6000_delegitimize_address): Handle new rtl for toc refs.
23273         (rs6000_cannot_force_const_mem, rs6000_find_base_term): Likewise.
23274         (use_toc_relative_ref): New function, split out from..
23275         (rs6000_emit_move): ..here.  Remove redundant tests.  Update
23276         create_TOC_reference calls.
23277         (rs6000_legitimize_reload_address): Formatting.  Handle splitting
23278         of medium/large model toc addresses.  Use use_toc_relative_ref.
23279         (print_operand): Formatting, style.  Adjust for toc changes.
23280         (print_operand_address): Likewise.
23281         (rs6000_output_addr_const_extra): Likewise.
23282         (create_TOC_reference): Put TOC_REGISTER in UNSPEC_TOCREL rather
23283         than a PLUS.  Use this formulation for both high and low part
23284         of -mcmodel=medium/large toc reference too.  Before reload,
23285         always use the small model formulation.
23286         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Similarly avoid
23287         a PLUS in high part of addresses here.
23288         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
23289         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
23290         (largetoc_high, largetoc_low): Move earlier.  Cope when no
23291         base reg available.
23292         (largetoc_high_plus): New insn.
23293         (movsi_internal1, movsi_internal1_single, movsf_softfloat,
23294         movdi_mfpgpr, movdi_internal64): Don't handle 'R' constraint here..
23295         (tocref): ..instead do so here, new insn and split.
23297 2012-05-20  H.J. Lu  <hongjiu.lu@intel.com>
23299         * config/i386/driver-i386.c (host_detect_local_cpu): Support
23300         RDRND, F16C and FSGSBASE.
23302 2012-05-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23304         PR rtl-optimzation/53373
23305         * config/pa/pa.md (call_symref_pic): Don't expose PIC register save in
23306         call pattern.  Update split patterns.
23307         (call_symref_64bit, call_reg_pic, call_reg_64bit, call_val_symref_pic,
23308         call_val_symref_64bit, call_val_reg_pic, call_val_reg_64bit): Likewise.
23310 2012-05-20  Razya Ladelsky  <razya@il.ibm.com>
23312         * tree-parloops.c (gen_parallel_loop): Change many_iterations_cond
23313         for outer loops.
23315 2012-05-18  Jan Hubicka  <jh@suse.cz>
23317         * cgraphunit.c (handle_alias_pairs): Declare; free alias_pairs
23318         (cgraph_process_new_functions): Process also aliases.
23319         * lto-streamer-out.c (struct sets): Remove.
23320         (trivally_defined_alias): Remove.
23321         (output_alias_pair_p): Remove.
23322         (output_unreferenced_globals): Remove.
23323         (produce_symtab); Do not handle alias pairs.
23324         (produce_asm_for_decls): Likewise.
23325         * lto-streamer-in.c (input_alias_pairs): Remove.
23326         (lto_read_body): Do not input alias pairs.
23327         (lto_input_constructors_and_inits): Remove.
23329 2012-05-18  Jan Hubicka  <jh@suse.cz>
23331         * cgraphunit.c (handle_alias_pairs): Cleanup; handle all types of
23332         aliases.
23334 2012-05-18  Jan Hubicka  <jh@suse.cz>
23336         * cgraphbuild.c (record_reference): Update.
23337         * lto-cgraph.c (lto_output_varpool_node): External vars
23338         are not in other partition even if they are not output
23339         in current partition.
23340         * gimple-fold.c (can_refer_decl_in_current_unit_p): Take FROM_DECL
23341         argument; fix.
23342         (canonicalize_constructor_val): Take FROM_DECL argument.
23343         (fold_ctor_reference, fold_string_cst_ctor_reference,
23344         fold_array_ctor_reference, fold_nonarray_ctor_reference,
23345         fold_ctor_reference): Likewise.
23346         (fold_const_aggregate_ref_1, gimple_get_virt_method_for_binfo): Update.
23347         * gimple.h (gimple_fold_builtin): Likewise.
23349 2012-05-18  Olivier Hainque  <hainque@adacore.com>
23351         * Makefile.in (FLAGS_TO_PASS): Pass $(libexecsubdir) instead of
23352         $(libsubdir) as libexecsubdir.
23354 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23356         * config/rs6000/rs6000.c (print_operand): Revise code that unsafely
23357         relied on signed overflow behavior.
23359 2012-05-18  Richard Guenther  <rguenther@suse.de>
23361         PR tree-optimization/53346
23362         * tree-loop-distribution.c (ldist_gen): Make sure to apply
23363         builtin transform even when only a single partition with
23364         all reads/writes exists.
23366 2012-05-18  Richard Guenther  <rguenther@suse.de>
23368         PR tree-optimization/53390
23369         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Ignore
23370         strided loads.
23372 2012-05-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23374         * tree-ssa-reassoc.c (bip_map): Remove decl.
23375         (completely_remove_stmt): Remove function.
23376         (remove_def_if_absorbed_call): Remove function.
23377         (remove_visited_stmt_chain): Remove __builtin_powi handling.
23378         (possibly_move_powi): Remove function.
23379         (rewrite_expr_tree): Remove calls to possibly_move_powi.
23380         (rewrite_expr_tree_parallel): Likewise.
23381         (attempt_builtin_powi): Build multiplies explicitly rather than
23382         relying on the ops vector and rank system.
23383         (transform_stmt_to_copy): New function.
23384         (transform_stmt_to_multiply): Likewise.
23385         (reassociate_bb): Handle leftover operations after __builtin_powi
23386         optimization; build a final multiply if necessary.
23388 2012-05-18  Jan Hubicka  <jh@suse.cz>
23390         * cgraphunit.c (varpool_finalize_decl): Allow external decls.
23391         (mark_functions_to_output): Fix sanity check.
23392         * ipa.c (function_and_variable_visibility): Remove TREE_STATIC check.
23394 2012-05-18  Richard Guenther  <rguenther@suse.de>
23396         * tree-flow.h (mark_symbols_for_renaming): Remove.
23397         * tree-dfa.c (mark_symbols_for_renaming): Likewise.
23398         * tree-inline.c (copy_edges_for_bb): Do not mark symbols for renaming.
23399         (copy_debug_stmt): Likewise.
23400         (expand_call_inline): Likewise.
23401         (declare_return_variable): Mark the return variable for renaming
23402         if necessary.
23404 2012-05-18  Andrew Stubbs  <ams@codesourcery.com>
23406         * config/arm/arm-protos.h (arm_emit_coreregs_64bit_shift): New
23407         prototype.
23408         * config/arm/arm.c (arm_emit_coreregs_64bit_shift): New function.
23409         * config/arm/arm.md (ashldi3): Use arm_emit_coreregs_64bit_shift.
23410         (ashrdi3,lshrdi3): Likewise.
23411         (arm_cond_branch): Remove '*' to enable gen_arm_cond_branch.
23413 2012-05-18  Meador Inge  <meadori@codesourcery.com>
23415         PR rtl-optimization/53352
23416         * cse.c (equiv_constant): Ignore paradoxical subregs.
23418 2012-05-17  Steven Bosscher  <steven@gcc.gnu.org>
23420         PR rtl-optimization/53125
23421         * regstat.c (regstat_bb_compute_ri): Take new local_live_last_luid
23422         argument.  Simplify calculation of REG_LIVE_LENGTH for regnos that
23423         die in the basic block.  Correctly top off REG_FREQ and
23424         REG_FREQ_CALLS_CROSSED.
23425         Remove do_not_gen.
23426         (regstat_compute_ri): Allocate and free local_live_last_luid.
23427         Remove do_not_gen.
23428         (regstat_bb_compute_calls_crossed): Correctly top off
23429         REG_FREQ_CALLS_CROSSED.
23431 2012-05-17  Jan Hubicka  <jh@suse.cz>
23433         * lto-symtab.c (lto_symtab_resolve_symbols): Preffer decl with
23434         constructor over decl without.
23435         * cgraph.c (cgraph_remove_node): Clear also body of unanalyzed nodes.
23436         * cgraph.h (varpool_can_remove_if_no_refs): Handle external correctly.
23437         * cgraphunit.c (process_function_and_variable_attributes): Finalize
23438         extrnal decls.
23439         (mark_functions_to_output): Also accept bodies for functions with
23440         clones.
23441         (output_in_order): Skip external vars.
23442         * lto-cgraph.c (lto_output_node): External functions are never in other
23443         partition.
23444         (lto_output_varpool_node): Likewise.
23445         * lto-streamer-out.c (lto_write_tree): Always use error_mark_nodes for
23446         forgotten initializers.
23447         * ipa.c (process_references): Handle external vars.
23448         (symtab_remove_unreachable_nodes): Update to handle external vars.
23449         (varpool_externally_visible_p): External vars are externally visible.
23450         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
23451         * varpool.c (varpool_remove_node): Remove constructor.
23452         (decide_is_variable_needed): Handle externals.
23453         (varpool_remove_unreferenced_decls): Likewise.
23455 2012-05-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23457         * opts.c (common_handle_option): -pedantic-errors enables -Wpedantic.
23458         (enable_warning_as_error): Do not special case Wuninitialized.
23459         * optc-gen.awk: Add sanity checks.
23461 2012-05-17  Jan Hubicka  <jh@suse.cz>
23463         * ipa-reference.c (is_proper_for_analysis): Do not check flags
23464         that might change as result of global optimization.
23465         (analyze_function): Do not check analyzed and externally_visible
23466         flags; be happy about address dereferences.
23467         (propagate): Prune all_module_statics so it really contains just
23468         statics; prune all the local summaries.
23469         (ipa_reference_write_optimization_summary): Simplify.
23471 2012-05-17  Kwok Cheung Yeung  <kcy@codesourcery.com>
23473         * config/m68k/m68k-devices.def: Add 51ag, 51je, 51jf, 51jg, 51mm, 51qm.
23474         * config/m68k/m68k-tables.opt: Regenerated.
23475         * doc/invoke.texi (M680x0 Options): Document.
23477 2012-05-16  Dave Boutcher  <daveboutcher@gmail.com>
23478             Patrick Marlier  <patrick.marlier@gmail.com>
23480         * trans-mem.c (ipa_tm_transform_clone): Transform functions with
23481         indirect calls.
23483 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
23485         * configure: Regenerated.
23487 2012-05-16  Andrew Pinski  <apinski@cavium.com>
23489         * gimple-fold.c (get_maxval_strlen): Move COND_EXPR handling under
23490         GIMPLE_ASSIGN.
23492 2012-05-16  David S. Miller  <davem@davemloft.net>
23494         * jump.c (delete_related_insns): If we remove a CALL, make sure
23495         we delete it's NOTE_INSN_CALL_ARG_LOCATION note too.
23497 2012-05-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23499         PR tree-optimization/53217
23500         * tree-ssa-reassoc.c (bip_map): New static variable.
23501         (possibly_move_powi): Move feeding multiplies with __builtin_powi call.
23502         (attempt_builtin_powi): Save feeding multiplies on a stack.
23503         (reassociate_bb): Create and destroy bip_map.
23505 2012-05-16  Olivier Hainque  <hainque@adacore.com>
23507         * Makefile.in (install-no-fixedincludes): New target, former toplevel
23508         gcc-no-fixedincludes. Stash "include-fixed" in addition to "include".
23509         Add comments and improve stamp preservation across the whole sequence.
23510         (stmp-int-hdrs): Use move-if-change + cp -p to setup fix_dir/limits.h.
23512 2012-05-16  Richard Guenther  <rguenther@suse.de>
23514         * tree-inline.c (insert_init_stmt): Do not call
23515         mark_symbols_for_renaming.
23516         (setup_one_parameter): Avoid initializing unused parameters.
23517         (declare_return_variable): Properly handle DECL_BY_REFERENCE
23518         return vars in SSA form.
23520 2012-05-16  Richard Guenther  <rguenther@suse.de>
23522         * tree-flow.h (get_virtual_var): Remove.
23523         * tree-dfa.c (get_virtual_var): Likewise.
23525 2012-05-16  Richard Guenther  <rguenther@suse.de>
23527         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1):
23528         Remove set-only bitmap of new names.
23529         (slpeel_tree_peel_loop_to_edge): Likewise.  Do not set
23530         CFG hooks.
23531         * tree-flow.h (ssa_names_to_replace): Remove.
23532         * tree-into-ssa.c (ssa_names_to_replace): Likewise.
23534 2012-05-16  Richard Guenther  <rguenther@suse.de>
23536         PR tree-optimization/53364
23537         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
23538         detect a view-conversion of the decl.
23540 2012-05-16  Dodji Seketeli  <dodji@redhat.com>
23542         PR preprocessor/7263
23543         * c-tree.h (enum c_declspec_word): Declare new enum.
23544         (struct c_declspecs::locations): New member.
23545         (declspecs_add_qual, declspecs_add_scspec)
23546         (declspecs_add_addrspace, declspecs_add_alignas): Take a new
23547         location parameter.
23548         * c-decl.c (build_null_declspecs): Initialize the new struct
23549         c_declspecs::locations member.
23550         (declspecs_add_addrspace): Take a location parameter for the
23551         address space.  Store it onto declaration specifiers.
23552         (declspecs_add_qual): Likewise, take a location parameter for the
23553         qualifier.
23554         (declspecs_add_type): Likewise, take a location parameter for the
23555         type specifier.
23556         (declspecs_add_scspec): Likewise, take a location parameter for
23557         the storage class specifier.
23558         (declspecs_add_attrs): Likewise, take a location parameter for the
23559         first attribute.
23560         (declspecs_add_alignas): Likewise, take a location parameter for
23561         the alignas token.
23562         (finish_declspecs): For diagnostics, use the location of the
23563         relevant declspec, instead of the global input_location.
23564         * c-parser.c (c_parser_parameter_declaration): Pass the precise
23565         virtual location of the declspec to the declspecs-setters.
23566         (c_parser_declspecs): Likewise.  Avoid calling c_parser_peek_token
23567         repeatedly.
23569 2012-05-16  Igor Zamyatin  <igor.zamyatin@intel.com>
23571         * configure.ac: Stack protector enabling for Android targets.
23572         * configure: Regenerate.
23574 2012-05-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
23576         * ira.c (pseudo_move_insn): Delete.
23577         (find_moveable_pseudos): Don't set it.
23578         (move_unallocated_pseudos): Use DF_REG_DEF_CHAIN to find
23579         the definitions of the original pseudo.  Delete all of them.
23581 2012-05-16  Olivier Hainque  <hainque@adacore.com>
23583         * config/rs6000/rs6000-opts.h (enum processor_type): Add
23584         PROCESSOR_PPC8548.
23585         * config/rs6000/rs6000-cpus.def: Reference it for cpu="8548".
23586         * config/rs6000/rs6000.md (cpu attribute definition): Add ppc8548.
23587         * config/rs6000/8540.md: indicate that the units/patterns apply to
23588         ppc8548 as well.
23590         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rename
23591         default_cpu into implicit_cpu, conveying what --with-cpu was passed at
23592         configure time. Treat implicit_cpu as have_CPU. Pick defaults for SPE
23593         related flags,  check that what is queried is supported by the selected
23594         configuration. Rework the single/double_float and MASK_STRING resets to
23595         hit for all the E500 cores (854x + E500MC variants). Select the ppc8540
23596         costs for PROCESSOR_PPC8548 as well.
23597         (rs6000_issue_rate): case CPU_PPC8548 together with CPU_PPC8540.
23598         (rs6000_use_sched_lookahead): Likewise, rewriting function as a case
23599         statement instead of a sequence of ifs.
23601         * config/rs6000/rs6000.h (TARGET_E500): Remove.
23602         (TARGET_NO_LWSYNC): Adjust accordingly.
23603         * config/rs6000/e500.h (TARGET_E500): Remove.
23604         (CHECK_E500_OPTIONS): Adjust accordingly.
23605         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove.
23606         (TARGET_DEFAULT): Reformat definition to match the one in linuxspe.h.
23607         * config/rs6000/linuxspe.h: Likewise.
23608         * config/rs6000/vxworks.h: Remove bogus TARGET_E500 overrides and
23609         superfluous comments.
23610         * config/rs6000/e500-double.h: Remove.
23612         * config.gcc (pick a default with_cpu): For powerpc*-*-*spe*,
23613         default to with_cpu=8548 if --enable-e500-double, and to 8540
23614         otherwise.
23615         (set misc flags section): For powerpc*|rs6000*, remove inclusion
23616         of e500-double.h for --enable-e500-double.
23618 2012-05-16  Olivier Hainque  <hainque@adacore.com>
23620         * Makefile.in (s-header-vars): Resort to -n instead of trailing
23621         -e d in sed invocation.
23623 2012-05-16  Hans-Peter Nilsson  <hp@axis.com>
23625         * doc/tm.texi.in (Type Layout) <SIZE_TYPE>: Update reference to
23626         source-code.
23627         * doc/tm.texi: Regenerate.
23629 2012-05-15  Paolo Carlini  <paolo.carlini@oracle.com>
23631         * tree.h (EXPR_LOCATION): Use CAN_HAVE_LOCATION_P.
23633 2012-05-15  Jakub Jelinek  <jakub@redhat.com>
23635         PR target/53358
23636         * config/i386/i386.md (*addqi_2 peephole with QImode addition): Check
23637         that operands[2] is either immediate, or q_regs_operand.
23639 2012-05-15  Richard Guenther  <rguenther@suse.de>
23641         * cgraphunit.c (thunk_adjust): Use make_rename_temp.
23642         (assemble_thunk): Likewise.  Manually rename and register
23643         function arguments.
23645 2012-05-15  Richard Guenther  <rguenther@suse.de>
23647         PR tree-optimization/53355
23648         * tree-vrp.c (extract_range_from_binary_expr_1): Handle LSHIFT_EXPRs
23649         by constants.
23651 2012-05-15  Tristan Gingold  <gingold@adacore.com>
23653         * tree-ssa-strlen.c (get_string_length): Convert lhs if needed.
23655 2012-05-15  Richard Guenther  <rguenther@suse.de>
23657         * gimple.c (gimple_set_modified): Move ...
23658         * gimple.h (gimple_set_modified): ... here.
23660 2012-05-15  Tristan Gingold  <gingold@adacore.com>
23662         * ira-color.c (move_spill_restore): Add a guard.
23664 2012-05-15  Tristan Gingold  <gingold@adacore.com>
23666         * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust calls to
23667         plus_constant.
23669 2012-05-15  Eric Botcazou  <ebotcazou@adacore.com>
23671         * gimplify.c (gimplify_init_constructor): Do a block move for very
23672         small objects as well.
23674 2012-05-15  Bernd Schmidt  <bernds@codesourcery.com>
23676         * ira.c (find_moveable_pseudos): Skip registers whose
23677         DF_REG_EQ_USE_COUNT is nonzero.
23679 2012-05-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
23681         * doc/md.texi (fma): Define to only be applicable for single rounding.
23683 2012-05-14  Uros Bizjak  <ubizjak@gmail.com>
23685         PR target/46098
23686         * config/i386/i386.c (ix86_expand_special_args_builtin): Always
23687         generate target register for "load" class builtins.
23689         Revert:
23690         2010-10-22  Uros Bizjak  <ubizjak@gmail.com>
23692         PR target/46098
23693         * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
23694         Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
23695         (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
23696         (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
23697         (<sse>_movu<ssemodesuffix>): New expander.
23698         (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
23699         (avx_movdqu<avxmodesuffix>): New expander.
23700         (*sse2_movdqu): Rename from sse2_movdqu.
23701         (sse2_movdqu): New expander.
23703 2012-05-14  Marc Glisse  <marc.glisse@inria.fr>
23705         PR target/52607
23706         * config/i386/i386.c (ix86_expand_vec_perm_const): Move code to ...
23707         (canonicalize_perm): ... new function.
23708         (expand_vec_perm_2vperm2f128_vshuf): New function.
23709         (ix86_expand_vec_perm_const_1): Call it.
23711 2012-05-14  Andrew Pinski  <apinski@cavium.com>
23712             H.J. Lu  <hongjiu.lu@intel.com>
23713             Jakub Jelinek  <jakub@redhat.com>
23715         PR target/53315
23716         * config/i386/i386.md (xbegin_1): Use + in constraint and match_dup.
23717         (xbegin): Updated.
23719 2012-05-14  Jakub Jelinek  <jakub@redhat.com>
23721         * dwarf2out.c (dwarf2out_define, dwarf2out_undef): Treat
23722         lineno 1 the same as lineno 0 before first start file directive.
23723         (optimize_macinfo_range): Likewise.
23725         * dwarf2out.c (have_macinfo): Define.
23726         (dwarf2out_finish): Don't emit DW_AT_GNU_macros or DW_AT_macro_info
23727         attribute, don't force empty compilation unit and don't emit any
23728         .debug_macinfo/.debug_macro section if macinfo_table is empty.
23730 2012-05-14  Georg-Johann Lay  <avr@gjlay.de>
23732         PR target/53344
23733         * config/avr/avr.c (avr_const_address_lo16): Remove.
23734         (avr_assemble_integer):  Print ".byte lo8(x)",
23735         ".byte hi8(x)", ".byte hh8(x)" instead of emit an assembler
23736         .warning if 3-byte address is assembled.
23737         * doc/extend.texi (AVR Named Address Spaces): Document that
23738         binutils 2.23 is needed to assemble 3-byte addresses.
23740 2012-05-14  Richard Guenther  <rguenther@suse.de>
23742         * tree-vect-data-refs.c (vect_setup_realignment): Remove
23743         call to mark_symbols_for_renaming.
23744         (vect_permute_load_chain): Likewise.
23745         * tree-vect-loop.c (vect_is_slp_reduction): Update stmt
23746         instead of calling mark_symbols_for_renaming.
23747         * tree-vect-stmts.c (read_vector_array): Remove call to
23748         mark_symbols_for_renaming.
23749         (write_vector_array): Likewise.
23750         (vectorizable_call): Likewise.
23751         (vectorizable_store): Likewise.
23752         (vectorizable_load): Likewise.
23753         * matrix-reorg.c (transform_allocation_sites): Likewise.
23754         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
23755         (create_expression_by_pieces): Likewise.
23757 2012-05-14  Richard Guenther  <rguenther@suse.de>
23759         * gimplify.c (gimple_regimplify_operands): Only mark the LHS
23760         of statements for renaming.
23761         (force_gimple_operand_1): Likewise, consistently for both
23762         calls to force_gimple_operand and force_gimple_operand_gsi.
23764 2012-05-14  Richard Guenther  <rguenther@suse.de>
23766         * tree-dfa.c (make_rename_temp): Be forgiving if not in SSA form.
23767         * omp-low.c (expand_omp_taskreg): Properly conditionalize call
23768         to update_ssa.
23769         (expand_omp_for): Likewise.
23770         (expand_omp_for_generic): Adjust conditional add to referenced vars.
23771         Use make_rename_temp for temporaries that should be rewritten into
23772         SSA form.
23773         (expand_omp_for_static_nochunk): Likewise.
23774         (expand_omp_atomic_pipeline): Likewise.
23776 2012-05-14  Richard Guenther  <rguenther@suse.de>
23778         PR tree-optimization/53331
23779         * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Ignore
23780         strided loads.
23781         * tree-vect-stmts.c (vect_model_load_cost): Handle strided loads.
23783 2012-05-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23785         PR 53063
23786         * doc/options.texi: (LangEnabledBy): Document it.
23787         * optc-gen.awk: Handle LangEnabledBy.
23788         * opth-gen.awk: Generate declaration for lang-specific functions.
23789         * opt-read.awk: Record lang numbers.
23790         * opt-functions.awk (flag_set_p): Ignore the arguments of flags.
23791         (lang_sanitized_name): New.
23793 2012-05-14  Bernd Schmidt  <bernds@codesourcery.com>
23795         * attribs.c (decl_attributes): Avoid emitting a warning if
23796         ATTR_FLAG_BUILT_IN.
23797         * doc/rtl.texi (CALL_INSN_FUNCTION_USAGE): Use lowercase for rtx
23798         codes.  Document meaning of sets inside CALL_INSN_FUNCTION_USAGE.
23799         * builtin-attrs.def (DEF_ATTR_FOR_STRING): Define.  Use it to
23800         define a string "1".
23801         (ATTR_RET1_NOTHROW_NONNULL_LEAF): New attr definition.
23802         * builtins.def (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET,
23803         BUILT_IN_STRCPY): Use it for these functions.
23804         * postreload.c (reload_combine): Deal with SETs inside
23805         CALL_INSN_FUNCTION_USAGE.
23806         * caller-save.c (setup_save_areas, save_call_clobbered_regs):
23807         Look for REG_RETURNED notes and use a cheap restore if possible.
23808         * ira-int.h (struct ira_allocno): New member cheap_calls_crossed_num.
23809         (ALLOCNO_CHEAP_CALLS_CROSSED_NUM): New macro.
23810         * ira-build.c (ira_create_allocno, create_cap_allocno,
23811         propagate_allocno_info, propagate_some_info_from_allocno,
23812         copy_info_to_removed_store_destination, ira_flattening): Handle it.
23813         * ira-lives.c (pseudo_regno_single_word_and_live_p,
23814         find_call_crossed_cheap_reg): New static functions.
23815         (process_bb_node_lives): Look for SETs in CALL_INSN_FUNCTION_USAGE,
23816         and set ALLOCNO_CHEAP_CALLS_CROSSED_NUM if possible.  Also make
23817         a REG_RETURNED note in that case.
23818         * ira.c (setup_reg_renumber): Change assert to allow cases where
23819         allocnos only cross calls for which they are cheap to restore.
23820         * ira-costs.c (ira_tune_allocno_costs): Compare
23821         ALLOCNO_CALLS_CROSSED_NUM to ALLOCNO_CHEAP_CALLS_CROSSED_NUM rather
23822         than 0.
23823         * reg-notes.def (REG_RETURNED): New note.
23824         * cse.c (cse_insn): Likewise.
23825         * sched-deps.c (sched_analyze_insn): Likewise.
23826         * expr.c (init_block_move_fn): Set a "fn spec" attribute.
23827         * calls.c (decl_return_flags): New static function.
23828         (expand_call): Generate a SET in CALL_INSN_FUNCTION_USAGE for
23829         functions that return one of their arguments.
23830         * regcprop.c (struct kill_set_value_data): New.
23831         (kill_set_value): Interpret data as a pointer to such a struct.
23832         Do nothing if the caller wants the register to be ignored.
23833         (copyprop_hardreg_forward_1): Handle SETs in CALL_INSN_FUNCTION_USAGE.
23835 2012-05-14  Richard Guenther  <rguenther@suse.de>
23837         PR tree-optimization/53340
23838         * tree-ssa-pre.c (op_valid_in_sets): Fix error in last commit.
23840 2012-05-14  Richard Guenther  <rguenther@suse.de>
23842         * gimplify.c (gimplify_expr): Remove odd code.
23844 2012-05-14  Eric Botcazou  <ebotcazou@adacore.com>
23846         * stor-layout.c (bit_from_pos): Distribute conversion to bitsizetype
23847         into a PLUS_EXPR byte offset.
23849         * tree-ssa-pre.c (can_value_number_call): Delete.
23850         (compute_avail): Skip all statements with side effects.
23851         <GIMPLE_CALL>: Skip calls to internal functions.
23853 2012-05-13  Steven Bosscher  <steven@gcc.gnu.org>
23855         * config/pa/pa.md: Use define_c_enum for "unspec" and "unspecv".
23857 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23859         * common.opt (Wtype-limits): Use EnabledBy.
23861 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
23863         * config/i386/i386.md (*pushtf): Enable for TARGET_SSE.
23864         (pushtf splitter): Ditto.
23865         (movtf): Ditto.
23866         (*movtf_internal): Ditto. Use V4SFmode for !TARGET_SSE2.
23867         (<code>tf2): Enable for TARGET_SSE.
23868         (*absnegtf2_sse): Ditto.
23869         (copysign<mode>3): Enable TFmode for TARGET_SSE.
23870         (copysign<mode>3_const): Ditto.
23871         (copysign<mode>3_var): Ditto.
23872         * config/i386/sse.md (<code>tf3): Enable for TARGET_SSE.
23873         (*andnottf3): Ditto.  Use V4SFmode for !TARGET_SSE2.
23874         (*<code>tf3): Ditto.
23875         * config/i386/i386.c (struct builtin_description bdesc_args)
23876         <IX86_BUILTIN_FABSQ>: Enable for TARGET_SSE.
23877         <IX86_BUILTIN_COPYSIGNQ>: Ditto.
23878         (ix86_expand_builtin) <IX86_BUILTIN_FABSQ, IX86_BUILTIN_COPYSIGNQ>:
23879         Emit a normal call if SSE isn't available.
23881 2012-05-13  Uros Bizjak  <ubizjak@gmail.com>
23883         * config/i386/sse.md (<sse>_andnot<mode>3): Handle
23884         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
23885         (<code><mode>3): Ditto.
23886         (*andnot<mode>3): Ditto.
23887         (*andnottf3): Ditto.
23888         (*<code><mode>3): Ditto.
23889         (<code>tf3): Ditto.
23891 2012-05-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23893         * optc-gen.awk: Error instead of warning for conflicting help.
23895 2012-05-12  Jason Merrill  <jason@redhat.com>
23897         PR debug/53235
23898         * dwarf2out.c (build_local_stub): Prefer DW_AT_signature for
23899         comdat types.
23901 2012-05-12  Eric Botcazou  <ebotcazou@adacore.com>
23903         * function.c (requires_stack_frame_p): If the function can throw
23904         non-call exceptions, return true if the insn can throw internally.
23906 2012-05-12  Paolo Carlini  <paolo.carlini@oracle.com>
23908         * doc/generic.texi: Rename TYPE_PTRMEM_P to TYPE_PTRDATAMEM_P.
23910 2012-05-12  Uros Bizjak  <ubizjak@gmail.com>
23912         * config/alpha/alpha.c (alpha_emit_conditional_branch): Handle
23913         ORDERED and UNORDERED conditions.
23915 2012-05-11  Richard Guenther  <rguenther@suse.de>
23917         * tree-flow.h (referenced_var_check_and_insert): Remove.
23918         (find_new_referenced_vars): Likewise.
23919         * tree-dfa.c (referenced_var_check_and_insert): Make static.
23920         (find_new_referenced_vars_1, find_new_referenced_vars): Remove.
23921         * tree-inline.c (copy_bb): Use find_referenced_vars_in
23922         instead of find_new_referenced_vars.
23923         * gimple-fold.c (gimplify_and_update_call_from_tree): Likewise.
23925 2012-05-11  Richard Guenther  <rguenther@suse.de>
23927         * tree-pass.h (pass_rest_of_compilation,
23928         pass_all_optimizations, pass_postreload, pass_all_early_optimizations):
23929         Remove.
23930         * passes.c (pass_all_optimizations, pass_postreload,
23931         pass_all_early_optimizations): Make static.
23932         (pass_rest_of_compilation): Likewise.  Make it an RTL_PASS.
23933         * tree-phinodes.c (init_phinodes, fini_phinodes): Remove.
23934         * tree-ssa.c (init_tree_ssa): Do not call init_phinodes.
23935         (delete_tree_ssa): Do not call fini_phinodes.
23936         * tree-flow.h (init_phinodes, fini_phinodes): Remove.
23938 2012-05-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
23940         PR 53063
23941         * doc/options.texi (EnabledBy): Document
23942         * opts.c: Include opts.h and options.h before tm.h.
23943         (finish_options): Do not handle some sub-options here...
23944         (common_handle_option): ... instead call common_handle_option_auto
23945         here.
23946         * optc-gen.awk: Handle EnabledBy.
23947         * opth-gen.awk: Declare common_handle_option_auto.
23948         * common.opt (Wuninitialized): Use EnabledBy. Delete Init.
23949         (Wmaybe-uninitialized): Likewise.
23950         (Wunused-but-set-variable): Likewise.
23951         (Wunused-function): Likewise.
23952         (Wunused-label): Likewise.
23953         (Wunused-value): Likewise.
23954         (Wunused-variable): Likewise.
23955         * opt-read.awk: Create opt_numbers array.
23957 2012-05-11  Richard Guenther  <rguenther@suse.de>
23959         PR tree-optimization/53295
23960         * tree-data-ref.h (stride_of_unit_type_p): Handle non-constant
23961         strides.
23962         * tree-data-ref.c (dr_analyze_innermost): Allow non-constant
23963         strides when analyzing data-references in a loop context.
23964         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Reject
23965         non-constant strides for now.
23966         (vect_enhance_data_refs_alignment): Ignore data references
23967         that are strided loads.
23968         (vect_analyze_data_ref_access): Handle non-constant strides.
23969         (vect_check_strided_load): Verify the data-reference is a load.
23970         (vect_analyze_data_refs): Restructure to make strided load
23971         support not dependent on gather support.
23972         * tree-vect-stmts.c (vectorizable_load): Avoid useless work
23973         when doing strided or gather loads.
23974         * tree-vect-loop-manip.c (vect_vfa_segment_size): Use
23975         integer_zerop to compare stride with zero.
23977 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
23979         * config/i386/driver-i386.c (host_detect_local_cpu): Support RTM.
23981 2012-05-11  Jan Hubicka  <jh@suse.cz>
23983         PR bootstrap/53300
23984         * varpool.c (varpool_assemble_decl): Also output constat pool entries
23985         that output_constant_pool missed.
23987 2012-05-11  Mingjie Xing  <mingjie.xing@gmail.com>
23989         * config/mips/t-vxworks: Change MUTLILIB_EXTRA_OPTS to
23990         MULTILIB_EXTRA_OPTS.
23992 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
23994         PR target/53291
23995         * config/i386/i386.md (xtest): Use NE condition in ix86_expand_setcc.
23997 2012-05-11  Uros Bizjak  <ubizjak@gmail.com>
23999         * config/i386/i386.md (*movti_internal_rex64): Avoid MOVAPS size
24000         optimization for TARGET_AVX.
24001         (*movti_internal_sse): Ditto.
24002         (*movdi_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
24003         (*movdi_internal): Ditto.
24004         (*movsi_internal): Ditto.
24005         (*movtf_internal): Avoid MOVAPS size optimization for TARGET_AVX.
24006         (*movdf_internal_rex64): Ditto.
24007         (*movfd_internal): Ditto.
24008         (*movsf_internal): Ditto.
24009         * config/i386/sse.md (mov<mode>): Handle TARGET_SSE_LOAD0_BY_PXOR.
24011 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
24013         * dwarf2out.c (add_byte_size_attribute) <RECORD_TYPE>: Handle variable
24014         reference as size attribute.
24016 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
24017             Tristan Gingold  <gingold@adacore.com>
24019         * doc/md.texi (Standard Names): Document probe_stack_address.
24020         * explow.c (emit_stack_probe): Handle probe_stack_address.
24021         * config/ia64/ia64.md (UNSPECV_PROBE_STACK_ADDRESS): New constant.
24022         (UNSPECV_PROBE_STACK_RANGE): Likewise.
24023         (probe_stack_address): New insn.
24024         (probe_stack_range): Likewise.
24025         * config/ia64/ia64.c: Include common/common-target.h.
24026         (ia64_compute_frame_size): Mark r2 and r3 as used if static stack
24027         checking is enabled.
24028         (ia64_emit_probe_stack_range): New function.
24029         (output_probe_stack_range): Likewise.
24030         (ia64_expand_prologue): Invoke ia64_emit_probe_stack_range if static
24031         builtin stack checking is enabled.
24032         (rtx_needs_barrier) <UNSPEC_VOLATILE>: Handle UNSPECV_PROBE_STACK_RANGE
24033         and UNSPECV_PROBE_STACK_ADDRESS.
24034         (unknown_for_bundling_p): New predicate.
24035         (group_barrier_needed): Use important_for_bundling_p.
24036         (ia64_dfa_new_cycle): Use unknown_for_bundling_p.
24037         (issue_nops_and_insn): Likewise.
24038         (bundling): Likewise.
24039         (final_emit_insn_group_barriers): Likewise.
24040         * config/ia64/ia64-protos.h (output_probe_stack_range): Declare.
24041         * config/ia64/hpux.h (STACK_CHECK_STATIC_BUILTIN): Define.
24042         (STACK_CHECK_PROTECT): Likewise.
24043         * config/ia64/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
24045 2012-05-10  Jan Hubicka  <jh@suse.cz>
24047         * ipa-inline.c (update_all_callee_keys): Remove.
24048         (inline_small_functions): Simplify priority updating.
24050 2012-05-10  Jan Hubicka  <jh@suse.cz>
24052         * ipa.c (symtab_remove_unreachable_nodes): Fix marking of clones.
24054 2012-05-10  Jan Hubicka  <jh@suse.cz>
24056         * cgraph.h (cgraph_remove_unreachable_nodes): Rename to ...
24057         (symtab_remove_unreachable_nodes): ... this one.
24058         * ipa-cp.c (ipcp_driver): Do not remove unreachable nodes.
24059         * cgraphunit.c (ipa_passes): Update.
24060         * cgraphclones.c (cgraph_materialize_all_clones): Update.
24061         * cgraph.c (cgraph_release_function_body): Only turn initial
24062         into error mark when initial was previously set.
24063         * ipa-inline.c (ipa_inline): Update.
24064         * ipa.c: Include ipa-inline.h
24065         (enqueue_cgraph_node, enqueue_varpool_node): Remove.
24066         (enqueue_node): New function.
24067         (process_references): Update.
24068         (symtab_remove_unreachable_nodes): Cleanup.
24069         * passes.c (execute_todo, execute_one_pass): Update.
24071 2012-05-10  Vladimir Makarov  <vmakarov@redhat.com>
24073         PR rtl-optimization/53125
24074         * ira.c (ira): Call find_moveable_pseudos and
24075         move_unallocated_pseudos if only ira_conflicts_p is true.
24077 2012-05-10  Uros Bizjak  <ubizjak@gmail.com>
24079         * config/i386/i386.md (*movoi_internal_avx): Handle
24080         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL and TARGET_SSE_TYPELESS_STORES.
24081         (*movti_internal_rex64): Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL.
24082         (*movti_internal_sse): Ditto.
24083         (*movtf_internal): Ditto.
24084         * config/i386/sse.md (ssePSmode): New mode attribute.
24085         (*move<mode>_internal): Use ssePSmode.
24086         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Ditto.
24087         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
24088         * config/i386/i386.c (standard_sse_constant_opcode): Do not handle
24089         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL here.
24091 2012-05-10  Eric Botcazou  <ebotcazou@adacore.com>
24093         * gimplify.c (gimplify_decl_expr): For a TYPE_DECL, also gimplify the
24094         DECL_ORIGINAL_TYPE if it is present.
24096 2012-05-10  Nick Clifton  <nickc@redhat.com>
24098         PR target/53120
24099         * config/m32c/bitops.md (bset_qi): Change operand 2 from having
24100         a "0" constraint to being a (match_dup 0).
24102 2012-05-10  Richard Guenther  <rguenther@suse.de>
24104         * stor-layout.c (byte_from_pos): Amend comment.
24106 2012-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24108         * doc/extend.texi (X86 Built-in Functions, __builtin_cpu_init):
24109         Document requirement to call in constructors.
24111         * config/i386/i386.c: Update comments for i386-cpuinfo.c name change.
24113 2012-05-10  Richard Guenther  <rguenther@suse.de>
24115         * tree.h (TYPE_IS_SIZETYPE): Remove.
24116         * fold-const.c (int_const_binop_1): Remove TYPE_IS_SIZETYPE use.
24117         (extract_muldiv_1): Likewise.
24118         * gimple.c (gtc_visit): Likewise.
24119         (gimple_types_compatible_p): Likewise.
24120         (iterative_hash_canonical_type): Likewise.
24121         (gimple_canonical_types_compatible_p): Likewise.
24122         * gimplify.c (gimplify_one_sizepos): Likewise.
24123         * print-tree.c (print_node): Likewise.
24124         * stor-layout.c (initialize_sizetypes): Do not set TYPE_IS_SIZETYPE.
24126 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
24128         PR target/52908
24129         * config/i386/sse.md (vec_widen_smult_hi_v4si): Expand using
24130         xop_pmacsdqh insn pattern instead of xop_mulv2div2di3_high.
24131         (vec_widen_smult_lo_v4si): Expand using xop_pmacsdql insn pattern
24132         instead of xop_mulv2div2di3_low.
24133         (xop_p<macs>dql): Fix vec_select selector.
24134         (xop_p<macs>dqh): Ditto.
24135         (xop_mulv2div2di3_low): Remove insn_and_split pattern.
24136         (xop_mulv2div2di3_high): Ditto.
24138 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24140         PR c++/53289
24141         * diagnostic.h (diagnostic_context): Add last_location.
24142         * diagnostic.c (diagnostic_initialize): Initialize it.
24143         (diagnostic_show_locus): Use it.
24145 2012-05-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24147         * doc/extend.texi (Function Attributes): Point xref to section
24148         about Pragmas.
24150 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
24152         * config/i386/i386.c (*movdf_internal_rex64): Remove
24153         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
24154         Calculate "mode" attribute according to
24155         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
24156         (*movdf_internal): Ditto.
24158 2012-05-09  Uros Bizjak  <ubizjak@gmail.com>
24160         PR target/44141
24161         * config/i386/i386.c (ix86_expand_vector_move_misalign): Do not handle
24162         128 bit vectors specially for TARGET_AVX.  Emit sse2_movupd and
24163         sse_movupd RTXes for TARGET_AVX, TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
24164         or when optimizing for size.
24165         * config/i386/sse.md (*mov<mode>_internal): Remove
24166         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL handling from asm output code.
24167         Calculate "mode" attribute according to optimize_function_for_size_p
24168         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flag.
24169         (*<sse>_movu<ssemodesuffix><avxsizesuffix>): Choose asm template
24170         depending on the mode of the instruction.  Calculate "mode" attribute
24171         according to optimize_function_for_size_p, TARGET_SSE_TYPELESS_STORES
24172         and TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL flags.
24173         (*<sse2>_movdqu<avxsizesuffix>): Ditto.
24175 2012-05-09  Georg-Johann Lay  <avr@gjlay.de>
24177         PR target/53256
24178         * config/avr/elf.h (ASM_DECLARE_FUNCTION_NAME): Remove.
24179         * config/avr/avr-protos.h (avr_asm_declare_function_name): Remove.
24180         * config/avr/avr.h (struct machine_function): Add attributes_checked_p.
24181         * config/avr/avr.c (avr_asm_declare_function_name): Remove.
24182         (expand_prologue): Move initialization of cfun->machine->is_naked,
24183         is_interrupt, is_signal, is_OS_task, is_OS_main from here to...
24184         (avr_set_current_function): ...this new static function.
24185         (TARGET_SET_CURRENT_FUNCTION): New define.
24186         (avr_function_ok_for_sibcall): Use cfun->machine->is_* instead of
24187         checking attributes of current_function_decl.
24188         (avr_regs_to_save): Ditto.
24189         (signal_function_p): Rename to avr_signal_function_p.
24190         (interrupt_function_p): Rename to avr_interrupt_function_p.
24192         * doc/extend.texi (Function Attributes): Better explanation of
24193         'interrupt' and 'signal' for AVR. Move 'ifunc' down to establish
24194         alphabetical order.
24196 2012-05-09  Michael Matz  <matz@suse.de>
24198         PR tree-optimization/53185
24199         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Disable
24200         peeling when we see strided loads.
24202 2012-05-09  Matthias Klose  <doko@ubuntu.com>
24204         * gcc-ar.c (main): Don't check for execute bits for the plugin.
24206 2012-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
24208         * tree-ssa-loop-ivopts.c (add_autoinc_candidates, get_address_cost):
24209         Replace use of HAVE_{POST/PRE}_{INCREMENT/DECREMENT} with
24210         USE_{LOAD/STORE}_{PRE/POST}_{INCREMENT/DECREMENT} appropriately.
24211         * config/arm/arm.h (ARM_AUTOINC_VALID_FOR_MODE_P): New.
24212         (USE_LOAD_POST_INCREMENT): Define.
24213         (USE_LOAD_PRE_INCREMENT): Define.
24214         (USE_LOAD_POST_DECREMENT): Define.
24215         (USE_LOAD_PRE_DECREMENT): Define.
24216         (USE_STORE_PRE_DECREMENT): Define.
24217         (USE_STORE_PRE_INCREMENT): Define.
24218         (USE_STORE_POST_DECREMENT): Define.
24219         (USE_STORE_POST_INCREMENT): Define.
24220         (arm_auto_incmodes): Add enumeration.
24221         * config/arm/arm-protos.h (arm_autoinc_modes_ok_p): Declare.
24222         * config/arm/arm.c (arm_autoinc_modes_ok_p): Define.
24224 2012-05-09  Jakub Jelinek  <jakub@redhat.com>
24226         PR tree-optimization/53226
24227         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Remove
24228         prev and prev_initialized vars, gimple_set_plf (stmt, GF_PLF_1, false)
24229         before processing it and gimple_set_plf (stmt, GF_PLF_1, true) if it
24230         doesn't need to be revisited, look for earliest stmt with
24231         !gimple_plf (stmt, GF_PLF_1) if something changed.
24233 2012-05-09  Terry Guo  <terry.guo@arm.com>
24235         * genmultilib: Update copyright dates.
24236         * doc/fragments.texi: Ditto.
24238 2012-05-09  Terry Guo  <terry.guo@arm.com>
24240         * Makefile.in (s-mlib): Add new argument MULTILIB_REQUIRED.
24241         * genmultilib (MULTILIB_REQUIRED): New.
24242         * doc/fragments.texi: Document the MULTILIB_REQUIRED.
24244 2012-05-09  Richard Guenther  <rguenther@suse.de>
24246         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
24247         (vect_do_peeling_for_loop_bound): Likewise.
24248         (vect_do_peeling_for_alignment): Likewise.
24249         * tree-vect-loop-manip.c (conservative_cost_threshold): Remove.
24250         (vect_do_peeling_for_loop_bound): Get check_profitability and
24251         threshold as parameters.
24252         (vect_do_peeling_for_alignment): Likewise.
24253         (vect_loop_versioning): Likewise.
24254         * tree-vect-loop.c (vect_transform_loop): Compute check_profitability
24255         and threshold here.  Control where to put the check here.
24257 2012-05-09  Richard Sandiford  <rdsandiford@googlemail.com>
24259         PR middle-end/53249
24260         * dwarf2out.h (get_address_mode): Move declaration to...
24261         * rtl.h: ...here.
24262         * dwarf2out.c (get_address_mode): Move definition to...
24263         * rtlanal.c: ...here.
24264         * var-tracking.c (get_address_mode): Delete.
24265         * combine.c (find_split_point): Use get_address_mode instead of
24266         targetm.addr_space.address_mode.
24267         * cselib.c (cselib_record_sets): Likewise.
24268         * dse.c (canon_address, record_store): Likewise.
24269         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
24270         * expr.c (move_by_pieces, emit_block_move_via_loop, store_by_pieces)
24271         (store_by_pieces_1, expand_assignment, store_expr, store_constructor)
24272         (expand_expr_real_1): Likewise.
24273         * ifcvt.c (noce_try_cmove_arith): Likewise.
24274         * optabs.c (maybe_legitimize_operand_same_code): Likewise.
24275         * reload.c (find_reloads): Likewise.
24276         * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
24277         * sel-sched-dump.c (debug_mem_addr_value): Likewise.
24279 2012-05-09  Maciej W. Rozycki  <macro@codesourcery.com>
24281         * config/mips/mips.c (mips16_gp_pseudo_reg): Remove line
24282         information from the instruction produced.
24284 2012-05-09  Richard Guenther  <rguenther@suse.de>
24286         * stor-layout.c (bit_from_pos): Document.
24287         (byte_from_pos): Likewise.  Optimize.
24288         (pos_from_bit): Likewise.
24289         (normalize_offset): Use pos_from_bit instead of replicating it.
24291 2012-05-09  Alan Modra  <amodra@gmail.com>
24293         PR target/53271
24294         * config/rs6000/rs6000.c (gen_frame_set): New function.
24295         (gen_frame_load, gen_frame_store): New functions.
24296         (rs6000_savres_rtx): Use the above.
24297         (rs6000_emit_epilogue, rs6000_emit_prologue): Here too.
24298         Correct mode used for CR2 in save/restore_world patterns.
24299         Don't emit instructions for eh_return frame unwind reg info.
24301 2012-05-08  Jan Hubicka  <jh@suse.cz>
24303         * cgraphbuild.c (build_cgraph_edges): Do not finalize vars
24304         with VALUE_EXPR.
24305         * cgraph.h (varpool_can_remove_if_no_refs): Vars with VALUE_EXPR
24306         are removable.
24307         * toplev.c (wrapup_global_declaration_2): Vars with VALUE_EXPR
24308         need to wrapup.
24309         (compile_file): Do not output variables.
24310         * cgraphbuild.c (varpool_finalize_decl): When var is finalized late,
24311         output it.
24312         * langhooks.c: Include timevar.h
24313         (write_global_declarations): Finalize compilation unit after wrapup;
24314         set timevars correctly.
24315         * passes.c (rest_of_decl_compilation): Decls with VALUE_EXPR needs
24316         not to be added to varpool.
24317         * varpool.c (varpool_assemble_decl): Sanity check that we are called
24318         only on cases where it makes sense; skip constant pool and value expr
24319         vars.
24321 2012-05-08  David S. Miller  <davem@davemloft.net>
24323         * config/sparc/linux.h (LINK_SPEC): Don't pass "-Y" option.
24324         * config/sparc/linux64.h (LINK_ARCH32_SPEC): Likewise.
24325         * config/sparc/linux64.h (LINK_ARCH64_SPEC): Likewise.
24327 2012-05-08  Richard Sandiford  <rdsandiford@googlemail.com>
24329         PR rtl-optimization/53278
24330         * lower-subreg.c (decompose_multiword_subregs): Remove left-over
24331         speed_p code from earlier patch.
24333 2012-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
24335         PR target/51244
24336         * config/sh/sh.md (*branch_true, *branch_false): New insns.
24338 2012-05-08  Teresa Johnson  <tejohnson@google.com>
24340         * gcov-io.h (__gcov_reset, __gcov_dump): Declare.
24341         * doc/gcov.texi: Add note on using __gcov_reset and __gcov_dump.
24343 2012-05-08  Jan Hubicka  <jh@suse.cz>
24345         * cgraph.c (cgraph_call_edge_duplication_hooks): Export.
24346         (cgraph_create_node_1): Rename to ...
24347         (cgraph_create_empty_node): ... this one; export.
24348         (cgraph_create_node): Update.
24349         (cgraph_set_call_stmt_including_clones): Move to cgraphclones.c
24350         (cgraph_create_edge_including_clones): Likewise.
24351         (cgraph_find_replacement_node): Likewise.
24352         (cgraph_clone_edge): Likewise.
24353         (cgraph_clone_node): Likewise.
24354         (clone_function_name): Likewise.
24355         (cgraph_create_virtual_clone): Likewise.
24356         (cgraph_remove_node_and_inline_clones): Likewise.
24357         (cgraph_redirect_edge_call_stmt_to_callee): Move here from cgraphunit.c
24358         * cgraph.h: Reorder declarations so they match file of origin.
24359         (cgraph_create_empty_node): Declare.
24360         * cgraphunit.c (update_call_expr): Move to cgraphclones.c
24361         (cgraph_copy_node_for_versioning): Likewise.
24362         (cgraph_function_versioning): Likewise.
24363         (cgraph_materialize_clone): Likewise.
24364         (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
24365         (cgraph_materialize_all_clones): Likewise.
24366         * cgraphclones.c: New file.
24367         * Makefile.in: Update for cgraphclones.
24369 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
24371         PR target/53176
24372         * config/i386/i386.c (ix86_set_reg_reg_cost): New function.
24373         (ix86_rtx_costs): Handle SET.
24375 2012-05-08  Michael Matz  <matz@suse.de>
24377         * basic-block.h (struct rtl_bb_info): Remove visited member and
24378         move head_ member to ...
24379         (struct basic_block_def.basic_block_il_dependent): ... the new
24380         member x, replacing but containing old member rtl.
24381         (enum bb_flags): New BB_VISITED flag.
24382         (BB_HEADER, BB_FOOTER): New macros.
24384         * jump.c (mark_all_labels): Adjust.
24385         * cfgcleanup.c (try_optimize_cfg): Adjust.
24386         * cfglayout.c (record_effective_endpoints): Adjust.
24387         (relink_block_chain): Ditto (and don't fiddle with visited).
24388         (fixup_reorder_chain): Adjust.
24389         (fixup_fallthru_exit_predecessor): Ditto.
24390         (cfg_layout_duplicate_bb): Ditto.
24391         * combine.c (update_cfg_for_uncondjump): Adjust.
24392         * bb-reorder.c (struct bbro_basic_block_data_def): Add visited member.
24393         (bb_visited_trace): New accessor.
24394         (mark_bb_visited): Move in front.
24395         (rotate_loop): Use bb_visited_trace.
24396         (find_traces_1_round): Ditto.
24397         (emit_barrier_after): Ditto.
24398         (copy_bb): Ditto, and initialize visited on resize.
24399         (reorder_basic_blocks): Initize visited member.
24400         (duplicate_computed_gotos): Clear bb flags at start, use
24401         BB_VISITED flags.
24403         * cfgrtl.c (try_redirect_by_replacing_jump): Adjust.
24404         (rtl_verify_flow_info_1): Ditto.
24405         (cfg_layout_split_block): Ditto.
24406         (cfg_layout_delete_block): Ditto.
24407         (cfg_layout_merge_blocks): Ditto.
24408         (init_rtl_bb_info): Adjust and initialize il.x.head_ member.
24410 2012-05-08  Hans-Peter Nilsson  <hp@axis.com>
24412         PR target/53272
24413         * config/cris/cris.c (cris_normal_notice_update_cc): For TARGET_V32,
24414         when a constant source operand matches an "I" constraint, the "no
24415         CC0 change" applies to a register-destination only, not a
24416         strict_low_part-destination.
24418 2012-05-08  Richard Guenther  <rguenther@suse.de>
24420         * fold-const.c (fold_binary_loc): Fold (X * CST1) & CST2
24421         to zero or to (X * CST1) & CST2' when CST1 has trailing zeros.
24423 2012-05-08  Georg-Johann Lay  <avr@gjlay.de>
24425         * Makefile.in (TEXI_GCC_FILES): Add avr-mmcu.texi.
24427         * doc/avr-mmcu.texi: New auto-generated file.
24428         * doc/invoke.texi (AVR Options): Include avr-mmcu.texi in order
24429         to document all valid -mmcu= arguments.
24431         * config/avr/avr.h (arch_info_s): New struct definition.
24432         * config/avr/avr-devices.c (avr_texinfo): New variable.
24433         * config/avr/gen-avr-mmcu-texi.c: New file.
24434         * config/avr/t-avr: New rules and dependencies to build avr-mmcu.texi.
24436 2012-05-08  Dehao Chen  <dehao@google.com>
24438         * predict.c (find_qualified_ssa_name): New.
24439         (find_ssa_name_in_expr): New.
24440         (find_ssa_name_in_assign_stmt): New.
24441         (is_comparison_with_loop_invariant_p): New.
24442         (is_bound_expr_similar): New.
24443         (predict_iv_comparison): New.
24444         (predict_loops): Add heuristic for loop-nested branches that compare an
24445         induction variable to a loop bound variable.
24446         * predict.def (PRED_LOOP_IV_COMPARE): New macro.
24448 2012-05-08  Uros Bizjak  <ubizjak@gmail.com>
24450         * config/i386/i386.c (has_dispatch): Use TARGET_BDVER1 and
24451         TARGET_BDVER2 defines where appropriate.
24453 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
24455         * configure.ac (PLUGIN_LD): Rename into...
24456         (PLUGIN_LD_SUFFIX): ...this and strip the target_alias triplet.
24457         * config.in: Regenerate.
24458         * configure: Likewise.
24459         * collect2.c (main): Set plugin_ld_suffix to PLUGIN_LD_SUFFIX.
24461 2012-05-07  Eric Botcazou  <ebotcazou@adacore.com>
24463         * tree-dfa.c (get_ref_base_and_extent) <ARRAY_REF>: Do the offset
24464         computation using the precision of the index type.
24465         * gimple-fold.c (fold_const_aggregate_ref_1) <ARRAY_REF>: Likewise.
24466         (fold_array_ctor_reference): Do index computations in the index type.
24468 2012-05-07  Georg-Johann Lay  <avr@gjlay.de>
24470         * config/avr/avr.c (avr_prologue_setup_frame): Fix mode passed
24471         down to plus_constant.
24472         (expand_epilogue): Ditto.
24474 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
24476         * postreload.c (reload_cse_regs): Make static.
24477         * reload.h (reload_cse_regs): Remove prototype.
24479 2012-05-07  Richard Henderson  <rth@redhat.com>
24481         * config/alpha/alpha.md (clear_cache): New pattern.
24483 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
24485         PR middle-end/53245
24486         * gimplify.c (preprocess_case_label_vec_for_gimple): If low or high
24487         is folded to a type boundary value, verify that the resulting case
24488         label is still a care range.
24490 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
24492         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf
24493         only for TARGET_GENERIC, when not optimizing for size.
24494         (*ffs<mode>_1): Ditto.
24496 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
24498         * tree-cfg.c (verify_gimple_switch): Tighten checks.
24500 2012-05-07  Jakub Jelinek  <jakub@redhat.com>
24502         PR tree-optimization/53239
24503         * tree-vrp.c (get_value_range): Set VR of SSA_NAME_IS_DEFAULT_DEF
24504         of DECL_BY_REFERENCE RESULT_DECL to nonnull.
24506 2012-05-07  Richard Guenther  <rguenther@suse.de>
24508         PR tree-optimization/53195
24509         * tree-inline.c (setup_one_parameter): Properly add referenced
24510         vars from the parameters new known value.
24512 2012-05-07  Steven Bosscher  <steven@gcc.gnu.org>
24514         * config/m68k/m68k.c (m68k_sched_branch_type): Remove.
24515         (sched_branch_type): Remove.
24516         (m68k_sched_md_init_global): Don't allocate it.
24517         (m68k_sched_md_finish_global): Don't free it.
24518         * config/m68k/m68k.h (m68k_sched_branch_type): Remove prototype.
24519         * config/m68k/m68k.md: Set the type of insns using
24520         m68k_sched_branch_type to bcc directly.
24522 2012-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24524         * config/sol2.c (solaris_override_options): New function.
24525         * config/sol2-protos.h (solaris_override_options): Declare.
24526         * config/sol2.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
24528 2012-05-07  Richard Guenther  <rguenther@suse.de>
24530         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Return
24531         whether we failed to compute data dependences.
24532         (loop_prefetch_arrays): Fail if we failed.
24534 2012-05-07  Uros Bizjak  <ubizjak@gmail.com>
24535             Paolo Bonzini  <bonzini@gnu.org>
24537         * config/i386/i386.md (ctz<mode>2): Emit rep;bsf even for !TARGET_BMI.
24538         Emit bsf when optimizing for size.
24539         (*ffs<mode>_1): Ditto.
24541 2012-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
24543         PR target/53250
24544         * config/sh/sh.c (sh_rtx_costs): Handle SET.
24546 2012-05-06  Uros Bizjak  <ubizjak@gmail.com>
24548         PR target/53227
24549         * config/i386/i386.md (swap<mode>): Rename from *swap<mode>.
24550         (bswapdi2): Split from bswap<mode>2.  Use nonnimediate_operand
24551         predicate for operand 1.  Force operand 1 to register for TARGET_BSWAP.
24552         (bswapsi2): Ditto.
24553         (*bswapdi2_doubleword): New insn pattern.
24554         (*bswap<mode>2): Rename from *bswap<mode>2_1.
24556 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
24558         * config/mips/mips.c (mips_set_reg_reg_piece_cost): New function.
24559         (mips_set_reg_reg_cost): Likewise.
24560         (mips_rtx_costs): Handle SET.
24562 2012-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
24564         * lower-subreg.c (shift_cost): Use set_src_cost, avoiding the SET.
24565         (compute_costs): Likewise for the zero extension.  Use set_rtx_cost
24566         to compute the cost of moves.  Set the mode of the target register.
24568 2012-05-05  Richard Sandiford  <rdsandiford@googlemail.com>
24570         * rtl.h (plus_constant, plus_constant_mode): Merge into a single
24571         plus_constant function.
24572         * explow.c (plus_constant, plus_constant_mode): Likewise.  Assert
24573         that the mode is sensible.
24574         (use_anchored_address, round_push, allocate_dynamic_stack_space)
24575         (probe_stack_range, anti_adjust_stack_and_probe): Update calls to
24576         plus_constant.
24578         * alias.c (canon_rtx): Likewise.
24579         (init_alias_analysis): Likewise.
24580         * builtins.c (expand_builtin_return_addr)
24581         (expand_builtin_setjmp_setup, expand_builtin_longjmp)
24582         (expand_builtin_nonlocal_goto, expand_builtin_update_setjmp_buf)
24583         (expand_builtin_apply_args_1, expand_builtin_apply, expand_movstr)
24584         (expand_builtin_stpcpy): Likewise.
24585         * calls.c (save_fixed_argument_area, restore_fixed_argument_area)
24586         (compute_argument_addresses, internal_arg_pointer_based_exp)
24587         (expand_call, emit_library_call_value_1): Likewise.
24588         * cfgexpand.c (expand_one_stack_var_at, expand_debug_expr): Likewise.
24589         * combine-stack-adj.c (try_apply_stack_adjustment): Likewise.
24590         * combine.c (combine_simplify_rtx, force_to_mode): Likewise.
24591         * cse.c (insert_const_anchor, find_reg_offset_for_const)
24592         (use_related_value, fold_rtx): Likewise.
24593         * cselib.c (cselib_subst_to_values): Likewise.
24594         * dse.c (record_store, check_mem_read_rtx): Likewise.
24595         * dwarf2out.c (rtl_for_decl_location, gen_variable_die): Likewise.
24596         * emit-rtl.c (adjust_address_1): Likewise.
24597         * except.c (sjlj_emit_function_enter)
24598         (expand_builtin_extract_return_addr)
24599         (expand_builtin_frob_return_addr): Likewise.
24600         * expmed.c (expand_divmod): Likewise.
24601         * expr.c (move_by_pieces, store_by_pieces, store_by_pieces_1)
24602         (emit_move_resolve_push, push_block, emit_push_insn, store_expr)
24603         (expand_expr_addr_expr_1, expand_expr_real_1): Likewise.
24604         * function.c (assign_stack_local_1)
24605         (instantiate_virtual_regs_in_rtx): Likewise.
24606         * optabs.c (prepare_cmp_insn): Likewise.
24607         * recog.c (offsettable_address_addr_space_p): Likewise.
24608         * reload.c (find_reloads_address, form_sum)
24609         (find_reloads_subreg_address): Likewise.
24610         * reload1.c (init_reload, eliminate_regs_1)
24611         (eliminate_regs_in_insn): Likewise.
24612         * simplify-rtx.c (simplify_unary_operation_1)
24613         (simplify_binary_operation_1, simplify_plus_minus): Likewise.
24614         * var-tracking.c (compute_cfa_pointer, prepare_call_arguments)
24615         (vt_add_function_parameter): Likewise.
24617         * config/alpha/alpha.h (EH_RETURN_HANDLER_RTX): Likewise.
24618         * config/alpha/vms.h (EH_RETURN_HANDLER_RTX): Likewise.
24619         * config/alpha/alpha.c (alpha_legitimize_address_1)
24620         (get_unaligned_address, alpha_expand_unaligned_load)
24621         (alpha_expand_unaligned_store, alpha_expand_unaligned_load_words)
24622         (alpha_expand_unaligned_store_words, alpha_expand_block_clear)
24623         (alpha_expand_builtin_establish_vms_condition_handler)
24624         (alpha_setup_incoming_varargs, emit_frame_store_1)
24625         (alpha_expand_prologue, alpha_expand_epilogue)
24626         (alpha_use_linkage): Likewise.
24627         * config/alpha/alpha.md: Likewise.
24629         * config/arm/arm.c (arm_trampoline_init, legitimize_pic_address)
24630         (arm_load_pic_register, arm_pic_static_addr, arm_legitimize_address)
24631         (thumb_legitimize_address, arm_gen_load_multiple_1)
24632         (arm_gen_store_multiple_1, arm_gen_multiple_op, gen_ldm_seq)
24633         (gen_stm_seq, gen_const_stm_seq, arm_block_move_unaligned_straight)
24634         (arm_block_move_unaligned_loop, arm_gen_movmemqi, arm_reload_in_hi)
24635         (arm_reload_out_hi, arm_reorg, vfp_emit_fstmd, emit_multi_reg_push)
24636         (emit_sfm, thumb_set_frame_pointer, arm_expand_prologue)
24637         (thumb1_emit_multi_reg_push, thumb1_expand_prologue)
24638         (thumb_expand_movmemqi, arm_set_return_address)
24639         (thumb_set_return_address): Likewise.
24640         * config/arm/arm.md: Likewise.
24642         * config/avr/avr.c (avr_incoming_return_addr_rtx)
24643         (avr_prologue_setup_frame, expand_epilogue)
24644         (avr_const_address_lo16): Likewise.
24646         * config/bfin/bfin.h (EH_RETURN_HANDLER_RTX): Likewise.
24647         * config/bfin/bfin.c (setup_incoming_varargs, bfin_load_pic_reg)
24648         (bfin_expand_prologue, bfin_trampoline_init, bfin_expand_call)
24649         (bfin_output_mi_thunk): Likewise.
24651         * config/c6x/c6x.c (c6x_initialize_trampoline)
24652         (c6x_output_mi_thunk): Likewise.
24654         * config/cr16/cr16.h (EH_RETURN_HANDLER_RTX): Likewise.
24655         * config/cr16/cr16.c (cr16_create_dwarf_for_multi_push): Likewise.
24657         * config/cris/cris.c (cris_return_addr_rtx, cris_split_movdx)
24658         (cris_expand_prologue, cris_expand_epilogue, cris_gen_movem_load)
24659         (cris_emit_movem_store, cris_trampoline_init): Likewise.
24660         * config/cris/cris.md: Likewise.
24662         * config/darwin.c (machopic_indirect_data_reference)
24663         (machopic_legitimize_pic_address): Likewise.
24665         * config/epiphany/epiphany.c (epiphany_emit_save_restore)
24666         (epiphany_expand_prologue, epiphany_expand_epilogue)
24667         (epiphany_trampoline_init): Likewise.
24668         * config/epiphany/epiphany.md: Likewise.
24670         * config/fr30/fr30.c (fr30_move_double): Likewise.
24672         * config/frv/frv.c (frv_dwarf_store, frv_expand_prologue)
24673         (frv_expand_block_move, frv_expand_block_clear, frv_return_addr_rtx)
24674         (frv_index_memory, unspec_got_name, frv_find_base_term)
24675         (frv_output_dwarf_dtprel): Likewise.
24677         * config/h8300/h8300.c (h8300_push_pop, h8300_return_addr_rtx)
24678         (h8300_swap_into_er6, h8300_swap_out_of_er6): Likewise.
24680         * config/i386/i386.h (RETURN_ADDR_RTX): Likewise.
24681         * config/i386/i386.c (setup_incoming_varargs_64)
24682         (setup_incoming_varargs_ms_64, choose_baseaddr)
24683         (ix86_emit_save_reg_using_mov, ix86_adjust_stack_and_probe)
24684         (ix86_emit_probe_stack_range, ix86_expand_prologue)
24685         (ix86_emit_restore_reg_using_pop, ix86_emit_leave)
24686         (ix86_expand_epilogue, legitimize_pic_address, ix86_legitimize_address)
24687         (ix86_split_long_move, ix86_expand_movmem, ix86_expand_setmem)
24688         (ix86_static_chain, ix86_trampoline_init, x86_this_parameter)
24689         (x86_output_mi_thunk): Likewise.
24690         * config/i386/i386.md: Likewise.
24692         * config/ia64/ia64.c (ia64_expand_load_address)
24693         (ia64_expand_tls_address, ia64_expand_move, ia64_split_tmode)
24694         (do_spill, ia64_trampoline_init): Likewise.
24696         * config/iq2000/iq2000.c (iq2000_va_start)
24697         (iq2000_emit_frame_related_store, iq2000_expand_prologue)
24698         (iq2000_expand_eh_return, iq2000_setup_incoming_varargs)
24699         (iq2000_print_operand, iq2000_legitimize_address): Likewise.
24701         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
24703         * config/m32c/m32c.c (m32c_return_addr_rtx)
24704         (m32c_expand_insv): Likewise.
24706         * config/m32r/m32r.c (m32r_setup_incoming_varargs)
24707         (m32r_legitimize_pic_address, m32r_print_operand)
24708         (m32r_print_operand_address): Likewise.
24710         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
24711         * config/m68k/m68k.h (RETURN_ADDR_RTX): Likewise.
24712         (EH_RETURN_HANDLER_RTX): Likewise.
24713         * config/m68k/m68k.c (m68k_emit_movem, m68k_expand_prologue)
24714         (m68k_expand_epilogue, legitimize_pic_address)
24715         (m68k_output_mi_thunk): Likewise.
24716         * config/m68k/m68k.md: Likewise.
24718         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
24719         (mcore_expand_epilog): Likewise.
24720         * config/mcore/mcore.md: Likewise.
24722         * config/mep/mep.c (mep_allocate_initial_value)
24723         (mep_expand_prologue, mep_expand_epilogue): Likewise.
24725         * config/microblaze/microblaze.c (double_memory_operand)
24726         (microblaze_block_move_loop): Likewise.
24728         * config/mips/mips.c (mips_strip_unspec_address, mips_add_offset)
24729         (mips_setup_incoming_varargs, mips_va_start, mips_block_move_loop)
24730         (mips_print_operand, mips16e_save_restore_reg, mips_save_restore_reg)
24731         (mips_expand_prologue, mips_epilogue_set_cfa)
24732         (mips_expand_epilogue): Likewise.
24733         * config/mips/mips.md: Likewise.
24735         * config/mmix/mmix.c (mmix_dynamic_chain_address, mmix_return_addr_rtx)
24736         (mmix_expand_prologue, mmix_expand_epilogue): Likewise.
24738         * config/mn10300/mn10300.c (mn10300_gen_multiple_store)
24739         (mn10300_builtin_saveregs, mn10300_trampoline_init): Likewise.
24741         * config/moxie/moxie.h (INCOMING_RETURN_ADDR_RTX): Likewise.
24742         (EH_RETURN_HANDLER_RTX): Likewise.
24743         * config/moxie/moxie.c (moxie_static_chain): Likewise.
24745         * config/pa/pa.c (legitimize_pic_address, hppa_legitimize_address)
24746         (store_reg, set_reg_plus_d, pa_expand_prologue, load_reg)
24747         (pa_return_addr_rtx, hppa_builtin_saveregs)
24748         (pa_trampoline_init): Likewise.
24749         * config/pa/pa.md: Likewise.
24751         * config/pdp11/pdp11.c (pdp11_expand_epilogue): Likewise.
24753         * config/picochip/picochip.c (picochip_static_chain): Likewise.
24755         * config/rs6000/rs6000.h (RS6000_SAVE_TOC): Likewise.
24756         * config/rs6000/rs6000.c (rs6000_legitimize_address)
24757         (setup_incoming_varargs, print_operand, rs6000_return_addr)
24758         (rs6000_emit_eh_reg_restore, rs6000_emit_probe_stack_range)
24759         (rs6000_emit_epilogue)
24760         (rs6000_machopic_legitimize_pic_address): Likewise.
24762         * config/rx/rx.c (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
24764         * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Likewise.
24765         (DYNAMIC_CHAIN_ADDRESS): Likewise.
24766         * config/s390/s390.c (s390_decompose_address, legitimize_pic_address)
24767         (s390_delegitimize_address, print_operand, annotate_constant_pool_refs)
24768         (replace_constant_pool_ref, s390_return_addr_rtx, s390_back_chain_rtx)
24769         (save_fpr, restore_fpr, save_gprs, restore_gprs, s390_emit_prologue)
24770         (s390_emit_epilogue, s390_function_profiler): Likewise.
24771         * config/s390/s390.md: Likewise.
24773         * config/score/score.c (score_add_offset, score_prologue): Likewise.
24775         * config/sh/sh.c (expand_block_move, push_regs, sh_builtin_saveregs)
24776         (sh_output_mi_thunk): Likewise.
24777         * config/sh/sh.md: Likewise.
24779         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS, FRAME_ADDR_RTX)
24780         (RETURN_ADDR_RTX, INCOMING_RETURN_ADDR_RTX): Likewise.
24781         * config/sparc/sparc.c (sparc_legitimize_pic_address)
24782         (sparc_emit_probe_stack_range, emit_save_or_restore_regs)
24783         (emit_window_save, sparc_flat_expand_prologue, sparc_struct_value_rtx)
24784         (emit_and_preserve): Likewise.
24785         * config/sparc/sparc.md: Likewise.
24787         * config/spu/spu.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
24788         * config/spu/spu.c (spu_expand_insv, spu_machine_dependent_reorg)
24789         (spu_setup_incoming_varargs, ea_load_store_inline)
24790         (spu_expand_load): Likewise.
24792         * config/stormy16/stormy16.c (xstormy16_expand_prologue)
24793         (combine_bnp): Likewise.
24795         * config/tilegx/tilegx.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
24796         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs)
24797         (tilegx_expand_unaligned_load, tilegx_trampoline_init): Likewise.
24799         * config/tilepro/tilepro.h (DYNAMIC_CHAIN_ADDRESS): Likewise.
24800         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs)
24801         (tilepro_expand_unaligned_load, tilepro_trampoline_init): Likewise.
24803         * config/v850/v850.c (expand_prologue, expand_epilogue): Likewise.
24804         * config/v850/v850.md: Likewise.
24806         * config/vax/elf.h (EH_RETURN_STACKADJ_RTX): Likewise.
24807         (EH_RETURN_HANDLER_RTX): Likewise.
24808         * config/vax/vax.h (DYNAMIC_CHAIN_ADDRESS, RETURN_ADDR_RTX): Likewise.
24809         * config/vax/vax.c (vax_add_reg_cfa_offset, vax_expand_prologue)
24810         (print_operand_address, vax_trampoline_init): Likewise.
24812         * config/xtensa/xtensa.c (xtensa_expand_prologue, xtensa_return_addr)
24813         (xtensa_function_value_regno_p): Likewise.
24815 2012-05-04  Andrew Pinski  <apinski@cavium.com>
24817         * expr.c (get_def_for_expr_class): New function.
24818         (convert_tree_comp_to_rtx): New function.
24819         (expand_cond_expr_using_cmove): New function.
24820         (expand_expr_real_2 <case COND_EXPR>): Call
24821         expand_cond_expr_using_cmove first and return if it succeeds.
24822         Remove the check for HAVE_conditional_move since we should have
24823         already converted it to a conditional move.
24824         * config/i386/i386.c (ix86_expand_int_movcc): Disallow comparison
24825         modes of DImode for 32bits and TImode.
24827 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
24829         PR other/29442
24830         * read-md.c (fprint_md_ptr_loc, fprint_c_condition): New functions.
24831         (print_md_ptr_loc, print_c_condition): Use them.
24832         * read-md.h (fprint_md_ptr_loc, fprint_c_condition): New prototypes.
24833         * genattrtab.c (attr_file_name, dfa_file_name, latency_file_name,
24834         attr_file, dfa_file, latency_file): New global variables.
24835         (write_attr_valueq, write_attr_set, write_attr_case, write_attr_value,
24836         write_upcase, write_indent, write_length_unit_log, write_test_expr,
24837         write_attr_get, write_insn_cases, write_eligible_delay,
24838         write_const_num_delay_slots): Accept FILE pointer and toss it around.
24839         Update all callers.
24840         (write_header, open_outfile, handle_arg): New funcions.
24841         (make_automaton_attrs): Write prototypes as extern to the output
24842         files.
24843         (main): Use init_rtx_reader_args_cb with handle_arg to take 3 file
24844         names from the command line.  Open the output files and write out
24845         internal functions for DFA functions to dfa_file_name, insn latency
24846         functions to latency_file_name, and everything else to attr_file.
24847         * Makefile.in (OBJS): Add insn-dfatab.o and insn-latencytab.o.
24848         (BACKEND): Build libbackend first.
24849         (MOSTLYCLEANFILES): Add insn-dfatab.c and insn-latencytab.c.
24850         (.PRECIOUS): Likewise.
24851         (insn-dfatab.o): New rule.
24852         (insn-latencytab.o): New rule.
24853         (simple_rtl_generated_c): Do not include insn-attrtab.c.
24854         (s-attrtab): New rule.
24856 2012-05-04  Steven Bosscher  <steven@gcc.gnu.org>
24858         * rtl.def (ATTR_FLAG): Remove probability indicating flags.
24859         * genattr.c (main): Remove ATTR_FLAG_likely, ATTR_FLAG_unlikely,
24860         ATTR_FLAG_very_likely, and ATTR_FLAG_very_unlikely.
24861         * reorg.c (get_jump_flags): Do not set the removed flags.
24863         * doc/md.texi (attr_flag): Update for abovementioned changes.
24865 2012-05-04  Uros Bizjak  <ubizjak@gmail.com>
24867         PR target/53228
24868         * config/i386/i386.h (X86_ARCH_CMOV): Rename from X86_ARCH_CMOVE.
24869         (TARGET_CMOV): Rename from TARGET_CMOVE.
24870         (TARGET_CMOVE): New define.
24871         * config/i386/i386.c (ix86_option_override_internal): Use TARGET_CMOV.
24872         Do not set TARGET_CMOVE here.
24874 2012-05-04  Dodji Seketeli  <dodji@redhat.com>
24876         Enable -Wunused-local-typedefs when -Wall or -Wunused is on
24877         * opts.c (finish_options): Activate -Wunused-local-typedefs if
24878         -Wunused is activated.
24879         * doc/invoke.texi: Update blurb of -Wunused-local-typedefs.
24881 2012-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24883         * config/s390/s390.md (*movmem_short, *clrmem_short)
24884         (*cmpmem_short): Move the mode check from the insn condition to
24885         the match_scratch.
24887 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
24889         PR tree-optimization/52633
24890         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Swap order of
24891         vect_recog_widen_shift_pattern and vect_recog_over_widening_pattern.
24892         (vect_recog_over_widening_pattern): Remove handling of code that was
24893         already detected as over-widening pattern.  Remove special handling
24894         of "unsigned" cases.  Instead, support general case of conversion
24895         of the shift result to another type.
24897 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
24899         * tree-vect-patterns.c (vect_single_imm_use): New function.
24900         (vect_recog_widen_mult_pattern): Use it instead of open-coding loop.
24901         (vect_recog_over_widening_pattern): Likewise.
24902         (vect_recog_widen_shift_pattern): Likewise.
24904 2012-05-04  Ulrich Weigand  <ulrich.weigand@linaro.org>
24906         * tree-vect-patterns.c (vect_same_loop_or_bb_p): New function.
24907         (vect_handle_widen_op_by_const): Use it instead of open-coding test.
24908         (vect_recog_widen_mult_pattern): Likewise.
24909         (vect_operation_fits_smaller_type): Likewise.
24910         (vect_recog_over_widening_pattern): Likewise.
24911         (vect_recog_widen_shift_pattern): Add to vect_same_loop_or_bb_p test.
24913 2012-05-04  Richard Guenther  <rguenther@suse.de>
24915         PR lto/50602
24916         * lto-wrapper.c (merge_and_complain): Complain about mismatches
24917         of -freg-struct-return and -fpcc-struct-return.
24918         (run_gcc): Pass through -freg-struct-return and -fpcc-struct-return
24919         from the input file options and ignore those from the link
24920         command line.
24922 2012-05-04  Richard Guenther  <rguenther@suse.de>
24924         PR tree-optimization/53168
24925         * tree-ssa-pre.c (phi_translate_1): Only handle type-punned
24926         memory reads when the result is a constant we can pun.
24928 2012-05-04  Richard Guenther  <rguenther@suse.de>
24930         * common.opt (flto-report): Do not mark as Optimization.
24932 2012-05-04  Eric Botcazou  <ebotcazou@adacore.com>
24934         PR target/48496
24935         * recog.c (constrain_operands): If extra constraints are present, also
24936         accept pseudo-registers with equivalent memory locations during reload.
24938 2012-05-04  Olivier Hainque  <hainque@adacore.com>
24940         * collect2.c (may_unlink_output_file): New global.
24941         (maybe_unlink): Honor it.
24942         * collect2.h: Add extern for it.
24943         * tlink.c (do_tlink): Set it to true if the link succeeded.
24945 2012-05-04  Olivier Hainque  <hainque@adacore.com>
24947         * gcc.c (eval_spec_function): Finalize/restore the current string
24948         obstack state as part of the context push/pop operations.
24950 2012-05-04  Bin Cheng  <bin.cheng@arm.com>
24952         PR rtl-optimization/52804
24953         * reload1.c (reload_reg_reaches_end_p): Check whether successor
24954         reload with type RELOAD_FOR_INPUT_ADDRESS kills reload register
24955         of current one with type RELOAD_FOR_INPADDR_ADDRESS.
24956         Same stands for reloads with type RELOAD_FOR_OUTPUT_ADDRESS and
24957         RELOAD_FOR_OUTADDR_ADDRESS.
24959 2012-05-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24961         PR c++/24985
24962         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Show caret
24963         for macro expansion.
24965 2012-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
24967         * flags.h (flag_permissive): Do not declare.
24968         * diagnostic.c (diagnostic_report_diagnostic): Handle fpermissive
24969         option specially.
24970         * toplev.c (flag_permissive): Do not define.
24971         * c-tree.h (system_header_p): Delete unused.
24973 2012-05-03  David S. Miller  <davem@davemloft.net>
24975         PR target/52684
24976         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If we pass a
24977         MEM directly into a libcall, mark it's MEM_EXPR as addressable.
24978         (sparc_emit_float_lib_cmp): Likewise.
24980 2012-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
24982         PR target/53199
24983         * config/rs6000/rs6000.md (bswapdi splitters): If
24984         -mavoid-indexed-addresses (or -mcpu=power6 which sets it by
24985         default) is used, generate an alternate sequence that does not
24986         depend on using indexed addressing.
24988 2012-05-03  Jason Merrill  <jason@redhat.com>
24990         * gengtype.c (write_types): Fix warning message.
24991         (write_local): Likewise.
24993 2012-05-02  Jason Merrill  <jason@redhat.com>
24995         * dwarf2out.c (struct external_ref, build_local_stub): New.
24996         (hash_external_ref, external_ref_eq, lookup_external_ref): New.
24997         (optimize_external_refs, optimize_external_refs_1): New.
24998         (change_AT_die_ref): New.
24999         (clone_as_declaration): Add DW_AT_signature when cloning a declaration.
25000         (build_abbrev_table): Take the external refs hashtable.
25001         (output_comp_unit): Get it from optimize_external_refs and pass it in.
25003 2012-05-03  Jan Hubicka  <jh@suse.cz>
25005         PR middle-end/53093
25006         * tree-emutls.c (new_emutls_decl): Fix handling of aliases.
25008 2012-05-03  Jan Hubicka  <jh@suse.cz>
25010         PR middle-end/53106
25011         * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones.
25013 2012-05-03  Jason Merrill  <jason@redhat.com>
25015         * dwarf2out.c (die_struct): Add comdat_type_p flag.  Use it instead of
25016         use_debug_types to discriminate the die_id union.
25017         (print_die, assign_symbol_names, copy_decls_walk): Likewise.
25018         (build_abbrev_table, output_die): Likewise.
25019         (prune_unused_types_walk_attribs): Likewise.
25020         (generate_type_signature, copy_declaration_context): Set it.
25021         (remove_child_or_replace_with_skeleton): Set it.
25022         (dwarf2out_start_source_file, dwarf2out_end_source_file): Don't
25023         check use_debug_types.
25024         (dwarf2out_finish): Do break_out_includes after .debug_types.
25026 2012-05-03  Jason Merrill  <jason@redhat.com>
25028         * dwarf2out.c (modified_type_die): Use scope_die_for.
25029         (gen_type_die_with_usage, dwarf2out_finish): Likewise.
25030         (uses_local_type_r, uses_local_type): New.
25031         (scope_die_for): Keep a type that uses a local type in local scope.
25032         Use get_context_die for namespace and type scope.
25034 2012-05-03  Jason Merrill  <jason@redhat.com>
25036         * config/i386/i386.c (ix86_code_end): Set DECL_IGNORED_P on the
25037         pc thunk.
25038         * dwarf2out.c (output_aranges): Skip DECL_IGNORED_P functions.
25039         (dwarf2out_finish): Likewise.
25041 2012-05-03  Martin Jambor  <mjambor@suse.cz>
25043         * builtins.c (get_object_alignment_1): Return whether we can determine
25044         the alignment or conservatively assume byte alignment.  Return the
25045         alignment by reference.  Use get_pointer_alignment_1 for dereference
25046         alignment.
25047         (get_pointer_alignment_1): Return whether we can determine the
25048         alignment or conservatively assume byte alignment.  Return the
25049         alignment by reference.  Use get_ptr_info_alignment to get SSA name
25050         alignment.
25051         (get_object_alignment): Update call to get_object_alignment_1.
25052         (get_object_or_type_alignment): Likewise, fall back to type alignment
25053         only when it returned false.
25054         (get_pointer_alignment): Update call to get_pointer_alignment_1.
25055         * fold-const.c (get_pointer_modulus_and_residue): Update call to
25056         get_object_alignment_1.
25057         * ipa-prop.c (ipa_modify_call_arguments): Update call to
25058         get_pointer_alignment_1.
25059         * tree-sra.c (build_ref_for_offset): Likewise, fall back to the type
25060         of MEM_REF or TARGET_MEM_REF only when it returns false.
25061         * tree-ssa-ccp.c (get_value_from_alignment): Update call to
25062         get_object_alignment_1.
25063         (ccp_finalize): Use set_ptr_info_alignment.
25064         * tree.h (get_object_alignment_1): Update declaration.
25065         (get_pointer_alignment_1): Likewise.
25066         * gimple-pretty-print.c (dump_gimple_phi): Use get_ptr_info_alignment.
25067         (dump_gimple_stmt): Likewise.
25068         * tree-flow.h (ptr_info_def): Updated comments of fields align and
25069         misalign.
25070         (get_ptr_info_alignment): Declared.
25071         (mark_ptr_info_alignment_unknown): Likewise.
25072         (set_ptr_info_alignment): Likewise.
25073         (adjust_ptr_info_misalignment): Likewise.
25074         * tree-ssa-address.c (copy_ref_info): Use new access functions to get
25075         and set alignment of SSA names.
25076         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Call
25077         mark_ptr_info_alignment_unknown.
25078         * tree-ssanames.c (get_ptr_info_alignment): New function.
25079         (mark_ptr_info_alignment_unknown): Likewise.
25080         (set_ptr_info_alignment): Likewise.
25081         (adjust_ptr_info_misalignment): Likewise.
25082         (get_ptr_info): Call mark_ptr_info_alignment_unknown.
25083         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25084         Likewise.
25085         (bump_vector_ptr): Likewise.
25086         * tree-vect-stmts.c (create_array_ref): Use set_ptr_info_alignment.
25087         (vectorizable_store): Likewise.
25088         (vectorizable_load): Likewise.
25090 2012-05-03  Michael Matz  <matz@suse.de>
25092         * basic-block.h (struct rtl_bb_info, struct gimple_bb_info): Move
25093         in front of basic_block_def.
25094         (struct basic_block_def): Make il.gimple the full struct, not a
25095         pointer.
25096         (__assert_gimple_bb_smaller_rtl_bb): Asserting typedef.
25098         * cfgexpand.c (expand_gimple_basic_block): Clear all il.gimple members.
25099         * gimple-iterator.c (gimple_stmt_iterator): Don't special case
25100         NULL il.gimple, which can't happen anymore.
25101         * gimple.h (bb_seq): il.gimple can't be NULL.
25102         (bb_seq_add): Ditto.
25103         (set_bb_seq): Adjust.
25104         (gsi_start_bb, gsi_last_bb): Tidy.
25105         * lto-streamer-in.c (make_new_block): Don't zero members that
25106         are zeroed already, don't allocate a gimple_bb_info.
25107         * tree-cfg.c (create_bb): Don't allocate a gimple_bb_info.
25108         (remove_bb): Clear all il.gimple members.
25109         (gimple_verify_flow_info): Adjust for flat il.gimple.
25110         * tree-flow-inline.h (phi_nodes, phi_nodes_ptr, set_phi_nodes): Adjust.
25112         * coretypes.h (const_gimple_seq): Remove typedef.
25113         * gimple.h (gimple_seq_first): Take gimple_seq.
25114         (gimple_seq_first_stmt): Ditto.
25115         (gimple_seq_last): Ditto.
25116         (gimple_seq_last_stmt): Ditto.
25117         (gimple_seq_empty_p): Ditto.
25119 2012-05-03  Richard Guenther  <rguenther@suse.de>
25121         * tree-ssa-pre.c (valid_in_sets): Remove checking of trapping
25122         operations.
25123         (prune_clobbered_mems): Do it here.  Do not uselessly sort expressions.
25124         (compute_avail): Do not add possibly trapping operations to
25125         EXP_GEN if they might not be executed in the block.
25127 2012-05-03  Uros Bizjak  <ubizjak@gmail.com>
25129         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Remove.
25131 2012-05-03  Steven Bosscher  <steven@gcc.gnu.org>
25133         * tree-switch-conversion.c (gen_inbound_check): Free post-dominance
25134         information as early as possible.  Update dominance info instead of
25135         discarding it.
25137 2012-05-03  Richard Guenther  <rguenther@suse.de>
25139         * tree-ssa-pre.c (debug_bitmap_sets_for): New function.
25140         (union_contains_value): Remove.
25141         (vro_valid_in_sets): Likewise.
25142         (op_valid_in_sets): New function.
25143         (valid_in_sets): Use op_valid_in_sets.
25144         (insert_into_preds_of_block): Move dumping ...
25145         (do_regular_insertion): ... here.
25146         (do_partial_partial_insertion): ... and here.  Dump that
25147         we've found a partial partial redundancy.
25148         (insert): Dump the current insert iteration.
25150 2012-05-03  Jakub Jelinek  <jakub@redhat.com>
25152         PR plugins/53126
25153         * gcc-ar.c (main): If GCC_EXEC_PREFIX is set in env,
25154         append program name to it and pass that as first argument
25155         to make_relative_prefix.  Always pass standard_libexec_prefix
25156         as last argument to make_relative_prefix.  If
25157         make_relative_prefix returns NULL, fall back to
25158         standard_libexec_prefix.
25160         PR debug/53174
25161         * tree-predcom.c (remove_stmt): Call reset_debug_uses on stmts being
25162         removed.
25164         PR target/53187
25165         * config/arm/arm.c (arm_select_cc_mode): If x has MODE_CC class
25166         mode, return that mode.
25168         PR target/53194
25169         * config/i386/i386-c.c (ix86_target_macros_internal): Don't
25170         define __ATOMIC_HLE_* macros here.
25171         (ix86_target_macros): But here, using cpp_define_formatted.
25173 2012-05-03  Richard Guenther  <rguenther@suse.de>
25175         PR tree-optimization/53144
25176         * tree-ssa-sccvn.c (vn_reference_lookup_or_insert_constant_for_pieces):
25177         Rename to ...
25178         (vn_reference_lookup_or_insert_for_pieces): ... this.  Properly deal
25179         with SSA name values.
25180         (vn_reference_lookup_3): Adjust callers.
25182 2012-05-03  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
25184         * config/i386/driver-i386.c (host_detect_local_cpu): Reset
25185         has_fma4 for AMD processors with both fma3 and fma4 support.
25187 2012-05-03  Kirill Yukhin  <kirill.yukhin@intel.com>
25189         PR target/53201
25190         * config/i386/driver-i386.c (host_detect_local_cpu): Add space to
25191         "-mno-hle".
25193 2012-05-03  Michael Matz  <matz@suse.de>
25195         PR bootstrap/53197
25196         * tree-ssa-dse.c (dse_optimize_stmt): Take pointer to iterator.
25197         (dse_enter_block): Properly iterate the whole sequence even
25198         if the last statement was removed.
25200 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
25202         * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): For pic code,
25203         unset flag_jump_tables.
25204         * stmt.c (expand_case): Remove special flag_pic case conditional
25205         on ASM_OUTPUT_ADDR_DIFF_ELT not being defined.
25207 2012-05-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
25209         * common/config/s390/s390-common.c (s390_option_optimization_table):
25210         Enable -fsched-pressure using -fsched-pressure-algorithm=model by
25211         default when optimizing.
25213 2012-05-02  Martin Jambor  <mjambor@suse.cz>
25215         PR lto/52605
25216         * dwarf2out.c (dwarf2out_decl): Only lookup die representing context
25217         of a variable when the contect is a function.
25219 2012-05-02  Michael Matz  <matz@suse.de>
25221         * coretypes.h (gimple_seq, const_gimple_seq): Typedef as gimple.
25222         * gimple.h (struct gimple_seq_node_d, struct gimple_seq_d): Remove.
25223         (const_gimple_seq_node): Remove.
25224         (gimple_seq_node): Typedef as gimple.
25225         (struct gimple_statement_base): Add next and prev members,
25226         adjust all WORD markers in using structs.
25227         (union gimple_statement_d): Link via gsbase.next field for GC and PCH.
25228         (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
25229         gimple_seq_last_stmt): Adjust as gimple_seq, gimple_seq_node and
25230         gimple are the same.
25231         (gimple_seq_set_last, gimple_seq_set_first): Don't allocate
25232         gimple_seq, adjust.
25233         (gimple_init_singleton): New function.
25234         (gsi_start_1, gsi_last_1, gsi_end_p, gsi_one_before_end_p): Adjust.
25235         (gsi_next, gsi_prev): Adjust, handle prev cyclic list correctly.
25236         (gsi_stmt): Adjust.
25237         (gsi_stmt_ptr): Remove.
25238         (enum gimple_alloc_kind): Remove gimple_alloc_kind_seq member.
25240         * gimple-iterator.c (update_bb_for_stmts): Take last parameter
25241         again, adjust for above changes.
25242         (update_call_edge_frequencies): Adjust for above changes.
25243         (gsi_insert_seq_nodes_before): Rewrite for new data structure.
25244         (gsi_insert_seq_nodes_after): Ditto.
25245         (gsi_split_seq_after): Ditto.
25246         (gsi_set_stmt): Ditto.
25247         (gsi_split_seq_before): Ditto.
25248         (gsi_remove): Ditto.
25249         (gsi_insert_seq_before_without_update): Don't free sequence.
25250         (gsi_insert_seq_after_without_update): Ditto.
25251         (gsi_replace): Assert some more invariants.
25252         (gsi_insert_before_without_update, gsi_insert_after_without_update):
25253         Tidy.
25254         (gsi_for_stmt): Don't search for stmt.
25255         (gsi_insert_on_edge_immediate): Tidy.
25257         * gimple.c (gimple_alloc_k): Remove "sequences".
25258         (gimple_seq_cache): Remove.
25259         (gimple_alloc_stat): Make stmt a singleton sequence.
25260         (gimple_seq_alloc, gimple_seq_free): Remove.
25261         (gimple_assign_set_rhs_with_ops_1): Ensure new stmt is a singleton.
25262         (gimple_copy): Ditto.
25263         * gimplify.c (gimplify_cleanup_point_expr): Use gsi_set_stmt,
25264         create iterator from correct sequence.
25265         * tree-phinodes.c (make_phi_node): Make stmt a singleton.
25267 2012-05-02  Michael Matz  <matz@suse.de>
25269         * gimple.h (gimple_stmt_iterator <seq>): Make it be pointer to
25270         gimple_seq.
25271         (gimple_seq_set_last, gimple_seq_set_first): Take pointer to
25272         sequence, lazily allocate it.
25273         (bb_seq_addr): New function.
25274         (gsi_start_1): Rename from gsi_start, but take pointer to sequence.
25275         (gsi_start): Macro to wrap gsi_start_1 taking pointer of argument.
25276         (gsi_none): New function.
25277         (gsi_start_bb): Adjust.
25278         (gsi_last_1): Rename from gsi_last, but take pointer to sequence.
25279         (gsi_last): Macro to wrap gsi_last_1 taking pointer of argument.
25280         (gsi_last_bb): Adjust.
25281         (gsi_seq): Adjust.
25282         * tree-flow-inline.h (phi_nodes_ptr): New function.
25284         * gimple-iterator.c (gsi_insert_seq_nodes_before): Adjust to
25285         datastructure and interface change.
25286         (gsi_insert_seq_before_without_update): Ditto.
25287         (gsi_insert_seq_nodes_after): Ditto.
25288         (gsi_insert_seq_after_without_update): Ditto.
25289         (gsi_split_seq_after): Ditto, don't use gimple_seq_alloc.
25290         (gsi_split_seq_before): Ditto.
25291         (gsi_start_phis): Adjust.
25292         * tree-vect-loop.c (vect_determine_vectorization_factor): Use gsi_none.
25293         (vect_transform_loop): Ditto.
25294         * gimple.c (gimple_seq_add_stmt, gimple_seq_add_seq,
25295         gimple_seq_copy): Don't use gimple_seq_alloc.
25296         * gimplify.c (gimple_seq_add_stmt_without_update): Ditto.
25297         (gimplify_seq_add_seq): Ditto.
25298         * lto-streamer-in.c (make_new_block): Ditto.
25299         * tree-cfg.c (create_bb): Ditto.
25300         * tree-sra.c (initialize_parameter_reductions): Ditto.
25302 2012-05-02  Michael Matz  <matz@suse.de>
25304         * gimple.h (gimple_seq_first, gimple_seq_first_stmt, gimple_seq_last,
25305         gimple_seq_last_stmt, gimple_seq_set_last, gimple_seq_set_first,
25306         gimple_seq_empty_p, gimple_seq_alloc_with_stmt, bb_seq,
25307         set_bb_seq): Move down to after gimple_statement_d definition.
25309 2012-05-02  Michael Matz  <matz@suse.de>
25311         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
25312         gsi_replace_with_seq, instead of inserting itself.
25313         * gimple-iterator.c (gsi_replace_with_seq): New function.
25314         * tree-ssa-forwprop.c (forward_propagate_comparison): Take
25315         iterator instead of statement, advance it.
25316         (ssa_forward_propagate_and_combine): Adjust call to above.
25318 2012-05-02  Michael Matz  <matz@suse.de>
25320         * tree-phinodes.c (add_phi_node_to_bb): Tidy, don't use
25321         gimple_seq_alloc.
25322         * omp-low.c (finalize_task_copyfn): Don't use gimple_seq_alloc.
25323         * tree-nested.c (walk_gimple_omp_for): Ditto.
25324         * trans-mem.c (lower_transaction): Ditto.
25325         * tree-eh.c (do_return_redirection): Ditto.
25326         (do_goto_redirection): Ditto.
25327         (lower_try_finally_switch): Ditto.
25328         * gimplify.c (gimplify_stmt): Ditto.
25329         (gimplify_scan_omp_clauses): Ditto.
25330         (gimplify_omp_for): Ditto.
25331         (gimplify_function_tree): Ditto.
25332         * gimple-fold.c (gimplify_and_update_call_from_tree): Ditto.
25333         * tree-mudflap.c (mf_decl_cache_locals): Ditto.
25334         (mf_build_check_statement_for): Ditto.
25335         (mx_register_decls): Ditto.
25336         * graphite-sese-to-poly.c (remove_invariant_phi): Ditto,
25337         and don't use itertors to append.
25338         (insert_stmts): Ditto.
25339         (insert_out_of_ssa_copy): Ditto.
25340         (insert_out_of_ssa_copy_on_edge): Ditto.
25342 2012-05-02  Michael Matz  <matz@suse.de>
25344         * gimple.h (gimple_bind_body_ptr): New function.
25345         (gimple_bind_body): Use it.
25346         (gimple_catch_handler): Use gimple_catch_handler_ptr.
25347         (gimple_eh_filter_failure_ptr): New function.
25348         (gimple_eh_filter_failure): Use it.
25349         (gimple_eh_else_n_body_ptr): New function.
25350         (gimple_eh_else_n_body): Use it.
25351         (gimple_eh_else_e_body_ptr): New function.
25352         (gimple_eh_else_e_body): Use it.
25353         (gimple_try_eval_ptr): New function.
25354         (gimple_try_eval): Use it.
25355         (gimple_try_cleanup_ptr): New function.
25356         (gimple_try_cleanup): Use it.
25357         (gimple_wce_cleanup_ptr): New function.
25358         (gimple_wce_cleanup): Use it.
25359         (gimple_omp_body_ptr): New function.
25360         (gimple_omp_body): Use it.
25361         (gimple_omp_for_pre_body_ptr): New function.
25362         (gimple_omp_for_pre_body): Use it.
25363         (gimple_transaction_body_ptr): New function.
25364         (gimple_transaction_body): Use it.
25365         (gsi_split_seq_before): Adjust to return nothing and take pointer
25366         to sequence.
25367         (gsi_set_stmt): Declare.
25368         (gsi_replace_with_seq): Declare.
25369         (walk_gimple_seq_mod): Declare.
25370         * function.h (struct function <gimple_body>): Use typedef gimple_seq.
25372         * gimple-iterator.c (gsi_set_stmt): New function.
25373         (gsi_split_seq_before): Return new sequence via pointer argument.
25374         (gsi_replace): Use gsi_set_stmt.
25376         * tree-ssa-loop-im.c (move_computations_stmt): First remove
25377         then insert stmt.
25378         * tree-complex.c (update_complex_components_on_edge): Don't copy gsi.
25379         * tree-phinodes.c (resize_phi_node): Don't resize stmt in-place,
25380         return new stmt.
25381         (reserve_phi_args_for_new_edge): Change call to above,
25382         use gsi_set_stmt.
25384         * omp-low.c (lower_omp): Change prototype to take pointer to sequence.
25385         (lower_rec_input_clauses): Use gimple_seq_add_seq instead of
25386         iterators.  Adjust call to lower_omp.
25387         (lower_lastprivate_clauses): Adjust call to lower_omp.
25388         (lower_reduction_clauses): Ditto.
25389         (expand_omp_taskreg): Nullify non-cfg body of child_fn.
25390         (lower_omp_sections): Don't explicitely count sequence length,
25391         nullify lowered bodies earlier, ensure stmts are part of only
25392         one sequence, adjust call to lower_omp.
25393         (lower_omp_single): Ensure stmts are part of only one sequence,
25394         adjust call to lower_omp.
25395         (lower_omp_master): Ditto.
25396         (lower_omp_ordered): Ditto.
25397         (lower_omp_critical): Ditto.
25398         (lower_omp_for): Ditto.
25399         (lower_omp_taskreg): Ditto, tidy.
25400         (lower_omp_1): Adjust calls to lower_omp.
25401         (execute_lower_omp): Ditto.
25402         (lower_omp): Adjust to take pointer to sequence.
25403         (diagnose_sb_2): Use walk_gimple_seq_mod.
25404         (diagnose_omp_structured_block_errors): Ditto and set possibly
25405         changed function body.
25406         * gimple-low.c (lower_function_body): Set function body after
25407         it stabilizes.
25408         (lower_sequence): Adjust to take pointer to sequence.
25409         (lower_omp_directive): Ensure stmt isn't put twice into the
25410         sequence, adjust call to lower_sequence.
25411         (lower_stmt): Adjust calls to lower_sequence.
25412         (lower_gimple_bind): Ditto.
25413         (gimple_try_catch_may_fallthru): Call gsi_start with lvalue.
25414         * tree-nested.c (walk_body): Take pointer to sequence, use
25415         walk_gimple_seq_mod.
25416         (walk_function): Adjust call to walk_body, set possibly changed body.
25417         (walk_gimple_omp_for): Adjust calls to walk_body.
25418         (convert_nonlocal_omp_clauses): Ditto.
25419         (convert_nonlocal_reference_stmt): Ditto.
25420         (convert_local_omp_clauses): Ditto.
25421         (convert_local_reference_stmt): Ditto.
25422         (convert_tramp_reference_stmt): Ditto.
25423         (convert_gimple_call): Ditto.
25424         (convert_nl_goto_reference): Use local iterator copy.
25425         * gimple.c (walk_gimple_seq_mod): Renamed from walk_gimple_seq,
25426         but taking pointer to sequence, ensure gsi_start is called with
25427         callers lvalue.
25428         (walk_gimple_seq): New wrapper around walk_gimple_seq_mod,
25429         asserting that the sequence head didn't change.
25430         (walk_gimple_stmt): Replace all calls to walk_gimple_seq with
25431         walk_gimple_seq_mod.
25432         * trans-mem.c (lower_transaction): Use walk_gimple_seq_mod.
25433         (execute_lower_tm): Ditto, and set possibly changed body.
25434         * tree-eh.c (lower_eh_constructs_1): Take pointer to sequence,
25435         call gsi_start with that lvalue.
25436         (replace_goto_queue_stmt_list): Ditto.
25437         (replace_goto_queue_1): Adjust calls to replace_goto_queue_stmt_list.
25438         (replace_goto_queue): Ditto.
25439         (lower_try_finally_nofallthru): Adjust calls to lower_eh_constructs_1.
25440         (lower_try_finally_onedest): Ditto.
25441         (lower_try_finally_copy): Ditto.
25442         (lower_try_finally_switch): Ditto.
25443         (lower_try_finally): Ditto.
25444         (lower_eh_filter): Ditto.
25445         (lower_eh_must_not_throw): Ditto.
25446         (lower_cleanup): Ditto.
25447         (lower_eh_constructs_2): Ditto.
25448         (lower_catch): Ditto, and ensure gsi_start is called with lvalue.
25449         (lower_eh_constructs): Adjust calls to lower_eh_constructs_1, and
25450         set possibly changed body.
25451         (optimize_double_finally): Call gsi_start with lvalue.
25453         * tree-cfg.c (make_blocks): Adjust call to gsi_split_seq_before.
25454         (gimple_split_block): Ditto.
25455         (gimple_merge_blocks): Use gsi_start_phis.
25456         (move_stmt_r): Use walk_gimple_seq_mod.
25457         * tree-ssa-dse.c (dse_enter_block): Use gsi_last_bb.
25458         * cgraphbuild.c (build_cgraph_edges): Use gsi_start_phis.
25459         (rebuild_cgraph_edges): Ditto.
25460         (cgraph_rebuild_references): Ditto.
25461         * ipa-prop.c (ipa_analyze_params_uses): Ditto.
25462         * tree-inline.c (copy_phis_for_bb): Ditto.
25463         * tree-ssa-dce.c: Ditto.
25465         * cgraphunit.c (cgraph_analyze_function): Use gimple_has_body_p.
25467 2012-05-02  Kirill Yukhin  <kirill.yukhin@intel.com>
25468             Andi Kleen  <ak@linux.intel.com>
25470         * coretypes.h (MEMMODEL_MASK): New.
25471         * builtins.c (get_memmodel): Add val. Call target.memmodel_check
25472         and return new variable.
25473         (expand_builtin_atomic_exchange):  Mask memmodel values.
25474         (expand_builtin_atomic_compare_exchange): Ditto.
25475         (expand_builtin_atomic_load): Ditto.
25476         (expand_builtin_atomic_store): Ditto.
25477         (expand_builtin_atomic_clear): Ditto.
25478         * doc/extend.texi: Mention port-dependent memory model flags.
25479         * config/i386/cpuid.h (bit_HLE): New.
25480         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25481         HLE support.
25482         * config/i386/i386-protos.h (ix86_generate_hle_prefix): New.
25483         * config/i386/i386-c.c (ix86_target_macros_internal): Set HLE defines.
25484         (ix86_target_string)<-mhle>: New.
25485         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
25486         * config/i386/i386.c (ix86_target_string) <OPTION_MASK_ISA_HLE>: New.
25487         (ix86_valid_target_attribute_inner_p) <OPT_mhle>: Ditto.
25488         (ix86_option_override_internal) <PTA_HLE>: New switch, set it
25489         enabled for generic, generic64 and core-avx2.
25490         (ix86_print_operand): Generate HLE lock prefixes.
25491         (ix86_memmodel_check): New.
25492         (TARGET_MEMMODEL_CHECK): Ditto.
25493         * config/i386/i386.h (OPTION_ISA_HLE): Ditto.
25494         (IX86_HLE_ACQUIRE): Ditto.
25495         (IX86_HLE_RELEASE): Ditto.
25496         * config/i386/i386.h (ix86_generate_hle_prefix): Ditto.
25497         * config/i386/i386.opt (mhle): Ditto.
25498         * config/i386/sync.md(atomic_compare_and_swap<mode>): Pass
25499         success model to instruction emitter.
25500         (atomic_fetch_add<mode>): Ditto.
25501         (atomic_exchange<mode>): Ditto.
25502         (atomic_add<mode>): Ditto.
25503         (atomic_sub<mode>): Ditto.
25504         (atomic_<code><mode>): Ditto.
25505         (*atomic_compare_and_swap_doubledi_pic): Ditto.
25506         (atomic_compare_and_swap_single<mode>): Define and use argument
25507         for success model.
25508         (atomic_compare_and_swap_double<mode>): Ditto.
25509         * configure.ac: Check if assembler support HLE prefixes.
25510         * configure: Regenerate.
25511         * config.in: Ditto.
25513 2012-05-02  Steven Bosscher  <steven@gcc.gnu.org>
25515         PR middle-end/53153
25516         * gimplify.c (preprocess_case_label_vec_for_gimple): New function,
25517         split out from ...
25518         (gimplify_switch_expr): ... here.
25519         * gimple.h (preprocess_case_label_vec_for_gimple): Add prototype.
25520         * tree-ssa-forwprop.c (simplify_gimple_switch_label_vec): New function
25521         to clean up case labels with values outside the index type range.
25522         (simplify_gimple_switch): Call it if something changed.
25523         Remove strange and unnecessary assert.
25525 2012-05-02  Richard Guenther  <rguenther@suse.de>
25527         * fold-const.c (div_if_zero_remainder): sizetypes no longer
25528         sign-extend.
25529         (int_const_binop_1): New worker for int_const_binop with
25530         overflowable parameter.  Pass it through to force_fit_type_double.
25531         (int_const_binop): Wrap around int_const_binop_1 with overflowable
25532         equal to one.
25533         (size_binop_loc): Call int_const_binop_1 with overflowable equal
25534         to minus one, forcing overflow detection for even unsigned types.
25535         (extract_muldiv_1): Remove bogus TYPE_IS_SIZETYPE special-casing.
25536         (fold_binary_loc): Call try_move_mult_to_index with signed offset.
25537         * stor-layout.c (initialize_sizetypes): sizetypes no longer
25538         sign-extend.
25539         (layout_type): For zero-sized arrays ignore overflow on the
25540         size calculations.
25541         * tree-ssa-ccp.c (bit_value_unop_1): Likewise.
25542         (bit_value_binop_1): Likewise.
25543         * tree.c (double_int_to_tree): Likewise.
25544         (double_int_fits_to_tree_p): Likewise.
25545         (force_fit_type_double): Likewise.
25546         (host_integerp): Likewise.
25547         (int_fits_type_p): Likewise.
25548         * varasm.c (output_constructor_regular_field): Sign-extend the
25549         field-offset to cater for negative offsets produced by the Ada
25550         frontend.
25551         * omp-low.c (extract_omp_for_data): Convert the loop step to
25552         signed for pointer adjustments.
25554 2012-05-02  Richard Guenther  <rguenther@suse.de>
25556         * tree.c (valid_constant_size_p): New function.
25557         * tree.h (valid_constant_size_p): Declare.
25558         * cfgexpand.c (expand_one_var): Adjust check for too large
25559         variables by using valid_constant_size_p.
25560         * varasm.c (assemble_variable): Likewise.
25562         * c-decl.c (grokdeclarator): Properly check for sizes that
25563         cover more than half of the address-space.
25565 2012-05-02  Jakub Jelinek  <jakub@redhat.com>
25567         PR tree-optimization/53163
25568         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Don't ignore
25569         return value from compute_all_dependences.
25571         PR rtl-optimization/53160
25572         * ree.c (combine_reaching_defs): Handle the case where cand->insn
25573         has been modified by ree pass already.
25575 2012-05-01  Ian Lance Taylor  <iant@google.com>
25577         PR c/37303
25578         * c-decl.c (build_compound_literal): Make the decl readonly if it
25579         an array of a readonly type.
25580         * gimplify.c (gimplify_compound_literal_expr): Add fallback
25581         parameter.  Change all callers.  If the decl is not addressable
25582         and is not an l-value, make it readonly.
25584 2012-05-01  Bernd Schmidt  <bernds@codesourcery.com>
25586         * ira.c (allocated_reg_info_size): New static variable.
25587         (expand_reg_info): Manage it. Call
25588         setup_preferred_alternate_classes_for_new_pseudos.
25589         (ira): Don't do it here.  Remove local allocated_reg_info_size,
25590         set the global before calling find_moveable_pseudos.
25591         (find_moveable_pseudos): Call expand_reg_info rather than
25592         resize_reg_info.
25594 2012-05-01  Richard Henderson  <rth@redhat.com>
25596         * common.opt (fsync-libcalls): New.
25597         * doc/invoke.texi: Document it.
25598         * optabs.c (init_sync_libfuncs): Honor it.
25600 2012-05-01  Kenneth Zadeck  <zadeck@naturalbridge.com>
25601             Richard Sandiford  <r.sandiford@uk.ibm.com>
25603         PR rtl-optimization/52543
25604         * Makefile.in (lower-subreg.o, target-globals.o): Depend on
25605         lower-subreg.h.
25606         * lower-subreg.h: New file.
25607         * target-globals.h (this_target_lower_subreg): Declare.
25608         (target_globals): Add lower_subreg;
25609         (restore_target_globals): Restore this_target_lower_subreg.
25610         * target-globals.c: Include it.
25611         (default_target_globals): Add default_target_lower_subreg.
25612         (save_target_globals): Initialize target_lower_subreg.
25613         * rtl.h (init_lower_subreg): Added declaration.
25614         * toplev.c (backend_init_target): Call initializer for lower-subreg
25615         pass.
25616         * lower-subreg.c (LOG_COSTS, FORCE_LOWERING): New macros.
25617         (default_target_lower_subreg): New variable.
25618         (this_target_lower_subreg): Likewise.
25619         (twice_word_mode, choices): New macros.
25620         (shift_cost, compute_splitting_shift, compute_costs)
25621         (init_lower_subreg): New functions.
25622         (resolve_simple_move): Add speed_p argument.  Check choices.
25623         (find_pseudo_copy): Don't check the mode size here.
25624         (resolve_simple_move): Assert the mode size.
25625         (find_decomposable_shift_zext): Add speed_p argument and return
25626         a bool.  Check choices.
25627         (resolve_shift_zext): Add comment.
25628         (dump_shift_choices, dump_choices): New functions.
25629         (decompose_multiword_subregs): Dump list of profitable
25630         transformations.  Add code to skip non profitable transformations.
25631         Update calls to simple_move and find_decomposable_shift_zext.
25633 2012-05-01  Ian Bolton  <ian.bolton@arm.com>
25634             Sameera Deshpande  <sameera.deshpande@arm.com>
25635             Greta Yorsh  <greta.yorsh@arm.com>
25637         * config/arm/arm-protos.h (thumb_unexpanded_epilogue): Rename to...
25638         (thumb1_unexpanded_epilogue): ...this.
25639         * config/arm/arm.c (thumb_unexpanded_epilogue): Rename to...
25640         (thumb1_unexpanded_epilogue): ...this.
25641         * config/arm/arm.md (thumb_unexpanded_epilogue): Rename to...
25642         (thumb1_unexpanded_epilogue): ...this.
25644 2012-05-01  Richard Earnshaw  <rearnsha@arm.com>
25646         * arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_DEFAULT): Avoid ifdef
25647         comparing enumeration values.  Update comments.
25649 2012-05-01  Alan Modra  <amodra@gmail.com>
25651         PR target/53038
25652         * config/rs6000/rs6000.c (load_lr_save, restore_saved_lr,
25653         load_cr_save, add_crlr_cfa_restore): New functions.
25654         (rs6000_restore_saved_cr): Rename to..
25655         (restore_saved_cr): ..this.  Add cfa_restore notes for cr.
25656         (rs6000_emit_epilogue): Use new functions.  Adjust condition
25657         for emitting lr and cr cfa_restore.  Emit cfa_restores for fp
25658         regs when using out-of-line restore only when shrink wrapping.
25660 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
25662         PR middle-end/53136
25663         * ipa-prop.c (ipa_print_node_jump_functions): Wrap multiple
25664         calls to cgraph_node_name in xstrdup.
25665         (ipa_make_edge_direct_to_target): Ditto.
25666         * cgraph.c (dump_cgraph_node): Ditto.
25667         * tree-sra.c (convert_callers_for_node): Ditto.
25668         * lto-symtab.c (lto_cgraph_replace_node): Ditto.
25669         * ipa-cp.c (perhaps_add_new_callers): Ditto.
25670         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Ditto.
25671         (cgraph_materialize_all_clones): Ditto.
25672         * ipa-inline.c (report_inline_failed_reason): Ditto.
25673         (want_early_inline_function_p): Ditto.
25674         (edge_badness): Ditto.
25675         (update_edge_key): Ditto.
25676         (flatten_function): Ditto.
25677         (ipa_inline): Ditto.
25678         (inline_always_inline_functions): Ditto.
25679         (early_inline_small_functions): Ditto.
25681 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
25683         PR target/53141
25684         * config/i386/i386.md (*umul<mode><dwi>3_1): Switch places of
25685         constraints 0 and 1.
25687 012-04-30  Jan Hubicka  <jh@suse.cz>
25689         * cgraph.c (ld_plugin_symbol_resolution_names): Move to symtab.c
25690         (cgraph_asm_nodes, cgraph_asm_last_node): Move to cgraphunit.c
25691         (cgraph_add_to_same_comdat_group): Remove.
25692         (cgraph_add_asm_node): Move to cgraphunit.c.
25693         (cgraph_make_decl_local): Move to symtab.c
25694         (cgraph_make_node_local_1): Update.
25695         (cgraph_can_remove_if_no_direct_calls_and): Update.
25696         (used_from_object_file_p): Update.
25697         (resolution_used_from_other_file_p): Move to symtab.c
25698         (cgraph_used_from_object_file_p): move to symtab.c
25699         (verify_cgraph_node): Verify same comdat groups.
25700         * cgraph.h (cgraph_asm_node): Rename to ...
25701         (asm_node): ... this one.
25702         (cgraph_asm_nodes): Rename to ...
25703         (asm_nodes): ... this one.
25704         (symtab_add_to_same_comdat_group): New function.
25705         (symtab_dissolve_same_comdat_group_list): New function.
25706         (symtab_used_from_object_file_p): Declare.
25707         (symtab_make_decl_local): Declare.
25708         (cgraph_add_to_same_comdat_group): Remove.
25709         (cgraph_add_asm_node): Remove.
25710         (cgraph_used_from_object_file_p, varpool_used_from_object_file_p):
25711         Remove.
25712         (cgraph_finalize_compilation_unit): Rename to ...
25713         (finalize_compilation_unit): ... this one.
25714         (cgraph_optimize): Rename to ....
25715         (compile): ... this one.
25716         (add_asm_node): Declare.
25717         (fixup_same_cpp_alias_visibility): Declare.
25718         (cgraph_make_decl_local): Remove.
25719         (varpool_assemble_pending_decls): Rename to ...
25720         (varpool_output_variables): ... this one.
25721         (varpool_remove_unreferenced_decls): Remove.
25722         * ipa-inline-transform.c (clone_inlined_nodes): Dissolve comdat groups.
25723         (preserve_function_body_p): Make static.
25724         * toplev.c (compile_file): Update comments; update.
25725         * cgraphunit.c: Update comments.
25726         (cgraph_expand_all_functions): Rename to ...
25727         (expand_all_functions): ... this one; update.
25728         (cgraph_mark_functions_to_output): Rename to ...
25729         (mark_functions_to_output): ... this one; cleanup.
25730         (cgraph_output_pending_asms): Remove prototype.
25731         (asm_nodes, asm_last_node): New static vars.
25732         (cgraph_process_new_functions): Update.
25733         (cgraph_reset_node): Cleanup; add comment.
25734         (cgraph_add_new_function): Update.
25735         (cgraph_output_pending_asms): Rename to ...
25736         (output_asm_statements): ... this one.
25737         (add_asm_node): New function.
25738         (fixup_same_cpp_alias_visibility): New function based on code
25739         in cgraph_analyze_function.
25740         (cgraph_analyze_function): Use it.
25741         (cgraph_order_sort): Update.
25742         (cgraph_output_in_order): Update.
25743         (cgraph_function_versioning): Update.
25744         (cgraph_optimize): Rename to ...
25745         (compile): ... this one; initialize streamer hooks here.
25746         (cgraph_finalize_compilation_unit): Rename to ...
25747         (finalize_compilation_unit): ... this one; do not initialize streamer
25748         hook here.
25749         * lto-streamer-out.c (lto_output_toplevel_asms): Update.
25750         * dwarf2out.c: Update ocmment.
25751         * optimize.c (maybe_clone_body): Use symtab_add_to_same_comdat_group.
25752         * method.c (use_thunk): Likewise.
25753         * semantics.c (maybe_add_lambda_conv_op): Likewise.
25754         * decl2.c (maybe_emit_vtables): Likewise.
25755         (cp_write_global_declarations): Use finalize_compilation_unit.
25756         * parser.c (cp_parser_asm_definition): Use add_asm_node.
25757         * lto-streamer-in.c (lto_input_toplevel_asms): Use add_asm_node
25758         * c-decl.c (c_write_global_declarations): Use
25759         finalize_compilation_unit.
25760         * langhooks.c (write_global_declarations): Update.
25761         * ipa.c (cgraph_externally_visible_p): Update.
25762         (dissolve_same_comdat_group_list): Remove.
25763         (function_and_variable_visibility): Update.
25764         * symtab.c: Inlcude lto-streamer.h and rtl.h
25765         (ld_plugin_symbol_resolution_names): New.
25766         (symtab_add_to_same_comdat_group): New.
25767         (symtab_dissolve_same_comdat_group_list): New.
25768         (resolution_used_from_other_file_p): Move here from cgraph.c
25769         (symtab_used_from_object_file_p): New.
25770         (symtab_make_decl_local): New.
25771         * passes.c (register_pass): Update comments.
25772         * c-parser.c (c_parser_asm_definition): Update.
25773         * varpool.c (varpool_analyze_node): Use
25774         fixup_same_cpp_alias_visibility.
25775         (varpool_remove_unreferenced_decls): Make static.
25776         (varpool_assemble_pending_decls): Rename to ...
25777         (varpool_output_variables): ... this one; call
25778         varpool_remove_unreferenced_decls.
25779         (varpool_used_from_object_file_p): Remove.
25781 2012-04-30  Marc Glisse  <marc.glisse@inria.fr>
25783         PR c++/51033
25784         * c-typeck.c (build_array_ref): Call
25785         convert_vector_to_pointer_for_subscript.
25786         * doc/extend.texi (Vector Extensions): Subscripting not just for C.
25788 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
25790         * config/i386/i386.md (and<mode>3): Change runtime operand mode checks
25791         to compile-time "mode == <MODE>mode" checks.
25792         (and splitter): Ditto.
25794 2012-04-30  Richard Henderson  <rth@redhat.com>
25796         * config/arm/arm.md (UNSPEC_LL): New.
25797         * config/arm/sync.md (atomic_loaddi, atomic_loaddi_1): New.
25798         (arm_load_exclusivedi): Use %H0.
25800 2012-04-30  Jason Merrill  <jason@redhat.com>
25802         * dwarf2out.c (comdat_symbol_id): Add const.
25803         (union die_symbol_or_type_node): Add const to die_symbol.
25804         (output_die_symbol, output_die, output_comp_unit): Adjust.
25806 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
25808         * config/arm/arm.md (negdi2): Use gen_negdi2_neon.
25809         * config/arm/neon.md (negdi2_neon): New insn.
25810         Also add splitters for core and NEON registers.
25812 2012-04-30  Andrew Stubbs  <ams@codesourcery.com>
25814         * config/arm/arm.c (neon_valid_immediate): Allow const_int.
25815         (arm_print_operand): Add 'x' format.
25816         * config/arm/constraints.md (Dn): Allow const_int.
25817         * config/arm/neon.md (neon_mov<mode>): Use VDX to allow DImode.
25818         Use 'x' format to print constants.
25819         * config/arm/predicates.md (imm_for_neon_mov_operand): Allow const_int.
25820         * config/arm/vfp.md (movdi_vfp): Disable for const_int when neon
25821         is enabled.
25822         (movdi_vfp_cortexa8): Likewise.
25824 2012-04-30  Ian Bolton  <ian.bolton@arm.com>
25825             Sameera Deshpande  <sameera.deshpande@arm.com>
25826             Greta Yorsh  <greta.yorsh@arm.com>
25828         * config/arm/arm-protos.h (ldm_stm_operation_p): New declaration.
25829         * config/arm/arm.c (ldm_stm_operation_p): New function.
25830         * config/arm/predicates.md (load_multiple_operation): Update predicate.
25831         (store_multiple_operation): Likewise.
25833         * config/arm/arm-protos.h (ldm_stm_operation_p): New parameters.
25834         * config/arm/arm.c (ldm_stm_operation_p): New parameters.
25835         * config/arm/predicates.md (load_multiple_operation): Add arguments.
25836         (store_multiple_operation): Likewise.
25838 2012-04-30  Uros Bizjak  <ubizjak@gmail.com>
25840         * config/i386/i386.md (and<mode>3): Expand masking operations with
25841         0xff, 0xffff or 0xffffffff immediates to corresponding zero_extend RTX.
25842         (and splitter): Split to DImode zero_extend RTX for DImode operand[0].
25844 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
25846         Add -Wvarargs option
25847         * builtins.c (fold_builtin_next_arg):  Use OPT_Wvarargs as an
25848         argument for the various warning_at calls.
25849         * docs/invoke.texi: Update the documentation.
25851 2012-04-30  Dodji Seketeli  <dodji@redhat.com>
25853         Switch -ftrack-macro-expansion=2 on by default.
25854         * docs/cppopts.texi: Adjust for enabling -ftrack-macro-expansion=2
25855         by default.
25857         Fix va_start related location
25858         * builtins.c (fold_builtin_next_arg): Unwinds to the first
25859         location in real source code.
25861         Make conversion warnings work on NULL with -ftrack-macro-expansion
25862         * input.h (expansion_point_location_if_in_system_header): Declare
25863         new function.
25864         * input.c (expansion_point_location_if_in_system_header): Define it.
25866         Fix -Wuninitialized for -ftrack-macro-expansion
25867         * tree-ssa.c (warn_uninit): Use the spelling location of the variable
25868         declaration.  Use linemap_location_before_p for source locations.
25870         Strip "<built-in>" loc from displayed expansion context
25871         * input.c (expand_location_1): When expanding to spelling location
25872         in a context of a macro expansion, skip reserved system header
25873         locations.  Update comments.  * tree-diagnostic.c
25874         (maybe_unwind_expanded_macro_loc): Likewise.
25876         Make expand_location resolve to locus in main source file
25877         * input.c (expand_location_1): New.  Takes a parameter to choose
25878         whether to resolve the location to spelling or expansion point.
25879         Was factorized from ...
25880         (expand_location): ... here.
25881         (expand_location_to_spelling_point): New.  Implemented in terms of
25882         expand_location_1.
25883         * diagnostic.c (diagnostic_build_prefix): Use the new
25884         expand_location_to_spelling_point instead of expand_location.
25886         Fix PCH crash on GTYed pointer-to-scalar field of a struct
25887         * gengtype.c (write_types_process_field): Force second argument of
25888         the call to the PCH object hierarchy walker to be 'x'.
25890 2012-04-30  Eric Botcazou  <ebotcazou@adacore.com>
25892         * config/i386/i386.c (ix86_handle_struct_attribute): Use the proper
25893         predicate to discriminate types.
25895 2012-04-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25897         * doc/invoke.texi (Wmissing-format-attribute): Document as an
25898         alias of Wsuggest-attribute=format.
25899         * c-typeck.c (convert_for_assignment): Replace
25900         Wmissing-format-attribute with Wsuggest-attribute=format.
25901         (digest_init): Likewise.
25903 2012-04-29  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25905         * opts.c (finish_options): Do not handle -Wmissing-noreturn here.
25906         * common.opt (Wmissing-noreturn): Alias of
25907         -Wsuggest-attribute=noreturn.
25909 2012-04-29  Hans-Peter Nilsson  <hp@axis.com>
25911         PR target/53156
25912         * config/cris/cris.md (andqu): New peephole2.
25913         (andu): Tweak head comment.
25915 2012-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
25916             Steven Bosscher  <steven@gcc.gnu.org>
25917             Maxim Kuvyrkov  <maxim@codesourcery.com>
25919         PR tree-optimization/38785
25920         * common.opt (ftree-partial-pre): New option.
25921         * doc/invoke.texi: Document it.
25922         * opts.c (default_options_table): Initialize flag_tree_partial_pre.
25923         * tree-ssa-pre.c (do_partial_partial_insertion): Insert only if it will
25924         benefit speed path.
25925         (execute_pre): Use flag_tree_partial_pre.
25927 2012-04-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
25929         PR target/52999
25930         * config/pa/pa.c (pa_legitimate_constant_p): Don't put function labels
25931         in constant pool.
25933 2012-04-27  Ollie Wild  <aaw@google.com>
25935         * doc/invoke.texi (Wliteral-suffix): Document new option.
25937 2012-04-27  Tom Tromey  <tromey@redhat.com>
25939         * dwarf2out.c (dwarf_stack_op_name): Use get_DW_OP_name.
25940         (dwarf_tag_name): Use get_DW_TAG_name.
25941         (dwarf_attr_name): Use get_DW_AT_name.
25942         (dwarf_form_name): Use get_DW_FORM_name.
25943         * dwarf2cfi.c (dwarf_cfi_name): Use get_DW_CFA_name.
25945 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
25947         * tree-ssa-phiopt.c (conditional_replacement): Replace PHIs whose
25948         arguments are -1 and 0, by negating the result of the conditional.
25950 2012-04-27  Paolo Bonzini  <bonzini@gnu.org>
25952         PR target/53138
25953         * config/i386/i386.md (x86_mov<mode>cc_0_m1_neg): Add clobber.
25955 2012-04-27  Richard Guenther  <rguenther@suse.de>
25957         * tree-flow.h (is_hidden_global_store): Remove.
25958         * tree-ssa-sink.c (is_hidden_global_store): Likewise.
25959         * tree-ssa-alias.h (ref_may_alias_global_p): Declare.
25960         (stmt_may_clobber_global_p): Likewise.
25961         * tree-ssa-alias.c (ref_may_alias_global_p): New function.
25962         (stmt_may_clobber_global_p): Likewise.
25963         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Call
25964         stmt_may_clobber_global_p.
25965         * tree-ssa-dse.c (dse_possible_dead_store_p): Likewise.
25967 2012-04-27  Steven Bosscher  <steven@gcc.gnu.org>
25969         * cfg.c (disconnect_src): Do df_mark_solutions_dirty in the right
25970         place.
25972         * tree-switch-conversion.c (struct switch_conv_info): Add range_max,
25973         reorganize some fields and update comments.  Rename bit_test_uniq
25974         and bit_test_count to uniq resp. count.  Remove bit_test_bb.
25975         (collect_switch_conv_info): New function, collects info about a
25976         GIMPLE_SWITCH into a struct switch_conv_info.
25977         (check_range): Simplify to use pre-recorded info.  Fix think-o in
25978         range-branch ratio check.
25979         (check_process_case): Remove function.
25980         (check_all_empty_except_final): New function, verifies that all
25981         non-final basic blocks are empty.
25982         (process_switch): Simplify to use pre-recorded info.  Call
25983         collect_switch_conv_info to do that.  Assert that degenerate switch
25984         statements have been cleaned up.
25986 2012-04-27  Marc Glisse  <marc.glisse@inria.fr>
25988         PR middle-end/27139
25989         * tree-ssa-forwprop.c (combine_conversions): Handle INT->FP->INT.
25991 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
25993         PR c/53130
25994         * c-typeck.c (pop_init_level): Use %qD instead of %qT.
25996 2012-04-27  Tom de Vries  <tom@codesourcery.com>
25998         PR tree-optimization/51879
25999         * tree-ssa-sccvn.h (struct vn_reference_s): Add result_vdef field.
26000         * tree-ssa-sccvn.c (mark_use_processed): New function, factored out
26001         of ...
26002         (defs_to_varying): ... here.  Don't set use_processed.
26003         (visit_reference_op_call): Handle gimple_vdef.
26004         Handle case that lhs is NULL_TREE.
26005         (visit_use): Use mark_use_processed.  Handle calls with side-effect
26006         using visit_reference_op_call.
26008 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
26010         * sched-deps.c (fixup_sched_groups): Rename to...
26011         (chain_to_prev_insn): ...this.
26012         (chain_to_prev_insn_p): New function.
26013         (deps_analyze_insn): Use it instead of SCHED_GROUP_P.
26015 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
26017         * sched-int.h (_haifa_insn_data): Move priority_status.
26018         Add model_index.
26019         (INSN_MODEL_INDEX): New macro.
26020         * haifa-sched.c (insn_delay): New function.
26021         (sched_regno_pressure_class): Update commentary.
26022         (mark_regno_birth_or_death): Pass the liveness bitmap and
26023         pressure array as arguments, instead of using curr_reg_live and
26024         curr_reg_pressure.  Only update the pressure if the bit in the
26025         liveness set has changed.
26026         (initiate_reg_pressure_info): Always trust the live-in set for
26027         SCHED_PRESSURE_MODEL.
26028         (initiate_bb_reg_pressure_info): Update call to
26029         mark_regno_birth_or_death.
26030         (dep_list_size): Take the list as argument.
26031         (calculate_reg_deaths): New function, extracted from...
26032         (setup_insn_reg_pressure_info): ...here.
26033         (MODEL_BAR): New macro.
26034         (model_pressure_data, model_insn_info, model_pressure_limit)
26035         (model_pressure_group): New structures.
26036         (model_schedule, model_worklist, model_insns, model_num_insns)
26037         (model_curr_point, model_before_pressure, model_next_priority):
26038         New variables.
26039         (MODEL_PRESSURE_DATA, MODEL_MAX_PRESSURE, MODEL_REF_PRESSURE)
26040         (MODEL_INSN_INFO, MODEL_INSN): New macros.
26041         (model_index, model_update_limit_points_in_group): New functions.
26042         (model_update_limit_points, model_last_use_except): Likewise.
26043         (model_start_update_pressure, model_update_pressure): Likewise.
26044         (model_recompute, model_spill_cost, model_excess_group_cost): Likewise.
26045         (model_excess_cost, model_dump_pressure_points): Likewise.
26046         (model_set_excess_costs): Likewise.
26047         (rank_for_schedule): Extend SCHED_PRIORITY_WEIGHTED ordering to
26048         SCHED_PRIORITY_MODEL.  Use insn_delay.  Use the order in the model
26049         schedule as an alternative tie-breaker.  Update the call to
26050         dep_list_size.
26051         (ready_sort): Call model_set_excess_costs.
26052         (update_register_pressure): Update call to mark_regno_birth_or_death.
26053         Rely on that function to check liveness rather than doing it here.
26054         (model_classify_pressure, model_order_p, model_add_to_worklist_at)
26055         (model_remove_from_worklist, model_add_to_worklist, model_promote_insn)
26056         (model_add_to_schedule, model_analyze_insns, model_init_pressure_group)
26057         (model_record_pressure, model_record_pressures): New functions.
26058         (model_record_final_pressures, model_add_successors_to_worklist)
26059         (model_promote_predecessors, model_choose_insn): Likewise.
26060         (model_reset_queue_indices, model_dump_pressure_summary): Likewise.
26061         (model_start_schedule, model_finalize_pressure_group): Likewise.
26062         (model_end_schedule): Likewise.
26063         (schedule_insn): Say when we're scheduling the next instruction
26064         in the model schedule.
26065         (schedule_insn): Handle SCHED_PRESSURE_MODEL.
26066         (queue_to_ready): Do not add instructions that are
26067         MAX_SCHED_READY_INSNS beyond the current point of the model schedule.
26068         Always allow the next instruction in the model schedule to be added.
26069         (debug_ready_list): Print the INSN_REG_PRESSURE_EXCESS_COST_CHANGE
26070         and delay for SCHED_PRESSURE_MODEL too.
26071         (prune_ready_list): Extend SCHED_PRIORITY_WEIGHTED handling to
26072         SCHED_PRIORITY_MODEL, but also take the DFA into account.
26073         (schedule_block): Call model_start_schedule and model_end_schedule.
26074         Extend SCHED_PRIORITY_WEIGHTED stall handling to SCHED_PRIORITY_MODEL.
26075         (sched_init): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
26076         to SCHED_PRESSURE_MODEL, but don't allocate saved_reg_live or
26077         region_ref_regs.
26078         (sched_finish): Update accordingly.
26079         (fix_tick_ready): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
26080         to SCHED_PRESSURE_MODEL.
26081         (add_jump_dependencies): Update call to dep_list_size.
26082         (haifa_finish_h_i_d): Fix leak of max_reg_pressure.
26083         (haifa_init_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE handling
26084         to SCHED_PRESSURE_MODEL.
26085         * sched-deps.c (init_insn_reg_pressure_info): Likewise, but don't
26086         allocate INSN_MAX_REG_PRESSURE for SCHED_PRESSURE_MODEL.
26087         (sched_analyze_insn): Extend INSN_REG_PRESSURE_EXCESS_COST_CHANGE
26088         handling to SCHED_PRESSURE_MODEL.
26090 2012-04-26  Richard Sandiford  <richard.sandiford@linaro.org>
26092         * common.opt (fsched-pressure-algorithm=): New option.
26093         * flag-types.h (sched_pressure_algorithm): New enum.
26094         * sched-int.h (sched_pressure_p): Replace with...
26095         (sched_pressure): ...this new variable.
26096         * haifa-sched.c (sched_pressure_p): Replace with...
26097         (sched_pressure): ...this new variable.
26098         (sched_regno_pressure_class, rank_for_schedule, ready_sort)
26099         (update_reg_and_insn_max_reg_pressure, schedule_insn)
26100         (debug_ready_list, prune_ready_list, schedule_block, sched_init)
26101         (sched_finish, fix_tick_ready, haifa_init_insn): Update accordingly.
26102         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
26103         (sched_analyze_insn): Likewise.
26104         * sched-rgn.c (schedule_region): Likewise.
26105         * config/m68k/m68k.c (m68k_sched_variable_issue): Likewise.
26107 2012-04-26  Bernd Schmidt  <bernds@codesourcery.com>
26109         PR middle-end/52997
26110         * ira.c (find_moveable_pseudos): Call resize_reg_info.
26112         PR middle-end/52940
26113         * machmode.h (CLASS_HAS_WIDER_MODES_P): True for MODE_PARTIAL_INT.
26114         * expr.c (convert_move): Honor unsignedp when extending partial int
26115         modes.
26116         * genmodes.c (complete_mode): Don't clear component field of partial
26117         int modes.
26118         (emit_mode_inner): Don't emit it however.
26119         (calc_wider_mode): Partial int modes widen to their component.
26121 2012-04-26  David S. Miller  <davem@davemloft.net>
26123         * config/sparc/niagara4.md: New file.
26124         * config/sparc/sparc.md: Include it.
26125         * config/sparc/sparc.c (niagara4_costs): New processor costs.
26126         (sparc_option_override): Use it.
26127         (sparc_use_sched_lookahead): Return 2 for niagara4.
26128         (sparc_issue_rate): Likewise.
26130         * config/sparc/sparc.md (attr type): Delete 'fgm_cmp'.
26131         (fpack16_vis, fpackfix_vis, fpack32_vis): Set type to fgm_pack.
26132         (fmul8x16_vis, fmul8x16au_vis, fmul8x16al_vis, fmul8sux16_vis,
26133         fmul8ulx16_vis, fmuld8sux16_vis, fmuld8ulx16_vis): Set type to fgm_mul.
26134         (alignaddrsi_vis, alignaddrdi_vis, alignaddrlsi_vis,
26135         alignaddrldi_vis): Set type to gsr.
26136         (pdist_vis, pdistn<mode>_vis): Set type to fgm_pdsit.
26137         (fcmp<code><GCM:gcm_name><P:mode>_vis, cmask8<P:mode>_vis,
26138         cmask16<P:mode>_vis, cmask32<P:mode>_vis, fchksm16_vis,
26139         v<vis3_shift_patname><mode>3, fmean16_vis,
26140         fp<plusminus_insn>64_vis, <vis3_addsub_ss_patname><mode>3,
26141         fucmp<code>8<P:mode>_vis): Set type to fga.
26142         * config/sparc/ultra1_2.md: Remove refrences to fgm_cmp.
26143         * config/sparc/niagara.md: Likewise.
26144         * config/sparc/niagara2.md: Likewise.
26145         * config/sparc/ultra3.md: Likewise, and fix type matching for
26146         us3_ialuX reservation.
26148 2012-04-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26150         * reload.c (find_reloads): Change the loop nesting when trying an
26151         alternative with swapped operands.
26153 2012-04-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26155         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Fix
26156         comment. Delete unused parameter first_exp_point_map.
26157         (virt_loc_aware_diagnostic_finalizer): Update call.
26159 2012-04-26  Michael Hope  <michael.hope@linaro.org>
26160             Richard Earnshaw  <rearnsha@arm.com>
26162         * config/arm/linux-eabi.h (GLIBC_DYNAMIC_LINKER_SOFT_FLOAT): Define.
26163         (GLIBC_DYNAMIC_LINKER_HARD_FLOAT): Define.
26164         (GLIBC_DYNAMIC_LINKER_DEFAULT): Define.
26165         (GLIBC_DYNAMIC_LINKER): Redefine to use the hard float path.
26167 2012-04-25  Sriraman Tallam  <tmsriram@google.com>
26169         * doc/extend.texi: Document avx2 support.
26170         * config/i386/i386.c (fold_builtin_cpu): Add avx2.
26172 2012-04-26  Hans-Peter Nilsson  <hp@axis.com>
26174         PR target/53120
26175         * config/cris/cris.md ("*andhi_lowpart_v32")
26176         ("*andqi_lowpart_v32"): Change first input-only operand from
26177         a (match_operand ...) to (match_dup 0).  Drop alternatives with
26178         const_int-matching constraints for redundancy.
26179         ("*andhi_lowpart_non_v32", "*andqi_lowpart_non_v32"): Ditto.  Drop
26180         three-operand alternative.
26182 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
26184         PR target/53110
26185         * config/i386/i386.md (and<mode>3): For andq $0xffffffff, reg
26186         instead expand it as zero extension.
26188 2012-04-25  H.J. Lu  <hongjiu.lu@intel.com>
26190         PR debug/52857
26191         * dwarf2out.c (dbx_reg_number): Assert return value != INVALID_REGNUM.
26193 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
26195         * common.opt (flag_debug_types_section): Default to 0.
26196         (dwarf_version): Default to 4.
26197         (dwarf_record_gcc_switches): Default to 1.
26198         (dwarf_strict): Default to 0.
26199         * toplev.c (process_options): Don't handle dwarf_strict
26200         or dwarf_version here.
26201         * config/vxworks.c (vxworks_override_options): Don't
26202         test whether dwarf_strict or dwarf_version are negative,
26203         instead test !global_options_set.x_dwarf_*.
26204         * config/darwin.c (darwin_override_options): Default to
26205         dwarf_version 2.
26206         * doc/invoke.texi: Note that -gdwarf-4, -grecord-gcc-switches
26207         and -fno-debug-types-section are now the default.
26209 2012-04-25  Jan Hubicka  <jh@suse.cz>
26211         * cgraphunit.c: Update toplevel comment.
26212         (tree_rest_of_compilation): Merge into cgraph_expand_function.
26213         (cgraph_analyze_function): Make static.
26214         (cgraph_decide_is_function_needed): Make static.
26215         (cgraph_add_new_function): Use expand_function instead of
26216         rest_of_compilation.
26217         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
26218         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
26219         Move to cgraph.c
26220         (cgraph_inline_p): Remove.
26221         (cgraph_preserve_function_body_p): Move to ipa-inline-transform.
26222         (init_cgraph): Add comment.
26223         * cgraphbuild.c (record_reference, mark_address, mark_load,
26224         mark_store): Do not call analyze_expr hook.
26225         * cgraph.c: Update toplevel comment.
26226         (clone_of_p, verify_edge_count_and_frequency, cgraph_debug_gimple_stmt,
26227         verify_edge_corresponds_to_fndecl, verify_cgraph_node, verify_cgraph):
26228         Move fere from cgraphunit.c
26229         (cgraph_mark_force_output_node): Move to cgraph.h
26230         * cgraph.h: Reorder so the comments match the function placement.
26231         (cgraph_analyze_function, cgraph_decide_is_function_needed): Remove.
26232         (cgraph_mark_force_output_node): Move here from cgraph.c
26233         * tree.c (free_lang_data): Do not clear analyze_expr hook.
26234         * ipa-inline-transform.c (preserve_function_body_p): New function.
26235         (inline_transform): Update.
26236         * langhooks.c (lhd_callgraph_analyze_expr): Remove.
26237         * langhooks.h (lang_hooks_for_callgraph): Remove.
26238         (lang_hooks): Remove callgraph.
26239         * tree-inline.c (expand_call_inline): Do not use cgraph_inline_p.
26240         * varpool.c: Remove out of date comment.
26241         * langhooks-def.h (lhd_callgraph_analyze_expr): Remove.
26242         (LANG_HOOKS_CALLGRAPH_ANALYZE_EXPR): Remove.
26244 2012-04-25  Jan Hubicka  <jh@suse.cz>
26246         PR middle-end/53089
26247         * cgraphunit.c (referred_to_p): Move ahead in file to avoid
26248         forward declaration.
26249         (cgraph_finalize_function): Finalize them here.
26250         * symtab.c (dump_symtab): Dump ctors and dtors.
26252 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
26254         PR middle-end/52979
26255         * stor-layout.c (get_best_mode): Don't return mode with bitsize
26256         larger than maxbits.  Don't compute maxbits modulo align.
26257         Also check that unit bytes long store at bitpos / unit * unit
26258         doesn't affect bits beyond bitregion_end.
26259         * expmed.c (store_bit_field_1): Avoid trying insv if OP_MODE MEM
26260         would not fit into bitregion_start ... bitregion_end + 1 bit region.
26261         (store_split_bit_field): Decrease unit close to end of bitregion_end
26262         if access is restricted in order to avoid mutual recursion.
26264         PR tree-optimization/53058
26265         * double-int.h (double_int_max_value, double_int_min_value): New
26266         prototypes.
26267         * double-int.c (double_int_max_value, double_int_min_value): New
26268         functions.
26269         * tree-vrp.c (register_edge_assert_for_2): Compare mask for LE_EXPR
26270         or GT_EXPR with double_int_max_value instead of double_int_mask.
26272 2012-04-25  Richard Guenther  <rguenther@suse.de>
26274         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
26275         * tree-vect-loop.c (vect_transform_loop): Adjust.
26276         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Record
26277         the maximum number of iterations for the epilogue loop.
26278         (vect_loop_versioning): Remove case re-using the peeled epilogue loop.
26280 2012-04-25  Jakub Jelinek  <jakub@redhat.com>
26282         PR c/52880
26283         * c-typeck.c (set_nonincremental_init,
26284         set_nonincremental_init_from_string): Pass true instead of false
26285         as IMPLICIT to add_pending_init.
26287 2012-04-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26289         * c-typeck.c (pop_init_level): Improve diagnostics.
26291 2012-04-25  Uros Bizjak  <ubizjak@gmail.com>
26293         * compare-elim.c (try_eliminate_compare): Also handle operands with
26294         implicit extensions.
26296 2012-04-25  Alan Modra  <amodra@gmail.com>
26298         * config/rs6000/rs6000 (SAVE_INLINE_VRS, REST_INLINE_VRS,
26299         V_SAVE_INLINE, SAVRES_LR, SAVRES_SAVE, SAVRES_REG,
26300         SAVRES_GPR, SAVRES_FPR, SAVRES_VR): Define.
26301         (no_global_regs_above): Delete.
26302         (no_global_regs): New function.
26303         (rs6000_savres_strategy): Handle vector regs.  Use proper lr_save_p
26304         value for load multiple test.
26305         (savres_routine_syms): Increase size.
26306         (rs6000_savres_routine_name, rs6000_savres_routine_sym,
26307         ptr_regno_for_savres, rs6000_emit_savres_rtx): Pass in int selector
26308         rather than a number of boolean flags.  Update all callers.
26309         (rs6000_savres_routine_name): Generate vector save/restore names.
26310         (rs6000_savres_routine_sym): Handle vector regs.  Delete forward decl.
26311         (ptr_regno_for_savres, rs6000_emit_savres_rtx): Likewise.
26312         (rs6000_emit_prologue): Delete saving_FPRs_inline, saving_GPRs_inline
26313         and using_store_multiple.  Expand uses.  Don't always use r11 as
26314         frame reg when needed for out-of-line saves.  Set up initial offset
26315         for out-of-line vector saves when buying stack frame.  Handle pointer
26316         reg setup for out-of-line fp save.  Emit call to out-of-line vector
26317         save function.  Choose r11 or r12 for vrsave reg when available for
26318         better scheduling.
26319         (rs6000_output_function_prologue): Don't emit .extern for ELF.
26320         (rs6000_emit_epilogue): Choose a better frame reg when restoring
26321         from back-chain to suit out-of-line vector restore functions.  Emit
26322         call to out-of-line vector restore function.  Adjust register used
26323         for cr restore.  Tweak pointer register setup for gpr restore.
26324         * config/rs6000/rs6000.h (FIRST_SAVED_GP_REGNO): Take into account
26325         FIXED_R13.
26326         * config/rs6000/sysv4.h (FP_SAVE_INLINE, GP_SAVE_INLINE): Simplify.
26327         (V_SAVE_INLINE): Define.
26328         * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*): New insns.
26330 2012-04-25  Alan Modra  <amodra@gmail.com>
26332         * config/rs6000/rs6000.c (rs6000_savres_strategy): Allow
26333         out-of-line save/restore for large frames.  Don't disable
26334         out-of-line saves on ABI_AIX when using static chain reg.
26335         (rs6000_emit_prologue): Adjust cr_save_regno on ABI_AIX to not
26336         clobber static chain reg, and tweak for out-of-line gpr saves
26337         that use r1.
26339 2012-04-25  Alan Modra  <amodra@gmail.com>
26341         * config/rs6000/rs6000.c (START_USE, END_USE, NOT_INUSE): Define.
26342         (rs6000_emit_prologue): Use the above to catch register overlap.
26344 2012-04-25  Alan Modra  <amodra@gmail.com>
26346         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete forward
26347         decl.  Move logic selecting update reg to callers.  Update all callers.
26348         (rs6000_emit_allocate_stack): Add copy_off param.
26349         (emit_frame_save): Don't handle reg+reg addressing.
26350         (ptr_regno_for_savres): New function, extracted from..
26351         (rs6000_emit_savres_rtx): ..here.  Add lr_offset param.
26352         (rs6000_emit_prologue): Generate frame_ptr_rtx as we need it.
26353         Set frame_reg_rtx to r11 whenever r11 is needed, and merge
26354         frame offset adjustment for out-of-line save with copy from sp.
26355         Simplify condition controlling whether cr is saved early or
26356         late.  Use ptr_regno_for_savres to verify correct reg is set
26357         up for out-of-line saves.  Pass the actual pointer reg used to
26358         rs6000_emit_savres_rtx so rtl matches insns in out-of-line
26359         function.  Rearrange spe vars so code is similar to that
26360         elsewhere in this function.  Don't update frame_off when spe
26361         save code will restore r11.  Use emit_frame_save for spe and
26362         gpr saves.  Consolidate darwin out-of-line gpr setup with that
26363         for other abis.  Don't assume frame_offset is zero and frame
26364         reg is sp when setting up altivec reg saves, and calculate
26365         exact offset requirement.
26366         (rs6000_emit_epilogue): Use HOST_WIDE_INT for frame_off.  Tidy
26367         spe restore code.  Consolidate darwin out-of-line gpr setup
26368         with that for other abis.
26370 2012-04-25  Alan Modra  <amodra@gmail.com>
26372         * config/rs6000/rs6000.c (rs6000_frame_related): Don't emit a
26373         REG_FRAME_RELATED_EXPR note when the instruction exactly matches
26374         the replacement.
26375         (emit_frame_save): Delete frame_ptr param.  Rename total_size to
26376         frame_reg_to_sp.
26377         (rs6000_emit_prologue): Add sp_off.  Update rs6000_frame_related
26378         and emit_frame_save calls.  Cope with possibly missing note.
26380 2012-04-24  Sriraman Tallam  <tmsriram@google.com>
26382         * config/i386/i386.c (build_processor_model_struct): New function.
26383         (make_var_decl): New function.
26384         (fold_builtin_cpu): New function.
26385         (ix86_fold_builtin): New function.
26386         (make_cpu_type_builtin): New function.
26387         (ix86_init_platform_type_builtins): New function.
26388         (ix86_expand_builtin): Expand new builtins by folding them.
26389         (ix86_init_builtins): Make new builtins to detect CPU type.
26390         (TARGET_FOLD_BUILTIN): New macro.
26391         (IX86_BUILTIN_CPU_INIT): New enum value.
26392         (IX86_BUILTIN_CPU_IS): New enum value.
26393         (IX86_BUILTIN_CPU_SUPPORTS): New enum value.
26394         * config/i386/i386-builtin-types.def: New function type.
26395         * doc/extend.texi: Document builtins.
26397 2012-04-24  Olivier Hainque  <hainque@adacore.com>
26399         * common.opt (gdwarf-): Initialize dwarf_version to -1 instead of 2.
26400         * toplev.c (process_options): Default to dwarf_version 2.
26401         * config/vxworks.c (vxworks_override_options): Default to strict-dwarf
26402         and dwarf_version 2.
26404 2012-04-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26406         * tree-pretty-print.h (default_tree_printer): Do not declare.
26407         * tree-diagnostic.c: Include tree-pretty-print.h, tree-pass.h and
26408         intl.h.
26409         (default_tree_diagnostic_starter): Make static.
26410         (default_tree_printer): Move to here. Make static.
26411         (tree_diagnostics_defaults): New.
26412         * tree-diagnostic.h (default_tree_diagnostic_starter): Do not declare.
26413         * tree.c (free_lang_data): Use tree_diagnostics_defaults.
26414         * toplev.c: Do not include tree-pass.h.
26415         (default_tree_printer): Move from here.
26416         (general_init): Use tree_diagnostics_defaults.
26418 2012-04-24  Chao-ying Fu  <fu@mips.com>
26420         * config.gcc (mips64*-*-linux*): Append mips/linux-common.h to tm_file.
26421         (mips*-*-linux*): Append mips/linux-common.h to tm_file.
26422         * config/mips/gnu-user.h
26423         (SUBTARGET_CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC directly.
26424         (GNU_USER_TARGET_LINK_SPEC): New define.
26425         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
26426         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC directly.
26427         (GNU_USER_TARGET_MATHFILE_SPEC): New define.
26428         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC and
26429         GNU_USER_TARGET_ENDFILE_SPEC.
26430         * config/mips/gnu-user64.h (LIB_SPEC): Remove.
26431         (GNU_USER_TARGET_LINK_SPEC): New define.
26432         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
26433         * config/mips/linux-common.h: New file.
26435 2012-04-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26437         PR target/47197
26438         * config/rs6000/rs6000-c.c (fully_fold_convert): New function.
26439         (altivec_build_resolved_builtin): Call fully_fold_convert.
26441 2012-04-24  Georg-Johann Lay  <avr@gjlay.de>
26443         PR target/53065
26444         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): New hook define.
26446 2012-04-24  Richard Guenther  <rguenther@suse.de>
26448         PR tree-optimization/53085
26449         * tree-ssa-pre.c (eliminate): Do not eliminate volatile redundant
26450         stores.
26452 2012-04-24  Richard Guenther  <rguenther@suse.de>
26454         * tree-if-conv.c (main_tree_if_conversion): Move bb under
26455         ENABLE_CHECKING.
26457 2012-04-24  Jim Meyering  <meyering@redhat.com>
26459         * genattrtab.c (gen_attr): Avoid NULL-deref after diagnosing
26460         absence of an define_enum call.
26462 2012-04-24  Richard Guenther  <rguenther@suse.de>
26464         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): If
26465         the epilogue loop is not re-used as unvectorized version
26466         record the its maximum number of iterations.
26468 2012-04-24  Andrew Pinski  <apinski@cavium.com>
26470         * tree-ssa-forwprop.c (simplify_bitwise_binary):
26471         Don't directly use def1/def2.
26473 2012-04-24  Richard Guenther  <rguenther@suse.de>
26475         PR tree-optimization/53098
26476         * tree-vect-loop.c (vect_analyze_loop_operations): Fixup
26477         comparison sign.
26479 2012-04-24  Andrew Pinski  <apinski@cavium.com>
26481         PR tree-opt/33512
26482         * tree-ssa-forwprop.c (defcodefor_name): New function.
26483         (simplify_bitwise_binary): Use defcodefor_name instead of manually
26484         Simplify "( X | Y) & X" to X and "( X & Y) | X" to X.
26485         Simplify "(~X | Y) & X" to "X & Y" and
26486         "(~X & Y) | X" to "X | Y".
26488 2012-04-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
26490         * recog.c (insn_invalid_p): Add IN_GROUP parameter and use
26491         validate_change to add clobbers if IN_GROUP is nonzero.
26492         (verify_changes): Call insn_invalid_p with IN_GROUP set to true.
26493         * recog.h (insn_invalid_p): Add IN_GROUP parameter to function
26494         prototype.
26495         * gcse.c (process_insert_insn): Call insn_invalid_p with IN_GROUP
26496         set to false.
26497         * config/s390/s390.c (insn_invalid_p): Likewise.
26499 2012-04-24  Jakub Jelinek  <jakub@redhat.com>
26501         PR middle-end/53084
26502         * varasm.c (compute_reloc_for_constant): Handle ADDR_EXPR of MEM_REF.
26503         (output_addressed_constants): Likewise.
26505         PR middle-end/52999
26506         * varasm.c (get_section): Don't ICE for section conflicts with
26507         built-in section kinds.
26509 2012-04-23  DJ Delorie  <dj@redhat.com>
26511         * config/s390/s390.h (LINK_SPEC): Remove, no longer needed.
26512         (LIBSTDCXX): Change to CPP2.
26514 2012-04-23  H.J. Lu  <hongjiu.lu@intel.com>
26516         PR bootstrap/52878
26517         * opth-gen.awk: Check if MASK_ and TARGET_ macros are defined for
26518         extra_masks.
26520 2012-04-23  Uros Bizjak  <ubizjak@gmail.com>
26522         * config/i386/i386.md (*add<mode>_2): Add r/r/0 alternative.
26523         (*addsi_2_zext): Ditto.
26524         (*add<mode>_3): Ditto.
26525         (*addsi_3_zext): Ditto.
26526         (*add<mode>_5): Ditto.
26528 2012-04-23  Andrew Pinski  <apinski@cavium.com>
26530         * tree-ssa-forwprop.c (simplify_bitwise_binary): Simplify (A & B) OP0
26531         (C & B) to (A OP0) & B.
26533 2012-04-23  Martin Jambor  <mjambor@suse.cz>
26535         * expr.c (expand_expr_real_1): Remove setting parent's alias set for
26536         temporaries created for a bitfield (reverting revision 122014).
26538 2012-04-23  Richard Guenther  <rguenther@suse.de>
26540         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Gimplify
26541         the condition using is_gimple_condexpr and avoid the not necessary
26542         boolification.
26543         (set_prologue_iterations): Likewise.
26544         (vect_loop_versioning): Likewise.
26546 2012-04-23  Richard Guenther  <rguenther@suse.de>
26548         PR tree-optimization/53070
26549         * tree-if-conv.c (combine_blocks): Free predicates in all blocks.
26550         (main_tree_if_conversion): Verify we succeeded in that.
26552 2012-04-23  Jan Hubicka  <jh@suse.cz>
26554         * lto-symtab.c (lto_cgraph_replace_node): Do not call
26555         mark_reahcable_node.
26556         * cgraph.c (cgraph_remove_node): Do not clear reachable.
26557         (cgraph_mark_reachable_node): Remove.
26558         (cgraph_mark_force_output_node): Do not set reachable.
26559         (dump_cgraph_node): Do not dump reachable.
26560         (cgraph_create_virtual_clone): Do not set reachable.
26561         * cgraph.h (cgraph_node): Remove reachable flag.
26562         (varpool_node): Remove reachable flag.
26563         (cgraph_mark_if_needed): Remove.
26564         (cgraph_mark_reachable_node): Remove.
26565         * tree-emutls.c (ipa_lower_emutls): Do not check reachable.
26566         * cgraphunit.c (cgraph_finalize_function): Do not mark node as
26567         reachable.
26568         (cgraph_add_new_function): Likewise.
26569         (cgraph_mark_if_needed): Remove.
26570         (cgraph_analyze_function): Do not set target as reachable.
26571         (process_function_and_variable_attributes): Do not care about
26572         dllexport.
26573         (cgraph_analyze_functions): Do not set reachable flags.
26574         (cgraph_mark_functions_to_output): Do not check reachability.
26575         (cgraph_copy_node_for_versioning): Do not set reachable flag.
26576         (dbxout_expand_expr): Update.
26577         * c-decl.c (merge_decls): Do not track changed externs.
26578         * ipa.c: Include pointer-set.h
26579         (enqueue_cgraph_node): Use reachable pointer set.
26580         (process_references): Likewise.
26581         (cgraph_remove_unreachable_nodes): Likewise.
26582         (whole_program_function_and_variable_visibility): Do not recompute
26583         reachable.
26584         * trans-mem.c (ipa_tm_execute): Do not check reachable flag.
26586 2012-04-23  Georg-Johann Lay  <avr@gjlay.de>
26588         * doc/extend.texi (AVR Named Address Spaces): Fix typos.
26590 2012-04-23  Richard Guenther  <rguenther@suse.de>
26592         PR c/53060
26593         * c-typeck.c (build_binary_op): Fix typo.
26595 2012-04-23  Jakub Jelinek  <jakub@redhat.com>
26597         PR tree-optimizations/52891
26598         * tree-vect-patterns.c (adjust_bool_pattern): Use
26599         build_nonstandard_type even if rhs1 has unsigned INTEGER_TYPE,
26600         but with non-standard precision.
26602 2012-04-22  Jan Hubicka  <jh@suse.cz>
26604         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Bail out at NULL
26605         tree refs.
26607 2012-04-22  Jan Hubicka  <jh@suse.cz>
26609         * lto-symtab.c (lto_varpool_replace_node): Do not merge needed flags.
26610         * cgraphbuild.c (record_reference, record_type_list, mark_address,
26611         mark_load, mark_store): Do not mark varpool nodes as needed.
26612         * cgraph.c (cgraph_new_nodes): Remove.
26613         (cgraph_create_function_alias): Do not mark nodes as reachable.
26614         (cgraph_add_thunk): Likewise.
26615         (cgraph_mark_reachable_node): Do not manage the queue.
26616         * cgraph.h (cgraph_node): Remove next_needed.
26617         (varpool_nodes_queue): Remove next_needed and prev_needed.
26618         (x_cgraph_nodes_queue, x_cgraph_nodes_queue, cgraph_new_nodes): Remove.
26619         (cgraph_new_nodes): Declare.
26620         (x_varpool_nodes_queue, varpool_nodes_queue); Remove.
26621         (varpool_analyze_pending_decls): Remove.
26622         (varpool_analyze_node): New.
26623         (varpool_mark_needed_node): Remove.
26624         (varpool_first_variable, varpool_next_variable): New inlines.
26625         (varpool_first_static_initializer, varpool_next_static_initializer):
26626         Update.
26627         (FOR_EACH_STATIC_VARIABLE): Remove unused walker.
26628         (varpool_first_defined_variable): New inline.
26629         (varpool_next_defined_variable): New inline
26630         (FOR_EACH_VARIABLE): Reimplement.
26631         (FOR_EACH_DEFINED_VARIABLE): Reimplement.
26632         * toplev.c (wrapup_global_declaration_2): Use analyzed instead of
26633         needed flag.
26634         * cgraphunit.c (cgraph_new_nodes): Declare here.
26635         (enqueue_node): New function.
26636         (cgraph_process_new_functions): update for new
26637         node set; when constructing cgraph enqueue node for processing.
26638         (cgraph_add_new_function): Use new node set.
26639         (process_function_and_variable_attributes): Do not set varpool needed
26640         flags.
26641         (referred_to_p): New function.
26642         (varpool_finalize_decl): Move here from varpool.c; enqueue needed node
26643         when varpool is in construction.
26644         (cgraph_analyze_functions): Rewrite.
26645         (cgraph_expand_all_functions): Update.
26646         (cgraph_output_in_order): Do not analyze pending decls; do not set
26647         needed flags.
26648         (cgraph_optimize): Do not analyze pending decls.
26649         * lto-cgraph.c (input_varpool_node): Clear analyzed flag for objects
26650         in other partition; do not mark node as needed.
26651         * dwarf2out.c (reference_to_unused): Use analyzed flag.
26652         (premark_types_used_by_global_vars_helper): Likewise.
26653         * ipa.c (process_references): Do not call varpool_mark_needed_node.
26654         (cgraph_remove_unreachable_nodes): Do not rely on varpool and
26655         cgrpah queues.
26656         (function_and_variable_visibility): Do not mark node as needed.
26657         (whole_program_function_and_variable_visibility): Likewise.
26658         * Makefile.in (gt-varpool.h): No longer needed.
26659         * passes.c (execute_one_pass, execute_ipa_pass_list): Update.
26660         (ipa_write_summaries): Do not use needed flag.
26661         * varpool.c: Do not include gt-varpool.h
26662         (x_varpool_nodes_queue, x_varpool_last_needed_node,
26663         x_varpool_last_needed_node, x_varpool_first_unanalyzed_node,
26664         x_varpool_first_unanalyzed_node, varpool_assembled_nodes_queue):
26665         Remove.
26666         (varpool_remove_node): Do not update the lists.
26667         (dump_varpool_node): Do not dump needed flag.
26668         (varpool_enqueue_needed_node): Remove.
26669         (varpool_mark_needed_node): Remove.
26670         (varpool_reset_queue): Remove.
26671         (varpool_finalize_decl): Move to cgraphunit.c
26672         (varpool_analyze_node): New functions based on former
26673         varpool_analyze_pending_decls.
26674         (varpool_analyze_pending_decls): Remove.
26675         (varpool_assemble_decl): Do not update the lists.
26676         (enqueue_node): New function.
26677         (varpool_remove_unreferenced_decls): Rewrite.
26678         (varpool_empty_needed_queue): Remove.
26679         (add_new_static_var): Do not mark node as needed.
26680         (varpool_create_variable_alias): Handle expansion state
26681         creation.
26682         * except.c (output_ttype): Do not mark node as needed.
26683         * varasm.c (mark_decl_referenced): Do not use mark_needed_node.
26684         * tree-profile.c (init_ic_make_global_vars, init_ic_make_global_vars):
26685         Likewise.
26686         * tree-switch-conversion.c (build_one_array): Likewise.
26688 2012-04-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26690         PR c/44774
26691         * doc/invoke.texi (pedantic): Rename to Wpedantic.
26692         * common.opt (Wpedantic): New.
26693         (pedantic): Alias Wpedantic.
26694         * diagnostic.c (warning_at): Likewise.
26695         * c-decl.c (diagnose_mismatched_decls): Likewise.
26696         (build_array_declarator): Likewise.
26697         (mark_forward_parm_decls):
26698         (check_bitfield_type_and_width): Likewise.
26699         (grokdeclarator): Likewise.
26700         (grokfield): Likewise.
26701         (finish_struct): Likewise.
26702         (build_enumerator): Likewise.
26703         (store_parm_decls_oldstyle): Likewise.
26704         (declspecs_add_qual): Likewise.
26705         (declspecs_add_type): Likewise.
26706         (finish_declspecs): Likewise.
26707         * c-typeck.c (composite_type): Likewise.
26708         (comp_target_types): Likewise.
26709         (build_array_ref): Likewise.
26710         (pointer_diff): Likewise.
26711         (build_unary_op): Likewise.
26712         (build_conditional_expr): Likewise.
26713         (build_c_cast): Likewise.
26714         (convert_for_assignment): Likewise.
26715         (maybe_warn_string_init): Likewise.
26716         (digest_init): Likewise.
26717         (pop_init_level): Likewise.
26718         (set_init_index): Likewise.
26719         (c_finish_goto_label): Likewise.
26720         (c_finish_return): Likewise.
26721         (do_case): Likewise.
26722         (build_binary_op): Likewise.
26723         * c-parser.c (static): Likewise.
26724         (c_parser_external_declaration): Likewise.
26725         (c_parser_declaration_or_fndef): Likewise.
26726         (c_parser_static_assert_declaration_no_se): Likewise.
26727         (c_parser_enum_specifier): Likewise.
26728         (c_parser_struct_or_union_specifier): Likewise.
26729         (c_parser_struct_declaration): Likewise.
26730         (c_parser_alignas_specifier): Likewise.
26731         (c_parser_braced_init): Likewise.
26732         (c_parser_initelt): Likewise.
26733         (c_parser_compound_statement_nostart): Likewise.
26734         (c_parser_conditional_expression): Likewise.
26735         (c_parser_alignof_expression): Likewise.
26736         (c_parser_postfix_expression): Likewise.
26737         (c_parser_postfix_expression_after_paren_): Likewise.
26738         (c_parser_objc_class_instance_variables): Likewise.
26739         (c_parser_objc_method_definition): Likewise.
26740         (c_parser_objc_methodprotolist): Likewise.
26742 2012-04-22  Ian Lance Taylor  <iant@google.com>
26744         * godump.c (go_output_typedef): Dump size of structs.
26746 2012-04-22  Razya Ladelsky  <razya@il.ibm.com>
26748         Correcting transform_to_exit_first_loop + fix to PR46886
26749         * tree-parloops.c (transform_to_exit_first_loop): Remove
26750         setting of number of iterations according to the loop pattern.
26751         Duplicate from entry to exit->src instead of loop->latch.
26752         (pallelize_loops): Remove the condition preventing do-while loops.
26753         * tree-cfg.c (bool bb_in_region_p): New.
26754         (gimple_duplicate_sese_tail): Adjust duplication of the the subloops.
26755         Adjust redirection of the duplicated iteration.
26757 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
26759         PR bootstrap/53021
26760         * rtl.def (ADDRESS): Use "i" rather than "w".
26761         * rtl.h (find_base_term): Delete.
26762         (may_be_sp_based_p): Declare.
26763         * rtl.c (rtx_code_size): Remove ADDRESS special case.
26764         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP)
26765         (UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Move to...
26766         * alias.c: ...here.
26767         (find_base_term): Make static.
26768         (may_be_sp_based_p): New function.
26769         * dse.c (record_store): Use it.
26770         * store-motion.c (store_killed_in_insn): Likewise.
26772 2012-04-21  Richard Sandiford  <rdsandiford@googlemail.com>
26774         * fold-const.c (fold_checksum_tree): Fix VECTOR_CST case.
26776 2012-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26778         PR 35441
26779         * c-typeck.c (inform_declaration): New.
26780         (build_function_call_vec):  Do not pretty-print
26781         expressions when caret is enabled.
26782         (convert_arguments): Use inform_declaration.
26784 2012-04-20  Jim Meyering  <meyering@redhat.com>
26786         * genmodes.c (make_complex_modes): Don't truncate a mode name of
26787         length 7 or more when prepending a "C".  Suggested by Richard Guenther.
26789 2012-04-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26791         PR rtl-optimization/44214
26792         * fold-const.c (exact_inverse): New function.
26793         (fold_binary_loc): Fold vector and complex division by constant into
26794         multiply by recripocal with flag_reciprocal_math; fold vector division
26795         by constant into multiply by reciprocal with exact inverse.
26797 2012-04-20  Jan Hubicka  <jh@suse.cz>
26799         * lto-symtab.c (lto_cgraph_replace_node): Merge needed instead of
26800         force flags.
26801         * cgraph.c (cgraph_add_thunk): Use mark_reachable_node.
26802         (cgraph_remove_node): Update.
26803         (cgraph_mark_needed_node): Remove.
26804         (cgraph_mark_force_output_node): New.
26805         (dump_cgraph_node): Do not dump needed flag.
26806         (cgraph_node_cannot_be_local_p_1): Update.
26807         (cgraph_can_remove_if_no_direct_calls_and_refs): Update.
26808         * cgraph.h (symtab_node_base): Add force_output flag.
26809         (cgraph_node): Remove needed flag.
26810         (varpool_node): Remove force_output flag.
26811         (cgraph_mark_needed_node): Remove.
26812         (cgraph_mark_force_output_node): New.
26813         (cgraph_only_called_directly_or_aliased_p,
26814         varpool_can_remove_if_no_refs, varpool_all_refs_explicit_p): Update.
26815         * ipa-cp.c (ipcp_generate_summary): Remove out of date assert.
26816         * cgraphunit.c (cgraph_decide_is_function_needed): rewrite.
26817         (cgraph_add_new_function): Update.
26818         (cgraph_mark_if_needed): Update.
26819         (verify_cgraph_node): Update.
26820         (cgraph_analyze_function): Alias target is reachable.
26821         (process_function_and_variable_attributes): Update: externally_visible
26822         flag makes function reachable.
26823         (cgraph_analyze_functions): Update dumping.
26824         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
26825         input_overwrite_node, input_varpool_node): Update streaming.
26826         * lto-streamer-out.c (produce_symtab): Use force_output.
26827         * ipa.c (process_references): Weakrefs must be processed.
26828         (cgraph_remove_unreachable_nodes): Likewise; update for new
26829         force_output flag.
26830         (varpool_externally_visible_p): Weakrefs are externally visible
26831         even if they are not.
26832         (function_and_variable_visibility): Update; when processing alias
26833         pair force the targets to be output.
26834         (whole_program_function_and_variable_visility): Use
26835         mark_reachable_node.
26836         * trans-mem.c (ipa_tm_mark_needed_node): Remove
26837         (ipa_tm_mark_force_output_node): New function.
26838         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
26839         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be lax about
26840         aliases.
26841         * varasm.c (mark_decl_referenced): Update.
26842         (find_decl_and_mark_needed): Remove.
26843         (find_decl): New function.
26844         (weak_finish, finish_aliases_1, assemble_alias): Update; do not mark
26845         alias targets as needed.
26846         (dump_tm_clone_pairs): Update.
26847         * tree-inline.c (copy_bb): Update check.
26848         * symtab.c (dump_symtab_base): Dump force_output.
26849         * tree-ssa-structalias.c (ipa_pta_execute): Use force_output.
26850         * passes.c (execute_todo): Fix dumping.
26851         * varpool.c (decide_is_variable_needed, varpool_finalize_decl): Update.
26852         (varpool_analyze_pending_decls): Alias target is reachable.
26853         (varpool_create_variable_alias): Finalize weakrefs.
26855 2012-04-20  Jakub Jelinek  <jakub@redhat.com>
26857         PR bootstrap/53021
26858         * alias.h (UNIQUE_BASE_VALUE_SP, UNIQUE_BASE_VALUE_ARGP,
26859         UNIQUE_BASE_VALUE_FP, UNIQUE_BASE_VALUE_HFP): Define.
26860         * alias.c (init_alias_targets): Use UNIQUE_BASE_VALUE_*
26861         macros instead of constants.
26862         * dse.c (record_store): Check for SP ADDRESS by comparing
26863         XWINT to UNIQUE_BASE_VALUE_SP instead of expecting
26864         XEXP to be stack_pointer_rtx.
26866 2012-04-20  Richard Guenther  <rguenther@suse.de>
26868         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Use
26869         update_call_from_tree when propagating into a call.
26871 2012-04-20  Alan Modra  <amodra@gmail.com>
26873         * config/rs6000/rs6000.c (rs6000_emit_savres_rtx): Formatting.
26874         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.  Rename
26875         sp_offset to frame_off.  Move world save code earlier.
26877 2012-04-20  Richard Guenther  <rguenther@suse.de>
26879         PR tree-optimization/53050
26880         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine):
26881         Do only one transform on COND_EXPRs at the same time.
26883 2012-04-19  Jan Hubicka  <jh@suse.cz>
26885         * symtab.c (dump_symtab_base): Revert accidental checkin.
26887 2012-04-20  Alan Modra  <amodra@gmail.com>
26889         PR target/53040
26890         * config/rs6000/rs6000.c (rs6000_savres_strategy): When using
26891         static chain, set REST_INLINE_FPRS too.
26893 2012-04-20  Thomas Schwinge  <thomas@codesourcery.com>
26895         * tree-dump.c (dequeue_and_dump) <BIT_FIELD_REF>: Dump the three child
26896         nodes.
26898 2012-04-20  Richard Guenther  <rguenther@suse.de>
26900         * tree-vect-loop.c (vect_analyze_loop_operations): Do not vectorize
26901         loops that can never run more often than the vectorization factor.
26903 2012-04-19  Jan Hubicka  <jh@suse.cz>
26905         * symtab.c (dump_symtab_base): Fix dumping of asm lists.
26907 2012-04-19  David Edelsohn  <dje.gcc@gmail.com>
26909         * config/rs6000/sync.md (fetchop_name): Change ior attribute to "or".
26911 2012-04-19  Jim Meyering  <meyering@redhat.com>
26913         * genmodes.c (make_complex_modes): Avoid unnecessary use of strncpy.
26914         We verified above that the string(including trailing NUL) fits in buf,
26915         so just use memcpy.
26917 2012-04-19  Richard Guenther  <rguenther@suse.de>
26919         * symtab.c (dump_symtab_base): Use TREE_STRING_POINTER
26920         for dumping DECL_SECTION_NAME.
26922 2012-04-19  Michael Matz  <matz@suse.de>
26924         PR middle-end/52977
26925         * tree.h (VECTOR_CST_NELTS): Use part number of types again.
26926         (struct tree_vector): Adjust GTY length.
26927         * tree.c (make_vector_stat): Don't set VECTOR_CST_NELTS.
26929         * gengtype.c (struct walk_type_data): Add in_record_p and loopcounter
26930         members.
26931         (walk_type, <TYPE_POINTER, TYPE_ARRAY>): Handle case where our
26932         caller emitted the length calulation already.
26933         (walk_type, <TYPE_UNION, TYPE_STRUCT>): Emit length calculations
26934         before handling any of the fields for structs.
26936 2012-04-19  Richard Guenther  <rguenther@suse.de>
26938         PR tree-optimization/53031
26939         * tree-vrp.c (adjust_range_with_scev): Revert back to
26940         using max_loop_iterations.
26942 2012-04-19  Michael Matz  <matz@suse.de>
26944         * diagnostic.c (emit_diagnostic): Move va_end call after user
26945         of the va_list.
26946         (warning, warning_at, pedwarn, permerror): Ditto.
26948 2012-04-19  Richard Guenther  <rguenther@suse.de>
26950         * ira-int.h (ira_allocno_object_iter_cond): Avoid out-of-bound
26951         array access.
26953 2012-04-19  Georg-Johann Lay  <avr@gjlay.de>
26955         PR target/53033
26956         * config/avr/avr.c (avr_out_load_psi): Fix assembler template for
26957         the case *(X+const).
26959 2012-04-19  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
26961         * config/arm/sync.md (sync_optab): Change ior attribute to "or".
26963 2012-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26965         PR c/52283/37985
26966         * stmt.c (warn_if_unused_value): Skip NOP_EXPR.
26967         * convert.c (convert_to_integer): Don't set TREE_NO_WARNING.
26969 2012-04-19  Richard Guenther  <rguenther@suse.de>
26971         PR rtl-optimization/44688
26972         * loop-iv.c (determine_max_iter): Only return max_iter.
26973         (iv_number_of_iterations): Also use the recorded loop bound
26974         on the maximum number of iterations.
26975         * loop-unroll.c (decide_unroll_runtime_iterations): Use
26976         max_iter to avoid unrolling loops that do not roll.
26977         (decide_unroll_stupid): Likewise.
26979 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
26981         * targhooks.c (default_case_values_threshold): Fix code style nit.
26983         * stmt.c (add_case_node, expand_case): Move logic to remove/reduce
26984         case range and type folding from here...
26985         * gimplify.c (gimplify_switch_expr): ... to here.  Expect NULL_TREE
26986         type, as documented in tree.def.
26988 2012-04-18  Jan Hubicka  <jh@suse.cz>
26990         * cgraph.h (verify_symtab, verify_symtab_node, verify_symtab_base):
26991         Declare.
26992         * cgraphunit.c (verify_cgraph_node): Verify symtab base; do not verify
26993         cgraph hash and same comdat groups.
26994         (cgraph_optimize): Verify symbol table.
26995         * ipa.c (cgraph_remove_unreachable_nodes): Verify symbol table.
26996         (dissolve_same_comdat_group_list): Work on symtab nodes.
26997         (function_and_variable_visibility): Dissolve variable same comdat group
26998         lists, too.
26999         * symtab.c: Include timevar.h
27000         (verify_symtab_base, verify_symtab_node, verify_symtab): New functions.
27002 2012-04-18  Steven Bosscher  <steven@gcc.gnu.org>
27004         * tree-switch-conversion.c (info): Remove global pass info.
27005         (check_range, check_process_case, check_final_bb, create_temp_arrays,
27006         free_temp_arrays, gather_default_values, build_constructors,
27007         array_value_type, build_one_array, build_arrays, gen_def_assigns,
27008         fix_phi_nodes, gen_inbound_check): Pass info around from ...
27009         (process_switch): ... here.  Unify message format.  Return a const
27010         char pointer to the failure reason message.
27011         (do_switchconv): Unify message format.  Update process_switch usage.
27013         * tree.def (CASE_LABEL_EXPR): Fix documentation, mention all operands.
27014         * tree-cfg.c (edge_to_cases): Fix documentation.
27016 2012-04-18  Uros Bizjak  <ubizjak@gmail.com>
27018         * config/alpha/sync.md (fetchop_name): Change ior attribute to "or".
27020 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27022         PR tree-optimization/52976
27023         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): Delete.
27024         (possibly_move_powi): New function.
27025         (rewrite_expr_tree): Call possibly_move_powi.
27026         (rewrite_expr_tree_parallel): Likewise.
27027         (attempt_builtin_powi): Change call of add_to_ops_vec_max_rank to
27028         call add_to_ops_vec instead.
27030 2012-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27032         PR tree-optimization/52976
27033         * tree-ssa-reassoc.c (stmt_is_power_of_op): New function.
27034         (decrement_power): Likewise.
27035         (propagate_op_to_single_use): Likewise.
27036         (zero_one_operation): Handle __builtin_pow* calls in linearized
27037         expression trees; factor logic into propagate_op_to_single_use.
27038         (undistribute_ops_list): Allow operands with repeat counts > 1.
27040 2012-04-18  Richard Guenther  <rguenther@suse.de>
27042         PR tree-optimization/44688
27043         * cfgloop.h (record_niter_bound): Declare.
27044         * tree-ssa-loop-niter.c (record_niter_bound): Export.
27045         Update the estimation with the upper bound here...
27046         (estimate_numbers_of_iterations_loop): ... instead of here.
27047         Do not forcefully reset a recorded upper bound.
27048         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
27049         Record the maximum number of loop iterations of the prologue loop.
27051 2012-04-18  Jan Hubicka  <jh@suse.cz>
27053         * lto-symtab.c (lto_cgraph_replace_node): Update.
27054         * cgraphbuild.c (record_reference, record_type_list,
27055         record_eh_tables, mark_address, mark_load, mark_store): Update.
27056         * cgraph.c (cgraph_same_body_alias, dump_cgraph_node,
27057         cgraph_create_virtual_clone, cgraph_for_node_thunks_and_aliases):
27058         Update.
27059         * cgraph.h (symtab_node_def, symtab_node, const_symtab_node): Remove.
27060         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Update.
27061         * reload.c: Fix typo in comment.
27062         * rtlanal.c: Likewise.
27063         * tree-emultls.c (gen_emutls_addr): Update.
27064         * ipa-reference.c (analyze_function): Update.
27065         * cgraphunit.c (cgraph_analyze_function,
27066         cgraph_process_same_body_aliases, assemble_thunks_and_aliases):
27067         Update.
27068         * ipa-ref.c (ipa_record_reference): Reorg to avoid reference types.
27069         (ipa_remove_reference): Likewise.
27070         (ipa_remove_all_refering): Rename to ...
27071         (ipa_remove_all_referring): ... this one; update.
27072         (ipa_dump_references): Update.
27073         (ipa_dump_referring): Update.
27074         (ipa_clone_references): Update.
27075         (ipa_clone_refering): Rename to ...
27076         (ipa_clone_referring): ... this one; update.
27077         (ipa_ref_cannot_lead_to_return): Update.
27078         (ipa_ref_has_aliases_p): Update.
27079         * ipa-ref.h (symtab_node_def, symtab_node, const_symtab_node): New
27080         forward typedefs.
27081         (ipa_ref_type): Remove.
27082         (ipa_ref_ptr_u): Remove.
27083         (ipa_ref): Remove referencing, refered, refered_index, refering_type
27084         and refered_type; add referring, referred and referred_index.
27085         (ipa_ref_list): Rename refering to referring.
27086         (ipa_record_reference, ipa_remove_all_referring, ipa_dump_referring,
27087         ipa_clone_references, ipa_clone_referring): Update prototypes.
27088         * lto-cgraph.c (referenced_from_other_partition_p): Update.
27089         (lto_output_ref): Update.
27090         (add_references): Update.
27091         (input_varpool_node): Update.
27092         (input_refs): Update.
27093         * ipa-ref-inline.h (ipa_ref_node): Update.
27094         (ipa_ref_varpool_node): Update.
27095         (ipa_ref_referring_node): Update.
27096         (ipa_ref_referring_varpool_node): Update.
27097         (ipa_ref_referring_ref_list): Update.
27098         (ipa_ref_referred_ref_list): Update.
27099         (ipa_ref_list_first_referring): Update.
27100         (ipa_empty_ref_list): Update.
27101         (ipa_ref_list_refering_iterate): Rename to ...
27102         (ipa_ref_list_referring_iterate): ... this one.
27103         * cse.c: Update comment.
27104         * ipa-utils.c (ipa_reverse_postorder): Update.
27105         * tree-ssa-alias.c: Update.
27106         * ipa-inline.c (reset_edge_caches): Update.
27107         (update_caller_keys): Update.
27108         * ipa-inline.h: Update comments.
27109         * jump.c: Update comment.
27110         * alias.c: Likewise.
27111         * ipa.c (process_references): Update.
27112         (cgraph_remove_unreachable_nodes): Likewise.
27113         (ipa_discover_readonly_nonaddressable_var): Likewise.
27114         (cgraph_address_taken_from_non_vtable_p): Likewise.
27115         * trans-mem.c (ipa_tm_execute): Update.
27116         * simplify-rtx.c: Fix comment.
27117         * rtl.c: Fix comment.
27118         * symtab.c (symtab_unregister_node): Update.
27119         * varpool.c (dump_varpool_node): Update.
27120         (varpool_analyze_pending_decls): Update.
27121         (assemble_aliases): Update.
27122         (varpool_for_node_and_aliases): Update.
27124 2012-04-18  Richard Guenther  <rguenther@suse.de>
27126         * cfgloop.h (estimate_numbers_of_iterations_loop): Remove
27127         use_undefined_p parameter.
27128         * tree-flow.h (estimate_numbers_of_iterations): Likewise.
27129         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
27130         Likewise.
27131         (estimate_numbers_of_iterations): Likewise.
27132         (estimated_loop_iterations): Adjust.
27133         (max_loop_iterations): Likewise.
27134         (scev_probably_wraps_p): Likewise.
27135         * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
27136         * tree-vrp.c (adjust_range_with_scev): Use max_stmt_executions,
27137         not max_loop_iterations.
27138         (execute_vrp): Remove explicit number of iterations estimation.
27140 2012-04-18  Enkovich Ilya  <ilya.enkovich@intel.com>
27142         * config/i386/linux-common.h: New.
27144         * config.gcc: Add i386/linux-common.h before
27145         all i386/linux.h and i386/linux64.h usages.
27147         * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): New.
27148         (LINK_SPEC): Use GNU_USER_TARGET_LINK_SPEC.
27149         * config/i386/gnu-user64.h: Likewise.
27151         * config/i386/gnu-user.common.h (GNU_USER_TARGET_CC1_SPEC): New.
27152         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC.
27153         (GNU_USER_TARGET_MATHFILE_SPEC): New.
27154         (ENDFILE_SPEC): Use GNU_USER_TARGET_MATHFILE_SPEC.
27156 2012-04-18  Jan Hubicka  <jh@suse.cz>
27158         * cgraph.c (cgraph_node_name): Remove.
27159         (dump_cgraph_node): Use dump_symtab_base; reformat.
27160         * cgraph.h (symtab_node_asm_name, symtab_node_name, dump_symtab,
27161         debug_symtab, dump_symtab_node, debug_symtab_node, dump_symtab_base):
27162         Declare.
27163         (cgraph_node_name, varpool_node_name): Remove.
27164         (cgraph_node_asm_name, varpool_node_asm_name,
27165         cgraph_node_name, varpool_node_name): New.
27166         * tree-pass.h (TODO_dump_cgraph): Rename to ...
27167         (TODO_dump_symtab): ... this one.
27168         * ipa-cp (pass_ipa_cp): Update.
27169         * ia-reference.c (generate_summary, read_write_all_from_decl,
27170         propagate, ipa_reference_read_optimization_summary): Update.
27171         * cgraphunit.c (cgraph_analyze_functions): Update.
27172         (cgraph_optimize): Update.
27173         * ipa-ref.c (ipa_dump_references): Update.
27174         (ipa_dump_refering): Update.
27175         * ipa-inline.c (pass_ipa_inline): Update.
27176         * matrix-reorg.c (pass_ipa_matrix_reorg): Update.
27177         * ipa.c (pass_ipa_function_visibility,
27178         pass_ipa_whole_program_visibility): Update.
27179         * tree-sra.c (pass_early_ipa_sra): Update.
27180         * symtab.c: Include langhooks.h
27181         (symtab_node_asm_name): New.
27182         (symtab_node_name): New.
27183         (symtab_type_names): New static var.
27184         (dump_symtab_base): New.
27185         (dump_symtab_node, dump_symtab): New.
27186         (debug_symtab_node,  debug_symtab): New.
27187         * tree-ssa-structalias.c: Dump symbol table.
27188         * pases.c (execute_todo): Handle TODO_dump_symtab instead
27189         of TODO_dump_cgraph.
27190         * varpoo.c (varpool_node_name): Remove.
27191         (dump_varpool_node): Use dump_symtab_base; reformat.
27193 2012-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
27195         * doc/invoke.texi (Language Independent Options): @item should be
27196         before @opindex.
27198 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
27200         PR bootstrap/53021
27201         * rtl.c (rtx_code_size): Handle ADDRESS.
27203 2012-04-17  Tom de Vries  <tom@codesourcery.com>
27205         * tree-iterator.c (append_to_statement_list_1): Handle case that *list_p
27206         is not a STMT_LIST.
27208 2012-04-17  Uros Bizjak  <ubizjak@gmail.com>
27210         PR target/53020
27211         * config/i386/sync.md (atomic_<code><mode>): Rename to
27212         atomic_<logic><mode>.
27214 2012-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
27216         * rtl.def (ADDRESS): Turn operand into a HOST_WIDE_INT.
27217         * alias.c (reg_base_value): Expand and update comment.
27218         (arg_base_value): New variable.
27219         (unique_id): Move up file.
27220         (unique_base_value, unique_base_value_p, known_base_value_p): New.
27221         (find_base_value): Use arg_base_value and known_base_value_p.
27222         (record_set): Document REG_NOALIAS handling.  Use unique_base_value.
27223         (find_base_term): Use known_base_value_p.
27224         (base_alias_check): Use unique_base_value_p.
27225         (init_alias_target): Initialize arg_base_value.  Use unique_base_value.
27226         (init_alias_analysis): Use 1 as the first id for REG_NOALIAS bases.
27228 2012-04-17  Pat Haugen <pthaugen@us.ibm.com>
27230         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Remove DImode.
27232 2012-04-17  Michael Matz  <matz@suse.de>
27234         PR tree-optimization/18437
27235         * tree-vectorizer.h (_stmt_vec_info.stride_load_p): New member.
27236         (STMT_VINFO_STRIDE_LOAD_P): New accessor.
27237         (vect_check_strided_load): Declare.
27238         * tree-vect-data-refs.c (vect_check_strided_load): New function.
27239         (vect_analyze_data_refs): Use it to accept strided loads.
27240         * tree-vect-stmts.c (vectorizable_load): Ditto and handle them.
27242 2012-04-17  Richard Guenther  <rguenther@suse.de>
27244         PR middle-end/53011
27245         * tree-eh.c (cleanup_empty_eh_merge_phis): Properly discard
27246         loops when redirecting an entry or latch edge.
27248 2012-04-17  Bernd Schmidt  <bernds@codesourcery.com>
27250         * sel-sched.c (sel_global_init): Revert previous change.
27252 2012-04-17  Richard Guenther  <rguenther@suse.de>
27254         * tree-flow.h (array_at_struct_end_p): Move declaration ...
27255         * tree.h (array_at_struct_end_p): ... here.
27256         * tree-ssa-loop-niter.c (array_at_struct_end_p): Move ...
27257         * expr.c (array_at_struct_end_p): ... here.  Rewrite.
27259 2012-04-17  Steven Bosscher  <steven@gcc.gnu.org>
27261         * stmt.c (cost_table_, use_cost_table, cost_table_initialize,
27262         COST_TABLE): Remove.
27263         (estimate_case_costs): Remove.
27264         (expand_case): Do not call estimate_case_costs
27265         to set use_cost_table.
27266         (balance_case_nodes): Do not use use_cost_table.
27268 2012-04-16  Jan Hubicka  <jh@suse.cz>
27270         * cgraph.c (cgraph_hash, assembler_name_hash): Remove.
27271         (hash_node, eq_node): Remove.
27272         (cgraph_create_node): Do not handle hashtable.
27273         (cgraph_get_node): Remove.
27274         (cgraph_insert_node_to_hashtable): Remove.
27275         (hash_node_by_assembler_name): Remove.
27276         (eq_assembler_name): Remove.
27277         (cgraph_node_for_asm): Rewrite.
27278         (cgraph_find_replacement_node): Break out from ...
27279         (cgraph_remove_node): ... here; do not maintain hashtables.
27280         (change_decl_assembler_name): Remove.
27281         (cgraph_clone_node): Do not maintain hashtables.
27282         * cgraph.h (const_symtab_node): New typedef.
27283         (cgraph_insert_node_to_hashtable): Remove.
27284         (symtab_get_node, symtab_node_for_asm,
27285         symtab_insert_node_to_hashtable): Declare.
27286         (cgraph_find_replacement_node): Declare.
27287         (cgraph_get_node, varpool_get_node): Turn into inlines.
27288         (cgraph, varpool): Work sanely on NULL pointers.
27289         (FOR_EACH_SYMBOL): New walker.
27290         * ipa-inline-transform.c (save_inline_function_body): Use
27291         symtab_insert_node_to_hashtable.
27292         * symtab.c: Include ggc.h and diagnostics.h
27293         (symtab_hash, assembler_name_hash): New static vars;
27294         (hash_node, eq_node, hash_node_by_assembler_name,
27295         eq_assembler_name, insert_to_assembler_name_hash,
27296         unlink_from_assembler_name_hash): New.
27297         (symtab_register_node): Update hashtables.
27298         (symtab_insert_node_to_hashtable): New.
27299         (symtab_unregister_node): Update hashtables.
27300         (symtab_get_node): New.
27301         (symtab_node_for_asm): New.
27302         (change_decl_assembler_name): New.
27303         * Makefile.in (symtab.o): Needs GTY.
27304         * varpool.c (varpool_hash): Remove.
27305         (hash_varpool_node, eq_varpool_node, varpool_get_node): Remove.
27306         (varpool_node): Rewrite using varpool_get_node.
27307         (varpool_remove_node): DO not maintain hashtables.
27308         (varpool_node_for_asm): Rewrite.
27310 2012-04-16  Sandra Loosemore  <sandra@codesourcery.com>
27312         * doc/invoke.texi:  Copy-edit to put verbs in the present tense
27313         when describing the current behavior of GCC.
27315 2012-04-16  Richard Sandiford  <rdsandiford@googlemail.com>
27317         * genemit.c (gen_exp): Remove ADDRESS handling.
27318         * genoutput.c (scan_operands): Likewise.
27319         * genpeep.c (match_rtx): Likewise.
27320         * genrecog.c (add_to_sequence): Likewise.
27322 2012-04-16  David Edelsohn  <dje.gcc@gmail.com>
27324         * doc/install.texi (Specific, *-ibm-aix*): Update assembler bug status.
27326 2012-04-16  Martin Jambor  <mjambor@suse.cz>
27328         * tree-sra.c (build_ref_for_model): Create COMPONENT_REFs only for
27329         bit-fields.
27331 2012-04-16  Ulrich Weigand  <ulrich.weigand@linaro.org>
27333         PR target/51819
27334         * config/arm/arm.c (arm_print_operand): Fix invalid alignment
27335         hints for 'A' operand types.
27337 2012-04-16  Jan Hubicka  <jh@suse.cz>
27339         * cgraph.h (symtab_node_base): Add next and previous pointers.
27340         (cgraph_node): Remove next and preivous pointers.
27341         (varpool_node): Likewise; remove next/previous GTY marker;
27342         it is not type safe.
27343         (symtab_node_def): Update GTY marker
27344         (x_cgraph_nodes, cgraph_nodes): Remove.
27345         (symtab_nodes): New function.
27346         (cgraph_order): Rename to ...
27347         (symtab_order): ... this one.
27348         (symtab_register_node, symtab_unregister_node, symtab_remove_node):
27349         Declare.
27350         (x_varpool_nodes, varpool_nodes): Remove.
27351         (FOR_EACH_STATIC_VARIABLE): Update.
27352         (symtab_function_p, symtab_variable_p): New function.
27353         (FOR_EACH_VARIABLE): Update.
27354         (varpool_first_variable, varpool_next_variable): New functions.
27355         (FOR_EACH_VARIABLE): Update.
27356         (cgraph_first_defined_function): Update.
27357         (cgraph_next_defined_function, cgraph_next_defined_function): Update.
27358         (FOR_EACH_DEFINED_FUNCTION, FOR_EACH_FUNCTION): Update.
27359         (cgraph_first_function, cgraph_next_function): New.
27360         (FOR_EACH_FUNCTION): Update.
27361         (cgraph_first_function_with_gimple_body,
27362         cgraph_next_function_with_gimple_body): Update.
27363         * symtab.c: New file.
27364         * cgraph.c: Update copyright dates.
27365         (x_cgraph_nodes, cgraph_order): Remove.
27366         (NEXT_FREE_NODE): Update.
27367         (SET_NEXT_FREE_NODE): New.
27368         (cgraph_create_node_1): Remove common code.
27369         (cgraph_create_node): Remove common code; call symtab_register_node.
27370         (cgraph_remove_node): Remove common code; call symtab_unregister-node.
27371         (cgraph_add_asm_node): Update.
27372         (cgraph_clone_node): Register new node.
27373         * cgraphunit.c (process_function_and_variable_attributes): Update.
27374         (cgraph_analyze_functions): Update.
27375         (cgraph_analyze_functions): Update.
27376         (cgraph_output_in_order): Update.
27377         * lto-cgraph.c (input_node, input_varpool_node, input_cgraph_1):
27378         Update.
27379         * ipa-inline.c (recursive_inlining): Update.
27380         * lto-streamer-in.c (lto_input_toplevel_asms): Update.
27381         * ipa.c (cgraph_remove_unreachable_nodes): Update.
27382         * Makefile.in: Add symtab.o
27383         * varpool.c (x_varpool_nodes): Remove
27384         (varpool_node): Remove common code; call symtab_register_node.
27385         (varpool_remove_node): Remove common code; call symtab_unregister_node.
27387 2012-04-16  Richard Guenther  <rguenther@suse.de>
27389         PR middle-end/52977
27390         * tree.h (VECTOR_CST_NELTS): Adjust.
27391         (struct tree_vector): Add explicit length field.
27392         (make_vector_stat): Declare.
27393         (make_vector): Define.
27394         * tree.c (make_vector_stat): New function.
27395         (build_vector_stat): Use it.
27396         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
27398 2012-04-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27400         PR tree-optimization/52976
27401         * tree-ssa-reassoc.c (add_to_ops_vec_max_rank): New function.
27402         (undistribute_ops_list): Ops with repeat counts aren't eligible for
27403         undistribution.
27404         (attempt_builtin_powi): Call add_to_ops_vec_max_rank.
27406 2012-04-16  Jan Hubicka  <jh@suse.cz>
27408         * cgraph.h (FOR_EACH_VARIABLE, FOR_EACH_VARIABLE, FOR_EACH_FUNCTION):
27409         New macros.
27410         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Use FOR_EACH
27411         walkers to walk cgraph and varpool.
27412         * cgraph.c (cgraph_node_for_asm): Likewise.
27413         (dump_cgraph): Likewise.
27414         * value-prof.c (init_node_map): Likewise.
27415         * tree.c (free_lang_data_in_cgraph): Likewise.
27416         * tree-emutls.c: (ipa_lower_emutls): Likewise.
27417         * ipa-reference.c (generate_summary, propagate): Likewise.
27418         * cgraphunit.c (verify_cgraph, cgraph_process_same_body_aliases,
27419         cgraph_mark_functions_to_output, cgraph_output_in_order,
27420         output_weakrefs, cgraph_materialize_all_clones,
27421         cgraph_optimize): Likewise.
27422         * lto-cgraph.c (merge_profile_summaries): Likewise.
27423         (input_cgraph): Likewise.
27424         * ipa-pure-const.c (generate_summary): Likewise.
27425         (propagate): Likwise.
27426         * ipa-utils.c (ipa_reduced_postorder): Likewise.
27427         (ipa_free_postorder_info): Likewise.
27428         (ipa_reverse_postorder): Likewise.
27429         * ipa-inline.c (ipa_inline): Likewise.
27430         * matrix-reorg.c (find_matrices_decl): Likewise.
27431         (matrix_reorg): Likewise.
27432         * tree-vectorizer.c (increase_alignment): Likewise.
27433         * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
27434         (function_and_variable_visibility): Likewise.
27435         (whole_program_function_and_variable_visibility): Likewise.
27436         (ipa_cdtor_merge): Likewise.
27437         * trans-mem.c (ipa_tm_execute): Likewise.
27438         * ipa-inline-analysis.c (dump_inline_summaries): Likewise.
27439         * ipa-prop.c (ipa_print_all_jump_functions): Likewise.
27440         (ipa_print_all_params): Likewise.
27441         (ipa_update_after_lto_read): Likewise.
27442         * tree-profie.c (tree_profiling): Likewise.
27443         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
27444         * passes.c (dump_passes): Likewise.
27445         (do_per_function): Likewise.
27446         (ipa_write_summaries): Likewise.
27447         * varpool.c (dump_varpool): Likewise.
27448         (varpool_node_for_asm): Likewise.
27449         (varpool_assemble_pending_decls): Likewise.
27451 2012-04-16  Richard Guenther  <rguenther@suse.de>
27453         PR tree-optimization/52975
27454         * tree-if-conv.c (predicate_bbs): Do not simplify inverted
27455         condition but always mark it with TRUTH_NOT_EXPR.
27457 2012-04-16  Richard Guenther  <rguenther@suse.de>
27459         PR tree-optimization/52975
27460         * tree-ssa-forwprop.c (combine_cond_exprs): New function.
27461         (ssa_forward_propagate_and_combine): Call it for COND_EXPRs
27462         and VEC_COND_EXPRs.  Also combine into VEC_COND_EXPRs condition.
27463         * fold-const.c (operand_equal_p): Handle TARGET_MEM_REF.
27465 2012-04-14  Uros Bizjak  <ubizjak@gmail.com>
27467         * config/i386/sse.md (ssse3_plusminus): New code iterator.
27468         (avx2_ph<plusminus_mnemonic>wv16hi3): Macroize insn from
27469         avx2_ph{add,adds,sub,subs}wv16hi3 using ssse3_plusminus code iterator.
27470         (ssse3_ph<plusminus_mnemonic>wv8hi3): Macroize insn from
27471         ssse3_ph{add,adds,sub,subs}wv8hi3 using ssse3_plusminus code iterator.
27472         (ssse3_ph<plusminus_mnemonic>wv4hi3): Macroize insn from
27473         ssse3_ph{add,adds,sub,subs}wv4hi3 using ssse3_plusminus code iterator.
27475         (avx2_ph<plusminus_mnemonic>dv8si3): Macroize insn from
27476         avx2_ph{add,adds,sub,subs}dv8si3 using plusminus code iterator.
27477         (ssse3_ph<plusminus_mnemonic>dv4si3): Macroize insn from
27478         ssse3_ph{add,adds,sub,subs}dv4si3 using plusminus code iterator.
27479         (ssse3_ph<plusminus_mnemonic>dv2si3): Macroize insn from
27480         ssse3_ph{add,adds,sub,subs}dv2si3 using plusminus code iterator.
27482         (xop_plus): New code iterator.
27483         (macs): New code attribute.
27484         (macds): Ditto.
27485         (xop_p<macs><ssemodesuffix><ssemodesuffix>): Macroize insn from
27486         xop_pmacs{,s}{ww,dd} using xop_plus code iterator and VI24_128 mode
27487         iterator.
27488         (xop_p<macs>dql): Macroize insn from xop_pmacs{,s}dql using
27489         xop_plus code iterator.
27490         (xop_p<macs>dqh): Macroize insn from xop_pmacs{,s}dqh using
27491         xop_plus code iterator.
27492         (xop_p<macs>wd): Macroize insn from xop_pmacs{,s}wd using
27493         xop_plus code iterator.
27494         (xop_p<madcs>wd): Macroize insn from xop_pmadcs{,s}wd using
27495         xop_plus code iterator.
27497         (xop_phadd<u>bw): Macroize insn from xop_phadd{,u}bw usign
27498         any_extend code iterator.
27499         (xop_phadd<u>bd): Macroize insn from xop_phadd{,u}bd usign
27500         any_extend code iterator.
27501         (xop_phadd<u>bq): Macroize insn from xop_phadd{,u}bq usign
27502         any_extend code iterator.
27503         (xop_phadd<u>wd): Macroize insn from xop_phadd{,u}wd usign
27504         any_extend code iterator.
27505         (xop_phadd<u>wq): Macroize insn from xop_phadd{,u}wq usign
27506         any_extend code iterator.
27507         (xop_phadd<u>dq): Macroize insn from xop_phadd{,u}dq usign
27508         any_extend code iterator.
27510 2012-04-14  Tom de Vries  <tom@codesourcery.com>
27512         * cfgcleanup.c (try_optimize_cfg): Replace call to delete_insn_chain by
27513         call to delete_insn.  Remove code to reorder BASIC_BLOCK note and
27514         DELETED_LABEL note, and move it to ...
27515         * cfgrtl.c (delete_insn): ... here.  Change return type to void.
27516         (delete_insn_and_edges): Likewise.
27517         (delete_insn_chain): Handle new return type of delete_insn.  Delete
27518         chain backwards rather than forwards.
27519         * rtl.h (delete_insn, delete_insn_and_edges): Change return type to
27520         void.
27521         * cfglayout.c (fixup_reorder_chain): Delete unused label.
27523 2012-04-14  Jan Hubicka  <jh@suse.cz>
27525         * cgraph.h: Update copyrights;
27526         (symtab_node): Turn to union typedef.
27527         (symtab_node_base): New structure.
27528         (symtab_type): Add SYMTAB_SYMBOL tag.
27529         (cgraph_node): Annotate some pinters with nested_ptr.
27530         (varpool_node): Likewise.
27531         (cgraph_local_info): Remove lto_file_data
27532         and externally_visible.
27533         (cgraph_node): Remove decl; same_comdat_group list;
27534         aux; ref_list; order; address_taken; reachable_from_other_parittion,
27535         in_other_partition; resolution.
27536         (varpool_node): Remove decl; same_comdat_group;
27537         ref_list; lto_file_data; aux; order; resolution; externally_visible;
27538         used_from_other_partition; in_other_partition.
27539         (symtab_node_def): New union.
27540         (cgraph, varpool): Update.
27541         (varpool_first_static_initializer, varpool_next_static_initializer,
27542         cgraph_only_called_directly_or_aliased_p,
27543         varpool_can_remove_if_no_refs, varpool_can_remove_if_no_refs,
27544         varpool_all_refs_explicit_p, cgraph_alias_aliased_node,
27545         varpool_alias_aliased_node, cgraph_edge_recursive_p): Update
27546         field references.
27547         * cgraph.c: Likewise.
27548         (cgraph_hash, assembler_name_hash): Turn into symtab_node.
27549         * cgraphbuild.c: Likewise.
27550         * lto-symtab.c: Likewise.
27551         * c-gimplify.c: Likewise.
27552         * value-prof.c: Likewise.
27553         * tree.c: Likewise.
27554         * ipa-cp.c: Likewise.
27555         * tree-emutls.c: Likewise.
27556         * ipa-inline-transform.c: Likwise.
27557         * ipa-reference.c: Likewise.
27558         * cgraphunit.c: Likewise.
27559         * ipa-ref.c: Likewise.
27560         * lto-cgraph.c: Likewise.
27561         * ipa-ref-inline.h: Likewise.
27562         * ipa-pure-const.c: Likewise.
27563         * lto-streamer-out.c: Likewise.
27564         * ipa-utils.c: Likewise.
27565         * ipa-inline.c: Likewise.
27566         * matrix-reorg.c: Likewise.
27567         * tree-eh.c: Likewise.
27568         * tree-vectorizer.c: Likewise.
27569         * ipa-split.c: Likewise.
27570         * ipa.c: Likewise.
27571         * trans-mem.c: Likewise.
27572         * ipa-inline-analysis.c: Likewise.
27573         * gimplify.c: Likewise.
27574         * cfgexpand.c: Likewise.
27575         * tree-sra.c: Likewise.
27576         * ipa-prop.c: Likewise.
27577         * varasm.c: Likewise.
27578         * tree-nested.c: Likewise.
27579         * tree-inline.c: Likewise.
27580         * tree-profile.c: Likewise.
27581         * tree-ssa-structalias.c: Likewise.
27582         * passes.c: Likewise.
27583         * varpool.c: Likewise.
27585 2012-04-14  Tom de Vries  <tom@codesourcery.com>
27587         * tree-ssa-tail-merge.c (stmt_local_def): New function, factored out of
27588         same_succ_hash, with local_def inlined.  Use SINGLE_SSA_DEF_OPERAND.
27589         Use FOR_EACH_IMM_USE_FAST instead of FOR_EACH_IMM_USE_STMT.  Remove use
27590         of find_edge.
27591         (gsi_advance_fw_nondebug_nonlocal): New function.
27592         (local_def): Removed function.
27593         (same_succ_hash): Use stmt_local_def.
27594         (same_succ_equal): Use gsi_advance_fw_nondebug_nonlocal.
27595         (gsi_advance_bw_nondebug_nonlocal): Use stmt_local_def.
27597 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
27599         * config/i386/i386-c.c (ix86_target_macros): Define _ILP32
27600         and __ILP32__ for x32.
27602 2012-04-13  Martin Jambor  <mjambor@suse.cz>
27604         PR middle-end/52939
27605         * gimple-fold.c (gimple_get_virt_method_for_binfo): Bail out if
27606         fold_ctor_reference returns a zero constant.
27608 2012-04-13  Enkovich Ilya  <ilya.enkovich@intel.com>
27610         * config.gcc: Add i386/gnu-user-common.h before all
27611         i386/gnu-user.h and i386/gnu-user64.h usages.
27613         * config/i386/gnu-user-common.h: New.
27615         * config/i386/gnu-user.h (CPP_SPEC): Moved to gnu-user-common.h.
27616         (CC1_SPEC): Likewise.
27617         (ENDFILE_SPEC): Likewise.
27618         (DEFAULT_PCC_STRUCT_RETURN): Likewise.
27619         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Likewise.
27620         (TARGET_OS_CPP_BUILTINS): Likewise.
27621         (LIBGCC2_HAS_TF_MODE): Likewise.
27622         (LIBGCC2_TF_CEXT): Likewise.
27623         (TF_SIZE): Likewise.
27624         (TARGET_ASM_FILE_END): Likewise.
27625         (STACK_CHECK_MOVING_SP): Likewise.
27626         (STACK_CHECK_STATIC_BUILTIN): Likewise.
27627         * config/i386/gnu-user64.h: Likewise.
27629 2012-04-13  Martin Jambor  <mjambor@suse.cz>
27631         * expr.c (expand_expr_real_1): Pass type, not the expression, to
27632         set_mem_attributes for a memory temporary. Do not call the function
27633         for the memory temporary created for a bitfield.
27635 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
27637         PR debug/48866
27638         * df.h (enum debug_temp_where): New.
27639         (dead_debug_init, dead_debug_finish) Declare.
27640         (dead_debug_add, dead_debug_insert_temp): Declare.
27641         (struct dead_debug_use, struct dead_debug): Moved from...
27642         * df-problems.c: ... here.
27643         (df_set_unused_notes_for_mw): Bind debug uses of unused regno
27644         to a debug temp.
27645         (df_create_unused_note): Likewise.
27646         (df_set_dead_notes_for_mw): Move comment where it belongs.
27647         (dead_debug_init): Export.
27648         (dead_debug_reset_uses): New, factored out of...
27649         (dead_debug_finish): ...this.  Export.
27650         (dead_debug_reset): Remove.
27651         (dead_debug_add): Export.
27652         (dead_debug_insert_before): Rename to...
27653         (dead_debug_insert_temp): ... this.  Add where argument.  Export.
27654         Locate stored value for BEFORE_WITH_VALUE.  Avoid repeat inserts.
27655         Return insertion count.
27656         (df_note_bb_compute): Adjust.
27657         * dce.c (word_dce_process_block): Adjust dead debug uses.
27658         (dce_process_block): Likewise.
27660 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
27662         * df-problems.c (df_note_bb_compute): Do not take note of
27663         debug uses for whose REGs we won't emit DEAD or UNUSED notes.
27665 2012-04-13  Alexandre Oliva  <aoliva@redhat.com>
27667         PR debug/51570
27668         * var-tracking.c (expand_depth): New type.
27669         (onepart_aux, expand_loc_callback_data): Change depth type to it.
27670         (loc_exp_dep_alloc): Adjust initializer.
27671         (update_depth): Use new type.  Add entryvals.
27672         (vt_expand_var_loc_chain): Take note of expansions with
27673         ENTRY_VALUEs, but don't accept them right away.  Run an optional
27674         second pass accepting the minimum ENTRY_VALUE count found in the
27675         first pass.
27676         (vt_expand_loc_callback, INIT_ELCD): Adjust.
27678 2012-04-13  Tom de Vries  <tom@codesourcery.com>
27680         * tree-ssa-tail-merge.c (gsi_advance_bw_nondebug_nonlocal): Add
27681         parameters vuse and vuse_escaped.
27682         (find_duplicate): Init vuse1, vuse2 and vuse_escaped.  Pass to
27683         gsi_advance_bw_nondebug_nonlocal.  Return if vuse_escaped and
27684         vuse1 != vuse2.
27686 2012-04-13  Richard Guenther  <rguenther@suse.de>
27688         PR tree-optimization/52969
27689         * tree-if-conv.c (predicate_mem_writes): Properly gimplify
27690         the condition for the COND_EXPR and handle predicate negation
27691         by swapping the COND_EXPR arms.
27693 2012-04-13  Nick Clifton  <nickc@redhat.com>
27695         * config/rl78/rl78.c (rl78_devirt_pass): Remove use of
27696         TODO_dump_func flag.
27698 2012-04-13  Andrey Belevantsev  <abel@ispras.ru>
27700         PR rtl-optimization/52203
27701         PR rtl-optimization/52715
27703         Revert the 2012-03-07 fix for PR 52203.
27704         * sel-sched.c (reset_sched_cycles_in_current_ebb): Check that
27705         the insn does not modify DFA right before issuing, adjust
27706         issue_rate accordingly.
27708 2012-04-13  Richard Guenther  <rguenther@suse.de>
27710         PR c/52549
27711         * c-typeck.c (pointer_diff): Remove bogus assert.
27713 2012-04-13  Richard Guenther  <rguenther@suse.de>
27715         PR c/52862
27716         * convert.c (convert_to_pointer): Remove special-casing of zero.
27718 2012-04-13  Joey Ye  <joey.ye@arm.com>
27720         * config/arm/constraints.md (Pe): New constraint.
27721         * config/arm/arm.md: New split for imm 256-510.
27723 2012-04-13  Terry Guo  <terry.guo@arm.com>
27725         * config/arm/arm-cores.def: Added core cortex-m0plus.
27726         * config/arm/arm-tune.md: Regenerated.
27727         * config/arm/arm-tables.opt: Regenerated.
27728         * doc/invoke.texi: Added entry for cpu ARM cortex-m0plus.
27730 2012-04-13  Alan Modra  <amodra@gmail.com>
27732         PR target/52828
27733         * config/rs6000/rs6000.c (rs6000_emit_stack_tie): Rewrite with
27734         tie regs on destination of sets.  Delete forward declaration.
27735         (rs6000_emit_stack_reset): Update rs6000_emit_stack_tie calls.
27736         (rs6000_emit_prologue): Likewise.
27737         (rs6000_emit_epilogue): Likewise.  Use in place of gen_frame_tie
27738         and gen_stack_tie.
27739         (is_mem_ref): Use tie_operand to recognise stack ties.
27740         * config/rs6000/predicates.md (tie_operand): New.
27741         * config/rs6000/rs6000.md (restore_stack_block): Generate new
27742         stack tie rtl.
27743         (restore_stack_nonlocal): Likewise.
27744         (stack_tie): Update.
27745         (frame_tie): Delete.
27747 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27749         * tree-ssa-reassoc.c (attempt_builtin_powi_stats): Change %ld to
27750         HOST_WIDE_INT_PRINT_DEC in format strings.
27752 2012-04-12  Uros Bizjak  <ubizjak@gmail.com>
27754         PR target/52932
27755         * config/i386/avx2intrin.h (_mm256_permutevar8x32_ps): Change second
27756         argument type to __m256i.  Update call to __builtin_ia32_permvarsf256.
27757         * config/i386/sse.md (UNSPEC_VPERMVAR): New.
27758         (UNSPEC_VPERMSI, UNSPEC_VPERMSF): Remove.
27759         (avx2_permvarv8sf, avx2_permvarv8si): Switch operands 1 and 2.
27760         (avx2_permvar<mode>): Macroize insn from avx2_permvarv8sf and
27761         avx2_permvarv8si using VI4F_256 mode iterator.
27762         * config/i386/i386.c (bdesc_args) <__builtin_ia32_permvarsf256>:
27763         Update builtin type to V8SF_FTYPE_V8SF_V8SI.
27764         (ix86_expand_vec_perm): Update calls to gen_avx2_permvarv8si and
27765         gen_avx2_permvarv8sf.
27766         (expand_vec_perm_pshufb): Ditto.
27768 2012-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
27770         PR target/52775
27771         * config/rs6000/rs6000.h (TARGET_FCFID): Add TARGET_PPC_GPOPT to
27772         the list of options to enable the FCFID instruction.
27773         (TARGET_EXTRA_BUILTINS): Adjust comment.
27775 2012-04-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27777         PR tree-optimization/18589
27778         * tree-ssa-reassoc.c (reassociate_stats): Add two fields.
27779         (operand_entry): Add count field.
27780         (add_repeat_to_ops_vec): New function.
27781         (completely_remove_stmt): Likewise.
27782         (remove_def_if_absorbed_call): Likewise.
27783         (remove_visited_stmt_chain): Remove feeding builtin pow/powi calls.
27784         (acceptable_pow_call): New function.
27785         (linearize_expr_tree): Look for builtin pow/powi calls and add operand
27786         entries with repeat counts when found.
27787         (repeat_factor_d): New struct and associated typedefs.
27788         (repeat_factor_vec): New static vector variable.
27789         (compare_repeat_factors): New function.
27790         (get_reassoc_pow_ssa_name): Likewise.
27791         (attempt_builtin_powi): Likewise.
27792         (reassociate_bb): Call attempt_builtin_powi.
27793         (fini_reassoc): Two new calls to statistics_counter_event.
27795 2012-04-12  Richard Guenther  <rguenther@suse.de>
27797         * Makefile.in (cgraphunit.o): Add $(EXCEPT_H) dependency.
27798         * cgraph.h (tree_rest_of_compilation): Remove.
27799         * cgraph.c (cgraph_add_new_function): Move ...
27800         * cgraphunit.c (cgraph_add_new_function): ... here.
27801         (tree_rest_of_compilation): Make static.
27802         (cgraph_expand_function): Do not set cgraph_function_flags_ready.
27803         * tree-optimize.c (gate_all_optimizations, pass_all_optimizations,
27804         gate_all_early_local_passes, execute_all_early_local_passes,
27805         pass_early_local_passes, gate_all_early_optimizations,
27806         pass_all_early_optimizations): Move ...
27807         * passes.c (gate_all_optimizations, pass_all_optimizations,
27808         gate_all_early_local_passes, execute_all_early_local_passes,
27809         pass_early_local_passes, gate_all_early_optimizations,
27810         pass_all_early_optimizations): ... here.
27811         * tree-optimize.c (execute_free_datastructures): Remove.
27812         * tree-flow.h (execute_free_datastructures): Remove.
27813         * tree-optimize.c (execute_init_datastructures,
27814         pass_init_datastructures): Move ...
27815         * tree-ssa.c (execute_init_datastructures,
27816         pass_init_datastructures): ... here.
27817         * cfgexpand.c (gimple_expand_cfg): Inline-expand call to
27818         execute_free_datastructures.
27820 2012-04-12  Bernd Schmidt  <bernds@codesourcery.com>
27822         * dbgcnt.def (ira_move): New counter.
27823         * ira-int.h (ira_create_new_reg): Declare function.
27824         (first_moveable_pseudo, last_moveable_pseudo): Declare variables.
27825         * ira-emit.c (ira_create_new_reg): Renamed from craete_new_reg and
27826         no longer static.  All callers changed.
27827         * ira.c: Include "dbgcnt.h".
27828         (rtx_moveable_p, insn_dominated_by_p, find_moveable_pseudos,
27829         move_unallocated_pseudos): New static functions.
27830         (first_moveable_pseudo, last_moveable_pseudo): New global variables.
27831         (pseudo_replaced_reg, pseudo_move_insn): New static variables.
27832         (ira): Call find_moveable_pseudos and move_unallocated_pseudos.
27833         * ira-costs.c (find_costs_and_classes): Assign a memory cost of zero
27834         to the pseudos generated in find_moveable_pseudos.
27835         * Makefile.in (ira.o): Add $(DBGCNT_H).
27837 2012-04-12  Richard Guenther  <rguenther@suse.de>
27839         PR tree-optimization/52943
27840         * tree-chrec.h (chrec_is_positive): Remove.
27841         * tree-scalar-evolution.c (chrec_is_positive): Move ...
27842         * tree-data-ref.c (chrec_is_positive): ... here.  Make static.
27843         Return false for a constant zero instead of negative.
27844         (analyze_siv_subscript_cst_affine): Handle zero difference
27845         in the initial condition explicitely.
27847 2012-04-12  Richard Guenther  <rguenther@suse.de>
27849         * tree-parloops.c (parallelize_loops): Also consult the upper
27850         bound for the number of iterations.
27851         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
27852         (loop_prefetch_arrays): Likewise.
27854 2012-04-12  Richard Guenther  <rguenther@suse.de>
27856         * cfgloop.h (estimated_loop_iterations_int): Ditch
27857         'conservative' parameter.
27858         (max_stmt_executions_int): Likewise.
27859         (estimated_loop_iterations): Likewise.
27860         (max_stmt_executions): Likewise.
27861         (max_loop_iterations): Declare.
27862         (max_loop_iterations_int): Likewise.
27863         (estimated_stmt_executions): Likewise.
27864         (estimated_stmt_executions_int): Likewise.
27865         * tree-ssa-loop-niter.c (estimated_loop_iterations):
27866         Split parts to ...
27867         (max_loop_iterations): ... this.
27868         (estimated_loop_iterations_int): Split parts to ...
27869         (max_loop_iterations_int): ... this.
27870         (max_stmt_executions_int): Split parts to ...
27871         (estimated_stmt_executions_int): ... this.
27872         (max_stmt_executions): Split parts to ...
27873         (estimated_stmt_executions): ... this.
27874         * graphite-sese-to-poly.c (build_loop_iteration_domains): Adjust.
27875         * predict.c (predict_loops): Likewise.
27876         * tree-data-ref.c (max_stmt_executions_tree): Likewise.
27877         (analyze_siv_subscript_cst_affine): Likewise.
27878         (compute_overlap_steps_for_affine_1_2): Likewise.
27879         (analyze_subscript_affine_affine): Likewise.
27880         (init_omega_for_ddr_1): Likewise.
27881         * tree-parloops.c (parallelize_loops): Likewise.
27882         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
27883         (may_eliminate_iv): Likewise.
27884         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
27885         (loop_prefetch_arrays): Likewise.
27886         * tree-vrp.c (adjust_range_with_scev): Likewise.
27888 2012-04-12  Oleg Endo  <olegendo@gcc.gnu.org>
27890         * config/sh/sh.h (RETURN_ADDR_RTX): Use NULL_RTX instead of 0.
27891         * config/sh/sh.c (INSN_REGMODE_WEIGHT, CURR_REGMODE_PRESSURE):
27892         Fix line width.
27893         (dump_table): Use bool type for need_align and have_df variables.
27894         (find_barrier, sfunc_uses_reg): Use NULL_RTX instead of 0.
27895         (regs_used): Remove register modifier.
27896         (barrier_align): Move variables slot, credit, jump_to_next
27897         into if block above for loop.  Use bool type for jump_to_next.
27898         (sh_function_arg): Use NULL_RTX instead of 0.
27900 2012-04-11  Andreas Schwab  <schwab@linux-m68k.org>
27902         * config/m68k/m68k.md (rotrhi3+1): Name it rotrhi_lowpart.
27903         (bswapsi2): New expander.
27905 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
27907         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Defined to
27908         0x60000000 if __x86_64 is defined and __LP64__ isn't defined.
27910 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
27912         PR rtl-optimization/52876
27913         * emit-rtl.c (set_reg_attrs_from_value): Handle arbitrary value.
27914         Don't call mark_reg_pointer for incompatible pointer sign extension.
27916         * reginfo.c (reg_scan_mark_refs): Call set_reg_attrs_from_value
27917         directly.
27919 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
27921         * fold-const.c (fold_unary_loc): Use GET_MODE_PRECISION for
27922         comparisons against TYPE_PRECISION.
27923         * tree-ssa-forwprop.c (combine_conversions): Likewise.
27925 2012-04-11  Xinliang David Li  <davidxl@google.com>
27927         * tree-passes.h: Remove TODO_dump_func.
27928         * tree-ssa-tail-merge.c (tail_merge_optimize): Remove TODO_dump_func.
27929         * trans-mem.c: Remove TODO_dump_func.
27930         * ira.c: Remove TODO_dump_func.
27932 2012-04-11  H.J. Lu  <hongjiu.lu@intel.com>
27934         * config/i386/i386.c (ix86_option_override_internal): Check
27935         SUBTARGET_OVERRIDE_OPTIONS and SUBSUBTARGET_OVERRIDE_OPTIONS
27936         after TARGET_64BIT is updated.
27938 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
27940         * config/sh/sh.h: Remove old secondary reload code.
27942 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
27944         * config/sh/sh.c (SCHED_REORDER): Merge macro into ...
27945         (ready_reorder): ... this function.
27947 2012-04-11  Bernd Schmidt  <bernds@codesourcery.com>
27949         * sel-sched.c (sel_global_init): Swap order of sched_rgn_init and
27950         sched_init calls.
27952         * haifa-sched.c (prune_ready_list): Rework handling of SCHED_GROUP_P
27953         insns so that no other insn is queued for a time before them.
27955         * config/c6x/c6x.md (load_got_gotoff): Set op_pattern attribute to
27956         unknown.
27958 2012-04-11  Richard Guenther  <rguenther@suse.de>
27960         PR middle-end/52621
27961         * tree-chrec.c (evolution_function_is_invariant_rec_p): Properly
27962         consider loop nesting.
27963         (evolution_function_is_univariate_p): Properly check the remainder
27964         for chrecs.
27966 2012-04-11  Richard Guenther  <rguenther@suse.de>
27968         PR middle-end/52918
27969         * except.c (sjlj_emit_dispatch_table): Properly update loop structure.
27971 2012-04-11  Nick Clifton  <nickc@redhat.com>
27973         * config/rl78/rl78.c (rl78_expand_prologue): Set stack use
27974         information, if requested.
27976         * config/rx/rx.c (rx_expand_prologue): Likewise.
27978 2012-04-11  Peter Bergner  <bergner@vnet.ibm.com>
27979             Michael Matz  <matz@suse.de>
27981         PR target/16458
27982         * rtlanal.c (unsigned_reg_p): New function.
27983         Update copyright notice dates.
27984         * rtl.h (unsigned_reg_p): Prototype it.
27985         Update copyright notice dates.
27986         * config/rs6000/rs6000.c (rs6000_generate_compare): Use it.
27987         Update comment.
27988         * expr.c (expand_expr_real_1): Set register attributes.
27989         * stmt.c (expand_case): Likewise.
27991 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
27993         PR target/50751
27994         * config/sh/sh-protos.h (sh_legitimate_index_p): Add new arguments
27995         consider_sh2a and allow_zero.
27996         * config/sh/sh.c (sh_legitimate_index_p): Likewise.
27997         (disp_addr_displacement): New function.
27998         (sh_address_cost): Use disp_addr_displacement function instead
27999         of DISP_ADDR_OFFSET.
28000         (sh_legitimate_address_p): Adapt to changed
28001         sh_legitimate_index_p declaration.
28002         (sh_find_mov_disp_adjust): Remove HImode check.
28003         (sh_secondary_reload): Add HImode case.  Use satisfies_constraint_Sdd,
28004         disp_addr_displacement and max_mov_insn_displacement.
28005         (max_mov_insn_displacement): Remove HImode check.
28006         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12,
28007         DISP_ADDR_P, DISP_ADDR_OFFSET): Remove.
28008         * config/sh/constraints.md (K05, K13): New constraints.
28009         (K12): Correct comment.
28010         (Sdd): Do not use DISP_ADDR_P macro.
28011         (Snd, Sbw): Use satisfies_constraint_Sdd.
28012         * config/sh/sh.md (extendhisi2): Remove constraints from expander.
28013         (*extendhisi2_compact, movhi_i): Remove.
28014         (*extendhisi2_compact_reg, *extendhisi2_compact_mem_disp,
28015         *extendhisi2_compact_mem_disp, *extendhisi2_compact_snd,
28016         *movhi_reg_reg, *movhi_store_mem_disp05, *movhi_store_mem_disp13,
28017         *movhi_load_mem_disp, *movhi_load_mem_disp, *movhi): New insns.
28018         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_mem_disp,
28019         *movqi_store_mem_disp04, *movqi_store_mem_disp12, *movqi_load_mem_disp,
28020         *movqi_load_mem_disp): Use sh_legitimate_index_p instead of
28021         CONST_OK_FOR_Kxx.
28022         Add new peepholes for HImode displacement addressing.
28024 2012-04-11  Oleg Endo  <olegendo@gcc.gnu.org>
28026         * config/sh/sh.h (SIDI_OFF): Remove.
28027         * config/sh/sh.md: Use gen_highpart and gen_lowpart to access
28028         DImode subregs instead of gen_rtx_REG or simplifly_gen_subreg
28029         or operand_subword.
28031 2012-04-11  Eric Botcazou  <ebotcazou@adacore.com>
28033         PR target/52624
28034         * doc/extend.texi (Other Builtins): Document __builtin_bswap16.
28035         (PowerPC AltiVec/VSX Built-in Functions): Remove it.
28036         * doc/md.texi (Standard Names): Add bswap.
28037         * builtin-types.def (BT_UINT16): New primitive type.
28038         (BT_FN_UINT16_UINT16): New function type.
28039         * builtins.def (BUILT_IN_BSWAP16): New.
28040         * builtins.c (expand_builtin_bswap): Add TARGET_MODE argument.
28041         (expand_builtin) <BUILT_IN_BSWAP16>: New case.  Pass TARGET_MODE to
28042         expand_builtin_bswap.
28043         (fold_builtin_bswap): Add BUILT_IN_BSWAP16 case.
28044         (fold_builtin_1): Likewise.
28045         (is_inexpensive_builtin): Likewise.
28046         * optabs.c (expand_unop): Deal with bswap in HImode specially.  Add
28047         missing bits for bswap to libcall code.
28048         * tree.c (build_common_tree_nodes): Build uint16_type_node.
28049         * tree.h (enum tree_index): Add TI_UINT16_TYPE.
28050         (uint16_type_node): New define.
28051         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_BSWAP_HI): Delete.
28052         * config/rs6000/rs6000.c (rs6000_expand_builtin): Remove handling of
28053         above builtin.
28054         (rs6000_init_builtins): Likewise.
28055         * config/rs6000/rs6000.md (bswaphi2): Add TARGET_POWERPC predicate.
28057 2012-04-11  Tristan Gingold  <gingold@adacore.com>
28059         * doc/extend.texi (Type Attributes): Move paragraph.
28061 2012-04-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28063         PR 24985
28064         * diagnostic.h (show_caret): Declare.
28065         (caret_max_width): Declare.
28066         (diagnostic_show_locus): Declare.
28067         * diagnostic.c (diagnostic_initialize): Initialize to false.
28068         (diagnostic_show_locus): New.
28069         (diagnostic_report_diagnostic): Call it.
28070         (getenv_columns): New.
28071         (adjust_line): New.
28072         (diagnostic_set_caret_max_width): New.
28073         * input.c (read_line): New.
28074         (location_get_source_line): New.
28075         * input.h (location_get_source_line): Declare.
28076         * toplev.c (general_init): Initialize show_caret from options.
28077         * dwarf2out.c (gen_producer_string): Handle fdiagnostics-show-caret.
28078         * opts.c (common_handle_option): Likewise.
28079         * pretty-print.h (pp_get_prefix): New.
28080         (pp_base_get_prefix): New.
28081         * common.opt (fdiagnostics-show-caret): New option.
28082         * doc/invoke.texi (fdiagnostics-show-caret): Document it.
28084 2012-04-11  Richard Guenther  <rguenther@suse.de>
28086         PR rtl-optimization/52881
28087         * ifcvt.c (find_if_case_2): Avoid speculating loop latches.
28089 2012-04-11  Richard Guenther  <rguenther@suse.de>
28091         PR tree-optimization/52912
28092         * tree-ssa-threadupdate.c (thread_block): Tell the cfg
28093         manipulation code we are threading through a loop header
28094         to an exit destination.
28096 2012-04-10  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28098         * tree.h (warn_if_unused_value): Move declaration from here.
28099         * stmt.c (warn_if_unused_value): Move definition from here.
28101 2012-04-10  Michael Matz  <matz@suse.de>
28103         * tree-vectorizer.h (_loop_vec_info.strided_stores): Rename to
28104         grouped_stores.
28105         (LOOP_VINFO_STRIDED_STORES): Rename to LOOP_VINFO_GROUPED_STORES.
28106         (struce _bb_vec_info.strided_stores): Rename to grouped_stores.
28107         (BB_VINFO_STRIDED_STORES): Rename to BB_VINFO_GROUPED_STORES.
28108         (STMT_VINFO_STRIDED_ACCESS): Rename to STMT_VINFO_GROUPED_ACCESS.
28109         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
28110         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
28111         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
28112         (vect_record_strided_load_vectors): Rename to
28113         vect_record_grouped_load_vectors.
28114         * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
28115         Rename use of above macros.
28116         (vect_verify_datarefs_alignment): Ditto.
28117         (vector_alignment_reachable_p): Ditto.
28118         (vect_peeling_hash_get_lowest_cost): Ditto.
28119         (vect_enhance_data_refs_alignment): Ditto.
28120         (vect_analyze_group_access): Ditto and rename stride to groupsize.
28121         (vect_analyze_data_ref_access): Rename "strided" to "grouped".
28122         (vect_strided_store_supported): Rename to vect_grouped_store_supported.
28123         (vect_strided_load_supported): Rename to vect_grouped_load_supported.
28124         (vect_transform_strided_load): Rename to vect_transform_grouped_load.
28125         (vect_record_strided_load_vectors): Rename to
28126         vect_record_grouped_load_vectors.
28127         * tree-vect-loop.c (new_loop_vec_info): Rename use of above macros.
28128         (destroy_loop_vec_info): Ditto.
28129         (vect_transform_loop): Ditto and rename strided_store to grouped_store.
28130         * tree-vect-slp.c (vect_build_slp_tree): Rename use of above macros.
28131         (vect_analyze_slp): Ditto.
28132         (new_bb_vec_info): Ditto.
28133         (destroy_bb_vec_info): Ditto.
28134         (vect_schedule_slp_instance): Ditto and rename strided_store to
28135         grouped_store.
28136         * tree-vect-stmts.c (vect_cost_strided_group_size): Rename to
28137         vect_cost_group_size.
28138         (vect_model_store_cost): Rename use of above macros and call
28139         to vect_cost_strided_group_size.
28140         (vect_model_load_cost): Ditto.
28141         (vectorizable_store): Ditto, rename strided_store to grouped_store
28142         and calls to renamed tree-vectorizer.h functions.
28143         (vectorizable_load): Ditto.
28144         (vect_transform_stmt): Rename use of above macros and strided_store
28145         to grouped_store.
28147 2012-04-10  Jan Hubicka  <jh@suse.cz>
28149         * cgraph.h: Remove misledaing comment on ipa-ref.h.
28150         (symtab_type): New enum.
28151         (symtab_node): New structure.
28152         (cgraph_node, varpool_node): Add symbol base type.
28153         (cgraph, varpool): New accestor functions.
28154         * cgraph.c (cgraph_create_node_1): Set symbol type.
28155         * varpool.c (varpool_node): Set symbol type.
28157 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
28158             Richard Sandiford  <rdsandiford@googlemail.com>
28160         * fwprop.c (propagate_rtx): Also set PR_CAN_APPEAR for subregs.
28162 2012-04-10  Richard Guenther  <rguenther@suse.de>
28164         PR middle-end/52888
28165         * gimple-low.c (gimple_check_call_args): Properly account for
28166         compatible aggregate types.
28168 2012-04-10  Richard Guenther  <rguenther@suse.de>
28170         * toplev.h (tree_rest_of_compilation): Remove.
28171         * tree-optimize.c (tree_rest_of_compilation): Likewise.
28172         * cgraph.h (tree_rest_of_compilation): Declare.
28173         * tree-optimize.c (tree_rest_of_compilation): Move ...
28174         * cgraphunit.c (tree_rest_of_compilation): ... here.
28175         * cgraph.c (cgraph_add_new_function): Adjust.
28176         * Makefile.in (tree-optimize.o): Adjust.
28177         (cgraphunit.o): Likewise.
28179 2012-04-10  Ulrich Weigand  <ulrich.weigand@linaro.org>
28181         PR tree-optimization/52870
28182         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Verify that
28183         presumed pattern statement is within the same loop or basic block.
28185 2012-04-10  Tristan Gingold  <gingold@adacore.com>
28187         * gengtype.c (main): Make uintptr_t a known type.
28189 2012-04-10  Richard Guenther  <rguenther@suse.de>
28191         * tree-pass.h (tree_lowering_passes): Remove.
28192         * tree-optimize.c (tree_lowering_passes): Remove.
28193         * cgraph.c (cgraph_add_new_function): Inline relevant parts
28194         of tree_lowering_passes, avoid redundant call of early local passes.
28195         * cgraphunit.c (cgraph_lower_function): Fold into ...
28196         (cgraph_analyze_function): ... its single caller.  Inline
28197         relevant parts of tree_lowering_passes.
28199 2012-04-09  H.J. Lu  <hongjiu.lu@intel.com>
28201         PR other/52777
28202         * config/pa/pa.opt: Remove SIO and GNU_LD.
28204 2012-04-09  Jan Hubicka  <jh@suse.cz>
28206         PR lto/52722
28207         PR lto/51765
28208         PR lto/52634
28209         * lto-cgraph.c (compute_ltrans_boundary): When alias is in the
28210         boundary, add its target too.
28211         * lto.c (add_references_to_partition): Add also aliased nodes.
28212         (add_cgraph_node_to_partition,
28213         add_varpool_node_to_partition): Work on nodes, not functions/variables;
28214         when adding alias, add also the aliased object.
28216 2012-04-09  Uros Bizjak  <ubizjak@gmail.com>
28218         PR target/52883
28219         * config/i386/predicates.md (x86_64_zext_general_operand): Prevent
28220         VOIDmode immediate operands.
28221         * config/i386/constraints.md (Wz): New constraint.
28222         * config/i386/i386.md (*zero_extendsidi2_rex64): Use Wz instead of Z.
28224 2012-04-09  Eric Botcazou  <ebotcazou@adacore.com>
28226         PR target/52717
28227         * config/sparc/sparc.c (sparc_file_end): Set TREE_PUBLIC explicitly on
28228         the DECL generated for the special GOT helper.
28230 2012-04-09  Oleg Endo  <olegendo@gcc.gnu.org>
28232         * config/sh/constraints.md: Update list of constraints in
28233         comment block.
28234         (Sr0): Remove unused memory constraint.
28236 2012-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
28238         * tree-pretty-print.h: Update comment.
28240 2012-04-08  Oleg Endo  <olegendo@gcc.gnu.org>
28242         * config/sh/sh.md: Use braced string notation where applicable.
28243         (*prefetch_i4, prefetch_m2a): Merge into ...
28244         (*prefetch): ... this new insn.
28246 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
28248         * config/sh/sh.h (high_life_started): Remove
28249         * config/sh/predicates.md (general_movdst_operand): Use
28250         'reload_in_progress' instead of 'high_life_started'.
28251         * config/sh/sh.md (divsi_inv_call, *divsi_inv_call_combine,
28252         divsi_inv_fp): Likewise.
28254 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
28256         * config/sh/sh-protos.h (prepare_move_operands): Return void
28257         instead of int.
28258         * config/sh/sh.c (prepare_move_operands): Likewise.
28259         * config/sh/sh.md: Remove return value checks of prepare_move_operands.
28261 2012-04-07  Oleg Endo  <olegendo@gcc.gnu.org>
28263         * config/sh/sh-protos.h (fp_int_operand, symbol_ref_operand,
28264         general_movsrc_operand, general_movdst_operand, arith_reg_operand,
28265         fp_arith_reg_operand, arith_operand, arith_reg_or_0_operand,
28266         logical_operand, fpscr_operand, fpul_operand, expand_fp_branch,
28267         commutative_float_operator, noncommutative_float_operator,
28268         sh_handle_pragma): Remove.
28270 2012-04-06  Sandra Loosemore  <sandra@codesourcery.com>
28272         * doc/invoke.texi:  Clean up Texinfo markup throughout the file.
28273         Use @option markup on command-line options.  Use @samp markup on
28274         literal keywords to options.  Use @code markup on code fragments.
28275         Use other markup in preference to quotation marks in the text.
28276         Add markup to some passages without any.
28278 2012-04-06  Mike Stump  <mikestump@comcast.net>
28280         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Avoid warning.
28282 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
28284         * config/sh/sh.c (hi_const): Remove.
28285         (find_barrier, sh_reorg): Use satisfies_constraint_I16 instead
28286         of hi_const.
28288 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
28290         * config/sh/sh-protos.h (sh_expand_t_scc): Change return type from int
28291         to bool.
28292         * config/sh/sh.c (sh_expand_t_scc): Likewise.
28293         * config/sh/sh.md (cstoresi4, cstoredi4): Remove GET_CODE checks before
28294         calling sh_expand_t_scc.
28296 2012-04-06  Oleg Endo  <olegendo@gcc.gnu.org>
28298         * config/sh/sh-protos.h (fp_zero_operand, fp_one_operand,
28299         nonpic_symbol_mentioned_p, expand_block_move, expand_ashiftrt,
28300         sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext, system_reg_operand,
28301         reg_unused_after, sh_can_redirect_branch, sh_need_epilogue, fldi_ok,
28302         sh_hard_regno_rename_ok, sh_cfun_interrupt_handler_p,
28303         sh_cfun_resbank_handler_p, sh_attr_renesas_p, sh_cfun_attr_renesas_p,
28304         check_use_sfunc_addr, sh_contains_memref_p, sh_loads_bankedreg_p,
28305         sh2a_is_function_vector_call): Use bool as return type.
28306         (sh_pass_in_reg_p): Remove.
28307         * config/sh/sh.c (broken_move, mova_p, noncall_uses_reg, high_pressure,
28308         flow_dependent_p, sh2a_function_vector_p, expand_block_move,
28309         expand_ashiftrt, sh_dynamicalize_shift_p, gen_shl_and, gen_shl_sext,
28310         sh_need_epilogue, sh2a_is_function_vector_call, sh_attr_renesas_p,
28311         sh_cfun_attr_renesas_p, sh_cfun_interrupt_handler_p,
28312         sh_cfun_resbank_handler_p, system_reg_operand, fp_zero_operand,
28313         fp_one_operand, fldi_ok, reg_unused_after, sh_can_redirect_branch,
28314         sh_hard_regno_rename_ok, check_use_sfunc_addr, sh_contains_memref_p,
28315         sh_loads_bankedreg_p): Use bool as return type.
28316         (nonpic_symbol_mentioned_p): Use bool as return type.  Remove
28317         'register' modifier.
28319 2012-04-06  Matt Turner  <mattst88@gmail.com>
28321         * doc/install.texi: Correct typo "-mno-lsc" -> "-mno-llsc".
28323 2012-04-06  Eric Botcazou  <ebotcazou@adacore.com>
28325         * config/ia64/ia64.c (ia64_load_pair_ok): Return 0 if the second member
28326         of the destination isn't also a FP_REGS register.
28328 2012-04-05  Teresa Johnson  <tejohnson@google.com>
28329             H.J. Lu  <hongjiu.lu@intel.com>
28331         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_LCP_STALL.
28332         * config/i386/i386.md (move immediate to memory peephole2):
28333         Add cases for HImode move when LCP stall avoidance is needed.
28334         * config/i386/i386.c (initial_ix86_tune_features): Initialize
28335         X86_TUNE_LCP_STALL entry.
28337 2012-04-05  Uros Bizjak  <ubizjak@gmail.com>
28339         PR target/52882
28340         * config/i386/i386.c (ix86_decompose_address): Allow VOIDmode
28341         CONST_INT operands, zero-extended with AND.
28343 2012-04-05  Oleg Endo  <olegendo@gcc.gnu.org>
28345         PR target/50751
28346         * config/sh/sh.c (sh_find_mov_disp_adjust): Take machine_mode as the
28347         first argument instead of mode size.  Move displacement calculations
28348         to ...
28349         (mov_insn_size, max_mov_insn_displacement, mov_insn_alignment_mask):
28350         ... these new functions.
28351         (disp_adjust): Remove max_mov_disp field.
28352         (sh_legitimate_index_p): Use max_mov_insn_displacement and
28353         mov_insn_alignment_mask.
28354         (sh_address_cost): Use max_mov_insn_displacement.
28356 2012-04-05  Andrew Stubbs  <ams@codesourcery.com>
28358         * config/arm/arm.md (arch): Add neon_onlya8 and neon_nota8.
28359         (arch_enabled): Handle new arch types.
28360         (one_cmpldi2): Add NEON support.
28362 2012-04-05  Richard Guenther  <rguenther@suse.de>
28364         * gimple.c (walk_gimple_op): Compute val_only for the LHS
28365         of an assigment in the canonical way, avoiding is_gimple_mem_rhs.
28366         (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt): Move ...
28367         * gimplify.c (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
28368         ... here and make static.
28369         * gimple.h (is_gimple_mem_rhs, is_gimple_reg_rhs, is_gimple_stmt):
28370         Remove.
28372 2012-04-05  Richard Guenther  <rguenther@suse.de>
28374         * tree-ssa-dse.c (dse_optimize_stmt): Remember the stmt
28375         basic-block before removing it.
28377 2012-04-05  Richard Guenther  <rguenther@suse.de>
28379         * tree-ssanames.c (release_dead_ssa_names): Compact the SSA
28380         version namespace as we release the freelist.
28382 2012-04-05  Richard Guenther  <rguenther@suse.de>
28384         * tree-nrv.c (tree_nrv): Release VDEFs.
28385         * tree-sra.c (sra_modify_constructor_assign): Likewise.
28386         (sra_modify_assign): Likewise.
28387         * tree-vect-stmts.c (vect_remove_stores): Likewise.
28388         * tree-vect-loop.c (vect_transform_loop): Likewise.
28389         * tree-ssa-dom.c (optimize_stmt): Likewise.
28390         * tree-vect-slp.c (vect_schedule_slp): Likewise.
28391         * tree-ssa-math-opts.c (execute_cse_sincos): Likewise.
28393 2012-04-05  Richard Guenther  <rguenther@suse.de>
28395         * gimple-iterator.c (gsi_remove): Return whether EH edges need to be
28396         cleanup.
28397         * gimple.h (gsi_remove): Adjust.
28398         * tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
28399         * tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
28400         * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
28401         * tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
28402         * tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
28403         * tree-ssa-pre.c (eliminate): Likewise.
28405 2012-04-04  Mike Stump  <mikestump@comcast.net>
28407         * doc/rtl.texi (const_double): Document as sign-extending.
28408         * expmed.c (expand_mult): Ensure we don't use shift incorrectly.
28409         * emit-rtl.c (immed_double_int_const): Refine to state the
28410         value is signed.
28411         * simplify-rtx.c (mode_signbit_p): Add a fixme for wider than
28412         CONST_DOUBLE integers.
28413         (simplify_const_unary_operation, UNSIGNED_FLOAT): Ensure no
28414         negative values are converted.  Fix conversions bigger than
28415         HOST_BITS_PER_WIDE_INT.
28416         (simplify_binary_operation_1): Ensure we don't use shift incorrectly.
28417         (simplify_immed_subreg): Sign-extend CONST_DOUBLEs.
28418         * explow.c (plus_constant_mode): Add.
28419         (plus_constant): Implement with plus_constant_mode.
28420         * rtl.h (plus_constant_mode): Add.
28422 2012-04-04  Richard Guenther  <rguenther@suse.de>
28424         PR tree-optimization/52808
28425         * tracer.c (tail_duplicate): Do not tail-duplicate loop header blocks.
28426         * Makefile.in (tracer.o): Depend on $(CFGLOOP_H).
28428 2012-04-04  Tristan Gingold  <gingold@adacore.com>
28430         * expr.c (expand_expr_real_2): Handle larger sizetype in
28431         POINTER_PLUS_EXPR.
28433 2012-04-03  Kaz Kojima  <kkojima@gcc.gnu.org>
28435         * config/sh/t-sh (MULTILIB_MATCHES): Match m2a-single-only
28436         to m2a-single instead of m2e.
28438 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
28440         * expr.c (get_bit_range): Add OFFSET parameter and adjust BITPOS.
28441         Change type of BITOFFSET to signed.  Make sure the lower bound of
28442         the computed range is non-negative by adjusting OFFSET and BITPOS.
28443         (expand_assignment): Adjust call to get_bit_range.
28445 2012-04-03  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
28447         * h8300/h8300.c (h8300_current_function_monitor_function_p):
28448         New function. Added to check monitor functions.
28449         (h8300_option_override): Modified to generate error/warning
28450         messages for invalid combinations of different command line
28451         options.
28452         * h8300/h8300.md: Generate 'rte' for monitor functions. Do not
28453         save EXR on stack for monitor function in case of H8S target
28454         when "-mno-exr" is passed.
28455         * h8300/h8300-protos.h (h8300_current_function_monitor_function_p):
28456         Add prototype.
28457         * doc/invoke.texi: Document H8S options.
28459 2012-04-03  Tristan Gingold  <gingold@adacore.com>
28461         * configure.ac: Use GCC_AC_FUNC_MMAP_BLACKLIST instead
28462         of gcc_AC_FUNC_MMAP_BLACKLIST.
28463         * acinclude.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Remove.
28464         * Makefile.in (aclocal_deps): Add mmap.m4.
28465         * configure: Regenerate.
28466         * aclocal.m4: Regenerate.
28468 2012-04-03  Richard Guenther  <rguenther@suse.de>
28470         PR tree-optimization/52808
28471         * tracer.c (tail_duplicate): Return whether we have duplicated
28472         any block.
28473         (tracer): If we have duplicated any block, cleanup the CFG.
28474         * cfghooks.c (duplicate_block): If we duplicated a loop
28475         header but not its loop, destroy the loop because it now has
28476         multiple entries.
28477         * tree-ssa-threadupdate.c (thread_through_loop_header): Tell
28478         the cfg manipulation routines we are not creating a multiple
28479         entry loop.
28481 2012-04-03  Tristan Gingold  <gingold@adacore.com>
28483         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle
28484         'byte' alignment.
28485         (vms_c_common_override_options): Allow parameterless variadic
28486         functions.
28488 2012-04-03  Jakub Jelinek  <jakub@redhat.com>
28490         PR tree-optimization/52835
28491         * tree-data-ref.c (build_rdg): Return NULL if
28492         compute_data_dependences_for_loop failed.
28494 2012-04-03  Eric Botcazou  <ebotcazou@adacore.com>
28496         * varasm.c (initializer_constant_valid_for_bitfield_p): Return true
28497         for REAL_CST as well.
28498         (output_constructor): Use RECORD_OR_UNION_TYPE_P predicate.
28499         In the bitfield case, if the value is a REAL_CST, convert it first to
28500         an INTEGER_CST.
28502 2012-04-02  H.J. Lu  <hongjiu.lu@intel.com>
28504         * config.gcc: Use i386/biarchx32.h instead of i386/biarch64.h
28505         for --with-abi={x32|mx32} or --with-multilib-list=mx32.
28506         (supported_defaults): Add abi for i[34567]86-*-* and x86_64-*-*.
28508         * config/i386/biarchx32.h: New.
28510 2012-04-02  Anatoly Sokolov  <aesok@post.ru>
28512         * config/arm/arm.h (PREFERRED_RELOAD_CLASS): Remove.
28513         * config/arm/arm.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
28514         (arm_preferred_reload_class): New function.
28516 2012-04-02  Richard Guenther  <rguenther@suse.de>
28518         PR tree-optimization/52756
28519         * tree-ssa-threadupdate.c (def_split_header_continue_p): New function.
28520         (thread_through_loop_header): After threading through the loop latch
28521         remove the split part from the loop and clear further threading
28522         opportunities that would create a multiple entry loop.
28524 2012-04-02  Richard Guenther  <rguenther@suse.de>
28526         PR rtl-optimization/52800
28527         * cprop.c (execute_rtl_cprop): Call cleanup_cfg with
28528         CLEANUP_CFG_CHANGED.
28530 2012-04-02  Richard Guenther  <rguenther@suse.de>
28532         PR middle-end/52803
28533         * loop-init.c (gate_handle_loop2): Destroy loops here if
28534         we don't enter RTL loop optimizers.
28536 2012-04-02  Uros Bizjak  <ubizjak@gmail.com>
28538         Partially revert:
28539         2012-03-29  Richard Guenther  <rguenther@suse.de>
28541         * rtl.h (extended_count): Remove.
28542         * combine.c (extended_count): Remove.
28544 2012-04-02  Dodji Seketeli  <dodji@redhat.com>
28546         PR c++/40942
28547         * pt.c (more_specialized_fn):  Don't apply decay conversion to
28548         types of function parameters.
28550 2012-04-02  Tristan Gingold  <gingold@adacore.com>
28552         * ggc-page.c (PAGE_L1_SIZE, PAGE_L2_SIZE, LOOKUP_L1, LOOKUP_L2)
28553         (ggc_allocated_p, lookup_page_table_entry, set_page_table_entry)
28554         (alloc_page, init_ggc, clear_marks, struct ggc_pch_data)
28555         (ggc_pch_this_base): Use uintptr_t instead of size_t.
28557 2012-03-31  H.J. Lu  <hongjiu.lu@intel.com>
28559         PR bootstrap/52784
28560         * config/i386/i386.c (ix86_option_override_internal): Don't
28561         check TARGET_64BIT if TARGET_64BIT_DEFAULT is false.
28563 2012-03-31  Eric Botcazou  <ebotcazou@adacore.com>
28565         * tree-cfg.c (call_can_make_abnormal_goto): New predicate.
28566         (stmt_can_make_abnormal_goto): Use it.
28567         (is_ctrl_altering_stmt): Likewise.
28569 2012-03-30  Naveen H.S  <naveen.S@kpitcummins.com>
28570             Kaz Kojima  <kkojima@gcc.gnu.org>
28572         * config/sh/sh.c (push_regs): Skip banked registers when
28573         resbank attribute is specified.
28574         (sh_expand_epilogue): Likewise.
28576 2012-03-30  Richard Henderson  <rth@redhat.com>
28578         PR debug/52727
28579         * combine-stack-adj.c (prev_active_insn_bb): New.
28580         (next_active_insn_bb): New.
28581         (force_move_args_size_note): New.
28582         (combine_stack_adjustments_for_block): Use it.
28584 2012-03-30  Richard Henderson  <rth@redhat.com>
28586         * config/i386/i386.c (struct expand_vec_perm_d): Add one_operand_p.
28587         (ix86_expand_vector_init_duplicate): Initialize it.
28588         (expand_vec_perm_palignr): Likewise.
28589         (ix86_expand_vec_perm_const): Likewise.
28590         (ix86_vectorize_vec_perm_const_ok): Likewise.
28591         (expand_vec_perm_blend): Use it.
28592         (expand_vec_perm_vpermil): Likewise.
28593         (expand_vec_perm_pshufb): Likewise.
28594         (expand_vec_perm_1): Likewise.
28595         (expand_vec_perm_pshuflw_pshufhw): Likewise.
28596         (expand_vec_perm_interleave2): Likewise.
28597         (expand_vec_perm_vpermq_perm_1): Likewise.
28598         (expand_vec_perm_vperm2f128): Likewise.
28599         (expand_vec_perm_interleave3): Likewise.
28600         (expand_vec_perm_vperm2f128_vblend): Likewise.
28601         (expand_vec_perm_vpshufb2_vpermq): Likewise.
28602         (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise,.
28603         (expand_vec_perm_broadcast): Likewise.
28604         (expand_vec_perm_vpshufb4_vpermq2): Likewise.
28606 2012-03-30  Richard Henderson  <rth@redhat.com>
28608         * dwarf2out.c (gen_variable_die): Initialize off.
28610 2012-03-30  Tristan Gingold  <gingold@adacore.com>
28612         * config/vms/vms-f.c: New file.
28613         * config/vms/t-vms (vms-f.o): New rule.
28614         * config.gcc (*-*-*vms*): Define fortran_target_objs.
28616 2012-03-30  Richard Guenther  <rguenther@suse.de>
28618         PR tree-optimization/52754
28619         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Only
28620         propagate arbitrary addresses into really plain dereferences.
28622 2012-03-30  Richard Guenther <rguenther@suse.de>
28624         PR middle-end/52772
28625         * except.c (emit_to_new_bb_before): Move loop updating ...
28626         (dw2_build_landing_pads): ... here.  Use a proper block for
28627         querying the loop father.
28629 2012-03-30  Tristan Gingold  <gingold@adacore.com>
28631         * config/ia64/ia64.c (ia64_section_type_flags): Remove
28632         common_object attribute handling.
28633         (SECTION_VMS_OVERLAY): Remove
28634         (ia64_vms_common_object_attribute): Replace abort with an assert.
28635         Do not set DECL_SECTION_NAME.
28636         (ia64_vms_output_aligned_decl_common): Handle common_object
28637         attribute.
28638         (ia64_vms_elf_asm_named_section): Remove.
28639         * config/ia64/vms.h (TARGET_ASM_NAMED_SECTION): Remove.
28641 2012-03-30  Richard Guenther  <rguenther@suse.de>
28643         PR middle-end/52786
28644         * double-int.c (rshift_double): Remove not needed cast.
28646 2012-03-30  Richard Guenther  <rguenther@suse.de>
28648         * tree-affine.h (print_aff): Remove.
28649         * tree-affine.c (print_aff): Make static.
28650         * tree-data-ref.h (access_matrix_get_index_for_parameter): Remove.
28651         (get_references_in_stmt): Likewise.
28652         (print_direction_vector): Likewise.
28653         (print_dir_vectors): Likewise.
28654         (print_dist_vectors): Likewise.
28655         (dump_subscript): Likewise.
28656         (dump_ddrs): Likewise.
28657         (dump_dist_dir_vectors): Likewise.
28658         (dump_data_references): Likewise.
28659         (dump_data_dependence_relation): Likewise.
28660         (dump_data_dependence_direction): Likewise.
28661         (dump_rdg_vertex): Likewise.
28662         (dump_rdg_component): Likewise.
28663         (debug_ddrs): Declare.
28664         (struct data_ref_loc_d): Move ...
28665         * tree-data-ref.c (struct data_ref_loc_d): ... here.
28666         (get_references_in_stmt): Make static.
28667         (dump_data_references): Likewise.
28668         (dump_subscript): Likewise.
28669         (print_direction_vector): Likewise.
28670         (print_dir_vectors): Likewise.
28671         (print_dist_vectors): Likewise.
28672         (dump_data_dependence_relation): Likewise.
28673         (dump_dist_dir_vectors): Likewise.
28674         (dump_ddrs): Likewise.
28675         (dump_rdg_vertex): Likewise.
28676         (dump_rdg_component): Likewise.
28677         (debug_ddrs): New function.
28678         (access_matrix_get_index_for_parameter): Remove.
28680 2012-03-30  Tristan Gingold  <gingold@adacore.com>
28682         * config/vms/vms.c (VMS_CRTL_FLOAT32): Rename.
28683         (VMS_CRTL_FLOAT64, VMS_CRTL_FLOAT64_VAXD): New.
28684         (VMS_CRTL_FLOAT128, VMS_CRTL_DPML, VMS_CRTL_NODMPL)
28685         (VMS_CRTL_32ONLY, VMS_CRTL_G_MASK, VMS_CRTL_G_NONE)
28686         (VMS_CRTL_GA, VMS_CRTL_GL, VMS_CRTL_FLOATV2): New.
28687         (vms_patch_builtins): Handle new flags
28688         * config/vms/vms-crtlmap.map: Completed using nm on
28689         c and math system libraries.
28690         * config/vms/make-crtlmap.awk: Handle any number of flags.
28692 2012-03-30  Martin Jambor  <mjambor@suse.cz>
28694         * tree-ssa-ccp.c (insert_clobbers_for_var): Do not assert that there
28695         is a builtin_stack_save in a dominating BB.
28697 2012-03-29  Uros Bizjak  <ubizjak@gmail.com>
28699         * config/i386/sse.md (avx_h<plusminus_insn>v4df3): Fix results
28700         crossing 128bit lane boundary.
28702 2012-03-29  Vladimir Makarov  <vmakarov@redhat.com>
28704         * ira-color.c (setup_left_conflict_sizes_p): Process all
28705         conflicting objects.
28707 2012-03-29  Jakub Jelinek  <jakub@redhat.com>
28709         PR tree-optimization/52760
28710         * tree-vect-slp.c (vect_get_constant_vectors): Convert constant_p
28711         shift count for {L,R}{SHIFT,ROTATE}_EXPR to TREE_TYPE (vector_type).
28713 2012-03-29  Richard Guenther  <rguenther@suse.de>
28715         * cgraph.h (cgraph_materialize_all_clones): Remove.
28716         (reset_inline_failed): Likewise.
28717         * cgraphunit.c (cgraph_materialize_all_clones): Make static.
28718         * cgraphbuild.c (reset_inline_failed): Remove.
28719         * rtl.h (cse_main): Remove.
28720         (extended_count): Likewise.
28721         * cse.c (dump_class): Mark as DEBUG_FUNCTION.
28722         (cse_main): Make static.
28723         * combine.c (extended_count): Remove.
28724         (dump_combine_stats): Mark as DEBUG_FUNCTION.
28725         * basic-block.h (reorder_basic_blocks): Remove.
28726         * bb-reorder.c (reorder_basic_blocks): Make static.
28727         * Makefile.in (dse.o): Remove dse.h dependency.
28728         * dse.h: Remove.
28729         * dse.c (gate_dse): Remove.
28730         (clear_alias_mode_eq): Likewise.
28731         (clear_alias_mode_hash): Likewise.
28732         (dse_record_singleton_alias_set): Likewise.
28733         (dse_invalidate_singleton_alias_set): Likewise.
28735 2012-03-29  H.J. Lu  <hongjiu.lu@intel.com>
28737         * config/linux-android.h (ANDROID_STARTFILE_SPEC): Use
28738         crtbegin_so%O%s for -shared.
28739         (ANDROID_ENDFILE_SPEC): Use crtend_so%O%s for -shared.
28741 2012-03-29  Richard Guenther  <rguenther@suse.de>
28743         * tree-flow.h (struct pre_expr_d): Remove forward declaration.
28744         (add_to_value): Remove.
28745         (print_value_expressions): Likewise.
28746         * tree-ssa-pre.c (add_to_value): Make static.
28747         (print_value_expressions): Likewise.
28748         * gimple.h (gimple_adjust_this_by_delta): Remove.
28749         * gimple-fold.c (gimple_adjust_this_by_delta): Likewise.
28751 2012-03-29  Richard Guenther  <rguenther@suse.de>
28753         PR middle-end/50708
28754         * double-int.h (rshift_double): Remove.
28755         * double-int.c (lshift_double): Use absu_hwi to make count positive.
28756         (rshift_double): Make static, take unsigned count argument,
28757         remove handling of negative count argument.
28758         (double_int_rshift): Dispatch to lshift_double.
28760 2012-03-28  H.J. Lu  <hongjiu.lu@intel.com>
28762         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Add
28763         OPTION_MASK_ABI_64.
28765         * config/i386/gnu-user64.h (SPEC_64): Support TARGET_BI_ARCH == 2.
28766         (SPEC_X32): Likewise.
28767         (MULTILIB_DEFAULTS): Likewise.
28769         * config/i386/i386.c (isa_opts): Remove -m64.
28770         (ix86_target_string): Properly handle -m32/-m64/-mx32.
28771         (ix86_option_override_internal): Properly
28772         set OPTION_MASK_ISA_64BIT and OPTION_MASK_ISA_X32 as well as
28773         handle -m32, -m64 and -mx32.
28775         * config/i386/i386.h (TARGET_X32): Replace OPTION_ISA_X32
28776         with OPTION_ABI_X32.  Moved after TARGET_LP64.
28777         (TARGET_LP64): Changed to OPTION_ABI_64.
28779         * config/i386/i386.opt (m64): Replace ISA_64BIT with ABI_64.
28780         (mx32): Replace ISA_X32 with ABI_X32.
28782 2012-03-28  Eric Botcazou  <ebotcazou@adacore.com>
28784         * tree.c (tree_size) <VECTOR_CST>: New case.
28786 2012-03-28  Uros Bizjak  <ubizjak@gmail.com>
28788         * config/i386/i386.c (ix86_modes_tieable_p): Handle 32bit AVX modes.
28789         (ix86_expand_vector_move_misalign): Remove un-needed gen_lowpart calls.
28791 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
28793         PR middle-end/52691
28794         * tree-ssa-ccp.c (optimize_stdarg_builtin): Optimize
28795         __builtin_va_start to __builtin_next_arg if the latter is
28796         builtin_decl_explicit_p rather than when it is not.
28798         PR middle-end/52750
28799         * tree-vect-generic.c (vector_element): Perform multiplication
28800         for pos in bitsizetype type instead of idx type.
28802 2012-03-28  Richard Guenther  <rguenther@suse.de>
28804         * loop-init.c (loop_optimizer_init): If loops are preserved
28805         perform incremental initialization of required loop features.
28806         (loop_optimizer_finalize): If loops are to be preserved only
28807         clean up optional loop features.
28808         (rtl_loop_done): Forcefully free loops here.
28809         * cgraph.c (cgraph_release_function_body): Forcefully free loops.
28810         * cfgexpand.c (expand_gimple_cond): Properly add new basic-blocks
28811         to existing loops.
28812         (construct_init_block): Likewise.
28813         (construct_exit_block): Likewise.
28814         (gimple_expand_cfg): Clear LOOP_CLOSED_SSA loop state.  Cleanup
28815         the CFG after expanding.
28816         * cfgloop.c (verify_loop_structure): Calculate or verify dominators.
28817         If we needed to calculate them, free them afterwards.
28818         * tree-pass.h (PROP_loops): New define.
28819         * tree-ssa-loop.c (pass_tree_loop_init): Provide PROP_loops.
28820         * basic-block.h (CLEANUP_CFG_CHANGED): New.
28821         * cfgcleanup.c (merge_blocks_move): Protect loop latches.
28822         (cleanup_cfg): If we did something and have loops around, fix them up.
28823         * cse.c (rest_of_handle_cse_after_global_opts): Call cleanup_cfg
28824         with CLEANUP_CFG_CHANGED.
28825         * cfghooks.c (merge_blocks): If we merge a loop header into
28826         its predecessor, update the loop structure.
28827         (duplicate_block): If we copy a loop latch, adjust loop state
28828         to note we may have multiple latches.
28829         (delete_basic_block): Mark loops for fixup if we remove a loop.
28830         * cfganal.c (forwarder_block_p): Protect loop latches, headers
28831         and preheaders.
28832         * cfgrtl.c (rtl_can_merge_blocks): Protect loop latches.
28833         (cfg_layout_can_merge_blocks_p): Likewise.
28834         * cprop.c (bypass_block): If we create a loop with multiple
28835         entries, mark it for removal.
28836         * except.c (emit_to_new_bb_before): Add the new basic-block
28837         to existing loops.
28838         * tree-eh.c (lower_resx): Likewise.
28839         * omp-low.c (finalize_task_copyfn): Do not copy PROP_loops.
28840         (expand_omp_taskreg): Likewise.
28841         * tree-inline.c (initialize_cfun): Likewise.
28842         * tree-mudflap.c (add_bb_to_loop): Prototype.
28843         (mf_build_check_statement_for): Properly add new basic-blocks
28844         to existing loops.
28845         * tree-ssa-threadupdate.c (thread_block): Mark loops for fixup
28846         if we remove a loop.
28847         (thread_through_loop_header): Likewise.
28848         * trans-mem.c (tm_log_emit_save_or_restores): Properly add
28849         new basic-blocks to existing loops.
28850         (expand_transaction): Likewise.
28851         * Makefile.in (except.o): Add $(CFGLOOP_H).
28852         (expr.o): Likewise.
28853         (cgraph.o): Likewise.
28854         (cprop.o): Likewise.
28855         (cfgexpand.o): Likewise.
28856         (cfganal.o): Likewise.
28857         (trans-mem.o): Likewise.
28858         (tree-eh.o): Likewise.
28860 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
28862         PR target/52692
28863         * config/avr/avr.c (TARGET_BUILTIN_DECL): New define.
28864         (avr_builtin_decl): New static function.
28865         (struct avr_builtin_description, avr_bdesc): Move up.
28866         Add GTY marker. Add field fndecl. Remove redundant field id.
28867         (avr_init_builtins): Initialize avr_bdesc[ID].fndecl.
28868         (avr_expand_builtin): Code cleanup because .id is removed.
28870 2012-03-28  Georg-Johann Lay  <avr@gjlay.de>
28872         PR target/52737
28873         * config.gcc (tm_file): Remove avr/multilib.h.
28875         * doc/invoke.texi (AVR Options): Adjust documentation of -mtiny-stack.
28877         * config/avr/genmultilib.awk: Remove code to generate multilib.h.
28878         (BEGIN): Use -msp8 as multilib option instead of -mtiny-stack.
28879         * config/avr/t-avr: Remove generation of multilib.h.
28880         * config/avr/t-multilib: Regenerate.
28881         * config/avr/multilib.h: Remove.
28882         * config/avr/avr.opt (-msp8): New option.
28883         (avr_sp8): New variable.
28884         * config/avr/driver-avr.c (avr_device_to_sp8): New function.
28885         * config/avr/avr.h (AVR_HAVE_SPH): New define.
28886         (AVR_HAVE_8BIT_SP): Also set by avr_sp8 i.e. -msp8.
28887         (avr_device_to_sp8): New prototype.
28888         (EXTRA_SPEC_FUNCTIONS): Add { "device_to_sp8", avr_device_to_sp8 }
28889         (DRIVER_SELF_SPECS): New define.
28890         * config/avr/avr-c.c (avr_cpu_cpp_builtins): New built-in defines:
28891         __AVR_SP8__, __AVR_HAVE_SPH__.
28892         * config/avr/avr.c (output_movhi): Use AVR_HAVE_SPH instead of
28893         AVR_HAVE_8BIT_SP to decide if SP_H is present.
28894         (avr_file_start): Ditto.
28896 2012-03-28  Jakub Jelinek  <jakub@redhat.com>
28898         PR target/52736
28899         * config/i386/sse.md (sse2_loadlpd splitter): Use offset 0
28900         instead of 8 in adjust_address.
28902 2012-03-27  Aurelien Buhrig  <aurelien.buhrig.gcc@gmail.com>
28904         PR middle-end/51893
28905         * expmed.c (store_bit_field_1): Fix wordnum value for big-endian
28906         targets.
28908 2012-03-27  Oleg Endo  <olegendo@gcc.gnu.org>
28910         PR target/50751
28911         * config/sh/sh.c (sh_legitimize_address, sh_legitimize_reload_address):
28912         Rearrange conditional logic.  Move displacement address calculations
28913         to ...
28914         (sh_find_mov_disp_adjust): ... this new function.
28916 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28918         * config/arm/arm.opt (mapcs): Remove MaskExists.
28919         * config/cris/linux.opt (mno-gotplt): Likewise.
28920         * config/i386/i386.opt (mhard-float): Likewise.
28921         (msse4): Likewise.
28922         (mno-sse4): Likewise.
28923         * config/m68k/m68k.opt (mhard-float): Likewise.
28924         * config/mep/mep.op (mcop32): Likewise.
28925         * config/pa/pa-hpux.opt (msio): Likewise.
28926         * config/pa/pa64-hpux.opt (mgnu-ld): Likewise.
28927         * config/picochip/picochip.opt (mlittle): Likewise.
28928         * config/sh/sh.opt (mrenesas): Likewise.
28929         * config/sparc/long-double-switch.opt (mlong-double-128): Likewise.
28930         * config/sparc/sparc.opt (mhard-float): Likewise.
28931         * config/v850/v850.opt (mv850es): Likewise.
28932         * config/vax/vax.opt (mg-float): Likewise.
28934 2012-03-27  Martin Jambor  <mjambor@suse.cz>
28936         PR middle-end/52693
28937         * tree-sra.c (sra_modify_assign): Do not call
28938         load_assign_lhs_subreplacements when working with an unscalarizable
28939         region.
28941 2012-03-27  Uros Bizjak  <ubizjak@gmail.com>
28943         PR target/52698
28944         * config/i386/i386-protos.h (ix86_legitimize_reload_address):
28945         New prototype.
28946         * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): New define.
28947         * config/i386/i386.c: Include reload.h.
28948         (ix86_legitimize_reload_address): New function.
28950 2012-03-27  H.J. Lu  <hongjiu.lu@intel.com>
28952         * opth-gen.awk: Allocated a bit for Mask and InverseMask if it
28953         hasn't been allocated.  Define a target macro for Mask and
28954         InverseMask if it hasn't been defined.  Remove MaskExists handling.
28956         * doc/options.texi: Remove MaskExists.
28958 2012-03-27  Chung-Lin Tang  <cltang@codesourcery.com>
28960         PR target/52667
28961         * config/sh/sh.c (find_barrier): Add equality check of last_got
28962         to avoid going above orig insn. Update comments.
28964 2012-03-27  Richard Guenther  <rguenther@suse.de>
28966         PR middle-end/52720
28967         * fold-const.c (try_move_mult_to_index): Handle &x.array more
28968         explicitely.
28970 2012-03-27  Eric Botcazou  <ebotcazou@adacore.com>
28972         * expmed.c (store_bit_field): Assert that BITREGION_START is a multiple
28973         of a unit before computing the offset in units.
28974         * expr.c (get_bit_range): Return the null range if the enclosing record
28975         is part of a larger bit field.
28977 2012-03-27  Tristan Gingold  <gingold@adacore.com>
28979         * config/ia64/vms.h (CASE_VECTOR_MODE): Define.
28980         * config/ia64/ia64.md: Remove mode in template.
28981         Sign extend operand in expand_simple_binop.
28982         * config/ia64/ia64.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use
28983         CASE_VECTOR_MODE instead of TARGET_ILP32.
28984         (ADDR_VEC_ALIGN): Make it depends on CASE_VECTOR_MODE.
28986 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
28988         * varasm.c (assemble_external): #if 0 out the new assert from the
28989         previous commit, it breaks the Java and Go front ends.
28991 2012-03-26  Steven Bosscher  <steven@gcc.gnu.org>
28993         * toplev.c (check_global_declaration_1): Do not call assemble_external.
28994         * expr.c (emit_block_move_libcall_fn): Likewise.
28995         (clear_storage_libcall_fn): Likewise.
28996         (expand_expr_addr_expr_1): Likewise.
28997         (expand_expr_real_1): Likewise.
28998         * calls.c (rtx_for_function_call): Likewise.
29000         * varasm.c (assemble_external): Assert this function is only called
29001         during or after expanding to RTL.
29003 2012-03-26  Martin Jambor  <mjambor@suse.cz>
29005         PR tree-optimization/50052
29006         * tree-sra.c (tree_non_aligned_mem_p): Removed.
29007         (tree_non_aligned_mem_for_access_p): Likewise.
29008         (build_accesses_from_assign): Removed strict alignment requirements
29009         checks.
29010         (access_precludes_ipa_sra_p): Likewise.
29012 2012-03-26  Richard Guenther  <rguenther@suse.de>
29014         PR tree-optimization/52701
29015         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Always
29016         compute and set the evolution part of PHI nodes.
29018 2012-03-26  Richard Guenther  <rguenther@suse.de>
29020         PR tree-optimization/52721
29021         * tree-vect-stmts.c (vect_init_vector): Handle scalars.
29023 2012-03-26  Ulrich Weigand  <ulrich.weigand@linaro.org>
29025         PR tree-optimization/52686
29026         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
29027         WIDEN_LSHIFT_EXPR.
29029 2012-03-26  Tristan Gingold  <gingold@adacore.com>
29031         * config/alpha/vms.h (LINK_SPEC): Simplify.
29032         (STARTFILE_SPEC): Remove -mvms-return-codes handling.
29033         (NAME__MAIN, SYMBOL__MAIN): Remove.
29034         (VMS_DEBUG_MAIN_POINTER): Remove.
29035         * config/ia64/vms.h: Likewise.
29036         * config/alpha/alpha.c (alpha_start_function): Move vms_debug_main
29037         code to vms.c.  Call vms_start_function.
29038         * config/ia64/ia64.c (ia64_start_function): Likewise.
29039         * config/vms/vms-protos.h (vms_start_function): Declare.
29040         * config/vms/vms.c (vms_start_function): New function.
29041         * config/vms/vms.h (MATH_LIBRARY): Define.
29042         (VMS_DEBUG_MAIN_POINTER): Define.
29044 2012-03-26  Eric Botcazou  <ebotcazou@adacore.com>
29046         PR rtl-optimization/52629
29047         * reload1.c (count_pseudo): Short-circuit common case.
29048         (count_spilled_pseudo): Return early for pseudos without hard regs.
29049         Assert that the pseudo has got a hard reg before manipulating it.
29051 2012-03-24  Jan Hubicka  <jh@suse.cz>
29053         PR lto/51663
29054         * varpool.c (varpool_finalize_decl): Handle toplevel_reorder here.
29055         (decide_is_variable_needed): Do not handle toplevel reorder here.
29056         * cgraph.h (varpool_can_remove_if_no_refs): Likewise.
29057         * ipa.c (cgraph_remove_unreachable_nodes): Remove unreachable vars
29058         even at -O0.
29060 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
29062         * expr.c (optimize_bitfield_assignment_op) <BIT_IOR_EXPR>: Use str_mode
29063         and str_bitsize instead of more convoluted expressions.
29065 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
29067         PR target/52610
29068         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=leon.
29070 2012-03-24  Eric Botcazou  <ebotcazou@adacore.com>
29072         PR target/52656
29073         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Fix pasto.
29075 2012-03-23  Martin Jambor  <mjambor@suse.cz>
29077         * tree-sra.c (build_accesses_from_assign): Remove FIXME comment.
29079 2012-03-23  Richard Guenther  <rguenther@suse.de>
29081         PR tree-optimization/52678
29082         * tree-vectorizer.h (struct _stmt_vec_info): Add
29083         loop_phi_evolution_part member.
29084         (STMT_VINFO_LOOP_PHI_EVOLUTION_PART): New define.
29085         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Initialize
29086         STMT_VINFO_LOOP_PHI_EVOLUTION_PART.
29087         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
29088         Use the cached evolution part and the PHI nodes value from
29089         the loop preheader edge instead of re-analyzing the evolution.
29091 2012-03-22  Maxim Kuvyrkov  <maxim@codesourcery.com>
29093         * config/mips/mips-tables.opt: Update.
29094         * config/mips/mips.md (processor): Add xlp.
29095         * config/mips/mips-cpus.def: Add xlp.
29096         * config/mips/mips.c (mips_rtx_cost_data): Add costs for XLP, copy from
29097         5KF for now.
29098         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Handle xlp.
29099         * doc/invoke.texi: Mention XLP.
29101 2012-03-22  Jakub Jelinek  <jakub@redhat.com>
29103         PR middle-end/52547
29104         * tree-nested.c (convert_tramp_reference_stmt): Call declare_vars
29105         on any new_local_var_chain vars declared during recursing on
29106         GIMPLE_OMP_PARALLEL or GIMPLE_OMP_TASK body.
29108 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
29110         * config/alpha/alpha.h (ASM_OUTPUT_ALIGN): Move to config/alpha/elf.h
29111         (ASM_OUTPUT_SKIP): Move to config/alpha/vms.h
29112         (ASM_OUTPUT_LOCAL): Ditto.
29113         (ASM_OUTPUT_COMMON): Remove.
29114         * config/alpha/elf.h (ASM_OUTPUT_DEF_FROM_DECLS): Use ASM_OUTPUT_DEF.
29115         * config/alpha/vms.h (ASM_OUTPUT_ALIGN): Do not undefine before define.
29117 2012-03-22  Jan Hubicka  <jh@suse.cz>
29119         PR middle-end/51737
29120         * cgraph.c (cgraph_remove_node_and_inline_clones): Add FORBIDDEN_NODE
29121         parameter.
29122         * cgraph.h (cgraph_remove_node_and_inline_clones): Update prototype.
29123         * ipa-inline-transform.c (save_inline_function_body): Remove
29124         copied clone if needed.
29125         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Update.
29127 2012-03-22  Richard Guenther  <rguenther@suse.de>
29129         PR middle-end/52666
29130         * fold-const.c (fold_ternary_loc): Fix typo.
29132 2012-03-22  Georg-Johann Lay  <avr@gjlay.de>
29134         PR target/52496
29135         * config/avr/avr.md (unspec): Remove UNSPEC_MEMORY_BARRIER.
29136         (unspecv): Add UNSPECV_MEMORY_BARRIER.
29137         (cli_sei): Use unspec_volatile instead of unspec for memory barrier.
29138         (delay_cycles_1, delay_cycles_2): Ditto.
29139         (delay_cycles_3, delay_cycles_4): Ditto.
29140         (nopv, *nopv): Ditto.
29141         (sleep, *sleep): Ditto.
29142         (wdr, *wdr): Ditto.
29144 2012-03-22  Richard Guenther  <rguenther@suse.de>
29146         PR tree-optimization/52548
29147         * tree-ssa-pre.c (valid_in_sets): Remove handling of invalidation
29148         because of clobbers.
29149         (prune_clobbered_mems): New function.
29150         (compute_antic_aux): Use it to prune ANTIC_OUT.
29151         (compute_partial_antic_aux): Use it to prune PA_IN.
29152         (compute_avail): Only insert expressions into EXP_GEN that are not
29153         invalidated when translated up to the beginning of the block.
29155 2012-03-22  Richard Guenther  <rguenther@suse.de>
29157         PR tree-optimization/52638
29158         * tree-vect-stmts.c (vect_init_vector_1): New function, split
29159         out from ...
29160         (vect_init_vector): ... here.  Handle scalar vector inits.
29161         (vect_get_vec_def_for_operand): Adjust.
29162         (vectorizable_load): Likewise.
29164 2012-03-22  Uros Bizjak  <ubizjak@gmail.com>
29166         * config.gcc (alpha*-*-linux*): Add elfos.h to tm_file.
29167         (alpha*-*-freebsd*): Ditto.
29168         (alpha*-*-netbsd*): Ditto.
29169         (alpha*-*-openbsd*): Ditto.
29170         * config/alpha/elf.h (OBJECT_FORMAT_ELF): Remove.
29171         (DWARF2_DEBUGGING_INFO): Remove.
29172         (PREFERRED_DEBUGGING_TYPE): Remove.
29173         (ASM_FINAL_SPEC): Remove.
29174         (IDENT_ASM_OP): Remove.
29175         (ASM_OUTPUT_IDENT): Remove.
29176         (SKIP_ASM_OP): Remove.
29177         (ASM_OUTPUT_SKIP): Remove.
29178         (ALIGN_ASM_OP): Remove.
29179         (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
29180         (ASM_OUTPUT_CASE_LABEL): Remove.
29181         (ASM_OUTPUT_EXTERNAL_LIBCALL): Remove.
29182         (COMMON_ASM_OP): Remove.
29183         (ASM_OUTPUT_ALIGNED_COMMON): Remove.
29184         (ASCII_DATA_ASM_OP): Remove.
29185         (READONLY_DATA_SECTION_ASM_OP): Remove.
29186         (INIT_SECTION_ASM_OP): Remove.
29187         (FINI_SECTION_ASM_OP): Remove.
29188         (ASM_SECTION_START_OP): Remove.
29189         (ASM_OUTPUT_SECTION_START_FILE): Remove.
29190         (TARGET_ASM_NAMED_SECTION): Remove.
29191         (TARGET_ASM_SELECT_SECTION): Remove.
29192         (MAKE_DECL_ONE_ONLY): Remove.
29193         (TYPE_ASM_OP): Remove.
29194         (SIZE_ASM_OP): Remove.
29195         (ASM_WEAKEN_LABEL): Remove.
29196         (TYPE_OPERAND_FMT): Remove.
29197         (ASM_DECLARE_RESULT): Remove.
29198         (ASM_DECLARE_OBJECT_NAME): Remove.
29199         (ASM_FINISH_DECLARE_OBJECT): Remove.
29200         (ELF_ASCII_ESCAPES): Remove.
29201         (ELF_STRING_LIMIT): Remove.
29202         (STRING_ASM_OP): Remove.
29203         (ASM_OUTPUT_EXTERNAL): Remove.
29204         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Redefine to false.
29205         * config/alpha/alpha.h (PCC_BITFIELD_TYPE_MATTERS): Undefine
29206         before define.
29207         (ASM_DECLARE_FUNCTION_NAME): Ditto.
29208         (ASM_DECLARE_FUNCTION_SIZE): Ditto.
29209         (ASM_GENERATE_INTERNAL_LABEL): Ditto.
29210         (ASM_OUTPUT_SKIP): Ditto.
29211         (READONLY_DATA_SECTION_ASM_OP): Remove.
29212         (USER_LABEL_PREFIX): Remove.
29213         (ASM_OUTPUT_ASCII): Remove.
29214         (ASM_OUTPUT_CASE_LABEL): Remove.
29215         (NO_DOLLAR_IN_LABEL): Undefine.
29217 2012-03-22  Richard Guenther  <rguenther@suse.de>
29219         PR tree-optimization/52459
29220         * tree-ssa-pre.c (inhibit_phi_insertion): Do not inhibit
29221         PHI insertion for calls.
29223 2012-03-21  Steven Bosscher  <steven@gcc.gnu.org>
29225         * cse.c (invalidate_from_sets_and_clobbers, try_back_substitute_reg,
29226         find_sets_in_insn, canonicalize_insn): Split out from ...
29227         (cse_insn): ... here.
29228         (invalidate_from_clobbers): Take an insn instead of the pattern.
29230 2012-03-21  Oleg Endo  <olegendo@gcc.gnu.org>
29232         PR target/52479
29233         * config/sh/sh-protos.h (sh_fsca_df2int): Remove.
29234         * config/sh/sh.c (sh_fsca_df2int_rtx, sh_fsca_df2int): Remove.
29235         * config/sh/sh.md (sindf2, cosdf2): Remove.
29237 2012-03-21  Kaz Kojima  <kkojima@gcc.gnu.org>
29239         PR target/52642
29240         * config/sh/sh.c (sh_expand_prologue): Emit blockage at the end of
29241         prologue for unwinder and profiler.
29243 2012-03-21  Andreas Tobler  <andreast@fgznet.ch>
29245         * configure.ac (HAVE_LD_NO_DOT_SYMBOLS): Add powerpc64-*-freebsd*.
29246         Introduce emul_name to select the right linker emulation for
29247         powerpc64-*-freebsd*.
29248         * configure: Regenerate.
29249         * config.gcc: Add bits to support powerpc64-*-freebsd*.
29250         * config/rs6000/freebsd.h (POWERPC_FREEBSD): Define.
29251         * config/rs6000/freebsd64.h: New file.
29252         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
29253         POWERPC_FREEBSD.
29254         (rs6000_savres_strategy): Likewise.
29255         (rs6000_savres_routine_name): Likewise.
29256         (rs6000_elf_file_end): Likewise.
29257         * config/rs6000/t-freebsd64: New file.
29258         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set the
29259         rs6000_current_abi for 64-bit FreeBSD to ABI_AIX.
29261         * config/rs6000/freebsd64.h: Remove duplicated entries from last
29262         commit.
29263         * config/rs6000/t-freebsd64: Likewise.
29265 2012-03-21  Georg-Johann Lay  <avr@gjlay.de>
29267         PR rtl-optimization/52543
29268         PR target/52461
29269         * config/avr/avr-protos.h (avr_load_lpm): New prototype.
29270         * config/avr/avr.c (avr_mode_dependent_address_p): New function.
29271         (TARGET_MODE_DEPENDENT_ADDRESS_P): New define.
29272         (avr_load_libgcc_p): Restrict to __flash loads.
29273         (avr_out_lpm): Only handle 1-byte loads from __flash.
29274         (avr_load_lpm): New function.
29275         (avr_find_unused_d_reg): Remove.
29276         (avr_out_lpm_no_lpmx): Remove.
29277         (adjust_insn_length): Handle ADJUST_LEN_LOAD_LPM.
29278         * config/avr/avr.md (unspec): Add UNSPEC_LPM.
29279         (load_<mode>_libgcc): Use UNSPEC_LPM instead of MEM.
29280         (load_<mode>, load_<mode>_clobber): New insns.
29281         (mov<mode>): For multi-byte move from non-generic
29282         16-bit address spaces: Expand to load_<mode> resp.
29283         load_<mode>_clobber.
29284         (load<mode>_libgcc): Remove expander.
29285         (split-lpmx): Remove split.
29287 2012-03-21  Richard Earnshaw  <rearnsha@arm.com>
29289         * neon.md (neon_vget_lanev2di): Use gen_lowpart and gen_highpart.
29290         * config/arm/neon.ml (Fixed_return_reg): Renamed to fixed_vector_reg.
29291         All callers changed.
29292         (Fixed_core_reg): New feature.
29293         (Vget_lane [sizes S64 and U64]): Add Fixed_core_reg.  Allow fmrrd in
29294         disassembly.
29295         * neon-testgen.ml: Handle Fixed_core_reg.
29297 2012-03-21  Andrew Stubbs  <ams@codesourcery.com>
29299         * config/arm/arm.c (thumb2_reorg): Add complete support
29300         for 16-bit instructions.
29301         * config/arm/thumb2.md: Delete obsolete flag-clobbering peepholes.
29303 2012-03-21  Richard Guenther  <rguenther@suse.de>
29305         PR tree-optimizer/52636
29306         * tree-vect-slp.c (vect_get_constant_vectors): Convert constants
29307         to the appropriate type.
29309 2012-03-21  Richard Guenther  <rguenther@suse.de>
29311         * Makefile.in (cfgexpand.o): Add $(REGS_H) and $(INTEGRATE_H)
29312         dependencies.
29313         * cfgexpand.c (gimple_expand_cfg): Fold in pass_init_function,
29314         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
29315         * passes.c (init_optimization_passes): Remove pass_init_function,
29316         pass_jump, pass_initial_value_sets and pass_unshare_all_rtl.
29317         * tree-pass.h (pass_init_function): Remove.
29318         (pass_jump): Remove.
29319         (pass_initial_value_sets): Remove.
29320         (pass_unshare_all_rtl): Remove.
29321         * integrate.c (pass_initial_value_sets): Remove.
29322         * emit-rtl.c (pass_unshare_all_rtl): Remove.
29323         * tree.h (init_function_for_compilation): Remove.
29324         * function.c (init_function_for_compilation): Remove.
29325         (pass_init_function): Remove.
29326         * cfgcleanup.c (rest_of_handle_jump): Remove.
29327         (pass_jump): Remove.
29329 2012-03-20  Jason Merrill  <jason@redhat.com>
29331         * tree-streamer-in.c (streamer_alloc_tree): Call
29332         ggc_alloc_zone_cleared_tree_node instead of
29333         ggc_alloc_zone_cleared_tree_node_stat.
29335 2012-03-20  Jonathan Wakely  <jwakely.gcc@gmail.com>
29337         * doc/extend.texi (Template Instantiation): Remove anachronisms.
29339 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
29341         PR target/52607
29342         * config/i386/i386.c (expand_vec_perm_vperm2f128): New function.
29343         (ix86_expand_vec_perm_const_1): Call it.
29345         * config/i386/i386.c (vselect_insn): New variable.
29346         (init_vselect_insn): New function.
29347         (expand_vselect, expand_vselect_insn): Add testing_p argument.
29348         Call init_vselect_insn if vselect_insn is NULL.  Adjust
29349         PATTERN (vselect_insn), instead of creating a new insn each time,
29350         only emit a copy of it if not testing and recog has been successful.
29351         (expand_vec_perm_pshufb, expand_vec_perm_1,
29352         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_broadcast_1): Adjust
29353         callers.
29355         PR target/52607
29356         * config/i386/i386.md ("isa" attribute): Add avx2 and noavx2.
29357         ("enabled" attribute): Handle avx2 and noavx2 isas.
29358         * config/i386/sse.md (avx2_vec_dupv8sf_1, avx2_pbroadcast<mode>_1):
29359         New insns.
29360         (vec_dup<mode>): Add avx2 =x,x alternative.
29361         (vec_dup<mode> splitter): Don't split if TARGET_AVX2.
29362         (*avx_vperm_broadcast_<mode>): Don't split V4DFmode if TARGET_AVX2.
29363         For TARGET_AVX2, V8SFmode and elt == 0 split into vbroadcastss.
29364         * config/i386/i386.c (expand_vec_perm_pshufb): Emit also vpermps
29365         for V8SFmode.
29366         (expand_vec_perm_1): For broadcasts, use avx2_pbroadcast<mode>_1
29367         if possible, handle also V8SFmode.
29369 2012-03-20  Richard Earnshaw  <rearnsha@arm.com>
29371         * arm/predicates.md (zero_operand, reg_or_zero_operand): New predicates.
29372         * arm/neon.md (neon_vceq<mode>, neon_vcge<mode>): Use
29373         reg_or_zero_operand predicate.
29374         (neon_vcle<mode>, neon_vclt<mode>): Use zero_operand predicate.
29376 2012-03-20  Jakub Jelinek  <jakub@redhat.com>
29378         * config/i386/i386.c (ix86_decompose_address) <case ZERO_EXTEND>:
29379         If operand isn't UNSPEC, return 0.
29381 2012-03-20  Richard Guenther  <rguenther@suse.de>
29383         * tree-pass.h (pass_rtl_eh): Remove.
29384         * except.c (gate_handle_eh): Likewise.
29385         (rest_of_handle_eh): Likewise.
29386         (pass_rtl_eh): Likewise.
29387         (finish_eh_generation): Export.
29388         * except.h (finish_eh_generation): Declare.
29389         * passes.c (init_optimization_passes): Remove pass_rtl_eh.
29390         * cfgexpand.c (gimple_expand_cfg): Call finish_eh_generation
29391         after expanding stack alignment.  Instead of compacting blocks
29392         call cleanup_cfg.
29394 2012-03-20  Richard Guenther  <rguenther@suse.de>
29396         * stor-layout.c (finish_bitfield_representative): Fallback
29397         to conservative maximum size if the padding up to the next
29398         field cannot be computed as a constant.
29399         (finish_bitfield_layout): If we cannot compute the distance
29400         between the start of the bitfield representative and the
29401         bitfield member start a new representative.
29402         * expr.c (get_bit_range): The distance between the start of
29403         the bitfield representative and the bitfield member is zero
29404         if the field offsets are not constants.
29406 2012-03-20  Tristan Gingold  <gingold@adacore.com>
29408         * tree.h (enum size_type_kind): Add stk_ prefix to constants,
29409         convert in lowercase.
29410         (sizetype_tab, sizetype, bitsizetype, ssizetype, sbitsizetype)
29411         (size_int, ssize_int, bitsize_int, sbitsize_int): Adjust.
29412         * stor-layout.c (sizetype_tab): Adjust.
29413         (initialize_sizetypes): Use SIZETYPE instead of SIZE_TYPE.
29414         * tree-streamer.c (preload_common_nodes): Use stk_type_kind_last
29415         instead of type_kind_last.
29416         * tree-scalar-evolution.c (interpret_rhs_expr): Use size_int
29417         instead of size_int_kind.
29418         * doc/tm.texi.in (Type Layout): Document SIZETYPE.
29419         * doc/tm.texi: Regenerate.
29420         * defaults.h (SIZETYPE): Provide a default value.
29421         * config/vms/vms.h (SIZE_TYPE): Define as "unsigned int".
29422         (SIZETYPE): Define.
29424 2012-03-20  Oleg Endo  <olegendo@gcc.gnu.org>
29426         * config/sh/sh.md: Use braced string notation where applicable.
29428 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
29430         * config/i386/i386.md (allocate_stack): Simplify.
29432 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
29434         * builtins.c (expand_builtin_cexpi): Use copy_addr_to_reg instead of
29435         copy_to_mode_reg (Pmode, ...).
29436         (expand_builtin_frame_address): Ditto.
29437         * expr.c (emit_block_move_via_libcall): Ditto.
29438         (set_storage_via_libcall): Ditto.
29440         * config/i386/i386.c (ix86_expand_movmem): Ditto.
29441         (ix86_expand_setmem): Ditto.
29442         (ix86_trampoline_init): DItto.
29443         * config/i386/i386.md (cmpstrnsi): Ditto.
29445 2012-03-19  Sandra Loosemore  <sandra@codesourcery.com>
29447         * config/sh/sh.opt (madjust-unroll): Mark as ignored/obsolete.
29448         * config/sh/sh.h (TARGET_OPT_DEFAULT): Don't use MASK_ADJUST_UNROLL.
29449         * doc/invoke.texi (Option Summary): Remove -madjust-unroll.
29450         (SH Options): Likewise.
29452 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
29454         * config/i386/i386.c (get_thread_pointer): Add tp_mode argument.
29455         Generate ZERO_EXTEND in place if GET_MODE (tp) != tp_mode.
29456         (legitimize_tls_address) <TLS_MODEL_INITIAL_EXEC>: Always generate
29457         DImode UNSPEC_GOTNTPOFF references on TARGET_64BIT.
29458         (ix86_decompose_address): Allow zero extended UNSPEC_TP references.
29460         Revert:
29461         2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
29463         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
29464         * config/i386/i386.c (ix86_decompose_address): Use
29465         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
29466         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
29467         thread pointer to a register.
29469         Revert:
29470         2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
29472         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
29473         if Pmode != word_mode.
29474         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
29475         Pmode == SImode for TARGET_X32.
29477         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
29478         (tls_initial_exec_x32): Likewise.
29480 2012-03-19  Oleg Endo  <olegendo@gcc.gnu.org>
29482         PR target/50751
29483         * config/sh/sh.h (CONST_OK_FOR_K04, CONST_OK_FOR_K12, DISP_ADDR_P,
29484         DISP_ADDR_OFFSET): New macros.
29485         * config/sh/sh.c (sh_address_cost): Add SH2A special case.
29486         (sh_legitimate_index_p): Allow QImode displacements for non-SH2A.
29487         (sh_legitimize_address): Add QImode displacement handling.
29488         (sh_cannot_change_mode_class): Disallow GENERAL_REGS for SFmode
29489         vector subregs.
29490         (sh_secondary_reload): Add QImode displacement handling.
29491         * config/sh/predicates.md (movsrc_no_disp_mem_operand): New predicate.
29492         * config/sh/constraints.md (K04, Snd, Sdd): New constraints.
29493         * config/sh/sh.md (extendqisi2): Remove constraints from expander.
29494         (*extendqisi2_compact): Rename to *extendqisi2_compact_reg, restrict
29495         to register operands only.
29496         (*extendqisi2_compact_mem_disp, *extendqisi2_compact_snd): New insns.
29497         (extendqihi2): Change insn to expander.
29498         (*extendqihi2_compact_reg): New insn.
29499         (movqi_i, movqi): Replace with ...
29500         (movqi, *movqi_reg_reg, *movqi_store_mem_disp12,
29501         *movqi_load_mem_disp, *movqi_load_mem_disp): ... these.
29502         Add new peepholes for QImode displacement addressing.
29504 2012-03-19  Paolo Carlini  <paolo.carlini@oracle.com>
29506         PR c++/14710
29507         * doc/invoke.texi: Document -Wuseless-cast.
29509 2012-03-19  Eric Botcazou  <ebotcazou@adacore.com>
29511         * tree.def (REALPART_EXPR, IMAGPART_EXPR, VIEW_CONVERT_EXPR): Move.
29512         * tree.h (handled_component_p): Reorder cases.
29513         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref): Do
29514         not initialize unsignedp.
29515         (loc_list_from_tree): Likewise.
29516         (fortran_common): Likewise.
29517         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
29519 2012-03-19  Uros Bizjak  <ubizjak@gmail.com>
29521         * config/i386/i386.c (ix86_expand_prologue) <CM_LARGE_PIC>: Use Pmode
29522         mode consistently.  Use ix86_gen_add3.  Assert that Pmode == DImode.
29523         (ix86_expand_split_stack_prologue): Use ix86_gen_add3.
29524         (ix86_split_long_move): Ditto.
29525         (legitimize_tls_address): Use ix86_gen_sub3.
29526         (construct_plt_address): Assert that Pmode == DImode.
29528 2012-03-18  Uros Bizjak  <ubizjak@gmail.com>
29530         * config/i386/i386.md: Remove empty predicates and/or constraints.
29531         * config/i386/sync.md: Ditto.
29532         * config/i386/sse.md: Ditto.
29533         * config/i386/mmx.md: Ditto.
29534         * config/i386/pentium.md: Ditto.
29535         * config/i386/athlon.md: Ditto.
29537 2012-03-16  Richard Guenther  <rguenther@suse.de>
29539         PR tree-optimization/52603
29540         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Clarify
29541         comment.
29543         Revert
29544         2012-03-14  Richard Guenther  <rguenther@suse.de>
29546         PR tree-optimization/52571
29547         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
29548         flag_section_anchors check ...
29549         (vect_can_force_dr_alignment_p): ... here.
29551 2012-03-16  Martin Jambor  <mjambor@suse.cz>
29553         * expr.c (expand_expr_real_1): Handle misaligned scalar reads from
29554         memory through MEM_REFs by calling extract_bit_field.
29556 2012-03-16  Richard Guenther  <rguenther@suse.de>
29558         * fold-const.c (native_interpret_expr): Also support POINTER_TYPE
29559         and REFERENCE_TYPE interpretations.
29560         (can_native_interpret_type_p): New function.
29561         (fold_ternary_loc): Use native encode/interpret to fold
29562         BIT_FIELD_REFs of constants.
29564 2012-03-16  Richard Guenther  <rguenther@suse.de>
29566         PR middle-end/52584
29567         * fold-const.c (fold_ternary_loc): Fold vector typed BIT_FIELD_REFs
29568         of vector constants and constructors.
29570 2012-03-16  Richard Guenther  <rguenther@suse.de>
29572         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
29573         VIEW_CONVERT_EXPR to convert constants.
29574         (vect_is_simple_use): Treat all constants as vec_constant_def.
29576 2012-03-16  Richard Guenther  <rguenther@suse.de>
29577             Kai Tietz  <ktietz@redhat.com>
29579         PR middle-end/48814
29580         * gimplify.c (gimplify_self_mod_expr): Evaluate postfix
29581         side-effects completely in the pre-queue and use a temporary
29582         for the result.
29584 2012-03-16  Richard Guenther  <rguenther@suse.de>
29586         * stor-layout.c (finish_bitfield_representative): Fall back
29587         to the conservative maximum size if we cannot compute the
29588         size of the tail padding.
29590 2012-03-16  Tristan Gingold  <gingold@adacore.com>
29592         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
29593         __CRTL_VER and __VMS_VER.
29594         * config/vms/vms-protos.h: Declare vms_c_get_crtl_ver
29595         and vms_c_get_vms_ver.
29596         * config/vms/vms-c.c (vms_c_get_crtl_ver, vms_c_get_vms_ver): New
29597         functions.
29598         * config/alpha/vms.h (VMS_DEFAULT_CRTL_VER)
29599         (VMS_DEFAULT_VMS_VER): Define.
29600         * config/ia64/vms.h (VMS_DEFAULT_CRTL_VER)
29601         (VMS_DEFAULT_VMS_VER): Define.
29603 2012-03-16  Richard Guenther  <rguenther@suse.de>
29605         * tree-vect-loop.c (get_initial_def_for_induction): Use
29606         build_constructor directly.
29607         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
29608         build_vector_from_val.
29609         * tree.c (build_vector_from_val): Avoid creating a constructor
29610         first when we want a constant vector.
29612 2012-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29614         * doc/install.texi (Specific, *-*-solaris2*): Improve wording.
29616 2012-03-16  Richard Guenther  <rguenther@suse.de>
29618         * tree.h (TREE_VECTOR_CST_ELTS): Remove.
29619         (VECTOR_CST_NELTS, VECTOR_CST_ELTS, VECTOR_CST_ELT): New defines.
29620         (struct tree_vector): Remove elements member, add variable size
29621         elts array member.
29622         (build_vector_stat): Declare.
29623         (build_vector): Define in terms of build_vector_stat.
29624         * tree.c (build_vector): Rename to ...
29625         (build_vector_stat): ... this.  Take array of trees as parameter.
29626         (build_vector_from_ctor): Adjust.
29627         (integer_zerop, integer_onep, integer_all_onesp, iterative_hash_expr,
29628         initializer_zerop): Adjust.
29629         * cfgexpand.c (expand_debug_expr): Likewise.
29630         * expr.c (categorize_ctor_elements_1, expand_expr_real_1,
29631         const_vector_from_tree): Likewise.
29632         * fold-const.c (const_binop, operand_equal_p, native_encode_vector,
29633         native_interpret_vector, fold_unary_loc, vec_cst_ctor_to_array,
29634         fold_vec_perm, fold_binary_loc, fold_ternary_loc): Likewise.
29635         * tree-streamer-in.c (streamer_alloc_tree): Handle TS_VECTOR.
29636         (lto_input_ts_vector_tree_pointers): Adjust.
29637         * tree-streamer-out.c (streamer_write_tree_header): Handle TS_VECTOR.
29638         (write_ts_vector_tree_pointers): Adjust.
29639         * varasm.c (const_hash_1, compare_constant, copy_constant,
29640         output_constant): Adjust.
29641         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Adjust.
29642         * print-tree.c (print_node): Adjust.
29643         * tree-pretty-print.c (dump_generic_node): Adjust.
29644         * tree-vect-generic.c (uniform_vector_p, vector_element,
29645         lower_vec_perm): Adjust.
29646         * tree-vect-loop.c (get_initial_def_for_reduction): Adjust.
29647         * tree-vect-slp.c (vect_get_constant_vectors,
29648         vect_transform_slp_perm_load): Adjust.
29649         * tree-vect-stmts.c (vect_gen_perm_mask): Adjust.
29650         * expmed.c (make_tree): Adjust.
29651         * config/i386/i386.c (ix86_expand_builtin): Adjust.
29652         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Adjust interface
29653         and implementation.
29654         (sparc_fold_builtin): Adjust.
29656 2012-03-16  Tristan Gingold  <gingold@adacore.com>
29658         * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file.
29659         * config/vms/vms-stdint.h: New file.
29661 2012-03-16  Tristan Gingold  <gingold@adacore.com>
29663         * config.host (alpha64-dec-*vms*, alpha*-dec-*vms*)
29664         (ia64-hp-*vms*): Replaced by ...
29665         (*-*-*vms*): ... This new entry.
29667 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
29669         PR target/52568
29670         * config/i386/i386.c (expand_vec_perm_vperm2f128_vblend): New function.
29671         (ix86_expand_vec_perm_const_1): Use it.
29673         PR target/52568
29674         * config/i386/sse.md (UNSPEC_VPERMDF): Remove.
29675         (avx2_permv4df): Remove.
29676         (avx2_permv4di): Macroize into...
29677         (avx2_perm<mode>): ... this using VI8F_256 iterator.
29678         (avx2_permv4di_1): Macroize into...
29679         (avx2_perm<mode>_1): ... this using VI8F_256 iterator.
29681 2012-03-15  Ulrich Weigand  <ulrich.weigand@linaro.org>
29683         * combine.c (apply_distributive_law): Do not distribute SUBREG.
29685 2012-03-15  Ira Rosen  <irar@il.ibm.com>
29686             Ulrich Weigand  <ulrich.weigand@linaro.org>
29688         * tree-vect-patterns.c (widened_name_p): Rename to ...
29689         (type_conversion_p): ... this.  Add new argument to determine
29690         if it's a promotion or demotion operation.  Check for
29691         CONVERT_EXPR_CODE_P instead of NOP_EXPR.
29692         (vect_recog_dot_prod_pattern): Call type_conversion_p instead
29693         widened_name_p.
29694         (vect_recog_widen_mult_pattern, vect_recog_widen_sum_pattern,
29695         vect_operation_fits_smaller_type, vect_recog_widen_shift_pattern):
29696         Likewise.
29697         (vect_recog_mixed_size_cond_pattern): Likewise and allow
29698         non-constant then and else clauses.
29700 2012-03-15  Ira Rosen  <irar@il.ibm.com>
29701             Ulrich Weigand  <ulrich.weigand@linaro.org>
29703         * tree-vectorizer.h (vect_pattern_recog): Add new argument.
29704         * tree-vect-loop.c (vect_analyze_loop_2): Update call to
29705         vect_pattern_recog.
29706         * tree-vect-patterns.c (widened_name_p): Pass basic block
29707         info to vect_is_simple_use.
29708         (vect_recog_dot_prod_pattern): Fail for basic blocks.
29709         (vect_recog_widen_sum_pattern): Likewise.
29710         (vect_handle_widen_op_by_const): Support basic blocks.
29711         (vect_operation_fits_smaller_type,
29712         vect_recog_over_widening_pattern): Likewise.
29713         (vect_recog_vector_vector_shift_pattern): Support basic blocks.
29714         Update call to vect_is_simple_use.
29715         (vect_recog_mixed_size_cond_pattern): Support basic blocks.
29716         Add printing.
29717         (check_bool_pattern): Add an argument, update call to
29718         vect_is_simple_use and the recursive calls.
29719         (vect_recog_bool_pattern): Update relevant function calls.
29720         Add printing.
29721         (vect_mark_pattern_stmts): Update calls to new_stmt_vec_info.
29722         (vect_pattern_recog_1): Check for reduction only in loops.
29723         (vect_pattern_recog): Add new argument.  Support basic blocks.
29724         * tree-vect-stmts.c (vectorizable_conversion): Pass basic block
29725         info to vect_is_simple_use_1.
29726         * tree-vect-slp.c (vect_get_and_check_slp_defs): Support basic blocks.
29727         (vect_slp_analyze_bb_1): Call vect_pattern_recog.
29729 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
29730             Andrew Pinski  <apinski@cavium.com>
29732         PR middle-end/52592
29733         * builtins.c (expand_builtin_int_roundingfn_2): If expanding
29734         BUILT_IN_IR{INT,OUND}* using optab fails, emit lr{int,ound}*
29735         calls instead of __builtin_ir{int,ound}*.
29737 2012-03-15  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
29739         * doc/sourcebuild.texi (cleanup-modules, keep-modules): Update
29740         documentation.
29742 2012-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
29744         * config.gcc (target_type_format_char): New. Document it. Set it for
29745         arm*-*-* .
29746         * configure.ac (gnu_unique_option): Use target_type_format_char
29747         in test.  Comment rationale.
29748         * configure: Regenerate .
29750 2012-03-15  Jakub Jelinek  <jakub@redhat.com>
29752         PR tree-optimization/52267
29753         * tree-vrp.c (masked_increment): New function.
29754         (register_edge_assert_for_2): Derive ASSERT_EXPRs
29755         from (X & CST1) cmp CST2 tests.
29757 2012-03-15  Richard Guenther  <rguenther@suse.de>
29759         PR middle-end/52580
29760         * tree-data-ref.c (subscript_dependence_tester_1): Check
29761         all dimensions for non-conflicting access functions.
29763 2012-03-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
29765         PR c++/44783
29766         * doc/invoke.texi [C++ Language Options]: Document
29767         -ftemplate-backtrace-limit.
29769 2012-03-15  Tristan Gingold  <gingold@adacore.com>
29771         * c-parser.c (c_parser_parameter_declaration): Handle #pragma
29772         before a parameter.
29774 2012-03-15  Tristan Gingold  <gingold@adacore.com>
29776         * dwarf2out.c (gen_subprogram_die): Require dwarf unwinding to
29777         use DW_OP_call_frame_cfa.
29779 2012-03-14  H.J. Lu  <hongjiu.lu@intel.com>
29781         PR target/50797
29782         * config/i386/i386-opts.h (pmode): New.
29784         * config/i386/i386.c (ix86_option_override_internal): Properly
29785         check and set ix86_pmode.
29787         * config/i386/i386.h (Pmode): Check ix86_pmode instead of TARGET_64BIT.
29789         * config/i386/i386.opt (maddress-mode=): New.
29791         * doc/invoke.texi: Document -maddress-mode=short|long for x86.
29793 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29795         * dwarf2cfi.c (def_cfa_0): Remove MIPS_DEBUGGING_INFO handling.
29796         (dwarf2out_do_cfi_asm): Likewise.
29797         * dwarf2out.c (output_call_frame_info): Remove MIPS_DEBUGGING_INFO
29798         handling.
29799         (add_data_member_location_attribute): Likewise.
29800         (gen_array_type_die): Likewise.
29801         (gen_subprogram_die): Likewise.
29802         (gen_producer_string): Likewise.
29803         * sdbout.c (sdbout_begin_prologue): Declare unconditionally.
29804         Remove MIPS_DEBUGGING_INFO handling.
29805         (sdb_debug_hooks): Likewise.
29806         (sdbout_begin_block): Likewise.
29807         (sdbout_end_block): Likewise.
29808         (sdbout_begin_prologue): Likewise.
29809         (sdbout_start_source_file): Likewise.
29810         (sdbout_end_source_file): Likewise.
29811         (sdbout_init): Likewise.
29812         * system.h (MIPS_DEBUGGING_INFO): Poison.
29814 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29816         * config/alpha/alpha.c [HAVE_STAMP_H]: Remove.
29817         (alpha_file_start) [MS_STAMP]: Remove.
29819         * config/alpha/elf.h (TARGET_GAS): Remove.
29820         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove.
29821         * config/alpha/linux.h (TARGET_DEFAULT): Remove.
29822         * config/alpha/netbsd.h (TARGET_DEFAULT): Remove.
29823         * config/alpha/vms.h (TARGET_DEFAULT): Remove.
29824         * config.gcc (alpha*-*-linux*): Remove target_cpu_default.
29825         (alpha*-*-freebsd*): Likewise.
29826         (alpha*-*-netbsd*): Likewise.
29827         (alpha*-*-openbsd*): Likewise.
29828         (alpha*-*-*): Remove target_cpu_default2.
29829         * config/alpha/alpha.c (alpha_output_filename): Remove !TARGET_GAS
29830         handling.
29831         * config/alpha/alpha.h (TARGET_AS_CAN_SUBTRACT_LABELS): Remove.
29832         (TARGET_AS_SLASH_BEFORE_SUFFIX): Remove.
29833         * config/alpha/alpha.c (print_operand): Always assume
29834         TARGET_AS_SLASH_BEFORE_SUFFIX.
29835         * config/alpha/alpha.md ("*builtin_setjmp_receiver_er_sl_1"):
29836         Remove TARGET_AS_CAN_SUBTRACT_LABELS.
29837         ("*builtin_setjmp_receiver_er_1"): Remove.
29838         * config/alpha/alpha.opt (malpha-as): Remove.
29839         (mgas): Ignore.
29840         * doc/invoke.texi (Option Summary, DEC Alpha Options): Remove
29841         -malpha-as, -mgas.
29842         Remove DEC Unix reference.
29844         * config/alpha/alpha.h (OBJECT_FORMAT_COFF): Remove.
29845         (EXTENDED_COFF): Remove.
29846         * config/alpha/elf.h (OBJECT_FORMAT_COFF): Don't undef.
29847         (EXTENDED_COFF): Don't undef.
29848         * config/alpha/alpha.c (alpha_file_start): Always assume
29849         OBJECT_FORMAT_ELF.
29850         Don't set targetm.asm_file_start_file_directive.
29851         [!OBJECT_FORMAT_ELF]: Remove.
29852         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
29854         * config/alpha/alpha.h (SDB_DEBUGGING_INFO): Remove.
29855         (DBX_DEBUGGING_INFO): Remove.
29856         (MIPS_DEBUGGING_INFO): Remove.
29857         (PREFERRED_DEBUGGING_TYPE): Remove.
29858         (DBX_OUTPUT_SOURCE_LINE): Remove.
29859         (SDB_OUTPUT_SOURCE_LINE): Remove.
29860         (DBX_CONTIN_LENGTH): Remove.
29861         (NO_DBX_FUNCTION_END): Remove.
29862         (ASM_STABS_OP): Remove.
29863         (ASM_STABN_OP): Remove.
29864         (ASM_STABD_OP): Remove.
29865         (SDB_ALLOW_FORWARD_REFERENCES): Remove.
29866         (SDB_ALLOW_UNKNOWN_REFERENCES): Remove.
29867         (PUT_SDB_DEF): Remove.
29868         (PUT_SDB_PLAIN_DEF): Remove.
29869         (PUT_SDB_TYPE): Remove.
29870         (sdb_label_count): Remove.
29871         (PUT_SDB_BLOCK_START): Remove.
29872         (PUT_SDB_BLOCK_END): Remove.
29873         (PUT_SDB_FUNCTION_START): Remove.
29874         (PUT_SDB_FUNCTION_END): Remove.
29875         (PUT_SDB_EPILOGUE_END): Remove.
29876         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Don't undef.
29877         (MIPS_DEBUGGING_INFO): Don't undef.
29878         (DBX_DEBUGGING_INFO): Don't undef.
29879         * config/alpha/vms.h (SDB_DEBUGGING_INFO): Don't undef.
29880         (MIPS_DEBUGGING_INFO): Don't undef.
29881         (DBX_DEBUGGING_INFO): Don't undef.
29882         * config/alpha/freebsd.h (DBX_CONTIN_CHAR): Remove.
29883         * config/alpha/alpha.c (alpha_option_override): Remove SDB_DEBUG
29884         handling.
29885         (alpha_start_function): Likewise.
29886         (sdb_label_count): Remove.
29887         (alpha_output_filename): Remove DBX_DEBUG handling.
29888         (alpha_file_start): Likewise.
29890 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29892         * config.gcc (enable_obsolete): Remove *-*-solaris2.8*.
29893         (*-*-solaris2.[0-8], *-*-solaris2.[0-8].*): Mark unsupported.
29894         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Remove
29895         Solaris 8 support.
29896         * configure.ac (gcc_cv_ld_hidden): Remove *-*-solaris2.8*.
29897         (ld_tls_support): Remove Solaris 8 references.
29898         (lwp_dir, lwp_spec): Remove support for alternate thread library.
29899         * acinclude.m4 (gcc_cv_initfini_array): Remove *-*-solaris2.* tests.
29900         * configure: Regenerate.
29901         * config.in: Regenerate.
29903         * config/sol2.h (LINK_SPEC): Remove LIB_THREAD_LDFLAGS_SPEC.
29904         * config/i386/sol2.h: Remove Solaris 8 references.
29906         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Rename to ...
29907         (i?86-*-solaris2.9): ... this.
29908         Remove Solaris 8 references.
29909         (Specific, *-*-solaris2*): Document Solaris 8 removal.
29910         Remove Solaris 8 references.
29912 2012-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29914         * config.gcc (enable_obsolete): Remove mips-sgi-irix6.5.
29915         (mips-sgi-irix6.5*): Remove.
29916         * config.host (mips-sgi-irix*): Remove.
29917         * configure.ac (enable_fixed_point): Remove mips*-sgi-irix*.
29918         (set_have_as_tls): Remove *-*-irix6*.
29919         (gcc_cv_ld_static_dynamic): Remove mips-sgi-irix6*.
29920         * configure: Regenerate.
29922         * config/mips/iris6.h: Remove.
29923         * config/mips/iris6.opt: Remove.
29924         * config/mips/t-irix6: Remove.
29926         * config/mips/mips.h (TARGET_GPWORD): Remove IRIX 6 N64 handling.
29927         (TARGET_IRIX6): Remove.
29928         (TARGET_CPU_CPP_BUILTINS): Remove IRIX 6 handling.
29929         Don't define LANGUAGE_C, _LANGUAGE_C for Objective-C.
29930         * config/mips/mips.c (mips_build_builtin_va_list): Remove IRIX 6
29931         handling.
29932         (mips_file_start): Likewise.
29933         * config/mips/mips-protos.h (irix_asm_output_align): Remove.
29935         * config/mips/driver-native.c [__sgi__]: Remove.
29936         (host_detect_local_cpu) [__sgi__]: Remove.
29938         * config/mips/gnu-user.h: Remove iris5.h reference.
29940         * config/mips/mips-modes.def: Remove IRIX 6 reference.
29941         * config/mips/gnu-user64.h (MIPS_TFMODE_FORMAT): Remove.
29942         * config/mips/mips.c (mips_option_override) [MIPS_TFMODE_FORMAT]:
29943         Remove.
29945         * gcc.c (main): Move asm_debug initialization ...
29946         (asm_debug): ... here.
29948         * ginclude/stddef.h (__STDDEF_H__): Don't define.
29950         * defaults.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Remove.
29951         * system.h (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES): Poison.
29952         * collect2.c [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
29953         (main) [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES]: Remove.
29954         [LINK_ELIMINATE_DUPLICATE_LDIRECTORIES] (is_in_args): Remove.
29955         * doc/tm.texi.in (Driver, LINK_ELIMINATE_DUPLICATE_LDIRECTORIES):
29956         Remove.
29957         * doc/tm.texi: Regenerate.
29959         * doc/invoke.texi (Debugging Options, -gdwarf-<version>): Remove
29960         IRIX 6 reference.
29961         (MIPS Options, -march): Remove IRIX reference.
29962         * doc/install.texi (Binaries, SGI IRIX): Remove.
29963         (Specific, mips-sgi-irix6): Document IRIX 6.5 removal, remove rest
29964         of section.
29965         * doc/trouble.texi (Interoperation): Remove -lgl_s handling.
29967 2012-03-14  Martin Jambor  <mjambor@suse.cz>
29969         * expr.c (expand_assignment): Use expand_expr with EXPAND_WRITE
29970         when expanding MEM_REFs, MEM_TARGET_REFs and handled_component bases.
29971         (expand_expr_real_1): Do not handle misalignment if modifier is
29972         EXPAND_WRITE.
29974 2012-03-14  Richard Guenther  <rguenther@suse.de>
29976         PR middle-end/52584
29977         * tree-vect-generic.c (type_for_widest_vector_mode): Take
29978         element type instead of mode, use build_vector_type_for_mode
29979         instead of the langhook, build a vector of proper signedness.
29980         (expand_vector_operations_1): Adjust.
29982 2012-03-14  Richard Guenther  <rguenther@suse.de>
29984         PR middle-end/52582
29985         * gimple-fold.c (canonicalize_constructor_val): Make sure we have
29986         a cgraph node for a FUNCTION_DECL that comes from a constructor.
29987         (gimple_get_virt_method_for_binfo): Likewise.
29989 2012-03-14  Richard Guenther  <rguenther@suse.de>
29991         PR tree-optimization/52571
29992         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
29993         flag_section_anchors check ...
29994         (vect_can_force_dr_alignment_p): ... here.  Do not re-align
29995         DECL_COMMON variables.
29997 2012-03-14  Richard Guenther  <rguenther@suse.de>
29999         * tree.h (DECL_BIT_FIELD_REPRESENTATIVE): New define.
30000         * stor-layout.c (start_bitfield_representative): New function.
30001         (finish_bitfield_representative): Likewise.
30002         (finish_bitfield_layout): Likewise.
30003         (finish_record_layout): Call finish_bitfield_layout.
30004         * tree.c (free_lang_data_in_decl): Only free DECL_QUALIFIER
30005         for QUAL_UNION_TYPE fields.
30006         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
30007         Stream DECL_BIT_FIELD_REPRESENTATIVE.
30008         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
30010         PR middle-end/52080
30011         PR middle-end/52097
30012         PR middle-end/48124
30013         * expr.c (get_bit_range): Unconditionally extract bitrange
30014         from DECL_BIT_FIELD_REPRESENTATIVE.
30015         (expand_assignment): Adjust call to get_bit_range.
30017 2012-03-14  Richard Guenther  <rguenther@suse.de>
30019         PR middle-end/52578
30020         * fold-const.c (fold_unary_loc): Fold (T1)(T2)x to (T1)x if
30021         the outermost conversion is a sign-change only.
30022         (fold_binary_loc): Disregard widening and sign-changing
30023         conversions when we determine if two variables are equal
30024         for reassociation.
30025         * tree-ssa-forwprop.c (combine_conversions): Fold (T1)(T2)x to
30026         (T1)x if the outermost conversion is a sign-change only.
30028 2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
30030         Revert:
30031         2012-03-14  Uros Bizjak  <ubizjak@gmail.com>
30033         * config/i386/predicates.md (constant_call_address_operand): Declare
30034         as special predicate.  Update all uses.
30036 2012-03-13  Jakub Jelinek  <jakub@redhat.com>
30038         PR c/52577
30039         * c-parser.c (c_parser_postfix_expression)
30040         <case RID_BUILTIN_SHUFFLE>: Call mark_exp_read on argument values.
30042         * config/i386/smmintrin.h: Avoid /* within a comment.
30043         * config/i386/nmmintrin.h: Likewise.
30045 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
30047         * config/i386/i386.md (xbegin): Remove constraint from expander.
30049 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
30051         * config/i386/predicates.md (constant_call_address_operand): Declare
30052         as special predicate.  Update all uses.
30053         * config/i386/i386.md: Remove mode from constant_call_address_operand
30054         predicates.
30055         * config/i386/i386.c (ix86_output_call_insn): Call
30056         constant_call_address_operand with VOIDmode.
30058 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
30060         * config/i386/i386.c (ix86_decompose_address): Handle subregs of
30061         AND zero extended address correctly.
30063 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
30065         * config/i386/predicates.md (tls_symbolic_operand): Declare as
30066         special predicate.
30067         (tls_modbase_operand): Ditto.
30068         * config/i386/i386.md: Remove mode from tls_symbolic_operand and
30069         tls_modbase_operand predicates.
30071 2012-03-13  Martin Jambor  <mjambor@suse.cz>
30073         * expr.c (expand_assignment): Handle misaligned scalar writes to
30074         memory through top-level MEM_REFs by calling store_bit_field.
30076 2012-03-13  Richard Guenther  <rguenther@suse.de>
30078         PR middle-end/52134
30079         * fold-const.c (fold_binary_loc): Fold (X * Y) & -(1 << CST) to X * Y
30080         if Y is a constant multiple of 1 << CST.
30082 2012-03-13  Georg-Johann Lay  <avr@gjlay.de>
30084         PR target/52488
30085         * config/avr/avr.c (avr_prologue_setup_frame): Cut down stack
30086         offset (size) to a value the insns can deal with.
30087         (expand_epilogue): Ditto.
30089 2012-03-13  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
30091         * config/arm/neon.ml (ops): Fixup expected instructions for
30092         unsigned vector compares.
30094 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
30096         * config/i386/i386.c (ix86_decompose_address): Prevent %fs:(%reg)
30097         addresses only when %reg is not in word mode.
30099 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30101         * config/microblaze/microblaze.md: Fix typo.
30102         * tree-if-conv.c: Likewise.
30103         * tree-vect-patterns.c: Likewise.
30105 2012-03-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30107         * config.gcc (extra_passes): Remove.
30108         * configure.ac (extra_passes): Don't substitute.
30109         * configure: Regenerate.
30110         * Makefile.in (EXTRA_PASSES): Remove.
30111         (GCC_PASSES): Remove $(EXTRA_PASSES).
30112         (MOSTLYCLEANFILES): Likewise.
30113         (native): Likewise.
30114         (install-common): Likewise.
30116 2012-03-13  Uros Bizjak  <ubizjak@gmail.com>
30118         * config/i386/i386.h (TARGET_TLS_INDIRECT_SEG_REFS): New.
30119         * config/i386/i386.c (ix86_decompose_address): Use
30120         TARGET_TLS_INDIRECT_SEG_REFS to prevent %fs:(%reg) addresses.
30121         (legitimize_tls_address): Use TARGET_TLS_INDIRECT_SEG_REFS to load
30122         thread pointer to a register.
30124 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30126         * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Remove :P
30127         on tls_symbolic_operand.
30128         (tls_global_dynamic_64_<mode>): Likewise.
30130 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
30132         PR other/52545
30133         * output.h (SECTION_EXCLUDE, SECTION_MACH_DEP): Don't use
30134         SECTION_MACH_DEP reserved bits for SECTION_EXCLUDE.
30136 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
30138         PR target/52499
30139         * config/avr/avr.c (avr_mode_code_base_reg_class): Change return
30140         type from reg_class_t to enum reg_class.
30141         * config/avr/avr-protos.h (avr_mode_code_base_reg_class): Ditto.
30143 2012-03-12  Andrew Pinski  <apinski@cavium.com>
30145         * tree-ssa-phiopt.c (single_non_singleton_phi_for_edges): New function.
30146         (tree_ssa_phiopt_worker): Use single_non_singleton_phi_for_edges.
30147         (value_replacement): Likewise.
30148         (empty_block_p): Check also if the PHIs for the block are empty.
30150 2012-03-12  Georg-Johann Lay  <avr@gjlay.de>
30152         PR target/52148
30153         * config/avr/avr.c (avr_out_movmem): Fix typo in output template
30154         for the case ADDR_SPACE_FLASH and AVR_HAVE_LPMX introduced in
30155         r184615 from 2012-02-28.
30157 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30159         * config/i386/i386.c (ix86_gen_tls_global_dynamic_64): New.
30160         (ix86_gen_tls_local_dynamic_base_64): Likewise.
30161         (ix86_option_override_internal): Set ix86_gen_tls_global_dynamic_64
30162         and ix86_gen_tls_local_dynamic_base_64.
30163         (legitimize_tls_address): Use ix86_gen_tls_global_dynamic_64 and
30164         ix86_gen_tls_local_dynamic_base_64.
30166         * config/i386/i386.md (*tls_global_dynamic_64): Renamed to ...
30167         (*tls_global_dynamic_64_<mode>): This.
30168         (tls_global_dynamic_64): Renamed to ...
30169         (tls_global_dynamic_64_<mode>): This.
30170         (*tls_local_dynamic_base_64): Renamed to ...
30171         (*tls_local_dynamic_base_64_<mode>): This.
30172         (tls_local_dynamic_base_64): Renamed to ...
30173         (tls_local_dynamic_base_64_<mode>): This.
30175 2012-03-12  H.J. Lu  <hongjiu.lu@intel.com>
30177         * config/i386/i386.c (ix86_option_override_internal): Properly
30178         set ix86_gen_leave and ix86_gen_monitor.  Check Pmode == DImode,
30179         instead of TARGET_64BIT, to set ix86_gen_add3, ix86_gen_sub3,
30180         ix86_gen_one_cmpl2, ix86_gen_andsp, ix86_gen_allocate_stack_worker,
30181         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
30183         * config/i386/sse.md (sse3_monitor64): Renamed to ...
30184         (sse3_monitor64_<mode>): This.
30186 2012-03-12  Tristan Gingold  <gingold@adacore.com>
30188         * config/ia64/ia64.c (ia64_function_arg_1): Move code around.
30189         (ia64_function_arg_advance): Ditto.
30191 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30193         * config.gcc (mips*-*-openbsd*): Remove.
30194         * config/mips/openbsd.h: Remove.
30195         * config/mips/sdb.h: Remove.
30197         * config/mips/mips.h (SDB_OUTPUT_SOURCE_LINE): Remove.
30198         * config/mips/mips.c (sdb_label_count): Remove.
30199         (mips_debugger_offset): Remove #if 0 code.
30200         (mips_output_function_prologue) [SDB_DEBUGGING_INFO]: Remove.
30201         * config/mips/sde.h (SDB_DEBUGGING_INFO): Don't undef.
30203 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30205         * doc/install.texi (Specific, i?86-*-solaris2.[89]): Update
30206         binutils reference.
30207         (Specific, i?86-*-solaris2.10): Remove GCC 4.0 reference.
30208         Update binutils references.
30209         (Specific, *-*-solaris2*): Mention bundled GCC in Solaris 10 and 11.
30210         Update binutils reference.
30211         Update Sun as/GNU ld caveat.
30212         Document binutils largefile requirement for LTO plugin.
30213         Remove reference to alternate libpthread.
30215 2012-03-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30217         * config.gcc (alpha*-dec-osf5.1*): Remove.
30218         * config.host (alpha*-dec-osf*): Remove.
30219         * configure.ac (*-*-osf*): Remove.
30220         (alpha*-dec-osf*): Remove.
30221         * configure: Regenerate.
30223         * config/alpha/host-osf.c, config/alpha/osf5.h, config/alpha/osf5.opt,
30224         config/alpha/va_list.h, config/alpha/x-osf: Remove.
30226         * config/alpha/alpha.h (TARGET_LD_BUGGY_LDGP): Remove.
30227         * config/alpha/alpha.c (struct machine_function): Update comment.
30228         (alpha_start_function): Remove Tru64 UNIX as handling for
30229         max_frame_size.
30230         * config/alpha/alpha.md ("exception_receiver"): Remove
30231         TARGET_LD_BUGGY_LDGP.
30232         ("*exception_receiver_2"): Likewise.
30233         * except.c (finish_eh_generation): Remove Tru64 reference.
30234         * ginclude/stdarg.h [_HIDDEN_VA_LIST]: Don't undef _VA_LIST.
30235         * system.h (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Poison.
30236         * target.def (handle_pragma_extern_prefix): Remove.
30238         * Makefile.in (mips-tfile.o-warn): Remove.
30239         (ALL_HOST_BACKEND_OBJS): Remove mips-tfile.o, mips-tdump.o.
30240         (mips-tfile, mips-tfile.o, mips-tdump, mips-tdump.o): Remove.
30241         * mips-tdump.c, mips-tfile.c: Remove.
30243         * doc/extend.texi (Symbol-Renaming Pragmas): Remove #pragma
30244         extern_prefix.
30245         * doc/install.texi (Binaries): Remove Tru64 UNIX reference.
30246         (Specific, alpha*-dec-osf5.1): Note removal.
30247         * doc/tm.texi.in (Misc, TARGET_HANDLE_PRAGMA_EXTERN_PREFIX):
30248         Remove.
30249         * doc/tm.texi: Regenerate.
30250         * doc/trouble.texi (Cross-Compiler Problems): Remove.
30252 2012-03-12  Richard Guenther  <rguenther@suse.de>
30254         * config/arm/arm.c (neon_dereference_pointer): Do not call
30255         covert during RTL expansion.
30257 2012-03-12  Tristan Gingold  <gingold@adacore.com>
30259         * doc/invoke.texi (VMS Options): Merge Alpha/VMS and IA-64/VMS
30260         Options.  Mention -mpointer-size.
30262 2012-03-12  Richard Guenther  <rguenther@suse.de>
30264         * config/alpha/alpha.c (alpha_gimplify_va_arg): Use
30265         build_nonstandard_integer_type.
30267 2012-03-12  Richard Guenther  <rguenther@suse.de>
30269         * tree.c (signed_or_unsigned_type_for): Use
30270         build_nonstandard_integer_type.
30271         (signed_type_for): Adjust documentation.
30272         (unsigned_type_for): Likewise.
30273         * tree-pretty-print.c (dump_generic_node): Use standard names
30274         for non-standard integer types if available.
30276 2012-03-12  Tristan Gingold  <gingold@adacore.com>
30278         * config/vms/vms.opt: Add vms-opts.h header.
30279         (mmalloc64): Use flag_vms_malloc64 flag instead of MALLOC64
30280         target mask.
30281         (-mvms-return-codes): Document.
30282         (-mpointer-size): New option.
30283         (vms_pointer_size): Add enumeration.
30284         * config/vms/vms-opts.h: New file.
30285         * config/vms/vms.h (TARGET_OS_CPP_BUILTINS): Define
30286         __INITIAL_POINTER_SIZE.
30287         (POINTER_SIZE, SIZE_TYPE, PTRDIFF_TYPE): Adjust definition.
30288         (C_COMMON_OVERRIDE_OPTIONS): Define.
30289         (DWARF2_ADDR_SIZE): Define.
30290         * config/vms/vms.c (vms_patch_builtins): Adjust condition.
30291         * config/vms/vms-protos.h (vms_c_common_override_options):
30292         New prototype.
30293         * config/vms/vms-c.c (vms_pragma_pointer_size): Ignore pragma
30294         if -mno-pointer-size.
30295         (vms_c_common_override_options): New function.
30296         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
30297         * config/alpha/vms.h (TARGET_DEFAULT): Remove MASK_MALLOC64.
30298         (MALLOC_ABI_ALIGNMENT): Use flag_vms_malloc64
30299         and flag_vms_pointer_size.
30300         (MASK_RETURN_ADDR): Set according to flag_vms_pointer_size.
30301         * config.gcc (*-*-*vms*): Define xm_file.
30302         (alpha*-dec-*vms*): Do not define xm_file.
30303         (alpha64-dec-*vms*): Remove.
30304         (ia64-hp-*vms*): Do not define xm_file.  Simplify tm_file
30305         and tmake_file.
30307 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
30309         PR tree-optimization/51721
30310         * tree-vrp.c (register_edge_assert_for_2): Add asserts for unsvar
30311         if (int) unsvar cmp CST.
30313 2012-03-12  Richard Guenther  <rguenther@suse.de>
30315         * tree-sra.c (create_access_replacement): Only rename the replacement
30316         if we can rewrite it into SSA form.  Properly mark register typed
30317         replacements that we cannot rewrite with TREE_ADDRESSABLE.
30318         * tree-cfg.c (verify_expr): Fix BIT_FIELD_REF verification
30319         for aggregate or BLKmode results.
30321 2012-03-12  Jakub Jelinek  <jakub@redhat.com>
30323         PR tree-optimization/52533
30324         * tree-vrp.c (register_edge_assert_for_2): Use double_int
30325         type for mask, only handle shifts by non-zero in-range
30326         shift count, for LE_EXPR and GT_EXPR if new_val is
30327         maximum, don't add the assertion.
30329 2012-02-12  Kirill Yukhin  <kirill.yukhin@intel.com>
30331         * doc/invoke.texi: Document -mrtm option.
30332         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RTM_SET): New.
30333         (OPTION_MASK_ISA_RTM_UNSET): Ditto.
30334         (ix86_handle_option): Handle OPT_mrtm.
30335         * config.gcc (i[34567]86-*-*): Add rtmintrin.h and
30336         xtestintrin.h.
30337         (x86_64-*-*): Ditto.
30338         * i386-builtin-types.def (INT_FTYPE_VOID): New.
30339         * config/i386/i386-c.c (ix86_target_macros_internal): Define
30340         __RTM__ if needed.
30341         (ix86_target_string): Define -mrtm option.
30342         (PTA_RTM): New.
30343         (ix86_option_override_internal): Extend "corei7-avx" with RTM option.
30344         Handle new option.
30345         (ix86_valid_target_attribute_inner_p): Add OPT_mrtm.
30346         (ix86_builtins): Add IX86_BUILTIN_XBEGIN, IX86_BUILTIN_XEND,
30347         IX86_BUILTIN_XTEST.
30348         (bdesc_special_args): Ditto.
30349         (ix86_init_mmx_sse_builtins): Add IX86_BUILTIN_XABORT.
30350         (ix86_expand_special_args_builtin): Handle new built-in type.
30351         (ix86_expand_builtin): Handle XABORT instruction.
30352         * config/i386/i386.h (TARGET_RTM): New.
30353         * config/i386/i386.md (UNSPECV_XBEGIN): New.
30354         (UNSPECV_XEND): Ditto.
30355         (UNSPECV_XABORT): Ditto.
30356         (UNSPECV_XTEST): Ditto.
30357         (xbegin): Ditto.
30358         (xbegin_1): Ditto.
30359         (xend): Ditto.
30360         (xabort): Ditto
30361         (xtest): Ditto.
30362         (xtest_1): Ditto.
30363         * config/i386/i386.opt (mrtm): New.
30364         * config/i386/immintrin.h: Include rtmintrin.h and xtestintrin.h.
30365         * config/i386/rtmintrin.h: New header.
30366         * config/i386/xtestintrin.h: Ditto.
30368 2012-03-12  Tristan Gingold  <gingold@adacore.com>
30370         * ginclude/stddef.h: Adjust previous patch.
30371         Use __VMS__ instead of VMS.
30373 2012-03-12  Uros Bizjak  <ubizjak@gmail.com>
30375         * config/i386/i386.md (setcc + movzbl to xor + setcc peephole2):
30376         Also convert sequences with CC setting arithmetic instruction.
30378 2012-03-11  Sandra Loosemore  <sandra@codesourcery.com>
30380         * doc/invoke.texi (Option Summary): Move -no-integrated-cpp
30381         from C Language Options to Preprocessor Options.
30382         (C Dialect Options): Move -no-integrated-cpp documentation
30383         from here...
30384         (Preprocessor Options): ...to here.  Rewrite the description
30385         so it makes more sense, and remove discussion of merging front ends.
30387 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
30389         * config/i386/i386.c (ix86_expand_movmem): Use word_mode for size
30390         needed for loop.
30391         (ix86_expand_setmem): Likewise.
30393 2012-03-11  Uros Bizjak  <ubizjak@gmail.com>
30395         * config/i386/i386.c (ix86_zero_extend_to_Pmode): Rewrite using
30396         convert_to_mode.
30398 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
30400         * config/i386/i386.c (ix86_trampoline_init): Use movl for 64bit if
30401         ptr_mode == SImode.  Replace DImode with Pmode or ptr_mode.
30403 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
30405         * config/i386/i386.c (x86_this_parameter): Replace DImode with Pmode.
30407 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
30409         * config/i386/i386.md (lwp_slwpcb): Check Pmode instead of
30410         TARGET_64BIT.
30412 2012-03-11  H.J. Lu  <hongjiu.lu@intel.com>
30413             Uros Bizjak  <ubizjak@gmail.com>
30415         * config/i386/predicates.md (call_insn_operand): Allow
30416         constant_call_address_operand in Pmode only.
30417         (sibcall_insn_operand): Ditto.
30418         * config/i386/i386.md (*call): Use W mode iterator instead of P mode.
30419         (*call_vzeroupper): Ditto.
30420         (*sibcall): Ditto.
30421         (*sibcall_vzeroupper): Ditto.
30422         (*call_value): Ditto.
30423         (*call_value_vzeroupper): Ditto.
30424         (*sibcall_value): Ditto.
30425         (*sibcall_value_vzeroupper): Ditto.
30426         (*indirect_jump): Ditto.
30427         (*tablejump_1): Ditto.
30428         (indirect_jump): Convert memory address to word mode for TARGET_X32.
30429         (tablejump): Ditto.
30430         * config/i386/i386.c (ix86_expand_call): Convert indirect operands
30431         to word mode.
30433 2012-03-11  Oleg Endo  <olegendo@gcc.gnu.org>
30435         PR target/51244
30436         * config/sh/sh.md (movnegt): Expand into respective insns immediately.
30437         Use movrt_negc instead of negc pattern for non-SH2A.
30438         (*movnegt): Remove.
30439         (*movrt_negc, *negnegt, *movtt, *movt_qi): New insns and splits.
30441 2012-03-10  H.J. Lu  <hongjiu.lu@intel.com>
30443         * config/i386/i386.c (ix86_decompose_address): Disallow fs:(reg)
30444         if Pmode != word_mode.
30445         (legitimize_tls_address): Call gen_tls_initial_exec_x32 if
30446         Pmode == SImode for TARGET_X32.
30448         * config/i386/i386.md (UNSPEC_TLS_IE_X32): New.
30449         (tls_initial_exec_x32): Likewise.
30451 2012-03-10  Chung-Lin Tang  <cltang@codesourcery.com>
30453         PR rtl-optimization/52528
30454         * combine.c (can_combine_p): Add setting of subst_low_luid
30455         before call to expand_field_assignment().
30457 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
30459         * doc/invoke.texi: Use correct names/markup for "GCC", "GDB", "ld",
30460         and related program names.
30462 2012-03-09  Sandra Loosemore  <sandra@codesourcery.com>
30464         * doc/invoke.texi: Use correct names for "DWARF", "stabs", and "ELF".
30466 2012-03-09  Uros Bizjak  <ubizjak@gmail.com>
30468         PR target/52530
30469         * config/i386/i386.c (ix86_print_operand): Handle 'E' operand modifier.
30470         (ix86_print_operand_address): Handle UNSPEC_LEA_ADDR. Do not fallback
30471         to set code to 'q'.
30472         * config/i386/i386.md (UNSPEC_LEA_ADDR): New unspec.
30473         (*movdi_internal_rex64): Use %E operand modifier for lea.
30474         (*movsi_internal): Ditto.
30475         (*lea_1): Ditto.
30476         (*lea<mode>_2): Ditto.
30477         (*lea_{3,4,5,6}_zext): Ditto.
30478         (*tls_global_dynamic_32_gnu): Ditto.
30479         (*tls_global_dynamic_64): Ditto.
30480         (*tls_dynamic_gnu2_lea_32): Ditto.
30481         (*tls_dynamic_gnu2_lea_64): Ditto.
30482         (pro_epilogue_adjust_stack_<mode>_add): Ditto.
30484 2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
30486         * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
30487         redefine to be NULL if the current bit-size is different from the
30488         configured bit-size.
30490         * config/rs6000/rs6000.c (rs6000_option_override_internal): If the
30491         cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
30492         set the default tuning.  Add asserts to make sure the cpu and tune
30493         indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
30494         test whether the index is set, instead of > 0.
30495         (rs6000_file_start): Do not reset the default cpu if the current
30496         bit-size is different from the configured bit-size.
30498 2012-03-09  Tristan Gingold  <gingold@adacore.com>
30500         * config/vms/vms-crtlmap.map: Add comments.
30501         Add entries needed to build Ada RTS.
30503 2012-03-09  Tristan Gingold  <gingold@adacore.com>
30505         * ginclude/stddef.h: Do not define __size_t on VMS.
30507 2012-03-09  Tristan Gingold  <gingold@adacore.com>
30509         * c-tree.h (c_default_pointer_mode): New variable.
30510         * c-decl.c (c_default_pointer_mode): New variable.
30511         (c_build_pointer_type): New function.
30512         (grokdeclarator): Call c_build_pointer_type instead
30513         of build_pointer_type.
30515         * config/vms/vms-c.c: Include c-tree.h
30516         (saved_pointer_mode): New variable.
30517         (handle_pragma_pointer_size): New function.
30518         (vms_pragma_pointer_size, vms_pragma_required_pointer_size): Likewise.
30519         (vms_c_register_pragma): Register __pointer_size and
30520         __required_pointer_size pragmas.
30522 2012-03-09  Tristan Gingold  <gingold@adacore.com>
30524         * config/vms/vms-c.c (vms_construct_include_filename): New function.
30525         (vms_c_register_includes): Reference it.
30527 2012-03-09  Andrew Pinski  <apinski@cavium.com>
30529         PR middle-end/51988
30530         * tree-ssa-phiopt.c: Include tree-pretty-print.h for
30531         print_generic_expr.
30532         (tree_ssa_phiopt_worker): Go through all the PHIs for
30533         value_replacement instead of just the singleton one.
30534         (value_replacement): Change return type to int.  Return 0 instead of
30535         false.
30536         Allow the middle basic block to contain more than just the defining
30537         statement.
30538         Handle non empty middle basic blocks.
30539         * Makefile.in (tree-ssa-phiopt.o): Add tree-pretty-print.h.
30541 2012-03-09  Jiangning Liu  <jiangning.liu@arm.com>
30543         * tree-scalar-evolution (interpret_rhs_expr): generate chrec for
30544         array reference and component reference.
30545         (analyze_scalar_evolution_for_address_of): New.
30547 2012-03-08  Jie Zhang  <jzhang918@gmail.com>
30549         PR target/49862
30550         * config/bfin/bfin.c (hwloop_optimize): Fix unused variable warnings.
30551         (hwloop_pattern_reg): Fix set but not used warning.
30552         (bfin_reorg_loops): Remove unused parameter.
30553         (bfin_reorg): Update use of bfin_reorg_loops.
30555 2012-03-08  H.J. Lu  <hongjiu.lu@intel.com>
30557         * config/i386/i386.c (setup_incoming_varargs_64): Use word_mode
30558         with integer parameters in registers.
30559         (gen_push): Push register in word_mode instead of Pmode.
30560         (ix86_emit_save_regs): Likewise.
30561         (ix86_emit_save_regs_using_mov): Save integer registers in word_mode.
30562         (gen_pop): Pop register in word_mode instead of Pmode.
30563         (ix86_emit_restore_regs_using_pop): Likewise.
30564         (ix86_expand_prologue): Replace Pmode with word_mode for push
30565         immediate.  Use ix86_gen_pro_epilogue_adjust_stack.  Save and
30566         restore RAX and R10 in word_mode.
30567         (ix86_emit_restore_regs_using_mov): Restore integer registers
30568         in word_mode.
30569         (ix86_expand_split_stack_prologue): Save R10_REG and restore in
30570         word_mode.
30571         (ix86_split_to_parts): Use word_mode with PUT_MODE for push.
30572         (ix86_split_long_move): Likewise.
30574         * config/i386/i386.md (W): New.
30575         (*push<mode>2_prologue): Replace :P with :W.
30576         (*pop<mode>1): Likewise.
30577         (*pop<mode>1_epilogue): Likewise.
30578         (push/pop peephole2): Use word_mode scratch registers.
30580 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
30582         * config/i386/predicates.md (indirect_branch_operand): Simplify.
30584 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
30586         * config/avr/avr.md (*addhi3, addhi3_clobber): Add "w" alternative
30587         for constants in [-63,63].
30589 2012-03-08  Uros Bizjak  <ubizjak@gmail.com>
30591         PR target/52530
30592         Revert:
30593         2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
30595         * config/i386/i386.c (ix86_print_operand_address): Only handle
30596         zero-extended DImode addresses.
30598 2012-03-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
30600         * configure.ac (gcc_cv_as_ix86_tlsldmplt): Add label.
30601         * configure: Regenerate.
30603 2012-03-08  Georg-Johann Lay  <avr@gjlay.de>
30605         PR target/52496
30606         * config/avr/avr.c (avr_mem_clobber): New static function.
30607         (avr_expand_delay_cycles): Add memory clobber operand to
30608         delay_cycles_1, delay_cycles_2, delay_cycles_3, delay_cycles_4.
30609         * config/avr/avr.md (unspec): Add UNSPEC_MEMORY_BARRIER.
30610         (enable_interrupt, disable_interrupt): New expander.
30611         (nopv, sleep, wdr): New expanders.
30612         (delay_cycles_1): Add memory clobber.
30613         (delay_cycles_2): Add memory clobber.
30614         (delay_cycles_3): Add memory clobber.
30615         (delay_cycles_4): Add memory clobber.
30616         (cli_sei): New insn from former "enable_interrupt",
30617         "disable_interrupt" with memory clobber.
30618         (*wdt): New insn from former "wdt" with memory clobber.
30619         (*nopv): Similar, but for "nopv".
30620         (*sleep): Similar, but for "sleep".
30622 2012-03-07  Oleg Endo  <olegendo@gcc.gnu.org>
30623             Kaz Kojima  <kkojima@gcc.gnu.org>
30625         PR target/52503
30626         * config/sh/sh.opt (msoft-atomic): Use Var instead of Mask.
30627         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_SOFT_ATOMIC.
30628         (SUBTARGET_OVERRIDE_OPTIONS): Define.
30630 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
30632         * config/i386/predicates.md (x86_64_zext_general_operand): New.
30633         * config/i386/i386.md (*zero_extendsidi2_rex64): Change operand 1
30634         predicate to x86_64_zext_general_operand.  Accept "Z" constraint.
30636 2012-03-07  Walter Lee  <walt@tilera.com>
30638         * config/tilegx/tilegx.c (tilegx_expand_prologue): Don't generate
30639         REG_CFA_* notes for the stack pointer.
30640         (tilegx_expand_epilogue): Restore stack pointer by adjusting it by
30641         EH_RETURN_STACKADJ_RTX.
30642         * config/tilepro/tilepro.c (tilepro_expand_prologue): Don't
30643         generate REG_CFA_* notes for the stack pointer.
30644         (tilepro_expand_epilogue): Restore stack pointer by adjusting it
30645         by EH_RETURN_STACKADJ_RTX.
30647 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
30649         * doc/invoke.texi (AVR Built-in Macros): Correct condition for
30650         when __AVR_3_BYTE_PC__ is defined.
30652 2012-03-07  Uros Bizjak  <ubizjak@gmail.com>
30654         * config/i386/i386.c (ix86_print_operand_punct_valid_p): Add '^'.
30655         (ix86_print_operand): Handle '^'.
30656         * config/i386/i386.md (*strmovdi_rex_1): Macroize memory operands
30657         using P mode iterator.  Add %^ to asm template to conditionally emit
30658         addr32 prefix.
30659         (*rep_movdi_rex64): Ditto.
30660         (*strsetdi_rex_1): Ditto.
30661         (*rep_stosdi_rex64): Ditto.
30662         (*strmov{si,hi,qi}_1): Add %^ to asm template to
30663         conditionally emit addr32 prefix.
30664         (*rep_mov{si,qi}): Ditto.
30665         (*strset{si,hi,qi}): Ditto.
30666         (*rep_stos{si,qi}): Ditto.
30667         (*cmpstrnqi_nz_1): Ditto.
30668         (*cmpstrnqi_1): Ditto.
30669         (*strlenqi_1): Ditto.
30671 2012-03-07  H.J. Lu  <hongjiu.lu@intel.com>
30673         * config/i386/i386.c (function_value_64): Return pointers in
30674         word_mode instead of Pmode.
30675         (ix86_promote_function_mode): Likewise.
30677 2012-03-07  Richard Guenther  <rguenther@suse.de>
30679         * coverage.c (get_gcov_type): Use type_for_mode.
30680         (get_gcov_unsigned_t): Likewise.
30681         * expr.c (store_constructor): Use type_for_mode.
30682         (try_casesi): Likewise.
30683         * tree-ssa-loop-ivopts.c (add_standard_iv_candidates_for_size): Remove.
30684         (add_standard_iv_candidates): Use standard type trees.
30685         * dojump.c (do_jump): Remove dead code.
30687 2012-03-07  Richard Guenther  <rguenther@suse.de>
30689         * c-typeck.c (pointer_diff): Use c_common_type_for_size.
30691 2012-03-07  Richard Guenther  <rguenther@suse.de>
30693         * convert.c (strip_float_extensions): Move ...
30694         * tree.c (strip_float_extensions): ... here.
30696 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
30698         PR target/52484
30699         * config/avr/avr.md (xload<mode>_A): Add R22... to register footprint.
30701 2012-03-07  Richard Guenther  <rguenther@suse.de>
30703         * omp-low.c (extract_omp_for_data): Use signed_type_for.
30704         (expand_omp_for_generic): Likewise.
30705         (expand_omp_for_static_nochunk): Likewise.
30706         (expand_omp_for_static_chunk): Likewise.
30707         * tree-vect-stmts.c (vect_gen_perm_mask): Use type_for_mode.
30708         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
30709         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
30710         Use unsigned_type_for.
30711         (vect_create_cond_for_align_checks): Use signed_type_for.
30713 2012-03-07  Andrey Belevantsev  <abel@ispras.ru>
30715         PR rtl-optimization/52203
30716         * sel-sched.c (estimate_insn_cost): New parameter pempty.  Adjust
30717         all callers to pass NULL except ...
30718         (reset_sched_cycles_in_current_ebb): ... here, save the value
30719         in new variable 'empty'.  Increase issue_rate only for
30720         non-empty insns.
30722 2012-03-07  Ralf Corsépius  <ralf.corsepius@rtems.org>
30724         PR target/51417
30725         * Makefile.in: Let install-gcc-ar depend on installdirs,
30726         gcc-ar$(exeext), gcc-nm$(exeext), gcc-ranlib$(exeext).
30727         Don't double canonicalize if cross-compiling.
30729 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
30731         PR target/52506
30732         * config/avr/avr.c (expand_epilogue): Fix order of restoration
30733         to: RAMPZ, RAMPY, RAMPX, RAMPD.
30734         (expand_prologue): Only clear RAMPZ if it has effect on RAM-read.
30736 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
30738         PR target/52505
30739         * config/avr/avr.c (avr_out_xload): Don't read unintentionally
30740         from RAM.
30741         * config/avr/avr.md (xload_8): Adjust insn length.
30743 2012-03-07  Georg-Johann Lay  <avr@gjlay.de>
30745         PR target/52461
30746         * config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
30747         if RAMPZ affects reading from RAM.
30749 2012-03-07  Richard Guenther  <rguenther@suse.de>
30751         PR pch/52518
30752         PR pch/38987
30753         * doc/invoke.texi (Precompiled Headers): Remove sentence that
30754         suggests you can include PCHs from inside another header.
30756 2012-03-07  Richard Sandiford  <rdsandiford@googlemail.com>
30758         PR middle-end/52515
30759         * rtl.h (pc_rtx, cc0_rtx, ret_rtx, simple_return_rtx): Add GTY markers.
30761 2012-03-07  Kai Tietz  <ktietz@redhat.com>
30763         * doc/invoke.texi (fwritable-relocated-rdata): Document
30764         new Cygwin/MinGW target option.
30765         * config/i386/winnt.c (i386_pe_unique_section): Ignore
30766         reloc if flag -fwritable-relocated-rdata is not set.
30767         (i386_pe_section_type_flags): Likewise.
30768         * config/i386/cygming.opt (fwritable-relocated-rdata):
30769         Add new flag variable flag_writable_rel_rdata.
30771 2012-03-07  Richard Guenther  <rguenther@suse.de>
30773         * tree-ssa-math-opts.c (convert_mult_to_widen): Check actual
30774         precision against gimple constraints.
30776 2012-03-06  Richard Sandiford  <rdsandiford@googlemail.com>
30778         PR middle-end/52372
30779         * rtl.h (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): Redefine as
30780         variables.
30781         (GR_PC, GR_CC0, GR_RETURN, GR_SIMPLE_RETURN): Delete.
30782         * emit-rtl.c (pc_rtx, ret_rtx, simple_return_rtx, cc0_rtx): New
30783         variables.
30784         (init_emit_regs): Move associated initialization to...
30785         (init_emit_once): ...here.
30787 2012-03-06  Richard Henderson  <rth@redhat.com>
30789         * config/m68k/m68k.h (ISA_HAS_TAS): New.
30790         * config/m68k/sync.md (atomic_test_and_set): Use it.
30791         (atomic_test_and_set_1): Likewise.
30793 2012-03-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
30795         PR target/50310
30796         * config/rs6000/vector.md (vector_uneq<mode>): Add support for
30797         UNEQ, LTGT, ORDERED, and UNORDERED IEEE vector comparisons.
30798         (vector_ltgt<mode>): Likewise.
30799         (vector_ordered<mode>): Likewise.
30800         (vector_unordered<mode>): Likewise.
30801         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
30803 2012-03-06  Aldy Hernandez  <aldyh@redhat.com>
30805         * trans-mem.c: New typedef for tm_region_p.
30806         Define vector types for tm_region_p.
30807         (tm_region_init): Replace region_worklist to a vector called
30808         bb_regions.
30810 2012-03-06  Richard Guenther  <rguenther@suse.de>
30812         * fold-const.c (build_fold_addr_expr_with_type_loc): Fold
30813         MEM_REF with constant pointer operand.
30815 2012-03-06  Richard Guenther  <rguenther@suse.de>
30817         PR middle-end/52493
30818         * tree-ssa-alias.c (ptr_derefs_may_alias_p): Robustify.
30820 2012-03-06  Tristan Gingold  <gingold@adacore.com>
30822         * config/vms/vms-c.c (vms_pragma_nomember_alignment): Handle octaword.
30823         (external_model_kind): Improve documentation.
30824         (vms_pragma_extern_model): Handle relaxed_redef.
30825         (vms_c_register_pragma): Allow expansion for nomember_alignment.
30827 2012-03-06  Georg-Johann Lay  <avr@gjlay.de>
30829         * doc/invoke.texi (AVR Options): -mmcu=: Document the XMEGA cores.
30830         Explain RAMPD, RAMPX, RAMPDY, RAMPZ usage by avr-gcc.
30831         Some more notes on EIND usage and reorder EIND subsection.
30833 2012-03-06  Tristan Gingold  <gingold@adacore.com>
30835         * config/vms/vms.c (VMS_CRTL_LDBL): Rename from VMS_CRTL_PRNTF.
30836         * config/vms/vms-crtlmap.map: Rename PRNTF to LDBL.
30838 2012-03-06  Tristan Gingold  <gingold@adacore.com>
30840         * config/vms/t-vmsnative (version): Define.
30841         * config/vms/t-vms (STMP_FIXPROTO, STMP_FIXINC, version): Remove.
30843 2012-03-06  Andrey Belevantsev  <abel@ispras.ru>
30845         PR rtl-optimization/52250
30846         * sel-sched-ir.c (maybe_tidy_empty_bb): Try harder to find a bb
30847         to put note list into.  Unconditionally call move_bb_info.
30848         (move_bb_info): Do not assert the blocks being in the same region,
30849         just drop the note list if they are not.
30851 2012-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
30853         PR target/51244
30854         * config/sh/sh.c (sh_expand_t_scc): Remove SH2A special case
30855         and use unified expansion logic.
30856         * config/sh/sh.md (xorsi3_movrt): Rename to movrt.  Move
30857         closer to the existing movt insn.
30858         (negc): Rename insn to *negc.  Add new expander.
30859         (movnegt): Use xor pattern for T bit negation.  Reserve helper
30860         constant for negc pattern.
30861         (*movnegt): New insn and splitter.
30863 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
30865         * c-typeck.c (pointer_diff): Check for POINTER_PLUS_EXPR, not
30866         PLUS_EXPR.
30868 2012-03-05  Richard Henderson  <rth@redhat.com>
30870         * genemit.c (main): Include "target.h" in insn-emit.c.
30871         * Makefile.in (insn-emit.o): Depend on TARGET_H.
30872         * config/sh/sync.md (atomic_test_and_set): Reference
30873         targetm.atomic_test_and_set_trueval instead of
30874         TARGET_ATOMIC_TEST_AND_SET_TRUEVAL.
30876 2012-03-05  Joern Rennecke  <joern.rennecke@embecosm.com>
30878         * config/epiphany/epiphany.c (epiphany_function_value_regno_p):
30879         Make static.
30881 2012-03-05  Steven Bosscher  <steven@gcc.gnu.org>
30883         * langhooks.c (add_builtin_type): New function.
30884         * langhooks.h (add_builtin_type): Export it.
30885         * config/mep/mep.c (mep_init_builtins): Use it.
30886         * config/rs6000/rs6000.c (rs6000_init_builtins): Use it.
30888 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
30890         PR debug/51902
30891         * tree.h (BLOCK_SAME_RANGE): Define.
30892         * function.c (block_fragments_nreverse): Clear BLOCK_SAME_RANGE
30893         if BLOCK_FRAGMENT_CHAIN is non-NULL, but has it cleared.
30894         Also clear BLOCK_SAME_RANGE if fragment chain's supercontext fragment
30895         isn't equal to supercontext fragment's fragment chain.
30896         Adjust BLOCK_SUPERCONTEXT to point to supercontext fragment's
30897         fragment origin.
30898         (blocks_nreverse_all): Likewise.
30899         (reorder_blocks_1): Compute BLOCK_SAME_RANGE bits.  Set
30900         BLOCK_SUPERCONTEXT to supercontext fragment instead of
30901         supercontext fragment's fragment origin.
30902         * dwarf2out.c (add_high_low_attributes): If stmt has the same
30903         range as its parent (or parents thereof etc.), use the parent's
30904         DW_AT_ranges value instead of creating a new .debug_ranges range.
30906 2012-03-05  Richard Henderson  <rth@redhat.com>
30908         PR tree-opt/52242
30909         Revert: 2011-11-26  Richard Henderson  <rth@redhat.com>
30910         * omp-low.c (expand_omp_atomic): Assume anything aligned to
30911         BIGGEST_ALIGNMENT is aligned.
30913 2012-03-05  Richard Henderson  <rth@redhat.com>
30915         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Move...
30916         * config/sh/sh.c: ... here.
30918 2012-03-05  Richard Henderson  <rth@redhat.com>
30920         PR target/52481
30921         * config/m68k/sync.md (atomic_test_and_set): Use expand_simple_unop
30922         instead of calling negqi2 directly.
30924 2012-03-05  Aldy Hernandez  <aldyh@redhat.com>
30926         PR middle-end/52463
30927         * trans-mem.c (tm_region_init): Use last_basic_block.
30929 2012-03-05  Oleg Endo  <olegendo@gcc.gnu.org>
30931         * config/sh/sh.h (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New hook.
30932         * config/sh/sync.md (atomic_test_and_set): New expander.
30933         (tasb, atomic_test_and_set_soft): New insns.
30934         * config/sh/sh.opt (menable-tas): New option.
30935         * doc/invoke.texi (SH Options): Document it.
30937 2012-03-05  Richard Guenther  <rguenther@suse.de>
30939         * cfgloop.c (verify_loop_structure): Verify dominators before
30940         using them.
30941         * graphite-clast-to-gimple.c (graphite_verify): Do not verify
30942         dominators from here.
30943         * graphite-scop-detection.c (create_sese_edges): Likewise.
30944         * loop-doloop.c (doloop_optimize_loops): Likewise.
30945         * loop-init.c (loop_optimizer_init): Likewise.
30946         * loop-unroll.c (unroll_and_peel_loops): Likewise.
30947         * loop-unswitch.c (unswitch_loops): Likewise.
30948         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
30949         * tree-parloops.c (parallelize_loops): Likewise.  Verify
30950         only when checking is enabled.
30951         * tree-loop-distribution.c (tree_loop_distribution): Likewise.
30953 2012-03-05  Bernd Schmidt  <bernds@codesourcery.com>
30955         * genautomata.c (parse_automata_opt): New static function.
30956         (initiate_automaton_gen): Remove all option handling code.  Remove
30957         argc argument.  All callers changed.
30958         (main): Call init_rtx_reader_args_cb with the new function as argument.
30960 2012-03-05  Richard Guenther  <rguenther@suse.de>
30962         * cfgexpand.c (gimple_expand_cfg): Free dominator info.
30963         * tree-if-conv.c (combine_blocks): Free post-dominator info
30964         after breaking it.
30965         * tree-parloops.c (create_parallel_loop): Free and re-compute
30966         dominator info after breaking it.
30968 2012-03-05  Richard Guenther  <rguenther@suse.de>
30970         PR middle-end/52353
30971         * optabs.h (trapv_unoptab_p): New function.
30972         (trapv_binoptab_p): Likewise.
30973         * optabs.c (expand_binop): Use emit_libcall_block_1 with
30974         a proper equiv_may_trap argument.
30975         (expand_unop): Likewise.
30976         (emit_libcall_block_1): Take extra argument whether the
30977         instruction may trap.  Renamed from ...
30978         (emit_libcall_block): ... this.  New wrapper.
30980 2012-03-05  Jakub Jelinek  <jakub@redhat.com>
30982         PR tree-optimization/51721
30983         * tree-vrp.c (register_edge_assert_for_2): If comparing
30984         lhs of right shift by constant with an integer constant,
30985         add ASSERT_EXPRs for the rhs1 of the right shift.
30987         * cfgrtl.c (cfg_layout_merge_blocks): Cleanup.
30989 2012-03-05  Richard Guenther  <rguenther@suse.de>
30991         * tree.c (integer_zerop): Handle VECTOR_CSTs.
30992         (integer_onep): Likewise.
30993         (integer_all_onesp): Likewise.
30995 2012-03-05  Georg-Johann Lay  <avr@gjlay.de>
30997         * config/avr/avr.md (*umaddqihi4.2): New insn-and-split.
30999 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
31001         * config/i386/i386.c (pro_epilogue_adjust_stack): Check Pmode
31002         instead of TARGET_64BIT.
31004 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
31006         * config/i386/i386.c (ix86_expand_prologue): Check Pmode to set
31007         adjust_stack_insn.
31009 2012-03-04  H.J. Lu  <hongjiu.lu@intel.com>
31011         * config/i386/i386.c (ix86_print_operand_address): Only handle
31012         zero-extended DImode addresses.
31014 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
31016         * config/i386/i386.c (ix86_print_operand) <case '+'>: Declare
31017         taken and cputaken as bool.
31019 2012-03-04  Uros Bizjak  <ubizjak@gmail.com>
31021         * config/i386/constraints.md (Ya): New internal constraint.
31022         * config/i386/i386.md (zero_extendsidi2): Remove expansion.
31023         (*zero_extendsidi2_rex64): Add x,x alternative.
31024         (*zero_extendsidi2): Ditto.  Add o,0 alternative.
31025         Remove flags reg clobber.  Adjust corresponding splits.
31026         (zero_extend<mode>si2): Macroize expander from zero_extendhisi2 and
31027         zero_extendqisi2 expanders using SWI12 mode iterator.
31028         (zero_extend<mode>si2_and): Macroize insn from
31029         zero_extendhisi2_and and zero_extendqisi2_and.  Merge corresponding
31030         splitters.
31031         (*zero_extend<mode>si2):  Macroize insn from
31032         *zero_extendhisi2_movzbl and *zero_extendqisi2_movzbl.
31033         (*zero_extend*2_movzbl_and): Remove insn patterns.
31034         (zero_extendqihi2_and): Merge corresponding splitter.
31035         (*zero_extendqihi2): Rename from *zero_extendqihi2_movzbl.
31036         (*zero_extend*2_movzbl_and): Remove insn patterns.
31037         (*anddi_1): Split TYPE_IMOVX instructions.
31038         (*andsi_1): Use Ya for alternative 2.  Split TYPE_IMOVX instructions.
31039         (*andhi_1): Ditto.
31040         (and->zext splitter): Add splitter pattern.
31041         (zero extend with andsi3 splitter): Adjust zero_extend pattern.
31043 2012-03-04  Sandra Loosemore  <sandra@codesourcery.com>
31045         * doc/invoke.texi (C++ Dialect Options): Minor copy-edits to
31046         x86-specific text.
31047         (Debugging Options): Likewise.
31048         (Optimize Options): Likewise.
31049         (i386 and x86-64 Options): Discuss -march before -mtune, consistently
31050         with other architectures.  Use official processor names with correct
31051         spelling/capitalization.  Fix formatting and grammar issues.
31052         (i386 and x86-64 Windows Options): Similar cleanup here.
31054 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
31056         * config/sh/sh.md (abssi2): Add TARGET_SH1 condition.
31058 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
31060         * config/sh/sh.c (sh_dwarf_register_span): Don't apply
31061         DBX_REGISTER_NUMBER.
31063 2012-03-03  Kaz Kojima  <kkojima@gcc.gnu.org>
31065         * config/sh/sh.c (shiftcosts): Return MAX_COST when the first
31066         operand is CONST_INT.  Take COSTS_N_INSNS into account.
31067         (sh_rtx_costs): Don't apply COSTS_N_INSNS to the return value
31068         of shiftcosts.
31070 2012-03-02  Richard Henderson  <rth@redhat.com>
31072         * optabs.c (expand_atomic_test_and_set): Honor
31073         atomic_test_and_set_trueval even when atomic_test_and_set
31074         optab is not in use.
31076 2012-03-02  Kaz Kojima  <kkojima@gcc.gnu.org>
31078         PR target/48596
31079         PR target/48806
31080         * config/sh/sh.c (sh_register_move_cost): Increase cost between
31081         GENERAL_REGS and FP_REGS for SImode.
31083 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
31085         PR target/49486
31086         * config/sh/sh.md (negdi2): Add TARGET_SH1 condition.
31087         (absdi2): New expander.
31088         (*absdi2, *negabsdi2, negdi_cond): New insns and splits.
31090 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
31092         * config/sh/sync.md (atomic_exchange<mode>): New expander.
31093         (atomic_exchange<mode>_soft): New insn.
31095 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
31097         * config/sh/sync.md: Update copyright notice dates.
31098         (atomic_compare_and_swap<mode>): Use SImode for return value instead
31099         of QImode.
31100         (atomic_compare_and_swap<mode>_soft): Likewise.
31102 2012-03-02  Oleg Endo  <olegendo@gcc.gnu.org>
31104         PR target/31640
31105         * config/sh/sh.h (LOOP_ALIGN): Move logic to sh_loop_align.
31106         * config/sh/sh.c: Update copyright notice dates.
31107         (sh_loop_align): Add logic from LOOP_ALIGN.  Don't disable loop
31108         alignment for TARGET_HARD_SH4.
31109         (sh_option_override): Reduce default function alignment.  Set
31110         loop alignment to 4 bytes when not optimizing for size.
31112 2012-03-02  Maxim Kuvyrkov  <maxim@codesourcery.com>
31114         PR middle-end/50335
31115         * doc/invoke.texi (floop-flatten): Remove.
31116         * toplev.c (process_options): Remove references to flag_loop_flatten.
31117         * tree-ssa-loop.c (gate_graphite_transform): Same.
31118         * common.opt (floop-flatten): Obsolete.
31119         * graphite-poly.c (apply_poly_transforms): Remove reference to
31120         flag_loop_flatten.
31121         * Makefile.in (graphite-flattening.o): Remove.
31122         * graphite-flattening.c: Remove.
31124 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
31126         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
31127         having mode compatible with the mode of previous compare.  Substitute
31128         compare mode of previous compare with the mode, compatible
31129         with eliminated and previous compare.
31131 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
31133         * config/rs6000/dfp.md (floatdidd2): New define_insn.
31135 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
31137         * config/i386/i386.c (ix86_cc_modes_compatible): Declare CCZmode
31138         compatible with CCGOCmode and CCGCmode.
31140 2012-03-02  Peter Bergner  <bergner@vnet.ibm.com>
31142         * config/rs6000/vsx.md (vsx_set_<mode>): Reorder operands.
31144 2012-03-02  Ulrich Weigand  <ulrich.weigand@linaro.org>
31146         * config/arm/arm.c (arm_sat_operator_match): New function.
31147         * config/arm/arm-protos.h (arm_sat_operator_match): Add prototype.
31148         * config/arm/arm.md ("insn" attribute): Add "sat" value.
31149         ("SAT", "SATrev"): New code iterators.
31150         ("SATlo", "SAThi"): New code iterator attributes.
31151         ("*satsi_<SAT:code>"): New pattern.
31152         ("*satsi_<SAT:code>_shift"): Likewise.
31153         * config/arm/arm-fixed.md ("arm_ssatsihi_shift"): Add "insn"
31154         and "shift" attributes.
31155         ("arm_usatsihi"): Add "insn" attribute.
31156         * config/arm/predicates.md (sat_shift_operator): Allow multiplication
31157         by powers of two.  Do not allow shift by 32.
31159 2012-03-02  Uros Bizjak  <ubizjak@gmail.com>
31161         PR target/46716
31162         * config/i386/i386.c (construct_container): Use gen_reg_or_parallel
31163         to pass the argument in the register of "natural" mode.
31165 2012-03-02  Richard Guenther  <rguenther@suse.de>
31167         PR tree-optimization/52406
31168         * tree-data-ref.h: Update documentation about DR_BASE_OBJECT.
31169         (struct indices): Add unconstrained_base member.
31170         (struct dr_alias): Remove unused vops member.
31171         (DR_UNCONSTRAINED_BASE): New define.
31172         * tree-data-ref.c (dr_analyze_indices): For COMPONENT_REFs
31173         add indices to allow their disambiguation.  Make DR_BASE_OBJECT
31174         be an artificial access that covers the whole indexed object,
31175         or mark it with DR_UNCONSTRAINED_BASE if we cannot do so.  Canonicalize
31176         plain decl base-objects to their MEM_REF variant.
31177         (dr_may_alias_p): When the base-object of either data reference
31178         has unknown size use only points-to information.
31179         (compute_affine_dependence): Make dumps easier to read and
31180         more verbose.
31181         * tree-vect-data-ref.c (vector_alignment_reachable_p): Use
31182         DR_REF when looking for packed references.
31183         (vect_supportable_dr_alignment): Likewise.
31185 2012-03-02  Greta Yorsh  <Greta.Yorsh@arm.com>
31187         * config/arm/arm-ldmstm.ml (write_ldm_commutative_peephole):
31188         Improve conditions for peepholes of loads followed by commutative
31189         operators.
31190         * config/arm/ldmstm.md: Regenerated.
31192 2012-03-02  Richard Guenther  <rguenther@suse.de>
31194         * BASE-VER: Set to 4.8.0.
31196 2012-03-01  Richard Earnshaw  <rearnsha@arm.com>
31198         * config.gcc (obsolete): Add all ARM targets using the FPA.
31199         (with_fpu): Obsolete selection of the FPA or Maverick on ARM.
31200         * doc/install.texi: Avoid references to obsolete ARM ports.
31202 2012-03-01  Joern Rennecke  <joern.rennecke@embecosm.com>
31204         * config/epiphany/epiphany.md (movmisalign<mode>): New patterns.
31206 2012-03-01  Jeremy Bennett  <jeremy.bennett@embecosm.com>
31207             Joern Rennecke  <joern.rennecke@embecosm.com>
31209         * doc/extend.texi: Expand and update information on interrupt
31210         attribute for Epiphany.
31212 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
31214         * config/sh/sh-protos.h: Update copyright notice dates.
31215         * config/sh/sh.h: Likewise.
31216         * config/sh/sh.md: Likewise.
31217         * config/sh/constraints.md: Likewise.
31218         * config/sh/predicates.md: Likewise.
31220 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
31222         * config/sh/sh-protos.h (tertiary_reload_operand): Remove dead function.
31223         * config/sh/sh.c (tertiary_reload_operand): Likewise.
31225 2012-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
31227         * config/sh/constraints.md: Fix comment typo.
31229 2012-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
31231         PR target/52408
31232         * config/pa/pa.md (zvdep_imm32): Change type of variable x from int to
31233         unsigned HOST_WIDE_INT.
31234         (zvdep_imm64): Likewise.
31235         (vdepi_ior): Change type of variable x from int to HOST_WIDE_INT.
31236         (vdepi_and): Likewise.
31237         Likewise for unamed 64-bit patterns.
31238         * config/pa/predicates.md (lhs_lshift_cint_operand): Update comment.
31240 2012-03-01  Alexandre Oliva  <aoliva@redhat.com>
31242         PR debug/52001
31243         PR rtl-optimization/52417
31244         * cselib.c (cselib_any_perm_equivs): New variable.
31245         (cselib_reset_table): Check that it's not set when not
31246         preserving constants.
31247         (cselib_add_permanent_equiv): Set it.
31248         (cselib_have_permanent_equivalences): New.
31249         (cselib_init, cselib_finish): Reset it.
31250         * cselib.h (cselib_have_permanent_equivalences): Declare.
31251         * alias.c (get_addr): Restore earlier behavior when there
31252         aren't permanent equivalences.
31254 2012-03-01  Steven Bosscher  <steven@gcc.gnu.org>
31256         * config/mn10300/mn10300-modes.def: Fix copyright notice.
31257         * config/v850/v850-modes.def: Fix copyright notice.
31259 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
31261         * doc/extend.texi (AVR Built-in Functions): Document
31262         __builtin_avr_flash_segment.
31264         * config/avr/builtins.def (__builtin_avr_flash_segment): New entry.
31265         * config/avr/avr.md (flash_segment, flash_segment1): New expanders.
31266         (*split.flash_segment): New insn-and-split.
31267         * config/avr/avr.c (avr_init_builtins): Add local variables:
31268         const_memx_void_node, const_memx_ptr_type_node,
31269         char_ftype_const_memx_ptr.
31271 2012-03-01  Jakub Jelinek  <jakub@redhat.com>
31273         PR tree-optimization/52445
31274         * tree-ssa-phiopt.c (struct name_to_bb): Remove ssa_name field,
31275         add ssa_name_ver, offset and size fields and change store field
31276         to bool.
31277         (name_to_bb_hash, name_to_bb_eq): Adjust for the above changes.
31278         (add_or_mark_expr): Likewise.  Only consider previous stores
31279         with the same size and offset.
31280         (nt_init_block): Only look at gimple_assign_single_p stmts,
31281         doesn't look at rhs2.
31283 2012-03-01  Richard Guenther  <rguenther@suse.de>
31285         PR middle-end/52443
31286         * tree-cfg.c (verify_gimple_assign_unary): Allow any
31287         conversions from integral types to pointer types.
31289 2012-03-01  Georg-Johann Lay  <avr@gjlay.de>
31291         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Restore built-in
31292         defines for __UINT24_MAX__, __INT24_MAX__, __INT24_MIN__
31293         unintentionally removed in r184616.
31295 2012-03-01  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
31297         * doc/invoke.texi: Document AMD bdver2 and remove mentioning
31298         3DNow from bdver1.
31300 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
31301             Uros Bizjak  <ubizjak@gmail.com>
31303         PR target/52437
31304         * config/i386/sse.md (vec_set<mode>_0): Swap "*r" and "fF"
31305         alternatives, add "e" constraint to the new last alternative
31306         and ! to last 3 alternatives.
31308 2012-02-29  Eric Botcazou  <ebotcazou@adacore.com>
31310         * dwarf2out.c (modified_type_die): Set DW_AT_GNAT_descriptive_type and
31311         DW_AT_artificial attributes at the end of the processing.
31312         (gen_array_type_die): Likewise.
31313         (gen_enumeration_type_die): Likewise.
31314         (gen_struct_or_union_type_die): Likewise.
31315         (add_gnat_descriptive_type_attribute): Do not suppress debug info for
31316         the parent type.
31318 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
31320         PR middle-end/52419
31321         * expr.c (expand_assignment): If doing misaligned store that doesn't
31322         cover all mode bits, perform a RMW cycle.
31324         PR tree-optimization/52429
31325         * tree-parloops.c (separate_decls_in_region_debug): Return early
31326         if var is LABEL_DECL.
31328 2012-02-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31330         PR tree-optimization/52424
31331         * tree-ssa-dom.c (dom_opt_leave_block): Push a marker before
31332         calling dom_thread_across_edge.
31334 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
31336         * config/avr/avr.c: Move definition of TARGET macros to end of file.
31338 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
31340         * config/avr/avr-protos.h (avr_output_bld): Remove unused prototype.
31341         * config/avr/avr.c (avr_output_bld): Remove unused function.
31342         (avr_out_sbxx_branch): Use "%T" to print bit position.
31344 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
31346         * config/avr/avr.md: Untabify.
31348 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
31350         * config/avr/avr.md (eqne): New code iterator.
31351         (*dec-and-branchsi): Use it in text peephole's condition.
31352         (*dec-and-branchhi): Ditto.
31353         (*dec-and-branchqi): Ditto.
31355 2012-02-29  Georg-Johann Lay  <avr@gjlay.de>
31357         PR target/49939
31358         * config/avr/avr.h (ASM_SPEC): Add -mno-skip-bug if we know that
31359         the device does not have the skip-bug.
31361 2012-02-29  Oleg Endo  <olegendo@gcc.gnu.org>
31363         * doc/invoke.texi (-msoft-atomic): Add more detailed description.
31364         (-mbranch-cost, -mcbranchdi -mcmpeqdi -mfused-madd
31365         -mpretend-cmove): New.
31367 2012-02-29  Jakub Jelinek  <jakub@redhat.com>
31369         PR bootstrap/52397
31370         * df.h (struct df_d): Adjust comment that hard_regs_live_count
31371         doesn't count DEBUG_INSN refs.
31372         * df-scan.c (df_ref_create_structure): Don't set DF_HARD_REG_LIVE
31373         for DEBUG_INSN refs.
31375 2012-02-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31377         Partially revert:
31379         2012-02-20  Richard Guenther  <rguenther@suse.de>
31380         PR tree-optimization/52298
31381         * tree-vect-stmts.c (vectorizable_load): Properly use
31382         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing outer loops.
31384 2012-02-28  Aldy Hernandez  <aldyh@redhat.com>
31386         PR middle-end/51752
31387         * gimple.h (gimple_in_transaction): New.
31388         (gimple_set_in_transaction): New.
31389         (struct gimple_statement_base): Add in_transaction field.
31390         * tree-ssa-loop-im.c: (movement_possibility): Restrict movement of
31391         transaction loads.
31392         (tree_ssa_lim_initialize): Compute transaction bits.
31393         * tree.h (compute_transaction_bits): Protoize.
31394         * trans-mem.c (tm_region_init): Use the heap to store BB
31395         auxilliary data.
31396         (compute_transaction_bits): New.
31398 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31400         * gcc.c (display_help): Document --help=common and sort entries
31401         alphabetically.
31403 2012-02-28  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31405         * doc/install.texi: Document check-$LANG specific shortcuts
31407 2012-02-28  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
31409         PR target/51534
31410         * config/arm/arm.c (neon_builtin_data): Add entries for vcgeu
31411         and vcgtu.
31412         * config/arm/arm_neon.h: Regenerate.
31413         * config/arm/neon.md (unspec): Add UNSPEC_VCGEU, and UNSPEC_VCGTU.
31414         (neon_vcgeu): New insn.
31415         (neon_vcgtu): Likewise.
31416         * config/arm/neon.ml (s_8_32, u_8_32): New lists.
31417         (ops): Unsigned comparison intrinsics call a different builtin.
31419 2012-02-28  Richard Guenther  <rguenther@suse.de>
31421         PR target/52407
31422         * config/i386/i386.c (ix86_expand_vector_set): Fix element
31423         ordering for the VEC_CONCAT for two element vectors for
31424         V2SFmode, V2SImode and V2DImode.
31426 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
31428         PR target/49448
31429         * config.gcc (arm*-*-linux*): Use an unambiguous pattern for
31430         detecting big-endian triplets.
31432 2012-02-28  Richard Earnshaw  <rearnsha@arm.com>
31434         * arm.c (aapcs_vfp_is_call_or_return_candidate): Only use the machine
31435         mode if there is no type information available.
31437 2012-02-28  Thomas Koenig  <tkoenig@gcc.gnu.org>
31439         PR tree-optimization/53207
31440         * doc/invoke.texi: Document as experimental and relying on graphite.
31442 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
31444         * config/avr/avr-devices.c (avr_mcu_type): Adjust NULL part
31445         of initializer to changes from r184614.
31447 2012-02-28  Richard Guenther  <rguenther@suse.de>
31449         PR tree-optimization/52395
31450         * tree-sra.c (build_ref_for_offset): Also look at the base
31451         TYPE_ALIGN when figuring out the alignment of the replacement.
31453 2012-02-28  Richard Guenther  <rguenther@suse.de>
31455         PR tree-optimization/52402
31456         * ipa-prop.c (ipa_modify_call_arguments): Properly use
31457         mis-aligned types when creating the accesses at the call site.
31459 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
31461         * config/avr/builtins.def: New file.
31462         * config/avr/t-avr (avr.o, avr-c.o): Depend on it.
31463         * config/avr/avr.c (enum avr_builtin_id): Use it.
31464         (avr_init_builtins): Use it. And use avr_bdesc.
31465         (bdesc_1arg): Remove.
31466         (bdesc_2arg): Remove.
31467         (bdesc_3arg): Remove.
31468         (struct avr_builtin_description): Add field n_args.
31469         (avr_bdesc): New static variable using builtins.def.
31470         (avr_expand_builtin): Use it.
31471         Don't call avr_expand_delay_cycles if op0 is not CONST_INT.
31472         (avr_fold_builtin): Fold AVR_BUILTIN_SWAP.
31473         Don't fold AVR_BUILTIN_INSERT_BITS if arg0 is not INTEGER_CST.
31475 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
31477         PR target/52148
31478         * config/avr/avr.md (movmem_<mode>): Replace match_operand that
31479         match only one single hard register with respective hard reg rtx.
31480         (movmemx_<mode>): Ditto.
31481         * config/avr/avr.c (avr_emit_movmemhi): Adapt expanding to new
31482         insn anatomy of movmem[x]_<mode>.
31483         (avr_out_movmem): Same for printing assembler and operand usage.
31485 2012-02-28  Georg-Johann Lay  <avr@gjlay.de>
31487         PR target/49868
31488         PR target/52261
31489         * doc/extend.texi (AVR Named Address Spaces): No more try to fix
31490         address spaces located outside of device flash.
31492         * config/avr/avr.h (base_arch_s): Remove field n_segments.
31493         (mcu_type_s): Add field n_flash.
31494         * config/avr/avr-devices.c (avr_arch_types): Remove .n_segments.
31495         Set .have_elpm and .have_elpmx to 1 for avrxmega4 and avrxmega5.
31496         (AVR_MCU): Add N_FLASH argument.
31497         * config/avr/avr-mcus.def (AVR_MCU): Add initializer for .n_flash.
31498         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Only define built-in
31499         macro __FLASH<n> if that address space makes sense for the device.
31500         * config/avr/avr.c (avr_out_lpm): Don't try to fix address spaces
31501         outside of target flash.
31502         (avr_asm_named_section): Ditto.
31503         (avr_asm_select_section): Ditto.
31504         (avr_addr_space_convert): Ditto.
31505         (avr_emit_movmemhi): Ditto.
31506         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Error if
31507         address space is outside of device flash.
31508         (avr_insert_attributes): Ditto.
31509         (avr_xload_libgcc_p): Use avr_current_device->n_flash instead of
31510         avr_current_arch->n_segments.
31512 2012-02-27  H.J. Lu  <hongjiu.lu@intel.com>
31514         PR target/52352
31515         * config/i386/i386.md (*movabs<mode>_1): Enable only for TARGET_LP64.
31516         (*movabs<mode>_2): Likewise.
31518 2012-02-27  Jakub Jelinek  <jakub@redhat.com>
31520         PR target/52375
31521         * config/arm/neon.md (vashr<mode>3, vlshr<mode>3): Use
31522         s_register_operand in the test instead of REG_P.  Don't call
31523         gen_reg_rtx if it won't be used.
31525         PR tree-optimization/52376
31526         * ipa-split.c (split_function): Ignore CLOBBER stmts.
31528 2012-02-27  Stuart Henderson  <shenders@gcc.gnu.org>
31530         * ifcvt.c (noce_get_condition): Check condition variable is not
31531         small_register_classes_for_mode_p before accepting.
31533 2012-02-27  Uros Bizjak  <ubizjak@gmail.com>
31535         * config/i386/i386.md (*movabs<mode>_1): Fix operand 1 constraints.
31537 2012-02-27  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
31539         Revert:
31540         2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
31541         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
31542         tuning parameters.
31543         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
31545 2012-02-27  Oleg Endo  <olegendo@gcc.gnu.org>
31547         * config/sh/sh.h: Delete dead GO_IF_LEGITIMATE_INDEX macro.
31549 2012-02-26  Oleg Endo  <olegendo@gcc.gnu.org>
31551         * config/sh/predicates.md: Remove blank lines.
31552         * config/sh/sh.c: Fix typos in comments.
31553         * config/sh/constraints.md: Likewise.
31554         * config/sh/sh.md: Remove blank lines.
31555         Fix typos in comments.  Use ;; as comment characters.
31557 2012-02-26  Walter Lee  <walt@tilera.com>
31559         * config/tilegx/tilegx.c (match_pcrel_step2): Fix instruction pattern.
31560         (replace_mov_pcrel_step2): Ditto.
31562 2012-02-25  Alexandre Oliva  <aoliva@redhat.com>
31564         PR debug/52001
31565         * alias.c (refs_newer_value_cb, refs_newer_value_p): New.
31566         (get_addr): Walk canonical value's locs.  Avoid returning VALUEs
31567         and locs that reference values newer than the non-canonical value
31568         at hand.  Return the canonical value as a worst case.
31569         (memrefs_conflict_p): Walk canonical value's locs.
31571         PR debug/52001
31572         * cselib.c (preserve_only_constants): Rename to...
31573         (preserve_constants_and_equivs): ... this.  Split out...
31574         (invariant_or_equiv_p): ... this.  Preserve plus expressions
31575         of other preserved expressions too.
31576         (cselib_reset_table): Adjust.
31577         * var-tracking.c (reverse_op): Use canonical value to build
31578         reverse operation.
31580 2012-02-23  Kai Tietz  <ktietz@redhat.com>
31582         * config/i386/i386.c (ix86_delegitimize_address): Handle
31583         UNSPEC_PCREL plus displacement.
31585 2012-02-24  Georg-Johann Lay  <avr@gjlay.de>
31587         PR target/52261
31588         * config/avr/avr.c (avr_out_movhi_mr_r_xmega): Use base
31589         to test for unusedness in st X addressing.
31591 2012-02-24  Richard Guenther  <rguenther@suse.de>
31593         PR middle-end/52361
31594         * gimple.c (walk_gimple_op): Use predicates with less redundant tests.
31595         (is_gimple_reg_type): Move inline ...
31596         * gimple.h (is_gimple_reg_type): ... here.
31598 2012-02-24  Richard Guenther  <rguenther@suse.de>
31600         PR middle-end/52361
31601         * passes.c (execute_function_todo): When verifying SSA form
31602         verify gimple form first.
31603         * tree-ssa.c (verify_ssa): Do not verify gimple form here.
31605 2012-02-24  Richard Guenther  <rguenther@suse.de>
31607         PR middle-end/52355
31608         * fold-const.c (fold_addr_of_array_ref_difference): New function.
31609         (fold_binary_loc): Use it to extend the existing &a[i] - &a[j] folding.
31611 2012-02-13  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31613         * tree-if-conv (predicate_scalar_phi): Commentary typo fix.
31615 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31617         * tree-phinodes.c (make_phi_node): Mark static.
31618         * tree-flow.h (make_phi_node): Remove extern decl.
31619         * doc/gimple.texi (make_phi_node): Remove documentation.
31621 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31623         * tree-into-ssa (update_ssa): Avoid trailing whitespace in dump_file.
31624         * tree-ssa-sccvn.c (print_scc): Ditto.
31626 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31628         * doc/passes.texi (Full redundancy elimination): Fix typo.
31630 2012-02-23  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31632         * doc/invoke.texi (-fdse, -fdce): Remove duplicate entries.
31634 2012-02-23  Eric Botcazou  <ebotcazou@adacore.com>
31636         PR bootstrap/52287
31637         * haifa-sched.c (rank_for_schedule): Stabilize sort for debug insns.
31639 2012-02-23  Uros Bizjak  <ubizjak@gmail.com>
31641         PR c/52290
31642         * c-decl.c (start_function): Exit early if decl1 is not FUNTION_DECL.
31644 2012-02-23  Georg-Johann Lay  <avr@gjlay.de>
31646         * config/avr/avr.md (code_stdname): Add ior, xor.
31647         (xior): New code iterator.
31648         (*<code_stdname><mode>qi.byte0): Use xior instead of ior.
31649         (*<code_stdname><mode>qi.byte1-3): Ditto.
31651 2012-02-23  Jakub Jelinek  <jakub@redhat.com>
31653         PR tree-optimization/52019
31654         * ipa-split.c (find_return_bb, find_retval, visit_bb): Ignore
31655         CLOBBER stmts.
31657 2012-02-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
31659         * acinclude.m4: Use HAVE_INITFINI_ARRAY_SUPPORT instead of
31660         HAVE_INITFINI_ARRAY to work around namespace pollution in
31661         certain versions of newlib system headers.
31662         * config.in: Regenerate.
31663         * configure: Regenerate.
31664         * config/initfini-array.h: Use HAVE_INITFINI_ARRAY_SUPPORT
31665         instead of HAVE_INITFINI_ARRAY.
31667 2012-02-22  Uros Bizjak  <ubizjak@gmail.com>
31669         PR target/52330
31670         * config/i386/i386.c (ix86_print_operand) <case 'H'>: Error out if x
31671         is not offsettable memory reference.
31673 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
31675         PR target/18145
31676         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Skip
31677         setting avr_need_clear_bss_p for __gnu_lto* symbols.
31679 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
31681         * config/avr/avr.h (avr_accumulate_outgoing_args): Return int.
31682         * config/avr/avr.c (avr_accumulate_outgoing_args): Return int.
31684 2012-02-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31686         * configure.ac (LIB_TLS_SPEC): Enforce use of alternate thread
31687         library on Solaris 8 even without TLS support.
31688         * configure: Regenerate.
31690 2012-02-22  Richard Guenther  <rguenther@suse.de>
31692         PR middle-end/52329
31693         * gimple-fold.c (fold_stmt_1): Also canonicalize ADDR_EXPRs
31694         for GIMPLE_DEBUG stmts.
31696 2012-02-22  Martin Jambor  <mjambor@suse.cz>
31698         PR middle-end/51782
31699         * emit-rtl.c (set_mem_attributes_minus_bitpos): Set address space
31700         according to the base object.
31702 2012-02-22  Georg-Johann Lay  <avr@gjlay.de>
31704         PR rtl-optimization/50063
31705         * config/avr/avr.md (movhi_sp_r): Handle -1 (unknown IRQ state)
31706         and 2 (8-bit SP) in operand 2.
31707         * config/avr/avr.c (avr_prologue_setup_frame): Adjust prologue
31708         setup to use movhi_sp_r instead of vanilla move to write SP.
31709         Adjust REG_CFA notes to superseed unspec.
31710         (expand_epilogue): Adjust epilogue setup to use movhi_sp_r instead
31711         of vanilla move.
31712         As function body might contain CLI or SEI: Use irq_state 0 (IRQ
31713         known to be off) only with TARGET_NO_INTERRUPTS. Never use
31714         irq_state 1 (IRQ known to be on) here.
31716 2012-02-21  Bernd Schmidt  <bernds@codesourcery.com>
31718         * ira.c (check_allocation): Use REG_WORDS_BIG_ENDIAN, not
31719         WORDS_BIG_ENDIAN.
31720         * ira-color.c (setup_profitable_hard_regs, check_hard_reg_p,
31721         assign_hard_reg): Likewise.
31723 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
31725         * config/avr/avr.md (neghi2): Remove "!d,0" alternative. Tweak "r,0".
31727 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
31729         * config/avr/avr.md
31730         (*dec-and-branchhi!=-1.d.clobber): New text peephole.
31731         (*dec-and-branchhi!=-1.l.clobber): New text peephole.
31733 2012-02-21  Georg-Johann Lay  <avr@gjlay.de>
31735         * config/avr/avr-protos.h (avr_accumulate_outgoing_args): Move
31736         prototype from here to...
31737         * config/avr/avr.h: ...here.
31739 2012-02-21  Richard Earnshaw  <rearnsha@arm.com>
31741         PR target/52294
31742         * thumb2.md (thumb2_shiftsi3_short): Split register and
31743         immediate shifts.  For register shifts tie operands 0 and 1.
31744         (peephole2 for above): Check that register-controlled shifts
31745         have suitably tied operands.
31747 2012-02-21  Quentin Neill  <quentin.neill@amd.com>
31749         PR target/52137
31750         * config/i386/bdver1.md (bdver1_call, bdver1_push,
31751         bdver1_pop, bdver1_leave, bdver1_lea, bdver1_imul_DI, bdver1_imul,
31752         bdver1_imul_mem_DI, bdver1_imul_mem, bdver1_idiv, bdver1_idiv_mem,
31753         bdver1_str, bdver1_idirect, bdver1_ivector, bdver1_idirect_loadmov,
31754         bdver1_idirect_load, bdver1_ivector_load, bdver1_idirect_movstore,
31755         bdver1_idirect_both, bdver1_ivector_both, bdver1_idirect_store,
31756         bdver1_ivector_store, bdver1_fldxf, bdver1_fld, bdver1_fstxf,
31757         bdver1_fst, bdver1_fist, bdver1_fmov_bdver1, bdver1_fadd_load,
31758         bdver1_fadd, bdver1_fmul_load, bdver1_fmul, bdver1_fsgn,
31759         bdver1_fdiv_load, bdver1_fdiv, bdver1_fpspc_load, bdver1_fpspc,
31760         bdver1_fcmov_load, bdver1_fcmov, bdver1_fcomi_load,
31761         bdver1_fcomi, bdver1_fcom_load, bdver1_fcom,
31762         bdver1_fxch, bdver1_ssevector_avx128_unaligned_load,
31763         bdver1_ssevector_avx256_unaligned_load,
31764         bdver1_ssevector_sse128_unaligned_load,
31765         bdver1_ssevector_avx128_load, bdver1_ssevector_avx256_load,
31766         bdver1_ssevector_sse128_load, bdver1_ssescalar_movq_load,
31767         bdver1_ssescalar_vmovss_load, bdver1_ssescalar_sse128_load,
31768         bdver1_mmxsse_load, bdver1_sse_store_avx256, bdver1_sse_store,
31769         bdver1_mmxsse_store_short, bdver1_ssevector_avx256,
31770         bdver1_movss_movsd, bdver1_mmxssemov, bdver1_sselog_load_256,
31771         bdver1_sselog_256, bdver1_sselog_load, bdver1_sselog,
31772         bdver1_ssecmp_load, bdver1_ssecmp, bdver1_ssecomi_load,
31773         bdver1_ssecomi, bdver1_vcvtX2Y_avx256_load, bdver1_vcvtX2Y_avx256,
31774         bdver1_ssecvt_cvtss2sd_load, bdver1_ssecvt_cvtss2sd,
31775         bdver1_sseicvt_cvtsi2sd_load, bdver1_sseicvt_cvtsi2sd,
31776         bdver1_ssecvt_cvtpd2ps_load, bdver1_ssecvt_cvtpd2ps,
31777         bdver1_ssecvt_cvtdq2ps_load, bdver1_ssecvt_cvtdq2ps,
31778         bdver1_ssecvt_cvtdq2pd_load, bdver1_ssecvt_cvtdq2pd,
31779         bdver1_ssecvt_cvtps2pd_load, bdver1_ssecvt_cvtps2pd,
31780         bdver1_ssecvt_cvtsX2si_load, bdver1_ssecvt_cvtsX2si,
31781         bdver1_ssecvt_cvtpd2pi_load, bdver1_ssecvt_cvtpd2pi,
31782         bdver1_ssecvt_cvtpd2dq_load, bdver1_ssecvt_cvtpd2dq,
31783         bdver1_ssecvt_cvtps2pi_load, bdver1_ssecvt_cvtps2pi,
31784         bdver1_ssemuladd_load_256, bdver1_ssemuladd_256,
31785         bdver1_ssemuladd_load, bdver1_ssemuladd, bdver1_sseimul_load,
31786         bdver1_sseimul, bdver1_sseiadd_load, bdver1_sseiadd,
31787         bdver1_ssediv_double_load_256, bdver1_ssediv_double_256,
31788         bdver1_ssediv_single_load_256, bdver1_ssediv_single_256,
31789         bdver1_ssediv_double_load, bdver1_ssediv_double,
31790         bdver1_ssediv_single_load, bdver1_ssediv_single, bdver1_sseins):
31791         Add "bdver2" attribute.
31793 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31795         * config/s390/s390.c (s390_option_override): Make -mhard-dfp the
31796         default if possible and not specified otherwise.
31798 2012-02-21  Richard Guenther  <rguenther@suse.de>
31800         PR middle-end/52314
31801         * gimplify.c (create_tmp_from_val): Use the main variant type
31802         for the type of the temporary we create.
31804 2012-02-21  Richard Guenther  <rguenther@suse.de>
31806         PR tree-optimization/52324
31807         * gimplify.c (gimplify_expr): When re-gimplifying expressions
31808         do not gimplify a MEM_REF address operand if it is already
31809         in suitable form.
31811 2012-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31813         * config/s390/s390.md ("fixuns_trunc<mode>si2"): Replace
31814         TARGET_HARD_FLOAT with TARGET_HARD_DFP.
31816 2012-02-21  Richard Guenther  <rguenther@suse.de>
31818         * tree-vect-stmts.c (vectorizable_load): Use pre-computed
31819         nested_in_vect_loop.
31821 2012-02-21  Jakub Jelinek  <jakub@redhat.com>
31823         PR tree-optimization/52318
31824         * gimple-fold.c (gimplify_and_update_call_from_tree): Add
31825         vdef also to non-pure/const call stmts in the sequence.
31827 2012-02-21  Tristan Gingold  <gingold@adacore.com>
31829         * config/vms/vms-ld.c (main): Fix IDENTIFICATION padding.
31831 2012-02-20  David S. Miller  <davem@davemloft.net>
31833         * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Explain why we
31834         don't use the "rd %pc" instruction on v9 for PIC register loads.
31836 2012-02-20  Aldy Hernandez  <aldyh@redhat.com>
31838         PR middle-end/52141
31839         * trans-mem.c (ipa_tm_scan_irr_block): Error out on GIMPLE_ASM's
31840         in a transaction safe function.
31842 2012-02-20  Kai Tietz  <ktietz@redhat.com>
31844         PR target/52238
31845         * stor-layout.c (place_field): Handle desired_align for
31846         ms-bitfields, too.
31848 2012-02-20  Richard Guenther  <rguenther@suse.de>
31850         PR tree-optimization/52298
31851         * tree-vect-stmts.c (vectorizable_store): Properly use
31852         STMT_VINFO_DR_STEP instead of DR_STEP when vectorizing
31853         outer loops.
31854         (vectorizable_load): Likewise.
31855         * tree-vect-data-refs.c (vect_analyze_data_ref_access):
31856         Access DR_STEP after ensuring it is not NULL.
31858 2012-02-20  Jakub Jelinek  <jakub@redhat.com>
31860         PR tree-optimization/52286
31861         * fold-const.c (fold_binary_loc): For (X & C1) | C2
31862         optimization use double_int_to_tree instead of build_int_cst_wide,
31863         rewrite to use double_int vars.
31865 2012-02-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31867         PR target/50166
31868         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Require gcc_SUN_LD_VERSION.
31869         Define _start.
31870         Remove -e 0 from $gcc_cv_ld invocation.
31871         Only use __GLIBC_PREREQ if defined.
31872         Enable on Solaris since Solaris 8 patch.
31873         (gcc_SUN_LD_VERSION): New macro.
31874         * configure.ac (ld_ver) <*-*-solaris2*>: Refer to
31875         gcc_SUN_LD_VERSION for version number format.
31876         * configure: Regenerate.
31877         * varasm.c (get_elf_initfini_array_priority_section): Set
31878         SECTION_NOTYPE for non-default priority.
31879         Use get_section instead of get_unnamed_section to emit
31880         .init_array/.fini_array with default priority.
31882 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
31884         * config/mips/mips.c (mips_need_mips16_rdhwr_p): New variable.
31885         (mips_get_tp): Set it.  Record that __mips16_rdhwr binds locally.
31886         (mips_start_unique_function, mips_output_mips16_rdhwr)
31887         (mips_code_end): New functions.
31888         (TARGET_ASM_CODE_END): Define.
31890 2012-02-19  Richard Sandiford  <rdsandiford@googlemail.com>
31892         * config/mips/mips.c (mips16_build_call_stub): Add CFI information
31893         to stubs with non-sibling calls.
31895 2012-02-18  Sandra Loosemore  <sandra@codesourcery.com>
31897         * doc/invoke.texi (-fira-* options): Copy-edit.
31898         (ira-* parameters): Copy-edit.
31900 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
31902         * doc/invoke.texi: Minor copy-edits to bring into conformance with
31903         GCC coding conventions.
31905 2012-02-17  Sandra Loosemore  <sandra@codesourcery.com>
31907         * doc/invoke.texi: Consistently hyphenate "big-endian"/"little-endian"
31908         when used as adjectives.
31910 2012-02-16  Sandra Loosemore  <sandra@codesourcery.com>
31912         * doc/invoke.texi: Clean up "that"/"which" confusion.
31914 2012-02-17  Steven Bosscher  <steven@gcc.gnu.org>
31916         * system.h: Poison SMALL_REGISTER_CLASSES
31917         * config/rl78/rl78.h: Replace SMALL_REGISTER_CLASSES with hook.
31918         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES.
31920 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
31922         PR tree-optimization/52285
31923         * tree-tailcall.c (find_tail_calls): Ignore gimple_clobber_p stmts
31924         when deciding if a call is a tail call or tail recursion.
31926 2012-02-16  Kai Tietz  <ktietz@redhat.com>
31928         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
31929         interger-constant displacement for UNSPEC_PCREL.
31931 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
31933         PR rtl-optimization/52208
31934         * ira-costs.c (scan_one_insn): Don't decrease mem_cost
31935         for MEMs with REG_EQUIV, if the MEM isn't general_operand.
31937         PR tree-optimization/52255
31938         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): If
31939         loop->header has virtual PHI, but exit_e->dest doesn't, add
31940         virtual PHI to exit_e->dest and adjust all uses after the loop.
31942         PR debug/52260
31943         * dwarf2out.c (copy_decls_walk): Fill in *slot before traversing
31944         children with clone_tree_hash, not after it.
31946 2012-02-16  Iain Sandoe  <iains@gcc.gnu.org>
31948         * config/darwin.h (ASM_OUTPUT_LABELREF): Add user label prefix for
31949         extended identifiers.
31951 2012-02-16  Jakub Jelinek  <jakub@redhat.com>
31953         PR middle-end/51929
31954         * cgraphunit.c (verify_edge_corresponds_to_fndecl): If node is
31955         a same_body_alias, also test whether e->callee isn't a former
31956         or current clone of the decl this is a same body alias of.
31958         PR translation/52264
31959         * cgraphunit.c (verify_cgraph_node): Fix a typo.
31961 2012-02-15  Sandra Loosemore  <sandra@codesourcery.com>
31963         * doc/invoke.texi: Clean up "n-bit/byte/word" modifiers.
31965 2012-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
31967         PR target/52199
31968         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
31969         force_reg instead of copy_to_reg for better optimization.  Force
31970         non-register or memory operands into a register.
31972 2012-02-15  Andrew MacLeod  <amacleod@redhat.com>
31974         * extend.texi: Reserve upper bits of memory model for future use.
31976 2012-01-15  Georg-Johann Lay  <avr@gjlay.de>
31977             Anatoly Sokolov <aesok@post.ru>
31978             Eric Weddington <eric.weddington@atmel.com>
31980         PR target/52261
31981         * config/avr/avr-devices.c (avr_arch_types): Add avrxmega2,
31982         avrxmega4, avrxmega5, avrxmega6, avrxmega7.
31983         Rewrite initializers for .macro.
31984         * config/avr/avr-mcus.def (AVR_MCU): Add known MCUs:
31985         avrxmega2: atxmega16a4, atxmega16d4, atxmega16x1, atxmega32a4
31986         atxmega32d4, atxmega32x1.
31987         avrxmega4: atxmega64a3, atxmega64d3.
31988         avrxmega5: atxmega64a1, atxmega64a1u.
31989         avrxmega6: atxmega128a3, atxmega128d3, atxmega192a3, atxmega192d3,
31990         atxmega256a3, atxmega256a3b, atxmega256a3bu, atxmega256d3.
31991         avrxmega7: atxmega128a1, atxmega128a1u.
31992         * config/avr/avr.h (enum avr_arch): Add: ARCH_AVRXMEGA2,
31993         ARCH_AVRXMEGA4, ARCH_AVRXMEGA5, ARCH_AVRXMEGA6, ARCH_AVRXMEGA7.
31994         (struct base_arch_s): Rename reserved to xmega_p.
31995         Rename reserved2 to have_rampd.
31996         (AVR_XMEGA): New define.
31997         (AVR_HAVE_RAMPD, AVR_HAVE_RAMPX, AVR_HAVE_RAMPY): New defines.
31998         (AVR_HAVE_RAMPZ): Change definition to fit xmega.
31999         * config/avr/predicates.md (io_address_operand): Take into
32000         account SFR offset.
32001         (low_io_address_operand): Ditto.
32002         (high_io_address_operand): Ditto.
32003         * config/avr/avr.md (isa): Add alternatives no_xmega, xmega.
32004         (enabled, movhi_sp_r): Use them.
32005         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use
32006         cpp_define_formatted to built-in define __AVR_ARCH__.
32007         (__AVR_XMEGA__): New built-in define.
32008         (__AVR_HAVE_RAMPD__): New built-in define.
32009         (__AVR_HAVE_RAMPX__): New built-in define.
32010         (__AVR_HAVE_RAMPY__): New built-in define.
32011         (__AVR_HAVE_RAMPZ__): Change condition when to built-in define it.
32013         * config/avr/avr.c (avr_addr_t): Add ccp, rampd, rampx, rampy.
32014         (avr_option_override): Initialize them.
32015         (sreg_rtx, rampd_rtx, rampx_rtx, rampy_rtx): New GTY rtx.
32016         (avr_init_expanders): Initialize them. No more block several calls.
32017         (emit_push_sfr): New static function.
32018         (avr_prologue_setup_frame): Use it to push SREG, RAMPD/X/Y/Z as needed.
32019         Handle AVR_XMEGA.
32020         (expand_epilogue): Handle AVR_XMEGA. Pop RAMPD/X/Y/Z as needed.
32021         (avr_print_operand): Print addreeses as symbols for
32022         RAMPX, RAMPY, RAMPD, CCP.
32023         (output_movhi): Handle AVR_XMEGA when writing to SP.
32024         (avr_out_movhi_mr_r_xmega): New static function.
32025         (out_movhi_mr_r): Forward to avr_out_movhi_mr_r_xmega for AVR_XMEGA.
32026         (avr_file_start): Print symbol defines for __RAMPX__,  __RAMPY__,
32027         __RAMPD__,  __CCP__ as needed.
32029         * config/avr/multilib.h: Regenerate.
32030         * config/avr/t-multilib: Regenerate.
32031         * config/avr/avr-tables.opt: Regenerate.
32033 2012-02-15  Tobias Grosser <grosser@fim.uni-passau.de>
32035         PR tree-optimization/50561
32036         * graphite-flattening.c (lst_project_loop): Do not
32037         remove old scattering dimensions after flattening.
32038         (lst_do_flatten): Likewise.
32040 2012-02-15  Georg-Johann Lay  <avr@gjlay.de>
32042         * doc/extend.texi (AVR Built-in Functions): Remove doc for
32043         __builtin_avr_map8, __builtin_avr_map16.
32044         Document __builtin_avr_insert_bits.
32046         * config/avr/avr.md (map_bitsqi, map_bitshi): Remove.
32047         (insert_bits): New insn.
32048         (adjust_len.map_bits): Rename to insert_bits.
32049         (UNSPEC_MAP_BITS): Rename to UNSPEC_INSERT_BITS.
32050         * avr-protos.h (avr_out_map_bits): Remove.
32051         (avr_out_insert_bits, avr_has_nibble_0xf): New.
32052         * config/avr/constraints.md (Cxf,C0f): New.
32053         * config/avr/avr.c (avr_cpu_cpp_builtins): Remove built-in
32054         defines __BUILTIN_AVR_MAP8, __BUILTIN_AVR_MAP16.
32055         New built-in define __BUILTIN_AVR_INSERT_BITS.
32056         * config/avr/avr.c (TARGET_FOLD_BUILTIN): New define.
32057         (enum avr_builtin_id): Add AVR_BUILTIN_INSERT_BITS.
32058         (avr_move_bits): Rewrite.
32059         (avr_fold_builtin, avr_map_metric, avr_map_decompose): New static
32060         functions.
32061         (avr_map_op_t): New typedef.
32062         (avr_map_op): New static variable.
32063         (avr_out_insert_bits, avr_has_nibble_0xf): New functions.
32064         (adjust_insn_length): Handle ADJUST_LEN_INSERT_BITS.
32065         (avr_init_builtins): Add definition for __builtin_avr_insert_bits.
32066         (bdesc_3arg, avr_expand_triop_builtin): New.
32067         (avr_expand_builtin): Use them. And handle AVR_BUILTIN_INSERT_BITS.
32068         (avr_revert_map, avr_swap_map, avr_id_map, avr_sig_map): Remove.
32069         (avr_map_hamming_byte, avr_map_hamming_nonstrict): Remove.
32070         (avr_map_equal_p, avr_map_sig_p): Remove.
32071         (avr_out_swap_bits, avr_out_revert_bits, avr_out_map_bits): Remove.
32072         (bdesc_2arg): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
32073         (adjust_insn_length): Remove handling for ADJUST_LEN_MAP_BITS.
32074         (enum avr_builtin_id): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
32075         (avr_init_builtins): Remove __builtin_avr_map8, __builtin_avr_map16.
32076         (avr_expand_builtin): Remove AVR_BUILTIN_MAP8, AVR_BUILTIN_MAP16.
32078 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
32080         * config/c6x/c6x.md (reserve_cycles): New attribute.
32081         * config/c6x/c6x.c (c6x_sched_reorder_1): Ensure insns we predicate
32082         don't reserve functional units after the branch occurs.
32084 2012-02-14  Aldy Hernandez  <aldyh@redhat.com>
32086         PR middle-end/52142
32087         * ipa-inline.c (can_inline_edge_p): Do not inline tm_pure
32088         functions into non-tm_pure functions.
32090 2012-02-14  Eric Botcazou  <ebotcazou@adacore.com>
32092         PR lto/52178
32093         * gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P.
32094         (iterative_hash_canonical_type): Likewise.
32095         * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all
32096         the dead edges.
32098 2012-02-14  Bernd Schmidt  <bernds@codesourcery.com>
32100         * haifa-sched.c (prune_ready_list): Ensure that if there is a
32101         sched-group insn, it either remains alone or the entire list is pruned.
32103 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
32105         * doc/install.texi (Prerequisites): Fix grammar.
32106         (Configuration): Likewise.
32108 2012-02-14  Jonathan Wakely  <jwakely.gcc@gmail.com>
32110         * doc/install.texi (Prerequisites): Suggest building GMP, MPFR and
32111         MPC as part of GCC before describing configuring with --with-gmp etc.
32112         (Installing GCC: Configuration): --with-gmp etc. aren't needed if
32113         sources are present.
32115 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
32117         PR debug/51950
32118         * dwarf2out.c (clone_tree_hash): New function.
32119         (copy_decls_walk): Use it instead of clone_tree.
32121 2012-02-14  Richard Guenther  <rguenther@suse.de>
32123         PR tree-optimization/52244
32124         PR tree-optimization/51528
32125         * tree-sra.c (analyze_access_subtree): Only create INTEGER_TYPE
32126         replacements for integral types.
32128 2012-02-14  Walter Lee  <walt@tilera.com>
32130         * config.gcc: Handle tilegx and tilepro.
32131         * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
32132         tilegx and tilepro.
32133         Add HAVE_AS_TLS check for tilegx and tilepro.
32134         * configure: Regenerate.
32135         * doc/contrib.texi: Add Mat Hostetter and self.
32136         * doc/extend.texi (TILE-Gx Built-in Functions): New node.
32137         Document instruction intrinsics and network accessing intrinsics.
32138         (TILEPro Built-in Functions): New node.  Document instruction
32139         intrinsics and network accessing intrinsics.
32140         * doc/install.texi (Specific, tilegx-*-linux*): Document it.
32141         (Specific, tilepro-*-linux*): Likewise.
32142         * doc/invoke.texi (TILE-Gx Options): New section.
32143         (TILEPro Options): New section.
32144         * doc/md.texi (TILE-Gx): New section.
32145         (TILEPro): New section.
32146         * common/config/tilegx/tilegx-common.c: New file.
32147         * common/config/tilepro/tilepro-common.c: New file.
32148         * config/tilegx/constraints.md: New file.
32149         * config/tilegx/linux.h: New file.
32150         * config/tilegx/mul-tables.c: New file.
32151         * config/tilegx/predicates.md: New file.
32152         * config/tilegx/sync.md: New file.
32153         * config/tilegx/t-tilegx: New file.
32154         * config/tilegx/tilegx-builtins.h: New file.
32155         * config/tilegx/tilegx-c.c: New file.
32156         * config/tilegx/tilegx-generic.md: New file.
32157         * config/tilegx/tilegx-modes.def: New file.
32158         * config/tilegx/tilegx-multiply.h: New file.
32159         * config/tilegx/tilegx-protos.h: New file.
32160         * config/tilegx/tilegx.c: New file.
32161         * config/tilegx/tilegx.h: New file.
32162         * config/tilegx/tilegx.md: New file.
32163         * config/tilegx/tilegx.opt: New file.
32164         * config/tilepro/constraints.md: New file.
32165         * config/tilepro/gen-mul-tables.cc: New file.
32166         * config/tilepro/linux.h: New file.
32167         * config/tilepro/mul-tables.c: New file.
32168         * config/tilepro/predicates.md: New file.
32169         * config/tilepro/t-tilepro: New file.
32170         * config/tilepro/tilepro-builtins.h: New file.
32171         * config/tilepro/tilepro-c.c: New file.
32172         * config/tilepro/tilepro-generic.md: New file.
32173         * config/tilepro/tilepro-modes.def: New file.
32174         * config/tilepro/tilepro-multiply.h: New file.
32175         * config/tilepro/tilepro-protos.h: New file.
32176         * config/tilepro/tilepro.c: New file.
32177         * config/tilepro/tilepro.h: New file.
32178         * config/tilepro/tilepro.md: New file.
32179         * config/tilepro/tilepro.opt: New file.
32181 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
32183         PR tree-optimization/52210
32184         * tree-vect-slp.c (vect_get_and_check_slp_defs): Call
32185         vect_model_simple_cost with two entry vect_def_type array instead
32186         of an address of dt.
32188 2012-02-14  Richard Guenther  <rguenther@suse.de>
32190         PR lto/52178
32191         * tree-streamer-in.c (lto_input_ts_field_decl_tree_pointers):
32192         Do not stream DECL_QUALIFIER.
32193         * tree-streamer-out.c (write_ts_field_decl_tree_pointers): Likewise.
32194         * tree.c (free_lang_data_in_decl): Free DECL_QUALIFIER.
32195         (find_decls_types_r): Do not walk DECL_QUALIFIER.
32197 2012-02-14  Jakub Jelinek  <jakub@redhat.com>
32199         PR c/52181
32200         * c-decl.c (merge_decls): Copy DECL_USER_ALIGN bit from olddecl to
32201         newdecl.
32203 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
32205         PR bootstrap/52172
32206         * cselib.h (cselib_subst_to_values_from_insn): New prototype.
32207         * cselib.c (cselib_subst_to_values_from_insn): New function.
32208         * sched-deps.c (add_insn_mem_dependence,
32209         sched_analyze_1, sched_analyze_2): Use it.
32211 2012-02-13  Jan Hubicka  <jh@suse.cz>
32213         PR middle-end/52214
32214         * predict.c (predict_paths_for_bb): Fix thinko in prevoius patch.
32216 2012-02-13  Eric Botcazou  <ebotcazou@adacore.com>
32218         * gcc.c (LINK_COMMAND_SPEC): Deal with -fgnu-tm.
32219         (GTM_SELF_SPECS): Define if not already defined.
32220         (driver_self_specs): Add GTM_SELF_SPECS.
32221         * config/darwin.h (LINK_COMMAND_SPEC_A): Deal with -fgnu-tm.
32222         (GTM_SELF_SPECS): Define.
32223         * config/i386/cygwin.h (GTM_SELF_SPECS): Likewise.
32224         * config/i386/mingw32.h (GTM_SELF_SPECS): Likewise.
32226 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
32228         * cselib.c (expand_loc): Return sp, fp, hfp or cfa base reg right
32229         away if seen.
32231         * cselib.c (dump_cselib_val): Don't assume l->setting_insn is non-NULL.
32233         PR middle-end/52230
32234         * omp-low.c (expand_omp_for): If a static schedule without chunk size
32235         has NULL region->cont, force fd.chunk_size to be integer_zero_node.
32237 2012-02-13  Andrew MacLeod  <amacleod@redhat.com>
32239         PR c/52190
32240         * doc/extend.texi : Fix another __atomic_compare_exchange typo.
32242 2012-02-13  Richard Guenther  <rguenther@suse.de>
32244         PR translation/52211
32245         * passes.c (enable_disable_pass): Fix typo.
32247 2012-02-13  Jakub Jelinek  <jakub@redhat.com>
32249         PR middle-end/52209
32250         * expr.c (expand_expr_real_2) <case BIT_NOT_EXPR>: Only expand using
32251         XOR for reduce_bit_field if type is unsigned.
32253 2012-02-12  Eric Botcazou  <ebotcazou@adacore.com>
32255         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): In 64-bit mode,
32256         disallow changes from SFmode to mode with different size in FP regs.
32258 2012-02-12  Robert Millan  <rmh@gnu.org>
32259             Gerald Pfeifer <gerald@pfeifer.com>
32261         * ginclude/stddef.h [__FreeBSD_kernel__] (__size_t): Do not define.
32262         Tweak comment.
32264 2012-02-11  Richard Sandiford  <rdsandiford@googlemail.com>
32266         PR rtl-optimization/52175
32267         * reorg.c (fill_slots_from_thread): Don't apply add/sub optimization
32268         to frame-related instructions.
32270 2012-02-10  Jason Merrill  <jason@redhat.com>
32272         PR c++/51910
32273         * tlink.c (demangled_hash_entry): Change mangled to a VEC.
32274         (demangle_new_symbols): Fill it.
32275         (scan_linker_output): Walk it.
32276         (start_tweaking): Split out from scan_linker_output.
32277         (maybe_tweak): Update sym->chosen.
32278         * Makefile.in (COLLECT2_OBJS): Add vec.o and gcc-none.o
32280 2012-02-11  Jakub Jelinek  <jakub@redhat.com>
32282         PR debug/52132
32283         * reg-stack.c (subst_stack_regs_in_debug_insn): Don't use get_true_reg.
32285 2012-02-11  Uros Bizjak  <ubizjak@gmail.com>
32287         * compare-elim.c (find_comparisons_in_bb): Eliminate only compares
32288         having the same mode as previous compare.
32290 2012-02-10  Eric Botcazou  <ebotcazou@adacore.com>
32292         * config/sparc/sparc.c (sparc_flat_expand_prologue): Use emit_use.
32293         * config/sparc/sparc.md (UNSPECV_GOTO): Delete.
32294         (nonlocal_goto_internal): Likewise.
32295         (nonlocal_goto): Emit a use and an indirect jump directly.
32297 2012-02-10  Andrew MacLeod  <amacleod@redhat.com>
32299         PR c/52190
32300         * doc/extend.texi : Update comments for __atomic_compare_exchange and
32301         __atomic_{is,always}_lock_free.
32303 2012-02-10  Uros Bizjak  <ubizjak@gmail.com>
32305         PR target/52146
32306         * config/i386/i386.c (ix86_legitimate_address_p): Disallow
32307         negative constant address for TARGET_X32.
32309 2012-02-10  Richard Henderson  <rth@redhat.com>
32311         * tree-ssa-dce.c (propagate_necessity): Handle GIMPLE_TRANSACTION.
32312         * tree-ssa-operands.c (parse_ssa_operands): Add virtual operands
32313         for GIMPLE_TRANSACTION.  Tidy if's into a switch.
32315 2012-02-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32316             Ira Rosen  <irar@il.ibm.com>
32318         PR tree-optimization/50031
32319         * targhooks.c (default_builtin_vectorization_cost): Handle
32320         vec_promote_demote.
32321         * target.h (enum vect_cost_for_stmt): Add vec_promote_demote.
32322         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Handle
32323         all types of reduction and pattern statements.
32324         (vect_estimate_min_profitable_iters): Likewise.
32325         * tree-vect-stmts.c (vect_model_promotion_demotion_cost): New function.
32326         (vect_get_load_cost): Use vec_perm for permutations; add dump logic
32327         for explicit realigns.
32328         (vectorizable_conversion): Call vect_model_promotion_demotion_cost.
32329         * config/spu/spu.c (spu_builtin_vectorization_cost): Handle
32330         vec_promote_demote.
32331         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
32332         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Update
32333         vec_perm for VSX and handle vec_promote_demote.
32335 2012-02-10  Jakub Jelinek  <jakub@redhat.com>
32337         PR middle-end/52177
32338         * builtins.c (fold_builtin_atomic_always_lock_free,
32339         expand_builtin_atomic_always_lock_free,
32340         fold_builtin_atomic_is_lock_free, expand_builtin_atomic_is_lock_free):
32341         Return and/or test boolean_true_node/boolean_false_node instead of
32342         integer_one_node/integer_zero_node.
32344 2012-02-10  Jan Hubicka  <jh@suse.cz>
32346         PR middle-end/48600
32347         * predict.c (predict_paths_for_bb): Prevent looping.
32348         (predict_paths_leading_to_edge, predict_paths_leading_to): Update.
32350 2012-02-10  Roman Zhuykov  <zhroma@ispras.ru>
32352         * config/arm/arm.c (output_move_double): In one case properly
32353         count number of instructions that will be emitted.
32355 2012-02-10  Richard Guenther  <rguenther@suse.de>
32357         PR translation/52193
32358         * cgraphunit.c (cgraph_mark_functions_to_output): Fix typo.
32360 2012-02-09  Peter Bergner  <bergner@vnet.ibm.com>
32362         PR middle-end/52140
32363         * dojump.c (do_compare_rtx_and_jump): Use SCALAR_FLOAT_MODE_P.
32365 2012-02-09  Jakub Jelinek  <jakub@redhat.com>
32367         PR debug/52165
32368         * var-tracking.c (emit_note_insn_var_location): If
32369         EMIT_NOTE_BEFORE_INSN and insn is NOTE_INSN_CALL_ARG_LOCATION,
32370         emit it before next non-NOTE_INSN_CALL_ARG_LOCATION
32371         non-NOTE_DURING_CALL_P insn.
32373 2012-02-09  Bin Cheng  <bin.cheng@arm.com>
32375         PR middle-end/51867
32376         * builtins.c (expand_builtin): Don't check DECL_ASSEMBLER_NAME_SET_P.
32378 2012-02-08  Magnus Granberg  <zorry@gentoo.org>
32380         PR driver/48524
32381         * gcc.c (switch_matches) Support switches with separated form,
32382         -D and -U.
32384 2012-02-08  Georg-Johann Lay  <avr@gjlay.de>
32386         * config/avr/avr.md (SREG_ADDR): Remove constant definition.
32387         (SP_ADDR): Ditto.
32388         (RAMPZ_ADDR): Ditto.
32389         * config/avr/avr.c (avr_addr_t): New typedef.
32390         (avr_addr): New struct to hold RAM address of SPL, SPH, RAMPZ, SREG.
32391         (avr_init_expanders): Initialize it.
32392         (expand_prologue): Use avr_addr instead of RAMPZ_ADDR, SP_ADDR,
32393         SREG_ADDR.
32394         (expand_epilogue): Ditto.
32395         (avr_print_operand): Ditto.
32396         (avr_file_start): Ditto.
32397         (avr_emit_movmemhi): Ditto.
32399 2012-02-08  Richard Guenther  <rguenther@suse.de>
32401         PR tree-optimization/46886
32402         * tree-flow.h (do_while_loop_p): Declare.
32403         * tree-ssa-loop-ch.c (do_while_loop_p): Export.
32404         * tree-parloops.c (parallelize_loops): Only parallelize do-while loops.
32406 2012-02-08  Andrew MacLeod  <amacleod@redhat.com>
32408         * optabs.c (expand_atomic_load): Do not assume compare_and_swap will
32409         always succeed for integers larger than a native word.
32411 2012-02-08  Richard Guenther  <rguenther@suse.de>
32413         PR rtl-optimization/52170
32414         * simplify-rtx.c (simplify_plus_minus): Use CONSTM1_RTX to
32415         properly handle integer vector modes.
32417 2012-02-08  Jakub Jelinek  <jakub@redhat.com>
32419         PR gcov-profile/52150
32420         * coverage.c: Include target.h.
32421         (build_var): Call targetm.strip_name_encoding on the assembler name.
32422         Change one _ into . or $ if the target allows it.
32423         * Makefile.in (coverage.o): Depend on $(TARGET_H).
32425         PR rtl-optimization/52139
32426         * cfgrtl.c (cfg_layout_merge_blocks): If BB_END
32427         is a BARRIER after emit_insn_after_noloc, move BB_END
32428         to the last non-BARRIER insn before it.
32430 2012-02-07  Richard Sandiford  <rdsandiford@googlemail.com>
32432         PR middle-end/24306
32433         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): New function.
32434         (mips_gimplify_va_arg_expr): Call it instead of
32435         std_gimplify_va_arg_expr.
32437 2012-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
32439         * config/rs6000/rs6000.c (rs6000_trampoline_init): Fix error
32440         message for -mno-pointers-to-nested-function.
32442 2012-02-07  Eric Botcazou  <ebotcazou@adacore.com>
32444         PR middle-end/51994
32445         * expr.c (get_inner_reference): If there is an offset, add a negative
32446         bit position to it (if any).
32448 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
32450         PR rtl-optimization/52060
32451         * combine.c (try_combine): Add i0src_copy and i0src_copy2 variables,
32452         copy i1src to i1src_copy whenever added_sets_2 && i1_feeds_i2_n already
32453         before i1dest -> i1src substitution in newpat, copy i0src to i0src_copy
32454         and/or i0src_copy2 when needed.
32456 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
32458         * gcc.c (main): Don't look for lto-wrapper or lto-wrapper
32459         or LTOPLUGINSONAME if have_c.
32461         * config/freebsd-spec.h: Add comment about what macros can be defined
32462         in this header.
32463         (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): Don't define here.
32464         * config/freebsd.h (LINK_EH_SPEC, LINK_SSP_SPEC, USE_LD_AS_NEEDED): But
32465         here instead.
32467 2012-02-07  Richard Guenther  <rguenther@suse.de>
32469         * gimple-pretty-print.c (dump_gimple_phi): Avoid excessive
32470         newline in -alias dumps.
32472 2012-02-07  Kai Tietz  <ktietz@redhat.com>
32473             Dave Korn  <dave.korn.cygwin@gmail.com>
32475         PR target/40068
32476         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
32477         Take care that typinfo gets dllexport-attribute.
32479 2012-02-07  Jakub Jelinek  <jakub@redhat.com>
32481         PR middle-end/52074
32482         * expr.c (expand_expr_addr_expr_1): For CONSTANT_CLASS_P or CONST_DECL
32483         if modifier < EXPAND_SUM call force_operand on the result.
32485 2012-02-07  Joern Rennecke  <joern.rennecke@embecosm.com>
32487         * config/epiphany/epiphany.h (ASM_DECLARE_FUNCTION_SIZE): Redefine,
32488         adding __forwarder_dst__ prefix if a forwarder_section attribute is
32489         present.
32490         (epiphany_function_type): Replace types for specific interrupts with
32491         EPIPHANY_FUNCTION_INTERRUPT.
32492         (EPIPHANY_INTERRUPT_P): Update.
32493         * config/epiphany/epiphany.c (epiphany_handle_forwarder_attribute):
32494         New static function.
32495         (epiphany_attribute_table) <interrupt>: min_len is 0, max_len is 9.
32496         <disinterrupt>: Affects type identity.
32497         (epiphany_handle_interrupt_attribute): Handle variable number of
32498         arguments.
32499         (epiphany_compute_function_type): Update for new
32500         epiphany_function_type definition.
32501         (epiphany_expand_prologue): Don't save (reg:DI GPR_0) for interrupt
32502         handlers with a longcall forwarder.
32503         (epiphany_start_function): Handle multiple interrupt arguments and/or
32504         forwarder_section attribute.
32506         * config/epiphany/epiphany.h (LIB_SPEC): Link libc again after
32507         libgloss.
32509 2012-02-07  Alan Modra  <amodra@gmail.com>
32511         PR target/52107
32512         * config/rs6000/rs6000.c (rs6000_emit_move): Don't create DImode
32513         subregs of TFmode.
32515 2012-02-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32517         PR tree-optimization/50969
32518         * tree-vect-stmts.c (vect_model_store_cost): Correct statement cost to
32519         use vec_perm rather than vector_stmt.
32520         (vect_model_load_cost): Likewise.
32521         * config/i386/i386.c (ix86_builtin_vectorization_cost): Change cost of
32522         vec_perm to be the same as other vector statements.
32523         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Revise
32524         cost of vec_perm for TARGET_VSX.
32526 2012-02-06  Richard Guenther  <rguenther@suse.de>
32528         PR tree-optimization/52115
32529         * tree-sra.c (access_has_replacements_p): New function.
32530         (sra_modify_assign): Use it to decide whether a use is uninitialized.
32532 2012-02-06  Patrick Marlier  <patrick.marlier@gmail.com>
32534         PR middle-end/52047
32535         * trans-mem.c (expand_call_tm): Add an assertion.
32536         * calls.c (flags_from_decl_or_type): Add ECF_TM_PURE to 'no vops'
32537         functions.
32539 2012-02-06  Richard Guenther  <rguenther@suse.de>
32541         PR tree-optimization/50955
32542         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Artificially
32543         raise cost of expressions that replace an address with an
32544         expression based on a different pointer.
32546 2012-02-06  Jakub Jelinek  <jakub@redhat.com>
32548         PR target/52129
32549         * calls.c (mem_overlaps_already_clobbered_arg_p): If val is
32550         CONST_INT_P, subtract resp. add crtl->args.pretend_args_size to it.
32552 2012-02-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
32554         PR c++/48680
32555         * doc/invoke.texi (C++ Dialect Options): Use @option markup for
32556         -Weffc++ and specify guidelines come from second edition.
32558 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
32560         * config/mips/mips.md (sibcall_internal, sibcall_value_internal)
32561         (sibcall_value_multiple_internal, call_split, call_internal_direct)
32562         (call_direct_split, call_value_split, call_value_internal_direct)
32563         (call_value_direct_split, call_value_multiple_split): Use jal and
32564         jal_macro attributes.
32566 2012-02-05  Richard Sandiford  <rdsandiford@googlemail.com>
32568         * reload1.c (reload_regs_reach_end_p): Replace with...
32569         (reload_reg_rtx_reaches_end_p): ...this function.
32570         (new_spill_reg_store): Update commentary.
32571         (emit_input_reload_insns): Don't clear new_spill_reg_store here.
32572         (emit_output_reload_insns): Check reload_reg_rtx_reaches_end_p
32573         before setting new_spill_reg_store.
32574         (emit_reload_insns): Use a separate loop to clear new_spill_reg_store.
32575         Use reload_reg_rtx_reaches_end_p instead of reload_regs_reach_end_p.
32576         Also use reload_reg_rtx_reaches_end_p when reading new_spill_reg_store
32577         for non-spill reload registers.
32579 2012-02-05  Ira Rosen  <irar@il.ibm.com>
32581         PR tree-optimization/52091
32582         * tree-vectorizer.h (vect_is_simple_use): Add an argument.
32583         (vect_is_simple_use_1): Likewise.
32584         * tree-vect-loop.c (vectorizable_reduction): Update calls
32585         to vect_is_simple_use_1 and vect_is_simple_use.
32586         (vectorizable_live_operation): Likewise.
32587         * tree-vect-patterns.c (widened_name_p,
32588         vect_recog_vector_vector_shift_pattern, check_bool_pattern): Likewise.
32589         * tree-vect-stmts.c (process_use, vect_get_vec_def_for_operand,
32590         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
32591         vectorizable_shift,vectorizable_operation, vectorizable_store,
32592         vectorizable_load): Likewise.
32593         (vect_is_simple_cond): Add an argument, pass it to
32594         vect_is_simple_use_1.
32595         (vectorizable_condition): Update calls to vect_is_simple_cond,
32596         vect_is_simple_use.
32597         (vect_is_simple_use): Add an argument, the statement in which
32598         OPERAND is used.  Check that if OPERAND's def stmt is a double
32599         reduction phi node, the use is a phi node too.
32600         (vect_is_simple_use_1): Add an argument, pass it to
32601         vect_is_simple_use.
32602         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update a call
32603         to vect_is_simple_use.
32605 2012-02-04  Jakub Jelinek  <jakub@redhat.com>
32607         PR rtl-optimization/52095
32608         * modulo-sched.c (dump_insn_locator): New function.
32609         (loop_canon_p, sms_schedule): Use it.
32611         PR rtl-optimization/52113
32612         * lower-subreg.c (decompose_multiword_subregs): Call recog_memoized
32613         even for decomposable shift/zext insns.
32615 2012-02-03  Jakub Jelinek  <jakub@redhat.com>
32616             Zdenek Dvorak  <ook@ucw.cz>
32618         PR rtl-optimization/52092
32619         * loop-unswitch.c (unswitch_single_loop): Call copy_rtx_if_shared
32620         on get_iv_value result.
32622 2012-02-02  Andrew Pinski  <apinski@cavium.com>
32624         PR middle-end/47982
32625         PR middle-end/43967
32626         * doc/libgcc.texi (__udivmoddi4/__udivmodti4): Fix documentation typo.
32628 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
32630         PR middle-end/48071
32631         * diagnostic.c (diagnostic_finish): Remove trailing newlines.
32633 2012-02-02  Vladimir Makarov  <vmakarov@redhat.com>
32635         PR rtl-optimization/49800
32636         * haifa-sched.c (sched_init): Call regstat_init_n_sets_and_refs.
32637         (sched_finish): Call regstat_free_n_sets_and_refs.
32639 2012-02-02  Jia Liu  <proljc@gmail.com>
32641         * config/mips/mips-dspr2.md (mips_prepend): Mask operand 3 rather
32642         than operand 2.
32644 2012-02-02  Jan Hubicka  <jh@suse.cz>
32645             Tom de Vries  <tom@codesourcery.com>
32647         PR middle-end/51998
32648         * cgraphunit.c (cgraph_analyze_function): Break cyclic aliases.
32649         * varpool.c (varpool_analyze_pending_decls): Likewise.
32651 2012-02-02  Sumanth G <sumanth.gundapaneni@kpitcummins.com>
32652             Jayant R Sonar <jayant.sonar@kpitcummins.com>
32654         * config.gcc: Add cr16-* support.
32656         * doc/extend.texi: Document cr16 extensions.
32657         * doc/install.texi: Document cr16 install.
32658         * doc/invoke.texi: Document cr16 options.
32659         * doc/md.texi: Document cr16 constraints.
32661         * common/config/cr16/cr16-common.c: New file.
32662         * config/cr16/cr16.c: New file.
32663         * config/cr16/cr16.h: New file.
32664         * config/cr16/cr16.md: New file.
32665         * config/cr16/cr16.opt: New file.
32666         * config/cr16/cr16-protos.h: New file.
32667         * config/cr16/predicates.md: New file.
32668         * config/cr16/constraints.md: New file.
32669         * config/cr16/t-cr16: New file.
32671 2012-02-02  Jakub Jelinek  <jakub@redhat.com>
32673         PR target/52086
32674         * config/i386/i386.md (*addqi_2 peephole with SImode addition): Check
32675         that operands[2] is either immediate, or q_regs_operand.
32677         PR tree-optimization/52073
32678         * tree-vect-stmts.c (vect_mark_relevant): When checking uses of
32679         a pattern stmt for pattern uses, ignore uses outside of the loop.
32681 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
32683         * config/avr/avr.c: Resolve all AS1 and AS2 macros.
32684         * config/avr/avr.h (AS1, AS2, AS2C, AS3): Remove.
32685         (OUT_AS1, OUT_AS2): Remove.
32687 2012-02-01  Georg-Johann Lay  <avr@gjlay.de>
32689         PR rtl-optimization/51374
32690         * combine.c (can_combine_p): Don't allow volatile_refs_p insns
32691         to cross other volatile_refs_p insns.
32693 2012-02-01  Richard Guenther  <rguenther@suse.de>
32695         * doc/invoke.texi (fno-inline): Clarify documentation.
32696         (finline-small-functions): Likewise.
32697         (finline-functions): Likewise.
32698         * common.opt (finline): Adjust comment and documentation.
32699         (finline-small-functions): Clarify documentation.
32700         (finline-functions): Likewise.
32701         (finline-functions-called-once): Likewise.
32703 2012-02-01  Tristan Gingold  <gingold@adacore.com>
32705         * c-typeck.c (composite_type): Keep mode for pointers.
32707 2012-01-31  Richard Sandiford  <rdsandiford@googlemail.com>
32709         * function.h (regno_reg_rtx): Adjust comment.
32710         * reginfo.c (init_reg_modes_target): Only use the previous mode
32711         if it fits within one register.  Remove MIPS comment.
32713 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
32715         PR bootstrap/52058
32716         * combine.c (do_SUBST_LINK, SUBST_LINK): Guard with #ifndef HAVE_cc0.
32718 2012-01-31  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32720         * config/s390/s390.md ("*ashr<mode>3_and"): Add missing z196 flag
32721         to srak instruction.
32723 2012-01-31  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
32725         * config/arm/thumb2.md (thumb2_mov_notscc): Use MVN for true condition.
32727 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
32729         PR bootstrap/52041
32730         PR bootstrap/52039
32731         PR target/51974
32732         * ipa-prop.c (detect_type_change_1): Call ao_ref_init.
32734 2012-01-31  Richard Guenther  <rguenther@suse.de>
32736         PR tree-optimization/51528
32737         * tree-sra.c (sra_modify_assign): Avoid copy-in/out for aggregate
32738         assigns.
32740 2012-01-31  Jakub Jelinek  <jakub@redhat.com>
32742         PR bootstrap/52041
32743         PR bootstrap/52039
32744         PR target/51974
32745         * ree.c (add_removable_extension): Change def_map argument
32746         to unsigned *, store in def_map 1 + offset into *insn_list vector
32747         instead of pointers into the vector.
32748         (find_removable_extensions): Adjust caller.
32750 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
32752         * config/avr/avr.md: Resolve all AS1 and AS2 macros.
32753         Transform all "* quoted-c-code" to { c-code }.
32754         Remove redundant test for "optimize" in combine patterns.
32755         Move (include "avr-dimode.md") to end of file.
32757 2012-01-30  Bin Cheng  <bin.cheng@arm.com>
32759         PR target/51835
32760         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
32761         for __aeabi_d2iz/__aeabi_d2uiz with hard-float.
32763 2012-01-30  Richard Guenther  <rguenther@suse.de>
32765         PR tree-optimization/52028
32766         * tree-loop-distribution.c (ldist_gen): Properly update
32767         virtual SSA form.
32769 2012-01-30  Jakub Jelinek  <jakub@redhat.com>
32771         PR debug/52027
32772         * dwarf2out.c (dwarf2out_switch_text_section): Don't call
32773         set_cur_line_info_table if not emitting debug info.
32775         PR tree-optimization/52046
32776         * tree-vect-patterns.c (check_bool_pattern): Give up if
32777         a comparison could throw.
32779         PR debug/52048
32780         * tree-ssa-tail-merge.c (local_def): Ignore debug uses.
32782 2012-01-30  Richard Guenther  <rguenther@suse.de>
32784         PR tree-optimization/52045
32785         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Update
32786         SSA form if cfgcleanup did anything.
32788 2012-01-30  Richard Guenther  <rguenther@suse.de>
32790         PR tree-optimization/52045
32791         * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
32792         before computing final todo.
32794 2012-01-30  Richard Guenther  <rguenther@suse.de>
32796         PR tree-optimization/51528
32797         * tree-sra.c (sra_modify_assign): Re-factor in preparation
32798         for PR51528 fix.
32800 2012-01-30  Paolo Bonzini  <bonzini@gnu.org>
32802         * df-problems.c (df_kill_notes): Check that the use refers
32803         to the note under examination.
32805 2012-01-30  Eric Botcazou  <ebotcazou@adacore.com>
32807         PR target/51920
32808         * config/sparc/sparc.c (vector_init_fpmerge): Remove INNER_MODE
32809         parameter and use short-lived pseudos.
32810         (vector_init_faligndata): Remove INNER_MODE parameter and use loop.
32811         (sparc_expand_vector_init): Const-ify local variables and adjust
32812         calls to above functions.
32814 2012-01-30  Georg-Johann Lay  <avr@gjlay.de>
32816         * config/avr/avr.c (out_movqi_mr_r): Fix length computation.
32818 2012-01-29  Sandra Loosemore  <sandra@codesourcery.com>
32820         * doc/invoke.texi: Make usage of "compile time" and
32821         "run time"/"runtime" consistent throughout the file.
32823 2012-01-29  Uros Bizjak  <ubizjak@gmail.com>
32825         * config/alpha/alpha.c (alpha_option_override): Default to
32826         full IEEE compliance mode for Go language.
32828 2012-01-29  Tijl Coosemans  <tijl@coosemans.org>
32830         * config/freebsd-spec.h [TARGET_LIBC_PROVIDES_SSP]
32831         (LINK_SSP_SPEC): Define.
32833 2012-01-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
32835         PR target/51871
32836         * config/pa/pa.c (pa_return_addr_rtx): Add support for PA2.0 export
32837         stubs.
32839 2012-01-28  Sandra Loosemore  <sandra@codesourcery.com>
32841         * doc/invoke.texi: Correct hyphenation of "floating point",
32842         "double precision", and related terminology throughout the file.
32844 2012-01-28  Jakub Jelinek  <jakub@redhat.com>
32846         PR target/52006
32847         * config/arm/arm.md (pic_add_dot_plus_eight peephole2): Use
32848         arm_general_register_operand predicate for operand 2 instead of
32849         register_operand.
32851 2012-01-27  Ian Lance Taylor  <iant@google.com>
32853         PR go/47656
32854         * builtins.def (BUILT_IN_INIT_HEAP_TRAMPOLINE): Define.
32855         * builtins.c (expand_builtin_init_trampoline): Add onstack
32856         parameter.  Change caller.
32857         (expand_builtin): Handle BUILT_IN_INIT_HEAP_TRAMPOLINE.
32858         * tree.c (build_common_builtin_nodes): Declare
32859         __builtin_init_heap_trampoline.
32861 2012-01-27  Georg-Johann Lay  <avr@gjlay.de>
32863         * config/avr/avr-protos.h (lpm_reg_rtx, lpm_addr_reg_rtx,
32864         tmp_reg_rtx, zero_reg_rtx, all_regs_rtx, rampz_rtx): Make global.
32865         * config/avr/avr.c: Ditto.
32866         (avr_regnames): Remove because unused.
32867         * config/avr/avr.md (*cpse.ne): New peephole.
32868         (*cpse.eq): New peephole from former cpse peepholes.
32870 2012-01-27  Michael Eager  <eager@eagercon.com>
32872         * config/microblaze.c (microblaze_emit_compare): Correct
32873         test after pcmp instruction.
32875 2012-01-27  Richard Guenther  <rguenther@suse.de>
32877         PR tree-optimization/52020
32878         * tree-sra.c (sra_modify_assign): Do not transform clobbers.
32880 2012-01-27  Richard Guenther  <rguenther@suse.de>
32882         * ipa-pure-const.c (check_stmt): Clobbers do not make a
32883         function non-const/pure.
32885 2012-01-27  Richard Guenther  <rguenther@suse.de>
32887         PR tree-optimization/50444
32888         * tree-sra.c (build_ref_for_offset): Properly adjust the
32889         MEM_REF type for unaligned accesses.
32891 2012-01-27  Richard Guenther  <rguenther@suse.de>
32893         PR tree-optimization/50444
32894         * expr.c (mem_ref_refers_to_non_mem_p): New function.
32895         (expand_assignment): Use it.  Properly handle misaligned
32896         bases when expanding stores to component references.
32897         (expand_expr_real_1): Use mem_ref_refers_to_non_mem_p and
32898         refactor that case.
32900 2012-01-27  Andrey Belevantsev  <abel@ispras.ru>
32902         PR middle-end/51389
32903         * Makefile.in (tree-data-ref.o): Depend on $(PARAMS_H).
32904         * tree-data-ref.h (find_data_references_in_loop): Remove declaration.
32905         * tree-data-ref.c (find_data_references_in_loop): Make static.
32906         (compute_all_dependences): Change return type to bool.  Bail out
32907         for too many datarefs in a loop.  Move the hunk resetting the data
32908         dependences vector from ...
32909         (compute_data_dependences_for_loop): ... here.  Account for
32910         compute_all_dependences returning false.
32911         (compute_data_dependences_for_bb): Likewise.
32912         * params.def (PARAM_LOOP_MAX_DATAREFS_FOR_DATADEPS): New param.
32913         * doc/invoke.texi (loop-max-datarefs-for-datadeps): Document it.
32915 2012-01-27  Richard Guenther  <rguenther@suse.de>
32917         PR middle-end/51959
32918         * expr.c (store_field): Use the alias-set of the scratch memory
32919         for storing to it.
32921 2012-01-27  Tom de Vries  <tom@codesourcery.com>
32923         PR tree-optimization/51990
32924         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
32925         WITH_SIZE_EXPR.
32926         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Same.
32928 2012-01-27  Jakub Jelinek  <jakub@redhat.com>
32930         PR debug/52001
32931         * var-tracking.c (reverse_op): Don't add any reverse operation
32932         if V already has any constant locations.
32934 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
32936         * doc/invoke.texi: Correct usage of "command line" (noun)
32937         vs "command-line" (adjective) throughout.
32939 2012-01-27  Sandra Loosemore  <sandra@codesourcery.com>
32941         * doc/invoke.texi (Language Independent Options): Move
32942         -Wcoverage-mismatch blurb from here....
32943         (Warning Options): ...to here.
32945 2012-01-27  Peter Bergner  <bergner@vnet.ibm.com>
32947         * config/rs6000/rs6000.c (rs6000_option_override_internal):
32948         Set rs6000_always_hint to false for 476.
32950 2012-01-27  Matthias Klose  <doko@ubuntu.com>
32952         * gcc.c (add_sysrooted_prefix): Remove trailing dir separator from
32953           system root.
32954         * incpath.c (add_standard_paths): Likewise.
32956 2012-01-27  Richard Henderson  <rth@redhat.com>
32958         * config/m68k/m68k.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
32959         * config/m68k/sync.md (atomic_test_and_set): Rename from
32960         sync_test_and_setqi and adjust the operands.
32961         (atomic_test_and_set_1): Rename from sync_test_and_setqi_1
32962         and unconditionally enable.
32964 2012-01-27  Richard Henderson  <rth@redhat.com>
32966         * config/sparc/sparc.c (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
32967         * config/sparc/sync.md (atomic_test_and_set): Only handle QImode.
32968         (ldstub): Rename from ldstubqi.
32969         (ldstub<I24MODE>): Remove.
32971 2012-01-27  Richard Henderson  <rth@redhat.com>
32973         * target.def (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): New.
32974         * c-cppbuiltin.c (cpp_atomic_builtins): Define
32975         __GCC_ATOMIC_TEST_AND_SET_TRUEVAL.
32976         * doc/tm.texi.in (TARGET_ATOMIC_TEST_AND_SET_TRUEVAL): Add doc hook.
32977         * doc/tm.texi: Rebuild.
32979 2012-01-27  Richard Henderson  <rth@redhat.com>
32981         * optabs.c (gen_atomic_test_and_set): Remove default.
32982         (maybe_emit_atomic_test_and_set): Use maybe_expand_insn.
32984 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
32986         PR rtl-optimization/51978
32987         * ree.c (make_defs_and_copies_lists): Change set_pat type to const_rtx.
32988         (combine_reaching_defs): Likewise.
32989         (struct re_info): Remove.
32990         (add_removable_extension): Remove x and data arguments,
32991         add insn, insn_list and def_map.  Use the arguments directly
32992         instead of using struct re_info.
32993         (find_removable_extensions): Don't call add_removable_extension
32994         through note_stores, instead just call it with single_set
32995         result if non-NULL.
32996         (find_and_remove_re): Pass curr_cand->expr instead of
32997         PATTERN (curr_cand->insn) as set_pat argument to combine_reaching_defs.
32999 2012-01-26  Michael Matz  <matz@suse.de>
33001         PR tree-optimization/46590
33002         * cfgexpand.c: Revert last change (r183305).
33003         * gimplify.c (gimplify_bind_expr): Add clobbers for all non-gimple
33004         regs.
33005         * tree-eh.c (cleanup_empty_eh): Try to optimize clobbers before
33006         checking for emptiness.
33008 2012-01-26  Jakub Jelinek  <jakub@redhat.com>
33010         PR middle-end/51895
33011         * expr.c (expand_expr_real_1): Handle BLKmode MEM_REF of
33012         non-addressable non-BLKmode base correctly.
33014 2012-01-26  Michael Matz  <matz@suse.de>
33016         PR tree-optimization/48794
33017         * tree-eh.c (remove_unreachable_handlers_no_lp): Don't remove
33018         regions referenced from RESX/EH_DISPATCH.
33020 2012-01-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33022         * config/s390/s390.h: Make BRANCH_COST an option.
33023         * config/s390/s390.opt: New option -mbranch-cost.
33025 2012-01-26  Richard Henderson  <rth@redhat.com>
33027         Revert 2012-01-24 change:
33028         * trans-mem.c (requires_barrier): Do not instrument thread local
33029         variables and emit save/restore for them.
33031 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
33033         PR middle-end/51986
33034         * sched-deps.c (sched_get_condition_with_rev_uncached): Don't test
33035         for pat == 0.
33037 2012-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
33039         * config/mips/mips.c (mips_small_data_pattern_1): Don't process
33040         ASM_OPERANDS.
33042 2012-01-25  Georg-Johann Lay  <avr@gjlay.de>
33044         PR target/49868
33045         Rename __pgm to __flash.
33046         Rename __pgm1 to __flash1.
33047         Rename __pgm2 to __flash2.
33048         Rename __pgm3 to __flash3.
33049         Rename __pgm4 to __flash4.
33050         Rename __pgm5 to __flash5.
33051         Rename __pgmx to __memx.
33052         * doc/extend.texi (AVR Named Address Spaces)
33053         Rename address space names as indicated above.
33054         * config/avr/avr.c (avr_addrspace): Ditto.
33056         * config/avr/avr-protos.h
33057         (avr_mem_pgmx_p): Rename to avr_mem_memx_p.
33058         (avr_mem_pgm_p): Rename to avr_mem_flash_p.
33059         * config/avr/predicates.md: Ditto.
33060         * config/avr/avr.c Ditto, and
33061         (avr_decl_pgmx_p): Rename to avr_decl_memx_p.
33062         (avr_decl_pgm_p): Rename to avr_decl_flash_p.
33064         * config/avr/avr.h (ADDR_SPACE_PGM): Rename to ADDR_SPACE_FLASH.
33065         (ADDR_SPACE_PGM1): Rename to ADDR_SPACE_FLASH1.
33066         (ADDR_SPACE_PGM2): Rename to ADDR_SPACE_FLASH2.
33067         (ADDR_SPACE_PGM3): Rename to ADDR_SPACE_FLASH3.
33068         (ADDR_SPACE_PGM4): Rename to ADDR_SPACE_FLASH4.
33069         (ADDR_SPACE_PGM5): Rename to ADDR_SPACE_FLASH5.
33070         (ADDR_SPACE_PGMX): Rename to ADDR_SPACE_MEMX.
33071         * config/avr/avr.c: Ditto.
33072         * config/avr/avr.md: Ditto.
33074 2012-01-25  Jason Merrill  <jason@redhat.com>
33076         PR c++/51992
33077         * tree.c (find_decls_types_in_node): Walk gimple_call_fntype.
33079 2012-01-25  Jakub Jelinek  <jakub@redhat.com>
33081         PR tree-optimization/51987
33082         * tree-data-ref.c (get_references_in_stmt): Handle references in
33083         non-volatile GIMPLE_ASM.
33085 2012-01-25  Richard Guenther  <rguenther@suse.de>
33087         * tree-ssa-sccvn.c (vn_reference_eq): Also compare if both
33088         bases are dereferenced.
33090 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
33092         PR rtl-optimization/48374
33093         * sel-sched-ir.h (get_all_loop_exits): Check for zero successors.
33095 2012-01-25  Andrey Belevantsev  <abel@ispras.ru>
33097         * tree-predcom.c (tree_predictive_commoning_loop): Bail out when
33098         compute_data_dependences_for_loop returns false.
33099         * tree-parloops.c (loop_parallel_p): Likewise.
33101 2012-01-25  Richard Guenther  <rguenther@suse.de>
33103         * tree.h (get_pointer_alignment_1): Declare.
33104         * builtins.c (get_pointer_alignment_1): New function.
33105         (get_pointer_alignment): Use it.
33107 2012-01-25  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
33109         PR rtl-optimization/48308
33110         * combine.c (enum undo_kind): Add UNDO_LINKS.
33111         (struct undo): Add member l to other_contents and where.
33112         (do_SUBST_LINK): New.
33113         (SUBST_LINK): New.
33114         (try_combine): Handle LOG_LINKS for the dummy i1 case.
33115         (undo_all): Handle UNDO_LINKS.
33117 2012-01-25  Richard Henderson  <rth@redhat.com>
33119         * optabs.c (maybe_emit_atomic_test_and_set): Allow non-QImode
33120         mem inputs.
33122 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
33124         * optabs.c (gen_atomic_test_and_set): Use each argument.
33126 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
33128         * config/mips/mips-ps-3d.md (mips_addr_ps, reduc_splus_v2sf)
33129         (mips_cvt_pw_ps, mips_cvt_ps_pw, mips_mulr_ps, mips_cabs_cond_<fmt>)
33130         (mips_cabs_cond_4s, mips_cabs_cond_ps, bc1any4t, bc1any4f, bc1any2t)
33131         (bc1any2f, mips_rsqrt1_<fmt>, mips_rsqrt2_<fmt>, mips_recip1_<fmt>)
33132         (mips_recip2_<fmt>): Require TARGET_MIPS3D rather than
33133         TARGET_PAIRED_SINGLE_FLOAT.
33135 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
33137         * doc/rtl.texi (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
33138         (in_struct, return_val): Remove MEM documentation.
33139         * rtl.h (rtx_def): Remove MEM meanings from in_struct and return_val.
33140         (MEM_IN_STRUCT_P, MEM_SCALAR_P): Delete.
33141         (MEM_COPY_ATTRIBUTES): Remove references to MEM_IN_STRUCT_P
33142         and MEM_SCALAR.
33143         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
33144         * cfgexpand.c (add_alias_set_conflicts): Likewise.
33145         * expr.c (store_field): Likewise.
33146         * function.c (assign_stack_temp_for_type): Likewise.
33147         * ifcvt.c (noce_try_cmove_arith): Likewise.
33148         * reload1.c (reload): Likewise.
33149         * config/alpha/alpha.c (alpha_set_memflags_1): Likewise.
33150         (alpha_set_memflags): Likewise.
33151         * config/m32c/m32c.c (m32c_immd_dbl_mov): Nullify.
33153 2012-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
33155         * rtl.h (true_dependence, canon_true_dependence): Remove varies
33156         parameter.
33157         * alias.c (fixed_scalar_and_varying_struct_p): Delete.
33158         (true_dependence_1, write_dependence_p, may_alias_p): Don't call it.
33159         (true_dependence_1, true_dependence, canon_true_dependence): Remove
33160         varies parameter.
33161         * cselib.c (cselib_rtx_varies_p): Delete.
33162         (cselib_invalidate_mem): Update call to canon_true_dependence.
33163         * dse.c (record_store, check_mem_read_rtx): Likewise.
33164         (scan_reads_nospill): Likewise.
33165         * cse.c (check_dependence): Likewise.
33166         (cse_rtx_varies_p): Delete.
33167         * expr.c (safe_from_p): Update call to true_dependence.
33168         * ira.c (validate_equiv_mem_from_store): Likewise.
33169         (memref_referenced_p): Likewise.
33170         * postreload-gcse.c (find_mem_conflicts): Likewise.
33171         * sched-deps.c (sched_analyze_2): Likewise.
33172         * store-motion.c (load_kills_store): Likewise.
33173         * config/frv/frv.c (frv_registers_conflict_p_1): Likewise.
33174         * gcse.c (mems_conflict_for_gcse_p): Likewise.
33175         (compute_transp): Update call to canon_true_dependence.
33177 2012-01-25  Richard Henderson  <rth@redhat.com>
33179         * optabs.c (CODE_FOR_atomic_test_and_set): Provide default.
33180         (maybe_emit_atomic_test_and_set): New.
33181         (expand_sync_lock_test_and_set): Use it.
33182         (expand_atomic_test_and_set): Likewise.
33183         * doc/extend.texi (__atomic_test_and_set): Adjust the docs to match
33184         the implementation; clarify implementation defined details.
33185         * doc/md.texi (atomic_test_and_set): Document.
33187 2012-01-25  Richard Henderson  <rth@redhat.com>
33189         * config/sparc/predicates.md (zero_or_v7_operand): Use match_code.
33191 2012-01-25  Richard Henderson  <rth@redhat.com>
33193         PR target/51968
33194         * config/arm/arm.c (neon_split_vcombine): Emit deleted note
33195         to effect no-op split.
33197 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
33199         PR lto/51698
33200         * builtin-types.def: (BT_CONST_DOUBLE_PTR): New.
33201         (BT_FN_VOID_PTR_CONST_PTR_SIZE): New.
33202         (BT_FN_VOID_PTR_INT_SIZE): New.
33203         (BT_FN_UINT_UINT_VAR): Remove.
33204         (BT_FN_UINT32_UINT32_VAR): New.
33205         (BT_FN_DOUBLE_VPTR): Remove.
33206         (BT_FN_DOUBLE_CONST_DOUBLE_PTR): New.
33208         * gtm-builtins.def (_ITM_abortTransaction): Set return type to void.
33209         (_ITM_changeTransactionMode): Same.
33210         (_ITM_memmoveRtWt): Change return type to void.
33211         (_ITM_memcpyRtWt): Same.
33212         (_ITM_memsetW): Same.
33213         (_ITM_RaRD): Change types to double.
33214         (_ITM_RD): Same.
33215         (_ITM_RaWD): Same.
33216         (_ITM_RfWD): Same.
33218         * builtins.def (DEF_TM_BUILTIN): Set BOTH_P to true.
33220 2012-01-24  Aldy Hernandez  <aldyh@redhat.com>
33221             Patrick Marlier  <patrick.marlier@gmail.com>
33223         * trans-mem.c (requires_barrier): Do not instrument thread local
33224         variables and emit save/restore for them.
33226 2012-01-24  Jason Merrill  <jason@redhat.com>
33228         PR c++/51812
33229         * cgraphunit.c (cgraph_decide_is_function_needed): Don't always
33230         output static aliases.
33232 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
33234         PR driver/47249
33235         * common.opt (-pie, -shared, pie, shared): Change from Common to
33236         Driver.
33237         * gcc.c (display_help): Display help for -pie and -shared.
33239 2012-01-24  Georg-Johann Lay  <avr@gjlay.de>
33241         PR target/49868
33242         * doc/extend.texi (AVR Named Address Spaces): Move sample code up.
33243         Remove note on size/offset limitation.
33244         (AVR Variable Attributes): Add example how to read data located
33245         with progmem.  Refer to named address spaces.
33246         * doc/invoke.texi (AVR Options): Fix typo.
33248 2012-01-24  Richard Guenther  <rguenther@suse.de>
33250         Forward-port to trunk
33251         2010-09-21  Jakub Jelinek  <jakub@redhat.com>
33253         PR middle-end/45678
33254         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: If
33255         op0 isn't sufficiently aligned and there is movmisalignM
33256         insn for mode, use it to load op0 into a temporary register.
33258 2012-01-24  Jakub Jelinek  <jakub@redhat.com>
33260         PR target/51957
33261         * target.def (const_not_ok_for_debug_p): New hook.
33262         * doc/tm.texi.in (TARGET_CONST_NOT_OK_FOR_DEBUG_P): New hook
33263         documentation.
33264         * doc/tm.texi: Regenerated.
33265         * dwarf2out.c (const_ok_for_output_1): If
33266         targetm.const_not_ok_for_debug_p returns true, fail.
33267         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): New
33268         function.
33269         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
33271 2012-01-23  Kai Tietz  <ktietz@redhat.com>
33273         PR target/51900
33274         * config/i386/predicates.md (symbolic_operand): Allow
33275         UNSPEC_PCREL as PIC expression for lea.
33276         * config/i386/winnt.c (i386_pe_binds_local_p): Reworked.
33277         * config/i386/i386.c (ix86_delegitimize_address): Handle
33278         UNSPEC_PCREL for none-MEM, too.
33280 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
33282         * trans-mem.c (ipa_tm_create_version): Set externally_visible.
33283         (ipa_tm_create_version_alias): Same.
33285 2012-01-23  Uros Bizjak  <ubizjak@gmail.com>
33287         PR libitm/51830
33288         * builtin-types.def (BT_FN_UINT_UINT_VAR): New.
33289         * gtm-builtins.def (BUILT_IN_TM_START): Declare as BT_FN_UINT_UINT_VAR.
33291 2012-01-23  Aldy Hernandez  <aldyh@redhat.com>
33292             Patrick Marlier  <patrick.marlier@gmail.com>
33293             Iain Sandoe  <developer@sandoe-acoustics.co.uk>
33295         PR lto/51916
33296         * lto-wrapper.c (run_gcc): Pass the LTO section name to
33297         simple_object_start_read.
33299 2012-01-23  Richard Guenther  <rguenther@suse.de>
33302         PR tree-optimization/51895
33303         * tree-sra.c (decide_one_param_reduction): Avoid sub-optimal
33304         parameter decomposition into BLKmode components.
33306 2012-01-23  Eric Botcazou  <ebotcazou@adacore.com>
33308         * tree-ssa-structalias.c (intra_create_variable_infos): Do not create
33309         fake variables for restrict-qualified pointers whose pointed-to type
33310         contains a placeholder.
33312 2012-01-23  Richard Guenther  <rguenther@suse.de>
33314         PR tree-optimization/51949
33315         * ipa-split.c (execute_split_functions): Do not split malloc functions.
33317 2012-01-23  Jakub Jelinek  <jakub@redhat.com>
33319         PR rtl-optimization/51933
33320         * ree.c (transform_ifelse): Return true right away if dstreg is
33321         already wider or equal to cand->mode.
33322         (enum ext_modified_kind, struct ext_modified, ext_state): New types.
33323         (make_defs_and_copies_lists): Remove defs_list and copies_list
33324         arguments, add state argument, just truncate state->work_list
33325         instead of always allocating and freeing the vector.  Assert that
33326         get_defs succeeds instead of returning 2.  Changed return type to bool.
33327         (merge_def_and_ext): Add state argument.  If SET_DEST doesn't
33328         have ext_src_mode, see if it has been modified already with the
33329         right kind of extension and has been extended before from the
33330         ext_src_mode.  If SET_DEST is already wider or equal to cand->mode,
33331         just return true.  Remember the original mode in state->modified array.
33332         (combine_reaching_defs): Add state argument.  Don't allocate and
33333         free here def_list, copied_list and vec vectors, instead just
33334         VEC_truncate the vectors in *state.  Don't handle outcome == 2 here.
33335         (find_and_remove_re): Set DF_DEFER_INSN_RESCAN df flag.
33336         Add state variable, clear vectors in it, initialize state.modified
33337         if needed.  Free all the vectors at the end and state.modified too.
33338         Don't skip a candidate if the extension expression has been modified.
33340 2012-01-22  Douglas B Rupp  <rupp@gnat.com>
33342         PR target/47096
33343         * config.gcc: (i[34567]86-*-interix3*): Remove from obsolete
33344          configurations. Change triplet to i[34567]86-*-interix[3-9]*.
33345         (extra_options) interix.opt -> i386/interix.opt"
33346         (extra_objs):Add winnt-stubs.o
33347         * configure.ac: Add interix to target_os .comm on PE check.
33348         * configure: Regenerate.
33349         * config/interix3.h: Delete and move bits to..
33350         * config/interix.h: Delete and move bits to..
33351         * config/i386/i386-interix3.h: Delete and move bits to..
33352         * config/i386/i386-interix.h: ..here.
33353         (TARGET_CPU_DEFAULT): Remove redefinition.
33354         (TARGET_ASM_CONSTRUCTOR): Undefine.
33355         (SUBTARGET_SWITCHES): Define for ms-bitfields.
33356         (TARGET_OS_CPP_BUILTINS): Remove __OPENNT. Add __declspec.
33357         (PTRDIFF_TYPE): Define.
33358         (LONG_DOUBLE_TYPE_SIZE): Define.
33359         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
33360         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
33361         (TARGET_SECTION_TYPE_FLAGS): Define.
33362         (ASM_DECLARE_FUNCTION_NAME): Define.
33363         (ASM_OUTPUT_EXTERNAL): Define.
33364         (ASM_OUTPUT_EXTERNAL_LIBCALL): Define.
33365         (ASM_OUTPUT_ALIGNED_BSS): Define.
33366         (PCC_BITFIELD_TYPE_MATTERS): Define.
33367         (USE_CONST_SECTION): Define.
33368         (SUBTARGET_ENCODE_SECTION_INFO): Remove.
33369         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
33370         (SUPPORTS_ONE_ONLY): Remove.
33371         (I386_PE_STRIP_ENCODING): Define.
33372         * config/interix.opt: Delete and move bits to..
33373         * config/i386/interix.opt: ..here. New.
33374         (mpe-aligned-commons): Add.
33375         * config/i386/t-interix: Add copyright header.
33376         (winnt-stubs.o): Add rule.
33378 2012-01-22  Jason Merrill  <jason@redhat.com>
33380         PR c++/51832
33381         * varpool.c (varpool_analyze_pending_decls): Copy DECL_EXTERNAL
33382         for extra name aliases.
33384 2012-01-22  Eric Botcazou  <ebotcazou@adacore.com>
33386         PR rtl-optimization/51924
33387         * ree.c (combine_set_extension): Improve debugging message.
33388         (combine_reaching_defs): Likewise.
33389         (get_defs): Rename confusingly named variable.
33390         (find_and_remove_re): Skip a candidate if the extension expression has
33391         been modified.
33393 2012-01-21  Robert Millan  <rmh@gnu.org>
33394             Gerald Pfeifer  <gerald@pfeifer.com>
33396         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKERX32): New macro.
33397         (GNU_USER_DYNAMIC_LINKER): Adjust indentation.
33399 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
33401         PR tree-optimization/51914
33402         * tree-vect-stmts.c (vectorizable_conversion): For
33403         cvt_type && modifier == WIDEN, put temporary with cvt_type
33404         at the beginning of vec_dsts and set vec_dest to temporary
33405         with vectype_out.
33407 2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
33409         * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
33411 2012-01-20  Tijl Coosemans  <tijl@coosemans.org>
33413         * config/i386/i386.c: Fix checks for !TARGET_MACHO.
33414         * config/rs6000/rs6000.c: Likewise.
33416 2012-01-20  Jakub Jelinek  <jakub@redhat.com>
33418         PR target/51915
33419         * config/arm/arm.c (arm_count_output_move_double_insns): Call
33420         output_move_double on a copy of operands array.
33422 2012-01-20  Cary Coutant  <ccoutant@google.com>
33423             Dodji Seketeli  <dodji@redhat.com>
33425         PR debug/45682
33426         * dwarf2out.c (copy_declaration_context): Return ref to parent
33427         of declaration DIE, if necessary.
33428         (remove_child_or_replace_with_skeleton): Add new parameter; update
33429         caller.  Place skeleton DIE under parent DIE of original declaration.
33430         Move call to copy_declaration_context to here ...
33431         (break_out_comdat_types): ... from here.
33433 2012-01-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33435         PR rtl-optimization/51856
33436         * reload.c (find_reloads_subreg_address): Set the address_reloaded
33437         flag to reloaded.
33439 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
33441         PR target/51819
33442         * config/arm/arm.c (arm_print_operand): Correct output of alignment
33443         hints for neon loads and stores.
33445 2012-01-20  Georg-Johann Lay  <avr@gjlay.de>
33447         PR target/49868
33448         PR target/50887
33449         * doc/extend.texi (Named Address Spaces): Split into subsections.
33450         (AVR Named Address Spaces): New subsection.
33451         (M32C Named Address Spaces): New subsection.
33452         (RL78 Named Address Spaces): New subsection.
33453         (SPU Named Address Spaces): New subsection.
33454         (Variable Attributes): New anchor "AVR Variable Attributes".
33455         (AVR Variable Attributes): Rewrite and avoid wording
33456         "address space" in this context.
33457         * doc/invoke.texi (AVR Options): Rewrite and add documentation
33458         for -maccumulate-args, -mbranch-cost=, -mrelax, -mshort-calls.
33459         (AVR Built-in Macros): New subsubsection therein.
33460         * doc/md.texi (AVR constraints): Remove "C04", "R".
33462 2012-01-20  Richard Guenther  <rguenther@suse.de>
33464         PR tree-optimization/51903
33465         * tree-ssa-pre.c (eliminate): Properly purging of EH edges
33466         when removing stmts.
33468 2012-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
33470         PR target/50313
33471         * config/arm/arm.c (arm_load_pic_register): Use
33472         gen_pic_load_addr_unified. Delete calls to gen_pic_load_addr_32bit
33473         , gen_pic_add_dot_plus_eight and gen_pic_add_dot_plus_four.
33474         (arm_pic_static_addr): Likewise.
33475         (arm_rtx_costs_1): Adjust cost for UNSPEC_PIC_UNIFIED.
33476         (arm_note_pic_base): Handle UNSPEC_PIC_UNIFIED.
33477         * config/arm/arm.md (UNSPEC_PIC_UNIFIED): Define.
33478         (pic_load_addr_unified): New.
33480 2012-01-20  Andrey Belevantsev  <abel@ispras.ru>
33482         PR target/51106
33483         * function.c (instantiate_virtual_regs_in_insn): Use
33484         delete_insn_and_edges when removing a wrong asm insn.
33486 2012-01-19  Vladimir Makarov  <vmakarov@redhat.com>
33488         PR rtl-optimization/40761
33489         * ira-int.h (struct ira_loop_tree_node): Add comment for member loop.
33490         Add new member loop_num.
33491         (IRA_LOOP_NODE_BY_INDEX): Modify the check.
33492         (ira_build): Remove the parameter.
33494         * ira.c (ira_print_disposition): Use loop_num instead of loop->num.
33495         (ira.c): Do not build CFG loops for one region allocation.  Remove
33496         argument from ira_build call.
33498         * ira-build.c (init_loop_tree_node): New function.
33499         (create_loop_tree_nodes): Use it.  Separate the case when CFG
33500         loops are not built.
33501         (more_one_region_p): Check current_loops.
33502         (finish_loop_tree_nodes): Separate the case when CFG loops are not
33503         built.
33504         (add_loop_to_tree): Process loop equal to NULL too.
33505         (form_loop_tree): Separate the case when CFG loops are not built.
33506         Use explicitly number for the root.
33507         (rebuild_regno_allocno_maps, create_loop_tree_node_allocnos): Add
33508         an assertion.
33509         (ira_print_expanded_allocno, loop_compare_func): Use loop_num
33510         instead of loop->num.
33511         (mark_loops_for_removal): Ditto.  Use loop_num instead of loop->num.
33512         (mark_all_loops_for_removal): Ditto.
33513         (remove_unnecessary_regions): Separate the case when CFG loops
33514         are not built.
33515         (ira_build): Remove the parameter.  Use explicit number of regions
33516         when CFG loops are not built.
33518         * ira-color.c (print_loop_title): Separate the case for the root node.
33519         Use loop_num instead of loop->num.
33520         (move_spill_restore): Use loop_num instead of loop->num.
33522         * ira-emit.c (setup_entered_from_non_parent_p): Add an assertion.
33523         (change_loop): Ditto.
33524         (change_loop): Use loop_num instead of loop->num.
33526         * ira-lives.c (process_bb_node_lives): Ditto.
33528         * ira-costs.c (print_allocno_costs, find_costs_and_classes): Ditto.
33530         * ira-conflicts.c (print_allocno_conflicts): Ditto.
33532 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
33534         PR libmudflap/40778
33535         * tree-mudflap.c (mf_artificial): New function.
33536         (execute_mudflap_function_ops, execute_mudflap_function_decls,
33537         mx_register_decls, mudflap_enqueue_decl): Use it.
33539         PR target/51876
33540         * config/arm/neon.md (*neon_vswp<mode>): Fix up operand
33541         numbers in the insn pattern.
33543 2012-01-19  Michael Matz  <matz@suse.de>
33545         PR tree-optimization/46590
33546         * cfgexpand.c (add_scope_conflicts_1): New old_conflicts argument,
33547         use it in remembering which conflicts we already created.
33548         (add_scope_conflicts): Adjust call to above, (de)allocate helper
33549         bitmap.
33551 2012-01-19  Aldy Hernandez  <aldyh@redhat.com>
33553         PR lto/51280
33554         * lto-wrapper.c (run_gcc): Pass -fgnu_tm on.
33555         (merge_and_complain): Same.
33557 2012-01-19  Jakub Jelinek  <jakub@redhat.com>
33559         PR bootstrap/50237
33560         * config/initfini-array.h: Guard content of the header
33561         with #ifdef HAVE_INITFINI_ARRAY.
33562         * configure.ac: Move gcc_AC_INITFINI_ARRAY much later into the file.
33563         Add initfini-array.h to tm_file here.
33564         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): For non-ia64 do a linker test.
33565         * config.gcc: Don't add initfini-array.h to tm_file here.
33566         * configure: Regenerated.
33568 2012-01-19  Andrey Belevantsev  <abel@ispras.ru>
33570         PR rtl-optimization/51505
33571         * df-problems.c (df_kill_notes): New parameter live. Update comment.
33572         Remove REG_EQUAL/REG_EQUIV notes referring to dead registers.
33573         (df_note_bb_compute): Update the call to df_kill_notes.
33575 2012-01-18  Aldy Hernandez  <aldyh@redhat.com>
33577         * trans-mem.c (requires_barrier): Remove call to is_global_var.
33579 2012-01-18  Richard Guenther  <rguenther@suse.de>
33581         * tree-ssa.c (useless_type_conversion_p): Remove special-casing
33582         of conversions to void *.
33584 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33585             Richard Sandiford  <rdsandiford@googlemail.com>
33587         PR middle-end/50325
33588         PR middle-end/51192
33589         * optabs.h (simplify_expand_binop): Declare.
33590         * optabs.c (simplify_expand_binop): Make global.
33591         * expmed.c (store_bit_field_1): Use simplify_expand_binop on big
33592         endian targets if the source cannot be exactly covered by word
33593         mode chunks.
33595 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
33597         PR bootstrap/51872
33598         * hard-reg-set.h (struct hard_reg_set_container): New type.
33599         * target.h (struct hard_reg_set_container): Forward declare.
33600         * target.def (set_up_by_prologue): New target hook.
33601         * doc/tm.texi.in (TARGET_SET_UP_BY_PROLOGUE): Document it.
33602         * doc/tm.texi: Regenerated.
33603         * function.c (thread_prologue_and_epilogue_insns): Change
33604         set_up_by_prologue HARD_REG_SET into struct hard_reg_set_container.
33605         Call targetm.set_up_by_prologue on it.
33606         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): New function.
33607         (TARGET_SET_UP_BY_PROLOGUE): Redefine to it.
33609 2012-01-17  Nick Clifton  <nickc@redhat.com>
33611         * config/rx/rx.c (rx_can_use_simple_return): New function.
33612         * config/rx/rx-protos.h (rx_can_use_simple_return): Prototype.
33613         * config/rx/rx.md (return): Predicate on rx_can_use_simple_return.
33615 2012-01-17  Richard Guenther  <rguenther@suse.de>
33617         PR middle-end/51782
33618         * expr.c (expand_assignment): Take address-space information
33619         from the address operand of MEM_REF and TARGET_MEM_REF.
33620         (expand_expr_real_1): Likewise.
33622 2012-01-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33624         * ira.c (do_reload): Make sure ira_dump_file is re-set if no
33625         reload dump is requested.
33627 2012-01-17  Aldy Hernandez  <aldyh@redhat.com>
33629         PR other/51165
33630         * trans-mem.c (requires_barrier): Call may_be_aliased.
33632 2012-01-17  Jakub Jelinek  <jakub@redhat.com>
33634         PR tree-optimization/51877
33635         * tree-ssa-tail-merge.c (gimple_equal_p): Don't return true whenever
33636         call arguments and fndecls compare equal, instead return false if they
33637         don't.  Return true only if lhs1 and lhs2 are either both NULL, or
33638         both SSA_NAMEs that are valueized the same, or they satisfy
33639         operand_equal_p.
33641 2012-01-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33643         * configure.ac (gcc_cv_target_dl_iterate_phdr): Only check on
33644         Solaris 11+.
33645         * configure: Regenerate.
33647 2012-01-16  Jan Hubicka  <jh@suse.cz>
33649         PR c/12245
33650         PR c++/14179
33651         * convert.c (convert_to_integer): Use fold_convert for
33652         converting an INTEGER_CST to integer type.
33654 2012-01-16  Jason Merrill  <jason@redhat.com>
33656         PR c++/14179
33657         * vec.c (vec_gc_o_reserve_1): Use ggc_round_alloc_size.
33659 2012-01-16  Jakub Jelinek  <jakub@redhat.com>
33661         PR bootstrap/51860
33662         * config/s390/s390.c (s390_chunkify_start): Don't skip
33663         call insns followed by NOTE_INSN_CALL_ARG_LOCATION note.  Skip
33664         NOTE_INSN_VAR_LOCATION and NOTE_INSN_CALL_ARG_LOCATION notes.
33665         If insn is followed by NOTE_INSN_VAR_LOCATION or
33666         NOTE_INSN_CALL_ARG_LOCATION notes, insert jump after all those notes.
33667         Don't use location of note insns.
33669         PR tree-optimization/51865
33670         * tree-inline.c (tree_function_versioning): Call remap_decl
33671         on DECL_RESULT whenever it has VOID_TYPE_P type.
33673 2012-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
33675         * config/mips/mips.c (mips16_build_call_stub): Don't use a stub
33676         for calls to locally-binding MIPS16 functions if only the return
33677         type uses float regs.
33679 2012-01-15  Chung-Lin Tang  <cltang@codesourcery.com>
33680             Richard Sandiford  <rdsandiford@googlemail.com>
33682         * config/mips/mips-protos.h (SYMBOL_FORCE_TO_MEM): Delete.
33683         (SYMBOL_32_HIGH): Likewise.
33684         (mips_output_tls_reloc_directive): Declare.
33685         * config/mips/mips.h (PIC_FUNCTION_ADDR_REGNUM): Move to mips.md.
33686         (mips_use_pcrel_pool_p, mips_lo_relocs, mips_hi_relocs): Declare.
33687         * config/mips/mips.c (mips_use_pcrel_pool_p): New variable.
33688         (mips_lo_relocs, mips_hi_relocs): Make extern.
33689         (mips16_stub_function): Move up file.
33690         (mips_classify_symbol): Remove SYMBOL_FORCE_TO_MEM handling.
33691         (mips_symbolic_constant_p): Likewise.  Remove SYMBOL_32_HIGH too.
33692         (mips_symbol_insns_1): Likewise.  Check mips_use_pcrel_pool_p.
33693         (mips_cannot_force_const_mem): Use mips_use_pcrel_pool_p instead of
33694         SYMBOL_FORCE_TO_MEM.  Only check mips_tls_symbol_ref_1 if it's false.
33695         (mips_get_tp): Add MIPS16 support.
33696         (mips_legitimize_tls_address): Remove MIPS16 sorry().
33697         Generalize DTPREL and TPREL handling.
33698         (mips_init_relocs): Initialize mips_use_pcrel_pool_p.
33699         Add MIPS16 TLS support.
33700         (mips_output_tls_reloc_directive): New function.
33701         (mips16_rewrite_pool_refs): Ignore UNSPEC_TLS_GET_TPs.
33702         * config/mips/predicates.md (symbolic_operand_with_high)
33703         (tls_reloc_operand): New predicates.
33704         (force_to_mem_operand): Use mips_use_pcrel_pool_p.
33705         * config/mips/mips.md (UNSPEC_UNSHIFTED_HIGH): New unspec.
33706         (PIC_FUNCTION_ADDR_REGNUM): Moved from mips.h.
33707         (*unshifted_high): New instruction.  Use it for MIPS16 high splitter.
33708         (consttable_tls_reloc, tls_get_tp_mips16_<mode>): New patterns.
33709         (*tls_get_tp_mips16_call_<mode>): Likewise.
33711 2012-01-15  Uros Bizjak  <ubizjak@gmail.com>
33713         PR rtl-optimization/51821
33714         * recog.c (peep2_find_free_register): Determine clobbered registers
33715         from insn pattern.
33717 2012-01-14  Denis Chertykov  <chertykov@gmail.com>
33719         PR target/50925
33720         * config/avr/avr-protos.h: Revert change of 2012-01-09.
33721         * config/avr/avr.c: Likewise.
33722         * config/avr/avr.h: Likewise.
33724 2012-01-13  Ian Lance Taylor  <iant@google.com>
33726         PR c++/50012
33727         * tree.h (TYPE_QUALS): Add cast to int.
33728         (TYPE_QUALS_NO_ADDR_SPACE): Likewise.
33730 2012-01-13  Ian Lance Taylor  <iant@google.com>
33732         * ipa-cp.c (ipa_get_indirect_edge_target): Add typecasts when
33733         comparing param_index to VEC_length result.
33735 2012-01-13  Steven Bosscher  <steven@gcc.gnu.org>
33737         * c-decl.c: Do not include tree-mudflap.h
33738         * tree-optimize.c: Likewise.
33739         * Makefile.in: Update dependencies.
33741 2012-01-13  Richard Guenther  <rguenther@suse.de>
33743         PR middle-end/8081
33744         * gimplify.c (gimplify_modify_expr_rhs): For calls with a
33745         variable-sized result always use RSO.
33747 2012-01-12  DJ Delorie  <dj@redhat.com>
33749         * cfgexpand.c (convert_debug_memory_address): Allow any valid
33750         pointer type, not just the default pointer type.
33752 2012-01-09  Richard Henderson  <rth@redhat.com>
33753             Denis Chertykov  <chertykov@gmail.com>
33755         PR target/50925
33756         * config/avr/avr-protos.h (avr_hard_regno_nregs): Declare.
33757         * config/avr/avr.c (avr_can_eliminate): Simplify.
33758         (avr_initial_elimination_offset): Likewise.
33759         (avr_prologue_setup_frame): Use hard_frame_pointer_rtx.
33760         (expand_epilogue): Likewise.
33761         (avr_legitimize_address): Gut.
33762         (avr_legitimize_reload_address): Use hard_frame_pointer_rtx.
33763         (avr_hard_regno_nregs): New.
33764         (avr_hard_regno_ok): Allow only Pmode for arg and frame_pointers.
33765         (avr_regno_mode_code_ok_for_base_b): Handle arg and frame pointers.
33766         * config/avr/avr.h (FIXED_REGISTERS): Adjust arg pointer,
33767         add soft frame pointer.
33768         (CALL_USED_REGISTERS): Likewise.
33769         (REG_CLASS_CONTENTS): Likewise.
33770         (REGISTER_NAMES): Likewise.
33771         (HARD_REGNO_NREGS): Use avr_hard_regno_nregs.
33772         (HARD_FRAME_POINTER_REGNUM): New.
33773         (FRAME_POINTER_REGNUM): Use soft frame pointer.
33774         (ELIMINABLE_REGS): Eliminate from the soft frame pointer,
33775         remove the HARD_FRAME_POINTER self-elimination.
33777 2012-01-12  Georg-Johann Lay  <avr@gjlay.de>
33779         PR target/51756
33780         * config/avr/avr.c (avr_encode_section_info): Test for absence of
33781         DECL_EXTERNAL when checking for initializers of progmem variables.
33783 2012-01-12  Ira Rosen  <irar@il.ibm.com>
33785         PR tree-optimization/51799
33786         * tree-vect-patterns.c (vect_recog_over_widening_pattern): Check
33787         that the last operation is a type demotion.
33789 2012-01-12  Uros Bizjak  <ubizjak@gmail.com>
33791         * config/i386/i386.md (*zero_extendsidi2_rex64): Correct movl template.
33792         (x86_shift<mode>_adj_1): Remove operand constraint from operand 3.
33794 2012-01-11  Jakub Jelinek  <jakub@redhat.com>
33796         PR bootstrap/51796
33797         * combine.c (distribute_notes): If i3 is a noreturn call,
33798         allow old_size to be equal to args_size and make sure the
33799         noreturn call gets REG_ARGS_SIZE note.
33800         * expr.c (fixup_args_size_notes): Put REG_ARGS_SIZE notes
33801         on noreturn calls even when the delta is 0.
33803 2012-01-11  Nathan Sidwell  <nathan@acm.org>
33805         * gcov.c (STRING_SIZE): Remove.
33806         (generate_results): Erase annotations for source files with no
33807         coverage information.
33808         (read_line): New.
33809         (output_lines): Use it.
33811 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
33813         * gimple.h (gimplify_body): Remove first argument.
33814         * gimplify.c (copy_if_shared): Add DATA argument.  Do not create the
33815         pointer set here, instead just pass DATA to walk_tree.
33816         (unshare_body): Remove BODY_P argument and adjust.  Create the pointer
33817         set here and invoke copy_if_shared on the size trees of DECL_RESULT.
33818         (unvisit_body): Likewise, but with unmark_visited.
33819         (gimplify_body): Remove BODY_P argument and adjust.
33820         (gimplify_function_tree): Adjust call to gimplify_body.
33821         * omp-low.c (finalize_task_copyfn): Likewise.
33823 2012-01-11  Eric Botcazou  <ebotcazou@adacore.com>
33825         * tree.h (build_function_decl_skip_args): Add boolean parameter.
33826         (build_function_type_skip_args): Delete.
33827         * tree.c (build_function_type_skip_args): Make static and add
33828         SKIP_RETURN parameter.  Fix thinko in the handling of variants.
33829         (build_function_decl_skip_args): Add SKIP_RETURN parameter and
33830         pass it to build_function_type_skip_args.
33831         * cgraph.h (cgraph_function_versioning): Add boolean parameter.
33832         (tree_function_versioning): Likewise.
33833         * cgraph.c (cgraph_create_virtual_clone): Adjust call to
33834         build_function_decl_skip_args.
33835         * cgraphunit.c (cgraph_function_versioning): Add SKIP_RETURN parameter
33836         and pass it to build_function_decl_skip_args/tree_function_versioning.
33837         (cgraph_materialize_clone): Adjust call to tree_function_versioning.
33838         * ipa-inline-transform.c (save_inline_function_body): Likewise.
33839         * trans-mem.c (ipa_tm_create_version): Likewise.
33840         * tree-sra.c (modify_function): Ditto for cgraph_function_versioning.
33841         * tree-inline.c (declare_return_variable): Remove always-true test.
33842         (tree_function_versioning): Add SKIP_RETURN parameter.  If the function
33843         returns non-void and SKIP_RETURN, create a void-typed RESULT_DECL.
33844         * ipa-split.c (split_function): Skip the return value for the split
33845         part if it doesn't return.
33847 2012-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33849         PR tree-optimization/49642
33850         * ipa-split.c (forbidden_dominators): New variable.
33851         (check_forbidden_calls): New function.
33852         (dominated_by_forbidden): Likewise.
33853         (consider_split): Check for forbidden dominators.
33854         (execute_split_functions): Initialize and free forbidden
33855         dominators info; call check_forbidden_calls.
33857 2012-01-11  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
33859         * config/arm/arm.md (mov_notscc): Use MVN for false condition.
33861 2012-01-11  Nick Clifton  <nickc@redhat.com>
33863         * config/rx/rx.md (return): Define pattern.
33865 2012-01-11  Richard Guenther  <rguenther@suse.de>
33867         * doc/extend.texi (malloc attribute): Adjust according to
33868         implementation.
33870 2012-01-10  Aldy Hernandez  <aldyh@redhat.com>
33871             Patrick Marlier  <patrick.marlier@gmail.com>
33873         PR middle-end/51516
33874         * trans-mem.c (get_cg_data): Traverse aliases if requested.
33875         (ipa_tm_scan_calls_block): Update parameters to get_cg_data.
33876         (ipa_tm_note_irrevocable): Same.
33877         (ipa_tm_scan_irr_block): Same.
33878         (ipa_tm_decrement_clone_counts): Same.
33879         (ipa_tm_scan_irr_function): Same.
33880         (ipa_tm_create_version_alias): Same.
33881         (ipa_tm_create_version): Same.
33882         (ipa_tm_transform_calls_redirect): Same.
33883         (ipa_tm_transform_calls): Same.
33884         (ipa_tm_transform_transaction): Same.
33885         (ipa_tm_execute): Same.
33887 2012-01-10  Richard Guenther  <rguenther@suse.de>
33889         PR middle-end/51806
33890         * opts.c (common_handle_option): Handle -Werror.
33892 2012-01-10  Andreas Schwab  <schwab@linux-m68k.org>
33894         * config/m68k/sync.md ("atomic_compare_and_swap<mode>_1"): Fix
33895         operand number.
33897 2012-01-10  Jason Merrill  <jason@redhat.com>
33899         * doc/invoke.texi (C++ Dialect Options): Update -fabi-version=6
33900         information.
33902 2012-01-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33904         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check if linker
33905         supports R_386_TLS_GD_PLT reloc.
33906         (gcc_cv_as_ix86_tlsldmplt): Check if linker
33907         supports R_386_TLS_LDM_PLT reloc.
33908         * configure: Regenerate.
33909         * config.in: Regenerate.
33911 2012-01-10  Georg-Johann Lay  <avr@gjlay.de>
33913         PR target/49868
33914         Extend __pgmx semantics to linearize memory.
33915         * config/avr/avr.md (mov<mode>): Use avr_xload_libgcc_p to
33916         determine if code comes inline or from libgcc.
33917         (MOVMEM_r_d:HI): Add "w" to constraint for better preference.
33918         (movmem_qi, movmem_qi): Set constraint #2 to "n".
33919         (movmem_qi_elpm, movmem_hi_elpm): Remove insns.
33920         (movmemx_qi, movmemx_hi): New insns.
33921         (xload_<mode>_libgcc): Rewrite to new insn condition.
33922         (xload_<mode>): Remove insns.
33923         * config/avr/avr.c (avr_out_xload): Rewrite: Only need to handle
33924         cases that don't satisfy avr_xload_libgcc_p().
33925         (avr_addr_space_convert): Allow converting in any direction.
33926         (avr_addr_space_subset_p): Return always true.
33927         (avr_xload_libgcc_p): Rewrite to fit new __pgmx semantics.
33928         (avr_emit_movmemhi): Ditto.
33929         (avr_out_lpm): No need to handle ADDR_SPACE_PGMX any more.
33930         (avr_out_movmem): Ditto.
33931         (AVR_SYMBOL_FLAG_PROGMEM): New macro.
33932         (AVR_SYMBOL_SET_ADDR_SPACE): New macro.
33933         (AVR_SYMBOL_GET_ADDR_SPACE): New macro.
33934         (avr_encode_section_info): Encode 'progmem' in symbol flags.
33935         (output_reload_in_const): Don't zero-extend any 24-bit symbols.
33937 2012-01-10  Richard Guenther  <rguenther@suse.de>
33939         PR tree-optimization/50913
33940         * graphite-scop-detection.c (stmt_has_simple_data_refs_p):
33941         Require data-refs to be representable by Graphite with respect
33942         to any loop nest.
33944 2012-01-10  Uros Bizjak  <ubizjak@gmail.com>
33946         * config/i386/constraints.md ("L"): Return true for 0xffffffff.
33947         * config/i386/i386.c (*anddi_1): Emit AND with 0xffffffff as MOV.
33949 2012-01-10  Tom de Vries  <tom@codesourcery.com>
33951         PR rtl-optimization/51271
33952         * dwarf2cfi.c (scan_trace): Save and restore cur_row->reg_save when
33953         handling annulled branch.
33955 2012-01-10  Richard Henderson  <rth@redhat.com>
33957         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok,
33958         TARGET_VECTORIZE_VEC_PERM_CONST_OK, neon_split_vcombine, MAX_VECT_LEN,
33959         struct expand_vec_perm_d, arm_expand_vec_perm_1, arm_expand_vec_perm,
33960         arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev,
33961         arm_evpc_neon_vtrn, arm_evpc_neon_vtbl, arm_expand_vec_perm_const_1,
33962         arm_expand_vec_perm_const): New.
33963         * config/arm/arm-protos.h: Update.
33964         * config/arm/neon.md (UNSPEC_VCONCAT): New.
33965         (*neon_vswp<VDQX>): New.
33966         (neon_vcombine<VDX>): Use neon_split_vcombine.
33967         (neon_vtbl1v16qi, neon_vtbl2v16qi, neon_vcombinev16qi): New.
33968         * config/arm/vec-common.md (vec_perm_const<VALL>): New.
33969         (vec_perm<VE>): New.
33971 2012-01-10  Richard Henderson  <rth@redhat.com>
33973         * config/arm/arm.c (arm_gen_compare_reg): Add scratch argument;
33974         use it if reload_completed.
33975         (arm_legitimize_sync_memory, arm_emit, arm_insn_count, arm_count,
33976         arm_output_asm_insn, arm_process_output_memory_barrier,
33977         arm_output_memory_barrier, arm_ldrex_suffix, arm_output_ldrex,
33978         arm_output_strex, arm_output_it, arm_output_op2, arm_output_op3,
33979         arm_output_sync_loop, arm_get_sync_operand, FETCH_SYNC_OPERAND,
33980         arm_process_output_sync_insn, arm_output_sync_insn,
33981         arm_sync_loop_insns, arm_call_generator, arm_expand_sync): Remove.
33982         (arm_pre_atomic_barrier, arm_post_atomic_barrier): New.
33983         (arm_emit_load_exclusive, arm_emit_store_exclusive): New.
33984         (emit_unlikely_jump): New.
33985         (arm_expand_compare_and_swap, arm_split_compare_and_swap): New.
33986         (arm_split_atomic_op): New.
33987         * config/arm/arm-protos.h: Update.
33988         * config/arm/arm.h (enum arm_sync_generator_tag): Remove.
33989         (struct arm_sync_generator): Remove.
33990         * config/arm/arm.md (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK,
33991         VUNSPEC_SYNC_OP, VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): Remove.
33992         (VUNSPEC_ATOMIC_CAS, VUNSPEC_ATOMIC_XCHG, VUNSPEC_ATOMIC_OP): New.
33993         (VUNSPEC_LL, VUNSPEC_SC): New.
33994         (sync_result, sync_memory, sync_required_value, sync_new_value,
33995         sync_t1, sync_t2, sync_release_barrier, sync_op): Remove.
33996         (attr length): Don't use arm_sync_loop_insns.
33997         (cbranch_cc, cstore_cc): Update call to arm_gen_compare_reg.
33998         (movsfcc, movdfcc): Likewise.
33999         * config/arm/constraints.md (Ua): New.
34000         * config/arm/prediates.md (mem_noofs_operand): New.
34001         (sync_compare_and_swap<QHSD>, sync_lock_test_and_set<QHSD>): Remove.
34002         (sync_clobber, sync_t2_reqd): Remove.
34003         (sync_<syncop><QHSD>, sync_nand<QHSD>): Remove.
34004         (sync_new_<syncop><QHSD>, sync_new_nand<QHSD>): Remove.
34005         (sync_old_<syncop><QHSD>, sync_old_nand<QHSD>): Remove.
34006         (arm_sync_compare_and_swap<SIDI>): Remove.
34007         (arm_sync_compare_and_swap<NARROW>): Remove.
34008         (arm_sync_lock_test_and_set<SIDI>): Remove.
34009         (arm_sync_lock_test_and_set<NARROW>): Remove.
34010         (arm_sync_new_<syncop><SIDI>): Remove.
34011         (arm_sync_new_<syncop><NARROW>): Remove.
34012         (arm_sync_new_nand<SIDI>): Remove.
34013         (arm_sync_new_nand<NARROW>): Remove.
34014         (arm_sync_old_<syncop><SIDI>): Remove.
34015         (arm_sync_old_<syncop><NARROW>): Remove.
34016         (arm_sync_old_nand<SIDI>): Remove.
34017         (arm_sync_old_nand<NARROW>): Remove.
34018         (*memory_barrier): Merge arm_output_memory_barrier.
34019         (atomic_compare_and_swap<QHSD>): New.
34020         (atomic_compare_and_swap<NARROW>_1): New.
34021         (atomic_compare_and_swap<SIDI>_1): New.
34022         (atomic_exchange<QHSD>): New.
34023         (cas_cmp_operand, cas_cmp_str): New.
34024         (atomic_op_operand, atomic_op_str): New.
34025         (atomic_<syncop><QHSD>, atomic_nand<QHSD>): New.
34026         (atomic_fetch_<syncop><QHSD>, atomic_fetch_nand<QHSD>): New.
34027         (atomic_<syncop>_fetch<QHSD>, atomic_nand_fetch<QHSD>): New.
34028         (arm_load_exclusive<NARROW>): New.
34029         (arm_load_exclusivesi, arm_load_exclusivedi): New.
34030         (arm_store_exclusive<QHSD>): New.
34032 2012-01-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
34034         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add DF
34035         reload patterns if -mvsx-scalar-memory.
34037         * config/rs6000/vsx.md (vsx_xscvspdp): Allow xscvspdp to be
34038         generated, even -mno-vsx-scalar-double was used.
34039         (vsx_xscvdpsp_scalar): Likewise.
34040         (vsx_xscvspdp_scalar2): Likewise.
34042 2012-01-09  Tom de Vries  <tom@codesourcery.com>
34043             Andrew Pinski  <apinski@cavium.com>
34045         PR debug/51471
34046         * reorg.c (fill_slots_from_thread): Don't speculate
34047         frame-related insns.
34049 2012-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
34051         * sched-int.h (bb_note): Move to...
34052         * basic-block.h: ...here.
34053         * haifa-sched.c (bb_note): Move to...
34054         * cfgrtl.c: ...here.
34055         * function.c (next_block_for_reg): New function.
34056         (move_insn_for_shrink_wrap): Likewise.
34057         (prepare_shrink_wrap): Rewrite to use the above.
34059 2012-01-09  Aldy Hernandez  <aldyh@redhat.com>
34061         * gimple.c (is_gimple_non_addressable): Remove.
34062         * gimple.h: Remove is_gimple_non_addressable.
34063         * gimplify.c (gimplify_modify_expr_rhs): Use is_gimple_reg instead of
34064         is_gimple_non_addressable.
34065         * trans-mem.c (expand_assign_tm): Same.
34067 2012-01-09  Richard Guenther  <rguenther@suse.de>
34069         PR tree-optimization/51775
34070         * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts.
34071         * tree-ssa-pre.c (eliminate): Properly fixup EH info.
34073 2012-01-09  Matthew Gretton-Dann  <matthew.gretton-dann@arm.com>
34075         * config/arm/arm-cores.def (cortex-a15): Use cortex_a15_tune for
34076         tuning parameters.
34077         * config/arm/arm.c (arm_cortex_a15_tune): New static variable.
34079 2012-01-09  Richard Guenther  <rguenther@suse.de>
34081         * tree-streamer-out.c (write_ts_optimization): Fix spelling.
34083 2012-01-08  Jan Hubicka  <jh@suse.cz>
34085         PR tree-optimize/51680
34086         * ipa-inline-analyss.c (evaluate_properties_for_edge): Fix condition
34087         on when known_vals needs to be computed; cleanup.
34089 2012-01-08  Jan Hubicka  <jh@suse.cz>
34091         PR tree-optimize/51694
34092         * ipa-cp.c (ipa_get_indirect_edge_target): Add bounds checks.
34094 2012-01-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
34096         * doc/cpp.texi (Predefined Macros): __STRICT_ANSI__ is defined
34097         for -std=c++98 and -std=c++11 too.
34099 2012-01-08  Chung-Lin Tang  <cltang@codesourcery.com>
34101         * cfgloop.c (cancel_loop): Add free() of bbs array.
34103 2012-01-07  Jan Hubicka  <jh@suse.cz>
34105         PR tree-optimization/51600
34106         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Disable code
34107         that benefits small functions.
34109 2012-01-07  Jan Hubicka  <jh@suse.cz>
34111         * ipa-inline.c (want_inline_small_function_p): Fix formating.
34113 2012-01-07  Jan Hubicka  <jh@suse.cz>
34115         PR tree-optimization/51680
34116         * ipa-inline.c (want_inline_small_function_p): Be more lax on functions
34117         whose inlining reduce unit size.
34119 2012-01-07  Alexandre Oliva  <aoliva@redhat.com>
34121         PR bootstrap/51725
34122         * cselib.c (new_elt_loc_list): Promote addr_list to canonical node.
34123         Add canonical node to containing_mem chain after the non-canonical
34124         one, even if there weren't any locs to propagate.
34125         (remove_useless_values): Keep only canonical values.
34126         (add_mem_for_addr, cselib_lookup_mem): Canonicalize addr.
34127         (cselib_invalidate_mem): Likewise.  Ensure v is canonical, and
34128         canonicalize mem_chain elements that are not discarded.
34130 2012-01-06  Jakub Jelinek  <jakub@redhat.com>
34132         PR target/47333
34133         * cgraphunit.c (cgraph_optimize): Call output_weakrefs
34134         before emitting functions.
34136         PR gcov-profile/50127
34137         * bb-reorder.c (partition_hot_cold_basic_blocks): Call
34138         clear_aux_for_blocks.
34140 2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
34142         PR debug/51746
34143         * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
34145 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
34147         * c-decl.c (ext_block): Moved up.
34148         (collect_all_refs, for_each_global_decl): Take ext_block into account.
34150 2012-01-06  Han Shen  <shenhan@google.com>
34152         Translate built-in include paths for sysroot.
34153         * Makefile.in (gcc_gxx_include_dir_add_sysroot): New.
34154         (PREPROCESSOR_DEFINES): Define GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT.
34156         * cppdefault.c (cpp_include_defaults): Replace hard coded "0" with
34157         GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT for "add_sysroot" field.
34159         * configure.ac (AC_SUBST): Add gcc_gxx_include_dir_add_sysroot to
34160         control whether sysroot should be prepended to gxx include dir.
34162         * configure: Regenerate.
34164 2012-01-06  Torvald Riegel  <triegel@redhat.com>
34166         PR rtl-optimization/51771
34167         * builtin-attrs.def (ATTR_RETURNS_TWICE, ATTR_TM_NOTHROW_RT_LIST): New.
34168         * gtm-builtins.def (BUILT_IN_TM_START): Add returns-twice attrib.
34170 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
34172         PR tree-optimization/51315
34173         * tree-sra.c (tree_non_aligned_mem_for_access_p): New predicate.
34174         (build_accesses_from_assign): Use it instead of tree_non_aligned_mem_p.
34176 2012-01-05  Uros Bizjak  <ubizjak@gmail.com>
34178         PR target/51681
34179         * config/ia64/ia64.c (expand_vec_perm_shrp): Use correct operands
34180         for shrp pattern.  Correctly handle and fixup shift variable.
34181         Return false when shift > nelt for BYTES_BIG_ENDIAN target.
34183 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
34185         PR debug/51762
34186         * calls.c (emit_call_1): For noreturn calls force a REG_ARGS_SIZE
34187         note when !ACCUMULATE_OUTGOING_ARGS.
34189 2012-01-05  Eric Botcazou  <ebotcazou@adacore.com>
34191         * tree-vrp.c (extract_range_from_binary_expr_1): Remove duplicated
34192         condition.
34193         (extract_range_from_unary_expr_1): Avoid useless computations.
34195 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
34197         PR rtl-optimization/51767
34198         * cfgrtl.c (force_nonfallthru_and_redirect): Force addition
34199         of jump_block and add an extra edge for degenerated asm gotos.
34201         PR middle-end/51768
34202         * stmt.c (check_unique_operand_names): Don't ICE during error
34203         reporting if i is from labels chain.
34205         PR middle-end/44777
34206         * profile.c (branch_prob): Split bbs that have exit edge
34207         and need a fake entry edge too.
34209 2012-01-05  Jan Hubicka  <jh@suse.cz>
34211         PR middle-end/49710
34212         * cfgloopmanip.c (remove_path): Walk loop hiearchy upwards when
34213         unlooping loops.
34215 2012-01-05  Richard Guenther  <rguenther@suse.de>
34217         PR lto/50490
34218         * tree-streamer-out.c (write_ts_optimization): New function.
34219         (streamer_write_tree_body): Call it.
34220         * tree-streamer-in.c (lto_input_ts_optimization): New function.
34221         (streamer_read_tree_body): Call it.
34222         * lto-streamer-out.c (lto_is_streamable): Handle OPTIMIZATION_NODE.
34224 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
34226         PR middle-end/51761
34227         * gimple.h (struct gimplify_ctx): Add in_cleanup_point_expr field.
34228         * gimplify.c (gimplify_cleanup_point_expr): Save and set
34229         in_cleanup_point_expr before gimplify_stmt call and restore it
34230         afterwards.
34231         (gimplify_target_expr): Don't add {CLOBBER} cleanup if
34232         in_cleanup_point_expr is false.
34234 2012-01-05  Richard Guenther  <rguenther@suse.de>
34236         PR middle-end/51764
34237         * common.opt (Wmudflap, fmudflap, fmudflapth, fmudflapir): Move
34238         to c.opt.
34239         * toplev.c (process_options): Reject combining mudflap and LTO.
34240         * tree-nomudflap.c (nogo): Use sorry instead of internal_error.
34242 2012-01-05  Richard Guenther  <rguenther@suse.de>
34244         PR tree-optimization/51760
34245         * tree-ssa-ccp.c (likely_value): Drop UNDEFINED to CONSTANT,
34246         not VARYING.
34247         (bit_value_unop): Handle UNDEFINED operands.
34248         (bit_value_binop): Likewise.
34250 2012-01-05  Georg-Johann Lay  <avr@gjlay.de>
34252         * config/avr/avr.c (avr_replace_prefix): Remove.
34253         (avr_asm_named_section): Use ACONCAT instead of avr_replace_prefix.
34254         (avr_asm_function_rodata_section): Ditto.
34255         (avr_asm_select_section): Ditto.
34257 2012-01-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34259         * reload.c (find_reloads): Adjust LABEL_NUSES on REG_LABEL_OPERAND
34260         insertion.
34262 2012-01-05  Jakub Jelinek  <jakub@redhat.com>
34264         PR bootstrap/51648
34265         * tree-cfg.c (need_fake_edge_p): Return true also for noreturn
34266         calls that have any non-fake successor edges.
34268         PR debug/51746
34269         * var-tracking.c (add_stores): For COND_EXEC allow oval to be NULL.
34271 2012-01-04  Eric Botcazou  <ebotcazou@adacore.com>
34273         PR tree-optimization/51624
34274         * tree-sra.c (build_ref_for_model): When replicating a chain of
34275         COMPONENT_REFs, stop as soon as the offset would become negative.
34277 2012-01-04  Jakub Jelinek  <jakub@redhat.com>
34279         PR debug/51695
34280         * dwarf2out.c (output_loc_list): For now drop >= 64KB expressions
34281         in .debug_loc on the floor.
34283 2012-01-04  Andrew Pinski  <apinski@cavium.com>
34285         * doc/invoke.texi (-march=@var{arch}): Add octeon+ and octeon2.
34287 2012-01-04  Andrew Pinski  <apinski@cavium.com>
34288             Adam Nemet  <anemet@caviumnetworks.com>
34290         * config/mips/mips.md (size): Add SI and DI.
34291         (SIZE): New mode attribute.
34292         (U): New code attribute.
34293         * config/mips/mips-dsp.md (mips_lbux): Use gen_mips_lbux_extsi.
34294         (mips_lbux_<mode>): Delete.
34295         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>): New pattern.
34296         (mips_lhx): Use gen_mips_lhx_extsi.
34297         (mips_lhx_<mode>): Delete.
34298         (mips_lwx): Delete.
34299         (mips_l<size>x): New expand.
34300         (mips_lwx_<mode>): Delete.
34301         (mips_l<GPR:size>x_<P:mode>): New pattern.
34302         (*mips_lw<u>x_<P:mode>_ext): Likewise.
34303         * config/mips/mips-ftypes.def: Add DI f(POINTER, SI) function type.
34304         * config/mips/mips.c (mips_lx_address_p): New function.
34305         (mips_rtx_costs <case MEM>): Call mips_lx_address_p.
34306         (dsp64): New availability predicate.
34307         (mips_builtins): Add an entry for __builtin_mips_ldx.
34308         * config/mips/mips.h (ISA_HAS_LBX): New define.
34309         (ISA_HAS_LBUX): Likewise.
34310         (ISA_HAS_LHX): Likewise.
34311         (ISA_HAS_LHUX): Likewise.
34312         (ISA_HAS_LWX): Likewise.
34313         (ISA_HAS_LWUX): Likewise.
34314         (ISA_HAS_LDX): Likewise.
34315         * doc/extend.texi (__builtin_mips_ldx): Document.
34317 2012-01-04  Tristan Gingold  <gingold@adacore.com>
34319         * config/vms/xm-vms.h (HOST_LONG_FORMAT, HOST_PTR_PRINTF): Define
34320         when long pointers are used.
34321         * config.build (*-*-*vms*): Handle all OpenVMS targets.
34322         (alpha64-dec-*vms*, alpha*-dec-*vms*)
34323         (ia64-hp-*vms*): Remove.
34324         * config/vms/xm-vms64.h: Delete.
34326 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
34328         PR middle-end/51472
34329         * trans-mem.c (expand_assign_tm): Handle TM_MEMMOVE loads correctly.
34331 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
34333         * opts.c (finish_options): Remove duplicate sorry.
34335 2012-01-04  Aldy Hernandez  <aldyh@redhat.com>
34337         PR middle-end/51696
34338         * trans-mem.c (diagnose_tm_1): Display indirect calls with no name
34339         correctly.
34341 2012-01-04  Richard Guenther  <rguenther@suse.de>
34343         PR middle-end/51750
34344         * tree.c (size_low_cst): New function.
34345         * tree.h (size_low_cst): Declare.
34346         * fold-const.c (fold_comparison): Use it to extract the low
34347         part of the POINTER_PLUS_EXPR offset.
34349 2012-01-04  Georg-Johann Lay  <avr@gjlay.de>
34351         Fix clearing ZERO_REG
34352         * config/avr/avr.md (cc): Add alternative "ldi".
34353         (movqi_insn): Use it in cc attribute.
34354         * config/avr/avr.c (notice_update_cc): Handle CC_LDI.
34355         (output_reload_in_const): Use CLR to move 0 to ZERO_REG.
34356         (output_reload_insisf): Use ZERO_REG to pre-clear register.
34358 2012-01-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34360         * configure: Regenerate.
34362 2012-01-04  Richard Guenther  <rguenther@suse.de>
34364         PR tree-optimization/49651
34365         * tree-ssa-structalias.c (type_can_have_subvars): New function.
34366         (var_can_have_subvars): Use it.
34367         (get_constraint_for_1): Only consider subfields if there can be any.
34369 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
34371         PR bootstrap/51725
34372         * cselib.c (new_elt_loc_list): When moving locs from one cselib_val
34373         to its new canonical_cselib_val and the cselib_val was in
34374         first_containing_mem chain, but the canonical_cselib_val was not,
34375         add the latter into the chain.
34376         (cselib_invalidate_mem): Compare canonical_cselib_val of
34377         addr_list chain elt with v.
34379         PR pch/51722
34380         * dwarf2out.c (dwarf2out_start_source_file, dwarf2out_define,
34381         dwarf2out_undef): Allocate e.info using ggc_strdup instead
34382         of xstrdup.
34383         (output_macinfo_op): Don't ggc_strdup fd->filename.
34384         (optimize_macinfo_range): Allocate grp_name using XALLOCAVEC,
34385         then ggc_strdup it.  Don't free inc->info or cur->info.
34386         (output_macinfo): Don't free ref->info or file->info.
34388 2012-01-03  Ira Rosen  <irar@il.ibm.com>
34390         PR tree-optimization/51269
34391         * tree-vect-loop-manip.c (set_prologue_iterations): Make
34392         first_niters a pointer.
34393         (slpeel_tree_peel_loop_to_edge): Likewise.
34394         (vect_do_peeling_for_loop_bound): Update call to
34395         slpeel_tree_peel_loop_to_edge.
34396         (vect_gen_niters_for_prolog_loop): Don't compute wide_prolog_niters
34397         here.  Remove it from the parameters list.
34398         (vect_do_peeling_for_alignment): Update calls and compute
34399         wide_prolog_niters.
34401 2012-01-03  Richard Guenther  <rguenther@suse.de>
34403         PR tree-optimization/51070
34404         * tree-loop-distribution.c (stmt_has_scalar_dependences_outside_loop):
34405         Properly handle calls.
34407 2012-01-03  Richard Guenther  <rguenther@suse.de>
34409         PR tree-optimization/51692
34410         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not remove
34411         the LHS of allocation stmts.
34413 2012-01-03  Olivier Hainque  <hainque@adacore.com>
34415         * system.h: Prior to #define, #undef fopen and freopen unconditionally.
34417 2012-01-03  Olivier Hainque  <hainque@adacore.com>
34419         * collect2.c (main): In AIX specific computations for vector
34420         insertions, use CONST_CAST2 to cast from char ** to const char **.
34422 2012-01-03  Richard Guenther  <rguenther@suse.de>
34424         PR debug/51650
34425         * dwarf2out.c (dwarf2out_finish): Always create a DIE for
34426         the context of a limbo DIE when it does not already exist.
34428 2012-01-03  Jakub Jelinek  <jakub@redhat.com>
34430         PR tree-optimization/51719
34431         * value-prof.c (gimple_ic): When indirect call isn't noreturn,
34432         but direct call is, clear direct call's lhs and don't add fallthrough
34433         edge from dcall_bb to join_bb and PHIs.
34435 2012-01-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34437         * config/s390/s390.md ("*cmp<mode>_ccs"): Fix comment mentioning
34438         the instructions emitted by the pattern.
34439         ("*TDC_insn_<mode>"): Add comment.
34441 2012-01-03  Richard Guenther  <rguenther@suse.de>
34443         PR middle-end/51730
34444         * fold-const.c (fold_comparison): Properly canonicalize
34445         tree offset and HOST_WIDE_INT bit position.
34447 2012-01-02  Uros Bizjak  <ubizjak@gmail.com>
34449         * config/ia64/ia64.c (expand_vec_perm_broadcast): Use correct
34450         operands for extzv pattern.
34452 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
34454         PR bootstrap/51725
34455         * cselib.c (add_mem_for_addr): Call canonical_cselib_val
34456         on mem_elt first.
34458 2012-01-02  Sandra Loosemore  <sandra@codesourcery.com>
34460         * doc/invoke.texi (-flto and related options): Copy-edit.
34462 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34464         * config/mips/mips.md (loadgp_newabi_<mode>): Add missing earlyclobber.
34466 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
34468         * config/i386/sse.md (*avx2_gatherdi<mode>_3, *avx2_gatherdi<mode>_4):
34469         New patterns.
34471 2012-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
34473         * expr.h (move_by_pieces_ninsns): Declare.
34474         * expr.c (move_by_pieces_ninsns): Make external.
34475         * config/mips/mips-protos.h (mips_move_by_pieces_p): Declare.
34476         (mips_store_by_pieces_p): Likewise.
34477         * config/mips/mips.h (MOVE_BY_PIECES_P): Call mips_move_by_pieces_p.
34478         (STORE_BY_PIECES_P): Likewise mips_store_by_pieces_p.
34479         * config/mips/mips.c (mips_move_by_pieces_p): New function.
34480         (mips_store_by_pieces_p): Likewise.
34482 2012-01-02  Jakub Jelinek  <jakub@redhat.com>
34484         * passes.c (register_one_dump_file): Free full_name.
34486         * reload1.c (reload): Don't allocate reg_max_ref_width here.
34487         (calculate_elim_costs_all_insns): Free offsets_at and
34488         offsets_known_at at the end and clear the pointers.
34490 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
34492         * config/avr/avr.opt (-mbranch-cost): Fix double definition of
34493         this option introduced in r180739.
34495 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
34497         PR target/51345
34498         * config.gcc (tm_file target=avr]): Add avr/avr-multilib.h
34499         (tmake_file target=avr): Add avr/t-multilib.
34501         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use AVR_HAVE_8BIT_SP
34502         to built-in define __AVR_HAVE_8BIT_SP__, __AVR_HAVE_16BIT_SP__.
34503         * config/avr/genmultilib.awk: New file.
34504         * config/avr/t-multilib: New auto-generated file.
34505         * config/avr/multilib.h: New auto-generated file.
34506         * config/avr/t-avr (AVR_MCUS): New variable.
34507         (genopt.sh): Use it.
34508         (s-mlib): Depend on t-multilib.
34509         (t-multilib, multilib.h): New dependencies.
34510         (s-avr-mlib): New rule to build t-multilib, multilib.h from AVR_MCUS.
34511         (MULTILIB_OPTIONS): Remove.
34512         (MULTILIB_MATCHES): Remove.
34513         (MULTILIB_DIRNAMES): Remove.
34514         (MULTILIB_EXCEPTIONS): Remove:
34515         * config/avr/genopt.sh: Don't use hard coded file name;
34516         pass AVR_MCUS from t-avr instead.
34518 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
34520         * config/avr/avr.c (avr_out_ashrpsi3): Fix "case 31" to "case 23".
34522 2012-01-02  Georg-Johann Lay  <avr@gjlay.de>
34524         Implement light-weight DImode support.
34525         * config/avr/avr-dimode.md: New file.
34526         * config/avr/avr.md: Include it.
34527         (adjust_len): Add plus64, compare64.
34528         (HIDI): Remove code iterator.
34529         (code_stdname): New code attribute.
34530         (rotx, rotsmode): Remove DI.
34531         (rotl<mode>3, *rotw<mode>, *rotb<mode>): Use HISI instead of HIDI
34532         as code iterator.
34533         * config/avr/avr-protos.h (avr_have_dimode): New.
34534         (avr_out_plus64, avr_out_compare64): New.
34535         * config/avr/avr.c (avr_out_compare): Handle DImode.
34536         (avr_have_dimode): New variable definition and initialization.
34537         (avr_out_compare64, avr_out_plus64): New functions.
34538         (avr_out_plus_1): Use simplify_unary_operation to negate xval.
34539         (adjust_insn_length): Handle ADJUST_LEN_COMPARE64, ADJUST_LEN_PLUS64.
34540         (avr_compare_pattern): Skip DImode comparisons.
34542 2012-01-02  Revital Eres  <revital.eres@linaro.org>
34544         * ddg.c (def_has_ccmode_p): New function.
34545         (add_cross_iteration_register_deps,
34546         create_ddg_dep_from_intra_loop_link): Call it.
34548 2012-01-02  Richard Guenther  <rguenther@suse.de>
34550         PR other/51679
34551         * invoke.texi (fassociative-math): Remove spurious paranthesis.
34553 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
34555         * gcc.c (process_command): Update copyright notice dates.
34556         * gcov.c (print_version): Likewise.
34557         * gcov-dump.c (print_version): Likewise.
34558         * mips-tfile.c (main): Likewise.
34559         * mips-tdump.c (main): Likewise.
34561 2012-01-01  Ira Rosen  <irar@il.ibm.com>
34563         PR tree-optimization/51704
34564         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Check that
34565         a use is inside the basic block or loop before accessing its vect info.
34567 2012-01-01  Jan Hubicka  <jhjh@suse.cz>
34569         PR rtl-optimization/51069
34570         * cfgloopmanip.c (remove_path): Removing path making irreducible
34571         region unconditional makes BB part of the region.
34573 2012-01-01  Jakub Jelinek  <jakub@redhat.com>
34575         PR tree-optimization/51683
34576         * tree-ssa-propagate.c (substitute_and_fold): Don't optimize away
34577         calls with side-effects.
34578         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
34580 Copyright (C) 2012 Free Software Foundation, Inc.
34582 Copying and distribution of this file, with or without modification,
34583 are permitted in any medium without royalty provided the copyright
34584 notice and this notice are preserved.