]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
fix pr c/57577
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
710b6cc1
RS
12013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
4 loads.
5 (insn_count): New attribute, with most cases extracted from...
6 (length): ...here. Redefine most cases in terms of insn_count.
7 (single_insn): Delete.
8 (can_delay): Use insn_count to check for single instructions.
9 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
10 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
11 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
12 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
13 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
14 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
15 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
16 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
17 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
18 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
19 rather than "length".
20 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
21 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
22 Use "insn_count" rather than "length".
23 * config/mips/mips-dsp.md
24 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
25 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
26 length attributes.
27
1951f101
MG
282013-06-12 Marc Glisse <marc.glisse@inria.fr>
29
30 PR tree-optimization/57361
31 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
32
8b033a8a
SN
332013-06-12 Sofiane Naci <sofiane.naci@arm.com>
34
35 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): convert to split.
36 (aarch64_simd_combine<mode>): New instruction expansion.
37 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
38 function prototype.
39 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
40 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
41
ca0f62a8
JH
422013-06-12 Jan Hubicka <jh@suse.cz>
43
44 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
45 decl has when in streaming stage.
46 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
47 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
48
cddd69eb
RS
492013-06-12 Roland Stigge <stigge@antcom.de>
50
51 PR target/57578
52 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
53
bfdeda2c
JJ
542013-06-12 Jakub Jelinek <jakub@redhat.com>
55
56 PR tree-optimization/57537
57 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
58 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
59
a4fa02d1
RB
602013-06-12 Richard Biener <rguenther@suse.de>
61
62 * data-streamer.h (streamer_write_char_stream): CSE
63 obs->current_pointer.
64 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
65 streamer_write_char_stream manually and optimize the resulting loop.
66 (streamer_write_hwi_stream): Likewise.
67
bbf9ad07
JH
682013-06-12 Jan Hubicka <jh@suse.cz>
69
70 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
71 * cgraph.h (varpool_create_empty_node): Declare.
72 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
73 duplicated nodes.
74 * symtab.c (symtab_unregister_node): Be lax about missin entries
75 in node hash.
76 (symtab_get_node): Update comment.
77 * varpool.c (varpool_create_empty_node): Break out from ...
78 (varpool_node_for_decl): ... here.
79 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
80
a53f90ad
EB
812013-06-12 Eric Botcazou <ebotcazou@adacore.com>
82
83 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
84 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
85 part. Use straight-line flow at the end.
86 <COMPONENT_REF>: Remove superfluous else.
87 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
88
946f9306
JJ
892013-06-12 Jakub Jelinek <jakub@redhat.com>
90
91 PR target/56564
92 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
93 target hook even for !TREE_PUBLIC decls. If no resolution info
94 is available, return false for common and external decls.
95
a7fca6f0
KP
962013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
97
98 * config/rl78/constraints.md (U): New constraint.
99 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
100 valloc attribute.
101
c7d8f446
MM
1022013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
103
104 PR target/57589
105 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
106 to allow returning address to AT_PLATFORM name.
107
08346abd
JH
1082013-06-11 Jan Hubicka <jh@suse.cz>
109
110 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
111 * cgraph.h (symtab_node_base): Add weakref flag.
112 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
113 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
114 (output_weakrefs): Use weakref flag.
115 * fold-const.c (simple_operand_p): Handle WEAK.
116 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
117 * ipa.c (varpool_externally_visible_p): Drop weakref.
118 (function_and_variable_visibility): Update comment; fix weakref
119 sanity checks; do not clear DECL_WEAK on them.
120 * lto-cgraph.c (lto_output_node): update.
121 (lto_output_varpool_node): Update.
122 (input_overwrite_node): Update.
123 (input_node): Update.
124 (input_varpool_node): Update.
125 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
126 (lto_symtab_merge_symbols): Add sanity check.
127 (lto_symtab_prevailing_decl): Do not special case weakrefs.
128 * passes.c (rest_of_decl_compilation): Set static flag, too.
129 * symtab.c (dump_symtab_base): Dump weakref.
130 (verify_symtab_base): Sanity check weakrefs.
131 (symtab_make_decl_local): Remove duplicated code.
132 (symtab_alias_ultimate_target): Simplify.
133 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 134
d9af3652
DD
1352013-06-11 DJ Delorie <dj@redhat.com>
136
137 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
138 (rl78_unwind_word_mode): New.
139
ffa66012
DM
1402013-06-11 David Malcolm <dmalcolm@redhat.com>
141
142 * final.c (debug_prefix_maps): Make static.
143
783f2d35
DM
1442013-06-11 David Malcolm <dmalcolm@redhat.com>
145
146 * function.c (initial_trampoline): Remove stray copy.
147
7af26def
SN
1482013-06-11 Sofiane Naci <sofiane.naci@arm.com>
149
150 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
151
97756c0e
MJ
1522013-06-11 Martin Jambor <mjambor@suse.cz>
153
154 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
155 within bounds at the beginning of the function.
156
2c7b8bf6
AM
1572013-06-11 Alan Modra <amodra@gmail.com>
158
159 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
160 reporting.
161 (get_named_section): Don't NULL !DECL_P decl.
162
77cea46e
IZ
1632013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
164
165 * doc/invoke.texi (core-avx2): Document.
166 (slm): Likewise.
167 (atom): Updated with MOVBE.
168
888f0920
RB
1692013-06-11 Richard Biener <rguenther@suse.de>
170
171 * collect2.c (main): Do not redirect ld stdout/stderr when
172 debugging.
173
6b438d58
AB
1742013-06-11 Anton Blanchard <anton@samba.org>
175
176 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
177 correct shift value in little-endian mode.
178
3bc66938
JJ
1792013-06-11 Jakub Jelinek <jakub@redhat.com>
180
181 PR target/56564
182 * varasm.c (get_variable_align): Move #endif to the right place.
183
a5dc7f88
CC
1842013-06-10 Cary Coutant <ccoutant@google.com>
185
186 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
187 for hash so that hash table traversal order is deterministic.
188
19be72ab
MM
1892013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
190 Pat Haugen <pthaugen@us.ibm.com>
191 Peter Bergner <bergner@vnet.ibm.com>
192
193 * config/rs6000/vector.md (GPR move splitter): Do not split moves
194 of vectors in GPRS if they are direct moves or quad word load or
195 store moves.
196
197 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
198 declaration.
199 (direct_move_p): Likewise.
200 (quad_load_store_p): Likewise.
201
202 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
203 classes into bins based on the physical register type.
204 (reg_class_to_reg_type): Likewise.
205 (IS_STD_REG_TYPE): Likewise.
206 (IS_FP_VECT_REG_TYPE): Likewise.
207 (reload_fpr_gpr): Arrays to determine what insn to use if we can
208 use direct move instructions.
209 (reload_gpr_vsx): Likewise.
210 (reload_vsx_gpr): Likewise.
211 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
212 information that is a simplification of register classes. Also
213 precalculate direct move reload helpers.
214 (direct_move_p): New function to return true if the operation can
215 be done as a direct move instruciton.
216 (quad_load_store_p): New function to return true if the operation
217 is a quad memory operation.
218 (rs6000_legitimize_address): If quad memory, only allow register
219 indirect for TImode addresses.
220 (rs6000_legitimate_address_p): Likewise.
221 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
222 (rs6000_reload_register_type): Likewise.
223 (register_to_reg_type): Return register type.
224 (rs6000_secondary_reload_simple_move): New helper function for
225 secondary reload and secondary memory needed to identify anything
226 that is a simple move, and does not need reloading.
227 (rs6000_secondary_reload_direct_move): New helper function for
228 secondary reload to identify cases that can be done with several
229 instructions via the direct move instructions.
230 (rs6000_secondary_reload_move): New helper function for secondary
231 reload to identify moves between register types that can be done.
232 (rs6000_secondary_reload): Add support for quad memory operations
233 and for direct move.
234 (rs6000_secondary_memory_needed): Likewise.
235 (rs6000_debug_secondary_memory_needed): Change argument names.
236 (rs6000_output_move_128bit): New function to return the move to
237 use for 128-bit moves, including knowing about the various
238 limitations of quad memory operations.
239
240 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
241 memory operations. call rs6000_output_move_128bit for the actual
242 instruciton(s) to generate.
243 (vsx_movti_64bit): Likewise.
244
245 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
246 (UNSPEC_P8V_MTVSRWZ): Likewise.
247 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
248 (UNSPEC_P8V_MTVSRD): Likewise.
249 (UNSPEC_P8V_XXPERMDI): Likewise.
250 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
251 (UNSPEC_FUSION_GPR): Likewise.
252 (FMOVE128_GPR): New iterator for direct move.
253 (f32_lv): New mode attribute for load/store of SFmode/SDmode
254 values.
255 (f32_sv): Likewise.
256 (f32_dm): Likewise.
257 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
258 loads and direct move instructions.
259 (zero_extendsidi2_lfiwzx): Likewise.
260 (extendsidi2_lfiwax): Likewise.
261 (extendsidi2_nocell): Likewise.
262 (floatsi<mode>2_lfiwax): Likewise.
263 (lfiwax): Likewise.
264 (floatunssi<mode>2_lfiwzx): Likewise.
265 (lfiwzx): Likewise.
266 (fix_trunc<mode>_stfiwx): Likewise.
267 (fixuns_trunc<mode>_stfiwx): Likewise.
268 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
269 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
270 (parity<mode>2_cmpb): Set length/type attr.
271 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
272 for 'mr.' to fast_compare.
273 (bpermd_<mode>): Change type attr to popcnt.
274 (p8_fmrgow_<mode>): New insns for power8 direct move support.
275 (p8_mtvsrwz_1): Likewise.
276 (p8_mtvsrwz_2): Likewise.
277 (reload_fpr_from_gpr<mode>): Likewise.
278 (p8_mtvsrd_1): Likewise.
279 (p8_mtvsrd_2): Likewise.
280 (p8_xxpermdi_<mode>): Likewise.
281 (reload_vsx_from_gpr<mode>): Likewise.
282 (reload_vsx_from_gprsf): Likewise.
283 (p8_mfvsrd_3_<mode>): LIkewise.
284 (reload_gpr_from_vsx<mode>): Likewise.
285 (reload_gpr_from_vsxsf): Likewise.
286 (p8_mfvsrd_4_disf): Likewise.
287 (multi-word GPR splits): Do not split direct moves or quad memory
288 operations.
289
16876bdc
DM
2902013-06-10 David Malcolm <dmalcolm@redhat.com>
291
292 * tree-into-ssa.c (interesting_blocks): Make static.
293
df8a1d28
JJ
2942013-06-10 Jakub Jelinek <jakub@redhat.com>
295
296 PR target/56564
297 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
298 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
299 Use DATA_ABI_ALIGNMENT for that case instead if defined.
300 (get_variable_align): New function.
301 (get_variable_section, emit_bss, emit_common,
302 assemble_variable_contents, place_block_symbol): Use
303 get_variable_align instead of DECL_ALIGN.
304 (assemble_noswitch_variable): Add align argument, use it
305 instead of DECL_ALIGN.
306 (assemble_variable): Adjust caller. Use get_variable_align
307 instead of DECL_ALIGN.
308 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
309 caller.
310 (DATA_ABI_ALIGNMENT): Define.
311 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
312 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
313 opt is false, only return the psABI mandated alignment increase.
314 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
315 (DATA_ABI_ALIGNMENT): ... this.
316 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
317 (DATA_ABI_ALIGNMENT): ... this.
318 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
319 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
320 (DATA_ABI_ALIGNMENT): ... this.
321 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
322 * doc/tm.texi: Regenerated.
323
57b29ca6
UB
3242013-06-10 Uros Bizjak <ubizjak@gmail.com>
325
326 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
327 cmp_code to construct REG_EQUAL note.
328
3e56ed50
JJ
3292013-06-09 Jakub Jelinek <jakub@redhat.com>
330
331 PR target/57568
332 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
333 that operands[2] doesn't overlap with operands[0].
334
74fe2a1d
DE
3352013-06-09 David Edelsohn <dje.gcc@gmail.com>
336 Jan Hubicka <jh@suse.cz>
337
338 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
339 hack to mark symbols as used.
340
ed52a84e
VM
3412013-06-08 Vladimir Makarov <vmakarov@redhat.com>
342
343 PR rtl-optimization/57559
344 * lra-constraints.c (process_alt_operands): Don't discourage
345 memory with known offset for offsetable memory constraint.
346 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
347
299316ed
EB
3482013-06-08 Eric Botcazou <ebotcazou@adacore.com>
349
350 * varasm.c (struct oc_local_state): Reorder fields.
351 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
352 and adjust accordingly.
353 (output_constructor): Reorder initialization code and adjust call to
354 output_constructor_bitfield.
355
88ac60d3
JH
3562013-06-07 Jan Hubicka <jh@suse.cz>
357
358 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
359
4cdce1a8
DM
3602013-06-07 David Malcolm <dmalcolm@redhat.com>
361
362 * tree-object-size.c (unknown): Make const.
363
b5e0425c
AK
3642013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
365
366 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
367 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
368 for last alternative in the cpu_facility attribute.
369
79678d04
KT
3702013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
371
372 PR target/56315
373 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
374 (xordi3): Change operand 2 constraint to arm_xordi_operand.
375 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
376 * config/arm/constraints.md (Dg): New constraint.
377 * config/arm/neon.md (xordi3_neon): Remove.
378 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
379 * config/arm/predicates.md (arm_xordi_operand): New predicate.
380
b31ddbdb
KT
3812013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
382
383 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
384 Clean up alternatives.
385
8f90b7d4
AM
3862013-06-07 Alan Modra <amodra@gmail.com>
387
388 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
389 va_list_gpr_size.
390
961ce119
AM
3912013-06-07 Alan Modra <amodra@gmail.com>
392
393 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
394
33e49835
KT
3952013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
396
397 * config/arm/constraints.md (Df): New constraint.
398 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
399 Correct length attribute for last two alternatives.
400
acd17ae6
AM
4012013-06-07 Alan Modra <amodra@gmail.com>
402
403 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
404 override user -mfp-in-toc.
405 (offsettable_ok_by_alignment): Consider just the current access
406 rather than the whole object, unless BLKmode. Handle
407 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
408 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
409 for -mcmodel=medium.
410 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
411 override user -mfp-in-toc or -msum-in-toc. Default to
412 -mno-fp-in-toc for -mcmodel=medium.
413
73310b0e
DD
4142013-06-06 DJ Delorie <dj@redhat.com>
415
416 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
417 TARGET_VALID_POINTER_MODE.
418
0bd62dca
MM
4192013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
420 Pat Haugen <pthaugen@us.ibm.com>
421 Peter Bergner <bergner@vnet.ibm.com>
422
423 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
424 Document new power8 builtins.
425
426 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
427 condition code register, to allow 128-bit logical operations to be
428 done in the VSX or GPR registers.
429 (nor<mode>3): Use the canonical form for nor.
430 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
431 vclz*, and vpopcnt* vector instructions.
432 (nand<mode>3): Likewise.
433 (orc<mode>3): Likewise.
434 (clz<mode>2): LIkewise.
435 (popcount<mode>2): Likewise.
436
437 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
438 that only the GPRs are recognized.
439
440 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
441 support for new power8 builtins.
442
443 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
444 builtin functions.
445 (xscvdpspn): Likewise.
446 (vclz): Likewise.
447 (vclzb): Likewise.
448 (vclzh): Likewise.
449 (vclzw): Likewise.
450 (vclzd): Likewise.
451 (vpopcnt): Likewise.
452 (vpopcntb): Likewise.
453 (vpopcnth): Likewise.
454 (vpopcntw): Likewise.
455 (vpopcntd): Likewise.
456 (vgbbd): Likewise.
457 (vmrgew): Likewise.
458 (vmrgow): Likewise.
459 (eqv): Likewise.
460 (eqv_v16qi3): Likewise.
461 (eqv_v8hi3): Likewise.
462 (eqv_v4si3): Likewise.
463 (eqv_v2di3): Likewise.
464 (eqv_v4sf3): Likewise.
465 (eqv_v2df3): Likewise.
466 (nand): Likewise.
467 (nand_v16qi3): Likewise.
468 (nand_v8hi3): Likewise.
469 (nand_v4si3): Likewise.
470 (nand_v2di3): Likewise.
471 (nand_v4sf3): Likewise.
472 (nand_v2df3): Likewise.
473 (orc): Likewise.
474 (orc_v16qi3): Likewise.
475 (orc_v8hi3): Likewise.
476 (orc_v4si3): Likewise.
477 (orc_v2di3): Likewise.
478 (orc_v4sf3): Likewise.
479 (orc_v2df3): Likewise.
480
481 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
482 allow power8 quad mode in 64-bit.
483 (rs6000_builtin_vectorized_function): Add support to vectorize
484 ISA 2.07 count leading zeros, population count builtins.
485 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
486 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
487 (builtin_function_type): Add vgbbd builtin function which takes an
488 unsigned argument.
489 (altivec_expand_vec_perm_const): Add support for new power8 merge
490 instructions.
491
492 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
493 that does not include TImdoe for use with 32-bit.
494 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
495 instructions.
496 (UNSPEC_VSX_CVDPSPN): Likewise.
497 (vsx_xscvdpspn): Likewise.
498 (vsx_xscvspdpn): Likewise.
499 (vsx_xscvdpspn_scalar): Likewise.
500 (vsx_xscvspdpn_directmove): Likewise.
501 (vsx_and<mode>3): Split logical operations into 32-bit and
502 64-bit. Add support to do logical operations on TImode as well as
503 VSX vector types. Allow logical operations to be done in either
504 VSX registers or in general purpose registers in 64-bit mode. Add
505 splitters if GPRs were used. For AND, add clobber of CCmode to
506 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
507 encoding.
508 (vsx_and<mode>3_32bit): Likewise.
509 (vsx_and<mode>3_64bit): Likewise.
510 (vsx_ior<mode>3): Likewise.
511 (vsx_ior<mode>3_32bit): Likewise.
512 (vsx_ior<mode>3_64bit): Likewise.
513 (vsx_xor<mode>3): Likewise.
514 (vsx_xor<mode>3_32bit): Likewise.
515 (vsx_xor<mode>3_64bit): Likewise.
516 (vsx_one_cmpl<mode>2): Likewise.
517 (vsx_one_cmpl<mode>2_32bit): Likewise.
518 (vsx_one_cmpl<mode>2_64bit): Likewise.
519 (vsx_nor<mode>3): Likewise.
520 (vsx_nor<mode>3_32bit): Likewise.
521 (vsx_nor<mode>3_64bit): Likewise.
522 (vsx_andc<mode>3): Likewise.
523 (vsx_andc<mode>3_32bit): Likewise.
524 (vsx_andc<mode>3_64bit): Likewise.
525 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
526 and xxlorc instructions.
527 (vsx_eqv<mode>3_64bit): Likewise.
528 (vsx_nand<mode>3_32bit): Likewise.
529 (vsx_nand<mode>3_64bit): Likewise.
530 (vsx_orc<mode>3_32bit): Likewise.
531 (vsx_orc<mode>3_64bit): Likewise.
532
533 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
534
535 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
536 instruction.
537 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
538 (p8_vmrgow): Likewise.
539 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
540 GPRs to be split under VSX.
541 (p8v_clz<mode>2): Add power8 count leading zero support.
542 (p8v_popcount<mode>2): Add power8 population count support.
543 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
544 support.
545
546 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
547 instruction.
548
549 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
550 builtin functions.
551 (vec_nand): Likewise.
552 (vec_vclz): Likewise.
553 (vec_vclzb): Likewise.
554 (vec_vclzd): Likewise.
555 (vec_vclzh): Likewise.
556 (vec_vclzw): Likewise.
557 (vec_vgbbd): Likewise.
558 (vec_vmrgew): Likewise.
559 (vec_vmrgow): Likewise.
560 (vec_vpopcnt): Likewise.
561 (vec_vpopcntb): Likewise.
562 (vec_vpopcntd): Likewise.
563 (vec_vpopcnth): Likewise.
564 (vec_vpopcntw): Likewise.
565
37684c46
VM
5662013-06-06 Vladimir Makarov <vmakarov@redhat.com>
567
568 PR rtl-optimization/57468
569 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
570 spilled pseudos.
571
d89ae27c
VM
5722013-06-06 Vladimir Makarov <vmakarov@redhat.com>
573
574 PR rtl-optimization/57459
575 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
576 type when setting live regs.
577
3597e113
VM
5782013-06-06 Vladimir Makarov <vmakarov@redhat.com>
579
580 * config/s390/s390.opt (mlra): New option.
581 * config/s390/s390.c (s390_decompose_address): Check displacement
582 for all registers for LRA.
583 (s390_secondary_reload): Don't used secondary reloads for LRA.
584 (s390_lra_p): New function.
585 (TARGET_LRA_P): Define.
586 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
587 of attribute cpu_facility to zarch for the last alternative.
588 (*cmpmem_short): Ditto.
589
01037aeb
EB
5902013-06-06 Eric Botcazou <ebotcazou@adacore.com>
591
592 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
593 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
594 (arm_expand_prologue): Likewise.
595
3371a64f
TJ
5962013-06-06 Teresa Johnson <tejohnson@google.com>
597
598 PR c++/53743
599 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
600 as this is now done by redirect_edge_and_branch_force.
601 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
602 barriers, and fix interaction with splitting.
603 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
604 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
605 reflect changes made in the routine.
606 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
607 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
608 since this is called in cfglayout mode, and replace partition fixup
609 with assert as that is now done by force_nonfallthru_and_redirect.
610 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
611 already be marked with region crossing note.
612 (insert_section_boundary_note): Make non-static, gate on flag
613 has_bb_partition, rewrite to also check for multiple partitions.
614 (rest_of_handle_reorder_blocks): Remove call to
615 insert_section_boundary_note, now done later during free_cfg.
616 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
617 * bb-reorder.h (insert_section_boundary_note): Declare.
618 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
619 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
620 invoke insert_section_boundary_note.
621 (try_redirect_by_replacing_jump): Remove unnecessary
622 check for region crossing note.
623 (fixup_partition_crossing): New function.
624 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
625 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
626 in non-cfglayout mode.
627 (force_nonfallthru_and_redirect): Fixup partition boundaries,
628 remove old code that tried to do this. Emit barrier correctly
629 when we are in cfglayout mode.
630 (last_bb_in_partition): New function.
631 (rtl_split_edge): Correctly fixup partition boundaries.
632 (commit_one_edge_insertion): Remove old code that tried to
633 fixup region crossing edge since this is now handled in
634 split_block, and set up insertion point correctly since
635 block may now end in a jump.
636 (verify_hot_cold_block_grouping): Guard against checking when not in
637 linearized RTL mode.
638 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
639 notes.
640 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
641 rtl_verify_flow_info, so not called in cfglayout mode.
642 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
643 (fixup_reorder_chain): Remove old code that attempted to fixup region
644 crossing note as this is now handled in force_nonfallthru_and_redirect.
645 (duplicate_insn_chain): Don't duplicate switch section notes.
646 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
647 note.
648 * basic-block.h (emit_barrier_after_bb): Declare.
649
66071e10
KT
6502013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
651
652 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
653 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
654 arm_usatsihi): Adjust alternatives for arm_restrict_it.
655
0e26bf3d
KT
6562013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
657
658 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
659 where appropriate.
660 * config/arm/ldmstm.md: Regenerate.
661
12b4e7ef
KT
6622013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
663
664 * config/arm/sync.md (atomic_loaddi_1):
665 Disable predication for arm_restrict_it.
666 (arm_load_exclusive<mode>): Likewise.
667 (arm_load_exclusivesi): Likewise.
668 (arm_load_exclusivedi): Likewise.
669 (arm_load_acquire_exclusive<mode>): Likewise.
670 (arm_load_acquire_exclusivesi): Likewise.
671 (arm_load_acquire_exclusivedi): Likewise.
672 (arm_store_exclusive<mode>): Likewise.
673 (arm_store_exclusive<mode>): Likewise.
674 (arm_store_release_exclusivedi): Likewise.
675 (arm_store_release_exclusive<mode>): Likewise.
676
15d16c8a
RB
6772013-06-06 Richard Biener <rguenther@suse.de>
678
679 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
680 after LTO_null.
681 (lto_tag_is_tree_code_p): Adjust.
682 (lto_tag_is_gimple_code_p): Likewise.
683 (lto_gimple_code_to_tag): Likewise.
684 (lto_tag_to_gimple_code): Likewise.
685 (lto_tree_code_to_tag): Likewise.
686 (lto_tag_to_tree_code): Likewise.
687 * data-streamer.h (streamer_write_hwi_in_range): Use
688 uhwi streaming to stream the normalized range.
689 (streamer_read_hwi_in_range): Likewise.
690
17a7fc37
KT
6912013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
692
693 * config/arm/arm.md (enabled_for_depr_it): New attribute.
694 (predicable_short_it): Likewise.
695 (predicated): Likewise.
696 (enabled): Handle above.
697 (define_cond_exec): Set predicated attribute to yes.
698
b57ca59b
MS
6992013-06-05 Mike Stump <mikestump@comcast.net>
700
701 * gdbinit.in (__FUNCTION__): Add.
702
c1e183a9
UB
7032013-06-05 Uros Bizjak <ubizjak@gmail.com>
704
705 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
706 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
707
0378bddb
JH
7082013-06-05 Jan Hubicka <jh@suse.cz>
709
710 * varasm.c (mark_decl_referenced): Revert the removal until targets
711 are fixed.
712
8f8a2057
DE
7132013-06-05 David Edelsohn <dje.gcc@gmail.com>
714
715 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
716 instead of mark_decl_referenced.
717
edb983b2
JH
7182013-06-05 Jan Hubicka <jh@suse.cz>
719
720 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
721 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
722 and symtab_used_from_object_file_p.
723 (cgraph_make_node_local_1): Clear forced_by_abi.
724 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
725 * cgraph.h (symtab_node_base): Add forced_by_abi.
726 (decide_is_variable_needed): Remove.
727 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
728 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
729 (decide_is_symbol_needed): ... this one; handle symbols in general;
730 always analyze virtuals; honnor forced_by_abi.
731 (cgraph_finalize_function): Update.
732 (varpool_finalize_decl): Update.
733 (symbol_defined_and_needed): Remove.
734 (analyze_functions): Update.
735 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
736 output_refs, input_overwrite_node): Handle forced_by_abi.
737 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
738 (address_taken_from_non_vtable_p): ... this one.
739 (comdat_can_be_unshared_p_1): New function.
740 (cgraph_comdat_can_be_unshared_p): Rename to ...
741 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
742 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
743 (function_and_variable_visibility): Clear forced_by_abi as needed.
744 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
745 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
746 * symtab.c (dump_symtab_base): Dump forced_by_abi.
747 * varpool.c (decide_is_variable_needed): Remove.
748
9912dbe5
KT
7492013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
750
751 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
752 (arm_option_override): Override arm_restrict_it where appropriate.
753 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
754 * config/arm/arm.opt (mrestrict-it): New command-line option.
755 * doc/invoke.texi: Document -mrestrict-it.
756
34c136b6
DM
7572013-06-05 David Malcolm <dmalcolm@redhat.com>
758
759 * tsan.c (tsan_atomic_table): Make const.
760
a367df53
RB
7612013-06-05 Richard Biener <rguenther@suse.de>
762
763 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
764 index associated with the tree we are supposed to replace.
765 * tree-streamer-out.c (pack_ts_base_value_fields): Output
766 TREE_ASM_WRITTEN as zero for everything but SSA names.
767
70d51a19
DM
7682013-06-05 David Malcolm <dmalcolm@redhat.com>
769
770 * tree-ssa-structalias.c (call_stmt_vars): Make static.
771
b9bd2075
JH
7722013-06-04 Jan Hubicka <jh@suse.cz>
773
774 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
775 (input_node, input_varpool_node): Handle correctly external same
776 body aliases.
777 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
778 nodes at ltrans stage.
779
aaae719d
JH
7802013-06-04 Jan Hubicka <jh@suse.cz>
781
782 * ipa-inline.c (update_caller_keys): Fix availability test.
783 (update_callee_keys): Likewise.
784 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
785 to follow ELF standard.
786
107eea2c
JU
7872013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
788
789 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
790 (mips64r5900el-*-elf*): New configurations.
791 * config/mips/mips-cpus.def (r5900): New processor.
792 * config/mips/mips-tables.opt: Regenerate.
793 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
794 (mips_issue_rate): Handle PROCESSOR_R5900.
795 (mips_reorg_process_insns): Force reorder mode for the R5900.
796 * config/mips/mips.h (TARGET_MIPS5900): Define.
797 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
798 TARGET_MIPS5900.
799 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
800 TARGET_MIPS5900.
801 * config/mips/mips.md (processor): Add r5900.
802 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
803
b7342d25
IB
8042013-06-04 Ian Bolton <ian.bolton@arm.com>
805
806 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
807 into function to generate MOVI instruction.
c1e183a9 808 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
809 (aarch64_preferred_simd_mode): Turn into wrapper.
810 (aarch64_output_scalar_simd_mov_immediate): New function.
811 * config/aarch64/aarch64-protos.h: Add prototype for above.
812
81c2dfb9
IB
8132013-06-04 Ian Bolton <ian.bolton@arm.com>
814
815 * config/aarch64/aarch64.c (simd_immediate_info): Remove
816 element_char member.
817 (sizetochar): Return signed char.
818 (aarch64_simd_valid_immediate): Remove elchar and other
819 unnecessary variables.
820 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
821 Calculate element_char as required.
822 * config/aarch64/aarch64-protos.h: Update and move prototype
823 for aarch64_output_simd_mov_immediate.
824 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
825 Update arguments.
826
48063b9d
IB
8272013-06-04 Ian Bolton <ian.bolton@arm.com>
828
829 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
830 information completed by aarch64_simd_valid_immediate.
831 (aarch64_legitimate_constant_p): Update arguments.
832 (aarch64_simd_valid_immediate): Work with struct rather than many
833 pointers.
834 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
835 (aarch64_simd_make_constant): Update arguments.
836 (aarch64_output_simd_mov_immediate): Work with struct rather than
837 many pointers. Output immediate directly rather than as operand.
838 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
839 Update prototype.
840 * config/aarch64/constraints.md (Dn): Update arguments.
841
3ea63f60
IB
8422013-06-04 Ian Bolton <ian.bolton@arm.com>
843
844 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
845 longer static.
846 (aarch64_simd_immediate_valid_for_move): Remove.
847 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
848 (aarch64_simd_make_constant): Update call.
849 (aarch64_output_simd_mov_immediate): Update call.
850 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
851 Add prototype.
852 * config/aarch64/constraints.md (Dn): Update call.
853
d8edd899
IB
8542013-06-04 Ian Bolton <ian.bolton@arm.com>
855
856 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
857 return type to bool for prototype.
858 (aarch64_legitimate_constant_p): Check for true instead of not -1.
859 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
860 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
861
44b20bb8
CM
8622013-06-04 Catherine Moore <clm@codesourcery.com>
863
864 * config/mips/mips.opt (meva): New.
c1e183a9 865 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
866 (ASM_SPEC): Handle -meva.
867 * doc/invoke.texi (meva): Document.
868
52befbd8
AM
8692013-06-04 Alan Modra <amodra@gmail.com>
870
871 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
872 constant output.
873
aadaf24e
KT
8742013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
875
876 * rtl.def: Add extra fourth optional field to define_cond_exec.
877 * gensupport.c (process_one_cond_exec): Process attributes from
878 define_cond_exec.
879 * doc/md.texi: Document fourth field in define_cond_exec.
880
0cd9e9ee
EB
8812013-06-04 Eric Botcazou <ebotcazou@adacore.com>
882
883 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
884 out the processing order as in store_bit_field_1.
885
cb0f665d
JH
8862013-06-04 Jan Hubicka <jh@suse.cz>
887
888 PR middle-end/57500
889 * cgraphunit.c (cgraph_process_same_body_aliases): Create
890 non-VAR_DECL node if it does not exist yet.
891
53984b9b
RS
8922013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
893
894 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
895 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
896 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
897 target_cpu_default setting.
898
5d318fd4
TJ
8992013-06-03 Teresa Johnson <tejohnson@google.com>
900
901 * dumpfile.c (opt_info_switch_p): Change -fopt-info
902 default to -fopt-info=optimized instead of all.
903 * doc/invoke.texi: Ditto.
904 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
905 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
906 (execute_vect_slp): Emit BB vectorization success under
907 MSG_OPTIMIZED_LOCATIONS.
908 * tree-vect-slp.c (vect_slp_transform_bb): Change
909 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
910 * tree-vect-loop.c (vect_transform_loop): Ditto.
911
ec3af349
JM
9122013-06-03 Jason Merrill <jason@redhat.com>
913
914 PR c++/57415
915 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
916 Use TARGET_EXPR for C++.
917
1baf9159
JJ
9182013-06-03 Jakub Jelinek <jakub@redhat.com>
919
920 PR rtl-optimization/57268
0cd9e9ee 921 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
922 if DEBUG_INSN_P (insn).
923
924 Reapply
925 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
926
927 PR rtl-optimization/57268
928 * sched-deps.c (sched_analyze_2): Flush dependence lists if
929 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
930
0f1d3965
YR
9312013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
932
933 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
934 (ix86_avoid_lea_for_addr): Likewise.
935 (exact_dependency_1): Likewise.
936 (ix86_adjust_cost): Likewise.
937 (swap_top_of_ready_list): Fix formatting and !reload_completed check
938 removed.
939 (do_reorder_for_imul): Fix typo, formatting and
940 !reload_completed check removed.
941 (ix86_sched_reorder): Fix typo and formatting.
942 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
943 list.
944
3bc30db4
SN
9452013-06-03 Sofiane Naci <sofiane.naci@arm.com>
946
947 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
948
19cc6fac
EB
9492013-06-03 Eric Botcazou <ebotcazou@adacore.com>
950
951 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
952 <STRING_CST>: Likewise.
953 <VECTOR_CST>: Likewise.
954
c68a6e08
JW
9552013-06-01 Janus Weil <janus@gcc.gnu.org>
956 Mikael Morin <mikael@gcc.gnu.org>
957
958 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
959 * config.in: Regenerated.
960 * configure: Regenerated.
961
38e55e5c
JH
9622013-06-01 Jan Hubicka <jh@suse.cz>
963
964 PR middle-end/57366
965 * cgraphunit.c (compile): When weakref is not supported,
966 set up transparent aliases before final output pass.
967 * varasm.c (assemble_alias): Do not try to do it here.
968
eb51d2ff
JH
9692013-06-01 Jan Hubicka <jh@suse.cz>
970
971 PR middle-end/57467
972 * passes.c (for_per_function): Skip unanalyzed functions.
973
40a7fe1e
JH
9742013-06-01 Jan Hubicka <jh@suse.cz>
975
976 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
977 (lto_symtab_merge_symbols_1): ... this one.
978 (lto_symtab_merge_cgraph_nodes): Rename to ...
979 (lto_symtab_merge_symbols): ... this one; simplify.
980 * cgraph.c (same_body_aliases_done): Rename to ...
981 (cpp_implicit_aliases_done): ... this one.
982 (cgraph_create_function_alias): Update.
983 (cgraph_same_body_alias): Update.
c1e183a9 984 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 985 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 986 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
987 (cgraph_node): Remove same_body_alias.
988 (varpool_node): Remove alias_of and extra_name_alias.
989 (same_body_aliases_done): Rename to ..
990 (cpp_implicit_aliases_done): ... this one.
991 (symtab_alias_ultimate_target): Add default parameter.
992 (symtab_resolve_alias): New function.
993 (fixup_same_cpp_alias_visibility): Declare.
994 (cgraph_function_node): Add default parameter.
995 (cgraph_node_asm_name): Likewise.
996 (cgraph_function_or_thunk_node): Add default parameter; do
997 not ICE when it is NULL.
998 (varpool_variable_node): Likewise.
999 * tree-emutls.c (create_emultls_var): Update.
1000 (ipa_lower_emutls): Update.
1001 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1002 (cgraph_reset_node): Reset alias info.
1003 (cgraph_finalize_function): Update.
1004 (fixup_same_cpp_alias_visibility): Move to symtab.c.
1005 (analyze_function): Simplify.
1006 (cgraph_process_same_body_aliases): Simplify.
1007 (analyze_functions): Fixup same body aliases.
1008 (handle_alias_pairs): Simplify.
1009 (assemble_thunk): Update.
1010 (assemble_thunks_and_aliases): Update.
1011 (output_weakrefs): Rewrite.
1012 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1013 (lto_output_varpool_node): Likewise.
1014 (compute_ltrans_boundary): Remve assert.
1015 (get_alias_symbol): New functoin.
1016 (input_node): Rewrite alias handling.
1017 (input_varpool_node): Likewise.
1018 * ipa-pure-const.c (propagate_pure_const): Fix formating.
1019 * ipa.c (process_references): Handle weakrefs correctly.
1020 (symtab_remove_unreachable_nodes): Likewise.
1021 * trans-mem.c (get_cg_data): Update.
1022 (ipa_tm_create_version_alias): Update.
1023 (ipa_tm_execute): Update.
1024 * symtab.c (dump_symtab_base): Dump aliases.
1025 (verify_symtab_base): Verify aliases.
1026 (symtab_node_availability): New function.
1027 (symtab_alias_ultimate_target): Simplify.
1028 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1029 handle all the fixup cases.
1030 (symtab_resolve_alias): New function.
1031 * passes.c (ipa_write_summaries): Handle weakrefs.
1032 * varpool.c (varpool_analyze_node): Simplify.
1033 (assemble_aliases): Update.
1034 (varpool_create_variable_alias): Simplify.
1035 (varpool_extra_name_alias): Simplify.
1036 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1037 (lto_symtab_merge_symbols): ... this one.
1038
21759881
DT
10392013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
1040
1041 Revert
1042 PR rtl-optimization/57268
1043 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1044 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1045
daf4e940
TB
10462013-06-01 Tobias Burnus <burnus@net-b.de>
1047
1048 Partially reverted:
1049 2013-05-31 Tobias Burnus <burnus@net-b.de>
1050
1051 PR middle-end/57073
1052 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1053 further up.
1054
c359d8d0
DT
10552013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1056
1057 PR rtl-optimization/57268
1058 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1059 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1060
4172215d
EB
10612013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1062
1063 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1064 unordered comparison operators when -fno-trapping-math is in effect
1065 on the e500.
1066 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1067 and implement unordered comparison operators properly on the e500.
1068
a8c50132
EB
10692013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1070
1071 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1072 for constant scalar integers.
1073 (simplify_relational_operation_1): Likewise.
1074
44626634
SB
10752013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
1076
1077 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1078 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
1079 Fix comment.
1080
55805e54
YR
10812013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1082 Igor Zamyatin <igor.zamyatin@intel.com>
1083
1084 Silvermont (SLM) architecture performance tuning.
1085 * config/i386/i386.h (enum ix86_tune_indices): Add
1086 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1087 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
1088
1089 * config/i386/i386.c (initial_ix86_tune_features)
1090 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
1091 (ix86_lea_outperforms): Handle Silvermont tuning.
1092 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
1093 call.
1094 (ix86_use_lea_for_mov): Likewise.
1095 (ix86_avoid_lea_for_addr): Likewise.
1096 (ix86_lea_for_add_ok): Likewise.
1097 (exact_dependency_1): New function.
1098 (exact_store_load_dependency): Likewise.
1099 (ix86_adjust_cost): Handle Silvermont tuning.
1100 (do_reoder_for_imul): Likewise.
1101 (swap_top_of_ready_list): New function.
1102 (ix86_sched_reorder): Changed to handle Silvermont tuning.
1103
1104 * config/i386/i386.md (peepholes that split memory operand in fp
1105 converts): New.
1106
e19c9de2
MS
11072013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
1108
1109 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
1110 Remove un-necessary braces.
1111
38e6c9a6
MS
11122013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
1113
1114 * config/aarch64/aarch64.c (aarch64_classify_symbol):
1115 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
1116
e3530904
TB
11172013-05-31 Tobias Burnus <burnus@net-b.de>
1118
1119 PR middle-end/57073
c1e183a9 1120 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 1121
b6af05a9
KT
11222013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1123
1124 PR target/56315
1125 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
1126 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
1127 * config/arm/neon.md (iordi3_neon): Remove.
1128 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
1129 * config/arm/predicates.md (imm_for_neon_logic_operand):
1130 Move to earlier in the file.
1131 (neon_logic_op2): Likewise.
1132 (arm_iordi_operand_neon): New predicate.
1133
f800c166
RB
11342013-05-31 Richard Biener <rguenther@suse.de>
1135
1136 PR tree-optimization/57478
1137 PR tree-optimization/57453
1138 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
1139 are life as well.
1140
e571fa59
KP
11412013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1142
1143 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
1144 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
1145
0fa6e0ef
TB
11462013-05-30 Tobias Burnus <burnus@net-b.de>
1147 Thomas Koenig <tkoenig@gcc.gnu.org>
1148
1149 PR middle-end/57073
1150 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
1151 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
1152
4688ddf5
SB
11532013-05-30 Steven Bosscher <steven@gcc.gnu.org>
1154
0fa6e0ef 1155 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 1156
3b9ceb4b
VM
11572013-05-30 Vladimir Makarov <vmakarov@redhat.com>
1158
1159 * target.def (register_usage_leveling_p): New hook.
1160 * targhooks.c (default_register_usage_leveling_p): New.
1161 * targhooks.h (default_register_usage_leveling_p): New prototype.
1162 * lra-assigns.c (register_usage_leveling_p): Use the hook.
1163 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
1164 * doc/tm.texi: Update.
1165 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
1166
65f9e789
IB
11672013-05-30 Ian Bolton <ian.bolton@arm.com>
1168
1169 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
1170 (*insv_reg<mode>): New define_insn.
1171
ca035367
JR
11722013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
1173
1174 PR rtl-optimization/57439
1175 * postreload.c (move2add_valid_value_p): Check that we have
1176 a zero subreg_regno_offset when accessing the register in
1177 the requested mode.
1178
0b871ccf
YR
11792013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1180 Igor Zamyatin <igor.zamyatin@intel.com>
1181
1182 Silvermont (SLM) architecture pipeline model, tuning and
1183 insn selection.
1184 * config.gcc: Add slm config options and target.
1185
1186 * config/i386/slm.md: New.
1187
1188 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
1189
1190 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
1191 PROCESSOR_SLM.
1192 (ix86_target_macros_internal): Likewise.
1193
1194 * gcc/config/i386/i386.c (slm_cost): New cost.
1195 (m_SLM): New macro flag.
1196 (initial_ix86_tune_features): Set m_SLM.
1197 (x86_accumulate_outgoing_args): Likewise.
1198 (x86_arch_always_fancy_math_387): Likewise.
1199 (processor_target_table): Add slm cost.
1200 (cpu_names): Add slm cpu name.
1201 (x86_option_override_internal): Set SLM ISA.
1202 (ix86_issue_rate): New case PROCESSOR_SLM.
1203 (ia32_multipass_dfa_lookahead): Likewise.
1204 (fold_builtin_cpu): Add slm.
1205
1206 * config/i386/i386.h (TARGET_SLM): New target macro.
1207 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
1208 (processor_type): Add PROCESSOR_SLM.
1209
1210 * config/i386/i386.md (cpu): Add new value "slm".
1211 (slm.md): Include slm.md.
1212
24d5b097
XG
12132013-05-30 Bernd Schmidt <bernds@codesourcery.com>
1214 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1215
1216 * config/arm/arm-protos.h: Add and update function protos.
1217 * config/arm/arm.c (use_simple_return_p): New added.
1218 (thumb2_expand_return): Check simple_return flag.
1219 * config/arm/arm.md: Add simple_return and conditional simple_return.
1220 * config/arm/iterators.md: Add iterator for return and simple_return.
1221
c1cccc15
ZC
12222013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
1223
1224 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
1225 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
1226 (arm_emit_vfp_multi_reg_pop): Likewise.
1227 (thumb2_emit_ldrd_pop): Likewise.
1228 (arm_expand_epilogue): Add misc REG_CFA notes.
1229 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
1230
3a4f280b
LC
12312013-05-29 Lawrence Crowl <crowl@google.com>
1232
1233 * config/arm/t-arm: Update for below.
1234
1235 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
1236 Change type to hash_table. Update dependent calls and types.
1237
1238 * config/i386/t-cygming: Update for below.
1239
1240 * config/i386/t-interix: Update for below.
1241
1242 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
1243 Change type to hash_table. Update dependent calls and types.
1244 (i386_find_on_wrapper_list::wrappers): Likewise.
1245
1246 * config/ia64/t-ia64: Update for below.
1247
1248 * config/ia64/ia64.c (bundle_state_table):
1249 Change type to hash_table. Update dependent calls and types.
1250
1251 * config/mips/mips.c (mips_reorg_process_insns::htab):
1252 Change type to hash_table. Update dependent calls and types.
1253
1254 * config/sol2.c (solaris_comdat_htab):
1255 Change type to hash_table. Update dependent calls and types.
1256
1257 * config/t-sol2: Update for above.
1258
1388a0e3
TJ
12592013-05-29 Teresa Johnson <tejohnson@google.com>
1260
1261 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
1262 functions are not yet marked as defined.
1263
a5965b52
MM
12642013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
1265 Pat Haugen <pthaugen@us.ibm.com>
1266 Peter Bergner <bergner@vnet.ibm.com>
1267
1268 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
1269 instructions.
1270 (VEC_A): Likewise.
1271 (VEC_C): Likewise.
1272 (vrotl<mode>3): Likewise.
1273 (vashl<mode>3): Likewise.
1274 (vlshr<mode>3): Likewise.
1275 (vashr<mode>3): Likewise.
1276
1277 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1278 support for power8 V2DI builtins.
1279
1280 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
1281 power8 V2DI builtins.
1282 (vupkhsw): Likewise.
1283 (vupklsw): Likewise.
1284 (vaddudm): Likewise.
1285 (vminsd): Likewise.
1286 (vmaxsd): Likewise.
1287 (vminud): Likewise.
1288 (vmaxud): Likewise.
1289 (vpkudum): Likewise.
1290 (vpksdss): Likewise.
1291 (vpkudus): Likewise.
1292 (vpksdus): Likewise.
1293 (vrld): Likewise.
1294 (vsld): Likewise.
1295 (vsrd): Likewise.
1296 (vsrad): Likewise.
1297 (vsubudm): Likewise.
1298 (vcmpequd): Likewise.
1299 (vcmpgtsd): Likewise.
1300 (vcmpgtud): Likewise.
1301 (vcmpequd_p): Likewise.
1302 (vcmpgtsd_p): Likewise.
1303 (vcmpgtud_p): Likewise.
1304 (vupkhsw): Likewise.
1305 (vupklsw): Likewise.
1306 (vaddudm): Likewise.
1307 (vmaxsd): Likewise.
1308 (vmaxud): Likewise.
1309 (vminsd): Likewise.
1310 (vminud): Likewise.
1311 (vpksdss): Likewise.
1312 (vpksdus): Likewise.
1313 (vpkudum): Likewise.
1314 (vpkudus): Likewise.
1315 (vrld): Likewise.
1316 (vsld): Likewise.
1317 (vsrad): Likewise.
1318 (vsrd): Likewise.
1319 (vsubudm): Likewise.
1320
1321 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1322 support for power8 V2DI instructions.
1323
1324 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
1325 power8 V2DI instructions. Combine pack and unpack insns to use an
1326 iterator for each mode. Check whether a particular mode supports
1327 Altivec instructions instead of just checking TARGET_ALTIVEC.
1328 (UNSPEC_VPKUWUM): Likewise.
1329 (UNSPEC_VPKSHSS): Likewise.
1330 (UNSPEC_VPKSWSS): Likewise.
1331 (UNSPEC_VPKUHUS): Likewise.
1332 (UNSPEC_VPKSHUS): Likewise.
1333 (UNSPEC_VPKUWUS): Likewise.
1334 (UNSPEC_VPKSWUS): Likewise.
1335 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
1336 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
1337 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
1338 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
1339 (UNSPEC_VUPKHSB): Likewise.
1340 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
1341 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
1342 (UNSPEC_VUPKHSH): Likewise.
1343 (UNSPEC_VUPKLSB): Likewise.
1344 (UNSPEC_VUPKLSH): Likewise.
1345 (VI2): Likewise.
1346 (VI_char): Likewise.
1347 (VI_scalar): Likewise.
1348 (VI_unit): Likewise.
1349 (VP): Likewise.
1350 (VP_small): Likewise.
1351 (VP_small_lc): Likewise.
1352 (VU_char): Likewise.
1353 (add<mode>3): Likewise.
1354 (altivec_vaddcuw): Likewise.
1355 (altivec_vaddu<VI_char>s): Likewise.
1356 (altivec_vadds<VI_char>s): Likewise.
1357 (sub<mode>3): Likewise.
1358 (altivec_vsubcuw): Likewise.
1359 (altivec_vsubu<VI_char>s): Likewise.
1360 (altivec_vsubs<VI_char>s): Likewise.
1361 (altivec_vavgs<VI_char>): Likewise.
1362 (altivec_vcmpbfp): Likewise.
1363 (altivec_eq<mode>): Likewise.
1364 (altivec_gt<mode>): Likewise.
1365 (altivec_gtu<mode>): Likewise.
1366 (umax<mode>3): Likewise.
1367 (smax<mode>3): Likewise.
1368 (umin<mode>3): Likewise.
1369 (smin<mode>3): Likewise.
1370 (altivec_vpkuhum): Likewise.
1371 (altivec_vpkuwum): Likewise.
1372 (altivec_vpkshss): Likewise.
1373 (altivec_vpkswss): Likewise.
1374 (altivec_vpkuhus): Likewise.
1375 (altivec_vpkshus): Likewise.
1376 (altivec_vpkuwus): Likewise.
1377 (altivec_vpkswus): Likewise.
1378 (altivec_vpks<VI_char>ss): Likewise.
1379 (altivec_vpks<VI_char>us): Likewise.
1380 (altivec_vpku<VI_char>us): Likewise.
1381 (altivec_vpku<VI_char>um): Likewise.
1382 (altivec_vrl<VI_char>): Likewise.
1383 (altivec_vsl<VI_char>): Likewise.
1384 (altivec_vsr<VI_char>): Likewise.
1385 (altivec_vsra<VI_char>): Likewise.
1386 (altivec_vsldoi_<mode>): Likewise.
1387 (altivec_vupkhsb): Likewise.
1388 (altivec_vupkhs<VU_char>): Likewise.
1389 (altivec_vupkls<VU_char>): Likewise.
1390 (altivec_vupkhsh): Likewise.
1391 (altivec_vupklsb): Likewise.
1392 (altivec_vupklsh): Likewise.
1393 (altivec_vcmpequ<VI_char>_p): Likewise.
1394 (altivec_vcmpgts<VI_char>_p): Likewise.
1395 (altivec_vcmpgtu<VI_char>_p): Likewise.
1396 (abs<mode>2): Likewise.
1397 (vec_unpacks_hi_v16qi): Likewise.
1398 (vec_unpacks_hi_v8hi): Likewise.
1399 (vec_unpacks_lo_v16qi): Likewise.
1400 (vec_unpacks_hi_<VP_small_lc>): Likewise.
1401 (vec_unpacks_lo_v8hi): Likewise.
1402 (vec_unpacks_lo_<VP_small_lc>): Likewise.
1403 (vec_pack_trunc_v8h): Likewise.
1404 (vec_pack_trunc_v4si): Likewise.
1405 (vec_pack_trunc_<mode>): Likewise.
1406
1407 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
1408 V2DI builtins.
1409 (vec_vmaxsd): Likewise.
1410 (vec_vmaxud): Likewise.
1411 (vec_vminsd): Likewise.
1412 (vec_vminud): Likewise.
1413 (vec_vpksdss): Likewise.
1414 (vec_vpksdus): Likewise.
1415 (vec_vpkudum): Likewise.
1416 (vec_vpkudus): Likewise.
1417 (vec_vrld): Likewise.
1418 (vec_vsld): Likewise.
1419 (vec_vsrad): Likewise.
1420 (vec_vsrd): Likewise.
1421 (vec_vsubudm): Likewise.
1422 (vec_vupkhsw): Likewise.
1423 (vec_vupklsw): Likewise.
1424
e70670cf
JH
14252013-05-29 Jan Hubicka <jh@suse.cz>
1426
1427 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
1428 flags; reorder rest of fields in more consistent way.
1429 (varpool_node): Remove analyzed, finalized and alias.
1430 (cgraph_ndoe): Likewise.
1431 (symtab_alias_ultimate_target): New function.
1432 (cgraph_function_node): Move offline.
1433 (cgraph_reset_node): Declare.
1434 (cgraph_comdat_can_be_unshared_p): Remove.
1435 (varpool_remove_initializer): Declare.
1436 (varpool_first_defined_variable, varpool_next_defined_variable
1437 cgraph_first_defined_function, cgraph_next_defined_function): Update.
1438 (cgraph_function_with_gimple_body_p): Update.
1439 (varpool_all_refs_explicit_p): Update.
1440 (symtab_alias_target): New function.
1441 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
1442 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
1443 (cgraph_function_or_thunk_node): Simplify using
1444 symtab_alias_ultimate_target.
e70670cf
JH
1445 (varpool_variable_node): Likewise.
1446 * cgraph.c (cgraph_create_function_alias): Update.
1447 (cgraph_add_thunk): Update.
1448 (cgraph_remove_node): Update.
1449 (dump_cgraph_node): Do not dump removed flags.
1450 (cgraph_function_body_availability): Update.
1451 (cgraph_propagate_frequency): Update.
1452 (verify_cgraph_node): Check sanity of local flag.
1453 (cgraph_function_node): Move here from cgraph.h; revamp for
1454 cgraph_function_or_thunk_node.
1455 * lto-symtab.c (lto_varpool_replace_node): Update.
1456 (lto_symtab_resolve_can_prevail_p): Update.
1457 (lto_symtab_merge_cgraph_nodes): Update.
1458 * ipa-cp.c (determine_versionability, initialize_node_lattices,
1459 propagate_constants_accross_call, devirtualization_time_bonus,
1460 ipcp_propagate_stage): Update.
1461 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
1462 * ipa-inline-transform.c (clone_inlined_nodes,
1463 preserve_function_body_p): Update.
e70670cf
JH
1464 * ipa-reference.c (propagate): Update.
1465 (write_node_summary_p): Update.
1466 * toplev.c (wrapup_global_declaration_2): Update.
1467 * cgraphunit.c (cgraph_analyze_function): Rename to ...
1468 (analyze_function) ... this one.
1469 (cgraph_process_new_functions): Update.
1470 (cgraph_reset_node): Export.
1471 (cgraph_finalize_function): Update.
1472 (cgraph_add_new_function): Update.
1473 (process_function_and_variable_attributes): Update.
1474 (varpool_finalize_decl): Update.
1475 (symbol_finalized): Remove.
1476 (symbol_finalized_and_needed): Rename to ...
1477 (symbol_defined_and_needed): ... update.
1478 (cgraph_analyze_functions): Update.
1479 (handle_alias_pairs): Update.
1480 (mark_functions_to_output): Update.
1481 (assemble_thunk): Update.
1482 (output_in_order): Update.
1483 (output_weakrefs): Update.
1484 (finalize_compilation_unit): Update.
1485 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
1486 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
1487 input_node, input_varpool_node): Update.
1488 * dbxout.c (dbxout_expand_expr): Update.
1489 * cgraphclones.c (cgraph_clone_node): Update.
1490 (cgraph_copy_node_for_versioning): Update.
1491 (cgraph_materialize_clone): Update.
1492 (cgraph_materialize_all_clones): Update.
1493 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
1494 propagate_pure_const, propagate_nothrow): Update.
1495 * lto-streamer-out.c (lto_output, write_symbol): Update.
1496 * ipa-utils.c (ipa_reverse_postorder): Update.
1497 * ipa-inline.c (can_inline_edge_p): Update.
1498 (update_caller_keys, ipa_inline): Update.
1499 * dwarf2out.c (reference_to_unused,
1500 premark_types_used_by_global_vars_helper): Update.
1501 * tree-eh.c (tree_could_trap_p): Update.
1502 * ipa-split.c (consider_split, execute_split_functions): Update.
1503 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
1504 has_addr_references_p): Update; move ahead in file for better
1505 readability.
e70670cf
JH
1506 (process_references): Simplify.
1507 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
1508 bodies are removed.
1509 (cgraph_comdat_can_be_unshared_p): Make static.
1510 (cgraph_externally_visible_p): Update.
1511 (varpool_externally_visible_p): Update.
1512 (function_and_variable_visibility): Update.
1513 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
1514 ipa_tm_mark_force_output_node): Update.
1515 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
1516 estimate_edge_devirt_benefit, inline_generate_summary,
1517 inline_write_summary): Update.
1518 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
1519 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
1520 (ipa_print_node_params, ipa_prop_read_section,
1521 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
1522 * varasm.c (mark_decl_referenced): Update.
1523 (assemble_alias, dump_tm_clone_pairs): Update.
1524 * tree-inline.c (copy_bb): Update.
1525 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
1526 Update.
1527 * symtab.c (dump_symtab_base): Print new flags.
1528 (verify_symtab_base): Verify new flags.
1529 (symtab_alias_ultimate_target): New function.
1530 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
1531 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
1532 Update.
c1e183a9
UB
1533 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
1534 Update.
e70670cf
JH
1535 * i386.c (ix86_get_function_versions_dispatcher,
1536 ix86_generate_version_dispatcher_body): Update.
1537 (fold_builtin_cpu): Use varpool_add_new_variable.
1538 * varpool.c (varpool_remove_initializer): Break out from ...
1539 (varpool_remove_node): ... this one.
1540 (dump_varpool_node, varpool_node_for_asm,
1541 cgraph_variable_initializer_availability, varpool_analyze_node,
1542 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
1543 varpool_finalize_named_section_flags, varpool_create_variable_alias):
1544 Update.
e70670cf 1545
182802ad
JH
15462013-05-29 Jan Hubicka <jh@suse.cz>
1547
1548 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
1549
8190b609
ER
15502013-05-29 Easwaran Raman <eraman@google.com>
1551
1552 PR tree-optimization/57442
1553 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
1554 when control exits the main loop.
1555
69f5aa9b
SKS
15562013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
1557
1558 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
1559 and RX600.
c1e183a9 1560 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
1561 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
1562 * rx/t-rx: Add rx100 under multi library matches option for nofpu
1563 option.
1564
4b847da9
BS
15652013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1566
1567 PR tree-optimization/57441
1568 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
1569 Don't limit size of incr_vec to number of candidates.
1570
4fc43c39
SE
15712013-05-29 Steve Ellcey <sellcey@imgtec.com>
1572
1573 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
1574 and mips16 directories.
c1e183a9 1575 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
1576 (MULTILIB_DIRNAMES): Ditto.
1577 (MULTILIB_EXCEPTIONS): Add new exceptions.
1578 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
1579 (MULTILIB_DIRNAMES): Ditto.
1580 (MULTILIB_EXCEPTIONS): Add new exceptions.
1581
a5350ddc
CSS
15822012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1583 Marcus Shawcroft <marcus.shawcroft@arm.com>
1584
1585 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
1586 SYMBOL_TINY_ABSOLUTE.
1587 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
1588 SYMBOL_TINY_ABSOLUTE.
1589 (aarch64_expand_mov_immediate): Likewise.
1590 (aarch64_classify_symbol): Likewise.
1591 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
1592 Permit SYMBOL_TINY_ABSOLUTE.
1593 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
1594
17f4d4bf
CSS
15952013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1596 Marcus Shawcroft <marcus.shawcroft@arm.com>
1597
1598 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
1599 Refactor if/switch. Replace gcc_assert with if.
1600
c0186656
GG
16012013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1602
1603 * config/i386/i386.c (initial_ix86_tune_features): Enable
1604 FP Reassociation for AMD bdver1 and bdver2.
1605
d20188f3
MJ
16062013-05-29 Martin Jambor <mjambor@suse.cz>
1607
1608 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
1609 and IMAGPART_EXPR do not occur within other handled_components.
1610
292cba13
RB
16112013-05-29 Richard Biener <rguenther@suse.de>
1612
1613 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
1614 access on whether the use is in the BB we currently try to
1615 vectorize.
1616 (vect_bb_vectorization_profitable_p): Pass the BB we currently
1617 vectorize to vect_bb_slp_scalar_cost.
1618
6eddf228
RB
16192013-05-29 Richard Biener <rguenther@suse.de>
1620
1621 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
1622 computing scalar cost offsetted by stmts that are kept live
1623 by scalar uses.
1624 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
1625 for computation of scalar cost.
1626
7df36117
SE
16272013-05-28 Steve Ellcey <sellcey@mips.com>
1628
1629 * config/mips/mips-cpus.def (mips32r2): Change processor type.
1630
36536d79
BI
16312013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1632
1633 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
1634 array notation built-in reduction functions.
1635 * doc/passes.texi (Passes): Added documentation about changes done
1636 for Cilk Plus.
1637 * doc/invoke.texi (C Dialect Options): Added documentation about
1638 the -fcilkplus flag.
1639 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
1640 (BUILTINS_DEF): Depend on cilkplus.def.
1641 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
1642 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
1643 * cilkplus.def: New file.
1644
b49eefa5
JR
16452013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
1646
1647 PR rtl-optimization/57439
1648 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
1649
9daf6dbb
ER
16502013-05-28 Easwaran Raman <eraman@google.com>
1651
1652 PR tree-optimization/57337
1653 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
1654 (find_insert_point): Correctly identify the insertion point
1655 when two statements with the same UID is compared.
1656
fbd7e877
RB
16572013-05-28 Richard Biener <rguenther@suse.de>
1658
1659 PR tree-optimization/56787
1660 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
1661 from the list of data references.
1662 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1663 clobbers.
1664 (vect_analyze_loop_operations): Likewise.
1665 (vect_transform_loop): Remove clobbers.
1666
bbba1117
MJ
16672013-05-28 Martin Jambor <mjambor@suse.cz>
1668
1669 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
1670 and REALPART_EXPRs have scalar type.
1671
bd388c2a
RB
16722013-05-28 Richard Biener <rguenther@suse.de>
1673
1674 PR tree-optimization/57411
1675 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
1676 virtual operands.
1677 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
1678 virtual operand propagation.
1679
2f56a311
EB
16802013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1681
1682 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
1683 destination register for bmasksi_vis.
1684 (vector_init_bshuffle): Likewise.
1685 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1686
5c3eacbb
EB
16872013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1688
1689 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
1690 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
1691 mode if the instruction isn't available in the original mode.
1692 * config/sparc/sparc.opt (mfix-ut699): New option.
1693 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
1694 (divdf3): Turn into expander.
1695 (divdf3_nofix): New insn.
1696 (divdf3_fix): Likewise.
1697 (divsf3): Disable if -mfix-ut699.
1698 (sqrtdf2): Turn into expander.
1699 (sqrtdf2_nofix): New insn.
1700 (sqrtdf2_fix): Likewise.
1701 (sqrtsf2): Disable if -mfix-ut699.
1702
a1756c0a
RB
17032013-05-27 Richard Biener <rguenther@suse.de>
1704
1705 PR middle-end/57412
1706 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
1707 block for the new loop.
1708
5a892248
RB
17092013-05-27 Richard Biener <rguenther@suse.de>
1710
1711 PR tree-optimization/57343
1712 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
1713 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
1714 (number_of_iterations_cond): Do not build the folded tree.
1715
d1de852b
RB
17162013-05-27 Richard Biener <rguenther@suse.de>
1717
1718 Revert
1719 PR middle-end/57381
1720 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1721 OEP_CONSTANT_ADDRESS_OF retained.
1722
1723 PR tree-optimization/57417
1724 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
1725 for unchanged base.
1726 (set_ssa_val_to): Compare addresses using
1727 get_addr_base_and_unit_offset.
1728
7894bc6b
JR
17292013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
1730
1731 PR rtl-optimization/56833
1732 * postreload.c (move2add_record_mode): New function.
1733 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
1734 (move2add_use_add2_insn): Use move2add_record_sym_value.
1735 (move2add_use_add3_insn): Likewise.
1736 (reload_cse_move2add): Use move2add_valid_value_p and
1737 move2add_record_mode. Invalidate call-clobbered and REG_INC
1738 affected regs by setting reg_mode to VOIDmode.
1739 (move2add_note_store): Don't pretend the inside of a SUBREG is
1740 the actual destination. Invalidate single/leading registers by
1741 setting reg_mode to VOIDmode.
1742 Use move2add_record_sym_value, move2add_valid_value_p and
1743 move2add_record_mode.
1744
b03be25f
RB
17452013-05-27 Richard Biener <rguenther@suse.de>
1746
1747 PR tree-optimization/57396
1748 * tree-affine.c (double_int_constant_multiple_p): Properly
1749 return false for val == 0 and div != 0.
1750
44e88db2
RS
17512013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1752
1753 * config/mips/mips.h: Use #elif in preprocessor conditions.
1754
3b859704
RS
17552013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1756
1757 PR target/53916
1758 * config/mips/constraints.md (kl): New constraint.
1759 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
1760 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
1761 constraint for operand 0. Split after CSE for MIPS16. Emit a move
1762 from LO for MIPS16.
1763 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
1764
c979d5f5
RS
17652013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1766
1767 PR target/55777
1768 * config/mips/mips.c (mips_can_inline_p): New function.
1769 (TARGET_CAN_INLINE_P): Define.
1770
8e90de43
SB
17712013-05-25 Steven Bosscher <steven@gcc.gnu.org>
1772
1773 * sched-int.h (ds_t, dw_t): Make unsigned int.
1774 Fix documentation that describes how all the ds_t bits are used.
1775 Reserve the last bit for delayed-branch scheduling.
1776 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
1777 (BITS_PER_DEP_WEAK): Fix definition and documentation.
1778 (gen_dep_weak_1): Remove prototype.
1779 * sched-deps.c (get_dep_weak_1): Make static.
1780 * target.def (speculate_insn, needs_block_p, gen_spec_check,
1781 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
1782 * doc/tm.texi: Regenerate.
1783 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
1784
cb5cb194
SB
17852013-05-24 Steven Bosscher <steven@gcc.gnu.org>
1786
1787 PR debug/56950
1788 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
1789
5bd93ff6
NS
17902013-05-24 Nathan Sidwell <nathan@codesourcery.com>
1791 Sandra Loosemore <sandra@codesourcery.com>
1792
1793 * config.gcc (powerpc-*): Allow native for with-cpu.
1794
2343af65
JL
17952013-05-24 Jeff Law <law@redhat.com>
1796
1797 PR tree-optimization/57124
1798 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
1799 conversion feeding a condition if the range has an overflow
1800 if -fstrict-overflow. Add warnings for when we do make the
1801 transformation.
1802
3ad695b9
DC
18032013-05-24 Dehao Chen <dehao@google.com>
1804
04960246 1805 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
1806 (locus_discrim_hasher): Likewise.
1807 (locus_discrim_hasher::hash): Likewise.
1808 (locus_discrim_hasher::equal): Likewise.
1809
82338059
MJ
18102013-05-24 Martin Jambor <mjambor@suse.cz>
1811
1812 PR tree-optimization/57294
1813 * cgraph.h (ipa_record_stmt_references): Declare.
1814 * cgraphbuild.c (ipa_record_stmt_references): New function.
1815 (build_cgraph_edges): Use ipa_record_stmt_references.
1816 (rebuild_cgraph_edges): Likewise.
1817 (cgraph_rebuild_references): Likewise.
1818 * ipa-prop.c (ipa_modify_call_arguments): Discard references
1819 associated with the old statement and build references from the
1820 newly built statements.
1821 * ipa-ref.c (ipa_remove_stmt_references): New function.
1822 * ipa-ref.h (ipa_remove_stmt_references): Declare.
1823
1ccd4874
VM
18242013-05-24 Vladimir Makarov <vmakarov@redhat.com>
1825
55805e54 1826 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 1827 mem-mem moves.
55805e54 1828 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 1829 too.
55805e54 1830 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
1831 secondary memory moves.
1832 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
1833 reg set up in the current insn.
1834
25e25c73
DC
18352013-05-24 Dehao Chen <dehao@google.com>
1836
04960246 1837 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
1838 hash function.
1839 (locus_descrim_hasher::equal): Likewise.
04960246 1840 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
1841 (make_edges): Likewise.
1842 (next_discriminator_for_locus): Likewise.
1843 (same_line_p): Likewise.
1844 (assign_discriminators): Likewise.
1845 (make_cond_expr_edges): Likewise.
1846 (make_gimple_switch_edges): Likewise.
1847 (make_goto_expr_edges): Likewise.
1848 (make_gimple_asm_edges): Likewise.
1849
50d38551
IB
18502013-05-24 Ian Bolton <ian.bolton@arm.com>
1851
1852 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
1853 X format specifier to only display bottom 16 bits.
1854 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
1855 immediate to match for operand 2, since it will be masked.
1856
aea0101d
RB
18572013-05-24 Richard Biener <rguenther@suse.de>
1858
1859 PR tree-optimization/57287
1860 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
1861 all SSA names that occur in abnormal PHIs.
1862
634e03d3
AI
18632013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1864
1865 PR tree-ssa/57385
1866 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
1867 that index is not negative.
1868
b17c024f
EB
18692013-05-24 Eric Botcazou <ebotcazou@adacore.com>
1870
1871 PR rtl-optimization/55177
1872 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
1873 (simplify_byte_swapping_operation): New.
1874 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
1875 (simplify_relational_operation_1): Deal with BSWAP.
1876
46aeac1b
RH
18772013-05-23 Richard Henderson <rth@redhat.com>
1878
1879 PR target/56742
1880 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1881 (ix86_reorg): Call it.
1882
70cc1536
UB
18832013-05-23 Uros Bizjak <ubizjak@gmail.com>
1884
1885 PR target/57379
1886 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1887 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1888 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1889
b3851501
CB
18902013-05-23 Christian Bruel <christian.bruel@st.com>
1891
1892 PR debug/57351
1893 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1894
4e194912
CSS
18952013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1896 Marcus Shawcroft <marcus.shawcroft@arm.com>
1897
1898 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1899 * config/aarch64/constraints.md (Usa): Remove.
1900 * doc/md.texi (AArch64 Usa): Remove.
1901
83f8c414
CSS
19022013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1903 Marcus Shawcroft <marcus.shawcroft@arm.com>
1904
1905 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1906 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1907 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1908 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1909
b5574232
VP
19102013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1911
1912 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1913 instruction (AdvSIMD).
1914 * config/aarch64/aarch64-builtins.c
1915 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1916 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1917
76c36cb1 19182013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
1919
1920 PR middle-end/57347
1921 * tree.h (contains_bitfld_component_ref_p): Declare.
1922 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
1923 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1924 caller.
7d2fb524
MJ
1925 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1926 not access a bit-field. Assert all final offsets are byte-aligned.
1927
ce521ae6
RB
19282013-05-23 Richard Biener <rguenther@suse.de>
1929
1930 PR tree-optimization/57380
1931 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1932 least one invariant or re-used load.
1933 * passes.c (init_optimization_passes): Move pass_phiprop before
1934 pass_forwprop.
1935
75c7257f
JG
19362013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1937
1938 * config/aarch64/aarch64-simd.md
1939 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1940
af6d44b5
RB
19412013-05-23 Richard Biener <rguenther@suse.de>
1942
1943 PR middle-end/57381
1944 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1945 OEP_CONSTANT_ADDRESS_OF retained.
1946
bd3647bf
JJ
19472013-05-23 Jakub Jelinek <jakub@redhat.com>
1948
1949 PR middle-end/57344
70cc1536
UB
1950 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1951 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 1952
a55757ea
RB
19532013-05-23 Richard Biener <rguenther@suse.de>
1954
1955 PR rtl-optimization/57341
1956 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1957 instead of true_dependence.
1958
cfb00b41
DM
19592013-05-22 David Malcolm <dmalcolm@redhat.com>
1960
dd1c676f
DM
1961 * bb-reorder.c (branch_threshold): Make const.
1962 (exec_threshold): Ditto.
cfb00b41 1963
f62511da
MM
19642013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1965 Pat Haugen <pthaugen@us.ibm.com>
1966 Peter Bergner <bergner@vnet.ibm.com>
1967
1968 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1969 documentation for the power8 crypto builtins.
1970
1971 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1972
1973 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1974 macros for defining power8 builtin functions.
1975 (BU_P8V_AV_2): Likewise.
1976 (BU_P8V_AV_P): Likewise.
1977 (BU_P8V_VSX_1): Likewise.
1978 (BU_P8V_OVERLOAD_1): Likewise.
1979 (BU_P8V_OVERLOAD_2): Likewise.
1980 (BU_CRYPTO_1): Likewise.
1981 (BU_CRYPTO_2): Likewise.
1982 (BU_CRYPTO_3): Likewise.
1983 (BU_CRYPTO_OVERLOAD_1): Likewise.
1984 (BU_CRYPTO_OVERLOAD_2): Likewise.
1985 (XSCVSPDP): Fix typo, point to the correct instruction.
1986 (VCIPHER): Add power8 crypto builtins.
1987 (VCIPHERLAST): Likewise.
1988 (VNCIPHER): Likewise.
1989 (VNCIPHERLAST): Likewise.
1990 (VPMSUMB): Likewise.
1991 (VPMSUMH): Likewise.
1992 (VPMSUMW): Likewise.
1993 (VPERMXOR_V2DI): Likewise.
1994 (VPERMXOR_V4SI: Likewise.
1995 (VPERMXOR_V8HI: Likewise.
1996 (VPERMXOR_V16QI: Likewise.
1997 (VSHASIGMAW): Likewise.
1998 (VSHASIGMAD): Likewise.
1999 (VPMSUM): Likewise.
2000 (VPERMXOR): Likewise.
2001 (VSHASIGMA): Likewise.
2002
2003 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2004 __CRYPTO__ if the crypto instructions are available.
2005 (altivec_overloaded_builtins): Add support for overloaded power8
2006 builtins.
2007
2008 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2009 support for power8 crypto builtins.
2010 (builtin_function_type): Likewise.
2011 (altivec_init_builtins): Add support for builtins that take vector
2012 long long (V2DI) arguments.
2013
2014 * config/rs6000/crypto.md: New file, define power8 crypto
2015 instructions.
2016
20172013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2018 Pat Haugen <pthaugen@us.ibm.com>
2019 Peter Bergner <bergner@vnet.ibm.com>
2020
2021 * doc/invoke.texi (Option Summary): Add power8 options.
2022 (RS/6000 and PowerPC Options): Likewise.
2023
2024 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2025 constraints.md instead of rs6000.h. Reorder w* constraints. Add
2026 wm, wn, wr documentation.
2027
2028 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2029 registers if direct move instructions are enabled.
2030 (wn): New constraint for no registers.
2031 (wq): New constraint for quad word even GPR registers.
2032 (wr): New constraint if 64-bit instructions are enabled.
2033 (wv): New constraint if power8 vector instructions are enabled.
2034 (wQ): New constraint for quad word memory locations.
2035
2036 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2037 constraint for 0..15 for crypto instructions.
2038 (gpc_reg_operand): If VSX allow registers in VSX registers as well
2039 as GPR and floating point registers.
2040 (int_reg_operand): New predicate to match only GPR registers.
2041 (base_reg_operand): New predicate to match base registers.
2042 (quad_int_reg_operand): New predicate to match even GPR registers
2043 for quad memory operations.
2044 (vsx_reg_or_cint_operand): New predicate to allow vector logical
2045 operations in both GPR and VSX registers.
2046 (quad_memory_operand): New predicate for quad memory operations.
2047 (reg_or_indexed_operand): New predicate for direct move support.
2048
2049 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2050 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2051 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2052 (POWERPC_MASKS): Add power8 options.
2053 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2054 various options.
2055
2056 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2057 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2058
2059 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2060 (-mpower8-fusion): New power8 options.
2061 (-mpower8-fusion-sign): Likewise.
2062 (-mpower8-vector): Likewise.
2063 (-mcrypto): Likewise.
2064 (-mdirect-move): Likewise.
2065 (-mquad-memory): Likewise.
2066
2067 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2068 power8.
2069 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2070 registers.
70cc1536 2071 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
2072 (rs6000_debug_vector_unit): Add p8_vector.
2073 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2074 definitions. Also print fusion state.
2075 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2076 (rs6000_builtin_mask_calculate): Add power8 builtin support.
2077 (rs6000_option_override_internal): Add support for power8.
2078 (rs6000_common_init_builtins): Add debugging for skipped builtins
2079 if -mdebug=builtin.
2080 (rs6000_adjust_cost): Add power8 support.
2081 (rs6000_issue_rate): Likewise.
2082 (insn_must_be_first_in_group): Likewise.
2083 (insn_must_be_last_in_group): Likewise.
2084 (force_new_group): Likewise.
2085 (rs6000_register_move_cost): Likewise.
2086 (rs6000_opt_masks): Likewise.
2087
2088 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
2089 power8 capable assembler, default to power7 options.
2090 (TARGET_DIRECT_MOVE): Likewise.
2091 (TARGET_CRYPTO): Likewise.
2092 (TARGET_P8_VECTOR): Likewise.
2093 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
2094 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
2095 (VECTOR_MEM_P8_VECTOR_P): Likewise.
2096 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
2097 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
2098 (TARGET_XSCVDPSPN): Likewise.
2099 (TARGET_XSCVSPDPN): Likewsie.
2100 (TARGET_SYNC_HI_QI): Likewise.
2101 (TARGET_SYNC_TI): Likewise.
2102 (MASK_CRYPTO): Likewise.
2103 (MASK_DIRECT_MOVE): Likewise.
2104 (MASK_P8_FUSION): Likewise.
2105 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
2106 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
2107 temporary used by some of the direct move instructions to get two FP
2108 temporary registers does not force creation of a stack frame.
f62511da
MM
2109 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
2110 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
2111 that any VSX registers are tieable, even if they are also an
2112 Altivec vector mode.
2113 (r6000_reg_class_enum): Add wm, wr, wv constraints.
2114 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
2115 (RS6000_BTM_CRYPTO): Likewise.
2116 (RS6000_BTM_COMMON): Likewise.
2117
2118 * config/rs6000/rs6000.md (cpu attribute): Add power8.
2119 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
2120 (enum rs6000_vector): Add power8 vector support.
2121
73a1a707
RR
21222013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2123
2124 PR target/19599
2125 PR target/57340
2126 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
2127 (any_sibcall_could_use_r3): this and handle indirect calls.
2128 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
2129
d28073d4
BS
21302013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2131
2132 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
2133
bee0b10c
RB
21342013-05-22 Richard Biener <rguenther@suse.de>
2135
2136 PR middle-end/57349
2137 * profile.c (branch_prob): Do not split blocks that are
2138 abnormally receiving from ECF_RETURNS_TWICE functions.
2139
98409b51
RS
21402013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
2141
2142 * recog.c (offsettable_address_addr_space_p): Fix calculation of
2143 address mode. Move pointer mode initialization to the same place.
2144
c0602ab8
MZ
21452013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2146
2147 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
2148 while it has any effect.
2149
4f7a634e
ER
21502013-05-21 Easwaran Raman <eraman@google.com>
2151
2152 PR tree-optimization/57322
9daf6dbb
ER
2153 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
2154 UID of the statement added to the BB to be 1.
4f7a634e 2155
a4ce1258
JJ
21562013-05-21 Jakub Jelinek <jakub@redhat.com>
2157
2158 PR tree-optimization/57331
70cc1536
UB
2159 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
2160 of conversion from pointer type to integral type with integer.
a4ce1258 2161
1b14621a
MJ
21622013-05-21 Martin Jambor <mjambor@suse.cz>
2163
2164 PR lto/57289
2165 * ipa-prop.c (ipa_read_node_info): Process param_used and
2166 controlled_uses in the same order as when writing.
2167
e60661f0
MG
21682013-05-21 Magnus Granberg <baldrick@free.fr>
2169
2170 PR plugins/56754
ee49aa34 2171 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 2172
4a61be9a
RB
21732013-05-21 Richard Biener <rguenther@suse.de>
2174
2175 PR tree-optimization/57318
2176 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
2177 estimate stmts with side-effects as likely eliminated.
2178
c52da5f7
RB
21792013-05-21 Richard Biener <rguenther@suse.de>
2180
2181 PR tree-optimization/57330
2182 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
2183 preserve the call stmts fntype.
2184
7ec67e2a
RB
21852013-05-21 Richard Biener <rguenther@suse.de>
2186
2187 PR tree-optimization/57303
2188 * tree-ssa-sink.c (statement_sink_location): Improve killing
2189 stmt detection and properly handle self-assignments.
2190
b112d513
CB
21912013-05-21 Christian Bruel <christian.bruel@st.com>
2192
55805e54
YR
2193 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
2194 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
2195 registers. Set register size out of the PARALLEL loop.
2196
14c2ec26
OE
21972013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
2198
2199 PR target/56547
2200 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
2201 (*fmasf4, *fmasf4_media): New insns.
2202
da734fa1
RS
22032013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2204
2205 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
2206 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
2207 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
2208 (mips_idiv_insns): Update the comments to say that the returned
2209 instruction counts are in units of BASE_INSN_LENGTH.
2210 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
2211 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
2212 using 2 rather than 4 as the length of indirect MIPS16 and
2213 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
2214 length of a NOP. Don't divide MIPS16 lengths by 2.
2215 (mips16_split_long_branches): Assume a branch is long if the
2216 length is greater than 4 rather than 8.
2217 * config/mips/mips.md (length): Give MIPS16 lengths directly,
2218 rather than multiplying them by 2. Multiply instruction counts
2219 by BASE_INSN_LENGTH rather than 4.
2220 (*jump_mips16, tls_get_tp_mips16_<mode>)
2221 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
2222
13719e8b
RS
22232013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2224
2225 * config/mips/mips.md (extended_mips16): Remove branch case.
2226 (length): Remove duplicated extended_mips16 test.
2227
c3850d14
RS
22282013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2229
2230 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
2231
8da2e059
RS
22322013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
2233
2234 * recog.h (Recog_data): Rename to...
2235 (recog_data_d): ...this.
2236 (recog_data): Update accordingly.
2237 * recog.c (recog_data): Likewise.
2238 * reload.c (save_recog_data): Likewise.
2239 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
2240 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
2241
2df013f3
JB
22422013-05-17 Julian Brown <julian@codesourcery.com>
2243
2244 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
2245 found in a REG_EQUAL note, invalidate it.
2246
933f507d
ER
22472013-05-17 Easwaran Raman <eraman@google.com>
2248
2249 * tree-ssa-reassoc.c (find_insert_point): New function.
2250 (insert_stmt_after): Likewise.
2251 (get_def_stmt): Likewise.
2252 (ensure_ops_are_available): Likewise.
2253 (not_dominated_by): Likewise.
2254 (rewrite_expr_tree): Do not move statements beyond what is
2255 necessary. Remove call to swap_ops_for_binary_stmt...
2256 (reassociate_bb): ... and move it here.
2257 (build_and_add_sum): Assign UIDs for new statements.
2258 (linearize_expr): Likewise.
2259 (do_reassoc): Renumber gimple statement UIDs.
2260
e01c7cca
JH
22612013-05-17 Jan Hubicka <jh@suse.cz>
2262
2263 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
2264 weakrefs.
2265 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
2266 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
2267 weakrefs.
e01c7cca
JH
2268 (output_weakrefs): Update.
2269
c3272a92
PCC
22702013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
2271 Martin Jambor <mjambor@suse.cz>
2272
2273 PR middle-end/57276
2274 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
2275 value that corresponds to the given aggval is found in values vector.
2276
11c2aa39
UB
22772013-05-17 Uros Bizjak <ubizjak@gmail.com>
2278
2279 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
2280 sse, sse2, sse3, ssse3 and sse4a flags to options.
2281
abecc8c6
DM
22822013-05-17 David Malcolm <dmalcolm@redhat.com>
2283
2284 * gengtype-state.c: (s_expr_writer): New class, to handle
2285 prettifying of output layout of s-expressions.
2286 (state_writer): New class, to write out gtype.state.
2287 (state_written_type_count): Move this variable into member data of
2288 state_writer.
2289 (s_expr_writer::s_expr_writer): New code: constructor for new class
2290 (state_writer::state_writer(): ditto
2291 (s_expr_writer::write_new_line): New function
2292 (s_expr_writer::write_any_indent): ditto
2293 (s_expr_writer::begin_s_expr): ditto
2294 (s_expr_writer::end_s_expr): ditto
2295 (write_state_fileloc): convert to method of state_writer...
2296 (state_writer:: write_state_fileloc): ...and use methods of
2297 s_expr_writer to write indentation into the gtype.state output file
2298 to visually represent the hierarchical structure of the list
2299 structures
2300 (write_state_fields): ditto, renaming to...
2301 (state_writer::write_state_fields)
2302 (write_state_a_string): ditto, renaming to...
2303 (state_writer::write_state_a_string)
2304 (write_state_string_option): ditto, renaming to...
2305 (state_writer::write_state_string_option)
2306 (write_state_type_option): ditto, renaming to...
2307 (state_writer::write_state_type_option)
2308 (write_state_nested_option): ditto, renaming to...
2309 (state_writer::write_state_nested_option)
2310 (write_state_option): ditto, renaming to...
2311 (state_writer::write_state_option)
2312 (write_state_options): ditto, renaming to...
2313 (state_writer::write_state_options)
2314 (write_state_lang_bitmap): ditto, renaming to...
2315 (state_writer::write_state_lang_bitmap)
2316 (write_state_version): ditto, renaming to...
2317 (state_writer::write_state_version)
2318 (write_state_scalar_type): ditto, renaming to...
2319 (state_writer::write_state_scalar_type)
2320 (write_state_string_type): ditto, renaming to...
2321 (state_writer::write_state_string_type)
2322 (write_state_undefined_type): ditto, renaming to...
2323 (state_writer::write_state_undefined_type)
2324 (write_state_struct_union_type): ditto, renaming to...
2325 (state_writer::write_state_struct_union_type)
2326 (write_state_struct_type): ditto, renaming to...
2327 (state_writer::write_state_struct_type)
2328 (write_state_user_struct_type): ditto, renaming to...
2329 (state_writer::write_state_user_struct_type)
2330 (write_state_lang_struct_type): ditto, renaming to...
2331 (state_writer::write_state_lang_struct_type)
2332 (write_state_param_struct_type): ditto, renaming to...
2333 (state_writer::write_state_param_struct_type)
2334 (write_state_pointer_type): ditto, renaming to...
2335 (state_writer::write_state_pointer_type)
2336 (write_state_array_type): ditto, renaming to...
2337 (state_writer::write_state_array_type)
2338 (write_state_gc_used): ditto, renaming to...
2339 (state_writer::write_state_gc_used)
2340 (write_state_common_type_content): ditto, renaming to...
2341 (state_writer::write_state_common_type_content)
2342 (write_state_type): ditto, renaming to...
2343 (state_writer::write_state_type)
2344 (write_state_pair_list): ditto, renaming to...
2345 (state_writer::write_state_pair_list)
2346 (write_state_pair): ditto, renaming to...
2347 (state_writer::write_state_pair)
2348 (write_state_typedefs): ditto, renaming to...
2349 (state_writer::write_state_typedefs)
2350 (write_state_structures): ditto, renaming to...
2351 (state_writer::write_state_structures)
2352 (write_state_param_structs): ditto, renaming to...
2353 (state_writer::write_state_param_structs)
2354 (write_state_variables): ditto, renaming to...
2355 (state_writer::write_state_variables)
2356 (write_state_srcdir): ditto, renaming to...
2357 (state_writer::write_state_srcdir)
2358 (write_state_files_list): ditto, renaming to...
2359 (state_writer::write_state_files_list)
2360 (write_state_languages): ditto, renaming to...
2361 (state_writer::write_state_languages)
2362 (write_state): create a state_writer instance and use it when
2363 writing out the state file
2364
d6545f29
MS
23652013-05-17 Mike Stump <mikestump@comcast.net>
2366
816a3f73 2367 PR rtl-optimization/57304
d6545f29
MS
2368 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
2369 accessing DF_REF_REAL_LOC.
2370
38c821cf
JJ
23712013-05-17 Jakub Jelinek <jakub@redhat.com>
2372
2373 PR rtl-optimization/57281
2374 PR rtl-optimization/57300
2375 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
2376 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
2377 what the other splitter did if the registers are dead.
2378
2a293391
RB
23792013-05-17 Richard Biener <rguenther@suse.de>
2380
2381 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
2382 MEM_REF offsets.
2383
17042d2b
JJ
23842013-05-17 Jakub Jelinek <jakub@redhat.com>
2385
2386 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
2387 linking.
2388
5b115c1f
MP
23892013-05-17 Marek Polacek <polacek@redhat.com>
2390
11c2aa39
UB
2391 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
2392 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 2393
52d84413
JJ
23942013-05-17 Jakub Jelinek <jakub@redhat.com>
2395
68119618
JJ
2396 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
2397 vect_external_def oprnd1 with loop_vinfo, try to emit
2398 optional cast, negation and and stmts on the loop preheader
2399 edge instead of into the pattern def seq.
2400
52d84413
JJ
2401 PR tree-optimization/57051
2402 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
2403 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
2404
17b962bd
NC
24052013-05-16 Nick Clifton <nickc@redhat.com>
2406
2407 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
2408 (rl78_is_naked_func): New function.
56aefbf7
UB
2409 (rl78_expand_prologue): Skip prologue generation for naked functions.
2410 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
2411 * doc/extend.texi (naked): Add RL78 to the list of processors
2412 that supports this attribute.
2413
b1a0f84e
JL
24142013-05-16 Jeff Law <law@redhat.com>
2415
2416 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
2417
af0e415b
UB
24182013-05-16 Uros Bizjak <ubizjak@gmail.com>
2419
2420 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
2421 cache parameters using detect_caches_amd also for CYRIX,
2422 NSC and TM2 signatures.
2423
19db293a
UB
24242013-05-16 Uros Bizjak <ubizjak@gmail.com>
2425 Dzianis Kahanovich <mahatma@eu.by>
2426
2427 PR target/45359
2428 PR target/46396
2429 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2430 VIA/Centaur processors and determine their cache parameters
2431 using detect_caches_amd.
2432
251a41b9
TJ
24332013-05-16 Teresa Johnson <tejohnson@google.com>
2434
2435 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
2436 (rtl_verify_edges): New function.
2437 (rtl_verify_bb_insns): Ditto.
2438 (rtl_verify_bb_pointers): Ditto.
2439 (rtl_verify_bb_insn_chain): Ditto.
2440 (rtl_verify_fallthru): Ditto.
2441 (rtl_verify_bb_layout): Ditto.
2442 (rtl_verify_flow_info_1): Outline checks into new functions.
2443 (rtl_verify_flow_info): Ditto.
2444
f14540b6
SE
24452013-05-16 Steve Ellcey <sellcey@imgtec.com>
2446
2447 * cfghooks.c (copy_bbs): Add update_dominance argument.
2448 * cfghooks.h (copy_bbs): Update prototype.
2449 * tree-cfg.c (gimple_duplicate_sese_region):
2450 Add update_dominance argument.
2451 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
2452 * tree-ssa-loop-ch.c (copy_loop_headers): Update
2453 gimple_duplicate_sese_region call.
2454 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
2455 Update copy_bbs call.
2456 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
2457 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
2458
7e9a3abb
JJ
24592013-05-16 Jakub Jelinek <jakub@redhat.com>
2460
2461 * tree-vectorizer.h (NUM_PATTERNS): Increment.
2462 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
2463 vect_recog_rotate_pattern.
2464 (vect_recog_rotate_pattern): New function.
2465
427b248d
JM
24662013-05-16 Jason Merrill <jason@redhat.com>
2467
2468 * Makefile.in (LLINKER): New variable.
2469 (mostlyclean): Remove link mutex.
2470 * configure.ac: Handle --enable-link-mutex.
2471 * lock-and-run.sh: New script.
2472
b871e3d2
RR
24732013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2474
2475 PR target/19599
2476 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
2477 for NULL decl.
2478
ce858126
RO
24792013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2480
2481 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
2482
798d3d04
GY
24832013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
2484
2485 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
2486 * config/arm/arm.c (next_consecutive_mem): New function.
2487 (gen_movmem_ldrd_strd): Likewise.
2488 * config/arm/arm.md (movmemqi): Update condition and code.
2489 (unaligned_loaddi, unaligned_storedi): New patterns.
2490
0baddc45
RO
24912013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2492
2493 * config.gcc: Obsolete *-*-solaris2.9*.
2494 * doc/install.texi (Specific, *-*-solaris2*): Document it.
2495
aa9d5bcf
RB
24962013-05-16 Richard Biener <rguenther@suse.de>
2497
2498 * passes.c (init_optimization_passes): Move pass_parallelize_loops
2499 earlier, after GRAPHITE transforms and IV canonicalization.
2500
5a0f4dd3
JJ
25012013-05-16 Jakub Jelinek <jakub@redhat.com>
2502
2503 * omp-low.c (extract_omp_for_data): For collapsed loops,
2504 if at least one of the loops is known at compile time to
2505 iterate zero times, set count to 0.
2506 (expand_omp_regimplify_p): New function.
2507 (expand_omp_for_generic): For collapsed loops, if at least
2508 one of the loops isn't known to iterate at least once,
2509 add runtime check with setting count to 0.
2510 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2511 For unsigned types if it isn't known at compile time that
2512 the loop will iterate at least once, add runtime check to bypass
2513 the whole loop if initial condition isn't true.
2514
e3753785
NS
25152013-05-16 Nathan Sidwell <nathan@codesourcery.com>
2516
2517 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
2518
43bb4dd1
MG
25192013-05-16 Marc Glisse <marc.glisse@inria.fr>
2520
2521 PR middle-end/57286
2522 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
2523 transformations to avoid an infinite loop.
2524
3571dde6
MP
25252013-05-16 Marek Polacek <polacek@redhat.com>
2526
2527 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
2528
b8b3f0ca
LE
25292013-05-15 Leif Ekblad <leif@rdos.net>
2530
2531 * config/i386/i386.c (ix86_decompose_address): Use
2532 DEFAULT_TLS_SEG_REG to access TLS segment register.
2533 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
2534 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
2535 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
2536
e299a383
RS
25372013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
2538
2539 PR target/57260
2540 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
2541 sibling calls to functions that would normally be lazily bound,
2542 unless $gp is call-clobbered.
2543
e7208ea3
UB
25442013-05-15 Uros Bizjak <ubizjak@gmail.com>
2545
19db293a 2546 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 2547 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
2548 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
2549 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
2550 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
2551 of TARGET_3DNOW.
2552 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
2553
e7413f3d
AS
25542013-05-15 Andreas Schwab <schwab@suse.de>
2555
2556 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
2557 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
2558 third operand.
2559
ad4db775
TJ
25602013-05-15 Teresa Johnson <tejohnson@google.com>
2561
2562 * loop-unroll.c (report_unroll_peel): Check decision before
2563 emitting unroll/peel message.
2564
af205f67
TJ
25652013-05-15 Teresa Johnson <tejohnson@google.com>
2566
2567 * function.h (has_bb_partition): New rtl_data flag.
2568 (bb_reorder_complete): Ditto.
2569 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
2570 instead of flag_reorder_blocks_and_partition.
2571 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
2572 with some enhancements.
2573 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
2574 * bb-reorder.c (connect_traces): Check for has_bb_partition
2575 instead of flag_reorder_blocks_and_partition.
2576 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
2577 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
2578 verify_hot_cold_block_grouping.
2579 (partition_hot_cold_basic_blocks): Set has_bb_partition.
2580
9adcfa3c
RR
25812013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2582
2583 PR target/19599
2584 * config/arm/predicates.md (call_insn_operand): New predicate.
2585 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
2586 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
2587 if insn is not a tail call.
2588 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
2589 registers.
2590 * config/arm/arm.h (enum reg_class): New caller save register class.
2591 (REG_CLASS_NAMES): Likewise.
2592 (REG_CLASS_CONTENTS): Likewise.
2593 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
2594 without decls.
2595
ccb3ad87
RB
25962013-05-15 Richard Biener <rguenther@suse.de>
2597
2598 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
2599 of MSG_OPTIMIZED_LOCATIONS.
2600 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
2601 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
2602 message.
2603 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
2604 of MSG_OPTIMIZED_LOCATIONS.
2605 (execute_vect_slp): Likewise.
2606 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
2607 (vect_create_cond_for_alias_checks): Likewise.
2608 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
2609 (vect_recog_widen_mult_pattern): Likewise.
2610 (vect_recog_widen_sum_pattern): Likewise.
2611 (vect_recog_over_widening_pattern): Likewise.
2612 (vect_recog_widen_shift_pattern): Likewise.
2613 (vect_recog_vector_vector_shift_pattern): Likewise.
2614 (vect_recog_divmod_pattern): Likewise.
2615 (vect_recog_mixed_size_cond_pattern): Likewise.
2616 (vect_recog_bool_pattern): Likewise.
2617 (vect_pattern_recog_1): Likewise.
2618
48b1474e
MJ
26192013-05-15 Martin Jambor <mjambor@suse.cz>
2620
2621 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
2622 non-functions to builtin_unreachable.
2623 * ipa-inline-transform.c (inline_call): Do not assert estimates were
2624 correct when new direct edges were discovered.
2625
9de04252
MJ
26262013-05-15 Martin Jambor <mjambor@suse.cz>
2627
2628 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
2629 header, print symbol order instead of node uid, print more information
2630 about indirect edge targets.
2631 (ipa_make_edge_direct_to_target): Print symbol order instead of node
2632 uids.
2633 (ipa_make_edge_direct_to_target): Likewise.
2634 (remove_described_reference): Likewise.
2635 (propagate_controlled_uses): Likewise.
2636 (ipa_print_node_params): Also print symbol order.
2637 (ipcp_transform_function): Print symbol order instead of node uids.
2638 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
2639 (cgraph_get_create_real_symbol_node): Likewise.
2640 * ipa-cp.c (print_lattice): Likewise.
2641 (print_all_lattices): Likewise.
2642 (determine_versionability): Likewise.
2643 (initialize_node_lattices): Likewise.
2644 (estimate_local_effects): Likewise.
2645 (update_profiling_info): Likewise.
2646 (create_specialized_node): Likewise.
2647 (perhaps_add_new_callers): Likewise.
2648 (decide_about_value): Likewise.
2649 (decide_whether_version_node): Likewise.
2650 (identify_dead_nodes): Likewise.
2651 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
2652 (dump_inline_summary): Likewise.
2653 (estimate_node_size_and_time): Likewise.
2654 (inline_analyze_function): Likewise.
2655 * ipa-inline.c (report_inline_failed_reason): Likewise.
2656 (want_early_inline_function_p): Likewise.
2657 (edge_badness): Likewise.
2658 (update_edge_key): Likewise.
2659 (inline_small_functions): Likewise. Add dumping of order to two other
2660 dumps.
2661 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
2662 instead of node uids.
2663 (propagate_pure_const): Likewise.
2664 (propagate_pure_const): Likewise.
2665 * ipa-utils.c (dump_cgraph_node_set): Likewise.
2666 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
2667 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
2668 of node uids.
2669 * tree-pretty-print.c (dump_function_header): Likewise.
2670 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
2671 Print symbol order instead of node uids.
2672
1dd03b91
AK
26732013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2674
2675 * config/s390/s390.c (s390_register_move_cost): Don't impose the
2676 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
2677
fdf6a7b9
RB
26782013-05-15 Richard Biener <rguenther@suse.de>
2679
2680 PR tree-optimization/57275
2681 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
2682 return value for fail to do runtime alias checks for gather loads.
2683
2d6e4603
JH
26842013-05-15 Jan Hubicka <jh@suse.cz>
2685
2686 PR lto/57038
2687 PR lto/47375
e7208ea3
UB
2688 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
2689 weakrefs are not external.
2690 (lto_symtab_merge_decls): Fix thinko when dealing with
2691 non-lto_symtab decls.
2d6e4603
JH
2692 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
2693 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
2694 * varpool.c (dump_varpool_node): Dump more flags.
2695
83f44b39
GG
26962013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2697
2698 * config/i386/i386.c (processor_alias_table): Add instruction
2699 FSGSBASE for AMD bdver3 architecture.
2700
2e55d062
JJ
27012013-05-14 Jakub Jelinek <jakub@redhat.com>
2702
2703 * tree.c (warn_deprecated_use): Print file:line using locus color.
2704 * diagnostic.c (diagnostic_report_current_module): Print file:line
2705 and file:line:column using locus color.
2706
0bfdb81e
MS
27072013-05-14 Mike Stump <mikestump@comcast.net>
2708
2709 * gdbinit.in: Add __null.
2710
a508ef22
MS
27112013-05-14 Mike Stump <mikestump@comcast.net>
2712
2713 * recog.h: Rename struct recog_data to Recog_data.
2714 * recog.c: Likewise.
2715 * reload.c (can_reload_into): Likewise.
2716 * config/picochip/picochip.c: Likewise.
2717
e7180acb
MS
27182013-05-14 Mike Stump <mikestump@comcast.net>
2719
2720 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
2721
61216c26
SB
27222013-05-14 Steven Bosscher <steven@gcc.gnu.org>
2723
fd6beed4
SB
2724 * resource.h (struct resources): Remove unch_memory member.
2725 (CLEAR_RESOURCE): Don't clear unch_memory.
2726 * resource.c (mark_referenced_resources): Don't set it.
2727 (mark_set_resources): Likewise.
2728 (mark_target_live_regs): Don't clear it.
2729 (init_resource_info): Likewise.
2730 * reorg.c (resource_conflicts_p): Don't compare it.
2731 (redundant_insn): Don't set it.
2732
61216c26
SB
2733 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
2734 Remove prototypes.
2735 * emit-rtl.c (next_label): Remove unused function.
2736 (skip_consecutive_labels, link_cc0_insns): Move to ...
2737 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
2738 only place where these functions are used, and make them static.
2739
418d1b87
MG
27402013-05-14 Marc Glisse <marc.glisse@inria.fr>
2741
2742 * fold-const.c (fold_negate_expr): Handle vectors.
2743 (fold_truth_not_expr): Make it static.
2744 (fold_invert_truthvalue): New static function.
2745 (invert_truthvalue_loc): Handle vectors. Do not call
2746 fold_truth_not_expr directly.
2747 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
2748 <TRUTH_NOT_EXPR>: Do not cast to boolean.
2749 (fold_comparison): Handle vector constants.
2750 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
2751 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
2752 * tree.h (fold_truth_not_expr): Remove declaration.
2753
fc21784d
JG
27542013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
2755
2756 * config/aarch64/aarch64-simd.md
2757 (aarch64_vcond_internal<mode>): Rename to...
2758 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
2759 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
2760 float modes. Clarify all iterator modes.
2761 (vcond<mode><mode>): Use new name for vcond expanders.
2762 (vcond<v_cmp_result><mode>): Likewise.
2763 (vcondu<mode><mode>: Likewise.
2764 * config/aarch64/iterators.md (VDQF_COND): New.
2765
d4c52634
MG
27662013-05-14 Marc Glisse <marc.glisse@inria.fr>
2767
2768 PR bootstrap/57266
2769 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
2770 variable for the shift amount. Check that we shift by non-negative
2771 amounts.
2772
2b261262
CLT
27732013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
2774
2775 PR target/42017
2776 * config/arm/arm.h (EPILOGUE_USES): Only return true
2777 for LR_REGNUM after epilogue_completed.
2778
6e022d7b
JR
27792013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
2780
2781 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 2782 is error_mark_node.
6e022d7b 2783
56cf7859
RO
27842013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2785
2786 PR target/57261
2787 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
2788 and Solaris 11+/x86 with gld.
2789 * configure: Regenerate.
2790
75776c6d
JJ
27912013-05-14 Jakub Jelinek <jakub@redhat.com>
2792
2793 * expmed.c (expand_shift_1): Canonicalize rotates by
2794 constant bitsize / 2 to bitsize - 1.
7f998021 2795 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
2796 case ROTATERT>: Likewise.
2797
2798 Revert:
2799 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2800
2801 * config/i386/i386.md (rotateinv): New code attr.
2802 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2803 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2804 roll $31, %eax, etc.
2805
df35498a
RB
28062013-05-14 Richard Biener <rguenther@suse.de>
2807
2808 PR middle-end/57235
2809 * tree-eh.c (sink_clobbers): Give up for successors with
2810 multiple predecessors and no virtual uses.
2811
cc6e7ece
EB
28122013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2813
2814 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2815 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2816
f778dd4d
JJ
28172013-05-14 Jakub Jelinek <jakub@redhat.com>
2818
2819 PR middle-end/57251
2820 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2821 the case when both op0 and op1 have VOIDmode.
2822
bad4df9b
KP
28232013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2824
2825 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
2826 in multiply-accumulate mode.
2827
56f3e9ac
GW
28282013-05-13 Guozhi Wei <carrot@google.com>
2829
2830 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
2831
a3d7ab92
KT
28322013-05-13 Kai Tietz <ktietz@redhat.com>
2833
2834 PR target/56975
2835 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 2836 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 2837 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 2838 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
2839 (ix86_expand_prologue): Likewise.
2840 (ix86_expand_split_stack_prologue): Likewise.
2841 (legitimate_pic_address_disp_p): Likewise.
2842 (legitimize_pic_address): Likewise.
2843 (legitimize_tls_address): Likewise.
2844 (legitimize_pe_coff_symbol): Likewise.
2845 (output_pic_addr_const): Likewise.
2846 (construct_plt_address): Likewise.
2847 (ix86_expand_call): Likewise.
2848 (x86_output_mi_thunk): Likewise.
2849 (x86_function_profiler): Likewise.
2850
c59b7e28
SN
28512013-05-13 Sofiane Naci <sofiane.naci@arm.com>
2852
2853 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
2854 similar switch cases.
2855 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
2856 (aarch64_simd_mov_to_<mode>low): Delete.
2857 (aarch64_simd_mov_to_<mode>high): Delete.
2858 (move_lo_quad_<mode>): Add w<-r alternative.
2859 (aarch64_simd_move_hi_quad_<mode>): Likewise.
2860 (aarch64_simd_mov_from_*): Update type attribute.
2861 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
2862 statement.
2863
5f28524a
JH
28642013-05-13 Jan Hubicka <jh@suse.cz>
2865
2866 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
2867 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
2868 ix86_expand_epilogue, emit_i387_cw_initialization,
2869 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
2870 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 2871
ae6fa899
JJ
28722013-05-13 Jakub Jelinek <jakub@redhat.com>
2873
2874 PR tree-optimization/45216
2875 PR tree-optimization/57157
2876 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
2877 the (-Y) & (B - 1) variant if OP is |.
2878 * expmed.c (expand_shift_1): For rotations by const0_rtx just
2879 return shifted. Use (-op1) & (prec - 1) as other_amount
2880 instead of prec - op1.
2881
4502fe8d
MJ
28822013-05-13 Martin Jambor <mjambor@suse.cz>
2883
2884 PR middle-end/42371
2885 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2886 (ipa_constant_data): New type.
2887 (ipa_jump_func): Use ipa_constant_data to hold information about
2888 constant jump functions.
2889 (ipa_get_jf_constant): Adjust to jump function type changes.
2890 (ipa_get_jf_constant_rdesc): New function.
2891 (ipa_param_descriptor): New field controlled_uses.
2892 (ipa_get_controlled_uses): New function.
2893 (ipa_set_controlled_uses): Likewise.
2894 * ipa-ref.h (ipa_find_reference): Declare.
2895 * ipa-prop.c (ipa_cst_ref_desc): New type.
2896 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2897 changes.
2898 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2899 New parameter cs. Adjust all callers.
2900 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2901 (remove_described_reference): New function.
2902 (jfunc_rdesc_usable): Likewise.
2903 (try_make_edge_direct_simple_call): Decrement controlled use count,
2904 attempt to remove reference if it hits zero.
2905 (combine_controlled_uses_counters): New function.
2906 (propagate_controlled_uses): Likewise.
2907 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2908 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2909 (ipa_print_node_params): Print described use counter.
2910 (ipa_write_jump_function): Adjust to jump function type changes.
2911 (ipa_read_jump_function): New parameter CS, pass it to
2912 ipa_set_jf_constant. Adjust caller.
2913 (ipa_write_node_info): Stream controlled use count
2914 (ipa_read_node_info): Likewise.
2915 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2916 asserting.
2917 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2918 count. Remove cloning-added reference if it reaches zero.
2919 * ipa-ref.c (ipa_find_reference): New function.
2920
0864bfc2
GG
29212013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2922
e7208ea3 2923 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
2924 alignment values for AMD BD and BT architectures.
2925
640bfeb2
MG
29262013-05-13 Marc Glisse <marc.glisse@inria.fr>
2927
2928 * tree-vect-generic.c (uniform_vector_p): Move ...
2929 * tree.c (uniform_vector_p): ... here.
2930 * tree.h (uniform_vector_p): Declare it.
2931 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2932 into a scalar.
2933
3a60f32b
JJ
29342013-05-13 Jakub Jelinek <jakub@redhat.com>
2935
198fe1bf
JJ
2936 PR tree-optimization/57230
2937 * tree-ssa-strlen.c (handle_char_store): Record length for
2938 array store from STRING_CST.
2939
3a60f32b
JJ
2940 PR tree-optimization/57230
2941 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2942 check.
2943
566be57c
JR
29442013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2945
2946 * config/epiphany/epiphany.c (epiphany_init): Check size of
2947 NUM_MODES_FOR_MODE_SWITCHING.
2948 (epiphany_expand_prologue):
2949 Remove CONFIG_REGNUM initial value handling code.
2950 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2951 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 2952 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
2953 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2954 Don't return 1 for FP_MODE_NONE.
2955 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2956 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2957 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2958 * config/epiphany/epiphany.md (save_config): New pattern.
2959
0f2c2331
UB
29602013-05-12 Uros Bizjak <ubizjak@gmail.com>
2961
2962 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2963
5b3f93c7
UB
29642013-05-10 Uros Bizjak <ubizjak@gmail.com>
2965
2966 * config/i386/i386.md (memory): Handle sseishft1.
2967 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2968 (*vec_extractv2di_1): Ditto.
2969
1f873f0e
VM
29702013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2971
2972 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2973 saved registers.
2974
341427fa 29752013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
2976
2977 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2978 Add mthumb/march=armv7-a multilib.
2979 Add mthumb/march=armv7-r multilib.
2980 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2981
9e69bdde
RC
29822013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2983
2984 * config/v850/t-rtems: Add more multilibs.
2985
9ff09a22
RB
29862013-05-10 Richard Biener <rguenther@suse.de>
2987
2988 PR tree-optimization/57214
2989 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2990 not propagate from SSA names that occur in abnormal PHI nodes.
2991
a5e0cd1d
MG
29922013-05-10 Marc Glisse <marc.glisse@inria.fr>
2993
2994 * stor-layout.c (element_precision): New function.
2995 * machmode.h (element_precision): Declare it.
2996 * tree.c (build_minus_one_cst): New function.
2997 (element_precision): Likewise.
2998 * tree.h (build_minus_one_cst): Declare new function.
2999 (element_precision): Likewise.
3000 * fold-const.c (operand_equal_p): Use element_precision.
3001 (fold_binary_loc): Handle vector types.
3002 * convert.c (convert_to_integer): Use element_precision.
3003 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3004 separately.
3005
cb2558bc
RS
30062013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
3007
3008 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3009 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3010 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3011 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3012 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3013 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3014 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3015 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3016 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3017 (Uuw8): New constraints.
3018 (Usb4): Move into alphabetical order.
3019 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3020 (sd8_operand, ub8_operand, uw8_operand): New predicates.
3021 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3022 previously unnamed patterns.
3023 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3024 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3025 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3026 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3027 of set_attr_alternative/if_then_else. Use extended_mips16 instead
3028 of specific lengths.
3029
cb3b8d33
JJ
30302013-05-10 Jakub Jelinek <jakub@redhat.com>
3031
6f93c008
JJ
3032 * config/i386/i386.md (rotateinv): New code attr.
3033 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3034 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3035 roll $31, %eax, etc.
3036
cb3b8d33
JJ
3037 PR tree-optimization/45216
3038 PR tree-optimization/57157
3039 * tree-ssa-forwprop.c (simplify_rotate): New function.
3040 (ssa_forward_propagate_and_combine): Call it.
3041
afb119be
RB
30422013-05-10 Richard Biener <rguenther@suse.de>
3043
3044 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3045 disable peeling when we version for aliasing.
3046 (vector_alignment_reachable_p): Honor explicit user alignment.
3047 (vect_supportable_dr_alignment): Likewise.
3048 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3049 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3050 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3051 then peeling to arrange for the cost-model check to come first.
3052
01ae4861
AM
30532013-05-10 Alan Modra <amodra@gmail.com>
3054
3055 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3056 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3057 * configure: Regenerate.
3058
ebc9a431
AM
30592013-05-10 Alan Modra <amodra@gmail.com>
3060
3061 PR target/55033
3062 * varasm.c (default_elf_select_section): Move !DECL_P check..
3063 (get_named_section): ..to here before calling get_section_name.
3064 Adjust assertion.
3065 (default_section_type_flags): Add DECL_P check.
3066 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3067 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3068
d4bca93c
JR
30692013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
3070
3071 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3072 When using gen_stack_adjust_str with a register offset, add a
3073 REG_FRAME_RELATED_EXPR note.
3074
60ca9a65
UB
30752013-05-09 Uros Bizjak <ubizjak@gmail.com>
3076
3077 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3078 (*vec_extractv4si_zext_mem): Ditto.
3079 (*vec_extractv2di): Add 0->x and x->x alternatives.
3080 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3081 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3082
a3409c02
JM
30832013-05-09 Jason Merrill <jason@redhat.com>
3084
0138d6b2
JM
3085 N3639 C++1y VLA support
3086 * gimplify.c (gimplify_vla_decl): Don't touch an existing
3087 DECL_VALUE_EXPR.
3088
a3409c02
JM
3089 * tree.c (build_constructor_va): New.
3090 * tree.h: Declare it.
3091
66e6b990
MJ
30922013-05-09 Martin Jambor <mjambor@suse.cz>
3093
3094 PR lto/57084
3095 * gimple-fold.c (canonicalize_constructor_val): Call
3096 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
3097
64cfa6c0
JH
30982013-05-09 Jan Hubicka <jh@suse.cz>
3099 Richard Biener <rguenther@suse.de>
3100
3101 PR lto/54095
3102 * symtab.c (symtab_make_decl_local): Do not add private names.
3103
c3167b00
JH
31042013-05-09 Jan Hubicka <jh@suse.cz>
3105
3106 PR lto/54095
3107 * symtab.c (insert_to_assembler_name_hash): Handle clones.
3108 (unlink_from_assembler_name_hash): Likewise.
3109 (symtab_prevail_in_asm_name_hash, symtab_register_node,
3110 symtab_unregister_node, symtab_initialize_asm_name_hash,
3111 change_decl_assembler_name): Update.
3112
12dc6974
SN
31132013-05-09 Sofiane Naci <sofiane.naci@arm.com>
3114
3115 * config/aarch64/aarch64.md: New movtf split.
3116 (*movtf_aarch64): Update.
3117 (aarch64_movdi_tilow): Handle TF modes and rename to
3118 aarch64_movdi_<mode>low.
3119 (aarch64_movdi_tihigh): Handle TF modes and rename to
3120 aarch64_movdi_<mode>high
3121 (aarch64_movtihigh_di): Handle TF modes and rename to
3122 aarch64_mov<mode>high_di
3123 (aarch64_movtilow_di): Handle TF modes and rename to
3124 aarch64_mov<mode>low_di
3125 (aarch64_movtilow_tilow): Remove spurious whitespace.
3126 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
3127 splits.
3128 (aarch64_print_operand): Update.
3129
227eb343
AM
31302013-05-09 Alan Modra <amodra@gmail.com>
3131
3132 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
3133 powerpc64le.
3134 * configure: Regenerate.
3135
0b013847
UB
31362013-05-08 Uros Bizjak <ubizjak@gmail.com>
3137
3138 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
3139 splitter preparation statements.
3140 * config/i386/sse.md (*vec_extract* splitters): Ditto.
3141 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
3142 adjust_address_nv.
3143
1dc3d6e9
BS
31442013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3145
3146 * gimple-ssa-strength-reduction.c (count_candidates): Change
3147 return value to int.
3148 (analyze_candidates_and_replace): Change type of length to int.
3149
e61e7d28
UB
31502013-05-08 Uros Bizjak <ubizjak@gmail.com>
3151
3152 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
3153 (*vec_extract<mode>): Use VI12_128 mode iterator.
3154 (*vec_extract<mode>_mem): Ditto.
3155 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
3156 attribute.
3157
4fbfcf44
DN
31582013-05-08 Diego Novillo <dnovillo@google.com>
3159
3160 PR bootstrap/54659
3161
3162 Revert:
4fbfcf44
DN
3163 2012-08-17 Diego Novillo <dnovillo@google.com>
3164
e61e7d28
UB
3165 PR bootstrap/54281
3166 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
3167 * config.in: Regenerate.
3168 * configure: Regenerate.
3169 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 3170
702d8703
JH
31712013-05-08 Jan Hubicka <jh@suse.cz>
3172
3173 PR lto/54095
3174 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
3175 * cgraph.h (symtab_node_base): Add unique_name.
3176 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3177 input_overwrite_node, input_varpool_node): Stream unique_name.
3178 * cgraphclones.c (cgraph_create_virtual_clone,
3179 cgraph_function_versioning): Set unique_name.
3180 * ipa.c (function_and_variable_visibility): Set unique_name.
3181
8b28cf47
BS
31822013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3183
3184 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
3185 (alloc_cand_and_find_basis): Restrict conditional candidate
3186 processing to CAND_MULTs.
3187
e86074fd
JH
31882013-05-08 Jan Hubicka <jh@suse.cz>
3189
3190 PR lto/54095
3191 lto-symtab.c (lto_symtab_symbol_p): New function.
3192 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
3193 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
3194 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
3195 Skip static symbols.
3196
44398cbe
PC
31972013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
3198
3199 PR tree-optimization/57200
3200 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
3201 Only call inform if the preceding warning_at returns true.
3202
f6bc1c4a
HS
32032013-05-07 Han Shen <shenhan@google.com>
3204
3205 * cfgexpand.c (record_or_union_type_has_array_p): New function.
3206 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
3207 * common.opt (fstack-protector-strong): New option.
3208 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
3209 * doc/invoke.texi (Optimization Options): Document
3210 "-fstack-protector-strong".
3211 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
3212
4ffecb1f
SB
32132013-05-06 Steven Bosscher <steven@gcc.gnu.org>
3214
3215 * config/mips/mips.c (mips_machine_reorg2): Return 0.
3216
5a107a0f
VM
32172013-05-07 Vladimir Makarov <vmakarov@redhat.com>
3218
3219 * ira.c (update_equiv_regs): Add insn having equiv memory even if
3220 it is not lhs of the insn.
3221 (setup_reg_equiv): Remove insn having equiv memory which it is not
3222 lhs of the insn.
3223 * lra-constraints.c (process_address): Try to improve generation
3224 code for address base + disp.
3225 (lra_constraints): Make correct the code for checking insn setting
3226 up backward equivalence. Remove insn only if it is in the init
3227 insn list.
3228 * lra-eliminations.c (update_reg_eliminate): Change return value.
3229 (lra_eliminate): Use the result.
3230
3f5783ea
UB
32312013-05-07 Uros Bizjak <ubizjak@gmail.com>
3232
3233 * config/i386/sse.md (ssescalarnummask): New mode attribute.
3234 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
3235 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
3236 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
3237 register target operands.
3238 (*vec_extractv8hi_sse2): New pattern.
3239 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
3240 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
3241 (*vec_extract<mode>_mem): New insn and split pattern.
3242
8a5800b8
CL
32432013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
3244
3245 * config/arm/arm.c (arm_asan_shadow_offset): New function.
3246 (TARGET_ASAN_SHADOW_OFFSET): Define.
3247 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
3248 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
3249
7bf55a70
BS
32502013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3251
3252 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
3253 (incr_vec_index): Return -1 if increment not found.
3254 (create_add_on_incoming_edge): Assert if increment not found.
3255 (record_increment): Limit number of increments recorded.
3256 (all_phi_incrs_profitable): Return false if an increment not found.
3257 (replace_profitable_candidates): Don't process increments that were
3258 not recorded.
3259 (analyze_candidates_and_replace): Limit size of incr_vec.
3260
3f8825c0
RB
32612013-05-07 Richard Biener <rguenther@suse.de>
3262
3263 * calls.c (special_function_p): setjmp-like functions are leaf.
3264 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
3265 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
3266
fd4842cd
SN
32672013-05-07 Sofiane Naci <sofiane.naci@arm.com>
3268
3269 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
3270 (aarch64_simd_mov<mode>): New expander.
3271 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
3272 (aarch64_simd_mov_to_<mode>high): Likewise.
3273 (aarch64_simd_mov_from_<mode>low): Likewise.
3274 (aarch64_simd_mov_from_<mode>high): Likewise.
3275 (aarch64_dup_lane<mode>): Update.
3276 (aarch64_dup_lanedi): New instruction pattern.
3277 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
3278 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
3279
a7a7d10e
BS
32802013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3281
3282 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
3283 (replace_mult_candidate): Remove unnecessary argument; remove
3284 unnecessary parameter from call to introduce_cast_before_cand.
3285 (replace_unconditional_candidate): Remove unnecessary parameter
3286 from call to replace_mult_candidate.
3287 (replace_conditional_candidate): Likewise.
3288 (insert_initializers): Use make_temp_ssa_name.
3289 (introduce_cast_before_cand): Remove unnecessary argument; use
3290 make_temp_ssa_name.
3291 (replace_one_candidate): Remove unnecessary argument; remove
3292 unnecessary parameter from calls to introduce_cast_before_cand.
3293 (replace_profitable_candidates): Remove unnecessary parameters
3294 from calls to replace_one_candidate.
3295
29105868
BS
32962013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3297
3298 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3299 phi def as possibly hiding a basis for a CAND_ADD whose operands
3300 have been commuted in the analysis.
3301 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
3302
4095f9fa
N
33032013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3304
3305 * config/aarch64/aarch64.md
3306 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
3307 shift value between 0-4.
3308
39e843e8
RB
33092013-05-07 Richard Biener <rguenther@suse.de>
3310
3311 * double-int.h (rshift): New overload.
3312 * double-int.c (rshift): New function.
3313 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
3314 (create_reference_ops_from_ref): Remove.
3315 (vn_reference_insert): Use shared ops for constructing the
3316 reference and copy it.
3317
0a1a83cb
RB
33182013-05-07 Richard Biener <rguenther@suse.de>
3319
3320 PR middle-end/57190
3321 * tree-eh.c (sink_clobbers): Properly propagate
3322 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
3323
43303d6f
JJ
33242013-05-07 Jakub Jelinek <jakub@redhat.com>
3325
ba7e83f8
JJ
3326 PR tree-optimization/57149
3327 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
3328 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
3329 collect_phi_def_edges, execute_late_warn_uninitialized): Use
3330 uninit_undefined_value_p instead of ssa_undefined_value_p.
3331
43303d6f
JJ
3332 PR debug/57184
3333 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
3334 for modifier == EXPAND_INITIALIZER.
3335
14523c25
AB
33362013-05-07 Anton Blanchard <anton@samba.org>
3337
3338 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
3339 for powerpc64 little endian.
3340 * configure: Regenerate.
3341
cb7c8be9
GS
33422013-05-06 Graham Stott <grahams@btinternet.com>
3343
3344 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
3345 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
3346 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
3347 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
3348
33492013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
3350
3351 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
3352 codes which allow non-lvalues.
3353
9a0ee7b0
MG
33542013-05-06 Marc Glisse <marc.glisse@inria.fr>
3355
3356 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
3357 components are all 1s.
3358 (integer_minus_onep): New function.
3359 * tree.h (integer_minus_onep): Declare it.
3360 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
3361 integer_minus_onep instead of integer_all_onesp.
3362
f2c17ea9
OE
33632013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3364
3365 PR target/52933
3366 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
3367 variations of these patterns.
3368
f75e6a51
UB
33692013-05-06 Uros Bizjak <ubizjak@gmail.com>
3370
3371 * config/i386/i386.md (isa): Add x64_sse4 member.
3372 (enabled): Handle x64_sse4.
3373 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
3374 instruction for 64bit SSE4_1 targets. Update insn attributes.
3375 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
3376 instruction for SSE4_1 targets. Update insn attributes.
3377 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3378 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
3379 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
3380 const_1 selector.
3381 (*vec_extractv4si): Rename from *sse4_1_pextrd.
3382 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
3383 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
3384
a986d468
OE
33852013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3386
3387 PR target/57108
3388 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
3389
382522cb
MK
33902013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
3391
3392 * final.c (do_assembler_dialects): Don't handle curly braces and
3393 vertical bar escaped by % as dialect delimiters.
3394 (output_asm_insn): Print curly braces and vertical bar if escaped
3395 by % and ASSEMBLER_DIALECT defined.
3396 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
3397 * doc/tm.texi: Regenerated.
3398
fb0d5c60
SB
33992013-05-06 Steven Bosscher <steven@gcc.gnu.org>
3400
fb0d5c60
SB
3401 * config/mips/mips.c: Include tree-pass.h.
3402 (mips_reorg): Split in pre- and post-dbr_schedule parts.
3403 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
3404 (pass_mips_machine_reorg2): New machine specific pass.
3405 (insert_pass_mips_machine_reorg2): New pass plugin definition.
3406 (mips_option_override): Register the new pass.
3407 * rtl.h (cleanup_barriers): Remove prototype.
3408 (dbr_schedule): Likewise.
3409 * jump.c (cleanup_barriers): Make static.
3410 * reorg.c (dbr_schedule): Likewise.
3411
aa06a978
RB
34122013-05-06 Richard Biener <rguenther@suse.de>
3413
3414 PR tree-optimization/57185
3415 * tree-parloops.c (add_field_for_reduction): Handle anonymous
3416 SSA names properly.
3417
0b953bec
UB
34182013-05-06 Uros Bizjak <ubizjak@gmail.com>
3419
3420 PR target/57106
3421 * config/i386/i386.c (add_parameter_dependencies): Add dependence
3422 between "first_arg" and "insn", not "last" and "insn".
3423
28708525
WS
34242013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3425
3426 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
3427 (find_candidates_in_block): Re-enable slsr_process_phi.
3428 (create_phi_basis): Fix double counting of candidate adjustment.
3429
0107dca2
RB
34302013-05-06 Richard Biener <rguenther@suse.de>
3431
3432 PR middle-end/57147
3433 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
3434 the edge is also fallthru, preserve it and just clear the
3435 abnormal flag.
3436 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
3437 also complex, preserve that and just clear the fallthru flag.
3438 * tree-inline.c (update_ssa_across_abnormal_edges): Also
3439 update virtual operands.
3440
470d4d13
AM
34412013-05-06 Alan Modra <amodra@gmail.com>
3442
3443 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
3444 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
3445 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
3446 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
3447 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3448 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
3449
8f1dbf8d
AM
34502013-05-06 Alan Modra <amodra@gmail.com>
3451
3452 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
3453 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
3454 (DEFAULT_ASM_ENDIAN): Define.
3455 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
3456 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
3457 Update -K PIC clause from sysv4.h.
3458 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
3459 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
3460
54890767
AM
34612013-05-06 Alan Modra <amodra@gmail.com>
3462
3463 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
3464 twice for little-endian.
3465 (ashrdi3_no_power, ashrdi3): Support little-endian.
3466
2353515d
OE
34672013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
3468
3469 PR target/55303
3470 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
3471 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
3472 related expanders.
3473 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
3474 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
3475 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
3476 New predicates.
3477
33e67557
SB
34782013-05-05 Steven Bosscher <steven@gcc.gnu.org>
3479 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3480
3481 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
3482 * config/pa/pa.opt: Make mbig-switch a no-op.
3483 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
3484 (CASE_VECTOR_MODE): Always return SImode.
3485 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
3486 for the !TARGET_BIG_SWITCH case.
3487 * config/pa/pa-linux.h: Likewise.
3488 * config/pa/pa-openbsd.h: Likewise.
3489 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
3490 * config/pa/pa.md (short_jump): Remove define_insn.
3491 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
3492 (casesi0): Remove define_insn.
3493 (type): Remove btable_branch.
3494 (pa_combine_type): Likewise.
3495 (in_nullified_branch_delay): Likewise.
3496 (in_call_delay): Likewise.
3497 (define_delay): Likewise.
3498 (define_insn_reservation "Z3"): Likewise.
3499 (define_insn_reservation "Z4"): Likewise.
3500 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
3501 (pa_adjust_insn_length): Remove adjustment for btable branches.
3502 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
3503 and mno-big-switch
3504
3095685e
UB
35052013-05-05 Uros Bizjak <ubizjak@gmail.com>
3506
3507 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
3508 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
3509 Add m->r,x alternatives.
3510 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
3511 splitters using SWI48x mode iterator.
3512 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
3513 TARGET_64BIT. Add m->x alternative.
3514 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
3515 Add o->x alternative. Enable for TARGET_SSE.
3516 (sse_storeq): Remove expander.
3517 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
3518 with memory input operand.
3519 (*vec_extractv2di_1 splitter): New.
3520 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
3521 * config/i386/i386.md (ssevecmodelower): New mode attribute.
3522
4b36ae28
SB
35232013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3524
3525 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
3526 (INT_LOWPART): Delete.
3527 (extract_MB): Adjust.
3528 (extract_ME): Adjust.
3529 (print_operand): Adjust.
3530
da226db2
SB
35312013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
3532
3533 * config/rs6000/predicates.md (reg_or_add_cint_operand,
3534 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3535 (reg_or_logical_cint_operand, easy_fp_constant,
3536 logical_const_operand): Delete "CONST_DOUBLE" case.
3537 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
3538 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 3539 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
3540 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
3541 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
3542 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
3543 test.
3544 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
3545 CONST_DOUBLE DImode/VOIDmode case.
3546 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
3547 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
3548 CONST_DOUBLE VOIDmode case.
3549 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
3550 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
3551 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
3552 Delete CONST_DOUBLE case.
3553 (splitters for mov FMOVE64 const_double): Delete
3554 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
3555 "HOST_BITS_PER_WIDE_INT >= 64" test.
3556 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
3557 case.
3558 (mov DI const_double): Delete.
3559
40de22d6
JJ
35602013-05-04 Jakub Jelinek <jakub@redhat.com>
3561
3562 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
3563 on op shows all bits zero in mode of a lowpart subreg, return zero.
3564
5ec6aff2
MM
35652013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3566
3567 PR target/57150
3568 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
3569 to save TFmode registers and DImode to save TImode registers for
3570 caller save operations.
3571 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
3572 mark being partially clobbered since they only use the first
3573 double word.
3574
3575 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
3576 and TDmode only use the upper 64-bits of each VSX register.
3577
2cefad90
BS
35782013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3579
3580 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
3581 (find_candidates_in_block): Disable slsr_process_phi.
3582
d6d7eee1
GW
35832013-05-03 Guozhi Wei <carrot@google.com>
3584
3585 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
3586 constructor to ...
3587 (build_init_ctor): ... here.
d6d7eee1 3588
9b92d12b
BS
35892013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3590
3591 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
3592 (slsr_cand_d): Redefine def_phi.
3593 (stride_status, phi_adjust_status, count_phis_status): New enums.
3594 (find_phi_def): New.
3595 (find_basis_for_base_expr): New.
3596 (find_basis_for_candidate): Handle hidden bases.
3597 (alloc_cand_and_find_basis): Handle phi candidates.
3598 (slsr_process_phi): New.
3599 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
3600 (create_mul_imm_cand): Likewise.
3601 (create_add_ssa_cand): Exclude phi base candidates.
3602 (create_add_imm_cand): Likewise.
3603 (slsr_process_cast): Likewise.
3604 (slsr_process_copy): Likewise.
3605 (find_candidates_in_block): Handle phi candidates.
3606 (dump_candidate): Likewise.
3607 (unconditional_cands): Delete.
3608 (unconditional_cands_with_known_stride_p): Delete.
3609 (phi_dependent_cand_p): New.
3610 (cand_increment): Handle phi-dependent candidates.
3611 (replace_dependent): Delete.
3612 (replace_mult_candidate): New.
3613 (replace_unconditional_candidate): New.
3614 (incr_vec_index): Move to avoid forward reference.
3615 (create_add_on_incoming_edge): New.
3616 (create_phi_basis): New.
3617 (replace_dependents): Delete.
3618 (replace_conditional_candidate): New.
3619 (phi_add_costs): New.
3620 (replace_uncond_cands_and_profitable_phis): New.
3621 (record_increment): Handle phi adjustments.
3622 (record_phi_increments): New.
3623 (record_increments): Handle phi adjustments.
3624 (phi_incr_cost): New.
3625 (lowest_cost_path): Handle phis.
3626 (total_savings): Likewise.
3627 (analyze_increments): Likewise.
3628 (ncd_with_phi): New.
3629 (ncd_of_cand_and_phis): New.
3630 (nearest_common_dominator_for_cands): Handle phi increments.
3631 (all_phi_incrs_profitable): New.
3632 (replace_profitable_candidates): Handle phi-dependent candidates.
3633 (analyze_candidates_and_replace): Likewise.
3634
68f073d4
TJ
36352013-05-03 Teresa Johnson <tejohnson@google.com>
3636
3637 PR bootstrap/57154
3638 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
3639 do not exceed REG_BR_PROB_BASE.
3640
a4ee7cb9
JL
36412013-05-03 Jeff Law <law@redhat.com>
3642
ade67f70 3643 PR tree-optimization/57144
a4ee7cb9
JL
3644 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
3645 operand of the condition will bit into the new type when eliminating
3646 a cast feeding a condition.
3647
47954c4e
JJ
36482013-05-03 Jakub Jelinek <jakub@redhat.com>
3649
3650 PR rtl-optimization/57130
3095685e
UB
3651 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
3652 of COMPARE as in_code to the recursive call if needed.
47954c4e 3653
3c21604f
UB
36542013-05-03 Uros Bizjak <ubizjak@gmail.com>
3655
3656 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
3657 (enabled): Handle new members.
3658 * config/i386/sse.md (*vec_concatv2si): Merge from
3659 *vec_concatv2si_sse2 and vec_concatv2si_sse.
3660 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
3661
95c03b36
JR
36622013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
3663
3664 PR tree-optimization/57027
3665 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
3666 for fnms opportunity, check we got the prerequisite kind
3667 of tree / gimple before using accessor functions.
3668
07bfc9ec
RB
36692013-05-03 Richard Biener <rguenther@suse.de>
3670
3671 * double-int.h (lshift): New overload without precision
3672 and arith argument.
3673 (operator *=, operator +=, operator -=): Move ...
3674 * double-int.c (operator *=, operator +=, operator -=): ... here
3675 and implement more efficiently.
3676 (mul_double_with_sign): Remove.
3677 (lshift_double): Adjust to take unsinged shift argument, push
3678 dispatching code to callers.
3679 (mul_double_wide_with_sign): Add early out for callers that
3680 are not interested in high parts or overflow.
3681 (lshift): New function.
3682 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
3683 dispatch code here.
3684 (lrotate, rrotate): Use logical shifts.
3685 * expr.c (get_inner_reference): Use lshift.
3686 * fixed-value.c (do_fixed_divide): Likewise.
3687 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3688 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
3689 (indirect_refs_may_alias_p): Likewise.
3690 (stmt_kills_ref_p_1): Likewise.
3691
7769bb64
VP
36922013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3693
3694 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
3695
1d0c8e5c
VP
36962013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3697
3698 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
3699 scalar form of FABD instruction.
3700
f15feaf9
VM
37012013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3702
3703 * lra-constraints.c (process_alt_operands): Add checking alt
3704 number to choose the best alternative.
3705
d90e76d4
RB
37062013-05-02 Richard Biener <rguenther@suse.de>
3707
3708 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
3709 bitmap and its handling.
3710 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
3711
9f8e7a96
RB
37122013-05-02 Richard Biener <rguenther@suse.de>
3713
3714 PR middle-end/57140
3715 * tree-inline.c (copy_loops): Properly handle removed loops.
3716 (copy_cfg_body): Mark destination loops for fixup if source
3717 loops needed fixup.
3718
f3a81b39
GY
37192013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
3720
3721 PR target/56732
3722 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
3723 generating simple_return for naked functions.
3724
7b920a9a
MJ
37252013-05-02 Martin Jambor <mjambor@suse.cz>
3726
3727 PR middle-end/56988
3728 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
3729 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
3730 flags match.
3731 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
3732 ipa_agg_replacement_value structures.
3733 (known_aggs_to_agg_replacement_list): Likewise.
3734 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
3735 (read_agg_replacement_chain): Likewise.
3736 (ipcp_transform_function): Also check that by_ref flags match.
3737
2c41c19d
RB
37382013-05-02 Richard Biener <rguenther@suse.de>
3739
3740 * graphds.h (struct graph): Add obstack member.
3741 * graphds.c (new_graph): Initialize obstack and allocate
3742 vertices from it.
3743 (add_edge): Allocate edge from the obstack.
3c21604f 3744 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 3745
8b47039c
TJ
37462013-05-02 Teresa Johnson <tejohnson@google.com>
3747
3748 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
3749 divides.
3750 * cfg.c (update_bb_profile_for_threading): Ditto.
3751 * tree-inline.c (copy_bb): Ditto.
3752 (copy_edges_for_bb): Ditto.
3753 (initialize_cfun): Ditto.
3754 (copy_cfg_body): Ditto.
3755 (expand_call_inline): Ditto.
3756 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
3757 (estimate_node_size_and_time): Ditto.
3758 (inline_merge_summary): Ditto.
3759 * cgraphclones.c (cgraph_clone_edge): Ditto.
3760 (cgraph_clone_node): Ditto.
3761 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3762 (compute_trg_info): Ditto.
3763
da65928c
IB
37642013-05-02 Ian Bolton <ian.bolton@arm.com>
3765
3766 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
3767 S reg when fp attribute set.
3768 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
3769
add3c965
IB
37702013-05-02 Ian Bolton <ian.bolton@arm.com>
3771
3772 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
3773 New pattern.
3774 (*and_one_cmplsi3_compare0_uxtw): Likewise.
3775 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
3776 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
3777
fdd43ac4
RB
37782013-05-02 Richard Biener <rguenther@suse.de>
3779
3780 * tree-scalar-evolution.c (scev_info_hasher): Remove.
3781 (struct instantiate_cache_entry): New type.
3782 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
3783 (struct instantiate_cache_type): New type.
3784 (set_instantiated_value, get_instantiated_value): Remove.
3785 (get_instantiated_value_entry): New function.
3786 (instantiate_scev_name): Use the new cache and adjust.
3787 (instantiate_scev_poly): Adjust.
3788 (instantiate_scev_binary): Likewise.
3789 (instantiate_array_ref): Likewise.
3790 (instantiate_scev_convert): Likewise.
3791 (instantiate_scev_not): Likewise.
3792 (instantiate_scev_3): Likewise.
3793 (instantiate_scev_2): Likewise.
3794 (instantiate_scev_r): Likewise.
3795 (instantiate_scev): Likewise.
3796 (resolve_mixers): Likewise.
3797
36ff9dfb
VM
37982013-05-01 Vladimir Makarov <vmakarov@redhat.com>
3799
3800 PR target/57091
3801 * lra-constraints.c (best_small_class_operands_num): Remove.
3802 (process_alt_operands): Remove small_class_operands_num. Take
3803 small classes operands into losers and only if the operand is not
3804 matched. Modify debugging output.
3805 (curr_insn_transform): Remove best_small_class_operands_num.
3806 Print insn name.
3807
36054fab
JG
38082013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3809
3810 * config/aarch64/aarch64-builtins.c
3811 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
3812 * config/aarch64/aarch64-simd-builtins.def
3813 (reduc_splus_): Add new modes.
3814 (reduc_uplus_): New.
3815 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
3816 (reduc_uplus_v4sf): Likewise.
3817 (reduc_splus_v4sf): Likewise.
3818 (aarch64_addv<mode>): Likewise.
3819 (reduc_uplus_<mode>): Likewise.
3820 (reduc_splus_<mode>): Likewise.
3821 (aarch64_addvv2di): Likewise.
3822 (reduc_uplus_v2di): Likewise.
3823 (reduc_splus_v2di): Likewise.
3824 (aarch64_addvv2si): Likewise.
3825 (reduc_uplus_v2si): Likewise.
3826 (reduc_splus_v2si): Likewise.
3827 (reduc_<sur>plus_<mode>): New.
3828 (reduc_<sur>plus_v2di): Likewise.
3829 (reduc_<sur>plus_v2si): Likewise.
3830 (reduc_<sur>plus_v4sf): Likewise.
3831 (aarch64_addpv4sf): Likewise.
3832 * config/aarch64/arm_neon.h
3833 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
3834 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
3835 add UNSPEC_SADDV, UNSPEC_UADDV.
3836 (SUADDV): New.
3837 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
3838
6dce23a8
JG
38392013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3840
3841 * config/aarch64/arm_neon.h
3842 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
3843
1598945b
JG
38442013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3845
3846 * config/aarch64/aarch64-builtins
3847 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
3848
998eaf97
JG
38492013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3850
3851 * config/aarch64/aarch64-simd-builtins.def
3852 (reduc_smax_): New.
3853 (reduc_smin_): Likewise.
3854 (reduc_umax_): Likewise.
3855 (reduc_umin_): Likewise.
3856 (reduc_smax_nan_): Likewise.
3857 (reduc_smin_nan_): Likewise.
3858 (fmax): Remove.
3859 (fmin): Likewise.
3860 (smax): Update for V2SF, V4SF and V2DF modes.
3861 (smin): Likewise.
3862 (smax_nan): New.
3863 (smin_nan): Likewise.
3864 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
3865 (<su><maxmin><mode>3): ...This, refactor.
3866 (s<maxmin><mode>3): New.
3867 (<maxmin_uns><mode>3): Likewise.
3868 (reduc_<maxmin_uns>_<mode>): Refactor.
3869 (reduc_<maxmin_uns>_v4sf): Likewise.
3870 (reduc_<maxmin_uns>_v2si): Likewise.
3871 (aarch64_<fmaxmin><mode>: Remove.
3872 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
3873 new builtin names.
3874 (vmin<q>_f<32,64>): Likewise.
3875 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3876 (FMAXMIN): New.
3877 (su): Add mappings for smax, smin, umax, umin.
3878 (maxmin): New.
3879 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3880 (FMAXMIN): Rename as...
3881 (FMAXMIN_UNS): ...This.
3882 (maxminv): Remove.
3883 (fmaxminv): Likewise.
3884 (fmaxmin): Likewise.
3885 (maxmin_uns): New.
3886 (maxmin_uns_op): Likewise.
3887
bd11644e
JG
38882013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3889
3890 * config/aarch64/arm_neon.h
3891 (vac<ge, gt><sd>_f<32, 64>): Rename to...
3892 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3893 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3894
75dd5ace
JG
38952013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3896
3897 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3898 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3899
7c19979f
JG
39002013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3901
3902 * config/aarch64/aarch64-simd.md
3903 (vcond<mode>_internal): Handle special cases for constant masks.
3904 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3905 (vcondu<mode><mode>): Likewise.
3906 (vcond<v_cmp_result><mode>): New.
3907
bb60efd9
JG
39082013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3909
3910 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3911 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3912 * config/aarch64/aarch64-simd-builtins.def
3913 (cmeq): Update to BUILTIN_VALLDI.
3914 (cmgt): Likewise.
3915 (cmge): Likewise.
3916 (cmle): Likewise.
3917 (cmlt): Likewise.
3918 * config/aarch64/arm_neon.h
3919 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3920 to builtins or C as appropriate.
3921
889b9412
JG
39222013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3923
3924 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3925 (cmgeu): ...This.
3926 (cmhi): Rename to...
3927 (cmgtu): ...This.
3928 * config/aarch64/aarch64-simd.md
3929 (simd_mode): Add SF.
3930 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3931 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3932 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3933 (cstore<mode>_neg): ...This.
3934 * config/aarch64/iterators.md
3935 (VALLF): new.
3936 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3937 (COMPARISONS): New.
3938 (UCOMPARISONS): Likewise.
3939 (optab): Add missing comparisons.
3940 (n_optab): New.
3941 (cmp_1): Likewise.
3942 (cmp_2): Likewise.
3943 (CMP): Likewise.
3944 (cmp): Remove.
3945 (VCMP_S): Likewise.
3946 (VCMP_U): Likewise.
3947 (V_cmp_result): Add DF, SF modes.
3948 (v_cmp_result): Likewise.
3949 (v): Likewise.
3950 (vmtype): Likewise.
3951 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3952
0a7dbb76
GY
39532013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3954
3955 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3956 define_insn to define_insn_and_split.
3957 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3958 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3959 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3960 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3961 (thumb2_negscc): Likewise.
3962
fb614ca6
GY
39632013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3964
3965 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3966
9e64a0bf
GY
39672013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3968
3969 * config/arm/thumb2.md: Remove trailing whitespaces.
3970
d6b28156
RS
39712013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3972
3973 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3974 Use gen_int_mode rather than GEN_INT.
3975
f91674c3
L
39762013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3977
b0dec607 3978 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
3979 debug_gimple_stmt.
3980
3551257c
RB
39812013-04-30 Richard Biener <rguenther@suse.de>
3982
3983 PR middle-end/57122
3c21604f 3984 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 3985
4c1aff1c
RB
39862013-04-30 Richard Biener <rguenther@suse.de>
3987
3988 PR middle-end/57107
3989 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3990
54b8379a
AB
39912013-04-30 Andrey Belevantsev <abel@ispras.ru>
3992
3993 PR rtl-optimization/56957
3994 PR rtl-optimization/57105
54b8379a
AB
3995 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3996 variable. Use just INSN_UID for determining whether an insn
3997 should be only disconnected from the insn stream.
3998 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3999
abc27962
JJ
40002013-04-30 Jakub Jelinek <jakub@redhat.com>
4001
4002 PR tree-optimization/57104
4003 * tsan.c (instrument_expr): Don't instrument accesses to
4004 DECL_HARD_REGISTER VAR_DECLs.
4005
0fc822d0
RB
40062013-04-30 Richard Biener <rguenther@suse.de>
4007
4008 * function.h (loops_for_fn): New inline function.
4009 (set_loops_for_fn): Likewise.
4010 * cfgloop.h (place_new_loop): Add struct function parameter.
4011 (get_loop): Likewise.
4012 (get_loops): Likewise.
4013 (number_of_loops): Likewise.
4014 (fel_next): Adjust.
4015 (fel_init): Likewise.
4016 * cfg.c (get_loop_copy): Adjust.
4017 * cfgloop.c (flow_loops_dump): Likewise.
4018 (record_loop_exits): Likewise.
4019 (verify_loop_structure): Likewise.
4020 * cfgloopanal.c (mark_irreducible_loops): Likewise.
4021 (estimate_reg_pressure_cost): Likewise.
4022 (mark_loop_exit_edges): Likewise.
4023 * cfgloopmanip.c (place_new_loop): Likewise.
4024 (add_loop): Likewise.
4025 (duplicate_loop): Likewise.
4026 * graph.c (draw_cfg_nodes): Likewise.
4027 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4028 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4029 (extract_affine_chrec): Likewise.
4030 (build_scop_iteration_domain): Likewise.
4031 * graphite.c (graphite_initialize): Likewise.
4032 * ira-build.c (create_loop_tree_nodes): Likewise.
4033 (more_one_region_p): Likewise.
4034 (rebuild_regno_allocno_maps): Likewise.
4035 (mark_loops_for_removal): Likewise.
4036 (mark_all_loops_for_removal): Likewise.
4037 (remove_unnecessary_regions): Likewise.
4038 (ira_build): Likewise.
4039 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4040 * loop-init.c (fix_loop_structure): Likewise.
4041 (gate_rtl_move_loop_invariants): Likewise.
4042 (gate_rtl_unswitch): Likewise.
4043 (gate_rtl_unroll_and_peel_loops): Likewise.
4044 (rtl_doloop): Likewise.
4045 * lto-streamer-in.c (input_cfg): Likewise.
4046 * lto-streamer-out.c (output_cfg): Likewise.
4047 * modulo-sched.c (sms_schedule): Likewise.
4048 * predict.c (tree_estimate_probability): Likewise.
4049 (tree_estimate_probability_driver): Likewise.
4050 (estimate_loops): Likewise.
4051 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4052 (move_sese_region_to_fn): Likewise.
4053 (debug_loop_num): Likewise.
4054 * tree-chrec.c (chrec_evaluate): Likewise.
4055 (hide_evolution_in_other_loops_than_loop): Likewise.
4056 (chrec_component_in_loop_num): Likewise.
4057 (reset_evolution_in_loop): Likewise.
4058 (evolution_function_is_invariant_rec_p): Likewise.
4059 * tree-if-conv.c (main_tree_if_conversion): Likewise.
4060 * tree-inline.c (copy_loops): Likewise.
4061 (copy_cfg_body): Likewise.
4062 (tree_function_versioning): Likewise.
4063 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4064 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4065 Likewise.
4066 (add_to_evolution_1): Likewise.
4067 (scev_const_prop): Likewise.
4068 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4069 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4070 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4071 (tree_ssa_lim_initialize): Likewise.
4072 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4073 (verify_loop_closed_ssa): Likewise.
4074 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
4075 (tree_ssa_loop_im): Likewise.
4076 (tree_ssa_loop_unswitch): Likewise.
4077 (tree_vectorize): Likewise.
4078 (check_data_deps): Likewise.
4079 (tree_ssa_loop_ivcanon): Likewise.
4080 (tree_ssa_loop_bounds): Likewise.
4081 (tree_complete_unroll): Likewise.
4082 (tree_complete_unroll_inner): Likewise.
4083 (tree_parallelize_loops): Likewise.
4084 (tree_ssa_loop_prefetch): Likewise.
4085 (tree_ssa_loop_ivopts): Likewise.
4086 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4087 * tree-vectorizer.c (vectorize_loops): Likewise.
4088
37953bd3
MF
40892013-04-29 Mike Frysinger <vapier@gentoo.org>
4090
4091 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
4092 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
4093 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
4094 with EABI_LINK_SPEC.
4095
f9ed28db
UB
40962013-04-29 Uros Bizjak <ubizjak@gmail.com>
4097
4098 PR target/44578
4099 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
4100 alternative.
4101
deca73f5
VM
41022013-04-29 Vladimir Makarov <vmakarov@redhat.com>
4103
4104 PR target/57097
37953bd3 4105 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
4106 using memory for pseudos. Print cost dump for alternatives.
4107 Modify cost values for conflicts with early clobbers.
4108 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
4109
fdca7d03
UB
41102013-04-29 Uros Bizjak <ubizjak@gmail.com>
4111
4112 PR target/57098
4113 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
4114
0b064172
IB
41152013-04-29 Ian Bolton <ian.bolton@arm.com>
4116
4117 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
4118 from/to S register.
4119 (movdi_aarch64): Support LDR/STR from/to D register.
4120
473cec55
IB
41212013-04-29 Ian Bolton <ian.bolton@arm.com>
4122
4123 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
4124 or higher by default.
4125
a6f30e66
RB
41262013-04-29 Richard Biener <rguenther@suse.de>
4127
4128 PR middle-end/57075
4129 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
4130 even if not adding abnormal edges for calls that can make
4131 abnormal gotos.
4132
0c2b2040
RB
41332013-04-29 Richard Biener <rguenther@suse.de>
4134
4135 PR middle-end/57103
4136 * tree-cfg.c (move_stmt_op): Fix condition under which to update
4137 TREE_BLOCK.
4138 (move_stmt_r): Remove redundant checking.
4139
f41f80f9
TJ
41402013-04-29 Teresa Johnson <tejohnson@google.com>
4141
4142 PR bootstrap/57077
4143 * basic-block.h (apply_scale): New function.
4144 (apply_probability): Use apply_scale.
4145 * gimple-streamer-in.c (input_bb): Ditto.
4146 * lto-streamer-in.c (input_cfg): Ditto.
4147 * lto-cgraph.c (merge_profile_summaries): Ditto.
4148 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 4149 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
4150 (copy_edges_for_bb): Ditto.
4151 (copy_cfg_body): Ditto.
4152
315bbd2e
TV
41532013-04-29 Tom de Vries <tom@codesourcery.com>
4154
4155 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
4156 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
4157 (tail_merge_optimize): Handle current_loops == NULL.
4158
ebbd90d8
JL
41592013-04-26 Jeff Law <law@redhat.com>
4160
4161 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
4162 (simplify_cond_using_ranges): Generalize code to simplify
4163 COND_EXPRs where one argument is a constant and the other
4164 is an SSA_NAME created by an integral type conversion.
4165
8b9b57eb
KT
41662013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4167
4168 * config/arm/arm.md (store_minmaxsi): Use only when
4169 optimize_insn_for_size_p.
4170
9498e5dc
CB
41712013-04-29 Christian Bruel <christian.bruel@st.com>
4172
4173 PR target/57108
4174 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
4175
6093bc06
RB
41762013-04-29 Richard Biener <rguenther@suse.de>
4177
4178 PR middle-end/57089
fdca7d03
UB
4179 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
4180 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
4181 (expand_omp_for_generic): Properly add loops.
4182 (expand_omp_for_static_nochunk): Likewise.
4183 (expand_omp_for_static_chunk): Likewise.
4184 (expand_omp_for): For the degenerate case fixup loops.
4185 (expand_omp_sections): Fix default bb placement in loops.
4186 (expand_omp_atomic_pipeline): Properly add loops.
4187
84aacbfd
KT
41882013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4189
4190 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
4191
8dee4479
TV
41922013-04-29 Tom de Vries <tom@codesourcery.com>
4193
4194 * tree-ssa-tail-merge.c: Update header comment.
4195
47934dc4
JG
41962013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4197
4198 * config/aarch64/arm_neon.h
4199 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
4200 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
4201 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
4202 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
4203 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
4204 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
4205 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
4206 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
4207
384be29f
JG
42082013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4209
4210 * config/aarch64/aarch64-simd.md
4211 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
4212 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
4213 fix_trunc, fixuns_trunc.
4214 (ftrunc<VDQF:mode>2): New.
4215 * config/aarch64/iterators.md (optab): Add fix, fixuns.
4216 (fix_trunc_optab): New.
4217
0386b123
JG
42182013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4219
4220 * config/aarch64/aarch64-builtins.c
4221 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
4222 iceilf, lround, iroundf.
4223
00fcb892
UB
42242013-04-29 Uros Bizjak <ubizjak@gmail.com>
4225
4226 PR target/54349
4227 * config/i386/i386.h (enum ix86_tune_indices)
4228 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
4229 New, split from X86_TUNE_INTER_UNIT_MOVES.
4230 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
4231 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
4232 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
4233 (TARGET_INTER_UNIT_MOVES): Remove.
4234 * config/i386/i386.c (initial_ix86_tune_features): Update.
4235 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
4236 (ix86_expand_convert_uns_didf_sse): Use
4237 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4238 (ix86_expand_vector_init_one_nonzero): Ditto.
4239 (ix86_expand_vector_init_interleave): Ditto.
4240 (inline_secondary_memory_needed): Return true for moves from SSE class
4241 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
4242 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
4243 * config/i386/constraints.md (Yi, Ym): Depend on
4244 TARGET_INTER_UNIT_MOVES_TO_VEC.
4245 (Yj, Yn): New constraints.
4246 * config/i386/i386.md (*movdi_internal): Change constraints of
4247 operand 1 from Yi to Yj and from Ym to Yn.
4248 (*movsi_internal): Ditto.
4249 (*movdf_internal): Ditto.
4250 (*movsf_internal): Ditto.
4251 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
4252 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
4253 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
4254 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
4255 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
4256 * config/i386/sse.md (movdi_to_sse): Ditto.
4257 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
4258 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
4259 TARGET_INTER_UNIT_MOVES.
4260 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
4261 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
4262 instead of TARGET_INTER_UNIT_MOVES.
4263 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
4264 operand 1 from Yi to Yj and from Ym to Yn.
4265
4c871069
JG
42662013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4267
4268 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
4269 (float_truncate_hi_): Likewise.
4270 (float_extend_lo_): Likewise.
4271 (float_truncate_lo_): Likewise.
4272 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
4273 (aarch64_float_extend_lo_v2df): Likewise.
4274 (vec_unpacks_hi_v4sf): Likewise.
4275 (aarch64_float_truncate_lo_v2sf): Likewise.
4276 (aarch64_float_truncate_hi_v4sf): Likewise.
4277 (vec_pack_trunc_v2df): Likewise.
4278 (vec_pack_trunc_df): Likewise.
4279
1709ff9b
JG
42802013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4281
4282 * config/aarch64/aarch64-builtins.c
4283 (aarch64_fold_builtin): Fold float conversions.
4284 * config/aarch64/aarch64-simd-builtins.def
4285 (floatv2si, floatv4si, floatv2di): New.
4286 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
4287 * config/aarch64/aarch64-simd.md
4288 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
4289 * config/aarch64/iterators.md (FLOATUORS): New.
4290 (optab): Add float, floatuns.
4291 (su_optab): Likewise.
4292
ce966824
JG
42932013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4294
4295 * config/aarch64/aarch64-builtins.c
4296 (aarch64_builtin_vectorized_function): Use new names for
4297 fcvt builtins.
4298 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
4299 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
4300 (fcvtzu): Split as...
4301 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
4302 (fcvtas): Split as...
4303 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
4304 (fcvtau): Split as...
4305 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
4306 (fcvtps): Split as...
4307 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
4308 (fcvtpu): Split as...
4309 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
4310 (fcvtms): Split as...
4311 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
4312 (fcvtmu): Split as...
4313 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
4314 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
4315 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
4316 (lfrintnusf, lfrintnudf): Likewise.
4317 * config/aarch64/aarch64-simd.md
4318 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
4319 define_insn.
4320 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
4321 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
4322 (fcvt_pattern): Likewise.
4323
b9de24fe
JG
43242013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4325
4326 * config/aarch64/aarch64-simd.md
4327 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
4328 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
4329
77a205be
JG
43302013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4331
4332 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
4333 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
4334 (vrnd<a,m,n,p>_f32): Implement using builtins.
4335 (vrnd<i,x><q>_f<32, 64>): New.
4336
0659ce6f
JG
43372013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
4338
4339 * config/aarch64/aarch64-builtins.c
4340 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
4341 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
4342 (frintz): Rename to...
4343 (btrunc): ...this.
4344 (frintp): Rename to...
4345 (ceil): ...this.
4346 (frintm): Rename to...
4347 (floor): ...this.
4348 (frinti): Rename to...
4349 (nearbyint): ...this.
4350 (frintx): Rename to...
4351 (rint): ...this.
4352 (frinta): Rename to...
4353 (round): ...this.
4354 * config/aarch64/aarch64-simd.md
4355 (aarch64_frint<frint_suffix><mode>): Delete.
4356 (<frint_pattern><mode>2): Convert to insn.
4357 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
4358 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
4359 (frint_pattern): Likewise.
4360 (frint_suffix): Likewise.
4361
ea78906a
RB
43622013-04-29 Richard Biener <rguenther@suse.de>
4363
4364 PR tree-optimization/57081
4365 * loop-init.c: Include tree-flow.h.
4366 (loop_optimizer_finalize): Free number of iteration estimates.
4367 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
4368
baee1763
JJ
43692013-04-29 Jakub Jelinek <jakub@redhat.com>
4370
94dc5332
JJ
4371 PR tree-optimization/57083
4372 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
4373 non-singleton shift count range, zero extend low_bound for uns case.
4374
baee1763
JJ
4375 * config/i386/predicates.md (general_vector_operand): New predicate.
4376 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
4377 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
4378 if they aren't nonimmediate operands. If their original values
4379 satisfy const_vector_equal_evenodd_p, don't shift them.
4380 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
4381 predicates. For the SSE4.1 case force operands[{1,2}] into registers
4382 if not nonimmediate_operand.
4383 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
4384 instead of register_operand.
4385 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
4386
a9073727 43872013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
4388
4389 * stor-layout.c (finalize_size_functions): Allocate a structure and
4390 reset cfun before dumping the functions.
4391
ba8011e6
JJ
43922013-04-27 Jakub Jelinek <jakub@redhat.com>
4393
d6fde69e
JJ
4394 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
4395
ba8011e6
JJ
4396 PR target/56866
4397 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
4398 use xop_pmacsdqh if uns_p.
4399 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
4400 the immediate rotate count.
4401
2c62cbaa
VM
44022013-04-26 Vladimir Makarov <vmakarov@redhat.com>
4403
4404 * rtl.h (struct rtx_def): Add comment for field jump.
4405 (LRA_SUBREG_P): New macro.
4406 * recog.c (register_operand): Check LRA_SUBREG_P.
4407 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4408 stack frame.
4409 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4410 (lra_final_code_change): Skip subreg change for operators.
4411 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4412 if there are no operand changes.
4413 * lra-constraints.c (curr_insn_set): New.
4414 (match_reload): Set LRA_SUBREG_P.
4415 (emit_spill_move): Ditto.
4416 (check_and_process_move): Use curr_insn_set. Process only single
4417 set insns. Don't initialize sec_mem_p and change_p.
4418 (simplify_operand_subreg): Use LRA_SUBREG_P.
4419 (reg_in_class_p): New function.
4420 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4421 of #ifdef. Add code to remove cycling.
4422 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4423 non-null disp. Reload inner instead of disp when base and index
4424 are null. Try to put lo_sum into register.
4425 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
4426 (check_and_process_move): Move code for move cost check to
4427 simple_move_p. Remove equiv_substitution.
4428 (simple_move_p): New function.
4429 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4430 curr_insn_set. Call check_and_process_move only for single set
4431 insns. Use the new function. Move call of check_and_process_move
4432 after operand equiv substitution and address process.
4433
e7d764f3
JJ
44342013-04-26 Jakub Jelinek <jakub@redhat.com>
4435
4436 PR go/57045
4437 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
4438 with nonlocal goto receivers or returns twice calls, ignore
4439 unininitialized values from abnormal edges to nl goto receiver
4440 or returns twice call.
4441
41e10689
JJ
44422013-04-26 Jakub Jelinek <jakub@redhat.com>
4443
4444 PR tree-optimization/57051
4445 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
4446 and VEC_RSHIFT_EXPR if shift count is a multiple of element
4447 bitsize.
4448
d7ed20db
RB
44492013-04-26 Richard Biener <rguenther@suse.de>
4450
4451 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
4452 (expand_omp_taskreg): Likewise. Mark loops for fixup.
4453 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
4454 (fixup_loop_arrays_after_move): New function.
4455 (move_sese_region_to_fn): Properly outline the loop tree parts
4456 of the SESE region.
4457
df93505e
UB
44582013-04-26 Uros Bizjak <ubizjak@gmail.com>
4459
4460 * config/i386/i386.md (type, unit): Fix long lines.
4461
dd366ec3
RB
44622013-04-26 Richard Biener <rguenther@suse.de>
4463
4464 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
4465 (lto-streamer-out.o): Likewise.
4466 * cfgloop.c (init_loops_structure): Export, add struct function
4467 argument and adjust.
4468 (flow_loops_find): Adjust.
4469 * cfgloop.h (enum loop_estimation): Add EST_LAST.
4470 (init_loops_structure): Declare.
4471 * lto-streamer-in.c: Include cfgloop.h.
4472 (input_cfg): Input the loop tree.
4473 * lto-streamer-out.c: Include cfgloop.h.
4474 (output_cfg): Output the loop tree.
4475 (output_struct_function_base): Do not drop PROP_loops.
4476
a9e0d843
RB
44772013-03-26 Richard Biener <rguenther@suse.de>
4478
4479 * tree-cfg.c (execute_build_cfg): Build the loop tree.
4480 (pass_build_cfg): Provide PROP_loops.
4481 (move_sese_region_to_fn): Remove loops that are outlined into fn
4482 for now.
4483 * tree-inline.c: Include cfgloop.h.
4484 (initialize_cfun): Do not drop PROP_loops.
4485 (copy_loops): New function.
4486 (copy_cfg_body): Copy loop structure.
4487 (tree_function_versioning): Initialize destination loop tree.
4488 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
4489 (pass_parallelize_loops): Do IL verification.
4490 * loop-init.c (loop_optimizer_init): Fixup loops if required.
4491 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
4492 the CFG make sure we fixup loops as well.
4493 * tree-ssa-tail-merge.c: Include cfgloop.h.
4494 (replace_block_by): When merging loop latches mark loops for fixup.
4495 * lto-streamer-out.c (output_struct_function_base): Drop
4496 PROP_loops for now.
4497 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
4498 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
4499 * ipa-split.c: Include cfgloop.h.
4500 (split_function): Add the new return block to the loop tree root.
4501 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
4502 whether we have removed the forwarder block.
4503 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
4504 * cfgloop.h (place_new_loop): Declare.
4505 * cfgloopmanip.c (place_new_loop): Export.
4506 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
4507 (tree-switch-conversion.o): Likewise.
4508 (tree-complex.o): Likewise.
4509 (tree-inline.o): Likewise.
4510 (tree-ssa-tailmerge.o): Likewise.
4511 (ipa-split.o): Likewise.
4512 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
4513 (tree-ssa-copy.o): Likewise.
4514 * tree-switch-conversion.c: Include cfgloop.h
4515 (process_switch): If we emit a bit-test cascade, schedule loops
4516 for fixup.
4517 * tree-complex.c: Include cfgloop.h.
4518 (expand_complex_div_wide): Properly add new basic-blocks to loops.
4519 * asan.c: Include cfgloop.h.
4520 (create_cond_insert_point): Properly add new basic-blocks to
4521 loops, schedule loop fixup.
4522 * cfgloop.c (verify_loop_structure): Check that looks are not
4523 marked for fixup.
4524 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
4525 to loops.
4526 (expand_omp_for_generic): Likewise.
4527 (expand_omp_sections): Likewise.
4528 (expand_omp_atomic_pipeline): Schedule loops for fixup.
4529 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
4530 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
4531 is initialized, not when loops are present.
4532 * tree-parloops.c (parallelize_loops): Remove checking here.
4533 * passes.c (init_optimization_passes): Schedule a copy-propagation
4534 pass before complete unrolling of inner loops.
4535
e78e8a0b
JJ
45362013-04-26 Jakub Jelinek <jakub@redhat.com>
4537
a2e836b2
JJ
4538 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
4539 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
4540 (colorize_init): Add argument to _WIN32 version.
4541 * toplev.c: Include diagnostic-color.h.
4542 (process_options): Default to -fdiagnostics-color=auto if
4543 GCC_COLORS env var is in the environment.
4544 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
4545 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
4546 env var is in the environment, the default is auto rather than never.
a2e836b2 4547
e78e8a0b
JJ
4548 * diagnostic.h (file_name_as_prefix): Add context argument.
4549 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
4550 the string as locus.
4551 * langhooks.c (lhd_print_error_function): Adjust caller.
4552
013e5ef9
LC
45532013-04-25 Lawrence Crowl <crowl@google.com>
4554
4555 * var-tracking.c (shared_hash_def::htab):
4556 Change type to hash_table. Update dependent calls and types.
4557
4a8fb1a1
LC
45582013-04-25 Lawrence Crowl <crowl@google.com>
4559
4560 * Makefile.in: Update as needed below.
4561
4562 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
4563 Move declaration to after the type's method definitons.
4564
4565 * attribs.c (htab_t scoped_attributes::attribute_hash):
4566 Change type to hash_table. Update dependent calls and types.
4567
4568 * bitmap.c (htab_t bitmap_desc_hash):
4569 Change type to hash_table. Update dependent calls and types.
4570
4571 * cselib.c (htab_t cselib_hash_table):
4572 Change type to hash_table. Update dependent calls and types.
4573
4574 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
4575 (hash_string_slot_node): Move implementation into lto-streamer.h
4576 struct string_slot_hasher.
4577 (eq_string_slot_node): Likewise.
4578
4579 * data-streamer-out.c: Update output_block::string_hash_table
4580 dependent calls and types.
4581
4582 * dwarf2cfi.c (htab_t trace_index):
4583 Change type to hash_table. Update dependent calls and types.
4584
4585 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
4586 Change type to hash_table. Update dependent calls and types.
4587 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
4588 (htab_t optimize_external_refs::map): Likewise.
4589 (htab_t output_comp_unit::extern_map): Likewise.
4590 (htab_t output_comdat_type_unit::extern_map): Likewise.
4591 (htab_t output_macinfo::macinfo_htab): Likewise.
4592 (htab_t optimize_location_lists::htab): Likewise.
4593 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
4594
4595 * except.c (htab_t ehspec_hash_type):
4596 Change type to hash_table. Update dependent calls and types.
4597 (assign_filter_values::ttypes): Likewise.
4598 (assign_filter_values::ehspec): Likewise.
4599 (sjlj_assign_call_site_values::ar_hash): Likewise.
4600 (convert_to_eh_region_ranges::ar_hash): Likewise.
4601
4602 * gcse.c (htab_t pre_ldst_table):
4603 Change type to hash_table. Update dependent calls and types.
4604
4605 * ggc-common.c (htab_t saving_htab):
4606 Change type to hash_table. Update dependent calls and types.
4607 (htab_t loc_hash): Likewise.
4608 (htab_t ptr_hash): Likewise.
4609 (call_count): Rename ggc_call_count.
4610 (call_alloc): Rename ggc_call_alloc.
4611 (loc_descriptor): Rename make_loc_descriptor.
4612 (add_statistics): Rename ggc_add_statistics.
4613
4614 * ggc-common.c (saving_htab):
4615 Change type to hash_table. Update dependent calls and types.
4616
4617 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
4618 (push_gimplify_context): Likewise.
4619 (pop_gimplify_context): Likewise.
4620 (struct gimple_temp_hash_elt): Added.
4621 (struct gimplify_hasher): Likewise.
4622 (struct gimplify_ctx.temp_htab):
4623 Change type to hash_table. Update dependent calls and types.
4624
4625 * gimple-fold.c: Include gimplify-ctx.h.
4626
4627 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
4628 Change type to hash_table. Update dependent calls and types.
4629 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
4630 avoid potential global name collision.
4631
4632 * gimplify.c: Include gimplify-ctx.h.
4633 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
4634 (htab_t gimplify_ctx::temp_htab):
4635 Update dependent calls and types for new type hash_table.
4636 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
4637 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
4638
4639 * gimplify-ctx.h: New.
4640 (struct gimple_temp_hash_elt): Move from gimplify.c.
4641 (class gimplify_hasher): New.
4642 (struct gimplify_ctx): Move from gimple.h.
4643 (htab_t gimplify_ctx::temp_htab):
4644 Change type to hash_table. Update dependent calls and types.
4645
4646 * graphite-clast-to-gimple.c: Include graphite-htab.h.
4647 (htab_t ivs_params::newivs_index):
4648 Change type to hash_table. Update dependent calls and types.
4649 (htab_t ivs_params::params_index): Likewise.
4650 (htab_t print_generated_program::params_index): Likewise.
4651 (htab_t gloog::newivs_index): Likewise.
4652 (htab_t gloog::params_index): Likewise.
4653
4654 * graphite.c: Include graphite-htab.h.
4655 4htab_t graphite_transform_loops::bb_pbb_mapping):
4656 Change type to hash_table. Update dependent calls and types.
4657
4658 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
4659 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
4660 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
4661
4662 * graphite-dependences.c: Include graphite-htab.h.
4663 (loop_is_parallel_p): Change hash table type of parameter.
4664
4665 * graphite-htab.h: New.
4666 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
4667 (extern find_pbb_via_hash): Move from graphite-poly.h.
4668 (extern loop_is_parallel_p): Move from graphite-poly.h.
4669 (extern get_loop_body_pbbs): Move from graphite-poly.h.
4670
4671 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
4672 (extern loop_is_parallel_p): Move to graphite-htab.h.
4673 (extern get_loop_body_pbbs): Move to graphite-htab.h.
4674
4675 * haifa-sched.c (htab_t delay_htab):
4676 Change type to hash_table. Update dependent calls and types.
4677 (htab_t delay_htab_i2): Likewise.
4678
4679 * ira-color.c (htab_t allocno_hard_regs_htab):
4680 Change type to hash_table. Update dependent calls and types.
4681
4682 * ira-costs.c (htab_t cost_classes_htab):
4683 Change type to hash_table. Update dependent calls and types.
4684
4685 * loop-invariant.c (htab_t merge_identical_invariants::eq):
4686 Change type to hash_table. Update dependent calls and types.
4687
4688 * loop-iv.c (htab_t bivs):
4689 Change type to hash_table. Update dependent calls and types.
4690
4691 * loop-unroll.c (htab_t opt_info::insns_to_split):
4692 Change type to hash_table. Update dependent calls and types.
4693 (htab_t opt_info::insns_with_var_to_expand): Likewise.
4694
4695 * lto-streamer.h (struct string_slot): Move from data-streamer.h
4696 (struct string_slot_hasher): New.
4697 (htab_t output_block::string_hash_table):
4698 Change type to hash_table. Update dependent calls and types.
4699
4700 * lto-streamer-in.c (freeing_string_slot_hasher): New.
4701 (htab_t file_name_hash_table):
4702 Change type to hash_table. Update dependent calls and types.
4703
4704 * lto-streamer-out.c: Update output_block::string_hash_table dependent
4705 calls and types.
4706
4707 * lto-streamer.c (htab_t tree_htab):
4708 Change type to hash_table. Update dependent calls and types.
4709
4710 * omp-low.c: Include gimplify-ctx.h.
4711
4712 * passes.c (htab_t name_to_pass_map):
4713 Change type to hash_table. Update dependent calls and types.
4714 (pass_traverse): Rename to passes_pass_traverse.
4715
4716 * plugin.c (htab_t event_tab):
4717 Change type to hash_table. Update dependent calls and types.
4718
4719 * postreload-gcse.c (htab_t expr_table):
4720 Change type to hash_table. Update dependent calls and types.
4721 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
4722
4723 * sese.c (debug_rename_map_1): Make extern.
4724 (htab_t copy_bb_and_scalar_dependences::rename_map):
4725 Change type to hash_table. Update dependent calls and types.
4726
4727 * sese.h (extern debug_rename_map): Move to .c file.
4728
4729 * store-motion.c (htab_t store_motion_mems_table):
4730 Change type to hash_table. Update dependent calls and types.
4731
4732 * trans-mem.c (htab_t tm_new_mem_hash):
4733 Change type to hash_table. Update dependent calls and types.
4734
4735 * tree-browser.c (htab_t TB_up_ht):
4736 Change type to hash_table. Update dependent calls and types.
4737
4738 * tree-cfg.c (htab_t discriminator_per_locus):
4739 Change type to hash_table. Update dependent calls and types.
4740
4741 * tree-complex.c: Include tree-hasher.h
4742 (htab_t complex_variable_components):
4743 Change type to hash_table. Update dependent calls and types.
4744
4745 * tree-eh.c (htab_t finally_tree):
4746 Change type to hash_table. Update dependent calls and types.
4747
4748 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
4749 struct int_tree_hasher.
4750 (extern int_tree_map_eq): Likewise.
4751 (uid_decl_map_hash): Removed.
4752 (extern decl_tree_map_eq): Likewise.
4753
4754 * tree-hasher.h: New.
4755 (struct int_tree_hasher): New.
4756 (typedef int_tree_htab_type): New.
4757
4758 * tree-inline.c: Include gimplify-ctx.h.
4759
4760 * tree-mudflap.c: Include gimplify-ctx.h.
4761
4762 * tree-parloops.c: Include tree-hasher.h.
4763 (htab_t eliminate_local_variables_stmt::decl_address):
4764 Change type to hash_table. Update dependent calls and types.
4765 (htab_t separate_decls_in_region::decl_copies): Likewise.
4766
4767 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
4768 Change type to hash_table. Update dependent calls and types.
4769
4770 * tree-sra.c (candidates):
4771 Change type to hash_table. Update dependent calls and types.
4772
4773 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
4774 in tree-flow.h.
4775 (int_tree_map_hash): Likewise.
4776
4777 * tree-ssa-dom.c (htab_t avail_exprs):
4778 Change type to hash_table. Update dependent calls and types.
4779
4780 * tree-ssa-live.c (var_map_base_init::tree_to_index):
4781 Change type to hash_table. Update dependent calls and types.
4782
4783 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
4784 Change type to hash_table. Update dependent calls and types.
4785
4786 * tree-ssa-phiopt.c (seen_ssa_names):
4787 Change type to hash_table. Update dependent calls and types.
4788
4789 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
4790 Change type to hash_table. Update dependent calls and types.
4791
4792 * tree-ssa-uncprop.c (equiv):
4793 Change type to hash_table. Update dependent calls and types.
4794
c5a44004
JJ
47952013-04-25 Jakub Jelinek <jakub@redhat.com>
4796
4797 PR rtl-optimization/57003
4798 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
4799 call note_stores with kill_clobbered_value callback again after
4800 killing regs_invalidated_by_call.
4801
09962a4a
JG
48022013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4803
4804 * config/aarch64/aarch64-simd.md
4805 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
4806 (aarch64_simd_bsl<mode>): Likewise.
4807 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
4808
ea28bb0b
MP
48092013-04-25 Marek Polacek <polacek@redhat.com>
4810
4811 PR tree-optimization/57066
3c21604f 4812 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 4813
96659611
JG
48142013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
4815
4816 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
4817
9697e620
JG
48182013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4819
4820 * config/aarch64/aarch64-builtins.c
4821 (aarch64_fold_builtin): New.
4822 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
4823 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
4824 * config/aarch64/aarch64-simd-builtins.def (abs): New.
4825 * config/aarch64/arm_neon.h
4826 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
4827
0ac198d3
JG
48282013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4829 Tejas Belagod <tejas.belagod@arm.com>
4830
4831 * config/aarch64/aarch64-builtins.c
4832 (aarch64_gimple_fold_builtin): New.
4833 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
4834 * config/aarch64/aarch64-simd-builtins.def (addv): New.
4835 * config/aarch64/aarch64-simd.md (addpv4sf): New.
4836 (addvv4sf): Update.
4837 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4838
58cff58c
N
48392013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4840
df93505e 4841 * config/aarch64/aarch64.md
58cff58c
N
4842 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
4843
7e0228bf
N
48442013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4845
4846 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
4847 (*ngcsi_uxtw): New pattern.
4848
5819f96f 48492013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 4850 Julian Brown <julian@codesourcery.com>
5819f96f
KT
4851
4852 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
4853 (TB_DREG): Add T_V4HF.
4854 (v4hf_UP): New macro.
4855 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 4856 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
4857 Handle initialisation of V4HF. Adjust initialisation of reinterpret
4858 built-ins.
df93505e 4859 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
4860 (arm_vector_mode_supported_p): Handle V4HF.
4861 (arm_mangle_map): Handle V4HFmode.
4862 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
4863 * config/arm/arm_neon_builtins.def: Add entries for
4864 vcvtv4hfv4sf, vcvtv4sfv4hf.
4865 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
4866 (neon_vcvtv4hfv4sf): Likewise.
4867 * config/arm/neon-gen.ml: Handle half-precision floating point
4868 features.
4869 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
4870 * config/arm/arm_neon.h: Regenerate.
4871 * config/arm/neon.ml (type elts): Add F16.
4872 (type vectype): Add T_float16x4, T_floatHF.
4873 (type vecmode): Add V4HF.
4874 (type features): Add Requires_FP_bit feature.
4875 (elt_width): Handle F16.
4876 (elt_class): Likewise.
4877 (elt_of_class_width): Likewise.
4878 (mode_of_elt): Refactor.
4879 (type_for_elt): Handle F16, fix error messages.
4880 (vectype_size): Handle T_float16x4.
4881 (vcvt_sh): New function.
4882 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4883 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4884 (string_of_mode): Handle V4HF.
4885 * doc/arm-neon-intrinsics.texi: Regenerate.
4886
1ef395e4
JG
48872013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4888
4889 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4890 format specifier in 'X' case.
4891
41c34e94
AM
48922013-04-25 Alan Modra <amodra@gmail.com>
4893
4894 PR target/57052
4895 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4896 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4897 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4898 Repeat for many other rotate/shift and mask patterns using subregs.
4899 Name lshiftrt insns.
4900 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4901 on WORDS_BIG_ENDIAN.
4902
b9a7eb5d
AM
49032013-04-25 Alan Modra <amodra@gmail.com>
4904
4905 * config.gcc: Support little-endian powerpc-linux targets.
4906 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4907 (LINK_OS_LINUX_SPEC): Define.
4908 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4909 Preserve MASK_LITTLE_ENDIAN.
4910 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4911 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4912 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4913 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4914 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4915 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4916 Correct fp word order for little-endian. Don't shift toc entries
4917 smaller than a word for little-endian.
4918 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4919 (bswapdi2 splits): Correct low-part subreg for little-endian.
4920 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4921 low/high where such is correct only for be.
4922 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4923 little-endian for -mcall-aixdesc.
4924
87f73374
AM
49252013-04-25 Alan Modra <amodra@gmail.com>
4926
4927 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4928 replace_equiv_address_nv.
4929
cabf91cd
AM
49302013-04-25 Alan Modra <amodra@gmail.com>
4931
4932 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4933
0ae24cc8
VM
49342013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4935
4936 Revert:
4937 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4938 * rtl.h (struct rtx_def): ...
cabf91cd 4939
77bce07c
VM
49402013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4941
4942 PR rtl-optimizations/57046
4943 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4944 for multi-reg splits.
4945
0db63e7f
L
49462013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4947
4948 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4949
3362b6b6
SA
49502013-04-24 Sterling Augustine <saugustine@google.com>
4951
4952 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4953 (comp_dir_string, debug_str_dwo_section): New.
4954 (DEBUG_STR_DWO_SECTION): Rename to ...
4955 (DEBUG_DWO_STR_SECTION): ... this.
4956 (DEBUG_NORM_STR_SECTION): Delete.
4957 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4958 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4959 (find_AT_string): Move most logic to ...
4960 (find_AT_string_in_table): ... here. New.
4961 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4962 add_skeleton_AT_string. Delete logic.
4963 (output_skeleton_debug_sections): Remove call to
4964 add_top_level_skeleton_die_attrs.
4965 (add_comp_dir_attribute): Move logic to comp_dir_string.
4966 (dwarf2out_init): Initialize debug_str_dwo_section.
4967 (output_indirect_string): Call find_string_form.
4968 (output_indirect_strings): Rewrite.
4969 (prune_unused_types): Empty skeleton_debug_str_hash.
4970 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4971 (dwarf2out_finish): Call output_indirect_strings.
4972
e93e18e9
PC
49732013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4974
4975 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4976
f6ce35ac
VM
49772013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4978
cabf91cd 4979 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
4980 (LRA_SUBREG_P): New macro.
4981 * recog.c (register_operand): Check LRA_SUBREG_P.
4982 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4983 stack frame.
4984 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4985 (lra_final_code_change): Skip subreg change for operators.
4986 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4987 if there are no operand changes.
4988 * lra-constraints.c (curr_insn_set): New.
4989 (match_reload): Set LRA_SUBREG_P.
4990 (emit_spill_move): Ditto.
4991 (check_and_process_move): Use curr_insn_set. Process only single
4992 set insns. Don't initialize sec_mem_p and change_p.
4993 (simplify_operand_subreg): Use LRA_SUBREG_P.
4994 (reg_in_class_p): New function.
4995 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4996 of #ifdef. Add code to remove cycling.
4997 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4998 non-null disp. Reload inner instead of disp when base and index
4999 are null. Try to put lo_sum into register.
5000 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 5001 (check_and_process_move): Move code for move cost check to
f6ce35ac 5002 simple_move_p. Remove equiv_substitution.
cabf91cd 5003 (simple_move_p): New function.
f6ce35ac
VM
5004 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5005 curr_insn_set. Call check_and_process_move only for single set
5006 insns. Use the new function. Move call of check_and_process_move
5007 after operand equiv substitution and address process.
5008
38047d90
JG
50092013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
5010
5011 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5012 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5013 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5014
13f39b2e
PC
50152013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5016
5017 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5018
97c116dc
MP
50192013-04-24 Marek Polacek <polacek@redhat.com>
5020
5021 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5022 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5023 (select_loops_exit_conditions): Likewise.
5024 (number_of_iterations_for_all_loops): Likewise.
5025 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5026 (scev_analysis): Likewise.
5027
83082391
CM
50282013-04-02 Catherine Moore <clm@codesourcery.com>
5029 Chao-ying Fu <fu@mips.com>
5030
cabf91cd
AM
5031 * config/mips/micromips.md (jraddiusp): New pattern.
5032 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5033 instruction if possible.
83082391 5034
19e34aa2
AM
50352013-04-24 Alan Modra <amodra@gmail.com>
5036
5037 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5038
fdb6603c
JB
50392013-04-24 Julian Brown <julian@codesourcery.com>
5040 Chung-Lin Tang <cltang@codesourcery.com>
5041
5042 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
5043 dependency behavior in enumeration type DIE generation. Add TODO note
5044 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 5045
bf190e8d
LC
50462013-04-23 Lawrence Crowl <crowl@google.com>
5047
5048 * Makefile.in: Update as needed below.
5049
5050 * hash-table.h (class hash_table):
5051 Correct many methods with parameter types compare_type to the correct
5052 value_type. (Correct code was unlikely to notice the change.)
5053 (hash_table::elements_with_deleted) New.
5054 (class hashtable::iterator): New.
5055 (hashtable::begin()): New.
5056 (hashtable::end()): New.
5057 (FOR_EACH_HASH_TABLE_ELEMENT): New.
5058
5059 * statistics.c (statistics_hashes):
5060 Change type to hash_table. Update dependent calls and types.
5061
5062 * tree-into-ssa.c (var_infos):
5063 Change type to hash_table. Update dependent calls and types.
5064
5065 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5066 Change type to hash_table. Update dependent calls and types.
5067
5068 * tree-ssa-loop-im.c (struct mem_ref.refs):
5069 Change type to hash_table. Update dependent calls and types.
5070
5071 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5072 Change type to hash_table. Update dependent calls and types.
5073
5074 * tree-ssa-sccvn.c (vn_tables_s::nary):
5075 Change type to hash_table. Update dependent calls and types.
5076 (vn_tables_s::phis): Likewise.
5077 (vn_tables_s::references): Likewise.
5078
5079 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5080 (vn_reference_eq): Update parameter and return types.
5081
5082 * tree-ssa-structalias.c (pointer_equiv_class_table):
5083 Change type to hash_table. Update dependent calls and types.
5084 (location_equiv_class_table): Likewise.
5085
5086 * tree-vect-data-refs.c: Consequential changes for making
5087 peeling a hash_table.
5088
5089 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
5090 (destroy_loop_vec_info): Dependent hash_table update.
5091
5092 * tree-vectorizer.h (peeling_htab):
5093 Change type to hash_table. Update dependent calls and types.
5094
d70a81dd
SC
50952013-04-23 Shiva Chen <shiva0217@gmail.com>
5096
cabf91cd
AM
5097 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
5098 to check the register content is equal or not.
5099 * lra-constraints.c (match_reload): Use lra_assign_reg_val
5100 to assign register content record.
5101 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 5102 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
5103 * lra-int.h (struct lra_reg): Add offset member.
5104 (lra_reg_val_equal_p): New static inline function.
5105 (lra_update_reg_val_offset): New static inline function.
5106 (lra_assign_reg_val): New static inline function.
5107 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
5108 to assign register content record.
5109 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 5110
b894a1f3
CM
51112013-04-23 Catherine Moore <clm@codesourcery.com>
5112
5113 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
5114 operands. Record compression.
5115
ecd14de9
XDL
51162013-04-23 Xinliang David Li <davidxl@google.com>
5117
5118 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
5119
92e776e9
RB
51202013-04-23 Richard Biener <rguenther@suse.de>
5121
5122 PR middle-end/57036
5123 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
5124 parameter, only add abnormal goto edges from the copied body
5125 if the call could perform abnormal gotos.
5126 (copy_cfg_body): Adjust.
5127
a15ee567
SN
51282013-04-23 Sofiane Naci <sofiane.naci@arm.com>
5129
5130 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
5131
08c52234
AS
51322013-04-23 Andreas Schwab <schwab@linux-m68k.org>
5133
5134 * coretypes.h (gimple_stmt_iterator): Add struct to make
5135 compatible with C.
5136
999c1171
RB
51372013-04-23 Richard Biener <rguenther@suse.de>
5138
5139 PR tree-optimization/57026
5140 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
5141 from SSA names occuring in abnormal PHI nodes.
5142
53669259
AK
51432013-04-22 Andi Kleen <ak@linux.intel.com>
5144
5145 * lto/lto.c (print_lto_report_1): Fix LTO report names.
5146
1a0ad150
AK
51472013-04-22 Andi Kleen <ak@linux.intel.com>
5148
5149 * lto/lto.c (print_lto_report_1): Declare early.
5150 (read_cgraph_and_symbols): Call print_lto_report_1 early.
5151
057f8f20
AK
51522013-04-22 Andi Kleen <ak@linux.intel.com>
5153
5154 * common.opt (-flto-report-wpa): Add.
5155 * doc/invoke.texi (-flto-report-wpa): Add.
5156 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
5157 (lto_main): dito.
5158
473b1e05
XDL
51592013-04-22 Xinliang David Li <davidxl@google.com>
5160
5161 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
5162 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
5163 * Makefile.in: New dependency
5164
cabf91cd 5165 David Daney <ddaney.cavm@gmail.com>
b1485a33 5166
cabf91cd
AM
5167 * configure.ac (gcc_cv_as_micromips_support): Use the
5168 --fatal-warnings option.
5169 * configure: Regenerate.
b1485a33 5170
829d0168
MP
51712013-04-22 Marek Polacek <polacek@redhat.com>
5172
5173 PR sanitizer/56990
5174 * tsan.c (instrument_expr): Don't instrument expression
5175 in case its size is zero.
5176
6d9b7208
UB
51772013-04-22 Uros Bizjak <ubizjak@gmail.com>
5178
5179 PR target/57032
5180 Revert:
5181 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
5182
5183 * config/alpha/alpha.c (TARGET_LRA_P): New define.
5184
ea679d55
JG
51852013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5186
5187 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
5188 (gimple_stmt_iterator): New typedef.
5189 * gimple.h (gimple_stmt_iterator): Rename to...
5190 (gimple_stmt_iterator_d): ... This.
5191 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
5192 trees be valid for GIMPLE and GENERIC.
5193 (TARGET_GIMPLE_FOLD_BUILTIN): New.
5194 * gimple-fold.c (gimple_fold_call): Call target hook
5195 gimple_fold_builtin.
5196 * hooks.c (hook_bool_gsiptr_false): New.
5197 * hooks.h (hook_bool_gsiptr_false): New.
5198 * target.def (fold_stmt): New.
5199 * doc/tm.texi: Regenerate.
5200
88a581da
VM
52012013-04-22 Vladimir Makarov <vmakarov@redhat.com>
5202
5203 PR target/57018
5204 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
5205 a set sp if no stack realignment.
5206
92be22dc
NC
52072013-04-22 Nick Clifton <nickc@redhat.com>
5208
5209 * config.gcc (tilegx-linux): Extend extra_objs rather than
5210 overwriting it.
5211 (tilepro-linux): Likewise.
5212
0ddec79f
JG
52132013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5214
5215 * config/aarch64/aarch64-builtins.c
5216 (CF): Remove.
5217 (CF0, CF1, CF2, CF3, CF4, CF10): New.
5218 (VAR<1-12>): Add MAP parameter.
5219 (BUILTIN_*): Likewise.
5220 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
5221 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
5222 (aarch64_ushl_n<mode>): Likewise.
5223 (aarch64_sshr_n<mode>): Likewise.
5224 (aarch64_ushr_n<mode>): Likewise.
5225 (aarch64_<maxmin><mode>): Likewise.
5226 (aarch64_sqrt<mode>): Likewise.
5227 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
5228 (vshr<q>_n_*): Likewise.
5229
0050faf8
JG
52302013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
5231
5232 * config/aarch64/aarch64-builtins.c
5233 (aarch64_simd_builtin_type_mode): Handle SF types.
5234 (sf_UP): Define.
5235 (BUILTIN_GPF): Define.
5236 (aarch64_init_simd_builtins): Handle SF types.
5237 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
5238 (frecps): Likewise.
5239 (frecpx): Likewise.
5240 * config/aarch64/aarch64-simd.md
5241 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
5242 (aarch64_frecpe<mode>): New.
5243 (aarch64_frecps<mode>): Likewise.
5244 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
5245 (v8type): Add frecp<esx>.
5246 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
5247 (aarch64_frecps<mode>): Likewise.
5248 * config/aarch64/iterators.md (FRECP): New.
5249 (frecp_suffix): Likewise.
5250 * config/aarch64/arm_neon.h
5251 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
5252
0fad3dbc 52532013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
5254
5255 PR target/56995
5256 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
5257 (REG_CLASS_NAMES): Idem.
5258 (REG_CLASS_CONTENTS): Idem.
5259 (REGCLASS_HAS_FP_REG): Idem.
5260 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
5261 (sh_conditional_register_usage): Idem.
5262
3e8a33f9
JL
52632013-04-21 Jeff Law <law@redhat.com>
5264
5265 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
5266 (ssa_forward_propagate_and_combine): Use it.
5267
f38e1b0a
VM
52682013-04-19 Vladimir Makarov <vmakarov@redhat.com>
5269
5270 * lra.c: Update the flow chart diagram.
5271
682303da
VM
52722013-04-19 Vladimir Makarov <vmakarov@redhat.com>
5273
5274 PR rtl-optimization/56847
5275 * lra-constraints.c (process_alt_operands): Discourage alternative
5276 with non-matche doffsettable memory constraint fro memory with
5277 known offset.
5278
f6b64c35
RB
52792013-04-19 Richard Biener <rguenther@suse.de>
5280
5281 PR tree-optimization/56982
5282 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
5283 function.
5284 * gimplify.c (gimplify_call_expr): Notice special calls.
5285 (gimplify_modify_expr): Likewise.
5286 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
5287 abnormal control flow receivers.
5288 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
5289 in the same way as cfun->has_nonlocal_labels.
5290 (gimple_purge_dead_abnormal_call_edges): Likewise.
5291 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
5292 receivers start a basic-block.
5293
01d8bf07
RB
52942013-04-19 Richard Biener <rguenther@suse.de>
5295
5296 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
5297 member ...
5298 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
5299 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
5300 (SLP_TREE_LOAD_PERMUTATION): Add.
5301 (vect_transform_slp_perm_load): Adjust prototype.
5302 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
5303 (vect_free_slp_instance): Likewise.
5304 (vect_create_new_slp_node): Likewise.
5305 (vect_supported_slp_permutation_p): Remove.
5306 (vect_slp_rearrange_stmts): Adjust.
5307 (vect_supported_load_permutation_p): Likewise. Inline
5308 vect_supported_slp_permutation_p here.
5309 (vect_analyze_slp_instance): Compute load permutations per
5310 slp node instead of per instance.
5311 (vect_get_slp_defs): Adjust.
5312 (vect_transform_slp_perm_load): Likewise.
5313 (vect_schedule_slp_instance): Remove redundant code.
5314 (vect_schedule_slp): Remove hack for PR56270, add it ...
5315 * tree-vect-stmts.c (vectorizable_load): ... here, do not
5316 CSE loads for SLP. Adjust.
5317
ede22fc3
GY
53182013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
5319
5320 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
5321 spelling in two comments.
5322
67bc84fb
GY
53232013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
5324
5325 PR target/56797
5326 * config/arm/arm.c (load_multiple_sequence): Require SP
5327 as base register for loads if SP is in the register list.
5328
e248d83f
MJ
53292013-04-19 Martin Jambor <mjambor@suse.cz>
5330
5331 PR tree-optimization/56718
5332 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
5333 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
5334 and made public. Adjusted all callers.
5335 (ipa_intraprocedural_devirtualization): New function.
5336 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
5337 (ipa_intraprocedural_devirtualization): Likewise.
5338 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
5339
4891e8f8
RB
53402013-04-19 Richard Biener <rguenther@suse.de>
5341
5342 PR tree-optimization/57000
5343 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
5344
dad89f7c
TG
53452013-04-19 Terry Guo <terry.guo@arm.com>
5346
5347 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
5348 Replace with ...
5349 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
5350 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
5351 (cortex_m4_fmacs): Use new reservations.
5352 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
5353
72ea0d47
VM
53542013-04-18 Vladimir Makarov <vmakarov@redhat.com>
5355
f1e6512c 5356 PR rtl-optimization/56999
72ea0d47
VM
5357 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
5358 related code.
5359 (lra_coalesce): Remove split_origin_bitmap and related code.
5360 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
5361 ranges if necessary.
5362
780a5b71
UB
53632013-04-18 Uros Bizjak <ubizjak@gmail.com>
5364
5365 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
5366 New array.
5367 (ix86_expand_call): Remove clobbered_registers array and use
5368 x86_64_ms_sysv_extra_clobbered_registers instead.
5369 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
5370 Declare here.
5371 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
5372 predicate.
5373 * config/i386/i386.md (*call_rex64_ms_sysv): Use
5374 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
5375 (*call_value_rex64_ms_sysv): Ditto.
5376
6f5a366a
CC
53772013-04-18 Cary Coutant <ccoutant@google.com>
5378
5379 * dwarf2out.c (output_pubnames): Check die_perennial_p of
5380 parent instead of die_mark.
5381
475b8f37
DN
53822013-04-18 Diego Novillo <dnovillo@google.com>
5383
5384 * gimple.c (create_gimple_tmp): New.
5385 (get_expr_type): New.
5386 (build_assign): New.
5387 (build_type_cast): New.
5388 * gimple.h (enum ssa_mode): Define.
5389 (gimple_seq_set_location): New.
5390 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 5391 to use build_assign and build_type_cast.
475b8f37 5392
08940f33
RB
53932013-04-18 Richard Biener <rguenther@suse.de>
5394
5395 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
5396 handle negative step. Remove redundant checks.
5397 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
5398 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
5399 for negative step and grouped loads fail to vectorize.
5400
0e0f87d4
SB
54012013-04-18 Steven Bosscher <steven@gcc.gnu.org>
5402
5403 * emit-rtl.c (reset_insn_used_flags): New function.
5404 (reset_all_used_flags): Use it.
5405 (verify_insn_sharing): New function.
5406 (verify_rtl_sharing): Fix verification for SEQUENCEs.
5407
4c445590
JJ
54082013-04-18 Jakub Jelinek <jakub@redhat.com>
5409
5410 PR tree-optimization/56984
5411 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
5412 and (x >> M) >= N don't register any assertion if N << M is the
5413 minimum value.
5414
6873ecab
SB
54152013-04-18 Steven Bosscher <steven@gcc.gnu.org>
5416
5417 * lower-subreg.c (resolve_simple_move): If called self-recursive,
5418 do not delete_insn insns that have not yet been emitted, only
5419 unlink them with remove_insn.
5420 * df-scan.c (df_insn_delete): Revert r197492.
5421
3ccb989e
SB
54222013-04-17 Steven Bosscher <steven@gcc.gnu.org>
5423
5424 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
5425 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
5426
54272013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
5428
5429 * config/arm/arm.md (movsicc_insn): Convert define_insn into
5430 define_insn_and_split.
5431 (and_scc,ior_scc,negscc): Likewise.
5432 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
5433
3ccb989e 54342013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
5435
5436 * config/arm/arm.c (use_return_insn): Return 0 for targets that
5437 can benefit from using a sequence of LDRD instructions in epilogue
5438 instead of a single LDM instruction.
5439
6d10a203
MLI
54402013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
5441
5442 PR 45688
5443 * doc/extend.texi: Fix typo.
5444
6983e6b5
RB
54452013-04-17 Richard Biener <rguenther@suse.de>
5446
5447 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
5448 (vect_build_slp_tree): ... here.
5449 (vect_build_slp_tree_1): Compute which stmts of the SLP group
5450 match. Remove special-casing of mismatched complex loads.
5451 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
5452 re-try the match with swapped commutative operands.
5453 (vect_supported_load_permutation_p): Remove special-casing of
5454 mismatched complex loads.
5455 (vect_analyze_slp_instance): Adjust.
5456
ef23e6a2
RB
54572013-04-17 Richard Biener <rguenther@suse.de>
5458
5459 PR rtl-optimization/56921
5460 * cfgloop.h (struct loop): Add simple_loop_desc member.
5461 (struct niter_desc): Mark with GTY(()).
5462 (simple_loop_desc): Do not use aux field but simple_loop_desc.
5463 * loop-iv.c (get_simple_loop_desc): Likewise.
5464 (free_simple_loop_desc): Likewise.
5465
5466 Revert
5467 2013-04-16 Richard Biener <rguenther@suse.de>
5468
5469 PR rtl-optimization/56921
5470 * loop-init.c (pass_rtl_move_loop_invariants): Add
5471 TODO_do_not_ggc_collect to todo_flags_finish.
5472 (pass_rtl_unswitch): Same.
5473 (pass_rtl_unroll_and_peel_loops): Same.
5474 (pass_rtl_doloop): Same.
5475
fc6f94f5
EB
54762013-04-17 Eric Botcazou <ebotcazou@adacore.com>
5477
5478 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
5479 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
5480 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
5481 references.
5482 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
5483 * tree-streamer.c (record_common_node): Adjust reference in comment.
5484
10a88311
TG
54852013-04-17 Terry Guo <terry.guo@arm.com>
5486
5487 * config/arm/cortex-m4.md: Add a new bypass.
5488
6d9b7208 54892013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
5490
5491 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
5492 New pattern.
5493 (*subs_<optab><mode>_multp2): New pattern.
5494 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5495 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
5496
6d9b7208 54972013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
5498
5499 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
5500 (*subs_mul_imm_<mode>): New pattern.
5501
18a6701e
DE
55022013-04-16 David Edelsohn <dje.gcc@gmail.com>
5503
5504 PR target/56948
5505 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
5506 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
5507 (vsx_movti_32bit): Change j->wa to O->wa.
5508
07c37b2f
RB
55092013-04-16 Richard Biener <rguenther@suse.de>
5510
5511 PR rtl-optimization/56921
5512 * loop-init.c (pass_rtl_move_loop_invariants): Add
5513 TODO_do_not_ggc_collect to todo_flags_finish.
5514 (pass_rtl_unswitch): Same.
5515 (pass_rtl_unroll_and_peel_loops): Same.
5516 (pass_rtl_doloop): Same.
5517
0e0f87d4 55182013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
5519
5520 * config/arm/arm.c (emit_multi_reg_push): New declaration
5521 for an existing function.
5522 (arm_emit_strd_push): New function.
5523 (arm_expand_prologue): Used here.
5524 (arm_emit_ldrd_pop): New function.
5525 (arm_expand_epilogue): Used here.
5526 (arm_get_frame_offsets): Update condition.
5527 (arm_emit_multi_reg_pop): Add a special case for load of a single
5528 register with writeback.
5529
5e8e2af4
UB
55302013-04-16 Uros Bizjak <ubizjak@gmail.com>
5531
5532 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
5533 description.
5534
9fd9ccf7
RB
55352013-04-16 Richard Biener <rguenther@suse.de>
5536
5537 PR tree-optimization/56756
5538 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
5539 (first_mem_ref_loc): New.
5540 (execute_sm): Place the load temporarily before a previous
5541 access instead of in the latch edge to ensure its SSA dependencies
5542 are defined at points dominating the load.
5543
96fba521
SB
55442013-04-16 Steven Bosscher <steven@gcc.gnu.org>
5545
4c8af858
SB
5546 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
5547 correct fix by moving header and footer insn to the footer of
5548 the merged basic block. Clear BB_END of the merged-away block.
5549
96fba521
SB
5550 PR middle-end/43631
5551 * emit-rtl.c (make_note_raw): New function.
5552 (link_insn_into_chain): New static inline function.
5553 (add_insn): Use it.
5554 (add_insn_before, add_insn_after): Factor insn chain linking code...
5555 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
5556 using link_insn_into_chain.
5557 (note_outside_basic_block_p): New helper function for emit_note_after
5558 and emit_note_before.
5559 (emit_note_after): Use nobb variant of add_insn_after if the note
5560 should not be contained in a basic block.
5561 (emit_note_before): Use nobb variant of add_insn_before if the note
5562 should not be contained in a basic block.
5563 (emit_note_copy): Use make_note_raw.
5564 (emit_note): Likewise.
5565 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
5566 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
5567 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
5568 the moved barrier the tail of the basic block it follows.
5569 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
5570
7b8265ba
JJ
55712013-04-15 Jakub Jelinek <jakub@redhat.com>
5572
5573 PR tree-optimization/56962
5574 * gimple-ssa-strength-reduction.c (record_increment): Only set
5575 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
5576 either rhs1 or rhs2 is equal to c->base_expr.
5577
5185d248
RB
55782013-04-15 Richard Biener <rguenther@suse.de>
5579
5580 PR tree-optimization/56933
5581 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
5582 member.
5583 (GROUP_READ_WRITE_DEPENDENCE): Remove.
5584 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
5585 * tree-vect-data-refs.c (vect_analyze_group_access): Move
5586 dependence check ...
5587 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
5588 ... here.
5589 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
5590 GROUP_READ_WRITE_DEPENDENCE.
5591
a24243a0
AK
55922013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5593
5594 * emit-rtl.c (reset_all_used_flags): New function.
5595 (verify_rtl_sharing): Call reset_all_used_flags before and after
5596 performing the checks.
5597
1c50eada
KT
55982013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5599
5600 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
5601 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
5602 * config/arm/constraints.md (De): New constraint.
5603 * config/arm/neon.md (anddi3_neon): Delete.
5604 (neon_vand<mode>): Expand to standard anddi3 pattern.
5605 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
5606 Move earlier in the file.
5607 (neon_inv_logic_op2): Likewise.
5608 (arm_anddi_operand_neon): New predicate.
5609
e927b6ad
RO
56102013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5611
5612 * configure.ac (gcc_cv_ld_as_needed): Set
5613 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
5614 Use -z ignore, -z record on *-*-solaris2*.
5615 (HAVE_LD_AS_NEEDED): Update comment.
5616 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
5617 * configure: Regenerate.
5618 * config.in: Regenerate.
5619 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
5620 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
5621 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
5622 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
5623 equivalents. Fix markup.
5624 * doc/tm.texi: Regenerate.
5625
e0ea8797
AH
56262013-04-15 Andrew Hsieh <andrewhsieh.google.com>
5627
5628 * config/i386/i386.opt: New option mstack-protector-guard=.
5629 * config/i386/i386-opts.h: Add enum stack_protector_guard.
5630 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
5631 TARGET_SSP_TLS_GUARD.
5632 * config/i386/i386.c (ix86_option_override_internal): Set
5633 ix86_stack_protector_guard.
5634 * config/i386/i386.md (stack_protect_set): Enable for
5635 TARGET_SSP_TLS_GUARD only.
5636 (stack_protect_set_<mode>): Ditto.
5637 (stack_protect_test): Ditto.
5638 (stack_protect_test_<mode>): Ditto.
5639 * doc/invoke.texi (i386 Option): Document.
5640
811b72f9
EB
56412013-04-15 Eric Botcazou <ebotcazou@adacore.com>
5642
5643 PR target/56890
5644 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
5645 (S_MODES): Set H_MODE bit.
5646 (SF_MODES): Set only S_MODE and SF_MODE bits.
5647 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
5648 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
5649 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
5650 <MODE_FLOAT>: Likewise.
5651
5529fdd6
JY
56522013-04-15 Joey Ye <joey.ye@arm.com>
5653
5654 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
5655
517b1da2
JY
56562013-04-15 Joey Ye <joey.ye@arm.com>
5657
5658 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
5659 for real far jump.
5660 (thumb_far_jump_used_p): Count instruction size and set
5661 far_jump_used.
5662
01007ae0
EB
56632013-04-14 Eric Botcazou <ebotcazou@adacore.com>
5664
5665 * reorg.c (fill_simple_delay_slots): Reindent block of code.
5666 * resource.c (mark_target_live_regs): Reformat conditional block.
5667
c46f6580
SB
56682013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5669
5670 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
5671 notes, they are emitted only just before final.
5672 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
5673
1f397f45
SB
56742013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5675
5676 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
5677 * cfgrtl.c (delete_insn): Call it here instead.
5678 * lra-spills.c (lra_final_code_change): Use delete_insn.
5679 * haifa-sched.c (sched_remove_insn): Likewise.
5680 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
5681 returning to the nop pool.
5682 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
5683 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
5684
58a51369
SB
56852013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5686
5687 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
5688 * doc/tm.texi: Regenerated.
5689
33159866
UB
56902013-04-12 Uros Bizjak <ubizjak@gmail.com>
5691
5692 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
5693 QImode checks.
5694
226e378f
SB
56952013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5696
5697 * df-core.c (df_find_def): Compare register numbers.
5698 (df_find_use): Likewise.
5699
fafb9b18
VM
57002013-04-12 Vladimir Makarov <vmakarov@redhat.com>
5701
5702 PR target/56903
5703 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
5704 lra_in_progress for return.
5705
9a946fd6
GY
57062013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5707
5708 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
5709 define_insn into define_insn_and_split and emit movsicc patterns.
5710
41b83758
GY
57112013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5712
5713 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
5714
d3afd9aa
RB
57152013-04-12 Richard Biener <rguenther@suse.de>
5716
5717 * tree-pass.h (TODO_do_not_ggc_collect): New.
5718 * passes.c (execute_one_ipa_transform_pass): Honor
5719 TODO_do_not_ggc_collect.
5720 (execute_one_pass): Likewise.
5721
5722 Revert
5723 2013-04-10 Richard Biener <rguenther@suse.de>
5724
5725 * passes.c (init_optimization_passes): Remove reload pass.
5726 * ira.c (do_reload): Merge into ...
5727 (ira): ... this.
5728 (rest_of_handle_reload): Remove.
5729 (pass_reload): Likewise.
5730 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5731 of reload for vzeroupper pass placement.
5732
06f9b387
JJ
57332013-04-12 Jakub Jelinek <jakub@redhat.com>
5734
5735 PR tree-optimization/56918
5736 PR tree-optimization/56920
5737 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
5738 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
5739 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
5740 use wide_mul_with_sign method.
5741
953094d2
RB
57422013-04-12 Richard Biener <rguenther@suse.de>
5743
5744 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
5745 not be considered a gimple constant.
5746
bb506982
MG
57472013-04-12 Marc Glisse <marc.glisse@inria.fr>
5748
5749 * fold-const.c (const_binop): Handle vector shifts by a scalar.
5750 (fold_binary_loc): Call const_binop also for mixed vector-scalar
5751 operations.
5752
4b84d650
JJ
57532013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
5754 Jakub Jelinek <jakub@redhat.com>
5755
5756 * opts.c: Include diagnostic-color.h.
5757 (common_handle_option): Handle OPT_fdiagnostics_color_.
5758 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
5759 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
5760 (diagnostic-color.o): New.
5761 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
5762 (diagnostic_color_rule): New enum.
5763 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
5764 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
5765 the location string.
5766 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
5767 either NULL, or color kind.
5768 * diagnostic-color.c: New file.
5769 * diagnostic-color.h: New file.
5770 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
5771 arguments.
5772 * doc/invoke.texi (-fdiagnostics-color): Document.
5773 * pretty-print.h (pp_show_color): Define.
5774 (struct pretty_print_info): Add show_color field.
5775 * diagnostic.c: Include diagnostic-color.h.
5776 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
5777 macros. Colorize error:, warning: etc. strings and also the location
5778 string.
5779 (diagnostic_show_locus): Colorize the caret line.
5780 * pretty-print.c: Include diagnostic-color.h.
5781 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
5782 inside of %< %> quotes or quoted through q format modifier.
5783
067a1e71
AK
57842013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5785
33159866 5786 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 5787
33159866 57882013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
5789
5790 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
5791 code in CC_NZ mode.
5792 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
5793 pattern.
5794
7b55f98f
MP
57952013-04-11 Marek Polacek <polacek@redhat.com>
5796
5797 PR tree-optimization/48184
33159866 5798 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 5799
966b587e
EB
58002013-04-11 Eric Botcazou <ebotcazou@adacore.com>
5801
5802 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
5803 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
5804 (skip_simple_arithmetic): Tidy up.
5805 * tree.h (skip_simple_constant_arithmetic): Declare.
5806
33159866 58072013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
5808
5809 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
5810
1d42c1ec
RB
58112013-04-11 Richard Biener <rguenther@suse.de>
5812
5813 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5814 generate vector constants.
5815
4ba5ea11
RB
58162013-04-11 Richard Biener <rguenther@suse.de>
5817
5818 PR tree-optimization/56878
5819 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
5820 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
5821 New function.
5822 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5823 Prefer to align the DR with the most invariant base address.
5824
f0defe58
SKS
58252013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5826
5827 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
5828 comment.
5829
d07458be
JG
58302013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
5831
5832 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
5833 floating-point vector comparisons against 0.
5834
146b8692
JJ
58352013-04-11 Jakub Jelinek <jakub@redhat.com>
5836
5837 PR tree-optimization/56899
5838 * fold-const.c (extract_muldiv_1): Apply distributive law
5839 only if TYPE_OVERFLOW_WRAPS (ctype).
5840
b8578ff7
BC
58412013-04-11 Bin Cheng <bin.cheng@arm.com>
5842
5843 PR target/56124
5844 * ira-costs.c (scan_one_insn): Check whether the source rtx of
5845 loading has side effect.
5846
0ea8a6f9
SB
58472013-04-10 Steven Bosscher <steven@gcc.gnu.org>
5848
5849 * config/sparc/sparc.c: Include tree-pass.h.
5850 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
5851 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
5852 head of file. Change return type. Split off gate function.
5853 (sparc_gate_work_around_errata): New function.
5854 (pass_work_around_errata): New pass definition.
5855 (insert_pass_work_around_errata) New pass insert definition to
5856 insert pass_work_around_errata just after delayed-branch scheduling.
5857 (sparc_option_override): Insert the pass.
5858 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
5859
42e37616
DM
58602013-04-10 David S. Miller <davem@davemloft.net>
5861
89deeb3b
DM
5862 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
5863 or -mcpu=hypersparc.
5864
42e37616
DM
5865 * target.def (cstore_mode): New hook.
5866 * target.h: Include insn-codes.h
5867 * targhooks.c: Likewise.
5868 (default_cstore_mode): New function.
5869 * targhooks.h: Declare it.
5870 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
5871 * doc/tm.texi: Rebuild.
5872 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
5873 target hook, rather than inspecting the insn_data.
5874 * config/sparc/sparc.c (sparc_cstore_mode): New function.
5875 (TARGET_CSTORE_MODE): Redefine.
5876 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
5877 result patterns.
5878 * config/sparc/predicates.md (cstore_result_operand): New special
5879 predicate.
5880 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
5881 Use it for operand 0.
5882 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5883 (*snesi_special): Likewise.
5884 (*snesi_zero): Likewise.
5885 (*seqsi_zero): Likewise.
5886 (*sltu_insn): Likewise.
5887 (*sgeu_insn): Likewise.
5888 (*seqdi_special): Make operand 0 and comparison operation be of
5889 DImode.
5890 (*snedi_special): Likewise.
5891 (*snedi_special_vis3): Likewise.
5892 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5893 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5894 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5895 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5896 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5897 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5898 (*sltu_extend_sp64): Likewise.
5899 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5900 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5901 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5902 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5903 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5904
95ca411e
YZ
59052013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5906
5907 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5908 (aarch64_start_file): Use the new function.
5909
6782438d 59102013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 5911 Jason Merrill <jason@redhat.com>
6782438d
SKS
5912
5913 * common.opt: Add -gdwarf.
5914 * opts.c (common_handle_option): Handle it.
5915 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5916
bb313b93
RB
59172013-04-10 Richard Biener <rguenther@suse.de>
5918
5919 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5920 (execute_one_ipa_transform_pass): But unconditionally here.
5921 (execute_one_pass): And here.
5922 (init_optimization_passes): Remove reload pass.
5923 * tree-pass.h (TODO_ggc_collect): Remove.
5924 (pass_reload): Likewise.
5925 * ira.c (do_reload): Merge into ...
5926 (ira): ... this.
5927 (rest_of_handle_reload): Remove.
5928 (pass_reload): Likewise.
5929 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5930 of reload for vzeroupper pass placement.
5931 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5932 and todo_flags_finish of all passes.
5933
793d9a16
RB
59342013-04-10 Richard Biener <rguenther@suse.de>
5935
5936 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5937 first_const_oprnd field, rename first_def_type to first_op_type.
5938 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5939 (vect_get_and_check_slp_defs): Always use the type of the
5940 operand. Allow mixed vect_external_def, vect_constant_def types.
5941 (vect_get_constant_vectors): Handle mixed vect_external_def,
5942 vect_constant_def types.
5943
ee8a9b7b
JR
59442013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5945
5946 PR tree-optimization/55524
5947 * tree-ssa-math-opts.c
5948 (convert_mult_to_fma): Don't use an fms construct
5949 when we don't have an fms operation, but fnma, and it looks
5950 likely that we'll be able to use the latter.
5951
6957a6f6
ZZ
59522013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5953
5954 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5955 function.
5956 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5957 inline fail caused by overwritable functions.
5958
34ab4a5b
CJW
59592013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5960
5961 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5962 unnecessary bits in the constant power of two case.
5963
abf9bfbc
RB
59642013-04-10 Richard Biener <rguenther@suse.de>
5965
5966 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5967 broken code swapping operands.
5968 (vect_build_slp_tree): Do not compute load permutations here.
5969 (vect_analyze_slp_instance): Compute load permutations here,
5970 after building the SLP tree.
5971
f408477e
CB
59722013-04-09 Christian Bruel <christian.bruel@st.com>
5973
5974 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5975 of next/prev_real_insn.
5976
5ac42672
JH
59772013-04-09 Jan Hubicka <jh@suse.cz>
5978
abf9bfbc
RB
5979 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5980 Drop aliased parameter.
5ac42672
JH
5981 (function_and_variable_visibility): Do not handle alias pairs.
5982 * cgraph.c (varpool_externally_visible_p): Update prototype.
5983 * varpool.c (varpool_add_new_variable): Update.
5984
5017f1d2
KT
59852013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5986
5987 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5988
48eecbee
SB
59892013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5990
a949cf1c
SB
5991 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5992
48eecbee
SB
5993 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5994
75ef8e3d
MP
59952013-04-09 Marek Polacek <polacek@redhat.com>
5996
5997 PR tree-optimization/48762
33159866 5998 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 5999
23847df4
RB
60002013-04-09 Richard Biener <rguenther@suse.de>
6001
6002 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6003 dealing with cost.
6004 (vect_build_slp_tree): Likewise.
6005 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6006 calculating the cost of a SLP instance.
6007 (vect_analyze_slp_instance): Use it from here, after building
6008 the SLP tree.
6009
ea3a0fde
JJ
60102013-04-09 Jakub Jelinek <jakub@redhat.com>
6011
6012 PR middle-end/56883
6013 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6014 expand_omp_for_static_chunk): Use simple_p = true in
6015 force_gimple_operand_gsi calls when assigning to addressable decls.
6016
a32dfe9d
JL
60172013-04-09 Jeff Law <law@redhat.com>
6018
6019 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6020 when the boolean was created by converting a wider object which
6021 had a boolean range.
6022
d755c7ef
RB
60232013-04-09 Richard Biener <rguenther@suse.de>
6024
6025 * tree-vectorizer.h (slp_void_p): Remove.
6026 (slp_tree): Typedef before _slp_tree declaration.
6027 (struct _slp_tree): Use a vector of slp_tree as children.
6028 (vect_get_place_in_interleaving_chain): Remove.
6029 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6030 Move ...
6031 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6032 and make static.
6033 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6034 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6035 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6036 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6037 Use slp_node instead of slp_void_p and adjust.
6038
3d741091
RB
60392013-04-09 Richard Biener <rguenther@suse.de>
6040
6041 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6042 work that is not necessary.
6043
39307ba7
JJ
60442013-04-09 Jakub Jelinek <jakub@redhat.com>
6045
6046 PR tree-optimization/56854
6047 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6048 forward into clobber stmts if it would change MEM_REF lhs into
6049 non-MEM_REF.
6050
343881fd
MK
60512013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
6052
6053 * tree.c (type_hash_lookup, type_hash_add): Make static.
6054 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6055
3922658a
RB
60562013-04-09 Richard Biener <rguenther@suse.de>
6057
6058 * tree.h (unsave_expr_now): Remove.
6059 * tree-inline.c (mark_local_for_remap_r): Remove.
6060 (unsave_expr_1): Likewise.
6061 (unsave_r): Likewise.
6062 (unsave_expr_now): Likewise.
6063 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6064 (propagate_tree_value): Likewise.
6065
9fb6b620
SB
60662013-04-08 Steven Bosscher <steven@gcc.gnu.org>
6067
6068 * doc/rtl.texi (sequence): Rewrite documentation to match the
6069 current use of SEQUENCE rtl objects.
6070 * rtl.def (SEQUENCE): Likewise.
6071
6072 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6073 Update documentation.
6074 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6075 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6076
6077 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6078
8ddb5a29
TJ
60792013-04-08 Teresa Johnson <tejohnson@google.com>
6080
6081 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6082 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 6083 methods.
8ddb5a29
TJ
6084 (estimate_edge_size_and_time): Add comment to suggest using rounding
6085 methods.
6086 (estimate_node_size_and_time): Ditto.
6087 (remap_edge_change_prob): Use helper rounding divide methods.
6088 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
6089 (gimple_mod_pow2_value_transform): Ditto.
6090 (gimple_mod_subtract_transform): Ditto.
6091 (gimple_ic_transform): Ditto.
6092 (gimple_stringops_transform): Ditto.
6093 * stmt.c (conditional_probability): Ditto.
6094 (emit_case_dispatch_table): Ditto.
6095 * lto-cgraph.c (merge_profile_summaries): Ditto.
6096 * tree-optimize.c (execute_fixup_cfg): Ditto.
6097 * cfgcleanup.c (try_forward_edges): Ditto.
6098 * cfgloopmanip.c (scale_loop_profile): Ditto.
6099 (loopify): Ditto.
6100 (duplicate_loop_to_header_edge): Ditto.
6101 (lv_adjust_loop_entry_edge): Ditto.
6102 * tree-vect-loop.c (vect_transform_loop): Ditto.
6103 * profile.c (compute_branch_probabilities): Ditto.
6104 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
6105 * lto-streamer-in.c (input_cfg): Ditto.
6106 * gimple-streamer-in.c (input_bb): Ditto.
6107 * ipa-cp.c (update_profiling_info): Ditto.
6108 (update_specialized_profile): Ditto.
6109 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
6110 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 6111 rounding methods.
8ddb5a29
TJ
6112 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6113 (compute_trg_info): Ditto.
6114 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
6115 (purge_dead_edges): Ditto.
6116 * loop-unswitch.c (unswitch_loop): Ditto.
6117 * cgraphclones.c (cgraph_clone_edge): Ditto.
6118 (cgraph_clone_node): Ditto.
6119 * tree-inline.c (copy_bb): Ditto.
6120 (copy_edges_for_bb): Ditto.
6121 (initialize_cfun): Ditto.
6122 (copy_cfg_body): Ditto.
6123 (expand_call_inline): Ditto.
6124
661e6bd7
KT
61252013-04-08 Kai Tietz <ktietz@redhat.com>
6126
6127 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
6128 TARGET_CYGWIN64 by TARGET_64BIT.
6129
105766f3
JR
61302013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
6131
6132 * config/epiphany/epiphany.md (GPR_1): New constant.
6133 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
6134 * config/epiphany/epiphany.c (gen_compare_reg):
6135 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
6136 is already in place.
6137 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
6138 Don't require being called during rtl expansion; If y operlaps r0,
6139 return 0.
6140 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
6141 (epiphany_expand_epilogue): Likewise.
6142
8afab237
JR
6143 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
6144 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 6145 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 6146
fa7707d6
JR
6147 * config/epiphany/constraints.md (CnL): New constraint.
6148 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
6149 * config/epiphany/predicates.md (add_operand): Allow 1024.
6150
5138e18d
JR
6151 * config/epiphany/epiphany.md (logical_op): New code iterator.
6152 (op_mnc): New code attribute.
6153 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
6154 (mov_f+1, mov_f+2): New peephole2 patterns.
6155
2ccc703d
JR
6156 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
6157 (cstoresi4): Also allow re-use of zero result when doing a NE
6158 comparison to a non-zero operand.
aefb0819 6159 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 6160
093ac0a5
JR
6161 * config/epiphany/epiphany.md (<insn_opname>v2si3):
6162 Use gen_addsi3_i / gen_subsi3_i.
6163
f223bb13
JJ
61642013-04-08 Jakub Jelinek <jakub@redhat.com>
6165
6166 PR c++/34949
6167 PR c++/50243
6168 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
6169 contain anything but clobbers, at most one __builtin_stack_restore,
6170 optionally debug stmts and final resx, and if it has at least one
6171 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
6172 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
6173 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
6174 which isn't defaut definition, remove them.
6175 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
6176 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
6177 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
6178 with MEM_REF LHS with SSA_NAME address.
6179
4481581f
JL
61802013-04-08 Jeff Law <law@redhat.com>
6181
6182 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 6183
451dabda
RB
61842013-04-08 Richard Biener <rguenther@suse.de>
6185
6186 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
6187 extra newline.
6188 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
6189 determined vector type.
6190 (vect_analyze_data_refs): Likewise.
6191 (vect_get_new_vect_var): Adjust.
6192 (vect_create_destination_var): Preserve SSA name versions.
6193 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
6194 not dump anything here.
6195
3b088b47
JR
61962013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
6197
6198 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
6199 Add member lr_slot_known.
6200 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
6201 if necessary.
6202 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
6203 Remove code that sets lr_slot_offset according to what a previous
6204 version of epiphany_emit_save_restore used to do.
6205 (epiphany_emit_save_restore): When doing an lr save or restore,
6206 set/verify lr_slot_known and lr_slot_offset.
6207
d8484d41
XQ
62082013-04-08 Xinyu Qi <xyqi@marvell.com>
6209
33159866
UB
6210 PR target/54338
6211 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
6212 in ALL_REGS.
6213
481be1c4
RB
62142013-04-08 Richard Biener <rguenther@suse.de>
6215
6216 * alias.c (find_base_term): Fix thinko in previous change.
6217
401f3a81
JJ
62182013-04-08 Jakub Jelinek <jakub@redhat.com>
6219
6220 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
6221 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
6222 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
6223 if possible to compute val.
6224 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
6225 For QImode integers don't require anything about precision. Use
6226 const_with_all_bytes_same to find out if the constant doesn't have
6227 repeated bytes in it.
6228
03ed99a8
AK
62292013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6230
6231 * config/s390/s390.c (s390_expand_insv): Only accept insertions
6232 within mode size.
6233
781b2e62
MP
62342013-04-08 Marek Polacek <polacek@redhat.com>
6235
6236 PR rtl-optimization/48182
6237 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
6238 value to 1.
6239
27e430a2
JDA
62402013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6241
6242 PR target/55487
6243 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
6244 nuses, make sure we have a label.
6245
4902aa64
BS
62462013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6247
6248 PR target/56843
6249 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
6250 (rs6000_emit_swdiv_low_precision): Remove.
6251 (rs6000_emit_swdiv): Rewrite to handle between one and four
6252 iterations of Newton-Raphson generally; modify required number of
6253 iterations for some cases.
6254 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
6255
7bca81dc
SB
62562013-04-05 Steven Bosscher <steven@gcc.gnu.org>
6257
6258 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
6259 set-but-unused variable.
6260
6261 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
6262 basic blocks of released function bodies garbage-collectable.
6263
6264 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
6265 (struct rtl_opt_pass): Add TODO_df_finish.
6266
6267 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
6268
4542a38a
GY
62692013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6270
6271 * config/arm/constraints.md (q): New constraint.
6272 * config/arm/ldrdstrd.md: New file.
6273 * config/arm/arm.md (ldrdstrd.md) New include.
6274 (arm_movdi): Use "q" instead of "r" constraint
6275 for double-word memory access.
6276 (movdf_soft_insn): Likewise.
6277 * config/arm/vfp.md (movdi_vfp): Likewise.
6278 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 6279 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
6280 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
6281 (mem_ok_for_ldrd_strd): Likewise.
6282 (output_move_double): Update assertion.
6283
2385b218
GY
62842013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6285
6286 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
6287
75fe1cb5
GY
62882013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6289
6290 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
6291 define_insn_and_split.
6292 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
6293
dd660e8e
GY
62942013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6295
6296 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
6297 define_insn_and_split.
33159866 6298 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
6299 (shiftsi3_compare): New pattern.
6300 (rrx): New pattern.
6301 * config/arm/unspecs.md (UNSPEC_RRX): New.
6302
045e472c
GY
63032013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6304
6305 * config/arm/arm.md (negdi_extendsidi): New pattern.
6306 (negdi_zero_extendsidi): Likewise.
6307
3f3bf1a8
GY
63082013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6309
6310 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
6311 define_insn_and_split.
6312 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
6313 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
6314
b0b49556
GY
63152013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6316
6317 * config/arm/arm.md (arm_subdi3): Convert define_insn into
6318 define_insn_and_split.
6319 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
6320 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
6321
d633dd84
GY
63222013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6323
6324 * config/arm/arm.md (subsi3_carryin): New pattern.
6325 (subsi3_carryin_const): Likewise.
6326 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
6327 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
6328
f4499066
GY
63292013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6330
6331 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
6332
ceef6fd9
GY
63332013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
6334
6335 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 6336 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 6337
ddbdd8a7
KT
63382013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6339
6340 * config/arm/arm.c (arm_expand_builtin): Change fcode
6341 type to unsigned int.
6342
8456d78a
RR
63432013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6344
6345 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
6346
526c230f
ILT
63472013-04-04 Ian Lance Taylor <iant@google.com>
6348
33159866
UB
6349 * doc/standards.texi (Standards): The Go frontend supports the Go 1
6350 language standard.
526c230f 6351
3cfbe04d
SB
63522013-04-04 Steven Bosscher <steven@gcc.gnu.org>
6353
6354 PR middle-end/56729
6355 * df-scan.c (df_insn_delete): Disable failing assert.
6356
dfa3f8d0
KT
63572013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6358
6359 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
6360 New function prototype.
6361 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
6362 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
6363 (arm_builtin_vectorized_function): New function.
6364
f7837758
KT
63652013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6366
6367 * config/arm/arm_neon_builtins.def: New file.
6368 * config/arm/arm.c (neon_builtin_data): Move contents to
6369 arm_neon_builtins.def.
6370 (enum arm_builtins): Include neon builtin definitions.
6371 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 6372 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 6373
39c1b6db
MP
63742013-04-04 Marek Polacek <polacek@redhat.com>
6375
6376 PR tree-optimization/48186
6377 * predict.c (maybe_hot_frequency_p): Return false if
6378 HOT_BB_FREQUENCY_FRACTION is 0.
6379 (cgraph_maybe_hot_edge_p): Likewise.
6380
314f64eb
RB
63812013-04-04 Richard Biener <rguenther@suse.de>
6382
6383 PR tree-optimization/56826
6384 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
6385 more accurately.
6386
51a905b2
RB
63872013-04-04 Richard Biener <rguenther@suse.de>
6388
6389 PR tree-optimization/56213
6390 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 6391 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 6392
f1bf4f3a
RB
63932013-04-04 Richard Biener <rguenther@suse.de>
6394
6395 PR tree-optimization/56837
6396 * tree-loop-distribution.c (classify_partition): For non-zero
6397 values require that the value has the same precision as its
6398 mode to be useful as memset value.
6399
0bca7ded
NC
64002013-04-03 Nick Clifton <nickc@redhat.com>
6401
33159866 6402 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
6403 (fmssf4): Use fmsf.s on E3V5 architectures.
6404 (fnmasf4): Use fnmaf.s on E3V5 architectures.
6405 (fnmssf4): Use fnmsf.s on E3V5 architectures.
6406
b4019227
JL
64072013-04-03 Jeff Law <law@redhat.com>
6408
6409 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
6410 (lra-eliminations.o): Likewise.
6411
f57ddb5b
TJ
64122013-04-03 Teresa Johnson <tejohnson@google.com>
6413
6414 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 6415 compute_working_sets here from profile.c.
f57ddb5b 6416 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
6417 (gcov_working_set_t): Moved typedef here from basic-block.h
6418 (compute_working_set): Declare.
f57ddb5b
TJ
6419 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
6420 (get_working_sets): Renamed from compute_working_set,
33159866 6421 replace most of body with call to new compute_working_sets.
f57ddb5b 6422 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
6423 to get_working_sets.
6424 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 6425 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 6426 to get_working_sets.
f57ddb5b
TJ
6427 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
6428 * gcov-dump.c (dump_working_sets): New function.
6429
5e0919f1
KZ
64302013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
6431
6432 * hwint.c (sext_hwi, zext_hwi): New functions.
6433 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
6434 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
6435 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
6436 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
6437 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
6438 (sext_hwi, zext_hwi): New functions.
0bca7ded 6439
be672e08
JL
64402013-04-03 Jeff Law <law@redhat.com>
6441
6442 PR tree-optimization/56799
33159866
UB
6443 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
6444 back test for widening conversion erroneously dropped in prior change.
be672e08 6445
9d821fa5
KT
64462013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6447
6448 PR target/56809
6449 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
6450 instead of next_real_insn.
6451
71c581e7
MP
64522013-04-03 Marek Polacek <polacek@redhat.com>
6453
6454 PR sanitizer/55702
33159866 6455 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 6456
4a32ef80
KT
64572013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6458
6459 PR target/56809
6460 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
6461 next_real_insn.
6462 (thumb1_output_casesi): Likewise.
6463 (thumb2_output_casesi): Likewise.
6464
1b2253d4
RB
64652013-04-03 Richard Biener <rguenther@suse.de>
6466
6467 PR tree-optimization/56817
6468 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
6469 Split out ...
6470 (tree_unroll_loops_completely_1): ... new function to manually
6471 walk the loop tree, properly defering outer loops of unrolled
6472 loops to later iterations.
6473
38000232
MG
64742013-04-03 Marc Glisse <marc.glisse@inria.fr>
6475
6476 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
6477 (vectorizable_load): Likewise.
6478 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
6479 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
6480
3fa35298
MG
64812013-04-03 Marc Glisse <marc.glisse@inria.fr>
6482
6483 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
6484 BIT_FIELD_REF.
6485
b3d45ff0
UW
64862013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6487
6488 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
6489
ec9202a8
BC
64902013-04-03 Bin Cheng <bin.cheng@arm.com>
6491
6492 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
6493
6805bd36
MG
64942013-04-03 Marc Glisse <marc.glisse@inria.fr>
6495
6496 PR tree-optimization/56790
33159866
UB
6497 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
6498 folding.
6805bd36 6499
da694a77
MG
65002013-04-03 Marc Glisse <marc.glisse@inria.fr>
6501
6502 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
6503 Handle VEC_MERGE.
6504 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
6505 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
6506 equal arguments.
6507
4e7d7b3d
JJ
65082013-04-03 Jakub Jelinek <jakub@redhat.com>
6509
6510 PR c/19449
6511 * tree.h (force_folding_builtin_constant_p): New decl.
6512 * builtins.c (force_folding_builtin_constant_p): New variable.
6513 (fold_builtin_constant_p): Fold immediately also if
6514 force_folding_builtin_constant_p.
6515
e6c9d234
RB
65162013-04-03 Richard Biener <rguenther@suse.de>
6517
6518 PR tree-optimization/56812
6519 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
6520 DRs of the same interleaving chain are independent.
6521
984d07dd
JM
65222013-04-02 Jason Merrill <jason@redhat.com>
6523
6524 * gdbinit.in (pbb): Use debug fn.
6525
622849c9
LC
65262013-04-02 Lawrence Crowl <crowl@google.com>
6527
6528 * sese.h (struct ivtype_map_elt_s): Remove unused.
6529 (extern debug_ivtype_map): Remove unused.
6530 (extern eq_ivtype_map_elts): Remove unused.
6531 * sese.c (debug_ivtype_map): Removed unused.
6532 (debug_ivtype_map_1): Removed unused.
6533 (debug_ivtype_elt): Remove unused.
6534 (eq_ivtype_map_elts): Remove unused.
6535
6536
82c0e1a0
KT
65372013-04-02 Kai Tietz <ktietz@redhat.com>
6538
6539 PR target/52790
6540 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
6541 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
6542 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
6543 function.
82c0e1a0
KT
6544 (legitimize_pe_coff_symbol): Likewise.
6545 (is_imported_p): New helper-function.
6546 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
6547 for Windows x64 targets.
6548 (ix86_expand_prologue): Optimize for pe-coff targets.
6549 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
6550 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
6551 medium/large code-model.
6552 (legitimize_pic_address): Likewise.
6553 (legitimize_tls_address): Likewise.
6554 (ix86_expand_call): Likewise.
6555 (x86_output_mi_thunk): Likewise.
6556 (get_dllimport_decl): Add new beimport argument.
6557 (construct_plt_address): Don't assert for x64 pe-coff targets.
6558 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
6559 targets.
6560 (SYMBOL_FLAG_STUBVAR): New macro.
6561 (SYMBOL_REF_STUBVAR_P): Likewise.
6562 * config/i386/winnt.c (stub_list): New structure.
6563 (stub_head): New local variable.
6564 (i386_pe_record_stub): New function.
6565 (i386_pe_file_end): Emit refptr-stubs.
6566
5d751b0c
JJ
65672013-04-02 Jakub Jelinek <jakub@redhat.com>
6568
09bb4c99
JJ
6569 PR rtl-optimization/56745
6570 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
6571 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
6572
a1d8947a
JJ
6573 PR c++/34949
6574 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
6575 and both of them are MEM_REFs, just compare first argument for
6576 equality and attempt to deal even with differing offsets.
6577
5d751b0c
JJ
6578 PR c++/34949
6579 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
6580 of gimple_clobber_p to be MEM_REF.
6581 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
6582 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
6583 after gimplification.
6584 * asan.c (get_mem_ref_of_assignment): Don't instrument
6585 gimple_clobber_p stmts.
6586 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
6587 gimple_clobber_p stmt if they have MEM_REF lhs and
6588 are dead because of another gimple_clobber_p stmt.
6589 * tree-ssa-live.c (clear_unused_block_pointer): Treat
6590 gimple_clobber_p stmts like debug stmts.
6591 (remove_unused_locals): Remove clobbers with MEM_REF lhs
6592 that refer to unused VAR_DECLs or uninitialized values.
6593 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
6594 gimple_clobber_p stmts if they refer to removed parameters.
6595 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
6596 formatting.
6597
e594716a
UB
65982013-04-02 Uros Bizjak <ubizjak@gmail.com>
6599
6600 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
6601 using SWI48 mode attribute.
6602
7a80735b
WM
66032013-04-02 Wei Mi <wmi@google.com>
6604
6605 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
6606 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
6607 *<rotate_insn><mode>3_mask in i386.md.
6608
f423a9e4
AI
66092013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
6610
6611 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
6612
90eb75f2
RB
66132013-04-02 Richard Biener <rguenther@suse.de>
6614
6615 PR tree-optimization/56778
6616 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6617 Runtime alias tests are not supported for gather loads.
6618 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
6619 stmts referenced from SSA operands before updating SSA form.
6620
d8c69a92
IC
66212013-04-02 Ian Caulfield <ian.caulfield@arm.com>
6622 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6623
6624 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
6625 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
6626 * config/arm/cortex-a53.md: New file.
6627 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
6628 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
6629 * config/arm/arm.c (arm_issue_rate): Likewise.
6630 * config/arm/arm-tune.md: Regenerate
6631 * config/arm/arm-tables.opt: Regenerate.
6632 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 6633
239eb04c
ZC
66342013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
6635
6636 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
6637 non-static link.
6638
c902d3c8
SN
66392013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6640
d8c69a92
IC
6641 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
6642 scalar load/store operations using B/H registers.
c902d3c8
SN
6643 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
6644
051d0e2f
SN
66452013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6646
6647 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
6648 scalar move.
6649 * config/aarch64/aarch64.c
6650 (aarch64_simd_scalar_immediate_valid_for_move): New.
6651 * config/aarch64/aarch64-protos.h
6652 (aarch64_simd_scalar_immediate_valid_for_move): New.
6653 * config/aarch64/constraints.md (Dh, Dq): New.
6654 * config/aarch64/iterators.md (hq): New.
6655
0ee1e3d9
EB
66562013-04-02 Eric Botcazou <ebotcazou@adacore.com>
6657
6658 * reorg.c (get_branch_condition): Deal with conditional returns.
6659 (fill_simple_delay_slots): Remove dead code dealing with jumps.
6660
136fb3f7
WM
66612013-04-01 Wei Mi <wmi@google.com>
6662
6663 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
6664 Truncate operand 2 using %b asm operand modifier.
6665 (*<shift_insn><mode>3_mask): Ditto.
6666 (*<rotate_insn><mode>3_mask): Ditto.
6667
6388c738
SB
66682013-04-01 Steven Bosscher <steven@gcc.gnu.org>
6669
6670 PR middle-end/56798
6671 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
6672
f7a4d826
KK
66732013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
6674
6675 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
6676 of next_real_insn.
6677 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
6678
4b943a49
LC
66792013-03-30 Lawrence Crowl <crowl@google.com>
6680
6681 * dse.c (clear_alias_sets): Remove never set.
6682 (disqualified_clear_alias_sets): Remove never set.
6683 (clear_alias_mode_pool): Remove never set.
6684 (dse_step0): Remove condition that is never true.
6685 (canon_address): Remove condition that is never true.
6686 (dse_step7): Remove condition that is never true.
6687 (rest_of_handle_dse): Remove condition that is never true.
6688 (rest_of_handle_dse::did_global): Remove never read from above.
6689 (dse_step2_spill): Remove never called from above.
6690 (dse_step5_spill): Remove never called from above.
6691
39718607
SB
66922013-03-30 Steven Bosscher <steven@gcc.gnu.org>
6693
da5c6bde
SB
6694 * doc/md.texi (Standard Names) <casesi>: Update documentation for
6695 JUMP_TABLE_DATA changes.
6696 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
6697 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
6698 (Insns) <jump_table_data>: New entry.
6699 * doc/tm.texi: Regenerate.
6700
39718607
SB
6701 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
6702
6703 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
6704 for table jump at the end of a basic block using tablejump_p.
6705 * targhooks.c (default_invalid_within_doloop): Likewise.
6706 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
6707 target hook implementation that is identical to the default hook.
6708 (rs6000_invalid_within_doloop): Remove.
6709
6710 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
6711 unused variable from tablejump_p call.
6712
6713 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
6714 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
6715 (INSN_DELETED_P): Likewise.
6716 (emit_jump_table_data): New prototype.
6717 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
6718 after 4th as unused.
6719 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
6720 * sched-vis.c (print_insn): Likewise.
6721 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
6722 insn for compatibility with back ends that use next_active_insn to
6723 identify jump table data.
6724 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
6725 (remove_insn): Likewise.
6726 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
6727 to be emitted.
6728 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
6729 (emit_jump_table_data): New function.
6730
6731 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
6732 basic block, a JUMP_TABLE_DATA never is.
6733 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
6734 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
6735 off from code handling real insns.
6736 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
6737 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
6738 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
6739 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
6740 is not a NONDEBUG_INSN_P.
6741 * ira-costs.c (scan_one_insn): Likewise.
6742 * jump.c (mark_all_labels): Likewise.
6743 (mark_jump_label_1): Likewise.
6744 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6745 * lra.c (get_insn_freq): Expect all insns reaching here to be in
6746 a basic block.
6747 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
6748 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
6749 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
6750 JUMP_TABLE_DATA_P insns.
6751 (calculate_elim_costs_all_insns): Likewise.
6752 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
6753 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
6754 (delete_output_reload): Code style fixups.
6755 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
6756 insn flags on this non-insn.
6757 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
6758 as scheduling barriers, for pre-change compatibility.
6759 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
6760 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
6761
6762 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
6763 redundant JUMP_TABLE_DATA_P test.
6764 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
6765 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6766 (frv_for_each_packet): Likewise.
6767 * config/i386/i386.c (min_insn_size): Likewise.
6768 (ix86_avoid_jump_mispredicts): Likewise.
6769 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6770 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
6771 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6772 (mips16_insn_length): Robustify.
6773 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
6774 (mips16_split_long_branches): Likewise.
6775 * config/pa/pa.c (pa_combine_instructions): Likewise.
6776 * config/rs6000/rs6000.c (get_next_active_insn): Treat
6777 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
6778 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
6779 as contributing to pool range lengths.
6780 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
6781 Remove redundant JUMP_TABLE_DATA_P test.
6782 (sh_loop_align): Likewise.
6783 (split_branches): Likewise.
6784 (sh_insn_length_adjustment): Likewise.
6785 * config/spu/spu.c (get_branch_target): Likewise.
6786
0208f7da
JH
67872013-03-29 Jan Hubicka <jh@suse.cz>
6788
6789 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
6790 gcov streaming; stream hot bb threshold to ltrans.
6791 * predict.c (get_hot_bb_threshold): Break out from ....
6792 (maybe_hot_count_p): ... here.
6793 (set_hot_bb_threshold): New function.
6794 * lto-section-in.c (lto_section_name): Add profile.
6795 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
6796 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
6797 and data-streamer.h
6798 (histogram_entry): New structure.
6799 (histogram, histogram_pool): New global vars.
6800 (histogram_hash): New structure.
6801 (histogram_hash::hash): New method.
6802 (histogram_hash::equal): Likewise.
6803 (account_time_size): New function.
6804 (cmp_counts): New function.
6805 (dump_histogram): New function.
6806 (ipa_profile_generate_summary): New function.
6807 (ipa_profile_write_summary): New function.
6808 (ipa_profile_read_summary): New function.
6809 (ipa_profile): Decide on threshold.
e594716a
UB
6810 (pass_ipa_profile): Add ipa_profile_write_summary and
6811 ipa_profile_read_summary.
0208f7da
JH
6812 * Makefile.in (ipa.o): Update dependencies.
6813 * lto-streamer.h (LTO_section_ipa_profile): New section.
6814
5a6ccc94
GDR
68152013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
6816
6817 * tree.h (VAR_P): New.
6818
39385fa6
PC
68192013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
6820
6821 PR lto/56777
6822 * doc/invoke.texi ([-fwhole-program]): Fix typo.
6823
34f0d87a
SB
68242013-03-29 Steven Bosscher <steven@gcc.gnu.org>
6825
6826 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
6827 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6828 (control_flow_insn_p): Likewise.
6829 * cfgrtl.c (duplicate_insn_chain): Likewise.
6830 * final.c (get_attr_length_1): Likewise.
6831 (shorten_branches): Likewise.
6832 (final_scan_insn): Likewise.
6833 * function.c (instantiate_virtual_regs): Likewise.
6834 * gcse.c (insert_insn_end_basic_block): Likewise.
6835 * ira-costs.c (scan_one_insn): Likewise.
6836 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6837 * lra.c (check_rtl): Likewise.
6838 * reload1.c (elimination_costs_in_insn): Likewise.
6839 * reorg.c (follow_jumps): Likewise.
6840
6841 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
6842 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6843 (thumb_far_jump_used_p): Likewise.
6844 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
6845 (workaround_speculation): Likewise.
6846 (add_sched_insns_for_speculation): Likewise.
6847 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
6848 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6849 (frv_for_each_packet): Likewise.
6850 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
6851 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
6852 (final_emit_insn_group_barriers): Likewise.
6853 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6854 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6855 (mips16_insn_length): Likewise.
6856 * config/pa/pa.c (pa_reorg): Likewise.
6857 (pa_combine_instructions): Likewise.
6858 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
6859 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
6860 (sh_reorg): Likewise.
6861 (split_branches): Likewise.
6862 * config/spu/spu.c (get_branch_target): Likewise.
6863
6864 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
6865 JUMP_TABLE_DATA_P.
6866
4ac761b0
KY
68672013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
6868
39385fa6 6869 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
6870 Fix declaration name.
6871
58a49189
LC
68722013-03-28 Lawrence Crowl <crowl@google.com>
6873
6874 * graphds.h (struct graph.indicies): Remove unused.
6875 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
6876 (SCOP_ORIGINAL_PDDRS): Remove unused.
6877 * sese.h (extern insert_loop_close_phis): Removed unused.
6878 (extern insert_guard_phis): Removed unused.
6879 (extern ivtype_map_elt_info): Removed unused.
6880 (new_ivtype_map_elt): Removed unused.
6881 * sese.c (ivtype_map_elt_info): Removed unused.
6882
7b3b6ae4
LC
68832013-03-28 Lawrence Crowl <crowl@google.com>
6884
6885 * Makefile.in: Add several missing include dependences.
6886 (DUMPFILE_H): New.
6887 (test-dump.o): New. This object is not added to any executable,
6888 but is present for ad-hoc testing.
6889 * bitmap.c
6890 (debug (const bitmap_head_def &)): New.
6891 (debug (const bitmap_head_def *)): New.
6892 * bitmap.h
6893 (extern debug (const bitmap_head_def &)): New.
6894 (extern debug (const bitmap_head_def *)): New.
6895 * cfg.c
6896 (debug (edge_def &)): New.
6897 (debug (edge_def *)): New.
6898 * cfghooks.c
6899 (debug (basic_block_def &)): New.
6900 (debug (basic_block_def *)): New.
6901 * dumpfile.h
6902 (dump_node (const_tree, int, FILE *)): Correct source file.
6903 * dwarf2out.c
6904 (debug (die_struct &)): New.
6905 (debug (die_struct *)): New.
6906 * dwarf2out.h
6907 (extern debug (die_struct &)): New.
6908 (extern debug (die_struct *)): New.
6909 * gimple-pretty-print.c
6910 (debug (gimple_statement_d &)): New.
6911 (debug (gimple_statement_d *)): New.
6912 * gimple-pretty-print.h
6913 (extern debug (gimple_statement_d &)): New.
6914 (extern debug (gimple_statement_d *)): New.
6915 * ira-build.c
6916 (debug (ira_allocno_copy &)): New.
6917 (debug (ira_allocno_copy *)): New.
6918 (debug (ira_allocno &)): New.
6919 (debug (ira_allocno *)): New.
6920 * ira-int.h
6921 (extern debug (ira_allocno_copy &)): New.
6922 (extern debug (ira_allocno_copy *)): New.
6923 (extern debug (ira_allocno &)): New.
6924 (extern debug (ira_allocno *)): New.
6925 * ira-lives.c
6926 (debug (live_range &)): New.
6927 (debug (live_range *)): New.
6928 * lra-int.h
6929 (debug (lra_live_range &)): New.
6930 (debug (lra_live_range *)): New.
6931 * lra-lives.c
6932 (debug (lra_live_range &)): New.
6933 (debug (lra_live_range *)): New.
6934 * omega.c
6935 (debug (omega_pb_d &)): New.
6936 (debug (omega_pb_d *)): New.
6937 * omega.h
6938 (extern debug (omega_pb_d &)): New.
6939 (extern debug (omega_pb_d *)): New.
6940 * print-rtl.c
6941 (debug (const rtx_def &)): New.
6942 (debug (const rtx_def *)): New.
6943 * print-tree.c
6944 (debug_tree (tree): Move within file.
6945 (debug_raw (const tree_node &)): New.
6946 (debug_raw (const tree_node *)): New.
6947 (dump_tree_via_hooks (const tree_node *, int)): New.
6948 (debug (const tree_node &)): New.
6949 (debug (const tree_node *)): New.
6950 (debug_verbose (const tree_node &)): New.
6951 (debug_verbose (const tree_node *)): New.
6952 (debug_head (const tree_node &)): New.
6953 (debug_head (const tree_node *)): New.
6954 (debug_body (const tree_node &)): New.
6955 (debug_body (const tree_node *)): New.
6956 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6957 (debug (vec<tree, va_gc> &)): New.
6958 (debug (vec<tree, va_gc> *)): New.
6959 * rtl.h
6960 (extern debug (const rtx_def &)): New.
6961 (extern debug (const rtx_def *)): New.
6962 * sbitmap.c
6963 (debug_raw (simple_bitmap_def &)): New.
6964 (debug_raw (simple_bitmap_def *)): New.
6965 (debug (simple_bitmap_def &)): New.
6966 (debug (simple_bitmap_def *)): New.
6967 * sbitmap.h
6968 (extern debug (simple_bitmap_def &)): New.
6969 (extern debug (simple_bitmap_def *)): New.
6970 (extern debug_raw (simple_bitmap_def &)): New.
6971 (extern debug_raw (simple_bitmap_def *)): New.
6972 * sel-sched-dump.c
6973 (debug (vinsn_def &)): New.
6974 (debug (vinsn_def *)): New.
6975 (debug_verbose (vinsn_def &)): New.
6976 (debug_verbose (vinsn_def *)): New.
6977 (debug (expr_def &)): New.
6978 (debug (expr_def *)): New.
6979 (debug_verbose (expr_def &)): New.
6980 (debug_verbose (expr_def *)): New.
6981 (debug (vec<rtx> &)): New.
6982 (debug (vec<rtx> *)): New.
6983 * sel-sched-dump.h
6984 (extern debug (vinsn_def &)): New.
6985 (extern debug (vinsn_def *)): New.
6986 (extern debug_verbose (vinsn_def &)): New.
6987 (extern debug_verbose (vinsn_def *)): New.
6988 (extern debug (expr_def &)): New.
6989 (extern debug (expr_def *)): New.
6990 (extern debug_verbose (expr_def &)): New.
6991 (extern debug_verbose (expr_def *)): New.
6992 (extern debug (vec<rtx> &)): New.
6993 (extern debug (vec<rtx> *)): New.
6994 * sel-sched-ir.h
6995 (_list_iter_cond_expr): Make inline instead of static.
6996 * sreal.c
6997 (debug (sreal &)): New.
6998 (debug (sreal *)): New.
6999 * sreal.h
7000 (extern debug (sreal &)): New.
7001 (extern debug (sreal *)): New.
7002 * tree.h
7003 (extern debug_raw (const tree_node &)): New.
7004 (extern debug_raw (const tree_node *)): New.
7005 (extern debug (const tree_node &)): New.
7006 (extern debug (const tree_node *)): New.
7007 (extern debug_verbose (const tree_node &)): New.
7008 (extern debug_verbose (const tree_node *)): New.
7009 (extern debug_head (const tree_node &)): New.
7010 (extern debug_head (const tree_node *)): New.
7011 (extern debug_body (const tree_node &)): New.
7012 (extern debug_body (const tree_node *)): New.
7013 (extern debug (vec<tree, va_gc> &)): New.
7014 (extern debug (vec<tree, va_gc> *)): New.
7015 * tree-cfg.c
7016 (debug (struct loop &)): New.
7017 (debug (struct loop *)): New.
7018 (debug_verbose (struct loop &)): New.
7019 (debug_verbose (struct loop *)): New.
7020 * tree-dump.c: Add header dependence.
7021 * tree-flow.h
7022 (extern debug (struct loop &)): New.
7023 (extern debug (struct loop *)): New.
7024 (extern debug_verbose (struct loop &)): New.
7025 (extern debug_verbose (struct loop *)): New.
7026 * tree-data-ref.c
7027 (debug (data_reference &)): New.
7028 (debug (data_reference *)): New.
7029 (debug (vec<data_reference_p> &)): New.
7030 (debug (vec<data_reference_p> *)): New.
7031 (debug (vec<ddr_p> &)): New.
7032 (debug (vec<ddr_p> *)): New.
7033 * tree-data-ref.h
7034 (extern debug (data_reference &)): New.
7035 (extern debug (data_reference *)): New.
7036 (extern debug (vec<data_reference_p> &)): New.
7037 (extern debug (vec<data_reference_p> *)): New.
7038 (extern debug (vec<ddr_p> &)): New.
7039 (extern debug (vec<ddr_p> *)): New.
7040 * tree-ssa-alias.c
7041 (debug (pt_solution &)): New.
7042 (debug (pt_solution *)): New.
7043 * tree-ssa-alias.h
7044 (extern debug (pt_solution &)): New.
7045 (extern debug (pt_solution *)): New.
7046 * tree-ssa-alias.c
7047 (debug (_var_map &)): New.
7048 (debug (_var_map *)): New.
7049 (debug (tree_live_info_d &)): New.
7050 (debug (tree_live_info_d *)): New.
7051 * tree-ssa-alias.h
7052 (extern debug (_var_map &)): New.
7053 (extern debug (_var_map *)): New.
7054 (extern debug (tree_live_info_d &)): New.
7055 (extern debug (tree_live_info_d *)): New.
7056
be77e1e5
JH
70572013-03-28 Jan Hubicka <jh@suse.cz>
7058
7059 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7060
777e6976
IB
70612013-03-28 Ian Bolton <ian.bolton@arm.com>
7062
7063 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7064 record only when desired or required.
7065
9cd347ae
UB
70662013-03-28 Uros Bizjak <ubizjak@gmail.com>
7067
7068 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7069 *vec_extractv2di_1_rex64. Use x64 isa attribute.
7070
33159866 70712013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
7072
7073 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7074 (*andsi3_compare0_uxtw): New pattern.
7075 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7076 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7077
89ab31c1
JH
70782013-03-28 Jan Hubicka <jh@suse.cz>
7079
7080 * data-streamer-in.c (streamer_read_gcov_count): New function.
7081 * gimple-streamer-out.c: Include value-prof.h.
7082 (output_gimple_stmt): Output histogram.
7083 (output_bb): Use streamer_write_gcov_count.
7084 * value-prof.c: Include data-streamer.h
7085 (dump_histogram_value): Add HIST_TYPE_MAX.
7086 (stream_out_histogram_value): New function.
7087 (stream_in_histogram_value): New function.
7088 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
7089 (stream_out_histogram_value, stream_in_histogram_value): Declare.
7090 * data-streamer-out.c (streamer_write_gcov_count): New function.
7091 (streamer_write_gcov_count_stream): New function.
7092 * lto-cgraph.c (lto_output_edge): Update counter streaming.
7093 (lto_output_node): Likewise.
7094 (input_node, input_edge): Likewise.
7095 * lto-streamer-out.c (output_cfg): Update streaming.
7096 * lto-streamer-in.c (input_cfg): Likewise.
7097 * data-streamer.h (streamer_write_gcov_count,
7098 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
7099 * gimple-streamer-in.c: Include value-prof.h
7100 (input_gimple_stmt): Input histograms.
7101 (input_bb): Update profile streaming.
7102
e594716a 71032013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 7104
33159866 7105 * genmodes.c (emit_max_int): New function.
8697be17 7106 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
7107 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
7108 Added doc.
8697be17 7109 * machmode.def: Fixed comment.
89ab31c1 7110
e594716a 71112013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
7112
7113 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
7114 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
7115
74946978
MP
71162013-03-28 Marek Polacek <polacek@redhat.com>
7117 Richard Biener <rguenther@suse.de>
7118
7119 PR tree-optimization/56695
7120 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
7121 build signed result of a vector comparison.
7122 * tree-cfg.c (verify_gimple_comparison): Check that a result
7123 of a vector comparison has signed type.
7124
a64b9c26
RB
71252013-03-28 Richard Biener <rguenther@suse.de>
7126
7127 PR tree-optimization/37021
7128 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
7129 do not restrict gaps between groups.
7130 * tree-vect-stmts.c (vectorizable_load): Properly account for
7131 a gap between groups.
7132
a9dc2a2f
EB
71332013-03-28 Eric Botcazou <ebotcazou@adacore.com>
7134
7135 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
7136 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
7137 is not enabled.
7138
53cb97f9
GP
71392013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
7140
7141 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
7142 * doc/extend.texi (Named Address Spaces): Ditto.
7143 (Variable Attributes): Ditto.
7144
b802ae5c
KT
71452013-03-27 Kai Tietz <ktietz@redhat.com>
7146
eddae10a
KT
7147 * config.build: Add support for cygwin x64 target.
7148 * config.gcc: Likewise.
7149 * config.host: Likewise.
7150 * configure.ac: Likewise
7151 * configure: Regenerated.
b802ae5c 7152
8269de54
KT
71532013-03-27 Kai Tietz <ktietz@redhat.com>
7154
7155 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
7156 * config/i386/t-cygwin-w64: New file.
7157 * config/i386/cygwin-w64.h: New file.
7158 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
7159 and add support for x64-cygwin target.
7160 (CPP_SPEC): Likewise.
7161 (CXX_WRAP_SPEC_LIST): Undefine before define.
7162 (LIBGCJ_SONAME): Use 15 as version.
7163
f49b33cb
RB
71642013-03-27 Richard Biener <rguenther@suse.de>
7165
7166 PR tree-optimization/56716
7167 * tree-ssa-structalias.c (perform_var_substitution): Adjust
7168 dumping for ref nodes.
7169
b37a6ce5
MJ
71702013-03-27 Martin Jambor <mjambor@suse.cz>
7171
7172 PR tree-optimization/55334
7173 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
7174 restricted pointers to arrays.
7175
9469b9b2
GDR
71762013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
7177
7178 * Makefile.in (.SUFFIXES): Add .cc.
7179 (.c.o): Apply same recipe for implicit rule .cc.o.
7180
7d24f650
RB
71812013-03-27 Richard Biener <rguenther@suse.de>
7182
7183 PR tree-optimization/37021
7184 * tree-vect-data-refs.c (vect_check_strided_load): Allow
7185 REALPART/IMAGPART_EXPRs around the supported refs.
7186 * tree-ssa-structalias.c (find_func_aliases): Assume that
7187 floating-point values are not used to transfer pointers.
7188
2f251a05
AI
71892013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
7190
39385fa6
PC
7191 * target.def (TARGET_HAS_IFUNC_P): New target hook.
7192 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
7193 * doc/tm.texi: Regenerate.
7194 * targhooks.h (default_has_ifunc_p): New.
7195 * targhooks.c (default_has_ifunc_p): Ditto.
7196 * config/linux-protos.h: New file.
7197 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
7198 this hook for linux which disables support of indirect functions in
7199 android.
39385fa6
PC
7200 * config/linux-android.c: New file.
7201 * config/t-linux-android.c: Ditto.
7202 * config.gcc: Added new object file linux-android.o.
7203 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 7204 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 7205 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
7206 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
7207 doesn't support indirect functions.
7208 * configure: Regenerate.
7209
78b4e425
BC
72102013-03-27 Bin Cheng <bin.cheng@arm.com>
7211
7212 PR target/56102
7213 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
7214 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
7215 mult-word mode.
7216
a5ba7b92
AK
72172013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7218
7219 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
7220
be624986
TG
72212013-03-27 Terry Guo <terry.guo@arm.com>
7222
7223 * config/arm/arm-cores.def: Added core cortex-r7.
7224 * config/arm/arm-tune.md: Regenerated.
7225 * config/arm/arm-tables.opt: Regenerated.
7226 * doc/invoke.texi: Added entry for core cortex-r7.
7227
0a514f47
WL
72282013-03-27 Walter Lee <walt@tilera.com>
7229
7230 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
7231 double-decrement of next_scratch_regno.
7232
9332b0d2
WL
72332013-03-27 Walter Lee <walt@tilera.com>
7234
801d9b2a 7235 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
7236 input operands.
7237 (insn_v1mulus): Ditto.
7238 (insn_v2muls): Ditto.
7239
f54ea5dd
WL
72402013-03-27 Walter Lee <walt@tilera.com>
7241
e594716a 7242 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
7243 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
7244
bf60f4ca
WL
72452013-03-27 Walter Lee <walt@tilera.com>
7246
e594716a 7247 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
7248 (*sibcall_value): Ditto.
7249
e3b51eeb
WL
72502013-03-27 Walter Lee <walt@tilera.com>
7251
7252 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
7253 (insn_mnz_v8qi): ... this ...
7254 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
7255 vector equivalent.
7256 (insn_v<n>mnz): Replaced by ...
7257 (insn_v1mnz): ... this ...
7258 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
7259 equivalent.
7260 (insn_mz_<mode>): Replaced by ...
7261 (insn_mz_v8qi): ... this ...
7262 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
7263 vector equivalent.
7264 (insn_v<n>mz): Replaced by ...
7265 (insn_v1mz): ... this ...
7266 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
7267 equivalent.
7268
4fc7b145
EB
72692013-03-26 Eric Botcazou <ebotcazou@adacore.com>
7270
7271 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
7272
6f33817e
RM
72732013-03-26 Roland McGrath <mcgrathr@google.com>
7274
7275 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
7276 than fprintf with a non-constant, non-format string.
7277
93a4145b
UB
72782013-03-26 Uros Bizjak <ubizjak@gmail.com>
7279
7280 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
7281 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
7282 operand 0 predicate.
7283 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
7284 attribute. Use general_x64nomem_operand as operand 1 predicate.
7285 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
7286 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
7287 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
7288 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
7289 (mov<mode>_insv_1): Remove expander. Merge insn with
7290 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
7291 Use general_x64nomem_operand as operand 1 predicate.
7292 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
7293 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
7294 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
7295 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
7296 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
7297 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
7298 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
7299 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
7300 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
7301 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
7302 (general_x64nomem_operand): Ditto.
7303
c6a9ed5a 73042013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
7305
7306 * config/rtems.opt: Add -pthread option.
7307
31b0a960
RB
73082013-03-26 Richard Biener <rguenther@suse.de>
7309
93a4145b
UB
7310 * alias.c (find_base_term): Avoid redundant and not used recursion.
7311 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
7312 (true_dependence_1): Compute and pass base terms to base_alias_check.
7313 (write_dependence_p): Likewise.
7314 (may_alias_p): Likewise.
7315
79517551
SN
73162013-03-26 Sofiane Naci <sofiane.naci@arm.com>
7317
7318 * config/aarch64/aarch64.c (aarch64_classify_address): Support
7319 PC-relative load in SI modes and above only.
7320
a76213b9
XQ
73212013-03-26 Xinyu Qi <xyqi@marvell.com>
7322
7323 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
7324 * config/arm/iwmmxt.md (WCGR0): Update.
7325 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 7326
37ff9355
UB
73272013-03-26 Uros Bizjak <ubizjak@gmail.com>
7328
7329 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
7330 Use x64 and nox64 isa attributes.
7331
30b0317c
RB
73322013-03-26 Richard Biener <rguenther@suse.de>
7333
7334 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
7335 alignment computations and rely on get_object_alignment_1
7336 for the !TYPE_P case.
7337 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
7338
cbcdb140
WL
73392013-03-26 Walter Lee <walt@tilera.com>
7340
7341 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
7342 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
7343
dd884525 73442013-03-25 Jeff Law <law@redhat.com>
be672e08 7345
33159866
UB
7346 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
7347 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
7348 wrong version of prior patch.
7349
0051d3ec
WL
73502013-03-25 Walter Lee <walt@tilera.com>
7351
7352 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
7353 TILEGX_INSN_SHUFFLEBYTES1.
7354 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
7355 shufflebytes1.
7356 (tilegx_builtins): Ditto.
7357 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
7358
065a3605
WL
73592013-03-25 Walter Lee <walt@tilera.com>
7360
7361 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
7362 (floatunssisf2): New pattern.
7363 (floatsidf2): New pattern.
7364 (floatunssidf2): New pattern.
065a3605 7365
5b2a3c82
WL
73662013-03-25 Walter Lee <walt@tilera.com>
7367
7368 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
7369 tests for constraint J, K, N, P.
7370
192ea533
WL
73712013-03-25 Walter Lee <walt@tilera.com>
7372
7373 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
7374 Use indirect/pcrel encoding.
7375 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
7376 Ditto.
7377
855e0d0b
SE
73782013-03-25 Steve Ellcey <sellcey@mips.com>
7379
7380 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
7381 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
7382 * config/mips/mips.c (mips_option_override): Set IMADD default.
7383 * config/mips/mips.h (PTF_AVOID_IMADD): New.
7384 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
7385 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
7386 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
7387 * doc/invoke.texi (-mimadd/-mno-imadd): New.
7388
39e45653
JL
73892013-03-25 Jeff Law <law@redhat.com>
7390
7391 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
7392 slightly to avoid creating and folding useless trees. Simplify
7393 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
7394
7482c470
UB
73952013-03-25 Uros Bizjak <ubizjak@gmail.com>
7396
7397 * config/i386/i386.md (*zero_extendsidi2): Merge with
7398 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
7399 * config/i386/predicates.md (x86_64_zext_operand): Rename from
7400 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
7401 targets. Clarify comment.
7402
4a53743e
MJ
74032013-03-25 Martin Jambor <mjambor@suse.cz>
7404
7405 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
7406 pass-through jump functions differently.
7407 (ipa_read_jump_function): Likewise. Also use setter functions to set
7408 up jump functions.
7409
162712de
MJ
74102013-03-25 Martin Jambor <mjambor@suse.cz>
7411
7412 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
7413 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
7414 process it.
7415 (ipa_get_indirect_edge_target): New function.
7416 (devirtualization_time_bonus): New parameter known_aggs, pass it to
7417 ipa_get_indirect_edge_target. Update all callers.
7418 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
7419 ipa_get_indirect_edge_target_1 instead of calling
7420 ipa_get_indirect_edge_target.
7421 (create_specialized_node): Pass aggvlas to
7422 ipcp_discover_new_direct_edges.
7423
a5a4c20a
KT
74242013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7425
7426 * config/arm/arm.md (f_sels, f_seld): New types.
7427 (*cmov<mode>): New pattern.
7428 * config/arm/predicates.md (arm_vsel_comparison_operator): New
7429 predicate.
7430
f992b9fc
KT
74312013-03-25 Kai Tietz <ktietz@redhat.com>
7432
7433 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
7434 POSIX-printf for mingw-hosted builds.
7435
c16fd676
RB
74362013-03-25 Richard Biener <rguenther@suse.de>
7437
7438 PR middle-end/56694
7439 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
7440 must-not-throw stmt location.
7441
5ad29f12
KT
74422013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7443
7444 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
7445 Emit load-acquire versions when acq is true.
7446 (arm_emit_store_exclusive): Add rel parameter.
7447 Emit store-release versions when rel is true.
7448 (arm_split_compare_and_swap): Use acquire-release instructions
7449 instead.
7450 of barriers when appropriate.
7451 (arm_split_atomic_op): Likewise.
7452 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
7453 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
7454 (VUNSPEC_SLX): Likewise.
7455 (VUNSPEC_LDA): Likewise.
7456 (VUNSPEC_STL): Likewise.
7457 * config/arm/sync.md (atomic_load<mode>): New pattern.
7458 (atomic_store<mode>): Likewise.
7459 (arm_load_acquire_exclusive<mode>): Likewise.
7460 (arm_load_acquire_exclusivesi): Likewise.
7461 (arm_load_acquire_exclusivedi): Likewise.
7462 (arm_store_release_exclusive<mode>): Likewise.
7463
03a7dddb
CM
74642013-03-25 Catherine Moore <clm@codesourcery.com>
7465
7466 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
7467 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
7468 * config/mip/predicates.md (lwsp_swsp_operand,
7469 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
7470 sb16_operand, db4_operand, db7_operand, ib3_operand,
7471 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
7472 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
7473 andi16_operand): New predicates.
7474 * config/mips/mips.md (compression): New attribute.
7475 (enabled): New attribute.
7476 (length): Consider compression in computing length.
7477 (shift_compression): New code attribute.
7478 (*add<mode>3): New operands. Record compression.
7479 (sub<mode>3): Likewise.
7480 (one_cmpl<mode>2): Likewise.
7481 (*and<mode>3): Likewise.
7482 (*ior<mode>3): Likewise.
7483 (unnamed pattern for xor): Likewise.
7484 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
7485 (*<optab><mode>3): Likewise.
7486 (*mov<mode>_internal: Likewise.
7487 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
7488 (mips_unsigned_immediate_p): New.
7489 (umips_lwsp_swsp_address_p): New.
7490 (m16_based_address_p): New.
7491 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
7492 (mips_unsigned_immediate_p): New prototype.
7493 (lwsp_swsp_address_p): New prototype.
7494 (m16_based_address_p): New prototype.
7495 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
7496 (mips_signed_immediate_p): New function.
7497 (m16_based_address_p): New function.
7498 (lwsp_swsp_address_p): New function.
7499 (mips_print_operand_punctuation): Recognize short delay slot insns
7500 for microMIPS.add<mode>3"
7501
f35c297f 75022013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 7503
f35c297f
KT
7504 PR target/56720
7505 * config/arm/iterators.md (v_cmp_result): New mode attribute.
7506 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
7507
051b9446
RB
75082013-03-25 Richard Biener <rguenther@suse.de>
7509
7510 PR tree-optimization/56689
7511 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
7512 any edge.
7513
374001cb
RB
75142013-03-25 Richard Biener <rguenther@suse.de>
7515
7516 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
7517 of bitmap.
7518 (memory_references): Likewise.
7519 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
7520 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
7521 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
7522 (gather_mem_refs_in_loops): Fold into ...
7523 (analyze_memory_references): ... this. Move initialization
7524 to tree_ssa_lim_initialize.
7525 (fill_always_executed_in): Rename to ...
7526 (fill_always_executed_in_1): ... this.
7527 (fill_always_executed_in): Move contains_call computation to
7528 this new function from ...
7529 (tree_ssa_lim_initialize): ... here.
7530 (tree_ssa_lim): Call fill_always_executed_in.
7531
57895947
EB
75322013-03-25 Eric Botcazou <ebotcazou@adacore.com>
7533
7534 * postreload.c (reload_combine): Fix code detecting returns.
7535
1e1b18c1
EB
75362013-03-25 Eric Botcazou <ebotcazou@adacore.com>
7537
7538 * function.c (emit_use_return_register_into_block): On cc0 targets,
7539 do not emit the sequence between cc0 setter and user.
7540
9216baf1
KT
75412013-03-25 Kai Tietz <ktietz@redhat.com>
7542
1e1b18c1
EB
7543 * config/i386/predicates.md (local_symbolic_operand): Interpret
7544 dll-imported symbols as none-local.
9216baf1 7545
76421b44
RB
75462013-03-25 Richard Biener <rguenther@suse.de>
7547
7548 * tree-ssa-loop-im.c (struct depend): Remove.
7549 (struct lim_aux_data): Make depends a vec of gimples.
7550 (free_lim_aux_data): Adjust.
7551 (add_dependency): Likewise.
7552 (set_level): Likewise.
7553
d154bfa2
RB
75542013-03-25 Richard Biener <rguenther@suse.de>
7555
7556 PR middle-end/56434
7557 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
7558 the pointer returned by calls with ECF_MALLOC set.
7559
2cd9804e
UB
75602013-03-24 Uros Bizjak <ubizjak@gmail.com>
7561
acef5fe0
UB
7562 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
7563
75642013-03-24 Uros Bizjak <ubizjak@gmail.com>
7565
7566 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
7567 using MMXMODE mode iterator.
7568 (*move<mode>_internal): Merge with *movv2sf_internal and
7569 *movv2sf_internal_rex64 using MMXMODE mode iterator.
7570
225ccc68
SB
75712013-03-23 Steven Bosscher <steven@gcc.gnu.org>
7572
85c0f02d
SB
7573 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
7574 (record_last_mem_set_info): Likewise.
7575
225ccc68
SB
7576 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
7577 of XNEWVEC followed by memset.
7578 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
7579
b64925dc
SB
75802013-03-23 Steven Bosscher <steven@gcc.gnu.org>
7581
7582 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7583 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
7584 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
7585 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
7586 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
7587 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
7588 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
7589 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
7590 BARRIER_P instead of GET_CODE.
7591
b9aaf52e
EB
75922013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7593
7594 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
7595 inaccuracy in the probing code.
7596
7597 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
7598 (ctrapdi4): Likewise.
7599
66de4d7c
EB
76002013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7601
7602 * calls.c (expand_call): Add missing guard to code handling return
7603 of non-BLKmode structures in MSB.
7604 * function.c (expand_function_end): Likewise.
7605
4f25c8fb
EB
76062013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7607
7608 * combine.c (try_combine): Adjust comment. Do not add the set of
7609 insn #0 if the destination indirectly is set or dies in insn #2.
7610 Tidy up code to distribute a new note.
7611
23b7850d
UB
76122013-03-22 Uros Bizjak <ubizjak@gmail.com>
7613
7614 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
7615 also for alternatives 16 and 17.
7616
bed852cf
UB
76172013-03-22 Uros Bizjak <ubizjak@gmail.com>
7618
7619 * config/i386/sse.md (*mov<mode>_internal): Merge with
7620 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
7621 Emit insn template depending on type attribute. Use
7622 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7623 movd instead of movq mnemonic for interunit moves. Rewrite mode
7624 attribute calculation. Remove unit attribute calculation.
7625 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
7626 Set prefix_data16 attribute for DImode ssemov types.
7627 Use Ym instead of y for SSE-MMX conversion alternatives.
7628 Reorder operand constraints.
7629
1e8a7937
SB
76302013-03-22 Steven Bosscher <steven@gcc.gnu.org>
7631
7632 * df.h (df_insn_delete): Adjust prototype.
7633 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
7634 and let it decide whether mark the basic block dirty.
7635 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
7636 * df-scan.c (df_insn_info_delete): New helper function, split
7637 off from df_insn_delete.
7638 (df_scan_free_bb_info): Use it.
7639 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
7640 Likewise.
7641 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
7642 that the insn is actually an insn and it has a non-NULL basic block.
7643 Do not mark basic block dirty if only deleting a DEBUG_INSN.
7644
e14d094c
RB
76452013-03-22 Richard Biener <rguenther@suse.de>
7646
7647 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
7648 dep_ref members.
7649 (mem_ref_alloc): Do not allocate them.
7650 (refs_independent_p): Do not query or maintain a cache.
7651
e9cf7316
RB
76522013-03-22 Richard Biener <rguenther@suse.de>
7653
7654 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
7655 (gather_mem_refs_in_loops): Do not compute it.
7656 (analyze_memory_references): Do not allocate it.
7657 (tree_ssa_lim_finalize): Do not free it.
7658 (for_all_locs_in_loop): Do not query all_refs_in_loop.
7659
f046e81b
RB
76602013-03-22 Richard Biener <rguenther@suse.de>
7661
7662 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 7663
a05c0ddf
IB
76642013-03-22 Ian Bolton <ian.bolton@arm.com>
7665
7666 * config/aarch64/aarch64.c (aarch64_print_operand): New
7667 format specifier for printing a constant in hex.
7668 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
7669 format specifier for printing second operand.
7670
c00217fc
RB
76712013-03-22 Richard Biener <rguenther@suse.de>
7672
7673 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
7674 bitmaps.
7675 (gather_mem_refs_in_loops): Perform store accumulation here.
7676 (create_vop_ref_mapping_loop): Remove.
7677 (create_vop_ref_mapping): Likewise.
7678 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 7679 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
7680 (record_indep_loop): Remove.
7681 (record_dep_loop): New function.
7682 (ref_indep_loop_p_1): Adjust to only walk over references
7683 in the loop, not its subloops.
7684 (ref_indep_loop_p): Rename to ...
7685 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
7686 maintaining a more fine-grained cache.
7687 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
7688 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
7689
15d19bf8
RB
76902013-03-22 Richard Biener <rguenther@suse.de>
7691
7692 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
7693 (struct mem_ref): Make accesses_in_loop a vec of a vec of
7694 aggregate mem_ref_loc.
7695 (free_mem_ref_locs): Inline into ...
7696 (memref_free): ... this and adjust.
7697 (mem_ref_alloc): Adjust.
7698 (mem_ref_locs_alloc): Remove.
7699 (record_mem_ref_loc): Adjust.
7700 (get_all_locs_in_loop): Rewrite into ...
7701 (for_all_locs_in_loop): ... this iterator.
7702 (rewrite_mem_ref_loc): New functor.
7703 (rewrite_mem_refs): Use for_all_locs_in_loop.
7704 (sm_set_flag_if_changed): New functor.
7705 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
7706 (ref_always_accessed): New functor.
7707 (ref_always_accessed_p): Use for_all_locs_in_loop.
7708
6f37411d
MG
77092013-03-21 Marc Glisse <marc.glisse@inria.fr>
7710
7711 * tree-pass.h (PROP_gimple_lvec): New.
7712 * passes.c (dump_properties): Handle PROP_gimple_lvec.
7713 (init_optimization_passes): Move pass_lower_vector.
7714 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
7715 PROP_gimple_lvec.
7716 (pass_lower_vector): Provide PROP_gimple_lvec.
7717 (pass_lower_vector_ssa): Likewise.
7718 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
7719
511ef689
MW
77202013-03-21 Mark Wielaard <mjw@redhat.com>
7721
7722 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
7723
cc1df30b
UB
77242013-03-21 Uros Bizjak <ubizjak@gmail.com>
7725
7726 * config/i386/i386.md (*movdi_internal): Disparage slightly
7727 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
7728 conversion alternatives.
7729
c845cfe1
JJ
77302013-03-21 Jakub Jelinek <jakub@redhat.com>
7731
37e99116
JJ
7732 PR middle-end/48087
7733 * diagnostic.def (DK_WERROR): New kind.
7734 * diagnostic.h (werrorcount): Define.
7735 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
7736 promoted to DK_ERROR, increment DK_WERROR counter instead of
7737 DK_ERROR counter.
7738 * toplev.c (toplev_main): Call print_ignored_options even if
7739 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
7740 even if just werrorcount is non-zero.
7741
c845cfe1
JJ
7742 PR debug/55608
7743 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
7744 on failure.
7745 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
7746 (string_cst_pool_decl): New function.
7747 (optimize_one_addr_into_implicit_ptr): New function.
7748 (resolve_addr_in_expr): Optimize DWARF location expression
7749 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
7750 which doesn't live in memory, but has DW_AT_location or
7751 DW_AT_const_value, or refers to a string literal, into
7752 DW_OP_GNU_implicit_pointer.
7753 (optimize_location_into_implicit_ptr): New function.
7754 (resolve_addr): If removing DW_AT_location of a variable because
7755 it was DW_OP_addr of address of the variable, but the variable doesn't
7756 live in memory, try to emit const value attribute for the initializer.
7757
08e0cda6
MG
77582013-03-21 Marc Glisse <marc.glisse@inria.fr>
7759
7760 * tree.h (VECTOR_TYPE_P): New macro.
7761 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
7762 TYPE_MODE): Use it.
7763 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
7764 VEC_COND_EXPR cannot be lvalues.
7765 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
7766
d08633b4
MG
77672013-03-21 Marc Glisse <marc.glisse@inria.fr>
7768
7769 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
7770 Restrict the transformation to equal modes.
7771
e6647190
RB
77722013-03-21 Richard Biener <rguenther@suse.de>
7773
7774 PR tree-optimization/39326
7775 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
7776 (MEM_ANALYZABLE): Adjust.
7777 (record_mem_ref_loc): Move bitmap ops ...
7778 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
7779 unanalyzable refs, do not record locations for it.
7780 (analyze_memory_references): Allocate ref zero as shared
7781 unanalyzable ref.
7782 (refs_independent_p): Do not test for unanalyzed mems here.
7783 (ref_indep_loop_p_1): Special-case disambiguation against
7784 the unanalyzed ref.
cc1df30b 7785 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 7786
65074f54
CL
77872013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
7788
7789 * config/arm/arm-protos.h (tune_params): Add
7790 prefer_neon_for_64bits field.
7791 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
7792 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
7793 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7794 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7795 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
7796 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7797 (arm_option_override): Handle -mneon-for-64bits new option.
7798 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
7799 (prefer_neon_for_64bits): Declare new variable.
7800 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 7801 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
7802 (arch_enabled): Handle new arch types. Remove support for onlya8
7803 and nota8.
7804 (one_cmpldi2): Use new arch names.
bc5faa5b 7805 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
7806 * config/arm/arm.opt (mneon-for-64bits): Add option.
7807 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
7808 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
7809 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
7810 of onlya8.
7811 * doc/invoke.texi (-mneon-for-64bits): Document.
7812
5a2d2a79
RB
78132013-03-21 Richard Biener <rguenther@suse.de>
7814
7815 PR tree-optimization/39326
7816 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
7817 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 7818 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 7819
5abe1e05
RB
78202013-03-21 Richard Biener <rguenther@suse.de>
7821
7822 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
7823 (vect_insert_into_interleaving_chain): Likewise.
7824 (vect_drs_dependent_in_basic_block): Inline ...
7825 (vect_slp_analyze_data_ref_dependence): ... here. New function,
7826 split out from ...
7827 (vect_analyze_data_ref_dependence): ... here. Simplify.
7828 (vect_check_interleaving): Simplify.
7829 (vect_analyze_data_ref_dependences): Likewise. Split out ...
7830 (vect_slp_analyze_data_ref_dependences): ... this new function.
7831 (dr_group_sort_cmp): New function.
7832 (vect_analyze_data_ref_accesses): Compute data-reference groups
7833 here instead of in vect_analyze_data_ref_dependence. Use
7834 a more efficient algorithm.
7835 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
7836 vect_slp_analyze_data_ref_dependences. Call
7837 vect_analyze_data_ref_accesses earlier.
7838 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7839 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
7840 (vect_slp_analyze_data_ref_dependences): New prototype.
7841
cad1735b
RB
78422013-03-21 Richard Biener <rguenther@suse.de>
7843
7844 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
7845 ref is stored in the loop.
7846 (find_refs_for_sm): Walk only over all stores.
7847 (store_motion_loop): Allocate from lim_bitmap_obstack.
7848 (store_motion): Likewise.
7849
141310ef
RB
78502013-03-21 Richard Biener <rguenther@suse.de>
7851
7852 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
7853 Update virtual SSA form.
7854
5022315a
RO
78552013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7856
7857 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
7858 * configure: Regenerate.
7859 * config.in: Regenerate.
7860 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
7861 if !HAVE_LD_EH_FRAME_CIEV3.
7862
50d4421c
RB
78632013-03-21 Richard Biener <rguenther@suse.de>
7864
7865 * tree-cfg.c (verify_expr_no_block): New function.
7866 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
7867 nor DECL_VALUE_EXPR have locations with associated blocks.
7868 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
7869 (clear_unused_block_pointer): Remove code dealing with
7870 blocks in DECL_DEBUG_EXPR locations.
7871
839b422f
RB
78722013-03-21 Richard Biener <rguenther@suse.de>
7873
7874 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
7875 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
7876 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
7877 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
7878 instead of DECL_DEBUG_EXPR_IS_FROM.
7879 * gimplify.c (gimplify_modify_expr): Likewise.
7880 * tree-cfg.c (verify_expr_location_1): Likewise.
7881 * tree-complex.c (create_one_component_var): Likewise.
7882 * tree-sra.c (create_access_replacement): Likewise.
7883 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7884 (clear_unused_block_pointer): Likewise.
7885 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7886 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7887 * var-tracking.c (var_debug_decl): Likewise.
7888 (track_expr_p): Likewise.
7889 * tree-inline.c (add_local_variables): Likewise. Set
7890 DECL_HAS_DEBUG_EXPR_P after copying it.
7891 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7892 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
7893
fe04878d
UB
78942013-03-21 Uros Bizjak <ubizjak@gmail.com>
7895
7896 PR bootstrap/56656
7897 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7898 * configure: Regenerate.
7899 * config.in: Regenerate.
7900 * config/i386/i386.md (*movdf_internal): Use
7901 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7902 movd instead of movq mnemonic for interunit moves.
7903 (*movdi_internal): Ditto.
7904
bd059b26 79052013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
7906
7907 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7908 (abd<mode>_3): New pattern.
7909 (aba<mode>_3): New pattern.
7910 (fabd<mode>_3): New pattern.
7911
bd059b26 79122013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
7913
7914 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7915 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7916 occurrence of REGISTER_PREFIX as its empty string.
7917
4f1f78b9
JL
79182013-03-20 Jeff Law <law@redhat.com>
7919
7920 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7921 addititional equivalences for equality comparisons between an SSA_NAME
7922 and a constant where the SSA_NAME was set from a widening conversion.
7923
327a1118
WL
79242013-03-20 Walter Lee <walt@tilera.com>
7925
7926 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7927
813e0036
UB
79282013-03-20 Uros Bizjak <ubizjak@gmail.com>
7929
7930 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7931 depending on type attribute.
7932 (*movti_internal): Ditto.
7933 (*movtf_internal): Ditto.
7934 (*movxf_internal): Ditto.
7935 (*movdf_internal): Ditto.
7936 (*movsf_internal): Ditto.
7937
7cf34aae
UB
79382013-03-20 Uros Bizjak <ubizjak@gmail.com>
7939
7940 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7941 maybe_vex for sselog1 and ssemov types.
7942 (*movdi_internal): Reorder operand constraints.
7943 (*movsi_internal): Ditto. Set prefix attribute to
7944 maybe_vex for sselog1 and ssemov types.
7945 (*movtf_internal): Set prefix attribute to maybe_vex
7946 for sselog1 and ssemov types.
7947 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7948 DImode ssemov types. Reorder operand constraints.
7949 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7950 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7951 attribute for SImode ssemov types. Reorder operand constraints.
7952
19321415
MJ
79532013-03-20 Martin Jambor <mjambor@suse.cz>
7954
7955 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7956 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7957
c6d5ff83
MM
79582013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7959
7960 * config/rs6000/predicates.md (indexed_address, update_address_mem
7961 update_indexed_address_mem): New predicates.
7962 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7963 attribute for load/store instructions.
7964 * config/rs6000/dfp.md (movsd_store): Likewise.
7965 (movsd_load): Likewise.
7966 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7967 (unnamed HI->DI extend define_insn): Likewise.
7968 (unnamed SI->DI extend define_insn): Likewise.
7969 (unnamed QI->SI extend define_insn): Likewise.
7970 (unnamed QI->HI extend define_insn): Likewise.
7971 (unnamed HI->SI extend define_insn): Likewise.
7972 (unnamed HI->SI extend define_insn): Likewise.
7973 (extendsfdf2_fpr): Likewise.
7974 (movsi_internal1): Likewise.
7975 (movsi_internal1_single): Likewise.
7976 (movhi_internal): Likewise.
7977 (movqi_internal): Likewise.
7978 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7979 attribute for load/store instructions.
7980 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7981 instructions.
7982 (mov<mode>_softfloat): Likewise.
7983 (mov<mode>_hardfloat32): Likewise.
7984 (mov<mode>_hardfloat64): Likewise.
7985 (mov<mode>_softfloat64): Likewise.
7986 (movdi_internal32): Likewise.
7987 (movdi_internal64): Likewise.
7988 (probe_stack_<mode>): Likewise.
7989
79902013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7991
7992 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7993 floating point, and decimal floating point to reload iterator.
7994
7995 * config/rs6000/constraints.md (wl constraint): New constraints to
7996 return FLOAT_REGS if certain options are used to reduce the number
7997 of separate patterns that exist in the file.
7998 (wx constraint): Likewise.
7999 (wz constraint): Likewise.
8000
8001 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8002 -mdebug=reg, print wg, wl, wx, and wz constraints.
8003 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8004 Initialize the reload functions for 64-bit binary/decimal floating
8005 point types.
8006 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8007 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8008 create the buffer on the stack to overcome not having a 32-bit
8009 load and store.
8010 (rs6000_emit_move): Likewise.
8011 (rs6000_secondary_memory_needed_rtx): Likewise.
8012 (rs6000_alloc_sdmode_stack_slot): Likewise.
8013 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8014 via xxlxor, just like DFmode 0.0.
8015
8016 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8017 define as 1 if we are running on a power7 or newer.
8018 (enum r6000_reg_class_enum): Add new constraints.
8019
8020 * config/rs6000/dfp.md (movsd): Delete, combine with binary
8021 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
8022 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 8023 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
8024 (movsd splitter): Likewise.
8025 (movsd_hardfloat): Likewise.
8026 (movsd_softfloat): Likewise.
8027
8028 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8029 binary and decimal floating point moves.
8030 (fmove_ok): New attributes to combine binary and decimal floating
8031 point moves, and to combine power6x (mfpgpr) moves along normal
8032 floating moves.
8033 (real_value_to_target): Likewise.
8034 (f32_lr): Likewise.
8035 (f32_lm): Likewise.
8036 (f32_li): Likewise.
8037 (f32_sr): Likewise.
8038 (f32_sm): Likewise.
8039 (f32_si): Likewise.
8040 (movsf): Combine binary and decimal floating point moves. Combine
8041 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 8042 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
8043 (mov<mode> for SFmode/SDmode); Likewise.
8044 (SFmode/SDmode splitters): Likewise.
8045 (movsf_hardfloat): Likewise.
8046 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8047 (movsf_softfloat): Likewise.
8048 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8049
8050 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8051 wx and wz constraints.
8052
8053 * config/rs6000/constraints.md (wg constraint): New constraint to
8054 return FLOAT_REGS if -mmfpgpr (power6x) was used.
8055
8056 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8057 constraint.
8058
8059 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8060 -mdebug=reg, print wg, wl, wx, and wz constraints.
8061 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8062 Initialize the reload functions for 64-bit binary/decimal floating
8063 point types.
8064 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8065 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8066 create the buffer on the stack to overcome not having a 32-bit
8067 load and store.
8068 (rs6000_emit_move): Likewise.
8069 (rs6000_secondary_memory_needed_rtx): Likewise.
8070 (rs6000_alloc_sdmode_stack_slot): Likewise.
8071 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8072 via xxlxor, just like DFmode 0.0.
8073
c6d5ff83
MM
8074 * config/rs6000/dfp.md (movdd): Delete, combine with binary
8075 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
8076 with other moves by using conditional constraits (wg). Use LFIWZX
8077 and STFIWX for loading SDmode on power7.
8078 (movdd splitters): Likewise.
8079 (movdd_hardfloat32): Likewise.
8080 (movdd_softfloat32): Likewise.
8081 (movdd_hardfloat64_mfpgpr): Likewise.
8082 (movdd_hardfloat64): Likewise.
8083 (movdd_softfloat64): Likewise.
8084
8085 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8086 64-bit binary and decimal floating point moves.
8087 (FMOVE64X): Likewise.
8088 (movdf): Combine 64-bit binary and decimal floating point moves.
8089 Combine power6x (mfpgpr) moves with other moves by using
8090 conditional constraits (wg).
8091 (mov<mode> for DFmode/DDmode): Likewise.
8092 (DFmode/DDmode splitters): Likewise.
8093 (movdf_hardfloat32): Likewise.
8094 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
8095 (movdf_softfloat32): Likewise.
8096 (movdf_hardfloat64_mfpgpr): Likewise.
8097 (movdf_hardfloat64): Likewise.
8098 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
8099 (movdf_softfloat64): Likewise.
8100 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
8101 (reload_<mode>_load): Move to later in the file so they aren't in
8102 the middle of the floating point move insns.
8103 (reload_<mode>_store): Likewise.
8104
8105 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
8106 constraint.
8107
8108 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
8109 constraint if -mdebug=reg.
bd059b26
UB
8110 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
8111 Enable using dd reload support if needed.
c6d5ff83
MM
8112
8113 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
8114 binary and decimal floating point moves in rs6000.md.
8115 (movtd_internal): Likewise.
8116
8117 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
8118 decimal floating point moves.
8119 (movtf): Likewise.
8120 (movtf_internal): Likewise.
8121 (mov<mode>_internal, TDmode/TFmode): Likewise.
8122 (movtf_softfloat): Likewise.
8123 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
8124
8125 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
8126 movdi_internal64, using wg constraint for move direct operations.
8127 (movdi_internal64): Likewise.
8128
8129 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
8130 MODES_TIEABLE_P for selected modes. Print the numerical value of
8131 the various virtual registers. Use GPR/FPR first/last values,
8132 instead of hard coding the register numbers. Print which modes
8133 have reload functions registered.
bd059b26
UB
8134 (rs6000_option_override_internal): If -mdebug=reg, trace the options
8135 settings before/after setting cpu, target and subtarget settings.
8136 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
8137 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
8138 (rs6000_secondary_reload_fail): Likewise.
8139 (rs6000_secondary_reload_inner): Likewise.
8140
8141 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
8142 macros for first/last GPR and FPR registers.
8143 (LAST_GPR_REGNO): Likewise.
8144 (FIRST_FPR_REGNO): Likewise.
8145 (LAST_FPR_REGNO): Likewise.
8146
8147 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
8148 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
8149 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
8150 (vcond<mode><mode>): Likewise.
8151 (vcondu<mode><mode>): Likewise.
8152 (vector_gtu<mode>): Likewise.
8153 (vector_gte<mode>): Likewise.
8154 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 8155 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
8156 (ior<mode>3): Likewise.
8157 (and<mode>3): Likewise.
8158 (one_cmpl<mode>2): Likewise.
8159 (nor<mode>3): Likewise.
8160 (andc<mode>3): Likewise.
8161
8162 * config/rs6000/constraints.md (wt constraint): New constraint
8163 that returns VSX_REGS if TImode is allowed in VSX registers.
8164
8165 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
8166 constant under VSX.
8167
8168 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
8169 similar to TImode, but it is restricted to being in the GPRs.
8170
8171 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
8172 TImode to occupy a single VSX register.
8173
8174 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
8175 -mvsx-timode for power7/power8.
8176 (power7 cpu): Likewise.
8177 (power8 cpu): Likewise.
8178
8179 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
8180 sure that TFmode/TDmode take up two registers if they are ever
8181 allowed in the upper VSX registers.
8182 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
8183 registers.
8184 (rs6000_init_hard_regno_mode_ok): Likewise.
8185 (rs6000_debug_reg_global): Add debugging for PTImode and wt
8186 constraint. Print if LRA is turned on.
8187 (rs6000_option_override_internal): Give an error if -mvsx-timode
8188 and VSX is not enabled.
8189 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
8190 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
8191 to reg+offset addressing. Use PTImode when checking offset
8192 addresses for validity.
8193 (reg_offset_addressing_ok_p): Likewise.
8194 (rs6000_legitimate_offset_address_p): Likewise.
8195 (rs6000_legitimize_address): Likewise.
8196 (rs6000_legitimize_reload_address): Likewise.
8197 (rs6000_legitimate_address_p): Likewise.
8198 (rs6000_eliminate_indexed_memrefs): Likewise.
8199 (rs6000_emit_move): Likewise.
8200 (rs6000_secondary_reload): Likewise.
8201 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
8202 reloads to fpr registers to continue to use reg+offset addressing,
8203 but 64-bit reloads to altivec registers need reg+reg addressing.
8204 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
8205 it. Treat LO_SUM like a PLUS operation.
8206 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 8207 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
8208 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
8209 registers to share a register with a smaller sized type, since VSX
8210 puts scalars in the upper 64-bits.
8211 (print_operand): Add support for PTImode.
8212 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
8213 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
8214 registers, but don't have arithmetic support.
8215 (rs6000_memory_move_cost): Add test for VSX.
8216 (rs6000_opt_masks): Add -mvsx-timode.
8217
8218 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
8219 for TImode.
8220 (VSs): Likewise.
8221 (VSr): Use wt constraint for TImode.
8222 (VSv): Drop TImode support.
8223 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
8224 (vsx_movti_64bit): Likewise.
8225 (vsx_movti_32bit): Likewise.
8226 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
8227 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
8228 one '?' on the appropriate output constraint. Do not allow TImode
8229 logical operations on 32-bit systems.
8230 (vsx_ior<mode>3): Likewise.
8231 (vsx_xor<mode>3): Likewise.
8232 (vsx_one_cmpl<mode>2): Likewise.
8233 (vsx_nor<mode>3): Likewise.
8234 (vsx_andc<mode>3): Likewise.
8235 (vsx_concat_<mode>): Likewise.
8236 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
8237
8238 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
8239 OPTION_MASK_VSX_TIMODE.
8240 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
8241 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
8242
8243 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
8244 (TI2 iterator): New iterator for TImode, PTImode.
8245 (wd mode attribute): Add values for vector types.
bd059b26
UB
8246 (movti_string): Replace TI move operations with operations for TImode
8247 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
8248 (mov<mode>_string, TImode/PTImode): Likewise.
8249 (movti_ppc64): Likewise.
8250 (mov<mode>_ppc64, TImode/PTImode): Likewise.
8251 (TI mode splitters): Likewise.
8252
8253 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
8254 constraint.
8255
1fc5eced
MG
82562013-03-20 Marc Glisse <marc.glisse@inria.fr>
8257
8258 PR tree-optimization/56355
8259 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
8260 Also handle integers with undefined overflow.
8261
22c4c869
CM
82622013-03-20 Catherine Moore <clm@codesourcery.com>
8263 Maciej W. Rozycki <macro@codesourcery.com>
8264 Tom de Vries <tom@codesourcery.com>
8265 Nathan Sidwell <nathan@codesourcery.com>
8266 Iain Sandoe <iain@codesourcery.com>
8267 Nathan Froyd <froydnj@codesourcery.com>
8268 Chao-ying Fu <fu@mips.com>
8269
8270 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 8271 Document new function attributes.
22c4c869
CM
8272 * doc/invoke.texi (minterlink-compressed, mmicromips,
8273 m14k, m14ke, m14kec): Document new options.
8274 (minterlink-mips16): Update documentation.
8275 * doc/md.texi (ZC, ZD): Document new constraints.
8276 * configure.ac (gcc_cv_as_micromips): Check if linker
8277 supports the .set micromips directive.
8278 * configure: Regenerate.
8279 * config.in: Regenerate.
8280 * config/mips/mips-tables.opt: Regenerate.
8281 * config/mips/micromips.md: New file.
8282 * constraints.md (ZC, ZD): New constraints.
8283 * config/mips/predicates.md (movep_src_register): New predicate.
8284 (movep_src_operand): New predicate.
8285 (non_volatile_mem_operand): New predicate.
8286 * config/mips/mips.md (multimem): New type.
8287 (length): Differentiate between 17-bit and 18-bit branch offsets.
8288 (MOVEP1, MOVEP2): New mode iterator.
33159866 8289 (mov_<load>l): Use ZC constraint.
22c4c869
CM
8290 (mov_<load>r): Likewise.
8291 (mov_<store>l): Likewise.
8292 (mov_<store>r): Likewise.
8293 (*branch_equality<mode>_inverted): Add microMIPS support.
8294 (*branch_equality<mode>): Likewise.
8295 (*jump_absolute): Likewise.
8296 (indirect_jump_<mode>): Likewise.
8297 (tablejump_<mode>): Likewise.
8298 (<optab>_internal): Likewise.
8299 (sibcall_internal): Likewise.
8300 (sibcall_value_internal): Likewise.
8301 (prefetch): Use constraint ZD.
8302 * config/mips/mips.opt (minterlink-compressed): New option.
8303 (minterlink-mips16): Now an alias for minterlink-compressed.
8304 (mmicromips): New option.
8305 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8306 (compare_and_swap_12): Likewise.
8307 (sync_add<mode>): Likewise.
8308 (sync_<optab>_12): Likewise.
8309 (sync_old_<optab>_12): Likewise.
8310 (sync_new_<optab>_12): Likewise.
8311 (sync_nand_12): Likewise.
8312 (sync_old_nand_12): Likewise.
8313 (sync_new_nand_12): Likewise.
8314 (sync_sub<mode>): Likewise.
8315 (sync_old_add<mode>): Likewise.
8316 (sync_old_sub<mode>): Likewise.
8317 (sync_new_add<mode>): Likewise.
8318 (sync_new_sub<mode>): Likewise.
8319 (sync_<optab><mode>): Likewise.
8320 (sync_old_<optab><mode>): Likewise.
8321 (sync_new_<optab><mode>): Likewise.
8322 (sync_nand<mode>): Likewise.
8323 (sync_old_nand<mode>): Likewise.
8324 (sync_new_nand<mode>): Likewise.
8325 (sync_lock_test_and_set<mode>): Likewise.
8326 (test_and_set_12): Likewise.
8327 (atomic_compare_and_swap<mode>): Likewise.
8328 (atomic_exchange<mode>_llsc): Likewise.
8329 (atomic_fetch_add<mode>_llsc): Likewise.
8330 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
8331 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
8332 (umips_save_restore_pattern_p): Likewise.
8333 (umips_load_store_pair_p): Likewise.
8334 (umips_output_load_store_pair): Likewise.
8335 (umips_movep_target_p): Likewise.
8336 (umips_12bit_offset_address_p): Likewise.
8337 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
8338 (mips_base_mips16): Rename this...
8339 (mips_base_compression_flags): ...to this. Update all uses.
8340 (mips_attribute_table): Add micromips, nomicromips and nocompression.
8341 (mips_mips16_decl_p): Delete.
8342 (mips_nomips16_decl_p): Delete.
33159866 8343 (mips_get_compress_on_flags): New function.
22c4c869
CM
8344 (mips_get_compress_off_flags): New function.
8345 (mips_get_compress_mode): New function.
8346 (mips_get_compress_on_name): New function.
8347 (mips_get_compress_off_name): New function.
8348 (mips_insert_attributes): Support multiple compression types.
8349 (mips_merge_decl_attributes): Likewise.
8350 (umips_12bit_offset_address_p): New function.
8351 (mips_start_function_definition): Emit .set micromips directive.
8352 (mips_call_may_need_jalx_p): New function.
8353 (mips_function_ok_for_sibcall): Add microMIPS support.
8354 (mips_print_operand_punctuation): Support short delay slots and
8355 compact jumps.
8356 (umips_swm_mask, umips_swm_encoding): New.
8357 (umips_build_save_restore): New function.
8358 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
8359 (was_mips16_p): Remove.
8360 (old_compression_mode): New.
8361 (mips_set_compression_mode): New function.
8362 (mips_set_current_function): Add microMIPS support.
8363 (mips_option_override): Likewise.
8364 (umips_save_restore_pattern_p): New function.
8365 (umips_output_save_restore): New function.
8366 (umips_load_store_pair_p_1): New function.
8367 (umips_load_store_pair_p): New function.
8368 (umips_output_load_store_pair_1): New function.
8369 (umips_output_load_store_pair): New function.
8370 (umips_movep_target_p) New function.
8371 (mips_prepare_pch_save): Add microMIPS support.
8372 * config/mips/mips.h (TARGET_COMPRESSION): New.
8373 (TARGET_CPU_CPP_BUILTINS): Update macro
8374 to use new compression flags and to support microMIPS.
8375 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
8376 (MIPS_ARCH_FLOAT_SPEC): Likewise.
8377 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
8378 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
8379 (ASM_SPEC): Support mmicromips and mno-micromips.
8380 (M16STORE_REG_P): New macro.
8381 (MIPS_CALL): Support TARGET_MICROMIPS.
8382 (MICROMIPS_J): New macro.
8383 (mips_base_mips16): Rename this...
8384 (mips_base_compression_flags): ...to this.
8385 (UMIPS_12BIT_OFFSET_P): New macro.
8386 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
8387 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
83882013-03-20 Richard Biener <rguenther@suse.de>
8389
8390 PR tree-optimization/56661
8391 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
8392 the result does not have to be distinct.
8393
54714c68
RB
83942013-03-20 Richard Biener <rguenther@suse.de>
8395
8396 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
8397 remap_gimple_op_r.
8398
cca1130d
BS
83992013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8400 Steven Bosscher <steven@gcc.gnu.org>
8401
8402 PR rtl-optimization/56605
8403 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
8404
2a930377
UB
84052013-03-20 Uros Bizjak <ubizjak@gmail.com>
8406
8407 PR bootstrap/56656
8408 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
8409 that require movd instead of movq.
8410
d6d305fe
RB
84112013-03-20 Richard Biener <rguenther@suse.de>
8412
8413 * tree-ssa-structalias.c (struct variable_info): Add pointer
8414 to the first field of an aggregate with sub-vars. Make
8415 this and the pointer to the next subfield its ID.
8416 (vi_next): New function.
8417 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
8418 storedanything_id, integer_id): Increment by one.
8419 (new_var_info, get_call_vi, lookup_call_clobber_vi,
8420 get_call_clobber_vi): Adjust.
8421 (solution_set_expand): Simplify and speedup.
8422 (solution_set_add): Inline into ...
8423 (set_union_with_increment): ... this. Adjust accordingly.
8424 (do_sd_constraint): Likewise.
8425 (do_ds_constraint): Likewise.
8426 (do_complex_constraint): Simplify.
8427 (build_pred_graph): Adjust.
8428 (solve_graph): Likewise. Simplify and speedup.
8429 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
8430 get_constraint_for_component_ref, get_constraint_for_1,
8431 first_vi_for_offset, first_or_preceding_vi_for_offset,
8432 create_function_info_for, create_variable_info_for_1,
8433 create_variable_info_for, intra_create_variable_infos): Adjust.
8434 (init_base_vars): Push NULL for ID zero.
8435 (compute_points_to_sets): Adjust.
8436
a271b42d
RB
84372013-03-20 Richard Biener <rguenther@suse.de>
8438
8439 * cfgloop.c (verify_loop_structure): Streamline and avoid
8440 ICEing on corrupt loop tree.
8441 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
8442 loop tree.
8443
ebd65954
RB
84442013-03-20 Richard Biener <rguenther@suse.de>
8445
8446 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
8447 check whether an SSA update is needed.
8448
4547b7ee
RS
84492013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
8450
8451 * config/mips/constraints.md (T): Rename to...
8452 (Yf): ...this.
8453 (U): Rename to...
8454 (Yd): ...this.
8455 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
8456 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
8457
0b8cdc58
IB
84582013-03-19 Ian Bolton <ian.bolton@arm.com>
8459
8460 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
8461 (*subsi3_carryin_uxtw): Likewise.
8462
5977a10d
IB
84632013-03-19 Ian Bolton <ian.bolton@arm.com>
8464
8465 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
8466 (*rorsi3_insn_uxtw): Likewise.
8467
bd83ff2c
IB
84682013-03-19 Ian Bolton <ian.bolton@arm.com>
8469
8470 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
8471 (*extrsi5_insn_uxtw): Likewise.
8472
ba65123c
RB
84732013-03-19 Richard Biener <rguenther@suse.de>
8474
8475 PR tree-optimization/56273
8476 * passes.c (init_optimization_passes): Move second VRP after DOM.
8477
2eac0476
UB
84782013-03-19 Uros Bizjak <ubizjak@gmail.com>
8479
8480 * config/i386/i386.md (*movti_internal): Merge from
8481 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
8482 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
8483 nox64 isa attributes.
8484
6e55eda7
RB
84852013-03-18 Richard Biener <rguenther@suse.de>
8486
8487 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
8488 (unite): Likewise.
8489 (merge_node_constraints): Likewise.
8490 (build_succ_graph): Likewise.
8491 (valid_graph_edge): Inline into single caller.
8492 (unify_nodes): Likewise. Use bitmap_set_bit return value
8493 and cache varinfo.
8494 (scc_visit): Fix formatting and variable use.
8495 (do_sd_constraint): Use gcc_checking_assert.
8496 (do_ds_constraint): Likewise.
8497 (do_complex_constraint): Likewise.
8498 (condense_visit): Likewise. Cleanup.
8499 (dump_pred_graph): New function.
8500 (perform_var_substitution): Dump the pred-graph before
8501 variable substitution.
8502 (find_equivalent_node): Use gcc_checking_assert.
8503 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
8504
4bdd44c4
RB
85052013-03-18 Richard Biener <rguenther@suse.de>
8506
8507 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
8508 Remove cond_expr_stmt_list argument and do not gimplify the
8509 built expression.
8510 (vect_loop_versioning): Adjust.
8511 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8512 Cleanup to use less temporaries.
8513 (vect_create_data_ref_ptr): Cleanup.
8514
38c56a5b
JJ
85152013-03-18 Jakub Jelinek <jakub@redhat.com>
8516
8517 PR tree-optimization/56635
8518 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
8519 require types_compatible_p types.
8520
20b2e6a0
NC
85212013-03-18 Nick Clifton <nickc@redhat.com>
8522
a6178a25
NC
8523 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
8524 spurious backslash.
8525
20b2e6a0
NC
8526 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
8527 Add missing line to comment describing function.
8528
92608d0e
RB
85292013-03-18 Richard Biener <rguenther@suse.de>
8530
8531 PR tree-optimization/56210
8532 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
8533 Handle string / character search functions.
8534 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
8535
31348d52
RB
85362013-03-18 Richard Biener <rguenther@suse.de>
8537
8538 PR middle-end/56483
8539 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
8540 and implement properly.
8541 * gimple.h (gimple_cond_single_var_p): Remove.
8542
fcac74a1
RB
85432013-03-18 Richard Biener <rguenther@suse.de>
8544
8545 * tree-data-ref.h (find_data_references_in_loop): Declare.
8546 * tree-data-ref.c (get_references_in_stmt): Use a stack
8547 vector pre-allocated in the callers.
8548 (find_data_references_in_stmt): Adjust.
8549 (graphite_find_data_references_in_stmt): Likewise.
8550 (create_rdg_vertices): Likewise.
8551 (find_data_references_in_loop): Export.
8552 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
8553 Compute dependences here...
8554 (vect_analyze_data_refs): ...not here. When we encounter
8555 a non-vectorizable data reference in basic-block vectorization
8556 truncate the data reference vector. Do not bother to
8557 fixup data-dependence information for gather loads.
8558 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
8559 of data references, as reported.
8560
0d5a1b56
RB
85612013-03-18 Richard Biener <rguenther@suse.de>
8562
8563 PR tree-optimization/3713
8564 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
8565 has_constants and expr.
8566 (stmt_has_constants): Properly valueize SSA names when deciding
8567 whether the stmt has constants.
8568
789c34e3
RB
85692013-03-18 Richard Biener <rguenther@suse.de>
8570
8571 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
8572 whole function when there is nothing to do.
8573 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
8574 * tree-vectorizer.c (vectorize_loops): Update virtual and
8575 loop-closed SSA once.
8576 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
8577
076b4605
RB
85782013-03-18 Richard Biener <rguenther@suse.de>
8579
8580 PR middle-end/56113
8581 * domwalk.c (bb_postorder): New global static.
8582 (cmp_bb_postorder): New function.
8583 (walk_dominator_tree): Replace scheme imposing an order for
8584 visiting dominator sons by one sorting them at the time they
8585 are pushed on the stack.
8586
bdb01696
RB
85872013-03-18 Richard Biener <rguenther@suse.de>
8588
8589 PR tree-optimization/39326
8590 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
8591 (struct mem_ref): Replace mem member with ao_ref typed member.
8592 (MEM_ANALYZABLE): Adjust.
8593 (memref_eq): Likewise.
8594 (mem_ref_alloc): Likewise.
8595 (gather_mem_refs_stmt): Likewise.
8596 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
8597 (execute_sm_if_changed_flag_set): Adjust.
8598 (execute_sm): Likewise.
8599 (ref_always_accessed_p): Likewise.
8600 (refs_independent_p): Likewise.
8601 (can_sm_ref_p): Likewise.
8602
12d2dc5e
JJ
86032013-03-18 Jakub Jelinek <jakub@redhat.com>
8604
8605 PR c/56566
8606 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
8607 return 1 even for !unsignedp.
8608
286fb677
UB
86092013-03-17 Uros Bizjak <ubizjak@gmail.com>
8610
8611 * config/i386/i386.md (isa): Add x64 and nox64.
8612 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
8613 (*pushtf): Enable *roF alternative for x64 isa only.
8614 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
8615 mode attribute of integer alternatives to DImode for TARGET_64BIT.
8616 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
8617 (*movtf_internal): Merge from *movtf_internal_rex64 and
8618 *movtf_internal_sse. Use x64 and nox64 isa attributes.
8619 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
8620 nox64 isa attributes.
8621 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
8622 nox64 isa attributes.
8623 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
8624
88b97037
UB
86252013-03-17 Uros Bizjak <ubizjak@gmail.com>
8626
8627 * config/alpha/alpha.c (TARGET_LRA_P): New define.
8628
9f4f1735
JJ
86292013-03-17 Jakub Jelinek <jakub@redhat.com>
8630
8631 PR target/56640
8632 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
8633 class names. Remove trailing comma after "ALL_REGS".
8634
48f4a6fa
JH
86352013-03-16 Jan Hubicka <jh@suse.cz>
8636
8637 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
8638 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
8639 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
8640 of cgraph_get_create_node.
8641 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8642
98e81123
JM
86432013-03-16 Jason Merrill <jason@redhat.com>
8644
8645 PR debug/49090
8646 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
8647 with DW_AT_default_value.
8648
8a298c04
JJ
86492013-03-16 Jakub Jelinek <jakub@redhat.com>
8650
8651 * BASE-VER: Set to 4.9.0.
8652
4323afa0
AK
86532013-03-14 Andi Kleen <ak@linux.intel.com>
8654
8655 PR target/56619
8656 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
8657 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
8658 Document _x* TSX intrinsics.
8659
b3c0d469
JJ
86602013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
8661 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
8662
8663 * configure.ac: Add MicroBlaze TLS support detection.
8664 * configure: Regenerate.
88b97037
UB
8665 * config/microblaze/microblaze-protos.h
8666 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
8667 symbol_mentioned_p, label_mentioned_p): Add prototypes.
8668 * config/microblaze/microblaze.c (microblaze_address_type): Add
8669 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
8670 (microblaze_address_info): Add tls_reloc.
8671 (TARGET_HAVE_TLS): Define.
8672 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
8673 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
8674 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
8675 load_tls_operand, microblaze_call_tls_get_addr,
8676 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
8677 (microblaze_classify_unspec): Handle UNSPEC_TLS.
8678 (get_base_reg): Use microblaze_tls_symbol_p.
8679 (microblaze_classify_address): Handle TLS.
88b97037
UB
8680 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
8681 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
8682 (microblaze_legitimize_address): Handle TLS.
8683 (microblaze_address_insns): Handle ADDRESS_TLS.
8684 (pic_address_needs_scratch): Handle TLS.
8685 (print_operand_address): Handle TLS.
8686 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
8687 (microblaze_expand_move): Handle TLS.
88b97037
UB
8688 (microblaze_legitimate_constant_p): Check
8689 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
8690 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8691 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
8692 (PIC_OFFSET_TABLE_REGNUM): Set.
8693 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
8694 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
8695 (addsi3, movsi_internal2, movdf_internal): Update constraints
8696 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
8697 (move_operand): Redefine as move_src_operand,
8698 check microblaze_tls_referenced_p.
8cc9a5a5 8699
d803a491
IB
87002013-03-14 Ian Bolton <ian.bolton@arm.com>
8701
8702 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
8703 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
8704
a8504f22
IB
87052013-03-14 Ian Bolton <ian.bolton@arm.com>
8706
8707 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
8708 CC mode for AND.
8709
df2dfaea
JJ
87102013-03-14 Jakub Jelinek <jakub@redhat.com>
8711
fbd28bc3
JJ
8712 PR tree-optimization/53265
8713 * common.opt (Waggressive-loop-optimizations): New option.
8714 * tree-ssa-loop-niter.c: Include tree-pass.h.
8715 (do_warn_aggressive_loop_optimizations): New function.
8716 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
8717 if number_of_latch_executions returned constant.
8718 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
8719 early. If number_of_latch_executions returned constant, set
8720 nb_iterations_upper_bound back to it.
8721 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
8722 field.
8723 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
8724 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
8725
df2dfaea
JJ
8726 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
8727 (MULTILIB_OSDIRNAMES): Set.
8728 * genmultilib: If defaultosdirname doesn't start with :: , set
8729 defaultosdirname2 instead, clear it and emit two . multilib_raw
8730 entries instead of just one.
8731
ee0d2b68
KK
87322013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
8733
8734 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8735 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
8736 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8737 (SUBTARGET_OVERRIDE_OPTIONS): New.
8738
decc676e
OE
87392013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
8740
8741 PR target/49880
8742 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
8743 (musermode): Convert to Var(TARGET_USERMODE).
8744 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
8745 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
8746 * config/sh/sh.c (sh_option_override): Use
8747 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
8748 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
8749 condition.
8750 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
8751 TARGET_SH4.
8752 (udivsi3_i4_single, divsi3_i4_single): Use
8753 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
8754
f4b719c7
DK
87552013-03-13 Dave Korn <dave.korn.cygwin@....>
8756
8757 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
8758 default setting.
8759
c40eced0
RB
87602013-03-13 Richard Biener <rguenther@suse.de>
8761
8762 PR tree-optimization/56608
8763 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
8764 calls when vectorizing basic-blocks.
8765
1bfa5973
JJ
87662013-03-13 Jakub Jelinek <jakub@redhat.com>
8767
8768 PR plugins/45078
8769 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
8770 tm_file.
8771
6fcf5434
JJ
87722013-03-12 Jakub Jelinek <jakub@redhat.com>
8773
8774 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
8775
4f38fa8c
JH
87762013-03-11 Jan Hubicka <jh@suse.cz>
8777
8778 PR lto/56557
8779 * lto-streamer-out.c (output_symbol_p): Skip references from
8780 constructors of external variables.
8781
c5c5ba89
JH
87822013-03-11 Jan Hubicka <jh@suse.cz>
8783
8784 PR middle-end/56571
8785 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
8786 from pseudos.
8787 * emit-rtl.c (verify_rtx_sharing): Likewise.
8788 (copy_insn_1): Likewise.
8789 * rtl.c (copy_rtx): Likewise.
8790
c2a939b1
GJL
87912013-03-11 Georg-Johann Lay <avr@gjlay.de>
8792
8793 PR target/56591
8794 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
8795 output_operand_lossage message.
88b97037 8796
3c3279fb
RE
87972013-03-11 Richard Earnshaw <rearnsha@arm.com>
8798
8799 PR target/56470
8800 * arm.c (shift_op): Validate RTL pattern on the fly.
8801 (arm_print_operand, case 'S'): Don't use shift_operator to validate
8802 the RTL.
8803
aef5ef9d
JDA
88042013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8805
8806 PR target/56347
8807 * config/pa/pa.md (call_value): Check for calls to powf and direct to
8808 new call patterns that clobber %fr12.
8809 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
8810 split and postreload patterns.
8811 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
8812 registers %fr12 and %fr12R as call used.
8813
456610d3
SB
88142013-03-09 Steven Bosscher <steven@gcc.gnu.org>
8815
8816 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
8817 (canon_address, record_store, replace_read, check_mem_read_rtx,
8818 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
8819 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
8820 rest_of_handle_dse): Likewise.
8821
4b1baac8
RS
88222013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8823
8824 PR middle-end/56524
8825 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
8826 Add base_optabs.
8827 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
8828 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
8829 (save_optabs_if_changed): Replace with...
8830 (init_tree_optimization_optabs): ...this.
8831 * optabs.c (save_optabs_if_changed): Rename to...
8832 (init_tree_optimization_optabs): ...this. Take the optimization node
8833 as argument. Do nothing if the base optabs are already correct.
8834 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
8835 to recompute optabs.
8836 * function.h (function): Remove optabs field.
8837 * function.c (invoke_set_current_function_hook): Call
8838 init_tree_optimization_optabs. Use the result to initialize
8839 this_fn_optabs.
8840
b7a78683
AH
88412013-02-27 Aldy Hernandez <aldyh@redhat.com>
8842
8843 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
8844 if GTMA_HAS_NO_INSTRUMENTATION.
8845 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
8846 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
8847 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
8848 * gimple-pretty-print.c (dump_gimple_transaction): Handle
8849 GTMA_HAS_NO_INSTRUMENTATION.
8850
6384c29b
JJ
88512013-03-08 Jakub Jelinek <jakub@redhat.com>
8852
8853 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
8854 libasan_preinit.o.
8855
ecd4f20a
MP
88562013-03-08 Marek Polacek <polacek@redhat.com>
8857 Jakub Jelinek <jakub@redhat.com>
8858
8859 PR tree-optimization/56478
8860 * predict.c (is_comparison_with_loop_invariant_p): Change the
8861 type of loop_step to tree.
8862 (predict_loops): Adjust.
8863 (predict_iv_comparison): Perform the computations on double_ints.
8864
64366d35
RB
88652013-03-08 Richard Biener <rguenther@suse.de>
8866
8867 PR tree-optimization/56570
8868 * tree-cfg.c (verify_expr_location_1): Verify locations for
8869 DECL_DEBUG_EXPR.
8870 * tree-sra.c (create_access_replacement): Strip locations
8871 from DECL_DEBUG_EXPRs.
8872
a9d5a059
RB
88732013-03-08 Richard Biener <rguenther@suse.de>
8874
8875 * tree-inline.c (expand_call_inline): Do not associate
8876 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
8877 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
8878
b7aa4e9a
RB
88792013-03-08 Richard Biener <rguenther@suse.de>
8880
8881 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8882 or block changes with -Og. Fix for location / block encoding
8883 changes and PHI arguments with locations.
8884
c4c2f9fa
SB
88852013-03-07 Steven Bosscher <steven@gcc.gnu.org>
8886
8887 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8888 for all counters.
8889 (struct output_info): Likewise.
8890 (register_overhead): Remove bad gcc_assert.
8891 (bitmap_find_bit): If there is only a single bitmap element, do not
8892 count a miss as a search.
8893 (print_statistics): Update for counter type changes.
8894 (dump_bitmap_statistics): Likewise. Print headers such that they
8895 are properly lined up with the printed counters.
8896
5bf6606a
JJ
88972013-03-07 Jakub Jelinek <jakub@redhat.com>
8898
8899 PR tree-optimization/56559
8900 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8901 check that it has only a single use.
8902
2c653d46
RB
89032013-03-07 Richard Biener <rguenther@suse.de>
8904
8905 * doc/invoke.texi (fwhole-program): Discourage use in combination
8906 with -flto.
8907
a72d8780
JJ
89082013-03-06 Jakub Jelinek <jakub@redhat.com>
8909
01a454df
JJ
8910 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8911
c1781047
JJ
8912 PR tree-optimization/56539
8913 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8914 instead of GSI_CONTINUE_LINKING as last argument to
8915 force_gimple_operand_gsi. Adjust function comment.
8916
9772c47a
JJ
8917 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8918 aarch64-cores.def.
8919
a72d8780
JJ
8920 PR middle-end/56548
8921 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8922 promoted mode, convert the result back to the original mode.
8923
fa5556de
RB
89242013-03-06 Richard Biener <rguenther@suse.de>
8925
8926 PR middle-end/56294
8927 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8928 (insert_updated_phi_nodes_compare_uids): New function.
8929 (update_ssa): Sort symbols_to_rename after UID before
8930 traversing it to insert PHI nodes.
8931
010403d1
RB
89322013-03-06 Richard Biener <rguenther@suse.de>
8933
8934 PR middle-end/50494
8935 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8936 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8937
8938 Revert
8939 2013-02-13 Richard Biener <rguenther@suse.de>
8940
8941 PR lto/50494
8942 * varasm.c (output_constant_def_1): Get the decl representing
8943 the constant as argument.
8944 (output_constant_def): Wrap output_constant_def_1.
8945 (make_decl_rtl): Use output_constant_def_1 with the decl
8946 representing the constant.
8947 (build_constant_desc): Optionally re-use a decl already
8948 representing the constant.
8949 (tree_output_constant_def): Adjust.
8950
3c27ce4c
JY
89512013-03-06 Joey Ye <joey.ye@arm.com>
8952
8953 PR lto/50293
8954 * gcc.c (convert_white_space): New function.
8955 (main): Handles white space in function name.
8956
8f6d1c86
OE
89572013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8958
8959 PR target/56529
8960 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8961 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8962 to SH_DIV_CALL_TABLE for TARGET_SH2.
8963 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8964 list.
8965 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8966 call-table options.
8967
798a209f
SA
89682013-03-05 Sterling Augustine <saugustine@google.com>
8969 Cary Coutant <ccoutant@google.com>
8970
8971 PR debug/55364
8972 * dwarf2out.c (resolve_addr): Don't call
8973 remove_loc_list_addr_table_entries a second time for the same
8974 expression.
8975
6cfa417f 89762013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 8977
6cfa417f
JJ
8978 PR debug/56510
8979 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8980 (avoid_complex_debug_insns): New function.
8981 (expand_debug_locations): Call it.
8982
8983 PR rtl-optimization/56484
8984 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8985 lifetimes of hard registers on small register class machines.
8986
89872013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8988
8989 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 8990 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 8991 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
8992 fast_interrupt.
8993 (microblaze_fast_interrupt_function_p): New function.
8994 (microblaze_is_interrupt_handler): Rename to
8995 microblaze_is_interrupt_variant and add fast_interrupt check.
8996 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8997 (save_restore_insns): Likewise.
8998 (compute_frame_size): Likewise.
8999 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9000 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
9001 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9002 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
9003 microblaze_is_interrupt_variant.
9004
731aefac
KT
90052013-03-05 Kai Tietz <ktietz@redhat.com>
9006
9007 * sdbout.c (sdbout_one_type): Switch to current function's section
9008 supporting cold/hot.
9009
a72d8780 90102013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
9011
9012 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9013 -mxl-reorder.
9014
334e71e8
JJ
90152013-03-05 Jakub Jelinek <jakub@redhat.com>
9016
0b50e654
JJ
9017 PR middle-end/56461
9018 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9019 if VALGRIND_GET_VBITS is defined, temporarily make object
9020 memory all defined, and restore previous valgrind addressability
9021 and definability afterwards. Free this_object at the end.
9022
4ccf8f43
JJ
9023 PR middle-end/56461
9024 * lra.c (lra): Call lra_clear_live_ranges if live_p,
9025 right before calling lra_create_live_ranges, also call it
9026 when clearing live_p. Only call lra_clear_live_ranges
9027 at the end if live_p.
9028
334e71e8
JJ
9029 PR middle-end/56461
9030 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9031
9ca966ca
RB
90322013-03-05 Richard Biener <rguenther@suse.de>
9033
9034 PR tree-optimization/56521
9035 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9036 value-id.
9037
d273b176
SB
90382013-03-05 Steven Bosscher <steven@gcc.gnu.org>
9039
9040 PR c++/55135
9041 * except.h (remove_unreachable_eh_regions): New prototype.
9042 * except.c (remove_eh_handler_splicer): New function, split out
9043 of remove_eh_handler.
9044 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
9045 warning about running it on many EH regions one at a time.
9046 (remove_unreachable_eh_regions_worker): New function, walk the
9047 EH tree in depth-first order and remove non-marked regions.
9048 (remove_unreachable_eh_regions): New function.
9049 * tree-eh.c (mark_reachable_handlers): New function, split out
9050 from remove_unreachable_handlers.
9051 (remove_unreachable_handlers): Use mark_reachable_handlers and
9052 remove_unreachable_eh_regions.
9053 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9054 and remove_unreachable_eh_regions.
9055
5e7f1aef
RB
90562013-03-05 Richard Biener <rguenther@suse.de>
9057
9058 PR middle-end/56525
9059 * loop-init.c (fix_loop_structure): Remove loops in two stages,
9060 not freeing them until the end.
9061
f276b762
AK
90622013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9063
9064 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9065
12a43ab8
RB
90662013-03-05 Richard Biener <rguenther@suse.de>
9067
9068 PR tree-optimization/56270
9069 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9070 of loads after scheduling an SLP instance.
9071
93675444
JJ
90722013-03-05 Jakub Jelinek <jakub@redhat.com>
9073
db4138e3
JJ
9074 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9075 tic6x.exp.
9076 (check_gcc_parallelize): Run guality.exp as a separate job from
9077 vect.exp with unsorted.exp and $(dg_target_exps) separately from
9078 struct-layout-1.exp with stackalign.exp.
9079
dd3d1ec0
JJ
9080 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9081
b8d381a3
JJ
9082 PR middle-end/56461
9083 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9084 load_index sbitmap even if some bit in it isn't set.
9085
b4f9786b
JJ
9086 PR middle-end/56461
9087 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
9088 (discover_iteration_bound_by_body_walk): Change queues to
9089 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
9090 spelling in comment. Call safe_push on queues[bound_index] directly.
9091 Release queues[queue_index] in every iteration unconditionally.
9092 Release bounds vector.
9093
93675444
JJ
9094 PR middle-end/56461
9095 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
9096 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
9097 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
9098 inner_phis vector.
9099
3e492e9c
RB
91002013-03-05 Richard Biener <rguenther@suse.de>
9101
9102 PR lto/56515
9103 * tree-inline.c (remap_blocks_to_null): New function.
9104 (expand_call_inline): When expanding a call stmt without
9105 an associated block inline remap all callee blocks to NULL.
9106
a5d1569a
JJ
91072013-03-05 Jakub Jelinek <jakub@redhat.com>
9108
86efb5cd
JJ
9109 PR rtl-optimization/56494
9110 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
9111 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
9112 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
9113
85f5dbea
JJ
9114 PR middle-end/56461
9115 * sel-sched-ir.c (free_sched_pools): Release
9116 succs_info_pool.stack[succs_info_pool.max_top] vectors too
9117 if succs_info_pool.max_top isn't -1.
9118
a5d1569a
JJ
9119 PR bootstrap/56509
9120 * opts.c (opts_obstack, opts_concat): Moved to...
9121 * opts-common.c (opts_obstack, opts_concat): ... here.
9122
4432aa6c
JJ
91232013-03-04 Jakub Jelinek <jakub@redhat.com>
9124
9125 PR middle-end/56461
9126 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
9127
f3a1fb91
MJ
91282013-03-04 Martin Jambor <mjambor@suse.cz>
9129
9130 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
9131 all appropriate places.
9132
22110e6c
EB
91332013-01-04 Eric Botcazou <ebotcazou@adacore.com>
9134
9135 PR tree-optimization/56424
9136 * ipa-split.c (split_function): Do not set the RSO flag if result is
9137 not by reference and its type is a register type.
9138
a72d8780 91392013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 9140
88b97037 9141 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 9142 (microblaze_legitimate_pic_operand): Likewise
88b97037 9143 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
9144 new function microblaze_legitimate_pic_operand
9145 * config/microblaze/microblaze-protos.h
9146 (microblaze_legitimate_pic_operand): Declare.
9147
a72d8780 91482013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 9149
a72d8780 9150 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 9151 New predicate for supported rtx code types.
a72d8780 9152 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
9153 call_insn_simple_operand predicate.
9154
541d9ac8
JJ
91552013-03-04 Jakub Jelinek <jakub@redhat.com>
9156
5eb010bc
JJ
9157 PR middle-end/56461
9158 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
9159 partitions.ordered_remove.
9160
30862efc
JJ
9161 PR middle-end/56461
9162 * tree-vect-stmts.c (vectorizable_conversion): Don't call
9163 vec_oprnds0.create (1) for modifier == NONE.
9164
8930f723
JJ
9165 PR middle-end/56461
9166 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
9167 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
9168 vec_oprnds1 right before pushing anything to it for
9169 scalar_shift_arg.
9170
541d9ac8
JJ
9171 PR middle-end/56461
9172 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
9173 set nbbs to 0 instead of having separate code path.
9174 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
9175 instead of false as last argument if returning NULL.
9176
7aa7f2e3
SL
91772013-03-03 Sandra Loosemore <sandra@codesourcery.com>
9178
9179 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
9180 the attribute is now called "target" instead of "option".
9181 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
9182 * doc/tm.texi.in (Target Attributes): Likewise document the correct
9183 attribute/pragma name for TARGET_OPTION_VALID_P and
9184 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
9185 * doc/tm.texi: Regenerated.
9186
8930f723 91872013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 9188
8930f723 9189 * config/microblaze/microblaze.c:
cb8a1637 9190 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
9191 * config/microblaze/microblaze.h: Add -mxl-reorder to
9192 DRIVER_SELF_SPECS.
9193 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
9194 instructions emitted if TARGET_REORDER.
88b97037
UB
9195 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
9196 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 9197 separately.
cb8a1637 9198
4dc1d68c
XDL
91992013-03-01 Xinliang David Li <davidxl@google.com>
9200
9201 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
9202 walk length.
9203
689eaba3
JJ
92042013-03-01 Jakub Jelinek <jakub@redhat.com>
9205
9d676bf6
JJ
9206 PR middle-end/56461
9207 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
9208 vector even when returning true. Fix up function comment formatting.
9209
caff7edf
JJ
9210 PR middle-end/56461
9211 * ira-build.c (ira_loop_nodes_count): New variable.
9212 (create_loop_tree_nodes): Initialize it.
9213 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
9214
b6b9227d
JJ
9215 PR middle-end/56461
9216 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
9217 method on dr_chain and result_chain.
9218 * tree-vect-stmts.c (vectorizable_store): Only call
9219 result_chain.create if j == 0.
9220
689eaba3
JJ
9221 PR middle-end/56461
9222 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
9223 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
9224 before overwriting it.
9225
40bf31ed
TB
92262013-03-01 Tobias Burnus <burnus@net-b.de>
9227
9228 * doc/extended.texi (C Extensions): Change order in @menu
9229 to match @node.
9230 (Other MIPS Built-in Functions): Move last MIPS entry before
9231 "picoChip Built-in Functions".
9232 (SH Built-in Functions): Move after RX Built-in Functions.
9233 * doc/gcc.texi (Introduction): Change order in @menu
9234 to match @node.
9235 * doc/md.texi (Constraints): Ditto.
9236 * gty.texi (Type Information): Ditto.
9237 (User-provided marking routines for template types): Make
9238 subsection.
9239 * doc/invoke.texi (AArch64 Options): Move before
9240 "Adapteva Epiphany Options".
9241
e664c61c
KS
92422013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
9243 Jakub Jelinek <jakub@redhat.com>
9244
9245 PR sanitizer/56454
9246 * asan.c (gate_asan): Lookup no_sanitize_address instead of
9247 no_address_safety_analysis attribute.
9248 * doc/extend.texi (no_address_safety_attribute): Rename to
9249 no_sanitize_address attribute, mention no_address_safety_analysis
9250 attribute as deprecated alias.
9251
37b5ec8f
JJ
92522013-02-28 Jakub Jelinek <jakub@redhat.com>
9253
9254 PR middle-end/56461
9255 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
9256 type to vec<vec<tree> > *.
9257 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
9258 to be vec<tree> instead of vec<tree> *, set vec_defs
9259 to vNULL and call vec_defs.create (number_of_vects), adjust other
9260 uses of vec_defs.
9261 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
9262 vectorizable_condition): Adjust vect_get_slp_defs callers.
9263
ba96cdfb
JG
92642013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9265
9266 * config/aarch64/aarch64.c
9267 (aarch64_float_const_representable): Remove unused variable.
9268
6f549691
JG
92692013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9270
9271 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
9272
af55e82d
JG
92732013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9274
9275 * config/aarch64/aarch64-builtins.c
9276 (aarch64_init_simd_builtins): Make static.
9277
1df3f464
JG
92782013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
9279
9280 * config/aarch64/aarch64.c
9281 (aarch64_simd_make_constant): Make static.
9282
f8f42513
MJ
92832013-02-28 Martin Jambor <mjambor@suse.cz>
9284
9285 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
9286 with no initialization to the RHS of debug statements.
9287
b48b3fc4
MJ
92882013-02-28 Martin Jambor <mjambor@suse.cz>
9289
9290 PR tree-optimization/56294
9291 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
9292 Adjust dumping.
9293 (get_access_replacement): Do not call create_access_replacement.
9294 Assert a replacement exists.
9295 (get_repl_default_def_ssa_name): Create the replacement declaration
9296 itself.
9297
c3ae224c
RR
92982013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9299
9300 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
9301 final_end_function.
9302
45fa0eef
MP
93032013-02-28 Marek Polacek <polacek@redhat.com>
9304
9305 PR rtl-optimization/56466
9306 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
9307 if we're changing a loop.
9308 (peel_loops_completely): Likewise.
9309
502c067d
PC
93102013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
9311
9312 PR c++/55813
9313 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
9314
ff24afc8
GJL
93152013-02-28 Georg-Johann Lay <avr@gjlay.de>
9316
9317 PR target/56445
9318 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
9319 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
9320 INTX_FTYPE_FX, FX_FTYPE_INTX.
9321 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
9322
c7b1fc1b
GJL
93232013-02-28 Georg-Johann Lay <avr@gjlay.de>
9324
9325 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
9326 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
9327 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
9328 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
9329 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
9330 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
9331 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
9332 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
9333 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
9334 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
9335 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
9336 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
9337 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
9338 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
9339 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
9340 (avrxmega6): Increase max flash segments from 5 to 6.
9341 * config/avr/t-multilib: Regenerate.
9342 * config/avr/avr-tables.opt: Regenerate.
9343 * doc/avr-mmcu.texi: Regenerate.
9344
4a0e3cfe
GJL
93452013-02-28 Georg-Johann Lay <avr@gjlay.de>
9346
9347 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
9348 (avr_device_to_arch): Rename to avr_device_to_ld.
9349 (avr_device_to_as): New prototype.
9350 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
9351 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
9352 * config/avr/driver-avr.c (avr_device_to_as): New.
9353 (avr_device_to_arch): Rename to avr_device_to_ld.
9354
97785e52
JJ
93552013-02-27 Jakub Jelinek <jakub@redhat.com>
9356
3f292312
JJ
9357 PR middle-end/56461
9358 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
9359 method on dr_chain and result_chain.
9360
a344216b
JJ
9361 PR middle-end/56461
9362 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
9363 pointer_set_destroy on not_executed_last_iteration.
9364
f121ad02 9365 PR middle-end/56461
88b97037 9366 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 9367
307f83a3
JJ
9368 PR middle-end/56461
9369 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
9370 FOR_EACH_DEFINED_FUNCTION when freeing state.
9371
e19624ee
JJ
9372 PR middle-end/56461
9373 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
9374 pool_free.
9375 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
9376 overwriting it.
9377
90e709fd
JJ
9378 PR middle-end/56461
9379 * ipa-cp.c (decide_whether_version_node): Call vec_free on
9380 known_aggs[i].items and release known_aggs vector.
9381
97785e52
JJ
9382 PR middle-end/56461
9383 * ipa-reference.c (propagate): Free node_info even for alias nodes.
9384
93852013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 9386
97785e52
JJ
9387 * config/microblaze/microblaze.c (microblaze_emit_compare):
9388 Use xor for EQ/NE comparisions.
9389 * config/microblaze/microblaze.md (cstoresf4): Add constraints
9390 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 9391
6fa5e0ed
JJ
93922013-02-27 Jakub Jelinek <jakub@redhat.com>
9393
9394 PR middle-end/56461
9395 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
9396 vector.
9397 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
9398 vec_safe_push, always update *slot.
9399 (redirect_edge_var_map_clear): Use vec_free.
9400 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
9401 (free_var_map_entry): Use vec_free.
9402 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
9403 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
9404
436a956a
AB
94052013-02-27 Andrey Belevantsev <abel@ispras.ru>
9406
9407 PR middle-end/45472
436a956a
AB
9408 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
9409 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
9410 Reorder tests for speculativeness in the logical and operator.
9411
f5c2caca
JJ
94122013-02-27 Jakub Jelinek <jakub@redhat.com>
9413
0fcb564b
JJ
9414 * incpath.c (add_standard_paths): Use reconcat instead of concat
9415 where appropriate and avoid leaking memory.
9416
dc357798
JJ
9417 * opts.h: Include obstack.h.
9418 (opts_concat): New prototype.
9419 (opts_obstack): New declaration.
9420 * opts.c (opts_concat): New function.
9421 (opts_obstack): New variable.
9422 (init_options_struct): Call gcc_init_obstack on opts_obstack.
9423 (finish_options): Use opts_concat instead of concat
9424 and XOBNEWVEC instead of XNEWVEC.
9425 * opts-common.c (generate_canonical_option, decode_cmdline_option,
9426 generate_option): Likewise.
9427 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
9428 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
9429
f5c2caca
JJ
9430 PR target/56455
9431 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
9432 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
9433
d0163673
JJ
94342013-02-26 Jakub Jelinek <jakub@redhat.com>
9435
9436 PR middle-end/56461
9437 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
9438
b5ad2b8e
JR
94392013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
9440
9441 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
9442 (arm_block_move_unaligned_straight): Likewise.
9443 (arm_adjust_block_mem): Likewise.
9444
9b639e2c
JR
94452013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
9446
9447 PR target/48901
9448 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
9449 temp, cond and label.
9450 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
9451
e13a0ccb
JR
9452 PR target/52500
9453 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
9454 * config/c6x/c6x.h (dbx_register_map): Update declaration.
9455
fbe4f171
JR
9456 PR target/52501
9457 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
9458 of prologue/epilogue functions.
9459
ae006543
JR
9460 PR target/52550
9461 * config/tilegx/tilegx.c (tilegx_expand_prologue):
9462 Remove unused variable cfa_offset.
9463 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
9464
c81369fa
JR
9465 PR target/54639
9466 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
9467 type promotion to unsigned.
9468
f8a8fea7
JR
9469 PR target/54640
9470 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
9471 for HOST_WIDE_INT of 32 bit / same size as int.
9472 (arm_block_move_unaligned_straight): Likewise.
9473 (arm_adjust_block_mem): Likewise.
9474
f8be5169
JR
9475 PR target/54662
9476 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
9477 ALL_CFLAGS.
9478
f1ad3354
MP
94792013-02-26 Marek Polacek <polacek@redhat.com>
9480
9481 PR tree-optimization/56426
88b97037 9482 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 9483
a6af0f42
RB
94842013-02-26 Richard Biener <rguenther@suse.de>
9485
9486 PR target/56444
9487 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
9488 unused variable loops.
9489
aca43c6c
JJ
94902013-02-26 Jakub Jelinek <jakub@redhat.com>
9491
cecbe5d9
JJ
9492 PR tree-optimization/56448
9493 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
9494 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
9495 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
9496 later operands of the references, or even first operand for
9497 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
9498
aca43c6c
JJ
9499 PR tree-optimization/56443
9500 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
9501 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
9502 to type_for_mode langhook.
9503
53e2e141
MT
95042013-02-25 Matt Turner <mattst88@gmail.com>
9505
9506 * doc/invoke.texi: Document r4700.
9507
259ee451
RB
95082013-02-25 Richard Biener <rguenther@suse.de>
9509
9510 PR tree-optimization/56175
9511 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
9512 split out from ...
9513 (simplify_bitwise_binary): ... here. Also guard the conversion
9514 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
9515
6d65e8f1
CM
95162013-02-25 Catherine Moore <clm@codesourcery.com>
9517
9518 Revert:
9519 2013-02-24 Catherine Moore <clm@codesourcery.com>
9520 Maciej W. Rozycki <macro@codesourcery.com>
9521 Tom de Vries <tom@codesourcery.com>
a72d8780 9522 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
9523 Iain Sandoe <iain@codesourcery.com>
9524 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 9525 Chao-ying Fu <fu@mips.com>
88b97037 9526
6d65e8f1 9527 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 9528 Document new function attributes.
6d65e8f1
CM
9529 * doc/invoke.texi (minterlink-compressed, mmicromips,
9530 m14k, m14ke, m14kec): Document new options.
9531 (minterlink-mips16): Update documentation.
9532 * doc/md.texi (ZC, ZD): Document new constraints.
9533 * configure.ac (gcc_cv_as_micromips): Check if linker
9534 supports the .set micromips directive.
9535 * configure: Regenerate.
9536 * config.in: Regenerate.
9537 * config/mips/mips-tables.opt: Regenerate.
9538 * config/mips/micromips.md: New file.
9539 * constraints.md (ZC, AD): New constraints.
9540 * config/mips/predicates.md (movep_src_register): New predicate.
9541 (movep_src_operand): New predicate.
9542 (non_volatile_mem_operand): New predicate.
9543 * config/mips/mips.md (multimem): New type.
9544 (length): Differentiate between 17-bit and 18-bit branch offsets.
9545 (MOVEP1, MOVEP2): New mode iterator.
9546 (mov_<load>l): Use ZC constraint.
9547 (mov_<load>r): Likewise.
9548 (mov_<store>l): Likewise.
9549 (mov_<store>r): Likewise.
9550 (*branch_equality<mode>_inverted): Add microMIPS support.
9551 (*branch_equality<mode>): Likewise.
9552 (*jump_absolute): Likewise.
9553 (indirect_jump_<mode>): Likewise.
9554 (tablejump_<mode>): Likewise.
9555 (<optab>_internal): Likewise.
9556 (sibcall_internal): Likewise.
9557 (sibcall_value_internal): Likewise.
9558 (prefetch): Use constraint ZD.
9559 * config/mips/mips.opt (minterlink-compressed): New option.
9560 (minterlink-mips16): Now an alias for minterlink-compressed.
9561 (mmicromips): New option.
9562 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9563 (compare_and_swap_12): Likewise.
9564 (sync_add<mode>): Likewise.
9565 (sync_<optab>_12): Likewise.
9566 (sync_old_<optab>_12): Likewise.
9567 (sync_new_<optab>_12): Likewise.
9568 (sync_nand_12): Likewise.
9569 (sync_old_nand_12): Likewise.
9570 (sync_new_nand_12): Likewise.
9571 (sync_sub<mode>): Likewise.
9572 (sync_old_add<mode>): Likewise.
9573 (sync_old_sub<mode>): Likewise.
9574 (sync_new_add<mode>): Likewise.
9575 (sync_new_sub<mode>): Likewise.
9576 (sync_<optab><mode>): Likewise.
9577 (sync_old_<optab><mode>): Likewise.
9578 (sync_new_<optab><mode>): Likewise.
9579 (sync_nand<mode>): Likewise.
9580 (sync_old_nand<mode>): Likewise.
9581 (sync_new_nand<mode>): Likewise.
9582 (sync_lock_test_and_set<mode>): Likewise.
9583 (test_and_set_12): Likewise.
9584 (atomic_compare_and_swap<mode>): Likewise.
9585 (atomic_exchange<mode>_llsc): Likewise.
9586 (atomic_fetch_add<mode>_llsc): Likewise.
9587 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9588 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9589 (umips_save_restore_pattern_p): Likewise.
9590 (umips_load_store_pair_p): Likewise.
9591 (umips_output_load_store_pair): Likewise.
9592 (umips_movep_target_p): Likewise.
9593 (umips_12bit_offset_address_p): Likewise.
9594 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9595 (mips_base_mips16): Rename this...
9596 (mips_base_compression_flags): ...to this. Update all uses.
9597 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9598 (mips_mips16_decl_p): Delete.
9599 (mips_nomips16_decl_p): Delete.
9600 (mips_get_compress_on_flags): New function.
9601 (mips_get_compress_off_flags): New function.
9602 (mips_get_compress_mode): New function.
9603 (mips_get_compress_on_name): New function.
9604 (mips_get_compress_off_name): New function.
9605 (mips_insert_attributes): Support multiple compression types.
9606 (mips_merge_decl_attributes): Likewise.
9607 (umips_12bit_offset_address_p): New function.
9608 (mips_start_function_definition): Emit .set micromips directive.
9609 (mips_call_may_need_jalx_p): New function.
9610 (mips_function_ok_for_sibcall): Add microMIPS support.
9611 (mips_print_operand_punctuation): Support short delay slots and
9612 compact jumps.
9613 (umips_swm_mask, umips_swm_encoding): New.
9614 (umips_build_save_restore): New function.
9615 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9616 (was_mips16_p): Remove.
9617 (old_compression_mode): New.
9618 (mips_set_compression_mode): New function.
9619 (mips_set_current_function): Add microMIPS support.
9620 (mips_option_override): Likewise.
9621 (umips_save_restore_pattern_p): New function.
9622 (umips_output_save_restore): New function.
9623 (umips_load_store_pair_p_1): New function.
9624 (umips_load_store_pair_p): New function.
9625 (umips_output_load_store_pair_1): New function.
9626 (umips_output_load_store_pair): New function.
9627 (umips_movep_target_p) New function.
9628 (mips_prepare_pch_save): Add microMIPS support.
9629 * config/mips/mips.h (TARGET_COMPRESSION): New.
9630 (TARGET_CPU_CPP_BUILTINS): Update macro
9631 to use new compression flags and to support microMIPS.
9632 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9633 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9634 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9635 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9636 (ASM_SPEC): Support mmicromips and mno-micromips.
9637 (M16STORE_REG_P): New macro.
9638 (MIPS_CALL): Support TARGET_MICROMIPS.
9639 (MICROMIPS_J): New macro.
9640 (mips_base_mips16): Rename this...
9641 (mips_base_compression_flags): ...to this.
9642 (UMIPS_12BIT_OFFSET_P): New macro.
9643 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9644 (MULTILIB_DIRNAMES): Likewise.
9645
5e5df392
TV
96462013-02-25 Tom de Vries <tom@codesourcery.com>
9647
9648 PR rtl-optimization/56131
9649 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
9650 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
9651 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
9652
3fdb53c1
TB
96532013-02-25 Tobias Burnus <burnus@net-b.de>
9654
9655 * doc/invoke.texi (-fsanitize=): Move from optimization
9656 to debugging options.
9657
ed358aea
AB
96582013-02-25 Andrey Belevantsev <abel@ispras.ru>
9659
9660 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
9661
f45e9053
AB
96622013-02-25 Andrey Belevantsev <abel@ispras.ru>
9663 Alexander Monakov <amonakov@ispras.ru>
9664
9665 PR middle-end/56077
9666 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
9667 flush pending lists also on non-jumps. Adjust comment.
9668
6941b508
CM
96692013-02-24 Catherine Moore <clm@codesourcery.com>
9670 Maciej W. Rozycki <macro@codesourcery.com>
9671 Tom de Vries <tom@codesourcery.com>
a72d8780 9672 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
9673 Iain Sandoe <iain@codesourcery.com>
9674 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 9675 Chao-ying Fu <fu@mips.com>
6941b508
CM
9676
9677 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 9678 Document new function attributes.
6941b508
CM
9679 * doc/invoke.texi (minterlink-compressed, mmicromips,
9680 m14k, m14ke, m14kec): Document new options.
9681 (minterlink-mips16): Update documentation.
9682 * doc/md.texi (ZC, ZD): Document new constraints.
9683 * configure.ac (gcc_cv_as_micromips): Check if linker
9684 supports the .set micromips directive.
9685 * configure: Regenerate.
9686 * config.in: Regenerate.
9687 * config/mips/mips-tables.opt: Regenerate.
9688 * config/mips/micromips.md: New file.
9689 * constraints.md (ZC, AD): New constraints.
9690 * config/mips/predicates.md (movep_src_register): New predicate.
9691 (movep_src_operand): New predicate.
9692 (non_volatile_mem_operand): New predicate.
9693 * config/mips/mips.md (multimem): New type.
9694 (length): Differentiate between 17-bit and 18-bit branch offsets.
9695 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 9696 (mov_<load>l): Use ZC constraint.
6941b508
CM
9697 (mov_<load>r): Likewise.
9698 (mov_<store>l): Likewise.
9699 (mov_<store>r): Likewise.
9700 (*branch_equality<mode>_inverted): Add microMIPS support.
9701 (*branch_equality<mode>): Likewise.
9702 (*jump_absolute): Likewise.
9703 (indirect_jump_<mode>): Likewise.
9704 (tablejump_<mode>): Likewise.
9705 (<optab>_internal): Likewise.
9706 (sibcall_internal): Likewise.
9707 (sibcall_value_internal): Likewise.
9708 (prefetch): Use constraint ZD.
9709 * config/mips/mips.opt (minterlink-compressed): New option.
9710 (minterlink-mips16): Now an alias for minterlink-compressed.
9711 (mmicromips): New option.
9712 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9713 (compare_and_swap_12): Likewise.
9714 (sync_add<mode>): Likewise.
9715 (sync_<optab>_12): Likewise.
9716 (sync_old_<optab>_12): Likewise.
9717 (sync_new_<optab>_12): Likewise.
9718 (sync_nand_12): Likewise.
9719 (sync_old_nand_12): Likewise.
9720 (sync_new_nand_12): Likewise.
9721 (sync_sub<mode>): Likewise.
9722 (sync_old_add<mode>): Likewise.
9723 (sync_old_sub<mode>): Likewise.
9724 (sync_new_add<mode>): Likewise.
9725 (sync_new_sub<mode>): Likewise.
9726 (sync_<optab><mode>): Likewise.
9727 (sync_old_<optab><mode>): Likewise.
9728 (sync_new_<optab><mode>): Likewise.
9729 (sync_nand<mode>): Likewise.
9730 (sync_old_nand<mode>): Likewise.
9731 (sync_new_nand<mode>): Likewise.
9732 (sync_lock_test_and_set<mode>): Likewise.
9733 (test_and_set_12): Likewise.
9734 (atomic_compare_and_swap<mode>): Likewise.
9735 (atomic_exchange<mode>_llsc): Likewise.
9736 (atomic_fetch_add<mode>_llsc): Likewise.
9737 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9738 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9739 (umips_save_restore_pattern_p): Likewise.
9740 (umips_load_store_pair_p): Likewise.
9741 (umips_output_load_store_pair): Likewise.
9742 (umips_movep_target_p): Likewise.
9743 (umips_12bit_offset_address_p): Likewise.
9744 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9745 (mips_base_mips16): Rename this...
9746 (mips_base_compression_flags): ...to this. Update all uses.
9747 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9748 (mips_mips16_decl_p): Delete.
9749 (mips_nomips16_decl_p): Delete.
3fdb53c1 9750 (mips_get_compress_on_flags): New function.
6941b508
CM
9751 (mips_get_compress_off_flags): New function.
9752 (mips_get_compress_mode): New function.
9753 (mips_get_compress_on_name): New function.
9754 (mips_get_compress_off_name): New function.
9755 (mips_insert_attributes): Support multiple compression types.
9756 (mips_merge_decl_attributes): Likewise.
9757 (umips_12bit_offset_address_p): New function.
9758 (mips_start_function_definition): Emit .set micromips directive.
9759 (mips_call_may_need_jalx_p): New function.
9760 (mips_function_ok_for_sibcall): Add microMIPS support.
9761 (mips_print_operand_punctuation): Support short delay slots and
9762 compact jumps.
9763 (umips_swm_mask, umips_swm_encoding): New.
9764 (umips_build_save_restore): New function.
9765 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9766 (was_mips16_p): Remove.
9767 (old_compression_mode): New.
9768 (mips_set_compression_mode): New function.
9769 (mips_set_current_function): Add microMIPS support.
9770 (mips_option_override): Likewise.
9771 (umips_save_restore_pattern_p): New function.
9772 (umips_output_save_restore): New function.
9773 (umips_load_store_pair_p_1): New function.
9774 (umips_load_store_pair_p): New function.
9775 (umips_output_load_store_pair_1): New function.
9776 (umips_output_load_store_pair): New function.
9777 (umips_movep_target_p) New function.
9778 (mips_prepare_pch_save): Add microMIPS support.
9779 * config/mips/mips.h (TARGET_COMPRESSION): New.
9780 (TARGET_CPU_CPP_BUILTINS): Update macro
9781 to use new compression flags and to support microMIPS.
9782 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9783 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9784 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9785 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9786 (ASM_SPEC): Support mmicromips and mno-micromips.
9787 (M16STORE_REG_P): New macro.
9788 (MIPS_CALL): Support TARGET_MICROMIPS.
9789 (MICROMIPS_J): New macro.
9790 (mips_base_mips16): Rename this...
9791 (mips_base_compression_flags): ...to this.
9792 (UMIPS_12BIT_OFFSET_P): New macro.
9793 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9794 (MULTILIB_DIRNAMES): Likewise.
9795
cdebbc6d
JJ
97962013-02-24 Jakub Jelinek <jakub@redhat.com>
9797
9798 PR target/52555
9799 * target-globals.c (save_target_globals): For init_reg_sets and
9800 target_reinit remporarily set this_fn_optabs to this_target_optabs.
9801
18c63565
JG
98022013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
9803
9804 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
9805 * config/aarch64/t-aarch64
9806 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
9807
2194f7a2
VM
98082013-02-22 Vladimir Makarov <vmakarov@redhat.com>
9809
9810 PR inline-asm/56148
9811 * lra-constraints.c (process_alt_operands): Reload operand
9812 conflicting with earlier clobber only if no more other conflicting
9813 operands.
9814
7d613735
JJ
98152013-02-22 Jakub Jelinek <jakub@redhat.com>
9816
9817 PR sanitizer/56393
9818 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
9819 if not linking a shared library.
9820
ac8d93a7
SL
98212013-02-22 Seth LaForge <sethml@google.com>
9822
9823 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
9824
e0237780
GY
98252013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
9826
3fdb53c1
TB
9827 * config/arm/arm.md (split for extendsidi): Update condition.
9828 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
9829 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
9830 (qhs_zextenddi_cstr): Likewise.
e0237780 9831
d7fde18c
JJ
98322013-02-21 Jakub Jelinek <jakub@redhat.com>
9833
be63b77d
JJ
9834 PR middle-end/56420
9835 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
9836 avoid signed wrapping.
9837 (expand_mult): Handle properly multiplication by
9838 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
9839 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
9840 in the compiler if coeff is HOST_WIDE_INT_MIN.
9841 (expand_divmod): Don't make ext_op1 static, change it's type to
9842 uhwi. Avoid undefined behavior in -INTVAL (op1).
9843
d7fde18c
JJ
9844 PR rtl-optimization/50339
9845 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
9846 field.
9847 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
9848 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
9849 into splitting_ashiftrt field.
9850 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
9851 ASHIFTRT.
9852 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
9853 choices.
9854
6aad4455
AH
98552013-02-20 Aldy Hernandez <aldyh@redhat.com>
9856
9857 PR middle-end/56108
9858 * trans-mem.c (execute_tm_mark): Do not expand transactions that
9859 are sure to go irrevocable.
9860
38fe784d
HPN
98612013-02-21 Hans-Peter Nilsson <hp@axis.com>
9862
9863 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
9864 scalars are valid operands.
9865
0fd44da3
MJ
98662013-02-21 Martin Jambor <mjambor@suse.cz>
9867
9868 PR tree-optimization/56310
9869 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
9870 only matching indices and non-negative final offsets.
9871 (intersect_aggregates_with_edge): Pass src_idx to
9872 agg_replacements_to_vector. Pass src_idx insstead of index to
9873 intersect_with_agg_replacements.
9874
7a92038b
MJ
98752013-02-21 Martin Jambor <mjambor@suse.cz>
9876
9877 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
9878 instead of hard-wired defaults.
9879
c0da9c37
MR
98802013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
9881
9882 * doc/invoke.texi (MIPS Options): Update documentation of the
9883 floating-point multiply-accumulate instruction restrictions.
9884
d247ea0c 98852013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
9886
9887 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9888 asan_shadow_offset on x86_64 linux.
9889
22deefcb
RB
98902013-02-21 Richard Biener <rguenther@suse.de>
9891
9892 PR tree-optimization/56415
9893 Revert
9894 2013-02-11 Richard Biener <rguenther@suse.de>
9895
9896 PR tree-optimization/56273
9897 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9898 first VRP run.
9899
7bcc6e75
JJ
99002013-02-21 Jakub Jelinek <jakub@redhat.com>
9901
a0ad148f
JJ
9902 PR bootstrap/56258
9903 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9904 instead of @itemx.
9905
7bcc6e75
JJ
9906 PR inline-asm/56405
9907 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9908 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9909
a0a7b611
JH
99102013-02-20 Jan Hubicka <jh@suse.cz>
9911
9912 PR tree-optimization/56265
88b97037
UB
9913 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9914 when target is referenced for first time.
a0a7b611 9915
c0e50f72
RB
99162013-02-20 Richard Biener <rguenther@suse.de>
9917
9918 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9919 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9920 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9921 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9922 not return anything.
9923 (rename_ssa_copies): Do not remove unused locals.
9924 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 9925 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
9926 * passes.c (execute_function_todo): Do not schedule unused locals
9927 removal if cleanup_tree_cfg did something.
9928 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9929 about the number of removed locals.
9930
a52ca739
RB
99312013-02-20 Richard Biener <rguenther@suse.de>
9932
9933 PR tree-optimization/56398
88b97037 9934 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 9935
ec9c9d1b
MJ
99362013-02-20 Martin Jambor <mjambor@suse.cz>
9937
9938 PR tree-optimization/55334
9939 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9940 restricted pointers to arrays.
9941
e91c8ed6 99422013-02-20 Richard Biener <rguenther@suse.de>
88b97037 9943 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
9944
9945 PR tree-optimization/56396
9946 * tree-ssa-ccp.c (n_const_val): New static variable.
9947 (get_value): Return NULL for SSA names we don't have a lattice
9948 entry for.
9949 (ccp_initialize): Initialize n_const_val.
9950 * tree-ssa-copy.c (n_copy_of): New static variable.
9951 (init_copy_prop): Initialize n_copy_of.
9952 (get_value): Return NULL_TREE for SSA names we don't have a
9953 lattice entry for.
9954
3d916479
MJ
99552013-02-20 Martin Jambor <mjambor@suse.cz>
9956
9957 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9958
71a86758
RB
99592013-02-20 Richard Biener <rguenther@suse.de>
9960
9961 * genpreds.c (write_lookup_constraint): Do not compare first
9962 letter of the constraint again.
9963
79836a12
RB
99642013-02-20 Richard Biener <rguenther@suse.de>
9965
9966 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9967 and ceil_log2.
9968 (get_use_iv_cost): Terminate hashtable walk when coming across
9969 an empty entry.
9970
bbe4fb2c
IZ
99712013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9972
9973 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9974 reassociation for avx2 targets.
9975
a72d8780 99762012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 9977
c77f83d5
EI
9978 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9979 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 9980 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
9981 version and TARGET_PATTERN_COMPARE check
9982 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 9983
a72d8780 99842012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 9985
a72d8780 9986 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
9987 function before branching.
9988
242387fa
AB
99892012-02-19 Andrey Belevantsev <abel@ispras.ru>
9990
9991 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9992 DUMP_INSN_RTX_UID.
9993 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9994
b4979ab9
AB
99952012-02-19 Andrey Belevantsev <abel@ispras.ru>
9996
9997 PR middle-end/55889
b4979ab9
AB
9998 * sel-sched.c: Include ira.h.
9999 (implicit_clobber_conflict_p): New function.
10000 (moveup_expr): Use it.
88b97037 10001 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 10002
24d63016
RB
100032013-02-19 Richard Biener <rguenther@suse.de>
10004
10005 PR tree-optimization/56384
10006 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10007 (vn_hash_type): Split out from ...
10008 (vn_hash_constant_with_type): ... here.
10009 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10010 (vn_phi_eq): Compare types from vn_phi_s structure.
10011 (vn_phi_lookup): Populate vn_phi_s type.
10012 (vn_phi_insert): Likewise.
10013
a475fd3d
JJ
100142013-02-19 Jakub Jelinek <jakub@redhat.com>
10015
47cc28f5
JJ
10016 PR tree-optimization/56350
10017 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10018 if haven't found reduction or nested cycle operand, rather than
10019 asserting we must find it.
10020
a475fd3d
JJ
10021 PR tree-optimization/56381
10022 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10023 to fold_build3.
10024
100252013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
10026 Jakub Jelinek <jakub@redhat.com>
10027
10028 PR target/52555
10029 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10030 (swap_optab_enable): Same.
10031 (init_all_optabs): Use argument instead of global.
88b97037 10032 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
10033 * expr.h (init_all_optabs): Add argument to prototype.
10034 (TREE_OPTIMIZATION_OPTABS): New.
10035 (save_optabs_if_changed): Protoize.
10036 * optabs.h: Declare this_fn_optabs.
10037 * optabs.c (save_optabs_if_changed): New.
10038 Declare this_fn_optabs.
10039 (init_optabs): Add argument to init_all_optabs() call.
10040 * function.c (invoke_set_current_function_hook): Handle per
10041 function optabs.
10042 * function.h (struct function): New field optabs.
10043 * config/mips/mips.c (mips_set_mips16_mode): Handle when
10044 optimization_current_node has changed.
10045 * target-globals.h (save_target_globals_default_opts): Protoize.
10046 * target-globals.c (save_target_globals_default_opts): New.
10047
3f587ca3
JDA
100482013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10049
10050 PR target/56347
10051 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10052 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
10053
10054 PR target/56214
10055 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
10056 and HImode, require all displacements to be an integer multiple of
10057 their mode size.
ceaca33e
JDA
10058 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10059 only allow QImode and HImode when reload is in progress and strict is
10060 true. Likewise for symbolic addresses. Use base14_operand to check
10061 displacements in REG+BASE addresses.
10062
fe0b4796
RB
100632013-02-18 Richard Biener <rguenther@suse.de>
10064
10065 PR tree-optimization/56366
10066 * tree-vect-loop.c (get_initial_def_for_induction): Properly
10067 handle sign-conversion of outer-loop initial induction value.
10068
6aaf596b
RB
100692013-02-18 Richard Biener <rguenther@suse.de>
10070
73db8ff1 10071 PR middle-end/56349
6aaf596b
RB
10072 * cfghooks.c (merge_blocks): If we merge a latch into another
10073 block adjust references to it.
10074 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10075 (verify_loop_structure): Verify that a recorded latch is in fact
10076 a latch.
10077
5e97dfb6
RB
100782013-02-18 Richard Biener <rguenther@suse.de>
10079
10080 PR tree-optimization/56321
10081 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10082 order SSA name release and virtual operand unlinking.
10083
825527e8
EI
100842013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10085
10086 * config/microblaze/microblaze.md (save_stack_block): Define.
10087 (restore_stack_block): Likewise.
10088
debd11d9
EI
100892013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10090
10091 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
10092 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
10093 * config/microblaze/microblaze.c (microblaze_option_override):
10094 Bail out early for PIC modes when target does not support PIC.
10095
8ec77be0
EI
100962013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10097
88b97037 10098 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
10099 Replace with a microblaze version.
10100 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 10101 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
10102 microblaze.
10103
b41288b3
JJ
101042013-02-16 Jakub Jelinek <jakub@redhat.com>
10105 Dodji Seketeli <dodji@redhat.com>
10106
10107 PR asan/56330
88b97037 10108 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
10109 (instrument_mem_region_access): Do not forget to always put
10110 instrumentation of the of 'base' and 'base + len' in a "if (len !=
10111 0) statement, even for cases where either 'base' or 'base + len'
10112 are not instrumented -- because they have been previously
10113 instrumented. Simplify the logic by putting all the statements
10114 instrument 'base + len' inside a sequence, and then insert that
10115 sequence right before the current insertion point. Then, to
10116 instrument 'base + len', just get an iterator on that statement.
10117 And do not forget to update the pointer to iterator the function
10118 received as argument.
10119
47918951
VM
101202013-02-15 Vladimir Makarov <vmakarov@redhat.com>
10121
10122 PR rtl-optimization/56348
10123 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
10124
3fb7c699
SB
101252013-02-15 Steven Bosscher <steven@gcc.gnu.org>
10126
10127 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
10128 (clean_graph_dump_file): Pass base to start_graph_dump.
10129
576fe41a
RH
101302013-02-14 Richard Henderson <rth@redhat.com>
10131
10132 PR target/55941
10133 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
10134
bb3accfa
SB
101352013-02-14 Steven Bosscher <steven@gcc.gnu.org>
10136
10137 * collect2-aix.h: Define F_LOADONLY.
10138
03143140
RB
101392013-02-14 Richard Biener <rguenther@suse.de>
10140
10141 PR lto/50494
10142 * varasm.c (output_constant_def_1): Get the decl representing
10143 the constant as argument.
10144 (output_constant_def): Wrap output_constant_def_1.
10145 (make_decl_rtl): Use output_constant_def_1 with the decl
10146 representing the constant.
10147 (build_constant_desc): Optionally re-use a decl already
10148 representing the constant.
10149 (tree_output_constant_def): Adjust.
10150
8fb06726
DS
101512013-02-14 Dodji Seketeli <dodji@redhat.com>
10152
10153 Fix an asan crash
10154 * asan.c (instrument_builtin_call): Really put the length of the
10155 second source argument into src1_len.
10156
c4bfe8bf
JJ
101572013-02-13 Jakub Jelinek <jakub@redhat.com>
10158
10159 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10160 argument. If it is false, don't create edge from then_bb to
10161 fallthru_bb.
10162 (insert_if_then_before_iter): Pass true to it.
10163 (build_check_stmt): Pass false to it.
10164 (transform_statements): Flush hash table only on extended basic
10165 block boundaries, rather than at the beginning of every bb.
10166 Don't flush hash table on nonfreeing_call_p calls.
10167 * tree-flow.h (nonfreeing_call_p): New prototype.
10168 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
10169
7afe2801
DM
101702013-02-13 David S. Miller <davem@davemloft.net>
10171
10172 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
10173
70cc3288
VM
101742013-02-13 Vladimir Makarov <vmakarov@redhat.com>
10175
10176 PR target/56184
10177 * ira.c (max_regno_before_ira): Move from ...
10178 (ira): ... here.
10179 (fix_reg_equiv_init): Use max_regno_before_ira instead of
10180 vec_safe_length.
10181
6422242b
JJ
101822013-02-13 Jakub Jelinek <jakub@redhat.com>
10183
10184 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
10185
976a81ee
RB
101862013-02-13 Richard Biener <rguenther@suse.de>
10187
10188 PR lto/56295
10189 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
10190 globals in MEM_REFs.
10191
c1874a87
RB
101922013-02-13 Richard Biener <rguenther@suse.de>
10193
10194 * loop-init.c (loop_optimizer_init): Clear loop state when
10195 re-initializing preserved loops.
10196 * loop-unswitch.c (unswitch_single_loop): Return whether
10197 we unswitched the loop. Do not verify loop state here.
88b97037 10198 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 10199
b4ab7d34
KS
102002013-02-13 Kostya Serebryany <kcc@google.com>
10201
88b97037
UB
10202 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
10203 on x86_64 linux.
b4ab7d34
KS
10204 * sanitizer.def: Rename __asan_init to __asan_init_v1.
10205
bdcbe80c
DS
102062013-02-12 Dodji Seketeli <dodji@redhat.com>
10207
10208 Avoid instrumenting duplicated memory access in the same basic block
10209 * Makefile.in (asan.o): Add new dependency on hash-table.h
10210 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
10211 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
10212 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
10213 (free_mem_ref_resources, has_mem_ref_been_instrumented)
10214 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
10215 (get_mem_ref_of_assignment): New functions.
10216 (get_mem_refs_of_builtin_call): Extract from
10217 instrument_builtin_call and tweak a little bit to make it fit with
10218 the new signature.
10219 (instrument_builtin_call): Use the new
10220 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
10221 of is_gimple_builtin_call.
10222 (instrument_derefs, instrument_mem_region_access): Insert the
10223 instrumented memory reference into the hash table.
10224 (maybe_instrument_assignment): Renamed instrument_assignment into
10225 this, and change it to advance the iterator when instrumentation
10226 actually happened and return true in that case. This makes it
10227 homogeneous with maybe_instrument_assignment, and thus give a
10228 chance to callers to be more 'regular'.
10229 (transform_statements): Clear the memory reference hash table
10230 whenever we enter a new BB, when we cross a function call, or when
10231 we are done transforming statements. Use
10232 maybe_instrument_assignment instead of instrumentation. No more
10233 need to special case maybe_instrument_assignment and advance the
10234 iterator after calling it; it's now handled just like
10235 maybe_instrument_call. Update comment.
10236
4861a1f7
RB
102372013-02-13 Richard Biener <rguenther@suse.de>
10238
10239 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
10240 Fix loop discovery code.
10241
1c86bd80
VM
102422013-02-12 Vladimir Makarov <vmakarov@redhat.com>
10243
10244 PR inline-asm/56148
10245 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 10246 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
10247 the operand is not reloaded. Prefer to reload conflicting operand
10248 if earlyclobber and matching operands are the same.
10249
7cbda518
RB
102502013-02-12 Richard Biener <rguenther@suse.de>
10251
10252 PR lto/56297
10253 * lto-streamer-out.c (write_symbol): Do not output symbols
10254 for hard register variables.
10255
e68a4ef6
GJL
102562013-02-12 Georg-Johann Lay <avr@gjlay.de>
10257
10258 PR target/54222
10259 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
10260 (umulsidi3_insn, mulsidi3_insn): New insns.
10261
a72d8780 102622013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
10263
10264 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
10265 (struct tune_params): Add vec_costs field.
10266 * config/arm/arm.c (arm_builtin_vectorization_cost)
10267 (arm_add_stmt_cost): New functions.
10268 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
10269 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
10270 (arm_default_vec_cost): New struct of type cpu_vec_costs.
10271 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
10272 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
10273 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
10274 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
10275
43320568
RB
102762013-02-12 Richard Biener <rguenther@suse.de>
10277
10278 PR lto/56295
10279 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
10280 decls again if possible.
10281
a011aa39
RB
102822013-02-12 Richard Biener <rguenther@suse.de>
10283
10284 PR middle-end/56288
10285 * tree-ssa.c (verify_ssa_name): Fix check, move
10286 SSA_NAME_IN_FREE_LIST check up.
10287
6da26889
JJ
102882013-02-12 Jakub Jelinek <jakub@redhat.com>
10289 Steven Bosscher <steven@gcc.gnu.org>
10290
10291 PR rtl-optimization/56151
10292 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
10293 equal to op0 or op1, and last_insn pattern is CODE operation
10294 with MEM dest and one of the operands matches that MEM.
10295
f80e0faf
ST
102962013-02-11 Sriraman Tallam <tmsriramgoogle.com>
10297
10298 * doc/extend.texi: Document Function Multiversioning and "default"
10299 parameter string to target attribute.
10300 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
10301 target attribute parameter is "default".
10302 (ix86_compare_version_priority): Remove checks for target attribute.
10303 (ix86_mangle_function_version_assembler_name): Change error to sorry.
10304 Remove check for target attribute equal to NULL. Add assert.
10305 (ix86_generate_version_dispatcher_body): Change error to sorry.
10306
6c59ffd1
IS
103072013-02-11 Iain Sandoe <iain@codesourcery.com>
10308 Jack Howarth <howarth@bromo.med.uc.edu>
10309 Patrick Marlier <patrick.marlier@gmail.com>
10310
10311 PR libitm/55693
10312 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
10313 define ENDFILE_SPEC as TM_DESTRUCTOR.
10314 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
10315
a72d8780 103162013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
10317 Jack Howarth <howarth@bromo.med.uc.edu>
10318 Jakub Jelinek <jakub@redhat.com>
10319
10320 PR sanitizer/55617
10321 * config/darwin.c (cdtor_record): Rename ctor_record.
10322 (sort_cdtor_records): Rename sort_ctor_records.
10323 (finalize_dtors): New routine to sort destructors by
10324 priority before use in assemble_integer.
10325 (machopic_asm_out_destructor): Use finalize_dtors if needed.
10326
b63fe007
UB
103272013-02-11 Uros Bizjak <ubizjak@gmail.com>
10328
10329 PR rtl-optimization/56275
10330 * simplify-rtx.c (avoid_constant_pool_reference): Check that
10331 offset is non-negative and less than cmode size before
10332 calling simplify_subreg.
10333
8e89b5b5
RB
103342013-02-11 Richard Biener <rguenther@suse.de>
10335
10336 PR tree-optimization/56264
10337 * cfgloop.h (fix_loop_structure): Adjust prototype.
10338 * loop-init.c (fix_loop_structure): Return the number of
10339 newly discovered loops.
10340 * tree-cfgcleanup.c (repair_loop_structures): When new loops
10341 are discovered, do a full loop-closed SSA rewrite.
10342
b4a4b56d
RB
103432013-02-11 Richard Biener <rguenther@suse.de>
10344
10345 PR tree-optimization/56273
10346 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10347 first VRP run.
10348 (check_array_ref): Fix missing newline in dumps.
10349 (search_for_addr_array): Likewise.
10350
0c885229
DE
103512013-02-09 David Edelsohn <dje.gcc@gmail.com>
10352
10353 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
10354
59ac9a55
JJ
103552013-02-09 Jakub Jelinek <jakub@redhat.com>
10356
10357 PR target/56256
10358 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
10359
25bb0bb5
VM
103602013-02-08 Vladimir Makarov <vmakarov@redhat.com>
10361
10362 PR rtl-optimization/56246
0c885229 10363 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
10364 reload pseudo.
10365 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
10366 constraints are satisfied.
10367
a698cc03
JL
103682013-02-08 Jeff Law <law@redhat.com>
10369
10370 PR debug/53948
10371 * emit-rtl.c (reg_is_parm_p): New function.
10372 * regs.h (reg_is_parm_p): New prototype.
10373 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
10374 callee-clobbered registers.
10375
e1122ddd
MM
103762013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10377
10378 PR target/56043
10379 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
10380 If there is no implicit builtin declaration, just return NULL.
10381
19c5f6e6
UB
103822013-02-08 Uros Bizjak <ubizjak@gmail.com>
10383
10384 * config/i386/sse.md (FMAMODEM): New mode iterator.
10385 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
10386 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
10387
2480f2ca 103882013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 10389
2480f2ca
UB
10390 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
10391 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
10392 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
10393
103942013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10395
10396 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
10397 (microblaze*-*-elf): Likewise.
10398 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
10399 LINK_SPEC.
10400 * config/microblaze/microblaze-c.c: Add builtin defines for
10401 _LITTLE_ENDIAN and _BIG_ENDIAN.
10402 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
10403 add to TARGET_DEFAULT flags.
76ef61fb 10404 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
10405 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
10406 * config/microblaze/microblaze.md: Update extendsidi2 and
10407 movdi_internal instructions to use low-order / high-order reg
10408 print_operands.
10409 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
10410 options and inversemask / mask of LITTLE_ENDIAN.
10411 * config/microblaze/t-microblaze: Expand multilib options to
10412 include mlittle-endian (le) and update exceptions patterns.
10413
600a5961
JJ
104142013-02-08 Jakub Jelinek <jakub@redhat.com>
10415
5df81313
JJ
10416 PR rtl-optimization/56195
10417 * lra-constraints.c (get_reload_reg): Don't reuse regs
10418 if they have smaller mode than requested, if they have
10419 wider mode than requested, try to return a SUBREG.
10420
600a5961
JJ
10421 PR tree-optimization/56250
10422 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
10423 if type is unsigned and code isn't MULT_EXPR.
10424
ff544649
GJL
104252013-02-08 Georg-Johann Lay <avr@gjlay.de>
10426
10427 PR tree-optimization/56064
10428 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
10429 bits according to mode.
10430 * fixed-value.h (fixed_from_double_int)
10431 (const_fixed_from_double_int): Adjust comments.
10432
e45cde98
RB
104332013-02-08 Richard Biener <rguenther@suse.de>
10434
10435 PR lto/56231
10436 * lto-streamer.h (struct data_in): Remove current_file, current_line
10437 and current_col members.
10438 * lto-streamer-out.c (lto_output_location): Stream changed bits
10439 en-block for efficiency.
10440 * lto-streamer-in.c (clear_line_info): Remove.
10441 (lto_input_location): Cache current file, line and column
10442 globally via local statics. Read changed bits en-block.
10443 (input_function): Do not call clear_line_info.
10444 (lto_read_body): Likewise.
10445 (lto_input_toplevel_asms): Likewise.
10446
c1ca73d8
MM
104472013-02-08 Michael Matz <matz@suse.de>
10448
10449 PR tree-optimization/52448
10450 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
10451 (nt_call_phase): New static.
10452 (add_or_mark_expr): Only mark accesses with newer phase than any
10453 call seen.
10454 (nonfreeing_call_p): New.
10455 (nt_init_block): Update nt_call_phase, mark blocks as visited.
10456 (nt_fini_block): Keep blocks marked as visited.
10457 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
10458
57548aa2
RB
104592013-02-08 Richard Biener <rguenther@suse.de>
10460
10461 * ira.c (ira): Free broken dominator information.
10462
8e10366f
UB
104632013-02-08 Uros Bizjak <ubizjak@gmail.com>
10464
10465 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
10466
f64fb0fa
MP
104672013-02-08 Marek Polacek <polacek@redhat.com>
10468
8e10366f 10469 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 10470
0375167b
RB
104712013-02-08 Richard Biener <rguenther@suse.de>
10472
10473 PR middle-end/56181
10474 * cfgloop.h (flow_loops_find): Adjust.
10475 (bb_loop_header_p): Declare.
10476 * cfgloop.c (bb_loop_header_p): New function split out from ...
10477 (flow_loops_find): ... here. Adjust function signature,
10478 support incremental loop structure update.
10479 (verify_loop_structure): Cleanup. Verify a loop is a loop.
10480 * cfgloopmanip.c (fix_loop_structure): Move ...
10481 * loop-init.c (fix_loop_structure): ... here.
10482 (apply_loop_flags): Split out from ...
10483 (loop_optimizer_init): ... here.
10484 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
10485 in incremental mode, only remove dead loops here.
10486
85d768f3
GJL
104872013-02-08 Georg-Johann Lay <avr@gjlay.de>
10488
10489 PR target/54222
10490 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
10491 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
10492 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
10493 (*round<mode>3.libgcc): New insns for fixed-modes.
10494 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
10495 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
10496 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
10497 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
10498 implementations. Define to __builtin_avr_absFX,
10499 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
10500 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
10501 __builtin_avr_countlsFX, respectively.
10502 * config/avr/avr-c.c (target.h): Include it.
10503 (enum avr_builtin_id): New enum.
10504 (avr_resolve_overloaded_builtin): New static function.
10505 (avr_register_target_pragmas): Use it to set
10506 targetm.resolve_overloaded_builtin.
10507 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
10508 tree nodes used by DEF_BUILTIN.
10509 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
10510 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
10511 <AVR_BUILTIN_xxBITS>: Same.
10512
661bc682
RB
105132013-02-08 Richard Biener <rguenther@suse.de>
10514
10515 * cfgloop.c (verify_loop_structure): Properly handle
10516 a loop exiting to another loop header.
10517 * ira-int.h (ira_loops): Remove.
10518 * ira.c (ira_loops): Remove.
10519 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
10520 (do_reload): Use loop_optimizer_finalize.
10521 * ira-build.c (create_loop_tree_nodes): Use get_loops and
10522 number_of_loops to access the loop tree.
10523 (more_one_region_p): Likewise.
10524 (finish_loop_tree_nodes): Likewise.
10525 (rebuild_regno_allocno_maps): Likewise.
10526 (mark_loops_for_removal): Likewise.
10527 (mark_all_loops_for_removal): Likewise.
10528 (remove_unnecessary_regions): Likewise.
10529 (ira_build): Likewise.
10530 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
10531
0d5049b2
RB
105322013-02-08 Richard Biener <rguenther@suse.de>
10533
10534 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
10535 * ipa-pure-const.c (analyze_function): Avoid calling
10536 mark_irreducible_loops twice.
8e10366f 10537 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 10538
499f32e8
DM
105392013-02-07 David S. Miller <davem@davemloft.net>
10540
10541 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
10542 on 'reg'.
10543 * var-tracking.c (vt_add_function_parameter): Test the presence of
10544 HAVE_window_save properly and do not remap argument registers when
10545 we have a leaf function.
10546
6edc3e32
UB
105472013-02-07 Uros Bizjak <ubizjak@gmail.com>
10548
10549 PR bootstrap/56227
10550 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
10551 instead of "ll".
10552 * config/i386/i386.c (ix86_print_operand): Ditto.
10553
5306401f
VM
105542013-02-07 Vladimir Makarov <vmakarov@redhat.com>
10555
6edc3e32 10556 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 10557
027ece11
VM
105582013-02-07 Vladimir Makarov <vmakarov@redhat.com>
10559
10560 PR rtl-optimization/56225
10561 * lra-constraints.c (process_alt_operands): Check that reload hard
10562 reg can hold value for strict_low_part.
10563
f980dfdb
JJ
105642013-02-07 Jakub Jelinek <jakub@redhat.com>
10565
10566 PR debug/56154
10567 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
10568 dwarf2out_end_function.
10569 (in_first_function_p, maybe_at_text_label_p,
10570 first_loclabel_num_not_at_text_label): New variables.
10571 (dwarf2out_var_location): In the first function find out
6edc3e32 10572 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
10573 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
10574 functions.
10575
73dd3123
EB
105762013-02-07 Eric Botcazou <ebotcazou@adacore.com>
10577
10578 PR rtl-optimization/56178
10579 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
10580 SUBREG of a register. Tidy up related block of code.
10581 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
10582 note if the source is a register or a SUBREG of a register.
10583
e3936f47
JJ
105842013-02-07 Jakub Jelinek <jakub@redhat.com>
10585
10586 PR target/56228
10587 * config/rs6000/rs6000.md (ptrm): New mode attr.
10588 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
10589 call_value_indirect_aix<pttrsize>,
10590 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
10591 m in constraints.
10592
d96d674b
MH
105932013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10594
10595 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
10596 if -bnortl. Convert to strcmp and strncmp.
10597
921f2dee
AM
105982013-02-07 Alan Modra <amodra@gmail.com>
10599
10600 PR target/54009
10601 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
10602 addresses won't wrap when offsetting.
10603 (rs6000_secondary_reload): Provide secondary reloads needed for
10604 wrapping LO_SUM addresses.
10605
d09c7dba
TS
106062013-02-06 Thomas Schwinge <thomas@codesourcery.com>
10607
10608 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
10609 MACH, just __MACH__.
10610
a44bbd48
RB
106112013-02-06 Richard Biener <rguenther@suse.de>
10612
10613 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
10614 instead of calling fix_loop_structure.
10615
6d840d99
JJ
106162013-02-06 Jakub Jelinek <jakub@redhat.com>
10617
10618 PR middle-end/56217
10619 * omp-low.c (use_pointer_for_field): Return false if
10620 lower_send_shared_vars doesn't generate any copy-out code.
10621
0f33baa9
TV
106222013-02-06 Tom de Vries <tom@codesourcery.com>
10623
10624 PR rtl-optimization/56131
10625 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
10626 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
10627 of the label is NULL. Add comment.
10628
11f1e3ab
JJ
106292013-02-05 Jakub Jelinek <jakub@redhat.com>
10630
31502f9f
JJ
10631 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
10632
a74db9bd
JJ
10633 PR sanitizer/55374
10634 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
10635 (STATIC_LIBTSAN_LIBS): Likewise.
10636 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
10637 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
10638 is defined, don't add anything else beyond that.
10639 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
10640 (LINK_COMMAND_SPEC): Use them.
10641
11f1e3ab
JJ
10642 PR tree-optimization/56205
10643 * tree-stdarg.c (check_all_va_list_escapes): Return true if
10644 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
10645 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
10646
14ac6aa2
RB
106472013-02-05 Richard Biener <rguenther@suse.de>
10648
10649 PR tree-optimization/53342
10650 PR tree-optimization/53185
10651 * tree-vectorizer.h (vect_check_strided_load): Remove.
10652 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
10653 not disallow peeling for vectorized strided loads.
10654 (vect_check_strided_load): Make static and simplify.
10655 (vect_analyze_data_refs): Adjust.
10656 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
10657 correctly when vectorizing strided loads.
10658
6f22445a
RB
106592013-02-05 Richard Biener <rguenther@suse.de>
10660
10661 * doc/install.texi: Refer to ISL, not PPL.
10662
39f9719e
JH
106632013-02-05 Jan Hubicka <jh@suse.cz>
10664
ec4224ac
JH
10665 PR tree-optimization/55789
10666 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
10667
106682013-02-05 Jan Hubicka <jh@suse.cz>
10669
10670 PR tree-optimization/55789
39f9719e
JH
10671 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
10672 the dead call anyway.
10673
956d3b33
EB
106742013-02-05 Eric Botcazou <ebotcazou@adacore.com>
10675
10676 PR sanitizer/55374
10677 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
10678
106792013-02-04 Alexander Potapenko <glider@google.com>
10680 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
10681 Jakub Jelinek <jakub@redhat.com>
10682
10683 PR sanitizer/55617
10684 * config/darwin.c (sort_ctor_records): Stabilized qsort
10685 on constructor priority by using original position.
10686 (finalize_ctors): New routine to sort constructors by
10687 priority before use in assemble_integer.
10688 (machopic_asm_out_constructor): Use finalize_ctors if needed.
10689
7ac3af38
JJ
106902013-02-04 Jakub Jelinek <jakub@redhat.com>
10691
10692 PR libstdc++/54314
10693 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
10694 about visibility on artificial decls.
10695 * config/sol2.c (solaris_assemble_visibility): Likewise.
10696
152689dc
KT
106972013-02-04 Kai Tietz <ktietz@redhat.com>
10698
10699 PR target/56186
10700 * config/i386/i386.c (function_value_ms_64): Add additional valtype
10701 argument and improve checking of return-argument types for 16-byte
10702 modes.
10703 (ix86_function_value_1): Add additional valtype argument on call
10704 of function_value_64.
10705 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
10706 handling infunction_value_64 function.
10707
2b5987b5
MGD
107082013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10709
7ac3af38 10710 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 10711
14597080
RB
107122013-02-04 Richard Biener <rguenther@suse.de>
10713
10714 PR tree-optimization/56188
10715 * tree-ssa-structalias.c (label_visit): Consider case with
10716 initially non-empty points-to set.
10717 (perform_var_substitution): Dump node mapping and clean up.
10718
ed73881e
RG
107192013-02-04 Richard Guenther <rguenther@suse.de>
10720
10721 PR lto/56168
10722 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
10723 node prevail as last resort.
10724 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 10725 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 10726
139a0707
RB
107272013-02-04 Richard Biener <rguenther@suse.de>
10728
10729 PR tree-optimization/56113
10730 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
10731 Merge into ...
10732 (equiv_class_lookup_or_add): ... this.
10733 (label_visit): Adjust and fix error in previous patch.
10734 (perform_var_substitution): Adjust.
10735
50fe8924
OE
107362013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
10737
10738 * config/sh/divtab.c: Fix formatting and comments throughout the file.
10739 * config/sh/sh4-300.md: Likewise.
10740 * config/sh/sh4a.md: Likewise.
10741 * config/sh/constraints.md: Likewise.
10742 * config/sh/sh.md: Likewise.
10743 * config/sh/netbsd-elf.h: Likewise.
10744 * config/sh/predicates.md: Likewise.
10745 * config/sh/sh-protos.h: Likewise.
10746 * config/sh/ushmedia.h: Likewise.
10747 * config/sh/linux.h: Likewise.
10748 * config/sh/sh.c: Likewise.
10749 * config/sh/superh.h: Likewise.
10750 * config/sh/elf.h: Likewise.
10751 * config/sh/sh4.md: Likewise.
10752 * config/sh/sh.h: Likewise.
10753
1a04ac2b
JDA
107542013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10755
10756 * config/pa/constraints.md: Adjust unused letters. Change "T"
10757 constraint to match_test floating_point_store_memory_operand().
10758 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
10759 (base14_operand): New.
10760 (floating_point_store_memory_operand): New.
10761 (integer_store_memory_operand): Revise to use base14_operand and
10762 reg_plus_base_memory_operand.
10763 (move_dest_operand): Allow symbolic_memory_operands.
10764 (symbolic_memory_operand): Check for LO_SOM.
10765 (symbolic_operand): Change default case to break.
10766 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
10767 CONST_DOUBLE values to be reloaded by putting them into memory when
10768 the destination is a floating point register.
10769 (movdf): Remove code to handle CONST_DOUBLE.
10770 (movsf): Likewise.
10771 (reload_indf_r1): New.
10772 (reload_insf_r1): New.
10773 Consistently use "Q" and "T" constraints with integer and floating
10774 point move instructions, respectively.
10775 (movdi): Remove FAIL.
10776 Change predicate for source operand unamed DImode move from
10777 general_operand to move_src_operand.
10778 (umulsidi3): Change predicate for destination operand to
10779 register_operand.
10780 Likewise for similar unamed patterns.
10781 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
10782 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
10783 (hppa_legitimize_address): Simplify mask calculation.
10784 (pa_emit_move_sequence): Revised handling of secondary reloads from
10785 REG+D addresses for floating point loads and stores. Directly handle
10786 loading CONST0_RTX (mode) to a floating point register.
10787 (pa_secondary_reload): Handle reloading DF and SFmode constant values
10788 to floating point registers. Don't restrict secondary reloads to
10789 floating point registers to integer modes. Revise some comments and
10790 cleanup some code.
10791 (TARGET_LEGITIMATE_ADDRESS_P): Define.
10792 (pa_legitimate_address_p): New.
10793 (pa_legitimize_reload_address): New.
10794 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
10795 (STRICT_REG_OK_FOR_BASE_P): New.
10796 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
10797 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
10798
3bf65591
DE
107992013-02-03 David Edelsohn <dje.gcc@gmail.com>
10800 Andrew Dixie <andrewd@gentrack.com>
10801
10802 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
10803 flag set.
10804
c0a8a3e6
RS
108052013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
10806
10807 * expmed.c (extract_bit_field_1): Pass the full width of the
10808 structure to get_best_reg_extraction_insn.
10809
99113dff
DE
108102013-02-01 David Edelsohn <dje.gcc@gmail.com>
10811
10812 PR target/54601
10813 * configure.ac (use_cxa_atexit): Add AIX.
10814 * configure: Regenerate.
10815
10816 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
10817
ddd84654
JJ
108182013-02-01 Jakub Jelinek <jakub@redhat.com>
10819
10820 PR debug/54793
10821 * final.c (need_profile_function): New variable.
10822 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
10823 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
10824 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
10825 notes, targetm.asm_out.function_prologue doesn't emit anything,
10826 HAVE_prologue and profiler should be emitted before prologue,
10827 set need_profile_function instead of emitting it.
10828 (final_scan_insn): If need_profile_function, emit
10829 profile_function on the first NOTE_INSN_BASIC_BLOCK or
10830 NOTE_INSN_FUNCTION_BEG note.
10831
108322013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
10833
10834 * config/rs6000/rs6000.md (smulditi3): New.
10835 (umulditi3): New.
10836
ff2a9d88
RH
10837 * config/alpha/alpha.md (umulditi3): New.
10838
14d52b90
DE
108392013-02-01 David Edelsohn <dje.gcc@gmail.com>
10840
10841 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
10842 (ASM_OUTPUT_ALIGNED_LOCAL): New.
10843
8c7ca45c
RB
108442013-02-01 Richard Biener <rguenther@suse.de>
10845
10846 PR tree-optimization/56113
10847 * tree-ssa-structalias.c (label_visit): Reduce work for
10848 single-predecessor nodes.
10849
9f419393
EB
108502013-02-01 Eric Botcazou <ebotcazou@adacore.com>
10851
10852 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
10853 range isn't testing for zero.
10854
c5f4be84
SB
108552013-01-31 Steven Bosscher <steven@gcc.gnu.org>
10856
10857 PR middle-end/56113
10858 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
10859
dbdbd982
NC
108602013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
10861 Nick Clifton <nickc@redhat.com>
10862
10863 * config/v850/constraints.md (Q): Define as a memory constraint.
10864 * config/v850/predicates.md (label_ref_operand): New predicate.
10865 (e3v5_shift_operand): New predicate.
10866 (ior_operator): New predicate.
10867 * config/v850/t-v850: Add e3v5 multilib.
10868 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
10869 (v850_gen_movdi): Prototype.
10870 * config/v850/v850.c: Add support for e3v5 architecture.
10871 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
10872 TARGET_V850E_UP.
10873 (construct_save_jarl): Add e3v5 long JARL support.
10874 (v850_adjust_insn_length): New function. Adjust length of call
10875 insns when using e3v5 instructions.
10876 (v850_gen_movdi): New function: Generate instructions to move a
10877 DImode value.
10878 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
10879 (CPP_SPEC): Define __v850e3v5__ as appropriate.
10880 (TARGET_USE_FPU): Enable for e3v5.
10881 (CONST_OK_FOR_W): New macro.
10882 (ADJUST_INSN_LENGTH): Define.
10883 * config/v850/v850.md (UNSPEC_LOOP): Define.
10884 (attr cpu): Add v850e3v5.
10885 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10886 (movdi): New pattern.
10887 (movdi_internal): New pattern.
10888 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10889 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10890 (cstoresf4): Likewise.
10891 (cstoredf4): Likewise.
10892 (insv): New pattern.
10893 (rotlso3_a): New pattern.
10894 (rotlsi3_b): New pattern
10895 (rotlsi3_v850e3v5): New pattern.
10896 (doloop_begin): New pattern.
10897 (fix_loop_counter): New pattern.
10898 (doloop_end): New pattern.
10899 (branch_normal): Add e3v5 long branch support.
10900 (branch_invert): Likewise.
10901 (branch_z_normal): Likewise.
10902 (branch_z_invert): Likewise.
10903 (branch_nz_normal): Likewise.
10904 (branch_nz_invert): Likewise.
10905 (call_internal_short): Add e3v5 register-indirect JARL support.
10906 (call_internal_long): Likewise.
10907 (call_value_internal_short): Likewise.
10908 (call_value_internal_long): Likewise.
10909 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10910 (mloop): New option.
10911 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 10912 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 10913
73861a41
PK
109142013-01-31 Paul Koning <ni1d@arrl.net>
10915
10916 PR debug/55059
10917 PR debug/54508
10918 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10919 children if parent is a class.
10920 (prune_unused_types_prune): Don't add DW_AT_declaration.
10921
e44978dc
RB
109222013-01-31 Richard Biener <rguenther@suse.de>
10923
10924 PR tree-optimization/56157
10925 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10926 match up operand with SLP child.
10927
90b10dec
JM
109282013-01-31 Jason Merrill <jason@redhat.com>
10929
04d2dadd 10930 PR debug/54410
90b10dec
JM
10931 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10932 parameters the first time.
10933 (gen_scheduled_generic_parms_dies): Check completeness here.
10934
6e616110
RB
109352013-01-31 Richard Biener <rguenther@suse.de>
10936
10937 PR middle-end/53073
10938 * common.opt (faggressive-loop-optimizations): New flag,
10939 enabled by default.
10940 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10941 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10942 infer_loop_bounds_from_undefined by it.
10943
636f59cf
RB
109442013-01-31 Richard Biener <rguenther@suse.de>
10945
10946 PR tree-optimization/56150
10947 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10948 visit virtual operands.
10949 (find_uses_to_rename_bb): Likewise.
10950
109512013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
10952
10953 PR tree-optimization/56150
10954 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10955 mixed store non-store stmts.
10956
32887460
JJ
109572013-01-30 Jakub Jelinek <jakub@redhat.com>
10958
e60e09a0
JJ
10959 PR sanitizer/55374
10960 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10961 LIBASAN_EARLY_SPEC is defined.
10962 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10963 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10964 before %o.
10965 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10966
32887460
JJ
10967 PR c++/55742
10968 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10969 invalid args instead of ICEing on it.
10970 (ix86_valid_target_attribute_tree): Return error_mark_node if
10971 ix86_valid_target_attribute_inner_p failed.
10972 (ix86_valid_target_attribute_p): Return false only if
10973 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10974 target("default") attribute.
10975 (sorted_attr_string): Change argument from const char * to tree,
10976 merge in all target attribute arguments rather than just one.
10977 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10978 instead of free. Avoid using strcat.
10979 (ix86_mangle_function_version_assembler_name): Mangle
10980 target("default") as if no target attribute is present. Adjust
10981 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10982 instead of xmalloc and XDELETEVEC instead of free.
10983 (ix86_function_versions): Don't return true if one of the decls
10984 doesn't have target attribute. If they don't and one of the decls
10985 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10986 sorted_attr_string caller. Use XDELETEVEC instead of free.
10987 (ix86_supports_function_versions): Remove.
10988 (make_name): Fix up formatting.
10989 (make_dispatcher_decl): Remove resolver_name and its initialization.
10990 Avoid leaking memory.
10991 (is_function_default_version): Return true if there is
10992 target("default") attribute rather than no target attribute at all.
10993 (make_resolver_func): Avoid leaking memory.
10994 (ix86_generate_version_dispatcher_body): Likewise.
10995 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10996 * target.def (supports_function_versions): Remove.
10997 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10998 * doc/tm.texi: Regenerated.
10999
73cca0cc
VM
110002013-01-30 Vladimir Makarov <vmakarov@redhat.com>
11001
11002 PR rtl-optimization/56144
11003 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11004 for values with side effects.
11005
11452e7b
RB
110062013-01-30 Richard Biener <rguenther@suse.de>
11007
11008 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11009 (sparseset_pop): Likewise.
11010 * cfganal.c (compute_idf): Likewise. Increase work-stack size
11011 to be able to use quick_push in the worker loop.
11012
01cb1ef5
MP
110132013-01-30 Marek Polacek <polacek@redhat.com>
11014
11015 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11016
e892936e
RB
110172013-01-30 Richard Biener <rguenther@suse.de>
11018
11019 PR lto/56147
6edc3e32 11020 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 11021
cc06c01d
GJL
110222013-01-30 Georg-Johann Lay <avr@gjlay.de>
11023
11024 PR tree-optimization/56064
11025 * fixed-value.c (fixed_from_double_int): New function.
11026 * fixed-value.h (fixed_from_double_int): New prototype.
11027 (const_fixed_from_double_int): New static inline function.
11028 * fold-const.c (native_interpret_fixed): New static function.
11029 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11030 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11031 (native_encode_fixed): New static function.
11032 (native_encode_expr) <FIXED_CST>: Use it.
11033 (native_interpret_int): Move double_int worker code to...
11034 * double-int.c (double_int::from_buffer): ...this new static method.
11035 * double-int.h (double_int::from_buffer): Prototype it.
11036
d394a308
RB
110372013-01-30 Richard Biener <rguenther@suse.de>
11038
11039 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11040 New pointer-map and obstack.
11041 (init_alias_vars): Allocate pointer-map and obstack.
11042 (delete_points_to_sets): Free them.
11043 (find_what_var_points_to): Cache result.
11044 (find_what_p_points_to): Adjust for changed interface of
11045 find_what_var_points_to.
11046 (compute_points_to_sets): Likewise.
11047 (ipa_pta_execute): Likewise.
11048
20804d96
RO
110492013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11050
11051 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11052 * configure: Regenerate.
11053 * config.in: Regenerate.
11054 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11055 #nobits/#progbits if supported.
11056
a7ad88a2
OE
110572013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
11058
11059 PR target/56121
11060 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11061 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11062 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11063
7af79f92
GY
110642013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11065
91bfca59
OE
11066 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11067 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 11068
753bcf7b
GY
110692013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11070
91bfca59
OE
11071 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11072 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 11073
8cbc2ea8
GY
110742013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11075
91bfca59
OE
11076 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11077 declaration.
11078 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11079 * config/arm/cortex-a7.md: New bypasses using
11080 arm_mac_accumulator_is_result.
8cbc2ea8 11081
697a3325
GY
110822013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11083
91bfca59 11084 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 11085 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
11086 (cortex_a7_fpfmad): New reservation.
11087 (cortex_a7_fpmacs): Use ffmas and update required units.
11088 (cortex_a7_fpmuld): Update required units and latency.
11089 (cortex_a7_fpmacd): Likewise.
11090 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
11091 (cortex_a7_neon). Likewise.
11092 (bypass) Update participating units.
697a3325 11093
29637783
GY
110942013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11095
91bfca59
OE
11096 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
11097 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
11098 from fmac to ffma.
11099 * config/arm/vfp11.md (vfp_farith): Use ffmas.
11100 (vfp_fmul): Use ffmad.
11101 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
11102 (cortex_r4_fmacd): Use ffmad.
11103 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
11104 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
11105 (cortex_a9_fmacd): Use ffmad.
11106 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
11107 (cortex_a8_vfp_macd): Use ffmad.
11108 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
11109 (cortex_a5_fpmacd): Use ffmad.
11110 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
11111 (cortex_a15_vfp_macd): Use ffmad.
11112 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 11113
2ee8a2d5
JM
111142013-01-29 Jason Merrill <jason@redhat.com>
11115
11116 PR libstdc++/54314
11117 * varasm.c (default_assemble_visibility): Don't warn about
11118 visibility on artificial decls.
11119
78d087bc
RB
111202013-01-29 Richard Biener <rguenther@suse.de>
11121
11122 PR tree-optimization/56113
11123 * tree-ssa-structalias.c (equiv_class_lookup): Also return
11124 the bitmap leader.
11125 (label_visit): Free duplicate bitmaps and record the leader instead.
11126 (perform_var_substitution): Adjust.
11127
83ba4d6f
RB
111282013-01-29 Richard Biener <rguenther@suse.de>
11129
11130 PR tree-optimization/55270
11131 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
11132 the CFG, schedule loops for fixup.
11133
66dfe13f
NC
111342013-01-29 Nick Clifton <nickc@redhat.com>
11135
11136 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
11137 SP_REG.
11138
5a579c3b
LE
111392013-01-28 Leif Ekblad <leif@rdos.net>
11140
11141 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
11142 * config/i386/i386.h (TARGET_RDOS): New macro.
11143 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
11144 * config/i386/i386.c (ix86_option_override_internal): For 64bit
11145 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
11146 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
11147 DEFAULT_LARGE_SECTION_THRESHOLD.
11148 * config/i386/i386.md (R14_REG, R15_REG): New constants.
11149 * config/i386/rdos.h: New file.
11150 * config/i386/rdos64.h: New file.
11151
51e44392
BS
111522013-01-28 Bernd Schmidt <bernds@codesourcery.com>
11153
11154 PR other/54814
11155 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
11156 TEST_HARD_REG_BIT.
11157
db1fb332
JJ
111582013-01-28 Jakub Jelinek <jakub@redhat.com>
11159
11160 PR rtl-optimization/56117
11161 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
11162 call cselib_lookup_from_insn on the MEM before calling
11163 add_insn_mem_dependence.
11164
16917761
RB
111652013-01-28 Richard Biener <rguenther@suse.de>
11166
11167 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
11168 to a stmt that didn't have one.
11169 (copy_phis_for_bb): Likewise for PHI arguments.
11170 (copy_debug_stmt): Likewise for debug stmts.
11171
b9fc0497
RB
111722013-01-28 Richard Biener <rguenther@suse.de>
11173
11174 PR tree-optimization/56034
6edc3e32 11175 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
11176 (partition_builtin_p): Adjust.
11177 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
11178 it is the last partition.
11179 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
11180 up the vertex for the definition.
11181 (classify_partition): Classify whether a partition is a
11182 PKIND_REDUCTION, thus has uses outside of the loop.
11183 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
11184 Merge all PKIND_REDUCTION partitions into the last partition.
11185 (tree_loop_distribution): Seed partitions from reductions as well.
11186
aa710d25
JJ
111872013-01-28 Jakub Jelinek <jakub@redhat.com>
11188
0bfbca58
JJ
11189 PR tree-optimization/56125
11190 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
11191 pow(x,c) into sqrt(x) * powi(x, n/2) or
11192 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
11193 optimizing for size.
11194 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
11195 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
11196 integer.
11197
aa710d25
JJ
11198 PR tree-optimization/56094
11199 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
11200 to UNKNOWN_LOCATION while gimplifying expr.
11201
77dc5297
UB
112022013-01-27 Uros Bizjak <ubizjak@gmail.com>
11203
11204 PR target/56114
11205 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
11206 operand 0 in movabs insn template for -masm=intel asm alternative.
11207 (*movabs<mode>_2): Ditto for operand 1.
11208
0bfbca58 112092013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
11210
11211 PR target/54663
11212 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
11213 of microblaze-c.o
11214
0bfbca58 112152013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
11216
11217 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
11218 tm_file.
11219
0bfbca58 112202013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
11221
11222 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
11223 Undef to avoid warning.
11224
478f60f9
MH
112252013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11226
11227 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
11228 * configure: Regenerate.
11229
d7fa6ee2
JJ
112302013-01-25 Jakub Jelinek <jakub@redhat.com>
11231
11232 PR tree-optimization/56098
11233 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
11234 for stmts with volatile ops.
11235 (cond_store_replacement): Don't optimize if assign has volatile ops.
11236 (cond_if_else_store_replacement_1): Don't optimize if either
11237 then_assign or else_assign have volatile ops.
11238 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
11239 volatile ops.
11240
f8fe87bd
GJL
112412013-01-25 Georg-Johann Lay <avr@gjlay.de>
11242
11243 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
11244
28398d0d
GJL
112452013-01-25 Georg-Johann Lay <avr@gjlay.de>
11246
11247 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
11248 missing ':' in asm example.
11249
b7d7d917
TB
112502013-01-25 Tejas Belagod <tejas.belagod@arm.com>
11251
11252 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
11253 entries into lane and laneq entries.
77dc5297
UB
11254 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
11255 Remove AdvSIMD scalar modes.
b7d7d917
TB
11256 (aarch64_sq<r>dmulh_laneq<mode>): New.
11257 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
11258 modes.
11259 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
11260 builtin implementations to relfect changes in RTL in aarch64-simd.md.
11261 * config/aarch64/iterators.md (VCOND): New.
11262 (VCONQ): New.
11263
556f9906
GJL
112642013-01-25 Georg-Johann Lay <avr@gjlay.de>
11265
11266 PR target/54222
11267 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
11268 Add NULL LIBNAME argument to existing definitions.
11269 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
11270 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
11271 * config/avr/avr.c (DEF_BUILTIN): Same.
11272 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
11273 (avr_expand_builtin): Expand to a vanilla call if a libgcc
11274 implementation is available (DECL_ASSEMBLER_NAME is set).
11275 (avr_fold_absfx): New static function.
11276 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
11277 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
11278 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
11279 AVR_BUILTIN_ABSLLK.
11280 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
11281 (abshk, absk, abslk, absllk): Provide as static inline functions.
11282
1f546bbb
MP
112832013-01-25 Marek Polacek <polacek@redhat.com>
11284
11285 PR tree-optimization/56035
11286 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
11287
7e184bd7
UB
112882012-01-24 Uros Bizjak <ubizjak@gmail.com>
11289
11290 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
11291 (*movtf_internal_rex64): Add (!o,C) alternative
11292 (*movxf_internal_rex64): Ditto.
11293 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
11294
f5ba49ac
SM
112952013-01-24 Shenghou Ma <minux.ma@gmail.com>
11296
11297 * doc/invoke.texi: fix typo.
11298 * doc/objc.texi: fix typo.
11299
a6343728
RS
113002013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
11301
11302 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
11303 for the first two alternatives.
11304
cd030c07
DN
113052013-01-24 Diego Novillo <dnovillo@google.com>
11306
77dc5297 11307 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
11308 (ggc-zone.o): Remove.
11309 * configure.ac: Remove option --with-gc.
11310 * configure: Re-generate.
11311 * doc/install.texi: Remove documentation for --with-gc.
11312 * gengtype.c (write_enum_defn): Remove. Update all users.
11313 (write_Types_process_field): Remove generation of gt_e_* argument.
11314 (output_type_enum): Remove. Update all users.
11315 (write_enum_defn): Remove. Update all users.
11316 (enum alloc_zone): Remove. Update all users.
77dc5297 11317 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
11318 * ggc-common.c (ggc_splay_alloc): Remove first argument.
11319 Update all callers.
11320 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 11321 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
11322 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
11323 Update all users.
aaf1e810 11324 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
11325 (struct alloc_zone): Remove.
11326 (ggc_internal_alloc_zone_stat): Remove.
11327 (ggc_internal_cleared_alloc_zone_stat): Remove.
11328 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
11329 (ggc_pch_count_object): Remove last argument. Update all users.
11330 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
11331 (struct alloc_zone): Remove.
11332 * ggc-zone.c: Remove.
77dc5297 11333 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
11334 (struct alloc_zone): Remove.
11335 (ggc_alloc_typed_stat): Remove.
11336 (ggc_alloc_typed): Remove.
11337 (ggc_splay_alloc): Remove first argument.
11338 (rtl_zone): Remove. Update all users.
11339 (tree_zone): Remove. Update all users.
11340 (tree_id_zone): Remove. Update all users.
11341 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 11342 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 11343 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 11344 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 11345
a861ffa4
GJL
113462013-01-24 Georg-Johann Lay <avr@gjlay.de>
11347
11348 * config/avr/avr.c (avr_out_fract): Make register numbers that
11349 might be outside of source operand signed.
11350
593c0ddd
UB
113512013-01-24 Uros Bizjak <ubizjak@gmail.com>
11352
11353 * config/i386/constraints.md (Yf): New constraint.
11354 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
11355 of f constraint to conditionaly disable x87 register preferences.
11356 (*movdf_internal): Ditto.
11357 (*movsf_internal): Ditto.
11358
e86c0101
SB
113592013-01-24 Steven Bosscher <steven@gcc.gnu.org>
11360
11361 PR inline-asm/55934
11362 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
11363 that have operands with impossible constraints.
11364 Add a FIXME for a speed-up opportunity.
11365 * lra-constraints.c (process_alt_operands): Verify that a class
11366 selected from constraints on asms is valid for the operand mode.
11367 (curr_insn_transform): Remove incorrect comment.
11368
f6fee35f
DE
113692013-01-23 David Edelsohn <dje.gcc@gmail.com>
11370
11371 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
11372 TOC operand is a valid symbol ref in the constant pool.
11373
113742013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 11375
aaf1e810 11376 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 11377
dc62d7d1
GJL
113782013-01-23 Georg-Johann Lay <avr@gjlay.de>
11379
11380 PR target/54222
11381 * config/avr/stdfix.h: New file.
11382 * t-avr (stdfix-gcc.h): New rule to build it.
11383 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
11384
2660d12d
KS
113852013-01-23 Kostya Serebryany <kcc@google.com>
11386
77dc5297
UB
11387 * config/darwin.h: remove dependency on
11388 CoreFoundation (asan on Mac OS).
2660d12d 11389
a70418fc
JJ
113902013-01-23 Jakub Jelinek <jakub@redhat.com>
11391
11392 PR target/49069
11393 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
11394 instead of cmpdi_operand for first comparison operand.
11395 Don't assert that comparison operands aren't both constants.
11396
47876a2a
JW
113972013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
11398
11399 * doc/install.texi (Downloading the Source): Update references to
11400 downloading separate components.
11401
114022013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
11403
11404 * doc/extend.texi (__int128): Improve grammar.
11405
47876a2a 114062013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
11407
11408 PR target/56028
11409 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
11410 alternative to (o,r).
11411 (*movdi_internal_rex64): Remove (!o,n) alternative.
11412 (DImode immediate->memory splitter): Remove.
11413 (DImode immediate->memory peephole2): Remove.
11414 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
11415 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
11416 alternative to (!o,*r).
11417 (*movtf_internal_sse): New pattern.
11418 (*movxf_internal_rex64): New pattern.
11419 (*movxf_internal): Disable for TARGET_64BIT.
11420 (*movdf_internal_rex64): Remove (!o,F) alternative.
11421
3a984f10
JJ
114222013-01-22 Jakub Jelinek <jakub@redhat.com>
11423
502498d5
JJ
11424 PR middle-end/56074
11425 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
11426 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
11427 * tree-vect-loop-manip.c (find_loop_location): Also ignore
11428 stmt locations where LOCATION_LOCUS of the stmt location is
11429 UNKNOWN_LOCATION or BUILTINS_LOCATION.
11430
3a984f10
JJ
11431 PR target/55686
11432 * config/i386/i386.md (UNSPEC_STOS): New.
11433 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
11434 *strsetqi_1): Add UNSPEC_STOS.
11435
fa817f7f
PC
114362013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
11437
11438 PR c++/56067
11439 * doc/invoke.texi: Remove left over -Wsynth example.
11440
8f498c1b
JJ
114412013-01-21 Jakub Jelinek <jakub@redhat.com>
11442
11443 PR tree-optimization/56051
11444 * fold-const.c (fold_binary_loc): Don't fold
11445 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
11446 a narrowing conversion, or widening conversion from signed
11447 to unsigned.
11448
47876a2a 114492013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
11450
11451 PR rtl-optimization/56023
11452 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
11453 dependent on debug instruction.
11454
5b9db1bc
MJ
114552013-01-21 Martin Jambor <mjambor@suse.cz>
11456
11457 PR middle-end/56022
11458 * function.c (allocate_struct_function): Call
11459 invoke_set_current_function_hook earlier.
11460
e8bb7d68
JJ
114612013-01-21 Jakub Jelinek <jakub@redhat.com>
11462
11463 * reload1.c (init_reload): Only initialize reload_obstack
11464 during the first call.
11465
616a4e32
MP
114662013-01-21 Marek Polacek <polacek@redhat.com>
11467
11468 * cfgloop.c (verify_loop_structure): Fix up grammar.
11469
4401981b
YHH
114702013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
11471
11472 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
11473 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
11474
8e87740b
RR
114752013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11476
11477 PR target/56058
11478 * config/arm/marvell-pj4.md: Update copyright year.
11479 Fix up use of alu to alu_reg and simple_alu_imm.
11480
47876a2a 114812013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
11482
11483 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
11484
89d56d79
VM
114852013-01-20 Vladimir Makarov <vmakarov@redhat.com>
11486
11487 PR target/55433
11488 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 11489 insn for secondary memory move when memory mode should be different.
89d56d79 11490
fe603553
JDA
114912013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11492
11493 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
11494 atomic_storedi_1): New patterns.
11495
01284895
VK
114962013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11497
11498 btver2 pipeline descriptions.
11499 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
11500 descriptions.
11501 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 11502 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
11503 type attributes.
11504 * config/i386/btver2.md: New file describing btver2 pipelines.
11505
5630e3e1
JL
115062013-01-19 Andrew Pinski <apinski@cavium.com>
11507
11508 PR tree-optimization/52631
11509 * tree-ssa-sccvn (visit_use): Before looking up the original
11510 statement, try looking up the simplified expression.
11511
650ae806
AG
115122013-01-19 Anthony Green <green@moxielogic.com>
11513
11514 * config/moxie/moxie.c (moxie_expand_prologue): Set
11515 current_function_static_stack_size.
11516
e300ec2d
JJ
115172013-01-18 Jakub Jelinek <jakub@redhat.com>
11518
11519 PR tree-optimization/56029
11520 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
11521 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
11522
a3d7af04
SS
115232013-01-18 Sharad Singhai <singhai@google.com>
11524
11525 PR tree-optimization/55995
11526 * dumpfile.c (dump_loc): Print location only if available.
11527 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
11528
66aa7879
VM
115292013-01-18 Vladimir Makarov <vmakarov@redhat.com>
11530
11531 PR target/55433
11532 * lra-constraints.c (curr_insn_transform): Reuse original insn for
11533 secondary memory move.
11534 (inherit_reload_reg): Use rclass instead of cl for
11535 check_secondary_memory_needed_p.
11536
3f0fee7b
JJ
115372013-01-18 Jakub Jelinek <jakub@redhat.com>
11538
11539 PR middle-end/56015
11540 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 11541 the case where writing real complex part of target modifies op1.
3f0fee7b 11542
70c67693
JG
115432013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
11544
11545 * config/aarch64/aarch64-simd.md
11546 (aarch64_vcond_internal<mode>): Handle unordered cases.
11547 * config/aarch64/iterators.md (v_cmp_result): New.
11548
df8de9b3
YHH
115492013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
11550 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11551
11552 * config/arm/marvell-pj4.md: New file.
11553 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
11554 * config/arm/arm.md (generic_sched): Add marvell_pj4.
11555 (generic_vfp): Likewise.
11556 * config/arm/arm-cores.def: Add marvell-pj4.
11557 * config/arm/arm-tune.md: Regenerate.
11558 * config/arm/arm-tables.opt: Regenerate.
11559 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
11560 * doc/invoke.texi: Document marvell-pj4.
11561
be30c356
TB
115622013-01-18 Tejas Belagod <tejas.belagod@arm.com>
11563
11564 * config/aarch64/arm_neon.h: Map scalar types to standard types.
11565
0bfbca58 115662013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
11567
11568 PR debug/54114
11569 PR debug/54402
11570 PR debug/49888
11571 * var-tracking.c (negative_power_of_two_p): New.
11572 (global_get_addr_cache, local_get_addr_cache): New.
11573 (get_addr_from_global_cache, get_addr_from_local_cache): New.
11574 (vt_canonicalize_addr): Rewrite using the above. Adjust the
11575 heading comment.
11576 (vt_stack_offset_p): Remove.
11577 (vt_canon_true_dep): Always canonicalize loc's address.
11578 (clobber_overlapping_mems): Make sure we have a MEM.
11579 (local_get_addr_clear_given_value): New.
11580 (val_reset): Clear local cached entries.
11581 (compute_bb_dataflow): Create and release the local cache.
11582 Disable duplicate MEMs clobbering.
11583 (emit_notes_in_bb): Clobber MEMs likewise.
11584 (vt_emit_notes): Create and release the local cache.
11585 (vt_initialize, vt_finalize): Create and release the global
11586 cache, respectively.
1f6bc337 11587 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 11588
0bfbca58 115892013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
11590
11591 PR libmudflap/53359
11592 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
11593 not found in the symtab.
11594
0bfbca58 115952013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 11596
c350ba53 11597 PR debug/56006
3aa03517
AO
11598 PR rtl-optimization/55547
11599 PR rtl-optimization/53827
11600 PR debug/53671
11601 PR debug/49888
11602 * alias.c (offset_overlap_p): New, factored out of...
11603 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
11604 the conservative special case for symbolic constants. Don't
11605 adjust zero sizes on alignment.
11606
c664546f
JL
116072013-01-18 Bernd Schmidt <bernds@codesourcery.com>
11608
11609 PR rtl-optimization/52573
11610 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
11611 REG_UNUSED for the same register.
11612
1bd3f750
MP
116132013-01-17 Richard Biener <rguenther@suse.de>
11614 Marek Polacek <polacek@redhat.com>
11615
11616 PR rtl-optimization/55833
11617 * loop-unswitch.c (unswitch_loops): Move loop verification...
11618 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
11619 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
11620 Set it to true when we're removing a loop from hierarchy tree in
11621 an irreducible region.
11622 (fix_bb_placements): Adjust caller.
11623 (fix_loop_placements): Likewise.
11624
e52a8b71
GJL
116252013-01-17 Georg-Johann Lay <avr@gjlay.de>
11626
11627 * config/avr/builtins.def (DEF_BUILTIN): Factor out
11628 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
11629 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
11630 Remove ID. Adjust comments.
11631 * config/avr/avr-c.c (avr_builtin_name): Remove.
11632 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
11633 * config/avr/avr.c (avr_tolower): New static function.
11634 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
11635 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
11636 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
11637 default expansion.
11638
8386a7ea
JH
116392013-01-17 Jan Hubicka <jh@suse.cz>
11640
610fb637 11641 PR tree-optimization/55273
8386a7ea
JH
11642 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
11643
47876a2a 116442013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
11645
11646 PR target/55981
11647 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
11648 store through atomic_store<mode>_1.
11649 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
11650
8222c37e
MJ
116512013-01-17 Martin Jambor <mjambor@suse.cz>
11652
11653 PR tree-optimizations/55264
11654 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
11655 for virtual methods.
11656 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
11657 virtual methods before inlining is over.
11658 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
11659 virtual functions.
11660 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
11661 non-virtual.
11662
79f01c76
VM
116632013-01-16 Vladimir Makarov <vmakarov@redhat.com>
11664
11665 PR rtl-optimization/56005
11666 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
11667 pending reads for prefetch.
11668
d0b6bb1b
IB
116692013-01-16 Ian Bolton <ian.bolton@arm.com>
11670
aaf1e810 11671 * config/aarch64/aarch64.md
d0b6bb1b
IB
11672 (*cstoresi_neg_uxtw): New pattern.
11673 (*cmovsi_insn_uxtw): New pattern.
11674 (*<optab>si3_uxtw): New pattern.
11675 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
11676 (*<optab>si3_insn_uxtw): New pattern.
11677 (*bswapsi2_uxtw): New pattern.
11678
cb9cf03b
RB
116792013-01-16 Richard Biener <rguenther@suse.de>
11680
11681 * tree-inline.c (tree_function_versioning): Remove set but
11682 never used variable.
11683
2cfc56b9
RB
116842013-01-16 Richard Biener <rguenther@suse.de>
11685
11686 PR tree-optimization/55964
11687 * tree-flow.h (rename_variables_in_loop): Remove.
11688 (rename_variables_in_bb): Likewise.
11689 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
11690 (copy_loop_before): Adjust and delete update-ssa status.
11691 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 11692 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
11693 (rename_variables_in_loop): Remove.
11694 (slpeel_update_phis_for_duplicate_loop): Likewise.
11695 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
11696 use available cfg machinery instead of duplicating it.
11697 Update PHI nodes and perform poor-mans SSA update here.
11698 (slpeel_tree_peel_loop_to_edge): Adjust.
11699
c25a0c60
RB
117002013-01-16 Richard Biener <rguenther@suse.de>
11701
11702 PR tree-optimization/54767
11703 PR tree-optimization/53465
11704 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
11705 (vrp_visit_phi_node): For PHI arguments coming via backedges
11706 drop all symbolical range information.
11707 (execute_vrp): Compute backedges.
11708
04b535af
RB
117092013-01-16 Richard Biener <rguenther@suse.de>
11710
11711 * doc/install.texi: Update CLooG and ISL requirements to
11712 0.18.0 and 0.11.1.
11713
8b0a1e0b
CB
117142013-01-16 Christian Bruel <christian.bruel@st.com>
11715
11716 PR target/55301
11717 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
11718 (broken_move): Handle UNSPECV_SP_SWITCH_B.
11719 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
11720
117212013-01-16 DJ Delorie <dj@redhat.com>
11722
11723 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11724 (UNSPECV_SP_SWITCH_E): New.
11725 (sp_switch_1): Change to an unspec.
11726 (sp_switch_2): Change to an unspec. Don't use post-inc when we
11727 replace $r15.
11728
117292013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
11730
11731 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
11732 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
11733 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
11734 (expand_mem_thread_fence): Ditto.
11735 (expand_mem_signal_fence): Ditto.
11736 (expand_atomic_load): Ditto.
11737 (expand_atomic_store): Ditto.
11738
0bfbca58 117392013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
11740
11741 PR rtl-optimization/55547
11742 PR rtl-optimization/53827
11743 PR debug/53671
11744 PR debug/49888
11745 * alias.c (memrefs_conflict_p): Set sizes to negative after
11746 AND adjustments.
11747
305e3ac1
JJ
117482013-01-15 Jakub Jelinek <jakub@redhat.com>
11749
11750 PR target/55940
11751 * function.c (thread_prologue_and_epilogue_insns): Always
11752 add crtl->drap_reg to set_up_by_prologue.set, even if
11753 stack_realign_drap is false.
11754
f78ac4f2
JBG
117552013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11756
11757 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
11758 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
11759 *call): Fix indention.
11760
a78a8cc4
TV
117612013-01-15 Tom de Vries <tom@codesourcery.com>
11762
11763 PR target/55876
11764 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
11765 Update comment.
11766
0e80383f
VM
117672013-01-15 Vladimir Makarov <vmakarov@redhat.com>
11768
305e3ac1 11769 PR rtl-optimization/55153
0e80383f
VM
11770 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
11771
207b5956
MJ
117722013-01-15 Martin Jambor <mjambor@suse.cz>
11773
11774 PR tree-optimization/55920
11775 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
11776 accesses as grp_to_be_debug_replaced.
11777
a7818b54
JJ
117782013-01-15 Jakub Jelinek <jakub@redhat.com>
11779
11780 PR tree-optimization/55920
11781 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
11782 there is non-useless type conversion needed from debug rhs to lhs,
11783 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
11784
b0fe107e
JM
117852013-01-15 Joseph Myers <joseph@codesourcery.com>
11786 Mikael Pettersson <mikpe@it.uu.se>
11787
11788 PR target/43961
11789 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
11790 Thumb.
11791 (ASM_OUTPUT_CASE_LABEL): Remove.
11792 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
11793 * final.c (shorten_branches): Update alignment of labels before
11794 jump tables if CASE_VECTOR_SHORTEN_MODE.
11795
34ab62ee
RB
117962013-01-15 Richard Biener <rguenther@suse.de>
11797
11798 PR bootstrap/55961
11799 * system.h: Do not include gmp.h for building host tools.
11800
783a3a05
RB
118012013-01-15 Richard Biener <rguenther@suse.de>
11802
11803 PR middle-end/55882
11804 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
11805 account for bitpos when computing alignment.
11806
3a579e09
VY
118072013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
11808
11809 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
11810 (ix86_target_macros_internal): Likewise.
11811
11812 * config/i386/i386.c (m_CORE2I7): Removed.
11813 (m_CORE_HASWELL): New macro.
11814 (m_CORE_ALL): Likewise.
11815 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
11816 (initial_ix86_arch_features): Likewise.
11817 (processor_target_table): Initializations for Core avx2.
11818 (cpu_names): New names "core-avx2".
11819 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
11820 PROCESSOR_CORE_HASWELL.
11821 (ix86_issue_rate): New case.
11822 (ia32_multipass_dfa_lookahead): Likewise.
11823 (ix86_sched_init_global): Likewise.
11824
11825 * config/i386/i386.h (TARGET_HASWELL): New macro.
11826 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
11827 (processor_type): New PROCESSOR_HASWELL.
11828
955f5a07
JJ
118292013-01-15 Jakub Jelinek <jakub@redhat.com>
11830
ff784829
JJ
11831 PR tree-optimization/55955
11832 * tree-vect-loop.c (vectorizable_reduction): Give up early on
11833 *SHIFT_EXPR and *ROTATE_EXPR codes.
11834
955f5a07
JJ
11835 PR tree-optimization/48766
11836 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
11837 -ftrapv disable -fwrapv.
11838
aeb8b4e9
GJL
118392013-01-14 Georg-Johann Lay <avr@gjlay.de>
11840
11841 PR target/55974
11842 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
11843 etc. to 1 and not to __flash.
11844 Use LL suffix for __INT24_MAX__ with -mint8.
11845 Use ULL suffix for __UINT24_MAX__ with -mint8.
11846
1c494c6a
GJL
118472013-01-14 Georg-Johann Lay <avr@gjlay.de>
11848
11849 * config/avr/avr-arch.h
11850 (struct base_arch_s): Use typedef avr_arch_t instead.
11851 (struct arch_info_s): Use typedef avr_arch_info_t instead.
11852 (struct mcu_type_s): Use typedef avr_mcu_t instead.
11853 * config/avr/avr.c: Same.
11854 * config/avr/avr-devices.c: Same.
11855 * config/avr/driver-avr.c: Same.
11856 * config/avr/gen-avr-mmcu-texi.c: Same.
11857 * config/avr/avr-mcus.def: Adjust comment.
11858
a50344cb
TB
118592013-01-14 Tejas Belagod <tejas.belagod@arm.com>
11860
88e784e6
UB
11861 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
11862 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 11863
47876a2a 118642013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
11865 Andi Kleen <ak@linux.intel.com>
11866
11867 PR target/55948
11868 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
11869 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
11870 memmodel flag.
11871
00892272
GJL
118722013-01-14 Georg-Johann Lay <avr@gjlay.de>
11873
11874 * config/avr/avr-stdint.h: Remove trailing blanks.
11875 * config/avr/avr-log.h: Same.
11876 * config/avr/avr-arch.h: Same.
11877 * config/avr/avr-devices.c: Same.
11878 * config/avr/avr-dimode.md: Same.
11879 * config/avr/predicates.md: Same.
11880 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 11881
00892272
GJL
11882 * config/avr/avr-protos.h: Same. And:
11883 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11884 (init_cumulative_args): Rename to avr_init_cumulative_args.
11885 (expand_prologue): Rename to avr_expand_prologue.
11886 (expand_epilogue): Rename to avr_expand_epilogue.
11887 (adjust_insn_length): Rename to avr_adjust_insn_length.
11888 (notice_update_cc): Rename to avr_notice_update_cc.
11889 (final_prescan_insn): Rename to avr_final_prescan_insn.
11890 * config/avr/avr.c: Same.
11891 * config/avr/avr.h: Same.
11892 * config/avr/avr.md: Remove trailing blanks.
11893 (prologue): Use avr_expand_prologue.
11894 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11895
7bb01996
RB
118962013-01-14 Richard Biener <rguenther@suse.de>
11897
11898 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11899 verify_location, collect_subblocks): New functions.
11900 (verify_gimple_in_cfg): Verify that locations only reference
11901 BLOCKs in the functions BLOCK tree.
11902
2724573f
RB
119032013-01-14 Richard Biener <rguenther@suse.de>
11904
11905 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11906 PHI argument.
11907 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11908 unshare reference.
11909 (insert_out_of_ssa_copy_on_edge): Likewise.
11910 (rewrite_close_phi_out_of_ssa): Likewise.
11911 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11912 debug expressions.
11913 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11914 propagated constants.
11915 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11916 can not be shared.
11917
9a0bbab6
GJL
119182013-01-14 Georg-Johann Lay <avr@gjlay.de>
11919
11920 * config/avr/avr-modes.def: Add GPL copyright notice.
11921
45805f17
UB
119222013-01-13 Uros Bizjak <ubizjak@gmail.com>
11923
11924 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11925 MEMMODEL_MASK to determine memory model.
11926 (atomic_store<mode>): Ditto from operands[2].
11927 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11928
9d60be38
JJ
119292013-01-13 Jakub Jelinek <jakub@redhat.com>
11930
11931 PR fortran/55935
45805f17 11932 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
11933 (fold_gimple_assign): Don't call unshare_expr here.
11934 (fold_ctor_reference): Call unshare_expr.
11935
e7f49d92
TG
119362013-01-13 Terry Guo <terry.guo@arm.com>
11937
aaf1e810
EB
11938 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11939 * doc/fragments.texi: Document MULTILIB_REUSE.
11940 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 11941 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 11942 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
11943 (tmpmultilib4): Ditto.
11944 (multilib_reuse): New multilib argument.
11945
fbd03a27
RS
119462013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11947
11948 * Makefile.in: Update copyright.
11949
b3681f13
TV
119502013-01-12 Tom de Vries <tom@codesourcery.com>
11951
11952 PR middle-end/55890
11953 * calls.c (expand_call): Check if arg_nr is valid.
11954
3f287e4b
MM
119552013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11956
11957 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11958 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
11959 documentation. Add missing '__' in front of
11960 __builtin_ia32_packssdw256.
3f287e4b 11961
1abcd5eb
AK
119622013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11963
11964 PR target/55719
11965 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11966 NO_REGS for larl operands.
11967 (s390_reload_larl_operand): Use s390_load_address instead of
11968 emit_move_insn.
11969
980d0812
RB
119702013-01-11 Richard Biener <rguenther@suse.de>
11971
11972 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11973 (verify_node_sharing): ... here.
11974 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11975
7cb9fd07
EB
119762013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11977
11978 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11979 Substitute TREECHECKING.
11980 * configure: Regenerate.
11981 * Makefile.in (TREECHECKING): New.
11982
47876a2a 119832013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
11984
11985 PR tree-optimization/44061
11986 * tree-vrp.c (extract_range_basic): Compute zero as
11987 value-range for __builtin_constant_p of function parameters.
11988
d1e082c2
RS
119892013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11990
45805f17 11991 Update copyright years.
d1e082c2 11992
f85021b0
VM
119932013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11994
9d60be38 11995 PR rtl-optimization/55672
0160442c
VM
11996 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11997 const to be eliminable.
f85021b0 11998
7a8b1ec4
DE
119992013-01-10 David Edelsohn <dje.gcc@gmail.com>
12000
12001 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12002 * configure: Regenerate.
12003
ad2e5b71
RB
120042013-01-10 Richard Biener <rguenther@suse.de>
12005
ddf9322d 12006 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 12007
ffc5b2bb
RB
120082013-01-10 Richard Biener <rguenther@suse.de>
12009
12010 PR bootstrap/55792
12011 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12012 locations for virtual PHI arguments.
12013 (rewrite_update_phi_arguments): Likewise.
12014
e1f674e4
JS
120152013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
12016
12017 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12018 on to assembler.
12019
a57fc743
JJ
120202013-01-10 Jakub Jelinek <jakub@redhat.com>
12021
12022 PR tree-optimization/55921
12023 * tree-complex.c (expand_complex_asm): New function.
12024 (expand_complex_operations_1): Call it for GIMPLE_ASM.
12025
0ff4390d
AK
120262013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12027
12028 PR target/55718
12029 * config/s390/s390.c (s390_symref_operand_p)
12030 (s390_loadrelative_operand_p): Merge the two functions.
12031 (s390_check_qrst_address, print_operand_address): Add parameters
12032 to s390_loadrelative_operand_p invokation.
12033 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12034 (s390_reload_larl_operand, s390_secondary_reload): Use
12035 s390_loadrelative_operand_p instead of s390_symref_operand_p.
12036 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12037
6f557e0e
MS
120382013-01-09 Mike Stump <mikestump@comcast.net>
12039
12040 * dse.c (record_store): Remove unnecessary assert.
12041
7770c9e9
JH
120422013-01-09 Jan Hubicka <jh@suse.cz>
12043
12044 PR tree-optimization/55569
12045 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12046 * cfgloop.h (scale_loop_profile): Likewise.
12047
a19b1432
JH
120482013-01-09 Jan Hubicka <jh@suse.cz>
12049
12050 PR lto/45375
ddf9322d
UB
12051 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12052 functions.
a19b1432
JH
12053 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12054
9a002da8
RS
120552013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
12056
12057 PR middle-end/55114
12058 * expr.h (maybe_emit_group_store): Declare.
12059 * expr.c (maybe_emit_group_store): New function.
12060 * builtins.c (expand_builtin_int_roundingfn): Call it.
12061 (expand_builtin_int_roundingfn_2): Likewise.
12062
511dcace
VM
120632013-01-09 Vladimir Makarov <vmakarov@redhat.com>
12064
e1f2b729 12065 PR rtl-optimization/55829
511dcace
VM
12066 * lra-constraints.c (match_reload): Add code for absent output.
12067 (curr_insn_transform): Add code for reloads of matched inputs
12068 without output.
12069
7b0fe4f4
UB
120702013-01-09 Uros Bizjak <ubizjak@gmail.com>
12071
12072 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12073 attribute of movddup insn to DF.
12074 (*vec_interleave_lowv2df): Ditto.
12075 (vec_dupv2df): Ditto.
12076
870ca331
JH
120772013-01-09 Jan Hubicka <jh@suse.cz>
12078
12079 PR tree-optimiation/55875
12080 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12081 EVERY_ITERATION parameter.
7b0fe4f4 12082 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
12083 (idx_infer_loop_bounds): Similarly here.
12084 (n_of_executions_at_most): Simplify
12085 to only test for cases where statement is dominated by the
7b0fe4f4 12086 particular bound; handle correctly the "postdominance" test.
870ca331
JH
12087 (scev_probably_wraps_p): Use max loop iterations info
12088 as a global bound first.
12089
6f575fe4 120902013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
12091 Nick Clifton <nickc@redhat.com>
12092
12093 * config/v850/v850.md (cbranchsf4): New pattern.
12094 (cstoresf4): New pattern.
12095 (cbranchdf4): New pattern.
12096 (cstoredf4): New pattern.
12097 (movsicc): Disallow floating point comparisons.
12098 (cmpsf_le_insn): Fix order of operators.
12099 (cmpsf_lt_insn): Likewise.
12100 (cmpsf_eq_insn): Likewise.
12101 (cmpdf_le_insn): Likewise.
12102 (cmpdf_lt_insn): Likewise.
12103 (cmpdf_eq_insn): Likewise.
12104 (cmpsf_ge_insn): Use LE comparison.
12105 (cmpdf_ge_insn): Likewise.
12106 (cmpsf_gt_insn): Use LT comparison.
12107 (cmpdf_gt_insn): Likewise.
12108 (cmpsf_ne_insn): Delete pattern.
12109 (cmpdf_ne_insn): Delete pattern.
12110 * config/v850/v850.c (v850_gen_float_compare): Use
12111 gen_cmpdf_eq_insn for NE comparison.
12112 (v850_float_z_comparison_operator)
12113 (v850_float_nz_comparison_operator): Move from here ...
12114 * config/v850/predicates.md: ... to here. Move GT and GE
12115 comparisons into v850_float_z_comparison_operator.
12116 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
12117 Delete prototype.
12118 (v850_float_nz_comparison_operator): Likewise.
12119
f0d54148
JDA
121202013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12121
12122 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
12123 with calls to gen_insvsi/gen_insvdi.
12124
8f01beca
VK
121252013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12126
12127 * config/i386/i386.c (initial_ix86_tune_features): Set up
12128 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
12129
2aa579ad
JJ
121302013-01-09 Steven Bosscher <steven@gcc.gnu.org>
12131 Jakub Jelinek <jakub@redhat.com>
12132
12133 PR tree-optimization/48189
12134 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
12135 If nitercst is 0, don't predict the exit edge.
12136
6edc3e32 121372013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
12138
12139 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
12140 in asm_fprintf with reg_names.
12141 (aarch64_print_operand_address): Likewise.
12142 (aarch64_return_addr): Likewise.
12143 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
12144
f6f94d94
JDA
121452013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12146
12147 * config/pa/pa.h (VAL_U6_BITS_P): Define.
12148 (INT_U6_BITS): Likewise.
12149 * config/pa/predicates.md (uint6_operand): New predicate.
12150 (shift5_operand, shift6_operand): Likewise.
12151 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
12152 arith32_operand.
12153 (lshrdi3): Use shift6_operand.
12154 (shrpsi4, shrpdi4): New insn patterns.
12155 (extzv): Delete expander.
12156 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
12157 predicates in unamed zero extract patterns. Tighten common constraint.
12158 (extv): Delete expander.
12159 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
12160 predicates in unamed sign extract patterns. Tighten common constraint.
12161 (insv): Delete expander.
12162 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
12163 predicates in unamed insert patterns. Tighten common constraint.
12164 Change uint32_operand predicate to uint6_operand predicate in unamed
12165 DImode pattern to insert constant values of type 1...1xxxx.
12166
36b72910
JH
121672013-01-04 Jan Hubicka <jh@suse.cz>
12168
12169 PR tree-optimization/55823
7b0fe4f4
UB
12170 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
12171 issue.
36b72910 12172
47876a2a 121732013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
12174 Uros Bizjak <ubizjak@gmail.com>
12175
12176 PR rtl-optimization/55845
12177 * df-problems.c (can_move_insns_across): Stop scanning at
12178 volatile_insn_p source instruction or give up if
12179 across_from .. across_to range contains any volatile_insn_p
12180 instructions.
12181
4369c11e
TB
121822013-01-08 Tejas Belagod <tejas.belagod@arm.com>
12183
7b0fe4f4
UB
12184 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
12185 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
12186 Declare.
4369c11e 12187 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 12188 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 12189
aeb7e7c1
JJ
121902013-01-08 Jakub Jelinek <jakub@redhat.com>
12191
12192 PR fortran/55341
12193 * asan.c (asan_clear_shadow): New function.
12194 (asan_emit_stack_protection): Use it.
12195
a02ad1aa
TB
121962013-01-08 Tejas Belagod <tejas.belagod@arm.com>
12197
12198 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
12199 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
12200 with tab instead of space.
12201
f90d87f5
NC
122022013-01-08 Nick Clifton <nickc@redhat.com>
12203
12204 * config/rl78/rl78.c (rl78_expand_prologue): Always select
12205 register bank 0 at the start of an interrupt handler.
83ffd964
NC
12206 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
12207 MDBH registers.
f90d87f5 12208
385eb93d
JG
122092013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
12210
12211 * config/aarch64/aarch64-simd.md
12212 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
12213 (aarch64_simd_bsl): Likewise.
12214 (aarch64_vcond_internal<mode>): Likewise.
12215 (vcond<mode><mode>): Likewise.
12216 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
12217 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
12218
4dcd1054
JG
122192013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
12220
12221 * config/aarch64/aarch64-builtins.c
12222 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
12223
4267a4a6
MJ
122242013-01-08 Martin Jambor <mjambor@suse.cz>
12225
12226 PR debug/55579
12227 * tree-sra.c (analyze_access_subtree): Return true also after
12228 potentially creating a debug-only replacement.
12229
5f4e6de3
JJ
122302013-01-08 Jakub Jelinek <jakub@redhat.com>
12231
3138f224
JJ
12232 PR middle-end/55890
12233 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
12234
5f4e6de3
JJ
12235 PR tree-optimization/54120
12236 * tree-vrp.c (range_fits_type_p): Don't allow
12237 src_precision < precision from signed vr to unsigned_p
12238 if vr->min or vr->max is negative.
12239 (simplify_float_conversion_using_ranges): Test can_float_p
12240 against CODE_FOR_nothing.
12241
f3ef18ff
JJ
122422013-01-08 Jakub Jelinek <jakub@redhat.com>
12243 Richard Biener <rguenther@suse.de>
12244
12245 PR middle-end/55851
12246 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
12247 types instead of just INTEGER_TYPE types.
12248
25c210f9
MK
122492013-01-07 Mark Kettenis <kettenis@openbsd.org>
12250
12251 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
12252 TF_SIZE): Define.
f90d87f5 12253
81826a7b
SE
122542013-01-07 Steve Ellcey <sellcey@mips.com>
12255
12256 PR target/42661
12257 * config/mips/mips.opt: Change mad to mmad to match documentation.
12258
35678514
GJL
122592013-01-07 Georg-Johann Lay <avr@gjlay.de>
12260
12261 PR target/55897
12262 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
12263 .progmemx.data now.
12264
e5669488
GJL
122652013-01-07 Georg-Johann Lay <avr@gjlay.de>
12266
12267 PR target/55897
12268 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
12269 (avr_addrspace_t): Add .section_name field.
12270 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
12271 array size.
12272 (avr_addrspace): Same. Initialize .section_name. Remove last
12273 NULL entry. Put __memx into .progmemx.data.
12274 (progmem_section_prefix): Remove.
12275 (avr_asm_init_sections): No need to initialize progmem_section.
12276 (avr_asm_named_section): Use avr_addrspace[].section_name to get
12277 section name prefix.
12278 (avr_asm_select_section): Ditto. And use get_unnamed_section to
12279 retrieve the progmem section.
12280 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
12281 boundary to run over avr_addrspace[].
12282 (avr_register_target_pragmas): Ditto.
12283
656e6f37
JJ
122842013-01-06 Jakub Jelinek <jakub@redhat.com>
12285
12286 * varasm.c (output_constant_def_contents): For asan_protect_global
12287 protected strings, adjust DECL_ALIGN if needed, before testing for
12288 anchored symbols.
12289 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
12290 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
12291 normal decls.
12292 (output_object_block): For asan protected decls, emit asan padding
12293 after their contents.
12294 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
12295 (asan_finish_file): Test it here instead.
12296
6edc3e32
UB
122972013-01-07 Nick Clifton <nickc@redhat.com>
12298 Matthias Klose <doko@debian.org>
12299 Doug Kwan <dougkwan@google.com>
12300 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
12301
12302 PR driver/55470
12303 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
12304
12305 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
12306
12307 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
12308
7b0fe4f4 12309 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
12310
12311 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
12312
2a095093
GJL
123132013-01-07 Georg-Johann Lay <avr@gjlay.de>
12314
f3b503f4 12315 PR target/54461
2a095093
GJL
12316 * doc/install.texi (Cross-Compiler-Specific Options): Document
12317 --with-avrlibc.
12318
383f9b34
TB
123192013-01-07 Tejas Belagod <tejas.belagod@arm.com>
12320
12321 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
12322 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
12323 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
12324 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
12325 vqmovun_high_s64): Fix source operand number and update copyright.
12326
3626621a
RB
123272013-01-07 Richard Biener <rguenther@suse.de>
12328
12329 PR middle-end/55890
12330 * gimple.h (gimple_call_builtin_p): New overload.
12331 * gimple.c (validate_call): New function.
12332 (gimple_call_builtin_p): Likewise.
12333 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12334 Use gimple_call_builtin_p.
12335 (find_func_clobbers): Likewise.
12336 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
12337 (strlen_optimize_stmt): Likewise.
12338
8b2ea410
JG
123392013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
12340
12341 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
12342 (vld1q_dup_*): Likewise.
12343 (vld1_*): Likewise.
12344 (vld1q_*): Likewise.
12345 (vld1_lane_*): Likewise.
12346 (vld1q_lane_*): Likewise.
12347
9713d329
RB
123482013-01-07 Richard Biener <rguenther@suse.de>
12349
12350 * lto-streamer.h (LTO_minor_version): Bump to 2.
12351
3520f7cc
JG
123522013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
12353
12354 * config/aarch64/aarch64-protos.h
12355 (aarch64_const_double_zero_rtx_p): Rename to...
12356 (aarch64_float_const_zero_rtx_p): ...this.
12357 (aarch64_float_const_representable_p): New.
12358 (aarch64_output_simd_mov_immediate): Likewise.
12359 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
12360 move immediate case.
12361 * config/aarch64/aarch64.c
12362 (aarch64_const_double_zero_rtx_p): Rename to...
12363 (aarch64_float_const_zero_rtx_p): ...this.
12364 (aarch64_print_operand): Allow printing of new constants.
12365 (aarch64_valid_floating_const): New.
12366 (aarch64_legitimate_constant_p): Check for valid floating-point
12367 constants.
12368 (aarch64_simd_valid_immediate): Likewise.
12369 (aarch64_vect_float_const_representable_p): New.
12370 (aarch64_float_const_representable_p): Likewise.
12371 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
12372 (aarch64_output_simd_mov_immediate): New.
12373 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
12374 (*movdf_aarch64): Likewise.
12375 * config/aarch64/constraints.md (Ufc): New.
12376 (Y): call aarch64_float_const_zero_rtx.
12377 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
12378
e167c04d
RB
123792013-01-07 Richard Biener <rguenther@suse.de>
12380
12381 PR tree-optimization/55888
12382 PR tree-optimization/55862
12383 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
12384 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
12385 not if it is contained therein.
12386
0139aaab
GJL
123872013-01-07 Georg-Johann Lay <avr@gjlay.de>
12388
12389 * config/avr/t-avr: Typo.
12390
4a176b23
GJL
123912013-01-07 Georg-Johann Lay <avr@gjlay.de>
12392
12393 PR55243
12394 * config/avr/t-avr: Don't automatically rebuild
12395 $(srcdir)/config/avr/t-multilib
12396 $(srcdir)/config/avr/avr-tables.opt
12397 $(srcdir)/doc/avr-mmcu.texi
12398 (avr-mcus): New phony target to build them on request.
12399 (s-avr-mlib, s-avr-mmcu-texi): Remove.
12400 * avr/avr-mcus.def: Adjust comments.
12401
c7afdc98
UB
124022013-01-07 Uros Bizjak <ubizjak@gmail.com>
12403
12404 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
12405
1ab05c31
RS
124062013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12407
12408 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
12409
488e3acc
RS
124102013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
12411
12412 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
12413
a89599d2
DE
124142013-01-05 David Edelsohn <dje.gcc@gmail.com>
12415
12416 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
12417 to generate profiling.
12418 * config/rs6000/aix64.h (LIB_SPEC): Same.
12419
70f09188
AP
124202013-01-04 Andrew Pinski <apinski@cavium.com>
12421
12422 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
12423 New function.
12424 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
12425
918d445f
UB
124262013-01-04 Uros Bizjak <ubizjak@gmail.com>
12427
12428 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
12429 unconditionally.
12430 (ix86_expand_move): Ditto.
12431 (ix86_zero_extend_to_Pmode): Ditto.
12432 (ix86_expand_call): Ditto.
12433 (ix86_expand_special_args_builtin): Ditto.
12434 (ix86_expand_builtin): Ditto.
12435
361618ec
RB
124362013-01-04 Richard Biener <rguenther@suse.de>
12437
12438 PR tree-optimization/55862
12439 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
12440 translating them through PHI nodes.
12441
87eab554
MJ
124422013-01-04 Martin Jambor <mjambor@suse.cz>
12443
12444 PR tree-optimization/55755
12445 * tree-sra.c (sra_modify_assign): Do not check that an access has no
12446 children when trying to avoid producing a VIEW_CONVERT_EXPR.
12447
33879b9f
MP
124482013-01-04 Marek Polacek <polacek@redhat.com>
12449
12450 PR middle-end/55859
12451 * opts.c (default_options_optimization): Clarify error message.
12452
3068819a
RB
124532013-01-04 Richard Biener <rguenther@suse.de>
12454
12455 PR middle-end/55863
12456 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
12457 reassociation.
12458
0e4ae794
JDA
124592013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12460
12461 PR target/53789
12462 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
12463 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
12464 references.
0e4ae794 12465
65c88cef
RH
124662013-01-03 Richard Henderson <rth@redhat.com>
12467
12468 * config/i386/i386.c (ix86_expand_move): Always assign to op1
12469 after eliminating TLS symbols.
12470
8ac16127
MG
124712013-01-03 Marc Glisse <marc.glisse@inria.fr>
12472
12473 PR bootstrap/50167
12474 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
12475 * graphite-poly.c (debug_gmp_value): Likewise.
12476
bb664f09
UB
124772013-01-03 Uros Bizjak <ubizjak@gmail.com>
12478
12479 PR target/55712
12480 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
12481 selected code model, define __code_mode_small__, __code_model_medium__,
12482 __code_model_large__, __code_model_32__ or __code_model_kernel__.
12483 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
12484 xchg temporary register with %k. Declare temporary register as
12485 early clobbered.
12486 [__x86_64__]: For medium and large code models, preserve %rbx register.
12487
bcf1ef00
RB
124882013-01-03 Richard Biener <rguenther@suse.de>
12489
0506634a 12490 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
12491 (dump_subscript): Adjust.
12492 (finalize_ddr_dependent): Do not dump redundant info.
12493 (analyze_siv_subscript): Adjust.
12494 (subscript_dependence_tester): Likewise.
12495 (compute_affine_dependence): Likewise.
12496
59fd17e3
RB
124972013-01-03 Richard Biener <rguenther@suse.de>
12498
12499 Revert
12500 2013-01-03 Richard Biener <rguenther@suse.de>
12501
12502 PR tree-optimization/55857
12503 * tree-vect-stmts.c (vectorizable_load): Do not setup
12504 re-alignment for invariant loads.
12505
12506 2013-01-02 Richard Biener <rguenther@suse.de>
12507
12508 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 12509 invariant load do not generate a vector load from the scalar location.
59fd17e3 12510
595c2679
RB
125112013-01-03 Richard Biener <rguenther@suse.de>
12512
12513 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
12514 for not vectorizing.
12515 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
12516 not build INDIRECT_REFs, call get_name once only.
12517 (vect_create_data_ref_ptr): Likewise. Dump base object kind
12518 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
12519
90bb7d7a
RB
125202013-01-03 Richard Biener <rguenther@suse.de>
12521
12522 PR tree-optimization/55857
12523 * tree-vect-stmts.c (vectorizable_load): Do not setup
12524 re-alignment for invariant loads.
12525
f09b77ca
RB
125262013-01-03 Richard Biener <rguenther@suse.de>
12527
12528 PR lto/55848
12529 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
12530 prefer a built-in decl.
12531
3461a16e
JJ
125322013-01-03 Jakub Jelinek <jakub@redhat.com>
12533
df8e2b4f
JJ
12534 * gcc.c (process_command): Update copyright notice dates.
12535 * gcov.c (print_version): Likewise.
12536 * gcov-dump.c (print_version): Likewise.
12537
3461a16e
JJ
12538 PR rtl-optimization/55838
12539 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
12540 iv0.step, iv1.step and step.
12541
8b5546d6
JJ
125422013-01-03 Jakub Jelinek <jakub@redhat.com>
12543 Marc Glisse <marc.glisse@inria.fr>
12544
12545 PR tree-optimization/55832
12546 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
12547 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
12548 integer_{one,zero}_node.
12549
8ab1d2e9
JJ
125502013-01-03 Jakub Jelinek <jakub@redhat.com>
12551
12552 PR debug/54402
12553 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
12554 * var-tracking.c (reverse_op): Don't add reverse ops to
12555 VALUEs that have already
0506634a 12556 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 12557
5b9ad1d4
GP
125582013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
12559
12560 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
12561
e25a6711
TJ
125622013-01-02 Teresa Johnson <tejohnson@google.com>
12563
12564 * dumpfile.c (dump_loc): Print filename with location.
12565 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
12566 new location_t parameter to emit complete unroll message with
12567 new dump framework.
12568 (canonicalize_loop_induction_variables): Compute loops location
12569 and pass to try_unroll_loop_completely.
12570 * loop-unroll.c (report_unroll_peel): New function.
12571 (peel_loops_completely): Use new dump format with location
12572 for main dumpfile message, and invoke report_unroll_peel on success.
12573 (decide_unrolling_and_peeling): Ditto.
12574 (decide_peel_once_rolling): Remove old dumpfile message subsumed
12575 by report_unroll_peel.
12576 (decide_peel_completely): Ditto.
12577 (decide_unroll_constant_iterations): Ditto.
12578 (decide_unroll_runtime_iterations): Ditto.
12579 (decide_peel_simple): Ditto.
12580 (decide_unroll_stupid): Ditto.
12581 * cfgloop.c (get_loop_location): New function.
12582 * cfgloop.h (get_loop_location): Declare.
12583
77878621
ST
125842013-01-02 Sriraman Tallam <tmsriram@google.com>
12585
12586 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
12587 NULL.
12588
9e65d03e
JDA
125892013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12590
12591 PR middle-end/55198
12592 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
12593 BLKmode objects when EXPAND_MEMORY is specified.
12594
6a7da30f
ST
125952013-01-02 Sriraman Tallam <tmsriram@google.com>
12596
12597 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
12598 in loop predicate.
12599 (fold_builtin_cpu): Do not share cpu model decls across statements.
12600
e78167f2
JM
126012013-01-02 Jason Merrill <jason@redhat.com>
12602
12603 PR c++/55804
12604 * tree.c (build_array_type_1): Revert earlier change.
12605
8c075fb4
YZ
126062013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
12607
12608 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
12609 "cortex-a57".
12610 * config/aarch64/aarch64-tune.md: Re-generate.
12611
0682ed3e
RB
126122013-01-02 Richard Biener <rguenther@suse.de>
12613
12614 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 12615 invariant load do not generate a vector load from the scalar location.
0682ed3e 12616
b8f6a302
RB
126172013-01-02 Richard Biener <rguenther@suse.de>
12618
12619 PR bootstrap/55784
12620 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
12621 * configure: Regenerate.
12622
04b80dbb
RS
126232013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12624
12625 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
12626 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
12627 (expand_builtin_int_roundingfn_2): Keep the original target around
12628 for the fallback case.
12629
635b0b0c
RS
126302013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12631
12632 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
12633 to be clear for sign changes.
12634
42d57399
JH
126352013-01-01 Jan Hubicka <jh@suse.cz>
12636
12637 * ipa-inline-analysis.c: Fix formatting.
12638
5bb6669d
JJ
126392013-01-01 Jakub Jelinek <jakub@redhat.com>
12640
12641 PR tree-optimization/55831
12642 * tree-vect-loop.c (get_initial_def_for_induction): Use
12643 gsi_after_labels instead of gsi_start_bb.
ad41bd84 12644\f
86a2db33 12645Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
12646
12647Copying and distribution of this file, with or without modification,
12648are permitted in any medium without royalty provided the copyright
12649notice and this notice are preserved.