]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
mips.h (ISA_HAS_NMADD4_NMSUB4): Remove TARGET_MIPS5400 checking.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
d4ed27eb
MR
12013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
4 TARGET_MIPS5400 checking.
5
7a5add18
PB
62013-07-16 Jakub Jelinek <jakub@redhat.com>
7 Peter Bergner <bergner@vnet.ibm.com>
8
9 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
10 registers in the comment.
11 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
12 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
13 rather than FIRST_PSEUDO_REGISTERS.
14
152013-07-16 Peter Bergner <bergner@vnet.ibm.com>
c694dc01
PB
16
17 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
18 enable extra ISA flags with TARGET_HTM.
19
d2ab0929
MR
202013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
21
22 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
23 Fix comment typos.
24
839c74bc
CH
252013-07-15 Cong Hou <congh@google.com>
26
27 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
28 in compare function for sorting.
29
7a5add18 302013-07-15 Peter Bergner <bergner@vnet.ibm.com>
0258b6e4
PB
31
32 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
33 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
34 * config/rs6000/rs6000.opt: Add -mhtm option.
35 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
36 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
37 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
38 __HTM__ if the HTM instructions are available.
39 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
40 htm_spr_reg_operand): New define_predicates.
41 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
42 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
43 Include htm.md.
44 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
45 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
46 HTM builtin functions.
47 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
48 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
49 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
50 (rs6000_builtin_mask_calculate): Likewise.
51 (rs6000_option_override_internal): Likewise.
52 (bdesc_htm): Add new HTM builtin support.
53 (htm_spr_num): New function.
54 (htm_spr_regno): Likewise.
55 (rs6000_htm_spr_icode): Likewise.
56 (htm_expand_builtin): Likewise.
57 (htm_init_builtins): Likewise.
58 (rs6000_expand_builtin): Add support for HTM builtin functions.
59 (rs6000_init_builtins): Likewise.
60 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm option.
61 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
62 (TARGET_HTM, MASK_HTM): Define macros.
63 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
64 (FIXED_REGISTERS): Likewise.
65 (CALL_USED_REGISTERS): Likewise.
66 (CALL_REALLY_USED_REGISTERS): Likewise.
67 (REG_ALLOC_ORDER): Likewise.
68 (enum reg_class): Likewise.
69 (REG_CLASS_NAMES): Likewise.
70 (REG_CLASS_CONTENTS): Likewise.
71 (REGISTER_NAMES): Likewise.
72 (ADDITIONAL_REGISTER_NAMES): Likewise.
73 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
74 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
75 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
76 * config/rs6000/htm.md: New file.
77 * config/rs6000/htmintrin.h: New file.
78 * config/rs6000/htmxlintrin.h: New file.
79
87dd8ab0
MS
802013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
81
82 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
83 Define SYMBOL_TINY_GOT, update comment.
84 * config/aarch64/aarch64.c
85 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
86 (aarch64_expand_mov_immediate): Likewise.
87 (aarch64_print_operand): Likewise.
88 (aarch64_classify_symbol): Likewise.
89 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
90 (ldr_got_tiny): Define.
91
52d676b6
TG
922013-07-13 Tobias Grosser <tobias@grosser.es>
93
94 PR tree-optimization/54094
95 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
96 scheduling dimension for the parallelism check from the polyhedral
97 information in the AST.
98 * graphite-dependences.c (carries_deps): Do not assume the schedule is
99 in 2D + 1 form.
100
286e8fc1
JM
1012013-07-13 Jason Merrill <jason@redhat.com>
102
103 * print-tree.c (debug_vec_tree): Use debug_raw.
104 (debug_raw (vec<tree, va_gc> &)): New.
105 (debug_raw (vec<tree, va_gc> *)): New.
106 * tree.h: Declare them.
107
e43257e8
BC
1082013-07-13 Bin Cheng <bin.cheng@arm.com>
109
110 * ifcvt.c (ifcvt_after_combine): New static variable.
111 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
112 for size.
113 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
114 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
115 rest_of_handle_if_after_reload): Pass new argument for if_convert.
116
da582d46
MR
1172013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
118
119 * config/mips/mips.c (mips_expand_call): Remove empty statement.
120
18b0ea8f
MM
1212013-07-12 Michael Matz <matz@suse.de>
122
123 PR middle-end/55771
124 * convert.c (convert_to_real): Reject non-float inner types.
125
e4f0f84d
TB
1262013-07-12 Tejas Belagod <tejas.belagod@arm.com>
127
128 * config/aarch64/aarch64-protos.h
129 (aarch64_simd_immediate_valid_for_move): Remove.
130 * config/aarch64/aarch64.c (simd_immediate_info): New member.
131 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
132 cases.
133 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
134
76500022
SE
1352013-07-11 Steve Ellcey <sellcey@mips.com>
136
137 * config/mips/mips.c (mips_conditional_register_usage): Do not
138 use t[0-7] registers in MIPS16 mode when optimizing for size.
139
78039734
ST
1402013-07-11 Sriraman Tallam <tmsriram@google.com>
141
142 * config/i386/i386.c (dispatch_function_versions): Fix array
143 indexing of function_version_info to match actual_versions.
144
7b24b675
TJ
1452013-07-11 Teresa Johnson <tejohnson@google.com>
146
147 * vec.h (struct va_gc): Move release out-of-line.
148 (va_gc::release): Call ggc_free on released vec.
149
85d4cbb8
UW
1502013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
151
152 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
153 Require GOT register as additional operand in UNSPEC.
154 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
155 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
156 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
157 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
158 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
159 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
160 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
161
52b3f9e2
GJL
1622013-07-11 Georg-Johann Lay <avr@gjlay.de>
163
164 PR target/57631
165 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
166 name seen by assembler/linker rather if available.
167
3f3e266e
AS
1682013-07-11 Andreas Schwab <schwab@suse.de>
169
170 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
171
21231ca6
VM
1722013-07-10 Vladimir Makarov <vmakarov@redhat.com>
173
174 * lra-constraints.c (curr_insn_transform): Switch off optional
175 reloads.
176
d331d374
JM
1772013-07-10 Joseph Myers <joseph@codesourcery.com>
178
673c2f63
JM
179 * doc/tm.texi.in: Move hook documentation to ....
180 * target.def: ... here.
181
d331d374
JM
182 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
183 text on @hook line.
184 * doc/tm.texi: Regenerate.
185
dfeadaa0
PC
1862013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
187
188 PR c++/57869
189 * doc/invoke.texi: Document -Wconditionally-supported.
190
bb6f2bac
GJL
1912013-07-10 Georg-Johann Lay <avr@gjlay.de>
192
193 PR target/57844
194 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
195 of my_fp.
196
5219b232
GJL
1972013-07-10 Georg-Johann Lay <avr@gjlay.de>
198
199 PR target/57506
200 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
201 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
202 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
203 Remove duplicate devices.
204 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
205 * config/avr/t-multilib: Regenerate.
206 * config/avr/avr-tables.opt: Regenerate.
207 * doc/avr-mmcu.texi: Regenerate.
208
283045c0
GJL
2092013-07-10 Georg-Johann Lay <avr@gjlay.de>
210
211 PR target/56987
212 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
213
ceb2d59f 2142013-07-10 Graham Stott <graham.stott@btinternet.com>
6a2fa4b2 215
ceb2d59f
GS
216 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
217 the cost of MULT when optimizing for size.
218
055e0a99
JBG
2192013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
220
221 * config/cr16/cr16-protos.h: Don't include target.h.
222
ef43e868
JM
2232013-07-09 Joseph Myers <joseph@codesourcery.com>
224
225 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
226 adjust register size for TDmode and TFmode for VSX registers.
227
4a283fdf
KT
2282013-07-08 Kai Tietz <ktietz@redhat.com>
229
230 PR target/56892
231 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
232 hook_bool_const_tree_true.
233
2cf4c39e
AK
2342013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
235
236 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
237 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
238 * config/s390/s390.md: Define FPR*_REGNUM constants.
239 Fix FPR2_REGNUM constant (18 -> 17).
240 ("*trunc<BFP:mode><DFP_ALL:mode>2")
241 ("*trunc<DFP_ALL:mode><BFP:mode>2")
242 ("trunc<BFP:mode><DFP_ALL:mode>2")
243 ("trunc<DFP_ALL:mode><BFP:mode>2")
244 ("*extend<BFP:mode><DFP_ALL:mode>2")
245 ("*extend<DFP_ALL:mode><BFP:mode>2")
246 ("extend<BFP:mode><DFP_ALL:mode>2")
247 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
248 FPR4_REGNUM.
249
e6ac0270 2502013-07-08 Graham Stott <graham.stott@btinternet.com>
e6ac0270 251
6a2fa4b2 252 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
64a92610 253
b89b22fc
AK
2542013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
255
256 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
257 and cfun_fpr_bit_p to cfun_fpr_save_p.
258 (s390_frame_area, s390_register_info, s390_frame_info)
259 (s390_emit_prologue, s390_emit_epilogue)
260 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
261 register numbers.
262 * config/s390/s390.h: Define *_REGNUM macros for floating point
263 register numbers.
264
07f398aa
EB
2652013-07-08 Eric Botcazou <ebotcazou@adacore.com>
266
267 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
268
75fefa91
PCC
2692013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
270
271 PR rtl-optimization/57786
272 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
273 and break out of the loop when it is set to false.
274
046f1eee
JJ
2752013-07-08 Jakub Jelinek <jakub@redhat.com>
276
8140c065
JJ
277 PR target/57819
278 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
279 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
280 (const_int 63)) 0)).
281 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
282 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
283 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
284
046f1eee
JJ
285 PR rtl-optimization/57829
286 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
287 mask bits outside of mode are just sign-extension from mode to HWI.
288
930b700b
MZ
2892013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
290
291 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
292 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
293 adjust_address instead of change_address to keep info about alignment.
294 (emit_strmov): Remove.
295 (emit_memmov): New function.
296 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
297 (expand_movmem_epilogue): Likewise and return updated rtx for
298 destination.
299 (expand_constant_movmem_prologue): Likewise and return updated rtx for
300 destination and source.
301 (decide_alignment): Refactor, handle vector_loop.
302 (ix86_expand_movmem): Likewise.
303 (ix86_expand_setmem): Likewise.
304 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
305
7b9d1bd8
UB
3062013-07-07 Uros Bizjak <ubizjak@gmail.com>
307
308 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
309 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
310
eabb5f48
UB
3112013-07-06 Uros Bizjak <ubizjak@gmail.com>
312
313 * config/i386/sse.md (sse_movlhps): Change alternative 3
314 of operand 2 to "m".
315
3162013-07-06 Uros Bizjak <ubizjak@gmail.com>
317
318 PR target/57807
319 * config/i386/sse.md (iptr): New mode attribute.
320 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
321 (<sse>_vm<plusminus_insn><mode>3): Ditto.
322 (<sse>_vmmul<mode>3): Ditto.
323 (<sse>_vmdiv<mode>3): Ditto.
324 (sse_vmrcpv4sf2): Ditto.
325 (<sse>_vmsqrt<mode>2): Ditto.
326 (sse_vmrsqrtv4sf2): Ditto.
327 (<sse>_vm<code><mode>3): Ditto.
328 (avx_vmcmp<mode>3): Ditto.
329 (<sse>_vmmaskcmp<mode>3): Ditto.
330 (<sse>_comi): Ditto.
331 (<sse>_ucomi): Ditto.
332 (*xop_vmfrcz_<mode>): Ditto.
333 (*fmai_fmadd_<mode>): Ditto.
334 (*fmai_fmsub_<mode>): Ditto.
335 (*fmai_fnmadd_<mode>): Ditto.
336 (*fmai_fnmsub_<mode>): Ditto.
337 (*fma4i_vmfmadd_<mode>): Ditto.
338 (*fma4i_vmfmsub_<mode>): Ditto.
339 (*fma4i_vmfnmadd_<mode>): Ditto.
340 (*fma4i_vmfnmsub_<mode>): Ditto.
341 (*xop_vmfrcz_<mode>): Ditto.
342 (sse_cvtps2pi): Ditto.
343 (sse_cvttps2pi): Ditto.
344 (sse_cvtss2si): Ditto.
345 (sse_cvtss2si_2): Ditto.
346 (sse_cvtss2siq_2): Ditto.
347 (sse_cvttss2si): Ditto.
348 (sse_cvttss2siq): Ditto.
349 (sse_cvtsd2si): Ditto.
350 (sse_cvtsd2si_2): Ditto.
351 (sse_cvtsd2siq_2): Ditto.
352 (sse_cvttsd2si): Ditto.
353 (sse_cvttsd2siq): Ditto.
354 (sse_cvtsd2ss): Ditto.
355 (sse_cvtss2sd): Ditto.
356 (avx2_pbroadcast<mode>): Ditto.
357 (avx2_pbroadcast<mode>_1): Ditto.
358 (*avx_vperm_broadcast_v4sf): Ditto.
359
360 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
361 (sse_movlhps): Ditto.
362 (sse_storehps): Ditto.
363 (sse_loadhps): Ditto.
364 (sse_storelps): Ditto.
365 (sse_loadlps): Ditto.
366 (*vec_concatv4sf): Ditto.
367 (*vec_interleave_highv2df): Ditto.
368 (*vec_interleave_lowv2df): Ditto.
369 (*vec_extractv2df_1_sse): Ditto.
370 (*vec_extractv2df_0_sse): Ditto.
371 (sse2_storelpd): Ditto.
372 (sse2_loadlpd): Ditto.
373 (sse2_movsd): Ditto.
374 (*vec_concatv4si): Ditto.
375 (vec_concatv2di): Ditto.
376
377 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
378 for Intel asm dialect.
379 (mmx_punpcklwd): Ditto.
380 (mmx_punpckldq): Ditto.
381
382 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
383 for intel assembler dialect.
384
1f6eac90
JJ
3852013-07-06 Jakub Jelinek <jakub@redhat.com>
386
387 PR target/29776
388 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
389 for BUILT_IN_C{LZ,LRSB}*.
390 * tree.h (CASE_INT_FN): Add FN##IMAX case.
391 * tree-vrp.c (extract_range_basic): Handle
392 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
393 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
394 fall thru to code calling set_value*.
395 * builtins.c (expand_builtin): Remove *IMAX cases.
396 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
397 if width is bigger than 2*HWI.
398
2b778c9d
VM
3992013-07-05 Vladimir Makarov <vmakarov@redhat.com>
400
401 PR rtl-optimization/55342
402 * lra-int.h (lra_subreg_reload_pseudos): New.
403 * lra.c: Add undoing optional reloads to the block diagram.
404 (lra_subreg_reload_pseudos): New.
405 (lra_optional_reload_pseudos): Change comments.
406 (lra): Init and clear lra_subreg_reload_pseudos. Clear
407 lra_optional_reload_pseudos after undo transformations.
408 * lra-assigns.c (pseudo_prefix_title): New.
409 (lra_setup_reg_renumber): Use it.
410 (spill_for): Ditto. Check subreg reload pseudos too.
411 (assign_by_spills): Consider subreg reload pseudos too.
412 * lra-constraints.c (simplify_operand_subreg): Use
413 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
414 (curr_insn_transform): Recognize and do optional reloads.
415 (undo_optional_reloads): New.
416 (lra_undo_inheritance): Call undo_optional_reloads.
417
207156e4
TQ
4182013-07-05 Thomas Quinot <quinot@adacore.com>
419
420 * tree-complex.c (expand_complex_operations_1): Fix typo.
421
8990e73a
TB
4222013-07-04 Tejas Belagod <tejas.belagod@arm.com>
423
424 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
425 (tune_params): New member 'const vec_costs'.
426 * config/aarch64/aarch64.c (generic_vector_cost): New.
427 (generic_tunings): New member 'generic_vector_cost'.
428 (aarch64_builtin_vectorization_cost): New.
429 (aarch64_add_stmt_cost): New.
430 (TARGET_VECTORIZE_ADD_STMT_COST): New.
431 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
432
f7bc421d
JJ
4332013-07-03 Jakub Jelinek <jakub@redhat.com>
434
435 PR target/57777
436 * config/i386/predicates.md (vsib_address_operand): Disallow
437 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
438
e90d1568
HPN
4392013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
440
441 PR middle-end/55030
442 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
443 expand_builtin_setjmp_receiver.
444 (expand_label): Adjust, call expand_builtin_setjmp_receiver
445 with NULL for the label parameter.
446 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
447 the frame-pointer. Adjust comments.
448 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
449 only if LABEL is non-NULL.
450
cbd7413b
YZ
4512013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
452
453 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
454 (ARM_ABI_AAPCS64): Ditto.
455 (arm_abi): Ditto.
456 (ARM_DEFAULT_ABI): Ditto.
457
dec11868
JG
4582013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
459
460 * config/aarch64/aarch64-builtins.c
461 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
462 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
463 (st1): Likewise.
464 * config/aarch64/aarch64-simd.md
465 (aarch64_ld1<VALL:mode>): New.
466 (aarch64_st1<VALL:mode>): Likewise.
467 * config/aarch64/arm_neon.h
468 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
469
786fb9b6
ST
4702013-07-02 Sriraman Tallam <tmsriram@google.com>
471
0ba6aff3
UB
472 * config/i386/i386.c (gate_insert_vzeroupper): Check if
473 target ISA is AVX.
786fb9b6
ST
474 (ix86_option_override_internal):Turn on all -mavx target flags by
475 default as they are dependent on AVX anyway.
476
4b043553
CC
4772013-07-02 Cary Coutant <ccoutant@google.com>
478
479 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
480 deterministic hash.
481 (loc_checksum_ordered): Likewise.
482 (hash_loc_operands): Remove inline keyword.
483
c4e87a13
JJ
4842013-07-02 Jakub Jelinek <jakub@redhat.com>
485
486 PR tree-optimization/57741
487 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
488 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
489 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
490 Allow REAL_CST step_exprs if flag_associative_math.
491 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
492
26366d28
IB
4932013-07-02 Ian Bolton <ian.bolton@arm.com>
494
0ba6aff3 495 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 496
2879bb2b
IB
4972013-07-02 Ian Bolton <ian.bolton@arm.com>
498
499 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
500
afc5e8a6
KT
5012013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
502
503 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
504 encoding.
505 (iorsi3_insn): Likewise.
506 (arm_xorsi3): Likewise.
507
31f8442b
SN
5082013-07-01 Sofiane Naci <sofiane.naci@arm.com>
509
510 * arm.md (attribute "wtype"): Delete. Move attribute values from here
511 to ...
512 (attribute "type"): ... here, and prefix with "wmmx_".
513 (attribute "core_cycles"): Update for attribute changes.
514 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
515 (tbcstv4hi): Likewise.
516 (tbcstv2si): Likewise.
517 (iwmmxt_iordi3): Likewise.
518 (iwmmxt_xordi3): Likewise.
519 (iwmmxt_anddi3): Likewise.
520 (iwmmxt_nanddi3): Likewise.
521 (iwmmxt_arm_movdi): Likewise.
522 (iwmmxt_movsi_insn): Likewise.
523 (mov<mode>_internal): Likewise.
524 (and<mode>3_iwmmxt): Likewise.
525 (ior<mode>3_iwmmxt): Likewise.
526 (xor<mode>3_iwmmxt): Likewise.
527 (add<mode>3_iwmmxt): Likewise.
528 (ssaddv8qi3): Likewise.
529 (ssaddv4hi3): Likewise.
530 (ssaddv2si3): Likewise.
531 (usaddv8qi3): Likewise.
532 (usaddv4hi3): Likewise.
533 (usaddv2si3): Likewise.
534 (sub<mode>3_iwmmxt): Likewise.
535 (sssubv8qi3): Likewise.
536 (sssubv4hi3): Likewise.
537 (sssubv2si3): Likewise.
538 (ussubv8qi3): Likewise.
539 (ussubv4hi3): Likewise.
540 (ussubv2si3): Likewise.
541 (mulv4hi3_iwmmxt): Likewise.
542 (smulv4hi3_highpart): Likewise.
543 (umulv4hi3_highpart): Likewise.
544 (iwmmxt_wmacs): Likewise.
545 (iwmmxt_wmacsz): Likewise.
546 (iwmmxt_wmacu): Likewise.
547 (iwmmxt_wmacuz): Likewise.
548 (iwmmxt_clrdi): Likewise.
549 (iwmmxt_clrv8qi): Likewise.
550 (iwmmxt_clr4hi): Likewise.
551 (iwmmxt_clr2si): Likewise.
552 (iwmmxt_uavgrndv8qi3): Likewise.
553 (iwmmxt_uavgrndv4hi3): Likewise.
554 (iwmmxt_uavgv8qi3): Likewise.
555 (iwmmxt_uavgv4hi3): Likewise.
556 (iwmmxt_tinsrb): Likewise.
557 (iwmmxt_tinsrh): Likewise.
558 (iwmmxt_tinsrw): Likewise.
559 (iwmmxt_textrmub): Likewise.
560 (iwmmxt_textrmsb): Likewise.
561 (iwmmxt_textrmuh): Likewise.
562 (iwmmxt_textrmsh): Likewise.
563 (iwmmxt_textrmw): Likewise.
564 (iwmxxt_wshufh): Likewise.
565 (eqv8qi3): Likewise.
566 (eqv4hi3): Likewise.
567 (eqv2si3): Likewise.
568 (gtuv8qi3): Likewise.
569 (gtuv4hi3): Likewise.
570 (gtuv2si3): Likewise.
571 (gtv8qi3): Likewise.
572 (gtv4hi3): Likewise.
573 (gtv2si3): Likewise.
574 (smax<mode>3_iwmmxt): Likewise.
575 (umax<mode>3_iwmmxt): Likewise.
576 (smin<mode>3_iwmmxt): Likewise.
577 (umin<mode>3_iwmmxt): Likewise.
578 (iwmmxt_wpackhss): Likewise.
579 (iwmmxt_wpackwss): Likewise.
580 (iwmmxt_wpackdss): Likewise.
581 (iwmmxt_wpackhus): Likewise.
582 (iwmmxt_wpackwus): Likewise.
583 (iwmmxt_wpackdus): Likewise.
584 (iwmmxt_wunpckihb): Likewise.
585 (iwmmxt_wunpckihh): Likewise.
586 (iwmmxt_wunpckihw): Likewise.
587 (iwmmxt_wunpckilb): Likewise.
588 (iwmmxt_wunpckilh): Likewise.
589 (iwmmxt_wunpckilw): Likewise.
590 (iwmmxt_wunpckehub): Likewise.
591 (iwmmxt_wunpckehuh): Likewise.
592 (iwmmxt_wunpckehuw): Likewise.
593 (iwmmxt_wunpckehsb): Likewise.
594 (iwmmxt_wunpckehsh): Likewise.
595 (iwmmxt_wunpckehsw): Likewise.
596 (iwmmxt_wunpckelub): Likewise.
597 (iwmmxt_wunpckeluh): Likewise.
598 (iwmmxt_wunpckeluw): Likewise.
599 (iwmmxt_wunpckelsb): Likewise.
600 (iwmmxt_wunpckelsh): Likewise.
601 (iwmmxt_wunpckelsw): Likewise.
602 (ror<mode>3): Likewise.
603 (ashr<mode>3_iwmmxt): Likewise.
604 (lshr<mode>3_iwmmxt): Likewise.
605 (ashl<mode>3_iwmmxt): Likewise.
606 (ror<mode>3_di): Likewise.
607 (ashr<mode>3_di): Likewise.
608 (lshr<mode>3_di): Likewise.
609 (ashl<mode>3_di): Likewise.
610 (iwmmxt_wmadds): Likewise.
611 (iwmmxt_wmaddu): Likewise.
612 (iwmmxt_tmia): Likewise.
613 (iwmmxt_tmiaph): Likewise.
614 (iwmmxt_tmiabb): Likewise.
615 (iwmmxt_tmiatb): Likewise.
616 (iwmmxt_tmiabt): Likewise.
617 (iwmmxt_tmiatt): Likewise.
618 (iwmmxt_tmovmskb): Likewise.
619 (iwmmxt_tmovmskh): Likewise.
620 (iwmmxt_tmovmskw): Likewise.
621 (iwmmxt_waccb): Likewise.
622 (iwmmxt_wacch): Likewise.
623 (iwmmxt_waccw): Likewise.
624 (iwmmxt_waligni): Likewise.
625 (iwmmxt_walignr): Likewise.
626 (iwmmxt_walignr0): Likewise.
627 (iwmmxt_walignr1): Likewise.
628 (iwmmxt_walignr2): Likewise.
629 (iwmmxt_walignr3): Likewise.
630 (iwmmxt_wsadb): Likewise.
631 (iwmmxt_wsadh): Likewise.
632 (iwmmxt_wsadbz): Likewise.
633 (iwmmxt_wsadhz): Likewise.
634 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
635 (iwmmxt_wabsdiffb): Likewise.
636 (iwmmxt_wabsdiffh): Likewise.
637 (iwmmxt_wabsdiffw): Likewise.
638 (iwmmxt_waddsubhx): Likewise
639 (iwmmxt_wsubaddhx): Likewise.
640 (addc<mode>3): Likewise.
641 (iwmmxt_avg4): Likewise.
642 (iwmmxt_avg4r): Likewise.
643 (iwmmxt_wmaddsx): Likewise.
644 (iwmmxt_wmaddux): Likewise.
645 (iwmmxt_wmaddsn): Likewise.
646 (iwmmxt_wmaddun): Likewise.
647 (iwmmxt_wmulwsm): Likewise.
648 (iwmmxt_wmulwum): Likewise.
649 (iwmmxt_wmulsmr): Likewise.
650 (iwmmxt_wmulumr): Likewise.
651 (iwmmxt_wmulwsmr): Likewise.
652 (iwmmxt_wmulwumr): Likewise.
653 (iwmmxt_wmulwl): Likewise.
654 (iwmmxt_wqmulm): Likewise.
655 (iwmmxt_wqmulwm): Likewise.
656 (iwmmxt_wqmulmr): Likewise.
657 (iwmmxt_wqmulwmr): Likewise.
658 (iwmmxt_waddbhusm): Likewise.
659 (iwmmxt_waddbhusl): Likewise.
660 (iwmmxt_wqmiabb): Likewise.
661 (iwmmxt_wqmiabt): Likewise.
662 (iwmmxt_wqmiatb): Likewise.
663 (iwmmxt_wqmiatt): Likewise.
664 (iwmmxt_wqmiabbn): Likewise.
665 (iwmmxt_wqmiabtn): Likewise.
666 (iwmmxt_wqmiatbn): Likewise.
667 (iwmmxt_wqmiattn): Likewise.
668 (iwmmxt_wmiabb): Likewise.
669 (iwmmxt_wmiabt): Likewise.
670 (iwmmxt_wmiatb): Likewise.
671 (iwmmxt_wmiatt): Likewise.
672 (iwmmxt_wmiabbn): Likewise.
673 (iwmmxt_wmiabtn): Likewise.
674 (iwmmxt_wmiatbn): Likewise.
675 (iwmmxt_wmiattn): Likewise.
676 (iwmmxt_wmiawbb): Likewise.
677 (iwmmxt_wmiawbt): Likewise.
678 (iwmmxt_wmiawtb): Likewise.
679 (iwmmxt_wmiawtt): Likewise.
680 (iwmmxt_wmiawbbn): Likewise.
681 (iwmmxt_wmiawbtn): Likewise.
682 (iwmmxt_wmiawtbn): Likewise.
683 (iwmmxt_wmiawttn): Likewise.
684 (iwmmxt_wmerge): Likewise.
685 (iwmmxt_tandc<mode>3): Likewise.
686 (iwmmxt_torc<mode>3): Likewise.
687 (iwmmxt_torvsc<mode>3): Likewise.
688 (iwmmxt_textrc<mode>3): Likewise.
689 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
690 (wmmxt_pack): Likewise.
691 (wmmxt_mult_c1): Likewise.
692 (wmmxt_mult_c2): Likewise.
693 (wmmxt_alu_c1): Likewise.
694 (wmmxt_alu_c2): Likewise.
695 (wmmxt_alu_c3): Likewise.
696 (wmmxt_transfer_c1): Likewise.
697 (wmmxt_transfer_c2): Likewise.
698 (wmmxt_transfer_c3): Likewise.
699 (marvell_f_iwmmxt_wstr): Likewise.
700 (marvell_f_iwmmxt_wldr): Likewise.
701
bdb7bf8a
YZ
7022013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
703
0ba6aff3 704 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 705
e6631d38
VM
7062013-06-28 Vladimir Makarov <vmakarov@redhat.com>
707
708 Revert:
709 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
710 * lra-constraints.c (need_for_split_p): Check call used hard regs
711 living through calls.
712
713 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
714 call used regs for call insn.
715
53c1275b
JJ
7162013-06-28 Jakub Jelinek <jakub@redhat.com>
717
718 PR target/57736
0ba6aff3
UB
719 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
720 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 721
1141ed3f
BI
7222013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
723
724 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 725
e32e4c4a
VM
7262013-06-28 Vladimir Makarov <vmakarov@redhat.com>
727
728 * lra-constraints.c (need_for_split_p): Check call used hard regs
729 living through calls.
730
f161bfd3
MM
7312013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
732
733 PR target/57744
734 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
735 to tie with any other modes. Eliminate Altivec vector mode tests,
736 since these are a subset of ALTIVEC or VSX vector modes. Simplify
737 code, to return 0 if testing MODE2 for a condition, if we've
738 already tested MODE1 for the same condition.
739
7eda14e1
MS
7402013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
741
742 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
743 layout.
744
c822f852
MS
7452013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
746
747 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
748 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
749
da4f13a4
MS
7502013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
751
0ba6aff3
UB
752 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
753 Define.
da4f13a4
MS
754 (aarch64_symbolic_constant_p): Remove.
755 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
756 static. Fix line length and white space.
757 (aarch64_symbolic_constant_p): Remove.
758 * config/aarch64/predicates.md (aarch64_valid_symref):
759 Use aarch64_classify_symbol_expression.
760
956a95a5
KT
7612013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
762
763 * config/arm/constraints.md (Ts): New constraint.
764 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
765 16-bit encodings.
766 (compare_scc): Use "Ts" constraint for operand 0.
767 (ior_scc_scc): Likewise.
768 (and_scc_scc): Likewise.
769 (and_scc_scc_nodom): Likewise.
770 (ior_scc_scc_cmp): Likewise for operand 7.
771 (and_scc_scc_cmp): Likewise.
772 * config/arm/thumb2.md (thumb2_movsi_insn):
773 Add alternatives for 16-bit encodings.
774 (thumb2_movhi_insn): Likewise.
775 (thumb2_movsicc_insn): Likewise.
776 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
777 (thumb2_negscc): Use "Ts" constraint.
778 Move mvn instruction outside cond_exec block.
779 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
780 for 16-bit encodings.
781
31dfce10
KT
7822013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
783
784 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
785 encoding.
786 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
787 (mulsi3subsi): Likewise.
788 (mulsidi3adddi): Likewise.
789 (mulsidi3_v6): Likewise.
790 (umulsidi3_v6): Likewise.
791 (umulsidi3adddi_v6): Likewise.
792 (smulsi3_highpart_v6): Likewise.
793 (umulsi3_highpart_v6): Likewise.
794 (mulhisi3tb): Likewise.
795 (mulhisi3bt): Likewise.
796 (mulhisi3tt): Likewise.
797 (maddhisi4): Likewise.
798 (maddhisi4tb): Likewise.
799 (maddhisi4tt): Likewise.
800 (maddhidi4): Likewise.
801 (maddhidi4tb): Likewise.
802 (maddhidi4tt): Likewise.
803 (zeroextractsi_compare0_scratch): Likewise.
804 (insv_zero): Likewise.
805 (insv_t2): Likewise.
806 (anddi_notzesidi_di): Likewise.
807 (anddi_notsesidi_di): Likewise.
808 (andsi_notsi_si): Likewise.
809 (iordi_zesidi_di): Likewise.
810 (xordi_zesidi_di): Likewise.
811 (andsi_iorsi3_notsi): Likewise.
812 (smax_0): Likewise.
813 (smax_m1): Likewise.
814 (smin_0): Likewise.
815 (not_shiftsi): Likewise.
816 (unaligned_loadsi): Likewise.
817 (unaligned_loadhis): Likewise.
818 (unaligned_loadhiu): Likewise.
819 (unaligned_storesi): Likewise.
820 (unaligned_storehi): Likewise.
821 (extv_reg): Likewise.
822 (extzv_t2): Likewise.
823 (divsi3): Likewise.
824 (udivsi3): Likewise.
825 (arm_zero_extendhisi2addsi): Likewise.
826 (arm_zero_extendqisi2addsi): Likewise.
827 (compareqi_eq0): Likewise.
828 (arm_extendhisi2_v6): Likewise.
829 (arm_extendqisi2addsi): Likewise.
830 (arm_movt): Likewise.
831 (thumb2_ldrd): Likewise.
832 (thumb2_ldrd_base): Likewise.
833 (thumb2_ldrd_base_neg): Likewise.
834 (thumb2_strd): Likewise.
835 (thumb2_strd_base): Likewise.
836 (thumb2_strd_base_neg): Likewise.
837 (arm_negsi2): Add alternative for 16-bit encoding.
838 (arm_one_cmplsi2): Likewise.
839
1572e697
KT
8402013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
841
842 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
843 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
844 (movdfcc): Likewise.
845 * config/arm/vfp.md (*thumb2_movsf_vfp):
846 Disable predication for arm_restrict_it.
847 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
848 (*thumb2_movdfcc_vfp): Likewise.
849 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
850 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
851 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
852 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
853 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
854 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
855 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
856 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
857 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
858 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
859 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
860 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
861 Disable predication for arm_restrict_it.
862
ebf8f0ea
KY
8632013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
864
865 * config/i386/bmiintrin.h (_bextr_u32): New.
866 (_bextr_u64): Ditto.
867
a290fcda
RS
8682013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
869
870 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
871 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
872 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
873 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
874 * config/mips/n32-elf.h: ...this new file.
875
ea169996
MG
8762013-06-27 Marc Glisse <marc.glisse@inria.fr>
877
878 PR target/57224
879 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
880 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
881
8e932114
CM
8822013-06-27 Catherine Moore <clm@codesourcery.com>
883
884 * config/mips/mips-tables.opt: Regenerate.
885 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 886 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 887 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 888
2444244e
JJ
8892013-06-27 Jakub Jelinek <jakub@redhat.com>
890
cd06d2a2
JJ
891 PR target/57623
892 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
893 constraints of operand 1 and 2.
894
2444244e
JJ
895 PR target/57623
896 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
897 to match RTL canonicalization. Swap predicates and
898 constraints of operand 1 and 2.
899
2f259720
VM
9002013-06-27 Vladimir Makarov <vmakarov@redhat.com>
901
0ba6aff3
UB
902 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
903 Process OP_INOUT regs for splitting too.
2f259720 904
fef4d2b3
JJ
9052013-06-27 Jakub Jelinek <jakub@redhat.com>
906
907 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
908 decl before the loop, initialize to NULL.
909 (vectorizable_load): Initialize ptr_incr to NULL.
910
79ee9826
MJ
9112013-06-27 Martin Jambor <mjambor@suse.cz>
912
913 PR lto/57208
914 * ipa-ref.h (ipa_maybe_record_reference): Declare.
915 * ipa-ref.c (ipa_maybe_record_reference): New function.
916 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
917 * ipa-cp.c (create_specialized_node): Record potential references from
918 aggvals.
919 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
920
e18b4a81
YZ
9212013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
922
923 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
924 parameter 'mode' of type 'enum machine_mode mode'; change to pass
925 'mode' to force_reg.
926 (aarch64_add_offset): Update calls to aarch64_force_temporary.
927 (aarch64_expand_mov_immediate): Likewise.
928
9c023bf0
YZ
9292013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
930
931 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
932 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
933
5a3fe9b6
AK
9342013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
935
936 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
937 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
938 (struct machine_function): Add tbegin_p.
939 (s390_canonicalize_comparison): Fold CC mode compares to
940 conditional jump if possible.
941 (s390_emit_jump): Return the emitted jump.
942 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
943 Handle CCRAWmode compares.
944 (s390_option_override): Default to -mhtm if available.
945 (s390_reg_clobbered_rtx): Handle floating point regs as well.
946 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
947 FPRs instead of df_regs_ever_live_p.
948 (s390_optimize_nonescaping_tx): New function.
949 (s390_init_frame_layout): Extend clobbered_regs array to cover
950 FPRs as well.
951 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
952 (s390_expand_tbegin): New function.
953 (enum s390_builtin): New enum definition.
954 (code_for_builtin): New array definition.
955 (s390_init_builtins): New function.
956 (s390_expand_builtin): New function.
957 (TARGET_INIT_BUILTINS): Define.
958 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 959 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
960 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
961 (s390_alc_comparison): Likewise.
962 * config/s390/s390-modes.def: Add CCRAWmode.
963 * config/s390/s390.h (processor_flags): Add PF_TX.
964 (TARGET_CPU_HTM): Define macro.
965 (TARGET_HTM): Define macro.
966 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
967 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
968 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
969 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 970 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
971 (TBEGIN_MASK, TBEGINC_MASK): New constants.
972 ("*cc_to_int"): Move up.
973 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
974 constants other than 0.
975 ("*ccraw_to_int"): New insn and splitter definition.
976 ("tbegin", "tbegin_nofloat", "tbegin_retry")
977 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
978 ("tx_assist"): New expander.
979 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
980 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
981 * config/s390/s390.opt: Add -mhtm option.
982 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
983 * config/s390/htmxlintrin.h: New file.
984 * config/s390/htmintrin.h: New file.
985 * config/s390/s390intrin.h: New file.
986 * doc/extend.texi: Document htm builtins.
987 * config.gcc: Add the new header files to extra_headers.
988
9e216629
TS
9892013-06-26 Thomas Schwinge <thomas@codesourcery.com>
990
991 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 992 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 993
fd8c65e7
MM
9942013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
995 Pat Haugen <pthaugen@us.ibm.com>
996 Peter Bergner <bergner@vnet.ibm.com>
997
998 * config/rs6000/power8.md: New.
999 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
1000 setting for power8 entry.
1001 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
1002 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
1003 test for Power4/Power5 only.
1004 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
1005 support.
1006 (force_new_group): Adjust comment.
1007 * config/rs6000/rs6000.md: Include power8.md.
1008
b24a2ce5
GY
10092013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
1010
1011 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
1012 * config/arm/arm-protos.h (arm_max_conditional_execute): New
1013 declaration.
1014 (tune_params): Update comment.
1015 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
1016 (arm_max_conditional_execute): New function.
1017 (thumb2_final_prescan_insn): Use max_insn_skipped and
1018 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
1019
f6fdeb62
JJ
10202013-06-25 Jakub Jelinek <jakub@redhat.com>
1021
1022 PR tree-optimization/57705
1023 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
1024 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 1025 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
1026 (get_initial_def_for_induction): Handle SSA_NAME IV step.
1027
c13bc3d9
MJ
10282013-06-25 Martin Jambor <mjambor@suse.cz>
1029
1030 PR middle-end/57670
1031 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
1032 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
1033 calls in the dump.
1034 (ipa_note_param_call): Initialize member_ptr flag.
1035 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
1036 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
1037 (ipa_write_indirect_edge_info): Stream member_ptr flag.
1038 (ipa_read_indirect_edge_info): Likewise.
1039
8a845901
RB
10402013-06-25 Richard Biener <rguenther@suse.de>
1041
1042 PR middle-end/56977
1043 * passes.c (init_optimization_passes): Move pass_fold_builtins
1044 and pass_dce earlier with -Og.
1045
33be0bec
EB
10462013-06-25 Eric Botcazou <ebotcazou@adacore.com>
1047
1048 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
1049 <BIT_FIELD_REF>: Remove trailing TAB.
1050 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
1051 remove blank line.
1052
5fe8e757
MJ
10532013-06-24 Martin Jambor <mjambor@suse.cz>
1054
1055 PR tree-optimization/57358
1056 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
1057 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
1058 (ipa_analyze_params_uses): Generate pessimistic info when true.
1059
44a60244
MJ
10602013-06-24 Martin Jambor <mjambor@suse.cz>
1061
1062 PR tree-optimization/57539
1063 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
1064 global.inlined_to of the new node to it. All callers changed.
1065 * ipa-inline-transform.c (clone_inlined_nodes): New variable
1066 inlining_into, pass it to cgraph_clone_node.
1067 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
1068 ipa_free_edge_args_substructures.
1069 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
1070 rdesc linked list. Do not assert rdesc edges have inlined caller.
1071 Assert we have found an rdesc in the rdesc list.
1072
7c5848b8
RB
10732013-06-24 Richard Biener <rguenther@suse.de>
1074
0ba6aff3 1075 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
1076 (pointer_set_lookup): Declare.
1077 (class pointer_map): New template class implementing a
1078 generic pointer to T map.
1079 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
1080 pointer_map<T>::contains, pointer_map<T>::insert,
1081 pointer_map<T>::traverse): New functions.
1082 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
1083 (pointer_set_lookup): New function.
1084 (pointer_set_contains): Use pointer_set_lookup.
1085 (pointer_set_insert): Likewise.
1086 (insert_aux): Remove.
1087 (struct pointer_map_t): Embed a pointer_set_t.
1088 (pointer_map_create): Adjust.
1089 (pointer_map_destroy): Likewise.
1090 (pointer_map_contains): Likewise.
1091 (pointer_map_insert): Likewise.
1092 (pointer_map_traverse): Likewise.
1093 * tree-streamer.h (struct streamer_tree_cache_d): Use a
1094 pointer_map<unsigned> instead of a pointer_map_t.
1095 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
1096 (streamer_tree_cache_lookup): Likewise.
1097 (streamer_tree_cache_create): Likewise.
1098 (streamer_tree_cache_delete): Likewise.
1099 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
1100 pointer_map<unsigned> instead of a pointer_map_t.
1101 (lto_init_tree_ref_encoder): Adjust.
1102 (lto_destroy_tree_ref_encoder): Likewise.
1103 * lto-section-out.c (lto_output_decl_index): Likewise.
1104 (lto_record_function_out_decl_state): Likewise.
1105 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
1106
3dbc97a9
RB
11072013-06-24 Richard Biener <rguenther@suse.de>
1108
1109 PR tree-optimization/57488
1110 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
1111
8345965a
AM
11122013-06-24 Alan Modra <amodra@gmail.com>
1113
1114 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
1115 (gen_easy_altivec_constant): Likewise.
1116 * config/rs6000/predicates.md (easy_vector_constant_add_self,
1117 easy_vector_constant_msb): Likewise.
1118
b7df379f
JJ
11192013-06-23 Jakub Jelinek <jakub@redhat.com>
1120
1121 PR target/57688
1122 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
1123 add missing return true.
1124
0bcf9a09
OE
11252013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
1126
1127 PR target/52483
1128 * config/sh/predicates.md (general_extend_operand): Invoke
1129 general_movsrc_operand for memory operands.
1130 (general_movsrc_operand): Allow reg+reg addressing, do not use
1131 general_operand for memory operands.
1132
97db2bf7
ST
11332013-06-23 Sriraman Tallam <tmsriram@google.com>
1134
1135 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
1136 when current target options does not apply.
1137 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
1138 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
1139 * config/i386/bmiintrin.h: Pass appropriate target
1140 attributes to header.
97db2bf7
ST
1141 * config/i386/mmintrin.h: Ditto.
1142 * config/i386/nmmintrin.h: Ditto.
1143 * config/i386/avx2intrin.h: Ditto.
1144 * config/i386/fxsrintrin.h: Ditto.
1145 * config/i386/tbmintrin.h: Ditto.
1146 * config/i386/xsaveintrin.h: Ditto.
1147 * config/i386/f16cintrin.h: Ditto.
1148 * config/i386/xtestintrin.h: Ditto.
1149 * config/i386/xsaveoptintrin.h: Ditto.
1150 * config/i386/bmi2intrin.h: Ditto.
1151 * config/i386/lzcntintrin.h: Ditto.
1152 * config/i386/smmintrin.h: Ditto.
1153 * config/i386/wmmintrin.h: Ditto.
1154 * config/i386/x86intrin.h: Remove all header include guards.
1155 * config/i386/prfchwintrin.h: Ditto.
1156 * config/i386/pmmintrin.h: Ditto.
1157 * config/i386/tmmintrin.h: Ditto.
1158 * config/i386/xmmintrin.h: Ditto.
1159 * config/i386/popcntintrin.h: Ditto.
1160 * config/i386/rdseedintrin.h: Ditto.
1161 * config/i386/ammintrin.h: Ditto.
1162 * config/i386/emmintrin.h: Ditto.
1163 * config/i386/immintrin.h: Remove all header include guards.
1164 * config/i386/fma4intrin.h: Ditto.
1165 * config/i386/lwpintrin.h: Ditto.
1166 * config/i386/xopintrin.h: Ditto.
1167 * config/i386/ia32intrin.h: Ditto.
1168 * config/i386/avxintrin.h: Ditto.
1169 * config/i386/rtmintrin.h: Ditto.
1170 * config/i386/fmaintrin.h: Ditto.
1171 * config/i386/mm3dnow.h: Ditto.
1172
495e6879
ST
11732013-06-22 Sriraman Tallam <tmsriram@google.com>
1174
1175 * common/config/i386/i386-common.c: Handle LZCNT.
1176
11e8f687
AK
11772013-06-22 Andi Kleen <ak@linux.intel.com>
1178
1179 * doc/extend.texi: Use __atomic_store_n instead of
1180 __atomic_store in HLE example.
1181
664dd721
OE
11822013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
1183
1184 * config/sh/sh.c: Remove <cstdlib> workaround.
1185
927f908b
AK
11862013-06-21 Andi Kleen <ak@linux.intel.com>
1187
0ba6aff3 1188 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 1189
cca410b6
AK
11902013-06-21 Andi Kleen <ak@linux.intel.com>
1191
1192 * doc/extend.texi: Document that __atomic_clear and
1193 __atomic_test_and_set should only be used with bool.
1194
d84db1ed
JH
11952013-06-20 Jan Hubicka <jh@suse.cz>
1196
1197 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
1198 types_same_for_odr.
1199 * tree.c (decls_same_for_odr): New function.
1200 (same_for_edr): New function.
1201 (types_same_for_odr): New function.
1202 (get_binfo_at_offset): Use it.
1203 * tree.h (types_same_for_odr): Declare.
1204
664dd721 12052013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
1206 Jason Merrill <jason@redhat.com>
1207
1208 * system.h: Include <cstdlib> as well as <stdlib.h>.
1209
49b4ff63
UB
12102013-06-20 Uros Bizjak <ubizjak@gmail.com>
1211
1212 PR target/57655
1213 * config/i386/i386.c (construct_container): Report error if
1214 long double is used with disabled x87 float returns.
1215
7a89ad00
JH
12162013-06-20 Jan Hubicka <jh@suse.cz>
1217
1218 * lto-cgraph.c (input_symtab): Do not set cgraph state.
1219
bd280792
JR
12202013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
1221
1222 PR rtl-optimization/57425
1223 PR rtl-optimization/57569
1224 * alias.c (write_dependence_p): Remove parameters mem_mode and
1225 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
1226 Changed all callers.
1227 (canon_anti_dependence): Get comments and semantics in sync.
1228 Add parameter mem_canonicalized. Changed all callers.
1229 * rtl.h (canon_anti_dependence): Update prototype.
1230
d16e9a99
RB
12312013-06-20 Richard Biener <rguenther@suse.de>
1232
1233 * data-streamer-in.c (streamer_read_uhwi): Optimize single
1234 byte case, inline streamer_read_uchar and defer section
1235 overrun check.
1236
c3a9b91b
RB
12372013-06-20 Richard Biener <rguenther@suse.de>
1238
1239 PR tree-optimization/57584
1240 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
1241 SSA names into the expanded expression that take part in
1242 abnormal coalescing.
1243
fc8a650e
SS
12442013-06-19 <singhai@google.com>
1245
1246 * gcov.c (print_usage): Handle new option.
1247 (process_args): Ditto.
1248 (get_gcov_intermediate_filename): New function.
1249 (output_intermediate_file): New function.
1250 (output_gcov_file): New function
1251 (generate_results): Handle new option.
1252 (release_function): Relase demangled name.
1253 (read_graph_file): Handle demangled name.
1254 (output_lines): Ditto.
1255 * doc/gcov.texi: Document gcov intermediate format.
1256
11f5b71a
VM
12572013-06-19 Vladimir Makarov <vmakarov@redhat.com>
1258
1259 PR bootstrap/57604
1260 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
1261 (lra_emit_add): Use the functions. Add comment about Y as an
1262 address segment.
1263
e1f9340b
DE
12642013-06-19 David Edelsohn <dje.gcc@gmail.com>
1265
1266 PR driver/57652
1267 * collect2.c (collect_atexit): New.
1268 (collect_exit): Delete.
1269 (main): Register collect_atexit with atexit.
1270 (collect_wait): Change collect_exit to exit.
1271 (do_wait): Same.
1272 * collect2.h (collect_exit): Delete.
1273 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1274
e3f9e0ac
WM
12752013-06-19 Wei Mi <wmi@google.com>
1276
1277 PR rtl-optimization/57518
1278 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1279 if regno is used in paradoxical subreg.
1280 (update_equiv_regs): Check pdx_subregs[regno] before
1281 set a reg to be equivalent with a mem.
1282
a09f1a76
MK
12832013-06-19 Matthias Klose <doko@ubuntu.com>
1284
1285 PR driver/57651
1286 * file-find.h (find_a_file): Add a mode parameter.
1287 * file-find.c (find_a_file): Likewise.
1288 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1289 with X_OK for the executables.
1290 * collect2.c (main): Call find_a_file with X_OK.
1291
7d18b0ad
SE
12922013-06-19 Steve Ellcey <sellcey@mips.com>
1293
1294 PR target/56942
1295 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1296 Use NEXT_INSN instead of next_real_insn.
1297
6a6dac52
JH
12982013-06-19 Jan Hubicka <jh@suse.cz>
1299
1300 * cgraph.h (const_value_known_p): Replace by ...
1301 (ctor_for_folding): .. this one.
1302 * cgraphunit.c (process_function_and_variable_attributes): Use it.
1303 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
1304 * expr.c (expand_expr_real_1): Likewise.
1305 (string_constant): Likewise.
1306 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1307 * ipa.c (process_references): Likewise.
1308 (symtab_remove_unreachable_nodes): Likewise.
1309 * ipa-inline-analysis.c (param_change_prob): Likewise.
1310 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1311 (get_base_constructor): Likwise.
1312 * varpool.c (varpool_remove_node): Likewise.
1313 (varpool_remove_initializer): LIkewise.
1314 (dump_varpool_node): LIkwise.
1315 (const_value_known_p): Rewrite to ...
1316 (ctor_for_folding): ... this one.
1317
216c12ab
JJ
13182013-06-19 Jakub Jelinek <jakub@redhat.com>
1319
1320 PR driver/57651
1321 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1322 PERSONALITY in $PATH derived prefixes.
1323
d53e2f99
JL
13242013-06-19 Jeff Law <law@redhat.com>
1325
ecdbf306
JL
1326 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1327 in comment.
1328
d53e2f99
JL
1329 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1330 (simplify_bitwise_binary): Use it to simpify certain binary ops on
1331 booleans.
1332
89e7fc04
SN
13332013-06-19 Sofiane Naci <sofiane.naci@arm.com>
1334
1335 * config/arm/vfp.md: Move VFP instruction classification documentation
1336 to ...
1337 * config/arm/arm.md: ... here. Update instruction classification
1338 documentation.
1339
5e7f6aaa
RE
13402013-06-19 Richard Earnshaw <rearnsha@arm.com>
1341
1342 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1343 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1344 pattern. Use more efficient sequences on ARMv5 and Thumb2.
1345
5fdc1e5d
SB
13462013-06-19 Steven Bosscher <steven@gcc.gnu.org>
1347
1348 PR target/57609
1349 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1350 with NEXT_INSN. Use tablejump_p to check for jump table data
1351 insns.
1352
e952afba
PC
13532013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
1354
1355 PR c++/56544
1356 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1357 that now in C++ the value is correct per the C++ standards.
1358
3fd0303a
RB
13592013-06-19 Richard Biener <rguenther@suse.de>
1360
1361 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1362 for global context.
1363
b04e4b08
AK
13642013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1365
1366 Revert:
1367 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1368
1369 PR target/57609
1370 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1371 with next_active_insn.
1372
bef8491a
ST
13732013-06-18 Sriraman Tallam <tmsriram@google.com>
1374
1375 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1376 functions are inlined during failures to flag an error.
1377 * tree-inline.c (expand_call_inline): Allow the error to be flagged
1378 in early inline pass.
22fc7d3d 1379
c21b257d
L
13802013-06-18 H.J. Lu <hongjiu.lu@intel.com>
1381
1382 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1383 in comments.
1384
33255ae3
JB
13852013-06-18 Julian Brown <julian@codesourcery.com>
1386
1387 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1388 Permit virtual register pre-reload if !strict.
1389 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1390 change.
1391 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1392 prototype.
1393 * config/arm/neon.md (movmisalign<mode>): Use
1394 neon_perm_struct_or_reg_operand instead of
1395 neon_struct_or_register_operand.
1396 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1397 neon_permissive_struct_operand instead of neon_struct_operand.
1398 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1399 neon_vector_mem_operand.
1400 * config/arm/predicates.md (neon_struct_operand): Adjust call to
1401 neon_vector_mem_operand.
1402 (neon_permissive_struct_operand): New.
1403 (neon_struct_or_register_operand): Rename to...
1404 (neon_perm_struct_or_reg_operand): This. Adjust call to
1405 neon_vector_mem_operand.
1406
d579fcda
RB
14072013-06-18 Richard Biener <rguenther@suse.de>
1408
1409 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1410 * lto-streamer.h: Include pointer-set.h.
1411 (struct lto_decl_slot): Remove.
1412 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1413 Remove next_index entry.
1414 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1415 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1416 (lto_init_tree_ref_encoder): Adjust.
1417 (lto_destroy_tree_ref_encoder): Likewise.
1418 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1419 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1420 (lto_output_decl_index): Adjust.
1421 (lto_new_out_decl_state): Likewise.
1422 (lto_record_function_out_decl_state): Likewise.
1423 * lto-streamer-out.c (copy_function): Likewise.
1424
31ee20ba
RB
14252013-06-18 Richard Biener <rguenther@suse.de>
1426
1427 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1428 * cgraphunit.c: Include cfgloop.h.
1429 (init_lowered_empty_function): Initialize the loop tree.
1430 (assemble_thunk): Insert new BBs into loops.
1431
ac0511f2
RB
14322013-06-18 Richard Biener <rguenther@suse.de>
1433
1434 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1435 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1436 the map from cache entry to cache index optional.
1437 (streamer_tree_cache_replace_tree): Adjust accordingly.
1438 (streamer_tree_cache_append): Likewise.
1439 (streamer_tree_cache_delete): Likewise.
1440 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
1441 streamer cache map from cache entry to cache index.
1442 * lto-streamer-out.c (create_output_block): Adjust.
1443
09485a08
SN
14442013-06-18 Sofiane Naci <sofiane.naci@arm.com>
1445
22fc7d3d
UB
1446 * config/arm/arm.md (attribute "insn"): Move multiplication and
1447 division attributes to...
09485a08
SN
1448 (attribute "type"): ... here. Remove mult.
1449 (attribute "mul32"): New attribute.
1450 (attribute "mul64"): Add umaal.
1451 (*arm_mulsi3): Update attributes.
1452 (*arm_mulsi3_v6): Likewise.
1453 (*thumb_mulsi3): Likewise.
1454 (*thumb_mulsi3_v6): Likewise.
1455 (*mulsi3_compare0): Likewise.
1456 (*mulsi3_compare0_v6): Likewise.
1457 (*mulsi_compare0_scratch): Likewise.
1458 (*mulsi_compare0_scratch_v6): Likewise.
1459 (*mulsi3addsi): Likewise.
1460 (*mulsi3addsi_v6): Likewise.
1461 (*mulsi3addsi_compare0): Likewise.
1462 (*mulsi3addsi_compare0_v6): Likewise.
1463 (*mulsi3addsi_compare0_scratch): Likewise.
1464 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1465 (*mulsi3subsi): Likewise.
1466 (*mulsidi3adddi): Likewise.
1467 (*mulsi3addsi_v6): Likewise.
1468 (*mulsidi3adddi_v6): Likewise.
1469 (*mulsidi3_nov6): Likewise.
1470 (*mulsidi3_v6): Likewise.
1471 (*umulsidi3_nov6): Likewise.
1472 (*umulsidi3_v6): Likewise.
1473 (*umulsidi3adddi): Likewise.
1474 (*umulsidi3adddi_v6): Likewise.
1475 (*smulsi3_highpart_nov6): Likewise.
1476 (*smulsi3_highpart_v6): Likewise.
1477 (*umulsi3_highpart_nov6): Likewise.
1478 (*umulsi3_highpart_v6): Likewise.
1479 (mulhisi3): Likewise.
1480 (*mulhisi3tb): Likewise.
1481 (*mulhisi3bt): Likewise.
1482 (*mulhisi3tt): Likewise.
1483 (maddhisi4): Likewise.
1484 (*maddhisi4tb): Likewise.
1485 (*maddhisi4tt): Likewise.
1486 (maddhidi4): Likewise.
1487 (*maddhidi4tb): Likewise.
1488 (*maddhidi4tt): Likewise.
1489 (divsi3): Likewise.
1490 (udivsi3): Likewise.
1491 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
1492 (thumb2_mulsi_short_compare0): Likewise.
1493 (thumb2_mulsi_short_compare0_scratch): Likewise.
1494 * config/arm/arm1020e.md (1020mult1): Update attribute change.
1495 (1020mult2): Likewise.
1496 (1020mult3): Likewise.
1497 (1020mult4): Likewise.
1498 (1020mult5): Likewise.
1499 (1020mult6): Likewise.
22fc7d3d
UB
1500 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
1501 change.
09485a08
SN
1502 (cortex_a15_mult64): Likewise.
1503 (cortex_a15_sdiv): Likewise.
1504 (cortex_a15_udiv): Likewise.
1505 * config/arm/arm1026ejs.md (mult1): Update attribute change.
1506 (mult2): Likewise.
1507 (mult3): Likewise.
1508 (mult4): Likewise.
1509 (mult5): Likewise.
1510 (mult6): Likewise.
1511 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
1512 (pj4_ir_div): Likewise.
1513 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
1514 (11_mult2): Likewise.
1515 (11_mult3): Likewise.
1516 (11_mult4): Likewise.
1517 (11_mult5): Likewise.
1518 (11_mult6): Likewise.
1519 (11_mult7): Likewise.
1520 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
1521 (cortex_a8_mla): Likewise.
1522 (cortex_a8_mull): Likewise.
1523 (cortex_a8_smulwy): Likewise.
1524 (cortex_a8_smlald): Likewise.
1525 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
1526 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
1527 (cortex_r4_mul_3): Likewise.
1528 (cortex_r4_mla_4): Likewise.
1529 (cortex_r4_mla_3): Likewise.
1530 (cortex_r4_smlald): Likewise.
1531 (cortex_r4_mull): Likewise.
1532 (cortex_r4_sdiv): Likewise.
1533 (cortex_r4_udiv): Likewise.
1534 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
1535 (cortex_a7_idiv): Likewise.
1536 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
1537 (9_mult2): Likewise.
1538 (9_mult3): Likewise.
1539 (9_mult4): Likewise.
1540 (9_mult5): Likewise.
1541 (9_mult6): Likewise.
1542 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
1543 (cortex_a53_sdiv): Likewise.
1544 (cortex_a53_udiv): Likewise.
1545 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
1546 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
1547 (mp626_mult2): Likewise.
1548 (mp626_mult3): Likewise.
1549 (mp626_mult4): Likewise.
1550 * config/arm/fa526.md (526_mult1): Update attribute change.
1551 (526_mult2): Likewise.
1552 * config/arm/arm-generic.md (mult): Update attribute change.
1553 (mult_ldsched_strongarm): Likewise.
1554 (mult_ldsched): Likewise.
1555 (multi_cycle): Likewise.
1556 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
1557 * config/arm/fa606te.md (606te_mult1): Update attribute change.
1558 (606te_mult2): Likewise.
1559 (606te_mult3): Likewise.
1560 (606te_mult4): Likewise.
1561 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
1562 (cortex_a9_mac16): Likewise.
1563 (cortex_a9_multiply): Likewise.
1564 (cortex_a9_mac): Likewise.
1565 (cortex_a9_multiply_long): Likewise.
1566 * config/arm/fa626te.md (626te_mult1): Update attribute change.
1567 (626te_mult2): Likewise.
1568 (626te_mult3): Likewise.
1569 (626te_mult4): Likewise.
1570
8951f345
RB
15712013-06-18 Richard Biener <rguenther@suse.de>
1572
1573 PR lto/57334
1574 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
1575
d8101d05
AK
15762013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1577
1578 PR target/57609
1579 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1580 with next_active_insn.
1581
69eff9da
AM
15822013-06-18 Alan Modra <amodra@gmail.com>
1583
1584 * config/rs6000/rs6000.h (enum data_align): New.
1585 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
1586 (DATA_ABI_ALIGNMENT): Define.
1587 (CONSTANT_ALIGNMENT): Correct comment.
1588 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
1589 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
1590
8ed00d76
DM
15912013-06-17 David Malcolm <dmalcolm@redhat.com>
1592
1593 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
1594 ATTRIBUTE_UNUSED marking.
1595
3d33d06b
SN
15962013-06-17 Sofiane Naci <sofiane.naci@arm.com>
1597
1598 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
1599 alternative and update.
1600 (aarch64_dup_lanedi): Delete.
1601 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
1602 * config/aarch64/aarch64-simd-builtins.def: Update.
1603
ee03e71d
RB
16042013-06-17 Richard Biener <rguenther@suse.de>
1605
1606 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
1607 (lto_input_scc): Declare.
1608 (lto_input_tree_1): Likewise.
1609 (struct lto_stats_d): Add num_tree_bodies_output and
1610 num_pickle_refs_output.
1611 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
1612 (lto_read_tree_1): Split out from ...
1613 (lto_read_tree): ... this.
1614 (lto_input_scc): New function.
1615 (lto_input_tree_1): Split out from ...
1616 (lto_input_tree): ... this. Handle LTO_tree_scc.
1617 (lto_data_in_create): Create the streamer cache without hashes.
1618 * lto-streamer-out.c (create_output_block): Create the streamer
1619 cache with hashes when not doing WPA.
1620 (lto_write_tree_1): Split out from ...
1621 (lto_write_tree): ... this.
1622 (get_symbol_initial_value): New function.
1623 (lto_output_tree_1): Split out from ...
1624 (lto_output_tree): ... this. Write trees as series of SCCs
1625 using a DFS walk via DFS_write_tree.
1626 (struct sccs, struct scc_entry): New types.
1627 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
1628 (DFS_write_tree_body): New function.
1629 (DFS_write_tree): Likewise.
1630 (hash_tree): Likewise.
1631 (scc_entry_compare): Likewise.
1632 (hash_scc): Likewise.
1633 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
1634 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
1635 TREE_CHAIN as regular reference.
1636 (streamer_read_integer_cst): Remove.
1637 (streamer_get_pickled_tree): Adjust.
1638 * tree-streamer-out.c (streamer_write_chain): Disable streaming
1639 of DECL_EXTERNALs in BLOCK_VARS for now.
1640 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
1641 reference.
1642 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1643 Add hash value argument and record that if hashes are recorded
1644 in the cache.
1645 (streamer_tree_cache_insert_1): Adjust.
1646 (streamer_tree_cache_insert): Likewise.
1647 (streamer_tree_cache_insert_at): Rename to ...
1648 (streamer_tree_cache_replace_tree): ... this and adjust.
1649 (streamer_tree_cache_append): Adjust.
1650 (record_common_node): Likewise.
1651 (streamer_tree_cache_create): Add argument whether to
1652 record hash values together with trees.
1653 (streamer_tree_cache_delete): Adjust.
1654 * tree-streamer.h (struct streamer_tree_cache_d): Add
1655 vector of hashes.
1656 (streamer_read_integer_cst): Remove.
1657 (streamer_tree_cache_insert): Adjust.
1658 (streamer_tree_cache_append): Likewise.
1659 (streamer_tree_cache_insert_at): Rename to ...
1660 (streamer_tree_cache_replace_tree): ... this and adjust.
1661 (streamer_tree_cache_create): Add argument whether to record hashes.
1662 (streamer_tree_cache_get): Rename to ...
1663 (streamer_tree_cache_get_tree): ... this.
1664 (streamer_tree_cache_get_hash): New function.
1665 * tree.c (cache_integer_cst): New function.
1666 * tree.h (cache_integer_cst): Declare.
1667 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
1668 * lto-symtab.c (lto_varpool_replace_node): Only release
1669 DECL_INITIAL of non-prevailing decls.
1670 * varpool.c (varpool_remove_initializer): Do not release
1671 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
1672
0de86a92
JU
16732013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1674
1675 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
1676 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
1677 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
1678 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
1679 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
1680 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
1681 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
1682 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
1683 instead of TARGET_64BIT.
1684 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
1685 Require ISA_HAS_<D>DIV.
1686
74240413
RS
16872013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
1688
1689 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
1690 (mips*-*-linux*): Move default with_llsc setting to where other
1691 defaults are set.
1692 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
1693 with_arch block.
1694 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
1695 Likewise. Remove default with_tune setting. Move default float
1696 setting to its own block. Handle with_llsc in the same block as above.
1697
393f9fed
JR
16982013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1699
1700 PR rtl-optimization/57425
1701 PR rtl-optimization/57569
299a5f6a 1702 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
1703 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
1704 Changed all callers.
1705 (canon_anti_dependence): New function.
1706 * cse.c (check_dependence): Use canon_anti_dependence.
1707 * cselib.c (cselib_invalidate_mem): Likewise.
1708 * rtl.h (canon_anti_dependence): Declare.
1709
b259d352
JU
17102013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1711
1712 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
1713 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
1714 ".set mips3" for 64-bit targets.
1715
4de09b85
DC
17162013-06-15 Dehao Chen <dehao@google.com>
1717
1718 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
1719 * gimple-low.c (gimple_check_call_matching_types): Likewise.
1720 (gimple_check_call_args): Likewise.
1721 * value-prof.c (check_ic_target): Likewise.
1722 * ipa-inline.c (early_inliner): Likewise.
1723 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1724 * cgraph.c (cgraph_create_edge_1): Likewise.
1725 (cgraph_make_edge_direct): Likewise.
1726
d1aa4a76
MM
17272013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1728
1729 PR target/57615
1730 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1731 rs6000_output_move_128bit to handle emitting quad memory
1732 operations. Set attribute length to 8 bytes.
1733
24244e4d
VP
17342013-06-14 Vidya Praveen <vidyapraveen@arm.com>
1735
1736 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1737 New pattern.
1738 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1739 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1740 (aarch64_<su>mlsl<mode>): Likewise.
1741
f5273574
MS
17422013-06-14 Mike Stump <mikestump@comcast.net>
1743
1744 * Makefile.in (TARGET_H): Add insn-codes.h.
1745
ef7e7ab2
AM
17462013-06-14 Alan Modra <amodra@gmail.com>
1747
1748 PR middle-end/57134
1749 PR middle-end/57586
1750 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1751 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
1752 bitfield expansion when EXPAND_MEMORY.
1753 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1754
135faab6
MM
17552013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1756
1757 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1758 test for clearing quad memory on 32-bit later.
1759
948a1fd9
MG
17602013-06-13 Marc Glisse <marc.glisse@inria.fr>
1761
1762 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1763 (fold_negate_expr): Likewise.
1764 (fold_real_zero_addition_p): Handle vectors.
1765 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1766
0597fb9c
AM
17672013-06-14 Alan Modra <amodra@gmail.com>
1768
1769 * varasm.c (force_const_mem): Revert 2013-06-07 change.
1770
e5b962d0
JH
17712013-06-13 Jan Hubicka <jh@suse.cz>
1772
1773 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1774 Local comdats are not externally visible.
1775 * symtab.c (dump_symtab_base): Dump externally visible.
1776 (verify_symtab_base): Verify back links in the symtab hash.
1777
a8355e51
BC
17782013-06-13 Bin Cheng <bin.cheng@arm.com>
1779
1780 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1781 CONVERT_EXPR as equal nodes.
1782
8f7e6e33
BC
17832013-06-13 Bin Cheng <bin.cheng@arm.com>
1784
22fc7d3d 1785 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 1786
5d418483
MG
17872013-06-13 Marc Glisse <marc.glisse@inria.fr>
1788
1789 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1790 Generalize to complex and vector.
1791 * tree.c (build_all_ones_cst): New function.
1792 * tree.h (build_all_ones_cst): Declare it.
1793
50751417
AM
17942013-06-13 Alan Modra <amodra@gmail.com>
1795
1796 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1797 * config/rs6000/rs6000.md (signbittf2): New insn.
1798 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1799 (abstf2_internal, cmptf_internal2): Likewise.
1800 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1801
4b02c962
MM
18022013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1803 Pat Haugen <pthaugen@us.ibm.com>
1804 Peter Bergner <bergner@vnet.ibm.com>
1805
1806 * config/rs6000/rs6000.c (emit_load_locked): Add support for
1807 power8 byte, half-word, and quad-word atomic instructions.
1808 (emit_store_conditional): Likewise.
1809 (rs6000_expand_atomic_compare_and_swap): Likewise.
1810 (rs6000_expand_atomic_op): Likewise.
1811
1812 * config/rs6000/sync.md (larx): Add new modes for power8.
1813 (stcx): Likewise.
1814 (AINT): New mode iterator to include TImode as well as normal
1815 integer modes on power8.
1816 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1817 that VSX registers are not considered. Use AINT mode iterator
1818 instead of INT1 to allow inclusion of quad word atomic operations
1819 on power8.
1820 (load_locked<mode>): Likewise.
1821 (store_conditional<mode>): Likewise.
1822 (atomic_compare_and_swap<mode>): Likewise.
1823 (atomic_exchange<mode>): Likewise.
1824 (atomic_nand<mode>): Likewise.
1825 (atomic_fetch_<fetchop_name><mode>): Likewise.
1826 (atomic_nand_fetch<mode>): Likewise.
1827 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1828 each type.
1829 (ATOMIC): On power8, add QImode, HImode modes.
1830 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1831 modes that promote to SImode.
1832 (load_lockedti): Convert TImode arguments to PTImode, so that we
1833 get a guaranteed even/odd register pair.
1834 (load_lockedpti): Likewise.
1835 (store_conditionalti): Likewise.
1836 (store_conditionalpti): Likewise.
1837
1838 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1839 atomic load/store instructions.
1840 (HSI): Likewise.
1841
710b6cc1
RS
18422013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
1843
1844 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1845 loads.
1846 (insn_count): New attribute, with most cases extracted from...
1847 (length): ...here. Redefine most cases in terms of insn_count.
1848 (single_insn): Delete.
1849 (can_delay): Use insn_count to check for single instructions.
1850 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1851 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1852 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1853 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1854 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1855 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1856 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1857 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1858 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1859 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1860 rather than "length".
1861 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
1862 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1863 Use "insn_count" rather than "length".
1864 * config/mips/mips-dsp.md
1865 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1866 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1867 length attributes.
1868
1951f101
MG
18692013-06-12 Marc Glisse <marc.glisse@inria.fr>
1870
1871 PR tree-optimization/57361
1872 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1873
8b033a8a
SN
18742013-06-12 Sofiane Naci <sofiane.naci@arm.com>
1875
22fc7d3d
UB
1876 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1877 to split.
8b033a8a
SN
1878 (aarch64_simd_combine<mode>): New instruction expansion.
1879 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1880 function prototype.
1881 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1882 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1883
ca0f62a8
JH
18842013-06-12 Jan Hubicka <jh@suse.cz>
1885
1886 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1887 decl has when in streaming stage.
1888 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1889 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1890
cddd69eb
RS
18912013-06-12 Roland Stigge <stigge@antcom.de>
1892
1893 PR target/57578
1894 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1895
bfdeda2c
JJ
18962013-06-12 Jakub Jelinek <jakub@redhat.com>
1897
1898 PR tree-optimization/57537
1899 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1900 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1901
a4fa02d1
RB
19022013-06-12 Richard Biener <rguenther@suse.de>
1903
1904 * data-streamer.h (streamer_write_char_stream): CSE
1905 obs->current_pointer.
1906 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1907 streamer_write_char_stream manually and optimize the resulting loop.
1908 (streamer_write_hwi_stream): Likewise.
1909
bbf9ad07
JH
19102013-06-12 Jan Hubicka <jh@suse.cz>
1911
1912 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1913 * cgraph.h (varpool_create_empty_node): Declare.
1914 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1915 duplicated nodes.
1916 * symtab.c (symtab_unregister_node): Be lax about missin entries
1917 in node hash.
1918 (symtab_get_node): Update comment.
1919 * varpool.c (varpool_create_empty_node): Break out from ...
1920 (varpool_node_for_decl): ... here.
1921 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1922
a53f90ad
EB
19232013-06-12 Eric Botcazou <ebotcazou@adacore.com>
1924
1925 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1926 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1927 part. Use straight-line flow at the end.
1928 <COMPONENT_REF>: Remove superfluous else.
1929 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1930
946f9306
JJ
19312013-06-12 Jakub Jelinek <jakub@redhat.com>
1932
1933 PR target/56564
1934 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1935 target hook even for !TREE_PUBLIC decls. If no resolution info
1936 is available, return false for common and external decls.
1937
a7fca6f0
KP
19382013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1939
1940 * config/rl78/constraints.md (U): New constraint.
1941 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1942 valloc attribute.
1943
c7d8f446
MM
19442013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1945
1946 PR target/57589
1947 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1948 to allow returning address to AT_PLATFORM name.
1949
08346abd
JH
19502013-06-11 Jan Hubicka <jh@suse.cz>
1951
1952 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1953 * cgraph.h (symtab_node_base): Add weakref flag.
1954 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1955 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1956 (output_weakrefs): Use weakref flag.
1957 * fold-const.c (simple_operand_p): Handle WEAK.
1958 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1959 * ipa.c (varpool_externally_visible_p): Drop weakref.
1960 (function_and_variable_visibility): Update comment; fix weakref
1961 sanity checks; do not clear DECL_WEAK on them.
1962 * lto-cgraph.c (lto_output_node): update.
1963 (lto_output_varpool_node): Update.
1964 (input_overwrite_node): Update.
1965 (input_node): Update.
1966 (input_varpool_node): Update.
1967 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1968 (lto_symtab_merge_symbols): Add sanity check.
1969 (lto_symtab_prevailing_decl): Do not special case weakrefs.
1970 * passes.c (rest_of_decl_compilation): Set static flag, too.
1971 * symtab.c (dump_symtab_base): Dump weakref.
1972 (verify_symtab_base): Sanity check weakrefs.
1973 (symtab_make_decl_local): Remove duplicated code.
1974 (symtab_alias_ultimate_target): Simplify.
1975 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 1976
d9af3652
DD
19772013-06-11 DJ Delorie <dj@redhat.com>
1978
1979 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1980 (rl78_unwind_word_mode): New.
1981
ffa66012
DM
19822013-06-11 David Malcolm <dmalcolm@redhat.com>
1983
1984 * final.c (debug_prefix_maps): Make static.
1985
783f2d35
DM
19862013-06-11 David Malcolm <dmalcolm@redhat.com>
1987
1988 * function.c (initial_trampoline): Remove stray copy.
1989
7af26def
SN
19902013-06-11 Sofiane Naci <sofiane.naci@arm.com>
1991
1992 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1993
97756c0e
MJ
19942013-06-11 Martin Jambor <mjambor@suse.cz>
1995
1996 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1997 within bounds at the beginning of the function.
1998
2c7b8bf6
AM
19992013-06-11 Alan Modra <amodra@gmail.com>
2000
2001 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
2002 reporting.
2003 (get_named_section): Don't NULL !DECL_P decl.
2004
77cea46e
IZ
20052013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
2006
2007 * doc/invoke.texi (core-avx2): Document.
2008 (slm): Likewise.
2009 (atom): Updated with MOVBE.
2010
888f0920
RB
20112013-06-11 Richard Biener <rguenther@suse.de>
2012
22fc7d3d 2013 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 2014
6b438d58
AB
20152013-06-11 Anton Blanchard <anton@samba.org>
2016
2017 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
2018 correct shift value in little-endian mode.
2019
3bc66938
JJ
20202013-06-11 Jakub Jelinek <jakub@redhat.com>
2021
2022 PR target/56564
2023 * varasm.c (get_variable_align): Move #endif to the right place.
2024
a5dc7f88
CC
20252013-06-10 Cary Coutant <ccoutant@google.com>
2026
2027 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
2028 for hash so that hash table traversal order is deterministic.
2029
19be72ab
MM
20302013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
2031 Pat Haugen <pthaugen@us.ibm.com>
2032 Peter Bergner <bergner@vnet.ibm.com>
2033
2034 * config/rs6000/vector.md (GPR move splitter): Do not split moves
2035 of vectors in GPRS if they are direct moves or quad word load or
2036 store moves.
2037
2038 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
2039 declaration.
2040 (direct_move_p): Likewise.
2041 (quad_load_store_p): Likewise.
2042
2043 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
2044 classes into bins based on the physical register type.
2045 (reg_class_to_reg_type): Likewise.
2046 (IS_STD_REG_TYPE): Likewise.
2047 (IS_FP_VECT_REG_TYPE): Likewise.
2048 (reload_fpr_gpr): Arrays to determine what insn to use if we can
2049 use direct move instructions.
2050 (reload_gpr_vsx): Likewise.
2051 (reload_vsx_gpr): Likewise.
2052 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
2053 information that is a simplification of register classes. Also
2054 precalculate direct move reload helpers.
2055 (direct_move_p): New function to return true if the operation can
2056 be done as a direct move instruciton.
2057 (quad_load_store_p): New function to return true if the operation
2058 is a quad memory operation.
2059 (rs6000_legitimize_address): If quad memory, only allow register
2060 indirect for TImode addresses.
2061 (rs6000_legitimate_address_p): Likewise.
2062 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
2063 (rs6000_reload_register_type): Likewise.
2064 (register_to_reg_type): Return register type.
2065 (rs6000_secondary_reload_simple_move): New helper function for
2066 secondary reload and secondary memory needed to identify anything
2067 that is a simple move, and does not need reloading.
2068 (rs6000_secondary_reload_direct_move): New helper function for
2069 secondary reload to identify cases that can be done with several
2070 instructions via the direct move instructions.
2071 (rs6000_secondary_reload_move): New helper function for secondary
2072 reload to identify moves between register types that can be done.
2073 (rs6000_secondary_reload): Add support for quad memory operations
2074 and for direct move.
2075 (rs6000_secondary_memory_needed): Likewise.
2076 (rs6000_debug_secondary_memory_needed): Change argument names.
2077 (rs6000_output_move_128bit): New function to return the move to
2078 use for 128-bit moves, including knowing about the various
2079 limitations of quad memory operations.
2080
2081 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
2082 memory operations. call rs6000_output_move_128bit for the actual
2083 instruciton(s) to generate.
2084 (vsx_movti_64bit): Likewise.
2085
2086 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
2087 (UNSPEC_P8V_MTVSRWZ): Likewise.
2088 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
2089 (UNSPEC_P8V_MTVSRD): Likewise.
2090 (UNSPEC_P8V_XXPERMDI): Likewise.
2091 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
2092 (UNSPEC_FUSION_GPR): Likewise.
2093 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 2094 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
2095 (f32_sv): Likewise.
2096 (f32_dm): Likewise.
2097 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
2098 loads and direct move instructions.
2099 (zero_extendsidi2_lfiwzx): Likewise.
2100 (extendsidi2_lfiwax): Likewise.
2101 (extendsidi2_nocell): Likewise.
2102 (floatsi<mode>2_lfiwax): Likewise.
2103 (lfiwax): Likewise.
2104 (floatunssi<mode>2_lfiwzx): Likewise.
2105 (lfiwzx): Likewise.
2106 (fix_trunc<mode>_stfiwx): Likewise.
2107 (fixuns_trunc<mode>_stfiwx): Likewise.
2108 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
2109 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
2110 (parity<mode>2_cmpb): Set length/type attr.
2111 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
2112 for 'mr.' to fast_compare.
2113 (bpermd_<mode>): Change type attr to popcnt.
2114 (p8_fmrgow_<mode>): New insns for power8 direct move support.
2115 (p8_mtvsrwz_1): Likewise.
2116 (p8_mtvsrwz_2): Likewise.
2117 (reload_fpr_from_gpr<mode>): Likewise.
2118 (p8_mtvsrd_1): Likewise.
2119 (p8_mtvsrd_2): Likewise.
2120 (p8_xxpermdi_<mode>): Likewise.
2121 (reload_vsx_from_gpr<mode>): Likewise.
2122 (reload_vsx_from_gprsf): Likewise.
2123 (p8_mfvsrd_3_<mode>): LIkewise.
2124 (reload_gpr_from_vsx<mode>): Likewise.
2125 (reload_gpr_from_vsxsf): Likewise.
2126 (p8_mfvsrd_4_disf): Likewise.
2127 (multi-word GPR splits): Do not split direct moves or quad memory
2128 operations.
2129
16876bdc
DM
21302013-06-10 David Malcolm <dmalcolm@redhat.com>
2131
2132 * tree-into-ssa.c (interesting_blocks): Make static.
2133
df8a1d28
JJ
21342013-06-10 Jakub Jelinek <jakub@redhat.com>
2135
2136 PR target/56564
2137 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
2138 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
2139 Use DATA_ABI_ALIGNMENT for that case instead if defined.
2140 (get_variable_align): New function.
2141 (get_variable_section, emit_bss, emit_common,
2142 assemble_variable_contents, place_block_symbol): Use
2143 get_variable_align instead of DECL_ALIGN.
2144 (assemble_noswitch_variable): Add align argument, use it
2145 instead of DECL_ALIGN.
2146 (assemble_variable): Adjust caller. Use get_variable_align
2147 instead of DECL_ALIGN.
2148 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
2149 caller.
2150 (DATA_ABI_ALIGNMENT): Define.
2151 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
2152 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
2153 opt is false, only return the psABI mandated alignment increase.
2154 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
2155 (DATA_ABI_ALIGNMENT): ... this.
2156 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
2157 (DATA_ABI_ALIGNMENT): ... this.
2158 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
2159 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
2160 (DATA_ABI_ALIGNMENT): ... this.
2161 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
2162 * doc/tm.texi: Regenerated.
2163
57b29ca6
UB
21642013-06-10 Uros Bizjak <ubizjak@gmail.com>
2165
2166 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
2167 cmp_code to construct REG_EQUAL note.
2168
3e56ed50
JJ
21692013-06-09 Jakub Jelinek <jakub@redhat.com>
2170
2171 PR target/57568
2172 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
2173 that operands[2] doesn't overlap with operands[0].
2174
74fe2a1d
DE
21752013-06-09 David Edelsohn <dje.gcc@gmail.com>
2176 Jan Hubicka <jh@suse.cz>
2177
2178 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
2179 hack to mark symbols as used.
2180
ed52a84e
VM
21812013-06-08 Vladimir Makarov <vmakarov@redhat.com>
2182
2183 PR rtl-optimization/57559
2184 * lra-constraints.c (process_alt_operands): Don't discourage
2185 memory with known offset for offsetable memory constraint.
2186 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
2187
299316ed
EB
21882013-06-08 Eric Botcazou <ebotcazou@adacore.com>
2189
2190 * varasm.c (struct oc_local_state): Reorder fields.
2191 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
2192 and adjust accordingly.
2193 (output_constructor): Reorder initialization code and adjust call to
2194 output_constructor_bitfield.
2195
88ac60d3
JH
21962013-06-07 Jan Hubicka <jh@suse.cz>
2197
2198 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
2199
4cdce1a8
DM
22002013-06-07 David Malcolm <dmalcolm@redhat.com>
2201
2202 * tree-object-size.c (unknown): Make const.
2203
b5e0425c
AK
22042013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2205
2206 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
2207 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
2208 for last alternative in the cpu_facility attribute.
2209
79678d04
KT
22102013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2211
2212 PR target/56315
2213 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
2214 (xordi3): Change operand 2 constraint to arm_xordi_operand.
2215 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
2216 * config/arm/constraints.md (Dg): New constraint.
2217 * config/arm/neon.md (xordi3_neon): Remove.
2218 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
2219 * config/arm/predicates.md (arm_xordi_operand): New predicate.
2220
b31ddbdb
KT
22212013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2222
2223 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
2224 Clean up alternatives.
2225
8f90b7d4
AM
22262013-06-07 Alan Modra <amodra@gmail.com>
2227
2228 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
2229 va_list_gpr_size.
2230
961ce119
AM
22312013-06-07 Alan Modra <amodra@gmail.com>
2232
2233 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
2234
33e49835
KT
22352013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2236
2237 * config/arm/constraints.md (Df): New constraint.
2238 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
2239 Correct length attribute for last two alternatives.
2240
acd17ae6
AM
22412013-06-07 Alan Modra <amodra@gmail.com>
2242
2243 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2244 override user -mfp-in-toc.
2245 (offsettable_ok_by_alignment): Consider just the current access
2246 rather than the whole object, unless BLKmode. Handle
2247 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
2248 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
2249 for -mcmodel=medium.
2250 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
2251 override user -mfp-in-toc or -msum-in-toc. Default to
2252 -mno-fp-in-toc for -mcmodel=medium.
2253
73310b0e
DD
22542013-06-06 DJ Delorie <dj@redhat.com>
2255
2256 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
2257 TARGET_VALID_POINTER_MODE.
2258
0bd62dca
MM
22592013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2260 Pat Haugen <pthaugen@us.ibm.com>
2261 Peter Bergner <bergner@vnet.ibm.com>
2262
2263 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2264 Document new power8 builtins.
2265
2266 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
2267 condition code register, to allow 128-bit logical operations to be
2268 done in the VSX or GPR registers.
2269 (nor<mode>3): Use the canonical form for nor.
2270 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2271 vclz*, and vpopcnt* vector instructions.
2272 (nand<mode>3): Likewise.
2273 (orc<mode>3): Likewise.
2274 (clz<mode>2): LIkewise.
2275 (popcount<mode>2): Likewise.
2276
2277 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2278 that only the GPRs are recognized.
2279
2280 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2281 support for new power8 builtins.
2282
2283 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2284 builtin functions.
2285 (xscvdpspn): Likewise.
2286 (vclz): Likewise.
2287 (vclzb): Likewise.
2288 (vclzh): Likewise.
2289 (vclzw): Likewise.
2290 (vclzd): Likewise.
2291 (vpopcnt): Likewise.
2292 (vpopcntb): Likewise.
2293 (vpopcnth): Likewise.
2294 (vpopcntw): Likewise.
2295 (vpopcntd): Likewise.
2296 (vgbbd): Likewise.
2297 (vmrgew): Likewise.
2298 (vmrgow): Likewise.
2299 (eqv): Likewise.
2300 (eqv_v16qi3): Likewise.
2301 (eqv_v8hi3): Likewise.
2302 (eqv_v4si3): Likewise.
2303 (eqv_v2di3): Likewise.
2304 (eqv_v4sf3): Likewise.
2305 (eqv_v2df3): Likewise.
2306 (nand): Likewise.
2307 (nand_v16qi3): Likewise.
2308 (nand_v8hi3): Likewise.
2309 (nand_v4si3): Likewise.
2310 (nand_v2di3): Likewise.
2311 (nand_v4sf3): Likewise.
2312 (nand_v2df3): Likewise.
2313 (orc): Likewise.
2314 (orc_v16qi3): Likewise.
2315 (orc_v8hi3): Likewise.
2316 (orc_v4si3): Likewise.
2317 (orc_v2di3): Likewise.
2318 (orc_v4sf3): Likewise.
2319 (orc_v2df3): Likewise.
2320
2321 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2322 allow power8 quad mode in 64-bit.
2323 (rs6000_builtin_vectorized_function): Add support to vectorize
2324 ISA 2.07 count leading zeros, population count builtins.
2325 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2326 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2327 (builtin_function_type): Add vgbbd builtin function which takes an
2328 unsigned argument.
2329 (altivec_expand_vec_perm_const): Add support for new power8 merge
2330 instructions.
2331
2332 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2333 that does not include TImdoe for use with 32-bit.
2334 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2335 instructions.
2336 (UNSPEC_VSX_CVDPSPN): Likewise.
2337 (vsx_xscvdpspn): Likewise.
2338 (vsx_xscvspdpn): Likewise.
2339 (vsx_xscvdpspn_scalar): Likewise.
2340 (vsx_xscvspdpn_directmove): Likewise.
2341 (vsx_and<mode>3): Split logical operations into 32-bit and
2342 64-bit. Add support to do logical operations on TImode as well as
2343 VSX vector types. Allow logical operations to be done in either
2344 VSX registers or in general purpose registers in 64-bit mode. Add
2345 splitters if GPRs were used. For AND, add clobber of CCmode to
2346 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
2347 encoding.
2348 (vsx_and<mode>3_32bit): Likewise.
2349 (vsx_and<mode>3_64bit): Likewise.
2350 (vsx_ior<mode>3): Likewise.
2351 (vsx_ior<mode>3_32bit): Likewise.
2352 (vsx_ior<mode>3_64bit): Likewise.
2353 (vsx_xor<mode>3): Likewise.
2354 (vsx_xor<mode>3_32bit): Likewise.
2355 (vsx_xor<mode>3_64bit): Likewise.
2356 (vsx_one_cmpl<mode>2): Likewise.
2357 (vsx_one_cmpl<mode>2_32bit): Likewise.
2358 (vsx_one_cmpl<mode>2_64bit): Likewise.
2359 (vsx_nor<mode>3): Likewise.
2360 (vsx_nor<mode>3_32bit): Likewise.
2361 (vsx_nor<mode>3_64bit): Likewise.
2362 (vsx_andc<mode>3): Likewise.
2363 (vsx_andc<mode>3_32bit): Likewise.
2364 (vsx_andc<mode>3_64bit): Likewise.
2365 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2366 and xxlorc instructions.
2367 (vsx_eqv<mode>3_64bit): Likewise.
2368 (vsx_nand<mode>3_32bit): Likewise.
2369 (vsx_nand<mode>3_64bit): Likewise.
2370 (vsx_orc<mode>3_32bit): Likewise.
2371 (vsx_orc<mode>3_64bit): Likewise.
2372
2373 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2374
2375 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2376 instruction.
2377 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2378 (p8_vmrgow): Likewise.
2379 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2380 GPRs to be split under VSX.
2381 (p8v_clz<mode>2): Add power8 count leading zero support.
2382 (p8v_popcount<mode>2): Add power8 population count support.
2383 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2384 support.
2385
2386 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2387 instruction.
2388
2389 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2390 builtin functions.
2391 (vec_nand): Likewise.
2392 (vec_vclz): Likewise.
2393 (vec_vclzb): Likewise.
2394 (vec_vclzd): Likewise.
2395 (vec_vclzh): Likewise.
2396 (vec_vclzw): Likewise.
2397 (vec_vgbbd): Likewise.
2398 (vec_vmrgew): Likewise.
2399 (vec_vmrgow): Likewise.
2400 (vec_vpopcnt): Likewise.
2401 (vec_vpopcntb): Likewise.
2402 (vec_vpopcntd): Likewise.
2403 (vec_vpopcnth): Likewise.
2404 (vec_vpopcntw): Likewise.
2405
37684c46
VM
24062013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2407
2408 PR rtl-optimization/57468
2409 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2410 spilled pseudos.
2411
d89ae27c
VM
24122013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2413
2414 PR rtl-optimization/57459
2415 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2416 type when setting live regs.
2417
3597e113
VM
24182013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2419
2420 * config/s390/s390.opt (mlra): New option.
2421 * config/s390/s390.c (s390_decompose_address): Check displacement
2422 for all registers for LRA.
2423 (s390_secondary_reload): Don't used secondary reloads for LRA.
2424 (s390_lra_p): New function.
2425 (TARGET_LRA_P): Define.
2426 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2427 of attribute cpu_facility to zarch for the last alternative.
2428 (*cmpmem_short): Ditto.
2429
01037aeb
EB
24302013-06-06 Eric Botcazou <ebotcazou@adacore.com>
2431
2432 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2433 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
2434 (arm_expand_prologue): Likewise.
2435
3371a64f
TJ
24362013-06-06 Teresa Johnson <tejohnson@google.com>
2437
2438 PR c++/53743
2439 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
2440 as this is now done by redirect_edge_and_branch_force.
2441 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
2442 barriers, and fix interaction with splitting.
2443 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
2444 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
2445 reflect changes made in the routine.
2446 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
2447 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
2448 since this is called in cfglayout mode, and replace partition fixup
2449 with assert as that is now done by force_nonfallthru_and_redirect.
2450 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
2451 already be marked with region crossing note.
2452 (insert_section_boundary_note): Make non-static, gate on flag
2453 has_bb_partition, rewrite to also check for multiple partitions.
2454 (rest_of_handle_reorder_blocks): Remove call to
2455 insert_section_boundary_note, now done later during free_cfg.
2456 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
2457 * bb-reorder.h (insert_section_boundary_note): Declare.
2458 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
2459 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2460 invoke insert_section_boundary_note.
2461 (try_redirect_by_replacing_jump): Remove unnecessary
2462 check for region crossing note.
2463 (fixup_partition_crossing): New function.
2464 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2465 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2466 in non-cfglayout mode.
2467 (force_nonfallthru_and_redirect): Fixup partition boundaries,
2468 remove old code that tried to do this. Emit barrier correctly
2469 when we are in cfglayout mode.
2470 (last_bb_in_partition): New function.
2471 (rtl_split_edge): Correctly fixup partition boundaries.
2472 (commit_one_edge_insertion): Remove old code that tried to
2473 fixup region crossing edge since this is now handled in
2474 split_block, and set up insertion point correctly since
2475 block may now end in a jump.
2476 (verify_hot_cold_block_grouping): Guard against checking when not in
2477 linearized RTL mode.
2478 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
2479 notes.
2480 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
2481 rtl_verify_flow_info, so not called in cfglayout mode.
2482 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
2483 (fixup_reorder_chain): Remove old code that attempted to fixup region
2484 crossing note as this is now handled in force_nonfallthru_and_redirect.
2485 (duplicate_insn_chain): Don't duplicate switch section notes.
2486 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
2487 note.
2488 * basic-block.h (emit_barrier_after_bb): Declare.
2489
66071e10
KT
24902013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2491
2492 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
2493 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
2494 arm_usatsihi): Adjust alternatives for arm_restrict_it.
2495
0e26bf3d
KT
24962013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2497
2498 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
2499 where appropriate.
2500 * config/arm/ldmstm.md: Regenerate.
2501
12b4e7ef
KT
25022013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2503
2504 * config/arm/sync.md (atomic_loaddi_1):
2505 Disable predication for arm_restrict_it.
2506 (arm_load_exclusive<mode>): Likewise.
2507 (arm_load_exclusivesi): Likewise.
2508 (arm_load_exclusivedi): Likewise.
2509 (arm_load_acquire_exclusive<mode>): Likewise.
2510 (arm_load_acquire_exclusivesi): Likewise.
2511 (arm_load_acquire_exclusivedi): Likewise.
2512 (arm_store_exclusive<mode>): Likewise.
2513 (arm_store_exclusive<mode>): Likewise.
2514 (arm_store_release_exclusivedi): Likewise.
2515 (arm_store_release_exclusive<mode>): Likewise.
2516
15d16c8a
RB
25172013-06-06 Richard Biener <rguenther@suse.de>
2518
2519 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
2520 after LTO_null.
2521 (lto_tag_is_tree_code_p): Adjust.
2522 (lto_tag_is_gimple_code_p): Likewise.
2523 (lto_gimple_code_to_tag): Likewise.
2524 (lto_tag_to_gimple_code): Likewise.
2525 (lto_tree_code_to_tag): Likewise.
2526 (lto_tag_to_tree_code): Likewise.
2527 * data-streamer.h (streamer_write_hwi_in_range): Use
2528 uhwi streaming to stream the normalized range.
2529 (streamer_read_hwi_in_range): Likewise.
2530
17a7fc37
KT
25312013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2532
2533 * config/arm/arm.md (enabled_for_depr_it): New attribute.
2534 (predicable_short_it): Likewise.
2535 (predicated): Likewise.
2536 (enabled): Handle above.
2537 (define_cond_exec): Set predicated attribute to yes.
2538
b57ca59b
MS
25392013-06-05 Mike Stump <mikestump@comcast.net>
2540
2541 * gdbinit.in (__FUNCTION__): Add.
2542
c1e183a9
UB
25432013-06-05 Uros Bizjak <ubizjak@gmail.com>
2544
2545 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2546 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2547
0378bddb
JH
25482013-06-05 Jan Hubicka <jh@suse.cz>
2549
2550 * varasm.c (mark_decl_referenced): Revert the removal until targets
2551 are fixed.
2552
8f8a2057
DE
25532013-06-05 David Edelsohn <dje.gcc@gmail.com>
2554
2555 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
2556 instead of mark_decl_referenced.
2557
edb983b2
JH
25582013-06-05 Jan Hubicka <jh@suse.cz>
2559
2560 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
2561 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
2562 and symtab_used_from_object_file_p.
2563 (cgraph_make_node_local_1): Clear forced_by_abi.
2564 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
2565 * cgraph.h (symtab_node_base): Add forced_by_abi.
2566 (decide_is_variable_needed): Remove.
2567 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
2568 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
2569 (decide_is_symbol_needed): ... this one; handle symbols in general;
2570 always analyze virtuals; honnor forced_by_abi.
2571 (cgraph_finalize_function): Update.
2572 (varpool_finalize_decl): Update.
2573 (symbol_defined_and_needed): Remove.
2574 (analyze_functions): Update.
2575 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2576 output_refs, input_overwrite_node): Handle forced_by_abi.
2577 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
2578 (address_taken_from_non_vtable_p): ... this one.
2579 (comdat_can_be_unshared_p_1): New function.
2580 (cgraph_comdat_can_be_unshared_p): Rename to ...
2581 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
2582 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
2583 (function_and_variable_visibility): Clear forced_by_abi as needed.
2584 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
2585 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
2586 * symtab.c (dump_symtab_base): Dump forced_by_abi.
2587 * varpool.c (decide_is_variable_needed): Remove.
2588
9912dbe5
KT
25892013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2590
2591 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
2592 (arm_option_override): Override arm_restrict_it where appropriate.
2593 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
2594 * config/arm/arm.opt (mrestrict-it): New command-line option.
2595 * doc/invoke.texi: Document -mrestrict-it.
2596
34c136b6
DM
25972013-06-05 David Malcolm <dmalcolm@redhat.com>
2598
2599 * tsan.c (tsan_atomic_table): Make const.
2600
a367df53
RB
26012013-06-05 Richard Biener <rguenther@suse.de>
2602
2603 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
2604 index associated with the tree we are supposed to replace.
2605 * tree-streamer-out.c (pack_ts_base_value_fields): Output
2606 TREE_ASM_WRITTEN as zero for everything but SSA names.
2607
70d51a19
DM
26082013-06-05 David Malcolm <dmalcolm@redhat.com>
2609
2610 * tree-ssa-structalias.c (call_stmt_vars): Make static.
2611
b9bd2075
JH
26122013-06-04 Jan Hubicka <jh@suse.cz>
2613
2614 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
2615 (input_node, input_varpool_node): Handle correctly external same
2616 body aliases.
2617 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
2618 nodes at ltrans stage.
2619
aaae719d
JH
26202013-06-04 Jan Hubicka <jh@suse.cz>
2621
2622 * ipa-inline.c (update_caller_keys): Fix availability test.
2623 (update_callee_keys): Likewise.
2624 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
2625 to follow ELF standard.
2626
107eea2c
JU
26272013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
2628
2629 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
2630 (mips64r5900el-*-elf*): New configurations.
2631 * config/mips/mips-cpus.def (r5900): New processor.
2632 * config/mips/mips-tables.opt: Regenerate.
2633 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
2634 (mips_issue_rate): Handle PROCESSOR_R5900.
2635 (mips_reorg_process_insns): Force reorder mode for the R5900.
2636 * config/mips/mips.h (TARGET_MIPS5900): Define.
2637 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
2638 TARGET_MIPS5900.
2639 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
2640 TARGET_MIPS5900.
2641 * config/mips/mips.md (processor): Add r5900.
2642 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
2643
b7342d25
IB
26442013-06-04 Ian Bolton <ian.bolton@arm.com>
2645
2646 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
2647 into function to generate MOVI instruction.
c1e183a9 2648 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
2649 (aarch64_preferred_simd_mode): Turn into wrapper.
2650 (aarch64_output_scalar_simd_mov_immediate): New function.
2651 * config/aarch64/aarch64-protos.h: Add prototype for above.
2652
81c2dfb9
IB
26532013-06-04 Ian Bolton <ian.bolton@arm.com>
2654
2655 * config/aarch64/aarch64.c (simd_immediate_info): Remove
2656 element_char member.
2657 (sizetochar): Return signed char.
2658 (aarch64_simd_valid_immediate): Remove elchar and other
2659 unnecessary variables.
2660 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
2661 Calculate element_char as required.
2662 * config/aarch64/aarch64-protos.h: Update and move prototype
2663 for aarch64_output_simd_mov_immediate.
2664 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
2665 Update arguments.
2666
48063b9d
IB
26672013-06-04 Ian Bolton <ian.bolton@arm.com>
2668
2669 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
2670 information completed by aarch64_simd_valid_immediate.
2671 (aarch64_legitimate_constant_p): Update arguments.
2672 (aarch64_simd_valid_immediate): Work with struct rather than many
2673 pointers.
2674 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
2675 (aarch64_simd_make_constant): Update arguments.
2676 (aarch64_output_simd_mov_immediate): Work with struct rather than
2677 many pointers. Output immediate directly rather than as operand.
2678 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2679 Update prototype.
2680 * config/aarch64/constraints.md (Dn): Update arguments.
2681
3ea63f60
IB
26822013-06-04 Ian Bolton <ian.bolton@arm.com>
2683
2684 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
2685 longer static.
2686 (aarch64_simd_immediate_valid_for_move): Remove.
2687 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
2688 (aarch64_simd_make_constant): Update call.
2689 (aarch64_output_simd_mov_immediate): Update call.
2690 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2691 Add prototype.
2692 * config/aarch64/constraints.md (Dn): Update call.
2693
d8edd899
IB
26942013-06-04 Ian Bolton <ian.bolton@arm.com>
2695
2696 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
2697 return type to bool for prototype.
2698 (aarch64_legitimate_constant_p): Check for true instead of not -1.
2699 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
2700 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
2701
44b20bb8
CM
27022013-06-04 Catherine Moore <clm@codesourcery.com>
2703
2704 * config/mips/mips.opt (meva): New.
c1e183a9 2705 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
2706 (ASM_SPEC): Handle -meva.
2707 * doc/invoke.texi (meva): Document.
2708
52befbd8
AM
27092013-06-04 Alan Modra <amodra@gmail.com>
2710
2711 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2712 constant output.
2713
aadaf24e
KT
27142013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2715
2716 * rtl.def: Add extra fourth optional field to define_cond_exec.
2717 * gensupport.c (process_one_cond_exec): Process attributes from
2718 define_cond_exec.
2719 * doc/md.texi: Document fourth field in define_cond_exec.
2720
0cd9e9ee
EB
27212013-06-04 Eric Botcazou <ebotcazou@adacore.com>
2722
2723 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2724 out the processing order as in store_bit_field_1.
2725
cb0f665d
JH
27262013-06-04 Jan Hubicka <jh@suse.cz>
2727
2728 PR middle-end/57500
2729 * cgraphunit.c (cgraph_process_same_body_aliases): Create
2730 non-VAR_DECL node if it does not exist yet.
2731
53984b9b
RS
27322013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
2733
2734 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2735 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2736 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2737 target_cpu_default setting.
2738
5d318fd4
TJ
27392013-06-03 Teresa Johnson <tejohnson@google.com>
2740
2741 * dumpfile.c (opt_info_switch_p): Change -fopt-info
2742 default to -fopt-info=optimized instead of all.
2743 * doc/invoke.texi: Ditto.
2744 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2745 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2746 (execute_vect_slp): Emit BB vectorization success under
2747 MSG_OPTIMIZED_LOCATIONS.
2748 * tree-vect-slp.c (vect_slp_transform_bb): Change
2749 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2750 * tree-vect-loop.c (vect_transform_loop): Ditto.
2751
ec3af349
JM
27522013-06-03 Jason Merrill <jason@redhat.com>
2753
2754 PR c++/57415
2755 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2756 Use TARGET_EXPR for C++.
2757
1baf9159
JJ
27582013-06-03 Jakub Jelinek <jakub@redhat.com>
2759
2760 PR rtl-optimization/57268
0cd9e9ee 2761 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
2762 if DEBUG_INSN_P (insn).
2763
2764 Reapply
2765 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2766
2767 PR rtl-optimization/57268
2768 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2769 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2770
0f1d3965
YR
27712013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2772
2773 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2774 (ix86_avoid_lea_for_addr): Likewise.
2775 (exact_dependency_1): Likewise.
2776 (ix86_adjust_cost): Likewise.
2777 (swap_top_of_ready_list): Fix formatting and !reload_completed check
2778 removed.
2779 (do_reorder_for_imul): Fix typo, formatting and
2780 !reload_completed check removed.
2781 (ix86_sched_reorder): Fix typo and formatting.
2782 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2783 list.
2784
3bc30db4
SN
27852013-06-03 Sofiane Naci <sofiane.naci@arm.com>
2786
2787 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2788
19cc6fac
EB
27892013-06-03 Eric Botcazou <ebotcazou@adacore.com>
2790
2791 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2792 <STRING_CST>: Likewise.
2793 <VECTOR_CST>: Likewise.
2794
c68a6e08
JW
27952013-06-01 Janus Weil <janus@gcc.gnu.org>
2796 Mikael Morin <mikael@gcc.gnu.org>
2797
2798 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2799 * config.in: Regenerated.
2800 * configure: Regenerated.
2801
38e55e5c
JH
28022013-06-01 Jan Hubicka <jh@suse.cz>
2803
2804 PR middle-end/57366
2805 * cgraphunit.c (compile): When weakref is not supported,
2806 set up transparent aliases before final output pass.
2807 * varasm.c (assemble_alias): Do not try to do it here.
2808
eb51d2ff
JH
28092013-06-01 Jan Hubicka <jh@suse.cz>
2810
2811 PR middle-end/57467
2812 * passes.c (for_per_function): Skip unanalyzed functions.
2813
40a7fe1e
JH
28142013-06-01 Jan Hubicka <jh@suse.cz>
2815
2816 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2817 (lto_symtab_merge_symbols_1): ... this one.
2818 (lto_symtab_merge_cgraph_nodes): Rename to ...
2819 (lto_symtab_merge_symbols): ... this one; simplify.
2820 * cgraph.c (same_body_aliases_done): Rename to ...
2821 (cpp_implicit_aliases_done): ... this one.
2822 (cgraph_create_function_alias): Update.
2823 (cgraph_same_body_alias): Update.
c1e183a9 2824 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 2825 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 2826 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
2827 (cgraph_node): Remove same_body_alias.
2828 (varpool_node): Remove alias_of and extra_name_alias.
2829 (same_body_aliases_done): Rename to ..
2830 (cpp_implicit_aliases_done): ... this one.
2831 (symtab_alias_ultimate_target): Add default parameter.
2832 (symtab_resolve_alias): New function.
2833 (fixup_same_cpp_alias_visibility): Declare.
2834 (cgraph_function_node): Add default parameter.
2835 (cgraph_node_asm_name): Likewise.
2836 (cgraph_function_or_thunk_node): Add default parameter; do
2837 not ICE when it is NULL.
2838 (varpool_variable_node): Likewise.
2839 * tree-emutls.c (create_emultls_var): Update.
2840 (ipa_lower_emutls): Update.
2841 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2842 (cgraph_reset_node): Reset alias info.
2843 (cgraph_finalize_function): Update.
2844 (fixup_same_cpp_alias_visibility): Move to symtab.c.
2845 (analyze_function): Simplify.
2846 (cgraph_process_same_body_aliases): Simplify.
2847 (analyze_functions): Fixup same body aliases.
2848 (handle_alias_pairs): Simplify.
2849 (assemble_thunk): Update.
2850 (assemble_thunks_and_aliases): Update.
2851 (output_weakrefs): Rewrite.
2852 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2853 (lto_output_varpool_node): Likewise.
2854 (compute_ltrans_boundary): Remve assert.
2855 (get_alias_symbol): New functoin.
2856 (input_node): Rewrite alias handling.
2857 (input_varpool_node): Likewise.
2858 * ipa-pure-const.c (propagate_pure_const): Fix formating.
2859 * ipa.c (process_references): Handle weakrefs correctly.
2860 (symtab_remove_unreachable_nodes): Likewise.
2861 * trans-mem.c (get_cg_data): Update.
2862 (ipa_tm_create_version_alias): Update.
2863 (ipa_tm_execute): Update.
2864 * symtab.c (dump_symtab_base): Dump aliases.
2865 (verify_symtab_base): Verify aliases.
2866 (symtab_node_availability): New function.
2867 (symtab_alias_ultimate_target): Simplify.
2868 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2869 handle all the fixup cases.
2870 (symtab_resolve_alias): New function.
2871 * passes.c (ipa_write_summaries): Handle weakrefs.
2872 * varpool.c (varpool_analyze_node): Simplify.
2873 (assemble_aliases): Update.
2874 (varpool_create_variable_alias): Simplify.
2875 (varpool_extra_name_alias): Simplify.
2876 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2877 (lto_symtab_merge_symbols): ... this one.
2878
21759881
DT
28792013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
2880
2881 Revert
2882 PR rtl-optimization/57268
2883 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2884 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2885
daf4e940
TB
28862013-06-01 Tobias Burnus <burnus@net-b.de>
2887
2888 Partially reverted:
2889 2013-05-31 Tobias Burnus <burnus@net-b.de>
2890
2891 PR middle-end/57073
2892 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2893 further up.
2894
c359d8d0
DT
28952013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2896
2897 PR rtl-optimization/57268
2898 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2899 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2900
4172215d
EB
29012013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2902
2903 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2904 unordered comparison operators when -fno-trapping-math is in effect
2905 on the e500.
2906 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2907 and implement unordered comparison operators properly on the e500.
2908
a8c50132
EB
29092013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2910
2911 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2912 for constant scalar integers.
2913 (simplify_relational_operation_1): Likewise.
2914
44626634
SB
29152013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
2916
2917 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2918 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
2919 Fix comment.
2920
55805e54
YR
29212013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2922 Igor Zamyatin <igor.zamyatin@intel.com>
2923
2924 Silvermont (SLM) architecture performance tuning.
2925 * config/i386/i386.h (enum ix86_tune_indices): Add
2926 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2927 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2928
2929 * config/i386/i386.c (initial_ix86_tune_features)
2930 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2931 (ix86_lea_outperforms): Handle Silvermont tuning.
2932 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2933 call.
2934 (ix86_use_lea_for_mov): Likewise.
2935 (ix86_avoid_lea_for_addr): Likewise.
2936 (ix86_lea_for_add_ok): Likewise.
2937 (exact_dependency_1): New function.
2938 (exact_store_load_dependency): Likewise.
2939 (ix86_adjust_cost): Handle Silvermont tuning.
2940 (do_reoder_for_imul): Likewise.
2941 (swap_top_of_ready_list): New function.
2942 (ix86_sched_reorder): Changed to handle Silvermont tuning.
2943
2944 * config/i386/i386.md (peepholes that split memory operand in fp
2945 converts): New.
2946
e19c9de2
MS
29472013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2948
2949 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2950 Remove un-necessary braces.
2951
38e6c9a6
MS
29522013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2953
2954 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2955 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2956
e3530904
TB
29572013-05-31 Tobias Burnus <burnus@net-b.de>
2958
2959 PR middle-end/57073
c1e183a9 2960 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 2961
b6af05a9
KT
29622013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2963
2964 PR target/56315
2965 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2966 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2967 * config/arm/neon.md (iordi3_neon): Remove.
2968 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2969 * config/arm/predicates.md (imm_for_neon_logic_operand):
2970 Move to earlier in the file.
2971 (neon_logic_op2): Likewise.
2972 (arm_iordi_operand_neon): New predicate.
2973
f800c166
RB
29742013-05-31 Richard Biener <rguenther@suse.de>
2975
2976 PR tree-optimization/57478
2977 PR tree-optimization/57453
2978 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2979 are life as well.
2980
e571fa59
KP
29812013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2982
2983 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2984 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2985
0fa6e0ef
TB
29862013-05-30 Tobias Burnus <burnus@net-b.de>
2987 Thomas Koenig <tkoenig@gcc.gnu.org>
2988
2989 PR middle-end/57073
2990 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2991 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2992
4688ddf5
SB
29932013-05-30 Steven Bosscher <steven@gcc.gnu.org>
2994
0fa6e0ef 2995 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 2996
3b9ceb4b
VM
29972013-05-30 Vladimir Makarov <vmakarov@redhat.com>
2998
2999 * target.def (register_usage_leveling_p): New hook.
3000 * targhooks.c (default_register_usage_leveling_p): New.
3001 * targhooks.h (default_register_usage_leveling_p): New prototype.
3002 * lra-assigns.c (register_usage_leveling_p): Use the hook.
3003 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
3004 * doc/tm.texi: Update.
3005 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
3006
65f9e789
IB
30072013-05-30 Ian Bolton <ian.bolton@arm.com>
3008
3009 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
3010 (*insv_reg<mode>): New define_insn.
3011
ca035367
JR
30122013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
3013
3014 PR rtl-optimization/57439
3015 * postreload.c (move2add_valid_value_p): Check that we have
3016 a zero subreg_regno_offset when accessing the register in
3017 the requested mode.
3018
0b871ccf
YR
30192013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
3020 Igor Zamyatin <igor.zamyatin@intel.com>
3021
3022 Silvermont (SLM) architecture pipeline model, tuning and
3023 insn selection.
3024 * config.gcc: Add slm config options and target.
3025
3026 * config/i386/slm.md: New.
3027
3028 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3029
3030 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
3031 PROCESSOR_SLM.
3032 (ix86_target_macros_internal): Likewise.
3033
3034 * gcc/config/i386/i386.c (slm_cost): New cost.
3035 (m_SLM): New macro flag.
3036 (initial_ix86_tune_features): Set m_SLM.
3037 (x86_accumulate_outgoing_args): Likewise.
3038 (x86_arch_always_fancy_math_387): Likewise.
3039 (processor_target_table): Add slm cost.
3040 (cpu_names): Add slm cpu name.
3041 (x86_option_override_internal): Set SLM ISA.
3042 (ix86_issue_rate): New case PROCESSOR_SLM.
3043 (ia32_multipass_dfa_lookahead): Likewise.
3044 (fold_builtin_cpu): Add slm.
3045
3046 * config/i386/i386.h (TARGET_SLM): New target macro.
3047 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
3048 (processor_type): Add PROCESSOR_SLM.
3049
3050 * config/i386/i386.md (cpu): Add new value "slm".
3051 (slm.md): Include slm.md.
3052
24d5b097
XG
30532013-05-30 Bernd Schmidt <bernds@codesourcery.com>
3054 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3055
3056 * config/arm/arm-protos.h: Add and update function protos.
3057 * config/arm/arm.c (use_simple_return_p): New added.
3058 (thumb2_expand_return): Check simple_return flag.
3059 * config/arm/arm.md: Add simple_return and conditional simple_return.
3060 * config/arm/iterators.md: Add iterator for return and simple_return.
3061
c1cccc15
ZC
30622013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
3063
3064 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
3065 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
3066 (arm_emit_vfp_multi_reg_pop): Likewise.
3067 (thumb2_emit_ldrd_pop): Likewise.
3068 (arm_expand_epilogue): Add misc REG_CFA notes.
3069 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
3070
3a4f280b
LC
30712013-05-29 Lawrence Crowl <crowl@google.com>
3072
3073 * config/arm/t-arm: Update for below.
3074
3075 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
3076 Change type to hash_table. Update dependent calls and types.
3077
3078 * config/i386/t-cygming: Update for below.
3079
3080 * config/i386/t-interix: Update for below.
3081
3082 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
3083 Change type to hash_table. Update dependent calls and types.
3084 (i386_find_on_wrapper_list::wrappers): Likewise.
3085
3086 * config/ia64/t-ia64: Update for below.
3087
3088 * config/ia64/ia64.c (bundle_state_table):
3089 Change type to hash_table. Update dependent calls and types.
3090
3091 * config/mips/mips.c (mips_reorg_process_insns::htab):
3092 Change type to hash_table. Update dependent calls and types.
3093
3094 * config/sol2.c (solaris_comdat_htab):
3095 Change type to hash_table. Update dependent calls and types.
3096
3097 * config/t-sol2: Update for above.
3098
1388a0e3
TJ
30992013-05-29 Teresa Johnson <tejohnson@google.com>
3100
3101 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
3102 functions are not yet marked as defined.
3103
a5965b52
MM
31042013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3105 Pat Haugen <pthaugen@us.ibm.com>
3106 Peter Bergner <bergner@vnet.ibm.com>
3107
3108 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
3109 instructions.
3110 (VEC_A): Likewise.
3111 (VEC_C): Likewise.
3112 (vrotl<mode>3): Likewise.
3113 (vashl<mode>3): Likewise.
3114 (vlshr<mode>3): Likewise.
3115 (vashr<mode>3): Likewise.
3116
3117 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3118 support for power8 V2DI builtins.
3119
3120 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
3121 power8 V2DI builtins.
3122 (vupkhsw): Likewise.
3123 (vupklsw): Likewise.
3124 (vaddudm): Likewise.
3125 (vminsd): Likewise.
3126 (vmaxsd): Likewise.
3127 (vminud): Likewise.
3128 (vmaxud): Likewise.
3129 (vpkudum): Likewise.
3130 (vpksdss): Likewise.
3131 (vpkudus): Likewise.
3132 (vpksdus): Likewise.
3133 (vrld): Likewise.
3134 (vsld): Likewise.
3135 (vsrd): Likewise.
3136 (vsrad): Likewise.
3137 (vsubudm): Likewise.
3138 (vcmpequd): Likewise.
3139 (vcmpgtsd): Likewise.
3140 (vcmpgtud): Likewise.
3141 (vcmpequd_p): Likewise.
3142 (vcmpgtsd_p): Likewise.
3143 (vcmpgtud_p): Likewise.
3144 (vupkhsw): Likewise.
3145 (vupklsw): Likewise.
3146 (vaddudm): Likewise.
3147 (vmaxsd): Likewise.
3148 (vmaxud): Likewise.
3149 (vminsd): Likewise.
3150 (vminud): Likewise.
3151 (vpksdss): Likewise.
3152 (vpksdus): Likewise.
3153 (vpkudum): Likewise.
3154 (vpkudus): Likewise.
3155 (vrld): Likewise.
3156 (vsld): Likewise.
3157 (vsrad): Likewise.
3158 (vsrd): Likewise.
3159 (vsubudm): Likewise.
3160
3161 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3162 support for power8 V2DI instructions.
3163
3164 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
3165 power8 V2DI instructions. Combine pack and unpack insns to use an
3166 iterator for each mode. Check whether a particular mode supports
3167 Altivec instructions instead of just checking TARGET_ALTIVEC.
3168 (UNSPEC_VPKUWUM): Likewise.
3169 (UNSPEC_VPKSHSS): Likewise.
3170 (UNSPEC_VPKSWSS): Likewise.
3171 (UNSPEC_VPKUHUS): Likewise.
3172 (UNSPEC_VPKSHUS): Likewise.
3173 (UNSPEC_VPKUWUS): Likewise.
3174 (UNSPEC_VPKSWUS): Likewise.
3175 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
3176 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
3177 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
3178 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
3179 (UNSPEC_VUPKHSB): Likewise.
3180 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
3181 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
3182 (UNSPEC_VUPKHSH): Likewise.
3183 (UNSPEC_VUPKLSB): Likewise.
3184 (UNSPEC_VUPKLSH): Likewise.
3185 (VI2): Likewise.
3186 (VI_char): Likewise.
3187 (VI_scalar): Likewise.
3188 (VI_unit): Likewise.
3189 (VP): Likewise.
3190 (VP_small): Likewise.
3191 (VP_small_lc): Likewise.
3192 (VU_char): Likewise.
3193 (add<mode>3): Likewise.
3194 (altivec_vaddcuw): Likewise.
3195 (altivec_vaddu<VI_char>s): Likewise.
3196 (altivec_vadds<VI_char>s): Likewise.
3197 (sub<mode>3): Likewise.
3198 (altivec_vsubcuw): Likewise.
3199 (altivec_vsubu<VI_char>s): Likewise.
3200 (altivec_vsubs<VI_char>s): Likewise.
3201 (altivec_vavgs<VI_char>): Likewise.
3202 (altivec_vcmpbfp): Likewise.
3203 (altivec_eq<mode>): Likewise.
3204 (altivec_gt<mode>): Likewise.
3205 (altivec_gtu<mode>): Likewise.
3206 (umax<mode>3): Likewise.
3207 (smax<mode>3): Likewise.
3208 (umin<mode>3): Likewise.
3209 (smin<mode>3): Likewise.
3210 (altivec_vpkuhum): Likewise.
3211 (altivec_vpkuwum): Likewise.
3212 (altivec_vpkshss): Likewise.
3213 (altivec_vpkswss): Likewise.
3214 (altivec_vpkuhus): Likewise.
3215 (altivec_vpkshus): Likewise.
3216 (altivec_vpkuwus): Likewise.
3217 (altivec_vpkswus): Likewise.
3218 (altivec_vpks<VI_char>ss): Likewise.
3219 (altivec_vpks<VI_char>us): Likewise.
3220 (altivec_vpku<VI_char>us): Likewise.
3221 (altivec_vpku<VI_char>um): Likewise.
3222 (altivec_vrl<VI_char>): Likewise.
3223 (altivec_vsl<VI_char>): Likewise.
3224 (altivec_vsr<VI_char>): Likewise.
3225 (altivec_vsra<VI_char>): Likewise.
3226 (altivec_vsldoi_<mode>): Likewise.
3227 (altivec_vupkhsb): Likewise.
3228 (altivec_vupkhs<VU_char>): Likewise.
3229 (altivec_vupkls<VU_char>): Likewise.
3230 (altivec_vupkhsh): Likewise.
3231 (altivec_vupklsb): Likewise.
3232 (altivec_vupklsh): Likewise.
3233 (altivec_vcmpequ<VI_char>_p): Likewise.
3234 (altivec_vcmpgts<VI_char>_p): Likewise.
3235 (altivec_vcmpgtu<VI_char>_p): Likewise.
3236 (abs<mode>2): Likewise.
3237 (vec_unpacks_hi_v16qi): Likewise.
3238 (vec_unpacks_hi_v8hi): Likewise.
3239 (vec_unpacks_lo_v16qi): Likewise.
3240 (vec_unpacks_hi_<VP_small_lc>): Likewise.
3241 (vec_unpacks_lo_v8hi): Likewise.
3242 (vec_unpacks_lo_<VP_small_lc>): Likewise.
3243 (vec_pack_trunc_v8h): Likewise.
3244 (vec_pack_trunc_v4si): Likewise.
3245 (vec_pack_trunc_<mode>): Likewise.
3246
3247 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
3248 V2DI builtins.
3249 (vec_vmaxsd): Likewise.
3250 (vec_vmaxud): Likewise.
3251 (vec_vminsd): Likewise.
3252 (vec_vminud): Likewise.
3253 (vec_vpksdss): Likewise.
3254 (vec_vpksdus): Likewise.
3255 (vec_vpkudum): Likewise.
3256 (vec_vpkudus): Likewise.
3257 (vec_vrld): Likewise.
3258 (vec_vsld): Likewise.
3259 (vec_vsrad): Likewise.
3260 (vec_vsrd): Likewise.
3261 (vec_vsubudm): Likewise.
3262 (vec_vupkhsw): Likewise.
3263 (vec_vupklsw): Likewise.
3264
e70670cf
JH
32652013-05-29 Jan Hubicka <jh@suse.cz>
3266
3267 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3268 flags; reorder rest of fields in more consistent way.
3269 (varpool_node): Remove analyzed, finalized and alias.
3270 (cgraph_ndoe): Likewise.
3271 (symtab_alias_ultimate_target): New function.
3272 (cgraph_function_node): Move offline.
3273 (cgraph_reset_node): Declare.
3274 (cgraph_comdat_can_be_unshared_p): Remove.
3275 (varpool_remove_initializer): Declare.
3276 (varpool_first_defined_variable, varpool_next_defined_variable
3277 cgraph_first_defined_function, cgraph_next_defined_function): Update.
3278 (cgraph_function_with_gimple_body_p): Update.
3279 (varpool_all_refs_explicit_p): Update.
3280 (symtab_alias_target): New function.
3281 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3282 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
3283 (cgraph_function_or_thunk_node): Simplify using
3284 symtab_alias_ultimate_target.
e70670cf
JH
3285 (varpool_variable_node): Likewise.
3286 * cgraph.c (cgraph_create_function_alias): Update.
3287 (cgraph_add_thunk): Update.
3288 (cgraph_remove_node): Update.
3289 (dump_cgraph_node): Do not dump removed flags.
3290 (cgraph_function_body_availability): Update.
3291 (cgraph_propagate_frequency): Update.
3292 (verify_cgraph_node): Check sanity of local flag.
3293 (cgraph_function_node): Move here from cgraph.h; revamp for
3294 cgraph_function_or_thunk_node.
3295 * lto-symtab.c (lto_varpool_replace_node): Update.
3296 (lto_symtab_resolve_can_prevail_p): Update.
3297 (lto_symtab_merge_cgraph_nodes): Update.
3298 * ipa-cp.c (determine_versionability, initialize_node_lattices,
3299 propagate_constants_accross_call, devirtualization_time_bonus,
3300 ipcp_propagate_stage): Update.
3301 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
3302 * ipa-inline-transform.c (clone_inlined_nodes,
3303 preserve_function_body_p): Update.
e70670cf
JH
3304 * ipa-reference.c (propagate): Update.
3305 (write_node_summary_p): Update.
3306 * toplev.c (wrapup_global_declaration_2): Update.
3307 * cgraphunit.c (cgraph_analyze_function): Rename to ...
3308 (analyze_function) ... this one.
3309 (cgraph_process_new_functions): Update.
3310 (cgraph_reset_node): Export.
3311 (cgraph_finalize_function): Update.
3312 (cgraph_add_new_function): Update.
3313 (process_function_and_variable_attributes): Update.
3314 (varpool_finalize_decl): Update.
3315 (symbol_finalized): Remove.
3316 (symbol_finalized_and_needed): Rename to ...
3317 (symbol_defined_and_needed): ... update.
3318 (cgraph_analyze_functions): Update.
3319 (handle_alias_pairs): Update.
3320 (mark_functions_to_output): Update.
3321 (assemble_thunk): Update.
3322 (output_in_order): Update.
3323 (output_weakrefs): Update.
3324 (finalize_compilation_unit): Update.
3325 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3326 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3327 input_node, input_varpool_node): Update.
3328 * dbxout.c (dbxout_expand_expr): Update.
3329 * cgraphclones.c (cgraph_clone_node): Update.
3330 (cgraph_copy_node_for_versioning): Update.
3331 (cgraph_materialize_clone): Update.
3332 (cgraph_materialize_all_clones): Update.
3333 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3334 propagate_pure_const, propagate_nothrow): Update.
3335 * lto-streamer-out.c (lto_output, write_symbol): Update.
3336 * ipa-utils.c (ipa_reverse_postorder): Update.
3337 * ipa-inline.c (can_inline_edge_p): Update.
3338 (update_caller_keys, ipa_inline): Update.
3339 * dwarf2out.c (reference_to_unused,
3340 premark_types_used_by_global_vars_helper): Update.
3341 * tree-eh.c (tree_could_trap_p): Update.
3342 * ipa-split.c (consider_split, execute_split_functions): Update.
3343 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
3344 has_addr_references_p): Update; move ahead in file for better
3345 readability.
e70670cf
JH
3346 (process_references): Simplify.
3347 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3348 bodies are removed.
3349 (cgraph_comdat_can_be_unshared_p): Make static.
3350 (cgraph_externally_visible_p): Update.
3351 (varpool_externally_visible_p): Update.
3352 (function_and_variable_visibility): Update.
3353 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3354 ipa_tm_mark_force_output_node): Update.
3355 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3356 estimate_edge_devirt_benefit, inline_generate_summary,
3357 inline_write_summary): Update.
3358 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3359 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
3360 (ipa_print_node_params, ipa_prop_read_section,
3361 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
3362 * varasm.c (mark_decl_referenced): Update.
3363 (assemble_alias, dump_tm_clone_pairs): Update.
3364 * tree-inline.c (copy_bb): Update.
3365 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3366 Update.
3367 * symtab.c (dump_symtab_base): Print new flags.
3368 (verify_symtab_base): Verify new flags.
3369 (symtab_alias_ultimate_target): New function.
3370 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3371 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3372 Update.
c1e183a9
UB
3373 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3374 Update.
e70670cf
JH
3375 * i386.c (ix86_get_function_versions_dispatcher,
3376 ix86_generate_version_dispatcher_body): Update.
3377 (fold_builtin_cpu): Use varpool_add_new_variable.
3378 * varpool.c (varpool_remove_initializer): Break out from ...
3379 (varpool_remove_node): ... this one.
3380 (dump_varpool_node, varpool_node_for_asm,
3381 cgraph_variable_initializer_availability, varpool_analyze_node,
3382 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
3383 varpool_finalize_named_section_flags, varpool_create_variable_alias):
3384 Update.
e70670cf 3385
182802ad
JH
33862013-05-29 Jan Hubicka <jh@suse.cz>
3387
3388 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3389
8190b609
ER
33902013-05-29 Easwaran Raman <eraman@google.com>
3391
3392 PR tree-optimization/57442
3393 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3394 when control exits the main loop.
3395
69f5aa9b
SKS
33962013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3397
3398 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3399 and RX600.
c1e183a9 3400 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
3401 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3402 * rx/t-rx: Add rx100 under multi library matches option for nofpu
3403 option.
3404
4b847da9
BS
34052013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3406
3407 PR tree-optimization/57441
3408 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3409 Don't limit size of incr_vec to number of candidates.
3410
4fc43c39
SE
34112013-05-29 Steve Ellcey <sellcey@imgtec.com>
3412
3413 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3414 and mips16 directories.
c1e183a9 3415 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
3416 (MULTILIB_DIRNAMES): Ditto.
3417 (MULTILIB_EXCEPTIONS): Add new exceptions.
3418 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3419 (MULTILIB_DIRNAMES): Ditto.
3420 (MULTILIB_EXCEPTIONS): Add new exceptions.
3421
a5350ddc
CSS
34222012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3423 Marcus Shawcroft <marcus.shawcroft@arm.com>
3424
3425 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3426 SYMBOL_TINY_ABSOLUTE.
3427 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3428 SYMBOL_TINY_ABSOLUTE.
3429 (aarch64_expand_mov_immediate): Likewise.
3430 (aarch64_classify_symbol): Likewise.
3431 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3432 Permit SYMBOL_TINY_ABSOLUTE.
3433 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3434
17f4d4bf
CSS
34352013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3436 Marcus Shawcroft <marcus.shawcroft@arm.com>
3437
3438 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
3439 Refactor if/switch. Replace gcc_assert with if.
3440
c0186656
GG
34412013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3442
3443 * config/i386/i386.c (initial_ix86_tune_features): Enable
3444 FP Reassociation for AMD bdver1 and bdver2.
3445
d20188f3
MJ
34462013-05-29 Martin Jambor <mjambor@suse.cz>
3447
3448 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
3449 and IMAGPART_EXPR do not occur within other handled_components.
3450
292cba13
RB
34512013-05-29 Richard Biener <rguenther@suse.de>
3452
3453 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
3454 access on whether the use is in the BB we currently try to
3455 vectorize.
3456 (vect_bb_vectorization_profitable_p): Pass the BB we currently
3457 vectorize to vect_bb_slp_scalar_cost.
3458
6eddf228
RB
34592013-05-29 Richard Biener <rguenther@suse.de>
3460
3461 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3462 computing scalar cost offsetted by stmts that are kept live
3463 by scalar uses.
3464 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3465 for computation of scalar cost.
3466
7df36117
SE
34672013-05-28 Steve Ellcey <sellcey@mips.com>
3468
3469 * config/mips/mips-cpus.def (mips32r2): Change processor type.
3470
36536d79
BI
34712013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3472
3473 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
3474 array notation built-in reduction functions.
3475 * doc/passes.texi (Passes): Added documentation about changes done
3476 for Cilk Plus.
3477 * doc/invoke.texi (C Dialect Options): Added documentation about
3478 the -fcilkplus flag.
3479 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
3480 (BUILTINS_DEF): Depend on cilkplus.def.
3481 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
3482 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
3483 * cilkplus.def: New file.
3484
b49eefa5
JR
34852013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
3486
3487 PR rtl-optimization/57439
3488 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
3489
9daf6dbb
ER
34902013-05-28 Easwaran Raman <eraman@google.com>
3491
3492 PR tree-optimization/57337
3493 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
3494 (find_insert_point): Correctly identify the insertion point
3495 when two statements with the same UID is compared.
3496
fbd7e877
RB
34972013-05-28 Richard Biener <rguenther@suse.de>
3498
3499 PR tree-optimization/56787
3500 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
3501 from the list of data references.
3502 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3503 clobbers.
3504 (vect_analyze_loop_operations): Likewise.
3505 (vect_transform_loop): Remove clobbers.
3506
bbba1117
MJ
35072013-05-28 Martin Jambor <mjambor@suse.cz>
3508
3509 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
3510 and REALPART_EXPRs have scalar type.
3511
bd388c2a
RB
35122013-05-28 Richard Biener <rguenther@suse.de>
3513
3514 PR tree-optimization/57411
3515 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
3516 virtual operands.
3517 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
3518 virtual operand propagation.
3519
2f56a311
EB
35202013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3521
3522 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
3523 destination register for bmasksi_vis.
3524 (vector_init_bshuffle): Likewise.
3525 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3526
5c3eacbb
EB
35272013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3528
3529 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
3530 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
3531 mode if the instruction isn't available in the original mode.
3532 * config/sparc/sparc.opt (mfix-ut699): New option.
3533 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
3534 (divdf3): Turn into expander.
3535 (divdf3_nofix): New insn.
3536 (divdf3_fix): Likewise.
3537 (divsf3): Disable if -mfix-ut699.
3538 (sqrtdf2): Turn into expander.
3539 (sqrtdf2_nofix): New insn.
3540 (sqrtdf2_fix): Likewise.
3541 (sqrtsf2): Disable if -mfix-ut699.
3542
a1756c0a
RB
35432013-05-27 Richard Biener <rguenther@suse.de>
3544
3545 PR middle-end/57412
3546 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
3547 block for the new loop.
3548
5a892248
RB
35492013-05-27 Richard Biener <rguenther@suse.de>
3550
3551 PR tree-optimization/57343
3552 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
3553 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
3554 (number_of_iterations_cond): Do not build the folded tree.
3555
d1de852b
RB
35562013-05-27 Richard Biener <rguenther@suse.de>
3557
3558 Revert
3559 PR middle-end/57381
3560 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3561 OEP_CONSTANT_ADDRESS_OF retained.
3562
3563 PR tree-optimization/57417
3564 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
3565 for unchanged base.
3566 (set_ssa_val_to): Compare addresses using
3567 get_addr_base_and_unit_offset.
3568
7894bc6b
JR
35692013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
3570
3571 PR rtl-optimization/56833
3572 * postreload.c (move2add_record_mode): New function.
3573 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
3574 (move2add_use_add2_insn): Use move2add_record_sym_value.
3575 (move2add_use_add3_insn): Likewise.
3576 (reload_cse_move2add): Use move2add_valid_value_p and
3577 move2add_record_mode. Invalidate call-clobbered and REG_INC
3578 affected regs by setting reg_mode to VOIDmode.
3579 (move2add_note_store): Don't pretend the inside of a SUBREG is
3580 the actual destination. Invalidate single/leading registers by
3581 setting reg_mode to VOIDmode.
3582 Use move2add_record_sym_value, move2add_valid_value_p and
3583 move2add_record_mode.
3584
b03be25f
RB
35852013-05-27 Richard Biener <rguenther@suse.de>
3586
3587 PR tree-optimization/57396
3588 * tree-affine.c (double_int_constant_multiple_p): Properly
3589 return false for val == 0 and div != 0.
3590
44e88db2
RS
35912013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3592
3593 * config/mips/mips.h: Use #elif in preprocessor conditions.
3594
3b859704
RS
35952013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3596
3597 PR target/53916
3598 * config/mips/constraints.md (kl): New constraint.
3599 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
3600 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
3601 constraint for operand 0. Split after CSE for MIPS16. Emit a move
3602 from LO for MIPS16.
3603 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
3604
c979d5f5
RS
36052013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3606
3607 PR target/55777
3608 * config/mips/mips.c (mips_can_inline_p): New function.
3609 (TARGET_CAN_INLINE_P): Define.
3610
8e90de43
SB
36112013-05-25 Steven Bosscher <steven@gcc.gnu.org>
3612
3613 * sched-int.h (ds_t, dw_t): Make unsigned int.
3614 Fix documentation that describes how all the ds_t bits are used.
3615 Reserve the last bit for delayed-branch scheduling.
3616 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
3617 (BITS_PER_DEP_WEAK): Fix definition and documentation.
3618 (gen_dep_weak_1): Remove prototype.
3619 * sched-deps.c (get_dep_weak_1): Make static.
3620 * target.def (speculate_insn, needs_block_p, gen_spec_check,
3621 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
3622 * doc/tm.texi: Regenerate.
3623 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
3624
cb5cb194
SB
36252013-05-24 Steven Bosscher <steven@gcc.gnu.org>
3626
3627 PR debug/56950
3628 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
3629
5bd93ff6
NS
36302013-05-24 Nathan Sidwell <nathan@codesourcery.com>
3631 Sandra Loosemore <sandra@codesourcery.com>
3632
3633 * config.gcc (powerpc-*): Allow native for with-cpu.
3634
2343af65
JL
36352013-05-24 Jeff Law <law@redhat.com>
3636
3637 PR tree-optimization/57124
3638 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
3639 conversion feeding a condition if the range has an overflow
3640 if -fstrict-overflow. Add warnings for when we do make the
3641 transformation.
3642
3ad695b9
DC
36432013-05-24 Dehao Chen <dehao@google.com>
3644
04960246 3645 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
3646 (locus_discrim_hasher): Likewise.
3647 (locus_discrim_hasher::hash): Likewise.
3648 (locus_discrim_hasher::equal): Likewise.
3649
82338059
MJ
36502013-05-24 Martin Jambor <mjambor@suse.cz>
3651
3652 PR tree-optimization/57294
3653 * cgraph.h (ipa_record_stmt_references): Declare.
3654 * cgraphbuild.c (ipa_record_stmt_references): New function.
3655 (build_cgraph_edges): Use ipa_record_stmt_references.
3656 (rebuild_cgraph_edges): Likewise.
3657 (cgraph_rebuild_references): Likewise.
3658 * ipa-prop.c (ipa_modify_call_arguments): Discard references
3659 associated with the old statement and build references from the
3660 newly built statements.
3661 * ipa-ref.c (ipa_remove_stmt_references): New function.
3662 * ipa-ref.h (ipa_remove_stmt_references): Declare.
3663
1ccd4874
VM
36642013-05-24 Vladimir Makarov <vmakarov@redhat.com>
3665
55805e54 3666 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 3667 mem-mem moves.
55805e54 3668 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 3669 too.
55805e54 3670 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
3671 secondary memory moves.
3672 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
3673 reg set up in the current insn.
3674
25e25c73
DC
36752013-05-24 Dehao Chen <dehao@google.com>
3676
04960246 3677 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
3678 hash function.
3679 (locus_descrim_hasher::equal): Likewise.
04960246 3680 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
3681 (make_edges): Likewise.
3682 (next_discriminator_for_locus): Likewise.
3683 (same_line_p): Likewise.
3684 (assign_discriminators): Likewise.
3685 (make_cond_expr_edges): Likewise.
3686 (make_gimple_switch_edges): Likewise.
3687 (make_goto_expr_edges): Likewise.
3688 (make_gimple_asm_edges): Likewise.
3689
50d38551
IB
36902013-05-24 Ian Bolton <ian.bolton@arm.com>
3691
3692 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
3693 X format specifier to only display bottom 16 bits.
3694 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
3695 immediate to match for operand 2, since it will be masked.
3696
aea0101d
RB
36972013-05-24 Richard Biener <rguenther@suse.de>
3698
3699 PR tree-optimization/57287
3700 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
3701 all SSA names that occur in abnormal PHIs.
3702
634e03d3
AI
37032013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3704
3705 PR tree-ssa/57385
3706 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
3707 that index is not negative.
3708
b17c024f
EB
37092013-05-24 Eric Botcazou <ebotcazou@adacore.com>
3710
3711 PR rtl-optimization/55177
3712 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
3713 (simplify_byte_swapping_operation): New.
3714 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
3715 (simplify_relational_operation_1): Deal with BSWAP.
3716
46aeac1b
RH
37172013-05-23 Richard Henderson <rth@redhat.com>
3718
3719 PR target/56742
3720 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
3721 (ix86_reorg): Call it.
3722
70cc1536
UB
37232013-05-23 Uros Bizjak <ubizjak@gmail.com>
3724
3725 PR target/57379
3726 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3727 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3728 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3729
b3851501
CB
37302013-05-23 Christian Bruel <christian.bruel@st.com>
3731
3732 PR debug/57351
3733 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3734
4e194912
CSS
37352013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3736 Marcus Shawcroft <marcus.shawcroft@arm.com>
3737
3738 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3739 * config/aarch64/constraints.md (Usa): Remove.
3740 * doc/md.texi (AArch64 Usa): Remove.
3741
83f8c414
CSS
37422013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3743 Marcus Shawcroft <marcus.shawcroft@arm.com>
3744
3745 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3746 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3747 * config/aarch64/predicates.md (aarch64_const_address): Remove.
3748 (aarch64_mov_operand): Use aarch64_mov_operand_p.
3749
b5574232
VP
37502013-05-23 Vidya Praveen <vidyapraveen@arm.com>
3751
3752 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3753 instruction (AdvSIMD).
3754 * config/aarch64/aarch64-builtins.c
3755 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3756 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3757
76c36cb1 37582013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
3759
3760 PR middle-end/57347
3761 * tree.h (contains_bitfld_component_ref_p): Declare.
3762 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
3763 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
3764 caller.
7d2fb524
MJ
3765 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3766 not access a bit-field. Assert all final offsets are byte-aligned.
3767
ce521ae6
RB
37682013-05-23 Richard Biener <rguenther@suse.de>
3769
3770 PR tree-optimization/57380
3771 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3772 least one invariant or re-used load.
3773 * passes.c (init_optimization_passes): Move pass_phiprop before
3774 pass_forwprop.
3775
75c7257f
JG
37762013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
3777
3778 * config/aarch64/aarch64-simd.md
3779 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3780
af6d44b5
RB
37812013-05-23 Richard Biener <rguenther@suse.de>
3782
3783 PR middle-end/57381
3784 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3785 OEP_CONSTANT_ADDRESS_OF retained.
3786
bd3647bf
JJ
37872013-05-23 Jakub Jelinek <jakub@redhat.com>
3788
3789 PR middle-end/57344
70cc1536
UB
3790 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3791 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 3792
a55757ea
RB
37932013-05-23 Richard Biener <rguenther@suse.de>
3794
3795 PR rtl-optimization/57341
3796 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3797 instead of true_dependence.
3798
cfb00b41
DM
37992013-05-22 David Malcolm <dmalcolm@redhat.com>
3800
dd1c676f
DM
3801 * bb-reorder.c (branch_threshold): Make const.
3802 (exec_threshold): Ditto.
cfb00b41 3803
f62511da
MM
38042013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3805 Pat Haugen <pthaugen@us.ibm.com>
3806 Peter Bergner <bergner@vnet.ibm.com>
3807
3808 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3809 documentation for the power8 crypto builtins.
3810
3811 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3812
3813 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3814 macros for defining power8 builtin functions.
3815 (BU_P8V_AV_2): Likewise.
3816 (BU_P8V_AV_P): Likewise.
3817 (BU_P8V_VSX_1): Likewise.
3818 (BU_P8V_OVERLOAD_1): Likewise.
3819 (BU_P8V_OVERLOAD_2): Likewise.
3820 (BU_CRYPTO_1): Likewise.
3821 (BU_CRYPTO_2): Likewise.
3822 (BU_CRYPTO_3): Likewise.
3823 (BU_CRYPTO_OVERLOAD_1): Likewise.
3824 (BU_CRYPTO_OVERLOAD_2): Likewise.
3825 (XSCVSPDP): Fix typo, point to the correct instruction.
3826 (VCIPHER): Add power8 crypto builtins.
3827 (VCIPHERLAST): Likewise.
3828 (VNCIPHER): Likewise.
3829 (VNCIPHERLAST): Likewise.
3830 (VPMSUMB): Likewise.
3831 (VPMSUMH): Likewise.
3832 (VPMSUMW): Likewise.
3833 (VPERMXOR_V2DI): Likewise.
3834 (VPERMXOR_V4SI: Likewise.
3835 (VPERMXOR_V8HI: Likewise.
3836 (VPERMXOR_V16QI: Likewise.
3837 (VSHASIGMAW): Likewise.
3838 (VSHASIGMAD): Likewise.
3839 (VPMSUM): Likewise.
3840 (VPERMXOR): Likewise.
3841 (VSHASIGMA): Likewise.
3842
3843 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3844 __CRYPTO__ if the crypto instructions are available.
3845 (altivec_overloaded_builtins): Add support for overloaded power8
3846 builtins.
3847
3848 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3849 support for power8 crypto builtins.
3850 (builtin_function_type): Likewise.
3851 (altivec_init_builtins): Add support for builtins that take vector
3852 long long (V2DI) arguments.
3853
3854 * config/rs6000/crypto.md: New file, define power8 crypto
3855 instructions.
3856
38572013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3858 Pat Haugen <pthaugen@us.ibm.com>
3859 Peter Bergner <bergner@vnet.ibm.com>
3860
3861 * doc/invoke.texi (Option Summary): Add power8 options.
3862 (RS/6000 and PowerPC Options): Likewise.
3863
3864 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3865 constraints.md instead of rs6000.h. Reorder w* constraints. Add
3866 wm, wn, wr documentation.
3867
3868 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3869 registers if direct move instructions are enabled.
3870 (wn): New constraint for no registers.
3871 (wq): New constraint for quad word even GPR registers.
3872 (wr): New constraint if 64-bit instructions are enabled.
3873 (wv): New constraint if power8 vector instructions are enabled.
3874 (wQ): New constraint for quad word memory locations.
3875
3876 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3877 constraint for 0..15 for crypto instructions.
3878 (gpc_reg_operand): If VSX allow registers in VSX registers as well
3879 as GPR and floating point registers.
3880 (int_reg_operand): New predicate to match only GPR registers.
3881 (base_reg_operand): New predicate to match base registers.
3882 (quad_int_reg_operand): New predicate to match even GPR registers
3883 for quad memory operations.
3884 (vsx_reg_or_cint_operand): New predicate to allow vector logical
3885 operations in both GPR and VSX registers.
3886 (quad_memory_operand): New predicate for quad memory operations.
3887 (reg_or_indexed_operand): New predicate for direct move support.
3888
3889 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3890 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3891 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3892 (POWERPC_MASKS): Add power8 options.
3893 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3894 various options.
3895
3896 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3897 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3898
3899 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3900 (-mpower8-fusion): New power8 options.
3901 (-mpower8-fusion-sign): Likewise.
3902 (-mpower8-vector): Likewise.
3903 (-mcrypto): Likewise.
3904 (-mdirect-move): Likewise.
3905 (-mquad-memory): Likewise.
3906
3907 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3908 power8.
3909 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3910 registers.
70cc1536 3911 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
3912 (rs6000_debug_vector_unit): Add p8_vector.
3913 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3914 definitions. Also print fusion state.
3915 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3916 (rs6000_builtin_mask_calculate): Add power8 builtin support.
3917 (rs6000_option_override_internal): Add support for power8.
3918 (rs6000_common_init_builtins): Add debugging for skipped builtins
3919 if -mdebug=builtin.
3920 (rs6000_adjust_cost): Add power8 support.
3921 (rs6000_issue_rate): Likewise.
3922 (insn_must_be_first_in_group): Likewise.
3923 (insn_must_be_last_in_group): Likewise.
3924 (force_new_group): Likewise.
3925 (rs6000_register_move_cost): Likewise.
3926 (rs6000_opt_masks): Likewise.
3927
3928 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3929 power8 capable assembler, default to power7 options.
3930 (TARGET_DIRECT_MOVE): Likewise.
3931 (TARGET_CRYPTO): Likewise.
3932 (TARGET_P8_VECTOR): Likewise.
3933 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3934 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3935 (VECTOR_MEM_P8_VECTOR_P): Likewise.
3936 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3937 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3938 (TARGET_XSCVDPSPN): Likewise.
3939 (TARGET_XSCVSPDPN): Likewsie.
3940 (TARGET_SYNC_HI_QI): Likewise.
3941 (TARGET_SYNC_TI): Likewise.
3942 (MASK_CRYPTO): Likewise.
3943 (MASK_DIRECT_MOVE): Likewise.
3944 (MASK_P8_FUSION): Likewise.
3945 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
3946 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3947 temporary used by some of the direct move instructions to get two FP
3948 temporary registers does not force creation of a stack frame.
f62511da
MM
3949 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3950 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3951 that any VSX registers are tieable, even if they are also an
3952 Altivec vector mode.
3953 (r6000_reg_class_enum): Add wm, wr, wv constraints.
3954 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3955 (RS6000_BTM_CRYPTO): Likewise.
3956 (RS6000_BTM_COMMON): Likewise.
3957
3958 * config/rs6000/rs6000.md (cpu attribute): Add power8.
3959 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3960 (enum rs6000_vector): Add power8 vector support.
3961
73a1a707
RR
39622013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3963
3964 PR target/19599
3965 PR target/57340
3966 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3967 (any_sibcall_could_use_r3): this and handle indirect calls.
3968 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3969
d28073d4
BS
39702013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3971
3972 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3973
bee0b10c
RB
39742013-05-22 Richard Biener <rguenther@suse.de>
3975
3976 PR middle-end/57349
3977 * profile.c (branch_prob): Do not split blocks that are
3978 abnormally receiving from ECF_RETURNS_TWICE functions.
3979
98409b51
RS
39802013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3981
3982 * recog.c (offsettable_address_addr_space_p): Fix calculation of
3983 address mode. Move pointer mode initialization to the same place.
3984
c0602ab8
MZ
39852013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3986
3987 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3988 while it has any effect.
3989
4f7a634e
ER
39902013-05-21 Easwaran Raman <eraman@google.com>
3991
3992 PR tree-optimization/57322
9daf6dbb
ER
3993 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3994 UID of the statement added to the BB to be 1.
4f7a634e 3995
a4ce1258
JJ
39962013-05-21 Jakub Jelinek <jakub@redhat.com>
3997
3998 PR tree-optimization/57331
70cc1536
UB
3999 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
4000 of conversion from pointer type to integral type with integer.
a4ce1258 4001
1b14621a
MJ
40022013-05-21 Martin Jambor <mjambor@suse.cz>
4003
4004 PR lto/57289
4005 * ipa-prop.c (ipa_read_node_info): Process param_used and
4006 controlled_uses in the same order as when writing.
4007
e60661f0
MG
40082013-05-21 Magnus Granberg <baldrick@free.fr>
4009
4010 PR plugins/56754
ee49aa34 4011 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 4012
4a61be9a
RB
40132013-05-21 Richard Biener <rguenther@suse.de>
4014
4015 PR tree-optimization/57318
4016 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
4017 estimate stmts with side-effects as likely eliminated.
4018
c52da5f7
RB
40192013-05-21 Richard Biener <rguenther@suse.de>
4020
4021 PR tree-optimization/57330
4022 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
4023 preserve the call stmts fntype.
4024
7ec67e2a
RB
40252013-05-21 Richard Biener <rguenther@suse.de>
4026
4027 PR tree-optimization/57303
4028 * tree-ssa-sink.c (statement_sink_location): Improve killing
4029 stmt detection and properly handle self-assignments.
4030
b112d513
CB
40312013-05-21 Christian Bruel <christian.bruel@st.com>
4032
55805e54
YR
4033 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
4034 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
4035 registers. Set register size out of the PARALLEL loop.
4036
14c2ec26
OE
40372013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
4038
4039 PR target/56547
4040 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
4041 (*fmasf4, *fmasf4_media): New insns.
4042
da734fa1
RS
40432013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4044
4045 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
4046 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
4047 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
4048 (mips_idiv_insns): Update the comments to say that the returned
4049 instruction counts are in units of BASE_INSN_LENGTH.
4050 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
4051 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
4052 using 2 rather than 4 as the length of indirect MIPS16 and
4053 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
4054 length of a NOP. Don't divide MIPS16 lengths by 2.
4055 (mips16_split_long_branches): Assume a branch is long if the
4056 length is greater than 4 rather than 8.
4057 * config/mips/mips.md (length): Give MIPS16 lengths directly,
4058 rather than multiplying them by 2. Multiply instruction counts
4059 by BASE_INSN_LENGTH rather than 4.
4060 (*jump_mips16, tls_get_tp_mips16_<mode>)
4061 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
4062
13719e8b
RS
40632013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4064
4065 * config/mips/mips.md (extended_mips16): Remove branch case.
4066 (length): Remove duplicated extended_mips16 test.
4067
c3850d14
RS
40682013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
4069
4070 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
4071
8da2e059
RS
40722013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
4073
4074 * recog.h (Recog_data): Rename to...
4075 (recog_data_d): ...this.
4076 (recog_data): Update accordingly.
4077 * recog.c (recog_data): Likewise.
4078 * reload.c (save_recog_data): Likewise.
4079 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
4080 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
4081
2df013f3
JB
40822013-05-17 Julian Brown <julian@codesourcery.com>
4083
4084 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
4085 found in a REG_EQUAL note, invalidate it.
4086
933f507d
ER
40872013-05-17 Easwaran Raman <eraman@google.com>
4088
4089 * tree-ssa-reassoc.c (find_insert_point): New function.
4090 (insert_stmt_after): Likewise.
4091 (get_def_stmt): Likewise.
4092 (ensure_ops_are_available): Likewise.
4093 (not_dominated_by): Likewise.
4094 (rewrite_expr_tree): Do not move statements beyond what is
4095 necessary. Remove call to swap_ops_for_binary_stmt...
4096 (reassociate_bb): ... and move it here.
4097 (build_and_add_sum): Assign UIDs for new statements.
4098 (linearize_expr): Likewise.
4099 (do_reassoc): Renumber gimple statement UIDs.
4100
e01c7cca
JH
41012013-05-17 Jan Hubicka <jh@suse.cz>
4102
4103 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
4104 weakrefs.
4105 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
4106 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
4107 weakrefs.
e01c7cca
JH
4108 (output_weakrefs): Update.
4109
c3272a92
PCC
41102013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
4111 Martin Jambor <mjambor@suse.cz>
4112
4113 PR middle-end/57276
4114 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
4115 value that corresponds to the given aggval is found in values vector.
4116
11c2aa39
UB
41172013-05-17 Uros Bizjak <ubizjak@gmail.com>
4118
4119 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
4120 sse, sse2, sse3, ssse3 and sse4a flags to options.
4121
abecc8c6
DM
41222013-05-17 David Malcolm <dmalcolm@redhat.com>
4123
4124 * gengtype-state.c: (s_expr_writer): New class, to handle
4125 prettifying of output layout of s-expressions.
4126 (state_writer): New class, to write out gtype.state.
4127 (state_written_type_count): Move this variable into member data of
4128 state_writer.
4129 (s_expr_writer::s_expr_writer): New code: constructor for new class
4130 (state_writer::state_writer(): ditto
4131 (s_expr_writer::write_new_line): New function
4132 (s_expr_writer::write_any_indent): ditto
4133 (s_expr_writer::begin_s_expr): ditto
4134 (s_expr_writer::end_s_expr): ditto
4135 (write_state_fileloc): convert to method of state_writer...
4136 (state_writer:: write_state_fileloc): ...and use methods of
4137 s_expr_writer to write indentation into the gtype.state output file
4138 to visually represent the hierarchical structure of the list
4139 structures
4140 (write_state_fields): ditto, renaming to...
4141 (state_writer::write_state_fields)
4142 (write_state_a_string): ditto, renaming to...
4143 (state_writer::write_state_a_string)
4144 (write_state_string_option): ditto, renaming to...
4145 (state_writer::write_state_string_option)
4146 (write_state_type_option): ditto, renaming to...
4147 (state_writer::write_state_type_option)
4148 (write_state_nested_option): ditto, renaming to...
4149 (state_writer::write_state_nested_option)
4150 (write_state_option): ditto, renaming to...
4151 (state_writer::write_state_option)
4152 (write_state_options): ditto, renaming to...
4153 (state_writer::write_state_options)
4154 (write_state_lang_bitmap): ditto, renaming to...
4155 (state_writer::write_state_lang_bitmap)
4156 (write_state_version): ditto, renaming to...
4157 (state_writer::write_state_version)
4158 (write_state_scalar_type): ditto, renaming to...
4159 (state_writer::write_state_scalar_type)
4160 (write_state_string_type): ditto, renaming to...
4161 (state_writer::write_state_string_type)
4162 (write_state_undefined_type): ditto, renaming to...
4163 (state_writer::write_state_undefined_type)
4164 (write_state_struct_union_type): ditto, renaming to...
4165 (state_writer::write_state_struct_union_type)
4166 (write_state_struct_type): ditto, renaming to...
4167 (state_writer::write_state_struct_type)
4168 (write_state_user_struct_type): ditto, renaming to...
4169 (state_writer::write_state_user_struct_type)
4170 (write_state_lang_struct_type): ditto, renaming to...
4171 (state_writer::write_state_lang_struct_type)
4172 (write_state_param_struct_type): ditto, renaming to...
4173 (state_writer::write_state_param_struct_type)
4174 (write_state_pointer_type): ditto, renaming to...
4175 (state_writer::write_state_pointer_type)
4176 (write_state_array_type): ditto, renaming to...
4177 (state_writer::write_state_array_type)
4178 (write_state_gc_used): ditto, renaming to...
4179 (state_writer::write_state_gc_used)
4180 (write_state_common_type_content): ditto, renaming to...
4181 (state_writer::write_state_common_type_content)
4182 (write_state_type): ditto, renaming to...
4183 (state_writer::write_state_type)
4184 (write_state_pair_list): ditto, renaming to...
4185 (state_writer::write_state_pair_list)
4186 (write_state_pair): ditto, renaming to...
4187 (state_writer::write_state_pair)
4188 (write_state_typedefs): ditto, renaming to...
4189 (state_writer::write_state_typedefs)
4190 (write_state_structures): ditto, renaming to...
4191 (state_writer::write_state_structures)
4192 (write_state_param_structs): ditto, renaming to...
4193 (state_writer::write_state_param_structs)
4194 (write_state_variables): ditto, renaming to...
4195 (state_writer::write_state_variables)
4196 (write_state_srcdir): ditto, renaming to...
4197 (state_writer::write_state_srcdir)
4198 (write_state_files_list): ditto, renaming to...
4199 (state_writer::write_state_files_list)
4200 (write_state_languages): ditto, renaming to...
4201 (state_writer::write_state_languages)
4202 (write_state): create a state_writer instance and use it when
4203 writing out the state file
4204
d6545f29
MS
42052013-05-17 Mike Stump <mikestump@comcast.net>
4206
816a3f73 4207 PR rtl-optimization/57304
d6545f29
MS
4208 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
4209 accessing DF_REF_REAL_LOC.
4210
38c821cf
JJ
42112013-05-17 Jakub Jelinek <jakub@redhat.com>
4212
4213 PR rtl-optimization/57281
4214 PR rtl-optimization/57300
4215 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
4216 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
4217 what the other splitter did if the registers are dead.
4218
2a293391
RB
42192013-05-17 Richard Biener <rguenther@suse.de>
4220
4221 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
4222 MEM_REF offsets.
4223
17042d2b
JJ
42242013-05-17 Jakub Jelinek <jakub@redhat.com>
4225
4226 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
4227 linking.
4228
5b115c1f
MP
42292013-05-17 Marek Polacek <polacek@redhat.com>
4230
11c2aa39
UB
4231 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
4232 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 4233
52d84413
JJ
42342013-05-17 Jakub Jelinek <jakub@redhat.com>
4235
68119618
JJ
4236 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
4237 vect_external_def oprnd1 with loop_vinfo, try to emit
4238 optional cast, negation and and stmts on the loop preheader
4239 edge instead of into the pattern def seq.
4240
52d84413
JJ
4241 PR tree-optimization/57051
4242 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
4243 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
4244
17b962bd
NC
42452013-05-16 Nick Clifton <nickc@redhat.com>
4246
4247 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
4248 (rl78_is_naked_func): New function.
56aefbf7
UB
4249 (rl78_expand_prologue): Skip prologue generation for naked functions.
4250 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
4251 * doc/extend.texi (naked): Add RL78 to the list of processors
4252 that supports this attribute.
4253
b1a0f84e
JL
42542013-05-16 Jeff Law <law@redhat.com>
4255
4256 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
4257
af0e415b
UB
42582013-05-16 Uros Bizjak <ubizjak@gmail.com>
4259
4260 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
4261 cache parameters using detect_caches_amd also for CYRIX,
4262 NSC and TM2 signatures.
4263
19db293a
UB
42642013-05-16 Uros Bizjak <ubizjak@gmail.com>
4265 Dzianis Kahanovich <mahatma@eu.by>
4266
4267 PR target/45359
4268 PR target/46396
4269 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4270 VIA/Centaur processors and determine their cache parameters
4271 using detect_caches_amd.
4272
251a41b9
TJ
42732013-05-16 Teresa Johnson <tejohnson@google.com>
4274
4275 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4276 (rtl_verify_edges): New function.
4277 (rtl_verify_bb_insns): Ditto.
4278 (rtl_verify_bb_pointers): Ditto.
4279 (rtl_verify_bb_insn_chain): Ditto.
4280 (rtl_verify_fallthru): Ditto.
4281 (rtl_verify_bb_layout): Ditto.
4282 (rtl_verify_flow_info_1): Outline checks into new functions.
4283 (rtl_verify_flow_info): Ditto.
4284
f14540b6
SE
42852013-05-16 Steve Ellcey <sellcey@imgtec.com>
4286
4287 * cfghooks.c (copy_bbs): Add update_dominance argument.
4288 * cfghooks.h (copy_bbs): Update prototype.
4289 * tree-cfg.c (gimple_duplicate_sese_region):
4290 Add update_dominance argument.
4291 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4292 * tree-ssa-loop-ch.c (copy_loop_headers): Update
4293 gimple_duplicate_sese_region call.
4294 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4295 Update copy_bbs call.
4296 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4297 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4298
7e9a3abb
JJ
42992013-05-16 Jakub Jelinek <jakub@redhat.com>
4300
4301 * tree-vectorizer.h (NUM_PATTERNS): Increment.
4302 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4303 vect_recog_rotate_pattern.
4304 (vect_recog_rotate_pattern): New function.
4305
427b248d
JM
43062013-05-16 Jason Merrill <jason@redhat.com>
4307
4308 * Makefile.in (LLINKER): New variable.
4309 (mostlyclean): Remove link mutex.
4310 * configure.ac: Handle --enable-link-mutex.
4311 * lock-and-run.sh: New script.
4312
b871e3d2
RR
43132013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4314
4315 PR target/19599
4316 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4317 for NULL decl.
4318
ce858126
RO
43192013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4320
4321 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4322
798d3d04
GY
43232013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
4324
4325 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4326 * config/arm/arm.c (next_consecutive_mem): New function.
4327 (gen_movmem_ldrd_strd): Likewise.
4328 * config/arm/arm.md (movmemqi): Update condition and code.
4329 (unaligned_loaddi, unaligned_storedi): New patterns.
4330
0baddc45
RO
43312013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4332
4333 * config.gcc: Obsolete *-*-solaris2.9*.
4334 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4335
aa9d5bcf
RB
43362013-05-16 Richard Biener <rguenther@suse.de>
4337
4338 * passes.c (init_optimization_passes): Move pass_parallelize_loops
4339 earlier, after GRAPHITE transforms and IV canonicalization.
4340
5a0f4dd3
JJ
43412013-05-16 Jakub Jelinek <jakub@redhat.com>
4342
4343 * omp-low.c (extract_omp_for_data): For collapsed loops,
4344 if at least one of the loops is known at compile time to
4345 iterate zero times, set count to 0.
4346 (expand_omp_regimplify_p): New function.
4347 (expand_omp_for_generic): For collapsed loops, if at least
4348 one of the loops isn't known to iterate at least once,
4349 add runtime check with setting count to 0.
4350 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4351 For unsigned types if it isn't known at compile time that
4352 the loop will iterate at least once, add runtime check to bypass
4353 the whole loop if initial condition isn't true.
4354
e3753785
NS
43552013-05-16 Nathan Sidwell <nathan@codesourcery.com>
4356
4357 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4358
43bb4dd1
MG
43592013-05-16 Marc Glisse <marc.glisse@inria.fr>
4360
4361 PR middle-end/57286
4362 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4363 transformations to avoid an infinite loop.
4364
3571dde6
MP
43652013-05-16 Marek Polacek <polacek@redhat.com>
4366
4367 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4368
b8b3f0ca
LE
43692013-05-15 Leif Ekblad <leif@rdos.net>
4370
4371 * config/i386/i386.c (ix86_decompose_address): Use
4372 DEFAULT_TLS_SEG_REG to access TLS segment register.
4373 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4374 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4375 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4376
e299a383
RS
43772013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
4378
4379 PR target/57260
4380 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4381 sibling calls to functions that would normally be lazily bound,
4382 unless $gp is call-clobbered.
4383
e7208ea3
UB
43842013-05-15 Uros Bizjak <ubizjak@gmail.com>
4385
19db293a 4386 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 4387 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
4388 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4389 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
4390 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4391 of TARGET_3DNOW.
4392 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4393
e7413f3d
AS
43942013-05-15 Andreas Schwab <schwab@suse.de>
4395
4396 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4397 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
4398 third operand.
4399
ad4db775
TJ
44002013-05-15 Teresa Johnson <tejohnson@google.com>
4401
4402 * loop-unroll.c (report_unroll_peel): Check decision before
4403 emitting unroll/peel message.
4404
af205f67
TJ
44052013-05-15 Teresa Johnson <tejohnson@google.com>
4406
4407 * function.h (has_bb_partition): New rtl_data flag.
4408 (bb_reorder_complete): Ditto.
4409 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4410 instead of flag_reorder_blocks_and_partition.
4411 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4412 with some enhancements.
4413 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4414 * bb-reorder.c (connect_traces): Check for has_bb_partition
4415 instead of flag_reorder_blocks_and_partition.
4416 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4417 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4418 verify_hot_cold_block_grouping.
4419 (partition_hot_cold_basic_blocks): Set has_bb_partition.
4420
9adcfa3c
RR
44212013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4422
4423 PR target/19599
4424 * config/arm/predicates.md (call_insn_operand): New predicate.
4425 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
4426 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4427 if insn is not a tail call.
4428 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4429 registers.
4430 * config/arm/arm.h (enum reg_class): New caller save register class.
4431 (REG_CLASS_NAMES): Likewise.
4432 (REG_CLASS_CONTENTS): Likewise.
4433 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4434 without decls.
4435
ccb3ad87
RB
44362013-05-15 Richard Biener <rguenther@suse.de>
4437
4438 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4439 of MSG_OPTIMIZED_LOCATIONS.
4440 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
4441 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
4442 message.
4443 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
4444 of MSG_OPTIMIZED_LOCATIONS.
4445 (execute_vect_slp): Likewise.
4446 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
4447 (vect_create_cond_for_alias_checks): Likewise.
4448 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
4449 (vect_recog_widen_mult_pattern): Likewise.
4450 (vect_recog_widen_sum_pattern): Likewise.
4451 (vect_recog_over_widening_pattern): Likewise.
4452 (vect_recog_widen_shift_pattern): Likewise.
4453 (vect_recog_vector_vector_shift_pattern): Likewise.
4454 (vect_recog_divmod_pattern): Likewise.
4455 (vect_recog_mixed_size_cond_pattern): Likewise.
4456 (vect_recog_bool_pattern): Likewise.
4457 (vect_pattern_recog_1): Likewise.
4458
48b1474e
MJ
44592013-05-15 Martin Jambor <mjambor@suse.cz>
4460
4461 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4462 non-functions to builtin_unreachable.
4463 * ipa-inline-transform.c (inline_call): Do not assert estimates were
4464 correct when new direct edges were discovered.
4465
9de04252
MJ
44662013-05-15 Martin Jambor <mjambor@suse.cz>
4467
4468 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4469 header, print symbol order instead of node uid, print more information
4470 about indirect edge targets.
4471 (ipa_make_edge_direct_to_target): Print symbol order instead of node
4472 uids.
4473 (ipa_make_edge_direct_to_target): Likewise.
4474 (remove_described_reference): Likewise.
4475 (propagate_controlled_uses): Likewise.
4476 (ipa_print_node_params): Also print symbol order.
4477 (ipcp_transform_function): Print symbol order instead of node uids.
4478 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4479 (cgraph_get_create_real_symbol_node): Likewise.
4480 * ipa-cp.c (print_lattice): Likewise.
4481 (print_all_lattices): Likewise.
4482 (determine_versionability): Likewise.
4483 (initialize_node_lattices): Likewise.
4484 (estimate_local_effects): Likewise.
4485 (update_profiling_info): Likewise.
4486 (create_specialized_node): Likewise.
4487 (perhaps_add_new_callers): Likewise.
4488 (decide_about_value): Likewise.
4489 (decide_whether_version_node): Likewise.
4490 (identify_dead_nodes): Likewise.
4491 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
4492 (dump_inline_summary): Likewise.
4493 (estimate_node_size_and_time): Likewise.
4494 (inline_analyze_function): Likewise.
4495 * ipa-inline.c (report_inline_failed_reason): Likewise.
4496 (want_early_inline_function_p): Likewise.
4497 (edge_badness): Likewise.
4498 (update_edge_key): Likewise.
4499 (inline_small_functions): Likewise. Add dumping of order to two other
4500 dumps.
4501 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
4502 instead of node uids.
4503 (propagate_pure_const): Likewise.
4504 (propagate_pure_const): Likewise.
4505 * ipa-utils.c (dump_cgraph_node_set): Likewise.
4506 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
4507 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
4508 of node uids.
4509 * tree-pretty-print.c (dump_function_header): Likewise.
4510 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
4511 Print symbol order instead of node uids.
4512
1dd03b91
AK
45132013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4514
4515 * config/s390/s390.c (s390_register_move_cost): Don't impose the
4516 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
4517
fdf6a7b9
RB
45182013-05-15 Richard Biener <rguenther@suse.de>
4519
4520 PR tree-optimization/57275
4521 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
4522 return value for fail to do runtime alias checks for gather loads.
4523
2d6e4603
JH
45242013-05-15 Jan Hubicka <jh@suse.cz>
4525
4526 PR lto/57038
4527 PR lto/47375
e7208ea3
UB
4528 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
4529 weakrefs are not external.
4530 (lto_symtab_merge_decls): Fix thinko when dealing with
4531 non-lto_symtab decls.
2d6e4603
JH
4532 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
4533 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
4534 * varpool.c (dump_varpool_node): Dump more flags.
4535
83f44b39
GG
45362013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4537
4538 * config/i386/i386.c (processor_alias_table): Add instruction
4539 FSGSBASE for AMD bdver3 architecture.
4540
2e55d062
JJ
45412013-05-14 Jakub Jelinek <jakub@redhat.com>
4542
4543 * tree.c (warn_deprecated_use): Print file:line using locus color.
4544 * diagnostic.c (diagnostic_report_current_module): Print file:line
4545 and file:line:column using locus color.
4546
0bfdb81e
MS
45472013-05-14 Mike Stump <mikestump@comcast.net>
4548
4549 * gdbinit.in: Add __null.
4550
a508ef22
MS
45512013-05-14 Mike Stump <mikestump@comcast.net>
4552
4553 * recog.h: Rename struct recog_data to Recog_data.
4554 * recog.c: Likewise.
4555 * reload.c (can_reload_into): Likewise.
4556 * config/picochip/picochip.c: Likewise.
4557
e7180acb
MS
45582013-05-14 Mike Stump <mikestump@comcast.net>
4559
4560 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
4561
61216c26
SB
45622013-05-14 Steven Bosscher <steven@gcc.gnu.org>
4563
fd6beed4
SB
4564 * resource.h (struct resources): Remove unch_memory member.
4565 (CLEAR_RESOURCE): Don't clear unch_memory.
4566 * resource.c (mark_referenced_resources): Don't set it.
4567 (mark_set_resources): Likewise.
4568 (mark_target_live_regs): Don't clear it.
4569 (init_resource_info): Likewise.
4570 * reorg.c (resource_conflicts_p): Don't compare it.
4571 (redundant_insn): Don't set it.
4572
61216c26
SB
4573 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
4574 Remove prototypes.
4575 * emit-rtl.c (next_label): Remove unused function.
4576 (skip_consecutive_labels, link_cc0_insns): Move to ...
4577 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
4578 only place where these functions are used, and make them static.
4579
418d1b87
MG
45802013-05-14 Marc Glisse <marc.glisse@inria.fr>
4581
4582 * fold-const.c (fold_negate_expr): Handle vectors.
4583 (fold_truth_not_expr): Make it static.
4584 (fold_invert_truthvalue): New static function.
4585 (invert_truthvalue_loc): Handle vectors. Do not call
4586 fold_truth_not_expr directly.
4587 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
4588 <TRUTH_NOT_EXPR>: Do not cast to boolean.
4589 (fold_comparison): Handle vector constants.
4590 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
4591 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
4592 * tree.h (fold_truth_not_expr): Remove declaration.
4593
fc21784d
JG
45942013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
4595
4596 * config/aarch64/aarch64-simd.md
4597 (aarch64_vcond_internal<mode>): Rename to...
4598 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
4599 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
4600 float modes. Clarify all iterator modes.
4601 (vcond<mode><mode>): Use new name for vcond expanders.
4602 (vcond<v_cmp_result><mode>): Likewise.
4603 (vcondu<mode><mode>: Likewise.
4604 * config/aarch64/iterators.md (VDQF_COND): New.
4605
d4c52634
MG
46062013-05-14 Marc Glisse <marc.glisse@inria.fr>
4607
4608 PR bootstrap/57266
4609 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
4610 variable for the shift amount. Check that we shift by non-negative
4611 amounts.
4612
2b261262
CLT
46132013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
4614
4615 PR target/42017
4616 * config/arm/arm.h (EPILOGUE_USES): Only return true
4617 for LR_REGNUM after epilogue_completed.
4618
6e022d7b
JR
46192013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
4620
4621 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 4622 is error_mark_node.
6e022d7b 4623
56cf7859
RO
46242013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4625
4626 PR target/57261
4627 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
4628 and Solaris 11+/x86 with gld.
4629 * configure: Regenerate.
4630
75776c6d
JJ
46312013-05-14 Jakub Jelinek <jakub@redhat.com>
4632
4633 * expmed.c (expand_shift_1): Canonicalize rotates by
4634 constant bitsize / 2 to bitsize - 1.
7f998021 4635 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
4636 case ROTATERT>: Likewise.
4637
4638 Revert:
4639 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4640
4641 * config/i386/i386.md (rotateinv): New code attr.
4642 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4643 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4644 roll $31, %eax, etc.
4645
df35498a
RB
46462013-05-14 Richard Biener <rguenther@suse.de>
4647
4648 PR middle-end/57235
4649 * tree-eh.c (sink_clobbers): Give up for successors with
4650 multiple predecessors and no virtual uses.
4651
cc6e7ece
EB
46522013-05-14 Eric Botcazou <ebotcazou@adacore.com>
4653
4654 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
4655 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
4656
f778dd4d
JJ
46572013-05-14 Jakub Jelinek <jakub@redhat.com>
4658
4659 PR middle-end/57251
4660 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
4661 the case when both op0 and op1 have VOIDmode.
4662
bad4df9b
KP
46632013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4664
4665 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
4666 in multiply-accumulate mode.
4667
56f3e9ac
GW
46682013-05-13 Guozhi Wei <carrot@google.com>
4669
4670 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
4671
a3d7ab92
KT
46722013-05-13 Kai Tietz <ktietz@redhat.com>
4673
4674 PR target/56975
4675 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 4676 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 4677 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 4678 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
4679 (ix86_expand_prologue): Likewise.
4680 (ix86_expand_split_stack_prologue): Likewise.
4681 (legitimate_pic_address_disp_p): Likewise.
4682 (legitimize_pic_address): Likewise.
4683 (legitimize_tls_address): Likewise.
4684 (legitimize_pe_coff_symbol): Likewise.
4685 (output_pic_addr_const): Likewise.
4686 (construct_plt_address): Likewise.
4687 (ix86_expand_call): Likewise.
4688 (x86_output_mi_thunk): Likewise.
4689 (x86_function_profiler): Likewise.
4690
c59b7e28
SN
46912013-05-13 Sofiane Naci <sofiane.naci@arm.com>
4692
4693 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
4694 similar switch cases.
4695 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
4696 (aarch64_simd_mov_to_<mode>low): Delete.
4697 (aarch64_simd_mov_to_<mode>high): Delete.
4698 (move_lo_quad_<mode>): Add w<-r alternative.
4699 (aarch64_simd_move_hi_quad_<mode>): Likewise.
4700 (aarch64_simd_mov_from_*): Update type attribute.
4701 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
4702 statement.
4703
5f28524a
JH
47042013-05-13 Jan Hubicka <jh@suse.cz>
4705
4706 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4707 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
4708 ix86_expand_epilogue, emit_i387_cw_initialization,
4709 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
4710 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 4711
ae6fa899
JJ
47122013-05-13 Jakub Jelinek <jakub@redhat.com>
4713
4714 PR tree-optimization/45216
4715 PR tree-optimization/57157
4716 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
4717 the (-Y) & (B - 1) variant if OP is |.
4718 * expmed.c (expand_shift_1): For rotations by const0_rtx just
4719 return shifted. Use (-op1) & (prec - 1) as other_amount
4720 instead of prec - op1.
4721
4502fe8d
MJ
47222013-05-13 Martin Jambor <mjambor@suse.cz>
4723
4724 PR middle-end/42371
4725 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4726 (ipa_constant_data): New type.
4727 (ipa_jump_func): Use ipa_constant_data to hold information about
4728 constant jump functions.
4729 (ipa_get_jf_constant): Adjust to jump function type changes.
4730 (ipa_get_jf_constant_rdesc): New function.
4731 (ipa_param_descriptor): New field controlled_uses.
4732 (ipa_get_controlled_uses): New function.
4733 (ipa_set_controlled_uses): Likewise.
4734 * ipa-ref.h (ipa_find_reference): Declare.
4735 * ipa-prop.c (ipa_cst_ref_desc): New type.
4736 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4737 changes.
4738 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
4739 New parameter cs. Adjust all callers.
4740 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4741 (remove_described_reference): New function.
4742 (jfunc_rdesc_usable): Likewise.
4743 (try_make_edge_direct_simple_call): Decrement controlled use count,
4744 attempt to remove reference if it hits zero.
4745 (combine_controlled_uses_counters): New function.
4746 (propagate_controlled_uses): Likewise.
4747 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4748 (ipa_edge_duplication_hook): Duplicate reference descriptions.
4749 (ipa_print_node_params): Print described use counter.
4750 (ipa_write_jump_function): Adjust to jump function type changes.
4751 (ipa_read_jump_function): New parameter CS, pass it to
4752 ipa_set_jf_constant. Adjust caller.
4753 (ipa_write_node_info): Stream controlled use count
4754 (ipa_read_node_info): Likewise.
4755 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4756 asserting.
4757 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4758 count. Remove cloning-added reference if it reaches zero.
4759 * ipa-ref.c (ipa_find_reference): New function.
4760
0864bfc2
GG
47612013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4762
e7208ea3 4763 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
4764 alignment values for AMD BD and BT architectures.
4765
640bfeb2
MG
47662013-05-13 Marc Glisse <marc.glisse@inria.fr>
4767
4768 * tree-vect-generic.c (uniform_vector_p): Move ...
4769 * tree.c (uniform_vector_p): ... here.
4770 * tree.h (uniform_vector_p): Declare it.
4771 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4772 into a scalar.
4773
3a60f32b
JJ
47742013-05-13 Jakub Jelinek <jakub@redhat.com>
4775
198fe1bf
JJ
4776 PR tree-optimization/57230
4777 * tree-ssa-strlen.c (handle_char_store): Record length for
4778 array store from STRING_CST.
4779
3a60f32b
JJ
4780 PR tree-optimization/57230
4781 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4782 check.
4783
566be57c
JR
47842013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
4785
4786 * config/epiphany/epiphany.c (epiphany_init): Check size of
4787 NUM_MODES_FOR_MODE_SWITCHING.
4788 (epiphany_expand_prologue):
4789 Remove CONFIG_REGNUM initial value handling code.
4790 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4791 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 4792 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
4793 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4794 Don't return 1 for FP_MODE_NONE.
4795 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4796 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4797 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4798 * config/epiphany/epiphany.md (save_config): New pattern.
4799
0f2c2331
UB
48002013-05-12 Uros Bizjak <ubizjak@gmail.com>
4801
4802 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4803
5b3f93c7
UB
48042013-05-10 Uros Bizjak <ubizjak@gmail.com>
4805
4806 * config/i386/i386.md (memory): Handle sseishft1.
4807 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4808 (*vec_extractv2di_1): Ditto.
4809
1f873f0e
VM
48102013-05-10 Vladimir Makarov <vmakarov@redhat.com>
4811
4812 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4813 saved registers.
4814
341427fa 48152013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
4816
4817 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4818 Add mthumb/march=armv7-a multilib.
4819 Add mthumb/march=armv7-r multilib.
4820 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4821
9e69bdde
RC
48222013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
4823
4824 * config/v850/t-rtems: Add more multilibs.
4825
9ff09a22
RB
48262013-05-10 Richard Biener <rguenther@suse.de>
4827
4828 PR tree-optimization/57214
4829 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4830 not propagate from SSA names that occur in abnormal PHI nodes.
4831
a5e0cd1d
MG
48322013-05-10 Marc Glisse <marc.glisse@inria.fr>
4833
4834 * stor-layout.c (element_precision): New function.
4835 * machmode.h (element_precision): Declare it.
4836 * tree.c (build_minus_one_cst): New function.
4837 (element_precision): Likewise.
4838 * tree.h (build_minus_one_cst): Declare new function.
4839 (element_precision): Likewise.
4840 * fold-const.c (operand_equal_p): Use element_precision.
4841 (fold_binary_loc): Handle vector types.
4842 * convert.c (convert_to_integer): Use element_precision.
4843 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4844 separately.
4845
cb2558bc
RS
48462013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
4847
4848 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4849 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4850 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4851 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4852 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4853 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4854 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4855 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4856 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4857 (Uuw8): New constraints.
4858 (Usb4): Move into alphabetical order.
4859 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4860 (sd8_operand, ub8_operand, uw8_operand): New predicates.
4861 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4862 previously unnamed patterns.
4863 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4864 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4865 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4866 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4867 of set_attr_alternative/if_then_else. Use extended_mips16 instead
4868 of specific lengths.
4869
cb3b8d33
JJ
48702013-05-10 Jakub Jelinek <jakub@redhat.com>
4871
6f93c008
JJ
4872 * config/i386/i386.md (rotateinv): New code attr.
4873 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4874 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4875 roll $31, %eax, etc.
4876
cb3b8d33
JJ
4877 PR tree-optimization/45216
4878 PR tree-optimization/57157
4879 * tree-ssa-forwprop.c (simplify_rotate): New function.
4880 (ssa_forward_propagate_and_combine): Call it.
4881
afb119be
RB
48822013-05-10 Richard Biener <rguenther@suse.de>
4883
4884 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4885 disable peeling when we version for aliasing.
4886 (vector_alignment_reachable_p): Honor explicit user alignment.
4887 (vect_supportable_dr_alignment): Likewise.
4888 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4889 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4890 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4891 then peeling to arrange for the cost-model check to come first.
4892
01ae4861
AM
48932013-05-10 Alan Modra <amodra@gmail.com>
4894
4895 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4896 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4897 * configure: Regenerate.
4898
ebc9a431
AM
48992013-05-10 Alan Modra <amodra@gmail.com>
4900
4901 PR target/55033
4902 * varasm.c (default_elf_select_section): Move !DECL_P check..
4903 (get_named_section): ..to here before calling get_section_name.
4904 Adjust assertion.
4905 (default_section_type_flags): Add DECL_P check.
4906 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4907 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4908
d4bca93c
JR
49092013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
4910
4911 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4912 When using gen_stack_adjust_str with a register offset, add a
4913 REG_FRAME_RELATED_EXPR note.
4914
60ca9a65
UB
49152013-05-09 Uros Bizjak <ubizjak@gmail.com>
4916
4917 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4918 (*vec_extractv4si_zext_mem): Ditto.
4919 (*vec_extractv2di): Add 0->x and x->x alternatives.
4920 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4921 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4922
a3409c02
JM
49232013-05-09 Jason Merrill <jason@redhat.com>
4924
0138d6b2
JM
4925 N3639 C++1y VLA support
4926 * gimplify.c (gimplify_vla_decl): Don't touch an existing
4927 DECL_VALUE_EXPR.
4928
a3409c02
JM
4929 * tree.c (build_constructor_va): New.
4930 * tree.h: Declare it.
4931
66e6b990
MJ
49322013-05-09 Martin Jambor <mjambor@suse.cz>
4933
4934 PR lto/57084
4935 * gimple-fold.c (canonicalize_constructor_val): Call
4936 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4937
64cfa6c0
JH
49382013-05-09 Jan Hubicka <jh@suse.cz>
4939 Richard Biener <rguenther@suse.de>
4940
4941 PR lto/54095
4942 * symtab.c (symtab_make_decl_local): Do not add private names.
4943
c3167b00
JH
49442013-05-09 Jan Hubicka <jh@suse.cz>
4945
4946 PR lto/54095
4947 * symtab.c (insert_to_assembler_name_hash): Handle clones.
4948 (unlink_from_assembler_name_hash): Likewise.
4949 (symtab_prevail_in_asm_name_hash, symtab_register_node,
4950 symtab_unregister_node, symtab_initialize_asm_name_hash,
4951 change_decl_assembler_name): Update.
4952
12dc6974
SN
49532013-05-09 Sofiane Naci <sofiane.naci@arm.com>
4954
4955 * config/aarch64/aarch64.md: New movtf split.
4956 (*movtf_aarch64): Update.
4957 (aarch64_movdi_tilow): Handle TF modes and rename to
4958 aarch64_movdi_<mode>low.
4959 (aarch64_movdi_tihigh): Handle TF modes and rename to
4960 aarch64_movdi_<mode>high
4961 (aarch64_movtihigh_di): Handle TF modes and rename to
4962 aarch64_mov<mode>high_di
4963 (aarch64_movtilow_di): Handle TF modes and rename to
4964 aarch64_mov<mode>low_di
4965 (aarch64_movtilow_tilow): Remove spurious whitespace.
4966 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4967 splits.
4968 (aarch64_print_operand): Update.
4969
227eb343
AM
49702013-05-09 Alan Modra <amodra@gmail.com>
4971
4972 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4973 powerpc64le.
4974 * configure: Regenerate.
4975
0b013847
UB
49762013-05-08 Uros Bizjak <ubizjak@gmail.com>
4977
4978 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4979 splitter preparation statements.
4980 * config/i386/sse.md (*vec_extract* splitters): Ditto.
4981 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4982 adjust_address_nv.
4983
1dc3d6e9
BS
49842013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4985
4986 * gimple-ssa-strength-reduction.c (count_candidates): Change
4987 return value to int.
4988 (analyze_candidates_and_replace): Change type of length to int.
4989
e61e7d28
UB
49902013-05-08 Uros Bizjak <ubizjak@gmail.com>
4991
4992 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4993 (*vec_extract<mode>): Use VI12_128 mode iterator.
4994 (*vec_extract<mode>_mem): Ditto.
4995 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4996 attribute.
4997
4fbfcf44
DN
49982013-05-08 Diego Novillo <dnovillo@google.com>
4999
5000 PR bootstrap/54659
5001
5002 Revert:
4fbfcf44
DN
5003 2012-08-17 Diego Novillo <dnovillo@google.com>
5004
e61e7d28
UB
5005 PR bootstrap/54281
5006 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
5007 * config.in: Regenerate.
5008 * configure: Regenerate.
5009 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 5010
702d8703
JH
50112013-05-08 Jan Hubicka <jh@suse.cz>
5012
5013 PR lto/54095
5014 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
5015 * cgraph.h (symtab_node_base): Add unique_name.
5016 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5017 input_overwrite_node, input_varpool_node): Stream unique_name.
5018 * cgraphclones.c (cgraph_create_virtual_clone,
5019 cgraph_function_versioning): Set unique_name.
5020 * ipa.c (function_and_variable_visibility): Set unique_name.
5021
8b28cf47
BS
50222013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5023
5024 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
5025 (alloc_cand_and_find_basis): Restrict conditional candidate
5026 processing to CAND_MULTs.
5027
e86074fd
JH
50282013-05-08 Jan Hubicka <jh@suse.cz>
5029
5030 PR lto/54095
5031 lto-symtab.c (lto_symtab_symbol_p): New function.
5032 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
5033 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
5034 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
5035 Skip static symbols.
5036
44398cbe
PC
50372013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
5038
5039 PR tree-optimization/57200
5040 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
5041 Only call inform if the preceding warning_at returns true.
5042
f6bc1c4a
HS
50432013-05-07 Han Shen <shenhan@google.com>
5044
5045 * cfgexpand.c (record_or_union_type_has_array_p): New function.
5046 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
5047 * common.opt (fstack-protector-strong): New option.
5048 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
5049 * doc/invoke.texi (Optimization Options): Document
5050 "-fstack-protector-strong".
5051 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
5052
4ffecb1f
SB
50532013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5054
5055 * config/mips/mips.c (mips_machine_reorg2): Return 0.
5056
5a107a0f
VM
50572013-05-07 Vladimir Makarov <vmakarov@redhat.com>
5058
5059 * ira.c (update_equiv_regs): Add insn having equiv memory even if
5060 it is not lhs of the insn.
5061 (setup_reg_equiv): Remove insn having equiv memory which it is not
5062 lhs of the insn.
5063 * lra-constraints.c (process_address): Try to improve generation
5064 code for address base + disp.
5065 (lra_constraints): Make correct the code for checking insn setting
5066 up backward equivalence. Remove insn only if it is in the init
5067 insn list.
5068 * lra-eliminations.c (update_reg_eliminate): Change return value.
5069 (lra_eliminate): Use the result.
5070
3f5783ea
UB
50712013-05-07 Uros Bizjak <ubizjak@gmail.com>
5072
5073 * config/i386/sse.md (ssescalarnummask): New mode attribute.
5074 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
5075 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
5076 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
5077 register target operands.
5078 (*vec_extractv8hi_sse2): New pattern.
5079 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
5080 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
5081 (*vec_extract<mode>_mem): New insn and split pattern.
5082
8a5800b8
CL
50832013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
5084
5085 * config/arm/arm.c (arm_asan_shadow_offset): New function.
5086 (TARGET_ASAN_SHADOW_OFFSET): Define.
5087 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
5088 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
5089
7bf55a70
BS
50902013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5091
5092 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
5093 (incr_vec_index): Return -1 if increment not found.
5094 (create_add_on_incoming_edge): Assert if increment not found.
5095 (record_increment): Limit number of increments recorded.
5096 (all_phi_incrs_profitable): Return false if an increment not found.
5097 (replace_profitable_candidates): Don't process increments that were
5098 not recorded.
5099 (analyze_candidates_and_replace): Limit size of incr_vec.
5100
3f8825c0
RB
51012013-05-07 Richard Biener <rguenther@suse.de>
5102
5103 * calls.c (special_function_p): setjmp-like functions are leaf.
5104 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
5105 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
5106
fd4842cd
SN
51072013-05-07 Sofiane Naci <sofiane.naci@arm.com>
5108
5109 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
5110 (aarch64_simd_mov<mode>): New expander.
5111 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
5112 (aarch64_simd_mov_to_<mode>high): Likewise.
5113 (aarch64_simd_mov_from_<mode>low): Likewise.
5114 (aarch64_simd_mov_from_<mode>high): Likewise.
5115 (aarch64_dup_lane<mode>): Update.
5116 (aarch64_dup_lanedi): New instruction pattern.
5117 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
5118 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
5119
a7a7d10e
BS
51202013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5121
5122 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
5123 (replace_mult_candidate): Remove unnecessary argument; remove
5124 unnecessary parameter from call to introduce_cast_before_cand.
5125 (replace_unconditional_candidate): Remove unnecessary parameter
5126 from call to replace_mult_candidate.
5127 (replace_conditional_candidate): Likewise.
5128 (insert_initializers): Use make_temp_ssa_name.
5129 (introduce_cast_before_cand): Remove unnecessary argument; use
5130 make_temp_ssa_name.
5131 (replace_one_candidate): Remove unnecessary argument; remove
5132 unnecessary parameter from calls to introduce_cast_before_cand.
5133 (replace_profitable_candidates): Remove unnecessary parameters
5134 from calls to replace_one_candidate.
5135
29105868
BS
51362013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5137
5138 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
5139 phi def as possibly hiding a basis for a CAND_ADD whose operands
5140 have been commuted in the analysis.
5141 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
5142
4095f9fa
N
51432013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5144
5145 * config/aarch64/aarch64.md
5146 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
5147 shift value between 0-4.
5148
39e843e8
RB
51492013-05-07 Richard Biener <rguenther@suse.de>
5150
5151 * double-int.h (rshift): New overload.
5152 * double-int.c (rshift): New function.
5153 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
5154 (create_reference_ops_from_ref): Remove.
5155 (vn_reference_insert): Use shared ops for constructing the
5156 reference and copy it.
5157
0a1a83cb
RB
51582013-05-07 Richard Biener <rguenther@suse.de>
5159
5160 PR middle-end/57190
5161 * tree-eh.c (sink_clobbers): Properly propagate
5162 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
5163
43303d6f
JJ
51642013-05-07 Jakub Jelinek <jakub@redhat.com>
5165
ba7e83f8
JJ
5166 PR tree-optimization/57149
5167 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
5168 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
5169 collect_phi_def_edges, execute_late_warn_uninitialized): Use
5170 uninit_undefined_value_p instead of ssa_undefined_value_p.
5171
43303d6f
JJ
5172 PR debug/57184
5173 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
5174 for modifier == EXPAND_INITIALIZER.
5175
14523c25
AB
51762013-05-07 Anton Blanchard <anton@samba.org>
5177
5178 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
5179 for powerpc64 little endian.
5180 * configure: Regenerate.
5181
cb7c8be9
GS
51822013-05-06 Graham Stott <grahams@btinternet.com>
5183
5184 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
5185 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
5186 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
5187 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
5188
51892013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
5190
5191 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
5192 codes which allow non-lvalues.
5193
9a0ee7b0
MG
51942013-05-06 Marc Glisse <marc.glisse@inria.fr>
5195
5196 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
5197 components are all 1s.
5198 (integer_minus_onep): New function.
5199 * tree.h (integer_minus_onep): Declare it.
5200 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
5201 integer_minus_onep instead of integer_all_onesp.
5202
f2c17ea9
OE
52032013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5204
5205 PR target/52933
5206 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
5207 variations of these patterns.
5208
f75e6a51
UB
52092013-05-06 Uros Bizjak <ubizjak@gmail.com>
5210
5211 * config/i386/i386.md (isa): Add x64_sse4 member.
5212 (enabled): Handle x64_sse4.
5213 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
5214 instruction for 64bit SSE4_1 targets. Update insn attributes.
5215 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
5216 instruction for SSE4_1 targets. Update insn attributes.
5217 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5218 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
5219 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
5220 const_1 selector.
5221 (*vec_extractv4si): Rename from *sse4_1_pextrd.
5222 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
5223 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
5224
a986d468
OE
52252013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5226
5227 PR target/57108
5228 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
5229
382522cb
MK
52302013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
5231
5232 * final.c (do_assembler_dialects): Don't handle curly braces and
5233 vertical bar escaped by % as dialect delimiters.
5234 (output_asm_insn): Print curly braces and vertical bar if escaped
5235 by % and ASSEMBLER_DIALECT defined.
5236 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
5237 * doc/tm.texi: Regenerated.
5238
fb0d5c60
SB
52392013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5240
fb0d5c60
SB
5241 * config/mips/mips.c: Include tree-pass.h.
5242 (mips_reorg): Split in pre- and post-dbr_schedule parts.
5243 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
5244 (pass_mips_machine_reorg2): New machine specific pass.
5245 (insert_pass_mips_machine_reorg2): New pass plugin definition.
5246 (mips_option_override): Register the new pass.
5247 * rtl.h (cleanup_barriers): Remove prototype.
5248 (dbr_schedule): Likewise.
5249 * jump.c (cleanup_barriers): Make static.
5250 * reorg.c (dbr_schedule): Likewise.
5251
aa06a978
RB
52522013-05-06 Richard Biener <rguenther@suse.de>
5253
5254 PR tree-optimization/57185
5255 * tree-parloops.c (add_field_for_reduction): Handle anonymous
5256 SSA names properly.
5257
0b953bec
UB
52582013-05-06 Uros Bizjak <ubizjak@gmail.com>
5259
5260 PR target/57106
5261 * config/i386/i386.c (add_parameter_dependencies): Add dependence
5262 between "first_arg" and "insn", not "last" and "insn".
5263
28708525
WS
52642013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5265
5266 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
5267 (find_candidates_in_block): Re-enable slsr_process_phi.
5268 (create_phi_basis): Fix double counting of candidate adjustment.
5269
0107dca2
RB
52702013-05-06 Richard Biener <rguenther@suse.de>
5271
5272 PR middle-end/57147
5273 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5274 the edge is also fallthru, preserve it and just clear the
5275 abnormal flag.
5276 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5277 also complex, preserve that and just clear the fallthru flag.
5278 * tree-inline.c (update_ssa_across_abnormal_edges): Also
5279 update virtual operands.
5280
470d4d13
AM
52812013-05-06 Alan Modra <amodra@gmail.com>
5282
5283 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5284 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5285 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5286 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5287 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5288 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5289
8f1dbf8d
AM
52902013-05-06 Alan Modra <amodra@gmail.com>
5291
5292 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5293 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
5294 (DEFAULT_ASM_ENDIAN): Define.
5295 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5296 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5297 Update -K PIC clause from sysv4.h.
5298 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5299 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5300
54890767
AM
53012013-05-06 Alan Modra <amodra@gmail.com>
5302
5303 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
5304 twice for little-endian.
5305 (ashrdi3_no_power, ashrdi3): Support little-endian.
5306
2353515d
OE
53072013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5308
5309 PR target/55303
5310 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5311 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5312 related expanders.
5313 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5314 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5315 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5316 New predicates.
5317
33e67557
SB
53182013-05-05 Steven Bosscher <steven@gcc.gnu.org>
5319 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5320
5321 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5322 * config/pa/pa.opt: Make mbig-switch a no-op.
5323 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5324 (CASE_VECTOR_MODE): Always return SImode.
5325 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5326 for the !TARGET_BIG_SWITCH case.
5327 * config/pa/pa-linux.h: Likewise.
5328 * config/pa/pa-openbsd.h: Likewise.
5329 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5330 * config/pa/pa.md (short_jump): Remove define_insn.
5331 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5332 (casesi0): Remove define_insn.
5333 (type): Remove btable_branch.
5334 (pa_combine_type): Likewise.
5335 (in_nullified_branch_delay): Likewise.
5336 (in_call_delay): Likewise.
5337 (define_delay): Likewise.
5338 (define_insn_reservation "Z3"): Likewise.
5339 (define_insn_reservation "Z4"): Likewise.
5340 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5341 (pa_adjust_insn_length): Remove adjustment for btable branches.
5342 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5343 and mno-big-switch
5344
3095685e
UB
53452013-05-05 Uros Bizjak <ubizjak@gmail.com>
5346
5347 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5348 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5349 Add m->r,x alternatives.
5350 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5351 splitters using SWI48x mode iterator.
5352 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
5353 TARGET_64BIT. Add m->x alternative.
5354 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5355 Add o->x alternative. Enable for TARGET_SSE.
5356 (sse_storeq): Remove expander.
5357 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5358 with memory input operand.
5359 (*vec_extractv2di_1 splitter): New.
5360 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5361 * config/i386/i386.md (ssevecmodelower): New mode attribute.
5362
4b36ae28
SB
53632013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5364
5365 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
5366 (INT_LOWPART): Delete.
5367 (extract_MB): Adjust.
5368 (extract_ME): Adjust.
5369 (print_operand): Adjust.
5370
da226db2
SB
53712013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5372
5373 * config/rs6000/predicates.md (reg_or_add_cint_operand,
5374 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5375 (reg_or_logical_cint_operand, easy_fp_constant,
5376 logical_const_operand): Delete "CONST_DOUBLE" case.
5377 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5378 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 5379 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
5380 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5381 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5382 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5383 test.
5384 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5385 CONST_DOUBLE DImode/VOIDmode case.
5386 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5387 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5388 CONST_DOUBLE VOIDmode case.
5389 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5390 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5391 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5392 Delete CONST_DOUBLE case.
5393 (splitters for mov FMOVE64 const_double): Delete
5394 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5395 "HOST_BITS_PER_WIDE_INT >= 64" test.
5396 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5397 case.
5398 (mov DI const_double): Delete.
5399
40de22d6
JJ
54002013-05-04 Jakub Jelinek <jakub@redhat.com>
5401
5402 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5403 on op shows all bits zero in mode of a lowpart subreg, return zero.
5404
5ec6aff2
MM
54052013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5406
5407 PR target/57150
5408 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5409 to save TFmode registers and DImode to save TImode registers for
5410 caller save operations.
5411 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5412 mark being partially clobbered since they only use the first
5413 double word.
5414
5415 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5416 and TDmode only use the upper 64-bits of each VSX register.
5417
2cefad90
BS
54182013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5419
5420 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5421 (find_candidates_in_block): Disable slsr_process_phi.
5422
d6d7eee1
GW
54232013-05-03 Guozhi Wei <carrot@google.com>
5424
5425 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
5426 constructor to ...
5427 (build_init_ctor): ... here.
d6d7eee1 5428
9b92d12b
BS
54292013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5430
5431 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5432 (slsr_cand_d): Redefine def_phi.
5433 (stride_status, phi_adjust_status, count_phis_status): New enums.
5434 (find_phi_def): New.
5435 (find_basis_for_base_expr): New.
5436 (find_basis_for_candidate): Handle hidden bases.
5437 (alloc_cand_and_find_basis): Handle phi candidates.
5438 (slsr_process_phi): New.
5439 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
5440 (create_mul_imm_cand): Likewise.
5441 (create_add_ssa_cand): Exclude phi base candidates.
5442 (create_add_imm_cand): Likewise.
5443 (slsr_process_cast): Likewise.
5444 (slsr_process_copy): Likewise.
5445 (find_candidates_in_block): Handle phi candidates.
5446 (dump_candidate): Likewise.
5447 (unconditional_cands): Delete.
5448 (unconditional_cands_with_known_stride_p): Delete.
5449 (phi_dependent_cand_p): New.
5450 (cand_increment): Handle phi-dependent candidates.
5451 (replace_dependent): Delete.
5452 (replace_mult_candidate): New.
5453 (replace_unconditional_candidate): New.
5454 (incr_vec_index): Move to avoid forward reference.
5455 (create_add_on_incoming_edge): New.
5456 (create_phi_basis): New.
5457 (replace_dependents): Delete.
5458 (replace_conditional_candidate): New.
5459 (phi_add_costs): New.
5460 (replace_uncond_cands_and_profitable_phis): New.
5461 (record_increment): Handle phi adjustments.
5462 (record_phi_increments): New.
5463 (record_increments): Handle phi adjustments.
5464 (phi_incr_cost): New.
5465 (lowest_cost_path): Handle phis.
5466 (total_savings): Likewise.
5467 (analyze_increments): Likewise.
5468 (ncd_with_phi): New.
5469 (ncd_of_cand_and_phis): New.
5470 (nearest_common_dominator_for_cands): Handle phi increments.
5471 (all_phi_incrs_profitable): New.
5472 (replace_profitable_candidates): Handle phi-dependent candidates.
5473 (analyze_candidates_and_replace): Likewise.
5474
68f073d4
TJ
54752013-05-03 Teresa Johnson <tejohnson@google.com>
5476
5477 PR bootstrap/57154
5478 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
5479 do not exceed REG_BR_PROB_BASE.
5480
a4ee7cb9
JL
54812013-05-03 Jeff Law <law@redhat.com>
5482
ade67f70 5483 PR tree-optimization/57144
a4ee7cb9
JL
5484 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
5485 operand of the condition will bit into the new type when eliminating
5486 a cast feeding a condition.
5487
47954c4e
JJ
54882013-05-03 Jakub Jelinek <jakub@redhat.com>
5489
5490 PR rtl-optimization/57130
3095685e
UB
5491 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
5492 of COMPARE as in_code to the recursive call if needed.
47954c4e 5493
3c21604f
UB
54942013-05-03 Uros Bizjak <ubizjak@gmail.com>
5495
5496 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
5497 (enabled): Handle new members.
5498 * config/i386/sse.md (*vec_concatv2si): Merge from
5499 *vec_concatv2si_sse2 and vec_concatv2si_sse.
5500 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
5501
95c03b36
JR
55022013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
5503
5504 PR tree-optimization/57027
5505 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
5506 for fnms opportunity, check we got the prerequisite kind
5507 of tree / gimple before using accessor functions.
5508
07bfc9ec
RB
55092013-05-03 Richard Biener <rguenther@suse.de>
5510
5511 * double-int.h (lshift): New overload without precision
5512 and arith argument.
5513 (operator *=, operator +=, operator -=): Move ...
5514 * double-int.c (operator *=, operator +=, operator -=): ... here
5515 and implement more efficiently.
5516 (mul_double_with_sign): Remove.
5517 (lshift_double): Adjust to take unsinged shift argument, push
5518 dispatching code to callers.
5519 (mul_double_wide_with_sign): Add early out for callers that
5520 are not interested in high parts or overflow.
5521 (lshift): New function.
5522 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
5523 dispatch code here.
5524 (lrotate, rrotate): Use logical shifts.
5525 * expr.c (get_inner_reference): Use lshift.
5526 * fixed-value.c (do_fixed_divide): Likewise.
5527 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5528 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5529 (indirect_refs_may_alias_p): Likewise.
5530 (stmt_kills_ref_p_1): Likewise.
5531
7769bb64
VP
55322013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5533
5534 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
5535
1d0c8e5c
VP
55362013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5537
5538 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
5539 scalar form of FABD instruction.
5540
f15feaf9
VM
55412013-05-02 Vladimir Makarov <vmakarov@redhat.com>
5542
5543 * lra-constraints.c (process_alt_operands): Add checking alt
5544 number to choose the best alternative.
5545
d90e76d4
RB
55462013-05-02 Richard Biener <rguenther@suse.de>
5547
5548 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
5549 bitmap and its handling.
5550 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
5551
9f8e7a96
RB
55522013-05-02 Richard Biener <rguenther@suse.de>
5553
5554 PR middle-end/57140
5555 * tree-inline.c (copy_loops): Properly handle removed loops.
5556 (copy_cfg_body): Mark destination loops for fixup if source
5557 loops needed fixup.
5558
f3a81b39
GY
55592013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
5560
5561 PR target/56732
5562 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
5563 generating simple_return for naked functions.
5564
7b920a9a
MJ
55652013-05-02 Martin Jambor <mjambor@suse.cz>
5566
5567 PR middle-end/56988
5568 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
5569 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
5570 flags match.
5571 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
5572 ipa_agg_replacement_value structures.
5573 (known_aggs_to_agg_replacement_list): Likewise.
5574 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
5575 (read_agg_replacement_chain): Likewise.
5576 (ipcp_transform_function): Also check that by_ref flags match.
5577
2c41c19d
RB
55782013-05-02 Richard Biener <rguenther@suse.de>
5579
5580 * graphds.h (struct graph): Add obstack member.
5581 * graphds.c (new_graph): Initialize obstack and allocate
5582 vertices from it.
5583 (add_edge): Allocate edge from the obstack.
3c21604f 5584 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 5585
8b47039c
TJ
55862013-05-02 Teresa Johnson <tejohnson@google.com>
5587
5588 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
5589 divides.
5590 * cfg.c (update_bb_profile_for_threading): Ditto.
5591 * tree-inline.c (copy_bb): Ditto.
5592 (copy_edges_for_bb): Ditto.
5593 (initialize_cfun): Ditto.
5594 (copy_cfg_body): Ditto.
5595 (expand_call_inline): Ditto.
5596 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
5597 (estimate_node_size_and_time): Ditto.
5598 (inline_merge_summary): Ditto.
5599 * cgraphclones.c (cgraph_clone_edge): Ditto.
5600 (cgraph_clone_node): Ditto.
5601 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5602 (compute_trg_info): Ditto.
5603
da65928c
IB
56042013-05-02 Ian Bolton <ian.bolton@arm.com>
5605
5606 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
5607 S reg when fp attribute set.
5608 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
5609
add3c965
IB
56102013-05-02 Ian Bolton <ian.bolton@arm.com>
5611
5612 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
5613 New pattern.
5614 (*and_one_cmplsi3_compare0_uxtw): Likewise.
5615 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
5616 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
5617
fdd43ac4
RB
56182013-05-02 Richard Biener <rguenther@suse.de>
5619
5620 * tree-scalar-evolution.c (scev_info_hasher): Remove.
5621 (struct instantiate_cache_entry): New type.
5622 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
5623 (struct instantiate_cache_type): New type.
5624 (set_instantiated_value, get_instantiated_value): Remove.
5625 (get_instantiated_value_entry): New function.
5626 (instantiate_scev_name): Use the new cache and adjust.
5627 (instantiate_scev_poly): Adjust.
5628 (instantiate_scev_binary): Likewise.
5629 (instantiate_array_ref): Likewise.
5630 (instantiate_scev_convert): Likewise.
5631 (instantiate_scev_not): Likewise.
5632 (instantiate_scev_3): Likewise.
5633 (instantiate_scev_2): Likewise.
5634 (instantiate_scev_r): Likewise.
5635 (instantiate_scev): Likewise.
5636 (resolve_mixers): Likewise.
5637
36ff9dfb
VM
56382013-05-01 Vladimir Makarov <vmakarov@redhat.com>
5639
5640 PR target/57091
5641 * lra-constraints.c (best_small_class_operands_num): Remove.
5642 (process_alt_operands): Remove small_class_operands_num. Take
5643 small classes operands into losers and only if the operand is not
5644 matched. Modify debugging output.
5645 (curr_insn_transform): Remove best_small_class_operands_num.
5646 Print insn name.
5647
36054fab
JG
56482013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5649
5650 * config/aarch64/aarch64-builtins.c
5651 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
5652 * config/aarch64/aarch64-simd-builtins.def
5653 (reduc_splus_): Add new modes.
5654 (reduc_uplus_): New.
5655 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
5656 (reduc_uplus_v4sf): Likewise.
5657 (reduc_splus_v4sf): Likewise.
5658 (aarch64_addv<mode>): Likewise.
5659 (reduc_uplus_<mode>): Likewise.
5660 (reduc_splus_<mode>): Likewise.
5661 (aarch64_addvv2di): Likewise.
5662 (reduc_uplus_v2di): Likewise.
5663 (reduc_splus_v2di): Likewise.
5664 (aarch64_addvv2si): Likewise.
5665 (reduc_uplus_v2si): Likewise.
5666 (reduc_splus_v2si): Likewise.
5667 (reduc_<sur>plus_<mode>): New.
5668 (reduc_<sur>plus_v2di): Likewise.
5669 (reduc_<sur>plus_v2si): Likewise.
5670 (reduc_<sur>plus_v4sf): Likewise.
5671 (aarch64_addpv4sf): Likewise.
5672 * config/aarch64/arm_neon.h
5673 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
5674 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
5675 add UNSPEC_SADDV, UNSPEC_UADDV.
5676 (SUADDV): New.
5677 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
5678
6dce23a8
JG
56792013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5680
5681 * config/aarch64/arm_neon.h
5682 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
5683
1598945b
JG
56842013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5685
5686 * config/aarch64/aarch64-builtins
5687 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
5688
998eaf97
JG
56892013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5690
5691 * config/aarch64/aarch64-simd-builtins.def
5692 (reduc_smax_): New.
5693 (reduc_smin_): Likewise.
5694 (reduc_umax_): Likewise.
5695 (reduc_umin_): Likewise.
5696 (reduc_smax_nan_): Likewise.
5697 (reduc_smin_nan_): Likewise.
5698 (fmax): Remove.
5699 (fmin): Likewise.
5700 (smax): Update for V2SF, V4SF and V2DF modes.
5701 (smin): Likewise.
5702 (smax_nan): New.
5703 (smin_nan): Likewise.
5704 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
5705 (<su><maxmin><mode>3): ...This, refactor.
5706 (s<maxmin><mode>3): New.
5707 (<maxmin_uns><mode>3): Likewise.
5708 (reduc_<maxmin_uns>_<mode>): Refactor.
5709 (reduc_<maxmin_uns>_v4sf): Likewise.
5710 (reduc_<maxmin_uns>_v2si): Likewise.
5711 (aarch64_<fmaxmin><mode>: Remove.
5712 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
5713 new builtin names.
5714 (vmin<q>_f<32,64>): Likewise.
5715 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5716 (FMAXMIN): New.
5717 (su): Add mappings for smax, smin, umax, umin.
5718 (maxmin): New.
5719 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5720 (FMAXMIN): Rename as...
5721 (FMAXMIN_UNS): ...This.
5722 (maxminv): Remove.
5723 (fmaxminv): Likewise.
5724 (fmaxmin): Likewise.
5725 (maxmin_uns): New.
5726 (maxmin_uns_op): Likewise.
5727
bd11644e
JG
57282013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5729
5730 * config/aarch64/arm_neon.h
5731 (vac<ge, gt><sd>_f<32, 64>): Rename to...
5732 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5733 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5734
75dd5ace
JG
57352013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5736
5737 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5738 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5739
7c19979f
JG
57402013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5741
5742 * config/aarch64/aarch64-simd.md
5743 (vcond<mode>_internal): Handle special cases for constant masks.
5744 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5745 (vcondu<mode><mode>): Likewise.
5746 (vcond<v_cmp_result><mode>): New.
5747
bb60efd9
JG
57482013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5749
5750 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5751 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5752 * config/aarch64/aarch64-simd-builtins.def
5753 (cmeq): Update to BUILTIN_VALLDI.
5754 (cmgt): Likewise.
5755 (cmge): Likewise.
5756 (cmle): Likewise.
5757 (cmlt): Likewise.
5758 * config/aarch64/arm_neon.h
5759 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5760 to builtins or C as appropriate.
5761
889b9412
JG
57622013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5763
5764 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5765 (cmgeu): ...This.
5766 (cmhi): Rename to...
5767 (cmgtu): ...This.
5768 * config/aarch64/aarch64-simd.md
5769 (simd_mode): Add SF.
5770 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5771 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5772 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5773 (cstore<mode>_neg): ...This.
5774 * config/aarch64/iterators.md
5775 (VALLF): new.
5776 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5777 (COMPARISONS): New.
5778 (UCOMPARISONS): Likewise.
5779 (optab): Add missing comparisons.
5780 (n_optab): New.
5781 (cmp_1): Likewise.
5782 (cmp_2): Likewise.
5783 (CMP): Likewise.
5784 (cmp): Remove.
5785 (VCMP_S): Likewise.
5786 (VCMP_U): Likewise.
5787 (V_cmp_result): Add DF, SF modes.
5788 (v_cmp_result): Likewise.
5789 (v): Likewise.
5790 (vmtype): Likewise.
5791 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5792
0a7dbb76
GY
57932013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
5794
5795 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5796 define_insn to define_insn_and_split.
5797 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5798 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5799 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5800 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5801 (thumb2_negscc): Likewise.
5802
fb614ca6
GY
58032013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5804
5805 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5806
9e64a0bf
GY
58072013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5808
5809 * config/arm/thumb2.md: Remove trailing whitespaces.
5810
d6b28156
RS
58112013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5812
5813 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5814 Use gen_int_mode rather than GEN_INT.
5815
f91674c3
L
58162013-04-30 H.J. Lu <hongjiu.lu@intel.com>
5817
b0dec607 5818 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
5819 debug_gimple_stmt.
5820
3551257c
RB
58212013-04-30 Richard Biener <rguenther@suse.de>
5822
5823 PR middle-end/57122
3c21604f 5824 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 5825
4c1aff1c
RB
58262013-04-30 Richard Biener <rguenther@suse.de>
5827
5828 PR middle-end/57107
5829 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5830
54b8379a
AB
58312013-04-30 Andrey Belevantsev <abel@ispras.ru>
5832
5833 PR rtl-optimization/56957
5834 PR rtl-optimization/57105
54b8379a
AB
5835 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5836 variable. Use just INSN_UID for determining whether an insn
5837 should be only disconnected from the insn stream.
5838 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5839
abc27962
JJ
58402013-04-30 Jakub Jelinek <jakub@redhat.com>
5841
5842 PR tree-optimization/57104
5843 * tsan.c (instrument_expr): Don't instrument accesses to
5844 DECL_HARD_REGISTER VAR_DECLs.
5845
0fc822d0
RB
58462013-04-30 Richard Biener <rguenther@suse.de>
5847
5848 * function.h (loops_for_fn): New inline function.
5849 (set_loops_for_fn): Likewise.
5850 * cfgloop.h (place_new_loop): Add struct function parameter.
5851 (get_loop): Likewise.
5852 (get_loops): Likewise.
5853 (number_of_loops): Likewise.
5854 (fel_next): Adjust.
5855 (fel_init): Likewise.
5856 * cfg.c (get_loop_copy): Adjust.
5857 * cfgloop.c (flow_loops_dump): Likewise.
5858 (record_loop_exits): Likewise.
5859 (verify_loop_structure): Likewise.
5860 * cfgloopanal.c (mark_irreducible_loops): Likewise.
5861 (estimate_reg_pressure_cost): Likewise.
5862 (mark_loop_exit_edges): Likewise.
5863 * cfgloopmanip.c (place_new_loop): Likewise.
5864 (add_loop): Likewise.
5865 (duplicate_loop): Likewise.
5866 * graph.c (draw_cfg_nodes): Likewise.
5867 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5868 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5869 (extract_affine_chrec): Likewise.
5870 (build_scop_iteration_domain): Likewise.
5871 * graphite.c (graphite_initialize): Likewise.
5872 * ira-build.c (create_loop_tree_nodes): Likewise.
5873 (more_one_region_p): Likewise.
5874 (rebuild_regno_allocno_maps): Likewise.
5875 (mark_loops_for_removal): Likewise.
5876 (mark_all_loops_for_removal): Likewise.
5877 (remove_unnecessary_regions): Likewise.
5878 (ira_build): Likewise.
5879 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5880 * loop-init.c (fix_loop_structure): Likewise.
5881 (gate_rtl_move_loop_invariants): Likewise.
5882 (gate_rtl_unswitch): Likewise.
5883 (gate_rtl_unroll_and_peel_loops): Likewise.
5884 (rtl_doloop): Likewise.
5885 * lto-streamer-in.c (input_cfg): Likewise.
5886 * lto-streamer-out.c (output_cfg): Likewise.
5887 * modulo-sched.c (sms_schedule): Likewise.
5888 * predict.c (tree_estimate_probability): Likewise.
5889 (tree_estimate_probability_driver): Likewise.
5890 (estimate_loops): Likewise.
5891 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5892 (move_sese_region_to_fn): Likewise.
5893 (debug_loop_num): Likewise.
5894 * tree-chrec.c (chrec_evaluate): Likewise.
5895 (hide_evolution_in_other_loops_than_loop): Likewise.
5896 (chrec_component_in_loop_num): Likewise.
5897 (reset_evolution_in_loop): Likewise.
5898 (evolution_function_is_invariant_rec_p): Likewise.
5899 * tree-if-conv.c (main_tree_if_conversion): Likewise.
5900 * tree-inline.c (copy_loops): Likewise.
5901 (copy_cfg_body): Likewise.
5902 (tree_function_versioning): Likewise.
5903 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5904 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5905 Likewise.
5906 (add_to_evolution_1): Likewise.
5907 (scev_const_prop): Likewise.
5908 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5909 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5910 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5911 (tree_ssa_lim_initialize): Likewise.
5912 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5913 (verify_loop_closed_ssa): Likewise.
5914 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
5915 (tree_ssa_loop_im): Likewise.
5916 (tree_ssa_loop_unswitch): Likewise.
5917 (tree_vectorize): Likewise.
5918 (check_data_deps): Likewise.
5919 (tree_ssa_loop_ivcanon): Likewise.
5920 (tree_ssa_loop_bounds): Likewise.
5921 (tree_complete_unroll): Likewise.
5922 (tree_complete_unroll_inner): Likewise.
5923 (tree_parallelize_loops): Likewise.
5924 (tree_ssa_loop_prefetch): Likewise.
5925 (tree_ssa_loop_ivopts): Likewise.
5926 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5927 * tree-vectorizer.c (vectorize_loops): Likewise.
5928
37953bd3
MF
59292013-04-29 Mike Frysinger <vapier@gentoo.org>
5930
5931 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5932 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5933 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5934 with EABI_LINK_SPEC.
5935
f9ed28db
UB
59362013-04-29 Uros Bizjak <ubizjak@gmail.com>
5937
5938 PR target/44578
5939 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5940 alternative.
5941
deca73f5
VM
59422013-04-29 Vladimir Makarov <vmakarov@redhat.com>
5943
5944 PR target/57097
37953bd3 5945 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
5946 using memory for pseudos. Print cost dump for alternatives.
5947 Modify cost values for conflicts with early clobbers.
5948 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5949
fdca7d03
UB
59502013-04-29 Uros Bizjak <ubizjak@gmail.com>
5951
5952 PR target/57098
5953 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5954
0b064172
IB
59552013-04-29 Ian Bolton <ian.bolton@arm.com>
5956
5957 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5958 from/to S register.
5959 (movdi_aarch64): Support LDR/STR from/to D register.
5960
473cec55
IB
59612013-04-29 Ian Bolton <ian.bolton@arm.com>
5962
5963 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5964 or higher by default.
5965
a6f30e66
RB
59662013-04-29 Richard Biener <rguenther@suse.de>
5967
5968 PR middle-end/57075
5969 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5970 even if not adding abnormal edges for calls that can make
5971 abnormal gotos.
5972
0c2b2040
RB
59732013-04-29 Richard Biener <rguenther@suse.de>
5974
5975 PR middle-end/57103
5976 * tree-cfg.c (move_stmt_op): Fix condition under which to update
5977 TREE_BLOCK.
5978 (move_stmt_r): Remove redundant checking.
5979
f41f80f9
TJ
59802013-04-29 Teresa Johnson <tejohnson@google.com>
5981
5982 PR bootstrap/57077
5983 * basic-block.h (apply_scale): New function.
5984 (apply_probability): Use apply_scale.
5985 * gimple-streamer-in.c (input_bb): Ditto.
5986 * lto-streamer-in.c (input_cfg): Ditto.
5987 * lto-cgraph.c (merge_profile_summaries): Ditto.
5988 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 5989 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
5990 (copy_edges_for_bb): Ditto.
5991 (copy_cfg_body): Ditto.
5992
315bbd2e
TV
59932013-04-29 Tom de Vries <tom@codesourcery.com>
5994
5995 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5996 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5997 (tail_merge_optimize): Handle current_loops == NULL.
5998
ebbd90d8
JL
59992013-04-26 Jeff Law <law@redhat.com>
6000
6001 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
6002 (simplify_cond_using_ranges): Generalize code to simplify
6003 COND_EXPRs where one argument is a constant and the other
6004 is an SSA_NAME created by an integral type conversion.
6005
8b9b57eb
KT
60062013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6007
6008 * config/arm/arm.md (store_minmaxsi): Use only when
6009 optimize_insn_for_size_p.
6010
9498e5dc
CB
60112013-04-29 Christian Bruel <christian.bruel@st.com>
6012
6013 PR target/57108
6014 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
6015
6093bc06
RB
60162013-04-29 Richard Biener <rguenther@suse.de>
6017
6018 PR middle-end/57089
fdca7d03
UB
6019 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
6020 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
6021 (expand_omp_for_generic): Properly add loops.
6022 (expand_omp_for_static_nochunk): Likewise.
6023 (expand_omp_for_static_chunk): Likewise.
6024 (expand_omp_for): For the degenerate case fixup loops.
6025 (expand_omp_sections): Fix default bb placement in loops.
6026 (expand_omp_atomic_pipeline): Properly add loops.
6027
84aacbfd
KT
60282013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6029
6030 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
6031
8dee4479
TV
60322013-04-29 Tom de Vries <tom@codesourcery.com>
6033
6034 * tree-ssa-tail-merge.c: Update header comment.
6035
47934dc4
JG
60362013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6037
6038 * config/aarch64/arm_neon.h
6039 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
6040 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
6041 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
6042 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
6043 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
6044 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
6045 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
6046 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
6047
384be29f
JG
60482013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6049
6050 * config/aarch64/aarch64-simd.md
6051 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
6052 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
6053 fix_trunc, fixuns_trunc.
6054 (ftrunc<VDQF:mode>2): New.
6055 * config/aarch64/iterators.md (optab): Add fix, fixuns.
6056 (fix_trunc_optab): New.
6057
0386b123
JG
60582013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6059
6060 * config/aarch64/aarch64-builtins.c
6061 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
6062 iceilf, lround, iroundf.
6063
00fcb892
UB
60642013-04-29 Uros Bizjak <ubizjak@gmail.com>
6065
6066 PR target/54349
6067 * config/i386/i386.h (enum ix86_tune_indices)
6068 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
6069 New, split from X86_TUNE_INTER_UNIT_MOVES.
6070 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
6071 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
6072 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
6073 (TARGET_INTER_UNIT_MOVES): Remove.
6074 * config/i386/i386.c (initial_ix86_tune_features): Update.
6075 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
6076 (ix86_expand_convert_uns_didf_sse): Use
6077 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6078 (ix86_expand_vector_init_one_nonzero): Ditto.
6079 (ix86_expand_vector_init_interleave): Ditto.
6080 (inline_secondary_memory_needed): Return true for moves from SSE class
6081 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
6082 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
6083 * config/i386/constraints.md (Yi, Ym): Depend on
6084 TARGET_INTER_UNIT_MOVES_TO_VEC.
6085 (Yj, Yn): New constraints.
6086 * config/i386/i386.md (*movdi_internal): Change constraints of
6087 operand 1 from Yi to Yj and from Ym to Yn.
6088 (*movsi_internal): Ditto.
6089 (*movdf_internal): Ditto.
6090 (*movsf_internal): Ditto.
6091 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
6092 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
6093 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
6094 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
6095 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
6096 * config/i386/sse.md (movdi_to_sse): Ditto.
6097 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
6098 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
6099 TARGET_INTER_UNIT_MOVES.
6100 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
6101 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
6102 instead of TARGET_INTER_UNIT_MOVES.
6103 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
6104 operand 1 from Yi to Yj and from Ym to Yn.
6105
4c871069
JG
61062013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6107
6108 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
6109 (float_truncate_hi_): Likewise.
6110 (float_extend_lo_): Likewise.
6111 (float_truncate_lo_): Likewise.
6112 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
6113 (aarch64_float_extend_lo_v2df): Likewise.
6114 (vec_unpacks_hi_v4sf): Likewise.
6115 (aarch64_float_truncate_lo_v2sf): Likewise.
6116 (aarch64_float_truncate_hi_v4sf): Likewise.
6117 (vec_pack_trunc_v2df): Likewise.
6118 (vec_pack_trunc_df): Likewise.
6119
1709ff9b
JG
61202013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6121
6122 * config/aarch64/aarch64-builtins.c
6123 (aarch64_fold_builtin): Fold float conversions.
6124 * config/aarch64/aarch64-simd-builtins.def
6125 (floatv2si, floatv4si, floatv2di): New.
6126 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
6127 * config/aarch64/aarch64-simd.md
6128 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
6129 * config/aarch64/iterators.md (FLOATUORS): New.
6130 (optab): Add float, floatuns.
6131 (su_optab): Likewise.
6132
ce966824
JG
61332013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6134
6135 * config/aarch64/aarch64-builtins.c
6136 (aarch64_builtin_vectorized_function): Use new names for
6137 fcvt builtins.
6138 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
6139 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
6140 (fcvtzu): Split as...
6141 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
6142 (fcvtas): Split as...
6143 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
6144 (fcvtau): Split as...
6145 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
6146 (fcvtps): Split as...
6147 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
6148 (fcvtpu): Split as...
6149 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
6150 (fcvtms): Split as...
6151 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
6152 (fcvtmu): Split as...
6153 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
6154 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
6155 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
6156 (lfrintnusf, lfrintnudf): Likewise.
6157 * config/aarch64/aarch64-simd.md
6158 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
6159 define_insn.
6160 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
6161 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
6162 (fcvt_pattern): Likewise.
6163
b9de24fe
JG
61642013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6165
6166 * config/aarch64/aarch64-simd.md
6167 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
6168 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
6169
77a205be
JG
61702013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6171
6172 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
6173 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
6174 (vrnd<a,m,n,p>_f32): Implement using builtins.
6175 (vrnd<i,x><q>_f<32, 64>): New.
6176
0659ce6f
JG
61772013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
6178
6179 * config/aarch64/aarch64-builtins.c
6180 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
6181 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
6182 (frintz): Rename to...
6183 (btrunc): ...this.
6184 (frintp): Rename to...
6185 (ceil): ...this.
6186 (frintm): Rename to...
6187 (floor): ...this.
6188 (frinti): Rename to...
6189 (nearbyint): ...this.
6190 (frintx): Rename to...
6191 (rint): ...this.
6192 (frinta): Rename to...
6193 (round): ...this.
6194 * config/aarch64/aarch64-simd.md
6195 (aarch64_frint<frint_suffix><mode>): Delete.
6196 (<frint_pattern><mode>2): Convert to insn.
6197 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
6198 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
6199 (frint_pattern): Likewise.
6200 (frint_suffix): Likewise.
6201
ea78906a
RB
62022013-04-29 Richard Biener <rguenther@suse.de>
6203
6204 PR tree-optimization/57081
6205 * loop-init.c: Include tree-flow.h.
6206 (loop_optimizer_finalize): Free number of iteration estimates.
6207 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
6208
baee1763
JJ
62092013-04-29 Jakub Jelinek <jakub@redhat.com>
6210
94dc5332
JJ
6211 PR tree-optimization/57083
6212 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
6213 non-singleton shift count range, zero extend low_bound for uns case.
6214
baee1763
JJ
6215 * config/i386/predicates.md (general_vector_operand): New predicate.
6216 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
6217 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
6218 if they aren't nonimmediate operands. If their original values
6219 satisfy const_vector_equal_evenodd_p, don't shift them.
6220 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
6221 predicates. For the SSE4.1 case force operands[{1,2}] into registers
6222 if not nonimmediate_operand.
6223 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
6224 instead of register_operand.
6225 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
6226
a9073727 62272013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
6228
6229 * stor-layout.c (finalize_size_functions): Allocate a structure and
6230 reset cfun before dumping the functions.
6231
ba8011e6
JJ
62322013-04-27 Jakub Jelinek <jakub@redhat.com>
6233
d6fde69e
JJ
6234 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
6235
ba8011e6
JJ
6236 PR target/56866
6237 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
6238 use xop_pmacsdqh if uns_p.
6239 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
6240 the immediate rotate count.
6241
2c62cbaa
VM
62422013-04-26 Vladimir Makarov <vmakarov@redhat.com>
6243
6244 * rtl.h (struct rtx_def): Add comment for field jump.
6245 (LRA_SUBREG_P): New macro.
6246 * recog.c (register_operand): Check LRA_SUBREG_P.
6247 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6248 stack frame.
6249 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6250 (lra_final_code_change): Skip subreg change for operators.
6251 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6252 if there are no operand changes.
6253 * lra-constraints.c (curr_insn_set): New.
6254 (match_reload): Set LRA_SUBREG_P.
6255 (emit_spill_move): Ditto.
6256 (check_and_process_move): Use curr_insn_set. Process only single
6257 set insns. Don't initialize sec_mem_p and change_p.
6258 (simplify_operand_subreg): Use LRA_SUBREG_P.
6259 (reg_in_class_p): New function.
6260 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6261 of #ifdef. Add code to remove cycling.
6262 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6263 non-null disp. Reload inner instead of disp when base and index
6264 are null. Try to put lo_sum into register.
6265 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6266 (check_and_process_move): Move code for move cost check to
6267 simple_move_p. Remove equiv_substitution.
6268 (simple_move_p): New function.
6269 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6270 curr_insn_set. Call check_and_process_move only for single set
6271 insns. Use the new function. Move call of check_and_process_move
6272 after operand equiv substitution and address process.
6273
e7d764f3
JJ
62742013-04-26 Jakub Jelinek <jakub@redhat.com>
6275
6276 PR go/57045
6277 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6278 with nonlocal goto receivers or returns twice calls, ignore
6279 unininitialized values from abnormal edges to nl goto receiver
6280 or returns twice call.
6281
41e10689
JJ
62822013-04-26 Jakub Jelinek <jakub@redhat.com>
6283
6284 PR tree-optimization/57051
6285 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6286 and VEC_RSHIFT_EXPR if shift count is a multiple of element
6287 bitsize.
6288
d7ed20db
RB
62892013-04-26 Richard Biener <rguenther@suse.de>
6290
6291 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6292 (expand_omp_taskreg): Likewise. Mark loops for fixup.
6293 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6294 (fixup_loop_arrays_after_move): New function.
6295 (move_sese_region_to_fn): Properly outline the loop tree parts
6296 of the SESE region.
6297
df93505e
UB
62982013-04-26 Uros Bizjak <ubizjak@gmail.com>
6299
6300 * config/i386/i386.md (type, unit): Fix long lines.
6301
dd366ec3
RB
63022013-04-26 Richard Biener <rguenther@suse.de>
6303
6304 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
6305 (lto-streamer-out.o): Likewise.
6306 * cfgloop.c (init_loops_structure): Export, add struct function
6307 argument and adjust.
6308 (flow_loops_find): Adjust.
6309 * cfgloop.h (enum loop_estimation): Add EST_LAST.
6310 (init_loops_structure): Declare.
6311 * lto-streamer-in.c: Include cfgloop.h.
6312 (input_cfg): Input the loop tree.
6313 * lto-streamer-out.c: Include cfgloop.h.
6314 (output_cfg): Output the loop tree.
6315 (output_struct_function_base): Do not drop PROP_loops.
6316
a9e0d843
RB
63172013-03-26 Richard Biener <rguenther@suse.de>
6318
6319 * tree-cfg.c (execute_build_cfg): Build the loop tree.
6320 (pass_build_cfg): Provide PROP_loops.
6321 (move_sese_region_to_fn): Remove loops that are outlined into fn
6322 for now.
6323 * tree-inline.c: Include cfgloop.h.
6324 (initialize_cfun): Do not drop PROP_loops.
6325 (copy_loops): New function.
6326 (copy_cfg_body): Copy loop structure.
6327 (tree_function_versioning): Initialize destination loop tree.
6328 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6329 (pass_parallelize_loops): Do IL verification.
6330 * loop-init.c (loop_optimizer_init): Fixup loops if required.
6331 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6332 the CFG make sure we fixup loops as well.
6333 * tree-ssa-tail-merge.c: Include cfgloop.h.
6334 (replace_block_by): When merging loop latches mark loops for fixup.
6335 * lto-streamer-out.c (output_struct_function_base): Drop
6336 PROP_loops for now.
6337 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6338 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6339 * ipa-split.c: Include cfgloop.h.
6340 (split_function): Add the new return block to the loop tree root.
6341 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6342 whether we have removed the forwarder block.
6343 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6344 * cfgloop.h (place_new_loop): Declare.
6345 * cfgloopmanip.c (place_new_loop): Export.
6346 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6347 (tree-switch-conversion.o): Likewise.
6348 (tree-complex.o): Likewise.
6349 (tree-inline.o): Likewise.
6350 (tree-ssa-tailmerge.o): Likewise.
6351 (ipa-split.o): Likewise.
6352 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6353 (tree-ssa-copy.o): Likewise.
6354 * tree-switch-conversion.c: Include cfgloop.h
6355 (process_switch): If we emit a bit-test cascade, schedule loops
6356 for fixup.
6357 * tree-complex.c: Include cfgloop.h.
6358 (expand_complex_div_wide): Properly add new basic-blocks to loops.
6359 * asan.c: Include cfgloop.h.
6360 (create_cond_insert_point): Properly add new basic-blocks to
6361 loops, schedule loop fixup.
6362 * cfgloop.c (verify_loop_structure): Check that looks are not
6363 marked for fixup.
6364 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6365 to loops.
6366 (expand_omp_for_generic): Likewise.
6367 (expand_omp_sections): Likewise.
6368 (expand_omp_atomic_pipeline): Schedule loops for fixup.
6369 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6370 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6371 is initialized, not when loops are present.
6372 * tree-parloops.c (parallelize_loops): Remove checking here.
6373 * passes.c (init_optimization_passes): Schedule a copy-propagation
6374 pass before complete unrolling of inner loops.
6375
e78e8a0b
JJ
63762013-04-26 Jakub Jelinek <jakub@redhat.com>
6377
a2e836b2
JJ
6378 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6379 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6380 (colorize_init): Add argument to _WIN32 version.
6381 * toplev.c: Include diagnostic-color.h.
6382 (process_options): Default to -fdiagnostics-color=auto if
6383 GCC_COLORS env var is in the environment.
6384 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
6385 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6386 env var is in the environment, the default is auto rather than never.
a2e836b2 6387
e78e8a0b
JJ
6388 * diagnostic.h (file_name_as_prefix): Add context argument.
6389 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
6390 the string as locus.
6391 * langhooks.c (lhd_print_error_function): Adjust caller.
6392
013e5ef9
LC
63932013-04-25 Lawrence Crowl <crowl@google.com>
6394
6395 * var-tracking.c (shared_hash_def::htab):
6396 Change type to hash_table. Update dependent calls and types.
6397
4a8fb1a1
LC
63982013-04-25 Lawrence Crowl <crowl@google.com>
6399
6400 * Makefile.in: Update as needed below.
6401
6402 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6403 Move declaration to after the type's method definitons.
6404
6405 * attribs.c (htab_t scoped_attributes::attribute_hash):
6406 Change type to hash_table. Update dependent calls and types.
6407
6408 * bitmap.c (htab_t bitmap_desc_hash):
6409 Change type to hash_table. Update dependent calls and types.
6410
6411 * cselib.c (htab_t cselib_hash_table):
6412 Change type to hash_table. Update dependent calls and types.
6413
6414 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6415 (hash_string_slot_node): Move implementation into lto-streamer.h
6416 struct string_slot_hasher.
6417 (eq_string_slot_node): Likewise.
6418
6419 * data-streamer-out.c: Update output_block::string_hash_table
6420 dependent calls and types.
6421
6422 * dwarf2cfi.c (htab_t trace_index):
6423 Change type to hash_table. Update dependent calls and types.
6424
6425 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6426 Change type to hash_table. Update dependent calls and types.
6427 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6428 (htab_t optimize_external_refs::map): Likewise.
6429 (htab_t output_comp_unit::extern_map): Likewise.
6430 (htab_t output_comdat_type_unit::extern_map): Likewise.
6431 (htab_t output_macinfo::macinfo_htab): Likewise.
6432 (htab_t optimize_location_lists::htab): Likewise.
6433 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6434
6435 * except.c (htab_t ehspec_hash_type):
6436 Change type to hash_table. Update dependent calls and types.
6437 (assign_filter_values::ttypes): Likewise.
6438 (assign_filter_values::ehspec): Likewise.
6439 (sjlj_assign_call_site_values::ar_hash): Likewise.
6440 (convert_to_eh_region_ranges::ar_hash): Likewise.
6441
6442 * gcse.c (htab_t pre_ldst_table):
6443 Change type to hash_table. Update dependent calls and types.
6444
6445 * ggc-common.c (htab_t saving_htab):
6446 Change type to hash_table. Update dependent calls and types.
6447 (htab_t loc_hash): Likewise.
6448 (htab_t ptr_hash): Likewise.
6449 (call_count): Rename ggc_call_count.
6450 (call_alloc): Rename ggc_call_alloc.
6451 (loc_descriptor): Rename make_loc_descriptor.
6452 (add_statistics): Rename ggc_add_statistics.
6453
6454 * ggc-common.c (saving_htab):
6455 Change type to hash_table. Update dependent calls and types.
6456
6457 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
6458 (push_gimplify_context): Likewise.
6459 (pop_gimplify_context): Likewise.
6460 (struct gimple_temp_hash_elt): Added.
6461 (struct gimplify_hasher): Likewise.
6462 (struct gimplify_ctx.temp_htab):
6463 Change type to hash_table. Update dependent calls and types.
6464
6465 * gimple-fold.c: Include gimplify-ctx.h.
6466
6467 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6468 Change type to hash_table. Update dependent calls and types.
6469 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6470 avoid potential global name collision.
6471
6472 * gimplify.c: Include gimplify-ctx.h.
6473 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
6474 (htab_t gimplify_ctx::temp_htab):
6475 Update dependent calls and types for new type hash_table.
6476 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
6477 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
6478
6479 * gimplify-ctx.h: New.
6480 (struct gimple_temp_hash_elt): Move from gimplify.c.
6481 (class gimplify_hasher): New.
6482 (struct gimplify_ctx): Move from gimple.h.
6483 (htab_t gimplify_ctx::temp_htab):
6484 Change type to hash_table. Update dependent calls and types.
6485
6486 * graphite-clast-to-gimple.c: Include graphite-htab.h.
6487 (htab_t ivs_params::newivs_index):
6488 Change type to hash_table. Update dependent calls and types.
6489 (htab_t ivs_params::params_index): Likewise.
6490 (htab_t print_generated_program::params_index): Likewise.
6491 (htab_t gloog::newivs_index): Likewise.
6492 (htab_t gloog::params_index): Likewise.
6493
6494 * graphite.c: Include graphite-htab.h.
6495 4htab_t graphite_transform_loops::bb_pbb_mapping):
6496 Change type to hash_table. Update dependent calls and types.
6497
6498 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
6499 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
6500 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
6501
6502 * graphite-dependences.c: Include graphite-htab.h.
6503 (loop_is_parallel_p): Change hash table type of parameter.
6504
6505 * graphite-htab.h: New.
6506 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
6507 (extern find_pbb_via_hash): Move from graphite-poly.h.
6508 (extern loop_is_parallel_p): Move from graphite-poly.h.
6509 (extern get_loop_body_pbbs): Move from graphite-poly.h.
6510
6511 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
6512 (extern loop_is_parallel_p): Move to graphite-htab.h.
6513 (extern get_loop_body_pbbs): Move to graphite-htab.h.
6514
6515 * haifa-sched.c (htab_t delay_htab):
6516 Change type to hash_table. Update dependent calls and types.
6517 (htab_t delay_htab_i2): Likewise.
6518
6519 * ira-color.c (htab_t allocno_hard_regs_htab):
6520 Change type to hash_table. Update dependent calls and types.
6521
6522 * ira-costs.c (htab_t cost_classes_htab):
6523 Change type to hash_table. Update dependent calls and types.
6524
6525 * loop-invariant.c (htab_t merge_identical_invariants::eq):
6526 Change type to hash_table. Update dependent calls and types.
6527
6528 * loop-iv.c (htab_t bivs):
6529 Change type to hash_table. Update dependent calls and types.
6530
6531 * loop-unroll.c (htab_t opt_info::insns_to_split):
6532 Change type to hash_table. Update dependent calls and types.
6533 (htab_t opt_info::insns_with_var_to_expand): Likewise.
6534
6535 * lto-streamer.h (struct string_slot): Move from data-streamer.h
6536 (struct string_slot_hasher): New.
6537 (htab_t output_block::string_hash_table):
6538 Change type to hash_table. Update dependent calls and types.
6539
6540 * lto-streamer-in.c (freeing_string_slot_hasher): New.
6541 (htab_t file_name_hash_table):
6542 Change type to hash_table. Update dependent calls and types.
6543
6544 * lto-streamer-out.c: Update output_block::string_hash_table dependent
6545 calls and types.
6546
6547 * lto-streamer.c (htab_t tree_htab):
6548 Change type to hash_table. Update dependent calls and types.
6549
6550 * omp-low.c: Include gimplify-ctx.h.
6551
6552 * passes.c (htab_t name_to_pass_map):
6553 Change type to hash_table. Update dependent calls and types.
6554 (pass_traverse): Rename to passes_pass_traverse.
6555
6556 * plugin.c (htab_t event_tab):
6557 Change type to hash_table. Update dependent calls and types.
6558
6559 * postreload-gcse.c (htab_t expr_table):
6560 Change type to hash_table. Update dependent calls and types.
6561 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
6562
6563 * sese.c (debug_rename_map_1): Make extern.
6564 (htab_t copy_bb_and_scalar_dependences::rename_map):
6565 Change type to hash_table. Update dependent calls and types.
6566
6567 * sese.h (extern debug_rename_map): Move to .c file.
6568
6569 * store-motion.c (htab_t store_motion_mems_table):
6570 Change type to hash_table. Update dependent calls and types.
6571
6572 * trans-mem.c (htab_t tm_new_mem_hash):
6573 Change type to hash_table. Update dependent calls and types.
6574
6575 * tree-browser.c (htab_t TB_up_ht):
6576 Change type to hash_table. Update dependent calls and types.
6577
6578 * tree-cfg.c (htab_t discriminator_per_locus):
6579 Change type to hash_table. Update dependent calls and types.
6580
6581 * tree-complex.c: Include tree-hasher.h
6582 (htab_t complex_variable_components):
6583 Change type to hash_table. Update dependent calls and types.
6584
6585 * tree-eh.c (htab_t finally_tree):
6586 Change type to hash_table. Update dependent calls and types.
6587
6588 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
6589 struct int_tree_hasher.
6590 (extern int_tree_map_eq): Likewise.
6591 (uid_decl_map_hash): Removed.
6592 (extern decl_tree_map_eq): Likewise.
6593
6594 * tree-hasher.h: New.
6595 (struct int_tree_hasher): New.
6596 (typedef int_tree_htab_type): New.
6597
6598 * tree-inline.c: Include gimplify-ctx.h.
6599
6600 * tree-mudflap.c: Include gimplify-ctx.h.
6601
6602 * tree-parloops.c: Include tree-hasher.h.
6603 (htab_t eliminate_local_variables_stmt::decl_address):
6604 Change type to hash_table. Update dependent calls and types.
6605 (htab_t separate_decls_in_region::decl_copies): Likewise.
6606
6607 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
6608 Change type to hash_table. Update dependent calls and types.
6609
6610 * tree-sra.c (candidates):
6611 Change type to hash_table. Update dependent calls and types.
6612
6613 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
6614 in tree-flow.h.
6615 (int_tree_map_hash): Likewise.
6616
6617 * tree-ssa-dom.c (htab_t avail_exprs):
6618 Change type to hash_table. Update dependent calls and types.
6619
6620 * tree-ssa-live.c (var_map_base_init::tree_to_index):
6621 Change type to hash_table. Update dependent calls and types.
6622
6623 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
6624 Change type to hash_table. Update dependent calls and types.
6625
6626 * tree-ssa-phiopt.c (seen_ssa_names):
6627 Change type to hash_table. Update dependent calls and types.
6628
6629 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
6630 Change type to hash_table. Update dependent calls and types.
6631
6632 * tree-ssa-uncprop.c (equiv):
6633 Change type to hash_table. Update dependent calls and types.
6634
c5a44004
JJ
66352013-04-25 Jakub Jelinek <jakub@redhat.com>
6636
6637 PR rtl-optimization/57003
6638 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6639 call note_stores with kill_clobbered_value callback again after
6640 killing regs_invalidated_by_call.
6641
09962a4a
JG
66422013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6643
6644 * config/aarch64/aarch64-simd.md
6645 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
6646 (aarch64_simd_bsl<mode>): Likewise.
6647 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
6648
ea28bb0b
MP
66492013-04-25 Marek Polacek <polacek@redhat.com>
6650
6651 PR tree-optimization/57066
3c21604f 6652 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 6653
96659611
JG
66542013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
6655
6656 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
6657
9697e620
JG
66582013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6659
6660 * config/aarch64/aarch64-builtins.c
6661 (aarch64_fold_builtin): New.
6662 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6663 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
6664 * config/aarch64/aarch64-simd-builtins.def (abs): New.
6665 * config/aarch64/arm_neon.h
6666 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
6667
0ac198d3
JG
66682013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6669 Tejas Belagod <tejas.belagod@arm.com>
6670
6671 * config/aarch64/aarch64-builtins.c
6672 (aarch64_gimple_fold_builtin): New.
6673 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
6674 * config/aarch64/aarch64-simd-builtins.def (addv): New.
6675 * config/aarch64/aarch64-simd.md (addpv4sf): New.
6676 (addvv4sf): Update.
6677 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6678
58cff58c
N
66792013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6680
df93505e 6681 * config/aarch64/aarch64.md
58cff58c
N
6682 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
6683
7e0228bf
N
66842013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6685
6686 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
6687 (*ngcsi_uxtw): New pattern.
6688
5819f96f 66892013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 6690 Julian Brown <julian@codesourcery.com>
5819f96f
KT
6691
6692 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
6693 (TB_DREG): Add T_V4HF.
6694 (v4hf_UP): New macro.
6695 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 6696 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
6697 Handle initialisation of V4HF. Adjust initialisation of reinterpret
6698 built-ins.
df93505e 6699 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
6700 (arm_vector_mode_supported_p): Handle V4HF.
6701 (arm_mangle_map): Handle V4HFmode.
6702 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
6703 * config/arm/arm_neon_builtins.def: Add entries for
6704 vcvtv4hfv4sf, vcvtv4sfv4hf.
6705 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
6706 (neon_vcvtv4hfv4sf): Likewise.
6707 * config/arm/neon-gen.ml: Handle half-precision floating point
6708 features.
6709 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
6710 * config/arm/arm_neon.h: Regenerate.
6711 * config/arm/neon.ml (type elts): Add F16.
6712 (type vectype): Add T_float16x4, T_floatHF.
6713 (type vecmode): Add V4HF.
6714 (type features): Add Requires_FP_bit feature.
6715 (elt_width): Handle F16.
6716 (elt_class): Likewise.
6717 (elt_of_class_width): Likewise.
6718 (mode_of_elt): Refactor.
6719 (type_for_elt): Handle F16, fix error messages.
6720 (vectype_size): Handle T_float16x4.
6721 (vcvt_sh): New function.
6722 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
6723 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6724 (string_of_mode): Handle V4HF.
6725 * doc/arm-neon-intrinsics.texi: Regenerate.
6726
1ef395e4
JG
67272013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6728
6729 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6730 format specifier in 'X' case.
6731
41c34e94
AM
67322013-04-25 Alan Modra <amodra@gmail.com>
6733
6734 PR target/57052
6735 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6736 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6737 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6738 Repeat for many other rotate/shift and mask patterns using subregs.
6739 Name lshiftrt insns.
6740 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6741 on WORDS_BIG_ENDIAN.
6742
b9a7eb5d
AM
67432013-04-25 Alan Modra <amodra@gmail.com>
6744
6745 * config.gcc: Support little-endian powerpc-linux targets.
6746 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6747 (LINK_OS_LINUX_SPEC): Define.
6748 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6749 Preserve MASK_LITTLE_ENDIAN.
6750 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6751 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6752 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6753 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6754 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6755 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6756 Correct fp word order for little-endian. Don't shift toc entries
6757 smaller than a word for little-endian.
6758 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6759 (bswapdi2 splits): Correct low-part subreg for little-endian.
6760 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6761 low/high where such is correct only for be.
6762 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6763 little-endian for -mcall-aixdesc.
6764
87f73374
AM
67652013-04-25 Alan Modra <amodra@gmail.com>
6766
6767 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6768 replace_equiv_address_nv.
6769
cabf91cd
AM
67702013-04-25 Alan Modra <amodra@gmail.com>
6771
6772 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6773
0ae24cc8
VM
67742013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6775
6776 Revert:
6777 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6778 * rtl.h (struct rtx_def): ...
cabf91cd 6779
77bce07c
VM
67802013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6781
6782 PR rtl-optimizations/57046
6783 * lra-constraints (split_reg): Set up lra_risky_transformations_p
6784 for multi-reg splits.
6785
0db63e7f
L
67862013-04-24 H.J. Lu <hongjiu.lu@intel.com>
6787
6788 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6789
3362b6b6
SA
67902013-04-24 Sterling Augustine <saugustine@google.com>
6791
6792 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6793 (comp_dir_string, debug_str_dwo_section): New.
6794 (DEBUG_STR_DWO_SECTION): Rename to ...
6795 (DEBUG_DWO_STR_SECTION): ... this.
6796 (DEBUG_NORM_STR_SECTION): Delete.
6797 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6798 (DEBUG_STR_DWO_SECTION_FLAGS): New.
6799 (find_AT_string): Move most logic to ...
6800 (find_AT_string_in_table): ... here. New.
6801 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6802 add_skeleton_AT_string. Delete logic.
6803 (output_skeleton_debug_sections): Remove call to
6804 add_top_level_skeleton_die_attrs.
6805 (add_comp_dir_attribute): Move logic to comp_dir_string.
6806 (dwarf2out_init): Initialize debug_str_dwo_section.
6807 (output_indirect_string): Call find_string_form.
6808 (output_indirect_strings): Rewrite.
6809 (prune_unused_types): Empty skeleton_debug_str_hash.
6810 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6811 (dwarf2out_finish): Call output_indirect_strings.
6812
e93e18e9
PC
68132013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6814
6815 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6816
f6ce35ac
VM
68172013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6818
cabf91cd 6819 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
6820 (LRA_SUBREG_P): New macro.
6821 * recog.c (register_operand): Check LRA_SUBREG_P.
6822 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6823 stack frame.
6824 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6825 (lra_final_code_change): Skip subreg change for operators.
6826 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6827 if there are no operand changes.
6828 * lra-constraints.c (curr_insn_set): New.
6829 (match_reload): Set LRA_SUBREG_P.
6830 (emit_spill_move): Ditto.
6831 (check_and_process_move): Use curr_insn_set. Process only single
6832 set insns. Don't initialize sec_mem_p and change_p.
6833 (simplify_operand_subreg): Use LRA_SUBREG_P.
6834 (reg_in_class_p): New function.
6835 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6836 of #ifdef. Add code to remove cycling.
6837 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6838 non-null disp. Reload inner instead of disp when base and index
6839 are null. Try to put lo_sum into register.
6840 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 6841 (check_and_process_move): Move code for move cost check to
f6ce35ac 6842 simple_move_p. Remove equiv_substitution.
cabf91cd 6843 (simple_move_p): New function.
f6ce35ac
VM
6844 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6845 curr_insn_set. Call check_and_process_move only for single set
6846 insns. Use the new function. Move call of check_and_process_move
6847 after operand equiv substitution and address process.
6848
38047d90
JG
68492013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
6850
6851 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6852 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6853 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6854
13f39b2e
PC
68552013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6856
6857 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6858
97c116dc
MP
68592013-04-24 Marek Polacek <polacek@redhat.com>
6860
6861 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6862 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6863 (select_loops_exit_conditions): Likewise.
6864 (number_of_iterations_for_all_loops): Likewise.
6865 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6866 (scev_analysis): Likewise.
6867
83082391
CM
68682013-04-02 Catherine Moore <clm@codesourcery.com>
6869 Chao-ying Fu <fu@mips.com>
6870
cabf91cd
AM
6871 * config/mips/micromips.md (jraddiusp): New pattern.
6872 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6873 instruction if possible.
83082391 6874
19e34aa2
AM
68752013-04-24 Alan Modra <amodra@gmail.com>
6876
6877 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6878
fdb6603c
JB
68792013-04-24 Julian Brown <julian@codesourcery.com>
6880 Chung-Lin Tang <cltang@codesourcery.com>
6881
6882 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
6883 dependency behavior in enumeration type DIE generation. Add TODO note
6884 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 6885
bf190e8d
LC
68862013-04-23 Lawrence Crowl <crowl@google.com>
6887
6888 * Makefile.in: Update as needed below.
6889
6890 * hash-table.h (class hash_table):
6891 Correct many methods with parameter types compare_type to the correct
6892 value_type. (Correct code was unlikely to notice the change.)
6893 (hash_table::elements_with_deleted) New.
6894 (class hashtable::iterator): New.
6895 (hashtable::begin()): New.
6896 (hashtable::end()): New.
6897 (FOR_EACH_HASH_TABLE_ELEMENT): New.
6898
6899 * statistics.c (statistics_hashes):
6900 Change type to hash_table. Update dependent calls and types.
6901
6902 * tree-into-ssa.c (var_infos):
6903 Change type to hash_table. Update dependent calls and types.
6904
6905 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6906 Change type to hash_table. Update dependent calls and types.
6907
6908 * tree-ssa-loop-im.c (struct mem_ref.refs):
6909 Change type to hash_table. Update dependent calls and types.
6910
6911 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6912 Change type to hash_table. Update dependent calls and types.
6913
6914 * tree-ssa-sccvn.c (vn_tables_s::nary):
6915 Change type to hash_table. Update dependent calls and types.
6916 (vn_tables_s::phis): Likewise.
6917 (vn_tables_s::references): Likewise.
6918
6919 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6920 (vn_reference_eq): Update parameter and return types.
6921
6922 * tree-ssa-structalias.c (pointer_equiv_class_table):
6923 Change type to hash_table. Update dependent calls and types.
6924 (location_equiv_class_table): Likewise.
6925
6926 * tree-vect-data-refs.c: Consequential changes for making
6927 peeling a hash_table.
6928
6929 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6930 (destroy_loop_vec_info): Dependent hash_table update.
6931
6932 * tree-vectorizer.h (peeling_htab):
6933 Change type to hash_table. Update dependent calls and types.
6934
d70a81dd
SC
69352013-04-23 Shiva Chen <shiva0217@gmail.com>
6936
cabf91cd
AM
6937 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6938 to check the register content is equal or not.
6939 * lra-constraints.c (match_reload): Use lra_assign_reg_val
6940 to assign register content record.
6941 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 6942 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
6943 * lra-int.h (struct lra_reg): Add offset member.
6944 (lra_reg_val_equal_p): New static inline function.
6945 (lra_update_reg_val_offset): New static inline function.
6946 (lra_assign_reg_val): New static inline function.
6947 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6948 to assign register content record.
6949 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 6950
b894a1f3
CM
69512013-04-23 Catherine Moore <clm@codesourcery.com>
6952
6953 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6954 operands. Record compression.
6955
ecd14de9
XDL
69562013-04-23 Xinliang David Li <davidxl@google.com>
6957
6958 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6959
92e776e9
RB
69602013-04-23 Richard Biener <rguenther@suse.de>
6961
6962 PR middle-end/57036
6963 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6964 parameter, only add abnormal goto edges from the copied body
6965 if the call could perform abnormal gotos.
6966 (copy_cfg_body): Adjust.
6967
a15ee567
SN
69682013-04-23 Sofiane Naci <sofiane.naci@arm.com>
6969
6970 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6971
08c52234
AS
69722013-04-23 Andreas Schwab <schwab@linux-m68k.org>
6973
6974 * coretypes.h (gimple_stmt_iterator): Add struct to make
6975 compatible with C.
6976
999c1171
RB
69772013-04-23 Richard Biener <rguenther@suse.de>
6978
6979 PR tree-optimization/57026
6980 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6981 from SSA names occuring in abnormal PHI nodes.
6982
53669259
AK
69832013-04-22 Andi Kleen <ak@linux.intel.com>
6984
6985 * lto/lto.c (print_lto_report_1): Fix LTO report names.
6986
1a0ad150
AK
69872013-04-22 Andi Kleen <ak@linux.intel.com>
6988
6989 * lto/lto.c (print_lto_report_1): Declare early.
6990 (read_cgraph_and_symbols): Call print_lto_report_1 early.
6991
057f8f20
AK
69922013-04-22 Andi Kleen <ak@linux.intel.com>
6993
6994 * common.opt (-flto-report-wpa): Add.
6995 * doc/invoke.texi (-flto-report-wpa): Add.
6996 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6997 (lto_main): dito.
6998
473b1e05
XDL
69992013-04-22 Xinliang David Li <davidxl@google.com>
7000
7001 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
7002 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
7003 * Makefile.in: New dependency
7004
cabf91cd 7005 David Daney <ddaney.cavm@gmail.com>
b1485a33 7006
cabf91cd
AM
7007 * configure.ac (gcc_cv_as_micromips_support): Use the
7008 --fatal-warnings option.
7009 * configure: Regenerate.
b1485a33 7010
829d0168
MP
70112013-04-22 Marek Polacek <polacek@redhat.com>
7012
7013 PR sanitizer/56990
7014 * tsan.c (instrument_expr): Don't instrument expression
7015 in case its size is zero.
7016
6d9b7208
UB
70172013-04-22 Uros Bizjak <ubizjak@gmail.com>
7018
7019 PR target/57032
7020 Revert:
7021 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
7022
7023 * config/alpha/alpha.c (TARGET_LRA_P): New define.
7024
ea679d55
JG
70252013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7026
7027 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
7028 (gimple_stmt_iterator): New typedef.
7029 * gimple.h (gimple_stmt_iterator): Rename to...
7030 (gimple_stmt_iterator_d): ... This.
7031 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
7032 trees be valid for GIMPLE and GENERIC.
7033 (TARGET_GIMPLE_FOLD_BUILTIN): New.
7034 * gimple-fold.c (gimple_fold_call): Call target hook
7035 gimple_fold_builtin.
7036 * hooks.c (hook_bool_gsiptr_false): New.
7037 * hooks.h (hook_bool_gsiptr_false): New.
7038 * target.def (fold_stmt): New.
7039 * doc/tm.texi: Regenerate.
7040
88a581da
VM
70412013-04-22 Vladimir Makarov <vmakarov@redhat.com>
7042
7043 PR target/57018
7044 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
7045 a set sp if no stack realignment.
7046
92be22dc
NC
70472013-04-22 Nick Clifton <nickc@redhat.com>
7048
7049 * config.gcc (tilegx-linux): Extend extra_objs rather than
7050 overwriting it.
7051 (tilepro-linux): Likewise.
7052
0ddec79f
JG
70532013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7054
7055 * config/aarch64/aarch64-builtins.c
7056 (CF): Remove.
7057 (CF0, CF1, CF2, CF3, CF4, CF10): New.
7058 (VAR<1-12>): Add MAP parameter.
7059 (BUILTIN_*): Likewise.
7060 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
7061 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
7062 (aarch64_ushl_n<mode>): Likewise.
7063 (aarch64_sshr_n<mode>): Likewise.
7064 (aarch64_ushr_n<mode>): Likewise.
7065 (aarch64_<maxmin><mode>): Likewise.
7066 (aarch64_sqrt<mode>): Likewise.
7067 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
7068 (vshr<q>_n_*): Likewise.
7069
0050faf8
JG
70702013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
7071
7072 * config/aarch64/aarch64-builtins.c
7073 (aarch64_simd_builtin_type_mode): Handle SF types.
7074 (sf_UP): Define.
7075 (BUILTIN_GPF): Define.
7076 (aarch64_init_simd_builtins): Handle SF types.
7077 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
7078 (frecps): Likewise.
7079 (frecpx): Likewise.
7080 * config/aarch64/aarch64-simd.md
7081 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
7082 (aarch64_frecpe<mode>): New.
7083 (aarch64_frecps<mode>): Likewise.
7084 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
7085 (v8type): Add frecp<esx>.
7086 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
7087 (aarch64_frecps<mode>): Likewise.
7088 * config/aarch64/iterators.md (FRECP): New.
7089 (frecp_suffix): Likewise.
7090 * config/aarch64/arm_neon.h
7091 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
7092
0fad3dbc 70932013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
7094
7095 PR target/56995
7096 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
7097 (REG_CLASS_NAMES): Idem.
7098 (REG_CLASS_CONTENTS): Idem.
7099 (REGCLASS_HAS_FP_REG): Idem.
7100 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
7101 (sh_conditional_register_usage): Idem.
7102
3e8a33f9
JL
71032013-04-21 Jeff Law <law@redhat.com>
7104
7105 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
7106 (ssa_forward_propagate_and_combine): Use it.
7107
f38e1b0a
VM
71082013-04-19 Vladimir Makarov <vmakarov@redhat.com>
7109
7110 * lra.c: Update the flow chart diagram.
7111
682303da
VM
71122013-04-19 Vladimir Makarov <vmakarov@redhat.com>
7113
7114 PR rtl-optimization/56847
7115 * lra-constraints.c (process_alt_operands): Discourage alternative
7116 with non-matche doffsettable memory constraint fro memory with
7117 known offset.
7118
f6b64c35
RB
71192013-04-19 Richard Biener <rguenther@suse.de>
7120
7121 PR tree-optimization/56982
7122 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
7123 function.
7124 * gimplify.c (gimplify_call_expr): Notice special calls.
7125 (gimplify_modify_expr): Likewise.
7126 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
7127 abnormal control flow receivers.
7128 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
7129 in the same way as cfun->has_nonlocal_labels.
7130 (gimple_purge_dead_abnormal_call_edges): Likewise.
7131 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
7132 receivers start a basic-block.
7133
01d8bf07
RB
71342013-04-19 Richard Biener <rguenther@suse.de>
7135
7136 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
7137 member ...
7138 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
7139 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
7140 (SLP_TREE_LOAD_PERMUTATION): Add.
7141 (vect_transform_slp_perm_load): Adjust prototype.
7142 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
7143 (vect_free_slp_instance): Likewise.
7144 (vect_create_new_slp_node): Likewise.
7145 (vect_supported_slp_permutation_p): Remove.
7146 (vect_slp_rearrange_stmts): Adjust.
7147 (vect_supported_load_permutation_p): Likewise. Inline
7148 vect_supported_slp_permutation_p here.
7149 (vect_analyze_slp_instance): Compute load permutations per
7150 slp node instead of per instance.
7151 (vect_get_slp_defs): Adjust.
7152 (vect_transform_slp_perm_load): Likewise.
7153 (vect_schedule_slp_instance): Remove redundant code.
7154 (vect_schedule_slp): Remove hack for PR56270, add it ...
7155 * tree-vect-stmts.c (vectorizable_load): ... here, do not
7156 CSE loads for SLP. Adjust.
7157
ede22fc3
GY
71582013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
7159
7160 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
7161 spelling in two comments.
7162
67bc84fb
GY
71632013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
7164
7165 PR target/56797
7166 * config/arm/arm.c (load_multiple_sequence): Require SP
7167 as base register for loads if SP is in the register list.
7168
e248d83f
MJ
71692013-04-19 Martin Jambor <mjambor@suse.cz>
7170
7171 PR tree-optimization/56718
7172 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
7173 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
7174 and made public. Adjusted all callers.
7175 (ipa_intraprocedural_devirtualization): New function.
7176 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
7177 (ipa_intraprocedural_devirtualization): Likewise.
7178 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
7179
4891e8f8
RB
71802013-04-19 Richard Biener <rguenther@suse.de>
7181
7182 PR tree-optimization/57000
7183 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
7184
dad89f7c
TG
71852013-04-19 Terry Guo <terry.guo@arm.com>
7186
7187 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
7188 Replace with ...
7189 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
7190 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
7191 (cortex_m4_fmacs): Use new reservations.
7192 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
7193
72ea0d47
VM
71942013-04-18 Vladimir Makarov <vmakarov@redhat.com>
7195
f1e6512c 7196 PR rtl-optimization/56999
72ea0d47
VM
7197 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
7198 related code.
7199 (lra_coalesce): Remove split_origin_bitmap and related code.
7200 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
7201 ranges if necessary.
7202
780a5b71
UB
72032013-04-18 Uros Bizjak <ubizjak@gmail.com>
7204
7205 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
7206 New array.
7207 (ix86_expand_call): Remove clobbered_registers array and use
7208 x86_64_ms_sysv_extra_clobbered_registers instead.
7209 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
7210 Declare here.
7211 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
7212 predicate.
7213 * config/i386/i386.md (*call_rex64_ms_sysv): Use
7214 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
7215 (*call_value_rex64_ms_sysv): Ditto.
7216
6f5a366a
CC
72172013-04-18 Cary Coutant <ccoutant@google.com>
7218
7219 * dwarf2out.c (output_pubnames): Check die_perennial_p of
7220 parent instead of die_mark.
7221
475b8f37
DN
72222013-04-18 Diego Novillo <dnovillo@google.com>
7223
7224 * gimple.c (create_gimple_tmp): New.
7225 (get_expr_type): New.
7226 (build_assign): New.
7227 (build_type_cast): New.
7228 * gimple.h (enum ssa_mode): Define.
7229 (gimple_seq_set_location): New.
7230 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 7231 to use build_assign and build_type_cast.
475b8f37 7232
08940f33
RB
72332013-04-18 Richard Biener <rguenther@suse.de>
7234
7235 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7236 handle negative step. Remove redundant checks.
7237 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
7238 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
7239 for negative step and grouped loads fail to vectorize.
7240
0e0f87d4
SB
72412013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7242
7243 * emit-rtl.c (reset_insn_used_flags): New function.
7244 (reset_all_used_flags): Use it.
7245 (verify_insn_sharing): New function.
7246 (verify_rtl_sharing): Fix verification for SEQUENCEs.
7247
4c445590
JJ
72482013-04-18 Jakub Jelinek <jakub@redhat.com>
7249
7250 PR tree-optimization/56984
7251 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
7252 and (x >> M) >= N don't register any assertion if N << M is the
7253 minimum value.
7254
6873ecab
SB
72552013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7256
7257 * lower-subreg.c (resolve_simple_move): If called self-recursive,
7258 do not delete_insn insns that have not yet been emitted, only
7259 unlink them with remove_insn.
7260 * df-scan.c (df_insn_delete): Revert r197492.
7261
3ccb989e
SB
72622013-04-17 Steven Bosscher <steven@gcc.gnu.org>
7263
7264 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
7265 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
7266
72672013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
7268
7269 * config/arm/arm.md (movsicc_insn): Convert define_insn into
7270 define_insn_and_split.
7271 (and_scc,ior_scc,negscc): Likewise.
7272 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7273
3ccb989e 72742013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
7275
7276 * config/arm/arm.c (use_return_insn): Return 0 for targets that
7277 can benefit from using a sequence of LDRD instructions in epilogue
7278 instead of a single LDM instruction.
7279
6d10a203
MLI
72802013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7281
7282 PR 45688
7283 * doc/extend.texi: Fix typo.
7284
6983e6b5
RB
72852013-04-17 Richard Biener <rguenther@suse.de>
7286
7287 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7288 (vect_build_slp_tree): ... here.
7289 (vect_build_slp_tree_1): Compute which stmts of the SLP group
7290 match. Remove special-casing of mismatched complex loads.
7291 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7292 re-try the match with swapped commutative operands.
7293 (vect_supported_load_permutation_p): Remove special-casing of
7294 mismatched complex loads.
7295 (vect_analyze_slp_instance): Adjust.
7296
ef23e6a2
RB
72972013-04-17 Richard Biener <rguenther@suse.de>
7298
7299 PR rtl-optimization/56921
7300 * cfgloop.h (struct loop): Add simple_loop_desc member.
7301 (struct niter_desc): Mark with GTY(()).
7302 (simple_loop_desc): Do not use aux field but simple_loop_desc.
7303 * loop-iv.c (get_simple_loop_desc): Likewise.
7304 (free_simple_loop_desc): Likewise.
7305
7306 Revert
7307 2013-04-16 Richard Biener <rguenther@suse.de>
7308
7309 PR rtl-optimization/56921
7310 * loop-init.c (pass_rtl_move_loop_invariants): Add
7311 TODO_do_not_ggc_collect to todo_flags_finish.
7312 (pass_rtl_unswitch): Same.
7313 (pass_rtl_unroll_and_peel_loops): Same.
7314 (pass_rtl_doloop): Same.
7315
fc6f94f5
EB
73162013-04-17 Eric Botcazou <ebotcazou@adacore.com>
7317
7318 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7319 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7320 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7321 references.
7322 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7323 * tree-streamer.c (record_common_node): Adjust reference in comment.
7324
10a88311
TG
73252013-04-17 Terry Guo <terry.guo@arm.com>
7326
7327 * config/arm/cortex-m4.md: Add a new bypass.
7328
6d9b7208 73292013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
7330
7331 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7332 New pattern.
7333 (*subs_<optab><mode>_multp2): New pattern.
7334 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7335 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7336
6d9b7208 73372013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
7338
7339 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7340 (*subs_mul_imm_<mode>): New pattern.
7341
18a6701e
DE
73422013-04-16 David Edelsohn <dje.gcc@gmail.com>
7343
7344 PR target/56948
7345 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7346 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
7347 (vsx_movti_32bit): Change j->wa to O->wa.
7348
07c37b2f
RB
73492013-04-16 Richard Biener <rguenther@suse.de>
7350
7351 PR rtl-optimization/56921
7352 * loop-init.c (pass_rtl_move_loop_invariants): Add
7353 TODO_do_not_ggc_collect to todo_flags_finish.
7354 (pass_rtl_unswitch): Same.
7355 (pass_rtl_unroll_and_peel_loops): Same.
7356 (pass_rtl_doloop): Same.
7357
0e0f87d4 73582013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
7359
7360 * config/arm/arm.c (emit_multi_reg_push): New declaration
7361 for an existing function.
7362 (arm_emit_strd_push): New function.
7363 (arm_expand_prologue): Used here.
7364 (arm_emit_ldrd_pop): New function.
7365 (arm_expand_epilogue): Used here.
7366 (arm_get_frame_offsets): Update condition.
7367 (arm_emit_multi_reg_pop): Add a special case for load of a single
7368 register with writeback.
7369
5e8e2af4
UB
73702013-04-16 Uros Bizjak <ubizjak@gmail.com>
7371
7372 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7373 description.
7374
9fd9ccf7
RB
73752013-04-16 Richard Biener <rguenther@suse.de>
7376
7377 PR tree-optimization/56756
7378 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7379 (first_mem_ref_loc): New.
7380 (execute_sm): Place the load temporarily before a previous
7381 access instead of in the latch edge to ensure its SSA dependencies
7382 are defined at points dominating the load.
7383
96fba521
SB
73842013-04-16 Steven Bosscher <steven@gcc.gnu.org>
7385
4c8af858
SB
7386 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7387 correct fix by moving header and footer insn to the footer of
7388 the merged basic block. Clear BB_END of the merged-away block.
7389
96fba521
SB
7390 PR middle-end/43631
7391 * emit-rtl.c (make_note_raw): New function.
7392 (link_insn_into_chain): New static inline function.
7393 (add_insn): Use it.
7394 (add_insn_before, add_insn_after): Factor insn chain linking code...
7395 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7396 using link_insn_into_chain.
7397 (note_outside_basic_block_p): New helper function for emit_note_after
7398 and emit_note_before.
7399 (emit_note_after): Use nobb variant of add_insn_after if the note
7400 should not be contained in a basic block.
7401 (emit_note_before): Use nobb variant of add_insn_before if the note
7402 should not be contained in a basic block.
7403 (emit_note_copy): Use make_note_raw.
7404 (emit_note): Likewise.
7405 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7406 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7407 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7408 the moved barrier the tail of the basic block it follows.
7409 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7410
7b8265ba
JJ
74112013-04-15 Jakub Jelinek <jakub@redhat.com>
7412
7413 PR tree-optimization/56962
7414 * gimple-ssa-strength-reduction.c (record_increment): Only set
7415 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7416 either rhs1 or rhs2 is equal to c->base_expr.
7417
5185d248
RB
74182013-04-15 Richard Biener <rguenther@suse.de>
7419
7420 PR tree-optimization/56933
7421 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7422 member.
7423 (GROUP_READ_WRITE_DEPENDENCE): Remove.
7424 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7425 * tree-vect-data-refs.c (vect_analyze_group_access): Move
7426 dependence check ...
7427 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7428 ... here.
7429 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7430 GROUP_READ_WRITE_DEPENDENCE.
7431
a24243a0
AK
74322013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7433
7434 * emit-rtl.c (reset_all_used_flags): New function.
7435 (verify_rtl_sharing): Call reset_all_used_flags before and after
7436 performing the checks.
7437
1c50eada
KT
74382013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7439
7440 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
7441 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
7442 * config/arm/constraints.md (De): New constraint.
7443 * config/arm/neon.md (anddi3_neon): Delete.
7444 (neon_vand<mode>): Expand to standard anddi3 pattern.
7445 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
7446 Move earlier in the file.
7447 (neon_inv_logic_op2): Likewise.
7448 (arm_anddi_operand_neon): New predicate.
7449
e927b6ad
RO
74502013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7451
7452 * configure.ac (gcc_cv_ld_as_needed): Set
7453 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
7454 Use -z ignore, -z record on *-*-solaris2*.
7455 (HAVE_LD_AS_NEEDED): Update comment.
7456 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
7457 * configure: Regenerate.
7458 * config.in: Regenerate.
7459 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7460 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7461 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7462 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7463 equivalents. Fix markup.
7464 * doc/tm.texi: Regenerate.
7465
e0ea8797
AH
74662013-04-15 Andrew Hsieh <andrewhsieh.google.com>
7467
7468 * config/i386/i386.opt: New option mstack-protector-guard=.
7469 * config/i386/i386-opts.h: Add enum stack_protector_guard.
7470 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7471 TARGET_SSP_TLS_GUARD.
7472 * config/i386/i386.c (ix86_option_override_internal): Set
7473 ix86_stack_protector_guard.
7474 * config/i386/i386.md (stack_protect_set): Enable for
7475 TARGET_SSP_TLS_GUARD only.
7476 (stack_protect_set_<mode>): Ditto.
7477 (stack_protect_test): Ditto.
7478 (stack_protect_test_<mode>): Ditto.
7479 * doc/invoke.texi (i386 Option): Document.
7480
811b72f9
EB
74812013-04-15 Eric Botcazou <ebotcazou@adacore.com>
7482
7483 PR target/56890
7484 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
7485 (S_MODES): Set H_MODE bit.
7486 (SF_MODES): Set only S_MODE and SF_MODE bits.
7487 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
7488 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
7489 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
7490 <MODE_FLOAT>: Likewise.
7491
5529fdd6
JY
74922013-04-15 Joey Ye <joey.ye@arm.com>
7493
7494 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
7495
517b1da2
JY
74962013-04-15 Joey Ye <joey.ye@arm.com>
7497
7498 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
7499 for real far jump.
7500 (thumb_far_jump_used_p): Count instruction size and set
7501 far_jump_used.
7502
01007ae0
EB
75032013-04-14 Eric Botcazou <ebotcazou@adacore.com>
7504
7505 * reorg.c (fill_simple_delay_slots): Reindent block of code.
7506 * resource.c (mark_target_live_regs): Reformat conditional block.
7507
c46f6580
SB
75082013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7509
7510 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
7511 notes, they are emitted only just before final.
7512 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
7513
1f397f45
SB
75142013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7515
7516 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
7517 * cfgrtl.c (delete_insn): Call it here instead.
7518 * lra-spills.c (lra_final_code_change): Use delete_insn.
7519 * haifa-sched.c (sched_remove_insn): Likewise.
7520 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
7521 returning to the nop pool.
7522 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
7523 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
7524
58a51369
SB
75252013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7526
7527 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
7528 * doc/tm.texi: Regenerated.
7529
33159866
UB
75302013-04-12 Uros Bizjak <ubizjak@gmail.com>
7531
7532 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
7533 QImode checks.
7534
226e378f
SB
75352013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7536
7537 * df-core.c (df_find_def): Compare register numbers.
7538 (df_find_use): Likewise.
7539
fafb9b18
VM
75402013-04-12 Vladimir Makarov <vmakarov@redhat.com>
7541
7542 PR target/56903
7543 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
7544 lra_in_progress for return.
7545
9a946fd6
GY
75462013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7547
7548 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
7549 define_insn into define_insn_and_split and emit movsicc patterns.
7550
41b83758
GY
75512013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7552
7553 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
7554
d3afd9aa
RB
75552013-04-12 Richard Biener <rguenther@suse.de>
7556
7557 * tree-pass.h (TODO_do_not_ggc_collect): New.
7558 * passes.c (execute_one_ipa_transform_pass): Honor
7559 TODO_do_not_ggc_collect.
7560 (execute_one_pass): Likewise.
7561
7562 Revert
7563 2013-04-10 Richard Biener <rguenther@suse.de>
7564
7565 * passes.c (init_optimization_passes): Remove reload pass.
7566 * ira.c (do_reload): Merge into ...
7567 (ira): ... this.
7568 (rest_of_handle_reload): Remove.
7569 (pass_reload): Likewise.
7570 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7571 of reload for vzeroupper pass placement.
7572
06f9b387
JJ
75732013-04-12 Jakub Jelinek <jakub@redhat.com>
7574
7575 PR tree-optimization/56918
7576 PR tree-optimization/56920
7577 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
7578 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
7579 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
7580 use wide_mul_with_sign method.
7581
953094d2
RB
75822013-04-12 Richard Biener <rguenther@suse.de>
7583
7584 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
7585 not be considered a gimple constant.
7586
bb506982
MG
75872013-04-12 Marc Glisse <marc.glisse@inria.fr>
7588
7589 * fold-const.c (const_binop): Handle vector shifts by a scalar.
7590 (fold_binary_loc): Call const_binop also for mixed vector-scalar
7591 operations.
7592
4b84d650
JJ
75932013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
7594 Jakub Jelinek <jakub@redhat.com>
7595
7596 * opts.c: Include diagnostic-color.h.
7597 (common_handle_option): Handle OPT_fdiagnostics_color_.
7598 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
7599 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
7600 (diagnostic-color.o): New.
7601 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
7602 (diagnostic_color_rule): New enum.
7603 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
7604 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
7605 the location string.
7606 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
7607 either NULL, or color kind.
7608 * diagnostic-color.c: New file.
7609 * diagnostic-color.h: New file.
7610 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
7611 arguments.
7612 * doc/invoke.texi (-fdiagnostics-color): Document.
7613 * pretty-print.h (pp_show_color): Define.
7614 (struct pretty_print_info): Add show_color field.
7615 * diagnostic.c: Include diagnostic-color.h.
7616 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
7617 macros. Colorize error:, warning: etc. strings and also the location
7618 string.
7619 (diagnostic_show_locus): Colorize the caret line.
7620 * pretty-print.c: Include diagnostic-color.h.
7621 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
7622 inside of %< %> quotes or quoted through q format modifier.
7623
067a1e71
AK
76242013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7625
33159866 7626 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 7627
33159866 76282013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
7629
7630 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
7631 code in CC_NZ mode.
7632 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
7633 pattern.
7634
7b55f98f
MP
76352013-04-11 Marek Polacek <polacek@redhat.com>
7636
7637 PR tree-optimization/48184
33159866 7638 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 7639
966b587e
EB
76402013-04-11 Eric Botcazou <ebotcazou@adacore.com>
7641
7642 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
7643 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
7644 (skip_simple_arithmetic): Tidy up.
7645 * tree.h (skip_simple_constant_arithmetic): Declare.
7646
33159866 76472013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
7648
7649 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
7650
1d42c1ec
RB
76512013-04-11 Richard Biener <rguenther@suse.de>
7652
7653 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7654 generate vector constants.
7655
4ba5ea11
RB
76562013-04-11 Richard Biener <rguenther@suse.de>
7657
7658 PR tree-optimization/56878
7659 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
7660 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
7661 New function.
7662 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7663 Prefer to align the DR with the most invariant base address.
7664
f0defe58
SKS
76652013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7666
7667 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
7668 comment.
7669
d07458be
JG
76702013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7671
7672 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
7673 floating-point vector comparisons against 0.
7674
146b8692
JJ
76752013-04-11 Jakub Jelinek <jakub@redhat.com>
7676
7677 PR tree-optimization/56899
7678 * fold-const.c (extract_muldiv_1): Apply distributive law
7679 only if TYPE_OVERFLOW_WRAPS (ctype).
7680
b8578ff7
BC
76812013-04-11 Bin Cheng <bin.cheng@arm.com>
7682
7683 PR target/56124
7684 * ira-costs.c (scan_one_insn): Check whether the source rtx of
7685 loading has side effect.
7686
0ea8a6f9
SB
76872013-04-10 Steven Bosscher <steven@gcc.gnu.org>
7688
7689 * config/sparc/sparc.c: Include tree-pass.h.
7690 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
7691 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
7692 head of file. Change return type. Split off gate function.
7693 (sparc_gate_work_around_errata): New function.
7694 (pass_work_around_errata): New pass definition.
7695 (insert_pass_work_around_errata) New pass insert definition to
7696 insert pass_work_around_errata just after delayed-branch scheduling.
7697 (sparc_option_override): Insert the pass.
7698 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
7699
42e37616
DM
77002013-04-10 David S. Miller <davem@davemloft.net>
7701
89deeb3b
DM
7702 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
7703 or -mcpu=hypersparc.
7704
42e37616
DM
7705 * target.def (cstore_mode): New hook.
7706 * target.h: Include insn-codes.h
7707 * targhooks.c: Likewise.
7708 (default_cstore_mode): New function.
7709 * targhooks.h: Declare it.
7710 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
7711 * doc/tm.texi: Rebuild.
7712 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
7713 target hook, rather than inspecting the insn_data.
7714 * config/sparc/sparc.c (sparc_cstore_mode): New function.
7715 (TARGET_CSTORE_MODE): Redefine.
7716 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
7717 result patterns.
7718 * config/sparc/predicates.md (cstore_result_operand): New special
7719 predicate.
7720 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
7721 Use it for operand 0.
7722 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
7723 (*snesi_special): Likewise.
7724 (*snesi_zero): Likewise.
7725 (*seqsi_zero): Likewise.
7726 (*sltu_insn): Likewise.
7727 (*sgeu_insn): Likewise.
7728 (*seqdi_special): Make operand 0 and comparison operation be of
7729 DImode.
7730 (*snedi_special): Likewise.
7731 (*snedi_special_vis3): Likewise.
7732 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7733 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7734 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7735 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7736 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7737 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7738 (*sltu_extend_sp64): Likewise.
7739 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7740 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7741 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7742 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7743 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7744
95ca411e
YZ
77452013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
7746
7747 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7748 (aarch64_start_file): Use the new function.
7749
6782438d 77502013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 7751 Jason Merrill <jason@redhat.com>
6782438d
SKS
7752
7753 * common.opt: Add -gdwarf.
7754 * opts.c (common_handle_option): Handle it.
7755 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7756
bb313b93
RB
77572013-04-10 Richard Biener <rguenther@suse.de>
7758
7759 * passes.c (execute_todo): Do not call ggc_collect conditional here.
7760 (execute_one_ipa_transform_pass): But unconditionally here.
7761 (execute_one_pass): And here.
7762 (init_optimization_passes): Remove reload pass.
7763 * tree-pass.h (TODO_ggc_collect): Remove.
7764 (pass_reload): Likewise.
7765 * ira.c (do_reload): Merge into ...
7766 (ira): ... this.
7767 (rest_of_handle_reload): Remove.
7768 (pass_reload): Likewise.
7769 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7770 of reload for vzeroupper pass placement.
7771 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7772 and todo_flags_finish of all passes.
7773
793d9a16
RB
77742013-04-10 Richard Biener <rguenther@suse.de>
7775
7776 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7777 first_const_oprnd field, rename first_def_type to first_op_type.
7778 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7779 (vect_get_and_check_slp_defs): Always use the type of the
7780 operand. Allow mixed vect_external_def, vect_constant_def types.
7781 (vect_get_constant_vectors): Handle mixed vect_external_def,
7782 vect_constant_def types.
7783
ee8a9b7b
JR
77842013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
7785
7786 PR tree-optimization/55524
7787 * tree-ssa-math-opts.c
7788 (convert_mult_to_fma): Don't use an fms construct
7789 when we don't have an fms operation, but fnma, and it looks
7790 likely that we'll be able to use the latter.
7791
6957a6f6
ZZ
77922013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7793
7794 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7795 function.
7796 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7797 inline fail caused by overwritable functions.
7798
34ab4a5b
CJW
77992013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
7800
7801 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7802 unnecessary bits in the constant power of two case.
7803
abf9bfbc
RB
78042013-04-10 Richard Biener <rguenther@suse.de>
7805
7806 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7807 broken code swapping operands.
7808 (vect_build_slp_tree): Do not compute load permutations here.
7809 (vect_analyze_slp_instance): Compute load permutations here,
7810 after building the SLP tree.
7811
f408477e
CB
78122013-04-09 Christian Bruel <christian.bruel@st.com>
7813
7814 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7815 of next/prev_real_insn.
7816
5ac42672
JH
78172013-04-09 Jan Hubicka <jh@suse.cz>
7818
abf9bfbc
RB
7819 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7820 Drop aliased parameter.
5ac42672
JH
7821 (function_and_variable_visibility): Do not handle alias pairs.
7822 * cgraph.c (varpool_externally_visible_p): Update prototype.
7823 * varpool.c (varpool_add_new_variable): Update.
7824
5017f1d2
KT
78252013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7826
7827 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7828
48eecbee
SB
78292013-04-09 Steven Bosscher <steven@gcc.gnu.org>
7830
a949cf1c
SB
7831 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7832
48eecbee
SB
7833 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7834
75ef8e3d
MP
78352013-04-09 Marek Polacek <polacek@redhat.com>
7836
7837 PR tree-optimization/48762
33159866 7838 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 7839
23847df4
RB
78402013-04-09 Richard Biener <rguenther@suse.de>
7841
7842 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7843 dealing with cost.
7844 (vect_build_slp_tree): Likewise.
7845 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7846 calculating the cost of a SLP instance.
7847 (vect_analyze_slp_instance): Use it from here, after building
7848 the SLP tree.
7849
ea3a0fde
JJ
78502013-04-09 Jakub Jelinek <jakub@redhat.com>
7851
7852 PR middle-end/56883
7853 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7854 expand_omp_for_static_chunk): Use simple_p = true in
7855 force_gimple_operand_gsi calls when assigning to addressable decls.
7856
a32dfe9d
JL
78572013-04-09 Jeff Law <law@redhat.com>
7858
7859 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7860 when the boolean was created by converting a wider object which
7861 had a boolean range.
7862
d755c7ef
RB
78632013-04-09 Richard Biener <rguenther@suse.de>
7864
7865 * tree-vectorizer.h (slp_void_p): Remove.
7866 (slp_tree): Typedef before _slp_tree declaration.
7867 (struct _slp_tree): Use a vector of slp_tree as children.
7868 (vect_get_place_in_interleaving_chain): Remove.
7869 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7870 Move ...
7871 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7872 and make static.
7873 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7874 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7875 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7876 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7877 Use slp_node instead of slp_void_p and adjust.
7878
3d741091
RB
78792013-04-09 Richard Biener <rguenther@suse.de>
7880
7881 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7882 work that is not necessary.
7883
39307ba7
JJ
78842013-04-09 Jakub Jelinek <jakub@redhat.com>
7885
7886 PR tree-optimization/56854
7887 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7888 forward into clobber stmts if it would change MEM_REF lhs into
7889 non-MEM_REF.
7890
343881fd
MK
78912013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
7892
7893 * tree.c (type_hash_lookup, type_hash_add): Make static.
7894 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7895
3922658a
RB
78962013-04-09 Richard Biener <rguenther@suse.de>
7897
7898 * tree.h (unsave_expr_now): Remove.
7899 * tree-inline.c (mark_local_for_remap_r): Remove.
7900 (unsave_expr_1): Likewise.
7901 (unsave_r): Likewise.
7902 (unsave_expr_now): Likewise.
7903 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7904 (propagate_tree_value): Likewise.
7905
9fb6b620
SB
79062013-04-08 Steven Bosscher <steven@gcc.gnu.org>
7907
7908 * doc/rtl.texi (sequence): Rewrite documentation to match the
7909 current use of SEQUENCE rtl objects.
7910 * rtl.def (SEQUENCE): Likewise.
7911
7912 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7913 Update documentation.
7914 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7915 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7916
7917 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7918
8ddb5a29
TJ
79192013-04-08 Teresa Johnson <tejohnson@google.com>
7920
7921 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7922 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 7923 methods.
8ddb5a29
TJ
7924 (estimate_edge_size_and_time): Add comment to suggest using rounding
7925 methods.
7926 (estimate_node_size_and_time): Ditto.
7927 (remap_edge_change_prob): Use helper rounding divide methods.
7928 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7929 (gimple_mod_pow2_value_transform): Ditto.
7930 (gimple_mod_subtract_transform): Ditto.
7931 (gimple_ic_transform): Ditto.
7932 (gimple_stringops_transform): Ditto.
7933 * stmt.c (conditional_probability): Ditto.
7934 (emit_case_dispatch_table): Ditto.
7935 * lto-cgraph.c (merge_profile_summaries): Ditto.
7936 * tree-optimize.c (execute_fixup_cfg): Ditto.
7937 * cfgcleanup.c (try_forward_edges): Ditto.
7938 * cfgloopmanip.c (scale_loop_profile): Ditto.
7939 (loopify): Ditto.
7940 (duplicate_loop_to_header_edge): Ditto.
7941 (lv_adjust_loop_entry_edge): Ditto.
7942 * tree-vect-loop.c (vect_transform_loop): Ditto.
7943 * profile.c (compute_branch_probabilities): Ditto.
7944 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7945 * lto-streamer-in.c (input_cfg): Ditto.
7946 * gimple-streamer-in.c (input_bb): Ditto.
7947 * ipa-cp.c (update_profiling_info): Ditto.
7948 (update_specialized_profile): Ditto.
7949 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7950 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 7951 rounding methods.
8ddb5a29
TJ
7952 * sched-rgn.c (compute_dom_prob_ps): Ditto.
7953 (compute_trg_info): Ditto.
7954 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7955 (purge_dead_edges): Ditto.
7956 * loop-unswitch.c (unswitch_loop): Ditto.
7957 * cgraphclones.c (cgraph_clone_edge): Ditto.
7958 (cgraph_clone_node): Ditto.
7959 * tree-inline.c (copy_bb): Ditto.
7960 (copy_edges_for_bb): Ditto.
7961 (initialize_cfun): Ditto.
7962 (copy_cfg_body): Ditto.
7963 (expand_call_inline): Ditto.
7964
661e6bd7
KT
79652013-04-08 Kai Tietz <ktietz@redhat.com>
7966
7967 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7968 TARGET_CYGWIN64 by TARGET_64BIT.
7969
105766f3
JR
79702013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7971
7972 * config/epiphany/epiphany.md (GPR_1): New constant.
7973 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7974 * config/epiphany/epiphany.c (gen_compare_reg):
7975 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7976 is already in place.
7977 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7978 Don't require being called during rtl expansion; If y operlaps r0,
7979 return 0.
7980 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7981 (epiphany_expand_epilogue): Likewise.
7982
8afab237
JR
7983 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7984 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 7985 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 7986
fa7707d6
JR
7987 * config/epiphany/constraints.md (CnL): New constraint.
7988 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7989 * config/epiphany/predicates.md (add_operand): Allow 1024.
7990
5138e18d
JR
7991 * config/epiphany/epiphany.md (logical_op): New code iterator.
7992 (op_mnc): New code attribute.
7993 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7994 (mov_f+1, mov_f+2): New peephole2 patterns.
7995
2ccc703d
JR
7996 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7997 (cstoresi4): Also allow re-use of zero result when doing a NE
7998 comparison to a non-zero operand.
aefb0819 7999 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 8000
093ac0a5
JR
8001 * config/epiphany/epiphany.md (<insn_opname>v2si3):
8002 Use gen_addsi3_i / gen_subsi3_i.
8003
f223bb13
JJ
80042013-04-08 Jakub Jelinek <jakub@redhat.com>
8005
8006 PR c++/34949
8007 PR c++/50243
8008 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
8009 contain anything but clobbers, at most one __builtin_stack_restore,
8010 optionally debug stmts and final resx, and if it has at least one
8011 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
8012 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
8013 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
8014 which isn't defaut definition, remove them.
8015 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
8016 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
8017 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
8018 with MEM_REF LHS with SSA_NAME address.
8019
4481581f
JL
80202013-04-08 Jeff Law <law@redhat.com>
8021
8022 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 8023
451dabda
RB
80242013-04-08 Richard Biener <rguenther@suse.de>
8025
8026 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
8027 extra newline.
8028 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
8029 determined vector type.
8030 (vect_analyze_data_refs): Likewise.
8031 (vect_get_new_vect_var): Adjust.
8032 (vect_create_destination_var): Preserve SSA name versions.
8033 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
8034 not dump anything here.
8035
3b088b47
JR
80362013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
8037
8038 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
8039 Add member lr_slot_known.
8040 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
8041 if necessary.
8042 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
8043 Remove code that sets lr_slot_offset according to what a previous
8044 version of epiphany_emit_save_restore used to do.
8045 (epiphany_emit_save_restore): When doing an lr save or restore,
8046 set/verify lr_slot_known and lr_slot_offset.
8047
d8484d41
XQ
80482013-04-08 Xinyu Qi <xyqi@marvell.com>
8049
33159866
UB
8050 PR target/54338
8051 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
8052 in ALL_REGS.
8053
481be1c4
RB
80542013-04-08 Richard Biener <rguenther@suse.de>
8055
8056 * alias.c (find_base_term): Fix thinko in previous change.
8057
401f3a81
JJ
80582013-04-08 Jakub Jelinek <jakub@redhat.com>
8059
8060 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
8061 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
8062 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
8063 if possible to compute val.
8064 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
8065 For QImode integers don't require anything about precision. Use
8066 const_with_all_bytes_same to find out if the constant doesn't have
8067 repeated bytes in it.
8068
03ed99a8
AK
80692013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8070
8071 * config/s390/s390.c (s390_expand_insv): Only accept insertions
8072 within mode size.
8073
781b2e62
MP
80742013-04-08 Marek Polacek <polacek@redhat.com>
8075
8076 PR rtl-optimization/48182
8077 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
8078 value to 1.
8079
27e430a2
JDA
80802013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8081
8082 PR target/55487
8083 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
8084 nuses, make sure we have a label.
8085
4902aa64
BS
80862013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8087
8088 PR target/56843
8089 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
8090 (rs6000_emit_swdiv_low_precision): Remove.
8091 (rs6000_emit_swdiv): Rewrite to handle between one and four
8092 iterations of Newton-Raphson generally; modify required number of
8093 iterations for some cases.
8094 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
8095
7bca81dc
SB
80962013-04-05 Steven Bosscher <steven@gcc.gnu.org>
8097
8098 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
8099 set-but-unused variable.
8100
8101 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
8102 basic blocks of released function bodies garbage-collectable.
8103
8104 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
8105 (struct rtl_opt_pass): Add TODO_df_finish.
8106
8107 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
8108
4542a38a
GY
81092013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8110
8111 * config/arm/constraints.md (q): New constraint.
8112 * config/arm/ldrdstrd.md: New file.
8113 * config/arm/arm.md (ldrdstrd.md) New include.
8114 (arm_movdi): Use "q" instead of "r" constraint
8115 for double-word memory access.
8116 (movdf_soft_insn): Likewise.
8117 * config/arm/vfp.md (movdi_vfp): Likewise.
8118 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 8119 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
8120 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
8121 (mem_ok_for_ldrd_strd): Likewise.
8122 (output_move_double): Update assertion.
8123
2385b218
GY
81242013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8125
8126 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
8127
75fe1cb5
GY
81282013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8129
8130 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
8131 define_insn_and_split.
8132 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
8133
dd660e8e
GY
81342013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8135
8136 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
8137 define_insn_and_split.
33159866 8138 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
8139 (shiftsi3_compare): New pattern.
8140 (rrx): New pattern.
8141 * config/arm/unspecs.md (UNSPEC_RRX): New.
8142
045e472c
GY
81432013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8144
8145 * config/arm/arm.md (negdi_extendsidi): New pattern.
8146 (negdi_zero_extendsidi): Likewise.
8147
3f3bf1a8
GY
81482013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8149
8150 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
8151 define_insn_and_split.
8152 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
8153 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
8154
b0b49556
GY
81552013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8156
8157 * config/arm/arm.md (arm_subdi3): Convert define_insn into
8158 define_insn_and_split.
8159 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
8160 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
8161
d633dd84
GY
81622013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8163
8164 * config/arm/arm.md (subsi3_carryin): New pattern.
8165 (subsi3_carryin_const): Likewise.
8166 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
8167 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
8168
f4499066
GY
81692013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8170
8171 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
8172
ceef6fd9
GY
81732013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
8174
8175 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 8176 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 8177
ddbdd8a7
KT
81782013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8179
8180 * config/arm/arm.c (arm_expand_builtin): Change fcode
8181 type to unsigned int.
8182
8456d78a
RR
81832013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8184
8185 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
8186
526c230f
ILT
81872013-04-04 Ian Lance Taylor <iant@google.com>
8188
33159866
UB
8189 * doc/standards.texi (Standards): The Go frontend supports the Go 1
8190 language standard.
526c230f 8191
3cfbe04d
SB
81922013-04-04 Steven Bosscher <steven@gcc.gnu.org>
8193
8194 PR middle-end/56729
8195 * df-scan.c (df_insn_delete): Disable failing assert.
8196
dfa3f8d0
KT
81972013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8198
8199 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
8200 New function prototype.
8201 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
8202 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
8203 (arm_builtin_vectorized_function): New function.
8204
f7837758
KT
82052013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8206
8207 * config/arm/arm_neon_builtins.def: New file.
8208 * config/arm/arm.c (neon_builtin_data): Move contents to
8209 arm_neon_builtins.def.
8210 (enum arm_builtins): Include neon builtin definitions.
8211 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 8212 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 8213
39c1b6db
MP
82142013-04-04 Marek Polacek <polacek@redhat.com>
8215
8216 PR tree-optimization/48186
8217 * predict.c (maybe_hot_frequency_p): Return false if
8218 HOT_BB_FREQUENCY_FRACTION is 0.
8219 (cgraph_maybe_hot_edge_p): Likewise.
8220
314f64eb
RB
82212013-04-04 Richard Biener <rguenther@suse.de>
8222
8223 PR tree-optimization/56826
8224 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
8225 more accurately.
8226
51a905b2
RB
82272013-04-04 Richard Biener <rguenther@suse.de>
8228
8229 PR tree-optimization/56213
8230 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 8231 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 8232
f1bf4f3a
RB
82332013-04-04 Richard Biener <rguenther@suse.de>
8234
8235 PR tree-optimization/56837
8236 * tree-loop-distribution.c (classify_partition): For non-zero
8237 values require that the value has the same precision as its
8238 mode to be useful as memset value.
8239
0bca7ded
NC
82402013-04-03 Nick Clifton <nickc@redhat.com>
8241
33159866 8242 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
8243 (fmssf4): Use fmsf.s on E3V5 architectures.
8244 (fnmasf4): Use fnmaf.s on E3V5 architectures.
8245 (fnmssf4): Use fnmsf.s on E3V5 architectures.
8246
b4019227
JL
82472013-04-03 Jeff Law <law@redhat.com>
8248
8249 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
8250 (lra-eliminations.o): Likewise.
8251
f57ddb5b
TJ
82522013-04-03 Teresa Johnson <tejohnson@google.com>
8253
8254 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 8255 compute_working_sets here from profile.c.
f57ddb5b 8256 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
8257 (gcov_working_set_t): Moved typedef here from basic-block.h
8258 (compute_working_set): Declare.
f57ddb5b
TJ
8259 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
8260 (get_working_sets): Renamed from compute_working_set,
33159866 8261 replace most of body with call to new compute_working_sets.
f57ddb5b 8262 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
8263 to get_working_sets.
8264 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 8265 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 8266 to get_working_sets.
f57ddb5b
TJ
8267 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8268 * gcov-dump.c (dump_working_sets): New function.
8269
5e0919f1
KZ
82702013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8271
8272 * hwint.c (sext_hwi, zext_hwi): New functions.
8273 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8274 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8275 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8276 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8277 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8278 (sext_hwi, zext_hwi): New functions.
0bca7ded 8279
be672e08
JL
82802013-04-03 Jeff Law <law@redhat.com>
8281
8282 PR tree-optimization/56799
33159866
UB
8283 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8284 back test for widening conversion erroneously dropped in prior change.
be672e08 8285
9d821fa5
KT
82862013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8287
8288 PR target/56809
8289 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8290 instead of next_real_insn.
8291
71c581e7
MP
82922013-04-03 Marek Polacek <polacek@redhat.com>
8293
8294 PR sanitizer/55702
33159866 8295 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 8296
4a32ef80
KT
82972013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8298
8299 PR target/56809
8300 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8301 next_real_insn.
8302 (thumb1_output_casesi): Likewise.
8303 (thumb2_output_casesi): Likewise.
8304
1b2253d4
RB
83052013-04-03 Richard Biener <rguenther@suse.de>
8306
8307 PR tree-optimization/56817
8308 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8309 Split out ...
8310 (tree_unroll_loops_completely_1): ... new function to manually
8311 walk the loop tree, properly defering outer loops of unrolled
8312 loops to later iterations.
8313
38000232
MG
83142013-04-03 Marc Glisse <marc.glisse@inria.fr>
8315
8316 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8317 (vectorizable_load): Likewise.
8318 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8319 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8320
3fa35298
MG
83212013-04-03 Marc Glisse <marc.glisse@inria.fr>
8322
8323 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8324 BIT_FIELD_REF.
8325
b3d45ff0
UW
83262013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8327
8328 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8329
ec9202a8
BC
83302013-04-03 Bin Cheng <bin.cheng@arm.com>
8331
8332 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8333
6805bd36
MG
83342013-04-03 Marc Glisse <marc.glisse@inria.fr>
8335
8336 PR tree-optimization/56790
33159866
UB
8337 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8338 folding.
6805bd36 8339
da694a77
MG
83402013-04-03 Marc Glisse <marc.glisse@inria.fr>
8341
8342 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8343 Handle VEC_MERGE.
8344 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8345 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8346 equal arguments.
8347
4e7d7b3d
JJ
83482013-04-03 Jakub Jelinek <jakub@redhat.com>
8349
8350 PR c/19449
8351 * tree.h (force_folding_builtin_constant_p): New decl.
8352 * builtins.c (force_folding_builtin_constant_p): New variable.
8353 (fold_builtin_constant_p): Fold immediately also if
8354 force_folding_builtin_constant_p.
8355
e6c9d234
RB
83562013-04-03 Richard Biener <rguenther@suse.de>
8357
8358 PR tree-optimization/56812
8359 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8360 DRs of the same interleaving chain are independent.
8361
984d07dd
JM
83622013-04-02 Jason Merrill <jason@redhat.com>
8363
8364 * gdbinit.in (pbb): Use debug fn.
8365
622849c9
LC
83662013-04-02 Lawrence Crowl <crowl@google.com>
8367
8368 * sese.h (struct ivtype_map_elt_s): Remove unused.
8369 (extern debug_ivtype_map): Remove unused.
8370 (extern eq_ivtype_map_elts): Remove unused.
8371 * sese.c (debug_ivtype_map): Removed unused.
8372 (debug_ivtype_map_1): Removed unused.
8373 (debug_ivtype_elt): Remove unused.
8374 (eq_ivtype_map_elts): Remove unused.
8375
8376
82c0e1a0
KT
83772013-04-02 Kai Tietz <ktietz@redhat.com>
8378
8379 PR target/52790
8380 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8381 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
8382 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8383 function.
82c0e1a0
KT
8384 (legitimize_pe_coff_symbol): Likewise.
8385 (is_imported_p): New helper-function.
8386 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8387 for Windows x64 targets.
8388 (ix86_expand_prologue): Optimize for pe-coff targets.
8389 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8390 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8391 medium/large code-model.
8392 (legitimize_pic_address): Likewise.
8393 (legitimize_tls_address): Likewise.
8394 (ix86_expand_call): Likewise.
8395 (x86_output_mi_thunk): Likewise.
8396 (get_dllimport_decl): Add new beimport argument.
8397 (construct_plt_address): Don't assert for x64 pe-coff targets.
8398 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8399 targets.
8400 (SYMBOL_FLAG_STUBVAR): New macro.
8401 (SYMBOL_REF_STUBVAR_P): Likewise.
8402 * config/i386/winnt.c (stub_list): New structure.
8403 (stub_head): New local variable.
8404 (i386_pe_record_stub): New function.
8405 (i386_pe_file_end): Emit refptr-stubs.
8406
5d751b0c
JJ
84072013-04-02 Jakub Jelinek <jakub@redhat.com>
8408
09bb4c99
JJ
8409 PR rtl-optimization/56745
8410 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8411 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8412
a1d8947a
JJ
8413 PR c++/34949
8414 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8415 and both of them are MEM_REFs, just compare first argument for
8416 equality and attempt to deal even with differing offsets.
8417
5d751b0c
JJ
8418 PR c++/34949
8419 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8420 of gimple_clobber_p to be MEM_REF.
8421 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8422 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
8423 after gimplification.
8424 * asan.c (get_mem_ref_of_assignment): Don't instrument
8425 gimple_clobber_p stmts.
8426 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8427 gimple_clobber_p stmt if they have MEM_REF lhs and
8428 are dead because of another gimple_clobber_p stmt.
8429 * tree-ssa-live.c (clear_unused_block_pointer): Treat
8430 gimple_clobber_p stmts like debug stmts.
8431 (remove_unused_locals): Remove clobbers with MEM_REF lhs
8432 that refer to unused VAR_DECLs or uninitialized values.
8433 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8434 gimple_clobber_p stmts if they refer to removed parameters.
8435 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8436 formatting.
8437
e594716a
UB
84382013-04-02 Uros Bizjak <ubizjak@gmail.com>
8439
8440 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
8441 using SWI48 mode attribute.
8442
7a80735b
WM
84432013-04-02 Wei Mi <wmi@google.com>
8444
8445 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
8446 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
8447 *<rotate_insn><mode>3_mask in i386.md.
8448
f423a9e4
AI
84492013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
8450
8451 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
8452
90eb75f2
RB
84532013-04-02 Richard Biener <rguenther@suse.de>
8454
8455 PR tree-optimization/56778
8456 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8457 Runtime alias tests are not supported for gather loads.
8458 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
8459 stmts referenced from SSA operands before updating SSA form.
8460
d8c69a92
IC
84612013-04-02 Ian Caulfield <ian.caulfield@arm.com>
8462 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8463
8464 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
8465 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8466 * config/arm/cortex-a53.md: New file.
8467 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8468 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8469 * config/arm/arm.c (arm_issue_rate): Likewise.
8470 * config/arm/arm-tune.md: Regenerate
8471 * config/arm/arm-tables.opt: Regenerate.
8472 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 8473
239eb04c
ZC
84742013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
8475
8476 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
8477 non-static link.
8478
c902d3c8
SN
84792013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8480
d8c69a92
IC
8481 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
8482 scalar load/store operations using B/H registers.
c902d3c8
SN
8483 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
8484
051d0e2f
SN
84852013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8486
8487 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
8488 scalar move.
8489 * config/aarch64/aarch64.c
8490 (aarch64_simd_scalar_immediate_valid_for_move): New.
8491 * config/aarch64/aarch64-protos.h
8492 (aarch64_simd_scalar_immediate_valid_for_move): New.
8493 * config/aarch64/constraints.md (Dh, Dq): New.
8494 * config/aarch64/iterators.md (hq): New.
8495
0ee1e3d9
EB
84962013-04-02 Eric Botcazou <ebotcazou@adacore.com>
8497
8498 * reorg.c (get_branch_condition): Deal with conditional returns.
8499 (fill_simple_delay_slots): Remove dead code dealing with jumps.
8500
136fb3f7
WM
85012013-04-01 Wei Mi <wmi@google.com>
8502
8503 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
8504 Truncate operand 2 using %b asm operand modifier.
8505 (*<shift_insn><mode>3_mask): Ditto.
8506 (*<rotate_insn><mode>3_mask): Ditto.
8507
6388c738
SB
85082013-04-01 Steven Bosscher <steven@gcc.gnu.org>
8509
8510 PR middle-end/56798
8511 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
8512
f7a4d826
KK
85132013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
8514
8515 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
8516 of next_real_insn.
8517 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
8518
4b943a49
LC
85192013-03-30 Lawrence Crowl <crowl@google.com>
8520
8521 * dse.c (clear_alias_sets): Remove never set.
8522 (disqualified_clear_alias_sets): Remove never set.
8523 (clear_alias_mode_pool): Remove never set.
8524 (dse_step0): Remove condition that is never true.
8525 (canon_address): Remove condition that is never true.
8526 (dse_step7): Remove condition that is never true.
8527 (rest_of_handle_dse): Remove condition that is never true.
8528 (rest_of_handle_dse::did_global): Remove never read from above.
8529 (dse_step2_spill): Remove never called from above.
8530 (dse_step5_spill): Remove never called from above.
8531
39718607
SB
85322013-03-30 Steven Bosscher <steven@gcc.gnu.org>
8533
da5c6bde
SB
8534 * doc/md.texi (Standard Names) <casesi>: Update documentation for
8535 JUMP_TABLE_DATA changes.
8536 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
8537 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
8538 (Insns) <jump_table_data>: New entry.
8539 * doc/tm.texi: Regenerate.
8540
39718607
SB
8541 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
8542
8543 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
8544 for table jump at the end of a basic block using tablejump_p.
8545 * targhooks.c (default_invalid_within_doloop): Likewise.
8546 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
8547 target hook implementation that is identical to the default hook.
8548 (rs6000_invalid_within_doloop): Remove.
8549
8550 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
8551 unused variable from tablejump_p call.
8552
8553 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
8554 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
8555 (INSN_DELETED_P): Likewise.
8556 (emit_jump_table_data): New prototype.
8557 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
8558 after 4th as unused.
8559 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
8560 * sched-vis.c (print_insn): Likewise.
8561 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
8562 insn for compatibility with back ends that use next_active_insn to
8563 identify jump table data.
8564 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
8565 (remove_insn): Likewise.
8566 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
8567 to be emitted.
8568 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
8569 (emit_jump_table_data): New function.
8570
8571 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
8572 basic block, a JUMP_TABLE_DATA never is.
8573 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
8574 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
8575 off from code handling real insns.
8576 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
8577 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
8578 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
8579 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
8580 is not a NONDEBUG_INSN_P.
8581 * ira-costs.c (scan_one_insn): Likewise.
8582 * jump.c (mark_all_labels): Likewise.
8583 (mark_jump_label_1): Likewise.
8584 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8585 * lra.c (get_insn_freq): Expect all insns reaching here to be in
8586 a basic block.
8587 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
8588 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
8589 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
8590 JUMP_TABLE_DATA_P insns.
8591 (calculate_elim_costs_all_insns): Likewise.
8592 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
8593 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
8594 (delete_output_reload): Code style fixups.
8595 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
8596 insn flags on this non-insn.
8597 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
8598 as scheduling barriers, for pre-change compatibility.
8599 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
8600 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
8601
8602 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
8603 redundant JUMP_TABLE_DATA_P test.
8604 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
8605 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8606 (frv_for_each_packet): Likewise.
8607 * config/i386/i386.c (min_insn_size): Likewise.
8608 (ix86_avoid_jump_mispredicts): Likewise.
8609 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8610 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
8611 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8612 (mips16_insn_length): Robustify.
8613 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
8614 (mips16_split_long_branches): Likewise.
8615 * config/pa/pa.c (pa_combine_instructions): Likewise.
8616 * config/rs6000/rs6000.c (get_next_active_insn): Treat
8617 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
8618 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
8619 as contributing to pool range lengths.
8620 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
8621 Remove redundant JUMP_TABLE_DATA_P test.
8622 (sh_loop_align): Likewise.
8623 (split_branches): Likewise.
8624 (sh_insn_length_adjustment): Likewise.
8625 * config/spu/spu.c (get_branch_target): Likewise.
8626
0208f7da
JH
86272013-03-29 Jan Hubicka <jh@suse.cz>
8628
8629 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
8630 gcov streaming; stream hot bb threshold to ltrans.
8631 * predict.c (get_hot_bb_threshold): Break out from ....
8632 (maybe_hot_count_p): ... here.
8633 (set_hot_bb_threshold): New function.
8634 * lto-section-in.c (lto_section_name): Add profile.
8635 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
8636 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
8637 and data-streamer.h
8638 (histogram_entry): New structure.
8639 (histogram, histogram_pool): New global vars.
8640 (histogram_hash): New structure.
8641 (histogram_hash::hash): New method.
8642 (histogram_hash::equal): Likewise.
8643 (account_time_size): New function.
8644 (cmp_counts): New function.
8645 (dump_histogram): New function.
8646 (ipa_profile_generate_summary): New function.
8647 (ipa_profile_write_summary): New function.
8648 (ipa_profile_read_summary): New function.
8649 (ipa_profile): Decide on threshold.
e594716a
UB
8650 (pass_ipa_profile): Add ipa_profile_write_summary and
8651 ipa_profile_read_summary.
0208f7da
JH
8652 * Makefile.in (ipa.o): Update dependencies.
8653 * lto-streamer.h (LTO_section_ipa_profile): New section.
8654
5a6ccc94
GDR
86552013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
8656
8657 * tree.h (VAR_P): New.
8658
39385fa6
PC
86592013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
8660
8661 PR lto/56777
8662 * doc/invoke.texi ([-fwhole-program]): Fix typo.
8663
34f0d87a
SB
86642013-03-29 Steven Bosscher <steven@gcc.gnu.org>
8665
8666 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
8667 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8668 (control_flow_insn_p): Likewise.
8669 * cfgrtl.c (duplicate_insn_chain): Likewise.
8670 * final.c (get_attr_length_1): Likewise.
8671 (shorten_branches): Likewise.
8672 (final_scan_insn): Likewise.
8673 * function.c (instantiate_virtual_regs): Likewise.
8674 * gcse.c (insert_insn_end_basic_block): Likewise.
8675 * ira-costs.c (scan_one_insn): Likewise.
8676 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8677 * lra.c (check_rtl): Likewise.
8678 * reload1.c (elimination_costs_in_insn): Likewise.
8679 * reorg.c (follow_jumps): Likewise.
8680
8681 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
8682 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8683 (thumb_far_jump_used_p): Likewise.
8684 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
8685 (workaround_speculation): Likewise.
8686 (add_sched_insns_for_speculation): Likewise.
8687 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
8688 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8689 (frv_for_each_packet): Likewise.
8690 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
8691 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
8692 (final_emit_insn_group_barriers): Likewise.
8693 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8694 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8695 (mips16_insn_length): Likewise.
8696 * config/pa/pa.c (pa_reorg): Likewise.
8697 (pa_combine_instructions): Likewise.
8698 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
8699 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
8700 (sh_reorg): Likewise.
8701 (split_branches): Likewise.
8702 * config/spu/spu.c (get_branch_target): Likewise.
8703
8704 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
8705 JUMP_TABLE_DATA_P.
8706
4ac761b0
KY
87072013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
8708
39385fa6 8709 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
8710 Fix declaration name.
8711
58a49189
LC
87122013-03-28 Lawrence Crowl <crowl@google.com>
8713
8714 * graphds.h (struct graph.indicies): Remove unused.
8715 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
8716 (SCOP_ORIGINAL_PDDRS): Remove unused.
8717 * sese.h (extern insert_loop_close_phis): Removed unused.
8718 (extern insert_guard_phis): Removed unused.
8719 (extern ivtype_map_elt_info): Removed unused.
8720 (new_ivtype_map_elt): Removed unused.
8721 * sese.c (ivtype_map_elt_info): Removed unused.
8722
7b3b6ae4
LC
87232013-03-28 Lawrence Crowl <crowl@google.com>
8724
8725 * Makefile.in: Add several missing include dependences.
8726 (DUMPFILE_H): New.
8727 (test-dump.o): New. This object is not added to any executable,
8728 but is present for ad-hoc testing.
8729 * bitmap.c
8730 (debug (const bitmap_head_def &)): New.
8731 (debug (const bitmap_head_def *)): New.
8732 * bitmap.h
8733 (extern debug (const bitmap_head_def &)): New.
8734 (extern debug (const bitmap_head_def *)): New.
8735 * cfg.c
8736 (debug (edge_def &)): New.
8737 (debug (edge_def *)): New.
8738 * cfghooks.c
8739 (debug (basic_block_def &)): New.
8740 (debug (basic_block_def *)): New.
8741 * dumpfile.h
8742 (dump_node (const_tree, int, FILE *)): Correct source file.
8743 * dwarf2out.c
8744 (debug (die_struct &)): New.
8745 (debug (die_struct *)): New.
8746 * dwarf2out.h
8747 (extern debug (die_struct &)): New.
8748 (extern debug (die_struct *)): New.
8749 * gimple-pretty-print.c
8750 (debug (gimple_statement_d &)): New.
8751 (debug (gimple_statement_d *)): New.
8752 * gimple-pretty-print.h
8753 (extern debug (gimple_statement_d &)): New.
8754 (extern debug (gimple_statement_d *)): New.
8755 * ira-build.c
8756 (debug (ira_allocno_copy &)): New.
8757 (debug (ira_allocno_copy *)): New.
8758 (debug (ira_allocno &)): New.
8759 (debug (ira_allocno *)): New.
8760 * ira-int.h
8761 (extern debug (ira_allocno_copy &)): New.
8762 (extern debug (ira_allocno_copy *)): New.
8763 (extern debug (ira_allocno &)): New.
8764 (extern debug (ira_allocno *)): New.
8765 * ira-lives.c
8766 (debug (live_range &)): New.
8767 (debug (live_range *)): New.
8768 * lra-int.h
8769 (debug (lra_live_range &)): New.
8770 (debug (lra_live_range *)): New.
8771 * lra-lives.c
8772 (debug (lra_live_range &)): New.
8773 (debug (lra_live_range *)): New.
8774 * omega.c
8775 (debug (omega_pb_d &)): New.
8776 (debug (omega_pb_d *)): New.
8777 * omega.h
8778 (extern debug (omega_pb_d &)): New.
8779 (extern debug (omega_pb_d *)): New.
8780 * print-rtl.c
8781 (debug (const rtx_def &)): New.
8782 (debug (const rtx_def *)): New.
8783 * print-tree.c
8784 (debug_tree (tree): Move within file.
8785 (debug_raw (const tree_node &)): New.
8786 (debug_raw (const tree_node *)): New.
8787 (dump_tree_via_hooks (const tree_node *, int)): New.
8788 (debug (const tree_node &)): New.
8789 (debug (const tree_node *)): New.
8790 (debug_verbose (const tree_node &)): New.
8791 (debug_verbose (const tree_node *)): New.
8792 (debug_head (const tree_node &)): New.
8793 (debug_head (const tree_node *)): New.
8794 (debug_body (const tree_node &)): New.
8795 (debug_body (const tree_node *)): New.
8796 (debug_vec_tree (tree): Move and reimplement in terms of dump.
8797 (debug (vec<tree, va_gc> &)): New.
8798 (debug (vec<tree, va_gc> *)): New.
8799 * rtl.h
8800 (extern debug (const rtx_def &)): New.
8801 (extern debug (const rtx_def *)): New.
8802 * sbitmap.c
8803 (debug_raw (simple_bitmap_def &)): New.
8804 (debug_raw (simple_bitmap_def *)): New.
8805 (debug (simple_bitmap_def &)): New.
8806 (debug (simple_bitmap_def *)): New.
8807 * sbitmap.h
8808 (extern debug (simple_bitmap_def &)): New.
8809 (extern debug (simple_bitmap_def *)): New.
8810 (extern debug_raw (simple_bitmap_def &)): New.
8811 (extern debug_raw (simple_bitmap_def *)): New.
8812 * sel-sched-dump.c
8813 (debug (vinsn_def &)): New.
8814 (debug (vinsn_def *)): New.
8815 (debug_verbose (vinsn_def &)): New.
8816 (debug_verbose (vinsn_def *)): New.
8817 (debug (expr_def &)): New.
8818 (debug (expr_def *)): New.
8819 (debug_verbose (expr_def &)): New.
8820 (debug_verbose (expr_def *)): New.
8821 (debug (vec<rtx> &)): New.
8822 (debug (vec<rtx> *)): New.
8823 * sel-sched-dump.h
8824 (extern debug (vinsn_def &)): New.
8825 (extern debug (vinsn_def *)): New.
8826 (extern debug_verbose (vinsn_def &)): New.
8827 (extern debug_verbose (vinsn_def *)): New.
8828 (extern debug (expr_def &)): New.
8829 (extern debug (expr_def *)): New.
8830 (extern debug_verbose (expr_def &)): New.
8831 (extern debug_verbose (expr_def *)): New.
8832 (extern debug (vec<rtx> &)): New.
8833 (extern debug (vec<rtx> *)): New.
8834 * sel-sched-ir.h
8835 (_list_iter_cond_expr): Make inline instead of static.
8836 * sreal.c
8837 (debug (sreal &)): New.
8838 (debug (sreal *)): New.
8839 * sreal.h
8840 (extern debug (sreal &)): New.
8841 (extern debug (sreal *)): New.
8842 * tree.h
8843 (extern debug_raw (const tree_node &)): New.
8844 (extern debug_raw (const tree_node *)): New.
8845 (extern debug (const tree_node &)): New.
8846 (extern debug (const tree_node *)): New.
8847 (extern debug_verbose (const tree_node &)): New.
8848 (extern debug_verbose (const tree_node *)): New.
8849 (extern debug_head (const tree_node &)): New.
8850 (extern debug_head (const tree_node *)): New.
8851 (extern debug_body (const tree_node &)): New.
8852 (extern debug_body (const tree_node *)): New.
8853 (extern debug (vec<tree, va_gc> &)): New.
8854 (extern debug (vec<tree, va_gc> *)): New.
8855 * tree-cfg.c
8856 (debug (struct loop &)): New.
8857 (debug (struct loop *)): New.
8858 (debug_verbose (struct loop &)): New.
8859 (debug_verbose (struct loop *)): New.
8860 * tree-dump.c: Add header dependence.
8861 * tree-flow.h
8862 (extern debug (struct loop &)): New.
8863 (extern debug (struct loop *)): New.
8864 (extern debug_verbose (struct loop &)): New.
8865 (extern debug_verbose (struct loop *)): New.
8866 * tree-data-ref.c
8867 (debug (data_reference &)): New.
8868 (debug (data_reference *)): New.
8869 (debug (vec<data_reference_p> &)): New.
8870 (debug (vec<data_reference_p> *)): New.
8871 (debug (vec<ddr_p> &)): New.
8872 (debug (vec<ddr_p> *)): New.
8873 * tree-data-ref.h
8874 (extern debug (data_reference &)): New.
8875 (extern debug (data_reference *)): New.
8876 (extern debug (vec<data_reference_p> &)): New.
8877 (extern debug (vec<data_reference_p> *)): New.
8878 (extern debug (vec<ddr_p> &)): New.
8879 (extern debug (vec<ddr_p> *)): New.
8880 * tree-ssa-alias.c
8881 (debug (pt_solution &)): New.
8882 (debug (pt_solution *)): New.
8883 * tree-ssa-alias.h
8884 (extern debug (pt_solution &)): New.
8885 (extern debug (pt_solution *)): New.
8886 * tree-ssa-alias.c
8887 (debug (_var_map &)): New.
8888 (debug (_var_map *)): New.
8889 (debug (tree_live_info_d &)): New.
8890 (debug (tree_live_info_d *)): New.
8891 * tree-ssa-alias.h
8892 (extern debug (_var_map &)): New.
8893 (extern debug (_var_map *)): New.
8894 (extern debug (tree_live_info_d &)): New.
8895 (extern debug (tree_live_info_d *)): New.
8896
be77e1e5
JH
88972013-03-28 Jan Hubicka <jh@suse.cz>
8898
8899 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8900
777e6976
IB
89012013-03-28 Ian Bolton <ian.bolton@arm.com>
8902
8903 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8904 record only when desired or required.
8905
9cd347ae
UB
89062013-03-28 Uros Bizjak <ubizjak@gmail.com>
8907
8908 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8909 *vec_extractv2di_1_rex64. Use x64 isa attribute.
8910
33159866 89112013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
8912
8913 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8914 (*andsi3_compare0_uxtw): New pattern.
8915 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8916 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8917
89ab31c1
JH
89182013-03-28 Jan Hubicka <jh@suse.cz>
8919
8920 * data-streamer-in.c (streamer_read_gcov_count): New function.
8921 * gimple-streamer-out.c: Include value-prof.h.
8922 (output_gimple_stmt): Output histogram.
8923 (output_bb): Use streamer_write_gcov_count.
8924 * value-prof.c: Include data-streamer.h
8925 (dump_histogram_value): Add HIST_TYPE_MAX.
8926 (stream_out_histogram_value): New function.
8927 (stream_in_histogram_value): New function.
8928 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8929 (stream_out_histogram_value, stream_in_histogram_value): Declare.
8930 * data-streamer-out.c (streamer_write_gcov_count): New function.
8931 (streamer_write_gcov_count_stream): New function.
8932 * lto-cgraph.c (lto_output_edge): Update counter streaming.
8933 (lto_output_node): Likewise.
8934 (input_node, input_edge): Likewise.
8935 * lto-streamer-out.c (output_cfg): Update streaming.
8936 * lto-streamer-in.c (input_cfg): Likewise.
8937 * data-streamer.h (streamer_write_gcov_count,
8938 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8939 * gimple-streamer-in.c: Include value-prof.h
8940 (input_gimple_stmt): Input histograms.
8941 (input_bb): Update profile streaming.
8942
e594716a 89432013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 8944
33159866 8945 * genmodes.c (emit_max_int): New function.
8697be17 8946 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
8947 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8948 Added doc.
8697be17 8949 * machmode.def: Fixed comment.
89ab31c1 8950
e594716a 89512013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
8952
8953 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
8954 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8955
74946978
MP
89562013-03-28 Marek Polacek <polacek@redhat.com>
8957 Richard Biener <rguenther@suse.de>
8958
8959 PR tree-optimization/56695
8960 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8961 build signed result of a vector comparison.
8962 * tree-cfg.c (verify_gimple_comparison): Check that a result
8963 of a vector comparison has signed type.
8964
a64b9c26
RB
89652013-03-28 Richard Biener <rguenther@suse.de>
8966
8967 PR tree-optimization/37021
8968 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8969 do not restrict gaps between groups.
8970 * tree-vect-stmts.c (vectorizable_load): Properly account for
8971 a gap between groups.
8972
a9dc2a2f
EB
89732013-03-28 Eric Botcazou <ebotcazou@adacore.com>
8974
8975 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8976 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8977 is not enabled.
8978
53cb97f9
GP
89792013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8980
8981 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8982 * doc/extend.texi (Named Address Spaces): Ditto.
8983 (Variable Attributes): Ditto.
8984
b802ae5c
KT
89852013-03-27 Kai Tietz <ktietz@redhat.com>
8986
eddae10a
KT
8987 * config.build: Add support for cygwin x64 target.
8988 * config.gcc: Likewise.
8989 * config.host: Likewise.
8990 * configure.ac: Likewise
8991 * configure: Regenerated.
b802ae5c 8992
8269de54
KT
89932013-03-27 Kai Tietz <ktietz@redhat.com>
8994
8995 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8996 * config/i386/t-cygwin-w64: New file.
8997 * config/i386/cygwin-w64.h: New file.
8998 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8999 and add support for x64-cygwin target.
9000 (CPP_SPEC): Likewise.
9001 (CXX_WRAP_SPEC_LIST): Undefine before define.
9002 (LIBGCJ_SONAME): Use 15 as version.
9003
f49b33cb
RB
90042013-03-27 Richard Biener <rguenther@suse.de>
9005
9006 PR tree-optimization/56716
9007 * tree-ssa-structalias.c (perform_var_substitution): Adjust
9008 dumping for ref nodes.
9009
b37a6ce5
MJ
90102013-03-27 Martin Jambor <mjambor@suse.cz>
9011
9012 PR tree-optimization/55334
9013 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
9014 restricted pointers to arrays.
9015
9469b9b2
GDR
90162013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
9017
9018 * Makefile.in (.SUFFIXES): Add .cc.
9019 (.c.o): Apply same recipe for implicit rule .cc.o.
9020
7d24f650
RB
90212013-03-27 Richard Biener <rguenther@suse.de>
9022
9023 PR tree-optimization/37021
9024 * tree-vect-data-refs.c (vect_check_strided_load): Allow
9025 REALPART/IMAGPART_EXPRs around the supported refs.
9026 * tree-ssa-structalias.c (find_func_aliases): Assume that
9027 floating-point values are not used to transfer pointers.
9028
2f251a05
AI
90292013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
9030
39385fa6
PC
9031 * target.def (TARGET_HAS_IFUNC_P): New target hook.
9032 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
9033 * doc/tm.texi: Regenerate.
9034 * targhooks.h (default_has_ifunc_p): New.
9035 * targhooks.c (default_has_ifunc_p): Ditto.
9036 * config/linux-protos.h: New file.
9037 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
9038 this hook for linux which disables support of indirect functions in
9039 android.
39385fa6
PC
9040 * config/linux-android.c: New file.
9041 * config/t-linux-android.c: Ditto.
9042 * config.gcc: Added new object file linux-android.o.
9043 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 9044 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 9045 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
9046 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
9047 doesn't support indirect functions.
9048 * configure: Regenerate.
9049
78b4e425
BC
90502013-03-27 Bin Cheng <bin.cheng@arm.com>
9051
9052 PR target/56102
9053 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
9054 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
9055 mult-word mode.
9056
a5ba7b92
AK
90572013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9058
9059 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
9060
be624986
TG
90612013-03-27 Terry Guo <terry.guo@arm.com>
9062
9063 * config/arm/arm-cores.def: Added core cortex-r7.
9064 * config/arm/arm-tune.md: Regenerated.
9065 * config/arm/arm-tables.opt: Regenerated.
9066 * doc/invoke.texi: Added entry for core cortex-r7.
9067
0a514f47
WL
90682013-03-27 Walter Lee <walt@tilera.com>
9069
9070 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
9071 double-decrement of next_scratch_regno.
9072
9332b0d2
WL
90732013-03-27 Walter Lee <walt@tilera.com>
9074
801d9b2a 9075 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
9076 input operands.
9077 (insn_v1mulus): Ditto.
9078 (insn_v2muls): Ditto.
9079
f54ea5dd
WL
90802013-03-27 Walter Lee <walt@tilera.com>
9081
e594716a 9082 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
9083 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
9084
bf60f4ca
WL
90852013-03-27 Walter Lee <walt@tilera.com>
9086
e594716a 9087 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
9088 (*sibcall_value): Ditto.
9089
e3b51eeb
WL
90902013-03-27 Walter Lee <walt@tilera.com>
9091
9092 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
9093 (insn_mnz_v8qi): ... this ...
9094 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
9095 vector equivalent.
9096 (insn_v<n>mnz): Replaced by ...
9097 (insn_v1mnz): ... this ...
9098 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
9099 equivalent.
9100 (insn_mz_<mode>): Replaced by ...
9101 (insn_mz_v8qi): ... this ...
9102 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
9103 vector equivalent.
9104 (insn_v<n>mz): Replaced by ...
9105 (insn_v1mz): ... this ...
9106 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
9107 equivalent.
9108
4fc7b145
EB
91092013-03-26 Eric Botcazou <ebotcazou@adacore.com>
9110
9111 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
9112
6f33817e
RM
91132013-03-26 Roland McGrath <mcgrathr@google.com>
9114
9115 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
9116 than fprintf with a non-constant, non-format string.
9117
93a4145b
UB
91182013-03-26 Uros Bizjak <ubizjak@gmail.com>
9119
9120 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
9121 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
9122 operand 0 predicate.
9123 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
9124 attribute. Use general_x64nomem_operand as operand 1 predicate.
9125 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
9126 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
9127 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
9128 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
9129 (mov<mode>_insv_1): Remove expander. Merge insn with
9130 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
9131 Use general_x64nomem_operand as operand 1 predicate.
9132 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
9133 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
9134 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
9135 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
9136 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
9137 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
9138 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
9139 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
9140 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
9141 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
9142 (general_x64nomem_operand): Ditto.
9143
c6a9ed5a 91442013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
9145
9146 * config/rtems.opt: Add -pthread option.
9147
31b0a960
RB
91482013-03-26 Richard Biener <rguenther@suse.de>
9149
93a4145b
UB
9150 * alias.c (find_base_term): Avoid redundant and not used recursion.
9151 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
9152 (true_dependence_1): Compute and pass base terms to base_alias_check.
9153 (write_dependence_p): Likewise.
9154 (may_alias_p): Likewise.
9155
79517551
SN
91562013-03-26 Sofiane Naci <sofiane.naci@arm.com>
9157
9158 * config/aarch64/aarch64.c (aarch64_classify_address): Support
9159 PC-relative load in SI modes and above only.
9160
a76213b9
XQ
91612013-03-26 Xinyu Qi <xyqi@marvell.com>
9162
9163 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
9164 * config/arm/iwmmxt.md (WCGR0): Update.
9165 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 9166
37ff9355
UB
91672013-03-26 Uros Bizjak <ubizjak@gmail.com>
9168
9169 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
9170 Use x64 and nox64 isa attributes.
9171
30b0317c
RB
91722013-03-26 Richard Biener <rguenther@suse.de>
9173
9174 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
9175 alignment computations and rely on get_object_alignment_1
9176 for the !TYPE_P case.
9177 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
9178
cbcdb140
WL
91792013-03-26 Walter Lee <walt@tilera.com>
9180
9181 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
9182 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
9183
dd884525 91842013-03-25 Jeff Law <law@redhat.com>
be672e08 9185
33159866
UB
9186 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
9187 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
9188 wrong version of prior patch.
9189
0051d3ec
WL
91902013-03-25 Walter Lee <walt@tilera.com>
9191
9192 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
9193 TILEGX_INSN_SHUFFLEBYTES1.
9194 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
9195 shufflebytes1.
9196 (tilegx_builtins): Ditto.
9197 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
9198
065a3605
WL
91992013-03-25 Walter Lee <walt@tilera.com>
9200
9201 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
9202 (floatunssisf2): New pattern.
9203 (floatsidf2): New pattern.
9204 (floatunssidf2): New pattern.
065a3605 9205
5b2a3c82
WL
92062013-03-25 Walter Lee <walt@tilera.com>
9207
9208 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
9209 tests for constraint J, K, N, P.
9210
192ea533
WL
92112013-03-25 Walter Lee <walt@tilera.com>
9212
9213 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
9214 Use indirect/pcrel encoding.
9215 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
9216 Ditto.
9217
855e0d0b
SE
92182013-03-25 Steve Ellcey <sellcey@mips.com>
9219
9220 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
9221 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
9222 * config/mips/mips.c (mips_option_override): Set IMADD default.
9223 * config/mips/mips.h (PTF_AVOID_IMADD): New.
9224 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
9225 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
9226 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
9227 * doc/invoke.texi (-mimadd/-mno-imadd): New.
9228
39e45653
JL
92292013-03-25 Jeff Law <law@redhat.com>
9230
9231 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
9232 slightly to avoid creating and folding useless trees. Simplify
9233 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
9234
7482c470
UB
92352013-03-25 Uros Bizjak <ubizjak@gmail.com>
9236
9237 * config/i386/i386.md (*zero_extendsidi2): Merge with
9238 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
9239 * config/i386/predicates.md (x86_64_zext_operand): Rename from
9240 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
9241 targets. Clarify comment.
9242
4a53743e
MJ
92432013-03-25 Martin Jambor <mjambor@suse.cz>
9244
9245 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
9246 pass-through jump functions differently.
9247 (ipa_read_jump_function): Likewise. Also use setter functions to set
9248 up jump functions.
9249
162712de
MJ
92502013-03-25 Martin Jambor <mjambor@suse.cz>
9251
9252 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
9253 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
9254 process it.
9255 (ipa_get_indirect_edge_target): New function.
9256 (devirtualization_time_bonus): New parameter known_aggs, pass it to
9257 ipa_get_indirect_edge_target. Update all callers.
9258 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
9259 ipa_get_indirect_edge_target_1 instead of calling
9260 ipa_get_indirect_edge_target.
9261 (create_specialized_node): Pass aggvlas to
9262 ipcp_discover_new_direct_edges.
9263
a5a4c20a
KT
92642013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9265
9266 * config/arm/arm.md (f_sels, f_seld): New types.
9267 (*cmov<mode>): New pattern.
9268 * config/arm/predicates.md (arm_vsel_comparison_operator): New
9269 predicate.
9270
f992b9fc
KT
92712013-03-25 Kai Tietz <ktietz@redhat.com>
9272
9273 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9274 POSIX-printf for mingw-hosted builds.
9275
c16fd676
RB
92762013-03-25 Richard Biener <rguenther@suse.de>
9277
9278 PR middle-end/56694
9279 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9280 must-not-throw stmt location.
9281
5ad29f12
KT
92822013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9283
9284 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9285 Emit load-acquire versions when acq is true.
9286 (arm_emit_store_exclusive): Add rel parameter.
9287 Emit store-release versions when rel is true.
9288 (arm_split_compare_and_swap): Use acquire-release instructions
9289 instead.
9290 of barriers when appropriate.
9291 (arm_split_atomic_op): Likewise.
9292 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9293 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9294 (VUNSPEC_SLX): Likewise.
9295 (VUNSPEC_LDA): Likewise.
9296 (VUNSPEC_STL): Likewise.
9297 * config/arm/sync.md (atomic_load<mode>): New pattern.
9298 (atomic_store<mode>): Likewise.
9299 (arm_load_acquire_exclusive<mode>): Likewise.
9300 (arm_load_acquire_exclusivesi): Likewise.
9301 (arm_load_acquire_exclusivedi): Likewise.
9302 (arm_store_release_exclusive<mode>): Likewise.
9303
03a7dddb
CM
93042013-03-25 Catherine Moore <clm@codesourcery.com>
9305
9306 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
9307 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
9308 * config/mip/predicates.md (lwsp_swsp_operand,
9309 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9310 sb16_operand, db4_operand, db7_operand, ib3_operand,
9311 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9312 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9313 andi16_operand): New predicates.
9314 * config/mips/mips.md (compression): New attribute.
9315 (enabled): New attribute.
9316 (length): Consider compression in computing length.
9317 (shift_compression): New code attribute.
9318 (*add<mode>3): New operands. Record compression.
9319 (sub<mode>3): Likewise.
9320 (one_cmpl<mode>2): Likewise.
9321 (*and<mode>3): Likewise.
9322 (*ior<mode>3): Likewise.
9323 (unnamed pattern for xor): Likewise.
9324 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9325 (*<optab><mode>3): Likewise.
9326 (*mov<mode>_internal: Likewise.
9327 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9328 (mips_unsigned_immediate_p): New.
9329 (umips_lwsp_swsp_address_p): New.
9330 (m16_based_address_p): New.
9331 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9332 (mips_unsigned_immediate_p): New prototype.
9333 (lwsp_swsp_address_p): New prototype.
9334 (m16_based_address_p): New prototype.
9335 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9336 (mips_signed_immediate_p): New function.
9337 (m16_based_address_p): New function.
9338 (lwsp_swsp_address_p): New function.
9339 (mips_print_operand_punctuation): Recognize short delay slot insns
9340 for microMIPS.add<mode>3"
9341
f35c297f 93422013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 9343
f35c297f
KT
9344 PR target/56720
9345 * config/arm/iterators.md (v_cmp_result): New mode attribute.
9346 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9347
051b9446
RB
93482013-03-25 Richard Biener <rguenther@suse.de>
9349
9350 PR tree-optimization/56689
9351 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9352 any edge.
9353
374001cb
RB
93542013-03-25 Richard Biener <rguenther@suse.de>
9355
9356 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9357 of bitmap.
9358 (memory_references): Likewise.
9359 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9360 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9361 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9362 (gather_mem_refs_in_loops): Fold into ...
9363 (analyze_memory_references): ... this. Move initialization
9364 to tree_ssa_lim_initialize.
9365 (fill_always_executed_in): Rename to ...
9366 (fill_always_executed_in_1): ... this.
9367 (fill_always_executed_in): Move contains_call computation to
9368 this new function from ...
9369 (tree_ssa_lim_initialize): ... here.
9370 (tree_ssa_lim): Call fill_always_executed_in.
9371
57895947
EB
93722013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9373
9374 * postreload.c (reload_combine): Fix code detecting returns.
9375
1e1b18c1
EB
93762013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9377
9378 * function.c (emit_use_return_register_into_block): On cc0 targets,
9379 do not emit the sequence between cc0 setter and user.
9380
9216baf1
KT
93812013-03-25 Kai Tietz <ktietz@redhat.com>
9382
1e1b18c1
EB
9383 * config/i386/predicates.md (local_symbolic_operand): Interpret
9384 dll-imported symbols as none-local.
9216baf1 9385
76421b44
RB
93862013-03-25 Richard Biener <rguenther@suse.de>
9387
9388 * tree-ssa-loop-im.c (struct depend): Remove.
9389 (struct lim_aux_data): Make depends a vec of gimples.
9390 (free_lim_aux_data): Adjust.
9391 (add_dependency): Likewise.
9392 (set_level): Likewise.
9393
d154bfa2
RB
93942013-03-25 Richard Biener <rguenther@suse.de>
9395
9396 PR middle-end/56434
9397 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9398 the pointer returned by calls with ECF_MALLOC set.
9399
2cd9804e
UB
94002013-03-24 Uros Bizjak <ubizjak@gmail.com>
9401
acef5fe0
UB
9402 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9403
94042013-03-24 Uros Bizjak <ubizjak@gmail.com>
9405
9406 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
9407 using MMXMODE mode iterator.
9408 (*move<mode>_internal): Merge with *movv2sf_internal and
9409 *movv2sf_internal_rex64 using MMXMODE mode iterator.
9410
225ccc68
SB
94112013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9412
85c0f02d
SB
9413 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9414 (record_last_mem_set_info): Likewise.
9415
225ccc68
SB
9416 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9417 of XNEWVEC followed by memset.
9418 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9419
b64925dc
SB
94202013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9421
9422 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9423 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9424 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9425 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9426 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9427 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9428 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9429 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9430 BARRIER_P instead of GET_CODE.
9431
b9aaf52e
EB
94322013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9433
9434 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9435 inaccuracy in the probing code.
9436
9437 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9438 (ctrapdi4): Likewise.
9439
66de4d7c
EB
94402013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9441
9442 * calls.c (expand_call): Add missing guard to code handling return
9443 of non-BLKmode structures in MSB.
9444 * function.c (expand_function_end): Likewise.
9445
4f25c8fb
EB
94462013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9447
9448 * combine.c (try_combine): Adjust comment. Do not add the set of
9449 insn #0 if the destination indirectly is set or dies in insn #2.
9450 Tidy up code to distribute a new note.
9451
23b7850d
UB
94522013-03-22 Uros Bizjak <ubizjak@gmail.com>
9453
9454 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
9455 also for alternatives 16 and 17.
9456
bed852cf
UB
94572013-03-22 Uros Bizjak <ubizjak@gmail.com>
9458
9459 * config/i386/sse.md (*mov<mode>_internal): Merge with
9460 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
9461 Emit insn template depending on type attribute. Use
9462 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9463 movd instead of movq mnemonic for interunit moves. Rewrite mode
9464 attribute calculation. Remove unit attribute calculation.
9465 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9466 Set prefix_data16 attribute for DImode ssemov types.
9467 Use Ym instead of y for SSE-MMX conversion alternatives.
9468 Reorder operand constraints.
9469
1e8a7937
SB
94702013-03-22 Steven Bosscher <steven@gcc.gnu.org>
9471
9472 * df.h (df_insn_delete): Adjust prototype.
9473 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
9474 and let it decide whether mark the basic block dirty.
9475 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
9476 * df-scan.c (df_insn_info_delete): New helper function, split
9477 off from df_insn_delete.
9478 (df_scan_free_bb_info): Use it.
9479 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
9480 Likewise.
9481 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
9482 that the insn is actually an insn and it has a non-NULL basic block.
9483 Do not mark basic block dirty if only deleting a DEBUG_INSN.
9484
e14d094c
RB
94852013-03-22 Richard Biener <rguenther@suse.de>
9486
9487 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
9488 dep_ref members.
9489 (mem_ref_alloc): Do not allocate them.
9490 (refs_independent_p): Do not query or maintain a cache.
9491
e9cf7316
RB
94922013-03-22 Richard Biener <rguenther@suse.de>
9493
9494 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
9495 (gather_mem_refs_in_loops): Do not compute it.
9496 (analyze_memory_references): Do not allocate it.
9497 (tree_ssa_lim_finalize): Do not free it.
9498 (for_all_locs_in_loop): Do not query all_refs_in_loop.
9499
f046e81b
RB
95002013-03-22 Richard Biener <rguenther@suse.de>
9501
9502 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 9503
a05c0ddf
IB
95042013-03-22 Ian Bolton <ian.bolton@arm.com>
9505
9506 * config/aarch64/aarch64.c (aarch64_print_operand): New
9507 format specifier for printing a constant in hex.
9508 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
9509 format specifier for printing second operand.
9510
c00217fc
RB
95112013-03-22 Richard Biener <rguenther@suse.de>
9512
9513 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
9514 bitmaps.
9515 (gather_mem_refs_in_loops): Perform store accumulation here.
9516 (create_vop_ref_mapping_loop): Remove.
9517 (create_vop_ref_mapping): Likewise.
9518 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 9519 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
9520 (record_indep_loop): Remove.
9521 (record_dep_loop): New function.
9522 (ref_indep_loop_p_1): Adjust to only walk over references
9523 in the loop, not its subloops.
9524 (ref_indep_loop_p): Rename to ...
9525 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
9526 maintaining a more fine-grained cache.
9527 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
9528 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
9529
15d19bf8
RB
95302013-03-22 Richard Biener <rguenther@suse.de>
9531
9532 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
9533 (struct mem_ref): Make accesses_in_loop a vec of a vec of
9534 aggregate mem_ref_loc.
9535 (free_mem_ref_locs): Inline into ...
9536 (memref_free): ... this and adjust.
9537 (mem_ref_alloc): Adjust.
9538 (mem_ref_locs_alloc): Remove.
9539 (record_mem_ref_loc): Adjust.
9540 (get_all_locs_in_loop): Rewrite into ...
9541 (for_all_locs_in_loop): ... this iterator.
9542 (rewrite_mem_ref_loc): New functor.
9543 (rewrite_mem_refs): Use for_all_locs_in_loop.
9544 (sm_set_flag_if_changed): New functor.
9545 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
9546 (ref_always_accessed): New functor.
9547 (ref_always_accessed_p): Use for_all_locs_in_loop.
9548
6f37411d
MG
95492013-03-21 Marc Glisse <marc.glisse@inria.fr>
9550
9551 * tree-pass.h (PROP_gimple_lvec): New.
9552 * passes.c (dump_properties): Handle PROP_gimple_lvec.
9553 (init_optimization_passes): Move pass_lower_vector.
9554 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
9555 PROP_gimple_lvec.
9556 (pass_lower_vector): Provide PROP_gimple_lvec.
9557 (pass_lower_vector_ssa): Likewise.
9558 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
9559
511ef689
MW
95602013-03-21 Mark Wielaard <mjw@redhat.com>
9561
9562 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
9563
cc1df30b
UB
95642013-03-21 Uros Bizjak <ubizjak@gmail.com>
9565
9566 * config/i386/i386.md (*movdi_internal): Disparage slightly
9567 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
9568 conversion alternatives.
9569
c845cfe1
JJ
95702013-03-21 Jakub Jelinek <jakub@redhat.com>
9571
37e99116
JJ
9572 PR middle-end/48087
9573 * diagnostic.def (DK_WERROR): New kind.
9574 * diagnostic.h (werrorcount): Define.
9575 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
9576 promoted to DK_ERROR, increment DK_WERROR counter instead of
9577 DK_ERROR counter.
9578 * toplev.c (toplev_main): Call print_ignored_options even if
9579 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
9580 even if just werrorcount is non-zero.
9581
c845cfe1
JJ
9582 PR debug/55608
9583 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
9584 on failure.
9585 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
9586 (string_cst_pool_decl): New function.
9587 (optimize_one_addr_into_implicit_ptr): New function.
9588 (resolve_addr_in_expr): Optimize DWARF location expression
9589 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
9590 which doesn't live in memory, but has DW_AT_location or
9591 DW_AT_const_value, or refers to a string literal, into
9592 DW_OP_GNU_implicit_pointer.
9593 (optimize_location_into_implicit_ptr): New function.
9594 (resolve_addr): If removing DW_AT_location of a variable because
9595 it was DW_OP_addr of address of the variable, but the variable doesn't
9596 live in memory, try to emit const value attribute for the initializer.
9597
08e0cda6
MG
95982013-03-21 Marc Glisse <marc.glisse@inria.fr>
9599
9600 * tree.h (VECTOR_TYPE_P): New macro.
9601 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
9602 TYPE_MODE): Use it.
9603 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
9604 VEC_COND_EXPR cannot be lvalues.
9605 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
9606
d08633b4
MG
96072013-03-21 Marc Glisse <marc.glisse@inria.fr>
9608
9609 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
9610 Restrict the transformation to equal modes.
9611
e6647190
RB
96122013-03-21 Richard Biener <rguenther@suse.de>
9613
9614 PR tree-optimization/39326
9615 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
9616 (MEM_ANALYZABLE): Adjust.
9617 (record_mem_ref_loc): Move bitmap ops ...
9618 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
9619 unanalyzable refs, do not record locations for it.
9620 (analyze_memory_references): Allocate ref zero as shared
9621 unanalyzable ref.
9622 (refs_independent_p): Do not test for unanalyzed mems here.
9623 (ref_indep_loop_p_1): Special-case disambiguation against
9624 the unanalyzed ref.
cc1df30b 9625 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 9626
65074f54
CL
96272013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
9628
9629 * config/arm/arm-protos.h (tune_params): Add
9630 prefer_neon_for_64bits field.
9631 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
9632 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
9633 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9634 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9635 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
9636 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9637 (arm_option_override): Handle -mneon-for-64bits new option.
9638 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
9639 (prefer_neon_for_64bits): Declare new variable.
9640 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 9641 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
9642 (arch_enabled): Handle new arch types. Remove support for onlya8
9643 and nota8.
9644 (one_cmpldi2): Use new arch names.
bc5faa5b 9645 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
9646 * config/arm/arm.opt (mneon-for-64bits): Add option.
9647 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
9648 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
9649 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
9650 of onlya8.
9651 * doc/invoke.texi (-mneon-for-64bits): Document.
9652
5a2d2a79
RB
96532013-03-21 Richard Biener <rguenther@suse.de>
9654
9655 PR tree-optimization/39326
9656 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
9657 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 9658 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 9659
5abe1e05
RB
96602013-03-21 Richard Biener <rguenther@suse.de>
9661
9662 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
9663 (vect_insert_into_interleaving_chain): Likewise.
9664 (vect_drs_dependent_in_basic_block): Inline ...
9665 (vect_slp_analyze_data_ref_dependence): ... here. New function,
9666 split out from ...
9667 (vect_analyze_data_ref_dependence): ... here. Simplify.
9668 (vect_check_interleaving): Simplify.
9669 (vect_analyze_data_ref_dependences): Likewise. Split out ...
9670 (vect_slp_analyze_data_ref_dependences): ... this new function.
9671 (dr_group_sort_cmp): New function.
9672 (vect_analyze_data_ref_accesses): Compute data-reference groups
9673 here instead of in vect_analyze_data_ref_dependence. Use
9674 a more efficient algorithm.
9675 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
9676 vect_slp_analyze_data_ref_dependences. Call
9677 vect_analyze_data_ref_accesses earlier.
9678 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9679 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
9680 (vect_slp_analyze_data_ref_dependences): New prototype.
9681
cad1735b
RB
96822013-03-21 Richard Biener <rguenther@suse.de>
9683
9684 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
9685 ref is stored in the loop.
9686 (find_refs_for_sm): Walk only over all stores.
9687 (store_motion_loop): Allocate from lim_bitmap_obstack.
9688 (store_motion): Likewise.
9689
141310ef
RB
96902013-03-21 Richard Biener <rguenther@suse.de>
9691
9692 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
9693 Update virtual SSA form.
9694
5022315a
RO
96952013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9696
9697 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
9698 * configure: Regenerate.
9699 * config.in: Regenerate.
9700 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
9701 if !HAVE_LD_EH_FRAME_CIEV3.
9702
50d4421c
RB
97032013-03-21 Richard Biener <rguenther@suse.de>
9704
9705 * tree-cfg.c (verify_expr_no_block): New function.
9706 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
9707 nor DECL_VALUE_EXPR have locations with associated blocks.
9708 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
9709 (clear_unused_block_pointer): Remove code dealing with
9710 blocks in DECL_DEBUG_EXPR locations.
9711
839b422f
RB
97122013-03-21 Richard Biener <rguenther@suse.de>
9713
9714 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
9715 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
9716 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
9717 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
9718 instead of DECL_DEBUG_EXPR_IS_FROM.
9719 * gimplify.c (gimplify_modify_expr): Likewise.
9720 * tree-cfg.c (verify_expr_location_1): Likewise.
9721 * tree-complex.c (create_one_component_var): Likewise.
9722 * tree-sra.c (create_access_replacement): Likewise.
9723 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9724 (clear_unused_block_pointer): Likewise.
9725 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9726 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9727 * var-tracking.c (var_debug_decl): Likewise.
9728 (track_expr_p): Likewise.
9729 * tree-inline.c (add_local_variables): Likewise. Set
9730 DECL_HAS_DEBUG_EXPR_P after copying it.
9731 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9732 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
9733
fe04878d
UB
97342013-03-21 Uros Bizjak <ubizjak@gmail.com>
9735
9736 PR bootstrap/56656
9737 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9738 * configure: Regenerate.
9739 * config.in: Regenerate.
9740 * config/i386/i386.md (*movdf_internal): Use
9741 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9742 movd instead of movq mnemonic for interunit moves.
9743 (*movdi_internal): Ditto.
9744
bd059b26 97452013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
9746
9747 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9748 (abd<mode>_3): New pattern.
9749 (aba<mode>_3): New pattern.
9750 (fabd<mode>_3): New pattern.
9751
bd059b26 97522013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
9753
9754 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9755 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9756 occurrence of REGISTER_PREFIX as its empty string.
9757
4f1f78b9
JL
97582013-03-20 Jeff Law <law@redhat.com>
9759
9760 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9761 addititional equivalences for equality comparisons between an SSA_NAME
9762 and a constant where the SSA_NAME was set from a widening conversion.
9763
327a1118
WL
97642013-03-20 Walter Lee <walt@tilera.com>
9765
9766 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9767
813e0036
UB
97682013-03-20 Uros Bizjak <ubizjak@gmail.com>
9769
9770 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9771 depending on type attribute.
9772 (*movti_internal): Ditto.
9773 (*movtf_internal): Ditto.
9774 (*movxf_internal): Ditto.
9775 (*movdf_internal): Ditto.
9776 (*movsf_internal): Ditto.
9777
7cf34aae
UB
97782013-03-20 Uros Bizjak <ubizjak@gmail.com>
9779
9780 * config/i386/i386.md (*movti_internal): Set prefix attribute to
9781 maybe_vex for sselog1 and ssemov types.
9782 (*movdi_internal): Reorder operand constraints.
9783 (*movsi_internal): Ditto. Set prefix attribute to
9784 maybe_vex for sselog1 and ssemov types.
9785 (*movtf_internal): Set prefix attribute to maybe_vex
9786 for sselog1 and ssemov types.
9787 (*movdf_internal): Ditto. Set prefix_data16 attribute for
9788 DImode ssemov types. Reorder operand constraints.
9789 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
9790 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
9791 attribute for SImode ssemov types. Reorder operand constraints.
9792
19321415
MJ
97932013-03-20 Martin Jambor <mjambor@suse.cz>
9794
9795 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9796 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9797
c6d5ff83
MM
97982013-03-20 Pat Haugen <pthaugen@us.ibm.com>
9799
9800 * config/rs6000/predicates.md (indexed_address, update_address_mem
9801 update_indexed_address_mem): New predicates.
9802 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9803 attribute for load/store instructions.
9804 * config/rs6000/dfp.md (movsd_store): Likewise.
9805 (movsd_load): Likewise.
9806 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9807 (unnamed HI->DI extend define_insn): Likewise.
9808 (unnamed SI->DI extend define_insn): Likewise.
9809 (unnamed QI->SI extend define_insn): Likewise.
9810 (unnamed QI->HI extend define_insn): Likewise.
9811 (unnamed HI->SI extend define_insn): Likewise.
9812 (unnamed HI->SI extend define_insn): Likewise.
9813 (extendsfdf2_fpr): Likewise.
9814 (movsi_internal1): Likewise.
9815 (movsi_internal1_single): Likewise.
9816 (movhi_internal): Likewise.
9817 (movqi_internal): Likewise.
9818 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9819 attribute for load/store instructions.
9820 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9821 instructions.
9822 (mov<mode>_softfloat): Likewise.
9823 (mov<mode>_hardfloat32): Likewise.
9824 (mov<mode>_hardfloat64): Likewise.
9825 (mov<mode>_softfloat64): Likewise.
9826 (movdi_internal32): Likewise.
9827 (movdi_internal64): Likewise.
9828 (probe_stack_<mode>): Likewise.
9829
98302013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9831
9832 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9833 floating point, and decimal floating point to reload iterator.
9834
9835 * config/rs6000/constraints.md (wl constraint): New constraints to
9836 return FLOAT_REGS if certain options are used to reduce the number
9837 of separate patterns that exist in the file.
9838 (wx constraint): Likewise.
9839 (wz constraint): Likewise.
9840
9841 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9842 -mdebug=reg, print wg, wl, wx, and wz constraints.
9843 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9844 Initialize the reload functions for 64-bit binary/decimal floating
9845 point types.
9846 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9847 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9848 create the buffer on the stack to overcome not having a 32-bit
9849 load and store.
9850 (rs6000_emit_move): Likewise.
9851 (rs6000_secondary_memory_needed_rtx): Likewise.
9852 (rs6000_alloc_sdmode_stack_slot): Likewise.
9853 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9854 via xxlxor, just like DFmode 0.0.
9855
9856 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9857 define as 1 if we are running on a power7 or newer.
9858 (enum r6000_reg_class_enum): Add new constraints.
9859
9860 * config/rs6000/dfp.md (movsd): Delete, combine with binary
9861 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9862 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 9863 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
9864 (movsd splitter): Likewise.
9865 (movsd_hardfloat): Likewise.
9866 (movsd_softfloat): Likewise.
9867
9868 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9869 binary and decimal floating point moves.
9870 (fmove_ok): New attributes to combine binary and decimal floating
9871 point moves, and to combine power6x (mfpgpr) moves along normal
9872 floating moves.
9873 (real_value_to_target): Likewise.
9874 (f32_lr): Likewise.
9875 (f32_lm): Likewise.
9876 (f32_li): Likewise.
9877 (f32_sr): Likewise.
9878 (f32_sm): Likewise.
9879 (f32_si): Likewise.
9880 (movsf): Combine binary and decimal floating point moves. Combine
9881 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 9882 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
9883 (mov<mode> for SFmode/SDmode); Likewise.
9884 (SFmode/SDmode splitters): Likewise.
9885 (movsf_hardfloat): Likewise.
9886 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9887 (movsf_softfloat): Likewise.
9888 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9889
9890 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9891 wx and wz constraints.
9892
9893 * config/rs6000/constraints.md (wg constraint): New constraint to
9894 return FLOAT_REGS if -mmfpgpr (power6x) was used.
9895
9896 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9897 constraint.
9898
9899 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9900 -mdebug=reg, print wg, wl, wx, and wz constraints.
9901 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9902 Initialize the reload functions for 64-bit binary/decimal floating
9903 point types.
9904 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9905 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9906 create the buffer on the stack to overcome not having a 32-bit
9907 load and store.
9908 (rs6000_emit_move): Likewise.
9909 (rs6000_secondary_memory_needed_rtx): Likewise.
9910 (rs6000_alloc_sdmode_stack_slot): Likewise.
9911 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9912 via xxlxor, just like DFmode 0.0.
9913
c6d5ff83
MM
9914 * config/rs6000/dfp.md (movdd): Delete, combine with binary
9915 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9916 with other moves by using conditional constraits (wg). Use LFIWZX
9917 and STFIWX for loading SDmode on power7.
9918 (movdd splitters): Likewise.
9919 (movdd_hardfloat32): Likewise.
9920 (movdd_softfloat32): Likewise.
9921 (movdd_hardfloat64_mfpgpr): Likewise.
9922 (movdd_hardfloat64): Likewise.
9923 (movdd_softfloat64): Likewise.
9924
9925 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9926 64-bit binary and decimal floating point moves.
9927 (FMOVE64X): Likewise.
9928 (movdf): Combine 64-bit binary and decimal floating point moves.
9929 Combine power6x (mfpgpr) moves with other moves by using
9930 conditional constraits (wg).
9931 (mov<mode> for DFmode/DDmode): Likewise.
9932 (DFmode/DDmode splitters): Likewise.
9933 (movdf_hardfloat32): Likewise.
9934 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9935 (movdf_softfloat32): Likewise.
9936 (movdf_hardfloat64_mfpgpr): Likewise.
9937 (movdf_hardfloat64): Likewise.
9938 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9939 (movdf_softfloat64): Likewise.
9940 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9941 (reload_<mode>_load): Move to later in the file so they aren't in
9942 the middle of the floating point move insns.
9943 (reload_<mode>_store): Likewise.
9944
9945 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9946 constraint.
9947
9948 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9949 constraint if -mdebug=reg.
bd059b26
UB
9950 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9951 Enable using dd reload support if needed.
c6d5ff83
MM
9952
9953 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9954 binary and decimal floating point moves in rs6000.md.
9955 (movtd_internal): Likewise.
9956
9957 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9958 decimal floating point moves.
9959 (movtf): Likewise.
9960 (movtf_internal): Likewise.
9961 (mov<mode>_internal, TDmode/TFmode): Likewise.
9962 (movtf_softfloat): Likewise.
9963 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9964
9965 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9966 movdi_internal64, using wg constraint for move direct operations.
9967 (movdi_internal64): Likewise.
9968
9969 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9970 MODES_TIEABLE_P for selected modes. Print the numerical value of
9971 the various virtual registers. Use GPR/FPR first/last values,
9972 instead of hard coding the register numbers. Print which modes
9973 have reload functions registered.
bd059b26
UB
9974 (rs6000_option_override_internal): If -mdebug=reg, trace the options
9975 settings before/after setting cpu, target and subtarget settings.
9976 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9977 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
9978 (rs6000_secondary_reload_fail): Likewise.
9979 (rs6000_secondary_reload_inner): Likewise.
9980
9981 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9982 macros for first/last GPR and FPR registers.
9983 (LAST_GPR_REGNO): Likewise.
9984 (FIRST_FPR_REGNO): Likewise.
9985 (LAST_FPR_REGNO): Likewise.
9986
9987 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9988 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9989 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9990 (vcond<mode><mode>): Likewise.
9991 (vcondu<mode><mode>): Likewise.
9992 (vector_gtu<mode>): Likewise.
9993 (vector_gte<mode>): Likewise.
9994 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 9995 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
9996 (ior<mode>3): Likewise.
9997 (and<mode>3): Likewise.
9998 (one_cmpl<mode>2): Likewise.
9999 (nor<mode>3): Likewise.
10000 (andc<mode>3): Likewise.
10001
10002 * config/rs6000/constraints.md (wt constraint): New constraint
10003 that returns VSX_REGS if TImode is allowed in VSX registers.
10004
10005 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
10006 constant under VSX.
10007
10008 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
10009 similar to TImode, but it is restricted to being in the GPRs.
10010
10011 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
10012 TImode to occupy a single VSX register.
10013
10014 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
10015 -mvsx-timode for power7/power8.
10016 (power7 cpu): Likewise.
10017 (power8 cpu): Likewise.
10018
10019 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
10020 sure that TFmode/TDmode take up two registers if they are ever
10021 allowed in the upper VSX registers.
10022 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
10023 registers.
10024 (rs6000_init_hard_regno_mode_ok): Likewise.
10025 (rs6000_debug_reg_global): Add debugging for PTImode and wt
10026 constraint. Print if LRA is turned on.
10027 (rs6000_option_override_internal): Give an error if -mvsx-timode
10028 and VSX is not enabled.
10029 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
10030 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
10031 to reg+offset addressing. Use PTImode when checking offset
10032 addresses for validity.
10033 (reg_offset_addressing_ok_p): Likewise.
10034 (rs6000_legitimate_offset_address_p): Likewise.
10035 (rs6000_legitimize_address): Likewise.
10036 (rs6000_legitimize_reload_address): Likewise.
10037 (rs6000_legitimate_address_p): Likewise.
10038 (rs6000_eliminate_indexed_memrefs): Likewise.
10039 (rs6000_emit_move): Likewise.
10040 (rs6000_secondary_reload): Likewise.
10041 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
10042 reloads to fpr registers to continue to use reg+offset addressing,
10043 but 64-bit reloads to altivec registers need reg+reg addressing.
10044 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
10045 it. Treat LO_SUM like a PLUS operation.
10046 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 10047 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
10048 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
10049 registers to share a register with a smaller sized type, since VSX
10050 puts scalars in the upper 64-bits.
10051 (print_operand): Add support for PTImode.
10052 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
10053 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
10054 registers, but don't have arithmetic support.
10055 (rs6000_memory_move_cost): Add test for VSX.
10056 (rs6000_opt_masks): Add -mvsx-timode.
10057
10058 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
10059 for TImode.
10060 (VSs): Likewise.
10061 (VSr): Use wt constraint for TImode.
10062 (VSv): Drop TImode support.
10063 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
10064 (vsx_movti_64bit): Likewise.
10065 (vsx_movti_32bit): Likewise.
10066 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
10067 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
10068 one '?' on the appropriate output constraint. Do not allow TImode
10069 logical operations on 32-bit systems.
10070 (vsx_ior<mode>3): Likewise.
10071 (vsx_xor<mode>3): Likewise.
10072 (vsx_one_cmpl<mode>2): Likewise.
10073 (vsx_nor<mode>3): Likewise.
10074 (vsx_andc<mode>3): Likewise.
10075 (vsx_concat_<mode>): Likewise.
10076 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
10077
10078 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
10079 OPTION_MASK_VSX_TIMODE.
10080 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
10081 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
10082
10083 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
10084 (TI2 iterator): New iterator for TImode, PTImode.
10085 (wd mode attribute): Add values for vector types.
bd059b26
UB
10086 (movti_string): Replace TI move operations with operations for TImode
10087 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
10088 (mov<mode>_string, TImode/PTImode): Likewise.
10089 (movti_ppc64): Likewise.
10090 (mov<mode>_ppc64, TImode/PTImode): Likewise.
10091 (TI mode splitters): Likewise.
10092
10093 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
10094 constraint.
10095
1fc5eced
MG
100962013-03-20 Marc Glisse <marc.glisse@inria.fr>
10097
10098 PR tree-optimization/56355
10099 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
10100 Also handle integers with undefined overflow.
10101
22c4c869
CM
101022013-03-20 Catherine Moore <clm@codesourcery.com>
10103 Maciej W. Rozycki <macro@codesourcery.com>
10104 Tom de Vries <tom@codesourcery.com>
10105 Nathan Sidwell <nathan@codesourcery.com>
10106 Iain Sandoe <iain@codesourcery.com>
10107 Nathan Froyd <froydnj@codesourcery.com>
10108 Chao-ying Fu <fu@mips.com>
10109
10110 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 10111 Document new function attributes.
22c4c869
CM
10112 * doc/invoke.texi (minterlink-compressed, mmicromips,
10113 m14k, m14ke, m14kec): Document new options.
10114 (minterlink-mips16): Update documentation.
10115 * doc/md.texi (ZC, ZD): Document new constraints.
10116 * configure.ac (gcc_cv_as_micromips): Check if linker
10117 supports the .set micromips directive.
10118 * configure: Regenerate.
10119 * config.in: Regenerate.
10120 * config/mips/mips-tables.opt: Regenerate.
10121 * config/mips/micromips.md: New file.
10122 * constraints.md (ZC, ZD): New constraints.
10123 * config/mips/predicates.md (movep_src_register): New predicate.
10124 (movep_src_operand): New predicate.
10125 (non_volatile_mem_operand): New predicate.
10126 * config/mips/mips.md (multimem): New type.
10127 (length): Differentiate between 17-bit and 18-bit branch offsets.
10128 (MOVEP1, MOVEP2): New mode iterator.
33159866 10129 (mov_<load>l): Use ZC constraint.
22c4c869
CM
10130 (mov_<load>r): Likewise.
10131 (mov_<store>l): Likewise.
10132 (mov_<store>r): Likewise.
10133 (*branch_equality<mode>_inverted): Add microMIPS support.
10134 (*branch_equality<mode>): Likewise.
10135 (*jump_absolute): Likewise.
10136 (indirect_jump_<mode>): Likewise.
10137 (tablejump_<mode>): Likewise.
10138 (<optab>_internal): Likewise.
10139 (sibcall_internal): Likewise.
10140 (sibcall_value_internal): Likewise.
10141 (prefetch): Use constraint ZD.
10142 * config/mips/mips.opt (minterlink-compressed): New option.
10143 (minterlink-mips16): Now an alias for minterlink-compressed.
10144 (mmicromips): New option.
10145 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10146 (compare_and_swap_12): Likewise.
10147 (sync_add<mode>): Likewise.
10148 (sync_<optab>_12): Likewise.
10149 (sync_old_<optab>_12): Likewise.
10150 (sync_new_<optab>_12): Likewise.
10151 (sync_nand_12): Likewise.
10152 (sync_old_nand_12): Likewise.
10153 (sync_new_nand_12): Likewise.
10154 (sync_sub<mode>): Likewise.
10155 (sync_old_add<mode>): Likewise.
10156 (sync_old_sub<mode>): Likewise.
10157 (sync_new_add<mode>): Likewise.
10158 (sync_new_sub<mode>): Likewise.
10159 (sync_<optab><mode>): Likewise.
10160 (sync_old_<optab><mode>): Likewise.
10161 (sync_new_<optab><mode>): Likewise.
10162 (sync_nand<mode>): Likewise.
10163 (sync_old_nand<mode>): Likewise.
10164 (sync_new_nand<mode>): Likewise.
10165 (sync_lock_test_and_set<mode>): Likewise.
10166 (test_and_set_12): Likewise.
10167 (atomic_compare_and_swap<mode>): Likewise.
10168 (atomic_exchange<mode>_llsc): Likewise.
10169 (atomic_fetch_add<mode>_llsc): Likewise.
10170 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10171 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10172 (umips_save_restore_pattern_p): Likewise.
10173 (umips_load_store_pair_p): Likewise.
10174 (umips_output_load_store_pair): Likewise.
10175 (umips_movep_target_p): Likewise.
10176 (umips_12bit_offset_address_p): Likewise.
10177 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10178 (mips_base_mips16): Rename this...
10179 (mips_base_compression_flags): ...to this. Update all uses.
10180 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10181 (mips_mips16_decl_p): Delete.
10182 (mips_nomips16_decl_p): Delete.
33159866 10183 (mips_get_compress_on_flags): New function.
22c4c869
CM
10184 (mips_get_compress_off_flags): New function.
10185 (mips_get_compress_mode): New function.
10186 (mips_get_compress_on_name): New function.
10187 (mips_get_compress_off_name): New function.
10188 (mips_insert_attributes): Support multiple compression types.
10189 (mips_merge_decl_attributes): Likewise.
10190 (umips_12bit_offset_address_p): New function.
10191 (mips_start_function_definition): Emit .set micromips directive.
10192 (mips_call_may_need_jalx_p): New function.
10193 (mips_function_ok_for_sibcall): Add microMIPS support.
10194 (mips_print_operand_punctuation): Support short delay slots and
10195 compact jumps.
10196 (umips_swm_mask, umips_swm_encoding): New.
10197 (umips_build_save_restore): New function.
10198 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10199 (was_mips16_p): Remove.
10200 (old_compression_mode): New.
10201 (mips_set_compression_mode): New function.
10202 (mips_set_current_function): Add microMIPS support.
10203 (mips_option_override): Likewise.
10204 (umips_save_restore_pattern_p): New function.
10205 (umips_output_save_restore): New function.
10206 (umips_load_store_pair_p_1): New function.
10207 (umips_load_store_pair_p): New function.
10208 (umips_output_load_store_pair_1): New function.
10209 (umips_output_load_store_pair): New function.
10210 (umips_movep_target_p) New function.
10211 (mips_prepare_pch_save): Add microMIPS support.
10212 * config/mips/mips.h (TARGET_COMPRESSION): New.
10213 (TARGET_CPU_CPP_BUILTINS): Update macro
10214 to use new compression flags and to support microMIPS.
10215 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10216 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10217 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10218 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10219 (ASM_SPEC): Support mmicromips and mno-micromips.
10220 (M16STORE_REG_P): New macro.
10221 (MIPS_CALL): Support TARGET_MICROMIPS.
10222 (MICROMIPS_J): New macro.
10223 (mips_base_mips16): Rename this...
10224 (mips_base_compression_flags): ...to this.
10225 (UMIPS_12BIT_OFFSET_P): New macro.
10226 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10227 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
102282013-03-20 Richard Biener <rguenther@suse.de>
10229
10230 PR tree-optimization/56661
10231 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
10232 the result does not have to be distinct.
10233
54714c68
RB
102342013-03-20 Richard Biener <rguenther@suse.de>
10235
10236 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
10237 remap_gimple_op_r.
10238
cca1130d
BS
102392013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10240 Steven Bosscher <steven@gcc.gnu.org>
10241
10242 PR rtl-optimization/56605
10243 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
10244
2a930377
UB
102452013-03-20 Uros Bizjak <ubizjak@gmail.com>
10246
10247 PR bootstrap/56656
10248 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
10249 that require movd instead of movq.
10250
d6d305fe
RB
102512013-03-20 Richard Biener <rguenther@suse.de>
10252
10253 * tree-ssa-structalias.c (struct variable_info): Add pointer
10254 to the first field of an aggregate with sub-vars. Make
10255 this and the pointer to the next subfield its ID.
10256 (vi_next): New function.
10257 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
10258 storedanything_id, integer_id): Increment by one.
10259 (new_var_info, get_call_vi, lookup_call_clobber_vi,
10260 get_call_clobber_vi): Adjust.
10261 (solution_set_expand): Simplify and speedup.
10262 (solution_set_add): Inline into ...
10263 (set_union_with_increment): ... this. Adjust accordingly.
10264 (do_sd_constraint): Likewise.
10265 (do_ds_constraint): Likewise.
10266 (do_complex_constraint): Simplify.
10267 (build_pred_graph): Adjust.
10268 (solve_graph): Likewise. Simplify and speedup.
10269 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10270 get_constraint_for_component_ref, get_constraint_for_1,
10271 first_vi_for_offset, first_or_preceding_vi_for_offset,
10272 create_function_info_for, create_variable_info_for_1,
10273 create_variable_info_for, intra_create_variable_infos): Adjust.
10274 (init_base_vars): Push NULL for ID zero.
10275 (compute_points_to_sets): Adjust.
10276
a271b42d
RB
102772013-03-20 Richard Biener <rguenther@suse.de>
10278
10279 * cfgloop.c (verify_loop_structure): Streamline and avoid
10280 ICEing on corrupt loop tree.
10281 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10282 loop tree.
10283
ebd65954
RB
102842013-03-20 Richard Biener <rguenther@suse.de>
10285
10286 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10287 check whether an SSA update is needed.
10288
4547b7ee
RS
102892013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
10290
10291 * config/mips/constraints.md (T): Rename to...
10292 (Yf): ...this.
10293 (U): Rename to...
10294 (Yd): ...this.
10295 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10296 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10297
0b8cdc58
IB
102982013-03-19 Ian Bolton <ian.bolton@arm.com>
10299
10300 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10301 (*subsi3_carryin_uxtw): Likewise.
10302
5977a10d
IB
103032013-03-19 Ian Bolton <ian.bolton@arm.com>
10304
10305 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
10306 (*rorsi3_insn_uxtw): Likewise.
10307
bd83ff2c
IB
103082013-03-19 Ian Bolton <ian.bolton@arm.com>
10309
10310 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10311 (*extrsi5_insn_uxtw): Likewise.
10312
ba65123c
RB
103132013-03-19 Richard Biener <rguenther@suse.de>
10314
10315 PR tree-optimization/56273
10316 * passes.c (init_optimization_passes): Move second VRP after DOM.
10317
2eac0476
UB
103182013-03-19 Uros Bizjak <ubizjak@gmail.com>
10319
10320 * config/i386/i386.md (*movti_internal): Merge from
10321 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
10322 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
10323 nox64 isa attributes.
10324
6e55eda7
RB
103252013-03-18 Richard Biener <rguenther@suse.de>
10326
10327 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10328 (unite): Likewise.
10329 (merge_node_constraints): Likewise.
10330 (build_succ_graph): Likewise.
10331 (valid_graph_edge): Inline into single caller.
10332 (unify_nodes): Likewise. Use bitmap_set_bit return value
10333 and cache varinfo.
10334 (scc_visit): Fix formatting and variable use.
10335 (do_sd_constraint): Use gcc_checking_assert.
10336 (do_ds_constraint): Likewise.
10337 (do_complex_constraint): Likewise.
10338 (condense_visit): Likewise. Cleanup.
10339 (dump_pred_graph): New function.
10340 (perform_var_substitution): Dump the pred-graph before
10341 variable substitution.
10342 (find_equivalent_node): Use gcc_checking_assert.
10343 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10344
4bdd44c4
RB
103452013-03-18 Richard Biener <rguenther@suse.de>
10346
10347 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10348 Remove cond_expr_stmt_list argument and do not gimplify the
10349 built expression.
10350 (vect_loop_versioning): Adjust.
10351 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10352 Cleanup to use less temporaries.
10353 (vect_create_data_ref_ptr): Cleanup.
10354
38c56a5b
JJ
103552013-03-18 Jakub Jelinek <jakub@redhat.com>
10356
10357 PR tree-optimization/56635
10358 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10359 require types_compatible_p types.
10360
20b2e6a0
NC
103612013-03-18 Nick Clifton <nickc@redhat.com>
10362
a6178a25
NC
10363 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10364 spurious backslash.
10365
20b2e6a0
NC
10366 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10367 Add missing line to comment describing function.
10368
92608d0e
RB
103692013-03-18 Richard Biener <rguenther@suse.de>
10370
10371 PR tree-optimization/56210
10372 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10373 Handle string / character search functions.
10374 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10375
31348d52
RB
103762013-03-18 Richard Biener <rguenther@suse.de>
10377
10378 PR middle-end/56483
10379 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10380 and implement properly.
10381 * gimple.h (gimple_cond_single_var_p): Remove.
10382
fcac74a1
RB
103832013-03-18 Richard Biener <rguenther@suse.de>
10384
10385 * tree-data-ref.h (find_data_references_in_loop): Declare.
10386 * tree-data-ref.c (get_references_in_stmt): Use a stack
10387 vector pre-allocated in the callers.
10388 (find_data_references_in_stmt): Adjust.
10389 (graphite_find_data_references_in_stmt): Likewise.
10390 (create_rdg_vertices): Likewise.
10391 (find_data_references_in_loop): Export.
10392 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10393 Compute dependences here...
10394 (vect_analyze_data_refs): ...not here. When we encounter
10395 a non-vectorizable data reference in basic-block vectorization
10396 truncate the data reference vector. Do not bother to
10397 fixup data-dependence information for gather loads.
10398 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10399 of data references, as reported.
10400
0d5a1b56
RB
104012013-03-18 Richard Biener <rguenther@suse.de>
10402
10403 PR tree-optimization/3713
10404 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
10405 has_constants and expr.
10406 (stmt_has_constants): Properly valueize SSA names when deciding
10407 whether the stmt has constants.
10408
789c34e3
RB
104092013-03-18 Richard Biener <rguenther@suse.de>
10410
10411 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10412 whole function when there is nothing to do.
10413 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10414 * tree-vectorizer.c (vectorize_loops): Update virtual and
10415 loop-closed SSA once.
10416 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10417
076b4605
RB
104182013-03-18 Richard Biener <rguenther@suse.de>
10419
10420 PR middle-end/56113
10421 * domwalk.c (bb_postorder): New global static.
10422 (cmp_bb_postorder): New function.
10423 (walk_dominator_tree): Replace scheme imposing an order for
10424 visiting dominator sons by one sorting them at the time they
10425 are pushed on the stack.
10426
bdb01696
RB
104272013-03-18 Richard Biener <rguenther@suse.de>
10428
10429 PR tree-optimization/39326
10430 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10431 (struct mem_ref): Replace mem member with ao_ref typed member.
10432 (MEM_ANALYZABLE): Adjust.
10433 (memref_eq): Likewise.
10434 (mem_ref_alloc): Likewise.
10435 (gather_mem_refs_stmt): Likewise.
10436 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10437 (execute_sm_if_changed_flag_set): Adjust.
10438 (execute_sm): Likewise.
10439 (ref_always_accessed_p): Likewise.
10440 (refs_independent_p): Likewise.
10441 (can_sm_ref_p): Likewise.
10442
12d2dc5e
JJ
104432013-03-18 Jakub Jelinek <jakub@redhat.com>
10444
10445 PR c/56566
10446 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
10447 return 1 even for !unsignedp.
10448
286fb677
UB
104492013-03-17 Uros Bizjak <ubizjak@gmail.com>
10450
10451 * config/i386/i386.md (isa): Add x64 and nox64.
10452 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
10453 (*pushtf): Enable *roF alternative for x64 isa only.
10454 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
10455 mode attribute of integer alternatives to DImode for TARGET_64BIT.
10456 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
10457 (*movtf_internal): Merge from *movtf_internal_rex64 and
10458 *movtf_internal_sse. Use x64 and nox64 isa attributes.
10459 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
10460 nox64 isa attributes.
10461 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
10462 nox64 isa attributes.
10463 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10464
88b97037
UB
104652013-03-17 Uros Bizjak <ubizjak@gmail.com>
10466
10467 * config/alpha/alpha.c (TARGET_LRA_P): New define.
10468
9f4f1735
JJ
104692013-03-17 Jakub Jelinek <jakub@redhat.com>
10470
10471 PR target/56640
10472 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10473 class names. Remove trailing comma after "ALL_REGS".
10474
48f4a6fa
JH
104752013-03-16 Jan Hubicka <jh@suse.cz>
10476
10477 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
10478 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
10479 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
10480 of cgraph_get_create_node.
10481 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10482
98e81123
JM
104832013-03-16 Jason Merrill <jason@redhat.com>
10484
10485 PR debug/49090
10486 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
10487 with DW_AT_default_value.
10488
8a298c04
JJ
104892013-03-16 Jakub Jelinek <jakub@redhat.com>
10490
10491 * BASE-VER: Set to 4.9.0.
10492
4323afa0
AK
104932013-03-14 Andi Kleen <ak@linux.intel.com>
10494
10495 PR target/56619
10496 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
10497 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
10498 Document _x* TSX intrinsics.
10499
b3c0d469
JJ
105002013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
10501 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
10502
10503 * configure.ac: Add MicroBlaze TLS support detection.
10504 * configure: Regenerate.
88b97037
UB
10505 * config/microblaze/microblaze-protos.h
10506 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
10507 symbol_mentioned_p, label_mentioned_p): Add prototypes.
10508 * config/microblaze/microblaze.c (microblaze_address_type): Add
10509 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
10510 (microblaze_address_info): Add tls_reloc.
10511 (TARGET_HAVE_TLS): Define.
10512 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
10513 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
10514 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
10515 load_tls_operand, microblaze_call_tls_get_addr,
10516 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
10517 (microblaze_classify_unspec): Handle UNSPEC_TLS.
10518 (get_base_reg): Use microblaze_tls_symbol_p.
10519 (microblaze_classify_address): Handle TLS.
88b97037
UB
10520 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
10521 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
10522 (microblaze_legitimize_address): Handle TLS.
10523 (microblaze_address_insns): Handle ADDRESS_TLS.
10524 (pic_address_needs_scratch): Handle TLS.
10525 (print_operand_address): Handle TLS.
10526 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
10527 (microblaze_expand_move): Handle TLS.
88b97037
UB
10528 (microblaze_legitimate_constant_p): Check
10529 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
10530 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10531 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
10532 (PIC_OFFSET_TABLE_REGNUM): Set.
10533 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
10534 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
10535 (addsi3, movsi_internal2, movdf_internal): Update constraints
10536 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
10537 (move_operand): Redefine as move_src_operand,
10538 check microblaze_tls_referenced_p.
8cc9a5a5 10539
d803a491
IB
105402013-03-14 Ian Bolton <ian.bolton@arm.com>
10541
10542 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
10543 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
10544
a8504f22
IB
105452013-03-14 Ian Bolton <ian.bolton@arm.com>
10546
10547 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
10548 CC mode for AND.
10549
df2dfaea
JJ
105502013-03-14 Jakub Jelinek <jakub@redhat.com>
10551
fbd28bc3
JJ
10552 PR tree-optimization/53265
10553 * common.opt (Waggressive-loop-optimizations): New option.
10554 * tree-ssa-loop-niter.c: Include tree-pass.h.
10555 (do_warn_aggressive_loop_optimizations): New function.
10556 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
10557 if number_of_latch_executions returned constant.
10558 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
10559 early. If number_of_latch_executions returned constant, set
10560 nb_iterations_upper_bound back to it.
10561 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
10562 field.
10563 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
10564 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
10565
df2dfaea
JJ
10566 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
10567 (MULTILIB_OSDIRNAMES): Set.
10568 * genmultilib: If defaultosdirname doesn't start with :: , set
10569 defaultosdirname2 instead, clear it and emit two . multilib_raw
10570 entries instead of just one.
10571
ee0d2b68
KK
105722013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
10573
10574 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10575 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
10576 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10577 (SUBTARGET_OVERRIDE_OPTIONS): New.
10578
decc676e
OE
105792013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
10580
10581 PR target/49880
10582 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
10583 (musermode): Convert to Var(TARGET_USERMODE).
10584 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
10585 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
10586 * config/sh/sh.c (sh_option_override): Use
10587 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
10588 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
10589 condition.
10590 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
10591 TARGET_SH4.
10592 (udivsi3_i4_single, divsi3_i4_single): Use
10593 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
10594
f4b719c7
DK
105952013-03-13 Dave Korn <dave.korn.cygwin@....>
10596
10597 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
10598 default setting.
10599
c40eced0
RB
106002013-03-13 Richard Biener <rguenther@suse.de>
10601
10602 PR tree-optimization/56608
10603 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
10604 calls when vectorizing basic-blocks.
10605
1bfa5973
JJ
106062013-03-13 Jakub Jelinek <jakub@redhat.com>
10607
10608 PR plugins/45078
10609 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
10610 tm_file.
10611
6fcf5434
JJ
106122013-03-12 Jakub Jelinek <jakub@redhat.com>
10613
10614 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
10615
4f38fa8c
JH
106162013-03-11 Jan Hubicka <jh@suse.cz>
10617
10618 PR lto/56557
10619 * lto-streamer-out.c (output_symbol_p): Skip references from
10620 constructors of external variables.
10621
c5c5ba89
JH
106222013-03-11 Jan Hubicka <jh@suse.cz>
10623
10624 PR middle-end/56571
10625 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
10626 from pseudos.
10627 * emit-rtl.c (verify_rtx_sharing): Likewise.
10628 (copy_insn_1): Likewise.
10629 * rtl.c (copy_rtx): Likewise.
10630
c2a939b1
GJL
106312013-03-11 Georg-Johann Lay <avr@gjlay.de>
10632
10633 PR target/56591
10634 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
10635 output_operand_lossage message.
88b97037 10636
3c3279fb
RE
106372013-03-11 Richard Earnshaw <rearnsha@arm.com>
10638
10639 PR target/56470
10640 * arm.c (shift_op): Validate RTL pattern on the fly.
10641 (arm_print_operand, case 'S'): Don't use shift_operator to validate
10642 the RTL.
10643
aef5ef9d
JDA
106442013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10645
10646 PR target/56347
10647 * config/pa/pa.md (call_value): Check for calls to powf and direct to
10648 new call patterns that clobber %fr12.
10649 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
10650 split and postreload patterns.
10651 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
10652 registers %fr12 and %fr12R as call used.
10653
456610d3
SB
106542013-03-09 Steven Bosscher <steven@gcc.gnu.org>
10655
10656 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
10657 (canon_address, record_store, replace_read, check_mem_read_rtx,
10658 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
10659 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
10660 rest_of_handle_dse): Likewise.
10661
4b1baac8
RS
106622013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
10663
10664 PR middle-end/56524
10665 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
10666 Add base_optabs.
10667 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
10668 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
10669 (save_optabs_if_changed): Replace with...
10670 (init_tree_optimization_optabs): ...this.
10671 * optabs.c (save_optabs_if_changed): Rename to...
10672 (init_tree_optimization_optabs): ...this. Take the optimization node
10673 as argument. Do nothing if the base optabs are already correct.
10674 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
10675 to recompute optabs.
10676 * function.h (function): Remove optabs field.
10677 * function.c (invoke_set_current_function_hook): Call
10678 init_tree_optimization_optabs. Use the result to initialize
10679 this_fn_optabs.
10680
b7a78683
AH
106812013-02-27 Aldy Hernandez <aldyh@redhat.com>
10682
10683 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
10684 if GTMA_HAS_NO_INSTRUMENTATION.
10685 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
10686 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
10687 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
10688 * gimple-pretty-print.c (dump_gimple_transaction): Handle
10689 GTMA_HAS_NO_INSTRUMENTATION.
10690
6384c29b
JJ
106912013-03-08 Jakub Jelinek <jakub@redhat.com>
10692
10693 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
10694 libasan_preinit.o.
10695
ecd4f20a
MP
106962013-03-08 Marek Polacek <polacek@redhat.com>
10697 Jakub Jelinek <jakub@redhat.com>
10698
10699 PR tree-optimization/56478
10700 * predict.c (is_comparison_with_loop_invariant_p): Change the
10701 type of loop_step to tree.
10702 (predict_loops): Adjust.
10703 (predict_iv_comparison): Perform the computations on double_ints.
10704
64366d35
RB
107052013-03-08 Richard Biener <rguenther@suse.de>
10706
10707 PR tree-optimization/56570
10708 * tree-cfg.c (verify_expr_location_1): Verify locations for
10709 DECL_DEBUG_EXPR.
10710 * tree-sra.c (create_access_replacement): Strip locations
10711 from DECL_DEBUG_EXPRs.
10712
a9d5a059
RB
107132013-03-08 Richard Biener <rguenther@suse.de>
10714
10715 * tree-inline.c (expand_call_inline): Do not associate
10716 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
10717 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
10718
b7aa4e9a
RB
107192013-03-08 Richard Biener <rguenther@suse.de>
10720
10721 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
10722 or block changes with -Og. Fix for location / block encoding
10723 changes and PHI arguments with locations.
10724
c4c2f9fa
SB
107252013-03-07 Steven Bosscher <steven@gcc.gnu.org>
10726
10727 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10728 for all counters.
10729 (struct output_info): Likewise.
10730 (register_overhead): Remove bad gcc_assert.
10731 (bitmap_find_bit): If there is only a single bitmap element, do not
10732 count a miss as a search.
10733 (print_statistics): Update for counter type changes.
10734 (dump_bitmap_statistics): Likewise. Print headers such that they
10735 are properly lined up with the printed counters.
10736
5bf6606a
JJ
107372013-03-07 Jakub Jelinek <jakub@redhat.com>
10738
10739 PR tree-optimization/56559
10740 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10741 check that it has only a single use.
10742
2c653d46
RB
107432013-03-07 Richard Biener <rguenther@suse.de>
10744
10745 * doc/invoke.texi (fwhole-program): Discourage use in combination
10746 with -flto.
10747
a72d8780
JJ
107482013-03-06 Jakub Jelinek <jakub@redhat.com>
10749
01a454df
JJ
10750 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10751
c1781047
JJ
10752 PR tree-optimization/56539
10753 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10754 instead of GSI_CONTINUE_LINKING as last argument to
10755 force_gimple_operand_gsi. Adjust function comment.
10756
9772c47a
JJ
10757 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10758 aarch64-cores.def.
10759
a72d8780
JJ
10760 PR middle-end/56548
10761 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10762 promoted mode, convert the result back to the original mode.
10763
fa5556de
RB
107642013-03-06 Richard Biener <rguenther@suse.de>
10765
10766 PR middle-end/56294
10767 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10768 (insert_updated_phi_nodes_compare_uids): New function.
10769 (update_ssa): Sort symbols_to_rename after UID before
10770 traversing it to insert PHI nodes.
10771
010403d1
RB
107722013-03-06 Richard Biener <rguenther@suse.de>
10773
10774 PR middle-end/50494
10775 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10776 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10777
10778 Revert
10779 2013-02-13 Richard Biener <rguenther@suse.de>
10780
10781 PR lto/50494
10782 * varasm.c (output_constant_def_1): Get the decl representing
10783 the constant as argument.
10784 (output_constant_def): Wrap output_constant_def_1.
10785 (make_decl_rtl): Use output_constant_def_1 with the decl
10786 representing the constant.
10787 (build_constant_desc): Optionally re-use a decl already
10788 representing the constant.
10789 (tree_output_constant_def): Adjust.
10790
3c27ce4c
JY
107912013-03-06 Joey Ye <joey.ye@arm.com>
10792
10793 PR lto/50293
10794 * gcc.c (convert_white_space): New function.
10795 (main): Handles white space in function name.
10796
8f6d1c86
OE
107972013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
10798
10799 PR target/56529
10800 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10801 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
10802 to SH_DIV_CALL_TABLE for TARGET_SH2.
10803 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10804 list.
10805 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10806 call-table options.
10807
798a209f
SA
108082013-03-05 Sterling Augustine <saugustine@google.com>
10809 Cary Coutant <ccoutant@google.com>
10810
10811 PR debug/55364
10812 * dwarf2out.c (resolve_addr): Don't call
10813 remove_loc_list_addr_table_entries a second time for the same
10814 expression.
10815
6cfa417f 108162013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 10817
6cfa417f
JJ
10818 PR debug/56510
10819 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10820 (avoid_complex_debug_insns): New function.
10821 (expand_debug_locations): Call it.
10822
10823 PR rtl-optimization/56484
10824 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10825 lifetimes of hard registers on small register class machines.
10826
108272013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10828
10829 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 10830 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 10831 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
10832 fast_interrupt.
10833 (microblaze_fast_interrupt_function_p): New function.
10834 (microblaze_is_interrupt_handler): Rename to
10835 microblaze_is_interrupt_variant and add fast_interrupt check.
10836 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10837 (save_restore_insns): Likewise.
10838 (compute_frame_size): Likewise.
10839 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10840 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
10841 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10842 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
10843 microblaze_is_interrupt_variant.
10844
731aefac
KT
108452013-03-05 Kai Tietz <ktietz@redhat.com>
10846
10847 * sdbout.c (sdbout_one_type): Switch to current function's section
10848 supporting cold/hot.
10849
a72d8780 108502013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
10851
10852 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10853 -mxl-reorder.
10854
334e71e8
JJ
108552013-03-05 Jakub Jelinek <jakub@redhat.com>
10856
0b50e654
JJ
10857 PR middle-end/56461
10858 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10859 if VALGRIND_GET_VBITS is defined, temporarily make object
10860 memory all defined, and restore previous valgrind addressability
10861 and definability afterwards. Free this_object at the end.
10862
4ccf8f43
JJ
10863 PR middle-end/56461
10864 * lra.c (lra): Call lra_clear_live_ranges if live_p,
10865 right before calling lra_create_live_ranges, also call it
10866 when clearing live_p. Only call lra_clear_live_ranges
10867 at the end if live_p.
10868
334e71e8
JJ
10869 PR middle-end/56461
10870 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10871
9ca966ca
RB
108722013-03-05 Richard Biener <rguenther@suse.de>
10873
10874 PR tree-optimization/56521
10875 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10876 value-id.
10877
d273b176
SB
108782013-03-05 Steven Bosscher <steven@gcc.gnu.org>
10879
10880 PR c++/55135
10881 * except.h (remove_unreachable_eh_regions): New prototype.
10882 * except.c (remove_eh_handler_splicer): New function, split out
10883 of remove_eh_handler.
10884 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
10885 warning about running it on many EH regions one at a time.
10886 (remove_unreachable_eh_regions_worker): New function, walk the
10887 EH tree in depth-first order and remove non-marked regions.
10888 (remove_unreachable_eh_regions): New function.
10889 * tree-eh.c (mark_reachable_handlers): New function, split out
10890 from remove_unreachable_handlers.
10891 (remove_unreachable_handlers): Use mark_reachable_handlers and
10892 remove_unreachable_eh_regions.
10893 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10894 and remove_unreachable_eh_regions.
10895
5e7f1aef
RB
108962013-03-05 Richard Biener <rguenther@suse.de>
10897
10898 PR middle-end/56525
10899 * loop-init.c (fix_loop_structure): Remove loops in two stages,
10900 not freeing them until the end.
10901
f276b762
AK
109022013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10903
10904 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10905
12a43ab8
RB
109062013-03-05 Richard Biener <rguenther@suse.de>
10907
10908 PR tree-optimization/56270
10909 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10910 of loads after scheduling an SLP instance.
10911
93675444
JJ
109122013-03-05 Jakub Jelinek <jakub@redhat.com>
10913
db4138e3
JJ
10914 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10915 tic6x.exp.
10916 (check_gcc_parallelize): Run guality.exp as a separate job from
10917 vect.exp with unsorted.exp and $(dg_target_exps) separately from
10918 struct-layout-1.exp with stackalign.exp.
10919
dd3d1ec0
JJ
10920 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10921
b8d381a3
JJ
10922 PR middle-end/56461
10923 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10924 load_index sbitmap even if some bit in it isn't set.
10925
b4f9786b
JJ
10926 PR middle-end/56461
10927 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10928 (discover_iteration_bound_by_body_walk): Change queues to
10929 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
10930 spelling in comment. Call safe_push on queues[bound_index] directly.
10931 Release queues[queue_index] in every iteration unconditionally.
10932 Release bounds vector.
10933
93675444
JJ
10934 PR middle-end/56461
10935 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10936 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10937 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10938 inner_phis vector.
10939
3e492e9c
RB
109402013-03-05 Richard Biener <rguenther@suse.de>
10941
10942 PR lto/56515
10943 * tree-inline.c (remap_blocks_to_null): New function.
10944 (expand_call_inline): When expanding a call stmt without
10945 an associated block inline remap all callee blocks to NULL.
10946
a5d1569a
JJ
109472013-03-05 Jakub Jelinek <jakub@redhat.com>
10948
86efb5cd
JJ
10949 PR rtl-optimization/56494
10950 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10951 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10952 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10953
85f5dbea
JJ
10954 PR middle-end/56461
10955 * sel-sched-ir.c (free_sched_pools): Release
10956 succs_info_pool.stack[succs_info_pool.max_top] vectors too
10957 if succs_info_pool.max_top isn't -1.
10958
a5d1569a
JJ
10959 PR bootstrap/56509
10960 * opts.c (opts_obstack, opts_concat): Moved to...
10961 * opts-common.c (opts_obstack, opts_concat): ... here.
10962
4432aa6c
JJ
109632013-03-04 Jakub Jelinek <jakub@redhat.com>
10964
10965 PR middle-end/56461
10966 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10967
f3a1fb91
MJ
109682013-03-04 Martin Jambor <mjambor@suse.cz>
10969
10970 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10971 all appropriate places.
10972
22110e6c
EB
109732013-01-04 Eric Botcazou <ebotcazou@adacore.com>
10974
10975 PR tree-optimization/56424
10976 * ipa-split.c (split_function): Do not set the RSO flag if result is
10977 not by reference and its type is a register type.
10978
a72d8780 109792013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 10980
88b97037 10981 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 10982 (microblaze_legitimate_pic_operand): Likewise
88b97037 10983 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
10984 new function microblaze_legitimate_pic_operand
10985 * config/microblaze/microblaze-protos.h
10986 (microblaze_legitimate_pic_operand): Declare.
10987
a72d8780 109882013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 10989
a72d8780 10990 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 10991 New predicate for supported rtx code types.
a72d8780 10992 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
10993 call_insn_simple_operand predicate.
10994
541d9ac8
JJ
109952013-03-04 Jakub Jelinek <jakub@redhat.com>
10996
5eb010bc
JJ
10997 PR middle-end/56461
10998 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10999 partitions.ordered_remove.
11000
30862efc
JJ
11001 PR middle-end/56461
11002 * tree-vect-stmts.c (vectorizable_conversion): Don't call
11003 vec_oprnds0.create (1) for modifier == NONE.
11004
8930f723
JJ
11005 PR middle-end/56461
11006 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
11007 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
11008 vec_oprnds1 right before pushing anything to it for
11009 scalar_shift_arg.
11010
541d9ac8
JJ
11011 PR middle-end/56461
11012 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
11013 set nbbs to 0 instead of having separate code path.
11014 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
11015 instead of false as last argument if returning NULL.
11016
7aa7f2e3
SL
110172013-03-03 Sandra Loosemore <sandra@codesourcery.com>
11018
11019 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
11020 the attribute is now called "target" instead of "option".
11021 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
11022 * doc/tm.texi.in (Target Attributes): Likewise document the correct
11023 attribute/pragma name for TARGET_OPTION_VALID_P and
11024 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
11025 * doc/tm.texi: Regenerated.
11026
8930f723 110272013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 11028
8930f723 11029 * config/microblaze/microblaze.c:
cb8a1637 11030 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
11031 * config/microblaze/microblaze.h: Add -mxl-reorder to
11032 DRIVER_SELF_SPECS.
11033 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
11034 instructions emitted if TARGET_REORDER.
88b97037
UB
11035 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
11036 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 11037 separately.
cb8a1637 11038
4dc1d68c
XDL
110392013-03-01 Xinliang David Li <davidxl@google.com>
11040
11041 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
11042 walk length.
11043
689eaba3
JJ
110442013-03-01 Jakub Jelinek <jakub@redhat.com>
11045
9d676bf6
JJ
11046 PR middle-end/56461
11047 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
11048 vector even when returning true. Fix up function comment formatting.
11049
caff7edf
JJ
11050 PR middle-end/56461
11051 * ira-build.c (ira_loop_nodes_count): New variable.
11052 (create_loop_tree_nodes): Initialize it.
11053 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
11054
b6b9227d
JJ
11055 PR middle-end/56461
11056 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
11057 method on dr_chain and result_chain.
11058 * tree-vect-stmts.c (vectorizable_store): Only call
11059 result_chain.create if j == 0.
11060
689eaba3
JJ
11061 PR middle-end/56461
11062 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
11063 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
11064 before overwriting it.
11065
40bf31ed
TB
110662013-03-01 Tobias Burnus <burnus@net-b.de>
11067
11068 * doc/extended.texi (C Extensions): Change order in @menu
11069 to match @node.
11070 (Other MIPS Built-in Functions): Move last MIPS entry before
11071 "picoChip Built-in Functions".
11072 (SH Built-in Functions): Move after RX Built-in Functions.
11073 * doc/gcc.texi (Introduction): Change order in @menu
11074 to match @node.
11075 * doc/md.texi (Constraints): Ditto.
11076 * gty.texi (Type Information): Ditto.
11077 (User-provided marking routines for template types): Make
11078 subsection.
11079 * doc/invoke.texi (AArch64 Options): Move before
11080 "Adapteva Epiphany Options".
11081
e664c61c
KS
110822013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
11083 Jakub Jelinek <jakub@redhat.com>
11084
11085 PR sanitizer/56454
11086 * asan.c (gate_asan): Lookup no_sanitize_address instead of
11087 no_address_safety_analysis attribute.
11088 * doc/extend.texi (no_address_safety_attribute): Rename to
11089 no_sanitize_address attribute, mention no_address_safety_analysis
11090 attribute as deprecated alias.
11091
37b5ec8f
JJ
110922013-02-28 Jakub Jelinek <jakub@redhat.com>
11093
11094 PR middle-end/56461
11095 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
11096 type to vec<vec<tree> > *.
11097 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
11098 to be vec<tree> instead of vec<tree> *, set vec_defs
11099 to vNULL and call vec_defs.create (number_of_vects), adjust other
11100 uses of vec_defs.
11101 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
11102 vectorizable_condition): Adjust vect_get_slp_defs callers.
11103
ba96cdfb
JG
111042013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11105
11106 * config/aarch64/aarch64.c
11107 (aarch64_float_const_representable): Remove unused variable.
11108
6f549691
JG
111092013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11110
11111 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
11112
af55e82d
JG
111132013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11114
11115 * config/aarch64/aarch64-builtins.c
11116 (aarch64_init_simd_builtins): Make static.
11117
1df3f464
JG
111182013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
11119
11120 * config/aarch64/aarch64.c
11121 (aarch64_simd_make_constant): Make static.
11122
f8f42513
MJ
111232013-02-28 Martin Jambor <mjambor@suse.cz>
11124
11125 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
11126 with no initialization to the RHS of debug statements.
11127
b48b3fc4
MJ
111282013-02-28 Martin Jambor <mjambor@suse.cz>
11129
11130 PR tree-optimization/56294
11131 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
11132 Adjust dumping.
11133 (get_access_replacement): Do not call create_access_replacement.
11134 Assert a replacement exists.
11135 (get_repl_default_def_ssa_name): Create the replacement declaration
11136 itself.
11137
c3ae224c
RR
111382013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11139
11140 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
11141 final_end_function.
11142
45fa0eef
MP
111432013-02-28 Marek Polacek <polacek@redhat.com>
11144
11145 PR rtl-optimization/56466
11146 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
11147 if we're changing a loop.
11148 (peel_loops_completely): Likewise.
11149
502c067d
PC
111502013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
11151
11152 PR c++/55813
11153 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
11154
ff24afc8
GJL
111552013-02-28 Georg-Johann Lay <avr@gjlay.de>
11156
11157 PR target/56445
11158 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
11159 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
11160 INTX_FTYPE_FX, FX_FTYPE_INTX.
11161 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
11162
c7b1fc1b
GJL
111632013-02-28 Georg-Johann Lay <avr@gjlay.de>
11164
11165 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
11166 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
11167 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
11168 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
11169 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
11170 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
11171 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
11172 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
11173 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
11174 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
11175 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
11176 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
11177 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
11178 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
11179 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
11180 (avrxmega6): Increase max flash segments from 5 to 6.
11181 * config/avr/t-multilib: Regenerate.
11182 * config/avr/avr-tables.opt: Regenerate.
11183 * doc/avr-mmcu.texi: Regenerate.
11184
4a0e3cfe
GJL
111852013-02-28 Georg-Johann Lay <avr@gjlay.de>
11186
11187 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
11188 (avr_device_to_arch): Rename to avr_device_to_ld.
11189 (avr_device_to_as): New prototype.
11190 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
11191 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
11192 * config/avr/driver-avr.c (avr_device_to_as): New.
11193 (avr_device_to_arch): Rename to avr_device_to_ld.
11194
97785e52
JJ
111952013-02-27 Jakub Jelinek <jakub@redhat.com>
11196
3f292312
JJ
11197 PR middle-end/56461
11198 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
11199 method on dr_chain and result_chain.
11200
a344216b
JJ
11201 PR middle-end/56461
11202 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
11203 pointer_set_destroy on not_executed_last_iteration.
11204
f121ad02 11205 PR middle-end/56461
88b97037 11206 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 11207
307f83a3
JJ
11208 PR middle-end/56461
11209 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
11210 FOR_EACH_DEFINED_FUNCTION when freeing state.
11211
e19624ee
JJ
11212 PR middle-end/56461
11213 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
11214 pool_free.
11215 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
11216 overwriting it.
11217
90e709fd
JJ
11218 PR middle-end/56461
11219 * ipa-cp.c (decide_whether_version_node): Call vec_free on
11220 known_aggs[i].items and release known_aggs vector.
11221
97785e52
JJ
11222 PR middle-end/56461
11223 * ipa-reference.c (propagate): Free node_info even for alias nodes.
11224
112252013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 11226
97785e52
JJ
11227 * config/microblaze/microblaze.c (microblaze_emit_compare):
11228 Use xor for EQ/NE comparisions.
11229 * config/microblaze/microblaze.md (cstoresf4): Add constraints
11230 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 11231
6fa5e0ed
JJ
112322013-02-27 Jakub Jelinek <jakub@redhat.com>
11233
11234 PR middle-end/56461
11235 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
11236 vector.
11237 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
11238 vec_safe_push, always update *slot.
11239 (redirect_edge_var_map_clear): Use vec_free.
11240 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
11241 (free_var_map_entry): Use vec_free.
11242 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
11243 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
11244
436a956a
AB
112452013-02-27 Andrey Belevantsev <abel@ispras.ru>
11246
11247 PR middle-end/45472
436a956a
AB
11248 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
11249 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
11250 Reorder tests for speculativeness in the logical and operator.
11251
f5c2caca
JJ
112522013-02-27 Jakub Jelinek <jakub@redhat.com>
11253
0fcb564b
JJ
11254 * incpath.c (add_standard_paths): Use reconcat instead of concat
11255 where appropriate and avoid leaking memory.
11256
dc357798
JJ
11257 * opts.h: Include obstack.h.
11258 (opts_concat): New prototype.
11259 (opts_obstack): New declaration.
11260 * opts.c (opts_concat): New function.
11261 (opts_obstack): New variable.
11262 (init_options_struct): Call gcc_init_obstack on opts_obstack.
11263 (finish_options): Use opts_concat instead of concat
11264 and XOBNEWVEC instead of XNEWVEC.
11265 * opts-common.c (generate_canonical_option, decode_cmdline_option,
11266 generate_option): Likewise.
11267 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11268 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11269
f5c2caca
JJ
11270 PR target/56455
11271 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11272 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11273
d0163673
JJ
112742013-02-26 Jakub Jelinek <jakub@redhat.com>
11275
11276 PR middle-end/56461
11277 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11278
b5ad2b8e
JR
112792013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11280
11281 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11282 (arm_block_move_unaligned_straight): Likewise.
11283 (arm_adjust_block_mem): Likewise.
11284
9b639e2c
JR
112852013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11286
11287 PR target/48901
11288 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11289 temp, cond and label.
11290 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11291
e13a0ccb
JR
11292 PR target/52500
11293 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11294 * config/c6x/c6x.h (dbx_register_map): Update declaration.
11295
fbe4f171
JR
11296 PR target/52501
11297 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11298 of prologue/epilogue functions.
11299
ae006543
JR
11300 PR target/52550
11301 * config/tilegx/tilegx.c (tilegx_expand_prologue):
11302 Remove unused variable cfa_offset.
11303 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
11304
c81369fa
JR
11305 PR target/54639
11306 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
11307 type promotion to unsigned.
11308
f8a8fea7
JR
11309 PR target/54640
11310 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11311 for HOST_WIDE_INT of 32 bit / same size as int.
11312 (arm_block_move_unaligned_straight): Likewise.
11313 (arm_adjust_block_mem): Likewise.
11314
f8be5169
JR
11315 PR target/54662
11316 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11317 ALL_CFLAGS.
11318
f1ad3354
MP
113192013-02-26 Marek Polacek <polacek@redhat.com>
11320
11321 PR tree-optimization/56426
88b97037 11322 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 11323
a6af0f42
RB
113242013-02-26 Richard Biener <rguenther@suse.de>
11325
11326 PR target/56444
11327 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11328 unused variable loops.
11329
aca43c6c
JJ
113302013-02-26 Jakub Jelinek <jakub@redhat.com>
11331
cecbe5d9
JJ
11332 PR tree-optimization/56448
11333 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11334 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11335 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11336 later operands of the references, or even first operand for
11337 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11338
aca43c6c
JJ
11339 PR tree-optimization/56443
11340 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11341 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11342 to type_for_mode langhook.
11343
53e2e141
MT
113442013-02-25 Matt Turner <mattst88@gmail.com>
11345
11346 * doc/invoke.texi: Document r4700.
11347
259ee451
RB
113482013-02-25 Richard Biener <rguenther@suse.de>
11349
11350 PR tree-optimization/56175
11351 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11352 split out from ...
11353 (simplify_bitwise_binary): ... here. Also guard the conversion
11354 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11355
6d65e8f1
CM
113562013-02-25 Catherine Moore <clm@codesourcery.com>
11357
11358 Revert:
11359 2013-02-24 Catherine Moore <clm@codesourcery.com>
11360 Maciej W. Rozycki <macro@codesourcery.com>
11361 Tom de Vries <tom@codesourcery.com>
a72d8780 11362 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
11363 Iain Sandoe <iain@codesourcery.com>
11364 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 11365 Chao-ying Fu <fu@mips.com>
88b97037 11366
6d65e8f1 11367 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 11368 Document new function attributes.
6d65e8f1
CM
11369 * doc/invoke.texi (minterlink-compressed, mmicromips,
11370 m14k, m14ke, m14kec): Document new options.
11371 (minterlink-mips16): Update documentation.
11372 * doc/md.texi (ZC, ZD): Document new constraints.
11373 * configure.ac (gcc_cv_as_micromips): Check if linker
11374 supports the .set micromips directive.
11375 * configure: Regenerate.
11376 * config.in: Regenerate.
11377 * config/mips/mips-tables.opt: Regenerate.
11378 * config/mips/micromips.md: New file.
11379 * constraints.md (ZC, AD): New constraints.
11380 * config/mips/predicates.md (movep_src_register): New predicate.
11381 (movep_src_operand): New predicate.
11382 (non_volatile_mem_operand): New predicate.
11383 * config/mips/mips.md (multimem): New type.
11384 (length): Differentiate between 17-bit and 18-bit branch offsets.
11385 (MOVEP1, MOVEP2): New mode iterator.
11386 (mov_<load>l): Use ZC constraint.
11387 (mov_<load>r): Likewise.
11388 (mov_<store>l): Likewise.
11389 (mov_<store>r): Likewise.
11390 (*branch_equality<mode>_inverted): Add microMIPS support.
11391 (*branch_equality<mode>): Likewise.
11392 (*jump_absolute): Likewise.
11393 (indirect_jump_<mode>): Likewise.
11394 (tablejump_<mode>): Likewise.
11395 (<optab>_internal): Likewise.
11396 (sibcall_internal): Likewise.
11397 (sibcall_value_internal): Likewise.
11398 (prefetch): Use constraint ZD.
11399 * config/mips/mips.opt (minterlink-compressed): New option.
11400 (minterlink-mips16): Now an alias for minterlink-compressed.
11401 (mmicromips): New option.
11402 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11403 (compare_and_swap_12): Likewise.
11404 (sync_add<mode>): Likewise.
11405 (sync_<optab>_12): Likewise.
11406 (sync_old_<optab>_12): Likewise.
11407 (sync_new_<optab>_12): Likewise.
11408 (sync_nand_12): Likewise.
11409 (sync_old_nand_12): Likewise.
11410 (sync_new_nand_12): Likewise.
11411 (sync_sub<mode>): Likewise.
11412 (sync_old_add<mode>): Likewise.
11413 (sync_old_sub<mode>): Likewise.
11414 (sync_new_add<mode>): Likewise.
11415 (sync_new_sub<mode>): Likewise.
11416 (sync_<optab><mode>): Likewise.
11417 (sync_old_<optab><mode>): Likewise.
11418 (sync_new_<optab><mode>): Likewise.
11419 (sync_nand<mode>): Likewise.
11420 (sync_old_nand<mode>): Likewise.
11421 (sync_new_nand<mode>): Likewise.
11422 (sync_lock_test_and_set<mode>): Likewise.
11423 (test_and_set_12): Likewise.
11424 (atomic_compare_and_swap<mode>): Likewise.
11425 (atomic_exchange<mode>_llsc): Likewise.
11426 (atomic_fetch_add<mode>_llsc): Likewise.
11427 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11428 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11429 (umips_save_restore_pattern_p): Likewise.
11430 (umips_load_store_pair_p): Likewise.
11431 (umips_output_load_store_pair): Likewise.
11432 (umips_movep_target_p): Likewise.
11433 (umips_12bit_offset_address_p): Likewise.
11434 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11435 (mips_base_mips16): Rename this...
11436 (mips_base_compression_flags): ...to this. Update all uses.
11437 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11438 (mips_mips16_decl_p): Delete.
11439 (mips_nomips16_decl_p): Delete.
11440 (mips_get_compress_on_flags): New function.
11441 (mips_get_compress_off_flags): New function.
11442 (mips_get_compress_mode): New function.
11443 (mips_get_compress_on_name): New function.
11444 (mips_get_compress_off_name): New function.
11445 (mips_insert_attributes): Support multiple compression types.
11446 (mips_merge_decl_attributes): Likewise.
11447 (umips_12bit_offset_address_p): New function.
11448 (mips_start_function_definition): Emit .set micromips directive.
11449 (mips_call_may_need_jalx_p): New function.
11450 (mips_function_ok_for_sibcall): Add microMIPS support.
11451 (mips_print_operand_punctuation): Support short delay slots and
11452 compact jumps.
11453 (umips_swm_mask, umips_swm_encoding): New.
11454 (umips_build_save_restore): New function.
11455 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11456 (was_mips16_p): Remove.
11457 (old_compression_mode): New.
11458 (mips_set_compression_mode): New function.
11459 (mips_set_current_function): Add microMIPS support.
11460 (mips_option_override): Likewise.
11461 (umips_save_restore_pattern_p): New function.
11462 (umips_output_save_restore): New function.
11463 (umips_load_store_pair_p_1): New function.
11464 (umips_load_store_pair_p): New function.
11465 (umips_output_load_store_pair_1): New function.
11466 (umips_output_load_store_pair): New function.
11467 (umips_movep_target_p) New function.
11468 (mips_prepare_pch_save): Add microMIPS support.
11469 * config/mips/mips.h (TARGET_COMPRESSION): New.
11470 (TARGET_CPU_CPP_BUILTINS): Update macro
11471 to use new compression flags and to support microMIPS.
11472 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11473 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11474 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11475 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11476 (ASM_SPEC): Support mmicromips and mno-micromips.
11477 (M16STORE_REG_P): New macro.
11478 (MIPS_CALL): Support TARGET_MICROMIPS.
11479 (MICROMIPS_J): New macro.
11480 (mips_base_mips16): Rename this...
11481 (mips_base_compression_flags): ...to this.
11482 (UMIPS_12BIT_OFFSET_P): New macro.
11483 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11484 (MULTILIB_DIRNAMES): Likewise.
11485
5e5df392
TV
114862013-02-25 Tom de Vries <tom@codesourcery.com>
11487
11488 PR rtl-optimization/56131
11489 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
11490 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
11491 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
11492
3fdb53c1
TB
114932013-02-25 Tobias Burnus <burnus@net-b.de>
11494
11495 * doc/invoke.texi (-fsanitize=): Move from optimization
11496 to debugging options.
11497
ed358aea
AB
114982013-02-25 Andrey Belevantsev <abel@ispras.ru>
11499
11500 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
11501
f45e9053
AB
115022013-02-25 Andrey Belevantsev <abel@ispras.ru>
11503 Alexander Monakov <amonakov@ispras.ru>
11504
11505 PR middle-end/56077
11506 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
11507 flush pending lists also on non-jumps. Adjust comment.
11508
6941b508
CM
115092013-02-24 Catherine Moore <clm@codesourcery.com>
11510 Maciej W. Rozycki <macro@codesourcery.com>
11511 Tom de Vries <tom@codesourcery.com>
a72d8780 11512 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
11513 Iain Sandoe <iain@codesourcery.com>
11514 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 11515 Chao-ying Fu <fu@mips.com>
6941b508
CM
11516
11517 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 11518 Document new function attributes.
6941b508
CM
11519 * doc/invoke.texi (minterlink-compressed, mmicromips,
11520 m14k, m14ke, m14kec): Document new options.
11521 (minterlink-mips16): Update documentation.
11522 * doc/md.texi (ZC, ZD): Document new constraints.
11523 * configure.ac (gcc_cv_as_micromips): Check if linker
11524 supports the .set micromips directive.
11525 * configure: Regenerate.
11526 * config.in: Regenerate.
11527 * config/mips/mips-tables.opt: Regenerate.
11528 * config/mips/micromips.md: New file.
11529 * constraints.md (ZC, AD): New constraints.
11530 * config/mips/predicates.md (movep_src_register): New predicate.
11531 (movep_src_operand): New predicate.
11532 (non_volatile_mem_operand): New predicate.
11533 * config/mips/mips.md (multimem): New type.
11534 (length): Differentiate between 17-bit and 18-bit branch offsets.
11535 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 11536 (mov_<load>l): Use ZC constraint.
6941b508
CM
11537 (mov_<load>r): Likewise.
11538 (mov_<store>l): Likewise.
11539 (mov_<store>r): Likewise.
11540 (*branch_equality<mode>_inverted): Add microMIPS support.
11541 (*branch_equality<mode>): Likewise.
11542 (*jump_absolute): Likewise.
11543 (indirect_jump_<mode>): Likewise.
11544 (tablejump_<mode>): Likewise.
11545 (<optab>_internal): Likewise.
11546 (sibcall_internal): Likewise.
11547 (sibcall_value_internal): Likewise.
11548 (prefetch): Use constraint ZD.
11549 * config/mips/mips.opt (minterlink-compressed): New option.
11550 (minterlink-mips16): Now an alias for minterlink-compressed.
11551 (mmicromips): New option.
11552 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11553 (compare_and_swap_12): Likewise.
11554 (sync_add<mode>): Likewise.
11555 (sync_<optab>_12): Likewise.
11556 (sync_old_<optab>_12): Likewise.
11557 (sync_new_<optab>_12): Likewise.
11558 (sync_nand_12): Likewise.
11559 (sync_old_nand_12): Likewise.
11560 (sync_new_nand_12): Likewise.
11561 (sync_sub<mode>): Likewise.
11562 (sync_old_add<mode>): Likewise.
11563 (sync_old_sub<mode>): Likewise.
11564 (sync_new_add<mode>): Likewise.
11565 (sync_new_sub<mode>): Likewise.
11566 (sync_<optab><mode>): Likewise.
11567 (sync_old_<optab><mode>): Likewise.
11568 (sync_new_<optab><mode>): Likewise.
11569 (sync_nand<mode>): Likewise.
11570 (sync_old_nand<mode>): Likewise.
11571 (sync_new_nand<mode>): Likewise.
11572 (sync_lock_test_and_set<mode>): Likewise.
11573 (test_and_set_12): Likewise.
11574 (atomic_compare_and_swap<mode>): Likewise.
11575 (atomic_exchange<mode>_llsc): Likewise.
11576 (atomic_fetch_add<mode>_llsc): Likewise.
11577 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11578 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11579 (umips_save_restore_pattern_p): Likewise.
11580 (umips_load_store_pair_p): Likewise.
11581 (umips_output_load_store_pair): Likewise.
11582 (umips_movep_target_p): Likewise.
11583 (umips_12bit_offset_address_p): Likewise.
11584 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11585 (mips_base_mips16): Rename this...
11586 (mips_base_compression_flags): ...to this. Update all uses.
11587 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11588 (mips_mips16_decl_p): Delete.
11589 (mips_nomips16_decl_p): Delete.
3fdb53c1 11590 (mips_get_compress_on_flags): New function.
6941b508
CM
11591 (mips_get_compress_off_flags): New function.
11592 (mips_get_compress_mode): New function.
11593 (mips_get_compress_on_name): New function.
11594 (mips_get_compress_off_name): New function.
11595 (mips_insert_attributes): Support multiple compression types.
11596 (mips_merge_decl_attributes): Likewise.
11597 (umips_12bit_offset_address_p): New function.
11598 (mips_start_function_definition): Emit .set micromips directive.
11599 (mips_call_may_need_jalx_p): New function.
11600 (mips_function_ok_for_sibcall): Add microMIPS support.
11601 (mips_print_operand_punctuation): Support short delay slots and
11602 compact jumps.
11603 (umips_swm_mask, umips_swm_encoding): New.
11604 (umips_build_save_restore): New function.
11605 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11606 (was_mips16_p): Remove.
11607 (old_compression_mode): New.
11608 (mips_set_compression_mode): New function.
11609 (mips_set_current_function): Add microMIPS support.
11610 (mips_option_override): Likewise.
11611 (umips_save_restore_pattern_p): New function.
11612 (umips_output_save_restore): New function.
11613 (umips_load_store_pair_p_1): New function.
11614 (umips_load_store_pair_p): New function.
11615 (umips_output_load_store_pair_1): New function.
11616 (umips_output_load_store_pair): New function.
11617 (umips_movep_target_p) New function.
11618 (mips_prepare_pch_save): Add microMIPS support.
11619 * config/mips/mips.h (TARGET_COMPRESSION): New.
11620 (TARGET_CPU_CPP_BUILTINS): Update macro
11621 to use new compression flags and to support microMIPS.
11622 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11623 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11624 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11625 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11626 (ASM_SPEC): Support mmicromips and mno-micromips.
11627 (M16STORE_REG_P): New macro.
11628 (MIPS_CALL): Support TARGET_MICROMIPS.
11629 (MICROMIPS_J): New macro.
11630 (mips_base_mips16): Rename this...
11631 (mips_base_compression_flags): ...to this.
11632 (UMIPS_12BIT_OFFSET_P): New macro.
11633 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11634 (MULTILIB_DIRNAMES): Likewise.
11635
cdebbc6d
JJ
116362013-02-24 Jakub Jelinek <jakub@redhat.com>
11637
11638 PR target/52555
11639 * target-globals.c (save_target_globals): For init_reg_sets and
11640 target_reinit remporarily set this_fn_optabs to this_target_optabs.
11641
18c63565
JG
116422013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
11643
11644 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
11645 * config/aarch64/t-aarch64
11646 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
11647
2194f7a2
VM
116482013-02-22 Vladimir Makarov <vmakarov@redhat.com>
11649
11650 PR inline-asm/56148
11651 * lra-constraints.c (process_alt_operands): Reload operand
11652 conflicting with earlier clobber only if no more other conflicting
11653 operands.
11654
7d613735
JJ
116552013-02-22 Jakub Jelinek <jakub@redhat.com>
11656
11657 PR sanitizer/56393
11658 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
11659 if not linking a shared library.
11660
ac8d93a7
SL
116612013-02-22 Seth LaForge <sethml@google.com>
11662
11663 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
11664
e0237780
GY
116652013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
11666
3fdb53c1
TB
11667 * config/arm/arm.md (split for extendsidi): Update condition.
11668 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
11669 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
11670 (qhs_zextenddi_cstr): Likewise.
e0237780 11671
d7fde18c
JJ
116722013-02-21 Jakub Jelinek <jakub@redhat.com>
11673
be63b77d
JJ
11674 PR middle-end/56420
11675 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
11676 avoid signed wrapping.
11677 (expand_mult): Handle properly multiplication by
11678 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
11679 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
11680 in the compiler if coeff is HOST_WIDE_INT_MIN.
11681 (expand_divmod): Don't make ext_op1 static, change it's type to
11682 uhwi. Avoid undefined behavior in -INTVAL (op1).
11683
d7fde18c
JJ
11684 PR rtl-optimization/50339
11685 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
11686 field.
11687 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
11688 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
11689 into splitting_ashiftrt field.
11690 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
11691 ASHIFTRT.
11692 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
11693 choices.
11694
6aad4455
AH
116952013-02-20 Aldy Hernandez <aldyh@redhat.com>
11696
11697 PR middle-end/56108
11698 * trans-mem.c (execute_tm_mark): Do not expand transactions that
11699 are sure to go irrevocable.
11700
38fe784d
HPN
117012013-02-21 Hans-Peter Nilsson <hp@axis.com>
11702
11703 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
11704 scalars are valid operands.
11705
0fd44da3
MJ
117062013-02-21 Martin Jambor <mjambor@suse.cz>
11707
11708 PR tree-optimization/56310
11709 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
11710 only matching indices and non-negative final offsets.
11711 (intersect_aggregates_with_edge): Pass src_idx to
11712 agg_replacements_to_vector. Pass src_idx insstead of index to
11713 intersect_with_agg_replacements.
11714
7a92038b
MJ
117152013-02-21 Martin Jambor <mjambor@suse.cz>
11716
11717 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
11718 instead of hard-wired defaults.
11719
c0da9c37
MR
117202013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
11721
11722 * doc/invoke.texi (MIPS Options): Update documentation of the
11723 floating-point multiply-accumulate instruction restrictions.
11724
d247ea0c 117252013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
11726
11727 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11728 asan_shadow_offset on x86_64 linux.
11729
22deefcb
RB
117302013-02-21 Richard Biener <rguenther@suse.de>
11731
11732 PR tree-optimization/56415
11733 Revert
11734 2013-02-11 Richard Biener <rguenther@suse.de>
11735
11736 PR tree-optimization/56273
11737 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11738 first VRP run.
11739
7bcc6e75
JJ
117402013-02-21 Jakub Jelinek <jakub@redhat.com>
11741
a0ad148f
JJ
11742 PR bootstrap/56258
11743 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11744 instead of @itemx.
11745
7bcc6e75
JJ
11746 PR inline-asm/56405
11747 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11748 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11749
a0a7b611
JH
117502013-02-20 Jan Hubicka <jh@suse.cz>
11751
11752 PR tree-optimization/56265
88b97037
UB
11753 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11754 when target is referenced for first time.
a0a7b611 11755
c0e50f72
RB
117562013-02-20 Richard Biener <rguenther@suse.de>
11757
11758 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11759 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11760 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11761 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11762 not return anything.
11763 (rename_ssa_copies): Do not remove unused locals.
11764 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 11765 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
11766 * passes.c (execute_function_todo): Do not schedule unused locals
11767 removal if cleanup_tree_cfg did something.
11768 * tree-ssa-live.c (remove_unused_locals): Dump statistics
11769 about the number of removed locals.
11770
a52ca739
RB
117712013-02-20 Richard Biener <rguenther@suse.de>
11772
11773 PR tree-optimization/56398
88b97037 11774 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 11775
ec9c9d1b
MJ
117762013-02-20 Martin Jambor <mjambor@suse.cz>
11777
11778 PR tree-optimization/55334
11779 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11780 restricted pointers to arrays.
11781
e91c8ed6 117822013-02-20 Richard Biener <rguenther@suse.de>
88b97037 11783 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
11784
11785 PR tree-optimization/56396
11786 * tree-ssa-ccp.c (n_const_val): New static variable.
11787 (get_value): Return NULL for SSA names we don't have a lattice
11788 entry for.
11789 (ccp_initialize): Initialize n_const_val.
11790 * tree-ssa-copy.c (n_copy_of): New static variable.
11791 (init_copy_prop): Initialize n_copy_of.
11792 (get_value): Return NULL_TREE for SSA names we don't have a
11793 lattice entry for.
11794
3d916479
MJ
117952013-02-20 Martin Jambor <mjambor@suse.cz>
11796
11797 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11798
71a86758
RB
117992013-02-20 Richard Biener <rguenther@suse.de>
11800
11801 * genpreds.c (write_lookup_constraint): Do not compare first
11802 letter of the constraint again.
11803
79836a12
RB
118042013-02-20 Richard Biener <rguenther@suse.de>
11805
11806 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11807 and ceil_log2.
11808 (get_use_iv_cost): Terminate hashtable walk when coming across
11809 an empty entry.
11810
bbe4fb2c
IZ
118112013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
11812
11813 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11814 reassociation for avx2 targets.
11815
a72d8780 118162012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 11817
c77f83d5
EI
11818 * config/microblaze/microblaze.c: microblaze_has_clz = 0
11819 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 11820 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
11821 version and TARGET_PATTERN_COMPARE check
11822 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 11823
a72d8780 118242012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 11825
a72d8780 11826 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
11827 function before branching.
11828
242387fa
AB
118292012-02-19 Andrey Belevantsev <abel@ispras.ru>
11830
11831 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11832 DUMP_INSN_RTX_UID.
11833 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11834
b4979ab9
AB
118352012-02-19 Andrey Belevantsev <abel@ispras.ru>
11836
11837 PR middle-end/55889
b4979ab9
AB
11838 * sel-sched.c: Include ira.h.
11839 (implicit_clobber_conflict_p): New function.
11840 (moveup_expr): Use it.
88b97037 11841 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 11842
24d63016
RB
118432013-02-19 Richard Biener <rguenther@suse.de>
11844
11845 PR tree-optimization/56384
11846 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11847 (vn_hash_type): Split out from ...
11848 (vn_hash_constant_with_type): ... here.
11849 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11850 (vn_phi_eq): Compare types from vn_phi_s structure.
11851 (vn_phi_lookup): Populate vn_phi_s type.
11852 (vn_phi_insert): Likewise.
11853
a475fd3d
JJ
118542013-02-19 Jakub Jelinek <jakub@redhat.com>
11855
47cc28f5
JJ
11856 PR tree-optimization/56350
11857 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11858 if haven't found reduction or nested cycle operand, rather than
11859 asserting we must find it.
11860
a475fd3d
JJ
11861 PR tree-optimization/56381
11862 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11863 to fold_build3.
11864
118652013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
11866 Jakub Jelinek <jakub@redhat.com>
11867
11868 PR target/52555
11869 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11870 (swap_optab_enable): Same.
11871 (init_all_optabs): Use argument instead of global.
88b97037 11872 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
11873 * expr.h (init_all_optabs): Add argument to prototype.
11874 (TREE_OPTIMIZATION_OPTABS): New.
11875 (save_optabs_if_changed): Protoize.
11876 * optabs.h: Declare this_fn_optabs.
11877 * optabs.c (save_optabs_if_changed): New.
11878 Declare this_fn_optabs.
11879 (init_optabs): Add argument to init_all_optabs() call.
11880 * function.c (invoke_set_current_function_hook): Handle per
11881 function optabs.
11882 * function.h (struct function): New field optabs.
11883 * config/mips/mips.c (mips_set_mips16_mode): Handle when
11884 optimization_current_node has changed.
11885 * target-globals.h (save_target_globals_default_opts): Protoize.
11886 * target-globals.c (save_target_globals_default_opts): New.
11887
3f587ca3
JDA
118882013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11889
11890 PR target/56347
11891 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11892 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
11893
11894 PR target/56214
11895 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
11896 and HImode, require all displacements to be an integer multiple of
11897 their mode size.
ceaca33e
JDA
11898 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11899 only allow QImode and HImode when reload is in progress and strict is
11900 true. Likewise for symbolic addresses. Use base14_operand to check
11901 displacements in REG+BASE addresses.
11902
fe0b4796
RB
119032013-02-18 Richard Biener <rguenther@suse.de>
11904
11905 PR tree-optimization/56366
11906 * tree-vect-loop.c (get_initial_def_for_induction): Properly
11907 handle sign-conversion of outer-loop initial induction value.
11908
6aaf596b
RB
119092013-02-18 Richard Biener <rguenther@suse.de>
11910
73db8ff1 11911 PR middle-end/56349
6aaf596b
RB
11912 * cfghooks.c (merge_blocks): If we merge a latch into another
11913 block adjust references to it.
11914 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11915 (verify_loop_structure): Verify that a recorded latch is in fact
11916 a latch.
11917
5e97dfb6
RB
119182013-02-18 Richard Biener <rguenther@suse.de>
11919
11920 PR tree-optimization/56321
11921 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11922 order SSA name release and virtual operand unlinking.
11923
825527e8
EI
119242013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11925
11926 * config/microblaze/microblaze.md (save_stack_block): Define.
11927 (restore_stack_block): Likewise.
11928
debd11d9
EI
119292013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11930
11931 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11932 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11933 * config/microblaze/microblaze.c (microblaze_option_override):
11934 Bail out early for PIC modes when target does not support PIC.
11935
8ec77be0
EI
119362013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11937
88b97037 11938 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
11939 Replace with a microblaze version.
11940 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 11941 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
11942 microblaze.
11943
b41288b3
JJ
119442013-02-16 Jakub Jelinek <jakub@redhat.com>
11945 Dodji Seketeli <dodji@redhat.com>
11946
11947 PR asan/56330
88b97037 11948 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
11949 (instrument_mem_region_access): Do not forget to always put
11950 instrumentation of the of 'base' and 'base + len' in a "if (len !=
11951 0) statement, even for cases where either 'base' or 'base + len'
11952 are not instrumented -- because they have been previously
11953 instrumented. Simplify the logic by putting all the statements
11954 instrument 'base + len' inside a sequence, and then insert that
11955 sequence right before the current insertion point. Then, to
11956 instrument 'base + len', just get an iterator on that statement.
11957 And do not forget to update the pointer to iterator the function
11958 received as argument.
11959
47918951
VM
119602013-02-15 Vladimir Makarov <vmakarov@redhat.com>
11961
11962 PR rtl-optimization/56348
11963 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11964
3fb7c699
SB
119652013-02-15 Steven Bosscher <steven@gcc.gnu.org>
11966
11967 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11968 (clean_graph_dump_file): Pass base to start_graph_dump.
11969
576fe41a
RH
119702013-02-14 Richard Henderson <rth@redhat.com>
11971
11972 PR target/55941
11973 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11974
bb3accfa
SB
119752013-02-14 Steven Bosscher <steven@gcc.gnu.org>
11976
11977 * collect2-aix.h: Define F_LOADONLY.
11978
03143140
RB
119792013-02-14 Richard Biener <rguenther@suse.de>
11980
11981 PR lto/50494
11982 * varasm.c (output_constant_def_1): Get the decl representing
11983 the constant as argument.
11984 (output_constant_def): Wrap output_constant_def_1.
11985 (make_decl_rtl): Use output_constant_def_1 with the decl
11986 representing the constant.
11987 (build_constant_desc): Optionally re-use a decl already
11988 representing the constant.
11989 (tree_output_constant_def): Adjust.
11990
8fb06726
DS
119912013-02-14 Dodji Seketeli <dodji@redhat.com>
11992
11993 Fix an asan crash
11994 * asan.c (instrument_builtin_call): Really put the length of the
11995 second source argument into src1_len.
11996
c4bfe8bf
JJ
119972013-02-13 Jakub Jelinek <jakub@redhat.com>
11998
11999 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
12000 argument. If it is false, don't create edge from then_bb to
12001 fallthru_bb.
12002 (insert_if_then_before_iter): Pass true to it.
12003 (build_check_stmt): Pass false to it.
12004 (transform_statements): Flush hash table only on extended basic
12005 block boundaries, rather than at the beginning of every bb.
12006 Don't flush hash table on nonfreeing_call_p calls.
12007 * tree-flow.h (nonfreeing_call_p): New prototype.
12008 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
12009
7afe2801
DM
120102013-02-13 David S. Miller <davem@davemloft.net>
12011
12012 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
12013
70cc3288
VM
120142013-02-13 Vladimir Makarov <vmakarov@redhat.com>
12015
12016 PR target/56184
12017 * ira.c (max_regno_before_ira): Move from ...
12018 (ira): ... here.
12019 (fix_reg_equiv_init): Use max_regno_before_ira instead of
12020 vec_safe_length.
12021
6422242b
JJ
120222013-02-13 Jakub Jelinek <jakub@redhat.com>
12023
12024 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
12025
976a81ee
RB
120262013-02-13 Richard Biener <rguenther@suse.de>
12027
12028 PR lto/56295
12029 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
12030 globals in MEM_REFs.
12031
c1874a87
RB
120322013-02-13 Richard Biener <rguenther@suse.de>
12033
12034 * loop-init.c (loop_optimizer_init): Clear loop state when
12035 re-initializing preserved loops.
12036 * loop-unswitch.c (unswitch_single_loop): Return whether
12037 we unswitched the loop. Do not verify loop state here.
88b97037 12038 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 12039
b4ab7d34
KS
120402013-02-13 Kostya Serebryany <kcc@google.com>
12041
88b97037
UB
12042 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
12043 on x86_64 linux.
b4ab7d34
KS
12044 * sanitizer.def: Rename __asan_init to __asan_init_v1.
12045
bdcbe80c
DS
120462013-02-12 Dodji Seketeli <dodji@redhat.com>
12047
12048 Avoid instrumenting duplicated memory access in the same basic block
12049 * Makefile.in (asan.o): Add new dependency on hash-table.h
12050 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
12051 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
12052 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
12053 (free_mem_ref_resources, has_mem_ref_been_instrumented)
12054 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
12055 (get_mem_ref_of_assignment): New functions.
12056 (get_mem_refs_of_builtin_call): Extract from
12057 instrument_builtin_call and tweak a little bit to make it fit with
12058 the new signature.
12059 (instrument_builtin_call): Use the new
12060 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
12061 of is_gimple_builtin_call.
12062 (instrument_derefs, instrument_mem_region_access): Insert the
12063 instrumented memory reference into the hash table.
12064 (maybe_instrument_assignment): Renamed instrument_assignment into
12065 this, and change it to advance the iterator when instrumentation
12066 actually happened and return true in that case. This makes it
12067 homogeneous with maybe_instrument_assignment, and thus give a
12068 chance to callers to be more 'regular'.
12069 (transform_statements): Clear the memory reference hash table
12070 whenever we enter a new BB, when we cross a function call, or when
12071 we are done transforming statements. Use
12072 maybe_instrument_assignment instead of instrumentation. No more
12073 need to special case maybe_instrument_assignment and advance the
12074 iterator after calling it; it's now handled just like
12075 maybe_instrument_call. Update comment.
12076
4861a1f7
RB
120772013-02-13 Richard Biener <rguenther@suse.de>
12078
12079 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
12080 Fix loop discovery code.
12081
1c86bd80
VM
120822013-02-12 Vladimir Makarov <vmakarov@redhat.com>
12083
12084 PR inline-asm/56148
12085 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 12086 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
12087 the operand is not reloaded. Prefer to reload conflicting operand
12088 if earlyclobber and matching operands are the same.
12089
7cbda518
RB
120902013-02-12 Richard Biener <rguenther@suse.de>
12091
12092 PR lto/56297
12093 * lto-streamer-out.c (write_symbol): Do not output symbols
12094 for hard register variables.
12095
e68a4ef6
GJL
120962013-02-12 Georg-Johann Lay <avr@gjlay.de>
12097
12098 PR target/54222
12099 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
12100 (umulsidi3_insn, mulsidi3_insn): New insns.
12101
a72d8780 121022013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
12103
12104 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
12105 (struct tune_params): Add vec_costs field.
12106 * config/arm/arm.c (arm_builtin_vectorization_cost)
12107 (arm_add_stmt_cost): New functions.
12108 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
12109 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
12110 (arm_default_vec_cost): New struct of type cpu_vec_costs.
12111 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
12112 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
12113 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
12114 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
12115
43320568
RB
121162013-02-12 Richard Biener <rguenther@suse.de>
12117
12118 PR lto/56295
12119 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
12120 decls again if possible.
12121
a011aa39
RB
121222013-02-12 Richard Biener <rguenther@suse.de>
12123
12124 PR middle-end/56288
12125 * tree-ssa.c (verify_ssa_name): Fix check, move
12126 SSA_NAME_IN_FREE_LIST check up.
12127
6da26889
JJ
121282013-02-12 Jakub Jelinek <jakub@redhat.com>
12129 Steven Bosscher <steven@gcc.gnu.org>
12130
12131 PR rtl-optimization/56151
12132 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
12133 equal to op0 or op1, and last_insn pattern is CODE operation
12134 with MEM dest and one of the operands matches that MEM.
12135
f80e0faf
ST
121362013-02-11 Sriraman Tallam <tmsriramgoogle.com>
12137
12138 * doc/extend.texi: Document Function Multiversioning and "default"
12139 parameter string to target attribute.
12140 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
12141 target attribute parameter is "default".
12142 (ix86_compare_version_priority): Remove checks for target attribute.
12143 (ix86_mangle_function_version_assembler_name): Change error to sorry.
12144 Remove check for target attribute equal to NULL. Add assert.
12145 (ix86_generate_version_dispatcher_body): Change error to sorry.
12146
6c59ffd1
IS
121472013-02-11 Iain Sandoe <iain@codesourcery.com>
12148 Jack Howarth <howarth@bromo.med.uc.edu>
12149 Patrick Marlier <patrick.marlier@gmail.com>
12150
12151 PR libitm/55693
12152 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
12153 define ENDFILE_SPEC as TM_DESTRUCTOR.
12154 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
12155
a72d8780 121562013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
12157 Jack Howarth <howarth@bromo.med.uc.edu>
12158 Jakub Jelinek <jakub@redhat.com>
12159
12160 PR sanitizer/55617
12161 * config/darwin.c (cdtor_record): Rename ctor_record.
12162 (sort_cdtor_records): Rename sort_ctor_records.
12163 (finalize_dtors): New routine to sort destructors by
12164 priority before use in assemble_integer.
12165 (machopic_asm_out_destructor): Use finalize_dtors if needed.
12166
b63fe007
UB
121672013-02-11 Uros Bizjak <ubizjak@gmail.com>
12168
12169 PR rtl-optimization/56275
12170 * simplify-rtx.c (avoid_constant_pool_reference): Check that
12171 offset is non-negative and less than cmode size before
12172 calling simplify_subreg.
12173
8e89b5b5
RB
121742013-02-11 Richard Biener <rguenther@suse.de>
12175
12176 PR tree-optimization/56264
12177 * cfgloop.h (fix_loop_structure): Adjust prototype.
12178 * loop-init.c (fix_loop_structure): Return the number of
12179 newly discovered loops.
12180 * tree-cfgcleanup.c (repair_loop_structures): When new loops
12181 are discovered, do a full loop-closed SSA rewrite.
12182
b4a4b56d
RB
121832013-02-11 Richard Biener <rguenther@suse.de>
12184
12185 PR tree-optimization/56273
12186 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
12187 first VRP run.
12188 (check_array_ref): Fix missing newline in dumps.
12189 (search_for_addr_array): Likewise.
12190
0c885229
DE
121912013-02-09 David Edelsohn <dje.gcc@gmail.com>
12192
12193 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
12194
59ac9a55
JJ
121952013-02-09 Jakub Jelinek <jakub@redhat.com>
12196
12197 PR target/56256
12198 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
12199
25bb0bb5
VM
122002013-02-08 Vladimir Makarov <vmakarov@redhat.com>
12201
12202 PR rtl-optimization/56246
0c885229 12203 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
12204 reload pseudo.
12205 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
12206 constraints are satisfied.
12207
a698cc03
JL
122082013-02-08 Jeff Law <law@redhat.com>
12209
12210 PR debug/53948
12211 * emit-rtl.c (reg_is_parm_p): New function.
12212 * regs.h (reg_is_parm_p): New prototype.
12213 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
12214 callee-clobbered registers.
12215
e1122ddd
MM
122162013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12217
12218 PR target/56043
12219 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
12220 If there is no implicit builtin declaration, just return NULL.
12221
19c5f6e6
UB
122222013-02-08 Uros Bizjak <ubizjak@gmail.com>
12223
12224 * config/i386/sse.md (FMAMODEM): New mode iterator.
12225 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
12226 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
12227
2480f2ca 122282013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 12229
2480f2ca
UB
12230 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
12231 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
12232 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
12233
122342013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12235
12236 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
12237 (microblaze*-*-elf): Likewise.
12238 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
12239 LINK_SPEC.
12240 * config/microblaze/microblaze-c.c: Add builtin defines for
12241 _LITTLE_ENDIAN and _BIG_ENDIAN.
12242 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
12243 add to TARGET_DEFAULT flags.
76ef61fb 12244 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
12245 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
12246 * config/microblaze/microblaze.md: Update extendsidi2 and
12247 movdi_internal instructions to use low-order / high-order reg
12248 print_operands.
12249 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
12250 options and inversemask / mask of LITTLE_ENDIAN.
12251 * config/microblaze/t-microblaze: Expand multilib options to
12252 include mlittle-endian (le) and update exceptions patterns.
12253
600a5961
JJ
122542013-02-08 Jakub Jelinek <jakub@redhat.com>
12255
5df81313
JJ
12256 PR rtl-optimization/56195
12257 * lra-constraints.c (get_reload_reg): Don't reuse regs
12258 if they have smaller mode than requested, if they have
12259 wider mode than requested, try to return a SUBREG.
12260
600a5961
JJ
12261 PR tree-optimization/56250
12262 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
12263 if type is unsigned and code isn't MULT_EXPR.
12264
ff544649
GJL
122652013-02-08 Georg-Johann Lay <avr@gjlay.de>
12266
12267 PR tree-optimization/56064
12268 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12269 bits according to mode.
12270 * fixed-value.h (fixed_from_double_int)
12271 (const_fixed_from_double_int): Adjust comments.
12272
e45cde98
RB
122732013-02-08 Richard Biener <rguenther@suse.de>
12274
12275 PR lto/56231
12276 * lto-streamer.h (struct data_in): Remove current_file, current_line
12277 and current_col members.
12278 * lto-streamer-out.c (lto_output_location): Stream changed bits
12279 en-block for efficiency.
12280 * lto-streamer-in.c (clear_line_info): Remove.
12281 (lto_input_location): Cache current file, line and column
12282 globally via local statics. Read changed bits en-block.
12283 (input_function): Do not call clear_line_info.
12284 (lto_read_body): Likewise.
12285 (lto_input_toplevel_asms): Likewise.
12286
c1ca73d8
MM
122872013-02-08 Michael Matz <matz@suse.de>
12288
12289 PR tree-optimization/52448
12290 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12291 (nt_call_phase): New static.
12292 (add_or_mark_expr): Only mark accesses with newer phase than any
12293 call seen.
12294 (nonfreeing_call_p): New.
12295 (nt_init_block): Update nt_call_phase, mark blocks as visited.
12296 (nt_fini_block): Keep blocks marked as visited.
12297 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12298
57548aa2
RB
122992013-02-08 Richard Biener <rguenther@suse.de>
12300
12301 * ira.c (ira): Free broken dominator information.
12302
8e10366f
UB
123032013-02-08 Uros Bizjak <ubizjak@gmail.com>
12304
12305 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
12306
f64fb0fa
MP
123072013-02-08 Marek Polacek <polacek@redhat.com>
12308
8e10366f 12309 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 12310
0375167b
RB
123112013-02-08 Richard Biener <rguenther@suse.de>
12312
12313 PR middle-end/56181
12314 * cfgloop.h (flow_loops_find): Adjust.
12315 (bb_loop_header_p): Declare.
12316 * cfgloop.c (bb_loop_header_p): New function split out from ...
12317 (flow_loops_find): ... here. Adjust function signature,
12318 support incremental loop structure update.
12319 (verify_loop_structure): Cleanup. Verify a loop is a loop.
12320 * cfgloopmanip.c (fix_loop_structure): Move ...
12321 * loop-init.c (fix_loop_structure): ... here.
12322 (apply_loop_flags): Split out from ...
12323 (loop_optimizer_init): ... here.
12324 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
12325 in incremental mode, only remove dead loops here.
12326
85d768f3
GJL
123272013-02-08 Georg-Johann Lay <avr@gjlay.de>
12328
12329 PR target/54222
12330 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12331 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12332 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12333 (*round<mode>3.libgcc): New insns for fixed-modes.
12334 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12335 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12336 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12337 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12338 implementations. Define to __builtin_avr_absFX,
12339 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12340 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12341 __builtin_avr_countlsFX, respectively.
12342 * config/avr/avr-c.c (target.h): Include it.
12343 (enum avr_builtin_id): New enum.
12344 (avr_resolve_overloaded_builtin): New static function.
12345 (avr_register_target_pragmas): Use it to set
12346 targetm.resolve_overloaded_builtin.
12347 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12348 tree nodes used by DEF_BUILTIN.
12349 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12350 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12351 <AVR_BUILTIN_xxBITS>: Same.
12352
661bc682
RB
123532013-02-08 Richard Biener <rguenther@suse.de>
12354
12355 * cfgloop.c (verify_loop_structure): Properly handle
12356 a loop exiting to another loop header.
12357 * ira-int.h (ira_loops): Remove.
12358 * ira.c (ira_loops): Remove.
12359 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12360 (do_reload): Use loop_optimizer_finalize.
12361 * ira-build.c (create_loop_tree_nodes): Use get_loops and
12362 number_of_loops to access the loop tree.
12363 (more_one_region_p): Likewise.
12364 (finish_loop_tree_nodes): Likewise.
12365 (rebuild_regno_allocno_maps): Likewise.
12366 (mark_loops_for_removal): Likewise.
12367 (mark_all_loops_for_removal): Likewise.
12368 (remove_unnecessary_regions): Likewise.
12369 (ira_build): Likewise.
12370 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12371
0d5049b2
RB
123722013-02-08 Richard Biener <rguenther@suse.de>
12373
12374 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12375 * ipa-pure-const.c (analyze_function): Avoid calling
12376 mark_irreducible_loops twice.
8e10366f 12377 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 12378
499f32e8
DM
123792013-02-07 David S. Miller <davem@davemloft.net>
12380
12381 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12382 on 'reg'.
12383 * var-tracking.c (vt_add_function_parameter): Test the presence of
12384 HAVE_window_save properly and do not remap argument registers when
12385 we have a leaf function.
12386
6edc3e32
UB
123872013-02-07 Uros Bizjak <ubizjak@gmail.com>
12388
12389 PR bootstrap/56227
12390 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12391 instead of "ll".
12392 * config/i386/i386.c (ix86_print_operand): Ditto.
12393
5306401f
VM
123942013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12395
6edc3e32 12396 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 12397
027ece11
VM
123982013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12399
12400 PR rtl-optimization/56225
12401 * lra-constraints.c (process_alt_operands): Check that reload hard
12402 reg can hold value for strict_low_part.
12403
f980dfdb
JJ
124042013-02-07 Jakub Jelinek <jakub@redhat.com>
12405
12406 PR debug/56154
12407 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12408 dwarf2out_end_function.
12409 (in_first_function_p, maybe_at_text_label_p,
12410 first_loclabel_num_not_at_text_label): New variables.
12411 (dwarf2out_var_location): In the first function find out
6edc3e32 12412 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
12413 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12414 functions.
12415
73dd3123
EB
124162013-02-07 Eric Botcazou <ebotcazou@adacore.com>
12417
12418 PR rtl-optimization/56178
12419 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12420 SUBREG of a register. Tidy up related block of code.
12421 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12422 note if the source is a register or a SUBREG of a register.
12423
e3936f47
JJ
124242013-02-07 Jakub Jelinek <jakub@redhat.com>
12425
12426 PR target/56228
12427 * config/rs6000/rs6000.md (ptrm): New mode attr.
12428 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12429 call_value_indirect_aix<pttrsize>,
12430 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12431 m in constraints.
12432
d96d674b
MH
124332013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12434
12435 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12436 if -bnortl. Convert to strcmp and strncmp.
12437
921f2dee
AM
124382013-02-07 Alan Modra <amodra@gmail.com>
12439
12440 PR target/54009
12441 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
12442 addresses won't wrap when offsetting.
12443 (rs6000_secondary_reload): Provide secondary reloads needed for
12444 wrapping LO_SUM addresses.
12445
d09c7dba
TS
124462013-02-06 Thomas Schwinge <thomas@codesourcery.com>
12447
12448 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
12449 MACH, just __MACH__.
12450
a44bbd48
RB
124512013-02-06 Richard Biener <rguenther@suse.de>
12452
12453 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
12454 instead of calling fix_loop_structure.
12455
6d840d99
JJ
124562013-02-06 Jakub Jelinek <jakub@redhat.com>
12457
12458 PR middle-end/56217
12459 * omp-low.c (use_pointer_for_field): Return false if
12460 lower_send_shared_vars doesn't generate any copy-out code.
12461
0f33baa9
TV
124622013-02-06 Tom de Vries <tom@codesourcery.com>
12463
12464 PR rtl-optimization/56131
12465 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12466 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
12467 of the label is NULL. Add comment.
12468
11f1e3ab
JJ
124692013-02-05 Jakub Jelinek <jakub@redhat.com>
12470
31502f9f
JJ
12471 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12472
a74db9bd
JJ
12473 PR sanitizer/55374
12474 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
12475 (STATIC_LIBTSAN_LIBS): Likewise.
12476 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
12477 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
12478 is defined, don't add anything else beyond that.
12479 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
12480 (LINK_COMMAND_SPEC): Use them.
12481
11f1e3ab
JJ
12482 PR tree-optimization/56205
12483 * tree-stdarg.c (check_all_va_list_escapes): Return true if
12484 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
12485 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
12486
14ac6aa2
RB
124872013-02-05 Richard Biener <rguenther@suse.de>
12488
12489 PR tree-optimization/53342
12490 PR tree-optimization/53185
12491 * tree-vectorizer.h (vect_check_strided_load): Remove.
12492 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
12493 not disallow peeling for vectorized strided loads.
12494 (vect_check_strided_load): Make static and simplify.
12495 (vect_analyze_data_refs): Adjust.
12496 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
12497 correctly when vectorizing strided loads.
12498
6f22445a
RB
124992013-02-05 Richard Biener <rguenther@suse.de>
12500
12501 * doc/install.texi: Refer to ISL, not PPL.
12502
39f9719e
JH
125032013-02-05 Jan Hubicka <jh@suse.cz>
12504
ec4224ac
JH
12505 PR tree-optimization/55789
12506 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
12507
125082013-02-05 Jan Hubicka <jh@suse.cz>
12509
12510 PR tree-optimization/55789
39f9719e
JH
12511 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
12512 the dead call anyway.
12513
956d3b33
EB
125142013-02-05 Eric Botcazou <ebotcazou@adacore.com>
12515
12516 PR sanitizer/55374
12517 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
12518
125192013-02-04 Alexander Potapenko <glider@google.com>
12520 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
12521 Jakub Jelinek <jakub@redhat.com>
12522
12523 PR sanitizer/55617
12524 * config/darwin.c (sort_ctor_records): Stabilized qsort
12525 on constructor priority by using original position.
12526 (finalize_ctors): New routine to sort constructors by
12527 priority before use in assemble_integer.
12528 (machopic_asm_out_constructor): Use finalize_ctors if needed.
12529
7ac3af38
JJ
125302013-02-04 Jakub Jelinek <jakub@redhat.com>
12531
12532 PR libstdc++/54314
12533 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
12534 about visibility on artificial decls.
12535 * config/sol2.c (solaris_assemble_visibility): Likewise.
12536
152689dc
KT
125372013-02-04 Kai Tietz <ktietz@redhat.com>
12538
12539 PR target/56186
12540 * config/i386/i386.c (function_value_ms_64): Add additional valtype
12541 argument and improve checking of return-argument types for 16-byte
12542 modes.
12543 (ix86_function_value_1): Add additional valtype argument on call
12544 of function_value_64.
12545 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
12546 handling infunction_value_64 function.
12547
2b5987b5
MGD
125482013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12549
7ac3af38 12550 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 12551
14597080
RB
125522013-02-04 Richard Biener <rguenther@suse.de>
12553
12554 PR tree-optimization/56188
12555 * tree-ssa-structalias.c (label_visit): Consider case with
12556 initially non-empty points-to set.
12557 (perform_var_substitution): Dump node mapping and clean up.
12558
ed73881e
RG
125592013-02-04 Richard Guenther <rguenther@suse.de>
12560
12561 PR lto/56168
12562 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
12563 node prevail as last resort.
12564 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 12565 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 12566
139a0707
RB
125672013-02-04 Richard Biener <rguenther@suse.de>
12568
12569 PR tree-optimization/56113
12570 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
12571 Merge into ...
12572 (equiv_class_lookup_or_add): ... this.
12573 (label_visit): Adjust and fix error in previous patch.
12574 (perform_var_substitution): Adjust.
12575
50fe8924
OE
125762013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
12577
12578 * config/sh/divtab.c: Fix formatting and comments throughout the file.
12579 * config/sh/sh4-300.md: Likewise.
12580 * config/sh/sh4a.md: Likewise.
12581 * config/sh/constraints.md: Likewise.
12582 * config/sh/sh.md: Likewise.
12583 * config/sh/netbsd-elf.h: Likewise.
12584 * config/sh/predicates.md: Likewise.
12585 * config/sh/sh-protos.h: Likewise.
12586 * config/sh/ushmedia.h: Likewise.
12587 * config/sh/linux.h: Likewise.
12588 * config/sh/sh.c: Likewise.
12589 * config/sh/superh.h: Likewise.
12590 * config/sh/elf.h: Likewise.
12591 * config/sh/sh4.md: Likewise.
12592 * config/sh/sh.h: Likewise.
12593
1a04ac2b
JDA
125942013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12595
12596 * config/pa/constraints.md: Adjust unused letters. Change "T"
12597 constraint to match_test floating_point_store_memory_operand().
12598 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
12599 (base14_operand): New.
12600 (floating_point_store_memory_operand): New.
12601 (integer_store_memory_operand): Revise to use base14_operand and
12602 reg_plus_base_memory_operand.
12603 (move_dest_operand): Allow symbolic_memory_operands.
12604 (symbolic_memory_operand): Check for LO_SOM.
12605 (symbolic_operand): Change default case to break.
12606 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
12607 CONST_DOUBLE values to be reloaded by putting them into memory when
12608 the destination is a floating point register.
12609 (movdf): Remove code to handle CONST_DOUBLE.
12610 (movsf): Likewise.
12611 (reload_indf_r1): New.
12612 (reload_insf_r1): New.
12613 Consistently use "Q" and "T" constraints with integer and floating
12614 point move instructions, respectively.
12615 (movdi): Remove FAIL.
12616 Change predicate for source operand unamed DImode move from
12617 general_operand to move_src_operand.
12618 (umulsidi3): Change predicate for destination operand to
12619 register_operand.
12620 Likewise for similar unamed patterns.
12621 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
12622 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
12623 (hppa_legitimize_address): Simplify mask calculation.
12624 (pa_emit_move_sequence): Revised handling of secondary reloads from
12625 REG+D addresses for floating point loads and stores. Directly handle
12626 loading CONST0_RTX (mode) to a floating point register.
12627 (pa_secondary_reload): Handle reloading DF and SFmode constant values
12628 to floating point registers. Don't restrict secondary reloads to
12629 floating point registers to integer modes. Revise some comments and
12630 cleanup some code.
12631 (TARGET_LEGITIMATE_ADDRESS_P): Define.
12632 (pa_legitimate_address_p): New.
12633 (pa_legitimize_reload_address): New.
12634 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
12635 (STRICT_REG_OK_FOR_BASE_P): New.
12636 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
12637 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
12638
3bf65591
DE
126392013-02-03 David Edelsohn <dje.gcc@gmail.com>
12640 Andrew Dixie <andrewd@gentrack.com>
12641
12642 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
12643 flag set.
12644
c0a8a3e6
RS
126452013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
12646
12647 * expmed.c (extract_bit_field_1): Pass the full width of the
12648 structure to get_best_reg_extraction_insn.
12649
99113dff
DE
126502013-02-01 David Edelsohn <dje.gcc@gmail.com>
12651
12652 PR target/54601
12653 * configure.ac (use_cxa_atexit): Add AIX.
12654 * configure: Regenerate.
12655
12656 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
12657
ddd84654
JJ
126582013-02-01 Jakub Jelinek <jakub@redhat.com>
12659
12660 PR debug/54793
12661 * final.c (need_profile_function): New variable.
12662 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
12663 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
12664 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
12665 notes, targetm.asm_out.function_prologue doesn't emit anything,
12666 HAVE_prologue and profiler should be emitted before prologue,
12667 set need_profile_function instead of emitting it.
12668 (final_scan_insn): If need_profile_function, emit
12669 profile_function on the first NOTE_INSN_BASIC_BLOCK or
12670 NOTE_INSN_FUNCTION_BEG note.
12671
126722013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
12673
12674 * config/rs6000/rs6000.md (smulditi3): New.
12675 (umulditi3): New.
12676
ff2a9d88
RH
12677 * config/alpha/alpha.md (umulditi3): New.
12678
14d52b90
DE
126792013-02-01 David Edelsohn <dje.gcc@gmail.com>
12680
12681 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
12682 (ASM_OUTPUT_ALIGNED_LOCAL): New.
12683
8c7ca45c
RB
126842013-02-01 Richard Biener <rguenther@suse.de>
12685
12686 PR tree-optimization/56113
12687 * tree-ssa-structalias.c (label_visit): Reduce work for
12688 single-predecessor nodes.
12689
9f419393
EB
126902013-02-01 Eric Botcazou <ebotcazou@adacore.com>
12691
12692 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
12693 range isn't testing for zero.
12694
c5f4be84
SB
126952013-01-31 Steven Bosscher <steven@gcc.gnu.org>
12696
12697 PR middle-end/56113
12698 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
12699
dbdbd982
NC
127002013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
12701 Nick Clifton <nickc@redhat.com>
12702
12703 * config/v850/constraints.md (Q): Define as a memory constraint.
12704 * config/v850/predicates.md (label_ref_operand): New predicate.
12705 (e3v5_shift_operand): New predicate.
12706 (ior_operator): New predicate.
12707 * config/v850/t-v850: Add e3v5 multilib.
12708 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
12709 (v850_gen_movdi): Prototype.
12710 * config/v850/v850.c: Add support for e3v5 architecture.
12711 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
12712 TARGET_V850E_UP.
12713 (construct_save_jarl): Add e3v5 long JARL support.
12714 (v850_adjust_insn_length): New function. Adjust length of call
12715 insns when using e3v5 instructions.
12716 (v850_gen_movdi): New function: Generate instructions to move a
12717 DImode value.
12718 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
12719 (CPP_SPEC): Define __v850e3v5__ as appropriate.
12720 (TARGET_USE_FPU): Enable for e3v5.
12721 (CONST_OK_FOR_W): New macro.
12722 (ADJUST_INSN_LENGTH): Define.
12723 * config/v850/v850.md (UNSPEC_LOOP): Define.
12724 (attr cpu): Add v850e3v5.
12725 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12726 (movdi): New pattern.
12727 (movdi_internal): New pattern.
12728 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12729 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12730 (cstoresf4): Likewise.
12731 (cstoredf4): Likewise.
12732 (insv): New pattern.
12733 (rotlso3_a): New pattern.
12734 (rotlsi3_b): New pattern
12735 (rotlsi3_v850e3v5): New pattern.
12736 (doloop_begin): New pattern.
12737 (fix_loop_counter): New pattern.
12738 (doloop_end): New pattern.
12739 (branch_normal): Add e3v5 long branch support.
12740 (branch_invert): Likewise.
12741 (branch_z_normal): Likewise.
12742 (branch_z_invert): Likewise.
12743 (branch_nz_normal): Likewise.
12744 (branch_nz_invert): Likewise.
12745 (call_internal_short): Add e3v5 register-indirect JARL support.
12746 (call_internal_long): Likewise.
12747 (call_value_internal_short): Likewise.
12748 (call_value_internal_long): Likewise.
12749 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12750 (mloop): New option.
12751 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 12752 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 12753
73861a41
PK
127542013-01-31 Paul Koning <ni1d@arrl.net>
12755
12756 PR debug/55059
12757 PR debug/54508
12758 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12759 children if parent is a class.
12760 (prune_unused_types_prune): Don't add DW_AT_declaration.
12761
e44978dc
RB
127622013-01-31 Richard Biener <rguenther@suse.de>
12763
12764 PR tree-optimization/56157
12765 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12766 match up operand with SLP child.
12767
90b10dec
JM
127682013-01-31 Jason Merrill <jason@redhat.com>
12769
04d2dadd 12770 PR debug/54410
90b10dec
JM
12771 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12772 parameters the first time.
12773 (gen_scheduled_generic_parms_dies): Check completeness here.
12774
6e616110
RB
127752013-01-31 Richard Biener <rguenther@suse.de>
12776
12777 PR middle-end/53073
12778 * common.opt (faggressive-loop-optimizations): New flag,
12779 enabled by default.
12780 * doc/invoke.texi (faggressive-loop-optimizations): Document.
12781 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12782 infer_loop_bounds_from_undefined by it.
12783
636f59cf
RB
127842013-01-31 Richard Biener <rguenther@suse.de>
12785
12786 PR tree-optimization/56150
12787 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12788 visit virtual operands.
12789 (find_uses_to_rename_bb): Likewise.
12790
127912013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
12792
12793 PR tree-optimization/56150
12794 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12795 mixed store non-store stmts.
12796
32887460
JJ
127972013-01-30 Jakub Jelinek <jakub@redhat.com>
12798
e60e09a0
JJ
12799 PR sanitizer/55374
12800 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12801 LIBASAN_EARLY_SPEC is defined.
12802 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12803 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12804 before %o.
12805 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12806
32887460
JJ
12807 PR c++/55742
12808 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12809 invalid args instead of ICEing on it.
12810 (ix86_valid_target_attribute_tree): Return error_mark_node if
12811 ix86_valid_target_attribute_inner_p failed.
12812 (ix86_valid_target_attribute_p): Return false only if
12813 ix86_valid_target_attribute_tree returned error_mark_node. Allow
12814 target("default") attribute.
12815 (sorted_attr_string): Change argument from const char * to tree,
12816 merge in all target attribute arguments rather than just one.
12817 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
12818 instead of free. Avoid using strcat.
12819 (ix86_mangle_function_version_assembler_name): Mangle
12820 target("default") as if no target attribute is present. Adjust
12821 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
12822 instead of xmalloc and XDELETEVEC instead of free.
12823 (ix86_function_versions): Don't return true if one of the decls
12824 doesn't have target attribute. If they don't and one of the decls
12825 is DECL_FUNCTION_VERSIONED, report an error. Adjust
12826 sorted_attr_string caller. Use XDELETEVEC instead of free.
12827 (ix86_supports_function_versions): Remove.
12828 (make_name): Fix up formatting.
12829 (make_dispatcher_decl): Remove resolver_name and its initialization.
12830 Avoid leaking memory.
12831 (is_function_default_version): Return true if there is
12832 target("default") attribute rather than no target attribute at all.
12833 (make_resolver_func): Avoid leaking memory.
12834 (ix86_generate_version_dispatcher_body): Likewise.
12835 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12836 * target.def (supports_function_versions): Remove.
12837 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12838 * doc/tm.texi: Regenerated.
12839
73cca0cc
VM
128402013-01-30 Vladimir Makarov <vmakarov@redhat.com>
12841
12842 PR rtl-optimization/56144
12843 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12844 for values with side effects.
12845
11452e7b
RB
128462013-01-30 Richard Biener <rguenther@suse.de>
12847
12848 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12849 (sparseset_pop): Likewise.
12850 * cfganal.c (compute_idf): Likewise. Increase work-stack size
12851 to be able to use quick_push in the worker loop.
12852
01cb1ef5
MP
128532013-01-30 Marek Polacek <polacek@redhat.com>
12854
12855 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12856
e892936e
RB
128572013-01-30 Richard Biener <rguenther@suse.de>
12858
12859 PR lto/56147
6edc3e32 12860 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 12861
cc06c01d
GJL
128622013-01-30 Georg-Johann Lay <avr@gjlay.de>
12863
12864 PR tree-optimization/56064
12865 * fixed-value.c (fixed_from_double_int): New function.
12866 * fixed-value.h (fixed_from_double_int): New prototype.
12867 (const_fixed_from_double_int): New static inline function.
12868 * fold-const.c (native_interpret_fixed): New static function.
12869 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12870 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12871 (native_encode_fixed): New static function.
12872 (native_encode_expr) <FIXED_CST>: Use it.
12873 (native_interpret_int): Move double_int worker code to...
12874 * double-int.c (double_int::from_buffer): ...this new static method.
12875 * double-int.h (double_int::from_buffer): Prototype it.
12876
d394a308
RB
128772013-01-30 Richard Biener <rguenther@suse.de>
12878
12879 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12880 New pointer-map and obstack.
12881 (init_alias_vars): Allocate pointer-map and obstack.
12882 (delete_points_to_sets): Free them.
12883 (find_what_var_points_to): Cache result.
12884 (find_what_p_points_to): Adjust for changed interface of
12885 find_what_var_points_to.
12886 (compute_points_to_sets): Likewise.
12887 (ipa_pta_execute): Likewise.
12888
20804d96
RO
128892013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12890
12891 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12892 * configure: Regenerate.
12893 * config.in: Regenerate.
12894 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12895 #nobits/#progbits if supported.
12896
a7ad88a2
OE
128972013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
12898
12899 PR target/56121
12900 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12901 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12902 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12903
7af79f92
GY
129042013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12905
91bfca59
OE
12906 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12907 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 12908
753bcf7b
GY
129092013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12910
91bfca59
OE
12911 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12912 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 12913
8cbc2ea8
GY
129142013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12915
91bfca59
OE
12916 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12917 declaration.
12918 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12919 * config/arm/cortex-a7.md: New bypasses using
12920 arm_mac_accumulator_is_result.
8cbc2ea8 12921
697a3325
GY
129222013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12923
91bfca59 12924 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 12925 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
12926 (cortex_a7_fpfmad): New reservation.
12927 (cortex_a7_fpmacs): Use ffmas and update required units.
12928 (cortex_a7_fpmuld): Update required units and latency.
12929 (cortex_a7_fpmacd): Likewise.
12930 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12931 (cortex_a7_neon). Likewise.
12932 (bypass) Update participating units.
697a3325 12933
29637783
GY
129342013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12935
91bfca59
OE
12936 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12937 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12938 from fmac to ffma.
12939 * config/arm/vfp11.md (vfp_farith): Use ffmas.
12940 (vfp_fmul): Use ffmad.
12941 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12942 (cortex_r4_fmacd): Use ffmad.
12943 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12944 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
12945 (cortex_a9_fmacd): Use ffmad.
12946 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12947 (cortex_a8_vfp_macd): Use ffmad.
12948 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12949 (cortex_a5_fpmacd): Use ffmad.
12950 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12951 (cortex_a15_vfp_macd): Use ffmad.
12952 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 12953
2ee8a2d5
JM
129542013-01-29 Jason Merrill <jason@redhat.com>
12955
12956 PR libstdc++/54314
12957 * varasm.c (default_assemble_visibility): Don't warn about
12958 visibility on artificial decls.
12959
78d087bc
RB
129602013-01-29 Richard Biener <rguenther@suse.de>
12961
12962 PR tree-optimization/56113
12963 * tree-ssa-structalias.c (equiv_class_lookup): Also return
12964 the bitmap leader.
12965 (label_visit): Free duplicate bitmaps and record the leader instead.
12966 (perform_var_substitution): Adjust.
12967
83ba4d6f
RB
129682013-01-29 Richard Biener <rguenther@suse.de>
12969
12970 PR tree-optimization/55270
12971 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12972 the CFG, schedule loops for fixup.
12973
66dfe13f
NC
129742013-01-29 Nick Clifton <nickc@redhat.com>
12975
12976 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12977 SP_REG.
12978
5a579c3b
LE
129792013-01-28 Leif Ekblad <leif@rdos.net>
12980
12981 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12982 * config/i386/i386.h (TARGET_RDOS): New macro.
12983 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12984 * config/i386/i386.c (ix86_option_override_internal): For 64bit
12985 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12986 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12987 DEFAULT_LARGE_SECTION_THRESHOLD.
12988 * config/i386/i386.md (R14_REG, R15_REG): New constants.
12989 * config/i386/rdos.h: New file.
12990 * config/i386/rdos64.h: New file.
12991
51e44392
BS
129922013-01-28 Bernd Schmidt <bernds@codesourcery.com>
12993
12994 PR other/54814
12995 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12996 TEST_HARD_REG_BIT.
12997
db1fb332
JJ
129982013-01-28 Jakub Jelinek <jakub@redhat.com>
12999
13000 PR rtl-optimization/56117
13001 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
13002 call cselib_lookup_from_insn on the MEM before calling
13003 add_insn_mem_dependence.
13004
16917761
RB
130052013-01-28 Richard Biener <rguenther@suse.de>
13006
13007 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
13008 to a stmt that didn't have one.
13009 (copy_phis_for_bb): Likewise for PHI arguments.
13010 (copy_debug_stmt): Likewise for debug stmts.
13011
b9fc0497
RB
130122013-01-28 Richard Biener <rguenther@suse.de>
13013
13014 PR tree-optimization/56034
6edc3e32 13015 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
13016 (partition_builtin_p): Adjust.
13017 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
13018 it is the last partition.
13019 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
13020 up the vertex for the definition.
13021 (classify_partition): Classify whether a partition is a
13022 PKIND_REDUCTION, thus has uses outside of the loop.
13023 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
13024 Merge all PKIND_REDUCTION partitions into the last partition.
13025 (tree_loop_distribution): Seed partitions from reductions as well.
13026
aa710d25
JJ
130272013-01-28 Jakub Jelinek <jakub@redhat.com>
13028
0bfbca58
JJ
13029 PR tree-optimization/56125
13030 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
13031 pow(x,c) into sqrt(x) * powi(x, n/2) or
13032 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
13033 optimizing for size.
13034 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
13035 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
13036 integer.
13037
aa710d25
JJ
13038 PR tree-optimization/56094
13039 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
13040 to UNKNOWN_LOCATION while gimplifying expr.
13041
77dc5297
UB
130422013-01-27 Uros Bizjak <ubizjak@gmail.com>
13043
13044 PR target/56114
13045 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
13046 operand 0 in movabs insn template for -masm=intel asm alternative.
13047 (*movabs<mode>_2): Ditto for operand 1.
13048
0bfbca58 130492013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
13050
13051 PR target/54663
13052 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
13053 of microblaze-c.o
13054
0bfbca58 130552013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
13056
13057 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
13058 tm_file.
13059
0bfbca58 130602013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
13061
13062 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
13063 Undef to avoid warning.
13064
478f60f9
MH
130652013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13066
13067 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
13068 * configure: Regenerate.
13069
d7fa6ee2
JJ
130702013-01-25 Jakub Jelinek <jakub@redhat.com>
13071
13072 PR tree-optimization/56098
13073 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
13074 for stmts with volatile ops.
13075 (cond_store_replacement): Don't optimize if assign has volatile ops.
13076 (cond_if_else_store_replacement_1): Don't optimize if either
13077 then_assign or else_assign have volatile ops.
13078 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
13079 volatile ops.
13080
f8fe87bd
GJL
130812013-01-25 Georg-Johann Lay <avr@gjlay.de>
13082
13083 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
13084
28398d0d
GJL
130852013-01-25 Georg-Johann Lay <avr@gjlay.de>
13086
13087 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
13088 missing ':' in asm example.
13089
b7d7d917
TB
130902013-01-25 Tejas Belagod <tejas.belagod@arm.com>
13091
13092 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
13093 entries into lane and laneq entries.
77dc5297
UB
13094 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
13095 Remove AdvSIMD scalar modes.
b7d7d917
TB
13096 (aarch64_sq<r>dmulh_laneq<mode>): New.
13097 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
13098 modes.
13099 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
13100 builtin implementations to relfect changes in RTL in aarch64-simd.md.
13101 * config/aarch64/iterators.md (VCOND): New.
13102 (VCONQ): New.
13103
556f9906
GJL
131042013-01-25 Georg-Johann Lay <avr@gjlay.de>
13105
13106 PR target/54222
13107 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
13108 Add NULL LIBNAME argument to existing definitions.
13109 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
13110 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
13111 * config/avr/avr.c (DEF_BUILTIN): Same.
13112 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
13113 (avr_expand_builtin): Expand to a vanilla call if a libgcc
13114 implementation is available (DECL_ASSEMBLER_NAME is set).
13115 (avr_fold_absfx): New static function.
13116 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
13117 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
13118 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
13119 AVR_BUILTIN_ABSLLK.
13120 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
13121 (abshk, absk, abslk, absllk): Provide as static inline functions.
13122
1f546bbb
MP
131232013-01-25 Marek Polacek <polacek@redhat.com>
13124
13125 PR tree-optimization/56035
13126 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
13127
7e184bd7
UB
131282012-01-24 Uros Bizjak <ubizjak@gmail.com>
13129
13130 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
13131 (*movtf_internal_rex64): Add (!o,C) alternative
13132 (*movxf_internal_rex64): Ditto.
13133 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
13134
f5ba49ac
SM
131352013-01-24 Shenghou Ma <minux.ma@gmail.com>
13136
13137 * doc/invoke.texi: fix typo.
13138 * doc/objc.texi: fix typo.
13139
a6343728
RS
131402013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
13141
13142 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
13143 for the first two alternatives.
13144
cd030c07
DN
131452013-01-24 Diego Novillo <dnovillo@google.com>
13146
77dc5297 13147 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
13148 (ggc-zone.o): Remove.
13149 * configure.ac: Remove option --with-gc.
13150 * configure: Re-generate.
13151 * doc/install.texi: Remove documentation for --with-gc.
13152 * gengtype.c (write_enum_defn): Remove. Update all users.
13153 (write_Types_process_field): Remove generation of gt_e_* argument.
13154 (output_type_enum): Remove. Update all users.
13155 (write_enum_defn): Remove. Update all users.
13156 (enum alloc_zone): Remove. Update all users.
77dc5297 13157 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
13158 * ggc-common.c (ggc_splay_alloc): Remove first argument.
13159 Update all callers.
13160 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 13161 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
13162 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
13163 Update all users.
aaf1e810 13164 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
13165 (struct alloc_zone): Remove.
13166 (ggc_internal_alloc_zone_stat): Remove.
13167 (ggc_internal_cleared_alloc_zone_stat): Remove.
13168 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
13169 (ggc_pch_count_object): Remove last argument. Update all users.
13170 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
13171 (struct alloc_zone): Remove.
13172 * ggc-zone.c: Remove.
77dc5297 13173 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
13174 (struct alloc_zone): Remove.
13175 (ggc_alloc_typed_stat): Remove.
13176 (ggc_alloc_typed): Remove.
13177 (ggc_splay_alloc): Remove first argument.
13178 (rtl_zone): Remove. Update all users.
13179 (tree_zone): Remove. Update all users.
13180 (tree_id_zone): Remove. Update all users.
13181 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 13182 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 13183 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 13184 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 13185
a861ffa4
GJL
131862013-01-24 Georg-Johann Lay <avr@gjlay.de>
13187
13188 * config/avr/avr.c (avr_out_fract): Make register numbers that
13189 might be outside of source operand signed.
13190
593c0ddd
UB
131912013-01-24 Uros Bizjak <ubizjak@gmail.com>
13192
13193 * config/i386/constraints.md (Yf): New constraint.
13194 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
13195 of f constraint to conditionaly disable x87 register preferences.
13196 (*movdf_internal): Ditto.
13197 (*movsf_internal): Ditto.
13198
e86c0101
SB
131992013-01-24 Steven Bosscher <steven@gcc.gnu.org>
13200
13201 PR inline-asm/55934
13202 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
13203 that have operands with impossible constraints.
13204 Add a FIXME for a speed-up opportunity.
13205 * lra-constraints.c (process_alt_operands): Verify that a class
13206 selected from constraints on asms is valid for the operand mode.
13207 (curr_insn_transform): Remove incorrect comment.
13208
f6fee35f
DE
132092013-01-23 David Edelsohn <dje.gcc@gmail.com>
13210
13211 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
13212 TOC operand is a valid symbol ref in the constant pool.
13213
132142013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 13215
aaf1e810 13216 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 13217
dc62d7d1
GJL
132182013-01-23 Georg-Johann Lay <avr@gjlay.de>
13219
13220 PR target/54222
13221 * config/avr/stdfix.h: New file.
13222 * t-avr (stdfix-gcc.h): New rule to build it.
13223 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
13224
2660d12d
KS
132252013-01-23 Kostya Serebryany <kcc@google.com>
13226
77dc5297
UB
13227 * config/darwin.h: remove dependency on
13228 CoreFoundation (asan on Mac OS).
2660d12d 13229
a70418fc
JJ
132302013-01-23 Jakub Jelinek <jakub@redhat.com>
13231
13232 PR target/49069
13233 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
13234 instead of cmpdi_operand for first comparison operand.
13235 Don't assert that comparison operands aren't both constants.
13236
47876a2a
JW
132372013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
13238
13239 * doc/install.texi (Downloading the Source): Update references to
13240 downloading separate components.
13241
132422013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
13243
13244 * doc/extend.texi (__int128): Improve grammar.
13245
47876a2a 132462013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
13247
13248 PR target/56028
13249 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
13250 alternative to (o,r).
13251 (*movdi_internal_rex64): Remove (!o,n) alternative.
13252 (DImode immediate->memory splitter): Remove.
13253 (DImode immediate->memory peephole2): Remove.
13254 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
13255 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
13256 alternative to (!o,*r).
13257 (*movtf_internal_sse): New pattern.
13258 (*movxf_internal_rex64): New pattern.
13259 (*movxf_internal): Disable for TARGET_64BIT.
13260 (*movdf_internal_rex64): Remove (!o,F) alternative.
13261
3a984f10
JJ
132622013-01-22 Jakub Jelinek <jakub@redhat.com>
13263
502498d5
JJ
13264 PR middle-end/56074
13265 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
13266 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
13267 * tree-vect-loop-manip.c (find_loop_location): Also ignore
13268 stmt locations where LOCATION_LOCUS of the stmt location is
13269 UNKNOWN_LOCATION or BUILTINS_LOCATION.
13270
3a984f10
JJ
13271 PR target/55686
13272 * config/i386/i386.md (UNSPEC_STOS): New.
13273 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13274 *strsetqi_1): Add UNSPEC_STOS.
13275
fa817f7f
PC
132762013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
13277
13278 PR c++/56067
13279 * doc/invoke.texi: Remove left over -Wsynth example.
13280
8f498c1b
JJ
132812013-01-21 Jakub Jelinek <jakub@redhat.com>
13282
13283 PR tree-optimization/56051
13284 * fold-const.c (fold_binary_loc): Don't fold
13285 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13286 a narrowing conversion, or widening conversion from signed
13287 to unsigned.
13288
47876a2a 132892013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
13290
13291 PR rtl-optimization/56023
13292 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13293 dependent on debug instruction.
13294
5b9db1bc
MJ
132952013-01-21 Martin Jambor <mjambor@suse.cz>
13296
13297 PR middle-end/56022
13298 * function.c (allocate_struct_function): Call
13299 invoke_set_current_function_hook earlier.
13300
e8bb7d68
JJ
133012013-01-21 Jakub Jelinek <jakub@redhat.com>
13302
13303 * reload1.c (init_reload): Only initialize reload_obstack
13304 during the first call.
13305
616a4e32
MP
133062013-01-21 Marek Polacek <polacek@redhat.com>
13307
13308 * cfgloop.c (verify_loop_structure): Fix up grammar.
13309
4401981b
YHH
133102013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
13311
13312 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13313 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13314
8e87740b
RR
133152013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13316
13317 PR target/56058
13318 * config/arm/marvell-pj4.md: Update copyright year.
13319 Fix up use of alu to alu_reg and simple_alu_imm.
13320
47876a2a 133212013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
13322
13323 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13324
89d56d79
VM
133252013-01-20 Vladimir Makarov <vmakarov@redhat.com>
13326
13327 PR target/55433
13328 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 13329 insn for secondary memory move when memory mode should be different.
89d56d79 13330
fe603553
JDA
133312013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13332
13333 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13334 atomic_storedi_1): New patterns.
13335
01284895
VK
133362013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13337
13338 btver2 pipeline descriptions.
13339 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13340 descriptions.
13341 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 13342 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
13343 type attributes.
13344 * config/i386/btver2.md: New file describing btver2 pipelines.
13345
5630e3e1
JL
133462013-01-19 Andrew Pinski <apinski@cavium.com>
13347
13348 PR tree-optimization/52631
13349 * tree-ssa-sccvn (visit_use): Before looking up the original
13350 statement, try looking up the simplified expression.
13351
650ae806
AG
133522013-01-19 Anthony Green <green@moxielogic.com>
13353
13354 * config/moxie/moxie.c (moxie_expand_prologue): Set
13355 current_function_static_stack_size.
13356
e300ec2d
JJ
133572013-01-18 Jakub Jelinek <jakub@redhat.com>
13358
13359 PR tree-optimization/56029
13360 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13361 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13362
a3d7af04
SS
133632013-01-18 Sharad Singhai <singhai@google.com>
13364
13365 PR tree-optimization/55995
13366 * dumpfile.c (dump_loc): Print location only if available.
13367 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13368
66aa7879
VM
133692013-01-18 Vladimir Makarov <vmakarov@redhat.com>
13370
13371 PR target/55433
13372 * lra-constraints.c (curr_insn_transform): Reuse original insn for
13373 secondary memory move.
13374 (inherit_reload_reg): Use rclass instead of cl for
13375 check_secondary_memory_needed_p.
13376
3f0fee7b
JJ
133772013-01-18 Jakub Jelinek <jakub@redhat.com>
13378
13379 PR middle-end/56015
13380 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 13381 the case where writing real complex part of target modifies op1.
3f0fee7b 13382
70c67693
JG
133832013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
13384
13385 * config/aarch64/aarch64-simd.md
13386 (aarch64_vcond_internal<mode>): Handle unordered cases.
13387 * config/aarch64/iterators.md (v_cmp_result): New.
13388
df8de9b3
YHH
133892013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
13390 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13391
13392 * config/arm/marvell-pj4.md: New file.
13393 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13394 * config/arm/arm.md (generic_sched): Add marvell_pj4.
13395 (generic_vfp): Likewise.
13396 * config/arm/arm-cores.def: Add marvell-pj4.
13397 * config/arm/arm-tune.md: Regenerate.
13398 * config/arm/arm-tables.opt: Regenerate.
13399 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13400 * doc/invoke.texi: Document marvell-pj4.
13401
be30c356
TB
134022013-01-18 Tejas Belagod <tejas.belagod@arm.com>
13403
13404 * config/aarch64/arm_neon.h: Map scalar types to standard types.
13405
0bfbca58 134062013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
13407
13408 PR debug/54114
13409 PR debug/54402
13410 PR debug/49888
13411 * var-tracking.c (negative_power_of_two_p): New.
13412 (global_get_addr_cache, local_get_addr_cache): New.
13413 (get_addr_from_global_cache, get_addr_from_local_cache): New.
13414 (vt_canonicalize_addr): Rewrite using the above. Adjust the
13415 heading comment.
13416 (vt_stack_offset_p): Remove.
13417 (vt_canon_true_dep): Always canonicalize loc's address.
13418 (clobber_overlapping_mems): Make sure we have a MEM.
13419 (local_get_addr_clear_given_value): New.
13420 (val_reset): Clear local cached entries.
13421 (compute_bb_dataflow): Create and release the local cache.
13422 Disable duplicate MEMs clobbering.
13423 (emit_notes_in_bb): Clobber MEMs likewise.
13424 (vt_emit_notes): Create and release the local cache.
13425 (vt_initialize, vt_finalize): Create and release the global
13426 cache, respectively.
1f6bc337 13427 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 13428
0bfbca58 134292013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
13430
13431 PR libmudflap/53359
13432 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13433 not found in the symtab.
13434
0bfbca58 134352013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 13436
c350ba53 13437 PR debug/56006
3aa03517
AO
13438 PR rtl-optimization/55547
13439 PR rtl-optimization/53827
13440 PR debug/53671
13441 PR debug/49888
13442 * alias.c (offset_overlap_p): New, factored out of...
13443 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
13444 the conservative special case for symbolic constants. Don't
13445 adjust zero sizes on alignment.
13446
c664546f
JL
134472013-01-18 Bernd Schmidt <bernds@codesourcery.com>
13448
13449 PR rtl-optimization/52573
13450 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
13451 REG_UNUSED for the same register.
13452
1bd3f750
MP
134532013-01-17 Richard Biener <rguenther@suse.de>
13454 Marek Polacek <polacek@redhat.com>
13455
13456 PR rtl-optimization/55833
13457 * loop-unswitch.c (unswitch_loops): Move loop verification...
13458 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
13459 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13460 Set it to true when we're removing a loop from hierarchy tree in
13461 an irreducible region.
13462 (fix_bb_placements): Adjust caller.
13463 (fix_loop_placements): Likewise.
13464
e52a8b71
GJL
134652013-01-17 Georg-Johann Lay <avr@gjlay.de>
13466
13467 * config/avr/builtins.def (DEF_BUILTIN): Factor out
13468 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13469 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13470 Remove ID. Adjust comments.
13471 * config/avr/avr-c.c (avr_builtin_name): Remove.
13472 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13473 * config/avr/avr.c (avr_tolower): New static function.
13474 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
13475 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
13476 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
13477 default expansion.
13478
8386a7ea
JH
134792013-01-17 Jan Hubicka <jh@suse.cz>
13480
610fb637 13481 PR tree-optimization/55273
8386a7ea
JH
13482 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
13483
47876a2a 134842013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
13485
13486 PR target/55981
13487 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
13488 store through atomic_store<mode>_1.
13489 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
13490
8222c37e
MJ
134912013-01-17 Martin Jambor <mjambor@suse.cz>
13492
13493 PR tree-optimizations/55264
13494 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
13495 for virtual methods.
13496 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
13497 virtual methods before inlining is over.
13498 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
13499 virtual functions.
13500 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
13501 non-virtual.
13502
79f01c76
VM
135032013-01-16 Vladimir Makarov <vmakarov@redhat.com>
13504
13505 PR rtl-optimization/56005
13506 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
13507 pending reads for prefetch.
13508
d0b6bb1b
IB
135092013-01-16 Ian Bolton <ian.bolton@arm.com>
13510
aaf1e810 13511 * config/aarch64/aarch64.md
d0b6bb1b
IB
13512 (*cstoresi_neg_uxtw): New pattern.
13513 (*cmovsi_insn_uxtw): New pattern.
13514 (*<optab>si3_uxtw): New pattern.
13515 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
13516 (*<optab>si3_insn_uxtw): New pattern.
13517 (*bswapsi2_uxtw): New pattern.
13518
cb9cf03b
RB
135192013-01-16 Richard Biener <rguenther@suse.de>
13520
13521 * tree-inline.c (tree_function_versioning): Remove set but
13522 never used variable.
13523
2cfc56b9
RB
135242013-01-16 Richard Biener <rguenther@suse.de>
13525
13526 PR tree-optimization/55964
13527 * tree-flow.h (rename_variables_in_loop): Remove.
13528 (rename_variables_in_bb): Likewise.
13529 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
13530 (copy_loop_before): Adjust and delete update-ssa status.
13531 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 13532 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
13533 (rename_variables_in_loop): Remove.
13534 (slpeel_update_phis_for_duplicate_loop): Likewise.
13535 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
13536 use available cfg machinery instead of duplicating it.
13537 Update PHI nodes and perform poor-mans SSA update here.
13538 (slpeel_tree_peel_loop_to_edge): Adjust.
13539
c25a0c60
RB
135402013-01-16 Richard Biener <rguenther@suse.de>
13541
13542 PR tree-optimization/54767
13543 PR tree-optimization/53465
13544 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
13545 (vrp_visit_phi_node): For PHI arguments coming via backedges
13546 drop all symbolical range information.
13547 (execute_vrp): Compute backedges.
13548
04b535af
RB
135492013-01-16 Richard Biener <rguenther@suse.de>
13550
13551 * doc/install.texi: Update CLooG and ISL requirements to
13552 0.18.0 and 0.11.1.
13553
8b0a1e0b
CB
135542013-01-16 Christian Bruel <christian.bruel@st.com>
13555
13556 PR target/55301
13557 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
13558 (broken_move): Handle UNSPECV_SP_SWITCH_B.
13559 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
13560
135612013-01-16 DJ Delorie <dj@redhat.com>
13562
13563 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13564 (UNSPECV_SP_SWITCH_E): New.
13565 (sp_switch_1): Change to an unspec.
13566 (sp_switch_2): Change to an unspec. Don't use post-inc when we
13567 replace $r15.
13568
135692013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
13570
13571 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
13572 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
13573 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
13574 (expand_mem_thread_fence): Ditto.
13575 (expand_mem_signal_fence): Ditto.
13576 (expand_atomic_load): Ditto.
13577 (expand_atomic_store): Ditto.
13578
0bfbca58 135792013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
13580
13581 PR rtl-optimization/55547
13582 PR rtl-optimization/53827
13583 PR debug/53671
13584 PR debug/49888
13585 * alias.c (memrefs_conflict_p): Set sizes to negative after
13586 AND adjustments.
13587
305e3ac1
JJ
135882013-01-15 Jakub Jelinek <jakub@redhat.com>
13589
13590 PR target/55940
13591 * function.c (thread_prologue_and_epilogue_insns): Always
13592 add crtl->drap_reg to set_up_by_prologue.set, even if
13593 stack_realign_drap is false.
13594
f78ac4f2
JBG
135952013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13596
13597 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
13598 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
13599 *call): Fix indention.
13600
a78a8cc4
TV
136012013-01-15 Tom de Vries <tom@codesourcery.com>
13602
13603 PR target/55876
13604 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
13605 Update comment.
13606
0e80383f
VM
136072013-01-15 Vladimir Makarov <vmakarov@redhat.com>
13608
305e3ac1 13609 PR rtl-optimization/55153
0e80383f
VM
13610 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
13611
207b5956
MJ
136122013-01-15 Martin Jambor <mjambor@suse.cz>
13613
13614 PR tree-optimization/55920
13615 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
13616 accesses as grp_to_be_debug_replaced.
13617
a7818b54
JJ
136182013-01-15 Jakub Jelinek <jakub@redhat.com>
13619
13620 PR tree-optimization/55920
13621 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
13622 there is non-useless type conversion needed from debug rhs to lhs,
13623 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
13624
b0fe107e
JM
136252013-01-15 Joseph Myers <joseph@codesourcery.com>
13626 Mikael Pettersson <mikpe@it.uu.se>
13627
13628 PR target/43961
13629 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
13630 Thumb.
13631 (ASM_OUTPUT_CASE_LABEL): Remove.
13632 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
13633 * final.c (shorten_branches): Update alignment of labels before
13634 jump tables if CASE_VECTOR_SHORTEN_MODE.
13635
34ab62ee
RB
136362013-01-15 Richard Biener <rguenther@suse.de>
13637
13638 PR bootstrap/55961
13639 * system.h: Do not include gmp.h for building host tools.
13640
783a3a05
RB
136412013-01-15 Richard Biener <rguenther@suse.de>
13642
13643 PR middle-end/55882
13644 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
13645 account for bitpos when computing alignment.
13646
3a579e09
VY
136472013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
13648
13649 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
13650 (ix86_target_macros_internal): Likewise.
13651
13652 * config/i386/i386.c (m_CORE2I7): Removed.
13653 (m_CORE_HASWELL): New macro.
13654 (m_CORE_ALL): Likewise.
13655 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
13656 (initial_ix86_arch_features): Likewise.
13657 (processor_target_table): Initializations for Core avx2.
13658 (cpu_names): New names "core-avx2".
13659 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
13660 PROCESSOR_CORE_HASWELL.
13661 (ix86_issue_rate): New case.
13662 (ia32_multipass_dfa_lookahead): Likewise.
13663 (ix86_sched_init_global): Likewise.
13664
13665 * config/i386/i386.h (TARGET_HASWELL): New macro.
13666 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
13667 (processor_type): New PROCESSOR_HASWELL.
13668
955f5a07
JJ
136692013-01-15 Jakub Jelinek <jakub@redhat.com>
13670
ff784829
JJ
13671 PR tree-optimization/55955
13672 * tree-vect-loop.c (vectorizable_reduction): Give up early on
13673 *SHIFT_EXPR and *ROTATE_EXPR codes.
13674
955f5a07
JJ
13675 PR tree-optimization/48766
13676 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
13677 -ftrapv disable -fwrapv.
13678
aeb8b4e9
GJL
136792013-01-14 Georg-Johann Lay <avr@gjlay.de>
13680
13681 PR target/55974
13682 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
13683 etc. to 1 and not to __flash.
13684 Use LL suffix for __INT24_MAX__ with -mint8.
13685 Use ULL suffix for __UINT24_MAX__ with -mint8.
13686
1c494c6a
GJL
136872013-01-14 Georg-Johann Lay <avr@gjlay.de>
13688
13689 * config/avr/avr-arch.h
13690 (struct base_arch_s): Use typedef avr_arch_t instead.
13691 (struct arch_info_s): Use typedef avr_arch_info_t instead.
13692 (struct mcu_type_s): Use typedef avr_mcu_t instead.
13693 * config/avr/avr.c: Same.
13694 * config/avr/avr-devices.c: Same.
13695 * config/avr/driver-avr.c: Same.
13696 * config/avr/gen-avr-mmcu-texi.c: Same.
13697 * config/avr/avr-mcus.def: Adjust comment.
13698
a50344cb
TB
136992013-01-14 Tejas Belagod <tejas.belagod@arm.com>
13700
88e784e6
UB
13701 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
13702 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 13703
47876a2a 137042013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
13705 Andi Kleen <ak@linux.intel.com>
13706
13707 PR target/55948
13708 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
13709 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
13710 memmodel flag.
13711
00892272
GJL
137122013-01-14 Georg-Johann Lay <avr@gjlay.de>
13713
13714 * config/avr/avr-stdint.h: Remove trailing blanks.
13715 * config/avr/avr-log.h: Same.
13716 * config/avr/avr-arch.h: Same.
13717 * config/avr/avr-devices.c: Same.
13718 * config/avr/avr-dimode.md: Same.
13719 * config/avr/predicates.md: Same.
13720 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 13721
00892272
GJL
13722 * config/avr/avr-protos.h: Same. And:
13723 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13724 (init_cumulative_args): Rename to avr_init_cumulative_args.
13725 (expand_prologue): Rename to avr_expand_prologue.
13726 (expand_epilogue): Rename to avr_expand_epilogue.
13727 (adjust_insn_length): Rename to avr_adjust_insn_length.
13728 (notice_update_cc): Rename to avr_notice_update_cc.
13729 (final_prescan_insn): Rename to avr_final_prescan_insn.
13730 * config/avr/avr.c: Same.
13731 * config/avr/avr.h: Same.
13732 * config/avr/avr.md: Remove trailing blanks.
13733 (prologue): Use avr_expand_prologue.
13734 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13735
7bb01996
RB
137362013-01-14 Richard Biener <rguenther@suse.de>
13737
13738 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13739 verify_location, collect_subblocks): New functions.
13740 (verify_gimple_in_cfg): Verify that locations only reference
13741 BLOCKs in the functions BLOCK tree.
13742
2724573f
RB
137432013-01-14 Richard Biener <rguenther@suse.de>
13744
13745 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13746 PHI argument.
13747 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13748 unshare reference.
13749 (insert_out_of_ssa_copy_on_edge): Likewise.
13750 (rewrite_close_phi_out_of_ssa): Likewise.
13751 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13752 debug expressions.
13753 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13754 propagated constants.
13755 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13756 can not be shared.
13757
9a0bbab6
GJL
137582013-01-14 Georg-Johann Lay <avr@gjlay.de>
13759
13760 * config/avr/avr-modes.def: Add GPL copyright notice.
13761
45805f17
UB
137622013-01-13 Uros Bizjak <ubizjak@gmail.com>
13763
13764 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13765 MEMMODEL_MASK to determine memory model.
13766 (atomic_store<mode>): Ditto from operands[2].
13767 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13768
9d60be38
JJ
137692013-01-13 Jakub Jelinek <jakub@redhat.com>
13770
13771 PR fortran/55935
45805f17 13772 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
13773 (fold_gimple_assign): Don't call unshare_expr here.
13774 (fold_ctor_reference): Call unshare_expr.
13775
e7f49d92
TG
137762013-01-13 Terry Guo <terry.guo@arm.com>
13777
aaf1e810
EB
13778 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13779 * doc/fragments.texi: Document MULTILIB_REUSE.
13780 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 13781 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 13782 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
13783 (tmpmultilib4): Ditto.
13784 (multilib_reuse): New multilib argument.
13785
fbd03a27
RS
137862013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
13787
13788 * Makefile.in: Update copyright.
13789
b3681f13
TV
137902013-01-12 Tom de Vries <tom@codesourcery.com>
13791
13792 PR middle-end/55890
13793 * calls.c (expand_call): Check if arg_nr is valid.
13794
3f287e4b
MM
137952013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13796
13797 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13798 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
13799 documentation. Add missing '__' in front of
13800 __builtin_ia32_packssdw256.
3f287e4b 13801
1abcd5eb
AK
138022013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13803
13804 PR target/55719
13805 * config/s390/s390.c (s390_preferred_reload_class): Do not return
13806 NO_REGS for larl operands.
13807 (s390_reload_larl_operand): Use s390_load_address instead of
13808 emit_move_insn.
13809
980d0812
RB
138102013-01-11 Richard Biener <rguenther@suse.de>
13811
13812 * tree-cfg.c (verify_node_sharing_1): Split out from ...
13813 (verify_node_sharing): ... here.
13814 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13815
7cb9fd07
EB
138162013-01-11 Eric Botcazou <ebotcazou@adacore.com>
13817
13818 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13819 Substitute TREECHECKING.
13820 * configure: Regenerate.
13821 * Makefile.in (TREECHECKING): New.
13822
47876a2a 138232013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
13824
13825 PR tree-optimization/44061
13826 * tree-vrp.c (extract_range_basic): Compute zero as
13827 value-range for __builtin_constant_p of function parameters.
13828
d1e082c2
RS
138292013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
13830
45805f17 13831 Update copyright years.
d1e082c2 13832
f85021b0
VM
138332013-01-10 Vladimir Makarov <vmakarov@redhat.com>
13834
9d60be38 13835 PR rtl-optimization/55672
0160442c
VM
13836 * lra-eliminations.c (mark_not_eliminable): Permit addition with
13837 const to be eliminable.
f85021b0 13838
7a8b1ec4
DE
138392013-01-10 David Edelsohn <dje.gcc@gmail.com>
13840
13841 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13842 * configure: Regenerate.
13843
ad2e5b71
RB
138442013-01-10 Richard Biener <rguenther@suse.de>
13845
ddf9322d 13846 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 13847
ffc5b2bb
RB
138482013-01-10 Richard Biener <rguenther@suse.de>
13849
13850 PR bootstrap/55792
13851 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13852 locations for virtual PHI arguments.
13853 (rewrite_update_phi_arguments): Likewise.
13854
e1f674e4
JS
138552013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
13856
13857 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13858 on to assembler.
13859
a57fc743
JJ
138602013-01-10 Jakub Jelinek <jakub@redhat.com>
13861
13862 PR tree-optimization/55921
13863 * tree-complex.c (expand_complex_asm): New function.
13864 (expand_complex_operations_1): Call it for GIMPLE_ASM.
13865
0ff4390d
AK
138662013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13867
13868 PR target/55718
13869 * config/s390/s390.c (s390_symref_operand_p)
13870 (s390_loadrelative_operand_p): Merge the two functions.
13871 (s390_check_qrst_address, print_operand_address): Add parameters
13872 to s390_loadrelative_operand_p invokation.
13873 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13874 (s390_reload_larl_operand, s390_secondary_reload): Use
13875 s390_loadrelative_operand_p instead of s390_symref_operand_p.
13876 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13877
6f557e0e
MS
138782013-01-09 Mike Stump <mikestump@comcast.net>
13879
13880 * dse.c (record_store): Remove unnecessary assert.
13881
7770c9e9
JH
138822013-01-09 Jan Hubicka <jh@suse.cz>
13883
13884 PR tree-optimization/55569
13885 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13886 * cfgloop.h (scale_loop_profile): Likewise.
13887
a19b1432
JH
138882013-01-09 Jan Hubicka <jh@suse.cz>
13889
13890 PR lto/45375
ddf9322d
UB
13891 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13892 functions.
a19b1432
JH
13893 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13894
9a002da8
RS
138952013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
13896
13897 PR middle-end/55114
13898 * expr.h (maybe_emit_group_store): Declare.
13899 * expr.c (maybe_emit_group_store): New function.
13900 * builtins.c (expand_builtin_int_roundingfn): Call it.
13901 (expand_builtin_int_roundingfn_2): Likewise.
13902
511dcace
VM
139032013-01-09 Vladimir Makarov <vmakarov@redhat.com>
13904
e1f2b729 13905 PR rtl-optimization/55829
511dcace
VM
13906 * lra-constraints.c (match_reload): Add code for absent output.
13907 (curr_insn_transform): Add code for reloads of matched inputs
13908 without output.
13909
7b0fe4f4
UB
139102013-01-09 Uros Bizjak <ubizjak@gmail.com>
13911
13912 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13913 attribute of movddup insn to DF.
13914 (*vec_interleave_lowv2df): Ditto.
13915 (vec_dupv2df): Ditto.
13916
870ca331
JH
139172013-01-09 Jan Hubicka <jh@suse.cz>
13918
13919 PR tree-optimiation/55875
13920 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13921 EVERY_ITERATION parameter.
7b0fe4f4 13922 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
13923 (idx_infer_loop_bounds): Similarly here.
13924 (n_of_executions_at_most): Simplify
13925 to only test for cases where statement is dominated by the
7b0fe4f4 13926 particular bound; handle correctly the "postdominance" test.
870ca331
JH
13927 (scev_probably_wraps_p): Use max loop iterations info
13928 as a global bound first.
13929
6f575fe4 139302013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
13931 Nick Clifton <nickc@redhat.com>
13932
13933 * config/v850/v850.md (cbranchsf4): New pattern.
13934 (cstoresf4): New pattern.
13935 (cbranchdf4): New pattern.
13936 (cstoredf4): New pattern.
13937 (movsicc): Disallow floating point comparisons.
13938 (cmpsf_le_insn): Fix order of operators.
13939 (cmpsf_lt_insn): Likewise.
13940 (cmpsf_eq_insn): Likewise.
13941 (cmpdf_le_insn): Likewise.
13942 (cmpdf_lt_insn): Likewise.
13943 (cmpdf_eq_insn): Likewise.
13944 (cmpsf_ge_insn): Use LE comparison.
13945 (cmpdf_ge_insn): Likewise.
13946 (cmpsf_gt_insn): Use LT comparison.
13947 (cmpdf_gt_insn): Likewise.
13948 (cmpsf_ne_insn): Delete pattern.
13949 (cmpdf_ne_insn): Delete pattern.
13950 * config/v850/v850.c (v850_gen_float_compare): Use
13951 gen_cmpdf_eq_insn for NE comparison.
13952 (v850_float_z_comparison_operator)
13953 (v850_float_nz_comparison_operator): Move from here ...
13954 * config/v850/predicates.md: ... to here. Move GT and GE
13955 comparisons into v850_float_z_comparison_operator.
13956 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13957 Delete prototype.
13958 (v850_float_nz_comparison_operator): Likewise.
13959
f0d54148
JDA
139602013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13961
13962 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13963 with calls to gen_insvsi/gen_insvdi.
13964
8f01beca
VK
139652013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13966
13967 * config/i386/i386.c (initial_ix86_tune_features): Set up
13968 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13969
2aa579ad
JJ
139702013-01-09 Steven Bosscher <steven@gcc.gnu.org>
13971 Jakub Jelinek <jakub@redhat.com>
13972
13973 PR tree-optimization/48189
13974 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13975 If nitercst is 0, don't predict the exit edge.
13976
6edc3e32 139772013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
13978
13979 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13980 in asm_fprintf with reg_names.
13981 (aarch64_print_operand_address): Likewise.
13982 (aarch64_return_addr): Likewise.
13983 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13984
f6f94d94
JDA
139852013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13986
13987 * config/pa/pa.h (VAL_U6_BITS_P): Define.
13988 (INT_U6_BITS): Likewise.
13989 * config/pa/predicates.md (uint6_operand): New predicate.
13990 (shift5_operand, shift6_operand): Likewise.
13991 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13992 arith32_operand.
13993 (lshrdi3): Use shift6_operand.
13994 (shrpsi4, shrpdi4): New insn patterns.
13995 (extzv): Delete expander.
13996 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
13997 predicates in unamed zero extract patterns. Tighten common constraint.
13998 (extv): Delete expander.
13999 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
14000 predicates in unamed sign extract patterns. Tighten common constraint.
14001 (insv): Delete expander.
14002 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
14003 predicates in unamed insert patterns. Tighten common constraint.
14004 Change uint32_operand predicate to uint6_operand predicate in unamed
14005 DImode pattern to insert constant values of type 1...1xxxx.
14006
36b72910
JH
140072013-01-04 Jan Hubicka <jh@suse.cz>
14008
14009 PR tree-optimization/55823
7b0fe4f4
UB
14010 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
14011 issue.
36b72910 14012
47876a2a 140132013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
14014 Uros Bizjak <ubizjak@gmail.com>
14015
14016 PR rtl-optimization/55845
14017 * df-problems.c (can_move_insns_across): Stop scanning at
14018 volatile_insn_p source instruction or give up if
14019 across_from .. across_to range contains any volatile_insn_p
14020 instructions.
14021
4369c11e
TB
140222013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14023
7b0fe4f4
UB
14024 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
14025 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
14026 Declare.
4369c11e 14027 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 14028 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 14029
aeb7e7c1
JJ
140302013-01-08 Jakub Jelinek <jakub@redhat.com>
14031
14032 PR fortran/55341
14033 * asan.c (asan_clear_shadow): New function.
14034 (asan_emit_stack_protection): Use it.
14035
a02ad1aa
TB
140362013-01-08 Tejas Belagod <tejas.belagod@arm.com>
14037
14038 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
14039 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
14040 with tab instead of space.
14041
f90d87f5
NC
140422013-01-08 Nick Clifton <nickc@redhat.com>
14043
14044 * config/rl78/rl78.c (rl78_expand_prologue): Always select
14045 register bank 0 at the start of an interrupt handler.
83ffd964
NC
14046 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
14047 MDBH registers.
f90d87f5 14048
385eb93d
JG
140492013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14050
14051 * config/aarch64/aarch64-simd.md
14052 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
14053 (aarch64_simd_bsl): Likewise.
14054 (aarch64_vcond_internal<mode>): Likewise.
14055 (vcond<mode><mode>): Likewise.
14056 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
14057 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
14058
4dcd1054
JG
140592013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
14060
14061 * config/aarch64/aarch64-builtins.c
14062 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
14063
4267a4a6
MJ
140642013-01-08 Martin Jambor <mjambor@suse.cz>
14065
14066 PR debug/55579
14067 * tree-sra.c (analyze_access_subtree): Return true also after
14068 potentially creating a debug-only replacement.
14069
5f4e6de3
JJ
140702013-01-08 Jakub Jelinek <jakub@redhat.com>
14071
3138f224
JJ
14072 PR middle-end/55890
14073 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
14074
5f4e6de3
JJ
14075 PR tree-optimization/54120
14076 * tree-vrp.c (range_fits_type_p): Don't allow
14077 src_precision < precision from signed vr to unsigned_p
14078 if vr->min or vr->max is negative.
14079 (simplify_float_conversion_using_ranges): Test can_float_p
14080 against CODE_FOR_nothing.
14081
f3ef18ff
JJ
140822013-01-08 Jakub Jelinek <jakub@redhat.com>
14083 Richard Biener <rguenther@suse.de>
14084
14085 PR middle-end/55851
14086 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
14087 types instead of just INTEGER_TYPE types.
14088
25c210f9
MK
140892013-01-07 Mark Kettenis <kettenis@openbsd.org>
14090
14091 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
14092 TF_SIZE): Define.
f90d87f5 14093
81826a7b
SE
140942013-01-07 Steve Ellcey <sellcey@mips.com>
14095
14096 PR target/42661
14097 * config/mips/mips.opt: Change mad to mmad to match documentation.
14098
35678514
GJL
140992013-01-07 Georg-Johann Lay <avr@gjlay.de>
14100
14101 PR target/55897
14102 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
14103 .progmemx.data now.
14104
e5669488
GJL
141052013-01-07 Georg-Johann Lay <avr@gjlay.de>
14106
14107 PR target/55897
14108 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
14109 (avr_addrspace_t): Add .section_name field.
14110 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
14111 array size.
14112 (avr_addrspace): Same. Initialize .section_name. Remove last
14113 NULL entry. Put __memx into .progmemx.data.
14114 (progmem_section_prefix): Remove.
14115 (avr_asm_init_sections): No need to initialize progmem_section.
14116 (avr_asm_named_section): Use avr_addrspace[].section_name to get
14117 section name prefix.
14118 (avr_asm_select_section): Ditto. And use get_unnamed_section to
14119 retrieve the progmem section.
14120 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
14121 boundary to run over avr_addrspace[].
14122 (avr_register_target_pragmas): Ditto.
14123
656e6f37
JJ
141242013-01-06 Jakub Jelinek <jakub@redhat.com>
14125
14126 * varasm.c (output_constant_def_contents): For asan_protect_global
14127 protected strings, adjust DECL_ALIGN if needed, before testing for
14128 anchored symbols.
14129 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
14130 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
14131 normal decls.
14132 (output_object_block): For asan protected decls, emit asan padding
14133 after their contents.
14134 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
14135 (asan_finish_file): Test it here instead.
14136
6edc3e32
UB
141372013-01-07 Nick Clifton <nickc@redhat.com>
14138 Matthias Klose <doko@debian.org>
14139 Doug Kwan <dougkwan@google.com>
14140 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
14141
14142 PR driver/55470
14143 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
14144
14145 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
14146
14147 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
14148
7b0fe4f4 14149 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
14150
14151 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
14152
2a095093
GJL
141532013-01-07 Georg-Johann Lay <avr@gjlay.de>
14154
f3b503f4 14155 PR target/54461
2a095093
GJL
14156 * doc/install.texi (Cross-Compiler-Specific Options): Document
14157 --with-avrlibc.
14158
383f9b34
TB
141592013-01-07 Tejas Belagod <tejas.belagod@arm.com>
14160
14161 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
14162 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
14163 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
14164 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
14165 vqmovun_high_s64): Fix source operand number and update copyright.
14166
3626621a
RB
141672013-01-07 Richard Biener <rguenther@suse.de>
14168
14169 PR middle-end/55890
14170 * gimple.h (gimple_call_builtin_p): New overload.
14171 * gimple.c (validate_call): New function.
14172 (gimple_call_builtin_p): Likewise.
14173 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
14174 Use gimple_call_builtin_p.
14175 (find_func_clobbers): Likewise.
14176 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
14177 (strlen_optimize_stmt): Likewise.
14178
8b2ea410
JG
141792013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
14180
14181 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
14182 (vld1q_dup_*): Likewise.
14183 (vld1_*): Likewise.
14184 (vld1q_*): Likewise.
14185 (vld1_lane_*): Likewise.
14186 (vld1q_lane_*): Likewise.
14187
9713d329
RB
141882013-01-07 Richard Biener <rguenther@suse.de>
14189
14190 * lto-streamer.h (LTO_minor_version): Bump to 2.
14191
3520f7cc
JG
141922013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
14193
14194 * config/aarch64/aarch64-protos.h
14195 (aarch64_const_double_zero_rtx_p): Rename to...
14196 (aarch64_float_const_zero_rtx_p): ...this.
14197 (aarch64_float_const_representable_p): New.
14198 (aarch64_output_simd_mov_immediate): Likewise.
14199 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
14200 move immediate case.
14201 * config/aarch64/aarch64.c
14202 (aarch64_const_double_zero_rtx_p): Rename to...
14203 (aarch64_float_const_zero_rtx_p): ...this.
14204 (aarch64_print_operand): Allow printing of new constants.
14205 (aarch64_valid_floating_const): New.
14206 (aarch64_legitimate_constant_p): Check for valid floating-point
14207 constants.
14208 (aarch64_simd_valid_immediate): Likewise.
14209 (aarch64_vect_float_const_representable_p): New.
14210 (aarch64_float_const_representable_p): Likewise.
14211 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
14212 (aarch64_output_simd_mov_immediate): New.
14213 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
14214 (*movdf_aarch64): Likewise.
14215 * config/aarch64/constraints.md (Ufc): New.
14216 (Y): call aarch64_float_const_zero_rtx.
14217 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
14218
e167c04d
RB
142192013-01-07 Richard Biener <rguenther@suse.de>
14220
14221 PR tree-optimization/55888
14222 PR tree-optimization/55862
14223 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
14224 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
14225 not if it is contained therein.
14226
0139aaab
GJL
142272013-01-07 Georg-Johann Lay <avr@gjlay.de>
14228
14229 * config/avr/t-avr: Typo.
14230
4a176b23
GJL
142312013-01-07 Georg-Johann Lay <avr@gjlay.de>
14232
14233 PR55243
14234 * config/avr/t-avr: Don't automatically rebuild
14235 $(srcdir)/config/avr/t-multilib
14236 $(srcdir)/config/avr/avr-tables.opt
14237 $(srcdir)/doc/avr-mmcu.texi
14238 (avr-mcus): New phony target to build them on request.
14239 (s-avr-mlib, s-avr-mmcu-texi): Remove.
14240 * avr/avr-mcus.def: Adjust comments.
14241
c7afdc98
UB
142422013-01-07 Uros Bizjak <ubizjak@gmail.com>
14243
14244 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
14245
1ab05c31
RS
142462013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14247
14248 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
14249
488e3acc
RS
142502013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14251
14252 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
14253
a89599d2
DE
142542013-01-05 David Edelsohn <dje.gcc@gmail.com>
14255
14256 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
14257 to generate profiling.
14258 * config/rs6000/aix64.h (LIB_SPEC): Same.
14259
70f09188
AP
142602013-01-04 Andrew Pinski <apinski@cavium.com>
14261
14262 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
14263 New function.
14264 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14265
918d445f
UB
142662013-01-04 Uros Bizjak <ubizjak@gmail.com>
14267
14268 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14269 unconditionally.
14270 (ix86_expand_move): Ditto.
14271 (ix86_zero_extend_to_Pmode): Ditto.
14272 (ix86_expand_call): Ditto.
14273 (ix86_expand_special_args_builtin): Ditto.
14274 (ix86_expand_builtin): Ditto.
14275
361618ec
RB
142762013-01-04 Richard Biener <rguenther@suse.de>
14277
14278 PR tree-optimization/55862
14279 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14280 translating them through PHI nodes.
14281
87eab554
MJ
142822013-01-04 Martin Jambor <mjambor@suse.cz>
14283
14284 PR tree-optimization/55755
14285 * tree-sra.c (sra_modify_assign): Do not check that an access has no
14286 children when trying to avoid producing a VIEW_CONVERT_EXPR.
14287
33879b9f
MP
142882013-01-04 Marek Polacek <polacek@redhat.com>
14289
14290 PR middle-end/55859
14291 * opts.c (default_options_optimization): Clarify error message.
14292
3068819a
RB
142932013-01-04 Richard Biener <rguenther@suse.de>
14294
14295 PR middle-end/55863
14296 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14297 reassociation.
14298
0e4ae794
JDA
142992013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14300
14301 PR target/53789
14302 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
14303 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
14304 references.
0e4ae794 14305
65c88cef
RH
143062013-01-03 Richard Henderson <rth@redhat.com>
14307
14308 * config/i386/i386.c (ix86_expand_move): Always assign to op1
14309 after eliminating TLS symbols.
14310
8ac16127
MG
143112013-01-03 Marc Glisse <marc.glisse@inria.fr>
14312
14313 PR bootstrap/50167
14314 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14315 * graphite-poly.c (debug_gmp_value): Likewise.
14316
bb664f09
UB
143172013-01-03 Uros Bizjak <ubizjak@gmail.com>
14318
14319 PR target/55712
14320 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14321 selected code model, define __code_mode_small__, __code_model_medium__,
14322 __code_model_large__, __code_model_32__ or __code_model_kernel__.
14323 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14324 xchg temporary register with %k. Declare temporary register as
14325 early clobbered.
14326 [__x86_64__]: For medium and large code models, preserve %rbx register.
14327
bcf1ef00
RB
143282013-01-03 Richard Biener <rguenther@suse.de>
14329
0506634a 14330 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
14331 (dump_subscript): Adjust.
14332 (finalize_ddr_dependent): Do not dump redundant info.
14333 (analyze_siv_subscript): Adjust.
14334 (subscript_dependence_tester): Likewise.
14335 (compute_affine_dependence): Likewise.
14336
59fd17e3
RB
143372013-01-03 Richard Biener <rguenther@suse.de>
14338
14339 Revert
14340 2013-01-03 Richard Biener <rguenther@suse.de>
14341
14342 PR tree-optimization/55857
14343 * tree-vect-stmts.c (vectorizable_load): Do not setup
14344 re-alignment for invariant loads.
14345
14346 2013-01-02 Richard Biener <rguenther@suse.de>
14347
14348 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 14349 invariant load do not generate a vector load from the scalar location.
59fd17e3 14350
595c2679
RB
143512013-01-03 Richard Biener <rguenther@suse.de>
14352
14353 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14354 for not vectorizing.
14355 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14356 not build INDIRECT_REFs, call get_name once only.
14357 (vect_create_data_ref_ptr): Likewise. Dump base object kind
14358 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14359
90bb7d7a
RB
143602013-01-03 Richard Biener <rguenther@suse.de>
14361
14362 PR tree-optimization/55857
14363 * tree-vect-stmts.c (vectorizable_load): Do not setup
14364 re-alignment for invariant loads.
14365
f09b77ca
RB
143662013-01-03 Richard Biener <rguenther@suse.de>
14367
14368 PR lto/55848
14369 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14370 prefer a built-in decl.
14371
3461a16e
JJ
143722013-01-03 Jakub Jelinek <jakub@redhat.com>
14373
df8e2b4f
JJ
14374 * gcc.c (process_command): Update copyright notice dates.
14375 * gcov.c (print_version): Likewise.
14376 * gcov-dump.c (print_version): Likewise.
14377
3461a16e
JJ
14378 PR rtl-optimization/55838
14379 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14380 iv0.step, iv1.step and step.
14381
8b5546d6
JJ
143822013-01-03 Jakub Jelinek <jakub@redhat.com>
14383 Marc Glisse <marc.glisse@inria.fr>
14384
14385 PR tree-optimization/55832
14386 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14387 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14388 integer_{one,zero}_node.
14389
8ab1d2e9
JJ
143902013-01-03 Jakub Jelinek <jakub@redhat.com>
14391
14392 PR debug/54402
14393 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14394 * var-tracking.c (reverse_op): Don't add reverse ops to
14395 VALUEs that have already
0506634a 14396 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 14397
5b9ad1d4
GP
143982013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14399
14400 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14401
e25a6711
TJ
144022013-01-02 Teresa Johnson <tejohnson@google.com>
14403
14404 * dumpfile.c (dump_loc): Print filename with location.
14405 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14406 new location_t parameter to emit complete unroll message with
14407 new dump framework.
14408 (canonicalize_loop_induction_variables): Compute loops location
14409 and pass to try_unroll_loop_completely.
14410 * loop-unroll.c (report_unroll_peel): New function.
14411 (peel_loops_completely): Use new dump format with location
14412 for main dumpfile message, and invoke report_unroll_peel on success.
14413 (decide_unrolling_and_peeling): Ditto.
14414 (decide_peel_once_rolling): Remove old dumpfile message subsumed
14415 by report_unroll_peel.
14416 (decide_peel_completely): Ditto.
14417 (decide_unroll_constant_iterations): Ditto.
14418 (decide_unroll_runtime_iterations): Ditto.
14419 (decide_peel_simple): Ditto.
14420 (decide_unroll_stupid): Ditto.
14421 * cfgloop.c (get_loop_location): New function.
14422 * cfgloop.h (get_loop_location): Declare.
14423
77878621
ST
144242013-01-02 Sriraman Tallam <tmsriram@google.com>
14425
14426 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14427 NULL.
14428
9e65d03e
JDA
144292013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14430
14431 PR middle-end/55198
14432 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14433 BLKmode objects when EXPAND_MEMORY is specified.
14434
6a7da30f
ST
144352013-01-02 Sriraman Tallam <tmsriram@google.com>
14436
14437 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14438 in loop predicate.
14439 (fold_builtin_cpu): Do not share cpu model decls across statements.
14440
e78167f2
JM
144412013-01-02 Jason Merrill <jason@redhat.com>
14442
14443 PR c++/55804
14444 * tree.c (build_array_type_1): Revert earlier change.
14445
8c075fb4
YZ
144462013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
14447
14448 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
14449 "cortex-a57".
14450 * config/aarch64/aarch64-tune.md: Re-generate.
14451
0682ed3e
RB
144522013-01-02 Richard Biener <rguenther@suse.de>
14453
14454 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 14455 invariant load do not generate a vector load from the scalar location.
0682ed3e 14456
b8f6a302
RB
144572013-01-02 Richard Biener <rguenther@suse.de>
14458
14459 PR bootstrap/55784
14460 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14461 * configure: Regenerate.
14462
04b80dbb
RS
144632013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14464
14465 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14466 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14467 (expand_builtin_int_roundingfn_2): Keep the original target around
14468 for the fallback case.
14469
635b0b0c
RS
144702013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14471
14472 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14473 to be clear for sign changes.
14474
42d57399
JH
144752013-01-01 Jan Hubicka <jh@suse.cz>
14476
14477 * ipa-inline-analysis.c: Fix formatting.
14478
5bb6669d
JJ
144792013-01-01 Jakub Jelinek <jakub@redhat.com>
14480
14481 PR tree-optimization/55831
14482 * tree-vect-loop.c (get_initial_def_for_induction): Use
14483 gsi_after_labels instead of gsi_start_bb.
ad41bd84 14484\f
86a2db33 14485Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
14486
14487Copying and distribution of this file, with or without modification,
14488are permitted in any medium without royalty provided the copyright
14489notice and this notice are preserved.