f00cb045ab2f72d1abc8f1b3a02acbb9f1b21db7
[gcc.git] / gcc / ChangeLog
1 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
2
3 * gcc/target.def (TARGET_HAS_IFUNC_P): New target hook.
4 * gcc/doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
5 * gcc/doc/tm.texi: Regenerate.
6 * gcc/targhooks.h (default_has_ifunc_p): New.
7 * gcc/targhooks.c (default_has_ifunc_p): Ditto.
8 * gcc/config/linux-protos.h: New file.
9 * gcc/config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
10 this hook for linux which disables support of indirect functions in
11 android.
12 * gcc/config/linux-android.c: New file.
13 * gcc/config/t-linux-android.c: Ditto.
14 * gcc/config.gcc: Added new object file linux-android.o.
15 * gcc/config/i386/i386.c (ix86_get_function_versions_dispatcher):
16 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
17 * gcc/varasm.c (do_assemble_alias): Likewise.
18 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
19 doesn't support indirect functions.
20 * configure: Regenerate.
21
22 2013-03-27 Bin Cheng <bin.cheng@arm.com>
23
24 PR target/56102
25 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
26 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
27 mult-word mode.
28
29 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30
31 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
32
33 2013-03-27 Terry Guo <terry.guo@arm.com>
34
35 * config/arm/arm-cores.def: Added core cortex-r7.
36 * config/arm/arm-tune.md: Regenerated.
37 * config/arm/arm-tables.opt: Regenerated.
38 * doc/invoke.texi: Added entry for core cortex-r7.
39
40 2013-03-27 Walter Lee <walt@tilera.com>
41
42 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
43 double-decrement of next_scratch_regno.
44
45 2013-03-27 Walter Lee <walt@tilera.com>
46
47 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
48 input operands.
49 (insn_v1mulus): Ditto.
50 (insn_v2muls): Ditto.
51
52 2013-03-27 Walter Lee <walt@tilera.com>
53
54 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete
55 extra tab.
56 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
57
58 2013-03-27 Walter Lee <walt@tilera.com>
59
60 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute
61 for jr.
62 (*sibcall_value): Ditto.
63
64 2013-03-27 Walter Lee <walt@tilera.com>
65
66 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
67 (insn_mnz_v8qi): ... this ...
68 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
69 vector equivalent.
70 (insn_v<n>mnz): Replaced by ...
71 (insn_v1mnz): ... this ...
72 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
73 equivalent.
74 (insn_mz_<mode>): Replaced by ...
75 (insn_mz_v8qi): ... this ...
76 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
77 vector equivalent.
78 (insn_v<n>mz): Replaced by ...
79 (insn_v1mz): ... this ...
80 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
81 equivalent.
82
83 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
84
85 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
86
87 2013-03-26 Roland McGrath <mcgrathr@google.com>
88
89 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
90 than fprintf with a non-constant, non-format string.
91
92 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
93
94 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
95 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
96 operand 0 predicate.
97 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
98 attribute. Use general_x64nomem_operand as operand 1 predicate.
99 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
100 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
101 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
102 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
103 (mov<mode>_insv_1): Remove expander. Merge insn with
104 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
105 Use general_x64nomem_operand as operand 1 predicate.
106 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
107 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
108 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
109 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
110 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
111 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
112 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
113 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
114 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
115 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
116 (general_x64nomem_operand): Ditto.
117
118 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
119
120 * config/rtems.opt: Add -pthread option.
121
122 2013-03-26 Richard Biener <rguenther@suse.de>
123
124 * alias.c (find_base_term): Avoid redundant and not used recursion.
125 (base_alias_check): Get the initial base term from the caller.
126 (true_dependence_1): Compute and pass base terms to base_alias_check.
127 (write_dependence_p): Likewise.
128 (may_alias_p): Likewise.
129
130 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
131
132 * config/aarch64/aarch64.c (aarch64_classify_address): Support
133 PC-relative load in SI modes and above only.
134
135 2013-03-26 Xinyu Qi <xyqi@marvell.com>
136
137 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
138 * config/arm/iwmmxt.md (WCGR0): Update.
139 (WCGR1, WCGR2, WCGR3): Likewise.
140
141 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
142
143 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
144 Use x64 and nox64 isa attributes.
145
146 2013-03-26 Richard Biener <rguenther@suse.de>
147
148 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
149 alignment computations and rely on get_object_alignment_1
150 for the !TYPE_P case.
151 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
152
153 2013-03-26 Walter Lee <walt@tilera.com>
154
155 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
156 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
157
158 2013-03-25 Jeff Law <law@redhat.com>
159 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
160 check for INTEGRAL_TYPE_P that was missing due to checking in
161 wrong version of prior patch.
162
163 2013-03-25 Walter Lee <walt@tilera.com>
164
165 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
166 TILEGX_INSN_SHUFFLEBYTES1.
167 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
168 shufflebytes1.
169 (tilegx_builtins): Ditto.
170 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
171
172 2013-03-25 Walter Lee <walt@tilera.com>
173
174 * config/tilegx/tilegx.md (floatsisf2): New pattern.
175 (floatunssisf2): New pattern.
176 (floatsidf2): New pattern.
177 (floatunssidf2): New pattern.
178
179 2013-03-25 Walter Lee <walt@tilera.com>
180
181 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
182 tests for constraint J, K, N, P.
183
184 2013-03-25 Walter Lee <walt@tilera.com>
185
186 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
187 Use indirect/pcrel encoding.
188 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
189 Ditto.
190
191 2013-03-25 Steve Ellcey <sellcey@mips.com>
192
193 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
194 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
195 * config/mips/mips.c (mips_option_override): Set IMADD default.
196 * config/mips/mips.h (PTF_AVOID_IMADD): New.
197 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
198 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
199 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
200 * doc/invoke.texi (-mimadd/-mno-imadd): New.
201
202 2013-03-25 Jeff Law <law@redhat.com>
203
204 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
205 slightly to avoid creating and folding useless trees. Simplify
206 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
207
208 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
209
210 * config/i386/i386.md (*zero_extendsidi2): Merge with
211 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
212 * config/i386/predicates.md (x86_64_zext_operand): Rename from
213 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
214 targets. Clarify comment.
215
216 2013-03-25 Martin Jambor <mjambor@suse.cz>
217
218 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
219 pass-through jump functions differently.
220 (ipa_read_jump_function): Likewise. Also use setter functions to set
221 up jump functions.
222
223 2013-03-25 Martin Jambor <mjambor@suse.cz>
224
225 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
226 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
227 process it.
228 (ipa_get_indirect_edge_target): New function.
229 (devirtualization_time_bonus): New parameter known_aggs, pass it to
230 ipa_get_indirect_edge_target. Update all callers.
231 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
232 ipa_get_indirect_edge_target_1 instead of calling
233 ipa_get_indirect_edge_target.
234 (create_specialized_node): Pass aggvlas to
235 ipcp_discover_new_direct_edges.
236
237 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
238
239 * config/arm/arm.md (f_sels, f_seld): New types.
240 (*cmov<mode>): New pattern.
241 * config/arm/predicates.md (arm_vsel_comparison_operator): New
242 predicate.
243
244 2013-03-25 Kai Tietz <ktietz@redhat.com>
245
246 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
247 POSIX-printf for mingw-hosted builds.
248
249 2013-03-25 Richard Biener <rguenther@suse.de>
250
251 PR middle-end/56694
252 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
253 must-not-throw stmt location.
254
255 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
256
257 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
258 Emit load-acquire versions when acq is true.
259 (arm_emit_store_exclusive): Add rel parameter.
260 Emit store-release versions when rel is true.
261 (arm_split_compare_and_swap): Use acquire-release instructions
262 instead.
263 of barriers when appropriate.
264 (arm_split_atomic_op): Likewise.
265 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
266 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
267 (VUNSPEC_SLX): Likewise.
268 (VUNSPEC_LDA): Likewise.
269 (VUNSPEC_STL): Likewise.
270 * config/arm/sync.md (atomic_load<mode>): New pattern.
271 (atomic_store<mode>): Likewise.
272 (arm_load_acquire_exclusive<mode>): Likewise.
273 (arm_load_acquire_exclusivesi): Likewise.
274 (arm_load_acquire_exclusivedi): Likewise.
275 (arm_store_release_exclusive<mode>): Likewise.
276
277 2013-03-25 Catherine Moore <clm@codesourcery.com>
278
279 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
280 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
281 * config/mip/predicates.md (lwsp_swsp_operand,
282 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
283 sb16_operand, db4_operand, db7_operand, ib3_operand,
284 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
285 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
286 andi16_operand): New predicates.
287 * config/mips/mips.md (compression): New attribute.
288 (enabled): New attribute.
289 (length): Consider compression in computing length.
290 (shift_compression): New code attribute.
291 (*add<mode>3): New operands. Record compression.
292 (sub<mode>3): Likewise.
293 (one_cmpl<mode>2): Likewise.
294 (*and<mode>3): Likewise.
295 (*ior<mode>3): Likewise.
296 (unnamed pattern for xor): Likewise.
297 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
298 (*<optab><mode>3): Likewise.
299 (*mov<mode>_internal: Likewise.
300 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
301 (mips_unsigned_immediate_p): New.
302 (umips_lwsp_swsp_address_p): New.
303 (m16_based_address_p): New.
304 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
305 (mips_unsigned_immediate_p): New prototype.
306 (lwsp_swsp_address_p): New prototype.
307 (m16_based_address_p): New prototype.
308 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
309 (mips_signed_immediate_p): New function.
310 (m16_based_address_p): New function.
311 (lwsp_swsp_address_p): New function.
312 (mips_print_operand_punctuation): Recognize short delay slot insns
313 for microMIPS.add<mode>3"
314
315 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
316
317 PR target/56720
318 * config/arm/iterators.md (v_cmp_result): New mode attribute.
319 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
320
321 2013-03-25 Richard Biener <rguenther@suse.de>
322
323 PR tree-optimization/56689
324 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
325 any edge.
326
327 2013-03-25 Richard Biener <rguenther@suse.de>
328
329 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
330 of bitmap.
331 (memory_references): Likewise.
332 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
333 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
334 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
335 (gather_mem_refs_in_loops): Fold into ...
336 (analyze_memory_references): ... this. Move initialization
337 to tree_ssa_lim_initialize.
338 (fill_always_executed_in): Rename to ...
339 (fill_always_executed_in_1): ... this.
340 (fill_always_executed_in): Move contains_call computation to
341 this new function from ...
342 (tree_ssa_lim_initialize): ... here.
343 (tree_ssa_lim): Call fill_always_executed_in.
344
345 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
346
347 * postreload.c (reload_combine): Fix code detecting returns.
348
349 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
350
351 * function.c (emit_use_return_register_into_block): On cc0 targets,
352 do not emit the sequence between cc0 setter and user.
353
354 2013-03-25 Kai Tietz <ktietz@redhat.com>
355
356 * config/i386/predicates.md (local_symbolic_operand): Interpret
357 dll-imported symbols as none-local.
358
359 2013-03-25 Richard Biener <rguenther@suse.de>
360
361 * tree-ssa-loop-im.c (struct depend): Remove.
362 (struct lim_aux_data): Make depends a vec of gimples.
363 (free_lim_aux_data): Adjust.
364 (add_dependency): Likewise.
365 (set_level): Likewise.
366
367 2013-03-25 Richard Biener <rguenther@suse.de>
368
369 PR middle-end/56434
370 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
371 the pointer returned by calls with ECF_MALLOC set.
372
373 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
374
375 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
376
377 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
378
379 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
380 using MMXMODE mode iterator.
381 (*move<mode>_internal): Merge with *movv2sf_internal and
382 *movv2sf_internal_rex64 using MMXMODE mode iterator.
383
384 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
385
386 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
387 (record_last_mem_set_info): Likewise.
388
389 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
390 of XNEWVEC followed by memset.
391 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
392
393 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
394
395 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
396 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
397 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
398 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
399 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
400 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
401 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
402 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
403 BARRIER_P instead of GET_CODE.
404
405 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
406
407 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
408 inaccuracy in the probing code.
409
410 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
411 (ctrapdi4): Likewise.
412
413 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
414
415 * calls.c (expand_call): Add missing guard to code handling return
416 of non-BLKmode structures in MSB.
417 * function.c (expand_function_end): Likewise.
418
419 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
420
421 * combine.c (try_combine): Adjust comment. Do not add the set of
422 insn #0 if the destination indirectly is set or dies in insn #2.
423 Tidy up code to distribute a new note.
424
425 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
426
427 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
428 also for alternatives 16 and 17.
429
430 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
431
432 * config/i386/sse.md (*mov<mode>_internal): Merge with
433 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
434 Emit insn template depending on type attribute. Use
435 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
436 movd instead of movq mnemonic for interunit moves. Rewrite mode
437 attribute calculation. Remove unit attribute calculation.
438 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
439 Set prefix_data16 attribute for DImode ssemov types.
440 Use Ym instead of y for SSE-MMX conversion alternatives.
441 Reorder operand constraints.
442
443 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
444
445 * df.h (df_insn_delete): Adjust prototype.
446 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
447 and let it decide whether mark the basic block dirty.
448 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
449 * df-scan.c (df_insn_info_delete): New helper function, split
450 off from df_insn_delete.
451 (df_scan_free_bb_info): Use it.
452 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
453 Likewise.
454 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
455 that the insn is actually an insn and it has a non-NULL basic block.
456 Do not mark basic block dirty if only deleting a DEBUG_INSN.
457
458 2013-03-22 Richard Biener <rguenther@suse.de>
459
460 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
461 dep_ref members.
462 (mem_ref_alloc): Do not allocate them.
463 (refs_independent_p): Do not query or maintain a cache.
464
465 2013-03-22 Richard Biener <rguenther@suse.de>
466
467 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
468 (gather_mem_refs_in_loops): Do not compute it.
469 (analyze_memory_references): Do not allocate it.
470 (tree_ssa_lim_finalize): Do not free it.
471 (for_all_locs_in_loop): Do not query all_refs_in_loop.
472
473 2013-03-22 Richard Biener <rguenther@suse.de>
474
475 * is-a.h (as_a): Use gcc_checking_assert.
476
477 2013-03-22 Ian Bolton <ian.bolton@arm.com>
478
479 * config/aarch64/aarch64.c (aarch64_print_operand): New
480 format specifier for printing a constant in hex.
481 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
482 format specifier for printing second operand.
483
484 2013-03-22 Richard Biener <rguenther@suse.de>
485
486 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
487 bitmaps.
488 (gather_mem_refs_in_loops): Perform store accumulation here.
489 (create_vop_ref_mapping_loop): Remove.
490 (create_vop_ref_mapping): Likewise.
491 (analyze_memory_references): Initialize refs_stored_in_loop.
492 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
493 (record_indep_loop): Remove.
494 (record_dep_loop): New function.
495 (ref_indep_loop_p_1): Adjust to only walk over references
496 in the loop, not its subloops.
497 (ref_indep_loop_p): Rename to ...
498 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
499 maintaining a more fine-grained cache.
500 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
501 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
502
503 2013-03-22 Richard Biener <rguenther@suse.de>
504
505 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
506 (struct mem_ref): Make accesses_in_loop a vec of a vec of
507 aggregate mem_ref_loc.
508 (free_mem_ref_locs): Inline into ...
509 (memref_free): ... this and adjust.
510 (mem_ref_alloc): Adjust.
511 (mem_ref_locs_alloc): Remove.
512 (record_mem_ref_loc): Adjust.
513 (get_all_locs_in_loop): Rewrite into ...
514 (for_all_locs_in_loop): ... this iterator.
515 (rewrite_mem_ref_loc): New functor.
516 (rewrite_mem_refs): Use for_all_locs_in_loop.
517 (sm_set_flag_if_changed): New functor.
518 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
519 (ref_always_accessed): New functor.
520 (ref_always_accessed_p): Use for_all_locs_in_loop.
521
522 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
523
524 * tree-pass.h (PROP_gimple_lvec): New.
525 * passes.c (dump_properties): Handle PROP_gimple_lvec.
526 (init_optimization_passes): Move pass_lower_vector.
527 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
528 PROP_gimple_lvec.
529 (pass_lower_vector): Provide PROP_gimple_lvec.
530 (pass_lower_vector_ssa): Likewise.
531 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
532
533 2013-03-21 Mark Wielaard <mjw@redhat.com>
534
535 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
536
537 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
538
539 * config/i386/i386.md (*movdi_internal): Disparage slightly
540 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
541 conversion alternatives.
542
543 2013-03-21 Jakub Jelinek <jakub@redhat.com>
544
545 PR middle-end/48087
546 * diagnostic.def (DK_WERROR): New kind.
547 * diagnostic.h (werrorcount): Define.
548 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
549 promoted to DK_ERROR, increment DK_WERROR counter instead of
550 DK_ERROR counter.
551 * toplev.c (toplev_main): Call print_ignored_options even if
552 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
553 even if just werrorcount is non-zero.
554
555 PR debug/55608
556 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
557 on failure.
558 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
559 (string_cst_pool_decl): New function.
560 (optimize_one_addr_into_implicit_ptr): New function.
561 (resolve_addr_in_expr): Optimize DWARF location expression
562 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
563 which doesn't live in memory, but has DW_AT_location or
564 DW_AT_const_value, or refers to a string literal, into
565 DW_OP_GNU_implicit_pointer.
566 (optimize_location_into_implicit_ptr): New function.
567 (resolve_addr): If removing DW_AT_location of a variable because
568 it was DW_OP_addr of address of the variable, but the variable doesn't
569 live in memory, try to emit const value attribute for the initializer.
570
571 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
572
573 * tree.h (VECTOR_TYPE_P): New macro.
574 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
575 TYPE_MODE): Use it.
576 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
577 VEC_COND_EXPR cannot be lvalues.
578 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
579
580 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
581
582 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
583 Restrict the transformation to equal modes.
584
585 2013-03-21 Richard Biener <rguenther@suse.de>
586
587 PR tree-optimization/39326
588 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
589 (MEM_ANALYZABLE): Adjust.
590 (record_mem_ref_loc): Move bitmap ops ...
591 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
592 unanalyzable refs, do not record locations for it.
593 (analyze_memory_references): Allocate ref zero as shared
594 unanalyzable ref.
595 (refs_independent_p): Do not test for unanalyzed mems here.
596 (ref_indep_loop_p_1): Special-case disambiguation against
597 the unanalyzed ref.
598 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
599
600 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
601
602 * config/arm/arm-protos.h (tune_params): Add
603 prefer_neon_for_64bits field.
604 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
605 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
606 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
607 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
608 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
609 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
610 (arm_option_override): Handle -mneon-for-64bits new option.
611 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
612 (prefer_neon_for_64bits): Declare new variable.
613 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
614 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
615 (arch_enabled): Handle new arch types. Remove support for onlya8
616 and nota8.
617 (one_cmpldi2): Use new arch names.
618 (zero_extend<mode>di2, extend<mode>di2): Ditto.
619 * config/arm/arm.opt (mneon-for-64bits): Add option.
620 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
621 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
622 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
623 of onlya8.
624 * doc/invoke.texi (-mneon-for-64bits): Document.
625
626 2013-03-21 Richard Biener <rguenther@suse.de>
627
628 PR tree-optimization/39326
629 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
630 (sort_bbs_in_loop_postorder_cmp): New function.
631 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
632
633 2013-03-21 Richard Biener <rguenther@suse.de>
634
635 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
636 (vect_insert_into_interleaving_chain): Likewise.
637 (vect_drs_dependent_in_basic_block): Inline ...
638 (vect_slp_analyze_data_ref_dependence): ... here. New function,
639 split out from ...
640 (vect_analyze_data_ref_dependence): ... here. Simplify.
641 (vect_check_interleaving): Simplify.
642 (vect_analyze_data_ref_dependences): Likewise. Split out ...
643 (vect_slp_analyze_data_ref_dependences): ... this new function.
644 (dr_group_sort_cmp): New function.
645 (vect_analyze_data_ref_accesses): Compute data-reference groups
646 here instead of in vect_analyze_data_ref_dependence. Use
647 a more efficient algorithm.
648 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
649 vect_slp_analyze_data_ref_dependences. Call
650 vect_analyze_data_ref_accesses earlier.
651 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
652 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
653 (vect_slp_analyze_data_ref_dependences): New prototype.
654
655 2013-03-21 Richard Biener <rguenther@suse.de>
656
657 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
658 ref is stored in the loop.
659 (find_refs_for_sm): Walk only over all stores.
660 (store_motion_loop): Allocate from lim_bitmap_obstack.
661 (store_motion): Likewise.
662
663 2013-03-21 Richard Biener <rguenther@suse.de>
664
665 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
666 Update virtual SSA form.
667
668 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
669
670 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
671 * configure: Regenerate.
672 * config.in: Regenerate.
673 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
674 if !HAVE_LD_EH_FRAME_CIEV3.
675
676 2013-03-21 Richard Biener <rguenther@suse.de>
677
678 * tree-cfg.c (verify_expr_no_block): New function.
679 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
680 nor DECL_VALUE_EXPR have locations with associated blocks.
681 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
682 (clear_unused_block_pointer): Remove code dealing with
683 blocks in DECL_DEBUG_EXPR locations.
684
685 2013-03-21 Richard Biener <rguenther@suse.de>
686
687 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
688 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
689 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
690 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
691 instead of DECL_DEBUG_EXPR_IS_FROM.
692 * gimplify.c (gimplify_modify_expr): Likewise.
693 * tree-cfg.c (verify_expr_location_1): Likewise.
694 * tree-complex.c (create_one_component_var): Likewise.
695 * tree-sra.c (create_access_replacement): Likewise.
696 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
697 (clear_unused_block_pointer): Likewise.
698 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
699 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
700 * var-tracking.c (var_debug_decl): Likewise.
701 (track_expr_p): Likewise.
702 * tree-inline.c (add_local_variables): Likewise. Set
703 DECL_HAS_DEBUG_EXPR_P after copying it.
704 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
705 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
706
707 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
708
709 PR bootstrap/56656
710 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
711 * configure: Regenerate.
712 * config.in: Regenerate.
713 * config/i386/i386.md (*movdf_internal): Use
714 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
715 movd instead of movq mnemonic for interunit moves.
716 (*movdi_internal): Ditto.
717
718 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
719
720 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
721 (abd<mode>_3): New pattern.
722 (aba<mode>_3): New pattern.
723 (fabd<mode>_3): New pattern.
724
725 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
726
727 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
728 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
729 occurrence of REGISTER_PREFIX as its empty string.
730
731 2013-03-20 Jeff Law <law@redhat.com>
732
733 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
734 addititional equivalences for equality comparisons between an SSA_NAME
735 and a constant where the SSA_NAME was set from a widening conversion.
736
737 2013-03-20 Walter Lee <walt@tilera.com>
738
739 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
740
741 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
742
743 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
744 depending on type attribute.
745 (*movti_internal): Ditto.
746 (*movtf_internal): Ditto.
747 (*movxf_internal): Ditto.
748 (*movdf_internal): Ditto.
749 (*movsf_internal): Ditto.
750
751 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
752
753 * config/i386/i386.md (*movti_internal): Set prefix attribute to
754 maybe_vex for sselog1 and ssemov types.
755 (*movdi_internal): Reorder operand constraints.
756 (*movsi_internal): Ditto. Set prefix attribute to
757 maybe_vex for sselog1 and ssemov types.
758 (*movtf_internal): Set prefix attribute to maybe_vex
759 for sselog1 and ssemov types.
760 (*movdf_internal): Ditto. Set prefix_data16 attribute for
761 DImode ssemov types. Reorder operand constraints.
762 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
763 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
764 attribute for SImode ssemov types. Reorder operand constraints.
765
766 2013-03-20 Martin Jambor <mjambor@suse.cz>
767
768 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
769 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
770
771 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
772
773 * config/rs6000/predicates.md (indexed_address, update_address_mem
774 update_indexed_address_mem): New predicates.
775 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
776 attribute for load/store instructions.
777 * config/rs6000/dfp.md (movsd_store): Likewise.
778 (movsd_load): Likewise.
779 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
780 (unnamed HI->DI extend define_insn): Likewise.
781 (unnamed SI->DI extend define_insn): Likewise.
782 (unnamed QI->SI extend define_insn): Likewise.
783 (unnamed QI->HI extend define_insn): Likewise.
784 (unnamed HI->SI extend define_insn): Likewise.
785 (unnamed HI->SI extend define_insn): Likewise.
786 (extendsfdf2_fpr): Likewise.
787 (movsi_internal1): Likewise.
788 (movsi_internal1_single): Likewise.
789 (movhi_internal): Likewise.
790 (movqi_internal): Likewise.
791 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
792 attribute for load/store instructions.
793 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
794 instructions.
795 (mov<mode>_softfloat): Likewise.
796 (mov<mode>_hardfloat32): Likewise.
797 (mov<mode>_hardfloat64): Likewise.
798 (mov<mode>_softfloat64): Likewise.
799 (movdi_internal32): Likewise.
800 (movdi_internal64): Likewise.
801 (probe_stack_<mode>): Likewise.
802
803 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
804
805 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
806 floating point, and decimal floating point to reload iterator.
807
808 * config/rs6000/constraints.md (wl constraint): New constraints to
809 return FLOAT_REGS if certain options are used to reduce the number
810 of separate patterns that exist in the file.
811 (wx constraint): Likewise.
812 (wz constraint): Likewise.
813
814 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
815 -mdebug=reg, print wg, wl, wx, and wz constraints.
816 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
817 Initialize the reload functions for 64-bit binary/decimal floating
818 point types.
819 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
820 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
821 create the buffer on the stack to overcome not having a 32-bit
822 load and store.
823 (rs6000_emit_move): Likewise.
824 (rs6000_secondary_memory_needed_rtx): Likewise.
825 (rs6000_alloc_sdmode_stack_slot): Likewise.
826 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
827 via xxlxor, just like DFmode 0.0.
828
829 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
830 define as 1 if we are running on a power7 or newer.
831 (enum r6000_reg_class_enum): Add new constraints.
832
833 * config/rs6000/dfp.md (movsd): Delete, combine with binary
834 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
835 with other moves by using conditional constraits (wg). Use LFIWZX
836 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
837 (movsd splitter): Likewise.
838 (movsd_hardfloat): Likewise.
839 (movsd_softfloat): Likewise.
840
841 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
842 binary and decimal floating point moves.
843 (fmove_ok): New attributes to combine binary and decimal floating
844 point moves, and to combine power6x (mfpgpr) moves along normal
845 floating moves.
846 (real_value_to_target): Likewise.
847 (f32_lr): Likewise.
848 (f32_lm): Likewise.
849 (f32_li): Likewise.
850 (f32_sr): Likewise.
851 (f32_sm): Likewise.
852 (f32_si): Likewise.
853 (movsf): Combine binary and decimal floating point moves. Combine
854 power6x (mfpgpr) moves with other moves by using conditional
855 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
856 (mov<mode> for SFmode/SDmode); Likewise.
857 (SFmode/SDmode splitters): Likewise.
858 (movsf_hardfloat): Likewise.
859 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
860 (movsf_softfloat): Likewise.
861 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
862
863 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
864 wx and wz constraints.
865
866 * config/rs6000/constraints.md (wg constraint): New constraint to
867 return FLOAT_REGS if -mmfpgpr (power6x) was used.
868
869 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
870 constraint.
871
872 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
873 -mdebug=reg, print wg, wl, wx, and wz constraints.
874 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
875 Initialize the reload functions for 64-bit binary/decimal floating
876 point types.
877 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
878 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
879 create the buffer on the stack to overcome not having a 32-bit
880 load and store.
881 (rs6000_emit_move): Likewise.
882 (rs6000_secondary_memory_needed_rtx): Likewise.
883 (rs6000_alloc_sdmode_stack_slot): Likewise.
884 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
885 via xxlxor, just like DFmode 0.0.
886
887 * config/rs6000/dfp.md (movdd): Delete, combine with binary
888 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
889 with other moves by using conditional constraits (wg). Use LFIWZX
890 and STFIWX for loading SDmode on power7.
891 (movdd splitters): Likewise.
892 (movdd_hardfloat32): Likewise.
893 (movdd_softfloat32): Likewise.
894 (movdd_hardfloat64_mfpgpr): Likewise.
895 (movdd_hardfloat64): Likewise.
896 (movdd_softfloat64): Likewise.
897
898 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
899 64-bit binary and decimal floating point moves.
900 (FMOVE64X): Likewise.
901 (movdf): Combine 64-bit binary and decimal floating point moves.
902 Combine power6x (mfpgpr) moves with other moves by using
903 conditional constraits (wg).
904 (mov<mode> for DFmode/DDmode): Likewise.
905 (DFmode/DDmode splitters): Likewise.
906 (movdf_hardfloat32): Likewise.
907 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
908 (movdf_softfloat32): Likewise.
909 (movdf_hardfloat64_mfpgpr): Likewise.
910 (movdf_hardfloat64): Likewise.
911 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
912 (movdf_softfloat64): Likewise.
913 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
914 (reload_<mode>_load): Move to later in the file so they aren't in
915 the middle of the floating point move insns.
916 (reload_<mode>_store): Likewise.
917
918 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
919 constraint.
920
921 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
922 constraint if -mdebug=reg.
923 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
924 Enable using dd reload support if needed.
925
926 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
927 binary and decimal floating point moves in rs6000.md.
928 (movtd_internal): Likewise.
929
930 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
931 decimal floating point moves.
932 (movtf): Likewise.
933 (movtf_internal): Likewise.
934 (mov<mode>_internal, TDmode/TFmode): Likewise.
935 (movtf_softfloat): Likewise.
936 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
937
938 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
939 movdi_internal64, using wg constraint for move direct operations.
940 (movdi_internal64): Likewise.
941
942 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
943 MODES_TIEABLE_P for selected modes. Print the numerical value of
944 the various virtual registers. Use GPR/FPR first/last values,
945 instead of hard coding the register numbers. Print which modes
946 have reload functions registered.
947 (rs6000_option_override_internal): If -mdebug=reg, trace the options
948 settings before/after setting cpu, target and subtarget settings.
949 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
950 and for secondary reload failures in rs6000_secondary_reload_inner.
951 (rs6000_secondary_reload_fail): Likewise.
952 (rs6000_secondary_reload_inner): Likewise.
953
954 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
955 macros for first/last GPR and FPR registers.
956 (LAST_GPR_REGNO): Likewise.
957 (FIRST_FPR_REGNO): Likewise.
958 (LAST_FPR_REGNO): Likewise.
959
960 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
961 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
962 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
963 (vcond<mode><mode>): Likewise.
964 (vcondu<mode><mode>): Likewise.
965 (vector_gtu<mode>): Likewise.
966 (vector_gte<mode>): Likewise.
967 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
968 to prevent the compiler from converting DImode operations to TImode.
969 (ior<mode>3): Likewise.
970 (and<mode>3): Likewise.
971 (one_cmpl<mode>2): Likewise.
972 (nor<mode>3): Likewise.
973 (andc<mode>3): Likewise.
974
975 * config/rs6000/constraints.md (wt constraint): New constraint
976 that returns VSX_REGS if TImode is allowed in VSX registers.
977
978 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
979 constant under VSX.
980
981 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
982 similar to TImode, but it is restricted to being in the GPRs.
983
984 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
985 TImode to occupy a single VSX register.
986
987 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
988 -mvsx-timode for power7/power8.
989 (power7 cpu): Likewise.
990 (power8 cpu): Likewise.
991
992 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
993 sure that TFmode/TDmode take up two registers if they are ever
994 allowed in the upper VSX registers.
995 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
996 registers.
997 (rs6000_init_hard_regno_mode_ok): Likewise.
998 (rs6000_debug_reg_global): Add debugging for PTImode and wt
999 constraint. Print if LRA is turned on.
1000 (rs6000_option_override_internal): Give an error if -mvsx-timode
1001 and VSX is not enabled.
1002 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
1003 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
1004 to reg+offset addressing. Use PTImode when checking offset
1005 addresses for validity.
1006 (reg_offset_addressing_ok_p): Likewise.
1007 (rs6000_legitimate_offset_address_p): Likewise.
1008 (rs6000_legitimize_address): Likewise.
1009 (rs6000_legitimize_reload_address): Likewise.
1010 (rs6000_legitimate_address_p): Likewise.
1011 (rs6000_eliminate_indexed_memrefs): Likewise.
1012 (rs6000_emit_move): Likewise.
1013 (rs6000_secondary_reload): Likewise.
1014 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
1015 reloads to fpr registers to continue to use reg+offset addressing,
1016 but 64-bit reloads to altivec registers need reg+reg addressing.
1017 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
1018 it. Treat LO_SUM like a PLUS operation.
1019 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
1020 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
1021 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
1022 registers to share a register with a smaller sized type, since VSX
1023 puts scalars in the upper 64-bits.
1024 (print_operand): Add support for PTImode.
1025 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
1026 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
1027 registers, but don't have arithmetic support.
1028 (rs6000_memory_move_cost): Add test for VSX.
1029 (rs6000_opt_masks): Add -mvsx-timode.
1030
1031 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
1032 for TImode.
1033 (VSs): Likewise.
1034 (VSr): Use wt constraint for TImode.
1035 (VSv): Drop TImode support.
1036 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
1037 (vsx_movti_64bit): Likewise.
1038 (vsx_movti_32bit): Likewise.
1039 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
1040 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
1041 one '?' on the appropriate output constraint. Do not allow TImode
1042 logical operations on 32-bit systems.
1043 (vsx_ior<mode>3): Likewise.
1044 (vsx_xor<mode>3): Likewise.
1045 (vsx_one_cmpl<mode>2): Likewise.
1046 (vsx_nor<mode>3): Likewise.
1047 (vsx_andc<mode>3): Likewise.
1048 (vsx_concat_<mode>): Likewise.
1049 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
1050
1051 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
1052 OPTION_MASK_VSX_TIMODE.
1053 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
1054 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
1055
1056 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
1057 (TI2 iterator): New iterator for TImode, PTImode.
1058 (wd mode attribute): Add values for vector types.
1059 (movti_string): Replace TI move operations with operations for TImode
1060 and PTImode. Add support for TImode being allowed in VSX registers.
1061 (mov<mode>_string, TImode/PTImode): Likewise.
1062 (movti_ppc64): Likewise.
1063 (mov<mode>_ppc64, TImode/PTImode): Likewise.
1064 (TI mode splitters): Likewise.
1065
1066 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
1067 constraint.
1068
1069 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
1070
1071 PR tree-optimization/56355
1072 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
1073 Also handle integers with undefined overflow.
1074
1075 2013-03-20 Catherine Moore <clm@codesourcery.com>
1076 Maciej W. Rozycki <macro@codesourcery.com>
1077 Tom de Vries <tom@codesourcery.com>
1078 Nathan Sidwell <nathan@codesourcery.com>
1079 Iain Sandoe <iain@codesourcery.com>
1080 Nathan Froyd <froydnj@codesourcery.com>
1081 Chao-ying Fu <fu@mips.com>
1082
1083 * doc/extend.texi: (micromips, nomicromips, nocompression):
1084 Document new function attributes.
1085 * doc/invoke.texi (minterlink-compressed, mmicromips,
1086 m14k, m14ke, m14kec): Document new options.
1087 (minterlink-mips16): Update documentation.
1088 * doc/md.texi (ZC, ZD): Document new constraints.
1089 * configure.ac (gcc_cv_as_micromips): Check if linker
1090 supports the .set micromips directive.
1091 * configure: Regenerate.
1092 * config.in: Regenerate.
1093 * config/mips/mips-tables.opt: Regenerate.
1094 * config/mips/micromips.md: New file.
1095 * constraints.md (ZC, ZD): New constraints.
1096 * config/mips/predicates.md (movep_src_register): New predicate.
1097 (movep_src_operand): New predicate.
1098 (non_volatile_mem_operand): New predicate.
1099 * config/mips/mips.md (multimem): New type.
1100 (length): Differentiate between 17-bit and 18-bit branch offsets.
1101 (MOVEP1, MOVEP2): New mode iterator.
1102 (mov_<load>l): Use ZC constraint.
1103 (mov_<load>r): Likewise.
1104 (mov_<store>l): Likewise.
1105 (mov_<store>r): Likewise.
1106 (*branch_equality<mode>_inverted): Add microMIPS support.
1107 (*branch_equality<mode>): Likewise.
1108 (*jump_absolute): Likewise.
1109 (indirect_jump_<mode>): Likewise.
1110 (tablejump_<mode>): Likewise.
1111 (<optab>_internal): Likewise.
1112 (sibcall_internal): Likewise.
1113 (sibcall_value_internal): Likewise.
1114 (prefetch): Use constraint ZD.
1115 * config/mips/mips.opt (minterlink-compressed): New option.
1116 (minterlink-mips16): Now an alias for minterlink-compressed.
1117 (mmicromips): New option.
1118 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
1119 (compare_and_swap_12): Likewise.
1120 (sync_add<mode>): Likewise.
1121 (sync_<optab>_12): Likewise.
1122 (sync_old_<optab>_12): Likewise.
1123 (sync_new_<optab>_12): Likewise.
1124 (sync_nand_12): Likewise.
1125 (sync_old_nand_12): Likewise.
1126 (sync_new_nand_12): Likewise.
1127 (sync_sub<mode>): Likewise.
1128 (sync_old_add<mode>): Likewise.
1129 (sync_old_sub<mode>): Likewise.
1130 (sync_new_add<mode>): Likewise.
1131 (sync_new_sub<mode>): Likewise.
1132 (sync_<optab><mode>): Likewise.
1133 (sync_old_<optab><mode>): Likewise.
1134 (sync_new_<optab><mode>): Likewise.
1135 (sync_nand<mode>): Likewise.
1136 (sync_old_nand<mode>): Likewise.
1137 (sync_new_nand<mode>): Likewise.
1138 (sync_lock_test_and_set<mode>): Likewise.
1139 (test_and_set_12): Likewise.
1140 (atomic_compare_and_swap<mode>): Likewise.
1141 (atomic_exchange<mode>_llsc): Likewise.
1142 (atomic_fetch_add<mode>_llsc): Likewise.
1143 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
1144 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
1145 (umips_save_restore_pattern_p): Likewise.
1146 (umips_load_store_pair_p): Likewise.
1147 (umips_output_load_store_pair): Likewise.
1148 (umips_movep_target_p): Likewise.
1149 (umips_12bit_offset_address_p): Likewise.
1150 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
1151 (mips_base_mips16): Rename this...
1152 (mips_base_compression_flags): ...to this. Update all uses.
1153 (mips_attribute_table): Add micromips, nomicromips and nocompression.
1154 (mips_mips16_decl_p): Delete.
1155 (mips_nomips16_decl_p): Delete.
1156 (mips_get_compress_on_flags): New function.
1157 (mips_get_compress_off_flags): New function.
1158 (mips_get_compress_mode): New function.
1159 (mips_get_compress_on_name): New function.
1160 (mips_get_compress_off_name): New function.
1161 (mips_insert_attributes): Support multiple compression types.
1162 (mips_merge_decl_attributes): Likewise.
1163 (umips_12bit_offset_address_p): New function.
1164 (mips_start_function_definition): Emit .set micromips directive.
1165 (mips_call_may_need_jalx_p): New function.
1166 (mips_function_ok_for_sibcall): Add microMIPS support.
1167 (mips_print_operand_punctuation): Support short delay slots and
1168 compact jumps.
1169 (umips_swm_mask, umips_swm_encoding): New.
1170 (umips_build_save_restore): New function.
1171 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
1172 (was_mips16_p): Remove.
1173 (old_compression_mode): New.
1174 (mips_set_compression_mode): New function.
1175 (mips_set_current_function): Add microMIPS support.
1176 (mips_option_override): Likewise.
1177 (umips_save_restore_pattern_p): New function.
1178 (umips_output_save_restore): New function.
1179 (umips_load_store_pair_p_1): New function.
1180 (umips_load_store_pair_p): New function.
1181 (umips_output_load_store_pair_1): New function.
1182 (umips_output_load_store_pair): New function.
1183 (umips_movep_target_p) New function.
1184 (mips_prepare_pch_save): Add microMIPS support.
1185 * config/mips/mips.h (TARGET_COMPRESSION): New.
1186 (TARGET_CPU_CPP_BUILTINS): Update macro
1187 to use new compression flags and to support microMIPS.
1188 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
1189 (MIPS_ARCH_FLOAT_SPEC): Likewise.
1190 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
1191 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
1192 (ASM_SPEC): Support mmicromips and mno-micromips.
1193 (M16STORE_REG_P): New macro.
1194 (MIPS_CALL): Support TARGET_MICROMIPS.
1195 (MICROMIPS_J): New macro.
1196 (mips_base_mips16): Rename this...
1197 (mips_base_compression_flags): ...to this.
1198 (UMIPS_12BIT_OFFSET_P): New macro.
1199 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
1200 (MULTILIB_DIRNAMES): Likewise.
1201 2013-03-20 Richard Biener <rguenther@suse.de>
1202
1203 PR tree-optimization/56661
1204 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
1205 the result does not have to be distinct.
1206
1207 2013-03-20 Richard Biener <rguenther@suse.de>
1208
1209 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
1210 remap_gimple_op_r.
1211
1212 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1213 Steven Bosscher <steven@gcc.gnu.org>
1214
1215 PR rtl-optimization/56605
1216 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
1217
1218 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
1219
1220 PR bootstrap/56656
1221 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
1222 that require movd instead of movq.
1223
1224 2013-03-20 Richard Biener <rguenther@suse.de>
1225
1226 * tree-ssa-structalias.c (struct variable_info): Add pointer
1227 to the first field of an aggregate with sub-vars. Make
1228 this and the pointer to the next subfield its ID.
1229 (vi_next): New function.
1230 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
1231 storedanything_id, integer_id): Increment by one.
1232 (new_var_info, get_call_vi, lookup_call_clobber_vi,
1233 get_call_clobber_vi): Adjust.
1234 (solution_set_expand): Simplify and speedup.
1235 (solution_set_add): Inline into ...
1236 (set_union_with_increment): ... this. Adjust accordingly.
1237 (do_sd_constraint): Likewise.
1238 (do_ds_constraint): Likewise.
1239 (do_complex_constraint): Simplify.
1240 (build_pred_graph): Adjust.
1241 (solve_graph): Likewise. Simplify and speedup.
1242 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
1243 get_constraint_for_component_ref, get_constraint_for_1,
1244 first_vi_for_offset, first_or_preceding_vi_for_offset,
1245 create_function_info_for, create_variable_info_for_1,
1246 create_variable_info_for, intra_create_variable_infos): Adjust.
1247 (init_base_vars): Push NULL for ID zero.
1248 (compute_points_to_sets): Adjust.
1249
1250 2013-03-20 Richard Biener <rguenther@suse.de>
1251
1252 * cfgloop.c (verify_loop_structure): Streamline and avoid
1253 ICEing on corrupt loop tree.
1254 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
1255 loop tree.
1256
1257 2013-03-20 Richard Biener <rguenther@suse.de>
1258
1259 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
1260 check whether an SSA update is needed.
1261
1262 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
1263
1264 * config/mips/constraints.md (T): Rename to...
1265 (Yf): ...this.
1266 (U): Rename to...
1267 (Yd): ...this.
1268 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
1269 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
1270
1271 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1272
1273 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
1274 (*subsi3_carryin_uxtw): Likewise.
1275
1276 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1277
1278 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
1279 (*rorsi3_insn_uxtw): Likewise.
1280
1281 2013-03-19 Ian Bolton <ian.bolton@arm.com>
1282
1283 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
1284 (*extrsi5_insn_uxtw): Likewise.
1285
1286 2013-03-19 Richard Biener <rguenther@suse.de>
1287
1288 PR tree-optimization/56273
1289 * passes.c (init_optimization_passes): Move second VRP after DOM.
1290
1291 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
1292
1293 * config/i386/i386.md (*movti_internal): Merge from
1294 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
1295 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
1296 nox64 isa attributes.
1297
1298 2013-03-18 Richard Biener <rguenther@suse.de>
1299
1300 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
1301 (unite): Likewise.
1302 (merge_node_constraints): Likewise.
1303 (build_succ_graph): Likewise.
1304 (valid_graph_edge): Inline into single caller.
1305 (unify_nodes): Likewise. Use bitmap_set_bit return value
1306 and cache varinfo.
1307 (scc_visit): Fix formatting and variable use.
1308 (do_sd_constraint): Use gcc_checking_assert.
1309 (do_ds_constraint): Likewise.
1310 (do_complex_constraint): Likewise.
1311 (condense_visit): Likewise. Cleanup.
1312 (dump_pred_graph): New function.
1313 (perform_var_substitution): Dump the pred-graph before
1314 variable substitution.
1315 (find_equivalent_node): Use gcc_checking_assert.
1316 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
1317
1318 2013-03-18 Richard Biener <rguenther@suse.de>
1319
1320 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1321 Remove cond_expr_stmt_list argument and do not gimplify the
1322 built expression.
1323 (vect_loop_versioning): Adjust.
1324 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1325 Cleanup to use less temporaries.
1326 (vect_create_data_ref_ptr): Cleanup.
1327
1328 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1329
1330 PR tree-optimization/56635
1331 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
1332 require types_compatible_p types.
1333
1334 2013-03-18 Nick Clifton <nickc@redhat.com>
1335
1336 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
1337 spurious backslash.
1338
1339 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
1340 Add missing line to comment describing function.
1341
1342 2013-03-18 Richard Biener <rguenther@suse.de>
1343
1344 PR tree-optimization/56210
1345 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1346 Handle string / character search functions.
1347 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1348
1349 2013-03-18 Richard Biener <rguenther@suse.de>
1350
1351 PR middle-end/56483
1352 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
1353 and implement properly.
1354 * gimple.h (gimple_cond_single_var_p): Remove.
1355
1356 2013-03-18 Richard Biener <rguenther@suse.de>
1357
1358 * tree-data-ref.h (find_data_references_in_loop): Declare.
1359 * tree-data-ref.c (get_references_in_stmt): Use a stack
1360 vector pre-allocated in the callers.
1361 (find_data_references_in_stmt): Adjust.
1362 (graphite_find_data_references_in_stmt): Likewise.
1363 (create_rdg_vertices): Likewise.
1364 (find_data_references_in_loop): Export.
1365 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
1366 Compute dependences here...
1367 (vect_analyze_data_refs): ...not here. When we encounter
1368 a non-vectorizable data reference in basic-block vectorization
1369 truncate the data reference vector. Do not bother to
1370 fixup data-dependence information for gather loads.
1371 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
1372 of data references, as reported.
1373
1374 2013-03-18 Richard Biener <rguenther@suse.de>
1375
1376 PR tree-optimization/3713
1377 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
1378 has_constants and expr.
1379 (stmt_has_constants): Properly valueize SSA names when deciding
1380 whether the stmt has constants.
1381
1382 2013-03-18 Richard Biener <rguenther@suse.de>
1383
1384 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
1385 whole function when there is nothing to do.
1386 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
1387 * tree-vectorizer.c (vectorize_loops): Update virtual and
1388 loop-closed SSA once.
1389 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
1390
1391 2013-03-18 Richard Biener <rguenther@suse.de>
1392
1393 PR middle-end/56113
1394 * domwalk.c (bb_postorder): New global static.
1395 (cmp_bb_postorder): New function.
1396 (walk_dominator_tree): Replace scheme imposing an order for
1397 visiting dominator sons by one sorting them at the time they
1398 are pushed on the stack.
1399
1400 2013-03-18 Richard Biener <rguenther@suse.de>
1401
1402 PR tree-optimization/39326
1403 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
1404 (struct mem_ref): Replace mem member with ao_ref typed member.
1405 (MEM_ANALYZABLE): Adjust.
1406 (memref_eq): Likewise.
1407 (mem_ref_alloc): Likewise.
1408 (gather_mem_refs_stmt): Likewise.
1409 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
1410 (execute_sm_if_changed_flag_set): Adjust.
1411 (execute_sm): Likewise.
1412 (ref_always_accessed_p): Likewise.
1413 (refs_independent_p): Likewise.
1414 (can_sm_ref_p): Likewise.
1415
1416 2013-03-18 Jakub Jelinek <jakub@redhat.com>
1417
1418 PR c/56566
1419 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
1420 return 1 even for !unsignedp.
1421
1422 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1423
1424 * config/i386/i386.md (isa): Add x64 and nox64.
1425 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
1426 (*pushtf): Enable *roF alternative for x64 isa only.
1427 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
1428 mode attribute of integer alternatives to DImode for TARGET_64BIT.
1429 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
1430 (*movtf_internal): Merge from *movtf_internal_rex64 and
1431 *movtf_internal_sse. Use x64 and nox64 isa attributes.
1432 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
1433 nox64 isa attributes.
1434 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
1435 nox64 isa attributes.
1436 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
1437
1438 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
1439
1440 * config/alpha/alpha.c (TARGET_LRA_P): New define.
1441
1442 2013-03-17 Jakub Jelinek <jakub@redhat.com>
1443
1444 PR target/56640
1445 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
1446 class names. Remove trailing comma after "ALL_REGS".
1447
1448 2013-03-16 Jan Hubicka <jh@suse.cz>
1449
1450 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
1451 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
1452 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
1453 of cgraph_get_create_node.
1454 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
1455
1456 2013-03-16 Jason Merrill <jason@redhat.com>
1457
1458 PR debug/49090
1459 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
1460 with DW_AT_default_value.
1461
1462 2013-03-16 Jakub Jelinek <jakub@redhat.com>
1463
1464 * BASE-VER: Set to 4.9.0.
1465
1466 2013-03-14 Andi Kleen <ak@linux.intel.com>
1467
1468 PR target/56619
1469 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
1470 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
1471 Document _x* TSX intrinsics.
1472
1473 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
1474 David Holsgrove <david.holsgrove@xilinx.com>
1475
1476 * configure.ac: Add MicroBlaze TLS support detection.
1477 * configure: Regenerate.
1478 * config/microblaze/microblaze-protos.h
1479 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
1480 symbol_mentioned_p, label_mentioned_p): Add prototypes.
1481 * config/microblaze/microblaze.c (microblaze_address_type): Add
1482 ADDRESS_TLS and tls_reloc address types.
1483 (microblaze_address_info): Add tls_reloc.
1484 (TARGET_HAVE_TLS): Define.
1485 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
1486 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
1487 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
1488 load_tls_operand, microblaze_call_tls_get_addr,
1489 microblaze_legitimize_tls_address): New functions.
1490 (microblaze_classify_unspec): Handle UNSPEC_TLS.
1491 (get_base_reg): Use microblaze_tls_symbol_p.
1492 (microblaze_classify_address): Handle TLS.
1493 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
1494 label_mentioned_p and microblaze_tls_referenced_p.
1495 (microblaze_legitimize_address): Handle TLS.
1496 (microblaze_address_insns): Handle ADDRESS_TLS.
1497 (pic_address_needs_scratch): Handle TLS.
1498 (print_operand_address): Handle TLS.
1499 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
1500 (microblaze_expand_move): Handle TLS.
1501 (microblaze_legitimate_constant_p): Check
1502 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
1503 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
1504 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
1505 (PIC_OFFSET_TABLE_REGNUM): Set.
1506 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
1507 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
1508 (addsi3, movsi_internal2, movdf_internal): Update constraints
1509 * config/microblaze/predicates.md (arith_plus_operand): Define
1510 (move_operand): Redefine as move_src_operand,
1511 check microblaze_tls_referenced_p.
1512
1513 2013-03-14 Ian Bolton <ian.bolton@arm.com>
1514
1515 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
1516 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
1517
1518 2013-03-14 Ian Bolton <ian.bolton@arm.com>
1519
1520 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
1521 CC mode for AND.
1522
1523 2013-03-14 Jakub Jelinek <jakub@redhat.com>
1524
1525 PR tree-optimization/53265
1526 * common.opt (Waggressive-loop-optimizations): New option.
1527 * tree-ssa-loop-niter.c: Include tree-pass.h.
1528 (do_warn_aggressive_loop_optimizations): New function.
1529 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
1530 if number_of_latch_executions returned constant.
1531 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
1532 early. If number_of_latch_executions returned constant, set
1533 nb_iterations_upper_bound back to it.
1534 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
1535 field.
1536 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
1537 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
1538
1539 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
1540 (MULTILIB_OSDIRNAMES): Set.
1541 * genmultilib: If defaultosdirname doesn't start with :: , set
1542 defaultosdirname2 instead, clear it and emit two . multilib_raw
1543 entries instead of just one.
1544
1545 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
1546
1547 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1548 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
1549 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
1550 (SUBTARGET_OVERRIDE_OPTIONS): New.
1551
1552 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
1553
1554 PR target/49880
1555 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
1556 (musermode): Convert to Var(TARGET_USERMODE).
1557 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
1558 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
1559 * config/sh/sh.c (sh_option_override): Use
1560 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
1561 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
1562 condition.
1563 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
1564 TARGET_SH4.
1565 (udivsi3_i4_single, divsi3_i4_single): Use
1566 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
1567
1568 2013-03-13 Dave Korn <dave.korn.cygwin@....>
1569
1570 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
1571 default setting.
1572
1573 2013-03-13 Richard Biener <rguenther@suse.de>
1574
1575 PR tree-optimization/56608
1576 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
1577 calls when vectorizing basic-blocks.
1578
1579 2013-03-13 Jakub Jelinek <jakub@redhat.com>
1580
1581 PR plugins/45078
1582 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
1583 tm_file.
1584
1585 2013-03-12 Jakub Jelinek <jakub@redhat.com>
1586
1587 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
1588
1589 2013-03-11 Jan Hubicka <jh@suse.cz>
1590
1591 PR lto/56557
1592 * lto-streamer-out.c (output_symbol_p): Skip references from
1593 constructors of external variables.
1594
1595 2013-03-11 Jan Hubicka <jh@suse.cz>
1596
1597 PR middle-end/56571
1598 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
1599 from pseudos.
1600 * emit-rtl.c (verify_rtx_sharing): Likewise.
1601 (copy_insn_1): Likewise.
1602 * rtl.c (copy_rtx): Likewise.
1603
1604 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
1605
1606 PR target/56591
1607 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
1608 output_operand_lossage message.
1609
1610 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
1611
1612 PR target/56470
1613 * arm.c (shift_op): Validate RTL pattern on the fly.
1614 (arm_print_operand, case 'S'): Don't use shift_operator to validate
1615 the RTL.
1616
1617 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1618
1619 PR target/56347
1620 * config/pa/pa.md (call_value): Check for calls to powf and direct to
1621 new call patterns that clobber %fr12.
1622 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
1623 split and postreload patterns.
1624 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
1625 registers %fr12 and %fr12R as call used.
1626
1627 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
1628
1629 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
1630 (canon_address, record_store, replace_read, check_mem_read_rtx,
1631 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
1632 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
1633 rest_of_handle_dse): Likewise.
1634
1635 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
1636
1637 PR middle-end/56524
1638 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
1639 Add base_optabs.
1640 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
1641 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
1642 (save_optabs_if_changed): Replace with...
1643 (init_tree_optimization_optabs): ...this.
1644 * optabs.c (save_optabs_if_changed): Rename to...
1645 (init_tree_optimization_optabs): ...this. Take the optimization node
1646 as argument. Do nothing if the base optabs are already correct.
1647 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
1648 to recompute optabs.
1649 * function.h (function): Remove optabs field.
1650 * function.c (invoke_set_current_function_hook): Call
1651 init_tree_optimization_optabs. Use the result to initialize
1652 this_fn_optabs.
1653
1654 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
1655
1656 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
1657 if GTMA_HAS_NO_INSTRUMENTATION.
1658 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
1659 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
1660 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
1661 * gimple-pretty-print.c (dump_gimple_transaction): Handle
1662 GTMA_HAS_NO_INSTRUMENTATION.
1663
1664 2013-03-08 Jakub Jelinek <jakub@redhat.com>
1665
1666 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
1667 libasan_preinit.o.
1668
1669 2013-03-08 Marek Polacek <polacek@redhat.com>
1670 Jakub Jelinek <jakub@redhat.com>
1671
1672 PR tree-optimization/56478
1673 * predict.c (is_comparison_with_loop_invariant_p): Change the
1674 type of loop_step to tree.
1675 (predict_loops): Adjust.
1676 (predict_iv_comparison): Perform the computations on double_ints.
1677
1678 2013-03-08 Richard Biener <rguenther@suse.de>
1679
1680 PR tree-optimization/56570
1681 * tree-cfg.c (verify_expr_location_1): Verify locations for
1682 DECL_DEBUG_EXPR.
1683 * tree-sra.c (create_access_replacement): Strip locations
1684 from DECL_DEBUG_EXPRs.
1685
1686 2013-03-08 Richard Biener <rguenther@suse.de>
1687
1688 * tree-inline.c (expand_call_inline): Do not associate
1689 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
1690 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
1691
1692 2013-03-08 Richard Biener <rguenther@suse.de>
1693
1694 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
1695 or block changes with -Og. Fix for location / block encoding
1696 changes and PHI arguments with locations.
1697
1698 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
1699
1700 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
1701 for all counters.
1702 (struct output_info): Likewise.
1703 (register_overhead): Remove bad gcc_assert.
1704 (bitmap_find_bit): If there is only a single bitmap element, do not
1705 count a miss as a search.
1706 (print_statistics): Update for counter type changes.
1707 (dump_bitmap_statistics): Likewise. Print headers such that they
1708 are properly lined up with the printed counters.
1709
1710 2013-03-07 Jakub Jelinek <jakub@redhat.com>
1711
1712 PR tree-optimization/56559
1713 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
1714 check that it has only a single use.
1715
1716 2013-03-07 Richard Biener <rguenther@suse.de>
1717
1718 * doc/invoke.texi (fwhole-program): Discourage use in combination
1719 with -flto.
1720
1721 2013-03-06 Jakub Jelinek <jakub@redhat.com>
1722
1723 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
1724
1725 PR tree-optimization/56539
1726 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
1727 instead of GSI_CONTINUE_LINKING as last argument to
1728 force_gimple_operand_gsi. Adjust function comment.
1729
1730 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
1731 aarch64-cores.def.
1732
1733 PR middle-end/56548
1734 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
1735 promoted mode, convert the result back to the original mode.
1736
1737 2013-03-06 Richard Biener <rguenther@suse.de>
1738
1739 PR middle-end/56294
1740 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
1741 (insert_updated_phi_nodes_compare_uids): New function.
1742 (update_ssa): Sort symbols_to_rename after UID before
1743 traversing it to insert PHI nodes.
1744
1745 2013-03-06 Richard Biener <rguenther@suse.de>
1746
1747 PR middle-end/50494
1748 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
1749 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
1750
1751 Revert
1752 2013-02-13 Richard Biener <rguenther@suse.de>
1753
1754 PR lto/50494
1755 * varasm.c (output_constant_def_1): Get the decl representing
1756 the constant as argument.
1757 (output_constant_def): Wrap output_constant_def_1.
1758 (make_decl_rtl): Use output_constant_def_1 with the decl
1759 representing the constant.
1760 (build_constant_desc): Optionally re-use a decl already
1761 representing the constant.
1762 (tree_output_constant_def): Adjust.
1763
1764 2013-03-06 Joey Ye <joey.ye@arm.com>
1765
1766 PR lto/50293
1767 * gcc.c (convert_white_space): New function.
1768 (main): Handles white space in function name.
1769
1770 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
1771
1772 PR target/56529
1773 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
1774 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
1775 to SH_DIV_CALL_TABLE for TARGET_SH2.
1776 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
1777 list.
1778 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
1779 call-table options.
1780
1781 2013-03-05 Sterling Augustine <saugustine@google.com>
1782 Cary Coutant <ccoutant@google.com>
1783
1784 PR debug/55364
1785 * dwarf2out.c (resolve_addr): Don't call
1786 remove_loc_list_addr_table_entries a second time for the same
1787 expression.
1788
1789 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1790
1791 PR debug/56510
1792 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
1793 (avoid_complex_debug_insns): New function.
1794 (expand_debug_locations): Call it.
1795
1796 PR rtl-optimization/56484
1797 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
1798 lifetimes of hard registers on small register class machines.
1799
1800 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1801
1802 * config/microblaze/microblaze-protos.h: Rename
1803 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
1804 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
1805 fast_interrupt.
1806 (microblaze_fast_interrupt_function_p): New function.
1807 (microblaze_is_interrupt_handler): Rename to
1808 microblaze_is_interrupt_variant and add fast_interrupt check.
1809 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
1810 (save_restore_insns): Likewise.
1811 (compute_frame_size): Likewise.
1812 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
1813 (microblaze_globalize_label): Likewise.
1814 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
1815 * config/microblaze/microblaze.md: Use wrapper
1816 microblaze_is_interrupt_variant.
1817
1818 2013-03-05 Kai Tietz <ktietz@redhat.com>
1819
1820 * sdbout.c (sdbout_one_type): Switch to current function's section
1821 supporting cold/hot.
1822
1823 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
1824
1825 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
1826 -mxl-reorder.
1827
1828 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1829
1830 PR middle-end/56461
1831 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
1832 if VALGRIND_GET_VBITS is defined, temporarily make object
1833 memory all defined, and restore previous valgrind addressability
1834 and definability afterwards. Free this_object at the end.
1835
1836 PR middle-end/56461
1837 * lra.c (lra): Call lra_clear_live_ranges if live_p,
1838 right before calling lra_create_live_ranges, also call it
1839 when clearing live_p. Only call lra_clear_live_ranges
1840 at the end if live_p.
1841
1842 PR middle-end/56461
1843 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
1844
1845 2013-03-05 Richard Biener <rguenther@suse.de>
1846
1847 PR tree-optimization/56521
1848 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
1849 value-id.
1850
1851 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
1852
1853 PR c++/55135
1854 * except.h (remove_unreachable_eh_regions): New prototype.
1855 * except.c (remove_eh_handler_splicer): New function, split out
1856 of remove_eh_handler.
1857 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
1858 warning about running it on many EH regions one at a time.
1859 (remove_unreachable_eh_regions_worker): New function, walk the
1860 EH tree in depth-first order and remove non-marked regions.
1861 (remove_unreachable_eh_regions): New function.
1862 * tree-eh.c (mark_reachable_handlers): New function, split out
1863 from remove_unreachable_handlers.
1864 (remove_unreachable_handlers): Use mark_reachable_handlers and
1865 remove_unreachable_eh_regions.
1866 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
1867 and remove_unreachable_eh_regions.
1868
1869 2013-03-05 Richard Biener <rguenther@suse.de>
1870
1871 PR middle-end/56525
1872 * loop-init.c (fix_loop_structure): Remove loops in two stages,
1873 not freeing them until the end.
1874
1875 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1876
1877 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
1878
1879 2013-03-05 Richard Biener <rguenther@suse.de>
1880
1881 PR tree-optimization/56270
1882 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
1883 of loads after scheduling an SLP instance.
1884
1885 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1886
1887 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
1888 tic6x.exp.
1889 (check_gcc_parallelize): Run guality.exp as a separate job from
1890 vect.exp with unsorted.exp and $(dg_target_exps) separately from
1891 struct-layout-1.exp with stackalign.exp.
1892
1893 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
1894
1895 PR middle-end/56461
1896 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
1897 load_index sbitmap even if some bit in it isn't set.
1898
1899 PR middle-end/56461
1900 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
1901 (discover_iteration_bound_by_body_walk): Change queues to
1902 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
1903 spelling in comment. Call safe_push on queues[bound_index] directly.
1904 Release queues[queue_index] in every iteration unconditionally.
1905 Release bounds vector.
1906
1907 PR middle-end/56461
1908 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
1909 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
1910 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
1911 inner_phis vector.
1912
1913 2013-03-05 Richard Biener <rguenther@suse.de>
1914
1915 PR lto/56515
1916 * tree-inline.c (remap_blocks_to_null): New function.
1917 (expand_call_inline): When expanding a call stmt without
1918 an associated block inline remap all callee blocks to NULL.
1919
1920 2013-03-05 Jakub Jelinek <jakub@redhat.com>
1921
1922 PR rtl-optimization/56494
1923 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
1924 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
1925 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
1926
1927 PR middle-end/56461
1928 * sel-sched-ir.c (free_sched_pools): Release
1929 succs_info_pool.stack[succs_info_pool.max_top] vectors too
1930 if succs_info_pool.max_top isn't -1.
1931
1932 PR bootstrap/56509
1933 * opts.c (opts_obstack, opts_concat): Moved to...
1934 * opts-common.c (opts_obstack, opts_concat): ... here.
1935
1936 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1937
1938 PR middle-end/56461
1939 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
1940
1941 2013-03-04 Martin Jambor <mjambor@suse.cz>
1942
1943 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
1944 all appropriate places.
1945
1946 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
1947
1948 PR tree-optimization/56424
1949 * ipa-split.c (split_function): Do not set the RSO flag if result is
1950 not by reference and its type is a register type.
1951
1952 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
1953
1954 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
1955 (microblaze_legitimate_pic_operand): Likewise
1956 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
1957 new function microblaze_legitimate_pic_operand
1958 * config/microblaze/microblaze-protos.h
1959 (microblaze_legitimate_pic_operand): Declare.
1960
1961 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
1962
1963 * config/microblaze/predicates.md (call_insn_simple_operand):
1964 New predicate for supported rtx code types.
1965 * config/microblaze/microblaze.md (call_internal1): Use
1966 call_insn_simple_operand predicate.
1967
1968 2013-03-04 Jakub Jelinek <jakub@redhat.com>
1969
1970 PR middle-end/56461
1971 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
1972 partitions.ordered_remove.
1973
1974 PR middle-end/56461
1975 * tree-vect-stmts.c (vectorizable_conversion): Don't call
1976 vec_oprnds0.create (1) for modifier == NONE.
1977
1978 PR middle-end/56461
1979 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
1980 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
1981 vec_oprnds1 right before pushing anything to it for
1982 scalar_shift_arg.
1983
1984 PR middle-end/56461
1985 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
1986 set nbbs to 0 instead of having separate code path.
1987 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
1988 instead of false as last argument if returning NULL.
1989
1990 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
1991
1992 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
1993 the attribute is now called "target" instead of "option".
1994 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
1995 * doc/tm.texi.in (Target Attributes): Likewise document the correct
1996 attribute/pragma name for TARGET_OPTION_VALID_P and
1997 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
1998 * doc/tm.texi: Regenerated.
1999
2000 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
2001
2002 * config/microblaze/microblaze.c:
2003 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
2004 * config/microblaze/microblaze.h: Add -mxl-reorder to
2005 DRIVER_SELF_SPECS.
2006 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
2007 instructions emitted if TARGET_REORDER.
2008 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
2009 or 0 for -m/-mno case, but initialises as 2 to detect default use case
2010 separately.
2011
2012 2013-03-01 Xinliang David Li <davidxl@google.com>
2013
2014 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
2015 walk length.
2016
2017 2013-03-01 Jakub Jelinek <jakub@redhat.com>
2018
2019 PR middle-end/56461
2020 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
2021 vector even when returning true. Fix up function comment formatting.
2022
2023 PR middle-end/56461
2024 * ira-build.c (ira_loop_nodes_count): New variable.
2025 (create_loop_tree_nodes): Initialize it.
2026 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
2027
2028 PR middle-end/56461
2029 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
2030 method on dr_chain and result_chain.
2031 * tree-vect-stmts.c (vectorizable_store): Only call
2032 result_chain.create if j == 0.
2033
2034 PR middle-end/56461
2035 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
2036 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
2037 before overwriting it.
2038
2039 2013-03-01 Tobias Burnus <burnus@net-b.de>
2040
2041 * doc/extended.texi (C Extensions): Change order in @menu
2042 to match @node.
2043 (Other MIPS Built-in Functions): Move last MIPS entry before
2044 "picoChip Built-in Functions".
2045 (SH Built-in Functions): Move after RX Built-in Functions.
2046 * doc/gcc.texi (Introduction): Change order in @menu
2047 to match @node.
2048 * doc/md.texi (Constraints): Ditto.
2049 * gty.texi (Type Information): Ditto.
2050 (User-provided marking routines for template types): Make
2051 subsection.
2052 * doc/invoke.texi (AArch64 Options): Move before
2053 "Adapteva Epiphany Options".
2054
2055 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
2056 Jakub Jelinek <jakub@redhat.com>
2057
2058 PR sanitizer/56454
2059 * asan.c (gate_asan): Lookup no_sanitize_address instead of
2060 no_address_safety_analysis attribute.
2061 * doc/extend.texi (no_address_safety_attribute): Rename to
2062 no_sanitize_address attribute, mention no_address_safety_analysis
2063 attribute as deprecated alias.
2064
2065 2013-02-28 Jakub Jelinek <jakub@redhat.com>
2066
2067 PR middle-end/56461
2068 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
2069 type to vec<vec<tree> > *.
2070 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
2071 to be vec<tree> instead of vec<tree> *, set vec_defs
2072 to vNULL and call vec_defs.create (number_of_vects), adjust other
2073 uses of vec_defs.
2074 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
2075 vectorizable_condition): Adjust vect_get_slp_defs callers.
2076
2077 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2078
2079 * config/aarch64/aarch64.c
2080 (aarch64_float_const_representable): Remove unused variable.
2081
2082 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2083
2084 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
2085
2086 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2087
2088 * config/aarch64/aarch64-builtins.c
2089 (aarch64_init_simd_builtins): Make static.
2090
2091 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
2092
2093 * config/aarch64/aarch64.c
2094 (aarch64_simd_make_constant): Make static.
2095
2096 2013-02-28 Martin Jambor <mjambor@suse.cz>
2097
2098 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
2099 with no initialization to the RHS of debug statements.
2100
2101 2013-02-28 Martin Jambor <mjambor@suse.cz>
2102
2103 PR tree-optimization/56294
2104 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
2105 Adjust dumping.
2106 (get_access_replacement): Do not call create_access_replacement.
2107 Assert a replacement exists.
2108 (get_repl_default_def_ssa_name): Create the replacement declaration
2109 itself.
2110
2111 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2112
2113 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
2114 final_end_function.
2115
2116 2013-02-28 Marek Polacek <polacek@redhat.com>
2117
2118 PR rtl-optimization/56466
2119 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
2120 if we're changing a loop.
2121 (peel_loops_completely): Likewise.
2122
2123 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
2124
2125 PR c++/55813
2126 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
2127
2128 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2129
2130 PR target/56445
2131 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
2132 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
2133 INTX_FTYPE_FX, FX_FTYPE_INTX.
2134 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
2135
2136 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2137
2138 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
2139 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
2140 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
2141 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
2142 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
2143 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
2144 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
2145 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
2146 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
2147 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
2148 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
2149 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
2150 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
2151 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
2152 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
2153 (avrxmega6): Increase max flash segments from 5 to 6.
2154 * config/avr/t-multilib: Regenerate.
2155 * config/avr/avr-tables.opt: Regenerate.
2156 * doc/avr-mmcu.texi: Regenerate.
2157
2158 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
2159
2160 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
2161 (avr_device_to_arch): Rename to avr_device_to_ld.
2162 (avr_device_to_as): New prototype.
2163 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
2164 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
2165 * config/avr/driver-avr.c (avr_device_to_as): New.
2166 (avr_device_to_arch): Rename to avr_device_to_ld.
2167
2168 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2169
2170 PR middle-end/56461
2171 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
2172 method on dr_chain and result_chain.
2173
2174 PR middle-end/56461
2175 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
2176 pointer_set_destroy on not_executed_last_iteration.
2177
2178 PR middle-end/56461
2179 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
2180
2181 PR middle-end/56461
2182 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
2183 FOR_EACH_DEFINED_FUNCTION when freeing state.
2184
2185 PR middle-end/56461
2186 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
2187 pool_free.
2188 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
2189 overwriting it.
2190
2191 PR middle-end/56461
2192 * ipa-cp.c (decide_whether_version_node): Call vec_free on
2193 known_aggs[i].items and release known_aggs vector.
2194
2195 PR middle-end/56461
2196 * ipa-reference.c (propagate): Free node_info even for alias nodes.
2197
2198 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2199
2200 * config/microblaze/microblaze.c (microblaze_emit_compare):
2201 Use xor for EQ/NE comparisions.
2202 * config/microblaze/microblaze.md (cstoresf4): Add constraints
2203 (cbranchsf4): Adjust operator to comparison_operator.
2204
2205 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2206
2207 PR middle-end/56461
2208 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
2209 vector.
2210 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
2211 vec_safe_push, always update *slot.
2212 (redirect_edge_var_map_clear): Use vec_free.
2213 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
2214 (free_var_map_entry): Use vec_free.
2215 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
2216 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
2217
2218 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
2219
2220 PR middle-end/45472
2221 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
2222 when the may_trap_p bit of the exprs being merged differs.
2223 Reorder tests for speculativeness in the logical and operator.
2224
2225 2013-02-27 Jakub Jelinek <jakub@redhat.com>
2226
2227 * incpath.c (add_standard_paths): Use reconcat instead of concat
2228 where appropriate and avoid leaking memory.
2229
2230 * opts.h: Include obstack.h.
2231 (opts_concat): New prototype.
2232 (opts_obstack): New declaration.
2233 * opts.c (opts_concat): New function.
2234 (opts_obstack): New variable.
2235 (init_options_struct): Call gcc_init_obstack on opts_obstack.
2236 (finish_options): Use opts_concat instead of concat
2237 and XOBNEWVEC instead of XNEWVEC.
2238 * opts-common.c (generate_canonical_option, decode_cmdline_option,
2239 generate_option): Likewise.
2240 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
2241 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
2242
2243 PR target/56455
2244 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
2245 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
2246
2247 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2248
2249 PR middle-end/56461
2250 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
2251
2252 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2253
2254 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
2255 (arm_block_move_unaligned_straight): Likewise.
2256 (arm_adjust_block_mem): Likewise.
2257
2258 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
2259
2260 PR target/48901
2261 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
2262 temp, cond and label.
2263 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
2264
2265 PR target/52500
2266 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
2267 * config/c6x/c6x.h (dbx_register_map): Update declaration.
2268
2269 PR target/52501
2270 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
2271 of prologue/epilogue functions.
2272
2273 PR target/52550
2274 * config/tilegx/tilegx.c (tilegx_expand_prologue):
2275 Remove unused variable cfa_offset.
2276 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
2277
2278 PR target/54639
2279 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
2280 type promotion to unsigned.
2281
2282 PR target/54640
2283 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
2284 for HOST_WIDE_INT of 32 bit / same size as int.
2285 (arm_block_move_unaligned_straight): Likewise.
2286 (arm_adjust_block_mem): Likewise.
2287
2288 PR target/54662
2289 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
2290 ALL_CFLAGS.
2291
2292 2013-02-26 Marek Polacek <polacek@redhat.com>
2293
2294 PR tree-optimization/56426
2295 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
2296
2297 2013-02-26 Richard Biener <rguenther@suse.de>
2298
2299 PR target/56444
2300 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
2301 unused variable loops.
2302
2303 2013-02-26 Jakub Jelinek <jakub@redhat.com>
2304
2305 PR tree-optimization/56448
2306 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
2307 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
2308 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
2309 later operands of the references, or even first operand for
2310 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
2311
2312 PR tree-optimization/56443
2313 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
2314 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
2315 to type_for_mode langhook.
2316
2317 2013-02-25 Matt Turner <mattst88@gmail.com>
2318
2319 * doc/invoke.texi: Document r4700.
2320
2321 2013-02-25 Richard Biener <rguenther@suse.de>
2322
2323 PR tree-optimization/56175
2324 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
2325 split out from ...
2326 (simplify_bitwise_binary): ... here. Also guard the conversion
2327 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
2328
2329 2013-02-25 Catherine Moore <clm@codesourcery.com>
2330
2331 Revert:
2332 2013-02-24 Catherine Moore <clm@codesourcery.com>
2333 Maciej W. Rozycki <macro@codesourcery.com>
2334 Tom de Vries <tom@codesourcery.com>
2335 Nathan Sidwell <nathan@codesourcery.com>
2336 Iain Sandoe <iain@codesourcery.com>
2337 Nathan Froyd <froydnj@codesourcery.com>
2338 Chao-ying Fu <fu@mips.com>
2339
2340 * doc/extend.texi: (micromips, nomicromips, nocompression):
2341 Document new function attributes.
2342 * doc/invoke.texi (minterlink-compressed, mmicromips,
2343 m14k, m14ke, m14kec): Document new options.
2344 (minterlink-mips16): Update documentation.
2345 * doc/md.texi (ZC, ZD): Document new constraints.
2346 * configure.ac (gcc_cv_as_micromips): Check if linker
2347 supports the .set micromips directive.
2348 * configure: Regenerate.
2349 * config.in: Regenerate.
2350 * config/mips/mips-tables.opt: Regenerate.
2351 * config/mips/micromips.md: New file.
2352 * constraints.md (ZC, AD): New constraints.
2353 * config/mips/predicates.md (movep_src_register): New predicate.
2354 (movep_src_operand): New predicate.
2355 (non_volatile_mem_operand): New predicate.
2356 * config/mips/mips.md (multimem): New type.
2357 (length): Differentiate between 17-bit and 18-bit branch offsets.
2358 (MOVEP1, MOVEP2): New mode iterator.
2359 (mov_<load>l): Use ZC constraint.
2360 (mov_<load>r): Likewise.
2361 (mov_<store>l): Likewise.
2362 (mov_<store>r): Likewise.
2363 (*branch_equality<mode>_inverted): Add microMIPS support.
2364 (*branch_equality<mode>): Likewise.
2365 (*jump_absolute): Likewise.
2366 (indirect_jump_<mode>): Likewise.
2367 (tablejump_<mode>): Likewise.
2368 (<optab>_internal): Likewise.
2369 (sibcall_internal): Likewise.
2370 (sibcall_value_internal): Likewise.
2371 (prefetch): Use constraint ZD.
2372 * config/mips/mips.opt (minterlink-compressed): New option.
2373 (minterlink-mips16): Now an alias for minterlink-compressed.
2374 (mmicromips): New option.
2375 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2376 (compare_and_swap_12): Likewise.
2377 (sync_add<mode>): Likewise.
2378 (sync_<optab>_12): Likewise.
2379 (sync_old_<optab>_12): Likewise.
2380 (sync_new_<optab>_12): Likewise.
2381 (sync_nand_12): Likewise.
2382 (sync_old_nand_12): Likewise.
2383 (sync_new_nand_12): Likewise.
2384 (sync_sub<mode>): Likewise.
2385 (sync_old_add<mode>): Likewise.
2386 (sync_old_sub<mode>): Likewise.
2387 (sync_new_add<mode>): Likewise.
2388 (sync_new_sub<mode>): Likewise.
2389 (sync_<optab><mode>): Likewise.
2390 (sync_old_<optab><mode>): Likewise.
2391 (sync_new_<optab><mode>): Likewise.
2392 (sync_nand<mode>): Likewise.
2393 (sync_old_nand<mode>): Likewise.
2394 (sync_new_nand<mode>): Likewise.
2395 (sync_lock_test_and_set<mode>): Likewise.
2396 (test_and_set_12): Likewise.
2397 (atomic_compare_and_swap<mode>): Likewise.
2398 (atomic_exchange<mode>_llsc): Likewise.
2399 (atomic_fetch_add<mode>_llsc): Likewise.
2400 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2401 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2402 (umips_save_restore_pattern_p): Likewise.
2403 (umips_load_store_pair_p): Likewise.
2404 (umips_output_load_store_pair): Likewise.
2405 (umips_movep_target_p): Likewise.
2406 (umips_12bit_offset_address_p): Likewise.
2407 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2408 (mips_base_mips16): Rename this...
2409 (mips_base_compression_flags): ...to this. Update all uses.
2410 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2411 (mips_mips16_decl_p): Delete.
2412 (mips_nomips16_decl_p): Delete.
2413 (mips_get_compress_on_flags): New function.
2414 (mips_get_compress_off_flags): New function.
2415 (mips_get_compress_mode): New function.
2416 (mips_get_compress_on_name): New function.
2417 (mips_get_compress_off_name): New function.
2418 (mips_insert_attributes): Support multiple compression types.
2419 (mips_merge_decl_attributes): Likewise.
2420 (umips_12bit_offset_address_p): New function.
2421 (mips_start_function_definition): Emit .set micromips directive.
2422 (mips_call_may_need_jalx_p): New function.
2423 (mips_function_ok_for_sibcall): Add microMIPS support.
2424 (mips_print_operand_punctuation): Support short delay slots and
2425 compact jumps.
2426 (umips_swm_mask, umips_swm_encoding): New.
2427 (umips_build_save_restore): New function.
2428 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2429 (was_mips16_p): Remove.
2430 (old_compression_mode): New.
2431 (mips_set_compression_mode): New function.
2432 (mips_set_current_function): Add microMIPS support.
2433 (mips_option_override): Likewise.
2434 (umips_save_restore_pattern_p): New function.
2435 (umips_output_save_restore): New function.
2436 (umips_load_store_pair_p_1): New function.
2437 (umips_load_store_pair_p): New function.
2438 (umips_output_load_store_pair_1): New function.
2439 (umips_output_load_store_pair): New function.
2440 (umips_movep_target_p) New function.
2441 (mips_prepare_pch_save): Add microMIPS support.
2442 * config/mips/mips.h (TARGET_COMPRESSION): New.
2443 (TARGET_CPU_CPP_BUILTINS): Update macro
2444 to use new compression flags and to support microMIPS.
2445 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2446 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2447 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2448 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2449 (ASM_SPEC): Support mmicromips and mno-micromips.
2450 (M16STORE_REG_P): New macro.
2451 (MIPS_CALL): Support TARGET_MICROMIPS.
2452 (MICROMIPS_J): New macro.
2453 (mips_base_mips16): Rename this...
2454 (mips_base_compression_flags): ...to this.
2455 (UMIPS_12BIT_OFFSET_P): New macro.
2456 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2457 (MULTILIB_DIRNAMES): Likewise.
2458
2459 2013-02-25 Tom de Vries <tom@codesourcery.com>
2460
2461 PR rtl-optimization/56131
2462 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
2463 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
2464 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
2465
2466 2013-02-25 Tobias Burnus <burnus@net-b.de>
2467
2468 * doc/invoke.texi (-fsanitize=): Move from optimization
2469 to debugging options.
2470
2471 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2472
2473 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
2474
2475 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
2476 Alexander Monakov <amonakov@ispras.ru>
2477
2478 PR middle-end/56077
2479 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
2480 flush pending lists also on non-jumps. Adjust comment.
2481
2482 2013-02-24 Catherine Moore <clm@codesourcery.com>
2483 Maciej W. Rozycki <macro@codesourcery.com>
2484 Tom de Vries <tom@codesourcery.com>
2485 Nathan Sidwell <nathan@codesourcery.com>
2486 Iain Sandoe <iain@codesourcery.com>
2487 Nathan Froyd <froydnj@codesourcery.com>
2488 Chao-ying Fu <fu@mips.com>
2489
2490 * doc/extend.texi: (micromips, nomicromips, nocompression):
2491 Document new function attributes.
2492 * doc/invoke.texi (minterlink-compressed, mmicromips,
2493 m14k, m14ke, m14kec): Document new options.
2494 (minterlink-mips16): Update documentation.
2495 * doc/md.texi (ZC, ZD): Document new constraints.
2496 * configure.ac (gcc_cv_as_micromips): Check if linker
2497 supports the .set micromips directive.
2498 * configure: Regenerate.
2499 * config.in: Regenerate.
2500 * config/mips/mips-tables.opt: Regenerate.
2501 * config/mips/micromips.md: New file.
2502 * constraints.md (ZC, AD): New constraints.
2503 * config/mips/predicates.md (movep_src_register): New predicate.
2504 (movep_src_operand): New predicate.
2505 (non_volatile_mem_operand): New predicate.
2506 * config/mips/mips.md (multimem): New type.
2507 (length): Differentiate between 17-bit and 18-bit branch offsets.
2508 (MOVEP1, MOVEP2): New mode iterator.
2509 (mov_<load>l): Use ZC constraint.
2510 (mov_<load>r): Likewise.
2511 (mov_<store>l): Likewise.
2512 (mov_<store>r): Likewise.
2513 (*branch_equality<mode>_inverted): Add microMIPS support.
2514 (*branch_equality<mode>): Likewise.
2515 (*jump_absolute): Likewise.
2516 (indirect_jump_<mode>): Likewise.
2517 (tablejump_<mode>): Likewise.
2518 (<optab>_internal): Likewise.
2519 (sibcall_internal): Likewise.
2520 (sibcall_value_internal): Likewise.
2521 (prefetch): Use constraint ZD.
2522 * config/mips/mips.opt (minterlink-compressed): New option.
2523 (minterlink-mips16): Now an alias for minterlink-compressed.
2524 (mmicromips): New option.
2525 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
2526 (compare_and_swap_12): Likewise.
2527 (sync_add<mode>): Likewise.
2528 (sync_<optab>_12): Likewise.
2529 (sync_old_<optab>_12): Likewise.
2530 (sync_new_<optab>_12): Likewise.
2531 (sync_nand_12): Likewise.
2532 (sync_old_nand_12): Likewise.
2533 (sync_new_nand_12): Likewise.
2534 (sync_sub<mode>): Likewise.
2535 (sync_old_add<mode>): Likewise.
2536 (sync_old_sub<mode>): Likewise.
2537 (sync_new_add<mode>): Likewise.
2538 (sync_new_sub<mode>): Likewise.
2539 (sync_<optab><mode>): Likewise.
2540 (sync_old_<optab><mode>): Likewise.
2541 (sync_new_<optab><mode>): Likewise.
2542 (sync_nand<mode>): Likewise.
2543 (sync_old_nand<mode>): Likewise.
2544 (sync_new_nand<mode>): Likewise.
2545 (sync_lock_test_and_set<mode>): Likewise.
2546 (test_and_set_12): Likewise.
2547 (atomic_compare_and_swap<mode>): Likewise.
2548 (atomic_exchange<mode>_llsc): Likewise.
2549 (atomic_fetch_add<mode>_llsc): Likewise.
2550 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
2551 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
2552 (umips_save_restore_pattern_p): Likewise.
2553 (umips_load_store_pair_p): Likewise.
2554 (umips_output_load_store_pair): Likewise.
2555 (umips_movep_target_p): Likewise.
2556 (umips_12bit_offset_address_p): Likewise.
2557 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
2558 (mips_base_mips16): Rename this...
2559 (mips_base_compression_flags): ...to this. Update all uses.
2560 (mips_attribute_table): Add micromips, nomicromips and nocompression.
2561 (mips_mips16_decl_p): Delete.
2562 (mips_nomips16_decl_p): Delete.
2563 (mips_get_compress_on_flags): New function.
2564 (mips_get_compress_off_flags): New function.
2565 (mips_get_compress_mode): New function.
2566 (mips_get_compress_on_name): New function.
2567 (mips_get_compress_off_name): New function.
2568 (mips_insert_attributes): Support multiple compression types.
2569 (mips_merge_decl_attributes): Likewise.
2570 (umips_12bit_offset_address_p): New function.
2571 (mips_start_function_definition): Emit .set micromips directive.
2572 (mips_call_may_need_jalx_p): New function.
2573 (mips_function_ok_for_sibcall): Add microMIPS support.
2574 (mips_print_operand_punctuation): Support short delay slots and
2575 compact jumps.
2576 (umips_swm_mask, umips_swm_encoding): New.
2577 (umips_build_save_restore): New function.
2578 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
2579 (was_mips16_p): Remove.
2580 (old_compression_mode): New.
2581 (mips_set_compression_mode): New function.
2582 (mips_set_current_function): Add microMIPS support.
2583 (mips_option_override): Likewise.
2584 (umips_save_restore_pattern_p): New function.
2585 (umips_output_save_restore): New function.
2586 (umips_load_store_pair_p_1): New function.
2587 (umips_load_store_pair_p): New function.
2588 (umips_output_load_store_pair_1): New function.
2589 (umips_output_load_store_pair): New function.
2590 (umips_movep_target_p) New function.
2591 (mips_prepare_pch_save): Add microMIPS support.
2592 * config/mips/mips.h (TARGET_COMPRESSION): New.
2593 (TARGET_CPU_CPP_BUILTINS): Update macro
2594 to use new compression flags and to support microMIPS.
2595 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
2596 (MIPS_ARCH_FLOAT_SPEC): Likewise.
2597 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
2598 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
2599 (ASM_SPEC): Support mmicromips and mno-micromips.
2600 (M16STORE_REG_P): New macro.
2601 (MIPS_CALL): Support TARGET_MICROMIPS.
2602 (MICROMIPS_J): New macro.
2603 (mips_base_mips16): Rename this...
2604 (mips_base_compression_flags): ...to this.
2605 (UMIPS_12BIT_OFFSET_P): New macro.
2606 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
2607 (MULTILIB_DIRNAMES): Likewise.
2608
2609 2013-02-24 Jakub Jelinek <jakub@redhat.com>
2610
2611 PR target/52555
2612 * target-globals.c (save_target_globals): For init_reg_sets and
2613 target_reinit remporarily set this_fn_optabs to this_target_optabs.
2614
2615 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
2616
2617 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
2618 * config/aarch64/t-aarch64
2619 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
2620
2621 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
2622
2623 PR inline-asm/56148
2624 * lra-constraints.c (process_alt_operands): Reload operand
2625 conflicting with earlier clobber only if no more other conflicting
2626 operands.
2627
2628 2013-02-22 Jakub Jelinek <jakub@redhat.com>
2629
2630 PR sanitizer/56393
2631 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
2632 if not linking a shared library.
2633
2634 2013-02-22 Seth LaForge <sethml@google.com>
2635
2636 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
2637
2638 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
2639
2640 * config/arm/arm.md (split for extendsidi): Update condition.
2641 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
2642 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
2643 (qhs_zextenddi_cstr): Likewise.
2644
2645 2013-02-21 Jakub Jelinek <jakub@redhat.com>
2646
2647 PR middle-end/56420
2648 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
2649 avoid signed wrapping.
2650 (expand_mult): Handle properly multiplication by
2651 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
2652 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
2653 in the compiler if coeff is HOST_WIDE_INT_MIN.
2654 (expand_divmod): Don't make ext_op1 static, change it's type to
2655 uhwi. Avoid undefined behavior in -INTVAL (op1).
2656
2657 PR rtl-optimization/50339
2658 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
2659 field.
2660 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
2661 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
2662 into splitting_ashiftrt field.
2663 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
2664 ASHIFTRT.
2665 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
2666 choices.
2667
2668 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
2669
2670 PR middle-end/56108
2671 * trans-mem.c (execute_tm_mark): Do not expand transactions that
2672 are sure to go irrevocable.
2673
2674 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
2675
2676 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
2677 scalars are valid operands.
2678
2679 2013-02-21 Martin Jambor <mjambor@suse.cz>
2680
2681 PR tree-optimization/56310
2682 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
2683 only matching indices and non-negative final offsets.
2684 (intersect_aggregates_with_edge): Pass src_idx to
2685 agg_replacements_to_vector. Pass src_idx insstead of index to
2686 intersect_with_agg_replacements.
2687
2688 2013-02-21 Martin Jambor <mjambor@suse.cz>
2689
2690 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
2691 instead of hard-wired defaults.
2692
2693 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
2694
2695 * doc/invoke.texi (MIPS Options): Update documentation of the
2696 floating-point multiply-accumulate instruction restrictions.
2697
2698 2013-02-21 Kostya Serebryany <kcc@google.com>
2699
2700 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
2701 asan_shadow_offset on x86_64 linux.
2702
2703 2013-02-21 Richard Biener <rguenther@suse.de>
2704
2705 PR tree-optimization/56415
2706 Revert
2707 2013-02-11 Richard Biener <rguenther@suse.de>
2708
2709 PR tree-optimization/56273
2710 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
2711 first VRP run.
2712
2713 2013-02-21 Jakub Jelinek <jakub@redhat.com>
2714
2715 PR bootstrap/56258
2716 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
2717 instead of @itemx.
2718
2719 PR inline-asm/56405
2720 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
2721 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
2722
2723 2013-02-20 Jan Hubicka <jh@suse.cz>
2724
2725 PR tree-optimization/56265
2726 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
2727 when target is referenced for first time.
2728
2729 2013-02-20 Richard Biener <rguenther@suse.de>
2730
2731 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
2732 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
2733 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
2734 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
2735 not return anything.
2736 (rename_ssa_copies): Do not remove unused locals.
2737 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
2738 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
2739 * passes.c (execute_function_todo): Do not schedule unused locals
2740 removal if cleanup_tree_cfg did something.
2741 * tree-ssa-live.c (remove_unused_locals): Dump statistics
2742 about the number of removed locals.
2743
2744 2013-02-20 Richard Biener <rguenther@suse.de>
2745
2746 PR tree-optimization/56398
2747 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
2748
2749 2013-02-20 Martin Jambor <mjambor@suse.cz>
2750
2751 PR tree-optimization/55334
2752 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
2753 restricted pointers to arrays.
2754
2755 2013-02-20 Richard Biener <rguenther@suse.de>
2756 Jakub Jelinek <jakub@redhat.com>
2757
2758 PR tree-optimization/56396
2759 * tree-ssa-ccp.c (n_const_val): New static variable.
2760 (get_value): Return NULL for SSA names we don't have a lattice
2761 entry for.
2762 (ccp_initialize): Initialize n_const_val.
2763 * tree-ssa-copy.c (n_copy_of): New static variable.
2764 (init_copy_prop): Initialize n_copy_of.
2765 (get_value): Return NULL_TREE for SSA names we don't have a
2766 lattice entry for.
2767
2768 2013-02-20 Martin Jambor <mjambor@suse.cz>
2769
2770 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
2771
2772 2013-02-20 Richard Biener <rguenther@suse.de>
2773
2774 * genpreds.c (write_lookup_constraint): Do not compare first
2775 letter of the constraint again.
2776
2777 2013-02-20 Richard Biener <rguenther@suse.de>
2778
2779 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
2780 and ceil_log2.
2781 (get_use_iv_cost): Terminate hashtable walk when coming across
2782 an empty entry.
2783
2784 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
2785
2786 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
2787 reassociation for avx2 targets.
2788
2789 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2790
2791 * config/microblaze/microblaze.c: microblaze_has_clz = 0
2792 Add version check for v8.10.a to enable microblaze_has_clz
2793 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
2794 version and TARGET_PATTERN_COMPARE check
2795 * config/microblaze/microblaze.md: New clzsi2 instruction
2796
2797 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2798
2799 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
2800 function before branching.
2801
2802 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
2803
2804 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
2805 DUMP_INSN_RTX_UID.
2806 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
2807
2808 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
2809
2810 PR middle-end/55889
2811 * sel-sched.c: Include ira.h.
2812 (implicit_clobber_conflict_p): New function.
2813 (moveup_expr): Use it.
2814 * Makefile.in (sel-sched.o): Depend on ira.h.
2815
2816 2013-02-19 Richard Biener <rguenther@suse.de>
2817
2818 PR tree-optimization/56384
2819 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
2820 (vn_hash_type): Split out from ...
2821 (vn_hash_constant_with_type): ... here.
2822 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
2823 (vn_phi_eq): Compare types from vn_phi_s structure.
2824 (vn_phi_lookup): Populate vn_phi_s type.
2825 (vn_phi_insert): Likewise.
2826
2827 2013-02-19 Jakub Jelinek <jakub@redhat.com>
2828
2829 PR tree-optimization/56350
2830 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
2831 if haven't found reduction or nested cycle operand, rather than
2832 asserting we must find it.
2833
2834 PR tree-optimization/56381
2835 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
2836 to fold_build3.
2837
2838 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
2839 Jakub Jelinek <jakub@redhat.com>
2840
2841 PR target/52555
2842 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
2843 (swap_optab_enable): Same.
2844 (init_all_optabs): Use argument instead of global.
2845 * tree.h (struct tree_optimization_option): New field target_optabs.
2846 * expr.h (init_all_optabs): Add argument to prototype.
2847 (TREE_OPTIMIZATION_OPTABS): New.
2848 (save_optabs_if_changed): Protoize.
2849 * optabs.h: Declare this_fn_optabs.
2850 * optabs.c (save_optabs_if_changed): New.
2851 Declare this_fn_optabs.
2852 (init_optabs): Add argument to init_all_optabs() call.
2853 * function.c (invoke_set_current_function_hook): Handle per
2854 function optabs.
2855 * function.h (struct function): New field optabs.
2856 * config/mips/mips.c (mips_set_mips16_mode): Handle when
2857 optimization_current_node has changed.
2858 * target-globals.h (save_target_globals_default_opts): Protoize.
2859 * target-globals.c (save_target_globals_default_opts): New.
2860
2861 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2862
2863 PR target/56347
2864 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
2865 registers %fr12 and %fr12R as call used.
2866
2867 PR target/56214
2868 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
2869 and HImode, require all displacements to be an integer multiple of
2870 their mode size.
2871 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
2872 only allow QImode and HImode when reload is in progress and strict is
2873 true. Likewise for symbolic addresses. Use base14_operand to check
2874 displacements in REG+BASE addresses.
2875
2876 2013-02-18 Richard Biener <rguenther@suse.de>
2877
2878 PR tree-optimization/56366
2879 * tree-vect-loop.c (get_initial_def_for_induction): Properly
2880 handle sign-conversion of outer-loop initial induction value.
2881
2882 2013-02-18 Richard Biener <rguenther@suse.de>
2883
2884 PR middle-end/56349
2885 * cfghooks.c (merge_blocks): If we merge a latch into another
2886 block adjust references to it.
2887 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
2888 (verify_loop_structure): Verify that a recorded latch is in fact
2889 a latch.
2890
2891 2013-02-18 Richard Biener <rguenther@suse.de>
2892
2893 PR tree-optimization/56321
2894 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
2895 order SSA name release and virtual operand unlinking.
2896
2897 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2898
2899 * config/microblaze/microblaze.md (save_stack_block): Define.
2900 (restore_stack_block): Likewise.
2901
2902 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2903
2904 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
2905 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
2906 * config/microblaze/microblaze.c (microblaze_option_override):
2907 Bail out early for PIC modes when target does not support PIC.
2908
2909 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
2910
2911 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
2912 Replace with a microblaze version.
2913 (microblaze_trampoline_init): Adapt for microblaze.
2914 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
2915 microblaze.
2916
2917 2013-02-16 Jakub Jelinek <jakub@redhat.com>
2918 Dodji Seketeli <dodji@redhat.com>
2919
2920 PR asan/56330
2921 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
2922 (instrument_mem_region_access): Do not forget to always put
2923 instrumentation of the of 'base' and 'base + len' in a "if (len !=
2924 0) statement, even for cases where either 'base' or 'base + len'
2925 are not instrumented -- because they have been previously
2926 instrumented. Simplify the logic by putting all the statements
2927 instrument 'base + len' inside a sequence, and then insert that
2928 sequence right before the current insertion point. Then, to
2929 instrument 'base + len', just get an iterator on that statement.
2930 And do not forget to update the pointer to iterator the function
2931 received as argument.
2932
2933 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
2934
2935 PR rtl-optimization/56348
2936 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
2937
2938 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
2939
2940 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
2941 (clean_graph_dump_file): Pass base to start_graph_dump.
2942
2943 2013-02-14 Richard Henderson <rth@redhat.com>
2944
2945 PR target/55941
2946 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
2947
2948 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
2949
2950 * collect2-aix.h: Define F_LOADONLY.
2951
2952 2013-02-14 Richard Biener <rguenther@suse.de>
2953
2954 PR lto/50494
2955 * varasm.c (output_constant_def_1): Get the decl representing
2956 the constant as argument.
2957 (output_constant_def): Wrap output_constant_def_1.
2958 (make_decl_rtl): Use output_constant_def_1 with the decl
2959 representing the constant.
2960 (build_constant_desc): Optionally re-use a decl already
2961 representing the constant.
2962 (tree_output_constant_def): Adjust.
2963
2964 2013-02-14 Dodji Seketeli <dodji@redhat.com>
2965
2966 Fix an asan crash
2967 * asan.c (instrument_builtin_call): Really put the length of the
2968 second source argument into src1_len.
2969
2970 2013-02-13 Jakub Jelinek <jakub@redhat.com>
2971
2972 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
2973 argument. If it is false, don't create edge from then_bb to
2974 fallthru_bb.
2975 (insert_if_then_before_iter): Pass true to it.
2976 (build_check_stmt): Pass false to it.
2977 (transform_statements): Flush hash table only on extended basic
2978 block boundaries, rather than at the beginning of every bb.
2979 Don't flush hash table on nonfreeing_call_p calls.
2980 * tree-flow.h (nonfreeing_call_p): New prototype.
2981 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
2982
2983 2013-02-13 David S. Miller <davem@davemloft.net>
2984
2985 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
2986
2987 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
2988
2989 PR target/56184
2990 * ira.c (max_regno_before_ira): Move from ...
2991 (ira): ... here.
2992 (fix_reg_equiv_init): Use max_regno_before_ira instead of
2993 vec_safe_length.
2994
2995 2013-02-13 Jakub Jelinek <jakub@redhat.com>
2996
2997 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
2998
2999 2013-02-13 Richard Biener <rguenther@suse.de>
3000
3001 PR lto/56295
3002 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
3003 globals in MEM_REFs.
3004
3005 2013-02-13 Richard Biener <rguenther@suse.de>
3006
3007 * loop-init.c (loop_optimizer_init): Clear loop state when
3008 re-initializing preserved loops.
3009 * loop-unswitch.c (unswitch_single_loop): Return whether
3010 we unswitched the loop. Do not verify loop state here.
3011 (unswitch_loops): When we unswitched a loop discover new loops.
3012
3013 2013-02-13 Kostya Serebryany <kcc@google.com>
3014
3015 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
3016 on x86_64 linux.
3017 * sanitizer.def: Rename __asan_init to __asan_init_v1.
3018
3019 2013-02-12 Dodji Seketeli <dodji@redhat.com>
3020
3021 Avoid instrumenting duplicated memory access in the same basic block
3022 * Makefile.in (asan.o): Add new dependency on hash-table.h
3023 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
3024 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
3025 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
3026 (free_mem_ref_resources, has_mem_ref_been_instrumented)
3027 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
3028 (get_mem_ref_of_assignment): New functions.
3029 (get_mem_refs_of_builtin_call): Extract from
3030 instrument_builtin_call and tweak a little bit to make it fit with
3031 the new signature.
3032 (instrument_builtin_call): Use the new
3033 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
3034 of is_gimple_builtin_call.
3035 (instrument_derefs, instrument_mem_region_access): Insert the
3036 instrumented memory reference into the hash table.
3037 (maybe_instrument_assignment): Renamed instrument_assignment into
3038 this, and change it to advance the iterator when instrumentation
3039 actually happened and return true in that case. This makes it
3040 homogeneous with maybe_instrument_assignment, and thus give a
3041 chance to callers to be more 'regular'.
3042 (transform_statements): Clear the memory reference hash table
3043 whenever we enter a new BB, when we cross a function call, or when
3044 we are done transforming statements. Use
3045 maybe_instrument_assignment instead of instrumentation. No more
3046 need to special case maybe_instrument_assignment and advance the
3047 iterator after calling it; it's now handled just like
3048 maybe_instrument_call. Update comment.
3049
3050 2013-02-13 Richard Biener <rguenther@suse.de>
3051
3052 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
3053 Fix loop discovery code.
3054
3055 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
3056
3057 PR inline-asm/56148
3058 * lra-constraints.c (process_alt_operands): Match early clobber
3059 operand with itself. Check conflicts with earlyclobber only if
3060 the operand is not reloaded. Prefer to reload conflicting operand
3061 if earlyclobber and matching operands are the same.
3062
3063 2013-02-12 Richard Biener <rguenther@suse.de>
3064
3065 PR lto/56297
3066 * lto-streamer-out.c (write_symbol): Do not output symbols
3067 for hard register variables.
3068
3069 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
3070
3071 PR target/54222
3072 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
3073 (umulsidi3_insn, mulsidi3_insn): New insns.
3074
3075 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
3076
3077 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
3078 (struct tune_params): Add vec_costs field.
3079 * config/arm/arm.c (arm_builtin_vectorization_cost)
3080 (arm_add_stmt_cost): New functions.
3081 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
3082 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
3083 (arm_default_vec_cost): New struct of type cpu_vec_costs.
3084 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
3085 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
3086 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
3087 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
3088
3089 2013-02-12 Richard Biener <rguenther@suse.de>
3090
3091 PR lto/56295
3092 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
3093 decls again if possible.
3094
3095 2013-02-12 Richard Biener <rguenther@suse.de>
3096
3097 PR middle-end/56288
3098 * tree-ssa.c (verify_ssa_name): Fix check, move
3099 SSA_NAME_IN_FREE_LIST check up.
3100
3101 2013-02-12 Jakub Jelinek <jakub@redhat.com>
3102 Steven Bosscher <steven@gcc.gnu.org>
3103
3104 PR rtl-optimization/56151
3105 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
3106 equal to op0 or op1, and last_insn pattern is CODE operation
3107 with MEM dest and one of the operands matches that MEM.
3108
3109 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
3110
3111 * doc/extend.texi: Document Function Multiversioning and "default"
3112 parameter string to target attribute.
3113 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
3114 target attribute parameter is "default".
3115 (ix86_compare_version_priority): Remove checks for target attribute.
3116 (ix86_mangle_function_version_assembler_name): Change error to sorry.
3117 Remove check for target attribute equal to NULL. Add assert.
3118 (ix86_generate_version_dispatcher_body): Change error to sorry.
3119
3120 2013-02-11 Iain Sandoe <iain@codesourcery.com>
3121 Jack Howarth <howarth@bromo.med.uc.edu>
3122 Patrick Marlier <patrick.marlier@gmail.com>
3123
3124 PR libitm/55693
3125 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
3126 define ENDFILE_SPEC as TM_DESTRUCTOR.
3127 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
3128
3129 2013-02-11 Alexander Potapenko <glider@google.com>
3130 Jack Howarth <howarth@bromo.med.uc.edu>
3131 Jakub Jelinek <jakub@redhat.com>
3132
3133 PR sanitizer/55617
3134 * config/darwin.c (cdtor_record): Rename ctor_record.
3135 (sort_cdtor_records): Rename sort_ctor_records.
3136 (finalize_dtors): New routine to sort destructors by
3137 priority before use in assemble_integer.
3138 (machopic_asm_out_destructor): Use finalize_dtors if needed.
3139
3140 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
3141
3142 PR rtl-optimization/56275
3143 * simplify-rtx.c (avoid_constant_pool_reference): Check that
3144 offset is non-negative and less than cmode size before
3145 calling simplify_subreg.
3146
3147 2013-02-11 Richard Biener <rguenther@suse.de>
3148
3149 PR tree-optimization/56264
3150 * cfgloop.h (fix_loop_structure): Adjust prototype.
3151 * loop-init.c (fix_loop_structure): Return the number of
3152 newly discovered loops.
3153 * tree-cfgcleanup.c (repair_loop_structures): When new loops
3154 are discovered, do a full loop-closed SSA rewrite.
3155
3156 2013-02-11 Richard Biener <rguenther@suse.de>
3157
3158 PR tree-optimization/56273
3159 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
3160 first VRP run.
3161 (check_array_ref): Fix missing newline in dumps.
3162 (search_for_addr_array): Likewise.
3163
3164 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
3165
3166 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
3167
3168 2013-02-09 Jakub Jelinek <jakub@redhat.com>
3169
3170 PR target/56256
3171 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
3172
3173 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
3174
3175 PR rtl-optimization/56246
3176 * lra-constraints.c (simplify_operand_subreg): Try to reuse
3177 reload pseudo.
3178 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
3179 constraints are satisfied.
3180
3181 2013-02-08 Jeff Law <law@redhat.com>
3182
3183 PR debug/53948
3184 * emit-rtl.c (reg_is_parm_p): New function.
3185 * regs.h (reg_is_parm_p): New prototype.
3186 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
3187 callee-clobbered registers.
3188
3189 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3190
3191 PR target/56043
3192 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
3193 If there is no implicit builtin declaration, just return NULL.
3194
3195 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3196
3197 * config/i386/sse.md (FMAMODEM): New mode iterator.
3198 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
3199 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
3200
3201 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3202
3203 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
3204 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
3205 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
3206
3207 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
3208
3209 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
3210 (microblaze*-*-elf): Likewise.
3211 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
3212 LINK_SPEC.
3213 * config/microblaze/microblaze-c.c: Add builtin defines for
3214 _LITTLE_ENDIAN and _BIG_ENDIAN.
3215 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
3216 add to TARGET_DEFAULT flags.
3217 Expand ASM_SPEC and LINK_SPEC.
3218 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
3219 * config/microblaze/microblaze.md: Update extendsidi2 and
3220 movdi_internal instructions to use low-order / high-order reg
3221 print_operands.
3222 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
3223 options and inversemask / mask of LITTLE_ENDIAN.
3224 * config/microblaze/t-microblaze: Expand multilib options to
3225 include mlittle-endian (le) and update exceptions patterns.
3226
3227 2013-02-08 Jakub Jelinek <jakub@redhat.com>
3228
3229 PR rtl-optimization/56195
3230 * lra-constraints.c (get_reload_reg): Don't reuse regs
3231 if they have smaller mode than requested, if they have
3232 wider mode than requested, try to return a SUBREG.
3233
3234 PR tree-optimization/56250
3235 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
3236 if type is unsigned and code isn't MULT_EXPR.
3237
3238 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3239
3240 PR tree-optimization/56064
3241 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
3242 bits according to mode.
3243 * fixed-value.h (fixed_from_double_int)
3244 (const_fixed_from_double_int): Adjust comments.
3245
3246 2013-02-08 Richard Biener <rguenther@suse.de>
3247
3248 PR lto/56231
3249 * lto-streamer.h (struct data_in): Remove current_file, current_line
3250 and current_col members.
3251 * lto-streamer-out.c (lto_output_location): Stream changed bits
3252 en-block for efficiency.
3253 * lto-streamer-in.c (clear_line_info): Remove.
3254 (lto_input_location): Cache current file, line and column
3255 globally via local statics. Read changed bits en-block.
3256 (input_function): Do not call clear_line_info.
3257 (lto_read_body): Likewise.
3258 (lto_input_toplevel_asms): Likewise.
3259
3260 2013-02-08 Michael Matz <matz@suse.de>
3261
3262 PR tree-optimization/52448
3263 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
3264 (nt_call_phase): New static.
3265 (add_or_mark_expr): Only mark accesses with newer phase than any
3266 call seen.
3267 (nonfreeing_call_p): New.
3268 (nt_init_block): Update nt_call_phase, mark blocks as visited.
3269 (nt_fini_block): Keep blocks marked as visited.
3270 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
3271
3272 2013-02-08 Richard Biener <rguenther@suse.de>
3273
3274 * ira.c (ira): Free broken dominator information.
3275
3276 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
3277
3278 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
3279
3280 2013-02-08 Marek Polacek <polacek@redhat.com>
3281
3282 * cfgloop.c (verify_loop_structure): Add more checking of headers.
3283
3284 2013-02-08 Richard Biener <rguenther@suse.de>
3285
3286 PR middle-end/56181
3287 * cfgloop.h (flow_loops_find): Adjust.
3288 (bb_loop_header_p): Declare.
3289 * cfgloop.c (bb_loop_header_p): New function split out from ...
3290 (flow_loops_find): ... here. Adjust function signature,
3291 support incremental loop structure update.
3292 (verify_loop_structure): Cleanup. Verify a loop is a loop.
3293 * cfgloopmanip.c (fix_loop_structure): Move ...
3294 * loop-init.c (fix_loop_structure): ... here.
3295 (apply_loop_flags): Split out from ...
3296 (loop_optimizer_init): ... here.
3297 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
3298 in incremental mode, only remove dead loops here.
3299
3300 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
3301
3302 PR target/54222
3303 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
3304 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
3305 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
3306 (*round<mode>3.libgcc): New insns for fixed-modes.
3307 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
3308 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
3309 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
3310 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
3311 implementations. Define to __builtin_avr_absFX,
3312 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
3313 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
3314 __builtin_avr_countlsFX, respectively.
3315 * config/avr/avr-c.c (target.h): Include it.
3316 (enum avr_builtin_id): New enum.
3317 (avr_resolve_overloaded_builtin): New static function.
3318 (avr_register_target_pragmas): Use it to set
3319 targetm.resolve_overloaded_builtin.
3320 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
3321 tree nodes used by DEF_BUILTIN.
3322 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
3323 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
3324 <AVR_BUILTIN_xxBITS>: Same.
3325
3326 2013-02-08 Richard Biener <rguenther@suse.de>
3327
3328 * cfgloop.c (verify_loop_structure): Properly handle
3329 a loop exiting to another loop header.
3330 * ira-int.h (ira_loops): Remove.
3331 * ira.c (ira_loops): Remove.
3332 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
3333 (do_reload): Use loop_optimizer_finalize.
3334 * ira-build.c (create_loop_tree_nodes): Use get_loops and
3335 number_of_loops to access the loop tree.
3336 (more_one_region_p): Likewise.
3337 (finish_loop_tree_nodes): Likewise.
3338 (rebuild_regno_allocno_maps): Likewise.
3339 (mark_loops_for_removal): Likewise.
3340 (mark_all_loops_for_removal): Likewise.
3341 (remove_unnecessary_regions): Likewise.
3342 (ira_build): Likewise.
3343 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3344
3345 2013-02-08 Richard Biener <rguenther@suse.de>
3346
3347 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
3348 * ipa-pure-const.c (analyze_function): Avoid calling
3349 mark_irreducible_loops twice.
3350 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
3351
3352 2013-02-07 David S. Miller <davem@davemloft.net>
3353
3354 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
3355 on 'reg'.
3356 * var-tracking.c (vt_add_function_parameter): Test the presence of
3357 HAVE_window_save properly and do not remap argument registers when
3358 we have a leaf function.
3359
3360 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
3361
3362 PR bootstrap/56227
3363 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
3364 instead of "ll".
3365 * config/i386/i386.c (ix86_print_operand): Ditto.
3366
3367 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3368
3369 * lra-constraints.c (process_alt_operands): Fix recently added comment.
3370
3371 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
3372
3373 PR rtl-optimization/56225
3374 * lra-constraints.c (process_alt_operands): Check that reload hard
3375 reg can hold value for strict_low_part.
3376
3377 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3378
3379 PR debug/56154
3380 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
3381 dwarf2out_end_function.
3382 (in_first_function_p, maybe_at_text_label_p,
3383 first_loclabel_num_not_at_text_label): New variables.
3384 (dwarf2out_var_location): In the first function find out
3385 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
3386 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
3387 functions.
3388
3389 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
3390
3391 PR rtl-optimization/56178
3392 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
3393 SUBREG of a register. Tidy up related block of code.
3394 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
3395 note if the source is a register or a SUBREG of a register.
3396
3397 2013-02-07 Jakub Jelinek <jakub@redhat.com>
3398
3399 PR target/56228
3400 * config/rs6000/rs6000.md (ptrm): New mode attr.
3401 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
3402 call_value_indirect_aix<pttrsize>,
3403 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
3404 m in constraints.
3405
3406 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
3407
3408 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
3409 if -bnortl. Convert to strcmp and strncmp.
3410
3411 2013-02-07 Alan Modra <amodra@gmail.com>
3412
3413 PR target/54009
3414 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
3415 addresses won't wrap when offsetting.
3416 (rs6000_secondary_reload): Provide secondary reloads needed for
3417 wrapping LO_SUM addresses.
3418
3419 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
3420
3421 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
3422 MACH, just __MACH__.
3423
3424 2013-02-06 Richard Biener <rguenther@suse.de>
3425
3426 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
3427 instead of calling fix_loop_structure.
3428
3429 2013-02-06 Jakub Jelinek <jakub@redhat.com>
3430
3431 PR middle-end/56217
3432 * omp-low.c (use_pointer_for_field): Return false if
3433 lower_send_shared_vars doesn't generate any copy-out code.
3434
3435 2013-02-06 Tom de Vries <tom@codesourcery.com>
3436
3437 PR rtl-optimization/56131
3438 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
3439 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
3440 of the label is NULL. Add comment.
3441
3442 2013-02-05 Jakub Jelinek <jakub@redhat.com>
3443
3444 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
3445
3446 PR sanitizer/55374
3447 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
3448 (STATIC_LIBTSAN_LIBS): Likewise.
3449 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
3450 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
3451 is defined, don't add anything else beyond that.
3452 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
3453 (LINK_COMMAND_SPEC): Use them.
3454
3455 PR tree-optimization/56205
3456 * tree-stdarg.c (check_all_va_list_escapes): Return true if
3457 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
3458 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
3459
3460 2013-02-05 Richard Biener <rguenther@suse.de>
3461
3462 PR tree-optimization/53342
3463 PR tree-optimization/53185
3464 * tree-vectorizer.h (vect_check_strided_load): Remove.
3465 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
3466 not disallow peeling for vectorized strided loads.
3467 (vect_check_strided_load): Make static and simplify.
3468 (vect_analyze_data_refs): Adjust.
3469 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
3470 correctly when vectorizing strided loads.
3471
3472 2013-02-05 Richard Biener <rguenther@suse.de>
3473
3474 * doc/install.texi: Refer to ISL, not PPL.
3475
3476 2013-02-05 Jan Hubicka <jh@suse.cz>
3477
3478 PR tree-optimization/55789
3479 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
3480
3481 2013-02-05 Jan Hubicka <jh@suse.cz>
3482
3483 PR tree-optimization/55789
3484 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
3485 the dead call anyway.
3486
3487 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
3488
3489 PR sanitizer/55374
3490 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
3491
3492 2013-02-04 Alexander Potapenko <glider@google.com>
3493 Jack Howarth <howarth@bromo.med.uc.edu>
3494 Jakub Jelinek <jakub@redhat.com>
3495
3496 PR sanitizer/55617
3497 * config/darwin.c (sort_ctor_records): Stabilized qsort
3498 on constructor priority by using original position.
3499 (finalize_ctors): New routine to sort constructors by
3500 priority before use in assemble_integer.
3501 (machopic_asm_out_constructor): Use finalize_ctors if needed.
3502
3503 2013-02-04 Jakub Jelinek <jakub@redhat.com>
3504
3505 PR libstdc++/54314
3506 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
3507 about visibility on artificial decls.
3508 * config/sol2.c (solaris_assemble_visibility): Likewise.
3509
3510 2013-02-04 Kai Tietz <ktietz@redhat.com>
3511
3512 PR target/56186
3513 * config/i386/i386.c (function_value_ms_64): Add additional valtype
3514 argument and improve checking of return-argument types for 16-byte
3515 modes.
3516 (ix86_function_value_1): Add additional valtype argument on call
3517 of function_value_64.
3518 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
3519 handling infunction_value_64 function.
3520
3521 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
3522
3523 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
3524
3525 2013-02-04 Richard Biener <rguenther@suse.de>
3526
3527 PR tree-optimization/56188
3528 * tree-ssa-structalias.c (label_visit): Consider case with
3529 initially non-empty points-to set.
3530 (perform_var_substitution): Dump node mapping and clean up.
3531
3532 2013-02-04 Richard Guenther <rguenther@suse.de>
3533
3534 PR lto/56168
3535 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
3536 node prevail as last resort.
3537 (lto_symtab_merge_decls): Remove guard on LTRANS here.
3538 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
3539
3540 2013-02-04 Richard Biener <rguenther@suse.de>
3541
3542 PR tree-optimization/56113
3543 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
3544 Merge into ...
3545 (equiv_class_lookup_or_add): ... this.
3546 (label_visit): Adjust and fix error in previous patch.
3547 (perform_var_substitution): Adjust.
3548
3549 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
3550
3551 * config/sh/divtab.c: Fix formatting and comments throughout the file.
3552 * config/sh/sh4-300.md: Likewise.
3553 * config/sh/sh4a.md: Likewise.
3554 * config/sh/constraints.md: Likewise.
3555 * config/sh/sh.md: Likewise.
3556 * config/sh/netbsd-elf.h: Likewise.
3557 * config/sh/predicates.md: Likewise.
3558 * config/sh/sh-protos.h: Likewise.
3559 * config/sh/ushmedia.h: Likewise.
3560 * config/sh/linux.h: Likewise.
3561 * config/sh/sh.c: Likewise.
3562 * config/sh/superh.h: Likewise.
3563 * config/sh/elf.h: Likewise.
3564 * config/sh/sh4.md: Likewise.
3565 * config/sh/sh.h: Likewise.
3566
3567 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3568
3569 * config/pa/constraints.md: Adjust unused letters. Change "T"
3570 constraint to match_test floating_point_store_memory_operand().
3571 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
3572 (base14_operand): New.
3573 (floating_point_store_memory_operand): New.
3574 (integer_store_memory_operand): Revise to use base14_operand and
3575 reg_plus_base_memory_operand.
3576 (move_dest_operand): Allow symbolic_memory_operands.
3577 (symbolic_memory_operand): Check for LO_SOM.
3578 (symbolic_operand): Change default case to break.
3579 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
3580 CONST_DOUBLE values to be reloaded by putting them into memory when
3581 the destination is a floating point register.
3582 (movdf): Remove code to handle CONST_DOUBLE.
3583 (movsf): Likewise.
3584 (reload_indf_r1): New.
3585 (reload_insf_r1): New.
3586 Consistently use "Q" and "T" constraints with integer and floating
3587 point move instructions, respectively.
3588 (movdi): Remove FAIL.
3589 Change predicate for source operand unamed DImode move from
3590 general_operand to move_src_operand.
3591 (umulsidi3): Change predicate for destination operand to
3592 register_operand.
3593 Likewise for similar unamed patterns.
3594 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
3595 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
3596 (hppa_legitimize_address): Simplify mask calculation.
3597 (pa_emit_move_sequence): Revised handling of secondary reloads from
3598 REG+D addresses for floating point loads and stores. Directly handle
3599 loading CONST0_RTX (mode) to a floating point register.
3600 (pa_secondary_reload): Handle reloading DF and SFmode constant values
3601 to floating point registers. Don't restrict secondary reloads to
3602 floating point registers to integer modes. Revise some comments and
3603 cleanup some code.
3604 (TARGET_LEGITIMATE_ADDRESS_P): Define.
3605 (pa_legitimate_address_p): New.
3606 (pa_legitimize_reload_address): New.
3607 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
3608 (STRICT_REG_OK_FOR_BASE_P): New.
3609 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
3610 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
3611
3612 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
3613 Andrew Dixie <andrewd@gentrack.com>
3614
3615 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
3616 flag set.
3617
3618 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
3619
3620 * expmed.c (extract_bit_field_1): Pass the full width of the
3621 structure to get_best_reg_extraction_insn.
3622
3623 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
3624
3625 PR target/54601
3626 * configure.ac (use_cxa_atexit): Add AIX.
3627 * configure: Regenerate.
3628
3629 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
3630
3631 2013-02-01 Jakub Jelinek <jakub@redhat.com>
3632
3633 PR debug/54793
3634 * final.c (need_profile_function): New variable.
3635 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
3636 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
3637 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
3638 notes, targetm.asm_out.function_prologue doesn't emit anything,
3639 HAVE_prologue and profiler should be emitted before prologue,
3640 set need_profile_function instead of emitting it.
3641 (final_scan_insn): If need_profile_function, emit
3642 profile_function on the first NOTE_INSN_BASIC_BLOCK or
3643 NOTE_INSN_FUNCTION_BEG note.
3644
3645 2013-02-01 Richard Henderson <rth@redhat.com>
3646
3647 * config/rs6000/rs6000.md (smulditi3): New.
3648 (umulditi3): New.
3649
3650 * config/alpha/alpha.md (umulditi3): New.
3651
3652 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
3653
3654 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
3655 (ASM_OUTPUT_ALIGNED_LOCAL): New.
3656
3657 2013-02-01 Richard Biener <rguenther@suse.de>
3658
3659 PR tree-optimization/56113
3660 * tree-ssa-structalias.c (label_visit): Reduce work for
3661 single-predecessor nodes.
3662
3663 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
3664
3665 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
3666 range isn't testing for zero.
3667
3668 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
3669
3670 PR middle-end/56113
3671 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
3672
3673 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
3674 Nick Clifton <nickc@redhat.com>
3675
3676 * config/v850/constraints.md (Q): Define as a memory constraint.
3677 * config/v850/predicates.md (label_ref_operand): New predicate.
3678 (e3v5_shift_operand): New predicate.
3679 (ior_operator): New predicate.
3680 * config/v850/t-v850: Add e3v5 multilib.
3681 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
3682 (v850_gen_movdi): Prototype.
3683 * config/v850/v850.c: Add support for e3v5 architecture.
3684 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
3685 TARGET_V850E_UP.
3686 (construct_save_jarl): Add e3v5 long JARL support.
3687 (v850_adjust_insn_length): New function. Adjust length of call
3688 insns when using e3v5 instructions.
3689 (v850_gen_movdi): New function: Generate instructions to move a
3690 DImode value.
3691 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
3692 (CPP_SPEC): Define __v850e3v5__ as appropriate.
3693 (TARGET_USE_FPU): Enable for e3v5.
3694 (CONST_OK_FOR_W): New macro.
3695 (ADJUST_INSN_LENGTH): Define.
3696 * config/v850/v850.md (UNSPEC_LOOP): Define.
3697 (attr cpu): Add v850e3v5.
3698 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
3699 (movdi): New pattern.
3700 (movdi_internal): New pattern.
3701 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
3702 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
3703 (cstoresf4): Likewise.
3704 (cstoredf4): Likewise.
3705 (insv): New pattern.
3706 (rotlso3_a): New pattern.
3707 (rotlsi3_b): New pattern
3708 (rotlsi3_v850e3v5): New pattern.
3709 (doloop_begin): New pattern.
3710 (fix_loop_counter): New pattern.
3711 (doloop_end): New pattern.
3712 (branch_normal): Add e3v5 long branch support.
3713 (branch_invert): Likewise.
3714 (branch_z_normal): Likewise.
3715 (branch_z_invert): Likewise.
3716 (branch_nz_normal): Likewise.
3717 (branch_nz_invert): Likewise.
3718 (call_internal_short): Add e3v5 register-indirect JARL support.
3719 (call_internal_long): Likewise.
3720 (call_value_internal_short): Likewise.
3721 (call_value_internal_long): Likewise.
3722 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
3723 (mloop): New option.
3724 * config.gcc: Add support for configuring v840e3v5 target.
3725 * doc/invoke.texi: Document new v850 specific command line options.
3726
3727 2013-01-31 Paul Koning <ni1d@arrl.net>
3728
3729 PR debug/55059
3730 PR debug/54508
3731 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
3732 children if parent is a class.
3733 (prune_unused_types_prune): Don't add DW_AT_declaration.
3734
3735 2013-01-31 Richard Biener <rguenther@suse.de>
3736
3737 PR tree-optimization/56157
3738 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
3739 match up operand with SLP child.
3740
3741 2013-01-31 Jason Merrill <jason@redhat.com>
3742
3743 PR debug/54410
3744 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
3745 parameters the first time.
3746 (gen_scheduled_generic_parms_dies): Check completeness here.
3747
3748 2013-01-31 Richard Biener <rguenther@suse.de>
3749
3750 PR middle-end/53073
3751 * common.opt (faggressive-loop-optimizations): New flag,
3752 enabled by default.
3753 * doc/invoke.texi (faggressive-loop-optimizations): Document.
3754 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
3755 infer_loop_bounds_from_undefined by it.
3756
3757 2013-01-31 Richard Biener <rguenther@suse.de>
3758
3759 PR tree-optimization/56150
3760 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
3761 visit virtual operands.
3762 (find_uses_to_rename_bb): Likewise.
3763
3764 2013-01-31 Richard Biener <rguenther@suse.de>
3765
3766 PR tree-optimization/56150
3767 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
3768 mixed store non-store stmts.
3769
3770 2013-01-30 Jakub Jelinek <jakub@redhat.com>
3771
3772 PR sanitizer/55374
3773 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
3774 LIBASAN_EARLY_SPEC is defined.
3775 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
3776 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
3777 before %o.
3778 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
3779
3780 PR c++/55742
3781 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
3782 invalid args instead of ICEing on it.
3783 (ix86_valid_target_attribute_tree): Return error_mark_node if
3784 ix86_valid_target_attribute_inner_p failed.
3785 (ix86_valid_target_attribute_p): Return false only if
3786 ix86_valid_target_attribute_tree returned error_mark_node. Allow
3787 target("default") attribute.
3788 (sorted_attr_string): Change argument from const char * to tree,
3789 merge in all target attribute arguments rather than just one.
3790 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
3791 instead of free. Avoid using strcat.
3792 (ix86_mangle_function_version_assembler_name): Mangle
3793 target("default") as if no target attribute is present. Adjust
3794 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
3795 instead of xmalloc and XDELETEVEC instead of free.
3796 (ix86_function_versions): Don't return true if one of the decls
3797 doesn't have target attribute. If they don't and one of the decls
3798 is DECL_FUNCTION_VERSIONED, report an error. Adjust
3799 sorted_attr_string caller. Use XDELETEVEC instead of free.
3800 (ix86_supports_function_versions): Remove.
3801 (make_name): Fix up formatting.
3802 (make_dispatcher_decl): Remove resolver_name and its initialization.
3803 Avoid leaking memory.
3804 (is_function_default_version): Return true if there is
3805 target("default") attribute rather than no target attribute at all.
3806 (make_resolver_func): Avoid leaking memory.
3807 (ix86_generate_version_dispatcher_body): Likewise.
3808 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
3809 * target.def (supports_function_versions): Remove.
3810 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
3811 * doc/tm.texi: Regenerated.
3812
3813 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
3814
3815 PR rtl-optimization/56144
3816 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
3817 for values with side effects.
3818
3819 2013-01-30 Richard Biener <rguenther@suse.de>
3820
3821 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
3822 (sparseset_pop): Likewise.
3823 * cfganal.c (compute_idf): Likewise. Increase work-stack size
3824 to be able to use quick_push in the worker loop.
3825
3826 2013-01-30 Marek Polacek <polacek@redhat.com>
3827
3828 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
3829
3830 2013-01-30 Richard Biener <rguenther@suse.de>
3831
3832 PR lto/56147
3833 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
3834
3835 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
3836
3837 PR tree-optimization/56064
3838 * fixed-value.c (fixed_from_double_int): New function.
3839 * fixed-value.h (fixed_from_double_int): New prototype.
3840 (const_fixed_from_double_int): New static inline function.
3841 * fold-const.c (native_interpret_fixed): New static function.
3842 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
3843 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
3844 (native_encode_fixed): New static function.
3845 (native_encode_expr) <FIXED_CST>: Use it.
3846 (native_interpret_int): Move double_int worker code to...
3847 * double-int.c (double_int::from_buffer): ...this new static method.
3848 * double-int.h (double_int::from_buffer): Prototype it.
3849
3850 2013-01-30 Richard Biener <rguenther@suse.de>
3851
3852 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
3853 New pointer-map and obstack.
3854 (init_alias_vars): Allocate pointer-map and obstack.
3855 (delete_points_to_sets): Free them.
3856 (find_what_var_points_to): Cache result.
3857 (find_what_p_points_to): Adjust for changed interface of
3858 find_what_var_points_to.
3859 (compute_points_to_sets): Likewise.
3860 (ipa_pta_execute): Likewise.
3861
3862 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3863
3864 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
3865 * configure: Regenerate.
3866 * config.in: Regenerate.
3867 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
3868 #nobits/#progbits if supported.
3869
3870 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
3871
3872 PR target/56121
3873 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
3874 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
3875 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
3876
3877 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3878
3879 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
3880 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
3881
3882 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3883
3884 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
3885 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
3886
3887 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3888
3889 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
3890 declaration.
3891 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
3892 * config/arm/cortex-a7.md: New bypasses using
3893 arm_mac_accumulator_is_result.
3894
3895 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3896
3897 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
3898 (cortex_a7_neon_mla): Likewise.
3899 (cortex_a7_fpfmad): New reservation.
3900 (cortex_a7_fpmacs): Use ffmas and update required units.
3901 (cortex_a7_fpmuld): Update required units and latency.
3902 (cortex_a7_fpmacd): Likewise.
3903 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
3904 (cortex_a7_neon). Likewise.
3905 (bypass) Update participating units.
3906
3907 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
3908
3909 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
3910 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
3911 from fmac to ffma.
3912 * config/arm/vfp11.md (vfp_farith): Use ffmas.
3913 (vfp_fmul): Use ffmad.
3914 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
3915 (cortex_r4_fmacd): Use ffmad.
3916 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
3917 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
3918 (cortex_a9_fmacd): Use ffmad.
3919 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
3920 (cortex_a8_vfp_macd): Use ffmad.
3921 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
3922 (cortex_a5_fpmacd): Use ffmad.
3923 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
3924 (cortex_a15_vfp_macd): Use ffmad.
3925 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
3926
3927 2013-01-29 Jason Merrill <jason@redhat.com>
3928
3929 PR libstdc++/54314
3930 * varasm.c (default_assemble_visibility): Don't warn about
3931 visibility on artificial decls.
3932
3933 2013-01-29 Richard Biener <rguenther@suse.de>
3934
3935 PR tree-optimization/56113
3936 * tree-ssa-structalias.c (equiv_class_lookup): Also return
3937 the bitmap leader.
3938 (label_visit): Free duplicate bitmaps and record the leader instead.
3939 (perform_var_substitution): Adjust.
3940
3941 2013-01-29 Richard Biener <rguenther@suse.de>
3942
3943 PR tree-optimization/55270
3944 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
3945 the CFG, schedule loops for fixup.
3946
3947 2013-01-29 Nick Clifton <nickc@redhat.com>
3948
3949 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
3950 SP_REG.
3951
3952 2013-01-28 Leif Ekblad <leif@rdos.net>
3953
3954 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
3955 * config/i386/i386.h (TARGET_RDOS): New macro.
3956 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
3957 * config/i386/i386.c (ix86_option_override_internal): For 64bit
3958 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
3959 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
3960 DEFAULT_LARGE_SECTION_THRESHOLD.
3961 * config/i386/i386.md (R14_REG, R15_REG): New constants.
3962 * config/i386/rdos.h: New file.
3963 * config/i386/rdos64.h: New file.
3964
3965 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
3966
3967 PR other/54814
3968 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
3969 TEST_HARD_REG_BIT.
3970
3971 2013-01-28 Jakub Jelinek <jakub@redhat.com>
3972
3973 PR rtl-optimization/56117
3974 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
3975 call cselib_lookup_from_insn on the MEM before calling
3976 add_insn_mem_dependence.
3977
3978 2013-01-28 Richard Biener <rguenther@suse.de>
3979
3980 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
3981 to a stmt that didn't have one.
3982 (copy_phis_for_bb): Likewise for PHI arguments.
3983 (copy_debug_stmt): Likewise for debug stmts.
3984
3985 2013-01-28 Richard Biener <rguenther@suse.de>
3986
3987 PR tree-optimization/56034
3988 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
3989 (partition_builtin_p): Adjust.
3990 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
3991 it is the last partition.
3992 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
3993 up the vertex for the definition.
3994 (classify_partition): Classify whether a partition is a
3995 PKIND_REDUCTION, thus has uses outside of the loop.
3996 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
3997 Merge all PKIND_REDUCTION partitions into the last partition.
3998 (tree_loop_distribution): Seed partitions from reductions as well.
3999
4000 2013-01-28 Jakub Jelinek <jakub@redhat.com>
4001
4002 PR tree-optimization/56125
4003 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
4004 pow(x,c) into sqrt(x) * powi(x, n/2) or
4005 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
4006 optimizing for size.
4007 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
4008 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
4009 integer.
4010
4011 PR tree-optimization/56094
4012 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
4013 to UNKNOWN_LOCATION while gimplifying expr.
4014
4015 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
4016
4017 PR target/56114
4018 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
4019 operand 0 in movabs insn template for -masm=intel asm alternative.
4020 (*movabs<mode>_2): Ditto for operand 1.
4021
4022 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
4023
4024 PR target/54663
4025 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
4026 of microblaze-c.o
4027
4028 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4029
4030 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
4031 tm_file.
4032
4033 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4034
4035 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
4036 Undef to avoid warning.
4037
4038 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
4039
4040 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
4041 * configure: Regenerate.
4042
4043 2013-01-25 Jakub Jelinek <jakub@redhat.com>
4044
4045 PR tree-optimization/56098
4046 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
4047 for stmts with volatile ops.
4048 (cond_store_replacement): Don't optimize if assign has volatile ops.
4049 (cond_if_else_store_replacement_1): Don't optimize if either
4050 then_assign or else_assign have volatile ops.
4051 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
4052 volatile ops.
4053
4054 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4055
4056 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
4057
4058 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4059
4060 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
4061 missing ':' in asm example.
4062
4063 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
4064
4065 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
4066 entries into lane and laneq entries.
4067 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
4068 Remove AdvSIMD scalar modes.
4069 (aarch64_sq<r>dmulh_laneq<mode>): New.
4070 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
4071 modes.
4072 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
4073 builtin implementations to relfect changes in RTL in aarch64-simd.md.
4074 * config/aarch64/iterators.md (VCOND): New.
4075 (VCONQ): New.
4076
4077 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
4078
4079 PR target/54222
4080 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
4081 Add NULL LIBNAME argument to existing definitions.
4082 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
4083 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
4084 * config/avr/avr.c (DEF_BUILTIN): Same.
4085 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
4086 (avr_expand_builtin): Expand to a vanilla call if a libgcc
4087 implementation is available (DECL_ASSEMBLER_NAME is set).
4088 (avr_fold_absfx): New static function.
4089 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
4090 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
4091 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
4092 AVR_BUILTIN_ABSLLK.
4093 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
4094 (abshk, absk, abslk, absllk): Provide as static inline functions.
4095
4096 2013-01-25 Marek Polacek <polacek@redhat.com>
4097
4098 PR tree-optimization/56035
4099 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
4100
4101 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
4102
4103 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
4104 (*movtf_internal_rex64): Add (!o,C) alternative
4105 (*movxf_internal_rex64): Ditto.
4106 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
4107
4108 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
4109
4110 * doc/invoke.texi: fix typo.
4111 * doc/objc.texi: fix typo.
4112
4113 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
4114
4115 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
4116 for the first two alternatives.
4117
4118 2013-01-24 Diego Novillo <dnovillo@google.com>
4119
4120 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
4121 (ggc-zone.o): Remove.
4122 * configure.ac: Remove option --with-gc.
4123 * configure: Re-generate.
4124 * doc/install.texi: Remove documentation for --with-gc.
4125 * gengtype.c (write_enum_defn): Remove. Update all users.
4126 (write_Types_process_field): Remove generation of gt_e_* argument.
4127 (output_type_enum): Remove. Update all users.
4128 (write_enum_defn): Remove. Update all users.
4129 (enum alloc_zone): Remove. Update all users.
4130 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
4131 * ggc-common.c (ggc_splay_alloc): Remove first argument.
4132 Update all callers.
4133 (struct ptr_data): Remove field TYPE. Update all users.
4134 (gt_pch_note_object): Remove argument TYPE. Update all users.
4135 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
4136 Update all users.
4137 * ggc-none.c (ggc_alloc_typed_stat): Remove.
4138 (struct alloc_zone): Remove.
4139 (ggc_internal_alloc_zone_stat): Remove.
4140 (ggc_internal_cleared_alloc_zone_stat): Remove.
4141 * ggc-page.c (ggc_alloc_typed_stat): Remove.
4142 (ggc_pch_count_object): Remove last argument. Update all users.
4143 (ggc_pch_alloc_object): Remove last argument. Update all users.
4144 (struct alloc_zone): Remove.
4145 * ggc-zone.c: Remove.
4146 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
4147 (struct alloc_zone): Remove.
4148 (ggc_alloc_typed_stat): Remove.
4149 (ggc_alloc_typed): Remove.
4150 (ggc_splay_alloc): Remove first argument.
4151 (rtl_zone): Remove. Update all users.
4152 (tree_zone): Remove. Update all users.
4153 (tree_id_zone): Remove. Update all users.
4154 (ggc_internal_zone_alloc_stat): Remove. Update all users.
4155 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
4156 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
4157 * tree-ssanames.c: Remove references to zone allocator in comments.
4158
4159 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
4160
4161 * config/avr/avr.c (avr_out_fract): Make register numbers that
4162 might be outside of source operand signed.
4163
4164 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
4165
4166 * config/i386/constraints.md (Yf): New constraint.
4167 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
4168 of f constraint to conditionaly disable x87 register preferences.
4169 (*movdf_internal): Ditto.
4170 (*movsf_internal): Ditto.
4171
4172 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
4173
4174 PR inline-asm/55934
4175 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
4176 that have operands with impossible constraints.
4177 Add a FIXME for a speed-up opportunity.
4178 * lra-constraints.c (process_alt_operands): Verify that a class
4179 selected from constraints on asms is valid for the operand mode.
4180 (curr_insn_transform): Remove incorrect comment.
4181
4182 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
4183
4184 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
4185 TOC operand is a valid symbol ref in the constant pool.
4186
4187 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
4188
4189 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
4190
4191 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
4192
4193 PR target/54222
4194 * config/avr/stdfix.h: New file.
4195 * t-avr (stdfix-gcc.h): New rule to build it.
4196 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
4197
4198 2013-01-23 Kostya Serebryany <kcc@google.com>
4199
4200 * config/darwin.h: remove dependency on
4201 CoreFoundation (asan on Mac OS).
4202
4203 2013-01-23 Jakub Jelinek <jakub@redhat.com>
4204
4205 PR target/49069
4206 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
4207 instead of cmpdi_operand for first comparison operand.
4208 Don't assert that comparison operands aren't both constants.
4209
4210 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4211
4212 * doc/install.texi (Downloading the Source): Update references to
4213 downloading separate components.
4214
4215 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4216
4217 * doc/extend.texi (__int128): Improve grammar.
4218
4219 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
4220
4221 PR target/56028
4222 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
4223 alternative to (o,r).
4224 (*movdi_internal_rex64): Remove (!o,n) alternative.
4225 (DImode immediate->memory splitter): Remove.
4226 (DImode immediate->memory peephole2): Remove.
4227 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
4228 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
4229 alternative to (!o,*r).
4230 (*movtf_internal_sse): New pattern.
4231 (*movxf_internal_rex64): New pattern.
4232 (*movxf_internal): Disable for TARGET_64BIT.
4233 (*movdf_internal_rex64): Remove (!o,F) alternative.
4234
4235 2013-01-22 Jakub Jelinek <jakub@redhat.com>
4236
4237 PR middle-end/56074
4238 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
4239 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
4240 * tree-vect-loop-manip.c (find_loop_location): Also ignore
4241 stmt locations where LOCATION_LOCUS of the stmt location is
4242 UNKNOWN_LOCATION or BUILTINS_LOCATION.
4243
4244 PR target/55686
4245 * config/i386/i386.md (UNSPEC_STOS): New.
4246 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
4247 *strsetqi_1): Add UNSPEC_STOS.
4248
4249 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
4250
4251 PR c++/56067
4252 * doc/invoke.texi: Remove left over -Wsynth example.
4253
4254 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4255
4256 PR tree-optimization/56051
4257 * fold-const.c (fold_binary_loc): Don't fold
4258 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
4259 a narrowing conversion, or widening conversion from signed
4260 to unsigned.
4261
4262 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4263
4264 PR rtl-optimization/56023
4265 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
4266 dependent on debug instruction.
4267
4268 2013-01-21 Martin Jambor <mjambor@suse.cz>
4269
4270 PR middle-end/56022
4271 * function.c (allocate_struct_function): Call
4272 invoke_set_current_function_hook earlier.
4273
4274 2013-01-21 Jakub Jelinek <jakub@redhat.com>
4275
4276 * reload1.c (init_reload): Only initialize reload_obstack
4277 during the first call.
4278
4279 2013-01-21 Marek Polacek <polacek@redhat.com>
4280
4281 * cfgloop.c (verify_loop_structure): Fix up grammar.
4282
4283 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
4284
4285 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
4286 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
4287
4288 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4289
4290 PR target/56058
4291 * config/arm/marvell-pj4.md: Update copyright year.
4292 Fix up use of alu to alu_reg and simple_alu_imm.
4293
4294 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
4295
4296 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
4297
4298 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
4299
4300 PR target/55433
4301 * lra-constraints.c (curr_insn_transform): Don't reuse original
4302 insn for secondary memory move when memory mode should be different.
4303
4304 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4305
4306 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
4307 atomic_storedi_1): New patterns.
4308
4309 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4310
4311 btver2 pipeline descriptions.
4312 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
4313 descriptions.
4314 * config/i386/i386.md (btver2_decode): New type attributes.
4315 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
4316 type attributes.
4317 * config/i386/btver2.md: New file describing btver2 pipelines.
4318
4319 2013-01-19 Andrew Pinski <apinski@cavium.com>
4320
4321 PR tree-optimization/52631
4322 * tree-ssa-sccvn (visit_use): Before looking up the original
4323 statement, try looking up the simplified expression.
4324
4325 2013-01-19 Anthony Green <green@moxielogic.com>
4326
4327 * config/moxie/moxie.c (moxie_expand_prologue): Set
4328 current_function_static_stack_size.
4329
4330 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4331
4332 PR tree-optimization/56029
4333 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
4334 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
4335
4336 2013-01-18 Sharad Singhai <singhai@google.com>
4337
4338 PR tree-optimization/55995
4339 * dumpfile.c (dump_loc): Print location only if available.
4340 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
4341
4342 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
4343
4344 PR target/55433
4345 * lra-constraints.c (curr_insn_transform): Reuse original insn for
4346 secondary memory move.
4347 (inherit_reload_reg): Use rclass instead of cl for
4348 check_secondary_memory_needed_p.
4349
4350 2013-01-18 Jakub Jelinek <jakub@redhat.com>
4351
4352 PR middle-end/56015
4353 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
4354 the case where writing real complex part of target modifies op1.
4355
4356 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
4357
4358 * config/aarch64/aarch64-simd.md
4359 (aarch64_vcond_internal<mode>): Handle unordered cases.
4360 * config/aarch64/iterators.md (v_cmp_result): New.
4361
4362 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
4363 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4364
4365 * config/arm/marvell-pj4.md: New file.
4366 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
4367 * config/arm/arm.md (generic_sched): Add marvell_pj4.
4368 (generic_vfp): Likewise.
4369 * config/arm/arm-cores.def: Add marvell-pj4.
4370 * config/arm/arm-tune.md: Regenerate.
4371 * config/arm/arm-tables.opt: Regenerate.
4372 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
4373 * doc/invoke.texi: Document marvell-pj4.
4374
4375 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
4376
4377 * config/aarch64/arm_neon.h: Map scalar types to standard types.
4378
4379 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4380
4381 PR debug/54114
4382 PR debug/54402
4383 PR debug/49888
4384 * var-tracking.c (negative_power_of_two_p): New.
4385 (global_get_addr_cache, local_get_addr_cache): New.
4386 (get_addr_from_global_cache, get_addr_from_local_cache): New.
4387 (vt_canonicalize_addr): Rewrite using the above. Adjust the
4388 heading comment.
4389 (vt_stack_offset_p): Remove.
4390 (vt_canon_true_dep): Always canonicalize loc's address.
4391 (clobber_overlapping_mems): Make sure we have a MEM.
4392 (local_get_addr_clear_given_value): New.
4393 (val_reset): Clear local cached entries.
4394 (compute_bb_dataflow): Create and release the local cache.
4395 Disable duplicate MEMs clobbering.
4396 (emit_notes_in_bb): Clobber MEMs likewise.
4397 (vt_emit_notes): Create and release the local cache.
4398 (vt_initialize, vt_finalize): Create and release the global
4399 cache, respectively.
4400 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
4401
4402 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4403
4404 PR libmudflap/53359
4405 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
4406 not found in the symtab.
4407
4408 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
4409
4410 PR debug/56006
4411 PR rtl-optimization/55547
4412 PR rtl-optimization/53827
4413 PR debug/53671
4414 PR debug/49888
4415 * alias.c (offset_overlap_p): New, factored out of...
4416 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
4417 the conservative special case for symbolic constants. Don't
4418 adjust zero sizes on alignment.
4419
4420 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
4421
4422 PR rtl-optimization/52573
4423 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
4424 REG_UNUSED for the same register.
4425
4426 2013-01-17 Richard Biener <rguenther@suse.de>
4427 Marek Polacek <polacek@redhat.com>
4428
4429 PR rtl-optimization/55833
4430 * loop-unswitch.c (unswitch_loops): Move loop verification...
4431 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
4432 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
4433 Set it to true when we're removing a loop from hierarchy tree in
4434 an irreducible region.
4435 (fix_bb_placements): Adjust caller.
4436 (fix_loop_placements): Likewise.
4437
4438 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
4439
4440 * config/avr/builtins.def (DEF_BUILTIN): Factor out
4441 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
4442 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
4443 Remove ID. Adjust comments.
4444 * config/avr/avr-c.c (avr_builtin_name): Remove.
4445 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
4446 * config/avr/avr.c (avr_tolower): New static function.
4447 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
4448 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
4449 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
4450 default expansion.
4451
4452 2013-01-17 Jan Hubicka <jh@suse.cz>
4453
4454 PR tree-optimization/55273
4455 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
4456
4457 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
4458
4459 PR target/55981
4460 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
4461 store through atomic_store<mode>_1.
4462 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
4463
4464 2013-01-17 Martin Jambor <mjambor@suse.cz>
4465
4466 PR tree-optimizations/55264
4467 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
4468 for virtual methods.
4469 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
4470 virtual methods before inlining is over.
4471 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
4472 virtual functions.
4473 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
4474 non-virtual.
4475
4476 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
4477
4478 PR rtl-optimization/56005
4479 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
4480 pending reads for prefetch.
4481
4482 2013-01-16 Ian Bolton <ian.bolton@arm.com>
4483
4484 * config/aarch64/aarch64.md
4485 (*cstoresi_neg_uxtw): New pattern.
4486 (*cmovsi_insn_uxtw): New pattern.
4487 (*<optab>si3_uxtw): New pattern.
4488 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
4489 (*<optab>si3_insn_uxtw): New pattern.
4490 (*bswapsi2_uxtw): New pattern.
4491
4492 2013-01-16 Richard Biener <rguenther@suse.de>
4493
4494 * tree-inline.c (tree_function_versioning): Remove set but
4495 never used variable.
4496
4497 2013-01-16 Richard Biener <rguenther@suse.de>
4498
4499 PR tree-optimization/55964
4500 * tree-flow.h (rename_variables_in_loop): Remove.
4501 (rename_variables_in_bb): Likewise.
4502 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
4503 (copy_loop_before): Adjust and delete update-ssa status.
4504 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
4505 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
4506 (rename_variables_in_loop): Remove.
4507 (slpeel_update_phis_for_duplicate_loop): Likewise.
4508 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
4509 use available cfg machinery instead of duplicating it.
4510 Update PHI nodes and perform poor-mans SSA update here.
4511 (slpeel_tree_peel_loop_to_edge): Adjust.
4512
4513 2013-01-16 Richard Biener <rguenther@suse.de>
4514
4515 PR tree-optimization/54767
4516 PR tree-optimization/53465
4517 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
4518 (vrp_visit_phi_node): For PHI arguments coming via backedges
4519 drop all symbolical range information.
4520 (execute_vrp): Compute backedges.
4521
4522 2013-01-16 Richard Biener <rguenther@suse.de>
4523
4524 * doc/install.texi: Update CLooG and ISL requirements to
4525 0.18.0 and 0.11.1.
4526
4527 2013-01-16 Christian Bruel <christian.bruel@st.com>
4528
4529 PR target/55301
4530 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
4531 (broken_move): Handle UNSPECV_SP_SWITCH_B.
4532 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
4533
4534 2013-01-16 DJ Delorie <dj@redhat.com>
4535
4536 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
4537 (UNSPECV_SP_SWITCH_E): New.
4538 (sp_switch_1): Change to an unspec.
4539 (sp_switch_2): Change to an unspec. Don't use post-inc when we
4540 replace $r15.
4541
4542 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
4543
4544 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
4545 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
4546 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
4547 (expand_mem_thread_fence): Ditto.
4548 (expand_mem_signal_fence): Ditto.
4549 (expand_atomic_load): Ditto.
4550 (expand_atomic_store): Ditto.
4551
4552 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
4553
4554 PR rtl-optimization/55547
4555 PR rtl-optimization/53827
4556 PR debug/53671
4557 PR debug/49888
4558 * alias.c (memrefs_conflict_p): Set sizes to negative after
4559 AND adjustments.
4560
4561 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4562
4563 PR target/55940
4564 * function.c (thread_prologue_and_epilogue_insns): Always
4565 add crtl->drap_reg to set_up_by_prologue.set, even if
4566 stack_realign_drap is false.
4567
4568 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4569
4570 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
4571 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
4572 *call): Fix indention.
4573
4574 2013-01-15 Tom de Vries <tom@codesourcery.com>
4575
4576 PR target/55876
4577 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
4578 Update comment.
4579
4580 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
4581
4582 PR rtl-optimization/55153
4583 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
4584
4585 2013-01-15 Martin Jambor <mjambor@suse.cz>
4586
4587 PR tree-optimization/55920
4588 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
4589 accesses as grp_to_be_debug_replaced.
4590
4591 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4592
4593 PR tree-optimization/55920
4594 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
4595 there is non-useless type conversion needed from debug rhs to lhs,
4596 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
4597
4598 2013-01-15 Joseph Myers <joseph@codesourcery.com>
4599 Mikael Pettersson <mikpe@it.uu.se>
4600
4601 PR target/43961
4602 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
4603 Thumb.
4604 (ASM_OUTPUT_CASE_LABEL): Remove.
4605 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
4606 * final.c (shorten_branches): Update alignment of labels before
4607 jump tables if CASE_VECTOR_SHORTEN_MODE.
4608
4609 2013-01-15 Richard Biener <rguenther@suse.de>
4610
4611 PR bootstrap/55961
4612 * system.h: Do not include gmp.h for building host tools.
4613
4614 2013-01-15 Richard Biener <rguenther@suse.de>
4615
4616 PR middle-end/55882
4617 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
4618 account for bitpos when computing alignment.
4619
4620 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
4621
4622 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
4623 (ix86_target_macros_internal): Likewise.
4624
4625 * config/i386/i386.c (m_CORE2I7): Removed.
4626 (m_CORE_HASWELL): New macro.
4627 (m_CORE_ALL): Likewise.
4628 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
4629 (initial_ix86_arch_features): Likewise.
4630 (processor_target_table): Initializations for Core avx2.
4631 (cpu_names): New names "core-avx2".
4632 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
4633 PROCESSOR_CORE_HASWELL.
4634 (ix86_issue_rate): New case.
4635 (ia32_multipass_dfa_lookahead): Likewise.
4636 (ix86_sched_init_global): Likewise.
4637
4638 * config/i386/i386.h (TARGET_HASWELL): New macro.
4639 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
4640 (processor_type): New PROCESSOR_HASWELL.
4641
4642 2013-01-15 Jakub Jelinek <jakub@redhat.com>
4643
4644 PR tree-optimization/55955
4645 * tree-vect-loop.c (vectorizable_reduction): Give up early on
4646 *SHIFT_EXPR and *ROTATE_EXPR codes.
4647
4648 PR tree-optimization/48766
4649 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
4650 -ftrapv disable -fwrapv.
4651
4652 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4653
4654 PR target/55974
4655 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
4656 etc. to 1 and not to __flash.
4657 Use LL suffix for __INT24_MAX__ with -mint8.
4658 Use ULL suffix for __UINT24_MAX__ with -mint8.
4659
4660 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4661
4662 * config/avr/avr-arch.h
4663 (struct base_arch_s): Use typedef avr_arch_t instead.
4664 (struct arch_info_s): Use typedef avr_arch_info_t instead.
4665 (struct mcu_type_s): Use typedef avr_mcu_t instead.
4666 * config/avr/avr.c: Same.
4667 * config/avr/avr-devices.c: Same.
4668 * config/avr/driver-avr.c: Same.
4669 * config/avr/gen-avr-mmcu-texi.c: Same.
4670 * config/avr/avr-mcus.def: Adjust comment.
4671
4672 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
4673
4674 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
4675 * config/aarch64/iterators.md (VALLDI): New.
4676
4677 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
4678 Andi Kleen <ak@linux.intel.com>
4679
4680 PR target/55948
4681 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
4682 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
4683 memmodel flag.
4684
4685 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4686
4687 * config/avr/avr-stdint.h: Remove trailing blanks.
4688 * config/avr/avr-log.h: Same.
4689 * config/avr/avr-arch.h: Same.
4690 * config/avr/avr-devices.c: Same.
4691 * config/avr/avr-dimode.md: Same.
4692 * config/avr/predicates.md: Same.
4693 * config/avr/avr-c.c: Same. And fix typo.
4694
4695 * config/avr/avr-protos.h: Same. And:
4696 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
4697 (init_cumulative_args): Rename to avr_init_cumulative_args.
4698 (expand_prologue): Rename to avr_expand_prologue.
4699 (expand_epilogue): Rename to avr_expand_epilogue.
4700 (adjust_insn_length): Rename to avr_adjust_insn_length.
4701 (notice_update_cc): Rename to avr_notice_update_cc.
4702 (final_prescan_insn): Rename to avr_final_prescan_insn.
4703 * config/avr/avr.c: Same.
4704 * config/avr/avr.h: Same.
4705 * config/avr/avr.md: Remove trailing blanks.
4706 (prologue): Use avr_expand_prologue.
4707 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
4708
4709 2013-01-14 Richard Biener <rguenther@suse.de>
4710
4711 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
4712 verify_location, collect_subblocks): New functions.
4713 (verify_gimple_in_cfg): Verify that locations only reference
4714 BLOCKs in the functions BLOCK tree.
4715
4716 2013-01-14 Richard Biener <rguenther@suse.de>
4717
4718 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
4719 PHI argument.
4720 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
4721 unshare reference.
4722 (insert_out_of_ssa_copy_on_edge): Likewise.
4723 (rewrite_close_phi_out_of_ssa): Likewise.
4724 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
4725 debug expressions.
4726 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
4727 propagated constants.
4728 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
4729 can not be shared.
4730
4731 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
4732
4733 * config/avr/avr-modes.def: Add GPL copyright notice.
4734
4735 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
4736
4737 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
4738 MEMMODEL_MASK to determine memory model.
4739 (atomic_store<mode>): Ditto from operands[2].
4740 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
4741
4742 2013-01-13 Jakub Jelinek <jakub@redhat.com>
4743
4744 PR fortran/55935
4745 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
4746 (fold_gimple_assign): Don't call unshare_expr here.
4747 (fold_ctor_reference): Call unshare_expr.
4748
4749 2013-01-13 Terry Guo <terry.guo@arm.com>
4750
4751 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
4752 * doc/fragments.texi: Document MULTILIB_REUSE.
4753 * gcc.c (multilib_reuse): New internal spec.
4754 (set_multilib_dir): Also search multilib from multilib_reuse.
4755 * genmultilib (tmpmultilib3): Refactor code.
4756 (tmpmultilib4): Ditto.
4757 (multilib_reuse): New multilib argument.
4758
4759 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
4760
4761 * Makefile.in: Update copyright.
4762
4763 2013-01-12 Tom de Vries <tom@codesourcery.com>
4764
4765 PR middle-end/55890
4766 * calls.c (expand_call): Check if arg_nr is valid.
4767
4768 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4769
4770 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
4771 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
4772 documentation. Add missing '__' in front of
4773 __builtin_ia32_packssdw256.
4774
4775 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4776
4777 PR target/55719
4778 * config/s390/s390.c (s390_preferred_reload_class): Do not return
4779 NO_REGS for larl operands.
4780 (s390_reload_larl_operand): Use s390_load_address instead of
4781 emit_move_insn.
4782
4783 2013-01-11 Richard Biener <rguenther@suse.de>
4784
4785 * tree-cfg.c (verify_node_sharing_1): Split out from ...
4786 (verify_node_sharing): ... here.
4787 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
4788
4789 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
4790
4791 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
4792 Substitute TREECHECKING.
4793 * configure: Regenerate.
4794 * Makefile.in (TREECHECKING): New.
4795
4796 2013-01-11 Richard Guenther <rguenther@suse.de>
4797
4798 PR tree-optimization/44061
4799 * tree-vrp.c (extract_range_basic): Compute zero as
4800 value-range for __builtin_constant_p of function parameters.
4801
4802 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
4803
4804 Update copyright years.
4805
4806 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
4807
4808 PR rtl-optimization/55672
4809 * lra-eliminations.c (mark_not_eliminable): Permit addition with
4810 const to be eliminable.
4811
4812 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
4813
4814 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
4815 * configure: Regenerate.
4816
4817 2013-01-10 Richard Biener <rguenther@suse.de>
4818
4819 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
4820
4821 2013-01-10 Richard Biener <rguenther@suse.de>
4822
4823 PR bootstrap/55792
4824 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
4825 locations for virtual PHI arguments.
4826 (rewrite_update_phi_arguments): Likewise.
4827
4828 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
4829
4830 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
4831 on to assembler.
4832
4833 2013-01-10 Jakub Jelinek <jakub@redhat.com>
4834
4835 PR tree-optimization/55921
4836 * tree-complex.c (expand_complex_asm): New function.
4837 (expand_complex_operations_1): Call it for GIMPLE_ASM.
4838
4839 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4840
4841 PR target/55718
4842 * config/s390/s390.c (s390_symref_operand_p)
4843 (s390_loadrelative_operand_p): Merge the two functions.
4844 (s390_check_qrst_address, print_operand_address): Add parameters
4845 to s390_loadrelative_operand_p invokation.
4846 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
4847 (s390_reload_larl_operand, s390_secondary_reload): Use
4848 s390_loadrelative_operand_p instead of s390_symref_operand_p.
4849 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
4850
4851 2013-01-09 Mike Stump <mikestump@comcast.net>
4852
4853 * dse.c (record_store): Remove unnecessary assert.
4854
4855 2013-01-09 Jan Hubicka <jh@suse.cz>
4856
4857 PR tree-optimization/55569
4858 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
4859 * cfgloop.h (scale_loop_profile): Likewise.
4860
4861 2013-01-09 Jan Hubicka <jh@suse.cz>
4862
4863 PR lto/45375
4864 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
4865 functions.
4866 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
4867
4868 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
4869
4870 PR middle-end/55114
4871 * expr.h (maybe_emit_group_store): Declare.
4872 * expr.c (maybe_emit_group_store): New function.
4873 * builtins.c (expand_builtin_int_roundingfn): Call it.
4874 (expand_builtin_int_roundingfn_2): Likewise.
4875
4876 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
4877
4878 PR rtl-optimization/55829
4879 * lra-constraints.c (match_reload): Add code for absent output.
4880 (curr_insn_transform): Add code for reloads of matched inputs
4881 without output.
4882
4883 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
4884
4885 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
4886 attribute of movddup insn to DF.
4887 (*vec_interleave_lowv2df): Ditto.
4888 (vec_dupv2df): Ditto.
4889
4890 2013-01-09 Jan Hubicka <jh@suse.cz>
4891
4892 PR tree-optimiation/55875
4893 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
4894 EVERY_ITERATION parameter.
4895 (number_of_iterations_exit): Check if exit is executed every iteration.
4896 (idx_infer_loop_bounds): Similarly here.
4897 (n_of_executions_at_most): Simplify
4898 to only test for cases where statement is dominated by the
4899 particular bound; handle correctly the "postdominance" test.
4900 (scev_probably_wraps_p): Use max loop iterations info
4901 as a global bound first.
4902
4903 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
4904 Nick Clifton <nickc@redhat.com>
4905
4906 * config/v850/v850.md (cbranchsf4): New pattern.
4907 (cstoresf4): New pattern.
4908 (cbranchdf4): New pattern.
4909 (cstoredf4): New pattern.
4910 (movsicc): Disallow floating point comparisons.
4911 (cmpsf_le_insn): Fix order of operators.
4912 (cmpsf_lt_insn): Likewise.
4913 (cmpsf_eq_insn): Likewise.
4914 (cmpdf_le_insn): Likewise.
4915 (cmpdf_lt_insn): Likewise.
4916 (cmpdf_eq_insn): Likewise.
4917 (cmpsf_ge_insn): Use LE comparison.
4918 (cmpdf_ge_insn): Likewise.
4919 (cmpsf_gt_insn): Use LT comparison.
4920 (cmpdf_gt_insn): Likewise.
4921 (cmpsf_ne_insn): Delete pattern.
4922 (cmpdf_ne_insn): Delete pattern.
4923 * config/v850/v850.c (v850_gen_float_compare): Use
4924 gen_cmpdf_eq_insn for NE comparison.
4925 (v850_float_z_comparison_operator)
4926 (v850_float_nz_comparison_operator): Move from here ...
4927 * config/v850/predicates.md: ... to here. Move GT and GE
4928 comparisons into v850_float_z_comparison_operator.
4929 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
4930 Delete prototype.
4931 (v850_float_nz_comparison_operator): Likewise.
4932
4933 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4934
4935 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
4936 with calls to gen_insvsi/gen_insvdi.
4937
4938 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4939
4940 * config/i386/i386.c (initial_ix86_tune_features): Set up
4941 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
4942
4943 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
4944 Jakub Jelinek <jakub@redhat.com>
4945
4946 PR tree-optimization/48189
4947 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
4948 If nitercst is 0, don't predict the exit edge.
4949
4950 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4951
4952 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
4953 in asm_fprintf with reg_names.
4954 (aarch64_print_operand_address): Likewise.
4955 (aarch64_return_addr): Likewise.
4956 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
4957
4958 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4959
4960 * config/pa/pa.h (VAL_U6_BITS_P): Define.
4961 (INT_U6_BITS): Likewise.
4962 * config/pa/predicates.md (uint6_operand): New predicate.
4963 (shift5_operand, shift6_operand): Likewise.
4964 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
4965 arith32_operand.
4966 (lshrdi3): Use shift6_operand.
4967 (shrpsi4, shrpdi4): New insn patterns.
4968 (extzv): Delete expander.
4969 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
4970 predicates in unamed zero extract patterns. Tighten common constraint.
4971 (extv): Delete expander.
4972 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
4973 predicates in unamed sign extract patterns. Tighten common constraint.
4974 (insv): Delete expander.
4975 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
4976 predicates in unamed insert patterns. Tighten common constraint.
4977 Change uint32_operand predicate to uint6_operand predicate in unamed
4978 DImode pattern to insert constant values of type 1...1xxxx.
4979
4980 2013-01-04 Jan Hubicka <jh@suse.cz>
4981
4982 PR tree-optimization/55823
4983 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
4984 issue.
4985
4986 2013-01-08 Jakub Jelinek <jakub@redhat.com>
4987 Uros Bizjak <ubizjak@gmail.com>
4988
4989 PR rtl-optimization/55845
4990 * df-problems.c (can_move_insns_across): Stop scanning at
4991 volatile_insn_p source instruction or give up if
4992 across_from .. across_to range contains any volatile_insn_p
4993 instructions.
4994
4995 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
4996
4997 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
4998 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
4999 Declare.
5000 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
5001 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
5002
5003 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5004
5005 PR fortran/55341
5006 * asan.c (asan_clear_shadow): New function.
5007 (asan_emit_stack_protection): Use it.
5008
5009 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
5010
5011 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
5012 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
5013 with tab instead of space.
5014
5015 2013-01-08 Nick Clifton <nickc@redhat.com>
5016
5017 * config/rl78/rl78.c (rl78_expand_prologue): Always select
5018 register bank 0 at the start of an interrupt handler.
5019 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
5020 MDBH registers.
5021
5022 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5023
5024 * config/aarch64/aarch64-simd.md
5025 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
5026 (aarch64_simd_bsl): Likewise.
5027 (aarch64_vcond_internal<mode>): Likewise.
5028 (vcond<mode><mode>): Likewise.
5029 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
5030 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
5031
5032 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
5033
5034 * config/aarch64/aarch64-builtins.c
5035 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
5036
5037 2013-01-08 Martin Jambor <mjambor@suse.cz>
5038
5039 PR debug/55579
5040 * tree-sra.c (analyze_access_subtree): Return true also after
5041 potentially creating a debug-only replacement.
5042
5043 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5044
5045 PR middle-end/55890
5046 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
5047
5048 PR tree-optimization/54120
5049 * tree-vrp.c (range_fits_type_p): Don't allow
5050 src_precision < precision from signed vr to unsigned_p
5051 if vr->min or vr->max is negative.
5052 (simplify_float_conversion_using_ranges): Test can_float_p
5053 against CODE_FOR_nothing.
5054
5055 2013-01-08 Jakub Jelinek <jakub@redhat.com>
5056 Richard Biener <rguenther@suse.de>
5057
5058 PR middle-end/55851
5059 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
5060 types instead of just INTEGER_TYPE types.
5061
5062 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
5063
5064 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
5065 TF_SIZE): Define.
5066
5067 2013-01-07 Steve Ellcey <sellcey@mips.com>
5068
5069 PR target/42661
5070 * config/mips/mips.opt: Change mad to mmad to match documentation.
5071
5072 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5073
5074 PR target/55897
5075 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
5076 .progmemx.data now.
5077
5078 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5079
5080 PR target/55897
5081 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
5082 (avr_addrspace_t): Add .section_name field.
5083 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
5084 array size.
5085 (avr_addrspace): Same. Initialize .section_name. Remove last
5086 NULL entry. Put __memx into .progmemx.data.
5087 (progmem_section_prefix): Remove.
5088 (avr_asm_init_sections): No need to initialize progmem_section.
5089 (avr_asm_named_section): Use avr_addrspace[].section_name to get
5090 section name prefix.
5091 (avr_asm_select_section): Ditto. And use get_unnamed_section to
5092 retrieve the progmem section.
5093 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
5094 boundary to run over avr_addrspace[].
5095 (avr_register_target_pragmas): Ditto.
5096
5097 2013-01-06 Jakub Jelinek <jakub@redhat.com>
5098
5099 * varasm.c (output_constant_def_contents): For asan_protect_global
5100 protected strings, adjust DECL_ALIGN if needed, before testing for
5101 anchored symbols.
5102 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
5103 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
5104 normal decls.
5105 (output_object_block): For asan protected decls, emit asan padding
5106 after their contents.
5107 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
5108 (asan_finish_file): Test it here instead.
5109
5110 2013-01-07 Nick Clifton <nickc@redhat.com>
5111 Matthias Klose <doko@debian.org>
5112 Doug Kwan <dougkwan@google.com>
5113 H.J. Lu <hongjiu.lu@intel.com>
5114
5115 PR driver/55470
5116 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
5117
5118 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
5119
5120 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
5121
5122 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
5123
5124 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
5125
5126 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5127
5128 PR target/54461
5129 * doc/install.texi (Cross-Compiler-Specific Options): Document
5130 --with-avrlibc.
5131
5132 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
5133
5134 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
5135 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
5136 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
5137 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
5138 vqmovun_high_s64): Fix source operand number and update copyright.
5139
5140 2013-01-07 Richard Biener <rguenther@suse.de>
5141
5142 PR middle-end/55890
5143 * gimple.h (gimple_call_builtin_p): New overload.
5144 * gimple.c (validate_call): New function.
5145 (gimple_call_builtin_p): Likewise.
5146 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5147 Use gimple_call_builtin_p.
5148 (find_func_clobbers): Likewise.
5149 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
5150 (strlen_optimize_stmt): Likewise.
5151
5152 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5153
5154 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
5155 (vld1q_dup_*): Likewise.
5156 (vld1_*): Likewise.
5157 (vld1q_*): Likewise.
5158 (vld1_lane_*): Likewise.
5159 (vld1q_lane_*): Likewise.
5160
5161 2013-01-07 Richard Biener <rguenther@suse.de>
5162
5163 * lto-streamer.h (LTO_minor_version): Bump to 2.
5164
5165 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
5166
5167 * config/aarch64/aarch64-protos.h
5168 (aarch64_const_double_zero_rtx_p): Rename to...
5169 (aarch64_float_const_zero_rtx_p): ...this.
5170 (aarch64_float_const_representable_p): New.
5171 (aarch64_output_simd_mov_immediate): Likewise.
5172 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
5173 move immediate case.
5174 * config/aarch64/aarch64.c
5175 (aarch64_const_double_zero_rtx_p): Rename to...
5176 (aarch64_float_const_zero_rtx_p): ...this.
5177 (aarch64_print_operand): Allow printing of new constants.
5178 (aarch64_valid_floating_const): New.
5179 (aarch64_legitimate_constant_p): Check for valid floating-point
5180 constants.
5181 (aarch64_simd_valid_immediate): Likewise.
5182 (aarch64_vect_float_const_representable_p): New.
5183 (aarch64_float_const_representable_p): Likewise.
5184 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
5185 (aarch64_output_simd_mov_immediate): New.
5186 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
5187 (*movdf_aarch64): Likewise.
5188 * config/aarch64/constraints.md (Ufc): New.
5189 (Y): call aarch64_float_const_zero_rtx.
5190 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
5191
5192 2013-01-07 Richard Biener <rguenther@suse.de>
5193
5194 PR tree-optimization/55888
5195 PR tree-optimization/55862
5196 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
5197 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
5198 not if it is contained therein.
5199
5200 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5201
5202 * config/avr/t-avr: Typo.
5203
5204 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
5205
5206 PR55243
5207 * config/avr/t-avr: Don't automatically rebuild
5208 $(srcdir)/config/avr/t-multilib
5209 $(srcdir)/config/avr/avr-tables.opt
5210 $(srcdir)/doc/avr-mmcu.texi
5211 (avr-mcus): New phony target to build them on request.
5212 (s-avr-mlib, s-avr-mmcu-texi): Remove.
5213 * avr/avr-mcus.def: Adjust comments.
5214
5215 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
5216
5217 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
5218
5219 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5220
5221 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
5222
5223 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
5224
5225 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
5226
5227 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
5228
5229 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
5230 to generate profiling.
5231 * config/rs6000/aix64.h (LIB_SPEC): Same.
5232
5233 2013-01-04 Andrew Pinski <apinski@cavium.com>
5234
5235 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
5236 New function.
5237 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
5238
5239 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
5240
5241 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
5242 unconditionally.
5243 (ix86_expand_move): Ditto.
5244 (ix86_zero_extend_to_Pmode): Ditto.
5245 (ix86_expand_call): Ditto.
5246 (ix86_expand_special_args_builtin): Ditto.
5247 (ix86_expand_builtin): Ditto.
5248
5249 2013-01-04 Richard Biener <rguenther@suse.de>
5250
5251 PR tree-optimization/55862
5252 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
5253 translating them through PHI nodes.
5254
5255 2013-01-04 Martin Jambor <mjambor@suse.cz>
5256
5257 PR tree-optimization/55755
5258 * tree-sra.c (sra_modify_assign): Do not check that an access has no
5259 children when trying to avoid producing a VIEW_CONVERT_EXPR.
5260
5261 2013-01-04 Marek Polacek <polacek@redhat.com>
5262
5263 PR middle-end/55859
5264 * opts.c (default_options_optimization): Clarify error message.
5265
5266 2013-01-04 Richard Biener <rguenther@suse.de>
5267
5268 PR middle-end/55863
5269 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
5270 reassociation.
5271
5272 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5273
5274 PR target/53789
5275 * config/pa/pa.md (movsi): Revert previous change.
5276 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
5277 references.
5278
5279 2013-01-03 Richard Henderson <rth@redhat.com>
5280
5281 * config/i386/i386.c (ix86_expand_move): Always assign to op1
5282 after eliminating TLS symbols.
5283
5284 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
5285
5286 PR bootstrap/50167
5287 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
5288 * graphite-poly.c (debug_gmp_value): Likewise.
5289
5290 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
5291
5292 PR target/55712
5293 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
5294 selected code model, define __code_mode_small__, __code_model_medium__,
5295 __code_model_large__, __code_model_32__ or __code_model_kernel__.
5296 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
5297 xchg temporary register with %k. Declare temporary register as
5298 early clobbered.
5299 [__x86_64__]: For medium and large code models, preserve %rbx register.
5300
5301 2013-01-03 Richard Biener <rguenther@suse.de>
5302
5303 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
5304 (dump_subscript): Adjust.
5305 (finalize_ddr_dependent): Do not dump redundant info.
5306 (analyze_siv_subscript): Adjust.
5307 (subscript_dependence_tester): Likewise.
5308 (compute_affine_dependence): Likewise.
5309
5310 2013-01-03 Richard Biener <rguenther@suse.de>
5311
5312 Revert
5313 2013-01-03 Richard Biener <rguenther@suse.de>
5314
5315 PR tree-optimization/55857
5316 * tree-vect-stmts.c (vectorizable_load): Do not setup
5317 re-alignment for invariant loads.
5318
5319 2013-01-02 Richard Biener <rguenther@suse.de>
5320
5321 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5322 invariant load do not generate a vector load from the scalar location.
5323
5324 2013-01-03 Richard Biener <rguenther@suse.de>
5325
5326 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
5327 for not vectorizing.
5328 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
5329 not build INDIRECT_REFs, call get_name once only.
5330 (vect_create_data_ref_ptr): Likewise. Dump base object kind
5331 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
5332
5333 2013-01-03 Richard Biener <rguenther@suse.de>
5334
5335 PR tree-optimization/55857
5336 * tree-vect-stmts.c (vectorizable_load): Do not setup
5337 re-alignment for invariant loads.
5338
5339 2013-01-03 Richard Biener <rguenther@suse.de>
5340
5341 PR lto/55848
5342 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
5343 prefer a built-in decl.
5344
5345 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5346
5347 * gcc.c (process_command): Update copyright notice dates.
5348 * gcov.c (print_version): Likewise.
5349 * gcov-dump.c (print_version): Likewise.
5350
5351 PR rtl-optimization/55838
5352 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
5353 iv0.step, iv1.step and step.
5354
5355 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5356 Marc Glisse <marc.glisse@inria.fr>
5357
5358 PR tree-optimization/55832
5359 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
5360 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
5361 integer_{one,zero}_node.
5362
5363 2013-01-03 Jakub Jelinek <jakub@redhat.com>
5364
5365 PR debug/54402
5366 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
5367 * var-tracking.c (reverse_op): Don't add reverse ops to
5368 VALUEs that have already
5369 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
5370
5371 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
5372
5373 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
5374
5375 2013-01-02 Teresa Johnson <tejohnson@google.com>
5376
5377 * dumpfile.c (dump_loc): Print filename with location.
5378 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
5379 new location_t parameter to emit complete unroll message with
5380 new dump framework.
5381 (canonicalize_loop_induction_variables): Compute loops location
5382 and pass to try_unroll_loop_completely.
5383 * loop-unroll.c (report_unroll_peel): New function.
5384 (peel_loops_completely): Use new dump format with location
5385 for main dumpfile message, and invoke report_unroll_peel on success.
5386 (decide_unrolling_and_peeling): Ditto.
5387 (decide_peel_once_rolling): Remove old dumpfile message subsumed
5388 by report_unroll_peel.
5389 (decide_peel_completely): Ditto.
5390 (decide_unroll_constant_iterations): Ditto.
5391 (decide_unroll_runtime_iterations): Ditto.
5392 (decide_peel_simple): Ditto.
5393 (decide_unroll_stupid): Ditto.
5394 * cfgloop.c (get_loop_location): New function.
5395 * cfgloop.h (get_loop_location): Declare.
5396
5397 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5398
5399 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
5400 NULL.
5401
5402 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5403
5404 PR middle-end/55198
5405 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
5406 BLKmode objects when EXPAND_MEMORY is specified.
5407
5408 2013-01-02 Sriraman Tallam <tmsriram@google.com>
5409
5410 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
5411 in loop predicate.
5412 (fold_builtin_cpu): Do not share cpu model decls across statements.
5413
5414 2013-01-02 Jason Merrill <jason@redhat.com>
5415
5416 PR c++/55804
5417 * tree.c (build_array_type_1): Revert earlier change.
5418
5419 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
5420
5421 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
5422 "cortex-a57".
5423 * config/aarch64/aarch64-tune.md: Re-generate.
5424
5425 2013-01-02 Richard Biener <rguenther@suse.de>
5426
5427 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
5428 invariant load do not generate a vector load from the scalar location.
5429
5430 2013-01-02 Richard Biener <rguenther@suse.de>
5431
5432 PR bootstrap/55784
5433 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
5434 * configure: Regenerate.
5435
5436 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5437
5438 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
5439 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
5440 (expand_builtin_int_roundingfn_2): Keep the original target around
5441 for the fallback case.
5442
5443 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
5444
5445 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
5446 to be clear for sign changes.
5447
5448 2013-01-01 Jan Hubicka <jh@suse.cz>
5449
5450 * ipa-inline-analysis.c: Fix formatting.
5451
5452 2013-01-01 Jakub Jelinek <jakub@redhat.com>
5453
5454 PR tree-optimization/55831
5455 * tree-vect-loop.c (get_initial_def_for_induction): Use
5456 gsi_after_labels instead of gsi_start_bb.
5457 \f
5458 Copyright (C) 2013 Free Software Foundation, Inc.
5459
5460 Copying and distribution of this file, with or without modification,
5461 are permitted in any medium without royalty provided the copyright
5462 notice and this notice are preserved.