* tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
[official-gcc.git] / gcc / ChangeLog
blobee3e01e8f93baf63b2251227e2a9ca7554e8eac2
1 2013-09-30  Teresa Johnson  <tejohnson@google.com>
3         * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
4         Update redirected out edge count in joiner case.
5         (ssa_redirect_edges): Common the joiner and non-joiner cases
6         so that joiner case gets profile updates.
8 2013-09-30  Richard Biener  <rguenther@suse.de>
10         PR tree-optimization/58554
11         * tree-loop-distribution.c (classify_partition): Require unconditionally
12         executed stores for memcpy and memset recognition.
13         (tree_loop_distribution): Calculate dominance info.
15 2013-09-30  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
17         * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
18         (NO_PROFILE_COUNTERS): Likewise.
19         (PROFILE_HOOK): Likewise.
20         (FUNCTION_PROFILER): Likewise.
21         * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
23 2013-09-30  Iain Sandoe  <iain@codesourcery.com>
25         * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
26         calls and defines in TARGET_MACHO conditional.
27         (load_macho_picbase_di): Likewise.
28         (reload_macho_picbase): Likewise.
29         (reload_macho_picbase_si): Likewise.
30         (reload_macho_picbase_di): Likewise.
31         (nonlocal_goto_receiver): Likewise.
33 2013-09-30  Nick Clifton  <nickc@redhat.com>
35         * config/msp430/msp430.c (msp430x_names): New array.  Lists MCUs
36         that use the MSP430X ISA.
37         (msp430_option_override): Scan -mmcu command line option for any
38         MCU name that supports the MSP430X ISA.
39         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
40         -mmcu options which enable the MSP430X ISA.
42 2013-09-30  Richard Biener  <rguenther@suse.de>
44         PR middle-end/58532
45         * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
46         before looking for setjmp-like calls.
48 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
50         PR target/10901
51         * config/darwin-protos.h (machopic_get_function_picbase): New.
52         * config/darwin.c (machopic_get_function_picbase): New.
53         * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
54         label for a new func.  (load_macho_picbase_di): Likewise.
55         (reload_macho_picbase): New expand.
56         (reload_macho_picbase_si): New insn.
57         (reload_macho_picbase_di): New insn.
58         (nonlocal_goto_receiver): New define and split.
59         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
60         (unspecv enum): Add UNSPECV_NLGR.
62 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
64         * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
65         that altivec registers are correctly sized on Darwin.
67 2013-09-29  Iain Sandoe  <iain@codesourcery.com>
69         * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
70         darwin-driver.o): Use COMPILE and POSTCOMPILE.
71         * config/x-darwin (host-darwin.o): Likewise.
72         * config/i386/x-darwin (host-i386-darwin.o): Likewise.
73         * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
74         * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
76 2013-09-29  Uros Bizjak  <ubizjak@gmail.com>
78         * doc/invoke.texi: Fix usage of @tie{} command.
80 2013-09-29  Eric Botcazou  <ebotcazou@adacore.com>
82         * config/sparc/sync.md: Add peephole for consecutive memory barriers.
84 2013-09-28  Jan Hubicka  <jh@suse.cz>
86         * config/i386/x86-tune.def: Add documentation for each of the options;
87         add whitespace.
89 2013-09-28  Jan Hubicka  <jh@suse.cz>
91         * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
92         generic.
93         (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
94         (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
95         (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
96         (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
97         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
99 2013-09-28  Richard Sandiford  <rdsandiford@googlemail.com>
101         * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
102         bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
103         cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
104         cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
105         combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
106         cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
107         df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
108         dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
109         errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
110         fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
111         gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
112         genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
113         genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
114         genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
115         gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
116         gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
117         gimple.h, godump.c, graphite-clast-to-gimple.c,
118         graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
119         graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
120         hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
121         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
122         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
123         ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
124         loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
125         lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
126         mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
127         pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
128         predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
129         profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
130         regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
131         reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
132         sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
133         statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
134         system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
135         tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
136         tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
137         tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
138         tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
139         tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
140         tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
141         tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
142         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
143         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
144         tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
145         tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
146         tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
147         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
148         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
149         tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
150         tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
151         tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
152         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
153         tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
154         tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
155         varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
156         whitespace before "(".
158 2013-09-28  Sandra Loosemore  <sandra@codesourcery.com>
160         * expr.h (extract_bit_field): Remove packedp parameter.
161         * expmed.c (extract_fixed_bit_field): Remove packedp parameter
162         from forward declaration.
163         (store_split_bit_field): Remove packedp arg from calls to
164         extract_fixed_bit_field.
165         (extract_bit_field_1): Remove packedp parameter and packedp
166         argument from recursive calls and calls to extract_fixed_bit_field.
167         (extract_bit_field): Remove packedp parameter and corresponding
168         arg to extract_bit_field_1.
169         (extract_fixed_bit_field): Remove packedp parameter.  Remove code
170         to issue warnings.
171         (extract_split_bit_field): Remove packedp arg from call to
172         extract_fixed_bit_field.
173         * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
174         (copy_blkmode_from_reg): Likewise.
175         (copy_blkmode_to_reg): Likewise.
176         (read_complex_part): Likewise.
177         (store_field): Likewise.
178         (expand_expr_real_1): Likewise.
179         * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
180         to extract_bit_field.
181         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
182         call to extract_bit_field.
183         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
184         call to extract_bit_field.
185         * doc/invoke.texi (Code Gen Options): Remove mention of warnings
186         and special packedp behavior from -fstrict-volatile-bitfields
187         documentation.
189 2013-09-27  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
191         * lra-eliminations.c (init_elim_table): Guard value_p.
193 2013-09-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
195         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
196         DFmode, DImode, and SFmode in the upper VSX registers based on the
197         -mupper-regs-{df,sf} flags.  Fix wu constraint to be ALTIVEC_REGS
198         if -mpower8-vector.  Combine -mvsx-timode handling with the rest
199         of the VSX register handling.
201         * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
202         (f32_sv): Likewise.
203         (zero_extendsidi2_lfiwzx): Add support for loading into the
204         Altivec registers with -mpower8-vector.  Use wu/wv constraints to
205         only do VSX memory options on Altivec registers.
206         (extendsidi2_lfiwax): Likewise.
207         (extendsfdf2_fpr): Likewise.
208         (mov<mode>_hardfloat, SF/SD modes): Likewise.
209         (mov<mode>_hardfloat32, DF/DD modes): Likewise.
210         (mov<mode>_hardfloat64, DF/DD modes): Likewise.
211         (movdi_internal64): Likewise.
213 2013-09-27  Xinliang David Li  <davidxl@google.com>
215         * opts.c (finish_options): Adjust parameters
216         according to vect cost model.
217         (common_handle_option): Set dynamic vect cost
218         model for FDO.
219         targhooks.c (default_add_stmt_cost): Compute stmt cost
220         unconditionally.
221         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
222         Use helper function.
223         * tree-vectorizer.h (unlimited_cost_model): New function.
224         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
225         * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
226         function.
227         (vect_enhance_data_refs_alignment): Ditto.
228         * flag-types.h: New enum.
229         * common/config/i386/i386-common.c (ix86_option_init_struct):
230         No need to initialize vect_cost_model flag.
231         * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
232         unconditionally.
234 2013-09-27  Diego Novillo  <dnovillo@google.com>
236         * gimple.h (enum ssa_mode): Remove.
238 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
240         PR middle-end/58463
241         * gcc.dg/pr58463.c: New test.
243 2013-09-27  Paulo Matos  <pmatos@broadcom.com>
245         * cfgloop.h (number_of_loops): Fix typo in check for null.
247 2013-09-27  Jakub Jelinek  <jakub@redhat.com>
249         PR middle-end/58551
250         * tree-cfg.c (move_sese_region_to_fn): Also move loops that
251         are children of outermost saved_cfun's loop, and set it up to
252         be moved to dest_cfun's outermost loop.  Fix up num_nodes adjustments
253         if loop != loop0 and SESE region contains bbs that belong to loop0.
255 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
257         * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
258         (binary_scale_code_p, get_base_term, get_index_term): New functions.
259         (set_address_segment, set_address_base, set_address_index)
260         (set_address_disp): Accept the argument unconditionally.
261         (baseness): Remove must_be_base_p and must_be_index_p checks.
262         (decompose_normal_address): Classify as much as possible in the
263         main loop.
265 2013-09-27  Richard Sandiford  <rdsandiford@googlemail.com>
267         * cse.c (count_reg_usage): Handle INT_LIST.
268         * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
269         * reginfo.c (reg_scan_mark_refs): Likewise.
270         * reload1.c (eliminate_regs_1): Likewise.
272 2013-09-27  Iain Sandoe  <iain@codesourcery.com>
274         PR middle-end/58547
275         * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
276         signed.
278 2013-09-27  Richard Biener  <rguenther@suse.de>
280         PR tree-optimization/58459
281         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
282         restriction not propagating into loops.
284 2013-09-26  Florian Weimer  <fw@deneb.enyo.de>
286         * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
287         * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
288         * doc/tree-ssa.texi (Walking use-def chains): Delete.
290 2013-09-26  Richard Biener  <rguenther@suse.de>
292         * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
294 2013-09-26  Richard Biener  <rguenther@suse.de>
296         * alias.h (component_uses_parent_alias_set): Rename to ...
297         (component_uses_parent_alias_set_from): ... this.
298         * alias.c (component_uses_parent_alias_set): Rename to ...
299         (component_uses_parent_alias_set_from): ... this and return
300         the desired parent.
301         (reference_alias_ptr_type_1): Use the result from
302         component_uses_parent_alias_set_from instead of stripping
303         components one at a time.
304         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
306 2013-09-26  Andrew MacLeod  <amacleod@redhat.com>
308         * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
309         Move prototypes to...
310         * tree-ssa-ter.h: New File.  Move prototypes here.
311         * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
312         * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
313         * tree-outof-ssa.c (ssa_is_replaceable_p): New.  Refactor common bits
314         from is_replaceable_p.
315         * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
316         (ter_is_replaceable_p): New.  Use new refactored ssa_is_replaceable_p.
317         (process_replaceable): Use ter_is_replaceable_p.
318         (find_replaceable_in_bb): Use ter_is_replaceable_p.
319         * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c.  Use
320         newly refactored ssa_is_replaceable_p.
321         * cfgexpand.c: Include tree-outof-ssa.h.
322         * ssaexpand.h: Delete.
324 2013-09-26  Andrew MacLeod <amacleod@redhat.com>
326         * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
327         (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
328         tree-ssa.c
329         (create_gimple_tmp): Delete.
330         (get_expr_type, build_assign, build_type_cast): Move to...
331         * gimple-builder.c: New File.
332         (get_expr_type): Relocate from gimple.c.
333         (build_assign, build_type_cast): Change to only create ssanames.
334         * gimple.h: Move prototypes to...
335         * gimple-builder.h: New File. Here.
336         * tree-ssa.h: And here.
337         * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
338         count_uses_and_derefs): Relocate from gimple.c.
339         (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
340         * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
341         * tree-ssa-math-opts (execute_cse_reciprocals): Use
342         gimple_replace_ssa_lhs.
343         * asan.c: Include gimple-builder.h.
344         * Makefile.in: Add gimple-builder.o.
346 2013-09-26  Richard Biener  <rguenther@suse.de>
348         * tree-ssa-live.c (var_map_base_init): Handle SSA names with
349         DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
350         (loe_visit_block): Use gcc_checking_assert.
351         * tree-ssa-coalesce.c (create_outofssa_var_map): Use
352         gimple_assign_ssa_name_copy_p.
353         (gimple_can_coalesce_p): Adjust according to the var_map_base_init
354         change.
356 2013-09-26  David Edelsohn  <dje.gcc@gmail.com>
358         * config/rs6000/t-rs6000 (rs6000.o): Remove.
359         (rs6000-c.o): Use COMPILE and POSTCOMPILE.
361 2013-09-26  Richard Biener  <rguenther@suse.de>
363         PR tree-optimization/58539
364         * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
365         the fact that debug statements are not taking part in loop-closed
366         SSA construction.
368 2013-09-26  Nick Clifton  <nickc@redhat.com>
370         * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
371         time warning message.
372         (msp430_print_operand_raw): Delete unused letter parameter.
373         (TARGET_PRINT_OPERAND_ADDRESS): Define.
374         (msp430_print_operand_address): New function.
375         (msp430_print_operand): Move address printing code from here to
376         new function.
377         * config/msp430/msp430.md (movsipsi2): Add comment in generated
378         assembler.
379         (zero_extendpsisi2): Likewise.
380         (extendpsisi2): New pattern.
381         (andneghi3): New pattern.
383 2013-09-26  Yvan Roux  <yvan.roux@linaro.org>
385         * config/aarch64/aarch64.opt (mlra): New option.
386         * config/aarch64/aarch64.c (aarch64_lra_p): New function.
387         (TARGET_LRA_P): Define.
389 2013-09-26  Eric Botcazou  <ebotcazou@adacore.com>
391         * expr.c (expand_assignment): Remove obsolete comment.
393 2013-09-25  Jeff Law  <law@redhat.com>
395         * tree-flow.h (thread_through_all_blocks): Prototype moved into
396         tree-ssa-threadupdate.h.
397         (register_jump_thread): Similarly.
398         * tree-ssa-threadupdate.h: New header file.
399         * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
400         * tree-vrp.c: Likewise.
401         * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
402         (thread_around_empty_blocks): Change type of path vector argument to
403         an edge,type pair from just an edge.  Initialize both elements when
404         appending to a jump threading path.  Tweak references to elements
405         appropriately.
406         (thread_across_edge): Similarly.  Release memory for the elements
407         as needed.
408         * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
409         (dump_jump_thread_path): New function broken out from
410         register_jump_thread.
411         (register_jump_thread): Use dump_jump_thread_path.  Change type of
412         path vector entries.  Search the path for NULL edges and dump
413         the path if one is found.  Tweak the conversion of path to 3-edge
414         form to use the block copy type information embedded in the path.
416 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
418         * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
420 2013-09-25  Yvan Roux  <yvan.roux@linaro.org>
421             Vladimir Makarov  <vmakarov@redhat.com>
423         * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
424         from the least significant bit.
425         (strip_address_mutations): Add bitfield operations handling.
426         (must_be_index_p): Add shifting and rotate operations handling.
427         (set_address_base): Use must_be_base_p predicate.
428         (set_address_index): Use must_be_index_p predicate.
430 2013-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
431             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
432             Sergey Lega  <sergey.s.lega@intel.com>
433             Anna Tikhonova  <anna.tikhonova@intel.com>
434             Ilya Tocar  <ilya.tocar@intel.com>
435             Andrey Turetskiy  <andrey.turetskiy@intel.com>
436             Ilya Verbin  <ilya.verbin@intel.com>
437             Kirill Yukhin  <kirill.yukhin@intel.com>
438             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
440         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
441         Use new names.
442         (ix86_expand_vector_move_misalign): Support new unaligned load and
443         stores and use new names.
444         (CODE_FOR_sse2_storedqu): Rename to ...
445         (CODE_FOR_sse2_storedquv16qi): ... this.
446         (CODE_FOR_sse2_loaddqu): Rename to ...
447         (CODE_FOR_sse2_loaddquv16qi): ... this.
448         (CODE_FOR_avx_loaddqu256): Rename to ...
449         (CODE_FOR_avx_loaddquv32qi): ... this.
450         (CODE_FOR_avx_storedqu256): Rename to ...
451         (CODE_FOR_avx_storedquv32qi): ... this.
452         * config/i386/i386.md (fpint_logic): New.
453         * config/i386/sse.md (VMOVE): Extend for AVX512.
454         (VF): Ditto.
455         (VF_128_256): New.
456         (VF_512): Ditto.
457         (VI_UNALIGNED_LOADSTORE): Ditto.
458         (sse2_avx_avx512f): Ditto.
459         (sse2_avx2): Extend for AVX512.
460         (sse4_1_avx2): Ditto.
461         (avx2_avx512f): New.
462         (sse): Extend for AVX512.
463         (sse2): Ditto.
464         (sse4_1): Ditto.
465         (avxsizesuffix): Ditto.
466         (sseintvecmode): Ditto.
467         (ssePSmode): Ditto.
468         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
469         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
470         (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
471         (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
472         (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
473         (<sse2_avx_avx512f>_storedqu<mode): ... this.
474         (<sse>_movnt<mode>): Replace constraint "x" with "v".
475         (STORENT_MODE): Extend for AVX512.
476         (*absneg<mode>2): Replace constraint "x" with "v".
477         (*mul<mode>3): Ditto.
478         (*ieee_smin<mode>3): Ditto.
479         (*ieee_smax<mode>3): Ditto.
480         (avx_cmp<mode>3): Replace VF with VF_128_256.
481         (*<sse>_maskcmp<mode>3_comm): Ditto.
482         (<sse>_maskcmp<mode>3): Ditto.
483         (<sse>_andnot<mode>3): Extend for AVX512.
484         (<code><mode>3, anylogic): Replace VF with VF_128_256.
485         (<code><mode>3, fpint_logic): New.
486         (*<code><mode>3): Extend for AVX512.
487         (avx512flogicsuff): New.
488         (avx512f_<logic><mode>): Ditto.
489         (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
490         VF_128_256.
491         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
492         (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
493         (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
494         (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
495         (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
496         (xop_vpermil2<mode>3): Ditto.
497         (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
498         (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
499         (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
500         (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
502 2013-09-25  Tom Tromey  <tromey@redhat.com>
504         * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
505         (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
506         (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
507         (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
508         (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
509         (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
510         (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
511         (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
512         (GRAPHITE_HTAB_H): Remove.
514 2013-09-25  Tom Tromey  <tromey@redhat.com>
516         * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
518 2013-09-25  Tom Tromey  <tromey@redhat.com>
520         * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
522 2013-09-25  Tom Tromey  <tromey@redhat.com>
524         * config/i386/t-i386 (i386.o): Remove.
525         (i386-c.o): Use COMPILE and POSTCOMPILE.
527 2013-09-25  Tom Tromey  <tromey@redhat.com>
529         * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
531 2013-09-25  Tom Tromey  <tromey@redhat.com>
533         * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
534         (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
535         (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
536         (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
537         (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
538         (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
539         (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
540         (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
541         (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
542         (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
543         (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
544         (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
545         (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
546         (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
547         (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
548         (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
549         (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
550         (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
551         (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
552         (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
553         (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
554         (tree-ssa-pre.o, tree-ssa-sccvn.o)
555         (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
556         (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
557         (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
558         (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
559         (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
560         (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
561         (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
562         (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
563         (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
564         (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
565         (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
566         (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
567         (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
568         (graphite-clast-to-gimple.o, graphite-dependences.o)
569         (graphite-interchange.o, graphite-poly.o)
570         (graphite-scop-detection.o, graphite-sese-to-poly.o)
571         (graphite-optimize-isl.o, tree-vect-loop.o)
572         (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
573         (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
574         (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
575         (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
576         (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
577         (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
578         (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
579         (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
580         (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
581         (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
582         (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
583         (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
584         (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
585         (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
586         (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
587         (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
588         (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
589         (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
590         (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
591         (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
592         (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
593         (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
594         (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
595         (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
596         (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
597         (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
598         (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
599         (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
600         (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
601         (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
602         (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
603         (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
604         (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
605         (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
606         (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
607         (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
608         (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
609         (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
610         (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
611         (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
612         (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
613         (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
614         (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
615         (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
616         (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
617         (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
618         (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
619         (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
620         (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
621         (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
622         (gcov-dump.o): Remove.
623         (default-c.o): Use COMPILE and POSTCOMPILE.
624         (CFLAGS-gcc.o): New variable.
625         ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
627 2013-09-25  Tom Tromey  <tromey@redhat.com>
629         * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
630         (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
631         (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
632         (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
633         (c-family/c-pragma.o, c-family/c-pretty-print.o)
634         (c-family/c-semantics.o, c-family/c-ada-spec.o)
635         (c-family/array-notation-common.o, c-family/stub-objc.o)
636         (c-family/c-ubsan.o): Remove.
638 2013-09-25  Tom Tromey  <tromey@redhat.com>
640         * Makefile.in (C_TREE_H): Reference c/c-tree.h.
642 2013-09-25  Tom Tromey  <tromey@redhat.com>
644         * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
645         to add -DENABLE_SHARED_LIBGCC.
646         (gcc.o): Don't use subshell.
648 2013-09-25  Tom Tromey  <tromey@redhat.com>
650         * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
651         * configure.ac: Don't invoke AM_PROG_CC_C_O.
652         (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
653         * configure, config.in: Rebuild.
655 2013-09-25  Tom Tromey  <tromey@redhat.com>
657         * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
658         (COMPILE, POSTCOMPILE): New variables.
659         (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
660         (DEPFILES): New variable.
661         Include ".Po" files.
662         * configure.ac: Add checks for dependency checking.
663         * configure, aclocal.m4: Regenerate.
665 2013-09-25  Tom Tromey  <tromey@redhat.com>
667         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
668         ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
670 2013-09-25  Tom Tromey  <tromey@redhat.com>
672         * Makefile.in (generated_files): Add options.h,
673         target-hooks-def.h, insn-opinit.h,
674         common/common-target-hooks-def.h, pass-instances.def,
675         c-family/c-target-hooks-def.h.
677 2013-09-25  Jeff Law  <law@redhat.com>
679         * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
680         than foo[foo.length () - 1] to access last member in a vec.
681         * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
683 2013-09-25  Richard Biener  <rguenther@suse.de>
685         PR middle-end/58521
686         * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
688 2013-09-25  Jan Hubicka  <jh@suse.cz>
690         * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
691         test.
693 2013-09-25  Marek Polacek  <polacek@redhat.com>
695         PR sanitizer/58420
696         * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
697         when determining the type name.
699 2013-09-24  Oleg Endo  <olegendo@gcc.gnu.org>
701         * config/sh/sh.md: Fix formatting.
703 2013-09-24  Xinliang David Li  <davidxl@google.com>
705         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
706         max peel iterations parameter.
707         * param.def: New parameter.
708         * doc/invoke.texi: Document New parameter.
710 2013-09-24  Christophe Lyon  <christophe.lyon@linaro.org>
712         * gimple-pretty-print.c: Various whitespace tweaks.
713         * tree-core.h: Likewise.
714         * tree-pretty-print.c: Likewise.
715         * tree-ssa-alias.c: Likewise.
716         * tree-ssa-copy.c: Likewise.
717         * tree-ssanames.c: Likewise.
718         * tree-ssanames.h: Likewise.
719         * tree-vrp.c: Likewise.
721 2013-09-24  Alan Modra  <amodra@gmail.com>
723         PR middle-end/57134
724         PR middle-end/57586
725         * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
726         for output operands that disallow regs.  Don't use EXPAND_WRITE on
727         inout operands.
729 2013-09-24  Richard Biener  <rguenther@suse.de>
731         PR middle-end/58513
732         * tree.c (reference_alias_ptr_type): Move ...
733         * alias.c (reference_alias_ptr_type): ... here and implement
734         in terms of the new reference_alias_ptr_type_1.
735         (ref_all_alias_ptr_type_p): New helper.
736         (get_deref_alias_set_1): Drop flag_strict_aliasing here,
737         use ref_all_alias_ptr_type_p.
738         (get_deref_alias_set): Add flag_strict_aliasing check here.
739         (reference_alias_ptr_type_1): New function, split out from ...
740         (get_alias_set): ... here.
741         (alias_ptr_types_compatible_p): New function.
742         * alias.h (reference_alias_ptr_type): Declare.
743         (alias_ptr_types_compatible_p): Likewise.
744         * tree.h (reference_alias_ptr_type): Remove.
745         * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
746         to compare MEM_REF alias types.
748 2013-09-24  Richard Biener  <rguenther@suse.de>
750         * tree-vrp.c (vrp_finalize): Check for SSA name presence.
752 2013-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
754         * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
755         reload helper function arrays into a single array reg_addr.
756         (reload_fpr_gpr): Likewise.
757         (reload_gpr_vsx): Likewise.
758         (reload_vsx_gpr): Likewise.
759         (struct rs6000_reg_addr): Likewise.
760         (reg_addr): Likewise.
761         (rs6000_debug_reg_global): Change rs6000_vector_reload,
762         reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
763         (rs6000_init_hard_regno_mode_ok): Likewise.
764         (rs6000_secondary_reload_direct_move): Likewise.
765         (rs6000_secondary_reload): Likewise.
767         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
768         constraints: wu, ww, and wy.  Repurpose wv constraint added during
769         power8 changes.  Put wg constraint in alphabetical order.
771         * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
772         for future work to add ISA 2.07 VSX single precision support.
773         (-mvsx-scalar-double): Change default from -1 to 1, update
774         documentation comment.
775         (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
776         (-mupper-regs-df): New debug switch to control whether DF values
777         can go in the traditional Altivec registers.
778         (-mupper-regs-sf): New debug switch to control whether SF values
779         can go in the traditional Altivec registers.
781         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
782         and wy constraints.
783         (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
784         loop variables.  Rename -mvsx-scalar-memory to -mupper-regs-df.
785         Add new constraints, wu/ww/wy.  Repurpose wv constraint.
786         (rs6000_debug_legitimate_address_p): Print if we are running
787         before, during, or after reload.
788         (rs6000_secondary_reload): Add a comment.
789         (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
791         * config/rs6000/constraints.md (wa constraint): Sort w<x>
792         constraints.  Update documentation string.
793         (wd constraint): Likewise.
794         (wf constraint): Likewise.
795         (wg constraint): Likewise.
796         (wn constraint): Likewise.
797         (ws constraint): Likewise.
798         (wt constraint): Likewise.
799         (wx constraint): Likewise.
800         (wz constraint): Likewise.
801         (wu constraint): New constraint for ISA 2.07 SFmode scalar
802         instructions.
803         (ww constraint): Likewise.
804         (wy constraint): Likewise.
805         (wv constraint): Repurpose ISA 2.07 constraint that we not used in
806         the previous submissions.
807         * doc/md.texi (PowerPC and IBM RS6000): Likewise.
809 2013-09-23  Richard Sandiford  <rdsandiford@googlemail.com>
811         * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
812         (REG_BR_PROB): Say that the probability is stored in an int_list.
813         * reg-notes.def: Update commentary to mention INT_LIST.
814         * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
815         (INT_LIST): New rtx.
816         * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
817         * rtlanal.c (int_reg_note_p): New function.
818         (alloc_reg_note): Assert that the note does not have an int argument.
819         (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
820         * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
821         * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
822         rather than an INSN_LIST.  Handle INT_LIST.
823         * ifcvt.c (cond_exec_process_insns): Take the probability as an int
824         rather than an rtx.  Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
825         (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
826         Manipulate them as ints rather than rtxes.
827         * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
828         * regmove.c (copy_src_to_dest): Likewise.
829         * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
831         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
832         into the cases that need it.
833         * config/arm/arm.c (arm_unwind_emit): Likewise.
835         * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
836         * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
837         * loop-doloop.c (add_test, doloop_modify): Likewise.
838         * loop-unswitch.c (compare_and_jump_seq): Likewise.
839         * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
840         * predict.c (combine_predictions_for_insn): Likewise.
841         * print-rtl.c (print_rtx): Handle INT_LIST.
842         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
843         * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
844         * config/arm/arm.c (emit_unlikely_jump): Likewise.
845         * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
846         (ix86_split_fp_branch, predict_jump): Likewise.
847         * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
848         * config/sh/sh.c (expand_cbranchsi4): Likewise.
849         * config/spu/spu.c (ea_load_store_inline): Likewise.
851         * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
852         value of a REG_BR_PROB note.
853         * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
854         (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
855         * emit-rtl.c (try_split): Likewise.
856         * predict.c (br_prob_note_reliable_p): Likewise.
857         (invert_br_probabilities, combine_predictions_for_insn): Likewise.
858         * reorg.c (mostly_true_jump): Likewise.
859         * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
860         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
861         * config/i386/i386.c (ix86_print_operand): Likewise.
862         * config/ia64/ia64.c (ia64_print_operand): Likewise.
863         * config/mmix/mmix.c (mmix_print_operand): Likewise.
864         * config/rs6000/rs6000.c (output_cbranch): Likewise.
865         * config/s390/s390.c (s390_expand_tbegin): Likewise.
866         * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
867         * config/sparc/sparc.c (output_cbranch): Likewise.
868         * config/spu/spu.c (get_branch_target): Likewise.
869         * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
870         * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
872 2013-09-23  Jan Hubicka  <jh@suse.cz>
874         * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
875         for ipa-devirt.
876         * ipa-utils.h (possible_polymorphic_call_target_p): New function.
877         * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
878         of external calls
879         * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
880         (gimple_fold_call): Dump inconsistent devirtualizations; add
881         sanity check for type based devirtualizations.
882         * ipa-prop.c: Include ipa-utils.h
883         (ipa_intraprocedural_devirtualization): Add sanity check.
884         (try_make_edge_direct_virtual_call): Likewise.
886 2013-09-23  Eric Botcazou  <ebotcazou@adacore.com>
888         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
889         assignment statements.
891 2013-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
893         * gimple-pretty-print.c (dump_ssaname_info): New function.
894         (dump_gimple_phi): Call it.
895         (pp_gimple_stmt_1): Likewise.
896         * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
897         (range_info_def): Declare.
898         * tree-pretty-print.c (pp_double_int): New function.
899         (dump_generic_node): Call it.
900         * tree-pretty-print.h (pp_double_int): Declare.
901         * tree-ssa-alias.c (dump_alias_info): Check pointer type.
902         * tree-ssanames.h (range_info_def): New structure.
903         (value_range_type): Move definition here.
904         (set_range_info, value_range_type, duplicate_ssa_name_range_info):
905         Declare.
906         * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
907         initialization.
908         (set_range_info): New function.
909         (get_range_info): Likewise.
910         (duplicate_ssa_name_range_info): Likewise.
911         (duplicate_ssa_name_fn): Check pointer type and call
912         duplicate_ssa_name_range_info.
913         * tree-ssa-copy.c (fini_copy_prop): Likewise.
914         * tree-vrp.c (value_range_type): Remove definition, now in
915         tree-ssanames.h.
916         (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
917         * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
918         (SSA_NAME_RANGE_INFO): New macro.
920 2013-09-23  Richard Biener  <rguenther@suse.de>
922         PR tree-optimization/58464
923         * tree-ssa-pre.c (phi_trans_lookup): Remove.
924         (phi_trans_add): Change to add conditionally on being not present.
925         (phi_translate_1): Remove recursion detection here.
926         (phi_translate): Pre-seed the cache with NULL to catch
927         recursion here in a more generic way.
928         (bitmap_find_leader): Adjust comment.
929         (get_representative_for): Dump value-numbers.
930         (create_expression_by_pieces): Likewise.
931         (insert_into_preds_of_block): Likewise.
933 2013-09-23  Christian Bruel  <christian.bruel@st.com>
935         PR target/58475
936         * config/sh/sh.md (movsf_ie): Allow fpul_operand.
937         * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
939 2013-09-23  James Greenhalgh  <james.greenhalgh@arm.com>
941         Revert r202780:
942         2013-09-20  Renlin Li  <renlin.li@arm.com>
944         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
945         plus_constant.
946         (aarch64_expand_epilogue): Likewise.
947         (aarch64_legitimize_reload_address): Likewise.
949 2013-09-22  Eric Botcazou  <ebotcazou@adacore.com>
951         * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
952         NULL_TREE before pushing them onto the vector.  Likewise for labels.
954 2013-09-21  Eric Botcazou  <ebotcazou@adacore.com>
956         * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
957         comparison operators when -fno-trapping-math is in effect.
958         * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
959         comparison operators in TFmode and assert that unsupported operators
960         cannot reach here.
961         (ia64_print_operand): Likewise.
963 2013-09-21  Jan Hubicka  <jh@suse.cz>
965         * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
966         (sse_typeless_stores): Enable for core
967         (sse_load0_by_pxor): Likewise.
968         (four_jump_limit): Disable for core.
969         (pad_returns): Likewise.
970         (avoid_vector_decode): Likewise.
971         (fuse_cmp_and_branch): Enable for cores.
972         * i386.c (x86_accumulate_outgoing_args): Disable for cores.
974 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
976         PR middle-end/56791
977         * config/pa/pa.c (pa_option_override): Disable auto increment and
978         decrement instructions until reload is completed.
980         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
981         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
982         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
984 2013-09-20  DJ Delorie  <dj@redhat.com>
985             Nick Clifton  <nickc@redhat.com>
987         * config/rl78/rl78.c: Various whitespace and comment tweaks.
988         (need_to_save): Save bank 0 on interrupts.
989         (characterize_address): Strip far address wrappers.
990         (rl78_as_legitimate_address): Likewise.
991         (transcode_memory_rtx): Likewise.
992         (rl78_peep_movhi_p): Disable this peephole after devirt.
993         (rl78_propogate_register_origins): Forget all origins when a
994         CLOBBER is seen.
995         * config/rl78/rl78-virt.md: Various whitespace tweaks.
996         * config/rl78/rl78-real.md: Various whitespace tweaks.  Additional
997         peephole2's.
998         * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
999         * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
1000         * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
1001         relocating.
1002         * config/rl78/constraints.md: Various whitespace and paren tweaks.
1004 2013-09-20  John David Anglin  <danglin@gcc.gnu.org>
1006         * config/pa/pa.md: In "scc" insn patterns, change output template to
1007         handle const0_rtx in reg_or_0_operand operands.
1009 2013-09-20  Martin Husemann  <martin@NetBSD.org>
1011         PR target/56875
1012         * config/vax/vax.c (vax_output_int_move): Use D format specifier.
1013         * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
1015 2013-09-20  Richard Biener  <rguenther@suse.de>
1017         PR middle-end/58484
1018         * tree-scalar-evolution.c (struct scev_info_str): Shrink by
1019         remembering SSA name version and block index.
1020         (new_scev_info_str): Adjust.
1021         (hash_scev_info): Likewise.  Also hash the block index.
1022         (eq_scev_info): Adjust.
1023         (find_var_scev_info): Likewise.
1024         (struct instantiate_cache_entry): Remove.
1025         (struct instantiate_cache_type): Use a htab to map name, block
1026         to chrec.
1027         (instantiate_cache_type::~instantiate_cache_type): Adjust.
1028         (get_instantiated_value_entry): Likewise.
1029         (hash_idx_scev_info, eq_idx_scev_info): New functions.
1030         (instantiate_scev_name): Adjust.
1032 2013-09-20  Jeff Law  <law@redhat.com>
1034         * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
1036 2013-09-20  Yufeng Zhang  <yufeng.zhang@arm.com>
1038         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
1039         Call aarch64_simd_expand_args to update op[argc].
1041 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
1043         * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
1044         plugin argument.
1046 2013-09-20  Basile Starynkevitch  <basile@starynkevitch.net>
1048         * gengtype.c (file_rules): Added rule for *.cc files.
1049         (get_output_file_with_visibility): Give fatal message when no
1050         rules found.
1052 2013-09-20  Renlin Li  <renlin.li@arm.com>
1054         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
1055         (aarch64_expand_epilogue): Likewise.
1056         (aarch64_legitimize_reload_address): Likewise.
1058 2013-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1060         PR middle-end/57748
1061         * expr.c (expand_assignment): Remove misalignp code path.
1063 2013-09-20  Marek Polacek  <polacek@redhat.com>
1065         PR sanitizer/58413
1066         * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
1067         TYPE_PRECISION.  Add asserts.
1069 2013-09-20  Richard Biener  <rguenther@suse.de>
1071         PR tree-optimization/58453
1072         * tree-loop-distribution.c (distribute_loop): Apply the cost
1073         model for -ftree-loop-distribute-patterns, too.
1075 2013-09-20  Richard Biener  <rguenther@suse.de>
1077         PR middle-end/58473
1078         * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
1079         make type comparison less strict.
1081 2013-09-20  Alan Modra  <amodra@gmail.com>
1083         * configure: Regenerate.
1084         * aclocal.m4: Regenerate.
1086 2013-09-20  Marek Polacek  <polacek@redhat.com>
1088         PR other/58467
1089         * doc/extend.texi: Document that attribute used is meant to be used
1090         on variables with static storage duration.
1092 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
1094         PR tree-optimization/58472
1095         * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
1096         simd_lane_access set inv_p = false.
1097         * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
1098         the simduid magic VAR_DECL.
1100 2013-09-19  Jan Hubicka  <jh@suse.cz>
1102         * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
1104 2013-09-17  Jeff Law  <law@redhat.com>
1106         * tree-ssa-dom.c (record_temporary_equivalences): New function
1107         split out of dom_opt_dom_walker::after_dom_children.
1108         (dom_opt_dom_walker::thread_across_edge): Move common code
1109         in here from dom_opt_dom_walker::after_dom_children.
1110         (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
1112 2013-09-19  Jan Hubicka  <jh@suse.cz>
1114         * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
1115         (TARGET_GENERIC): Use PROCESOR_GENERIC
1116         (enum processor_type): Unify generic32 and 64.
1117         * i386.md (cpu): Likewise.
1118         * x86-tune.def (use_leave): Enable for generic32.
1119         (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
1120         * athlon.md: Change generic64 to generic in all occurences.
1121         * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
1122         (ix86_target_macros_internal): Likewise.
1123         * driver-i386.c (host_detect_local_cpu): Likewise.
1124         * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
1125         to ..
1126         (generic_memcpy, generic_memset, generic_cost): This one.
1127         (generic32_memcpy, generic32_memset, generic32_cost): Remove.
1128         (m_GENERIC32, m_GENERIC64): Remove.
1129         (m_GENERIC): Turn into one flag.
1130         (processor_target): Unify generic tunnings.
1131         (ix86_option_override_internal): Replace generic32/64 by generic.
1132         (ix86_issue_rate): Likewise.
1133         (ix86_adjust_cost): Likewise.
1135 2013-09-19  Jan Hubicka  <jh@suse.cz>
1137         * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
1138         of speculative flag.
1140 2013-09-19  Jakub Jelinek  <jakub@redhat.com>
1142         * omp-low.c (expand_omp_sections): Always pass len - 1 to
1143         GOMP_sections_start, even if !exit_reachable.
1145 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
1147         * lra-constraints.c (need_for_all_save_p): Use macro
1148         HARD_REGNO_CALL_PART_CLOBBERED.
1149         * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
1150         set up pseudo conflict hard regs.
1152 2013-09-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
1154         PR target/58452
1155         * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
1156         operands.
1158 2013-09-18  Vladimir Makarov  <vmakarov@redhat.com>
1160         PR rtl-optimization/58438
1161         * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
1162         * lra-constraints.c (undo_optional_reloads): Keep optional reloads
1163         from previous subpasses.
1165 2013-09-18  Richard Earnshaw  <rearnsha@arm.com>
1167         * arm.c (arm_get_frame_offsets): Validate architecture supports
1168         LDRD/STRD before accepting the tuning preference.
1169         (arm_expand_prologue): Likewise.
1170         (arm_expand_epilogue): Likewise.
1172 2013-09-18  Richard Biener  <rguenther@suse.de>
1174         PR tree-optimization/58417
1175         * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
1176         have chrecs with symbols defined in the loop as operands.
1177         (chrec_fold_multiply): Likewise.
1178         * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
1179         parameters before folding binary operations.
1180         (struct instantiate_cache_entry_hasher): Remove.
1181         (struct instantiate_cache_type): Use a pointer-map.
1182         (instantiate_cache_type::instantiate_cache_type): New function.
1183         (instantiate_cache_type::get): Likewise.
1184         (instantiate_cache_type::set): Likewise.
1185         (instantiate_cache_type::~instantiate_cache_type): Adjust.
1186         (get_instantiated_value_entry): Likewise.
1187         (global_cache): New global.
1188         (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
1189         instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
1190         instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
1191         (instantiate_scev_name): Adjust.
1192         (instantiate_scev): Construct global instead of local cache.
1193         (resolve_mixers): Likewise.
1195 2013-09-18  Daniel Morris  <danielm@ecoscentric.com>
1196             Paolo Carlini  <paolo.carlini@oracle.com>
1198         PR c++/58458
1199         * doc/implement-cxx.texi: Fix references to the C++ standards.
1201 2013-09-18  Jakub Jelinek  <jakub@redhat.com>
1203         * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
1204         * tree-vect-data-refs.c (vect_analyze_data_refs): For
1205         simd_lane_access drs, update also DR_ALIGNED_TO.
1207 2013-09-18  Marek Polacek  <polacek@redhat.com>
1209         PR sanitizer/58411
1210         * doc/extend.texi: Document no_sanitize_undefined attribute.
1211         * builtins.c (fold_builtin_0): Don't sanitize function if it has the
1212         no_sanitize_undefined attribute.
1214 2013-09-18  Nick Clifton  <nickc@redhat.com>
1216         * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
1217         (ASM_DECLARE_FUNCTION_NAME): Define.
1219 2013-09-17  Trevor Saunders  <tsaunders@mozilla.com>
1221         * compare-elim.c (find_comparison_dom_walker): New class
1222         (find_comparisons_in_bb): Rename to
1223         find_comparison_dom_walker::before_dom_children
1224         (find_comparisons): Adjust
1225         * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
1226         adjust.
1227         (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
1228         * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
1229         (init_walk_dominator_tree): Remove declaration.
1230         (fini_walk_dominator_tree): Remove declaration.
1231         * fwprop.c (single_def_use_dom_walker): New class
1232         (single_def_use_enter_block): Convert to
1233         single_def_use_dom_walker::before_dom_children.
1234         (single_def_use_leave_block): Convert to
1235         single_def_use_dom_walker::after_dom_children.
1236         (build_single_def_use_links): Adjust.
1237         * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
1238         class.
1239         (find_candidates_in_block): Convert to
1240         find_candidates_dom_walker::before_dom_children.
1241         (execute_strength_reduction): Adjust.
1242         * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
1243         (sese_dom_walker): New class.
1244         (sese_dom_walker::sese_dom_walker): New constructor.
1245         (sese_dom_walker::~sese_dom_walker): New destructor.
1246         (build_sese_conditions_before): Convert to
1247         sese_dom_walker::before_dom_children.
1248         (build_sese_conditions_after): Convert to
1249         sese_dom_walker::after_dom_children.
1250         (build_poly_scop): Adjust
1251         * tree-into-ssa.c (rewrite_dom_walker): New class
1252         (rewrite_enter_block): Convert to
1253         rewrite_dom_walker::before_dom_children.
1254         (rewrite_leave_block): Convert to
1255         rewrite_dom_walker::after_dom_children.
1256         (rewrite_update_dom_walker): New class.
1257         (rewrite_update_enter_block): Convert to
1258         rewrite_update_dom_walker::before_dom_children.
1259         (rewrite_update_leave_block): Convert to
1260         rewrite_update_dom_walker::after_dom_children.
1261         (rewrite_blocks, rewrite_into_ssa): Adjust.
1262         (mark_def_dom_walker): New class.
1263         (mark_def_dom_walker::mark_def_dom_walker): New constructor.
1264         (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
1265         (mark_def_sites_blocks): Convert to
1266         mark_def_dom_walker::before_dom_children.
1267         (mark_def_site_blocks): Remove.
1268         * tree-ssa-dom.c (dom_opt_dom_walker): New class.
1269         (tree_ssa_dominator_optimize): Adjust.
1270         (dom_thread_across_edge): Convert to method
1271         dom_opt_dom_walker::thread_across_edge.
1272         (dom_opt_enter_block): Convert to member function
1273         dom_opt_dom_walker::before_dom_children.
1274         (dom_opt_leave_block): Convert to member function
1275         dom_opt_dom_walker::after_dom_children.
1276         * tree-ssa-dse.c (dse_dom_walker): New class.
1277         (dse_enter_block): Convert to member function
1278         dse_dom_walker::before_dom_children.
1279         (tree_ssa_dse): Adjust.
1280         * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
1281         (determine_invariantness_stmt): Convert to method
1282         invariantness_dom_walker::before_dom_children.
1283         (determine_invariantness): Remove
1284         (move_computations_dom_walker): New class.
1285         (move_computations_stmt): Convert to method
1286         move_computations_dom_walker::before_dom_children.
1287         (move_computations, tree_ssa_lim): Adjust.
1288         * tree-ssa-phiopt.c (nontrapping_dom_walker): new class
1289         (nt_init_block): Make method
1290         notrappping_dom_walker::before_dom_children.
1291         (nt_fini_block): Make
1292         method nontrapping_dom_walker::after_dom_children.
1293         (get_non_trapping): Adjust.
1294         * tree-ssa-pre.c (eliminate_dom_walker): New class.
1295         (eliminate_bb): Make method eliminate_dom_walker::before_dom_children.
1296         (eliminate_leave_block): Make method.
1297         eliminate_dom_walker::after_dom_children.
1298         (eliminate): Adjust
1299         * tree-ssa-strlen.c (strlen_dom_walker): New class.
1300         (strlen_enter_block): Make method
1301         strlen_dom_walker::before_dom_children.
1302         (strlen_leave_block): Make
1303         method strlen_dom_walker::after_dom_children.
1304         (tree_ssa_strlen): Adjust.
1305         * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
1306         (tree_ssa_uncprop): Adjust.
1307         (uncprop_leave_block): Make method
1308         uncprop_dom_walker::after_dom_children.
1309         (uncprop_leave_block): Make method
1310         uncprop_dom_walker::before_dom_children.
1312 2013-09-18  Bin Cheng  <bin.cheng@arm.com>
1314         * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
1315         branch in same basic block.  Check both src and dest of the move insn.
1317 2013-09-17  Nick Clifton  <nickc@redhat.com>
1319         * config/rl78/rl78-real.md (bf): New pattern.
1320         (bt): New pattern.
1321         * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
1322         (rl78_print_operand): Do not put a # before a %B.
1323         * config/rl78/rl78.opt: Tweak doc strings.
1325 2013-09-17  DJ Delorie  <dj@redhat.com>
1327         * config/rl78/constraints.md (Wcv): Allow up to $r31.
1328         * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
1329         (rl78_option_override): Likewise, if -mallregs.
1330         (is_virtual_register): Likewise.
1331         * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
1332         (REGNO_OK_FOR_BASE_P): Likewise.
1333         * config/rl78/rl78.opt (-mallregs): New.
1335 2013-09-17  Nick Clifton  <nickc@redhat.com>
1337         * config/rl78/rl78.c (need_to_save): Change return type to bool.
1338         For interrupt functions: save all call clobbered registers if the
1339         interrupt handler is not a leaf function.
1340         (rl78_expand_prologue): Always recompute the frame information.
1341         For interrupt functions: only select bank 0 if one of the bank 0
1342         registers is going to be psuhed.
1344 2013-09-17  DJ Delorie  <dj@redhat.com>
1346         * config/rl78/constraints.md: For each W* constraint, rename to C*
1347         and create a W* constraint that checks for an optional ES: prefix
1348         pattern also.
1349         * config/rl78/rl78.md (UNS_ES_ADDR): New.
1350         (es_addr): New.  Used to wrap far addresses.
1351         * config/rl78/rl78-protos.h (rl78_es_addr): New.
1352         (rl78_es_base): New.
1353         * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
1354         wrapped far addresses.
1355         (rl78_print_operand_1): Unwrap far addresses before processing.
1356         (rl78_lo16): Wrap far addresses in unspecs.
1357         (rl78_es_addr): New.
1358         (rl78_es_base): New.
1359         (insn_ok_now): Check for not-yet-wrapped far addresses.
1360         (transcode_memory_rtx): Properly re-wrap far addresses.
1362 2013-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1364         * config/sparc/t-rtems: Add leon3 multilibs.
1366 2013-09-17  Cong Hou  <congh@google.com>
1368         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
1369         when checking the dot production pattern. The type of rhs operand
1370         of multiply is now checked correctly.
1372 2013-09-17  Jeff Law  <law@redhat.com>
1374         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
1375         edge implied equivalences into successor phis.
1376         * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
1377         here from tree-ssa-threadedge.c.
1378         (mark_threaded_blocks): When threading through a joiner, if both
1379         successors of the joiner's clone reach the same block, verify the
1380         PHI arguments are equal.  If not, cancel the jump threading request.
1381         * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
1382         tree-ssa-threadupdate.c
1383         (thread_across_edge): Don't check PHI argument equality when
1384         threading through joiner block here.
1386 2013-09-17  Andrew MacLeod <amacleod@redhat.com>
1388         * tree-flow.h (ssa_undefined_value_p): Remove prototype.
1389         * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
1390         (warn_uninit, warn_uninitialized_vars,
1391         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
1392         Move to tree-ssa-uninit.c.
1393         * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c
1394         (has_undefined_value_p): New.  Pass dependant parts of
1395         ssa_undefined_value_p.
1396         (uninit_undefined_value_p): Use has_undefined_value_p.
1397         (warn_uninit, warn_uninitialized_vars,
1398         execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
1399         Move from tree-ssa.c.
1400         * tree-ssa.h: Adjust prototypes.
1402 2013-09-17  Jan Hubicka  <jh@suse.cz>
1404         PR middle-end/58332
1405         * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
1406         * ipa-inline.c (can_inline_edge_p): Do not downgrade
1407         FUNCTION_NOT_OPTIMIZED.
1408         * ipa-inline-analysis.c (compute_inline_parameters): Function
1409         not optimized is not inlinable unless it is alwaysinline.
1410         (inline_analyze_function): Force calls in not optimized
1411         function not inlinable.
1413 2013-09-17  Jan Hubicka  <jh@suse.cz>
1415         PR middle-end/58329
1416         * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
1417         to return NULL.
1418         * ipa.c (function_and_variable_visibility): Likewise.
1419         * ipa-profile.c (ipa_profile): Likewise.
1421 2013-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1423         PR ipa/58398
1424         * cgraph.c (cgraph_function_body_availability): Check for ifunc
1425         attribute, and don't inline the resolver in this case.
1427 2013-09-17  Teresa Johnson  <tejohnson@google.com>
1429         * coverage.c (get_coverage_counts): Add missing newline.
1431 2013-09-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1433         PR tree-optimization/58088
1434         * fold-const.c (mask_with_trailing_zeros): New function.
1435         (fold_binary_loc): Make sure we don't recurse infinitely
1436         when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
1437         Use mask_with_trailing_zeros where appropriate.
1439 2013-09-17  Yuri Rumyantsev  <ysrumyan@gmail.com>
1441         * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
1442         of 'prev' var to get better distance estimation.
1444 2013-09-17  Eric Botcazou  <ebotcazou@adacore.com>
1446         * tree-inline.h (struct copy_body_data): Add transform_parameter.
1447         * tree-inline.c (is_parameter_of): New predicate.
1448         (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
1449         a parameter has been remapped.
1450         (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
1451         (optimize_inline_calls): Initialize transform_parameter.
1452         (copy_gimple_seq_and_replace_locals): Likewise.
1453         (tree_function_versioning): Likewise.
1454         (maybe_inline_call_in_expr): Likewise.
1456 2013-09-17  Nick Clifton  <nickc@redhat.com>
1458         * config/msp430/msp430-protos.h: Add prototypes for new functions.
1459         * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
1460         interrupt handlers.
1461         (is_attr_func): New function.
1462         (msp430_is_interrupt_func): New function.
1463         (is_naked_func): New function.
1464         (is_reentrant_func): New function.
1465         (is_critical_func): New function.
1466         (msp430_start_function): Add annotations for function attributes.
1467         (msp430_attr): New function.
1468         (msp430_attribute_table): New.
1469         (msp430_function_section): New function.
1470         (TARGET_ASM_FUNCTION_SECTION): Define.
1471         (msp430_builtin): New enum.
1472         (msp430_init_builtins): New function.
1473         (msp430_builtin_devl): New function.
1474         (msp430_expand_builtin): New function.
1475         (TARGET_INIT_BUILTINS): Define.
1476         (TARGET_EXPAND_BUILTINS): Define.
1477         (TARGET_BUILTIN_DECL): Define.
1478         (msp430_expand_prologue): Add support for naked, interrupt,
1479         critical and reentrant functions.
1480         (msp430_expand_epilogue): Likewise.
1481         (msp430_print_operand): Handle 'O' character.
1482         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
1483         NO_TRAMPOLINES.
1484         * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
1485         UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
1486         (pushm): Use a 'n' rather than an 'i' constraint.
1487         (msp_return): Add generation of the interrupt return instruction.
1488         (disable_interrupts): New pattern.
1489         (enable_interrupts): New pattern.
1490         (push_intr_state): New pattern.
1491         (pop_intr_state): New pattern.
1492         (bic_SR): New pattern.
1493         (bis_SR): New pattern.
1494         * doc/extend.texi: Document MSP430 function attributes and builtin
1495         functions.
1497 2013-09-17  Richard Biener  <rguenther@suse.de>
1499         PR tree-optimization/58432
1500         * tree-loop-distribution.c (tree_loop_distribution): Also
1501         scan PHIs for outside loop uses and seed a partition from them.
1503 2013-09-17  Bin Cheng  <bin.cheng@arm.com>
1505         * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
1506         (restructure_reference): Call backtrace_base_for_ref.
1508 2013-09-17  Alan Modra  <amodra@gmail.com>
1510         PR target/57589
1511         * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
1512         patch.
1514 2013-09-16  DJ Delorie  <dj@redhat.com>
1516         * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
1517         vregs location for RL78/G10.
1518         (rl78_expand_prologue): Avoid SEL on G10.
1519         (rl78_expand_epilogue): Likewise.
1520         (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
1521         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
1522         __RL78_G10__ when appropriate.
1523         (ASM_SPEC): Pass -mg10 along to the assembler.
1524         * config/rl78/rl78.md (sel_rb): Disable for G10.
1525         * config/rl78/rl78.opt: Add -mg10 option.
1526         * config/rl78/t-rl78: Add -mg10 multilib.
1528 2013-09-16  Xinliang David Li  <davidxl@google.com>
1530         * tree-if-conv.c (main_tree_if_conversion): Check new flag.
1531         * omp-low.c (omp_max_vf): Ditto.
1532         (expand_omp_simd): Ditto.
1533         * tree-vectorizer.c (vectorize_loops): Ditto.
1534         (gate_vect_slp): Ditto.
1535         (gate_increase_alignment): Ditto.
1536         * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
1537         * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
1538         (gate_tree_vectorize): Name change.
1539         (tree_vectorize): Ditto.
1540         (pass_vectorize::gate): Call new function.
1541         (pass_vectorize::execute): Ditto.
1542         * opts.c: O3 default setting change.
1543         (finish_options): Check new flag.
1544         * doc/invoke.texi: Document new flags.
1545         * common.opt: New flags.
1547 2013-09-16  Andreas Schwab  <schwab@linux-m68k.org>
1549         * doc/tm.texi.in (Cond Exec Macros): Remove node.
1550         (Condition Code): Don't reference it.
1551         * doc/tm.texi: Regenerate.
1553 2013-09-16  Vladimir Makarov  <vmakarov@redhat.com>
1555         PR middle-end/58418
1556         * lra-constraints.c (undo_optional_reloads): Consider all optional
1557         reload even if it did not get a hard reg.
1559 2013-09-16  Teresa Johnson  <tejohnson@google.com>
1561         * dumpfile.c (dump_loc): Remove newline emission.
1562         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
1563         emission to dump_printf_loc calls where missing.
1564         (vect_mark_for_runtime_alias_test): Ditto.
1565         (vect_analyze_data_ref_dependence): Ditto.
1566         (vect_analyze_data_ref_dependences): Ditto.
1567         (vect_slp_analyze_data_ref_dependence): Ditto.
1568         (vect_slp_analyze_data_ref_dependences): Ditto.
1569         (vect_compute_data_ref_alignment): Ditto.
1570         (vect_update_misalignment_for_peel): Ditto.
1571         (vect_verify_datarefs_alignment): Ditto.
1572         (vector_alignment_reachable_p): Ditto.
1573         (vect_get_data_access_cost): Ditto.
1574         (vect_enhance_data_refs_alignment): Ditto.
1575         (vect_find_same_alignment_drs): Ditto.
1576         (vect_analyze_data_refs_alignment): Ditto.
1577         (vect_analyze_group_access): Ditto.
1578         (vect_analyze_data_ref_access): Ditto.
1579         (vect_analyze_data_ref_accesses): Ditto.
1580         (vect_prune_runtime_alias_test_list): Ditto.
1581         (vect_analyze_data_refs): Ditto.
1582         (vect_create_addr_base_for_vector_ref): Ditto.
1583         (vect_create_data_ref_ptr): Ditto.
1584         (vect_grouped_store_supported): Ditto.
1585         (vect_grouped_load_supported): Ditto.
1586         * value-prof.c (check_counter): Ditto.
1587         (check_ic_target): Ditto.
1588         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
1589         (vect_recog_widen_mult_pattern): Ditto.
1590         (vect_recog_widen_sum_pattern): Ditto.
1591         (vect_recog_over_widening_pattern): Ditto.
1592         (vect_recog_widen_shift_pattern): Ditto.
1593         (vect_recog_rotate_pattern): Ditto.
1594         (vect_recog_vector_vector_shift_pattern): Ditto.
1595         (vect_recog_divmod_pattern): Ditto.
1596         (vect_recog_mixed_size_cond_pattern): Ditto.
1597         (vect_recog_bool_pattern): Ditto.
1598         (vect_pattern_recog_1): Ditto.
1599         (vect_pattern_recog): Ditto.
1600         * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
1601         (vect_is_simple_iv_evolution): Ditto.
1602         (vect_analyze_scalar_cycles_1): Ditto.
1603         (vect_get_loop_niters): Ditto.
1604         (vect_analyze_loop_1): Ditto.
1605         (vect_analyze_loop_form): Ditto.
1606         (vect_analyze_loop_operations): Ditto.
1607         (vect_analyze_loop_2): Ditto.
1608         (vect_analyze_loop): Ditto.
1609         (report_vect_op): Ditto.
1610         (vect_is_slp_reduction): Ditto.
1611         (vect_is_simple_reduction_1): Ditto.
1612         (vect_get_known_peeling_cost): Ditto.
1613         (vect_estimate_min_profitable_iters): Ditto.
1614         (vect_model_reduction_cost): Ditto.
1615         (vect_model_induction_cost): Ditto.
1616         (get_initial_def_for_induction): Ditto.
1617         (vect_create_epilog_for_reduction): Ditto.
1618         (vectorizable_reduction): Ditto.
1619         (vectorizable_induction): Ditto.
1620         (vectorizable_live_operation): Ditto.
1621         (vect_loop_kill_debug_uses): Ditto.
1622         (vect_transform_loop): Ditto.
1623         * tree-vect-stmts.c (vect_mark_relevant): Ditto.
1624         (vect_stmt_relevant_p): Ditto.
1625         (process_use): Ditto.
1626         (vect_mark_stmts_to_be_vectorized): Ditto.
1627         (vect_model_simple_cost): Ditto.
1628         (vect_model_promotion_demotion_cost): Ditto.
1629         (vect_model_store_cost): Ditto.
1630         (vect_get_store_cost): Ditto.
1631         (vect_model_load_cost): Ditto.
1632         (vect_get_load_cost): Ditto.
1633         (vect_init_vector_1): Ditto.
1634         (vect_get_vec_def_for_operand): Ditto.
1635         (vect_finish_stmt_generation): Ditto.
1636         (vectorizable_call): Ditto.
1637         (vectorizable_conversion): Ditto.
1638         (vectorizable_assignment): Ditto.
1639         (vectorizable_shift): Ditto.
1640         (vectorizable_operation): Ditto.
1641         (vectorizable_store): Ditto.
1642         (vectorizable_load): Ditto.
1643         (vectorizable_condition): Ditto.
1644         (vect_analyze_stmt): Ditto.
1645         (vect_transform_stmt): Ditto.
1646         (vect_is_simple_use): Ditto.
1647         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
1648         (vect_can_advance_ivs_p): Ditto.
1649         (vect_update_ivs_after_vectorizer): Ditto.
1650         (vect_do_peeling_for_loop_bound): Ditto.
1651         (vect_gen_niters_for_prolog_loop): Ditto.
1652         (vect_update_inits_of_drs): Ditto.
1653         (vect_create_cond_for_alias_checks): Ditto.
1654         * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
1655         (vect_build_slp_tree_1): Ditto.
1656         (vect_supported_load_permutation_p): Ditto.
1657         (vect_analyze_slp_instance): Ditto.
1658         (vect_analyze_slp): Ditto.
1659         (vect_make_slp_decision): Ditto.
1660         (vect_detect_hybrid_slp): Ditto.
1661         (vect_bb_vectorization_profitable_p): Ditto.
1662         (vect_slp_analyze_bb_1): Ditto.
1663         (vect_update_slp_costs_according_to_vf): Ditto.
1664         (vect_get_mask_element): Ditto.
1665         (vect_transform_slp_perm_load): Ditto.
1666         (vect_schedule_slp_instance): Ditto.
1667         (vect_schedule_slp): Ditto.
1668         (vect_slp_transform_bb): Ditto.
1669         * profile.c (read_profile_edge_counts): Ditto.
1670         (compute_branch_probabilities): Ditto.
1671         * coverage.c (get_coverage_counts): Ditto.
1673 2013-09-16  Diego Novillo  <dnovillo@google.com>
1675         * tree-core.h: Add missing comment lines from refactoring of tree.h.
1677 2013-09-16  Jan Hubicka  <jh@suse.cz>
1679         * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
1680         abstract functions; for static functions check the presence of body.
1682 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
1684         * config/aarch64/aarch64-simd-builtins.def (fma): New.
1685         * config/aarch64/aarch64-simd.md
1686         (aarch64_mla_elt<mode>): New.
1687         (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
1688         (aarch64_mls_elt<mode>): Likewise.
1689         (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
1690         (aarch64_fma4_elt<mode>): Likewise.
1691         (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
1692         (aarch64_fma4_elt_to_128v2df): Likewise.
1693         (aarch64_fma4_elt_to_64df): Likewise.
1694         (fnma<mode>4): Likewise.
1695         (aarch64_fnma4_elt<mode>): Likewise.
1696         (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
1697         (aarch64_fnma4_elt_to_128v2df): Likewise.
1698         (aarch64_fnma4_elt_to_64df): Likewise.
1699         * config/aarch64/iterators.md (VDQSF): New.
1700         * config/aarch64/arm_neon.h
1701         (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
1702         (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
1704 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
1706         * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
1707         (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
1708         (aarch64_mul3_elt_to_128df): Likewise.
1709         (aarch64_mul3_elt_to_64v2df): Likewise.
1710         * config/aarch64/iterators.md (VEL): Also handle DFmode.
1711         (VMUL): New.
1712         (VMUL_CHANGE_NLANES) Likewise.
1713         (h_con): Likewise.
1714         (f): Likewise.
1715         * config/aarch64/arm_neon.h
1716         (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
1718 2013-09-16  James Greenhalgh  <james.greenhalgh@arm.com>
1720         * config/aarch64/arm_neon.h
1721         (vcvtx_high_f32_f64): Fix parameters.
1723 2013-09-16  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1724             Uros Bizjak  <ubizjak@gmail.com>
1726         * config/alpha.c: Include tree-ssanames.h.
1728 2013-09-16  Richard Biener  <rguenther@suse.de>
1730         * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
1731         (dot_rdg_1): Handle control_dd.
1732         (create_edge_for_control_dependence): New function.
1733         (create_rdg_edges): Add control dependences if asked for.
1734         (build_rdg): Likewise.
1735         (generate_loops_for_partition): If there are not necessary
1736         control stmts remove all their dependencies.
1737         (collect_condition_stmts, rdg_flag_loop_exits): Remove.
1738         (distribute_loop): Pass on control dependences.
1739         (tree_loop_distribution): Compute control dependences and remove
1740         restriction on number of loop nodes.
1742 2013-09-16  Jakub Jelinek  <jakub@redhat.com>
1744         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
1745         for internal calls.
1747 2013-09-16  Richard Sandiford  <rdsandiford@googlemail.com>
1749         * cse.c (try_const_anchors): Punt on CC modes.
1751 2013-09-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1753         * config/vax/constraints.md (T): Add missing CONSTANT_P check.
1755 2013-09-14  John David Anglin  <danglin@gcc.gnu.org>
1757         PR target/58382
1758         * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
1759         calls to word_mode.
1761 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
1763         PR target/48094
1764         * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
1765         seen.
1766         (darwin_objc1_section): Likewise.
1767         (darwin_file_end): Emit Image Info section when required.
1769 2013-09-14  Jan Hubicka  <jh@suse.cz>
1771         * tree-into-ssa.c (gate_into_ssa): New.
1772         (pass_data_build_ssa): Use it.
1773         * cgraph.h (expand_thunk): Update prototype.
1774         * cgraphunit.c (analyze_function): Expand thunks early.
1775         (expand_thunk): Fix DECL_CONTEXT of reust_decl;
1776         build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
1777         set lowered flag; do not add new function.
1778         (assemble_thunks_and_aliases): Update.
1779         * tree-ssa.c (gate_init_datastructures): New gate.
1780         (pass_data_init_datastructures): Use it.
1782 2013-09-14  Iain Sandoe  <iain@codesourcery.com>
1784         PR target/58269
1785         * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
1786         xmm register set described in the psABI.
1788 2013-09-13  Evgeny Gavrin <e.gavrin@samsung.com>
1790         * dwarf2out.c (should_emit_struct_debug): Add check
1791         for type_decl variable is not NULL.
1793 2013-09-13  Jacek Caban  <jacek@codeweavers.com>
1795         * config.gcc: Use new winnt-c.c target hooks
1796         * config/t-winnt: New file
1797         * config/winnt-c.c: New file
1798         * doc/tm.texi.in: Document new hook
1799         * doc/tm.texi: Regenerated
1801 2013-09-13  Jan Hubicka  <jh@suse.cz>
1803         PR middle-end/58094
1804         * ipa-inline.c (check_callers): New function.
1805         (check_caller_edge): Remove.
1806         (want_inline_function_to_all_callers_p): Also permit alises that are
1807         called dirrectly.
1808         (inline_to_all_callers): Terminate the walk when devirtualization
1809         introduce new calls.
1811 2013-09-13  Jan Hubicka  <jh@suse.cz>
1813         * ipa-inline-analysis.c (struct growth_data): Add node.
1814         (do_estimate_growth_1): Fix detection of recursion.
1816 2013-09-13  Jakub Jelinek  <jakub@redhat.com>
1818         PR tree-optimization/58392
1819         * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
1820         to avoid shadowing of outer loop variable.  If
1821         saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
1822         replace_by_duplicate_decl simduid of loops that have it set and
1823         set dest_cfun->has_simduid_loops and/or
1824         dest_cfun->has_force_vect_loops.
1825         * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
1826         instead of maybe_lookup_decl.
1827         * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
1828         Use id->blocks_to_copy instead of blocks_to_copy.  Adjust recursive
1829         call.  Copy over force_vect and copy and remap simduid.  Set
1830         cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
1831         (copy_cfg_body): Remove blocks_to_copy argument.  Use
1832         id->blocks_to_copy instead of blocks_to_copy.  Adjust copy_loops
1833         caller.  Don't set cfun->has_simduid_loops and/or
1834         cfun->has_force_vect_loops here.
1835         (copy_body): Remove blocks_to_copy argument.  Adjust copy_cfg_body
1836         caller.
1837         (expand_call_inline, tree_function_versioning): Adjust copy_body
1838         callers.
1840 2013-09-13  Martin Jambor  <mjambor@suse.cz>
1842         PR bootstrap/58388
1843         * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
1844         the assert if the edge was a speculative one.
1846 2013-09-13  Richard Biener  <rguenther@suse.de>
1848         * tree-data-ref.h (known_dependences_p): Move here ...
1849         * tree-loop-distribution.c (known_dependences_p): ... from here.
1850         (dump_rdg_component, debug_rdg_component): Remove.
1851         (dump_rdg): Adjust.
1852         (generate_loops_for_partition): Use gimple_uid instead of
1853         relying on matching stmt visit order.
1854         (rdg_build_partitions): Take starting stmt vector.
1855         (ldist_gen): Merge into ...
1856         (distribute_loop): ... this function.  Do not compute starting
1857         vertices vector.
1858         * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
1860 2013-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1862         * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
1863         Set type attribute correctly. Set predicable_short_it attribute.
1864         (cmpsi_shiftsi): Remove %? from output template.
1866 2013-09-13  Richard Biener  <rguenther@suse.de>
1868         * tree-loop-distribution.c (struct rdg_component,
1869         rdg_defs_used_in_other_loops_p, free_rdg_components,
1870         rdg_build_components): Remove.
1871         (stmts_from_loop): Do not record virtual PHIs.
1872         (generate_loops_for_partition): Skip virtual PHIs.
1873         (build_rdg_partition_for_component): Rename to ...
1874         (build_rdg_partition_for_vertex): ... this and adjust.
1875         (rdg_build_partitions): Take a vector of starting vertices
1876         instead of components.  Remove unnecessary leftover handling.
1877         (ldist_gen): Do not build components or record other stores.
1878         (distribute_loop): Do not distribute loops containing stmts
1879         with side-effects.
1881 2013-09-13  Christian Bruel  <christian.bruel@st.com>
1883         PR target/58314
1884         * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
1886 2013-09-13  Kai Tietz  <ktietz@redhat.com>
1888         * config.gcc: Separate cases for mingw and cygwin targets,
1889         and add 64-bit cygwin target case.
1891         * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
1892         dll-export inline-functions.
1893         * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
1896 2013-09-13  Jeff Law  <law@redhat.com>
1898         PR middle-end/58387
1899         Revert:
1900         2013-09-06  Jeff Law  <law@redhat.com>
1902         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
1903         edge implied equivalences into successor phis.
1905 2013-09-12  DJ Delorie  <dj@redhat.com>
1907         * config/rl78/rl78-virt.md: Change from | to \; for asm line
1908         separators.
1910 2013-09-12  Brooks Moses  <bmoses@google.com>
1912         PR driver/42955
1913         * Makefile.in: Do not install driver binaries in $(target)/bin.
1915 2013-09-12  DJ Delorie  <dj@redhat.com>
1917         * config/rl78/rl78.opt (mrelax): New.
1918         * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
1919         * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
1921         * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
1922         between SP and FP.
1923         (rl78_expand_epilogue): Likewise.
1925 2013-09-12  Vladimir Makarov  <vmakarov@redhat.com>
1927         PR middle-end/58335
1928         * lra-eliminations.c (remove_reg_equal_offset_note): New.
1929         (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
1930         pointer elimination with using remove_reg_equal_offset_note.
1932 2013-09-12  DJ Delorie  <dj@redhat.com>
1934         * config/msp430/: New port.
1935         * config.gcc (msp430): Added.
1936         * doc/invoke.texi: Document MSP430 options.
1937         * doc/install.texi: Document msp430-elf
1938         * doc/md.texi: Document msp430-elf
1939         * doc/contrib.texi: Document msp430-elf
1941         * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
1942         PSImode.
1944 2013-09-12  Martin Jambor  <mjambor@suse.cz>
1946         PR ipa/58389
1947         * ipa-prop.c (remove_described_reference): Give up if the edge in the
1948         reference descriptor is NULL.
1949         (ipa_edge_removal_hook): If owning a reference descriptor, set its
1950         edge to NULL.
1952 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
1954         * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
1955         (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
1956         num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
1957         * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
1958         make_temp_ssa_name): move to tree-ssanames.h
1959         * tree-ssa-alias.h: Move prototype.
1960         * tree-ssa.h: Include tree-ssanames.h.
1961         * tree-ssanames.c (FREE_SSANAMES): Move to here.
1962         * tree-ssanames.h: New.  Move items from tree-flow*.h
1963         * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
1965 2013-09-12  Richard Biener  <rguenther@suse.de>
1967         PR tree-optimization/58404
1968         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
1969         propagate non-invariant addresses into dereferences wrapped
1970         in component references.
1972 2013-09-12  Richard Biener  <rguenther@suse.de>
1974         PR tree-optimization/58402
1975         * passes.def: Move pass_late_warn_uninitialized later.
1977 2013-09-12  Andrew MacLeod  <amacleod@redhat.com>
1979         * tree-ssa.h: New.  Move content from tree-flow.h and
1980         tree-flow-inline.h.
1981         * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
1982         Move prototypes belonging to tree-ssa.c.
1983         * tree-flow-inline.h (redirect_edge_var_map_def,
1984         redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
1985         tree-ssa.h.
1986         * gimple.h: Adjust prototypes.
1987         * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
1988         to...
1989         * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
1990         * tree.h: Move prototype to tree-ssa.h.
1991         * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
1992         * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
1993         * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
1994         cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
1995         cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
1996         ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
1997         gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
1998         gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
1999         graphite-blocking.c, graphite-clast-to-gimple.c,
2000         graphite-dependences.c, graphite-interchange.c,
2001         graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
2002         graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
2003         ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
2004         ipa-reference.c, ipa-split.c, ipa-utils.c,
2005         loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
2006         lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
2007         passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
2008         tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
2009         tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
2010         tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
2011         tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
2012         tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
2013         tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
2014         tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
2015         tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
2016         tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
2017         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
2018         tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
2019         value-prof.c, var-tracking.c,
2020         varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
2022 2013-09-12  Richard Biener  <rguenther@suse.de>
2024         PR tree-optimization/58396
2025         * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
2026         (build_rdg): Take a loop-nest parameter, fix memleaks.
2027         (distribute_loop): Compute loop-nest here and pass it to build_rdg.
2029 2013-09-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
2031         * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
2032         for SLM.
2034 2013-09-12  Cameron McInally  <cameron.mcinally@nyu.edu>
2036         * doc/extend.texi: Fix errors in x86 FMA builtin naming.
2037         The FMA instruction names should have a 'v' prefix.
2039 2013-09-12  Richard Biener  <rguenther@suse.de>
2041         * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
2042         (dot_rdg): Use popen instead of system in optional code.
2043         (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
2044         (already_processed_vertex_p): Adjust.
2045         (has_anti_or_output_dependence, predecessor_has_mem_write,
2046         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
2047         rdg_flag_uses): Remove.
2048         (rdg_flag_vertex): Simplify.
2049         (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
2050         remove recursion.
2051         (build_rdg_partition_for_component): Process the first vertex
2052         of a component only.
2053         (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
2055 2013-09-12  Alan Modra  <amodra@gmail.com>
2057         * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
2059 2013-09-11  DJ Delorie  <dj@redhat.com>
2060             Nick Clifton  <nickc@redhat.com>
2062         * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
2063         (rl78_stack_based_mem): New.
2064         * config/rl78/constraints.md (Iv08): New.
2065         (Iv16): New.
2066         (Iv24): New.
2067         (Is09): New.
2068         (Is17): New.
2069         (Is25): New.
2070         (ISsi): New.
2071         (IShi): New.
2072         (ISqi): New.
2073         * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
2074         (movhi): Likewise.
2075         (movsi): Change from expand to insn-and-split.
2076         (ashrsi3): Clobber AX.
2077         (lshrsi3): New.
2078         (ashlsi3): New.
2079         (cbranchsi4): New.
2080         * config/rl78/rl78.md (CC_REG): Fix.
2081         (addsi3): Allow memory and immediate operands.
2082         (addsi3_internal): Split into...
2083         (addsi3_internal_virt): ...new, and ...
2084         (addsi3_internal_real): ...new.
2085         (subsi): New.
2086         (subsi3_internal_virt): New.
2087         (subsi3_internal_real): New.
2088         (mulsi3): Add memory operand.
2089         (mulsi3_rl78): Likewise.
2090         (mulsi3_g13): Likewise.
2091         * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
2092         (cbranchqi4_real): Add more constraint options.
2093         (cbranchhi4_real): Expand pattern.
2094         (cbranchhi4_real_signed): New.
2095         (cbranchhi4_real_inverted): New.
2096         (cbranchsi4_real_lt): New.
2097         (cbranchsi4_real_ge): New.
2098         (cbranchsi4_real_signed): New.
2099         (cbranchsi4_real): New.
2100         (peephole2): New.
2101         * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
2102         constant shifts.
2103         (lshrsi3_virt): Likewise.
2104         (ashlsi3_virt): Likewise.
2105         (cbranchqi4_virt_signed): New.
2106         (cbranchhi4_virt_signed): New.
2107         (cbranchsi4_virt): New.
2108         * config/rl78/rl78.c: Whitespace fixes throughout.
2109         (move_elim_pass): New.
2110         (pass_data_rl78_move_elim): New.
2111         (pass_rl78_move_elim): New.
2112         (make_pass_rl78_move_elim): New.
2113         (rl78_devirt_info): Run devirt earlier.
2114         (rl78_move_elim_info): New.
2115         (rl78_asm_file_start): Register it.
2116         (rl78_split_movsi): New.
2117         (rl78_as_legitimate_address): Allow virtual base registers when
2118         appropriate.
2119         (rl78_addr_space_convert): Remove spurious debug stuff.
2120         (rl78_print_operand_1): Add z,s,S,r,E modifiers.
2121         (rl78_print_operand): More cases for not printing '#'.
2122         (rl78_expand_compare): Remove most of the logic.
2123         (content_memory): New.
2124         (clear_content_memory): New.
2125         (get_content_index): New.
2126         (get_content_name): New.
2127         (display_content_memory): New.
2128         (update_content): New.
2129         (record_content): New.
2130         (already_contains): New.
2131         (insn_ok_now): Re-recog insns with virtual registers.
2132         (add_postponed_content_update): New.
2133         (process_postponed_content_update): New.
2134         (gen_and_emit_move): New.
2135         (transcode_memory_rtx): Record new location content.
2136         Use gen_and_emit_move.
2137         (force_into_acc): New.
2138         (move_to_acc): Use gen_and_emit_move.
2139         (move_from_acc): Likewise.
2140         (move_acc_to_reg): Likewise.
2141         (move_to_x): Likewise.
2142         (move_to_hl): Likewise.
2143         (move_to_de): Likewise.
2144         (rl78_alloc_physical_registers_op1): Record location content.
2145         (has_constraint): New.
2146         (rl78_alloc_physical_registers_op2): Record location content.
2147         Optimize use of HL.
2148         (rl78_alloc_physical_registers_ro1): Likewise.
2149         (rl78_alloc_physical_registers_cmp): Likewise.
2150         (rl78_alloc_physical_registers_umul): Likewise.
2151         (rl78_alloc_address_registers_macax): New.
2152         (rl78_alloc_physical_registers): Initialize and set location
2153         content memory as needed.
2154         (rl78_reorg): Make sure split2 is called.
2155         (rl78_rtx_costs): New.
2157 2013-09-11  Richard Sandiford  <rdsandiford@googlemail.com>
2159         * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
2160         for (not (neg ...)) and (neg (not ...)) cases.
2162 2013-09-11  Richard Biener  <rguenther@suse.de>
2164         PR middle-end/58377
2165         * passes.def: Split critical edges before late uninit warning passes.
2166         * tree-cfg.c (pass_split_crit_edges): Implement clone method.
2168 2013-09-11  Jakub Jelinek  <jakub@redhat.com>
2170         PR tree-optimization/58385
2171         * fold-const.c (build_range_check): If both low and high are NULL,
2172         use omit_one_operand_loc to preserve exp side-effects.
2174 2013-09-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2176         * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
2178 2013-09-11  Richard Biener  <rguenther@suse.de>
2180         * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
2181         dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
2182         dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
2183         create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
2184         stmts_from_loop, known_dependences_p, build_empty_rdg,
2185         build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
2186         * tree-loop-distribution.c: ... here.
2187         * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
2188         RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
2189         RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
2190         struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
2191         * tree-loop-distribution.c: ... here.
2192         * tree-loop-distribution.c: Include gimple-pretty-print.h.
2193         (struct partition_s): Add loops member.
2194         (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
2195         rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
2196         build_rdg_partition_for_component, rdg_build_partitions): Adjust.
2198 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2199             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2200             Sergey Lega  <sergey.s.lega@intel.com>
2201             Anna Tikhonova  <anna.tikhonova@intel.com>
2202             Ilya Tocar  <ilya.tocar@intel.com>
2203             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2204             Ilya Verbin  <ilya.verbin@intel.com>
2205             Kirill Yukhin  <kirill.yukhin@intel.com>
2206             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2208         * config/i386/constraints.md (k): New.
2209         (Yk): Ditto.
2210         * config/i386/i386.c (const regclass_map): Add new mask registers.
2211         (dbx_register_map): Ditto.
2212         (dbx64_register_map): Ditto.
2213         (svr4_dbx_register_map): Ditto.
2214         (ix86_conditional_register_usage): Squash mask registers if AVX512F is
2215         disabled.
2216         (ix86_preferred_reload_class): Disable constants for mask registers.
2217         (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
2218         (ix86_hard_regno_mode_ok): Support new mask registers.
2219         (x86_order_regs_for_local_alloc): Ditto.
2220         * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
2221         (FIXED_REGISTERS): Add new mask registers.
2222         (CALL_USED_REGISTERS): Ditto.
2223         (REG_ALLOC_ORDER): Ditto.
2224         (VALID_MASK_REG_MODE): New.
2225         (FIRST_MASK_REG): Ditto.
2226         (LAST_MASK_REG): Ditto.
2227         (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
2228         (MAYBE_MASK_CLASS_P): New.
2229         (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
2230         (REG_CLASS_CONTENTS): Ditto.
2231         (MASK_REGNO_P): New.
2232         (ANY_MASK_REG_P): Ditto.
2233         (HI_REGISTER_NAMES): Add new mask registers.
2234         * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
2235         MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
2236         mask registers.
2237         (attribute "type"): Add mskmov, msklog.
2238         (attribute "length_immediate"): Support them.
2239         (attribute "memory"): Ditto.
2240         (attribute "prefix_0f"): Ditto.
2241         (*movhi_internal): Support new mask registers.
2242         (*movqi_internal): Ditto.
2243         (define_split): Split out clobber pattern is a logic
2244         insn on mask registers.
2245         (*k<logic><mode>): New.
2246         (*andhi_1): Extend to support mask regs.
2247         (*andqi_1): Extend to support mask regs.
2248         (kandn<mode>): New.
2249         (define_split): Split and-not to and and not if operands
2250         are not mask regs.
2251         (*<code><mode>_1): Separate HI mode to new pattern...
2252         (*<code>hi_1): This.
2253         (*<code>qi_1): Extend to support mask regs.
2254         (kxnor<mode>): New.
2255         (kortestzhi): Ditto.
2256         (kortestchi): Ditto.
2257         (kunpckhi): Ditto.
2258         (*one_cmpl<mode>2_1): Remove HImode and handle it...
2259         (*one_cmplhi2_1): ...Here, now with mask registers support.
2260         (*one_cmplqi2_1): Support new mask registers.
2261         (HI/QImode arithmetics splitter): Don't split if mask registers
2262         are used.
2263         (HI/QImode not splitter): Ditto.
2264         * config/i386/predicated.md (mask_reg_operand): New.
2265         (general_reg_operand): Ditto.
2267 2013-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2269         * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
2270         * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
2272 2013-09-10  Jeff Law  <law@redhat.com>
2274         PR tree-optimization/58380
2275         * tree-ssa-threadupdate.c (thread_block): Recognize another case
2276         of threading through a buried loop header.
2278         * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
2279         return value for single successor case.
2281 2013-09-10  Jan Hubicka  <jh@suse.cz>
2283         * ipa-devirt.c (ipa_devirt): Enable with LTO.
2285 2013-09-10  Richard Earnshaw  <rearnsha@arm.com>
2287         PR target/58361
2288         * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
2289         support conditional execution.
2290         (combine_vcvt_f64_<FCVTI32typename>): Likewise.
2292 2013-09-10  Vladimir Makarov  <vmakarov@redhat.com>
2294         * lra.c (lra): Clear lra_optional_reload_pseudos before every
2295         constraint pass.
2296         * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
2297         Check destination too to check move insn.
2298         (undo_optional_reloads): Add check that the original peudo did not
2299         changed its allocation and the optional reload was inherited on last
2300         inheritance pass.  Break loop after deciding to keep optional reload.
2301         (lra_undo_inheritance): Add check that inherited pseudo still in
2302         memory.
2304 2013-09-10  James Greenhalgh  <james.greenhalgh@arm.com>
2306         * config/aarch64/aarch64.md (generic_sched): New.
2307         * config/aarch64/aarch64-generic.md (load): Make conditional
2308         on generic_sched attribute.
2309         (nonload): Likewise.
2311 2013-09-10  Jan Hubicka  <jh@suse.cz>
2313         * lto-cgraph.c: Include ipa-utils.h.
2314         (compute_ltrans_boundary): Also add possible targets into the boundary.
2316 2013-09-10  Jan Hubicka  <jh@suse.cz>
2318         * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
2319         VAR_DECL of vtable rather than full expression.
2321 2013-09-10  Jan Hubicka  <jh@suse.cz>
2322             Paolo Carlini  <paolo.carlini@oracle.com>
2324         * cgraphunit.c (analyze_functions): Save input_location, set it
2325         to UNKNOWN_LOCATION and restore it at the end.
2327 2013-09-10  Martin Jambor  <mjambor@suse.cz>
2329         * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
2330         represented by a thunk.
2332 2013-09-10  Jeff Law  <law@redhat.com>
2334         PR tree-optimization/58343
2335         * tree-ssa-threadupdate.c (thread_block): Identify and disable
2336         jump threading requests through loop headers buried in the middle
2337         of a jump threading path.
2339         * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
2340         in return value/type.
2342 2013-09-10  Jakub Jelinek  <jakub@redhat.com>
2344         PR rtl-optimization/58365
2345         * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
2346         resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
2347         it differs.
2349 2013-09-10  Richard Biener  <rguenther@suse.de>
2351         * tree-data-ref.h (build_rdg): Drop all parameters but loop.
2352         * tree-data-ref.c (create_rdg_vertices): Collect all data
2353         references, signal failure to the caller, use data-ref API.
2354         (build_rdg): Compute data references only once.  Maintain lifetime
2355         of data references and data dependences from within RDG.
2356         (free_rdg): Free dependence relations.
2357         * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
2358         inventing extra dependences.
2359         (distribute_loop): Update for RDG API changes.
2361 2013-09-10  Kai Tietz  <ktietz@redhat.com>
2363         * doc/invoke.texi (fms-extensions): Document changed
2364         behavior for ms-abi targets.
2365         * config/i386/i386.c (ix86_option_override_internal):
2366         Set default value of option -fms-extension for ms-abi targets.
2368 2013-09-10  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
2370         * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
2372 2013-09-10  Alan Modra  <amodra@gmail.com>
2374         PR target/58330
2375         * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
2377 2013-09-10  Alan Modra  <amodra@gmail.com>
2379         * config/rs6000/predicates.md (add_cint_operand): New.
2380         (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
2381         * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
2382         using add_cint_operand.
2383         (largetoc_high_plus_aix): Likewise.
2385 2013-09-09  Jakub Jelinek  <jakub@redhat.com>
2387         PR tree-optimization/58364
2388         * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
2389         BOOLEAN_TYPE, only invert in_p and continue with arg0 if
2390         the current range can't be an unconditional true or false.
2392 2013-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
2394         * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
2396 2013-09-09  Uros Bizjak  <ubizjak@gmail.com>
2398         * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
2400 2013-09-09  Paolo Carlini  <paolo.carlini@oracle.com>
2402         PR c++/43452
2403         * doc/invoke.texi (-Wdelete-incomplete): Document it.
2405 2013-09-09  Ian Bolton  <ian.bolton@arm.com>
2407         * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
2408         NO_REGS for immediate that can't be moved directly into FP_REGS.
2410 2013-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2412         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
2413         comparison with negated operand.
2414         * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
2415         RTL form.
2417 2013-09-09  Richard Biener  <rguenther@suse.de>
2419         PR middle-end/58326
2420         * cfgloopmanip.c (fix_bb_placements): When fixing the placement
2421         of a subloop record all its block as affecting loop-closed SSA form.
2423 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
2425         * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
2426         of an rtx/bitpos pair.
2427         (store_fixed_bit_field): Update accordingly.
2429 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
2431         * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
2432         GEN_INT.
2433         * builtins.c (expand_errno_check): Likewise.
2434         * dwarf2cfi.c (init_return_column_size): Likewise.
2435         * except.c (sjlj_mark_call_sites): Likewise.
2436         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
2437         * lra-constraints.c (emit_inc): Likewise.
2438         * ree.c (combine_set_extension): Likewise.
2439         * regmove.c (fixup_match_2): Likewise.
2440         * reload1.c (inc_for_reload): Likewise.
2442 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
2444         * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
2445         (force_to_mode, simplify_shift_const_1, simplify_comparison):
2446         Use gen_int_mode with the mode of the associated simplify_* call.
2447         * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
2448         * expmed.c (expand_shift_1): Likewise.
2449         * function.c (instantiate_virtual_regs_in_insn): Likewise.
2450         * loop-iv.c (iv_number_of_iterations): Likewise.
2451         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
2452         * simplify-rtx.c (simplify_binary_operation_1): Likewise.
2454 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
2456         * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
2457         of the associated expand_* call.
2458         (asan_emit_stack_protection): Likewise.
2459         * builtins.c (round_trampoline_addr): Likewise.
2460         * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
2461         * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
2462         (emit_store_flag): Likewise.
2463         * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
2464         (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
2465         Likewise.
2466         * function.c (instantiate_virtual_regs_in_insn): Likewise.
2467         * ifcvt.c (noce_try_store_flag_constants): Likewise.
2468         * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
2469         * modulo-sched.c (generate_prolog_epilog): Likewise.
2470         * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
2471         (expand_ctz, expand_ffs, expand_unop): Likewise.
2473 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
2475         * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
2476         of the associated gen_rtx_* call.
2477         * caller-save.c (init_caller_save): Likewise.
2478         * combine.c (find_split_point, make_extraction): Likewise.
2479         (make_compound_operation): Likewise.
2480         * dwarf2out.c (mem_loc_descriptor): Likewise.
2481         * explow.c (plus_constant, probe_stack_range): Likewise.
2482         * expmed.c (expand_mult_const): Likewise.
2483         * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
2484         * reload1.c (init_reload): Likewise.
2485         * valtrack.c (cleanup_auto_inc_dec): Likewise.
2486         * var-tracking.c (adjust_mems): Likewise.
2487         * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
2488         rather than gen_rtx_fmt_ee.
2490 2013-09-09  Jan Hubicka  <jh@suse.cz>
2492         PR middle-end/58294
2493         * value-prof.c (gimple_ic): Copy also abnormal edges.
2495 2013-09-09  Richard Sandiford  <rdsandiford@googlemail.com>
2497         * asan.c (asan_shadow_cst): Use gen_int_mode.
2499 2013-09-08  Jan Hubicka  <jh@suse.cz>
2501         * ipa-profile.c: Add toplevel comment.
2502         (ipa_propagate_frequency_1): Be more conservative when profile is read.
2503         (contains_hot_call_p): New function.
2504         (ipa_propagate_frequency): Set frequencies based on counts when
2505         profile is read.
2506         * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
2507         profile; do not tamper with profile after inlining if it is read.
2509 2013-09-08  Jan Hubicka  <jh@suse.cz>
2511         * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
2512         speculative edges.
2514 2013-09-08  Jan Hubicka  <jh@suse.cz>
2516         * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
2517         summary generation.
2519 2013-09-08  Jeff Law  <law@redhat.com>
2521         PR bootstrap/58340
2522         * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
2523         of 'found'.
2525 2013-09-08  Andi Kleen  <ak@linux.intel.com>
2527         * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
2529 2013-09-08  Jan Hubicka  <jh@suse.cz>
2531         * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
2533 2013-09-08  Richard Sandiford  <rdsandiford@googlemail.com>
2535         * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
2536         for non-debug insns.
2537         * lra.c (new_insn_reg): Take the containing insn as a parameter.
2538         Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
2539         (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
2540         accordingly.
2542 2013-09-08  Jan Hubicka  <jh@suse.cz>
2544         * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
2545         targets and devirtualize to BUILT_IN_UNREACHABLE.
2546         * timevar.def (TV_IPA_UNREACHABLE): New timevar.
2547         * ipa.c (walk_polymorphic_call_targets): New function.
2548         (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
2549         functions; use the new timevar.
2550         * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
2551         was removed from the program.
2552         (record_binfo): If BINFO corresponds to an anonymous namespace, we may
2553         not consider it in the walk when its vtable is dead.
2554         (possible_polymorphic_call_targets_1): Pass anonymous flag to
2555         record_binfo.
2556         (devirt_variable_node_removal_hook): New function.
2557         (possible_polymorphic_call_targets): Also register
2558         devirt_variable_node_removal_hook.
2559         (ipa_devirt): Do not do non-speculative devirtualization.
2560         (gate_ipa_devirt): One execute if devirtualizing speculatively.
2562 2013-09-08  Jan Hubicka  <jh@suse.cz>
2564         * cgraph.h (varpool_node_hook, varpool_node_hook_list,
2565         varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
2566         varpool_remove_variable_insertion_hook): Declare.
2567         * varpool.c (varpool_node_hook_list): New structure.
2568         (first_varpool_node_removal_hook,
2569         first_varpool_variable_insertion_hook): New variables.
2570         (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
2571         varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
2572         varpool_remove_variable_insertion_hook,
2573         varpool_call_variable_insertion_hooks): New functions.
2574         (varpool_remove_node): Use it.
2576 2013-09-08  Paolo Carlini  <paolo.carlini@oracle.com>
2578         PR c++/54941
2579         * diagnostic.c (diagnostic_build_prefix): When s.file is
2580         "<built-in>" don't output line and column numbers.
2582 2013-09-06  Jan Hubicka  <jh@suse.cz>
2584         * cgraphunit.c (expand_thunk): Get body before touching arguments.
2585         * lto-streamer-out.c: Stream thunks, too.
2586         * lto-streamer-in.c (input_function): Pop cfun here
2587         (lto_read_body): Instead of here.
2589 2013-09-06  Caroline Tice  <cmtice@google.com>
2591         * doc/install.texi: Add documentation for the --enable-vtable-verify
2592         and the --disable-libvtv configure options.
2594 2013-09-06  Jeff Law  <law@redhat.com>
2596         * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
2597         edge implied equivalences into successor phis.
2599 2013-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
2601         * resource.c (mark_referenced_resources): Handle COND_EXEC.
2603 2013-09-06  Claudiu Zissulescu  <claziss@synopsys.com>
2605         * resource.c (mark_target_live_regs): Compute resources taking
2606         into account if a call is predicated or not.
2608 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
2610         * toplev.c (output_stack_usage): Be prepared for suffixes created by
2611         the compiler in the function names.
2613 2013-09-06  Jan Hubicka  <jh@suse.cz>
2615         PR middle-end/58094
2616         * ipa-inline.c (has_caller_p): New function.
2617         (want_inline_function_to_all_callers_p): Use it.
2618         (sum_callers, inline_to_all_callers): Break out from ...
2619         (ipa_inline): ... here.
2621 2013-09-06  Jan Hubicka  <jh@suse.cz>
2623         * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
2624         only when AVX is enabled.
2626 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
2628         * config/aarch64/aarch64.md
2629         (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
2630         is fpsimd_<load/store>2.
2631         (load_pair<mode>): Likewise.
2632         (store_pair<mode>): Likewise.
2634 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
2636         * config/arm/types.md (type): Add "mrs" type.
2637         * config/aarch64/aarch64.md
2638         (aarch64_load_tp_hard): Make type "mrs".
2639         * config/arm/arm.md
2640         (load_tp_hard): Make type "mrs".
2641         * config/arm/cortex-a15.md: Update with new attributes.
2642         * config/arm/cortex-a5.md: Update with new attributes.
2643         * config/arm/cortex-a53.md: Update with new attributes.
2644         * config/arm/cortex-a7.md: Update with new attributes.
2645         * config/arm/cortex-a8.md: Update with new attributes.
2646         * config/arm/cortex-a9.md: Update with new attributes.
2647         * config/arm/cortex-m4.md: Update with new attributes.
2648         * config/arm/cortex-r4.md: Update with new attributes.
2649         * config/arm/fa526.md: Update with new attributes.
2650         * config/arm/fa606te.md: Update with new attributes.
2651         * config/arm/fa626te.md: Update with new attributes.
2652         * config/arm/fa726te.md: Update with new attributes.
2654 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
2656         * config/aarch64/aarch64.md
2657         (*movti_aarch64): Use "multiple" for type where v8type is "move2".
2658         (*movtf_aarch64): Likewise.
2659         * config/arm/arm.md
2660         (thumb1_movdi_insn): Use "multiple" for type where more than one
2661         instruction is used for a move.
2662         (*arm32_movhf): Likewise.
2663         (*thumb_movdf_insn): Likewise.
2665 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
2667         * config/arm/types.md (type): Rename fcpys to fmov.
2668         * config/arm/vfp.md
2669         (*arm_movsi_vfp): Rename type fcpys as fmov.
2670         (*thumb2_movsi_vfp): Likewise
2671         (*movhf_vfp_neon): Likewise
2672         (*movhf_vfp): Likewise
2673         (*movsf_vfp): Likewise
2674         (*thumb2_movsf_vfp): Likewise
2675         (*movsfcc_vfp): Likewise
2676         (*thumb2_movsfcc_vfp): Likewise
2677         * config/aarch64/aarch64-simd.md
2678         (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
2679         * config/aarch64/aarch64.md
2680         (*movsi_aarch64): Replace type mov_reg with fmovs.
2681         (*movdi_aarch64): Likewise
2682         (*movsf_aarch64): Likewise
2683         (*movdf_aarch64): Likewise
2684         * config/arm/arm.c
2685         (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
2686         * config/arm/iwmmxt.md
2687         (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
2688         * config/arm/arm1020e.md: Update with new attributes.
2689         * config/arm/cortex-a15-neon.md: Update with new attributes.
2690         * config/arm/cortex-a5.md: Update with new attributes.
2691         * config/arm/cortex-a53.md: Update with new attributes.
2692         * config/arm/cortex-a7.md: Update with new attributes.
2693         * config/arm/cortex-a8-neon.md: Update with new attributes.
2694         * config/arm/cortex-a9.md: Update with new attributes.
2695         * config/arm/cortex-m4-fpu.md: Update with new attributes.
2696         * config/arm/cortex-r4f.md: Update with new attributes.
2697         * config/arm/marvell-pj4.md: Update with new attributes.
2698         * config/arm/vfp11.md: Update with new attributes.
2700 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
2702         * config/aarch64/aarch64.md
2703         (*madd<mode>): Fix type attribute.
2704         (*maddsi_uxtw): Likewise.
2705         (*msub<mode>): Likewise.
2706         (*msubsi_uxtw): Likewise.
2707         (<su_optab>maddsidi4): Likewise.
2708         (<su_optab>msubsidi4): Likewise.
2710 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
2712         * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
2713         * config/arm/arm.md (core_cycles): Remove fdiv.
2714         * config/arm/vfp.md:
2715         (*sqrtsf2_vfp): Update for attribute changes.
2716         (*sqrtdf2_vfp): Likewise.
2717         * config/aarch64/aarch64.md:
2718         (sqrt<mode>2): Update for attribute changes.
2719         * config/arm/arm1020e.md: Update with new attributes.
2720         * config/arm/cortex-a15-neon.md: Update with new attributes.
2721         * config/arm/cortex-a5.md: Update with new attributes.
2722         * config/arm/cortex-a53.md: Update with new attributes.
2723         * config/arm/cortex-a7.md: Update with new attributes.
2724         * config/arm/cortex-a8-neon.md: Update with new attributes.
2725         * config/arm/cortex-a9.md: Update with new attributes.
2726         * config/arm/cortex-m4-fpu.md: Update with new attributes.
2727         * config/arm/cortex-r4f.md: Update with new attributes.
2728         * config/arm/marvell-pj4.md: Update with new attributes.
2729         * config/arm/vfp11.md: Update with new attributes.
2731 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
2733         * config/arm/types.md
2734         (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
2735         * config/aarch64/aarch64.md
2736         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
2737         new attributes.
2738         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
2739         (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
2740         (float<GPI:mode><GPF:mode>2): Likewise.
2741         * config/arm/vfp.md
2742         (*truncsisf2_vfp): Update with new attributes.
2743         (*truncsidf2_vfp): Likewise.
2744         (fixuns_truncsfsi2): Likewise.
2745         (fixuns_truncdfsi2): Likewise.
2746         (*floatsisf2_vfp): Likewise.
2747         (*floatsidf2_vfp): Likewise.
2748         (floatunssisf2): Likewise.
2749         (floatunssidf2): Likewise.
2750         (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
2751         (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
2752         * config/arm/arm1020e.md: Update with new attributes.
2753         * config/arm/cortex-a15-neon.md: Update with new attributes.
2754         * config/arm/cortex-a5.md: Update with new attributes.
2755         * config/arm/cortex-a53.md: Update with new attributes.
2756         * config/arm/cortex-a7.md: Update with new attributes.
2757         * config/arm/cortex-a8-neon.md: Update with new attributes.
2758         * config/arm/cortex-a9.md: Update with new attributes.
2759         * config/arm/cortex-m4-fpu.md: Update with new attributes.
2760         * config/arm/cortex-r4f.md: Update with new attributes.
2761         * config/arm/marvell-pj4.md: Update with new attributes.
2762         * config/arm/vfp11.md: Update with new attributes.
2764 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
2766         * config/aarch64/arm_neon.h
2767         (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
2768         (vqtbx<1,2,3,4><q>_s8): Likewise.
2770 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
2772         * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
2773         * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
2774         (add<mode>3): Add type attribute.
2775         (add<mode>3): Likewise.
2776         (usadd<mode>3): Likewise.
2777         (ssadd<mode>3): Likewise.
2778         (sub<mode>3): Likewise.
2779         (sub<mode>3): Likewise.
2780         (ussub<mode>3): Likewise.
2781         (sssub<mode>3): Likewise.
2782         (ssmulsa3): Likewise.
2783         (usmulusa3): Likewise.
2784         (arm_usatsihi): Likewise.
2785         * config/arm/vfp.md
2786         (*movdi_vfp): Add types for all instructions.
2787         (*movdi_vfp_cortexa8): Likewise.
2788         (*movhf_vfp_neon): Likewise.
2789         (*movhf_vfp): Likewise.
2790         (*movdf_vfp): Likewise.
2791         (*thumb2_movdf_vfp): Likewise.
2792         (*thumb2_movdfcc_vfp): Likewise.
2793         * config/arm/arm.md: Add type attribute to all insn patterns.
2794         (*thumb1_adddi3): Add type attribute.
2795         (*arm_adddi3): Likewise.
2796         (*adddi_sesidi_di): Likewise.
2797         (*adddi_zesidi_di): Likewise.
2798         (*thumb1_addsi3): Likewise.
2799         (addsi3_compare0): Likewise.
2800         (*addsi3_compare0_scratch): Likewise.
2801         (*compare_negsi_si): Likewise.
2802         (cmpsi2_addneg): Likewise.
2803         (*addsi3_carryin_<optab>): Likewise.
2804         (*addsi3_carryin_alt2_<optab>): Likewise.
2805         (*addsi3_carryin_clobercc_<optab>): Likewise.
2806         (*subsi3_carryin): Likewise.
2807         (*subsi3_carryin_const): Likewise.
2808         (*subsi3_carryin_compare): Likewise.
2809         (*subsi3_carryin_compare_const): Likewise.
2810         (*arm_subdi3): Likewise.
2811         (*thumb_subdi3): Likewise.
2812         (*subdi_di_zesidi): Likewise.
2813         (*subdi_di_sesidi): Likewise.
2814         (*subdi_zesidi_di): Likewise.
2815         (*subdi_sesidi_di): Likewise.
2816         (*subdi_zesidi_ze): Likewise.
2817         (thumb1_subsi3_insn): Likewise.
2818         (*arm_subsi3_insn): Likewise.
2819         (*anddi3_insn): Likewise.
2820         (*anddi_zesidi_di): Likewise.
2821         (*anddi_sesdi_di): Likewise.
2822         (*ne_zeroextracts): Likewise.
2823         (*ne_zeroextracts): Likewise.
2824         (*ite_ne_zeroextr): Likewise.
2825         (*ite_ne_zeroextr): Likewise.
2826         (*anddi_notdi_di): Likewise.
2827         (*anddi_notzesidi): Likewise.
2828         (*anddi_notsesidi): Likewise.
2829         (andsi_notsi_si): Likewise.
2830         (thumb1_bicsi3): Likewise.
2831         (*iordi3_insn): Likewise.
2832         (*iordi_zesidi_di): Likewise.
2833         (*iordi_sesidi_di): Likewise.
2834         (*thumb1_iorsi3_insn): Likewise.
2835         (*xordi3_insn): Likewise.
2836         (*xordi_zesidi_di): Likewise.
2837         (*xordi_sesidi_di): Likewise.
2838         (*arm_xorsi3): Likewise.
2839         (*andsi_iorsi3_no): Likewise.
2840         (*smax_0): Likewise.
2841         (*smax_m1): Likewise.
2842         (*arm_smax_insn): Likewise.
2843         (*smin_0): Likewise.
2844         (*arm_smin_insn): Likewise.
2845         (*arm_umaxsi3): Likewise.
2846         (*arm_uminsi3): Likewise.
2847         (*minmax_arithsi): Likewise.
2848         (*minmax_arithsi_): Likewise.
2849         (*satsi_<SAT:code>): Likewise.
2850         (arm_ashldi3_1bit): Likewise.
2851         (arm_ashrdi3_1bit): Likewise.
2852         (arm_lshrdi3_1bit): Likewise.
2853         (*arm_negdi2): Likewise.
2854         (*thumb1_negdi2): Likewise.
2855         (*arm_negsi2): Likewise.
2856         (*thumb1_negsi2): Likewise.
2857         (*negdi_extendsid): Likewise.
2858         (*negdi_zero_extend): Likewise.
2859         (*arm_abssi2): Likewise.
2860         (*thumb1_abssi2): Likewise.
2861         (*arm_neg_abssi2): Likewise.
2862         (*thumb1_neg_abss): Likewise.
2863         (one_cmpldi2): Likewise.
2864         (extend<mode>di2): Likewise.
2865         (*compareqi_eq0): Likewise.
2866         (*arm_extendhisi2addsi): Likewise.
2867         (*arm_movdi): Likewise.
2868         (*thumb1_movdi_insn): Likewise.
2869         (*arm_movt): Likewise.
2870         (*thumb1_movsi_insn): Likewise.
2871         (pic_add_dot_plus_four): Likewise.
2872         (pic_add_dot_plus_eight): Likewise.
2873         (tls_load_dot_plus_eight): Likewise.
2874         (*thumb1_movhi_insn): Likewise.
2875         (*thumb1_movsf_insn): Likewise.
2876         (*movdf_soft_insn): Likewise.
2877         (*thumb_movdf_insn): Likewise.
2878         (cbranchsi4_insn): Likewise.
2879         (cbranchsi4_scratch): Likewise.
2880         (*negated_cbranchsi4): Likewise.
2881         (*tbit_cbranch): Likewise.
2882         (*tlobits_cbranch): Likewise.
2883         (*tstsi3_cbranch): Likewise.
2884         (*cbranchne_decr1): Likewise.
2885         (*addsi3_cbranch): Likewise.
2886         (*addsi3_cbranch_scratch): Likewise.
2887         (*arm_cmpdi_insn): Likewise.
2888         (*arm_cmpdi_unsig): Likewise.
2889         (*arm_cmpdi_zero): Likewise.
2890         (*thumb_cmpdi_zero): Likewise.
2891         (*deleted_compare): Likewise.
2892         (*mov_scc): Likewise.
2893         (*mov_negscc): Likewise.
2894         (*mov_notscc): Likewise.
2895         (*cstoresi_eq0_thumb1_insn): Likewise.
2896         (cstoresi_nltu_thumb1): Likewise.
2897         (cstoresi_ltu_thu): Likewise.
2898         (thumb1_addsi3_addgeu): Likewise.
2899         (*arm_jump): Likewise.
2900         (*thumb_jump): Likewise.
2901         (*check_arch2): Likewise.
2902         (arm_casesi_internal): Likewise.
2903         (thumb1_casesi_dispatch): Likewise.
2904         (*arm_indirect_jump): Likewise.
2905         (*thumb1_indirect_jump): Likewise.
2906         (nop): Likewise.
2907         (*and_scc): Likewise.
2908         (*ior_scc): Likewise.
2909         (*compare_scc): Likewise.
2910         (*cond_move): Likewise.
2911         (*cond_arith): Likewise.
2912         (*cond_sub): Likewise.
2913         (*cmp_ite0): Likewise.
2914         (*cmp_ite1): Likewise.
2915         (*cmp_and): Likewise.
2916         (*cmp_ior): Likewise.
2917         (*ior_scc_scc): Likewise.
2918         (*ior_scc_scc_cmp): Likewise.
2919         (*and_scc_scc): Likewise.
2920         (*and_scc_scc_cmp): Likewise.
2921         (*and_scc_scc_nod): Likewise.
2922         (*negscc): Likewise.
2923         (movcond_addsi): Likewise.
2924         (movcond): Likewise.
2925         (*ifcompare_plus_move): Likewise.
2926         (*if_plus_move): Likewise.
2927         (*ifcompare_move_plus): Likewise.
2928         (*if_move_plus): Likewise.
2929         (*ifcompare_arith_arith): Likewise.
2930         (*if_arith_arith): Likewise.
2931         (*ifcompare_arith_move): Likewise.
2932         (*if_arith_move): Likewise.
2933         (*ifcompare_move_arith): Likewise.
2934         (*if_move_arith): Likewise.
2935         (*ifcompare_move_not): Likewise.
2936         (*if_move_not): Likewise.
2937         (*ifcompare_not_move): Likewise.
2938         (*if_not_move): Likewise.
2939         (*ifcompare_shift_move): Likewise.
2940         (*if_shift_move): Likewise.
2941         (*ifcompare_move_shift): Likewise.
2942         (*if_move_shift): Likewise.
2943         (*ifcompare_shift_shift): Likewise.
2944         (*ifcompare_not_arith): Likewise.
2945         (*ifcompare_arith_not): Likewise.
2946         (*if_arith_not): Likewise.
2947         (*ifcompare_neg_move): Likewise.
2948         (*if_neg_move): Likewise.
2949         (*ifcompare_move_neg): Likewise.
2950         (*if_move_neg): Likewise.
2951         (prologue_thumb1_interwork): Likewise.
2952         (*cond_move_not): Likewise.
2953         (*sign_extract_onebit): Likewise.
2954         (*not_signextract_onebit): Likewise.
2955         (stack_tie): Likewise.
2956         (align_4): Likewise.
2957         (align_8): Likewise.
2958         (consttable_end): Likewise.
2959         (consttable_1): Likewise.
2960         (consttable_2): Likewise.
2961         (consttable_4): Likewise.
2962         (consttable_8): Likewise.
2963         (consttable_16): Likewise.
2964         (*thumb1_tablejump): Likewise.
2965         (prefetch): Likewise.
2966         (force_register_use): Likewise.
2967         (thumb_eh_return): Likewise.
2968         (load_tp_hard): Likewise.
2969         (load_tp_soft): Likewise.
2970         (tlscall): Likewise.
2971         (*arm_movtas_ze): Likewise.
2972         (*arm_rev): Likewise.
2973         (*arm_revsh): Likewise.
2974         (*arm_rev16): Likewise.
2975         * config/arm/thumb2.md
2976         (*thumb2_smaxsi3): Likewise.
2977         (*thumb2_sminsi3): Likewise.
2978         (*thumb32_umaxsi3): Likewise.
2979         (*thumb2_uminsi3): Likewise.
2980         (*thumb2_negdi2): Likewise.
2981         (*thumb2_abssi2): Likewise.
2982         (*thumb2_neg_abss): Likewise.
2983         (*thumb2_movsi_insn): Likewise.
2984         (tls_load_dot_plus_four): Likewise.
2985         (*thumb2_movhi_insn): Likewise.
2986         (*thumb2_mov_scc): Likewise.
2987         (*thumb2_mov_negs): Likewise.
2988         (*thumb2_mov_negs): Likewise.
2989         (*thumb2_mov_nots): Likewise.
2990         (*thumb2_mov_nots): Likewise.
2991         (*thumb2_movsicc_): Likewise.
2992         (*thumb2_movsfcc_soft_insn): Likewise.
2993         (*thumb2_indirect_jump): Likewise.
2994         (*thumb2_and_scc): Likewise.
2995         (*thumb2_ior_scc): Likewise.
2996         (*thumb2_ior_scc_strict_it): Likewise.
2997         (*thumb2_cond_move): Likewise.
2998         (*thumb2_cond_arith): Likewise.
2999         (*thumb2_cond_ari): Likewise.
3000         (*thumb2_cond_sub): Likewise.
3001         (*thumb2_negscc): Likewise.
3002         (*thumb2_movcond): Likewise.
3003         (thumb2_casesi_internal): Likewise.
3004         (thumb2_casesi_internal_pic): Likewise.
3005         (*thumb2_alusi3_short): Likewise.
3006         (*thumb2_mov<mode>_shortim): Likewise.
3007         (*thumb2_addsi_short): Likewise.
3008         (*thumb2_subsi_short): Likewise.
3009         (thumb2_addsi3_compare0): Likewise.
3010         (*thumb2_cbz): Likewise.
3011         (*thumb2_cbnz): Likewise.
3012         (*thumb2_one_cmplsi2_short): Likewise.
3013         (*thumb2_negsi2_short): Likewise.
3014         (*orsi_notsi_si): Likewise.
3015         * config/arm/arm1020e.md: Update with new attributes.
3016         * config/arm/arm1026ejs.md: Update with new attributes.
3017         * config/arm/arm1136jfs.md: Update with new attributes.
3018         * config/arm/arm926ejs.md: Update with new attributes.
3019         * config/arm/cortex-a15.md: Update with new attributes.
3020         * config/arm/cortex-a5.md: Update with new attributes.
3021         * config/arm/cortex-a53.md: Update with new attributes.
3022         * config/arm/cortex-a7.md: Update with new attributes.
3023         * config/arm/cortex-a8.md: Update with new attributes.
3024         * config/arm/cortex-a9.md: Update with new attributes.
3025         * config/arm/cortex-m4.md: Update with new attributes.
3026         * config/arm/cortex-r4.md: Update with new attributes.
3027         * config/arm/fa526.md: Update with new attributes.
3028         * config/arm/fa606te.md: Update with new attributes.
3029         * config/arm/fa626te.md: Update with new attributes.
3030         * config/arm/fa726te.md: Update with new attributes.
3032 2013-09-06  James Greenhalgh  <james.greenhalgh@arm.com>
3034         * config/aarch64/aarch64-simd.md
3035         (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
3036         <vwx> iterator to ensure correct register choice.
3037         (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
3038         (aarch64_sqdmull_n<mode>): Likewise.
3039         (aarch64_sqdmull2_n<mode>_internal): Likewise.
3040         * config/aarch64/arm_neon.h
3041         (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
3042         (vml<as><q>_n_<su>16): Likewise.
3043         (vml<as>l_high_lane<q>_<su>16): Likewise.
3044         (vml<as>l_high_n_<su>16): Likewise.
3045         (vml<as>l_lane<q>_<su>16): Likewise.
3046         (vml<as>l_n_<su>16): Likewise.
3047         (vmul<q>_lane<q>_<su>16): Likewise.
3048         (vmul<q>_n_<su>16): Likewise.
3049         (vmull_lane<q>_<su>16): Likewise.
3050         (vmull_n_<su>16): Likewise.
3051         (vmull_high_lane<q>_<su>16): Likewise.
3052         (vmull_high_n_<su>16): Likewise.
3053         (vqrdmulh<q>_n_s16): Likewise.
3055 2013-09-06  Tejas Belagod  <tejas.belagod@arm.com>
3057         * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
3058         have the correct lane parameter.
3060 2013-09-06  Richard Biener <rguenther@suse.de>
3062         * cfganal.c (control_dependences::~control_dependences):
3063         Properly free all of the vector.
3065 2013-09-06  Kirill Yukhin  <kirill.yukhin@intel.com>
3067         PR target/58269
3068         * config/i386/i386.c (ix86_conditional_register_usage):
3069         Proper initialize extended SSE registers.
3071 2013-09-06  Jan Hubicka  <jh@suse.cz>
3073         PR tree-optimization/58311
3074         * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
3076 2013-09-06  Jan Hubicka  <jh@suse.cz>
3078         * Makefile.in (tree-sra.o): Update dependencies.
3079         * tree-sra.c: Include ipa-utils.h
3080         (scan_function): Use recursive_call_p.
3081         (has_caller_p): New function.
3082         (cgraph_for_node_and_aliases): Count also callers of aliases.
3084 2013-09-06  Jan Hubicka  <jh@suse.cz>
3086         PR middle-end/58094
3087         * cgraph.h (symtab_semantically_equivalent_p): Declare.
3088         * tree-tailcall.c: Include ipa-utils.h.
3089         (find_tail_calls): Use it.
3090         * ipa-pure-const.c (check_call): Likewise.
3091         * ipa-utils.c (recursive_call_p): New function.
3092         * ipa-utils.h (recursive_call_p): Dclare.
3093         * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
3094         (symtab_semantically_equivalent_p): New function.
3095         * Makefile.in (tree-tailcall.o): Update dependencies.
3097 2013-09-06  Eric Botcazou  <ebotcazou@adacore.com>
3099         * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
3100         non-inlinable part.
3102 2013-09-06  Richard Biener  <rguenther@suse.de>
3104         * lto-streamer.h (lto_global_var_decls): Remove.
3105         * Makefile.in (OBJS): Remove lto-symtab.o.
3106         (lto-symtab.o): Remove.
3107         (GTFILES): Remove lto-symtab.c
3108         * lto-symtab.c: Move to lto/
3110 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3112         * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
3113         (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
3114         (UNSPEC_FPINT_RINT): New constant definitions.
3115         (FPINT, fpint_name, fpint_roundingmode): New integer iterator
3116         definition with 2 attributes.
3117         ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
3118         ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
3119         definitions.
3121 2013-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3123         * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
3124         ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
3125         Set the mnemonic attribute to "bcr_flush".  Set the "z196prop"
3126         attribute to "z196_alone".
3127         * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
3128         "zEC12_simple".
3130 2013-09-06  Richard Biener  <rguenther@suse.de>
3132         * basic-block.h (class control_dependences): New.
3133         * tree-ssa-dce.c (control_dependence_map): Remove.
3134         (cd): New global.
3135         (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
3136         (set_control_dependence_map_bit, clear_control_dependence_bitmap,
3137         find_pdom, find_control_dependence, find_all_control_dependences):
3138         Move to cfganal.c.
3139         (mark_control_dependent_edges_necessary,
3140         find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
3141         tree_dce_done, perform_tree_ssa_dce): Adjust.
3142         * cfganal.c (set_control_dependence_map_bit,
3143         clear_control_dependence_bitmap, find_pdom, find_control_dependence,
3144         find_all_control_dependences): Move from tree-ssa-dce.c and
3145         implement as methods of control_dependences class.
3146         (control_dependences::control_dependences): New.
3147         (control_dependences::~control_dependences): Likewise.
3148         (control_dependences::get_edges_dependent_on): Likewise.
3149         (control_dependences::get_edge): Likewise.
3151 2013-09-04  Jan Hubicka  <jh@suse.cz>
3153         * tree.c (types_same_for_odr): Drop overactive check.
3154         * ipa-devirt.c (hash_type_name): Likewise.
3156 2013-09-04  Jan Hubicka  <jh@suse.cz>
3158         * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
3159         (analyze_functions): ... here.
3161 2013-09-04  Jan Hubicka  <jh@suse.cz>
3163         PR middle-end/58201
3164         * cgraphunit.c (analyze_functions): Clear AUX fields
3165         after processing; initialize assembler name has.
3167 2013-09-05  Jeff Law  <law@redhat.com>
3169         * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
3170         from thread_around_empty_block.  Record threading path into PATH.
3171         Recurse if threading through the initial block is successful.
3172         (thread_across_edge): Corresponding changes to slightly simplify.
3174 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
3176         * config/aarch64/aarch64.md
3177         (type): Remove frecpe, frecps, frecpx.
3178         (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
3179         fix to be a TARGET_SIMD instruction.
3180         (aarch64_frecps): Remove.
3181         * config/aarch64/aarch64-simd.md
3182         (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
3183         (aarch64_frecps<mode>): Handle all float/vector of float modes.
3185 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
3186             Sofiane Naci  <sofiane.naci@arm.com>
3188         * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
3189         into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
3190         Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
3191         "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
3192         "logic_reg", "logics_reg", "rev".  Expand "arlo_shift" into
3193         "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
3194         "logics_shift_imm".  Expand "arlo_shift_reg" into "alu_shift_reg",
3195         "alus_shift_reg", "logic_shift_reg", "logics_shift_reg".  Expand "clz"
3196         into "clz, "rbit".  Rename "shift" to "shift_imm".
3197         * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
3198         changes.  Update for attribute changes all occurrences of arlo_* and
3199         shift* types.
3200         * config/arm/arm-fixed.md: Update for attribute changes
3201         all occurrences of arlo_* types.
3202         * config/arm/thumb2.md: Update for attribute changes all occurrences
3203         of arlo_* types.
3204         * config/arm/arm.c (xscale_sched_adjust_cost):  (rtx insn, rtx
3205         (cortexa7_older_only): Likewise.
3206         (cortexa7_younger):  Likewise.
3207         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
3208         (1020alu_shift_op): Likewise.
3209         (1020alu_shift_reg_op): Likewise.
3210         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
3211         (alu_shift_op): Likewise.
3212         (alu_shift_reg_op): Likewise.
3213         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
3214         (11_alu_shift_op): Likewise.
3215         (11_alu_shift_reg_op): Likewise.
3216         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
3217         (9_alu_shift_reg_op): Likewise.
3218         * config/arm/cortex-a15.md (cortex_a15_alu): Update for
3219         attribute changes.
3220         (cortex_a15_alu_shift): Likewise.
3221         (cortex_a15_alu_shift_reg): Likewise.
3222         * config/arm/cortex-a5.md (cortex_a5_alu): Update for
3223         attribute changes.
3224         (cortex_a5_alu_shift): Likewise.
3225         * config/arm/cortex-a53.md (cortex_a53_alu): Update for
3226         attribute changes.
3227         (cortex_a53_alu_shift): Likewise.
3228         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
3229         attribute changes.
3230         (cortex_a7_alu_reg): Likewise.
3231         (cortex_a7_alu_shift): Likewise.
3232         * config/arm/cortex-a8.md (cortex_a8_alu): Update for
3233         attribute changes.
3234         (cortex_a8_alu_shift): Likewise.
3235         (cortex_a8_alu_shift_reg): Likewise.
3236         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
3237         (cortex_a9_dp_shift): Likewise.
3238         * config/arm/cortex-m4.md (cortex_m4_alu): Update for
3239         attribute changes.
3240         * config/arm/cortex-r4.md
3241         (cortex_r4_alu): Update for attribute changes.
3242         (cortex_r4_mov): Likewise.
3243         (cortex_r4_alu_shift_reg): Likewise.
3244         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
3245         (526_alu_shift_op): Likewise.
3246         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
3247         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
3248         (626te_alu_shift_op): Likewise.
3249         * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
3250         (726te_alu_shift_op): Likewise.
3251         (726te_alu_shift_reg_op): Likewise.
3252         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
3253         (mp626_alu_shift_op): Likewise.
3254         * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
3255         (pj4_alu_conds): Likewise.
3256         (pj4_shift): Likewise.
3257         (pj4_shift_conds): Likewise.
3258         (pj4_alu_shift): Likewise.
3259         (pj4_alu_shift_conds): Likewise.
3260         * config/aarch64/aarch64.md: Update for attribute change
3261         all occurrences of arlo_* and shift* types.
3263 2013-09-05  Mike Stump  <mikestump@comcast.net>
3265         * tree.h: Move documentation for tree_function_decl to tree-core.h
3266         with the declaration.
3268 2013-09-05  Peter Bergner  <bergner@vnet.ibm.com>
3270         PR target/58139
3271         * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
3272         looking for widest mode.
3274 2013-09-05  Eric Botcazou  <ebotcazou@adacore.com>
3276         * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
3278 2013-09-05  Richard Biener  <rguenther@suse.de>
3280         PR tree-optimization/58137
3281         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
3282         Do not create vectors of pointers.
3283         * tree-vect-loop.c (get_initial_def_for_induction): Use proper
3284         types for the components of the vector initializer.
3285         * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
3286         allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
3288 2013-09-05  Martin Jambor  <mjambor@suse.cz>
3290         * ipa-prop.c (remove_described_reference): Accept missing references,
3291         return false if that hppens, otherwise return true.
3292         (cgraph_node_for_jfunc): New function.
3293         (try_decrement_rdesc_refcount): Likewise.
3294         (try_make_edge_direct_simple_call): Use them.
3295         (ipa_edge_removal_hook): Remove references from rdescs.
3296         (ipa_edge_duplication_hook): Clone rdescs and their references
3297         when the new edge has the same caller as the old one.
3298         * cgraph.c (cgraph_resolve_speculation): Remove speculative
3299         reference before removing any edges.
3301 2013-09-05  Richard Earnshaw  <rearnsha@arm.com>
3303         * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
3304         initial store.
3305         * thumb2.md (thumb2_storewb_parisi): New pattern.
3307 2013-09-05  Yufeng Zhang  <yufeng.zhang@arm.com>
3309         * config/aarch64/aarch64-option-extensions.def: Add
3310         AARCH64_OPT_EXTENSION of 'crc'.
3311         * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
3312         (AARCH64_ISA_CRC): Ditto.
3313         * doc/invoke.texi (-march and -mcpu feature modifiers): Add
3314         description of the CRC extension.
3316 2013-09-05  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3318         * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
3319         * config/rs6000/linux.h: Ditto.
3320         * alpha/linux.h: Ditto.
3321         * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
3322         no_c99_libc_has_function.
3323         * config/c6x/uclinux-elf.h: Ditto.
3324         * config/lm32/uclinux-elf.h: Ditto.
3325         * config/m68k/uclinux.h: Ditto.
3326         * config/moxie/uclinux.h: Ditto.
3327         * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
3328         (crisv32-*-linux*, cris-*-linux*): Ditto.
3329         * config/bfin/bfin.c: Include "tm_p.h".
3331 2013-09-05  Richard Biener  <rguenther@suse.de>
3333         * tree-vect-loop.c (vect_analyze_loop_operations): Properly
3334         check for a definition without a basic-block.
3336 2013-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
3337             Sofiane Naci <sofiane.naci@arm.com>
3339         * config/aarch64/aarch64.md
3340         (*movti_aarch64): Rename r_2_f and f_2_r.
3341         (*movsf_aarch64): Likewise.
3342         (*movdf_aarch64): Likewise.
3343         (*movtf_aarch64): Likewise.
3344         (aarch64_movdi_<mode>low): Likewise.
3345         (aarch64_movdi_<mode>high): Likewise.
3346         (aarch64_mov<mode>high_di): Likewise.
3347         (aarch64_mov<mode>low_di): Likewise.
3348         (aarch64_movtilow_tilow): Likewise.
3349         * config/arm/arm.md (attribute "neon_type"): Delete.  Move attribute
3350         values to config/arm/types.md
3351         (attribute "conds"): Update for attribute change.
3352         (anddi3_insn): Likewise.
3353         (iordi3_insn): Likewise.
3354         (xordi3_insn): Likewise.
3355         (one_cmpldi2): Likewise.
3356         * config/arm/types.md (type): Add Neon types.
3357         * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
3358         use "type" attribute.
3359         (movmisalign<mode>_neon_store): Likewise.
3360         (movmisalign<mode>_neon_load): Likewise.
3361         (vec_set<mode>_internal): Likewise.
3362         (vec_setv2di_internal): Likewise.
3363         (vec_extract<mode>): Likewise.
3364         (vec_extractv2di): Likewise.
3365         (add<mode>3_neon): Likewise.
3366         (adddi3_neon): Likewise.
3367         (sub<mode>3_neon): Likewise.
3368         (subdi3_neon): Likewise.
3369         (mul<mode>3_neon): Likewise.
3370         (mul<mode>3add<mode>_neon): Likewise.
3371         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
3372         (fma<VCVTF:mode>4)): Likewise.
3373         (fma<VCVTF:mode>4_intrinsic): Likewise.
3374         (fmsub<VCVTF:mode>4)): Likewise.
3375         (fmsub<VCVTF:mode>4_intrinsic): Likewise.
3376         (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
3377         (ior<mode>3): Likewise.
3378         (and<mode>3): Likewise.
3379         (anddi3_neon): Likewise.
3380         (orn<mode>3_neon): Likewise.
3381         (orndi3_neon): Likewise.
3382         (bic<mode>3_neon): Likewise.
3383         (bicdi3_neon): Likewise.
3384         (xor<mode>3): Likewise.
3385         (one_cmpl<mode>2): Likewise.
3386         (abs<mode>2): Likewise.
3387         (neg<mode>2): Likewise.
3388         (umin<mode>3_neon): Likewise.
3389         (umax<mode>3_neon): Likewise.
3390         (smin<mode>3_neon): Likewise.
3391         (smax<mode>3_neon): Likewise.
3392         (vashl<mode>3): Likewise.
3393         (vashr<mode>3_imm): Likewise.
3394         (vlshr<mode>3_imm): Likewise.
3395         (ashl<mode>3_signed): Likewise.
3396         (ashl<mode>3_unsigned): Likewise.
3397         (neon_load_count): Likewise.
3398         (ashldi3_neon_noclobber): Likewise.
3399         (signed_shift_di3_neon): Likewise.
3400         (unsigned_shift_di3_neon): Likewise.
3401         (ashrdi3_neon_imm_noclobber): Likewise.
3402         (lshrdi3_neon_imm_noclobber): Likewise.
3403         (widen_ssum<mode>3): Likewise.
3404         (widen_usum<mode>3): Likewise.
3405         (quad_halves_<code>v4si): Likewise.
3406         (quad_halves_<code>v4sf): Likewise.
3407         (quad_halves_<code>v8hi): Likewise.
3408         (quad_halves_<code>v16qi): Likewise.
3409         (reduc_splus_v2di): Likewise.
3410         (neon_vpadd_internal<mode>): Likewise.
3411         (neon_vpsmin<mode>): Likewise.
3412         (neon_vpsmax<mode>): Likewise.
3413         (neon_vpumin<mode>): Likewise.
3414         (neon_vpumax<mode>): Likewise.
3415         (ss_add<mode>_neon): Likewise.
3416         (us_add<mode>_neon): Likewise.
3417         (ss_sub<mode>_neon): Likewise.
3418         (us_sub<mode>_neon): Likewise.
3419         (neon_vadd<mode>_unspec): Likewise.
3420         (neon_vaddl<mode>): Likewise.
3421         (neon_vaddw<mode>): Likewise.
3422         (neon_vhadd<mode>): Likewise.
3423         (neon_vqadd<mode>): Likewise.
3424         (neon_vaddhn<mode>): Likewise.
3425         (neon_vmul<mode>): Likewise.
3426         (neon_vmla<mode>): Likewise.
3427         (neon_vmlal<mode>): Likewise.
3428         (neon_vmls<mode>): Likewise.
3429         (neon_vmlsl<mode>): Likewise.
3430         (neon_vqdmulh<mode>): Likewise.
3431         (neon_vqdmlal<mode>): Likewise.
3432         (neon_vqdmlsl<mode>): Likewise.
3433         (neon_vmull<mode>): Likewise.
3434         (neon_vqdmull<mode>): Likewise.
3435         (neon_vsub<mode>_unspec): Likewise.
3436         (neon_vsubl<mode>): Likewise.
3437         (neon_vsubw<mode>): Likewise.
3438         (neon_vqsub<mode>): Likewise.
3439         (neon_vhsub<mode>): Likewise.
3440         (neon_vsubhn<mode>): Likewise.
3441         (neon_vceq<mode>): Likewise.
3442         (neon_vcge<mode>): Likewise.
3443         (neon_vcgeu<mode>): Likewise.
3444         (neon_vcgt<mode>): Likewise.
3445         (neon_vcgtu<mode>): Likewise.
3446         (neon_vcle<mode>): Likewise.
3447         (neon_vclt<mode>): Likewise.
3448         (neon_vcage<mode>): Likewise.
3449         (neon_vcagt<mode>): Likewise.
3450         (neon_vtst<mode>): Likewise.
3451         (neon_vabd<mode>): Likewise.
3452         (neon_vabdl<mode>): Likewise.
3453         (neon_vaba<mode>): Likewise.
3454         (neon_vabal<mode>): Likewise.
3455         (neon_vmax<mode>): Likewise.
3456         (neon_vmin<mode>): Likewise.
3457         (neon_vpaddl<mode>): Likewise.
3458         (neon_vpadal<mode>): Likewise.
3459         (neon_vpmax<mode>): Likewise.
3460         (neon_vpmin<mode>): Likewise.
3461         (neon_vrecps<mode>): Likewise.
3462         (neon_vrsqrts<mode>): Likewise.
3463         (neon_vqabs<mode>): Likewise.
3464         (neon_vqneg<mode>): Likewise.
3465         (neon_vcls<mode>): Likewise.
3466         (clz<mode>2): Likewise.
3467         (popcount<mode>2): Likewise.
3468         (neon_vrecpe): Likewise.
3469         (neon_vrsqrte): Likewise.
3470         (neon_vget_lane<mode>_sext_internal): Likewise.
3471         (neon_vget_lane<mode>_zext_internal): Likewise.
3472         (neon_vdup_n<mode>): Likewise.
3473         (neon_vdup_nv2di): Likewise.
3474         (neon_vdpu_lane<mode>_internal): Likewise.
3475         (neon_vswp<mode>): Likewise.
3476         (float<mode><V_cvtto>2): Likewise.
3477         (floatuns<mode><V_cvtto>2): Likewise.
3478         (fix_trunc<mode><V_cvtto>)2): Likewise
3479         (fixuns_trunc<mode><V_cvtto)2): Likewise.
3480         (neon_vcvt<mode>): Likewise.
3481         (neon_vcvtv4sfv4hf): Likewise.
3482         (neon_vcvtv4hfv4sf): Likewise.
3483         (neon_vcvt_n<mode>): Likewise.
3484         (neon_vmovn<mode>): Likewise.
3485         (neon_vqmovn<mode>): Likewise.
3486         (neon_vqmovun<mode>): Likewise.
3487         (neon_vmovl<mode>): Likewise.
3488         (neon_vmul_lane<mode>): Likewise.
3489         (neon_vmull_lane<mode>): Likewise.
3490         (neon_vqdmull_lane<mode>): Likewise.
3491         (neon_vqdmulh_lane<mode>): Likewise.
3492         (neon_vmla_lane<mode>): Likewise.
3493         (neon_vmlal_lane<mode>): Likewise.
3494         (neon_vqdmlal_lane<mode>): Likewise.
3495         (neon_vmls_lane<mode>): Likewise.
3496         (neon_vmlsl_lane<mode>): Likewise.
3497         (neon_vqdmlsl_lane<mode>): Likewise.
3498         (neon_vext<mode>): Likewise.
3499         (neon_vrev64<mode>): Likewise.
3500         (neon_vrev32<mode>): Likewise.
3501         (neon_vrev16<mode>): Likewise.
3502         (neon_vbsl<mode>_internal): Likewise.
3503         (neon_vshl<mode>): Likewise.
3504         (neon_vqshl<mode>): Likewise.
3505         (neon_vshr_n<mode>): Likewise.
3506         (neon_vshrn_n<mode>): Likewise.
3507         (neon_vqshrn_n<mode>): Likewise.
3508         (neon_vqshrun_n<mode>): Likewise.
3509         (neon_vshl_n<mode>): Likewise.
3510         (neon_vqshl_n<mode>): Likewise.
3511         (neon_vqshlu_n<mode>): Likewise.
3512         (neon_vshll_n<mode>): Likewise.
3513         (neon_vsra_n<mode>): Likewise.
3514         (neon_vsri_n<mode>): Likewise.
3515         (neon_vsli_n<mode>): Likewise.
3516         (neon_vtbl1v8qi): Likewise.
3517         (neon_vtbl2v8qi): Likewise.
3518         (neon_vtbl3v8qi): Likewise.
3519         (neon_vtbl4v8qi): Likewise.
3520         (neon_vtbx1v8qi): Likewise.
3521         (neon_vtbx2v8qi): Likewise.
3522         (neon_vtbx3v8qi): Likewise.
3523         (neon_vtbx4v8qi): Likewise.
3524         (neon_vtrn<mode>_internal): Likewise.
3525         (neon_vzip<mode>_internal): Likewise.
3526         (neon_vuzp<mode>_internal): Likewise.
3527         (neon_vld1<mode>): Likewise.
3528         (neon_vld1_lane<mode>): Likewise.
3529         (neon_vld1_dup<mode>): Likewise.
3530         (neon_vld1_dupv2di): Likewise.
3531         (neon_vst1<mode>): Likewise.
3532         (neon_vst1_lane<mode>): Likewise.
3533         (neon_vld2<mode>): Likewise.
3534         (neon_vld2_lane<mode>): Likewise.
3535         (neon_vld2_dup<mode>): Likewise.
3536         (neon_vst2<mode>): Likewise.
3537         (neon_vst2_lane<mode>): Likewise.
3538         (neon_vld3<mode>): Likewise.
3539         (neon_vld3qa<mode>): Likewise.
3540         (neon_vld3qb<mode>): Likewise.
3541         (neon_vld3_lane<mode>): Likewise.
3542         (neon_vld3_dup<mode>): Likewise.
3543         (neon_vst3<mode>): Likewise.
3544         (neon_vst3qa<mode>): Likewise.
3545         (neon_vst3qb<mode>): Likewise.
3546         (neon_vst3_lane<mode>): Likewise.
3547         (neon_vld4<mode>): Likewise.
3548         (neon_vld4qa<mode>): Likewise.
3549         (neon_vld4qb<mode>): Likewise.
3550         (neon_vld4_lane<mode>): Likewise.
3551         (neon_vld4_dup<mode>): Likewise.
3552         (neon_vst4<mode>): Likewise.
3553         (neon_vst4qa<mode>): Likewise.
3554         (neon_vst4qb<mode>): Likewise.
3555         (neon_vst4_lane<mode>): Likewise.
3556         (neon_vec_unpack<US>_lo_<mode>): Likewise.
3557         (neon_vec_unpack<US>_hi_<mode>): Likewise.
3558         (neon_vec_<US>mult_lo_<mode>): Likewise.
3559         (neon_vec_<US>mult_hi_<mode>): Likewise.
3560         (neon_vec_<US>shiftl_<mode>): Likewise.
3561         (neon_unpack<US>_<mode>): Likewise.
3562         (neon_vec_<US>mult_<mode>): Likewise.
3563         (vec_pack_trunc_<mode>): Likewise.
3564         (neon_vec_pack_trunk_<mode>): Likewise.
3565         (neon_vabd<mode>_2): Likewise.
3566         (neon_vabd<mode>_3): Likewise.
3567         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
3568         (thumb2_movsi_vfp): Likewise.
3569         (movdi_vfp): Likewise.
3570         (movdi_vfp_cortexa8): Likewise.
3571         (movhf_vfp_neon): Likewise.
3572         (movhf_vfp): Likewiwse.
3573         (movsf_vfp): Likewiwse.
3574         (thumb2_movsf_vfp): Likewiwse.
3575         (movdf_vfp): Likewise.
3576         (thumb2_movdf_vfp): Likewise.
3577         (movsfcc_vfp): Likewise.
3578         (thumb2_movsfcc_vfp): Likewise.
3579         (movdfcc_vfp): Likewise.
3580         (thumb2_movdfcc_vfp): Likewise.
3581         * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
3582         * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
3583         (v10_v2c): Likewise.
3584         * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
3585         attribute change.
3586         (cortex_a15_neon_int_2): Likewise.
3587         (cortex_a15_neon_int_3): Likewise.
3588         (cortex_a15_neon_int_4): Likewise.
3589         (cortex_a15_neon_int_5): Likewise.
3590         (cortex_a15_neon_vqneg_vqabs): Likewise.
3591         (cortex_a15_neon_vmov): Likewise.
3592         (cortex_a15_neon_vaba): Likewise.
3593         (cortex_a15_neon_vaba_qqq): Likewise.
3594         (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
3595         (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
3596         (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
3597         scalar_64_32_long_scalar): Likewise.
3598         (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
3599         (cortex_a15_neon_mla_qqq_8_16): Likewise.
3600         (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
3601         lotype_qdd_64_32_long): Likewise.
3602         (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
3603         (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
3604         (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
3605         (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
3606         (cortex_a15_neon_shift_1): Likewise.
3607         (cortex_a15_neon_shift_2): Likewise.
3608         (cortex_a15_neon_shift_3): Likewise.
3609         (cortex_a15_neon_vshl_ddd): Likewise.
3610         (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
3611         (cortex_a15_neon_vsra_vrsra): Likewise.
3612         (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
3613         (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
3614         (cortex_a15_neon_fp_vmul_ddd): Likewise.
3615         (cortex_a15_neon_fp_vmul_qqd): Likewise.
3616         (cortex_a15_neon_fp_vmla_ddd): Likewise.
3617         (cortex_a15_neon_fp_vmla_qqq): Likewise.
3618         (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
3619         (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
3620         (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
3621         (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
3622         (cortex_a15_neon_bp_simple): Likewise.
3623         (cortex_a15_neon_bp_2cycle): Likewise.
3624         (cortex_a15_neon_bp_3cycle): Likewise.
3625         (cortex_a15_neon_vld1_1_2_regs): Likewise.
3626         (cortex_a15_neon_vld1_3_4_regs): Likewise.
3627         (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
3628         (cortex_a15_neon_vld2_4_regs): Likewise.
3629         (cortex_a15_neon_vld3_vld4): Likewise.
3630         (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
3631         (cortex_a15_neon_vst1_3_4_regs): Likewise.
3632         (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
3633         (cortex_a15_neon_vst3_vst4): Likewise.
3634         (cortex_a15_neon_vld1_vld2_lane): Likewise.
3635         (cortex_a15_neon_vld3_vld4_lane" 10
3636         (cortex_a15_neon_vst1_vst2_lane): Likewise.
3637         (cortex_a15_neon_vst3_vst4_lane): Likewise.
3638         (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
3639         (cortex_a15_neon_ldm_2): Likewise.0
3640         (cortex_a15_neon_stm_2): Likewise.
3641         (cortex_a15_neon_mcr): Likewise.
3642         (cortex_a15_neon_mcr_2_mcrr): Likewise.
3643         (cortex_a15_neon_mrc): Likewise.
3644         (cortex_a15_neon_mrrc): Likewise.
3645         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
3646         change.
3647         (cortex_a15_alu_shift): Likewise.
3648         (cortex_a15_alu_shift_reg): Likewise.
3649         (cortex_a15_mult32): Likewise.
3650         (cortex_a15_mult64): Likewise.
3651         (cortex_a15_block): Likewise.
3652         (cortex_a15_branch): Likewise.
3653         (cortex_a15_load1): Likewise.
3654         (cortex_a15_load3): Likewise.
3655         (cortex_a15_store1): Likewise.
3656         (cortex_a15_store3): Likewise.
3657         (cortex_a15_call): Likewise.
3658         * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
3659         (cortex_a5_f2r): Likewise.
3660         * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
3661         change.
3662         (cortex_a53_f2r): Likewise.
3663         * config/arm/cortex-a7.md
3664         (cortex_a7_branch): Update for attribute change.
3665         (cortex_a7_call): Likewise.
3666         (cortex_a7_alu_imm): Likewise.
3667         (cortex_a7_alu_reg): Likewise.
3668         (cortex_a7_alu_shift): Likewise.
3669         (cortex_a7_mul): Likewise.
3670         (cortex_a7_load1): Likewise.
3671         (cortex_a7_store1): Likewise.
3672         (cortex_a7_load2): Likewise.
3673         (cortex_a7_store2): Likewise.
3674         (cortex_a7_load3): Likewise.
3675         (cortex_a7_store3): Likewise.
3676         (cortex_a7_load4): Likewise.
3677         (cortex_a7_store4): Likewise.
3678         (cortex_a7_fpalu): Likewise.
3679         (cortex_a7_fconst): Likewise.
3680         (cortex_a7_fpmuls): Likewise.
3681         (cortex_a7_neon_mul): Likewise.
3682         (cortex_a7_fpmacs): Likewise.
3683         (cortex_a7_neon_mla: Likewise.
3684         (cortex_a7_fpmuld: Likewise.
3685         (cortex_a7_fpmacd: Likewise.
3686         (cortex_a7_fpfmad: Likewise.
3687         (cortex_a7_fdivs: Likewise.
3688         (cortex_a7_fdivd: Likewise.
3689         (cortex_a7_r2f: Likewise.
3690         (cortex_a7_f2r: Likewise.
3691         (cortex_a7_f_flags: Likewise.
3692         (cortex_a7_f_loads: Likewise.
3693         (cortex_a7_f_loadd: Likewise.
3694         (cortex_a7_f_stores: Likewise.
3695         (cortex_a7_f_stored: Likewise.
3696         (cortex_a7_neon): Likewise.
3697         * config/arm/cortex-a8-neon.md
3698         (cortex_a8_neon_mrc): Update for attribute change.
3699         (cortex_a8_neon_mrrc): Likewise.
3700         (cortex_a8_neon_int_1): Likewise.
3701         (cortex_a8_neon_int_2): Likewise.
3702         (cortex_a8_neon_int_3): Likewise.
3703         (cortex_a8_neon_int_4): Likewise.
3704         (cortex_a8_neon_int_5): Likewise.
3705         (cortex_a8_neon_vqneg_vqabs): Likewise.
3706         (cortex_a8_neon_vmov): Likewise.
3707         (cortex_a8_neon_vaba): Likewise.
3708         (cortex_a8_neon_vaba_qqq): Likewise.
3709         (cortex_a8_neon_vsma): Likewise.
3710         (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
3711         (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
3712         (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
3713         long_scalar): Likewise.
3714         (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
3715         (cortex_a8_neon_mla_qqq_8_16): Likewise.
3716         (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
3717         long_scalar_qdd_64_32_long): Likewise.
3718         (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
3719         (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
3720         (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
3721         (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
3722         (cortex_a8_neon_shift_1): Likewise.
3723         (cortex_a8_neon_shift_2): Likewise.
3724         (cortex_a8_neon_shift_3): Likewise.
3725         (cortex_a8_neon_vshl_ddd): Likewise.
3726         (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
3727         (cortex_a8_neon_vsra_vrsra): Likewise.
3728         (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
3729         (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
3730         (cortex_a8_neon_fp_vsum): Likewise.
3731         (cortex_a8_neon_fp_vmul_ddd): Likewise.
3732         (cortex_a8_neon_fp_vmul_qqd): Likewise.
3733         (cortex_a8_neon_fp_vmla_ddd): Likewise.
3734         (cortex_a8_neon_fp_vmla_qqq): Likewise.
3735         (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
3736         (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
3737         (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
3738         (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
3739         (cortex_a8_neon_bp_simple): Likewise.
3740         (cortex_a8_neon_bp_2cycle): Likewise.
3741         (cortex_a8_neon_bp_3cycle): Likewise.
3742         (cortex_a8_neon_ldr): Likewise.
3743         (cortex_a8_neon_str): Likewise.
3744         (cortex_a8_neon_vld1_1_2_regs): Likewise.
3745         (cortex_a8_neon_vld1_3_4_regs): Likewise.
3746         (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
3747         (cortex_a8_neon_vld2_4_regs): Likewise.
3748         (cortex_a8_neon_vld3_vld4): Likewise.
3749         (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
3750         (cortex_a8_neon_vst1_3_4_regs): Likewise.
3751         (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
3752         (cortex_a8_neon_vst3_vst4): Likewise.
3753         (cortex_a8_neon_vld1_vld2_lane): Likewise.
3754         (cortex_a8_neon_vld3_vld4_lane): Likewise.
3755         (cortex_a8_neon_vst1_vst2_lane): Likewise.
3756         (cortex_a8_neon_vst3_vst4_lane): Likewise.
3757         (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
3758         (cortex_a8_neon_mcr): Likewise.
3759         (cortex_a8_neon_mcr_2_mcrr): Likewise.
3760         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
3761         * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
3762         change.
3763         (ca9_neon_mrrc): Likewise.
3764         (cortex_a9_neon_int_1): Likewise.
3765         (cortex_a9_neon_int_2): Likewise.
3766         (cortex_a9_neon_int_3): Likewise.
3767         (cortex_a9_neon_int_4): Likewise.
3768         (cortex_a9_neon_int_5): Likewise.
3769         (cortex_a9_neon_vqneg_vqabs): Likewise.
3770         (cortex_a9_neon_vmov): Likewise.
3771         (cortex_a9_neon_vaba): Likewise.
3772         (cortex_a9_neon_vaba_qqq): Likewise.
3773         (cortex_a9_neon_vsma): Likewise.
3774         (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
3775         (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
3776         (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
3777         long_scalar): Likewise.
3778         (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
3779         (cortex_a9_neon_mla_qqq_8_16): Likewise.
3780         (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
3781         long_scalar_qdd_64_32_long): Likewise.
3782         (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
3783         (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
3784         (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
3785         (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
3786         (cortex_a9_neon_shift_1): Likewise.
3787         (cortex_a9_neon_shift_2): Likewise.
3788         (cortex_a9_neon_shift_3): Likewise.
3789         (cortex_a9_neon_vshl_ddd): Likewise.
3790         (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
3791         (cortex_a9_neon_vsra_vrsra): Likewise.
3792         (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
3793         (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
3794         (cortex_a9_neon_fp_vsum): Likewise.
3795         (cortex_a9_neon_fp_vmul_ddd): Likewise.
3796         (cortex_a9_neon_fp_vmul_qqd): Likewise.
3797         (cortex_a9_neon_fp_vmla_ddd): Likewise.
3798         (cortex_a9_neon_fp_vmla_qqq): Likewise.
3799         (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
3800         (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
3801         (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
3802         (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
3803         (cortex_a9_neon_bp_simple): Likewise.
3804         (cortex_a9_neon_bp_2cycle): Likewise.
3805         (cortex_a9_neon_bp_3cycle): Likewise.
3806         (cortex_a9_neon_ldr): Likewise.
3807         (cortex_a9_neon_str): Likewise.
3808         (cortex_a9_neon_vld1_1_2_regs): Likewise.
3809         (cortex_a9_neon_vld1_3_4_regs): Likewise.
3810         (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
3811         (cortex_a9_neon_vld2_4_regs): Likewise.
3812         (cortex_a9_neon_vld3_vld4): Likewise.
3813         (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
3814         (cortex_a9_neon_vst1_3_4_regs): Likewise.
3815         (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
3816         (cortex_a9_neon_vst3_vst4): Likewise.
3817         (cortex_a9_neon_vld1_vld2_lane): Likewise.
3818         (cortex_a9_neon_vld3_vld4_lane): Likewise.
3819         (cortex_a9_neon_vst1_vst2_lane): Likewise.
3820         (cortex_a9_neon_vst3_vst4_lane): Likewise.
3821         (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
3822         (cortex_a9_neon_mcr): Likewise.
3823         (cortex_a9_neon_mcr_2_mcrr): Likewise.
3824         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
3825         (cortex_a9_fps): Likewise.
3826         * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
3827         change.
3828         (cortex_m4_fmuls): Likewise.
3829         * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
3830         change.
3831         (cortex_r4_mrc): Likewise.
3832         * config/arm/iterators.md: Update comment referring to neon_type.
3833         * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
3834         (iwmmxt_movsi_insn): Likewise.
3835         * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
3836         attribute change.
3837         (pj4_core_to_vfp): Likewise.
3838         * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
3839         attribute change.
3840         * config/arm/vfp11.md (vfp_fload): Update for attribute change.
3841         (vfp_fstore): Likewise.
3842         * doc/md.texi: Change references to neon_type to refer to type.
3844 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
3846         * tree.h (DECL_BUILT_IN): Fix typo in comment.
3848 2013-09-04  David Edelsohn  <dje.gcc@gmail.com>
3850         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
3851         lglobl if not weak.
3853 2013-09-04  Easwaran Raman  <eraman@google.com>
3855         PR middle-end/57370
3856         * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
3857         (build_and_add_sum): Use it.
3858         (appears_later_in_bb): Simplify code.
3860 2013-09-04  Teresa Johnson  <tejohnson@google.com>
3862         * dumpfile.c (dump_finish): Don't close stderr/stdout.
3864 2013-09-04  James Greenhalgh  <james.greenhalgh@arm.com>
3866         * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
3868 2013-09-04  Jan Hubicka  <jh@suse.cz>
3870         * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
3871         * ipa-devirt.c: Include diganostic.h
3872         (odr_type_d): Add types and types_set.
3873         (hash_type_name): Work for types with vtables during LTO.
3874         (odr_hasher::remove): Fix comment; destroy types_set.
3875         (add_type_duplicate): New function,
3876         (get_odr_type): Use it.
3877         (dump_type_inheritance_graph): Dump type duplicates.
3878         * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
3879         graph.
3880         * tree.c (types_same_for_odr): Give exact answers on types with
3881         virtual tables.
3883 2013-09-04  Dodji Seketeli  <dodji@redhat.com>
3885         * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
3886         explaining their differences.
3888 2013-09-04  Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
3890         * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
3892 2013-09-03  Jeff Law  <law@redhat.com>
3894         * tree-ssa-threadedge.c (thread_across_edge): Record entire path
3895         when not threading through a joiner block.  Pass joiner/no joiner
3896         state to register_jump_thread.
3897         * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
3898         state from argument rather than implying on path length.
3899         Dump the entire jump thread path into debugging dump.
3900         * tree-flow.h (register_jump_thread): Update prototype.
3902 2013-08-29  Xinliang David Li  <davidxl@google.com>
3904         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3905         Remove a trivial gcc_assert.
3907 2013-08-29  Xinliang David Li  <davidxl@google.com>
3909         * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
3910         * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
3911         * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
3912         Delay base decl alignment adjustment.
3913         * tree-vectorizer.c (vect_destroy_datarefs): New function.
3914         * tree-vectorizer.h: New data structure.
3915         (set_dr_misalignment): New function.
3916         (dr_misalignment): Ditto.
3917         * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
3918         (vectorizable_load): Ditto.
3919         (ensure_base_align): New function.
3920         (vectorize_loops): Add dbg_cnt support.
3921         (execute_vect_slp): Ditto.
3922         * dbgcnt.def: New debug counter.
3923         * Makefile: New dependency.
3925 2013-09-03  Meador Inge  <meadori@codesourcery.com>
3927         Revert:
3929         2013-08-30  Meador Inge  <meadori@codesourcery.com>
3931         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
3933 2013-09-03  David Edelsohn  <dje.gcc@gmail.com>
3935         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
3936         function descriptor.
3938 2013-09-03  Richard Biener  <rguenther@suse.de>
3940         * tree-affine.c (add_elt_to_tree): Fix association issue,
3941         avoid useless converts and make sure to always return a
3942         properly typed result.
3944 2013-09-03  Richard Biener  <rguenther@suse.de>
3946         PR middle-end/57656
3947         * fold-const.c (negate_expr_p): Fix division case.
3948         (negate_expr): Likewise.
3950 2013-09-03  Richard Biener  <rguenther@suse.de>
3952         PR lto/58285
3953         * tree-streamer-out.c: Include tm.h.
3954         * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
3956 2013-09-03  Jan Hubicka  <jh@suse.cz>
3958         * tree-profile.c (tree_profiling): Cleanup CFG when done.
3960 2013-09-03  Alan Modra  <amodra@gmail.com>
3962         * config.gcc (powerpc*-*-linux*): Add support for little-endian
3963         multilibs to big-endian target and vice versa.
3964         * config/rs6000/t-linux64: Use := assignment on all vars.
3965         (MULTILIB_EXTRA_OPTS): Remove fPIC.
3966         (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
3967         * config/rs6000/t-linux64le: New file.
3968         * config/rs6000/t-linux64bele: New file.
3969         * config/rs6000/t-linux64lebe: New file.
3971 2013-09-02  Jan Hubicka  <jh@suse.cz>
3973         * ipa-inline-transform.c (inline_transform): Do not
3974         optimize_inline_calls when not optimizing.
3976 2013-09-02  Jan Hubicka  <jh@suse.cz>
3978         * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
3979         duplicated nodes for assembler names.
3980         * symtab.c (symtab_unregister_node): Do not attempt to unlink
3981         hard registers from assembler name hash.
3983 2013-09-02  Jan Hubicka  <jh@suse.cz>
3985         * ipa-split.c (execute_split_functions): Split externally visible
3986         functions called once.
3988 2013-09-02  Martin Jambor  <mjambor@suse.cz>
3990         PR ipa/58106
3991         * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
3992         linked list.  When finding the correct duplicate, also consider also
3993         the caller in additon to its inlined_to node.
3995 2013-09-02  James Greenhalgh  <james.greenhalgh@arm.com>
3997         * config/aarch64/aarch64-simd-builtins.def
3998         (dup_lane_scalar): Remove.
3999         * config/aarch64/aarch64-simd.md
4000         (aarch64_simd_dup): Add 'w->w' alternative.
4001         (aarch64_dup_lane<mode>): Allow for VALL.
4002         (aarch64_dup_lane_scalar<mode>): Remove.
4003         (aarch64_dup_lane_<vswap_width_name><mode>): New.
4004         (aarch64_get_lane_signed<mode>): Add w->w altenative.
4005         (aarch64_get_lane_unsigned<mode>): Likewise.
4006         (aarch64_get_lane<mode>): Likewise.
4007         * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
4008         (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
4009         * config/aarch64/iterators.md (VSWAP_WIDTH): New.
4010         (VCON): Change container of V2SF.
4011         (vswap_width_name): Likewise.
4012         * config/aarch64/arm_neon.h
4013         (__aarch64_vdup_lane_any): New.
4014         (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
4015         (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
4016         (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
4018 2013-09-02  Eric Botcazou  <ebotcazou@adacore.com>
4020         PR middle-end/56382
4021         * expr.c (emit_move_complex): Do not move complex FP values as parts if
4022         the source or the destination is a single hard register.
4024 2013-09-02  Richard Biener  <rguenther@suse.de>
4026         PR middle-end/57511
4027         * tree-scalar-evolution.c (instantiate_scev_name): Allow
4028         non-linear SCEVs.
4030 2013-09-02  Richard Biener  <rguenther@suse.de>
4032         * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
4033         arithmetic to sizetype.
4035 2013-09-02  Bin Cheng  <bin.cheng@arm.com>
4037         * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
4038         Find auto-increment use both before and after candidate.
4040 2013-09-02  Marek Polacek  <polacek@redhat.com>
4042         * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
4044 2013-09-01  Jan Hubicka  <jh@suse.cz>
4046         * Makefile.in: Add ipa-profile.o
4047         (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
4048         * cgraph.c (struct cgraph_propagate_frequency_data,
4049         cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
4050         ipa-profile.c; replace cgraph_ by ipa_ prefix.
4051         * cgraph.h (cgraph_propagate_frequency): Remove.
4052         * ipa-inline-analysis.c: Include ipa-utils.h;
4053         drop duplicated cfgloop.h.
4054         (inline_update_callee_summaries): Update.
4055         * ipa-profile.c: New file.
4056         * ipa-utils.h (ipa_propagate_frequency): Declare.
4057         * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
4058         data-streamer.h, value-prof.h.
4059         (symtab_remove_unreachable_nodes): Update profile.
4060         (struct histogram_entry, histogram, histogram_pool, histogram_hash,
4061         account_time_size, cmp_counts, dump_histogram,
4062         ipa_profile_generate_summary, ipa_profile_write_summary,
4063         ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
4064         pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
4065         Move to ipa-profile.c.
4067 2013-09-01  John David Anglin  <danglin@gcc.gnu.org>
4069         * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
4071 2013-09-01  Jan Hubicka  <jh@suse.cz>
4073         * common.opt (fdevirtualize-speculatively): New function.
4074         * invoke.texi (fdevirtualize-speculatively): Document.
4075         * ipa-devirt.c: Include ipa-inline.h
4076         (likely_target_p): New function.
4077         (ipa_devirt): New function.
4078         (gate_ipa_devirt): New function.
4079         (pass_data_ipa_devirt): New static var.
4080         (pass_ipa_devirt): Likewise.
4081         (make_pass_ipa_devirt): New function.
4082         * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
4083         (common_handle_option): Disable devirtualization when
4084         value range profiling is available.
4085         * passes.def (pass_ipa_devirt): Add.
4086         * timever.def (TV_IPA_DEVIRT): New timevar.
4087         * tree-pass.h (make_pass_ipa_devirt):
4089 2013-09-01  Iain Sandoe  <iain@codesourcery.com>
4091         * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
4092         include sanitize(undefined).
4094 2013-08-31  Diego Novillo  <dnovillo@google.com>
4096         * Makefile.in (TREE_CORE_H): Define.
4097         (TREE_H): Use.
4098         (GTFILES): Add tree-core.h.
4099         * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
4100         size the array.
4101         * tree-core.h: New file.
4102         Move all data structures, enum, typedefs, global
4103         declarations and constants from ...
4104         * tree.h: ... here.
4106 2013-08-31  Jan Hubicka  <jh@suse.cz>
4108         * bulitins.c (expand_builtin): Do not early exit for gcov
4109         instrumented functions.
4111 2013-08-31  Marek Polacek  <polacek@redhat.com>
4113         * ubsan.c: Include tm_p.h.
4115 2013-08-31  Jan Hubicka  <jh@suse.cz>
4117         * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
4118         warning.
4120         * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
4121         * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
4122         * tree-cfg.c (verify_gimple_label): ... here.
4123         * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
4124         (ipa_merge_profiles): New function.
4125         * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
4126         (lto_input_function_body): Likewise.
4127         * ipa-utils.h (ipa_merge_profiles): Declare.
4128         * lto-streamer.h (lto_input_function_body): Update prototype.
4129         (emit_label_in_global_context_p): Remove.
4130         * lto-symtab.c: Include ipa-utils.h
4131         (lto_cgraph_replace_node): Use ipa_merge_profiles.
4133 2013-08-31  Jan Hubicka  <jh@suse.cz>
4135         * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
4137 2013-08-31  Jan Hubicka  <jh@suse.cz>
4139         * basic-block.h (apply_scale): Make scale parmeter gcov_type.
4141 2013-08-31  Uros Bizjak  <ubizjak@gmail.com>
4143         * config/alpha/alpha.c (alpha_emit_conditional_move): Update
4144         "cmp" RTX before signed_comparison_operator check to account
4145         for "code" changes.
4147 2013-08-30  Jan Hubicka  <jh@suse.cz>
4149         * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
4150         (detect_type_change_1): Rename to ...
4151         (detect_type_change): ... this one; early return on non-polymorphic
4152         types.
4153         (detect_type_change_ssa): Add comp_type parameter; update
4154         use of detect_type_change.
4155         (compute_complex_assign_jump_func): Add param_type parameter;
4156         update use of detect_type_change_ssa.
4157         (compute_complex_ancestor_jump_func): Likewise.
4158         (ipa_get_callee_param_type): New function.
4159         (ipa_compute_jump_functions_for_edge): Compute parameter type;
4160         update calls to the jump function computation functions.
4162 2013-08-30  Teresa Johnson  <tejohnson@google.com>
4163             Steven Bosscher  <steven@gcc.gnu.org>
4165         * cfgrtl.c (fixup_new_cold_bb): New routine.
4166         (commit_edge_insertions): Invoke fixup_partitions.
4167         (find_partition_fixes): New routine.
4168         (fixup_partitions): Ditto.
4169         (verify_hot_cold_block_grouping): Update comments.
4170         (rtl_verify_edges): Invoke find_partition_fixes.
4171         (rtl_verify_bb_pointers): Update comments.
4172         (rtl_verify_bb_layout): Ditto.
4173         * basic-block.h (probably_never_executed_edge_p): Declare.
4174         (fixup_partitions): Ditto.
4175         * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
4176         * bb-reorder.c (sanitize_hot_paths): New function.
4177         (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
4178         sanitize_hot_paths.
4179         * predict.c (probably_never_executed_edge_p): New routine.
4180         * cfg.c (check_bb_profile): Add partition insanity warnings.
4182 2013-08-30  Meador Inge  <meadori@codesourcery.com>
4184         * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
4186 2013-08-30  Marek Polacek  <polacek@redhat.com>
4188         * Makefile.in (ubsan.o): Add.
4189         (c-family/c-ubsan.o): Add.
4190         (builtins.o): Add ubsan.h dependency.
4191         * ubsan.h: New file.
4192         * ubsan.c: New file.
4193         * common.opt: Add -fsanitize=undefined option.
4194         (flag_sanitize): Add variable.
4195         (fsanitize=): Add option.  Add Driver.
4196         (fsanitize=thread): Remove option.
4197         (fsanitize=address): Likewise.
4198         (static-libubsan): New option.
4199         * doc/invoke.texi: Document the new flag and -static-libubsan.
4200         * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
4201         (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
4202         * builtin-attrs.def (ATTR_COLD): Define.
4203         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
4204         * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
4205         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
4206         * flag-types.h (sanitize_code): New enum.
4207         * opts.c (common_handle_option): Parse command line arguments
4208         of -fsanitize=.  Add -fsanitize=unreachable option.
4209         * varasm.c (get_variable_section): Adjust.
4210         (assemble_noswitch_variable): Likewise.
4211         (assemble_variable): Likewise.
4212         (output_constant_def_contents): Likewise.
4213         (categorize_decl_for_section): Likewise.
4214         (place_block_symbol): Likewise.
4215         (output_object_block): Likewise.
4216         * builtins.def: Likewise.
4217         * toplev.c (compile_file): Likewise.
4218         (process_options): Likewise.
4219         * cppbuiltin.c: Likewise.
4220         * tsan.c (tsan_pass): Likewise.
4221         (tsan_gate): Likewise.
4222         (tsan_gate_O0): Likewise.
4223         * cfgexpand.c (partition_stack_vars): Likewise.
4224         (expand_stack_vars): Likewise.
4225         (defer_stack_allocation): Likewise.
4226         (expand_used_vars): Likewise.
4227         * cfgcleanup.c (old_insns_match_p): Likewise.
4228         * asan.c (asan_finish_file): Likewise.
4229         (asan_instrument): Likewise.
4230         (gate_asan): Likewise.
4231         (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
4232         (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
4233         (asan_global_struct): Use pointer_sized_int_node instead
4234         calling build_nonstandard_integer_type.
4235         (initialize_sanitizer_builtins): Likewise.
4236         (asan_finish_file): Likewise.
4237         * gcc.c: Document %{%:function(args):X}.
4238         (static_spec_functions): Add sanitize.
4239         (handle_spec_function): Add retval_nonnull argument and if non-NULL,
4240         store funcval != NULL there.
4241         (do_spec_1): Adjust handle_spec_function caller.
4242         (handle_braces): Allow %:function(args) as condition.
4243         (sanitize_spec_function): New function.
4244         (ADD_STATIC_LIBUBSAN_LIBS): Define.
4245         (LIBUBSAN_SPEC): Likewise.
4246         (LIBUBSAN_EARLY_SPEC): Likewise.
4247         (SANITIZER_SPEC): Handle libubsan.
4248         (SANITIZER_EARLY_SPEC): Likewise.
4249         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
4250         instead of fsanitize=address.
4251         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
4252         instead of fsanitize=address*.
4253         * builtins.c: Include ubsan.h.
4254         (fold_builtin_0): Instrument __builtin_unreachable.
4255         * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
4256         instead of flag_asan.
4257         * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
4258         (pointer_sized_int_node): Define.
4259         * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
4261 2013-08-30  Mike Stump  <mikestump@comcast.net>
4263         * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
4264         with RE patterns.
4266 2013-08-29  Jan Hubicka  <jh@suse.cz>
4268         * cgraph.c (cgraph_function_body_availability): Handle weakref
4269         correctly.
4270         * passes.def: Remove pass_fixup_cfg.
4271         * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
4272         track when we need to remove functions.
4273         (gate_ipa_inline): Execute inlining always; add comment why.
4274         (pass_data_ipa_inline): Remove TODO_remove_functions.
4275         * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
4276         do not produce summaries.
4277         * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
4278         (symtab_nonoverwritable_alias): Assert we are not called on weakref.
4279         * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
4280         constant pool and vtable.
4282 2013-08-30  Tejas Belagod  <tejas.belagod@arm.com>
4284         * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
4285         New arm_neon.h's internal macros to specify 64-bit constants.
4286         Avoid using stdint.h's macros.
4288 2013-08-30  Joern Rennecke  <joern.rennecke@embecosm.com>
4290         * recog.c (verify_changes): Verify that changes[i].old is non-zero
4291         before applying REG_P.
4293 2013-08-30  Jakub Jelinek  <jakub@redhat.com>
4295         PR tree-optimization/58277
4296         * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
4297         after seeing too many stmts with vdef in between dombb and current
4298         bb, invalidate everything.
4300 2013-08-30  Richard Biener  <rguenther@suse.de>
4302         * fold-const.c (fold_single_bit_test): Fix overflow test.
4304 2013-08-30  Eric Botcazou  <ebotcazou@adacore.com>
4306         * function.c (assign_parm_setup_reg): For a parameter passed by pointer
4307         and which can live in a register, always retrieve the value on entry.
4308         * var-tracking.c (add_stores): Treat the copy on entry for a parameter
4309         passed by invisible reference specially.
4310         (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
4311         (vt_add_function_parameter): Correctly deal with a parameter passed by
4312         invisible reference.
4314 2013-08-30  Jan Hubicka  <jh@suse.cz>
4316         * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
4318 2013-08-30  Richard Biener  <rguenther@suse.de>
4320         PR tree-optimization/58228
4321         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
4322         allow invariant loads in nested loop vectorization.
4324 2013-08-30  Richard Biener  <rguenther@suse.de>
4326         PR tree-optimization/58223
4327         * tree-loop-distribution.c (has_anti_dependence): Rename to ...
4328         (has_anti_or_output_dependence): ... this and adjust to also
4329         look for output dependences.
4330         (mark_nodes_having_upstream_mem_writes): Adjust.
4331         (rdg_flag_uses): Likewise.
4333 2013-08-30  Richard Biener  <rguenther@suse.de>
4335         PR tree-optimization/58010
4336         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
4337         assert that we have a loop-closed PHI.
4339 2013-08-29  Jan Hubicka  <jh@suse.cz>
4341         * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
4342         * cgraph.c (cgraph_release_function_body): Free decl_in_state.
4343         * lto-section-in.c (lto_free_function_in_decl_state): New function.
4344         (lto_free_function_in_decl_state_for_node): New function.
4346 2013-08-29  Xinliang David Li  <davidxl@google.com>
4348         * loop-unroll.c (report_unroll_peel): Minor message change.
4349         * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
4350         Emit alignment peeling message with default -fopt-info.
4351         (vect_loop_versioning): Emit loop version info message.
4352         * tree-vectorizer.c (vectorize_loops): Minor message change.
4353         (execute_vect_slp): Ditto.
4355 2013-08-29  Eric Botcazou  <ebotcazou@adacore.com>
4357         * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
4358         of the clone from the DECL_NAME of the original function.
4360 2013-08-29  Oleg Endo  <olegendo@gcc.gnu.org>
4362         * passes.c (register_pass): Add overload.
4363         * tree-pass.h (register_pass): Forward declare it.  Add comment.
4365 2013-08-29  Jan Hubicka  <jh@suse.cz>
4367         * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
4368         DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
4369         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
4370         DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
4371         (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
4372         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
4373         Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
4374         (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
4376 2013-08-29  Teresa Johnson  <tejohnson@google.com>
4378         * dumpfile.c (dump_loc): Output column number.
4379         * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
4380         * doc/invoke.texi: Document optall -fopt-info flag.
4381         * profile.c (read_profile_edge_counts): Use new dump framework.
4382         (compute_branch_probabilities): Ditto.
4383         * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
4384         when pass not in any opt group.
4385         * pass_manager.h (pass_manager::get_pass_profile): New method.
4386         * value-prof.c (check_counter): Use new dump framework.
4387         (check_ic_target): Ditto.
4388         * coverage.c (get_coverage_counts): Ditto.
4389         (coverage_init): Setup new dump framework.
4391 2013-08-29  Richard Biener  <rguenther@suse.de>
4393         PR tree-optimization/58246
4394         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
4395         handle the dominance check inside a basic-block.
4397 2013-08-29  Richard Biener  <rguenther@suse.de>
4399         PR middle-end/57287
4400         * tree-ssa-copy.c (may_propagate_copy): Allow propagating
4401         of default defs that appear in abnormal PHI nodes.
4403 2013-08-29  Richard Biener  <rguenther@suse.de>
4405         PR tree-optimization/57685
4406         * tree-vrp.c (register_edge_assert_for_1): Recurse only for
4407         single-use operands to avoid exponential complexity.
4409 2013-08-28  Dehao Chen  <dehao@google.com>
4411         * ipa-inline.c (edge_badness): Fix integer underflow.
4413 2013-08-28  Uros Bizjak  <ubizjak@gmail.com>
4415         * gtm-builtins.def (_ITM_free): Declare leaf.
4417 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
4419         PR target/58067
4420         * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
4421         (*tls_local_dynamic_base_64_largepic): Likewise.
4422         (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
4423         Remove predicate from call operand.
4424         * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
4425         return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
4427 2013-08-28  Jeff Law  <law@redhat.com>
4429         * tree-ssa-threadedge.c (thread_around_empty_block): Remove
4430         checks for the number of predecessors and successors allowed.
4431         * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
4432         which require copying a joiner block if there is a request which
4433         is a subpath that requires no joiner block copying.
4435 2013-08-28  Jan Hubicka  <jh@suse.cz>
4437         * lto-streamer-out.c (DFS_write_tree_body): Drop
4438         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
4439         (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
4440         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
4441         * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
4442         Do not read DECL_ERROR_ISSUED.
4443         (unpack_ts_decl_with_vis_value_fields): Do not read
4444         DECL_DEFER_OUTPUT.
4445         (lto_input_ts_binfo_tree_pointers): Do not read
4446         BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
4447         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
4448         write DECL_ERROR_ISSUED..
4449         (pack_ts_decl_with_vis_value_fields): Do not write
4450         DECL_DEFER_OUTPUT.
4451         (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
4452         BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
4453         * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
4454         * tree.h (tree_decl_common): Update comment.
4455         (DECL_ERROR_ISSUED): Remove.
4457 2013-08-28  Jakub Jelinek  <jakub@redhat.com>
4459         PR middle-end/58257
4460         * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
4462 2013-08-28  Jan Hubicka  <jh@suse.cz>
4464         * builtins.def (free): Declare leaf.
4466 2013-08-27  David Malcolm  <dmalcolm@redhat.com>
4468         * gdbhooks.py: New.
4469         * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
4470         * configure: Regenerate.
4472 2013-08-27  Martin Jambor  <mjambor@suse.cz>
4474         * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
4475         (ipa_ancestor_jf_data): Likewise.
4476         (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
4477         (ipa_get_jf_pass_through_type_preserved): New function.
4478         (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
4479         (ipa_get_jf_ancestor_type_preserved): New function.
4480         * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
4481         (ipa_get_jf_ancestor_result): Likewise.
4482         (propagate_vals_accross_pass_through): Use
4483         ipa_get_jf_pass_through_result to do all the value mappings.
4484         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
4485         type_preserved flag.
4486         (ipa_set_jf_cst_copy): New function.
4487         (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
4488         (ipa_set_jf_arith_pass_through): Likewise.
4489         (ipa_set_ancestor_jf): Likewise.
4490         (compute_complex_assign_jump_func): Set type_preserved instead of
4491         punting.
4492         (ipa_compute_jump_functions_for_edge): Likewise.
4493         (combine_known_type_and_ancestor_jfs): Honor type_preserved.
4494         (update_jump_functions_after_inlining): Update type_preserved.
4495         Explicitely create jump functions when combining one with pass_through.
4496         (ipa_write_jump_function): Stream the type_preserved flags.
4497         (ipa_read_jump_function): Likewise.
4499 2013-08-27  Jakub Jelinek  <jakub@redhat.com>
4500             Aldy Hernandez  <aldyh@redhat.com>
4502         * Makefile.in (omp-low.o): Depend on $(TARGET_H).
4503         * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
4504         * function.h (struct function): Add has_force_vect_loops and
4505         has_simduid_loops.
4506         * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
4507         * gimple.c (gimple_build_omp_critical): Add KIND argument and
4508         handle it.
4509         * gimple.def: Update CLAUSES comments.
4510         * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
4511         (gimple_build_omp_for): Add argument to prototype.
4512         (gimple_omp_for_kind): New.
4513         (gimple_omp_for_set_kind): New.
4514         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
4515         GOVD_DATA_SHARE_CLASS.
4516         (enum omp_region_type): Add ORT_SIMD.
4517         (gimple_add_tmp_var): Handle ORT_SIMD.
4518         (gimplify_var_or_parm_decl): Same.
4519         (is_gimple_stmt): Same.
4520         (omp_firstprivatize_variable): Same.
4521         (omp_add_variable): Only use splay_tree_insert if lookup failed.
4522         (omp_notice_variable): Handle ORT_SIMD.
4523         (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
4524         (omp_check_private): Handle ORT_SIMD.
4525         (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
4526         OMP_CLAUSE_SAFELEN.
4527         (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
4528         Handle OMP_CLAUSE_LASTPRIVATE.
4529         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
4530         OMP_CLAUSE_SAFELEN.
4531         (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
4532         (gimplify_expr): Handle OMP_SIMD.
4533         * internal-fn.c (expand_GOMP_SIMD_LANE): New.
4534         (expand_GOMP_SIMD_VF): New.
4535         (expand_GOMP_SIMD_LAST_LANE): New.
4536         * internal-fn.def (GOMP_SIMD_LANE): New.
4537         (GOMP_SIMD_VF): New.
4538         (GOMP_SIMD_LAST_LANE): New.
4539         * omp-low.c: Include target.h.
4540         (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
4541         OMP_CLAUSE_SAFELEN.
4542         (check_omp_nesting_restrictions): Same.
4543         (omp_max_vf): New.
4544         (lower_rec_simd_input_clauses): New.
4545         (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
4546         OMP_CLAUSE_LINEAR.
4547         (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
4548         GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
4549         (expand_omp_build_assign): New.
4550         (expand_omp_for_init_counts): New.
4551         (expand_omp_for_init_vars): New.
4552         (extract_omp_for_update_vars): New.
4553         (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
4554         and rewrite accordingly.
4555         (expand_omp_simd): New.
4556         (expand_omp_for): Use expand_omp_simd.
4557         (lower_omp_for_lastprivate): Unshare vinit when appropriate.
4558         (lower_omp_for): Do not lower the body.
4559         * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
4560         in their own loops.
4561         * tree-flow.h (find_omp_clause): Remove prototype.
4562         * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
4563         forcing vectorization of the loop, or if flag_tree_vectorize.
4564         (gate_tree_if_conversion): Similarly.
4565         * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
4566         gimple_build_omp_for.
4567         (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
4568         * tree-parloops (create_parallel_loop): Pass kind argument to
4569         gimple_build_omp_for.
4570         * tree-pretty-print.c (dump_omp_clause): Add cases for
4571         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
4572         OMP_CLAUSE__SIMDUID_.
4573         (dump_generic_node): Handle OMP_SIMD.
4574         * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
4575         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
4576         unroll OMP_SIMD loops here.
4577         * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
4578         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
4579         loop->safelen.
4580         (vect_analyze_data_refs): Handle simd loops.
4581         * tree-vect-loop.c (vectorizable_live_operation): Handle
4582         IFN_GOMP_SIMD*.
4583         * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
4584         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
4585         (vectorizable_load): Same.
4586         * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
4587         (struct simduid_to_vf): New.
4588         (simduid_to_vf::hash): New.
4589         (simduid_to-vf::equal): New.
4590         (struct simd_array_to_simduid): New.
4591         (simd_array_to_simduid::hash): New.
4592         (simd_array_to_simduid::equal): New.
4593         (adjust_simduid_builtins): New.
4594         (struct note_simd_array_uses_struct): New.
4595         (note_simd_array_uses_cb): New.
4596         (note_simd_array_uses): New.
4597         (vectorize_loops): Handle simd hints and adjust simd builtins
4598         accordingly.
4599         * tree-vectorizer.h (struct _stmt_vec_info): Add
4600         simd_lane_access_p field.
4601         (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
4602         * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
4603         OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
4604         (omp_clause_code_name): Same.
4605         (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
4606         OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
4607         * tree.def (OMP_SIMD): New entry.
4608         * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
4609         OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
4610         (OMP_CLAUSE_DECL): Adjust range for new clauses.
4611         (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
4612         (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
4613         (OMP_CLAUSE_LINEAR_STEP): New.
4614         (OMP_CLAUSE_SAFELEN_EXPR): New.
4615         (OMP_CLAUSE__SIMDUID__DECL): New.
4616         (find_omp_clause): New prototype.
4618 2013-08-27  H.J. Lu  <hongjiu.lu@intel.com>
4620         * config/i386/driver-i386.c (host_detect_local_cpu): Update
4621         Haswell processor detection.
4623 2013-08-27  Christian Widmer  <shadow@umbrox.de>
4625         PR target/57927
4626         * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
4627         of Ivy Bridge and Haswell processors.  Assume core-avx2 for unknown
4628         AVX2 capable processors.
4630 2013-08-27  Tejas Belagod  <tejas.belagod@arm.com>
4632         * config/aarch64/arm_neon.h: Replace all inline asm implementations
4633         of vget_low_* with implementations in terms of other intrinsics.
4635 2013-08-27  Marc Glisse  <marc.glisse@inria.fr>
4637         PR middle-end/57219
4638         * doc/extend.texi (__builtin_isinf_sign): Restrict the return
4639         values to -1, 0 and 1.
4641 2013-08-27  Vidya Praveen  <vidyapraveen@arm.com>
4643         * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
4644         UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
4645         (<optab><mode>3_insn): Remove.
4646         (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
4647         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
4648         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
4649         (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
4650         (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
4651         (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
4652         (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
4653         (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
4654         (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
4655         (ror<mode>3_insn): Likewise.
4656         * config/aarch64/predicates.md (aarch64_simd_register): New.
4658 2013-08-27  Richard Biener  <rguenther@suse.de>
4660         PR tree-optimization/57521
4661         * tree-if-conv.c (if_convertible_bb_p): Verify that at least
4662         one edge is non-critical.
4663         (find_phi_replacement_condition): Make sure to use a non-critical
4664         edge.  Cleanup and remove old bug workarounds.
4665         (bb_postdominates_preds): Remove.
4666         (if_convertible_loop_p_1): Do not compute post-dominators.
4667         (combine_blocks): Do not free post-dominators.
4668         (main_tree_if_conversion): Likewise.
4669         (pass_data_if_conversion): Add TODO_verify_ssa.
4671 2013-08-27  DJ Delorie  <dj@redhat.com>
4673         * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
4675 2013-08-27  Yufeng Zhang  <yufeng.zhang@arm.com>
4677         * function.c (assign_parm_find_data_types): Set passed_mode and
4678         nominal_mode to the TYPE_MODE of nominal_type for the built
4679         pointer type in case of the struct-pass-by-reference.
4681 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4683         * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
4684         (UINT16_TYPE): Change default to "unsigned int".
4686         * config/avr/avr.opt (mfract-convert-truncate): New option.
4687         * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
4688         is set, round negative fractional integers according to n1169
4689         when converting to integer types.
4691 2013-08-26  Jan Hubicka  <jh@suse.cz>
4693         * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
4694         methods can not be called indirectly when their address is not taken.
4696 2013-08-26  Jan Hubicka  <jh@suse.cz>
4698         * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
4699         ctor_for_folding.
4701 2013-08-26  Jan Hubicka  <jh@suse.cz>
4703         * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
4704         can be unshared.
4706 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4708         * reload.c (find_valid_class): Allow classes that do not include
4709         FIRST_PSEUDO_REGISTER - 1.
4711 2013-08-26  Jan Hubicka  <jh@suse.cz>
4713         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
4714         fix edge count/frequency when speculation failed; fix type check
4715         for the direct call.
4717 2013-08-26  Jan Hubicka  <jh@suse.cz>
4719         * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
4721 2013-08-26  Jan Hubicka  <jh@suse.cz>
4723         * ipa-inline-transform.c (inline_transform): Be ready for basic block
4724         to be changed by edge redirection.
4726 2013-08-26  Jan Hubicka  <jh@suse.cz>
4728         * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
4729         formating; add sanity check.
4730         (cgraph_resolve_speculation): Add FIXME about scaling profiles.
4731         (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
4732         * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
4733         (resolve_noninline_speculation): Update callee keys, too.
4735 2013-08-26  Jan Hubicka  <jh@suse.cz>
4737         * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
4738         (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
4740 2013-08-26  Joern Rennecke  <joern.rennecke@embecosm.com>
4742         * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
4743         into proper place.
4745 2013-08-26  Uros Bizjak  <ubizjak@gmail.com>
4747         * config/i386/i386.c (ix86_debug_options): Remove prototype.
4748         (x86_64_elf_select_section): Ditto.
4749         (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
4750         arguments.
4751         (ix86_pass_by_reference): Ditto.
4752         (output_set_got): Ditto.
4753         (ix86_unary_operator_ok): Ditto.
4754         (ix86_expand_builtin): Ditto.
4756 2013-08-23  Jan Hubicka  <jh@suse.cz>
4758         * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
4760 2013-08-23  Jan Hubicka  <jh@suse.cz>
4762         * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
4763         (tree_decl_with_vis): Add FINAL field.
4765 2013-08-23  Jeff Law  <law@redhat.com>
4767         * tree-ssa-pre.c (do_regular_insertion): Include the expression in
4768         the debugging dump when the expression is fully redundant.
4770 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4772         * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
4773         * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
4774         * pretty-print.c (pp_formatted_text_data): Likewise.
4775         (pp_write_text_to_stream): Likewise.
4776         (pp_write_text_as_dot_label_to_stream): Likewise.
4777         (pp_append_r): Likewise.
4778         (pp_format): Likewise.
4779         (pp_flush): Likewise.
4780         (pp_clear_output_area): Likewise.
4781         (pp_append_text): Likewise.
4782         (pp_formatted_text): Likewise.
4783         (pp_remaining_character_count_for_line): Likewise.
4784         (pp_newline): Likewise.
4785         (pp_character): Likewise.
4786         (output_buffer::~output_buffer): Define.
4787         (pretty_printer::~pretty_printer): Destruct output buffer.
4788         * pretty-print.h (output_buffer::~output_buffer): Declare.
4789         (pretty_printer::~pretty_printer): Declare virtual.
4791 2013-08-24  Marc Glisse  <marc.glisse@inria.fr>
4793         PR other/57324
4794         * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
4795         HOST_WIDE_INT_M1U): New macros.
4796         * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
4797         fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
4798         unsigned -1 for lshift.
4799         * cse.c (cse_insn): Likewise.
4800         * double-int.c (rshift_double, lshift_double): Likewise.
4801         * builtins.c (fold_builtin_bitop): Likewise.
4802         * combine.c (force_to_mode): Likewise.
4803         * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
4804         * simplify-rtx.c (simplify_const_unary_operation,
4805         simplify_const_binary_operation): Likewise.
4806         * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
4807         check_va_list_escapes): Likewise.
4808         * rtlanal.c (nonzero_bits1): Likewise.
4809         * expmed.c (expand_smod_pow2): Likewise.
4810         * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
4812 2013-08-23  Jan Hubicka  <jh@suse.cz>
4814         * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
4815         as having address taken.
4817 2013-08-23  Jan Hubicka  <jh@suse.cz>
4819         * ipa-utils.h (method_class_type): Declare.
4820         * ipa-devirt.c (method_class_type): Export.
4822         * cgraphunit.c (analyze_functions): Do basic devirtualization;
4823         do not walk base classes of anonymous types.
4825 2013-08-23  Kaz Kojima  <kkojima@gcc.gnu.org>
4827         PR rtl-optimization/58220
4828         PR regression/58221
4829         * final.c (reemit_insn_block_notes): Use NEXT_INSN to
4830         handle SEQUENCE insns properly.
4832 2013-08-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4834         * pretty-print.h (pp_newline_and_flush): Declare.  Remove macro
4835         definition.
4836         (pp_newline_and_indent): Likewise.
4837         (pp_separate_with): Likewise.
4838         * pretty-print.c (pp_newline_and_flush): Define.
4839         (pp_newline_and_indent): Likewise.
4840         (pp_separate_with): Likewise.
4842 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
4844         PR target/58218
4845         * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
4846         * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
4848 2013-08-23  Kirill Yukhin  <kirill.yukhin@intel.com>
4850         * config/i386/predicates.md (ext_sse_reg_operand): New.
4851         * config/i386/i386.md (*movti_internal): Use
4852         predicate to determine if EVEX is needed.
4853         (*movsi_internal): Ditto.
4854         (*movdf_internal): Ditto.
4855         (*movsf_internal): Ditto.
4856         * config/i386/mmx.md (*mov<mode>_internal): Ditto.
4858 2013-08-23  Jakub Jelinek  <jakub@redhat.com>
4860         PR tree-optimization/58209
4861         * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
4862         (find_tail_calls): Give up for pointer result types if m is non-NULL.
4863         (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
4864         emit POINTER_PLUS_EXPR.
4865         (create_tailcall_accumulator): For pointer result type accumulate in
4866         sizetype type.
4868 2013-08-22  Paolo Carlini  <paolo.carlini@oracle.com>
4870         * configure.ac: Add backslashes missing from the last change.
4871         * configure: Regenerate.
4873 2013-08-22  Jan Hubicka  <jh@susue.cz>
4875         * ipa.c (function_and_variable_visibility): First remember function
4876         was global and then make it local.
4878 2013-08-22  Julian Brown  <julian@codesourcery.com>
4880         * configure.ac: Add aarch64 to list of arches which use "nop" in
4881         debug_line test.
4882         * configure: Regenerate.
4884 2013-08-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4886         * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
4887         gnu_libc_has_function.
4888         * config/s390/tpf.h: Likewise.
4890 2013-08-22  Jan Hubicka  <jh@susue.cz>
4892         * timevar.c (validate_phases): Add cast.
4894 2013-08-22  Jan Hubicka  <jh@susue.cz>
4896         * timevar.c (validate_phases): Use size_t for memory.
4897         * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
4899 2013-08-22  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4901         * pretty-print.h (output_buffer::output_buffer): Declare.
4902         (pretty_printer::pretty_printer): Likewise.
4903         (pp_construct): Remove.
4904         * pretty-print.c (output_buffer::output_buffer): Define.
4905         (pretty_printer::pretty_printer): Rename from pp_construct.  Simplify.
4906         * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
4907         (print_gimple_expr): Likewise.
4908         (print_gimple_seq): Likewise.
4909         (gimple_dump_bb): Likewise.
4910         * sched-vis.c (dump_value_slim): Likewise.
4911         (dump_insn_slim): Likewise.
4912         (dump_rtl_slim): Likewise.
4913         (str_pattern_slim): Likewise.
4914         * tree-mudflap.c (mf_varname_tree): Likewise.
4915         * graph.c (print_graph_cfg): Likewise.
4916         (start_graph_dump): Likewise.
4917         * tree-pretty-print.c (maybe_init_pretty_print): Likewise.  Use
4918         placement-new.
4919         * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
4920         pretty printer initialization.
4921         * coretypes.h (diagnostic_context): Remove superflous type alias
4922         declaration.
4923         (pretty_printer): Likewise.  Declare directly as a class.
4924         (pretty_print_info): Remove declaration as class.
4925         * asan.c (asan_emit_stack_protection): Remove call to pp_construct
4926         and pp_clear_output_area.
4927         (asan_add_global): Likewise.
4929 2013-08-22  Jan Hubicka  <jh@suse.cz>
4931         * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
4932         * ipa-utils.h (update_type_inheritance_graph): Declare.
4933         (possible_polymorphic_call_target_p): Declare.
4934         (possible_polymorphic_call_target_p): New.
4935         * ipa-devirt.c: Update toplevel comments.
4936         (cached_polymorphic_call_targets): Move up.
4937         (odr_type_d): Move ID down.
4938         (polymorphic_type_binfo_p): Update comment.
4939         (odr_hasher::remove): Likewise;
4940         (get_odr_type): Set anonymous_namespace.
4941         (dump_odr_type): Dump it.
4942         (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
4943         (maybe_record_node): Record node in cached_polymorphic_call_targets.
4944         (record_binfo): Add comment.
4945         (free_polymorphic_call_targets_hash): Do not ICE when cache is not
4946         built.
4947         (devirt_node_removal_hook): Do not iCE when cache is freed.
4948         (possible_polymorphic_call_target_p): New predicate.
4949         (update_type_inheritance_graph): New function.
4951 2013-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4952             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4953             Sergey Lega  <sergey.s.lega@intel.com>
4954             Anna Tikhonova  <anna.tikhonova@intel.com>
4955             Ilya Tocar  <ilya.tocar@intel.com>
4956             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4957             Ilya Verbin  <ilya.verbin@intel.com>
4958             Kirill Yukhin  <kirill.yukhin@intel.com>
4959             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4961         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
4962         (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
4963         (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
4964         (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
4965         (OPTION_MASK_ISA_AVX2_UNSET): Update.
4966         (OPTION_MASK_ISA_AVX512F_UNSET): New.
4967         (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
4968         (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
4969         (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
4970         (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
4971         OPT_mavx512pf, OPT_mavx512er cases.
4972         * config/i386/constraints.md (v): New constraint.
4973         (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
4974         * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
4975         (bit_AVX512CD): New.
4976         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4977         AVX512F, AVX512ER, AVX512PF, AVX512CD features.
4978         * config/i386/i386-c.c (ix86_target_macros_internal):
4979         Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
4980         __AVX512PF__.
4981         * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
4982         (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
4983         * config/i386/i386.c (regclass_map, dbx_register_map)
4984         (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
4985         (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
4986         (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
4987         -mavx512pf options.
4988         (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
4989         PTA_AVX512PF, PTA_AVX512CD.  Handle -mavx512f, -mavx512er, -mavx512cd,
4990         -mavx512pf options.  Fix formatting.
4991         (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
4992         targets.  Squash EVEX_SSE_REGS if AVX512F is disabled.
4993         (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
4994         -mavx512cd, -mavx512pf options.
4995         (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
4996         (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
4997         (ix86_preferred_output_reload_class): Replace SSE_REGS with
4998         ALL_SSE_REGS.
4999         (ix86_hard_regno_mode_ok): Support 512-bit registers.
5000         (ix86_set_reg_reg_cost): Ditto.
5001         (x86_order_regs_for_local_alloc): Ditto.
5002         (MAX_VECT_LEN): Extend to 64-byte.
5003         (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
5004         * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
5005         (TARGET_AVX512ER, TARGET_AVX512CD): New.
5006         (BIGGEST_ALIGNMENT): Extend to 512-bits.
5007         (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
5008         (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
5009         (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
5010         (SSE_REG_MODE_P): Support new modes.
5011         (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
5012         (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
5013         (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
5014         (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
5015         (REG_CLASS_CONTENTS): Add new registers.
5016         (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
5017         (EXT_REX_SSE_REGNO_P): New.
5018         (HI_REGISTER_NAMES): Add new registers.
5019         * config/i386/i386.md: Define constants for new registers.
5020         (mode): Add new 512-bit modes.
5021         (prefix): Support evex prefix.
5022         (isa): Support avx512f, noavx512f, fma_avx512f.
5023         (ssemodesuffix): Add new 512-bit modes.
5024         (movxi): New.
5025         (*movxi_internal_avx512f): Ditto.
5026         (*movdi_internal): Replace constraint "x" with the new constraint "v".
5027         Support MODE_XI.
5028         (*movsi_internal): Likewise.
5029         (*movdf_internal): Likewise.
5030         (*movsf_internal): Likewise.
5031         (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
5032         (<code><mode>3): Likewise.
5033         * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
5034         New.
5035         * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
5036         with the new constraint "v".
5037         * config/i386/sse.md (*mov<mode>_internal): Support new registers and
5038         modes.
5039         (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
5040         with the new constraint "v".
5041         (<sse2>_loaddqu<avxsizesuffix>): Likewise.
5042         (<sse2>_storedqu<avxsizesuffix>): Likewise.
5043         (*<plusminus_insn><mode>3): Likewise.
5044         (<sse>_vm<plusminus_insn><mode>3): Likewise.
5045         (*mul<mode>3): Likewise.
5046         (<sse>_vmmul<mode>3): Likewise.
5047         (<sse>_div<mode>3): Likewise.
5048         (<sse>_vmdiv<mode>3): Likewise.
5049         (<sse>_sqrt<mode>2): Likewise.
5050         (<sse>_vmsqrt<mode>2): Likewise.
5051         (*<code><mode>3_finite): Likewise.
5052         (*<code><mode>3) <smaxmin>: Likewise.
5053         (<sse>_vm<code><mode>3): Likewise.
5054         (*<code><mode>3) <any_logic>: Likewise.
5055         (*fma_fmadd_<mode>): Likewise.
5056         (*fma_fmsub_<mode>): Likewise.
5057         (*fma_fnmadd_<mode>): Likewise.
5058         (*fma_fnmsub_<mode>): Likewise.
5059         (*fma_fmaddsub_<mode>): Likewise.
5060         (*fma_fmsubadd_<mode>): Likewise.
5061         (*fmai_fmadd_<mode>): Likewise.
5062         (*fmai_fmsub_<mode>): Likewise.
5063         (*fmai_fnmadd_<mode>): Likewise.
5064         (*fmai_fnmsub_<mode>): Likewise.
5065         (sse_cvtsi2ss): Likewise.
5066         (sse_cvtsi2ssq): Likewise.
5067         (sse_cvtss2si): Likewise.
5068         (sse_cvtss2si_2): Likewise.
5069         (sse_cvtss2siq): Likewise.
5070         (sse_cvtss2siq_2): Likewise.
5071         (sse_cvttss2si): Likewise.
5072         (sse_cvtss2siq_2): Likewise.
5073         (float<sseintvecmodelower><mode>2): Likewise.
5074         (sse2_cvtsd2si_2): Likewise.
5075         (sse2_cvtsd2siq_2): Likewise.
5076         (*<plusminus_insn><mode>3): Likewise.
5077         (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
5078         (*<sse4_1_avx2>_mul<mode>3): Likewise.
5079         (ashr<mode>3): Likewise.
5080         (<shift_insn><mode>3): Likewise.
5081         (avx2_<code><mode>3): Likewise.
5082         (*avx2_<code><mode>3): Likewise.
5083         (*andnot<mode>3): Likewise.
5084         (*<code><mode>3) <any_logic>: Likewise.
5085         (abs<mode>2): Likewise.
5086         (avx2_permvar<mode>): Likewise.
5087         (avx2_perm<mode>_1): Likewise.
5088         (*avx_vpermilp<mode>): Likewise.
5089         (avx_vpermilvar<mode>3): Likewise.
5090         (avx2_ashrv<mode>): Likewise.
5091         (avx2_<shift_insn>v<mode>): Likewise.
5092         * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
5093         -mavx512cd.
5094         * doc/rtl.texi: Document XImode.
5096 2013-08-21  Jeff Law  <law@redhat.com>
5098         * tree-flow.h (register_jump_thread): Pass vector of edges
5099         instead of each important edge.
5100         * tree-ssa-threadedge.c (thread_across_edge): Build the jump
5101         thread path into a vector and pass that to register_jump_thread.
5102         * tree-ssa-threadupdate.c (register_jump_thread): Conver the
5103         passed in edge vector to the current 3-edge form.
5105         Revert:
5106         2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
5108         * dce.c (fini_dce): Call df_analyze again just in case
5109         delete_unmarked_insns removed anything.
5111 2013-08-21  Joern Rennecke  <joern.rennecke@embecosm.com>
5113         * reload.h (struct reg_equivs): Rename to ..
5114         (struct reg_equivs_s): .. this.
5116 2013-08-20  Martin Liska  <marxin.liska@gmail.com>
5118         * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
5120 2013-08-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5122         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
5124 2013-08-21  Jeff Law  <law@redhat.com>
5126         * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
5127         simplify assignments too.  If the RHS collapses to a singleton
5128         range, then return the value for the range.
5130 2013-08-21  Kirill Yukhin  <kirill.yukhin@intel.com>
5132         * config/i386/sse.md (V16): Rename to...
5133         (VMOVE): this.
5134         (mov<mode>): Update iterator name.
5135         (*mov<mode>_internal): Ditto.
5136         (push<mode>1): Ditto.
5137         (movmisalign<mode>): Ditto.
5139 2013-08-20  Jan Hubicka  <jh@suse.cz>
5141         PR bootstrap/58186
5142         * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
5143         entry for direct edges.
5144         (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
5146 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
5148         Revert my last two changes, r201865 and r201864:
5150         Revert r201865:
5151         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
5153         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
5154         instances can own GC refs.
5156         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
5157         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
5158         (gcc::context::gt_pch_nx): Likewise.
5159         (gcc::context::gt_pch_nx):  Likewise.
5160         * ggc.h (gt_ggc_mx <T>): New.
5161         (gt_pch_nx_with_op <T>): New.
5162         (gt_pch_nx <T>): New.
5163         * passes.c (opt_pass::gt_ggc_mx): New.
5164         (opt_pass::gt_pch_nx): New.
5165         (opt_pass::gt_pch_nx_with_op): New.
5166         (pass_manager::gt_ggc_mx): New.
5167         (pass_manager::gt_pch_nx): New.
5168         (pass_manager::gt_pch_nx_with_op): New.
5169         (pass_manager::operator new): Use
5170         ggc_internal_cleared_alloc_stat rather than xcalloc.
5171         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
5172         (pass_manager::gt_ggc_mx): New.
5173         (pass_manager::gt_pch_nx): New.
5174         (pass_manager::gt_pch_nx_with_op): New.
5175         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
5176         (opt_pass::operator new): New.
5177         (opt_pass::gt_ggc_mx): New.
5178         (opt_pass::gt_pch_nx): New.
5179         (opt_pass::gt_pch_nx_with_op): New.
5181         Revert r201864:
5182         2013-08-20  David Malcolm  <dmalcolm@redhat.com>
5184         * Makefile.in (GTFILES): Add context.h.
5185         * context.c (gcc::context::operator new): New.
5186         (gcc::context::gt_ggc_mx): New.
5187         (gcc::context::gt_pch_nx): New.
5188         (gcc::context::gt_pch_nx): New.
5189         * context.h (gcc::context): Add GTY((user)) marking.
5190         (gcc::context::operator new): New.
5191         (gcc::context::gt_ggc_mx): New.
5192         (gcc::context::gt_pch_nx): New.
5193         (gcc::context::gt_pch_nx): New.
5194         (g): Add GTY marking.
5195         (gt_ggc_mx (gcc::context *)): New.
5196         (gt_pch_nx (gcc::context *)): New.
5197         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
5198         void *cookie)): New.
5199         * gengtype.c (open_base_files) <ifiles>: Add context.h.
5201 2013-08-20  Alexey Makhalov  <makhaloff@gmail.com>
5203         * dce.c (fini_dce): Call df_analyze again just in case
5204         delete_unmarked_insns removed anything.
5206 2013-08-20  Teresa Johnson  <tejohnson@google.com>
5208         PR rtl-optimizations/57451
5209         * final.c (reemit_insn_block_notes): Prevent lexical blocks
5210         from crossing split section boundaries.
5212 2013-08-20  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
5214         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
5215         * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
5216         with MULTLIB_DEFAULTS.
5218 2013-08-20  Nick Clifton  <nickc@redhat.com>
5220         * target.def (narrow_volatile_bitfield): Note that the default
5221         value is false, not !TARGET_STRICT_ALIGN.
5222         * doc/tm.texi: Regenerate.
5224 2013-08-20  Pavel Chupin  <pavel.v.chupin@intel.com>
5226         Fix LIB_SPEC for systems without libpthread.
5228         * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
5229         * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
5230         for Android.
5231         * config/i386/linux-common.h: Likewise.
5232         * config/mips/linux-common.h: Likewise.
5234 2013-08-20  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
5236         * tree-ssa-ccp.c (get_default_value): Remove redundant condition
5237         checks.
5239 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
5241         Make opt_pass and gcc::pass_manager be GC-managed, so that pass
5242         instances can own GC refs.
5244         * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
5245         * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
5246         (gcc::context::gt_pch_nx): Likewise.
5247         (gcc::context::gt_pch_nx):  Likewise.
5248         * ggc.h (gt_ggc_mx <T>): New.
5249         (gt_pch_nx_with_op <T>): New.
5250         (gt_pch_nx <T>): New.
5251         * passes.c (opt_pass::gt_ggc_mx): New.
5252         (opt_pass::gt_pch_nx): New.
5253         (opt_pass::gt_pch_nx_with_op): New.
5254         (pass_manager::gt_ggc_mx): New.
5255         (pass_manager::gt_pch_nx): New.
5256         (pass_manager::gt_pch_nx_with_op): New.
5257         (pass_manager::operator new): Use
5258         ggc_internal_cleared_alloc_stat rather than xcalloc.
5259         * pass_manager.h (class pass_manager): Add GTY((user)) marking.
5260         (pass_manager::gt_ggc_mx): New.
5261         (pass_manager::gt_pch_nx): New.
5262         (pass_manager::gt_pch_nx_with_op): New.
5263         * tree-pass.h (class opt_pass): Add GTY((user)) marking.
5264         (opt_pass::operator new): New.
5265         (opt_pass::gt_ggc_mx): New.
5266         (opt_pass::gt_pch_nx): New.
5267         (opt_pass::gt_pch_nx_with_op): New.
5269 2013-08-20  David Malcolm  <dmalcolm@redhat.com>
5271         * Makefile.in (GTFILES): Add context.h.
5272         * context.c (gcc::context::operator new): New.
5273         (gcc::context::gt_ggc_mx): New.
5274         (gcc::context::gt_pch_nx): New.
5275         (gcc::context::gt_pch_nx): New.
5276         * context.h (gcc::context): Add GTY((user)) marking.
5277         (gcc::context::operator new): New.
5278         (gcc::context::gt_ggc_mx): New.
5279         (gcc::context::gt_pch_nx): New.
5280         (gcc::context::gt_pch_nx): New.
5281         (g): Add GTY marking.
5282         (gt_ggc_mx (gcc::context *)): New.
5283         (gt_pch_nx (gcc::context *)): New.
5284         (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
5285         void *cookie)): New.
5286         * gengtype.c (open_base_files) <ifiles>: Add context.h.
5288 2013-08-20  Alan Modra  <amodra@gmail.com>
5290         PR target/57865
5291         * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
5292         (rs6000_emit_epilogue): Likewise.
5294 2013-08-19  Dehao Chen  <dehao@google.com>
5296         * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
5298 2013-08-19  Peter Bergner  <bergner@vnet.ibm.com>
5299             Jakub Jelinek  <jakub@redhat.com>
5301         * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
5302         (BUILT_IN_FABSD64): Likewise.
5303         (BUILT_IN_FABSD128): Likewise.
5304         * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
5305         (fold_builtin_1): Likewise.
5306         * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
5307         destination and source operands.
5308         (*abstd2_fpr): Likewise.
5309         (*nabstd2_fpr): Likewise.
5311 2013-08-19  Richard Sandiford  <rdsandiford@googlemail.com>
5313         * config/mips/mips.c (mips_adjust_insn_length): Add checks for
5314         JUMP_P and INSN_P.
5316 2013-08-19  Aldy Hernandez  <aldyh@redhat.com>
5318         * doc/invoke.texi (-fcilkplus): Clarify that implementation is
5319         incomplete.
5321 2013-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5323         * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
5324         * builtins.c (default_libc_has_function): New.
5325         (gnu_libc_has_function): Ditto.
5326         (no_c99_libc_has_function): Ditto.
5327         (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
5328         instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
5329         (fold_builtin_sincos): Likewise.
5330         (fold_builtin_cexp): Likewise.
5331         * builtins.def (DEF_C94_BUILTIN): Likewise.
5332         (DEF_C99_BUILTIN): Likewise.
5333         (DEF_C99_C90RES_BUILTIN): Likewise.
5334         (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
5335         definitions to using this define.
5336         * config/darwin-protos.h (darwin_libc_has_function): New.
5337         * config/darwin.c (darwin_libc_has_function): Ditto.
5338         * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
5339         TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
5340         * config/darwin.h: Ditto.
5341         * config/elfos.h: Ditto.
5342         * config/freebsd.h: Ditto.
5343         * config/i386/cygming.h: Ditto.
5344         * config/i386/djgpp.h: Ditto.
5345         * config/i386/i386-interix.h: Ditto.
5346         * config/microblaze/microblaze.h: Ditto.
5347         * config/mmix/mmix.h: Ditto.
5348         * config/gnu-user.h: Ditto.
5349         * config/ia64/hpux.h: Ditto.
5350         * config/pa/pa-hpux.h: Ditto.
5351         * config/pdp11/pdp11.h: Ditto.
5352         * config/picochip/picochip.h: Ditto.
5353         * config/linux.h: Ditto.
5354         * config/netbsd.h: Ditto.
5355         * config/openbsd.h: Ditto.
5356         * config/rs6000/aix43.h: Ditto.
5357         * config/rs6000/aix51.h: Ditto.
5358         * config/rs6000/aix52.h: Ditto.
5359         * config/rs6000/aix53.h: Ditto.
5360         * config/rs6000/aix61.h: Ditto.
5361         * config/rs6000/darwin.h: Ditto.
5362         * config/rs6000/linux.h: Ditto.
5363         * config/rs6000/linux64.h: Ditto.
5364         * config/s390/tpf.h: Ditto.
5365         * config/sol2-10.h: Ditto.
5366         * config/sol2.h: Ditto.
5367         * config/vms/vms.h: Ditto.
5368         * config/vxworks.h: Ditto.
5369         * config/linux-android.c (linux_android_libc_has_function):
5370         New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
5371         * config/linux-protos.h (linux_android_libc_has_function):
5372         New declaration.
5373         * config/i386/i386.c (ix86_libc_has_function): New.
5374         * config/i386/i386-protos.h
5375         (ix86_libc_has_function): New declaration.
5376         * config/i386/i386.md
5377         ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
5378         ("isinf<mode>2): Likewise.
5379         * convert.c (convert_to_integer): Using new target hook
5380         TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
5381         TARGET_C99_FUNCTIONS.
5382         * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
5383         * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
5384         * coretypes.h (function_class): New enum for different
5385         classes of functions.
5386         * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
5387         * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
5388         (TARGET_HAS_SINCOS): Likewise.
5389         (TARGET_LIBC_HAS_FUNCTION): New.
5390         * doc/tm.texi: Regenerated.
5391         * targhooks.h (default_libc_has_function): New declaration.
5392         (no_c99_libc_has_function): Ditto.
5393         (gnu_libc_has_function): Ditto.
5394         * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
5395         and TARGET_HAS_SINCOS.
5397 2013-08-18  Jan Hubicka  <jh@suse.cz>
5399         * Makeifle-in (ipa-devirt.o): New.
5400         (GTFILES): Add ipa-utils.h and ipa-devirt.c
5401         * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
5402         (analyze_functions): Look into possible targets of polymorphic call.
5403         * dumpfile.c (dump_files): Add type-inheritance dump.
5404         * dumpfile.h (TDI_inheritance): New.
5405         * ipa-devirt.c: New file.
5406         * ipa-utils.h (odr_type_d): Forward declare.
5407         (odr_type): New type.
5408         (build_type_inheritance_graph): Declare.
5409         (possible_polymorphic_call_targets): Declare and introduce inline
5410         variant when only edge is pased.
5411         (dump_possible_polymorphic_call_targets): Likewise.
5412         * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
5413         * tree.c (type_in_anonymous_namespace_p): Break out from ...
5414         (types_same_for_odr): ... here.
5415         * tree.h (type_in_anonymous_namespace_p): Declare.
5417 2013-08-18  Jakub Jelinek  <jakub@redhat.com>
5419         PR tree-optimization/58006
5420         * tree-parloops.c (take_address_of): Don't ICE if get_name
5421         returns NULL.
5422         (eliminate_local_variables_stmt): Remove clobber stmts.
5424 2013-08-18  Eric Botcazou  <ebotcazou@adacore.com>
5426         * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
5427         error message is issued for an alias to undefined symbol.
5429 2013-08-18  Jan Hubicka  <jh@suse.cz>
5431         * cgraph.c (cgraph_create_indirect_edge): Discover
5432         polymorphic calls and record basic info into indirect_info.
5433         * gimple-fold.c (gimple_fold_call): When doing BINFO based
5434         devirtualization, ignore objc function calls.
5435         * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
5436         call with no parm index info.
5437         * ipa-prop.c (ipa_analyze_call_uses): Likewise.
5438         * tree.c (virtual_method_call_p): New function.
5439         * tree.h (virtual_method_call_p): Declare.
5441 2013-08-16  Jan Hubicka  <jh@suse.cz>
5443         PR middle-end/58179
5444         * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
5446 2013-08-16  David Edelsohn  <dje.gcc@gmail.com>
5448         * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
5449         attribute.
5451 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
5453         * gengtype.c (type_for_name): Add special-case support for
5454         locating types within the "gcc::" namespace.
5455         (open_base_files): Emit a "using namespace gcc" directive.
5457 2013-08-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
5459         PR target/58160
5460         * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
5461         memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
5463         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
5464         array instead of each individual operand as a separate argument.
5465         (emit_fusion_gpr_load): Likewise.
5466         (expand_fusion_gpr_load): Add new function declaration.
5468         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
5469         signature to have the operands passed as an array, instead of as
5470         separate arguments.  Allow ZERO_EXTEND to be in the memory
5471         address, and also SIGN_EXTEND if -mpower8-fusion-sign.  Do not
5472         depend on the register live/dead flags when peepholes are run.
5473         (expand_fusion_gpr_load): New function to be called from the
5474         peephole2 pass, to change the register that addis sets to be the
5475         target register.
5476         (emit_fusion_gpr_load): Change the calling signature to have the
5477         operands passed as an array, instead of as separate arguments.
5478         Allow ZERO_EXTEND to be in the memory address, and also
5479         SIGN_EXTEND if -mpower8-fusion-sign.
5481         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
5482         unspec enumeration.
5483         (power8 fusion peephole/peephole2): Rework the fusion peepholes to
5484         adjust the register addis loads up in the peephole2 pass.  Do not
5485         depend on the register live/dead state when the peephole pass is done.
5487 2013-08-16  David Malcolm  <dmalcolm@redhat.com>
5489         * gengtype.c (create_user_defined_type): Ensure that the kind
5490         is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
5491         declaration is seen before the GTY((user)) marking.
5493 2013-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5495         PR target/58105
5496         * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
5498 2013-08-16  Jan Hubicka  <jh@suse.cz>
5500         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
5501         arugment expected_type.
5502         (gimple_fold_call): Use it.
5503         * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
5504         * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
5505         * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
5506         (try_make_edge_direct_virtual_call): Likewise.
5507         * tree.c (obj_type_ref_class): New.
5508         * tree.h (obj_type_ref_class): Use it.
5510 2013-08-16  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5512         * sched-vis.c (rtl_slim_pp_initialized): Remove.
5513         (rtl_slim_pp): Likewise.
5514         (init_rtl_slim_pretty_print): Likewise.
5515         (dump_value_slim):  Don't call it.  Use local pretty printer.
5516         (dump_insn_slim): Likewise.
5517         (dump_rtl_slim): Likewise.
5518         (str_pattern_slim): Likewise.
5519         * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
5520         Simplify.
5522 2013-08-16  Jakub Jelinek  <jakub@redhat.com>
5524         PR tree-optimization/58164
5525         * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
5526         walk gimple_goto_dest of GIMPLE_GOTO.
5528         PR tree-optimization/58165
5529         * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
5530         bi_call must be the last stmt in a bb, don't split_block, instead
5531         use fallthru edge from it and give up if there is none.
5532         Release conds vector when returning early.
5534 2013-08-14  Xinliang David Li  <davidxl@google.com>
5536         * config/i386/i386.c (ix86_option_override_internal):
5537         Remove unused variable and field.
5539 2013-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5541         PR target/57949
5542         * doc/invoke.texi: Add documentation of mcompat-align-parm option.
5543         * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
5544         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
5545         and Linux, correct BLKmode alignment when 128-bit alignment is
5546         required and compatibility flag is not set.
5547         (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
5548         for zero-size arguments when compatibility flag is not set.
5550 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
5552         PR tree-optimization/58145
5553         * tree-sra.c (build_ref_for_offset): If prev_base has
5554         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
5556 2013-08-14  Xinliang David Li  <davidxl@google.com>
5558         * config/i386/i386.c (ix86_option_override_internal):
5559         Fix uninitialized variable error.
5561 2013-08-14  Xinliang David Li  <davidxl@google.com>
5563         * config/i386/i386.opt: Define two new options.
5564         * config/i386/x86-tune.def: Add arch selector field in macros.
5565         * config/i386/i386.h: Adjust macro definition.
5566         * config/i386/i386.c (ix86_option_override_internal):
5567         Refactor the code.
5568         (parse_mtune_ctrl_str): New function.
5569         (set_ix86_tune_features): New function.
5570         (ix86_function_specific_restore): Call the new helper function.
5572 2013-08-14  Andrey Belevantsev  <abel@ispras.ru>
5574         PR rtl-optimization/57662
5575         * sel-sched.c (code_motion_process_successors): When the current insn
5576         is removed after the recursive traversal, break from the loop.
5577         Add comments and debug printouts.
5579 2013-08-14  Jakub Jelinek  <jakub@redhat.com>
5580             Alexandre Oliva  <aoliva@redhat.com>
5582         PR target/58067
5583         * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
5584         and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
5585         there also UNSPEC_PLTOFF.
5587 2013-08-14  Marek Polacek  <polacek@redhat.com>
5589         * ipa-inline-analysis.c (add_clause): Avoid shifting integer
5590         NUM_CONDITIONS bit positions.
5592 2013-08-13  Cary Coutant  <ccoutant@google.com>
5594         * dwarf2out.c (CHECKSUM_BLOCK): New macro.
5595         (attr_checksum): Hash vector contents instead of pointer.
5596         (attr_checksum_ordered): Likewise.
5598 2013-08-13  Uros Bizjak  <ubizjak@gmail.com>
5600         * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
5601         when Pmode != word_mode.  Add length_address attribute.
5602         (sse3_monitor_<mode>): Merge from sse3_monitor and
5603         sse3_monitor64_<mode> insn patterns.  Emit addr32 prefix when
5604         Pmode != word_mode.  Update insn length attribute.
5605         * config/i386/i386.c (ix86_option_override_internal): Update
5606         ix86_gen_monitor selection for merged sse3_monitor insn.
5608 2013-08-13  Julian Brown  <julian@codesourcery.com>
5610         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5611         perform invalid legitimization on greater-than-word-size modes for
5612         TARGET_E500_DOUBLE.
5614 2013-08-13  Vladimir Makarov  <vmakarov@redhat.com>
5616         * ira.c (setup_class_translate_array): Use aclass instead of cl
5617         for classes not fully covered by allocno classes.
5619 2013-08-13  Jakub Jelinek  <jakub@redhat.com>
5621         PR tree-optimization/57661
5622         * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
5623         * tree-inline.c (tree_function_versioning): Initialize it.
5624         (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
5625         if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
5626         that is not being copied.
5628         PR sanitizer/56417
5629         * asan.c (instrument_strlen_call): Fix typo in comment.
5630         Use char * type even for the lhs of POINTER_PLUS_EXPR.
5632 2013-08-13  Steve Ellcey  <sellcey@mips.com>
5634         * config/mips/mips.md (prefetch): Use lw instead of ld on
5635         loongson in 32bit mode.
5637 2013-08-13  Nick Clifton  <nickc@redhat.com>
5639         * config.gcc: (avr-linux): Allow for tmake_file not being empty.
5641 2013-08-13  Jan Hubicka  <jh@suse.cz>
5643         * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
5644         introduced edge; fix typo in sanity check.
5645         (cgraph_resolve_speculation): Export; improve diagnostic.
5646         (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
5647         speculation at type mismatch.
5648         * cgraph.h (cgraph_turn_edge_to_speculative): Update.
5649         (cgraph_resolve_speculation): Declare.
5650         (symtab_can_be_discarded): New function.
5651         * value-prof.c (gimple_ic_transform): Remove actual transform code.
5652         * ipa-inline-transform.c (speculation_removed): New global var.
5653         (clone_inlined_nodes): See if speculation can be removed.
5654         (inline_call): If speculations was removed, we growths may not match.
5655         * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
5656         (speculation_useful_p): New function.
5657         (resolve_noninline_speculation): New function.
5658         (inline_small_functions): Resolve useless speculations.
5659         * ipa-inline.h (speculation_useful_p): Declare
5660         * ipa.c (can_replace_by_local_alias): Simplify.
5661         (ipa_profile): Produce speculative calls in non-lto, too;
5662         add simple cost model; produce local aliases.
5664 2013-08-13  David Malcolm  <dmalcolm@redhat.com>
5666         * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
5667         PASS_MANAGER_H.
5669 2013-08-12  Paolo Carlini  <paolo.carlini@oracle.com>
5671         * config/i386/i386.c (ix86_function_versions): Use error + inform.
5673 2013-08-12  Uros Bizjak  <ubizjak@gmail.com>
5675         * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
5676         iterator instead of X87MODEF.
5678 2013-08-12  Perez Read  <netfirewall@gmail.com>
5680         PR target/58132
5681         * config/i386/i386.md (*movabs<mode>_1):  Add <ptrsize> PTR before
5682         operand 0 for intel asm alternative.
5683         (*movabs<mode>_2): Ditto for operand 1.
5685 2013-08-12  James Greenhalgh  <james.greenhalgh@arm.com>
5687         * config/aarch64/arm_none.h
5688         (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
5690 2013-08-12  Nick Clifton  <nickc@redhat.com>
5692         * config.gcc (m32r-linux): Allow for tmake_file not being empty.
5694 2013-08-12  Yuri Rumyantsev  <ysrumyan@gmail.com>
5696         * config/i386/i386.md (floatunssi<mode>2 expand): Add new
5697         expand for QI/HImode operand to produce more effictive code for
5698         unsigned char(short) --> float(double) conversion.
5700 2013-08-12  Alexander Monakov  <amonakov@ispras.ru>
5702         * doc/invoke.texi: Mention that -ftls-model does not force the final
5703         model.
5705 2013-08-12  Marek Polacek  <polacek@redhat.com>
5706             Marc Glisse  <marc.glisse@inria.fr>
5708         PR tree-optimization/57980
5709         * tree-tailcall.c (process_assignment): Call build_minus_one_cst
5710         when creating -1 constant.
5712 2013-08-10  Jan Hubicka  <jh@suse.cz>
5714         Workaround binutils PR14342.
5715         * tree-profile.c (init_ic_make_global_vars): Add LTO path.
5716         (gimple_init_edge_profiler): Likewise.
5717         (gimple_gen_ic_func_profiler): Likewise.
5719 2013-08-09  Jan Hubicka  <jh@suse.cz>
5721         * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
5723 2013-08-09  Xinliang David Li  <davidxl@google.com>
5725         * config/i386/stringop.def: New file.
5726         * config/i386/stringop.opt: New file.
5727         * config/i386/i386-opts.h: Include stringopt.def.
5728         * config/i386/i386.opt: Include stringopt.opt.
5729         * config/i386/i386.c (ix86_option_override_internal):
5730         Override default size based stringop inline strategies with options.
5731         * config/i386/i386.c (ix86_parse_stringop_strategy_string):
5732         New function.
5734 2013-08-09  Jan Hubicka  <jh@suse.cz>
5736         * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
5738 2013-08-09  Jan Hubicka  <jh@suse.cz>
5740         * cgraph.c (cgraph_resolve_speculation): Cut frequency to
5741         CGRAPH_FREQ_MAX.
5742         (dump_cgraph_node): Dump profile-id.
5743         * cgraph.h (cgraph_indirect_call_info): Add common_target_id
5744         and common_target_probability.
5745         * lto-cgraph.c (lto_output_edge): Stream common targets.
5746         (lto_output_node): Stream profile ids.
5747         (input_node): Stream profile ids.
5748         (input_edge): Stream common targets.
5749         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
5750         * ipa.c: Include value-prof.h
5751         (ipa_profile_generate_summary): Turn indirect call statement histograms
5752         into common targets.
5753         (ipa_profile): Turn common targets into speculative edges.
5755 2013-08-09  Jan Hubicka  <jh@suse.cz>
5757         * cgraph.h (cgraph_node): Add profile_id.
5758         * value-prof.c (cgraph_node_map): Turn into pointer_map.
5759         (init_node_map): Rewrite to handle hashes increas of incremental IDs.
5760         (del_node_map): Update.
5761         (find_func_by_funcdef_no): Replace by ...
5762         (find_func_by_profile_id): ... this one.
5763         (gimple_ic_transform): Do not remove useful histograms when
5764         speculation is not done; dump info when indirect call removal
5765         can happen at LTO.
5766         * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
5767         * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
5768         (__gcov_indirect_call_profiler_v2): .. this one.
5769         * profile.h (init_node_map): Update.
5770         * coverage.c (coverage_compute_profile_id): New function.
5771         * coverage.h (coverage_compute_profile_id): Declare.
5772         * tree-profile.c (init_ic_make_global_vars): Make
5773         __gcov_indirect_call_callee and  __gcov_indirect_call_counters global.
5774         (gimple_init_edge_profiler): Update prototype of
5775         __gcov_indirect_call_profiler.
5776         (gimple_gen_ic_func_profiler): Simplify.
5777         (tree_profiling): Use init_node_map
5779 2013-08-09  Jan Hubicka  <jh@suse.cz>
5781         * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
5782         non-speculative refs.
5783         * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
5784         (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
5785         (cgraph_set_call_stmt): Likewise.
5786         (cgraph_create_edge_1): Fix release checking compilatoin;
5787         clear lto_stmt_uid.
5788         (cgraph_free_edge): Free indirect info.
5789         (cgraph_turn_edge_to_speculative): New function.
5790         (cgraph_speculative_call_info): New function.
5791         (cgraph_make_edge_direct): Return direct edge; handle speculation.
5792         (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
5793         (dump_cgraph_node): Dump speculation.
5794         (verify_edge_count_and_frequency): Accept speculative edges.
5795         (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
5796         (verify_cgraph_node): Handle speculation.
5797         * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
5798         (cgraph_set_call_stmt): Update prototype.
5799         (cgraph_make_edge_direct): Update prototype.
5800         (cgraph_speculative_call_info): Declare.
5801         * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
5802         to change; update call of ipa_find_references.
5803         * ipa-ref.c (ipa_record_reference): Fix return value; clear
5804         lto_stmt_uid and speculative flags.
5805         (ipa_dump_references): Dump speculation.
5806         (ipa_clone_references): Clone speculative flag.
5807         (ipa_clone_referring): Likewise.
5808         (ipa_clone_ref): New function.
5809         (ipa_find_reference): Look into lto_stmt_uids
5810         (ipa_clear_stmts_in_references): Do not clear speculative calls.
5811         * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
5812         (ipa_find_reference): Update declaration.
5813         (ipa_clone_ref): Declare.
5814         * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
5815         stream speculative flag.
5816         (lto_output_ref): Stream statements uids and speculation.
5817         (input_ref): Likewise.
5818         (input_edge): Stream speuclation.
5819         * cgraphclones.c (cgraph_clone_edge): Clone speculation.
5820         (cgraph_set_call_stmt_including_clones): Handle speculation.
5821         * ipa-inline.c (heap_edge_removal_hook): New function.
5822         (inline_small_functions): Register it.
5823         * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
5824         also initialize refs.
5825         * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
5826         edge to change.
5827         (try_make_edge_direct_simple_call): Likewise.
5828         (try_make_edge_direct_simple_call): Likewise.
5829         (update_indirect_edges_after_inlining): Likewise.
5830         (remove_described_reference): Look proper lto_stmt_uid.
5831         (propagate_controlled_uses): Likewise.
5832         (propagate_controlled_uses): Liekwise.
5833         * tree-inline.c (copy_bb): Copy speculative edges.
5834         (redirect_all_calls): New function.
5835         (copy_cfg_body): Do redirection after loop info is updated.
5836         (delete_unreachable_blocks_update_callgraph): Updadte speculation.
5838 2013-08-09  Jan Hubicka  <jh@suse.cz>
5840         * lto-streamer-out.c (output_function): Renumber PHIs.
5841         * lto-streamer-in.c (input_function): Likewise.
5843 2013-08-09  James Greenhalgh  <james.greenhalgh@arm.com>
5845         * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
5846         (get_lane_unsigned): Likewise.
5847         (dup_lane_scalar): Likewise.
5848         (get_lane): enable for VALL.
5849         * config/aarch64/aarch64-simd.md
5850         (aarch64_dup_lane_scalar<mode>): Remove.
5851         (aarch64_get_lane_signed<mode>): Likewise.
5852         (aarch64_get_lane_unsigned<mode>): Likewise.
5853         (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
5854         (aarch64_get_lane_zero_extendsi<mode>): Likewise.
5855         (aarch64_get_lane<mode>): Enable for all vector modes.
5856         (aarch64_get_lanedi): Remove misleading constraints.
5857         * config/aarch64/arm_neon.h
5858         (__aarch64_vget_lane_any): Define.
5859         (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
5860         (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
5861         (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
5862         * config/aarch64/iterators.md (VDQQH): New.
5863         (VDQQHS): Likewise.
5864         (vwcore): Likewise.
5866 2013-08-09  Eric Botcazou  <ebotcazou@adacore.com>
5868         * configure.ac: Add GAS check for LEON instructions on SPARC.
5869         * configure: Regenerate.
5870         * config.in: Likewise.
5871         * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
5872         sparc*-*-* block.
5873         * config/sparc/sparc.opt (LEON, LEON3): New masks.
5874         * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
5875         for LEON or LEON3.
5876         (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
5877         (AS_LEON_FLAG): New macro.
5878         * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
5879         and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
5880         Deal with LEON and LEON3 for the memory model.
5881         * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
5882         (atomic_compare_and_swap<mode>_1): Likewise.
5883         (*atomic_compare_and_swap<mode>_1): Likewise.
5885 2013-08-09  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
5887         * config/arm/neon.md (vcond): Fix floating-point vector
5888         comparisons against 0.
5890 2013-08-08  Vladimir Makarov  <vmakarov@redhat.com>
5892         * lra-constraints.c (emit_spill_move): Remove assert.
5893         (process_alt_operands): Add more debugging
5894         output.  Increase reject for spilling into memory.  Decrease
5895         reject for reloading scratch.
5896         (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
5898 2013-08-08  Steve Ellcey  <sellcey@mips.com>
5900         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
5901         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
5902         micromips incompatible.  Add nan2008.
5903         (MULTILIB_DIRNAMES): Add nan2008.
5904         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
5905         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
5906         and micromips incompatible.  Add nan2008.
5907         (MULTILIB_DIRNAMES): Add nan2008.
5908         (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
5910 2013-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
5912         PR rtl-optimization/58079
5913         * combine.c (combine_simplify_rtx): Avoid using SUBST if
5914         simplify_comparison has widened a comparison with an integer.
5916 2013-08-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5918         * config/arm/neon.md (movmisalign<mode>): Disable when we
5919         don't allow unaligned accesses.
5920         (*movmisalign<mode>_neon_store): Likewise.
5921         (*movmisalign<mode>_neon_load): Likewise.
5922         (*movmisalign<mode>_neon_store): Likewise.
5923         (*movmisalign<mode>_neon_load): Likewise.
5925 2013-08-08  Jan Hubicka  <jh@suse.cz>
5927         * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
5928         (make_pass_rebuild_cgraph_edges): Also clear references.
5929         * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
5930         * ipa-inline-transform.c (inline_transform): Remove all references
5931         after inlining.
5932         * cgraphunit.c (expand_function): Remove all references after
5933         expansion.
5934         * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
5935         (ipa_find_reference): Rewrite to iterator.
5936         (remove_stmt_references): Likewise.
5937         (ipa_clear_stmts_in_references): New function.
5938         * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
5939         * cgraphclones.c (cgraph_materialize_all_clones): Remove or
5940         clear references.
5941         * ipa-split.c (split_function): Remove references in split function.
5943 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
5945         PR target/57431
5946         * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
5947         (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
5949 2013-08-08  Richard Earnshaw  <rearnsha@arm.com>
5951         PR target/56979
5952         * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
5953         suggested mode for the assignment isn't compatible with the
5954         registers required.
5956 2013-08-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5958         PR target/58065
5959         * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
5961 2013-08-07  Xinliang David Li  <davidxl@google.com>
5963         * config/i386/i386.opt: New option -mtune-ctrl=.
5964         * config/i386/x86-tune.def: New file.
5965         * config/i386/i386.h: include x86-tune.def.
5966         * config/i386/i386.c (ix86_option_override_internal):
5967         Parsing -mtune-ctrl= option and set tune features.
5969 2013-08-07  Oleg Endo  <olegendo@gcc.gnu.org>
5971         PR other/12081
5972         * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
5973         (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
5974         to gen_2arg_fn_t.
5976 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
5978         * rtl.h (update_alignments): Declare.
5979         * final.c (grow_label_align): New function extracted from...
5980         (shorten_branches): ...here.  Call it.
5981         (update_alignments): New function.
5982         * reorg.c (sibling_labels): New variable.
5983         (get_label_before): Add SIBLING parameter.  If it is non-zero, push
5984         the new label along with it onto the sibling_labels vector.
5985         (fill_simple_delay_slots): Adjust call to get_label_before.
5986         (fill_slots_from_thread): Likewise.
5987         (relax_delay_slots): Likewise.
5988         (make_return_insns): Likewise.
5989         (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
5991 2013-08-07  Eric Botcazou  <ebotcazou@adacore.com>
5993         * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
5994         document its semantics.
5995         (diagnostic_report_diagnostic): Adjust accordingly.
5997 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
5999         * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
6000         (sparc_option_override): ...and port to new C++ pass API.
6001         * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
6003 2013-08-07  Peter Bergner  <bergner@vnet.ibm.com>
6005         * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
6007 2013-08-06  Caroline Tice  <cmtice@google.com>
6009         * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
6010         (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
6011         * tree-pass.h: Add pass_vtable_verify.
6012         * varasm.c (assemble_variable): Add code to properly set the comdat
6013         section and name for the .vtable_map_vars section.
6014         (assemble_vtyv_preinit_initializer): New function.
6015         (default_sectin_type_flags):  Make sure .vtable_map_vars section has
6016         LINK_ONCE flag.
6017         * output.h: Add function decl for assemble_vtv_preinit_initializer.
6018         * vtable-verify.c: New file.
6019         * vtable-verify.h: New file.
6020         * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
6021         initialiation levels.
6022         * timevar.def (TV_VTABLE_VERIFICATION): New definition.
6023         * passes.def: Insert pass_vtable_verify.
6024         * aclocal.m4: Reorder includes.
6025         * doc/invoke.texi:  Document the -fvtable-verify=, -fvtv-debug, and
6026         -fvtv-counts options.
6027         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
6028         as appropriate, if -fvtable-verify=... is used.
6029         (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
6030         -fvtable-verify=... is used.
6031         * Makefile.in (OBJS):  Add vtable-verify.o to list.
6032         (vtable-verify.o): Add new build rule.
6033         (GTFILES): Add vtable-verify.c to list.
6034         * common.opt (fvtable-verify=): New flag.
6035         (vtv_priority): Values for fvtable-verify= flag.
6036         (fvtv-counts): New flag.
6037         (fvtv-debug): New flag.
6038         * tree.h (save_vtable_map_decl): New extern function decl.
6040 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
6042         * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
6043         (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
6044         (pass_data_rl78_devirt): ...new pass_data instance and...
6045         (make_pass_rl78_devirt): ...new function.
6046         (rl78_asm_file_start): Port pass registration to new C++ API.
6048 2013-08-07  David Malcolm  <dmalcolm@redhat.com>
6050         * coretypes.h (rtl_opt_pass): Add.
6051         (gcc::context): Add.
6052         * config/epiphany/epiphany.c (pass_mode_switch_use): New.
6053         (epiphany_init): Port to new C++ pass API.
6054         (epiphany_optimize_mode_switching): Likewise.
6055         * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
6056         (pass_manager::get_pass_mode_switching): New.
6057         (pass_manager::get_pass_peephole2): New.
6058         * mode-switching.c (pass_mode_switching): Add clone method.
6059         * recog.c (pass_peephole2): Add clone method.
6060         (pass_split_all_insns): Add clone method.
6062 2013-08-06  David Malcolm  <dmalcolm@redhat.com>
6064         * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
6065         (mips_option_override): ...here, porting to new C++ API for passes.
6067 2013-08-06  Jan Hubicka  <jh@suse.cz>
6069         * cgraph.c (cgraph_get_body): New function based on lto.c
6070         implementation.
6071         * cgraph.h (cgraph_get_body): Declare.
6072         * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
6073         LTO paths.
6074         * cgraphunit.c (expand_function): Get body prior expanding.
6075         * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
6076         * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
6077         really need.
6078         * passes.c (do_per_function_toporder): Get body.
6079         * tree-inline.c (expand_call_inline): Get body prior inlining it.
6080         * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
6082 2013-08-06  Martin Jambor  <mjambor@suse.cz>
6084         PR fortran/57987
6085         * cgraphunit.c (cgraph_finalize_function): Assert that nested function
6086         is not re-finalized.  Rename second parameter to no_collect.
6088 2013-08-06  Martin Jambor  <mjambor@suse.cz>
6090         PR middle-end/58041
6091         * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
6092         MEM_REF has proper alignment information.
6094 2013-08-05  Oleg Endo  <olegendo@gcc.gnu.org>
6096         PR other/12081
6097         * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
6098         class insn_gen_fn.
6099         * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
6100         rtx (*) (rtx, ...) with insn_gen_fn.
6101         * genoutput.c (output_insn_data): Cast gen_? function pointers to
6102         insn_gen_fn::stored_funcptr.  Add initializer braces.
6104 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
6106         Rewrite how instances of passes are cloned to remove assumptions
6107         about their sizes (thus allowing pass subclasses to have
6108         additional data fields, albeit non-GC-managed ones at this point).
6110         * passes.c (make_pass_instance): Now that passes have clone
6111         methods, rewrite this function to eliminate XNEW and memcpy
6112         calls that used hardcoded sizes.  Since this function no longer
6113         creates pass instances, rename it to...
6114         (add_pass_instance): ...this.  Document the old way that passes were
6115         numbered and flagged, and rework this function to continue using it.
6116         (next_pass_1): Add an initial_pass argument for use by
6117         add_pass_instance.
6118         (position_pass): When adding multiple instances of a pass, use
6119         the pass's clone method, rather than relying on the XNEW/memcpy
6120         within the former make_pass_instance (now add_pass_instance).
6121         (pass_manager::pass_manager): When invoking next_pass_1, also supply
6122         the initial instance of the current pass within the pass manager.
6124 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
6126         This is the automated part of the conversion of passes from C
6127         structs to C++ classes.
6129         Patch autogenerated by refactor_passes.py from
6130         https://github.com/davidmalcolm/gcc-refactoring-scripts
6131         revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
6133         * asan.c (pass_asan): Convert from a global struct to a subclass of
6134         gimple_opt_pass along with...
6135         (pass_data_asan): ...new pass_data instance and...
6136         (make_pass_asan): ...new function.
6137         (pass_asan_O0): Convert from a global struct to a subclass of
6138         gimple_opt_pass along with...
6139         (pass_data_asan_O0): ...new pass_data instance and...
6140         (make_pass_asan_O0): ...new function.
6141         * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
6142         subclass of rtl_opt_pass along with...
6143         (pass_data_inc_dec): ...new pass_data instance and...
6144         (make_pass_inc_dec): ...new function.
6145         * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
6146         a subclass of rtl_opt_pass along with...
6147         (pass_data_reorder_blocks): ...new pass_data instance and...
6148         (make_pass_reorder_blocks): ...new function.
6149         (pass_duplicate_computed_gotos): Convert from a global struct to a
6150         subclass of rtl_opt_pass along with...
6151         (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
6152         (make_pass_duplicate_computed_gotos): ...new function.
6153         (pass_partition_blocks): Convert from a global struct to a subclass of
6154         rtl_opt_pass along with...
6155         (pass_data_partition_blocks): ...new pass_data instance and...
6156         (make_pass_partition_blocks): ...new function.
6157         * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
6158         struct to a subclass of rtl_opt_pass along with...
6159         (pass_data_branch_target_load_optimize1): ...new pass_data instance
6160         and...
6161         (make_pass_branch_target_load_optimize1): ...new function.
6162         (pass_branch_target_load_optimize2): Convert from a global struct to a
6163         subclass of rtl_opt_pass along with...
6164         (pass_data_branch_target_load_optimize2): ...new pass_data instance
6165         and...
6166         (make_pass_branch_target_load_optimize2): ...new function.
6167         * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
6168         of rtl_opt_pass along with...
6169         (pass_data_jump): ...new pass_data instance and...
6170         (make_pass_jump): ...new function.
6171         (pass_jump2): Convert from a global struct to a subclass of
6172         rtl_opt_pass along with...
6173         (pass_data_jump2): ...new pass_data instance and...
6174         (make_pass_jump2): ...new function.
6175         * cfgexpand.c (pass_expand): Convert from a global struct to a
6176         subclass of rtl_opt_pass along with...
6177         (pass_data_expand): ...new pass_data instance and...
6178         (make_pass_expand): ...new function.
6179         * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
6180         of rtl_opt_pass along with...
6181         (pass_data_free_cfg): ...new pass_data instance and...
6182         (make_pass_free_cfg): ...new function.
6183         (pass_into_cfg_layout_mode): Convert from a global struct to a
6184         subclass of rtl_opt_pass along with...
6185         (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
6186         (make_pass_into_cfg_layout_mode): ...new function.
6187         (pass_outof_cfg_layout_mode): Convert from a global struct to a
6188         subclass of rtl_opt_pass along with...
6189         (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
6190         (make_pass_outof_cfg_layout_mode): ...new function.
6191         * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
6192         struct to a subclass of gimple_opt_pass along with...
6193         (pass_data_build_cgraph_edges): ...new pass_data instance and...
6194         (make_pass_build_cgraph_edges): ...new function.
6195         (pass_rebuild_cgraph_edges): Convert from a global struct to a
6196         subclass of gimple_opt_pass along with...
6197         (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
6198         (make_pass_rebuild_cgraph_edges): ...new function.
6199         (pass_remove_cgraph_callee_edges): Convert from a global struct to a
6200         subclass of gimple_opt_pass along with...
6201         (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
6202         and...
6203         (make_pass_remove_cgraph_callee_edges): ...new function.
6204         * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
6205         struct to a subclass of rtl_opt_pass along with...
6206         (pass_data_stack_adjustments): ...new pass_data instance and...
6207         (make_pass_stack_adjustments): ...new function.
6208         * combine.c (pass_combine): Convert from a global struct to a subclass
6209         of rtl_opt_pass along with...
6210         (pass_data_combine): ...new pass_data instance and...
6211         (make_pass_combine): ...new function.
6212         * compare-elim.c (pass_compare_elim_after_reload): Convert from a
6213         global struct to a subclass of rtl_opt_pass along with...
6214         (pass_data_compare_elim_after_reload): ...new pass_data instance
6215         and...
6216         (make_pass_compare_elim_after_reload): ...new function.
6217         * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
6218         of rtl_opt_pass along with...
6219         (pass_data_rtl_cprop): ...new pass_data instance and...
6220         (make_pass_rtl_cprop): ...new function.
6221         * cse.c (pass_cse): Convert from a global struct to a subclass of
6222         rtl_opt_pass along with...
6223         (pass_data_cse): ...new pass_data instance and...
6224         (make_pass_cse): ...new function.
6225         (pass_cse2): Convert from a global struct to a subclass of
6226         rtl_opt_pass along with...
6227         (pass_data_cse2): ...new pass_data instance and...
6228         (make_pass_cse2): ...new function.
6229         (pass_cse_after_global_opts): Convert from a global struct to a
6230         subclass of rtl_opt_pass along with...
6231         (pass_data_cse_after_global_opts): ...new pass_data instance and...
6232         (make_pass_cse_after_global_opts): ...new function.
6233         * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
6234         of rtl_opt_pass along with...
6235         (pass_data_ud_rtl_dce): ...new pass_data instance and...
6236         (make_pass_ud_rtl_dce): ...new function.
6237         (pass_fast_rtl_dce): Convert from a global struct to a subclass of
6238         rtl_opt_pass along with...
6239         (pass_data_fast_rtl_dce): ...new pass_data instance and...
6240         (make_pass_fast_rtl_dce): ...new function.
6241         * df-core.c (pass_df_initialize_opt): Convert from a global struct to
6242         a subclass of rtl_opt_pass along with...
6243         (pass_data_df_initialize_opt): ...new pass_data instance and...
6244         (make_pass_df_initialize_opt): ...new function.
6245         (pass_df_initialize_no_opt): Convert from a global struct to a
6246         subclass of rtl_opt_pass along with...
6247         (pass_data_df_initialize_no_opt): ...new pass_data instance and...
6248         (make_pass_df_initialize_no_opt): ...new function.
6249         (pass_df_finish): Convert from a global struct to a subclass of
6250         rtl_opt_pass along with...
6251         (pass_data_df_finish): ...new pass_data instance and...
6252         (make_pass_df_finish): ...new function.
6253         * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
6254         rtl_opt_pass along with...
6255         (pass_data_rtl_dse1): ...new pass_data instance and...
6256         (make_pass_rtl_dse1): ...new function.
6257         (pass_rtl_dse2): Convert from a global struct to a subclass of
6258         rtl_opt_pass along with...
6259         (pass_data_rtl_dse2): ...new pass_data instance and...
6260         (make_pass_rtl_dse2): ...new function.
6261         * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
6262         subclass of rtl_opt_pass along with...
6263         (pass_data_dwarf2_frame): ...new pass_data instance and...
6264         (make_pass_dwarf2_frame): ...new function.
6265         * except.c (pass_set_nothrow_function_flags): Convert from a global
6266         struct to a subclass of rtl_opt_pass along with...
6267         (pass_data_set_nothrow_function_flags): ...new pass_data instance
6268         and...
6269         (make_pass_set_nothrow_function_flags): ...new function.
6270         (pass_convert_to_eh_region_ranges): Convert from a global struct to a
6271         subclass of rtl_opt_pass along with...
6272         (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
6273         and...
6274         (make_pass_convert_to_eh_region_ranges): ...new function.
6275         * final.c (pass_compute_alignments): Convert from a global struct to a
6276         subclass of rtl_opt_pass along with...
6277         (pass_data_compute_alignments): ...new pass_data instance and...
6278         (make_pass_compute_alignments): ...new function.
6279         (pass_final): Convert from a global struct to a subclass of
6280         rtl_opt_pass along with...
6281         (pass_data_final): ...new pass_data instance and...
6282         (make_pass_final): ...new function.
6283         (pass_shorten_branches): Convert from a global struct to a subclass of
6284         rtl_opt_pass along with...
6285         (pass_data_shorten_branches): ...new pass_data instance and...
6286         (make_pass_shorten_branches): ...new function.
6287         (pass_clean_state): Convert from a global struct to a subclass of
6288         rtl_opt_pass along with...
6289         (pass_data_clean_state): ...new pass_data instance and...
6290         (make_pass_clean_state): ...new function.
6291         * function.c (pass_instantiate_virtual_regs): Convert from a global
6292         struct to a subclass of rtl_opt_pass along with...
6293         (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
6294         (make_pass_instantiate_virtual_regs): ...new function.
6295         (pass_leaf_regs): Convert from a global struct to a subclass of
6296         rtl_opt_pass along with...
6297         (pass_data_leaf_regs): ...new pass_data instance and...
6298         (make_pass_leaf_regs): ...new function.
6299         (pass_thread_prologue_and_epilogue): Convert from a global struct to a
6300         subclass of rtl_opt_pass along with...
6301         (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
6302         and...
6303         (make_pass_thread_prologue_and_epilogue): ...new function.
6304         (pass_match_asm_constraints): Convert from a global struct to a
6305         subclass of rtl_opt_pass along with...
6306         (pass_data_match_asm_constraints): ...new pass_data instance and...
6307         (make_pass_match_asm_constraints): ...new function.
6308         * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
6309         subclass of rtl_opt_pass along with...
6310         (pass_data_rtl_fwprop): ...new pass_data instance and...
6311         (make_pass_rtl_fwprop): ...new function.
6312         (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
6313         rtl_opt_pass along with...
6314         (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
6315         (make_pass_rtl_fwprop_addr): ...new function.
6316         * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
6317         rtl_opt_pass along with...
6318         (pass_data_rtl_pre): ...new pass_data instance and...
6319         (make_pass_rtl_pre): ...new function.
6320         (pass_rtl_hoist): Convert from a global struct to a subclass of
6321         rtl_opt_pass along with...
6322         (pass_data_rtl_hoist): ...new pass_data instance and...
6323         (make_pass_rtl_hoist): ...new function.
6324         * gimple-low.c (pass_lower_cf): Convert from a global struct to a
6325         subclass of gimple_opt_pass along with...
6326         (pass_data_lower_cf): ...new pass_data instance and...
6327         (make_pass_lower_cf): ...new function.
6328         * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
6329         from a global struct to a subclass of gimple_opt_pass along with...
6330         (pass_data_strength_reduction): ...new pass_data instance and...
6331         (make_pass_strength_reduction): ...new function.
6332         * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
6333         of rtl_opt_pass along with...
6334         (pass_data_rtl_ifcvt): ...new pass_data instance and...
6335         (make_pass_rtl_ifcvt): ...new function.
6336         (pass_if_after_combine): Convert from a global struct to a subclass of
6337         rtl_opt_pass along with...
6338         (pass_data_if_after_combine): ...new pass_data instance and...
6339         (make_pass_if_after_combine): ...new function.
6340         (pass_if_after_reload): Convert from a global struct to a subclass of
6341         rtl_opt_pass along with...
6342         (pass_data_if_after_reload): ...new pass_data instance and...
6343         (make_pass_if_after_reload): ...new function.
6344         * init-regs.c (pass_initialize_regs): Convert from a global struct to
6345         a subclass of rtl_opt_pass along with...
6346         (pass_data_initialize_regs): ...new pass_data instance and...
6347         (make_pass_initialize_regs): ...new function.
6348         * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
6349         of ipa_opt_pass_d along with...
6350         (pass_data_ipa_cp): ...new pass_data instance and...
6351         (make_pass_ipa_cp): ...new function.
6352         * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
6353         global struct to a subclass of gimple_opt_pass along with...
6354         (pass_data_inline_parameters): ...new pass_data instance and...
6355         (make_pass_inline_parameters): ...new function.
6356         * ipa-inline.c (pass_early_inline): Convert from a global struct to a
6357         subclass of gimple_opt_pass along with...
6358         (pass_data_early_inline): ...new pass_data instance and...
6359         (make_pass_early_inline): ...new function.
6360         (pass_ipa_inline): Convert from a global struct to a subclass of
6361         ipa_opt_pass_d along with...
6362         (pass_data_ipa_inline): ...new pass_data instance and...
6363         (make_pass_ipa_inline): ...new function.
6364         * ipa-pure-const.c (pass_local_pure_const): Convert from a global
6365         struct to a subclass of gimple_opt_pass along with...
6366         (pass_data_local_pure_const): ...new pass_data instance and...
6367         (make_pass_local_pure_const): ...new function.
6368         (pass_ipa_pure_const): Convert from a global struct to a subclass of
6369         ipa_opt_pass_d along with...
6370         (pass_data_ipa_pure_const): ...new pass_data instance and...
6371         (make_pass_ipa_pure_const): ...new function.
6372         * ipa-reference.c (pass_ipa_reference): Convert from a global struct
6373         to a subclass of ipa_opt_pass_d along with...
6374         (pass_data_ipa_reference): ...new pass_data instance and...
6375         (make_pass_ipa_reference): ...new function.
6376         * ipa-split.c (pass_split_functions): Convert from a global struct to
6377         a subclass of gimple_opt_pass along with...
6378         (pass_data_split_functions): ...new pass_data instance and...
6379         (make_pass_split_functions): ...new function.
6380         (pass_feedback_split_functions): Convert from a global struct to a
6381         subclass of gimple_opt_pass along with...
6382         (pass_data_feedback_split_functions): ...new pass_data instance and...
6383         (make_pass_feedback_split_functions): ...new function.
6384         * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
6385         global struct to a subclass of simple_ipa_opt_pass along with...
6386         (pass_data_ipa_function_and_variable_visibility): ...new pass_data
6387         instance and...
6388         (make_pass_ipa_function_and_variable_visibility): ...new function.
6389         (pass_ipa_free_inline_summary): Convert from a global struct to a
6390         subclass of simple_ipa_opt_pass along with...
6391         (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
6392         (make_pass_ipa_free_inline_summary): ...new function.
6393         (pass_ipa_whole_program_visibility): Convert from a global struct to a
6394         subclass of ipa_opt_pass_d along with...
6395         (pass_data_ipa_whole_program_visibility): ...new pass_data instance
6396         and...
6397         (make_pass_ipa_whole_program_visibility): ...new function.
6398         (pass_ipa_profile): Convert from a global struct to a subclass of
6399         ipa_opt_pass_d along with...
6400         (pass_data_ipa_profile): ...new pass_data instance and...
6401         (make_pass_ipa_profile): ...new function.
6402         (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
6403         ipa_opt_pass_d along with...
6404         (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
6405         (make_pass_ipa_cdtor_merge): ...new function.
6406         * ira.c (pass_ira): Convert from a global struct to a subclass of
6407         rtl_opt_pass along with...
6408         (pass_data_ira): ...new pass_data instance and...
6409         (make_pass_ira): ...new function.
6410         (pass_reload): Convert from a global struct to a subclass of
6411         rtl_opt_pass along with...
6412         (pass_data_reload): ...new pass_data instance and...
6413         (make_pass_reload): ...new function.
6414         * jump.c (pass_cleanup_barriers): Convert from a global struct to a
6415         subclass of rtl_opt_pass along with...
6416         (pass_data_cleanup_barriers): ...new pass_data instance and...
6417         (make_pass_cleanup_barriers): ...new function.
6418         * loop-init.c (pass_loop2): Convert from a global struct to a subclass
6419         of rtl_opt_pass along with...
6420         (pass_data_loop2): ...new pass_data instance and...
6421         (make_pass_loop2): ...new function.
6422         (pass_rtl_loop_init): Convert from a global struct to a subclass of
6423         rtl_opt_pass along with...
6424         (pass_data_rtl_loop_init): ...new pass_data instance and...
6425         (make_pass_rtl_loop_init): ...new function.
6426         (pass_rtl_loop_done): Convert from a global struct to a subclass of
6427         rtl_opt_pass along with...
6428         (pass_data_rtl_loop_done): ...new pass_data instance and...
6429         (make_pass_rtl_loop_done): ...new function.
6430         (pass_rtl_move_loop_invariants): Convert from a global struct to a
6431         subclass of rtl_opt_pass along with...
6432         (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
6433         (make_pass_rtl_move_loop_invariants): ...new function.
6434         (pass_rtl_unswitch): Convert from a global struct to a subclass of
6435         rtl_opt_pass along with...
6436         (pass_data_rtl_unswitch): ...new pass_data instance and...
6437         (make_pass_rtl_unswitch): ...new function.
6438         (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
6439         subclass of rtl_opt_pass along with...
6440         (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
6441         and...
6442         (make_pass_rtl_unroll_and_peel_loops): ...new function.
6443         (pass_rtl_doloop): Convert from a global struct to a subclass of
6444         rtl_opt_pass along with...
6445         (pass_data_rtl_doloop): ...new pass_data instance and...
6446         (make_pass_rtl_doloop): ...new function.
6447         * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
6448         a subclass of rtl_opt_pass along with...
6449         (pass_data_lower_subreg): ...new pass_data instance and...
6450         (make_pass_lower_subreg): ...new function.
6451         (pass_lower_subreg2): Convert from a global struct to a subclass of
6452         rtl_opt_pass along with...
6453         (pass_data_lower_subreg2): ...new pass_data instance and...
6454         (make_pass_lower_subreg2): ...new function.
6455         * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
6456         struct to a subclass of ipa_opt_pass_d along with...
6457         (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
6458         (make_pass_ipa_lto_gimple_out): ...new function.
6459         (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
6460         of ipa_opt_pass_d along with...
6461         (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
6462         (make_pass_ipa_lto_finish_out): ...new function.
6463         * mode-switching.c (pass_mode_switching): Convert from a global struct
6464         to a subclass of rtl_opt_pass along with...
6465         (pass_data_mode_switching): ...new pass_data instance and...
6466         (make_pass_mode_switching): ...new function.
6467         * modulo-sched.c (pass_sms): Convert from a global struct to a
6468         subclass of rtl_opt_pass along with...
6469         (pass_data_sms): ...new pass_data instance and...
6470         (make_pass_sms): ...new function.
6471         * omp-low.c (pass_expand_omp): Convert from a global struct to a
6472         subclass of gimple_opt_pass along with...
6473         (pass_data_expand_omp): ...new pass_data instance and...
6474         (make_pass_expand_omp): ...new function.
6475         (pass_lower_omp): Convert from a global struct to a subclass of
6476         gimple_opt_pass along with...
6477         (pass_data_lower_omp): ...new pass_data instance and...
6478         (make_pass_lower_omp): ...new function.
6479         (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
6480         of gimple_opt_pass along with...
6481         (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
6482         (make_pass_diagnose_omp_blocks): ...new function.
6483         * passes.c (pass_early_local_passes): Convert from a global struct to
6484         a subclass of simple_ipa_opt_pass along with...
6485         (pass_data_early_local_passes): ...new pass_data instance and...
6486         (make_pass_early_local_passes): ...new function.
6487         (pass_all_early_optimizations): Convert from a global struct to a
6488         subclass of gimple_opt_pass along with...
6489         (pass_data_all_early_optimizations): ...new pass_data instance and...
6490         (make_pass_all_early_optimizations): ...new function.
6491         (pass_all_optimizations): Convert from a global struct to a subclass
6492         of gimple_opt_pass along with...
6493         (pass_data_all_optimizations): ...new pass_data instance and...
6494         (make_pass_all_optimizations): ...new function.
6495         (pass_all_optimizations_g): Convert from a global struct to a subclass
6496         of gimple_opt_pass along with...
6497         (pass_data_all_optimizations_g): ...new pass_data instance and...
6498         (make_pass_all_optimizations_g): ...new function.
6499         (pass_rest_of_compilation): Convert from a global struct to a subclass
6500         of rtl_opt_pass along with...
6501         (pass_data_rest_of_compilation): ...new pass_data instance and...
6502         (make_pass_rest_of_compilation): ...new function.
6503         (pass_postreload): Convert from a global struct to a subclass of
6504         rtl_opt_pass along with...
6505         (pass_data_postreload): ...new pass_data instance and...
6506         (make_pass_postreload): ...new function.
6507         * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
6508         subclass of rtl_opt_pass along with...
6509         (pass_data_gcse2): ...new pass_data instance and...
6510         (make_pass_gcse2): ...new function.
6511         * postreload.c (pass_postreload_cse): Convert from a global struct to
6512         a subclass of rtl_opt_pass along with...
6513         (pass_data_postreload_cse): ...new pass_data instance and...
6514         (make_pass_postreload_cse): ...new function.
6515         * predict.c (pass_profile): Convert from a global struct to a subclass
6516         of gimple_opt_pass along with...
6517         (pass_data_profile): ...new pass_data instance and...
6518         (make_pass_profile): ...new function.
6519         (pass_strip_predict_hints): Convert from a global struct to a subclass
6520         of gimple_opt_pass along with...
6521         (pass_data_strip_predict_hints): ...new pass_data instance and...
6522         (make_pass_strip_predict_hints): ...new function.
6523         * recog.c (pass_peephole2): Convert from a global struct to a subclass
6524         of rtl_opt_pass along with...
6525         (pass_data_peephole2): ...new pass_data instance and...
6526         (make_pass_peephole2): ...new function.
6527         (pass_split_all_insns): Convert from a global struct to a subclass of
6528         rtl_opt_pass along with...
6529         (pass_data_split_all_insns): ...new pass_data instance and...
6530         (make_pass_split_all_insns): ...new function.
6531         (pass_split_after_reload): Convert from a global struct to a subclass
6532         of rtl_opt_pass along with...
6533         (pass_data_split_after_reload): ...new pass_data instance and...
6534         (make_pass_split_after_reload): ...new function.
6535         (pass_split_before_regstack): Convert from a global struct to a
6536         subclass of rtl_opt_pass along with...
6537         (pass_data_split_before_regstack): ...new pass_data instance and...
6538         (make_pass_split_before_regstack): ...new function.
6539         (pass_split_before_sched2): Convert from a global struct to a subclass
6540         of rtl_opt_pass along with...
6541         (pass_data_split_before_sched2): ...new pass_data instance and...
6542         (make_pass_split_before_sched2): ...new function.
6543         (pass_split_for_shorten_branches): Convert from a global struct to a
6544         subclass of rtl_opt_pass along with...
6545         (pass_data_split_for_shorten_branches): ...new pass_data instance
6546         and...
6547         (make_pass_split_for_shorten_branches): ...new function.
6548         * ree.c (pass_ree): Convert from a global struct to a subclass of
6549         rtl_opt_pass along with...
6550         (pass_data_ree): ...new pass_data instance and...
6551         (make_pass_ree): ...new function.
6552         * reg-stack.c (pass_stack_regs): Convert from a global struct to a
6553         subclass of rtl_opt_pass along with...
6554         (pass_data_stack_regs): ...new pass_data instance and...
6555         (make_pass_stack_regs): ...new function.
6556         (pass_stack_regs_run): Convert from a global struct to a subclass of
6557         rtl_opt_pass along with...
6558         (pass_data_stack_regs_run): ...new pass_data instance and...
6559         (make_pass_stack_regs_run): ...new function.
6560         * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
6561         subclass of rtl_opt_pass along with...
6562         (pass_data_cprop_hardreg): ...new pass_data instance and...
6563         (make_pass_cprop_hardreg): ...new function.
6564         * reginfo.c (pass_reginfo_init): Convert from a global struct to a
6565         subclass of rtl_opt_pass along with...
6566         (pass_data_reginfo_init): ...new pass_data instance and...
6567         (make_pass_reginfo_init): ...new function.
6568         * regmove.c (pass_regmove): Convert from a global struct to a subclass
6569         of rtl_opt_pass along with...
6570         (pass_data_regmove): ...new pass_data instance and...
6571         (make_pass_regmove): ...new function.
6572         * regrename.c (pass_regrename): Convert from a global struct to a
6573         subclass of rtl_opt_pass along with...
6574         (pass_data_regrename): ...new pass_data instance and...
6575         (make_pass_regrename): ...new function.
6576         * reorg.c (pass_delay_slots): Convert from a global struct to a
6577         subclass of rtl_opt_pass along with...
6578         (pass_data_delay_slots): ...new pass_data instance and...
6579         (make_pass_delay_slots): ...new function.
6580         (pass_machine_reorg): Convert from a global struct to a subclass of
6581         rtl_opt_pass along with...
6582         (pass_data_machine_reorg): ...new pass_data instance and...
6583         (make_pass_machine_reorg): ...new function.
6584         * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
6585         of rtl_opt_pass along with...
6586         (pass_data_sched): ...new pass_data instance and...
6587         (make_pass_sched): ...new function.
6588         (pass_sched2): Convert from a global struct to a subclass of
6589         rtl_opt_pass along with...
6590         (pass_data_sched2): ...new pass_data instance and...
6591         (make_pass_sched2): ...new function.
6592         * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
6593         to a subclass of rtl_opt_pass along with...
6594         (pass_data_stack_ptr_mod): ...new pass_data instance and...
6595         (make_pass_stack_ptr_mod): ...new function.
6596         * store-motion.c (pass_rtl_store_motion): Convert from a global struct
6597         to a subclass of rtl_opt_pass along with...
6598         (pass_data_rtl_store_motion): ...new pass_data instance and...
6599         (make_pass_rtl_store_motion): ...new function.
6600         * tracer.c (pass_tracer): Convert from a global struct to a subclass
6601         of gimple_opt_pass along with...
6602         (pass_data_tracer): ...new pass_data instance and...
6603         (make_pass_tracer): ...new function.
6604         * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
6605         to a subclass of gimple_opt_pass along with...
6606         (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
6607         (make_pass_diagnose_tm_blocks): ...new function.
6608         (pass_lower_tm): Convert from a global struct to a subclass of
6609         gimple_opt_pass along with...
6610         (pass_data_lower_tm): ...new pass_data instance and...
6611         (make_pass_lower_tm): ...new function.
6612         (pass_tm_init): Convert from a global struct to a subclass of
6613         gimple_opt_pass along with...
6614         (pass_data_tm_init): ...new pass_data instance and...
6615         (make_pass_tm_init): ...new function.
6616         (pass_tm_mark): Convert from a global struct to a subclass of
6617         gimple_opt_pass along with...
6618         (pass_data_tm_mark): ...new pass_data instance and...
6619         (make_pass_tm_mark): ...new function.
6620         (pass_tm_edges): Convert from a global struct to a subclass of
6621         gimple_opt_pass along with...
6622         (pass_data_tm_edges): ...new pass_data instance and...
6623         (make_pass_tm_edges): ...new function.
6624         (pass_tm_memopt): Convert from a global struct to a subclass of
6625         gimple_opt_pass along with...
6626         (pass_data_tm_memopt): ...new pass_data instance and...
6627         (make_pass_tm_memopt): ...new function.
6628         (pass_ipa_tm): Convert from a global struct to a subclass of
6629         simple_ipa_opt_pass along with...
6630         (pass_data_ipa_tm): ...new pass_data instance and...
6631         (make_pass_ipa_tm): ...new function.
6632         * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
6633         subclass of gimple_opt_pass along with...
6634         (pass_data_call_cdce): ...new pass_data instance and...
6635         (make_pass_call_cdce): ...new function.
6636         * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
6637         subclass of gimple_opt_pass along with...
6638         (pass_data_build_cfg): ...new pass_data instance and...
6639         (make_pass_build_cfg): ...new function.
6640         (pass_split_crit_edges): Convert from a global struct to a subclass of
6641         gimple_opt_pass along with...
6642         (pass_data_split_crit_edges): ...new pass_data instance and...
6643         (make_pass_split_crit_edges): ...new function.
6644         (pass_warn_function_return): Convert from a global struct to a
6645         subclass of gimple_opt_pass along with...
6646         (pass_data_warn_function_return): ...new pass_data instance and...
6647         (make_pass_warn_function_return): ...new function.
6648         (pass_warn_function_noreturn): Convert from a global struct to a
6649         subclass of gimple_opt_pass along with...
6650         (pass_data_warn_function_noreturn): ...new pass_data instance and...
6651         (make_pass_warn_function_noreturn): ...new function.
6652         (pass_warn_unused_result): Convert from a global struct to a subclass
6653         of gimple_opt_pass along with...
6654         (pass_data_warn_unused_result): ...new pass_data instance and...
6655         (make_pass_warn_unused_result): ...new function.
6656         * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
6657         a subclass of gimple_opt_pass along with...
6658         (pass_data_merge_phi): ...new pass_data instance and...
6659         (make_pass_merge_phi): ...new function.
6660         * tree-complex.c (pass_lower_complex): Convert from a global struct to
6661         a subclass of gimple_opt_pass along with...
6662         (pass_data_lower_complex): ...new pass_data instance and...
6663         (make_pass_lower_complex): ...new function.
6664         (pass_lower_complex_O0): Convert from a global struct to a subclass of
6665         gimple_opt_pass along with...
6666         (pass_data_lower_complex_O0): ...new pass_data instance and...
6667         (make_pass_lower_complex_O0): ...new function.
6668         * tree-eh.c (pass_lower_eh): Convert from a global struct to a
6669         subclass of gimple_opt_pass along with...
6670         (pass_data_lower_eh): ...new pass_data instance and...
6671         (make_pass_lower_eh): ...new function.
6672         (pass_refactor_eh): Convert from a global struct to a subclass of
6673         gimple_opt_pass along with...
6674         (pass_data_refactor_eh): ...new pass_data instance and...
6675         (make_pass_refactor_eh): ...new function.
6676         (pass_lower_resx): Convert from a global struct to a subclass of
6677         gimple_opt_pass along with...
6678         (pass_data_lower_resx): ...new pass_data instance and...
6679         (make_pass_lower_resx): ...new function.
6680         (pass_lower_eh_dispatch): Convert from a global struct to a subclass
6681         of gimple_opt_pass along with...
6682         (pass_data_lower_eh_dispatch): ...new pass_data instance and...
6683         (make_pass_lower_eh_dispatch): ...new function.
6684         (pass_cleanup_eh): Convert from a global struct to a subclass of
6685         gimple_opt_pass along with...
6686         (pass_data_cleanup_eh): ...new pass_data instance and...
6687         (make_pass_cleanup_eh): ...new function.
6688         * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
6689         to a subclass of simple_ipa_opt_pass along with...
6690         (pass_data_ipa_lower_emutls): ...new pass_data instance and...
6691         (make_pass_ipa_lower_emutls): ...new function.
6692         * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
6693         a subclass of gimple_opt_pass along with...
6694         (pass_data_if_conversion): ...new pass_data instance and...
6695         (make_pass_if_conversion): ...new function.
6696         * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
6697         subclass of gimple_opt_pass along with...
6698         (pass_data_build_ssa): ...new pass_data instance and...
6699         (make_pass_build_ssa): ...new function.
6700         * tree-loop-distribution.c (pass_loop_distribution): Convert from a
6701         global struct to a subclass of gimple_opt_pass along with...
6702         (pass_data_loop_distribution): ...new pass_data instance and...
6703         (make_pass_loop_distribution): ...new function.
6704         * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
6705         subclass of gimple_opt_pass along with...
6706         (pass_data_mudflap_1): ...new pass_data instance and...
6707         (make_pass_mudflap_1): ...new function.
6708         (pass_mudflap_2): Convert from a global struct to a subclass of
6709         gimple_opt_pass along with...
6710         (pass_data_mudflap_2): ...new pass_data instance and...
6711         (make_pass_mudflap_2): ...new function.
6712         * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
6713         subclass of gimple_opt_pass along with...
6714         (pass_data_mudflap_1): ...new pass_data instance and...
6715         (make_pass_mudflap_1): ...new function.
6716         (pass_mudflap_2): Convert from a global struct to a subclass of
6717         gimple_opt_pass along with...
6718         (pass_data_mudflap_2): ...new pass_data instance and...
6719         (make_pass_mudflap_2): ...new function.
6720         * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
6721         gimple_opt_pass along with...
6722         (pass_data_nrv): ...new pass_data instance and...
6723         (make_pass_nrv): ...new function.
6724         (pass_return_slot): Convert from a global struct to a subclass of
6725         gimple_opt_pass along with...
6726         (pass_data_return_slot): ...new pass_data instance and...
6727         (make_pass_return_slot): ...new function.
6728         * tree-object-size.c (pass_object_sizes): Convert from a global struct
6729         to a subclass of gimple_opt_pass along with...
6730         (pass_data_object_sizes): ...new pass_data instance and...
6731         (make_pass_object_sizes): ...new function.
6732         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
6733         global struct to a subclass of gimple_opt_pass along with...
6734         (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
6735         and...
6736         (make_pass_cleanup_cfg_post_optimizing): ...new function.
6737         (pass_fixup_cfg): Convert from a global struct to a subclass of
6738         gimple_opt_pass along with...
6739         (pass_data_fixup_cfg): ...new pass_data instance and...
6740         (make_pass_fixup_cfg): ...new function.
6741         * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
6742         (make_pass_mudflap_1): ...new function.
6743         (pass_mudflap_2): Replace declaration with that of...
6744         (make_pass_mudflap_2): ...new function.
6745         (pass_asan): Replace declaration with that of...
6746         (make_pass_asan): ...new function.
6747         (pass_asan_O0): Replace declaration with that of...
6748         (make_pass_asan_O0): ...new function.
6749         (pass_tsan): Replace declaration with that of...
6750         (make_pass_tsan): ...new function.
6751         (pass_tsan_O0): Replace declaration with that of...
6752         (make_pass_tsan_O0): ...new function.
6753         (pass_lower_cf): Replace declaration with that of...
6754         (make_pass_lower_cf): ...new function.
6755         (pass_refactor_eh): Replace declaration with that of...
6756         (make_pass_refactor_eh): ...new function.
6757         (pass_lower_eh): Replace declaration with that of...
6758         (make_pass_lower_eh): ...new function.
6759         (pass_lower_eh_dispatch): Replace declaration with that of...
6760         (make_pass_lower_eh_dispatch): ...new function.
6761         (pass_lower_resx): Replace declaration with that of...
6762         (make_pass_lower_resx): ...new function.
6763         (pass_build_cfg): Replace declaration with that of...
6764         (make_pass_build_cfg): ...new function.
6765         (pass_early_tree_profile): Replace declaration with that of...
6766         (make_pass_early_tree_profile): ...new function.
6767         (pass_cleanup_eh): Replace declaration with that of...
6768         (make_pass_cleanup_eh): ...new function.
6769         (pass_sra): Replace declaration with that of...
6770         (make_pass_sra): ...new function.
6771         (pass_sra_early): Replace declaration with that of...
6772         (make_pass_sra_early): ...new function.
6773         (pass_early_ipa_sra): Replace declaration with that of...
6774         (make_pass_early_ipa_sra): ...new function.
6775         (pass_tail_recursion): Replace declaration with that of...
6776         (make_pass_tail_recursion): ...new function.
6777         (pass_tail_calls): Replace declaration with that of...
6778         (make_pass_tail_calls): ...new function.
6779         (pass_tree_loop): Replace declaration with that of...
6780         (make_pass_tree_loop): ...new function.
6781         (pass_tree_loop_init): Replace declaration with that of...
6782         (make_pass_tree_loop_init): ...new function.
6783         (pass_lim): Replace declaration with that of...
6784         (make_pass_lim): ...new function.
6785         (pass_tree_unswitch): Replace declaration with that of...
6786         (make_pass_tree_unswitch): ...new function.
6787         (pass_predcom): Replace declaration with that of...
6788         (make_pass_predcom): ...new function.
6789         (pass_iv_canon): Replace declaration with that of...
6790         (make_pass_iv_canon): ...new function.
6791         (pass_scev_cprop): Replace declaration with that of...
6792         (make_pass_scev_cprop): ...new function.
6793         (pass_empty_loop): Replace declaration with that of...
6794         (make_pass_empty_loop): ...new function.
6795         (pass_record_bounds): Replace declaration with that of...
6796         (make_pass_record_bounds): ...new function.
6797         (pass_graphite): Replace declaration with that of...
6798         (make_pass_graphite): ...new function.
6799         (pass_graphite_transforms): Replace declaration with that of...
6800         (make_pass_graphite_transforms): ...new function.
6801         (pass_if_conversion): Replace declaration with that of...
6802         (make_pass_if_conversion): ...new function.
6803         (pass_loop_distribution): Replace declaration with that of...
6804         (make_pass_loop_distribution): ...new function.
6805         (pass_vectorize): Replace declaration with that of...
6806         (make_pass_vectorize): ...new function.
6807         (pass_slp_vectorize): Replace declaration with that of...
6808         (make_pass_slp_vectorize): ...new function.
6809         (pass_complete_unroll): Replace declaration with that of...
6810         (make_pass_complete_unroll): ...new function.
6811         (pass_complete_unrolli): Replace declaration with that of...
6812         (make_pass_complete_unrolli): ...new function.
6813         (pass_parallelize_loops): Replace declaration with that of...
6814         (make_pass_parallelize_loops): ...new function.
6815         (pass_loop_prefetch): Replace declaration with that of...
6816         (make_pass_loop_prefetch): ...new function.
6817         (pass_iv_optimize): Replace declaration with that of...
6818         (make_pass_iv_optimize): ...new function.
6819         (pass_tree_loop_done): Replace declaration with that of...
6820         (make_pass_tree_loop_done): ...new function.
6821         (pass_ch): Replace declaration with that of...
6822         (make_pass_ch): ...new function.
6823         (pass_ccp): Replace declaration with that of...
6824         (make_pass_ccp): ...new function.
6825         (pass_phi_only_cprop): Replace declaration with that of...
6826         (make_pass_phi_only_cprop): ...new function.
6827         (pass_build_ssa): Replace declaration with that of...
6828         (make_pass_build_ssa): ...new function.
6829         (pass_build_alias): Replace declaration with that of...
6830         (make_pass_build_alias): ...new function.
6831         (pass_build_ealias): Replace declaration with that of...
6832         (make_pass_build_ealias): ...new function.
6833         (pass_dominator): Replace declaration with that of...
6834         (make_pass_dominator): ...new function.
6835         (pass_dce): Replace declaration with that of...
6836         (make_pass_dce): ...new function.
6837         (pass_dce_loop): Replace declaration with that of...
6838         (make_pass_dce_loop): ...new function.
6839         (pass_cd_dce): Replace declaration with that of...
6840         (make_pass_cd_dce): ...new function.
6841         (pass_call_cdce): Replace declaration with that of...
6842         (make_pass_call_cdce): ...new function.
6843         (pass_merge_phi): Replace declaration with that of...
6844         (make_pass_merge_phi): ...new function.
6845         (pass_split_crit_edges): Replace declaration with that of...
6846         (make_pass_split_crit_edges): ...new function.
6847         (pass_pre): Replace declaration with that of...
6848         (make_pass_pre): ...new function.
6849         (pass_profile): Replace declaration with that of...
6850         (make_pass_profile): ...new function.
6851         (pass_strip_predict_hints): Replace declaration with that of...
6852         (make_pass_strip_predict_hints): ...new function.
6853         (pass_lower_complex_O0): Replace declaration with that of...
6854         (make_pass_lower_complex_O0): ...new function.
6855         (pass_lower_complex): Replace declaration with that of...
6856         (make_pass_lower_complex): ...new function.
6857         (pass_lower_vector): Replace declaration with that of...
6858         (make_pass_lower_vector): ...new function.
6859         (pass_lower_vector_ssa): Replace declaration with that of...
6860         (make_pass_lower_vector_ssa): ...new function.
6861         (pass_lower_omp): Replace declaration with that of...
6862         (make_pass_lower_omp): ...new function.
6863         (pass_diagnose_omp_blocks): Replace declaration with that of...
6864         (make_pass_diagnose_omp_blocks): ...new function.
6865         (pass_expand_omp): Replace declaration with that of...
6866         (make_pass_expand_omp): ...new function.
6867         (pass_expand_omp_ssa): Replace declaration with that of...
6868         (make_pass_expand_omp_ssa): ...new function.
6869         (pass_object_sizes): Replace declaration with that of...
6870         (make_pass_object_sizes): ...new function.
6871         (pass_strlen): Replace declaration with that of...
6872         (make_pass_strlen): ...new function.
6873         (pass_fold_builtins): Replace declaration with that of...
6874         (make_pass_fold_builtins): ...new function.
6875         (pass_stdarg): Replace declaration with that of...
6876         (make_pass_stdarg): ...new function.
6877         (pass_early_warn_uninitialized): Replace declaration with that of...
6878         (make_pass_early_warn_uninitialized): ...new function.
6879         (pass_late_warn_uninitialized): Replace declaration with that of...
6880         (make_pass_late_warn_uninitialized): ...new function.
6881         (pass_cse_reciprocals): Replace declaration with that of...
6882         (make_pass_cse_reciprocals): ...new function.
6883         (pass_cse_sincos): Replace declaration with that of...
6884         (make_pass_cse_sincos): ...new function.
6885         (pass_optimize_bswap): Replace declaration with that of...
6886         (make_pass_optimize_bswap): ...new function.
6887         (pass_optimize_widening_mul): Replace declaration with that of...
6888         (make_pass_optimize_widening_mul): ...new function.
6889         (pass_warn_function_return): Replace declaration with that of...
6890         (make_pass_warn_function_return): ...new function.
6891         (pass_warn_function_noreturn): Replace declaration with that of...
6892         (make_pass_warn_function_noreturn): ...new function.
6893         (pass_cselim): Replace declaration with that of...
6894         (make_pass_cselim): ...new function.
6895         (pass_phiopt): Replace declaration with that of...
6896         (make_pass_phiopt): ...new function.
6897         (pass_forwprop): Replace declaration with that of...
6898         (make_pass_forwprop): ...new function.
6899         (pass_phiprop): Replace declaration with that of...
6900         (make_pass_phiprop): ...new function.
6901         (pass_tree_ifcombine): Replace declaration with that of...
6902         (make_pass_tree_ifcombine): ...new function.
6903         (pass_dse): Replace declaration with that of...
6904         (make_pass_dse): ...new function.
6905         (pass_nrv): Replace declaration with that of...
6906         (make_pass_nrv): ...new function.
6907         (pass_rename_ssa_copies): Replace declaration with that of...
6908         (make_pass_rename_ssa_copies): ...new function.
6909         (pass_sink_code): Replace declaration with that of...
6910         (make_pass_sink_code): ...new function.
6911         (pass_fre): Replace declaration with that of...
6912         (make_pass_fre): ...new function.
6913         (pass_check_data_deps): Replace declaration with that of...
6914         (make_pass_check_data_deps): ...new function.
6915         (pass_copy_prop): Replace declaration with that of...
6916         (make_pass_copy_prop): ...new function.
6917         (pass_vrp): Replace declaration with that of...
6918         (make_pass_vrp): ...new function.
6919         (pass_uncprop): Replace declaration with that of...
6920         (make_pass_uncprop): ...new function.
6921         (pass_return_slot): Replace declaration with that of...
6922         (make_pass_return_slot): ...new function.
6923         (pass_reassoc): Replace declaration with that of...
6924         (make_pass_reassoc): ...new function.
6925         (pass_rebuild_cgraph_edges): Replace declaration with that of...
6926         (make_pass_rebuild_cgraph_edges): ...new function.
6927         (pass_remove_cgraph_callee_edges): Replace declaration with that of...
6928         (make_pass_remove_cgraph_callee_edges): ...new function.
6929         (pass_build_cgraph_edges): Replace declaration with that of...
6930         (make_pass_build_cgraph_edges): ...new function.
6931         (pass_local_pure_const): Replace declaration with that of...
6932         (make_pass_local_pure_const): ...new function.
6933         (pass_tracer): Replace declaration with that of...
6934         (make_pass_tracer): ...new function.
6935         (pass_warn_unused_result): Replace declaration with that of...
6936         (make_pass_warn_unused_result): ...new function.
6937         (pass_diagnose_tm_blocks): Replace declaration with that of...
6938         (make_pass_diagnose_tm_blocks): ...new function.
6939         (pass_lower_tm): Replace declaration with that of...
6940         (make_pass_lower_tm): ...new function.
6941         (pass_tm_init): Replace declaration with that of...
6942         (make_pass_tm_init): ...new function.
6943         (pass_tm_mark): Replace declaration with that of...
6944         (make_pass_tm_mark): ...new function.
6945         (pass_tm_memopt): Replace declaration with that of...
6946         (make_pass_tm_memopt): ...new function.
6947         (pass_tm_edges): Replace declaration with that of...
6948         (make_pass_tm_edges): ...new function.
6949         (pass_split_functions): Replace declaration with that of...
6950         (make_pass_split_functions): ...new function.
6951         (pass_feedback_split_functions): Replace declaration with that of...
6952         (make_pass_feedback_split_functions): ...new function.
6953         (pass_strength_reduction): Replace declaration with that of...
6954         (make_pass_strength_reduction): ...new function.
6955         (pass_ipa_lower_emutls): Replace declaration with that of...
6956         (make_pass_ipa_lower_emutls): ...new function.
6957         (pass_ipa_function_and_variable_visibility): Replace declaration with
6958         that of...
6959         (make_pass_ipa_function_and_variable_visibility): ...new function.
6960         (pass_ipa_tree_profile): Replace declaration with that of...
6961         (make_pass_ipa_tree_profile): ...new function.
6962         (pass_early_local_passes): Replace declaration with that of...
6963         (make_pass_early_local_passes): ...new function.
6964         (pass_ipa_whole_program_visibility): Replace declaration with that
6965         of...
6966         (make_pass_ipa_whole_program_visibility): ...new function.
6967         (pass_ipa_lto_gimple_out): Replace declaration with that of...
6968         (make_pass_ipa_lto_gimple_out): ...new function.
6969         (pass_ipa_increase_alignment): Replace declaration with that of...
6970         (make_pass_ipa_increase_alignment): ...new function.
6971         (pass_ipa_inline): Replace declaration with that of...
6972         (make_pass_ipa_inline): ...new function.
6973         (pass_ipa_free_lang_data): Replace declaration with that of...
6974         (make_pass_ipa_free_lang_data): ...new function.
6975         (pass_ipa_free_inline_summary): Replace declaration with that of...
6976         (make_pass_ipa_free_inline_summary): ...new function.
6977         (pass_ipa_cp): Replace declaration with that of...
6978         (make_pass_ipa_cp): ...new function.
6979         (pass_ipa_reference): Replace declaration with that of...
6980         (make_pass_ipa_reference): ...new function.
6981         (pass_ipa_pure_const): Replace declaration with that of...
6982         (make_pass_ipa_pure_const): ...new function.
6983         (pass_ipa_pta): Replace declaration with that of...
6984         (make_pass_ipa_pta): ...new function.
6985         (pass_ipa_lto_finish_out): Replace declaration with that of...
6986         (make_pass_ipa_lto_finish_out): ...new function.
6987         (pass_ipa_tm): Replace declaration with that of...
6988         (make_pass_ipa_tm): ...new function.
6989         (pass_ipa_profile): Replace declaration with that of...
6990         (make_pass_ipa_profile): ...new function.
6991         (pass_ipa_cdtor_merge): Replace declaration with that of...
6992         (make_pass_ipa_cdtor_merge): ...new function.
6993         (pass_cleanup_cfg_post_optimizing): Replace declaration with that
6994         of...
6995         (make_pass_cleanup_cfg_post_optimizing): ...new function.
6996         (pass_init_datastructures): Replace declaration with that of...
6997         (make_pass_init_datastructures): ...new function.
6998         (pass_fixup_cfg): Replace declaration with that of...
6999         (make_pass_fixup_cfg): ...new function.
7000         (pass_expand): Replace declaration with that of...
7001         (make_pass_expand): ...new function.
7002         (pass_instantiate_virtual_regs): Replace declaration with that of...
7003         (make_pass_instantiate_virtual_regs): ...new function.
7004         (pass_rtl_fwprop): Replace declaration with that of...
7005         (make_pass_rtl_fwprop): ...new function.
7006         (pass_rtl_fwprop_addr): Replace declaration with that of...
7007         (make_pass_rtl_fwprop_addr): ...new function.
7008         (pass_jump): Replace declaration with that of...
7009         (make_pass_jump): ...new function.
7010         (pass_jump2): Replace declaration with that of...
7011         (make_pass_jump2): ...new function.
7012         (pass_lower_subreg): Replace declaration with that of...
7013         (make_pass_lower_subreg): ...new function.
7014         (pass_cse): Replace declaration with that of...
7015         (make_pass_cse): ...new function.
7016         (pass_fast_rtl_dce): Replace declaration with that of...
7017         (make_pass_fast_rtl_dce): ...new function.
7018         (pass_ud_rtl_dce): Replace declaration with that of...
7019         (make_pass_ud_rtl_dce): ...new function.
7020         (pass_rtl_dce): Replace declaration with that of...
7021         (make_pass_rtl_dce): ...new function.
7022         (pass_rtl_dse1): Replace declaration with that of...
7023         (make_pass_rtl_dse1): ...new function.
7024         (pass_rtl_dse2): Replace declaration with that of...
7025         (make_pass_rtl_dse2): ...new function.
7026         (pass_rtl_dse3): Replace declaration with that of...
7027         (make_pass_rtl_dse3): ...new function.
7028         (pass_rtl_cprop): Replace declaration with that of...
7029         (make_pass_rtl_cprop): ...new function.
7030         (pass_rtl_pre): Replace declaration with that of...
7031         (make_pass_rtl_pre): ...new function.
7032         (pass_rtl_hoist): Replace declaration with that of...
7033         (make_pass_rtl_hoist): ...new function.
7034         (pass_rtl_store_motion): Replace declaration with that of...
7035         (make_pass_rtl_store_motion): ...new function.
7036         (pass_cse_after_global_opts): Replace declaration with that of...
7037         (make_pass_cse_after_global_opts): ...new function.
7038         (pass_rtl_ifcvt): Replace declaration with that of...
7039         (make_pass_rtl_ifcvt): ...new function.
7040         (pass_into_cfg_layout_mode): Replace declaration with that of...
7041         (make_pass_into_cfg_layout_mode): ...new function.
7042         (pass_outof_cfg_layout_mode): Replace declaration with that of...
7043         (make_pass_outof_cfg_layout_mode): ...new function.
7044         (pass_loop2): Replace declaration with that of...
7045         (make_pass_loop2): ...new function.
7046         (pass_rtl_loop_init): Replace declaration with that of...
7047         (make_pass_rtl_loop_init): ...new function.
7048         (pass_rtl_move_loop_invariants): Replace declaration with that of...
7049         (make_pass_rtl_move_loop_invariants): ...new function.
7050         (pass_rtl_unswitch): Replace declaration with that of...
7051         (make_pass_rtl_unswitch): ...new function.
7052         (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
7053         (make_pass_rtl_unroll_and_peel_loops): ...new function.
7054         (pass_rtl_doloop): Replace declaration with that of...
7055         (make_pass_rtl_doloop): ...new function.
7056         (pass_rtl_loop_done): Replace declaration with that of...
7057         (make_pass_rtl_loop_done): ...new function.
7058         (pass_web): Replace declaration with that of...
7059         (make_pass_web): ...new function.
7060         (pass_cse2): Replace declaration with that of...
7061         (make_pass_cse2): ...new function.
7062         (pass_df_initialize_opt): Replace declaration with that of...
7063         (make_pass_df_initialize_opt): ...new function.
7064         (pass_df_initialize_no_opt): Replace declaration with that of...
7065         (make_pass_df_initialize_no_opt): ...new function.
7066         (pass_reginfo_init): Replace declaration with that of...
7067         (make_pass_reginfo_init): ...new function.
7068         (pass_inc_dec): Replace declaration with that of...
7069         (make_pass_inc_dec): ...new function.
7070         (pass_stack_ptr_mod): Replace declaration with that of...
7071         (make_pass_stack_ptr_mod): ...new function.
7072         (pass_initialize_regs): Replace declaration with that of...
7073         (make_pass_initialize_regs): ...new function.
7074         (pass_combine): Replace declaration with that of...
7075         (make_pass_combine): ...new function.
7076         (pass_if_after_combine): Replace declaration with that of...
7077         (make_pass_if_after_combine): ...new function.
7078         (pass_ree): Replace declaration with that of...
7079         (make_pass_ree): ...new function.
7080         (pass_partition_blocks): Replace declaration with that of...
7081         (make_pass_partition_blocks): ...new function.
7082         (pass_match_asm_constraints): Replace declaration with that of...
7083         (make_pass_match_asm_constraints): ...new function.
7084         (pass_regmove): Replace declaration with that of...
7085         (make_pass_regmove): ...new function.
7086         (pass_split_all_insns): Replace declaration with that of...
7087         (make_pass_split_all_insns): ...new function.
7088         (pass_fast_rtl_byte_dce): Replace declaration with that of...
7089         (make_pass_fast_rtl_byte_dce): ...new function.
7090         (pass_lower_subreg2): Replace declaration with that of...
7091         (make_pass_lower_subreg2): ...new function.
7092         (pass_mode_switching): Replace declaration with that of...
7093         (make_pass_mode_switching): ...new function.
7094         (pass_sms): Replace declaration with that of...
7095         (make_pass_sms): ...new function.
7096         (pass_sched): Replace declaration with that of...
7097         (make_pass_sched): ...new function.
7098         (pass_ira): Replace declaration with that of...
7099         (make_pass_ira): ...new function.
7100         (pass_reload): Replace declaration with that of...
7101         (make_pass_reload): ...new function.
7102         (pass_clean_state): Replace declaration with that of...
7103         (make_pass_clean_state): ...new function.
7104         (pass_branch_prob): Replace declaration with that of...
7105         (make_pass_branch_prob): ...new function.
7106         (pass_value_profile_transformations): Replace declaration with that
7107         of...
7108         (make_pass_value_profile_transformations): ...new function.
7109         (pass_postreload_cse): Replace declaration with that of...
7110         (make_pass_postreload_cse): ...new function.
7111         (pass_gcse2): Replace declaration with that of...
7112         (make_pass_gcse2): ...new function.
7113         (pass_split_after_reload): Replace declaration with that of...
7114         (make_pass_split_after_reload): ...new function.
7115         (pass_branch_target_load_optimize1): Replace declaration with that
7116         of...
7117         (make_pass_branch_target_load_optimize1): ...new function.
7118         (pass_thread_prologue_and_epilogue): Replace declaration with that
7119         of...
7120         (make_pass_thread_prologue_and_epilogue): ...new function.
7121         (pass_stack_adjustments): Replace declaration with that of...
7122         (make_pass_stack_adjustments): ...new function.
7123         (pass_peephole2): Replace declaration with that of...
7124         (make_pass_peephole2): ...new function.
7125         (pass_if_after_reload): Replace declaration with that of...
7126         (make_pass_if_after_reload): ...new function.
7127         (pass_regrename): Replace declaration with that of...
7128         (make_pass_regrename): ...new function.
7129         (pass_cprop_hardreg): Replace declaration with that of...
7130         (make_pass_cprop_hardreg): ...new function.
7131         (pass_reorder_blocks): Replace declaration with that of...
7132         (make_pass_reorder_blocks): ...new function.
7133         (pass_branch_target_load_optimize2): Replace declaration with that
7134         of...
7135         (make_pass_branch_target_load_optimize2): ...new function.
7136         (pass_leaf_regs): Replace declaration with that of...
7137         (make_pass_leaf_regs): ...new function.
7138         (pass_split_before_sched2): Replace declaration with that of...
7139         (make_pass_split_before_sched2): ...new function.
7140         (pass_compare_elim_after_reload): Replace declaration with that of...
7141         (make_pass_compare_elim_after_reload): ...new function.
7142         (pass_sched2): Replace declaration with that of...
7143         (make_pass_sched2): ...new function.
7144         (pass_stack_regs): Replace declaration with that of...
7145         (make_pass_stack_regs): ...new function.
7146         (pass_stack_regs_run): Replace declaration with that of...
7147         (make_pass_stack_regs_run): ...new function.
7148         (pass_df_finish): Replace declaration with that of...
7149         (make_pass_df_finish): ...new function.
7150         (pass_compute_alignments): Replace declaration with that of...
7151         (make_pass_compute_alignments): ...new function.
7152         (pass_duplicate_computed_gotos): Replace declaration with that of...
7153         (make_pass_duplicate_computed_gotos): ...new function.
7154         (pass_variable_tracking): Replace declaration with that of...
7155         (make_pass_variable_tracking): ...new function.
7156         (pass_free_cfg): Replace declaration with that of...
7157         (make_pass_free_cfg): ...new function.
7158         (pass_machine_reorg): Replace declaration with that of...
7159         (make_pass_machine_reorg): ...new function.
7160         (pass_cleanup_barriers): Replace declaration with that of...
7161         (make_pass_cleanup_barriers): ...new function.
7162         (pass_delay_slots): Replace declaration with that of...
7163         (make_pass_delay_slots): ...new function.
7164         (pass_split_for_shorten_branches): Replace declaration with that of...
7165         (make_pass_split_for_shorten_branches): ...new function.
7166         (pass_split_before_regstack): Replace declaration with that of...
7167         (make_pass_split_before_regstack): ...new function.
7168         (pass_convert_to_eh_region_ranges): Replace declaration with that
7169         of...
7170         (make_pass_convert_to_eh_region_ranges): ...new function.
7171         (pass_shorten_branches): Replace declaration with that of...
7172         (make_pass_shorten_branches): ...new function.
7173         (pass_set_nothrow_function_flags): Replace declaration with that of...
7174         (make_pass_set_nothrow_function_flags): ...new function.
7175         (pass_dwarf2_frame): Replace declaration with that of...
7176         (make_pass_dwarf2_frame): ...new function.
7177         (pass_final): Replace declaration with that of...
7178         (make_pass_final): ...new function.
7179         (pass_rtl_seqabstr): Replace declaration with that of...
7180         (make_pass_rtl_seqabstr): ...new function.
7181         (pass_release_ssa_names): Replace declaration with that of...
7182         (make_pass_release_ssa_names): ...new function.
7183         (pass_early_inline): Replace declaration with that of...
7184         (make_pass_early_inline): ...new function.
7185         (pass_inline_parameters): Replace declaration with that of...
7186         (make_pass_inline_parameters): ...new function.
7187         (pass_update_address_taken): Replace declaration with that of...
7188         (make_pass_update_address_taken): ...new function.
7189         (pass_convert_switch): Replace declaration with that of...
7190         (make_pass_convert_switch): ...new function.
7191         * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
7192         to a subclass of simple_ipa_opt_pass along with...
7193         (pass_data_ipa_tree_profile): ...new pass_data instance and...
7194         (make_pass_ipa_tree_profile): ...new function.
7195         * tree-sra.c (pass_sra_early): Convert from a global struct to a
7196         subclass of gimple_opt_pass along with...
7197         (pass_data_sra_early): ...new pass_data instance and...
7198         (make_pass_sra_early): ...new function.
7199         (pass_sra): Convert from a global struct to a subclass of
7200         gimple_opt_pass along with...
7201         (pass_data_sra): ...new pass_data instance and...
7202         (make_pass_sra): ...new function.
7203         (pass_early_ipa_sra): Convert from a global struct to a subclass of
7204         gimple_opt_pass along with...
7205         (pass_data_early_ipa_sra): ...new pass_data instance and...
7206         (make_pass_early_ipa_sra): ...new function.
7207         * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
7208         subclass of gimple_opt_pass along with...
7209         (pass_data_ccp): ...new pass_data instance and...
7210         (make_pass_ccp): ...new function.
7211         (pass_fold_builtins): Convert from a global struct to a subclass of
7212         gimple_opt_pass along with...
7213         (pass_data_fold_builtins): ...new pass_data instance and...
7214         (make_pass_fold_builtins): ...new function.
7215         * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
7216         subclass of gimple_opt_pass along with...
7217         (pass_data_copy_prop): ...new pass_data instance and...
7218         (make_pass_copy_prop): ...new function.
7219         * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
7220         global struct to a subclass of gimple_opt_pass along with...
7221         (pass_data_rename_ssa_copies): ...new pass_data instance and...
7222         (make_pass_rename_ssa_copies): ...new function.
7223         * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
7224         subclass of gimple_opt_pass along with...
7225         (pass_data_dce): ...new pass_data instance and...
7226         (make_pass_dce): ...new function.
7227         (pass_dce_loop): Convert from a global struct to a subclass of
7228         gimple_opt_pass along with...
7229         (pass_data_dce_loop): ...new pass_data instance and...
7230         (make_pass_dce_loop): ...new function.
7231         (pass_cd_dce): Convert from a global struct to a subclass of
7232         gimple_opt_pass along with...
7233         (pass_data_cd_dce): ...new pass_data instance and...
7234         (make_pass_cd_dce): ...new function.
7235         * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
7236         subclass of gimple_opt_pass along with...
7237         (pass_data_dominator): ...new pass_data instance and...
7238         (make_pass_dominator): ...new function.
7239         (pass_phi_only_cprop): Convert from a global struct to a subclass of
7240         gimple_opt_pass along with...
7241         (pass_data_phi_only_cprop): ...new pass_data instance and...
7242         (make_pass_phi_only_cprop): ...new function.
7243         * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
7244         subclass of gimple_opt_pass along with...
7245         (pass_data_dse): ...new pass_data instance and...
7246         (make_pass_dse): ...new function.
7247         * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
7248         a subclass of gimple_opt_pass along with...
7249         (pass_data_forwprop): ...new pass_data instance and...
7250         (make_pass_forwprop): ...new function.
7251         * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
7252         struct to a subclass of gimple_opt_pass along with...
7253         (pass_data_tree_ifcombine): ...new pass_data instance and...
7254         (make_pass_tree_ifcombine): ...new function.
7255         * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
7256         subclass of gimple_opt_pass along with...
7257         (pass_data_ch): ...new pass_data instance and...
7258         (make_pass_ch): ...new function.
7259         * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
7260         subclass of gimple_opt_pass along with...
7261         (pass_data_tree_loop): ...new pass_data instance and...
7262         (make_pass_tree_loop): ...new function.
7263         (pass_tree_loop_init): Convert from a global struct to a subclass of
7264         gimple_opt_pass along with...
7265         (pass_data_tree_loop_init): ...new pass_data instance and...
7266         (make_pass_tree_loop_init): ...new function.
7267         (pass_lim): Convert from a global struct to a subclass of
7268         gimple_opt_pass along with...
7269         (pass_data_lim): ...new pass_data instance and...
7270         (make_pass_lim): ...new function.
7271         (pass_tree_unswitch): Convert from a global struct to a subclass of
7272         gimple_opt_pass along with...
7273         (pass_data_tree_unswitch): ...new pass_data instance and...
7274         (make_pass_tree_unswitch): ...new function.
7275         (pass_predcom): Convert from a global struct to a subclass of
7276         gimple_opt_pass along with...
7277         (pass_data_predcom): ...new pass_data instance and...
7278         (make_pass_predcom): ...new function.
7279         (pass_vectorize): Convert from a global struct to a subclass of
7280         gimple_opt_pass along with...
7281         (pass_data_vectorize): ...new pass_data instance and...
7282         (make_pass_vectorize): ...new function.
7283         (pass_graphite): Convert from a global struct to a subclass of
7284         gimple_opt_pass along with...
7285         (pass_data_graphite): ...new pass_data instance and...
7286         (make_pass_graphite): ...new function.
7287         (pass_graphite_transforms): Convert from a global struct to a subclass
7288         of gimple_opt_pass along with...
7289         (pass_data_graphite_transforms): ...new pass_data instance and...
7290         (make_pass_graphite_transforms): ...new function.
7291         (pass_check_data_deps): Convert from a global struct to a subclass of
7292         gimple_opt_pass along with...
7293         (pass_data_check_data_deps): ...new pass_data instance and...
7294         (make_pass_check_data_deps): ...new function.
7295         (pass_iv_canon): Convert from a global struct to a subclass of
7296         gimple_opt_pass along with...
7297         (pass_data_iv_canon): ...new pass_data instance and...
7298         (make_pass_iv_canon): ...new function.
7299         (pass_scev_cprop): Convert from a global struct to a subclass of
7300         gimple_opt_pass along with...
7301         (pass_data_scev_cprop): ...new pass_data instance and...
7302         (make_pass_scev_cprop): ...new function.
7303         (pass_record_bounds): Convert from a global struct to a subclass of
7304         gimple_opt_pass along with...
7305         (pass_data_record_bounds): ...new pass_data instance and...
7306         (make_pass_record_bounds): ...new function.
7307         (pass_complete_unroll): Convert from a global struct to a subclass of
7308         gimple_opt_pass along with...
7309         (pass_data_complete_unroll): ...new pass_data instance and...
7310         (make_pass_complete_unroll): ...new function.
7311         (pass_complete_unrolli): Convert from a global struct to a subclass of
7312         gimple_opt_pass along with...
7313         (pass_data_complete_unrolli): ...new pass_data instance and...
7314         (make_pass_complete_unrolli): ...new function.
7315         (pass_parallelize_loops): Convert from a global struct to a subclass
7316         of gimple_opt_pass along with...
7317         (pass_data_parallelize_loops): ...new pass_data instance and...
7318         (make_pass_parallelize_loops): ...new function.
7319         (pass_loop_prefetch): Convert from a global struct to a subclass of
7320         gimple_opt_pass along with...
7321         (pass_data_loop_prefetch): ...new pass_data instance and...
7322         (make_pass_loop_prefetch): ...new function.
7323         (pass_iv_optimize): Convert from a global struct to a subclass of
7324         gimple_opt_pass along with...
7325         (pass_data_iv_optimize): ...new pass_data instance and...
7326         (make_pass_iv_optimize): ...new function.
7327         (pass_tree_loop_done): Convert from a global struct to a subclass of
7328         gimple_opt_pass along with...
7329         (pass_data_tree_loop_done): ...new pass_data instance and...
7330         (make_pass_tree_loop_done): ...new function.
7331         * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
7332         struct to a subclass of gimple_opt_pass along with...
7333         (pass_data_cse_reciprocals): ...new pass_data instance and...
7334         (make_pass_cse_reciprocals): ...new function.
7335         (pass_cse_sincos): Convert from a global struct to a subclass of
7336         gimple_opt_pass along with...
7337         (pass_data_cse_sincos): ...new pass_data instance and...
7338         (make_pass_cse_sincos): ...new function.
7339         (pass_optimize_bswap): Convert from a global struct to a subclass of
7340         gimple_opt_pass along with...
7341         (pass_data_optimize_bswap): ...new pass_data instance and...
7342         (make_pass_optimize_bswap): ...new function.
7343         (pass_optimize_widening_mul): Convert from a global struct to a
7344         subclass of gimple_opt_pass along with...
7345         (pass_data_optimize_widening_mul): ...new pass_data instance and...
7346         (make_pass_optimize_widening_mul): ...new function.
7347         * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
7348         subclass of gimple_opt_pass along with...
7349         (pass_data_phiopt): ...new pass_data instance and...
7350         (make_pass_phiopt): ...new function.
7351         (pass_cselim): Convert from a global struct to a subclass of
7352         gimple_opt_pass along with...
7353         (pass_data_cselim): ...new pass_data instance and...
7354         (make_pass_cselim): ...new function.
7355         * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
7356         subclass of gimple_opt_pass along with...
7357         (pass_data_phiprop): ...new pass_data instance and...
7358         (make_pass_phiprop): ...new function.
7359         * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
7360         subclass of gimple_opt_pass along with...
7361         (pass_data_pre): ...new pass_data instance and...
7362         (make_pass_pre): ...new function.
7363         (pass_fre): Convert from a global struct to a subclass of
7364         gimple_opt_pass along with...
7365         (pass_data_fre): ...new pass_data instance and...
7366         (make_pass_fre): ...new function.
7367         * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
7368         subclass of gimple_opt_pass along with...
7369         (pass_data_reassoc): ...new pass_data instance and...
7370         (make_pass_reassoc): ...new function.
7371         * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
7372         subclass of gimple_opt_pass along with...
7373         (pass_data_sink_code): ...new pass_data instance and...
7374         (make_pass_sink_code): ...new function.
7375         * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
7376         subclass of gimple_opt_pass along with...
7377         (pass_data_strlen): ...new pass_data instance and...
7378         (make_pass_strlen): ...new function.
7379         * tree-ssa-structalias.c (pass_build_alias): Convert from a global
7380         struct to a subclass of gimple_opt_pass along with...
7381         (pass_data_build_alias): ...new pass_data instance and...
7382         (make_pass_build_alias): ...new function.
7383         (pass_build_ealias): Convert from a global struct to a subclass of
7384         gimple_opt_pass along with...
7385         (pass_data_build_ealias): ...new pass_data instance and...
7386         (make_pass_build_ealias): ...new function.
7387         (pass_ipa_pta): Convert from a global struct to a subclass of
7388         simple_ipa_opt_pass along with...
7389         (pass_data_ipa_pta): ...new pass_data instance and...
7390         (make_pass_ipa_pta): ...new function.
7391         * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
7392         subclass of gimple_opt_pass along with...
7393         (pass_data_uncprop): ...new pass_data instance and...
7394         (make_pass_uncprop): ...new function.
7395         * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
7396         global struct to a subclass of gimple_opt_pass along with...
7397         (pass_data_late_warn_uninitialized): ...new pass_data instance and...
7398         (make_pass_late_warn_uninitialized): ...new function.
7399         * tree-ssa.c (pass_init_datastructures): Convert from a global struct
7400         to a subclass of gimple_opt_pass along with...
7401         (pass_data_init_datastructures): ...new pass_data instance and...
7402         (make_pass_init_datastructures): ...new function.
7403         (pass_early_warn_uninitialized): Convert from a global struct to a
7404         subclass of gimple_opt_pass along with...
7405         (pass_data_early_warn_uninitialized): ...new pass_data instance and...
7406         (make_pass_early_warn_uninitialized): ...new function.
7407         (pass_update_address_taken): Convert from a global struct to a
7408         subclass of gimple_opt_pass along with...
7409         (pass_data_update_address_taken): ...new pass_data instance and...
7410         (make_pass_update_address_taken): ...new function.
7411         * tree-ssanames.c (pass_release_ssa_names): Convert from a global
7412         struct to a subclass of gimple_opt_pass along with...
7413         (pass_data_release_ssa_names): ...new pass_data instance and...
7414         (make_pass_release_ssa_names): ...new function.
7415         * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
7416         subclass of gimple_opt_pass along with...
7417         (pass_data_stdarg): ...new pass_data instance and...
7418         (make_pass_stdarg): ...new function.
7419         * tree-switch-conversion.c (pass_convert_switch): Convert from a
7420         global struct to a subclass of gimple_opt_pass along with...
7421         (pass_data_convert_switch): ...new pass_data instance and...
7422         (make_pass_convert_switch): ...new function.
7423         * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
7424         to a subclass of gimple_opt_pass along with...
7425         (pass_data_tail_recursion): ...new pass_data instance and...
7426         (make_pass_tail_recursion): ...new function.
7427         (pass_tail_calls): Convert from a global struct to a subclass of
7428         gimple_opt_pass along with...
7429         (pass_data_tail_calls): ...new pass_data instance and...
7430         (make_pass_tail_calls): ...new function.
7431         * tree-vect-generic.c (pass_lower_vector): Convert from a global
7432         struct to a subclass of gimple_opt_pass along with...
7433         (pass_data_lower_vector): ...new pass_data instance and...
7434         (make_pass_lower_vector): ...new function.
7435         (pass_lower_vector_ssa): Convert from a global struct to a subclass of
7436         gimple_opt_pass along with...
7437         (pass_data_lower_vector_ssa): ...new pass_data instance and...
7438         (make_pass_lower_vector_ssa): ...new function.
7439         * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
7440         to a subclass of gimple_opt_pass along with...
7441         (pass_data_slp_vectorize): ...new pass_data instance and...
7442         (make_pass_slp_vectorize): ...new function.
7443         (pass_ipa_increase_alignment): Convert from a global struct to a
7444         subclass of simple_ipa_opt_pass along with...
7445         (pass_data_ipa_increase_alignment): ...new pass_data instance and...
7446         (make_pass_ipa_increase_alignment): ...new function.
7447         * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
7448         gimple_opt_pass along with...
7449         (pass_data_vrp): ...new pass_data instance and...
7450         (make_pass_vrp): ...new function.
7451         * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
7452         subclass of simple_ipa_opt_pass along with...
7453         (pass_data_ipa_free_lang_data): ...new pass_data instance and...
7454         (make_pass_ipa_free_lang_data): ...new function.
7455         * tsan.c (pass_tsan): Convert from a global struct to a subclass of
7456         gimple_opt_pass along with...
7457         (pass_data_tsan): ...new pass_data instance and...
7458         (make_pass_tsan): ...new function.
7459         (pass_tsan_O0): Convert from a global struct to a subclass of
7460         gimple_opt_pass along with...
7461         (pass_data_tsan_O0): ...new pass_data instance and...
7462         (make_pass_tsan_O0): ...new function.
7463         * var-tracking.c (pass_variable_tracking): Convert from a global
7464         struct to a subclass of rtl_opt_pass along with...
7465         (pass_data_variable_tracking): ...new pass_data instance and...
7466         (make_pass_variable_tracking): ...new function.
7467         * web.c (pass_web): Convert from a global struct to a subclass of
7468         rtl_opt_pass along with...
7469         (pass_data_web): ...new pass_data instance and...
7470         (make_pass_web): ...new function.
7471         * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
7472         declaration with that of...
7473         (make_pass_mode_switch_use): ...new function.
7474         (pass_resolve_sw_modes): Replace declaration with that of...
7475         (make_pass_resolve_sw_modes): ...new function.
7476         * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
7477         from a global struct to a subclass of rtl_opt_pass along with...
7478         (pass_data_mode_switch_use): ...new pass_data instance and...
7479         (make_pass_mode_switch_use): ...new function.
7480         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
7481         from a global struct to a subclass of rtl_opt_pass along with...
7482         (pass_data_resolve_sw_modes): ...new pass_data instance and...
7483         (make_pass_resolve_sw_modes): ...new function.
7484         * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
7485         struct to a subclass of rtl_opt_pass along with...
7486         (pass_data_insert_vzeroupper): ...new pass_data instance and...
7487         (make_pass_insert_vzeroupper): ...new function.
7488         * config/sparc/sparc.c (pass_work_around_errata): Convert from a
7489         global struct to a subclass of rtl_opt_pass along with...
7490         (pass_data_work_around_errata): ...new pass_data instance and...
7491         (make_pass_work_around_errata): ...new function.
7492         * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
7493         struct to a subclass of rtl_opt_pass along with...
7494         (pass_data_mips_machine_reorg2): ...new pass_data instance and...
7495         (make_pass_mips_machine_reorg2): ...new function.
7497 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
7499         * passes.c (pass_manager::operator new): New.
7501 2013-08-05  David Malcolm  <dmalcolm@redhat.com>
7503         Handwritten part of conversion of passes to C++ classes.
7505         * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
7506         (toplev.o): Add dep on PASS_MANAGER_H.
7507         * cgraphunit.c (cgraph_process_new_functions): Rework invocation
7508         of early local pases to reflect this moving from a global to a
7509         member of gcc::pass_manager.
7510         (cgraph_add_new_function): Likewise.
7511         * lto-cgraph.c (lto_output_node): Update for conversion of
7512         struct ipa_opt_pass_d to a C++ subclass of opt_pass.
7513         * passes.c (opt_pass::clone): New.
7514         (opt_pass::gate): New.
7515         (opt_pass::execute): New.
7516         (opt_pass::opt_pass): New.
7517         (pass_manager::execute_early_local_passes): New.
7518         (pass_manager::execute_pass_mode_switching): new.
7519         (finish_optimization_passes): Convert to...
7520         (pass_manager::finish_optimization_passes): ...this.
7521         (finish_optimization_passes): Update for conversion of passes to
7522         C++ classes.
7523         (register_dump_files_1): Use has_gate since we cannot portably
7524         check a vtable entry against NULL.
7525         (dump_one_pass): Likewise.
7526         (ipa_write_summaries_2): Likewise.
7527         (ipa_write_optimization_summaries_1): Likewise.
7528         (ipa_read_summaries_1): Likewise.
7529         (ipa_read_optimization_summaries_1): Likewise.
7530         (execute_ipa_stmt_fixups): Likewise.
7531         (pass_manager::pass_manager): Rewrite pass-creation, invoking
7532         pass-creation functions rather than wiring up globals, and
7533         storing the results in fields of pass_manager generated using
7534         pass-instances.def.
7535         (pass_manager::dump_profile_report): Update for conversion of
7536         passes to C++ classes.
7537         (pass_manager::execute_ipa_summary_passes): Likewise.
7538         (execute_one_ipa_transform_pass): Likewise.
7539         (execute_one_pass): Use has_gate and has_execute since we cannot
7540         portably check a vtable entry against NULL.
7541         * pass_manager.h (pass_manager::finish_optimization_passes): New.
7542         (pass_manager): Use pass-instances.def to add fields for the
7543         various pass instances.
7544         * toplev.c (finalize): Update for move of
7545         finish_optimization_passes to a method of gcc::pass_manager.
7546         * toplev.h (finish_optimization_passes): Move to method of class
7547         pass_manager.
7548         * tree-pass.h (struct pass_data): New.
7549         (opt_pass): Convert to C++ class, make it a subclass of pass_data.
7550         (opt_pass::gate): Convert to virtual function.
7551         (opt_pass::~opt_pass): New.
7552         (opt_pass::clone): New.
7553         (opt_pass::execute): Convert to virtual function.
7554         (opt_pass::opt_pass): New.
7555         (opt_pass::ctxt_): new.
7556         (gimple_opt_pass): Convert to subclass of opt_pass.
7557         (gimple_opt_pass::gimple_opt_pass): New.
7558         (rtl_opt_pass): Convert to subclass of opt_pass.
7559         (rtl_opt_pass::rtl_opt_pass): New.
7560         (ipa_opt_pass_d): Convert to subclass of opt_pass.
7561         (ipa_opt_pass_d::ipa_opt_pass_d): New.
7562         (simple_ipa_opt_pass): Convert to subclass of opt_pass.
7563         (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
7564         * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
7565         invocation of pass_mode_switching to reflect this moving from a
7566         global to a member of gcc::pass_manager.
7567         (ix86_option_override): Rework how pass_insert_vzeroupper is
7568         added to the pass_manager to reflect autogenerated changes.
7569         * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
7571 2013-08-05  Richard Earnshaw  <rearnsha@arm.com>
7573         PR rtl-optimization/57708
7574         * recog.c (peep2_find_free_register): Validate all regs in a
7575         multi-reg mode.
7577 2013-08-05  Jan Hubicka  <jh@suse.cz>
7579         PR lto/57602
7580         * cgraph.c (verify_cgraph_node): Accept local flags from other
7581         partitions.
7582         * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
7583         (function_and_variable_visibility): Likewise.
7584         * trans-mem.c (ipa_tm_create_version): TM versions are not local.
7586 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7588         * graph.c (init_graph_slim_pretty_print): Remove.
7589         (print_graph_cfg): Do not call it.  Use local pretty printer.
7590         (start_graph_dump): Likewise.
7592 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7594         * gimple-pretty-print.c (buffer): Remove.
7595         (initialized): Likewise.
7596         (maybe_init_pretty_print): Likewise.
7597         (print_gimple_stmt): Do not call it.  Use non-static local
7598         pretty_printer variable.
7599         (print_gimple_expr): Likewise.
7600         (print_gimple_seq): Likewise.
7601         (gimple_dump_bb): Likewise.
7603 2013-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7605         * asan.c (asan_pp): Remove.
7606         (asan_pp_initialized): Likewise.
7607         (asan_pp_initialize): Likewise.
7608         (asan_pp_string): Take a pretty_printer parameter.  Adjust callers.
7609         (asan_emit_stack_protection): Tidy.  Use local pretty printer.
7610         (asan_add_global): Likewise.
7612 2013-08-04  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7614         * pretty-print.h (pp_base): Remove.  Adjust dependent macros.
7615         * diagnostic.h (diagnostic_flush_buffer): Adjust.
7616         * pretty-print.c (pp_formatted_text_data): Likewise.
7617         (pp_indent): Rename from pp_base_indent.
7618         (pp_format): Rename from pp_base_format.
7619         (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
7620         (pp_format_verbatim): Rename from pp_base_format_verbatim.
7621         (pp_flush): Rename from pp_base_flush.
7622         (pp_set_line_maximum_length): Rename from
7623         pp_base_set_line_maximum_length.
7624         (pp_clear_output_area): Rename from pp_base_clear_output_area.
7625         (pp_set_prefix): Rename from pp_base_set_prefix.
7626         (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
7627         (pp_emit_prefix): Rename from pp_base_emit_prefix.
7628         (pp_append_text): Rename from pp_base_append_text.
7629         (pp_formatted_text): Rename from pp_base_formatted_text.
7630         (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
7631         (pp_remaining_character_count_for_line): Rename from
7632         pp_base_remaining_character_count_for_line.
7633         (pp_newline): Rename from pp_base_newline.
7634         (pp_character): Rename from pp_base_character.
7635         (pp_string): Rename from pp_base_string.
7636         (pp_maybe_space): Rename from pp_base_maybe_space.
7637         * asan.c (asan_pp_string): Adjust.
7638         (asan_emit_stack_protection): Likewise.
7639         (asan_add_global): Likewise.
7640         * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
7641         * tree-mudflap.c (mf_varname_tree): Likewise.
7642         * tree-pretty-print.c (pp_tree_identifier): Rename from
7643         pp_base_tree_identifier.
7644         * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
7645         Declare as function.
7647 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7649         * pretty-print.h (pp_bar_bar): New.
7650         (pp_ampersand_ampersand): Likewise.
7651         (pp_less_equal): Likewise.
7652         (pp_greater_equal): Likewise.
7653         * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
7654         printer functions instead of pp_string or operators and punctuators.
7655         (dump_gimple_call): Likewise.
7656         (dump_gimple_omp_for): Likewise.
7657         (dump_gimple_transaction): Likewise.
7658         (dump_gimple_phi): Likewise.
7659         (pp_gimple_stmt_1): Likewise.
7660         * sched-vis.c (print_insn): Likewise.
7661         * tree-mudflap.c (mf_varname_tree): Likewise.
7662         * tree-pretty-print.c (dump_block_node): Likewise.
7663         (dump_generic_node): Likewise.
7665 2013-08-02  Jan Hubicka  <jh@suse.cz>
7667         * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
7668         boundaries.
7669         * lto-streamer-out.c (tree_is_indexable): Results decls and
7670         parm decls are not indexable.
7671         (DFS_write_tree_body): Do not follow args and results.
7672         (hash_tree): Likewise.
7673         (output_functions): Rearrange so struct function is needed
7674         only when real body is output; be able to also ouptut abstract
7675         functions; output DECL_ARGUMENTS and DECL_RESULT.
7676         (lto_output): When not in WPA, ale store abstract functions.
7677         (write_symbol): Do not care about RESULT_DECL.
7678         (output_symbol_p): Handle correctly sbtract decls.
7679         * lto-streamer-in.c (input_function): Rearrange so struct
7680         function can be NULL at entry; allow streaming of
7681         functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
7682         * ipa.c (symtab_remove_unreachable_nodes): Silence confused
7683         sanity check during LTO.
7684         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
7685         RESULT_DECl and DECL_ARGUMENTS.
7686         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
7687         Likewise.
7689 2013-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7691         * pretty-print.h (pp_underscore): New.
7692         (pp_comma): Tidy.
7693         * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
7694         printer functions instead of pp_character.
7695         (dump_binary_rhs): Likewise.
7696         (dump_ternary_rhs): Likewise.
7697         (dump_gimple_call_args): Likewise.
7698         (pp_points_to_solution): Likewise.
7699         (dump_gimple_call): Likewise.
7700         (dump_gimple_switch): Likewise.
7701         (dump_gimple_cond): Likewise.
7702         (dump_gimple_bind): Likewise.
7703         (dump_gimple_try): Likewise.
7704         (dump_gimple_omp_for): Likewise.
7705         (dump_gimple_omp_continue): Likewise.
7706         (dump_gimple_omp_single): Likewise.
7707         (dump_gimple_omp_sections): Likewise.
7708         (dump_gimple_omp_block): Likewise.
7709         (dump_gimple_omp_critical): Likewise.
7710         (dump_gimple_transaction): Likewise.
7711         (dump_gimple_asm): Likewise.
7712         (dump_gimple_phi): Likewise.
7713         (dump_gimple_omp_parallel): Likewise.
7714         (dump_gimple_omp_task): Likewise.
7715         (dump_gimple_omp_atomic_load): Likewise.
7716         (dump_gimple_omp_atomic_store): Likewise.
7717         (dump_gimple_mem_ops): Likewise.
7718         (pp_gimple_stmt_1): Likewise.
7719         (pp_cfg_jump): Likewise.
7720         (dump_implicit_edges): Likewise.
7721         (gimple_dump_bb_for_graph): Likewise.
7722         * graph.c (draw_cfg_node): Likewise.
7723         * langhooks.c (lhd_print_error_function): Likewise.
7724         * sched-vis.c (print_exp): Likewise.
7725         (print_value): Likewise.
7726         (print_pattern): Likewise.
7727         (print_insn): Likewise.
7728         (rtl_dump_bb_for_graph): Likewise.
7729         * tree-pretty-print.c (dump_function_declaration): Likewise.
7730         (dump_array_domain): Likewise.
7731         (dump_omp_clause): Likewise.
7732         (dump_location): Likewise.
7733         (dump_generic_node): Likewise.
7734         (print_struct_decl): Likewise.
7735         * diagnostic.c (diagnostic_show_locus): Use pp_space.
7737 2013-08-03  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
7739         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
7740         candidate table when replacing a candidate statement.
7741         (replace_rhs_if_not_dup): Likewise.
7742         (replace_one_candidate): Likewise.
7744 2013-08-02  Jan Hubicka  <jh@suse.cz>
7745             Martin Liska  <marxin.liska@gmail.com>
7747         * cgraphunit.c (add_new_function): Fix logic when adding from
7748         late IPA pass.
7749         (assemble_thunk): Rename to ...
7750         (expand_thunk); .. this one; export; get it working with
7751         general functions; make produced gimple valid.
7752         * cgraph.h (expand_thunk): Declare.
7754 2013-08-02  Jan Hubicka  <jh@suse.cz>
7756         * ipa-cp.c (gather_context_independent_values): Use
7757         ipa_get_param_move_cost.
7758         (get_replacement_map): Remove PARAM; move parameter folding
7759         into tree-inline.c
7760         (create_specialized_node): Update.
7761         * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
7762         assert that we have gimple body; update move_cost.
7763         (count_formal_params): Assert that we have gimple body.
7764         (ipa_dump_param): New function.
7765         (ipa_alloc_node_params): Break out from ...
7766         (ipa_initialize_node_params): ... here.
7767         (ipa_get_vector_of_formal_parms): ICE when used in WPA.
7768         (ipa_write_node_info): Stream move costs.
7769         (ipa_read_node_info): Read move costs.
7770         (ipa_update_after_lto_read): Do not recompute node params.
7771         * ipa-prop.h (ipa_param_descriptor): Add move_cost.
7772         (ipa_get_param): Check we are not in WPA.
7773         (ipa_get_param_move_cost): New.
7774         * tree-inline.c (tree_function_versioning): Fold replacement as needed.
7775         * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
7776         parm numbers to be present.
7778 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
7780         PR rtl-optimization/58048
7781         * lra-constraints.c (process_alt_operands): Don't check asm
7782         operand on register.
7784 2013-08-02  Eric Botcazou  <ebotcazou@adacore.com>
7786         * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
7787         the implied StoreLoad barrier for atomic operations if before.
7789 2013-08-02  Jan Hubicka  <jh@suse.cz>
7790             Martin Liska  <marxin.liska@gmail.com>
7792         * cgraph.c (cgraph_function_body_availability): Do not check
7793         cgraph flags.
7794         * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
7795         symtab_node_availability): Declare.
7796         * ipa.c (can_replace_by_local_alias): New.
7797         (function_and_variable_visibility): Use it.
7798         * symtab.c (symtab_for_node_and_aliases,
7799         symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
7801 2013-08-02  Vladimir Makarov  <vmakarov@redhat.com>
7803         PR rtl-optimization/57963
7804         * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
7805         (lra_constraints): Use them.
7807 2013-08-02  Sofiane Naci  <sofiane.naci@arm.com>
7809         * config/arm/types.md (define_attr "type"): Add "load_acq"
7810         and "store_rel".
7811         * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
7812         changes.
7813         (cortex_a53_store1): Likewise.
7815 2013-08-01  Jan Hubicka  <jh@suse.cz>
7817         * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
7818         partitions are not needed.
7820 2013-08-01  Uros Bizjak  <ubizjak@gmail.com>
7822         * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
7823         * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
7824         MAYBE_NON_Q_CLASS_P where appropriate.
7826 2013-08-01  Jan Hubicka  <jh@suse.cz>
7828         * cgraph.h (release_function_body): Declare.
7829         * tree.c (free_lang_data_in_decl): Free, parameters and return values
7830         of unused delcarations.
7832 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7834         * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
7835         RTL form when subtracting a constant.
7837 2013-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7839         * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
7840         Generate canonical plus rtx with negated immediate instead of minus
7841         where appropriate.
7842         * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
7844 2013-08-01  Jan Hubicka  <jh@suse.cz>
7846         * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
7847         (cgraph_release_function_body): Likewise.
7848         (cgraph_can_remove_if_no_direct_calls_p): Likewise.
7849         * cgraph.h (cgrpah_node): Rename abstract_and_needed
7850         to used_as_abstract_origin.
7851         * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
7852         symbols used as abstract origins.
7853         * cgraphunit.c (analyze_functions): Update.
7854         * ipa.c (symtab_remove_unreachable_nodes): Recompute
7855         used_as_abstract_origin.
7856         * tree-inline.c (tree_function_versioning): Update
7857         used_as_abstract_origin; be ready for DECL_RESULT and
7858         DECL_ARGUMENTS to be NULL.
7860         * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
7861         for abstract functions.
7862         * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
7863         real symbols.
7865 2013-08-01  Jan Hubicka  <jh@suse.cz>
7867         * profile.c (compute_value_histograms): Fix thinko.
7869 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
7871         * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs.  Add
7872         aarch-common-protos.h to extra_headers.
7873         (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
7874         * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
7875         * config/aarch64/t-aarch64 (aarch-common.o): Define.
7877 2013-08-01  Sofiane Naci  <sofiane.naci@arm.com>
7879         * config/aarch64/aarch64.md (define_attr "type"): Delete.
7880         Include "../arm/types.md".  Define "type" attribute for all patterns.
7881         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
7882         attribute changes.
7884 2013-07-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
7886         * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
7887         to support power8 load fusion.
7888         (fusion_gpr_mem_load): Likewise.
7890         * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
7892         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
7893         declarations for power8 load fusion.
7894         (emit_fusion_gpr_load): Likewise.
7896         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
7897         tuning for power8, turn on fusion mode by default.  Turn on sign
7898         extending fusion mode if normal fusion mode is on, and we are at
7899         -O2 or -O3.
7900         (fusion_gpr_load_p): New function, return true if we can fuse an
7901         addis instruction with a dependent load to a GPR.
7902         (emit_fusion_gpr_load): Emit the instructions for power8 load
7903         fusion to GPRs.
7905         * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
7906         (VSX load fusion peepholes): New peepholes to fuse together an
7907         addi instruction with a VSX load instruction.
7909         * config/rs6000/rs6000.md (GPR load fusion peepholes): New
7910         peepholes to fuse an addis instruction with a load to a GPR base
7911         register.  If we are supporting sign extending fusions, convert
7912         sign extending loads to zero extending loads and add an explicit
7913         sign extension.
7915 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
7917         * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs.  Add
7918         aarch-common-protos.h to extra_headers.
7919         (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
7920         * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
7921         (arm_early_store_addr_dep): Likewise.
7922         (arm_no_early_alu_shift_dep): Likewise.
7923         (arm_no_early_alu_shift_value_dep): Likewise.
7924         (arm_no_early_mul_dep): Likewise.
7925         (arm_no_early_store_addr_dep): Likewise.
7926         (arm_mac_accumulator_is_mul_result): Likewise.
7927         (arm_mac_accumulator_is_result): Likewise.
7928         * config/arm/aarch-common.c: ... here.  New file.
7929         * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
7930         here to ...
7931         (arm_early_store_addr_dep): Likewise.
7932         (arm_no_early_alu_shift_dep): Likewise.
7933         (arm_no_early_alu_shift_value_dep): Likewise.
7934         (arm_no_early_mul_dep): Likewise.
7935         (arm_no_early_store_addr_dep): Likewise.
7936         (arm_mac_accumulator_is_mul_result): Likewise.
7937         (arm_mac_accumulator_is_result): Likewise.
7938         * config/arm/aarch-common-protos.h: ... here.  New file.
7939         * config/arm/t-arm (aarch-common.o): Define.
7941 2013-07-31  Sofiane Naci  <sofiane.naci@arm.com>
7943         * config/arm/arm.md: Include new file "types.md".
7944         (define_attr "type"): Move from here to ...
7945         (define_attr "mul32"): Likewise.
7946         (define_attr "mul64"): Likewise.
7947         * config/arm/types.md: ... here.  New file.
7949 2013-07-31  Sebastian Huber  <sebastian.huber@embedded-brains.de>
7951         * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
7952         * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
7954 2013-07-31  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7956         * gen-pass-instances.awk: Fix offset of substr().
7958 2013-07-31  David Malcolm  <dmalcolm@redhat.com>
7960         * Makefile.in (pass-instances.def): New.
7961         (passes.o): Replace dependency on passes.def with one on
7962         pass-instances.def
7964         * gen-pass-instances.awk: New.
7966         * passes.c (pass_manager::pass_manager): Use pass-instances.def
7967         rather than passes.def, updating local definition of NEXT_PASS
7968         macro to add an extra NUM parameter (currently unused).
7970 2013-07-30  David Malcolm  <dmalcolm@redhat.com>
7972         * Makefile.in (PASS_MANAGER_H): New.
7973         (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
7974         (passes.o): Likewise.
7975         (statistics.o): Likewise.
7976         (cgraphunit.o): Likewise.
7977         (context.o): Depend on PASS_MANAGER_H.
7979         * pass_manager.h: New.
7981         * cgraphunit.c (cgraph_add_new_function): Update for moves
7982         of globals to fields of pass_manager.
7983         (analyze_function): Likewise.
7984         (expand_function): Likewise.
7985         (ipa_passes): Likewise.
7986         (compile): Likewise.
7988         * context.c (context::context): New.
7989         * context.h  (context::context): New.
7990         (context::get_passes): New.
7991         (context::passes_): New.
7993         * lto-cgraph.c (input_node): Update for moves of globals to
7994         fields of pass_manager.
7996         * passes.c (all_passes): Remove, in favor of a field of the
7997         same name within the new class pass_manager.
7998         (all_small_ipa_passes): Likewise.
7999         (all_lowering_passes): Likewise.
8000         (all_regular_ipa_passes): Likewise.
8001         (all_late_ipa_passes): Likewise.
8002         (all_lto_gen_passes): Likewise.
8003         (passes_by_id): Likewise.
8004         (passes_by_id_size): Likewise.
8005         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
8006         the new class pass_manager.
8007         (set_pass_for_id): Convert to...
8008         (pass_manager::set_pass_for_id): ...method.
8009         (get_pass_for_id): Convert to...
8010         (pass_manager::get_pass_for_id): ...method.
8011         (register_one_dump_file): Move body of implementation into...
8012         (pass_manager::register_one_dump_file): ...here.
8013         (register_dump_files_1): Convert to...
8014         (pass_manager::register_dump_files_1): ...method.
8015         (register_dump_files): Convert to...
8016         (pass_manager::register_dump_files): ...method.
8017         (create_pass_tab): Update for moves of globals to fields of
8018         pass_manager.
8019         (dump_passes): Move body of implementation into...
8020         (pass_manager::dump_passes): ...here.
8021         (register_pass): Move body of implementation into...
8022         (pass_manager::register_pass): ...here.
8023         (init_optimization_passes): Convert into...
8024         (pass_manager::pass_manager): ...constructor for new
8025         pass_manager class, and initialize the pass_lists array.
8026         (check_profile_consistency): Update for moves of globals to
8027         fields of pass_manager.
8028         (dump_profile_report): Move body of implementation into...
8029         (pass_manager::dump_profile_report): ...here.
8030         (ipa_write_summaries_1): Update for moves of pass lists from
8031         being globals to fields of pass_manager.
8032         (ipa_write_optimization_summaries): Likewise.
8033         (ipa_read_summaries):  Likewise.
8034         (ipa_read_optimization_summaries): Likewise.
8035         (execute_all_ipa_stmt_fixups): Likewise.
8037         * statistics.c (statistics_fini): Update for moves of globals to
8038         fields of pass_manager.
8040         * toplev.c (general_init): Replace call to
8041         init_optimization_passes with construction of the pass_manager
8042         instance.
8044         * tree-pass.h (all_passes): Remove, in favor of a field of the
8045         same name within the new class pass_manager.
8046         (all_small_ipa_passes): Likewise.
8047         (all_lowering_passes): Likewise.
8048         (all_regular_ipa_passes): Likewise.
8049         (all_lto_gen_passes): Likewise.
8050         (all_late_ipa_passes): Likewise.
8051         (passes_by_id): Likewise.
8052         (passes_by_id_size): Likewise.
8053         (gcc_pass_lists): Remove, in favor of "pass_lists" field within
8054         the new class pass_manager.
8055         (get_pass_for_id): Remove.
8057 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
8059         * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
8060         configs.
8062 2013-07-30  Richard Earnshaw  <rearnsha@arm.com>
8064         * arm.md (mulhi3): New expand pattern.
8066 2013-07-30  Jan Hubicka  <jh@suse.cz>
8067             Martin Liska  <marxin.liska@gmail.com>
8069         * profile.c (compute_value_histograms): Do not ICE when
8070         there is mismatch only on some counters.
8072 2013-07-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
8074         PR rtl-optimization/57637
8075         * function.c (move_insn_for_shrink_wrap): Also check the
8076         GEN set of the LIVE problem for the liveness analysis
8077         if it exists, otherwise give up.
8079 2013-07-29  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
8081         PR tree-optimization/57993
8082         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
8083         replaced statement in the candidate table.
8084         (phi_add_costs): Return infinite cost when the hidden basis does
8085         not dominate all phis on which the candidate is dependent.
8086         (replace_one_candidate): Record replaced statement in the
8087         candidate table.
8089 2013-07-29  Joern Rennecke  <joern.rennecke@embecosm.com>
8091         * config/epiphany/epiphany.md (*isub_i+2): New peephole.
8092         (ashlv2si3): New expander.
8093         (*ashlv2si3_i): New define_insn_and_split.
8094         * predicates.md (float_operation): Allow patterns with three
8095         basic sub-patterns.
8097         PR rtl-optimization/58021
8098         * mode-switching.c (create_pre_exit): Always split off preceding
8099         insns if we are not at the basic block head.
8101 2013-07-29  Maciej W. Rozycki  <macro@codesourcery.com>
8103         * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
8104         (UCLIBC_DYNAMIC_LINKER): New macro.
8105         * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
8106         `-mnan=2008'.
8107         (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
8108         (UCLIBC_DYNAMIC_LINKER32): Undefine macro first.  Handle
8109         `-mnan=2008'.
8110         (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
8111         (UCLIBC_DYNAMIC_LINKERN32): Likewise.
8112         * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
8113         for SF and DF modes.  Use ieee_quad_format for TF mode.
8114         * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
8115         * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
8116         (mips_option_override): Handle `-mnan=legacy'.
8117         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
8118         `-mabs=2008' and `-mnan=2008'.
8119         (OPTION_DEFAULT_SPECS): Add "nan" default.
8120         (ASM_SPEC): Handle `-mnan='.
8121         [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
8122         * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
8123         comment accordingly.
8124         (neg<mode>2): Likewise.
8125         * config/mips/mips.opt (mabs, mnan): New options.
8126         * doc/install.texi (Configuration): Document `--with-nan=' option.
8127         * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
8128         `-mnan=' options.
8129         (MIPS Options): Document them.
8130         * config.gcc <mips*-*-*>: Handle `--with-nan='.
8131         * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
8132         * configure: Regenerate.
8133         * config.in: Regenerate.
8135 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
8137         * config/i386/i386.md (float post-reload splitters): Do not check
8138         for subregs of SSE registers.
8140 2013-07-29  Uros Bizjak  <ubizjak@gmail.com>
8141             H.J. Lu  <hongjiu.lu@intel.com>
8143         PR target/57954
8144         PR target/57988
8145         * config/i386/i386.md (post-reload splitter
8146         to avoid partial SSE reg dependency stalls): New pattern.
8148 2013-07-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8150         * config/s390/s390.md ("movcc"): Swap load and store instructions.
8152 2013-07-27  Joern Rennecke  <joern.rennecke@embecosm.com>
8154         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8155         Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
8157 2013-07-26  Cary Coutant  <ccoutant@google.com>
8159         * dwarf2out.c (die_checksum_ordered): Don't include template
8160         instantiations in signature.
8161         (is_template_parameter): New function.
8162         (is_template_instantiation): New function.
8163         (generate_skeleton_bottom_up): Don't include template instantiations
8164         in type unit DIE.
8165         (generate_skeleton): Likewise.
8166         (break_out_comdat_types): Move recursive call to break out nested
8167         types earlier.
8168         (prune_unused_types_mark_generic_parms_dies): Call
8169         is_template_parameter.
8171 2013-07-26  Ian Bolton  <ian.bolton@arm.com>
8173         * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
8174         uses vector registers.
8175         * config/aarch64/iterators.md: Add attributes rtn and vas.
8177 2013-07-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8178             Richard Earnshaw  <richard.earnshaw@arm.com>
8180         * combine.c (simplify_comparison): Re-canonicalize operands
8181         where appropriate.
8182         * config/arm/arm.md (movcond_addsi): New splitter.
8184 2013-07-25  Sterling Augustine  <saugustine@google.com>
8186         * dwarf2out.c (size_of_pubnames): Move code to...
8187         (include_pubname_in_output): ...here.  New.
8188         (want_pubnames): Rearrange.
8189         (output_pubnames): Call include_pubname_in_output.  Move assertion.
8191 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
8193         * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
8195 2013-07-25  Cameron McInally  <cameron.mcinally@nyu.edu>
8197         PR target/38836
8198         * doc/extend.texi: Remove obsolete builtins. Fix
8199         typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
8201 2013-07-25  Jan Hubicka  <jh@suse.cz>
8203         * cgraph.c (release_function_body): Break out from ...
8204         (cgraph_release_function_body): ... this one; also release DECL_RESULT
8205         and DECL_ARGUMENTS.
8206         * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
8207         old_tree in the map.
8208         (create_specialized_node): Update.
8209         * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
8210         into index.
8211         * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
8212         DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
8213         * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
8214         * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
8215         DECL_RESULT.
8217 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8219         * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
8220         addsi3_carryin_alt2_<optab>): Correct output template.
8222 2013-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8224         * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
8225         Adjust for arm_restrict_it.
8226         Remove trailing whitespace.
8228 2013-07-25 Â Mark Kettenis Â <kettenis@openbsd.org>
8230         * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
8231         libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
8233         * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
8235 2013-07-25  Vladimir Makarov  <vmakarov@redhat.com>
8237         PR rtl-optimization/57960
8238         * lra-constraints.c (process_alt_operands): Use the right mode
8239         when checking strict_low.
8241 2013-07-25  Jan Hubicka  <jh@suse.cz>
8243         * lto-symtab.c (lto_cgraph_replace_node): Release function body.
8244         * cgraph.c (cgraph_remove_node): Do not release function body
8245         when in cgraph streaming.
8246         * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
8247         in other partitions are not considered reachable; fix handling of
8248         clones.
8250 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8252         * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
8254 2013-07-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8256         PR target/19599
8257         PR target/57731
8258         PR target/57837
8259         * config/arm/arm.md ("*sibcall_insn): Replace use of
8260         Ss with US. Adjust output for v5 and v4t.
8261         (*sibcall_value_insn): Likewise and loosen predicate on operand0.
8263         * config/arm/constraints.md ("Ss"): Rename to US.
8265 2013-07-25  Terry Guo  <terry.guo@arm.com>
8267         * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
8268         shift_add/shift_sub0/shift_sub1 RTXs.
8270 2013-07-24  Bill Schmidt  <wschmidt@linux.ibm.com>
8271             Anton Blanchard  <anton@au1.ibm.com>
8273         * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
8274         (altivec_vpks<VI_char>ss): Likewise.
8275         (altivec_vpks<VI_char>us): Likewise.
8276         (altivec_vpku<VI_char>us): Likewise.
8277         (altivec_vpku<VI_char>um): Likewise.
8279 2013-07-24  David Malcolm  <dmalcolm@redhat.com>
8281         Introduce context class.
8283         * Makefile.in (CONTEXT_H): New.
8284         (OBJS): Add context.o.
8285         (toplev.o): Add CONTEXT_H to dependencies.
8286         (context.o): New.
8288         * toplev.c (general_init): Create the singleton gcc::context instance.
8290         * context.c: New.
8292         * context.h: New.
8294 2013-07-24  Joern Rennecke  <joern.rennecke@embecosm.com>
8296         PR rtl-optimization/57968
8297         * mode-switching.c (create_pre_exit): Allow instructions that
8298         don't set a return register to need a non-exit mode.
8300 2013-07-24  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
8301             Anton Blanchard  <anton@au1.ibm.com>
8303         * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
8304         operands to vperm for little endian.
8305         * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
8306         of lvsl to create the control mask for a vperm for little endian.
8308 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8309             Anton Blanchard  <anton@au1.ibm.com>
8311         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
8312         two operands for little-endian.
8314 2013-07-23  Steve Ellcey  <sellcey@mips.com>
8316         * config/mips/mips.c (mips_case_values_threshold): New.
8317         (TARGET_CASE_VALUES_THRESHOLD): Define.
8319 2013-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8320             Anton Blanchard  <anton@au1.ibm.com>
8322         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
8323         selection of field for vector splat in little endian mode.
8325 2013-07-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
8327         * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
8328         expanders to rs6000.md.
8329         (ior<mode>3): Likewise.
8330         (and<mode>3): Likewise.
8331         (one_cmpl<mode>2): Likewise.
8332         (nor<mode>3): Likewise.
8333         (andc<mode>3): Likewise.
8334         (eqv<mode>3): Likewise.
8335         (nand<mode>3): Likewise.
8336         (orc<mode>3): Likewise.
8338         * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
8339         declaration.
8341         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
8342         to split multi-word logical operations.
8343         (rs6000_split_logical_di): Likewise.
8344         (rs6000_split_logical): Likewise.
8346         * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
8347         (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
8348         and allow TImode operations in 32-bit.
8349         (vsx_and<mode>3_64bit): Likewise.
8350         (vsx_ior<mode>3_32bit): Likewise.
8351         (vsx_ior<mode>3_64bit): Likewise.
8352         (vsx_xor<mode>3_32bit): Likewise.
8353         (vsx_xor<mode>3_64bit): Likewise.
8354         (vsx_one_cmpl<mode>2_32bit): Likewise.
8355         (vsx_one_cmpl<mode>2_64bit): Likewise.
8356         (vsx_nor<mode>3_32bit): Likewise.
8357         (vsx_nor<mode>3_64bit): Likewise.
8358         (vsx_andc<mode>3_32bit): Likewise.
8359         (vsx_andc<mode>3_64bit): Likewise.
8360         (vsx_eqv<mode>3_32bit): Likewise.
8361         (vsx_eqv<mode>3_64bit): Likewise.
8362         (vsx_nand<mode>3_32bit): Likewise.
8363         (vsx_nand<mode>3_64bit): Likewise.
8364         (vsx_orc<mode>3_32bit): Likewise.
8365         (vsx_orc<mode>3_64bit): Likewise.
8367         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
8368         logical types in GPRs.
8370         * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
8371         logical insns to rs6000.md, and allow TImode operations in
8372         32-bit.
8373         (altivec_ior<mode>3): Likewise.
8374         (altivec_xor<mode>3): Likewise.
8375         (altivec_one_cmpl<mode>2): Likewise.
8376         (altivec_nor<mode>3): Likewise.
8377         (altivec_andc<mode>3): Likewise.
8379         * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
8380         attributes for moving the 128-bit logical operations into
8381         rs6000.md.
8382         (BOOL_REGS_OUTPUT): Likewise.
8383         (BOOL_REGS_OP1): Likewise.
8384         (BOOL_REGS_OP2): Likewise.
8385         (BOOL_REGS_UNARY): Likewise.
8386         (BOOL_REGS_AND_CR0): Likewise.
8387         (one_cmpl<mode>2): Add support for DI logical operations on
8388         32-bit, splitting the operations to 32-bit.
8389         (anddi3): Likewise.
8390         (iordi3): Likewise.
8391         (xordi3): Likewise.
8392         (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
8393         changes to combine the 32/64-bit code, allow logical operations on
8394         TI mode in 32-bit, and to use similar match_operator patterns like
8395         scalar mode uses.  Combine the Altivec and VSX code for logical
8396         operations, and move it here.
8397         (ior<mode>3, 128-bit types): Likewise.
8398         (xor<mode>3, 128-bit types): Likewise.
8399         (one_cmpl<mode>3, 128-bit types): Likewise.
8400         (nor<mode>3, 128-bit types): Likewise.
8401         (andc<mode>3, 128-bit types): Likewise.
8402         (eqv<mode>3, 128-bit types): Likewise.
8403         (nand<mode>3, 128-bit types): Likewise.
8404         (orc<mode>3, 128-bit types): Likewise.
8405         (and<mode>3_internal): Likewise.
8406         (bool<mode>3_internal): Likewise.
8407         (boolc<mode>3_internal1): Likewise.
8408         (boolc<mode>3_internal2): Likewise.
8409         (boolcc<mode>3_internal1): Likewise.
8410         (boolcc<mode>3_internal2): Likewise.
8411         (eqv<mode>3_internal1): Likewise.
8412         (eqv<mode>3_internal2): Likewise.
8413         (one_cmpl1<mode>3_internal): Likewise.
8415 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
8417         * config/microblaze/microblaze.c (microblaze_expand_prologue):
8418         Rename flag_stack_usage to flag_stack_usage_info.
8420 2013-07-23  David Holsgrove  <david.holsgrove@xilinx.com>
8422         * config/microblaze/sync.md: New file.
8423         * config/microblaze/microblaze.md: Include sync.md
8424         * config/microblaze/microblaze.c: Add print_operand 'y'.
8425         * config/microblaze/constraints.md: Add memory_contraint
8426         'Q' which is a single register.
8428 2013-07-23  Eric Botcazou  <ebotcazou@adacore.com>
8430         * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
8432 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
8434         * reload.c (find_reloads): Exit loop once we find this operand
8435         cannot be reloaded somehow for this alternative.
8437         * reload.c (find_reloads): Exit loop once we find a hard register.
8439         * rtlanal.c (computed_jump_p): Exit loop once we find label
8440         reference is used.
8442         * i386.c (ix86_pad_returns): Exit loop after setting replace.
8444         * cfgloopmanip.c (remove_path): Exit loop after setting
8445         irred_invalidated.
8447         * gensupport.c (subst_dup): Avoid loop if code is not
8448         MATCH_DUP nor MATCH_OP_DUP.
8450 2013-07-23  Nicklas Bo Jensen  <nbjensen@gmail.com>
8452         * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
8454 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
8456         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
8457         true for SP_REGNUM if mode == ptr_mode.
8458         * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
8459         with value R0_REGNUM + 31.
8461 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
8463         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
8464         pad pointer-typed argument downward.
8466 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
8468         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
8469         and __ILP32__ when the ILP32 model is in use.
8471 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
8473         * config/aarch64/aarch64.c (POINTER_BYTES): New define.
8474         (aarch64_load_symref_appropriately): In the case of
8475         SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
8476         to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
8477         (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
8478         change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
8479         if 'mode' doesn't equal to 'ptr_mode'.
8480         (aarch64_output_mi_thunk): Add an assertion on the alignment of
8481         'vcall_offset'; change to call aarch64_emit_move differently depending
8482         on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
8483         to calculate the upper bound of 'vcall_offset'.
8484         (aarch64_cannot_force_const_mem): Change to also return true if
8485         mode != ptr_mode.
8486         (aarch64_legitimize_reload_address): In the case of large
8487         displacements, add new local variable 'xmode' and an assertion
8488         based on it; change to use 'xmode' to generate the new rtx and
8489         reload.
8490         (aarch64_asm_trampoline_template): Change to generate the template
8491         differently depending on TARGET_ILP32 or not; change to use
8492         'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
8493         (aarch64_trampoline_size): Removed.
8494         (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
8495         and replace immediate literals with it.  Change to use 'ptr_mode'
8496         instead of 'DImode' and call convert_memory_address if the mode
8497         of 'fnaddr' doesn't equal to 'ptr_mode'.
8498         (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
8499         to output symbol.
8500         (aarch64_elf_asm_destructor): Likewise.
8501         * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
8502         on TARGET_ILP32 instead of aarch64_trampoline_size.
8503         * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
8504         of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
8505         (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
8506         (loadwb_pair<GPI:mode>_<P:mode>): ... this.  Replace PTR with P.
8507         (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
8508         (storewb_pair<GPI:mode>_<P:mode>): ... this.
8509         (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
8510         depending on the value of 'mode'.
8511         (add_losym_<mode>): New.
8512         (ldr_got_small_<mode>): New, based on ldr_got_small.
8513         (ldr_got_small): Remove.
8514         (ldr_got_small_sidi): New.
8515         * config/aarch64/iterators.md (P): New.
8516         (PTR): Change to 'ptr_mode' in the condition.
8518 2013-07-23  Yufeng Zhang  <yufeng.zhang@arm.com>
8520         * config.gcc (aarch64*-*-*): Support --with-abi.
8521         (aarch64*-*-elf): Support --with-multilib-list.
8522         (aarch64*-*-linux*): Likewise.
8523         (supported_defaults): Add abi to aarch64*-*-*.
8524         * configure.ac: Mention AArch64 for --with-multilib-list.
8525         * configure: Re-generated.
8526         * config/aarch64/biarchilp32.h: New file.
8527         * config/aarch64/biarchlp64.h: New file.
8528         * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
8529         (ABI_SPEC): Ditto.
8530         (MULTILIB_DEFAULTS): Ditto.
8531         (DRIVER_SELF_SPECS): Ditto.
8532         (ASM_SPEC): Update to also substitute -mabi.
8533         * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
8534         file whose name depends on -mabi= and -mbig-endian.
8535         * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
8536         TARGET_ILP32.
8537         (POINTER_SIZE): New define.
8538         (POINTERS_EXTEND_UNSIGNED): Ditto.
8539         (enum aarch64_abi_type): New enumeration tag.
8540         (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
8541         (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
8542         (TARGET_ILP32): New define.
8543         * config/aarch64/aarch64.opt (mabi): New.
8544         (aarch64_abi): New.
8545         (ilp32, lp64): New values for -mabi.
8546         * config/aarch64/t-aarch64 (comma): New define.
8547         (MULTILIB_OPTIONS): Ditto.
8548         (MULTILIB_DIRNAMES): Ditto.
8549         * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
8550         * doc/invoke.texi: Document -mabi for AArch64.
8552 2013-07-23  Georg-Johann Lay  <avr@gjlay.de>
8554         * config/avr/avr.md: Explain asm print modifier 'r' for REG.
8556 2013-07-22  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
8557             Anton Blanchard  <anton@au1.ibm.com>
8559         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
8560         endianness when selecting field to splat.
8562 2013-07-22  Eric Christopher  <echristo@gmail.com>
8564         * dwarf2out.c (die_odr_checksum): New function to use
8565         CHECKSUM_ macros and ULEB128 for DIE tag.
8566         (generate_type_signature): Use.
8568 2013-07-22  Eric Botcazou  <ebotcazou@adacore.com>
8570         * config.gcc (sparc*-*-*): Accept leon3 processor.
8571         (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
8572         * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
8573         * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
8574         * config/sparc/sparc.opt (enum processor_type): Add leon3.
8575         (mfix-ut699): Adjust comment.
8576         * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
8577         (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
8578         (CPP_CPU_SPEC): Likewise.
8579         (ASM_CPU_SPEC): Likewise.
8580         * config/sparc/sparc.c (leon3_cost): New constant.
8581         (sparc_option_override): Add leon3 support.
8582         (mem_ref): New function.
8583         (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
8584         (sparc_do_work_around_errata): Look into the instruction in the delay
8585         slot and adjust accordingly.  Add fix for the data cache nullify issues
8586         of the UT699.  Change insertion position for the NOP.
8587         * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
8588         (leon3_load): New reservation.
8589         (leon_store): Bump latency to 2.
8590         (grfpu): New automaton.
8591         (grfpu_alu): New unit.
8592         (grfpu_ds): Likewise.
8593         (leon_fp_alu): Adjust.
8594         (leon_fp_mult): Delete.
8595         (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
8596         (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
8597         * config/sparc/sparc.md (cpu): Add leon3.
8598         * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
8599         (swapsi): Likewise.
8600         (atomic_test_and_set): Likewise.
8601         (ldstub): Likewise.
8603 2013-07-22  Jürgen Urban  <JuergenUrban@gmx.de>
8605         * config.gcc (mips*-*-*): Add --with-fpu support.  Make single the
8606         default for R5900 targets.
8607         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
8608         (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
8609         * config/mips/mips.c (mips_option_override): Report an error for
8610         -march=r5900 -mhard-float -mdouble-float.  Use spu_single_format
8611         for -march=r5900 -mhard-float.
8613 2013-07-22  Po-Chun Chang  <pchang9@cs.wisc.edu>
8615         * df-problems.c (can_move_insns_across): Exit loop once we
8616         find a non-fixed, non-global register.
8618         * ipa-pure-const.c (propagate_nothrow): Exit loop after
8619         setting can_throw.
8621         * omega.c (omega_eliminate_red): Break after setting red_found.
8622         (omega_problem_has_red_equations): Similarly after setting found.
8623         (omega_query_variable): Similarly after setting coupled.
8625 2013-07-22  Marek Polacek  <polacek@redhat.com>
8627         * gimplify.c: Don't include gimple.h twice.
8629 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8631         * config/arm/constraints.md (Pd): Allow TARGET_THUMB
8632         instead of TARGET_THUMB1.
8633         (Pz): New constraint.
8634         * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
8635         encodings.
8636         (compare_negsi_si): Likewise.
8637         (compare_addsi2_op0): Likewise.
8638         (compare_addsi2_op1): Likewise.
8639         (addsi3_carryin_<optab>): Likewise.
8640         (addsi3_carryin_alt2_<optab>): Likewise.
8641         (addsi3_carryin_shift_<optab>): Disable cond_exec variant
8642         for arm_restrict_it.
8643         (subsi3_carryin): Likewise.
8644         (arm_subsi3_insn): Add alternatives for 16-bit encoding.
8645         (minmax_arithsi): Disable for arm_restrict_it.
8646         (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
8647         (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
8648         (satsi_<SAT:code>_shift): Likewise.
8649         (arm_shiftsi3): Add alternative for 16-bit encoding.
8650         (arm32_movhf): Disable for arm_restrict_it.
8651         (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
8652         (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
8654 2013-07-22  Sofiane Naci  <sofiane.naci@arm.com>
8656         * config/arm/arm.md (attribute "insn"): Delete.
8657         (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
8658         "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
8659         (not_shiftsi): Update for attribute change.
8660         (not_shiftsi_compare0): Likewise.
8661         (not_shiftsi_compare0_scratch): Likewise.
8662         (arm_one_cmplsi2): Likewise.
8663         (thumb1_one_cmplsi2): Likewise.
8664         (notsi_compare0): Likewise.
8665         (notsi_compare0_scratch): Likewise.
8666         (thumb1_movdi_insn): Likewise.
8667         (arm_movsi_insn): Likewise.
8668         (movhi_insn_arch4): Likewise.
8669         (movhi_bytes): Likewise.
8670         (arm_movqi_insn): Likewise.
8671         (thumb1_movqi_insn): Likewise.
8672         (arm32_movhf): Likewise.
8673         (thumb1_movhf): Likewise.
8674         (arm_movsf_soft_insn): Likewise.
8675         (thumb1_movsf_insn): Likewise.
8676         (thumb_movdf_insn): Likewise.
8677         (movsicc_insn): Likewise.
8678         (movsfcc_soft_insn): Likewise.
8679         (and_scc): Likewise.
8680         (cond_move): Likewise.
8681         (if_move_not): Likewise.
8682         (if_not_move): Likewise.
8683         (if_shift_move): Likewise.
8684         (if_move_shift): Likewise.
8685         (if_shift_shift): Likewise.
8686         (if_not_arith): Likewise.
8687         (if_arith_not): Likewise.
8688         (cond_move_not): Likewise.
8689         * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
8690         (neon_mov<mode>): Likewise.
8691         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
8692         (thumb2_movsi_vfp): Likewise.
8693         (movsf_vfp): Likewise.
8694         (thumb2_movsf_vfp): Likewise.
8695         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
8696         change.
8697         (cortexa7_older_only): Likewise.
8698         (cortexa7_younger): Likewise.
8699         * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
8700         (1020alu_shift_op): Likewise.
8701         (1020alu_shift_reg_op): Likewise.
8702         * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
8703         (alu_shift_op): Likewise.
8704         (alu_shift_reg_op): Likewise.
8705         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
8706         (11_alu_shift_op): Likewise.
8707         (11_alu_shift_reg_op): Likewise.
8708         * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
8709         (9_alu_shift_reg_op): Likewise.
8710         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
8711         change.
8712         (cortex_a15_alu_shift): Likewise.
8713         (cortex_a15_alu_shift_reg): Likewise.
8714         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
8715         (cortex_a5_alu_shift): Likewise.
8716         * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
8717         change.
8718         (cortex_a53_alu_shift): Likewise.
8719         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
8720         change.
8721         (cortex_a7_alu_reg): Likewise.
8722         (cortex_a7_alu_shift): Likewise.
8723         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
8724         (cortex_a8_alu_shift): Likewise.
8725         (cortex_a8_alu_shift_reg): Likewise.
8726         (cortex_a8_mov): Likewise.
8727         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
8728         (cortex_a9_dp_shift): Likewise.
8729         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
8730         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
8731         (cortex_r4_mov): Likewise.
8732         (cortex_r4_alu_shift): Likewise.
8733         (cortex_r4_alu_shift_reg): Likewise.
8734         * config/arm/fa526.md (526_alu_op): Update for attribute change.
8735         (526_alu_shift_op): Likewise.
8736         * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
8737         * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
8738         (626te_alu_shift_op): Likewise.
8739         * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
8740         (726te_alu_op): Likewise.
8741         (726te_alu_shift_op): Likewise.
8742         (726te_alu_shift_reg_op): Likewise.
8743         * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
8744         (mp626_alu_shift_op): Likewise.
8745         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
8746         (pj4_alu_e1_conds): Likewise.
8747         (pj4_alu): Likewise.
8748         (pj4_alu_conds): Likewise.
8749         (pj4_shift): Likewise.
8750         (pj4_shift_conds): Likewise.
8751         (pj4_alu_shift): Likewise.
8752         (pj4_alu_shift_conds): Likewise.
8754 2013-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8756         * config/arm/predicates.md (shiftable_operator_strict_it):
8757         New predicate.
8758         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
8759         Disable cond_exec version for arm_restrict_it.
8760         (thumb2_smaxsi3): Convert to generate cond_exec.
8761         (thumb2_sminsi3): Likewise.
8762         (thumb32_umaxsi3): Likewise.
8763         (thumb2_uminsi3): Likewise.
8764         (thumb2_abssi2): Adjust constraints for arm_restrict_it.
8765         (thumb2_neg_abssi2): Likewise.
8766         (thumb2_mov_scc): Add alternative for 16-bit encoding.
8767         (thumb2_movsicc_insn): Adjust alternatives.
8768         (thumb2_mov_negscc): Disable for arm_restrict_it.
8769         (thumb2_mov_negscc_strict_it): New pattern.
8770         (thumb2_mov_notscc_strict_it): New pattern.
8771         (thumb2_mov_notscc): Disable for arm_restrict_it.
8772         (thumb2_ior_scc): Likewise.
8773         (thumb2_ior_scc_strict_it): New pattern.
8774         (thumb2_cond_move): Adjust for arm_restrict_it.
8775         (thumb2_cond_arith): Disable for arm_restrict_it.
8776         (thumb2_cond_arith_strict_it): New pattern.
8777         (thumb2_cond_sub): Adjust for arm_restrict_it.
8778         (thumb2_movcond): Likewise.
8779         (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
8780         (thumb2_zero_extendhisi2_v6): Likewise.
8781         (thumb2_zero_extendqisi2_v6): Likewise.
8782         (orsi_notsi_si): Likewise.
8783         (orsi_not_shiftsi_si): Likewise.
8785 2013-07-22  Georg-Johann Lay  <avr@gjlay.de>
8787         * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
8788         instruction sequence is 1 byte shorter.
8790 2013-07-22  Uros Bizjak  <ubizjak@gmail.com>
8792         * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
8793         it is not needed after split.
8795 2013-07-20  Iain Sandoe  <iain@codesourcery.com>
8797         PR target/51784
8798         * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
8799         second label for nonlocal goto receivers. Don't output pic base labels
8800         unless we're producing PIC; mark that action unreachable().
8801         (ix86_save_reg): If the function contains a nonlocal label, save the
8802         PIC base reg.
8803         * config/darwin-protos.h (machopic_should_output_picbase_label): New.
8804         * config/darwin.c (emitted_pic_label_num): New GTY.
8805         (update_pic_label_number_if_needed): New.
8806         (machopic_output_function_base_name): Adjust for nonlocal receiver
8807         case.
8808         (machopic_should_output_picbase_label): New.
8809         * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
8810         (nonlocal_goto_receiver): New insn and split.
8812 2013-07-20  James Greenhalgh  <james.greenhalgh@arm.com>
8814         * config/aarch64/aarch64-builtins.c
8815         (aarch64_fold_builtin): Fold abs in all modes.
8816         * config/aarch64/aarch64-simd-builtins.def
8817         (abs): Enable for all modes.
8818         * config/aarch64/arm_neon.h
8819         (vabs<q>_s<8,16,32,64): Rewrite using builtins.
8820         (vabs_f64): Add missing intrinsic.
8822 2013-07-19  Ian Bolton  <ian.bolton@arm.com>
8824         * config/aarch64/arm_neon.h (vabs_s64): New function
8826 2013-07-19  Georg-Johann Lay  <avr@gjlay.de>
8828         PR target/57516
8829         * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
8830         * config/avr/avr.md (adjust_len): Add `round'.
8831         * config/avr/avr-protos.h (avr_out_round): New prototype.
8832         (avr_out_plus): Add `out_label' argument.
8833         * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
8834         (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
8835         Handle the case where `insn' is just a pattern.
8836         (avr_out_bitop): Handle the case where `insn' is just a pattern.
8837         (avr_out_round): New function.
8838         (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
8840 2013-07-18  David Holsgrove  <david.holsgrove@xilinx.com>
8842         * config/microblaze/microblaze.c (microblaze_expand_prologue):
8843         Add check for flag_stack_usage to handle -fstack-usage support
8845 2013-07-18  Pat Haugen  <pthaugen@us.ibm.com>
8847         * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
8848         interaction for new Power8 flags and VSX.
8850 2013-07-18  Sriraman Tallam  <tmsriram@google.com>
8852         PR middle-end/57698
8853         * tree-inline.c (expand_call_inline): Emit errors during
8854         early_inlining only if optimization is not turned on.
8856 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
8858         * passes.def: New.
8860         * passes.c (init_optimization_passes): Move the construction of
8861         the pass hierarchy into a new passes.def file.
8863         * Makefile.in (passes.o): Add dependency on passes.def.
8865 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
8867         * passes.c (init_optimization_passes): Introduce macros for
8868         constructing the tree of passes (INSERT_PASSES_AFTER,
8869         PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
8870         TERMINATE_PASS_LIST).
8872 2013-07-18  Vladimir Makarov  <vmakarov@redhat.com>
8873             Wei Mi  <wmi@google.com>
8875         PR rtl-optimization/57878
8876         * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
8877         top.
8878         (reload_pseudo_compare_func): Check nregs first for reload
8879         pseudos.
8881 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
8883         * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
8885 2013-07-18  Po-Chun Chang  <pchang9@cs.wisc.edu>
8887         * read-rtl.c (validate_const_int): Once an invalid character is
8888         seen, quit the loop.
8890         * gengtype.c (write_roots): Similarly once we find the "deletable"
8891         or "if_marked" option.
8893 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
8895         * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
8896         "xtab" and "sat".  Move value "clz" from here to ...
8897         (attriubte "type"): ... here.
8898         (satsi_<SAT:code>): Delete "insn" attribute.
8899         (satsi_<SAT:code>_shift): Likewise.
8900         (arm_zero_extendqisi2addsi): Likewise.
8901         (arm_extendqisi2addsi): Likewise.
8902         (clzsi2): Update for attribute changes.
8903         (rbitsi2): Likewise.
8904         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
8905         attribute.
8906         (arm_usatsihi): Likewise.
8907         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
8909 2013-07-18  Sofiane Naci  <sofiane.naci@arm.com>
8911         * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
8912         "arlo_imm".  Rename "alu_reg" to "arlo_reg".  Rename "simple_alu_shift"
8913         to "extend".  Split "alu_shift" into "shift" and "arlo_shift".  Split
8914         "alu_shift_reg" into "shift_reg" and "arlo_shift_reg".  List types
8915         in alphabetical order.
8916         (attribute "core_cycles"): Update for attribute changes.
8917         (arm_addsi3): Likewise.
8918         (addsi3_compare0): Likewise.
8919         (addsi3_compare0_scratch): Likewise.
8920         (addsi3_compare_op1): Likewise.
8921         (addsi3_compare_op2): Likewise.
8922         (compare_addsi2_op0): Likewise.
8923         (compare_addsi2_op1): Likewise.
8924         (addsi3_carryin_shift_<optab>): Likewise.
8925         (subsi3_carryin_shift): Likewise.
8926         (rsbsi3_carryin_shift): Likewise.
8927         (arm_subsi3_insn): Likewise.
8928         (subsi3_compare0): Likewise.
8929         (subsi3_compare): Likewise.
8930         (arm_andsi3_insn): Likewise.
8931         (thumb1_andsi3_insn): Likewise.
8932         (andsi3_compare0): Likewise.
8933         (andsi3_compare0_scratch): Likewise.
8934         (zeroextractsi_compare0_scratch
8935         (andsi_not_shiftsi_si): Likewise.
8936         (iorsi3_insn): Likewise.
8937         (iorsi3_compare0): Likewise.
8938         (iorsi3_compare0_scratch): Likewise.
8939         (arm_xorsi3): Likewise.
8940         (thumb1_xorsi3_insn): Likewise.
8941         (xorsi3_compare0): Likewise.
8942         (xorsi3_compare0_scratch): Likewise.
8943         (satsi_<SAT:code>_shift): Likewise.
8944         (rrx): Likewise.
8945         (arm_shiftsi3): Likewise.
8946         (shiftsi3_compare0): Likewise.
8947         (not_shiftsi): Likewise.
8948         (not_shiftsi_compare0): Likewise.
8949         (not_shiftsi_compare0_scratch): Likewise.
8950         (arm_one_cmplsi2): Likewise.
8951         (thumb_one_complsi2): Likewise.
8952         (notsi_compare0): Likewise.
8953         (notsi_compare0_scratch): Likewise.
8954         (thumb1_zero_extendhisi2): Likewise.
8955         (arm_zero_extendhisi2): Likewise.
8956         (arm_zero_extendhisi2_v6): Likewise.
8957         (arm_zero_extendhisi2addsi): Likewise.
8958         (thumb1_zero_extendqisi2): Likewise.
8959         (thumb1_zero_extendqisi2_v6): Likewise.
8960         (arm_zero_extendqisi2): Likewise.
8961         (arm_zero_extendqisi2_v6): Likewise.
8962         (arm_zero_extendqisi2addsi): Likewise.
8963         (thumb1_extendhisi2): Likewise.
8964         (arm_extendhisi2): Likewise.
8965         (arm_extendhisi2_v6): Likewise.
8966         (arm_extendqisi): Likewise.
8967         (arm_extendqisi_v6): Likewise.
8968         (arm_extendqisi2addsi): Likewise.
8969         (thumb1_extendqisi2): Likewise.
8970         (thumb1_movdi_insn): Likewise.
8971         (arm_movsi_insn): Likewise.
8972         (movsi_compare0): Likewise.
8973         (movhi_insn_arch4): Likewise.
8974         (movhi_bytes): Likewise.
8975         (arm_movqi_insn): Likewise.
8976         (thumb1_movqi_insn): Likewise.
8977         (arm32_movhf): Likewise.
8978         (thumb1_movhf): Likewise.
8979         (arm_movsf_soft_insn): Likewise.
8980         (thumb1_movsf_insn): Likewise.
8981         (movdf_soft_insn): Likewise.
8982         (thumb_movdf_insn): Likewise.
8983         (arm_cmpsi_insn): Likewise.
8984         (cmpsi_shiftsi): Likewise.
8985         (cmpsi_shiftsi_swp): Likewise.
8986         (arm_cmpsi_negshiftsi_si): Likewise.
8987         (movsicc_insn): Likewise.
8988         (movsfcc_soft_insn): Likewise.
8989         (arith_shiftsi): Likewise.
8990         (arith_shiftsi_compare0
8991         (arith_shiftsi_compare0_scratch
8992         (sub_shiftsi): Likewise.
8993         (sub_shiftsi_compare0
8994         (sub_shiftsi_compare0_scratch
8995         (and_scc): Likewise.
8996         (cond_move): Likewise.
8997         (if_plus_move): Likewise.
8998         (if_move_plus): Likewise.
8999         (if_move_not): Likewise.
9000         (if_not_move): Likewise.
9001         (if_shift_move): Likewise.
9002         (if_move_shift): Likewise.
9003         (if_shift_shift): Likewise.
9004         (if_not_arith): Likewise.
9005         (if_arith_not): Likewise.
9006         (cond_move_not): Likewise.
9007         (thumb1_ashlsi3): Set type attribute.
9008         (thumb1_ashrsi3): Likewise.
9009         (thumb1_lshrsi3): Likewise.
9010         (thumb1_rotrsi3): Likewise.
9011         (shiftsi3_compare0_scratch): Likewise.
9012         * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
9013         (neon_mov<mode>): Likewise.
9014         * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
9015         attribute changes.
9016         (thumb2_movsi_insn): Likewise.
9017         (thumb2_cmpsi_neg_shiftsi): Likewise.
9018         (thumb2_extendqisi_v6): Likewise.
9019         (thumb2_zero_extendhisi2_v6): Likewise.
9020         (thumb2_zero_extendqisi2_v6): Likewise.
9021         (thumb2_shiftsi3_short): Likewise.
9022         (thumb2_addsi3_compare0_scratch): Likewise.
9023         (orsi_not_shiftsi_si): Likewise.
9024         * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
9025         * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
9026         changes.
9027         * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
9028         (1020alu_shift_op): Likewise.
9029         (1020alu_shift_reg_op): Likewise.
9030         * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
9031         (alu_shift_op): Likewise.
9032         (alu_shift_reg_op): Likewise.
9033         * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
9034         (11_alu_shift_op): Likewise.
9035         (11_alu_shift_reg_op): Likewise.
9036         * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
9037         (9_alu_shift_reg_op): Likewise.
9038         * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
9039         changes.
9040         (cortex_a15_alu_shift): Likewise.
9041         (cortex_a15_alu_shift_reg): Likewise.
9042         * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
9043         changes.
9044         (cortex_a5_alu_shift): Likewise.
9045         * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
9046         changes.
9047         (cortex_a53_alu_shift): Likewise.
9048         * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
9049         changes.
9050         (cortex_a7_alu_reg): Likewise.
9051         (cortex_a7_alu_shift): Likewise.
9052         * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
9053         changes.
9054         (cortex_a8_alu_shift): Likewise.
9055         (cortex_a8_alu_shift_reg): Likewise.
9056         (cortex_a8_mov): Likewise.
9057         * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
9058         (cortex_a9_dp_shift): Likewise.
9059         * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
9060         changes.
9061         * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
9062         changes.
9063         (cortex_r4_mov): Likewise.
9064         (cortex_r4_alu_shift): Likewise.
9065         (cortex_r4_alu_shift_reg): Likewise.
9066         * config/arm/fa526.md (526_alu_op): Update for attribute changes.
9067         (526_alu_shift_op): Likewise.
9068         * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
9069         * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
9070         (626te_alu_shift_op): Likewise.
9071         * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
9072         (726te_alu_op): Likewise.
9073         (726te_alu_shift_op): Likewise.
9074         (726te_alu_shift_reg_op): Likewise.
9075         * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
9076         (mp626_alu_shift_op): Likewise.
9077         * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
9078         (pj4_alu_e1_conds): Likewise.
9079         (pj4_alu): Likewise.
9080         (pj4_alu_conds): Likewise.
9081         (pj4_shift): Likewise.
9082         (pj4_shift_conds): Likewise.
9083         (pj4_alu_shift): Likewise.
9084         (pj4_alu_shift_conds): Likewise.
9085         * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
9086         changes.
9087         (cortexa7_older_only): Likewise.
9088         (cortexa7_younger): Likewise.
9090 2013-07-18  David Malcolm  <dmalcolm@redhat.com>
9092         * ipa-pure-const.c (generate_summary): Rename to...
9093         (pure_const_generate_summary): ... this.
9095 2013-07-17  Iain Sandoe  <iain@codesourcery.com>
9097         * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
9099 2013-07-17  Yvan Roux  <yvan.roux@linaro.org>
9101         PR target/57909
9102         * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
9103         usage in HI mode.
9105 2013-07-17  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9107         * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
9108         enabled without -march=zEC12.
9109         * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
9110         flags to be set.
9112 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
9114         * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
9115         (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
9116         (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
9117         terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
9118         (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
9119         * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
9120         ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
9121         ISA_HAS_FP4.
9122         <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
9123         and ISA_HAS_NMADD3_NMSUB3.
9124         * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
9125         (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
9126         (nmsub4<mode>, nmsub3<mode>): Likewise.
9127         (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
9129 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
9131         * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
9132         TARGET_MIPS5400 checking.
9134 2013-07-16  Jakub Jelinek  <jakub@redhat.com>
9135             Peter Bergner  <bergner@vnet.ibm.com>
9137         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
9138         registers in the comment.
9139         (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
9140         (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
9141         rather than FIRST_PSEUDO_REGISTERS.
9143 2013-07-16  Peter Bergner  <bergner@vnet.ibm.com>
9145         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9146         enable extra ISA flags with TARGET_HTM.
9148 2013-07-16  Maciej W. Rozycki  <macro@codesourcery.com>
9150         * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
9151         Fix comment typos.
9153 2013-07-15  Cong Hou  <congh@google.com>
9155         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
9156         in compare function for sorting.
9158 2013-07-15  Peter Bergner  <bergner@vnet.ibm.com>
9160         * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
9161         * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
9162         * config/rs6000/rs6000.opt: Add -mhtm option.
9163         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
9164         (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
9165         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9166         __HTM__ if the HTM instructions are available.
9167         * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
9168         htm_spr_reg_operand): New define_predicates.
9169         * config/rs6000/rs6000.md (define_attr "type"): Add htm.
9170         (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
9171         Include htm.md.
9172         * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
9173         BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
9174         HTM builtin functions.
9175         * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
9176         (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
9177         (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
9178         (rs6000_builtin_mask_calculate): Likewise.
9179         (rs6000_option_override_internal): Likewise.
9180         (bdesc_htm): Add new HTM builtin support.
9181         (htm_spr_num): New function.
9182         (htm_spr_regno): Likewise.
9183         (rs6000_htm_spr_icode): Likewise.
9184         (htm_expand_builtin): Likewise.
9185         (htm_init_builtins): Likewise.
9186         (rs6000_expand_builtin): Add support for HTM builtin functions.
9187         (rs6000_init_builtins): Likewise.
9188         (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
9189         option.
9190         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
9191         (TARGET_HTM, MASK_HTM): Define macros.
9192         (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
9193         (FIXED_REGISTERS): Likewise.
9194         (CALL_USED_REGISTERS): Likewise.
9195         (CALL_REALLY_USED_REGISTERS): Likewise.
9196         (REG_ALLOC_ORDER): Likewise.
9197         (enum reg_class): Likewise.
9198         (REG_CLASS_NAMES): Likewise.
9199         (REG_CLASS_CONTENTS): Likewise.
9200         (REGISTER_NAMES): Likewise.
9201         (ADDITIONAL_REGISTER_NAMES): Likewise.
9202         (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
9203         RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
9204         (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
9205         * config/rs6000/htm.md: New file.
9206         * config/rs6000/htmintrin.h: New file.
9207         * config/rs6000/htmxlintrin.h: New file.
9209 2013-07-15  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9211         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
9212         Define SYMBOL_TINY_GOT, update comment.
9213         * config/aarch64/aarch64.c
9214         (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
9215         (aarch64_expand_mov_immediate): Likewise.
9216         (aarch64_print_operand): Likewise.
9217         (aarch64_classify_symbol): Likewise.
9218         * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
9219         (ldr_got_tiny): Define.
9221 2013-07-13  Tobias Grosser  <tobias@grosser.es>
9223         PR tree-optimization/54094
9224         * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
9225           scheduling dimension for the parallelism check from the polyhedral
9226           information in the AST.
9227         * graphite-dependences.c (carries_deps): Do not assume the schedule is
9228           in 2D + 1 form.
9230 2013-07-13  Jason Merrill  <jason@redhat.com>
9232         * print-tree.c (debug_vec_tree): Use debug_raw.
9233         (debug_raw (vec<tree, va_gc> &)): New.
9234         (debug_raw (vec<tree, va_gc> *)): New.
9235         * tree.h: Declare them.
9237 2013-07-13  Bin Cheng  <bin.cheng@arm.com>
9239         * ifcvt.c (ifcvt_after_combine): New static variable.
9240         (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
9241         for size.
9242         (if_convert): New parameter after_combine.  Set ifcvt_after_combine.
9243         (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
9244         rest_of_handle_if_after_reload): Pass new argument for if_convert.
9246 2013-07-12  Maciej W. Rozycki  <macro@codesourcery.com>
9248         * config/mips/mips.c (mips_expand_call): Remove empty statement.
9250 2013-07-12  Michael Matz  <matz@suse.de>
9252         PR middle-end/55771
9253         * convert.c (convert_to_real): Reject non-float inner types.
9255 2013-07-12  Tejas Belagod  <tejas.belagod@arm.com>
9257         * config/aarch64/aarch64-protos.h
9258         (aarch64_simd_immediate_valid_for_move): Remove.
9259         * config/aarch64/aarch64.c (simd_immediate_info): New member.
9260         (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
9261         cases.
9262         (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
9264 2013-07-11  Steve Ellcey  <sellcey@mips.com>
9266         * config/mips/mips.c (mips_conditional_register_usage): Do not
9267         use t[0-7] registers in MIPS16 mode when optimizing for size.
9269 2013-07-11  Sriraman Tallam  <tmsriram@google.com>
9271         * config/i386/i386.c (dispatch_function_versions): Fix array
9272         indexing of function_version_info to match actual_versions.
9274 2013-07-11  Teresa Johnson  <tejohnson@google.com>
9276         * vec.h (struct va_gc): Move release out-of-line.
9277         (va_gc::release): Call ggc_free on released vec.
9279 2013-07-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9281         * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
9282         Require GOT register as additional operand in UNSPEC.
9283         ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
9284         ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
9285         ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
9286         ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
9287         ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
9288         ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
9289         ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
9291 2013-07-11  Georg-Johann Lay  <avr@gjlay.de>
9293         PR target/57631
9294         * config/avr/avr.c (avr_set_current_function): Sanity-check signal
9295         name seen by assembler/linker rather if available.
9297 2013-07-11  Andreas Schwab  <schwab@suse.de>
9299         * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
9301 2013-07-10  Vladimir Makarov  <vmakarov@redhat.com>
9303         * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
9305 2013-07-10  Joseph Myers  <joseph@codesourcery.com>
9307         * doc/tm.texi.in: Move hook documentation to ....
9308         * target.def: ... here.
9310         * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
9311         text on @hook line.
9312         * doc/tm.texi: Regenerate.
9314 2013-07-10  Paolo Carlini  <paolo.carlini@oracle.com>
9316         PR c++/57869
9317         * doc/invoke.texi: Document -Wconditionally-supported.
9319 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
9321         PR target/57844
9322         * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
9323         of my_fp.
9325 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
9327         PR target/57506
9328         * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
9329         (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
9330         (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
9331         Remove duplicate devices.
9332         * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
9333         * config/avr/t-multilib: Regenerate.
9334         * config/avr/avr-tables.opt: Regenerate.
9335         * doc/avr-mmcu.texi: Regenerate.
9337 2013-07-10  Georg-Johann Lay  <avr@gjlay.de>
9339         PR target/56987
9340         * config/avr/avr.opt (Waddr-space-convert): Fix typo.
9342 2013-07-10  Graham Stott  <graham.stott@btinternet.com>
9344         * config/mips/mips.c (mips_rtx_costs): Very slightly increase
9345         the cost of MULT when optimizing for size.
9347 2013-07-10  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
9349         * config/cr16/cr16-protos.h: Don't include target.h.
9351 2013-07-09  Joseph Myers  <joseph@codesourcery.com>
9353         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
9354         adjust register size for TDmode and TFmode for VSX registers.
9356 2013-07-08  Kai Tietz  <ktietz@redhat.com>
9358         PR target/56892
9359         * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
9360         hook_bool_const_tree_true.
9362 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9364         * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
9365         * config/s390/s390.h: Remove F*_REGNUM macro definitions.
9366         * config/s390/s390.md: Define FPR*_REGNUM constants.
9367         Fix FPR2_REGNUM constant (18 -> 17).
9368         ("*trunc<BFP:mode><DFP_ALL:mode>2")
9369         ("*trunc<DFP_ALL:mode><BFP:mode>2")
9370         ("trunc<BFP:mode><DFP_ALL:mode>2")
9371         ("trunc<DFP_ALL:mode><BFP:mode>2")
9372         ("*extend<BFP:mode><DFP_ALL:mode>2")
9373         ("*extend<DFP_ALL:mode><BFP:mode>2")
9374         ("extend<BFP:mode><DFP_ALL:mode>2")
9375         ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
9376         FPR4_REGNUM.
9378 2013-07-08  Graham Stott  <graham.stott@btinternet.com>
9380         * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
9382 2013-07-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9384         * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
9385         and cfun_fpr_bit_p to cfun_fpr_save_p.
9386         (s390_frame_area, s390_register_info, s390_frame_info)
9387         (s390_emit_prologue, s390_emit_epilogue)
9388         (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
9389         register numbers.
9390         * config/s390/s390.h: Define *_REGNUM macros for floating point
9391         register numbers.
9393 2013-07-08  Eric Botcazou  <ebotcazou@adacore.com>
9395         * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
9397 2013-07-08  Po-Chun Chang  <pchang9@cs.wisc.edu>
9399         PR rtl-optimization/57786
9400         * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
9401         and break out of the loop when it is set to false.
9403 2013-07-08  Jakub Jelinek  <jakub@redhat.com>
9405         PR target/57819
9406         * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
9407         Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
9408         (const_int 63)) 0)).
9409         * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
9410         using simplify_gen_unary instead of gen_rtx_*_EXTEND.
9411         * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
9413         PR rtl-optimization/57829
9414         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
9415         mask bits outside of mode are just sign-extension from mode to HWI.
9417 2013-07-08  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9419         * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
9420         * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
9421         adjust_address instead of change_address to keep info about alignment.
9422         (emit_strmov): Remove.
9423         (emit_memmov): New function.
9424         (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
9425         (expand_movmem_epilogue): Likewise and return updated rtx for
9426         destination.
9427         (expand_constant_movmem_prologue): Likewise and return updated rtx for
9428         destination and source.
9429         (decide_alignment): Refactor, handle vector_loop.
9430         (ix86_expand_movmem): Likewise.
9431         (ix86_expand_setmem): Likewise.
9432         * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
9434 2013-07-07  Uros Bizjak  <ubizjak@gmail.com>
9436         * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
9437         signature_TM2_ebx, it interferes with signature_INTEL_ebx.
9439 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
9441         * config/i386/sse.md (sse_movlhps): Change alternative 3
9442         of operand 2 to "m".
9444 2013-07-06  Uros Bizjak  <ubizjak@gmail.com>
9446         PR target/57807
9447         * config/i386/sse.md (iptr): New mode attribute.
9448         (sse2_movq128): Add pointer size overrides for Intel asm dialect.
9449         (<sse>_vm<plusminus_insn><mode>3): Ditto.
9450         (<sse>_vmmul<mode>3): Ditto.
9451         (<sse>_vmdiv<mode>3): Ditto.
9452         (sse_vmrcpv4sf2): Ditto.
9453         (<sse>_vmsqrt<mode>2): Ditto.
9454         (sse_vmrsqrtv4sf2): Ditto.
9455         (<sse>_vm<code><mode>3): Ditto.
9456         (avx_vmcmp<mode>3): Ditto.
9457         (<sse>_vmmaskcmp<mode>3): Ditto.
9458         (<sse>_comi): Ditto.
9459         (<sse>_ucomi): Ditto.
9460         (*xop_vmfrcz_<mode>): Ditto.
9461         (*fmai_fmadd_<mode>): Ditto.
9462         (*fmai_fmsub_<mode>): Ditto.
9463         (*fmai_fnmadd_<mode>): Ditto.
9464         (*fmai_fnmsub_<mode>): Ditto.
9465         (*fma4i_vmfmadd_<mode>): Ditto.
9466         (*fma4i_vmfmsub_<mode>): Ditto.
9467         (*fma4i_vmfnmadd_<mode>): Ditto.
9468         (*fma4i_vmfnmsub_<mode>): Ditto.
9469         (*xop_vmfrcz_<mode>): Ditto.
9470         (sse_cvtps2pi): Ditto.
9471         (sse_cvttps2pi): Ditto.
9472         (sse_cvtss2si): Ditto.
9473         (sse_cvtss2si_2): Ditto.
9474         (sse_cvtss2siq_2): Ditto.
9475         (sse_cvttss2si): Ditto.
9476         (sse_cvttss2siq): Ditto.
9477         (sse_cvtsd2si): Ditto.
9478         (sse_cvtsd2si_2): Ditto.
9479         (sse_cvtsd2siq_2): Ditto.
9480         (sse_cvttsd2si): Ditto.
9481         (sse_cvttsd2siq): Ditto.
9482         (sse_cvtsd2ss): Ditto.
9483         (sse_cvtss2sd): Ditto.
9484         (avx2_pbroadcast<mode>): Ditto.
9485         (avx2_pbroadcast<mode>_1): Ditto.
9486         (*avx_vperm_broadcast_v4sf): Ditto.
9488         (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
9489         (sse_movlhps): Ditto.
9490         (sse_storehps): Ditto.
9491         (sse_loadhps): Ditto.
9492         (sse_storelps): Ditto.
9493         (sse_loadlps): Ditto.
9494         (*vec_concatv4sf): Ditto.
9495         (*vec_interleave_highv2df): Ditto.
9496         (*vec_interleave_lowv2df): Ditto.
9497         (*vec_extractv2df_1_sse): Ditto.
9498         (*vec_extractv2df_0_sse): Ditto.
9499         (sse2_storelpd): Ditto.
9500         (sse2_loadlpd): Ditto.
9501         (sse2_movsd): Ditto.
9502         (*vec_concatv4si): Ditto.
9503         (vec_concatv2di): Ditto.
9505         * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
9506         for Intel asm dialect.
9507         (mmx_punpcklwd): Ditto.
9508         (mmx_punpckldq): Ditto.
9510         * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
9511         for intel assembler dialect.
9513 2013-07-06  Jakub Jelinek  <jakub@redhat.com>
9515         PR target/29776
9516         * fold-const.c (tree_call_nonnegative_warnv_p): Return true
9517         for BUILT_IN_C{LZ,LRSB}*.
9518         * tree.h (CASE_INT_FN): Add FN##IMAX case.
9519         * tree-vrp.c (extract_range_basic): Handle
9520         BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*.  For
9521         BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
9522         fall thru to code calling set_value*.
9523         * builtins.c (expand_builtin): Remove *IMAX cases.
9524         (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
9525         if width is bigger than 2*HWI.
9527 2013-07-05  Vladimir Makarov  <vmakarov@redhat.com>
9529         PR rtl-optimization/55342
9530         * lra-int.h (lra_subreg_reload_pseudos): New.
9531         * lra.c: Add undoing optional reloads to the block diagram.
9532         (lra_subreg_reload_pseudos): New.
9533         (lra_optional_reload_pseudos): Change comments.
9534         (lra): Init and clear lra_subreg_reload_pseudos.  Clear
9535         lra_optional_reload_pseudos after undo transformations.
9536         * lra-assigns.c (pseudo_prefix_title): New.
9537         (lra_setup_reg_renumber): Use it.
9538         (spill_for): Ditto.  Check subreg reload pseudos too.
9539         (assign_by_spills): Consider subreg reload pseudos too.
9540         * lra-constraints.c (simplify_operand_subreg): Use
9541         lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
9542         (curr_insn_transform): Recognize and do optional reloads.
9543         (undo_optional_reloads): New.
9544         (lra_undo_inheritance): Call undo_optional_reloads.
9546 2013-07-05  Thomas Quinot  <quinot@adacore.com>
9548         * tree-complex.c (expand_complex_operations_1): Fix typo.
9550 2013-07-04  Tejas Belagod  <tejas.belagod@arm.com>
9552         * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
9553         (tune_params): New member 'const vec_costs'.
9554         * config/aarch64/aarch64.c (generic_vector_cost): New.
9555         (generic_tunings): New member 'generic_vector_cost'.
9556         (aarch64_builtin_vectorization_cost): New.
9557         (aarch64_add_stmt_cost): New.
9558         (TARGET_VECTORIZE_ADD_STMT_COST): New.
9559         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
9561 2013-07-03  Jakub Jelinek  <jakub@redhat.com>
9563         PR target/57777
9564         * config/i386/predicates.md (vsib_address_operand): Disallow
9565         SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
9567 2013-07-03  Hans-Peter Nilsson  <hp@bitrange.com>
9569         PR middle-end/55030
9570         * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
9571         expand_builtin_setjmp_receiver.
9572         (expand_label): Adjust, call expand_builtin_setjmp_receiver
9573         with NULL for the label parameter.
9574         * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
9575         the frame-pointer.  Adjust comments.
9576         [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
9577         only if LABEL is non-NULL.
9579 2013-07-03  Yufeng Zhang  <yufeng.zhang@arm.com>
9581         * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
9582         (ARM_ABI_AAPCS64): Ditto.
9583         (arm_abi): Ditto.
9584         (ARM_DEFAULT_ABI): Ditto.
9586 2013-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
9588         * config/aarch64/aarch64-builtins.c
9589         (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
9590         * config/aarch64/aarch64-simd-builtins.def (ld1): New.
9591         (st1): Likewise.
9592         * config/aarch64/aarch64-simd.md
9593         (aarch64_ld1<VALL:mode>): New.
9594         (aarch64_st1<VALL:mode>): Likewise.
9595         * config/aarch64/arm_neon.h
9596         (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
9598 2013-07-02  Sriraman Tallam  <tmsriram@google.com>
9600         * config/i386/i386.c (gate_insert_vzeroupper): Check if
9601         target ISA is AVX.
9602         (ix86_option_override_internal):Turn on all -mavx target flags by
9603         default as they are dependent on AVX anyway.
9605 2013-07-02  Cary Coutant  <ccoutant@google.com>
9607         * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
9608         deterministic hash.
9609         (loc_checksum_ordered): Likewise.
9610         (hash_loc_operands): Remove inline keyword.
9612 2013-07-02  Jakub Jelinek  <jakub@redhat.com>
9614         PR tree-optimization/57741
9615         * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
9616         non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
9617         or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
9618         Allow REAL_CST step_exprs if flag_associative_math.
9619         (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
9621 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
9623         * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
9625 2013-07-02  Ian Bolton  <ian.bolton@arm.com>
9627         * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
9629 2013-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9631         * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
9632         encoding.
9633         (iorsi3_insn): Likewise.
9634         (arm_xorsi3): Likewise.
9636 2013-07-01  Sofiane Naci  <sofiane.naci@arm.com>
9638         * arm.md (attribute "wtype"): Delete.  Move attribute values from here
9639         to ...
9640         (attribute "type"): ... here, and prefix with "wmmx_".
9641         (attribute "core_cycles"): Update for attribute changes.
9642         * iwmmxt.md (tbcstv8qi): Update for attribute changes.
9643         (tbcstv4hi): Likewise.
9644         (tbcstv2si): Likewise.
9645         (iwmmxt_iordi3): Likewise.
9646         (iwmmxt_xordi3): Likewise.
9647         (iwmmxt_anddi3): Likewise.
9648         (iwmmxt_nanddi3): Likewise.
9649         (iwmmxt_arm_movdi): Likewise.
9650         (iwmmxt_movsi_insn): Likewise.
9651         (mov<mode>_internal): Likewise.
9652         (and<mode>3_iwmmxt): Likewise.
9653         (ior<mode>3_iwmmxt): Likewise.
9654         (xor<mode>3_iwmmxt): Likewise.
9655         (add<mode>3_iwmmxt): Likewise.
9656         (ssaddv8qi3): Likewise.
9657         (ssaddv4hi3): Likewise.
9658         (ssaddv2si3): Likewise.
9659         (usaddv8qi3): Likewise.
9660         (usaddv4hi3): Likewise.
9661         (usaddv2si3): Likewise.
9662         (sub<mode>3_iwmmxt): Likewise.
9663         (sssubv8qi3): Likewise.
9664         (sssubv4hi3): Likewise.
9665         (sssubv2si3): Likewise.
9666         (ussubv8qi3): Likewise.
9667         (ussubv4hi3): Likewise.
9668         (ussubv2si3): Likewise.
9669         (mulv4hi3_iwmmxt): Likewise.
9670         (smulv4hi3_highpart): Likewise.
9671         (umulv4hi3_highpart): Likewise.
9672         (iwmmxt_wmacs): Likewise.
9673         (iwmmxt_wmacsz): Likewise.
9674         (iwmmxt_wmacu): Likewise.
9675         (iwmmxt_wmacuz): Likewise.
9676         (iwmmxt_clrdi): Likewise.
9677         (iwmmxt_clrv8qi): Likewise.
9678         (iwmmxt_clr4hi): Likewise.
9679         (iwmmxt_clr2si): Likewise.
9680         (iwmmxt_uavgrndv8qi3): Likewise.
9681         (iwmmxt_uavgrndv4hi3): Likewise.
9682         (iwmmxt_uavgv8qi3): Likewise.
9683         (iwmmxt_uavgv4hi3): Likewise.
9684         (iwmmxt_tinsrb): Likewise.
9685         (iwmmxt_tinsrh): Likewise.
9686         (iwmmxt_tinsrw): Likewise.
9687         (iwmmxt_textrmub): Likewise.
9688         (iwmmxt_textrmsb): Likewise.
9689         (iwmmxt_textrmuh): Likewise.
9690         (iwmmxt_textrmsh): Likewise.
9691         (iwmmxt_textrmw): Likewise.
9692         (iwmxxt_wshufh): Likewise.
9693         (eqv8qi3): Likewise.
9694         (eqv4hi3): Likewise.
9695         (eqv2si3): Likewise.
9696         (gtuv8qi3): Likewise.
9697         (gtuv4hi3): Likewise.
9698         (gtuv2si3): Likewise.
9699         (gtv8qi3): Likewise.
9700         (gtv4hi3): Likewise.
9701         (gtv2si3): Likewise.
9702         (smax<mode>3_iwmmxt): Likewise.
9703         (umax<mode>3_iwmmxt): Likewise.
9704         (smin<mode>3_iwmmxt): Likewise.
9705         (umin<mode>3_iwmmxt): Likewise.
9706         (iwmmxt_wpackhss): Likewise.
9707         (iwmmxt_wpackwss): Likewise.
9708         (iwmmxt_wpackdss): Likewise.
9709         (iwmmxt_wpackhus): Likewise.
9710         (iwmmxt_wpackwus): Likewise.
9711         (iwmmxt_wpackdus): Likewise.
9712         (iwmmxt_wunpckihb): Likewise.
9713         (iwmmxt_wunpckihh): Likewise.
9714         (iwmmxt_wunpckihw): Likewise.
9715         (iwmmxt_wunpckilb): Likewise.
9716         (iwmmxt_wunpckilh): Likewise.
9717         (iwmmxt_wunpckilw): Likewise.
9718         (iwmmxt_wunpckehub): Likewise.
9719         (iwmmxt_wunpckehuh): Likewise.
9720         (iwmmxt_wunpckehuw): Likewise.
9721         (iwmmxt_wunpckehsb): Likewise.
9722         (iwmmxt_wunpckehsh): Likewise.
9723         (iwmmxt_wunpckehsw): Likewise.
9724         (iwmmxt_wunpckelub): Likewise.
9725         (iwmmxt_wunpckeluh): Likewise.
9726         (iwmmxt_wunpckeluw): Likewise.
9727         (iwmmxt_wunpckelsb): Likewise.
9728         (iwmmxt_wunpckelsh): Likewise.
9729         (iwmmxt_wunpckelsw): Likewise.
9730         (ror<mode>3): Likewise.
9731         (ashr<mode>3_iwmmxt): Likewise.
9732         (lshr<mode>3_iwmmxt): Likewise.
9733         (ashl<mode>3_iwmmxt): Likewise.
9734         (ror<mode>3_di): Likewise.
9735         (ashr<mode>3_di): Likewise.
9736         (lshr<mode>3_di): Likewise.
9737         (ashl<mode>3_di): Likewise.
9738         (iwmmxt_wmadds): Likewise.
9739         (iwmmxt_wmaddu): Likewise.
9740         (iwmmxt_tmia): Likewise.
9741         (iwmmxt_tmiaph): Likewise.
9742         (iwmmxt_tmiabb): Likewise.
9743         (iwmmxt_tmiatb): Likewise.
9744         (iwmmxt_tmiabt): Likewise.
9745         (iwmmxt_tmiatt): Likewise.
9746         (iwmmxt_tmovmskb): Likewise.
9747         (iwmmxt_tmovmskh): Likewise.
9748         (iwmmxt_tmovmskw): Likewise.
9749         (iwmmxt_waccb): Likewise.
9750         (iwmmxt_wacch): Likewise.
9751         (iwmmxt_waccw): Likewise.
9752         (iwmmxt_waligni): Likewise.
9753         (iwmmxt_walignr): Likewise.
9754         (iwmmxt_walignr0): Likewise.
9755         (iwmmxt_walignr1): Likewise.
9756         (iwmmxt_walignr2): Likewise.
9757         (iwmmxt_walignr3): Likewise.
9758         (iwmmxt_wsadb): Likewise.
9759         (iwmmxt_wsadh): Likewise.
9760         (iwmmxt_wsadbz): Likewise.
9761         (iwmmxt_wsadhz): Likewise.
9762         * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
9763         (iwmmxt_wabsdiffb): Likewise.
9764         (iwmmxt_wabsdiffh): Likewise.
9765         (iwmmxt_wabsdiffw): Likewise.
9766         (iwmmxt_waddsubhx): Likewise
9767         (iwmmxt_wsubaddhx): Likewise.
9768         (addc<mode>3): Likewise.
9769         (iwmmxt_avg4): Likewise.
9770         (iwmmxt_avg4r): Likewise.
9771         (iwmmxt_wmaddsx): Likewise.
9772         (iwmmxt_wmaddux): Likewise.
9773         (iwmmxt_wmaddsn): Likewise.
9774         (iwmmxt_wmaddun): Likewise.
9775         (iwmmxt_wmulwsm): Likewise.
9776         (iwmmxt_wmulwum): Likewise.
9777         (iwmmxt_wmulsmr): Likewise.
9778         (iwmmxt_wmulumr): Likewise.
9779         (iwmmxt_wmulwsmr): Likewise.
9780         (iwmmxt_wmulwumr): Likewise.
9781         (iwmmxt_wmulwl): Likewise.
9782         (iwmmxt_wqmulm): Likewise.
9783         (iwmmxt_wqmulwm): Likewise.
9784         (iwmmxt_wqmulmr): Likewise.
9785         (iwmmxt_wqmulwmr): Likewise.
9786         (iwmmxt_waddbhusm): Likewise.
9787         (iwmmxt_waddbhusl): Likewise.
9788         (iwmmxt_wqmiabb): Likewise.
9789         (iwmmxt_wqmiabt): Likewise.
9790         (iwmmxt_wqmiatb): Likewise.
9791         (iwmmxt_wqmiatt): Likewise.
9792         (iwmmxt_wqmiabbn): Likewise.
9793         (iwmmxt_wqmiabtn): Likewise.
9794         (iwmmxt_wqmiatbn): Likewise.
9795         (iwmmxt_wqmiattn): Likewise.
9796         (iwmmxt_wmiabb): Likewise.
9797         (iwmmxt_wmiabt): Likewise.
9798         (iwmmxt_wmiatb): Likewise.
9799         (iwmmxt_wmiatt): Likewise.
9800         (iwmmxt_wmiabbn): Likewise.
9801         (iwmmxt_wmiabtn): Likewise.
9802         (iwmmxt_wmiatbn): Likewise.
9803         (iwmmxt_wmiattn): Likewise.
9804         (iwmmxt_wmiawbb): Likewise.
9805         (iwmmxt_wmiawbt): Likewise.
9806         (iwmmxt_wmiawtb): Likewise.
9807         (iwmmxt_wmiawtt): Likewise.
9808         (iwmmxt_wmiawbbn): Likewise.
9809         (iwmmxt_wmiawbtn): Likewise.
9810         (iwmmxt_wmiawtbn): Likewise.
9811         (iwmmxt_wmiawttn): Likewise.
9812         (iwmmxt_wmerge): Likewise.
9813         (iwmmxt_tandc<mode>3): Likewise.
9814         (iwmmxt_torc<mode>3): Likewise.
9815         (iwmmxt_torvsc<mode>3): Likewise.
9816         (iwmmxt_textrc<mode>3): Likewise.
9817         * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
9818         (wmmxt_pack): Likewise.
9819         (wmmxt_mult_c1): Likewise.
9820         (wmmxt_mult_c2): Likewise.
9821         (wmmxt_alu_c1): Likewise.
9822         (wmmxt_alu_c2): Likewise.
9823         (wmmxt_alu_c3): Likewise.
9824         (wmmxt_transfer_c1): Likewise.
9825         (wmmxt_transfer_c2): Likewise.
9826         (wmmxt_transfer_c3): Likewise.
9827         (marvell_f_iwmmxt_wstr): Likewise.
9828         (marvell_f_iwmmxt_wldr): Likewise.
9830 2013-06-29  Yufeng Zhang  <yufeng.zhang@arm.com>
9832         * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
9834 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
9836         Revert:
9837         2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
9838         * lra-constraints.c (need_for_split_p): Check call used hard regs
9839         living through calls.
9841         * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
9842         call used regs for call insn.
9844 2013-06-28  Jakub Jelinek  <jakub@redhat.com>
9846         PR target/57736
9847         * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
9848         mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
9850 2013-06-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
9852         * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
9854 2013-06-28  Vladimir Makarov  <vmakarov@redhat.com>
9856         * lra-constraints.c (need_for_split_p): Check call used hard regs
9857         living through calls.
9859 2013-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
9861         PR target/57744
9862         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
9863         to tie with any other modes.  Eliminate Altivec vector mode tests,
9864         since these are a subset of ALTIVEC or VSX vector modes.  Simplify
9865         code, to return 0 if testing MODE2 for a condition, if we've
9866         already tested MODE1 for the same condition.
9868 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9870         * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
9871         layout.
9873 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9875         * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
9876         Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
9878 2013-06-28  Marcus Shawcroft  <marcus.shawcroft@arm.com>
9880         * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
9881         Define.
9882         (aarch64_symbolic_constant_p): Remove.
9883         * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
9884         static.  Fix line length and white space.
9885         (aarch64_symbolic_constant_p): Remove.
9886         * config/aarch64/predicates.md (aarch64_valid_symref):
9887         Use aarch64_classify_symbol_expression.
9889 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9891         * config/arm/constraints.md (Ts): New constraint.
9892         * config/arm/arm.md (arm_movqi_insn): Add alternatives for
9893         16-bit encodings.
9894         (compare_scc): Use "Ts" constraint for operand 0.
9895         (ior_scc_scc): Likewise.
9896         (and_scc_scc): Likewise.
9897         (and_scc_scc_nodom): Likewise.
9898         (ior_scc_scc_cmp): Likewise for operand 7.
9899         (and_scc_scc_cmp): Likewise.
9900         * config/arm/thumb2.md (thumb2_movsi_insn):
9901         Add alternatives for 16-bit encodings.
9902         (thumb2_movhi_insn): Likewise.
9903         (thumb2_movsicc_insn): Likewise.
9904         (thumb2_and_scc): Take 'and' outside cond_exec.  Use "Ts" constraint.
9905         (thumb2_negscc): Use "Ts" constraint.
9906         Move mvn instruction outside cond_exec block.
9907         * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
9908         for 16-bit encodings.
9910 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9912         * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
9913         encoding.
9914         (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
9915         (mulsi3subsi): Likewise.
9916         (mulsidi3adddi): Likewise.
9917         (mulsidi3_v6): Likewise.
9918         (umulsidi3_v6): Likewise.
9919         (umulsidi3adddi_v6): Likewise.
9920         (smulsi3_highpart_v6): Likewise.
9921         (umulsi3_highpart_v6): Likewise.
9922         (mulhisi3tb): Likewise.
9923         (mulhisi3bt): Likewise.
9924         (mulhisi3tt): Likewise.
9925         (maddhisi4): Likewise.
9926         (maddhisi4tb): Likewise.
9927         (maddhisi4tt): Likewise.
9928         (maddhidi4): Likewise.
9929         (maddhidi4tb): Likewise.
9930         (maddhidi4tt): Likewise.
9931         (zeroextractsi_compare0_scratch): Likewise.
9932         (insv_zero): Likewise.
9933         (insv_t2): Likewise.
9934         (anddi_notzesidi_di): Likewise.
9935         (anddi_notsesidi_di): Likewise.
9936         (andsi_notsi_si): Likewise.
9937         (iordi_zesidi_di): Likewise.
9938         (xordi_zesidi_di): Likewise.
9939         (andsi_iorsi3_notsi): Likewise.
9940         (smax_0): Likewise.
9941         (smax_m1): Likewise.
9942         (smin_0): Likewise.
9943         (not_shiftsi): Likewise.
9944         (unaligned_loadsi): Likewise.
9945         (unaligned_loadhis): Likewise.
9946         (unaligned_loadhiu): Likewise.
9947         (unaligned_storesi): Likewise.
9948         (unaligned_storehi): Likewise.
9949         (extv_reg): Likewise.
9950         (extzv_t2): Likewise.
9951         (divsi3): Likewise.
9952         (udivsi3): Likewise.
9953         (arm_zero_extendhisi2addsi): Likewise.
9954         (arm_zero_extendqisi2addsi): Likewise.
9955         (compareqi_eq0): Likewise.
9956         (arm_extendhisi2_v6): Likewise.
9957         (arm_extendqisi2addsi): Likewise.
9958         (arm_movt): Likewise.
9959         (thumb2_ldrd): Likewise.
9960         (thumb2_ldrd_base): Likewise.
9961         (thumb2_ldrd_base_neg): Likewise.
9962         (thumb2_strd): Likewise.
9963         (thumb2_strd_base): Likewise.
9964         (thumb2_strd_base_neg): Likewise.
9965         (arm_negsi2): Add alternative for 16-bit encoding.
9966         (arm_one_cmplsi2): Likewise.
9968 2013-06-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9970         * config/arm/predicates.md (arm_cond_move_operator): New predicate.
9971         * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
9972         (movdfcc): Likewise.
9973         * config/arm/vfp.md (*thumb2_movsf_vfp):
9974         Disable predication for arm_restrict_it.
9975         (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
9976         (*thumb2_movdfcc_vfp): Likewise.
9977         (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
9978         *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
9979         *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
9980         *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
9981         *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
9982         *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
9983         *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
9984         *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
9985         *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
9986         *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
9987         *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
9988         *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
9989         Disable predication for arm_restrict_it.
9991 2013-06-28  Kirill Yukhin  <kirill.yukhin@intel.com>
9993         * config/i386/bmiintrin.h (_bextr_u32): New.
9994         (_bextr_u64): Ditto.
9996 2013-06-27  Richard Sandiford  <rdsandiford@googlemail.com>
9998         * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
9999         (mips64r5900el-*-elf*): Include mips/n32-elf.h.
10000         * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
10001         (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
10002         * config/mips/n32-elf.h: ...this new file.
10004 2013-06-27  Marc Glisse  <marc.glisse@inria.fr>
10006         PR target/57224
10007         * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
10008         IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
10010 2013-06-27  Catherine Moore  <clm@codesourcery.com>
10012         * config/mips/mips-tables.opt: Regenerate.
10013         * config/mips/mips-cpus.def: Add m14ke and m14kec.
10014         * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
10015         * doc/invoke.texi: Add -m14kc.
10017 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
10019         PR target/57623
10020         * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
10021         constraints of operand 1 and 2.
10023         PR target/57623
10024         * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
10025         to match RTL canonicalization.  Swap predicates and
10026         constraints of operand 1 and 2.
10028 2013-06-27  Vladimir Makarov  <vmakarov@redhat.com>
10030         * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
10031         Process OP_INOUT regs for splitting too.
10033 2013-06-27  Jakub Jelinek  <jakub@redhat.com>
10035         * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
10036         decl before the loop, initialize to NULL.
10037         (vectorizable_load): Initialize ptr_incr to NULL.
10039 2013-06-27  Martin Jambor  <mjambor@suse.cz>
10041         PR lto/57208
10042         * ipa-ref.h (ipa_maybe_record_reference): Declare.
10043         * ipa-ref.c (ipa_maybe_record_reference): New function.
10044         * cgraphclones.c (cgraph_create_virtual_clone): Use it.
10045         * ipa-cp.c (create_specialized_node): Record potential references from
10046         aggvals.
10047         * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
10049 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
10051         * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
10052         parameter 'mode' of type 'enum machine_mode mode'; change to pass
10053         'mode' to force_reg.
10054         (aarch64_add_offset): Update calls to aarch64_force_temporary.
10055         (aarch64_expand_mov_immediate): Likewise.
10057 2013-06-27  Yufeng Zhang  <yufeng.zhang@arm.com>
10059         * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
10060         'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
10062 2013-06-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10064         * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
10065         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
10066         (struct machine_function): Add tbegin_p.
10067         (s390_canonicalize_comparison): Fold CC mode compares to
10068         conditional jump if possible.
10069         (s390_emit_jump): Return the emitted jump.
10070         (s390_branch_condition_mask, s390_branch_condition_mnemonic):
10071         Handle CCRAWmode compares.
10072         (s390_option_override): Default to -mhtm if available.
10073         (s390_reg_clobbered_rtx): Handle floating point regs as well.
10074         (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
10075         FPRs instead of df_regs_ever_live_p.
10076         (s390_optimize_nonescaping_tx): New function.
10077         (s390_init_frame_layout): Extend clobbered_regs array to cover
10078         FPRs as well.
10079         (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
10080         (s390_expand_tbegin): New function.
10081         (enum s390_builtin): New enum definition.
10082         (code_for_builtin): New array definition.
10083         (s390_init_builtins): New function.
10084         (s390_expand_builtin): New function.
10085         (TARGET_INIT_BUILTINS): Define.
10086         (TARGET_EXPAND_BUILTIN): Define.
10087         * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
10088         * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
10089         (s390_alc_comparison): Likewise.
10090         * config/s390/s390-modes.def: Add CCRAWmode.
10091         * config/s390/s390.h (processor_flags): Add PF_TX.
10092         (TARGET_CPU_HTM): Define macro.
10093         (TARGET_HTM): Define macro.
10094         (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
10095         * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
10096         UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
10097         (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
10098         (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
10099         (TBEGIN_MASK, TBEGINC_MASK): New constants.
10100         ("*cc_to_int"): Move up.
10101         ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
10102         constants other than 0.
10103         ("*ccraw_to_int"): New insn and splitter definition.
10104         ("tbegin", "tbegin_nofloat", "tbegin_retry")
10105         ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
10106         ("tx_assist"): New expander.
10107         ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
10108         ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
10109         * config/s390/s390.opt: Add -mhtm option.
10110         * config/s390/s390-protos.h (s390_emit_jump): Add return type.
10111         * config/s390/htmxlintrin.h: New file.
10112         * config/s390/htmintrin.h: New file.
10113         * config/s390/s390intrin.h: New file.
10114         * doc/extend.texi: Document htm builtins.
10115         * config.gcc: Add the new header files to extra_headers.
10117 2013-06-26  Thomas Schwinge  <thomas@codesourcery.com>
10119         * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
10120         (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
10122 2013-06-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
10123             Pat Haugen  <pthaugen@us.ibm.com>
10124             Peter Bergner  <bergner@vnet.ibm.com>
10126         * config/rs6000/power8.md: New.
10127         * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
10128         setting for power8 entry.
10129         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
10130         * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
10131         test for Power4/Power5 only.
10132         (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
10133         support.
10134         (force_new_group): Adjust comment.
10135         * config/rs6000/rs6000.md: Include power8.md.
10137 2013-06-26  Greta Yorsh  <Greta.Yorsh@arm.com>
10139         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
10140         * config/arm/arm-protos.h (arm_max_conditional_execute): New
10141         declaration.
10142         (tune_params): Update comment.
10143         * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
10144         (arm_max_conditional_execute): New function.
10145         (thumb2_final_prescan_insn): Use max_insn_skipped and
10146         MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
10148 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
10150         PR tree-optimization/57705
10151         * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
10152         SSA_NAME step, provided that it is not defined inside the loop.
10153         (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
10154         (get_initial_def_for_induction): Handle SSA_NAME IV step.
10156 2013-06-25  Martin Jambor  <mjambor@suse.cz>
10158         PR middle-end/57670
10159         * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
10160         * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
10161         calls in the dump.
10162         (ipa_note_param_call): Initialize member_ptr flag.
10163         (ipa_analyze_indirect_call_uses): Set member_ptr flag.
10164         (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
10165         (ipa_write_indirect_edge_info): Stream member_ptr flag.
10166         (ipa_read_indirect_edge_info): Likewise.
10168 2013-06-25  Richard Biener  <rguenther@suse.de>
10170         PR middle-end/56977
10171         * passes.c (init_optimization_passes): Move pass_fold_builtins
10172         and pass_dce earlier with -Og.
10174 2013-06-25  Eric Botcazou  <ebotcazou@adacore.com>
10176         * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
10177         <BIT_FIELD_REF>: Remove trailing TAB.
10178         * varasm.c (output_constructor_bitfield): Fix formatting glitch and
10179         remove blank line.
10181 2013-06-24  Martin Jambor  <mjambor@suse.cz>
10183         PR tree-optimization/57358
10184         * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
10185         (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
10186         (ipa_analyze_params_uses): Generate pessimistic info when true.
10188 2013-06-24  Martin Jambor  <mjambor@suse.cz>
10190         PR tree-optimization/57539
10191         * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
10192         global.inlined_to of the new node to it.  All callers changed.
10193         * ipa-inline-transform.c (clone_inlined_nodes): New variable
10194         inlining_into, pass it to cgraph_clone_node.
10195         * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
10196         ipa_free_edge_args_substructures.
10197         (ipa_edge_duplication_hook): Only add edges from inlined nodes to
10198         rdesc linked list.  Do not assert rdesc edges have inlined caller.
10199         Assert we have found an rdesc in the rdesc list.
10201 2013-06-24  Richard Biener  <rguenther@suse.de>
10203         * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
10204         (pointer_set_lookup): Declare.
10205         (class pointer_map): New template class implementing a
10206         generic pointer to T map.
10207         (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
10208         pointer_map<T>::contains, pointer_map<T>::insert,
10209         pointer_map<T>::traverse): New functions.
10210         * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
10211         (pointer_set_lookup): New function.
10212         (pointer_set_contains): Use pointer_set_lookup.
10213         (pointer_set_insert): Likewise.
10214         (insert_aux): Remove.
10215         (struct pointer_map_t): Embed a pointer_set_t.
10216         (pointer_map_create): Adjust.
10217         (pointer_map_destroy): Likewise.
10218         (pointer_map_contains): Likewise.
10219         (pointer_map_insert): Likewise.
10220         (pointer_map_traverse): Likewise.
10221         * tree-streamer.h (struct streamer_tree_cache_d): Use a
10222         pointer_map<unsigned> instead of a pointer_map_t.
10223         * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
10224         (streamer_tree_cache_lookup): Likewise.
10225         (streamer_tree_cache_create): Likewise.
10226         (streamer_tree_cache_delete): Likewise.
10227         * lto-streamer.h (struct lto_tree_ref_encoder): Use a
10228         pointer_map<unsigned> instead of a pointer_map_t.
10229         (lto_init_tree_ref_encoder): Adjust.
10230         (lto_destroy_tree_ref_encoder): Likewise.
10231         * lto-section-out.c (lto_output_decl_index): Likewise.
10232         (lto_record_function_out_decl_state): Likewise.
10233         * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
10235 2013-06-24  Richard Biener  <rguenther@suse.de>
10237         PR tree-optimization/57488
10238         * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
10240 2013-06-24  Alan Modra  <amodra@gmail.com>
10242         * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
10243         (gen_easy_altivec_constant): Likewise.
10244         * config/rs6000/predicates.md (easy_vector_constant_add_self,
10245         easy_vector_constant_msb): Likewise.
10247 2013-06-23  Jakub Jelinek  <jakub@redhat.com>
10249         PR target/57688
10250         * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
10251         add missing return true.
10253 2013-06-23  Oleg Endo  <olegendo@gcc.gnu.org>
10255         PR target/52483
10256         * config/sh/predicates.md (general_extend_operand): Invoke
10257         general_movsrc_operand for memory operands.
10258         (general_movsrc_operand): Allow reg+reg addressing, do not use
10259         general_operand for memory operands.
10261 2013-06-23  Sriraman Tallam  <tmsriram@google.com>
10263         * config/i386/i386.c (ix86_pragma_target_parse):  Restore target
10264         when current target options does not apply.
10265         * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
10266         * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
10267         * config/i386/bmiintrin.h: Pass appropriate target
10268         attributes to header.
10269         * config/i386/mmintrin.h: Ditto.
10270         * config/i386/nmmintrin.h: Ditto.
10271         * config/i386/avx2intrin.h: Ditto.
10272         * config/i386/fxsrintrin.h: Ditto.
10273         * config/i386/tbmintrin.h: Ditto.
10274         * config/i386/xsaveintrin.h: Ditto.
10275         * config/i386/f16cintrin.h: Ditto.
10276         * config/i386/xtestintrin.h: Ditto.
10277         * config/i386/xsaveoptintrin.h: Ditto.
10278         * config/i386/bmi2intrin.h: Ditto.
10279         * config/i386/lzcntintrin.h: Ditto.
10280         * config/i386/smmintrin.h: Ditto.
10281         * config/i386/wmmintrin.h: Ditto.
10282         * config/i386/x86intrin.h: Remove all header include guards.
10283         * config/i386/prfchwintrin.h: Ditto.
10284         * config/i386/pmmintrin.h: Ditto.
10285         * config/i386/tmmintrin.h: Ditto.
10286         * config/i386/xmmintrin.h: Ditto.
10287         * config/i386/popcntintrin.h: Ditto.
10288         * config/i386/rdseedintrin.h: Ditto.
10289         * config/i386/ammintrin.h: Ditto.
10290         * config/i386/emmintrin.h: Ditto.
10291         * config/i386/immintrin.h: Remove all header include guards.
10292         * config/i386/fma4intrin.h: Ditto.
10293         * config/i386/lwpintrin.h: Ditto.
10294         * config/i386/xopintrin.h: Ditto.
10295         * config/i386/ia32intrin.h: Ditto.
10296         * config/i386/avxintrin.h: Ditto.
10297         * config/i386/rtmintrin.h: Ditto.
10298         * config/i386/fmaintrin.h: Ditto.
10299         * config/i386/mm3dnow.h: Ditto.
10301 2013-06-22  Sriraman Tallam  <tmsriram@google.com>
10303         * common/config/i386/i386-common.c: Handle LZCNT.
10305 2013-06-22  Andi Kleen  <ak@linux.intel.com>
10307         * doc/extend.texi: Use __atomic_store_n instead of
10308         __atomic_store in HLE example.
10310 2013-06-22  Oleg Endo  <olegendo@gcc.gnu.org>
10312         * config/sh/sh.c: Remove <cstdlib> workaround.
10314 2013-06-21  Andi Kleen  <ak@linux.intel.com>
10316         * doc/extend.texi: Dont use __atomic_clear in HLE example.  Fix typo.
10318 2013-06-21  Andi Kleen  <ak@linux.intel.com>
10320         * doc/extend.texi: Document that __atomic_clear and
10321           __atomic_test_and_set should only be used with bool.
10323 2013-06-20  Jan Hubicka  <jh@suse.cz>
10325         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
10326         types_same_for_odr.
10327         * tree.c (decls_same_for_odr): New function.
10328         (same_for_edr): New function.
10329         (types_same_for_odr): New function.
10330         (get_binfo_at_offset): Use it.
10331         * tree.h (types_same_for_odr): Declare.
10333 2013-06-20  Oleg Endo  <olegendo@gcc.gnu.org>
10334             Jason Merrill  <jason@redhat.com>
10336         * system.h: Include <cstdlib> as well as <stdlib.h>.
10338 2013-06-20  Uros Bizjak  <ubizjak@gmail.com>
10340         PR target/57655
10341         * config/i386/i386.c (construct_container): Report error if
10342         long double is used with disabled x87 float returns.
10344 2013-06-20  Jan Hubicka  <jh@suse.cz>
10346         * lto-cgraph.c (input_symtab): Do not set cgraph state.
10348 2013-06-20  Joern Rennecke  <joern.rennecke@embecosm.com>
10350         PR rtl-optimization/57425
10351         PR rtl-optimization/57569
10352         * alias.c (write_dependence_p): Remove parameters mem_mode and
10353         canon_mem_addr.  Add parameters x_mode, x_addr and x_canonicalized.
10354         Changed all callers.
10355         (canon_anti_dependence): Get comments and semantics in sync.
10356         Add parameter mem_canonicalized.  Changed all callers.
10357         * rtl.h (canon_anti_dependence): Update prototype.
10359 2013-06-20  Richard Biener  <rguenther@suse.de>
10361         * data-streamer-in.c (streamer_read_uhwi): Optimize single
10362         byte case, inline streamer_read_uchar and defer section
10363         overrun check.
10365 2013-06-20  Richard Biener  <rguenther@suse.de>
10367         PR tree-optimization/57584
10368         * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
10369         SSA names into the expanded expression that take part in
10370         abnormal coalescing.
10372 2013-06-19  Sharad Singhai  <singhai@google.com>
10374         * gcov.c (print_usage): Handle new option.
10375         (process_args): Ditto.
10376         (get_gcov_intermediate_filename): New function.
10377         (output_intermediate_file): New function.
10378         (output_gcov_file): New function
10379         (generate_results): Handle new option.
10380         (release_function): Relase demangled name.
10381         (read_graph_file): Handle demangled name.
10382         (output_lines): Ditto.
10383         * doc/gcov.texi: Document gcov intermediate format.
10385 2013-06-19  Vladimir Makarov  <vmakarov@redhat.com>
10387         PR bootstrap/57604
10388         * lra.c (emit_add3_insn, emit_add2_insn): New functions.
10389         (lra_emit_add): Use the functions.  Add comment about Y as an
10390         address segment.
10392 2013-06-19  David Edelsohn  <dje.gcc@gmail.com>
10394         PR driver/57652
10395         * collect2.c (collect_atexit): New.
10396         (collect_exit): Delete.
10397         (main): Register collect_atexit with atexit.
10398         (collect_wait): Change collect_exit to exit.
10399         (do_wait): Same.
10400         * collect2.h (collect_exit): Delete.
10401         * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
10403 2013-06-19  Wei Mi  <wmi@google.com>
10405         PR rtl-optimization/57518
10406         * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
10407         if regno is used in paradoxical subreg.
10408         (update_equiv_regs): Check pdx_subregs[regno] before
10409         set a reg to be equivalent with a mem.
10411 2013-06-19  Matthias Klose  <doko@ubuntu.com>
10413         PR driver/57651
10414         * file-find.h (find_a_file): Add a mode parameter.
10415         * file-find.c (find_a_file): Likewise.
10416         * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
10417         with X_OK for the executables.
10418         * collect2.c (main): Call find_a_file with X_OK.
10420 2013-06-19  Steve Ellcey  <sellcey@mips.com>
10422         PR target/56942
10423         * config/mips/mips.md (casesi_internal_mips16_<mode>):
10424         Use NEXT_INSN instead of next_real_insn.
10426 2013-06-19  Jan Hubicka  <jh@suse.cz>
10428         * cgraph.h (const_value_known_p): Replace by ...
10429         (ctor_for_folding): .. this one.
10430         * cgraphunit.c (process_function_and_variable_attributes): Use it.
10431         * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
10432         * expr.c (expand_expr_real_1): Likewise.
10433         (string_constant): Likewise.
10434         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
10435         * ipa.c (process_references): Likewise.
10436         (symtab_remove_unreachable_nodes): Likewise.
10437         * ipa-inline-analysis.c (param_change_prob): Likewise.
10438         * gimple-fold.c (canonicalize_constructor_val): Likewise.
10439         (get_base_constructor): Likwise.
10440         * varpool.c (varpool_remove_node): Likewise.
10441         (varpool_remove_initializer): LIkewise.
10442         (dump_varpool_node): LIkwise.
10443         (const_value_known_p): Rewrite to ...
10444         (ctor_for_folding): ... this one.
10446 2013-06-19  Jakub Jelinek  <jakub@redhat.com>
10448         PR driver/57651
10449         * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
10450         PERSONALITY in $PATH derived prefixes.
10452 2013-06-19  Jeff Law  <law@redhat.com>
10454         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
10455         in comment.
10457         * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
10458         (simplify_bitwise_binary): Use it to simpify certain binary ops on
10459         booleans.
10461 2013-06-19  Sofiane Naci  <sofiane.naci@arm.com>
10463         * config/arm/vfp.md: Move VFP instruction classification documentation
10464         to ...
10465         * config/arm/arm.md: ... here.  Update instruction classification
10466         documentation.
10468 2013-06-19  Richard Earnshaw  <rearnsha@arm.com>
10470         arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
10471         (peepholes for eq(reg, not-0)): Ensure condition register is dead after
10472         pattern.  Use more efficient sequences on ARMv5 and Thumb2.
10474 2013-06-19  Steven Bosscher  <steven@gcc.gnu.org>
10476         PR target/57609
10477         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
10478         with NEXT_INSN.  Use tablejump_p to check for jump table data
10479         insns.
10481 2013-06-19  Paolo Carlini  <paolo.carlini@oracle.com>
10483         PR c++/56544
10484         * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
10485         that now in C++ the value is correct per the C++ standards.
10487 2013-06-19  Richard Biener  <rguenther@suse.de>
10489         * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
10490         for global context.
10492 2013-06-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10494         Revert:
10495         2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10497         PR target/57609
10498         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
10499         with next_active_insn.
10501 2013-06-18  Sriraman Tallam  <tmsriram@google.com>
10503         * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
10504         functions are inlined during failures to flag an error.
10505         * tree-inline.c (expand_call_inline): Allow the error to be flagged
10506         in early inline pass.
10508 2013-06-18  H.J. Lu  <hongjiu.lu@intel.com>
10510         * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
10511         in comments.
10513 2013-06-18  Julian Brown  <julian@codesourcery.com>
10515         * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
10516         Permit virtual register pre-reload if !strict.
10517         (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
10518         change.
10519         * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
10520         prototype.
10521         * config/arm/neon.md (movmisalign<mode>): Use
10522         neon_perm_struct_or_reg_operand instead of
10523         neon_struct_or_register_operand.
10524         (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
10525         neon_permissive_struct_operand instead of neon_struct_operand.
10526         * config/arm/constraints.md (Un, Um, Us): Adjust calls to
10527         neon_vector_mem_operand.
10528         * config/arm/predicates.md (neon_struct_operand): Adjust call to
10529         neon_vector_mem_operand.
10530         (neon_permissive_struct_operand): New.
10531         (neon_struct_or_register_operand): Rename to...
10532         (neon_perm_struct_or_reg_operand): This. Adjust call to
10533         neon_vector_mem_operand.
10535 2013-06-18  Richard Biener  <rguenther@suse.de>
10537         * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
10538         * lto-streamer.h: Include pointer-set.h.
10539         (struct lto_decl_slot): Remove.
10540         (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
10541         Remove next_index entry.
10542         (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
10543         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
10544         (lto_init_tree_ref_encoder): Adjust.
10545         (lto_destroy_tree_ref_encoder): Likewise.
10546         * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
10547         lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
10548         (lto_output_decl_index): Adjust.
10549         (lto_new_out_decl_state): Likewise.
10550         (lto_record_function_out_decl_state): Likewise.
10551         * lto-streamer-out.c (copy_function): Likewise.
10553 2013-06-18  Richard Biener  <rguenther@suse.de>
10555         * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
10556         * cgraphunit.c: Include cfgloop.h.
10557         (init_lowered_empty_function): Initialize the loop tree.
10558         (assemble_thunk): Insert new BBs into loops.
10560 2013-06-18  Richard Biener  <rguenther@suse.de>
10562         * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
10563         * tree-streamer.c (streamer_tree_cache_create): Make maintaining
10564         the map from cache entry to cache index optional.
10565         (streamer_tree_cache_replace_tree): Adjust accordingly.
10566         (streamer_tree_cache_append): Likewise.
10567         (streamer_tree_cache_delete): Likewise.
10568         * lto-streamer-in.c (lto_data_in_create): Do not maintain the
10569         streamer cache map from cache entry to cache index.
10570         * lto-streamer-out.c (create_output_block): Adjust.
10572 2013-06-18  Sofiane Naci  <sofiane.naci@arm.com>
10574         * config/arm/arm.md (attribute "insn"): Move multiplication and
10575         division attributes to...
10576         (attribute "type"): ... here.  Remove mult.
10577         (attribute "mul32"): New attribute.
10578         (attribute "mul64"): Add umaal.
10579         (*arm_mulsi3): Update attributes.
10580         (*arm_mulsi3_v6): Likewise.
10581         (*thumb_mulsi3): Likewise.
10582         (*thumb_mulsi3_v6): Likewise.
10583         (*mulsi3_compare0): Likewise.
10584         (*mulsi3_compare0_v6): Likewise.
10585         (*mulsi_compare0_scratch): Likewise.
10586         (*mulsi_compare0_scratch_v6): Likewise.
10587         (*mulsi3addsi): Likewise.
10588         (*mulsi3addsi_v6): Likewise.
10589         (*mulsi3addsi_compare0): Likewise.
10590         (*mulsi3addsi_compare0_v6): Likewise.
10591         (*mulsi3addsi_compare0_scratch): Likewise.
10592         (*mulsi3addsi_compare0_scratch_v6): Likewise.
10593         (*mulsi3subsi): Likewise.
10594         (*mulsidi3adddi): Likewise.
10595         (*mulsi3addsi_v6): Likewise.
10596         (*mulsidi3adddi_v6): Likewise.
10597         (*mulsidi3_nov6): Likewise.
10598         (*mulsidi3_v6): Likewise.
10599         (*umulsidi3_nov6): Likewise.
10600         (*umulsidi3_v6): Likewise.
10601         (*umulsidi3adddi): Likewise.
10602         (*umulsidi3adddi_v6): Likewise.
10603         (*smulsi3_highpart_nov6): Likewise.
10604         (*smulsi3_highpart_v6): Likewise.
10605         (*umulsi3_highpart_nov6): Likewise.
10606         (*umulsi3_highpart_v6): Likewise.
10607         (mulhisi3): Likewise.
10608         (*mulhisi3tb): Likewise.
10609         (*mulhisi3bt): Likewise.
10610         (*mulhisi3tt): Likewise.
10611         (maddhisi4): Likewise.
10612         (*maddhisi4tb): Likewise.
10613         (*maddhisi4tt): Likewise.
10614         (maddhidi4): Likewise.
10615         (*maddhidi4tb): Likewise.
10616         (*maddhidi4tt): Likewise.
10617         (divsi3): Likewise.
10618         (udivsi3): Likewise.
10619         * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
10620         (thumb2_mulsi_short_compare0): Likewise.
10621         (thumb2_mulsi_short_compare0_scratch): Likewise.
10622         * config/arm/arm1020e.md (1020mult1): Update attribute change.
10623         (1020mult2): Likewise.
10624         (1020mult3): Likewise.
10625         (1020mult4): Likewise.
10626         (1020mult5): Likewise.
10627         (1020mult6): Likewise.
10628         * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
10629         change.
10630         (cortex_a15_mult64): Likewise.
10631         (cortex_a15_sdiv): Likewise.
10632         (cortex_a15_udiv): Likewise.
10633         * config/arm/arm1026ejs.md (mult1): Update attribute change.
10634         (mult2): Likewise.
10635         (mult3): Likewise.
10636         (mult4): Likewise.
10637         (mult5): Likewise.
10638         (mult6): Likewise.
10639         * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
10640         (pj4_ir_div): Likewise.
10641         * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
10642         (11_mult2): Likewise.
10643         (11_mult3): Likewise.
10644         (11_mult4): Likewise.
10645         (11_mult5): Likewise.
10646         (11_mult6): Likewise.
10647         (11_mult7): Likewise.
10648         * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
10649         (cortex_a8_mla): Likewise.
10650         (cortex_a8_mull): Likewise.
10651         (cortex_a8_smulwy): Likewise.
10652         (cortex_a8_smlald): Likewise.
10653         * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
10654         * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
10655         (cortex_r4_mul_3): Likewise.
10656         (cortex_r4_mla_4): Likewise.
10657         (cortex_r4_mla_3): Likewise.
10658         (cortex_r4_smlald): Likewise.
10659         (cortex_r4_mull): Likewise.
10660         (cortex_r4_sdiv): Likewise.
10661         (cortex_r4_udiv): Likewise.
10662         * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
10663         (cortex_a7_idiv): Likewise.
10664         * config/arm/arm926ejs.md (9_mult1): Update attribute change.
10665         (9_mult2): Likewise.
10666         (9_mult3): Likewise.
10667         (9_mult4): Likewise.
10668         (9_mult5): Likewise.
10669         (9_mult6): Likewise.
10670         * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
10671         (cortex_a53_sdiv): Likewise.
10672         (cortex_a53_udiv): Likewise.
10673         * config/arm/fa726te.md (726te_mult_op): Update attribute change.
10674         * config/arm/fmp626.md (mp626_mult1): Update attribute change.
10675         (mp626_mult2): Likewise.
10676         (mp626_mult3): Likewise.
10677         (mp626_mult4): Likewise.
10678         * config/arm/fa526.md (526_mult1): Update attribute change.
10679         (526_mult2): Likewise.
10680         * config/arm/arm-generic.md (mult): Update attribute change.
10681         (mult_ldsched_strongarm): Likewise.
10682         (mult_ldsched): Likewise.
10683         (multi_cycle): Likewise.
10684         * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
10685         * config/arm/fa606te.md (606te_mult1): Update attribute change.
10686         (606te_mult2): Likewise.
10687         (606te_mult3): Likewise.
10688         (606te_mult4): Likewise.
10689         * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
10690         (cortex_a9_mac16): Likewise.
10691         (cortex_a9_multiply): Likewise.
10692         (cortex_a9_mac): Likewise.
10693         (cortex_a9_multiply_long): Likewise.
10694         * config/arm/fa626te.md (626te_mult1): Update attribute change.
10695         (626te_mult2): Likewise.
10696         (626te_mult3): Likewise.
10697         (626te_mult4): Likewise.
10699 2013-06-18  Richard Biener  <rguenther@suse.de>
10701         PR lto/57334
10702         * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
10704 2013-06-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10706         PR target/57609
10707         * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
10708         with next_active_insn.
10710 2013-06-18  Alan Modra  <amodra@gmail.com>
10712         * config/rs6000/rs6000.h (enum data_align): New.
10713         (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
10714         (DATA_ABI_ALIGNMENT): Define.
10715         (CONSTANT_ALIGNMENT): Correct comment.
10716         * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
10717         * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
10719 2013-06-17  David Malcolm  <dmalcolm@redhat.com>
10721         * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
10722         ATTRIBUTE_UNUSED marking.
10724 2013-06-17  Sofiane Naci  <sofiane.naci@arm.com>
10726         * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
10727         alternative and update.
10728         (aarch64_dup_lanedi): Delete.
10729         * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
10730         * config/aarch64/aarch64-simd-builtins.def: Update.
10732 2013-06-17  Richard Biener  <rguenther@suse.de>
10734         * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
10735         (lto_input_scc): Declare.
10736         (lto_input_tree_1): Likewise.
10737         (struct lto_stats_d): Add num_tree_bodies_output and
10738         num_pickle_refs_output.
10739         * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
10740         (lto_read_tree_1): Split out from ...
10741         (lto_read_tree): ... this.
10742         (lto_input_scc): New function.
10743         (lto_input_tree_1): Split out from ...
10744         (lto_input_tree): ... this.  Handle LTO_tree_scc.
10745         (lto_data_in_create): Create the streamer cache without hashes.
10746         * lto-streamer-out.c (create_output_block): Create the streamer
10747         cache with hashes when not doing WPA.
10748         (lto_write_tree_1): Split out from ...
10749         (lto_write_tree): ... this.
10750         (get_symbol_initial_value): New function.
10751         (lto_output_tree_1): Split out from ...
10752         (lto_output_tree): ... this.  Write trees as series of SCCs
10753         using a DFS walk via DFS_write_tree.
10754         (struct sccs, struct scc_entry): New types.
10755         (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
10756         (DFS_write_tree_body): New function.
10757         (DFS_write_tree): Likewise.
10758         (hash_tree): Likewise.
10759         (scc_entry_compare): Likewise.
10760         (hash_scc): Likewise.
10761         (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
10762         * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
10763         TREE_CHAIN as regular reference.
10764         (streamer_read_integer_cst): Remove.
10765         (streamer_get_pickled_tree): Adjust.
10766         * tree-streamer-out.c (streamer_write_chain): Disable streaming
10767         of DECL_EXTERNALs in BLOCK_VARS for now.
10768         (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
10769         reference.
10770         * tree-streamer.c (streamer_tree_cache_add_to_node_array):
10771         Add hash value argument and record that if hashes are recorded
10772         in the cache.
10773         (streamer_tree_cache_insert_1): Adjust.
10774         (streamer_tree_cache_insert): Likewise.
10775         (streamer_tree_cache_insert_at): Rename to ...
10776         (streamer_tree_cache_replace_tree): ... this and adjust.
10777         (streamer_tree_cache_append): Adjust.
10778         (record_common_node): Likewise.
10779         (streamer_tree_cache_create): Add argument whether to
10780         record hash values together with trees.
10781         (streamer_tree_cache_delete): Adjust.
10782         * tree-streamer.h (struct streamer_tree_cache_d): Add
10783         vector of hashes.
10784         (streamer_read_integer_cst): Remove.
10785         (streamer_tree_cache_insert): Adjust.
10786         (streamer_tree_cache_append): Likewise.
10787         (streamer_tree_cache_insert_at): Rename to ...
10788         (streamer_tree_cache_replace_tree): ... this and adjust.
10789         (streamer_tree_cache_create): Add argument whether to record hashes.
10790         (streamer_tree_cache_get): Rename to ...
10791         (streamer_tree_cache_get_tree): ... this.
10792         (streamer_tree_cache_get_hash): New function.
10793         * tree.c (cache_integer_cst): New function.
10794         * tree.h (cache_integer_cst): Declare.
10795         (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
10796         * lto-symtab.c (lto_varpool_replace_node): Only release
10797         DECL_INITIAL of non-prevailing decls.
10798         * varpool.c (varpool_remove_initializer): Do not release
10799         DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
10801 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
10803         * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
10804         (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
10805         * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
10806         (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
10807         (mul<mode>3_mul3): Handle TARGET_MIPS5900.
10808         (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
10809         (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
10810         (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
10811         instead of TARGET_64BIT.
10812         (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
10813         Require ISA_HAS_<D>DIV.
10815 2013-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
10817         * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
10818         (mips*-*-linux*): Move default with_llsc setting to where other
10819         defaults are set.
10820         (mips*-*-vxworks*): Move with_arch default from with_cpu block to
10821         with_arch block.
10822         (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
10823         Likewise.  Remove default with_tune setting.  Move default float
10824         setting to its own block.  Handle with_llsc in the same block as above.
10826 2013-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
10828         PR rtl-optimization/57425
10829         PR rtl-optimization/57569
10830         * alias.c (write_dependence_p): Add new parameters mem_mode,
10831         canon_mem_addr and mem_canonicalized.  Change type of writep to bool.
10832         Changed all callers.
10833         (canon_anti_dependence): New function.
10834         * cse.c (check_dependence): Use canon_anti_dependence.
10835         * cselib.c (cselib_invalidate_mem): Likewise.
10836         * rtl.h (canon_anti_dependence): Declare.
10838 2013-06-16  Jürgen Urban  <JuergenUrban@gmx.de>
10840         * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
10841         * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
10842         ".set mips3" for 64-bit targets.
10844 2013-06-15  Dehao Chen  <dehao@google.com>
10846         * tree-flow.h (gimple_check_call_matching_types): Add new argument.
10847         * gimple-low.c (gimple_check_call_matching_types): Likewise.
10848         (gimple_check_call_args): Likewise.
10849         * value-prof.c (check_ic_target): Likewise.
10850         * ipa-inline.c (early_inliner): Likewise.
10851         * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
10852         * cgraph.c (cgraph_create_edge_1): Likewise.
10853         (cgraph_make_edge_direct): Likewise.
10855 2013-06-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
10857         PR target/57615
10858         * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
10859         rs6000_output_move_128bit to handle emitting quad memory
10860         operations.  Set attribute length to 8 bytes.
10862 2013-06-14  Vidya Praveen  <vidyapraveen@arm.com>
10864         * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
10865         New pattern.
10866         (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
10867         (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
10868         (aarch64_<su>mlsl<mode>): Likewise.
10870 2013-06-14  Mike Stump  <mikestump@comcast.net>
10872         * Makefile.in (TARGET_H): Add insn-codes.h.
10874 2013-06-14  Alan Modra  <amodra@gmail.com>
10876         PR middle-end/57134
10877         PR middle-end/57586
10878         * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
10879         EXPAND_MEMORY and EXPAND_WRITE to recursive call.  Don't use
10880         bitfield expansion when EXPAND_MEMORY.
10881         (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
10883 2013-06-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
10885         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
10886         test for clearing quad memory on 32-bit later.
10888 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
10890         * fold-const.c (negate_expr_p): Handle VECTOR_CST.
10891         (fold_negate_expr): Likewise.
10892         (fold_real_zero_addition_p): Handle vectors.
10893         (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
10895 2013-06-14  Alan Modra  <amodra@gmail.com>
10897         * varasm.c (force_const_mem): Revert 2013-06-07 change.
10899 2013-06-13  Jan Hubicka  <jh@suse.cz>
10901         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
10902         Local comdats are not externally visible.
10903         * symtab.c (dump_symtab_base): Dump externally visible.
10904         (verify_symtab_base): Verify back links in the symtab hash.
10906 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
10908         * fold-const.c (operand_equal_p): Consider NOP_EXPR and
10909         CONVERT_EXPR as equal nodes.
10911 2013-06-13  Bin Cheng  <bin.cheng@arm.com>
10913         * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
10915 2013-06-13  Marc Glisse  <marc.glisse@inria.fr>
10917         * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
10918         Generalize to complex and vector.
10919         * tree.c (build_all_ones_cst): New function.
10920         * tree.h (build_all_ones_cst): Declare it.
10922 2013-06-13  Alan Modra  <amodra@gmail.com>
10924         * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
10925         * config/rs6000/rs6000.md (signbittf2): New insn.
10926         (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
10927         (abstf2_internal, cmptf_internal2): Likewise.
10928         * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
10930 2013-06-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
10931             Pat Haugen  <pthaugen@us.ibm.com>
10932             Peter Bergner  <bergner@vnet.ibm.com>
10934         * config/rs6000/rs6000.c (emit_load_locked): Add support for
10935         power8 byte, half-word, and quad-word atomic instructions.
10936         (emit_store_conditional): Likewise.
10937         (rs6000_expand_atomic_compare_and_swap): Likewise.
10938         (rs6000_expand_atomic_op): Likewise.
10940         * config/rs6000/sync.md (larx): Add new modes for power8.
10941         (stcx): Likewise.
10942         (AINT): New mode iterator to include TImode as well as normal
10943         integer modes on power8.
10944         (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
10945         that VSX registers are not considered.  Use AINT mode iterator
10946         instead of INT1 to allow inclusion of quad word atomic operations
10947         on power8.
10948         (load_locked<mode>): Likewise.
10949         (store_conditional<mode>): Likewise.
10950         (atomic_compare_and_swap<mode>): Likewise.
10951         (atomic_exchange<mode>): Likewise.
10952         (atomic_nand<mode>): Likewise.
10953         (atomic_fetch_<fetchop_name><mode>): Likewise.
10954         (atomic_nand_fetch<mode>): Likewise.
10955         (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
10956         each type.
10957         (ATOMIC): On power8, add QImode, HImode modes.
10958         (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
10959         modes that promote to SImode.
10960         (load_lockedti): Convert TImode arguments to PTImode, so that we
10961         get a guaranteed even/odd register pair.
10962         (load_lockedpti): Likewise.
10963         (store_conditionalti): Likewise.
10964         (store_conditionalpti): Likewise.
10966         * config/rs6000/rs6000.md (QHI): New mode iterator for power8
10967         atomic load/store instructions.
10968         (HSI): Likewise.
10970 2013-06-12  Richard Sandiford  <rdsandiford@googlemail.com>
10972         * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
10973         loads.
10974         (insn_count): New attribute, with most cases extracted from...
10975         (length): ...here.  Redefine most cases in terms of insn_count.
10976         (single_insn): Delete.
10977         (can_delay): Use insn_count to check for single instructions.
10978         (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
10979         (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
10980         (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
10981         (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
10982         (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
10983         (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
10984         (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
10985         (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
10986         (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
10987         (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
10988         rather than "length".
10989         (tls_get_tp_<mode>): Likewise.  Remove redundant "no_delay" attribute.
10990         * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
10991         Use "insn_count" rather than "length".
10992         * config/mips/mips-dsp.md
10993         (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
10994         (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
10995         length attributes.
10997 2013-06-12  Marc Glisse  <marc.glisse@inria.fr>
10999         PR tree-optimization/57361
11000         * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
11002 2013-06-12  Sofiane Naci  <sofiane.naci@arm.com>
11004         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
11005         to split.
11006         (aarch64_simd_combine<mode>): New instruction expansion.
11007         * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
11008         function prototype.
11009         * config/aarch64/aarch64.c (aarch64_split_combine): New function.
11010         * config/aarch64/iterators.md (Vdbl): Add entry for DF.
11012 2013-06-12  Jan Hubicka  <jh@suse.cz>
11014         * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
11015         decl has when in streaming stage.
11016         * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
11017         * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
11019 2013-06-12  Roland Stigge  <stigge@antcom.de>
11021         PR target/57578
11022         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
11024 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
11026         PR tree-optimization/57537
11027         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
11028         vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
11030 2013-06-12  Richard Biener  <rguenther@suse.de>
11032         * data-streamer.h (streamer_write_char_stream): CSE
11033         obs->current_pointer.
11034         * data-streamer-out.c (streamer_write_uhwi_stream): Inline
11035         streamer_write_char_stream manually and optimize the resulting loop.
11036         (streamer_write_hwi_stream): Likewise.
11038 2013-06-12  Jan Hubicka  <jh@suse.cz>
11040         * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
11041         * cgraph.h (varpool_create_empty_node): Declare.
11042         * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
11043         duplicated nodes.
11044         * symtab.c (symtab_unregister_node): Be lax about missin entries
11045         in node hash.
11046         (symtab_get_node): Update comment.
11047         * varpool.c (varpool_create_empty_node): Break out from ...
11048         (varpool_node_for_decl): ... here.
11049         * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
11051 2013-06-12  Eric Botcazou  <ebotcazou@adacore.com>
11053         * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
11054         <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
11055         part.  Use straight-line flow at the end.
11056         <COMPONENT_REF>: Remove superfluous else.
11057         <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
11059 2013-06-12  Jakub Jelinek  <jakub@redhat.com>
11061         PR target/56564
11062         * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
11063         target hook even for !TREE_PUBLIC decls.  If no resolution info
11064         is available, return false for common and external decls.
11066 2013-06-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
11068         * config/rl78/constraints.md (U): New constraint.
11069         * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
11070         valloc attribute.
11072 2013-06-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
11074         PR target/57589
11075         * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
11076         to allow returning address to AT_PLATFORM name.
11078 2013-06-11  Jan Hubicka  <jh@suse.cz>
11080         * cgraph.c (cgraph_create_function_alias): Set weakref flag.
11081         * cgraph.h (symtab_node_base): Add weakref flag.
11082         * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
11083         (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
11084         (output_weakrefs): Use weakref flag.
11085         * fold-const.c (simple_operand_p): Handle WEAK.
11086         * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
11087         * ipa.c (varpool_externally_visible_p): Drop weakref.
11088         (function_and_variable_visibility): Update comment; fix weakref
11089         sanity checks; do not clear DECL_WEAK on them.
11090         * lto-cgraph.c (lto_output_node): update.
11091         (lto_output_varpool_node): Update.
11092         (input_overwrite_node): Update.
11093         (input_node): Update.
11094         (input_varpool_node): Update.
11095         * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
11096         (lto_symtab_merge_symbols): Add sanity check.
11097         (lto_symtab_prevailing_decl): Do not special case weakrefs.
11098         * passes.c (rest_of_decl_compilation): Set static flag, too.
11099         * symtab.c (dump_symtab_base): Dump weakref.
11100         (verify_symtab_base): Sanity check weakrefs.
11101         (symtab_make_decl_local): Remove duplicated code.
11102         (symtab_alias_ultimate_target): Simplify.
11103         * varpool.c (varpool_create_variable_alias): Set weakref flag.
11105 2013-06-11  Tom de Vries  <tom@codesourcery.com>
11107         * genautomata.c (gen_regexp_sequence): Handle els_num == -1.  Handle
11108         sequence_vect == NULL.
11110 2013-06-11  DJ Delorie  <dj@redhat.com>
11112         * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
11113         (rl78_unwind_word_mode): New.
11115 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
11117         * final.c (debug_prefix_maps): Make static.
11119 2013-06-11  David Malcolm  <dmalcolm@redhat.com>
11121         * function.c (initial_trampoline): Remove stray copy.
11123 2013-06-11  Sofiane Naci  <sofiane.naci@arm.com>
11125         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
11127 2013-06-11  Martin Jambor  <mjambor@suse.cz>
11129         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
11130         within bounds at the beginning of the function.
11132 2013-06-11  Alan Modra  <amodra@gmail.com>
11134         * varasm.c (get_section): Don't die on !DECL_P decl.  Tidy error
11135         reporting.
11136         (get_named_section): Don't NULL !DECL_P decl.
11138 2013-06-11  Igor Zamyatin  <igor.zamyatin@intel.com>
11140         * doc/invoke.texi (core-avx2): Document.
11141         (slm): Likewise.
11142         (atom): Updated with MOVBE.
11144 2013-06-11  Richard Biener  <rguenther@suse.de>
11146         * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
11148 2013-06-11  Anton Blanchard  <anton@samba.org>
11150         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
11151         correct shift value in little-endian mode.
11153 2013-06-11  Jakub Jelinek  <jakub@redhat.com>
11155         PR target/56564
11156         * varasm.c (get_variable_align): Move #endif to the right place.
11158 2013-06-10  Cary Coutant  <ccoutant@google.com>
11160         * dwarf2out.c (hash_external_ref): Use die_symbol or signature
11161         for hash so that hash table traversal order is deterministic.
11163 2013-06-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
11164             Pat Haugen  <pthaugen@us.ibm.com>
11165             Peter Bergner  <bergner@vnet.ibm.com>
11167         * config/rs6000/vector.md (GPR move splitter): Do not split moves
11168         of vectors in GPRS if they are direct moves or quad word load or
11169         store moves.
11171         * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
11172         declaration.
11173         (direct_move_p): Likewise.
11174         (quad_load_store_p): Likewise.
11176         * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
11177         classes into bins based on the physical register type.
11178         (reg_class_to_reg_type): Likewise.
11179         (IS_STD_REG_TYPE): Likewise.
11180         (IS_FP_VECT_REG_TYPE): Likewise.
11181         (reload_fpr_gpr): Arrays to determine what insn to use if we can
11182         use direct move instructions.
11183         (reload_gpr_vsx): Likewise.
11184         (reload_vsx_gpr): Likewise.
11185         (rs6000_init_hard_regno_mode_ok): Precalculate the register type
11186         information that is a simplification of register classes.  Also
11187         precalculate direct move reload helpers.
11188         (direct_move_p): New function to return true if the operation can
11189         be done as a direct move instruciton.
11190         (quad_load_store_p): New function to return true if the operation
11191         is a quad memory operation.
11192         (rs6000_legitimize_address): If quad memory, only allow register
11193         indirect for TImode addresses.
11194         (rs6000_legitimate_address_p): Likewise.
11195         (enum reload_reg_type): Delete, replace with rs6000_reg_type.
11196         (rs6000_reload_register_type): Likewise.
11197         (register_to_reg_type): Return register type.
11198         (rs6000_secondary_reload_simple_move): New helper function for
11199         secondary reload and secondary memory needed to identify anything
11200         that is a simple move, and does not need reloading.
11201         (rs6000_secondary_reload_direct_move): New helper function for
11202         secondary reload to identify cases that can be done with several
11203         instructions via the direct move instructions.
11204         (rs6000_secondary_reload_move): New helper function for secondary
11205         reload to identify moves between register types that can be done.
11206         (rs6000_secondary_reload): Add support for quad memory operations
11207         and for direct move.
11208         (rs6000_secondary_memory_needed): Likewise.
11209         (rs6000_debug_secondary_memory_needed): Change argument names.
11210         (rs6000_output_move_128bit): New function to return the move to
11211         use for 128-bit moves, including knowing about the various
11212         limitations of quad memory operations.
11214         * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
11215         memory operations.  call rs6000_output_move_128bit for the actual
11216         instruciton(s) to generate.
11217         (vsx_movti_64bit): Likewise.
11219         * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
11220         (UNSPEC_P8V_MTVSRWZ): Likewise.
11221         (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
11222         (UNSPEC_P8V_MTVSRD): Likewise.
11223         (UNSPEC_P8V_XXPERMDI): Likewise.
11224         (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
11225         (UNSPEC_FUSION_GPR): Likewise.
11226         (FMOVE128_GPR): New iterator for direct move.
11227         (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
11228         (f32_sv): Likewise.
11229         (f32_dm): Likewise.
11230         (zero_extend<mode>di2_internal1): Add support for power8 32-bit
11231         loads and direct move instructions.
11232         (zero_extendsidi2_lfiwzx): Likewise.
11233         (extendsidi2_lfiwax): Likewise.
11234         (extendsidi2_nocell): Likewise.
11235         (floatsi<mode>2_lfiwax): Likewise.
11236         (lfiwax): Likewise.
11237         (floatunssi<mode>2_lfiwzx): Likewise.
11238         (lfiwzx): Likewise.
11239         (fix_trunc<mode>_stfiwx): Likewise.
11240         (fixuns_trunc<mode>_stfiwx): Likewise.
11241         (mov<mode>_hardfloat, 32-bit floating point): Likewise.
11242         (mov<move>_hardfloat64, 64-bit floating point): Likewise.
11243         (parity<mode>2_cmpb): Set length/type attr.
11244         (unnamed shift right patterns, mov<mode>_internal2): Change type attr
11245         for 'mr.' to fast_compare.
11246         (bpermd_<mode>): Change type attr to popcnt.
11247         (p8_fmrgow_<mode>): New insns for power8 direct move support.
11248         (p8_mtvsrwz_1): Likewise.
11249         (p8_mtvsrwz_2): Likewise.
11250         (reload_fpr_from_gpr<mode>): Likewise.
11251         (p8_mtvsrd_1): Likewise.
11252         (p8_mtvsrd_2): Likewise.
11253         (p8_xxpermdi_<mode>): Likewise.
11254         (reload_vsx_from_gpr<mode>): Likewise.
11255         (reload_vsx_from_gprsf): Likewise.
11256         (p8_mfvsrd_3_<mode>): LIkewise.
11257         (reload_gpr_from_vsx<mode>): Likewise.
11258         (reload_gpr_from_vsxsf): Likewise.
11259         (p8_mfvsrd_4_disf): Likewise.
11260         (multi-word GPR splits): Do not split direct moves or quad memory
11261         operations.
11263 2013-06-10  David Malcolm  <dmalcolm@redhat.com>
11265         * tree-into-ssa.c (interesting_blocks): Make static.
11267 2013-06-10  Jakub Jelinek  <jakub@redhat.com>
11269         PR target/56564
11270         * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
11271         CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
11272         Use DATA_ABI_ALIGNMENT for that case instead if defined.
11273         (get_variable_align): New function.
11274         (get_variable_section, emit_bss, emit_common,
11275         assemble_variable_contents, place_block_symbol): Use
11276         get_variable_align instead of DECL_ALIGN.
11277         (assemble_noswitch_variable): Add align argument, use it
11278         instead of DECL_ALIGN.
11279         (assemble_variable): Adjust caller.  Use get_variable_align
11280         instead of DECL_ALIGN.
11281         * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
11282         caller.
11283         (DATA_ABI_ALIGNMENT): Define.
11284         * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
11285         * config/i386/i386.c (x86_data_alignment): Add opt argument.  If
11286         opt is false, only return the psABI mandated alignment increase.
11287         * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
11288         (DATA_ABI_ALIGNMENT): ... this.
11289         * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
11290         (DATA_ABI_ALIGNMENT): ... this.
11291         * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
11292         * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
11293         (DATA_ABI_ALIGNMENT): ... this.
11294         * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
11295         * doc/tm.texi: Regenerated.
11297 2013-06-10  Uros Bizjak  <ubizjak@gmail.com>
11299         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
11300         cmp_code to construct REG_EQUAL note.
11302 2013-06-09  Jakub Jelinek  <jakub@redhat.com>
11304         PR target/57568
11305         * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
11306         that operands[2] doesn't overlap with operands[0].
11308 2013-06-09  David Edelsohn  <dje.gcc@gmail.com>
11309             Jan Hubicka  <jh@suse.cz>
11311         * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
11312         hack to mark symbols as used.
11314 2013-06-08  Vladimir Makarov  <vmakarov@redhat.com>
11316         PR rtl-optimization/57559
11317         * lra-constraints.c (process_alt_operands): Don't discourage
11318         memory with known offset for offsetable memory constraint.
11319         * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
11321 2013-06-08  Eric Botcazou  <ebotcazou@adacore.com>
11323         * varasm.c (struct oc_local_state): Reorder fields.
11324         (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
11325         and adjust accordingly.
11326         (output_constructor): Reorder initialization code and adjust call to
11327         output_constructor_bitfield.
11329 2013-06-07  Jan Hubicka  <jh@suse.cz>
11331         * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
11333 2013-06-07  David Malcolm  <dmalcolm@redhat.com>
11335         * tree-object-size.c (unknown): Make const.
11337 2013-06-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11339         * config/s390/s390.md (cpu_facility): Add cpu_zarch.
11340         ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
11341         for last alternative in the cpu_facility attribute.
11343 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11345         PR target/56315
11346         * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
11347         (xordi3): Change operand 2 constraint to arm_xordi_operand.
11348         * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
11349         * config/arm/constraints.md (Dg): New constraint.
11350         * config/arm/neon.md (xordi3_neon): Remove.
11351         (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
11352         * config/arm/predicates.md (arm_xordi_operand): New predicate.
11354 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11356         * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
11357         Clean up alternatives.
11359 2013-06-07  Alan Modra  <amodra@gmail.com>
11361         * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
11362         va_list_gpr_size.
11364 2013-06-07  Alan Modra  <amodra@gmail.com>
11366         * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
11368 2013-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11370         * config/arm/constraints.md (Df): New constraint.
11371         * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
11372         Correct length attribute for last two alternatives.
11374 2013-06-07  Alan Modra  <amodra@gmail.com>
11376         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11377         override user -mfp-in-toc.
11378         (offsettable_ok_by_alignment): Consider just the current access
11379         rather than the whole object, unless BLKmode.  Handle
11380         CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
11381         (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
11382         for -mcmodel=medium.
11383         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
11384         override user -mfp-in-toc or -msum-in-toc.  Default to
11385         -mno-fp-in-toc for -mcmodel=medium.
11387 2013-06-06  DJ Delorie  <dj@redhat.com>
11389         * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
11390         TARGET_VALID_POINTER_MODE.
11392 2013-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
11393             Pat Haugen  <pthaugen@us.ibm.com>
11394             Peter Bergner  <bergner@vnet.ibm.com>
11396         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11397         Document new power8 builtins.
11399         * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
11400         condition code register, to allow 128-bit logical operations to be
11401         done in the VSX or GPR registers.
11402         (nor<mode>3): Use the canonical form for nor.
11403         (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
11404         vclz*, and vpopcnt* vector instructions.
11405         (nand<mode>3): Likewise.
11406         (orc<mode>3): Likewise.
11407         (clz<mode>2): LIkewise.
11408         (popcount<mode>2): Likewise.
11410         * config/rs6000/predicates.md (int_reg_operand): Rework tests so
11411         that only the GPRs are recognized.
11413         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11414         support for new power8 builtins.
11416         * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
11417         builtin functions.
11418         (xscvdpspn): Likewise.
11419         (vclz): Likewise.
11420         (vclzb): Likewise.
11421         (vclzh): Likewise.
11422         (vclzw): Likewise.
11423         (vclzd): Likewise.
11424         (vpopcnt): Likewise.
11425         (vpopcntb): Likewise.
11426         (vpopcnth): Likewise.
11427         (vpopcntw): Likewise.
11428         (vpopcntd): Likewise.
11429         (vgbbd): Likewise.
11430         (vmrgew): Likewise.
11431         (vmrgow): Likewise.
11432         (eqv): Likewise.
11433         (eqv_v16qi3): Likewise.
11434         (eqv_v8hi3): Likewise.
11435         (eqv_v4si3): Likewise.
11436         (eqv_v2di3): Likewise.
11437         (eqv_v4sf3): Likewise.
11438         (eqv_v2df3): Likewise.
11439         (nand): Likewise.
11440         (nand_v16qi3): Likewise.
11441         (nand_v8hi3): Likewise.
11442         (nand_v4si3): Likewise.
11443         (nand_v2di3): Likewise.
11444         (nand_v4sf3): Likewise.
11445         (nand_v2df3): Likewise.
11446         (orc): Likewise.
11447         (orc_v16qi3): Likewise.
11448         (orc_v8hi3): Likewise.
11449         (orc_v4si3): Likewise.
11450         (orc_v2di3): Likewise.
11451         (orc_v4sf3): Likewise.
11452         (orc_v2df3): Likewise.
11454         * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
11455         allow power8 quad mode in 64-bit.
11456         (rs6000_builtin_vectorized_function): Add support to vectorize
11457         ISA 2.07 count leading zeros, population count builtins.
11458         (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
11459         V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
11460         (builtin_function_type): Add vgbbd builtin function which takes an
11461         unsigned argument.
11462         (altivec_expand_vec_perm_const): Add support for new power8 merge
11463         instructions.
11465         * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
11466         that does not include TImdoe for use with 32-bit.
11467         (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
11468         instructions.
11469         (UNSPEC_VSX_CVDPSPN): Likewise.
11470         (vsx_xscvdpspn): Likewise.
11471         (vsx_xscvspdpn): Likewise.
11472         (vsx_xscvdpspn_scalar): Likewise.
11473         (vsx_xscvspdpn_directmove): Likewise.
11474         (vsx_and<mode>3): Split logical operations into 32-bit and
11475         64-bit. Add support to do logical operations on TImode as well as
11476         VSX vector types.  Allow logical operations to be done in either
11477         VSX registers or in general purpose registers in 64-bit mode.  Add
11478         splitters if GPRs were used. For AND, add clobber of CCmode to
11479         allow use of ANDI on GPRs.  Rewrite nor to use the canonical RTL
11480         encoding.
11481         (vsx_and<mode>3_32bit): Likewise.
11482         (vsx_and<mode>3_64bit): Likewise.
11483         (vsx_ior<mode>3): Likewise.
11484         (vsx_ior<mode>3_32bit): Likewise.
11485         (vsx_ior<mode>3_64bit): Likewise.
11486         (vsx_xor<mode>3): Likewise.
11487         (vsx_xor<mode>3_32bit): Likewise.
11488         (vsx_xor<mode>3_64bit): Likewise.
11489         (vsx_one_cmpl<mode>2): Likewise.
11490         (vsx_one_cmpl<mode>2_32bit): Likewise.
11491         (vsx_one_cmpl<mode>2_64bit): Likewise.
11492         (vsx_nor<mode>3): Likewise.
11493         (vsx_nor<mode>3_32bit): Likewise.
11494         (vsx_nor<mode>3_64bit): Likewise.
11495         (vsx_andc<mode>3): Likewise.
11496         (vsx_andc<mode>3_32bit): Likewise.
11497         (vsx_andc<mode>3_64bit): Likewise.
11498         (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
11499         and xxlorc instructions.
11500         (vsx_eqv<mode>3_64bit): Likewise.
11501         (vsx_nand<mode>3_32bit): Likewise.
11502         (vsx_nand<mode>3_64bit): Likewise.
11503         (vsx_orc<mode>3_32bit): Likewise.
11504         (vsx_orc<mode>3_64bit): Likewise.
11506         * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
11508         * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
11509         instruction.
11510         (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
11511         (p8_vmrgow): Likewise.
11512         (altivec_and<mode>3): Add clobber of CCmode to allow AND using
11513         GPRs to be split under VSX.
11514         (p8v_clz<mode>2): Add power8 count leading zero support.
11515         (p8v_popcount<mode>2): Add power8 population count support.
11516         (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
11517         support.
11519         * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
11520         instruction.
11522         * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
11523         builtin functions.
11524         (vec_nand): Likewise.
11525         (vec_vclz): Likewise.
11526         (vec_vclzb): Likewise.
11527         (vec_vclzd): Likewise.
11528         (vec_vclzh): Likewise.
11529         (vec_vclzw): Likewise.
11530         (vec_vgbbd): Likewise.
11531         (vec_vmrgew): Likewise.
11532         (vec_vmrgow): Likewise.
11533         (vec_vpopcnt): Likewise.
11534         (vec_vpopcntb): Likewise.
11535         (vec_vpopcntd): Likewise.
11536         (vec_vpopcnth): Likewise.
11537         (vec_vpopcntw): Likewise.
11539 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
11541         PR rtl-optimization/57468
11542         * config/i386/i386.c (inline_secondary_memory_needed): Ignore
11543         spilled pseudos.
11545 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
11547         PR rtl-optimization/57459
11548         * lra-constraints.c (update_ebb_live_info): Fix typo for operand
11549         type when setting live regs.
11551 2013-06-06  Vladimir Makarov  <vmakarov@redhat.com>
11553         * config/s390/s390.opt (mlra): New option.
11554         * config/s390/s390.c (s390_decompose_address): Check displacement
11555         for all registers for LRA.
11556         (s390_secondary_reload): Don't used secondary reloads for LRA.
11557         (s390_lra_p): New function.
11558         (TARGET_LRA_P): Define.
11559         * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
11560         of attribute cpu_facility to zarch for the last alternative.
11561         (*cmpmem_short): Ditto.
11563 2013-06-06  Eric Botcazou  <ebotcazou@adacore.com>
11565         * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
11566         (arm_compute_static_chain_stack_bytes): Use it.  Tidy up.
11567         (arm_expand_prologue): Likewise.
11569 2013-06-06  Teresa Johnson  <tejohnson@google.com>
11571         PR c++/53743
11572         * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
11573         as this is now done by redirect_edge_and_branch_force.
11574         * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
11575         barriers, and fix interaction with splitting.
11576         * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
11577         * cfgcleanup.c (try_forward_edges): Fix early return value to properly
11578         reflect changes made in the routine.
11579         * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
11580         (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
11581         since this is called in cfglayout mode, and replace partition fixup
11582         with assert as that is now done by force_nonfallthru_and_redirect.
11583         (add_reg_crossing_jump_notes): Handle the fact that some jumps may
11584         already be marked with region crossing note.
11585         (insert_section_boundary_note): Make non-static, gate on flag
11586         has_bb_partition, rewrite to also check for multiple partitions.
11587         (rest_of_handle_reorder_blocks): Remove call to
11588         insert_section_boundary_note, now done later during free_cfg.
11589         (duplicate_computed_gotos): Don't duplicate partition crossing edge.
11590         * bb-reorder.h (insert_section_boundary_note): Declare.
11591         * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
11592         * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
11593         invoke insert_section_boundary_note.
11594         (try_redirect_by_replacing_jump): Remove unnecessary
11595         check for region crossing note.
11596         (fixup_partition_crossing): New function.
11597         (rtl_redirect_edge_and_branch): Fixup partition boundaries.
11598         (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
11599         in non-cfglayout mode.
11600         (force_nonfallthru_and_redirect): Fixup partition boundaries,
11601         remove old code that tried to do this. Emit barrier correctly
11602         when we are in cfglayout mode.
11603         (last_bb_in_partition): New function.
11604         (rtl_split_edge): Correctly fixup partition boundaries.
11605         (commit_one_edge_insertion): Remove old code that tried to
11606         fixup region crossing edge since this is now handled in
11607         split_block, and set up insertion point correctly since
11608         block may now end in a jump.
11609         (verify_hot_cold_block_grouping): Guard against checking when not in
11610         linearized RTL mode.
11611         (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
11612         notes.
11613         (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
11614         rtl_verify_flow_info, so not called in cfglayout mode.
11615         (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
11616         (fixup_reorder_chain): Remove old code that attempted to fixup region
11617         crossing note as this is now handled in force_nonfallthru_and_redirect.
11618         (duplicate_insn_chain): Don't duplicate switch section notes.
11619         (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
11620         note.
11621         * basic-block.h (emit_barrier_after_bb): Declare.
11623 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11625         * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
11626         sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
11627         arm_usatsihi): Adjust alternatives for arm_restrict_it.
11629 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11631         * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
11632         where appropriate.
11633         * config/arm/ldmstm.md: Regenerate.
11635 2013-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11637         * config/arm/sync.md (atomic_loaddi_1):
11638         Disable predication for arm_restrict_it.
11639         (arm_load_exclusive<mode>): Likewise.
11640         (arm_load_exclusivesi): Likewise.
11641         (arm_load_exclusivedi): Likewise.
11642         (arm_load_acquire_exclusive<mode>): Likewise.
11643         (arm_load_acquire_exclusivesi): Likewise.
11644         (arm_load_acquire_exclusivedi): Likewise.
11645         (arm_store_exclusive<mode>): Likewise.
11646         (arm_store_exclusive<mode>): Likewise.
11647         (arm_store_release_exclusivedi): Likewise.
11648         (arm_store_release_exclusive<mode>): Likewise.
11650 2013-06-06  Richard Biener  <rguenther@suse.de>
11652         * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
11653         after LTO_null.
11654         (lto_tag_is_tree_code_p): Adjust.
11655         (lto_tag_is_gimple_code_p): Likewise.
11656         (lto_gimple_code_to_tag): Likewise.
11657         (lto_tag_to_gimple_code): Likewise.
11658         (lto_tree_code_to_tag): Likewise.
11659         (lto_tag_to_tree_code): Likewise.
11660         * data-streamer.h (streamer_write_hwi_in_range): Use
11661         uhwi streaming to stream the normalized range.
11662         (streamer_read_hwi_in_range): Likewise.
11664 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11666         * config/arm/arm.md (enabled_for_depr_it): New attribute.
11667         (predicable_short_it): Likewise.
11668         (predicated): Likewise.
11669         (enabled): Handle above.
11670         (define_cond_exec): Set predicated attribute to yes.
11672 2013-06-05  Mike Stump  <mikestump@comcast.net>
11674         * gdbinit.in (__FUNCTION__): Add.
11676 2013-06-05  Uros Bizjak  <ubizjak@gmail.com>
11678         * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
11679         GE, GT, GEU and GTU compares, modulo DImode compares with zero.
11681 2013-06-05  Jan Hubicka  <jh@suse.cz>
11683         * varasm.c (mark_decl_referenced): Revert the removal until targets
11684         are fixed.
11686 2013-06-05  David Edelsohn  <dje.gcc@gmail.com>
11688         * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
11689         instead of mark_decl_referenced.
11691 2013-06-05  Jan Hubicka  <jh@suse.cz>
11693         * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
11694         (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
11695         and symtab_used_from_object_file_p.
11696         (cgraph_make_node_local_1): Clear forced_by_abi.
11697         (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
11698         * cgraph.h (symtab_node_base): Add forced_by_abi.
11699         (decide_is_variable_needed): Remove.
11700         (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
11701         * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
11702         (decide_is_symbol_needed): ... this one; handle symbols in general;
11703         always analyze virtuals; honnor forced_by_abi.
11704         (cgraph_finalize_function): Update.
11705         (varpool_finalize_decl): Update.
11706         (symbol_defined_and_needed): Remove.
11707         (analyze_functions): Update.
11708         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
11709         output_refs, input_overwrite_node): Handle forced_by_abi.
11710         * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
11711         (address_taken_from_non_vtable_p): ... this one.
11712         (comdat_can_be_unshared_p_1): New function.
11713         (cgraph_comdat_can_be_unshared_p): Rename to ...
11714         (comdat_can_be_unshared_p): ... this one; handle symbols in general.
11715         (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
11716         (function_and_variable_visibility): Clear forced_by_abi as needed.
11717         * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
11718         (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
11719         * symtab.c (dump_symtab_base): Dump forced_by_abi.
11720         * varpool.c (decide_is_variable_needed): Remove.
11722 2013-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11724         * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
11725         (arm_option_override): Override arm_restrict_it where appropriate.
11726         (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
11727         * config/arm/arm.opt (mrestrict-it): New command-line option.
11728         * doc/invoke.texi: Document -mrestrict-it.
11730 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
11732         * tsan.c (tsan_atomic_table): Make const.
11734 2013-06-05  Richard Biener  <rguenther@suse.de>
11736         * tree-streamer.c (streamer_tree_cache_insert_1): Update the
11737         index associated with the tree we are supposed to replace.
11738         * tree-streamer-out.c (pack_ts_base_value_fields): Output
11739         TREE_ASM_WRITTEN as zero for everything but SSA names.
11741 2013-06-05  David Malcolm  <dmalcolm@redhat.com>
11743         * tree-ssa-structalias.c (call_stmt_vars): Make static.
11745 2013-06-04  Jan Hubicka  <jh@suse.cz>
11747         * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
11748         (input_node, input_varpool_node): Handle correctly external same
11749         body aliases.
11750         * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
11751         nodes at ltrans stage.
11753 2013-06-04  Jan Hubicka  <jh@suse.cz>
11755         * ipa-inline.c (update_caller_keys): Fix availability test.
11756         (update_callee_keys): Likewise.
11757         * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
11758         to follow ELF standard.
11760 2013-06-04  Jürgen Urban  <JuergenUrban@gmx.de>
11762         * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
11763         (mips64r5900el-*-elf*): New configurations.
11764         * config/mips/mips-cpus.def (r5900): New processor.
11765         * config/mips/mips-tables.opt: Regenerate.
11766         * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
11767         (mips_issue_rate): Handle PROCESSOR_R5900.
11768         (mips_reorg_process_insns): Force reorder mode for the R5900.
11769         * config/mips/mips.h (TARGET_MIPS5900): Define.
11770         (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
11771         TARGET_MIPS5900.
11772         (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
11773         TARGET_MIPS5900.
11774         * config/mips/mips.md (processor): Add r5900.
11775         (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
11777 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
11779         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
11780         into function to generate MOVI instruction.
11781         * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
11782         (aarch64_preferred_simd_mode): Turn into wrapper.
11783         (aarch64_output_scalar_simd_mov_immediate): New function.
11784         * config/aarch64/aarch64-protos.h: Add prototype for above.
11786 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
11788         * config/aarch64/aarch64.c (simd_immediate_info): Remove
11789         element_char member.
11790         (sizetochar): Return signed char.
11791         (aarch64_simd_valid_immediate): Remove elchar and other
11792         unnecessary variables.
11793         (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
11794         Calculate element_char as required.
11795         * config/aarch64/aarch64-protos.h: Update and move prototype
11796         for aarch64_output_simd_mov_immediate.
11797         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
11798         Update arguments.
11800 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
11802         * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
11803         information completed by aarch64_simd_valid_immediate.
11804         (aarch64_legitimate_constant_p): Update arguments.
11805         (aarch64_simd_valid_immediate): Work with struct rather than many
11806         pointers.
11807         (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
11808         (aarch64_simd_make_constant): Update arguments.
11809         (aarch64_output_simd_mov_immediate): Work with struct rather than
11810         many pointers.  Output immediate directly rather than as operand.
11811         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
11812         Update prototype.
11813         * config/aarch64/constraints.md (Dn): Update arguments.
11815 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
11817         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
11818         longer static.
11819         (aarch64_simd_immediate_valid_for_move): Remove.
11820         (aarch64_simd_scalar_immediate_valid_for_move): Update call.
11821         (aarch64_simd_make_constant): Update call.
11822         (aarch64_output_simd_mov_immediate): Update call.
11823         * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
11824         Add prototype.
11825         * config/aarch64/constraints.md (Dn): Update call.
11827 2013-06-04  Ian Bolton  <ian.bolton@arm.com>
11829         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
11830         return type to bool for prototype.
11831         (aarch64_legitimate_constant_p): Check for true instead of not -1.
11832         (aarch64_simd_valid_immediate): Fix up each return to return a bool.
11833         (aarch64_simd_immediate_valid_for_move): Update retval for bool.
11835 2013-06-04  Catherine Moore  <clm@codesourcery.com>
11837         * config/mips/mips.opt (meva): New.
11838         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
11839         (ASM_SPEC): Handle -meva.
11840         * doc/invoke.texi (meva):  Document.
11842 2013-06-04  Alan Modra  <amodra@gmail.com>
11844         * config/rs6000/rs6000.c (output_toc): Correct little-endian float
11845         constant output.
11847 2013-06-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11849         * rtl.def: Add extra fourth optional field to define_cond_exec.
11850         * gensupport.c (process_one_cond_exec): Process attributes from
11851         define_cond_exec.
11852         * doc/md.texi: Document fourth field in define_cond_exec.
11854 2013-06-04  Eric Botcazou  <ebotcazou@adacore.com>
11856         * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
11857         out the processing order as in store_bit_field_1.
11859 2013-06-04  Jan Hubicka  <jh@suse.cz>
11861         PR middle-end/57500
11862         * cgraphunit.c (cgraph_process_same_body_aliases): Create
11863         non-VAR_DECL node if it does not exist yet.
11865 2013-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
11867         * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
11868         (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
11869         (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
11870         target_cpu_default setting.
11872 2013-06-03  Teresa Johnson  <tejohnson@google.com>
11874         * dumpfile.c (opt_info_switch_p): Change -fopt-info
11875         default to -fopt-info=optimized instead of all.
11876         * doc/invoke.texi: Ditto.
11877         * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
11878         success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
11879         (execute_vect_slp): Emit BB vectorization success under
11880         MSG_OPTIMIZED_LOCATIONS.
11881         * tree-vect-slp.c (vect_slp_transform_bb): Change
11882         MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
11883         * tree-vect-loop.c (vect_transform_loop): Ditto.
11885 2013-06-03  Jason Merrill  <jason@redhat.com>
11887         PR c++/57415
11888         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11889         Use TARGET_EXPR for C++.
11891 2013-06-03  Jakub Jelinek  <jakub@redhat.com>
11893         PR rtl-optimization/57268
11894         * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
11895         if DEBUG_INSN_P (insn).
11897         Reapply
11898         2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
11900         PR rtl-optimization/57268
11901         * sched-deps.c (sched_analyze_2): Flush dependence lists if
11902         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
11904 2013-06-03  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
11906         * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
11907         (ix86_avoid_lea_for_addr): Likewise.
11908         (exact_dependency_1): Likewise.
11909         (ix86_adjust_cost): Likewise.
11910         (swap_top_of_ready_list): Fix formatting and !reload_completed check
11911         removed.
11912         (do_reorder_for_imul): Fix typo, formatting and
11913         !reload_completed check removed.
11914         (ix86_sched_reorder): Fix typo and formatting.
11915         (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
11916         list.
11918 2013-06-03  Sofiane Naci  <sofiane.naci@arm.com>
11920         * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
11922 2013-06-03  Eric Botcazou  <ebotcazou@adacore.com>
11924         * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
11925         <STRING_CST>: Likewise.
11926         <VECTOR_CST>: Likewise.
11928 2013-06-01  Janus Weil  <janus@gcc.gnu.org>
11929             Mikael Morin  <mikael@gcc.gnu.org>
11931         * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
11932         * config.in: Regenerated.
11933         * configure: Regenerated.
11935 2013-06-01  Jan Hubicka  <jh@suse.cz>
11937         PR middle-end/57366
11938         * cgraphunit.c (compile): When weakref is not supported,
11939         set up transparent aliases before final output pass.
11940         * varasm.c (assemble_alias): Do not try to do it here.
11942 2013-06-01  Jan Hubicka  <jh@suse.cz>
11944         PR middle-end/57467
11945         * passes.c (for_per_function): Skip unanalyzed functions.
11947 2013-06-01  Jan Hubicka  <jh@suse.cz>
11949         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
11950         (lto_symtab_merge_symbols_1): ... this one.
11951         (lto_symtab_merge_cgraph_nodes): Rename to ...
11952         (lto_symtab_merge_symbols): ... this one; simplify.
11953         * cgraph.c (same_body_aliases_done): Rename to ...
11954         (cpp_implicit_aliases_done): ... this one.
11955         (cgraph_create_function_alias): Update.
11956         (cgraph_same_body_alias): Update.
11957         (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
11958         (verify_edge_corresponds_to_fndecl): Simplify.
11959         * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
11960         (cgraph_node): Remove same_body_alias.
11961         (varpool_node): Remove alias_of and extra_name_alias.
11962         (same_body_aliases_done): Rename to ..
11963         (cpp_implicit_aliases_done): ... this one.
11964         (symtab_alias_ultimate_target): Add default parameter.
11965         (symtab_resolve_alias): New function.
11966         (fixup_same_cpp_alias_visibility): Declare.
11967         (cgraph_function_node): Add default parameter.
11968         (cgraph_node_asm_name): Likewise.
11969         (cgraph_function_or_thunk_node): Add default parameter; do
11970         not ICE when it is NULL.
11971         (varpool_variable_node): Likewise.
11972         * tree-emutls.c (create_emultls_var): Update.
11973         (ipa_lower_emutls): Update.
11974         * cgraphunit.c (cgraph_decide_is_function_needed): Update.
11975         (cgraph_reset_node): Reset alias info.
11976         (cgraph_finalize_function): Update.
11977         (fixup_same_cpp_alias_visibility): Move to symtab.c.
11978         (analyze_function): Simplify.
11979         (cgraph_process_same_body_aliases): Simplify.
11980         (analyze_functions): Fixup same body aliases.
11981         (handle_alias_pairs): Simplify.
11982         (assemble_thunk): Update.
11983         (assemble_thunks_and_aliases): Update.
11984         (output_weakrefs): Rewrite.
11985         * lto-cgraph.c (lto_output_node): Rewrite alias handling.
11986         (lto_output_varpool_node): Likewise.
11987         (compute_ltrans_boundary): Remve assert.
11988         (get_alias_symbol): New functoin.
11989         (input_node): Rewrite alias handling.
11990         (input_varpool_node): Likewise.
11991         * ipa-pure-const.c (propagate_pure_const): Fix formating.
11992         * ipa.c (process_references): Handle weakrefs correctly.
11993         (symtab_remove_unreachable_nodes): Likewise.
11994         * trans-mem.c (get_cg_data): Update.
11995         (ipa_tm_create_version_alias): Update.
11996         (ipa_tm_execute): Update.
11997         * symtab.c (dump_symtab_base): Dump aliases.
11998         (verify_symtab_base): Verify aliases.
11999         (symtab_node_availability): New function.
12000         (symtab_alias_ultimate_target): Simplify.
12001         (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
12002         handle all the fixup cases.
12003         (symtab_resolve_alias): New function.
12004         * passes.c (ipa_write_summaries): Handle weakrefs.
12005         * varpool.c (varpool_analyze_node): Simplify.
12006         (assemble_aliases): Update.
12007         (varpool_create_variable_alias): Simplify.
12008         (varpool_extra_name_alias): Simplify.
12009         * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
12010         (lto_symtab_merge_symbols): ... this one.
12012 2013-06-01  Dinar Temirbulatov  <dinar@kugelworks.com>
12014         Revert
12015         PR rtl-optimization/57268
12016         * sched-deps.c (sched_analyze_2): Flush dependence lists if
12017         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12019 2013-06-01  Tobias Burnus  <burnus@net-b.de>
12021         Partially reverted:
12022         2013-05-31  Tobias Burnus  <burnus@net-b.de>
12024         PR middle-end/57073
12025         * tree-ssa-math-opts.c (execute_cse_sincos): Move check
12026         further up.
12028 2013-05-31  Dinar Temirbulatov  <dinar@kugelworks.com>
12030         PR rtl-optimization/57268
12031         * sched-deps.c (sched_analyze_2): Flush dependence lists if
12032         the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12034 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
12036         * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
12037         unordered comparison operators when -fno-trapping-math is in effect
12038         on the e500.
12039         * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
12040         and implement unordered comparison operators properly on the e500.
12042 2013-05-31  Eric Botcazou  <ebotcazou@adacore.com>
12044         * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
12045         for constant scalar integers.
12046         (simplify_relational_operation_1): Likewise.
12048 2013-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
12050         * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
12051         * config/rs6000/rs6000.md (cpu): Reorder.  Split long line.
12052         Fix comment.
12054 2013-05-31  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
12055             Igor Zamyatin  <igor.zamyatin@intel.com>
12057         Silvermont (SLM) architecture performance tuning.
12058         * config/i386/i386.h (enum ix86_tune_indices): Add
12059         X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
12060         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
12062         * config/i386/i386.c (initial_ix86_tune_features)
12063         <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
12064         (ix86_lea_outperforms): Handle Silvermont tuning.
12065         (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
12066         call.
12067         (ix86_use_lea_for_mov): Likewise.
12068         (ix86_avoid_lea_for_addr): Likewise.
12069         (ix86_lea_for_add_ok): Likewise.
12070         (exact_dependency_1): New function.
12071         (exact_store_load_dependency): Likewise.
12072         (ix86_adjust_cost): Handle Silvermont tuning.
12073         (do_reoder_for_imul): Likewise.
12074         (swap_top_of_ready_list): New function.
12075         (ix86_sched_reorder): Changed to handle Silvermont tuning.
12077         * config/i386/i386.md (peepholes that split memory operand in fp
12078         converts): New.
12080 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12082         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12083         Remove un-necessary braces.
12085 2013-05-31  Marcus Shawcroft  <marcus.shawcroft@arm.com>
12087         * config/aarch64/aarch64.c (aarch64_classify_symbol):
12088         Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
12090 2013-05-31  Tobias Burnus  <burnus@net-b.de>
12092         PR middle-end/57073
12093         * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
12095 2013-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12097         PR target/56315
12098         * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
12099         * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
12100         * config/arm/neon.md (iordi3_neon): Remove.
12101         (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
12102         * config/arm/predicates.md (imm_for_neon_logic_operand):
12103         Move to earlier in the file.
12104         (neon_logic_op2): Likewise.
12105         (arm_iordi_operand_neon): New predicate.
12107 2013-05-31  Richard Biener  <rguenther@suse.de>
12109         PR tree-optimization/57478
12110         PR tree-optimization/57453
12111         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
12112         are life as well.
12114 2013-05-31  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12116         * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
12117         (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
12119 2013-05-30  Tobias Burnus  <burnus@net-b.de>
12120             Thomas Koenig  <tkoenig@gcc.gnu.org>
12122         PR middle-end/57073
12123         * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
12124         powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
12126 2013-05-30  Steven Bosscher  <steven@gcc.gnu.org>
12128         * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
12130 2013-05-30  Vladimir Makarov  <vmakarov@redhat.com>
12132         * target.def (register_usage_leveling_p): New hook.
12133         * targhooks.c (default_register_usage_leveling_p): New.
12134         * targhooks.h (default_register_usage_leveling_p): New prototype.
12135         * lra-assigns.c (register_usage_leveling_p): Use the hook.
12136         * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
12137         * doc/tm.texi: Update.
12138         * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
12140 2013-05-30  Ian Bolton  <ian.bolton@arm.com>
12142         * config/aarch64/aarch64.md (insv<mode>): New define_expand.
12143         (*insv_reg<mode>): New define_insn.
12145 2013-05-30  Joern Rennecke  <joern.rennecke@embecosm.com>
12147         PR rtl-optimization/57439
12148         * postreload.c (move2add_valid_value_p): Check that we have
12149         a zero subreg_regno_offset when accessing the register in
12150         the requested mode.
12152 2013-05-30  Yuri Rumyantsev  <yuri.s.rumyantsev@intel.com>
12153             Igor Zamyatin  <igor.zamyatin@intel.com>
12155         Silvermont (SLM) architecture pipeline model, tuning and
12156         insn selection.
12157         * config.gcc: Add slm config options and target.
12159         * config/i386/slm.md: New.
12161         * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
12163         * config/i386/i386-c.c (ix86_target_macros_internal):  New case
12164         PROCESSOR_SLM.
12165         (ix86_target_macros_internal): Likewise.
12167         * config/i386/i386.c (slm_cost): New cost.
12168         (m_SLM): New macro flag.
12169         (initial_ix86_tune_features): Set m_SLM.
12170         (x86_accumulate_outgoing_args): Likewise.
12171         (x86_arch_always_fancy_math_387): Likewise.
12172         (processor_target_table): Add slm cost.
12173         (cpu_names): Add slm cpu name.
12174         (x86_option_override_internal): Set SLM ISA.
12175         (ix86_issue_rate): New case PROCESSOR_SLM.
12176         (ia32_multipass_dfa_lookahead): Likewise.
12177         (fold_builtin_cpu): Add slm.
12179         * config/i386/i386.h (TARGET_SLM): New target macro.
12180         (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
12181         (processor_type): Add PROCESSOR_SLM.
12183         * config/i386/i386.md (cpu): Add new value "slm".
12184         (slm.md): Include slm.md.
12186 2013-05-30  Bernd Schmidt  <bernds@codesourcery.com>
12187             Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12189         * config/arm/arm-protos.h: Add and update function protos.
12190         * config/arm/arm.c (use_simple_return_p): New added.
12191         (thumb2_expand_return): Check simple_return flag.
12192         * config/arm/arm.md: Add simple_return and conditional simple_return.
12193         * config/arm/iterators.md: Add iterator for return and simple_return.
12195 2013-05-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
12197         * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
12198         (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
12199         (arm_emit_vfp_multi_reg_pop): Likewise.
12200         (thumb2_emit_ldrd_pop): Likewise.
12201         (arm_expand_epilogue): Add misc REG_CFA notes.
12202         (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
12204 2013-05-29  Lawrence Crowl  <crowl@google.com>
12206         * config/arm/t-arm: Update for below.
12208         * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
12209         Change type to hash_table.  Update dependent calls and types.
12211         * config/i386/t-cygming: Update for below.
12213         * config/i386/t-interix: Update for below.
12215         * config/i386/winnt.c (i386_pe_section_type_flags::htab):
12216         Change type to hash_table.  Update dependent calls and types.
12217         (i386_find_on_wrapper_list::wrappers): Likewise.
12219         * config/ia64/t-ia64: Update for below.
12221         * config/ia64/ia64.c (bundle_state_table):
12222         Change type to hash_table.  Update dependent calls and types.
12224         * config/mips/mips.c (mips_reorg_process_insns::htab):
12225         Change type to hash_table.  Update dependent calls and types.
12227         * config/sol2.c (solaris_comdat_htab):
12228         Change type to hash_table.  Update dependent calls and types.
12230         * config/t-sol2: Update for above.
12232 2013-05-29  Teresa Johnson  <tejohnson@google.com>
12234         * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
12235         functions are not yet marked as defined.
12237 2013-05-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
12238             Pat Haugen  <pthaugen@us.ibm.com>
12239             Peter Bergner  <bergner@vnet.ibm.com>
12241         * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
12242         instructions.
12243         (VEC_A): Likewise.
12244         (VEC_C): Likewise.
12245         (vrotl<mode>3): Likewise.
12246         (vashl<mode>3): Likewise.
12247         (vlshr<mode>3): Likewise.
12248         (vashr<mode>3): Likewise.
12250         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12251         support for power8 V2DI builtins.
12253         * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
12254         power8 V2DI builtins.
12255         (vupkhsw): Likewise.
12256         (vupklsw): Likewise.
12257         (vaddudm): Likewise.
12258         (vminsd): Likewise.
12259         (vmaxsd): Likewise.
12260         (vminud): Likewise.
12261         (vmaxud): Likewise.
12262         (vpkudum): Likewise.
12263         (vpksdss): Likewise.
12264         (vpkudus): Likewise.
12265         (vpksdus): Likewise.
12266         (vrld): Likewise.
12267         (vsld): Likewise.
12268         (vsrd): Likewise.
12269         (vsrad): Likewise.
12270         (vsubudm): Likewise.
12271         (vcmpequd): Likewise.
12272         (vcmpgtsd): Likewise.
12273         (vcmpgtud): Likewise.
12274         (vcmpequd_p): Likewise.
12275         (vcmpgtsd_p): Likewise.
12276         (vcmpgtud_p): Likewise.
12277         (vupkhsw): Likewise.
12278         (vupklsw): Likewise.
12279         (vaddudm): Likewise.
12280         (vmaxsd): Likewise.
12281         (vmaxud): Likewise.
12282         (vminsd): Likewise.
12283         (vminud): Likewise.
12284         (vpksdss): Likewise.
12285         (vpksdus): Likewise.
12286         (vpkudum): Likewise.
12287         (vpkudus): Likewise.
12288         (vrld): Likewise.
12289         (vsld): Likewise.
12290         (vsrad): Likewise.
12291         (vsrd): Likewise.
12292         (vsubudm): Likewise.
12294         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
12295         support for power8 V2DI instructions.
12297         * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
12298         power8 V2DI instructions.  Combine pack and unpack insns to use an
12299         iterator for each mode.  Check whether a particular mode supports
12300         Altivec instructions instead of just checking TARGET_ALTIVEC.
12301         (UNSPEC_VPKUWUM): Likewise.
12302         (UNSPEC_VPKSHSS): Likewise.
12303         (UNSPEC_VPKSWSS): Likewise.
12304         (UNSPEC_VPKUHUS): Likewise.
12305         (UNSPEC_VPKSHUS): Likewise.
12306         (UNSPEC_VPKUWUS): Likewise.
12307         (UNSPEC_VPKSWUS): Likewise.
12308         (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
12309         (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
12310         (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
12311         (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
12312         (UNSPEC_VUPKHSB): Likewise.
12313         (UNSPEC_VUNPACK_HI_SIGN): Likewise.
12314         (UNSPEC_VUNPACK_LO_SIGN): Likewise.
12315         (UNSPEC_VUPKHSH): Likewise.
12316         (UNSPEC_VUPKLSB): Likewise.
12317         (UNSPEC_VUPKLSH): Likewise.
12318         (VI2): Likewise.
12319         (VI_char): Likewise.
12320         (VI_scalar): Likewise.
12321         (VI_unit): Likewise.
12322         (VP): Likewise.
12323         (VP_small): Likewise.
12324         (VP_small_lc): Likewise.
12325         (VU_char): Likewise.
12326         (add<mode>3): Likewise.
12327         (altivec_vaddcuw): Likewise.
12328         (altivec_vaddu<VI_char>s): Likewise.
12329         (altivec_vadds<VI_char>s): Likewise.
12330         (sub<mode>3): Likewise.
12331         (altivec_vsubcuw): Likewise.
12332         (altivec_vsubu<VI_char>s): Likewise.
12333         (altivec_vsubs<VI_char>s): Likewise.
12334         (altivec_vavgs<VI_char>): Likewise.
12335         (altivec_vcmpbfp): Likewise.
12336         (altivec_eq<mode>): Likewise.
12337         (altivec_gt<mode>): Likewise.
12338         (altivec_gtu<mode>): Likewise.
12339         (umax<mode>3): Likewise.
12340         (smax<mode>3): Likewise.
12341         (umin<mode>3): Likewise.
12342         (smin<mode>3): Likewise.
12343         (altivec_vpkuhum): Likewise.
12344         (altivec_vpkuwum): Likewise.
12345         (altivec_vpkshss): Likewise.
12346         (altivec_vpkswss): Likewise.
12347         (altivec_vpkuhus): Likewise.
12348         (altivec_vpkshus): Likewise.
12349         (altivec_vpkuwus): Likewise.
12350         (altivec_vpkswus): Likewise.
12351         (altivec_vpks<VI_char>ss): Likewise.
12352         (altivec_vpks<VI_char>us): Likewise.
12353         (altivec_vpku<VI_char>us): Likewise.
12354         (altivec_vpku<VI_char>um): Likewise.
12355         (altivec_vrl<VI_char>): Likewise.
12356         (altivec_vsl<VI_char>): Likewise.
12357         (altivec_vsr<VI_char>): Likewise.
12358         (altivec_vsra<VI_char>): Likewise.
12359         (altivec_vsldoi_<mode>): Likewise.
12360         (altivec_vupkhsb): Likewise.
12361         (altivec_vupkhs<VU_char>): Likewise.
12362         (altivec_vupkls<VU_char>): Likewise.
12363         (altivec_vupkhsh): Likewise.
12364         (altivec_vupklsb): Likewise.
12365         (altivec_vupklsh): Likewise.
12366         (altivec_vcmpequ<VI_char>_p): Likewise.
12367         (altivec_vcmpgts<VI_char>_p): Likewise.
12368         (altivec_vcmpgtu<VI_char>_p): Likewise.
12369         (abs<mode>2): Likewise.
12370         (vec_unpacks_hi_v16qi): Likewise.
12371         (vec_unpacks_hi_v8hi): Likewise.
12372         (vec_unpacks_lo_v16qi): Likewise.
12373         (vec_unpacks_hi_<VP_small_lc>): Likewise.
12374         (vec_unpacks_lo_v8hi): Likewise.
12375         (vec_unpacks_lo_<VP_small_lc>): Likewise.
12376         (vec_pack_trunc_v8h): Likewise.
12377         (vec_pack_trunc_v4si): Likewise.
12378         (vec_pack_trunc_<mode>): Likewise.
12380         * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
12381         V2DI builtins.
12382         (vec_vmaxsd): Likewise.
12383         (vec_vmaxud): Likewise.
12384         (vec_vminsd): Likewise.
12385         (vec_vminud): Likewise.
12386         (vec_vpksdss): Likewise.
12387         (vec_vpksdus): Likewise.
12388         (vec_vpkudum): Likewise.
12389         (vec_vpkudus): Likewise.
12390         (vec_vrld): Likewise.
12391         (vec_vsld): Likewise.
12392         (vec_vsrad): Likewise.
12393         (vec_vsrd): Likewise.
12394         (vec_vsubudm): Likewise.
12395         (vec_vupkhsw): Likewise.
12396         (vec_vupklsw): Likewise.
12398 2013-05-29  Jan Hubicka  <jh@suse.cz>
12400         * cgraph.h (symtab_node_base): Add definition, alias and analyzed
12401         flags; reorder rest of fields in more consistent way.
12402         (varpool_node): Remove analyzed, finalized and alias.
12403         (cgraph_ndoe): Likewise.
12404         (symtab_alias_ultimate_target): New function.
12405         (cgraph_function_node): Move offline.
12406         (cgraph_reset_node): Declare.
12407         (cgraph_comdat_can_be_unshared_p): Remove.
12408         (varpool_remove_initializer): Declare.
12409         (varpool_first_defined_variable, varpool_next_defined_variable
12410         cgraph_first_defined_function, cgraph_next_defined_function): Update.
12411         (cgraph_function_with_gimple_body_p): Update.
12412         (varpool_all_refs_explicit_p): Update.
12413         (symtab_alias_target): New function.
12414         (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
12415         (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
12416         (cgraph_function_or_thunk_node): Simplify using
12417         symtab_alias_ultimate_target.
12418         (varpool_variable_node): Likewise.
12419         * cgraph.c (cgraph_create_function_alias): Update.
12420         (cgraph_add_thunk): Update.
12421         (cgraph_remove_node): Update.
12422         (dump_cgraph_node): Do not dump removed flags.
12423         (cgraph_function_body_availability): Update.
12424         (cgraph_propagate_frequency): Update.
12425         (verify_cgraph_node): Check sanity of local flag.
12426         (cgraph_function_node): Move here from cgraph.h; revamp for
12427         cgraph_function_or_thunk_node.
12428         * lto-symtab.c (lto_varpool_replace_node): Update.
12429         (lto_symtab_resolve_can_prevail_p): Update.
12430         (lto_symtab_merge_cgraph_nodes): Update.
12431         * ipa-cp.c (determine_versionability, initialize_node_lattices,
12432         propagate_constants_accross_call, devirtualization_time_bonus,
12433         ipcp_propagate_stage): Update.
12434         * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
12435         * ipa-inline-transform.c (clone_inlined_nodes,
12436         preserve_function_body_p): Update.
12437         * ipa-reference.c (propagate): Update.
12438         (write_node_summary_p): Update.
12439         * toplev.c (wrapup_global_declaration_2): Update.
12440         * cgraphunit.c (cgraph_analyze_function): Rename to ...
12441         (analyze_function) ... this one.
12442         (cgraph_process_new_functions): Update.
12443         (cgraph_reset_node): Export.
12444         (cgraph_finalize_function): Update.
12445         (cgraph_add_new_function): Update.
12446         (process_function_and_variable_attributes): Update.
12447         (varpool_finalize_decl): Update.
12448         (symbol_finalized): Remove.
12449         (symbol_finalized_and_needed): Rename to ...
12450         (symbol_defined_and_needed): ... update.
12451         (cgraph_analyze_functions): Update.
12452         (handle_alias_pairs): Update.
12453         (mark_functions_to_output): Update.
12454         (assemble_thunk): Update.
12455         (output_in_order): Update.
12456         (output_weakrefs): Update.
12457         (finalize_compilation_unit): Update.
12458         * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
12459         lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
12460         input_node, input_varpool_node): Update.
12461         * dbxout.c (dbxout_expand_expr): Update.
12462         * cgraphclones.c (cgraph_clone_node): Update.
12463         (cgraph_copy_node_for_versioning): Update.
12464         (cgraph_materialize_clone): Update.
12465         (cgraph_materialize_all_clones): Update.
12466         * ipa-pure-const.c (analyze_function, pure_const_write_summary,
12467         propagate_pure_const, propagate_nothrow): Update.
12468         * lto-streamer-out.c (lto_output, write_symbol): Update.
12469         * ipa-utils.c (ipa_reverse_postorder): Update.
12470         * ipa-inline.c (can_inline_edge_p): Update.
12471         (update_caller_keys, ipa_inline): Update.
12472         * dwarf2out.c (reference_to_unused,
12473         premark_types_used_by_global_vars_helper): Update.
12474         * tree-eh.c (tree_could_trap_p): Update.
12475         * ipa-split.c (consider_split, execute_split_functions): Update.
12476         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
12477         has_addr_references_p): Update; move ahead in file for better
12478         readability.
12479         (process_references): Simplify.
12480         (symtab_remove_unreachable_nodes): Update; cleanup way function/var
12481         bodies are removed.
12482         (cgraph_comdat_can_be_unshared_p): Make static.
12483         (cgraph_externally_visible_p): Update.
12484         (varpool_externally_visible_p): Update.
12485         (function_and_variable_visibility): Update.
12486         * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
12487         ipa_tm_mark_force_output_node): Update.
12488         * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
12489         estimate_edge_devirt_benefit, inline_generate_summary,
12490         inline_write_summary): Update.
12491         * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
12492         * ipa-prop.c (ipa_compute_jump_functions): Update.
12493         (ipa_print_node_params, ipa_prop_read_section,
12494         ipa_update_after_lto_read, read_replacements_section): Update.
12495         * varasm.c (mark_decl_referenced): Update.
12496         (assemble_alias, dump_tm_clone_pairs): Update.
12497         * tree-inline.c (copy_bb): Update.
12498         (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
12499         Update.
12500         * symtab.c (dump_symtab_base): Print new flags.
12501         (verify_symtab_base): Verify new flags.
12502         (symtab_alias_ultimate_target): New function.
12503         * tree-ssa-structalias.c (get_constraint_for_ssa_var,
12504         create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
12505         Update.
12506         * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
12507         Update.
12508         * i386.c (ix86_get_function_versions_dispatcher,
12509         ix86_generate_version_dispatcher_body): Update.
12510         (fold_builtin_cpu): Use varpool_add_new_variable.
12511         * varpool.c (varpool_remove_initializer): Break out from ...
12512         (varpool_remove_node): ... this one.
12513         (dump_varpool_node, varpool_node_for_asm,
12514         cgraph_variable_initializer_availability, varpool_analyze_node,
12515         varpool_assemble_decl, varpool_remove_unreferenced_decls,
12516         varpool_finalize_named_section_flags, varpool_create_variable_alias):
12517         Update.
12519 2013-05-29  Jan Hubicka  <jh@suse.cz>
12521         * passes.c (init_optimization_passes): Move OMP expansion into lowering.
12523 2013-05-29  Easwaran Raman  <eraman@google.com>
12525         PR tree-optimization/57442
12526         * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
12527         when control exits the main loop.
12529 2013-05-29  Sandeep Kumar Singh  <Sandeep.Singh2@kpitcummins.com>
12531         * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
12532         and RX600.
12533         * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
12534         * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
12535         * rx/t-rx: Add rx100 under multi library matches option for nofpu
12536         option.
12538 2013-05-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
12540         PR tree-optimization/57441
12541         * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
12542         Don't limit size of incr_vec to number of candidates.
12544 2013-05-29  Steve Ellcey  <sellcey@imgtec.com>
12546         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
12547         and mips16 directories.
12548         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
12549         (MULTILIB_DIRNAMES): Ditto.
12550         (MULTILIB_EXCEPTIONS): Add new exceptions.
12551         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
12552         (MULTILIB_DIRNAMES): Ditto.
12553         (MULTILIB_EXCEPTIONS): Add new exceptions.
12555 2012-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
12556             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12558         * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
12559         SYMBOL_TINY_ABSOLUTE.
12560         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
12561         SYMBOL_TINY_ABSOLUTE.
12562         (aarch64_expand_mov_immediate): Likewise.
12563         (aarch64_classify_symbol): Likewise.
12564         (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
12565         Permit SYMBOL_TINY_ABSOLUTE.
12566         * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
12568 2013-05-29  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
12569             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12571         * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
12572         Refactor if/switch.  Replace gcc_assert with if.
12574 2013-05-29  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
12576         * config/i386/i386.c (initial_ix86_tune_features): Enable
12577         FP Reassociation for AMD bdver1 and bdver2.
12579 2013-05-29  Martin Jambor  <mjambor@suse.cz>
12581         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
12582         and IMAGPART_EXPR do not occur within other handled_components.
12584 2013-05-29  Richard Biener  <rguenther@suse.de>
12586         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
12587         access on whether the use is in the BB we currently try to
12588         vectorize.
12589         (vect_bb_vectorization_profitable_p): Pass the BB we currently
12590         vectorize to vect_bb_slp_scalar_cost.
12592 2013-05-29  Richard Biener  <rguenther@suse.de>
12594         * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
12595         computing scalar cost offsetted by stmts that are kept live
12596         by scalar uses.
12597         (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
12598         for computation of scalar cost.
12600 2013-05-28  Steve Ellcey  <sellcey@mips.com>
12602         * config/mips/mips-cpus.def (mips32r2): Change processor type.
12604 2013-05-28  Balaji V. Iyer  <balaji.v.iyer@intel.com>
12606         * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
12607         array notation built-in reduction functions.
12608         * doc/passes.texi (Passes): Added documentation about changes done
12609         for Cilk Plus.
12610         * doc/invoke.texi (C Dialect Options): Added documentation about
12611         the -fcilkplus flag.
12612         * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
12613         (BUILTINS_DEF): Depend on cilkplus.def.
12614         * builtins.def: Include cilkplus.def.  Define DEF_CILKPLUS_BUILTIN.
12615         * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
12616         * cilkplus.def: New file.
12618 2013-05-28  Joern Rennecke  <joern.rennecke@embecosm.com>
12620         PR rtl-optimization/57439
12621         * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
12623 2013-05-28  Easwaran Raman  <eraman@google.com>
12625         PR tree-optimization/57337
12626         * tree-ssa-reassoc.c (appears_later_in_bb): New function.
12627         (find_insert_point): Correctly identify the insertion point
12628         when two statements with the same UID is compared.
12630 2013-05-28  Richard Biener  <rguenther@suse.de>
12632         PR tree-optimization/56787
12633         * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
12634         from the list of data references.
12635         * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
12636         clobbers.
12637         (vect_analyze_loop_operations): Likewise.
12638         (vect_transform_loop): Remove clobbers.
12640 2013-05-28  Martin Jambor  <mjambor@suse.cz>
12642         * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
12643         and REALPART_EXPRs have scalar type.
12645 2013-05-28  Richard Biener  <rguenther@suse.de>
12647         PR tree-optimization/57411
12648         * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
12649         virtual operands.
12650         * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
12651         virtual operand propagation.
12653 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
12655         * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
12656         destination register for bmasksi_vis.
12657         (vector_init_bshuffle): Likewise.
12658         * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
12660 2013-05-28  Eric Botcazou  <ebotcazou@adacore.com>
12662         * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
12663         * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
12664         mode if the instruction isn't available in the original mode.
12665         * config/sparc/sparc.opt (mfix-ut699): New option.
12666         * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
12667         (divdf3): Turn into expander.
12668         (divdf3_nofix): New insn.
12669         (divdf3_fix): Likewise.
12670         (divsf3): Disable if -mfix-ut699.
12671         (sqrtdf2): Turn into expander.
12672         (sqrtdf2_nofix): New insn.
12673         (sqrtdf2_fix): Likewise.
12674         (sqrtsf2): Disable if -mfix-ut699.
12676 2013-05-27  Richard Biener  <rguenther@suse.de>
12678         PR middle-end/57412
12679         * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
12680         block for the new loop.
12682 2013-05-27  Richard Biener  <rguenther@suse.de>
12684         PR tree-optimization/57343
12685         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
12686         use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
12687         (number_of_iterations_cond): Do not build the folded tree.
12689 2013-05-27  Richard Biener  <rguenther@suse.de>
12691         Revert
12692         PR middle-end/57381
12693         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
12694         OEP_CONSTANT_ADDRESS_OF retained.
12696         PR tree-optimization/57417
12697         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
12698         for unchanged base.
12699         (set_ssa_val_to): Compare addresses using
12700         get_addr_base_and_unit_offset.
12702 2013-05-27  Joern Rennecke  <joern.rennecke@embecosm.com>
12704         PR rtl-optimization/56833
12705         * postreload.c (move2add_record_mode): New function.
12706         (move2add_record_sym_value, move2add_valid_value_p): Likewise.
12707         (move2add_use_add2_insn): Use move2add_record_sym_value.
12708         (move2add_use_add3_insn): Likewise.
12709         (reload_cse_move2add): Use move2add_valid_value_p and
12710         move2add_record_mode.  Invalidate call-clobbered and REG_INC
12711         affected regs by setting reg_mode to VOIDmode.
12712         (move2add_note_store): Don't pretend the inside of a SUBREG is
12713         the actual destination.  Invalidate single/leading registers by
12714         setting reg_mode to VOIDmode.
12715         Use move2add_record_sym_value, move2add_valid_value_p and
12716         move2add_record_mode.
12718 2013-05-27  Richard Biener  <rguenther@suse.de>
12720         PR tree-optimization/57396
12721         * tree-affine.c (double_int_constant_multiple_p): Properly
12722         return false for val == 0 and div != 0.
12724 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
12726         * config/mips/mips.h: Use #elif in preprocessor conditions.
12728 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
12730         PR target/53916
12731         * config/mips/constraints.md (kl): New constraint.
12732         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
12733         (divmod<mode>4_internal): Rename to divmod<mode>4.  Use "kl" as the
12734         constraint for operand 0.  Split after CSE for MIPS16.  Emit a move
12735         from LO for MIPS16.
12736         (udivmod<mode>4_internal): Likewise udivmod<mode>4.
12738 2013-05-25  Richard Sandiford  <rdsandiford@googlemail.com>
12740         PR target/55777
12741         * config/mips/mips.c (mips_can_inline_p): New function.
12742         (TARGET_CAN_INLINE_P): Define.
12744 2013-05-25  Steven Bosscher  <steven@gcc.gnu.org>
12746         * sched-int.h (ds_t, dw_t): Make unsigned int.
12747         Fix documentation that describes how all the ds_t bits are used.
12748         Reserve the last bit for delayed-branch scheduling.
12749         (BITS_PER_DEP_STATUS): Move to ds_t typedef.
12750         (BITS_PER_DEP_WEAK): Fix definition and documentation.
12751         (gen_dep_weak_1): Remove prototype.
12752         * sched-deps.c (get_dep_weak_1): Make static.
12753         * target.def (speculate_insn, needs_block_p, gen_spec_check,
12754         get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
12755         * doc/tm.texi: Regenerate.
12756         * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
12758 2013-05-24  Steven Bosscher  <steven@gcc.gnu.org>
12760         PR debug/56950
12761         * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
12763 2013-05-24  Nathan Sidwell  <nathan@codesourcery.com>
12764             Sandra Loosemore  <sandra@codesourcery.com>
12766         * config.gcc (powerpc-*): Allow native for with-cpu.
12768 2013-05-24  Jeff Law  <law@redhat.com>
12770         PR tree-optimization/57124
12771         * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
12772         conversion feeding a condition if the range has an overflow
12773         if -fstrict-overflow.  Add warnings for when we do make the
12774         transformation.
12776 2013-05-24  Dehao Chen  <dehao@google.com>
12778         * tree-cfg.c (locus_discrim_map): Fix the typo.
12779         (locus_discrim_hasher): Likewise.
12780         (locus_discrim_hasher::hash): Likewise.
12781         (locus_discrim_hasher::equal): Likewise.
12783 2013-05-24  Martin Jambor  <mjambor@suse.cz>
12785         PR tree-optimization/57294
12786         * cgraph.h (ipa_record_stmt_references): Declare.
12787         * cgraphbuild.c (ipa_record_stmt_references): New function.
12788         (build_cgraph_edges): Use ipa_record_stmt_references.
12789         (rebuild_cgraph_edges): Likewise.
12790         (cgraph_rebuild_references): Likewise.
12791         * ipa-prop.c (ipa_modify_call_arguments): Discard references
12792         associated with the old statement and build references from the
12793         newly built statements.
12794         * ipa-ref.c (ipa_remove_stmt_references): New function.
12795         * ipa-ref.h (ipa_remove_stmt_references): Declare.
12797 2013-05-24  Vladimir Makarov  <vmakarov@redhat.com>
12799         * lra-constraints.c (emit_spill_move): Use smaller mode for
12800         mem-mem moves.
12801         (check_and_process_move): Consider mem-reg moves for secondary
12802         too.
12803         (curr_insn_transform): Don't lose insns emitted before for
12804         secondary memory moves.
12805         (inherit_in_ebb): Mark defined reg.  Add usage only if it is not a
12806         reg set up in the current insn.
12808 2013-05-24  Dehao Chen  <dehao@google.com>
12810         * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
12811         hash function.
12812         (locus_descrim_hasher::equal): Likewise.
12813         (build_gimple_cfg): New discriminator assignment algorithm.
12814         (make_edges): Likewise.
12815         (next_discriminator_for_locus): Likewise.
12816         (same_line_p): Likewise.
12817         (assign_discriminators): Likewise.
12818         (make_cond_expr_edges): Likewise.
12819         (make_gimple_switch_edges): Likewise.
12820         (make_goto_expr_edges): Likewise.
12821         (make_gimple_asm_edges): Likewise.
12823 2013-05-24  Ian Bolton  <ian.bolton@arm.com>
12825         * config/aarch64/aarch64.c (aarch64_print_operand): Change the
12826         X format specifier to only display bottom 16 bits.
12827         * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
12828         immediate to match for operand 2, since it will be masked.
12830 2013-05-24  Richard Biener  <rguenther@suse.de>
12832         PR tree-optimization/57287
12833         * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
12834         all SSA names that occur in abnormal PHIs.
12836 2013-05-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
12838         PR tree-ssa/57385
12839         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
12840         that index is not negative.
12842 2013-05-24  Eric Botcazou  <ebotcazou@adacore.com>
12844         PR rtl-optimization/55177
12845         * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
12846         (simplify_byte_swapping_operation): New.
12847         (simplify_binary_operation_1): Call it for AND, IOR and XOR.
12848         (simplify_relational_operation_1): Deal with BSWAP.
12850 2013-05-23  Richard Henderson  <rth@redhat.com>
12852         PR target/56742
12853         * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
12854         (ix86_reorg): Call it.
12856 2013-05-23  Uros Bizjak  <ubizjak@gmail.com>
12858         PR target/57379
12859         * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
12860         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
12861         REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
12863 2013-05-23  Christian Bruel  <christian.bruel@st.com>
12865         PR debug/57351
12866         * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
12868 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
12869             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12871         * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
12872         * config/aarch64/constraints.md (Usa): Remove.
12873         * doc/md.texi (AArch64 Usa): Remove.
12875 2013-05-23  Chris Schlumberger-Socha  <chris.schlumberger-socha@arm.com>
12876             Marcus Shawcroft  <marcus.shawcroft@arm.com>
12878         * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
12879         * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
12880         * config/aarch64/predicates.md (aarch64_const_address): Remove.
12881         (aarch64_mov_operand): Use aarch64_mov_operand_p.
12883 2013-05-23  Vidya Praveen  <vidyapraveen@arm.com>
12885         * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
12886         instruction (AdvSIMD).
12887         * config/aarch64/aarch64-builtins.c
12888         (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
12889         * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
12891 2013-05-23  Martin Jambor  <mjambor@suse.cz>
12893         PR middle-end/57347
12894         * tree.h (contains_bitfld_component_ref_p): Declare.
12895         * tree-sra.c (contains_bitfld_comp_ref_p): Move...
12896         * tree.c (contains_bitfld_component_ref_p): ...here.  Adjust its
12897         caller.
12898         * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
12899         not access a bit-field.  Assert all final offsets are byte-aligned.
12901 2013-05-23  Richard Biener  <rguenther@suse.de>
12903         PR tree-optimization/57380
12904         * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
12905         least one invariant or re-used load.
12906         * passes.c (init_optimization_passes): Move pass_phiprop before
12907         pass_forwprop.
12909 2013-05-23  James Greenhalgh  <james.greenhalgh@arm.com>
12911         * config/aarch64/aarch64-simd.md
12912         (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
12914 2013-05-23  Richard Biener  <rguenther@suse.de>
12916         PR middle-end/57381
12917         * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
12918         OEP_CONSTANT_ADDRESS_OF retained.
12920 2013-05-23  Jakub Jelinek  <jakub@redhat.com>
12922         PR middle-end/57344
12923         * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
12924         don't lower unit.  Handle unit not being always BITS_PER_WORD.
12926 2013-05-23  Richard Biener  <rguenther@suse.de>
12928         PR rtl-optimization/57341
12929         * ira.c (validate_equiv_mem_from_store): Use anti_dependence
12930         instead of true_dependence.
12932 2013-05-22  David Malcolm  <dmalcolm@redhat.com>
12934         * bb-reorder.c (branch_threshold): Make const.
12935         (exec_threshold): Ditto.
12937 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
12938             Pat Haugen  <pthaugen@us.ibm.com>
12939             Peter Bergner  <bergner@vnet.ibm.com>
12941         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
12942         documentation for the power8 crypto builtins.
12944         * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
12946         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
12947         macros for defining power8 builtin functions.
12948         (BU_P8V_AV_2): Likewise.
12949         (BU_P8V_AV_P): Likewise.
12950         (BU_P8V_VSX_1): Likewise.
12951         (BU_P8V_OVERLOAD_1): Likewise.
12952         (BU_P8V_OVERLOAD_2): Likewise.
12953         (BU_CRYPTO_1): Likewise.
12954         (BU_CRYPTO_2): Likewise.
12955         (BU_CRYPTO_3): Likewise.
12956         (BU_CRYPTO_OVERLOAD_1): Likewise.
12957         (BU_CRYPTO_OVERLOAD_2): Likewise.
12958         (XSCVSPDP): Fix typo, point to the correct instruction.
12959         (VCIPHER): Add power8 crypto builtins.
12960         (VCIPHERLAST): Likewise.
12961         (VNCIPHER): Likewise.
12962         (VNCIPHERLAST): Likewise.
12963         (VPMSUMB): Likewise.
12964         (VPMSUMH): Likewise.
12965         (VPMSUMW): Likewise.
12966         (VPERMXOR_V2DI): Likewise.
12967         (VPERMXOR_V4SI: Likewise.
12968         (VPERMXOR_V8HI: Likewise.
12969         (VPERMXOR_V16QI: Likewise.
12970         (VSHASIGMAW): Likewise.
12971         (VSHASIGMAD): Likewise.
12972         (VPMSUM): Likewise.
12973         (VPERMXOR): Likewise.
12974         (VSHASIGMA): Likewise.
12976         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
12977         __CRYPTO__ if the crypto instructions are available.
12978         (altivec_overloaded_builtins): Add support for overloaded power8
12979         builtins.
12981         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
12982         support for power8 crypto builtins.
12983         (builtin_function_type): Likewise.
12984         (altivec_init_builtins): Add support for builtins that take vector
12985         long long (V2DI) arguments.
12987         * config/rs6000/crypto.md: New file, define power8 crypto
12988         instructions.
12990 2013-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
12991             Pat Haugen  <pthaugen@us.ibm.com>
12992             Peter Bergner  <bergner@vnet.ibm.com>
12994         * doc/invoke.texi (Option Summary): Add power8 options.
12995         (RS/6000 and PowerPC Options): Likewise.
12997         * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
12998         constraints.md instead of rs6000.h.  Reorder w* constraints.  Add
12999         wm, wn, wr documentation.
13001         * config/rs6000/constraints.md (wm): New constraint for VSX
13002         registers if direct move instructions are enabled.
13003         (wn): New constraint for no registers.
13004         (wq): New constraint for quad word even GPR registers.
13005         (wr): New constraint if 64-bit instructions are enabled.
13006         (wv): New constraint if power8 vector instructions are enabled.
13007         (wQ): New constraint for quad word memory locations.
13009         * config/rs6000/predicates.md (const_0_to_15_operand): New
13010         constraint for 0..15 for crypto instructions.
13011         (gpc_reg_operand): If VSX allow registers in VSX registers as well
13012         as GPR and floating point registers.
13013         (int_reg_operand): New predicate to match only GPR registers.
13014         (base_reg_operand): New predicate to match base registers.
13015         (quad_int_reg_operand): New predicate to match even GPR registers
13016         for quad memory operations.
13017         (vsx_reg_or_cint_operand): New predicate to allow vector logical
13018         operations in both GPR and VSX registers.
13019         (quad_memory_operand): New predicate for quad memory operations.
13020         (reg_or_indexed_operand): New predicate for direct move support.
13022         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
13023         Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
13024         (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
13025         (POWERPC_MASKS): Add power8 options.
13026         (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
13027         various options.
13029         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
13030         Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
13032         * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
13033         (-mpower8-fusion): New power8 options.
13034         (-mpower8-fusion-sign): Likewise.
13035         (-mpower8-vector): Likewise.
13036         (-mcrypto): Likewise.
13037         (-mdirect-move): Likewise.
13038         (-mquad-memory): Likewise.
13040         * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
13041         (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
13042         registers.
13043         (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
13044         (rs6000_debug_vector_unit): Add p8_vector.
13045         (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
13046         definitions.  Also print fusion state.
13047         (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
13048         (rs6000_builtin_mask_calculate): Add power8 builtin support.
13049         (rs6000_option_override_internal): Add support for power8.
13050         (rs6000_common_init_builtins): Add debugging for skipped builtins
13051         if -mdebug=builtin.
13052         (rs6000_adjust_cost): Add power8 support.
13053         (rs6000_issue_rate): Likewise.
13054         (insn_must_be_first_in_group): Likewise.
13055         (insn_must_be_last_in_group): Likewise.
13056         (force_new_group): Likewise.
13057         (rs6000_register_move_cost): Likewise.
13058         (rs6000_opt_masks): Likewise.
13060         * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
13061         power8 capable assembler, default to power7 options.
13062         (TARGET_DIRECT_MOVE): Likewise.
13063         (TARGET_CRYPTO): Likewise.
13064         (TARGET_P8_VECTOR): Likewise.
13065         (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
13066         (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
13067         (VECTOR_MEM_P8_VECTOR_P): Likewise.
13068         (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
13069         (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
13070         (TARGET_XSCVDPSPN): Likewise.
13071         (TARGET_XSCVSPDPN): Likewsie.
13072         (TARGET_SYNC_HI_QI): Likewise.
13073         (TARGET_SYNC_TI): Likewise.
13074         (MASK_CRYPTO): Likewise.
13075         (MASK_DIRECT_MOVE): Likewise.
13076         (MASK_P8_FUSION): Likewise.
13077         (MASK_P8_VECTOR): Likewise.
13078         (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
13079         temporary used by some of the direct move instructions to get two FP
13080         temporary registers does not force creation of a stack frame.
13081         (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
13082         (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
13083         that any VSX registers are tieable, even if they are also an
13084         Altivec vector mode.
13085         (r6000_reg_class_enum): Add wm, wr, wv constraints.
13086         (RS6000_BTM_P8_VECTOR): Power8 builtin support.
13087         (RS6000_BTM_CRYPTO): Likewise.
13088         (RS6000_BTM_COMMON): Likewise.
13090         * config/rs6000/rs6000.md (cpu attribute): Add power8.
13091         * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
13092         (enum rs6000_vector): Add power8 vector support.
13094 2013-05-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13096         PR target/19599
13097         PR target/57340
13098         * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
13099         (any_sibcall_could_use_r3): this and handle indirect calls.
13100         (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
13102 2013-05-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13104         * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
13106 2013-05-22  Richard Biener  <rguenther@suse.de>
13108         PR middle-end/57349
13109         * profile.c (branch_prob): Do not split blocks that are
13110         abnormally receiving from ECF_RETURNS_TWICE functions.
13112 2013-05-22  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
13114         * recog.c (offsettable_address_addr_space_p): Fix calculation of
13115         address mode.  Move pointer mode initialization to the same place.
13117 2013-05-22  Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13119         * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
13120         while it has any effect.
13122 2013-05-21  Easwaran Raman  <eraman@google.com>
13124         PR tree-optimization/57322
13125         * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
13126         UID of the statement added to the BB to be 1.
13128 2013-05-21  Jakub Jelinek  <jakub@redhat.com>
13130         PR tree-optimization/57331
13131         * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
13132         of conversion from pointer type to integral type with integer.
13134 2013-05-21  Martin Jambor  <mjambor@suse.cz>
13136         PR lto/57289
13137         * ipa-prop.c (ipa_read_node_info): Process param_used and
13138         controlled_uses in the same order as when writing.
13140 2013-05-21  Magnus Granberg  <baldrick@free.fr>
13142         PR plugins/56754
13143         * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
13145 2013-05-21  Richard Biener  <rguenther@suse.de>
13147         PR tree-optimization/57318
13148         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
13149         estimate stmts with side-effects as likely eliminated.
13151 2013-05-21  Richard Biener  <rguenther@suse.de>
13153         PR tree-optimization/57330
13154         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
13155         preserve the call stmts fntype.
13157 2013-05-21  Richard Biener  <rguenther@suse.de>
13159         PR tree-optimization/57303
13160         * tree-ssa-sink.c (statement_sink_location): Improve killing
13161         stmt detection and properly handle self-assignments.
13163 2013-05-21  Christian Bruel  <christian.bruel@st.com>
13165         * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
13166         spanning registers. LEAF_REG_REMAP is supported only for contiguous
13167         registers. Set register size out of the PARALLEL loop.
13169 2013-05-20  Oleg Endo  <olegendo@gcc.gnu.org>
13171         PR target/56547
13172         * config/sh/sh.md (fmasf4): Remove empty constraints strings.
13173         (*fmasf4, *fmasf4_media): New insns.
13175 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
13177         * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
13178         * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
13179         (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
13180         (mips_idiv_insns): Update the comments to say that the returned
13181         instruction counts are in units of BASE_INSN_LENGTH.
13182         (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
13183         by BASE_INSN_LENGTH rather than 4.  Add the jump separately,
13184         using 2 rather than 4 as the length of indirect MIPS16 and
13185         microMIPS jumps.  Use NOP_INSN_LENGTH rather than 4 as the
13186         length of a NOP.  Don't divide MIPS16 lengths by 2.
13187         (mips16_split_long_branches): Assume a branch is long if the
13188         length is greater than 4 rather than 8.
13189         * config/mips/mips.md (length): Give MIPS16 lengths directly,
13190         rather than multiplying them by 2.  Multiply instruction counts
13191         by BASE_INSN_LENGTH rather than 4.
13192         (*jump_mips16, tls_get_tp_mips16_<mode>)
13193         (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
13195 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
13197         * config/mips/mips.md (extended_mips16): Remove branch case.
13198         (length): Remove duplicated extended_mips16 test.
13200 2013-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
13202         * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
13204 2013-05-18  Richard Sandiford  <rdsandiford@googlemail.com>
13206         * recog.h (Recog_data): Rename to...
13207         (recog_data_d): ...this.
13208         (recog_data): Update accordingly.
13209         * recog.c (recog_data): Likewise.
13210         * reload.c (save_recog_data): Likewise.
13211         * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
13212         (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
13214 2013-05-17  Julian Brown  <julian@codesourcery.com>
13216         * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
13217         found in a REG_EQUAL note, invalidate it.
13219 2013-05-17  Easwaran Raman  <eraman@google.com>
13221         * tree-ssa-reassoc.c (find_insert_point): New function.
13222         (insert_stmt_after): Likewise.
13223         (get_def_stmt): Likewise.
13224         (ensure_ops_are_available): Likewise.
13225         (not_dominated_by): Likewise.
13226         (rewrite_expr_tree): Do not move statements beyond what is
13227         necessary. Remove call to swap_ops_for_binary_stmt...
13228         (reassociate_bb): ... and move it here.
13229         (build_and_add_sum): Assign UIDs for new statements.
13230         (linearize_expr): Likewise.
13231         (do_reassoc): Renumber gimple statement UIDs.
13233 2013-05-17  Jan Hubicka  <jh@suse.cz>
13235         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
13236         weakrefs.
13237         * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
13238         * cgraphunit.c (handle_alias_pairs): Store target of unresolved
13239         weakrefs.
13240         (output_weakrefs): Update.
13242 2013-05-17  Po-Chun Chang  <pchang9@cs.wisc.edu>
13243             Martin Jambor  <mjambor@suse.cz>
13245         PR middle-end/57276
13246         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
13247         value that corresponds to the given aggval is found in values vector.
13249 2013-05-17  Uros Bizjak  <ubizjak@gmail.com>
13251         * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
13252         sse, sse2, sse3, ssse3 and sse4a flags to options.
13254 2013-05-17  David Malcolm  <dmalcolm@redhat.com>
13256         * gengtype-state.c: (s_expr_writer): New class, to handle
13257         prettifying of output layout of s-expressions.
13258         (state_writer): New class, to write out gtype.state.
13259         (state_written_type_count): Move this variable into member data of
13260         state_writer.
13261         (s_expr_writer::s_expr_writer): New code: constructor for new class
13262         (state_writer::state_writer(): ditto
13263         (s_expr_writer::write_new_line): New function
13264         (s_expr_writer::write_any_indent): ditto
13265         (s_expr_writer::begin_s_expr): ditto
13266         (s_expr_writer::end_s_expr): ditto
13267         (write_state_fileloc): convert to method of state_writer...
13268         (state_writer:: write_state_fileloc): ...and use methods of
13269         s_expr_writer to write indentation into the gtype.state output file
13270         to visually represent the hierarchical structure of the list
13271         structures
13272         (write_state_fields): ditto, renaming to...
13273         (state_writer::write_state_fields)
13274         (write_state_a_string): ditto, renaming to...
13275         (state_writer::write_state_a_string)
13276         (write_state_string_option): ditto, renaming to...
13277         (state_writer::write_state_string_option)
13278         (write_state_type_option): ditto, renaming to...
13279         (state_writer::write_state_type_option)
13280         (write_state_nested_option): ditto, renaming to...
13281         (state_writer::write_state_nested_option)
13282         (write_state_option): ditto, renaming to...
13283         (state_writer::write_state_option)
13284         (write_state_options): ditto, renaming to...
13285         (state_writer::write_state_options)
13286         (write_state_lang_bitmap): ditto, renaming to...
13287         (state_writer::write_state_lang_bitmap)
13288         (write_state_version): ditto, renaming to...
13289         (state_writer::write_state_version)
13290         (write_state_scalar_type): ditto, renaming to...
13291         (state_writer::write_state_scalar_type)
13292         (write_state_string_type): ditto, renaming to...
13293         (state_writer::write_state_string_type)
13294         (write_state_undefined_type): ditto, renaming to...
13295         (state_writer::write_state_undefined_type)
13296         (write_state_struct_union_type): ditto, renaming to...
13297         (state_writer::write_state_struct_union_type)
13298         (write_state_struct_type): ditto, renaming to...
13299         (state_writer::write_state_struct_type)
13300         (write_state_user_struct_type): ditto, renaming to...
13301         (state_writer::write_state_user_struct_type)
13302         (write_state_lang_struct_type): ditto, renaming to...
13303         (state_writer::write_state_lang_struct_type)
13304         (write_state_param_struct_type): ditto, renaming to...
13305         (state_writer::write_state_param_struct_type)
13306         (write_state_pointer_type): ditto, renaming to...
13307         (state_writer::write_state_pointer_type)
13308         (write_state_array_type): ditto, renaming to...
13309         (state_writer::write_state_array_type)
13310         (write_state_gc_used): ditto, renaming to...
13311         (state_writer::write_state_gc_used)
13312         (write_state_common_type_content): ditto, renaming to...
13313         (state_writer::write_state_common_type_content)
13314         (write_state_type): ditto, renaming to...
13315         (state_writer::write_state_type)
13316         (write_state_pair_list): ditto, renaming to...
13317         (state_writer::write_state_pair_list)
13318         (write_state_pair): ditto, renaming to...
13319         (state_writer::write_state_pair)
13320         (write_state_typedefs): ditto, renaming to...
13321         (state_writer::write_state_typedefs)
13322         (write_state_structures): ditto, renaming to...
13323         (state_writer::write_state_structures)
13324         (write_state_param_structs): ditto, renaming to...
13325         (state_writer::write_state_param_structs)
13326         (write_state_variables): ditto, renaming to...
13327         (state_writer::write_state_variables)
13328         (write_state_srcdir): ditto, renaming to...
13329         (state_writer::write_state_srcdir)
13330         (write_state_files_list): ditto, renaming to...
13331         (state_writer::write_state_files_list)
13332         (write_state_languages): ditto, renaming to...
13333         (state_writer::write_state_languages)
13334         (write_state): create a state_writer instance and use it when
13335         writing out the state file
13337 2013-05-17  Mike Stump  <mikestump@comcast.net>
13339         PR rtl-optimization/57304
13340         * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
13341         accessing DF_REF_REAL_LOC.
13343 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
13345         PR rtl-optimization/57281
13346         PR rtl-optimization/57300
13347         * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
13348         (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
13349         what the other splitter did if the registers are dead.
13351 2013-05-17  Richard Biener  <rguenther@suse.de>
13353         * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
13354         MEM_REF offsets.
13356 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
13358         * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
13359         linking.
13361 2013-05-17  Marek Polacek  <polacek@redhat.com>
13363         * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
13364         length when doing non-zero store of storing '\0' to '\0'.
13366 2013-05-17  Jakub Jelinek  <jakub@redhat.com>
13368         * tree-vect-patterns.c (vect_recog_rotate_pattern): For
13369         vect_external_def oprnd1 with loop_vinfo, try to emit
13370         optional cast, negation and and stmts on the loop preheader
13371         edge instead of into the pattern def seq.
13373         PR tree-optimization/57051
13374         * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
13375         case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
13377 2013-05-16  Nick Clifton  <nickc@redhat.com>
13379         * config/rl78/rl78.c (rl78_attribute_table): Add naked.
13380         (rl78_is_naked_func): New function.
13381         (rl78_expand_prologue): Skip prologue generation for naked functions.
13382         (rl78_expand_epilogue): Skip epilogue generation for naked functions.
13383         * doc/extend.texi (naked): Add RL78 to the list of processors
13384         that supports this attribute.
13386 2013-05-16  Jeff Law  <law@redhat.com>
13388         * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
13390 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
13392         * config/i386/driver-i386.c (host_detect_local_cpu): Determine
13393         cache parameters using detect_caches_amd also for CYRIX,
13394         NSC and TM2 signatures.
13396 2013-05-16  Uros Bizjak  <ubizjak@gmail.com>
13397             Dzianis Kahanovich  <mahatma@eu.by>
13399         PR target/45359
13400         PR target/46396
13401         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13402         VIA/Centaur processors and determine their cache parameters
13403         using detect_caches_amd.
13405 2013-05-16  Teresa Johnson  <tejohnson@google.com>
13407         * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
13408         (rtl_verify_edges): New function.
13409         (rtl_verify_bb_insns): Ditto.
13410         (rtl_verify_bb_pointers): Ditto.
13411         (rtl_verify_bb_insn_chain): Ditto.
13412         (rtl_verify_fallthru): Ditto.
13413         (rtl_verify_bb_layout): Ditto.
13414         (rtl_verify_flow_info_1): Outline checks into new functions.
13415         (rtl_verify_flow_info): Ditto.
13417 2013-05-16  Steve Ellcey  <sellcey@imgtec.com>
13419         * cfghooks.c (copy_bbs): Add update_dominance argument.
13420         * cfghooks.h (copy_bbs): Update prototype.
13421         * tree-cfg.c (gimple_duplicate_sese_region):
13422         Add update_dominance argument.
13423         * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
13424         * tree-ssa-loop-ch.c (copy_loop_headers): Update
13425         gimple_duplicate_sese_region call.
13426         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
13427         Update copy_bbs call.
13428         * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
13429         * trans-mem.c (ipa_uninstrument_transaction): Ditto.
13431 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
13433         * tree-vectorizer.h (NUM_PATTERNS): Increment.
13434         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
13435         vect_recog_rotate_pattern.
13436         (vect_recog_rotate_pattern): New function.
13438 2013-05-16  Jason Merrill  <jason@redhat.com>
13440         * Makefile.in (LLINKER): New variable.
13441         (mostlyclean): Remove link mutex.
13442         * configure.ac: Handle --enable-link-mutex.
13443         * lock-and-run.sh: New script.
13445 2013-05-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13447         PR target/19599
13448         * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
13449         for NULL decl.
13451 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13453         * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
13455 2013-05-16  Greta Yorsh  <Greta.Yorsh@arm.com>
13457         * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
13458         * config/arm/arm.c (next_consecutive_mem): New function.
13459         (gen_movmem_ldrd_strd): Likewise.
13460         * config/arm/arm.md (movmemqi): Update condition and code.
13461         (unaligned_loaddi, unaligned_storedi): New patterns.
13463 2013-05-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13465         * config.gcc: Obsolete *-*-solaris2.9*.
13466         * doc/install.texi (Specific, *-*-solaris2*): Document it.
13468 2013-05-16  Richard Biener  <rguenther@suse.de>
13470         * passes.c (init_optimization_passes): Move pass_parallelize_loops
13471         earlier, after GRAPHITE transforms and IV canonicalization.
13473 2013-05-16  Jakub Jelinek  <jakub@redhat.com>
13475         * omp-low.c (extract_omp_for_data): For collapsed loops,
13476         if at least one of the loops is known at compile time to
13477         iterate zero times, set count to 0.
13478         (expand_omp_regimplify_p): New function.
13479         (expand_omp_for_generic): For collapsed loops, if at least
13480         one of the loops isn't known to iterate at least once,
13481         add runtime check with setting count to 0.
13482         (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
13483         For unsigned types if it isn't known at compile time that
13484         the loop will iterate at least once, add runtime check to bypass
13485         the whole loop if initial condition isn't true.
13487 2013-05-16  Nathan Sidwell  <nathan@codesourcery.com>
13489         * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
13491 2013-05-16  Marc Glisse  <marc.glisse@inria.fr>
13493         PR middle-end/57286
13494         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
13495         transformations to avoid an infinite loop.
13497 2013-05-16  Marek Polacek  <polacek@redhat.com>
13499         * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
13501 2013-05-15  Leif Ekblad  <leif@rdos.net>
13503         * config/i386/i386.c (ix86_decompose_address): Use
13504         DEFAULT_TLS_SEG_REG to access TLS segment register.
13505         * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
13506         * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
13507         (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
13509 2013-05-15  Richard Sandiford  <rdsandiford@googlemail.com>
13511         PR target/57260
13512         * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
13513         sibling calls to functions that would normally be lazily bound,
13514         unless $gp is call-clobbered.
13516 2013-05-15  Uros Bizjak  <ubizjak@gmail.com>
13518         * config/i386/i386.c (ix86_option_override_internal): Update
13519         processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags.  Add
13520         PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
13521         non-SSE 3dNow! targets.  Enable TARGET_PRFCHW for TARGET_3DNOW targets.
13522         * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
13523         of TARGET_3DNOW.
13524         (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
13526 2013-05-15  Andreas Schwab  <schwab@suse.de>
13528         * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
13529         for rotlhi3+1 and rotlqi3+1, resp.  Fix reference to non-existing
13530         third operand.
13532 2013-05-15  Teresa Johnson  <tejohnson@google.com>
13534         * loop-unroll.c (report_unroll_peel): Check decision before
13535         emitting unroll/peel message.
13537 2013-05-15  Teresa Johnson  <tejohnson@google.com>
13539         * function.h (has_bb_partition): New rtl_data flag.
13540         (bb_reorder_complete): Ditto.
13541         * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
13542         instead of flag_reorder_blocks_and_partition.
13543         * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
13544         with some enhancements.
13545         (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
13546         * bb-reorder.c (connect_traces): Check for has_bb_partition
13547         instead of flag_reorder_blocks_and_partition.
13548         (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
13549         (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
13550         verify_hot_cold_block_grouping.
13551         (partition_hot_cold_basic_blocks): Set has_bb_partition.
13553 2013-05-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
13555         PR target/19599
13556         * config/arm/predicates.md (call_insn_operand): New predicate.
13557         * config/arm/constraints.md ("Cs", "Ss"):  New constraints.
13558         * config/arm/arm.md (*call_insn, *call_value_insn): Match only
13559         if insn is not a tail call.
13560         (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
13561         registers.
13562         * config/arm/arm.h (enum reg_class): New caller save register class.
13563         (REG_CLASS_NAMES): Likewise.
13564         (REG_CLASS_CONTENTS): Likewise.
13565         * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
13566         without decls.
13568 2013-05-15  Richard Biener  <rguenther@suse.de>
13570         * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
13571         of MSG_OPTIMIZED_LOCATIONS.
13572         * tree-vect-slp.c (vect_make_slp_decision): Likewise.
13573         (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
13574         message.
13575         * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
13576         of MSG_OPTIMIZED_LOCATIONS.
13577         (execute_vect_slp): Likewise.
13578         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
13579         (vect_create_cond_for_alias_checks): Likewise.
13580         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
13581         (vect_recog_widen_mult_pattern): Likewise.
13582         (vect_recog_widen_sum_pattern): Likewise.
13583         (vect_recog_over_widening_pattern): Likewise.
13584         (vect_recog_widen_shift_pattern): Likewise.
13585         (vect_recog_vector_vector_shift_pattern): Likewise.
13586         (vect_recog_divmod_pattern): Likewise.
13587         (vect_recog_mixed_size_cond_pattern): Likewise.
13588         (vect_recog_bool_pattern): Likewise.
13589         (vect_pattern_recog_1): Likewise.
13591 2013-05-15  Martin Jambor  <mjambor@suse.cz>
13593         * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
13594         non-functions to builtin_unreachable.
13595         * ipa-inline-transform.c (inline_call): Do not assert estimates were
13596         correct when new direct edges were discovered.
13598 2013-05-15  Martin Jambor  <mjambor@suse.cz>
13600         * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
13601         header, print symbol order instead of node uid, print more information
13602         about indirect edge targets.
13603         (ipa_make_edge_direct_to_target): Print symbol order instead of node
13604         uids.
13605         (ipa_make_edge_direct_to_target): Likewise.
13606         (remove_described_reference): Likewise.
13607         (propagate_controlled_uses): Likewise.
13608         (ipa_print_node_params): Also print symbol order.
13609         (ipcp_transform_function): Print symbol order instead of node uids.
13610         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
13611         (cgraph_get_create_real_symbol_node): Likewise.
13612         * ipa-cp.c (print_lattice): Likewise.
13613         (print_all_lattices): Likewise.
13614         (determine_versionability): Likewise.
13615         (initialize_node_lattices): Likewise.
13616         (estimate_local_effects): Likewise.
13617         (update_profiling_info): Likewise.
13618         (create_specialized_node): Likewise.
13619         (perhaps_add_new_callers): Likewise.
13620         (decide_about_value): Likewise.
13621         (decide_whether_version_node): Likewise.
13622         (identify_dead_nodes): Likewise.
13623         * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
13624         (dump_inline_summary): Likewise.
13625         (estimate_node_size_and_time): Likewise.
13626         (inline_analyze_function): Likewise.
13627         * ipa-inline.c (report_inline_failed_reason): Likewise.
13628         (want_early_inline_function_p): Likewise.
13629         (edge_badness): Likewise.
13630         (update_edge_key): Likewise.
13631         (inline_small_functions): Likewise.  Add dumping of order to two other
13632         dumps.
13633         * ipa-pure-const.c (pure_const_read_summary): Print symbol order
13634         instead of node uids.
13635         (propagate_pure_const): Likewise.
13636         (propagate_pure_const): Likewise.
13637         * ipa-utils.c (dump_cgraph_node_set): Likewise.
13638         * lto-cgraph.c (input_node): Explicitly specify we dump uid.
13639         * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
13640         of node uids.
13641         * tree-pretty-print.c (dump_function_header): Likewise.
13642         * tree-sra.c (convert_callers_for_node): Dump in traditional format.
13643         Print symbol order instead of node uids.
13645 2013-05-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13647         * config/s390/s390.c (s390_register_move_cost): Don't impose the
13648         FPR<->GPR move cost penalty if ldgr/lgdr can be used.
13650 2013-05-15  Richard Biener  <rguenther@suse.de>
13652         PR tree-optimization/57275
13653         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
13654         return value for fail to do runtime alias checks for gather loads.
13656 2013-05-15  Jan Hubicka  <jh@suse.cz>
13658         PR lto/57038
13659         PR lto/47375
13660         * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
13661         weakrefs are not external.
13662         (lto_symtab_merge_decls): Fix thinko when dealing with
13663         non-lto_symtab decls.
13664         (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
13665         (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
13666         * varpool.c (dump_varpool_node): Dump more flags.
13668 2013-05-15  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
13670         * config/i386/i386.c (processor_alias_table): Add instruction
13671         FSGSBASE for AMD bdver3 architecture.
13673 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
13675         * tree.c (warn_deprecated_use): Print file:line using locus color.
13676         * diagnostic.c (diagnostic_report_current_module): Print file:line
13677         and file:line:column using locus color.
13679 2013-05-14  Mike Stump  <mikestump@comcast.net>
13681         * gdbinit.in: Add __null.
13683 2013-05-14  Mike Stump  <mikestump@comcast.net>
13685         * recog.h: Rename struct recog_data to Recog_data.
13686         * recog.c: Likewise.
13687         * reload.c (can_reload_into): Likewise.
13688         * config/picochip/picochip.c: Likewise.
13690 2013-05-14  Mike Stump  <mikestump@comcast.net>
13692         * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
13694 2013-05-14  Steven Bosscher  <steven@gcc.gnu.org>
13696         * resource.h (struct resources): Remove unch_memory member.
13697         (CLEAR_RESOURCE): Don't clear unch_memory.
13698         * resource.c (mark_referenced_resources): Don't set it.
13699         (mark_set_resources): Likewise.
13700         (mark_target_live_regs): Don't clear it.
13701         (init_resource_info): Likewise.
13702         * reorg.c (resource_conflicts_p): Don't compare it.
13703         (redundant_insn): Don't set it.
13705         * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
13706         Remove prototypes.
13707         * emit-rtl.c (next_label): Remove unused function.
13708         (skip_consecutive_labels, link_cc0_insns): Move to ...
13709         * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
13710         only place where these functions are used, and make them static.
13712 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
13714         * fold-const.c (fold_negate_expr): Handle vectors.
13715         (fold_truth_not_expr): Make it static.
13716         (fold_invert_truthvalue): New static function.
13717         (invert_truthvalue_loc): Handle vectors. Do not call
13718         fold_truth_not_expr directly.
13719         (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
13720         <TRUTH_NOT_EXPR>: Do not cast to boolean.
13721         (fold_comparison): Handle vector constants.
13722         (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
13723         (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
13724         * tree.h (fold_truth_not_expr): Remove declaration.
13726 2013-05-14  James Greenhalgh  <james.greenhalgh@arm.com>
13728         * config/aarch64/aarch64-simd.md
13729         (aarch64_vcond_internal<mode>): Rename to...
13730         (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
13731         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
13732         float modes. Clarify all iterator modes.
13733         (vcond<mode><mode>): Use new name for vcond expanders.
13734         (vcond<v_cmp_result><mode>): Likewise.
13735         (vcondu<mode><mode>: Likewise.
13736         * config/aarch64/iterators.md (VDQF_COND): New.
13738 2013-05-14  Marc Glisse  <marc.glisse@inria.fr>
13740         PR bootstrap/57266
13741         * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
13742         variable for the shift amount. Check that we shift by non-negative
13743         amounts.
13745 2013-05-14  Chung-Lin Tang  <cltang@codesourcery.com>
13747         PR target/42017
13748         * config/arm/arm.h (EPILOGUE_USES): Only return true
13749         for LR_REGNUM after epilogue_completed.
13751 2013-05-14  Joern Rennecke  <joern.rennecke@embecosm.com>
13753         * config/avr/avr.c (avr_encode_section_info): Bail out if the type
13754         is error_mark_node.
13756 2013-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13758         PR target/57261
13759         * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
13760         and Solaris 11+/x86 with gld.
13761         * configure: Regenerate.
13763 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
13765         * expmed.c (expand_shift_1): Canonicalize rotates by
13766         constant bitsize / 2 to bitsize - 1.
13767         * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
13768         case ROTATERT>: Likewise.
13770         Revert:
13771         2013-05-10  Jakub Jelinek  <jakub@redhat.com>
13773         * config/i386/i386.md (rotateinv): New code attr.
13774         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
13775         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
13776         roll $31, %eax, etc.
13778 2013-05-14  Richard Biener  <rguenther@suse.de>
13780         PR middle-end/57235
13781         * tree-eh.c (sink_clobbers): Give up for successors with
13782         multiple predecessors and no virtual uses.
13784 2013-05-14  Eric Botcazou  <ebotcazou@adacore.com>
13786         * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
13787         * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
13789 2013-05-14  Jakub Jelinek  <jakub@redhat.com>
13791         PR middle-end/57251
13792         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
13793         the case when both op0 and op1 have VOIDmode.
13795 2013-05-14  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
13797         * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
13798         in multiply-accumulate mode.
13800 2013-05-13  Guozhi Wei  <carrot@google.com>
13802         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
13804 2013-05-13  Kai Tietz  <ktietz@redhat.com>
13806         PR target/56975
13807         * config/i386/cygming.h (TARGET_PECOFF): Define as true.
13808         * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
13809         (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
13810         * config/i386/i386.c (ix86_option_override_internal): Likewise.
13811         (ix86_expand_prologue): Likewise.
13812         (ix86_expand_split_stack_prologue): Likewise.
13813         (legitimate_pic_address_disp_p): Likewise.
13814         (legitimize_pic_address): Likewise.
13815         (legitimize_tls_address): Likewise.
13816         (legitimize_pe_coff_symbol): Likewise.
13817         (output_pic_addr_const): Likewise.
13818         (construct_plt_address): Likewise.
13819         (ix86_expand_call): Likewise.
13820         (x86_output_mi_thunk): Likewise.
13821         (x86_function_profiler): Likewise.
13823 2013-05-13  Sofiane Naci  <sofiane.naci@arm.com>
13825         * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
13826         similar switch cases.
13827         (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
13828         (aarch64_simd_mov_to_<mode>low): Delete.
13829         (aarch64_simd_mov_to_<mode>high): Delete.
13830         (move_lo_quad_<mode>): Add w<-r alternative.
13831         (aarch64_simd_move_hi_quad_<mode>): Likewise.
13832         (aarch64_simd_mov_from_*): Update type attribute.
13833         * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
13834         statement.
13836 2013-05-13  Jan Hubicka  <jh@suse.cz>
13838         * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
13839         * config/i386/i386.c (ix86_compute_frame_layout,
13840         ix86_expand_epilogue, emit_i387_cw_initialization,
13841         ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
13842         ix86_local_alignment): Fix use of size/speed predicates.
13844 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
13846         PR tree-optimization/45216
13847         PR tree-optimization/57157
13848         * tree-ssa-forwprop.c (simplify_rotate): Only recognize
13849         the (-Y) & (B - 1) variant if OP is |.
13850         * expmed.c (expand_shift_1): For rotations by const0_rtx just
13851         return shifted.  Use (-op1) & (prec - 1) as other_amount
13852         instead of prec - op1.
13854 2013-05-13  Martin Jambor  <mjambor@suse.cz>
13856         PR middle-end/42371
13857         * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
13858         (ipa_constant_data): New type.
13859         (ipa_jump_func): Use ipa_constant_data to hold information about
13860         constant jump functions.
13861         (ipa_get_jf_constant): Adjust to jump function type changes.
13862         (ipa_get_jf_constant_rdesc): New function.
13863         (ipa_param_descriptor): New field controlled_uses.
13864         (ipa_get_controlled_uses): New function.
13865         (ipa_set_controlled_uses): Likewise.
13866         * ipa-ref.h (ipa_find_reference): Declare.
13867         * ipa-prop.c (ipa_cst_ref_desc): New type.
13868         (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
13869         changes.
13870         (ipa_set_jf_constant): Likewise.  Also create reference descriptions.
13871         New parameter cs.  Adjust all callers.
13872         (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
13873         (remove_described_reference): New function.
13874         (jfunc_rdesc_usable): Likewise.
13875         (try_make_edge_direct_simple_call): Decrement controlled use count,
13876         attempt to remove reference if it hits zero.
13877         (combine_controlled_uses_counters): New function.
13878         (propagate_controlled_uses): Likewise.
13879         (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
13880         (ipa_edge_duplication_hook): Duplicate reference descriptions.
13881         (ipa_print_node_params): Print described use counter.
13882         (ipa_write_jump_function): Adjust to jump function type changes.
13883         (ipa_read_jump_function): New parameter CS, pass it to
13884         ipa_set_jf_constant.  Adjust caller.
13885         (ipa_write_node_info): Stream controlled use count
13886         (ipa_read_node_info): Likewise.
13887         * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
13888         asserting.
13889         * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
13890         count.  Remove cloning-added reference if it reaches zero.
13891         * ipa-ref.c (ipa_find_reference): New function.
13893 2013-05-13  Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
13895         * config/i386/i386.c (processor_target_table): Modified default
13896         alignment values for AMD BD and BT architectures.
13898 2013-05-13  Marc Glisse  <marc.glisse@inria.fr>
13900         * tree-vect-generic.c (uniform_vector_p): Move ...
13901         * tree.c (uniform_vector_p): ... here.
13902         * tree.h (uniform_vector_p): Declare it.
13903         * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
13904         into a scalar.
13906 2013-05-13  Jakub Jelinek  <jakub@redhat.com>
13908         PR tree-optimization/57230
13909         * tree-ssa-strlen.c (handle_char_store): Record length for
13910         array store from STRING_CST.
13912         PR tree-optimization/57230
13913         * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
13914         check.
13916 2013-05-12  Joern Rennecke  <joern.rennecke@embecosm.com>
13918         * config/epiphany/epiphany.c (epiphany_init): Check size of
13919         NUM_MODES_FOR_MODE_SWITCHING.
13920         (epiphany_expand_prologue):
13921         Remove CONFIG_REGNUM initial value handling code.
13922         (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
13923         (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
13924         (emit_set_fp_mode, epiphany_mode_after): Likewise.
13925         (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
13926         Don't return 1 for FP_MODE_NONE.
13927         * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
13928         Add value for EPIPHANY_MSW_ENTITY_CONFIG.
13929         (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
13930         * config/epiphany/epiphany.md (save_config): New pattern.
13932 2013-05-12  Uros Bizjak  <ubizjak@gmail.com>
13934         * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
13936 2013-05-10  Uros Bizjak  <ubizjak@gmail.com>
13938         * config/i386/i386.md (memory): Handle sseishft1.
13939         * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
13940         (*vec_extractv2di_1): Ditto.
13942 2013-05-10  Vladimir Makarov  <vmakarov@redhat.com>
13944         * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
13945         saved registers.
13947 2013-05-10  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13949         * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
13950         Add mthumb/march=armv7-a multilib.
13951         Add mthumb/march=armv7-r multilib.
13952         Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
13954 2013-05-10  Ralf Corsépius  <ralf.corsepius@rtems.org>
13956         * config/v850/t-rtems: Add more multilibs.
13958 2013-05-10  Richard Biener  <rguenther@suse.de>
13960         PR tree-optimization/57214
13961         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
13962         not propagate from SSA names that occur in abnormal PHI nodes.
13964 2013-05-10  Marc Glisse  <marc.glisse@inria.fr>
13966         * stor-layout.c (element_precision): New function.
13967         * machmode.h (element_precision): Declare it.
13968         * tree.c (build_minus_one_cst): New function.
13969         (element_precision): Likewise.
13970         * tree.h (build_minus_one_cst): Declare new function.
13971         (element_precision): Likewise.
13972         * fold-const.c (operand_equal_p): Use element_precision.
13973         (fold_binary_loc): Handle vector types.
13974         * convert.c (convert_to_integer): Use element_precision.
13975         * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
13976         separately.
13978 2013-05-10  Richard Sandiford  <rdsandiford@googlemail.com>
13980         * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
13981         (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
13982         (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
13983         (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
13984         * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
13985         (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
13986         (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
13987         (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
13988         * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
13989         (Uuw8): New constraints.
13990         (Usb4): Move into alphabetical order.
13991         * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
13992         (sd8_operand, ub8_operand, uw8_operand): New predicates.
13993         * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
13994         previously unnamed patterns.
13995         (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
13996         (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
13997         (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
13998         (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
13999         of set_attr_alternative/if_then_else.  Use extended_mips16 instead
14000         of specific lengths.
14002 2013-05-10  Jakub Jelinek  <jakub@redhat.com>
14004         * config/i386/i386.md (rotateinv): New code attr.
14005         (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
14006         *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
14007         roll $31, %eax, etc.
14009         PR tree-optimization/45216
14010         PR tree-optimization/57157
14011         * tree-ssa-forwprop.c (simplify_rotate): New function.
14012         (ssa_forward_propagate_and_combine): Call it.
14014 2013-05-10  Richard Biener  <rguenther@suse.de>
14016         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
14017         disable peeling when we version for aliasing.
14018         (vector_alignment_reachable_p): Honor explicit user alignment.
14019         (vect_supportable_dr_alignment): Likewise.
14020         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
14021         STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
14022         * tree-vect-loop.c (vect_transform_loop): First apply versioning,
14023         then peeling to arrange for the cost-model check to come first.
14025 2013-05-10  Alan Modra  <amodra@gmail.com>
14027         * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
14028         (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
14029         * configure: Regenerate.
14031 2013-05-10  Alan Modra  <amodra@gmail.com>
14033         PR target/55033
14034         * varasm.c (default_elf_select_section): Move !DECL_P check..
14035         (get_named_section): ..to here before calling get_section_name.
14036         Adjust assertion.
14037         (default_section_type_flags): Add DECL_P check.
14038         * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
14039         * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
14041 2013-05-09  Joern Rennecke  <joern.rennecke@embecosm.com>
14043         * config/epiphany/epiphany.c (epiphany_expand_prologue):
14044         When using gen_stack_adjust_str with a register offset, add a
14045         REG_FRAME_RELATED_EXPR note.
14047 2013-05-09  Uros Bizjak  <ubizjak@gmail.com>
14049         * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
14050         (*vec_extractv4si_zext_mem): Ditto.
14051         (*vec_extractv2di): Add 0->x and x->x alternatives.
14052         * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
14053         * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
14055 2013-05-09  Jason Merrill  <jason@redhat.com>
14057         N3639 C++1y VLA support
14058         * gimplify.c (gimplify_vla_decl): Don't touch an existing
14059         DECL_VALUE_EXPR.
14061         * tree.c (build_constructor_va): New.
14062         * tree.h: Declare it.
14064 2013-05-09  Martin Jambor  <mjambor@suse.cz>
14066         PR lto/57084
14067         * gimple-fold.c (canonicalize_constructor_val): Call
14068         cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
14070 2013-05-09  Jan Hubicka  <jh@suse.cz>
14071             Richard Biener  <rguenther@suse.de>
14073         PR lto/54095
14074         * symtab.c (symtab_make_decl_local): Do not add private names.
14076 2013-05-09  Jan Hubicka  <jh@suse.cz>
14078         PR lto/54095
14079         * symtab.c (insert_to_assembler_name_hash): Handle clones.
14080         (unlink_from_assembler_name_hash): Likewise.
14081         (symtab_prevail_in_asm_name_hash, symtab_register_node,
14082         symtab_unregister_node, symtab_initialize_asm_name_hash,
14083         change_decl_assembler_name): Update.
14085 2013-05-09  Sofiane Naci  <sofiane.naci@arm.com>
14087         * config/aarch64/aarch64.md: New movtf split.
14088         (*movtf_aarch64): Update.
14089         (aarch64_movdi_tilow): Handle TF modes and rename to
14090         aarch64_movdi_<mode>low.
14091         (aarch64_movdi_tihigh): Handle TF modes and rename to
14092         aarch64_movdi_<mode>high
14093         (aarch64_movtihigh_di): Handle TF modes and rename to
14094         aarch64_mov<mode>high_di
14095         (aarch64_movtilow_di): Handle TF modes and rename to
14096         aarch64_mov<mode>low_di
14097         (aarch64_movtilow_tilow): Remove spurious whitespace.
14098         * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
14099         splits.
14100         (aarch64_print_operand): Update.
14102 2013-05-09  Alan Modra  <amodra@gmail.com>
14104         * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
14105         powerpc64le.
14106         * configure: Regenerate.
14108 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
14110         * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
14111         splitter preparation statements.
14112         * config/i386/sse.md (*vec_extract* splitters): Ditto.
14113         (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
14114         adjust_address_nv.
14116 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14118         * gimple-ssa-strength-reduction.c (count_candidates): Change
14119         return value to int.
14120         (analyze_candidates_and_replace): Change type of length to int.
14122 2013-05-08  Uros Bizjak  <ubizjak@gmail.com>
14124         * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
14125         (*vec_extract<mode>): Use VI12_128 mode iterator.
14126         (*vec_extract<mode>_mem): Ditto.
14127         (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
14128         attribute.
14130 2013-05-08  Diego Novillo  <dnovillo@google.com>
14132         PR bootstrap/54659
14134         Revert:
14135         2012-08-17  Diego Novillo  <dnovillo@google.com>
14137         PR bootstrap/54281
14138         * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
14139         * config.in: Regenerate.
14140         * configure: Regenerate.
14141         * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
14143 2013-05-08  Jan Hubicka  <jh@suse.cz>
14145         PR lto/54095
14146         * cgraph.c (cgraph_make_node_local_1): Se unique_name.
14147         * cgraph.h (symtab_node_base): Add unique_name.
14148         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
14149         input_overwrite_node, input_varpool_node): Stream unique_name.
14150         * cgraphclones.c (cgraph_create_virtual_clone,
14151         cgraph_function_versioning): Set unique_name.
14152         * ipa.c (function_and_variable_visibility): Set unique_name.
14154 2013-05-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14156         * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
14157         (alloc_cand_and_find_basis): Restrict conditional candidate
14158         processing to CAND_MULTs.
14160 2013-05-08  Jan Hubicka  <jh@suse.cz>
14162         PR lto/54095
14163         lto-symtab.c (lto_symtab_symbol_p): New function.
14164         (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
14165         lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
14166         lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
14167         Skip static symbols.
14169 2013-05-08  Paolo Carlini  <paolo.carlini@oracle.com>
14171         PR tree-optimization/57200
14172         * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
14173         Only call inform if the preceding warning_at returns true.
14175 2013-05-07  Han Shen  <shenhan@google.com>
14177         * cfgexpand.c (record_or_union_type_has_array_p): New function.
14178         (expand_used_vars): Add logic handling '-fstack-protector-strong'.
14179         * common.opt (fstack-protector-strong): New option.
14180         * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
14181         * doc/invoke.texi (Optimization Options): Document
14182         "-fstack-protector-strong".
14183         * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
14185 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
14187         * config/mips/mips.c (mips_machine_reorg2): Return 0.
14189 2013-05-07  Vladimir Makarov  <vmakarov@redhat.com>
14191         * ira.c (update_equiv_regs): Add insn having equiv memory even if
14192         it is not lhs of the insn.
14193         (setup_reg_equiv): Remove insn having equiv memory which it is not
14194         lhs of the insn.
14195         * lra-constraints.c (process_address): Try to improve generation
14196         code for address base + disp.
14197         (lra_constraints): Make correct the code for checking insn setting
14198         up backward equivalence.  Remove insn only if it is in the init
14199         insn list.
14200         * lra-eliminations.c (update_reg_eliminate): Change return value.
14201         (lra_eliminate): Use the result.
14203 2013-05-07  Uros Bizjak  <ubizjak@gmail.com>
14205         * config/i386/sse.md (ssescalarnummask): New mode attribute.
14206         (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
14207         (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
14208         *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
14209         register target operands.
14210         (*vec_extractv8hi_sse2): New pattern.
14211         (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
14212         (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
14213         (*vec_extract<mode>_mem): New insn and split pattern.
14215 2013-05-07  Christophe Lyon  <christophe.lyon@linaro.org>
14217         * config/arm/arm.c (arm_asan_shadow_offset): New function.
14218         (TARGET_ASAN_SHADOW_OFFSET): Define.
14219         * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
14220         (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
14222 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14224         * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
14225         (incr_vec_index): Return -1 if increment not found.
14226         (create_add_on_incoming_edge): Assert if increment not found.
14227         (record_increment): Limit number of increments recorded.
14228         (all_phi_incrs_profitable): Return false if an increment not found.
14229         (replace_profitable_candidates): Don't process increments that were
14230         not recorded.
14231         (analyze_candidates_and_replace): Limit size of incr_vec.
14233 2013-05-07  Richard Biener  <rguenther@suse.de>
14235         * calls.c (special_function_p): setjmp-like functions are leaf.
14236         * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
14237         * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
14239 2013-05-07  Sofiane Naci  <sofiane.naci@arm.com>
14241         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
14242         (aarch64_simd_mov<mode>): New expander.
14243         (aarch64_simd_mov_to_<mode>low): New instruction pattern.
14244         (aarch64_simd_mov_to_<mode>high): Likewise.
14245         (aarch64_simd_mov_from_<mode>low): Likewise.
14246         (aarch64_simd_mov_from_<mode>high): Likewise.
14247         (aarch64_dup_lane<mode>): Update.
14248         (aarch64_dup_lanedi): New instruction pattern.
14249         * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
14250         * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
14252 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14254         * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
14255         (replace_mult_candidate): Remove unnecessary argument; remove
14256         unnecessary parameter from call to introduce_cast_before_cand.
14257         (replace_unconditional_candidate): Remove unnecessary parameter
14258         from call to replace_mult_candidate.
14259         (replace_conditional_candidate): Likewise.
14260         (insert_initializers): Use make_temp_ssa_name.
14261         (introduce_cast_before_cand): Remove unnecessary argument; use
14262         make_temp_ssa_name.
14263         (replace_one_candidate): Remove unnecessary argument; remove
14264         unnecessary parameter from calls to introduce_cast_before_cand.
14265         (replace_profitable_candidates): Remove unnecessary parameters
14266         from calls to replace_one_candidate.
14268 2013-05-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14270         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
14271         phi def as possibly hiding a basis for a CAND_ADD whose operands
14272         have been commuted in the analysis.
14273         (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
14275 2013-05-07  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
14277         * config/aarch64/aarch64.md
14278         (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
14279         shift value between 0-4.
14281 2013-05-07  Richard Biener  <rguenther@suse.de>
14283         * double-int.h (rshift): New overload.
14284         * double-int.c (rshift): New function.
14285         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
14286         (create_reference_ops_from_ref): Remove.
14287         (vn_reference_insert): Use shared ops for constructing the
14288         reference and copy it.
14290 2013-05-07  Richard Biener  <rguenther@suse.de>
14292         PR middle-end/57190
14293         * tree-eh.c (sink_clobbers): Properly propagate
14294         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
14296 2013-05-07  Jakub Jelinek  <jakub@redhat.com>
14298         PR tree-optimization/57149
14299         * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
14300         (can_skip_redundant_opnd, compute_uninit_opnds_pos,
14301         collect_phi_def_edges, execute_late_warn_uninitialized): Use
14302         uninit_undefined_value_p instead of ssa_undefined_value_p.
14304         PR debug/57184
14305         * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
14306         for modifier == EXPAND_INITIALIZER.
14308 2013-05-07  Anton Blanchard  <anton@samba.org>
14310         * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
14311         for powerpc64 little endian.
14312         * configure: Regenerate.
14314 2013-05-06  Graham Stott  <grahams@btinternet.com>
14316         * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
14317         mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
14318         wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
14319         shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
14321 2013-05-06  Graham Stott  <grahams@btinternet.com>
14323         * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
14324         codes which allow non-lvalues.
14326 2013-05-06  Marc Glisse  <marc.glisse@inria.fr>
14328         * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
14329         components are all 1s.
14330         (integer_minus_onep): New function.
14331         * tree.h (integer_minus_onep): Declare it.
14332         * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
14333         integer_minus_onep instead of integer_all_onesp.
14335 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14337         PR target/52933
14338         * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
14339         variations of these patterns.
14341 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
14343         * config/i386/i386.md (isa): Add x64_sse4 member.
14344         (enabled): Handle x64_sse4.
14345         (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
14346         instruction for 64bit SSE4_1 targets.  Update insn attributes.
14347         (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
14348         instruction for SSE4_1 targets.  Update insn attributes.
14349         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
14350         with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
14351         (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
14352         const_1 selector.
14353         (*vec_extractv4si): Rename from *sse4_1_pextrd.
14354         (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
14355         (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
14357 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14359         PR target/57108
14360         * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
14362 2013-05-06  Maxim Kuznetsov  <maks.kuznetsov@gmail.com>
14364         * final.c (do_assembler_dialects): Don't handle curly braces and
14365         vertical bar escaped by % as dialect delimiters.
14366         (output_asm_insn): Print curly braces and vertical bar if escaped
14367         by % and ASSEMBLER_DIALECT defined.
14368         * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
14369         * doc/tm.texi: Regenerated.
14371 2013-05-06  Steven Bosscher  <steven@gcc.gnu.org>
14373         * config/mips/mips.c: Include tree-pass.h.
14374         (mips_reorg): Split in pre- and post-dbr_schedule parts.
14375         (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
14376         (pass_mips_machine_reorg2): New machine specific pass.
14377         (insert_pass_mips_machine_reorg2): New pass plugin definition.
14378         (mips_option_override): Register the new pass.
14379         * rtl.h (cleanup_barriers): Remove prototype.
14380         (dbr_schedule): Likewise.
14381         * jump.c (cleanup_barriers): Make static.
14382         * reorg.c (dbr_schedule): Likewise.
14384 2013-05-06  Richard Biener  <rguenther@suse.de>
14386         PR tree-optimization/57185
14387         * tree-parloops.c (add_field_for_reduction): Handle anonymous
14388         SSA names properly.
14390 2013-05-06  Uros Bizjak  <ubizjak@gmail.com>
14392         PR target/57106
14393         * config/i386/i386.c (add_parameter_dependencies): Add dependence
14394         between "first_arg" and "insn", not "last" and "insn".
14396 2013-05-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14398         * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
14399         (find_candidates_in_block): Re-enable slsr_process_phi.
14400         (create_phi_basis): Fix double counting of candidate adjustment.
14402 2013-05-06  Richard Biener  <rguenther@suse.de>
14404         PR middle-end/57147
14405         * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
14406         the edge is also fallthru, preserve it and just clear the
14407         abnormal flag.
14408         * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
14409         also complex, preserve that and just clear the fallthru flag.
14410         * tree-inline.c (update_ssa_across_abnormal_edges): Also
14411         update virtual operands.
14413 2013-05-06  Alan Modra  <amodra@gmail.com>
14415         * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
14416         (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
14417         * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
14418         * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
14419         (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
14420         * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
14422 2013-05-06  Alan Modra  <amodra@gmail.com>
14424         * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
14425         (ASM_SPEC): ..here.  Emit DEFAULT_ASM_ENDIAN too.
14426         (DEFAULT_ASM_ENDIAN): Define.
14427         (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
14428         * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
14429         Update -K PIC clause from sysv4.h.
14430         (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
14431         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
14433 2013-05-06  Alan Modra  <amodra@gmail.com>
14435         * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
14436         twice for little-endian.
14437         (ashrdi3_no_power, ashrdi3): Support little-endian.
14439 2013-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
14441         PR target/55303
14442         * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
14443         * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
14444         related expanders.
14445         * config/sh/iterators.md (SMIN_SMAX): New code iterator.
14446         * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
14447         clips_min_const_int, clips_max_const_int, clipu_max_const_int):
14448         New predicates.
14450 2013-05-05  Steven Bosscher  <steven@gcc.gnu.org>
14451             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14453         * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
14454         * config/pa/pa.opt: Make mbig-switch a no-op.
14455         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
14456         (CASE_VECTOR_MODE): Always return SImode.
14457         (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
14458         for the !TARGET_BIG_SWITCH case.
14459         * config/pa/pa-linux.h: Likewise.
14460         * config/pa/pa-openbsd.h: Likewise.
14461         * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
14462         * config/pa/pa.md (short_jump): Remove define_insn.
14463         (casesi): Remove code for the !TARGET_BIG_SWITCH case.
14464         (casesi0): Remove define_insn.
14465         (type): Remove btable_branch.
14466         (pa_combine_type): Likewise.
14467         (in_nullified_branch_delay): Likewise.
14468         (in_call_delay): Likewise.
14469         (define_delay): Likewise.
14470         (define_insn_reservation "Z3"): Likewise.
14471         (define_insn_reservation "Z4"): Likewise.
14472         * config/pa/pa.c  (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
14473         (pa_adjust_insn_length): Remove adjustment for btable branches.
14474         * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
14475         and mno-big-switch
14477 2013-05-05  Uros Bizjak  <ubizjak@gmail.com>
14479         * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
14480         from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
14481         Add m->r,x alternatives.
14482         (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
14483         splitters using SWI48x mode iterator.
14484         (*vec_extract_v2di_0_sse): Rename from *sse2_storeq.  Disable for
14485         TARGET_64BIT.  Add m->x alternative.
14486         (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
14487         Add o->x alternative.  Enable for TARGET_SSE.
14488         (sse_storeq): Remove expander.
14489         (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
14490         with memory input operand.
14491         (*vec_extractv2di_1 splitter): New.
14492         (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
14493         * config/i386/i386.md (ssevecmodelower): New mode attribute.
14495 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14497         * config/rs6000/rs6000.c (INT_P): Reformat.  Delete obsolete comment.
14498         (INT_LOWPART): Delete.
14499         (extract_MB): Adjust.
14500         (extract_ME): Adjust.
14501         (print_operand): Adjust.
14503 2013-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
14505         * config/rs6000/predicates.md (reg_or_add_cint_operand,
14506         reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
14507         (reg_or_logical_cint_operand, easy_fp_constant,
14508         logical_const_operand): Delete "CONST_DOUBLE" case.
14509         * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
14510         "HOST_BITS_PER_WIDE_INT == 64" test.
14511         (num_insns_constant): Ditto.  Delete CONST_DOUBLE DImode/VOIDmode case.
14512         (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
14513         (rs6000_emit_set_const): Delete CONST_DOUBLE case.
14514         (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
14515         test.
14516         (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
14517         CONST_DOUBLE DImode/VOIDmode case.
14518         (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
14519         (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
14520         CONST_DOUBLE VOIDmode case.
14521         (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
14522         (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
14523         * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
14524         Delete CONST_DOUBLE case.
14525         (splitters for mov FMOVE64 const_double): Delete
14526         "HOST_BITS_PER_WIDE_INT == 32" case.  Delete
14527         "HOST_BITS_PER_WIDE_INT >= 64" test.
14528         (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
14529         case.
14530         (mov DI const_double): Delete.
14532 2013-05-04  Jakub Jelinek  <jakub@redhat.com>
14534         * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
14535         on op shows all bits zero in mode of a lowpart subreg, return zero.
14537 2013-05-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
14539         PR target/57150
14540         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
14541         to save TFmode registers and DImode to save TImode registers for
14542         caller save operations.
14543         (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
14544         mark being partially clobbered since they only use the first
14545         double word.
14547         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
14548         and TDmode only use the upper 64-bits of each VSX register.
14550 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14552         * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
14553         (find_candidates_in_block): Disable slsr_process_phi.
14555 2013-05-03  Guozhi Wei  <carrot@google.com>
14557         * coverage.c (coverage_obj_init): Move the construction of gcov
14558         constructor to ...
14559         (build_init_ctor): ... here.
14561 2013-05-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14563         * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
14564         (slsr_cand_d): Redefine def_phi.
14565         (stride_status, phi_adjust_status, count_phis_status): New enums.
14566         (find_phi_def): New.
14567         (find_basis_for_base_expr): New.
14568         (find_basis_for_candidate): Handle hidden bases.
14569         (alloc_cand_and_find_basis): Handle phi candidates.
14570         (slsr_process_phi): New.
14571         (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
14572         (create_mul_imm_cand): Likewise.
14573         (create_add_ssa_cand): Exclude phi base candidates.
14574         (create_add_imm_cand): Likewise.
14575         (slsr_process_cast): Likewise.
14576         (slsr_process_copy): Likewise.
14577         (find_candidates_in_block): Handle phi candidates.
14578         (dump_candidate): Likewise.
14579         (unconditional_cands): Delete.
14580         (unconditional_cands_with_known_stride_p): Delete.
14581         (phi_dependent_cand_p): New.
14582         (cand_increment): Handle phi-dependent candidates.
14583         (replace_dependent): Delete.
14584         (replace_mult_candidate): New.
14585         (replace_unconditional_candidate): New.
14586         (incr_vec_index): Move to avoid forward reference.
14587         (create_add_on_incoming_edge): New.
14588         (create_phi_basis): New.
14589         (replace_dependents): Delete.
14590         (replace_conditional_candidate): New.
14591         (phi_add_costs): New.
14592         (replace_uncond_cands_and_profitable_phis): New.
14593         (record_increment): Handle phi adjustments.
14594         (record_phi_increments): New.
14595         (record_increments): Handle phi adjustments.
14596         (phi_incr_cost): New.
14597         (lowest_cost_path): Handle phis.
14598         (total_savings): Likewise.
14599         (analyze_increments): Likewise.
14600         (ncd_with_phi): New.
14601         (ncd_of_cand_and_phis): New.
14602         (nearest_common_dominator_for_cands): Handle phi increments.
14603         (all_phi_incrs_profitable): New.
14604         (replace_profitable_candidates): Handle phi-dependent candidates.
14605         (analyze_candidates_and_replace): Likewise.
14607 2013-05-03  Teresa Johnson  <tejohnson@google.com>
14609         PR bootstrap/57154
14610         * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
14611         do not exceed REG_BR_PROB_BASE.
14613 2013-05-03  Jeff Law  <law@redhat.com>
14615         PR tree-optimization/57144
14616         * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
14617         operand of the condition will bit into the new type when eliminating
14618         a cast feeding a condition.
14620 2013-05-03  Jakub Jelinek  <jakub@redhat.com>
14622         PR rtl-optimization/57130
14623         * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
14624         of COMPARE as in_code to the recursive call if needed.
14626 2013-05-03  Uros Bizjak  <ubizjak@gmail.com>
14628         * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
14629         (enabled): Handle new members.
14630         * config/i386/sse.md (*vec_concatv2si): Merge from
14631         *vec_concatv2si_sse2 and vec_concatv2si_sse.
14632         (vec_concatv2di): Merge with *vec_concatv2di_rex64.
14634 2013-05-03  Joern Rennecke  <joern.rennecke@embecosm.com>
14636         PR tree-optimization/57027
14637         * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
14638         for fnms opportunity, check we got the prerequisite kind
14639         of tree / gimple before using accessor functions.
14641 2013-05-03  Richard Biener  <rguenther@suse.de>
14643         * double-int.h (lshift): New overload without precision
14644         and arith argument.
14645         (operator *=, operator +=, operator -=): Move ...
14646         * double-int.c (operator *=, operator +=, operator -=): ... here
14647         and implement more efficiently.
14648         (mul_double_with_sign): Remove.
14649         (lshift_double): Adjust to take unsinged shift argument, push
14650         dispatching code to callers.
14651         (mul_double_wide_with_sign): Add early out for callers that
14652         are not interested in high parts or overflow.
14653         (lshift): New function.
14654         (lshift, rshift, alshift, arshift, llshift, lrshift): Add
14655         dispatch code here.
14656         (lrotate, rrotate): Use logical shifts.
14657         * expr.c (get_inner_reference): Use lshift.
14658         * fixed-value.c (do_fixed_divide): Likewise.
14659         * tree-dfa.c (get_ref_base_and_extent): Likewise.
14660         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
14661         (indirect_refs_may_alias_p): Likewise.
14662         (stmt_kills_ref_p_1): Likewise.
14664 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
14666         * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
14668 2013-05-03  Vidya Praveen  <vidyapraveen@arm.com>
14670         * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
14671         scalar form of FABD instruction.
14673 2013-05-02  Vladimir Makarov  <vmakarov@redhat.com>
14675         * lra-constraints.c (process_alt_operands): Add checking alt
14676         number to choose the best alternative.
14678 2013-05-02  Richard Biener  <rguenther@suse.de>
14680         * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
14681         bitmap and its handling.
14682         (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
14684 2013-05-02  Richard Biener  <rguenther@suse.de>
14686         PR middle-end/57140
14687         * tree-inline.c (copy_loops): Properly handle removed loops.
14688         (copy_cfg_body): Mark destination loops for fixup if source
14689         loops needed fixup.
14691 2013-05-02  Greta Yorsh  <Greta.Yorsh@arm.com>
14693         PR target/56732
14694         * config/arm/arm.c (arm_expand_epilogue): Check really_return before
14695         generating simple_return for naked functions.
14697 2013-05-02  Martin Jambor  <mjambor@suse.cz>
14699         PR middle-end/56988
14700         * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
14701         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
14702         flags match.
14703         (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
14704         ipa_agg_replacement_value structures.
14705         (known_aggs_to_agg_replacement_list): Likewise.
14706         * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
14707         (read_agg_replacement_chain): Likewise.
14708         (ipcp_transform_function): Also check that by_ref flags match.
14710 2013-05-02  Richard Biener  <rguenther@suse.de>
14712         * graphds.h (struct graph): Add obstack member.
14713         * graphds.c (new_graph): Initialize obstack and allocate
14714         vertices from it.
14715         (add_edge): Allocate edge from the obstack.
14716         (free_graph): Free the obstack instead of all edges and vertices.
14718 2013-05-02  Teresa Johnson  <tejohnson@google.com>
14720         * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
14721         divides.
14722         * cfg.c (update_bb_profile_for_threading): Ditto.
14723         * tree-inline.c (copy_bb): Ditto.
14724         (copy_edges_for_bb): Ditto.
14725         (initialize_cfun): Ditto.
14726         (copy_cfg_body): Ditto.
14727         (expand_call_inline): Ditto.
14728         * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
14729         (estimate_node_size_and_time): Ditto.
14730         (inline_merge_summary): Ditto.
14731         * cgraphclones.c (cgraph_clone_edge): Ditto.
14732         (cgraph_clone_node): Ditto.
14733         * sched-rgn.c (compute_dom_prob_ps): Ditto.
14734         (compute_trg_info): Ditto.
14736 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
14738         * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
14739         S reg when fp attribute set.
14740         (movdi_aarch64): Only allow to/from D reg when fp attribute set.
14742 2013-05-02  Ian Bolton  <ian.bolton@arm.com>
14744         * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
14745         New pattern.
14746         (*and_one_cmplsi3_compare0_uxtw): Likewise.
14747         (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
14748         (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
14750 2013-05-02  Richard Biener  <rguenther@suse.de>
14752         * tree-scalar-evolution.c (scev_info_hasher): Remove.
14753         (struct instantiate_cache_entry): New type.
14754         (struct instantiate_cache_entry_hasher): New hashtable descriptor.
14755         (struct instantiate_cache_type): New type.
14756         (set_instantiated_value, get_instantiated_value): Remove.
14757         (get_instantiated_value_entry): New function.
14758         (instantiate_scev_name): Use the new cache and adjust.
14759         (instantiate_scev_poly): Adjust.
14760         (instantiate_scev_binary): Likewise.
14761         (instantiate_array_ref): Likewise.
14762         (instantiate_scev_convert): Likewise.
14763         (instantiate_scev_not): Likewise.
14764         (instantiate_scev_3): Likewise.
14765         (instantiate_scev_2): Likewise.
14766         (instantiate_scev_r): Likewise.
14767         (instantiate_scev): Likewise.
14768         (resolve_mixers): Likewise.
14770 2013-05-01  Vladimir Makarov  <vmakarov@redhat.com>
14772         PR target/57091
14773         * lra-constraints.c (best_small_class_operands_num): Remove.
14774         (process_alt_operands): Remove small_class_operands_num.  Take
14775         small classes operands into losers and only if the operand is not
14776         matched.  Modify debugging output.
14777         (curr_insn_transform): Remove best_small_class_operands_num.
14778         Print insn name.
14780 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
14782         * config/aarch64/aarch64-builtins.c
14783         (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
14784         * config/aarch64/aarch64-simd-builtins.def
14785         (reduc_splus_): Add new modes.
14786         (reduc_uplus_): New.
14787         * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
14788         (reduc_uplus_v4sf): Likewise.
14789         (reduc_splus_v4sf): Likewise.
14790         (aarch64_addv<mode>): Likewise.
14791         (reduc_uplus_<mode>): Likewise.
14792         (reduc_splus_<mode>): Likewise.
14793         (aarch64_addvv2di): Likewise.
14794         (reduc_uplus_v2di): Likewise.
14795         (reduc_splus_v2di): Likewise.
14796         (aarch64_addvv2si): Likewise.
14797         (reduc_uplus_v2si): Likewise.
14798         (reduc_splus_v2si): Likewise.
14799         (reduc_<sur>plus_<mode>): New.
14800         (reduc_<sur>plus_v2di): Likewise.
14801         (reduc_<sur>plus_v2si): Likewise.
14802         (reduc_<sur>plus_v4sf): Likewise.
14803         (aarch64_addpv4sf): Likewise.
14804         * config/aarch64/arm_neon.h
14805         (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
14806         * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
14807         add UNSPEC_SADDV, UNSPEC_UADDV.
14808         (SUADDV): New.
14809         (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
14811 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
14813         * config/aarch64/arm_neon.h
14814         (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
14816 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
14818         * config/aarch64/aarch64-builtins
14819         (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
14821 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
14823         * config/aarch64/aarch64-simd-builtins.def
14824         (reduc_smax_): New.
14825         (reduc_smin_): Likewise.
14826         (reduc_umax_): Likewise.
14827         (reduc_umin_): Likewise.
14828         (reduc_smax_nan_): Likewise.
14829         (reduc_smin_nan_): Likewise.
14830         (fmax): Remove.
14831         (fmin): Likewise.
14832         (smax): Update for V2SF, V4SF and V2DF modes.
14833         (smin): Likewise.
14834         (smax_nan): New.
14835         (smin_nan): Likewise.
14836         * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
14837         (<su><maxmin><mode>3): ...This, refactor.
14838         (s<maxmin><mode>3): New.
14839         (<maxmin_uns><mode>3): Likewise.
14840         (reduc_<maxmin_uns>_<mode>): Refactor.
14841         (reduc_<maxmin_uns>_v4sf): Likewise.
14842         (reduc_<maxmin_uns>_v2si): Likewise.
14843         (aarch64_<fmaxmin><mode>: Remove.
14844         * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
14845         new builtin names.
14846         (vmin<q>_f<32,64>): Likewise.
14847         * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
14848         (FMAXMIN): New.
14849         (su): Add mappings for smax, smin, umax, umin.
14850         (maxmin): New.
14851         (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
14852         (FMAXMIN): Rename as...
14853         (FMAXMIN_UNS): ...This.
14854         (maxminv): Remove.
14855         (fmaxminv): Likewise.
14856         (fmaxmin): Likewise.
14857         (maxmin_uns): New.
14858         (maxmin_uns_op): Likewise.
14860 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
14862         * config/aarch64/arm_neon.h
14863         (vac<ge, gt><sd>_f<32, 64>): Rename to...
14864         (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
14865         (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
14867 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
14869         * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
14870         * config/aarch64/iterators.md (FAC_COMPARISONS): New.
14872 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
14874         * config/aarch64/aarch64-simd.md
14875         (vcond<mode>_internal): Handle special cases for constant masks.
14876         (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
14877         (vcondu<mode><mode>): Likewise.
14878         (vcond<v_cmp_result><mode>): New.
14880 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
14882         * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
14883         (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
14884         * config/aarch64/aarch64-simd-builtins.def
14885         (cmeq): Update to BUILTIN_VALLDI.
14886         (cmgt): Likewise.
14887         (cmge): Likewise.
14888         (cmle): Likewise.
14889         (cmlt): Likewise.
14890         * config/aarch64/arm_neon.h
14891         (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
14892         to builtins or C as appropriate.
14894 2013-05-01  James Greenhalgh  <james.greenhalgh@arm.com>
14896         * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
14897         (cmgeu): ...This.
14898         (cmhi): Rename to...
14899         (cmgtu): ...This.
14900         * config/aarch64/aarch64-simd.md
14901         (simd_mode): Add SF.
14902         (aarch64_vcond_internal): Use new names for unsigned comparison insns.
14903         (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
14904         * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
14905         (cstore<mode>_neg): ...This.
14906         * config/aarch64/iterators.md
14907         (VALLF): new.
14908         (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
14909         (COMPARISONS): New.
14910         (UCOMPARISONS): Likewise.
14911         (optab): Add missing comparisons.
14912         (n_optab): New.
14913         (cmp_1): Likewise.
14914         (cmp_2): Likewise.
14915         (CMP): Likewise.
14916         (cmp): Remove.
14917         (VCMP_S): Likewise.
14918         (VCMP_U): Likewise.
14919         (V_cmp_result): Add DF, SF modes.
14920         (v_cmp_result): Likewise.
14921         (v): Likewise.
14922         (vmtype): Likewise.
14923         * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
14925 2013-05-01  Greta Yorsh  <Greta.Yorsh@arm.com>
14927         * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
14928         define_insn to define_insn_and_split.
14929         (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
14930         (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
14931         (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
14932         (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
14933         (thumb2_negscc): Likewise.
14935 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
14937         * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
14939 2013-04-30  Greta Yorsh  <Greta.Yorsh@arm.com>
14941         * config/arm/thumb2.md: Remove trailing whitespaces.
14943 2013-04-30  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
14945         * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
14946         Use gen_int_mode rather than GEN_INT.
14948 2013-04-30  H.J. Lu  <hongjiu.lu@intel.com>
14950         * value-prof.c (stream_in_histogram_value): Remove the strayed
14951         debug_gimple_stmt.
14953 2013-04-30  Richard Biener  <rguenther@suse.de>
14955         PR middle-end/57122
14956         * cfghooks.c (split_edge): Properly check for the loop latch edge.
14958 2013-04-30  Richard Biener  <rguenther@suse.de>
14960         PR middle-end/57107
14961         * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
14963 2013-04-30  Andrey Belevantsev  <abel@ispras.ru>
14965         PR rtl-optimization/56957
14966         PR rtl-optimization/57105
14967         * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
14968         variable.  Use just INSN_UID for determining whether an insn
14969         should be only disconnected from the insn stream.
14970         * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
14972 2013-04-30  Jakub Jelinek  <jakub@redhat.com>
14974         PR tree-optimization/57104
14975         * tsan.c (instrument_expr): Don't instrument accesses to
14976         DECL_HARD_REGISTER VAR_DECLs.
14978 2013-04-30  Richard Biener  <rguenther@suse.de>
14980         * function.h (loops_for_fn): New inline function.
14981         (set_loops_for_fn): Likewise.
14982         * cfgloop.h (place_new_loop): Add struct function parameter.
14983         (get_loop): Likewise.
14984         (get_loops): Likewise.
14985         (number_of_loops): Likewise.
14986         (fel_next): Adjust.
14987         (fel_init): Likewise.
14988         * cfg.c (get_loop_copy): Adjust.
14989         * cfgloop.c (flow_loops_dump): Likewise.
14990         (record_loop_exits): Likewise.
14991         (verify_loop_structure): Likewise.
14992         * cfgloopanal.c (mark_irreducible_loops): Likewise.
14993         (estimate_reg_pressure_cost): Likewise.
14994         (mark_loop_exit_edges): Likewise.
14995         * cfgloopmanip.c (place_new_loop): Likewise.
14996         (add_loop): Likewise.
14997         (duplicate_loop): Likewise.
14998         * graph.c (draw_cfg_nodes): Likewise.
14999         * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
15000         * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
15001         (extract_affine_chrec): Likewise.
15002         (build_scop_iteration_domain): Likewise.
15003         * graphite.c (graphite_initialize): Likewise.
15004         * ira-build.c (create_loop_tree_nodes): Likewise.
15005         (more_one_region_p): Likewise.
15006         (rebuild_regno_allocno_maps): Likewise.
15007         (mark_loops_for_removal): Likewise.
15008         (mark_all_loops_for_removal): Likewise.
15009         (remove_unnecessary_regions): Likewise.
15010         (ira_build): Likewise.
15011         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
15012         * loop-init.c (fix_loop_structure): Likewise.
15013         (gate_rtl_move_loop_invariants): Likewise.
15014         (gate_rtl_unswitch): Likewise.
15015         (gate_rtl_unroll_and_peel_loops): Likewise.
15016         (rtl_doloop): Likewise.
15017         * lto-streamer-in.c (input_cfg): Likewise.
15018         * lto-streamer-out.c (output_cfg): Likewise.
15019         * modulo-sched.c (sms_schedule): Likewise.
15020         * predict.c (tree_estimate_probability): Likewise.
15021         (tree_estimate_probability_driver): Likewise.
15022         (estimate_loops): Likewise.
15023         * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
15024         (move_sese_region_to_fn): Likewise.
15025         (debug_loop_num): Likewise.
15026         * tree-chrec.c (chrec_evaluate): Likewise.
15027         (hide_evolution_in_other_loops_than_loop): Likewise.
15028         (chrec_component_in_loop_num): Likewise.
15029         (reset_evolution_in_loop): Likewise.
15030         (evolution_function_is_invariant_rec_p): Likewise.
15031         * tree-if-conv.c (main_tree_if_conversion): Likewise.
15032         * tree-inline.c (copy_loops): Likewise.
15033         (copy_cfg_body): Likewise.
15034         (tree_function_versioning): Likewise.
15035         * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
15036         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
15037         Likewise.
15038         (add_to_evolution_1): Likewise.
15039         (scev_const_prop): Likewise.
15040         * tree-scalar-evolution.h (get_chrec_loop): Likewise.
15041         * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
15042         * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
15043         (tree_ssa_lim_initialize): Likewise.
15044         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
15045         (verify_loop_closed_ssa): Likewise.
15046         * tree-ssa-loop.c  (tree_ssa_loop_init): Likewise.
15047         (tree_ssa_loop_im): Likewise.
15048         (tree_ssa_loop_unswitch): Likewise.
15049         (tree_vectorize): Likewise.
15050         (check_data_deps): Likewise.
15051         (tree_ssa_loop_ivcanon): Likewise.
15052         (tree_ssa_loop_bounds): Likewise.
15053         (tree_complete_unroll): Likewise.
15054         (tree_complete_unroll_inner): Likewise.
15055         (tree_parallelize_loops): Likewise.
15056         (tree_ssa_loop_prefetch): Likewise.
15057         (tree_ssa_loop_ivopts): Likewise.
15058         * tree-ssa.c (execute_update_addresses_taken): Liekwise.
15059         * tree-vectorizer.c (vectorize_loops): Likewise.
15061 2013-04-29  Mike Frysinger  <vapier@gentoo.org>
15063         * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
15064         (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
15065         * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
15066         with EABI_LINK_SPEC.
15068 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
15070         PR target/44578
15071         * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
15072         alternative.
15074 2013-04-29  Vladimir Makarov  <vmakarov@redhat.com>
15076         PR target/57097
15077         * lra-constraints.c (process_alt_operands): Discourage a bit more
15078         using memory for pseudos.  Print cost dump for alternatives.
15079         Modify cost values for conflicts with early clobbers.
15080         (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
15082 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
15084         PR target/57098
15085         * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
15087 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
15089         * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
15090         from/to S register.
15091         (movdi_aarch64): Support LDR/STR from/to D register.
15093 2013-04-29  Ian Bolton  <ian.bolton@arm.com>
15095         * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
15096         or higher by default.
15098 2013-04-29  Richard Biener  <rguenther@suse.de>
15100         PR middle-end/57075
15101         * tree-inline.c (copy_edges_for_bb): Still split the bbs,
15102         even if not adding abnormal edges for calls that can make
15103         abnormal gotos.
15105 2013-04-29  Richard Biener  <rguenther@suse.de>
15107         PR middle-end/57103
15108         * tree-cfg.c (move_stmt_op): Fix condition under which to update
15109         TREE_BLOCK.
15110         (move_stmt_r): Remove redundant checking.
15112 2013-04-29  Teresa Johnson  <tejohnson@google.com>
15114         PR bootstrap/57077
15115         * basic-block.h (apply_scale): New function.
15116         (apply_probability): Use apply_scale.
15117         * gimple-streamer-in.c (input_bb): Ditto.
15118         * lto-streamer-in.c (input_cfg): Ditto.
15119         * lto-cgraph.c (merge_profile_summaries): Ditto.
15120         * tree-optimize.c (execute_fixup_cfg): Ditto.
15121         * tree-inline.c (copy_bb): Update comment to use apply_scale.
15122         (copy_edges_for_bb): Ditto.
15123         (copy_cfg_body): Ditto.
15125 2013-04-29  Tom de Vries  <tom@codesourcery.com>
15127         * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
15128         (replace_block_by): Don't set LOOPS_NEED_FIXUP.
15129         (tail_merge_optimize): Handle current_loops == NULL.
15131 2013-04-26  Jeff Law  <law@redhat.com>
15133         * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
15134         (simplify_cond_using_ranges): Generalize code to simplify
15135         COND_EXPRs where one argument is a constant and the other
15136         is an SSA_NAME created by an integral type conversion.
15138 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15140         * config/arm/arm.md (store_minmaxsi): Use only when
15141         optimize_insn_for_size_p.
15143 2013-04-29  Christian Bruel  <christian.bruel@st.com>
15145         PR target/57108
15146         * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
15148 2013-04-29  Richard Biener  <rguenther@suse.de>
15150         PR middle-end/57089
15151         * omp-low.c (expand_omp_taskreg): If the parent function had a broken
15152         loop tree make sure to schedule a fixup for the child as well.
15153         (expand_omp_for_generic): Properly add loops.
15154         (expand_omp_for_static_nochunk): Likewise.
15155         (expand_omp_for_static_chunk): Likewise.
15156         (expand_omp_for): For the degenerate case fixup loops.
15157         (expand_omp_sections): Fix default bb placement in loops.
15158         (expand_omp_atomic_pipeline): Properly add loops.
15160 2013-04-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15162         * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
15164 2013-04-29  Tom de Vries  <tom@codesourcery.com>
15166         * tree-ssa-tail-merge.c: Update header comment.
15168 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
15170         * config/aarch64/arm_neon.h
15171         (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
15172         (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
15173         (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
15174         (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
15175         (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
15176         (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
15177         (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
15178         (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
15180 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
15182         * config/aarch64/aarch64-simd.md
15183         (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
15184         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
15185         fix_trunc, fixuns_trunc.
15186         (ftrunc<VDQF:mode>2): New.
15187         * config/aarch64/iterators.md (optab): Add fix, fixuns.
15188         (fix_trunc_optab): New.
15190 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
15192         * config/aarch64/aarch64-builtins.c
15193         (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
15194         iceilf, lround, iroundf.
15196 2013-04-29  Uros Bizjak  <ubizjak@gmail.com>
15198         PR target/54349
15199         * config/i386/i386.h (enum ix86_tune_indices)
15200         <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
15201         New, split from X86_TUNE_INTER_UNIT_MOVES.
15202         <X86_TUNE_INTER_UNIT_MOVES>: Remove.
15203         (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
15204         (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
15205         (TARGET_INTER_UNIT_MOVES): Remove.
15206         * config/i386/i386.c (initial_ix86_tune_features): Update.
15207         Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
15208         (ix86_expand_convert_uns_didf_sse): Use
15209         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
15210         (ix86_expand_vector_init_one_nonzero): Ditto.
15211         (ix86_expand_vector_init_interleave): Ditto.
15212         (inline_secondary_memory_needed): Return true for moves from SSE class
15213         registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
15214         to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
15215         * config/i386/constraints.md (Yi, Ym): Depend on
15216         TARGET_INTER_UNIT_MOVES_TO_VEC.
15217         (Yj, Yn): New constraints.
15218         * config/i386/i386.md (*movdi_internal): Change constraints of
15219         operand 1 from Yi to Yj and from Ym to Yn.
15220         (*movsi_internal): Ditto.
15221         (*movdf_internal): Ditto.
15222         (*movsf_internal): Ditto.
15223         (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
15224         TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
15225         (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
15226         (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
15227         (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
15228         * config/i386/sse.md (movdi_to_sse): Ditto.
15229         (sse2_stored): Change constraint of operand 1 from Yi to Yj.
15230         Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
15231         TARGET_INTER_UNIT_MOVES.
15232         (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
15233         (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
15234         instead of TARGET_INTER_UNIT_MOVES.
15235         * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
15236         operand 1 from Yi to Yj and from Ym to Yn.
15238 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
15240         * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
15241         (float_truncate_hi_): Likewise.
15242         (float_extend_lo_): Likewise.
15243         (float_truncate_lo_): Likewise.
15244         * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
15245         (aarch64_float_extend_lo_v2df): Likewise.
15246         (vec_unpacks_hi_v4sf): Likewise.
15247         (aarch64_float_truncate_lo_v2sf): Likewise.
15248         (aarch64_float_truncate_hi_v4sf): Likewise.
15249         (vec_pack_trunc_v2df): Likewise.
15250         (vec_pack_trunc_df): Likewise.
15252 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
15254         * config/aarch64/aarch64-builtins.c
15255         (aarch64_fold_builtin): Fold float conversions.
15256         * config/aarch64/aarch64-simd-builtins.def
15257         (floatv2si, floatv4si, floatv2di): New.
15258         (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
15259         * config/aarch64/aarch64-simd.md
15260         (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
15261         * config/aarch64/iterators.md (FLOATUORS): New.
15262         (optab): Add float, floatuns.
15263         (su_optab): Likewise.
15265 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
15267         * config/aarch64/aarch64-builtins.c
15268         (aarch64_builtin_vectorized_function): Use new names for
15269         fcvt builtins.
15270         * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
15271         (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
15272         (fcvtzu): Split as...
15273         (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
15274         (fcvtas): Split as...
15275         (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
15276         (fcvtau): Split as...
15277         (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
15278         (fcvtps): Split as...
15279         (lceilv2sf, lceilv4sf, lceilv2df): ...This.
15280         (fcvtpu): Split as...
15281         (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
15282         (fcvtms): Split as...
15283         (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
15284         (fcvtmu): Split as...
15285         (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
15286         (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
15287         (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
15288         (lfrintnusf, lfrintnudf): Likewise.
15289         * config/aarch64/aarch64-simd.md
15290         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
15291         define_insn.
15292         (aarch64_fcvt<frint_suffix><su><mode>): Remove.
15293         * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
15294         (fcvt_pattern): Likewise.
15296 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
15298         * config/aarch64/aarch64-simd.md
15299         (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
15300         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
15302 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
15304         * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
15305         (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
15306         (vrnd<a,m,n,p>_f32): Implement using builtins.
15307         (vrnd<i,x><q>_f<32, 64>): New.
15309 2013-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
15311         * config/aarch64/aarch64-builtins.c
15312         (aarch64_builtin_vectorized_function): Fold to standard pattern names.
15313         * config/aarch64/aarch64-simd-builtins.def (frintn): New.
15314         (frintz): Rename to...
15315         (btrunc): ...this.
15316         (frintp): Rename to...
15317         (ceil): ...this.
15318         (frintm): Rename to...
15319         (floor): ...this.
15320         (frinti): Rename to...
15321         (nearbyint): ...this.
15322         (frintx): Rename to...
15323         (rint): ...this.
15324         (frinta): Rename to...
15325         (round): ...this.
15326         * config/aarch64/aarch64-simd.md
15327         (aarch64_frint<frint_suffix><mode>): Delete.
15328         (<frint_pattern><mode>2): Convert to insn.
15329         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
15330         * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
15331         (frint_pattern): Likewise.
15332         (frint_suffix): Likewise.
15334 2013-04-29  Richard Biener  <rguenther@suse.de>
15336         PR tree-optimization/57081
15337         * loop-init.c: Include tree-flow.h.
15338         (loop_optimizer_finalize): Free number of iteration estimates.
15339         * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
15341 2013-04-29  Jakub Jelinek  <jakub@redhat.com>
15343         PR tree-optimization/57083
15344         * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
15345         non-singleton shift count range, zero extend low_bound for uns case.
15347         * config/i386/predicates.md (general_vector_operand): New predicate.
15348         * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
15349         (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
15350         if they aren't nonimmediate operands.  If their original values
15351         satisfy const_vector_equal_evenodd_p, don't shift them.
15352         * config/i386/sse.md (mul<mode>3): Use general_vector_operand
15353         predicates.  For the SSE4.1 case force operands[{1,2}] into registers
15354         if not nonimmediate_operand.
15355         (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
15356         instead of register_operand.
15357         (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
15359 2013-04-28  Eric Botcazou  <ebotcazou@adacore.com>
15361         * stor-layout.c (finalize_size_functions): Allocate a structure and
15362         reset cfun before dumping the functions.
15364 2013-04-27  Jakub Jelinek  <jakub@redhat.com>
15366         * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
15368         PR target/56866
15369         * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
15370         use xop_pmacsdqh if uns_p.
15371         * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
15372         the immediate rotate count.
15374 2013-04-26  Vladimir Makarov  <vmakarov@redhat.com>
15376         * rtl.h (struct rtx_def): Add comment for field jump.
15377         (LRA_SUBREG_P): New macro.
15378         * recog.c (register_operand): Check LRA_SUBREG_P.
15379         * lra.c (lra): Add note at the end of RTL code. Align non-empty
15380         stack frame.
15381         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
15382         (lra_final_code_change): Skip subreg change for operators.
15383         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
15384         if there are no operand changes.
15385         * lra-constraints.c (curr_insn_set): New.
15386         (match_reload): Set LRA_SUBREG_P.
15387         (emit_spill_move): Ditto.
15388         (check_and_process_move): Use curr_insn_set. Process only single
15389         set insns.  Don't initialize sec_mem_p and change_p.
15390         (simplify_operand_subreg): Use LRA_SUBREG_P.
15391         (reg_in_class_p): New function.
15392         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
15393         of #ifdef.  Add code to remove cycling.
15394         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
15395         non-null disp.  Reload inner instead of disp when base and index
15396         are null.  Try to put lo_sum into register.
15397         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
15398         (check_and_process_move): Move code for move cost check to
15399         simple_move_p.  Remove equiv_substitution.
15400         (simple_move_p): New function.
15401         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
15402         curr_insn_set.  Call check_and_process_move only for single set
15403         insns.  Use the new function.  Move call of check_and_process_move
15404         after operand equiv substitution and address process.
15406 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
15408         PR go/57045
15409         * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
15410         with nonlocal goto receivers or returns twice calls, ignore
15411         unininitialized values from abnormal edges to nl goto receiver
15412         or returns twice call.
15414 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
15416         PR tree-optimization/57051
15417         * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
15418         and VEC_RSHIFT_EXPR if shift count is a multiple of element
15419         bitsize.
15421 2013-04-26  Richard Biener  <rguenther@suse.de>
15423         * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
15424         (expand_omp_taskreg): Likewise.  Mark loops for fixup.
15425         * tree-cfg.c (move_block_to_fn): Remap loop fathers.
15426         (fixup_loop_arrays_after_move): New function.
15427         (move_sese_region_to_fn): Properly outline the loop tree parts
15428         of the SESE region.
15430 2013-04-26  Uros Bizjak  <ubizjak@gmail.com>
15432         * config/i386/i386.md (type, unit): Fix long lines.
15434 2013-04-26  Richard Biener  <rguenther@suse.de>
15436         * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
15437         (lto-streamer-out.o): Likewise.
15438         * cfgloop.c (init_loops_structure): Export, add struct function
15439         argument and adjust.
15440         (flow_loops_find): Adjust.
15441         * cfgloop.h (enum loop_estimation): Add EST_LAST.
15442         (init_loops_structure): Declare.
15443         * lto-streamer-in.c: Include cfgloop.h.
15444         (input_cfg): Input the loop tree.
15445         * lto-streamer-out.c: Include cfgloop.h.
15446         (output_cfg): Output the loop tree.
15447         (output_struct_function_base): Do not drop PROP_loops.
15449 2013-03-26  Richard Biener  <rguenther@suse.de>
15451         * tree-cfg.c (execute_build_cfg): Build the loop tree.
15452         (pass_build_cfg): Provide PROP_loops.
15453         (move_sese_region_to_fn): Remove loops that are outlined into fn
15454         for now.
15455         * tree-inline.c: Include cfgloop.h.
15456         (initialize_cfun): Do not drop PROP_loops.
15457         (copy_loops): New function.
15458         (copy_cfg_body): Copy loop structure.
15459         (tree_function_versioning): Initialize destination loop tree.
15460         * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
15461         (pass_parallelize_loops): Do IL verification.
15462         * loop-init.c (loop_optimizer_init): Fixup loops if required.
15463         * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
15464         the CFG make sure we fixup loops as well.
15465         * tree-ssa-tail-merge.c: Include cfgloop.h.
15466         (replace_block_by): When merging loop latches mark loops for fixup.
15467         * lto-streamer-out.c (output_struct_function_base): Drop
15468         PROP_loops for now.
15469         * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
15470         (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
15471         * ipa-split.c: Include cfgloop.h.
15472         (split_function): Add the new return block to the loop tree root.
15473         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
15474         whether we have removed the forwarder block.
15475         (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
15476         * cfgloop.h (place_new_loop): Declare.
15477         * cfgloopmanip.c (place_new_loop): Export.
15478         * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
15479         (tree-switch-conversion.o): Likewise.
15480         (tree-complex.o): Likewise.
15481         (tree-inline.o): Likewise.
15482         (tree-ssa-tailmerge.o): Likewise.
15483         (ipa-split.o): Likewise.
15484         (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
15485         (tree-ssa-copy.o): Likewise.
15486         * tree-switch-conversion.c: Include cfgloop.h
15487         (process_switch): If we emit a bit-test cascade, schedule loops
15488         for fixup.
15489         * tree-complex.c: Include cfgloop.h.
15490         (expand_complex_div_wide): Properly add new basic-blocks to loops.
15491         * asan.c: Include cfgloop.h.
15492         (create_cond_insert_point): Properly add new basic-blocks to
15493         loops, schedule loop fixup.
15494         * cfgloop.c (verify_loop_structure): Check that looks are not
15495         marked for fixup.
15496         * omp-low.c (expand_parallel_call): Properly add new basic-blocks
15497         to loops.
15498         (expand_omp_for_generic): Likewise.
15499         (expand_omp_sections): Likewise.
15500         (expand_omp_atomic_pipeline): Schedule loops for fixup.
15501         * tree-ssa-copy.c: Include tree-scalar-evolution.h.
15502         (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
15503         is initialized, not when loops are present.
15504         * tree-parloops.c (parallelize_loops): Remove checking here.
15505         * passes.c (init_optimization_passes): Schedule a copy-propagation
15506         pass before complete unrolling of inner loops.
15508 2013-04-26  Jakub Jelinek  <jakub@redhat.com>
15510         * Makefile.in (toplev.o): Depend on diagnostic-color.h.
15511         * diagnostic-color.c (should_colorize): Remove _WIN32 version.
15512         (colorize_init): Add argument to _WIN32 version.
15513         * toplev.c: Include diagnostic-color.h.
15514         (process_options): Default to -fdiagnostics-color=auto if
15515         GCC_COLORS env var is in the environment.
15516         * common.opt (fdiagnostics-color=): Add Var and Init.
15517         * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
15518         env var is in the environment, the default is auto rather than never.
15520         * diagnostic.h (file_name_as_prefix): Add context argument.
15521         * diagnostic.c (file_name_as_prefix): Likewise.  Colorize
15522         the string as locus.
15523         * langhooks.c (lhd_print_error_function): Adjust caller.
15525 2013-04-25  Lawrence Crowl  <crowl@google.com>
15527         * var-tracking.c (shared_hash_def::htab):
15528         Change type to hash_table.  Update dependent calls and types.
15530 2013-04-25  Lawrence Crowl  <crowl@google.com>
15532         * Makefile.in: Update as needed below.
15534         * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
15535         Move declaration to after the type's method definitons.
15537         * attribs.c (htab_t scoped_attributes::attribute_hash):
15538         Change type to hash_table.  Update dependent calls and types.
15540         * bitmap.c (htab_t bitmap_desc_hash):
15541         Change type to hash_table.  Update dependent calls and types.
15543         * cselib.c (htab_t cselib_hash_table):
15544         Change type to hash_table.  Update dependent calls and types.
15546         * data-streamer.h (struct string_slot): Move to lto-streamer.h.
15547         (hash_string_slot_node): Move implementation into lto-streamer.h
15548         struct string_slot_hasher.
15549         (eq_string_slot_node): Likewise.
15551         * data-streamer-out.c: Update output_block::string_hash_table
15552         dependent calls and types.
15554         * dwarf2cfi.c (htab_t trace_index):
15555         Change type to hash_table.  Update dependent calls and types.
15557         * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
15558         Change type to hash_table.  Update dependent calls and types.
15559         (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
15560         (htab_t optimize_external_refs::map): Likewise.
15561         (htab_t output_comp_unit::extern_map): Likewise.
15562         (htab_t output_comdat_type_unit::extern_map): Likewise.
15563         (htab_t output_macinfo::macinfo_htab): Likewise.
15564         (htab_t optimize_location_lists::htab): Likewise.
15565         (htab_t dwarf2out_finish::comdat_type_table): Likewise.
15567         * except.c (htab_t ehspec_hash_type):
15568         Change type to hash_table.  Update dependent calls and types.
15569         (assign_filter_values::ttypes): Likewise.
15570         (assign_filter_values::ehspec): Likewise.
15571         (sjlj_assign_call_site_values::ar_hash): Likewise.
15572         (convert_to_eh_region_ranges::ar_hash): Likewise.
15574         * gcse.c (htab_t pre_ldst_table):
15575         Change type to hash_table.  Update dependent calls and types.
15577         * ggc-common.c (htab_t saving_htab):
15578         Change type to hash_table.  Update dependent calls and types.
15579         (htab_t loc_hash): Likewise.
15580         (htab_t ptr_hash): Likewise.
15581         (call_count): Rename ggc_call_count.
15582         (call_alloc): Rename ggc_call_alloc.
15583         (loc_descriptor): Rename make_loc_descriptor.
15584         (add_statistics): Rename ggc_add_statistics.
15586         * ggc-common.c (saving_htab):
15587         Change type to hash_table.  Update dependent calls and types.
15589         * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
15590         (push_gimplify_context): Likewise.
15591         (pop_gimplify_context): Likewise.
15592         (struct gimple_temp_hash_elt): Added.
15593         (struct gimplify_hasher): Likewise.
15594         (struct gimplify_ctx.temp_htab):
15595         Change type to hash_table.  Update dependent calls and types.
15597         * gimple-fold.c: Include gimplify-ctx.h.
15599         * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
15600         Change type to hash_table.  Update dependent calls and types.
15601         (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
15602         avoid potential global name collision.
15604         * gimplify.c: Include gimplify-ctx.h.
15605         (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
15606         (htab_t gimplify_ctx::temp_htab):
15607         Update dependent calls and types for new type hash_table.
15608         (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
15609         (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
15611         * gimplify-ctx.h: New.
15612         (struct gimple_temp_hash_elt): Move from gimplify.c.
15613         (class gimplify_hasher): New.
15614         (struct gimplify_ctx): Move from gimple.h.
15615         (htab_t gimplify_ctx::temp_htab):
15616         Change type to hash_table.  Update dependent calls and types.
15618         * graphite-clast-to-gimple.c: Include graphite-htab.h.
15619         (htab_t ivs_params::newivs_index):
15620         Change type to hash_table.  Update dependent calls and types.
15621         (htab_t ivs_params::params_index): Likewise.
15622         (htab_t print_generated_program::params_index): Likewise.
15623         (htab_t gloog::newivs_index): Likewise.
15624         (htab_t gloog::params_index): Likewise.
15626         * graphite.c: Include graphite-htab.h.
15627         4htab_t graphite_transform_loops::bb_pbb_mapping):
15628         Change type to hash_table.  Update dependent calls and types.
15630         * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
15631         (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
15632         (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
15634         * graphite-dependences.c: Include graphite-htab.h.
15635         (loop_is_parallel_p): Change hash table type of parameter.
15637         * graphite-htab.h: New.
15638         (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
15639         (extern find_pbb_via_hash): Move from graphite-poly.h.
15640         (extern loop_is_parallel_p): Move from graphite-poly.h.
15641         (extern get_loop_body_pbbs): Move from graphite-poly.h.
15643         * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
15644         (extern loop_is_parallel_p): Move to graphite-htab.h.
15645         (extern get_loop_body_pbbs): Move to graphite-htab.h.
15647         * haifa-sched.c (htab_t delay_htab):
15648         Change type to hash_table.  Update dependent calls and types.
15649         (htab_t delay_htab_i2): Likewise.
15651         * ira-color.c (htab_t allocno_hard_regs_htab):
15652         Change type to hash_table.  Update dependent calls and types.
15654         * ira-costs.c (htab_t cost_classes_htab):
15655         Change type to hash_table.  Update dependent calls and types.
15657         * loop-invariant.c (htab_t merge_identical_invariants::eq):
15658         Change type to hash_table.  Update dependent calls and types.
15660         * loop-iv.c (htab_t bivs):
15661         Change type to hash_table.  Update dependent calls and types.
15663         * loop-unroll.c (htab_t opt_info::insns_to_split):
15664         Change type to hash_table.  Update dependent calls and types.
15665         (htab_t opt_info::insns_with_var_to_expand): Likewise.
15667         * lto-streamer.h (struct string_slot): Move from data-streamer.h
15668         (struct string_slot_hasher): New.
15669         (htab_t output_block::string_hash_table):
15670         Change type to hash_table.  Update dependent calls and types.
15672         * lto-streamer-in.c (freeing_string_slot_hasher): New.
15673         (htab_t file_name_hash_table):
15674         Change type to hash_table.  Update dependent calls and types.
15676         * lto-streamer-out.c: Update output_block::string_hash_table dependent
15677         calls and types.
15679         * lto-streamer.c (htab_t tree_htab):
15680         Change type to hash_table.  Update dependent calls and types.
15682         * omp-low.c: Include gimplify-ctx.h.
15684         * passes.c (htab_t name_to_pass_map):
15685         Change type to hash_table.  Update dependent calls and types.
15686         (pass_traverse): Rename to passes_pass_traverse.
15688         * plugin.c (htab_t event_tab):
15689         Change type to hash_table.  Update dependent calls and types.
15691         * postreload-gcse.c (htab_t expr_table):
15692         Change type to hash_table.  Update dependent calls and types.
15693         (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
15695         * sese.c (debug_rename_map_1): Make extern.
15696         (htab_t copy_bb_and_scalar_dependences::rename_map):
15697         Change type to hash_table.  Update dependent calls and types.
15699         * sese.h (extern debug_rename_map): Move to .c file.
15701         * store-motion.c (htab_t store_motion_mems_table):
15702         Change type to hash_table.  Update dependent calls and types.
15704         * trans-mem.c (htab_t tm_new_mem_hash):
15705         Change type to hash_table.  Update dependent calls and types.
15707         * tree-browser.c (htab_t TB_up_ht):
15708         Change type to hash_table.  Update dependent calls and types.
15710         * tree-cfg.c (htab_t discriminator_per_locus):
15711         Change type to hash_table.  Update dependent calls and types.
15713         * tree-complex.c: Include tree-hasher.h
15714         (htab_t complex_variable_components):
15715         Change type to hash_table.  Update dependent calls and types.
15717         * tree-eh.c (htab_t finally_tree):
15718         Change type to hash_table.  Update dependent calls and types.
15720         * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
15721         struct int_tree_hasher.
15722         (extern int_tree_map_eq): Likewise.
15723         (uid_decl_map_hash): Removed.
15724         (extern decl_tree_map_eq): Likewise.
15726         * tree-hasher.h: New.
15727         (struct int_tree_hasher): New.
15728         (typedef int_tree_htab_type): New.
15730         * tree-inline.c: Include gimplify-ctx.h.
15732         * tree-mudflap.c: Include gimplify-ctx.h.
15734         * tree-parloops.c: Include tree-hasher.h.
15735         (htab_t eliminate_local_variables_stmt::decl_address):
15736         Change type to hash_table.  Update dependent calls and types.
15737         (htab_t separate_decls_in_region::decl_copies): Likewise.
15739         * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
15740         Change type to hash_table.  Update dependent calls and types.
15742         * tree-sra.c (candidates):
15743         Change type to hash_table.  Update dependent calls and types.
15745         * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
15746         in tree-flow.h.
15747         (int_tree_map_hash): Likewise.
15749         * tree-ssa-dom.c (htab_t avail_exprs):
15750         Change type to hash_table.  Update dependent calls and types.
15752         * tree-ssa-live.c (var_map_base_init::tree_to_index):
15753         Change type to hash_table.  Update dependent calls and types.
15755         * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
15756         Change type to hash_table.  Update dependent calls and types.
15758         * tree-ssa-phiopt.c (seen_ssa_names):
15759         Change type to hash_table.  Update dependent calls and types.
15761         * tree-ssa-strlen.c (decl_to_stridxlist_htab):
15762         Change type to hash_table.  Update dependent calls and types.
15764         * tree-ssa-uncprop.c (equiv):
15765         Change type to hash_table.  Update dependent calls and types.
15767 2013-04-25  Jakub Jelinek  <jakub@redhat.com>
15769         PR rtl-optimization/57003
15770         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
15771         call note_stores with kill_clobbered_value callback again after
15772         killing regs_invalidated_by_call.
15774 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
15776         * config/aarch64/aarch64-simd.md
15777         (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
15778         (aarch64_simd_bsl<mode>): Likewise.
15779         * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
15781 2013-04-25  Marek Polacek  <polacek@redhat.com>
15783         PR tree-optimization/57066
15784         * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
15786 2013-04-25  James Greenhalgh  <jame.greenhalgh@arm.com>
15788         * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
15790 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
15792         * config/aarch64/aarch64-builtins.c
15793         (aarch64_fold_builtin): New.
15794         * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
15795         * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
15796         * config/aarch64/aarch64-simd-builtins.def (abs): New.
15797         * config/aarch64/arm_neon.h
15798         (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
15800 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
15801             Tejas Belagod  <tejas.belagod@arm.com>
15803         * config/aarch64/aarch64-builtins.c
15804         (aarch64_gimple_fold_builtin): New.
15805         * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
15806         * config/aarch64/aarch64-simd-builtins.def (addv): New.
15807         * config/aarch64/aarch64-simd.md (addpv4sf): New.
15808         (addvv4sf): Update.
15809         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
15811 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15813         * config/aarch64/aarch64.md
15814         (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
15816 2013-04-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
15818         * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
15819         (*ngcsi_uxtw): New pattern.
15821 2013-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15822             Julian Brown  <julian@codesourcery.com>
15824         * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
15825         (TB_DREG): Add T_V4HF.
15826         (v4hf_UP): New macro.
15827         (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
15828         (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
15829         Handle initialisation of V4HF. Adjust initialisation of reinterpret
15830         built-ins.
15831         (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
15832         (arm_vector_mode_supported_p): Handle V4HF.
15833         (arm_mangle_map): Handle V4HFmode.
15834         * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
15835         * config/arm/arm_neon_builtins.def: Add entries for
15836         vcvtv4hfv4sf, vcvtv4sfv4hf.
15837         * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
15838         (neon_vcvtv4hfv4sf): Likewise.
15839         * config/arm/neon-gen.ml: Handle half-precision floating point
15840         features.
15841         * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
15842         * config/arm/arm_neon.h: Regenerate.
15843         * config/arm/neon.ml (type elts): Add F16.
15844         (type vectype): Add T_float16x4, T_floatHF.
15845         (type vecmode): Add V4HF.
15846         (type features): Add Requires_FP_bit feature.
15847         (elt_width): Handle F16.
15848         (elt_class): Likewise.
15849         (elt_of_class_width): Likewise.
15850         (mode_of_elt): Refactor.
15851         (type_for_elt): Handle F16, fix error messages.
15852         (vectype_size): Handle T_float16x4.
15853         (vcvt_sh): New function.
15854         (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
15855         (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
15856         (string_of_mode): Handle V4HF.
15857         * doc/arm-neon-intrinsics.texi: Regenerate.
15859 2013-04-25  James Greenhalgh  <james.greenhalgh@arm.com>
15861         * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
15862         format specifier in 'X' case.
15864 2013-04-25  Alan Modra  <amodra@gmail.com>
15866         PR target/57052
15867         * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
15868         rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
15869         (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
15870         Repeat for many other rotate/shift and mask patterns using subregs.
15871         Name lshiftrt insns.
15872         (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
15873         on WORDS_BIG_ENDIAN.
15875 2013-04-25  Alan Modra  <amodra@gmail.com>
15877         * config.gcc: Support little-endian powerpc-linux targets.
15878         * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
15879         (LINK_OS_LINUX_SPEC): Define.
15880         * config/rs6000/linuxspe.h (TARGET_DEFAULT):
15881         Preserve MASK_LITTLE_ENDIAN.
15882         * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
15883         * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
15884         * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
15885         (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
15886         (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
15887         * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
15888         Correct fp word order for little-endian.  Don't shift toc entries
15889         smaller than a word for little-endian.
15890         * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
15891         (bswapdi2 splits): Correct low-part subreg for little-endian.
15892         Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
15893         low/high where such is correct only for be.
15894         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
15895         little-endian for -mcall-aixdesc.
15897 2013-04-25  Alan Modra  <amodra@gmail.com>
15899         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
15900         replace_equiv_address_nv.
15902 2013-04-25  Alan Modra  <amodra@gmail.com>
15904         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
15906 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
15908         Revert:
15909         2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
15910         * rtl.h (struct rtx_def): ...
15912 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
15914         PR rtl-optimizations/57046
15915         * lra-constraints (split_reg): Set up lra_risky_transformations_p
15916         for multi-reg splits.
15918 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
15920         * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
15922 2013-04-24  Sterling Augustine  <saugustine@google.com>
15924         * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
15925         (comp_dir_string, debug_str_dwo_section): New.
15926         (DEBUG_STR_DWO_SECTION): Rename to ...
15927         (DEBUG_DWO_STR_SECTION): ... this.
15928         (DEBUG_NORM_STR_SECTION): Delete.
15929         (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
15930         (DEBUG_STR_DWO_SECTION_FLAGS): New.
15931         (find_AT_string): Move most logic to ...
15932         (find_AT_string_in_table): ... here.  New.
15933         (add_top_level_skeleton_die_attrs): Call comp_dir_string and
15934         add_skeleton_AT_string.  Delete logic.
15935         (output_skeleton_debug_sections): Remove call to
15936         add_top_level_skeleton_die_attrs.
15937         (add_comp_dir_attribute): Move logic to comp_dir_string.
15938         (dwarf2out_init): Initialize debug_str_dwo_section.
15939         (output_indirect_string): Call find_string_form.
15940         (output_indirect_strings): Rewrite.
15941         (prune_unused_types): Empty skeleton_debug_str_hash.
15942         Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
15943         (dwarf2out_finish):  Call output_indirect_strings.
15945 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
15947         * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
15949 2013-04-24  Vladimir Makarov  <vmakarov@redhat.com>
15951         * rtl.h (struct rtx_def): Add comment for field jump.
15952         (LRA_SUBREG_P): New macro.
15953         * recog.c (register_operand): Check LRA_SUBREG_P.
15954         * lra.c (lra): Add note at the end of RTL code. Align non-empty
15955         stack frame.
15956         * lra-spills.c (lra_spill): Align stack after spilling pseudos.
15957         (lra_final_code_change): Skip subreg change for operators.
15958         * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
15959         if there are no operand changes.
15960         * lra-constraints.c (curr_insn_set): New.
15961         (match_reload): Set LRA_SUBREG_P.
15962         (emit_spill_move): Ditto.
15963         (check_and_process_move): Use curr_insn_set. Process only single
15964         set insns.  Don't initialize sec_mem_p and change_p.
15965         (simplify_operand_subreg): Use LRA_SUBREG_P.
15966         (reg_in_class_p): New function.
15967         (process_alt_operands): Use it.  Use #if HAVE_ATTR_enabled instead
15968         of #ifdef.  Add code to remove cycling.
15969         (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
15970         non-null disp.  Reload inner instead of disp when base and index
15971         are null.  Try to put lo_sum into register.
15972         (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
15973         (check_and_process_move): Move code for move cost check to
15974         simple_move_p.  Remove equiv_substitution.
15975         (simple_move_p): New function.
15976         (curr_insn_transform): Initialize sec_mem_p and change_p.  Set up
15977         curr_insn_set.  Call check_and_process_move only for single set
15978         insns.  Use the new function.  Move call of check_and_process_move
15979         after operand equiv substitution and address process.
15981 2013-04-24  James Greenhalgh  <james.greenhalgh@arm.com>
15983         * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
15984         (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
15985         (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
15987 2013-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
15989         * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
15991 2013-04-24  Marek Polacek  <polacek@redhat.com>
15993         * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
15994         * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
15995         (select_loops_exit_conditions): Likewise.
15996         (number_of_iterations_for_all_loops): Likewise.
15997         (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
15998         (scev_analysis): Likewise.
16000 2013-04-02  Catherine Moore  <clm@codesourcery.com>
16001             Chao-ying Fu  <fu@mips.com>
16003         * config/mips/micromips.md (jraddiusp): New pattern.
16004         * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
16005         instruction if possible.
16007 2013-04-24  Alan Modra  <amodra@gmail.com>
16009         * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
16011 2013-04-24  Julian Brown  <julian@codesourcery.com>
16012             Chung-Lin Tang  <cltang@codesourcery.com>
16014         * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
16015         dependency behavior in enumeration type DIE generation. Add TODO note
16016         to comments about future DW_FORM_sdata/udata re-work of related code.
16018 2013-04-23  Lawrence Crowl  <crowl@google.com>
16020         * Makefile.in: Update as needed below.
16022         * hash-table.h (class hash_table):
16023         Correct many methods with parameter types compare_type to the correct
16024         value_type.  (Correct code was unlikely to notice the change.)
16025         (hash_table::elements_with_deleted) New.
16026         (class hashtable::iterator): New.
16027         (hashtable::begin()): New.
16028         (hashtable::end()): New.
16029         (FOR_EACH_HASH_TABLE_ELEMENT): New.
16031         * statistics.c (statistics_hashes):
16032         Change type to hash_table.  Update dependent calls and types.
16034         * tree-into-ssa.c (var_infos):
16035         Change type to hash_table.  Update dependent calls and types.
16037         * tree-ssa-coalesce.c (struct coalesce_list_d.list):
16038         Change type to hash_table.  Update dependent calls and types.
16040         * tree-ssa-loop-im.c (struct mem_ref.refs):
16041         Change type to hash_table.  Update dependent calls and types.
16043         * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
16044         Change type to hash_table.  Update dependent calls and types.
16046         * tree-ssa-sccvn.c (vn_tables_s::nary):
16047         Change type to hash_table.  Update dependent calls and types.
16048         (vn_tables_s::phis): Likewise.
16049         (vn_tables_s::references): Likewise.
16051         * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
16052         (vn_reference_eq): Update parameter and return types.
16054         * tree-ssa-structalias.c (pointer_equiv_class_table):
16055         Change type to hash_table.  Update dependent calls and types.
16056         (location_equiv_class_table): Likewise.
16058         * tree-vect-data-refs.c: Consequential changes for making
16059         peeling a hash_table.
16061         * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
16062         (destroy_loop_vec_info): Dependent hash_table update.
16064         * tree-vectorizer.h (peeling_htab):
16065         Change type to hash_table.  Update dependent calls and types.
16067 2013-04-23  Shiva Chen  <shiva0217@gmail.com>
16069         * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
16070         to check the register content is equal or not.
16071         * lra-constraints.c (match_reload): Use lra_assign_reg_val
16072         to assign register content record.
16073         * lra-eliminations.c (update_reg_eliminate): Use
16074         lra_update_reg_val_offset to update register content offset.
16075         * lra-int.h (struct lra_reg): Add offset member.
16076         (lra_reg_val_equal_p): New static inline function.
16077         (lra_update_reg_val_offset): New static inline function.
16078         (lra_assign_reg_val): New static inline function.
16079         * lra.c (lra_create_new_reg): Use lra_assign_reg_val
16080         to assign register content record.
16081         (initialize_lra_reg_info_element): Initial offset to zero.
16083 2013-04-23  Catherine Moore  <clm@codesourcery.com>
16085         * config/mips/mips.md (*movhi_internal, *movqi_internal): New
16086         operands.  Record compression.
16088 2013-04-23  Xinliang David Li  <davidxl@google.com>
16090         * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
16092 2013-04-23  Richard Biener  <rguenther@suse.de>
16094         PR middle-end/57036
16095         * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
16096         parameter, only add abnormal goto edges from the copied body
16097         if the call could perform abnormal gotos.
16098         (copy_cfg_body): Adjust.
16100 2013-04-23  Sofiane Naci  <sofiane.naci@arm.com>
16102         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
16104 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
16106         * coretypes.h (gimple_stmt_iterator): Add struct to make
16107         compatible with C.
16109 2013-04-23  Richard Biener  <rguenther@suse.de>
16111         PR tree-optimization/57026
16112         * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
16113         from SSA names occuring in abnormal PHI nodes.
16115 2013-04-22  Andi Kleen  <ak@linux.intel.com>
16117         * lto/lto.c (print_lto_report_1): Fix LTO report names.
16119 2013-04-22  Andi Kleen  <ak@linux.intel.com>
16121         * lto/lto.c (print_lto_report_1): Declare early.
16122         (read_cgraph_and_symbols): Call print_lto_report_1 early.
16124 2013-04-22  Andi Kleen  <ak@linux.intel.com>
16126         * common.opt (-flto-report-wpa): Add.
16127         * doc/invoke.texi (-flto-report-wpa): Add.
16128         * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
16129         (lto_main): dito.
16131 2013-04-22  Xinliang David Li  <davidxl@google.com>
16133         * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
16134         * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
16135         * Makefile.in: New dependency
16137             David Daney <ddaney.cavm@gmail.com>
16139         * configure.ac (gcc_cv_as_micromips_support):  Use the
16140         --fatal-warnings option.
16141         * configure: Regenerate.
16143 2013-04-22  Marek Polacek  <polacek@redhat.com>
16145         PR sanitizer/56990
16146         * tsan.c (instrument_expr): Don't instrument expression
16147         in case its size is zero.
16149 2013-04-22  Uros Bizjak  <ubizjak@gmail.com>
16151         PR target/57032
16152         Revert:
16153         2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
16155         * config/alpha/alpha.c (TARGET_LRA_P): New define.
16157 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
16159         * coretypes.h (gimple_stmt_iterator_d): Forward declare.
16160         (gimple_stmt_iterator): New typedef.
16161         * gimple.h (gimple_stmt_iterator): Rename to...
16162         (gimple_stmt_iterator_d): ... This.
16163         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
16164         trees be valid for GIMPLE and GENERIC.
16165         (TARGET_GIMPLE_FOLD_BUILTIN): New.
16166         * gimple-fold.c (gimple_fold_call): Call target hook
16167         gimple_fold_builtin.
16168         * hooks.c (hook_bool_gsiptr_false): New.
16169         * hooks.h (hook_bool_gsiptr_false): New.
16170         * target.def (fold_stmt): New.
16171         * doc/tm.texi: Regenerate.
16173 2013-04-22  Vladimir Makarov  <vmakarov@redhat.com>
16175         PR target/57018
16176         * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
16177         a set sp if no stack realignment.
16179 2013-04-22  Nick Clifton  <nickc@redhat.com>
16181         * config.gcc (tilegx-linux): Extend extra_objs rather than
16182         overwriting it.
16183         (tilepro-linux): Likewise.
16185 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
16187         * config/aarch64/aarch64-builtins.c
16188         (CF): Remove.
16189         (CF0, CF1, CF2, CF3, CF4, CF10): New.
16190         (VAR<1-12>): Add MAP parameter.
16191         (BUILTIN_*): Likewise.
16192         * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
16193         * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
16194         (aarch64_ushl_n<mode>): Likewise.
16195         (aarch64_sshr_n<mode>): Likewise.
16196         (aarch64_ushr_n<mode>): Likewise.
16197         (aarch64_<maxmin><mode>): Likewise.
16198         (aarch64_sqrt<mode>): Likewise.
16199         * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
16200         (vshr<q>_n_*): Likewise.
16202 2013-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
16204         * config/aarch64/aarch64-builtins.c
16205         (aarch64_simd_builtin_type_mode): Handle SF types.
16206         (sf_UP): Define.
16207         (BUILTIN_GPF): Define.
16208         (aarch64_init_simd_builtins): Handle SF types.
16209         * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
16210         (frecps): Likewise.
16211         (frecpx): Likewise.
16212         * config/aarch64/aarch64-simd.md
16213         (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
16214         (aarch64_frecpe<mode>): New.
16215         (aarch64_frecps<mode>): Likewise.
16216         * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
16217         (v8type): Add frecp<esx>.
16218         (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
16219         (aarch64_frecps<mode>): Likewise.
16220         * config/aarch64/iterators.md (FRECP): New.
16221         (frecp_suffix): Likewise.
16222         * config/aarch64/arm_neon.h
16223         (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
16225 2013-04-22  Christian Bruel  <christian.bruel@st.com>
16227         PR target/56995
16228         * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
16229         (REG_CLASS_NAMES): Idem.
16230         (REG_CLASS_CONTENTS): Idem.
16231         (REGCLASS_HAS_FP_REG): Idem.
16232         * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
16233         (sh_conditional_register_usage): Idem.
16235 2013-04-21  Jeff Law  <law@redhat.com>
16237         * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
16238         (ssa_forward_propagate_and_combine): Use it.
16240 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
16242         * lra.c: Update the flow chart diagram.
16244 2013-04-19  Vladimir Makarov  <vmakarov@redhat.com>
16246         PR rtl-optimization/56847
16247         * lra-constraints.c (process_alt_operands): Discourage alternative
16248         with non-matche doffsettable memory constraint fro memory with
16249         known offset.
16251 2013-04-19  Richard Biener  <rguenther@suse.de>
16253         PR tree-optimization/56982
16254         * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
16255         function.
16256         * gimplify.c (gimplify_call_expr): Notice special calls.
16257         (gimplify_modify_expr): Likewise.
16258         * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
16259         abnormal control flow receivers.
16260         (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
16261         in the same way as cfun->has_nonlocal_labels.
16262         (gimple_purge_dead_abnormal_call_edges): Likewise.
16263         (stmt_starts_bb_p): Make setjmp-like abnormal control flow
16264         receivers start a basic-block.
16266 2013-04-19  Richard Biener  <rguenther@suse.de>
16268         * tree-vectorizer.h (struct _slp_instance): Move load_permutation
16269         member ...
16270         (struct _slp_tree): ... here.  Make it a vector of unsigned ints.
16271         (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
16272         (SLP_TREE_LOAD_PERMUTATION): Add.
16273         (vect_transform_slp_perm_load): Adjust prototype.
16274         * tree-vect-slp.c (vect_free_slp_tree): Adjust.
16275         (vect_free_slp_instance): Likewise.
16276         (vect_create_new_slp_node): Likewise.
16277         (vect_supported_slp_permutation_p): Remove.
16278         (vect_slp_rearrange_stmts): Adjust.
16279         (vect_supported_load_permutation_p): Likewise.  Inline
16280         vect_supported_slp_permutation_p here.
16281         (vect_analyze_slp_instance): Compute load permutations per
16282         slp node instead of per instance.
16283         (vect_get_slp_defs): Adjust.
16284         (vect_transform_slp_perm_load): Likewise.
16285         (vect_schedule_slp_instance): Remove redundant code.
16286         (vect_schedule_slp): Remove hack for PR56270, add it ...
16287         * tree-vect-stmts.c (vectorizable_load): ... here, do not
16288         CSE loads for SLP.  Adjust.
16290 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
16292         * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
16293         spelling in two comments.
16295 2013-04-19  Greta Yorsh  <Greta.Yorsh@arm.com>
16297         PR target/56797
16298         * config/arm/arm.c (load_multiple_sequence): Require SP
16299         as base register for loads if SP is in the register list.
16301 2013-04-19  Martin Jambor  <mjambor@suse.cz>
16303         PR tree-optimization/56718
16304         * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
16305         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
16306         and made public.  Adjusted all callers.
16307         (ipa_intraprocedural_devirtualization): New function.
16308         * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
16309         (ipa_intraprocedural_devirtualization): Likewise.
16310         * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
16312 2013-04-19  Richard Biener  <rguenther@suse.de>
16314         PR tree-optimization/57000
16315         * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
16317 2013-04-19  Terry Guo  <terry.guo@arm.com>
16319         * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
16320         Replace with ...
16321         (cortex_m4_v_a,  cortex_m4_v_b): ... new cpu units.
16322         (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
16323         (cortex_m4_fmacs): Use new reservations.
16324         (cortex_m4_f_load, cortex_m4_f_store): Likewise.
16326 2013-04-18  Vladimir Makarov  <vmakarov@redhat.com>
16328         PR rtl-optimization/56999
16329         * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
16330         related code.
16331         (lra_coalesce): Remove split_origin_bitmap and related code.
16332         * lra.c (lra): Coalesce after undoing inheritance.  Recreate live
16333         ranges if necessary.
16335 2013-04-18  Uros Bizjak  <ubizjak@gmail.com>
16337         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
16338         New array.
16339         (ix86_expand_call): Remove clobbered_registers array and use
16340         x86_64_ms_sysv_extra_clobbered_registers instead.
16341         * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
16342         Declare here.
16343         * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
16344         predicate.
16345         * config/i386/i386.md (*call_rex64_ms_sysv): Use
16346         call_rex64_ms_sysv_operation predicate.  Remove explicit clobbers.
16347         (*call_value_rex64_ms_sysv): Ditto.
16349 2013-04-18  Cary Coutant  <ccoutant@google.com>
16351         * dwarf2out.c (output_pubnames): Check die_perennial_p of
16352         parent instead of die_mark.
16354 2013-04-18  Diego Novillo  <dnovillo@google.com>
16356         * gimple.c (create_gimple_tmp): New.
16357         (get_expr_type): New.
16358         (build_assign): New.
16359         (build_type_cast): New.
16360         * gimple.h (enum ssa_mode): Define.
16361         (gimple_seq_set_location): New.
16362         * asan.c (build_check_stmt): Change some gimple_build_* calls
16363         to use build_assign and build_type_cast.
16365 2013-04-18  Richard Biener  <rguenther@suse.de>
16367         * tree-vect-data-refs.c (vect_analyze_group_access): Properly
16368         handle negative step.  Remove redundant checks.
16369         (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
16370         * tree-vect-stmts.c (vectorizable_load): Instead of asserting
16371         for negative step and grouped loads fail to vectorize.
16373 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
16375         * emit-rtl.c (reset_insn_used_flags): New function.
16376         (reset_all_used_flags): Use it.
16377         (verify_insn_sharing): New function.
16378         (verify_rtl_sharing): Fix verification for SEQUENCEs.
16380 2013-04-18  Jakub Jelinek  <jakub@redhat.com>
16382         PR tree-optimization/56984
16383         * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
16384         and (x >> M) >= N don't register any assertion if N << M is the
16385         minimum value.
16387 2013-04-18  Steven Bosscher  <steven@gcc.gnu.org>
16389         * lower-subreg.c (resolve_simple_move): If called self-recursive,
16390         do not delete_insn insns that have not yet been emitted, only
16391         unlink them with remove_insn.
16392         * df-scan.c (df_insn_delete): Revert r197492.
16394 2013-04-17  Steven Bosscher  <steven@gcc.gnu.org>
16396         * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
16397         * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
16399 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
16401         * config/arm/arm.md (movsicc_insn): Convert define_insn into
16402         define_insn_and_split.
16403         (and_scc,ior_scc,negscc): Likewise.
16404         (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
16406 2013-04-17  Greta Yorsh  <Greta.Yorsh@arm.com>
16408         * config/arm/arm.c (use_return_insn): Return 0 for targets that
16409         can benefit from using a sequence of LDRD instructions in epilogue
16410         instead of a single LDM instruction.
16412 2013-04-17  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16414         PR 45688
16415         * doc/extend.texi: Fix typo.
16417 2013-04-17  Richard Biener  <rguenther@suse.de>
16419         * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
16420         (vect_build_slp_tree): ... here.
16421         (vect_build_slp_tree_1): Compute which stmts of the SLP group
16422         match.  Remove special-casing of mismatched complex loads.
16423         (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
16424         re-try the match with swapped commutative operands.
16425         (vect_supported_load_permutation_p): Remove special-casing of
16426         mismatched complex loads.
16427         (vect_analyze_slp_instance): Adjust.
16429 2013-04-17  Richard Biener  <rguenther@suse.de>
16431         PR rtl-optimization/56921
16432         * cfgloop.h (struct loop): Add simple_loop_desc member.
16433         (struct niter_desc): Mark with GTY(()).
16434         (simple_loop_desc): Do not use aux field but simple_loop_desc.
16435         * loop-iv.c (get_simple_loop_desc): Likewise.
16436         (free_simple_loop_desc): Likewise.
16438         Revert
16439         2013-04-16  Richard Biener  <rguenther@suse.de>
16441         PR rtl-optimization/56921
16442         * loop-init.c (pass_rtl_move_loop_invariants): Add
16443         TODO_do_not_ggc_collect to todo_flags_finish.
16444         (pass_rtl_unswitch): Same.
16445         (pass_rtl_unroll_and_peel_loops): Same.
16446         (pass_rtl_doloop): Same.
16448 2013-04-17  Eric Botcazou  <ebotcazou@adacore.com>
16450         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
16451         (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
16452         Use nonoverlapping_component_refs_of_decl_p to disambiguate component
16453         references.
16454         (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
16455         * tree-streamer.c (record_common_node): Adjust reference in comment.
16457 2013-04-17  Terry Guo  <terry.guo@arm.com>
16459         * config/arm/cortex-m4.md: Add a new bypass.
16461 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16463         * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
16464         New pattern.
16465         (*subs_<optab><mode>_multp2): New pattern.
16466         (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
16467         (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
16469 2013-04-16  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16471         * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
16472         (*subs_mul_imm_<mode>): New pattern.
16474 2013-04-16  David Edelsohn  <dje.gcc@gmail.com>
16476         PR target/56948
16477         * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
16478         (vsx_movti_64bit): Change j->wa to O->wa.  Add n->r alternative.
16479         (vsx_movti_32bit): Change j->wa to O->wa.
16481 2013-04-16  Richard Biener  <rguenther@suse.de>
16483         PR rtl-optimization/56921
16484         * loop-init.c (pass_rtl_move_loop_invariants): Add
16485         TODO_do_not_ggc_collect to todo_flags_finish.
16486         (pass_rtl_unswitch): Same.
16487         (pass_rtl_unroll_and_peel_loops): Same.
16488         (pass_rtl_doloop): Same.
16490 2013-04-16  Greta Yorsh  <Greta.Yorsh@arm.com>
16492         * config/arm/arm.c (emit_multi_reg_push): New declaration
16493         for an existing function.
16494         (arm_emit_strd_push): New function.
16495         (arm_expand_prologue): Used here.
16496         (arm_emit_ldrd_pop): New function.
16497         (arm_expand_epilogue): Used here.
16498         (arm_get_frame_offsets): Update condition.
16499         (arm_emit_multi_reg_pop): Add a special case for load of a single
16500         register with writeback.
16502 2013-04-16  Uros Bizjak  <ubizjak@gmail.com>
16504         * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
16505         description.
16507 2013-04-16  Richard Biener  <rguenther@suse.de>
16509         PR tree-optimization/56756
16510         * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
16511         (first_mem_ref_loc): New.
16512         (execute_sm): Place the load temporarily before a previous
16513         access instead of in the latch edge to ensure its SSA dependencies
16514         are defined at points dominating the load.
16516 2013-04-16  Steven Bosscher  <steven@gcc.gnu.org>
16518         * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
16519         correct fix by moving header and footer insn to the footer of
16520         the merged basic block.  Clear BB_END of the merged-away block.
16522         PR middle-end/43631
16523         * emit-rtl.c (make_note_raw): New function.
16524         (link_insn_into_chain): New static inline function.
16525         (add_insn): Use it.
16526         (add_insn_before, add_insn_after): Factor insn chain linking code...
16527         (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
16528         using link_insn_into_chain.
16529         (note_outside_basic_block_p): New helper function for emit_note_after
16530         and emit_note_before.
16531         (emit_note_after): Use nobb variant of add_insn_after if the note
16532         should not be contained in a basic block.
16533         (emit_note_before): Use nobb variant of add_insn_before if the note
16534         should not be contained in a basic block.
16535         (emit_note_copy): Use make_note_raw.
16536         (emit_note): Likewise.
16537         * bb-reorder.c (insert_section_boundary_note): Remove hack to set
16538         BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
16539         * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
16540         the moved barrier the tail of the basic block it follows.
16541         * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
16543 2013-04-15  Jakub Jelinek  <jakub@redhat.com>
16545         PR tree-optimization/56962
16546         * gimple-ssa-strength-reduction.c (record_increment): Only set
16547         initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
16548         either rhs1 or rhs2 is equal to c->base_expr.
16550 2013-04-15  Richard Biener  <rguenther@suse.de>
16552         PR tree-optimization/56933
16553         * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
16554         member.
16555         (GROUP_READ_WRITE_DEPENDENCE): Remove.
16556         (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
16557         * tree-vect-data-refs.c (vect_analyze_group_access): Move
16558         dependence check ...
16559         vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
16560         ... here.
16561         * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
16562         GROUP_READ_WRITE_DEPENDENCE.
16564 2013-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16566         * emit-rtl.c (reset_all_used_flags): New function.
16567         (verify_rtl_sharing): Call reset_all_used_flags before and after
16568         performing the checks.
16570 2013-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16572         * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
16573         * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
16574         * config/arm/constraints.md (De): New constraint.
16575         * config/arm/neon.md (anddi3_neon): Delete.
16576         (neon_vand<mode>): Expand to standard anddi3 pattern.
16577         * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
16578         Move earlier in the file.
16579         (neon_inv_logic_op2): Likewise.
16580         (arm_anddi_operand_neon): New predicate.
16582 2013-04-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16584         * configure.ac (gcc_cv_ld_as_needed): Set
16585         gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
16586         Use -z ignore, -z record on *-*-solaris2*.
16587         (HAVE_LD_AS_NEEDED): Update comment.
16588         (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
16589         * configure: Regenerate.
16590         * config.in: Regenerate.
16591         * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
16592         LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
16593         * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
16594         * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
16595         equivalents.  Fix markup.
16596         * doc/tm.texi: Regenerate.
16598 2013-04-15  Andrew Hsieh  <andrewhsieh.google.com>
16600         * config/i386/i386.opt: New option mstack-protector-guard=.
16601         * config/i386/i386-opts.h: Add enum stack_protector_guard.
16602         * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
16603         TARGET_SSP_TLS_GUARD.
16604         * config/i386/i386.c (ix86_option_override_internal): Set
16605         ix86_stack_protector_guard.
16606         * config/i386/i386.md (stack_protect_set): Enable for
16607         TARGET_SSP_TLS_GUARD only.
16608         (stack_protect_set_<mode>): Ditto.
16609         (stack_protect_test): Ditto.
16610         (stack_protect_test_<mode>): Ditto.
16611         * doc/invoke.texi (i386 Option): Document.
16613 2013-04-15  Eric Botcazou  <ebotcazou@adacore.com>
16615         PR target/56890
16616         * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
16617         (S_MODES): Set H_MODE bit.
16618         (SF_MODES): Set only S_MODE and SF_MODE bits.
16619         (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
16620         (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
16621         <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
16622         <MODE_FLOAT>: Likewise.
16624 2013-04-15  Joey Ye  <joey.ye@arm.com>
16626         * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
16628 2013-04-15  Joey Ye  <joey.ye@arm.com>
16630         * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
16631         for real far jump.
16632         (thumb_far_jump_used_p): Count instruction size and set
16633         far_jump_used.
16635 2013-04-14  Eric Botcazou  <ebotcazou@adacore.com>
16637         * reorg.c (fill_simple_delay_slots): Reindent block of code.
16638         * resource.c (mark_target_live_regs): Reformat conditional block.
16640 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
16642         * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
16643         notes, they are emitted only just before final.
16644         * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
16646 2013-04-13  Steven Bosscher  <steven@gcc.gnu.org>
16648         * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
16649         * cfgrtl.c (delete_insn): Call it here instead.
16650         * lra-spills.c (lra_final_code_change): Use delete_insn.
16651         * haifa-sched.c (sched_remove_insn): Likewise.
16652         * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
16653         returning to the nop pool.
16654         (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
16655         use delete_insn for definitive removal.  Clear BLOCK_FOR_INSN.
16657 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
16659         * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
16660         * doc/tm.texi: Regenerated.
16662 2013-04-12  Uros Bizjak  <ubizjak@gmail.com>
16664         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
16665         QImode checks.
16667 2013-04-12  Steven Bosscher  <steven@gcc.gnu.org>
16669         * df-core.c (df_find_def): Compare register numbers.
16670         (df_find_use): Likewise.
16672 2013-04-12  Vladimir Makarov  <vmakarov@redhat.com>
16674         PR target/56903
16675         * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
16676         lra_in_progress for return.
16678 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
16680         * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
16681         define_insn into define_insn_and_split and emit movsicc patterns.
16683 2013-04-12  Greta Yorsh  <Greta.Yorsh@arm.com>
16685         * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
16687 2013-04-12  Richard Biener  <rguenther@suse.de>
16689         * tree-pass.h (TODO_do_not_ggc_collect): New.
16690         * passes.c (execute_one_ipa_transform_pass): Honor
16691         TODO_do_not_ggc_collect.
16692         (execute_one_pass): Likewise.
16694         Revert
16695         2013-04-10  Richard Biener  <rguenther@suse.de>
16697         * passes.c (init_optimization_passes): Remove reload pass.
16698         * ira.c (do_reload): Merge into ...
16699         (ira): ... this.
16700         (rest_of_handle_reload): Remove.
16701         (pass_reload): Likewise.
16702         * config/i386/i386.c (ix86_option_override): Refer to ira instead
16703         of reload for vzeroupper pass placement.
16705 2013-04-12  Jakub Jelinek  <jakub@redhat.com>
16707         PR tree-optimization/56918
16708         PR tree-optimization/56920
16709         * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
16710         instead of op1 - op2.  Pass 2 * TYPE_PRECISION (type) as second
16711         argument to rshift method.  For 2 * HOST_BITS_PER_WIDE_INT precision
16712         use wide_mul_with_sign method.
16714 2013-04-12  Richard Biener  <rguenther@suse.de>
16716         * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
16717         not be considered a gimple constant.
16719 2013-04-12  Marc Glisse  <marc.glisse@inria.fr>
16721         * fold-const.c (const_binop): Handle vector shifts by a scalar.
16722         (fold_binary_loc): Call const_binop also for mixed vector-scalar
16723         operations.
16725 2013-04-12  Manuel López-Ibáñez  <manu@gcc.gnu.org>
16726             Jakub Jelinek  <jakub@redhat.com>
16728         * opts.c: Include diagnostic-color.h.
16729         (common_handle_option): Handle OPT_fdiagnostics_color_.
16730         * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
16731         (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
16732         (diagnostic-color.o): New.
16733         * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
16734         (diagnostic_color_rule): New enum.
16735         * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
16736         * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
16737         the location string.
16738         * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
16739         either NULL, or color kind.
16740         * diagnostic-color.c: New file.
16741         * diagnostic-color.h: New file.
16742         * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
16743         arguments.
16744         * doc/invoke.texi (-fdiagnostics-color): Document.
16745         * pretty-print.h (pp_show_color): Define.
16746         (struct pretty_print_info): Add show_color field.
16747         * diagnostic.c: Include diagnostic-color.h.
16748         (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
16749         macros.  Colorize error:, warning: etc. strings and also the location
16750         string.
16751         (diagnostic_show_locus): Colorize the caret line.
16752         * pretty-print.c: Include diagnostic-color.h.
16753         (pp_base_format): Handle %r and %R format specifiers.  Colorize strings
16754         inside of %< %> quotes or quoted through q format modifier.
16756 2013-04-12  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16758         * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
16760 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16762         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
16763         code in CC_NZ mode.
16764         * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
16765         pattern.
16767 2013-04-11  Marek Polacek  <polacek@redhat.com>
16769         PR tree-optimization/48184
16770         * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
16772 2013-04-11  Eric Botcazou  <ebotcazou@adacore.com>
16774         * stor-layout.c (skip_simple_constant_arithmetic): Move to...
16775         * tree.c (skip_simple_constant_arithmetic): ...here and make public.
16776         (skip_simple_arithmetic): Tidy up.
16777         * tree.h (skip_simple_constant_arithmetic): Declare.
16779 2013-04-11  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
16781         * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
16783 2013-04-11  Richard Biener  <rguenther@suse.de>
16785         * tree-vect-loop.c (get_initial_def_for_induction): Properly
16786         generate vector constants.
16788 2013-04-11  Richard Biener  <rguenther@suse.de>
16790         PR tree-optimization/56878
16791         * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
16792         * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
16793         New function.
16794         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
16795         Prefer to align the DR with the most invariant base address.
16797 2013-04-11  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16799         * opts.c (common_handle_option): Fix formatting and add FALLTHRU
16800         comment.
16802 2013-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
16804         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
16805         floating-point vector comparisons against 0.
16807 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
16809         PR tree-optimization/56899
16810         * fold-const.c (extract_muldiv_1): Apply distributive law
16811         only if TYPE_OVERFLOW_WRAPS (ctype).
16813 2013-04-11  Bin Cheng  <bin.cheng@arm.com>
16815         PR target/56124
16816         * ira-costs.c (scan_one_insn): Check whether the source rtx of
16817         loading has side effect.
16819 2013-04-10  Steven Bosscher  <steven@gcc.gnu.org>
16821         * config/sparc/sparc.c: Include tree-pass.h.
16822         (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
16823         (sparc_reorg): Rename to sparc_do_work_around_errata.  Move to
16824         head of file.  Change return type.  Split off gate function.
16825         (sparc_gate_work_around_errata): New function.
16826         (pass_work_around_errata): New pass definition.
16827         (insert_pass_work_around_errata) New pass insert definition to
16828         insert pass_work_around_errata just after delayed-branch scheduling.
16829         (sparc_option_override): Insert the pass.
16830         * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
16832 2013-04-10  David S. Miller  <davem@davemloft.net>
16834         * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
16835         or -mcpu=hypersparc.
16837         * target.def (cstore_mode): New hook.
16838         * target.h: Include insn-codes.h
16839         * targhooks.c: Likewise.
16840         (default_cstore_mode): New function.
16841         * targhooks.h: Declare it.
16842         * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
16843         * doc/tm.texi: Rebuild.
16844         * expmed.c (emit_cstore): Obtain cstore boolean result mode using
16845         target hook, rather than inspecting the insn_data.
16846         * config/sparc/sparc.c (sparc_cstore_mode): New function.
16847         (TARGET_CSTORE_MODE): Redefine.
16848         (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
16849         result patterns.
16850         * config/sparc/predicates.md (cstore_result_operand): New special
16851         predicate.
16852         * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
16853         Use it for operand 0.
16854         (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
16855         (*snesi_special): Likewise.
16856         (*snesi_zero): Likewise.
16857         (*seqsi_zero): Likewise.
16858         (*sltu_insn): Likewise.
16859         (*sgeu_insn): Likewise.
16860         (*seqdi_special): Make operand 0 and comparison operation be of
16861         DImode.
16862         (*snedi_special): Likewise.
16863         (*snedi_special_vis3): Likewise.
16864         (*neg_snesi_zero): Rename to *neg_snesisi_zero.
16865         (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
16866         (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
16867         (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
16868         (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
16869         (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
16870         (*sltu_extend_sp64): Likewise.
16871         (*neg_sltu_insn): Rename to *neg_sltusi_insn.
16872         (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
16873         (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
16874         (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
16875         (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
16877 2013-04-10  Yufeng Zhang  <yufeng.zhang@arm.com>
16879         * config/aarch64/aarch64.c (aarch64_print_extension): New function.
16880         (aarch64_start_file): Use the new function.
16882 2013-04-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16883             Jason Merrill  <jason@redhat.com>
16885         * common.opt: Add -gdwarf.
16886         * opts.c (common_handle_option): Handle it.
16887         * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
16889 2013-04-10  Richard Biener  <rguenther@suse.de>
16891         * passes.c (execute_todo): Do not call ggc_collect conditional here.
16892         (execute_one_ipa_transform_pass): But unconditionally here.
16893         (execute_one_pass): And here.
16894         (init_optimization_passes): Remove reload pass.
16895         * tree-pass.h (TODO_ggc_collect): Remove.
16896         (pass_reload): Likewise.
16897         * ira.c (do_reload): Merge into ...
16898         (ira): ... this.
16899         (rest_of_handle_reload): Remove.
16900         (pass_reload): Likewise.
16901         * config/i386/i386.c (ix86_option_override): Refer to ira instead
16902         of reload for vzeroupper pass placement.
16903         * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
16904         and todo_flags_finish of all passes.
16906 2013-04-10  Richard Biener  <rguenther@suse.de>
16908         * tree-vectorizer.h (struct _slp_oprnd_info): Remove
16909         first_const_oprnd field, rename first_def_type to first_op_type.
16910         * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
16911         (vect_get_and_check_slp_defs): Always use the type of the
16912         operand.  Allow mixed vect_external_def, vect_constant_def types.
16913         (vect_get_constant_vectors): Handle mixed vect_external_def,
16914         vect_constant_def types.
16916 2013-04-10  Joern Rennecke  <joern.rennecke@embecosm.com>
16918         PR tree-optimization/55524
16919         * tree-ssa-math-opts.c
16920         (convert_mult_to_fma): Don't use an fms construct
16921         when we don't have an fms operation, but fnma, and it looks
16922         likely that we'll be able to use the latter.
16924 2013-04-10  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
16926         * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
16927         function.
16928         * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
16929         inline fail caused by overwritable functions.
16931 2013-04-10  Chung-Ju Wu  <jasonwucj@gmail.com>
16933         * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
16934         unnecessary bits in the constant power of two case.
16936 2013-04-10  Richard Biener  <rguenther@suse.de>
16938         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
16939         broken code swapping operands.
16940         (vect_build_slp_tree): Do not compute load permutations here.
16941         (vect_analyze_slp_instance): Compute load permutations here,
16942         after building the SLP tree.
16944 2013-04-09  Christian Bruel  <christian.bruel@st.com>
16946         * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
16947         of next/prev_real_insn.
16949 2013-04-09  Jan Hubicka  <jh@suse.cz>
16951         * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
16952         Drop aliased parameter.
16953         (function_and_variable_visibility): Do not handle alias pairs.
16954         * cgraph.c (varpool_externally_visible_p): Update prototype.
16955         * varpool.c (varpool_add_new_variable): Update.
16957 2013-04-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16959         * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
16961 2013-04-09  Steven Bosscher  <steven@gcc.gnu.org>
16963         * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
16965         * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
16967 2013-04-09  Marek Polacek  <polacek@redhat.com>
16969         PR tree-optimization/48762
16970         * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
16972 2013-04-09  Richard Biener  <rguenther@suse.de>
16974         * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
16975         dealing with cost.
16976         (vect_build_slp_tree): Likewise.
16977         (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
16978         calculating the cost of a SLP instance.
16979         (vect_analyze_slp_instance): Use it from here, after building
16980         the SLP tree.
16982 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
16984         PR middle-end/56883
16985         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
16986         expand_omp_for_static_chunk): Use simple_p = true in
16987         force_gimple_operand_gsi calls when assigning to addressable decls.
16989 2013-04-09  Jeff Law  <law@redhat.com>
16991         * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
16992         when the boolean was created by converting a wider object which
16993         had a boolean range.
16995 2013-04-09  Richard Biener  <rguenther@suse.de>
16997         * tree-vectorizer.h (slp_void_p): Remove.
16998         (slp_tree): Typedef before _slp_tree declaration.
16999         (struct _slp_tree): Use a vector of slp_tree as children.
17000         (vect_get_place_in_interleaving_chain): Remove.
17001         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
17002         Move ...
17003         * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
17004         and make static.
17005         (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
17006         vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
17007         vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
17008         vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
17009         Use slp_node instead of slp_void_p and adjust.
17011 2013-04-09  Richard Biener  <rguenther@suse.de>
17013         * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
17014         work that is not necessary.
17016 2013-04-09  Jakub Jelinek  <jakub@redhat.com>
17018         PR tree-optimization/56854
17019         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
17020         forward into clobber stmts if it would change MEM_REF lhs into
17021         non-MEM_REF.
17023 2013-04-09  Maxim Kuvyrkov  <maxim@kugelworks.com>
17025         * tree.c (type_hash_lookup, type_hash_add): Make static.
17026         * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
17028 2013-04-09  Richard Biener  <rguenther@suse.de>
17030         * tree.h (unsave_expr_now): Remove.
17031         * tree-inline.c (mark_local_for_remap_r): Remove.
17032         (unsave_expr_1): Likewise.
17033         (unsave_r): Likewise.
17034         (unsave_expr_now): Likewise.
17035         * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
17036         (propagate_tree_value): Likewise.
17038 2013-04-08  Steven Bosscher  <steven@gcc.gnu.org>
17040         * doc/rtl.texi (sequence): Rewrite documentation to match the
17041         current use of SEQUENCE rtl objects.
17042         * rtl.def (SEQUENCE): Likewise.
17044         * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
17045         Update documentation.
17046         (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
17047         NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
17049         * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
17051 2013-04-08  Teresa Johnson  <tejohnson@google.com>
17053         * basic-block.h (GCOV_COMPUTE_SCALE): Define.
17054         * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
17055         methods.
17056         (estimate_edge_size_and_time): Add comment to suggest using rounding
17057         methods.
17058         (estimate_node_size_and_time): Ditto.
17059         (remap_edge_change_prob): Use helper rounding divide methods.
17060         * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
17061         (gimple_mod_pow2_value_transform): Ditto.
17062         (gimple_mod_subtract_transform): Ditto.
17063         (gimple_ic_transform): Ditto.
17064         (gimple_stringops_transform): Ditto.
17065         * stmt.c (conditional_probability): Ditto.
17066         (emit_case_dispatch_table): Ditto.
17067         * lto-cgraph.c (merge_profile_summaries): Ditto.
17068         * tree-optimize.c (execute_fixup_cfg): Ditto.
17069         * cfgcleanup.c (try_forward_edges): Ditto.
17070         * cfgloopmanip.c (scale_loop_profile): Ditto.
17071         (loopify): Ditto.
17072         (duplicate_loop_to_header_edge): Ditto.
17073         (lv_adjust_loop_entry_edge): Ditto.
17074         * tree-vect-loop.c (vect_transform_loop): Ditto.
17075         * profile.c (compute_branch_probabilities): Ditto.
17076         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
17077         * lto-streamer-in.c (input_cfg): Ditto.
17078         * gimple-streamer-in.c (input_bb): Ditto.
17079         * ipa-cp.c (update_profiling_info): Ditto.
17080         (update_specialized_profile): Ditto.
17081         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
17082         * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
17083         rounding methods.
17084         * sched-rgn.c (compute_dom_prob_ps): Ditto.
17085         (compute_trg_info): Ditto.
17086         * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
17087         (purge_dead_edges): Ditto.
17088         * loop-unswitch.c (unswitch_loop): Ditto.
17089         * cgraphclones.c (cgraph_clone_edge): Ditto.
17090         (cgraph_clone_node): Ditto.
17091         * tree-inline.c (copy_bb): Ditto.
17092         (copy_edges_for_bb): Ditto.
17093         (initialize_cfun): Ditto.
17094         (copy_cfg_body): Ditto.
17095         (expand_call_inline): Ditto.
17097 2013-04-08  Kai Tietz  <ktietz@redhat.com>
17099         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
17100         TARGET_CYGWIN64 by TARGET_64BIT.
17102 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
17104         * config/epiphany/epiphany.md (GPR_1): New constant.
17105         (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
17106         * config/epiphany/epiphany.c (gen_compare_reg):
17107         For flag_finite_math_only, avoid swapping operands when r0 and/or r1
17108         is already in place.
17109         Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
17110         Don't require being called during rtl expansion; If y operlaps r0,
17111         return 0.
17112         (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
17113         (epiphany_expand_epilogue): Likewise.
17115         * config/epiphany/epiphany.c (epiphany_select_cc_mode):
17116         Don't use CC_FPmode for ORDERED / UNORDERED.
17117         * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
17119         * config/epiphany/constraints.md (CnL): New constraint.
17120         * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
17121         * config/epiphany/predicates.md (add_operand): Allow 1024.
17123         * config/epiphany/epiphany.md (logical_op): New code iterator.
17124         (op_mnc): New code attribute.
17125         (<op_mnc>_f, mov_f, cstoresi4): New patterns.
17126         (mov_f+1, mov_f+2): New peephole2 patterns.
17128         * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
17129         (cstoresi4): Also allow re-use of zero result when doing a NE
17130         comparison to a non-zero operand.
17131         Use (clobber (scratch)) for first insn if the gpr output is not needed.
17133         * config/epiphany/epiphany.md (<insn_opname>v2si3):
17134         Use gen_addsi3_i / gen_subsi3_i.
17136 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
17138         PR c++/34949
17139         PR c++/50243
17140         * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
17141         contain anything but clobbers, at most one __builtin_stack_restore,
17142         optionally debug stmts and final resx, and if it has at least one
17143         incoming EH edge.  Don't check for SSA_NAME on LHS of a clobber.
17144         (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
17145         Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
17146         which isn't defaut definition, remove them.
17147         (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
17148         instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
17149         * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
17150         with MEM_REF LHS with SSA_NAME address.
17152 2013-04-08  Jeff Law  <law@redhat.com>
17154         * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
17156 2013-04-08  Richard Biener  <rguenther@suse.de>
17158         * gimple-pretty-print.c (debug_gimple_stmt): Do not print
17159         extra newline.
17160         * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
17161         determined vector type.
17162         (vect_analyze_data_refs): Likewise.
17163         (vect_get_new_vect_var): Adjust.
17164         (vect_create_destination_var): Preserve SSA name versions.
17165         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
17166         not dump anything here.
17168 2013-04-08  Joern Rennecke  <joern.rennecke@embecosm.com>
17170         * config/epiphany/epiphany.h (struct GTY (()) machine_function):
17171         Add member lr_slot_known.
17172         * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
17173         if necessary.
17174         * config/epiphany/epiphany.c (epiphany_compute_frame_size):
17175         Remove code that sets lr_slot_offset according to what a previous
17176         version of epiphany_emit_save_restore used to do.
17177         (epiphany_emit_save_restore): When doing an lr save or restore,
17178         set/verify lr_slot_known and lr_slot_offset.
17180 2013-04-08  Xinyu Qi  <xyqi@marvell.com>
17182         PR target/54338
17183         * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
17184         in ALL_REGS.
17186 2013-04-08  Richard Biener  <rguenther@suse.de>
17188         * alias.c (find_base_term): Fix thinko in previous change.
17190 2013-04-08  Jakub Jelinek  <jakub@redhat.com>
17192         * tree-loop-distribution.c (const_with_all_bytes_same): New function.
17193         (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
17194         TYPE_PRECISION is equal to mode bitsize.  Use const_with_all_bytes_same
17195         if possible to compute val.
17196         (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
17197         For QImode integers don't require anything about precision.  Use
17198         const_with_all_bytes_same to find out if the constant doesn't have
17199         repeated bytes in it.
17201 2013-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17203         * config/s390/s390.c (s390_expand_insv): Only accept insertions
17204         within mode size.
17206 2013-04-08  Marek Polacek  <polacek@redhat.com>
17208         PR rtl-optimization/48182
17209         * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
17210         value to 1.
17212 2013-04-06  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17214         PR target/55487
17215         * config/pa/pa.c (legitimize_pic_address): Before incrementing label
17216         nuses, make sure we have a label.
17218 2013-04-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17220         PR target/56843
17221         * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
17222         (rs6000_emit_swdiv_low_precision): Remove.
17223         (rs6000_emit_swdiv): Rewrite to handle between one and four
17224         iterations of Newton-Raphson generally; modify required number of
17225         iterations for some cases.
17226         * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
17228 2013-04-05  Steven Bosscher  <steven@gcc.gnu.org>
17230         * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
17231         set-but-unused variable.
17233         * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
17234         basic blocks of released function bodies garbage-collectable.
17236         * ree.c (find_and_remove_re): Do not call df_finish_pass here.
17237         (struct rtl_opt_pass): Add TODO_df_finish.
17239         * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
17241 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
17243         * config/arm/constraints.md (q): New constraint.
17244         * config/arm/ldrdstrd.md: New file.
17245         * config/arm/arm.md (ldrdstrd.md) New include.
17246         (arm_movdi): Use "q" instead of "r" constraint
17247         for double-word memory access.
17248         (movdf_soft_insn): Likewise.
17249         * config/arm/vfp.md (movdi_vfp): Likewise.
17250         * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
17251         * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
17252         * config/arm/arm.c (gen_operands_ldrd_strd): New function.
17253         (mem_ok_for_ldrd_strd): Likewise.
17254         (output_move_double): Update assertion.
17256 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
17258         * config/arm/arm.md: Comment on splitting Thumb1 patterns.
17260 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
17262         * config/arm/arm.md (arm_smax_insn): Convert define_insn into
17263         define_insn_and_split.
17264         (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
17266 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
17268         * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
17269         define_insn_and_split.
17270         (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
17271         (shiftsi3_compare): New pattern.
17272         (rrx): New pattern.
17273         * config/arm/unspecs.md (UNSPEC_RRX): New.
17275 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
17277         * config/arm/arm.md (negdi_extendsidi): New pattern.
17278         (negdi_zero_extendsidi): Likewise.
17280 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
17282         * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
17283         define_insn_and_split.
17284         (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
17285         (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
17287 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
17289         * config/arm/arm.md (arm_subdi3): Convert define_insn into
17290         define_insn_and_split.
17291         (subdi_di_zesidi,subdi_di_sesidi): Likewise.
17292         (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
17294 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
17296         * config/arm/arm.md (subsi3_carryin): New pattern.
17297         (subsi3_carryin_const): Likewise.
17298         (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
17299         (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
17301 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
17303         * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
17305 2013-04-05  Greta Yorsh  <Greta.Yorsh@arm.com>
17307         * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
17308         (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
17310 2013-04-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17312         * config/arm/arm.c (arm_expand_builtin): Change fcode
17313         type to unsigned int.
17315 2013-04-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17317         * doc/invoke.texi (ARM Options): Document cortex-a53 support.
17319 2013-04-04  Ian Lance Taylor  <iant@google.com>
17321         * doc/standards.texi (Standards): The Go frontend supports the Go 1
17322         language standard.
17324 2013-04-04  Steven Bosscher  <steven@gcc.gnu.org>
17326         PR middle-end/56729
17327         * df-scan.c (df_insn_delete): Disable failing assert.
17329 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17331         * config/arm/arm-protos.h (arm_builtin_vectorized_function):
17332         New function prototype.
17333         * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
17334         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
17335         (arm_builtin_vectorized_function): New function.
17337 2013-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17339         * config/arm/arm_neon_builtins.def: New file.
17340         * config/arm/arm.c (neon_builtin_data): Move contents to
17341         arm_neon_builtins.def.
17342         (enum arm_builtins): Include neon builtin definitions.
17343         (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
17344         * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
17346 2013-04-04  Marek Polacek  <polacek@redhat.com>
17348         PR tree-optimization/48186
17349         * predict.c (maybe_hot_frequency_p): Return false if
17350         HOT_BB_FREQUENCY_FRACTION is 0.
17351         (cgraph_maybe_hot_edge_p): Likewise.
17353 2013-04-04  Richard Biener  <rguenther@suse.de>
17355         PR tree-optimization/56826
17356         * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
17357         more accurately.
17359 2013-04-04  Richard Biener  <rguenther@suse.de>
17361         PR tree-optimization/56213
17362         * tree-vect-data-refs.c (vect_check_strided_load): Remove.
17363         (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
17365 2013-04-04  Richard Biener  <rguenther@suse.de>
17367         PR tree-optimization/56837
17368         * tree-loop-distribution.c (classify_partition): For non-zero
17369         values require that the value has the same precision as its
17370         mode to be useful as memset value.
17372 2013-04-03  Nick Clifton  <nickc@redhat.com>
17374         * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
17375         (fmssf4): Use fmsf.s on E3V5 architectures.
17376         (fnmasf4): Use fnmaf.s on E3V5 architectures.
17377         (fnmssf4): Use fnmsf.s on E3V5 architectures.
17379 2013-04-03  Jeff Law  <law@redhat.com>
17381         * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
17382         (lra-eliminations.o): Likewise.
17384 2013-04-03  Teresa Johnson  <tejohnson@google.com>
17386         * gcov-io.c (compute_working_sets): Moved most of body of old
17387         compute_working_sets here from profile.c.
17388         * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
17389         (gcov_working_set_t): Moved typedef here from basic-block.h
17390         (compute_working_set): Declare.
17391         * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
17392         (get_working_sets): Renamed from compute_working_set,
17393         replace most of body with call to new compute_working_sets.
17394         (get_exec_counts): Replace call to compute_working_sets
17395         to get_working_sets.
17396         * profile.h (get_working_sets): Renamed from compute_working_set.
17397         * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
17398         to get_working_sets.
17399         * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
17400         * gcov-dump.c (dump_working_sets): New function.
17402 2013-04-03  Kenneth Zadeck  <zadeck@naturalbridge.com>
17404         * hwint.c (sext_hwi, zext_hwi): New functions.
17405         * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
17406         HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
17407         HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
17408         HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
17409         HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
17410         (sext_hwi, zext_hwi): New functions.
17412 2013-04-03  Jeff Law  <law@redhat.com>
17414         PR tree-optimization/56799
17415         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
17416         back test for widening conversion erroneously dropped in prior change.
17418 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17420         PR target/56809
17421         * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
17422         instead of next_real_insn.
17424 2013-04-03  Marek Polacek  <polacek@redhat.com>
17426         PR sanitizer/55702
17427         * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
17429 2013-04-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17431         PR target/56809
17432         * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
17433         next_real_insn.
17434         (thumb1_output_casesi): Likewise.
17435         (thumb2_output_casesi): Likewise.
17437 2013-04-03  Richard Biener  <rguenther@suse.de>
17439         PR tree-optimization/56817
17440         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
17441         Split out ...
17442         (tree_unroll_loops_completely_1): ... new function to manually
17443         walk the loop tree, properly defering outer loops of unrolled
17444         loops to later iterations.
17446 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
17448         * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
17449         (vectorizable_load): Likewise.
17450         * tree-vect-slp.c (vect_build_slp_tree): Likewise.
17451         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
17453 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
17455         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
17456         BIT_FIELD_REF.
17458 2013-04-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17460         * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
17462 2013-04-03  Bin Cheng  <bin.cheng@arm.com>
17464         * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
17466 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
17468         PR tree-optimization/56790
17469         * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
17470         folding.
17472 2013-04-03  Marc Glisse  <marc.glisse@inria.fr>
17474         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17475         Handle VEC_MERGE.
17476         (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
17477         for masks. Test for side effects. Handle nested VEC_MERGE. Handle
17478         equal arguments.
17480 2013-04-03  Jakub Jelinek  <jakub@redhat.com>
17482         PR c/19449
17483         * tree.h (force_folding_builtin_constant_p): New decl.
17484         * builtins.c (force_folding_builtin_constant_p): New variable.
17485         (fold_builtin_constant_p): Fold immediately also if
17486         force_folding_builtin_constant_p.
17488 2013-04-03  Richard Biener  <rguenther@suse.de>
17490         PR tree-optimization/56812
17491         * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
17492         DRs of the same interleaving chain are independent.
17494 2013-04-02  Jason Merrill  <jason@redhat.com>
17496         * gdbinit.in (pbb): Use debug fn.
17498 2013-04-02  Lawrence Crowl  <crowl@google.com>
17500         * sese.h (struct ivtype_map_elt_s): Remove unused.
17501         (extern debug_ivtype_map): Remove unused.
17502         (extern eq_ivtype_map_elts): Remove unused.
17503         * sese.c (debug_ivtype_map): Removed unused.
17504         (debug_ivtype_map_1): Removed unused.
17505         (debug_ivtype_elt): Remove unused.
17506         (eq_ivtype_map_elts): Remove unused.
17509 2013-04-02  Kai Tietz  <ktietz@redhat.com>
17511         PR target/52790
17512         * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
17513         * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
17514         * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
17515         function.
17516         (legitimize_pe_coff_symbol): Likewise.
17517         (is_imported_p): New helper-function.
17518         (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
17519         for Windows x64 targets.
17520         (ix86_expand_prologue): Optimize for pe-coff targets.
17521         (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
17522         (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
17523         medium/large code-model.
17524         (legitimize_pic_address): Likewise.
17525         (legitimize_tls_address): Likewise.
17526         (ix86_expand_call): Likewise.
17527         (x86_output_mi_thunk): Likewise.
17528         (get_dllimport_decl): Add new beimport argument.
17529         (construct_plt_address): Don't assert for x64 pe-coff targets.
17530         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
17531         targets.
17532         (SYMBOL_FLAG_STUBVAR): New macro.
17533         (SYMBOL_REF_STUBVAR_P): Likewise.
17534         * config/i386/winnt.c (stub_list): New structure.
17535         (stub_head): New local variable.
17536         (i386_pe_record_stub): New function.
17537         (i386_pe_file_end): Emit refptr-stubs.
17539 2013-04-02  Jakub Jelinek  <jakub@redhat.com>
17541         PR rtl-optimization/56745
17542         * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
17543         if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
17545         PR c++/34949
17546         * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
17547         and both of them are MEM_REFs, just compare first argument for
17548         equality and attempt to deal even with differing offsets.
17550         PR c++/34949
17551         * tree-cfg.c (verify_gimple_assign_single): Allow lhs
17552         of gimple_clobber_p to be MEM_REF.
17553         * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
17554         an assignment from TREE_CLOBBER_P.  Allow it to be MEM_REF
17555         after gimplification.
17556         * asan.c (get_mem_ref_of_assignment): Don't instrument
17557         gimple_clobber_p stmts.
17558         * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
17559         gimple_clobber_p stmt if they have MEM_REF lhs and
17560         are dead because of another gimple_clobber_p stmt.
17561         * tree-ssa-live.c (clear_unused_block_pointer): Treat
17562         gimple_clobber_p stmts like debug stmts.
17563         (remove_unused_locals): Remove clobbers with MEM_REF lhs
17564         that refer to unused VAR_DECLs or uninitialized values.
17565         * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
17566         gimple_clobber_p stmts if they refer to removed parameters.
17567         (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
17568         formatting.
17570 2013-04-02  Uros Bizjak  <ubizjak@gmail.com>
17572         * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
17573         using SWI48 mode attribute.
17575 2013-04-02  Wei Mi  <wmi@google.com>
17577         * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
17578         ashl<mode>3_mask, *<shift_insn><mode>3_mask and
17579         *<rotate_insn><mode>3_mask in i386.md.
17581 2013-04-02  Alexander Ivchenko  <alexander.ivchenko@intel.com>
17583         * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
17585 2013-04-02  Richard Biener  <rguenther@suse.de>
17587         PR tree-optimization/56778
17588         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
17589         Runtime alias tests are not supported for gather loads.
17590         * tree-vect-loop-manip.c (vect_loop_versioning): Insert
17591         stmts referenced from SSA operands before updating SSA form.
17593 2013-04-02  Ian Caulfield  <ian.caulfield@arm.com>
17594             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17596         * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
17597         * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
17598         * config/arm/cortex-a53.md: New file.
17599         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
17600         * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
17601         * config/arm/arm.c (arm_issue_rate): Likewise.
17602         * config/arm/arm-tune.md: Regenerate
17603         * config/arm/arm-tables.opt: Regenerate.
17604         * config/arm/arm-cores.def: Add cortex-a53.
17606 2013-04-02  Zhenqiang Chen  <zhenqiang.chen@arm.com>
17608         * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
17609         non-static link.
17611 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
17613         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
17614         scalar load/store operations using B/H registers.
17615         (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
17617 2013-04-02  Sofiane Naci  <sofiane.naci@arm.com>
17619         * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
17620         scalar move.
17621         * config/aarch64/aarch64.c
17622         (aarch64_simd_scalar_immediate_valid_for_move): New.
17623         * config/aarch64/aarch64-protos.h
17624         (aarch64_simd_scalar_immediate_valid_for_move): New.
17625         * config/aarch64/constraints.md (Dh, Dq): New.
17626         * config/aarch64/iterators.md (hq): New.
17628 2013-04-02  Eric Botcazou  <ebotcazou@adacore.com>
17630         * reorg.c (get_branch_condition): Deal with conditional returns.
17631         (fill_simple_delay_slots): Remove dead code dealing with jumps.
17633 2013-04-01  Wei Mi  <wmi@google.com>
17635         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
17636         Truncate operand 2 using %b asm operand modifier.
17637         (*<shift_insn><mode>3_mask): Ditto.
17638         (*<rotate_insn><mode>3_mask): Ditto.
17640 2013-04-01  Steven Bosscher  <steven@gcc.gnu.org>
17642         PR middle-end/56798
17643         * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
17645 2013-03-31  Kaz Kojima  <kkojima@gcc.gnu.org>
17647         * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
17648         of next_real_insn.
17649         (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
17651 2013-03-30  Lawrence Crowl  <crowl@google.com>
17653         * dse.c (clear_alias_sets): Remove never set.
17654         (disqualified_clear_alias_sets): Remove never set.
17655         (clear_alias_mode_pool): Remove never set.
17656         (dse_step0): Remove condition that is never true.
17657         (canon_address): Remove condition that is never true.
17658         (dse_step7): Remove condition that is never true.
17659         (rest_of_handle_dse): Remove condition that is never true.
17660         (rest_of_handle_dse::did_global): Remove never read from above.
17661         (dse_step2_spill): Remove never called from above.
17662         (dse_step5_spill): Remove never called from above.
17664 2013-03-30  Steven Bosscher  <steven@gcc.gnu.org>
17666         * doc/md.texi (Standard Names) <casesi>: Update documentation for
17667         JUMP_TABLE_DATA changes.
17668         * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
17669         * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
17670         (Insns) <jump_table_data>: New entry.
17671         * doc/tm.texi: Regenerate.
17673         * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
17675         * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
17676         for table jump at the end of a basic block using tablejump_p.
17677         * targhooks.c (default_invalid_within_doloop): Likewise.
17678         * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
17679         target hook implementation that is identical to the default hook.
17680         (rs6000_invalid_within_doloop): Remove.
17682         * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
17683         unused variable from tablejump_p call.
17685         * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
17686         * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
17687         (INSN_DELETED_P): Likewise.
17688         (emit_jump_table_data): New prototype.
17689         * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
17690         after 4th as unused.
17691         * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
17692         * sched-vis.c (print_insn): Likewise.
17693         * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
17694         insn for compatibility with back ends that use next_active_insn to
17695         identify jump table data.
17696         (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
17697         (remove_insn): Likewise.
17698         (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
17699         to be emitted.
17700         (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
17701         (emit_jump_table_data): New function.
17703         * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
17704         basic block, a JUMP_TABLE_DATA never is.
17705         (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
17706         * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
17707         off from code handling real insns.
17708         * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
17709         * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
17710         test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
17711         * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
17712         is not a NONDEBUG_INSN_P.
17713         * ira-costs.c (scan_one_insn): Likewise.
17714         * jump.c (mark_all_labels): Likewise.
17715         (mark_jump_label_1): Likewise.
17716         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
17717         * lra.c (get_insn_freq): Expect all insns reaching here to be in
17718         a basic block.
17719         (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
17720         * predict.c (expensive_function_p): Use FOR_BB_INSNS.
17721         * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
17722         JUMP_TABLE_DATA_P insns.
17723         (calculate_elim_costs_all_insns): Likewise.
17724         (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
17725         (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
17726         (delete_output_reload): Code style fixups.
17727         * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
17728         insn flags on this non-insn.
17729         * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
17730         as scheduling barriers, for pre-change compatibility.
17731         * stmt.c (emit_case_dispatch_table): Emit jump table data not as
17732         JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
17734         * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
17735         redundant JUMP_TABLE_DATA_P test.
17736         * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
17737         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
17738         (frv_for_each_packet): Likewise.
17739         * config/i386/i386.c (min_insn_size): Likewise.
17740         (ix86_avoid_jump_mispredicts): Likewise.
17741         * config/m32r/m32r.c (m32r_is_insn): Likewise.
17742         * config/mep/mep.c (mep_reorg_erepeat): Likewise.
17743         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
17744         (mips16_insn_length): Robustify.
17745         (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
17746         (mips16_split_long_branches): Likewise.
17747         * config/pa/pa.c (pa_combine_instructions): Likewise.
17748         * config/rs6000/rs6000.c (get_next_active_insn): Treat
17749         JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
17750         * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
17751         as contributing to pool range lengths.
17752         * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
17753         Remove redundant JUMP_TABLE_DATA_P test.
17754         (sh_loop_align): Likewise.
17755         (split_branches): Likewise.
17756         (sh_insn_length_adjustment): Likewise.
17757         * config/spu/spu.c (get_branch_target): Likewise.
17759 2013-03-29  Jan Hubicka  <jh@suse.cz>
17761         * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
17762         gcov streaming; stream hot bb threshold to ltrans.
17763         * predict.c (get_hot_bb_threshold): Break out from ....
17764         (maybe_hot_count_p): ... here.
17765         (set_hot_bb_threshold): New function.
17766         * lto-section-in.c (lto_section_name): Add profile.
17767         * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
17768         * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
17769         and data-streamer.h
17770         (histogram_entry): New structure.
17771         (histogram, histogram_pool): New global vars.
17772         (histogram_hash): New structure.
17773         (histogram_hash::hash): New method.
17774         (histogram_hash::equal): Likewise.
17775         (account_time_size): New function.
17776         (cmp_counts): New function.
17777         (dump_histogram): New function.
17778         (ipa_profile_generate_summary): New function.
17779         (ipa_profile_write_summary): New function.
17780         (ipa_profile_read_summary): New function.
17781         (ipa_profile): Decide on threshold.
17782         (pass_ipa_profile): Add ipa_profile_write_summary and
17783         ipa_profile_read_summary.
17784         * Makefile.in (ipa.o): Update dependencies.
17785         * lto-streamer.h (LTO_section_ipa_profile): New section.
17787 2013-03-29  Gabriel Dos Reis  <gdr@integrable-solutions.net>
17789         * tree.h (VAR_P): New.
17791 2013-03-29  Paolo Carlini  <paolo.carlini@oracle.com>
17793         PR lto/56777
17794         * doc/invoke.texi ([-fwhole-program]): Fix typo.
17796 2013-03-29  Steven Bosscher  <steven@gcc.gnu.org>
17798         * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
17799         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
17800         (control_flow_insn_p): Likewise.
17801         * cfgrtl.c (duplicate_insn_chain): Likewise.
17802         * final.c (get_attr_length_1): Likewise.
17803         (shorten_branches): Likewise.
17804         (final_scan_insn): Likewise.
17805         * function.c (instantiate_virtual_regs): Likewise.
17806         * gcse.c (insert_insn_end_basic_block): Likewise.
17807         * ira-costs.c (scan_one_insn): Likewise.
17808         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
17809         * lra.c (check_rtl): Likewise.
17810         * reload1.c (elimination_costs_in_insn): Likewise.
17811         * reorg.c (follow_jumps): Likewise.
17813         * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
17814         of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
17815         (thumb_far_jump_used_p): Likewise.
17816         * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
17817         (workaround_speculation): Likewise.
17818         (add_sched_insns_for_speculation): Likewise.
17819         * config/c6x/c6x.c (reorg_emit_nops): Likewise.
17820         * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
17821         (frv_for_each_packet): Likewise.
17822         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
17823         * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
17824         (final_emit_insn_group_barriers): Likewise.
17825         * config/m32r/m32r.c (m32r_is_insn): Likewise.
17826         * config/mips/mips.c (USEFUL_INSN_P): Likewise.
17827         (mips16_insn_length): Likewise.
17828         * config/pa/pa.c (pa_reorg): Likewise.
17829         (pa_combine_instructions): Likewise.
17830         * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
17831         * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
17832         (sh_reorg): Likewise.
17833         (split_branches): Likewise.
17834         * config/spu/spu.c (get_branch_target): Likewise.
17836         * config/s390/s390.c (s390_chunkify_start): Simplify logic using
17837         JUMP_TABLE_DATA_P.
17839 2013-03-29  Kirill Yukhin  <kirill.yukhin@intel.com>
17841         * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
17842         Fix declaration name.
17844 2013-03-28  Lawrence Crowl  <crowl@google.com>
17846         * graphds.h (struct graph.indicies): Remove unused.
17847         * graphite-poly.h (struct graph.original_pddrs): Remove unused.
17848         (SCOP_ORIGINAL_PDDRS): Remove unused.
17849         * sese.h (extern insert_loop_close_phis): Removed unused.
17850         (extern insert_guard_phis): Removed unused.
17851         (extern ivtype_map_elt_info): Removed unused.
17852         (new_ivtype_map_elt): Removed unused.
17853         * sese.c (ivtype_map_elt_info): Removed unused.
17855 2013-03-28  Lawrence Crowl  <crowl@google.com>
17857         * Makefile.in: Add several missing include dependences.
17858         (DUMPFILE_H): New.
17859         (test-dump.o): New.  This object is not added to any executable,
17860         but is present for ad-hoc testing.
17861         * bitmap.c
17862         (debug (const bitmap_head_def &)): New.
17863         (debug (const bitmap_head_def *)): New.
17864         * bitmap.h
17865         (extern debug (const bitmap_head_def &)): New.
17866         (extern debug (const bitmap_head_def *)): New.
17867         * cfg.c
17868         (debug (edge_def &)): New.
17869         (debug (edge_def *)): New.
17870         * cfghooks.c
17871         (debug (basic_block_def &)): New.
17872         (debug (basic_block_def *)): New.
17873         * dumpfile.h
17874         (dump_node (const_tree, int, FILE *)): Correct source file.
17875         * dwarf2out.c
17876         (debug (die_struct &)): New.
17877         (debug (die_struct *)): New.
17878         * dwarf2out.h
17879         (extern debug (die_struct &)): New.
17880         (extern debug (die_struct *)): New.
17881         * gimple-pretty-print.c
17882         (debug (gimple_statement_d &)): New.
17883         (debug (gimple_statement_d *)): New.
17884         * gimple-pretty-print.h
17885         (extern debug (gimple_statement_d &)): New.
17886         (extern debug (gimple_statement_d *)): New.
17887         * ira-build.c
17888         (debug (ira_allocno_copy &)): New.
17889         (debug (ira_allocno_copy *)): New.
17890         (debug (ira_allocno &)): New.
17891         (debug (ira_allocno *)): New.
17892         * ira-int.h
17893         (extern debug (ira_allocno_copy &)): New.
17894         (extern debug (ira_allocno_copy *)): New.
17895         (extern debug (ira_allocno &)): New.
17896         (extern debug (ira_allocno *)): New.
17897         * ira-lives.c
17898         (debug (live_range &)): New.
17899         (debug (live_range *)): New.
17900         * lra-int.h
17901         (debug (lra_live_range &)): New.
17902         (debug (lra_live_range *)): New.
17903         * lra-lives.c
17904         (debug (lra_live_range &)): New.
17905         (debug (lra_live_range *)): New.
17906         * omega.c
17907         (debug (omega_pb_d &)): New.
17908         (debug (omega_pb_d *)): New.
17909         * omega.h
17910         (extern debug (omega_pb_d &)): New.
17911         (extern debug (omega_pb_d *)): New.
17912         * print-rtl.c
17913         (debug (const rtx_def &)): New.
17914         (debug (const rtx_def *)): New.
17915         * print-tree.c
17916         (debug_tree (tree): Move within file.
17917         (debug_raw (const tree_node &)): New.
17918         (debug_raw (const tree_node *)): New.
17919         (dump_tree_via_hooks (const tree_node *, int)): New.
17920         (debug (const tree_node &)): New.
17921         (debug (const tree_node *)): New.
17922         (debug_verbose (const tree_node &)): New.
17923         (debug_verbose (const tree_node *)): New.
17924         (debug_head (const tree_node &)): New.
17925         (debug_head (const tree_node *)): New.
17926         (debug_body (const tree_node &)): New.
17927         (debug_body (const tree_node *)): New.
17928         (debug_vec_tree (tree): Move and reimplement in terms of dump.
17929         (debug (vec<tree, va_gc> &)): New.
17930         (debug (vec<tree, va_gc> *)): New.
17931         * rtl.h
17932         (extern debug (const rtx_def &)): New.
17933         (extern debug (const rtx_def *)): New.
17934         * sbitmap.c
17935         (debug_raw (simple_bitmap_def &)): New.
17936         (debug_raw (simple_bitmap_def *)): New.
17937         (debug (simple_bitmap_def &)): New.
17938         (debug (simple_bitmap_def *)): New.
17939         * sbitmap.h
17940         (extern debug (simple_bitmap_def &)): New.
17941         (extern debug (simple_bitmap_def *)): New.
17942         (extern debug_raw (simple_bitmap_def &)): New.
17943         (extern debug_raw (simple_bitmap_def *)): New.
17944         * sel-sched-dump.c
17945         (debug (vinsn_def &)): New.
17946         (debug (vinsn_def *)): New.
17947         (debug_verbose (vinsn_def &)): New.
17948         (debug_verbose (vinsn_def *)): New.
17949         (debug (expr_def &)): New.
17950         (debug (expr_def *)): New.
17951         (debug_verbose (expr_def &)): New.
17952         (debug_verbose (expr_def *)): New.
17953         (debug (vec<rtx> &)): New.
17954         (debug (vec<rtx> *)): New.
17955         * sel-sched-dump.h
17956         (extern debug (vinsn_def &)): New.
17957         (extern debug (vinsn_def *)): New.
17958         (extern debug_verbose (vinsn_def &)): New.
17959         (extern debug_verbose (vinsn_def *)): New.
17960         (extern debug (expr_def &)): New.
17961         (extern debug (expr_def *)): New.
17962         (extern debug_verbose (expr_def &)): New.
17963         (extern debug_verbose (expr_def *)): New.
17964         (extern debug (vec<rtx> &)): New.
17965         (extern debug (vec<rtx> *)): New.
17966         * sel-sched-ir.h
17967         (_list_iter_cond_expr): Make inline instead of static.
17968         * sreal.c
17969         (debug (sreal &)): New.
17970         (debug (sreal *)): New.
17971         * sreal.h
17972         (extern debug (sreal &)): New.
17973         (extern debug (sreal *)): New.
17974         * tree.h
17975         (extern debug_raw (const tree_node &)): New.
17976         (extern debug_raw (const tree_node *)): New.
17977         (extern debug (const tree_node &)): New.
17978         (extern debug (const tree_node *)): New.
17979         (extern debug_verbose (const tree_node &)): New.
17980         (extern debug_verbose (const tree_node *)): New.
17981         (extern debug_head (const tree_node &)): New.
17982         (extern debug_head (const tree_node *)): New.
17983         (extern debug_body (const tree_node &)): New.
17984         (extern debug_body (const tree_node *)): New.
17985         (extern debug (vec<tree, va_gc> &)): New.
17986         (extern debug (vec<tree, va_gc> *)): New.
17987         * tree-cfg.c
17988         (debug (struct loop &)): New.
17989         (debug (struct loop *)): New.
17990         (debug_verbose (struct loop &)): New.
17991         (debug_verbose (struct loop *)): New.
17992         * tree-dump.c: Add header dependence.
17993         * tree-flow.h
17994         (extern debug (struct loop &)): New.
17995         (extern debug (struct loop *)): New.
17996         (extern debug_verbose (struct loop &)): New.
17997         (extern debug_verbose (struct loop *)): New.
17998         * tree-data-ref.c
17999         (debug (data_reference &)): New.
18000         (debug (data_reference *)): New.
18001         (debug (vec<data_reference_p> &)): New.
18002         (debug (vec<data_reference_p> *)): New.
18003         (debug (vec<ddr_p> &)): New.
18004         (debug (vec<ddr_p> *)): New.
18005         * tree-data-ref.h
18006         (extern debug (data_reference &)): New.
18007         (extern debug (data_reference *)): New.
18008         (extern debug (vec<data_reference_p> &)): New.
18009         (extern debug (vec<data_reference_p> *)): New.
18010         (extern debug (vec<ddr_p> &)): New.
18011         (extern debug (vec<ddr_p> *)): New.
18012         * tree-ssa-alias.c
18013         (debug (pt_solution &)): New.
18014         (debug (pt_solution *)): New.
18015         * tree-ssa-alias.h
18016         (extern debug (pt_solution &)): New.
18017         (extern debug (pt_solution *)): New.
18018         * tree-ssa-alias.c
18019         (debug (_var_map &)): New.
18020         (debug (_var_map *)): New.
18021         (debug (tree_live_info_d &)): New.
18022         (debug (tree_live_info_d *)): New.
18023         * tree-ssa-alias.h
18024         (extern debug (_var_map &)): New.
18025         (extern debug (_var_map *)): New.
18026         (extern debug (tree_live_info_d &)): New.
18027         (extern debug (tree_live_info_d *)): New.
18029 2013-03-28  Jan Hubicka  <jh@suse.cz>
18031         * lto-cgraph.c (merge_profile_summaries): Fix overflows.
18033 2013-03-28  Ian Bolton  <ian.bolton@arm.com>
18035         * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
18036         record only when desired or required.
18038 2013-03-28  Uros Bizjak  <ubizjak@gmail.com>
18040         * config/i386/i386.md (*vec_extract2vdi_1): Merge with
18041         *vec_extractv2di_1_rex64.  Use x64 isa attribute.
18043 2013-03-28  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18045         * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
18046         (*andsi3_compare0_uxtw): New pattern.
18047         (*and_<SHIFT:optab><mode>3_compare0): New pattern.
18048         (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
18050 2013-03-28  Jan Hubicka  <jh@suse.cz>
18052         * data-streamer-in.c (streamer_read_gcov_count): New function.
18053         * gimple-streamer-out.c: Include value-prof.h.
18054         (output_gimple_stmt): Output histogram.
18055         (output_bb): Use streamer_write_gcov_count.
18056         * value-prof.c: Include data-streamer.h
18057         (dump_histogram_value): Add HIST_TYPE_MAX.
18058         (stream_out_histogram_value): New function.
18059         (stream_in_histogram_value): New function.
18060         * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
18061         (stream_out_histogram_value, stream_in_histogram_value): Declare.
18062         * data-streamer-out.c (streamer_write_gcov_count): New function.
18063         (streamer_write_gcov_count_stream): New function.
18064         * lto-cgraph.c (lto_output_edge): Update counter streaming.
18065         (lto_output_node): Likewise.
18066         (input_node, input_edge): Likewise.
18067         * lto-streamer-out.c (output_cfg): Update streaming.
18068         * lto-streamer-in.c (input_cfg): Likewise.
18069         * data-streamer.h (streamer_write_gcov_count,
18070         streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
18071         * gimple-streamer-in.c: Include value-prof.h
18072         (input_gimple_stmt): Input histograms.
18073         (input_bb): Update profile streaming.
18075 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
18077         * genmodes.c (emit_max_int): New function.
18078         (emit_insn_modes_h): Added call to emit_max_function.
18079         * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
18080         Added doc.
18081         * machmode.def: Fixed comment.
18083 2013-03-28  Kenneth Zadeck  <zadeck@naturalbridge.com>
18085         * combine.c (try_combine): Removed useless assert.
18086         * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
18088 2013-03-28  Marek Polacek  <polacek@redhat.com>
18089             Richard Biener  <rguenther@suse.de>
18091         PR tree-optimization/56695
18092         * tree-vect-stmts.c (vectorizable_condition): Unconditionally
18093         build signed result of a vector comparison.
18094         * tree-cfg.c (verify_gimple_comparison): Check that a result
18095         of a vector comparison has signed type.
18097 2013-03-28  Richard Biener  <rguenther@suse.de>
18099         PR tree-optimization/37021
18100         * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
18101         do not restrict gaps between groups.
18102         * tree-vect-stmts.c (vectorizable_load): Properly account for
18103         a gap between groups.
18105 2013-03-28  Eric Botcazou  <ebotcazou@adacore.com>
18107         * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
18108         general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
18109         is not enabled.
18111 2013-03-27  Gerald Pfeifer  <gerald@pfeifer.com>
18113         * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
18114         * doc/extend.texi (Named Address Spaces): Ditto.
18115         (Variable Attributes): Ditto.
18117 2013-03-27  Kai Tietz  <ktietz@redhat.com>
18119         * config.build: Add support for cygwin x64 target.
18120         * config.gcc: Likewise.
18121         * config.host: Likewise.
18122         * configure.ac: Likewise
18123         * configure: Regenerated.
18125 2013-03-27  Kai Tietz  <ktietz@redhat.com>
18127         * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
18128         * config/i386/t-cygwin-w64: New file.
18129         * config/i386/cygwin-w64.h: New file.
18130         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
18131         and add support for x64-cygwin target.
18132         (CPP_SPEC): Likewise.
18133         (CXX_WRAP_SPEC_LIST): Undefine before define.
18134         (LIBGCJ_SONAME): Use 15 as version.
18136 2013-03-27  Richard Biener  <rguenther@suse.de>
18138         PR tree-optimization/56716
18139         * tree-ssa-structalias.c (perform_var_substitution): Adjust
18140         dumping for ref nodes.
18142 2013-03-27  Martin Jambor  <mjambor@suse.cz>
18144         PR tree-optimization/55334
18145         * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
18146         restricted pointers to arrays.
18148 2013-03-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
18150         * Makefile.in (.SUFFIXES): Add .cc.
18151         (.c.o): Apply same recipe for implicit rule .cc.o.
18153 2013-03-27  Richard Biener  <rguenther@suse.de>
18155         PR tree-optimization/37021
18156         * tree-vect-data-refs.c (vect_check_strided_load): Allow
18157         REALPART/IMAGPART_EXPRs around the supported refs.
18158         * tree-ssa-structalias.c (find_func_aliases): Assume that
18159         floating-point values are not used to transfer pointers.
18161 2013-03-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18163         * target.def (TARGET_HAS_IFUNC_P): New target hook.
18164         * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
18165         * doc/tm.texi: Regenerate.
18166         * targhooks.h (default_has_ifunc_p): New.
18167         * targhooks.c (default_has_ifunc_p): Ditto.
18168         * config/linux-protos.h: New file.
18169         * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
18170         hook for linux which disables support of indirect functions in android.
18171         * config/linux-android.c: New file.
18172         * config/t-linux-android.c: Ditto.
18173         * config.gcc: Added new object file linux-android.o.
18174         * config/i386/i386.c (ix86_get_function_versions_dispatcher):
18175         Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
18176         * varasm.c (do_assemble_alias): Likewise.
18177         * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
18178         doesn't support indirect functions.
18179         * configure: Regenerate.
18181 2013-03-27  Bin Cheng  <bin.cheng@arm.com>
18183         PR target/56102
18184         * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
18185         rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
18186         mult-word mode.
18188 2013-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18190         * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
18192 2013-03-27  Terry Guo  <terry.guo@arm.com>
18194         * config/arm/arm-cores.def: Added core cortex-r7.
18195         * config/arm/arm-tune.md: Regenerated.
18196         * config/arm/arm-tables.opt: Regenerated.
18197         * doc/invoke.texi: Added entry for core cortex-r7.
18199 2013-03-27  Walter Lee  <walt@tilera.com>
18201         * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
18202         double-decrement of next_scratch_regno.
18204 2013-03-27  Walter Lee  <walt@tilera.com>
18206         * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
18207         input operands.
18208         (insn_v1mulus): Ditto.
18209         (insn_v2muls): Ditto.
18211 2013-03-27  Walter Lee  <walt@tilera.com>
18213         * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
18214         (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
18216 2013-03-27  Walter Lee  <walt@tilera.com>
18218         * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
18219         (*sibcall_value): Ditto.
18221 2013-03-27  Walter Lee  <walt@tilera.com>
18223         * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
18224         (insn_mnz_v8qi): ... this ...
18225         (insn_mnz_v4hi): ... and this.  Replace (const_int 0) with the
18226         vector equivalent.
18227         (insn_v<n>mnz): Replaced by ...
18228         (insn_v1mnz): ... this ...
18229         (insn_v2mnz): ... and this.  Replace (const_int 0) with the vector
18230         equivalent.
18231         (insn_mz_<mode>): Replaced by ...
18232         (insn_mz_v8qi): ... this ...
18233         (insn_mz_v4hi): ... and this.  Replace (const_int 0) with the
18234         vector equivalent.
18235         (insn_v<n>mz): Replaced by ...
18236         (insn_v1mz): ... this ...
18237         (insn_v2mz): ... and this.  Replace (const_int 0) with the vector
18238         equivalent.
18240 2013-03-26  Eric Botcazou  <ebotcazou@adacore.com>
18242         * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
18244 2013-03-26  Roland McGrath  <mcgrathr@google.com>
18246         * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
18247         than fprintf with a non-constant, non-format string.
18249 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
18251         * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
18252         using nox64 isa attribute.  Use nonimmediate_x86nomem_operand as
18253         operand 0 predicate.
18254         (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
18255         attribute.  Use general_x64nomem_operand as operand 1 predicate.
18256         (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
18257         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
18258         (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
18259         attribute.  Use nonimmediate_x64nomem_operand as operand 0 predicate.
18260         (mov<mode>_insv_1): Remove expander.  Merge insn with
18261         movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
18262         Use general_x64nomem_operand as operand 1 predicate.
18263         (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
18264         (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
18265         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
18266         (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
18267         attribute.  Use nonimmediate_x64nomem_operand as operand 2 predicate.
18268         (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
18269         attribute.  Use nonimmediate_x64nomem_operand as operand 1 predicate.
18270         (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
18271         isa attribute.  Use general_x64nomem_operand as operand 2 predicate.
18272         * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
18273         (general_x64nomem_operand): Ditto.
18275 2013-03-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18277         * config/rtems.opt: Add -pthread option.
18279 2013-03-26  Richard Biener  <rguenther@suse.de>
18281         * alias.c (find_base_term): Avoid redundant and not used recursion.
18282         (base_alias_check): Get the initial base term from the caller.
18283         (true_dependence_1): Compute and pass base terms to base_alias_check.
18284         (write_dependence_p): Likewise.
18285         (may_alias_p): Likewise.
18287 2013-03-26  Sofiane Naci  <sofiane.naci@arm.com>
18289         * config/aarch64/aarch64.c (aarch64_classify_address): Support
18290         PC-relative load in SI modes and above only.
18292 2013-03-26  Xinyu Qi  <xyqi@marvell.com>
18294         * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
18295         * config/arm/iwmmxt.md (WCGR0): Update.
18296         (WCGR1, WCGR2, WCGR3): Likewise.
18298 2013-03-26  Uros Bizjak  <ubizjak@gmail.com>
18300         * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
18301         Use x64 and nox64 isa attributes.
18303 2013-03-26  Richard Biener  <rguenther@suse.de>
18305         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
18306         alignment computations and rely on get_object_alignment_1
18307         for the !TYPE_P case.
18308         Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
18310 2013-03-26  Walter Lee  <walt@tilera.com>
18312         * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
18313         * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
18315 2013-03-25  Jeff Law  <law@redhat.com>
18317         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
18318         check for INTEGRAL_TYPE_P that was missing due to checking in
18319         wrong version of prior patch.
18321 2013-03-25  Walter Lee  <walt@tilera.com>
18323         * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
18324         TILEGX_INSN_SHUFFLEBYTES1.
18325         * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
18326         shufflebytes1.
18327         (tilegx_builtins): Ditto.
18328         * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
18330 2013-03-25  Walter Lee  <walt@tilera.com>
18332         * config/tilegx/tilegx.md (floatsisf2): New pattern.
18333         (floatunssisf2): New pattern.
18334         (floatsidf2): New pattern.
18335         (floatunssidf2): New pattern.
18337 2013-03-25  Walter Lee  <walt@tilera.com>
18339         * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
18340         tests for constraint J, K, N, P.
18342 2013-03-25  Walter Lee  <walt@tilera.com>
18344         * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
18345         Use indirect/pcrel encoding.
18346         * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
18347         Ditto.
18349 2013-03-25  Steve Ellcey  <sellcey@mips.com>
18351         * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
18352         74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
18353         * config/mips/mips.c (mips_option_override): Set IMADD default.
18354         * config/mips/mips.h (PTF_AVOID_IMADD): New.
18355         (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
18356         (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
18357         * config/mips/mips.md (mimadd): New flag for integer madd/msub.
18358         * doc/invoke.texi (-mimadd/-mno-imadd): New.
18360 2013-03-25  Jeff Law  <law@redhat.com>
18362         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
18363         slightly to avoid creating and folding useless trees.  Simplify
18364         slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
18366 2013-03-25  Uros Bizjak  <ubizjak@gmail.com>
18368         * config/i386/i386.md (*zero_extendsidi2): Merge with
18369         *zero_extendsidi2_rex64.  Use x64 and nox64 isa attributes.
18370         * config/i386/predicates.md (x86_64_zext_operand): Rename from
18371         x86_64_zext_general_operand.  Use nonimmediate_operand on 32bit
18372         targets.  Clarify comment.
18374 2013-03-25  Martin Jambor  <mjambor@suse.cz>
18376         * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
18377         pass-through jump functions differently.
18378         (ipa_read_jump_function): Likewise.  Also use setter functions to set
18379         up jump functions.
18381 2013-03-25  Martin Jambor  <mjambor@suse.cz>
18383         * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
18384         ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
18385         process it.
18386         (ipa_get_indirect_edge_target): New function.
18387         (devirtualization_time_bonus): New parameter known_aggs, pass it to
18388         ipa_get_indirect_edge_target.  Update all callers.
18389         (ipcp_discover_new_direct_edges): New parameter aggvals.  Pass it to
18390         ipa_get_indirect_edge_target_1 instead of calling
18391         ipa_get_indirect_edge_target.
18392         (create_specialized_node): Pass aggvlas to
18393         ipcp_discover_new_direct_edges.
18395 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18397         * config/arm/arm.md (f_sels, f_seld): New types.
18398         (*cmov<mode>): New pattern.
18399         * config/arm/predicates.md (arm_vsel_comparison_operator): New
18400         predicate.
18402 2013-03-25  Kai Tietz  <ktietz@redhat.com>
18404         * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
18405         POSIX-printf for mingw-hosted  builds.
18407 2013-03-25  Richard Biener  <rguenther@suse.de>
18409         PR middle-end/56694
18410         * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
18411         must-not-throw stmt location.
18413 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18415         * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
18416         Emit load-acquire versions when acq is true.
18417         (arm_emit_store_exclusive): Add rel parameter.
18418         Emit store-release versions when rel is true.
18419         (arm_split_compare_and_swap): Use acquire-release instructions
18420         instead.
18421         of barriers when appropriate.
18422         (arm_split_atomic_op): Likewise.
18423         * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
18424         * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
18425         (VUNSPEC_SLX): Likewise.
18426         (VUNSPEC_LDA): Likewise.
18427         (VUNSPEC_STL): Likewise.
18428         * config/arm/sync.md (atomic_load<mode>): New pattern.
18429         (atomic_store<mode>): Likewise.
18430         (arm_load_acquire_exclusive<mode>): Likewise.
18431         (arm_load_acquire_exclusivesi): Likewise.
18432         (arm_load_acquire_exclusivedi): Likewise.
18433         (arm_store_release_exclusive<mode>): Likewise.
18435 2013-03-25  Catherine Moore  <clm@codesourcery.com>
18437         * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
18438         Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
18439         * config/mip/predicates.md (lwsp_swsp_operand,
18440         lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
18441         sb16_operand, db4_operand, db7_operand, ib3_operand,
18442         sb4_operand, ub4_operand, uh4_operand, uw4_operand,
18443         uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
18444         andi16_operand): New predicates.
18445         * config/mips/mips.md (compression): New attribute.
18446         (enabled): New attribute.
18447         (length): Consider compression in computing length.
18448         (shift_compression): New code attribute.
18449         (*add<mode>3): New operands. Record compression.
18450         (sub<mode>3): Likewise.
18451         (one_cmpl<mode>2): Likewise.
18452         (*and<mode>3): Likewise.
18453         (*ior<mode>3): Likewise.
18454         (unnamed pattern for xor): Likewise.
18455         (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
18456         (*<optab><mode>3): Likewise.
18457         (*mov<mode>_internal: Likewise.
18458         * config/mips/mips-protos.h (mips_signed_immediate_p): New.
18459         (mips_unsigned_immediate_p): New.
18460         (umips_lwsp_swsp_address_p): New.
18461         (m16_based_address_p): New.
18462         * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
18463         (mips_unsigned_immediate_p): New prototype.
18464         (lwsp_swsp_address_p): New prototype.
18465         (m16_based_address_p): New prototype.
18466         * config/mips/mips.c (mips_unsigned_immediate_p): New function.
18467         (mips_signed_immediate_p): New function.
18468         (m16_based_address_p): New function.
18469         (lwsp_swsp_address_p): New function.
18470         (mips_print_operand_punctuation): Recognize short delay slot insns
18471         for microMIPS.add<mode>3"
18473 2013-03-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18475         PR target/56720
18476         * config/arm/iterators.md (v_cmp_result): New mode attribute.
18477         * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
18479 2013-03-25  Richard Biener  <rguenther@suse.de>
18481         PR tree-optimization/56689
18482         * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
18483         any edge.
18485 2013-03-25  Richard Biener  <rguenther@suse.de>
18487         * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
18488         of bitmap.
18489         (memory_references): Likewise.
18490         (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
18491         gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
18492         ref_indep_loop_p_2, find_refs_for_sm): Adjust.
18493         (gather_mem_refs_in_loops): Fold into ...
18494         (analyze_memory_references): ... this.  Move initialization
18495         to tree_ssa_lim_initialize.
18496         (fill_always_executed_in): Rename to ...
18497         (fill_always_executed_in_1): ... this.
18498         (fill_always_executed_in): Move contains_call computation to
18499         this new function from ...
18500         (tree_ssa_lim_initialize): ... here.
18501         (tree_ssa_lim): Call fill_always_executed_in.
18503 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
18505         * postreload.c (reload_combine): Fix code detecting returns.
18507 2013-03-25  Eric Botcazou  <ebotcazou@adacore.com>
18509         * function.c (emit_use_return_register_into_block): On cc0 targets,
18510         do not emit the sequence between cc0 setter and user.
18512 2013-03-25  Kai Tietz  <ktietz@redhat.com>
18514         * config/i386/predicates.md (local_symbolic_operand): Interpret
18515         dll-imported symbols as none-local.
18517 2013-03-25  Richard Biener  <rguenther@suse.de>
18519         * tree-ssa-loop-im.c (struct depend): Remove.
18520         (struct lim_aux_data): Make depends a vec of gimples.
18521         (free_lim_aux_data): Adjust.
18522         (add_dependency): Likewise.
18523         (set_level): Likewise.
18525 2013-03-25  Richard Biener  <rguenther@suse.de>
18527         PR middle-end/56434
18528         * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
18529         the pointer returned by calls with ECF_MALLOC set.
18531 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
18533         * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
18535 2013-03-24  Uros Bizjak  <ubizjak@gmail.com>
18537         * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
18538         using MMXMODE mode iterator.
18539         (*move<mode>_internal): Merge with *movv2sf_internal and
18540         *movv2sf_internal_rex64 using MMXMODE mode iterator.
18542 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
18544         * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
18545         (record_last_mem_set_info): Likewise.
18547         * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
18548         of XNEWVEC followed by memset.
18549         (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
18551 2013-03-23  Steven Bosscher  <steven@gcc.gnu.org>
18553         * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
18554         config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
18555         config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
18556         config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
18557         config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
18558         config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
18559         dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
18560         the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
18561         BARRIER_P instead of GET_CODE.
18563 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
18565         * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
18566         inaccuracy in the probing code.
18568         * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
18569         (ctrapdi4): Likewise.
18571 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
18573         * calls.c (expand_call): Add missing guard to code handling return
18574         of non-BLKmode structures in MSB.
18575         * function.c (expand_function_end): Likewise.
18577 2013-03-23  Eric Botcazou  <ebotcazou@adacore.com>
18579         * combine.c (try_combine): Adjust comment.  Do not add the set of
18580         insn #0 if the destination indirectly is set or dies in insn #2.
18581         Tidy up code to distribute a new note.
18583 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
18585         * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
18586         also for alternatives 16 and 17.
18588 2013-03-22  Uros Bizjak  <ubizjak@gmail.com>
18590         * config/i386/sse.md (*mov<mode>_internal): Merge with
18591         *mov<mode>_internal_rex64.  Use x64 and nox64 isa attributes.
18592         Emit insn template depending on type attribute.  Use
18593         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
18594         movd instead of movq mnemonic for interunit moves.  Rewrite mode
18595         attribute calculation.  Remove unit attribute calculation.
18596         Set prefix attribute to maybe_vex for sselog1 and ssemov types.
18597         Set prefix_data16 attribute for DImode ssemov types.
18598         Use Ym instead of y for SSE-MMX conversion alternatives.
18599         Reorder operand constraints.
18601 2013-03-22  Steven Bosscher  <steven@gcc.gnu.org>
18603         * df.h (df_insn_delete): Adjust prototype.
18604         * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
18605         and let it decide whether mark the basic block dirty.
18606         (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
18607         * df-scan.c (df_insn_info_delete): New helper function, split
18608         off from df_insn_delete.
18609         (df_scan_free_bb_info): Use it.
18610         (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
18611         Likewise.
18612         (df_insn_delete): Likewise.  Take insn rtx as argument.  Verify
18613         that the insn is actually an insn and it has a non-NULL basic block.
18614         Do not mark basic block dirty if only deleting a DEBUG_INSN.
18616 2013-03-22  Richard Biener  <rguenther@suse.de>
18618         * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
18619         dep_ref members.
18620         (mem_ref_alloc): Do not allocate them.
18621         (refs_independent_p): Do not query or maintain a cache.
18623 2013-03-22  Richard Biener  <rguenther@suse.de>
18625         * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
18626         (gather_mem_refs_in_loops): Do not compute it.
18627         (analyze_memory_references): Do not allocate it.
18628         (tree_ssa_lim_finalize): Do not free it.
18629         (for_all_locs_in_loop): Do not query all_refs_in_loop.
18631 2013-03-22  Richard Biener  <rguenther@suse.de>
18633         * is-a.h (as_a): Use gcc_checking_assert.
18635 2013-03-22  Ian Bolton  <ian.bolton@arm.com>
18637         * config/aarch64/aarch64.c (aarch64_print_operand): New
18638         format specifier for printing a constant in hex.
18639         * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
18640         format specifier for printing second operand.
18642 2013-03-22  Richard Biener  <rguenther@suse.de>
18644         * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
18645         bitmaps.
18646         (gather_mem_refs_in_loops): Perform store accumulation here.
18647         (create_vop_ref_mapping_loop): Remove.
18648         (create_vop_ref_mapping): Likewise.
18649         (analyze_memory_references): Initialize refs_stored_in_loop.
18650         (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
18651         (record_indep_loop): Remove.
18652         (record_dep_loop): New function.
18653         (ref_indep_loop_p_1): Adjust to only walk over references
18654         in the loop, not its subloops.
18655         (ref_indep_loop_p): Rename to ...
18656         (ref_indep_loop_p_2): ... this and recurse over the loop tree,
18657         maintaining a more fine-grained cache.
18658         (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
18659         (tree_ssa_lim_finalize): Free refs_stored_in_loop.
18661 2013-03-22  Richard Biener  <rguenther@suse.de>
18663         * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
18664         (struct mem_ref): Make accesses_in_loop a vec of a vec of
18665         aggregate mem_ref_loc.
18666         (free_mem_ref_locs): Inline into ...
18667         (memref_free): ... this and adjust.
18668         (mem_ref_alloc): Adjust.
18669         (mem_ref_locs_alloc): Remove.
18670         (record_mem_ref_loc): Adjust.
18671         (get_all_locs_in_loop): Rewrite into ...
18672         (for_all_locs_in_loop): ... this iterator.
18673         (rewrite_mem_ref_loc): New functor.
18674         (rewrite_mem_refs): Use for_all_locs_in_loop.
18675         (sm_set_flag_if_changed): New functor.
18676         (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
18677         (ref_always_accessed): New functor.
18678         (ref_always_accessed_p): Use for_all_locs_in_loop.
18680 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
18682         * tree-pass.h (PROP_gimple_lvec): New.
18683         * passes.c (dump_properties): Handle PROP_gimple_lvec.
18684         (init_optimization_passes): Move pass_lower_vector.
18685         * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
18686         PROP_gimple_lvec.
18687         (pass_lower_vector): Provide PROP_gimple_lvec.
18688         (pass_lower_vector_ssa): Likewise.
18689         * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
18691 2013-03-21  Mark Wielaard  <mjw@redhat.com>
18693         * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
18695 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
18697         * config/i386/i386.md (*movdi_internal): Disparage slightly
18698         all MMX moves to/from memory.  Use Yi instead of x for SSE-MMX
18699         conversion alternatives.
18701 2013-03-21  Jakub Jelinek  <jakub@redhat.com>
18703         PR middle-end/48087
18704         * diagnostic.def (DK_WERROR): New kind.
18705         * diagnostic.h (werrorcount): Define.
18706         * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
18707         promoted to DK_ERROR, increment DK_WERROR counter instead of
18708         DK_ERROR counter.
18709         * toplev.c (toplev_main): Call print_ignored_options even if
18710         just werrorcount is non-zero.  Exit with FATAL_EXIT_CODE
18711         even if just werrorcount is non-zero.
18713         PR debug/55608
18714         * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
18715         on failure.
18716         (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
18717         (string_cst_pool_decl): New function.
18718         (optimize_one_addr_into_implicit_ptr): New function.
18719         (resolve_addr_in_expr): Optimize DWARF location expression
18720         DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
18721         which doesn't live in memory, but has DW_AT_location or
18722         DW_AT_const_value, or refers to a string literal, into
18723         DW_OP_GNU_implicit_pointer.
18724         (optimize_location_into_implicit_ptr): New function.
18725         (resolve_addr): If removing DW_AT_location of a variable because
18726         it was DW_OP_addr of address of the variable, but the variable doesn't
18727         live in memory, try to emit const value attribute for the initializer.
18729 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
18731         * tree.h (VECTOR_TYPE_P): New macro.
18732         (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
18733         TYPE_MODE): Use it.
18734         * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
18735         VEC_COND_EXPR cannot be lvalues.
18736         (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
18738 2013-03-21  Marc Glisse  <marc.glisse@inria.fr>
18740         * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
18741         Restrict the transformation to equal modes.
18743 2013-03-21  Richard Biener  <rguenther@suse.de>
18745         PR tree-optimization/39326
18746         * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
18747         (MEM_ANALYZABLE): Adjust.
18748         (record_mem_ref_loc): Move bitmap ops ...
18749         (gather_mem_refs_stmt): ... here.  Use the shared mem-ref for
18750         unanalyzable refs, do not record locations for it.
18751         (analyze_memory_references): Allocate ref zero as shared
18752         unanalyzable ref.
18753         (refs_independent_p): Do not test for unanalyzed mems here.
18754         (ref_indep_loop_p_1): Special-case disambiguation against
18755         the unanalyzed ref.
18756         (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
18758 2013-03-21  Christophe Lyon  <christophe.lyon@linaro.org>
18760         * config/arm/arm-protos.h (tune_params): Add
18761         prefer_neon_for_64bits field.
18762         * config/arm/arm.c (prefer_neon_for_64bits): New variable.
18763         (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
18764         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18765         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18766         (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
18767         (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18768         (arm_option_override): Handle -mneon-for-64bits new option.
18769         * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
18770         (prefer_neon_for_64bits): Declare new variable.
18771         * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
18772         avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
18773         (arch_enabled): Handle new arch types. Remove support for onlya8
18774         and nota8.
18775         (one_cmpldi2): Use new arch names.
18776         (zero_extend<mode>di2, extend<mode>di2): Ditto.
18777         * config/arm/arm.opt (mneon-for-64bits): Add option.
18778         * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
18779         (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
18780         neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
18781         of onlya8.
18782         * doc/invoke.texi (-mneon-for-64bits): Document.
18784 2013-03-21  Richard Biener  <rguenther@suse.de>
18786         PR tree-optimization/39326
18787         * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
18788         (sort_bbs_in_loop_postorder_cmp): New function.
18789         (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
18791 2013-03-21  Richard Biener  <rguenther@suse.de>
18793         * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
18794         (vect_insert_into_interleaving_chain): Likewise.
18795         (vect_drs_dependent_in_basic_block): Inline ...
18796         (vect_slp_analyze_data_ref_dependence): ... here.  New function,
18797         split out from ...
18798         (vect_analyze_data_ref_dependence): ... here.  Simplify.
18799         (vect_check_interleaving): Simplify.
18800         (vect_analyze_data_ref_dependences): Likewise.  Split out ...
18801         (vect_slp_analyze_data_ref_dependences): ... this new function.
18802         (dr_group_sort_cmp): New function.
18803         (vect_analyze_data_ref_accesses): Compute data-reference groups
18804         here instead of in vect_analyze_data_ref_dependence.  Use
18805         a more efficient algorithm.
18806         * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
18807         vect_slp_analyze_data_ref_dependences.  Call
18808         vect_analyze_data_ref_accesses earlier.
18809         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
18810         * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
18811         (vect_slp_analyze_data_ref_dependences): New prototype.
18813 2013-03-21  Richard Biener  <rguenther@suse.de>
18815         * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
18816         ref is stored in the loop.
18817         (find_refs_for_sm): Walk only over all stores.
18818         (store_motion_loop): Allocate from lim_bitmap_obstack.
18819         (store_motion): Likewise.
18821 2013-03-21  Richard Biener  <rguenther@suse.de>
18823         * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
18824         Update virtual SSA form.
18826 2013-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18828         * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
18829         * configure: Regenerate.
18830         * config.in: Regenerate.
18831         * config/sol2.c (solaris_override_options): Only enforce DWARF 2
18832         if !HAVE_LD_EH_FRAME_CIEV3.
18834 2013-03-21  Richard Biener  <rguenther@suse.de>
18836         * tree-cfg.c (verify_expr_no_block): New function.
18837         (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
18838         nor DECL_VALUE_EXPR have locations with associated blocks.
18839         * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
18840         (clear_unused_block_pointer): Remove code dealing with
18841         blocks in DECL_DEBUG_EXPR locations.
18843 2013-03-21  Richard Biener  <rguenther@suse.de>
18845         * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
18846         (DECL_HAS_DEBUG_EXPR_P): ... this.  Guard properly.
18847         * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
18848         * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
18849         instead of DECL_DEBUG_EXPR_IS_FROM.
18850         * gimplify.c (gimplify_modify_expr): Likewise.
18851         * tree-cfg.c (verify_expr_location_1): Likewise.
18852         * tree-complex.c (create_one_component_var): Likewise.
18853         * tree-sra.c (create_access_replacement): Likewise.
18854         * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
18855         (clear_unused_block_pointer): Likewise.
18856         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
18857         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18858         * var-tracking.c (var_debug_decl): Likewise.
18859         (track_expr_p): Likewise.
18860         * tree-inline.c (add_local_variables): Likewise.  Set
18861         DECL_HAS_DEBUG_EXPR_P after copying it.
18862         * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
18863         instead of DECL_DEBUG_EXPR_IS_FROM.  Guard properly.
18865 2013-03-21  Uros Bizjak  <ubizjak@gmail.com>
18867         PR bootstrap/56656
18868         * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
18869         * configure: Regenerate.
18870         * config.in: Regenerate.
18871         * config/i386/i386.md (*movdf_internal): Use
18872         HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
18873         movd instead of movq mnemonic for interunit moves.
18874         (*movdi_internal): Ditto.
18876 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18878         * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
18879         (abd<mode>_3): New pattern.
18880         (aba<mode>_3): New pattern.
18881         (fabd<mode>_3): New pattern.
18883 2013-03-21  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
18885         * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
18886         * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
18887         occurrence of REGISTER_PREFIX as its empty string.
18889 2013-03-20  Jeff Law  <law@redhat.com>
18891         * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
18892         addititional equivalences for equality comparisons between an SSA_NAME
18893         and a constant where the SSA_NAME was set from a widening conversion.
18895 2013-03-20  Walter Lee  <walt@tilera.com>
18897         * config/tilegx/sync.md (atomic_test_and_set): New pattern.
18899 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
18901         * config/i386/i386.md (*movoi_internal_avx): Emit insn template
18902         depending on type attribute.
18903         (*movti_internal): Ditto.
18904         (*movtf_internal): Ditto.
18905         (*movxf_internal): Ditto.
18906         (*movdf_internal): Ditto.
18907         (*movsf_internal): Ditto.
18909 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
18911         * config/i386/i386.md (*movti_internal): Set prefix attribute to
18912         maybe_vex for sselog1 and ssemov types.
18913         (*movdi_internal): Reorder operand constraints.
18914         (*movsi_internal): Ditto.  Set prefix attribute to
18915         maybe_vex for sselog1 and ssemov types.
18916         (*movtf_internal): Set prefix attribute to maybe_vex
18917         for sselog1 and ssemov types.
18918         (*movdf_internal): Ditto.  Set prefix_data16 attribute for
18919         DImode ssemov types.  Reorder operand constraints.
18920         (*movsf_internal): Set type of alternatives 3,4 to imov.  Set prefix
18921         attribute to maybe_vex for sselog1 and ssemov types.  Set prefix_data16
18922         attribute for SImode ssemov types.  Reorder operand constraints.
18924 2013-03-20  Martin Jambor  <mjambor@suse.cz>
18926         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
18927         * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
18929 2013-03-20  Pat Haugen  <pthaugen@us.ibm.com>
18931         * config/rs6000/predicates.md (indexed_address, update_address_mem
18932         update_indexed_address_mem): New predicates.
18933         * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
18934         attribute for load/store instructions.
18935         * config/rs6000/dfp.md (movsd_store): Likewise.
18936         (movsd_load): Likewise.
18937         * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
18938         (unnamed HI->DI extend define_insn): Likewise.
18939         (unnamed SI->DI extend define_insn): Likewise.
18940         (unnamed QI->SI extend define_insn): Likewise.
18941         (unnamed QI->HI extend define_insn): Likewise.
18942         (unnamed HI->SI extend define_insn): Likewise.
18943         (unnamed HI->SI extend define_insn): Likewise.
18944         (extendsfdf2_fpr): Likewise.
18945         (movsi_internal1): Likewise.
18946         (movsi_internal1_single): Likewise.
18947         (movhi_internal): Likewise.
18948         (movqi_internal): Likewise.
18949         (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
18950         attribute for load/store instructions.
18951         (mov<mode>_hardfloat): Set correct "type" attribute for load/store
18952         instructions.
18953         (mov<mode>_softfloat): Likewise.
18954         (mov<mode>_hardfloat32): Likewise.
18955         (mov<mode>_hardfloat64): Likewise.
18956         (mov<mode>_softfloat64): Likewise.
18957         (movdi_internal32): Likewise.
18958         (movdi_internal64): Likewise.
18959         (probe_stack_<mode>): Likewise.
18961 2013-03-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
18963         * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
18964         floating point, and decimal floating point to reload iterator.
18966         * config/rs6000/constraints.md (wl constraint): New constraints to
18967         return FLOAT_REGS if certain options are used to reduce the number
18968         of separate patterns that exist in the file.
18969         (wx constraint): Likewise.
18970         (wz constraint): Likewise.
18972         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
18973         -mdebug=reg, print wg, wl, wx, and wz constraints.
18974         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
18975         Initialize the reload functions for 64-bit binary/decimal floating
18976         point types.
18977         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
18978         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
18979         create the buffer on the stack to overcome not having a 32-bit
18980         load and store.
18981         (rs6000_emit_move): Likewise.
18982         (rs6000_secondary_memory_needed_rtx): Likewise.
18983         (rs6000_alloc_sdmode_stack_slot): Likewise.
18984         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
18985         via xxlxor, just like DFmode 0.0.
18987         * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
18988         define as 1 if we are running on a power7 or newer.
18989         (enum r6000_reg_class_enum): Add new constraints.
18991         * config/rs6000/dfp.md (movsd): Delete, combine with binary
18992         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
18993         with other moves by using conditional constraits (wg).  Use LFIWZX
18994         and STFIWX for loading SDmode on power7.  Use xxlxor to create 0.0f.
18995         (movsd splitter): Likewise.
18996         (movsd_hardfloat): Likewise.
18997         (movsd_softfloat): Likewise.
18999         * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
19000         binary and decimal floating point moves.
19001         (fmove_ok): New attributes to combine binary and decimal floating
19002         point moves, and to combine power6x (mfpgpr) moves along normal
19003         floating moves.
19004         (real_value_to_target): Likewise.
19005         (f32_lr): Likewise.
19006         (f32_lm): Likewise.
19007         (f32_li): Likewise.
19008         (f32_sr): Likewise.
19009         (f32_sm): Likewise.
19010         (f32_si): Likewise.
19011         (movsf): Combine binary and decimal floating point moves.  Combine
19012         power6x (mfpgpr) moves with other moves by using conditional
19013         constraits (wg).  Use LFIWZX and STFIWX for loading SDmode on power7.
19014         (mov<mode> for SFmode/SDmode); Likewise.
19015         (SFmode/SDmode splitters): Likewise.
19016         (movsf_hardfloat): Likewise.
19017         (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
19018         (movsf_softfloat): Likewise.
19019         (mov<mode>_softfloat for SFmode/SDmode): Likewise.
19021         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
19022         wx and wz constraints.
19024         * config/rs6000/constraints.md (wg constraint): New constraint to
19025         return FLOAT_REGS if -mmfpgpr (power6x) was used.
19027         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
19028         constraint.
19030         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
19031         -mdebug=reg, print wg, wl, wx, and wz constraints.
19032         (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
19033         Initialize the reload functions for 64-bit binary/decimal floating
19034         point types.
19035         (reg_offset_addressing_ok_p): If we are on a power7 or later, use
19036         LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
19037         create the buffer on the stack to overcome not having a 32-bit
19038         load and store.
19039         (rs6000_emit_move): Likewise.
19040         (rs6000_secondary_memory_needed_rtx): Likewise.
19041         (rs6000_alloc_sdmode_stack_slot): Likewise.
19042         (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
19043         via xxlxor, just like DFmode 0.0.
19045         * config/rs6000/dfp.md (movdd): Delete, combine with binary
19046         floating point moves in rs6000.md.  Combine power6x (mfpgpr) moves
19047         with other moves by using conditional constraits (wg).  Use LFIWZX
19048         and STFIWX for loading SDmode on power7.
19049         (movdd splitters): Likewise.
19050         (movdd_hardfloat32): Likewise.
19051         (movdd_softfloat32): Likewise.
19052         (movdd_hardfloat64_mfpgpr): Likewise.
19053         (movdd_hardfloat64): Likewise.
19054         (movdd_softfloat64): Likewise.
19056         * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
19057         64-bit binary and decimal floating point moves.
19058         (FMOVE64X): Likewise.
19059         (movdf): Combine 64-bit binary and decimal floating point moves.
19060         Combine power6x (mfpgpr) moves with other moves by using
19061         conditional constraits (wg).
19062         (mov<mode> for DFmode/DDmode): Likewise.
19063         (DFmode/DDmode splitters): Likewise.
19064         (movdf_hardfloat32): Likewise.
19065         (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
19066         (movdf_softfloat32): Likewise.
19067         (movdf_hardfloat64_mfpgpr): Likewise.
19068         (movdf_hardfloat64): Likewise.
19069         (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
19070         (movdf_softfloat64): Likewise.
19071         (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
19072         (reload_<mode>_load): Move to later in the file so they aren't in
19073         the middle of the floating point move insns.
19074         (reload_<mode>_store): Likewise.
19076         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
19077         constraint.
19079         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
19080         constraint if -mdebug=reg.
19081         (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
19082         Enable using dd reload support if needed.
19084         * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
19085         binary and decimal floating point moves in rs6000.md.
19086         (movtd_internal): Likewise.
19088         * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
19089         decimal floating point moves.
19090         (movtf): Likewise.
19091         (movtf_internal): Likewise.
19092         (mov<mode>_internal, TDmode/TFmode): Likewise.
19093         (movtf_softfloat): Likewise.
19094         (mov<mode>_softfloat, TDmode/TFmode): Likewise.
19096         * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
19097         movdi_internal64, using wg constraint for move direct operations.
19098         (movdi_internal64): Likewise.
19100         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
19101         MODES_TIEABLE_P for selected modes.  Print the numerical value of
19102         the various virtual registers. Use GPR/FPR first/last values,
19103         instead of hard coding the register numbers.  Print which modes
19104         have reload functions registered.
19105         (rs6000_option_override_internal): If -mdebug=reg, trace the options
19106         settings before/after setting cpu, target and subtarget settings.
19107         (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
19108         and for secondary reload failures in rs6000_secondary_reload_inner.
19109         (rs6000_secondary_reload_fail): Likewise.
19110         (rs6000_secondary_reload_inner): Likewise.
19112         * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
19113         macros for first/last GPR and FPR registers.
19114         (LAST_GPR_REGNO): Likewise.
19115         (FIRST_FPR_REGNO): Likewise.
19116         (LAST_FPR_REGNO): Likewise.
19118         * config/rs6000/vector.md (mul<mode>3): Use the combined macro
19119         VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
19120         VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
19121         (vcond<mode><mode>): Likewise.
19122         (vcondu<mode><mode>): Likewise.
19123         (vector_gtu<mode>): Likewise.
19124         (vector_gte<mode>): Likewise.
19125         (xor<mode>3): Don't allow logical operations on TImode in 32-bit
19126         to prevent the compiler from converting DImode operations to TImode.
19127         (ior<mode>3): Likewise.
19128         (and<mode>3): Likewise.
19129         (one_cmpl<mode>2): Likewise.
19130         (nor<mode>3): Likewise.
19131         (andc<mode>3): Likewise.
19133         * config/rs6000/constraints.md (wt constraint): New constraint
19134         that returns VSX_REGS if TImode is allowed in VSX registers.
19136         * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
19137         constant under VSX.
19139         * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
19140         similar to TImode, but it is restricted to being in the GPRs.
19142         * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
19143         TImode to occupy a single VSX register.
19145         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
19146         -mvsx-timode for power7/power8.
19147         (power7 cpu): Likewise.
19148         (power8 cpu): Likewise.
19150         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
19151         sure that TFmode/TDmode take up two registers if they are ever
19152         allowed in the upper VSX registers.
19153         (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
19154         registers.
19155         (rs6000_init_hard_regno_mode_ok): Likewise.
19156         (rs6000_debug_reg_global): Add debugging for PTImode and wt
19157         constraint.  Print if LRA is turned on.
19158         (rs6000_option_override_internal): Give an error if -mvsx-timode
19159         and VSX is not enabled.
19160         (invalid_e500_subreg): Handle PTImode, restricting it to GPRs.  If
19161         -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
19162         to reg+offset addressing.  Use PTImode when checking offset
19163         addresses for validity.
19164         (reg_offset_addressing_ok_p): Likewise.
19165         (rs6000_legitimate_offset_address_p): Likewise.
19166         (rs6000_legitimize_address): Likewise.
19167         (rs6000_legitimize_reload_address): Likewise.
19168         (rs6000_legitimate_address_p): Likewise.
19169         (rs6000_eliminate_indexed_memrefs): Likewise.
19170         (rs6000_emit_move): Likewise.
19171         (rs6000_secondary_reload): Likewise.
19172         (rs6000_secondary_reload_inner): Handle PTImode.  Allow 64-bit
19173         reloads to fpr registers to continue to use reg+offset addressing,
19174         but 64-bit reloads to altivec registers need reg+reg addressing.
19175         Drop test for PRE_MODIFY, since VSX loads/stores no longer support
19176         it.  Treat LO_SUM like a PLUS operation.
19177         (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
19178         FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
19179         (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
19180         registers to share a register with a smaller sized type, since VSX
19181         puts scalars in the upper 64-bits.
19182         (print_operand): Add support for PTImode.
19183         (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
19184         VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
19185         registers, but don't have arithmetic support.
19186         (rs6000_memory_move_cost): Add test for VSX.
19187         (rs6000_opt_masks): Add -mvsx-timode.
19189         * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
19190         for TImode.
19191         (VSs): Likewise.
19192         (VSr): Use wt constraint for TImode.
19193         (VSv): Drop TImode support.
19194         (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
19195         (vsx_movti_64bit): Likewise.
19196         (vsx_movti_32bit): Likewise.
19197         (vec_store_<mode>): Use VSX iterator instead of vector iterator.
19198         (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
19199         one '?' on the appropriate output constraint.  Do not allow TImode
19200         logical operations on 32-bit systems.
19201         (vsx_ior<mode>3): Likewise.
19202         (vsx_xor<mode>3): Likewise.
19203         (vsx_one_cmpl<mode>2): Likewise.
19204         (vsx_nor<mode>3): Likewise.
19205         (vsx_andc<mode>3): Likewise.
19206         (vsx_concat_<mode>): Likewise.
19207         (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
19209         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
19210         OPTION_MASK_VSX_TIMODE.
19211         (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
19212         (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
19214         * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
19215         (TI2 iterator): New iterator for TImode, PTImode.
19216         (wd mode attribute): Add values for vector types.
19217         (movti_string): Replace TI move operations with operations for TImode
19218         and PTImode.  Add support for TImode being allowed in VSX registers.
19219         (mov<mode>_string, TImode/PTImode): Likewise.
19220         (movti_ppc64): Likewise.
19221         (mov<mode>_ppc64, TImode/PTImode): Likewise.
19222         (TI mode splitters): Likewise.
19224         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
19225         constraint.
19227 2013-03-20  Marc Glisse  <marc.glisse@inria.fr>
19229         PR tree-optimization/56355
19230         * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
19231         Also handle integers with undefined overflow.
19233 2013-03-20  Catherine Moore  <clm@codesourcery.com>
19234             Maciej W. Rozycki  <macro@codesourcery.com>
19235             Tom de Vries  <tom@codesourcery.com>
19236             Nathan Sidwell  <nathan@codesourcery.com>
19237             Iain Sandoe  <iain@codesourcery.com>
19238             Nathan Froyd  <froydnj@codesourcery.com>
19239             Chao-ying Fu  <fu@mips.com>
19241         * doc/extend.texi: (micromips, nomicromips, nocompression):
19242         Document new function attributes.
19243         * doc/invoke.texi (minterlink-compressed, mmicromips,
19244         m14k, m14ke, m14kec): Document new options.
19245         (minterlink-mips16): Update documentation.
19246         * doc/md.texi (ZC, ZD): Document new constraints.
19247         * configure.ac (gcc_cv_as_micromips): Check if linker
19248         supports the .set micromips directive.
19249         * configure: Regenerate.
19250         * config.in: Regenerate.
19251         * config/mips/mips-tables.opt: Regenerate.
19252         * config/mips/micromips.md: New file.
19253         * constraints.md (ZC, ZD): New constraints.
19254         * config/mips/predicates.md (movep_src_register): New predicate.
19255         (movep_src_operand): New predicate.
19256         (non_volatile_mem_operand): New predicate.
19257         * config/mips/mips.md (multimem): New type.
19258         (length): Differentiate between 17-bit and 18-bit branch offsets.
19259         (MOVEP1, MOVEP2): New mode iterator.
19260         (mov_<load>l): Use ZC constraint.
19261         (mov_<load>r): Likewise.
19262         (mov_<store>l): Likewise.
19263         (mov_<store>r): Likewise.
19264         (*branch_equality<mode>_inverted): Add microMIPS support.
19265         (*branch_equality<mode>): Likewise.
19266         (*jump_absolute): Likewise.
19267         (indirect_jump_<mode>): Likewise.
19268         (tablejump_<mode>): Likewise.
19269         (<optab>_internal): Likewise.
19270         (sibcall_internal): Likewise.
19271         (sibcall_value_internal): Likewise.
19272         (prefetch): Use constraint ZD.
19273         * config/mips/mips.opt (minterlink-compressed): New option.
19274         (minterlink-mips16): Now an alias for minterlink-compressed.
19275         (mmicromips): New option.
19276         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
19277         (compare_and_swap_12): Likewise.
19278         (sync_add<mode>): Likewise.
19279         (sync_<optab>_12): Likewise.
19280         (sync_old_<optab>_12): Likewise.
19281         (sync_new_<optab>_12): Likewise.
19282         (sync_nand_12): Likewise.
19283         (sync_old_nand_12): Likewise.
19284         (sync_new_nand_12): Likewise.
19285         (sync_sub<mode>): Likewise.
19286         (sync_old_add<mode>): Likewise.
19287         (sync_old_sub<mode>): Likewise.
19288         (sync_new_add<mode>): Likewise.
19289         (sync_new_sub<mode>): Likewise.
19290         (sync_<optab><mode>): Likewise.
19291         (sync_old_<optab><mode>): Likewise.
19292         (sync_new_<optab><mode>): Likewise.
19293         (sync_nand<mode>): Likewise.
19294         (sync_old_nand<mode>): Likewise.
19295         (sync_new_nand<mode>): Likewise.
19296         (sync_lock_test_and_set<mode>): Likewise.
19297         (test_and_set_12): Likewise.
19298         (atomic_compare_and_swap<mode>): Likewise.
19299         (atomic_exchange<mode>_llsc): Likewise.
19300         (atomic_fetch_add<mode>_llsc): Likewise.
19301         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
19302         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
19303         (umips_save_restore_pattern_p): Likewise.
19304         (umips_load_store_pair_p): Likewise.
19305         (umips_output_load_store_pair): Likewise.
19306         (umips_movep_target_p): Likewise.
19307         (umips_12bit_offset_address_p): Likewise.
19308         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
19309         (mips_base_mips16): Rename this...
19310         (mips_base_compression_flags): ...to this. Update all uses.
19311         (mips_attribute_table): Add micromips, nomicromips and nocompression.
19312         (mips_mips16_decl_p): Delete.
19313         (mips_nomips16_decl_p): Delete.
19314         (mips_get_compress_on_flags): New function.
19315         (mips_get_compress_off_flags): New function.
19316         (mips_get_compress_mode): New function.
19317         (mips_get_compress_on_name): New function.
19318         (mips_get_compress_off_name): New function.
19319         (mips_insert_attributes): Support multiple compression types.
19320         (mips_merge_decl_attributes): Likewise.
19321         (umips_12bit_offset_address_p): New function.
19322         (mips_start_function_definition): Emit .set micromips directive.
19323         (mips_call_may_need_jalx_p): New function.
19324         (mips_function_ok_for_sibcall): Add microMIPS support.
19325         (mips_print_operand_punctuation): Support short delay slots and
19326         compact jumps.
19327         (umips_swm_mask, umips_swm_encoding): New.
19328         (umips_build_save_restore): New function.
19329         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
19330         (was_mips16_p): Remove.
19331         (old_compression_mode): New.
19332         (mips_set_compression_mode): New function.
19333         (mips_set_current_function): Add microMIPS support.
19334         (mips_option_override): Likewise.
19335         (umips_save_restore_pattern_p): New function.
19336         (umips_output_save_restore): New function.
19337         (umips_load_store_pair_p_1): New function.
19338         (umips_load_store_pair_p): New function.
19339         (umips_output_load_store_pair_1): New function.
19340         (umips_output_load_store_pair): New function.
19341         (umips_movep_target_p) New function.
19342         (mips_prepare_pch_save): Add microMIPS support.
19343         * config/mips/mips.h (TARGET_COMPRESSION): New.
19344         (TARGET_CPU_CPP_BUILTINS): Update macro
19345         to use new compression flags and to support microMIPS.
19346         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
19347         (MIPS_ARCH_FLOAT_SPEC): Likewise.
19348         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
19349         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
19350         (ASM_SPEC): Support mmicromips and mno-micromips.
19351         (M16STORE_REG_P): New macro.
19352         (MIPS_CALL): Support TARGET_MICROMIPS.
19353         (MICROMIPS_J): New macro.
19354         (mips_base_mips16): Rename this...
19355         (mips_base_compression_flags): ...to this.
19356         (UMIPS_12BIT_OFFSET_P): New macro.
19357         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
19358         (MULTILIB_DIRNAMES): Likewise.
19359 2013-03-20  Richard Biener  <rguenther@suse.de>
19361         PR tree-optimization/56661
19362         * tree-ssa-sccvn.c (visit_use): Only value-number calls if
19363         the result does not have to be distinct.
19365 2013-03-20  Richard Biener  <rguenther@suse.de>
19367         * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
19368         remap_gimple_op_r.
19370 2013-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19371             Steven Bosscher  <steven@gcc.gnu.org>
19373         PR rtl-optimization/56605
19374         * loop-iv.c (implies_p): Handle equal RTXs and subregs.
19376 2013-03-20  Uros Bizjak  <ubizjak@gmail.com>
19378         PR bootstrap/56656
19379         * config/i386/i386.md (*movdi_internal): Handle broken assemblers
19380         that require movd instead of movq.
19382 2013-03-20  Richard Biener  <rguenther@suse.de>
19384         * tree-ssa-structalias.c (struct variable_info): Add pointer
19385         to the first field of an aggregate with sub-vars.  Make
19386         this and the pointer to the next subfield its ID.
19387         (vi_next): New function.
19388         (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
19389         storedanything_id, integer_id): Increment by one.
19390         (new_var_info, get_call_vi, lookup_call_clobber_vi,
19391         get_call_clobber_vi): Adjust.
19392         (solution_set_expand): Simplify and speedup.
19393         (solution_set_add): Inline into ...
19394         (set_union_with_increment): ... this.  Adjust accordingly.
19395         (do_sd_constraint): Likewise.
19396         (do_ds_constraint): Likewise.
19397         (do_complex_constraint): Simplify.
19398         (build_pred_graph): Adjust.
19399         (solve_graph): Likewise.  Simplify and speedup.
19400         (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
19401         get_constraint_for_component_ref, get_constraint_for_1,
19402         first_vi_for_offset, first_or_preceding_vi_for_offset,
19403         create_function_info_for, create_variable_info_for_1,
19404         create_variable_info_for, intra_create_variable_infos): Adjust.
19405         (init_base_vars): Push NULL for ID zero.
19406         (compute_points_to_sets): Adjust.
19408 2013-03-20  Richard Biener  <rguenther@suse.de>
19410         * cfgloop.c (verify_loop_structure): Streamline and avoid
19411         ICEing on corrupt loop tree.
19412         * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
19413         loop tree.
19415 2013-03-20  Richard Biener  <rguenther@suse.de>
19417         * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
19418         check whether an SSA update is needed.
19420 2013-03-20  Richard Sandiford  <rdsandiford@googlemail.com>
19422         * config/mips/constraints.md (T): Rename to...
19423         (Yf): ...this.
19424         (U): Rename to...
19425         (Yd): ...this.
19426         * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
19427         (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
19429 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
19431         * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
19432         (*subsi3_carryin_uxtw): Likewise.
19434 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
19436         * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
19437         (*rorsi3_insn_uxtw): Likewise.
19439 2013-03-19  Ian Bolton  <ian.bolton@arm.com>
19441         * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
19442         (*extrsi5_insn_uxtw): Likewise.
19444 2013-03-19  Richard Biener  <rguenther@suse.de>
19446         PR tree-optimization/56273
19447         * passes.c (init_optimization_passes): Move second VRP after DOM.
19449 2013-03-19  Uros Bizjak  <ubizjak@gmail.com>
19451         * config/i386/i386.md (*movti_internal): Merge from
19452         *movti_internal_rex64 and *movti_internal_sse.  Use x64 isa attribute.
19453         (*movdi_internal): Merge with *movdi_internal_rex64.  Use x64 and
19454         nox64 isa attributes.
19456 2013-03-18  Richard Biener  <rguenther@suse.de>
19458         * tree-ssa-structalias.c (find): Use gcc_checking_assert.
19459         (unite): Likewise.
19460         (merge_node_constraints): Likewise.
19461         (build_succ_graph): Likewise.
19462         (valid_graph_edge): Inline into single caller.
19463         (unify_nodes): Likewise.  Use bitmap_set_bit return value
19464         and cache varinfo.
19465         (scc_visit): Fix formatting and variable use.
19466         (do_sd_constraint): Use gcc_checking_assert.
19467         (do_ds_constraint): Likewise.
19468         (do_complex_constraint): Likewise.
19469         (condense_visit): Likewise.  Cleanup.
19470         (dump_pred_graph): New function.
19471         (perform_var_substitution): Dump the pred-graph before
19472         variable substitution.
19473         (find_equivalent_node): Use gcc_checking_assert.
19474         (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
19476 2013-03-18  Richard Biener  <rguenther@suse.de>
19478         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
19479         Remove cond_expr_stmt_list argument and do not gimplify the
19480         built expression.
19481         (vect_loop_versioning): Adjust.
19482         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19483         Cleanup to use less temporaries.
19484         (vect_create_data_ref_ptr): Cleanup.
19486 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
19488         PR tree-optimization/56635
19489         * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
19490         require types_compatible_p types.
19492 2013-03-18  Nick Clifton  <nickc@redhat.com>
19494         * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
19495         spurious backslash.
19497         * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
19498         Add missing line to comment describing function.
19500 2013-03-18  Richard Biener  <rguenther@suse.de>
19502         PR tree-optimization/56210
19503         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19504         Handle string / character search functions.
19505         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
19507 2013-03-18  Richard Biener  <rguenther@suse.de>
19509         PR middle-end/56483
19510         * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
19511         and implement properly.
19512         * gimple.h (gimple_cond_single_var_p): Remove.
19514 2013-03-18  Richard Biener  <rguenther@suse.de>
19516         * tree-data-ref.h (find_data_references_in_loop): Declare.
19517         * tree-data-ref.c (get_references_in_stmt): Use a stack
19518         vector pre-allocated in the callers.
19519         (find_data_references_in_stmt): Adjust.
19520         (graphite_find_data_references_in_stmt): Likewise.
19521         (create_rdg_vertices): Likewise.
19522         (find_data_references_in_loop): Export.
19523         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
19524         Compute dependences here...
19525         (vect_analyze_data_refs): ...not here.  When we encounter
19526         a non-vectorizable data reference in basic-block vectorization
19527         truncate the data reference vector.  Do not bother to
19528         fixup data-dependence information for gather loads.
19529         * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
19530         of data references, as reported.
19532 2013-03-18  Richard Biener  <rguenther@suse.de>
19534         PR tree-optimization/3713
19535         * tree-ssa-sccvn.c (visit_copy): Simplify.  Always propagate
19536         has_constants and expr.
19537         (stmt_has_constants): Properly valueize SSA names when deciding
19538         whether the stmt has constants.
19540 2013-03-18  Richard Biener  <rguenther@suse.de>
19542         * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
19543         whole function when there is nothing to do.
19544         * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
19545         * tree-vectorizer.c (vectorize_loops): Update virtual and
19546         loop-closed SSA once.
19547         * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
19549 2013-03-18  Richard Biener  <rguenther@suse.de>
19551         PR middle-end/56113
19552         * domwalk.c (bb_postorder): New global static.
19553         (cmp_bb_postorder): New function.
19554         (walk_dominator_tree): Replace scheme imposing an order for
19555         visiting dominator sons by one sorting them at the time they
19556         are pushed on the stack.
19558 2013-03-18  Richard Biener  <rguenther@suse.de>
19560         PR tree-optimization/39326
19561         * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
19562         (struct mem_ref): Replace mem member with ao_ref typed member.
19563         (MEM_ANALYZABLE): Adjust.
19564         (memref_eq): Likewise.
19565         (mem_ref_alloc): Likewise.
19566         (gather_mem_refs_stmt): Likewise.
19567         (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
19568         (execute_sm_if_changed_flag_set): Adjust.
19569         (execute_sm): Likewise.
19570         (ref_always_accessed_p): Likewise.
19571         (refs_independent_p): Likewise.
19572         (can_sm_ref_p): Likewise.
19574 2013-03-18  Jakub Jelinek  <jakub@redhat.com>
19576         PR c/56566
19577         * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
19578         return 1 even for !unsignedp.
19580 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
19582         * config/i386/i386.md (isa): Add x64 and nox64.
19583         (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
19584         (*pushtf): Enable *roF alternative for x64 isa only.
19585         (*pushxf): Merge with *pushxf_nointeger.  Use Yx*r constraint. Set
19586         mode attribute of integer alternatives to DImode for TARGET_64BIT.
19587         (*pushdf): Merge with *pushdf_rex64.  Use x64 and nox64 isa attributes.
19588         (*movtf_internal): Merge from *movtf_internal_rex64 and
19589         *movtf_internal_sse.  Use x64 and nox64 isa attributes.
19590         (*movxf_internal): Merge with *movxf_internal_rex64.  Use x64 and
19591         nox64 isa attributes.
19592         (*movdf_internal): Merge with *movdf_internal_rex64.  Use x64 and
19593         nox64 isa attributes.
19594         * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
19596 2013-03-17  Uros Bizjak  <ubizjak@gmail.com>
19598         * config/alpha/alpha.c (TARGET_LRA_P): New define.
19600 2013-03-17  Jakub Jelinek  <jakub@redhat.com>
19602         PR target/56640
19603         * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
19604         class names.  Remove trailing comma after "ALL_REGS".
19606 2013-03-16  Jan Hubicka  <jh@suse.cz>
19608         * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
19609         * cgraph.c (cgraph_get_create_real_symbol_node): New function.
19610         * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
19611         of cgraph_get_create_node.
19612         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19614 2013-03-16  Jason Merrill  <jason@redhat.com>
19616         PR debug/49090
19617         * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
19618         with DW_AT_default_value.
19620 2013-03-16  Jakub Jelinek  <jakub@redhat.com>
19622         * BASE-VER: Set to 4.9.0.
19624 2013-03-14  Andi Kleen  <ak@linux.intel.com>
19626         PR target/56619
19627         * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
19628         __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
19629         Document _x* TSX intrinsics.
19631 2013-03-14  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
19632             David Holsgrove  <david.holsgrove@xilinx.com>
19634         * configure.ac: Add MicroBlaze TLS support detection.
19635         * configure: Regenerate.
19636         * config/microblaze/microblaze-protos.h
19637         (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
19638         symbol_mentioned_p, label_mentioned_p): Add prototypes.
19639         * config/microblaze/microblaze.c (microblaze_address_type): Add
19640         ADDRESS_TLS and tls_reloc address types.
19641         (microblaze_address_info): Add tls_reloc.
19642         (TARGET_HAVE_TLS): Define.
19643         (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
19644          microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
19645          symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
19646         load_tls_operand,  microblaze_call_tls_get_addr,
19647         microblaze_legitimize_tls_address): New functions.
19648         (microblaze_classify_unspec): Handle UNSPEC_TLS.
19649         (get_base_reg): Use microblaze_tls_symbol_p.
19650         (microblaze_classify_address): Handle TLS.
19651         (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
19652         label_mentioned_p and microblaze_tls_referenced_p.
19653         (microblaze_legitimize_address): Handle TLS.
19654         (microblaze_address_insns): Handle ADDRESS_TLS.
19655         (pic_address_needs_scratch): Handle TLS.
19656         (print_operand_address): Handle TLS.
19657         (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
19658         (microblaze_expand_move): Handle TLS.
19659         (microblaze_legitimate_constant_p): Check
19660         microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
19661         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
19662         * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
19663         (PIC_OFFSET_TABLE_REGNUM): Set.
19664         * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
19665         * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
19666         (addsi3, movsi_internal2, movdf_internal): Update constraints
19667         * config/microblaze/predicates.md (arith_plus_operand): Define
19668         (move_operand): Redefine as move_src_operand,
19669         check microblaze_tls_referenced_p.
19671 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
19673         * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
19674         (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
19676 2013-03-14  Ian Bolton  <ian.bolton@arm.com>
19678         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
19679         CC mode for AND.
19681 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
19683         PR tree-optimization/53265
19684         * common.opt (Waggressive-loop-optimizations): New option.
19685         * tree-ssa-loop-niter.c: Include tree-pass.h.
19686         (do_warn_aggressive_loop_optimizations): New function.
19687         (record_estimate): Call it.  Don't add !is_exit bounds to loop->bounds
19688         if number_of_latch_executions returned constant.
19689         (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
19690         early.  If number_of_latch_executions returned constant, set
19691         nb_iterations_upper_bound back to it.
19692         * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
19693         field.
19694         * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
19695         * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
19697         * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
19698         (MULTILIB_OSDIRNAMES): Set.
19699         * genmultilib: If defaultosdirname doesn't start with :: , set
19700         defaultosdirname2 instead, clear it and emit two . multilib_raw
19701         entries instead of just one.
19703 2013-03-14  Kaz Kojima  <kkojima@gcc.gnu.org>
19705         * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
19706         (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
19707         * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
19708         (SUBTARGET_OVERRIDE_OPTIONS): New.
19710 2013-03-13  Oleg Endo  <olegendo@gcc.gnu.org>
19712         PR target/49880
19713         * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
19714         (musermode): Convert to Var(TARGET_USERMODE).
19715         * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
19716         MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
19717         * config/sh/sh.c (sh_option_override): Use
19718         TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
19719         * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
19720         condition.
19721         (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
19722         TARGET_SH4.
19723         (udivsi3_i4_single, divsi3_i4_single): Use
19724         TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
19726 2013-03-13  Dave Korn  <dave.korn.cygwin@....>
19728         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
19729         default setting.
19731 2013-03-13  Richard Biener  <rguenther@suse.de>
19733         PR tree-optimization/56608
19734         * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
19735         calls when vectorizing basic-blocks.
19737 2013-03-13  Jakub Jelinek  <jakub@redhat.com>
19739         PR plugins/45078
19740         * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
19741         tm_file.
19743 2013-03-12  Jakub Jelinek  <jakub@redhat.com>
19745         * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
19747 2013-03-11  Jan Hubicka  <jh@suse.cz>
19749         PR lto/56557
19750         * lto-streamer-out.c (output_symbol_p): Skip references from
19751         constructors of external variables.
19753 2013-03-11  Jan Hubicka  <jh@suse.cz>
19755         PR middle-end/56571
19756         * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
19757         from pseudos.
19758         * emit-rtl.c (verify_rtx_sharing): Likewise.
19759         (copy_insn_1): Likewise.
19760         * rtl.c (copy_rtx): Likewise.
19762 2013-03-11  Georg-Johann Lay  <avr@gjlay.de>
19764         PR target/56591
19765         * config/avr/avr.c (avr_print_operand): Add space after '%c' in
19766         output_operand_lossage message.
19768 2013-03-11  Richard Earnshaw  <rearnsha@arm.com>
19770         PR target/56470
19771         * arm.c (shift_op): Validate RTL pattern on the fly.
19772         (arm_print_operand, case 'S'): Don't use shift_operator to validate
19773         the RTL.
19775 2013-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
19777         PR target/56347
19778         * config/pa/pa.md (call_value): Check for calls to powf and direct to
19779         new call patterns that clobber %fr12.
19780         (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
19781         split and postreload patterns.
19782         * config/pa/pa.c (pa_conditional_register_usage): Revert marking
19783         registers %fr12 and %fr12R as call used.
19785 2013-03-09  Steven Bosscher  <steven@gcc.gnu.org>
19787         * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
19788         (canon_address, record_store, replace_read, check_mem_read_rtx,
19789         scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
19790         dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
19791         rest_of_handle_dse): Likewise.
19793 2013-03-09  Richard Sandiford  <rdsandiford@googlemail.com>
19795         PR middle-end/56524
19796         * tree.h (tree_optimization_option): Rename target_optabs to optabs.
19797         Add base_optabs.
19798         (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
19799         (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
19800         (save_optabs_if_changed): Replace with...
19801         (init_tree_optimization_optabs): ...this.
19802         * optabs.c (save_optabs_if_changed): Rename to...
19803         (init_tree_optimization_optabs): ...this.  Take the optimization node
19804         as argument.  Do nothing if the base optabs are already correct.
19805         Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
19806         to recompute optabs.
19807         * function.h (function): Remove optabs field.
19808         * function.c (invoke_set_current_function_hook): Call
19809         init_tree_optimization_optabs.  Use the result to initialize
19810         this_fn_optabs.
19812 2013-02-27  Aldy Hernandez  <aldyh@redhat.com>
19814         * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
19815         if GTMA_HAS_NO_INSTRUMENTATION.
19816         (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
19817         (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
19818         * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
19819         * gimple-pretty-print.c (dump_gimple_transaction): Handle
19820         GTMA_HAS_NO_INSTRUMENTATION.
19822 2013-03-08  Jakub Jelinek  <jakub@redhat.com>
19824         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
19825         libasan_preinit.o.
19827 2013-03-08  Marek Polacek  <polacek@redhat.com>
19828             Jakub Jelinek  <jakub@redhat.com>
19830         PR tree-optimization/56478
19831         * predict.c (is_comparison_with_loop_invariant_p): Change the
19832         type of loop_step to tree.
19833         (predict_loops): Adjust.
19834         (predict_iv_comparison): Perform the computations on double_ints.
19836 2013-03-08  Richard Biener  <rguenther@suse.de>
19838         PR tree-optimization/56570
19839         * tree-cfg.c (verify_expr_location_1): Verify locations for
19840         DECL_DEBUG_EXPR.
19841         * tree-sra.c (create_access_replacement): Strip locations
19842         from DECL_DEBUG_EXPRs.
19844 2013-03-08  Richard Biener  <rguenther@suse.de>
19846         * tree-inline.c (expand_call_inline): Do not associate
19847         a BLOCK with the location in BLOCK_SOURCE_LOCATION.
19848         * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
19850 2013-03-08  Richard Biener  <rguenther@suse.de>
19852         * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
19853         or block changes with -Og.  Fix for location / block encoding
19854         changes and PHI arguments with locations.
19856 2013-03-07  Steven Bosscher  <steven@gcc.gnu.org>
19858         * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
19859         for all counters.
19860         (struct output_info): Likewise.
19861         (register_overhead): Remove bad gcc_assert.
19862         (bitmap_find_bit): If there is only a single bitmap element, do not
19863         count a miss as a search.
19864         (print_statistics): Update for counter type changes.
19865         (dump_bitmap_statistics): Likewise.  Print headers such that they
19866         are properly lined up with the printed counters.
19868 2013-03-07  Jakub Jelinek  <jakub@redhat.com>
19870         PR tree-optimization/56559
19871         * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
19872         check that it has only a single use.
19874 2013-03-07  Richard Biener  <rguenther@suse.de>
19876         * doc/invoke.texi (fwhole-program): Discourage use in combination
19877         with -flto.
19879 2013-03-06  Jakub Jelinek  <jakub@redhat.com>
19881         * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
19883         PR tree-optimization/56539
19884         * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
19885         instead of GSI_CONTINUE_LINKING as last argument to
19886         force_gimple_operand_gsi.  Adjust function comment.
19888         * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
19889         aarch64-cores.def.
19891         PR middle-end/56548
19892         * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
19893         promoted mode, convert the result back to the original mode.
19895 2013-03-06  Richard Biener  <rguenther@suse.de>
19897         PR middle-end/56294
19898         * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
19899         (insert_updated_phi_nodes_compare_uids): New function.
19900         (update_ssa): Sort symbols_to_rename after UID before
19901         traversing it to insert PHI nodes.
19903 2013-03-06  Richard Biener  <rguenther@suse.de>
19905         PR middle-end/50494
19906         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
19907         Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
19909         Revert
19910         2013-02-13  Richard Biener  <rguenther@suse.de>
19912         PR lto/50494
19913         * varasm.c (output_constant_def_1): Get the decl representing
19914         the constant as argument.
19915         (output_constant_def): Wrap output_constant_def_1.
19916         (make_decl_rtl): Use output_constant_def_1 with the decl
19917         representing the constant.
19918         (build_constant_desc): Optionally re-use a decl already
19919         representing the constant.
19920         (tree_output_constant_def): Adjust.
19922 2013-03-06  Joey Ye  <joey.ye@arm.com>
19924         PR lto/50293
19925         * gcc.c (convert_white_space): New function.
19926         (main): Handles white space in function name.
19928 2013-03-06  Oleg Endo  <olegendo@gcc.gnu.org>
19930         PR target/56529
19931         * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
19932         instead of TARGET_SH2 for call-table case.  Do not set sh_div_strategy
19933         to SH_DIV_CALL_TABLE for TARGET_SH2.
19934         * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
19935         list.
19936         * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
19937         call-table options.
19939 2013-03-05  Sterling Augustine  <saugustine@google.com>
19940             Cary Coutant  <ccoutant@google.com>
19942         PR debug/55364
19943         * dwarf2out.c (resolve_addr): Don't call
19944         remove_loc_list_addr_table_entries a second time for the same
19945         expression.
19947 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
19949         PR debug/56510
19950         * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
19951         (avoid_complex_debug_insns): New function.
19952         (expand_debug_locations): Call it.
19954         PR rtl-optimization/56484
19955         * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
19956         lifetimes of hard registers on small register class machines.
19958 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
19960         * config/microblaze/microblaze-protos.h: Rename
19961         microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
19962         * config/microblaze/microblaze.c (microblaze_attribute_table): Add
19963         fast_interrupt.
19964         (microblaze_fast_interrupt_function_p): New function.
19965         (microblaze_is_interrupt_handler): Rename to
19966         microblaze_is_interrupt_variant and add fast_interrupt check.
19967         (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
19968         (save_restore_insns): Likewise.
19969         (compute_frame_size): Likewise.
19970         (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
19971         (microblaze_globalize_label): Likewise.
19972         * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
19973         * config/microblaze/microblaze.md: Use wrapper
19974         microblaze_is_interrupt_variant.
19976 2013-03-05  Kai Tietz  <ktietz@redhat.com>
19978         * sdbout.c (sdbout_one_type): Switch to current function's section
19979         supporting cold/hot.
19981 2013-03-05  David Holsgrove  <david.holsgrove@xilinx.com>
19983         * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
19984         -mxl-reorder.
19986 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
19988         PR middle-end/56461
19989         * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
19990         if VALGRIND_GET_VBITS is defined, temporarily make object
19991         memory all defined, and restore previous valgrind addressability
19992         and definability afterwards.  Free this_object at the end.
19994         PR middle-end/56461
19995         * lra.c (lra): Call lra_clear_live_ranges if live_p,
19996         right before calling lra_create_live_ranges, also call it
19997         when clearing live_p.  Only call lra_clear_live_ranges
19998         at the end if live_p.
20000         PR middle-end/56461
20001         * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
20003 2013-03-05  Richard Biener  <rguenther@suse.de>
20005         PR tree-optimization/56521
20006         * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
20007         value-id.
20009 2013-03-05  Steven Bosscher  <steven@gcc.gnu.org>
20011         PR c++/55135
20012         * except.h (remove_unreachable_eh_regions): New prototype.
20013         * except.c (remove_eh_handler_splicer): New function, split out
20014         of remove_eh_handler.
20015         (remove_eh_handler): Use remove_eh_handler_splicer.  Add comment
20016         warning about running it on many EH regions one at a time.
20017         (remove_unreachable_eh_regions_worker): New function, walk the
20018         EH tree in depth-first order and remove non-marked regions.
20019         (remove_unreachable_eh_regions): New function.
20020         * tree-eh.c (mark_reachable_handlers): New function, split out
20021         from remove_unreachable_handlers.
20022         (remove_unreachable_handlers): Use mark_reachable_handlers and
20023         remove_unreachable_eh_regions.
20024         (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
20025         and remove_unreachable_eh_regions.
20027 2013-03-05  Richard Biener  <rguenther@suse.de>
20029         PR middle-end/56525
20030         * loop-init.c (fix_loop_structure): Remove loops in two stages,
20031         not freeing them until the end.
20033 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20035         * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
20037 2013-03-05  Richard Biener  <rguenther@suse.de>
20039         PR tree-optimization/56270
20040         * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
20041         of loads after scheduling an SLP instance.
20043 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
20045         * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
20046         tic6x.exp.
20047         (check_gcc_parallelize): Run guality.exp as a separate job from
20048         vect.exp with unsorted.exp and $(dg_target_exps) separately from
20049         struct-layout-1.exp with stackalign.exp.
20051         * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
20053         PR middle-end/56461
20054         * tree-vect-slp.c (vect_supported_load_permutation_p): Free
20055         load_index sbitmap even if some bit in it isn't set.
20057         PR middle-end/56461
20058         * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
20059         (discover_iteration_bound_by_body_walk): Change queues to
20060         vec<vec<basic_block> > and queue to vec<basic_block>.  Fix up
20061         spelling in comment.  Call safe_push on queues[bound_index] directly.
20062         Release queues[queue_index] in every iteration unconditionally.
20063         Release bounds vector.
20065         PR middle-end/56461
20066         * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
20067         free_stmt_vec_info on any left-over stmt_vec_info in the vector.
20068         * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
20069         inner_phis vector.
20071 2013-03-05  Richard Biener  <rguenther@suse.de>
20073         PR lto/56515
20074         * tree-inline.c (remap_blocks_to_null): New function.
20075         (expand_call_inline): When expanding a call stmt without
20076         an associated block inline remap all callee blocks to NULL.
20078 2013-03-05  Jakub Jelinek  <jakub@redhat.com>
20080         PR rtl-optimization/56494
20081         * simplify-rtx.c (simplify_truncation): If C is narrower than A,
20082         optimize (truncate:A (subreg:B (truncate:C X) 0)) into
20083         (subreg:A (truncate:C X) 0) instead of (truncate:A X).
20085         PR middle-end/56461
20086         * sel-sched-ir.c (free_sched_pools): Release
20087         succs_info_pool.stack[succs_info_pool.max_top] vectors too
20088         if succs_info_pool.max_top isn't -1.
20090         PR bootstrap/56509
20091         * opts.c (opts_obstack, opts_concat): Moved to...
20092         * opts-common.c (opts_obstack, opts_concat): ... here.
20094 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
20096         PR middle-end/56461
20097         * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
20099 2013-03-04  Martin Jambor  <mjambor@suse.cz>
20101         * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
20102         all appropriate places.
20104 2013-01-04  Eric Botcazou  <ebotcazou@adacore.com>
20106         PR tree-optimization/56424
20107         * ipa-split.c (split_function): Do not set the RSO flag if result is
20108         not by reference and its type is a register type.
20110 2013-03-04  David Holsgrove  <david.holsgrove@xilinx.com>
20112         * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
20113         (microblaze_legitimate_pic_operand): Likewise
20114         * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
20115         new function microblaze_legitimate_pic_operand
20116         * config/microblaze/microblaze-protos.h
20117         (microblaze_legitimate_pic_operand): Declare.
20119 2013-03-04  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
20121         * config/microblaze/predicates.md (call_insn_simple_operand):
20122         New predicate for supported rtx code types.
20123         * config/microblaze/microblaze.md (call_internal1): Use
20124         call_insn_simple_operand predicate.
20126 2013-03-04  Jakub Jelinek  <jakub@redhat.com>
20128         PR middle-end/56461
20129         * tree-loop-distribution.c (ldist_gen): Call partition_free after each
20130         partitions.ordered_remove.
20132         PR middle-end/56461
20133         * tree-vect-stmts.c (vectorizable_conversion): Don't call
20134         vec_oprnds0.create (1) for modifier == NONE.
20136         PR middle-end/56461
20137         * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
20138         on vec_oprnds0 or vec_oprnds1 before loop, only call it on
20139         vec_oprnds1 right before pushing anything to it for
20140         scalar_shift_arg.
20142         PR middle-end/56461
20143         * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
20144         set nbbs to 0 instead of having separate code path.
20145         (vect_analyze_loop_form): Call destroy_loop_vec_info with true
20146         instead of false as last argument if returning NULL.
20148 2013-03-03  Sandra Loosemore  <sandra@codesourcery.com>
20150         * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
20151         the attribute is now called "target" instead of "option".
20152         (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
20153         * doc/tm.texi.in (Target Attributes):  Likewise document the correct
20154         attribute/pragma name for TARGET_OPTION_VALID_P and
20155         TARGET_OPTION_PRAGMA_PARSE.  Also copy-edit and correct markup.
20156         * doc/tm.texi: Regenerated.
20158 2013-03-02  David Holsgrove  <david.holsgrove@xilinx.com>
20160         * config/microblaze/microblaze.c:
20161         Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
20162         * config/microblaze/microblaze.h: Add -mxl-reorder to
20163         DRIVER_SELF_SPECS.
20164         * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
20165         instructions emitted if TARGET_REORDER.
20166         * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
20167         or 0 for -m/-mno case, but initialises as 2 to detect default use case
20168         separately.
20170 2013-03-01  Xinliang David Li  <davidxl@google.com>
20172         * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
20173         walk length.
20175 2013-03-01  Jakub Jelinek  <jakub@redhat.com>
20177         PR middle-end/56461
20178         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
20179         vector even when returning true.  Fix up function comment formatting.
20181         PR middle-end/56461
20182         * ira-build.c (ira_loop_nodes_count): New variable.
20183         (create_loop_tree_nodes): Initialize it.
20184         (finish_loop_tree_nodes): Use it instead of looking at current_loops.
20186         PR middle-end/56461
20187         * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
20188         method on dr_chain and result_chain.
20189         * tree-vect-stmts.c (vectorizable_store): Only call
20190         result_chain.create if j == 0.
20192         PR middle-end/56461
20193         * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
20194         vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
20195         before overwriting it.
20197 2013-03-01  Tobias Burnus  <burnus@net-b.de>
20199         * doc/extended.texi (C Extensions): Change order in @menu
20200         to match @node.
20201         (Other MIPS Built-in Functions): Move last MIPS entry before
20202         "picoChip Built-in Functions".
20203         (SH Built-in Functions): Move after RX Built-in Functions.
20204         * doc/gcc.texi (Introduction): Change order in @menu
20205         to match @node.
20206         * doc/md.texi (Constraints): Ditto.
20207         * gty.texi (Type Information): Ditto.
20208         (User-provided marking routines for template types): Make
20209         subsection.
20210         * doc/invoke.texi (AArch64 Options): Move before
20211         "Adapteva Epiphany Options".
20213 2013-02-28  Konstantin Serebryany  <konstantin.s.serebryany@gmail.com>
20214             Jakub Jelinek  <jakub@redhat.com>
20216         PR sanitizer/56454
20217         * asan.c (gate_asan): Lookup no_sanitize_address instead of
20218         no_address_safety_analysis attribute.
20219         * doc/extend.texi (no_address_safety_attribute): Rename to
20220         no_sanitize_address attribute, mention no_address_safety_analysis
20221         attribute as deprecated alias.
20223 2013-02-28  Jakub Jelinek  <jakub@redhat.com>
20225         PR middle-end/56461
20226         * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
20227         type to vec<vec<tree> > *.
20228         * tree-vect-slp.c (vect_get_slp_defs): Likewise.  Change vec_defs
20229         to be vec<tree> instead of vec<tree> *, set vec_defs
20230         to vNULL and call vec_defs.create (number_of_vects), adjust other
20231         uses of vec_defs.
20232         * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
20233         vectorizable_condition): Adjust vect_get_slp_defs callers.
20235 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
20237         * config/aarch64/aarch64.c
20238         (aarch64_float_const_representable): Remove unused variable.
20240 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
20242         * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
20244 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
20246         * config/aarch64/aarch64-builtins.c
20247         (aarch64_init_simd_builtins): Make static.
20249 2013-02-28  James Greenhalgh  <james.greenhalgh@arm.com>
20251         * config/aarch64/aarch64.c
20252         (aarch64_simd_make_constant): Make static.
20254 2013-02-28  Martin Jambor  <mjambor@suse.cz>
20256         * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
20257         with no initialization to the RHS of debug statements.
20259 2013-02-28  Martin Jambor  <mjambor@suse.cz>
20261         PR tree-optimization/56294
20262         * tree-sra.c (analyze_access_subtree): Create replacement declarations.
20263         Adjust dumping.
20264         (get_access_replacement): Do not call create_access_replacement.
20265         Assert a replacement exists.
20266         (get_repl_default_def_ssa_name): Create the replacement declaration
20267         itself.
20269 2013-02-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
20271         * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
20272         final_end_function.
20274 2013-02-28  Marek Polacek  <polacek@redhat.com>
20276         PR rtl-optimization/56466
20277         * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
20278         if we're changing a loop.
20279         (peel_loops_completely): Likewise.
20281 2013-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
20283         PR c++/55813
20284         * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
20286 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
20288         PR target/56445
20289         * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
20290         macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
20291         INTX_FTYPE_FX, FX_FTYPE_INTX.
20292         * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
20294 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
20296         * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
20297         (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
20298         (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
20299         (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
20300         (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
20301         (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
20302         (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
20303         (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
20304         (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
20305         (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
20306         (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
20307         (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
20308         (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
20309         (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
20310         (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
20311         (avrxmega6): Increase max flash segments from 5 to 6.
20312         * config/avr/t-multilib: Regenerate.
20313         * config/avr/avr-tables.opt: Regenerate.
20314         * doc/avr-mmcu.texi: Regenerate.
20316 2013-02-28  Georg-Johann Lay  <avr@gjlay.de>
20318         * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
20319         (avr_device_to_arch): Rename to avr_device_to_ld.
20320         (avr_device_to_as): New prototype.
20321         (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
20322         (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
20323         * config/avr/driver-avr.c (avr_device_to_as): New.
20324         (avr_device_to_arch): Rename to avr_device_to_ld.
20326 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
20328         PR middle-end/56461
20329         * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
20330         method on dr_chain and result_chain.
20332         PR middle-end/56461
20333         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
20334         pointer_set_destroy on not_executed_last_iteration.
20336         PR middle-end/56461
20337         * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
20339         PR middle-end/56461
20340         * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
20341         FOR_EACH_DEFINED_FUNCTION when freeing state.
20343         PR middle-end/56461
20344         * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
20345         pool_free.
20346         (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
20347         overwriting it.
20349         PR middle-end/56461
20350         * ipa-cp.c (decide_whether_version_node): Call vec_free on
20351         known_aggs[i].items and release known_aggs vector.
20353         PR middle-end/56461
20354         * ipa-reference.c (propagate): Free node_info even for alias nodes.
20356 2013-02-27  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
20358         * config/microblaze/microblaze.c (microblaze_emit_compare):
20359         Use xor for EQ/NE comparisions.
20360         * config/microblaze/microblaze.md (cstoresf4): Add constraints
20361         (cbranchsf4): Adjust operator to comparison_operator.
20363 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
20365         PR middle-end/56461
20366         * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
20367         vector.
20368         * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
20369         vec_safe_push, always update *slot.
20370         (redirect_edge_var_map_clear): Use vec_free.
20371         (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
20372         (free_var_map_entry): Use vec_free.
20373         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
20374         FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
20376 2013-02-27  Andrey Belevantsev  <abel@ispras.ru>
20378         PR middle-end/45472
20379         * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
20380         when the may_trap_p bit of the exprs being merged differs.
20381         Reorder tests for speculativeness in the logical and operator.
20383 2013-02-27  Jakub Jelinek  <jakub@redhat.com>
20385         * incpath.c (add_standard_paths): Use reconcat instead of concat
20386         where appropriate and avoid leaking memory.
20388         * opts.h: Include obstack.h.
20389         (opts_concat): New prototype.
20390         (opts_obstack): New declaration.
20391         * opts.c (opts_concat): New function.
20392         (opts_obstack): New variable.
20393         (init_options_struct): Call gcc_init_obstack on opts_obstack.
20394         (finish_options): Use opts_concat instead of concat
20395         and XOBNEWVEC instead of XNEWVEC.
20396         * opts-common.c (generate_canonical_option, decode_cmdline_option,
20397         generate_option): Likewise.
20398         * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
20399         * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
20401         PR target/56455
20402         * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
20403         and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
20405 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
20407         PR middle-end/56461
20408         * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
20410 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
20412         * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
20413         (arm_block_move_unaligned_straight): Likewise.
20414         (arm_adjust_block_mem): Likewise.
20416 2013-02-26  Joern Rennecke  <joern.rennecke@embecosm.com>
20418         PR target/48901
20419         * config/lm32/lm32.c (gen_int_relational): Remove unused variables
20420         temp, cond and label.
20421         * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
20423         PR target/52500
20424         * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
20425         * config/c6x/c6x.h (dbx_register_map): Update declaration.
20427         PR target/52501
20428         * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
20429         of prologue/epilogue functions.
20431         PR target/52550
20432         * config/tilegx/tilegx.c (tilegx_expand_prologue):
20433         Remove unused variable cfa_offset.
20434         * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
20436         PR target/54639
20437         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
20438         type promotion to unsigned.
20440         PR target/54640
20441         * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
20442         for HOST_WIDE_INT of 32 bit / same size as int.
20443         (arm_block_move_unaligned_straight): Likewise.
20444         (arm_adjust_block_mem): Likewise.
20446         PR target/54662
20447         * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
20448         ALL_CFLAGS.
20450 2013-02-26  Marek Polacek  <polacek@redhat.com>
20452         PR tree-optimization/56426
20453         * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
20455 2013-02-26  Richard Biener  <rguenther@suse.de>
20457         PR target/56444
20458         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
20459         unused variable loops.
20461 2013-02-26  Jakub Jelinek  <jakub@redhat.com>
20463         PR tree-optimization/56448
20464         * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
20465         TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
20466         Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
20467         later operands of the references, or even first operand for
20468         INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
20470         PR tree-optimization/56443
20471         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
20472         overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
20473         to type_for_mode langhook.
20475 2013-02-25  Matt Turner  <mattst88@gmail.com>
20477         * doc/invoke.texi: Document r4700.
20479 2013-02-25  Richard Biener  <rguenther@suse.de>
20481         PR tree-optimization/56175
20482         * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
20483         split out from ...
20484         (simplify_bitwise_binary): ... here.  Also guard the conversion
20485         of (type) X op CST to (type) (X op ((type-x) CST)) with it.
20487 2013-02-25  Catherine Moore  <clm@codesourcery.com>
20489         Revert:
20490         2013-02-24  Catherine Moore  <clm@codesourcery.com>
20491             Maciej W. Rozycki  <macro@codesourcery.com>
20492             Tom de Vries  <tom@codesourcery.com>
20493             Nathan Sidwell  <nathan@codesourcery.com>
20494             Iain Sandoe  <iain@codesourcery.com>
20495             Nathan Froyd  <froydnj@codesourcery.com>
20496             Chao-ying Fu  <fu@mips.com>
20498         * doc/extend.texi: (micromips, nomicromips, nocompression):
20499         Document new function attributes.
20500         * doc/invoke.texi (minterlink-compressed, mmicromips,
20501         m14k, m14ke, m14kec): Document new options.
20502         (minterlink-mips16): Update documentation.
20503         * doc/md.texi (ZC, ZD): Document new constraints.
20504         * configure.ac (gcc_cv_as_micromips): Check if linker
20505         supports the .set micromips directive.
20506         * configure: Regenerate.
20507         * config.in: Regenerate.
20508         * config/mips/mips-tables.opt: Regenerate.
20509         * config/mips/micromips.md: New file.
20510         * constraints.md (ZC, AD): New constraints.
20511         * config/mips/predicates.md (movep_src_register): New predicate.
20512         (movep_src_operand): New predicate.
20513         (non_volatile_mem_operand): New predicate.
20514         * config/mips/mips.md (multimem): New type.
20515         (length): Differentiate between 17-bit and 18-bit branch offsets.
20516         (MOVEP1, MOVEP2): New mode iterator.
20517         (mov_<load>l): Use ZC constraint.
20518         (mov_<load>r): Likewise.
20519         (mov_<store>l): Likewise.
20520         (mov_<store>r): Likewise.
20521         (*branch_equality<mode>_inverted): Add microMIPS support.
20522         (*branch_equality<mode>): Likewise.
20523         (*jump_absolute): Likewise.
20524         (indirect_jump_<mode>): Likewise.
20525         (tablejump_<mode>): Likewise.
20526         (<optab>_internal): Likewise.
20527         (sibcall_internal): Likewise.
20528         (sibcall_value_internal): Likewise.
20529         (prefetch): Use constraint ZD.
20530         * config/mips/mips.opt (minterlink-compressed): New option.
20531         (minterlink-mips16): Now an alias for minterlink-compressed.
20532         (mmicromips): New option.
20533         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
20534         (compare_and_swap_12): Likewise.
20535         (sync_add<mode>): Likewise.
20536         (sync_<optab>_12): Likewise.
20537         (sync_old_<optab>_12): Likewise.
20538         (sync_new_<optab>_12): Likewise.
20539         (sync_nand_12): Likewise.
20540         (sync_old_nand_12): Likewise.
20541         (sync_new_nand_12): Likewise.
20542         (sync_sub<mode>): Likewise.
20543         (sync_old_add<mode>): Likewise.
20544         (sync_old_sub<mode>): Likewise.
20545         (sync_new_add<mode>): Likewise.
20546         (sync_new_sub<mode>): Likewise.
20547         (sync_<optab><mode>): Likewise.
20548         (sync_old_<optab><mode>): Likewise.
20549         (sync_new_<optab><mode>): Likewise.
20550         (sync_nand<mode>): Likewise.
20551         (sync_old_nand<mode>): Likewise.
20552         (sync_new_nand<mode>): Likewise.
20553         (sync_lock_test_and_set<mode>): Likewise.
20554         (test_and_set_12): Likewise.
20555         (atomic_compare_and_swap<mode>): Likewise.
20556         (atomic_exchange<mode>_llsc): Likewise.
20557         (atomic_fetch_add<mode>_llsc): Likewise.
20558         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
20559         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
20560         (umips_save_restore_pattern_p): Likewise.
20561         (umips_load_store_pair_p): Likewise.
20562         (umips_output_load_store_pair): Likewise.
20563         (umips_movep_target_p): Likewise.
20564         (umips_12bit_offset_address_p): Likewise.
20565         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
20566         (mips_base_mips16): Rename this...
20567         (mips_base_compression_flags): ...to this. Update all uses.
20568         (mips_attribute_table): Add micromips, nomicromips and nocompression.
20569         (mips_mips16_decl_p): Delete.
20570         (mips_nomips16_decl_p): Delete.
20571         (mips_get_compress_on_flags): New function.
20572         (mips_get_compress_off_flags): New function.
20573         (mips_get_compress_mode): New function.
20574         (mips_get_compress_on_name): New function.
20575         (mips_get_compress_off_name): New function.
20576         (mips_insert_attributes): Support multiple compression types.
20577         (mips_merge_decl_attributes): Likewise.
20578         (umips_12bit_offset_address_p): New function.
20579         (mips_start_function_definition): Emit .set micromips directive.
20580         (mips_call_may_need_jalx_p): New function.
20581         (mips_function_ok_for_sibcall): Add microMIPS support.
20582         (mips_print_operand_punctuation): Support short delay slots and
20583         compact jumps.
20584         (umips_swm_mask, umips_swm_encoding): New.
20585         (umips_build_save_restore): New function.
20586         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
20587         (was_mips16_p): Remove.
20588         (old_compression_mode): New.
20589         (mips_set_compression_mode): New function.
20590         (mips_set_current_function): Add microMIPS support.
20591         (mips_option_override): Likewise.
20592         (umips_save_restore_pattern_p): New function.
20593         (umips_output_save_restore): New function.
20594         (umips_load_store_pair_p_1): New function.
20595         (umips_load_store_pair_p): New function.
20596         (umips_output_load_store_pair_1): New function.
20597         (umips_output_load_store_pair): New function.
20598         (umips_movep_target_p) New function.
20599         (mips_prepare_pch_save): Add microMIPS support.
20600         * config/mips/mips.h (TARGET_COMPRESSION): New.
20601         (TARGET_CPU_CPP_BUILTINS): Update macro
20602         to use new compression flags and to support microMIPS.
20603         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
20604         (MIPS_ARCH_FLOAT_SPEC): Likewise.
20605         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
20606         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
20607         (ASM_SPEC): Support mmicromips and mno-micromips.
20608         (M16STORE_REG_P): New macro.
20609         (MIPS_CALL): Support TARGET_MICROMIPS.
20610         (MICROMIPS_J): New macro.
20611         (mips_base_mips16): Rename this...
20612         (mips_base_compression_flags): ...to this.
20613         (UMIPS_12BIT_OFFSET_P): New macro.
20614         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
20615         (MULTILIB_DIRNAMES): Likewise.
20617 2013-02-25  Tom de Vries  <tom@codesourcery.com>
20619         PR rtl-optimization/56131
20620         * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
20621         * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
20622         NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
20624 2013-02-25  Tobias Burnus  <burnus@net-b.de>
20626         * doc/invoke.texi (-fsanitize=): Move from optimization
20627         to debugging options.
20629 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
20631         * sched-deps.c (sched_analyze_insn): Fix typo in comment.
20633 2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
20634             Alexander Monakov  <amonakov@ispras.ru>
20636         PR middle-end/56077
20637         * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
20638         flush pending lists also on non-jumps.  Adjust comment.
20640 2013-02-24  Catherine Moore  <clm@codesourcery.com>
20641             Maciej W. Rozycki  <macro@codesourcery.com>
20642             Tom de Vries  <tom@codesourcery.com>
20643             Nathan Sidwell  <nathan@codesourcery.com>
20644             Iain Sandoe  <iain@codesourcery.com>
20645             Nathan Froyd  <froydnj@codesourcery.com>
20646             Chao-ying Fu  <fu@mips.com>
20648         * doc/extend.texi: (micromips, nomicromips, nocompression):
20649         Document new function attributes.
20650         * doc/invoke.texi (minterlink-compressed, mmicromips,
20651         m14k, m14ke, m14kec): Document new options.
20652         (minterlink-mips16): Update documentation.
20653         * doc/md.texi (ZC, ZD): Document new constraints.
20654         * configure.ac (gcc_cv_as_micromips): Check if linker
20655         supports the .set micromips directive.
20656         * configure: Regenerate.
20657         * config.in: Regenerate.
20658         * config/mips/mips-tables.opt: Regenerate.
20659         * config/mips/micromips.md: New file.
20660         * constraints.md (ZC, AD): New constraints.
20661         * config/mips/predicates.md (movep_src_register): New predicate.
20662         (movep_src_operand): New predicate.
20663         (non_volatile_mem_operand): New predicate.
20664         * config/mips/mips.md (multimem): New type.
20665         (length): Differentiate between 17-bit and 18-bit branch offsets.
20666         (MOVEP1, MOVEP2): New mode iterator.
20667         (mov_<load>l): Use ZC constraint.
20668         (mov_<load>r): Likewise.
20669         (mov_<store>l): Likewise.
20670         (mov_<store>r): Likewise.
20671         (*branch_equality<mode>_inverted): Add microMIPS support.
20672         (*branch_equality<mode>): Likewise.
20673         (*jump_absolute): Likewise.
20674         (indirect_jump_<mode>): Likewise.
20675         (tablejump_<mode>): Likewise.
20676         (<optab>_internal): Likewise.
20677         (sibcall_internal): Likewise.
20678         (sibcall_value_internal): Likewise.
20679         (prefetch): Use constraint ZD.
20680         * config/mips/mips.opt (minterlink-compressed): New option.
20681         (minterlink-mips16): Now an alias for minterlink-compressed.
20682         (mmicromips): New option.
20683         * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
20684         (compare_and_swap_12): Likewise.
20685         (sync_add<mode>): Likewise.
20686         (sync_<optab>_12): Likewise.
20687         (sync_old_<optab>_12): Likewise.
20688         (sync_new_<optab>_12): Likewise.
20689         (sync_nand_12): Likewise.
20690         (sync_old_nand_12): Likewise.
20691         (sync_new_nand_12): Likewise.
20692         (sync_sub<mode>): Likewise.
20693         (sync_old_add<mode>): Likewise.
20694         (sync_old_sub<mode>): Likewise.
20695         (sync_new_add<mode>): Likewise.
20696         (sync_new_sub<mode>): Likewise.
20697         (sync_<optab><mode>): Likewise.
20698         (sync_old_<optab><mode>): Likewise.
20699         (sync_new_<optab><mode>): Likewise.
20700         (sync_nand<mode>): Likewise.
20701         (sync_old_nand<mode>): Likewise.
20702         (sync_new_nand<mode>): Likewise.
20703         (sync_lock_test_and_set<mode>): Likewise.
20704         (test_and_set_12): Likewise.
20705         (atomic_compare_and_swap<mode>): Likewise.
20706         (atomic_exchange<mode>_llsc): Likewise.
20707         (atomic_fetch_add<mode>_llsc): Likewise.
20708         * config/mips/mips-cpus.def (m14kc, m14k): New processors.
20709         * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
20710         (umips_save_restore_pattern_p): Likewise.
20711         (umips_load_store_pair_p): Likewise.
20712         (umips_output_load_store_pair): Likewise.
20713         (umips_movep_target_p): Likewise.
20714         (umips_12bit_offset_address_p): Likewise.
20715         * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
20716         (mips_base_mips16): Rename this...
20717         (mips_base_compression_flags): ...to this. Update all uses.
20718         (mips_attribute_table): Add micromips, nomicromips and nocompression.
20719         (mips_mips16_decl_p): Delete.
20720         (mips_nomips16_decl_p): Delete.
20721         (mips_get_compress_on_flags): New function.
20722         (mips_get_compress_off_flags): New function.
20723         (mips_get_compress_mode): New function.
20724         (mips_get_compress_on_name): New function.
20725         (mips_get_compress_off_name): New function.
20726         (mips_insert_attributes): Support multiple compression types.
20727         (mips_merge_decl_attributes): Likewise.
20728         (umips_12bit_offset_address_p): New function.
20729         (mips_start_function_definition): Emit .set micromips directive.
20730         (mips_call_may_need_jalx_p): New function.
20731         (mips_function_ok_for_sibcall): Add microMIPS support.
20732         (mips_print_operand_punctuation): Support short delay slots and
20733         compact jumps.
20734         (umips_swm_mask, umips_swm_encoding): New.
20735         (umips_build_save_restore): New function.
20736         (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
20737         (was_mips16_p): Remove.
20738         (old_compression_mode): New.
20739         (mips_set_compression_mode): New function.
20740         (mips_set_current_function): Add microMIPS support.
20741         (mips_option_override): Likewise.
20742         (umips_save_restore_pattern_p): New function.
20743         (umips_output_save_restore): New function.
20744         (umips_load_store_pair_p_1): New function.
20745         (umips_load_store_pair_p): New function.
20746         (umips_output_load_store_pair_1): New function.
20747         (umips_output_load_store_pair): New function.
20748         (umips_movep_target_p) New function.
20749         (mips_prepare_pch_save): Add microMIPS support.
20750         * config/mips/mips.h (TARGET_COMPRESSION): New.
20751         (TARGET_CPU_CPP_BUILTINS): Update macro
20752         to use new compression flags and to support microMIPS.
20753         (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
20754         (MIPS_ARCH_FLOAT_SPEC): Likewise.
20755         (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
20756         (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
20757         (ASM_SPEC): Support mmicromips and mno-micromips.
20758         (M16STORE_REG_P): New macro.
20759         (MIPS_CALL): Support TARGET_MICROMIPS.
20760         (MICROMIPS_J): New macro.
20761         (mips_base_mips16): Rename this...
20762         (mips_base_compression_flags): ...to this.
20763         (UMIPS_12BIT_OFFSET_P): New macro.
20764         * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
20765         (MULTILIB_DIRNAMES): Likewise.
20767 2013-02-24  Jakub Jelinek  <jakub@redhat.com>
20769         PR target/52555
20770         * target-globals.c (save_target_globals): For init_reg_sets and
20771         target_reinit remporarily set this_fn_optabs to this_target_optabs.
20773 2013-02-22  James Grennahlgh  <james.greenhalgh@arm.com>
20775         * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
20776         * config/aarch64/t-aarch64
20777         (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
20779 2013-02-22  Vladimir Makarov  <vmakarov@redhat.com>
20781         PR inline-asm/56148
20782         * lra-constraints.c (process_alt_operands): Reload operand
20783         conflicting with earlier clobber only if no more other conflicting
20784         operands.
20786 2013-02-22  Jakub Jelinek  <jakub@redhat.com>
20788         PR sanitizer/56393
20789         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
20790         if not linking a shared library.
20792 2013-02-22  Seth LaForge  <sethml@google.com>
20794         * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
20796 2013-02-22  Greta Yorsh  <Greta.Yorsh@arm.com>
20798         * config/arm/arm.md (split for extendsidi): Update condition.
20799         (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
20800         * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
20801         (qhs_zextenddi_cstr): Likewise.
20803 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
20805         PR middle-end/56420
20806         * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
20807         avoid signed wrapping.
20808         (expand_mult): Handle properly multiplication by
20809         ((dword_type) -1) << (BITS_PER_WORD - 1).  Improve multiplication by
20810         ((dword_type) 1) << (BITS_PER_WORD - 1).  Avoid undefined behavior
20811         in the compiler if coeff is HOST_WIDE_INT_MIN.
20812         (expand_divmod): Don't make ext_op1 static, change it's type to
20813         uhwi.  Avoid undefined behavior in -INTVAL (op1).
20815         PR rtl-optimization/50339
20816         * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
20817         field.
20818         * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
20819         (compute_costs): Call compute_splitting_shift also for ASHIFTRT
20820         into splitting_ashiftrt field.
20821         (find_decomposable_shift_zext, resolve_shift_zext): Handle also
20822         ASHIFTRT.
20823         (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
20824         choices.
20826 2013-02-20  Aldy Hernandez  <aldyh@redhat.com>
20828         PR middle-end/56108
20829         * trans-mem.c (execute_tm_mark): Do not expand transactions that
20830         are sure to go irrevocable.
20832 2013-02-21  Hans-Peter Nilsson  <hp@axis.com>
20834         * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
20835         scalars are valid operands.
20837 2013-02-21  Martin Jambor  <mjambor@suse.cz>
20839         PR tree-optimization/56310
20840         * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
20841         only matching indices and non-negative final offsets.
20842         (intersect_aggregates_with_edge): Pass src_idx to
20843         agg_replacements_to_vector.  Pass src_idx insstead of index to
20844         intersect_with_agg_replacements.
20846 2013-02-21  Martin Jambor  <mjambor@suse.cz>
20848         * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
20849         instead of hard-wired defaults.
20851 2013-02-21  Maciej W. Rozycki  <macro@codesourcery.com>
20853         * doc/invoke.texi (MIPS Options): Update documentation of the
20854         floating-point multiply-accumulate instruction restrictions.
20856 2013-02-21  Kostya Serebryany  <kcc@google.com>
20858         * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
20859         asan_shadow_offset on x86_64 linux.
20861 2013-02-21  Richard Biener  <rguenther@suse.de>
20863         PR tree-optimization/56415
20864         Revert
20865         2013-02-11  Richard Biener  <rguenther@suse.de>
20867         PR tree-optimization/56273
20868         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
20869         first VRP run.
20871 2013-02-21  Jakub Jelinek  <jakub@redhat.com>
20873         PR bootstrap/56258
20874         * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
20875         instead of @itemx.
20877         PR inline-asm/56405
20878         * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
20879         use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
20881 2013-02-20  Jan Hubicka  <jh@suse.cz>
20883         PR tree-optimization/56265
20884         * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
20885         when target is referenced for first time.
20887 2013-02-20  Richard Biener  <rguenther@suse.de>
20889         * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
20890         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
20891         * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
20892         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
20893         not return anything.
20894         (rename_ssa_copies): Do not remove unused locals.
20895         * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
20896         * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
20897         * passes.c (execute_function_todo): Do not schedule unused locals
20898         removal if cleanup_tree_cfg did something.
20899         * tree-ssa-live.c (remove_unused_locals): Dump statistics
20900         about the number of removed locals.
20902 2013-02-20  Richard Biener  <rguenther@suse.de>
20904         PR tree-optimization/56398
20905         * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
20907 2013-02-20  Martin Jambor  <mjambor@suse.cz>
20909         PR tree-optimization/55334
20910         * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
20911         restricted pointers to arrays.
20913 2013-02-20  Richard Biener  <rguenther@suse.de>
20914             Jakub Jelinek  <jakub@redhat.com>
20916         PR tree-optimization/56396
20917         * tree-ssa-ccp.c (n_const_val): New static variable.
20918         (get_value): Return NULL for SSA names we don't have a lattice
20919         entry for.
20920         (ccp_initialize): Initialize n_const_val.
20921         * tree-ssa-copy.c (n_copy_of): New static variable.
20922         (init_copy_prop): Initialize n_copy_of.
20923         (get_value): Return NULL_TREE for SSA names we don't have a
20924         lattice entry for.
20926 2013-02-20  Martin Jambor  <mjambor@suse.cz>
20928         * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
20930 2013-02-20  Richard Biener  <rguenther@suse.de>
20932         * genpreds.c (write_lookup_constraint): Do not compare first
20933         letter of the constraint again.
20935 2013-02-20  Richard Biener  <rguenther@suse.de>
20937         * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
20938         and ceil_log2.
20939         (get_use_iv_cost): Terminate hashtable walk when coming across
20940         an empty entry.
20942 2013-02-20  Igor Zamyatin  <igor.zamyatin@intel.com>
20944         * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
20945         reassociation for avx2 targets.
20947 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
20949         * config/microblaze/microblaze.c: microblaze_has_clz = 0
20950         Add version check for v8.10.a to enable microblaze_has_clz
20951         * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
20952         version and TARGET_PATTERN_COMPARE check
20953         * config/microblaze/microblaze.md: New clzsi2 instruction
20955 2012-02-19  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
20957         * config/microblaze/microblaze.md (call_value_intern): Check symbol is
20958         function before branching.
20960 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
20962         * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
20963         DUMP_INSN_RTX_UID.
20964         (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
20966 2012-02-19  Andrey Belevantsev  <abel@ispras.ru>
20968         PR middle-end/55889
20969         * sel-sched.c: Include ira.h.
20970         (implicit_clobber_conflict_p): New function.
20971         (moveup_expr): Use it.
20972         * Makefile.in (sel-sched.o): Depend on ira.h.
20974 2013-02-19  Richard Biener  <rguenther@suse.de>
20976         PR tree-optimization/56384
20977         * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
20978         (vn_hash_type): Split out from ...
20979         (vn_hash_constant_with_type): ... here.
20980         * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
20981         (vn_phi_eq): Compare types from vn_phi_s structure.
20982         (vn_phi_lookup): Populate vn_phi_s type.
20983         (vn_phi_insert): Likewise.
20985 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
20987         PR tree-optimization/56350
20988         * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
20989         if haven't found reduction or nested cycle operand, rather than
20990         asserting we must find it.
20992         PR tree-optimization/56381
20993         * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
20994         to fold_build3.
20996 2013-02-18  Aldy Hernandez  <aldyh@redhat.com>
20997             Jakub Jelinek  <jakub@redhat.com>
20999         PR target/52555
21000         * genopinit.c (raw_optab_handler): Use this_fn_optabs.
21001         (swap_optab_enable): Same.
21002         (init_all_optabs): Use argument instead of global.
21003         * tree.h (struct tree_optimization_option): New field target_optabs.
21004         * expr.h (init_all_optabs): Add argument to prototype.
21005         (TREE_OPTIMIZATION_OPTABS): New.
21006         (save_optabs_if_changed): Protoize.
21007         * optabs.h: Declare this_fn_optabs.
21008         * optabs.c (save_optabs_if_changed): New.
21009         Declare this_fn_optabs.
21010         (init_optabs): Add argument to init_all_optabs() call.
21011         * function.c (invoke_set_current_function_hook): Handle per
21012         function optabs.
21013         * function.h (struct function): New field optabs.
21014         * config/mips/mips.c (mips_set_mips16_mode): Handle when
21015         optimization_current_node has changed.
21016         * target-globals.h (save_target_globals_default_opts): Protoize.
21017         * target-globals.c (save_target_globals_default_opts): New.
21019 2013-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21021         PR target/56347
21022         * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
21023         registers %fr12 and %fr12R as call used.
21025         PR target/56214
21026         * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
21027         and HImode, require all displacements to be an integer multiple of
21028         their mode size.
21029         * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
21030         only allow QImode and HImode when reload is in progress and strict is
21031         true.  Likewise for symbolic addresses.  Use base14_operand to check
21032         displacements in REG+BASE addresses.
21034 2013-02-18  Richard Biener  <rguenther@suse.de>
21036         PR tree-optimization/56366
21037         * tree-vect-loop.c (get_initial_def_for_induction): Properly
21038         handle sign-conversion of outer-loop initial induction value.
21040 2013-02-18  Richard Biener  <rguenther@suse.de>
21042         PR middle-end/56349
21043         * cfghooks.c (merge_blocks): If we merge a latch into another
21044         block adjust references to it.
21045         * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
21046         (verify_loop_structure): Verify that a recorded latch is in fact
21047         a latch.
21049 2013-02-18  Richard Biener  <rguenther@suse.de>
21051         PR tree-optimization/56321
21052         * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
21053         order SSA name release and virtual operand unlinking.
21055 2013-02-17  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
21057         * config/microblaze/microblaze.md (save_stack_block): Define.
21058         (restore_stack_block): Likewise.
21060 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
21062         * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
21063         * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
21064         * config/microblaze/microblaze.c (microblaze_option_override):
21065         Bail out early for PIC modes when target does not support PIC.
21067 2013-02-16  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
21069         * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
21070         Replace with a microblaze version.
21071         (microblaze_trampoline_init): Adapt for microblaze.
21072         * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
21073         microblaze.
21075 2013-02-16  Jakub Jelinek  <jakub@redhat.com>
21076             Dodji Seketeli  <dodji@redhat.com>
21078         PR asan/56330
21079         * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
21080         (instrument_mem_region_access): Do not forget to always put
21081         instrumentation of the of 'base' and 'base + len' in a "if (len !=
21082         0) statement, even for cases where either 'base' or 'base + len'
21083         are not instrumented -- because they have been previously
21084         instrumented.  Simplify the logic by putting all the statements
21085         instrument 'base + len' inside a sequence, and then insert that
21086         sequence right before the current insertion point.  Then, to
21087         instrument 'base + len', just get an iterator on that statement.
21088         And do not forget to update the pointer to iterator the function
21089         received as argument.
21091 2013-02-15  Vladimir Makarov  <vmakarov@redhat.com>
21093         PR rtl-optimization/56348
21094         * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
21096 2013-02-15  Steven Bosscher  <steven@gcc.gnu.org>
21098         * graph.c (start_graph_dump): Print dumpfile base as digraph label.
21099         (clean_graph_dump_file): Pass base to start_graph_dump.
21101 2013-02-14  Richard Henderson  <rth@redhat.com>
21103         PR target/55941
21104         * lower-subreg.c (simple_move): Check dest mode instead of src mode.
21106 2013-02-14  Steven Bosscher  <steven@gcc.gnu.org>
21108         * collect2-aix.h: Define F_LOADONLY.
21110 2013-02-14  Richard Biener  <rguenther@suse.de>
21112         PR lto/50494
21113         * varasm.c (output_constant_def_1): Get the decl representing
21114         the constant as argument.
21115         (output_constant_def): Wrap output_constant_def_1.
21116         (make_decl_rtl): Use output_constant_def_1 with the decl
21117         representing the constant.
21118         (build_constant_desc): Optionally re-use a decl already
21119         representing the constant.
21120         (tree_output_constant_def): Adjust.
21122 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
21124         Fix an asan crash
21125         * asan.c (instrument_builtin_call):  Really put the length of the
21126         second source argument into src1_len.
21128 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
21130         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
21131         argument.  If it is false, don't create edge from then_bb to
21132         fallthru_bb.
21133         (insert_if_then_before_iter): Pass true to it.
21134         (build_check_stmt): Pass false to it.
21135         (transform_statements): Flush hash table only on extended basic
21136         block boundaries, rather than at the beginning of every bb.
21137         Don't flush hash table on nonfreeing_call_p calls.
21138         * tree-flow.h (nonfreeing_call_p): New prototype.
21139         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
21141 2013-02-13  David S. Miller  <davem@davemloft.net>
21143         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
21145 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
21147         PR target/56184
21148         * ira.c (max_regno_before_ira): Move from ...
21149         (ira): ... here.
21150         (fix_reg_equiv_init): Use max_regno_before_ira instead of
21151         vec_safe_length.
21153 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
21155         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
21157 2013-02-13  Richard Biener  <rguenther@suse.de>
21159         PR lto/56295
21160         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
21161         globals in MEM_REFs.
21163 2013-02-13  Richard Biener  <rguenther@suse.de>
21165         * loop-init.c (loop_optimizer_init): Clear loop state when
21166         re-initializing preserved loops.
21167         * loop-unswitch.c (unswitch_single_loop): Return whether
21168         we unswitched the loop.  Do not verify loop state here.
21169         (unswitch_loops): When we unswitched a loop discover new loops.
21171 2013-02-13  Kostya Serebryany  <kcc@google.com>
21173         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
21174         on x86_64 linux.
21175         * sanitizer.def: Rename __asan_init to __asan_init_v1.
21177 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
21179         Avoid instrumenting duplicated memory access in the same basic block
21180         * Makefile.in (asan.o): Add new dependency on hash-table.h
21181         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
21182         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
21183         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
21184         (free_mem_ref_resources, has_mem_ref_been_instrumented)
21185         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
21186         (get_mem_ref_of_assignment): New functions.
21187         (get_mem_refs_of_builtin_call): Extract from
21188         instrument_builtin_call and tweak a little bit to make it fit with
21189         the new signature.
21190         (instrument_builtin_call): Use the new
21191         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
21192         of is_gimple_builtin_call.
21193         (instrument_derefs, instrument_mem_region_access): Insert the
21194         instrumented memory reference into the hash table.
21195         (maybe_instrument_assignment): Renamed instrument_assignment into
21196         this, and change it to advance the iterator when instrumentation
21197         actually happened and return true in that case.  This makes it
21198         homogeneous with maybe_instrument_assignment, and thus give a
21199         chance to callers to be more 'regular'.
21200         (transform_statements): Clear the memory reference hash table
21201         whenever we enter a new BB, when we cross a function call, or when
21202         we are done transforming statements.  Use
21203         maybe_instrument_assignment instead of instrumentation.  No more
21204         need to special case maybe_instrument_assignment and advance the
21205         iterator after calling it; it's now handled just like
21206         maybe_instrument_call.  Update comment.
21208 2013-02-13  Richard Biener  <rguenther@suse.de>
21210         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
21211         Fix loop discovery code.
21213 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
21215         PR inline-asm/56148
21216         * lra-constraints.c (process_alt_operands): Match early clobber
21217         operand with itself.  Check conflicts with earlyclobber only if
21218         the operand is not reloaded.  Prefer to reload conflicting operand
21219         if earlyclobber and matching operands are the same.
21221 2013-02-12  Richard Biener  <rguenther@suse.de>
21223         PR lto/56297
21224         * lto-streamer-out.c (write_symbol): Do not output symbols
21225         for hard register variables.
21227 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
21229         PR target/54222
21230         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
21231         (umulsidi3_insn, mulsidi3_insn): New insns.
21233 2013-02-12  Christophe Lyon  <christophe.lyon@linaro.org>
21235         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
21236         (struct tune_params): Add vec_costs field.
21237         * config/arm/arm.c (arm_builtin_vectorization_cost)
21238         (arm_add_stmt_cost): New functions.
21239         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
21240         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
21241         (arm_default_vec_cost): New struct of type cpu_vec_costs.
21242         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
21243         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
21244         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
21245         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
21247 2013-02-12  Richard Biener  <rguenther@suse.de>
21249         PR lto/56295
21250         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
21251         decls again if possible.
21253 2013-02-12  Richard Biener  <rguenther@suse.de>
21255         PR middle-end/56288
21256         * tree-ssa.c (verify_ssa_name): Fix check, move
21257         SSA_NAME_IN_FREE_LIST check up.
21259 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
21260             Steven Bosscher   <steven@gcc.gnu.org>
21262         PR rtl-optimization/56151
21263         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
21264         equal to op0 or op1, and last_insn pattern is CODE operation
21265         with MEM dest and one of the operands matches that MEM.
21267 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
21269         * doc/extend.texi: Document Function Multiversioning and "default"
21270         parameter string to target attribute.
21271         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
21272         target attribute parameter is "default".
21273         (ix86_compare_version_priority): Remove checks for target attribute.
21274         (ix86_mangle_function_version_assembler_name): Change error to sorry.
21275         Remove check for target attribute equal to NULL. Add assert.
21276         (ix86_generate_version_dispatcher_body): Change error to sorry.
21278 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
21279             Jack Howarth  <howarth@bromo.med.uc.edu>
21280             Patrick Marlier  <patrick.marlier@gmail.com>
21282         PR libitm/55693
21283         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
21284         define ENDFILE_SPEC as TM_DESTRUCTOR.
21285         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
21287 2013-02-11  Alexander Potapenko  <glider@google.com>
21288             Jack Howarth  <howarth@bromo.med.uc.edu>
21289             Jakub Jelinek  <jakub@redhat.com>
21291         PR sanitizer/55617
21292         * config/darwin.c (cdtor_record): Rename ctor_record.
21293         (sort_cdtor_records): Rename sort_ctor_records.
21294         (finalize_dtors): New routine to sort destructors by
21295         priority before use in assemble_integer.
21296         (machopic_asm_out_destructor): Use finalize_dtors if needed.
21298 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
21300         PR rtl-optimization/56275
21301         * simplify-rtx.c (avoid_constant_pool_reference): Check that
21302         offset is non-negative and less than cmode size before
21303         calling simplify_subreg.
21305 2013-02-11  Richard Biener  <rguenther@suse.de>
21307         PR tree-optimization/56264
21308         * cfgloop.h (fix_loop_structure): Adjust prototype.
21309         * loop-init.c (fix_loop_structure): Return the number of
21310         newly discovered loops.
21311         * tree-cfgcleanup.c (repair_loop_structures): When new loops
21312         are discovered, do a full loop-closed SSA rewrite.
21314 2013-02-11  Richard Biener  <rguenther@suse.de>
21316         PR tree-optimization/56273
21317         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
21318         first VRP run.
21319         (check_array_ref): Fix missing newline in dumps.
21320         (search_for_addr_array): Likewise.
21322 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
21324         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
21326 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
21328         PR target/56256
21329         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
21331 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
21333         PR rtl-optimization/56246
21334         * lra-constraints.c (simplify_operand_subreg): Try to reuse
21335         reload pseudo.
21336         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
21337         constraints are satisfied.
21339 2013-02-08  Jeff Law  <law@redhat.com>
21341         PR debug/53948
21342         * emit-rtl.c (reg_is_parm_p): New function.
21343         * regs.h (reg_is_parm_p): New prototype.
21344         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
21345         callee-clobbered registers.
21347 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
21349         PR target/56043
21350         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
21351         If there is no implicit builtin declaration, just return NULL.
21353 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
21355         * config/i386/sse.md (FMAMODEM): New mode iterator.
21356         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
21357         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
21359 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
21361         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
21362         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
21363         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
21365 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
21367         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
21368         (microblaze*-*-elf): Likewise.
21369         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
21370         LINK_SPEC.
21371         * config/microblaze/microblaze-c.c: Add builtin defines for
21372         _LITTLE_ENDIAN and _BIG_ENDIAN.
21373         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
21374         add to TARGET_DEFAULT flags.
21375         Expand ASM_SPEC and LINK_SPEC.
21376         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
21377         * config/microblaze/microblaze.md: Update extendsidi2 and
21378         movdi_internal instructions to use low-order / high-order reg
21379         print_operands.
21380         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
21381         options and inversemask / mask of LITTLE_ENDIAN.
21382         * config/microblaze/t-microblaze: Expand multilib options to
21383         include mlittle-endian (le) and update exceptions patterns.
21385 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
21387         PR rtl-optimization/56195
21388         * lra-constraints.c (get_reload_reg): Don't reuse regs
21389         if they have smaller mode than requested, if they have
21390         wider mode than requested, try to return a SUBREG.
21392         PR tree-optimization/56250
21393         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
21394         if type is unsigned and code isn't MULT_EXPR.
21396 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
21398         PR tree-optimization/56064
21399         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
21400         bits according to mode.
21401         * fixed-value.h (fixed_from_double_int)
21402         (const_fixed_from_double_int): Adjust comments.
21404 2013-02-08  Richard Biener  <rguenther@suse.de>
21406         PR lto/56231
21407         * lto-streamer.h (struct data_in): Remove current_file, current_line
21408         and current_col members.
21409         * lto-streamer-out.c (lto_output_location): Stream changed bits
21410         en-block for efficiency.
21411         * lto-streamer-in.c (clear_line_info): Remove.
21412         (lto_input_location): Cache current file, line and column
21413         globally via local statics.  Read changed bits en-block.
21414         (input_function): Do not call clear_line_info.
21415         (lto_read_body): Likewise.
21416         (lto_input_toplevel_asms): Likewise.
21418 2013-02-08  Michael Matz  <matz@suse.de>
21420         PR tree-optimization/52448
21421         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
21422         (nt_call_phase): New static.
21423         (add_or_mark_expr): Only mark accesses with newer phase than any
21424         call seen.
21425         (nonfreeing_call_p): New.
21426         (nt_init_block): Update nt_call_phase, mark blocks as visited.
21427         (nt_fini_block): Keep blocks marked as visited.
21428         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
21430 2013-02-08  Richard Biener  <rguenther@suse.de>
21432         * ira.c (ira): Free broken dominator information.
21434 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
21436         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
21438 2013-02-08  Marek Polacek  <polacek@redhat.com>
21440         * cfgloop.c (verify_loop_structure): Add more checking of headers.
21442 2013-02-08  Richard Biener  <rguenther@suse.de>
21444         PR middle-end/56181
21445         * cfgloop.h (flow_loops_find): Adjust.
21446         (bb_loop_header_p): Declare.
21447         * cfgloop.c (bb_loop_header_p): New function split out from ...
21448         (flow_loops_find): ... here.  Adjust function signature,
21449         support incremental loop structure update.
21450         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
21451         * cfgloopmanip.c (fix_loop_structure): Move ...
21452         * loop-init.c (fix_loop_structure): ... here.
21453         (apply_loop_flags): Split out from ...
21454         (loop_optimizer_init): ... here.
21455         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
21456         in incremental mode, only remove dead loops here.
21458 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
21460         PR target/54222
21461         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
21462         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
21463         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
21464         (*round<mode>3.libgcc): New insns for fixed-modes.
21465         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
21466         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
21467         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
21468         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
21469         implementations.  Define to __builtin_avr_absFX,
21470         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
21471         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
21472         __builtin_avr_countlsFX, respectively.
21473         * config/avr/avr-c.c (target.h): Include it.
21474         (enum avr_builtin_id): New enum.
21475         (avr_resolve_overloaded_builtin): New static function.
21476         (avr_register_target_pragmas): Use it to set
21477         targetm.resolve_overloaded_builtin.
21478         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
21479         tree nodes used by DEF_BUILTIN.
21480         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
21481         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
21482         <AVR_BUILTIN_xxBITS>: Same.
21484 2013-02-08  Richard Biener  <rguenther@suse.de>
21486         * cfgloop.c (verify_loop_structure): Properly handle
21487         a loop exiting to another loop header.
21488         * ira-int.h (ira_loops): Remove.
21489         * ira.c (ira_loops): Remove.
21490         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
21491         (do_reload): Use loop_optimizer_finalize.
21492         * ira-build.c (create_loop_tree_nodes): Use get_loops and
21493         number_of_loops to access the loop tree.
21494         (more_one_region_p): Likewise.
21495         (finish_loop_tree_nodes): Likewise.
21496         (rebuild_regno_allocno_maps): Likewise.
21497         (mark_loops_for_removal): Likewise.
21498         (mark_all_loops_for_removal): Likewise.
21499         (remove_unnecessary_regions): Likewise.
21500         (ira_build): Likewise.
21501         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
21503 2013-02-08  Richard Biener  <rguenther@suse.de>
21505         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
21506         * ipa-pure-const.c (analyze_function): Avoid calling
21507         mark_irreducible_loops twice.
21508         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
21510 2013-02-07  David S. Miller  <davem@davemloft.net>
21512         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
21513         on 'reg'.
21514         * var-tracking.c (vt_add_function_parameter): Test the presence of
21515         HAVE_window_save properly and do not remap argument registers when
21516         we have a leaf function.
21518 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
21520         PR bootstrap/56227
21521         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
21522         instead of "ll".
21523         * config/i386/i386.c (ix86_print_operand): Ditto.
21525 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
21527         * lra-constraints.c (process_alt_operands): Fix recently added comment.
21529 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
21531         PR rtl-optimization/56225
21532         * lra-constraints.c (process_alt_operands): Check that reload hard
21533         reg can hold value for strict_low_part.
21535 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
21537         PR debug/56154
21538         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
21539         dwarf2out_end_function.
21540         (in_first_function_p, maybe_at_text_label_p,
21541         first_loclabel_num_not_at_text_label): New variables.
21542         (dwarf2out_var_location): In the first function find out
21543         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
21544         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
21545         functions.
21547 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
21549         PR rtl-optimization/56178
21550         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
21551         SUBREG of a register.  Tidy up related block of code.
21552         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
21553         note if the source is a register or a SUBREG of a register.
21555 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
21557         PR target/56228
21558         * config/rs6000/rs6000.md (ptrm): New mode attr.
21559         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
21560         call_value_indirect_aix<pttrsize>,
21561         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
21562         m in constraints.
21564 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
21566         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
21567         if -bnortl. Convert to strcmp and strncmp.
21569 2013-02-07  Alan Modra  <amodra@gmail.com>
21571         PR target/54009
21572         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
21573         addresses won't wrap when offsetting.
21574         (rs6000_secondary_reload): Provide secondary reloads needed for
21575         wrapping LO_SUM addresses.
21577 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
21579         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
21580         MACH, just __MACH__.
21582 2013-02-06  Richard Biener  <rguenther@suse.de>
21584         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
21585         instead of calling fix_loop_structure.
21587 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
21589         PR middle-end/56217
21590         * omp-low.c (use_pointer_for_field): Return false if
21591         lower_send_shared_vars doesn't generate any copy-out code.
21593 2013-02-06  Tom de Vries  <tom@codesourcery.com>
21595         PR rtl-optimization/56131
21596         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
21597         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
21598         of the label is NULL.  Add comment.
21600 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
21602         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
21604         PR sanitizer/55374
21605         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
21606         (STATIC_LIBTSAN_LIBS): Likewise.
21607         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
21608         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
21609         is defined, don't add anything else beyond that.
21610         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
21611         (LINK_COMMAND_SPEC): Use them.
21613         PR tree-optimization/56205
21614         * tree-stdarg.c (check_all_va_list_escapes): Return true if
21615         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
21616         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
21618 2013-02-05  Richard Biener  <rguenther@suse.de>
21620         PR tree-optimization/53342
21621         PR tree-optimization/53185
21622         * tree-vectorizer.h (vect_check_strided_load): Remove.
21623         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
21624         not disallow peeling for vectorized strided loads.
21625         (vect_check_strided_load): Make static and simplify.
21626         (vect_analyze_data_refs): Adjust.
21627         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
21628         correctly when vectorizing strided loads.
21630 2013-02-05  Richard Biener  <rguenther@suse.de>
21632         * doc/install.texi: Refer to ISL, not PPL.
21634 2013-02-05  Jan Hubicka  <jh@suse.cz>
21636         PR tree-optimization/55789
21637         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
21639 2013-02-05  Jan Hubicka  <jh@suse.cz>
21641         PR tree-optimization/55789
21642         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
21643         the dead call anyway.
21645 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
21647         PR sanitizer/55374
21648         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
21650 2013-02-04  Alexander Potapenko  <glider@google.com>
21651             Jack Howarth  <howarth@bromo.med.uc.edu>
21652             Jakub Jelinek  <jakub@redhat.com>
21654         PR sanitizer/55617
21655         * config/darwin.c (sort_ctor_records): Stabilized qsort
21656         on constructor priority by using original position.
21657         (finalize_ctors): New routine to sort constructors by
21658         priority before use in assemble_integer.
21659         (machopic_asm_out_constructor): Use finalize_ctors if needed.
21661 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
21663         PR libstdc++/54314
21664         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
21665         about visibility on artificial decls.
21666         * config/sol2.c (solaris_assemble_visibility): Likewise.
21668 2013-02-04  Kai Tietz  <ktietz@redhat.com>
21670         PR target/56186
21671         * config/i386/i386.c (function_value_ms_64): Add additional valtype
21672         argument and improve checking of return-argument types for 16-byte
21673         modes.
21674         (ix86_function_value_1): Add additional valtype argument on call
21675         of function_value_64.
21676         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
21677         handling infunction_value_64 function.
21679 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
21681         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
21683 2013-02-04  Richard Biener  <rguenther@suse.de>
21685         PR tree-optimization/56188
21686         * tree-ssa-structalias.c (label_visit): Consider case with
21687         initially non-empty points-to set.
21688         (perform_var_substitution): Dump node mapping and clean up.
21690 2013-02-04  Richard Guenther  <rguenther@suse.de>
21692         PR lto/56168
21693         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
21694         node prevail as last resort.
21695         (lto_symtab_merge_decls): Remove guard on LTRANS here.
21696         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
21698 2013-02-04  Richard Biener  <rguenther@suse.de>
21700         PR tree-optimization/56113
21701         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
21702         Merge into ...
21703         (equiv_class_lookup_or_add): ... this.
21704         (label_visit): Adjust and fix error in previous patch.
21705         (perform_var_substitution): Adjust.
21707 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
21709         * config/sh/divtab.c: Fix formatting and comments throughout the file.
21710         * config/sh/sh4-300.md: Likewise.
21711         * config/sh/sh4a.md: Likewise.
21712         * config/sh/constraints.md: Likewise.
21713         * config/sh/sh.md: Likewise.
21714         * config/sh/netbsd-elf.h: Likewise.
21715         * config/sh/predicates.md: Likewise.
21716         * config/sh/sh-protos.h: Likewise.
21717         * config/sh/ushmedia.h: Likewise.
21718         * config/sh/linux.h: Likewise.
21719         * config/sh/sh.c: Likewise.
21720         * config/sh/superh.h: Likewise.
21721         * config/sh/elf.h: Likewise.
21722         * config/sh/sh4.md: Likewise.
21723         * config/sh/sh.h: Likewise.
21725 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21727         * config/pa/constraints.md: Adjust unused letters.  Change "T"
21728         constraint to match_test floating_point_store_memory_operand().
21729         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
21730         (base14_operand): New.
21731         (floating_point_store_memory_operand): New.
21732         (integer_store_memory_operand): Revise to use base14_operand and
21733         reg_plus_base_memory_operand.
21734         (move_dest_operand): Allow symbolic_memory_operands.
21735         (symbolic_memory_operand): Check for LO_SOM.
21736         (symbolic_operand): Change default case to break.
21737         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
21738         CONST_DOUBLE values to be reloaded by putting them into memory when
21739         the destination is a floating point register.
21740         (movdf): Remove code to handle CONST_DOUBLE.
21741         (movsf): Likewise.
21742         (reload_indf_r1): New.
21743         (reload_insf_r1): New.
21744         Consistently use "Q" and "T" constraints with integer and floating
21745         point move instructions, respectively.
21746         (movdi): Remove FAIL.
21747         Change predicate for source operand unamed DImode move from
21748         general_operand to move_src_operand.
21749         (umulsidi3): Change predicate for destination operand to
21750         register_operand.
21751         Likewise for similar unamed patterns.
21752         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
21753         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
21754         (hppa_legitimize_address): Simplify mask calculation.
21755         (pa_emit_move_sequence): Revised handling of secondary reloads from
21756         REG+D addresses for floating point loads and stores.  Directly handle
21757         loading CONST0_RTX (mode) to a floating point register.
21758         (pa_secondary_reload): Handle reloading DF and SFmode constant values
21759         to floating point registers.  Don't restrict secondary reloads to
21760         floating point registers to integer modes.  Revise some comments and
21761         cleanup some code.
21762         (TARGET_LEGITIMATE_ADDRESS_P): Define.
21763         (pa_legitimate_address_p): New.
21764         (pa_legitimize_reload_address): New.
21765         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
21766         (STRICT_REG_OK_FOR_BASE_P): New.
21767         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
21768         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
21770 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
21771             Andrew Dixie  <andrewd@gentrack.com>
21773         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
21774         flag set.
21776 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
21778         * expmed.c (extract_bit_field_1): Pass the full width of the
21779         structure to get_best_reg_extraction_insn.
21781 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
21783         PR target/54601
21784         * configure.ac (use_cxa_atexit): Add AIX.
21785         * configure: Regenerate.
21787         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
21789 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
21791         PR debug/54793
21792         * final.c (need_profile_function): New variable.
21793         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
21794         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
21795         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
21796         notes, targetm.asm_out.function_prologue doesn't emit anything,
21797         HAVE_prologue and profiler should be emitted before prologue,
21798         set need_profile_function instead of emitting it.
21799         (final_scan_insn): If need_profile_function, emit
21800         profile_function on the first NOTE_INSN_BASIC_BLOCK or
21801         NOTE_INSN_FUNCTION_BEG note.
21803 2013-02-01  Richard Henderson  <rth@redhat.com>
21805         * config/rs6000/rs6000.md (smulditi3): New.
21806         (umulditi3): New.
21808         * config/alpha/alpha.md (umulditi3): New.
21810 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
21812         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
21813         (ASM_OUTPUT_ALIGNED_LOCAL): New.
21815 2013-02-01  Richard Biener  <rguenther@suse.de>
21817         PR tree-optimization/56113
21818         * tree-ssa-structalias.c (label_visit): Reduce work for
21819         single-predecessor nodes.
21821 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
21823         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
21824         range isn't testing for zero.
21826 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
21828         PR middle-end/56113
21829         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
21831 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
21832             Nick Clifton  <nickc@redhat.com>
21834         * config/v850/constraints.md (Q): Define as a memory constraint.
21835         * config/v850/predicates.md (label_ref_operand): New predicate.
21836         (e3v5_shift_operand): New predicate.
21837         (ior_operator): New predicate.
21838         * config/v850/t-v850: Add e3v5 multilib.
21839         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
21840         (v850_gen_movdi): Prototype.
21841         * config/v850/v850.c: Add support for e3v5 architecture.
21842         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
21843         TARGET_V850E_UP.
21844         (construct_save_jarl): Add e3v5 long JARL support.
21845         (v850_adjust_insn_length): New function.  Adjust length of call
21846         insns when using e3v5 instructions.
21847         (v850_gen_movdi): New function: Generate instructions to move a
21848         DImode value.
21849         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
21850         (CPP_SPEC): Define __v850e3v5__ as appropriate.
21851         (TARGET_USE_FPU): Enable for e3v5.
21852         (CONST_OK_FOR_W): New macro.
21853         (ADJUST_INSN_LENGTH): Define.
21854         * config/v850/v850.md (UNSPEC_LOOP): Define.
21855         (attr cpu): Add v850e3v5.
21856         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
21857         (movdi): New pattern.
21858         (movdi_internal): New pattern.
21859         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
21860         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
21861         (cstoresf4): Likewise.
21862         (cstoredf4): Likewise.
21863         (insv): New pattern.
21864         (rotlso3_a): New pattern.
21865         (rotlsi3_b): New pattern
21866         (rotlsi3_v850e3v5): New pattern.
21867         (doloop_begin): New pattern.
21868         (fix_loop_counter): New pattern.
21869         (doloop_end): New pattern.
21870         (branch_normal): Add e3v5 long branch support.
21871         (branch_invert): Likewise.
21872         (branch_z_normal): Likewise.
21873         (branch_z_invert): Likewise.
21874         (branch_nz_normal): Likewise.
21875         (branch_nz_invert): Likewise.
21876         (call_internal_short): Add e3v5 register-indirect JARL support.
21877         (call_internal_long): Likewise.
21878         (call_value_internal_short): Likewise.
21879         (call_value_internal_long): Likewise.
21880         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
21881         (mloop): New option.
21882         * config.gcc: Add support for configuring v840e3v5 target.
21883         * doc/invoke.texi: Document new v850 specific command line options.
21885 2013-01-31  Paul Koning  <ni1d@arrl.net>
21887         PR debug/55059
21888         PR debug/54508
21889         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
21890         children if parent is a class.
21891         (prune_unused_types_prune): Don't add DW_AT_declaration.
21893 2013-01-31  Richard Biener  <rguenther@suse.de>
21895         PR tree-optimization/56157
21896         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
21897         match up operand with SLP child.
21899 2013-01-31  Jason Merrill  <jason@redhat.com>
21901         PR debug/54410
21902         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
21903         parameters the first time.
21904         (gen_scheduled_generic_parms_dies): Check completeness here.
21906 2013-01-31  Richard Biener  <rguenther@suse.de>
21908         PR middle-end/53073
21909         * common.opt (faggressive-loop-optimizations): New flag,
21910         enabled by default.
21911         * doc/invoke.texi (faggressive-loop-optimizations): Document.
21912         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
21913         infer_loop_bounds_from_undefined by it.
21915 2013-01-31  Richard Biener  <rguenther@suse.de>
21917         PR tree-optimization/56150
21918         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
21919         visit virtual operands.
21920         (find_uses_to_rename_bb): Likewise.
21922 2013-01-31  Richard Biener  <rguenther@suse.de>
21924         PR tree-optimization/56150
21925         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
21926         mixed store non-store stmts.
21928 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
21930         PR sanitizer/55374
21931         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
21932         LIBASAN_EARLY_SPEC is defined.
21933         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
21934         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
21935         before %o.
21936         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
21938         PR c++/55742
21939         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
21940         invalid args instead of ICEing on it.
21941         (ix86_valid_target_attribute_tree): Return error_mark_node if
21942         ix86_valid_target_attribute_inner_p failed.
21943         (ix86_valid_target_attribute_p): Return false only if
21944         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
21945         target("default") attribute.
21946         (sorted_attr_string): Change argument from const char * to tree,
21947         merge in all target attribute arguments rather than just one.
21948         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
21949         instead of free.  Avoid using strcat.
21950         (ix86_mangle_function_version_assembler_name): Mangle
21951         target("default") as if no target attribute is present.  Adjust
21952         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
21953         instead of xmalloc and XDELETEVEC instead of free.
21954         (ix86_function_versions): Don't return true if one of the decls
21955         doesn't have target attribute.  If they don't and one of the decls
21956         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
21957         sorted_attr_string caller.  Use XDELETEVEC instead of free.
21958         (ix86_supports_function_versions): Remove.
21959         (make_name): Fix up formatting.
21960         (make_dispatcher_decl): Remove resolver_name and its initialization.
21961         Avoid leaking memory.
21962         (is_function_default_version): Return true if there is
21963         target("default") attribute rather than no target attribute at all.
21964         (make_resolver_func): Avoid leaking memory.
21965         (ix86_generate_version_dispatcher_body): Likewise.
21966         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
21967         * target.def (supports_function_versions): Remove.
21968         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
21969         * doc/tm.texi: Regenerated.
21971 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
21973         PR rtl-optimization/56144
21974         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
21975         for values with side effects.
21977 2013-01-30  Richard Biener  <rguenther@suse.de>
21979         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
21980         (sparseset_pop): Likewise.
21981         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
21982         to be able to use quick_push in the worker loop.
21984 2013-01-30  Marek Polacek  <polacek@redhat.com>
21986         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
21988 2013-01-30  Richard Biener  <rguenther@suse.de>
21990         PR lto/56147
21991         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
21993 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
21995         PR tree-optimization/56064
21996         * fixed-value.c (fixed_from_double_int): New function.
21997         * fixed-value.h (fixed_from_double_int): New prototype.
21998         (const_fixed_from_double_int): New static inline function.
21999         * fold-const.c (native_interpret_fixed): New static function.
22000         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
22001         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
22002         (native_encode_fixed): New static function.
22003         (native_encode_expr) <FIXED_CST>: Use it.
22004         (native_interpret_int): Move double_int worker code to...
22005         * double-int.c (double_int::from_buffer): ...this new static method.
22006         * double-int.h (double_int::from_buffer): Prototype it.
22008 2013-01-30  Richard Biener  <rguenther@suse.de>
22010         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
22011         New pointer-map and obstack.
22012         (init_alias_vars): Allocate pointer-map and obstack.
22013         (delete_points_to_sets): Free them.
22014         (find_what_var_points_to): Cache result.
22015         (find_what_p_points_to): Adjust for changed interface of
22016         find_what_var_points_to.
22017         (compute_points_to_sets): Likewise.
22018         (ipa_pta_execute): Likewise.
22020 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22022         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
22023         * configure: Regenerate.
22024         * config.in: Regenerate.
22025         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
22026         #nobits/#progbits if supported.
22028 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
22030         PR target/56121
22031         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
22032         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
22033         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
22035 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
22037         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
22038         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
22040 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
22042         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
22043         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
22045 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
22047         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
22048         declaration.
22049         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
22050         * config/arm/cortex-a7.md: New bypasses using
22051         arm_mac_accumulator_is_result.
22053 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
22055         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
22056         (cortex_a7_neon_mla): Likewise.
22057         (cortex_a7_fpfmad): New reservation.
22058         (cortex_a7_fpmacs): Use ffmas and update required units.
22059         (cortex_a7_fpmuld): Update required units and latency.
22060         (cortex_a7_fpmacd): Likewise.
22061         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
22062         (cortex_a7_neon). Likewise.
22063         (bypass) Update participating units.
22065 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
22067         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
22068         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
22069         from fmac to ffma.
22070         * config/arm/vfp11.md (vfp_farith): Use ffmas.
22071         (vfp_fmul): Use ffmad.
22072         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
22073         (cortex_r4_fmacd): Use ffmad.
22074         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
22075         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
22076         (cortex_a9_fmacd): Use ffmad.
22077         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
22078         (cortex_a8_vfp_macd): Use ffmad.
22079         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
22080         (cortex_a5_fpmacd): Use ffmad.
22081         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
22082         (cortex_a15_vfp_macd): Use ffmad.
22083         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
22085 2013-01-29  Jason Merrill  <jason@redhat.com>
22087         PR libstdc++/54314
22088         * varasm.c (default_assemble_visibility): Don't warn about
22089         visibility on artificial decls.
22091 2013-01-29  Richard Biener  <rguenther@suse.de>
22093         PR tree-optimization/56113
22094         * tree-ssa-structalias.c (equiv_class_lookup): Also return
22095         the bitmap leader.
22096         (label_visit): Free duplicate bitmaps and record the leader instead.
22097         (perform_var_substitution): Adjust.
22099 2013-01-29  Richard Biener  <rguenther@suse.de>
22101         PR tree-optimization/55270
22102         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
22103         the CFG, schedule loops for fixup.
22105 2013-01-29  Nick Clifton  <nickc@redhat.com>
22107         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
22108         SP_REG.
22110 2013-01-28  Leif Ekblad  <leif@rdos.net>
22112         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
22113         * config/i386/i386.h (TARGET_RDOS): New macro.
22114         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
22115         * config/i386/i386.c (ix86_option_override_internal): For 64bit
22116         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
22117         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
22118         DEFAULT_LARGE_SECTION_THRESHOLD.
22119         * config/i386/i386.md (R14_REG, R15_REG): New constants.
22120         * config/i386/rdos.h: New file.
22121         * config/i386/rdos64.h: New file.
22123 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
22125         PR other/54814
22126         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
22127         TEST_HARD_REG_BIT.
22129 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
22131         PR rtl-optimization/56117
22132         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
22133         call cselib_lookup_from_insn on the MEM before calling
22134         add_insn_mem_dependence.
22136 2013-01-28  Richard Biener  <rguenther@suse.de>
22138         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
22139         to a stmt that didn't have one.
22140         (copy_phis_for_bb): Likewise for PHI arguments.
22141         (copy_debug_stmt): Likewise for debug stmts.
22143 2013-01-28  Richard Biener  <rguenther@suse.de>
22145         PR tree-optimization/56034
22146         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
22147         (partition_builtin_p): Adjust.
22148         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
22149         it is the last partition.
22150         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
22151         up the vertex for the definition.
22152         (classify_partition): Classify whether a partition is a
22153         PKIND_REDUCTION, thus has uses outside of the loop.
22154         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
22155         Merge all PKIND_REDUCTION partitions into the last partition.
22156         (tree_loop_distribution): Seed partitions from reductions as well.
22158 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
22160         PR tree-optimization/56125
22161         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
22162         pow(x,c) into sqrt(x) * powi(x, n/2) or
22163         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
22164         optimizing for size.
22165         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
22166         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
22167         integer.
22169         PR tree-optimization/56094
22170         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
22171         to UNKNOWN_LOCATION while gimplifying expr.
22173 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
22175         PR target/56114
22176         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
22177         operand 0 in movabs insn template for -masm=intel asm alternative.
22178         (*movabs<mode>_2): Ditto for operand 1.
22180 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
22182         PR target/54663
22183         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
22184         of microblaze-c.o
22186 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
22188         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
22189         tm_file.
22191 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
22193         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
22194         Undef to avoid warning.
22196 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
22198         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
22199         * configure: Regenerate.
22201 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
22203         PR tree-optimization/56098
22204         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
22205         for stmts with volatile ops.
22206         (cond_store_replacement): Don't optimize if assign has volatile ops.
22207         (cond_if_else_store_replacement_1): Don't optimize if either
22208         then_assign or else_assign have volatile ops.
22209         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
22210         volatile ops.
22212 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
22214         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
22216 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
22218         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
22219         missing ':' in asm example.
22221 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
22223         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
22224         entries into lane and laneq entries.
22225         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
22226         Remove AdvSIMD scalar modes.
22227         (aarch64_sq<r>dmulh_laneq<mode>): New.
22228         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
22229         modes.
22230         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
22231         builtin implementations to relfect changes in RTL in aarch64-simd.md.
22232         * config/aarch64/iterators.md (VCOND): New.
22233         (VCONQ): New.
22235 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
22237         PR target/54222
22238         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
22239         Add NULL LIBNAME argument to existing definitions.
22240         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
22241         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
22242         * config/avr/avr.c (DEF_BUILTIN): Same.
22243         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
22244         (avr_expand_builtin): Expand to a vanilla call if a libgcc
22245         implementation is available (DECL_ASSEMBLER_NAME is set).
22246         (avr_fold_absfx): New static function.
22247         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
22248         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
22249         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
22250         AVR_BUILTIN_ABSLLK.
22251         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
22252         (abshk, absk, abslk, absllk): Provide as static inline functions.
22254 2013-01-25  Marek Polacek  <polacek@redhat.com>
22256         PR tree-optimization/56035
22257         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
22259 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
22261         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
22262         (*movtf_internal_rex64): Add (!o,C) alternative
22263         (*movxf_internal_rex64): Ditto.
22264         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
22266 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
22268         * doc/invoke.texi: fix typo.
22269         * doc/objc.texi: fix typo.
22271 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
22273         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
22274         for the first two alternatives.
22276 2013-01-24  Diego Novillo  <dnovillo@google.com>
22278         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
22279         (ggc-zone.o): Remove.
22280         * configure.ac: Remove option --with-gc.
22281         * configure: Re-generate.
22282         * doc/install.texi: Remove documentation for --with-gc.
22283         * gengtype.c (write_enum_defn): Remove.  Update all users.
22284         (write_Types_process_field): Remove generation of gt_e_* argument.
22285         (output_type_enum): Remove.  Update all users.
22286         (write_enum_defn): Remove.  Update all users.
22287         (enum alloc_zone): Remove.  Update all users.
22288         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
22289         * ggc-common.c (ggc_splay_alloc): Remove first argument.
22290         Update all callers.
22291         (struct ptr_data): Remove field TYPE.  Update all users.
22292         (gt_pch_note_object): Remove argument TYPE.  Update all users.
22293         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
22294         Update all users.
22295         * ggc-none.c (ggc_alloc_typed_stat): Remove.
22296         (struct alloc_zone): Remove.
22297         (ggc_internal_alloc_zone_stat): Remove.
22298         (ggc_internal_cleared_alloc_zone_stat): Remove.
22299         * ggc-page.c (ggc_alloc_typed_stat): Remove.
22300         (ggc_pch_count_object): Remove last argument.  Update all users.
22301         (ggc_pch_alloc_object): Remove last argument.  Update all users.
22302         (struct alloc_zone): Remove.
22303         * ggc-zone.c: Remove.
22304         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
22305         (struct alloc_zone): Remove.
22306         (ggc_alloc_typed_stat): Remove.
22307         (ggc_alloc_typed): Remove.
22308         (ggc_splay_alloc): Remove first argument.
22309         (rtl_zone): Remove.  Update all users.
22310         (tree_zone): Remove.  Update all users.
22311         (tree_id_zone): Remove.  Update all users.
22312         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
22313         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
22314         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
22315         * tree-ssanames.c: Remove references to zone allocator in comments.
22317 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
22319         * config/avr/avr.c (avr_out_fract): Make register numbers that
22320         might be outside of source operand signed.
22322 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
22324         * config/i386/constraints.md (Yf): New constraint.
22325         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
22326         of f constraint to conditionaly disable x87 register preferences.
22327         (*movdf_internal): Ditto.
22328         (*movsf_internal): Ditto.
22330 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
22332         PR inline-asm/55934
22333         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
22334         that have operands with impossible constraints.
22335         Add a FIXME for a speed-up opportunity.
22336         * lra-constraints.c (process_alt_operands): Verify that a class
22337         selected from constraints on asms is valid for the operand mode.
22338         (curr_insn_transform): Remove incorrect comment.
22340 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
22342         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
22343         TOC operand is a valid symbol ref in the constant pool.
22345 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
22347         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
22349 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
22351         PR target/54222
22352         * config/avr/stdfix.h: New file.
22353         * t-avr (stdfix-gcc.h): New rule to build it.
22354         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
22356 2013-01-23  Kostya Serebryany  <kcc@google.com>
22358         * config/darwin.h: remove dependency on
22359         CoreFoundation (asan on Mac OS).
22361 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
22363         PR target/49069
22364         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
22365         instead of cmpdi_operand for first comparison operand.
22366         Don't assert that comparison operands aren't both constants.
22368 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
22370         * doc/install.texi (Downloading the Source): Update references to
22371         downloading separate components.
22373 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
22375         * doc/extend.texi (__int128): Improve grammar.
22377 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
22379         PR target/56028
22380         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
22381         alternative to (o,r).
22382         (*movdi_internal_rex64): Remove (!o,n) alternative.
22383         (DImode immediate->memory splitter): Remove.
22384         (DImode immediate->memory peephole2): Remove.
22385         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
22386         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
22387         alternative to (!o,*r).
22388         (*movtf_internal_sse): New pattern.
22389         (*movxf_internal_rex64): New pattern.
22390         (*movxf_internal): Disable for TARGET_64BIT.
22391         (*movdf_internal_rex64): Remove (!o,F) alternative.
22393 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
22395         PR middle-end/56074
22396         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
22397         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
22398         * tree-vect-loop-manip.c (find_loop_location): Also ignore
22399         stmt locations where LOCATION_LOCUS of the stmt location is
22400         UNKNOWN_LOCATION or BUILTINS_LOCATION.
22402         PR target/55686
22403         * config/i386/i386.md (UNSPEC_STOS): New.
22404         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
22405         *strsetqi_1): Add UNSPEC_STOS.
22407 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
22409         PR c++/56067
22410         * doc/invoke.texi: Remove left over -Wsynth example.
22412 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
22414         PR tree-optimization/56051
22415         * fold-const.c (fold_binary_loc): Don't fold
22416         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
22417         a narrowing conversion, or widening conversion from signed
22418         to unsigned.
22420 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
22422         PR rtl-optimization/56023
22423         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
22424         dependent on debug instruction.
22426 2013-01-21  Martin Jambor  <mjambor@suse.cz>
22428         PR middle-end/56022
22429         * function.c (allocate_struct_function): Call
22430         invoke_set_current_function_hook earlier.
22432 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
22434         * reload1.c (init_reload): Only initialize reload_obstack
22435         during the first call.
22437 2013-01-21  Marek Polacek  <polacek@redhat.com>
22439         * cfgloop.c (verify_loop_structure): Fix up grammar.
22441 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
22443         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
22444         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
22446 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22448         PR target/56058
22449         * config/arm/marvell-pj4.md: Update copyright year.
22450         Fix up use of alu to alu_reg and simple_alu_imm.
22452 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
22454         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
22456 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
22458         PR target/55433
22459         * lra-constraints.c (curr_insn_transform): Don't reuse original
22460         insn for secondary memory move when memory mode should be different.
22462 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
22464         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
22465         atomic_storedi_1): New patterns.
22467 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
22469         btver2 pipeline descriptions.
22470         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
22471         descriptions.
22472         * config/i386/i386.md (btver2_decode): New type attributes.
22473         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
22474         type attributes.
22475         * config/i386/btver2.md: New file describing btver2 pipelines.
22477 2013-01-19  Andrew Pinski  <apinski@cavium.com>
22479         PR tree-optimization/52631
22480         * tree-ssa-sccvn (visit_use): Before looking up the original
22481         statement, try looking up the simplified expression.
22483 2013-01-19  Anthony Green  <green@moxielogic.com>
22485         * config/moxie/moxie.c (moxie_expand_prologue): Set
22486         current_function_static_stack_size.
22488 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
22490         PR tree-optimization/56029
22491         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
22492         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
22494 2013-01-18  Sharad Singhai  <singhai@google.com>
22496         PR tree-optimization/55995
22497         * dumpfile.c (dump_loc): Print location only if available.
22498         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
22500 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
22502         PR target/55433
22503         * lra-constraints.c (curr_insn_transform): Reuse original insn for
22504         secondary memory move.
22505         (inherit_reload_reg): Use rclass instead of cl for
22506         check_secondary_memory_needed_p.
22508 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
22510         PR middle-end/56015
22511         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
22512         the case where writing real complex part of target modifies op1.
22514 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
22516         * config/aarch64/aarch64-simd.md
22517         (aarch64_vcond_internal<mode>): Handle unordered cases.
22518         * config/aarch64/iterators.md (v_cmp_result): New.
22520 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
22521             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22523         * config/arm/marvell-pj4.md: New file.
22524         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
22525         * config/arm/arm.md (generic_sched): Add marvell_pj4.
22526         (generic_vfp): Likewise.
22527         * config/arm/arm-cores.def: Add marvell-pj4.
22528         * config/arm/arm-tune.md: Regenerate.
22529         * config/arm/arm-tables.opt: Regenerate.
22530         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
22531         * doc/invoke.texi: Document marvell-pj4.
22533 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
22535         * config/aarch64/arm_neon.h: Map scalar types to standard types.
22537 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
22539         PR debug/54114
22540         PR debug/54402
22541         PR debug/49888
22542         * var-tracking.c (negative_power_of_two_p): New.
22543         (global_get_addr_cache, local_get_addr_cache): New.
22544         (get_addr_from_global_cache, get_addr_from_local_cache): New.
22545         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
22546         heading comment.
22547         (vt_stack_offset_p): Remove.
22548         (vt_canon_true_dep): Always canonicalize loc's address.
22549         (clobber_overlapping_mems): Make sure we have a MEM.
22550         (local_get_addr_clear_given_value): New.
22551         (val_reset): Clear local cached entries.
22552         (compute_bb_dataflow): Create and release the local cache.
22553         Disable duplicate MEMs clobbering.
22554         (emit_notes_in_bb): Clobber MEMs likewise.
22555         (vt_emit_notes): Create and release the local cache.
22556         (vt_initialize, vt_finalize): Create and release the global
22557         cache, respectively.
22558         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
22560 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
22562         PR libmudflap/53359
22563         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
22564         not found in the symtab.
22566 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
22568         PR debug/56006
22569         PR rtl-optimization/55547
22570         PR rtl-optimization/53827
22571         PR debug/53671
22572         PR debug/49888
22573         * alias.c (offset_overlap_p): New, factored out of...
22574         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
22575         the conservative special case for symbolic constants.  Don't
22576         adjust zero sizes on alignment.
22578 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
22580         PR rtl-optimization/52573
22581         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
22582         REG_UNUSED for the same register.
22584 2013-01-17  Richard Biener  <rguenther@suse.de>
22585             Marek Polacek  <polacek@redhat.com>
22587         PR rtl-optimization/55833
22588         * loop-unswitch.c (unswitch_loops): Move loop verification...
22589         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
22590         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
22591         Set it to true when we're removing a loop from hierarchy tree in
22592         an irreducible region.
22593         (fix_bb_placements): Adjust caller.
22594         (fix_loop_placements): Likewise.
22596 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
22598         * config/avr/builtins.def (DEF_BUILTIN): Factor out
22599         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
22600         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
22601         Remove ID.  Adjust comments.
22602         * config/avr/avr-c.c (avr_builtin_name): Remove.
22603         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
22604         * config/avr/avr.c (avr_tolower): New static function.
22605         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
22606         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
22607         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
22608         default expansion.
22610 2013-01-17  Jan Hubicka  <jh@suse.cz>
22612         PR tree-optimization/55273
22613         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
22615 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
22617         PR target/55981
22618         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
22619         store through atomic_store<mode>_1.
22620         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
22622 2013-01-17  Martin Jambor  <mjambor@suse.cz>
22624         PR tree-optimizations/55264
22625         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
22626         for virtual methods.
22627         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
22628         virtual methods before inlining is over.
22629         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
22630         virtual functions.
22631         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
22632         non-virtual.
22634 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
22636         PR rtl-optimization/56005
22637         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
22638         pending reads for prefetch.
22640 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
22642         * config/aarch64/aarch64.md
22643         (*cstoresi_neg_uxtw): New pattern.
22644         (*cmovsi_insn_uxtw): New pattern.
22645         (*<optab>si3_uxtw): New pattern.
22646         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
22647         (*<optab>si3_insn_uxtw): New pattern.
22648         (*bswapsi2_uxtw): New pattern.
22650 2013-01-16  Richard Biener  <rguenther@suse.de>
22652         * tree-inline.c (tree_function_versioning): Remove set but
22653         never used variable.
22655 2013-01-16  Richard Biener  <rguenther@suse.de>
22657         PR tree-optimization/55964
22658         * tree-flow.h (rename_variables_in_loop): Remove.
22659         (rename_variables_in_bb): Likewise.
22660         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
22661         (copy_loop_before): Adjust and delete update-ssa status.
22662         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
22663         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
22664         (rename_variables_in_loop): Remove.
22665         (slpeel_update_phis_for_duplicate_loop): Likewise.
22666         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
22667         use available cfg machinery instead of duplicating it.
22668         Update PHI nodes and perform poor-mans SSA update here.
22669         (slpeel_tree_peel_loop_to_edge): Adjust.
22671 2013-01-16  Richard Biener  <rguenther@suse.de>
22673         PR tree-optimization/54767
22674         PR tree-optimization/53465
22675         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
22676         (vrp_visit_phi_node): For PHI arguments coming via backedges
22677         drop all symbolical range information.
22678         (execute_vrp): Compute backedges.
22680 2013-01-16  Richard Biener  <rguenther@suse.de>
22682         * doc/install.texi: Update CLooG and ISL requirements to
22683         0.18.0 and 0.11.1.
22685 2013-01-16  Christian Bruel  <christian.bruel@st.com>
22687         PR target/55301
22688         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
22689         (broken_move): Handle UNSPECV_SP_SWITCH_B.
22690         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
22692 2013-01-16  DJ Delorie  <dj@redhat.com>
22694         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
22695         (UNSPECV_SP_SWITCH_E): New.
22696         (sp_switch_1): Change to an unspec.
22697         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
22698         replace $r15.
22700 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
22702         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
22703         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
22704         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
22705         (expand_mem_thread_fence): Ditto.
22706         (expand_mem_signal_fence): Ditto.
22707         (expand_atomic_load): Ditto.
22708         (expand_atomic_store): Ditto.
22710 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
22712         PR rtl-optimization/55547
22713         PR rtl-optimization/53827
22714         PR debug/53671
22715         PR debug/49888
22716         * alias.c (memrefs_conflict_p): Set sizes to negative after
22717         AND adjustments.
22719 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
22721         PR target/55940
22722         * function.c (thread_prologue_and_epilogue_insns): Always
22723         add crtl->drap_reg to set_up_by_prologue.set, even if
22724         stack_realign_drap is false.
22726 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
22728         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
22729         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
22730         *call): Fix indention.
22732 2013-01-15  Tom de Vries  <tom@codesourcery.com>
22734         PR target/55876
22735         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
22736         Update comment.
22738 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
22740         PR rtl-optimization/55153
22741         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
22743 2013-01-15  Martin Jambor  <mjambor@suse.cz>
22745         PR tree-optimization/55920
22746         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
22747         accesses as grp_to_be_debug_replaced.
22749 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
22751         PR tree-optimization/55920
22752         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
22753         there is non-useless type conversion needed from debug rhs to lhs,
22754         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
22756 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
22757             Mikael Pettersson  <mikpe@it.uu.se>
22759         PR target/43961
22760         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
22761         Thumb.
22762         (ASM_OUTPUT_CASE_LABEL): Remove.
22763         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
22764         * final.c (shorten_branches): Update alignment of labels before
22765         jump tables if CASE_VECTOR_SHORTEN_MODE.
22767 2013-01-15  Richard Biener  <rguenther@suse.de>
22769         PR bootstrap/55961
22770         * system.h: Do not include gmp.h for building host tools.
22772 2013-01-15  Richard Biener  <rguenther@suse.de>
22774         PR middle-end/55882
22775         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
22776         account for bitpos when computing alignment.
22778 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
22780         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
22781         (ix86_target_macros_internal): Likewise.
22783         * config/i386/i386.c (m_CORE2I7): Removed.
22784         (m_CORE_HASWELL): New macro.
22785         (m_CORE_ALL): Likewise.
22786         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
22787         (initial_ix86_arch_features): Likewise.
22788         (processor_target_table): Initializations for Core avx2.
22789         (cpu_names): New names "core-avx2".
22790         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
22791         PROCESSOR_CORE_HASWELL.
22792         (ix86_issue_rate): New case.
22793         (ia32_multipass_dfa_lookahead): Likewise.
22794         (ix86_sched_init_global): Likewise.
22796         * config/i386/i386.h (TARGET_HASWELL): New macro.
22797         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
22798         (processor_type): New PROCESSOR_HASWELL.
22800 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
22802         PR tree-optimization/55955
22803         * tree-vect-loop.c (vectorizable_reduction): Give up early on
22804         *SHIFT_EXPR and *ROTATE_EXPR codes.
22806         PR tree-optimization/48766
22807         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
22808         -ftrapv disable -fwrapv.
22810 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
22812         PR target/55974
22813         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
22814         etc. to 1 and not to __flash.
22815         Use LL suffix for __INT24_MAX__ with -mint8.
22816         Use ULL suffix for __UINT24_MAX__ with -mint8.
22818 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
22820         * config/avr/avr-arch.h
22821         (struct base_arch_s): Use typedef avr_arch_t instead.
22822         (struct arch_info_s): Use typedef avr_arch_info_t instead.
22823         (struct mcu_type_s): Use typedef avr_mcu_t instead.
22824         * config/avr/avr.c: Same.
22825         * config/avr/avr-devices.c: Same.
22826         * config/avr/driver-avr.c: Same.
22827         * config/avr/gen-avr-mmcu-texi.c: Same.
22828         * config/avr/avr-mcus.def: Adjust comment.
22830 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
22832         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
22833         * config/aarch64/iterators.md (VALLDI): New.
22835 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
22836             Andi Kleen  <ak@linux.intel.com>
22838         PR target/55948
22839         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
22840         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
22841         memmodel flag.
22843 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
22845         * config/avr/avr-stdint.h: Remove trailing blanks.
22846         * config/avr/avr-log.h: Same.
22847         * config/avr/avr-arch.h: Same.
22848         * config/avr/avr-devices.c: Same.
22849         * config/avr/avr-dimode.md: Same.
22850         * config/avr/predicates.md: Same.
22851         * config/avr/avr-c.c: Same.  And fix typo.
22853         * config/avr/avr-protos.h: Same.  And:
22854         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
22855         (init_cumulative_args): Rename to avr_init_cumulative_args.
22856         (expand_prologue): Rename to avr_expand_prologue.
22857         (expand_epilogue): Rename to avr_expand_epilogue.
22858         (adjust_insn_length): Rename to avr_adjust_insn_length.
22859         (notice_update_cc): Rename to avr_notice_update_cc.
22860         (final_prescan_insn): Rename to avr_final_prescan_insn.
22861         * config/avr/avr.c: Same.
22862         * config/avr/avr.h: Same.
22863         * config/avr/avr.md: Remove trailing blanks.
22864         (prologue): Use avr_expand_prologue.
22865         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
22867 2013-01-14  Richard Biener  <rguenther@suse.de>
22869         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
22870         verify_location, collect_subblocks): New functions.
22871         (verify_gimple_in_cfg): Verify that locations only reference
22872         BLOCKs in the functions BLOCK tree.
22874 2013-01-14  Richard Biener  <rguenther@suse.de>
22876         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
22877         PHI argument.
22878         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
22879         unshare reference.
22880         (insert_out_of_ssa_copy_on_edge): Likewise.
22881         (rewrite_close_phi_out_of_ssa): Likewise.
22882         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
22883         debug expressions.
22884         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
22885         propagated constants.
22886         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
22887         can not be shared.
22889 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
22891         * config/avr/avr-modes.def: Add GPL copyright notice.
22893 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
22895         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
22896         MEMMODEL_MASK to determine memory model.
22897         (atomic_store<mode>): Ditto from operands[2].
22898         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
22900 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
22902         PR fortran/55935
22903         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
22904         (fold_gimple_assign): Don't call unshare_expr here.
22905         (fold_ctor_reference): Call unshare_expr.
22907 2013-01-13  Terry Guo  <terry.guo@arm.com>
22909         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
22910         * doc/fragments.texi: Document MULTILIB_REUSE.
22911         * gcc.c (multilib_reuse): New internal spec.
22912         (set_multilib_dir): Also search multilib from multilib_reuse.
22913         * genmultilib (tmpmultilib3): Refactor code.
22914         (tmpmultilib4): Ditto.
22915         (multilib_reuse): New multilib argument.
22917 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
22919         * Makefile.in: Update copyright.
22921 2013-01-12  Tom de Vries  <tom@codesourcery.com>
22923         PR middle-end/55890
22924         * calls.c (expand_call): Check if arg_nr is valid.
22926 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
22928         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
22929         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
22930         documentation.  Add missing '__' in front of
22931         __builtin_ia32_packssdw256.
22933 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22935         PR target/55719
22936         * config/s390/s390.c (s390_preferred_reload_class): Do not return
22937         NO_REGS for larl operands.
22938         (s390_reload_larl_operand): Use s390_load_address instead of
22939         emit_move_insn.
22941 2013-01-11  Richard Biener  <rguenther@suse.de>
22943         * tree-cfg.c (verify_node_sharing_1): Split out from ...
22944         (verify_node_sharing): ... here.
22945         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
22947 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
22949         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
22950         Substitute TREECHECKING.
22951         * configure: Regenerate.
22952         * Makefile.in (TREECHECKING): New.
22954 2013-01-11  Richard Guenther  <rguenther@suse.de>
22956         PR tree-optimization/44061
22957         * tree-vrp.c (extract_range_basic): Compute zero as
22958         value-range for __builtin_constant_p of function parameters.
22960 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
22962         Update copyright years.
22964 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
22966         PR rtl-optimization/55672
22967         * lra-eliminations.c (mark_not_eliminable): Permit addition with
22968         const to be eliminable.
22970 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
22972         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
22973         * configure: Regenerate.
22975 2013-01-10  Richard Biener  <rguenther@suse.de>
22977         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
22979 2013-01-10  Richard Biener  <rguenther@suse.de>
22981         PR bootstrap/55792
22982         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
22983         locations for virtual PHI arguments.
22984         (rewrite_update_phi_arguments): Likewise.
22986 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
22988         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
22989         on to assembler.
22991 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
22993         PR tree-optimization/55921
22994         * tree-complex.c (expand_complex_asm): New function.
22995         (expand_complex_operations_1): Call it for GIMPLE_ASM.
22997 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22999         PR target/55718
23000         * config/s390/s390.c (s390_symref_operand_p)
23001         (s390_loadrelative_operand_p): Merge the two functions.
23002         (s390_check_qrst_address, print_operand_address): Add parameters
23003         to s390_loadrelative_operand_p invokation.
23004         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
23005         (s390_reload_larl_operand, s390_secondary_reload): Use
23006         s390_loadrelative_operand_p instead of s390_symref_operand_p.
23007         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
23009 2013-01-09  Mike Stump  <mikestump@comcast.net>
23011         * dse.c (record_store): Remove unnecessary assert.
23013 2013-01-09  Jan Hubicka  <jh@suse.cz>
23015         PR tree-optimization/55569
23016         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
23017         * cfgloop.h (scale_loop_profile): Likewise.
23019 2013-01-09  Jan Hubicka  <jh@suse.cz>
23021         PR lto/45375
23022         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
23023         functions.
23024         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
23026 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
23028         PR middle-end/55114
23029         * expr.h (maybe_emit_group_store): Declare.
23030         * expr.c (maybe_emit_group_store): New function.
23031         * builtins.c (expand_builtin_int_roundingfn): Call it.
23032         (expand_builtin_int_roundingfn_2): Likewise.
23034 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
23036         PR rtl-optimization/55829
23037         * lra-constraints.c (match_reload): Add code for absent output.
23038         (curr_insn_transform): Add code for reloads of matched inputs
23039         without output.
23041 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
23043         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
23044         attribute of movddup insn to DF.
23045         (*vec_interleave_lowv2df): Ditto.
23046         (vec_dupv2df): Ditto.
23048 2013-01-09  Jan Hubicka  <jh@suse.cz>
23050         PR tree-optimiation/55875
23051         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
23052         EVERY_ITERATION parameter.
23053         (number_of_iterations_exit): Check if exit is executed every iteration.
23054         (idx_infer_loop_bounds): Similarly here.
23055         (n_of_executions_at_most): Simplify
23056         to only test for cases where statement is dominated by the
23057         particular bound; handle correctly the "postdominance" test.
23058         (scev_probably_wraps_p): Use max loop iterations info
23059         as a global bound first.
23061 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
23062             Nick Clifton  <nickc@redhat.com>
23064         * config/v850/v850.md (cbranchsf4): New pattern.
23065         (cstoresf4): New pattern.
23066         (cbranchdf4): New pattern.
23067         (cstoredf4): New pattern.
23068         (movsicc): Disallow floating point comparisons.
23069         (cmpsf_le_insn): Fix order of operators.
23070         (cmpsf_lt_insn): Likewise.
23071         (cmpsf_eq_insn): Likewise.
23072         (cmpdf_le_insn): Likewise.
23073         (cmpdf_lt_insn): Likewise.
23074         (cmpdf_eq_insn): Likewise.
23075         (cmpsf_ge_insn): Use LE comparison.
23076         (cmpdf_ge_insn): Likewise.
23077         (cmpsf_gt_insn): Use LT comparison.
23078         (cmpdf_gt_insn): Likewise.
23079         (cmpsf_ne_insn): Delete pattern.
23080         (cmpdf_ne_insn): Delete pattern.
23081         * config/v850/v850.c (v850_gen_float_compare): Use
23082         gen_cmpdf_eq_insn for NE comparison.
23083         (v850_float_z_comparison_operator)
23084         (v850_float_nz_comparison_operator): Move from here ...
23085         * config/v850/predicates.md: ... to here.  Move GT and GE
23086         comparisons into v850_float_z_comparison_operator.
23087         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
23088         Delete prototype.
23089         (v850_float_nz_comparison_operator): Likewise.
23091 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23093         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
23094         with calls to gen_insvsi/gen_insvdi.
23096 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
23098         * config/i386/i386.c (initial_ix86_tune_features): Set up
23099         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
23101 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
23102             Jakub Jelinek  <jakub@redhat.com>
23104         PR tree-optimization/48189
23105         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
23106         If nitercst is 0, don't predict the exit edge.
23108 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
23110         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
23111         in asm_fprintf with reg_names.
23112         (aarch64_print_operand_address): Likewise.
23113         (aarch64_return_addr): Likewise.
23114         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
23116 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23118         * config/pa/pa.h (VAL_U6_BITS_P): Define.
23119         (INT_U6_BITS): Likewise.
23120         * config/pa/predicates.md (uint6_operand): New predicate.
23121         (shift5_operand, shift6_operand): Likewise.
23122         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
23123         arith32_operand.
23124         (lshrdi3): Use shift6_operand.
23125         (shrpsi4, shrpdi4): New insn patterns.
23126         (extzv): Delete expander.
23127         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
23128         predicates in unamed zero extract patterns.  Tighten common constraint.
23129         (extv): Delete expander.
23130         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
23131         predicates in unamed sign extract patterns.  Tighten common constraint.
23132         (insv): Delete expander.
23133         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
23134         predicates in unamed insert patterns.  Tighten common constraint.
23135         Change uint32_operand predicate to uint6_operand predicate in unamed
23136         DImode pattern to insert constant values of type 1...1xxxx.
23138 2013-01-04  Jan Hubicka  <jh@suse.cz>
23140         PR tree-optimization/55823
23141         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
23142         issue.
23144 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
23145             Uros Bizjak  <ubizjak@gmail.com>
23147         PR rtl-optimization/55845
23148         * df-problems.c (can_move_insns_across): Stop scanning at
23149         volatile_insn_p source instruction or give up if
23150         across_from .. across_to range contains any volatile_insn_p
23151         instructions.
23153 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
23155         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
23156         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
23157         Declare.
23158         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
23159         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
23161 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
23163         PR fortran/55341
23164         * asan.c (asan_clear_shadow): New function.
23165         (asan_emit_stack_protection): Use it.
23167 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
23169         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
23170         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
23171         with tab instead of space.
23173 2013-01-08  Nick Clifton  <nickc@redhat.com>
23175         * config/rl78/rl78.c (rl78_expand_prologue): Always select
23176         register bank 0 at the start of an interrupt handler.
23177         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
23178         MDBH registers.
23180 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
23182         * config/aarch64/aarch64-simd.md
23183         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
23184         (aarch64_simd_bsl): Likewise.
23185         (aarch64_vcond_internal<mode>): Likewise.
23186         (vcond<mode><mode>): Likewise.
23187         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
23188         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
23190 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
23192         * config/aarch64/aarch64-builtins.c
23193         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
23195 2013-01-08  Martin Jambor  <mjambor@suse.cz>
23197         PR debug/55579
23198         * tree-sra.c (analyze_access_subtree): Return true also after
23199         potentially creating a debug-only replacement.
23201 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
23203         PR middle-end/55890
23204         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
23206         PR tree-optimization/54120
23207         * tree-vrp.c (range_fits_type_p): Don't allow
23208         src_precision < precision from signed vr to unsigned_p
23209         if vr->min or vr->max is negative.
23210         (simplify_float_conversion_using_ranges): Test can_float_p
23211         against CODE_FOR_nothing.
23213 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
23214             Richard Biener  <rguenther@suse.de>
23216         PR middle-end/55851
23217         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
23218         types instead of just INTEGER_TYPE types.
23220 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
23222         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
23223         TF_SIZE): Define.
23225 2013-01-07  Steve Ellcey  <sellcey@mips.com>
23227         PR target/42661
23228         * config/mips/mips.opt: Change mad to mmad to match documentation.
23230 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
23232         PR target/55897
23233         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
23234         .progmemx.data now.
23236 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
23238         PR target/55897
23239         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
23240         (avr_addrspace_t): Add .section_name field.
23241         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
23242         array size.
23243         (avr_addrspace): Same.  Initialize .section_name.  Remove last
23244         NULL entry.  Put __memx into .progmemx.data.
23245         (progmem_section_prefix): Remove.
23246         (avr_asm_init_sections): No need to initialize progmem_section.
23247         (avr_asm_named_section): Use avr_addrspace[].section_name to get
23248         section name prefix.
23249         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
23250         retrieve the progmem section.
23251         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
23252         boundary to run over avr_addrspace[].
23253         (avr_register_target_pragmas): Ditto.
23255 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
23257         * varasm.c (output_constant_def_contents): For asan_protect_global
23258         protected strings, adjust DECL_ALIGN if needed, before testing for
23259         anchored symbols.
23260         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
23261         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
23262         normal decls.
23263         (output_object_block): For asan protected decls, emit asan padding
23264         after their contents.
23265         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
23266         (asan_finish_file): Test it here instead.
23268 2013-01-07  Nick Clifton  <nickc@redhat.com>
23269             Matthias Klose  <doko@debian.org>
23270             Doug Kwan  <dougkwan@google.com>
23271             H.J. Lu  <hongjiu.lu@intel.com>
23273         PR driver/55470
23274         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
23276         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
23278         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
23280         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
23282         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
23284 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
23286         PR target/54461
23287         * doc/install.texi (Cross-Compiler-Specific Options): Document
23288         --with-avrlibc.
23290 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
23292         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
23293         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
23294         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
23295         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
23296         vqmovun_high_s64): Fix source operand number and update copyright.
23298 2013-01-07  Richard Biener  <rguenther@suse.de>
23300         PR middle-end/55890
23301         * gimple.h (gimple_call_builtin_p): New overload.
23302         * gimple.c (validate_call): New function.
23303         (gimple_call_builtin_p): Likewise.
23304         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23305         Use gimple_call_builtin_p.
23306         (find_func_clobbers): Likewise.
23307         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
23308         (strlen_optimize_stmt): Likewise.
23310 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
23312         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
23313         (vld1q_dup_*): Likewise.
23314         (vld1_*): Likewise.
23315         (vld1q_*): Likewise.
23316         (vld1_lane_*): Likewise.
23317         (vld1q_lane_*): Likewise.
23319 2013-01-07  Richard Biener  <rguenther@suse.de>
23321         * lto-streamer.h (LTO_minor_version): Bump to 2.
23323 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
23325         * config/aarch64/aarch64-protos.h
23326         (aarch64_const_double_zero_rtx_p): Rename to...
23327         (aarch64_float_const_zero_rtx_p): ...this.
23328         (aarch64_float_const_representable_p): New.
23329         (aarch64_output_simd_mov_immediate): Likewise.
23330         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
23331         move immediate case.
23332         * config/aarch64/aarch64.c
23333         (aarch64_const_double_zero_rtx_p): Rename to...
23334         (aarch64_float_const_zero_rtx_p): ...this.
23335         (aarch64_print_operand): Allow printing of new constants.
23336         (aarch64_valid_floating_const): New.
23337         (aarch64_legitimate_constant_p): Check for valid floating-point
23338         constants.
23339         (aarch64_simd_valid_immediate): Likewise.
23340         (aarch64_vect_float_const_representable_p): New.
23341         (aarch64_float_const_representable_p): Likewise.
23342         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
23343         (aarch64_output_simd_mov_immediate): New.
23344         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
23345         (*movdf_aarch64): Likewise.
23346         * config/aarch64/constraints.md (Ufc): New.
23347         (Y): call aarch64_float_const_zero_rtx.
23348         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
23350 2013-01-07  Richard Biener  <rguenther@suse.de>
23352         PR tree-optimization/55888
23353         PR tree-optimization/55862
23354         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
23355         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
23356         not if it is contained therein.
23358 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
23360         * config/avr/t-avr: Typo.
23362 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
23364         PR55243
23365         * config/avr/t-avr: Don't automatically rebuild
23366         $(srcdir)/config/avr/t-multilib
23367         $(srcdir)/config/avr/avr-tables.opt
23368         $(srcdir)/doc/avr-mmcu.texi
23369         (avr-mcus): New phony target to build them on request.
23370         (s-avr-mlib, s-avr-mmcu-texi): Remove.
23371         * avr/avr-mcus.def: Adjust comments.
23373 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
23375         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
23377 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
23379         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
23381 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
23383         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
23385 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
23387         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
23388         to generate profiling.
23389         * config/rs6000/aix64.h (LIB_SPEC): Same.
23391 2013-01-04  Andrew Pinski  <apinski@cavium.com>
23393         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
23394         New function.
23395         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
23397 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
23399         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
23400         unconditionally.
23401         (ix86_expand_move): Ditto.
23402         (ix86_zero_extend_to_Pmode): Ditto.
23403         (ix86_expand_call): Ditto.
23404         (ix86_expand_special_args_builtin): Ditto.
23405         (ix86_expand_builtin): Ditto.
23407 2013-01-04  Richard Biener  <rguenther@suse.de>
23409         PR tree-optimization/55862
23410         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
23411         translating them through PHI nodes.
23413 2013-01-04  Martin Jambor  <mjambor@suse.cz>
23415         PR tree-optimization/55755
23416         * tree-sra.c (sra_modify_assign): Do not check that an access has no
23417         children when trying to avoid producing a VIEW_CONVERT_EXPR.
23419 2013-01-04  Marek Polacek  <polacek@redhat.com>
23421         PR middle-end/55859
23422         * opts.c (default_options_optimization): Clarify error message.
23424 2013-01-04  Richard Biener  <rguenther@suse.de>
23426         PR middle-end/55863
23427         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
23428         reassociation.
23430 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23432         PR target/53789
23433         * config/pa/pa.md (movsi): Revert previous change.
23434         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
23435         references.
23437 2013-01-03  Richard Henderson  <rth@redhat.com>
23439         * config/i386/i386.c (ix86_expand_move): Always assign to op1
23440         after eliminating TLS symbols.
23442 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
23444         PR bootstrap/50167
23445         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
23446         * graphite-poly.c (debug_gmp_value): Likewise.
23448 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
23450         PR target/55712
23451         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
23452         selected code model, define __code_mode_small__, __code_model_medium__,
23453         __code_model_large__, __code_model_32__ or __code_model_kernel__.
23454         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
23455         xchg temporary register with %k.  Declare temporary register as
23456         early clobbered.
23457         [__x86_64__]: For medium and large code models, preserve %rbx register.
23459 2013-01-03  Richard Biener  <rguenther@suse.de>
23461         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
23462         (dump_subscript): Adjust.
23463         (finalize_ddr_dependent): Do not dump redundant info.
23464         (analyze_siv_subscript): Adjust.
23465         (subscript_dependence_tester): Likewise.
23466         (compute_affine_dependence): Likewise.
23468 2013-01-03  Richard Biener  <rguenther@suse.de>
23470         Revert
23471         2013-01-03  Richard Biener  <rguenther@suse.de>
23473         PR tree-optimization/55857
23474         * tree-vect-stmts.c (vectorizable_load): Do not setup
23475         re-alignment for invariant loads.
23477         2013-01-02  Richard Biener  <rguenther@suse.de>
23479         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
23480         invariant load do not generate a vector load from the scalar location.
23482 2013-01-03  Richard Biener  <rguenther@suse.de>
23484         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
23485         for not vectorizing.
23486         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
23487         not build INDIRECT_REFs, call get_name once only.
23488         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
23489         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
23491 2013-01-03  Richard Biener  <rguenther@suse.de>
23493         PR tree-optimization/55857
23494         * tree-vect-stmts.c (vectorizable_load): Do not setup
23495         re-alignment for invariant loads.
23497 2013-01-03  Richard Biener  <rguenther@suse.de>
23499         PR lto/55848
23500         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
23501         prefer a built-in decl.
23503 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
23505         * gcc.c (process_command): Update copyright notice dates.
23506         * gcov.c (print_version): Likewise.
23507         * gcov-dump.c (print_version): Likewise.
23509         PR rtl-optimization/55838
23510         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
23511         iv0.step, iv1.step and step.
23513 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
23514             Marc Glisse  <marc.glisse@inria.fr>
23516         PR tree-optimization/55832
23517         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
23518         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
23519         integer_{one,zero}_node.
23521 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
23523         PR debug/54402
23524         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
23525         * var-tracking.c (reverse_op): Don't add reverse ops to
23526         VALUEs that have already
23527         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
23529 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
23531         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
23533 2013-01-02  Teresa Johnson  <tejohnson@google.com>
23535         * dumpfile.c (dump_loc): Print filename with location.
23536         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
23537         new location_t parameter to emit complete unroll message with
23538         new dump framework.
23539         (canonicalize_loop_induction_variables): Compute loops location
23540         and pass to try_unroll_loop_completely.
23541         * loop-unroll.c (report_unroll_peel): New function.
23542         (peel_loops_completely): Use new dump format with location
23543         for main dumpfile message, and invoke report_unroll_peel on success.
23544         (decide_unrolling_and_peeling): Ditto.
23545         (decide_peel_once_rolling): Remove old dumpfile message subsumed
23546         by report_unroll_peel.
23547         (decide_peel_completely): Ditto.
23548         (decide_unroll_constant_iterations): Ditto.
23549         (decide_unroll_runtime_iterations): Ditto.
23550         (decide_peel_simple): Ditto.
23551         (decide_unroll_stupid): Ditto.
23552         * cfgloop.c (get_loop_location): New function.
23553         * cfgloop.h (get_loop_location): Declare.
23555 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
23557         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
23558         NULL.
23560 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23562         PR middle-end/55198
23563         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
23564         BLKmode objects when EXPAND_MEMORY is specified.
23566 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
23568         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
23569         in loop predicate.
23570         (fold_builtin_cpu): Do not share cpu model decls across statements.
23572 2013-01-02  Jason Merrill  <jason@redhat.com>
23574         PR c++/55804
23575         * tree.c (build_array_type_1): Revert earlier change.
23577 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
23579         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
23580         "cortex-a57".
23581         * config/aarch64/aarch64-tune.md: Re-generate.
23583 2013-01-02  Richard Biener  <rguenther@suse.de>
23585         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
23586         invariant load do not generate a vector load from the scalar location.
23588 2013-01-02  Richard Biener  <rguenther@suse.de>
23590         PR bootstrap/55784
23591         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
23592         * configure: Regenerate.
23594 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
23596         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
23597         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
23598         (expand_builtin_int_roundingfn_2): Keep the original target around
23599         for the fallback case.
23601 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
23603         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
23604         to be clear for sign changes.
23606 2013-01-01  Jan Hubicka  <jh@suse.cz>
23608         * ipa-inline-analysis.c: Fix formatting.
23610 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
23612         PR tree-optimization/55831
23613         * tree-vect-loop.c (get_initial_def_for_induction): Use
23614         gsi_after_labels instead of gsi_start_bb.
23616 Copyright (C) 2013 Free Software Foundation, Inc.
23618 Copying and distribution of this file, with or without modification,
23619 are permitted in any medium without royalty provided the copyright
23620 notice and this notice are preserved.