]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
re PR c/20318 (RFE: add attribute to specify that a function never returns NULL)
[gcc.git] / gcc / ChangeLog
CommitLineData
826cacfe
MG
12013-10-09 Marc Glisse <marc.glisse@inria.fr>
2
3 PR tree-optimization/20318
4 * doc/extend.texi (returns_nonnull): New function attribute.
5 * fold-const.c (tree_expr_nonzero_warnv_p): Look for returns_nonnull
6 attribute.
7 * tree-vrp.c (gimple_stmt_nonzero_warnv_p): Likewise.
8 (stmt_interesting_for_vrp): Accept all GIMPLE_CALL.
9
378f8976
EB
102013-10-09 Eric Botcazou <ebotcazou@adacore.com>
11
12 PR middle-end/58570
13 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Return
14 false if both components are bitfields.
15
0fe04f5c
AV
162013-10-09 Alex Velenko <Alex.Velenko@arm.com>
17
18 * config/aarch64/arm_neon.h (vclz_s8, vclz_s16, vclz_s32)
19 (vclzq_s8, vclzq_s16, vclzq_s32, vclz_u8, vclz_u16, vclz_u32)
20 (vclzq_u8, vclzq_u16, vclzq_u32): Replace ASM with C.
21 * config/aarch64/aarch64.h
22 (CLZ_DEFINED_VALUE_AT_ZERO): Macro fixed for clz.
23 * config/aarch64/aarch64-simd-builtins.def
24 (VAR1 (UNOP, clz, 0, v4si)): Replaced with iterator.
25
bed9bae4
AV
262013-10-09 Alex Velenko <Alex.Velenko@arm.com>
27
28 * config/aarch64/arm_neon.h (vadd_f64, vsub_f64): Implementation added.
29
7f3d8b19
AV
302013-10-09 Alex Velenko <Alex.Velenko@arm.com>
31
32 * config/aarch64/arm_neon.h (vdiv_f64): Added.
33
7df625a6
AV
342013-10-09 Alex Velenko <Alex.Velenko@arm.com>
35
36 * config/aarch64/arm_neon.h (vneg_f32): Asm replaced with C.
37 (vneg_f64): New intrinsic.
38 (vneg_s8): Asm replaced with C.
39 (vneg_s16): Likewise.
40 (vneg_s32): Likewise.
41 (vneg_s64): New intrinsic.
42 (vnegq_f32): Asm replaced with C.
43 (vnegq_f64): Likewise.
44 (vnegq_s8): Likewise.
45 (vnegq_s16): Likewise.
46 (vnegq_s32): Likewise.
47 (vnegq_s64): Likewise.
48
2b86fca7
RL
492013-10-09 Renlin Li <Renlin.Li@arm.com>
50
51 * config/arm/arm.c (arm_output_mi_thunk): Use plus_constant.
52
e179df83
AK
532013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
54
55 * config/s390/s390.c (s390_register_info_stdarg_fpr): Remove
56 packed stack special handling.
57 (s390_frame_info, s390_emit_prologue, s390_emit_epilogue): Switch
58 back to fixed stack slots for FPRs saved due to stdarg.
59
74129172
AK
602013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
61
62 * config/s390/s390.c (s390_frame_info): Restructure function.
63
6455a49e
AK
642013-10-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
65
66 * config/s390/s390.c (struct s390_frame_layout): New field
67 gpr_save_slots.
68 (cfun_save_arg_fprs_p, cfun_gpr_save_slot): New macros.
69 (s390_reg_clobbered_rtx, s390_regs_ever_clobbered): Change type of
70 regs_ever_clobbered to char*.
71 (s390_regs_ever_clobbered): Check crtl->saves_all_registers
72 instead of cfun->has_nonlocal_label. Ignore frame related restore
73 INSNs.
74 (s390_register_info): Enable FPR save slots. Move/Copy some
75 functionality into ...
76 (s390_register_info_gprtofpr, s390_register_info_stdarg_fpr)
77 (s390_register_info_stdarg_gpr, s390_optimize_register_info): New
78 function.
79 (s390_frame_info): Do gpr slot allocation here now. stdarg does
80 not imply a stack frame.
81 (s390_init_frame_layout): Remove variable clobbered_regs.
82 (s390_update_register_info): Remove function.
83 (s390_hard_regno_rename_ok): Call-saved regs without a save slot
84 cannot be used for register renaming.
85 (s390_hard_regno_scratch_ok): New function.
86 (TARGET_HARD_REGNO_SCRATCH_OK): Define target hook.
87 (s390_initial_elimination_offset): Change offset calculation of
88 the return address pointer.
89 (save_gprs): Deal with only r6 being saved from the call-saved
90 regs.
91 (restore_gprs): Set frame related flag.
92 (s390_save_gprs_to_fprs, s390_restore_gprs_from_fprs): New
93 functions.
94 (s390_emit_prologue): Call s390_register_info instead of
95 s390_update_frame_layout. Call s390_save_gprs_to_fprs.
96 (s390_emit_epilogue): Call s390_restore_gprs_from_fprs.
97 (s390_optimize_prologue): Call s390_optimize_register_info.
98 Try to remove also FPR slot save/restore INSNs. Remove frame
99 related flags from restore INSNs.
100
59d96342
DD
1012013-10-08 DJ Delorie <dj@redhat.com>
102
0dc7adad
DD
103 * config/rl78/rl78-expand.md (movqi): use operands[] not operandN.
104 (movhi): Likewise.
105
59d96342
DD
106 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
107 avoid conflict with the MI use of %c.
108 * config/rl78/rl78-real.md: change %c to %C throughout.
109 * config/rl78/rl78-virt.md: Likewise.
110
a81169d8
JH
1112013-10-08 Jan Hubicka <jh@suse.cz>
112
113 * config/i386/i386.c (ix86_option_override_internal): Switch
114 to SSE math for -ffast-math when target ISA supports SSE2.
115
481d1b81
AM
1162013-10-08 Andrew MacLeod <amacleod@redhat.com>
117
118 * tree-flow.h: Remove some prototypes.
119 * tree.h: Remove some protypes, add a couple.
120 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
121 using_eh_for_cleanups_p): Add interface routines for front ends.
122 * tree-eh.h: New file. Add protoptyes.
123 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
124 (add_stmt_to_eh_lp_fn): Make static.
125 (lower_try_finally): Use new using_eh_for_cleanups_p.
126 * emit-rtl.c: Include tree-eh.h.
127 * gimple.h: Include tree-eh.h.
128
0e6a0e48
MG
1292013-10-08 Marc Glisse <marc.glisse@inria.fr>
130
131 PR tree-optimization/58480
132 * tree-vrp.c (infer_nonnull_range): New function.
133 (infer_value_range): Call infer_nonnull_range.
134
ef6179d1
DC
1352013-10-08 Dehao Chen <dehao@google.com>
136
137 PR tree-optimization/58619
138 * tree-inline.c (copy_phis_for_bb): Combine location data
139 only if non-null.
140
07d964d5
ZC
1412013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
142
143 PR target/58423
144 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
145 RTX_FRAME_RELATED_P on INSN.
146
19e9b2a3
BS
1472013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
148
149 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
150 (altivec_expand_vec_perm_const): Call it.
151
0cf68694
BS
1522013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
153
154 * config/rs6000/vector.md (mov<mode>): Emit permuted move
155 sequences for LE VSX loads and stores at expand time.
156 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
157 prototype.
158 * config/rs6000/rs6000.c (rs6000_const_vec): New.
159 (rs6000_gen_le_vsx_permute): New.
160 (rs6000_gen_le_vsx_load): New.
161 (rs6000_gen_le_vsx_store): New.
162 (rs6000_gen_le_vsx_move): New.
163 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
164 (*vsx_le_perm_load_v4si): New.
165 (*vsx_le_perm_load_v8hi): New.
166 (*vsx_le_perm_load_v16qi): New.
167 (*vsx_le_perm_store_v2di): New.
168 (*vsx_le_perm_store_v4si): New.
169 (*vsx_le_perm_store_v8hi): New.
170 (*vsx_le_perm_store_v16qi): New.
171 (*vsx_xxpermdi2_le_<mode>): New.
172 (*vsx_xxpermdi4_le_<mode>): New.
173 (*vsx_xxpermdi8_le_V8HI): New.
174 (*vsx_xxpermdi16_le_V16QI): New.
175 (*vsx_lxvd2x2_le_<mode>): New.
176 (*vsx_lxvd2x4_le_<mode>): New.
177 (*vsx_lxvd2x8_le_V8HI): New.
178 (*vsx_lxvd2x16_le_V16QI): New.
179 (*vsx_stxvd2x2_le_<mode>): New.
180 (*vsx_stxvd2x4_le_<mode>): New.
181 (*vsx_stxvd2x8_le_V8HI): New.
182 (*vsx_stxvd2x16_le_V16QI): New.
183
9520e1eb
RL
1842013-10-07 Renlin Li <Renlin.Li@arm.com>
185
186 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
187
36c0bd4f
AK
1882013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
189
190 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
191 loop to work also for 31bit ABI.
192 Save the stack pointer for frame_size > 0.
193
ee163e72
AK
1942013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
195
196 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
197 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
198 constraint letters from expanders.
199 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
200 retry count to general_operand.
201 ("tabort"): Give operand 0 a mode.
202 ("tabort_1"): Add mode and constraint letter for operand 0.
203 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
204
45d99234
JL
2052013-10-04 Jeff Law <law@redhat.com>
206
207 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
208
209 * tree-ssa-threadedge.c (thread_through_normal_block): Broken out of ...
210 (thread_across_edge): Here. Call it.
211
7c327f7b
CC
2122013-10-04 Cary Coutant <ccoutant@google.com>
213
214 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
215 discarding a location list expression (or a piece of one).
216
6867e128
JH
2172013-10-03 Jan Hubicka <jh@suse.cz>
218
65efa7e7
UB
219 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
220 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
3700bce3 221 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
6867e128 222
c7f36d55
JH
2232013-10-03 Jan Hubicka <jh@suse.cz>
224
65efa7e7 225 * config/i386/i386.c (ix86_option_override_internal): Do not enable
c7f36d55
JH
226 accumulate-outgoing-args when producing unwind info.
227
4f0bee4c
WM
2282013-10-03 Wei Mi <wmi@google.com>
229
230 * lra-constraints.c (insert_move_for_subreg): New function
231 extracted from simplify_operand_subreg.
232 (simplify_operand_subreg): Add reload for paradoxical subreg.
233
111c3f39
RX
2342013-10-03 Rong Xu <xur@google.com>
235
65efa7e7
UB
236 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
237 the candidate of builtin_expect such that we should fix the
238 size/time estimation.
239 (estimate_function_body_sizes): Do the acutally size/time fix-up
240 for builtin_expect.
111c3f39 241
942df739
RX
2422013-10-03 Rong Xu <xur@google.com>
243
65efa7e7
UB
244 * predict.c (tree_predict_by_opcode): Get the probability
245 for builtin_expect from param builtin_expect_probability.
246 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
247 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
248 * doc/invoke.texi: Add documentation for builtin-expect-probability.
942df739 249
2284b034
MG
2502013-10-03 Marc Glisse <marc.glisse@inria.fr>
251
252 PR c++/19476
253 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
254 * calls.c (alloca_call_p): Use get_callee_fndecl.
255 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
256 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
257 Likewise.
258 (vrp_visit_stmt): Remove duplicated code.
259
0609bdf2
MM
2602013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
261
262 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
263 ceildf2, btruncdf2, instead of vsx_* name.
264
265 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
266 iterators to only do V2DF and V4SF here. Move the DF code to
267 rs6000.md where it is combined with SF mode. Replace <VSv> with
268 just 'v' since only vector operations are handled with these insns
269 after moving the DF support to rs6000.md.
270 (vsx_sub<mode>3): Likewise.
271 (vsx_mul<mode>3): Likewise.
272 (vsx_div<mode>3): Likewise.
273 (vsx_fre<mode>2): Likewise.
274 (vsx_neg<mode>2): Likewise.
275 (vsx_abs<mode>2): Likewise.
276 (vsx_nabs<mode>2): Likewise.
277 (vsx_smax<mode>3): Likewise.
278 (vsx_smin<mode>3): Likewise.
279 (vsx_sqrt<mode>2): Likewise.
280 (vsx_rsqrte<mode>2): Likewise.
281 (vsx_fms<mode>4): Likewise.
282 (vsx_nfma<mode>4): Likewise.
283 (vsx_copysign<mode>3): Likewise.
284 (vsx_btrunc<mode>2): Likewise.
285 (vsx_floor<mode>2): Likewise.
286 (vsx_ceil<mode>2): Likewise.
287 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
288 (vsx_sminsf3): Likewise.
289 (vsx_fmadf4): Likewise.
290 (vsx_fmsdf4): Likewise.
291 (vsx_nfmadf4): Likewise.
292 (vsx_nfmsdf4): Likewise.
293 (vsx_cmpdf_internal1): Likewise.
294
295 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
296 simpler to select whether a target has SPE or traditional floating
297 point support in iterators.
298 (TARGET_DF_SPE): Likewise.
299 (TARGET_SF_FPR): Likewise.
300 (TARGET_DF_FPR): Likewise.
301 (TARGET_SF_INSN): Macros to say whether floating point support
302 exists for a given operation for expanders.
303 (TARGET_DF_INSN): Likewise.
304
305 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
306 combining of SF/DF mode operations, using both traditional and VSX
307 registers.
308 (Fvsx): Likewise.
309 (Ff): Likewise.
310 (Fv): Likewise.
311 (Fs): Likewise.
312 (Ffre): Likewise.
313 (FFRE): Likewise.
314 (abs<mode>2): Combine SF/DF modes using traditional floating point
315 instructions. Add support for using the upper DF registers with
316 VSX support, and SF registers with power8-vector support. Update
317 expanders for operations supported by both the SPE and traditional
318 floating point units.
319 (abs<mode>2_fpr): Likewise.
320 (nabs<mode>2): Likewise.
321 (nabs<mode>2_fpr): Likewise.
322 (neg<mode>2): Likewise.
323 (neg<mode>2_fpr): Likewise.
324 (add<mode>3): Likewise.
325 (add<mode>3_fpr): Likewise.
326 (sub<mode>3): Likewise.
327 (sub<mode>3_fpr): Likewise.
328 (mul<mode>3): Likewise.
329 (mul<mode>3_fpr): Likewise.
330 (div<mode>3): Likewise.
331 (div<mode>3_fpr): Likewise.
332 (sqrt<mode>3): Likewise.
333 (sqrt<mode>3_fpr): Likewise.
334 (fre<Fs>): Likewise.
335 (rsqrt<mode>2): Likewise.
336 (cmp<mode>_fpr): Likewise.
337 (smax<mode>3): Likewise.
338 (smin<mode>3): Likewise.
339 (smax<mode>3_vsx): Likewise.
340 (smin<mode>3_vsx): Likewise.
341 (negsf2): Delete SF operations that are merged with DF.
342 (abssf2): Likewise.
343 (addsf3): Likewise.
344 (subsf3): Likewise.
345 (mulsf3): Likewise.
346 (divsf3): Likewise.
347 (fres): Likewise.
348 (fmasf4_fpr): Likewise.
349 (fmssf4_fpr): Likewise.
350 (nfmasf4_fpr): Likewise.
351 (nfmssf4_fpr): Likewise.
352 (sqrtsf2): Likewise.
353 (rsqrtsf_internal1): Likewise.
354 (smaxsf3): Likewise.
355 (sminsf3): Likewise.
356 (cmpsf_internal1): Likewise.
357 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
358 (negdf2): Delete DF operations that are merged with SF.
359 (absdf2): Likewise.
360 (nabsdf2): Likewise.
361 (adddf3): Likewise.
362 (subdf3): Likewise.
363 (muldf3): Likewise.
364 (divdf3): Likewise.
365 (fred): Likewise.
366 (rsqrtdf_internal1): Likewise.
367 (fmadf4_fpr): Likewise.
368 (fmsdf4_fpr): Likewise.
369 (nfmadf4_fpr): Likewise.
370 (nfmsdf4_fpr): Likewise.
371 (sqrtdf2): Likewise.
372 (smaxdf3): Likewise.
373 (smindf3): Likewise.
374 (cmpdf_internal1): Likewise.
375 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
376 (btrunc<mode>2): Delete separate expander, and combine with the
377 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
378 (btrunc<mode>2_fpr): Likewise.
379 (ceil<mode>2): Likewise.
380 (ceil<mode>2_fpr): Likewise.
381 (floor<mode>2): Likewise.
382 (floor<mode>2_fpr): Likewise.
383 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
384 Add support for using the upper registers with VSX and
385 power8-vector. Move insns to be closer to the define_expands. On
386 VSX systems, prefer the traditional form of FMA over the VSX
387 version, since the traditional form allows the target not to
388 overlap with the inputs.
389 (fms<mode>4_fpr): Likewise.
390 (nfma<mode>4_fpr): Likewise.
391 (nfms<mode>4_fpr): Likewise.
392
5bea0c6c 3932013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
65efa7e7 394 Richard Earnshaw <richard.earnshaw@arm.com>
5bea0c6c
KT
395
396 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
397 (struct mult_cost_table): Likewise.
398 (struct mem_cost_table): Likewise.
399 (struct fp_cost_table): Likewise.
400 (struct vector_cost_table): Likewise.
401 (cpu_cost_table): Likewise.
402 * config/arm/arm.opt (mold-rts-costs): New option.
403 (mnew-generic-costs): Likewise.
404 * config/arm/arm.c (generic_extra_costs): New table.
405 (cortexa15_extra_costs): Likewise.
406 (arm_slowmul_tune): Use NULL as new costs.
407 (arm_fastmul_tune): Likewise.
408 (arm_strongarm_tune): Likewise.
409 (arm_xscale_tune): Likewise.
410 (arm_9e_tune): Likewise.
411 (arm_v6t2_tune): Likewise.
412 (arm_cortex_a5_tune): Likewise.
413 (arm_cortex_a9_tune): Likewise.
414 (arm_v6m_tune): Likewise.
415 (arm_fa726te_tune): Likewise.
416 (arm_cortex_a15_tune): Use cortex15_extra_costs.
417 (arm_cortex_tune): Use generict_extra_costs.
418 (shifter_op_p): New function.
419 (arm_unspec_cost): Likewise.
420 (LIBCALL_COST): Define.
421 (arm_new_rtx_costs): New function.
422 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
423 table is available. Use old costs otherwise unless mnew-generic-costs
424 is specified.
425 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
426 (cpu_cost_table): Declare.
427
24c56925
MS
4282013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
429
430 PR target/58460
431 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
432 (*subs_mul_imm_<mode>)
433 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
434 (*sub_<shift>_<mode>)
435 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
436 Remove k constraint.
437
2ab8f063
IB
4382013-10-03 Ian Bolton <ian.bolton@arm.com>
439
440 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
441 code.
442 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
443
79221839
TJ
4442013-10-02 Teresa Johnson <tejohnson@google.com>
445
446 * predict.c (probably_never_executed): New function.
447 (probably_never_executed_bb_p): Invoke probably_never_executed.
448 (probably_never_executed_edge_p): Ditto.
449 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
450 Treat profile insanities conservatively.
451
d441afe0
JDA
4522013-10-02 John David Anglin <danglin@gcc.gnu.org>
453
454 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
455
80f466c4
VM
4562013-10-02 Vladimir Makarov <vmakarov@redhat.com>
457
458 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
459 use it. Use smaller increase for scratch. Don't increase reject
460 for early clobber scratch.
461 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
462 setting eliminated regs except setting fp from hfp.
463 (lra_eliminate): Check lra_insn_recog_data on NULL.
464
6e228b4b
MM
4652013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
466
467 PR target/58587
468 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
65efa7e7 469 setting -mvsx-timode by default until the underlying problem is fixed.
6e228b4b
MM
470 (RS6000_CPU, power7 defaults): Likewise.
471
11b54a5a
UB
4722013-10-02 Uros Bizjak <ubizjak@gmail.com>
473
474 * config/x-linux (host-linux.o): Remove header dependencies.
475 Use $(COMPILE) and $(POSTCOMPILE).
476 * config/t-linux-android (linux-android.o): Ditto.
477
bbc02b69
UB
4782013-10-02 Uros Bizjak <ubizjak@gmail.com>
479
480 * Makefile.in (expmed.o-warn): Remove.
481
440917de
AM
4822013-10-02 Andrew MacLeod <amacleod@redhat.com>
483
484 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
485 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
486
99206ca9
TJ
4872013-10-02 Teresa Johnson <tejohnson@google.com>
488
489 * dojump.c (do_jump_1): Divide probability between
490 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
491
56e82b14
TT
4922013-10-02 Tom Tromey <tromey@redhat.com>
493
494 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
495
3d9c733e
AM
4962013-10-02 Andrew MacLeod <amacleod@redhat.com>
497
498 * tree-flow.h: Remove some prototypes.
499 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
500 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
501 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
502 mark_virtual_phi_result_for_renaming): Relocate here.
503 * tree-into-ssa.h: Add prototypes.
bbc02b69 504 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
3d9c733e
AM
505 single_pred_before_succ_order.
506 (blocks_in_phiopt_order): Rename and move to cfganal.c.
507 (nonfreeing_call_p) Move to gimple.c.
508 * cfganal.c (single_pred_before_succ_order): Move and renamed from
509 tree-ssa-phiopt.c.
510 * basic-block.h (single_pred_before_succ_order): Add prototype.
511 * gimple.c (nonfreeing_call_p): Relocate here.
512 * gimple.h: Add prototype.
513 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
514 * tree-ssa-dom.h: New file. Relocate prototypes here.
515 * tree-ssa.h: Include tree-ssa-dom.h.
516
78cedfb1
UB
5172013-10-02 Uros Bizjak <ubizjak@gmail.com>
518
519 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
520 Use $(COMPILE) and $(POSTCOMPILE).
521
522 * config/alpha/x-alpha (driver-alpha.o): Ditto.
523
744730a4
AM
5242013-10-02 Andrew MacLeod <amacleod@redhat.com>
525
526 * tree-flow.h: Remove some prototypes.
527 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
528 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
529 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
530 propagate_tree_value*): Move from here to...
531 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
532 propagate_tree_value*): Relocate here.
533 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
534 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
535 * gimple-fold.c: Remove gimple-fold.h from include list.
536 * tree-vrp.c: Remove gimple-fold.h from include list.
537 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
538 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
539 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
540 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
541 * sese.c: Add tree-ssa-propagate.h to include list.
542
826a536d
RB
5432013-10-02 Richard Biener <rguenther@suse.de>
544
545 * tree-loop-distribution.c: Include tree-vectorizer.h for
546 find_loop_location.
547 (enum partition_kind): Remove PKIND_REDUCTION.
78cedfb1 548 (struct partition_s): Remove has_writes member, add reduction_p member.
826a536d
RB
549 (partition_alloc): Adjust.
550 (partition_builtin_p): Likewise.
551 (partition_has_writes): Remove.
552 (partition_reduction_p): New function.
553 (partition_merge_into): Likewise.
554 (generate_code_for_partition): Commonize builtin partition
555 handling tail.
556 (rdg_cannot_recompute_vertex_p): Remove.
557 (already_processed_vertex_p): Likewise.
558 (rdg_flag_vertex): Do not set has_writes.
559 (classify_partition): Adjust.
560 (rdg_build_partitions): Do not set has_writes, treat all
561 partitions as useful.
78cedfb1 562 (distribute_loop): Record number of library calls generated. Adjust.
826a536d
RB
563 (tree_loop_distribution): Report number of loops and library
564 calls generated as opt-info.
565
4b403ece
AM
5662013-10-02 Andrew MacLeod <amacleod@redhat.com>
567
568 * tree-flow.h: Include new .h files. Move prototypes.
569 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
570 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
571 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
572 * tree-pretty-print.h: Add prototypes from tree-flow.h.
573 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
574 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
575 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
576 * tree.h (get_ref_base_and_extent): Move prototype out.
78cedfb1 577 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
4b403ece
AM
578 tree-dfa.h.
579 * gimple-low.h: New File. Add prototypes from tree-flow.h.
580 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
581 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
582 * tree-scalar-evolution.c: Include tree.h.
583 * sese.c: Include tree.h.
584 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
585 * dwarf2out.c: Include tree-dfa.h.
586 * tree-chrec.c: Include tree.h.
587 * tree-data-ref.c: Include tree.h.
588
1d2151c6
YZ
5892013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
590
591 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
592 Fix whitespace.
593
441ad147
RO
5942013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
595
596 * config/t-sol2 (sol2-c.o): Remove header dependencies.
597 Use $(COMPILE) and $(POSTCOMPILE).
598 (sol2-cxx.o): Likewise.
599 (sol2-stubs.o): Likewise.
600 (sol2.o): Likewise.
601 * config/x-solaris (host-solaris.o): Likewise.
602
603 * config/sparc/t-sparc (sparc.o): Remove.
604 (sparc-c.o): Remove header dependencies.
605 Use $(COMPILE) and $(POSTCOMPILE).
606 * config/sparc/x-sparc: Likewise.
607
2deaf8b0
JR
6082013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
609
610 * config/arc/arc-opts.h: Add 2013 to Copyright years.
611 * config/arc/arc700.md: Likewise.
612 * config/arc/arc-modes.def: Likewise.
613 * config/arc/arc-simd.h: Likewise.
614 * config/arc/t-arc-uClibc: Likewise.
615 * config/arc/t-arc-newlib: Likewise.
616
f6fe771a
RL
6172013-10-02 Renlin Li <renlin.li@arm.com>
618
78cedfb1
UB
619 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
620 plus_constant.
f6fe771a
RL
621 (aarch64_expand_epilogue): Likewise.
622
0916f876
YZ
6232013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
624 Yufeng Zhang <yufeng.zhang@arm.com>
625
626 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
627 declaration.
628 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
629 'base_in' represent a conversion and legal_cast_p_1 holds; set
630 'base_in' with the returned value from get_unwidened.
631
ebfcd719
KT
6322013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
633
634 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
635 plus_constant is not used.
636
157ca3e9
WM
6372013-10-01 Wei Mi <wmi@google.com>
638
78cedfb1 639 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
157ca3e9
WM
640 * config/i386/i386.md: Add define_peephole2 to
641 break partial reg stall for cvtss2sd/cvtsd2ss.
642
cd4dd8f0
JR
6432013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
644
645 * config/arc/arc.c (pass_arc_ifcvt::clone):
78cedfb1 646 Update for ctxt_ -> m_ctxt change.
cd4dd8f0 647
1465e5cf
JL
6482013-10-01 Jeff Law <law@redhat.com>
649
650 * tree-ssa-threadupdate.c (struct redirection_data): Delete
651 outgoing_edge and intermediate_edge fields. Instead store the path.
652 (redirection_data::hash): Hash on the last edge's destination index.
653 (redirection_data::equal): Check the entire thread path.
654 (lookup_redirectio_data): Corresponding changes.
655 (create_edge_and_update_destination_phis): Likewise.
656 (thread_single_edge): Likewise.
657
25c606cb 6582013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
0ccbc132 659 Diego Novillo <dnovillo@google.com>
25c606cb
JR
660
661 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
662 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
663 (vld32wh_insn, vld32wl_insn): Delete commented-out old
664 versions of these patterns.
665
0ccbc132
JR
666 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
667 (__builtin_arc_aligned): Likewise.
668
f55d4a20
JR
669 * config/arc/arc.md: Expand adc_0 comment stating the intended
670 purpose and why it isn't ready.
671 Replace commented out call_value_via_label_mixed with a
672 plain comment about bl_s.
673
5719867d 674 * config/arc/arc.c (stdio.h): Don't include directly.
5719867d
JR
675 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
676 Remove if (1) condition.
677 (arc_encode_section_info): Fix comment.
678
6462fab0
JR
6792013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
680
681 * config/arc/arc.c (arc_conditional_register_usage):
682 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
683 Also set reg_alloc_order for DMA config regs.
684
5d5f6720
JR
6852013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
686 Jeremy Bennett <jeremy.bennett@embecosm.com>
687
688 * doc/install.texi (--with-cpu): Mention ARC.
689 (arc-*-elf32): New paragraph.
690 (arc-linux-uclibc): Likewise.
691 * doc/md.texi (Machine Constraints): Add ARC part.
692 * doc/invoke.texi: (menu): Add ARC Options.
693 (Machine Dependent Options) <ARC Options>: Add synopsis.
694 (node ARC Options): Add.
695 * doc/extend.texi (long_call / short_call attribute): Add ARC.
696 (ARC Built-in Functions): New section defining
697 generic ARC built-in functions.
698 (ARC SIMD Built-in Functions): New section defining SIMD specific
699 built-in functions.
700 (Declaring Attributes of Functions): Extended
701 description of short_call and long_call attributes for ARC and
702 added index entries.
703
526b7aee
SV
7042013-10-01 Saurabh Verma <saurabh.verma@codito.com>
705 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
706 Joern Rennecke <joern.rennecke@embecosm.com>
707 Muhammad Khurram Riaz <khurram.riaz@arc.com>
708 Brendan Kehoe <brendan@zen.org>
709 Michael Eager <eager@eagercon.com>
710 Simon Cook <simon.cook@embecosm.com>
711 Jeremy Bennett <jeremy.bennett@embecosm.com>
712
713 * config/arc, common/config/arc: New directories.
714
53426f6c
JR
7152013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
716 Brendan Kehoe <brendan@zen.org>
717 Simon Cook <simon.cook@embecosm.com>
718
719 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
720
1df9f5a9
AM
7212013-10-01 Andrew MacLeod <amacleod@redhat.com>
722
723 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
724 * tree-ssa-coalesce.h: New. Move prototype to here.
725 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
726 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
727 (gimple_can_coalesce_p): Move to...
728 * gimple.c (gimple_can_coalesce_p): Here.
729
80560f95
AM
7302013-10-01 Andrew MacLeod <amacleod@redhat.com>
731
732 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
733 (dump_decl_set): Move to gimple.c.
734 * gimple.h: Don't include tree-ssa-operands.h.
735 (dump_decl_set): Add prototype.
736 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
737 Move to gimple-ssa.h.
738 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
739 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
740 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
741 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
742 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
743 than PHI_ARG_DEF.
744 (dump_decl_set): Relocate here.
745 * gimple-ssa.h: New file.
746 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
747 Relocate from gimple.h.
748 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
749 * tree-ssa-operands.c (swap_ssa_operands): Rename from
750 swap_tree_operands and remove non-ssa path.
751 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
752 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
753 swap_ssa_operands.
754 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
755 vect_is_simple_reduction_1): Use swap_ssa_operands.
756 * tree-flow.h: Move various prototypes to tree-phinodes.h.
757 (enum need_phi_state): Move to tree-into-ssa.c.
758 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
759 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
760 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
761 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
762 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
763 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
764 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
765 num_imm_uses): Move to ssa-iterators.h.
766 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
767 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
768 tree-phinodes.h.
769 (op_iter_done, op_iter_next_def, op_iter_next_tree,
770 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
771 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
772 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
773 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
774 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
775 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
776 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
777 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
778 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
779 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
780 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
781 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
782 (set_phi_nodes): Move to tree-phinodes.h.
783 * tree-ssa-operands.h (enum ssa_op_iter_type,
784 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
785 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
786 (dump_decl_set): Remove prototype.
787 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
788 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
789 (set_phi_nodes): Relocate from tree-flow-inline.h.
790 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
791 tree-flow-inline.h
792 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
793 include list. Temporarily add gimple.h to include list.
794 * ssa-iterators.h: New file.
795 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
796 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
797 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
798 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
799 Relocate from tree-ssa-operands.h.
800 (delink_imm_use, link_imm_use_to_list, link_imm_use,
801 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
802 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
803 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
804 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
805 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
806 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
807 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
808 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
809 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
810 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
811 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
812 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
813 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
814 Relocate from tree-flow-inline.h.
815 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
816
8da00d65
VP
8172013-10-01 Vidya Praveen <vidyapraveen@arm.com>
818
819 * aarch64-simd.md
820 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
821 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
822 Insert '\t' to output template.
823 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
824 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
825 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
826 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
827
e2ebe1c2
UB
8282013-10-01 Uros Bizjak <ubizjak@gmail.com>
829
830 * doc/install.texi (Host/target specific installation notes for GCC):
831 Put @anchor before @heading.
832 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
833 Use @email for email addresses.
834
aee2d611
JL
8352013-10-01 Jeff Law <law@redhat.com>
836
837 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
838 a vec. Only delete the path if we create one without successfully
839 registering a jump thread.
840 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
841 as a pointer.
842 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
843 (paths): New vector of jump threading paths.
844 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
845 (THREAD_PATH): New accessor macro for the entire thread path.
846 (lookup_redirection_data): Get intermediate and final outgoing edge
847 from the thread path.
848 (create_edge_and_update_destination_phis): Copy the threading path.
849 (ssa_fix_duplicate_block_edges): Get edges and block types from the
850 jump threading path.
851 (ssa_redirect_edges): Get edges and block types from the jump threading
852 path. Free the path vector.
853 (thread_block): Get edges from the jump threading path. Look at the
854 entire path to see if we thread to a loop exit. If we cancel a jump
855 thread request, then free the path vector.
856 (thread_single_edge): Get edges and block types from the jump threading
857 path. Free the path vector.
858 (thread_through_loop_header): Get edges and block types from the jump
859 threading path. Free the path vector.
860 (mark_threaded_blocks): Iterate over the vector of paths and store
861 the path on the appropriate edge. Get edges and block types from the
862 jump threading path.
863 (mark_threaded_blocks): Get edges and block types from the jump
864 threading path. Free the path vector.
865 (thread_through_all_blocks): Use the vector of paths rather than
866 a vector of 3-edge sets.
867 (register_jump_thread): Accept pointer to a path vector rather
868 than the path vector itself. Store the path vector for later use.
869 Simplify.
870
966f97ac 8712013-10-01 Jakub Jelinek <jakub@redhat.com>
8da00d65 872 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
966f97ac
JJ
873
874 PR target/58574
875 * config/s390/s390.c (s390_split_branches): Modify check for table
876 jump insns.
877 (s390_chunkify_start): Rearrange table jump insn check in order to
878 deal with compare and branch insns correctly.
879
3a323a38
KV
8802013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
881
882 PR target/58578
883 Revert
884 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
885 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
886 define_insn_and_split.
887 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
888 (shiftsi3_compare): New pattern.
889 (rrx): New pattern.
890 * config/arm/unspecs.md (UNSPEC_RRX): New.
891
90444831
AM
8922013-10-01 Alan Modra <amodra@gmail.com>
893
894 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
895 casing inout operands.
896
818625cf
RB
8972013-10-01 Richard Biener <rguenther@suse.de>
898
899 PR tree-optimization/58553
900 * tree-loop-distribution.c (struct partition_s): Add niter member.
901 (classify_partition): Populate niter member for the partition
902 and properly identify whether the relevant store happens before
903 or after the loop exit.
904 (generate_memset_builtin): Use niter member from the partition.
905 (generate_memcpy_builtin): Likewise.
906
30f641cd
RS
9072013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
908
909 * vec.h (vec_prefix, vec): Prefix member names with "m_".
910 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
911
65d3284b
RS
9122013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
913
914 * basic-block.h (edge_list): Prefix member names with "m_".
915 * context.h (context): Likewise.
916 * domwalk.h (dom_walker): Likewise.
917 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
918 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
919 * hash-table.h (hash_table): Likewise.
920 * machmode.h (bit_field_mode_iterator): Likewise.
921 * pass_manager.h (pass_list): Likewise.
922 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
923 * tree-pass.h (pass_data): Likewise.
924 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
925 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
926 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
927 * asan.c (pass_data_asan): Update accordingly.
928 * cfganal.c (control_dependences::find_control_dependence): Likewise.
929 (control_dependences::control_dependences): Likewise.
930 (control_dependences::~control_dependences): Likewise.
931 (control_dependences::~control_dependences): Likewise.
932 (control_dependences::get_edges_dependent_on): Likewise.
933 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
934 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
935 * context.c (gcc::context::context): Likewise.
936 * cprop.c (pass_rtl_cprop::clone): Likewise.
937 * domwalk.c (dom_walker::walk): Likewise.
938 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
939 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
940 * mode-switching.c (pass_mode_switching::clone): Likewise.
941 * passes.c (opt_pass::opt_pass): Likewise.
942 (pass_manager::pass_manager): Likewise.
943 * predict.c (pass_strip_predict_hints::clone): Likewise.
944 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
945 (pass_split_all_insns::clone): Likewise.
946 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
947 Likewise.
948 (bit_field_mode_iterator::next_mode): Likewise.
949 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
950 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
951 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
952 * tree-complex.c (pass_lower_complex::clone): Likewise.
953 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
954 * tree-object-size.c (pass_object_sizes::clone): Likewise.
955 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
956 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
957 (pass_fold_builtins::clone): Likewise.
958 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
959 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
960 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
961 (pass_cd_dce::clone): Likewise.
962 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
963 (pass_phi_only_cprop::clone): Likewise.
964 * tree-ssa-dse.c (pass_dse::clone): Likewise.
965 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
966 * tree-ssa-loop.c (pass_lim::clone): Likewise.
967 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
968 * tree-ssa-pre.c (pass_fre::clone): Likewise.
969 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
970 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
971 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
972 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
973 * tree-vrp.c (pass_vrp::clone): Likewise.
974 * tsan.c (pass_tsan::clone): Likewise.
975
f66d0891
JJ
9762013-09-30 Jakub Jelinek <jakub@redhat.com>
977
d2a365a8
JJ
978 PR middle-end/58564
979 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
980 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
981
f66d0891
JJ
982 PR middle-end/58564
983 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
984 optimization, punt if sign_bit_p looked through any zero extension.
985
05357ac3
TJ
9862013-09-30 Teresa Johnson <tejohnson@google.com>
987
988 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
989 Update redirected out edge count in joiner case.
990 (ssa_redirect_edges): Common the joiner and non-joiner cases
991 so that joiner case gets profile updates.
992
ca406576
RB
9932013-09-30 Richard Biener <rguenther@suse.de>
994
995 PR tree-optimization/58554
e2ebe1c2
UB
996 * tree-loop-distribution.c (classify_partition): Require
997 unconditionally executed stores for memcpy and memset recognition.
ca406576
RB
998 (tree_loop_distribution): Calculate dominance info.
999
92d649c4
VK
10002013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1001
1002 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
1003 (NO_PROFILE_COUNTERS): Likewise.
1004 (PROFILE_HOOK): Likewise.
1005 (FUNCTION_PROFILER): Likewise.
1006 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
1007
bd9534e2
IS
10082013-09-30 Iain Sandoe <iain@codesourcery.com>
1009
1010 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
1011 calls and defines in TARGET_MACHO conditional.
1012 (load_macho_picbase_di): Likewise.
1013 (reload_macho_picbase): Likewise.
1014 (reload_macho_picbase_si): Likewise.
1015 (reload_macho_picbase_di): Likewise.
1016 (nonlocal_goto_receiver): Likewise.
1017
4494fbc9
NC
10182013-09-30 Nick Clifton <nickc@redhat.com>
1019
1020 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
1021 that use the MSP430X ISA.
1022 (msp430_option_override): Scan -mmcu command line option for any
1023 MCU name that supports the MSP430X ISA.
1024 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
1025 -mmcu options which enable the MSP430X ISA.
1026
791d9044
RB
10272013-09-30 Richard Biener <rguenther@suse.de>
1028
1029 PR middle-end/58532
1030 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
1031 before looking for setjmp-like calls.
1032
e1c5c877
IS
10332013-09-29 Iain Sandoe <iain@codesourcery.com>
1034
1035 PR target/10901
1036 * config/darwin-protos.h (machopic_get_function_picbase): New.
1037 * config/darwin.c (machopic_get_function_picbase): New.
1038 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
1039 label for a new func. (load_macho_picbase_di): Likewise.
1040 (reload_macho_picbase): New expand.
1041 (reload_macho_picbase_si): New insn.
1042 (reload_macho_picbase_di): New insn.
1043 (nonlocal_goto_receiver): New define and split.
1044 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
1045 (unspecv enum): Add UNSPECV_NLGR.
1046
749278c5
IS
10472013-09-29 Iain Sandoe <iain@codesourcery.com>
1048
1049 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
1050 that altivec registers are correctly sized on Darwin.
1051
2c43a51c
IS
10522013-09-29 Iain Sandoe <iain@codesourcery.com>
1053
1054 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
1055 darwin-driver.o): Use COMPILE and POSTCOMPILE.
1056 * config/x-darwin (host-darwin.o): Likewise.
1057 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
1058 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
1059 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
1060
7a5911d3
UB
10612013-09-29 Uros Bizjak <ubizjak@gmail.com>
1062
1063 * doc/invoke.texi: Fix usage of @tie{} command.
1064
3f67a73d
EB
10652013-09-29 Eric Botcazou <ebotcazou@adacore.com>
1066
1067 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
1068
9ac2f538
JH
10692013-09-28 Jan Hubicka <jh@suse.cz>
1070
1071 * config/i386/x86-tune.def: Add documentation for each of the options;
1072 add whitespace.
1073
b0ff06da
JH
10742013-09-28 Jan Hubicka <jh@suse.cz>
1075
7a5911d3
UB
1076 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
1077 generic.
b0ff06da
JH
1078 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
1079 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
1080 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
1081 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
1082 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
1083
c3284718
RS
10842013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
1085
1086 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
1087 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
1088 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
1089 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
1090 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
1091 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
1092 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
1093 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
1094 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
1095 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
1096 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
1097 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
1098 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
1099 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
1100 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
1101 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
1102 gimple.h, godump.c, graphite-clast-to-gimple.c,
1103 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
1104 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
1105 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
1106 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
1107 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
1108 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
1109 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
1110 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
1111 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
1112 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
1113 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
1114 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
1115 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
1116 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
1117 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
1118 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
1119 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
1120 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
1121 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
1122 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
1123 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
1124 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
1125 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
1126 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
1127 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
1128 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
1129 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
1130 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
1131 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
1132 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
1133 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
1134 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
1135 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
1136 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
1137 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
1138 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
1139 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
1140 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
1141 whitespace before "(".
1142
c6285bd7
SL
11432013-09-28 Sandra Loosemore <sandra@codesourcery.com>
1144
1145 * expr.h (extract_bit_field): Remove packedp parameter.
1146 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
1147 from forward declaration.
1148 (store_split_bit_field): Remove packedp arg from calls to
1149 extract_fixed_bit_field.
1150 (extract_bit_field_1): Remove packedp parameter and packedp
1151 argument from recursive calls and calls to extract_fixed_bit_field.
1152 (extract_bit_field): Remove packedp parameter and corresponding
1153 arg to extract_bit_field_1.
1154 (extract_fixed_bit_field): Remove packedp parameter. Remove code
1155 to issue warnings.
1156 (extract_split_bit_field): Remove packedp arg from call to
1157 extract_fixed_bit_field.
1158 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
1159 (copy_blkmode_from_reg): Likewise.
1160 (copy_blkmode_to_reg): Likewise.
1161 (read_complex_part): Likewise.
1162 (store_field): Likewise.
1163 (expand_expr_real_1): Likewise.
1164 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
1165 to extract_bit_field.
1166 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
1167 call to extract_bit_field.
1168 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
1169 call to extract_bit_field.
1170 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
1171 and special packedp behavior from -fstrict-volatile-bitfields
1172 documentation.
1173
522d4efc
JBG
11742013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1175
1176 * lra-eliminations.c (init_elim_table): Guard value_p.
1177
19cdb489
MM
11782013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
1179
1180 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
1181 DFmode, DImode, and SFmode in the upper VSX registers based on the
1182 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
1183 if -mpower8-vector. Combine -mvsx-timode handling with the rest
1184 of the VSX register handling.
1185
1186 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
1187 (f32_sv): Likewise.
1188 (zero_extendsidi2_lfiwzx): Add support for loading into the
1189 Altivec registers with -mpower8-vector. Use wu/wv constraints to
1190 only do VSX memory options on Altivec registers.
1191 (extendsidi2_lfiwax): Likewise.
1192 (extendsfdf2_fpr): Likewise.
1193 (mov<mode>_hardfloat, SF/SD modes): Likewise.
1194 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
1195 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
1196 (movdi_internal64): Likewise.
1197
d6d11272
XDL
11982013-09-27 Xinliang David Li <davidxl@google.com>
1199
1200 * opts.c (finish_options): Adjust parameters
1201 according to vect cost model.
1202 (common_handle_option): Set dynamic vect cost
1203 model for FDO.
1204 targhooks.c (default_add_stmt_cost): Compute stmt cost
1205 unconditionally.
1206 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
1207 Use helper function.
1208 * tree-vectorizer.h (unlimited_cost_model): New function.
1209 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
1210 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
1211 function.
1212 (vect_enhance_data_refs_alignment): Ditto.
1213 * flag-types.h: New enum.
1214 * common/config/i386/i386-common.c (ix86_option_init_struct):
1215 No need to initialize vect_cost_model flag.
1216 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
1217 unconditionally.
1218
ac1857a3
DN
12192013-09-27 Diego Novillo <dnovillo@google.com>
1220
1221 * gimple.h (enum ssa_mode): Remove.
1222
3c468b4c
PM
12232013-09-27 Paulo Matos <pmatos@broadcom.com>
1224
1225 PR middle-end/58463
1226 * gcc.dg/pr58463.c: New test.
1227
0d0e2af6
PM
12282013-09-27 Paulo Matos <pmatos@broadcom.com>
1229
1230 * cfgloop.h (number_of_loops): Fix typo in check for null.
1231
09dc585e
JJ
12322013-09-27 Jakub Jelinek <jakub@redhat.com>
1233
1234 PR middle-end/58551
1235 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
1236 are children of outermost saved_cfun's loop, and set it up to
1237 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
1238 if loop != loop0 and SESE region contains bbs that belong to loop0.
1239
ec5a3504
RS
12402013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
1241
1242 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
1243 (binary_scale_code_p, get_base_term, get_index_term): New functions.
1244 (set_address_segment, set_address_base, set_address_index)
1245 (set_address_disp): Accept the argument unconditionally.
1246 (baseness): Remove must_be_base_p and must_be_index_p checks.
1247 (decompose_normal_address): Classify as much as possible in the
1248 main loop.
1249
f91aec98
RS
12502013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
1251
1252 * cse.c (count_reg_usage): Handle INT_LIST.
1253 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
1254 * reginfo.c (reg_scan_mark_refs): Likewise.
1255 * reload1.c (eliminate_regs_1): Likewise.
1256
a9195970
IS
12572013-09-27 Iain Sandoe <iain@codesourcery.com>
1258
1259 PR middle-end/58547
1260 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
1261 signed.
1262
e6f1c509
RB
12632013-09-27 Richard Biener <rguenther@suse.de>
1264
1265 PR tree-optimization/58459
1266 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
1267 restriction not propagating into loops.
1268
84f48495
FW
12692013-09-26 Florian Weimer <fw@deneb.enyo.de>
1270
1271 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
1272 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
1273 * doc/tree-ssa.texi (Walking use-def chains): Delete.
1274
74fc8b8a
RB
12752013-09-26 Richard Biener <rguenther@suse.de>
1276
7a5911d3 1277 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
74fc8b8a 1278
b4ada065
RB
12792013-09-26 Richard Biener <rguenther@suse.de>
1280
1281 * alias.h (component_uses_parent_alias_set): Rename to ...
1282 (component_uses_parent_alias_set_from): ... this.
1283 * alias.c (component_uses_parent_alias_set): Rename to ...
1284 (component_uses_parent_alias_set_from): ... this and return
1285 the desired parent.
1286 (reference_alias_ptr_type_1): Use the result from
1287 component_uses_parent_alias_set_from instead of stripping
1288 components one at a time.
1289 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
1290
78bca40d
AM
12912013-09-26 Andrew MacLeod <amacleod@redhat.com>
1292
7a5911d3
UB
1293 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
1294 Move prototypes to...
78bca40d
AM
1295 * tree-ssa-ter.h: New File. Move prototypes here.
1296 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
1297 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
1298 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
7a5911d3 1299 from is_replaceable_p.
78bca40d
AM
1300 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
1301 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
1302 (process_replaceable): Use ter_is_replaceable_p.
1303 (find_replaceable_in_bb): Use ter_is_replaceable_p.
1304 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
1305 newly refactored ssa_is_replaceable_p.
1306 * cfgexpand.c: Include tree-outof-ssa.h.
1307 * ssaexpand.h: Delete.
1308
ff2a63a7
AM
13092013-09-26 Andrew MacLeod <amacleod@redhat.com>
1310
1311 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
1312 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
1313 tree-ssa.c
1314 (create_gimple_tmp): Delete.
1315 (get_expr_type, build_assign, build_type_cast): Move to...
1316 * gimple-builder.c: New File.
1317 (get_expr_type): Relocate from gimple.c.
1318 (build_assign, build_type_cast): Change to only create ssanames.
1319 * gimple.h: Move prototypes to...
1320 * gimple-builder.h: New File. Here.
1321 * tree-ssa.h: And here.
1322 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
1323 count_uses_and_derefs): Relocate from gimple.c.
1324 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
1325 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
1326 * tree-ssa-math-opts (execute_cse_reciprocals): Use
1327 gimple_replace_ssa_lhs.
1328 * asan.c: Include gimple-builder.h.
1329 * Makefile.in: Add gimple-builder.o.
1330
a2544177
RB
13312013-09-26 Richard Biener <rguenther@suse.de>
1332
1333 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
1334 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
1335 (loe_visit_block): Use gcc_checking_assert.
1336 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
1337 gimple_assign_ssa_name_copy_p.
1338 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
1339 change.
1340
6d1ca9a0
DE
13412013-09-26 David Edelsohn <dje.gcc@gmail.com>
1342
1343 * config/rs6000/t-rs6000 (rs6000.o): Remove.
1344 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
1345
46e950db
RB
13462013-09-26 Richard Biener <rguenther@suse.de>
1347
1348 PR tree-optimization/58539
1349 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
1350 the fact that debug statements are not taking part in loop-closed
1351 SSA construction.
1352
40ada30a
NC
13532013-09-26 Nick Clifton <nickc@redhat.com>
1354
1355 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
1356 time warning message.
1357 (msp430_print_operand_raw): Delete unused letter parameter.
1358 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1359 (msp430_print_operand_address): New function.
1360 (msp430_print_operand): Move address printing code from here to
1361 new function.
1362 * config/msp430/msp430.md (movsipsi2): Add comment in generated
1363 assembler.
1364 (zero_extendpsisi2): Likewise.
1365 (extendpsisi2): New pattern.
1366 (andneghi3): New pattern.
1367
38e8f663
YR
13682013-09-26 Yvan Roux <yvan.roux@linaro.org>
1369
1370 * config/aarch64/aarch64.opt (mlra): New option.
1371 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
1372 (TARGET_LRA_P): Define.
1373
4167e8d4
EB
13742013-09-26 Eric Botcazou <ebotcazou@adacore.com>
1375
1376 * expr.c (expand_assignment): Remove obsolete comment.
1377
5254eac4
JL
13782013-09-25 Jeff Law <law@redhat.com>
1379
1380 * tree-flow.h (thread_through_all_blocks): Prototype moved into
1381 tree-ssa-threadupdate.h.
1382 (register_jump_thread): Similarly.
1383 * tree-ssa-threadupdate.h: New header file.
1384 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
1385 * tree-vrp.c: Likewise.
1386 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
1387 (thread_around_empty_blocks): Change type of path vector argument to
1388 an edge,type pair from just an edge. Initialize both elements when
1389 appending to a jump threading path. Tweak references to elements
1390 appropriately.
1391 (thread_across_edge): Similarly. Release memory for the elements
1392 as needed.
1393 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
1394 (dump_jump_thread_path): New function broken out from
1395 register_jump_thread.
1396 (register_jump_thread): Use dump_jump_thread_path. Change type of
1397 path vector entries. Search the path for NULL edges and dump
1398 the path if one is found. Tweak the conversion of path to 3-edge
1399 form to use the block copy type information embedded in the path.
1400
20f114a3
YR
14012013-09-25 Yvan Roux <yvan.roux@linaro.org>
1402
1403 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
1404
3936bafc
YR
14052013-09-25 Yvan Roux <yvan.roux@linaro.org>
1406 Vladimir Makarov <vmakarov@redhat.com>
1407
1408 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
1409 from the least significant bit.
1410 (strip_address_mutations): Add bitfield operations handling.
1411 (must_be_index_p): Add shifting and rotate operations handling.
1412 (set_address_base): Use must_be_base_p predicate.
4167e8d4 1413 (set_address_index): Use must_be_index_p predicate.
3936bafc 1414
b86f6e9e
AI
14152013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
1416 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1417 Sergey Lega <sergey.s.lega@intel.com>
1418 Anna Tikhonova <anna.tikhonova@intel.com>
1419 Ilya Tocar <ilya.tocar@intel.com>
1420 Andrey Turetskiy <andrey.turetskiy@intel.com>
1421 Ilya Verbin <ilya.verbin@intel.com>
1422 Kirill Yukhin <kirill.yukhin@intel.com>
1423 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1424
1425 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1426 Use new names.
1427 (ix86_expand_vector_move_misalign): Support new unaligned load and
1428 stores and use new names.
1429 (CODE_FOR_sse2_storedqu): Rename to ...
1430 (CODE_FOR_sse2_storedquv16qi): ... this.
1431 (CODE_FOR_sse2_loaddqu): Rename to ...
1432 (CODE_FOR_sse2_loaddquv16qi): ... this.
1433 (CODE_FOR_avx_loaddqu256): Rename to ...
1434 (CODE_FOR_avx_loaddquv32qi): ... this.
1435 (CODE_FOR_avx_storedqu256): Rename to ...
1436 (CODE_FOR_avx_storedquv32qi): ... this.
1437 * config/i386/i386.md (fpint_logic): New.
1438 * config/i386/sse.md (VMOVE): Extend for AVX512.
1439 (VF): Ditto.
1440 (VF_128_256): New.
1441 (VF_512): Ditto.
1442 (VI_UNALIGNED_LOADSTORE): Ditto.
1443 (sse2_avx_avx512f): Ditto.
1444 (sse2_avx2): Extend for AVX512.
1445 (sse4_1_avx2): Ditto.
1446 (avx2_avx512f): New.
1447 (sse): Extend for AVX512.
1448 (sse2): Ditto.
1449 (sse4_1): Ditto.
1450 (avxsizesuffix): Ditto.
1451 (sseintvecmode): Ditto.
1452 (ssePSmode): Ditto.
1453 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
1454 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
1455 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
1456 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
1457 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
1458 (<sse2_avx_avx512f>_storedqu<mode): ... this.
1459 (<sse>_movnt<mode>): Replace constraint "x" with "v".
1460 (STORENT_MODE): Extend for AVX512.
1461 (*absneg<mode>2): Replace constraint "x" with "v".
1462 (*mul<mode>3): Ditto.
1463 (*ieee_smin<mode>3): Ditto.
1464 (*ieee_smax<mode>3): Ditto.
1465 (avx_cmp<mode>3): Replace VF with VF_128_256.
1466 (*<sse>_maskcmp<mode>3_comm): Ditto.
1467 (<sse>_maskcmp<mode>3): Ditto.
1468 (<sse>_andnot<mode>3): Extend for AVX512.
1469 (<code><mode>3, anylogic): Replace VF with VF_128_256.
1470 (<code><mode>3, fpint_logic): New.
1471 (*<code><mode>3): Extend for AVX512.
1472 (avx512flogicsuff): New.
1473 (avx512f_<logic><mode>): Ditto.
1474 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
1475 VF_128_256.
1476 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
1477 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
1478 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
1479 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
1480 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
1481 (xop_vpermil2<mode>3): Ditto.
1482 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
1483 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
1484 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
1485 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
1486
4d44d03c
TT
14872013-09-25 Tom Tromey <tromey@redhat.com>
1488
1489 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
1490 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
1491 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
1492 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
1493 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
1494 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
1495 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
1496 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
1497 (GRAPHITE_HTAB_H): Remove.
1498
86aaf68d
TT
14992013-09-25 Tom Tromey <tromey@redhat.com>
1500
1501 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
1502
c987deb8
TT
15032013-09-25 Tom Tromey <tromey@redhat.com>
1504
1505 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
1506
9439747e
TT
15072013-09-25 Tom Tromey <tromey@redhat.com>
1508
1509 * config/i386/t-i386 (i386.o): Remove.
1510 (i386-c.o): Use COMPILE and POSTCOMPILE.
1511
aefc31a1
TT
15122013-09-25 Tom Tromey <tromey@redhat.com>
1513
1514 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
1515
b6541edc
TT
15162013-09-25 Tom Tromey <tromey@redhat.com>
1517
1518 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
1519 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
1520 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
1521 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
1522 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
1523 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
1524 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
1525 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
1526 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
1527 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
1528 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
1529 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
1530 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
1531 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
1532 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
1533 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
1534 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
1535 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
1536 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
1537 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
1538 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
1539 (tree-ssa-pre.o, tree-ssa-sccvn.o)
1540 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
1541 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
1542 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
1543 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
1544 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
1545 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
1546 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
1547 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
1548 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
1549 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
1550 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
1551 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
1552 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
1553 (graphite-clast-to-gimple.o, graphite-dependences.o)
1554 (graphite-interchange.o, graphite-poly.o)
1555 (graphite-scop-detection.o, graphite-sese-to-poly.o)
1556 (graphite-optimize-isl.o, tree-vect-loop.o)
1557 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
1558 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
1559 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
1560 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
1561 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
1562 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
1563 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
1564 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
1565 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
1566 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
1567 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
1568 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
1569 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
1570 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
1571 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
1572 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
1573 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
1574 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
1575 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
1576 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
1577 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
1578 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
1579 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
1580 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
1581 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
1582 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
1583 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
1584 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
1585 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
1586 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
1587 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
1588 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
1589 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
1590 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
1591 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
1592 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
1593 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
1594 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
1595 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
1596 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
1597 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
1598 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
1599 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
1600 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
1601 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
1602 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
1603 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
1604 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
1605 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
1606 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
1607 (gcov-dump.o): Remove.
1608 (default-c.o): Use COMPILE and POSTCOMPILE.
1609 (CFLAGS-gcc.o): New variable.
1610 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
1611
8c796d19
TT
16122013-09-25 Tom Tromey <tromey@redhat.com>
1613
1614 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
1615 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
1616 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
1617 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
1618 (c-family/c-pragma.o, c-family/c-pretty-print.o)
1619 (c-family/c-semantics.o, c-family/c-ada-spec.o)
1620 (c-family/array-notation-common.o, c-family/stub-objc.o)
1621 (c-family/c-ubsan.o): Remove.
1622
0a6c2227
TT
16232013-09-25 Tom Tromey <tromey@redhat.com>
1624
1625 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
1626
f3bc55f0
TT
16272013-09-25 Tom Tromey <tromey@redhat.com>
1628
1629 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
1630 to add -DENABLE_SHARED_LIBGCC.
1631 (gcc.o): Don't use subshell.
1632
c11c795e
TT
16332013-09-25 Tom Tromey <tromey@redhat.com>
1634
1635 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
1636 * configure.ac: Don't invoke AM_PROG_CC_C_O.
1637 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
1638 * configure, config.in: Rebuild.
1639
043378c3
TT
16402013-09-25 Tom Tromey <tromey@redhat.com>
1641
1642 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
1643 (COMPILE, POSTCOMPILE): New variables.
1644 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
1645 (DEPFILES): New variable.
1646 Include ".Po" files.
1647 * configure.ac: Add checks for dependency checking.
1648 * configure, aclocal.m4: Regenerate.
1649
eab34643
TT
16502013-09-25 Tom Tromey <tromey@redhat.com>
1651
1652 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
7a5911d3 1653 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
eab34643 1654
d2db5e91
TT
16552013-09-25 Tom Tromey <tromey@redhat.com>
1656
1657 * Makefile.in (generated_files): Add options.h,
1658 target-hooks-def.h, insn-opinit.h,
1659 common/common-target-hooks-def.h, pass-instances.def,
1660 c-family/c-target-hooks-def.h.
1661
af33629e
JL
16622013-09-25 Jeff Law <law@redhat.com>
1663
1664 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
1665 than foo[foo.length () - 1] to access last member in a vec.
1666 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
1667
ed0d3051
RB
16682013-09-25 Richard Biener <rguenther@suse.de>
1669
1670 PR middle-end/58521
1671 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
1672
123485ca
JH
16732013-09-25 Jan Hubicka <jh@suse.cz>
1674
1675 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
1676 test.
1677
d70b0f1f
MP
16782013-09-25 Marek Polacek <polacek@redhat.com>
1679
1680 PR sanitizer/58420
1681 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
1682 when determining the type name.
1683
e3f02798
OE
16842013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
1685
1686 * config/sh/sh.md: Fix formatting.
1687
7a5911d3 16882013-09-24 Xinliang David Li <davidxl@google.com>
4f17aa0b 1689
7a5911d3
UB
1690 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
1691 max peel iterations parameter.
4f17aa0b
XDL
1692 * param.def: New parameter.
1693 * doc/invoke.texi: Document New parameter.
1694
0498471b
CL
16952013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
1696
1697 * gimple-pretty-print.c: Various whitespace tweaks.
1698 * tree-core.h: Likewise.
1699 * tree-pretty-print.c: Likewise.
1700 * tree-ssa-alias.c: Likewise.
1701 * tree-ssa-copy.c: Likewise.
1702 * tree-ssanames.c: Likewise.
1703 * tree-ssanames.h: Likewise.
1704 * tree-vrp.c: Likewise.
1705
5a8c2b57
AM
17062013-09-24 Alan Modra <amodra@gmail.com>
1707
1708 PR middle-end/57134
1709 PR middle-end/57586
7a5911d3
UB
1710 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
1711 for output operands that disallow regs. Don't use EXPAND_WRITE on
1712 inout operands.
5a8c2b57 1713
f40333af
RB
17142013-09-24 Richard Biener <rguenther@suse.de>
1715
1716 PR middle-end/58513
1717 * tree.c (reference_alias_ptr_type): Move ...
1718 * alias.c (reference_alias_ptr_type): ... here and implement
1719 in terms of the new reference_alias_ptr_type_1.
1720 (ref_all_alias_ptr_type_p): New helper.
1721 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
1722 use ref_all_alias_ptr_type_p.
1723 (get_deref_alias_set): Add flag_strict_aliasing check here.
1724 (reference_alias_ptr_type_1): New function, split out from ...
1725 (get_alias_set): ... here.
1726 (alias_ptr_types_compatible_p): New function.
1727 * alias.h (reference_alias_ptr_type): Declare.
1728 (alias_ptr_types_compatible_p): Likewise.
1729 * tree.h (reference_alias_ptr_type): Remove.
1730 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
1731 to compare MEM_REF alias types.
1732
583e8bf5
RB
17332013-09-24 Richard Biener <rguenther@suse.de>
1734
1735 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
1736
5e8586d7
MM
17372013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1738
19c3e797
MM
1739 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
1740 reload helper function arrays into a single array reg_addr.
1741 (reload_fpr_gpr): Likewise.
1742 (reload_gpr_vsx): Likewise.
1743 (reload_vsx_gpr): Likewise.
1744 (struct rs6000_reg_addr): Likewise.
1745 (reg_addr): Likewise.
1746 (rs6000_debug_reg_global): Change rs6000_vector_reload,
1747 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
1748 (rs6000_init_hard_regno_mode_ok): Likewise.
1749 (rs6000_secondary_reload_direct_move): Likewise.
1750 (rs6000_secondary_reload): Likewise.
1751
5e8586d7
MM
1752 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
1753 constraints: wu, ww, and wy. Repurpose wv constraint added during
1754 power8 changes. Put wg constraint in alphabetical order.
1755
1756 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
1757 for future work to add ISA 2.07 VSX single precision support.
1758 (-mvsx-scalar-double): Change default from -1 to 1, update
1759 documentation comment.
1760 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
1761 (-mupper-regs-df): New debug switch to control whether DF values
1762 can go in the traditional Altivec registers.
1763 (-mupper-regs-sf): New debug switch to control whether SF values
1764 can go in the traditional Altivec registers.
1765
1766 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
1767 and wy constraints.
1768 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
1769 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
1770 Add new constraints, wu/ww/wy. Repurpose wv constraint.
1771 (rs6000_debug_legitimate_address_p): Print if we are running
1772 before, during, or after reload.
1773 (rs6000_secondary_reload): Add a comment.
1774 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
1775
1776 * config/rs6000/constraints.md (wa constraint): Sort w<x>
1777 constraints. Update documentation string.
1778 (wd constraint): Likewise.
1779 (wf constraint): Likewise.
1780 (wg constraint): Likewise.
1781 (wn constraint): Likewise.
1782 (ws constraint): Likewise.
1783 (wt constraint): Likewise.
1784 (wx constraint): Likewise.
1785 (wz constraint): Likewise.
1786 (wu constraint): New constraint for ISA 2.07 SFmode scalar
1787 instructions.
1788 (ww constraint): Likewise.
1789 (wy constraint): Likewise.
1790 (wv constraint): Repurpose ISA 2.07 constraint that we not used in
1791 the previous submissions.
1792 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
1793
e5af9ddd
RS
17942013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
1795
1796 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
1797 (REG_BR_PROB): Say that the probability is stored in an int_list.
1798 * reg-notes.def: Update commentary to mention INT_LIST.
1799 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
1800 (INT_LIST): New rtx.
1801 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
1802 * rtlanal.c (int_reg_note_p): New function.
1803 (alloc_reg_note): Assert that the note does not have an int argument.
1804 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
1805 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
1806 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
1807 rather than an INSN_LIST. Handle INT_LIST.
1808 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
1809 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
1810 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
1811 Manipulate them as ints rather than rtxes.
1812 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
1813 * regmove.c (copy_src_to_dest): Likewise.
1814 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
1815
1816 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
1817 into the cases that need it.
1818 * config/arm/arm.c (arm_unwind_emit): Likewise.
1819
1820 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
1821 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
1822 * loop-doloop.c (add_test, doloop_modify): Likewise.
1823 * loop-unswitch.c (compare_and_jump_seq): Likewise.
1824 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
1825 * predict.c (combine_predictions_for_insn): Likewise.
1826 * print-rtl.c (print_rtx): Handle INT_LIST.
1827 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
1828 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
1829 * config/arm/arm.c (emit_unlikely_jump): Likewise.
1830 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
1831 (ix86_split_fp_branch, predict_jump): Likewise.
1832 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
1833 * config/sh/sh.c (expand_cbranchsi4): Likewise.
1834 * config/spu/spu.c (ea_load_store_inline): Likewise.
1835
1836 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
1837 value of a REG_BR_PROB note.
1838 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1839 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
1840 * emit-rtl.c (try_split): Likewise.
1841 * predict.c (br_prob_note_reliable_p): Likewise.
1842 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
1843 * reorg.c (mostly_true_jump): Likewise.
1844 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
1845 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1846 * config/i386/i386.c (ix86_print_operand): Likewise.
1847 * config/ia64/ia64.c (ia64_print_operand): Likewise.
1848 * config/mmix/mmix.c (mmix_print_operand): Likewise.
1849 * config/rs6000/rs6000.c (output_cbranch): Likewise.
1850 * config/s390/s390.c (s390_expand_tbegin): Likewise.
1851 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
1852 * config/sparc/sparc.c (output_cbranch): Likewise.
1853 * config/spu/spu.c (get_branch_target): Likewise.
1854 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
1855 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
1856
450ad0cd
JH
18572013-09-23 Jan Hubicka <jh@suse.cz>
1858
1859 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
1860 for ipa-devirt.
1861 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
1862 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
1863 of external calls
1864 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
1865 (gimple_fold_call): Dump inconsistent devirtualizations; add
1866 sanity check for type based devirtualizations.
1867 * ipa-prop.c: Include ipa-utils.h
1868 (ipa_intraprocedural_devirtualization): Add sanity check.
1869 (try_make_edge_direct_virtual_call): Likewise.
1870
cefce769
EB
18712013-09-23 Eric Botcazou <ebotcazou@adacore.com>
1872
1873 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
1874 assignment statements.
1875
a895a2b8
KV
18762013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1877
1878 * gimple-pretty-print.c (dump_ssaname_info): New function.
1879 (dump_gimple_phi): Call it.
1880 (pp_gimple_stmt_1): Likewise.
1881 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
1882 (range_info_def): Declare.
1883 * tree-pretty-print.c (pp_double_int): New function.
1884 (dump_generic_node): Call it.
1885 * tree-pretty-print.h (pp_double_int): Declare.
1886 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
1887 * tree-ssanames.h (range_info_def): New structure.
1888 (value_range_type): Move definition here.
1889 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
1890 Declare.
1891 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
1892 initialization.
1893 (set_range_info): New function.
1894 (get_range_info): Likewise.
1895 (duplicate_ssa_name_range_info): Likewise.
1896 (duplicate_ssa_name_fn): Check pointer type and call
1897 duplicate_ssa_name_range_info.
1898 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1899 * tree-vrp.c (value_range_type): Remove definition, now in
1900 tree-ssanames.h.
7a5911d3 1901 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
a895a2b8
KV
1902 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
1903 (SSA_NAME_RANGE_INFO): New macro.
1904
984af6ac
RB
19052013-09-23 Richard Biener <rguenther@suse.de>
1906
1907 PR tree-optimization/58464
1908 * tree-ssa-pre.c (phi_trans_lookup): Remove.
7a5911d3 1909 (phi_trans_add): Change to add conditionally on being not present.
984af6ac
RB
1910 (phi_translate_1): Remove recursion detection here.
1911 (phi_translate): Pre-seed the cache with NULL to catch
1912 recursion here in a more generic way.
1913 (bitmap_find_leader): Adjust comment.
1914 (get_representative_for): Dump value-numbers.
1915 (create_expression_by_pieces): Likewise.
1916 (insert_into_preds_of_block): Likewise.
1917
0e26cf79
CB
19182013-09-23 Christian Bruel <christian.bruel@st.com>
1919
1920 PR target/58475
1921 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
1922 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
1923
4d0e5b54
JG
19242013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
1925
1926 Revert r202780:
1927 2013-09-20 Renlin Li <renlin.li@arm.com>
1928
7a5911d3
UB
1929 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
1930 plus_constant.
4d0e5b54
JG
1931 (aarch64_expand_epilogue): Likewise.
1932 (aarch64_legitimize_reload_address): Likewise.
1933
ca081cc8
EB
19342013-09-22 Eric Botcazou <ebotcazou@adacore.com>
1935
1936 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
1937 NULL_TREE before pushing them onto the vector. Likewise for labels.
1938
8fc53a5f
EB
19392013-09-21 Eric Botcazou <ebotcazou@adacore.com>
1940
1941 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
1942 comparison operators when -fno-trapping-math is in effect.
1943 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
1944 comparison operators in TFmode and assert that unsupported operators
1945 cannot reach here.
1946 (ia64_print_operand): Likewise.
1947
19482013-09-21 Jan Hubicka <jh@suse.cz>
0ca6c49f
JH
1949
1950 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
1951 (sse_typeless_stores): Enable for core
1952 (sse_load0_by_pxor): Likewise.
1953 (four_jump_limit): Disable for core.
1954 (pad_returns): Likewise.
1955 (avoid_vector_decode): Likewise.
1956 (fuse_cmp_and_branch): Enable for cores.
1957 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
1958
578e51e6
JDA
19592013-09-20 John David Anglin <danglin@gcc.gnu.org>
1960
96ce28a3
JDA
1961 PR middle-end/56791
1962 * config/pa/pa.c (pa_option_override): Disable auto increment and
1963 decrement instructions until reload is completed.
1964
578e51e6
JDA
1965 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
1966 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
1967 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1968
6fcd3a13 19692013-09-20 DJ Delorie <dj@redhat.com>
7a5911d3 1970 Nick Clifton <nickc@redhat.com>
6fcd3a13
DD
1971
1972 * config/rl78/rl78.c: Various whitespace and comment tweaks.
1973 (need_to_save): Save bank 0 on interrupts.
1974 (characterize_address): Strip far address wrappers.
1975 (rl78_as_legitimate_address): Likewise.
1976 (transcode_memory_rtx): Likewise.
1977 (rl78_peep_movhi_p): Disable this peephole after devirt.
1978 (rl78_propogate_register_origins): Forget all origins when a
1979 CLOBBER is seen.
1980 * config/rl78/rl78-virt.md: Various whitespace tweaks.
1981 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
1982 peephole2's.
1983 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
1984 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
1985 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
1986 relocating.
1987 * config/rl78/constraints.md: Various whitespace and paren tweaks.
1988
4a08db33
JDA
19892013-09-20 John David Anglin <danglin@gcc.gnu.org>
1990
1991 * config/pa/pa.md: In "scc" insn patterns, change output template to
1992 handle const0_rtx in reg_or_0_operand operands.
1993
7691132c
JBG
19942013-09-20 Martin Husemann <martin@NetBSD.org>
1995
1996 PR target/56875
1997 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
1998 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
1999
a3cc13cc
RB
20002013-09-20 Richard Biener <rguenther@suse.de>
2001
2002 PR middle-end/58484
2003 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
2004 remembering SSA name version and block index.
2005 (new_scev_info_str): Adjust.
2006 (hash_scev_info): Likewise. Also hash the block index.
2007 (eq_scev_info): Adjust.
2008 (find_var_scev_info): Likewise.
2009 (struct instantiate_cache_entry): Remove.
2010 (struct instantiate_cache_type): Use a htab to map name, block
2011 to chrec.
2012 (instantiate_cache_type::~instantiate_cache_type): Adjust.
2013 (get_instantiated_value_entry): Likewise.
2014 (hash_idx_scev_info, eq_idx_scev_info): New functions.
2015 (instantiate_scev_name): Adjust.
2016
925f3871
JL
20172013-09-20 Jeff Law <law@redhat.com>
2018
2019 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
2020
2888c331
YZ
20212013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
2022
2023 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
2024 Call aarch64_simd_expand_args to update op[argc].
2025
0a811e96
BS
20262013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
2027
7a5911d3
UB
2028 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
2029 plugin argument.
0a811e96 2030
0078f462
BS
20312013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
2032
7a5911d3
UB
2033 * gengtype.c (file_rules): Added rule for *.cc files.
2034 (get_output_file_with_visibility): Give fatal message when no
2035 rules found.
0078f462 2036
d20e48b0
RL
20372013-09-20 Renlin Li <renlin.li@arm.com>
2038
2039 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
2040 (aarch64_expand_epilogue): Likewise.
2041 (aarch64_legitimize_reload_address): Likewise.
2042
59bb1544
BE
20432013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
2044
2045 PR middle-end/57748
2046 * expr.c (expand_assignment): Remove misalignp code path.
2047
a5430019
MP
20482013-09-20 Marek Polacek <polacek@redhat.com>
2049
2050 PR sanitizer/58413
2051 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
2052 TYPE_PRECISION. Add asserts.
2053
9fed7f3a
RB
20542013-09-20 Richard Biener <rguenther@suse.de>
2055
2056 PR tree-optimization/58453
2057 * tree-loop-distribution.c (distribute_loop): Apply the cost
2058 model for -ftree-loop-distribute-patterns, too.
2059
a820c834
RB
20602013-09-20 Richard Biener <rguenther@suse.de>
2061
2062 PR middle-end/58473
2063 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
2064 make type comparison less strict.
2065
3cbe17f7
AM
20662013-09-20 Alan Modra <amodra@gmail.com>
2067
2068 * configure: Regenerate.
2069 * aclocal.m4: Regenerate.
2070
87fccdbb
MP
20712013-09-20 Marek Polacek <polacek@redhat.com>
2072
2073 PR other/58467
2074 * doc/extend.texi: Document that attribute used is meant to be used
2075 on variables with static storage duration.
2076
8928eff3
JJ
20772013-09-19 Jakub Jelinek <jakub@redhat.com>
2078
2079 PR tree-optimization/58472
2080 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
2081 simd_lane_access set inv_p = false.
2082 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
2083 the simduid magic VAR_DECL.
2084
b7b28c53
JH
20852013-09-19 Jan Hubicka <jh@suse.cz>
2086
2087 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
2088
83ae86f5
JL
20892013-09-17 Jeff Law <law@redhat.com>
2090
2091 * tree-ssa-dom.c (record_temporary_equivalences): New function
2092 split out of dom_opt_dom_walker::after_dom_children.
2093 (dom_opt_dom_walker::thread_across_edge): Move common code
2094 in here from dom_opt_dom_walker::after_dom_children.
2095 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
2096
9d532162
JH
20972013-09-19 Jan Hubicka <jh@suse.cz>
2098
2099 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
2100 (TARGET_GENERIC): Use PROCESOR_GENERIC
2101 (enum processor_type): Unify generic32 and 64.
2102 * i386.md (cpu): Likewise.
2103 * x86-tune.def (use_leave): Enable for generic32.
2104 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
2105 * athlon.md: Change generic64 to generic in all occurences.
2106 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
2107 (ix86_target_macros_internal): Likewise.
2108 * driver-i386.c (host_detect_local_cpu): Likewise.
7a5911d3
UB
2109 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
2110 to ..
9d532162
JH
2111 (generic_memcpy, generic_memset, generic_cost): This one.
2112 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
2113 (m_GENERIC32, m_GENERIC64): Remove.
2114 (m_GENERIC): Turn into one flag.
2115 (processor_target): Unify generic tunnings.
2116 (ix86_option_override_internal): Replace generic32/64 by generic.
2117 (ix86_issue_rate): Likewise.
2118 (ix86_adjust_cost): Likewise.
2119
188c7d00
JH
21202013-09-19 Jan Hubicka <jh@suse.cz>
2121
2122 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
2123 of speculative flag.
2124
4befd127
JJ
21252013-09-19 Jakub Jelinek <jakub@redhat.com>
2126
2127 * omp-low.c (expand_omp_sections): Always pass len - 1 to
2128 GOMP_sections_start, even if !exit_reachable.
2129
8a26ad39
VM
21302013-09-18 Vladimir Makarov <vmakarov@redhat.com>
2131
2132 * lra-constraints.c (need_for_all_save_p): Use macro
2133 HARD_REGNO_CALL_PART_CLOBBERED.
2134 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
2135 set up pseudo conflict hard regs.
2136
09487185
MM
21372013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2138
2139 PR target/58452
2140 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
2141 operands.
2142
080cbf9e
VM
21432013-09-18 Vladimir Makarov <vmakarov@redhat.com>
2144
2145 PR rtl-optimization/58438
2146 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
2147 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
2148 from previous subpasses.
2149
a0f70fcb
RE
21502013-09-18 Richard Earnshaw <rearnsha@arm.com>
2151
2152 * arm.c (arm_get_frame_offsets): Validate architecture supports
2153 LDRD/STRD before accepting the tuning preference.
2154 (arm_expand_prologue): Likewise.
2155 (arm_expand_epilogue): Likewise.
2156
0547c9b6
RB
21572013-09-18 Richard Biener <rguenther@suse.de>
2158
2159 PR tree-optimization/58417
2160 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
2161 have chrecs with symbols defined in the loop as operands.
2162 (chrec_fold_multiply): Likewise.
2163 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
2164 parameters before folding binary operations.
2165 (struct instantiate_cache_entry_hasher): Remove.
2166 (struct instantiate_cache_type): Use a pointer-map.
2167 (instantiate_cache_type::instantiate_cache_type): New function.
2168 (instantiate_cache_type::get): Likewise.
2169 (instantiate_cache_type::set): Likewise.
2170 (instantiate_cache_type::~instantiate_cache_type): Adjust.
2171 (get_instantiated_value_entry): Likewise.
2172 (global_cache): New global.
2173 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
2174 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
2175 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
2176 (instantiate_scev_name): Adjust.
2177 (instantiate_scev): Construct global instead of local cache.
2178 (resolve_mixers): Likewise.
2179
309dc1aa
DM
21802013-09-18 Daniel Morris <danielm@ecoscentric.com>
2181 Paolo Carlini <paolo.carlini@oracle.com>
2182
2183 PR c++/58458
2184 * doc/implement-cxx.texi: Fix references to the C++ standards.
2185
995a1b4a
JJ
21862013-09-18 Jakub Jelinek <jakub@redhat.com>
2187
2188 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
2189 * tree-vect-data-refs.c (vect_analyze_data_refs): For
2190 simd_lane_access drs, update also DR_ALIGNED_TO.
2191
ce6923c5
MP
21922013-09-18 Marek Polacek <polacek@redhat.com>
2193
2194 PR sanitizer/58411
2195 * doc/extend.texi: Document no_sanitize_undefined attribute.
2196 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
2197 no_sanitize_undefined attribute.
2198
d30d00a2
NC
21992013-09-18 Nick Clifton <nickc@redhat.com>
2200
2201 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
2202 (ASM_DECLARE_FUNCTION_NAME): Define.
2203
4d9192b5
TS
22042013-09-17 Trevor Saunders <tsaunders@mozilla.com>
2205
2206 * compare-elim.c (find_comparison_dom_walker): New class
2207 (find_comparisons_in_bb): Rename to
2208 find_comparison_dom_walker::before_dom_children
2209 (find_comparisons): Adjust
2210 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
2211 adjust.
2212 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
2213 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
2214 (init_walk_dominator_tree): Remove declaration.
2215 (fini_walk_dominator_tree): Remove declaration.
2216 * fwprop.c (single_def_use_dom_walker): New class
2217 (single_def_use_enter_block): Convert to
2218 single_def_use_dom_walker::before_dom_children.
2219 (single_def_use_leave_block): Convert to
2220 single_def_use_dom_walker::after_dom_children.
2221 (build_single_def_use_links): Adjust.
2222 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
2223 class.
2224 (find_candidates_in_block): Convert to
2225 find_candidates_dom_walker::before_dom_children.
2226 (execute_strength_reduction): Adjust.
2227 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
2228 (sese_dom_walker): New class.
2229 (sese_dom_walker::sese_dom_walker): New constructor.
2230 (sese_dom_walker::~sese_dom_walker): New destructor.
2231 (build_sese_conditions_before): Convert to
2232 sese_dom_walker::before_dom_children.
2233 (build_sese_conditions_after): Convert to
2234 sese_dom_walker::after_dom_children.
2235 (build_poly_scop): Adjust
2236 * tree-into-ssa.c (rewrite_dom_walker): New class
2237 (rewrite_enter_block): Convert to
2238 rewrite_dom_walker::before_dom_children.
2239 (rewrite_leave_block): Convert to
2240 rewrite_dom_walker::after_dom_children.
2241 (rewrite_update_dom_walker): New class.
2242 (rewrite_update_enter_block): Convert to
2243 rewrite_update_dom_walker::before_dom_children.
2244 (rewrite_update_leave_block): Convert to
2245 rewrite_update_dom_walker::after_dom_children.
2246 (rewrite_blocks, rewrite_into_ssa): Adjust.
2247 (mark_def_dom_walker): New class.
2248 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
2249 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
2250 (mark_def_sites_blocks): Convert to
2251 mark_def_dom_walker::before_dom_children.
2252 (mark_def_site_blocks): Remove.
2253 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
2254 (tree_ssa_dominator_optimize): Adjust.
2255 (dom_thread_across_edge): Convert to method
2256 dom_opt_dom_walker::thread_across_edge.
2257 (dom_opt_enter_block): Convert to member function
2258 dom_opt_dom_walker::before_dom_children.
2259 (dom_opt_leave_block): Convert to member function
2260 dom_opt_dom_walker::after_dom_children.
2261 * tree-ssa-dse.c (dse_dom_walker): New class.
2262 (dse_enter_block): Convert to member function
2263 dse_dom_walker::before_dom_children.
2264 (tree_ssa_dse): Adjust.
2265 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
2266 (determine_invariantness_stmt): Convert to method
2267 invariantness_dom_walker::before_dom_children.
2268 (determine_invariantness): Remove
2269 (move_computations_dom_walker): New class.
2270 (move_computations_stmt): Convert to method
2271 move_computations_dom_walker::before_dom_children.
2272 (move_computations, tree_ssa_lim): Adjust.
2273 * tree-ssa-phiopt.c (nontrapping_dom_walker): new class
2274 (nt_init_block): Make method
2275 notrappping_dom_walker::before_dom_children.
2276 (nt_fini_block): Make
2277 method nontrapping_dom_walker::after_dom_children.
2278 (get_non_trapping): Adjust.
2279 * tree-ssa-pre.c (eliminate_dom_walker): New class.
2280 (eliminate_bb): Make method eliminate_dom_walker::before_dom_children.
2281 (eliminate_leave_block): Make method.
2282 eliminate_dom_walker::after_dom_children.
2283 (eliminate): Adjust
2284 * tree-ssa-strlen.c (strlen_dom_walker): New class.
2285 (strlen_enter_block): Make method
2286 strlen_dom_walker::before_dom_children.
2287 (strlen_leave_block): Make
2288 method strlen_dom_walker::after_dom_children.
2289 (tree_ssa_strlen): Adjust.
2290 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
2291 (tree_ssa_uncprop): Adjust.
2292 (uncprop_leave_block): Make method
2293 uncprop_dom_walker::after_dom_children.
2294 (uncprop_leave_block): Make method
2295 uncprop_dom_walker::before_dom_children.
2296
3b3cc26b
BC
22972013-09-18 Bin Cheng <bin.cheng@arm.com>
2298
7a5911d3
UB
2299 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
2300 branch in same basic block. Check both src and dest of the move insn.
3b3cc26b 2301
b5ba3a9b
NC
23022013-09-17 Nick Clifton <nickc@redhat.com>
2303
2304 * config/rl78/rl78-real.md (bf): New pattern.
2305 (bt): New pattern.
2306 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
2307 (rl78_print_operand): Do not put a # before a %B.
2308 * config/rl78/rl78.opt: Tweak doc strings.
2309
09d5094b
DD
23102013-09-17 DJ Delorie <dj@redhat.com>
2311
2312 * config/rl78/constraints.md (Wcv): Allow up to $r31.
2313 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
2314 (rl78_option_override): Likewise, if -mallregs.
2315 (is_virtual_register): Likewise.
2316 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
2317 (REGNO_OK_FOR_BASE_P): Likewise.
2318 * config/rl78/rl78.opt (-mallregs): New.
2319
2ba1dca1
NC
23202013-09-17 Nick Clifton <nickc@redhat.com>
2321
2322 * config/rl78/rl78.c (need_to_save): Change return type to bool.
2323 For interrupt functions: save all call clobbered registers if the
2324 interrupt handler is not a leaf function.
2325 (rl78_expand_prologue): Always recompute the frame information.
2326 For interrupt functions: only select bank 0 if one of the bank 0
2327 registers is going to be psuhed.
2328
2e7c3f21
DD
23292013-09-17 DJ Delorie <dj@redhat.com>
2330
2331 * config/rl78/constraints.md: For each W* constraint, rename to C*
2332 and create a W* constraint that checks for an optional ES: prefix
2333 pattern also.
2334 * config/rl78/rl78.md (UNS_ES_ADDR): New.
2335 (es_addr): New. Used to wrap far addresses.
2336 * config/rl78/rl78-protos.h (rl78_es_addr): New.
2337 (rl78_es_base): New.
2338 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
2339 wrapped far addresses.
2340 (rl78_print_operand_1): Unwrap far addresses before processing.
2341 (rl78_lo16): Wrap far addresses in unspecs.
2342 (rl78_es_addr): New.
2343 (rl78_es_base): New.
2344 (insn_ok_now): Check for not-yet-wrapped far addresses.
2345 (transcode_memory_rtx): Properly re-wrap far addresses.
2346
5c26a69a
SH
23472013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
2348
2349 * config/sparc/t-rtems: Add leon3 multilibs.
2350
181f5f3e
CH
23512013-09-17 Cong Hou <congh@google.com>
2352
2353 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
2354 when checking the dot production pattern. The type of rhs operand
2355 of multiply is now checked correctly.
2356
8d34e421
JL
23572013-09-17 Jeff Law <law@redhat.com>
2358
2359 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
2360 edge implied equivalences into successor phis.
2361 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
2362 here from tree-ssa-threadedge.c.
2363 (mark_threaded_blocks): When threading through a joiner, if both
2364 successors of the joiner's clone reach the same block, verify the
2365 PHI arguments are equal. If not, cancel the jump threading request.
2366 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
2367 tree-ssa-threadupdate.c
2368 (thread_across_edge): Don't check PHI argument equality when
2369 threading through joiner block here.
7a5911d3 2370
c152901f
AM
23712013-09-17 Andrew MacLeod <amacleod@redhat.com>
2372
2373 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
2374 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
7a5911d3
UB
2375 (warn_uninit, warn_uninitialized_vars,
2376 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
2377 Move to tree-ssa-uninit.c.
78cedfb1 2378 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
7a5911d3 2379 (has_undefined_value_p): New. Pass dependant parts of
c152901f
AM
2380 ssa_undefined_value_p.
2381 (uninit_undefined_value_p): Use has_undefined_value_p.
7a5911d3
UB
2382 (warn_uninit, warn_uninitialized_vars,
2383 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
2384 Move from tree-ssa.c.
2385 * tree-ssa.h: Adjust prototypes.
c152901f 2386
b631d45a
JH
23872013-09-17 Jan Hubicka <jh@suse.cz>
2388
2389 PR middle-end/58332
2390 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
2391 * ipa-inline.c (can_inline_edge_p): Do not downgrade
2392 FUNCTION_NOT_OPTIMIZED.
2393 * ipa-inline-analysis.c (compute_inline_parameters): Function
2394 not optimized is not inlinable unless it is alwaysinline.
2395 (inline_analyze_function): Force calls in not optimized
2396 function not inlinable.
2397
5b79657a
JH
23982013-09-17 Jan Hubicka <jh@suse.cz>
2399
2400 PR middle-end/58329
2401 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
2402 to return NULL.
2403 * ipa.c (function_and_variable_visibility): Likewise.
2404 * ipa-profile.c (ipa_profile): Likewise.
2405
27442c24
BE
24062013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
2407
2408 PR ipa/58398
2409 * cgraph.c (cgraph_function_body_availability): Check for ifunc
2410 attribute, and don't inline the resolver in this case.
2411
753b9bc3
TJ
24122013-09-17 Teresa Johnson <tejohnson@google.com>
2413
2414 * coverage.c (get_coverage_counts): Add missing newline.
2415
e3d3cfb4
KT
24162013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2417
2418 PR tree-optimization/58088
2419 * fold-const.c (mask_with_trailing_zeros): New function.
2420 (fold_binary_loc): Make sure we don't recurse infinitely
2421 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
2422 Use mask_with_trailing_zeros where appropriate.
2423
9a0ac98f
YR
24242013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
2425
2426 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
2427 of 'prev' var to get better distance estimation.
2428
78bbd765
EB
24292013-09-17 Eric Botcazou <ebotcazou@adacore.com>
2430
2431 * tree-inline.h (struct copy_body_data): Add transform_parameter.
2432 * tree-inline.c (is_parameter_of): New predicate.
2433 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
2434 a parameter has been remapped.
2435 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
2436 (optimize_inline_calls): Initialize transform_parameter.
2437 (copy_gimple_seq_and_replace_locals): Likewise.
2438 (tree_function_versioning): Likewise.
2439 (maybe_inline_call_in_expr): Likewise.
2440
cad055a4
NC
24412013-09-17 Nick Clifton <nickc@redhat.com>
2442
2443 * config/msp430/msp430-protos.h: Add prototypes for new functions.
2444 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
2445 interrupt handlers.
2446 (is_attr_func): New function.
2447 (msp430_is_interrupt_func): New function.
2448 (is_naked_func): New function.
2449 (is_reentrant_func): New function.
2450 (is_critical_func): New function.
2451 (msp430_start_function): Add annotations for function attributes.
2452 (msp430_attr): New function.
2453 (msp430_attribute_table): New.
2454 (msp430_function_section): New function.
2455 (TARGET_ASM_FUNCTION_SECTION): Define.
2456 (msp430_builtin): New enum.
2457 (msp430_init_builtins): New function.
2458 (msp430_builtin_devl): New function.
2459 (msp430_expand_builtin): New function.
2460 (TARGET_INIT_BUILTINS): Define.
2461 (TARGET_EXPAND_BUILTINS): Define.
2462 (TARGET_BUILTIN_DECL): Define.
2463 (msp430_expand_prologue): Add support for naked, interrupt,
2464 critical and reentrant functions.
2465 (msp430_expand_epilogue): Likewise.
2466 (msp430_print_operand): Handle 'O' character.
2467 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
2468 NO_TRAMPOLINES.
2469 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
2470 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
2471 (pushm): Use a 'n' rather than an 'i' constraint.
2472 (msp_return): Add generation of the interrupt return instruction.
2473 (disable_interrupts): New pattern.
2474 (enable_interrupts): New pattern.
2475 (push_intr_state): New pattern.
2476 (pop_intr_state): New pattern.
2477 (bic_SR): New pattern.
2478 (bis_SR): New pattern.
2479 * doc/extend.texi: Document MSP430 function attributes and builtin
2480 functions.
2481
deb6c11a
RB
24822013-09-17 Richard Biener <rguenther@suse.de>
2483
2484 PR tree-optimization/58432
2485 * tree-loop-distribution.c (tree_loop_distribution): Also
2486 scan PHIs for outside loop uses and seed a partition from them.
2487
c068654b
BC
24882013-09-17 Bin Cheng <bin.cheng@arm.com>
2489
2490 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
2491 (restructure_reference): Call backtrace_base_for_ref.
2492
567969e4
AM
24932013-09-17 Alan Modra <amodra@gmail.com>
2494
2495 PR target/57589
7a5911d3
UB
2496 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
2497 patch.
567969e4 2498
5c0029de
DD
24992013-09-16 DJ Delorie <dj@redhat.com>
2500
2501 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
2502 vregs location for RL78/G10.
2503 (rl78_expand_prologue): Avoid SEL on G10.
2504 (rl78_expand_epilogue): Likewise.
2505 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
2506 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
2507 __RL78_G10__ when appropriate.
2508 (ASM_SPEC): Pass -mg10 along to the assembler.
2509 * config/rl78/rl78.md (sel_rb): Disable for G10.
2510 * config/rl78/rl78.opt: Add -mg10 option.
2511 * config/rl78/t-rl78: Add -mg10 multilib.
2512
ea0f3e87
XDL
25132013-09-16 Xinliang David Li <davidxl@google.com>
2514
2515 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
2516 * omp-low.c (omp_max_vf): Ditto.
2517 (expand_omp_simd): Ditto.
2518 * tree-vectorizer.c (vectorize_loops): Ditto.
2519 (gate_vect_slp): Ditto.
2520 (gate_increase_alignment): Ditto.
2521 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
2522 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
2523 (gate_tree_vectorize): Name change.
2524 (tree_vectorize): Ditto.
2525 (pass_vectorize::gate): Call new function.
2526 (pass_vectorize::execute): Ditto.
7a5911d3 2527 * opts.c: O3 default setting change.
ea0f3e87
XDL
2528 (finish_options): Check new flag.
2529 * doc/invoke.texi: Document new flags.
2530 * common.opt: New flags.
2531
4f3da2e5
AS
25322013-09-16 Andreas Schwab <schwab@linux-m68k.org>
2533
2534 * doc/tm.texi.in (Cond Exec Macros): Remove node.
2535 (Condition Code): Don't reference it.
2536 * doc/tm.texi: Regenerate.
2537
aa940f7c
VM
25382013-09-16 Vladimir Makarov <vmakarov@redhat.com>
2539
2540 PR middle-end/58418
2541 * lra-constraints.c (undo_optional_reloads): Consider all optional
2542 reload even if it did not get a hard reg.
2543
e645e942
TJ
25442013-09-16 Teresa Johnson <tejohnson@google.com>
2545
2546 * dumpfile.c (dump_loc): Remove newline emission.
2547 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
2548 emission to dump_printf_loc calls where missing.
2549 (vect_mark_for_runtime_alias_test): Ditto.
2550 (vect_analyze_data_ref_dependence): Ditto.
2551 (vect_analyze_data_ref_dependences): Ditto.
2552 (vect_slp_analyze_data_ref_dependence): Ditto.
2553 (vect_slp_analyze_data_ref_dependences): Ditto.
2554 (vect_compute_data_ref_alignment): Ditto.
2555 (vect_update_misalignment_for_peel): Ditto.
2556 (vect_verify_datarefs_alignment): Ditto.
2557 (vector_alignment_reachable_p): Ditto.
2558 (vect_get_data_access_cost): Ditto.
2559 (vect_enhance_data_refs_alignment): Ditto.
2560 (vect_find_same_alignment_drs): Ditto.
2561 (vect_analyze_data_refs_alignment): Ditto.
2562 (vect_analyze_group_access): Ditto.
2563 (vect_analyze_data_ref_access): Ditto.
2564 (vect_analyze_data_ref_accesses): Ditto.
2565 (vect_prune_runtime_alias_test_list): Ditto.
2566 (vect_analyze_data_refs): Ditto.
2567 (vect_create_addr_base_for_vector_ref): Ditto.
2568 (vect_create_data_ref_ptr): Ditto.
2569 (vect_grouped_store_supported): Ditto.
2570 (vect_grouped_load_supported): Ditto.
2571 * value-prof.c (check_counter): Ditto.
2572 (check_ic_target): Ditto.
2573 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
2574 (vect_recog_widen_mult_pattern): Ditto.
2575 (vect_recog_widen_sum_pattern): Ditto.
2576 (vect_recog_over_widening_pattern): Ditto.
2577 (vect_recog_widen_shift_pattern): Ditto.
2578 (vect_recog_rotate_pattern): Ditto.
2579 (vect_recog_vector_vector_shift_pattern): Ditto.
2580 (vect_recog_divmod_pattern): Ditto.
2581 (vect_recog_mixed_size_cond_pattern): Ditto.
2582 (vect_recog_bool_pattern): Ditto.
2583 (vect_pattern_recog_1): Ditto.
2584 (vect_pattern_recog): Ditto.
2585 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
2586 (vect_is_simple_iv_evolution): Ditto.
2587 (vect_analyze_scalar_cycles_1): Ditto.
2588 (vect_get_loop_niters): Ditto.
2589 (vect_analyze_loop_1): Ditto.
2590 (vect_analyze_loop_form): Ditto.
2591 (vect_analyze_loop_operations): Ditto.
2592 (vect_analyze_loop_2): Ditto.
2593 (vect_analyze_loop): Ditto.
2594 (report_vect_op): Ditto.
2595 (vect_is_slp_reduction): Ditto.
2596 (vect_is_simple_reduction_1): Ditto.
2597 (vect_get_known_peeling_cost): Ditto.
2598 (vect_estimate_min_profitable_iters): Ditto.
2599 (vect_model_reduction_cost): Ditto.
2600 (vect_model_induction_cost): Ditto.
2601 (get_initial_def_for_induction): Ditto.
2602 (vect_create_epilog_for_reduction): Ditto.
2603 (vectorizable_reduction): Ditto.
2604 (vectorizable_induction): Ditto.
2605 (vectorizable_live_operation): Ditto.
2606 (vect_loop_kill_debug_uses): Ditto.
2607 (vect_transform_loop): Ditto.
2608 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
2609 (vect_stmt_relevant_p): Ditto.
2610 (process_use): Ditto.
2611 (vect_mark_stmts_to_be_vectorized): Ditto.
2612 (vect_model_simple_cost): Ditto.
2613 (vect_model_promotion_demotion_cost): Ditto.
2614 (vect_model_store_cost): Ditto.
2615 (vect_get_store_cost): Ditto.
2616 (vect_model_load_cost): Ditto.
2617 (vect_get_load_cost): Ditto.
2618 (vect_init_vector_1): Ditto.
2619 (vect_get_vec_def_for_operand): Ditto.
2620 (vect_finish_stmt_generation): Ditto.
2621 (vectorizable_call): Ditto.
2622 (vectorizable_conversion): Ditto.
2623 (vectorizable_assignment): Ditto.
2624 (vectorizable_shift): Ditto.
2625 (vectorizable_operation): Ditto.
2626 (vectorizable_store): Ditto.
2627 (vectorizable_load): Ditto.
2628 (vectorizable_condition): Ditto.
2629 (vect_analyze_stmt): Ditto.
2630 (vect_transform_stmt): Ditto.
2631 (vect_is_simple_use): Ditto.
2632 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
2633 (vect_can_advance_ivs_p): Ditto.
2634 (vect_update_ivs_after_vectorizer): Ditto.
2635 (vect_do_peeling_for_loop_bound): Ditto.
2636 (vect_gen_niters_for_prolog_loop): Ditto.
2637 (vect_update_inits_of_drs): Ditto.
2638 (vect_create_cond_for_alias_checks): Ditto.
2639 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
2640 (vect_build_slp_tree_1): Ditto.
2641 (vect_supported_load_permutation_p): Ditto.
2642 (vect_analyze_slp_instance): Ditto.
2643 (vect_analyze_slp): Ditto.
2644 (vect_make_slp_decision): Ditto.
2645 (vect_detect_hybrid_slp): Ditto.
2646 (vect_bb_vectorization_profitable_p): Ditto.
2647 (vect_slp_analyze_bb_1): Ditto.
2648 (vect_update_slp_costs_according_to_vf): Ditto.
2649 (vect_get_mask_element): Ditto.
2650 (vect_transform_slp_perm_load): Ditto.
2651 (vect_schedule_slp_instance): Ditto.
2652 (vect_schedule_slp): Ditto.
2653 (vect_slp_transform_bb): Ditto.
2654 * profile.c (read_profile_edge_counts): Ditto.
2655 (compute_branch_probabilities): Ditto.
2656 * coverage.c (get_coverage_counts): Ditto.
2657
46f851f3
DN
26582013-09-16 Diego Novillo <dnovillo@google.com>
2659
7a5911d3 2660 * tree-core.h: Add missing comment lines from refactoring of tree.h.
46f851f3 2661
1632a686
JH
26622013-09-16 Jan Hubicka <jh@suse.cz>
2663
2664 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
7a5911d3 2665 abstract functions; for static functions check the presence of body.
1632a686 2666
828e70c1
JG
26672013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2668
2669 * config/aarch64/aarch64-simd-builtins.def (fma): New.
2670 * config/aarch64/aarch64-simd.md
2671 (aarch64_mla_elt<mode>): New.
2672 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
2673 (aarch64_mls_elt<mode>): Likewise.
2674 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
2675 (aarch64_fma4_elt<mode>): Likewise.
2676 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
2677 (aarch64_fma4_elt_to_128v2df): Likewise.
2678 (aarch64_fma4_elt_to_64df): Likewise.
2679 (fnma<mode>4): Likewise.
2680 (aarch64_fnma4_elt<mode>): Likewise.
2681 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
2682 (aarch64_fnma4_elt_to_128v2df): Likewise.
2683 (aarch64_fnma4_elt_to_64df): Likewise.
2684 * config/aarch64/iterators.md (VDQSF): New.
2685 * config/aarch64/arm_neon.h
2686 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
2687 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
2688
779aea46
JG
26892013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2690
2691 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
2692 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
2693 (aarch64_mul3_elt_to_128df): Likewise.
2694 (aarch64_mul3_elt_to_64v2df): Likewise.
2695 * config/aarch64/iterators.md (VEL): Also handle DFmode.
2696 (VMUL): New.
2697 (VMUL_CHANGE_NLANES) Likewise.
2698 (h_con): Likewise.
2699 (f): Likewise.
2700 * config/aarch64/arm_neon.h
2701 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
2702
a407a750
JG
27032013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2704
2705 * config/aarch64/arm_neon.h
2706 (vcvtx_high_f32_f64): Fix parameters.
2707
f77e2d2d 27082013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
a5bd71fa 2709 Uros Bizjak <ubizjak@gmail.com>
f77e2d2d 2710
a5bd71fa 2711 * config/alpha.c: Include tree-ssanames.h.
f77e2d2d 2712
36875e8f
RB
27132013-09-16 Richard Biener <rguenther@suse.de>
2714
2715 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
2716 (dot_rdg_1): Handle control_dd.
2717 (create_edge_for_control_dependence): New function.
2718 (create_rdg_edges): Add control dependences if asked for.
2719 (build_rdg): Likewise.
2720 (generate_loops_for_partition): If there are not necessary
2721 control stmts remove all their dependencies.
2722 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
2723 (distribute_loop): Pass on control dependences.
2724 (tree_loop_distribution): Compute control dependences and remove
2725 restriction on number of loop nodes.
2726
96e24d49
JJ
27272013-09-16 Jakub Jelinek <jakub@redhat.com>
2728
2729 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
2730 for internal calls.
2731
40dbb05c
RS
27322013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
2733
2734 * cse.c (try_const_anchors): Punt on CC modes.
2735
97191ad0
JBG
27362013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2737
2738 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
2739
403a3fb7
JDA
27402013-09-14 John David Anglin <danglin@gcc.gnu.org>
2741
2742 PR target/58382
2743 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
2744 calls to word_mode.
2745
fb5610fb
IS
27462013-09-14 Iain Sandoe <iain@codesourcery.com>
2747
2748 PR target/48094
2749 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
f77e2d2d
JBG
2750 seen.
2751 (darwin_objc1_section): Likewise.
fb5610fb
IS
2752 (darwin_file_end): Emit Image Info section when required.
2753
afdec9bd
JH
27542013-09-14 Jan Hubicka <jh@suse.cz>
2755
2756 * tree-into-ssa.c (gate_into_ssa): New.
2757 (pass_data_build_ssa): Use it.
2758 * cgraph.h (expand_thunk): Update prototype.
2759 * cgraphunit.c (analyze_function): Expand thunks early.
2760 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
2761 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
2762 set lowered flag; do not add new function.
2763 (assemble_thunks_and_aliases): Update.
2764 * tree-ssa.c (gate_init_datastructures): New gate.
2765 (pass_data_init_datastructures): Use it.
2766
492d1e0a
IS
27672013-09-14 Iain Sandoe <iain@codesourcery.com>
2768
2769 PR target/58269
f77e2d2d 2770 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
492d1e0a
IS
2771 xmm register set described in the psABI.
2772
d13c6b70
EG
27732013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
2774
f77e2d2d
JBG
2775 * dwarf2out.c (should_emit_struct_debug): Add check
2776 for type_decl variable is not NULL.
d13c6b70 2777
88b0e79e
JC
27782013-09-13 Jacek Caban <jacek@codeweavers.com>
2779
2780 * config.gcc: Use new winnt-c.c target hooks
2781 * config/t-winnt: New file
2782 * config/winnt-c.c: New file
2783 * doc/tm.texi.in: Document new hook
2784 * doc/tm.texi: Regenerated
2785
19ba6aab
JH
27862013-09-13 Jan Hubicka <jh@suse.cz>
2787
2788 PR middle-end/58094
2789 * ipa-inline.c (check_callers): New function.
2790 (check_caller_edge): Remove.
2791 (want_inline_function_to_all_callers_p): Also permit alises that are
2792 called dirrectly.
2793 (inline_to_all_callers): Terminate the walk when devirtualization
2794 introduce new calls.
2795
a93c18c8
JH
27962013-09-13 Jan Hubicka <jh@suse.cz>
2797
2798 * ipa-inline-analysis.c (struct growth_data): Add node.
2799 (do_estimate_growth_1): Fix detection of recursion.
2800
f3b331d1
JJ
28012013-09-13 Jakub Jelinek <jakub@redhat.com>
2802
2803 PR tree-optimization/58392
2804 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
2805 to avoid shadowing of outer loop variable. If
2806 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
2807 replace_by_duplicate_decl simduid of loops that have it set and
2808 set dest_cfun->has_simduid_loops and/or
2809 dest_cfun->has_force_vect_loops.
2810 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
2811 instead of maybe_lookup_decl.
2812 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
2813 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
2814 call. Copy over force_vect and copy and remap simduid. Set
2815 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
2816 (copy_cfg_body): Remove blocks_to_copy argument. Use
2817 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
2818 caller. Don't set cfun->has_simduid_loops and/or
2819 cfun->has_force_vect_loops here.
2820 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
2821 caller.
2822 (expand_call_inline, tree_function_versioning): Adjust copy_body
2823 callers.
2824
ae6d0907
MJ
28252013-09-13 Martin Jambor <mjambor@suse.cz>
2826
2827 PR bootstrap/58388
2828 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
2829 the assert if the edge was a speculative one.
2830
2fd5894f
RB
28312013-09-13 Richard Biener <rguenther@suse.de>
2832
2833 * tree-data-ref.h (known_dependences_p): Move here ...
2834 * tree-loop-distribution.c (known_dependences_p): ... from here.
2835 (dump_rdg_component, debug_rdg_component): Remove.
2836 (dump_rdg): Adjust.
2837 (generate_loops_for_partition): Use gimple_uid instead of
2838 relying on matching stmt visit order.
2839 (rdg_build_partitions): Take starting stmt vector.
2840 (ldist_gen): Merge into ...
2841 (distribute_loop): ... this function. Do not compute starting
2842 vertices vector.
2843 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
2844
86eb4bd7
KT
28452013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2846
2847 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
2848 Set type attribute correctly. Set predicable_short_it attribute.
2849 (cmpsi_shiftsi): Remove %? from output template.
2850
83a95546
RB
28512013-09-13 Richard Biener <rguenther@suse.de>
2852
2853 * tree-loop-distribution.c (struct rdg_component,
2854 rdg_defs_used_in_other_loops_p, free_rdg_components,
2855 rdg_build_components): Remove.
2856 (stmts_from_loop): Do not record virtual PHIs.
2857 (generate_loops_for_partition): Skip virtual PHIs.
2858 (build_rdg_partition_for_component): Rename to ...
2859 (build_rdg_partition_for_vertex): ... this and adjust.
2860 (rdg_build_partitions): Take a vector of starting vertices
2861 instead of components. Remove unnecessary leftover handling.
2862 (ldist_gen): Do not build components or record other stores.
2863 (distribute_loop): Do not distribute loops containing stmts
2864 with side-effects.
2865
c0ecf7f1
CB
28662013-09-13 Christian Bruel <christian.bruel@st.com>
2867
2868 PR target/58314
2869 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
2870
34f56efc
KT
28712013-09-13 Kai Tietz <ktietz@redhat.com>
2872
740f2bf3
KT
2873 * config.gcc: Separate cases for mingw and cygwin targets,
2874 and add 64-bit cygwin target case.
2875
34f56efc
KT
2876 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
2877 dll-export inline-functions.
2878 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
2879
2880
28812013-09-13 Jeff Law <law@redhat.com>
823b5d6b
JL
2882
2883 PR middle-end/58387
2884 Revert:
2885 2013-09-06 Jeff Law <law@redhat.com>
2886
2887 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
2888 edge implied equivalences into successor phis.
2889
aadb52ad
DD
28902013-09-12 DJ Delorie <dj@redhat.com>
2891
2892 * config/rl78/rl78-virt.md: Change from | to \; for asm line
2893 separators.
2894
90ae7019
BM
28952013-09-12 Brooks Moses <bmoses@google.com>
2896
2897 PR driver/42955
2898 * Makefile.in: Do not install driver binaries in $(target)/bin.
2899
17b2557c
DD
29002013-09-12 DJ Delorie <dj@redhat.com>
2901
c5215a9b
DD
2902 * config/rl78/rl78.opt (mrelax): New.
2903 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
2904 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
2905
17b2557c
DD
2906 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
2907 between SP and FP.
2908 (rl78_expand_epilogue): Likewise.
2909
ecafcf05
VM
29102013-09-12 Vladimir Makarov <vmakarov@redhat.com>
2911
2912 PR middle-end/58335
84f6d9fa 2913 * lra-eliminations.c (remove_reg_equal_offset_note): New.
ecafcf05
VM
2914 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
2915 pointer elimination with using remove_reg_equal_offset_note.
2916
8369f38a
DD
29172013-09-12 DJ Delorie <dj@redhat.com>
2918
f6a83b4a
DD
2919 * config/msp430/: New port.
2920 * config.gcc (msp430): Added.
2921 * doc/invoke.texi: Document MSP430 options.
2922 * doc/install.texi: Document msp430-elf
2923 * doc/md.texi: Document msp430-elf
2924 * doc/contrib.texi: Document msp430-elf
2925
8369f38a
DD
2926 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
2927 PSImode.
2928
a854f856
MJ
29292013-09-12 Martin Jambor <mjambor@suse.cz>
2930
2931 PR ipa/58389
2932 * ipa-prop.c (remove_described_reference): Give up if the edge in the
2933 reference descriptor is NULL.
2934 (ipa_edge_removal_hook): If owning a reference descriptor, set its
2935 edge to NULL.
2936
b12ebd96
AM
29372013-09-12 Andrew MacLeod <amacleod@redhat.com>
2938
2939 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
2940 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
2941 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
2942 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
2943 make_temp_ssa_name): move to tree-ssanames.h
2944 * tree-ssa-alias.h: Move prototype.
2945 * tree-ssa.h: Include tree-ssanames.h.
2946 * tree-ssanames.c (FREE_SSANAMES): Move to here.
2947 * tree-ssanames.h: New. Move items from tree-flow*.h
2948 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
2949
e1fb4ad3
RB
29502013-09-12 Richard Biener <rguenther@suse.de>
2951
2952 PR tree-optimization/58404
2953 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
2954 propagate non-invariant addresses into dereferences wrapped
2955 in component references.
2956
154c9188
RB
29572013-09-12 Richard Biener <rguenther@suse.de>
2958
2959 PR tree-optimization/58402
2960 * passes.def: Move pass_late_warn_uninitialized later.
2961
7a300452
AM
29622013-09-12 Andrew MacLeod <amacleod@redhat.com>
2963
2964 * tree-ssa.h: New. Move content from tree-flow.h and
2965 tree-flow-inline.h.
2966 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
2967 Move prototypes belonging to tree-ssa.c.
f77e2d2d 2968 * tree-flow-inline.h (redirect_edge_var_map_def,
7a300452
AM
2969 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
2970 tree-ssa.h.
2971 * gimple.h: Adjust prototypes.
f77e2d2d
JBG
2972 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
2973 to...
2974 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
7a300452
AM
2975 * tree.h: Move prototype to tree-ssa.h.
2976 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
2977 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
2978 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
2979 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
2980 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
2981 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
2982 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
2983 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
f77e2d2d
JBG
2984 graphite-blocking.c, graphite-clast-to-gimple.c,
2985 graphite-dependences.c, graphite-interchange.c,
2986 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
2987 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
2988 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
2989 ipa-reference.c, ipa-split.c, ipa-utils.c,
7a300452
AM
2990 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
2991 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
2992 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
2993 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
2994 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
2995 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
2996 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
2997 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
2998 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
2999 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
3000 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
3001 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
3002 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
3003 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
3004 value-prof.c, var-tracking.c,
3005 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
3006
97463b2b
RB
30072013-09-12 Richard Biener <rguenther@suse.de>
3008
3009 PR tree-optimization/58396
3010 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
3011 (build_rdg): Take a loop-nest parameter, fix memleaks.
3012 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
3013
80ecd89d
YR
30142013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
3015
3016 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
3017 for SLM.
3018
893e85fa
CM
30192013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
3020
3021 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
3022 The FMA instruction names should have a 'v' prefix.
3023
174ec470
RB
30242013-09-12 Richard Biener <rguenther@suse.de>
3025
3026 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
3027 (dot_rdg): Use popen instead of system in optional code.
3028 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
3029 (already_processed_vertex_p): Adjust.
3030 (has_anti_or_output_dependence, predecessor_has_mem_write,
3031 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
3032 rdg_flag_uses): Remove.
3033 (rdg_flag_vertex): Simplify.
3034 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
3035 remove recursion.
3036 (build_rdg_partition_for_component): Process the first vertex
3037 of a component only.
3038 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
3039
38c89763
AM
30402013-09-12 Alan Modra <amodra@gmail.com>
3041
3042 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
3043
3e3d9d17
DD
30442013-09-11 DJ Delorie <dj@redhat.com>
3045 Nick Clifton <nickc@redhat.com>
3046
3047 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
3048 (rl78_stack_based_mem): New.
3049 * config/rl78/constraints.md (Iv08): New.
3050 (Iv16): New.
3051 (Iv24): New.
3052 (Is09): New.
3053 (Is17): New.
3054 (Is25): New.
3055 (ISsi): New.
3056 (IShi): New.
3057 (ISqi): New.
3058 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
3059 (movhi): Likewise.
3060 (movsi): Change from expand to insn-and-split.
3061 (ashrsi3): Clobber AX.
3062 (lshrsi3): New.
3063 (ashlsi3): New.
3064 (cbranchsi4): New.
3065 * config/rl78/rl78.md (CC_REG): Fix.
3066 (addsi3): Allow memory and immediate operands.
3067 (addsi3_internal): Split into...
3068 (addsi3_internal_virt): ...new, and ...
3069 (addsi3_internal_real): ...new.
3070 (subsi): New.
3071 (subsi3_internal_virt): New.
3072 (subsi3_internal_real): New.
3073 (mulsi3): Add memory operand.
3074 (mulsi3_rl78): Likewise.
3075 (mulsi3_g13): Likewise.
3076 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
3077 (cbranchqi4_real): Add more constraint options.
3078 (cbranchhi4_real): Expand pattern.
3079 (cbranchhi4_real_signed): New.
3080 (cbranchhi4_real_inverted): New.
3081 (cbranchsi4_real_lt): New.
3082 (cbranchsi4_real_ge): New.
3083 (cbranchsi4_real_signed): New.
3084 (cbranchsi4_real): New.
3085 (peephole2): New.
893e85fa
CM
3086 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
3087 constant shifts.
3e3d9d17
DD
3088 (lshrsi3_virt): Likewise.
3089 (ashlsi3_virt): Likewise.
3090 (cbranchqi4_virt_signed): New.
3091 (cbranchhi4_virt_signed): New.
3092 (cbranchsi4_virt): New.
3093 * config/rl78/rl78.c: Whitespace fixes throughout.
3094 (move_elim_pass): New.
3095 (pass_data_rl78_move_elim): New.
3096 (pass_rl78_move_elim): New.
3097 (make_pass_rl78_move_elim): New.
3098 (rl78_devirt_info): Run devirt earlier.
3099 (rl78_move_elim_info): New.
3100 (rl78_asm_file_start): Register it.
3101 (rl78_split_movsi): New.
3102 (rl78_as_legitimate_address): Allow virtual base registers when
3103 appropriate.
3104 (rl78_addr_space_convert): Remove spurious debug stuff.
3105 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
3106 (rl78_print_operand): More cases for not printing '#'.
3107 (rl78_expand_compare): Remove most of the logic.
3108 (content_memory): New.
3109 (clear_content_memory): New.
3110 (get_content_index): New.
3111 (get_content_name): New.
3112 (display_content_memory): New.
3113 (update_content): New.
3114 (record_content): New.
3115 (already_contains): New.
3116 (insn_ok_now): Re-recog insns with virtual registers.
3117 (add_postponed_content_update): New.
3118 (process_postponed_content_update): New.
3119 (gen_and_emit_move): New.
893e85fa
CM
3120 (transcode_memory_rtx): Record new location content.
3121 Use gen_and_emit_move.
3e3d9d17
DD
3122 (force_into_acc): New.
3123 (move_to_acc): Use gen_and_emit_move.
3124 (move_from_acc): Likewise.
3125 (move_acc_to_reg): Likewise.
3126 (move_to_x): Likewise.
3127 (move_to_hl): Likewise.
3128 (move_to_de): Likewise.
3129 (rl78_alloc_physical_registers_op1): Record location content.
3130 (has_constraint): New.
3131 (rl78_alloc_physical_registers_op2): Record location content.
3132 Optimize use of HL.
3133 (rl78_alloc_physical_registers_ro1): Likewise.
3134 (rl78_alloc_physical_registers_cmp): Likewise.
3135 (rl78_alloc_physical_registers_umul): Likewise.
3136 (rl78_alloc_address_registers_macax): New.
3137 (rl78_alloc_physical_registers): Initialize and set location
3138 content memory as needed.
3139 (rl78_reorg): Make sure split2 is called.
3140 (rl78_rtx_costs): New.
3141
088845a5
RS
31422013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
3143
3144 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
3145 for (not (neg ...)) and (neg (not ...)) cases.
3146
5c2961cf
RB
31472013-09-11 Richard Biener <rguenther@suse.de>
3148
3149 PR middle-end/58377
3150 * passes.def: Split critical edges before late uninit warning passes.
3151 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
3152
427e6a14
JJ
31532013-09-11 Jakub Jelinek <jakub@redhat.com>
3154
3155 PR tree-optimization/58385
3156 * fold-const.c (build_range_check): If both low and high are NULL,
3157 use omit_one_operand_loc to preserve exp side-effects.
3158
df45c0cc
KT
31592013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3160
3161 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
3162
80ab0b19
RB
31632013-09-11 Richard Biener <rguenther@suse.de>
3164
3165 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
3166 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
3167 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
3168 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
3169 stmts_from_loop, known_dependences_p, build_empty_rdg,
3170 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
3171 * tree-loop-distribution.c: ... here.
3172 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
3173 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
3174 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
3175 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
3176 * tree-loop-distribution.c: ... here.
3177 * tree-loop-distribution.c: Include gimple-pretty-print.h.
3178 (struct partition_s): Add loops member.
3179 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
3180 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
3181 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
3182
85a77221
AI
31832013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
3184 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3185 Sergey Lega <sergey.s.lega@intel.com>
3186 Anna Tikhonova <anna.tikhonova@intel.com>
3187 Ilya Tocar <ilya.tocar@intel.com>
3188 Andrey Turetskiy <andrey.turetskiy@intel.com>
3189 Ilya Verbin <ilya.verbin@intel.com>
3190 Kirill Yukhin <kirill.yukhin@intel.com>
3191 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3192
3193 * config/i386/constraints.md (k): New.
3194 (Yk): Ditto.
3195 * config/i386/i386.c (const regclass_map): Add new mask registers.
3196 (dbx_register_map): Ditto.
3197 (dbx64_register_map): Ditto.
3198 (svr4_dbx_register_map): Ditto.
3199 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
3200 disabled.
3201 (ix86_preferred_reload_class): Disable constants for mask registers.
3202 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
3203 (ix86_hard_regno_mode_ok): Support new mask registers.
3204 (x86_order_regs_for_local_alloc): Ditto.
3205 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
3206 (FIXED_REGISTERS): Add new mask registers.
3207 (CALL_USED_REGISTERS): Ditto.
3208 (REG_ALLOC_ORDER): Ditto.
3209 (VALID_MASK_REG_MODE): New.
3210 (FIRST_MASK_REG): Ditto.
3211 (LAST_MASK_REG): Ditto.
3212 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
3213 (MAYBE_MASK_CLASS_P): New.
3214 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
3215 (REG_CLASS_CONTENTS): Ditto.
3216 (MASK_REGNO_P): New.
3217 (ANY_MASK_REG_P): Ditto.
3218 (HI_REGISTER_NAMES): Add new mask registers.
893e85fa
CM
3219 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
3220 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
3221 mask registers.
85a77221
AI
3222 (attribute "type"): Add mskmov, msklog.
3223 (attribute "length_immediate"): Support them.
3224 (attribute "memory"): Ditto.
3225 (attribute "prefix_0f"): Ditto.
3226 (*movhi_internal): Support new mask registers.
3227 (*movqi_internal): Ditto.
3228 (define_split): Split out clobber pattern is a logic
3229 insn on mask registers.
3230 (*k<logic><mode>): New.
3231 (*andhi_1): Extend to support mask regs.
3232 (*andqi_1): Extend to support mask regs.
3233 (kandn<mode>): New.
3234 (define_split): Split and-not to and and not if operands
3235 are not mask regs.
3236 (*<code><mode>_1): Separate HI mode to new pattern...
3237 (*<code>hi_1): This.
3238 (*<code>qi_1): Extend to support mask regs.
3239 (kxnor<mode>): New.
3240 (kortestzhi): Ditto.
3241 (kortestchi): Ditto.
3242 (kunpckhi): Ditto.
3243 (*one_cmpl<mode>2_1): Remove HImode and handle it...
3244 (*one_cmplhi2_1): ...Here, now with mask registers support.
3245 (*one_cmplqi2_1): Support new mask registers.
893e85fa
CM
3246 (HI/QImode arithmetics splitter): Don't split if mask registers
3247 are used.
85a77221
AI
3248 (HI/QImode not splitter): Ditto.
3249 * config/i386/predicated.md (mask_reg_operand): New.
3250 (general_reg_operand): Ditto.
3251
7e570821
AI
32522013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
3253
3254 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
3255 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
3256
9e1376e9
JL
32572013-09-10 Jeff Law <law@redhat.com>
3258
3259 PR tree-optimization/58380
3260 * tree-ssa-threadupdate.c (thread_block): Recognize another case
3261 of threading through a buried loop header.
3262
3263 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
3264 return value for single successor case.
3265
5bbcb888
JH
32662013-09-10 Jan Hubicka <jh@suse.cz>
3267
3268 * ipa-devirt.c (ipa_devirt): Enable with LTO.
3269
d742ff4b
RE
32702013-09-10 Richard Earnshaw <rearnsha@arm.com>
3271
3272 PR target/58361
3273 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
3274 support conditional execution.
3275 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
3276
b0681c9e
VM
32772013-09-10 Vladimir Makarov <vmakarov@redhat.com>
3278
3279 * lra.c (lra): Clear lra_optional_reload_pseudos before every
3280 constraint pass.
f77e2d2d
JBG
3281 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
3282 Check destination too to check move insn.
b0681c9e 3283 (undo_optional_reloads): Add check that the original peudo did not
f77e2d2d
JBG
3284 changed its allocation and the optional reload was inherited on last
3285 inheritance pass. Break loop after deciding to keep optional reload.
b0681c9e
VM
3286 (lra_undo_inheritance): Add check that inherited pseudo still in
3287 memory.
3288
c9b1c957
JG
32892013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
3290
3291 * config/aarch64/aarch64.md (generic_sched): New.
3292 * config/aarch64/aarch64-generic.md (load): Make conditional
3293 on generic_sched attribute.
3294 (nonload): Likewise.
3295
82d618d3
JH
32962013-09-10 Jan Hubicka <jh@suse.cz>
3297
3298 * lto-cgraph.c: Include ipa-utils.h.
3299 (compute_ltrans_boundary): Also add possible targets into the boundary.
3300
668b6894
JH
33012013-09-10 Jan Hubicka <jh@suse.cz>
3302
3303 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
3304 VAR_DECL of vtable rather than full expression.
3305
4f90d3e0
JH
33062013-09-10 Jan Hubicka <jh@suse.cz>
3307 Paolo Carlini <paolo.carlini@oracle.com>
3308
3309 * cgraphunit.c (analyze_functions): Save input_location, set it
3310 to UNKNOWN_LOCATION and restore it at the end.
3311
39e87baf
MJ
33122013-09-10 Martin Jambor <mjambor@suse.cz>
3313
3314 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
3315 represented by a thunk.
3316
581aedec
JL
33172013-09-10 Jeff Law <law@redhat.com>
3318
3319 PR tree-optimization/58343
3320 * tree-ssa-threadupdate.c (thread_block): Identify and disable
3321 jump threading requests through loop headers buried in the middle
3322 of a jump threading path.
3323
3324 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
3325 in return value/type.
3326
84cf4ab6
JJ
33272013-09-10 Jakub Jelinek <jakub@redhat.com>
3328
3329 PR rtl-optimization/58365
3330 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
3331 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
3332 it differs.
3333
447dd906
RB
33342013-09-10 Richard Biener <rguenther@suse.de>
3335
3336 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
3337 * tree-data-ref.c (create_rdg_vertices): Collect all data
3338 references, signal failure to the caller, use data-ref API.
893e85fa
CM
3339 (build_rdg): Compute data references only once. Maintain lifetime
3340 of data references and data dependences from within RDG.
447dd906
RB
3341 (free_rdg): Free dependence relations.
3342 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
3343 inventing extra dependences.
3344 (distribute_loop): Update for RDG API changes.
3345
f14a7324
KT
33462013-09-10 Kai Tietz <ktietz@redhat.com>
3347
3348 * doc/invoke.texi (fms-extensions): Document changed
3349 behavior for ms-abi targets.
3350 * config/i386/i386.c (ix86_option_override_internal):
3351 Set default value of option -fms-extension for ms-abi targets.
3352
ff131f26
MZ
33532013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
3354
3355 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
3356
33115a2c
AM
33572013-09-10 Alan Modra <amodra@gmail.com>
3358
3359 PR target/58330
3360 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
3361
b6872a13
AM
33622013-09-10 Alan Modra <amodra@gmail.com>
3363
3364 * config/rs6000/predicates.md (add_cint_operand): New.
3365 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
3366 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
3367 using add_cint_operand.
3368 (largetoc_high_plus_aix): Likewise.
3369
28fd0ba2
JJ
33702013-09-09 Jakub Jelinek <jakub@redhat.com>
3371
3372 PR tree-optimization/58364
3373 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
3374 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
3375 the current range can't be an unconditional true or false.
3376
552d99fe
JG
33772013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
3378
3379 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
3380
f43245d1
UB
33812013-09-09 Uros Bizjak <ubizjak@gmail.com>
3382
3383 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
3384
c9b0866a
PC
33852013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3386
3387 PR c++/43452
3388 * doc/invoke.texi (-Wdelete-incomplete): Document it.
3389
78d8b9f0
IB
33902013-09-09 Ian Bolton <ian.bolton@arm.com>
3391
3392 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
3393 NO_REGS for immediate that can't be moved directly into FP_REGS.
3394
274b2532
KT
33952013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3396
3397 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
3398 comparison with negated operand.
c9b0866a
PC
3399 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
3400 RTL form.
274b2532 3401
467a3558
RB
34022013-09-09 Richard Biener <rguenther@suse.de>
3403
3404 PR middle-end/58326
3405 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
3406 of a subloop record all its block as affecting loop-closed SSA form.
3407
088c5368
RS
34082013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
3409
3410 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
3411 of an rtx/bitpos pair.
3412 (store_fixed_bit_field): Update accordingly.
3413
69db2d57
RS
34142013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
3415
3416 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
3417 GEN_INT.
3418 * builtins.c (expand_errno_check): Likewise.
3419 * dwarf2cfi.c (init_return_column_size): Likewise.
3420 * except.c (sjlj_mark_call_sites): Likewise.
3421 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
3422 * lra-constraints.c (emit_inc): Likewise.
3423 * ree.c (combine_set_extension): Likewise.
3424 * regmove.c (fixup_match_2): Likewise.
3425 * reload1.c (inc_for_reload): Likewise.
3426
69a59f0f
RS
34272013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
3428
3429 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
3430 (force_to_mode, simplify_shift_const_1, simplify_comparison):
3431 Use gen_int_mode with the mode of the associated simplify_* call.
3432 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
3433 * expmed.c (expand_shift_1): Likewise.
3434 * function.c (instantiate_virtual_regs_in_insn): Likewise.
3435 * loop-iv.c (iv_number_of_iterations): Likewise.
3436 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
3437 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3438
2f1cd2eb
RS
34392013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
3440
3441 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
3442 of the associated expand_* call.
3443 (asan_emit_stack_protection): Likewise.
3444 * builtins.c (round_trampoline_addr): Likewise.
3445 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
3446 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
3447 (emit_store_flag): Likewise.
3448 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
3449 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
3450 Likewise.
3451 * function.c (instantiate_virtual_regs_in_insn): Likewise.
3452 * ifcvt.c (noce_try_store_flag_constants): Likewise.
3453 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
3454 * modulo-sched.c (generate_prolog_epilog): Likewise.
3455 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
3456 (expand_ctz, expand_ffs, expand_unop): Likewise.
3457
4789c0ce
RS
34582013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
3459
3460 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
3461 of the associated gen_rtx_* call.
3462 * caller-save.c (init_caller_save): Likewise.
3463 * combine.c (find_split_point, make_extraction): Likewise.
3464 (make_compound_operation): Likewise.
3465 * dwarf2out.c (mem_loc_descriptor): Likewise.
3466 * explow.c (plus_constant, probe_stack_range): Likewise.
3467 * expmed.c (expand_mult_const): Likewise.
3468 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
3469 * reload1.c (init_reload): Likewise.
3470 * valtrack.c (cleanup_auto_inc_dec): Likewise.
3471 * var-tracking.c (adjust_mems): Likewise.
3472 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
3473 rather than gen_rtx_fmt_ee.
3474
a811f7cb
JH
34752013-09-09 Jan Hubicka <jh@suse.cz>
3476
3477 PR middle-end/58294
3478 * value-prof.c (gimple_ic): Copy also abnormal edges.
3479
dcad1dd3
RS
34802013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
3481
3482 * asan.c (asan_shadow_cst): Use gen_int_mode.
3483
daf5c770
JH
34842013-09-08 Jan Hubicka <jh@suse.cz>
3485
3486 * ipa-profile.c: Add toplevel comment.
3487 (ipa_propagate_frequency_1): Be more conservative when profile is read.
3488 (contains_hot_call_p): New function.
3489 (ipa_propagate_frequency): Set frequencies based on counts when
3490 profile is read.
3491 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
3492 profile; do not tamper with profile after inlining if it is read.
3493
a12cd2db
JH
34942013-09-08 Jan Hubicka <jh@suse.cz>
3495
3496 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
3497 speculative edges.
3498
856a1588
JH
34992013-09-08 Jan Hubicka <jh@suse.cz>
3500
3501 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
3502 summary generation.
3503
4f4b0b73
JL
35042013-09-08 Jeff Law <law@redhat.com>
3505
3506 PR bootstrap/58340
3507 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
3508 of 'found'.
3509
cc4029ee
AK
35102013-09-08 Andi Kleen <ak@linux.intel.com>
3511
3512 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
3513
7b395ddd
JH
35142013-09-08 Jan Hubicka <jh@suse.cz>
3515
3516 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
3517
c34c46dd
RS
35182013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
3519
3520 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
3521 for non-debug insns.
3522 * lra.c (new_insn_reg): Take the containing insn as a parameter.
3523 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
3524 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
3525 accordingly.
3526
3462aa02
JH
35272013-09-08 Jan Hubicka <jh@suse.cz>
3528
3529 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
3530 targets and devirtualize to BUILT_IN_UNREACHABLE.
3531 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
3532 * ipa.c (walk_polymorphic_call_targets): New function.
3533 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
3534 functions; use the new timevar.
3535 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
3536 was removed from the program.
3537 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
3538 not consider it in the walk when its vtable is dead.
3539 (possible_polymorphic_call_targets_1): Pass anonymous flag to
3540 record_binfo.
3541 (devirt_variable_node_removal_hook): New function.
3542 (possible_polymorphic_call_targets): Also register
3543 devirt_variable_node_removal_hook.
3544 (ipa_devirt): Do not do non-speculative devirtualization.
3545 (gate_ipa_devirt): One execute if devirtualizing speculatively.
3546
26e5b0fd
JH
35472013-09-08 Jan Hubicka <jh@suse.cz>
3548
3549 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
3550 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
3551 varpool_remove_variable_insertion_hook): Declare.
3552 * varpool.c (varpool_node_hook_list): New structure.
3553 (first_varpool_node_removal_hook,
3554 first_varpool_variable_insertion_hook): New variables.
3555 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
3556 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
3557 varpool_remove_variable_insertion_hook,
3558 varpool_call_variable_insertion_hooks): New functions.
3559 (varpool_remove_node): Use it.
3560
97f1f314 35612013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
6df2ca09 3562
97f1f314
PC
3563 PR c++/54941
3564 * diagnostic.c (diagnostic_build_prefix): When s.file is
3565 "<built-in>" don't output line and column numbers.
6df2ca09 3566
bcb650cb
JH
35672013-09-06 Jan Hubicka <jh@suse.cz>
3568
3569 * cgraphunit.c (expand_thunk): Get body before touching arguments.
3570 * lto-streamer-out.c: Stream thunks, too.
3571 * lto-streamer-in.c (input_function): Pop cfun here
3572 (lto_read_body): Instead of here.
3573
87f3fea8
CT
35742013-09-06 Caroline Tice <cmtice@google.com>
3575
3576 * doc/install.texi: Add documentation for the --enable-vtable-verify
3577 and the --disable-libvtv configure options.
3578
5e8d9b45
JL
35792013-09-06 Jeff Law <law@redhat.com>
3580
3581 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
3582 edge implied equivalences into successor phis.
3583
3a001aff
JR
35842013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
3585
3586 * resource.c (mark_referenced_resources): Handle COND_EXEC.
3587
35882013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
c42091c1
CZ
3589
3590 * resource.c (mark_target_live_regs): Compute resources taking
3591 into account if a call is predicated or not.
3592
2c641f8b
EB
35932013-09-06 Eric Botcazou <ebotcazou@adacore.com>
3594
3595 * toplev.c (output_stack_usage): Be prepared for suffixes created by
3596 the compiler in the function names.
3597
a81b0a3d
JH
35982013-09-06 Jan Hubicka <jh@suse.cz>
3599
3600 PR middle-end/58094
3601 * ipa-inline.c (has_caller_p): New function.
3602 (want_inline_function_to_all_callers_p): Use it.
3603 (sum_callers, inline_to_all_callers): Break out from ...
3604 (ipa_inline): ... here.
3605
68e4ca7e
JH
36062013-09-06 Jan Hubicka <jh@suse.cz>
3607
2c641f8b
EB
3608 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
3609 only when AVX is enabled.
68e4ca7e 3610
3c73e2fe
JG
36112013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3612
3613 * config/aarch64/aarch64.md
3614 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
3615 is fpsimd_<load/store>2.
3616 (load_pair<mode>): Likewise.
3617 (store_pair<mode>): Likewise.
3618
8c48eecd
JG
36192013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3620
3621 * config/arm/types.md (type): Add "mrs" type.
3622 * config/aarch64/aarch64.md
3623 (aarch64_load_tp_hard): Make type "mrs".
3624 * config/arm/arm.md
3625 (load_tp_hard): Make type "mrs".
3626 * config/arm/cortex-a15.md: Update with new attributes.
3627 * config/arm/cortex-a5.md: Update with new attributes.
3628 * config/arm/cortex-a53.md: Update with new attributes.
3629 * config/arm/cortex-a7.md: Update with new attributes.
3630 * config/arm/cortex-a8.md: Update with new attributes.
3631 * config/arm/cortex-a9.md: Update with new attributes.
3632 * config/arm/cortex-m4.md: Update with new attributes.
3633 * config/arm/cortex-r4.md: Update with new attributes.
3634 * config/arm/fa526.md: Update with new attributes.
3635 * config/arm/fa606te.md: Update with new attributes.
3636 * config/arm/fa626te.md: Update with new attributes.
3637 * config/arm/fa726te.md: Update with new attributes.
3638
9ea187a5
JG
36392013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3640
3641 * config/aarch64/aarch64.md
3642 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
3643 (*movtf_aarch64): Likewise.
3644 * config/arm/arm.md
3645 (thumb1_movdi_insn): Use "multiple" for type where more than one
3646 instruction is used for a move.
3647 (*arm32_movhf): Likewise.
3648 (*thumb_movdf_insn): Likewise.
3649
292b89b3
JG
36502013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3651
3652 * config/arm/types.md (type): Rename fcpys to fmov.
3653 * config/arm/vfp.md
3654 (*arm_movsi_vfp): Rename type fcpys as fmov.
3655 (*thumb2_movsi_vfp): Likewise
3656 (*movhf_vfp_neon): Likewise
3657 (*movhf_vfp): Likewise
3658 (*movsf_vfp): Likewise
3659 (*thumb2_movsf_vfp): Likewise
3660 (*movsfcc_vfp): Likewise
3661 (*thumb2_movsfcc_vfp): Likewise
3662 * config/aarch64/aarch64-simd.md
3663 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
3664 * config/aarch64/aarch64.md
3665 (*movsi_aarch64): Replace type mov_reg with fmovs.
3666 (*movdi_aarch64): Likewise
3667 (*movsf_aarch64): Likewise
3668 (*movdf_aarch64): Likewise
3669 * config/arm/arm.c
3670 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
3671 * config/arm/iwmmxt.md
3672 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
3673 * config/arm/arm1020e.md: Update with new attributes.
3674 * config/arm/cortex-a15-neon.md: Update with new attributes.
3675 * config/arm/cortex-a5.md: Update with new attributes.
3676 * config/arm/cortex-a53.md: Update with new attributes.
3677 * config/arm/cortex-a7.md: Update with new attributes.
3678 * config/arm/cortex-a8-neon.md: Update with new attributes.
3679 * config/arm/cortex-a9.md: Update with new attributes.
3680 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3681 * config/arm/cortex-r4f.md: Update with new attributes.
3682 * config/arm/marvell-pj4.md: Update with new attributes.
3683 * config/arm/vfp11.md: Update with new attributes.
3684
6a24a83e
JG
36852013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3686
3687 * config/aarch64/aarch64.md
3688 (*madd<mode>): Fix type attribute.
3689 (*maddsi_uxtw): Likewise.
3690 (*msub<mode>): Likewise.
3691 (*msubsi_uxtw): Likewise.
3692 (<su_optab>maddsidi4): Likewise.
3693 (<su_optab>msubsidi4): Likewise.
3694
b86923f0
JG
36952013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3696
3697 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
3698 * config/arm/arm.md (core_cycles): Remove fdiv.
3699 * config/arm/vfp.md:
3700 (*sqrtsf2_vfp): Update for attribute changes.
3701 (*sqrtdf2_vfp): Likewise.
3702 * config/aarch64/aarch64.md:
3703 (sqrt<mode>2): Update for attribute changes.
3704 * config/arm/arm1020e.md: Update with new attributes.
3705 * config/arm/cortex-a15-neon.md: Update with new attributes.
3706 * config/arm/cortex-a5.md: Update with new attributes.
3707 * config/arm/cortex-a53.md: Update with new attributes.
3708 * config/arm/cortex-a7.md: Update with new attributes.
3709 * config/arm/cortex-a8-neon.md: Update with new attributes.
3710 * config/arm/cortex-a9.md: Update with new attributes.
3711 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3712 * config/arm/cortex-r4f.md: Update with new attributes.
3713 * config/arm/marvell-pj4.md: Update with new attributes.
3714 * config/arm/vfp11.md: Update with new attributes.
3715
7b49c9e1
JG
37162013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3717
3718 * config/arm/types.md
3719 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
3720 * config/aarch64/aarch64.md
3721 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
3722 new attributes.
3723 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
3724 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
3725 (float<GPI:mode><GPF:mode>2): Likewise.
3726 * config/arm/vfp.md
3727 (*truncsisf2_vfp): Update with new attributes.
3728 (*truncsidf2_vfp): Likewise.
3729 (fixuns_truncsfsi2): Likewise.
3730 (fixuns_truncdfsi2): Likewise.
3731 (*floatsisf2_vfp): Likewise.
3732 (*floatsidf2_vfp): Likewise.
3733 (floatunssisf2): Likewise.
3734 (floatunssidf2): Likewise.
3735 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
3736 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
3737 * config/arm/arm1020e.md: Update with new attributes.
3738 * config/arm/cortex-a15-neon.md: Update with new attributes.
3739 * config/arm/cortex-a5.md: Update with new attributes.
3740 * config/arm/cortex-a53.md: Update with new attributes.
3741 * config/arm/cortex-a7.md: Update with new attributes.
3742 * config/arm/cortex-a8-neon.md: Update with new attributes.
3743 * config/arm/cortex-a9.md: Update with new attributes.
3744 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3745 * config/arm/cortex-r4f.md: Update with new attributes.
3746 * config/arm/marvell-pj4.md: Update with new attributes.
3747 * config/arm/vfp11.md: Update with new attributes.
3748
e7df8af8
JG
37492013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3750
3751 * config/aarch64/arm_neon.h
3752 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
3753 (vqtbx<1,2,3,4><q>_s8): Likewise.
3754
594726e4
JG
37552013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3756
f43245d1
UB
3757 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
3758 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
594726e4
JG
3759 (add<mode>3): Add type attribute.
3760 (add<mode>3): Likewise.
3761 (usadd<mode>3): Likewise.
3762 (ssadd<mode>3): Likewise.
3763 (sub<mode>3): Likewise.
3764 (sub<mode>3): Likewise.
3765 (ussub<mode>3): Likewise.
3766 (sssub<mode>3): Likewise.
3767 (ssmulsa3): Likewise.
3768 (usmulusa3): Likewise.
3769 (arm_usatsihi): Likewise.
3770 * config/arm/vfp.md
3771 (*movdi_vfp): Add types for all instructions.
3772 (*movdi_vfp_cortexa8): Likewise.
3773 (*movhf_vfp_neon): Likewise.
3774 (*movhf_vfp): Likewise.
3775 (*movdf_vfp): Likewise.
3776 (*thumb2_movdf_vfp): Likewise.
3777 (*thumb2_movdfcc_vfp): Likewise.
3778 * config/arm/arm.md: Add type attribute to all insn patterns.
3779 (*thumb1_adddi3): Add type attribute.
3780 (*arm_adddi3): Likewise.
3781 (*adddi_sesidi_di): Likewise.
3782 (*adddi_zesidi_di): Likewise.
3783 (*thumb1_addsi3): Likewise.
3784 (addsi3_compare0): Likewise.
3785 (*addsi3_compare0_scratch): Likewise.
3786 (*compare_negsi_si): Likewise.
3787 (cmpsi2_addneg): Likewise.
3788 (*addsi3_carryin_<optab>): Likewise.
3789 (*addsi3_carryin_alt2_<optab>): Likewise.
3790 (*addsi3_carryin_clobercc_<optab>): Likewise.
3791 (*subsi3_carryin): Likewise.
3792 (*subsi3_carryin_const): Likewise.
3793 (*subsi3_carryin_compare): Likewise.
3794 (*subsi3_carryin_compare_const): Likewise.
3795 (*arm_subdi3): Likewise.
3796 (*thumb_subdi3): Likewise.
3797 (*subdi_di_zesidi): Likewise.
3798 (*subdi_di_sesidi): Likewise.
3799 (*subdi_zesidi_di): Likewise.
3800 (*subdi_sesidi_di): Likewise.
3801 (*subdi_zesidi_ze): Likewise.
3802 (thumb1_subsi3_insn): Likewise.
3803 (*arm_subsi3_insn): Likewise.
3804 (*anddi3_insn): Likewise.
3805 (*anddi_zesidi_di): Likewise.
3806 (*anddi_sesdi_di): Likewise.
3807 (*ne_zeroextracts): Likewise.
3808 (*ne_zeroextracts): Likewise.
3809 (*ite_ne_zeroextr): Likewise.
3810 (*ite_ne_zeroextr): Likewise.
3811 (*anddi_notdi_di): Likewise.
3812 (*anddi_notzesidi): Likewise.
3813 (*anddi_notsesidi): Likewise.
3814 (andsi_notsi_si): Likewise.
3815 (thumb1_bicsi3): Likewise.
3816 (*iordi3_insn): Likewise.
3817 (*iordi_zesidi_di): Likewise.
3818 (*iordi_sesidi_di): Likewise.
3819 (*thumb1_iorsi3_insn): Likewise.
3820 (*xordi3_insn): Likewise.
3821 (*xordi_zesidi_di): Likewise.
3822 (*xordi_sesidi_di): Likewise.
3823 (*arm_xorsi3): Likewise.
3824 (*andsi_iorsi3_no): Likewise.
3825 (*smax_0): Likewise.
3826 (*smax_m1): Likewise.
3827 (*arm_smax_insn): Likewise.
3828 (*smin_0): Likewise.
3829 (*arm_smin_insn): Likewise.
3830 (*arm_umaxsi3): Likewise.
3831 (*arm_uminsi3): Likewise.
3832 (*minmax_arithsi): Likewise.
3833 (*minmax_arithsi_): Likewise.
3834 (*satsi_<SAT:code>): Likewise.
3835 (arm_ashldi3_1bit): Likewise.
3836 (arm_ashrdi3_1bit): Likewise.
3837 (arm_lshrdi3_1bit): Likewise.
3838 (*arm_negdi2): Likewise.
3839 (*thumb1_negdi2): Likewise.
3840 (*arm_negsi2): Likewise.
3841 (*thumb1_negsi2): Likewise.
3842 (*negdi_extendsid): Likewise.
3843 (*negdi_zero_extend): Likewise.
3844 (*arm_abssi2): Likewise.
3845 (*thumb1_abssi2): Likewise.
3846 (*arm_neg_abssi2): Likewise.
3847 (*thumb1_neg_abss): Likewise.
3848 (one_cmpldi2): Likewise.
3849 (extend<mode>di2): Likewise.
3850 (*compareqi_eq0): Likewise.
3851 (*arm_extendhisi2addsi): Likewise.
3852 (*arm_movdi): Likewise.
3853 (*thumb1_movdi_insn): Likewise.
3854 (*arm_movt): Likewise.
3855 (*thumb1_movsi_insn): Likewise.
3856 (pic_add_dot_plus_four): Likewise.
3857 (pic_add_dot_plus_eight): Likewise.
3858 (tls_load_dot_plus_eight): Likewise.
3859 (*thumb1_movhi_insn): Likewise.
3860 (*thumb1_movsf_insn): Likewise.
3861 (*movdf_soft_insn): Likewise.
3862 (*thumb_movdf_insn): Likewise.
3863 (cbranchsi4_insn): Likewise.
3864 (cbranchsi4_scratch): Likewise.
3865 (*negated_cbranchsi4): Likewise.
3866 (*tbit_cbranch): Likewise.
3867 (*tlobits_cbranch): Likewise.
3868 (*tstsi3_cbranch): Likewise.
3869 (*cbranchne_decr1): Likewise.
3870 (*addsi3_cbranch): Likewise.
3871 (*addsi3_cbranch_scratch): Likewise.
3872 (*arm_cmpdi_insn): Likewise.
3873 (*arm_cmpdi_unsig): Likewise.
3874 (*arm_cmpdi_zero): Likewise.
3875 (*thumb_cmpdi_zero): Likewise.
3876 (*deleted_compare): Likewise.
3877 (*mov_scc): Likewise.
3878 (*mov_negscc): Likewise.
3879 (*mov_notscc): Likewise.
3880 (*cstoresi_eq0_thumb1_insn): Likewise.
3881 (cstoresi_nltu_thumb1): Likewise.
3882 (cstoresi_ltu_thu): Likewise.
3883 (thumb1_addsi3_addgeu): Likewise.
3884 (*arm_jump): Likewise.
3885 (*thumb_jump): Likewise.
3886 (*check_arch2): Likewise.
3887 (arm_casesi_internal): Likewise.
3888 (thumb1_casesi_dispatch): Likewise.
3889 (*arm_indirect_jump): Likewise.
3890 (*thumb1_indirect_jump): Likewise.
3891 (nop): Likewise.
3892 (*and_scc): Likewise.
3893 (*ior_scc): Likewise.
3894 (*compare_scc): Likewise.
3895 (*cond_move): Likewise.
3896 (*cond_arith): Likewise.
3897 (*cond_sub): Likewise.
3898 (*cmp_ite0): Likewise.
3899 (*cmp_ite1): Likewise.
3900 (*cmp_and): Likewise.
3901 (*cmp_ior): Likewise.
3902 (*ior_scc_scc): Likewise.
3903 (*ior_scc_scc_cmp): Likewise.
3904 (*and_scc_scc): Likewise.
3905 (*and_scc_scc_cmp): Likewise.
3906 (*and_scc_scc_nod): Likewise.
3907 (*negscc): Likewise.
3908 (movcond_addsi): Likewise.
3909 (movcond): Likewise.
3910 (*ifcompare_plus_move): Likewise.
3911 (*if_plus_move): Likewise.
3912 (*ifcompare_move_plus): Likewise.
3913 (*if_move_plus): Likewise.
3914 (*ifcompare_arith_arith): Likewise.
3915 (*if_arith_arith): Likewise.
3916 (*ifcompare_arith_move): Likewise.
3917 (*if_arith_move): Likewise.
3918 (*ifcompare_move_arith): Likewise.
3919 (*if_move_arith): Likewise.
3920 (*ifcompare_move_not): Likewise.
3921 (*if_move_not): Likewise.
3922 (*ifcompare_not_move): Likewise.
3923 (*if_not_move): Likewise.
3924 (*ifcompare_shift_move): Likewise.
3925 (*if_shift_move): Likewise.
3926 (*ifcompare_move_shift): Likewise.
3927 (*if_move_shift): Likewise.
3928 (*ifcompare_shift_shift): Likewise.
3929 (*ifcompare_not_arith): Likewise.
3930 (*ifcompare_arith_not): Likewise.
3931 (*if_arith_not): Likewise.
3932 (*ifcompare_neg_move): Likewise.
3933 (*if_neg_move): Likewise.
3934 (*ifcompare_move_neg): Likewise.
3935 (*if_move_neg): Likewise.
3936 (prologue_thumb1_interwork): Likewise.
3937 (*cond_move_not): Likewise.
3938 (*sign_extract_onebit): Likewise.
3939 (*not_signextract_onebit): Likewise.
3940 (stack_tie): Likewise.
3941 (align_4): Likewise.
3942 (align_8): Likewise.
3943 (consttable_end): Likewise.
3944 (consttable_1): Likewise.
3945 (consttable_2): Likewise.
3946 (consttable_4): Likewise.
3947 (consttable_8): Likewise.
3948 (consttable_16): Likewise.
3949 (*thumb1_tablejump): Likewise.
3950 (prefetch): Likewise.
3951 (force_register_use): Likewise.
3952 (thumb_eh_return): Likewise.
3953 (load_tp_hard): Likewise.
3954 (load_tp_soft): Likewise.
3955 (tlscall): Likewise.
3956 (*arm_movtas_ze): Likewise.
3957 (*arm_rev): Likewise.
3958 (*arm_revsh): Likewise.
3959 (*arm_rev16): Likewise.
3960 * config/arm/thumb2.md
3961 (*thumb2_smaxsi3): Likewise.
3962 (*thumb2_sminsi3): Likewise.
3963 (*thumb32_umaxsi3): Likewise.
3964 (*thumb2_uminsi3): Likewise.
3965 (*thumb2_negdi2): Likewise.
3966 (*thumb2_abssi2): Likewise.
3967 (*thumb2_neg_abss): Likewise.
3968 (*thumb2_movsi_insn): Likewise.
3969 (tls_load_dot_plus_four): Likewise.
3970 (*thumb2_movhi_insn): Likewise.
3971 (*thumb2_mov_scc): Likewise.
3972 (*thumb2_mov_negs): Likewise.
3973 (*thumb2_mov_negs): Likewise.
3974 (*thumb2_mov_nots): Likewise.
3975 (*thumb2_mov_nots): Likewise.
3976 (*thumb2_movsicc_): Likewise.
3977 (*thumb2_movsfcc_soft_insn): Likewise.
3978 (*thumb2_indirect_jump): Likewise.
3979 (*thumb2_and_scc): Likewise.
3980 (*thumb2_ior_scc): Likewise.
3981 (*thumb2_ior_scc_strict_it): Likewise.
3982 (*thumb2_cond_move): Likewise.
3983 (*thumb2_cond_arith): Likewise.
3984 (*thumb2_cond_ari): Likewise.
3985 (*thumb2_cond_sub): Likewise.
3986 (*thumb2_negscc): Likewise.
3987 (*thumb2_movcond): Likewise.
3988 (thumb2_casesi_internal): Likewise.
3989 (thumb2_casesi_internal_pic): Likewise.
3990 (*thumb2_alusi3_short): Likewise.
3991 (*thumb2_mov<mode>_shortim): Likewise.
3992 (*thumb2_addsi_short): Likewise.
3993 (*thumb2_subsi_short): Likewise.
3994 (thumb2_addsi3_compare0): Likewise.
3995 (*thumb2_cbz): Likewise.
3996 (*thumb2_cbnz): Likewise.
3997 (*thumb2_one_cmplsi2_short): Likewise.
3998 (*thumb2_negsi2_short): Likewise.
3999 (*orsi_notsi_si): Likewise.
4000 * config/arm/arm1020e.md: Update with new attributes.
4001 * config/arm/arm1026ejs.md: Update with new attributes.
4002 * config/arm/arm1136jfs.md: Update with new attributes.
4003 * config/arm/arm926ejs.md: Update with new attributes.
4004 * config/arm/cortex-a15.md: Update with new attributes.
4005 * config/arm/cortex-a5.md: Update with new attributes.
4006 * config/arm/cortex-a53.md: Update with new attributes.
4007 * config/arm/cortex-a7.md: Update with new attributes.
4008 * config/arm/cortex-a8.md: Update with new attributes.
4009 * config/arm/cortex-a9.md: Update with new attributes.
4010 * config/arm/cortex-m4.md: Update with new attributes.
4011 * config/arm/cortex-r4.md: Update with new attributes.
4012 * config/arm/fa526.md: Update with new attributes.
4013 * config/arm/fa606te.md: Update with new attributes.
4014 * config/arm/fa626te.md: Update with new attributes.
4015 * config/arm/fa726te.md: Update with new attributes.
4016
1c83b673
JG
40172013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
4018
4019 * config/aarch64/aarch64-simd.md
4020 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
4021 <vwx> iterator to ensure correct register choice.
4022 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
4023 (aarch64_sqdmull_n<mode>): Likewise.
4024 (aarch64_sqdmull2_n<mode>_internal): Likewise.
4025 * config/aarch64/arm_neon.h
4026 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
4027 (vml<as><q>_n_<su>16): Likewise.
4028 (vml<as>l_high_lane<q>_<su>16): Likewise.
4029 (vml<as>l_high_n_<su>16): Likewise.
4030 (vml<as>l_lane<q>_<su>16): Likewise.
4031 (vml<as>l_n_<su>16): Likewise.
4032 (vmul<q>_lane<q>_<su>16): Likewise.
4033 (vmul<q>_n_<su>16): Likewise.
4034 (vmull_lane<q>_<su>16): Likewise.
4035 (vmull_n_<su>16): Likewise.
4036 (vmull_high_lane<q>_<su>16): Likewise.
4037 (vmull_high_n_<su>16): Likewise.
4038 (vqrdmulh<q>_n_s16): Likewise.
4039
bb1ae543
TB
40402013-09-06 Tejas Belagod <tejas.belagod@arm.com>
4041
4042 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
4043 have the correct lane parameter.
4044
f23c0742
RB
40452013-09-06 Richard Biener <rguenther@suse.de>
4046
4047 * cfganal.c (control_dependences::~control_dependences):
4048 Properly free all of the vector.
4049
c1d49770
KY
40502013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
4051
4052 PR target/58269
4053 * config/i386/i386.c (ix86_conditional_register_usage):
4054 Proper initialize extended SSE registers.
4055
6da47f52
JH
40562013-09-06 Jan Hubicka <jh@suse.cz>
4057
4058 PR tree-optimization/58311
4059 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
4060
40612013-09-06 Jan Hubicka <jh@suse.cz>
4062
4063 * Makefile.in (tree-sra.o): Update dependencies.
4064 * tree-sra.c: Include ipa-utils.h
4065 (scan_function): Use recursive_call_p.
4066 (has_caller_p): New function.
4067 (cgraph_for_node_and_aliases): Count also callers of aliases.
4068
fc11f321
JH
40692013-09-06 Jan Hubicka <jh@suse.cz>
4070
4071 PR middle-end/58094
4072 * cgraph.h (symtab_semantically_equivalent_p): Declare.
4073 * tree-tailcall.c: Include ipa-utils.h.
4074 (find_tail_calls): Use it.
4075 * ipa-pure-const.c (check_call): Likewise.
4076 * ipa-utils.c (recursive_call_p): New function.
4077 * ipa-utils.h (recursive_call_p): Dclare.
4078 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
4079 (symtab_semantically_equivalent_p): New function.
4080 * Makefile.in (tree-tailcall.o): Update dependencies.
4081
9a6af450
EB
40822013-09-06 Eric Botcazou <ebotcazou@adacore.com>
4083
4084 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
4085 non-inlinable part.
4086
35f32ad4
RB
40872013-09-06 Richard Biener <rguenther@suse.de>
4088
4089 * lto-streamer.h (lto_global_var_decls): Remove.
4090 * Makefile.in (OBJS): Remove lto-symtab.o.
4091 (lto-symtab.o): Remove.
4092 (GTFILES): Remove lto-symtab.c
4093 * lto-symtab.c: Move to lto/
4094
d12a76f3
AK
40952013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4096
4097 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
4098 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
4099 (UNSPEC_FPINT_RINT): New constant definitions.
4100 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
4101 definition with 2 attributes.
4102 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
4103 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
4104 definitions.
4105
41062013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4107
f43245d1 4108 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
d12a76f3
AK
4109 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
4110 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
4111 attribute to "z196_alone".
4112 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
4113 "zEC12_simple".
4114
c8e9d8c3
RB
41152013-09-06 Richard Biener <rguenther@suse.de>
4116
4117 * basic-block.h (class control_dependences): New.
4118 * tree-ssa-dce.c (control_dependence_map): Remove.
4119 (cd): New global.
4120 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
4121 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
4122 find_pdom, find_control_dependence, find_all_control_dependences):
4123 Move to cfganal.c.
f43245d1
UB
4124 (mark_control_dependent_edges_necessary,
4125 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
4126 tree_dce_done, perform_tree_ssa_dce): Adjust.
c8e9d8c3
RB
4127 * cfganal.c (set_control_dependence_map_bit,
4128 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
4129 find_all_control_dependences): Move from tree-ssa-dce.c and
4130 implement as methods of control_dependences class.
4131 (control_dependences::control_dependences): New.
4132 (control_dependences::~control_dependences): Likewise.
4133 (control_dependences::get_edges_dependent_on): Likewise.
4134 (control_dependences::get_edge): Likewise.
4135
7d2ba471
JH
41362013-09-04 Jan Hubicka <jh@suse.cz>
4137
4138 * tree.c (types_same_for_odr): Drop overactive check.
4139 * ipa-devirt.c (hash_type_name): Likewise.
4140
e18412fc
JH
41412013-09-04 Jan Hubicka <jh@suse.cz>
4142
4143 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
4144 (analyze_functions): ... here.
4145
d352b245
JH
41462013-09-04 Jan Hubicka <jh@suse.cz>
4147
4148 PR middle-end/58201
4149 * cgraphunit.c (analyze_functions): Clear AUX fields
4150 after processing; initialize assembler name has.
4151
770da076
JL
41522013-09-05 Jeff Law <law@redhat.com>
4153
4154 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
4155 from thread_around_empty_block. Record threading path into PATH.
4156 Recurse if threading through the initial block is successful.
4157 (thread_across_edge): Corresponding changes to slightly simplify.
4158
fe6f68e2
JG
41592013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
4160
4161 * config/aarch64/aarch64.md
4162 (type): Remove frecpe, frecps, frecpx.
4163 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
4164 fix to be a TARGET_SIMD instruction.
4165 (aarch64_frecps): Remove.
4166 * config/aarch64/aarch64-simd.md
4167 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
4168 (aarch64_frecps<mode>): Handle all float/vector of float modes.
4169
6e4150e1
JG
41702013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
4171 Sofiane Naci <sofiane.naci@arm.com>
4172
f43245d1 4173 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
6e4150e1 4174 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
f43245d1
UB
4175 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
4176 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
4177 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
4178 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
4179 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
4180 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
4181 into "clz, "rbit". Rename "shift" to "shift_imm".
6e4150e1 4182 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
f43245d1 4183 changes. Update for attribute changes all occurrences of arlo_* and
6e4150e1
JG
4184 shift* types.
4185 * config/arm/arm-fixed.md: Update for attribute changes
4186 all occurrences of arlo_* types.
4187 * config/arm/thumb2.md: Update for attribute changes all occurrences
4188 of arlo_* types.
4189 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
4190 (cortexa7_older_only): Likewise.
4191 (cortexa7_younger): Likewise.
4192 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
4193 (1020alu_shift_op): Likewise.
4194 (1020alu_shift_reg_op): Likewise.
4195 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
4196 (alu_shift_op): Likewise.
4197 (alu_shift_reg_op): Likewise.
f43245d1 4198 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
6e4150e1
JG
4199 (11_alu_shift_op): Likewise.
4200 (11_alu_shift_reg_op): Likewise.
4201 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
4202 (9_alu_shift_reg_op): Likewise.
4203 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
4204 attribute changes.
4205 (cortex_a15_alu_shift): Likewise.
4206 (cortex_a15_alu_shift_reg): Likewise.
4207 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
4208 attribute changes.
4209 (cortex_a5_alu_shift): Likewise.
f43245d1
UB
4210 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
4211 attribute changes.
6e4150e1 4212 (cortex_a53_alu_shift): Likewise.
f43245d1
UB
4213 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
4214 attribute changes.
6e4150e1
JG
4215 (cortex_a7_alu_reg): Likewise.
4216 (cortex_a7_alu_shift): Likewise.
f43245d1
UB
4217 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
4218 attribute changes.
6e4150e1
JG
4219 (cortex_a8_alu_shift): Likewise.
4220 (cortex_a8_alu_shift_reg): Likewise.
f43245d1 4221 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
6e4150e1 4222 (cortex_a9_dp_shift): Likewise.
f43245d1
UB
4223 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
4224 attribute changes.
6e4150e1
JG
4225 * config/arm/cortex-r4.md
4226 (cortex_r4_alu): Update for attribute changes.
4227 (cortex_r4_mov): Likewise.
4228 (cortex_r4_alu_shift_reg): Likewise.
f43245d1 4229 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
6e4150e1 4230 (526_alu_shift_op): Likewise.
f43245d1
UB
4231 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
4232 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
6e4150e1 4233 (626te_alu_shift_op): Likewise.
f43245d1 4234 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
6e4150e1
JG
4235 (726te_alu_shift_op): Likewise.
4236 (726te_alu_shift_reg_op): Likewise.
4237 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
4238 (mp626_alu_shift_op): Likewise.
4239 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
4240 (pj4_alu_conds): Likewise.
4241 (pj4_shift): Likewise.
4242 (pj4_shift_conds): Likewise.
4243 (pj4_alu_shift): Likewise.
4244 (pj4_alu_shift_conds): Likewise.
4245 * config/aarch64/aarch64.md: Update for attribute change
4246 all occurrences of arlo_* and shift* types.
4247
e6523306
MS
42482013-09-05 Mike Stump <mikestump@comcast.net>
4249
4250 * tree.h: Move documentation for tree_function_decl to tree-core.h
4251 with the declaration.
4252
80a18161
PB
42532013-09-05 Peter Bergner <bergner@vnet.ibm.com>
4254
4255 PR target/58139
4256 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
4257 looking for widest mode.
4258
6994430a
EB
42592013-09-05 Eric Botcazou <ebotcazou@adacore.com>
4260
4261 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
4262
e67f39f7
RB
42632013-09-05 Richard Biener <rguenther@suse.de>
4264
4265 PR tree-optimization/58137
4266 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
4267 Do not create vectors of pointers.
4268 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
4269 types for the components of the vector initializer.
4270 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
4271 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
4272
568cda29
MJ
42732013-09-05 Martin Jambor <mjambor@suse.cz>
4274
4275 * ipa-prop.c (remove_described_reference): Accept missing references,
4276 return false if that hppens, otherwise return true.
4277 (cgraph_node_for_jfunc): New function.
4278 (try_decrement_rdesc_refcount): Likewise.
4279 (try_make_edge_direct_simple_call): Use them.
4280 (ipa_edge_removal_hook): Remove references from rdescs.
4281 (ipa_edge_duplication_hook): Clone rdescs and their references
4282 when the new edge has the same caller as the old one.
4283 * cgraph.c (cgraph_resolve_speculation): Remove speculative
4284 reference before removing any edges.
4285
5a200acb
RE
42862013-09-05 Richard Earnshaw <rearnsha@arm.com>
4287
4288 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
4289 initial store.
4290 * thumb2.md (thumb2_storewb_parisi): New pattern.
4291
5922847b
YZ
42922013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
4293
4294 * config/aarch64/aarch64-option-extensions.def: Add
4295 AARCH64_OPT_EXTENSION of 'crc'.
4296 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
4297 (AARCH64_ISA_CRC): Ditto.
4298 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
4299 description of the CRC extension.
4300
996746aa
AI
43012013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
4302
4303 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
4304 * config/rs6000/linux.h: Ditto.
4305 * alpha/linux.h: Ditto.
4306 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
4307 no_c99_libc_has_function.
4308 * config/c6x/uclinux-elf.h: Ditto.
4309 * config/lm32/uclinux-elf.h: Ditto.
4310 * config/m68k/uclinux.h: Ditto.
4311 * config/moxie/uclinux.h: Ditto.
4312 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
4313 (crisv32-*-linux*, cris-*-linux*): Ditto.
4314 * config/bfin/bfin.c: Include "tm_p.h".
4315
c370d99f
RB
43162013-09-05 Richard Biener <rguenther@suse.de>
4317
4318 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
4319 check for a definition without a basic-block.
4320
003bb7f3
JG
43212013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
4322 Sofiane Naci <sofiane.naci@arm.com>
4323
4324 * config/aarch64/aarch64.md
4325 (*movti_aarch64): Rename r_2_f and f_2_r.
4326 (*movsf_aarch64): Likewise.
4327 (*movdf_aarch64): Likewise.
4328 (*movtf_aarch64): Likewise.
4329 (aarch64_movdi_<mode>low): Likewise.
4330 (aarch64_movdi_<mode>high): Likewise.
4331 (aarch64_mov<mode>high_di): Likewise.
4332 (aarch64_mov<mode>low_di): Likewise.
4333 (aarch64_movtilow_tilow): Likewise.
4334 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
4335 values to config/arm/types.md
4336 (attribute "conds"): Update for attribute change.
4337 (anddi3_insn): Likewise.
4338 (iordi3_insn): Likewise.
4339 (xordi3_insn): Likewise.
4340 (one_cmpldi2): Likewise.
4341 * config/arm/types.md (type): Add Neon types.
4342 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
4343 use "type" attribute.
4344 (movmisalign<mode>_neon_store): Likewise.
4345 (movmisalign<mode>_neon_load): Likewise.
4346 (vec_set<mode>_internal): Likewise.
4347 (vec_setv2di_internal): Likewise.
4348 (vec_extract<mode>): Likewise.
4349 (vec_extractv2di): Likewise.
4350 (add<mode>3_neon): Likewise.
4351 (adddi3_neon): Likewise.
4352 (sub<mode>3_neon): Likewise.
4353 (subdi3_neon): Likewise.
4354 (mul<mode>3_neon): Likewise.
4355 (mul<mode>3add<mode>_neon): Likewise.
4356 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
4357 (fma<VCVTF:mode>4)): Likewise.
4358 (fma<VCVTF:mode>4_intrinsic): Likewise.
4359 (fmsub<VCVTF:mode>4)): Likewise.
4360 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
4361 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
4362 (ior<mode>3): Likewise.
4363 (and<mode>3): Likewise.
4364 (anddi3_neon): Likewise.
4365 (orn<mode>3_neon): Likewise.
4366 (orndi3_neon): Likewise.
4367 (bic<mode>3_neon): Likewise.
4368 (bicdi3_neon): Likewise.
4369 (xor<mode>3): Likewise.
4370 (one_cmpl<mode>2): Likewise.
4371 (abs<mode>2): Likewise.
4372 (neg<mode>2): Likewise.
4373 (umin<mode>3_neon): Likewise.
4374 (umax<mode>3_neon): Likewise.
4375 (smin<mode>3_neon): Likewise.
4376 (smax<mode>3_neon): Likewise.
4377 (vashl<mode>3): Likewise.
4378 (vashr<mode>3_imm): Likewise.
4379 (vlshr<mode>3_imm): Likewise.
4380 (ashl<mode>3_signed): Likewise.
4381 (ashl<mode>3_unsigned): Likewise.
4382 (neon_load_count): Likewise.
4383 (ashldi3_neon_noclobber): Likewise.
4384 (signed_shift_di3_neon): Likewise.
4385 (unsigned_shift_di3_neon): Likewise.
4386 (ashrdi3_neon_imm_noclobber): Likewise.
4387 (lshrdi3_neon_imm_noclobber): Likewise.
4388 (widen_ssum<mode>3): Likewise.
4389 (widen_usum<mode>3): Likewise.
4390 (quad_halves_<code>v4si): Likewise.
4391 (quad_halves_<code>v4sf): Likewise.
4392 (quad_halves_<code>v8hi): Likewise.
4393 (quad_halves_<code>v16qi): Likewise.
4394 (reduc_splus_v2di): Likewise.
4395 (neon_vpadd_internal<mode>): Likewise.
4396 (neon_vpsmin<mode>): Likewise.
4397 (neon_vpsmax<mode>): Likewise.
4398 (neon_vpumin<mode>): Likewise.
4399 (neon_vpumax<mode>): Likewise.
4400 (ss_add<mode>_neon): Likewise.
4401 (us_add<mode>_neon): Likewise.
4402 (ss_sub<mode>_neon): Likewise.
4403 (us_sub<mode>_neon): Likewise.
4404 (neon_vadd<mode>_unspec): Likewise.
4405 (neon_vaddl<mode>): Likewise.
4406 (neon_vaddw<mode>): Likewise.
4407 (neon_vhadd<mode>): Likewise.
4408 (neon_vqadd<mode>): Likewise.
4409 (neon_vaddhn<mode>): Likewise.
4410 (neon_vmul<mode>): Likewise.
4411 (neon_vmla<mode>): Likewise.
4412 (neon_vmlal<mode>): Likewise.
4413 (neon_vmls<mode>): Likewise.
4414 (neon_vmlsl<mode>): Likewise.
4415 (neon_vqdmulh<mode>): Likewise.
4416 (neon_vqdmlal<mode>): Likewise.
4417 (neon_vqdmlsl<mode>): Likewise.
4418 (neon_vmull<mode>): Likewise.
4419 (neon_vqdmull<mode>): Likewise.
4420 (neon_vsub<mode>_unspec): Likewise.
4421 (neon_vsubl<mode>): Likewise.
4422 (neon_vsubw<mode>): Likewise.
4423 (neon_vqsub<mode>): Likewise.
4424 (neon_vhsub<mode>): Likewise.
4425 (neon_vsubhn<mode>): Likewise.
4426 (neon_vceq<mode>): Likewise.
4427 (neon_vcge<mode>): Likewise.
4428 (neon_vcgeu<mode>): Likewise.
4429 (neon_vcgt<mode>): Likewise.
4430 (neon_vcgtu<mode>): Likewise.
4431 (neon_vcle<mode>): Likewise.
4432 (neon_vclt<mode>): Likewise.
4433 (neon_vcage<mode>): Likewise.
4434 (neon_vcagt<mode>): Likewise.
4435 (neon_vtst<mode>): Likewise.
4436 (neon_vabd<mode>): Likewise.
4437 (neon_vabdl<mode>): Likewise.
4438 (neon_vaba<mode>): Likewise.
4439 (neon_vabal<mode>): Likewise.
4440 (neon_vmax<mode>): Likewise.
4441 (neon_vmin<mode>): Likewise.
4442 (neon_vpaddl<mode>): Likewise.
4443 (neon_vpadal<mode>): Likewise.
4444 (neon_vpmax<mode>): Likewise.
4445 (neon_vpmin<mode>): Likewise.
4446 (neon_vrecps<mode>): Likewise.
4447 (neon_vrsqrts<mode>): Likewise.
4448 (neon_vqabs<mode>): Likewise.
4449 (neon_vqneg<mode>): Likewise.
4450 (neon_vcls<mode>): Likewise.
4451 (clz<mode>2): Likewise.
4452 (popcount<mode>2): Likewise.
4453 (neon_vrecpe): Likewise.
4454 (neon_vrsqrte): Likewise.
4455 (neon_vget_lane<mode>_sext_internal): Likewise.
4456 (neon_vget_lane<mode>_zext_internal): Likewise.
4457 (neon_vdup_n<mode>): Likewise.
4458 (neon_vdup_nv2di): Likewise.
4459 (neon_vdpu_lane<mode>_internal): Likewise.
4460 (neon_vswp<mode>): Likewise.
4461 (float<mode><V_cvtto>2): Likewise.
4462 (floatuns<mode><V_cvtto>2): Likewise.
4463 (fix_trunc<mode><V_cvtto>)2): Likewise
4464 (fixuns_trunc<mode><V_cvtto)2): Likewise.
4465 (neon_vcvt<mode>): Likewise.
4466 (neon_vcvtv4sfv4hf): Likewise.
4467 (neon_vcvtv4hfv4sf): Likewise.
4468 (neon_vcvt_n<mode>): Likewise.
4469 (neon_vmovn<mode>): Likewise.
4470 (neon_vqmovn<mode>): Likewise.
4471 (neon_vqmovun<mode>): Likewise.
4472 (neon_vmovl<mode>): Likewise.
4473 (neon_vmul_lane<mode>): Likewise.
4474 (neon_vmull_lane<mode>): Likewise.
4475 (neon_vqdmull_lane<mode>): Likewise.
4476 (neon_vqdmulh_lane<mode>): Likewise.
4477 (neon_vmla_lane<mode>): Likewise.
4478 (neon_vmlal_lane<mode>): Likewise.
4479 (neon_vqdmlal_lane<mode>): Likewise.
4480 (neon_vmls_lane<mode>): Likewise.
4481 (neon_vmlsl_lane<mode>): Likewise.
4482 (neon_vqdmlsl_lane<mode>): Likewise.
4483 (neon_vext<mode>): Likewise.
4484 (neon_vrev64<mode>): Likewise.
4485 (neon_vrev32<mode>): Likewise.
4486 (neon_vrev16<mode>): Likewise.
4487 (neon_vbsl<mode>_internal): Likewise.
4488 (neon_vshl<mode>): Likewise.
4489 (neon_vqshl<mode>): Likewise.
4490 (neon_vshr_n<mode>): Likewise.
4491 (neon_vshrn_n<mode>): Likewise.
4492 (neon_vqshrn_n<mode>): Likewise.
4493 (neon_vqshrun_n<mode>): Likewise.
4494 (neon_vshl_n<mode>): Likewise.
4495 (neon_vqshl_n<mode>): Likewise.
4496 (neon_vqshlu_n<mode>): Likewise.
4497 (neon_vshll_n<mode>): Likewise.
4498 (neon_vsra_n<mode>): Likewise.
4499 (neon_vsri_n<mode>): Likewise.
4500 (neon_vsli_n<mode>): Likewise.
4501 (neon_vtbl1v8qi): Likewise.
4502 (neon_vtbl2v8qi): Likewise.
4503 (neon_vtbl3v8qi): Likewise.
4504 (neon_vtbl4v8qi): Likewise.
4505 (neon_vtbx1v8qi): Likewise.
4506 (neon_vtbx2v8qi): Likewise.
4507 (neon_vtbx3v8qi): Likewise.
4508 (neon_vtbx4v8qi): Likewise.
4509 (neon_vtrn<mode>_internal): Likewise.
4510 (neon_vzip<mode>_internal): Likewise.
4511 (neon_vuzp<mode>_internal): Likewise.
4512 (neon_vld1<mode>): Likewise.
4513 (neon_vld1_lane<mode>): Likewise.
4514 (neon_vld1_dup<mode>): Likewise.
4515 (neon_vld1_dupv2di): Likewise.
4516 (neon_vst1<mode>): Likewise.
4517 (neon_vst1_lane<mode>): Likewise.
4518 (neon_vld2<mode>): Likewise.
4519 (neon_vld2_lane<mode>): Likewise.
4520 (neon_vld2_dup<mode>): Likewise.
4521 (neon_vst2<mode>): Likewise.
4522 (neon_vst2_lane<mode>): Likewise.
4523 (neon_vld3<mode>): Likewise.
4524 (neon_vld3qa<mode>): Likewise.
4525 (neon_vld3qb<mode>): Likewise.
4526 (neon_vld3_lane<mode>): Likewise.
4527 (neon_vld3_dup<mode>): Likewise.
4528 (neon_vst3<mode>): Likewise.
4529 (neon_vst3qa<mode>): Likewise.
4530 (neon_vst3qb<mode>): Likewise.
4531 (neon_vst3_lane<mode>): Likewise.
4532 (neon_vld4<mode>): Likewise.
4533 (neon_vld4qa<mode>): Likewise.
4534 (neon_vld4qb<mode>): Likewise.
4535 (neon_vld4_lane<mode>): Likewise.
4536 (neon_vld4_dup<mode>): Likewise.
4537 (neon_vst4<mode>): Likewise.
4538 (neon_vst4qa<mode>): Likewise.
4539 (neon_vst4qb<mode>): Likewise.
4540 (neon_vst4_lane<mode>): Likewise.
4541 (neon_vec_unpack<US>_lo_<mode>): Likewise.
4542 (neon_vec_unpack<US>_hi_<mode>): Likewise.
4543 (neon_vec_<US>mult_lo_<mode>): Likewise.
4544 (neon_vec_<US>mult_hi_<mode>): Likewise.
4545 (neon_vec_<US>shiftl_<mode>): Likewise.
4546 (neon_unpack<US>_<mode>): Likewise.
4547 (neon_vec_<US>mult_<mode>): Likewise.
4548 (vec_pack_trunc_<mode>): Likewise.
4549 (neon_vec_pack_trunk_<mode>): Likewise.
4550 (neon_vabd<mode>_2): Likewise.
4551 (neon_vabd<mode>_3): Likewise.
4552 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
4553 (thumb2_movsi_vfp): Likewise.
4554 (movdi_vfp): Likewise.
4555 (movdi_vfp_cortexa8): Likewise.
4556 (movhf_vfp_neon): Likewise.
4557 (movhf_vfp): Likewiwse.
4558 (movsf_vfp): Likewiwse.
4559 (thumb2_movsf_vfp): Likewiwse.
4560 (movdf_vfp): Likewise.
4561 (thumb2_movdf_vfp): Likewise.
4562 (movsfcc_vfp): Likewise.
4563 (thumb2_movsfcc_vfp): Likewise.
4564 (movdfcc_vfp): Likewise.
4565 (thumb2_movdfcc_vfp): Likewise.
4566 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
4567 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
4568 (v10_v2c): Likewise.
4569 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
4570 attribute change.
4571 (cortex_a15_neon_int_2): Likewise.
4572 (cortex_a15_neon_int_3): Likewise.
4573 (cortex_a15_neon_int_4): Likewise.
4574 (cortex_a15_neon_int_5): Likewise.
4575 (cortex_a15_neon_vqneg_vqabs): Likewise.
4576 (cortex_a15_neon_vmov): Likewise.
4577 (cortex_a15_neon_vaba): Likewise.
4578 (cortex_a15_neon_vaba_qqq): Likewise.
4579 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4580 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
4581 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
4582 scalar_64_32_long_scalar): Likewise.
4583 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4584 (cortex_a15_neon_mla_qqq_8_16): Likewise.
4585 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4586 lotype_qdd_64_32_long): Likewise.
4587 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4588 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4589 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
4590 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4591 (cortex_a15_neon_shift_1): Likewise.
4592 (cortex_a15_neon_shift_2): Likewise.
4593 (cortex_a15_neon_shift_3): Likewise.
4594 (cortex_a15_neon_vshl_ddd): Likewise.
4595 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4596 (cortex_a15_neon_vsra_vrsra): Likewise.
4597 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
4598 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
4599 (cortex_a15_neon_fp_vmul_ddd): Likewise.
4600 (cortex_a15_neon_fp_vmul_qqd): Likewise.
4601 (cortex_a15_neon_fp_vmla_ddd): Likewise.
4602 (cortex_a15_neon_fp_vmla_qqq): Likewise.
4603 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
4604 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
4605 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4606 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4607 (cortex_a15_neon_bp_simple): Likewise.
4608 (cortex_a15_neon_bp_2cycle): Likewise.
4609 (cortex_a15_neon_bp_3cycle): Likewise.
4610 (cortex_a15_neon_vld1_1_2_regs): Likewise.
4611 (cortex_a15_neon_vld1_3_4_regs): Likewise.
4612 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4613 (cortex_a15_neon_vld2_4_regs): Likewise.
4614 (cortex_a15_neon_vld3_vld4): Likewise.
4615 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4616 (cortex_a15_neon_vst1_3_4_regs): Likewise.
4617 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
4618 (cortex_a15_neon_vst3_vst4): Likewise.
4619 (cortex_a15_neon_vld1_vld2_lane): Likewise.
4620 (cortex_a15_neon_vld3_vld4_lane" 10
4621 (cortex_a15_neon_vst1_vst2_lane): Likewise.
4622 (cortex_a15_neon_vst3_vst4_lane): Likewise.
4623 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
4624 (cortex_a15_neon_ldm_2): Likewise.0
4625 (cortex_a15_neon_stm_2): Likewise.
4626 (cortex_a15_neon_mcr): Likewise.
4627 (cortex_a15_neon_mcr_2_mcrr): Likewise.
4628 (cortex_a15_neon_mrc): Likewise.
4629 (cortex_a15_neon_mrrc): Likewise.
4630 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
4631 change.
4632 (cortex_a15_alu_shift): Likewise.
4633 (cortex_a15_alu_shift_reg): Likewise.
4634 (cortex_a15_mult32): Likewise.
4635 (cortex_a15_mult64): Likewise.
4636 (cortex_a15_block): Likewise.
4637 (cortex_a15_branch): Likewise.
4638 (cortex_a15_load1): Likewise.
4639 (cortex_a15_load3): Likewise.
4640 (cortex_a15_store1): Likewise.
4641 (cortex_a15_store3): Likewise.
4642 (cortex_a15_call): Likewise.
f43245d1 4643 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
003bb7f3
JG
4644 (cortex_a5_f2r): Likewise.
4645 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
4646 change.
4647 (cortex_a53_f2r): Likewise.
4648 * config/arm/cortex-a7.md
4649 (cortex_a7_branch): Update for attribute change.
4650 (cortex_a7_call): Likewise.
4651 (cortex_a7_alu_imm): Likewise.
4652 (cortex_a7_alu_reg): Likewise.
4653 (cortex_a7_alu_shift): Likewise.
4654 (cortex_a7_mul): Likewise.
4655 (cortex_a7_load1): Likewise.
4656 (cortex_a7_store1): Likewise.
4657 (cortex_a7_load2): Likewise.
4658 (cortex_a7_store2): Likewise.
4659 (cortex_a7_load3): Likewise.
4660 (cortex_a7_store3): Likewise.
4661 (cortex_a7_load4): Likewise.
4662 (cortex_a7_store4): Likewise.
4663 (cortex_a7_fpalu): Likewise.
4664 (cortex_a7_fconst): Likewise.
4665 (cortex_a7_fpmuls): Likewise.
4666 (cortex_a7_neon_mul): Likewise.
4667 (cortex_a7_fpmacs): Likewise.
4668 (cortex_a7_neon_mla: Likewise.
4669 (cortex_a7_fpmuld: Likewise.
4670 (cortex_a7_fpmacd: Likewise.
4671 (cortex_a7_fpfmad: Likewise.
4672 (cortex_a7_fdivs: Likewise.
4673 (cortex_a7_fdivd: Likewise.
4674 (cortex_a7_r2f: Likewise.
4675 (cortex_a7_f2r: Likewise.
4676 (cortex_a7_f_flags: Likewise.
4677 (cortex_a7_f_loads: Likewise.
4678 (cortex_a7_f_loadd: Likewise.
4679 (cortex_a7_f_stores: Likewise.
4680 (cortex_a7_f_stored: Likewise.
4681 (cortex_a7_neon): Likewise.
4682 * config/arm/cortex-a8-neon.md
4683 (cortex_a8_neon_mrc): Update for attribute change.
4684 (cortex_a8_neon_mrrc): Likewise.
4685 (cortex_a8_neon_int_1): Likewise.
4686 (cortex_a8_neon_int_2): Likewise.
4687 (cortex_a8_neon_int_3): Likewise.
4688 (cortex_a8_neon_int_4): Likewise.
4689 (cortex_a8_neon_int_5): Likewise.
4690 (cortex_a8_neon_vqneg_vqabs): Likewise.
4691 (cortex_a8_neon_vmov): Likewise.
4692 (cortex_a8_neon_vaba): Likewise.
4693 (cortex_a8_neon_vaba_qqq): Likewise.
4694 (cortex_a8_neon_vsma): Likewise.
4695 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4696 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
4697 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
4698 long_scalar): Likewise.
003bb7f3
JG
4699 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4700 (cortex_a8_neon_mla_qqq_8_16): Likewise.
4701 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4702 long_scalar_qdd_64_32_long): Likewise.
4703 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4704 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4705 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
4706 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4707 (cortex_a8_neon_shift_1): Likewise.
4708 (cortex_a8_neon_shift_2): Likewise.
4709 (cortex_a8_neon_shift_3): Likewise.
4710 (cortex_a8_neon_vshl_ddd): Likewise.
4711 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4712 (cortex_a8_neon_vsra_vrsra): Likewise.
4713 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
4714 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
4715 (cortex_a8_neon_fp_vsum): Likewise.
4716 (cortex_a8_neon_fp_vmul_ddd): Likewise.
4717 (cortex_a8_neon_fp_vmul_qqd): Likewise.
4718 (cortex_a8_neon_fp_vmla_ddd): Likewise.
4719 (cortex_a8_neon_fp_vmla_qqq): Likewise.
4720 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
4721 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
4722 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4723 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4724 (cortex_a8_neon_bp_simple): Likewise.
4725 (cortex_a8_neon_bp_2cycle): Likewise.
4726 (cortex_a8_neon_bp_3cycle): Likewise.
4727 (cortex_a8_neon_ldr): Likewise.
4728 (cortex_a8_neon_str): Likewise.
4729 (cortex_a8_neon_vld1_1_2_regs): Likewise.
4730 (cortex_a8_neon_vld1_3_4_regs): Likewise.
4731 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4732 (cortex_a8_neon_vld2_4_regs): Likewise.
4733 (cortex_a8_neon_vld3_vld4): Likewise.
4734 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4735 (cortex_a8_neon_vst1_3_4_regs): Likewise.
4736 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
4737 (cortex_a8_neon_vst3_vst4): Likewise.
4738 (cortex_a8_neon_vld1_vld2_lane): Likewise.
4739 (cortex_a8_neon_vld3_vld4_lane): Likewise.
4740 (cortex_a8_neon_vst1_vst2_lane): Likewise.
4741 (cortex_a8_neon_vst3_vst4_lane): Likewise.
4742 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
4743 (cortex_a8_neon_mcr): Likewise.
4744 (cortex_a8_neon_mcr_2_mcrr): Likewise.
f43245d1 4745 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
003bb7f3
JG
4746 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
4747 change.
4748 (ca9_neon_mrrc): Likewise.
4749 (cortex_a9_neon_int_1): Likewise.
4750 (cortex_a9_neon_int_2): Likewise.
4751 (cortex_a9_neon_int_3): Likewise.
4752 (cortex_a9_neon_int_4): Likewise.
4753 (cortex_a9_neon_int_5): Likewise.
4754 (cortex_a9_neon_vqneg_vqabs): Likewise.
4755 (cortex_a9_neon_vmov): Likewise.
4756 (cortex_a9_neon_vaba): Likewise.
4757 (cortex_a9_neon_vaba_qqq): Likewise.
4758 (cortex_a9_neon_vsma): Likewise.
4759 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4760 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
4761 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
4762 long_scalar): Likewise.
003bb7f3
JG
4763 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4764 (cortex_a9_neon_mla_qqq_8_16): Likewise.
4765 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4766 long_scalar_qdd_64_32_long): Likewise.
4767 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4768 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4769 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
4770 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4771 (cortex_a9_neon_shift_1): Likewise.
4772 (cortex_a9_neon_shift_2): Likewise.
4773 (cortex_a9_neon_shift_3): Likewise.
4774 (cortex_a9_neon_vshl_ddd): Likewise.
4775 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4776 (cortex_a9_neon_vsra_vrsra): Likewise.
4777 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
4778 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
4779 (cortex_a9_neon_fp_vsum): Likewise.
4780 (cortex_a9_neon_fp_vmul_ddd): Likewise.
4781 (cortex_a9_neon_fp_vmul_qqd): Likewise.
4782 (cortex_a9_neon_fp_vmla_ddd): Likewise.
4783 (cortex_a9_neon_fp_vmla_qqq): Likewise.
4784 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
4785 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
4786 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4787 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4788 (cortex_a9_neon_bp_simple): Likewise.
4789 (cortex_a9_neon_bp_2cycle): Likewise.
4790 (cortex_a9_neon_bp_3cycle): Likewise.
4791 (cortex_a9_neon_ldr): Likewise.
4792 (cortex_a9_neon_str): Likewise.
4793 (cortex_a9_neon_vld1_1_2_regs): Likewise.
4794 (cortex_a9_neon_vld1_3_4_regs): Likewise.
4795 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4796 (cortex_a9_neon_vld2_4_regs): Likewise.
4797 (cortex_a9_neon_vld3_vld4): Likewise.
4798 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4799 (cortex_a9_neon_vst1_3_4_regs): Likewise.
4800 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
4801 (cortex_a9_neon_vst3_vst4): Likewise.
4802 (cortex_a9_neon_vld1_vld2_lane): Likewise.
4803 (cortex_a9_neon_vld3_vld4_lane): Likewise.
4804 (cortex_a9_neon_vst1_vst2_lane): Likewise.
4805 (cortex_a9_neon_vst3_vst4_lane): Likewise.
4806 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
4807 (cortex_a9_neon_mcr): Likewise.
4808 (cortex_a9_neon_mcr_2_mcrr): Likewise.
4809 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
4810 (cortex_a9_fps): Likewise.
4811 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
4812 change.
4813 (cortex_m4_fmuls): Likewise.
4814 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
4815 change.
4816 (cortex_r4_mrc): Likewise.
4817 * config/arm/iterators.md: Update comment referring to neon_type.
f43245d1 4818 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
003bb7f3 4819 (iwmmxt_movsi_insn): Likewise.
f43245d1
UB
4820 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
4821 attribute change.
003bb7f3
JG
4822 (pj4_core_to_vfp): Likewise.
4823 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
4824 attribute change.
4825 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
4826 (vfp_fstore): Likewise.
4827 * doc/md.texi: Change references to neon_type to refer to type.
4828
fbe0dc78
DS
48292013-09-04 Dodji Seketeli <dodji@redhat.com>
4830
4831 * tree.h (DECL_BUILT_IN): Fix typo in comment.
4832
c167bc5b
DE
48332013-09-04 David Edelsohn <dje.gcc@gmail.com>
4834
4835 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
4836 lglobl if not weak.
4837
035cb59f
ER
48382013-09-04 Easwaran Raman <eraman@google.com>
4839
4840 PR middle-end/57370
4841 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
4842 (build_and_add_sum): Use it.
4843 (appears_later_in_bb): Simplify code.
4844
71191083
TJ
48452013-09-04 Teresa Johnson <tejohnson@google.com>
4846
4847 * dumpfile.c (dump_finish): Don't close stderr/stdout.
4848
0c488213
JG
48492013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
4850
4851 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
4852
61a74079
JH
48532013-09-04 Jan Hubicka <jh@suse.cz>
4854
4855 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
4856 * ipa-devirt.c: Include diganostic.h
4857 (odr_type_d): Add types and types_set.
4858 (hash_type_name): Work for types with vtables during LTO.
4859 (odr_hasher::remove): Fix comment; destroy types_set.
4860 (add_type_duplicate): New function,
4861 (get_odr_type): Use it.
4862 (dump_type_inheritance_graph): Dump type duplicates.
4863 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
4864 graph.
4865 * tree.c (types_same_for_odr): Give exact answers on types with
4866 virtual tables.
4867
24ba8195
DS
48682013-09-04 Dodji Seketeli <dodji@redhat.com>
4869
4870 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
7a5911d3 4871 explaining their differences.
24ba8195 4872
0a04869e
SKS
48732013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
4874
4875 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
4876
3b18bc42
JL
48772013-09-03 Jeff Law <law@redhat.com>
4878
4879 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
4880 when not threading through a joiner block. Pass joiner/no joiner
4881 state to register_jump_thread.
4882 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
4883 state from argument rather than implying on path length.
4884 Dump the entire jump thread path into debugging dump.
4885 * tree-flow.h (register_jump_thread): Update prototype.
4886
ae84e151
XDL
48872013-08-29 Xinliang David Li <davidxl@google.com>
4888
4889 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4890 Remove a trivial gcc_assert.
4891
c716e67f
XDL
48922013-08-29 Xinliang David Li <davidxl@google.com>
4893
4894 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
4895 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
4896 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4897 Delay base decl alignment adjustment.
4898 * tree-vectorizer.c (vect_destroy_datarefs): New function.
4899 * tree-vectorizer.h: New data structure.
4900 (set_dr_misalignment): New function.
4901 (dr_misalignment): Ditto.
4902 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
4903 (vectorizable_load): Ditto.
4904 (ensure_base_align): New function.
4905 (vectorize_loops): Add dbg_cnt support.
4906 (execute_vect_slp): Ditto.
4907 * dbgcnt.def: New debug counter.
4908 * Makefile: New dependency.
4909
db8800bc
MI
49102013-09-03 Meador Inge <meadori@codesourcery.com>
4911
4912 Revert:
4913
4914 2013-08-30 Meador Inge <meadori@codesourcery.com>
4915
4916 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
4917
0d9b4f5c
DE
49182013-09-03 David Edelsohn <dje.gcc@gmail.com>
4919
4920 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
4921 function descriptor.
4922
29e810b9
RB
49232013-09-03 Richard Biener <rguenther@suse.de>
4924
4925 * tree-affine.c (add_elt_to_tree): Fix association issue,
4926 avoid useless converts and make sure to always return a
4927 properly typed result.
4928
dbfc2894
RB
49292013-09-03 Richard Biener <rguenther@suse.de>
4930
4931 PR middle-end/57656
4932 * fold-const.c (negate_expr_p): Fix division case.
4933 (negate_expr): Likewise.
4934
fa3bf4ce
RB
49352013-09-03 Richard Biener <rguenther@suse.de>
4936
4937 PR lto/58285
4938 * tree-streamer-out.c: Include tm.h.
4939 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
4940
a64bbb3f
JH
49412013-09-03 Jan Hubicka <jh@suse.cz>
4942
4943 * tree-profile.c (tree_profiling): Cleanup CFG when done.
4944
93ed07e2
AM
49452013-09-03 Alan Modra <amodra@gmail.com>
4946
4947 * config.gcc (powerpc*-*-linux*): Add support for little-endian
4948 multilibs to big-endian target and vice versa.
4949 * config/rs6000/t-linux64: Use := assignment on all vars.
4950 (MULTILIB_EXTRA_OPTS): Remove fPIC.
4951 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
4952 * config/rs6000/t-linux64le: New file.
4953 * config/rs6000/t-linux64bele: New file.
4954 * config/rs6000/t-linux64lebe: New file.
4955
07d6cd64
JH
49562013-09-02 Jan Hubicka <jh@suse.cz>
4957
4958 * ipa-inline-transform.c (inline_transform): Do not
4959 optimize_inline_calls when not optimizing.
4960
8e4c9a10
JH
49612013-09-02 Jan Hubicka <jh@suse.cz>
4962
4963 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
4964 duplicated nodes for assembler names.
4965 * symtab.c (symtab_unregister_node): Do not attempt to unlink
4966 hard registers from assembler name hash.
4967
c91061e6
JH
49682013-09-02 Jan Hubicka <jh@suse.cz>
4969
4970 * ipa-split.c (execute_split_functions): Split externally visible
4971 functions called once.
4972
2fd0985c
MJ
49732013-09-02 Martin Jambor <mjambor@suse.cz>
4974
4975 PR ipa/58106
4976 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
4977 linked list. When finding the correct duplicate, also consider also
4978 the caller in additon to its inlined_to node.
4979
91bd4114
JG
49802013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
4981
4982 * config/aarch64/aarch64-simd-builtins.def
4983 (dup_lane_scalar): Remove.
4984 * config/aarch64/aarch64-simd.md
4985 (aarch64_simd_dup): Add 'w->w' alternative.
4986 (aarch64_dup_lane<mode>): Allow for VALL.
4987 (aarch64_dup_lane_scalar<mode>): Remove.
4988 (aarch64_dup_lane_<vswap_width_name><mode>): New.
4989 (aarch64_get_lane_signed<mode>): Add w->w altenative.
4990 (aarch64_get_lane_unsigned<mode>): Likewise.
4991 (aarch64_get_lane<mode>): Likewise.
4992 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
4993 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
4994 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
4995 (VCON): Change container of V2SF.
4996 (vswap_width_name): Likewise.
4997 * config/aarch64/arm_neon.h
4998 (__aarch64_vdup_lane_any): New.
4999 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
5000 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
5001 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
5002
d617d2d8
EB
50032013-09-02 Eric Botcazou <ebotcazou@adacore.com>
5004
5005 PR middle-end/56382
5006 * expr.c (emit_move_complex): Do not move complex FP values as parts if
5007 the source or the destination is a single hard register.
5008
63fdb7be
RB
50092013-09-02 Richard Biener <rguenther@suse.de>
5010
5011 PR middle-end/57511
5012 * tree-scalar-evolution.c (instantiate_scev_name): Allow
5013 non-linear SCEVs.
5014
78de2333
RB
50152013-09-02 Richard Biener <rguenther@suse.de>
5016
5017 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
5018 arithmetic to sizetype.
5019
85ff4ec6
BC
50202013-09-02 Bin Cheng <bin.cheng@arm.com>
5021
5022 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
5023 Find auto-increment use both before and after candidate.
5024
576016fe
MP
50252013-09-02 Marek Polacek <polacek@redhat.com>
5026
5027 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
5028
08f835dc
JH
50292013-09-01 Jan Hubicka <jh@suse.cz>
5030
5031 * Makefile.in: Add ipa-profile.o
5032 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
5033 * cgraph.c (struct cgraph_propagate_frequency_data,
5034 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
5035 ipa-profile.c; replace cgraph_ by ipa_ prefix.
5036 * cgraph.h (cgraph_propagate_frequency): Remove.
f43245d1
UB
5037 * ipa-inline-analysis.c: Include ipa-utils.h;
5038 drop duplicated cfgloop.h.
08f835dc
JH
5039 (inline_update_callee_summaries): Update.
5040 * ipa-profile.c: New file.
5041 * ipa-utils.h (ipa_propagate_frequency): Declare.
5042 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
f43245d1 5043 data-streamer.h, value-prof.h.
08f835dc
JH
5044 (symtab_remove_unreachable_nodes): Update profile.
5045 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
5046 account_time_size, cmp_counts, dump_histogram,
5047 ipa_profile_generate_summary, ipa_profile_write_summary,
5048 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
5049 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
f43245d1 5050 Move to ipa-profile.c.
08f835dc 5051
cec8583c
JDA
50522013-09-01 John David Anglin <danglin@gcc.gnu.org>
5053
5054 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
5055
bbc9396b
JH
50562013-09-01 Jan Hubicka <jh@suse.cz>
5057
5058 * common.opt (fdevirtualize-speculatively): New function.
5059 * invoke.texi (fdevirtualize-speculatively): Document.
5060 * ipa-devirt.c: Include ipa-inline.h
5061 (likely_target_p): New function.
5062 (ipa_devirt): New function.
5063 (gate_ipa_devirt): New function.
5064 (pass_data_ipa_devirt): New static var.
5065 (pass_ipa_devirt): Likewise.
5066 (make_pass_ipa_devirt): New function.
5067 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
5068 (common_handle_option): Disable devirtualization when
5069 value range profiling is available.
5070 * passes.def (pass_ipa_devirt): Add.
5071 * timever.def (TV_IPA_DEVIRT): New timevar.
f43245d1 5072 * tree-pass.h (make_pass_ipa_devirt):
bbc9396b 5073
0cea211e
IS
50742013-09-01 Iain Sandoe <iain@codesourcery.com>
5075
5076 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
5077 include sanitize(undefined).
5078
5e351e96
DN
50792013-08-31 Diego Novillo <dnovillo@google.com>
5080
5081 * Makefile.in (TREE_CORE_H): Define.
5082 (TREE_H): Use.
5083 (GTFILES): Add tree-core.h.
5084 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
5085 size the array.
5086 * tree-core.h: New file.
5087 Move all data structures, enum, typedefs, global
5088 declarations and constants from ...
5089 * tree.h: ... here.
5090
63bf9a90
JH
50912013-08-31 Jan Hubicka <jh@suse.cz>
5092
5093 * bulitins.c (expand_builtin): Do not early exit for gcov
5094 instrumented functions.
5095
5c0abd6a
MP
50962013-08-31 Marek Polacek <polacek@redhat.com>
5097
5098 * ubsan.c: Include tm_p.h.
5099
4843f032
JH
51002013-08-31 Jan Hubicka <jh@suse.cz>
5101
8356c89c
JH
5102 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
5103 warning.
5104
4843f032
JH
5105 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
5106 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
5e581212 5107 * tree-cfg.c (verify_gimple_label): ... here.
4843f032
JH
5108 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
5109 (ipa_merge_profiles): New function.
5110 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
5111 (lto_input_function_body): Likewise.
5e581212
JH
5112 * ipa-utils.h (ipa_merge_profiles): Declare.
5113 * lto-streamer.h (lto_input_function_body): Update prototype.
5114 (emit_label_in_global_context_p): Remove.
5115 * lto-symtab.c: Include ipa-utils.h
5116 (lto_cgraph_replace_node): Use ipa_merge_profiles.
4843f032 5117
57292ce9
JH
51182013-08-31 Jan Hubicka <jh@suse.cz>
5119
5120 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
5121
b9cbfeeb
JH
51222013-08-31 Jan Hubicka <jh@suse.cz>
5123
5124 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
5125
41dedebd
UB
51262013-08-31 Uros Bizjak <ubizjak@gmail.com>
5127
5128 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
5129 "cmp" RTX before signed_comparison_operator check to account
5130 for "code" changes.
5131
06d65050
JH
51322013-08-30 Jan Hubicka <jh@suse.cz>
5133
41dedebd 5134 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
06d65050
JH
5135 (detect_type_change_1): Rename to ...
5136 (detect_type_change): ... this one; early return on non-polymorphic
5137 types.
41dedebd 5138 (detect_type_change_ssa): Add comp_type parameter; update
06d65050
JH
5139 use of detect_type_change.
5140 (compute_complex_assign_jump_func): Add param_type parameter;
5141 update use of detect_type_change_ssa.
5142 (compute_complex_ancestor_jump_func): Likewise.
5143 (ipa_get_callee_param_type): New function.
5144 (ipa_compute_jump_functions_for_edge): Compute parameter type;
5145 update calls to the jump function computation functions.
5146
600b5b1d
TJ
51472013-08-30 Teresa Johnson <tejohnson@google.com>
5148 Steven Bosscher <steven@gcc.gnu.org>
5149
5150 * cfgrtl.c (fixup_new_cold_bb): New routine.
5151 (commit_edge_insertions): Invoke fixup_partitions.
5152 (find_partition_fixes): New routine.
5153 (fixup_partitions): Ditto.
5154 (verify_hot_cold_block_grouping): Update comments.
5155 (rtl_verify_edges): Invoke find_partition_fixes.
5156 (rtl_verify_bb_pointers): Update comments.
5157 (rtl_verify_bb_layout): Ditto.
5158 * basic-block.h (probably_never_executed_edge_p): Declare.
5159 (fixup_partitions): Ditto.
5160 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
5161 * bb-reorder.c (sanitize_hot_paths): New function.
5162 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
5163 sanitize_hot_paths.
5164 * predict.c (probably_never_executed_edge_p): New routine.
5165 * cfg.c (check_bb_profile): Add partition insanity warnings.
5166
0a6ea5c9
MI
51672013-08-30 Meador Inge <meadori@codesourcery.com>
5168
5169 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
5170
de5a5fa1
MP
51712013-08-30 Marek Polacek <polacek@redhat.com>
5172
5173 * Makefile.in (ubsan.o): Add.
5174 (c-family/c-ubsan.o): Add.
5175 (builtins.o): Add ubsan.h dependency.
5176 * ubsan.h: New file.
5177 * ubsan.c: New file.
5178 * common.opt: Add -fsanitize=undefined option.
5179 (flag_sanitize): Add variable.
5180 (fsanitize=): Add option. Add Driver.
5181 (fsanitize=thread): Remove option.
5182 (fsanitize=address): Likewise.
5183 (static-libubsan): New option.
5184 * doc/invoke.texi: Document the new flag and -static-libubsan.
5185 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
5186 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
5187 * builtin-attrs.def (ATTR_COLD): Define.
5188 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
5189 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
5190 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
5191 * flag-types.h (sanitize_code): New enum.
5192 * opts.c (common_handle_option): Parse command line arguments
5193 of -fsanitize=. Add -fsanitize=unreachable option.
5194 * varasm.c (get_variable_section): Adjust.
5195 (assemble_noswitch_variable): Likewise.
5196 (assemble_variable): Likewise.
5197 (output_constant_def_contents): Likewise.
5198 (categorize_decl_for_section): Likewise.
5199 (place_block_symbol): Likewise.
5200 (output_object_block): Likewise.
5201 * builtins.def: Likewise.
5202 * toplev.c (compile_file): Likewise.
5203 (process_options): Likewise.
5204 * cppbuiltin.c: Likewise.
5205 * tsan.c (tsan_pass): Likewise.
5206 (tsan_gate): Likewise.
5207 (tsan_gate_O0): Likewise.
5208 * cfgexpand.c (partition_stack_vars): Likewise.
5209 (expand_stack_vars): Likewise.
5210 (defer_stack_allocation): Likewise.
5211 (expand_used_vars): Likewise.
5212 * cfgcleanup.c (old_insns_match_p): Likewise.
5213 * asan.c (asan_finish_file): Likewise.
5214 (asan_instrument): Likewise.
5215 (gate_asan): Likewise.
5216 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
5217 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
5218 (asan_global_struct): Use pointer_sized_int_node instead
5219 calling build_nonstandard_integer_type.
5220 (initialize_sanitizer_builtins): Likewise.
5221 (asan_finish_file): Likewise.
5222 * gcc.c: Document %{%:function(args):X}.
5223 (static_spec_functions): Add sanitize.
5224 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
5225 store funcval != NULL there.
5226 (do_spec_1): Adjust handle_spec_function caller.
5227 (handle_braces): Allow %:function(args) as condition.
5228 (sanitize_spec_function): New function.
5229 (ADD_STATIC_LIBUBSAN_LIBS): Define.
5230 (LIBUBSAN_SPEC): Likewise.
5231 (LIBUBSAN_EARLY_SPEC): Likewise.
5232 (SANITIZER_SPEC): Handle libubsan.
5233 (SANITIZER_EARLY_SPEC): Likewise.
5234 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
5235 instead of fsanitize=address.
5236 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
5237 instead of fsanitize=address*.
5238 * builtins.c: Include ubsan.h.
5239 (fold_builtin_0): Instrument __builtin_unreachable.
5240 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
5241 instead of flag_asan.
5242 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
5243 (pointer_sized_int_node): Define.
41dedebd 5244 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
de5a5fa1 5245
f07f30cf
MS
52462013-08-30 Mike Stump <mikestump@comcast.net>
5247
5248 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
5249 with RE patterns.
5250
8a41354f
JH
52512013-08-29 Jan Hubicka <jh@suse.cz>
5252
5253 * cgraph.c (cgraph_function_body_availability): Handle weakref
5254 correctly.
5255 * passes.def: Remove pass_fixup_cfg.
5256 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
5257 track when we need to remove functions.
5258 (gate_ipa_inline): Execute inlining always; add comment why.
5259 (pass_data_ipa_inline): Remove TODO_remove_functions.
5260 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
5261 do not produce summaries.
5262 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
5263 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
5264 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
5265 constant pool and vtable.
5266
dc8d7a0f
TB
52672013-08-30 Tejas Belagod <tejas.belagod@arm.com>
5268
41dedebd
UB
5269 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
5270 New arm_neon.h's internal macros to specify 64-bit constants.
5271 Avoid using stdint.h's macros.
dc8d7a0f 5272
ac7eacd2
JR
52732013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
5274
5275 * recog.c (verify_changes): Verify that changes[i].old is non-zero
5276 before applying REG_P.
5277
8b29fd4e
JJ
52782013-08-30 Jakub Jelinek <jakub@redhat.com>
5279
5280 PR tree-optimization/58277
5281 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
5282 after seeing too many stmts with vdef in between dombb and current
5283 bb, invalidate everything.
5284
26d75703
RB
52852013-08-30 Richard Biener <rguenther@suse.de>
5286
5287 * fold-const.c (fold_single_bit_test): Fix overflow test.
5288
f7e088e7
EB
52892013-08-30 Eric Botcazou <ebotcazou@adacore.com>
5290
5291 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
5292 and which can live in a register, always retrieve the value on entry.
5293 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
5294 passed by invisible reference specially.
5295 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
5296 (vt_add_function_parameter): Correctly deal with a parameter passed by
5297 invisible reference.
5298
52992013-08-30 Jan Hubicka <jh@suse.cz>
47500756
JH
5300
5301 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
5302
6e8dad05
RB
53032013-08-30 Richard Biener <rguenther@suse.de>
5304
5305 PR tree-optimization/58228
5306 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
5307 allow invariant loads in nested loop vectorization.
5308
062ef2c8
RB
53092013-08-30 Richard Biener <rguenther@suse.de>
5310
5311 PR tree-optimization/58223
5312 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
5313 (has_anti_or_output_dependence): ... this and adjust to also
5314 look for output dependences.
5315 (mark_nodes_having_upstream_mem_writes): Adjust.
5316 (rdg_flag_uses): Likewise.
5317
7a764c60
RB
53182013-08-30 Richard Biener <rguenther@suse.de>
5319
5320 PR tree-optimization/58010
5321 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
5322 assert that we have a loop-closed PHI.
5323
82e9d642
JH
53242013-08-29 Jan Hubicka <jh@suse.cz>
5325
5326 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
5327 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
5328 * lto-section-in.c (lto_free_function_in_decl_state): New function.
5329 (lto_free_function_in_decl_state_for_node): New function.
5330
9cc1fb4b
XDL
53312013-08-29 Xinliang David Li <davidxl@google.com>
5332
41dedebd 5333 * loop-unroll.c (report_unroll_peel): Minor message change.
9cc1fb4b
XDL
5334 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
5335 Emit alignment peeling message with default -fopt-info.
5336 (vect_loop_versioning): Emit loop version info message.
41dedebd 5337 * tree-vectorizer.c (vectorize_loops): Minor message change.
9cc1fb4b
XDL
5338 (execute_vect_slp): Ditto.
5339
440a5082
EB
53402013-08-29 Eric Botcazou <ebotcazou@adacore.com>
5341
5342 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
5343 of the clone from the DECL_NAME of the original function.
5344
3fa3690d
OE
53452013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
5346
5347 * passes.c (register_pass): Add overload.
5348 * tree-pass.h (register_pass): Forward declare it. Add comment.
5349
0170f33c
JH
53502013-08-29 Jan Hubicka <jh@suse.cz>
5351
41dedebd
UB
5352 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
5353 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
5354 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
5355 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
5356 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
5357 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
41dedebd 5358 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
5359 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
5360
103ff0d6
TJ
53612013-08-29 Teresa Johnson <tejohnson@google.com>
5362
5363 * dumpfile.c (dump_loc): Output column number.
5364 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
5365 * doc/invoke.texi: Document optall -fopt-info flag.
5366 * profile.c (read_profile_edge_counts): Use new dump framework.
5367 (compute_branch_probabilities): Ditto.
5368 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
5369 when pass not in any opt group.
5370 * pass_manager.h (pass_manager::get_pass_profile): New method.
5371 * value-prof.c (check_counter): Use new dump framework.
5372 (check_ic_target): Ditto.
5373 * coverage.c (get_coverage_counts): Ditto.
5374 (coverage_init): Setup new dump framework.
5375
301bbc16
RB
53762013-08-29 Richard Biener <rguenther@suse.de>
5377
5378 PR tree-optimization/58246
5379 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
5380 handle the dominance check inside a basic-block.
5381
1b275000
RB
53822013-08-29 Richard Biener <rguenther@suse.de>
5383
5384 PR middle-end/57287
5385 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
5386 of default defs that appear in abnormal PHI nodes.
5387
6b1184ba
RB
53882013-08-29 Richard Biener <rguenther@suse.de>
5389
5390 PR tree-optimization/57685
5391 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
5392 single-use operands to avoid exponential complexity.
5393
1b08b734
DC
53942013-08-28 Dehao Chen <dehao@google.com>
5395
5396 * ipa-inline.c (edge_badness): Fix integer underflow.
5397
48a3fa69
UB
53982013-08-28 Uros Bizjak <ubizjak@gmail.com>
5399
5400 * gtm-builtins.def (_ITM_free): Declare leaf.
5401
215f73e6
JJ
54022013-08-28 Jakub Jelinek <jakub@redhat.com>
5403
5404 PR target/58067
5405 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
5406 (*tls_local_dynamic_base_64_largepic): Likewise.
5407 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
5408 Remove predicate from call operand.
5409 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
5410 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
5411
34554d1a
JL
54122013-08-28 Jeff Law <law@redhat.com>
5413
5414 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
5415 checks for the number of predecessors and successors allowed.
5416 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
5417 which require copying a joiner block if there is a request which
5418 is a subpath that requires no joiner block copying.
5419
c01c111b
JH
54202013-08-28 Jan Hubicka <jh@suse.cz>
5421
5422 * lto-streamer-out.c (DFS_write_tree_body): Drop
5423 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
5424 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
5425 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
5426 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
5427 Do not read DECL_ERROR_ISSUED.
5428 (unpack_ts_decl_with_vis_value_fields): Do not read
5429 DECL_DEFER_OUTPUT.
48a3fa69
UB
5430 (lto_input_ts_binfo_tree_pointers): Do not read
5431 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
c01c111b
JH
5432 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
5433 write DECL_ERROR_ISSUED..
5434 (pack_ts_decl_with_vis_value_fields): Do not write
5435 DECL_DEFER_OUTPUT.
5436 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
48a3fa69 5437 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
c01c111b
JH
5438 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
5439 * tree.h (tree_decl_common): Update comment.
5440 (DECL_ERROR_ISSUED): Remove.
5441
4b128ece
JJ
54422013-08-28 Jakub Jelinek <jakub@redhat.com>
5443
5444 PR middle-end/58257
5445 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
5446
12211b99 54472013-08-28 Jan Hubicka <jh@suse.cz>
9e57846a
JH
5448
5449 * builtins.def (free): Declare leaf.
5450
8dce4dbc
DM
54512013-08-27 David Malcolm <dmalcolm@redhat.com>
5452
5453 * gdbhooks.py: New.
5454 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
5455 * configure: Regenerate.
5456
b8f6e610
MJ
54572013-08-27 Martin Jambor <mjambor@suse.cz>
5458
5459 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
5460 (ipa_ancestor_jf_data): Likewise.
5461 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
5462 (ipa_get_jf_pass_through_type_preserved): New function.
5463 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
5464 (ipa_get_jf_ancestor_type_preserved): New function.
12211b99 5465 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
b8f6e610
MJ
5466 (ipa_get_jf_ancestor_result): Likewise.
5467 (propagate_vals_accross_pass_through): Use
5468 ipa_get_jf_pass_through_result to do all the value mappings.
5469 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
5470 type_preserved flag.
5471 (ipa_set_jf_cst_copy): New function.
5472 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
5473 (ipa_set_jf_arith_pass_through): Likewise.
5474 (ipa_set_ancestor_jf): Likewise.
5475 (compute_complex_assign_jump_func): Set type_preserved instead of
5476 punting.
5477 (ipa_compute_jump_functions_for_edge): Likewise.
5478 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
5479 (update_jump_functions_after_inlining): Update type_preserved.
12211b99 5480 Explicitely create jump functions when combining one with pass_through.
b8f6e610
MJ
5481 (ipa_write_jump_function): Stream the type_preserved flags.
5482 (ipa_read_jump_function): Likewise.
5483
74bf76ed
JJ
54842013-08-27 Jakub Jelinek <jakub@redhat.com>
5485 Aldy Hernandez <aldyh@redhat.com>
5486
5487 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
5488 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
5489 * function.h (struct function): Add has_force_vect_loops and
5490 has_simduid_loops.
12211b99 5491 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
74bf76ed
JJ
5492 * gimple.c (gimple_build_omp_critical): Add KIND argument and
5493 handle it.
5494 * gimple.def: Update CLAUSES comments.
5495 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
5496 (gimple_build_omp_for): Add argument to prototype.
5497 (gimple_omp_for_kind): New.
5498 (gimple_omp_for_set_kind): New.
5499 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
5500 GOVD_DATA_SHARE_CLASS.
5501 (enum omp_region_type): Add ORT_SIMD.
5502 (gimple_add_tmp_var): Handle ORT_SIMD.
5503 (gimplify_var_or_parm_decl): Same.
5504 (is_gimple_stmt): Same.
5505 (omp_firstprivatize_variable): Same.
5506 (omp_add_variable): Only use splay_tree_insert if lookup failed.
5507 (omp_notice_variable): Handle ORT_SIMD.
12211b99 5508 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
74bf76ed
JJ
5509 (omp_check_private): Handle ORT_SIMD.
5510 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
5511 OMP_CLAUSE_SAFELEN.
5512 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
5513 Handle OMP_CLAUSE_LASTPRIVATE.
5514 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
5515 OMP_CLAUSE_SAFELEN.
5516 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
5517 (gimplify_expr): Handle OMP_SIMD.
5518 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
5519 (expand_GOMP_SIMD_VF): New.
5520 (expand_GOMP_SIMD_LAST_LANE): New.
5521 * internal-fn.def (GOMP_SIMD_LANE): New.
5522 (GOMP_SIMD_VF): New.
5523 (GOMP_SIMD_LAST_LANE): New.
5524 * omp-low.c: Include target.h.
5525 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
5526 OMP_CLAUSE_SAFELEN.
5527 (check_omp_nesting_restrictions): Same.
5528 (omp_max_vf): New.
5529 (lower_rec_simd_input_clauses): New.
5530 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
5531 OMP_CLAUSE_LINEAR.
5532 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
5533 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
5534 (expand_omp_build_assign): New.
5535 (expand_omp_for_init_counts): New.
5536 (expand_omp_for_init_vars): New.
5537 (extract_omp_for_update_vars): New.
5538 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
5539 and rewrite accordingly.
5540 (expand_omp_simd): New.
5541 (expand_omp_for): Use expand_omp_simd.
5542 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
5543 (lower_omp_for): Do not lower the body.
5544 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
5545 in their own loops.
5546 * tree-flow.h (find_omp_clause): Remove prototype.
12211b99
UB
5547 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
5548 forcing vectorization of the loop, or if flag_tree_vectorize.
74bf76ed
JJ
5549 (gate_tree_if_conversion): Similarly.
5550 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
5551 gimple_build_omp_for.
5552 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
5553 * tree-parloops (create_parallel_loop): Pass kind argument to
5554 gimple_build_omp_for.
5555 * tree-pretty-print.c (dump_omp_clause): Add cases for
5556 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
5557 OMP_CLAUSE__SIMDUID_.
5558 (dump_generic_node): Handle OMP_SIMD.
5559 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
5560 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
5561 unroll OMP_SIMD loops here.
12211b99 5562 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
74bf76ed 5563 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
12211b99 5564 loop->safelen.
74bf76ed
JJ
5565 (vect_analyze_data_refs): Handle simd loops.
5566 * tree-vect-loop.c (vectorizable_live_operation): Handle
5567 IFN_GOMP_SIMD*.
12211b99 5568 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
74bf76ed
JJ
5569 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
5570 (vectorizable_load): Same.
12211b99 5571 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
74bf76ed
JJ
5572 (struct simduid_to_vf): New.
5573 (simduid_to_vf::hash): New.
5574 (simduid_to-vf::equal): New.
5575 (struct simd_array_to_simduid): New.
5576 (simd_array_to_simduid::hash): New.
5577 (simd_array_to_simduid::equal): New.
5578 (adjust_simduid_builtins): New.
5579 (struct note_simd_array_uses_struct): New.
5580 (note_simd_array_uses_cb): New.
5581 (note_simd_array_uses): New.
5582 (vectorize_loops): Handle simd hints and adjust simd builtins
5583 accordingly.
5584 * tree-vectorizer.h (struct _stmt_vec_info): Add
5585 simd_lane_access_p field.
5586 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
5587 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
5588 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
5589 (omp_clause_code_name): Same.
5590 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
5591 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
5592 * tree.def (OMP_SIMD): New entry.
12211b99
UB
5593 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
5594 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
74bf76ed
JJ
5595 (OMP_CLAUSE_DECL): Adjust range for new clauses.
5596 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
5597 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
5598 (OMP_CLAUSE_LINEAR_STEP): New.
5599 (OMP_CLAUSE_SAFELEN_EXPR): New.
5600 (OMP_CLAUSE__SIMDUID__DECL): New.
5601 (find_omp_clause): New prototype.
5602
d0cf4e84
L
56032013-08-27 H.J. Lu <hongjiu.lu@intel.com>
5604
5605 * config/i386/driver-i386.c (host_detect_local_cpu): Update
5606 Haswell processor detection.
5607
992592ec
CW
56082013-08-27 Christian Widmer <shadow@umbrox.de>
5609
5610 PR target/57927
5611 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
5612 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
5613 AVX2 capable processors.
5614
9116eb22
TB
56152013-08-27 Tejas Belagod <tejas.belagod@arm.com>
5616
5617 * config/aarch64/arm_neon.h: Replace all inline asm implementations
5618 of vget_low_* with implementations in terms of other intrinsics.
5619
1c5abb53
MG
56202013-08-27 Marc Glisse <marc.glisse@inria.fr>
5621
5622 PR middle-end/57219
5623 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
5624 values to -1, 0 and 1.
5625
2e100703
VP
56262013-08-27 Vidya Praveen <vidyapraveen@arm.com>
5627
5628 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
5629 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
5630 (<optab><mode>3_insn): Remove.
5631 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
5632 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5633 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5634 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
5635 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
5636 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
5637 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
5638 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
5639 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
5640 (ror<mode>3_insn): Likewise.
5641 * config/aarch64/predicates.md (aarch64_simd_register): New.
5642
4ded8276
RB
56432013-08-27 Richard Biener <rguenther@suse.de>
5644
5645 PR tree-optimization/57521
5646 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
5647 one edge is non-critical.
5648 (find_phi_replacement_condition): Make sure to use a non-critical
5649 edge. Cleanup and remove old bug workarounds.
5650 (bb_postdominates_preds): Remove.
5651 (if_convertible_loop_p_1): Do not compute post-dominators.
5652 (combine_blocks): Do not free post-dominators.
5653 (main_tree_if_conversion): Likewise.
5654 (pass_data_if_conversion): Add TODO_verify_ssa.
5655
5aa11061
DD
56562013-08-27 DJ Delorie <dj@redhat.com>
5657
5658 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
5659
fd91cfe3
YZ
56602013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
5661
5662 * function.c (assign_parm_find_data_types): Set passed_mode and
5663 nominal_mode to the TYPE_MODE of nominal_type for the built
5664 pointer type in case of the struct-pass-by-reference.
5665
907555ce
JR
56662013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5667
5668 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
5669 (UINT16_TYPE): Change default to "unsigned int".
5670
67518c93
JR
5671 * config/avr/avr.opt (mfract-convert-truncate): New option.
5672 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
5673 is set, round negative fractional integers according to n1169
5674 when converting to integer types.
5675
d6d989fc
JH
56762013-08-26 Jan Hubicka <jh@suse.cz>
5677
5678 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
5679 methods can not be called indirectly when their address is not taken.
5680
2aa3da06
JH
56812013-08-26 Jan Hubicka <jh@suse.cz>
5682
12211b99
UB
5683 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
5684 ctor_for_folding.
2aa3da06 5685
0987ffe7
JH
56862013-08-26 Jan Hubicka <jh@suse.cz>
5687
5688 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
5689 can be unshared.
5690
befe8647
JR
56912013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5692
5693 * reload.c (find_valid_class): Allow classes that do not include
5694 FIRST_PSEUDO_REGISTER - 1.
5695
a21e735e
JH
56962013-08-26 Jan Hubicka <jh@suse.cz>
5697
5698 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
5699 fix edge count/frequency when speculation failed; fix type check
5700 for the direct call.
5701
e067bd43
JH
57022013-08-26 Jan Hubicka <jh@suse.cz>
5703
5704 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
5705
e8aec975
JH
57062013-08-26 Jan Hubicka <jh@suse.cz>
5707
5708 * ipa-inline-transform.c (inline_transform): Be ready for basic block
5709 to be changed by edge redirection.
5710
d0b66480
JH
57112013-08-26 Jan Hubicka <jh@suse.cz>
5712
12211b99
UB
5713 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
5714 formating; add sanity check.
d0b66480
JH
5715 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
5716 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
5717 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
5718 (resolve_noninline_speculation): Update callee keys, too.
5719
0f9aaac7
JH
57202013-08-26 Jan Hubicka <jh@suse.cz>
5721
5722 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
5723 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
5724
4b37444e
JR
57252013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5726
5727 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
5728 into proper place.
5729
5339fc0c
UB
57302013-08-26 Uros Bizjak <ubizjak@gmail.com>
5731
5732 * config/i386/i386.c (ix86_debug_options): Remove prototype.
5733 (x86_64_elf_select_section): Ditto.
5734 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
5735 arguments.
5736 (ix86_pass_by_reference): Ditto.
5339fc0c
UB
5737 (output_set_got): Ditto.
5738 (ix86_unary_operator_ok): Ditto.
5739 (ix86_expand_builtin): Ditto.
5740
d5c3d3ef
JH
57412013-08-23 Jan Hubicka <jh@suse.cz>
5742
5339fc0c 5743 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
d5c3d3ef 5744
5b1e7435
JH
57452013-08-23 Jan Hubicka <jh@suse.cz>
5746
5747 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
5748 (tree_decl_with_vis): Add FINAL field.
5749
ead69dac
JL
57502013-08-23 Jeff Law <law@redhat.com>
5751
5752 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
5753 the debugging dump when the expression is fully redundant.
5754
025311c4
GDR
57552013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
5756
5757 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
5758 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
5759 * pretty-print.c (pp_formatted_text_data): Likewise.
5760 (pp_write_text_to_stream): Likewise.
5761 (pp_write_text_as_dot_label_to_stream): Likewise.
5762 (pp_append_r): Likewise.
5763 (pp_format): Likewise.
5764 (pp_flush): Likewise.
5765 (pp_clear_output_area): Likewise.
5766 (pp_append_text): Likewise.
5767 (pp_formatted_text): Likewise.
5768 (pp_remaining_character_count_for_line): Likewise.
5769 (pp_newline): Likewise.
5770 (pp_character): Likewise.
5771 (output_buffer::~output_buffer): Define.
5772 (pretty_printer::~pretty_printer): Destruct output buffer.
5773 * pretty-print.h (output_buffer::~output_buffer): Declare.
5774 (pretty_printer::~pretty_printer): Declare virtual.
5775
0cadbfaa
MG
57762013-08-24 Marc Glisse <marc.glisse@inria.fr>
5777
5778 PR other/57324
5779 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
5780 HOST_WIDE_INT_M1U): New macros.
5781 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
5782 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
5783 unsigned -1 for lshift.
5784 * cse.c (cse_insn): Likewise.
5785 * double-int.c (rshift_double, lshift_double): Likewise.
5786 * builtins.c (fold_builtin_bitop): Likewise.
5787 * combine.c (force_to_mode): Likewise.
5788 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
5789 * simplify-rtx.c (simplify_const_unary_operation,
5790 simplify_const_binary_operation): Likewise.
5791 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
5792 check_va_list_escapes): Likewise.
5793 * rtlanal.c (nonzero_bits1): Likewise.
5794 * expmed.c (expand_smod_pow2): Likewise.
5795 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
5796
009e5353
JH
57972013-08-23 Jan Hubicka <jh@suse.cz>
5798
5799 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
5800 as having address taken.
5801
c4be6568
JH
58022013-08-23 Jan Hubicka <jh@suse.cz>
5803
64cbf23d
JH
5804 * ipa-utils.h (method_class_type): Declare.
5805 * ipa-devirt.c (method_class_type): Export.
5806
c4be6568
JH
5807 * cgraphunit.c (analyze_functions): Do basic devirtualization;
5808 do not walk base classes of anonymous types.
5809
97aba8e9
KK
58102013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
5811
5812 PR rtl-optimization/58220
5813 PR regression/58221
5814 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
5815 handle SEQUENCE insns properly.
5816
0fc80001
GDR
58172013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
5818
5819 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
5820 definition.
5821 (pp_newline_and_indent): Likewise.
5822 (pp_separate_with): Likewise.
5823 * pretty-print.c (pp_newline_and_flush): Define.
5824 (pp_newline_and_indent): Likewise.
5825 (pp_separate_with): Likewise.
5826
520a5868
JJ
58272013-08-23 Jakub Jelinek <jakub@redhat.com>
5828
5829 PR target/58218
5830 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
5831 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
5832
e500c62a
KY
58332013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
5834
f43245d1
UB
5835 * config/i386/predicates.md (ext_sse_reg_operand): New.
5836 * config/i386/i386.md (*movti_internal): Use
e500c62a
KY
5837 predicate to determine if EVEX is needed.
5838 (*movsi_internal): Ditto.
5839 (*movdf_internal): Ditto.
5840 (*movsf_internal): Ditto.
f43245d1 5841 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
e500c62a 5842
6b00d7dd
JJ
58432013-08-23 Jakub Jelinek <jakub@redhat.com>
5844
5845 PR tree-optimization/58209
5846 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
5847 (find_tail_calls): Give up for pointer result types if m is non-NULL.
5848 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
5849 emit POINTER_PLUS_EXPR.
5850 (create_tailcall_accumulator): For pointer result type accumulate in
5851 sizetype type.
5852
4f2a9f90
PC
58532013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
5854
5855 * configure.ac: Add backslashes missing from the last change.
5856 * configure: Regenerate.
5857
7bf4274e
JH
58582013-08-22 Jan Hubicka <jh@susue.cz>
5859
4f2a9f90
PC
5860 * ipa.c (function_and_variable_visibility): First remember function
5861 was global and then make it local.
7bf4274e 5862
1bea243d
JB
58632013-08-22 Julian Brown <julian@codesourcery.com>
5864
5865 * configure.ac: Add aarch64 to list of arches which use "nop" in
5866 debug_line test.
5867 * configure: Regenerate.
5868
bcba7ecc
AK
58692013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5870
5871 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
5872 gnu_libc_has_function.
5873 * config/s390/tpf.h: Likewise.
5874
4c495b0d
JH
58752013-08-22 Jan Hubicka <jh@susue.cz>
5876
5877 * timevar.c (validate_phases): Add cast.
5878
5e302bca
JH
58792013-08-22 Jan Hubicka <jh@susue.cz>
5880
5881 * timevar.c (validate_phases): Use size_t for memory.
5882 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
5883
da6ca2b5
GDR
58842013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5885
5886 * pretty-print.h (output_buffer::output_buffer): Declare.
5887 (pretty_printer::pretty_printer): Likewise.
5888 (pp_construct): Remove.
5889 * pretty-print.c (output_buffer::output_buffer): Define.
5890 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
5891 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
5892 (print_gimple_expr): Likewise.
5893 (print_gimple_seq): Likewise.
5894 (gimple_dump_bb): Likewise.
5895 * sched-vis.c (dump_value_slim): Likewise.
5896 (dump_insn_slim): Likewise.
5897 (dump_rtl_slim): Likewise.
5898 (str_pattern_slim): Likewise.
5899 * tree-mudflap.c (mf_varname_tree): Likewise.
5900 * graph.c (print_graph_cfg): Likewise.
5901 (start_graph_dump): Likewise.
5902 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
5903 placement-new.
5904 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
5905 pretty printer initialization.
5906 * coretypes.h (diagnostic_context): Remove superflous type alias
5907 declaration.
5908 (pretty_printer): Likewise. Declare directly as a class.
5909 (pretty_print_info): Remove declaration as class.
5910 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
5911 and pp_clear_output_area.
5912 (asan_add_global): Likewise.
5913
0e1474e5
JH
59142013-08-22 Jan Hubicka <jh@suse.cz>
5915
5916 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
5917 * ipa-utils.h (update_type_inheritance_graph): Declare.
5918 (possible_polymorphic_call_target_p): Declare.
5919 (possible_polymorphic_call_target_p): New.
5920 * ipa-devirt.c: Update toplevel comments.
5921 (cached_polymorphic_call_targets): Move up.
5922 (odr_type_d): Move ID down.
5923 (polymorphic_type_binfo_p): Update comment.
5924 (odr_hasher::remove): Likewise;
5925 (get_odr_type): Set anonymous_namespace.
5926 (dump_odr_type): Dump it.
5927 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
5928 (maybe_record_node): Record node in cached_polymorphic_call_targets.
5929 (record_binfo): Add comment.
5339fc0c
UB
5930 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
5931 built.
0e1474e5
JH
5932 (devirt_node_removal_hook): Do not iCE when cache is freed.
5933 (possible_polymorphic_call_target_p): New predicate.
5934 (update_type_inheritance_graph): New function.
5935
3f97cb0b
AI
59362013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5937 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5938 Sergey Lega <sergey.s.lega@intel.com>
5939 Anna Tikhonova <anna.tikhonova@intel.com>
5940 Ilya Tocar <ilya.tocar@intel.com>
5941 Andrey Turetskiy <andrey.turetskiy@intel.com>
5942 Ilya Verbin <ilya.verbin@intel.com>
5943 Kirill Yukhin <kirill.yukhin@intel.com>
5944 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5945
5946 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
5947 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
5948 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
5949 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
5950 (OPTION_MASK_ISA_AVX2_UNSET): Update.
5951 (OPTION_MASK_ISA_AVX512F_UNSET): New.
5952 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
5953 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
5954 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
5955 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
5956 OPT_mavx512pf, OPT_mavx512er cases.
5957 * config/i386/constraints.md (v): New constraint.
5958 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
5959 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
5960 (bit_AVX512CD): New.
5961 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5962 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
5963 * config/i386/i386-c.c (ix86_target_macros_internal):
5964 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
5965 __AVX512PF__.
5966 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
5967 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
5968 * config/i386/i386.c (regclass_map, dbx_register_map)
5969 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
5970 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
5971 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
5972 -mavx512pf options.
5973 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
5974 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
5975 -mavx512pf options. Fix formatting.
5976 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
5977 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
5978 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
5979 -mavx512cd, -mavx512pf options.
5980 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
5981 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
5982 (ix86_preferred_output_reload_class): Replace SSE_REGS with
5983 ALL_SSE_REGS.
5984 (ix86_hard_regno_mode_ok): Support 512-bit registers.
5985 (ix86_set_reg_reg_cost): Ditto.
5986 (x86_order_regs_for_local_alloc): Ditto.
5987 (MAX_VECT_LEN): Extend to 64-byte.
5988 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
5989 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
5990 (TARGET_AVX512ER, TARGET_AVX512CD): New.
5991 (BIGGEST_ALIGNMENT): Extend to 512-bits.
5992 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
5993 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
5994 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
5995 (SSE_REG_MODE_P): Support new modes.
5996 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
5997 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
5998 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
5999 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
6000 (REG_CLASS_CONTENTS): Add new registers.
6001 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
6002 (EXT_REX_SSE_REGNO_P): New.
6003 (HI_REGISTER_NAMES): Add new registers.
6004 * config/i386/i386.md: Define constants for new registers.
6005 (mode): Add new 512-bit modes.
6006 (prefix): Support evex prefix.
6007 (isa): Support avx512f, noavx512f, fma_avx512f.
6008 (ssemodesuffix): Add new 512-bit modes.
6009 (movxi): New.
6010 (*movxi_internal_avx512f): Ditto.
6011 (*movdi_internal): Replace constraint "x" with the new constraint "v".
6012 Support MODE_XI.
6013 (*movsi_internal): Likewise.
6014 (*movdf_internal): Likewise.
6015 (*movsf_internal): Likewise.
6016 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
6017 (<code><mode>3): Likewise.
5339fc0c
UB
6018 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
6019 New.
3f97cb0b
AI
6020 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
6021 with the new constraint "v".
6022 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
6023 modes.
6024 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
6025 with the new constraint "v".
6026 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
6027 (<sse2>_storedqu<avxsizesuffix>): Likewise.
6028 (*<plusminus_insn><mode>3): Likewise.
6029 (<sse>_vm<plusminus_insn><mode>3): Likewise.
6030 (*mul<mode>3): Likewise.
6031 (<sse>_vmmul<mode>3): Likewise.
6032 (<sse>_div<mode>3): Likewise.
6033 (<sse>_vmdiv<mode>3): Likewise.
6034 (<sse>_sqrt<mode>2): Likewise.
6035 (<sse>_vmsqrt<mode>2): Likewise.
6036 (*<code><mode>3_finite): Likewise.
6037 (*<code><mode>3) <smaxmin>: Likewise.
6038 (<sse>_vm<code><mode>3): Likewise.
6039 (*<code><mode>3) <any_logic>: Likewise.
6040 (*fma_fmadd_<mode>): Likewise.
6041 (*fma_fmsub_<mode>): Likewise.
6042 (*fma_fnmadd_<mode>): Likewise.
6043 (*fma_fnmsub_<mode>): Likewise.
6044 (*fma_fmaddsub_<mode>): Likewise.
6045 (*fma_fmsubadd_<mode>): Likewise.
6046 (*fmai_fmadd_<mode>): Likewise.
6047 (*fmai_fmsub_<mode>): Likewise.
6048 (*fmai_fnmadd_<mode>): Likewise.
6049 (*fmai_fnmsub_<mode>): Likewise.
6050 (sse_cvtsi2ss): Likewise.
6051 (sse_cvtsi2ssq): Likewise.
6052 (sse_cvtss2si): Likewise.
6053 (sse_cvtss2si_2): Likewise.
6054 (sse_cvtss2siq): Likewise.
6055 (sse_cvtss2siq_2): Likewise.
6056 (sse_cvttss2si): Likewise.
6057 (sse_cvtss2siq_2): Likewise.
6058 (float<sseintvecmodelower><mode>2): Likewise.
6059 (sse2_cvtsd2si_2): Likewise.
6060 (sse2_cvtsd2siq_2): Likewise.
6061 (*<plusminus_insn><mode>3): Likewise.
6062 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
6063 (*<sse4_1_avx2>_mul<mode>3): Likewise.
6064 (ashr<mode>3): Likewise.
6065 (<shift_insn><mode>3): Likewise.
6066 (avx2_<code><mode>3): Likewise.
6067 (*avx2_<code><mode>3): Likewise.
6068 (*andnot<mode>3): Likewise.
6069 (*<code><mode>3) <any_logic>: Likewise.
6070 (abs<mode>2): Likewise.
6071 (avx2_permvar<mode>): Likewise.
6072 (avx2_perm<mode>_1): Likewise.
6073 (*avx_vpermilp<mode>): Likewise.
6074 (avx_vpermilvar<mode>3): Likewise.
6075 (avx2_ashrv<mode>): Likewise.
6076 (avx2_<shift_insn>v<mode>): Likewise.
6077 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
6078 -mavx512cd.
6079 * doc/rtl.texi: Document XImode.
6080
dd5e8423
JL
60812013-08-21 Jeff Law <law@redhat.com>
6082
b9ebee5d
JL
6083 * tree-flow.h (register_jump_thread): Pass vector of edges
6084 instead of each important edge.
6085 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
6086 thread path into a vector and pass that to register_jump_thread.
6087 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
6088 passed in edge vector to the current 3-edge form.
6089
dd5e8423
JL
6090 Revert:
6091 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
6092
9bb6628e 6093 * dce.c (fini_dce): Call df_analyze again just in case
dd5e8423
JL
6094 delete_unmarked_insns removed anything.
6095
445dc8df
JR
60962013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
6097
6098 * reload.h (struct reg_equivs): Rename to ..
6099 (struct reg_equivs_s): .. this.
6100
e0df53dd
ML
61012013-08-20 Martin Liska <marxin.liska@gmail.com>
6102
6103 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
6104
e7d1d3eb
RO
61052013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6106
5339fc0c 6107 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
e7d1d3eb 6108
5562e26e
JL
61092013-08-21 Jeff Law <law@redhat.com>
6110
6111 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
6112 simplify assignments too. If the RHS collapses to a singleton
6113 range, then return the value for the range.
6114
c7ecdec6
KY
61152013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
6116
7a5911d3
UB
6117 * config/i386/sse.md (V16): Rename to...
6118 (VMOVE): this.
6119 (mov<mode>): Update iterator name.
6120 (*mov<mode>_internal): Ditto.
6121 (push<mode>1): Ditto.
6122 (movmisalign<mode>): Ditto.
c7ecdec6 6123
bfa3b50a
JH
61242013-08-20 Jan Hubicka <jh@suse.cz>
6125
6126 PR bootstrap/58186
6127 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
6128 entry for direct edges.
6129 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
6130
6cd4d135
DM
61312013-08-20 David Malcolm <dmalcolm@redhat.com>
6132
6133 Revert my last two changes, r201865 and r201864:
6134
6135 Revert r201865:
6136 2013-08-20 David Malcolm <dmalcolm@redhat.com>
6137
6138 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
6139 instances can own GC refs.
6140
6141 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
6142 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
6143 (gcc::context::gt_pch_nx): Likewise.
6144 (gcc::context::gt_pch_nx): Likewise.
6145 * ggc.h (gt_ggc_mx <T>): New.
6146 (gt_pch_nx_with_op <T>): New.
6147 (gt_pch_nx <T>): New.
6148 * passes.c (opt_pass::gt_ggc_mx): New.
6149 (opt_pass::gt_pch_nx): New.
6150 (opt_pass::gt_pch_nx_with_op): New.
6151 (pass_manager::gt_ggc_mx): New.
6152 (pass_manager::gt_pch_nx): New.
6153 (pass_manager::gt_pch_nx_with_op): New.
6154 (pass_manager::operator new): Use
6155 ggc_internal_cleared_alloc_stat rather than xcalloc.
6156 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
6157 (pass_manager::gt_ggc_mx): New.
6158 (pass_manager::gt_pch_nx): New.
6159 (pass_manager::gt_pch_nx_with_op): New.
6160 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
6161 (opt_pass::operator new): New.
6162 (opt_pass::gt_ggc_mx): New.
6163 (opt_pass::gt_pch_nx): New.
6164 (opt_pass::gt_pch_nx_with_op): New.
6165
6166 Revert r201864:
6167 2013-08-20 David Malcolm <dmalcolm@redhat.com>
6168
6169 * Makefile.in (GTFILES): Add context.h.
6170 * context.c (gcc::context::operator new): New.
6171 (gcc::context::gt_ggc_mx): New.
6172 (gcc::context::gt_pch_nx): New.
6173 (gcc::context::gt_pch_nx): New.
6174 * context.h (gcc::context): Add GTY((user)) marking.
6175 (gcc::context::operator new): New.
6176 (gcc::context::gt_ggc_mx): New.
6177 (gcc::context::gt_pch_nx): New.
6178 (gcc::context::gt_pch_nx): New.
6179 (g): Add GTY marking.
6180 (gt_ggc_mx (gcc::context *)): New.
6181 (gt_pch_nx (gcc::context *)): New.
6182 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
6183 void *cookie)): New.
6184 * gengtype.c (open_base_files) <ifiles>: Add context.h.
6185
a046136a
AM
61862013-08-20 Alexey Makhalov <makhaloff@gmail.com>
6187
6188 * dce.c (fini_dce): Call df_analyze again just in case
6189 delete_unmarked_insns removed anything.
6190
67598720
TJ
61912013-08-20 Teresa Johnson <tejohnson@google.com>
6192
6193 PR rtl-optimizations/57451
6194 * final.c (reemit_insn_block_notes): Prevent lexical blocks
6195 from crossing split section boundaries.
6196
f8693faf
MGD
61972013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
6198
6199 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
6200 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
6201 with MULTLIB_DEFAULTS.
6202
7d0b9a9c
NC
62032013-08-20 Nick Clifton <nickc@redhat.com>
6204
6205 * target.def (narrow_volatile_bitfield): Note that the default
6206 value is false, not !TARGET_STRICT_ALIGN.
6207 * doc/tm.texi: Regenerate.
6208
8edb8dc8
PC
62092013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
6210
6211 Fix LIB_SPEC for systems without libpthread.
6212
6213 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
6214 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
6215 for Android.
6216 * config/i386/linux-common.h: Likewise.
6217 * config/mips/linux-common.h: Likewise.
6218
12211b99 62192013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
d71ff3fa
ZZ
6220
6221 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
6222 checks.
6223
e42c64cb
DM
62242013-08-20 David Malcolm <dmalcolm@redhat.com>
6225
6226 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
6227 instances can own GC refs.
6228
6229 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
6230 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
6231 (gcc::context::gt_pch_nx): Likewise.
6232 (gcc::context::gt_pch_nx): Likewise.
6233 * ggc.h (gt_ggc_mx <T>): New.
6234 (gt_pch_nx_with_op <T>): New.
6235 (gt_pch_nx <T>): New.
6236 * passes.c (opt_pass::gt_ggc_mx): New.
6237 (opt_pass::gt_pch_nx): New.
6238 (opt_pass::gt_pch_nx_with_op): New.
6239 (pass_manager::gt_ggc_mx): New.
6240 (pass_manager::gt_pch_nx): New.
6241 (pass_manager::gt_pch_nx_with_op): New.
6242 (pass_manager::operator new): Use
6243 ggc_internal_cleared_alloc_stat rather than xcalloc.
6244 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
6245 (pass_manager::gt_ggc_mx): New.
6246 (pass_manager::gt_pch_nx): New.
6247 (pass_manager::gt_pch_nx_with_op): New.
6248 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
6249 (opt_pass::operator new): New.
6250 (opt_pass::gt_ggc_mx): New.
6251 (opt_pass::gt_pch_nx): New.
6252 (opt_pass::gt_pch_nx_with_op): New.
6253
910c02a0
DM
62542013-08-20 David Malcolm <dmalcolm@redhat.com>
6255
6256 * Makefile.in (GTFILES): Add context.h.
6257 * context.c (gcc::context::operator new): New.
6258 (gcc::context::gt_ggc_mx): New.
6259 (gcc::context::gt_pch_nx): New.
6260 (gcc::context::gt_pch_nx): New.
6261 * context.h (gcc::context): Add GTY((user)) marking.
6262 (gcc::context::operator new): New.
6263 (gcc::context::gt_ggc_mx): New.
6264 (gcc::context::gt_pch_nx): New.
6265 (gcc::context::gt_pch_nx): New.
6266 (g): Add GTY marking.
6267 (gt_ggc_mx (gcc::context *)): New.
6268 (gt_pch_nx (gcc::context *)): New.
6269 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
6270 void *cookie)): New.
6271 * gengtype.c (open_base_files) <ifiles>: Add context.h.
6272
af4b4236
AM
62732013-08-20 Alan Modra <amodra@gmail.com>
6274
6275 PR target/57865
6276 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
6277 (rs6000_emit_epilogue): Likewise.
6278
12211b99 62792013-08-19 Dehao Chen <dehao@google.com>
0d633222
DC
6280
6281 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
6282
e2323f5b
PB
62832013-08-19 Peter Bergner <bergner@vnet.ibm.com>
6284 Jakub Jelinek <jakub@redhat.com>
6285
6286 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
6287 (BUILT_IN_FABSD64): Likewise.
6288 (BUILT_IN_FABSD128): Likewise.
6289 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
6290 (fold_builtin_1): Likewise.
5339fc0c
UB
6291 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
6292 destination and source operands.
e2323f5b
PB
6293 (*abstd2_fpr): Likewise.
6294 (*nabstd2_fpr): Likewise.
6295
cfbf3ee8
RS
62962013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
6297
6298 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
6299 JUMP_P and INSN_P.
6300
d3136aeb
AH
63012013-08-19 Aldy Hernandez <aldyh@redhat.com>
6302
6303 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
6304 incomplete.
6305
d33d9e47
AI
63062013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
6307
6308 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
6309 * builtins.c (default_libc_has_function): New.
6310 (gnu_libc_has_function): Ditto.
6311 (no_c99_libc_has_function): Ditto.
6312 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
6313 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
6314 (fold_builtin_sincos): Likewise.
6315 (fold_builtin_cexp): Likewise.
6316 * builtins.def (DEF_C94_BUILTIN): Likewise.
6317 (DEF_C99_BUILTIN): Likewise.
6318 (DEF_C99_C90RES_BUILTIN): Likewise.
6319 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
6320 definitions to using this define.
6321 * config/darwin-protos.h (darwin_libc_has_function): New.
5339fc0c 6322 * config/darwin.c (darwin_libc_has_function): Ditto.
d33d9e47
AI
6323 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
6324 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
6325 * config/darwin.h: Ditto.
6326 * config/elfos.h: Ditto.
6327 * config/freebsd.h: Ditto.
6328 * config/i386/cygming.h: Ditto.
6329 * config/i386/djgpp.h: Ditto.
6330 * config/i386/i386-interix.h: Ditto.
6331 * config/microblaze/microblaze.h: Ditto.
6332 * config/mmix/mmix.h: Ditto.
6333 * config/gnu-user.h: Ditto.
6334 * config/ia64/hpux.h: Ditto.
6335 * config/pa/pa-hpux.h: Ditto.
6336 * config/pdp11/pdp11.h: Ditto.
6337 * config/picochip/picochip.h: Ditto.
6338 * config/linux.h: Ditto.
6339 * config/netbsd.h: Ditto.
6340 * config/openbsd.h: Ditto.
6341 * config/rs6000/aix43.h: Ditto.
6342 * config/rs6000/aix51.h: Ditto.
6343 * config/rs6000/aix52.h: Ditto.
6344 * config/rs6000/aix53.h: Ditto.
6345 * config/rs6000/aix61.h: Ditto.
6346 * config/rs6000/darwin.h: Ditto.
6347 * config/rs6000/linux.h: Ditto.
6348 * config/rs6000/linux64.h: Ditto.
6349 * config/s390/tpf.h: Ditto.
6350 * config/sol2-10.h: Ditto.
6351 * config/sol2.h: Ditto.
6352 * config/vms/vms.h: Ditto.
6353 * config/vxworks.h: Ditto.
6354 * config/linux-android.c (linux_android_libc_has_function):
6355 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
6356 * config/linux-protos.h (linux_android_libc_has_function):
6357 New declaration.
6358 * config/i386/i386.c (ix86_libc_has_function): New.
6359 * config/i386/i386-protos.h
6360 (ix86_libc_has_function): New declaration.
6361 * config/i386/i386.md
6362 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
6363 ("isinf<mode>2): Likewise.
6364 * convert.c (convert_to_integer): Using new target hook
6365 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
6366 TARGET_C99_FUNCTIONS.
6367 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
6368 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
6369 * coretypes.h (function_class): New enum for different
6370 classes of functions.
6371 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
6372 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
6373 (TARGET_HAS_SINCOS): Likewise.
6374 (TARGET_LIBC_HAS_FUNCTION): New.
6375 * doc/tm.texi: Regenerated.
6376 * targhooks.h (default_libc_has_function): New declaration.
6377 (no_c99_libc_has_function): Ditto.
6378 (gnu_libc_has_function): Ditto.
6379 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
6380 and TARGET_HAS_SINCOS.
6381
eefe9a99
JH
63822013-08-18 Jan Hubicka <jh@suse.cz>
6383
6384 * Makeifle-in (ipa-devirt.o): New.
6385 (GTFILES): Add ipa-utils.h and ipa-devirt.c
6386 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
6387 (analyze_functions): Look into possible targets of polymorphic call.
6388 * dumpfile.c (dump_files): Add type-inheritance dump.
6389 * dumpfile.h (TDI_inheritance): New.
6390 * ipa-devirt.c: New file.
6391 * ipa-utils.h (odr_type_d): Forward declare.
6392 (odr_type): New type.
6393 (build_type_inheritance_graph): Declare.
6394 (possible_polymorphic_call_targets): Declare and introduce inline
6395 variant when only edge is pased.
6396 (dump_possible_polymorphic_call_targets): Likewise.
6397 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
6398 * tree.c (type_in_anonymous_namespace_p): Break out from ...
6399 (types_same_for_odr): ... here.
6400 * tree.h (type_in_anonymous_namespace_p): Declare.
6401
29b89442
JJ
64022013-08-18 Jakub Jelinek <jakub@redhat.com>
6403
6404 PR tree-optimization/58006
6405 * tree-parloops.c (take_address_of): Don't ICE if get_name
6406 returns NULL.
6407 (eliminate_local_variables_stmt): Remove clobber stmts.
6408
4f219961
EB
64092013-08-18 Eric Botcazou <ebotcazou@adacore.com>
6410
6411 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
6412 error message is issued for an alias to undefined symbol.
6413
1d5755ef
JH
64142013-08-18 Jan Hubicka <jh@suse.cz>
6415
6416 * cgraph.c (cgraph_create_indirect_edge): Discover
6417 polymorphic calls and record basic info into indirect_info.
6418 * gimple-fold.c (gimple_fold_call): When doing BINFO based
6419 devirtualization, ignore objc function calls.
6420 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
6421 call with no parm index info.
6422 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
6423 * tree.c (virtual_method_call_p): New function.
6424 * tree.h (virtual_method_call_p): Declare.
6425
5945bebf
JH
64262013-08-16 Jan Hubicka <jh@suse.cz>
6427
6428 PR middle-end/58179
6429 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
6430
47fa5d23
DE
64312013-08-16 David Edelsohn <dje.gcc@gmail.com>
6432
6433 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
6434 attribute.
6435
c74f54a0
DM
64362013-08-16 David Malcolm <dmalcolm@redhat.com>
6437
6438 * gengtype.c (type_for_name): Add special-case support for
6439 locating types within the "gcc::" namespace.
6440 (open_base_files): Emit a "using namespace gcc" directive.
6441
f758f299
MM
64422013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
6443
6444 PR target/58160
6445 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
6446 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
6447
6448 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
6449 array instead of each individual operand as a separate argument.
6450 (emit_fusion_gpr_load): Likewise.
6451 (expand_fusion_gpr_load): Add new function declaration.
6452
6453 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
6454 signature to have the operands passed as an array, instead of as
6455 separate arguments. Allow ZERO_EXTEND to be in the memory
6456 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
6457 depend on the register live/dead flags when peepholes are run.
6458 (expand_fusion_gpr_load): New function to be called from the
6459 peephole2 pass, to change the register that addis sets to be the
6460 target register.
6461 (emit_fusion_gpr_load): Change the calling signature to have the
6462 operands passed as an array, instead of as separate arguments.
6463 Allow ZERO_EXTEND to be in the memory address, and also
6464 SIGN_EXTEND if -mpower8-fusion-sign.
6465
6466 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
6467 unspec enumeration.
6468 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
6469 adjust the register addis loads up in the peephole2 pass. Do not
5339fc0c 6470 depend on the register live/dead state when the peephole pass is done.
f758f299 6471
158f4e4f
DM
64722013-08-16 David Malcolm <dmalcolm@redhat.com>
6473
6474 * gengtype.c (create_user_defined_type): Ensure that the kind
6475 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
6476 declaration is seen before the GTY((user)) marking.
6477
22f8cea5
BE
64782013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
6479
6480 PR target/58105
6481 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
6482
c49bdb2e
JH
64832013-08-16 Jan Hubicka <jh@suse.cz>
6484
6485 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
6486 arugment expected_type.
6487 (gimple_fold_call): Use it.
6488 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
6489 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
22f8cea5 6490 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
c49bdb2e
JH
6491 (try_make_edge_direct_virtual_call): Likewise.
6492 * tree.c (obj_type_ref_class): New.
6493 * tree.h (obj_type_ref_class): Use it.
6494
4042dca9
GDR
64952013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
6496
6497 * sched-vis.c (rtl_slim_pp_initialized): Remove.
6498 (rtl_slim_pp): Likewise.
6499 (init_rtl_slim_pretty_print): Likewise.
6500 (dump_value_slim): Don't call it. Use local pretty printer.
6501 (dump_insn_slim): Likewise.
6502 (dump_rtl_slim): Likewise.
6503 (str_pattern_slim): Likewise.
6504 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
6505 Simplify.
6506
7a460594
JJ
65072013-08-16 Jakub Jelinek <jakub@redhat.com>
6508
639dc669
JJ
6509 PR tree-optimization/58164
6510 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
6511 walk gimple_goto_dest of GIMPLE_GOTO.
6512
7a460594
JJ
6513 PR tree-optimization/58165
6514 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
6515 bi_call must be the last stmt in a bb, don't split_block, instead
6516 use fallthru edge from it and give up if there is none.
6517 Release conds vector when returning early.
6518
e3c02cc7
XDL
65192013-08-14 Xinliang David Li <davidxl@google.com>
6520
6521 * config/i386/i386.c (ix86_option_override_internal):
6522 Remove unused variable and field.
6523
6469da2c
BS
65242013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6525
6526 PR target/57949
22f8cea5 6527 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
6469da2c
BS
6528 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
6529 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
6530 and Linux, correct BLKmode alignment when 128-bit alignment is
6531 required and compatibility flag is not set.
22f8cea5
BE
6532 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
6533 for zero-size arguments when compatibility flag is not set.
6469da2c 6534
4ca890e2
JJ
65352013-08-14 Jakub Jelinek <jakub@redhat.com>
6536
6537 PR tree-optimization/58145
6538 * tree-sra.c (build_ref_for_offset): If prev_base has
6539 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
6540
daec1759 65412013-08-14 Xinliang David Li <davidxl@google.com>
4ca890e2 6542
daec1759 6543 * config/i386/i386.c (ix86_option_override_internal):
e3c02cc7 6544 Fix uninitialized variable error.
daec1759 6545
3ad20bd4
XDL
65462013-08-14 Xinliang David Li <davidxl@google.com>
6547
6548 * config/i386/i386.opt: Define two new options.
6549 * config/i386/x86-tune.def: Add arch selector field in macros.
6550 * config/i386/i386.h: Adjust macro definition.
6551 * config/i386/i386.c (ix86_option_override_internal):
6552 Refactor the code.
6553 (parse_mtune_ctrl_str): New function.
6554 (set_ix86_tune_features): New function.
6555 (ix86_function_specific_restore): Call the new helper function.
6556
e839e2a9
AB
65572013-08-14 Andrey Belevantsev <abel@ispras.ru>
6558
6559 PR rtl-optimization/57662
6560 * sel-sched.c (code_motion_process_successors): When the current insn
6561 is removed after the recursive traversal, break from the loop.
6562 Add comments and debug printouts.
6563
27ed665f
JJ
65642013-08-14 Jakub Jelinek <jakub@redhat.com>
6565 Alexandre Oliva <aoliva@redhat.com>
6566
6567 PR target/58067
6568 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
6569 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
6570 there also UNSPEC_PLTOFF.
6571
61c1a609
MP
65722013-08-14 Marek Polacek <polacek@redhat.com>
6573
6574 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
6575 NUM_CONDITIONS bit positions.
6576
0e901c67
CC
65772013-08-13 Cary Coutant <ccoutant@google.com>
6578
6579 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
6580 (attr_checksum): Hash vector contents instead of pointer.
6581 (attr_checksum_ordered): Likewise.
6582
061eff6d
UB
65832013-08-13 Uros Bizjak <ubizjak@gmail.com>
6584
6585 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
6586 when Pmode != word_mode. Add length_address attribute.
6587 (sse3_monitor_<mode>): Merge from sse3_monitor and
6588 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
6589 Pmode != word_mode. Update insn length attribute.
6590 * config/i386/i386.c (ix86_option_override_internal): Update
6591 ix86_gen_monitor selection for merged sse3_monitor insn.
6592
8ec9249b
JB
65932013-08-13 Julian Brown <julian@codesourcery.com>
6594
6595 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6596 perform invalid legitimization on greater-than-word-size modes for
6597 TARGET_E500_DOUBLE.
6598
761a8eb7
VM
65992013-08-13 Vladimir Makarov <vmakarov@redhat.com>
6600
6601 * ira.c (setup_class_translate_array): Use aclass instead of cl
6602 for classes not fully covered by allocno classes.
6603
99c2bd54
JJ
66042013-08-13 Jakub Jelinek <jakub@redhat.com>
6605
4029a5e0
JJ
6606 PR tree-optimization/57661
6607 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
6608 * tree-inline.c (tree_function_versioning): Initialize it.
6609 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
6610 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
6611 that is not being copied.
6612
99c2bd54
JJ
6613 PR sanitizer/56417
6614 * asan.c (instrument_strlen_call): Fix typo in comment.
6615 Use char * type even for the lhs of POINTER_PLUS_EXPR.
6616
b5f8f063
SE
66172013-08-13 Steve Ellcey <sellcey@mips.com>
6618
6619 * config/mips/mips.md (prefetch): Use lw instead of ld on
6620 loongson in 32bit mode.
6621
4de80584
NC
66222013-08-13 Nick Clifton <nickc@redhat.com>
6623
6624 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
6625
09ce3660
JH
66262013-08-13 Jan Hubicka <jh@suse.cz>
6627
6628 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
6629 introduced edge; fix typo in sanity check.
6630 (cgraph_resolve_speculation): Export; improve diagnostic.
6631 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
6632 speculation at type mismatch.
6633 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
6634 (cgraph_resolve_speculation): Declare.
6635 (symtab_can_be_discarded): New function.
6636 * value-prof.c (gimple_ic_transform): Remove actual transform code.
6637 * ipa-inline-transform.c (speculation_removed): New global var.
6638 (clone_inlined_nodes): See if speculation can be removed.
6639 (inline_call): If speculations was removed, we growths may not match.
6640 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
6641 (speculation_useful_p): New function.
6642 (resolve_noninline_speculation): New function.
6643 (inline_small_functions): Resolve useless speculations.
6644 * ipa-inline.h (speculation_useful_p): Declare
6645 * ipa.c (can_replace_by_local_alias): Simplify.
6646 (ipa_profile): Produce speculative calls in non-lto, too;
6647 add simple cost model; produce local aliases.
6648
f971dc24
DM
66492013-08-13 David Malcolm <dmalcolm@redhat.com>
6650
6651 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
061eff6d 6652 PASS_MANAGER_H.
f971dc24 6653
2e507b9a
PC
66542013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
6655
6656 * config/i386/i386.c (ix86_function_versions): Use error + inform.
6657
c97fd4b8
UB
66582013-08-12 Uros Bizjak <ubizjak@gmail.com>
6659
6660 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
6661 iterator instead of X87MODEF.
6662
66632013-08-12 Perez Read <netfirewall@gmail.com>
6664
6665 PR target/58132
6666 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
6667 operand 0 for intel asm alternative.
6668 (*movabs<mode>_2): Ditto for operand 1.
6669
f4f4204c
JG
66702013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
6671
6672 * config/aarch64/arm_none.h
6673 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
6674
133b1a8e
NC
66752013-08-12 Nick Clifton <nickc@redhat.com>
6676
6677 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
6678
15dd8b3a
YR
66792013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
6680
6681 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
6682 expand for QI/HImode operand to produce more effictive code for
6683 unsigned char(short) --> float(double) conversion.
6684
94109a6a
AM
66852013-08-12 Alexander Monakov <amonakov@ispras.ru>
6686
6687 * doc/invoke.texi: Mention that -ftls-model does not force the final
6688 model.
6689
4e115102
MP
66902013-08-12 Marek Polacek <polacek@redhat.com>
6691 Marc Glisse <marc.glisse@inria.fr>
6692
6693 PR tree-optimization/57980
6694 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
6695 when creating -1 constant.
6696
748d71f3
JH
66972013-08-10 Jan Hubicka <jh@suse.cz>
6698
1f97e193 6699 Workaround binutils PR14342.
748d71f3
JH
6700 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
6701 (gimple_init_edge_profiler): Likewise.
6702 (gimple_gen_ic_func_profiler): Likewise.
6703
5979aa54
JH
67042013-08-09 Jan Hubicka <jh@suse.cz>
6705
6706 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
6707
ad83025e
XDL
67082013-08-09 Xinliang David Li <davidxl@google.com>
6709
6710 * config/i386/stringop.def: New file.
6711 * config/i386/stringop.opt: New file.
6712 * config/i386/i386-opts.h: Include stringopt.def.
6713 * config/i386/i386.opt: Include stringopt.opt.
6714 * config/i386/i386.c (ix86_option_override_internal):
c97fd4b8 6715 Override default size based stringop inline strategies with options.
ad83025e
XDL
6716 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
6717 New function.
6718
e59df5fd
JH
67192013-08-09 Jan Hubicka <jh@suse.cz>
6720
c97fd4b8 6721 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
e59df5fd 6722
634ab819
JH
67232013-08-09 Jan Hubicka <jh@suse.cz>
6724
6725 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
6726 CGRAPH_FREQ_MAX.
6727 (dump_cgraph_node): Dump profile-id.
6728 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
6729 and common_target_probability.
6730 * lto-cgraph.c (lto_output_edge): Stream common targets.
6731 (lto_output_node): Stream profile ids.
6732 (input_node): Stream profile ids.
6733 (input_edge): Stream common targets.
6734 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
6735 * ipa.c: Include value-prof.h
6736 (ipa_profile_generate_summary): Turn indirect call statement histograms
6737 into common targets.
6738 (ipa_profile): Turn common targets into speculative edges.
6739
2fa3d31b
JH
67402013-08-09 Jan Hubicka <jh@suse.cz>
6741
6742 * cgraph.h (cgraph_node): Add profile_id.
6743 * value-prof.c (cgraph_node_map): Turn into pointer_map.
c97fd4b8 6744 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
2fa3d31b
JH
6745 (del_node_map): Update.
6746 (find_func_by_funcdef_no): Replace by ...
6747 (find_func_by_profile_id): ... this one.
6748 (gimple_ic_transform): Do not remove useful histograms when
6749 speculation is not done; dump info when indirect call removal
6750 can happen at LTO.
6751 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
6752 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
6753 (__gcov_indirect_call_profiler_v2): .. this one.
6754 * profile.h (init_node_map): Update.
6755 * coverage.c (coverage_compute_profile_id): New function.
6756 * coverage.h (coverage_compute_profile_id): Declare.
6757 * tree-profile.c (init_ic_make_global_vars): Make
6758 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
6759 (gimple_init_edge_profiler): Update prototype of
6760 __gcov_indirect_call_profiler.
6761 (gimple_gen_ic_func_profiler): Simplify.
6762 (tree_profiling): Use init_node_map
6763
042ae7d2
JH
67642013-08-09 Jan Hubicka <jh@suse.cz>
6765
c97fd4b8
UB
6766 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
6767 non-speculative refs.
042ae7d2
JH
6768 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
6769 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
6770 (cgraph_set_call_stmt): Likewise.
6771 (cgraph_create_edge_1): Fix release checking compilatoin;
6772 clear lto_stmt_uid.
6773 (cgraph_free_edge): Free indirect info.
6774 (cgraph_turn_edge_to_speculative): New function.
6775 (cgraph_speculative_call_info): New function.
6776 (cgraph_make_edge_direct): Return direct edge; handle speculation.
c97fd4b8 6777 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
042ae7d2
JH
6778 (dump_cgraph_node): Dump speculation.
6779 (verify_edge_count_and_frequency): Accept speculative edges.
6780 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
6781 (verify_cgraph_node): Handle speculation.
6782 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
6783 (cgraph_set_call_stmt): Update prototype.
6784 (cgraph_make_edge_direct): Update prototype.
6785 (cgraph_speculative_call_info): Declare.
6786 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
6787 to change; update call of ipa_find_references.
6788 * ipa-ref.c (ipa_record_reference): Fix return value; clear
6789 lto_stmt_uid and speculative flags.
6790 (ipa_dump_references): Dump speculation.
6791 (ipa_clone_references): Clone speculative flag.
6792 (ipa_clone_referring): Likewise.
6793 (ipa_clone_ref): New function.
6794 (ipa_find_reference): Look into lto_stmt_uids
6795 (ipa_clear_stmts_in_references): Do not clear speculative calls.
6796 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
6797 (ipa_find_reference): Update declaration.
6798 (ipa_clone_ref): Declare.
6799 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
6800 stream speculative flag.
6801 (lto_output_ref): Stream statements uids and speculation.
6802 (input_ref): Likewise.
6803 (input_edge): Stream speuclation.
6804 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
6805 (cgraph_set_call_stmt_including_clones): Handle speculation.
6806 * ipa-inline.c (heap_edge_removal_hook): New function.
6807 (inline_small_functions): Register it.
6808 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
6809 also initialize refs.
6810 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
6811 edge to change.
6812 (try_make_edge_direct_simple_call): Likewise.
6813 (try_make_edge_direct_simple_call): Likewise.
6814 (update_indirect_edges_after_inlining): Likewise.
6815 (remove_described_reference): Look proper lto_stmt_uid.
6816 (propagate_controlled_uses): Likewise.
6817 (propagate_controlled_uses): Liekwise.
6818 * tree-inline.c (copy_bb): Copy speculative edges.
6819 (redirect_all_calls): New function.
c97fd4b8
UB
6820 (copy_cfg_body): Do redirection after loop info is updated.
6821 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
042ae7d2 6822
aa1e10cc
JH
68232013-08-09 Jan Hubicka <jh@suse.cz>
6824
6825 * lto-streamer-out.c (output_function): Renumber PHIs.
6826 * lto-streamer-in.c (input_function): Likewise.
6827
66adb8eb
JG
68282013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
6829
6830 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
6831 (get_lane_unsigned): Likewise.
6832 (dup_lane_scalar): Likewise.
6833 (get_lane): enable for VALL.
6834 * config/aarch64/aarch64-simd.md
6835 (aarch64_dup_lane_scalar<mode>): Remove.
6836 (aarch64_get_lane_signed<mode>): Likewise.
6837 (aarch64_get_lane_unsigned<mode>): Likewise.
6838 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
6839 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
6840 (aarch64_get_lane<mode>): Enable for all vector modes.
6841 (aarch64_get_lanedi): Remove misleading constraints.
6842 * config/aarch64/arm_neon.h
6843 (__aarch64_vget_lane_any): Define.
6844 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
6845 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
6846 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
6847 * config/aarch64/iterators.md (VDQQH): New.
6848 (VDQQHS): Likewise.
6849 (vwcore): Likewise.
6850
1f65ae7a
EB
68512013-08-09 Eric Botcazou <ebotcazou@adacore.com>
6852
6853 * configure.ac: Add GAS check for LEON instructions on SPARC.
6854 * configure: Regenerate.
6855 * config.in: Likewise.
6856 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
6857 sparc*-*-* block.
6858 * config/sparc/sparc.opt (LEON, LEON3): New masks.
6859 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
6860 for LEON or LEON3.
6861 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
6862 (AS_LEON_FLAG): New macro.
6863 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
6864 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
6865 Deal with LEON and LEON3 for the memory model.
23a6cb78 6866 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
1f65ae7a
EB
6867 (atomic_compare_and_swap<mode>_1): Likewise.
6868 (*atomic_compare_and_swap<mode>_1): Likewise.
6869
ff522f7f
ZC
68702013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6871
6872 * config/arm/neon.md (vcond): Fix floating-point vector
6873 comparisons against 0.
6874
cb1cca12
VM
68752013-08-08 Vladimir Makarov <vmakarov@redhat.com>
6876
6877 * lra-constraints.c (emit_spill_move): Remove assert.
6878 (process_alt_operands): Add more debugging
6879 output. Increase reject for spilling into memory. Decrease
6880 reject for reloading scratch.
6881 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
6882
a3719e31
SE
68832013-08-08 Steve Ellcey <sellcey@mips.com>
6884
6885 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
6886 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
6887 micromips incompatible. Add nan2008.
6888 (MULTILIB_DIRNAMES): Add nan2008.
6889 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
6890 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
6891 and micromips incompatible. Add nan2008.
6892 (MULTILIB_DIRNAMES): Add nan2008.
6893 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
6894
f40423e2
RS
68952013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
6896
6897 PR rtl-optimization/58079
6898 * combine.c (combine_simplify_rtx): Avoid using SUBST if
6899 simplify_comparison has widened a comparison with an integer.
6900
869b9125
KT
69012013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6902
6903 * config/arm/neon.md (movmisalign<mode>): Disable when we
6904 don't allow unaligned accesses.
6905 (*movmisalign<mode>_neon_store): Likewise.
6906 (*movmisalign<mode>_neon_load): Likewise.
6907 (*movmisalign<mode>_neon_store): Likewise.
6908 (*movmisalign<mode>_neon_load): Likewise.
6909
71cafea9
JH
69102013-08-08 Jan Hubicka <jh@suse.cz>
6911
6912 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
6913 (make_pass_rebuild_cgraph_edges): Also clear references.
6914 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
6915 * ipa-inline-transform.c (inline_transform): Remove all references
6916 after inlining.
c97fd4b8
UB
6917 * cgraphunit.c (expand_function): Remove all references after
6918 expansion.
71cafea9
JH
6919 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
6920 (ipa_find_reference): Rewrite to iterator.
6921 (remove_stmt_references): Likewise.
6922 (ipa_clear_stmts_in_references): New function.
6923 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
03b0ee0a
UB
6924 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
6925 clear references.
71cafea9
JH
6926 * ipa-split.c (split_function): Remove references in split function.
6927
27d2e612
RE
69282013-08-08 Richard Earnshaw <rearnsha@arm.com>
6929
6930 PR target/57431
1f65ae7a 6931 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
27d2e612
RE
6932 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
6933
5efc661c
RE
69342013-08-08 Richard Earnshaw <rearnsha@arm.com>
6935
6936 PR target/56979
1f65ae7a 6937 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
5efc661c
RE
6938 suggested mode for the assignment isn't compatible with the
6939 registers required.
6940
f276d31d
BE
69412013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
6942
6943 PR target/58065
6944 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
6945
4b8bc035
XDL
69462013-08-07 Xinliang David Li <davidxl@google.com>
6947
6948 * config/i386/i386.opt: New option -mtune-ctrl=.
6949 * config/i386/x86-tune.def: New file.
6950 * config/i386/i386.h: include x86-tune.def.
6951 * config/i386/i386.c (ix86_option_override_internal):
6952 Parsing -mtune-ctrl= option and set tune features.
6953
12211b99 69542013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
a5b38740
OE
6955
6956 PR other/12081
03b0ee0a 6957 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
a5b38740
OE
6958 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
6959 to gen_2arg_fn_t.
6960
5cf6635b
EB
69612013-08-07 Eric Botcazou <ebotcazou@adacore.com>
6962
6963 * rtl.h (update_alignments): Declare.
6964 * final.c (grow_label_align): New function extracted from...
6965 (shorten_branches): ...here. Call it.
6966 (update_alignments): New function.
6967 * reorg.c (sibling_labels): New variable.
6968 (get_label_before): Add SIBLING parameter. If it is non-zero, push
6969 the new label along with it onto the sibling_labels vector.
6970 (fill_simple_delay_slots): Adjust call to get_label_before.
6971 (fill_slots_from_thread): Likewise.
6972 (relax_delay_slots): Likewise.
6973 (make_return_insns): Likewise.
6974 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
6975
3c8ca1ab
EB
69762013-08-07 Eric Botcazou <ebotcazou@adacore.com>
6977
6978 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
6979 document its semantics.
6980 (diagnostic_report_diagnostic): Adjust accordingly.
6981
5ee5b32c
DM
69822013-08-07 David Malcolm <dmalcolm@redhat.com>
6983
03b0ee0a 6984 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
5ee5b32c
DM
6985 (sparc_option_override): ...and port to new C++ pass API.
6986 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
6987
abd566fa
PB
69882013-08-07 Peter Bergner <bergner@vnet.ibm.com>
6989
6990 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
6991
2077db1b
CT
69922013-08-06 Caroline Tice <cmtice@google.com>
6993
6994 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
6995 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
6996 * tree-pass.h: Add pass_vtable_verify.
6997 * varasm.c (assemble_variable): Add code to properly set the comdat
6998 section and name for the .vtable_map_vars section.
6999 (assemble_vtyv_preinit_initializer): New function.
7000 (default_sectin_type_flags): Make sure .vtable_map_vars section has
7001 LINK_ONCE flag.
7002 * output.h: Add function decl for assemble_vtv_preinit_initializer.
7003 * vtable-verify.c: New file.
7004 * vtable-verify.h: New file.
7005 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
7006 initialiation levels.
7007 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
7008 * passes.def: Insert pass_vtable_verify.
7009 * aclocal.m4: Reorder includes.
7010 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
7011 -fvtv-counts options.
7012 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
7013 as appropriate, if -fvtable-verify=... is used.
7014 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
7015 -fvtable-verify=... is used.
7016 * Makefile.in (OBJS): Add vtable-verify.o to list.
7017 (vtable-verify.o): Add new build rule.
7018 (GTFILES): Add vtable-verify.c to list.
7019 * common.opt (fvtable-verify=): New flag.
7020 (vtv_priority): Values for fvtable-verify= flag.
7021 (fvtv-counts): New flag.
7022 (fvtv-debug): New flag.
7023 * tree.h (save_vtable_map_decl): New extern function decl.
7024
03085d1c
DM
70252013-08-07 David Malcolm <dmalcolm@redhat.com>
7026
7027 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
7028 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
7029 (pass_data_rl78_devirt): ...new pass_data instance and...
7030 (make_pass_rl78_devirt): ...new function.
7031 (rl78_asm_file_start): Port pass registration to new C++ API.
7032
05555c4a
DM
70332013-08-07 David Malcolm <dmalcolm@redhat.com>
7034
7035 * coretypes.h (rtl_opt_pass): Add.
7036 (gcc::context): Add.
7037 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
7038 (epiphany_init): Port to new C++ pass API.
7039 (epiphany_optimize_mode_switching): Likewise.
7040 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
7041 (pass_manager::get_pass_mode_switching): New.
7042 (pass_manager::get_pass_peephole2): New.
7043 * mode-switching.c (pass_mode_switching): Add clone method.
7044 * recog.c (pass_peephole2): Add clone method.
7045 (pass_split_all_insns): Add clone method.
7046
c5a12e26
DM
70472013-08-06 David Malcolm <dmalcolm@redhat.com>
7048
03b0ee0a
UB
7049 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
7050 (mips_option_override): ...here, porting to new C++ API for passes.
c5a12e26 7051
a2e2a668
JH
70522013-08-06 Jan Hubicka <jh@suse.cz>
7053
7054 * cgraph.c (cgraph_get_body): New function based on lto.c
7055 implementation.
7056 * cgraph.h (cgraph_get_body): Declare.
03b0ee0a
UB
7057 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
7058 LTO paths.
a2e2a668
JH
7059 * cgraphunit.c (expand_function): Get body prior expanding.
7060 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
03b0ee0a
UB
7061 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
7062 really need.
a2e2a668
JH
7063 * passes.c (do_per_function_toporder): Get body.
7064 * tree-inline.c (expand_call_inline): Get body prior inlining it.
7065 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
7066
15682f24
MJ
70672013-08-06 Martin Jambor <mjambor@suse.cz>
7068
7069 PR fortran/57987
7070 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
7071 is not re-finalized. Rename second parameter to no_collect.
7072
78f6dd68
MJ
70732013-08-06 Martin Jambor <mjambor@suse.cz>
7074
7075 PR middle-end/58041
7076 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
7077 MEM_REF has proper alignment information.
7078
12211b99 70792013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
eb923e54
OE
7080
7081 PR other/12081
7082 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
7083 class insn_gen_fn.
7084 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
7085 rtx (*) (rtx, ...) with insn_gen_fn.
7086 * genoutput.c (output_insn_data): Cast gen_? function pointers to
7087 insn_gen_fn::stored_funcptr. Add initializer braces.
7088
8ac69a6c
DM
70892013-08-05 David Malcolm <dmalcolm@redhat.com>
7090
7091 Rewrite how instances of passes are cloned to remove assumptions
7092 about their sizes (thus allowing pass subclasses to have
7093 additional data fields, albeit non-GC-managed ones at this point).
7094
7095 * passes.c (make_pass_instance): Now that passes have clone
7096 methods, rewrite this function to eliminate XNEW and memcpy
7097 calls that used hardcoded sizes. Since this function no longer
7098 creates pass instances, rename it to...
03b0ee0a
UB
7099 (add_pass_instance): ...this. Document the old way that passes were
7100 numbered and flagged, and rework this function to continue using it.
8ac69a6c
DM
7101 (next_pass_1): Add an initial_pass argument for use by
7102 add_pass_instance.
7103 (position_pass): When adding multiple instances of a pass, use
7104 the pass's clone method, rather than relying on the XNEW/memcpy
7105 within the former make_pass_instance (now add_pass_instance).
03b0ee0a
UB
7106 (pass_manager::pass_manager): When invoking next_pass_1, also supply
7107 the initial instance of the current pass within the pass manager.
8ac69a6c 7108
27a4cd48
DM
71092013-08-05 David Malcolm <dmalcolm@redhat.com>
7110
7111 This is the automated part of the conversion of passes from C
7112 structs to C++ classes.
7113
7114 Patch autogenerated by refactor_passes.py from
7115 https://github.com/davidmalcolm/gcc-refactoring-scripts
7116 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
7117
7118 * asan.c (pass_asan): Convert from a global struct to a subclass of
7119 gimple_opt_pass along with...
7120 (pass_data_asan): ...new pass_data instance and...
7121 (make_pass_asan): ...new function.
7122 (pass_asan_O0): Convert from a global struct to a subclass of
7123 gimple_opt_pass along with...
7124 (pass_data_asan_O0): ...new pass_data instance and...
7125 (make_pass_asan_O0): ...new function.
7126 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
7127 subclass of rtl_opt_pass along with...
7128 (pass_data_inc_dec): ...new pass_data instance and...
7129 (make_pass_inc_dec): ...new function.
7130 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
7131 a subclass of rtl_opt_pass along with...
7132 (pass_data_reorder_blocks): ...new pass_data instance and...
7133 (make_pass_reorder_blocks): ...new function.
7134 (pass_duplicate_computed_gotos): Convert from a global struct to a
7135 subclass of rtl_opt_pass along with...
7136 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
7137 (make_pass_duplicate_computed_gotos): ...new function.
7138 (pass_partition_blocks): Convert from a global struct to a subclass of
7139 rtl_opt_pass along with...
7140 (pass_data_partition_blocks): ...new pass_data instance and...
7141 (make_pass_partition_blocks): ...new function.
7142 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
7143 struct to a subclass of rtl_opt_pass along with...
7144 (pass_data_branch_target_load_optimize1): ...new pass_data instance
7145 and...
7146 (make_pass_branch_target_load_optimize1): ...new function.
7147 (pass_branch_target_load_optimize2): Convert from a global struct to a
7148 subclass of rtl_opt_pass along with...
7149 (pass_data_branch_target_load_optimize2): ...new pass_data instance
7150 and...
7151 (make_pass_branch_target_load_optimize2): ...new function.
7152 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
7153 of rtl_opt_pass along with...
7154 (pass_data_jump): ...new pass_data instance and...
7155 (make_pass_jump): ...new function.
7156 (pass_jump2): Convert from a global struct to a subclass of
7157 rtl_opt_pass along with...
7158 (pass_data_jump2): ...new pass_data instance and...
7159 (make_pass_jump2): ...new function.
7160 * cfgexpand.c (pass_expand): Convert from a global struct to a
7161 subclass of rtl_opt_pass along with...
7162 (pass_data_expand): ...new pass_data instance and...
7163 (make_pass_expand): ...new function.
7164 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
7165 of rtl_opt_pass along with...
7166 (pass_data_free_cfg): ...new pass_data instance and...
7167 (make_pass_free_cfg): ...new function.
7168 (pass_into_cfg_layout_mode): Convert from a global struct to a
7169 subclass of rtl_opt_pass along with...
7170 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
7171 (make_pass_into_cfg_layout_mode): ...new function.
7172 (pass_outof_cfg_layout_mode): Convert from a global struct to a
7173 subclass of rtl_opt_pass along with...
7174 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
7175 (make_pass_outof_cfg_layout_mode): ...new function.
7176 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
7177 struct to a subclass of gimple_opt_pass along with...
7178 (pass_data_build_cgraph_edges): ...new pass_data instance and...
7179 (make_pass_build_cgraph_edges): ...new function.
7180 (pass_rebuild_cgraph_edges): Convert from a global struct to a
7181 subclass of gimple_opt_pass along with...
7182 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
7183 (make_pass_rebuild_cgraph_edges): ...new function.
7184 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
7185 subclass of gimple_opt_pass along with...
7186 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
7187 and...
7188 (make_pass_remove_cgraph_callee_edges): ...new function.
7189 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
7190 struct to a subclass of rtl_opt_pass along with...
7191 (pass_data_stack_adjustments): ...new pass_data instance and...
7192 (make_pass_stack_adjustments): ...new function.
7193 * combine.c (pass_combine): Convert from a global struct to a subclass
7194 of rtl_opt_pass along with...
7195 (pass_data_combine): ...new pass_data instance and...
7196 (make_pass_combine): ...new function.
7197 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
7198 global struct to a subclass of rtl_opt_pass along with...
7199 (pass_data_compare_elim_after_reload): ...new pass_data instance
7200 and...
7201 (make_pass_compare_elim_after_reload): ...new function.
7202 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
7203 of rtl_opt_pass along with...
7204 (pass_data_rtl_cprop): ...new pass_data instance and...
7205 (make_pass_rtl_cprop): ...new function.
7206 * cse.c (pass_cse): Convert from a global struct to a subclass of
7207 rtl_opt_pass along with...
7208 (pass_data_cse): ...new pass_data instance and...
7209 (make_pass_cse): ...new function.
7210 (pass_cse2): Convert from a global struct to a subclass of
7211 rtl_opt_pass along with...
7212 (pass_data_cse2): ...new pass_data instance and...
7213 (make_pass_cse2): ...new function.
7214 (pass_cse_after_global_opts): Convert from a global struct to a
7215 subclass of rtl_opt_pass along with...
7216 (pass_data_cse_after_global_opts): ...new pass_data instance and...
7217 (make_pass_cse_after_global_opts): ...new function.
7218 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
7219 of rtl_opt_pass along with...
7220 (pass_data_ud_rtl_dce): ...new pass_data instance and...
7221 (make_pass_ud_rtl_dce): ...new function.
7222 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
7223 rtl_opt_pass along with...
7224 (pass_data_fast_rtl_dce): ...new pass_data instance and...
7225 (make_pass_fast_rtl_dce): ...new function.
7226 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
7227 a subclass of rtl_opt_pass along with...
7228 (pass_data_df_initialize_opt): ...new pass_data instance and...
7229 (make_pass_df_initialize_opt): ...new function.
7230 (pass_df_initialize_no_opt): Convert from a global struct to a
7231 subclass of rtl_opt_pass along with...
7232 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
7233 (make_pass_df_initialize_no_opt): ...new function.
7234 (pass_df_finish): Convert from a global struct to a subclass of
7235 rtl_opt_pass along with...
7236 (pass_data_df_finish): ...new pass_data instance and...
7237 (make_pass_df_finish): ...new function.
7238 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
7239 rtl_opt_pass along with...
7240 (pass_data_rtl_dse1): ...new pass_data instance and...
7241 (make_pass_rtl_dse1): ...new function.
7242 (pass_rtl_dse2): Convert from a global struct to a subclass of
7243 rtl_opt_pass along with...
7244 (pass_data_rtl_dse2): ...new pass_data instance and...
7245 (make_pass_rtl_dse2): ...new function.
7246 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
7247 subclass of rtl_opt_pass along with...
7248 (pass_data_dwarf2_frame): ...new pass_data instance and...
7249 (make_pass_dwarf2_frame): ...new function.
7250 * except.c (pass_set_nothrow_function_flags): Convert from a global
7251 struct to a subclass of rtl_opt_pass along with...
7252 (pass_data_set_nothrow_function_flags): ...new pass_data instance
7253 and...
7254 (make_pass_set_nothrow_function_flags): ...new function.
7255 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
7256 subclass of rtl_opt_pass along with...
7257 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
7258 and...
7259 (make_pass_convert_to_eh_region_ranges): ...new function.
7260 * final.c (pass_compute_alignments): Convert from a global struct to a
7261 subclass of rtl_opt_pass along with...
7262 (pass_data_compute_alignments): ...new pass_data instance and...
7263 (make_pass_compute_alignments): ...new function.
7264 (pass_final): Convert from a global struct to a subclass of
7265 rtl_opt_pass along with...
7266 (pass_data_final): ...new pass_data instance and...
7267 (make_pass_final): ...new function.
7268 (pass_shorten_branches): Convert from a global struct to a subclass of
7269 rtl_opt_pass along with...
7270 (pass_data_shorten_branches): ...new pass_data instance and...
7271 (make_pass_shorten_branches): ...new function.
7272 (pass_clean_state): Convert from a global struct to a subclass of
7273 rtl_opt_pass along with...
7274 (pass_data_clean_state): ...new pass_data instance and...
7275 (make_pass_clean_state): ...new function.
7276 * function.c (pass_instantiate_virtual_regs): Convert from a global
7277 struct to a subclass of rtl_opt_pass along with...
7278 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
7279 (make_pass_instantiate_virtual_regs): ...new function.
7280 (pass_leaf_regs): Convert from a global struct to a subclass of
7281 rtl_opt_pass along with...
7282 (pass_data_leaf_regs): ...new pass_data instance and...
7283 (make_pass_leaf_regs): ...new function.
7284 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
7285 subclass of rtl_opt_pass along with...
7286 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
7287 and...
7288 (make_pass_thread_prologue_and_epilogue): ...new function.
7289 (pass_match_asm_constraints): Convert from a global struct to a
7290 subclass of rtl_opt_pass along with...
7291 (pass_data_match_asm_constraints): ...new pass_data instance and...
7292 (make_pass_match_asm_constraints): ...new function.
7293 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
7294 subclass of rtl_opt_pass along with...
7295 (pass_data_rtl_fwprop): ...new pass_data instance and...
7296 (make_pass_rtl_fwprop): ...new function.
7297 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
7298 rtl_opt_pass along with...
7299 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
7300 (make_pass_rtl_fwprop_addr): ...new function.
7301 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
7302 rtl_opt_pass along with...
7303 (pass_data_rtl_pre): ...new pass_data instance and...
7304 (make_pass_rtl_pre): ...new function.
7305 (pass_rtl_hoist): Convert from a global struct to a subclass of
7306 rtl_opt_pass along with...
7307 (pass_data_rtl_hoist): ...new pass_data instance and...
7308 (make_pass_rtl_hoist): ...new function.
7309 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
7310 subclass of gimple_opt_pass along with...
7311 (pass_data_lower_cf): ...new pass_data instance and...
7312 (make_pass_lower_cf): ...new function.
7313 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
7314 from a global struct to a subclass of gimple_opt_pass along with...
7315 (pass_data_strength_reduction): ...new pass_data instance and...
7316 (make_pass_strength_reduction): ...new function.
7317 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
7318 of rtl_opt_pass along with...
7319 (pass_data_rtl_ifcvt): ...new pass_data instance and...
7320 (make_pass_rtl_ifcvt): ...new function.
7321 (pass_if_after_combine): Convert from a global struct to a subclass of
7322 rtl_opt_pass along with...
7323 (pass_data_if_after_combine): ...new pass_data instance and...
7324 (make_pass_if_after_combine): ...new function.
7325 (pass_if_after_reload): Convert from a global struct to a subclass of
7326 rtl_opt_pass along with...
7327 (pass_data_if_after_reload): ...new pass_data instance and...
7328 (make_pass_if_after_reload): ...new function.
7329 * init-regs.c (pass_initialize_regs): Convert from a global struct to
7330 a subclass of rtl_opt_pass along with...
7331 (pass_data_initialize_regs): ...new pass_data instance and...
7332 (make_pass_initialize_regs): ...new function.
7333 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
7334 of ipa_opt_pass_d along with...
7335 (pass_data_ipa_cp): ...new pass_data instance and...
7336 (make_pass_ipa_cp): ...new function.
7337 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
7338 global struct to a subclass of gimple_opt_pass along with...
7339 (pass_data_inline_parameters): ...new pass_data instance and...
7340 (make_pass_inline_parameters): ...new function.
7341 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
7342 subclass of gimple_opt_pass along with...
7343 (pass_data_early_inline): ...new pass_data instance and...
7344 (make_pass_early_inline): ...new function.
7345 (pass_ipa_inline): Convert from a global struct to a subclass of
7346 ipa_opt_pass_d along with...
7347 (pass_data_ipa_inline): ...new pass_data instance and...
7348 (make_pass_ipa_inline): ...new function.
7349 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
7350 struct to a subclass of gimple_opt_pass along with...
7351 (pass_data_local_pure_const): ...new pass_data instance and...
7352 (make_pass_local_pure_const): ...new function.
7353 (pass_ipa_pure_const): Convert from a global struct to a subclass of
7354 ipa_opt_pass_d along with...
7355 (pass_data_ipa_pure_const): ...new pass_data instance and...
7356 (make_pass_ipa_pure_const): ...new function.
7357 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
7358 to a subclass of ipa_opt_pass_d along with...
7359 (pass_data_ipa_reference): ...new pass_data instance and...
7360 (make_pass_ipa_reference): ...new function.
7361 * ipa-split.c (pass_split_functions): Convert from a global struct to
7362 a subclass of gimple_opt_pass along with...
7363 (pass_data_split_functions): ...new pass_data instance and...
7364 (make_pass_split_functions): ...new function.
7365 (pass_feedback_split_functions): Convert from a global struct to a
7366 subclass of gimple_opt_pass along with...
7367 (pass_data_feedback_split_functions): ...new pass_data instance and...
7368 (make_pass_feedback_split_functions): ...new function.
7369 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
7370 global struct to a subclass of simple_ipa_opt_pass along with...
7371 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
7372 instance and...
7373 (make_pass_ipa_function_and_variable_visibility): ...new function.
7374 (pass_ipa_free_inline_summary): Convert from a global struct to a
7375 subclass of simple_ipa_opt_pass along with...
7376 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
7377 (make_pass_ipa_free_inline_summary): ...new function.
7378 (pass_ipa_whole_program_visibility): Convert from a global struct to a
7379 subclass of ipa_opt_pass_d along with...
7380 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
7381 and...
7382 (make_pass_ipa_whole_program_visibility): ...new function.
7383 (pass_ipa_profile): Convert from a global struct to a subclass of
7384 ipa_opt_pass_d along with...
7385 (pass_data_ipa_profile): ...new pass_data instance and...
7386 (make_pass_ipa_profile): ...new function.
7387 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
7388 ipa_opt_pass_d along with...
7389 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
7390 (make_pass_ipa_cdtor_merge): ...new function.
7391 * ira.c (pass_ira): Convert from a global struct to a subclass of
7392 rtl_opt_pass along with...
7393 (pass_data_ira): ...new pass_data instance and...
7394 (make_pass_ira): ...new function.
7395 (pass_reload): Convert from a global struct to a subclass of
7396 rtl_opt_pass along with...
7397 (pass_data_reload): ...new pass_data instance and...
7398 (make_pass_reload): ...new function.
7399 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
7400 subclass of rtl_opt_pass along with...
7401 (pass_data_cleanup_barriers): ...new pass_data instance and...
7402 (make_pass_cleanup_barriers): ...new function.
7403 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
7404 of rtl_opt_pass along with...
7405 (pass_data_loop2): ...new pass_data instance and...
7406 (make_pass_loop2): ...new function.
7407 (pass_rtl_loop_init): Convert from a global struct to a subclass of
7408 rtl_opt_pass along with...
7409 (pass_data_rtl_loop_init): ...new pass_data instance and...
7410 (make_pass_rtl_loop_init): ...new function.
7411 (pass_rtl_loop_done): Convert from a global struct to a subclass of
7412 rtl_opt_pass along with...
7413 (pass_data_rtl_loop_done): ...new pass_data instance and...
7414 (make_pass_rtl_loop_done): ...new function.
7415 (pass_rtl_move_loop_invariants): Convert from a global struct to a
7416 subclass of rtl_opt_pass along with...
7417 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
7418 (make_pass_rtl_move_loop_invariants): ...new function.
7419 (pass_rtl_unswitch): Convert from a global struct to a subclass of
7420 rtl_opt_pass along with...
7421 (pass_data_rtl_unswitch): ...new pass_data instance and...
7422 (make_pass_rtl_unswitch): ...new function.
7423 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
7424 subclass of rtl_opt_pass along with...
7425 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
7426 and...
7427 (make_pass_rtl_unroll_and_peel_loops): ...new function.
7428 (pass_rtl_doloop): Convert from a global struct to a subclass of
7429 rtl_opt_pass along with...
7430 (pass_data_rtl_doloop): ...new pass_data instance and...
7431 (make_pass_rtl_doloop): ...new function.
7432 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
7433 a subclass of rtl_opt_pass along with...
7434 (pass_data_lower_subreg): ...new pass_data instance and...
7435 (make_pass_lower_subreg): ...new function.
7436 (pass_lower_subreg2): Convert from a global struct to a subclass of
7437 rtl_opt_pass along with...
7438 (pass_data_lower_subreg2): ...new pass_data instance and...
7439 (make_pass_lower_subreg2): ...new function.
7440 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
7441 struct to a subclass of ipa_opt_pass_d along with...
7442 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
7443 (make_pass_ipa_lto_gimple_out): ...new function.
7444 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
7445 of ipa_opt_pass_d along with...
7446 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
7447 (make_pass_ipa_lto_finish_out): ...new function.
7448 * mode-switching.c (pass_mode_switching): Convert from a global struct
7449 to a subclass of rtl_opt_pass along with...
7450 (pass_data_mode_switching): ...new pass_data instance and...
7451 (make_pass_mode_switching): ...new function.
7452 * modulo-sched.c (pass_sms): Convert from a global struct to a
7453 subclass of rtl_opt_pass along with...
7454 (pass_data_sms): ...new pass_data instance and...
7455 (make_pass_sms): ...new function.
7456 * omp-low.c (pass_expand_omp): Convert from a global struct to a
7457 subclass of gimple_opt_pass along with...
7458 (pass_data_expand_omp): ...new pass_data instance and...
7459 (make_pass_expand_omp): ...new function.
7460 (pass_lower_omp): Convert from a global struct to a subclass of
7461 gimple_opt_pass along with...
7462 (pass_data_lower_omp): ...new pass_data instance and...
7463 (make_pass_lower_omp): ...new function.
7464 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
7465 of gimple_opt_pass along with...
7466 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
7467 (make_pass_diagnose_omp_blocks): ...new function.
7468 * passes.c (pass_early_local_passes): Convert from a global struct to
7469 a subclass of simple_ipa_opt_pass along with...
7470 (pass_data_early_local_passes): ...new pass_data instance and...
7471 (make_pass_early_local_passes): ...new function.
7472 (pass_all_early_optimizations): Convert from a global struct to a
7473 subclass of gimple_opt_pass along with...
7474 (pass_data_all_early_optimizations): ...new pass_data instance and...
7475 (make_pass_all_early_optimizations): ...new function.
7476 (pass_all_optimizations): Convert from a global struct to a subclass
7477 of gimple_opt_pass along with...
7478 (pass_data_all_optimizations): ...new pass_data instance and...
7479 (make_pass_all_optimizations): ...new function.
7480 (pass_all_optimizations_g): Convert from a global struct to a subclass
7481 of gimple_opt_pass along with...
7482 (pass_data_all_optimizations_g): ...new pass_data instance and...
7483 (make_pass_all_optimizations_g): ...new function.
7484 (pass_rest_of_compilation): Convert from a global struct to a subclass
7485 of rtl_opt_pass along with...
7486 (pass_data_rest_of_compilation): ...new pass_data instance and...
7487 (make_pass_rest_of_compilation): ...new function.
7488 (pass_postreload): Convert from a global struct to a subclass of
7489 rtl_opt_pass along with...
7490 (pass_data_postreload): ...new pass_data instance and...
7491 (make_pass_postreload): ...new function.
7492 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
7493 subclass of rtl_opt_pass along with...
7494 (pass_data_gcse2): ...new pass_data instance and...
7495 (make_pass_gcse2): ...new function.
7496 * postreload.c (pass_postreload_cse): Convert from a global struct to
7497 a subclass of rtl_opt_pass along with...
7498 (pass_data_postreload_cse): ...new pass_data instance and...
7499 (make_pass_postreload_cse): ...new function.
7500 * predict.c (pass_profile): Convert from a global struct to a subclass
7501 of gimple_opt_pass along with...
7502 (pass_data_profile): ...new pass_data instance and...
7503 (make_pass_profile): ...new function.
7504 (pass_strip_predict_hints): Convert from a global struct to a subclass
7505 of gimple_opt_pass along with...
7506 (pass_data_strip_predict_hints): ...new pass_data instance and...
7507 (make_pass_strip_predict_hints): ...new function.
7508 * recog.c (pass_peephole2): Convert from a global struct to a subclass
7509 of rtl_opt_pass along with...
7510 (pass_data_peephole2): ...new pass_data instance and...
7511 (make_pass_peephole2): ...new function.
7512 (pass_split_all_insns): Convert from a global struct to a subclass of
7513 rtl_opt_pass along with...
7514 (pass_data_split_all_insns): ...new pass_data instance and...
7515 (make_pass_split_all_insns): ...new function.
7516 (pass_split_after_reload): Convert from a global struct to a subclass
7517 of rtl_opt_pass along with...
7518 (pass_data_split_after_reload): ...new pass_data instance and...
7519 (make_pass_split_after_reload): ...new function.
7520 (pass_split_before_regstack): Convert from a global struct to a
7521 subclass of rtl_opt_pass along with...
7522 (pass_data_split_before_regstack): ...new pass_data instance and...
7523 (make_pass_split_before_regstack): ...new function.
7524 (pass_split_before_sched2): Convert from a global struct to a subclass
7525 of rtl_opt_pass along with...
7526 (pass_data_split_before_sched2): ...new pass_data instance and...
7527 (make_pass_split_before_sched2): ...new function.
7528 (pass_split_for_shorten_branches): Convert from a global struct to a
7529 subclass of rtl_opt_pass along with...
7530 (pass_data_split_for_shorten_branches): ...new pass_data instance
7531 and...
7532 (make_pass_split_for_shorten_branches): ...new function.
7533 * ree.c (pass_ree): Convert from a global struct to a subclass of
7534 rtl_opt_pass along with...
7535 (pass_data_ree): ...new pass_data instance and...
7536 (make_pass_ree): ...new function.
7537 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
7538 subclass of rtl_opt_pass along with...
7539 (pass_data_stack_regs): ...new pass_data instance and...
7540 (make_pass_stack_regs): ...new function.
7541 (pass_stack_regs_run): Convert from a global struct to a subclass of
7542 rtl_opt_pass along with...
7543 (pass_data_stack_regs_run): ...new pass_data instance and...
7544 (make_pass_stack_regs_run): ...new function.
7545 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
7546 subclass of rtl_opt_pass along with...
7547 (pass_data_cprop_hardreg): ...new pass_data instance and...
7548 (make_pass_cprop_hardreg): ...new function.
7549 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
7550 subclass of rtl_opt_pass along with...
7551 (pass_data_reginfo_init): ...new pass_data instance and...
7552 (make_pass_reginfo_init): ...new function.
7553 * regmove.c (pass_regmove): Convert from a global struct to a subclass
7554 of rtl_opt_pass along with...
7555 (pass_data_regmove): ...new pass_data instance and...
7556 (make_pass_regmove): ...new function.
7557 * regrename.c (pass_regrename): Convert from a global struct to a
7558 subclass of rtl_opt_pass along with...
7559 (pass_data_regrename): ...new pass_data instance and...
7560 (make_pass_regrename): ...new function.
7561 * reorg.c (pass_delay_slots): Convert from a global struct to a
7562 subclass of rtl_opt_pass along with...
7563 (pass_data_delay_slots): ...new pass_data instance and...
7564 (make_pass_delay_slots): ...new function.
7565 (pass_machine_reorg): Convert from a global struct to a subclass of
7566 rtl_opt_pass along with...
7567 (pass_data_machine_reorg): ...new pass_data instance and...
7568 (make_pass_machine_reorg): ...new function.
7569 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
7570 of rtl_opt_pass along with...
7571 (pass_data_sched): ...new pass_data instance and...
7572 (make_pass_sched): ...new function.
7573 (pass_sched2): Convert from a global struct to a subclass of
7574 rtl_opt_pass along with...
7575 (pass_data_sched2): ...new pass_data instance and...
7576 (make_pass_sched2): ...new function.
7577 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
7578 to a subclass of rtl_opt_pass along with...
7579 (pass_data_stack_ptr_mod): ...new pass_data instance and...
7580 (make_pass_stack_ptr_mod): ...new function.
7581 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
7582 to a subclass of rtl_opt_pass along with...
7583 (pass_data_rtl_store_motion): ...new pass_data instance and...
7584 (make_pass_rtl_store_motion): ...new function.
7585 * tracer.c (pass_tracer): Convert from a global struct to a subclass
7586 of gimple_opt_pass along with...
7587 (pass_data_tracer): ...new pass_data instance and...
7588 (make_pass_tracer): ...new function.
7589 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
7590 to a subclass of gimple_opt_pass along with...
7591 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
7592 (make_pass_diagnose_tm_blocks): ...new function.
7593 (pass_lower_tm): Convert from a global struct to a subclass of
7594 gimple_opt_pass along with...
7595 (pass_data_lower_tm): ...new pass_data instance and...
7596 (make_pass_lower_tm): ...new function.
7597 (pass_tm_init): Convert from a global struct to a subclass of
7598 gimple_opt_pass along with...
7599 (pass_data_tm_init): ...new pass_data instance and...
7600 (make_pass_tm_init): ...new function.
7601 (pass_tm_mark): Convert from a global struct to a subclass of
7602 gimple_opt_pass along with...
7603 (pass_data_tm_mark): ...new pass_data instance and...
7604 (make_pass_tm_mark): ...new function.
7605 (pass_tm_edges): Convert from a global struct to a subclass of
7606 gimple_opt_pass along with...
7607 (pass_data_tm_edges): ...new pass_data instance and...
7608 (make_pass_tm_edges): ...new function.
7609 (pass_tm_memopt): Convert from a global struct to a subclass of
7610 gimple_opt_pass along with...
7611 (pass_data_tm_memopt): ...new pass_data instance and...
7612 (make_pass_tm_memopt): ...new function.
7613 (pass_ipa_tm): Convert from a global struct to a subclass of
7614 simple_ipa_opt_pass along with...
7615 (pass_data_ipa_tm): ...new pass_data instance and...
7616 (make_pass_ipa_tm): ...new function.
7617 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
7618 subclass of gimple_opt_pass along with...
7619 (pass_data_call_cdce): ...new pass_data instance and...
7620 (make_pass_call_cdce): ...new function.
7621 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
7622 subclass of gimple_opt_pass along with...
7623 (pass_data_build_cfg): ...new pass_data instance and...
7624 (make_pass_build_cfg): ...new function.
7625 (pass_split_crit_edges): Convert from a global struct to a subclass of
7626 gimple_opt_pass along with...
7627 (pass_data_split_crit_edges): ...new pass_data instance and...
7628 (make_pass_split_crit_edges): ...new function.
7629 (pass_warn_function_return): Convert from a global struct to a
7630 subclass of gimple_opt_pass along with...
7631 (pass_data_warn_function_return): ...new pass_data instance and...
7632 (make_pass_warn_function_return): ...new function.
7633 (pass_warn_function_noreturn): Convert from a global struct to a
7634 subclass of gimple_opt_pass along with...
7635 (pass_data_warn_function_noreturn): ...new pass_data instance and...
7636 (make_pass_warn_function_noreturn): ...new function.
7637 (pass_warn_unused_result): Convert from a global struct to a subclass
7638 of gimple_opt_pass along with...
7639 (pass_data_warn_unused_result): ...new pass_data instance and...
7640 (make_pass_warn_unused_result): ...new function.
7641 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
7642 a subclass of gimple_opt_pass along with...
7643 (pass_data_merge_phi): ...new pass_data instance and...
7644 (make_pass_merge_phi): ...new function.
7645 * tree-complex.c (pass_lower_complex): Convert from a global struct to
7646 a subclass of gimple_opt_pass along with...
7647 (pass_data_lower_complex): ...new pass_data instance and...
7648 (make_pass_lower_complex): ...new function.
7649 (pass_lower_complex_O0): Convert from a global struct to a subclass of
7650 gimple_opt_pass along with...
7651 (pass_data_lower_complex_O0): ...new pass_data instance and...
7652 (make_pass_lower_complex_O0): ...new function.
7653 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
7654 subclass of gimple_opt_pass along with...
7655 (pass_data_lower_eh): ...new pass_data instance and...
7656 (make_pass_lower_eh): ...new function.
7657 (pass_refactor_eh): Convert from a global struct to a subclass of
7658 gimple_opt_pass along with...
7659 (pass_data_refactor_eh): ...new pass_data instance and...
7660 (make_pass_refactor_eh): ...new function.
7661 (pass_lower_resx): Convert from a global struct to a subclass of
7662 gimple_opt_pass along with...
7663 (pass_data_lower_resx): ...new pass_data instance and...
7664 (make_pass_lower_resx): ...new function.
7665 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
7666 of gimple_opt_pass along with...
7667 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
7668 (make_pass_lower_eh_dispatch): ...new function.
7669 (pass_cleanup_eh): Convert from a global struct to a subclass of
7670 gimple_opt_pass along with...
7671 (pass_data_cleanup_eh): ...new pass_data instance and...
7672 (make_pass_cleanup_eh): ...new function.
7673 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
7674 to a subclass of simple_ipa_opt_pass along with...
7675 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
7676 (make_pass_ipa_lower_emutls): ...new function.
7677 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
7678 a subclass of gimple_opt_pass along with...
7679 (pass_data_if_conversion): ...new pass_data instance and...
7680 (make_pass_if_conversion): ...new function.
7681 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
7682 subclass of gimple_opt_pass along with...
7683 (pass_data_build_ssa): ...new pass_data instance and...
7684 (make_pass_build_ssa): ...new function.
7685 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
7686 global struct to a subclass of gimple_opt_pass along with...
7687 (pass_data_loop_distribution): ...new pass_data instance and...
7688 (make_pass_loop_distribution): ...new function.
7689 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
7690 subclass of gimple_opt_pass along with...
7691 (pass_data_mudflap_1): ...new pass_data instance and...
7692 (make_pass_mudflap_1): ...new function.
7693 (pass_mudflap_2): Convert from a global struct to a subclass of
7694 gimple_opt_pass along with...
7695 (pass_data_mudflap_2): ...new pass_data instance and...
7696 (make_pass_mudflap_2): ...new function.
7697 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
7698 subclass of gimple_opt_pass along with...
7699 (pass_data_mudflap_1): ...new pass_data instance and...
7700 (make_pass_mudflap_1): ...new function.
7701 (pass_mudflap_2): Convert from a global struct to a subclass of
7702 gimple_opt_pass along with...
7703 (pass_data_mudflap_2): ...new pass_data instance and...
7704 (make_pass_mudflap_2): ...new function.
7705 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
7706 gimple_opt_pass along with...
7707 (pass_data_nrv): ...new pass_data instance and...
7708 (make_pass_nrv): ...new function.
7709 (pass_return_slot): Convert from a global struct to a subclass of
7710 gimple_opt_pass along with...
7711 (pass_data_return_slot): ...new pass_data instance and...
7712 (make_pass_return_slot): ...new function.
7713 * tree-object-size.c (pass_object_sizes): Convert from a global struct
7714 to a subclass of gimple_opt_pass along with...
7715 (pass_data_object_sizes): ...new pass_data instance and...
7716 (make_pass_object_sizes): ...new function.
7717 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
7718 global struct to a subclass of gimple_opt_pass along with...
7719 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
7720 and...
7721 (make_pass_cleanup_cfg_post_optimizing): ...new function.
7722 (pass_fixup_cfg): Convert from a global struct to a subclass of
7723 gimple_opt_pass along with...
7724 (pass_data_fixup_cfg): ...new pass_data instance and...
7725 (make_pass_fixup_cfg): ...new function.
7726 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
7727 (make_pass_mudflap_1): ...new function.
7728 (pass_mudflap_2): Replace declaration with that of...
7729 (make_pass_mudflap_2): ...new function.
7730 (pass_asan): Replace declaration with that of...
7731 (make_pass_asan): ...new function.
7732 (pass_asan_O0): Replace declaration with that of...
7733 (make_pass_asan_O0): ...new function.
7734 (pass_tsan): Replace declaration with that of...
7735 (make_pass_tsan): ...new function.
7736 (pass_tsan_O0): Replace declaration with that of...
7737 (make_pass_tsan_O0): ...new function.
7738 (pass_lower_cf): Replace declaration with that of...
7739 (make_pass_lower_cf): ...new function.
7740 (pass_refactor_eh): Replace declaration with that of...
7741 (make_pass_refactor_eh): ...new function.
7742 (pass_lower_eh): Replace declaration with that of...
7743 (make_pass_lower_eh): ...new function.
7744 (pass_lower_eh_dispatch): Replace declaration with that of...
7745 (make_pass_lower_eh_dispatch): ...new function.
7746 (pass_lower_resx): Replace declaration with that of...
7747 (make_pass_lower_resx): ...new function.
7748 (pass_build_cfg): Replace declaration with that of...
7749 (make_pass_build_cfg): ...new function.
7750 (pass_early_tree_profile): Replace declaration with that of...
7751 (make_pass_early_tree_profile): ...new function.
7752 (pass_cleanup_eh): Replace declaration with that of...
7753 (make_pass_cleanup_eh): ...new function.
7754 (pass_sra): Replace declaration with that of...
7755 (make_pass_sra): ...new function.
7756 (pass_sra_early): Replace declaration with that of...
7757 (make_pass_sra_early): ...new function.
7758 (pass_early_ipa_sra): Replace declaration with that of...
7759 (make_pass_early_ipa_sra): ...new function.
7760 (pass_tail_recursion): Replace declaration with that of...
7761 (make_pass_tail_recursion): ...new function.
7762 (pass_tail_calls): Replace declaration with that of...
7763 (make_pass_tail_calls): ...new function.
7764 (pass_tree_loop): Replace declaration with that of...
7765 (make_pass_tree_loop): ...new function.
7766 (pass_tree_loop_init): Replace declaration with that of...
7767 (make_pass_tree_loop_init): ...new function.
7768 (pass_lim): Replace declaration with that of...
7769 (make_pass_lim): ...new function.
7770 (pass_tree_unswitch): Replace declaration with that of...
7771 (make_pass_tree_unswitch): ...new function.
7772 (pass_predcom): Replace declaration with that of...
7773 (make_pass_predcom): ...new function.
7774 (pass_iv_canon): Replace declaration with that of...
7775 (make_pass_iv_canon): ...new function.
7776 (pass_scev_cprop): Replace declaration with that of...
7777 (make_pass_scev_cprop): ...new function.
7778 (pass_empty_loop): Replace declaration with that of...
7779 (make_pass_empty_loop): ...new function.
7780 (pass_record_bounds): Replace declaration with that of...
7781 (make_pass_record_bounds): ...new function.
7782 (pass_graphite): Replace declaration with that of...
7783 (make_pass_graphite): ...new function.
7784 (pass_graphite_transforms): Replace declaration with that of...
7785 (make_pass_graphite_transforms): ...new function.
7786 (pass_if_conversion): Replace declaration with that of...
7787 (make_pass_if_conversion): ...new function.
7788 (pass_loop_distribution): Replace declaration with that of...
7789 (make_pass_loop_distribution): ...new function.
7790 (pass_vectorize): Replace declaration with that of...
7791 (make_pass_vectorize): ...new function.
7792 (pass_slp_vectorize): Replace declaration with that of...
7793 (make_pass_slp_vectorize): ...new function.
7794 (pass_complete_unroll): Replace declaration with that of...
7795 (make_pass_complete_unroll): ...new function.
7796 (pass_complete_unrolli): Replace declaration with that of...
7797 (make_pass_complete_unrolli): ...new function.
7798 (pass_parallelize_loops): Replace declaration with that of...
7799 (make_pass_parallelize_loops): ...new function.
7800 (pass_loop_prefetch): Replace declaration with that of...
7801 (make_pass_loop_prefetch): ...new function.
7802 (pass_iv_optimize): Replace declaration with that of...
7803 (make_pass_iv_optimize): ...new function.
7804 (pass_tree_loop_done): Replace declaration with that of...
7805 (make_pass_tree_loop_done): ...new function.
7806 (pass_ch): Replace declaration with that of...
7807 (make_pass_ch): ...new function.
7808 (pass_ccp): Replace declaration with that of...
7809 (make_pass_ccp): ...new function.
7810 (pass_phi_only_cprop): Replace declaration with that of...
7811 (make_pass_phi_only_cprop): ...new function.
7812 (pass_build_ssa): Replace declaration with that of...
7813 (make_pass_build_ssa): ...new function.
7814 (pass_build_alias): Replace declaration with that of...
7815 (make_pass_build_alias): ...new function.
7816 (pass_build_ealias): Replace declaration with that of...
7817 (make_pass_build_ealias): ...new function.
7818 (pass_dominator): Replace declaration with that of...
7819 (make_pass_dominator): ...new function.
7820 (pass_dce): Replace declaration with that of...
7821 (make_pass_dce): ...new function.
7822 (pass_dce_loop): Replace declaration with that of...
7823 (make_pass_dce_loop): ...new function.
7824 (pass_cd_dce): Replace declaration with that of...
7825 (make_pass_cd_dce): ...new function.
7826 (pass_call_cdce): Replace declaration with that of...
7827 (make_pass_call_cdce): ...new function.
7828 (pass_merge_phi): Replace declaration with that of...
7829 (make_pass_merge_phi): ...new function.
7830 (pass_split_crit_edges): Replace declaration with that of...
7831 (make_pass_split_crit_edges): ...new function.
7832 (pass_pre): Replace declaration with that of...
7833 (make_pass_pre): ...new function.
7834 (pass_profile): Replace declaration with that of...
7835 (make_pass_profile): ...new function.
7836 (pass_strip_predict_hints): Replace declaration with that of...
7837 (make_pass_strip_predict_hints): ...new function.
7838 (pass_lower_complex_O0): Replace declaration with that of...
7839 (make_pass_lower_complex_O0): ...new function.
7840 (pass_lower_complex): Replace declaration with that of...
7841 (make_pass_lower_complex): ...new function.
7842 (pass_lower_vector): Replace declaration with that of...
7843 (make_pass_lower_vector): ...new function.
7844 (pass_lower_vector_ssa): Replace declaration with that of...
7845 (make_pass_lower_vector_ssa): ...new function.
7846 (pass_lower_omp): Replace declaration with that of...
7847 (make_pass_lower_omp): ...new function.
7848 (pass_diagnose_omp_blocks): Replace declaration with that of...
7849 (make_pass_diagnose_omp_blocks): ...new function.
7850 (pass_expand_omp): Replace declaration with that of...
7851 (make_pass_expand_omp): ...new function.
7852 (pass_expand_omp_ssa): Replace declaration with that of...
7853 (make_pass_expand_omp_ssa): ...new function.
7854 (pass_object_sizes): Replace declaration with that of...
7855 (make_pass_object_sizes): ...new function.
7856 (pass_strlen): Replace declaration with that of...
7857 (make_pass_strlen): ...new function.
7858 (pass_fold_builtins): Replace declaration with that of...
7859 (make_pass_fold_builtins): ...new function.
7860 (pass_stdarg): Replace declaration with that of...
7861 (make_pass_stdarg): ...new function.
7862 (pass_early_warn_uninitialized): Replace declaration with that of...
7863 (make_pass_early_warn_uninitialized): ...new function.
7864 (pass_late_warn_uninitialized): Replace declaration with that of...
7865 (make_pass_late_warn_uninitialized): ...new function.
7866 (pass_cse_reciprocals): Replace declaration with that of...
7867 (make_pass_cse_reciprocals): ...new function.
7868 (pass_cse_sincos): Replace declaration with that of...
7869 (make_pass_cse_sincos): ...new function.
7870 (pass_optimize_bswap): Replace declaration with that of...
7871 (make_pass_optimize_bswap): ...new function.
7872 (pass_optimize_widening_mul): Replace declaration with that of...
7873 (make_pass_optimize_widening_mul): ...new function.
7874 (pass_warn_function_return): Replace declaration with that of...
7875 (make_pass_warn_function_return): ...new function.
7876 (pass_warn_function_noreturn): Replace declaration with that of...
7877 (make_pass_warn_function_noreturn): ...new function.
7878 (pass_cselim): Replace declaration with that of...
7879 (make_pass_cselim): ...new function.
7880 (pass_phiopt): Replace declaration with that of...
7881 (make_pass_phiopt): ...new function.
7882 (pass_forwprop): Replace declaration with that of...
7883 (make_pass_forwprop): ...new function.
7884 (pass_phiprop): Replace declaration with that of...
7885 (make_pass_phiprop): ...new function.
7886 (pass_tree_ifcombine): Replace declaration with that of...
7887 (make_pass_tree_ifcombine): ...new function.
7888 (pass_dse): Replace declaration with that of...
7889 (make_pass_dse): ...new function.
7890 (pass_nrv): Replace declaration with that of...
7891 (make_pass_nrv): ...new function.
7892 (pass_rename_ssa_copies): Replace declaration with that of...
7893 (make_pass_rename_ssa_copies): ...new function.
7894 (pass_sink_code): Replace declaration with that of...
7895 (make_pass_sink_code): ...new function.
7896 (pass_fre): Replace declaration with that of...
7897 (make_pass_fre): ...new function.
7898 (pass_check_data_deps): Replace declaration with that of...
7899 (make_pass_check_data_deps): ...new function.
7900 (pass_copy_prop): Replace declaration with that of...
7901 (make_pass_copy_prop): ...new function.
7902 (pass_vrp): Replace declaration with that of...
7903 (make_pass_vrp): ...new function.
7904 (pass_uncprop): Replace declaration with that of...
7905 (make_pass_uncprop): ...new function.
7906 (pass_return_slot): Replace declaration with that of...
7907 (make_pass_return_slot): ...new function.
7908 (pass_reassoc): Replace declaration with that of...
7909 (make_pass_reassoc): ...new function.
7910 (pass_rebuild_cgraph_edges): Replace declaration with that of...
7911 (make_pass_rebuild_cgraph_edges): ...new function.
7912 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
7913 (make_pass_remove_cgraph_callee_edges): ...new function.
7914 (pass_build_cgraph_edges): Replace declaration with that of...
7915 (make_pass_build_cgraph_edges): ...new function.
7916 (pass_local_pure_const): Replace declaration with that of...
7917 (make_pass_local_pure_const): ...new function.
7918 (pass_tracer): Replace declaration with that of...
7919 (make_pass_tracer): ...new function.
7920 (pass_warn_unused_result): Replace declaration with that of...
7921 (make_pass_warn_unused_result): ...new function.
7922 (pass_diagnose_tm_blocks): Replace declaration with that of...
7923 (make_pass_diagnose_tm_blocks): ...new function.
7924 (pass_lower_tm): Replace declaration with that of...
7925 (make_pass_lower_tm): ...new function.
7926 (pass_tm_init): Replace declaration with that of...
7927 (make_pass_tm_init): ...new function.
7928 (pass_tm_mark): Replace declaration with that of...
7929 (make_pass_tm_mark): ...new function.
7930 (pass_tm_memopt): Replace declaration with that of...
7931 (make_pass_tm_memopt): ...new function.
7932 (pass_tm_edges): Replace declaration with that of...
7933 (make_pass_tm_edges): ...new function.
7934 (pass_split_functions): Replace declaration with that of...
7935 (make_pass_split_functions): ...new function.
7936 (pass_feedback_split_functions): Replace declaration with that of...
7937 (make_pass_feedback_split_functions): ...new function.
7938 (pass_strength_reduction): Replace declaration with that of...
7939 (make_pass_strength_reduction): ...new function.
7940 (pass_ipa_lower_emutls): Replace declaration with that of...
7941 (make_pass_ipa_lower_emutls): ...new function.
7942 (pass_ipa_function_and_variable_visibility): Replace declaration with
7943 that of...
7944 (make_pass_ipa_function_and_variable_visibility): ...new function.
7945 (pass_ipa_tree_profile): Replace declaration with that of...
7946 (make_pass_ipa_tree_profile): ...new function.
7947 (pass_early_local_passes): Replace declaration with that of...
7948 (make_pass_early_local_passes): ...new function.
7949 (pass_ipa_whole_program_visibility): Replace declaration with that
7950 of...
7951 (make_pass_ipa_whole_program_visibility): ...new function.
7952 (pass_ipa_lto_gimple_out): Replace declaration with that of...
7953 (make_pass_ipa_lto_gimple_out): ...new function.
7954 (pass_ipa_increase_alignment): Replace declaration with that of...
7955 (make_pass_ipa_increase_alignment): ...new function.
7956 (pass_ipa_inline): Replace declaration with that of...
7957 (make_pass_ipa_inline): ...new function.
7958 (pass_ipa_free_lang_data): Replace declaration with that of...
7959 (make_pass_ipa_free_lang_data): ...new function.
7960 (pass_ipa_free_inline_summary): Replace declaration with that of...
7961 (make_pass_ipa_free_inline_summary): ...new function.
7962 (pass_ipa_cp): Replace declaration with that of...
7963 (make_pass_ipa_cp): ...new function.
7964 (pass_ipa_reference): Replace declaration with that of...
7965 (make_pass_ipa_reference): ...new function.
7966 (pass_ipa_pure_const): Replace declaration with that of...
7967 (make_pass_ipa_pure_const): ...new function.
7968 (pass_ipa_pta): Replace declaration with that of...
7969 (make_pass_ipa_pta): ...new function.
7970 (pass_ipa_lto_finish_out): Replace declaration with that of...
7971 (make_pass_ipa_lto_finish_out): ...new function.
7972 (pass_ipa_tm): Replace declaration with that of...
7973 (make_pass_ipa_tm): ...new function.
7974 (pass_ipa_profile): Replace declaration with that of...
7975 (make_pass_ipa_profile): ...new function.
7976 (pass_ipa_cdtor_merge): Replace declaration with that of...
7977 (make_pass_ipa_cdtor_merge): ...new function.
7978 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
7979 of...
7980 (make_pass_cleanup_cfg_post_optimizing): ...new function.
7981 (pass_init_datastructures): Replace declaration with that of...
7982 (make_pass_init_datastructures): ...new function.
7983 (pass_fixup_cfg): Replace declaration with that of...
7984 (make_pass_fixup_cfg): ...new function.
7985 (pass_expand): Replace declaration with that of...
7986 (make_pass_expand): ...new function.
7987 (pass_instantiate_virtual_regs): Replace declaration with that of...
7988 (make_pass_instantiate_virtual_regs): ...new function.
7989 (pass_rtl_fwprop): Replace declaration with that of...
7990 (make_pass_rtl_fwprop): ...new function.
7991 (pass_rtl_fwprop_addr): Replace declaration with that of...
7992 (make_pass_rtl_fwprop_addr): ...new function.
7993 (pass_jump): Replace declaration with that of...
7994 (make_pass_jump): ...new function.
7995 (pass_jump2): Replace declaration with that of...
7996 (make_pass_jump2): ...new function.
7997 (pass_lower_subreg): Replace declaration with that of...
7998 (make_pass_lower_subreg): ...new function.
7999 (pass_cse): Replace declaration with that of...
8000 (make_pass_cse): ...new function.
8001 (pass_fast_rtl_dce): Replace declaration with that of...
8002 (make_pass_fast_rtl_dce): ...new function.
8003 (pass_ud_rtl_dce): Replace declaration with that of...
8004 (make_pass_ud_rtl_dce): ...new function.
8005 (pass_rtl_dce): Replace declaration with that of...
8006 (make_pass_rtl_dce): ...new function.
8007 (pass_rtl_dse1): Replace declaration with that of...
8008 (make_pass_rtl_dse1): ...new function.
8009 (pass_rtl_dse2): Replace declaration with that of...
8010 (make_pass_rtl_dse2): ...new function.
8011 (pass_rtl_dse3): Replace declaration with that of...
8012 (make_pass_rtl_dse3): ...new function.
8013 (pass_rtl_cprop): Replace declaration with that of...
8014 (make_pass_rtl_cprop): ...new function.
8015 (pass_rtl_pre): Replace declaration with that of...
8016 (make_pass_rtl_pre): ...new function.
8017 (pass_rtl_hoist): Replace declaration with that of...
8018 (make_pass_rtl_hoist): ...new function.
8019 (pass_rtl_store_motion): Replace declaration with that of...
8020 (make_pass_rtl_store_motion): ...new function.
8021 (pass_cse_after_global_opts): Replace declaration with that of...
8022 (make_pass_cse_after_global_opts): ...new function.
8023 (pass_rtl_ifcvt): Replace declaration with that of...
8024 (make_pass_rtl_ifcvt): ...new function.
8025 (pass_into_cfg_layout_mode): Replace declaration with that of...
8026 (make_pass_into_cfg_layout_mode): ...new function.
8027 (pass_outof_cfg_layout_mode): Replace declaration with that of...
8028 (make_pass_outof_cfg_layout_mode): ...new function.
8029 (pass_loop2): Replace declaration with that of...
8030 (make_pass_loop2): ...new function.
8031 (pass_rtl_loop_init): Replace declaration with that of...
8032 (make_pass_rtl_loop_init): ...new function.
8033 (pass_rtl_move_loop_invariants): Replace declaration with that of...
8034 (make_pass_rtl_move_loop_invariants): ...new function.
8035 (pass_rtl_unswitch): Replace declaration with that of...
8036 (make_pass_rtl_unswitch): ...new function.
8037 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
8038 (make_pass_rtl_unroll_and_peel_loops): ...new function.
8039 (pass_rtl_doloop): Replace declaration with that of...
8040 (make_pass_rtl_doloop): ...new function.
8041 (pass_rtl_loop_done): Replace declaration with that of...
8042 (make_pass_rtl_loop_done): ...new function.
8043 (pass_web): Replace declaration with that of...
8044 (make_pass_web): ...new function.
8045 (pass_cse2): Replace declaration with that of...
8046 (make_pass_cse2): ...new function.
8047 (pass_df_initialize_opt): Replace declaration with that of...
8048 (make_pass_df_initialize_opt): ...new function.
8049 (pass_df_initialize_no_opt): Replace declaration with that of...
8050 (make_pass_df_initialize_no_opt): ...new function.
8051 (pass_reginfo_init): Replace declaration with that of...
8052 (make_pass_reginfo_init): ...new function.
8053 (pass_inc_dec): Replace declaration with that of...
8054 (make_pass_inc_dec): ...new function.
8055 (pass_stack_ptr_mod): Replace declaration with that of...
8056 (make_pass_stack_ptr_mod): ...new function.
8057 (pass_initialize_regs): Replace declaration with that of...
8058 (make_pass_initialize_regs): ...new function.
8059 (pass_combine): Replace declaration with that of...
8060 (make_pass_combine): ...new function.
8061 (pass_if_after_combine): Replace declaration with that of...
8062 (make_pass_if_after_combine): ...new function.
8063 (pass_ree): Replace declaration with that of...
8064 (make_pass_ree): ...new function.
8065 (pass_partition_blocks): Replace declaration with that of...
8066 (make_pass_partition_blocks): ...new function.
8067 (pass_match_asm_constraints): Replace declaration with that of...
8068 (make_pass_match_asm_constraints): ...new function.
8069 (pass_regmove): Replace declaration with that of...
8070 (make_pass_regmove): ...new function.
8071 (pass_split_all_insns): Replace declaration with that of...
8072 (make_pass_split_all_insns): ...new function.
8073 (pass_fast_rtl_byte_dce): Replace declaration with that of...
8074 (make_pass_fast_rtl_byte_dce): ...new function.
8075 (pass_lower_subreg2): Replace declaration with that of...
8076 (make_pass_lower_subreg2): ...new function.
8077 (pass_mode_switching): Replace declaration with that of...
8078 (make_pass_mode_switching): ...new function.
8079 (pass_sms): Replace declaration with that of...
8080 (make_pass_sms): ...new function.
8081 (pass_sched): Replace declaration with that of...
8082 (make_pass_sched): ...new function.
8083 (pass_ira): Replace declaration with that of...
8084 (make_pass_ira): ...new function.
8085 (pass_reload): Replace declaration with that of...
8086 (make_pass_reload): ...new function.
8087 (pass_clean_state): Replace declaration with that of...
8088 (make_pass_clean_state): ...new function.
8089 (pass_branch_prob): Replace declaration with that of...
8090 (make_pass_branch_prob): ...new function.
8091 (pass_value_profile_transformations): Replace declaration with that
8092 of...
8093 (make_pass_value_profile_transformations): ...new function.
8094 (pass_postreload_cse): Replace declaration with that of...
8095 (make_pass_postreload_cse): ...new function.
8096 (pass_gcse2): Replace declaration with that of...
8097 (make_pass_gcse2): ...new function.
8098 (pass_split_after_reload): Replace declaration with that of...
8099 (make_pass_split_after_reload): ...new function.
8100 (pass_branch_target_load_optimize1): Replace declaration with that
8101 of...
8102 (make_pass_branch_target_load_optimize1): ...new function.
8103 (pass_thread_prologue_and_epilogue): Replace declaration with that
8104 of...
8105 (make_pass_thread_prologue_and_epilogue): ...new function.
8106 (pass_stack_adjustments): Replace declaration with that of...
8107 (make_pass_stack_adjustments): ...new function.
8108 (pass_peephole2): Replace declaration with that of...
8109 (make_pass_peephole2): ...new function.
8110 (pass_if_after_reload): Replace declaration with that of...
8111 (make_pass_if_after_reload): ...new function.
8112 (pass_regrename): Replace declaration with that of...
8113 (make_pass_regrename): ...new function.
8114 (pass_cprop_hardreg): Replace declaration with that of...
8115 (make_pass_cprop_hardreg): ...new function.
8116 (pass_reorder_blocks): Replace declaration with that of...
8117 (make_pass_reorder_blocks): ...new function.
8118 (pass_branch_target_load_optimize2): Replace declaration with that
8119 of...
8120 (make_pass_branch_target_load_optimize2): ...new function.
8121 (pass_leaf_regs): Replace declaration with that of...
8122 (make_pass_leaf_regs): ...new function.
8123 (pass_split_before_sched2): Replace declaration with that of...
8124 (make_pass_split_before_sched2): ...new function.
8125 (pass_compare_elim_after_reload): Replace declaration with that of...
8126 (make_pass_compare_elim_after_reload): ...new function.
8127 (pass_sched2): Replace declaration with that of...
8128 (make_pass_sched2): ...new function.
8129 (pass_stack_regs): Replace declaration with that of...
8130 (make_pass_stack_regs): ...new function.
8131 (pass_stack_regs_run): Replace declaration with that of...
8132 (make_pass_stack_regs_run): ...new function.
8133 (pass_df_finish): Replace declaration with that of...
8134 (make_pass_df_finish): ...new function.
8135 (pass_compute_alignments): Replace declaration with that of...
8136 (make_pass_compute_alignments): ...new function.
8137 (pass_duplicate_computed_gotos): Replace declaration with that of...
8138 (make_pass_duplicate_computed_gotos): ...new function.
8139 (pass_variable_tracking): Replace declaration with that of...
8140 (make_pass_variable_tracking): ...new function.
8141 (pass_free_cfg): Replace declaration with that of...
8142 (make_pass_free_cfg): ...new function.
8143 (pass_machine_reorg): Replace declaration with that of...
8144 (make_pass_machine_reorg): ...new function.
8145 (pass_cleanup_barriers): Replace declaration with that of...
8146 (make_pass_cleanup_barriers): ...new function.
8147 (pass_delay_slots): Replace declaration with that of...
8148 (make_pass_delay_slots): ...new function.
8149 (pass_split_for_shorten_branches): Replace declaration with that of...
8150 (make_pass_split_for_shorten_branches): ...new function.
8151 (pass_split_before_regstack): Replace declaration with that of...
8152 (make_pass_split_before_regstack): ...new function.
8153 (pass_convert_to_eh_region_ranges): Replace declaration with that
8154 of...
8155 (make_pass_convert_to_eh_region_ranges): ...new function.
8156 (pass_shorten_branches): Replace declaration with that of...
8157 (make_pass_shorten_branches): ...new function.
8158 (pass_set_nothrow_function_flags): Replace declaration with that of...
8159 (make_pass_set_nothrow_function_flags): ...new function.
8160 (pass_dwarf2_frame): Replace declaration with that of...
8161 (make_pass_dwarf2_frame): ...new function.
8162 (pass_final): Replace declaration with that of...
8163 (make_pass_final): ...new function.
8164 (pass_rtl_seqabstr): Replace declaration with that of...
8165 (make_pass_rtl_seqabstr): ...new function.
8166 (pass_release_ssa_names): Replace declaration with that of...
8167 (make_pass_release_ssa_names): ...new function.
8168 (pass_early_inline): Replace declaration with that of...
8169 (make_pass_early_inline): ...new function.
8170 (pass_inline_parameters): Replace declaration with that of...
8171 (make_pass_inline_parameters): ...new function.
8172 (pass_update_address_taken): Replace declaration with that of...
8173 (make_pass_update_address_taken): ...new function.
8174 (pass_convert_switch): Replace declaration with that of...
8175 (make_pass_convert_switch): ...new function.
8176 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
8177 to a subclass of simple_ipa_opt_pass along with...
8178 (pass_data_ipa_tree_profile): ...new pass_data instance and...
8179 (make_pass_ipa_tree_profile): ...new function.
8180 * tree-sra.c (pass_sra_early): Convert from a global struct to a
8181 subclass of gimple_opt_pass along with...
8182 (pass_data_sra_early): ...new pass_data instance and...
8183 (make_pass_sra_early): ...new function.
8184 (pass_sra): Convert from a global struct to a subclass of
8185 gimple_opt_pass along with...
8186 (pass_data_sra): ...new pass_data instance and...
8187 (make_pass_sra): ...new function.
8188 (pass_early_ipa_sra): Convert from a global struct to a subclass of
8189 gimple_opt_pass along with...
8190 (pass_data_early_ipa_sra): ...new pass_data instance and...
8191 (make_pass_early_ipa_sra): ...new function.
8192 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
8193 subclass of gimple_opt_pass along with...
8194 (pass_data_ccp): ...new pass_data instance and...
8195 (make_pass_ccp): ...new function.
8196 (pass_fold_builtins): Convert from a global struct to a subclass of
8197 gimple_opt_pass along with...
8198 (pass_data_fold_builtins): ...new pass_data instance and...
8199 (make_pass_fold_builtins): ...new function.
8200 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
8201 subclass of gimple_opt_pass along with...
8202 (pass_data_copy_prop): ...new pass_data instance and...
8203 (make_pass_copy_prop): ...new function.
8204 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
8205 global struct to a subclass of gimple_opt_pass along with...
8206 (pass_data_rename_ssa_copies): ...new pass_data instance and...
8207 (make_pass_rename_ssa_copies): ...new function.
8208 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
8209 subclass of gimple_opt_pass along with...
8210 (pass_data_dce): ...new pass_data instance and...
8211 (make_pass_dce): ...new function.
8212 (pass_dce_loop): Convert from a global struct to a subclass of
8213 gimple_opt_pass along with...
8214 (pass_data_dce_loop): ...new pass_data instance and...
8215 (make_pass_dce_loop): ...new function.
8216 (pass_cd_dce): Convert from a global struct to a subclass of
8217 gimple_opt_pass along with...
8218 (pass_data_cd_dce): ...new pass_data instance and...
8219 (make_pass_cd_dce): ...new function.
8220 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
8221 subclass of gimple_opt_pass along with...
8222 (pass_data_dominator): ...new pass_data instance and...
8223 (make_pass_dominator): ...new function.
8224 (pass_phi_only_cprop): Convert from a global struct to a subclass of
8225 gimple_opt_pass along with...
8226 (pass_data_phi_only_cprop): ...new pass_data instance and...
8227 (make_pass_phi_only_cprop): ...new function.
8228 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
8229 subclass of gimple_opt_pass along with...
8230 (pass_data_dse): ...new pass_data instance and...
8231 (make_pass_dse): ...new function.
8232 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
8233 a subclass of gimple_opt_pass along with...
8234 (pass_data_forwprop): ...new pass_data instance and...
8235 (make_pass_forwprop): ...new function.
8236 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
8237 struct to a subclass of gimple_opt_pass along with...
8238 (pass_data_tree_ifcombine): ...new pass_data instance and...
8239 (make_pass_tree_ifcombine): ...new function.
8240 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
8241 subclass of gimple_opt_pass along with...
8242 (pass_data_ch): ...new pass_data instance and...
8243 (make_pass_ch): ...new function.
8244 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
8245 subclass of gimple_opt_pass along with...
8246 (pass_data_tree_loop): ...new pass_data instance and...
8247 (make_pass_tree_loop): ...new function.
8248 (pass_tree_loop_init): Convert from a global struct to a subclass of
8249 gimple_opt_pass along with...
8250 (pass_data_tree_loop_init): ...new pass_data instance and...
8251 (make_pass_tree_loop_init): ...new function.
8252 (pass_lim): Convert from a global struct to a subclass of
8253 gimple_opt_pass along with...
8254 (pass_data_lim): ...new pass_data instance and...
8255 (make_pass_lim): ...new function.
8256 (pass_tree_unswitch): Convert from a global struct to a subclass of
8257 gimple_opt_pass along with...
8258 (pass_data_tree_unswitch): ...new pass_data instance and...
8259 (make_pass_tree_unswitch): ...new function.
8260 (pass_predcom): Convert from a global struct to a subclass of
8261 gimple_opt_pass along with...
8262 (pass_data_predcom): ...new pass_data instance and...
8263 (make_pass_predcom): ...new function.
8264 (pass_vectorize): Convert from a global struct to a subclass of
8265 gimple_opt_pass along with...
8266 (pass_data_vectorize): ...new pass_data instance and...
8267 (make_pass_vectorize): ...new function.
8268 (pass_graphite): Convert from a global struct to a subclass of
8269 gimple_opt_pass along with...
8270 (pass_data_graphite): ...new pass_data instance and...
8271 (make_pass_graphite): ...new function.
8272 (pass_graphite_transforms): Convert from a global struct to a subclass
8273 of gimple_opt_pass along with...
8274 (pass_data_graphite_transforms): ...new pass_data instance and...
8275 (make_pass_graphite_transforms): ...new function.
8276 (pass_check_data_deps): Convert from a global struct to a subclass of
8277 gimple_opt_pass along with...
8278 (pass_data_check_data_deps): ...new pass_data instance and...
8279 (make_pass_check_data_deps): ...new function.
8280 (pass_iv_canon): Convert from a global struct to a subclass of
8281 gimple_opt_pass along with...
8282 (pass_data_iv_canon): ...new pass_data instance and...
8283 (make_pass_iv_canon): ...new function.
8284 (pass_scev_cprop): Convert from a global struct to a subclass of
8285 gimple_opt_pass along with...
8286 (pass_data_scev_cprop): ...new pass_data instance and...
8287 (make_pass_scev_cprop): ...new function.
8288 (pass_record_bounds): Convert from a global struct to a subclass of
8289 gimple_opt_pass along with...
8290 (pass_data_record_bounds): ...new pass_data instance and...
8291 (make_pass_record_bounds): ...new function.
8292 (pass_complete_unroll): Convert from a global struct to a subclass of
8293 gimple_opt_pass along with...
8294 (pass_data_complete_unroll): ...new pass_data instance and...
8295 (make_pass_complete_unroll): ...new function.
8296 (pass_complete_unrolli): Convert from a global struct to a subclass of
8297 gimple_opt_pass along with...
8298 (pass_data_complete_unrolli): ...new pass_data instance and...
8299 (make_pass_complete_unrolli): ...new function.
8300 (pass_parallelize_loops): Convert from a global struct to a subclass
8301 of gimple_opt_pass along with...
8302 (pass_data_parallelize_loops): ...new pass_data instance and...
8303 (make_pass_parallelize_loops): ...new function.
8304 (pass_loop_prefetch): Convert from a global struct to a subclass of
8305 gimple_opt_pass along with...
8306 (pass_data_loop_prefetch): ...new pass_data instance and...
8307 (make_pass_loop_prefetch): ...new function.
8308 (pass_iv_optimize): Convert from a global struct to a subclass of
8309 gimple_opt_pass along with...
8310 (pass_data_iv_optimize): ...new pass_data instance and...
8311 (make_pass_iv_optimize): ...new function.
8312 (pass_tree_loop_done): Convert from a global struct to a subclass of
8313 gimple_opt_pass along with...
8314 (pass_data_tree_loop_done): ...new pass_data instance and...
8315 (make_pass_tree_loop_done): ...new function.
8316 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
8317 struct to a subclass of gimple_opt_pass along with...
8318 (pass_data_cse_reciprocals): ...new pass_data instance and...
8319 (make_pass_cse_reciprocals): ...new function.
8320 (pass_cse_sincos): Convert from a global struct to a subclass of
8321 gimple_opt_pass along with...
8322 (pass_data_cse_sincos): ...new pass_data instance and...
8323 (make_pass_cse_sincos): ...new function.
8324 (pass_optimize_bswap): Convert from a global struct to a subclass of
8325 gimple_opt_pass along with...
8326 (pass_data_optimize_bswap): ...new pass_data instance and...
8327 (make_pass_optimize_bswap): ...new function.
8328 (pass_optimize_widening_mul): Convert from a global struct to a
8329 subclass of gimple_opt_pass along with...
8330 (pass_data_optimize_widening_mul): ...new pass_data instance and...
8331 (make_pass_optimize_widening_mul): ...new function.
8332 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
8333 subclass of gimple_opt_pass along with...
8334 (pass_data_phiopt): ...new pass_data instance and...
8335 (make_pass_phiopt): ...new function.
8336 (pass_cselim): Convert from a global struct to a subclass of
8337 gimple_opt_pass along with...
8338 (pass_data_cselim): ...new pass_data instance and...
8339 (make_pass_cselim): ...new function.
8340 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
8341 subclass of gimple_opt_pass along with...
8342 (pass_data_phiprop): ...new pass_data instance and...
8343 (make_pass_phiprop): ...new function.
8344 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
8345 subclass of gimple_opt_pass along with...
8346 (pass_data_pre): ...new pass_data instance and...
8347 (make_pass_pre): ...new function.
8348 (pass_fre): Convert from a global struct to a subclass of
8349 gimple_opt_pass along with...
8350 (pass_data_fre): ...new pass_data instance and...
8351 (make_pass_fre): ...new function.
8352 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
8353 subclass of gimple_opt_pass along with...
8354 (pass_data_reassoc): ...new pass_data instance and...
8355 (make_pass_reassoc): ...new function.
8356 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
8357 subclass of gimple_opt_pass along with...
8358 (pass_data_sink_code): ...new pass_data instance and...
8359 (make_pass_sink_code): ...new function.
8360 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
8361 subclass of gimple_opt_pass along with...
8362 (pass_data_strlen): ...new pass_data instance and...
8363 (make_pass_strlen): ...new function.
8364 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
8365 struct to a subclass of gimple_opt_pass along with...
8366 (pass_data_build_alias): ...new pass_data instance and...
8367 (make_pass_build_alias): ...new function.
8368 (pass_build_ealias): Convert from a global struct to a subclass of
8369 gimple_opt_pass along with...
8370 (pass_data_build_ealias): ...new pass_data instance and...
8371 (make_pass_build_ealias): ...new function.
8372 (pass_ipa_pta): Convert from a global struct to a subclass of
8373 simple_ipa_opt_pass along with...
8374 (pass_data_ipa_pta): ...new pass_data instance and...
8375 (make_pass_ipa_pta): ...new function.
8376 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
8377 subclass of gimple_opt_pass along with...
8378 (pass_data_uncprop): ...new pass_data instance and...
8379 (make_pass_uncprop): ...new function.
8380 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
8381 global struct to a subclass of gimple_opt_pass along with...
8382 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
8383 (make_pass_late_warn_uninitialized): ...new function.
8384 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
8385 to a subclass of gimple_opt_pass along with...
8386 (pass_data_init_datastructures): ...new pass_data instance and...
8387 (make_pass_init_datastructures): ...new function.
8388 (pass_early_warn_uninitialized): Convert from a global struct to a
8389 subclass of gimple_opt_pass along with...
8390 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
8391 (make_pass_early_warn_uninitialized): ...new function.
8392 (pass_update_address_taken): Convert from a global struct to a
8393 subclass of gimple_opt_pass along with...
8394 (pass_data_update_address_taken): ...new pass_data instance and...
8395 (make_pass_update_address_taken): ...new function.
8396 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
8397 struct to a subclass of gimple_opt_pass along with...
8398 (pass_data_release_ssa_names): ...new pass_data instance and...
8399 (make_pass_release_ssa_names): ...new function.
8400 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
8401 subclass of gimple_opt_pass along with...
8402 (pass_data_stdarg): ...new pass_data instance and...
8403 (make_pass_stdarg): ...new function.
8404 * tree-switch-conversion.c (pass_convert_switch): Convert from a
8405 global struct to a subclass of gimple_opt_pass along with...
8406 (pass_data_convert_switch): ...new pass_data instance and...
8407 (make_pass_convert_switch): ...new function.
8408 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
8409 to a subclass of gimple_opt_pass along with...
8410 (pass_data_tail_recursion): ...new pass_data instance and...
8411 (make_pass_tail_recursion): ...new function.
8412 (pass_tail_calls): Convert from a global struct to a subclass of
8413 gimple_opt_pass along with...
8414 (pass_data_tail_calls): ...new pass_data instance and...
8415 (make_pass_tail_calls): ...new function.
8416 * tree-vect-generic.c (pass_lower_vector): Convert from a global
8417 struct to a subclass of gimple_opt_pass along with...
8418 (pass_data_lower_vector): ...new pass_data instance and...
8419 (make_pass_lower_vector): ...new function.
8420 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
8421 gimple_opt_pass along with...
8422 (pass_data_lower_vector_ssa): ...new pass_data instance and...
8423 (make_pass_lower_vector_ssa): ...new function.
8424 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
8425 to a subclass of gimple_opt_pass along with...
8426 (pass_data_slp_vectorize): ...new pass_data instance and...
8427 (make_pass_slp_vectorize): ...new function.
8428 (pass_ipa_increase_alignment): Convert from a global struct to a
8429 subclass of simple_ipa_opt_pass along with...
8430 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
8431 (make_pass_ipa_increase_alignment): ...new function.
8432 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
8433 gimple_opt_pass along with...
8434 (pass_data_vrp): ...new pass_data instance and...
8435 (make_pass_vrp): ...new function.
8436 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
8437 subclass of simple_ipa_opt_pass along with...
8438 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
8439 (make_pass_ipa_free_lang_data): ...new function.
8440 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
8441 gimple_opt_pass along with...
8442 (pass_data_tsan): ...new pass_data instance and...
8443 (make_pass_tsan): ...new function.
8444 (pass_tsan_O0): Convert from a global struct to a subclass of
8445 gimple_opt_pass along with...
8446 (pass_data_tsan_O0): ...new pass_data instance and...
8447 (make_pass_tsan_O0): ...new function.
8448 * var-tracking.c (pass_variable_tracking): Convert from a global
8449 struct to a subclass of rtl_opt_pass along with...
8450 (pass_data_variable_tracking): ...new pass_data instance and...
8451 (make_pass_variable_tracking): ...new function.
8452 * web.c (pass_web): Convert from a global struct to a subclass of
8453 rtl_opt_pass along with...
8454 (pass_data_web): ...new pass_data instance and...
8455 (make_pass_web): ...new function.
8456 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
8457 declaration with that of...
8458 (make_pass_mode_switch_use): ...new function.
8459 (pass_resolve_sw_modes): Replace declaration with that of...
8460 (make_pass_resolve_sw_modes): ...new function.
8461 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
8462 from a global struct to a subclass of rtl_opt_pass along with...
8463 (pass_data_mode_switch_use): ...new pass_data instance and...
8464 (make_pass_mode_switch_use): ...new function.
8465 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
8466 from a global struct to a subclass of rtl_opt_pass along with...
8467 (pass_data_resolve_sw_modes): ...new pass_data instance and...
8468 (make_pass_resolve_sw_modes): ...new function.
8469 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
8470 struct to a subclass of rtl_opt_pass along with...
8471 (pass_data_insert_vzeroupper): ...new pass_data instance and...
8472 (make_pass_insert_vzeroupper): ...new function.
8473 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
8474 global struct to a subclass of rtl_opt_pass along with...
8475 (pass_data_work_around_errata): ...new pass_data instance and...
8476 (make_pass_work_around_errata): ...new function.
8477 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
8478 struct to a subclass of rtl_opt_pass along with...
8479 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
8480 (make_pass_mips_machine_reorg2): ...new function.
8481
6a389ed5
DM
84822013-08-05 David Malcolm <dmalcolm@redhat.com>
8483
8484 * passes.c (pass_manager::operator new): New.
8485
f7695dbf
DM
84862013-08-05 David Malcolm <dmalcolm@redhat.com>
8487
8488 Handwritten part of conversion of passes to C++ classes.
8489
8490 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
8491 (toplev.o): Add dep on PASS_MANAGER_H.
8492 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
8493 of early local pases to reflect this moving from a global to a
8494 member of gcc::pass_manager.
8495 (cgraph_add_new_function): Likewise.
8496 * lto-cgraph.c (lto_output_node): Update for conversion of
8497 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
8498 * passes.c (opt_pass::clone): New.
8499 (opt_pass::gate): New.
8500 (opt_pass::execute): New.
8501 (opt_pass::opt_pass): New.
8502 (pass_manager::execute_early_local_passes): New.
8503 (pass_manager::execute_pass_mode_switching): new.
8504 (finish_optimization_passes): Convert to...
8505 (pass_manager::finish_optimization_passes): ...this.
8506 (finish_optimization_passes): Update for conversion of passes to
8507 C++ classes.
8508 (register_dump_files_1): Use has_gate since we cannot portably
8509 check a vtable entry against NULL.
8510 (dump_one_pass): Likewise.
8511 (ipa_write_summaries_2): Likewise.
8512 (ipa_write_optimization_summaries_1): Likewise.
8513 (ipa_read_summaries_1): Likewise.
8514 (ipa_read_optimization_summaries_1): Likewise.
8515 (execute_ipa_stmt_fixups): Likewise.
8516 (pass_manager::pass_manager): Rewrite pass-creation, invoking
8517 pass-creation functions rather than wiring up globals, and
8518 storing the results in fields of pass_manager generated using
8519 pass-instances.def.
8520 (pass_manager::dump_profile_report): Update for conversion of
8521 passes to C++ classes.
8522 (pass_manager::execute_ipa_summary_passes): Likewise.
8523 (execute_one_ipa_transform_pass): Likewise.
8524 (execute_one_pass): Use has_gate and has_execute since we cannot
8525 portably check a vtable entry against NULL.
8526 * pass_manager.h (pass_manager::finish_optimization_passes): New.
8527 (pass_manager): Use pass-instances.def to add fields for the
8528 various pass instances.
8529 * toplev.c (finalize): Update for move of
8530 finish_optimization_passes to a method of gcc::pass_manager.
8531 * toplev.h (finish_optimization_passes): Move to method of class
8532 pass_manager.
8533 * tree-pass.h (struct pass_data): New.
03b0ee0a 8534 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
f7695dbf
DM
8535 (opt_pass::gate): Convert to virtual function.
8536 (opt_pass::~opt_pass): New.
8537 (opt_pass::clone): New.
8538 (opt_pass::execute): Convert to virtual function.
8539 (opt_pass::opt_pass): New.
8540 (opt_pass::ctxt_): new.
8541 (gimple_opt_pass): Convert to subclass of opt_pass.
8542 (gimple_opt_pass::gimple_opt_pass): New.
8543 (rtl_opt_pass): Convert to subclass of opt_pass.
8544 (rtl_opt_pass::rtl_opt_pass): New.
8545 (ipa_opt_pass_d): Convert to subclass of opt_pass.
8546 (ipa_opt_pass_d::ipa_opt_pass_d): New.
8547 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
8548 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
8549 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
8550 invocation of pass_mode_switching to reflect this moving from a
8551 global to a member of gcc::pass_manager.
8552 (ix86_option_override): Rework how pass_insert_vzeroupper is
8553 added to the pass_manager to reflect autogenerated changes.
03b0ee0a 8554 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
f7695dbf 8555
d0b2f831
RE
85562013-08-05 Richard Earnshaw <rearnsha@arm.com>
8557
8558 PR rtl-optimization/57708
8559 * recog.c (peep2_find_free_register): Validate all regs in a
8560 multi-reg mode.
8561
51a5c0c2
JH
85622013-08-05 Jan Hubicka <jh@suse.cz>
8563
8564 PR lto/57602
03b0ee0a
UB
8565 * cgraph.c (verify_cgraph_node): Accept local flags from other
8566 partitions.
51a5c0c2
JH
8567 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
8568 (function_and_variable_visibility): Likewise.
8569 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
8570
65f0a120
GDR
85712013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
8572
8573 * graph.c (init_graph_slim_pretty_print): Remove.
8574 (print_graph_cfg): Do not call it. Use local pretty printer.
8575 (start_graph_dump): Likewise.
8576
b3f80694
GDR
85772013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
8578
8579 * gimple-pretty-print.c (buffer): Remove.
8580 (initialized): Likewise.
8581 (maybe_init_pretty_print): Likewise.
8582 (print_gimple_stmt): Do not call it. Use non-static local
8583 pretty_printer variable.
8584 (print_gimple_expr): Likewise.
8585 (print_gimple_seq): Likewise.
8586 (gimple_dump_bb): Likewise.
8587
11a877b3
GDR
85882013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
8589
8590 * asan.c (asan_pp): Remove.
8591 (asan_pp_initialized): Likewise.
8592 (asan_pp_initialize): Likewise.
8593 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
8594 (asan_emit_stack_protection): Tidy. Use local pretty printer.
8595 (asan_add_global): Likewise.
8596
b066401f
GDR
85972013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
8598
8599 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
8600 * diagnostic.h (diagnostic_flush_buffer): Adjust.
8601 * pretty-print.c (pp_formatted_text_data): Likewise.
8602 (pp_indent): Rename from pp_base_indent.
8603 (pp_format): Rename from pp_base_format.
8604 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
8605 (pp_format_verbatim): Rename from pp_base_format_verbatim.
8606 (pp_flush): Rename from pp_base_flush.
8607 (pp_set_line_maximum_length): Rename from
8608 pp_base_set_line_maximum_length.
8609 (pp_clear_output_area): Rename from pp_base_clear_output_area.
8610 (pp_set_prefix): Rename from pp_base_set_prefix.
8611 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
8612 (pp_emit_prefix): Rename from pp_base_emit_prefix.
8613 (pp_append_text): Rename from pp_base_append_text.
8614 (pp_formatted_text): Rename from pp_base_formatted_text.
8615 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
8616 (pp_remaining_character_count_for_line): Rename from
8617 pp_base_remaining_character_count_for_line.
8618 (pp_newline): Rename from pp_base_newline.
8619 (pp_character): Rename from pp_base_character.
8620 (pp_string): Rename from pp_base_string.
8621 (pp_maybe_space): Rename from pp_base_maybe_space.
8622 * asan.c (asan_pp_string): Adjust.
8623 (asan_emit_stack_protection): Likewise.
8624 (asan_add_global): Likewise.
8625 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
8626 * tree-mudflap.c (mf_varname_tree): Likewise.
8627 * tree-pretty-print.c (pp_tree_identifier): Rename from
8628 pp_base_tree_identifier.
8629 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
8630 Declare as function.
8631
137a1a27
GDR
86322013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8633
8634 * pretty-print.h (pp_bar_bar): New.
8635 (pp_ampersand_ampersand): Likewise.
8636 (pp_less_equal): Likewise.
8637 (pp_greater_equal): Likewise.
8638 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
8639 printer functions instead of pp_string or operators and punctuators.
8640 (dump_gimple_call): Likewise.
8641 (dump_gimple_omp_for): Likewise.
8642 (dump_gimple_transaction): Likewise.
8643 (dump_gimple_phi): Likewise.
8644 (pp_gimple_stmt_1): Likewise.
8645 * sched-vis.c (print_insn): Likewise.
8646 * tree-mudflap.c (mf_varname_tree): Likewise.
8647 * tree-pretty-print.c (dump_block_node): Likewise.
8648 (dump_generic_node): Likewise.
8649
815effe1
JH
86502013-08-02 Jan Hubicka <jh@suse.cz>
8651
8652 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
8653 boundaries.
8654 * lto-streamer-out.c (tree_is_indexable): Results decls and
8655 parm decls are not indexable.
8656 (DFS_write_tree_body): Do not follow args and results.
8657 (hash_tree): Likewise.
8658 (output_functions): Rearrange so struct function is needed
8659 only when real body is output; be able to also ouptut abstract
8660 functions; output DECL_ARGUMENTS and DECL_RESULT.
8661 (lto_output): When not in WPA, ale store abstract functions.
8662 (write_symbol): Do not care about RESULT_DECL.
8663 (output_symbol_p): Handle correctly sbtract decls.
8664 * lto-streamer-in.c (input_function): Rearrange so struct
8665 function can be NULL at entry; allow streaming of
8666 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
8667 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
8668 sanity check during LTO.
8669 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
8670 RESULT_DECl and DECL_ARGUMENTS.
8671 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
8672 Likewise.
8673
07838b13
GDR
86742013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8675
8676 * pretty-print.h (pp_underscore): New.
8677 (pp_comma): Tidy.
8678 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
8679 printer functions instead of pp_character.
8680 (dump_binary_rhs): Likewise.
8681 (dump_ternary_rhs): Likewise.
8682 (dump_gimple_call_args): Likewise.
8683 (pp_points_to_solution): Likewise.
8684 (dump_gimple_call): Likewise.
8685 (dump_gimple_switch): Likewise.
8686 (dump_gimple_cond): Likewise.
8687 (dump_gimple_bind): Likewise.
8688 (dump_gimple_try): Likewise.
8689 (dump_gimple_omp_for): Likewise.
8690 (dump_gimple_omp_continue): Likewise.
8691 (dump_gimple_omp_single): Likewise.
8692 (dump_gimple_omp_sections): Likewise.
8693 (dump_gimple_omp_block): Likewise.
8694 (dump_gimple_omp_critical): Likewise.
8695 (dump_gimple_transaction): Likewise.
8696 (dump_gimple_asm): Likewise.
8697 (dump_gimple_phi): Likewise.
8698 (dump_gimple_omp_parallel): Likewise.
8699 (dump_gimple_omp_task): Likewise.
8700 (dump_gimple_omp_atomic_load): Likewise.
8701 (dump_gimple_omp_atomic_store): Likewise.
8702 (dump_gimple_mem_ops): Likewise.
8703 (pp_gimple_stmt_1): Likewise.
8704 (pp_cfg_jump): Likewise.
8705 (dump_implicit_edges): Likewise.
8706 (gimple_dump_bb_for_graph): Likewise.
8707 * graph.c (draw_cfg_node): Likewise.
8708 * langhooks.c (lhd_print_error_function): Likewise.
8709 * sched-vis.c (print_exp): Likewise.
8710 (print_value): Likewise.
8711 (print_pattern): Likewise.
8712 (print_insn): Likewise.
8713 (rtl_dump_bb_for_graph): Likewise.
8714 * tree-pretty-print.c (dump_function_declaration): Likewise.
8715 (dump_array_domain): Likewise.
8716 (dump_omp_clause): Likewise.
8717 (dump_location): Likewise.
8718 (dump_generic_node): Likewise.
8719 (print_struct_decl): Likewise.
8720 * diagnostic.c (diagnostic_show_locus): Use pp_space.
8721
bb0d2039
BS
87222013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8723
8724 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
8725 candidate table when replacing a candidate statement.
8726 (replace_rhs_if_not_dup): Likewise.
8727 (replace_one_candidate): Likewise.
8728
bc0ec027 87292013-08-02 Jan Hubicka <jh@suse.cz>
cdaa808a 8730 Martin Liska <marxin.liska@gmail.com>
bc0ec027
JH
8731
8732 * cgraphunit.c (add_new_function): Fix logic when adding from
8733 late IPA pass.
8734 (assemble_thunk): Rename to ...
03b0ee0a
UB
8735 (expand_thunk); .. this one; export; get it working with
8736 general functions; make produced gimple valid.
bc0ec027
JH
8737 * cgraph.h (expand_thunk): Declare.
8738
0e8853ee
JH
87392013-08-02 Jan Hubicka <jh@suse.cz>
8740
03b0ee0a
UB
8741 * ipa-cp.c (gather_context_independent_values): Use
8742 ipa_get_param_move_cost.
8743 (get_replacement_map): Remove PARAM; move parameter folding
8744 into tree-inline.c
0e8853ee
JH
8745 (create_specialized_node): Update.
8746 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
8747 assert that we have gimple body; update move_cost.
8748 (count_formal_params): Assert that we have gimple body.
8749 (ipa_dump_param): New function.
8750 (ipa_alloc_node_params): Break out from ...
8751 (ipa_initialize_node_params): ... here.
8752 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
8753 (ipa_write_node_info): Stream move costs.
8754 (ipa_read_node_info): Read move costs.
8755 (ipa_update_after_lto_read): Do not recompute node params.
8756 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
8757 (ipa_get_param): Check we are not in WPA.
8758 (ipa_get_param_move_cost): New.
8759 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
8760 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
8761 parm numbers to be present.
8762
ecee672b
VM
87632013-08-02 Vladimir Makarov <vmakarov@redhat.com>
8764
8765 PR rtl-optimization/58048
8766 * lra-constraints.c (process_alt_operands): Don't check asm
8767 operand on register.
8768
13ec0527
EB
87692013-08-02 Eric Botcazou <ebotcazou@adacore.com>
8770
8771 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
8772 the implied StoreLoad barrier for atomic operations if before.
8773
af15184a
JH
87742013-08-02 Jan Hubicka <jh@suse.cz>
8775 Martin Liska <marxin.liska@gmail.com>
8776
03b0ee0a
UB
8777 * cgraph.c (cgraph_function_body_availability): Do not check
8778 cgraph flags.
af15184a
JH
8779 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
8780 symtab_node_availability): Declare.
8781 * ipa.c (can_replace_by_local_alias): New.
8782 (function_and_variable_visibility): Use it.
03b0ee0a
UB
8783 * symtab.c (symtab_for_node_and_aliases,
8784 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
af15184a 8785
01e54ef8
VM
87862013-08-02 Vladimir Makarov <vmakarov@redhat.com>
8787
8788 PR rtl-optimization/57963
03b0ee0a 8789 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
01e54ef8
VM
8790 (lra_constraints): Use them.
8791
e2fd7ca7
SN
87922013-08-02 Sofiane Naci <sofiane.naci@arm.com>
8793
03b0ee0a
UB
8794 * config/arm/types.md (define_attr "type"): Add "load_acq"
8795 and "store_rel".
e2fd7ca7
SN
8796 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
8797 changes.
8798 (cortex_a53_store1): Likewise.
8799
0dcc26c3
JH
88002013-08-01 Jan Hubicka <jh@suse.cz>
8801
03b0ee0a
UB
8802 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
8803 partitions are not needed.
0dcc26c3 8804
0bd72901
UB
88052013-08-01 Uros Bizjak <ubizjak@gmail.com>
8806
8807 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
8808 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
8809 MAYBE_NON_Q_CLASS_P where appropriate.
8810
12123452
JH
88112013-08-01 Jan Hubicka <jh@suse.cz>
8812
8813 * cgraph.h (release_function_body): Declare.
8814 * tree.c (free_lang_data_in_decl): Free, parameters and return values
8815 of unused delcarations.
8816
ce852f9c
KT
88172013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8818
03b0ee0a
UB
8819 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
8820 RTL form when subtracting a constant.
ce852f9c 8821
c743b246
KT
88222013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8823
8824 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
8825 Generate canonical plus rtx with negated immediate instead of minus
8826 where appropriate.
8827 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
8828
c0c123ef
JH
88292013-08-01 Jan Hubicka <jh@suse.cz>
8830
8831 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
8832 (cgraph_release_function_body): Likewise.
8833 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8834 * cgraph.h (cgrpah_node): Rename abstract_and_needed
8835 to used_as_abstract_origin.
8836 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
8837 symbols used as abstract origins.
8838 * cgraphunit.c (analyze_functions): Update.
0bd72901
UB
8839 * ipa.c (symtab_remove_unreachable_nodes): Recompute
8840 used_as_abstract_origin.
c0c123ef 8841 * tree-inline.c (tree_function_versioning): Update
0bd72901
UB
8842 used_as_abstract_origin; be ready for DECL_RESULT and
8843 DECL_ARGUMENTS to be NULL.
c0c123ef 8844
0bd72901
UB
8845 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
8846 for abstract functions.
8847 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
8848 real symbols.
c0c123ef 8849
1f029433
JH
88502013-08-01 Jan Hubicka <jh@suse.cz>
8851
8852 * profile.c (compute_value_histograms): Fix thinko.
8853
c451f4d6
SN
88542013-08-01 Sofiane Naci <sofiane.naci@arm.com>
8855
8856 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
8857 aarch-common-protos.h to extra_headers.
8858 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
8859 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
8860 * config/aarch64/t-aarch64 (aarch-common.o): Define.
8861
34b512f5
SN
88622013-08-01 Sofiane Naci <sofiane.naci@arm.com>
8863
8864 * config/aarch64/aarch64.md (define_attr "type"): Delete.
8865 Include "../arm/types.md". Define "type" attribute for all patterns.
8866 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
8867 attribute changes.
8868
d86e633a
MM
88692013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
8870
8871 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
8872 to support power8 load fusion.
8873 (fusion_gpr_mem_load): Likewise.
8874
8875 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
8876
8877 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
8878 declarations for power8 load fusion.
8879 (emit_fusion_gpr_load): Likewise.
8880
8881 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8882 tuning for power8, turn on fusion mode by default. Turn on sign
8883 extending fusion mode if normal fusion mode is on, and we are at
8884 -O2 or -O3.
8885 (fusion_gpr_load_p): New function, return true if we can fuse an
8886 addis instruction with a dependent load to a GPR.
8887 (emit_fusion_gpr_load): Emit the instructions for power8 load
8888 fusion to GPRs.
8889
0bd72901 8890 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
d86e633a
MM
8891 (VSX load fusion peepholes): New peepholes to fuse together an
8892 addi instruction with a VSX load instruction.
8893
8894 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
8895 peepholes to fuse an addis instruction with a load to a GPR base
8896 register. If we are supporting sign extending fusions, convert
8897 sign extending loads to zero extending loads and add an explicit
8898 sign extension.
8899
c3f35647
SN
89002013-07-31 Sofiane Naci <sofiane.naci@arm.com>
8901
8902 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
8903 aarch-common-protos.h to extra_headers.
8904 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
8905 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
8906 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
8907 (arm_no_early_alu_shift_dep): Likewise.
8908 (arm_no_early_alu_shift_value_dep): Likewise.
8909 (arm_no_early_mul_dep): Likewise.
8910 (arm_no_early_store_addr_dep): Likewise.
8911 (arm_mac_accumulator_is_mul_result): Likewise.
8912 (arm_mac_accumulator_is_result): Likewise.
c3f35647 8913 * config/arm/aarch-common.c: ... here. New file.
0bd72901
UB
8914 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
8915 here to ...
c3f35647 8916 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
8917 (arm_no_early_alu_shift_dep): Likewise.
8918 (arm_no_early_alu_shift_value_dep): Likewise.
8919 (arm_no_early_mul_dep): Likewise.
8920 (arm_no_early_store_addr_dep): Likewise.
8921 (arm_mac_accumulator_is_mul_result): Likewise.
8922 (arm_mac_accumulator_is_result): Likewise.
c3f35647
SN
8923 * config/arm/aarch-common-protos.h: ... here. New file.
8924 * config/arm/t-arm (aarch-common.o): Define.
8925
89262013-07-31 Sofiane Naci <sofiane.naci@arm.com>
8927
8928 * config/arm/arm.md: Include new file "types.md".
8929 (define_attr "type"): Move from here to ...
8930 (define_attr "mul32"): Likewise.
8931 (define_attr "mul64"): Likewise.
8932 * config/arm/types.md: ... here. New file.
8933
228c1313
SH
89342013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
8935
8936 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
8937 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
8938
d6e9046d 89392013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8ac499bb
JBG
8940
8941 * gen-pass-instances.awk: Fix offset of substr().
8942
a167b052
DM
89432013-07-31 David Malcolm <dmalcolm@redhat.com>
8944
8945 * Makefile.in (pass-instances.def): New.
8946 (passes.o): Replace dependency on passes.def with one on
8947 pass-instances.def
8948
8949 * gen-pass-instances.awk: New.
8950
8951 * passes.c (pass_manager::pass_manager): Use pass-instances.def
8952 rather than passes.def, updating local definition of NEXT_PASS
8953 macro to add an extra NUM parameter (currently unused).
8954
315f8c0e
DM
89552013-07-30 David Malcolm <dmalcolm@redhat.com>
8956
8957 * Makefile.in (PASS_MANAGER_H): New.
8958 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
8959 (passes.o): Likewise.
8960 (statistics.o): Likewise.
8961 (cgraphunit.o): Likewise.
8962 (context.o): Depend on PASS_MANAGER_H.
8963
8964 * pass_manager.h: New.
8965
8966 * cgraphunit.c (cgraph_add_new_function): Update for moves
8967 of globals to fields of pass_manager.
8968 (analyze_function): Likewise.
8969 (expand_function): Likewise.
8970 (ipa_passes): Likewise.
8971 (compile): Likewise.
8972
8973 * context.c (context::context): New.
8974 * context.h (context::context): New.
8975 (context::get_passes): New.
8976 (context::passes_): New.
8977
8978 * lto-cgraph.c (input_node): Update for moves of globals to
8979 fields of pass_manager.
8980
8981 * passes.c (all_passes): Remove, in favor of a field of the
8982 same name within the new class pass_manager.
8983 (all_small_ipa_passes): Likewise.
8984 (all_lowering_passes): Likewise.
8985 (all_regular_ipa_passes): Likewise.
8986 (all_late_ipa_passes): Likewise.
8987 (all_lto_gen_passes): Likewise.
8988 (passes_by_id): Likewise.
8989 (passes_by_id_size): Likewise.
8990 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
8991 the new class pass_manager.
8992 (set_pass_for_id): Convert to...
8993 (pass_manager::set_pass_for_id): ...method.
8994 (get_pass_for_id): Convert to...
8995 (pass_manager::get_pass_for_id): ...method.
8996 (register_one_dump_file): Move body of implementation into...
8997 (pass_manager::register_one_dump_file): ...here.
8998 (register_dump_files_1): Convert to...
8999 (pass_manager::register_dump_files_1): ...method.
9000 (register_dump_files): Convert to...
9001 (pass_manager::register_dump_files): ...method.
9002 (create_pass_tab): Update for moves of globals to fields of
9003 pass_manager.
9004 (dump_passes): Move body of implementation into...
9005 (pass_manager::dump_passes): ...here.
9006 (register_pass): Move body of implementation into...
9007 (pass_manager::register_pass): ...here.
9008 (init_optimization_passes): Convert into...
9009 (pass_manager::pass_manager): ...constructor for new
9010 pass_manager class, and initialize the pass_lists array.
9011 (check_profile_consistency): Update for moves of globals to
9012 fields of pass_manager.
9013 (dump_profile_report): Move body of implementation into...
9014 (pass_manager::dump_profile_report): ...here.
9015 (ipa_write_summaries_1): Update for moves of pass lists from
9016 being globals to fields of pass_manager.
9017 (ipa_write_optimization_summaries): Likewise.
9018 (ipa_read_summaries): Likewise.
9019 (ipa_read_optimization_summaries): Likewise.
9020 (execute_all_ipa_stmt_fixups): Likewise.
9021
9022 * statistics.c (statistics_fini): Update for moves of globals to
9023 fields of pass_manager.
9024
9025 * toplev.c (general_init): Replace call to
9026 init_optimization_passes with construction of the pass_manager
9027 instance.
9028
9029 * tree-pass.h (all_passes): Remove, in favor of a field of the
9030 same name within the new class pass_manager.
9031 (all_small_ipa_passes): Likewise.
9032 (all_lowering_passes): Likewise.
9033 (all_regular_ipa_passes): Likewise.
9034 (all_lto_gen_passes): Likewise.
9035 (all_late_ipa_passes): Likewise.
9036 (passes_by_id): Likewise.
9037 (passes_by_id_size): Likewise.
9038 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
9039 the new class pass_manager.
9040 (get_pass_for_id): Remove.
9041
02cab1c1
RE
90422013-07-30 Richard Earnshaw <rearnsha@arm.com>
9043
9044 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
9045 configs.
9046
b2d3f886
RE
90472013-07-30 Richard Earnshaw <rearnsha@arm.com>
9048
9049 * arm.md (mulhi3): New expand pattern.
9050
605e86fa
JH
90512013-07-30 Jan Hubicka <jh@suse.cz>
9052 Martin Liska <marxin.liska@gmail.com>
9053
9054 * profile.c (compute_value_histograms): Do not ICE when
9055 there is mismatch only on some counters.
9056
14a87636
ZC
90572013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
9058
9059 PR rtl-optimization/57637
9060 * function.c (move_insn_for_shrink_wrap): Also check the
9061 GEN set of the LIVE problem for the liveness analysis
9062 if it exists, otherwise give up.
9063
0100cd3f
BS
90642013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
9065
9066 PR tree-optimization/57993
9067 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
9068 replaced statement in the candidate table.
9069 (phi_add_costs): Return infinite cost when the hidden basis does
9070 not dominate all phis on which the candidate is dependent.
9071 (replace_one_candidate): Record replaced statement in the
9072 candidate table.
9073
f0d811f7
JR
90742013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
9075
9076 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
9077 (ashlv2si3): New expander.
9078 (*ashlv2si3_i): New define_insn_and_split.
9079 * predicates.md (float_operation): Allow patterns with three
9080 basic sub-patterns.
9081
bba33211
JR
9082 PR rtl-optimization/58021
9083 * mode-switching.c (create_pre_exit): Always split off preceding
9084 insns if we are not at the basic block head.
9085
ff3f3951
MR
90862013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
9087
9088 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
9089 (UCLIBC_DYNAMIC_LINKER): New macro.
9090 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
9091 `-mnan=2008'.
9092 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
9093 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
9094 `-mnan=2008'.
9095 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
9096 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
9097 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
9098 for SF and DF modes. Use ieee_quad_format for TF mode.
9099 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
9100 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
9101 (mips_option_override): Handle `-mnan=legacy'.
9102 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
9103 `-mabs=2008' and `-mnan=2008'.
9104 (OPTION_DEFAULT_SPECS): Add "nan" default.
9105 (ASM_SPEC): Handle `-mnan='.
9106 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
9107 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
9108 comment accordingly.
9109 (neg<mode>2): Likewise.
9110 * config/mips/mips.opt (mabs, mnan): New options.
9111 * doc/install.texi (Configuration): Document `--with-nan=' option.
9112 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
9113 `-mnan=' options.
9114 (MIPS Options): Document them.
9115 * config.gcc <mips*-*-*>: Handle `--with-nan='.
9116 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
9117 * configure: Regenerate.
9118 * config.in: Regenerate.
9119
576e2f37
UB
91202013-07-29 Uros Bizjak <ubizjak@gmail.com>
9121
9122 * config/i386/i386.md (float post-reload splitters): Do not check
9123 for subregs of SSE registers.
9124
91252013-07-29 Uros Bizjak <ubizjak@gmail.com>
9126 H.J. Lu <hongjiu.lu@intel.com>
9127
9128 PR target/57954
9129 PR target/57988
9130 * config/i386/i386.md (post-reload splitter
9131 to avoid partial SSE reg dependency stalls): New pattern.
9132
a71f0749
DV
91332013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
9134
9135 * config/s390/s390.md ("movcc"): Swap load and store instructions.
9136
4c97f1cc
JR
91372013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
9138
9139 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
9140 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
9141
b0c733d8
CC
91422013-07-26 Cary Coutant <ccoutant@google.com>
9143
9144 * dwarf2out.c (die_checksum_ordered): Don't include template
9145 instantiations in signature.
9146 (is_template_parameter): New function.
9147 (is_template_instantiation): New function.
9148 (generate_skeleton_bottom_up): Don't include template instantiations
9149 in type unit DIE.
9150 (generate_skeleton): Likewise.
9151 (break_out_comdat_types): Move recursive call to break out nested
9152 types earlier.
9153 (prune_unused_types_mark_generic_parms_dies): Call
9154 is_template_parameter.
9155
040d8a1c
IB
91562013-07-26 Ian Bolton <ian.bolton@arm.com>
9157
9158 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
9159 uses vector registers.
89fdc743 9160 * config/aarch64/iterators.md: Add attributes rtn and vas.
040d8a1c 9161
85bd4ac6 91622013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576e2f37 9163 Richard Earnshaw <richard.earnshaw@arm.com>
85bd4ac6
KT
9164
9165 * combine.c (simplify_comparison): Re-canonicalize operands
576e2f37 9166 where appropriate.
85bd4ac6
KT
9167 * config/arm/arm.md (movcond_addsi): New splitter.
9168
b6051207
SA
91692013-07-25 Sterling Augustine <saugustine@google.com>
9170
9171 * dwarf2out.c (size_of_pubnames): Move code to...
9172 (include_pubname_in_output): ...here. New.
9173 (want_pubnames): Rearrange.
9174 (output_pubnames): Call include_pubname_in_output. Move assertion.
9175
41a7c215
CM
91762013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
9177
9178 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
9179
91802013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
9181
9182 PR target/38836
9183 * doc/extend.texi: Remove obsolete builtins. Fix
9184 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
9185
49bde175
JH
91862013-07-25 Jan Hubicka <jh@suse.cz>
9187
9188 * cgraph.c (release_function_body): Break out from ...
9189 (cgraph_release_function_body): ... this one; also release DECL_RESULT
9190 and DECL_ARGUMENTS.
9191 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
9192 old_tree in the map.
9193 (create_specialized_node): Update.
9194 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
9195 into index.
41a7c215
CM
9196 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
9197 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
49bde175
JH
9198 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
9199 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
9200 DECL_RESULT.
9201
4870352d
KT
92022013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9203
9204 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
9205 addsi3_carryin_alt2_<optab>): Correct output template.
9206
1d6aee1c
KT
92072013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9208
9209 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
9210 Adjust for arm_restrict_it.
9211 Remove trailing whitespace.
9212
c7cafd75
MK
92132013-07-25  Mark Kettenis  <kettenis@openbsd.org>
9214
017d38f5
MK
9215 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
9216 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
9217
c7cafd75
MK
9218 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
9219
00b7527b
VM
92202013-07-25 Vladimir Makarov <vmakarov@redhat.com>
9221
9222 PR rtl-optimization/57960
9223 * lra-constraints.c (process_alt_operands): Use the right mode
9224 when checking strict_low.
9225
4f63dfc6
JH
92262013-07-25 Jan Hubicka <jh@suse.cz>
9227
9228 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
9229 * cgraph.c (cgraph_remove_node): Do not release function body
9230 when in cgraph streaming.
9231 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
41a7c215
CM
9232 in other partitions are not considered reachable; fix handling of
9233 clones.
4f63dfc6 9234
e6dcfa18
RR
92352013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9236
9237 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
9238
0b93d3b6
RR
92392013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9240
9241 PR target/19599
9242 PR target/57731
bb80c2eb 9243 PR target/57837
e6dcfa18 9244 * config/arm/arm.md ("*sibcall_insn): Replace use of
0b93d3b6 9245 Ss with US. Adjust output for v5 and v4t.
41a7c215 9246 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
e6dcfa18 9247
0b93d3b6
RR
9248 * config/arm/constraints.md ("Ss"): Rename to US.
9249
690688b3
TG
92502013-07-25 Terry Guo <terry.guo@arm.com>
9251
9252 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
9253 shift_add/shift_sub0/shift_sub1 RTXs.
9254
a4ad093b 92552013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
12211b99 9256 Anton Blanchard <anton@au1.ibm.com>
a4ad093b
BS
9257
9258 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
9259 (altivec_vpks<VI_char>ss): Likewise.
9260 (altivec_vpks<VI_char>us): Likewise.
9261 (altivec_vpku<VI_char>us): Likewise.
9262 (altivec_vpku<VI_char>um): Likewise.
9263
8c5005ce
DM
92642013-07-24 David Malcolm <dmalcolm@redhat.com>
9265
9266 Introduce context class.
9267
9268 * Makefile.in (CONTEXT_H): New.
9269 (OBJS): Add context.o.
9270 (toplev.o): Add CONTEXT_H to dependencies.
9271 (context.o): New.
9272
41a7c215 9273 * toplev.c (general_init): Create the singleton gcc::context instance.
8c5005ce
DM
9274
9275 * context.c: New.
9276
9277 * context.h: New.
9278
ce4a9422
JR
92792013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
9280
9281 PR rtl-optimization/57968
9282 * mode-switching.c (create_pre_exit): Allow instructions that
9283 don't set a return register to need a non-exit mode.
9284
493f4c9e 92852013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 9286 Anton Blanchard <anton@au1.ibm.com>
493f4c9e 9287
b5860fd3
WS
9288 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
9289 operands to vperm for little endian.
9290 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
9291 of lvsl to create the control mask for a vperm for little endian.
493f4c9e 9292
73792b92 92932013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 9294 Anton Blanchard <anton@au1.ibm.com>
73792b92
BS
9295
9296 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9297 two operands for little-endian.
9298
14c21302
SE
92992013-07-23 Steve Ellcey <sellcey@mips.com>
9300
9301 * config/mips/mips.c (mips_case_values_threshold): New.
9302 (TARGET_CASE_VALUES_THRESHOLD): Define.
9303
a6056198 93042013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 9305 Anton Blanchard <anton@au1.ibm.com>
a6056198
BS
9306
9307 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
9308 selection of field for vector splat in little endian mode.
9309
dd7a40e1
MM
93102013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9311
9312 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
9313 expanders to rs6000.md.
9314 (ior<mode>3): Likewise.
9315 (and<mode>3): Likewise.
9316 (one_cmpl<mode>2): Likewise.
9317 (nor<mode>3): Likewise.
9318 (andc<mode>3): Likewise.
9319 (eqv<mode>3): Likewise.
9320 (nand<mode>3): Likewise.
9321 (orc<mode>3): Likewise.
9322
9323 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
9324 declaration.
9325
9326 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
9327 to split multi-word logical operations.
9328 (rs6000_split_logical_di): Likewise.
9329 (rs6000_split_logical): Likewise.
9330
9331 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
9332 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
9333 and allow TImode operations in 32-bit.
9334 (vsx_and<mode>3_64bit): Likewise.
9335 (vsx_ior<mode>3_32bit): Likewise.
9336 (vsx_ior<mode>3_64bit): Likewise.
9337 (vsx_xor<mode>3_32bit): Likewise.
9338 (vsx_xor<mode>3_64bit): Likewise.
9339 (vsx_one_cmpl<mode>2_32bit): Likewise.
9340 (vsx_one_cmpl<mode>2_64bit): Likewise.
9341 (vsx_nor<mode>3_32bit): Likewise.
9342 (vsx_nor<mode>3_64bit): Likewise.
9343 (vsx_andc<mode>3_32bit): Likewise.
9344 (vsx_andc<mode>3_64bit): Likewise.
9345 (vsx_eqv<mode>3_32bit): Likewise.
9346 (vsx_eqv<mode>3_64bit): Likewise.
9347 (vsx_nand<mode>3_32bit): Likewise.
9348 (vsx_nand<mode>3_64bit): Likewise.
9349 (vsx_orc<mode>3_32bit): Likewise.
9350 (vsx_orc<mode>3_64bit): Likewise.
9351
9352 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
9353 logical types in GPRs.
9354
9355 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
9356 logical insns to rs6000.md, and allow TImode operations in
9357 32-bit.
9358 (altivec_ior<mode>3): Likewise.
9359 (altivec_xor<mode>3): Likewise.
9360 (altivec_one_cmpl<mode>2): Likewise.
9361 (altivec_nor<mode>3): Likewise.
9362 (altivec_andc<mode>3): Likewise.
9363
9364 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
9365 attributes for moving the 128-bit logical operations into
9366 rs6000.md.
9367 (BOOL_REGS_OUTPUT): Likewise.
9368 (BOOL_REGS_OP1): Likewise.
9369 (BOOL_REGS_OP2): Likewise.
9370 (BOOL_REGS_UNARY): Likewise.
9371 (BOOL_REGS_AND_CR0): Likewise.
9372 (one_cmpl<mode>2): Add support for DI logical operations on
9373 32-bit, splitting the operations to 32-bit.
9374 (anddi3): Likewise.
9375 (iordi3): Likewise.
9376 (xordi3): Likewise.
9377 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
9378 changes to combine the 32/64-bit code, allow logical operations on
9379 TI mode in 32-bit, and to use similar match_operator patterns like
9380 scalar mode uses. Combine the Altivec and VSX code for logical
9381 operations, and move it here.
9382 (ior<mode>3, 128-bit types): Likewise.
9383 (xor<mode>3, 128-bit types): Likewise.
9384 (one_cmpl<mode>3, 128-bit types): Likewise.
9385 (nor<mode>3, 128-bit types): Likewise.
9386 (andc<mode>3, 128-bit types): Likewise.
9387 (eqv<mode>3, 128-bit types): Likewise.
9388 (nand<mode>3, 128-bit types): Likewise.
9389 (orc<mode>3, 128-bit types): Likewise.
9390 (and<mode>3_internal): Likewise.
9391 (bool<mode>3_internal): Likewise.
9392 (boolc<mode>3_internal1): Likewise.
9393 (boolc<mode>3_internal2): Likewise.
9394 (boolcc<mode>3_internal1): Likewise.
9395 (boolcc<mode>3_internal2): Likewise.
9396 (eqv<mode>3_internal1): Likewise.
9397 (eqv<mode>3_internal2): Likewise.
9398 (one_cmpl1<mode>3_internal): Likewise.
9399
12211b99 94002013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
9b69d4b4
DH
9401
9402 * config/microblaze/microblaze.c (microblaze_expand_prologue):
9403 Rename flag_stack_usage to flag_stack_usage_info.
9404
12211b99 94052013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
450b0ebb 9406
a5f257fd
ME
9407 * config/microblaze/sync.md: New file.
9408 * config/microblaze/microblaze.md: Include sync.md
9409 * config/microblaze/microblaze.c: Add print_operand 'y'.
9410 * config/microblaze/constraints.md: Add memory_contraint
9411 'Q' which is a single register.
450b0ebb 9412
49fba14f
EB
94132013-07-23 Eric Botcazou <ebotcazou@adacore.com>
9414
9415 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
9416
c7b3b99f
PCC
94172013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
9418
9419 * reload.c (find_reloads): Exit loop once we find this operand
9420 cannot be reloaded somehow for this alternative.
9421
9422 * reload.c (find_reloads): Exit loop once we find a hard register.
9423
9424 * rtlanal.c (computed_jump_p): Exit loop once we find label
9425 reference is used.
9426
9427 * i386.c (ix86_pad_returns): Exit loop after setting replace.
9428
9429 * cfgloopmanip.c (remove_path): Exit loop after setting
9430 irred_invalidated.
9431
9432 * gensupport.c (subst_dup): Avoid loop if code is not
9433 MATCH_DUP nor MATCH_OP_DUP.
9434
c8fbf1fa
NBJ
94352013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
9436
9437 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
9438
9259db42
YZ
94392013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
9440
9441 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
9442 true for SP_REGNUM if mode == ptr_mode.
9443 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
9444 with value R0_REGNUM + 31.
9445
00edcfbe
YZ
94462013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
9447
9448 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
9449 pad pointer-typed argument downward.
9450
43be9a95
YZ
94512013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
9452
9453 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
9454 and __ILP32__ when the ILP32 model is in use.
9455
28514dda
YZ
94562013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
9457
9458 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
9459 (aarch64_load_symref_appropriately): In the case of
9460 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
9461 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
9462 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
9463 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
9464 if 'mode' doesn't equal to 'ptr_mode'.
9465 (aarch64_output_mi_thunk): Add an assertion on the alignment of
9466 'vcall_offset'; change to call aarch64_emit_move differently depending
9467 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
9468 to calculate the upper bound of 'vcall_offset'.
9469 (aarch64_cannot_force_const_mem): Change to also return true if
9470 mode != ptr_mode.
9471 (aarch64_legitimize_reload_address): In the case of large
9472 displacements, add new local variable 'xmode' and an assertion
9473 based on it; change to use 'xmode' to generate the new rtx and
9474 reload.
9475 (aarch64_asm_trampoline_template): Change to generate the template
9476 differently depending on TARGET_ILP32 or not; change to use
9477 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
9478 (aarch64_trampoline_size): Removed.
9479 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
9480 and replace immediate literals with it. Change to use 'ptr_mode'
9481 instead of 'DImode' and call convert_memory_address if the mode
9482 of 'fnaddr' doesn't equal to 'ptr_mode'.
9483 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
9484 to output symbol.
9485 (aarch64_elf_asm_destructor): Likewise.
9486 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
9487 on TARGET_ILP32 instead of aarch64_trampoline_size.
9488 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
9489 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
9490 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
9491 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
9492 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
9493 (storewb_pair<GPI:mode>_<P:mode>): ... this.
9494 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
9495 depending on the value of 'mode'.
9496 (add_losym_<mode>): New.
9497 (ldr_got_small_<mode>): New, based on ldr_got_small.
9498 (ldr_got_small): Remove.
9499 (ldr_got_small_sidi): New.
9500 * config/aarch64/iterators.md (P): New.
9501 (PTR): Change to 'ptr_mode' in the condition.
9502
17a819cb
YZ
95032013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
9504
9505 * config.gcc (aarch64*-*-*): Support --with-abi.
9506 (aarch64*-*-elf): Support --with-multilib-list.
9507 (aarch64*-*-linux*): Likewise.
9508 (supported_defaults): Add abi to aarch64*-*-*.
9509 * configure.ac: Mention AArch64 for --with-multilib-list.
9510 * configure: Re-generated.
9511 * config/aarch64/biarchilp32.h: New file.
9512 * config/aarch64/biarchlp64.h: New file.
9513 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
9514 (ABI_SPEC): Ditto.
9515 (MULTILIB_DEFAULTS): Ditto.
9516 (DRIVER_SELF_SPECS): Ditto.
9517 (ASM_SPEC): Update to also substitute -mabi.
9518 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
9519 file whose name depends on -mabi= and -mbig-endian.
9520 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
9521 TARGET_ILP32.
9522 (POINTER_SIZE): New define.
9523 (POINTERS_EXTEND_UNSIGNED): Ditto.
9524 (enum aarch64_abi_type): New enumeration tag.
9525 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
9526 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
9527 (TARGET_ILP32): New define.
9528 * config/aarch64/aarch64.opt (mabi): New.
9529 (aarch64_abi): New.
9530 (ilp32, lp64): New values for -mabi.
9531 * config/aarch64/t-aarch64 (comma): New define.
9532 (MULTILIB_OPTIONS): Ditto.
9533 (MULTILIB_DIRNAMES): Ditto.
9534 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
9535 * doc/invoke.texi: Document -mabi for AArch64.
9536
9f9cbdce
GJL
95372013-07-23 Georg-Johann Lay <avr@gjlay.de>
9538
9539 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
9540
7061977b 95412013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 9542 Anton Blanchard <anton@au1.ibm.com>
7061977b
BS
9543
9544 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
9545 endianness when selecting field to splat.
9546
75a41878
EC
95472013-07-22 Eric Christopher <echristo@gmail.com>
9548
9549 * dwarf2out.c (die_odr_checksum): New function to use
9550 CHECKSUM_ macros and ULEB128 for DIE tag.
9551 (generate_type_signature): Use.
41a7c215 9552
38ae58ca
EB
95532013-07-22 Eric Botcazou <ebotcazou@adacore.com>
9554
9555 * config.gcc (sparc*-*-*): Accept leon3 processor.
9556 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
9557 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
9558 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
9559 * config/sparc/sparc.opt (enum processor_type): Add leon3.
9560 (mfix-ut699): Adjust comment.
9561 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
9562 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
9563 (CPP_CPU_SPEC): Likewise.
9564 (ASM_CPU_SPEC): Likewise.
9565 * config/sparc/sparc.c (leon3_cost): New constant.
9566 (sparc_option_override): Add leon3 support.
9567 (mem_ref): New function.
9568 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
9569 (sparc_do_work_around_errata): Look into the instruction in the delay
9570 slot and adjust accordingly. Add fix for the data cache nullify issues
9571 of the UT699. Change insertion position for the NOP.
9572 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
9573 (leon3_load): New reservation.
9574 (leon_store): Bump latency to 2.
9575 (grfpu): New automaton.
9576 (grfpu_alu): New unit.
9577 (grfpu_ds): Likewise.
9578 (leon_fp_alu): Adjust.
9579 (leon_fp_mult): Delete.
9580 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
9581 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
9582 * config/sparc/sparc.md (cpu): Add leon3.
9583 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
9584 (swapsi): Likewise.
9585 (atomic_test_and_set): Likewise.
9586 (ldstub): Likewise.
9587
04dfc6df
JU
95882013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
9589
9590 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
9591 default for R5900 targets.
9592 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
9593 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
9594 * config/mips/mips.c (mips_option_override): Report an error for
9595 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
9596 for -march=r5900 -mhard-float.
9597
c7b3b99f 95982013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
ae382ebd
PCC
9599
9600 * df-problems.c (can_move_insns_across): Exit loop once we
9601 find a non-fixed, non-global register.
9602
9603 * ipa-pure-const.c (propagate_nothrow): Exit loop after
9604 setting can_throw.
9605
9606 * omega.c (omega_eliminate_red): Break after setting red_found.
9607 (omega_problem_has_red_equations): Similarly after setting found.
9608 (omega_query_variable): Similarly after setting coupled.
9609
9b6e6981
MP
96102013-07-22 Marek Polacek <polacek@redhat.com>
9611
9612 * gimplify.c: Don't include gimple.h twice.
9613
5e5f7673
KT
96142013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9615
9616 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
9617 instead of TARGET_THUMB1.
9618 (Pz): New constraint.
9619 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
9620 encodings.
9621 (compare_negsi_si): Likewise.
9622 (compare_addsi2_op0): Likewise.
9623 (compare_addsi2_op1): Likewise.
9624 (addsi3_carryin_<optab>): Likewise.
9625 (addsi3_carryin_alt2_<optab>): Likewise.
9626 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
9627 for arm_restrict_it.
9628 (subsi3_carryin): Likewise.
9629 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
9630 (minmax_arithsi): Disable for arm_restrict_it.
9631 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
9632 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
9633 (satsi_<SAT:code>_shift): Likewise.
9634 (arm_shiftsi3): Add alternative for 16-bit encoding.
9635 (arm32_movhf): Disable for arm_restrict_it.
9636 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
9637 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
9638
859abddd
SN
96392013-07-22 Sofiane Naci <sofiane.naci@arm.com>
9640
9641 * config/arm/arm.md (attribute "insn"): Delete.
9642 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
9643 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
9644 (not_shiftsi): Update for attribute change.
9645 (not_shiftsi_compare0): Likewise.
9646 (not_shiftsi_compare0_scratch): Likewise.
9647 (arm_one_cmplsi2): Likewise.
9648 (thumb1_one_cmplsi2): Likewise.
9649 (notsi_compare0): Likewise.
9650 (notsi_compare0_scratch): Likewise.
9651 (thumb1_movdi_insn): Likewise.
9652 (arm_movsi_insn): Likewise.
9653 (movhi_insn_arch4): Likewise.
9654 (movhi_bytes): Likewise.
9655 (arm_movqi_insn): Likewise.
9656 (thumb1_movqi_insn): Likewise.
9657 (arm32_movhf): Likewise.
9658 (thumb1_movhf): Likewise.
9659 (arm_movsf_soft_insn): Likewise.
9660 (thumb1_movsf_insn): Likewise.
9661 (thumb_movdf_insn): Likewise.
9662 (movsicc_insn): Likewise.
9663 (movsfcc_soft_insn): Likewise.
9664 (and_scc): Likewise.
9665 (cond_move): Likewise.
9666 (if_move_not): Likewise.
9667 (if_not_move): Likewise.
9668 (if_shift_move): Likewise.
9669 (if_move_shift): Likewise.
9670 (if_shift_shift): Likewise.
9671 (if_not_arith): Likewise.
9672 (if_arith_not): Likewise.
9673 (cond_move_not): Likewise.
9674 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
9675 (neon_mov<mode>): Likewise.
9676 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
9677 (thumb2_movsi_vfp): Likewise.
9678 (movsf_vfp): Likewise.
9679 (thumb2_movsf_vfp): Likewise.
371e77e3
UB
9680 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
9681 change.
859abddd
SN
9682 (cortexa7_older_only): Likewise.
9683 (cortexa7_younger): Likewise.
9684 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
9685 (1020alu_shift_op): Likewise.
9686 (1020alu_shift_reg_op): Likewise.
9687 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
9688 (alu_shift_op): Likewise.
9689 (alu_shift_reg_op): Likewise.
9690 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
9691 (11_alu_shift_op): Likewise.
9692 (11_alu_shift_reg_op): Likewise.
9693 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
9694 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
9695 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
9696 change.
859abddd
SN
9697 (cortex_a15_alu_shift): Likewise.
9698 (cortex_a15_alu_shift_reg): Likewise.
9699 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
9700 (cortex_a5_alu_shift): Likewise.
371e77e3
UB
9701 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
9702 change.
859abddd 9703 (cortex_a53_alu_shift): Likewise.
371e77e3
UB
9704 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
9705 change.
859abddd
SN
9706 (cortex_a7_alu_reg): Likewise.
9707 (cortex_a7_alu_shift): Likewise.
9708 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
9709 (cortex_a8_alu_shift): Likewise.
9710 (cortex_a8_alu_shift_reg): Likewise.
9711 (cortex_a8_mov): Likewise.
9712 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
9713 (cortex_a9_dp_shift): Likewise.
9714 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
9715 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
9716 (cortex_r4_mov): Likewise.
9717 (cortex_r4_alu_shift): Likewise.
9718 (cortex_r4_alu_shift_reg): Likewise.
9719 * config/arm/fa526.md (526_alu_op): Update for attribute change.
9720 (526_alu_shift_op): Likewise.
9721 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
9722 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
9723 (626te_alu_shift_op): Likewise.
9724 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
9725 (726te_alu_op): Likewise.
9726 (726te_alu_shift_op): Likewise.
9727 (726te_alu_shift_reg_op): Likewise.
9728 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
9729 (mp626_alu_shift_op): Likewise.
9730 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
9731 (pj4_alu_e1_conds): Likewise.
9732 (pj4_alu): Likewise.
9733 (pj4_alu_conds): Likewise.
9734 (pj4_shift): Likewise.
9735 (pj4_shift_conds): Likewise.
9736 (pj4_alu_shift): Likewise.
9737 (pj4_alu_shift_conds): Likewise.
9738
95b97fac
KT
97392013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9740
9741 * config/arm/predicates.md (shiftable_operator_strict_it):
9742 New predicate.
9743 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
9744 Disable cond_exec version for arm_restrict_it.
9745 (thumb2_smaxsi3): Convert to generate cond_exec.
9746 (thumb2_sminsi3): Likewise.
9747 (thumb32_umaxsi3): Likewise.
9748 (thumb2_uminsi3): Likewise.
9749 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
9750 (thumb2_neg_abssi2): Likewise.
9751 (thumb2_mov_scc): Add alternative for 16-bit encoding.
9752 (thumb2_movsicc_insn): Adjust alternatives.
9753 (thumb2_mov_negscc): Disable for arm_restrict_it.
9754 (thumb2_mov_negscc_strict_it): New pattern.
9755 (thumb2_mov_notscc_strict_it): New pattern.
9756 (thumb2_mov_notscc): Disable for arm_restrict_it.
9757 (thumb2_ior_scc): Likewise.
9758 (thumb2_ior_scc_strict_it): New pattern.
9759 (thumb2_cond_move): Adjust for arm_restrict_it.
9760 (thumb2_cond_arith): Disable for arm_restrict_it.
9761 (thumb2_cond_arith_strict_it): New pattern.
9762 (thumb2_cond_sub): Adjust for arm_restrict_it.
9763 (thumb2_movcond): Likewise.
9764 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
9765 (thumb2_zero_extendhisi2_v6): Likewise.
9766 (thumb2_zero_extendqisi2_v6): Likewise.
9767 (orsi_notsi_si): Likewise.
9768 (orsi_not_shiftsi_si): Likewise.
9769
d5a6ef82
GJL
97702013-07-22 Georg-Johann Lay <avr@gjlay.de>
9771
9772 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
9773 instruction sequence is 1 byte shorter.
9774
d9e71154
UB
97752013-07-22 Uros Bizjak <ubizjak@gmail.com>
9776
9777 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
9778 it is not needed after split.
9779
8c6381ec
IS
97802013-07-20 Iain Sandoe <iain@codesourcery.com>
9781
9782 PR target/51784
9783 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
9784 second label for nonlocal goto receivers. Don't output pic base labels
9785 unless we're producing PIC; mark that action unreachable().
9786 (ix86_save_reg): If the function contains a nonlocal label, save the
9787 PIC base reg.
9788 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
f43245d1 9789 * config/darwin.c (emitted_pic_label_num): New GTY.
8c6381ec
IS
9790 (update_pic_label_number_if_needed): New.
9791 (machopic_output_function_base_name): Adjust for nonlocal receiver
9792 case.
9793 (machopic_should_output_picbase_label): New.
9794 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
9795 (nonlocal_goto_receiver): New insn and split.
9796
d05d0709
JG
97972013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
9798
9799 * config/aarch64/aarch64-builtins.c
9800 (aarch64_fold_builtin): Fold abs in all modes.
9801 * config/aarch64/aarch64-simd-builtins.def
9802 (abs): Enable for all modes.
9803 * config/aarch64/arm_neon.h
9804 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
9805 (vabs_f64): Add missing intrinsic.
9806
ba590e63
IB
98072013-07-19 Ian Bolton <ian.bolton@arm.com>
9808
9809 * config/aarch64/arm_neon.h (vabs_s64): New function
9810
02371798
GJL
98112013-07-19 Georg-Johann Lay <avr@gjlay.de>
9812
9813 PR target/57516
9814 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
9815 * config/avr/avr.md (adjust_len): Add `round'.
9816 * config/avr/avr-protos.h (avr_out_round): New prototype.
9817 (avr_out_plus): Add `out_label' argument.
9818 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
9819 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
9820 Handle the case where `insn' is just a pattern.
9821 (avr_out_bitop): Handle the case where `insn' is just a pattern.
9822 (avr_out_round): New function.
9823 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
9824
12211b99 98252013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
b950ac25
DH
9826
9827 * config/microblaze/microblaze.c (microblaze_expand_prologue):
9828 Add check for flag_stack_usage to handle -fstack-usage support
9829
12211b99 98302013-07-18 Pat Haugen <pthaugen@us.ibm.com>
ed1fd999
PH
9831
9832 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
9833 interaction for new Power8 flags and VSX.
9834
df9dda2d
ST
98352013-07-18 Sriraman Tallam <tmsriram@google.com>
9836
9837 PR middle-end/57698
9838 * tree-inline.c (expand_call_inline): Emit errors during
9839 early_inlining only if optimization is not turned on.
9840
0f9cdef4
DM
98412013-07-18 David Malcolm <dmalcolm@redhat.com>
9842
9843 * passes.def: New.
9844
9845 * passes.c (init_optimization_passes): Move the construction of
9846 the pass hierarchy into a new passes.def file.
9847
9848 * Makefile.in (passes.o): Add dependency on passes.def.
9849
2efa4087
DM
98502013-07-18 David Malcolm <dmalcolm@redhat.com>
9851
9852 * passes.c (init_optimization_passes): Introduce macros for
9853 constructing the tree of passes (INSERT_PASSES_AFTER,
9854 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
9855 TERMINATE_PASS_LIST).
9856
bc404e1b
VM
98572013-07-18 Vladimir Makarov <vmakarov@redhat.com>
9858 Wei Mi <wmi@google.com>
9859
9860 PR rtl-optimization/57878
9861 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
9862 top.
9863 (reload_pseudo_compare_func): Check nregs first for reload
9864 pseudos.
9865
d675843f
DM
98662013-07-18 David Malcolm <dmalcolm@redhat.com>
9867
9868 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
9869
c7b3b99f 98702013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
bcb97fbd
PCC
9871
9872 * read-rtl.c (validate_const_int): Once an invalid character is
9873 seen, quit the loop.
9874
9875 * gengtype.c (write_roots): Similarly once we find the "deletable"
9876 or "if_marked" option.
9877
52fceb44
SN
98782013-07-18 Sofiane Naci <sofiane.naci@arm.com>
9879
9880 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
9881 "xtab" and "sat". Move value "clz" from here to ...
9882 (attriubte "type"): ... here.
9883 (satsi_<SAT:code>): Delete "insn" attribute.
9884 (satsi_<SAT:code>_shift): Likewise.
9885 (arm_zero_extendqisi2addsi): Likewise.
9886 (arm_extendqisi2addsi): Likewise.
9887 (clzsi2): Update for attribute changes.
9888 (rbitsi2): Likewise.
371e77e3
UB
9889 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
9890 attribute.
52fceb44
SN
9891 (arm_usatsihi): Likewise.
9892 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
9893
006bd006
SN
98942013-07-18 Sofiane Naci <sofiane.naci@arm.com>
9895
9896 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
371e77e3
UB
9897 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
9898 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
006bd006
SN
9899 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
9900 in alphabetical order.
9901 (attribute "core_cycles"): Update for attribute changes.
9902 (arm_addsi3): Likewise.
9903 (addsi3_compare0): Likewise.
9904 (addsi3_compare0_scratch): Likewise.
9905 (addsi3_compare_op1): Likewise.
9906 (addsi3_compare_op2): Likewise.
9907 (compare_addsi2_op0): Likewise.
9908 (compare_addsi2_op1): Likewise.
9909 (addsi3_carryin_shift_<optab>): Likewise.
9910 (subsi3_carryin_shift): Likewise.
9911 (rsbsi3_carryin_shift): Likewise.
9912 (arm_subsi3_insn): Likewise.
9913 (subsi3_compare0): Likewise.
9914 (subsi3_compare): Likewise.
9915 (arm_andsi3_insn): Likewise.
9916 (thumb1_andsi3_insn): Likewise.
9917 (andsi3_compare0): Likewise.
9918 (andsi3_compare0_scratch): Likewise.
9919 (zeroextractsi_compare0_scratch
9920 (andsi_not_shiftsi_si): Likewise.
9921 (iorsi3_insn): Likewise.
9922 (iorsi3_compare0): Likewise.
9923 (iorsi3_compare0_scratch): Likewise.
9924 (arm_xorsi3): Likewise.
9925 (thumb1_xorsi3_insn): Likewise.
9926 (xorsi3_compare0): Likewise.
9927 (xorsi3_compare0_scratch): Likewise.
9928 (satsi_<SAT:code>_shift): Likewise.
9929 (rrx): Likewise.
9930 (arm_shiftsi3): Likewise.
9931 (shiftsi3_compare0): Likewise.
9932 (not_shiftsi): Likewise.
9933 (not_shiftsi_compare0): Likewise.
9934 (not_shiftsi_compare0_scratch): Likewise.
9935 (arm_one_cmplsi2): Likewise.
9936 (thumb_one_complsi2): Likewise.
9937 (notsi_compare0): Likewise.
9938 (notsi_compare0_scratch): Likewise.
9939 (thumb1_zero_extendhisi2): Likewise.
9940 (arm_zero_extendhisi2): Likewise.
9941 (arm_zero_extendhisi2_v6): Likewise.
9942 (arm_zero_extendhisi2addsi): Likewise.
9943 (thumb1_zero_extendqisi2): Likewise.
9944 (thumb1_zero_extendqisi2_v6): Likewise.
9945 (arm_zero_extendqisi2): Likewise.
9946 (arm_zero_extendqisi2_v6): Likewise.
9947 (arm_zero_extendqisi2addsi): Likewise.
9948 (thumb1_extendhisi2): Likewise.
9949 (arm_extendhisi2): Likewise.
9950 (arm_extendhisi2_v6): Likewise.
9951 (arm_extendqisi): Likewise.
9952 (arm_extendqisi_v6): Likewise.
9953 (arm_extendqisi2addsi): Likewise.
9954 (thumb1_extendqisi2): Likewise.
9955 (thumb1_movdi_insn): Likewise.
9956 (arm_movsi_insn): Likewise.
9957 (movsi_compare0): Likewise.
9958 (movhi_insn_arch4): Likewise.
9959 (movhi_bytes): Likewise.
9960 (arm_movqi_insn): Likewise.
9961 (thumb1_movqi_insn): Likewise.
9962 (arm32_movhf): Likewise.
9963 (thumb1_movhf): Likewise.
9964 (arm_movsf_soft_insn): Likewise.
9965 (thumb1_movsf_insn): Likewise.
9966 (movdf_soft_insn): Likewise.
9967 (thumb_movdf_insn): Likewise.
9968 (arm_cmpsi_insn): Likewise.
9969 (cmpsi_shiftsi): Likewise.
9970 (cmpsi_shiftsi_swp): Likewise.
9971 (arm_cmpsi_negshiftsi_si): Likewise.
9972 (movsicc_insn): Likewise.
9973 (movsfcc_soft_insn): Likewise.
9974 (arith_shiftsi): Likewise.
9975 (arith_shiftsi_compare0
9976 (arith_shiftsi_compare0_scratch
9977 (sub_shiftsi): Likewise.
9978 (sub_shiftsi_compare0
9979 (sub_shiftsi_compare0_scratch
9980 (and_scc): Likewise.
9981 (cond_move): Likewise.
9982 (if_plus_move): Likewise.
9983 (if_move_plus): Likewise.
9984 (if_move_not): Likewise.
9985 (if_not_move): Likewise.
9986 (if_shift_move): Likewise.
9987 (if_move_shift): Likewise.
9988 (if_shift_shift): Likewise.
9989 (if_not_arith): Likewise.
9990 (if_arith_not): Likewise.
9991 (cond_move_not): Likewise.
9992 (thumb1_ashlsi3): Set type attribute.
9993 (thumb1_ashrsi3): Likewise.
9994 (thumb1_lshrsi3): Likewise.
9995 (thumb1_rotrsi3): Likewise.
9996 (shiftsi3_compare0_scratch): Likewise.
9997 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
9998 (neon_mov<mode>): Likewise.
371e77e3
UB
9999 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
10000 attribute changes.
006bd006
SN
10001 (thumb2_movsi_insn): Likewise.
10002 (thumb2_cmpsi_neg_shiftsi): Likewise.
10003 (thumb2_extendqisi_v6): Likewise.
10004 (thumb2_zero_extendhisi2_v6): Likewise.
10005 (thumb2_zero_extendqisi2_v6): Likewise.
10006 (thumb2_shiftsi3_short): Likewise.
10007 (thumb2_addsi3_compare0_scratch): Likewise.
10008 (orsi_not_shiftsi_si): Likewise.
10009 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
10010 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
10011 changes.
10012 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
10013 (1020alu_shift_op): Likewise.
10014 (1020alu_shift_reg_op): Likewise.
10015 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
10016 (alu_shift_op): Likewise.
10017 (alu_shift_reg_op): Likewise.
10018 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
10019 (11_alu_shift_op): Likewise.
10020 (11_alu_shift_reg_op): Likewise.
10021 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
10022 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
10023 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
10024 changes.
006bd006
SN
10025 (cortex_a15_alu_shift): Likewise.
10026 (cortex_a15_alu_shift_reg): Likewise.
371e77e3
UB
10027 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
10028 changes.
006bd006
SN
10029 (cortex_a5_alu_shift): Likewise.
10030 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
10031 changes.
10032 (cortex_a53_alu_shift): Likewise.
10033 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
10034 changes.
10035 (cortex_a7_alu_reg): Likewise.
10036 (cortex_a7_alu_shift): Likewise.
371e77e3
UB
10037 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
10038 changes.
006bd006
SN
10039 (cortex_a8_alu_shift): Likewise.
10040 (cortex_a8_alu_shift_reg): Likewise.
10041 (cortex_a8_mov): Likewise.
10042 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
10043 (cortex_a9_dp_shift): Likewise.
371e77e3
UB
10044 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
10045 changes.
10046 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
10047 changes.
006bd006
SN
10048 (cortex_r4_mov): Likewise.
10049 (cortex_r4_alu_shift): Likewise.
10050 (cortex_r4_alu_shift_reg): Likewise.
10051 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
10052 (526_alu_shift_op): Likewise.
10053 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
10054 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
10055 (626te_alu_shift_op): Likewise.
10056 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
10057 (726te_alu_op): Likewise.
10058 (726te_alu_shift_op): Likewise.
10059 (726te_alu_shift_reg_op): Likewise.
10060 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
10061 (mp626_alu_shift_op): Likewise.
10062 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
10063 (pj4_alu_e1_conds): Likewise.
10064 (pj4_alu): Likewise.
10065 (pj4_alu_conds): Likewise.
10066 (pj4_shift): Likewise.
10067 (pj4_shift_conds): Likewise.
10068 (pj4_alu_shift): Likewise.
10069 (pj4_alu_shift_conds): Likewise.
371e77e3
UB
10070 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
10071 changes.
006bd006
SN
10072 (cortexa7_older_only): Likewise.
10073 (cortexa7_younger): Likewise.
10074
651df1b2
DM
100752013-07-18 David Malcolm <dmalcolm@redhat.com>
10076
10077 * ipa-pure-const.c (generate_summary): Rename to...
10078 (pure_const_generate_summary): ... this.
10079
ea717bd7
IS
100802013-07-17 Iain Sandoe <iain@codesourcery.com>
10081
10082 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
10083
a1259a13
YR
100842013-07-17 Yvan Roux <yvan.roux@linaro.org>
10085
10086 PR target/57909
10087 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
10088 usage in HI mode.
10089
167f68ed
AK
100902013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10091
10092 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
10093 enabled without -march=zEC12.
10094 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
10095 flags to be set.
10096
f900a982
MR
100972013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
10098
10099 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
10100 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
10101 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
10102 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
10103 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
10104 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
10105 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
10106 ISA_HAS_FP4.
10107 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
10108 and ISA_HAS_NMADD3_NMSUB3.
10109 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
10110 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
10111 (nmsub4<mode>, nmsub3<mode>): Likewise.
10112 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
10113
d4ed27eb
MR
101142013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
10115
10116 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
10117 TARGET_MIPS5400 checking.
10118
7a5add18
PB
101192013-07-16 Jakub Jelinek <jakub@redhat.com>
10120 Peter Bergner <bergner@vnet.ibm.com>
10121
10122 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
10123 registers in the comment.
10124 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
10125 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
10126 rather than FIRST_PSEUDO_REGISTERS.
10127
101282013-07-16 Peter Bergner <bergner@vnet.ibm.com>
c694dc01
PB
10129
10130 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
10131 enable extra ISA flags with TARGET_HTM.
10132
d2ab0929
MR
101332013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
10134
10135 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
10136 Fix comment typos.
10137
839c74bc
CH
101382013-07-15 Cong Hou <congh@google.com>
10139
10140 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
10141 in compare function for sorting.
10142
7a5add18 101432013-07-15 Peter Bergner <bergner@vnet.ibm.com>
0258b6e4
PB
10144
10145 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
10146 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
10147 * config/rs6000/rs6000.opt: Add -mhtm option.
10148 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
10149 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
10150 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10151 __HTM__ if the HTM instructions are available.
10152 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
10153 htm_spr_reg_operand): New define_predicates.
10154 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
10155 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
10156 Include htm.md.
10157 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
10158 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
10159 HTM builtin functions.
10160 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
10161 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
10162 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
10163 (rs6000_builtin_mask_calculate): Likewise.
10164 (rs6000_option_override_internal): Likewise.
10165 (bdesc_htm): Add new HTM builtin support.
10166 (htm_spr_num): New function.
10167 (htm_spr_regno): Likewise.
10168 (rs6000_htm_spr_icode): Likewise.
10169 (htm_expand_builtin): Likewise.
10170 (htm_init_builtins): Likewise.
10171 (rs6000_expand_builtin): Add support for HTM builtin functions.
10172 (rs6000_init_builtins): Likewise.
371e77e3
UB
10173 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
10174 option.
0258b6e4
PB
10175 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
10176 (TARGET_HTM, MASK_HTM): Define macros.
10177 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
10178 (FIXED_REGISTERS): Likewise.
10179 (CALL_USED_REGISTERS): Likewise.
10180 (CALL_REALLY_USED_REGISTERS): Likewise.
10181 (REG_ALLOC_ORDER): Likewise.
10182 (enum reg_class): Likewise.
10183 (REG_CLASS_NAMES): Likewise.
10184 (REG_CLASS_CONTENTS): Likewise.
10185 (REGISTER_NAMES): Likewise.
10186 (ADDITIONAL_REGISTER_NAMES): Likewise.
10187 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
10188 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
10189 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
10190 * config/rs6000/htm.md: New file.
10191 * config/rs6000/htmintrin.h: New file.
10192 * config/rs6000/htmxlintrin.h: New file.
10193
87dd8ab0
MS
101942013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
10195
10196 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
10197 Define SYMBOL_TINY_GOT, update comment.
10198 * config/aarch64/aarch64.c
10199 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
10200 (aarch64_expand_mov_immediate): Likewise.
10201 (aarch64_print_operand): Likewise.
10202 (aarch64_classify_symbol): Likewise.
10203 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
10204 (ldr_got_tiny): Define.
10205
52d676b6
TG
102062013-07-13 Tobias Grosser <tobias@grosser.es>
10207
10208 PR tree-optimization/54094
10209 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
10210 scheduling dimension for the parallelism check from the polyhedral
10211 information in the AST.
10212 * graphite-dependences.c (carries_deps): Do not assume the schedule is
10213 in 2D + 1 form.
10214
286e8fc1
JM
102152013-07-13 Jason Merrill <jason@redhat.com>
10216
10217 * print-tree.c (debug_vec_tree): Use debug_raw.
10218 (debug_raw (vec<tree, va_gc> &)): New.
10219 (debug_raw (vec<tree, va_gc> *)): New.
10220 * tree.h: Declare them.
10221
e43257e8
BC
102222013-07-13 Bin Cheng <bin.cheng@arm.com>
10223
10224 * ifcvt.c (ifcvt_after_combine): New static variable.
10225 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
10226 for size.
10227 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
10228 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
10229 rest_of_handle_if_after_reload): Pass new argument for if_convert.
10230
da582d46
MR
102312013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
10232
10233 * config/mips/mips.c (mips_expand_call): Remove empty statement.
10234
18b0ea8f
MM
102352013-07-12 Michael Matz <matz@suse.de>
10236
10237 PR middle-end/55771
10238 * convert.c (convert_to_real): Reject non-float inner types.
10239
e4f0f84d
TB
102402013-07-12 Tejas Belagod <tejas.belagod@arm.com>
10241
10242 * config/aarch64/aarch64-protos.h
10243 (aarch64_simd_immediate_valid_for_move): Remove.
10244 * config/aarch64/aarch64.c (simd_immediate_info): New member.
10245 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
10246 cases.
10247 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
10248
76500022
SE
102492013-07-11 Steve Ellcey <sellcey@mips.com>
10250
10251 * config/mips/mips.c (mips_conditional_register_usage): Do not
10252 use t[0-7] registers in MIPS16 mode when optimizing for size.
10253
78039734
ST
102542013-07-11 Sriraman Tallam <tmsriram@google.com>
10255
10256 * config/i386/i386.c (dispatch_function_versions): Fix array
10257 indexing of function_version_info to match actual_versions.
10258
7b24b675
TJ
102592013-07-11 Teresa Johnson <tejohnson@google.com>
10260
10261 * vec.h (struct va_gc): Move release out-of-line.
10262 (va_gc::release): Call ggc_free on released vec.
10263
85d4cbb8
UW
102642013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10265
10266 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
10267 Require GOT register as additional operand in UNSPEC.
10268 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
10269 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
10270 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
10271 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
10272 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
10273 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
10274 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
10275
52b3f9e2
GJL
102762013-07-11 Georg-Johann Lay <avr@gjlay.de>
10277
10278 PR target/57631
10279 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
10280 name seen by assembler/linker rather if available.
10281
3f3e266e
AS
102822013-07-11 Andreas Schwab <schwab@suse.de>
10283
10284 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
10285
21231ca6
VM
102862013-07-10 Vladimir Makarov <vmakarov@redhat.com>
10287
371e77e3 10288 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21231ca6 10289
d331d374
JM
102902013-07-10 Joseph Myers <joseph@codesourcery.com>
10291
673c2f63
JM
10292 * doc/tm.texi.in: Move hook documentation to ....
10293 * target.def: ... here.
10294
d331d374
JM
10295 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
10296 text on @hook line.
10297 * doc/tm.texi: Regenerate.
10298
dfeadaa0
PC
102992013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
10300
10301 PR c++/57869
10302 * doc/invoke.texi: Document -Wconditionally-supported.
10303
bb6f2bac
GJL
103042013-07-10 Georg-Johann Lay <avr@gjlay.de>
10305
10306 PR target/57844
10307 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
10308 of my_fp.
10309
5219b232
GJL
103102013-07-10 Georg-Johann Lay <avr@gjlay.de>
10311
10312 PR target/57506
10313 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
10314 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
10315 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
10316 Remove duplicate devices.
10317 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
10318 * config/avr/t-multilib: Regenerate.
10319 * config/avr/avr-tables.opt: Regenerate.
10320 * doc/avr-mmcu.texi: Regenerate.
10321
283045c0
GJL
103222013-07-10 Georg-Johann Lay <avr@gjlay.de>
10323
10324 PR target/56987
10325 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
10326
ceb2d59f 103272013-07-10 Graham Stott <graham.stott@btinternet.com>
6a2fa4b2 10328
ceb2d59f
GS
10329 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
10330 the cost of MULT when optimizing for size.
10331
055e0a99
JBG
103322013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10333
10334 * config/cr16/cr16-protos.h: Don't include target.h.
10335
ef43e868
JM
103362013-07-09 Joseph Myers <joseph@codesourcery.com>
10337
10338 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
10339 adjust register size for TDmode and TFmode for VSX registers.
10340
4a283fdf
KT
103412013-07-08 Kai Tietz <ktietz@redhat.com>
10342
10343 PR target/56892
10344 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
10345 hook_bool_const_tree_true.
10346
2cf4c39e
AK
103472013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10348
10349 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
10350 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
10351 * config/s390/s390.md: Define FPR*_REGNUM constants.
10352 Fix FPR2_REGNUM constant (18 -> 17).
10353 ("*trunc<BFP:mode><DFP_ALL:mode>2")
10354 ("*trunc<DFP_ALL:mode><BFP:mode>2")
10355 ("trunc<BFP:mode><DFP_ALL:mode>2")
10356 ("trunc<DFP_ALL:mode><BFP:mode>2")
10357 ("*extend<BFP:mode><DFP_ALL:mode>2")
10358 ("*extend<DFP_ALL:mode><BFP:mode>2")
10359 ("extend<BFP:mode><DFP_ALL:mode>2")
10360 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
10361 FPR4_REGNUM.
10362
e6ac0270 103632013-07-08 Graham Stott <graham.stott@btinternet.com>
e6ac0270 10364
6a2fa4b2 10365 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
64a92610 10366
b89b22fc
AK
103672013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10368
10369 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
10370 and cfun_fpr_bit_p to cfun_fpr_save_p.
10371 (s390_frame_area, s390_register_info, s390_frame_info)
10372 (s390_emit_prologue, s390_emit_epilogue)
10373 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
10374 register numbers.
10375 * config/s390/s390.h: Define *_REGNUM macros for floating point
10376 register numbers.
10377
07f398aa
EB
103782013-07-08 Eric Botcazou <ebotcazou@adacore.com>
10379
10380 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
10381
75fefa91
PCC
103822013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
10383
10384 PR rtl-optimization/57786
10385 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
10386 and break out of the loop when it is set to false.
10387
046f1eee
JJ
103882013-07-08 Jakub Jelinek <jakub@redhat.com>
10389
8140c065
JJ
10390 PR target/57819
10391 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
10392 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
10393 (const_int 63)) 0)).
10394 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
10395 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
10396 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
10397
046f1eee
JJ
10398 PR rtl-optimization/57829
10399 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
10400 mask bits outside of mode are just sign-extension from mode to HWI.
10401
930b700b
MZ
104022013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
10403
10404 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
10405 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
10406 adjust_address instead of change_address to keep info about alignment.
10407 (emit_strmov): Remove.
10408 (emit_memmov): New function.
10409 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
10410 (expand_movmem_epilogue): Likewise and return updated rtx for
10411 destination.
10412 (expand_constant_movmem_prologue): Likewise and return updated rtx for
10413 destination and source.
10414 (decide_alignment): Refactor, handle vector_loop.
10415 (ix86_expand_movmem): Likewise.
10416 (ix86_expand_setmem): Likewise.
10417 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
10418
7b9d1bd8
UB
104192013-07-07 Uros Bizjak <ubizjak@gmail.com>
10420
10421 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
10422 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
10423
eabb5f48
UB
104242013-07-06 Uros Bizjak <ubizjak@gmail.com>
10425
10426 * config/i386/sse.md (sse_movlhps): Change alternative 3
10427 of operand 2 to "m".
10428
104292013-07-06 Uros Bizjak <ubizjak@gmail.com>
10430
10431 PR target/57807
10432 * config/i386/sse.md (iptr): New mode attribute.
10433 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
10434 (<sse>_vm<plusminus_insn><mode>3): Ditto.
10435 (<sse>_vmmul<mode>3): Ditto.
10436 (<sse>_vmdiv<mode>3): Ditto.
10437 (sse_vmrcpv4sf2): Ditto.
10438 (<sse>_vmsqrt<mode>2): Ditto.
10439 (sse_vmrsqrtv4sf2): Ditto.
10440 (<sse>_vm<code><mode>3): Ditto.
10441 (avx_vmcmp<mode>3): Ditto.
10442 (<sse>_vmmaskcmp<mode>3): Ditto.
10443 (<sse>_comi): Ditto.
10444 (<sse>_ucomi): Ditto.
10445 (*xop_vmfrcz_<mode>): Ditto.
10446 (*fmai_fmadd_<mode>): Ditto.
10447 (*fmai_fmsub_<mode>): Ditto.
10448 (*fmai_fnmadd_<mode>): Ditto.
10449 (*fmai_fnmsub_<mode>): Ditto.
10450 (*fma4i_vmfmadd_<mode>): Ditto.
10451 (*fma4i_vmfmsub_<mode>): Ditto.
10452 (*fma4i_vmfnmadd_<mode>): Ditto.
10453 (*fma4i_vmfnmsub_<mode>): Ditto.
10454 (*xop_vmfrcz_<mode>): Ditto.
10455 (sse_cvtps2pi): Ditto.
10456 (sse_cvttps2pi): Ditto.
10457 (sse_cvtss2si): Ditto.
10458 (sse_cvtss2si_2): Ditto.
10459 (sse_cvtss2siq_2): Ditto.
10460 (sse_cvttss2si): Ditto.
10461 (sse_cvttss2siq): Ditto.
10462 (sse_cvtsd2si): Ditto.
10463 (sse_cvtsd2si_2): Ditto.
10464 (sse_cvtsd2siq_2): Ditto.
10465 (sse_cvttsd2si): Ditto.
10466 (sse_cvttsd2siq): Ditto.
10467 (sse_cvtsd2ss): Ditto.
10468 (sse_cvtss2sd): Ditto.
10469 (avx2_pbroadcast<mode>): Ditto.
10470 (avx2_pbroadcast<mode>_1): Ditto.
10471 (*avx_vperm_broadcast_v4sf): Ditto.
10472
10473 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
10474 (sse_movlhps): Ditto.
10475 (sse_storehps): Ditto.
10476 (sse_loadhps): Ditto.
10477 (sse_storelps): Ditto.
10478 (sse_loadlps): Ditto.
10479 (*vec_concatv4sf): Ditto.
10480 (*vec_interleave_highv2df): Ditto.
10481 (*vec_interleave_lowv2df): Ditto.
10482 (*vec_extractv2df_1_sse): Ditto.
10483 (*vec_extractv2df_0_sse): Ditto.
10484 (sse2_storelpd): Ditto.
10485 (sse2_loadlpd): Ditto.
10486 (sse2_movsd): Ditto.
10487 (*vec_concatv4si): Ditto.
10488 (vec_concatv2di): Ditto.
10489
10490 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
10491 for Intel asm dialect.
10492 (mmx_punpcklwd): Ditto.
10493 (mmx_punpckldq): Ditto.
10494
10495 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
10496 for intel assembler dialect.
10497
1f6eac90
JJ
104982013-07-06 Jakub Jelinek <jakub@redhat.com>
10499
10500 PR target/29776
10501 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
10502 for BUILT_IN_C{LZ,LRSB}*.
10503 * tree.h (CASE_INT_FN): Add FN##IMAX case.
10504 * tree-vrp.c (extract_range_basic): Handle
10505 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
10506 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
10507 fall thru to code calling set_value*.
10508 * builtins.c (expand_builtin): Remove *IMAX cases.
10509 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
10510 if width is bigger than 2*HWI.
10511
2b778c9d
VM
105122013-07-05 Vladimir Makarov <vmakarov@redhat.com>
10513
10514 PR rtl-optimization/55342
10515 * lra-int.h (lra_subreg_reload_pseudos): New.
10516 * lra.c: Add undoing optional reloads to the block diagram.
10517 (lra_subreg_reload_pseudos): New.
10518 (lra_optional_reload_pseudos): Change comments.
10519 (lra): Init and clear lra_subreg_reload_pseudos. Clear
10520 lra_optional_reload_pseudos after undo transformations.
10521 * lra-assigns.c (pseudo_prefix_title): New.
10522 (lra_setup_reg_renumber): Use it.
10523 (spill_for): Ditto. Check subreg reload pseudos too.
10524 (assign_by_spills): Consider subreg reload pseudos too.
10525 * lra-constraints.c (simplify_operand_subreg): Use
10526 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
10527 (curr_insn_transform): Recognize and do optional reloads.
10528 (undo_optional_reloads): New.
10529 (lra_undo_inheritance): Call undo_optional_reloads.
10530
207156e4
TQ
105312013-07-05 Thomas Quinot <quinot@adacore.com>
10532
10533 * tree-complex.c (expand_complex_operations_1): Fix typo.
10534
8990e73a
TB
105352013-07-04 Tejas Belagod <tejas.belagod@arm.com>
10536
10537 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
10538 (tune_params): New member 'const vec_costs'.
10539 * config/aarch64/aarch64.c (generic_vector_cost): New.
10540 (generic_tunings): New member 'generic_vector_cost'.
10541 (aarch64_builtin_vectorization_cost): New.
10542 (aarch64_add_stmt_cost): New.
10543 (TARGET_VECTORIZE_ADD_STMT_COST): New.
10544 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
10545
f7bc421d
JJ
105462013-07-03 Jakub Jelinek <jakub@redhat.com>
10547
10548 PR target/57777
10549 * config/i386/predicates.md (vsib_address_operand): Disallow
10550 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
10551
e90d1568
HPN
105522013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
10553
10554 PR middle-end/55030
10555 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
10556 expand_builtin_setjmp_receiver.
10557 (expand_label): Adjust, call expand_builtin_setjmp_receiver
10558 with NULL for the label parameter.
10559 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
10560 the frame-pointer. Adjust comments.
10561 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
10562 only if LABEL is non-NULL.
10563
cbd7413b
YZ
105642013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
10565
10566 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
10567 (ARM_ABI_AAPCS64): Ditto.
10568 (arm_abi): Ditto.
10569 (ARM_DEFAULT_ABI): Ditto.
10570
dec11868
JG
105712013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10572
10573 * config/aarch64/aarch64-builtins.c
10574 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
10575 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
10576 (st1): Likewise.
10577 * config/aarch64/aarch64-simd.md
10578 (aarch64_ld1<VALL:mode>): New.
10579 (aarch64_st1<VALL:mode>): Likewise.
10580 * config/aarch64/arm_neon.h
10581 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
10582
786fb9b6
ST
105832013-07-02 Sriraman Tallam <tmsriram@google.com>
10584
0ba6aff3
UB
10585 * config/i386/i386.c (gate_insert_vzeroupper): Check if
10586 target ISA is AVX.
786fb9b6
ST
10587 (ix86_option_override_internal):Turn on all -mavx target flags by
10588 default as they are dependent on AVX anyway.
10589
4b043553
CC
105902013-07-02 Cary Coutant <ccoutant@google.com>
10591
10592 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
10593 deterministic hash.
10594 (loc_checksum_ordered): Likewise.
10595 (hash_loc_operands): Remove inline keyword.
10596
c4e87a13
JJ
105972013-07-02 Jakub Jelinek <jakub@redhat.com>
10598
10599 PR tree-optimization/57741
10600 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
10601 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
10602 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
10603 Allow REAL_CST step_exprs if flag_associative_math.
10604 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
10605
26366d28
IB
106062013-07-02 Ian Bolton <ian.bolton@arm.com>
10607
0ba6aff3 10608 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 10609
2879bb2b
IB
106102013-07-02 Ian Bolton <ian.bolton@arm.com>
10611
10612 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
10613
afc5e8a6
KT
106142013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10615
10616 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
10617 encoding.
10618 (iorsi3_insn): Likewise.
10619 (arm_xorsi3): Likewise.
10620
31f8442b
SN
106212013-07-01 Sofiane Naci <sofiane.naci@arm.com>
10622
10623 * arm.md (attribute "wtype"): Delete. Move attribute values from here
10624 to ...
10625 (attribute "type"): ... here, and prefix with "wmmx_".
10626 (attribute "core_cycles"): Update for attribute changes.
10627 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
10628 (tbcstv4hi): Likewise.
10629 (tbcstv2si): Likewise.
10630 (iwmmxt_iordi3): Likewise.
10631 (iwmmxt_xordi3): Likewise.
10632 (iwmmxt_anddi3): Likewise.
10633 (iwmmxt_nanddi3): Likewise.
10634 (iwmmxt_arm_movdi): Likewise.
10635 (iwmmxt_movsi_insn): Likewise.
10636 (mov<mode>_internal): Likewise.
10637 (and<mode>3_iwmmxt): Likewise.
10638 (ior<mode>3_iwmmxt): Likewise.
10639 (xor<mode>3_iwmmxt): Likewise.
10640 (add<mode>3_iwmmxt): Likewise.
10641 (ssaddv8qi3): Likewise.
10642 (ssaddv4hi3): Likewise.
10643 (ssaddv2si3): Likewise.
10644 (usaddv8qi3): Likewise.
10645 (usaddv4hi3): Likewise.
10646 (usaddv2si3): Likewise.
10647 (sub<mode>3_iwmmxt): Likewise.
10648 (sssubv8qi3): Likewise.
10649 (sssubv4hi3): Likewise.
10650 (sssubv2si3): Likewise.
10651 (ussubv8qi3): Likewise.
10652 (ussubv4hi3): Likewise.
10653 (ussubv2si3): Likewise.
10654 (mulv4hi3_iwmmxt): Likewise.
10655 (smulv4hi3_highpart): Likewise.
10656 (umulv4hi3_highpart): Likewise.
10657 (iwmmxt_wmacs): Likewise.
10658 (iwmmxt_wmacsz): Likewise.
10659 (iwmmxt_wmacu): Likewise.
10660 (iwmmxt_wmacuz): Likewise.
10661 (iwmmxt_clrdi): Likewise.
10662 (iwmmxt_clrv8qi): Likewise.
10663 (iwmmxt_clr4hi): Likewise.
10664 (iwmmxt_clr2si): Likewise.
10665 (iwmmxt_uavgrndv8qi3): Likewise.
10666 (iwmmxt_uavgrndv4hi3): Likewise.
10667 (iwmmxt_uavgv8qi3): Likewise.
10668 (iwmmxt_uavgv4hi3): Likewise.
10669 (iwmmxt_tinsrb): Likewise.
10670 (iwmmxt_tinsrh): Likewise.
10671 (iwmmxt_tinsrw): Likewise.
10672 (iwmmxt_textrmub): Likewise.
10673 (iwmmxt_textrmsb): Likewise.
10674 (iwmmxt_textrmuh): Likewise.
10675 (iwmmxt_textrmsh): Likewise.
10676 (iwmmxt_textrmw): Likewise.
10677 (iwmxxt_wshufh): Likewise.
10678 (eqv8qi3): Likewise.
10679 (eqv4hi3): Likewise.
10680 (eqv2si3): Likewise.
10681 (gtuv8qi3): Likewise.
10682 (gtuv4hi3): Likewise.
10683 (gtuv2si3): Likewise.
10684 (gtv8qi3): Likewise.
10685 (gtv4hi3): Likewise.
10686 (gtv2si3): Likewise.
10687 (smax<mode>3_iwmmxt): Likewise.
10688 (umax<mode>3_iwmmxt): Likewise.
10689 (smin<mode>3_iwmmxt): Likewise.
10690 (umin<mode>3_iwmmxt): Likewise.
10691 (iwmmxt_wpackhss): Likewise.
10692 (iwmmxt_wpackwss): Likewise.
10693 (iwmmxt_wpackdss): Likewise.
10694 (iwmmxt_wpackhus): Likewise.
10695 (iwmmxt_wpackwus): Likewise.
10696 (iwmmxt_wpackdus): Likewise.
10697 (iwmmxt_wunpckihb): Likewise.
10698 (iwmmxt_wunpckihh): Likewise.
10699 (iwmmxt_wunpckihw): Likewise.
10700 (iwmmxt_wunpckilb): Likewise.
10701 (iwmmxt_wunpckilh): Likewise.
10702 (iwmmxt_wunpckilw): Likewise.
10703 (iwmmxt_wunpckehub): Likewise.
10704 (iwmmxt_wunpckehuh): Likewise.
10705 (iwmmxt_wunpckehuw): Likewise.
10706 (iwmmxt_wunpckehsb): Likewise.
10707 (iwmmxt_wunpckehsh): Likewise.
10708 (iwmmxt_wunpckehsw): Likewise.
10709 (iwmmxt_wunpckelub): Likewise.
10710 (iwmmxt_wunpckeluh): Likewise.
10711 (iwmmxt_wunpckeluw): Likewise.
10712 (iwmmxt_wunpckelsb): Likewise.
10713 (iwmmxt_wunpckelsh): Likewise.
10714 (iwmmxt_wunpckelsw): Likewise.
10715 (ror<mode>3): Likewise.
10716 (ashr<mode>3_iwmmxt): Likewise.
10717 (lshr<mode>3_iwmmxt): Likewise.
10718 (ashl<mode>3_iwmmxt): Likewise.
10719 (ror<mode>3_di): Likewise.
10720 (ashr<mode>3_di): Likewise.
10721 (lshr<mode>3_di): Likewise.
10722 (ashl<mode>3_di): Likewise.
10723 (iwmmxt_wmadds): Likewise.
10724 (iwmmxt_wmaddu): Likewise.
10725 (iwmmxt_tmia): Likewise.
10726 (iwmmxt_tmiaph): Likewise.
10727 (iwmmxt_tmiabb): Likewise.
10728 (iwmmxt_tmiatb): Likewise.
10729 (iwmmxt_tmiabt): Likewise.
10730 (iwmmxt_tmiatt): Likewise.
10731 (iwmmxt_tmovmskb): Likewise.
10732 (iwmmxt_tmovmskh): Likewise.
10733 (iwmmxt_tmovmskw): Likewise.
10734 (iwmmxt_waccb): Likewise.
10735 (iwmmxt_wacch): Likewise.
10736 (iwmmxt_waccw): Likewise.
10737 (iwmmxt_waligni): Likewise.
10738 (iwmmxt_walignr): Likewise.
10739 (iwmmxt_walignr0): Likewise.
10740 (iwmmxt_walignr1): Likewise.
10741 (iwmmxt_walignr2): Likewise.
10742 (iwmmxt_walignr3): Likewise.
10743 (iwmmxt_wsadb): Likewise.
10744 (iwmmxt_wsadh): Likewise.
10745 (iwmmxt_wsadbz): Likewise.
10746 (iwmmxt_wsadhz): Likewise.
10747 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
10748 (iwmmxt_wabsdiffb): Likewise.
10749 (iwmmxt_wabsdiffh): Likewise.
10750 (iwmmxt_wabsdiffw): Likewise.
10751 (iwmmxt_waddsubhx): Likewise
10752 (iwmmxt_wsubaddhx): Likewise.
10753 (addc<mode>3): Likewise.
10754 (iwmmxt_avg4): Likewise.
10755 (iwmmxt_avg4r): Likewise.
10756 (iwmmxt_wmaddsx): Likewise.
10757 (iwmmxt_wmaddux): Likewise.
10758 (iwmmxt_wmaddsn): Likewise.
10759 (iwmmxt_wmaddun): Likewise.
10760 (iwmmxt_wmulwsm): Likewise.
10761 (iwmmxt_wmulwum): Likewise.
10762 (iwmmxt_wmulsmr): Likewise.
10763 (iwmmxt_wmulumr): Likewise.
10764 (iwmmxt_wmulwsmr): Likewise.
10765 (iwmmxt_wmulwumr): Likewise.
10766 (iwmmxt_wmulwl): Likewise.
10767 (iwmmxt_wqmulm): Likewise.
10768 (iwmmxt_wqmulwm): Likewise.
10769 (iwmmxt_wqmulmr): Likewise.
10770 (iwmmxt_wqmulwmr): Likewise.
10771 (iwmmxt_waddbhusm): Likewise.
10772 (iwmmxt_waddbhusl): Likewise.
10773 (iwmmxt_wqmiabb): Likewise.
10774 (iwmmxt_wqmiabt): Likewise.
10775 (iwmmxt_wqmiatb): Likewise.
10776 (iwmmxt_wqmiatt): Likewise.
10777 (iwmmxt_wqmiabbn): Likewise.
10778 (iwmmxt_wqmiabtn): Likewise.
10779 (iwmmxt_wqmiatbn): Likewise.
10780 (iwmmxt_wqmiattn): Likewise.
10781 (iwmmxt_wmiabb): Likewise.
10782 (iwmmxt_wmiabt): Likewise.
10783 (iwmmxt_wmiatb): Likewise.
10784 (iwmmxt_wmiatt): Likewise.
10785 (iwmmxt_wmiabbn): Likewise.
10786 (iwmmxt_wmiabtn): Likewise.
10787 (iwmmxt_wmiatbn): Likewise.
10788 (iwmmxt_wmiattn): Likewise.
10789 (iwmmxt_wmiawbb): Likewise.
10790 (iwmmxt_wmiawbt): Likewise.
10791 (iwmmxt_wmiawtb): Likewise.
10792 (iwmmxt_wmiawtt): Likewise.
10793 (iwmmxt_wmiawbbn): Likewise.
10794 (iwmmxt_wmiawbtn): Likewise.
10795 (iwmmxt_wmiawtbn): Likewise.
10796 (iwmmxt_wmiawttn): Likewise.
10797 (iwmmxt_wmerge): Likewise.
10798 (iwmmxt_tandc<mode>3): Likewise.
10799 (iwmmxt_torc<mode>3): Likewise.
10800 (iwmmxt_torvsc<mode>3): Likewise.
10801 (iwmmxt_textrc<mode>3): Likewise.
10802 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
10803 (wmmxt_pack): Likewise.
10804 (wmmxt_mult_c1): Likewise.
10805 (wmmxt_mult_c2): Likewise.
10806 (wmmxt_alu_c1): Likewise.
10807 (wmmxt_alu_c2): Likewise.
10808 (wmmxt_alu_c3): Likewise.
10809 (wmmxt_transfer_c1): Likewise.
10810 (wmmxt_transfer_c2): Likewise.
10811 (wmmxt_transfer_c3): Likewise.
10812 (marvell_f_iwmmxt_wstr): Likewise.
10813 (marvell_f_iwmmxt_wldr): Likewise.
10814
bdb7bf8a
YZ
108152013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
10816
0ba6aff3 10817 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 10818
e6631d38
VM
108192013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10820
10821 Revert:
10822 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10823 * lra-constraints.c (need_for_split_p): Check call used hard regs
10824 living through calls.
10825
10826 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
10827 call used regs for call insn.
10828
53c1275b
JJ
108292013-06-28 Jakub Jelinek <jakub@redhat.com>
10830
10831 PR target/57736
0ba6aff3
UB
10832 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
10833 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 10834
1141ed3f
BI
108352013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
10836
10837 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 10838
e32e4c4a
VM
108392013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10840
10841 * lra-constraints.c (need_for_split_p): Check call used hard regs
10842 living through calls.
10843
f161bfd3
MM
108442013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
10845
10846 PR target/57744
10847 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
10848 to tie with any other modes. Eliminate Altivec vector mode tests,
10849 since these are a subset of ALTIVEC or VSX vector modes. Simplify
10850 code, to return 0 if testing MODE2 for a condition, if we've
10851 already tested MODE1 for the same condition.
10852
7eda14e1
MS
108532013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10854
10855 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
10856 layout.
10857
c822f852
MS
108582013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10859
10860 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
10861 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
10862
da4f13a4
MS
108632013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10864
0ba6aff3
UB
10865 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
10866 Define.
da4f13a4
MS
10867 (aarch64_symbolic_constant_p): Remove.
10868 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
10869 static. Fix line length and white space.
10870 (aarch64_symbolic_constant_p): Remove.
10871 * config/aarch64/predicates.md (aarch64_valid_symref):
10872 Use aarch64_classify_symbol_expression.
10873
956a95a5
KT
108742013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10875
10876 * config/arm/constraints.md (Ts): New constraint.
10877 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
10878 16-bit encodings.
10879 (compare_scc): Use "Ts" constraint for operand 0.
10880 (ior_scc_scc): Likewise.
10881 (and_scc_scc): Likewise.
10882 (and_scc_scc_nodom): Likewise.
10883 (ior_scc_scc_cmp): Likewise for operand 7.
10884 (and_scc_scc_cmp): Likewise.
10885 * config/arm/thumb2.md (thumb2_movsi_insn):
10886 Add alternatives for 16-bit encodings.
10887 (thumb2_movhi_insn): Likewise.
10888 (thumb2_movsicc_insn): Likewise.
10889 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
10890 (thumb2_negscc): Use "Ts" constraint.
10891 Move mvn instruction outside cond_exec block.
10892 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
10893 for 16-bit encodings.
10894
31dfce10
KT
108952013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10896
10897 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
10898 encoding.
10899 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
10900 (mulsi3subsi): Likewise.
10901 (mulsidi3adddi): Likewise.
10902 (mulsidi3_v6): Likewise.
10903 (umulsidi3_v6): Likewise.
10904 (umulsidi3adddi_v6): Likewise.
10905 (smulsi3_highpart_v6): Likewise.
10906 (umulsi3_highpart_v6): Likewise.
10907 (mulhisi3tb): Likewise.
10908 (mulhisi3bt): Likewise.
10909 (mulhisi3tt): Likewise.
10910 (maddhisi4): Likewise.
10911 (maddhisi4tb): Likewise.
10912 (maddhisi4tt): Likewise.
10913 (maddhidi4): Likewise.
10914 (maddhidi4tb): Likewise.
10915 (maddhidi4tt): Likewise.
10916 (zeroextractsi_compare0_scratch): Likewise.
10917 (insv_zero): Likewise.
10918 (insv_t2): Likewise.
10919 (anddi_notzesidi_di): Likewise.
10920 (anddi_notsesidi_di): Likewise.
10921 (andsi_notsi_si): Likewise.
10922 (iordi_zesidi_di): Likewise.
10923 (xordi_zesidi_di): Likewise.
10924 (andsi_iorsi3_notsi): Likewise.
10925 (smax_0): Likewise.
10926 (smax_m1): Likewise.
10927 (smin_0): Likewise.
10928 (not_shiftsi): Likewise.
10929 (unaligned_loadsi): Likewise.
10930 (unaligned_loadhis): Likewise.
10931 (unaligned_loadhiu): Likewise.
10932 (unaligned_storesi): Likewise.
10933 (unaligned_storehi): Likewise.
10934 (extv_reg): Likewise.
10935 (extzv_t2): Likewise.
10936 (divsi3): Likewise.
10937 (udivsi3): Likewise.
10938 (arm_zero_extendhisi2addsi): Likewise.
10939 (arm_zero_extendqisi2addsi): Likewise.
10940 (compareqi_eq0): Likewise.
10941 (arm_extendhisi2_v6): Likewise.
10942 (arm_extendqisi2addsi): Likewise.
10943 (arm_movt): Likewise.
10944 (thumb2_ldrd): Likewise.
10945 (thumb2_ldrd_base): Likewise.
10946 (thumb2_ldrd_base_neg): Likewise.
10947 (thumb2_strd): Likewise.
10948 (thumb2_strd_base): Likewise.
10949 (thumb2_strd_base_neg): Likewise.
10950 (arm_negsi2): Add alternative for 16-bit encoding.
10951 (arm_one_cmplsi2): Likewise.
10952
1572e697
KT
109532013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10954
10955 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
10956 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
10957 (movdfcc): Likewise.
10958 * config/arm/vfp.md (*thumb2_movsf_vfp):
10959 Disable predication for arm_restrict_it.
10960 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
10961 (*thumb2_movdfcc_vfp): Likewise.
10962 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
10963 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
10964 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
10965 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
10966 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
10967 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
10968 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
10969 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
10970 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
10971 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
10972 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
10973 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
10974 Disable predication for arm_restrict_it.
10975
ebf8f0ea
KY
109762013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
10977
10978 * config/i386/bmiintrin.h (_bextr_u32): New.
10979 (_bextr_u64): Ditto.
10980
a290fcda
RS
109812013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
10982
10983 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
10984 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
10985 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
10986 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
10987 * config/mips/n32-elf.h: ...this new file.
10988
ea169996
MG
109892013-06-27 Marc Glisse <marc.glisse@inria.fr>
10990
10991 PR target/57224
10992 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
10993 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
10994
12211b99 109952013-06-27 Catherine Moore <clm@codesourcery.com>
8e932114
CM
10996
10997 * config/mips/mips-tables.opt: Regenerate.
10998 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 10999 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 11000 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 11001
2444244e
JJ
110022013-06-27 Jakub Jelinek <jakub@redhat.com>
11003
cd06d2a2
JJ
11004 PR target/57623
11005 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
11006 constraints of operand 1 and 2.
11007
2444244e
JJ
11008 PR target/57623
11009 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
11010 to match RTL canonicalization. Swap predicates and
11011 constraints of operand 1 and 2.
11012
2f259720
VM
110132013-06-27 Vladimir Makarov <vmakarov@redhat.com>
11014
0ba6aff3
UB
11015 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
11016 Process OP_INOUT regs for splitting too.
2f259720 11017
fef4d2b3
JJ
110182013-06-27 Jakub Jelinek <jakub@redhat.com>
11019
11020 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
11021 decl before the loop, initialize to NULL.
11022 (vectorizable_load): Initialize ptr_incr to NULL.
11023
79ee9826
MJ
110242013-06-27 Martin Jambor <mjambor@suse.cz>
11025
11026 PR lto/57208
11027 * ipa-ref.h (ipa_maybe_record_reference): Declare.
11028 * ipa-ref.c (ipa_maybe_record_reference): New function.
11029 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
11030 * ipa-cp.c (create_specialized_node): Record potential references from
11031 aggvals.
11032 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
11033
e18b4a81
YZ
110342013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
11035
11036 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
11037 parameter 'mode' of type 'enum machine_mode mode'; change to pass
11038 'mode' to force_reg.
11039 (aarch64_add_offset): Update calls to aarch64_force_temporary.
11040 (aarch64_expand_mov_immediate): Likewise.
11041
9c023bf0
YZ
110422013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
11043
11044 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
11045 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
11046
5a3fe9b6
AK
110472013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11048
11049 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
11050 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
11051 (struct machine_function): Add tbegin_p.
11052 (s390_canonicalize_comparison): Fold CC mode compares to
11053 conditional jump if possible.
11054 (s390_emit_jump): Return the emitted jump.
11055 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
11056 Handle CCRAWmode compares.
11057 (s390_option_override): Default to -mhtm if available.
11058 (s390_reg_clobbered_rtx): Handle floating point regs as well.
11059 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
11060 FPRs instead of df_regs_ever_live_p.
11061 (s390_optimize_nonescaping_tx): New function.
11062 (s390_init_frame_layout): Extend clobbered_regs array to cover
11063 FPRs as well.
11064 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
11065 (s390_expand_tbegin): New function.
11066 (enum s390_builtin): New enum definition.
11067 (code_for_builtin): New array definition.
11068 (s390_init_builtins): New function.
11069 (s390_expand_builtin): New function.
11070 (TARGET_INIT_BUILTINS): Define.
11071 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 11072 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
11073 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
11074 (s390_alc_comparison): Likewise.
11075 * config/s390/s390-modes.def: Add CCRAWmode.
11076 * config/s390/s390.h (processor_flags): Add PF_TX.
11077 (TARGET_CPU_HTM): Define macro.
11078 (TARGET_HTM): Define macro.
11079 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
11080 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
11081 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
11082 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 11083 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
11084 (TBEGIN_MASK, TBEGINC_MASK): New constants.
11085 ("*cc_to_int"): Move up.
11086 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
11087 constants other than 0.
11088 ("*ccraw_to_int"): New insn and splitter definition.
11089 ("tbegin", "tbegin_nofloat", "tbegin_retry")
11090 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
11091 ("tx_assist"): New expander.
11092 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
11093 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
11094 * config/s390/s390.opt: Add -mhtm option.
11095 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
11096 * config/s390/htmxlintrin.h: New file.
11097 * config/s390/htmintrin.h: New file.
11098 * config/s390/s390intrin.h: New file.
11099 * doc/extend.texi: Document htm builtins.
11100 * config.gcc: Add the new header files to extra_headers.
11101
9e216629
TS
111022013-06-26 Thomas Schwinge <thomas@codesourcery.com>
11103
11104 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 11105 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 11106
fd8c65e7 111072013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11108 Pat Haugen <pthaugen@us.ibm.com>
11109 Peter Bergner <bergner@vnet.ibm.com>
fd8c65e7
MM
11110
11111 * config/rs6000/power8.md: New.
11112 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
11113 setting for power8 entry.
11114 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
11115 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
11116 test for Power4/Power5 only.
11117 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
11118 support.
11119 (force_new_group): Adjust comment.
11120 * config/rs6000/rs6000.md: Include power8.md.
11121
b24a2ce5
GY
111222013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
11123
11124 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
11125 * config/arm/arm-protos.h (arm_max_conditional_execute): New
11126 declaration.
11127 (tune_params): Update comment.
11128 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
11129 (arm_max_conditional_execute): New function.
11130 (thumb2_final_prescan_insn): Use max_insn_skipped and
11131 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
11132
f6fdeb62
JJ
111332013-06-25 Jakub Jelinek <jakub@redhat.com>
11134
11135 PR tree-optimization/57705
11136 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
11137 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 11138 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
11139 (get_initial_def_for_induction): Handle SSA_NAME IV step.
11140
c13bc3d9
MJ
111412013-06-25 Martin Jambor <mjambor@suse.cz>
11142
11143 PR middle-end/57670
11144 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
11145 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
11146 calls in the dump.
11147 (ipa_note_param_call): Initialize member_ptr flag.
11148 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
11149 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
11150 (ipa_write_indirect_edge_info): Stream member_ptr flag.
11151 (ipa_read_indirect_edge_info): Likewise.
11152
8a845901
RB
111532013-06-25 Richard Biener <rguenther@suse.de>
11154
11155 PR middle-end/56977
11156 * passes.c (init_optimization_passes): Move pass_fold_builtins
11157 and pass_dce earlier with -Og.
11158
33be0bec
EB
111592013-06-25 Eric Botcazou <ebotcazou@adacore.com>
11160
11161 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
11162 <BIT_FIELD_REF>: Remove trailing TAB.
11163 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
11164 remove blank line.
11165
5fe8e757
MJ
111662013-06-24 Martin Jambor <mjambor@suse.cz>
11167
11168 PR tree-optimization/57358
11169 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
11170 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
11171 (ipa_analyze_params_uses): Generate pessimistic info when true.
11172
44a60244
MJ
111732013-06-24 Martin Jambor <mjambor@suse.cz>
11174
11175 PR tree-optimization/57539
11176 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
11177 global.inlined_to of the new node to it. All callers changed.
11178 * ipa-inline-transform.c (clone_inlined_nodes): New variable
11179 inlining_into, pass it to cgraph_clone_node.
11180 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
11181 ipa_free_edge_args_substructures.
11182 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
11183 rdesc linked list. Do not assert rdesc edges have inlined caller.
11184 Assert we have found an rdesc in the rdesc list.
11185
7c5848b8
RB
111862013-06-24 Richard Biener <rguenther@suse.de>
11187
0ba6aff3 11188 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
11189 (pointer_set_lookup): Declare.
11190 (class pointer_map): New template class implementing a
11191 generic pointer to T map.
11192 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
11193 pointer_map<T>::contains, pointer_map<T>::insert,
11194 pointer_map<T>::traverse): New functions.
11195 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
11196 (pointer_set_lookup): New function.
11197 (pointer_set_contains): Use pointer_set_lookup.
11198 (pointer_set_insert): Likewise.
11199 (insert_aux): Remove.
11200 (struct pointer_map_t): Embed a pointer_set_t.
11201 (pointer_map_create): Adjust.
11202 (pointer_map_destroy): Likewise.
11203 (pointer_map_contains): Likewise.
11204 (pointer_map_insert): Likewise.
11205 (pointer_map_traverse): Likewise.
11206 * tree-streamer.h (struct streamer_tree_cache_d): Use a
11207 pointer_map<unsigned> instead of a pointer_map_t.
11208 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
11209 (streamer_tree_cache_lookup): Likewise.
11210 (streamer_tree_cache_create): Likewise.
11211 (streamer_tree_cache_delete): Likewise.
11212 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
11213 pointer_map<unsigned> instead of a pointer_map_t.
11214 (lto_init_tree_ref_encoder): Adjust.
11215 (lto_destroy_tree_ref_encoder): Likewise.
11216 * lto-section-out.c (lto_output_decl_index): Likewise.
11217 (lto_record_function_out_decl_state): Likewise.
11218 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
11219
3dbc97a9
RB
112202013-06-24 Richard Biener <rguenther@suse.de>
11221
11222 PR tree-optimization/57488
11223 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
11224
8345965a
AM
112252013-06-24 Alan Modra <amodra@gmail.com>
11226
11227 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
11228 (gen_easy_altivec_constant): Likewise.
11229 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11230 easy_vector_constant_msb): Likewise.
11231
b7df379f
JJ
112322013-06-23 Jakub Jelinek <jakub@redhat.com>
11233
11234 PR target/57688
11235 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
11236 add missing return true.
11237
12211b99 112382013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
0bcf9a09
OE
11239
11240 PR target/52483
11241 * config/sh/predicates.md (general_extend_operand): Invoke
11242 general_movsrc_operand for memory operands.
11243 (general_movsrc_operand): Allow reg+reg addressing, do not use
11244 general_operand for memory operands.
11245
97db2bf7
ST
112462013-06-23 Sriraman Tallam <tmsriram@google.com>
11247
11248 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
11249 when current target options does not apply.
11250 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
11251 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
11252 * config/i386/bmiintrin.h: Pass appropriate target
11253 attributes to header.
97db2bf7
ST
11254 * config/i386/mmintrin.h: Ditto.
11255 * config/i386/nmmintrin.h: Ditto.
11256 * config/i386/avx2intrin.h: Ditto.
11257 * config/i386/fxsrintrin.h: Ditto.
11258 * config/i386/tbmintrin.h: Ditto.
11259 * config/i386/xsaveintrin.h: Ditto.
11260 * config/i386/f16cintrin.h: Ditto.
11261 * config/i386/xtestintrin.h: Ditto.
11262 * config/i386/xsaveoptintrin.h: Ditto.
11263 * config/i386/bmi2intrin.h: Ditto.
11264 * config/i386/lzcntintrin.h: Ditto.
11265 * config/i386/smmintrin.h: Ditto.
11266 * config/i386/wmmintrin.h: Ditto.
11267 * config/i386/x86intrin.h: Remove all header include guards.
11268 * config/i386/prfchwintrin.h: Ditto.
11269 * config/i386/pmmintrin.h: Ditto.
11270 * config/i386/tmmintrin.h: Ditto.
11271 * config/i386/xmmintrin.h: Ditto.
11272 * config/i386/popcntintrin.h: Ditto.
11273 * config/i386/rdseedintrin.h: Ditto.
11274 * config/i386/ammintrin.h: Ditto.
11275 * config/i386/emmintrin.h: Ditto.
11276 * config/i386/immintrin.h: Remove all header include guards.
11277 * config/i386/fma4intrin.h: Ditto.
11278 * config/i386/lwpintrin.h: Ditto.
11279 * config/i386/xopintrin.h: Ditto.
11280 * config/i386/ia32intrin.h: Ditto.
11281 * config/i386/avxintrin.h: Ditto.
11282 * config/i386/rtmintrin.h: Ditto.
11283 * config/i386/fmaintrin.h: Ditto.
11284 * config/i386/mm3dnow.h: Ditto.
11285
495e6879
ST
112862013-06-22 Sriraman Tallam <tmsriram@google.com>
11287
11288 * common/config/i386/i386-common.c: Handle LZCNT.
11289
11e8f687
AK
112902013-06-22 Andi Kleen <ak@linux.intel.com>
11291
11292 * doc/extend.texi: Use __atomic_store_n instead of
11293 __atomic_store in HLE example.
11294
12211b99 112952013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
664dd721
OE
11296
11297 * config/sh/sh.c: Remove <cstdlib> workaround.
11298
927f908b
AK
112992013-06-21 Andi Kleen <ak@linux.intel.com>
11300
0ba6aff3 11301 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 11302
cca410b6
AK
113032013-06-21 Andi Kleen <ak@linux.intel.com>
11304
11305 * doc/extend.texi: Document that __atomic_clear and
11306 __atomic_test_and_set should only be used with bool.
11307
d84db1ed
JH
113082013-06-20 Jan Hubicka <jh@suse.cz>
11309
11310 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
11311 types_same_for_odr.
11312 * tree.c (decls_same_for_odr): New function.
11313 (same_for_edr): New function.
11314 (types_same_for_odr): New function.
11315 (get_binfo_at_offset): Use it.
11316 * tree.h (types_same_for_odr): Declare.
11317
12211b99 113182013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
11319 Jason Merrill <jason@redhat.com>
11320
11321 * system.h: Include <cstdlib> as well as <stdlib.h>.
11322
49b4ff63
UB
113232013-06-20 Uros Bizjak <ubizjak@gmail.com>
11324
11325 PR target/57655
11326 * config/i386/i386.c (construct_container): Report error if
11327 long double is used with disabled x87 float returns.
11328
7a89ad00
JH
113292013-06-20 Jan Hubicka <jh@suse.cz>
11330
11331 * lto-cgraph.c (input_symtab): Do not set cgraph state.
11332
12211b99 113332013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
bd280792
JR
11334
11335 PR rtl-optimization/57425
11336 PR rtl-optimization/57569
11337 * alias.c (write_dependence_p): Remove parameters mem_mode and
11338 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
11339 Changed all callers.
11340 (canon_anti_dependence): Get comments and semantics in sync.
11341 Add parameter mem_canonicalized. Changed all callers.
11342 * rtl.h (canon_anti_dependence): Update prototype.
11343
d16e9a99
RB
113442013-06-20 Richard Biener <rguenther@suse.de>
11345
11346 * data-streamer-in.c (streamer_read_uhwi): Optimize single
11347 byte case, inline streamer_read_uchar and defer section
11348 overrun check.
11349
c3a9b91b
RB
113502013-06-20 Richard Biener <rguenther@suse.de>
11351
11352 PR tree-optimization/57584
11353 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
11354 SSA names into the expanded expression that take part in
11355 abnormal coalescing.
11356
371e77e3 113572013-06-19 Sharad Singhai <singhai@google.com>
fc8a650e
SS
11358
11359 * gcov.c (print_usage): Handle new option.
11360 (process_args): Ditto.
11361 (get_gcov_intermediate_filename): New function.
11362 (output_intermediate_file): New function.
11363 (output_gcov_file): New function
11364 (generate_results): Handle new option.
11365 (release_function): Relase demangled name.
11366 (read_graph_file): Handle demangled name.
11367 (output_lines): Ditto.
11368 * doc/gcov.texi: Document gcov intermediate format.
11369
11f5b71a
VM
113702013-06-19 Vladimir Makarov <vmakarov@redhat.com>
11371
11372 PR bootstrap/57604
11373 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
11374 (lra_emit_add): Use the functions. Add comment about Y as an
11375 address segment.
11376
e1f9340b
DE
113772013-06-19 David Edelsohn <dje.gcc@gmail.com>
11378
11379 PR driver/57652
11380 * collect2.c (collect_atexit): New.
11381 (collect_exit): Delete.
11382 (main): Register collect_atexit with atexit.
11383 (collect_wait): Change collect_exit to exit.
11384 (do_wait): Same.
11385 * collect2.h (collect_exit): Delete.
11386 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
11387
e3f9e0ac
WM
113882013-06-19 Wei Mi <wmi@google.com>
11389
11390 PR rtl-optimization/57518
11391 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
11392 if regno is used in paradoxical subreg.
11393 (update_equiv_regs): Check pdx_subregs[regno] before
11394 set a reg to be equivalent with a mem.
11395
a09f1a76
MK
113962013-06-19 Matthias Klose <doko@ubuntu.com>
11397
11398 PR driver/57651
11399 * file-find.h (find_a_file): Add a mode parameter.
11400 * file-find.c (find_a_file): Likewise.
11401 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
11402 with X_OK for the executables.
11403 * collect2.c (main): Call find_a_file with X_OK.
11404
7d18b0ad
SE
114052013-06-19 Steve Ellcey <sellcey@mips.com>
11406
11407 PR target/56942
11408 * config/mips/mips.md (casesi_internal_mips16_<mode>):
11409 Use NEXT_INSN instead of next_real_insn.
11410
6a6dac52
JH
114112013-06-19 Jan Hubicka <jh@suse.cz>
11412
11413 * cgraph.h (const_value_known_p): Replace by ...
11414 (ctor_for_folding): .. this one.
11415 * cgraphunit.c (process_function_and_variable_attributes): Use it.
11416 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
11417 * expr.c (expand_expr_real_1): Likewise.
11418 (string_constant): Likewise.
11419 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
11420 * ipa.c (process_references): Likewise.
11421 (symtab_remove_unreachable_nodes): Likewise.
11422 * ipa-inline-analysis.c (param_change_prob): Likewise.
11423 * gimple-fold.c (canonicalize_constructor_val): Likewise.
11424 (get_base_constructor): Likwise.
11425 * varpool.c (varpool_remove_node): Likewise.
11426 (varpool_remove_initializer): LIkewise.
11427 (dump_varpool_node): LIkwise.
11428 (const_value_known_p): Rewrite to ...
11429 (ctor_for_folding): ... this one.
11430
216c12ab
JJ
114312013-06-19 Jakub Jelinek <jakub@redhat.com>
11432
11433 PR driver/57651
11434 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
11435 PERSONALITY in $PATH derived prefixes.
11436
d53e2f99
JL
114372013-06-19 Jeff Law <law@redhat.com>
11438
ecdbf306
JL
11439 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
11440 in comment.
11441
d53e2f99
JL
11442 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
11443 (simplify_bitwise_binary): Use it to simpify certain binary ops on
11444 booleans.
11445
89e7fc04
SN
114462013-06-19 Sofiane Naci <sofiane.naci@arm.com>
11447
11448 * config/arm/vfp.md: Move VFP instruction classification documentation
11449 to ...
11450 * config/arm/arm.md: ... here. Update instruction classification
11451 documentation.
11452
5e7f6aaa
RE
114532013-06-19 Richard Earnshaw <rearnsha@arm.com>
11454
11455 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
11456 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
11457 pattern. Use more efficient sequences on ARMv5 and Thumb2.
11458
5fdc1e5d
SB
114592013-06-19 Steven Bosscher <steven@gcc.gnu.org>
11460
11461 PR target/57609
11462 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
11463 with NEXT_INSN. Use tablejump_p to check for jump table data
11464 insns.
11465
e952afba
PC
114662013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
11467
11468 PR c++/56544
11469 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
11470 that now in C++ the value is correct per the C++ standards.
11471
3fd0303a
RB
114722013-06-19 Richard Biener <rguenther@suse.de>
11473
11474 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
11475 for global context.
11476
b04e4b08
AK
114772013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11478
11479 Revert:
11480 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11481
11482 PR target/57609
11483 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
11484 with next_active_insn.
11485
bef8491a
ST
114862013-06-18 Sriraman Tallam <tmsriram@google.com>
11487
11488 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
11489 functions are inlined during failures to flag an error.
11490 * tree-inline.c (expand_call_inline): Allow the error to be flagged
11491 in early inline pass.
22fc7d3d 11492
c21b257d
L
114932013-06-18 H.J. Lu <hongjiu.lu@intel.com>
11494
11495 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
11496 in comments.
11497
33255ae3
JB
114982013-06-18 Julian Brown <julian@codesourcery.com>
11499
11500 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
11501 Permit virtual register pre-reload if !strict.
11502 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
11503 change.
11504 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
11505 prototype.
11506 * config/arm/neon.md (movmisalign<mode>): Use
11507 neon_perm_struct_or_reg_operand instead of
11508 neon_struct_or_register_operand.
11509 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
11510 neon_permissive_struct_operand instead of neon_struct_operand.
11511 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
11512 neon_vector_mem_operand.
11513 * config/arm/predicates.md (neon_struct_operand): Adjust call to
11514 neon_vector_mem_operand.
11515 (neon_permissive_struct_operand): New.
11516 (neon_struct_or_register_operand): Rename to...
11517 (neon_perm_struct_or_reg_operand): This. Adjust call to
11518 neon_vector_mem_operand.
11519
d579fcda
RB
115202013-06-18 Richard Biener <rguenther@suse.de>
11521
11522 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
11523 * lto-streamer.h: Include pointer-set.h.
11524 (struct lto_decl_slot): Remove.
11525 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
11526 Remove next_index entry.
11527 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
11528 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
11529 (lto_init_tree_ref_encoder): Adjust.
11530 (lto_destroy_tree_ref_encoder): Likewise.
11531 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
11532 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
11533 (lto_output_decl_index): Adjust.
11534 (lto_new_out_decl_state): Likewise.
11535 (lto_record_function_out_decl_state): Likewise.
11536 * lto-streamer-out.c (copy_function): Likewise.
11537
31ee20ba
RB
115382013-06-18 Richard Biener <rguenther@suse.de>
11539
11540 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
11541 * cgraphunit.c: Include cfgloop.h.
11542 (init_lowered_empty_function): Initialize the loop tree.
11543 (assemble_thunk): Insert new BBs into loops.
11544
ac0511f2
RB
115452013-06-18 Richard Biener <rguenther@suse.de>
11546
11547 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
11548 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
11549 the map from cache entry to cache index optional.
11550 (streamer_tree_cache_replace_tree): Adjust accordingly.
11551 (streamer_tree_cache_append): Likewise.
11552 (streamer_tree_cache_delete): Likewise.
11553 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
11554 streamer cache map from cache entry to cache index.
11555 * lto-streamer-out.c (create_output_block): Adjust.
11556
09485a08
SN
115572013-06-18 Sofiane Naci <sofiane.naci@arm.com>
11558
22fc7d3d
UB
11559 * config/arm/arm.md (attribute "insn"): Move multiplication and
11560 division attributes to...
09485a08
SN
11561 (attribute "type"): ... here. Remove mult.
11562 (attribute "mul32"): New attribute.
11563 (attribute "mul64"): Add umaal.
11564 (*arm_mulsi3): Update attributes.
11565 (*arm_mulsi3_v6): Likewise.
11566 (*thumb_mulsi3): Likewise.
11567 (*thumb_mulsi3_v6): Likewise.
11568 (*mulsi3_compare0): Likewise.
11569 (*mulsi3_compare0_v6): Likewise.
11570 (*mulsi_compare0_scratch): Likewise.
11571 (*mulsi_compare0_scratch_v6): Likewise.
11572 (*mulsi3addsi): Likewise.
11573 (*mulsi3addsi_v6): Likewise.
11574 (*mulsi3addsi_compare0): Likewise.
11575 (*mulsi3addsi_compare0_v6): Likewise.
11576 (*mulsi3addsi_compare0_scratch): Likewise.
11577 (*mulsi3addsi_compare0_scratch_v6): Likewise.
11578 (*mulsi3subsi): Likewise.
11579 (*mulsidi3adddi): Likewise.
11580 (*mulsi3addsi_v6): Likewise.
11581 (*mulsidi3adddi_v6): Likewise.
11582 (*mulsidi3_nov6): Likewise.
11583 (*mulsidi3_v6): Likewise.
11584 (*umulsidi3_nov6): Likewise.
11585 (*umulsidi3_v6): Likewise.
11586 (*umulsidi3adddi): Likewise.
11587 (*umulsidi3adddi_v6): Likewise.
11588 (*smulsi3_highpart_nov6): Likewise.
11589 (*smulsi3_highpart_v6): Likewise.
11590 (*umulsi3_highpart_nov6): Likewise.
11591 (*umulsi3_highpart_v6): Likewise.
11592 (mulhisi3): Likewise.
11593 (*mulhisi3tb): Likewise.
11594 (*mulhisi3bt): Likewise.
11595 (*mulhisi3tt): Likewise.
11596 (maddhisi4): Likewise.
11597 (*maddhisi4tb): Likewise.
11598 (*maddhisi4tt): Likewise.
11599 (maddhidi4): Likewise.
11600 (*maddhidi4tb): Likewise.
11601 (*maddhidi4tt): Likewise.
11602 (divsi3): Likewise.
11603 (udivsi3): Likewise.
11604 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
11605 (thumb2_mulsi_short_compare0): Likewise.
11606 (thumb2_mulsi_short_compare0_scratch): Likewise.
11607 * config/arm/arm1020e.md (1020mult1): Update attribute change.
11608 (1020mult2): Likewise.
11609 (1020mult3): Likewise.
11610 (1020mult4): Likewise.
11611 (1020mult5): Likewise.
11612 (1020mult6): Likewise.
22fc7d3d
UB
11613 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
11614 change.
09485a08
SN
11615 (cortex_a15_mult64): Likewise.
11616 (cortex_a15_sdiv): Likewise.
11617 (cortex_a15_udiv): Likewise.
11618 * config/arm/arm1026ejs.md (mult1): Update attribute change.
11619 (mult2): Likewise.
11620 (mult3): Likewise.
11621 (mult4): Likewise.
11622 (mult5): Likewise.
11623 (mult6): Likewise.
11624 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
11625 (pj4_ir_div): Likewise.
11626 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
11627 (11_mult2): Likewise.
11628 (11_mult3): Likewise.
11629 (11_mult4): Likewise.
11630 (11_mult5): Likewise.
11631 (11_mult6): Likewise.
11632 (11_mult7): Likewise.
11633 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
11634 (cortex_a8_mla): Likewise.
11635 (cortex_a8_mull): Likewise.
11636 (cortex_a8_smulwy): Likewise.
11637 (cortex_a8_smlald): Likewise.
11638 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
11639 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
11640 (cortex_r4_mul_3): Likewise.
11641 (cortex_r4_mla_4): Likewise.
11642 (cortex_r4_mla_3): Likewise.
11643 (cortex_r4_smlald): Likewise.
11644 (cortex_r4_mull): Likewise.
11645 (cortex_r4_sdiv): Likewise.
11646 (cortex_r4_udiv): Likewise.
11647 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
11648 (cortex_a7_idiv): Likewise.
11649 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
11650 (9_mult2): Likewise.
11651 (9_mult3): Likewise.
11652 (9_mult4): Likewise.
11653 (9_mult5): Likewise.
11654 (9_mult6): Likewise.
11655 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
11656 (cortex_a53_sdiv): Likewise.
11657 (cortex_a53_udiv): Likewise.
11658 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
11659 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
11660 (mp626_mult2): Likewise.
11661 (mp626_mult3): Likewise.
11662 (mp626_mult4): Likewise.
11663 * config/arm/fa526.md (526_mult1): Update attribute change.
11664 (526_mult2): Likewise.
11665 * config/arm/arm-generic.md (mult): Update attribute change.
11666 (mult_ldsched_strongarm): Likewise.
11667 (mult_ldsched): Likewise.
11668 (multi_cycle): Likewise.
11669 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
11670 * config/arm/fa606te.md (606te_mult1): Update attribute change.
11671 (606te_mult2): Likewise.
11672 (606te_mult3): Likewise.
11673 (606te_mult4): Likewise.
11674 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
11675 (cortex_a9_mac16): Likewise.
11676 (cortex_a9_multiply): Likewise.
11677 (cortex_a9_mac): Likewise.
11678 (cortex_a9_multiply_long): Likewise.
11679 * config/arm/fa626te.md (626te_mult1): Update attribute change.
11680 (626te_mult2): Likewise.
11681 (626te_mult3): Likewise.
11682 (626te_mult4): Likewise.
11683
8951f345
RB
116842013-06-18 Richard Biener <rguenther@suse.de>
11685
11686 PR lto/57334
11687 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
11688
d8101d05
AK
116892013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11690
11691 PR target/57609
11692 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
11693 with next_active_insn.
11694
69eff9da
AM
116952013-06-18 Alan Modra <amodra@gmail.com>
11696
11697 * config/rs6000/rs6000.h (enum data_align): New.
11698 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
11699 (DATA_ABI_ALIGNMENT): Define.
11700 (CONSTANT_ALIGNMENT): Correct comment.
11701 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
11702 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
11703
8ed00d76
DM
117042013-06-17 David Malcolm <dmalcolm@redhat.com>
11705
11706 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
11707 ATTRIBUTE_UNUSED marking.
11708
3d33d06b
SN
117092013-06-17 Sofiane Naci <sofiane.naci@arm.com>
11710
11711 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
11712 alternative and update.
11713 (aarch64_dup_lanedi): Delete.
11714 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
11715 * config/aarch64/aarch64-simd-builtins.def: Update.
11716
ee03e71d
RB
117172013-06-17 Richard Biener <rguenther@suse.de>
11718
11719 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
11720 (lto_input_scc): Declare.
11721 (lto_input_tree_1): Likewise.
11722 (struct lto_stats_d): Add num_tree_bodies_output and
11723 num_pickle_refs_output.
11724 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
11725 (lto_read_tree_1): Split out from ...
11726 (lto_read_tree): ... this.
11727 (lto_input_scc): New function.
11728 (lto_input_tree_1): Split out from ...
11729 (lto_input_tree): ... this. Handle LTO_tree_scc.
11730 (lto_data_in_create): Create the streamer cache without hashes.
11731 * lto-streamer-out.c (create_output_block): Create the streamer
11732 cache with hashes when not doing WPA.
11733 (lto_write_tree_1): Split out from ...
11734 (lto_write_tree): ... this.
11735 (get_symbol_initial_value): New function.
11736 (lto_output_tree_1): Split out from ...
11737 (lto_output_tree): ... this. Write trees as series of SCCs
11738 using a DFS walk via DFS_write_tree.
11739 (struct sccs, struct scc_entry): New types.
11740 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
11741 (DFS_write_tree_body): New function.
11742 (DFS_write_tree): Likewise.
11743 (hash_tree): Likewise.
11744 (scc_entry_compare): Likewise.
11745 (hash_scc): Likewise.
11746 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
11747 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
11748 TREE_CHAIN as regular reference.
11749 (streamer_read_integer_cst): Remove.
11750 (streamer_get_pickled_tree): Adjust.
11751 * tree-streamer-out.c (streamer_write_chain): Disable streaming
11752 of DECL_EXTERNALs in BLOCK_VARS for now.
11753 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
11754 reference.
11755 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
11756 Add hash value argument and record that if hashes are recorded
11757 in the cache.
11758 (streamer_tree_cache_insert_1): Adjust.
11759 (streamer_tree_cache_insert): Likewise.
11760 (streamer_tree_cache_insert_at): Rename to ...
11761 (streamer_tree_cache_replace_tree): ... this and adjust.
11762 (streamer_tree_cache_append): Adjust.
11763 (record_common_node): Likewise.
11764 (streamer_tree_cache_create): Add argument whether to
11765 record hash values together with trees.
11766 (streamer_tree_cache_delete): Adjust.
11767 * tree-streamer.h (struct streamer_tree_cache_d): Add
11768 vector of hashes.
11769 (streamer_read_integer_cst): Remove.
11770 (streamer_tree_cache_insert): Adjust.
11771 (streamer_tree_cache_append): Likewise.
11772 (streamer_tree_cache_insert_at): Rename to ...
11773 (streamer_tree_cache_replace_tree): ... this and adjust.
11774 (streamer_tree_cache_create): Add argument whether to record hashes.
11775 (streamer_tree_cache_get): Rename to ...
11776 (streamer_tree_cache_get_tree): ... this.
11777 (streamer_tree_cache_get_hash): New function.
11778 * tree.c (cache_integer_cst): New function.
11779 * tree.h (cache_integer_cst): Declare.
11780 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
11781 * lto-symtab.c (lto_varpool_replace_node): Only release
11782 DECL_INITIAL of non-prevailing decls.
11783 * varpool.c (varpool_remove_initializer): Do not release
11784 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
11785
0de86a92
JU
117862013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
11787
11788 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
11789 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
11790 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
11791 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
11792 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
11793 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
11794 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
11795 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
11796 instead of TARGET_64BIT.
11797 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
11798 Require ISA_HAS_<D>DIV.
11799
74240413
RS
118002013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11801
11802 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
11803 (mips*-*-linux*): Move default with_llsc setting to where other
11804 defaults are set.
11805 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
11806 with_arch block.
11807 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
11808 Likewise. Remove default with_tune setting. Move default float
11809 setting to its own block. Handle with_llsc in the same block as above.
11810
12211b99 118112013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
393f9fed
JR
11812
11813 PR rtl-optimization/57425
11814 PR rtl-optimization/57569
299a5f6a 11815 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
11816 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
11817 Changed all callers.
11818 (canon_anti_dependence): New function.
11819 * cse.c (check_dependence): Use canon_anti_dependence.
11820 * cselib.c (cselib_invalidate_mem): Likewise.
11821 * rtl.h (canon_anti_dependence): Declare.
11822
b259d352
JU
118232013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
11824
11825 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
11826 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
11827 ".set mips3" for 64-bit targets.
11828
4de09b85
DC
118292013-06-15 Dehao Chen <dehao@google.com>
11830
11831 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
11832 * gimple-low.c (gimple_check_call_matching_types): Likewise.
11833 (gimple_check_call_args): Likewise.
11834 * value-prof.c (check_ic_target): Likewise.
11835 * ipa-inline.c (early_inliner): Likewise.
11836 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
11837 * cgraph.c (cgraph_create_edge_1): Likewise.
11838 (cgraph_make_edge_direct): Likewise.
11839
d1aa4a76
MM
118402013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11841
11842 PR target/57615
11843 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
11844 rs6000_output_move_128bit to handle emitting quad memory
11845 operations. Set attribute length to 8 bytes.
11846
12211b99 118472013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24244e4d
VP
11848
11849 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
11850 New pattern.
11851 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
11852 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
11853 (aarch64_<su>mlsl<mode>): Likewise.
11854
f5273574
MS
118552013-06-14 Mike Stump <mikestump@comcast.net>
11856
11857 * Makefile.in (TARGET_H): Add insn-codes.h.
11858
ef7e7ab2
AM
118592013-06-14 Alan Modra <amodra@gmail.com>
11860
11861 PR middle-end/57134
11862 PR middle-end/57586
11863 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
11864 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
11865 bitfield expansion when EXPAND_MEMORY.
11866 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
11867
135faab6
MM
118682013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11869
11870 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
11871 test for clearing quad memory on 32-bit later.
11872
948a1fd9
MG
118732013-06-13 Marc Glisse <marc.glisse@inria.fr>
11874
11875 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
11876 (fold_negate_expr): Likewise.
11877 (fold_real_zero_addition_p): Handle vectors.
11878 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
11879
0597fb9c
AM
118802013-06-14 Alan Modra <amodra@gmail.com>
11881
11882 * varasm.c (force_const_mem): Revert 2013-06-07 change.
11883
e5b962d0
JH
118842013-06-13 Jan Hubicka <jh@suse.cz>
11885
11886 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
11887 Local comdats are not externally visible.
11888 * symtab.c (dump_symtab_base): Dump externally visible.
11889 (verify_symtab_base): Verify back links in the symtab hash.
11890
a8355e51
BC
118912013-06-13 Bin Cheng <bin.cheng@arm.com>
11892
11893 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
11894 CONVERT_EXPR as equal nodes.
11895
8f7e6e33
BC
118962013-06-13 Bin Cheng <bin.cheng@arm.com>
11897
22fc7d3d 11898 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 11899
5d418483
MG
119002013-06-13 Marc Glisse <marc.glisse@inria.fr>
11901
11902 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
11903 Generalize to complex and vector.
11904 * tree.c (build_all_ones_cst): New function.
11905 * tree.h (build_all_ones_cst): Declare it.
11906
50751417
AM
119072013-06-13 Alan Modra <amodra@gmail.com>
11908
11909 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
11910 * config/rs6000/rs6000.md (signbittf2): New insn.
11911 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
11912 (abstf2_internal, cmptf_internal2): Likewise.
11913 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
11914
4b02c962 119152013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11916 Pat Haugen <pthaugen@us.ibm.com>
11917 Peter Bergner <bergner@vnet.ibm.com>
4b02c962
MM
11918
11919 * config/rs6000/rs6000.c (emit_load_locked): Add support for
11920 power8 byte, half-word, and quad-word atomic instructions.
11921 (emit_store_conditional): Likewise.
11922 (rs6000_expand_atomic_compare_and_swap): Likewise.
11923 (rs6000_expand_atomic_op): Likewise.
11924
11925 * config/rs6000/sync.md (larx): Add new modes for power8.
11926 (stcx): Likewise.
11927 (AINT): New mode iterator to include TImode as well as normal
11928 integer modes on power8.
11929 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
11930 that VSX registers are not considered. Use AINT mode iterator
11931 instead of INT1 to allow inclusion of quad word atomic operations
11932 on power8.
11933 (load_locked<mode>): Likewise.
11934 (store_conditional<mode>): Likewise.
11935 (atomic_compare_and_swap<mode>): Likewise.
11936 (atomic_exchange<mode>): Likewise.
11937 (atomic_nand<mode>): Likewise.
11938 (atomic_fetch_<fetchop_name><mode>): Likewise.
11939 (atomic_nand_fetch<mode>): Likewise.
11940 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
11941 each type.
11942 (ATOMIC): On power8, add QImode, HImode modes.
11943 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
11944 modes that promote to SImode.
11945 (load_lockedti): Convert TImode arguments to PTImode, so that we
11946 get a guaranteed even/odd register pair.
11947 (load_lockedpti): Likewise.
11948 (store_conditionalti): Likewise.
11949 (store_conditionalpti): Likewise.
11950
11951 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
11952 atomic load/store instructions.
11953 (HSI): Likewise.
11954
710b6cc1
RS
119552013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
11956
11957 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
11958 loads.
11959 (insn_count): New attribute, with most cases extracted from...
11960 (length): ...here. Redefine most cases in terms of insn_count.
11961 (single_insn): Delete.
11962 (can_delay): Use insn_count to check for single instructions.
11963 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
11964 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
11965 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
11966 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
11967 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
11968 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
11969 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
11970 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
11971 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
11972 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
11973 rather than "length".
11974 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
11975 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
11976 Use "insn_count" rather than "length".
11977 * config/mips/mips-dsp.md
11978 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
11979 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
11980 length attributes.
11981
1951f101
MG
119822013-06-12 Marc Glisse <marc.glisse@inria.fr>
11983
11984 PR tree-optimization/57361
11985 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
11986
8b033a8a
SN
119872013-06-12 Sofiane Naci <sofiane.naci@arm.com>
11988
22fc7d3d
UB
11989 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
11990 to split.
8b033a8a
SN
11991 (aarch64_simd_combine<mode>): New instruction expansion.
11992 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
11993 function prototype.
11994 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
11995 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
11996
ca0f62a8
JH
119972013-06-12 Jan Hubicka <jh@suse.cz>
11998
11999 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
12000 decl has when in streaming stage.
12001 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
12002 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
12003
12211b99 120042013-06-12 Roland Stigge <stigge@antcom.de>
cddd69eb
RS
12005
12006 PR target/57578
12007 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
12008
bfdeda2c
JJ
120092013-06-12 Jakub Jelinek <jakub@redhat.com>
12010
12011 PR tree-optimization/57537
12012 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
12013 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
12014
a4fa02d1
RB
120152013-06-12 Richard Biener <rguenther@suse.de>
12016
12017 * data-streamer.h (streamer_write_char_stream): CSE
12018 obs->current_pointer.
12019 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
12020 streamer_write_char_stream manually and optimize the resulting loop.
12021 (streamer_write_hwi_stream): Likewise.
12022
bbf9ad07
JH
120232013-06-12 Jan Hubicka <jh@suse.cz>
12024
12025 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
12026 * cgraph.h (varpool_create_empty_node): Declare.
12027 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
12028 duplicated nodes.
12029 * symtab.c (symtab_unregister_node): Be lax about missin entries
12030 in node hash.
12031 (symtab_get_node): Update comment.
12032 * varpool.c (varpool_create_empty_node): Break out from ...
12033 (varpool_node_for_decl): ... here.
12034 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
12035
a53f90ad
EB
120362013-06-12 Eric Botcazou <ebotcazou@adacore.com>
12037
12038 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
12039 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
12040 part. Use straight-line flow at the end.
12041 <COMPONENT_REF>: Remove superfluous else.
12042 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
12043
946f9306
JJ
120442013-06-12 Jakub Jelinek <jakub@redhat.com>
12045
12046 PR target/56564
12047 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
12048 target hook even for !TREE_PUBLIC decls. If no resolution info
12049 is available, return false for common and external decls.
12050
a7fca6f0
KP
120512013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12052
12053 * config/rl78/constraints.md (U): New constraint.
12054 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
12055 valloc attribute.
12056
c7d8f446
MM
120572013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12058
12059 PR target/57589
12060 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
12061 to allow returning address to AT_PLATFORM name.
12062
08346abd
JH
120632013-06-11 Jan Hubicka <jh@suse.cz>
12064
12065 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
12066 * cgraph.h (symtab_node_base): Add weakref flag.
12067 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
12068 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
12069 (output_weakrefs): Use weakref flag.
12070 * fold-const.c (simple_operand_p): Handle WEAK.
12071 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
12072 * ipa.c (varpool_externally_visible_p): Drop weakref.
12073 (function_and_variable_visibility): Update comment; fix weakref
12074 sanity checks; do not clear DECL_WEAK on them.
12075 * lto-cgraph.c (lto_output_node): update.
12076 (lto_output_varpool_node): Update.
12077 (input_overwrite_node): Update.
12078 (input_node): Update.
12079 (input_varpool_node): Update.
12080 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
12081 (lto_symtab_merge_symbols): Add sanity check.
12082 (lto_symtab_prevailing_decl): Do not special case weakrefs.
12083 * passes.c (rest_of_decl_compilation): Set static flag, too.
12084 * symtab.c (dump_symtab_base): Dump weakref.
12085 (verify_symtab_base): Sanity check weakrefs.
12086 (symtab_make_decl_local): Remove duplicated code.
12087 (symtab_alias_ultimate_target): Simplify.
12088 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 12089
2e6a2f88
TV
120902013-06-11 Tom de Vries <tom@codesourcery.com>
12091
12092 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
12093 sequence_vect == NULL.
12094
d9af3652
DD
120952013-06-11 DJ Delorie <dj@redhat.com>
12096
12097 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
12098 (rl78_unwind_word_mode): New.
12099
ffa66012
DM
121002013-06-11 David Malcolm <dmalcolm@redhat.com>
12101
12102 * final.c (debug_prefix_maps): Make static.
12103
783f2d35
DM
121042013-06-11 David Malcolm <dmalcolm@redhat.com>
12105
12106 * function.c (initial_trampoline): Remove stray copy.
12107
7af26def
SN
121082013-06-11 Sofiane Naci <sofiane.naci@arm.com>
12109
12110 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
12111
97756c0e
MJ
121122013-06-11 Martin Jambor <mjambor@suse.cz>
12113
12114 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
12115 within bounds at the beginning of the function.
12116
2c7b8bf6
AM
121172013-06-11 Alan Modra <amodra@gmail.com>
12118
12119 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
12120 reporting.
12121 (get_named_section): Don't NULL !DECL_P decl.
12122
77cea46e
IZ
121232013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
12124
12125 * doc/invoke.texi (core-avx2): Document.
12126 (slm): Likewise.
12127 (atom): Updated with MOVBE.
12128
888f0920
RB
121292013-06-11 Richard Biener <rguenther@suse.de>
12130
22fc7d3d 12131 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 12132
6b438d58
AB
121332013-06-11 Anton Blanchard <anton@samba.org>
12134
12135 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
12136 correct shift value in little-endian mode.
12137
3bc66938
JJ
121382013-06-11 Jakub Jelinek <jakub@redhat.com>
12139
12140 PR target/56564
12141 * varasm.c (get_variable_align): Move #endif to the right place.
12142
a5dc7f88
CC
121432013-06-10 Cary Coutant <ccoutant@google.com>
12144
12145 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
12146 for hash so that hash table traversal order is deterministic.
12147
19be72ab 121482013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
12149 Pat Haugen <pthaugen@us.ibm.com>
12150 Peter Bergner <bergner@vnet.ibm.com>
19be72ab
MM
12151
12152 * config/rs6000/vector.md (GPR move splitter): Do not split moves
12153 of vectors in GPRS if they are direct moves or quad word load or
12154 store moves.
12155
12156 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
12157 declaration.
12158 (direct_move_p): Likewise.
12159 (quad_load_store_p): Likewise.
12160
12161 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
12162 classes into bins based on the physical register type.
12163 (reg_class_to_reg_type): Likewise.
12164 (IS_STD_REG_TYPE): Likewise.
12165 (IS_FP_VECT_REG_TYPE): Likewise.
12166 (reload_fpr_gpr): Arrays to determine what insn to use if we can
12167 use direct move instructions.
12168 (reload_gpr_vsx): Likewise.
12169 (reload_vsx_gpr): Likewise.
12170 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
12171 information that is a simplification of register classes. Also
12172 precalculate direct move reload helpers.
12173 (direct_move_p): New function to return true if the operation can
12174 be done as a direct move instruciton.
12175 (quad_load_store_p): New function to return true if the operation
12176 is a quad memory operation.
12177 (rs6000_legitimize_address): If quad memory, only allow register
12178 indirect for TImode addresses.
12179 (rs6000_legitimate_address_p): Likewise.
12180 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
12181 (rs6000_reload_register_type): Likewise.
12182 (register_to_reg_type): Return register type.
12183 (rs6000_secondary_reload_simple_move): New helper function for
12184 secondary reload and secondary memory needed to identify anything
12185 that is a simple move, and does not need reloading.
12186 (rs6000_secondary_reload_direct_move): New helper function for
12187 secondary reload to identify cases that can be done with several
12188 instructions via the direct move instructions.
12189 (rs6000_secondary_reload_move): New helper function for secondary
12190 reload to identify moves between register types that can be done.
12191 (rs6000_secondary_reload): Add support for quad memory operations
12192 and for direct move.
12193 (rs6000_secondary_memory_needed): Likewise.
12194 (rs6000_debug_secondary_memory_needed): Change argument names.
12195 (rs6000_output_move_128bit): New function to return the move to
12196 use for 128-bit moves, including knowing about the various
12197 limitations of quad memory operations.
12198
12199 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
12200 memory operations. call rs6000_output_move_128bit for the actual
12201 instruciton(s) to generate.
12202 (vsx_movti_64bit): Likewise.
12203
12204 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
12205 (UNSPEC_P8V_MTVSRWZ): Likewise.
12206 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
12207 (UNSPEC_P8V_MTVSRD): Likewise.
12208 (UNSPEC_P8V_XXPERMDI): Likewise.
12209 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
12210 (UNSPEC_FUSION_GPR): Likewise.
12211 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 12212 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
12213 (f32_sv): Likewise.
12214 (f32_dm): Likewise.
12215 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
12216 loads and direct move instructions.
12217 (zero_extendsidi2_lfiwzx): Likewise.
12218 (extendsidi2_lfiwax): Likewise.
12219 (extendsidi2_nocell): Likewise.
12220 (floatsi<mode>2_lfiwax): Likewise.
12221 (lfiwax): Likewise.
12222 (floatunssi<mode>2_lfiwzx): Likewise.
12223 (lfiwzx): Likewise.
12224 (fix_trunc<mode>_stfiwx): Likewise.
12225 (fixuns_trunc<mode>_stfiwx): Likewise.
12226 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
12227 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
12228 (parity<mode>2_cmpb): Set length/type attr.
12229 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
12230 for 'mr.' to fast_compare.
12231 (bpermd_<mode>): Change type attr to popcnt.
12232 (p8_fmrgow_<mode>): New insns for power8 direct move support.
12233 (p8_mtvsrwz_1): Likewise.
12234 (p8_mtvsrwz_2): Likewise.
12235 (reload_fpr_from_gpr<mode>): Likewise.
12236 (p8_mtvsrd_1): Likewise.
12237 (p8_mtvsrd_2): Likewise.
12238 (p8_xxpermdi_<mode>): Likewise.
12239 (reload_vsx_from_gpr<mode>): Likewise.
12240 (reload_vsx_from_gprsf): Likewise.
12241 (p8_mfvsrd_3_<mode>): LIkewise.
12242 (reload_gpr_from_vsx<mode>): Likewise.
12243 (reload_gpr_from_vsxsf): Likewise.
12244 (p8_mfvsrd_4_disf): Likewise.
12245 (multi-word GPR splits): Do not split direct moves or quad memory
12246 operations.
12247
16876bdc
DM
122482013-06-10 David Malcolm <dmalcolm@redhat.com>
12249
12250 * tree-into-ssa.c (interesting_blocks): Make static.
12251
df8a1d28
JJ
122522013-06-10 Jakub Jelinek <jakub@redhat.com>
12253
12254 PR target/56564
12255 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
12256 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
12257 Use DATA_ABI_ALIGNMENT for that case instead if defined.
12258 (get_variable_align): New function.
12259 (get_variable_section, emit_bss, emit_common,
12260 assemble_variable_contents, place_block_symbol): Use
12261 get_variable_align instead of DECL_ALIGN.
12262 (assemble_noswitch_variable): Add align argument, use it
12263 instead of DECL_ALIGN.
12264 (assemble_variable): Adjust caller. Use get_variable_align
12265 instead of DECL_ALIGN.
12266 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
12267 caller.
12268 (DATA_ABI_ALIGNMENT): Define.
12269 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
12270 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
12271 opt is false, only return the psABI mandated alignment increase.
12272 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
12273 (DATA_ABI_ALIGNMENT): ... this.
12274 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
12275 (DATA_ABI_ALIGNMENT): ... this.
12276 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
12277 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
12278 (DATA_ABI_ALIGNMENT): ... this.
12279 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
12280 * doc/tm.texi: Regenerated.
12281
57b29ca6
UB
122822013-06-10 Uros Bizjak <ubizjak@gmail.com>
12283
12284 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
12285 cmp_code to construct REG_EQUAL note.
12286
3e56ed50
JJ
122872013-06-09 Jakub Jelinek <jakub@redhat.com>
12288
12289 PR target/57568
12290 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
12291 that operands[2] doesn't overlap with operands[0].
12292
74fe2a1d
DE
122932013-06-09 David Edelsohn <dje.gcc@gmail.com>
12294 Jan Hubicka <jh@suse.cz>
12295
12296 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
12297 hack to mark symbols as used.
12298
ed52a84e
VM
122992013-06-08 Vladimir Makarov <vmakarov@redhat.com>
12300
12301 PR rtl-optimization/57559
12302 * lra-constraints.c (process_alt_operands): Don't discourage
12303 memory with known offset for offsetable memory constraint.
12304 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
12305
299316ed
EB
123062013-06-08 Eric Botcazou <ebotcazou@adacore.com>
12307
12308 * varasm.c (struct oc_local_state): Reorder fields.
12309 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
12310 and adjust accordingly.
12311 (output_constructor): Reorder initialization code and adjust call to
12312 output_constructor_bitfield.
12313
88ac60d3
JH
123142013-06-07 Jan Hubicka <jh@suse.cz>
12315
12316 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
12317
4cdce1a8
DM
123182013-06-07 David Malcolm <dmalcolm@redhat.com>
12319
12320 * tree-object-size.c (unknown): Make const.
12321
b5e0425c
AK
123222013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12323
12324 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
12325 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
12326 for last alternative in the cpu_facility attribute.
12327
79678d04
KT
123282013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12329
12330 PR target/56315
12331 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
12332 (xordi3): Change operand 2 constraint to arm_xordi_operand.
12333 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
12334 * config/arm/constraints.md (Dg): New constraint.
12335 * config/arm/neon.md (xordi3_neon): Remove.
12336 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
12337 * config/arm/predicates.md (arm_xordi_operand): New predicate.
12338
b31ddbdb
KT
123392013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12340
12341 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
12342 Clean up alternatives.
12343
8f90b7d4
AM
123442013-06-07 Alan Modra <amodra@gmail.com>
12345
12346 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
12347 va_list_gpr_size.
12348
961ce119
AM
123492013-06-07 Alan Modra <amodra@gmail.com>
12350
12351 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
12352
33e49835
KT
123532013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12354
12355 * config/arm/constraints.md (Df): New constraint.
12356 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
12357 Correct length attribute for last two alternatives.
12358
acd17ae6
AM
123592013-06-07 Alan Modra <amodra@gmail.com>
12360
12361 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12362 override user -mfp-in-toc.
12363 (offsettable_ok_by_alignment): Consider just the current access
12364 rather than the whole object, unless BLKmode. Handle
12365 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
12366 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
12367 for -mcmodel=medium.
12368 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
12369 override user -mfp-in-toc or -msum-in-toc. Default to
12370 -mno-fp-in-toc for -mcmodel=medium.
12371
73310b0e
DD
123722013-06-06 DJ Delorie <dj@redhat.com>
12373
12374 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
12375 TARGET_VALID_POINTER_MODE.
12376
0bd62dca 123772013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
12378 Pat Haugen <pthaugen@us.ibm.com>
12379 Peter Bergner <bergner@vnet.ibm.com>
0bd62dca
MM
12380
12381 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12382 Document new power8 builtins.
12383
12384 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
12385 condition code register, to allow 128-bit logical operations to be
12386 done in the VSX or GPR registers.
12387 (nor<mode>3): Use the canonical form for nor.
12388 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
12389 vclz*, and vpopcnt* vector instructions.
12390 (nand<mode>3): Likewise.
12391 (orc<mode>3): Likewise.
12392 (clz<mode>2): LIkewise.
12393 (popcount<mode>2): Likewise.
12394
12395 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
12396 that only the GPRs are recognized.
12397
12398 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12399 support for new power8 builtins.
12400
12401 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
12402 builtin functions.
12403 (xscvdpspn): Likewise.
12404 (vclz): Likewise.
12405 (vclzb): Likewise.
12406 (vclzh): Likewise.
12407 (vclzw): Likewise.
12408 (vclzd): Likewise.
12409 (vpopcnt): Likewise.
12410 (vpopcntb): Likewise.
12411 (vpopcnth): Likewise.
12412 (vpopcntw): Likewise.
12413 (vpopcntd): Likewise.
12414 (vgbbd): Likewise.
12415 (vmrgew): Likewise.
12416 (vmrgow): Likewise.
12417 (eqv): Likewise.
12418 (eqv_v16qi3): Likewise.
12419 (eqv_v8hi3): Likewise.
12420 (eqv_v4si3): Likewise.
12421 (eqv_v2di3): Likewise.
12422 (eqv_v4sf3): Likewise.
12423 (eqv_v2df3): Likewise.
12424 (nand): Likewise.
12425 (nand_v16qi3): Likewise.
12426 (nand_v8hi3): Likewise.
12427 (nand_v4si3): Likewise.
12428 (nand_v2di3): Likewise.
12429 (nand_v4sf3): Likewise.
12430 (nand_v2df3): Likewise.
12431 (orc): Likewise.
12432 (orc_v16qi3): Likewise.
12433 (orc_v8hi3): Likewise.
12434 (orc_v4si3): Likewise.
12435 (orc_v2di3): Likewise.
12436 (orc_v4sf3): Likewise.
12437 (orc_v2df3): Likewise.
12438
12439 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
12440 allow power8 quad mode in 64-bit.
12441 (rs6000_builtin_vectorized_function): Add support to vectorize
12442 ISA 2.07 count leading zeros, population count builtins.
12443 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
12444 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
12445 (builtin_function_type): Add vgbbd builtin function which takes an
12446 unsigned argument.
12447 (altivec_expand_vec_perm_const): Add support for new power8 merge
12448 instructions.
12449
12450 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
12451 that does not include TImdoe for use with 32-bit.
12452 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
12453 instructions.
12454 (UNSPEC_VSX_CVDPSPN): Likewise.
12455 (vsx_xscvdpspn): Likewise.
12456 (vsx_xscvspdpn): Likewise.
12457 (vsx_xscvdpspn_scalar): Likewise.
12458 (vsx_xscvspdpn_directmove): Likewise.
12459 (vsx_and<mode>3): Split logical operations into 32-bit and
12460 64-bit. Add support to do logical operations on TImode as well as
12461 VSX vector types. Allow logical operations to be done in either
12462 VSX registers or in general purpose registers in 64-bit mode. Add
12463 splitters if GPRs were used. For AND, add clobber of CCmode to
12464 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
12465 encoding.
12466 (vsx_and<mode>3_32bit): Likewise.
12467 (vsx_and<mode>3_64bit): Likewise.
12468 (vsx_ior<mode>3): Likewise.
12469 (vsx_ior<mode>3_32bit): Likewise.
12470 (vsx_ior<mode>3_64bit): Likewise.
12471 (vsx_xor<mode>3): Likewise.
12472 (vsx_xor<mode>3_32bit): Likewise.
12473 (vsx_xor<mode>3_64bit): Likewise.
12474 (vsx_one_cmpl<mode>2): Likewise.
12475 (vsx_one_cmpl<mode>2_32bit): Likewise.
12476 (vsx_one_cmpl<mode>2_64bit): Likewise.
12477 (vsx_nor<mode>3): Likewise.
12478 (vsx_nor<mode>3_32bit): Likewise.
12479 (vsx_nor<mode>3_64bit): Likewise.
12480 (vsx_andc<mode>3): Likewise.
12481 (vsx_andc<mode>3_32bit): Likewise.
12482 (vsx_andc<mode>3_64bit): Likewise.
12483 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
12484 and xxlorc instructions.
12485 (vsx_eqv<mode>3_64bit): Likewise.
12486 (vsx_nand<mode>3_32bit): Likewise.
12487 (vsx_nand<mode>3_64bit): Likewise.
12488 (vsx_orc<mode>3_32bit): Likewise.
12489 (vsx_orc<mode>3_64bit): Likewise.
12490
12491 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
12492
12493 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
12494 instruction.
12495 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
12496 (p8_vmrgow): Likewise.
12497 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
12498 GPRs to be split under VSX.
12499 (p8v_clz<mode>2): Add power8 count leading zero support.
12500 (p8v_popcount<mode>2): Add power8 population count support.
12501 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
12502 support.
12503
12504 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
12505 instruction.
12506
12507 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
12508 builtin functions.
12509 (vec_nand): Likewise.
12510 (vec_vclz): Likewise.
12511 (vec_vclzb): Likewise.
12512 (vec_vclzd): Likewise.
12513 (vec_vclzh): Likewise.
12514 (vec_vclzw): Likewise.
12515 (vec_vgbbd): Likewise.
12516 (vec_vmrgew): Likewise.
12517 (vec_vmrgow): Likewise.
12518 (vec_vpopcnt): Likewise.
12519 (vec_vpopcntb): Likewise.
12520 (vec_vpopcntd): Likewise.
12521 (vec_vpopcnth): Likewise.
12522 (vec_vpopcntw): Likewise.
12523
37684c46
VM
125242013-06-06 Vladimir Makarov <vmakarov@redhat.com>
12525
12526 PR rtl-optimization/57468
12527 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
12528 spilled pseudos.
12529
d89ae27c
VM
125302013-06-06 Vladimir Makarov <vmakarov@redhat.com>
12531
12532 PR rtl-optimization/57459
12533 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
12534 type when setting live regs.
12535
3597e113
VM
125362013-06-06 Vladimir Makarov <vmakarov@redhat.com>
12537
12538 * config/s390/s390.opt (mlra): New option.
12539 * config/s390/s390.c (s390_decompose_address): Check displacement
12540 for all registers for LRA.
12541 (s390_secondary_reload): Don't used secondary reloads for LRA.
12542 (s390_lra_p): New function.
12543 (TARGET_LRA_P): Define.
12544 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
12545 of attribute cpu_facility to zarch for the last alternative.
12546 (*cmpmem_short): Ditto.
12547
01037aeb
EB
125482013-06-06 Eric Botcazou <ebotcazou@adacore.com>
12549
12550 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
12551 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
12552 (arm_expand_prologue): Likewise.
12553
3371a64f
TJ
125542013-06-06 Teresa Johnson <tejohnson@google.com>
12555
12556 PR c++/53743
12557 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
12558 as this is now done by redirect_edge_and_branch_force.
12559 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
12560 barriers, and fix interaction with splitting.
12561 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
12562 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
12563 reflect changes made in the routine.
12564 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
12565 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
12566 since this is called in cfglayout mode, and replace partition fixup
12567 with assert as that is now done by force_nonfallthru_and_redirect.
12568 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
12569 already be marked with region crossing note.
12570 (insert_section_boundary_note): Make non-static, gate on flag
12571 has_bb_partition, rewrite to also check for multiple partitions.
12572 (rest_of_handle_reorder_blocks): Remove call to
12573 insert_section_boundary_note, now done later during free_cfg.
12574 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
12575 * bb-reorder.h (insert_section_boundary_note): Declare.
12576 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
12577 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
12578 invoke insert_section_boundary_note.
12579 (try_redirect_by_replacing_jump): Remove unnecessary
12580 check for region crossing note.
12581 (fixup_partition_crossing): New function.
12582 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
12583 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
12584 in non-cfglayout mode.
12585 (force_nonfallthru_and_redirect): Fixup partition boundaries,
12586 remove old code that tried to do this. Emit barrier correctly
12587 when we are in cfglayout mode.
12588 (last_bb_in_partition): New function.
12589 (rtl_split_edge): Correctly fixup partition boundaries.
12590 (commit_one_edge_insertion): Remove old code that tried to
12591 fixup region crossing edge since this is now handled in
12592 split_block, and set up insertion point correctly since
12593 block may now end in a jump.
12594 (verify_hot_cold_block_grouping): Guard against checking when not in
12595 linearized RTL mode.
12596 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
12597 notes.
12598 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
12599 rtl_verify_flow_info, so not called in cfglayout mode.
12600 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
12601 (fixup_reorder_chain): Remove old code that attempted to fixup region
12602 crossing note as this is now handled in force_nonfallthru_and_redirect.
12603 (duplicate_insn_chain): Don't duplicate switch section notes.
12604 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
12605 note.
12606 * basic-block.h (emit_barrier_after_bb): Declare.
12607
66071e10
KT
126082013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12609
12610 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
12611 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
12612 arm_usatsihi): Adjust alternatives for arm_restrict_it.
12613
0e26bf3d
KT
126142013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12615
12616 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
12617 where appropriate.
12618 * config/arm/ldmstm.md: Regenerate.
12619
12b4e7ef
KT
126202013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12621
12622 * config/arm/sync.md (atomic_loaddi_1):
12623 Disable predication for arm_restrict_it.
12624 (arm_load_exclusive<mode>): Likewise.
12625 (arm_load_exclusivesi): Likewise.
12626 (arm_load_exclusivedi): Likewise.
12627 (arm_load_acquire_exclusive<mode>): Likewise.
12628 (arm_load_acquire_exclusivesi): Likewise.
12629 (arm_load_acquire_exclusivedi): Likewise.
12630 (arm_store_exclusive<mode>): Likewise.
12631 (arm_store_exclusive<mode>): Likewise.
12632 (arm_store_release_exclusivedi): Likewise.
12633 (arm_store_release_exclusive<mode>): Likewise.
12634
15d16c8a
RB
126352013-06-06 Richard Biener <rguenther@suse.de>
12636
12637 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
12638 after LTO_null.
12639 (lto_tag_is_tree_code_p): Adjust.
12640 (lto_tag_is_gimple_code_p): Likewise.
12641 (lto_gimple_code_to_tag): Likewise.
12642 (lto_tag_to_gimple_code): Likewise.
12643 (lto_tree_code_to_tag): Likewise.
12644 (lto_tag_to_tree_code): Likewise.
12645 * data-streamer.h (streamer_write_hwi_in_range): Use
12646 uhwi streaming to stream the normalized range.
12647 (streamer_read_hwi_in_range): Likewise.
12648
17a7fc37
KT
126492013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12650
12651 * config/arm/arm.md (enabled_for_depr_it): New attribute.
12652 (predicable_short_it): Likewise.
12653 (predicated): Likewise.
12654 (enabled): Handle above.
12655 (define_cond_exec): Set predicated attribute to yes.
12656
b57ca59b
MS
126572013-06-05 Mike Stump <mikestump@comcast.net>
12658
12659 * gdbinit.in (__FUNCTION__): Add.
12660
c1e183a9
UB
126612013-06-05 Uros Bizjak <ubizjak@gmail.com>
12662
12663 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
12664 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
12665
0378bddb
JH
126662013-06-05 Jan Hubicka <jh@suse.cz>
12667
12668 * varasm.c (mark_decl_referenced): Revert the removal until targets
12669 are fixed.
12670
8f8a2057
DE
126712013-06-05 David Edelsohn <dje.gcc@gmail.com>
12672
12673 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
12674 instead of mark_decl_referenced.
12675
edb983b2
JH
126762013-06-05 Jan Hubicka <jh@suse.cz>
12677
12678 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
12679 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
12680 and symtab_used_from_object_file_p.
12681 (cgraph_make_node_local_1): Clear forced_by_abi.
12682 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
12683 * cgraph.h (symtab_node_base): Add forced_by_abi.
12684 (decide_is_variable_needed): Remove.
12685 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
12686 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
12687 (decide_is_symbol_needed): ... this one; handle symbols in general;
12688 always analyze virtuals; honnor forced_by_abi.
12689 (cgraph_finalize_function): Update.
12690 (varpool_finalize_decl): Update.
12691 (symbol_defined_and_needed): Remove.
12692 (analyze_functions): Update.
12693 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12694 output_refs, input_overwrite_node): Handle forced_by_abi.
12695 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
12696 (address_taken_from_non_vtable_p): ... this one.
12697 (comdat_can_be_unshared_p_1): New function.
12698 (cgraph_comdat_can_be_unshared_p): Rename to ...
12699 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
12700 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
12701 (function_and_variable_visibility): Clear forced_by_abi as needed.
12702 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
12703 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
12704 * symtab.c (dump_symtab_base): Dump forced_by_abi.
12705 * varpool.c (decide_is_variable_needed): Remove.
12706
9912dbe5
KT
127072013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12708
12709 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
12710 (arm_option_override): Override arm_restrict_it where appropriate.
12711 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
12712 * config/arm/arm.opt (mrestrict-it): New command-line option.
12713 * doc/invoke.texi: Document -mrestrict-it.
12714
34c136b6
DM
127152013-06-05 David Malcolm <dmalcolm@redhat.com>
12716
12717 * tsan.c (tsan_atomic_table): Make const.
12718
a367df53
RB
127192013-06-05 Richard Biener <rguenther@suse.de>
12720
12721 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
12722 index associated with the tree we are supposed to replace.
12723 * tree-streamer-out.c (pack_ts_base_value_fields): Output
12724 TREE_ASM_WRITTEN as zero for everything but SSA names.
12725
70d51a19
DM
127262013-06-05 David Malcolm <dmalcolm@redhat.com>
12727
12728 * tree-ssa-structalias.c (call_stmt_vars): Make static.
12729
b9bd2075
JH
127302013-06-04 Jan Hubicka <jh@suse.cz>
12731
12732 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
12733 (input_node, input_varpool_node): Handle correctly external same
12734 body aliases.
12735 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
12736 nodes at ltrans stage.
12737
aaae719d
JH
127382013-06-04 Jan Hubicka <jh@suse.cz>
12739
12740 * ipa-inline.c (update_caller_keys): Fix availability test.
12741 (update_callee_keys): Likewise.
12742 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
12743 to follow ELF standard.
12744
107eea2c
JU
127452013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
12746
12747 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
12748 (mips64r5900el-*-elf*): New configurations.
12749 * config/mips/mips-cpus.def (r5900): New processor.
12750 * config/mips/mips-tables.opt: Regenerate.
12751 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
12752 (mips_issue_rate): Handle PROCESSOR_R5900.
12753 (mips_reorg_process_insns): Force reorder mode for the R5900.
12754 * config/mips/mips.h (TARGET_MIPS5900): Define.
12755 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
12756 TARGET_MIPS5900.
12757 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
12758 TARGET_MIPS5900.
12759 * config/mips/mips.md (processor): Add r5900.
12760 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
12761
b7342d25
IB
127622013-06-04 Ian Bolton <ian.bolton@arm.com>
12763
12764 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
12765 into function to generate MOVI instruction.
c1e183a9 12766 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
12767 (aarch64_preferred_simd_mode): Turn into wrapper.
12768 (aarch64_output_scalar_simd_mov_immediate): New function.
12769 * config/aarch64/aarch64-protos.h: Add prototype for above.
12770
81c2dfb9
IB
127712013-06-04 Ian Bolton <ian.bolton@arm.com>
12772
12773 * config/aarch64/aarch64.c (simd_immediate_info): Remove
12774 element_char member.
12775 (sizetochar): Return signed char.
12776 (aarch64_simd_valid_immediate): Remove elchar and other
12777 unnecessary variables.
12778 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
12779 Calculate element_char as required.
12780 * config/aarch64/aarch64-protos.h: Update and move prototype
12781 for aarch64_output_simd_mov_immediate.
12782 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
12783 Update arguments.
12784
48063b9d
IB
127852013-06-04 Ian Bolton <ian.bolton@arm.com>
12786
12787 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
12788 information completed by aarch64_simd_valid_immediate.
12789 (aarch64_legitimate_constant_p): Update arguments.
12790 (aarch64_simd_valid_immediate): Work with struct rather than many
12791 pointers.
12792 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
12793 (aarch64_simd_make_constant): Update arguments.
12794 (aarch64_output_simd_mov_immediate): Work with struct rather than
12795 many pointers. Output immediate directly rather than as operand.
12796 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
12797 Update prototype.
12798 * config/aarch64/constraints.md (Dn): Update arguments.
12799
3ea63f60
IB
128002013-06-04 Ian Bolton <ian.bolton@arm.com>
12801
12802 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
12803 longer static.
12804 (aarch64_simd_immediate_valid_for_move): Remove.
12805 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
12806 (aarch64_simd_make_constant): Update call.
12807 (aarch64_output_simd_mov_immediate): Update call.
12808 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
12809 Add prototype.
12810 * config/aarch64/constraints.md (Dn): Update call.
12811
d8edd899
IB
128122013-06-04 Ian Bolton <ian.bolton@arm.com>
12813
12814 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
12815 return type to bool for prototype.
12816 (aarch64_legitimate_constant_p): Check for true instead of not -1.
12817 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
12818 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
12819
44b20bb8
CM
128202013-06-04 Catherine Moore <clm@codesourcery.com>
12821
12822 * config/mips/mips.opt (meva): New.
c1e183a9 12823 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
12824 (ASM_SPEC): Handle -meva.
12825 * doc/invoke.texi (meva): Document.
12826
52befbd8
AM
128272013-06-04 Alan Modra <amodra@gmail.com>
12828
12829 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
12830 constant output.
12831
aadaf24e
KT
128322013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12833
12834 * rtl.def: Add extra fourth optional field to define_cond_exec.
12835 * gensupport.c (process_one_cond_exec): Process attributes from
12836 define_cond_exec.
12837 * doc/md.texi: Document fourth field in define_cond_exec.
12838
0cd9e9ee
EB
128392013-06-04 Eric Botcazou <ebotcazou@adacore.com>
12840
12841 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
12842 out the processing order as in store_bit_field_1.
12843
cb0f665d
JH
128442013-06-04 Jan Hubicka <jh@suse.cz>
12845
12846 PR middle-end/57500
12847 * cgraphunit.c (cgraph_process_same_body_aliases): Create
12848 non-VAR_DECL node if it does not exist yet.
12849
53984b9b
RS
128502013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
12851
12852 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
12853 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
12854 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
12855 target_cpu_default setting.
12856
5d318fd4
TJ
128572013-06-03 Teresa Johnson <tejohnson@google.com>
12858
12859 * dumpfile.c (opt_info_switch_p): Change -fopt-info
12860 default to -fopt-info=optimized instead of all.
12861 * doc/invoke.texi: Ditto.
12862 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
12863 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
12864 (execute_vect_slp): Emit BB vectorization success under
12865 MSG_OPTIMIZED_LOCATIONS.
12866 * tree-vect-slp.c (vect_slp_transform_bb): Change
12867 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
12868 * tree-vect-loop.c (vect_transform_loop): Ditto.
12869
ec3af349
JM
128702013-06-03 Jason Merrill <jason@redhat.com>
12871
12872 PR c++/57415
12873 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12874 Use TARGET_EXPR for C++.
12875
1baf9159
JJ
128762013-06-03 Jakub Jelinek <jakub@redhat.com>
12877
12878 PR rtl-optimization/57268
0cd9e9ee 12879 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
12880 if DEBUG_INSN_P (insn).
12881
12882 Reapply
12883 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
12884
12885 PR rtl-optimization/57268
12886 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12887 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12888
0f1d3965
YR
128892013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
12890
12891 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
12892 (ix86_avoid_lea_for_addr): Likewise.
12893 (exact_dependency_1): Likewise.
12894 (ix86_adjust_cost): Likewise.
12895 (swap_top_of_ready_list): Fix formatting and !reload_completed check
12896 removed.
12897 (do_reorder_for_imul): Fix typo, formatting and
12898 !reload_completed check removed.
12899 (ix86_sched_reorder): Fix typo and formatting.
12900 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
12901 list.
12902
3bc30db4
SN
129032013-06-03 Sofiane Naci <sofiane.naci@arm.com>
12904
12905 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
12906
19cc6fac
EB
129072013-06-03 Eric Botcazou <ebotcazou@adacore.com>
12908
12909 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
12910 <STRING_CST>: Likewise.
12911 <VECTOR_CST>: Likewise.
12912
c68a6e08
JW
129132013-06-01 Janus Weil <janus@gcc.gnu.org>
12914 Mikael Morin <mikael@gcc.gnu.org>
12915
12916 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
12917 * config.in: Regenerated.
12918 * configure: Regenerated.
12919
38e55e5c
JH
129202013-06-01 Jan Hubicka <jh@suse.cz>
12921
12922 PR middle-end/57366
12923 * cgraphunit.c (compile): When weakref is not supported,
12924 set up transparent aliases before final output pass.
12925 * varasm.c (assemble_alias): Do not try to do it here.
12926
eb51d2ff
JH
129272013-06-01 Jan Hubicka <jh@suse.cz>
12928
12929 PR middle-end/57467
12930 * passes.c (for_per_function): Skip unanalyzed functions.
12931
40a7fe1e
JH
129322013-06-01 Jan Hubicka <jh@suse.cz>
12933
12934 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
12935 (lto_symtab_merge_symbols_1): ... this one.
12936 (lto_symtab_merge_cgraph_nodes): Rename to ...
12937 (lto_symtab_merge_symbols): ... this one; simplify.
12938 * cgraph.c (same_body_aliases_done): Rename to ...
12939 (cpp_implicit_aliases_done): ... this one.
12940 (cgraph_create_function_alias): Update.
12941 (cgraph_same_body_alias): Update.
c1e183a9 12942 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 12943 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 12944 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
12945 (cgraph_node): Remove same_body_alias.
12946 (varpool_node): Remove alias_of and extra_name_alias.
12947 (same_body_aliases_done): Rename to ..
12948 (cpp_implicit_aliases_done): ... this one.
12949 (symtab_alias_ultimate_target): Add default parameter.
12950 (symtab_resolve_alias): New function.
12951 (fixup_same_cpp_alias_visibility): Declare.
12952 (cgraph_function_node): Add default parameter.
12953 (cgraph_node_asm_name): Likewise.
12954 (cgraph_function_or_thunk_node): Add default parameter; do
12955 not ICE when it is NULL.
12956 (varpool_variable_node): Likewise.
12957 * tree-emutls.c (create_emultls_var): Update.
12958 (ipa_lower_emutls): Update.
12959 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
12960 (cgraph_reset_node): Reset alias info.
12961 (cgraph_finalize_function): Update.
12962 (fixup_same_cpp_alias_visibility): Move to symtab.c.
12963 (analyze_function): Simplify.
12964 (cgraph_process_same_body_aliases): Simplify.
12965 (analyze_functions): Fixup same body aliases.
12966 (handle_alias_pairs): Simplify.
12967 (assemble_thunk): Update.
12968 (assemble_thunks_and_aliases): Update.
12969 (output_weakrefs): Rewrite.
12970 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
12971 (lto_output_varpool_node): Likewise.
12972 (compute_ltrans_boundary): Remve assert.
12973 (get_alias_symbol): New functoin.
12974 (input_node): Rewrite alias handling.
12975 (input_varpool_node): Likewise.
12976 * ipa-pure-const.c (propagate_pure_const): Fix formating.
12977 * ipa.c (process_references): Handle weakrefs correctly.
12978 (symtab_remove_unreachable_nodes): Likewise.
12979 * trans-mem.c (get_cg_data): Update.
12980 (ipa_tm_create_version_alias): Update.
12981 (ipa_tm_execute): Update.
12982 * symtab.c (dump_symtab_base): Dump aliases.
12983 (verify_symtab_base): Verify aliases.
12984 (symtab_node_availability): New function.
12985 (symtab_alias_ultimate_target): Simplify.
12986 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
12987 handle all the fixup cases.
12988 (symtab_resolve_alias): New function.
12989 * passes.c (ipa_write_summaries): Handle weakrefs.
12990 * varpool.c (varpool_analyze_node): Simplify.
12991 (assemble_aliases): Update.
12992 (varpool_create_variable_alias): Simplify.
12993 (varpool_extra_name_alias): Simplify.
12994 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
12995 (lto_symtab_merge_symbols): ... this one.
12996
21759881
DT
129972013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
12998
12999 Revert
13000 PR rtl-optimization/57268
13001 * sched-deps.c (sched_analyze_2): Flush dependence lists if
13002 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
13003
daf4e940
TB
130042013-06-01 Tobias Burnus <burnus@net-b.de>
13005
13006 Partially reverted:
13007 2013-05-31 Tobias Burnus <burnus@net-b.de>
13008
13009 PR middle-end/57073
13010 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
13011 further up.
13012
c359d8d0
DT
130132013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
13014
13015 PR rtl-optimization/57268
13016 * sched-deps.c (sched_analyze_2): Flush dependence lists if
13017 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
13018
4172215d
EB
130192013-05-31 Eric Botcazou <ebotcazou@adacore.com>
13020
13021 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
13022 unordered comparison operators when -fno-trapping-math is in effect
13023 on the e500.
13024 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
13025 and implement unordered comparison operators properly on the e500.
13026
a8c50132
EB
130272013-05-31 Eric Botcazou <ebotcazou@adacore.com>
13028
13029 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
13030 for constant scalar integers.
13031 (simplify_relational_operation_1): Likewise.
13032
44626634
SB
130332013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
13034
13035 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
13036 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
13037 Fix comment.
13038
55805e54
YR
130392013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
13040 Igor Zamyatin <igor.zamyatin@intel.com>
13041
13042 Silvermont (SLM) architecture performance tuning.
13043 * config/i386/i386.h (enum ix86_tune_indices): Add
13044 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
13045 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
13046
13047 * config/i386/i386.c (initial_ix86_tune_features)
13048 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
13049 (ix86_lea_outperforms): Handle Silvermont tuning.
13050 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
13051 call.
13052 (ix86_use_lea_for_mov): Likewise.
13053 (ix86_avoid_lea_for_addr): Likewise.
13054 (ix86_lea_for_add_ok): Likewise.
13055 (exact_dependency_1): New function.
13056 (exact_store_load_dependency): Likewise.
13057 (ix86_adjust_cost): Handle Silvermont tuning.
13058 (do_reoder_for_imul): Likewise.
13059 (swap_top_of_ready_list): New function.
13060 (ix86_sched_reorder): Changed to handle Silvermont tuning.
13061
13062 * config/i386/i386.md (peepholes that split memory operand in fp
13063 converts): New.
13064
e19c9de2
MS
130652013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
13066
13067 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
13068 Remove un-necessary braces.
13069
38e6c9a6
MS
130702013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
13071
13072 * config/aarch64/aarch64.c (aarch64_classify_symbol):
13073 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
13074
e3530904
TB
130752013-05-31 Tobias Burnus <burnus@net-b.de>
13076
13077 PR middle-end/57073
c1e183a9 13078 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 13079
b6af05a9
KT
130802013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13081
13082 PR target/56315
13083 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
13084 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
13085 * config/arm/neon.md (iordi3_neon): Remove.
13086 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
13087 * config/arm/predicates.md (imm_for_neon_logic_operand):
13088 Move to earlier in the file.
13089 (neon_logic_op2): Likewise.
13090 (arm_iordi_operand_neon): New predicate.
13091
f800c166
RB
130922013-05-31 Richard Biener <rguenther@suse.de>
13093
13094 PR tree-optimization/57478
13095 PR tree-optimization/57453
13096 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
13097 are life as well.
13098
e571fa59
KP
130992013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
13100
13101 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
13102 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
13103
0fa6e0ef
TB
131042013-05-30 Tobias Burnus <burnus@net-b.de>
13105 Thomas Koenig <tkoenig@gcc.gnu.org>
13106
13107 PR middle-end/57073
13108 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
13109 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
13110
4688ddf5
SB
131112013-05-30 Steven Bosscher <steven@gcc.gnu.org>
13112
0fa6e0ef 13113 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 13114
3b9ceb4b
VM
131152013-05-30 Vladimir Makarov <vmakarov@redhat.com>
13116
13117 * target.def (register_usage_leveling_p): New hook.
13118 * targhooks.c (default_register_usage_leveling_p): New.
13119 * targhooks.h (default_register_usage_leveling_p): New prototype.
13120 * lra-assigns.c (register_usage_leveling_p): Use the hook.
13121 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
13122 * doc/tm.texi: Update.
13123 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
13124
65f9e789
IB
131252013-05-30 Ian Bolton <ian.bolton@arm.com>
13126
13127 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
13128 (*insv_reg<mode>): New define_insn.
13129
12211b99 131302013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
ca035367
JR
13131
13132 PR rtl-optimization/57439
13133 * postreload.c (move2add_valid_value_p): Check that we have
13134 a zero subreg_regno_offset when accessing the register in
13135 the requested mode.
13136
0b871ccf
YR
131372013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
13138 Igor Zamyatin <igor.zamyatin@intel.com>
13139
13140 Silvermont (SLM) architecture pipeline model, tuning and
13141 insn selection.
13142 * config.gcc: Add slm config options and target.
13143
13144 * config/i386/slm.md: New.
13145
13146 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
13147
f43245d1 13148 * config/i386/i386-c.c (ix86_target_macros_internal): New case
0b871ccf
YR
13149 PROCESSOR_SLM.
13150 (ix86_target_macros_internal): Likewise.
13151
f43245d1 13152 * config/i386/i386.c (slm_cost): New cost.
0b871ccf
YR
13153 (m_SLM): New macro flag.
13154 (initial_ix86_tune_features): Set m_SLM.
13155 (x86_accumulate_outgoing_args): Likewise.
13156 (x86_arch_always_fancy_math_387): Likewise.
13157 (processor_target_table): Add slm cost.
13158 (cpu_names): Add slm cpu name.
13159 (x86_option_override_internal): Set SLM ISA.
13160 (ix86_issue_rate): New case PROCESSOR_SLM.
13161 (ia32_multipass_dfa_lookahead): Likewise.
13162 (fold_builtin_cpu): Add slm.
13163
13164 * config/i386/i386.h (TARGET_SLM): New target macro.
13165 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
13166 (processor_type): Add PROCESSOR_SLM.
13167
13168 * config/i386/i386.md (cpu): Add new value "slm".
13169 (slm.md): Include slm.md.
13170
24d5b097
XG
131712013-05-30 Bernd Schmidt <bernds@codesourcery.com>
13172 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13173
13174 * config/arm/arm-protos.h: Add and update function protos.
13175 * config/arm/arm.c (use_simple_return_p): New added.
13176 (thumb2_expand_return): Check simple_return flag.
13177 * config/arm/arm.md: Add simple_return and conditional simple_return.
13178 * config/arm/iterators.md: Add iterator for return and simple_return.
13179
c1cccc15
ZC
131802013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13181
13182 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
13183 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
13184 (arm_emit_vfp_multi_reg_pop): Likewise.
13185 (thumb2_emit_ldrd_pop): Likewise.
13186 (arm_expand_epilogue): Add misc REG_CFA notes.
13187 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
13188
3a4f280b
LC
131892013-05-29 Lawrence Crowl <crowl@google.com>
13190
13191 * config/arm/t-arm: Update for below.
13192
13193 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
13194 Change type to hash_table. Update dependent calls and types.
13195
13196 * config/i386/t-cygming: Update for below.
13197
13198 * config/i386/t-interix: Update for below.
13199
13200 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
13201 Change type to hash_table. Update dependent calls and types.
13202 (i386_find_on_wrapper_list::wrappers): Likewise.
13203
13204 * config/ia64/t-ia64: Update for below.
13205
13206 * config/ia64/ia64.c (bundle_state_table):
13207 Change type to hash_table. Update dependent calls and types.
13208
13209 * config/mips/mips.c (mips_reorg_process_insns::htab):
13210 Change type to hash_table. Update dependent calls and types.
13211
13212 * config/sol2.c (solaris_comdat_htab):
13213 Change type to hash_table. Update dependent calls and types.
13214
13215 * config/t-sol2: Update for above.
13216
1388a0e3
TJ
132172013-05-29 Teresa Johnson <tejohnson@google.com>
13218
13219 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
13220 functions are not yet marked as defined.
13221
a5965b52 132222013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13223 Pat Haugen <pthaugen@us.ibm.com>
13224 Peter Bergner <bergner@vnet.ibm.com>
a5965b52
MM
13225
13226 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
13227 instructions.
13228 (VEC_A): Likewise.
13229 (VEC_C): Likewise.
13230 (vrotl<mode>3): Likewise.
13231 (vashl<mode>3): Likewise.
13232 (vlshr<mode>3): Likewise.
13233 (vashr<mode>3): Likewise.
13234
13235 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13236 support for power8 V2DI builtins.
13237
13238 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
13239 power8 V2DI builtins.
13240 (vupkhsw): Likewise.
13241 (vupklsw): Likewise.
13242 (vaddudm): Likewise.
13243 (vminsd): Likewise.
13244 (vmaxsd): Likewise.
13245 (vminud): Likewise.
13246 (vmaxud): Likewise.
13247 (vpkudum): Likewise.
13248 (vpksdss): Likewise.
13249 (vpkudus): Likewise.
13250 (vpksdus): Likewise.
13251 (vrld): Likewise.
13252 (vsld): Likewise.
13253 (vsrd): Likewise.
13254 (vsrad): Likewise.
13255 (vsubudm): Likewise.
13256 (vcmpequd): Likewise.
13257 (vcmpgtsd): Likewise.
13258 (vcmpgtud): Likewise.
13259 (vcmpequd_p): Likewise.
13260 (vcmpgtsd_p): Likewise.
13261 (vcmpgtud_p): Likewise.
13262 (vupkhsw): Likewise.
13263 (vupklsw): Likewise.
13264 (vaddudm): Likewise.
13265 (vmaxsd): Likewise.
13266 (vmaxud): Likewise.
13267 (vminsd): Likewise.
13268 (vminud): Likewise.
13269 (vpksdss): Likewise.
13270 (vpksdus): Likewise.
13271 (vpkudum): Likewise.
13272 (vpkudus): Likewise.
13273 (vrld): Likewise.
13274 (vsld): Likewise.
13275 (vsrad): Likewise.
13276 (vsrd): Likewise.
13277 (vsubudm): Likewise.
13278
13279 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
13280 support for power8 V2DI instructions.
13281
13282 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
13283 power8 V2DI instructions. Combine pack and unpack insns to use an
13284 iterator for each mode. Check whether a particular mode supports
13285 Altivec instructions instead of just checking TARGET_ALTIVEC.
13286 (UNSPEC_VPKUWUM): Likewise.
13287 (UNSPEC_VPKSHSS): Likewise.
13288 (UNSPEC_VPKSWSS): Likewise.
13289 (UNSPEC_VPKUHUS): Likewise.
13290 (UNSPEC_VPKSHUS): Likewise.
13291 (UNSPEC_VPKUWUS): Likewise.
13292 (UNSPEC_VPKSWUS): Likewise.
13293 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
13294 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
13295 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
13296 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
13297 (UNSPEC_VUPKHSB): Likewise.
13298 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
13299 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
13300 (UNSPEC_VUPKHSH): Likewise.
13301 (UNSPEC_VUPKLSB): Likewise.
13302 (UNSPEC_VUPKLSH): Likewise.
13303 (VI2): Likewise.
13304 (VI_char): Likewise.
13305 (VI_scalar): Likewise.
13306 (VI_unit): Likewise.
13307 (VP): Likewise.
13308 (VP_small): Likewise.
13309 (VP_small_lc): Likewise.
13310 (VU_char): Likewise.
13311 (add<mode>3): Likewise.
13312 (altivec_vaddcuw): Likewise.
13313 (altivec_vaddu<VI_char>s): Likewise.
13314 (altivec_vadds<VI_char>s): Likewise.
13315 (sub<mode>3): Likewise.
13316 (altivec_vsubcuw): Likewise.
13317 (altivec_vsubu<VI_char>s): Likewise.
13318 (altivec_vsubs<VI_char>s): Likewise.
13319 (altivec_vavgs<VI_char>): Likewise.
13320 (altivec_vcmpbfp): Likewise.
13321 (altivec_eq<mode>): Likewise.
13322 (altivec_gt<mode>): Likewise.
13323 (altivec_gtu<mode>): Likewise.
13324 (umax<mode>3): Likewise.
13325 (smax<mode>3): Likewise.
13326 (umin<mode>3): Likewise.
13327 (smin<mode>3): Likewise.
13328 (altivec_vpkuhum): Likewise.
13329 (altivec_vpkuwum): Likewise.
13330 (altivec_vpkshss): Likewise.
13331 (altivec_vpkswss): Likewise.
13332 (altivec_vpkuhus): Likewise.
13333 (altivec_vpkshus): Likewise.
13334 (altivec_vpkuwus): Likewise.
13335 (altivec_vpkswus): Likewise.
13336 (altivec_vpks<VI_char>ss): Likewise.
13337 (altivec_vpks<VI_char>us): Likewise.
13338 (altivec_vpku<VI_char>us): Likewise.
13339 (altivec_vpku<VI_char>um): Likewise.
13340 (altivec_vrl<VI_char>): Likewise.
13341 (altivec_vsl<VI_char>): Likewise.
13342 (altivec_vsr<VI_char>): Likewise.
13343 (altivec_vsra<VI_char>): Likewise.
13344 (altivec_vsldoi_<mode>): Likewise.
13345 (altivec_vupkhsb): Likewise.
13346 (altivec_vupkhs<VU_char>): Likewise.
13347 (altivec_vupkls<VU_char>): Likewise.
13348 (altivec_vupkhsh): Likewise.
13349 (altivec_vupklsb): Likewise.
13350 (altivec_vupklsh): Likewise.
13351 (altivec_vcmpequ<VI_char>_p): Likewise.
13352 (altivec_vcmpgts<VI_char>_p): Likewise.
13353 (altivec_vcmpgtu<VI_char>_p): Likewise.
13354 (abs<mode>2): Likewise.
13355 (vec_unpacks_hi_v16qi): Likewise.
13356 (vec_unpacks_hi_v8hi): Likewise.
13357 (vec_unpacks_lo_v16qi): Likewise.
13358 (vec_unpacks_hi_<VP_small_lc>): Likewise.
13359 (vec_unpacks_lo_v8hi): Likewise.
13360 (vec_unpacks_lo_<VP_small_lc>): Likewise.
13361 (vec_pack_trunc_v8h): Likewise.
13362 (vec_pack_trunc_v4si): Likewise.
13363 (vec_pack_trunc_<mode>): Likewise.
13364
13365 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
13366 V2DI builtins.
13367 (vec_vmaxsd): Likewise.
13368 (vec_vmaxud): Likewise.
13369 (vec_vminsd): Likewise.
13370 (vec_vminud): Likewise.
13371 (vec_vpksdss): Likewise.
13372 (vec_vpksdus): Likewise.
13373 (vec_vpkudum): Likewise.
13374 (vec_vpkudus): Likewise.
13375 (vec_vrld): Likewise.
13376 (vec_vsld): Likewise.
13377 (vec_vsrad): Likewise.
13378 (vec_vsrd): Likewise.
13379 (vec_vsubudm): Likewise.
13380 (vec_vupkhsw): Likewise.
13381 (vec_vupklsw): Likewise.
13382
e70670cf
JH
133832013-05-29 Jan Hubicka <jh@suse.cz>
13384
13385 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
13386 flags; reorder rest of fields in more consistent way.
13387 (varpool_node): Remove analyzed, finalized and alias.
13388 (cgraph_ndoe): Likewise.
13389 (symtab_alias_ultimate_target): New function.
13390 (cgraph_function_node): Move offline.
13391 (cgraph_reset_node): Declare.
13392 (cgraph_comdat_can_be_unshared_p): Remove.
13393 (varpool_remove_initializer): Declare.
13394 (varpool_first_defined_variable, varpool_next_defined_variable
13395 cgraph_first_defined_function, cgraph_next_defined_function): Update.
13396 (cgraph_function_with_gimple_body_p): Update.
13397 (varpool_all_refs_explicit_p): Update.
13398 (symtab_alias_target): New function.
13399 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
13400 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
13401 (cgraph_function_or_thunk_node): Simplify using
13402 symtab_alias_ultimate_target.
e70670cf
JH
13403 (varpool_variable_node): Likewise.
13404 * cgraph.c (cgraph_create_function_alias): Update.
13405 (cgraph_add_thunk): Update.
13406 (cgraph_remove_node): Update.
13407 (dump_cgraph_node): Do not dump removed flags.
13408 (cgraph_function_body_availability): Update.
13409 (cgraph_propagate_frequency): Update.
13410 (verify_cgraph_node): Check sanity of local flag.
13411 (cgraph_function_node): Move here from cgraph.h; revamp for
13412 cgraph_function_or_thunk_node.
13413 * lto-symtab.c (lto_varpool_replace_node): Update.
13414 (lto_symtab_resolve_can_prevail_p): Update.
13415 (lto_symtab_merge_cgraph_nodes): Update.
13416 * ipa-cp.c (determine_versionability, initialize_node_lattices,
13417 propagate_constants_accross_call, devirtualization_time_bonus,
13418 ipcp_propagate_stage): Update.
13419 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
13420 * ipa-inline-transform.c (clone_inlined_nodes,
13421 preserve_function_body_p): Update.
e70670cf
JH
13422 * ipa-reference.c (propagate): Update.
13423 (write_node_summary_p): Update.
13424 * toplev.c (wrapup_global_declaration_2): Update.
13425 * cgraphunit.c (cgraph_analyze_function): Rename to ...
13426 (analyze_function) ... this one.
13427 (cgraph_process_new_functions): Update.
13428 (cgraph_reset_node): Export.
13429 (cgraph_finalize_function): Update.
13430 (cgraph_add_new_function): Update.
13431 (process_function_and_variable_attributes): Update.
13432 (varpool_finalize_decl): Update.
13433 (symbol_finalized): Remove.
13434 (symbol_finalized_and_needed): Rename to ...
13435 (symbol_defined_and_needed): ... update.
13436 (cgraph_analyze_functions): Update.
13437 (handle_alias_pairs): Update.
13438 (mark_functions_to_output): Update.
13439 (assemble_thunk): Update.
13440 (output_in_order): Update.
13441 (output_weakrefs): Update.
13442 (finalize_compilation_unit): Update.
13443 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
13444 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
13445 input_node, input_varpool_node): Update.
13446 * dbxout.c (dbxout_expand_expr): Update.
13447 * cgraphclones.c (cgraph_clone_node): Update.
13448 (cgraph_copy_node_for_versioning): Update.
13449 (cgraph_materialize_clone): Update.
13450 (cgraph_materialize_all_clones): Update.
13451 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
13452 propagate_pure_const, propagate_nothrow): Update.
13453 * lto-streamer-out.c (lto_output, write_symbol): Update.
13454 * ipa-utils.c (ipa_reverse_postorder): Update.
13455 * ipa-inline.c (can_inline_edge_p): Update.
13456 (update_caller_keys, ipa_inline): Update.
13457 * dwarf2out.c (reference_to_unused,
13458 premark_types_used_by_global_vars_helper): Update.
13459 * tree-eh.c (tree_could_trap_p): Update.
13460 * ipa-split.c (consider_split, execute_split_functions): Update.
13461 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
13462 has_addr_references_p): Update; move ahead in file for better
13463 readability.
e70670cf
JH
13464 (process_references): Simplify.
13465 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
13466 bodies are removed.
13467 (cgraph_comdat_can_be_unshared_p): Make static.
13468 (cgraph_externally_visible_p): Update.
13469 (varpool_externally_visible_p): Update.
13470 (function_and_variable_visibility): Update.
13471 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
13472 ipa_tm_mark_force_output_node): Update.
13473 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
13474 estimate_edge_devirt_benefit, inline_generate_summary,
13475 inline_write_summary): Update.
13476 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
13477 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
13478 (ipa_print_node_params, ipa_prop_read_section,
13479 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
13480 * varasm.c (mark_decl_referenced): Update.
13481 (assemble_alias, dump_tm_clone_pairs): Update.
13482 * tree-inline.c (copy_bb): Update.
13483 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
13484 Update.
13485 * symtab.c (dump_symtab_base): Print new flags.
13486 (verify_symtab_base): Verify new flags.
13487 (symtab_alias_ultimate_target): New function.
13488 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
13489 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
13490 Update.
c1e183a9
UB
13491 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
13492 Update.
e70670cf
JH
13493 * i386.c (ix86_get_function_versions_dispatcher,
13494 ix86_generate_version_dispatcher_body): Update.
13495 (fold_builtin_cpu): Use varpool_add_new_variable.
13496 * varpool.c (varpool_remove_initializer): Break out from ...
13497 (varpool_remove_node): ... this one.
13498 (dump_varpool_node, varpool_node_for_asm,
13499 cgraph_variable_initializer_availability, varpool_analyze_node,
13500 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
13501 varpool_finalize_named_section_flags, varpool_create_variable_alias):
13502 Update.
e70670cf 13503
182802ad
JH
135042013-05-29 Jan Hubicka <jh@suse.cz>
13505
13506 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
13507
8190b609
ER
135082013-05-29 Easwaran Raman <eraman@google.com>
13509
13510 PR tree-optimization/57442
13511 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
13512 when control exits the main loop.
13513
69f5aa9b
SKS
135142013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
13515
13516 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
13517 and RX600.
c1e183a9 13518 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
13519 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
13520 * rx/t-rx: Add rx100 under multi library matches option for nofpu
13521 option.
13522
4b847da9
BS
135232013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13524
13525 PR tree-optimization/57441
13526 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
13527 Don't limit size of incr_vec to number of candidates.
13528
4fc43c39
SE
135292013-05-29 Steve Ellcey <sellcey@imgtec.com>
13530
13531 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
13532 and mips16 directories.
c1e183a9 13533 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
13534 (MULTILIB_DIRNAMES): Ditto.
13535 (MULTILIB_EXCEPTIONS): Add new exceptions.
13536 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
13537 (MULTILIB_DIRNAMES): Ditto.
13538 (MULTILIB_EXCEPTIONS): Add new exceptions.
13539
12211b99 135402012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
a5350ddc
CSS
13541 Marcus Shawcroft <marcus.shawcroft@arm.com>
13542
13543 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
13544 SYMBOL_TINY_ABSOLUTE.
13545 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
13546 SYMBOL_TINY_ABSOLUTE.
13547 (aarch64_expand_mov_immediate): Likewise.
13548 (aarch64_classify_symbol): Likewise.
13549 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
13550 Permit SYMBOL_TINY_ABSOLUTE.
13551 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
13552
12211b99 135532013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
17f4d4bf
CSS
13554 Marcus Shawcroft <marcus.shawcroft@arm.com>
13555
13556 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
13557 Refactor if/switch. Replace gcc_assert with if.
13558
c0186656
GG
135592013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13560
13561 * config/i386/i386.c (initial_ix86_tune_features): Enable
13562 FP Reassociation for AMD bdver1 and bdver2.
13563
d20188f3
MJ
135642013-05-29 Martin Jambor <mjambor@suse.cz>
13565
13566 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
13567 and IMAGPART_EXPR do not occur within other handled_components.
13568
292cba13
RB
135692013-05-29 Richard Biener <rguenther@suse.de>
13570
13571 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
13572 access on whether the use is in the BB we currently try to
13573 vectorize.
13574 (vect_bb_vectorization_profitable_p): Pass the BB we currently
13575 vectorize to vect_bb_slp_scalar_cost.
13576
6eddf228
RB
135772013-05-29 Richard Biener <rguenther@suse.de>
13578
13579 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
13580 computing scalar cost offsetted by stmts that are kept live
13581 by scalar uses.
13582 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
13583 for computation of scalar cost.
13584
7df36117
SE
135852013-05-28 Steve Ellcey <sellcey@mips.com>
13586
13587 * config/mips/mips-cpus.def (mips32r2): Change processor type.
13588
36536d79
BI
135892013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
13590
13591 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
13592 array notation built-in reduction functions.
13593 * doc/passes.texi (Passes): Added documentation about changes done
13594 for Cilk Plus.
13595 * doc/invoke.texi (C Dialect Options): Added documentation about
13596 the -fcilkplus flag.
13597 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
13598 (BUILTINS_DEF): Depend on cilkplus.def.
13599 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
13600 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
13601 * cilkplus.def: New file.
13602
12211b99 136032013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
b49eefa5
JR
13604
13605 PR rtl-optimization/57439
13606 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
13607
9daf6dbb
ER
136082013-05-28 Easwaran Raman <eraman@google.com>
13609
13610 PR tree-optimization/57337
13611 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
13612 (find_insert_point): Correctly identify the insertion point
13613 when two statements with the same UID is compared.
13614
fbd7e877
RB
136152013-05-28 Richard Biener <rguenther@suse.de>
13616
13617 PR tree-optimization/56787
13618 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
13619 from the list of data references.
13620 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
13621 clobbers.
13622 (vect_analyze_loop_operations): Likewise.
13623 (vect_transform_loop): Remove clobbers.
13624
bbba1117
MJ
136252013-05-28 Martin Jambor <mjambor@suse.cz>
13626
13627 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
13628 and REALPART_EXPRs have scalar type.
13629
bd388c2a
RB
136302013-05-28 Richard Biener <rguenther@suse.de>
13631
13632 PR tree-optimization/57411
13633 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
13634 virtual operands.
13635 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
13636 virtual operand propagation.
13637
2f56a311
EB
136382013-05-28 Eric Botcazou <ebotcazou@adacore.com>
13639
13640 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
13641 destination register for bmasksi_vis.
13642 (vector_init_bshuffle): Likewise.
13643 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
13644
5c3eacbb
EB
136452013-05-28 Eric Botcazou <ebotcazou@adacore.com>
13646
13647 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
13648 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
13649 mode if the instruction isn't available in the original mode.
13650 * config/sparc/sparc.opt (mfix-ut699): New option.
13651 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
13652 (divdf3): Turn into expander.
13653 (divdf3_nofix): New insn.
13654 (divdf3_fix): Likewise.
13655 (divsf3): Disable if -mfix-ut699.
13656 (sqrtdf2): Turn into expander.
13657 (sqrtdf2_nofix): New insn.
13658 (sqrtdf2_fix): Likewise.
13659 (sqrtsf2): Disable if -mfix-ut699.
13660
a1756c0a
RB
136612013-05-27 Richard Biener <rguenther@suse.de>
13662
13663 PR middle-end/57412
13664 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
13665 block for the new loop.
13666
5a892248
RB
136672013-05-27 Richard Biener <rguenther@suse.de>
13668
13669 PR tree-optimization/57343
13670 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
13671 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
13672 (number_of_iterations_cond): Do not build the folded tree.
13673
d1de852b
RB
136742013-05-27 Richard Biener <rguenther@suse.de>
13675
13676 Revert
13677 PR middle-end/57381
13678 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
13679 OEP_CONSTANT_ADDRESS_OF retained.
13680
13681 PR tree-optimization/57417
13682 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
13683 for unchanged base.
13684 (set_ssa_val_to): Compare addresses using
13685 get_addr_base_and_unit_offset.
13686
12211b99 136872013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
7894bc6b
JR
13688
13689 PR rtl-optimization/56833
13690 * postreload.c (move2add_record_mode): New function.
13691 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
13692 (move2add_use_add2_insn): Use move2add_record_sym_value.
13693 (move2add_use_add3_insn): Likewise.
13694 (reload_cse_move2add): Use move2add_valid_value_p and
13695 move2add_record_mode. Invalidate call-clobbered and REG_INC
13696 affected regs by setting reg_mode to VOIDmode.
13697 (move2add_note_store): Don't pretend the inside of a SUBREG is
13698 the actual destination. Invalidate single/leading registers by
13699 setting reg_mode to VOIDmode.
13700 Use move2add_record_sym_value, move2add_valid_value_p and
13701 move2add_record_mode.
13702
b03be25f
RB
137032013-05-27 Richard Biener <rguenther@suse.de>
13704
13705 PR tree-optimization/57396
13706 * tree-affine.c (double_int_constant_multiple_p): Properly
13707 return false for val == 0 and div != 0.
13708
44e88db2
RS
137092013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13710
13711 * config/mips/mips.h: Use #elif in preprocessor conditions.
13712
3b859704
RS
137132013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13714
13715 PR target/53916
13716 * config/mips/constraints.md (kl): New constraint.
13717 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
13718 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
13719 constraint for operand 0. Split after CSE for MIPS16. Emit a move
13720 from LO for MIPS16.
13721 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
13722
c979d5f5
RS
137232013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13724
13725 PR target/55777
13726 * config/mips/mips.c (mips_can_inline_p): New function.
13727 (TARGET_CAN_INLINE_P): Define.
13728
8e90de43
SB
137292013-05-25 Steven Bosscher <steven@gcc.gnu.org>
13730
13731 * sched-int.h (ds_t, dw_t): Make unsigned int.
13732 Fix documentation that describes how all the ds_t bits are used.
13733 Reserve the last bit for delayed-branch scheduling.
13734 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
13735 (BITS_PER_DEP_WEAK): Fix definition and documentation.
13736 (gen_dep_weak_1): Remove prototype.
13737 * sched-deps.c (get_dep_weak_1): Make static.
13738 * target.def (speculate_insn, needs_block_p, gen_spec_check,
13739 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
13740 * doc/tm.texi: Regenerate.
13741 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
13742
cb5cb194
SB
137432013-05-24 Steven Bosscher <steven@gcc.gnu.org>
13744
13745 PR debug/56950
13746 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
13747
5bd93ff6
NS
137482013-05-24 Nathan Sidwell <nathan@codesourcery.com>
13749 Sandra Loosemore <sandra@codesourcery.com>
13750
13751 * config.gcc (powerpc-*): Allow native for with-cpu.
13752
2343af65
JL
137532013-05-24 Jeff Law <law@redhat.com>
13754
13755 PR tree-optimization/57124
13756 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
13757 conversion feeding a condition if the range has an overflow
13758 if -fstrict-overflow. Add warnings for when we do make the
13759 transformation.
13760
3ad695b9
DC
137612013-05-24 Dehao Chen <dehao@google.com>
13762
04960246 13763 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
13764 (locus_discrim_hasher): Likewise.
13765 (locus_discrim_hasher::hash): Likewise.
13766 (locus_discrim_hasher::equal): Likewise.
13767
82338059
MJ
137682013-05-24 Martin Jambor <mjambor@suse.cz>
13769
13770 PR tree-optimization/57294
13771 * cgraph.h (ipa_record_stmt_references): Declare.
13772 * cgraphbuild.c (ipa_record_stmt_references): New function.
13773 (build_cgraph_edges): Use ipa_record_stmt_references.
13774 (rebuild_cgraph_edges): Likewise.
13775 (cgraph_rebuild_references): Likewise.
13776 * ipa-prop.c (ipa_modify_call_arguments): Discard references
13777 associated with the old statement and build references from the
13778 newly built statements.
13779 * ipa-ref.c (ipa_remove_stmt_references): New function.
13780 * ipa-ref.h (ipa_remove_stmt_references): Declare.
13781
1ccd4874
VM
137822013-05-24 Vladimir Makarov <vmakarov@redhat.com>
13783
55805e54 13784 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 13785 mem-mem moves.
55805e54 13786 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 13787 too.
55805e54 13788 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
13789 secondary memory moves.
13790 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
13791 reg set up in the current insn.
13792
25e25c73
DC
137932013-05-24 Dehao Chen <dehao@google.com>
13794
04960246 13795 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
13796 hash function.
13797 (locus_descrim_hasher::equal): Likewise.
04960246 13798 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
13799 (make_edges): Likewise.
13800 (next_discriminator_for_locus): Likewise.
13801 (same_line_p): Likewise.
13802 (assign_discriminators): Likewise.
13803 (make_cond_expr_edges): Likewise.
13804 (make_gimple_switch_edges): Likewise.
13805 (make_goto_expr_edges): Likewise.
13806 (make_gimple_asm_edges): Likewise.
13807
50d38551
IB
138082013-05-24 Ian Bolton <ian.bolton@arm.com>
13809
13810 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
13811 X format specifier to only display bottom 16 bits.
13812 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
13813 immediate to match for operand 2, since it will be masked.
13814
aea0101d
RB
138152013-05-24 Richard Biener <rguenther@suse.de>
13816
13817 PR tree-optimization/57287
13818 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
13819 all SSA names that occur in abnormal PHIs.
13820
634e03d3
AI
138212013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13822
13823 PR tree-ssa/57385
13824 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
13825 that index is not negative.
13826
b17c024f
EB
138272013-05-24 Eric Botcazou <ebotcazou@adacore.com>
13828
13829 PR rtl-optimization/55177
13830 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
13831 (simplify_byte_swapping_operation): New.
13832 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
13833 (simplify_relational_operation_1): Deal with BSWAP.
13834
46aeac1b
RH
138352013-05-23 Richard Henderson <rth@redhat.com>
13836
13837 PR target/56742
13838 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
13839 (ix86_reorg): Call it.
13840
70cc1536
UB
138412013-05-23 Uros Bizjak <ubizjak@gmail.com>
13842
13843 PR target/57379
13844 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
13845 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
13846 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
13847
b3851501
CB
138482013-05-23 Christian Bruel <christian.bruel@st.com>
13849
13850 PR debug/57351
13851 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
13852
12211b99 138532013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4e194912
CSS
13854 Marcus Shawcroft <marcus.shawcroft@arm.com>
13855
13856 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
13857 * config/aarch64/constraints.md (Usa): Remove.
13858 * doc/md.texi (AArch64 Usa): Remove.
13859
12211b99 138602013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
83f8c414
CSS
13861 Marcus Shawcroft <marcus.shawcroft@arm.com>
13862
13863 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
13864 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
13865 * config/aarch64/predicates.md (aarch64_const_address): Remove.
13866 (aarch64_mov_operand): Use aarch64_mov_operand_p.
13867
12211b99 138682013-05-23 Vidya Praveen <vidyapraveen@arm.com>
b5574232
VP
13869
13870 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
13871 instruction (AdvSIMD).
13872 * config/aarch64/aarch64-builtins.c
13873 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
13874 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
13875
76c36cb1 138762013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
13877
13878 PR middle-end/57347
13879 * tree.h (contains_bitfld_component_ref_p): Declare.
13880 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
13881 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
13882 caller.
7d2fb524
MJ
13883 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
13884 not access a bit-field. Assert all final offsets are byte-aligned.
13885
ce521ae6
RB
138862013-05-23 Richard Biener <rguenther@suse.de>
13887
13888 PR tree-optimization/57380
13889 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
13890 least one invariant or re-used load.
13891 * passes.c (init_optimization_passes): Move pass_phiprop before
13892 pass_forwprop.
13893
75c7257f
JG
138942013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
13895
13896 * config/aarch64/aarch64-simd.md
13897 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
13898
af6d44b5
RB
138992013-05-23 Richard Biener <rguenther@suse.de>
13900
13901 PR middle-end/57381
13902 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
13903 OEP_CONSTANT_ADDRESS_OF retained.
13904
bd3647bf
JJ
139052013-05-23 Jakub Jelinek <jakub@redhat.com>
13906
13907 PR middle-end/57344
70cc1536
UB
13908 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
13909 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 13910
a55757ea
RB
139112013-05-23 Richard Biener <rguenther@suse.de>
13912
13913 PR rtl-optimization/57341
13914 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
13915 instead of true_dependence.
13916
cfb00b41
DM
139172013-05-22 David Malcolm <dmalcolm@redhat.com>
13918
dd1c676f
DM
13919 * bb-reorder.c (branch_threshold): Make const.
13920 (exec_threshold): Ditto.
cfb00b41 13921
f62511da 139222013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13923 Pat Haugen <pthaugen@us.ibm.com>
13924 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
13925
13926 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
13927 documentation for the power8 crypto builtins.
13928
13929 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
13930
13931 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
13932 macros for defining power8 builtin functions.
13933 (BU_P8V_AV_2): Likewise.
13934 (BU_P8V_AV_P): Likewise.
13935 (BU_P8V_VSX_1): Likewise.
13936 (BU_P8V_OVERLOAD_1): Likewise.
13937 (BU_P8V_OVERLOAD_2): Likewise.
13938 (BU_CRYPTO_1): Likewise.
13939 (BU_CRYPTO_2): Likewise.
13940 (BU_CRYPTO_3): Likewise.
13941 (BU_CRYPTO_OVERLOAD_1): Likewise.
13942 (BU_CRYPTO_OVERLOAD_2): Likewise.
13943 (XSCVSPDP): Fix typo, point to the correct instruction.
13944 (VCIPHER): Add power8 crypto builtins.
13945 (VCIPHERLAST): Likewise.
13946 (VNCIPHER): Likewise.
13947 (VNCIPHERLAST): Likewise.
13948 (VPMSUMB): Likewise.
13949 (VPMSUMH): Likewise.
13950 (VPMSUMW): Likewise.
13951 (VPERMXOR_V2DI): Likewise.
13952 (VPERMXOR_V4SI: Likewise.
13953 (VPERMXOR_V8HI: Likewise.
13954 (VPERMXOR_V16QI: Likewise.
13955 (VSHASIGMAW): Likewise.
13956 (VSHASIGMAD): Likewise.
13957 (VPMSUM): Likewise.
13958 (VPERMXOR): Likewise.
13959 (VSHASIGMA): Likewise.
13960
13961 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13962 __CRYPTO__ if the crypto instructions are available.
13963 (altivec_overloaded_builtins): Add support for overloaded power8
13964 builtins.
13965
13966 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
13967 support for power8 crypto builtins.
13968 (builtin_function_type): Likewise.
13969 (altivec_init_builtins): Add support for builtins that take vector
13970 long long (V2DI) arguments.
13971
13972 * config/rs6000/crypto.md: New file, define power8 crypto
13973 instructions.
13974
139752013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13976 Pat Haugen <pthaugen@us.ibm.com>
13977 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
13978
13979 * doc/invoke.texi (Option Summary): Add power8 options.
13980 (RS/6000 and PowerPC Options): Likewise.
13981
13982 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
13983 constraints.md instead of rs6000.h. Reorder w* constraints. Add
13984 wm, wn, wr documentation.
13985
f43245d1 13986 * config/rs6000/constraints.md (wm): New constraint for VSX
f62511da
MM
13987 registers if direct move instructions are enabled.
13988 (wn): New constraint for no registers.
13989 (wq): New constraint for quad word even GPR registers.
13990 (wr): New constraint if 64-bit instructions are enabled.
13991 (wv): New constraint if power8 vector instructions are enabled.
13992 (wQ): New constraint for quad word memory locations.
13993
f43245d1 13994 * config/rs6000/predicates.md (const_0_to_15_operand): New
f62511da
MM
13995 constraint for 0..15 for crypto instructions.
13996 (gpc_reg_operand): If VSX allow registers in VSX registers as well
13997 as GPR and floating point registers.
13998 (int_reg_operand): New predicate to match only GPR registers.
13999 (base_reg_operand): New predicate to match base registers.
14000 (quad_int_reg_operand): New predicate to match even GPR registers
14001 for quad memory operations.
14002 (vsx_reg_or_cint_operand): New predicate to allow vector logical
14003 operations in both GPR and VSX registers.
14004 (quad_memory_operand): New predicate for quad memory operations.
14005 (reg_or_indexed_operand): New predicate for direct move support.
14006
f43245d1 14007 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
f62511da
MM
14008 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
14009 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
14010 (POWERPC_MASKS): Add power8 options.
14011 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
14012 various options.
14013
f43245d1 14014 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
f62511da
MM
14015 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
14016
f43245d1 14017 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
f62511da
MM
14018 (-mpower8-fusion): New power8 options.
14019 (-mpower8-fusion-sign): Likewise.
14020 (-mpower8-vector): Likewise.
14021 (-mcrypto): Likewise.
14022 (-mdirect-move): Likewise.
14023 (-mquad-memory): Likewise.
14024
f43245d1 14025 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
f62511da
MM
14026 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
14027 registers.
70cc1536 14028 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
14029 (rs6000_debug_vector_unit): Add p8_vector.
14030 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
14031 definitions. Also print fusion state.
14032 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
14033 (rs6000_builtin_mask_calculate): Add power8 builtin support.
14034 (rs6000_option_override_internal): Add support for power8.
14035 (rs6000_common_init_builtins): Add debugging for skipped builtins
14036 if -mdebug=builtin.
14037 (rs6000_adjust_cost): Add power8 support.
14038 (rs6000_issue_rate): Likewise.
14039 (insn_must_be_first_in_group): Likewise.
14040 (insn_must_be_last_in_group): Likewise.
14041 (force_new_group): Likewise.
14042 (rs6000_register_move_cost): Likewise.
14043 (rs6000_opt_masks): Likewise.
14044
14045 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
14046 power8 capable assembler, default to power7 options.
14047 (TARGET_DIRECT_MOVE): Likewise.
14048 (TARGET_CRYPTO): Likewise.
14049 (TARGET_P8_VECTOR): Likewise.
14050 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
14051 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
14052 (VECTOR_MEM_P8_VECTOR_P): Likewise.
14053 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
14054 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
14055 (TARGET_XSCVDPSPN): Likewise.
14056 (TARGET_XSCVSPDPN): Likewsie.
14057 (TARGET_SYNC_HI_QI): Likewise.
14058 (TARGET_SYNC_TI): Likewise.
14059 (MASK_CRYPTO): Likewise.
14060 (MASK_DIRECT_MOVE): Likewise.
14061 (MASK_P8_FUSION): Likewise.
14062 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
14063 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
14064 temporary used by some of the direct move instructions to get two FP
14065 temporary registers does not force creation of a stack frame.
f62511da
MM
14066 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
14067 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
14068 that any VSX registers are tieable, even if they are also an
14069 Altivec vector mode.
14070 (r6000_reg_class_enum): Add wm, wr, wv constraints.
14071 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
14072 (RS6000_BTM_CRYPTO): Likewise.
14073 (RS6000_BTM_COMMON): Likewise.
14074
14075 * config/rs6000/rs6000.md (cpu attribute): Add power8.
14076 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
14077 (enum rs6000_vector): Add power8 vector support.
14078
73a1a707
RR
140792013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14080
14081 PR target/19599
14082 PR target/57340
14083 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
14084 (any_sibcall_could_use_r3): this and handle indirect calls.
14085 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
14086
d28073d4
BS
140872013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14088
14089 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
14090
bee0b10c
RB
140912013-05-22 Richard Biener <rguenther@suse.de>
14092
14093 PR middle-end/57349
14094 * profile.c (branch_prob): Do not split blocks that are
14095 abnormally receiving from ECF_RETURNS_TWICE functions.
14096
98409b51
RS
140972013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
14098
14099 * recog.c (offsettable_address_addr_space_p): Fix calculation of
14100 address mode. Move pointer mode initialization to the same place.
14101
c0602ab8
MZ
141022013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14103
14104 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
14105 while it has any effect.
14106
4f7a634e
ER
141072013-05-21 Easwaran Raman <eraman@google.com>
14108
14109 PR tree-optimization/57322
9daf6dbb
ER
14110 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
14111 UID of the statement added to the BB to be 1.
4f7a634e 14112
a4ce1258
JJ
141132013-05-21 Jakub Jelinek <jakub@redhat.com>
14114
14115 PR tree-optimization/57331
70cc1536
UB
14116 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
14117 of conversion from pointer type to integral type with integer.
a4ce1258 14118
1b14621a
MJ
141192013-05-21 Martin Jambor <mjambor@suse.cz>
14120
14121 PR lto/57289
14122 * ipa-prop.c (ipa_read_node_info): Process param_used and
14123 controlled_uses in the same order as when writing.
14124
e60661f0
MG
141252013-05-21 Magnus Granberg <baldrick@free.fr>
14126
14127 PR plugins/56754
ee49aa34 14128 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 14129
4a61be9a
RB
141302013-05-21 Richard Biener <rguenther@suse.de>
14131
14132 PR tree-optimization/57318
14133 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
14134 estimate stmts with side-effects as likely eliminated.
14135
c52da5f7
RB
141362013-05-21 Richard Biener <rguenther@suse.de>
14137
14138 PR tree-optimization/57330
14139 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
14140 preserve the call stmts fntype.
14141
7ec67e2a
RB
141422013-05-21 Richard Biener <rguenther@suse.de>
14143
14144 PR tree-optimization/57303
14145 * tree-ssa-sink.c (statement_sink_location): Improve killing
14146 stmt detection and properly handle self-assignments.
14147
b112d513
CB
141482013-05-21 Christian Bruel <christian.bruel@st.com>
14149
55805e54
YR
14150 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
14151 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
14152 registers. Set register size out of the PARALLEL loop.
14153
14c2ec26
OE
141542013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
14155
14156 PR target/56547
14157 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
14158 (*fmasf4, *fmasf4_media): New insns.
14159
da734fa1
RS
141602013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14161
14162 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
14163 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
14164 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
14165 (mips_idiv_insns): Update the comments to say that the returned
14166 instruction counts are in units of BASE_INSN_LENGTH.
14167 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
14168 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
14169 using 2 rather than 4 as the length of indirect MIPS16 and
14170 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
14171 length of a NOP. Don't divide MIPS16 lengths by 2.
14172 (mips16_split_long_branches): Assume a branch is long if the
14173 length is greater than 4 rather than 8.
14174 * config/mips/mips.md (length): Give MIPS16 lengths directly,
14175 rather than multiplying them by 2. Multiply instruction counts
14176 by BASE_INSN_LENGTH rather than 4.
14177 (*jump_mips16, tls_get_tp_mips16_<mode>)
14178 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
14179
13719e8b
RS
141802013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14181
14182 * config/mips/mips.md (extended_mips16): Remove branch case.
14183 (length): Remove duplicated extended_mips16 test.
14184
c3850d14
RS
141852013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14186
14187 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
14188
8da2e059
RS
141892013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
14190
14191 * recog.h (Recog_data): Rename to...
14192 (recog_data_d): ...this.
14193 (recog_data): Update accordingly.
14194 * recog.c (recog_data): Likewise.
14195 * reload.c (save_recog_data): Likewise.
14196 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
14197 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
14198
2df013f3
JB
141992013-05-17 Julian Brown <julian@codesourcery.com>
14200
14201 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
14202 found in a REG_EQUAL note, invalidate it.
14203
371e77e3 142042013-05-17 Easwaran Raman <eraman@google.com>
933f507d
ER
14205
14206 * tree-ssa-reassoc.c (find_insert_point): New function.
14207 (insert_stmt_after): Likewise.
14208 (get_def_stmt): Likewise.
14209 (ensure_ops_are_available): Likewise.
14210 (not_dominated_by): Likewise.
14211 (rewrite_expr_tree): Do not move statements beyond what is
14212 necessary. Remove call to swap_ops_for_binary_stmt...
14213 (reassociate_bb): ... and move it here.
14214 (build_and_add_sum): Assign UIDs for new statements.
14215 (linearize_expr): Likewise.
14216 (do_reassoc): Renumber gimple statement UIDs.
14217
e01c7cca
JH
142182013-05-17 Jan Hubicka <jh@suse.cz>
14219
14220 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
14221 weakrefs.
14222 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
14223 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
14224 weakrefs.
e01c7cca
JH
14225 (output_weakrefs): Update.
14226
c3272a92
PCC
142272013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
14228 Martin Jambor <mjambor@suse.cz>
14229
14230 PR middle-end/57276
14231 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
14232 value that corresponds to the given aggval is found in values vector.
14233
11c2aa39
UB
142342013-05-17 Uros Bizjak <ubizjak@gmail.com>
14235
14236 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
14237 sse, sse2, sse3, ssse3 and sse4a flags to options.
14238
abecc8c6
DM
142392013-05-17 David Malcolm <dmalcolm@redhat.com>
14240
14241 * gengtype-state.c: (s_expr_writer): New class, to handle
14242 prettifying of output layout of s-expressions.
14243 (state_writer): New class, to write out gtype.state.
14244 (state_written_type_count): Move this variable into member data of
14245 state_writer.
14246 (s_expr_writer::s_expr_writer): New code: constructor for new class
14247 (state_writer::state_writer(): ditto
14248 (s_expr_writer::write_new_line): New function
14249 (s_expr_writer::write_any_indent): ditto
14250 (s_expr_writer::begin_s_expr): ditto
14251 (s_expr_writer::end_s_expr): ditto
14252 (write_state_fileloc): convert to method of state_writer...
14253 (state_writer:: write_state_fileloc): ...and use methods of
14254 s_expr_writer to write indentation into the gtype.state output file
14255 to visually represent the hierarchical structure of the list
14256 structures
14257 (write_state_fields): ditto, renaming to...
14258 (state_writer::write_state_fields)
14259 (write_state_a_string): ditto, renaming to...
14260 (state_writer::write_state_a_string)
14261 (write_state_string_option): ditto, renaming to...
14262 (state_writer::write_state_string_option)
14263 (write_state_type_option): ditto, renaming to...
14264 (state_writer::write_state_type_option)
14265 (write_state_nested_option): ditto, renaming to...
14266 (state_writer::write_state_nested_option)
14267 (write_state_option): ditto, renaming to...
14268 (state_writer::write_state_option)
14269 (write_state_options): ditto, renaming to...
14270 (state_writer::write_state_options)
14271 (write_state_lang_bitmap): ditto, renaming to...
14272 (state_writer::write_state_lang_bitmap)
14273 (write_state_version): ditto, renaming to...
14274 (state_writer::write_state_version)
14275 (write_state_scalar_type): ditto, renaming to...
14276 (state_writer::write_state_scalar_type)
14277 (write_state_string_type): ditto, renaming to...
14278 (state_writer::write_state_string_type)
14279 (write_state_undefined_type): ditto, renaming to...
14280 (state_writer::write_state_undefined_type)
14281 (write_state_struct_union_type): ditto, renaming to...
14282 (state_writer::write_state_struct_union_type)
14283 (write_state_struct_type): ditto, renaming to...
14284 (state_writer::write_state_struct_type)
14285 (write_state_user_struct_type): ditto, renaming to...
14286 (state_writer::write_state_user_struct_type)
14287 (write_state_lang_struct_type): ditto, renaming to...
14288 (state_writer::write_state_lang_struct_type)
14289 (write_state_param_struct_type): ditto, renaming to...
14290 (state_writer::write_state_param_struct_type)
14291 (write_state_pointer_type): ditto, renaming to...
14292 (state_writer::write_state_pointer_type)
14293 (write_state_array_type): ditto, renaming to...
14294 (state_writer::write_state_array_type)
14295 (write_state_gc_used): ditto, renaming to...
14296 (state_writer::write_state_gc_used)
14297 (write_state_common_type_content): ditto, renaming to...
14298 (state_writer::write_state_common_type_content)
14299 (write_state_type): ditto, renaming to...
14300 (state_writer::write_state_type)
14301 (write_state_pair_list): ditto, renaming to...
14302 (state_writer::write_state_pair_list)
14303 (write_state_pair): ditto, renaming to...
14304 (state_writer::write_state_pair)
14305 (write_state_typedefs): ditto, renaming to...
14306 (state_writer::write_state_typedefs)
14307 (write_state_structures): ditto, renaming to...
14308 (state_writer::write_state_structures)
14309 (write_state_param_structs): ditto, renaming to...
14310 (state_writer::write_state_param_structs)
14311 (write_state_variables): ditto, renaming to...
14312 (state_writer::write_state_variables)
14313 (write_state_srcdir): ditto, renaming to...
14314 (state_writer::write_state_srcdir)
14315 (write_state_files_list): ditto, renaming to...
14316 (state_writer::write_state_files_list)
14317 (write_state_languages): ditto, renaming to...
14318 (state_writer::write_state_languages)
14319 (write_state): create a state_writer instance and use it when
14320 writing out the state file
14321
d6545f29
MS
143222013-05-17 Mike Stump <mikestump@comcast.net>
14323
816a3f73 14324 PR rtl-optimization/57304
d6545f29
MS
14325 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
14326 accessing DF_REF_REAL_LOC.
14327
38c821cf
JJ
143282013-05-17 Jakub Jelinek <jakub@redhat.com>
14329
14330 PR rtl-optimization/57281
14331 PR rtl-optimization/57300
14332 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
14333 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
14334 what the other splitter did if the registers are dead.
14335
2a293391
RB
143362013-05-17 Richard Biener <rguenther@suse.de>
14337
14338 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
14339 MEM_REF offsets.
14340
17042d2b
JJ
143412013-05-17 Jakub Jelinek <jakub@redhat.com>
14342
14343 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
14344 linking.
14345
5b115c1f
MP
143462013-05-17 Marek Polacek <polacek@redhat.com>
14347
11c2aa39
UB
14348 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
14349 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 14350
52d84413
JJ
143512013-05-17 Jakub Jelinek <jakub@redhat.com>
14352
68119618
JJ
14353 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
14354 vect_external_def oprnd1 with loop_vinfo, try to emit
14355 optional cast, negation and and stmts on the loop preheader
14356 edge instead of into the pattern def seq.
14357
52d84413
JJ
14358 PR tree-optimization/57051
14359 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
14360 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
14361
17b962bd
NC
143622013-05-16 Nick Clifton <nickc@redhat.com>
14363
14364 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
14365 (rl78_is_naked_func): New function.
56aefbf7
UB
14366 (rl78_expand_prologue): Skip prologue generation for naked functions.
14367 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
14368 * doc/extend.texi (naked): Add RL78 to the list of processors
14369 that supports this attribute.
14370
b1a0f84e
JL
143712013-05-16 Jeff Law <law@redhat.com>
14372
14373 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
14374
af0e415b
UB
143752013-05-16 Uros Bizjak <ubizjak@gmail.com>
14376
14377 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
14378 cache parameters using detect_caches_amd also for CYRIX,
14379 NSC and TM2 signatures.
14380
19db293a
UB
143812013-05-16 Uros Bizjak <ubizjak@gmail.com>
14382 Dzianis Kahanovich <mahatma@eu.by>
14383
14384 PR target/45359
14385 PR target/46396
14386 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14387 VIA/Centaur processors and determine their cache parameters
14388 using detect_caches_amd.
14389
251a41b9
TJ
143902013-05-16 Teresa Johnson <tejohnson@google.com>
14391
14392 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
14393 (rtl_verify_edges): New function.
14394 (rtl_verify_bb_insns): Ditto.
14395 (rtl_verify_bb_pointers): Ditto.
14396 (rtl_verify_bb_insn_chain): Ditto.
14397 (rtl_verify_fallthru): Ditto.
14398 (rtl_verify_bb_layout): Ditto.
14399 (rtl_verify_flow_info_1): Outline checks into new functions.
14400 (rtl_verify_flow_info): Ditto.
14401
f14540b6
SE
144022013-05-16 Steve Ellcey <sellcey@imgtec.com>
14403
14404 * cfghooks.c (copy_bbs): Add update_dominance argument.
14405 * cfghooks.h (copy_bbs): Update prototype.
14406 * tree-cfg.c (gimple_duplicate_sese_region):
14407 Add update_dominance argument.
14408 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
14409 * tree-ssa-loop-ch.c (copy_loop_headers): Update
14410 gimple_duplicate_sese_region call.
14411 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
14412 Update copy_bbs call.
14413 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
14414 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
14415
7e9a3abb
JJ
144162013-05-16 Jakub Jelinek <jakub@redhat.com>
14417
14418 * tree-vectorizer.h (NUM_PATTERNS): Increment.
14419 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
14420 vect_recog_rotate_pattern.
14421 (vect_recog_rotate_pattern): New function.
14422
427b248d
JM
144232013-05-16 Jason Merrill <jason@redhat.com>
14424
14425 * Makefile.in (LLINKER): New variable.
14426 (mostlyclean): Remove link mutex.
14427 * configure.ac: Handle --enable-link-mutex.
14428 * lock-and-run.sh: New script.
14429
b871e3d2
RR
144302013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14431
14432 PR target/19599
14433 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
14434 for NULL decl.
14435
ce858126
RO
144362013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14437
14438 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
14439
798d3d04
GY
144402013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
14441
14442 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
14443 * config/arm/arm.c (next_consecutive_mem): New function.
14444 (gen_movmem_ldrd_strd): Likewise.
14445 * config/arm/arm.md (movmemqi): Update condition and code.
14446 (unaligned_loaddi, unaligned_storedi): New patterns.
14447
0baddc45
RO
144482013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14449
14450 * config.gcc: Obsolete *-*-solaris2.9*.
14451 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14452
aa9d5bcf
RB
144532013-05-16 Richard Biener <rguenther@suse.de>
14454
14455 * passes.c (init_optimization_passes): Move pass_parallelize_loops
14456 earlier, after GRAPHITE transforms and IV canonicalization.
14457
5a0f4dd3
JJ
144582013-05-16 Jakub Jelinek <jakub@redhat.com>
14459
14460 * omp-low.c (extract_omp_for_data): For collapsed loops,
14461 if at least one of the loops is known at compile time to
14462 iterate zero times, set count to 0.
14463 (expand_omp_regimplify_p): New function.
14464 (expand_omp_for_generic): For collapsed loops, if at least
14465 one of the loops isn't known to iterate at least once,
14466 add runtime check with setting count to 0.
14467 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14468 For unsigned types if it isn't known at compile time that
14469 the loop will iterate at least once, add runtime check to bypass
14470 the whole loop if initial condition isn't true.
14471
e3753785
NS
144722013-05-16 Nathan Sidwell <nathan@codesourcery.com>
14473
14474 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
14475
43bb4dd1
MG
144762013-05-16 Marc Glisse <marc.glisse@inria.fr>
14477
14478 PR middle-end/57286
14479 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
14480 transformations to avoid an infinite loop.
14481
3571dde6
MP
144822013-05-16 Marek Polacek <polacek@redhat.com>
14483
14484 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
14485
b8b3f0ca
LE
144862013-05-15 Leif Ekblad <leif@rdos.net>
14487
14488 * config/i386/i386.c (ix86_decompose_address): Use
14489 DEFAULT_TLS_SEG_REG to access TLS segment register.
14490 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
14491 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
14492 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
14493
e299a383
RS
144942013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
14495
14496 PR target/57260
14497 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
14498 sibling calls to functions that would normally be lazily bound,
14499 unless $gp is call-clobbered.
14500
e7208ea3
UB
145012013-05-15 Uros Bizjak <ubizjak@gmail.com>
14502
19db293a 14503 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 14504 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
14505 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
14506 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
14507 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
14508 of TARGET_3DNOW.
14509 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
14510
e7413f3d
AS
145112013-05-15 Andreas Schwab <schwab@suse.de>
14512
14513 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
14514 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
14515 third operand.
14516
ad4db775
TJ
145172013-05-15 Teresa Johnson <tejohnson@google.com>
14518
14519 * loop-unroll.c (report_unroll_peel): Check decision before
14520 emitting unroll/peel message.
14521
af205f67
TJ
145222013-05-15 Teresa Johnson <tejohnson@google.com>
14523
14524 * function.h (has_bb_partition): New rtl_data flag.
14525 (bb_reorder_complete): Ditto.
14526 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
14527 instead of flag_reorder_blocks_and_partition.
14528 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
14529 with some enhancements.
14530 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
14531 * bb-reorder.c (connect_traces): Check for has_bb_partition
14532 instead of flag_reorder_blocks_and_partition.
14533 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
14534 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
14535 verify_hot_cold_block_grouping.
14536 (partition_hot_cold_basic_blocks): Set has_bb_partition.
14537
9adcfa3c
RR
145382013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14539
14540 PR target/19599
14541 * config/arm/predicates.md (call_insn_operand): New predicate.
14542 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
14543 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
14544 if insn is not a tail call.
14545 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
14546 registers.
14547 * config/arm/arm.h (enum reg_class): New caller save register class.
14548 (REG_CLASS_NAMES): Likewise.
14549 (REG_CLASS_CONTENTS): Likewise.
14550 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
14551 without decls.
14552
ccb3ad87
RB
145532013-05-15 Richard Biener <rguenther@suse.de>
14554
14555 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
14556 of MSG_OPTIMIZED_LOCATIONS.
14557 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
14558 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
14559 message.
14560 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
14561 of MSG_OPTIMIZED_LOCATIONS.
14562 (execute_vect_slp): Likewise.
14563 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
14564 (vect_create_cond_for_alias_checks): Likewise.
14565 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
14566 (vect_recog_widen_mult_pattern): Likewise.
14567 (vect_recog_widen_sum_pattern): Likewise.
14568 (vect_recog_over_widening_pattern): Likewise.
14569 (vect_recog_widen_shift_pattern): Likewise.
14570 (vect_recog_vector_vector_shift_pattern): Likewise.
14571 (vect_recog_divmod_pattern): Likewise.
14572 (vect_recog_mixed_size_cond_pattern): Likewise.
14573 (vect_recog_bool_pattern): Likewise.
14574 (vect_pattern_recog_1): Likewise.
14575
48b1474e
MJ
145762013-05-15 Martin Jambor <mjambor@suse.cz>
14577
14578 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
14579 non-functions to builtin_unreachable.
14580 * ipa-inline-transform.c (inline_call): Do not assert estimates were
14581 correct when new direct edges were discovered.
14582
9de04252
MJ
145832013-05-15 Martin Jambor <mjambor@suse.cz>
14584
14585 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
14586 header, print symbol order instead of node uid, print more information
14587 about indirect edge targets.
14588 (ipa_make_edge_direct_to_target): Print symbol order instead of node
14589 uids.
14590 (ipa_make_edge_direct_to_target): Likewise.
14591 (remove_described_reference): Likewise.
14592 (propagate_controlled_uses): Likewise.
14593 (ipa_print_node_params): Also print symbol order.
14594 (ipcp_transform_function): Print symbol order instead of node uids.
14595 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
14596 (cgraph_get_create_real_symbol_node): Likewise.
14597 * ipa-cp.c (print_lattice): Likewise.
14598 (print_all_lattices): Likewise.
14599 (determine_versionability): Likewise.
14600 (initialize_node_lattices): Likewise.
14601 (estimate_local_effects): Likewise.
14602 (update_profiling_info): Likewise.
14603 (create_specialized_node): Likewise.
14604 (perhaps_add_new_callers): Likewise.
14605 (decide_about_value): Likewise.
14606 (decide_whether_version_node): Likewise.
14607 (identify_dead_nodes): Likewise.
14608 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
14609 (dump_inline_summary): Likewise.
14610 (estimate_node_size_and_time): Likewise.
14611 (inline_analyze_function): Likewise.
14612 * ipa-inline.c (report_inline_failed_reason): Likewise.
14613 (want_early_inline_function_p): Likewise.
14614 (edge_badness): Likewise.
14615 (update_edge_key): Likewise.
14616 (inline_small_functions): Likewise. Add dumping of order to two other
14617 dumps.
14618 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
14619 instead of node uids.
14620 (propagate_pure_const): Likewise.
14621 (propagate_pure_const): Likewise.
14622 * ipa-utils.c (dump_cgraph_node_set): Likewise.
14623 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
14624 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
14625 of node uids.
14626 * tree-pretty-print.c (dump_function_header): Likewise.
14627 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
14628 Print symbol order instead of node uids.
14629
1dd03b91
AK
146302013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14631
14632 * config/s390/s390.c (s390_register_move_cost): Don't impose the
14633 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
14634
fdf6a7b9
RB
146352013-05-15 Richard Biener <rguenther@suse.de>
14636
14637 PR tree-optimization/57275
14638 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
14639 return value for fail to do runtime alias checks for gather loads.
14640
2d6e4603
JH
146412013-05-15 Jan Hubicka <jh@suse.cz>
14642
14643 PR lto/57038
14644 PR lto/47375
e7208ea3
UB
14645 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
14646 weakrefs are not external.
14647 (lto_symtab_merge_decls): Fix thinko when dealing with
14648 non-lto_symtab decls.
2d6e4603
JH
14649 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
14650 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
14651 * varpool.c (dump_varpool_node): Dump more flags.
14652
83f44b39
GG
146532013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14654
14655 * config/i386/i386.c (processor_alias_table): Add instruction
14656 FSGSBASE for AMD bdver3 architecture.
14657
2e55d062
JJ
146582013-05-14 Jakub Jelinek <jakub@redhat.com>
14659
14660 * tree.c (warn_deprecated_use): Print file:line using locus color.
14661 * diagnostic.c (diagnostic_report_current_module): Print file:line
14662 and file:line:column using locus color.
14663
0bfdb81e
MS
146642013-05-14 Mike Stump <mikestump@comcast.net>
14665
14666 * gdbinit.in: Add __null.
14667
a508ef22
MS
146682013-05-14 Mike Stump <mikestump@comcast.net>
14669
14670 * recog.h: Rename struct recog_data to Recog_data.
14671 * recog.c: Likewise.
14672 * reload.c (can_reload_into): Likewise.
14673 * config/picochip/picochip.c: Likewise.
14674
e7180acb
MS
146752013-05-14 Mike Stump <mikestump@comcast.net>
14676
14677 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
14678
61216c26
SB
146792013-05-14 Steven Bosscher <steven@gcc.gnu.org>
14680
fd6beed4
SB
14681 * resource.h (struct resources): Remove unch_memory member.
14682 (CLEAR_RESOURCE): Don't clear unch_memory.
14683 * resource.c (mark_referenced_resources): Don't set it.
14684 (mark_set_resources): Likewise.
14685 (mark_target_live_regs): Don't clear it.
14686 (init_resource_info): Likewise.
14687 * reorg.c (resource_conflicts_p): Don't compare it.
14688 (redundant_insn): Don't set it.
14689
61216c26
SB
14690 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
14691 Remove prototypes.
14692 * emit-rtl.c (next_label): Remove unused function.
14693 (skip_consecutive_labels, link_cc0_insns): Move to ...
14694 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
14695 only place where these functions are used, and make them static.
14696
418d1b87
MG
146972013-05-14 Marc Glisse <marc.glisse@inria.fr>
14698
14699 * fold-const.c (fold_negate_expr): Handle vectors.
14700 (fold_truth_not_expr): Make it static.
14701 (fold_invert_truthvalue): New static function.
14702 (invert_truthvalue_loc): Handle vectors. Do not call
14703 fold_truth_not_expr directly.
14704 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
14705 <TRUTH_NOT_EXPR>: Do not cast to boolean.
14706 (fold_comparison): Handle vector constants.
14707 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
14708 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
14709 * tree.h (fold_truth_not_expr): Remove declaration.
14710
fc21784d
JG
147112013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
14712
14713 * config/aarch64/aarch64-simd.md
14714 (aarch64_vcond_internal<mode>): Rename to...
14715 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
14716 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
14717 float modes. Clarify all iterator modes.
14718 (vcond<mode><mode>): Use new name for vcond expanders.
14719 (vcond<v_cmp_result><mode>): Likewise.
14720 (vcondu<mode><mode>: Likewise.
14721 * config/aarch64/iterators.md (VDQF_COND): New.
14722
d4c52634
MG
147232013-05-14 Marc Glisse <marc.glisse@inria.fr>
14724
14725 PR bootstrap/57266
14726 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
14727 variable for the shift amount. Check that we shift by non-negative
14728 amounts.
14729
2b261262
CLT
147302013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
14731
14732 PR target/42017
14733 * config/arm/arm.h (EPILOGUE_USES): Only return true
14734 for LR_REGNUM after epilogue_completed.
14735
12211b99 147362013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
6e022d7b
JR
14737
14738 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 14739 is error_mark_node.
6e022d7b 14740
56cf7859
RO
147412013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14742
14743 PR target/57261
14744 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
14745 and Solaris 11+/x86 with gld.
14746 * configure: Regenerate.
14747
75776c6d
JJ
147482013-05-14 Jakub Jelinek <jakub@redhat.com>
14749
14750 * expmed.c (expand_shift_1): Canonicalize rotates by
14751 constant bitsize / 2 to bitsize - 1.
7f998021 14752 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
14753 case ROTATERT>: Likewise.
14754
14755 Revert:
14756 2013-05-10 Jakub Jelinek <jakub@redhat.com>
14757
14758 * config/i386/i386.md (rotateinv): New code attr.
14759 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
14760 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
14761 roll $31, %eax, etc.
14762
df35498a
RB
147632013-05-14 Richard Biener <rguenther@suse.de>
14764
14765 PR middle-end/57235
14766 * tree-eh.c (sink_clobbers): Give up for successors with
14767 multiple predecessors and no virtual uses.
14768
cc6e7ece
EB
147692013-05-14 Eric Botcazou <ebotcazou@adacore.com>
14770
14771 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
14772 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
14773
f778dd4d
JJ
147742013-05-14 Jakub Jelinek <jakub@redhat.com>
14775
14776 PR middle-end/57251
14777 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
14778 the case when both op0 and op1 have VOIDmode.
14779
bad4df9b
KP
147802013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14781
14782 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
14783 in multiply-accumulate mode.
14784
56f3e9ac
GW
147852013-05-13 Guozhi Wei <carrot@google.com>
14786
14787 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
14788
a3d7ab92
KT
147892013-05-13 Kai Tietz <ktietz@redhat.com>
14790
14791 PR target/56975
14792 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 14793 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 14794 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 14795 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
14796 (ix86_expand_prologue): Likewise.
14797 (ix86_expand_split_stack_prologue): Likewise.
14798 (legitimate_pic_address_disp_p): Likewise.
14799 (legitimize_pic_address): Likewise.
14800 (legitimize_tls_address): Likewise.
14801 (legitimize_pe_coff_symbol): Likewise.
14802 (output_pic_addr_const): Likewise.
14803 (construct_plt_address): Likewise.
14804 (ix86_expand_call): Likewise.
14805 (x86_output_mi_thunk): Likewise.
14806 (x86_function_profiler): Likewise.
14807
c59b7e28
SN
148082013-05-13 Sofiane Naci <sofiane.naci@arm.com>
14809
14810 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
14811 similar switch cases.
14812 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
14813 (aarch64_simd_mov_to_<mode>low): Delete.
14814 (aarch64_simd_mov_to_<mode>high): Delete.
14815 (move_lo_quad_<mode>): Add w<-r alternative.
14816 (aarch64_simd_move_hi_quad_<mode>): Likewise.
14817 (aarch64_simd_mov_from_*): Update type attribute.
14818 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
14819 statement.
14820
5f28524a
JH
148212013-05-13 Jan Hubicka <jh@suse.cz>
14822
14823 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
14824 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
14825 ix86_expand_epilogue, emit_i387_cw_initialization,
14826 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
14827 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 14828
ae6fa899
JJ
148292013-05-13 Jakub Jelinek <jakub@redhat.com>
14830
14831 PR tree-optimization/45216
14832 PR tree-optimization/57157
14833 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
14834 the (-Y) & (B - 1) variant if OP is |.
14835 * expmed.c (expand_shift_1): For rotations by const0_rtx just
14836 return shifted. Use (-op1) & (prec - 1) as other_amount
14837 instead of prec - op1.
14838
4502fe8d
MJ
148392013-05-13 Martin Jambor <mjambor@suse.cz>
14840
14841 PR middle-end/42371
14842 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
14843 (ipa_constant_data): New type.
14844 (ipa_jump_func): Use ipa_constant_data to hold information about
14845 constant jump functions.
14846 (ipa_get_jf_constant): Adjust to jump function type changes.
14847 (ipa_get_jf_constant_rdesc): New function.
14848 (ipa_param_descriptor): New field controlled_uses.
14849 (ipa_get_controlled_uses): New function.
14850 (ipa_set_controlled_uses): Likewise.
14851 * ipa-ref.h (ipa_find_reference): Declare.
14852 * ipa-prop.c (ipa_cst_ref_desc): New type.
14853 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
14854 changes.
14855 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
14856 New parameter cs. Adjust all callers.
14857 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
14858 (remove_described_reference): New function.
14859 (jfunc_rdesc_usable): Likewise.
14860 (try_make_edge_direct_simple_call): Decrement controlled use count,
14861 attempt to remove reference if it hits zero.
14862 (combine_controlled_uses_counters): New function.
14863 (propagate_controlled_uses): Likewise.
14864 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
14865 (ipa_edge_duplication_hook): Duplicate reference descriptions.
14866 (ipa_print_node_params): Print described use counter.
14867 (ipa_write_jump_function): Adjust to jump function type changes.
14868 (ipa_read_jump_function): New parameter CS, pass it to
14869 ipa_set_jf_constant. Adjust caller.
14870 (ipa_write_node_info): Stream controlled use count
14871 (ipa_read_node_info): Likewise.
14872 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
14873 asserting.
14874 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
14875 count. Remove cloning-added reference if it reaches zero.
14876 * ipa-ref.c (ipa_find_reference): New function.
14877
0864bfc2
GG
148782013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14879
e7208ea3 14880 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
14881 alignment values for AMD BD and BT architectures.
14882
640bfeb2
MG
148832013-05-13 Marc Glisse <marc.glisse@inria.fr>
14884
14885 * tree-vect-generic.c (uniform_vector_p): Move ...
14886 * tree.c (uniform_vector_p): ... here.
14887 * tree.h (uniform_vector_p): Declare it.
14888 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
14889 into a scalar.
14890
3a60f32b
JJ
148912013-05-13 Jakub Jelinek <jakub@redhat.com>
14892
198fe1bf
JJ
14893 PR tree-optimization/57230
14894 * tree-ssa-strlen.c (handle_char_store): Record length for
14895 array store from STRING_CST.
14896
3a60f32b
JJ
14897 PR tree-optimization/57230
14898 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
14899 check.
14900
566be57c
JR
149012013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
14902
14903 * config/epiphany/epiphany.c (epiphany_init): Check size of
14904 NUM_MODES_FOR_MODE_SWITCHING.
14905 (epiphany_expand_prologue):
14906 Remove CONFIG_REGNUM initial value handling code.
14907 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
14908 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 14909 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
14910 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
14911 Don't return 1 for FP_MODE_NONE.
14912 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
14913 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
14914 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
14915 * config/epiphany/epiphany.md (save_config): New pattern.
14916
0f2c2331
UB
149172013-05-12 Uros Bizjak <ubizjak@gmail.com>
14918
14919 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
14920
5b3f93c7
UB
149212013-05-10 Uros Bizjak <ubizjak@gmail.com>
14922
14923 * config/i386/i386.md (memory): Handle sseishft1.
14924 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
14925 (*vec_extractv2di_1): Ditto.
14926
1f873f0e
VM
149272013-05-10 Vladimir Makarov <vmakarov@redhat.com>
14928
14929 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
14930 saved registers.
14931
341427fa 149322013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
14933
14934 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
14935 Add mthumb/march=armv7-a multilib.
14936 Add mthumb/march=armv7-r multilib.
14937 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
14938
9e69bdde
RC
149392013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
14940
14941 * config/v850/t-rtems: Add more multilibs.
14942
9ff09a22
RB
149432013-05-10 Richard Biener <rguenther@suse.de>
14944
14945 PR tree-optimization/57214
14946 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
14947 not propagate from SSA names that occur in abnormal PHI nodes.
14948
a5e0cd1d
MG
149492013-05-10 Marc Glisse <marc.glisse@inria.fr>
14950
14951 * stor-layout.c (element_precision): New function.
14952 * machmode.h (element_precision): Declare it.
14953 * tree.c (build_minus_one_cst): New function.
14954 (element_precision): Likewise.
14955 * tree.h (build_minus_one_cst): Declare new function.
14956 (element_precision): Likewise.
14957 * fold-const.c (operand_equal_p): Use element_precision.
14958 (fold_binary_loc): Handle vector types.
14959 * convert.c (convert_to_integer): Use element_precision.
14960 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
14961 separately.
14962
cb2558bc
RS
149632013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
14964
14965 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
14966 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
14967 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
14968 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
14969 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
14970 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
14971 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
14972 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
14973 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
14974 (Uuw8): New constraints.
14975 (Usb4): Move into alphabetical order.
14976 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
14977 (sd8_operand, ub8_operand, uw8_operand): New predicates.
14978 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
14979 previously unnamed patterns.
14980 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
14981 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
14982 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
14983 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
14984 of set_attr_alternative/if_then_else. Use extended_mips16 instead
14985 of specific lengths.
14986
cb3b8d33
JJ
149872013-05-10 Jakub Jelinek <jakub@redhat.com>
14988
6f93c008
JJ
14989 * config/i386/i386.md (rotateinv): New code attr.
14990 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
14991 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
14992 roll $31, %eax, etc.
14993
cb3b8d33
JJ
14994 PR tree-optimization/45216
14995 PR tree-optimization/57157
14996 * tree-ssa-forwprop.c (simplify_rotate): New function.
14997 (ssa_forward_propagate_and_combine): Call it.
14998
afb119be
RB
149992013-05-10 Richard Biener <rguenther@suse.de>
15000
15001 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
15002 disable peeling when we version for aliasing.
15003 (vector_alignment_reachable_p): Honor explicit user alignment.
15004 (vect_supportable_dr_alignment): Likewise.
15005 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
15006 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
15007 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
15008 then peeling to arrange for the cost-model check to come first.
15009
01ae4861
AM
150102013-05-10 Alan Modra <amodra@gmail.com>
15011
15012 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
15013 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
15014 * configure: Regenerate.
15015
ebc9a431
AM
150162013-05-10 Alan Modra <amodra@gmail.com>
15017
15018 PR target/55033
15019 * varasm.c (default_elf_select_section): Move !DECL_P check..
15020 (get_named_section): ..to here before calling get_section_name.
15021 Adjust assertion.
15022 (default_section_type_flags): Add DECL_P check.
15023 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
15024 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
15025
d4bca93c
JR
150262013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
15027
15028 * config/epiphany/epiphany.c (epiphany_expand_prologue):
15029 When using gen_stack_adjust_str with a register offset, add a
15030 REG_FRAME_RELATED_EXPR note.
15031
60ca9a65
UB
150322013-05-09 Uros Bizjak <ubizjak@gmail.com>
15033
15034 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
15035 (*vec_extractv4si_zext_mem): Ditto.
15036 (*vec_extractv2di): Add 0->x and x->x alternatives.
15037 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
15038 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
15039
a3409c02
JM
150402013-05-09 Jason Merrill <jason@redhat.com>
15041
0138d6b2
JM
15042 N3639 C++1y VLA support
15043 * gimplify.c (gimplify_vla_decl): Don't touch an existing
15044 DECL_VALUE_EXPR.
15045
a3409c02
JM
15046 * tree.c (build_constructor_va): New.
15047 * tree.h: Declare it.
15048
66e6b990
MJ
150492013-05-09 Martin Jambor <mjambor@suse.cz>
15050
15051 PR lto/57084
15052 * gimple-fold.c (canonicalize_constructor_val): Call
15053 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
15054
64cfa6c0
JH
150552013-05-09 Jan Hubicka <jh@suse.cz>
15056 Richard Biener <rguenther@suse.de>
15057
15058 PR lto/54095
15059 * symtab.c (symtab_make_decl_local): Do not add private names.
15060
c3167b00
JH
150612013-05-09 Jan Hubicka <jh@suse.cz>
15062
15063 PR lto/54095
15064 * symtab.c (insert_to_assembler_name_hash): Handle clones.
15065 (unlink_from_assembler_name_hash): Likewise.
15066 (symtab_prevail_in_asm_name_hash, symtab_register_node,
15067 symtab_unregister_node, symtab_initialize_asm_name_hash,
15068 change_decl_assembler_name): Update.
15069
12dc6974
SN
150702013-05-09 Sofiane Naci <sofiane.naci@arm.com>
15071
15072 * config/aarch64/aarch64.md: New movtf split.
15073 (*movtf_aarch64): Update.
15074 (aarch64_movdi_tilow): Handle TF modes and rename to
15075 aarch64_movdi_<mode>low.
15076 (aarch64_movdi_tihigh): Handle TF modes and rename to
15077 aarch64_movdi_<mode>high
15078 (aarch64_movtihigh_di): Handle TF modes and rename to
15079 aarch64_mov<mode>high_di
15080 (aarch64_movtilow_di): Handle TF modes and rename to
15081 aarch64_mov<mode>low_di
15082 (aarch64_movtilow_tilow): Remove spurious whitespace.
15083 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
15084 splits.
15085 (aarch64_print_operand): Update.
15086
227eb343
AM
150872013-05-09 Alan Modra <amodra@gmail.com>
15088
15089 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
15090 powerpc64le.
15091 * configure: Regenerate.
15092
0b013847
UB
150932013-05-08 Uros Bizjak <ubizjak@gmail.com>
15094
15095 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
15096 splitter preparation statements.
15097 * config/i386/sse.md (*vec_extract* splitters): Ditto.
15098 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
15099 adjust_address_nv.
15100
1dc3d6e9
BS
151012013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15102
15103 * gimple-ssa-strength-reduction.c (count_candidates): Change
15104 return value to int.
15105 (analyze_candidates_and_replace): Change type of length to int.
15106
e61e7d28
UB
151072013-05-08 Uros Bizjak <ubizjak@gmail.com>
15108
15109 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
15110 (*vec_extract<mode>): Use VI12_128 mode iterator.
15111 (*vec_extract<mode>_mem): Ditto.
15112 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
15113 attribute.
15114
4fbfcf44
DN
151152013-05-08 Diego Novillo <dnovillo@google.com>
15116
15117 PR bootstrap/54659
15118
15119 Revert:
4fbfcf44
DN
15120 2012-08-17 Diego Novillo <dnovillo@google.com>
15121
e61e7d28
UB
15122 PR bootstrap/54281
15123 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
15124 * config.in: Regenerate.
15125 * configure: Regenerate.
15126 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 15127
702d8703
JH
151282013-05-08 Jan Hubicka <jh@suse.cz>
15129
15130 PR lto/54095
15131 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
15132 * cgraph.h (symtab_node_base): Add unique_name.
15133 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
15134 input_overwrite_node, input_varpool_node): Stream unique_name.
15135 * cgraphclones.c (cgraph_create_virtual_clone,
15136 cgraph_function_versioning): Set unique_name.
15137 * ipa.c (function_and_variable_visibility): Set unique_name.
15138
8b28cf47
BS
151392013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15140
15141 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
15142 (alloc_cand_and_find_basis): Restrict conditional candidate
15143 processing to CAND_MULTs.
15144
e86074fd
JH
151452013-05-08 Jan Hubicka <jh@suse.cz>
15146
15147 PR lto/54095
15148 lto-symtab.c (lto_symtab_symbol_p): New function.
15149 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
15150 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
15151 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
15152 Skip static symbols.
15153
44398cbe
PC
151542013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
15155
15156 PR tree-optimization/57200
15157 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
15158 Only call inform if the preceding warning_at returns true.
15159
f6bc1c4a
HS
151602013-05-07 Han Shen <shenhan@google.com>
15161
15162 * cfgexpand.c (record_or_union_type_has_array_p): New function.
15163 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
15164 * common.opt (fstack-protector-strong): New option.
15165 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
15166 * doc/invoke.texi (Optimization Options): Document
15167 "-fstack-protector-strong".
15168 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
15169
4ffecb1f
SB
151702013-05-06 Steven Bosscher <steven@gcc.gnu.org>
15171
15172 * config/mips/mips.c (mips_machine_reorg2): Return 0.
15173
5a107a0f
VM
151742013-05-07 Vladimir Makarov <vmakarov@redhat.com>
15175
15176 * ira.c (update_equiv_regs): Add insn having equiv memory even if
15177 it is not lhs of the insn.
15178 (setup_reg_equiv): Remove insn having equiv memory which it is not
15179 lhs of the insn.
15180 * lra-constraints.c (process_address): Try to improve generation
15181 code for address base + disp.
15182 (lra_constraints): Make correct the code for checking insn setting
15183 up backward equivalence. Remove insn only if it is in the init
15184 insn list.
15185 * lra-eliminations.c (update_reg_eliminate): Change return value.
15186 (lra_eliminate): Use the result.
15187
3f5783ea
UB
151882013-05-07 Uros Bizjak <ubizjak@gmail.com>
15189
15190 * config/i386/sse.md (ssescalarnummask): New mode attribute.
15191 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
15192 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
15193 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
15194 register target operands.
15195 (*vec_extractv8hi_sse2): New pattern.
15196 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
15197 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
15198 (*vec_extract<mode>_mem): New insn and split pattern.
15199
8a5800b8
CL
152002013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
15201
15202 * config/arm/arm.c (arm_asan_shadow_offset): New function.
15203 (TARGET_ASAN_SHADOW_OFFSET): Define.
15204 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
15205 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
15206
7bf55a70
BS
152072013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15208
15209 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
15210 (incr_vec_index): Return -1 if increment not found.
15211 (create_add_on_incoming_edge): Assert if increment not found.
15212 (record_increment): Limit number of increments recorded.
15213 (all_phi_incrs_profitable): Return false if an increment not found.
15214 (replace_profitable_candidates): Don't process increments that were
15215 not recorded.
15216 (analyze_candidates_and_replace): Limit size of incr_vec.
15217
3f8825c0
RB
152182013-05-07 Richard Biener <rguenther@suse.de>
15219
15220 * calls.c (special_function_p): setjmp-like functions are leaf.
15221 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
15222 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
15223
fd4842cd
SN
152242013-05-07 Sofiane Naci <sofiane.naci@arm.com>
15225
15226 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
15227 (aarch64_simd_mov<mode>): New expander.
15228 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
15229 (aarch64_simd_mov_to_<mode>high): Likewise.
15230 (aarch64_simd_mov_from_<mode>low): Likewise.
15231 (aarch64_simd_mov_from_<mode>high): Likewise.
15232 (aarch64_dup_lane<mode>): Update.
15233 (aarch64_dup_lanedi): New instruction pattern.
15234 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
15235 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
15236
a7a7d10e
BS
152372013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15238
15239 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
15240 (replace_mult_candidate): Remove unnecessary argument; remove
15241 unnecessary parameter from call to introduce_cast_before_cand.
15242 (replace_unconditional_candidate): Remove unnecessary parameter
15243 from call to replace_mult_candidate.
15244 (replace_conditional_candidate): Likewise.
15245 (insert_initializers): Use make_temp_ssa_name.
15246 (introduce_cast_before_cand): Remove unnecessary argument; use
15247 make_temp_ssa_name.
15248 (replace_one_candidate): Remove unnecessary argument; remove
15249 unnecessary parameter from calls to introduce_cast_before_cand.
15250 (replace_profitable_candidates): Remove unnecessary parameters
15251 from calls to replace_one_candidate.
15252
29105868
BS
152532013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15254
15255 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
15256 phi def as possibly hiding a basis for a CAND_ADD whose operands
15257 have been commuted in the analysis.
15258 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
15259
4095f9fa
N
152602013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15261
15262 * config/aarch64/aarch64.md
15263 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
15264 shift value between 0-4.
15265
39e843e8
RB
152662013-05-07 Richard Biener <rguenther@suse.de>
15267
15268 * double-int.h (rshift): New overload.
15269 * double-int.c (rshift): New function.
15270 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
15271 (create_reference_ops_from_ref): Remove.
15272 (vn_reference_insert): Use shared ops for constructing the
15273 reference and copy it.
15274
0a1a83cb
RB
152752013-05-07 Richard Biener <rguenther@suse.de>
15276
15277 PR middle-end/57190
15278 * tree-eh.c (sink_clobbers): Properly propagate
15279 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
15280
43303d6f
JJ
152812013-05-07 Jakub Jelinek <jakub@redhat.com>
15282
ba7e83f8
JJ
15283 PR tree-optimization/57149
15284 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
15285 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
15286 collect_phi_def_edges, execute_late_warn_uninitialized): Use
15287 uninit_undefined_value_p instead of ssa_undefined_value_p.
15288
43303d6f
JJ
15289 PR debug/57184
15290 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
15291 for modifier == EXPAND_INITIALIZER.
15292
14523c25
AB
152932013-05-07 Anton Blanchard <anton@samba.org>
15294
15295 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
15296 for powerpc64 little endian.
15297 * configure: Regenerate.
15298
cb7c8be9
GS
152992013-05-06 Graham Stott <grahams@btinternet.com>
15300
15301 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
15302 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
15303 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
15304 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
15305
153062013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
15307
15308 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
15309 codes which allow non-lvalues.
15310
9a0ee7b0
MG
153112013-05-06 Marc Glisse <marc.glisse@inria.fr>
15312
15313 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
15314 components are all 1s.
15315 (integer_minus_onep): New function.
15316 * tree.h (integer_minus_onep): Declare it.
15317 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
15318 integer_minus_onep instead of integer_all_onesp.
15319
f2c17ea9
OE
153202013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15321
15322 PR target/52933
15323 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
15324 variations of these patterns.
15325
f75e6a51
UB
153262013-05-06 Uros Bizjak <ubizjak@gmail.com>
15327
15328 * config/i386/i386.md (isa): Add x64_sse4 member.
15329 (enabled): Handle x64_sse4.
15330 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
15331 instruction for 64bit SSE4_1 targets. Update insn attributes.
15332 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
15333 instruction for SSE4_1 targets. Update insn attributes.
15334 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
15335 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
15336 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
15337 const_1 selector.
15338 (*vec_extractv4si): Rename from *sse4_1_pextrd.
15339 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
15340 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
15341
a986d468
OE
153422013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15343
15344 PR target/57108
15345 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
15346
382522cb
MK
153472013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
15348
15349 * final.c (do_assembler_dialects): Don't handle curly braces and
15350 vertical bar escaped by % as dialect delimiters.
15351 (output_asm_insn): Print curly braces and vertical bar if escaped
15352 by % and ASSEMBLER_DIALECT defined.
15353 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
15354 * doc/tm.texi: Regenerated.
15355
fb0d5c60
SB
153562013-05-06 Steven Bosscher <steven@gcc.gnu.org>
15357
fb0d5c60
SB
15358 * config/mips/mips.c: Include tree-pass.h.
15359 (mips_reorg): Split in pre- and post-dbr_schedule parts.
15360 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
15361 (pass_mips_machine_reorg2): New machine specific pass.
15362 (insert_pass_mips_machine_reorg2): New pass plugin definition.
15363 (mips_option_override): Register the new pass.
15364 * rtl.h (cleanup_barriers): Remove prototype.
15365 (dbr_schedule): Likewise.
15366 * jump.c (cleanup_barriers): Make static.
15367 * reorg.c (dbr_schedule): Likewise.
15368
aa06a978
RB
153692013-05-06 Richard Biener <rguenther@suse.de>
15370
15371 PR tree-optimization/57185
15372 * tree-parloops.c (add_field_for_reduction): Handle anonymous
15373 SSA names properly.
15374
0b953bec
UB
153752013-05-06 Uros Bizjak <ubizjak@gmail.com>
15376
15377 PR target/57106
15378 * config/i386/i386.c (add_parameter_dependencies): Add dependence
15379 between "first_arg" and "insn", not "last" and "insn".
15380
28708525
WS
153812013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15382
15383 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
15384 (find_candidates_in_block): Re-enable slsr_process_phi.
15385 (create_phi_basis): Fix double counting of candidate adjustment.
15386
0107dca2
RB
153872013-05-06 Richard Biener <rguenther@suse.de>
15388
15389 PR middle-end/57147
15390 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
15391 the edge is also fallthru, preserve it and just clear the
15392 abnormal flag.
15393 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
15394 also complex, preserve that and just clear the fallthru flag.
15395 * tree-inline.c (update_ssa_across_abnormal_edges): Also
15396 update virtual operands.
15397
470d4d13
AM
153982013-05-06 Alan Modra <amodra@gmail.com>
15399
15400 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
15401 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
15402 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
15403 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
15404 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
15405 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
15406
8f1dbf8d
AM
154072013-05-06 Alan Modra <amodra@gmail.com>
15408
15409 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
15410 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
15411 (DEFAULT_ASM_ENDIAN): Define.
15412 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
15413 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
15414 Update -K PIC clause from sysv4.h.
15415 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
15416 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
15417
54890767
AM
154182013-05-06 Alan Modra <amodra@gmail.com>
15419
15420 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
15421 twice for little-endian.
15422 (ashrdi3_no_power, ashrdi3): Support little-endian.
15423
2353515d
OE
154242013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15425
15426 PR target/55303
15427 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
15428 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
15429 related expanders.
15430 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
15431 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
15432 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
15433 New predicates.
15434
33e67557
SB
154352013-05-05 Steven Bosscher <steven@gcc.gnu.org>
15436 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15437
15438 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
15439 * config/pa/pa.opt: Make mbig-switch a no-op.
15440 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
15441 (CASE_VECTOR_MODE): Always return SImode.
15442 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
15443 for the !TARGET_BIG_SWITCH case.
15444 * config/pa/pa-linux.h: Likewise.
15445 * config/pa/pa-openbsd.h: Likewise.
15446 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
15447 * config/pa/pa.md (short_jump): Remove define_insn.
15448 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
15449 (casesi0): Remove define_insn.
15450 (type): Remove btable_branch.
15451 (pa_combine_type): Likewise.
15452 (in_nullified_branch_delay): Likewise.
15453 (in_call_delay): Likewise.
15454 (define_delay): Likewise.
15455 (define_insn_reservation "Z3"): Likewise.
15456 (define_insn_reservation "Z4"): Likewise.
15457 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
15458 (pa_adjust_insn_length): Remove adjustment for btable branches.
15459 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
15460 and mno-big-switch
15461
3095685e
UB
154622013-05-05 Uros Bizjak <ubizjak@gmail.com>
15463
15464 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
15465 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
15466 Add m->r,x alternatives.
15467 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
15468 splitters using SWI48x mode iterator.
15469 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
15470 TARGET_64BIT. Add m->x alternative.
15471 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
15472 Add o->x alternative. Enable for TARGET_SSE.
15473 (sse_storeq): Remove expander.
15474 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
15475 with memory input operand.
15476 (*vec_extractv2di_1 splitter): New.
15477 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
15478 * config/i386/i386.md (ssevecmodelower): New mode attribute.
15479
4b36ae28
SB
154802013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
15481
15482 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
15483 (INT_LOWPART): Delete.
15484 (extract_MB): Adjust.
15485 (extract_ME): Adjust.
15486 (print_operand): Adjust.
15487
da226db2
SB
154882013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
15489
15490 * config/rs6000/predicates.md (reg_or_add_cint_operand,
15491 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
15492 (reg_or_logical_cint_operand, easy_fp_constant,
15493 logical_const_operand): Delete "CONST_DOUBLE" case.
15494 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
15495 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 15496 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
15497 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
15498 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
15499 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
15500 test.
15501 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
15502 CONST_DOUBLE DImode/VOIDmode case.
15503 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
15504 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
15505 CONST_DOUBLE VOIDmode case.
15506 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
15507 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
15508 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
15509 Delete CONST_DOUBLE case.
15510 (splitters for mov FMOVE64 const_double): Delete
15511 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
15512 "HOST_BITS_PER_WIDE_INT >= 64" test.
15513 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
15514 case.
15515 (mov DI const_double): Delete.
15516
40de22d6
JJ
155172013-05-04 Jakub Jelinek <jakub@redhat.com>
15518
15519 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
15520 on op shows all bits zero in mode of a lowpart subreg, return zero.
15521
5ec6aff2
MM
155222013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15523
15524 PR target/57150
15525 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
15526 to save TFmode registers and DImode to save TImode registers for
15527 caller save operations.
15528 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
15529 mark being partially clobbered since they only use the first
15530 double word.
15531
15532 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
15533 and TDmode only use the upper 64-bits of each VSX register.
15534
2cefad90
BS
155352013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15536
15537 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
15538 (find_candidates_in_block): Disable slsr_process_phi.
15539
d6d7eee1
GW
155402013-05-03 Guozhi Wei <carrot@google.com>
15541
15542 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
15543 constructor to ...
15544 (build_init_ctor): ... here.
d6d7eee1 15545
9b92d12b
BS
155462013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15547
15548 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
15549 (slsr_cand_d): Redefine def_phi.
15550 (stride_status, phi_adjust_status, count_phis_status): New enums.
15551 (find_phi_def): New.
15552 (find_basis_for_base_expr): New.
15553 (find_basis_for_candidate): Handle hidden bases.
15554 (alloc_cand_and_find_basis): Handle phi candidates.
15555 (slsr_process_phi): New.
15556 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
15557 (create_mul_imm_cand): Likewise.
15558 (create_add_ssa_cand): Exclude phi base candidates.
15559 (create_add_imm_cand): Likewise.
15560 (slsr_process_cast): Likewise.
15561 (slsr_process_copy): Likewise.
15562 (find_candidates_in_block): Handle phi candidates.
15563 (dump_candidate): Likewise.
15564 (unconditional_cands): Delete.
15565 (unconditional_cands_with_known_stride_p): Delete.
15566 (phi_dependent_cand_p): New.
15567 (cand_increment): Handle phi-dependent candidates.
15568 (replace_dependent): Delete.
15569 (replace_mult_candidate): New.
15570 (replace_unconditional_candidate): New.
15571 (incr_vec_index): Move to avoid forward reference.
15572 (create_add_on_incoming_edge): New.
15573 (create_phi_basis): New.
15574 (replace_dependents): Delete.
15575 (replace_conditional_candidate): New.
15576 (phi_add_costs): New.
15577 (replace_uncond_cands_and_profitable_phis): New.
15578 (record_increment): Handle phi adjustments.
15579 (record_phi_increments): New.
15580 (record_increments): Handle phi adjustments.
15581 (phi_incr_cost): New.
15582 (lowest_cost_path): Handle phis.
15583 (total_savings): Likewise.
15584 (analyze_increments): Likewise.
15585 (ncd_with_phi): New.
15586 (ncd_of_cand_and_phis): New.
15587 (nearest_common_dominator_for_cands): Handle phi increments.
15588 (all_phi_incrs_profitable): New.
15589 (replace_profitable_candidates): Handle phi-dependent candidates.
15590 (analyze_candidates_and_replace): Likewise.
15591
68f073d4
TJ
155922013-05-03 Teresa Johnson <tejohnson@google.com>
15593
15594 PR bootstrap/57154
15595 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
15596 do not exceed REG_BR_PROB_BASE.
15597
a4ee7cb9
JL
155982013-05-03 Jeff Law <law@redhat.com>
15599
ade67f70 15600 PR tree-optimization/57144
a4ee7cb9
JL
15601 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
15602 operand of the condition will bit into the new type when eliminating
15603 a cast feeding a condition.
15604
47954c4e
JJ
156052013-05-03 Jakub Jelinek <jakub@redhat.com>
15606
15607 PR rtl-optimization/57130
3095685e
UB
15608 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
15609 of COMPARE as in_code to the recursive call if needed.
47954c4e 15610
3c21604f
UB
156112013-05-03 Uros Bizjak <ubizjak@gmail.com>
15612
15613 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
15614 (enabled): Handle new members.
15615 * config/i386/sse.md (*vec_concatv2si): Merge from
15616 *vec_concatv2si_sse2 and vec_concatv2si_sse.
15617 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
15618
12211b99 156192013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
95c03b36
JR
15620
15621 PR tree-optimization/57027
15622 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
15623 for fnms opportunity, check we got the prerequisite kind
15624 of tree / gimple before using accessor functions.
15625
07bfc9ec
RB
156262013-05-03 Richard Biener <rguenther@suse.de>
15627
15628 * double-int.h (lshift): New overload without precision
15629 and arith argument.
15630 (operator *=, operator +=, operator -=): Move ...
15631 * double-int.c (operator *=, operator +=, operator -=): ... here
15632 and implement more efficiently.
15633 (mul_double_with_sign): Remove.
15634 (lshift_double): Adjust to take unsinged shift argument, push
15635 dispatching code to callers.
15636 (mul_double_wide_with_sign): Add early out for callers that
15637 are not interested in high parts or overflow.
15638 (lshift): New function.
15639 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
15640 dispatch code here.
15641 (lrotate, rrotate): Use logical shifts.
15642 * expr.c (get_inner_reference): Use lshift.
15643 * fixed-value.c (do_fixed_divide): Likewise.
15644 * tree-dfa.c (get_ref_base_and_extent): Likewise.
15645 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
15646 (indirect_refs_may_alias_p): Likewise.
15647 (stmt_kills_ref_p_1): Likewise.
15648
7769bb64
VP
156492013-05-03 Vidya Praveen <vidyapraveen@arm.com>
15650
15651 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
15652
1d0c8e5c
VP
156532013-05-03 Vidya Praveen <vidyapraveen@arm.com>
15654
15655 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
15656 scalar form of FABD instruction.
15657
f15feaf9
VM
156582013-05-02 Vladimir Makarov <vmakarov@redhat.com>
15659
15660 * lra-constraints.c (process_alt_operands): Add checking alt
15661 number to choose the best alternative.
15662
d90e76d4
RB
156632013-05-02 Richard Biener <rguenther@suse.de>
15664
15665 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
15666 bitmap and its handling.
15667 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
15668
9f8e7a96
RB
156692013-05-02 Richard Biener <rguenther@suse.de>
15670
15671 PR middle-end/57140
15672 * tree-inline.c (copy_loops): Properly handle removed loops.
15673 (copy_cfg_body): Mark destination loops for fixup if source
15674 loops needed fixup.
15675
f3a81b39
GY
156762013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
15677
15678 PR target/56732
15679 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
15680 generating simple_return for naked functions.
15681
7b920a9a
MJ
156822013-05-02 Martin Jambor <mjambor@suse.cz>
15683
15684 PR middle-end/56988
15685 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
15686 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
15687 flags match.
15688 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
15689 ipa_agg_replacement_value structures.
15690 (known_aggs_to_agg_replacement_list): Likewise.
15691 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
15692 (read_agg_replacement_chain): Likewise.
15693 (ipcp_transform_function): Also check that by_ref flags match.
15694
2c41c19d
RB
156952013-05-02 Richard Biener <rguenther@suse.de>
15696
15697 * graphds.h (struct graph): Add obstack member.
15698 * graphds.c (new_graph): Initialize obstack and allocate
15699 vertices from it.
15700 (add_edge): Allocate edge from the obstack.
3c21604f 15701 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 15702
8b47039c
TJ
157032013-05-02 Teresa Johnson <tejohnson@google.com>
15704
15705 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
15706 divides.
15707 * cfg.c (update_bb_profile_for_threading): Ditto.
15708 * tree-inline.c (copy_bb): Ditto.
15709 (copy_edges_for_bb): Ditto.
15710 (initialize_cfun): Ditto.
15711 (copy_cfg_body): Ditto.
15712 (expand_call_inline): Ditto.
15713 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
15714 (estimate_node_size_and_time): Ditto.
15715 (inline_merge_summary): Ditto.
15716 * cgraphclones.c (cgraph_clone_edge): Ditto.
15717 (cgraph_clone_node): Ditto.
15718 * sched-rgn.c (compute_dom_prob_ps): Ditto.
15719 (compute_trg_info): Ditto.
15720
da65928c
IB
157212013-05-02 Ian Bolton <ian.bolton@arm.com>
15722
15723 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
15724 S reg when fp attribute set.
15725 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
15726
add3c965
IB
157272013-05-02 Ian Bolton <ian.bolton@arm.com>
15728
15729 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
15730 New pattern.
15731 (*and_one_cmplsi3_compare0_uxtw): Likewise.
15732 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
15733 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
15734
fdd43ac4
RB
157352013-05-02 Richard Biener <rguenther@suse.de>
15736
15737 * tree-scalar-evolution.c (scev_info_hasher): Remove.
15738 (struct instantiate_cache_entry): New type.
15739 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
15740 (struct instantiate_cache_type): New type.
15741 (set_instantiated_value, get_instantiated_value): Remove.
15742 (get_instantiated_value_entry): New function.
15743 (instantiate_scev_name): Use the new cache and adjust.
15744 (instantiate_scev_poly): Adjust.
15745 (instantiate_scev_binary): Likewise.
15746 (instantiate_array_ref): Likewise.
15747 (instantiate_scev_convert): Likewise.
15748 (instantiate_scev_not): Likewise.
15749 (instantiate_scev_3): Likewise.
15750 (instantiate_scev_2): Likewise.
15751 (instantiate_scev_r): Likewise.
15752 (instantiate_scev): Likewise.
15753 (resolve_mixers): Likewise.
15754
36ff9dfb
VM
157552013-05-01 Vladimir Makarov <vmakarov@redhat.com>
15756
15757 PR target/57091
15758 * lra-constraints.c (best_small_class_operands_num): Remove.
15759 (process_alt_operands): Remove small_class_operands_num. Take
15760 small classes operands into losers and only if the operand is not
15761 matched. Modify debugging output.
15762 (curr_insn_transform): Remove best_small_class_operands_num.
15763 Print insn name.
15764
36054fab
JG
157652013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15766
15767 * config/aarch64/aarch64-builtins.c
15768 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
15769 * config/aarch64/aarch64-simd-builtins.def
15770 (reduc_splus_): Add new modes.
15771 (reduc_uplus_): New.
15772 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
15773 (reduc_uplus_v4sf): Likewise.
15774 (reduc_splus_v4sf): Likewise.
15775 (aarch64_addv<mode>): Likewise.
15776 (reduc_uplus_<mode>): Likewise.
15777 (reduc_splus_<mode>): Likewise.
15778 (aarch64_addvv2di): Likewise.
15779 (reduc_uplus_v2di): Likewise.
15780 (reduc_splus_v2di): Likewise.
15781 (aarch64_addvv2si): Likewise.
15782 (reduc_uplus_v2si): Likewise.
15783 (reduc_splus_v2si): Likewise.
15784 (reduc_<sur>plus_<mode>): New.
15785 (reduc_<sur>plus_v2di): Likewise.
15786 (reduc_<sur>plus_v2si): Likewise.
15787 (reduc_<sur>plus_v4sf): Likewise.
15788 (aarch64_addpv4sf): Likewise.
15789 * config/aarch64/arm_neon.h
15790 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
15791 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
15792 add UNSPEC_SADDV, UNSPEC_UADDV.
15793 (SUADDV): New.
15794 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
15795
6dce23a8
JG
157962013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15797
15798 * config/aarch64/arm_neon.h
15799 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
15800
1598945b
JG
158012013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15802
15803 * config/aarch64/aarch64-builtins
15804 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
15805
998eaf97
JG
158062013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15807
15808 * config/aarch64/aarch64-simd-builtins.def
15809 (reduc_smax_): New.
15810 (reduc_smin_): Likewise.
15811 (reduc_umax_): Likewise.
15812 (reduc_umin_): Likewise.
15813 (reduc_smax_nan_): Likewise.
15814 (reduc_smin_nan_): Likewise.
15815 (fmax): Remove.
15816 (fmin): Likewise.
15817 (smax): Update for V2SF, V4SF and V2DF modes.
15818 (smin): Likewise.
15819 (smax_nan): New.
15820 (smin_nan): Likewise.
15821 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
15822 (<su><maxmin><mode>3): ...This, refactor.
15823 (s<maxmin><mode>3): New.
15824 (<maxmin_uns><mode>3): Likewise.
15825 (reduc_<maxmin_uns>_<mode>): Refactor.
15826 (reduc_<maxmin_uns>_v4sf): Likewise.
15827 (reduc_<maxmin_uns>_v2si): Likewise.
15828 (aarch64_<fmaxmin><mode>: Remove.
15829 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
15830 new builtin names.
15831 (vmin<q>_f<32,64>): Likewise.
15832 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
15833 (FMAXMIN): New.
15834 (su): Add mappings for smax, smin, umax, umin.
15835 (maxmin): New.
15836 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
15837 (FMAXMIN): Rename as...
15838 (FMAXMIN_UNS): ...This.
15839 (maxminv): Remove.
15840 (fmaxminv): Likewise.
15841 (fmaxmin): Likewise.
15842 (maxmin_uns): New.
15843 (maxmin_uns_op): Likewise.
15844
bd11644e
JG
158452013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15846
15847 * config/aarch64/arm_neon.h
15848 (vac<ge, gt><sd>_f<32, 64>): Rename to...
15849 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
15850 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
15851
75dd5ace
JG
158522013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15853
15854 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
15855 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
15856
7c19979f
JG
158572013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15858
15859 * config/aarch64/aarch64-simd.md
15860 (vcond<mode>_internal): Handle special cases for constant masks.
15861 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
15862 (vcondu<mode><mode>): Likewise.
15863 (vcond<v_cmp_result><mode>): New.
15864
bb60efd9
JG
158652013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15866
15867 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
15868 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
15869 * config/aarch64/aarch64-simd-builtins.def
15870 (cmeq): Update to BUILTIN_VALLDI.
15871 (cmgt): Likewise.
15872 (cmge): Likewise.
15873 (cmle): Likewise.
15874 (cmlt): Likewise.
15875 * config/aarch64/arm_neon.h
15876 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
15877 to builtins or C as appropriate.
15878
889b9412
JG
158792013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15880
15881 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
15882 (cmgeu): ...This.
15883 (cmhi): Rename to...
15884 (cmgtu): ...This.
15885 * config/aarch64/aarch64-simd.md
15886 (simd_mode): Add SF.
15887 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
15888 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
15889 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
15890 (cstore<mode>_neg): ...This.
15891 * config/aarch64/iterators.md
15892 (VALLF): new.
15893 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
15894 (COMPARISONS): New.
15895 (UCOMPARISONS): Likewise.
15896 (optab): Add missing comparisons.
15897 (n_optab): New.
15898 (cmp_1): Likewise.
15899 (cmp_2): Likewise.
15900 (CMP): Likewise.
15901 (cmp): Remove.
15902 (VCMP_S): Likewise.
15903 (VCMP_U): Likewise.
15904 (V_cmp_result): Add DF, SF modes.
15905 (v_cmp_result): Likewise.
15906 (v): Likewise.
15907 (vmtype): Likewise.
15908 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
15909
0a7dbb76
GY
159102013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
15911
15912 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
15913 define_insn to define_insn_and_split.
15914 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
15915 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
15916 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
15917 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
15918 (thumb2_negscc): Likewise.
15919
fb614ca6
GY
159202013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
15921
15922 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
15923
9e64a0bf
GY
159242013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
15925
15926 * config/arm/thumb2.md: Remove trailing whitespaces.
15927
d6b28156
RS
159282013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15929
15930 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
15931 Use gen_int_mode rather than GEN_INT.
15932
f91674c3
L
159332013-04-30 H.J. Lu <hongjiu.lu@intel.com>
15934
b0dec607 15935 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
15936 debug_gimple_stmt.
15937
3551257c
RB
159382013-04-30 Richard Biener <rguenther@suse.de>
15939
15940 PR middle-end/57122
3c21604f 15941 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 15942
4c1aff1c
RB
159432013-04-30 Richard Biener <rguenther@suse.de>
15944
15945 PR middle-end/57107
15946 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
15947
54b8379a
AB
159482013-04-30 Andrey Belevantsev <abel@ispras.ru>
15949
15950 PR rtl-optimization/56957
15951 PR rtl-optimization/57105
54b8379a
AB
15952 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
15953 variable. Use just INSN_UID for determining whether an insn
15954 should be only disconnected from the insn stream.
15955 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
15956
abc27962
JJ
159572013-04-30 Jakub Jelinek <jakub@redhat.com>
15958
15959 PR tree-optimization/57104
15960 * tsan.c (instrument_expr): Don't instrument accesses to
15961 DECL_HARD_REGISTER VAR_DECLs.
15962
0fc822d0
RB
159632013-04-30 Richard Biener <rguenther@suse.de>
15964
15965 * function.h (loops_for_fn): New inline function.
15966 (set_loops_for_fn): Likewise.
15967 * cfgloop.h (place_new_loop): Add struct function parameter.
15968 (get_loop): Likewise.
15969 (get_loops): Likewise.
15970 (number_of_loops): Likewise.
15971 (fel_next): Adjust.
15972 (fel_init): Likewise.
15973 * cfg.c (get_loop_copy): Adjust.
15974 * cfgloop.c (flow_loops_dump): Likewise.
15975 (record_loop_exits): Likewise.
15976 (verify_loop_structure): Likewise.
15977 * cfgloopanal.c (mark_irreducible_loops): Likewise.
15978 (estimate_reg_pressure_cost): Likewise.
15979 (mark_loop_exit_edges): Likewise.
15980 * cfgloopmanip.c (place_new_loop): Likewise.
15981 (add_loop): Likewise.
15982 (duplicate_loop): Likewise.
15983 * graph.c (draw_cfg_nodes): Likewise.
15984 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
15985 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
15986 (extract_affine_chrec): Likewise.
15987 (build_scop_iteration_domain): Likewise.
15988 * graphite.c (graphite_initialize): Likewise.
15989 * ira-build.c (create_loop_tree_nodes): Likewise.
15990 (more_one_region_p): Likewise.
15991 (rebuild_regno_allocno_maps): Likewise.
15992 (mark_loops_for_removal): Likewise.
15993 (mark_all_loops_for_removal): Likewise.
15994 (remove_unnecessary_regions): Likewise.
15995 (ira_build): Likewise.
15996 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
15997 * loop-init.c (fix_loop_structure): Likewise.
15998 (gate_rtl_move_loop_invariants): Likewise.
15999 (gate_rtl_unswitch): Likewise.
16000 (gate_rtl_unroll_and_peel_loops): Likewise.
16001 (rtl_doloop): Likewise.
16002 * lto-streamer-in.c (input_cfg): Likewise.
16003 * lto-streamer-out.c (output_cfg): Likewise.
16004 * modulo-sched.c (sms_schedule): Likewise.
16005 * predict.c (tree_estimate_probability): Likewise.
16006 (tree_estimate_probability_driver): Likewise.
16007 (estimate_loops): Likewise.
16008 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
16009 (move_sese_region_to_fn): Likewise.
16010 (debug_loop_num): Likewise.
16011 * tree-chrec.c (chrec_evaluate): Likewise.
16012 (hide_evolution_in_other_loops_than_loop): Likewise.
16013 (chrec_component_in_loop_num): Likewise.
16014 (reset_evolution_in_loop): Likewise.
16015 (evolution_function_is_invariant_rec_p): Likewise.
16016 * tree-if-conv.c (main_tree_if_conversion): Likewise.
16017 * tree-inline.c (copy_loops): Likewise.
16018 (copy_cfg_body): Likewise.
16019 (tree_function_versioning): Likewise.
16020 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
16021 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16022 Likewise.
16023 (add_to_evolution_1): Likewise.
16024 (scev_const_prop): Likewise.
16025 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
16026 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
16027 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
16028 (tree_ssa_lim_initialize): Likewise.
16029 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
16030 (verify_loop_closed_ssa): Likewise.
16031 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
16032 (tree_ssa_loop_im): Likewise.
16033 (tree_ssa_loop_unswitch): Likewise.
16034 (tree_vectorize): Likewise.
16035 (check_data_deps): Likewise.
16036 (tree_ssa_loop_ivcanon): Likewise.
16037 (tree_ssa_loop_bounds): Likewise.
16038 (tree_complete_unroll): Likewise.
16039 (tree_complete_unroll_inner): Likewise.
16040 (tree_parallelize_loops): Likewise.
16041 (tree_ssa_loop_prefetch): Likewise.
16042 (tree_ssa_loop_ivopts): Likewise.
16043 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
16044 * tree-vectorizer.c (vectorize_loops): Likewise.
16045
37953bd3
MF
160462013-04-29 Mike Frysinger <vapier@gentoo.org>
16047
16048 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
16049 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
16050 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
16051 with EABI_LINK_SPEC.
16052
f9ed28db
UB
160532013-04-29 Uros Bizjak <ubizjak@gmail.com>
16054
16055 PR target/44578
16056 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
16057 alternative.
16058
deca73f5
VM
160592013-04-29 Vladimir Makarov <vmakarov@redhat.com>
16060
16061 PR target/57097
37953bd3 16062 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
16063 using memory for pseudos. Print cost dump for alternatives.
16064 Modify cost values for conflicts with early clobbers.
16065 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
16066
fdca7d03
UB
160672013-04-29 Uros Bizjak <ubizjak@gmail.com>
16068
16069 PR target/57098
16070 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
16071
0b064172
IB
160722013-04-29 Ian Bolton <ian.bolton@arm.com>
16073
16074 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
16075 from/to S register.
16076 (movdi_aarch64): Support LDR/STR from/to D register.
16077
473cec55
IB
160782013-04-29 Ian Bolton <ian.bolton@arm.com>
16079
16080 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
16081 or higher by default.
16082
a6f30e66
RB
160832013-04-29 Richard Biener <rguenther@suse.de>
16084
16085 PR middle-end/57075
16086 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
16087 even if not adding abnormal edges for calls that can make
16088 abnormal gotos.
16089
0c2b2040
RB
160902013-04-29 Richard Biener <rguenther@suse.de>
16091
16092 PR middle-end/57103
16093 * tree-cfg.c (move_stmt_op): Fix condition under which to update
16094 TREE_BLOCK.
16095 (move_stmt_r): Remove redundant checking.
16096
f41f80f9
TJ
160972013-04-29 Teresa Johnson <tejohnson@google.com>
16098
16099 PR bootstrap/57077
16100 * basic-block.h (apply_scale): New function.
16101 (apply_probability): Use apply_scale.
16102 * gimple-streamer-in.c (input_bb): Ditto.
16103 * lto-streamer-in.c (input_cfg): Ditto.
16104 * lto-cgraph.c (merge_profile_summaries): Ditto.
16105 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 16106 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
16107 (copy_edges_for_bb): Ditto.
16108 (copy_cfg_body): Ditto.
16109
315bbd2e
TV
161102013-04-29 Tom de Vries <tom@codesourcery.com>
16111
16112 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
16113 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
16114 (tail_merge_optimize): Handle current_loops == NULL.
16115
ebbd90d8
JL
161162013-04-26 Jeff Law <law@redhat.com>
16117
16118 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
16119 (simplify_cond_using_ranges): Generalize code to simplify
16120 COND_EXPRs where one argument is a constant and the other
16121 is an SSA_NAME created by an integral type conversion.
16122
8b9b57eb
KT
161232013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16124
16125 * config/arm/arm.md (store_minmaxsi): Use only when
16126 optimize_insn_for_size_p.
16127
9498e5dc
CB
161282013-04-29 Christian Bruel <christian.bruel@st.com>
16129
16130 PR target/57108
16131 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
16132
6093bc06
RB
161332013-04-29 Richard Biener <rguenther@suse.de>
16134
16135 PR middle-end/57089
fdca7d03
UB
16136 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
16137 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
16138 (expand_omp_for_generic): Properly add loops.
16139 (expand_omp_for_static_nochunk): Likewise.
16140 (expand_omp_for_static_chunk): Likewise.
16141 (expand_omp_for): For the degenerate case fixup loops.
16142 (expand_omp_sections): Fix default bb placement in loops.
16143 (expand_omp_atomic_pipeline): Properly add loops.
16144
84aacbfd
KT
161452013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16146
16147 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
16148
8dee4479
TV
161492013-04-29 Tom de Vries <tom@codesourcery.com>
16150
16151 * tree-ssa-tail-merge.c: Update header comment.
16152
47934dc4
JG
161532013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16154
16155 * config/aarch64/arm_neon.h
16156 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
16157 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
16158 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
16159 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
16160 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
16161 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
16162 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
16163 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
16164
384be29f
JG
161652013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16166
16167 * config/aarch64/aarch64-simd.md
16168 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
16169 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
16170 fix_trunc, fixuns_trunc.
16171 (ftrunc<VDQF:mode>2): New.
16172 * config/aarch64/iterators.md (optab): Add fix, fixuns.
16173 (fix_trunc_optab): New.
16174
0386b123
JG
161752013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16176
16177 * config/aarch64/aarch64-builtins.c
16178 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
16179 iceilf, lround, iroundf.
16180
00fcb892
UB
161812013-04-29 Uros Bizjak <ubizjak@gmail.com>
16182
16183 PR target/54349
16184 * config/i386/i386.h (enum ix86_tune_indices)
16185 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
16186 New, split from X86_TUNE_INTER_UNIT_MOVES.
16187 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
16188 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
16189 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
16190 (TARGET_INTER_UNIT_MOVES): Remove.
16191 * config/i386/i386.c (initial_ix86_tune_features): Update.
16192 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
16193 (ix86_expand_convert_uns_didf_sse): Use
16194 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
16195 (ix86_expand_vector_init_one_nonzero): Ditto.
16196 (ix86_expand_vector_init_interleave): Ditto.
16197 (inline_secondary_memory_needed): Return true for moves from SSE class
16198 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
16199 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
16200 * config/i386/constraints.md (Yi, Ym): Depend on
16201 TARGET_INTER_UNIT_MOVES_TO_VEC.
16202 (Yj, Yn): New constraints.
16203 * config/i386/i386.md (*movdi_internal): Change constraints of
16204 operand 1 from Yi to Yj and from Ym to Yn.
16205 (*movsi_internal): Ditto.
16206 (*movdf_internal): Ditto.
16207 (*movsf_internal): Ditto.
16208 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
16209 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
16210 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
16211 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
16212 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
16213 * config/i386/sse.md (movdi_to_sse): Ditto.
16214 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
16215 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
16216 TARGET_INTER_UNIT_MOVES.
16217 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
16218 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
16219 instead of TARGET_INTER_UNIT_MOVES.
16220 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
16221 operand 1 from Yi to Yj and from Ym to Yn.
16222
4c871069
JG
162232013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16224
16225 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
16226 (float_truncate_hi_): Likewise.
16227 (float_extend_lo_): Likewise.
16228 (float_truncate_lo_): Likewise.
16229 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
16230 (aarch64_float_extend_lo_v2df): Likewise.
16231 (vec_unpacks_hi_v4sf): Likewise.
16232 (aarch64_float_truncate_lo_v2sf): Likewise.
16233 (aarch64_float_truncate_hi_v4sf): Likewise.
16234 (vec_pack_trunc_v2df): Likewise.
16235 (vec_pack_trunc_df): Likewise.
16236
1709ff9b
JG
162372013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16238
16239 * config/aarch64/aarch64-builtins.c
16240 (aarch64_fold_builtin): Fold float conversions.
16241 * config/aarch64/aarch64-simd-builtins.def
16242 (floatv2si, floatv4si, floatv2di): New.
16243 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
16244 * config/aarch64/aarch64-simd.md
16245 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
16246 * config/aarch64/iterators.md (FLOATUORS): New.
16247 (optab): Add float, floatuns.
16248 (su_optab): Likewise.
16249
ce966824
JG
162502013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16251
16252 * config/aarch64/aarch64-builtins.c
16253 (aarch64_builtin_vectorized_function): Use new names for
16254 fcvt builtins.
16255 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
16256 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
16257 (fcvtzu): Split as...
16258 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
16259 (fcvtas): Split as...
16260 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
16261 (fcvtau): Split as...
16262 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
16263 (fcvtps): Split as...
16264 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
16265 (fcvtpu): Split as...
16266 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
16267 (fcvtms): Split as...
16268 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
16269 (fcvtmu): Split as...
16270 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
16271 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
16272 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
16273 (lfrintnusf, lfrintnudf): Likewise.
16274 * config/aarch64/aarch64-simd.md
16275 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
16276 define_insn.
16277 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
16278 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
16279 (fcvt_pattern): Likewise.
16280
b9de24fe
JG
162812013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16282
16283 * config/aarch64/aarch64-simd.md
16284 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
16285 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
16286
77a205be
JG
162872013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16288
16289 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
16290 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
16291 (vrnd<a,m,n,p>_f32): Implement using builtins.
16292 (vrnd<i,x><q>_f<32, 64>): New.
16293
0659ce6f
JG
162942013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16295
16296 * config/aarch64/aarch64-builtins.c
16297 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
16298 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
16299 (frintz): Rename to...
16300 (btrunc): ...this.
16301 (frintp): Rename to...
16302 (ceil): ...this.
16303 (frintm): Rename to...
16304 (floor): ...this.
16305 (frinti): Rename to...
16306 (nearbyint): ...this.
16307 (frintx): Rename to...
16308 (rint): ...this.
16309 (frinta): Rename to...
16310 (round): ...this.
16311 * config/aarch64/aarch64-simd.md
16312 (aarch64_frint<frint_suffix><mode>): Delete.
16313 (<frint_pattern><mode>2): Convert to insn.
16314 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
16315 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
16316 (frint_pattern): Likewise.
16317 (frint_suffix): Likewise.
16318
ea78906a
RB
163192013-04-29 Richard Biener <rguenther@suse.de>
16320
16321 PR tree-optimization/57081
16322 * loop-init.c: Include tree-flow.h.
16323 (loop_optimizer_finalize): Free number of iteration estimates.
16324 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
16325
baee1763
JJ
163262013-04-29 Jakub Jelinek <jakub@redhat.com>
16327
94dc5332
JJ
16328 PR tree-optimization/57083
16329 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
16330 non-singleton shift count range, zero extend low_bound for uns case.
16331
baee1763
JJ
16332 * config/i386/predicates.md (general_vector_operand): New predicate.
16333 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
16334 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
16335 if they aren't nonimmediate operands. If their original values
16336 satisfy const_vector_equal_evenodd_p, don't shift them.
16337 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
16338 predicates. For the SSE4.1 case force operands[{1,2}] into registers
16339 if not nonimmediate_operand.
16340 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
16341 instead of register_operand.
16342 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
16343
a9073727 163442013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
16345
16346 * stor-layout.c (finalize_size_functions): Allocate a structure and
16347 reset cfun before dumping the functions.
16348
ba8011e6
JJ
163492013-04-27 Jakub Jelinek <jakub@redhat.com>
16350
d6fde69e
JJ
16351 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
16352
ba8011e6
JJ
16353 PR target/56866
16354 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
16355 use xop_pmacsdqh if uns_p.
16356 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
16357 the immediate rotate count.
16358
2c62cbaa
VM
163592013-04-26 Vladimir Makarov <vmakarov@redhat.com>
16360
16361 * rtl.h (struct rtx_def): Add comment for field jump.
16362 (LRA_SUBREG_P): New macro.
16363 * recog.c (register_operand): Check LRA_SUBREG_P.
16364 * lra.c (lra): Add note at the end of RTL code. Align non-empty
16365 stack frame.
16366 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
16367 (lra_final_code_change): Skip subreg change for operators.
16368 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
16369 if there are no operand changes.
16370 * lra-constraints.c (curr_insn_set): New.
16371 (match_reload): Set LRA_SUBREG_P.
16372 (emit_spill_move): Ditto.
16373 (check_and_process_move): Use curr_insn_set. Process only single
16374 set insns. Don't initialize sec_mem_p and change_p.
16375 (simplify_operand_subreg): Use LRA_SUBREG_P.
16376 (reg_in_class_p): New function.
16377 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
16378 of #ifdef. Add code to remove cycling.
16379 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
16380 non-null disp. Reload inner instead of disp when base and index
16381 are null. Try to put lo_sum into register.
16382 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
16383 (check_and_process_move): Move code for move cost check to
16384 simple_move_p. Remove equiv_substitution.
16385 (simple_move_p): New function.
16386 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
16387 curr_insn_set. Call check_and_process_move only for single set
16388 insns. Use the new function. Move call of check_and_process_move
16389 after operand equiv substitution and address process.
16390
e7d764f3
JJ
163912013-04-26 Jakub Jelinek <jakub@redhat.com>
16392
16393 PR go/57045
16394 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
16395 with nonlocal goto receivers or returns twice calls, ignore
16396 unininitialized values from abnormal edges to nl goto receiver
16397 or returns twice call.
16398
41e10689
JJ
163992013-04-26 Jakub Jelinek <jakub@redhat.com>
16400
16401 PR tree-optimization/57051
16402 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
16403 and VEC_RSHIFT_EXPR if shift count is a multiple of element
16404 bitsize.
16405
d7ed20db
RB
164062013-04-26 Richard Biener <rguenther@suse.de>
16407
16408 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
16409 (expand_omp_taskreg): Likewise. Mark loops for fixup.
16410 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
16411 (fixup_loop_arrays_after_move): New function.
16412 (move_sese_region_to_fn): Properly outline the loop tree parts
16413 of the SESE region.
16414
df93505e
UB
164152013-04-26 Uros Bizjak <ubizjak@gmail.com>
16416
16417 * config/i386/i386.md (type, unit): Fix long lines.
16418
dd366ec3
RB
164192013-04-26 Richard Biener <rguenther@suse.de>
16420
16421 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
16422 (lto-streamer-out.o): Likewise.
16423 * cfgloop.c (init_loops_structure): Export, add struct function
16424 argument and adjust.
16425 (flow_loops_find): Adjust.
16426 * cfgloop.h (enum loop_estimation): Add EST_LAST.
16427 (init_loops_structure): Declare.
16428 * lto-streamer-in.c: Include cfgloop.h.
16429 (input_cfg): Input the loop tree.
16430 * lto-streamer-out.c: Include cfgloop.h.
16431 (output_cfg): Output the loop tree.
16432 (output_struct_function_base): Do not drop PROP_loops.
16433
a9e0d843
RB
164342013-03-26 Richard Biener <rguenther@suse.de>
16435
16436 * tree-cfg.c (execute_build_cfg): Build the loop tree.
16437 (pass_build_cfg): Provide PROP_loops.
16438 (move_sese_region_to_fn): Remove loops that are outlined into fn
16439 for now.
16440 * tree-inline.c: Include cfgloop.h.
16441 (initialize_cfun): Do not drop PROP_loops.
16442 (copy_loops): New function.
16443 (copy_cfg_body): Copy loop structure.
16444 (tree_function_versioning): Initialize destination loop tree.
16445 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
16446 (pass_parallelize_loops): Do IL verification.
16447 * loop-init.c (loop_optimizer_init): Fixup loops if required.
16448 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
16449 the CFG make sure we fixup loops as well.
16450 * tree-ssa-tail-merge.c: Include cfgloop.h.
16451 (replace_block_by): When merging loop latches mark loops for fixup.
16452 * lto-streamer-out.c (output_struct_function_base): Drop
16453 PROP_loops for now.
16454 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
16455 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
16456 * ipa-split.c: Include cfgloop.h.
16457 (split_function): Add the new return block to the loop tree root.
16458 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
16459 whether we have removed the forwarder block.
16460 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
16461 * cfgloop.h (place_new_loop): Declare.
16462 * cfgloopmanip.c (place_new_loop): Export.
16463 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
16464 (tree-switch-conversion.o): Likewise.
16465 (tree-complex.o): Likewise.
16466 (tree-inline.o): Likewise.
16467 (tree-ssa-tailmerge.o): Likewise.
16468 (ipa-split.o): Likewise.
16469 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
16470 (tree-ssa-copy.o): Likewise.
16471 * tree-switch-conversion.c: Include cfgloop.h
16472 (process_switch): If we emit a bit-test cascade, schedule loops
16473 for fixup.
16474 * tree-complex.c: Include cfgloop.h.
16475 (expand_complex_div_wide): Properly add new basic-blocks to loops.
16476 * asan.c: Include cfgloop.h.
16477 (create_cond_insert_point): Properly add new basic-blocks to
16478 loops, schedule loop fixup.
16479 * cfgloop.c (verify_loop_structure): Check that looks are not
16480 marked for fixup.
16481 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
16482 to loops.
16483 (expand_omp_for_generic): Likewise.
16484 (expand_omp_sections): Likewise.
16485 (expand_omp_atomic_pipeline): Schedule loops for fixup.
16486 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
16487 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
16488 is initialized, not when loops are present.
16489 * tree-parloops.c (parallelize_loops): Remove checking here.
16490 * passes.c (init_optimization_passes): Schedule a copy-propagation
16491 pass before complete unrolling of inner loops.
16492
e78e8a0b
JJ
164932013-04-26 Jakub Jelinek <jakub@redhat.com>
16494
a2e836b2
JJ
16495 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
16496 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
16497 (colorize_init): Add argument to _WIN32 version.
16498 * toplev.c: Include diagnostic-color.h.
16499 (process_options): Default to -fdiagnostics-color=auto if
16500 GCC_COLORS env var is in the environment.
16501 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
16502 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
16503 env var is in the environment, the default is auto rather than never.
a2e836b2 16504
e78e8a0b
JJ
16505 * diagnostic.h (file_name_as_prefix): Add context argument.
16506 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
16507 the string as locus.
16508 * langhooks.c (lhd_print_error_function): Adjust caller.
16509
013e5ef9
LC
165102013-04-25 Lawrence Crowl <crowl@google.com>
16511
16512 * var-tracking.c (shared_hash_def::htab):
16513 Change type to hash_table. Update dependent calls and types.
16514
4a8fb1a1
LC
165152013-04-25 Lawrence Crowl <crowl@google.com>
16516
16517 * Makefile.in: Update as needed below.
16518
16519 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
16520 Move declaration to after the type's method definitons.
16521
16522 * attribs.c (htab_t scoped_attributes::attribute_hash):
16523 Change type to hash_table. Update dependent calls and types.
16524
16525 * bitmap.c (htab_t bitmap_desc_hash):
16526 Change type to hash_table. Update dependent calls and types.
16527
16528 * cselib.c (htab_t cselib_hash_table):
16529 Change type to hash_table. Update dependent calls and types.
16530
16531 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
16532 (hash_string_slot_node): Move implementation into lto-streamer.h
16533 struct string_slot_hasher.
16534 (eq_string_slot_node): Likewise.
16535
16536 * data-streamer-out.c: Update output_block::string_hash_table
16537 dependent calls and types.
16538
16539 * dwarf2cfi.c (htab_t trace_index):
16540 Change type to hash_table. Update dependent calls and types.
16541
16542 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
16543 Change type to hash_table. Update dependent calls and types.
16544 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
16545 (htab_t optimize_external_refs::map): Likewise.
16546 (htab_t output_comp_unit::extern_map): Likewise.
16547 (htab_t output_comdat_type_unit::extern_map): Likewise.
16548 (htab_t output_macinfo::macinfo_htab): Likewise.
16549 (htab_t optimize_location_lists::htab): Likewise.
16550 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
16551
16552 * except.c (htab_t ehspec_hash_type):
16553 Change type to hash_table. Update dependent calls and types.
16554 (assign_filter_values::ttypes): Likewise.
16555 (assign_filter_values::ehspec): Likewise.
16556 (sjlj_assign_call_site_values::ar_hash): Likewise.
16557 (convert_to_eh_region_ranges::ar_hash): Likewise.
16558
16559 * gcse.c (htab_t pre_ldst_table):
16560 Change type to hash_table. Update dependent calls and types.
16561
16562 * ggc-common.c (htab_t saving_htab):
16563 Change type to hash_table. Update dependent calls and types.
16564 (htab_t loc_hash): Likewise.
16565 (htab_t ptr_hash): Likewise.
16566 (call_count): Rename ggc_call_count.
16567 (call_alloc): Rename ggc_call_alloc.
16568 (loc_descriptor): Rename make_loc_descriptor.
16569 (add_statistics): Rename ggc_add_statistics.
16570
16571 * ggc-common.c (saving_htab):
16572 Change type to hash_table. Update dependent calls and types.
16573
16574 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
16575 (push_gimplify_context): Likewise.
16576 (pop_gimplify_context): Likewise.
16577 (struct gimple_temp_hash_elt): Added.
16578 (struct gimplify_hasher): Likewise.
16579 (struct gimplify_ctx.temp_htab):
16580 Change type to hash_table. Update dependent calls and types.
16581
16582 * gimple-fold.c: Include gimplify-ctx.h.
16583
16584 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
16585 Change type to hash_table. Update dependent calls and types.
16586 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
16587 avoid potential global name collision.
16588
16589 * gimplify.c: Include gimplify-ctx.h.
16590 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
16591 (htab_t gimplify_ctx::temp_htab):
16592 Update dependent calls and types for new type hash_table.
16593 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
16594 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
16595
16596 * gimplify-ctx.h: New.
16597 (struct gimple_temp_hash_elt): Move from gimplify.c.
16598 (class gimplify_hasher): New.
16599 (struct gimplify_ctx): Move from gimple.h.
16600 (htab_t gimplify_ctx::temp_htab):
16601 Change type to hash_table. Update dependent calls and types.
16602
16603 * graphite-clast-to-gimple.c: Include graphite-htab.h.
16604 (htab_t ivs_params::newivs_index):
16605 Change type to hash_table. Update dependent calls and types.
16606 (htab_t ivs_params::params_index): Likewise.
16607 (htab_t print_generated_program::params_index): Likewise.
16608 (htab_t gloog::newivs_index): Likewise.
16609 (htab_t gloog::params_index): Likewise.
16610
16611 * graphite.c: Include graphite-htab.h.
16612 4htab_t graphite_transform_loops::bb_pbb_mapping):
16613 Change type to hash_table. Update dependent calls and types.
16614
16615 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
16616 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
16617 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
16618
16619 * graphite-dependences.c: Include graphite-htab.h.
16620 (loop_is_parallel_p): Change hash table type of parameter.
16621
16622 * graphite-htab.h: New.
16623 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
16624 (extern find_pbb_via_hash): Move from graphite-poly.h.
16625 (extern loop_is_parallel_p): Move from graphite-poly.h.
16626 (extern get_loop_body_pbbs): Move from graphite-poly.h.
16627
16628 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
16629 (extern loop_is_parallel_p): Move to graphite-htab.h.
16630 (extern get_loop_body_pbbs): Move to graphite-htab.h.
16631
16632 * haifa-sched.c (htab_t delay_htab):
16633 Change type to hash_table. Update dependent calls and types.
16634 (htab_t delay_htab_i2): Likewise.
16635
16636 * ira-color.c (htab_t allocno_hard_regs_htab):
16637 Change type to hash_table. Update dependent calls and types.
16638
16639 * ira-costs.c (htab_t cost_classes_htab):
16640 Change type to hash_table. Update dependent calls and types.
16641
16642 * loop-invariant.c (htab_t merge_identical_invariants::eq):
16643 Change type to hash_table. Update dependent calls and types.
16644
16645 * loop-iv.c (htab_t bivs):
16646 Change type to hash_table. Update dependent calls and types.
16647
16648 * loop-unroll.c (htab_t opt_info::insns_to_split):
16649 Change type to hash_table. Update dependent calls and types.
16650 (htab_t opt_info::insns_with_var_to_expand): Likewise.
16651
16652 * lto-streamer.h (struct string_slot): Move from data-streamer.h
16653 (struct string_slot_hasher): New.
16654 (htab_t output_block::string_hash_table):
16655 Change type to hash_table. Update dependent calls and types.
16656
16657 * lto-streamer-in.c (freeing_string_slot_hasher): New.
16658 (htab_t file_name_hash_table):
16659 Change type to hash_table. Update dependent calls and types.
16660
16661 * lto-streamer-out.c: Update output_block::string_hash_table dependent
16662 calls and types.
16663
16664 * lto-streamer.c (htab_t tree_htab):
16665 Change type to hash_table. Update dependent calls and types.
16666
16667 * omp-low.c: Include gimplify-ctx.h.
16668
16669 * passes.c (htab_t name_to_pass_map):
16670 Change type to hash_table. Update dependent calls and types.
16671 (pass_traverse): Rename to passes_pass_traverse.
16672
16673 * plugin.c (htab_t event_tab):
16674 Change type to hash_table. Update dependent calls and types.
16675
16676 * postreload-gcse.c (htab_t expr_table):
16677 Change type to hash_table. Update dependent calls and types.
16678 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
16679
16680 * sese.c (debug_rename_map_1): Make extern.
16681 (htab_t copy_bb_and_scalar_dependences::rename_map):
16682 Change type to hash_table. Update dependent calls and types.
16683
16684 * sese.h (extern debug_rename_map): Move to .c file.
16685
16686 * store-motion.c (htab_t store_motion_mems_table):
16687 Change type to hash_table. Update dependent calls and types.
16688
16689 * trans-mem.c (htab_t tm_new_mem_hash):
16690 Change type to hash_table. Update dependent calls and types.
16691
16692 * tree-browser.c (htab_t TB_up_ht):
16693 Change type to hash_table. Update dependent calls and types.
16694
16695 * tree-cfg.c (htab_t discriminator_per_locus):
16696 Change type to hash_table. Update dependent calls and types.
16697
16698 * tree-complex.c: Include tree-hasher.h
16699 (htab_t complex_variable_components):
16700 Change type to hash_table. Update dependent calls and types.
16701
16702 * tree-eh.c (htab_t finally_tree):
16703 Change type to hash_table. Update dependent calls and types.
16704
16705 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
16706 struct int_tree_hasher.
16707 (extern int_tree_map_eq): Likewise.
16708 (uid_decl_map_hash): Removed.
16709 (extern decl_tree_map_eq): Likewise.
16710
16711 * tree-hasher.h: New.
16712 (struct int_tree_hasher): New.
16713 (typedef int_tree_htab_type): New.
16714
16715 * tree-inline.c: Include gimplify-ctx.h.
16716
16717 * tree-mudflap.c: Include gimplify-ctx.h.
16718
16719 * tree-parloops.c: Include tree-hasher.h.
16720 (htab_t eliminate_local_variables_stmt::decl_address):
16721 Change type to hash_table. Update dependent calls and types.
16722 (htab_t separate_decls_in_region::decl_copies): Likewise.
16723
16724 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
16725 Change type to hash_table. Update dependent calls and types.
16726
16727 * tree-sra.c (candidates):
16728 Change type to hash_table. Update dependent calls and types.
16729
16730 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
16731 in tree-flow.h.
16732 (int_tree_map_hash): Likewise.
16733
16734 * tree-ssa-dom.c (htab_t avail_exprs):
16735 Change type to hash_table. Update dependent calls and types.
16736
16737 * tree-ssa-live.c (var_map_base_init::tree_to_index):
16738 Change type to hash_table. Update dependent calls and types.
16739
16740 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
16741 Change type to hash_table. Update dependent calls and types.
16742
16743 * tree-ssa-phiopt.c (seen_ssa_names):
16744 Change type to hash_table. Update dependent calls and types.
16745
16746 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
16747 Change type to hash_table. Update dependent calls and types.
16748
16749 * tree-ssa-uncprop.c (equiv):
16750 Change type to hash_table. Update dependent calls and types.
16751
c5a44004
JJ
167522013-04-25 Jakub Jelinek <jakub@redhat.com>
16753
16754 PR rtl-optimization/57003
16755 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
16756 call note_stores with kill_clobbered_value callback again after
16757 killing regs_invalidated_by_call.
16758
09962a4a
JG
167592013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16760
16761 * config/aarch64/aarch64-simd.md
16762 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
16763 (aarch64_simd_bsl<mode>): Likewise.
16764 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
16765
ea28bb0b
MP
167662013-04-25 Marek Polacek <polacek@redhat.com>
16767
16768 PR tree-optimization/57066
3c21604f 16769 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 16770
96659611
JG
167712013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
16772
16773 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
16774
9697e620
JG
167752013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16776
16777 * config/aarch64/aarch64-builtins.c
16778 (aarch64_fold_builtin): New.
16779 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
16780 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
16781 * config/aarch64/aarch64-simd-builtins.def (abs): New.
16782 * config/aarch64/arm_neon.h
16783 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
16784
0ac198d3
JG
167852013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16786 Tejas Belagod <tejas.belagod@arm.com>
16787
16788 * config/aarch64/aarch64-builtins.c
16789 (aarch64_gimple_fold_builtin): New.
16790 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
16791 * config/aarch64/aarch64-simd-builtins.def (addv): New.
16792 * config/aarch64/aarch64-simd.md (addpv4sf): New.
16793 (addvv4sf): Update.
16794 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
16795
58cff58c
N
167962013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16797
df93505e 16798 * config/aarch64/aarch64.md
58cff58c
N
16799 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
16800
7e0228bf
N
168012013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16802
16803 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
16804 (*ngcsi_uxtw): New pattern.
16805
5819f96f 168062013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 16807 Julian Brown <julian@codesourcery.com>
5819f96f
KT
16808
16809 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
16810 (TB_DREG): Add T_V4HF.
16811 (v4hf_UP): New macro.
16812 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 16813 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
16814 Handle initialisation of V4HF. Adjust initialisation of reinterpret
16815 built-ins.
df93505e 16816 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
16817 (arm_vector_mode_supported_p): Handle V4HF.
16818 (arm_mangle_map): Handle V4HFmode.
16819 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
16820 * config/arm/arm_neon_builtins.def: Add entries for
16821 vcvtv4hfv4sf, vcvtv4sfv4hf.
16822 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
16823 (neon_vcvtv4hfv4sf): Likewise.
16824 * config/arm/neon-gen.ml: Handle half-precision floating point
16825 features.
16826 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
16827 * config/arm/arm_neon.h: Regenerate.
16828 * config/arm/neon.ml (type elts): Add F16.
16829 (type vectype): Add T_float16x4, T_floatHF.
16830 (type vecmode): Add V4HF.
16831 (type features): Add Requires_FP_bit feature.
16832 (elt_width): Handle F16.
16833 (elt_class): Likewise.
16834 (elt_of_class_width): Likewise.
16835 (mode_of_elt): Refactor.
16836 (type_for_elt): Handle F16, fix error messages.
16837 (vectype_size): Handle T_float16x4.
16838 (vcvt_sh): New function.
16839 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
16840 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
16841 (string_of_mode): Handle V4HF.
16842 * doc/arm-neon-intrinsics.texi: Regenerate.
16843
1ef395e4
JG
168442013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16845
16846 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
16847 format specifier in 'X' case.
16848
41c34e94
AM
168492013-04-25 Alan Modra <amodra@gmail.com>
16850
16851 PR target/57052
16852 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
16853 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
16854 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
16855 Repeat for many other rotate/shift and mask patterns using subregs.
16856 Name lshiftrt insns.
16857 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
16858 on WORDS_BIG_ENDIAN.
16859
b9a7eb5d
AM
168602013-04-25 Alan Modra <amodra@gmail.com>
16861
16862 * config.gcc: Support little-endian powerpc-linux targets.
16863 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
16864 (LINK_OS_LINUX_SPEC): Define.
16865 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
16866 Preserve MASK_LITTLE_ENDIAN.
16867 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
16868 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
16869 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
16870 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
16871 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
16872 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
16873 Correct fp word order for little-endian. Don't shift toc entries
16874 smaller than a word for little-endian.
16875 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
16876 (bswapdi2 splits): Correct low-part subreg for little-endian.
16877 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
16878 low/high where such is correct only for be.
16879 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
16880 little-endian for -mcall-aixdesc.
16881
87f73374
AM
168822013-04-25 Alan Modra <amodra@gmail.com>
16883
16884 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
16885 replace_equiv_address_nv.
16886
cabf91cd
AM
168872013-04-25 Alan Modra <amodra@gmail.com>
16888
16889 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
16890
0ae24cc8
VM
168912013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16892
16893 Revert:
16894 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16895 * rtl.h (struct rtx_def): ...
cabf91cd 16896
77bce07c
VM
168972013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16898
16899 PR rtl-optimizations/57046
16900 * lra-constraints (split_reg): Set up lra_risky_transformations_p
16901 for multi-reg splits.
16902
0db63e7f
L
169032013-04-24 H.J. Lu <hongjiu.lu@intel.com>
16904
16905 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
16906
3362b6b6
SA
169072013-04-24 Sterling Augustine <saugustine@google.com>
16908
16909 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
16910 (comp_dir_string, debug_str_dwo_section): New.
16911 (DEBUG_STR_DWO_SECTION): Rename to ...
16912 (DEBUG_DWO_STR_SECTION): ... this.
16913 (DEBUG_NORM_STR_SECTION): Delete.
16914 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
16915 (DEBUG_STR_DWO_SECTION_FLAGS): New.
16916 (find_AT_string): Move most logic to ...
16917 (find_AT_string_in_table): ... here. New.
16918 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
16919 add_skeleton_AT_string. Delete logic.
16920 (output_skeleton_debug_sections): Remove call to
16921 add_top_level_skeleton_die_attrs.
16922 (add_comp_dir_attribute): Move logic to comp_dir_string.
16923 (dwarf2out_init): Initialize debug_str_dwo_section.
16924 (output_indirect_string): Call find_string_form.
16925 (output_indirect_strings): Rewrite.
16926 (prune_unused_types): Empty skeleton_debug_str_hash.
16927 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
16928 (dwarf2out_finish): Call output_indirect_strings.
16929
e93e18e9
PC
169302013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16931
16932 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
16933
f6ce35ac
VM
169342013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16935
cabf91cd 16936 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
16937 (LRA_SUBREG_P): New macro.
16938 * recog.c (register_operand): Check LRA_SUBREG_P.
16939 * lra.c (lra): Add note at the end of RTL code. Align non-empty
16940 stack frame.
16941 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
16942 (lra_final_code_change): Skip subreg change for operators.
16943 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
16944 if there are no operand changes.
16945 * lra-constraints.c (curr_insn_set): New.
16946 (match_reload): Set LRA_SUBREG_P.
16947 (emit_spill_move): Ditto.
16948 (check_and_process_move): Use curr_insn_set. Process only single
16949 set insns. Don't initialize sec_mem_p and change_p.
16950 (simplify_operand_subreg): Use LRA_SUBREG_P.
16951 (reg_in_class_p): New function.
16952 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
16953 of #ifdef. Add code to remove cycling.
16954 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
16955 non-null disp. Reload inner instead of disp when base and index
16956 are null. Try to put lo_sum into register.
16957 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 16958 (check_and_process_move): Move code for move cost check to
f6ce35ac 16959 simple_move_p. Remove equiv_substitution.
cabf91cd 16960 (simple_move_p): New function.
f6ce35ac
VM
16961 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
16962 curr_insn_set. Call check_and_process_move only for single set
16963 insns. Use the new function. Move call of check_and_process_move
16964 after operand equiv substitution and address process.
16965
38047d90
JG
169662013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
16967
16968 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
16969 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
16970 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
16971
13f39b2e
PC
169722013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16973
16974 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
16975
97c116dc
MP
169762013-04-24 Marek Polacek <polacek@redhat.com>
16977
16978 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
16979 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
16980 (select_loops_exit_conditions): Likewise.
16981 (number_of_iterations_for_all_loops): Likewise.
16982 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
16983 (scev_analysis): Likewise.
16984
83082391 169852013-04-02 Catherine Moore <clm@codesourcery.com>
12211b99 16986 Chao-ying Fu <fu@mips.com>
83082391 16987
cabf91cd
AM
16988 * config/mips/micromips.md (jraddiusp): New pattern.
16989 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
16990 instruction if possible.
83082391 16991
19e34aa2
AM
169922013-04-24 Alan Modra <amodra@gmail.com>
16993
16994 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
16995
fdb6603c
JB
169962013-04-24 Julian Brown <julian@codesourcery.com>
16997 Chung-Lin Tang <cltang@codesourcery.com>
16998
16999 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
17000 dependency behavior in enumeration type DIE generation. Add TODO note
17001 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 17002
bf190e8d
LC
170032013-04-23 Lawrence Crowl <crowl@google.com>
17004
17005 * Makefile.in: Update as needed below.
17006
17007 * hash-table.h (class hash_table):
17008 Correct many methods with parameter types compare_type to the correct
17009 value_type. (Correct code was unlikely to notice the change.)
17010 (hash_table::elements_with_deleted) New.
17011 (class hashtable::iterator): New.
17012 (hashtable::begin()): New.
17013 (hashtable::end()): New.
17014 (FOR_EACH_HASH_TABLE_ELEMENT): New.
17015
17016 * statistics.c (statistics_hashes):
17017 Change type to hash_table. Update dependent calls and types.
17018
17019 * tree-into-ssa.c (var_infos):
17020 Change type to hash_table. Update dependent calls and types.
17021
17022 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
17023 Change type to hash_table. Update dependent calls and types.
17024
17025 * tree-ssa-loop-im.c (struct mem_ref.refs):
17026 Change type to hash_table. Update dependent calls and types.
17027
17028 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
17029 Change type to hash_table. Update dependent calls and types.
17030
17031 * tree-ssa-sccvn.c (vn_tables_s::nary):
17032 Change type to hash_table. Update dependent calls and types.
17033 (vn_tables_s::phis): Likewise.
17034 (vn_tables_s::references): Likewise.
17035
17036 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
17037 (vn_reference_eq): Update parameter and return types.
17038
17039 * tree-ssa-structalias.c (pointer_equiv_class_table):
17040 Change type to hash_table. Update dependent calls and types.
17041 (location_equiv_class_table): Likewise.
17042
17043 * tree-vect-data-refs.c: Consequential changes for making
17044 peeling a hash_table.
17045
17046 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
17047 (destroy_loop_vec_info): Dependent hash_table update.
17048
17049 * tree-vectorizer.h (peeling_htab):
17050 Change type to hash_table. Update dependent calls and types.
17051
d70a81dd
SC
170522013-04-23 Shiva Chen <shiva0217@gmail.com>
17053
cabf91cd
AM
17054 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
17055 to check the register content is equal or not.
17056 * lra-constraints.c (match_reload): Use lra_assign_reg_val
17057 to assign register content record.
17058 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 17059 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
17060 * lra-int.h (struct lra_reg): Add offset member.
17061 (lra_reg_val_equal_p): New static inline function.
17062 (lra_update_reg_val_offset): New static inline function.
17063 (lra_assign_reg_val): New static inline function.
17064 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
17065 to assign register content record.
17066 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 17067
b894a1f3
CM
170682013-04-23 Catherine Moore <clm@codesourcery.com>
17069
17070 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
17071 operands. Record compression.
17072
ecd14de9
XDL
170732013-04-23 Xinliang David Li <davidxl@google.com>
17074
17075 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
17076
92e776e9
RB
170772013-04-23 Richard Biener <rguenther@suse.de>
17078
17079 PR middle-end/57036
17080 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
17081 parameter, only add abnormal goto edges from the copied body
17082 if the call could perform abnormal gotos.
17083 (copy_cfg_body): Adjust.
17084
a15ee567
SN
170852013-04-23 Sofiane Naci <sofiane.naci@arm.com>
17086
17087 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
17088
08c52234
AS
170892013-04-23 Andreas Schwab <schwab@linux-m68k.org>
17090
17091 * coretypes.h (gimple_stmt_iterator): Add struct to make
17092 compatible with C.
17093
999c1171
RB
170942013-04-23 Richard Biener <rguenther@suse.de>
17095
17096 PR tree-optimization/57026
17097 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
17098 from SSA names occuring in abnormal PHI nodes.
17099
53669259
AK
171002013-04-22 Andi Kleen <ak@linux.intel.com>
17101
17102 * lto/lto.c (print_lto_report_1): Fix LTO report names.
17103
1a0ad150
AK
171042013-04-22 Andi Kleen <ak@linux.intel.com>
17105
17106 * lto/lto.c (print_lto_report_1): Declare early.
17107 (read_cgraph_and_symbols): Call print_lto_report_1 early.
17108
057f8f20
AK
171092013-04-22 Andi Kleen <ak@linux.intel.com>
17110
17111 * common.opt (-flto-report-wpa): Add.
17112 * doc/invoke.texi (-flto-report-wpa): Add.
17113 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
17114 (lto_main): dito.
17115
473b1e05
XDL
171162013-04-22 Xinliang David Li <davidxl@google.com>
17117
17118 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
17119 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
17120 * Makefile.in: New dependency
17121
cabf91cd 17122 David Daney <ddaney.cavm@gmail.com>
b1485a33 17123
cabf91cd
AM
17124 * configure.ac (gcc_cv_as_micromips_support): Use the
17125 --fatal-warnings option.
17126 * configure: Regenerate.
b1485a33 17127
829d0168
MP
171282013-04-22 Marek Polacek <polacek@redhat.com>
17129
17130 PR sanitizer/56990
17131 * tsan.c (instrument_expr): Don't instrument expression
17132 in case its size is zero.
17133
6d9b7208
UB
171342013-04-22 Uros Bizjak <ubizjak@gmail.com>
17135
17136 PR target/57032
17137 Revert:
17138 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
17139
17140 * config/alpha/alpha.c (TARGET_LRA_P): New define.
17141
ea679d55
JG
171422013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
17143
17144 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
17145 (gimple_stmt_iterator): New typedef.
17146 * gimple.h (gimple_stmt_iterator): Rename to...
17147 (gimple_stmt_iterator_d): ... This.
17148 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
17149 trees be valid for GIMPLE and GENERIC.
17150 (TARGET_GIMPLE_FOLD_BUILTIN): New.
17151 * gimple-fold.c (gimple_fold_call): Call target hook
17152 gimple_fold_builtin.
17153 * hooks.c (hook_bool_gsiptr_false): New.
17154 * hooks.h (hook_bool_gsiptr_false): New.
17155 * target.def (fold_stmt): New.
17156 * doc/tm.texi: Regenerate.
17157
88a581da
VM
171582013-04-22 Vladimir Makarov <vmakarov@redhat.com>
17159
17160 PR target/57018
17161 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
17162 a set sp if no stack realignment.
17163
92be22dc
NC
171642013-04-22 Nick Clifton <nickc@redhat.com>
17165
17166 * config.gcc (tilegx-linux): Extend extra_objs rather than
17167 overwriting it.
17168 (tilepro-linux): Likewise.
17169
0ddec79f
JG
171702013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
17171
17172 * config/aarch64/aarch64-builtins.c
17173 (CF): Remove.
17174 (CF0, CF1, CF2, CF3, CF4, CF10): New.
17175 (VAR<1-12>): Add MAP parameter.
17176 (BUILTIN_*): Likewise.
17177 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
17178 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
17179 (aarch64_ushl_n<mode>): Likewise.
17180 (aarch64_sshr_n<mode>): Likewise.
17181 (aarch64_ushr_n<mode>): Likewise.
17182 (aarch64_<maxmin><mode>): Likewise.
17183 (aarch64_sqrt<mode>): Likewise.
17184 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
17185 (vshr<q>_n_*): Likewise.
17186
0050faf8
JG
171872013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
17188
17189 * config/aarch64/aarch64-builtins.c
17190 (aarch64_simd_builtin_type_mode): Handle SF types.
17191 (sf_UP): Define.
17192 (BUILTIN_GPF): Define.
17193 (aarch64_init_simd_builtins): Handle SF types.
17194 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
17195 (frecps): Likewise.
17196 (frecpx): Likewise.
17197 * config/aarch64/aarch64-simd.md
17198 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
17199 (aarch64_frecpe<mode>): New.
17200 (aarch64_frecps<mode>): Likewise.
17201 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
17202 (v8type): Add frecp<esx>.
17203 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
17204 (aarch64_frecps<mode>): Likewise.
17205 * config/aarch64/iterators.md (FRECP): New.
17206 (frecp_suffix): Likewise.
17207 * config/aarch64/arm_neon.h
17208 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
17209
0fad3dbc 172102013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
17211
17212 PR target/56995
17213 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
17214 (REG_CLASS_NAMES): Idem.
17215 (REG_CLASS_CONTENTS): Idem.
17216 (REGCLASS_HAS_FP_REG): Idem.
17217 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
17218 (sh_conditional_register_usage): Idem.
17219
3e8a33f9
JL
172202013-04-21 Jeff Law <law@redhat.com>
17221
17222 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
17223 (ssa_forward_propagate_and_combine): Use it.
17224
f38e1b0a
VM
172252013-04-19 Vladimir Makarov <vmakarov@redhat.com>
17226
17227 * lra.c: Update the flow chart diagram.
17228
682303da
VM
172292013-04-19 Vladimir Makarov <vmakarov@redhat.com>
17230
17231 PR rtl-optimization/56847
17232 * lra-constraints.c (process_alt_operands): Discourage alternative
17233 with non-matche doffsettable memory constraint fro memory with
17234 known offset.
17235
f6b64c35
RB
172362013-04-19 Richard Biener <rguenther@suse.de>
17237
17238 PR tree-optimization/56982
17239 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
17240 function.
17241 * gimplify.c (gimplify_call_expr): Notice special calls.
17242 (gimplify_modify_expr): Likewise.
17243 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
17244 abnormal control flow receivers.
17245 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
17246 in the same way as cfun->has_nonlocal_labels.
17247 (gimple_purge_dead_abnormal_call_edges): Likewise.
17248 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
17249 receivers start a basic-block.
17250
01d8bf07
RB
172512013-04-19 Richard Biener <rguenther@suse.de>
17252
17253 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
17254 member ...
17255 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
17256 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
17257 (SLP_TREE_LOAD_PERMUTATION): Add.
17258 (vect_transform_slp_perm_load): Adjust prototype.
17259 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
17260 (vect_free_slp_instance): Likewise.
17261 (vect_create_new_slp_node): Likewise.
17262 (vect_supported_slp_permutation_p): Remove.
17263 (vect_slp_rearrange_stmts): Adjust.
17264 (vect_supported_load_permutation_p): Likewise. Inline
17265 vect_supported_slp_permutation_p here.
17266 (vect_analyze_slp_instance): Compute load permutations per
17267 slp node instead of per instance.
17268 (vect_get_slp_defs): Adjust.
17269 (vect_transform_slp_perm_load): Likewise.
17270 (vect_schedule_slp_instance): Remove redundant code.
17271 (vect_schedule_slp): Remove hack for PR56270, add it ...
17272 * tree-vect-stmts.c (vectorizable_load): ... here, do not
17273 CSE loads for SLP. Adjust.
17274
ede22fc3
GY
172752013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
17276
17277 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
17278 spelling in two comments.
17279
67bc84fb
GY
172802013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
17281
17282 PR target/56797
17283 * config/arm/arm.c (load_multiple_sequence): Require SP
17284 as base register for loads if SP is in the register list.
17285
e248d83f
MJ
172862013-04-19 Martin Jambor <mjambor@suse.cz>
17287
17288 PR tree-optimization/56718
17289 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
17290 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
17291 and made public. Adjusted all callers.
17292 (ipa_intraprocedural_devirtualization): New function.
17293 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
17294 (ipa_intraprocedural_devirtualization): Likewise.
17295 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
17296
4891e8f8
RB
172972013-04-19 Richard Biener <rguenther@suse.de>
17298
17299 PR tree-optimization/57000
17300 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
17301
dad89f7c
TG
173022013-04-19 Terry Guo <terry.guo@arm.com>
17303
17304 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
17305 Replace with ...
17306 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
17307 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
17308 (cortex_m4_fmacs): Use new reservations.
17309 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
17310
72ea0d47
VM
173112013-04-18 Vladimir Makarov <vmakarov@redhat.com>
17312
f1e6512c 17313 PR rtl-optimization/56999
72ea0d47
VM
17314 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
17315 related code.
17316 (lra_coalesce): Remove split_origin_bitmap and related code.
17317 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
17318 ranges if necessary.
17319
780a5b71
UB
173202013-04-18 Uros Bizjak <ubizjak@gmail.com>
17321
17322 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
17323 New array.
17324 (ix86_expand_call): Remove clobbered_registers array and use
17325 x86_64_ms_sysv_extra_clobbered_registers instead.
17326 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
17327 Declare here.
17328 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
17329 predicate.
17330 * config/i386/i386.md (*call_rex64_ms_sysv): Use
17331 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
17332 (*call_value_rex64_ms_sysv): Ditto.
17333
6f5a366a
CC
173342013-04-18 Cary Coutant <ccoutant@google.com>
17335
17336 * dwarf2out.c (output_pubnames): Check die_perennial_p of
17337 parent instead of die_mark.
17338
475b8f37
DN
173392013-04-18 Diego Novillo <dnovillo@google.com>
17340
17341 * gimple.c (create_gimple_tmp): New.
17342 (get_expr_type): New.
17343 (build_assign): New.
17344 (build_type_cast): New.
17345 * gimple.h (enum ssa_mode): Define.
17346 (gimple_seq_set_location): New.
17347 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 17348 to use build_assign and build_type_cast.
475b8f37 17349
08940f33
RB
173502013-04-18 Richard Biener <rguenther@suse.de>
17351
17352 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17353 handle negative step. Remove redundant checks.
17354 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
17355 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
17356 for negative step and grouped loads fail to vectorize.
17357
0e0f87d4
SB
173582013-04-18 Steven Bosscher <steven@gcc.gnu.org>
17359
17360 * emit-rtl.c (reset_insn_used_flags): New function.
17361 (reset_all_used_flags): Use it.
17362 (verify_insn_sharing): New function.
17363 (verify_rtl_sharing): Fix verification for SEQUENCEs.
17364
4c445590
JJ
173652013-04-18 Jakub Jelinek <jakub@redhat.com>
17366
17367 PR tree-optimization/56984
17368 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
17369 and (x >> M) >= N don't register any assertion if N << M is the
17370 minimum value.
17371
6873ecab
SB
173722013-04-18 Steven Bosscher <steven@gcc.gnu.org>
17373
17374 * lower-subreg.c (resolve_simple_move): If called self-recursive,
17375 do not delete_insn insns that have not yet been emitted, only
17376 unlink them with remove_insn.
17377 * df-scan.c (df_insn_delete): Revert r197492.
17378
3ccb989e
SB
173792013-04-17 Steven Bosscher <steven@gcc.gnu.org>
17380
17381 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
17382 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
17383
173842013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
17385
17386 * config/arm/arm.md (movsicc_insn): Convert define_insn into
17387 define_insn_and_split.
17388 (and_scc,ior_scc,negscc): Likewise.
17389 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
17390
3ccb989e 173912013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
17392
17393 * config/arm/arm.c (use_return_insn): Return 0 for targets that
17394 can benefit from using a sequence of LDRD instructions in epilogue
17395 instead of a single LDM instruction.
17396
6d10a203
MLI
173972013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
17398
17399 PR 45688
17400 * doc/extend.texi: Fix typo.
17401
6983e6b5
RB
174022013-04-17 Richard Biener <rguenther@suse.de>
17403
17404 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
17405 (vect_build_slp_tree): ... here.
17406 (vect_build_slp_tree_1): Compute which stmts of the SLP group
17407 match. Remove special-casing of mismatched complex loads.
17408 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
17409 re-try the match with swapped commutative operands.
17410 (vect_supported_load_permutation_p): Remove special-casing of
17411 mismatched complex loads.
17412 (vect_analyze_slp_instance): Adjust.
17413
ef23e6a2
RB
174142013-04-17 Richard Biener <rguenther@suse.de>
17415
17416 PR rtl-optimization/56921
17417 * cfgloop.h (struct loop): Add simple_loop_desc member.
17418 (struct niter_desc): Mark with GTY(()).
17419 (simple_loop_desc): Do not use aux field but simple_loop_desc.
17420 * loop-iv.c (get_simple_loop_desc): Likewise.
17421 (free_simple_loop_desc): Likewise.
17422
17423 Revert
17424 2013-04-16 Richard Biener <rguenther@suse.de>
17425
17426 PR rtl-optimization/56921
17427 * loop-init.c (pass_rtl_move_loop_invariants): Add
17428 TODO_do_not_ggc_collect to todo_flags_finish.
17429 (pass_rtl_unswitch): Same.
17430 (pass_rtl_unroll_and_peel_loops): Same.
17431 (pass_rtl_doloop): Same.
17432
fc6f94f5
EB
174332013-04-17 Eric Botcazou <ebotcazou@adacore.com>
17434
17435 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
17436 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
17437 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
17438 references.
17439 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
17440 * tree-streamer.c (record_common_node): Adjust reference in comment.
17441
10a88311
TG
174422013-04-17 Terry Guo <terry.guo@arm.com>
17443
17444 * config/arm/cortex-m4.md: Add a new bypass.
17445
6d9b7208 174462013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
17447
17448 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
17449 New pattern.
17450 (*subs_<optab><mode>_multp2): New pattern.
17451 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
17452 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
17453
6d9b7208 174542013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
17455
17456 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
17457 (*subs_mul_imm_<mode>): New pattern.
17458
18a6701e
DE
174592013-04-16 David Edelsohn <dje.gcc@gmail.com>
17460
17461 PR target/56948
17462 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
17463 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
17464 (vsx_movti_32bit): Change j->wa to O->wa.
17465
07c37b2f
RB
174662013-04-16 Richard Biener <rguenther@suse.de>
17467
17468 PR rtl-optimization/56921
17469 * loop-init.c (pass_rtl_move_loop_invariants): Add
17470 TODO_do_not_ggc_collect to todo_flags_finish.
17471 (pass_rtl_unswitch): Same.
17472 (pass_rtl_unroll_and_peel_loops): Same.
17473 (pass_rtl_doloop): Same.
17474
0e0f87d4 174752013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
17476
17477 * config/arm/arm.c (emit_multi_reg_push): New declaration
17478 for an existing function.
17479 (arm_emit_strd_push): New function.
17480 (arm_expand_prologue): Used here.
17481 (arm_emit_ldrd_pop): New function.
17482 (arm_expand_epilogue): Used here.
17483 (arm_get_frame_offsets): Update condition.
17484 (arm_emit_multi_reg_pop): Add a special case for load of a single
17485 register with writeback.
17486
5e8e2af4
UB
174872013-04-16 Uros Bizjak <ubizjak@gmail.com>
17488
17489 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
17490 description.
17491
9fd9ccf7
RB
174922013-04-16 Richard Biener <rguenther@suse.de>
17493
17494 PR tree-optimization/56756
17495 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
17496 (first_mem_ref_loc): New.
17497 (execute_sm): Place the load temporarily before a previous
17498 access instead of in the latch edge to ensure its SSA dependencies
17499 are defined at points dominating the load.
17500
96fba521
SB
175012013-04-16 Steven Bosscher <steven@gcc.gnu.org>
17502
4c8af858
SB
17503 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
17504 correct fix by moving header and footer insn to the footer of
17505 the merged basic block. Clear BB_END of the merged-away block.
17506
96fba521
SB
17507 PR middle-end/43631
17508 * emit-rtl.c (make_note_raw): New function.
17509 (link_insn_into_chain): New static inline function.
17510 (add_insn): Use it.
17511 (add_insn_before, add_insn_after): Factor insn chain linking code...
17512 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
17513 using link_insn_into_chain.
17514 (note_outside_basic_block_p): New helper function for emit_note_after
17515 and emit_note_before.
17516 (emit_note_after): Use nobb variant of add_insn_after if the note
17517 should not be contained in a basic block.
17518 (emit_note_before): Use nobb variant of add_insn_before if the note
17519 should not be contained in a basic block.
17520 (emit_note_copy): Use make_note_raw.
17521 (emit_note): Likewise.
17522 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
17523 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
17524 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
17525 the moved barrier the tail of the basic block it follows.
17526 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
17527
7b8265ba
JJ
175282013-04-15 Jakub Jelinek <jakub@redhat.com>
17529
17530 PR tree-optimization/56962
17531 * gimple-ssa-strength-reduction.c (record_increment): Only set
17532 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
17533 either rhs1 or rhs2 is equal to c->base_expr.
17534
5185d248
RB
175352013-04-15 Richard Biener <rguenther@suse.de>
17536
17537 PR tree-optimization/56933
17538 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
17539 member.
17540 (GROUP_READ_WRITE_DEPENDENCE): Remove.
17541 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
17542 * tree-vect-data-refs.c (vect_analyze_group_access): Move
17543 dependence check ...
17544 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
17545 ... here.
17546 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
17547 GROUP_READ_WRITE_DEPENDENCE.
17548
a24243a0
AK
175492013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17550
17551 * emit-rtl.c (reset_all_used_flags): New function.
17552 (verify_rtl_sharing): Call reset_all_used_flags before and after
17553 performing the checks.
17554
1c50eada
KT
175552013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17556
17557 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
17558 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
17559 * config/arm/constraints.md (De): New constraint.
17560 * config/arm/neon.md (anddi3_neon): Delete.
17561 (neon_vand<mode>): Expand to standard anddi3 pattern.
17562 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
17563 Move earlier in the file.
17564 (neon_inv_logic_op2): Likewise.
17565 (arm_anddi_operand_neon): New predicate.
17566
e927b6ad
RO
175672013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17568
17569 * configure.ac (gcc_cv_ld_as_needed): Set
17570 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
17571 Use -z ignore, -z record on *-*-solaris2*.
17572 (HAVE_LD_AS_NEEDED): Update comment.
17573 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
17574 * configure: Regenerate.
17575 * config.in: Regenerate.
17576 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
17577 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
17578 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
17579 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
17580 equivalents. Fix markup.
17581 * doc/tm.texi: Regenerate.
17582
e0ea8797
AH
175832013-04-15 Andrew Hsieh <andrewhsieh.google.com>
17584
17585 * config/i386/i386.opt: New option mstack-protector-guard=.
17586 * config/i386/i386-opts.h: Add enum stack_protector_guard.
17587 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
17588 TARGET_SSP_TLS_GUARD.
17589 * config/i386/i386.c (ix86_option_override_internal): Set
17590 ix86_stack_protector_guard.
17591 * config/i386/i386.md (stack_protect_set): Enable for
17592 TARGET_SSP_TLS_GUARD only.
17593 (stack_protect_set_<mode>): Ditto.
17594 (stack_protect_test): Ditto.
17595 (stack_protect_test_<mode>): Ditto.
17596 * doc/invoke.texi (i386 Option): Document.
17597
811b72f9
EB
175982013-04-15 Eric Botcazou <ebotcazou@adacore.com>
17599
17600 PR target/56890
17601 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
17602 (S_MODES): Set H_MODE bit.
17603 (SF_MODES): Set only S_MODE and SF_MODE bits.
17604 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
17605 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
17606 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
17607 <MODE_FLOAT>: Likewise.
17608
5529fdd6
JY
176092013-04-15 Joey Ye <joey.ye@arm.com>
17610
17611 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
17612
517b1da2
JY
176132013-04-15 Joey Ye <joey.ye@arm.com>
17614
17615 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
17616 for real far jump.
17617 (thumb_far_jump_used_p): Count instruction size and set
17618 far_jump_used.
17619
01007ae0
EB
176202013-04-14 Eric Botcazou <ebotcazou@adacore.com>
17621
17622 * reorg.c (fill_simple_delay_slots): Reindent block of code.
17623 * resource.c (mark_target_live_regs): Reformat conditional block.
17624
c46f6580
SB
176252013-04-13 Steven Bosscher <steven@gcc.gnu.org>
17626
17627 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
17628 notes, they are emitted only just before final.
17629 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
17630
1f397f45
SB
176312013-04-13 Steven Bosscher <steven@gcc.gnu.org>
17632
17633 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
17634 * cfgrtl.c (delete_insn): Call it here instead.
17635 * lra-spills.c (lra_final_code_change): Use delete_insn.
17636 * haifa-sched.c (sched_remove_insn): Likewise.
17637 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
17638 returning to the nop pool.
17639 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
17640 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
17641
58a51369
SB
176422013-04-12 Steven Bosscher <steven@gcc.gnu.org>
17643
17644 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
17645 * doc/tm.texi: Regenerated.
17646
33159866
UB
176472013-04-12 Uros Bizjak <ubizjak@gmail.com>
17648
17649 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
17650 QImode checks.
17651
226e378f
SB
176522013-04-12 Steven Bosscher <steven@gcc.gnu.org>
17653
17654 * df-core.c (df_find_def): Compare register numbers.
17655 (df_find_use): Likewise.
17656
fafb9b18
VM
176572013-04-12 Vladimir Makarov <vmakarov@redhat.com>
17658
17659 PR target/56903
17660 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
17661 lra_in_progress for return.
17662
9a946fd6
GY
176632013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
17664
17665 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
17666 define_insn into define_insn_and_split and emit movsicc patterns.
17667
41b83758
GY
176682013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
17669
17670 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
17671
d3afd9aa
RB
176722013-04-12 Richard Biener <rguenther@suse.de>
17673
17674 * tree-pass.h (TODO_do_not_ggc_collect): New.
17675 * passes.c (execute_one_ipa_transform_pass): Honor
17676 TODO_do_not_ggc_collect.
17677 (execute_one_pass): Likewise.
17678
17679 Revert
17680 2013-04-10 Richard Biener <rguenther@suse.de>
17681
17682 * passes.c (init_optimization_passes): Remove reload pass.
17683 * ira.c (do_reload): Merge into ...
17684 (ira): ... this.
17685 (rest_of_handle_reload): Remove.
17686 (pass_reload): Likewise.
17687 * config/i386/i386.c (ix86_option_override): Refer to ira instead
17688 of reload for vzeroupper pass placement.
17689
06f9b387
JJ
176902013-04-12 Jakub Jelinek <jakub@redhat.com>
17691
17692 PR tree-optimization/56918
17693 PR tree-optimization/56920
17694 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
17695 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
17696 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
17697 use wide_mul_with_sign method.
17698
953094d2
RB
176992013-04-12 Richard Biener <rguenther@suse.de>
17700
17701 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
17702 not be considered a gimple constant.
17703
bb506982
MG
177042013-04-12 Marc Glisse <marc.glisse@inria.fr>
17705
17706 * fold-const.c (const_binop): Handle vector shifts by a scalar.
17707 (fold_binary_loc): Call const_binop also for mixed vector-scalar
17708 operations.
17709
4b84d650
JJ
177102013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
17711 Jakub Jelinek <jakub@redhat.com>
17712
17713 * opts.c: Include diagnostic-color.h.
17714 (common_handle_option): Handle OPT_fdiagnostics_color_.
17715 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
17716 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
17717 (diagnostic-color.o): New.
17718 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
17719 (diagnostic_color_rule): New enum.
17720 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
17721 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
17722 the location string.
17723 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
17724 either NULL, or color kind.
17725 * diagnostic-color.c: New file.
17726 * diagnostic-color.h: New file.
17727 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
17728 arguments.
17729 * doc/invoke.texi (-fdiagnostics-color): Document.
17730 * pretty-print.h (pp_show_color): Define.
17731 (struct pretty_print_info): Add show_color field.
17732 * diagnostic.c: Include diagnostic-color.h.
17733 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
17734 macros. Colorize error:, warning: etc. strings and also the location
17735 string.
17736 (diagnostic_show_locus): Colorize the caret line.
17737 * pretty-print.c: Include diagnostic-color.h.
17738 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
17739 inside of %< %> quotes or quoted through q format modifier.
17740
067a1e71
AK
177412013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17742
33159866 17743 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 17744
33159866 177452013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
17746
17747 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
17748 code in CC_NZ mode.
17749 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
17750 pattern.
17751
7b55f98f
MP
177522013-04-11 Marek Polacek <polacek@redhat.com>
17753
17754 PR tree-optimization/48184
33159866 17755 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 17756
966b587e
EB
177572013-04-11 Eric Botcazou <ebotcazou@adacore.com>
17758
17759 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
17760 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
17761 (skip_simple_arithmetic): Tidy up.
17762 * tree.h (skip_simple_constant_arithmetic): Declare.
17763
33159866 177642013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
17765
17766 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
17767
1d42c1ec
RB
177682013-04-11 Richard Biener <rguenther@suse.de>
17769
17770 * tree-vect-loop.c (get_initial_def_for_induction): Properly
17771 generate vector constants.
17772
4ba5ea11
RB
177732013-04-11 Richard Biener <rguenther@suse.de>
17774
17775 PR tree-optimization/56878
17776 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
17777 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
17778 New function.
17779 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17780 Prefer to align the DR with the most invariant base address.
17781
f0defe58
SKS
177822013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17783
17784 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
17785 comment.
17786
d07458be
JG
177872013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
17788
17789 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
17790 floating-point vector comparisons against 0.
17791
146b8692
JJ
177922013-04-11 Jakub Jelinek <jakub@redhat.com>
17793
17794 PR tree-optimization/56899
17795 * fold-const.c (extract_muldiv_1): Apply distributive law
17796 only if TYPE_OVERFLOW_WRAPS (ctype).
17797
b8578ff7
BC
177982013-04-11 Bin Cheng <bin.cheng@arm.com>
17799
17800 PR target/56124
17801 * ira-costs.c (scan_one_insn): Check whether the source rtx of
17802 loading has side effect.
17803
0ea8a6f9
SB
178042013-04-10 Steven Bosscher <steven@gcc.gnu.org>
17805
17806 * config/sparc/sparc.c: Include tree-pass.h.
17807 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
17808 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
17809 head of file. Change return type. Split off gate function.
17810 (sparc_gate_work_around_errata): New function.
17811 (pass_work_around_errata): New pass definition.
17812 (insert_pass_work_around_errata) New pass insert definition to
17813 insert pass_work_around_errata just after delayed-branch scheduling.
17814 (sparc_option_override): Insert the pass.
17815 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
17816
42e37616
DM
178172013-04-10 David S. Miller <davem@davemloft.net>
17818
89deeb3b
DM
17819 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
17820 or -mcpu=hypersparc.
17821
42e37616
DM
17822 * target.def (cstore_mode): New hook.
17823 * target.h: Include insn-codes.h
17824 * targhooks.c: Likewise.
17825 (default_cstore_mode): New function.
17826 * targhooks.h: Declare it.
17827 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
17828 * doc/tm.texi: Rebuild.
17829 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
17830 target hook, rather than inspecting the insn_data.
17831 * config/sparc/sparc.c (sparc_cstore_mode): New function.
17832 (TARGET_CSTORE_MODE): Redefine.
17833 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
17834 result patterns.
17835 * config/sparc/predicates.md (cstore_result_operand): New special
17836 predicate.
17837 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
17838 Use it for operand 0.
17839 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
17840 (*snesi_special): Likewise.
17841 (*snesi_zero): Likewise.
17842 (*seqsi_zero): Likewise.
17843 (*sltu_insn): Likewise.
17844 (*sgeu_insn): Likewise.
17845 (*seqdi_special): Make operand 0 and comparison operation be of
17846 DImode.
17847 (*snedi_special): Likewise.
17848 (*snedi_special_vis3): Likewise.
17849 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
17850 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
17851 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
17852 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
17853 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
17854 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
17855 (*sltu_extend_sp64): Likewise.
17856 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
17857 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
17858 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
17859 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
17860 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
17861
95ca411e
YZ
178622013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
17863
17864 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
17865 (aarch64_start_file): Use the new function.
17866
6782438d 178672013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 17868 Jason Merrill <jason@redhat.com>
6782438d
SKS
17869
17870 * common.opt: Add -gdwarf.
17871 * opts.c (common_handle_option): Handle it.
17872 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
17873
bb313b93
RB
178742013-04-10 Richard Biener <rguenther@suse.de>
17875
17876 * passes.c (execute_todo): Do not call ggc_collect conditional here.
17877 (execute_one_ipa_transform_pass): But unconditionally here.
17878 (execute_one_pass): And here.
17879 (init_optimization_passes): Remove reload pass.
17880 * tree-pass.h (TODO_ggc_collect): Remove.
17881 (pass_reload): Likewise.
17882 * ira.c (do_reload): Merge into ...
17883 (ira): ... this.
17884 (rest_of_handle_reload): Remove.
17885 (pass_reload): Likewise.
17886 * config/i386/i386.c (ix86_option_override): Refer to ira instead
17887 of reload for vzeroupper pass placement.
17888 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
17889 and todo_flags_finish of all passes.
17890
793d9a16
RB
178912013-04-10 Richard Biener <rguenther@suse.de>
17892
17893 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
17894 first_const_oprnd field, rename first_def_type to first_op_type.
17895 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
17896 (vect_get_and_check_slp_defs): Always use the type of the
17897 operand. Allow mixed vect_external_def, vect_constant_def types.
17898 (vect_get_constant_vectors): Handle mixed vect_external_def,
17899 vect_constant_def types.
17900
12211b99 179012013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
ee8a9b7b
JR
17902
17903 PR tree-optimization/55524
17904 * tree-ssa-math-opts.c
17905 (convert_mult_to_fma): Don't use an fms construct
17906 when we don't have an fms operation, but fnma, and it looks
17907 likely that we'll be able to use the latter.
17908
12211b99 179092013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6957a6f6
ZZ
17910
17911 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
17912 function.
17913 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
17914 inline fail caused by overwritable functions.
17915
34ab4a5b
CJW
179162013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
17917
17918 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
17919 unnecessary bits in the constant power of two case.
17920
abf9bfbc
RB
179212013-04-10 Richard Biener <rguenther@suse.de>
17922
17923 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
17924 broken code swapping operands.
17925 (vect_build_slp_tree): Do not compute load permutations here.
17926 (vect_analyze_slp_instance): Compute load permutations here,
17927 after building the SLP tree.
17928
f408477e
CB
179292013-04-09 Christian Bruel <christian.bruel@st.com>
17930
17931 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
17932 of next/prev_real_insn.
17933
5ac42672
JH
179342013-04-09 Jan Hubicka <jh@suse.cz>
17935
abf9bfbc
RB
17936 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
17937 Drop aliased parameter.
5ac42672
JH
17938 (function_and_variable_visibility): Do not handle alias pairs.
17939 * cgraph.c (varpool_externally_visible_p): Update prototype.
17940 * varpool.c (varpool_add_new_variable): Update.
17941
5017f1d2
KT
179422013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17943
17944 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
17945
48eecbee
SB
179462013-04-09 Steven Bosscher <steven@gcc.gnu.org>
17947
a949cf1c
SB
17948 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
17949
48eecbee
SB
17950 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
17951
75ef8e3d
MP
179522013-04-09 Marek Polacek <polacek@redhat.com>
17953
17954 PR tree-optimization/48762
33159866 17955 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 17956
23847df4
RB
179572013-04-09 Richard Biener <rguenther@suse.de>
17958
17959 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
17960 dealing with cost.
17961 (vect_build_slp_tree): Likewise.
17962 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
17963 calculating the cost of a SLP instance.
17964 (vect_analyze_slp_instance): Use it from here, after building
17965 the SLP tree.
17966
ea3a0fde
JJ
179672013-04-09 Jakub Jelinek <jakub@redhat.com>
17968
17969 PR middle-end/56883
17970 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17971 expand_omp_for_static_chunk): Use simple_p = true in
17972 force_gimple_operand_gsi calls when assigning to addressable decls.
17973
a32dfe9d
JL
179742013-04-09 Jeff Law <law@redhat.com>
17975
17976 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
17977 when the boolean was created by converting a wider object which
17978 had a boolean range.
17979
d755c7ef
RB
179802013-04-09 Richard Biener <rguenther@suse.de>
17981
17982 * tree-vectorizer.h (slp_void_p): Remove.
17983 (slp_tree): Typedef before _slp_tree declaration.
17984 (struct _slp_tree): Use a vector of slp_tree as children.
17985 (vect_get_place_in_interleaving_chain): Remove.
17986 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
17987 Move ...
17988 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
17989 and make static.
17990 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
17991 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
17992 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
17993 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
17994 Use slp_node instead of slp_void_p and adjust.
17995
3d741091
RB
179962013-04-09 Richard Biener <rguenther@suse.de>
17997
17998 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
17999 work that is not necessary.
18000
39307ba7
JJ
180012013-04-09 Jakub Jelinek <jakub@redhat.com>
18002
18003 PR tree-optimization/56854
18004 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
18005 forward into clobber stmts if it would change MEM_REF lhs into
18006 non-MEM_REF.
18007
343881fd
MK
180082013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
18009
18010 * tree.c (type_hash_lookup, type_hash_add): Make static.
18011 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
18012
3922658a
RB
180132013-04-09 Richard Biener <rguenther@suse.de>
18014
18015 * tree.h (unsave_expr_now): Remove.
18016 * tree-inline.c (mark_local_for_remap_r): Remove.
18017 (unsave_expr_1): Likewise.
18018 (unsave_r): Likewise.
18019 (unsave_expr_now): Likewise.
18020 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
18021 (propagate_tree_value): Likewise.
18022
9fb6b620
SB
180232013-04-08 Steven Bosscher <steven@gcc.gnu.org>
18024
18025 * doc/rtl.texi (sequence): Rewrite documentation to match the
18026 current use of SEQUENCE rtl objects.
18027 * rtl.def (SEQUENCE): Likewise.
18028
18029 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
18030 Update documentation.
18031 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
18032 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
18033
18034 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
18035
8ddb5a29
TJ
180362013-04-08 Teresa Johnson <tejohnson@google.com>
18037
18038 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
18039 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 18040 methods.
8ddb5a29
TJ
18041 (estimate_edge_size_and_time): Add comment to suggest using rounding
18042 methods.
18043 (estimate_node_size_and_time): Ditto.
18044 (remap_edge_change_prob): Use helper rounding divide methods.
18045 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
18046 (gimple_mod_pow2_value_transform): Ditto.
18047 (gimple_mod_subtract_transform): Ditto.
18048 (gimple_ic_transform): Ditto.
18049 (gimple_stringops_transform): Ditto.
18050 * stmt.c (conditional_probability): Ditto.
18051 (emit_case_dispatch_table): Ditto.
18052 * lto-cgraph.c (merge_profile_summaries): Ditto.
18053 * tree-optimize.c (execute_fixup_cfg): Ditto.
18054 * cfgcleanup.c (try_forward_edges): Ditto.
18055 * cfgloopmanip.c (scale_loop_profile): Ditto.
18056 (loopify): Ditto.
18057 (duplicate_loop_to_header_edge): Ditto.
18058 (lv_adjust_loop_entry_edge): Ditto.
18059 * tree-vect-loop.c (vect_transform_loop): Ditto.
18060 * profile.c (compute_branch_probabilities): Ditto.
18061 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
18062 * lto-streamer-in.c (input_cfg): Ditto.
18063 * gimple-streamer-in.c (input_bb): Ditto.
18064 * ipa-cp.c (update_profiling_info): Ditto.
18065 (update_specialized_profile): Ditto.
18066 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
18067 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 18068 rounding methods.
8ddb5a29
TJ
18069 * sched-rgn.c (compute_dom_prob_ps): Ditto.
18070 (compute_trg_info): Ditto.
18071 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
18072 (purge_dead_edges): Ditto.
18073 * loop-unswitch.c (unswitch_loop): Ditto.
18074 * cgraphclones.c (cgraph_clone_edge): Ditto.
18075 (cgraph_clone_node): Ditto.
18076 * tree-inline.c (copy_bb): Ditto.
18077 (copy_edges_for_bb): Ditto.
18078 (initialize_cfun): Ditto.
18079 (copy_cfg_body): Ditto.
18080 (expand_call_inline): Ditto.
18081
661e6bd7
KT
180822013-04-08 Kai Tietz <ktietz@redhat.com>
18083
18084 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
18085 TARGET_CYGWIN64 by TARGET_64BIT.
18086
105766f3
JR
180872013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
18088
18089 * config/epiphany/epiphany.md (GPR_1): New constant.
18090 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
18091 * config/epiphany/epiphany.c (gen_compare_reg):
18092 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
18093 is already in place.
18094 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
18095 Don't require being called during rtl expansion; If y operlaps r0,
18096 return 0.
18097 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
18098 (epiphany_expand_epilogue): Likewise.
18099
8afab237
JR
18100 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
18101 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 18102 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 18103
fa7707d6
JR
18104 * config/epiphany/constraints.md (CnL): New constraint.
18105 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
18106 * config/epiphany/predicates.md (add_operand): Allow 1024.
18107
5138e18d
JR
18108 * config/epiphany/epiphany.md (logical_op): New code iterator.
18109 (op_mnc): New code attribute.
18110 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
18111 (mov_f+1, mov_f+2): New peephole2 patterns.
18112
2ccc703d
JR
18113 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
18114 (cstoresi4): Also allow re-use of zero result when doing a NE
18115 comparison to a non-zero operand.
aefb0819 18116 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 18117
093ac0a5
JR
18118 * config/epiphany/epiphany.md (<insn_opname>v2si3):
18119 Use gen_addsi3_i / gen_subsi3_i.
18120
f223bb13
JJ
181212013-04-08 Jakub Jelinek <jakub@redhat.com>
18122
18123 PR c++/34949
18124 PR c++/50243
18125 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
18126 contain anything but clobbers, at most one __builtin_stack_restore,
18127 optionally debug stmts and final resx, and if it has at least one
18128 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
18129 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
18130 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
18131 which isn't defaut definition, remove them.
18132 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
18133 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
18134 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
18135 with MEM_REF LHS with SSA_NAME address.
18136
4481581f
JL
181372013-04-08 Jeff Law <law@redhat.com>
18138
18139 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 18140
451dabda
RB
181412013-04-08 Richard Biener <rguenther@suse.de>
18142
18143 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
18144 extra newline.
18145 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
18146 determined vector type.
18147 (vect_analyze_data_refs): Likewise.
18148 (vect_get_new_vect_var): Adjust.
18149 (vect_create_destination_var): Preserve SSA name versions.
18150 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
18151 not dump anything here.
18152
3b088b47
JR
181532013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
18154
18155 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
18156 Add member lr_slot_known.
18157 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
18158 if necessary.
18159 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
18160 Remove code that sets lr_slot_offset according to what a previous
18161 version of epiphany_emit_save_restore used to do.
18162 (epiphany_emit_save_restore): When doing an lr save or restore,
18163 set/verify lr_slot_known and lr_slot_offset.
18164
d8484d41
XQ
181652013-04-08 Xinyu Qi <xyqi@marvell.com>
18166
33159866
UB
18167 PR target/54338
18168 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
18169 in ALL_REGS.
18170
481be1c4
RB
181712013-04-08 Richard Biener <rguenther@suse.de>
18172
18173 * alias.c (find_base_term): Fix thinko in previous change.
18174
401f3a81
JJ
181752013-04-08 Jakub Jelinek <jakub@redhat.com>
18176
18177 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
18178 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
18179 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
18180 if possible to compute val.
18181 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
18182 For QImode integers don't require anything about precision. Use
18183 const_with_all_bytes_same to find out if the constant doesn't have
18184 repeated bytes in it.
18185
03ed99a8
AK
181862013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18187
18188 * config/s390/s390.c (s390_expand_insv): Only accept insertions
18189 within mode size.
18190
781b2e62
MP
181912013-04-08 Marek Polacek <polacek@redhat.com>
18192
18193 PR rtl-optimization/48182
18194 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
18195 value to 1.
18196
27e430a2
JDA
181972013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18198
18199 PR target/55487
18200 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
18201 nuses, make sure we have a label.
18202
4902aa64
BS
182032013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18204
18205 PR target/56843
18206 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
18207 (rs6000_emit_swdiv_low_precision): Remove.
18208 (rs6000_emit_swdiv): Rewrite to handle between one and four
18209 iterations of Newton-Raphson generally; modify required number of
18210 iterations for some cases.
18211 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
18212
7bca81dc
SB
182132013-04-05 Steven Bosscher <steven@gcc.gnu.org>
18214
18215 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
18216 set-but-unused variable.
18217
18218 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
18219 basic blocks of released function bodies garbage-collectable.
18220
18221 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
18222 (struct rtl_opt_pass): Add TODO_df_finish.
18223
18224 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
18225
4542a38a
GY
182262013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18227
18228 * config/arm/constraints.md (q): New constraint.
18229 * config/arm/ldrdstrd.md: New file.
18230 * config/arm/arm.md (ldrdstrd.md) New include.
18231 (arm_movdi): Use "q" instead of "r" constraint
18232 for double-word memory access.
18233 (movdf_soft_insn): Likewise.
18234 * config/arm/vfp.md (movdi_vfp): Likewise.
18235 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 18236 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
18237 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
18238 (mem_ok_for_ldrd_strd): Likewise.
18239 (output_move_double): Update assertion.
18240
2385b218
GY
182412013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18242
18243 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
18244
75fe1cb5
GY
182452013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18246
18247 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
18248 define_insn_and_split.
18249 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
18250
dd660e8e
GY
182512013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18252
18253 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
18254 define_insn_and_split.
33159866 18255 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
18256 (shiftsi3_compare): New pattern.
18257 (rrx): New pattern.
18258 * config/arm/unspecs.md (UNSPEC_RRX): New.
18259
045e472c
GY
182602013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18261
18262 * config/arm/arm.md (negdi_extendsidi): New pattern.
18263 (negdi_zero_extendsidi): Likewise.
18264
3f3bf1a8
GY
182652013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18266
18267 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
18268 define_insn_and_split.
18269 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
18270 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
18271
b0b49556
GY
182722013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18273
18274 * config/arm/arm.md (arm_subdi3): Convert define_insn into
18275 define_insn_and_split.
18276 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
18277 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
18278
d633dd84
GY
182792013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18280
18281 * config/arm/arm.md (subsi3_carryin): New pattern.
18282 (subsi3_carryin_const): Likewise.
18283 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
18284 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
18285
f4499066
GY
182862013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18287
18288 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
18289
ceef6fd9
GY
182902013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18291
18292 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 18293 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 18294
ddbdd8a7
KT
182952013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18296
18297 * config/arm/arm.c (arm_expand_builtin): Change fcode
18298 type to unsigned int.
18299
8456d78a
RR
183002013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18301
18302 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
18303
526c230f
ILT
183042013-04-04 Ian Lance Taylor <iant@google.com>
18305
33159866
UB
18306 * doc/standards.texi (Standards): The Go frontend supports the Go 1
18307 language standard.
526c230f 18308
3cfbe04d
SB
183092013-04-04 Steven Bosscher <steven@gcc.gnu.org>
18310
18311 PR middle-end/56729
18312 * df-scan.c (df_insn_delete): Disable failing assert.
18313
dfa3f8d0
KT
183142013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18315
18316 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
18317 New function prototype.
18318 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
18319 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
18320 (arm_builtin_vectorized_function): New function.
18321
f7837758
KT
183222013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18323
18324 * config/arm/arm_neon_builtins.def: New file.
18325 * config/arm/arm.c (neon_builtin_data): Move contents to
18326 arm_neon_builtins.def.
18327 (enum arm_builtins): Include neon builtin definitions.
18328 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 18329 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 18330
39c1b6db
MP
183312013-04-04 Marek Polacek <polacek@redhat.com>
18332
18333 PR tree-optimization/48186
18334 * predict.c (maybe_hot_frequency_p): Return false if
18335 HOT_BB_FREQUENCY_FRACTION is 0.
18336 (cgraph_maybe_hot_edge_p): Likewise.
18337
314f64eb
RB
183382013-04-04 Richard Biener <rguenther@suse.de>
18339
18340 PR tree-optimization/56826
18341 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
18342 more accurately.
18343
51a905b2
RB
183442013-04-04 Richard Biener <rguenther@suse.de>
18345
18346 PR tree-optimization/56213
18347 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 18348 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 18349
f1bf4f3a
RB
183502013-04-04 Richard Biener <rguenther@suse.de>
18351
18352 PR tree-optimization/56837
18353 * tree-loop-distribution.c (classify_partition): For non-zero
18354 values require that the value has the same precision as its
18355 mode to be useful as memset value.
18356
0bca7ded
NC
183572013-04-03 Nick Clifton <nickc@redhat.com>
18358
33159866 18359 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
18360 (fmssf4): Use fmsf.s on E3V5 architectures.
18361 (fnmasf4): Use fnmaf.s on E3V5 architectures.
18362 (fnmssf4): Use fnmsf.s on E3V5 architectures.
18363
b4019227
JL
183642013-04-03 Jeff Law <law@redhat.com>
18365
18366 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
18367 (lra-eliminations.o): Likewise.
18368
f57ddb5b
TJ
183692013-04-03 Teresa Johnson <tejohnson@google.com>
18370
18371 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 18372 compute_working_sets here from profile.c.
f57ddb5b 18373 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
18374 (gcov_working_set_t): Moved typedef here from basic-block.h
18375 (compute_working_set): Declare.
f57ddb5b
TJ
18376 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
18377 (get_working_sets): Renamed from compute_working_set,
33159866 18378 replace most of body with call to new compute_working_sets.
f57ddb5b 18379 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
18380 to get_working_sets.
18381 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 18382 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 18383 to get_working_sets.
f57ddb5b
TJ
18384 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
18385 * gcov-dump.c (dump_working_sets): New function.
18386
12211b99 183872013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5e0919f1
KZ
18388
18389 * hwint.c (sext_hwi, zext_hwi): New functions.
18390 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
18391 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
18392 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
18393 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
18394 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
18395 (sext_hwi, zext_hwi): New functions.
0bca7ded 18396
be672e08
JL
183972013-04-03 Jeff Law <law@redhat.com>
18398
18399 PR tree-optimization/56799
33159866
UB
18400 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
18401 back test for widening conversion erroneously dropped in prior change.
be672e08 18402
9d821fa5
KT
184032013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18404
18405 PR target/56809
18406 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
18407 instead of next_real_insn.
18408
71c581e7
MP
184092013-04-03 Marek Polacek <polacek@redhat.com>
18410
18411 PR sanitizer/55702
33159866 18412 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 18413
4a32ef80
KT
184142013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18415
18416 PR target/56809
18417 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
18418 next_real_insn.
18419 (thumb1_output_casesi): Likewise.
18420 (thumb2_output_casesi): Likewise.
18421
1b2253d4
RB
184222013-04-03 Richard Biener <rguenther@suse.de>
18423
18424 PR tree-optimization/56817
18425 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
18426 Split out ...
18427 (tree_unroll_loops_completely_1): ... new function to manually
18428 walk the loop tree, properly defering outer loops of unrolled
18429 loops to later iterations.
18430
38000232
MG
184312013-04-03 Marc Glisse <marc.glisse@inria.fr>
18432
18433 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
18434 (vectorizable_load): Likewise.
18435 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
18436 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
18437
3fa35298
MG
184382013-04-03 Marc Glisse <marc.glisse@inria.fr>
18439
18440 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
18441 BIT_FIELD_REF.
18442
b3d45ff0
UW
184432013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18444
18445 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
18446
ec9202a8
BC
184472013-04-03 Bin Cheng <bin.cheng@arm.com>
18448
18449 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
18450
6805bd36
MG
184512013-04-03 Marc Glisse <marc.glisse@inria.fr>
18452
18453 PR tree-optimization/56790
33159866
UB
18454 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
18455 folding.
6805bd36 18456
da694a77
MG
184572013-04-03 Marc Glisse <marc.glisse@inria.fr>
18458
18459 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
18460 Handle VEC_MERGE.
18461 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
18462 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
18463 equal arguments.
18464
4e7d7b3d
JJ
184652013-04-03 Jakub Jelinek <jakub@redhat.com>
18466
18467 PR c/19449
18468 * tree.h (force_folding_builtin_constant_p): New decl.
18469 * builtins.c (force_folding_builtin_constant_p): New variable.
18470 (fold_builtin_constant_p): Fold immediately also if
18471 force_folding_builtin_constant_p.
18472
e6c9d234
RB
184732013-04-03 Richard Biener <rguenther@suse.de>
18474
18475 PR tree-optimization/56812
18476 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
18477 DRs of the same interleaving chain are independent.
18478
984d07dd
JM
184792013-04-02 Jason Merrill <jason@redhat.com>
18480
18481 * gdbinit.in (pbb): Use debug fn.
18482
622849c9
LC
184832013-04-02 Lawrence Crowl <crowl@google.com>
18484
18485 * sese.h (struct ivtype_map_elt_s): Remove unused.
18486 (extern debug_ivtype_map): Remove unused.
18487 (extern eq_ivtype_map_elts): Remove unused.
18488 * sese.c (debug_ivtype_map): Removed unused.
18489 (debug_ivtype_map_1): Removed unused.
18490 (debug_ivtype_elt): Remove unused.
18491 (eq_ivtype_map_elts): Remove unused.
18492
18493
82c0e1a0
KT
184942013-04-02 Kai Tietz <ktietz@redhat.com>
18495
18496 PR target/52790
18497 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
18498 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
18499 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
18500 function.
82c0e1a0
KT
18501 (legitimize_pe_coff_symbol): Likewise.
18502 (is_imported_p): New helper-function.
18503 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
18504 for Windows x64 targets.
18505 (ix86_expand_prologue): Optimize for pe-coff targets.
18506 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
18507 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
18508 medium/large code-model.
18509 (legitimize_pic_address): Likewise.
18510 (legitimize_tls_address): Likewise.
18511 (ix86_expand_call): Likewise.
18512 (x86_output_mi_thunk): Likewise.
18513 (get_dllimport_decl): Add new beimport argument.
18514 (construct_plt_address): Don't assert for x64 pe-coff targets.
18515 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
18516 targets.
18517 (SYMBOL_FLAG_STUBVAR): New macro.
18518 (SYMBOL_REF_STUBVAR_P): Likewise.
18519 * config/i386/winnt.c (stub_list): New structure.
18520 (stub_head): New local variable.
18521 (i386_pe_record_stub): New function.
18522 (i386_pe_file_end): Emit refptr-stubs.
18523
5d751b0c
JJ
185242013-04-02 Jakub Jelinek <jakub@redhat.com>
18525
09bb4c99
JJ
18526 PR rtl-optimization/56745
18527 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
18528 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
18529
a1d8947a
JJ
18530 PR c++/34949
18531 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
18532 and both of them are MEM_REFs, just compare first argument for
18533 equality and attempt to deal even with differing offsets.
18534
5d751b0c
JJ
18535 PR c++/34949
18536 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
18537 of gimple_clobber_p to be MEM_REF.
18538 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
18539 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
18540 after gimplification.
18541 * asan.c (get_mem_ref_of_assignment): Don't instrument
18542 gimple_clobber_p stmts.
18543 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
18544 gimple_clobber_p stmt if they have MEM_REF lhs and
18545 are dead because of another gimple_clobber_p stmt.
18546 * tree-ssa-live.c (clear_unused_block_pointer): Treat
18547 gimple_clobber_p stmts like debug stmts.
18548 (remove_unused_locals): Remove clobbers with MEM_REF lhs
18549 that refer to unused VAR_DECLs or uninitialized values.
18550 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
18551 gimple_clobber_p stmts if they refer to removed parameters.
18552 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
18553 formatting.
18554
e594716a
UB
185552013-04-02 Uros Bizjak <ubizjak@gmail.com>
18556
18557 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
18558 using SWI48 mode attribute.
18559
7a80735b
WM
185602013-04-02 Wei Mi <wmi@google.com>
18561
18562 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
18563 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
18564 *<rotate_insn><mode>3_mask in i386.md.
18565
f423a9e4
AI
185662013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
18567
18568 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
18569
90eb75f2
RB
185702013-04-02 Richard Biener <rguenther@suse.de>
18571
18572 PR tree-optimization/56778
18573 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18574 Runtime alias tests are not supported for gather loads.
18575 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
18576 stmts referenced from SSA operands before updating SSA form.
18577
d8c69a92
IC
185782013-04-02 Ian Caulfield <ian.caulfield@arm.com>
18579 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18580
18581 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
18582 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
18583 * config/arm/cortex-a53.md: New file.
18584 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
18585 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
18586 * config/arm/arm.c (arm_issue_rate): Likewise.
18587 * config/arm/arm-tune.md: Regenerate
18588 * config/arm/arm-tables.opt: Regenerate.
18589 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 18590
239eb04c
ZC
185912013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
18592
18593 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
18594 non-static link.
18595
c902d3c8
SN
185962013-04-02 Sofiane Naci <sofiane.naci@arm.com>
18597
d8c69a92
IC
18598 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
18599 scalar load/store operations using B/H registers.
c902d3c8
SN
18600 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
18601
051d0e2f
SN
186022013-04-02 Sofiane Naci <sofiane.naci@arm.com>
18603
18604 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
18605 scalar move.
18606 * config/aarch64/aarch64.c
18607 (aarch64_simd_scalar_immediate_valid_for_move): New.
18608 * config/aarch64/aarch64-protos.h
18609 (aarch64_simd_scalar_immediate_valid_for_move): New.
18610 * config/aarch64/constraints.md (Dh, Dq): New.
18611 * config/aarch64/iterators.md (hq): New.
18612
0ee1e3d9
EB
186132013-04-02 Eric Botcazou <ebotcazou@adacore.com>
18614
18615 * reorg.c (get_branch_condition): Deal with conditional returns.
18616 (fill_simple_delay_slots): Remove dead code dealing with jumps.
18617
136fb3f7
WM
186182013-04-01 Wei Mi <wmi@google.com>
18619
18620 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
18621 Truncate operand 2 using %b asm operand modifier.
18622 (*<shift_insn><mode>3_mask): Ditto.
18623 (*<rotate_insn><mode>3_mask): Ditto.
18624
6388c738
SB
186252013-04-01 Steven Bosscher <steven@gcc.gnu.org>
18626
18627 PR middle-end/56798
18628 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
18629
f7a4d826
KK
186302013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
18631
18632 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
18633 of next_real_insn.
18634 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
18635
4b943a49
LC
186362013-03-30 Lawrence Crowl <crowl@google.com>
18637
18638 * dse.c (clear_alias_sets): Remove never set.
18639 (disqualified_clear_alias_sets): Remove never set.
18640 (clear_alias_mode_pool): Remove never set.
18641 (dse_step0): Remove condition that is never true.
18642 (canon_address): Remove condition that is never true.
18643 (dse_step7): Remove condition that is never true.
18644 (rest_of_handle_dse): Remove condition that is never true.
18645 (rest_of_handle_dse::did_global): Remove never read from above.
18646 (dse_step2_spill): Remove never called from above.
18647 (dse_step5_spill): Remove never called from above.
18648
39718607
SB
186492013-03-30 Steven Bosscher <steven@gcc.gnu.org>
18650
da5c6bde
SB
18651 * doc/md.texi (Standard Names) <casesi>: Update documentation for
18652 JUMP_TABLE_DATA changes.
18653 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
18654 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
18655 (Insns) <jump_table_data>: New entry.
18656 * doc/tm.texi: Regenerate.
18657
39718607
SB
18658 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
18659
18660 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
18661 for table jump at the end of a basic block using tablejump_p.
18662 * targhooks.c (default_invalid_within_doloop): Likewise.
18663 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
18664 target hook implementation that is identical to the default hook.
18665 (rs6000_invalid_within_doloop): Remove.
18666
18667 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
18668 unused variable from tablejump_p call.
18669
18670 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
18671 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
18672 (INSN_DELETED_P): Likewise.
18673 (emit_jump_table_data): New prototype.
18674 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
18675 after 4th as unused.
18676 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
18677 * sched-vis.c (print_insn): Likewise.
18678 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
18679 insn for compatibility with back ends that use next_active_insn to
18680 identify jump table data.
18681 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
18682 (remove_insn): Likewise.
18683 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
18684 to be emitted.
18685 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
18686 (emit_jump_table_data): New function.
18687
18688 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
18689 basic block, a JUMP_TABLE_DATA never is.
18690 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
18691 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
18692 off from code handling real insns.
18693 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
18694 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
18695 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
18696 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
18697 is not a NONDEBUG_INSN_P.
18698 * ira-costs.c (scan_one_insn): Likewise.
18699 * jump.c (mark_all_labels): Likewise.
18700 (mark_jump_label_1): Likewise.
18701 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
18702 * lra.c (get_insn_freq): Expect all insns reaching here to be in
18703 a basic block.
18704 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
18705 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
18706 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
18707 JUMP_TABLE_DATA_P insns.
18708 (calculate_elim_costs_all_insns): Likewise.
18709 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
18710 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
18711 (delete_output_reload): Code style fixups.
18712 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
18713 insn flags on this non-insn.
18714 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
18715 as scheduling barriers, for pre-change compatibility.
18716 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
18717 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
18718
18719 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
18720 redundant JUMP_TABLE_DATA_P test.
18721 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
18722 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
18723 (frv_for_each_packet): Likewise.
18724 * config/i386/i386.c (min_insn_size): Likewise.
18725 (ix86_avoid_jump_mispredicts): Likewise.
18726 * config/m32r/m32r.c (m32r_is_insn): Likewise.
18727 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
18728 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
18729 (mips16_insn_length): Robustify.
18730 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
18731 (mips16_split_long_branches): Likewise.
18732 * config/pa/pa.c (pa_combine_instructions): Likewise.
18733 * config/rs6000/rs6000.c (get_next_active_insn): Treat
18734 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
18735 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
18736 as contributing to pool range lengths.
18737 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
18738 Remove redundant JUMP_TABLE_DATA_P test.
18739 (sh_loop_align): Likewise.
18740 (split_branches): Likewise.
18741 (sh_insn_length_adjustment): Likewise.
18742 * config/spu/spu.c (get_branch_target): Likewise.
18743
0208f7da
JH
187442013-03-29 Jan Hubicka <jh@suse.cz>
18745
18746 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
18747 gcov streaming; stream hot bb threshold to ltrans.
18748 * predict.c (get_hot_bb_threshold): Break out from ....
18749 (maybe_hot_count_p): ... here.
18750 (set_hot_bb_threshold): New function.
18751 * lto-section-in.c (lto_section_name): Add profile.
18752 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
18753 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
18754 and data-streamer.h
18755 (histogram_entry): New structure.
18756 (histogram, histogram_pool): New global vars.
18757 (histogram_hash): New structure.
18758 (histogram_hash::hash): New method.
18759 (histogram_hash::equal): Likewise.
18760 (account_time_size): New function.
18761 (cmp_counts): New function.
18762 (dump_histogram): New function.
18763 (ipa_profile_generate_summary): New function.
18764 (ipa_profile_write_summary): New function.
18765 (ipa_profile_read_summary): New function.
18766 (ipa_profile): Decide on threshold.
e594716a
UB
18767 (pass_ipa_profile): Add ipa_profile_write_summary and
18768 ipa_profile_read_summary.
0208f7da
JH
18769 * Makefile.in (ipa.o): Update dependencies.
18770 * lto-streamer.h (LTO_section_ipa_profile): New section.
18771
5a6ccc94
GDR
187722013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
18773
18774 * tree.h (VAR_P): New.
18775
39385fa6
PC
187762013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
18777
18778 PR lto/56777
18779 * doc/invoke.texi ([-fwhole-program]): Fix typo.
18780
34f0d87a
SB
187812013-03-29 Steven Bosscher <steven@gcc.gnu.org>
18782
18783 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
18784 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
18785 (control_flow_insn_p): Likewise.
18786 * cfgrtl.c (duplicate_insn_chain): Likewise.
18787 * final.c (get_attr_length_1): Likewise.
18788 (shorten_branches): Likewise.
18789 (final_scan_insn): Likewise.
18790 * function.c (instantiate_virtual_regs): Likewise.
18791 * gcse.c (insert_insn_end_basic_block): Likewise.
18792 * ira-costs.c (scan_one_insn): Likewise.
18793 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
18794 * lra.c (check_rtl): Likewise.
18795 * reload1.c (elimination_costs_in_insn): Likewise.
18796 * reorg.c (follow_jumps): Likewise.
18797
18798 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
18799 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
18800 (thumb_far_jump_used_p): Likewise.
18801 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
18802 (workaround_speculation): Likewise.
18803 (add_sched_insns_for_speculation): Likewise.
18804 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
18805 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
18806 (frv_for_each_packet): Likewise.
18807 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
18808 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
18809 (final_emit_insn_group_barriers): Likewise.
18810 * config/m32r/m32r.c (m32r_is_insn): Likewise.
18811 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
18812 (mips16_insn_length): Likewise.
18813 * config/pa/pa.c (pa_reorg): Likewise.
18814 (pa_combine_instructions): Likewise.
18815 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
18816 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
18817 (sh_reorg): Likewise.
18818 (split_branches): Likewise.
18819 * config/spu/spu.c (get_branch_target): Likewise.
18820
18821 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
18822 JUMP_TABLE_DATA_P.
18823
4ac761b0
KY
188242013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
18825
39385fa6 18826 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
18827 Fix declaration name.
18828
58a49189
LC
188292013-03-28 Lawrence Crowl <crowl@google.com>
18830
18831 * graphds.h (struct graph.indicies): Remove unused.
18832 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
18833 (SCOP_ORIGINAL_PDDRS): Remove unused.
18834 * sese.h (extern insert_loop_close_phis): Removed unused.
18835 (extern insert_guard_phis): Removed unused.
18836 (extern ivtype_map_elt_info): Removed unused.
18837 (new_ivtype_map_elt): Removed unused.
18838 * sese.c (ivtype_map_elt_info): Removed unused.
18839
7b3b6ae4
LC
188402013-03-28 Lawrence Crowl <crowl@google.com>
18841
18842 * Makefile.in: Add several missing include dependences.
18843 (DUMPFILE_H): New.
18844 (test-dump.o): New. This object is not added to any executable,
18845 but is present for ad-hoc testing.
18846 * bitmap.c
18847 (debug (const bitmap_head_def &)): New.
18848 (debug (const bitmap_head_def *)): New.
18849 * bitmap.h
18850 (extern debug (const bitmap_head_def &)): New.
18851 (extern debug (const bitmap_head_def *)): New.
18852 * cfg.c
18853 (debug (edge_def &)): New.
18854 (debug (edge_def *)): New.
18855 * cfghooks.c
18856 (debug (basic_block_def &)): New.
18857 (debug (basic_block_def *)): New.
18858 * dumpfile.h
18859 (dump_node (const_tree, int, FILE *)): Correct source file.
18860 * dwarf2out.c
18861 (debug (die_struct &)): New.
18862 (debug (die_struct *)): New.
18863 * dwarf2out.h
18864 (extern debug (die_struct &)): New.
18865 (extern debug (die_struct *)): New.
18866 * gimple-pretty-print.c
18867 (debug (gimple_statement_d &)): New.
18868 (debug (gimple_statement_d *)): New.
18869 * gimple-pretty-print.h
18870 (extern debug (gimple_statement_d &)): New.
18871 (extern debug (gimple_statement_d *)): New.
18872 * ira-build.c
18873 (debug (ira_allocno_copy &)): New.
18874 (debug (ira_allocno_copy *)): New.
18875 (debug (ira_allocno &)): New.
18876 (debug (ira_allocno *)): New.
18877 * ira-int.h
18878 (extern debug (ira_allocno_copy &)): New.
18879 (extern debug (ira_allocno_copy *)): New.
18880 (extern debug (ira_allocno &)): New.
18881 (extern debug (ira_allocno *)): New.
18882 * ira-lives.c
18883 (debug (live_range &)): New.
18884 (debug (live_range *)): New.
18885 * lra-int.h
18886 (debug (lra_live_range &)): New.
18887 (debug (lra_live_range *)): New.
18888 * lra-lives.c
18889 (debug (lra_live_range &)): New.
18890 (debug (lra_live_range *)): New.
18891 * omega.c
18892 (debug (omega_pb_d &)): New.
18893 (debug (omega_pb_d *)): New.
18894 * omega.h
18895 (extern debug (omega_pb_d &)): New.
18896 (extern debug (omega_pb_d *)): New.
18897 * print-rtl.c
18898 (debug (const rtx_def &)): New.
18899 (debug (const rtx_def *)): New.
18900 * print-tree.c
18901 (debug_tree (tree): Move within file.
18902 (debug_raw (const tree_node &)): New.
18903 (debug_raw (const tree_node *)): New.
18904 (dump_tree_via_hooks (const tree_node *, int)): New.
18905 (debug (const tree_node &)): New.
18906 (debug (const tree_node *)): New.
18907 (debug_verbose (const tree_node &)): New.
18908 (debug_verbose (const tree_node *)): New.
18909 (debug_head (const tree_node &)): New.
18910 (debug_head (const tree_node *)): New.
18911 (debug_body (const tree_node &)): New.
18912 (debug_body (const tree_node *)): New.
18913 (debug_vec_tree (tree): Move and reimplement in terms of dump.
18914 (debug (vec<tree, va_gc> &)): New.
18915 (debug (vec<tree, va_gc> *)): New.
18916 * rtl.h
18917 (extern debug (const rtx_def &)): New.
18918 (extern debug (const rtx_def *)): New.
18919 * sbitmap.c
18920 (debug_raw (simple_bitmap_def &)): New.
18921 (debug_raw (simple_bitmap_def *)): New.
18922 (debug (simple_bitmap_def &)): New.
18923 (debug (simple_bitmap_def *)): New.
18924 * sbitmap.h
18925 (extern debug (simple_bitmap_def &)): New.
18926 (extern debug (simple_bitmap_def *)): New.
18927 (extern debug_raw (simple_bitmap_def &)): New.
18928 (extern debug_raw (simple_bitmap_def *)): New.
18929 * sel-sched-dump.c
18930 (debug (vinsn_def &)): New.
18931 (debug (vinsn_def *)): New.
18932 (debug_verbose (vinsn_def &)): New.
18933 (debug_verbose (vinsn_def *)): New.
18934 (debug (expr_def &)): New.
18935 (debug (expr_def *)): New.
18936 (debug_verbose (expr_def &)): New.
18937 (debug_verbose (expr_def *)): New.
18938 (debug (vec<rtx> &)): New.
18939 (debug (vec<rtx> *)): New.
18940 * sel-sched-dump.h
18941 (extern debug (vinsn_def &)): New.
18942 (extern debug (vinsn_def *)): New.
18943 (extern debug_verbose (vinsn_def &)): New.
18944 (extern debug_verbose (vinsn_def *)): New.
18945 (extern debug (expr_def &)): New.
18946 (extern debug (expr_def *)): New.
18947 (extern debug_verbose (expr_def &)): New.
18948 (extern debug_verbose (expr_def *)): New.
18949 (extern debug (vec<rtx> &)): New.
18950 (extern debug (vec<rtx> *)): New.
18951 * sel-sched-ir.h
18952 (_list_iter_cond_expr): Make inline instead of static.
18953 * sreal.c
18954 (debug (sreal &)): New.
18955 (debug (sreal *)): New.
18956 * sreal.h
18957 (extern debug (sreal &)): New.
18958 (extern debug (sreal *)): New.
18959 * tree.h
18960 (extern debug_raw (const tree_node &)): New.
18961 (extern debug_raw (const tree_node *)): New.
18962 (extern debug (const tree_node &)): New.
18963 (extern debug (const tree_node *)): New.
18964 (extern debug_verbose (const tree_node &)): New.
18965 (extern debug_verbose (const tree_node *)): New.
18966 (extern debug_head (const tree_node &)): New.
18967 (extern debug_head (const tree_node *)): New.
18968 (extern debug_body (const tree_node &)): New.
18969 (extern debug_body (const tree_node *)): New.
18970 (extern debug (vec<tree, va_gc> &)): New.
18971 (extern debug (vec<tree, va_gc> *)): New.
18972 * tree-cfg.c
18973 (debug (struct loop &)): New.
18974 (debug (struct loop *)): New.
18975 (debug_verbose (struct loop &)): New.
18976 (debug_verbose (struct loop *)): New.
18977 * tree-dump.c: Add header dependence.
18978 * tree-flow.h
18979 (extern debug (struct loop &)): New.
18980 (extern debug (struct loop *)): New.
18981 (extern debug_verbose (struct loop &)): New.
18982 (extern debug_verbose (struct loop *)): New.
18983 * tree-data-ref.c
18984 (debug (data_reference &)): New.
18985 (debug (data_reference *)): New.
18986 (debug (vec<data_reference_p> &)): New.
18987 (debug (vec<data_reference_p> *)): New.
18988 (debug (vec<ddr_p> &)): New.
18989 (debug (vec<ddr_p> *)): New.
18990 * tree-data-ref.h
18991 (extern debug (data_reference &)): New.
18992 (extern debug (data_reference *)): New.
18993 (extern debug (vec<data_reference_p> &)): New.
18994 (extern debug (vec<data_reference_p> *)): New.
18995 (extern debug (vec<ddr_p> &)): New.
18996 (extern debug (vec<ddr_p> *)): New.
18997 * tree-ssa-alias.c
18998 (debug (pt_solution &)): New.
18999 (debug (pt_solution *)): New.
19000 * tree-ssa-alias.h
19001 (extern debug (pt_solution &)): New.
19002 (extern debug (pt_solution *)): New.
19003 * tree-ssa-alias.c
19004 (debug (_var_map &)): New.
19005 (debug (_var_map *)): New.
19006 (debug (tree_live_info_d &)): New.
19007 (debug (tree_live_info_d *)): New.
19008 * tree-ssa-alias.h
19009 (extern debug (_var_map &)): New.
19010 (extern debug (_var_map *)): New.
19011 (extern debug (tree_live_info_d &)): New.
19012 (extern debug (tree_live_info_d *)): New.
19013
be77e1e5
JH
190142013-03-28 Jan Hubicka <jh@suse.cz>
19015
19016 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
19017
777e6976
IB
190182013-03-28 Ian Bolton <ian.bolton@arm.com>
19019
19020 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
19021 record only when desired or required.
19022
9cd347ae
UB
190232013-03-28 Uros Bizjak <ubizjak@gmail.com>
19024
19025 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
19026 *vec_extractv2di_1_rex64. Use x64 isa attribute.
19027
33159866 190282013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
19029
19030 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
19031 (*andsi3_compare0_uxtw): New pattern.
19032 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
19033 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
19034
89ab31c1
JH
190352013-03-28 Jan Hubicka <jh@suse.cz>
19036
19037 * data-streamer-in.c (streamer_read_gcov_count): New function.
19038 * gimple-streamer-out.c: Include value-prof.h.
19039 (output_gimple_stmt): Output histogram.
19040 (output_bb): Use streamer_write_gcov_count.
19041 * value-prof.c: Include data-streamer.h
19042 (dump_histogram_value): Add HIST_TYPE_MAX.
19043 (stream_out_histogram_value): New function.
19044 (stream_in_histogram_value): New function.
19045 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
19046 (stream_out_histogram_value, stream_in_histogram_value): Declare.
19047 * data-streamer-out.c (streamer_write_gcov_count): New function.
19048 (streamer_write_gcov_count_stream): New function.
19049 * lto-cgraph.c (lto_output_edge): Update counter streaming.
19050 (lto_output_node): Likewise.
19051 (input_node, input_edge): Likewise.
19052 * lto-streamer-out.c (output_cfg): Update streaming.
19053 * lto-streamer-in.c (input_cfg): Likewise.
19054 * data-streamer.h (streamer_write_gcov_count,
19055 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
19056 * gimple-streamer-in.c: Include value-prof.h
19057 (input_gimple_stmt): Input histograms.
19058 (input_bb): Update profile streaming.
19059
e594716a 190602013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 19061
33159866 19062 * genmodes.c (emit_max_int): New function.
8697be17 19063 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
19064 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
19065 Added doc.
8697be17 19066 * machmode.def: Fixed comment.
89ab31c1 19067
e594716a 190682013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
19069
19070 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
19071 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
19072
74946978
MP
190732013-03-28 Marek Polacek <polacek@redhat.com>
19074 Richard Biener <rguenther@suse.de>
19075
19076 PR tree-optimization/56695
19077 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
19078 build signed result of a vector comparison.
19079 * tree-cfg.c (verify_gimple_comparison): Check that a result
19080 of a vector comparison has signed type.
19081
a64b9c26
RB
190822013-03-28 Richard Biener <rguenther@suse.de>
19083
19084 PR tree-optimization/37021
19085 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
19086 do not restrict gaps between groups.
19087 * tree-vect-stmts.c (vectorizable_load): Properly account for
19088 a gap between groups.
19089
a9dc2a2f
EB
190902013-03-28 Eric Botcazou <ebotcazou@adacore.com>
19091
19092 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
19093 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
19094 is not enabled.
19095
53cb97f9
GP
190962013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
19097
19098 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
19099 * doc/extend.texi (Named Address Spaces): Ditto.
19100 (Variable Attributes): Ditto.
19101
b802ae5c
KT
191022013-03-27 Kai Tietz <ktietz@redhat.com>
19103
eddae10a
KT
19104 * config.build: Add support for cygwin x64 target.
19105 * config.gcc: Likewise.
19106 * config.host: Likewise.
19107 * configure.ac: Likewise
19108 * configure: Regenerated.
b802ae5c 19109
371e77e3 191102013-03-27 Kai Tietz <ktietz@redhat.com>
8269de54
KT
19111
19112 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
19113 * config/i386/t-cygwin-w64: New file.
19114 * config/i386/cygwin-w64.h: New file.
19115 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
19116 and add support for x64-cygwin target.
19117 (CPP_SPEC): Likewise.
19118 (CXX_WRAP_SPEC_LIST): Undefine before define.
19119 (LIBGCJ_SONAME): Use 15 as version.
19120
f49b33cb
RB
191212013-03-27 Richard Biener <rguenther@suse.de>
19122
19123 PR tree-optimization/56716
19124 * tree-ssa-structalias.c (perform_var_substitution): Adjust
19125 dumping for ref nodes.
19126
b37a6ce5
MJ
191272013-03-27 Martin Jambor <mjambor@suse.cz>
19128
19129 PR tree-optimization/55334
19130 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
19131 restricted pointers to arrays.
19132
9469b9b2
GDR
191332013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
19134
19135 * Makefile.in (.SUFFIXES): Add .cc.
19136 (.c.o): Apply same recipe for implicit rule .cc.o.
19137
7d24f650
RB
191382013-03-27 Richard Biener <rguenther@suse.de>
19139
19140 PR tree-optimization/37021
19141 * tree-vect-data-refs.c (vect_check_strided_load): Allow
19142 REALPART/IMAGPART_EXPRs around the supported refs.
19143 * tree-ssa-structalias.c (find_func_aliases): Assume that
19144 floating-point values are not used to transfer pointers.
19145
2f251a05
AI
191462013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
19147
f43245d1
UB
19148 * target.def (TARGET_HAS_IFUNC_P): New target hook.
19149 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
19150 * doc/tm.texi: Regenerate.
19151 * targhooks.h (default_has_ifunc_p): New.
19152 * targhooks.c (default_has_ifunc_p): Ditto.
19153 * config/linux-protos.h: New file.
19154 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
19155 hook for linux which disables support of indirect functions in android.
19156 * config/linux-android.c: New file.
19157 * config/t-linux-android.c: Ditto.
19158 * config.gcc: Added new object file linux-android.o.
19159 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 19160 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
f43245d1 19161 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
19162 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
19163 doesn't support indirect functions.
19164 * configure: Regenerate.
19165
78b4e425
BC
191662013-03-27 Bin Cheng <bin.cheng@arm.com>
19167
19168 PR target/56102
19169 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
19170 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
19171 mult-word mode.
19172
a5ba7b92
AK
191732013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19174
19175 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
19176
be624986
TG
191772013-03-27 Terry Guo <terry.guo@arm.com>
19178
19179 * config/arm/arm-cores.def: Added core cortex-r7.
19180 * config/arm/arm-tune.md: Regenerated.
19181 * config/arm/arm-tables.opt: Regenerated.
19182 * doc/invoke.texi: Added entry for core cortex-r7.
19183
0a514f47
WL
191842013-03-27 Walter Lee <walt@tilera.com>
19185
19186 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
19187 double-decrement of next_scratch_regno.
19188
9332b0d2
WL
191892013-03-27 Walter Lee <walt@tilera.com>
19190
801d9b2a 19191 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
19192 input operands.
19193 (insn_v1mulus): Ditto.
19194 (insn_v2muls): Ditto.
19195
f54ea5dd
WL
191962013-03-27 Walter Lee <walt@tilera.com>
19197
e594716a 19198 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
19199 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
19200
bf60f4ca
WL
192012013-03-27 Walter Lee <walt@tilera.com>
19202
e594716a 19203 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
19204 (*sibcall_value): Ditto.
19205
e3b51eeb
WL
192062013-03-27 Walter Lee <walt@tilera.com>
19207
19208 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
19209 (insn_mnz_v8qi): ... this ...
19210 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
19211 vector equivalent.
19212 (insn_v<n>mnz): Replaced by ...
19213 (insn_v1mnz): ... this ...
19214 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
19215 equivalent.
19216 (insn_mz_<mode>): Replaced by ...
19217 (insn_mz_v8qi): ... this ...
19218 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
19219 vector equivalent.
19220 (insn_v<n>mz): Replaced by ...
19221 (insn_v1mz): ... this ...
19222 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
19223 equivalent.
19224
4fc7b145
EB
192252013-03-26 Eric Botcazou <ebotcazou@adacore.com>
19226
19227 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
19228
6f33817e
RM
192292013-03-26 Roland McGrath <mcgrathr@google.com>
19230
19231 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
19232 than fprintf with a non-constant, non-format string.
19233
93a4145b
UB
192342013-03-26 Uros Bizjak <ubizjak@gmail.com>
19235
19236 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
19237 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
19238 operand 0 predicate.
19239 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
19240 attribute. Use general_x64nomem_operand as operand 1 predicate.
19241 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
19242 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
19243 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
19244 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
19245 (mov<mode>_insv_1): Remove expander. Merge insn with
19246 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
19247 Use general_x64nomem_operand as operand 1 predicate.
19248 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
19249 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
19250 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
19251 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
19252 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
19253 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
19254 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
19255 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
19256 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
19257 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
19258 (general_x64nomem_operand): Ditto.
19259
c6a9ed5a 192602013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
19261
19262 * config/rtems.opt: Add -pthread option.
19263
31b0a960
RB
192642013-03-26 Richard Biener <rguenther@suse.de>
19265
93a4145b
UB
19266 * alias.c (find_base_term): Avoid redundant and not used recursion.
19267 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
19268 (true_dependence_1): Compute and pass base terms to base_alias_check.
19269 (write_dependence_p): Likewise.
19270 (may_alias_p): Likewise.
19271
79517551
SN
192722013-03-26 Sofiane Naci <sofiane.naci@arm.com>
19273
19274 * config/aarch64/aarch64.c (aarch64_classify_address): Support
19275 PC-relative load in SI modes and above only.
19276
a76213b9
XQ
192772013-03-26 Xinyu Qi <xyqi@marvell.com>
19278
19279 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
19280 * config/arm/iwmmxt.md (WCGR0): Update.
19281 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 19282
37ff9355
UB
192832013-03-26 Uros Bizjak <ubizjak@gmail.com>
19284
19285 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
19286 Use x64 and nox64 isa attributes.
19287
30b0317c
RB
192882013-03-26 Richard Biener <rguenther@suse.de>
19289
19290 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
19291 alignment computations and rely on get_object_alignment_1
19292 for the !TYPE_P case.
19293 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
19294
cbcdb140
WL
192952013-03-26 Walter Lee <walt@tilera.com>
19296
19297 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
19298 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
19299
dd884525 193002013-03-25 Jeff Law <law@redhat.com>
be672e08 19301
33159866
UB
19302 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
19303 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
19304 wrong version of prior patch.
19305
0051d3ec
WL
193062013-03-25 Walter Lee <walt@tilera.com>
19307
19308 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
19309 TILEGX_INSN_SHUFFLEBYTES1.
19310 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
19311 shufflebytes1.
19312 (tilegx_builtins): Ditto.
19313 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
19314
065a3605
WL
193152013-03-25 Walter Lee <walt@tilera.com>
19316
19317 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
19318 (floatunssisf2): New pattern.
19319 (floatsidf2): New pattern.
19320 (floatunssidf2): New pattern.
065a3605 19321
5b2a3c82
WL
193222013-03-25 Walter Lee <walt@tilera.com>
19323
19324 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
19325 tests for constraint J, K, N, P.
19326
192ea533
WL
193272013-03-25 Walter Lee <walt@tilera.com>
19328
19329 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
19330 Use indirect/pcrel encoding.
19331 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
19332 Ditto.
19333
855e0d0b
SE
193342013-03-25 Steve Ellcey <sellcey@mips.com>
19335
19336 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
19337 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
19338 * config/mips/mips.c (mips_option_override): Set IMADD default.
19339 * config/mips/mips.h (PTF_AVOID_IMADD): New.
19340 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
19341 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
19342 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
19343 * doc/invoke.texi (-mimadd/-mno-imadd): New.
19344
39e45653
JL
193452013-03-25 Jeff Law <law@redhat.com>
19346
19347 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
19348 slightly to avoid creating and folding useless trees. Simplify
19349 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
19350
7482c470
UB
193512013-03-25 Uros Bizjak <ubizjak@gmail.com>
19352
19353 * config/i386/i386.md (*zero_extendsidi2): Merge with
19354 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
19355 * config/i386/predicates.md (x86_64_zext_operand): Rename from
19356 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
19357 targets. Clarify comment.
19358
4a53743e
MJ
193592013-03-25 Martin Jambor <mjambor@suse.cz>
19360
19361 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
19362 pass-through jump functions differently.
19363 (ipa_read_jump_function): Likewise. Also use setter functions to set
19364 up jump functions.
19365
162712de
MJ
193662013-03-25 Martin Jambor <mjambor@suse.cz>
19367
19368 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
19369 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
19370 process it.
19371 (ipa_get_indirect_edge_target): New function.
19372 (devirtualization_time_bonus): New parameter known_aggs, pass it to
19373 ipa_get_indirect_edge_target. Update all callers.
19374 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
19375 ipa_get_indirect_edge_target_1 instead of calling
19376 ipa_get_indirect_edge_target.
19377 (create_specialized_node): Pass aggvlas to
19378 ipcp_discover_new_direct_edges.
19379
a5a4c20a
KT
193802013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19381
19382 * config/arm/arm.md (f_sels, f_seld): New types.
19383 (*cmov<mode>): New pattern.
19384 * config/arm/predicates.md (arm_vsel_comparison_operator): New
19385 predicate.
19386
f992b9fc
KT
193872013-03-25 Kai Tietz <ktietz@redhat.com>
19388
19389 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
19390 POSIX-printf for mingw-hosted builds.
19391
c16fd676
RB
193922013-03-25 Richard Biener <rguenther@suse.de>
19393
19394 PR middle-end/56694
19395 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
19396 must-not-throw stmt location.
19397
5ad29f12
KT
193982013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19399
19400 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
19401 Emit load-acquire versions when acq is true.
19402 (arm_emit_store_exclusive): Add rel parameter.
19403 Emit store-release versions when rel is true.
19404 (arm_split_compare_and_swap): Use acquire-release instructions
19405 instead.
19406 of barriers when appropriate.
19407 (arm_split_atomic_op): Likewise.
19408 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
19409 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
19410 (VUNSPEC_SLX): Likewise.
19411 (VUNSPEC_LDA): Likewise.
19412 (VUNSPEC_STL): Likewise.
19413 * config/arm/sync.md (atomic_load<mode>): New pattern.
19414 (atomic_store<mode>): Likewise.
19415 (arm_load_acquire_exclusive<mode>): Likewise.
19416 (arm_load_acquire_exclusivesi): Likewise.
19417 (arm_load_acquire_exclusivedi): Likewise.
19418 (arm_store_release_exclusive<mode>): Likewise.
19419
03a7dddb
CM
194202013-03-25 Catherine Moore <clm@codesourcery.com>
19421
19422 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
19423 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
19424 * config/mip/predicates.md (lwsp_swsp_operand,
19425 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
19426 sb16_operand, db4_operand, db7_operand, ib3_operand,
19427 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
19428 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
19429 andi16_operand): New predicates.
19430 * config/mips/mips.md (compression): New attribute.
19431 (enabled): New attribute.
19432 (length): Consider compression in computing length.
19433 (shift_compression): New code attribute.
19434 (*add<mode>3): New operands. Record compression.
19435 (sub<mode>3): Likewise.
19436 (one_cmpl<mode>2): Likewise.
19437 (*and<mode>3): Likewise.
19438 (*ior<mode>3): Likewise.
19439 (unnamed pattern for xor): Likewise.
19440 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
19441 (*<optab><mode>3): Likewise.
19442 (*mov<mode>_internal: Likewise.
19443 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
19444 (mips_unsigned_immediate_p): New.
19445 (umips_lwsp_swsp_address_p): New.
19446 (m16_based_address_p): New.
19447 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
19448 (mips_unsigned_immediate_p): New prototype.
19449 (lwsp_swsp_address_p): New prototype.
19450 (m16_based_address_p): New prototype.
19451 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
19452 (mips_signed_immediate_p): New function.
19453 (m16_based_address_p): New function.
19454 (lwsp_swsp_address_p): New function.
19455 (mips_print_operand_punctuation): Recognize short delay slot insns
19456 for microMIPS.add<mode>3"
19457
f35c297f 194582013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 19459
f35c297f
KT
19460 PR target/56720
19461 * config/arm/iterators.md (v_cmp_result): New mode attribute.
19462 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
19463
051b9446
RB
194642013-03-25 Richard Biener <rguenther@suse.de>
19465
19466 PR tree-optimization/56689
19467 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
19468 any edge.
19469
374001cb
RB
194702013-03-25 Richard Biener <rguenther@suse.de>
19471
19472 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
19473 of bitmap.
19474 (memory_references): Likewise.
19475 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
19476 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
19477 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
19478 (gather_mem_refs_in_loops): Fold into ...
19479 (analyze_memory_references): ... this. Move initialization
19480 to tree_ssa_lim_initialize.
19481 (fill_always_executed_in): Rename to ...
19482 (fill_always_executed_in_1): ... this.
19483 (fill_always_executed_in): Move contains_call computation to
19484 this new function from ...
19485 (tree_ssa_lim_initialize): ... here.
19486 (tree_ssa_lim): Call fill_always_executed_in.
19487
57895947
EB
194882013-03-25 Eric Botcazou <ebotcazou@adacore.com>
19489
19490 * postreload.c (reload_combine): Fix code detecting returns.
19491
1e1b18c1
EB
194922013-03-25 Eric Botcazou <ebotcazou@adacore.com>
19493
19494 * function.c (emit_use_return_register_into_block): On cc0 targets,
19495 do not emit the sequence between cc0 setter and user.
19496
9216baf1
KT
194972013-03-25 Kai Tietz <ktietz@redhat.com>
19498
1e1b18c1
EB
19499 * config/i386/predicates.md (local_symbolic_operand): Interpret
19500 dll-imported symbols as none-local.
9216baf1 19501
76421b44
RB
195022013-03-25 Richard Biener <rguenther@suse.de>
19503
19504 * tree-ssa-loop-im.c (struct depend): Remove.
19505 (struct lim_aux_data): Make depends a vec of gimples.
19506 (free_lim_aux_data): Adjust.
19507 (add_dependency): Likewise.
19508 (set_level): Likewise.
19509
d154bfa2
RB
195102013-03-25 Richard Biener <rguenther@suse.de>
19511
19512 PR middle-end/56434
19513 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
19514 the pointer returned by calls with ECF_MALLOC set.
19515
2cd9804e
UB
195162013-03-24 Uros Bizjak <ubizjak@gmail.com>
19517
acef5fe0
UB
19518 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
19519
195202013-03-24 Uros Bizjak <ubizjak@gmail.com>
19521
19522 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
19523 using MMXMODE mode iterator.
19524 (*move<mode>_internal): Merge with *movv2sf_internal and
19525 *movv2sf_internal_rex64 using MMXMODE mode iterator.
19526
225ccc68
SB
195272013-03-23 Steven Bosscher <steven@gcc.gnu.org>
19528
85c0f02d
SB
19529 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
19530 (record_last_mem_set_info): Likewise.
19531
225ccc68
SB
19532 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
19533 of XNEWVEC followed by memset.
19534 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
19535
b64925dc
SB
195362013-03-23 Steven Bosscher <steven@gcc.gnu.org>
19537
19538 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19539 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
19540 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
19541 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
19542 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
19543 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
19544 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
19545 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
19546 BARRIER_P instead of GET_CODE.
19547
b9aaf52e
EB
195482013-03-23 Eric Botcazou <ebotcazou@adacore.com>
19549
19550 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
19551 inaccuracy in the probing code.
19552
19553 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
19554 (ctrapdi4): Likewise.
19555
66de4d7c
EB
195562013-03-23 Eric Botcazou <ebotcazou@adacore.com>
19557
19558 * calls.c (expand_call): Add missing guard to code handling return
19559 of non-BLKmode structures in MSB.
19560 * function.c (expand_function_end): Likewise.
19561
4f25c8fb
EB
195622013-03-23 Eric Botcazou <ebotcazou@adacore.com>
19563
19564 * combine.c (try_combine): Adjust comment. Do not add the set of
19565 insn #0 if the destination indirectly is set or dies in insn #2.
19566 Tidy up code to distribute a new note.
19567
23b7850d
UB
195682013-03-22 Uros Bizjak <ubizjak@gmail.com>
19569
19570 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
19571 also for alternatives 16 and 17.
19572
bed852cf
UB
195732013-03-22 Uros Bizjak <ubizjak@gmail.com>
19574
19575 * config/i386/sse.md (*mov<mode>_internal): Merge with
19576 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
19577 Emit insn template depending on type attribute. Use
19578 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
19579 movd instead of movq mnemonic for interunit moves. Rewrite mode
19580 attribute calculation. Remove unit attribute calculation.
19581 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
19582 Set prefix_data16 attribute for DImode ssemov types.
19583 Use Ym instead of y for SSE-MMX conversion alternatives.
19584 Reorder operand constraints.
19585
1e8a7937
SB
195862013-03-22 Steven Bosscher <steven@gcc.gnu.org>
19587
19588 * df.h (df_insn_delete): Adjust prototype.
19589 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
19590 and let it decide whether mark the basic block dirty.
19591 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
19592 * df-scan.c (df_insn_info_delete): New helper function, split
19593 off from df_insn_delete.
19594 (df_scan_free_bb_info): Use it.
19595 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
19596 Likewise.
19597 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
19598 that the insn is actually an insn and it has a non-NULL basic block.
19599 Do not mark basic block dirty if only deleting a DEBUG_INSN.
19600
e14d094c
RB
196012013-03-22 Richard Biener <rguenther@suse.de>
19602
19603 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
19604 dep_ref members.
19605 (mem_ref_alloc): Do not allocate them.
19606 (refs_independent_p): Do not query or maintain a cache.
19607
e9cf7316
RB
196082013-03-22 Richard Biener <rguenther@suse.de>
19609
19610 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
19611 (gather_mem_refs_in_loops): Do not compute it.
19612 (analyze_memory_references): Do not allocate it.
19613 (tree_ssa_lim_finalize): Do not free it.
19614 (for_all_locs_in_loop): Do not query all_refs_in_loop.
19615
f046e81b
RB
196162013-03-22 Richard Biener <rguenther@suse.de>
19617
19618 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 19619
a05c0ddf
IB
196202013-03-22 Ian Bolton <ian.bolton@arm.com>
19621
19622 * config/aarch64/aarch64.c (aarch64_print_operand): New
19623 format specifier for printing a constant in hex.
19624 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
19625 format specifier for printing second operand.
19626
c00217fc
RB
196272013-03-22 Richard Biener <rguenther@suse.de>
19628
19629 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
19630 bitmaps.
19631 (gather_mem_refs_in_loops): Perform store accumulation here.
19632 (create_vop_ref_mapping_loop): Remove.
19633 (create_vop_ref_mapping): Likewise.
19634 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 19635 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
19636 (record_indep_loop): Remove.
19637 (record_dep_loop): New function.
19638 (ref_indep_loop_p_1): Adjust to only walk over references
19639 in the loop, not its subloops.
19640 (ref_indep_loop_p): Rename to ...
19641 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
19642 maintaining a more fine-grained cache.
19643 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
19644 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
19645
15d19bf8
RB
196462013-03-22 Richard Biener <rguenther@suse.de>
19647
19648 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
19649 (struct mem_ref): Make accesses_in_loop a vec of a vec of
19650 aggregate mem_ref_loc.
19651 (free_mem_ref_locs): Inline into ...
19652 (memref_free): ... this and adjust.
19653 (mem_ref_alloc): Adjust.
19654 (mem_ref_locs_alloc): Remove.
19655 (record_mem_ref_loc): Adjust.
19656 (get_all_locs_in_loop): Rewrite into ...
19657 (for_all_locs_in_loop): ... this iterator.
19658 (rewrite_mem_ref_loc): New functor.
19659 (rewrite_mem_refs): Use for_all_locs_in_loop.
19660 (sm_set_flag_if_changed): New functor.
19661 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
19662 (ref_always_accessed): New functor.
19663 (ref_always_accessed_p): Use for_all_locs_in_loop.
19664
6f37411d
MG
196652013-03-21 Marc Glisse <marc.glisse@inria.fr>
19666
19667 * tree-pass.h (PROP_gimple_lvec): New.
19668 * passes.c (dump_properties): Handle PROP_gimple_lvec.
19669 (init_optimization_passes): Move pass_lower_vector.
19670 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
19671 PROP_gimple_lvec.
19672 (pass_lower_vector): Provide PROP_gimple_lvec.
19673 (pass_lower_vector_ssa): Likewise.
19674 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
19675
511ef689
MW
196762013-03-21 Mark Wielaard <mjw@redhat.com>
19677
19678 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
19679
cc1df30b
UB
196802013-03-21 Uros Bizjak <ubizjak@gmail.com>
19681
19682 * config/i386/i386.md (*movdi_internal): Disparage slightly
19683 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
19684 conversion alternatives.
19685
c845cfe1
JJ
196862013-03-21 Jakub Jelinek <jakub@redhat.com>
19687
37e99116
JJ
19688 PR middle-end/48087
19689 * diagnostic.def (DK_WERROR): New kind.
19690 * diagnostic.h (werrorcount): Define.
19691 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
19692 promoted to DK_ERROR, increment DK_WERROR counter instead of
19693 DK_ERROR counter.
19694 * toplev.c (toplev_main): Call print_ignored_options even if
19695 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
19696 even if just werrorcount is non-zero.
19697
c845cfe1
JJ
19698 PR debug/55608
19699 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
19700 on failure.
19701 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
19702 (string_cst_pool_decl): New function.
19703 (optimize_one_addr_into_implicit_ptr): New function.
19704 (resolve_addr_in_expr): Optimize DWARF location expression
19705 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
19706 which doesn't live in memory, but has DW_AT_location or
19707 DW_AT_const_value, or refers to a string literal, into
19708 DW_OP_GNU_implicit_pointer.
19709 (optimize_location_into_implicit_ptr): New function.
19710 (resolve_addr): If removing DW_AT_location of a variable because
19711 it was DW_OP_addr of address of the variable, but the variable doesn't
19712 live in memory, try to emit const value attribute for the initializer.
19713
08e0cda6
MG
197142013-03-21 Marc Glisse <marc.glisse@inria.fr>
19715
19716 * tree.h (VECTOR_TYPE_P): New macro.
19717 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
19718 TYPE_MODE): Use it.
19719 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
19720 VEC_COND_EXPR cannot be lvalues.
19721 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
19722
d08633b4
MG
197232013-03-21 Marc Glisse <marc.glisse@inria.fr>
19724
19725 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
19726 Restrict the transformation to equal modes.
19727
e6647190
RB
197282013-03-21 Richard Biener <rguenther@suse.de>
19729
19730 PR tree-optimization/39326
19731 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
19732 (MEM_ANALYZABLE): Adjust.
19733 (record_mem_ref_loc): Move bitmap ops ...
19734 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
19735 unanalyzable refs, do not record locations for it.
19736 (analyze_memory_references): Allocate ref zero as shared
19737 unanalyzable ref.
19738 (refs_independent_p): Do not test for unanalyzed mems here.
19739 (ref_indep_loop_p_1): Special-case disambiguation against
19740 the unanalyzed ref.
cc1df30b 19741 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 19742
65074f54
CL
197432013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
19744
19745 * config/arm/arm-protos.h (tune_params): Add
19746 prefer_neon_for_64bits field.
19747 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
19748 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
19749 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
19750 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
19751 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
19752 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
19753 (arm_option_override): Handle -mneon-for-64bits new option.
19754 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
19755 (prefer_neon_for_64bits): Declare new variable.
19756 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 19757 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
19758 (arch_enabled): Handle new arch types. Remove support for onlya8
19759 and nota8.
19760 (one_cmpldi2): Use new arch names.
bc5faa5b 19761 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
19762 * config/arm/arm.opt (mneon-for-64bits): Add option.
19763 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
19764 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
19765 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
19766 of onlya8.
19767 * doc/invoke.texi (-mneon-for-64bits): Document.
19768
5a2d2a79
RB
197692013-03-21 Richard Biener <rguenther@suse.de>
19770
19771 PR tree-optimization/39326
19772 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
19773 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 19774 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 19775
5abe1e05
RB
197762013-03-21 Richard Biener <rguenther@suse.de>
19777
19778 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
19779 (vect_insert_into_interleaving_chain): Likewise.
19780 (vect_drs_dependent_in_basic_block): Inline ...
19781 (vect_slp_analyze_data_ref_dependence): ... here. New function,
19782 split out from ...
19783 (vect_analyze_data_ref_dependence): ... here. Simplify.
19784 (vect_check_interleaving): Simplify.
19785 (vect_analyze_data_ref_dependences): Likewise. Split out ...
19786 (vect_slp_analyze_data_ref_dependences): ... this new function.
19787 (dr_group_sort_cmp): New function.
19788 (vect_analyze_data_ref_accesses): Compute data-reference groups
19789 here instead of in vect_analyze_data_ref_dependence. Use
19790 a more efficient algorithm.
19791 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
19792 vect_slp_analyze_data_ref_dependences. Call
19793 vect_analyze_data_ref_accesses earlier.
19794 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19795 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
19796 (vect_slp_analyze_data_ref_dependences): New prototype.
19797
cad1735b
RB
197982013-03-21 Richard Biener <rguenther@suse.de>
19799
19800 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
19801 ref is stored in the loop.
19802 (find_refs_for_sm): Walk only over all stores.
19803 (store_motion_loop): Allocate from lim_bitmap_obstack.
19804 (store_motion): Likewise.
19805
141310ef
RB
198062013-03-21 Richard Biener <rguenther@suse.de>
19807
19808 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
19809 Update virtual SSA form.
19810
5022315a
RO
198112013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19812
19813 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
19814 * configure: Regenerate.
19815 * config.in: Regenerate.
19816 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
19817 if !HAVE_LD_EH_FRAME_CIEV3.
19818
50d4421c
RB
198192013-03-21 Richard Biener <rguenther@suse.de>
19820
19821 * tree-cfg.c (verify_expr_no_block): New function.
19822 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
19823 nor DECL_VALUE_EXPR have locations with associated blocks.
19824 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
19825 (clear_unused_block_pointer): Remove code dealing with
19826 blocks in DECL_DEBUG_EXPR locations.
19827
839b422f
RB
198282013-03-21 Richard Biener <rguenther@suse.de>
19829
19830 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
19831 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
19832 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
19833 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
19834 instead of DECL_DEBUG_EXPR_IS_FROM.
19835 * gimplify.c (gimplify_modify_expr): Likewise.
19836 * tree-cfg.c (verify_expr_location_1): Likewise.
19837 * tree-complex.c (create_one_component_var): Likewise.
19838 * tree-sra.c (create_access_replacement): Likewise.
19839 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
19840 (clear_unused_block_pointer): Likewise.
19841 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
19842 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19843 * var-tracking.c (var_debug_decl): Likewise.
19844 (track_expr_p): Likewise.
19845 * tree-inline.c (add_local_variables): Likewise. Set
19846 DECL_HAS_DEBUG_EXPR_P after copying it.
19847 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
19848 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
19849
fe04878d
UB
198502013-03-21 Uros Bizjak <ubizjak@gmail.com>
19851
19852 PR bootstrap/56656
19853 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
19854 * configure: Regenerate.
19855 * config.in: Regenerate.
19856 * config/i386/i386.md (*movdf_internal): Use
19857 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
19858 movd instead of movq mnemonic for interunit moves.
19859 (*movdi_internal): Ditto.
19860
bd059b26 198612013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
19862
19863 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
19864 (abd<mode>_3): New pattern.
19865 (aba<mode>_3): New pattern.
19866 (fabd<mode>_3): New pattern.
19867
bd059b26 198682013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
19869
19870 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
19871 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
19872 occurrence of REGISTER_PREFIX as its empty string.
19873
4f1f78b9
JL
198742013-03-20 Jeff Law <law@redhat.com>
19875
19876 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
19877 addititional equivalences for equality comparisons between an SSA_NAME
19878 and a constant where the SSA_NAME was set from a widening conversion.
19879
327a1118
WL
198802013-03-20 Walter Lee <walt@tilera.com>
19881
19882 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
19883
813e0036
UB
198842013-03-20 Uros Bizjak <ubizjak@gmail.com>
19885
19886 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
19887 depending on type attribute.
19888 (*movti_internal): Ditto.
19889 (*movtf_internal): Ditto.
19890 (*movxf_internal): Ditto.
19891 (*movdf_internal): Ditto.
19892 (*movsf_internal): Ditto.
19893
7cf34aae
UB
198942013-03-20 Uros Bizjak <ubizjak@gmail.com>
19895
19896 * config/i386/i386.md (*movti_internal): Set prefix attribute to
19897 maybe_vex for sselog1 and ssemov types.
19898 (*movdi_internal): Reorder operand constraints.
19899 (*movsi_internal): Ditto. Set prefix attribute to
19900 maybe_vex for sselog1 and ssemov types.
19901 (*movtf_internal): Set prefix attribute to maybe_vex
19902 for sselog1 and ssemov types.
19903 (*movdf_internal): Ditto. Set prefix_data16 attribute for
19904 DImode ssemov types. Reorder operand constraints.
19905 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
19906 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
19907 attribute for SImode ssemov types. Reorder operand constraints.
19908
19321415
MJ
199092013-03-20 Martin Jambor <mjambor@suse.cz>
19910
19911 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
19912 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
19913
12211b99 199142013-03-20 Pat Haugen <pthaugen@us.ibm.com>
c6d5ff83
MM
19915
19916 * config/rs6000/predicates.md (indexed_address, update_address_mem
19917 update_indexed_address_mem): New predicates.
19918 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
19919 attribute for load/store instructions.
19920 * config/rs6000/dfp.md (movsd_store): Likewise.
19921 (movsd_load): Likewise.
19922 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
19923 (unnamed HI->DI extend define_insn): Likewise.
19924 (unnamed SI->DI extend define_insn): Likewise.
19925 (unnamed QI->SI extend define_insn): Likewise.
19926 (unnamed QI->HI extend define_insn): Likewise.
19927 (unnamed HI->SI extend define_insn): Likewise.
19928 (unnamed HI->SI extend define_insn): Likewise.
19929 (extendsfdf2_fpr): Likewise.
19930 (movsi_internal1): Likewise.
19931 (movsi_internal1_single): Likewise.
19932 (movhi_internal): Likewise.
19933 (movqi_internal): Likewise.
19934 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
19935 attribute for load/store instructions.
19936 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
19937 instructions.
19938 (mov<mode>_softfloat): Likewise.
19939 (mov<mode>_hardfloat32): Likewise.
19940 (mov<mode>_hardfloat64): Likewise.
19941 (mov<mode>_softfloat64): Likewise.
19942 (movdi_internal32): Likewise.
19943 (movdi_internal64): Likewise.
19944 (probe_stack_<mode>): Likewise.
19945
199462013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
19947
19948 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
19949 floating point, and decimal floating point to reload iterator.
19950
19951 * config/rs6000/constraints.md (wl constraint): New constraints to
19952 return FLOAT_REGS if certain options are used to reduce the number
19953 of separate patterns that exist in the file.
19954 (wx constraint): Likewise.
19955 (wz constraint): Likewise.
19956
19957 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
19958 -mdebug=reg, print wg, wl, wx, and wz constraints.
19959 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
19960 Initialize the reload functions for 64-bit binary/decimal floating
19961 point types.
19962 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
19963 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
19964 create the buffer on the stack to overcome not having a 32-bit
19965 load and store.
19966 (rs6000_emit_move): Likewise.
19967 (rs6000_secondary_memory_needed_rtx): Likewise.
19968 (rs6000_alloc_sdmode_stack_slot): Likewise.
19969 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
19970 via xxlxor, just like DFmode 0.0.
19971
19972 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
19973 define as 1 if we are running on a power7 or newer.
19974 (enum r6000_reg_class_enum): Add new constraints.
19975
19976 * config/rs6000/dfp.md (movsd): Delete, combine with binary
19977 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
19978 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 19979 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
19980 (movsd splitter): Likewise.
19981 (movsd_hardfloat): Likewise.
19982 (movsd_softfloat): Likewise.
19983
19984 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
19985 binary and decimal floating point moves.
19986 (fmove_ok): New attributes to combine binary and decimal floating
19987 point moves, and to combine power6x (mfpgpr) moves along normal
19988 floating moves.
19989 (real_value_to_target): Likewise.
19990 (f32_lr): Likewise.
19991 (f32_lm): Likewise.
19992 (f32_li): Likewise.
19993 (f32_sr): Likewise.
19994 (f32_sm): Likewise.
19995 (f32_si): Likewise.
19996 (movsf): Combine binary and decimal floating point moves. Combine
19997 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 19998 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
19999 (mov<mode> for SFmode/SDmode); Likewise.
20000 (SFmode/SDmode splitters): Likewise.
20001 (movsf_hardfloat): Likewise.
20002 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
20003 (movsf_softfloat): Likewise.
20004 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
20005
20006 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
20007 wx and wz constraints.
20008
20009 * config/rs6000/constraints.md (wg constraint): New constraint to
20010 return FLOAT_REGS if -mmfpgpr (power6x) was used.
20011
20012 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
20013 constraint.
20014
20015 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
20016 -mdebug=reg, print wg, wl, wx, and wz constraints.
20017 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
20018 Initialize the reload functions for 64-bit binary/decimal floating
20019 point types.
20020 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
20021 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
20022 create the buffer on the stack to overcome not having a 32-bit
20023 load and store.
20024 (rs6000_emit_move): Likewise.
20025 (rs6000_secondary_memory_needed_rtx): Likewise.
20026 (rs6000_alloc_sdmode_stack_slot): Likewise.
20027 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
20028 via xxlxor, just like DFmode 0.0.
20029
c6d5ff83
MM
20030 * config/rs6000/dfp.md (movdd): Delete, combine with binary
20031 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
20032 with other moves by using conditional constraits (wg). Use LFIWZX
20033 and STFIWX for loading SDmode on power7.
20034 (movdd splitters): Likewise.
20035 (movdd_hardfloat32): Likewise.
20036 (movdd_softfloat32): Likewise.
20037 (movdd_hardfloat64_mfpgpr): Likewise.
20038 (movdd_hardfloat64): Likewise.
20039 (movdd_softfloat64): Likewise.
20040
20041 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
20042 64-bit binary and decimal floating point moves.
20043 (FMOVE64X): Likewise.
20044 (movdf): Combine 64-bit binary and decimal floating point moves.
20045 Combine power6x (mfpgpr) moves with other moves by using
20046 conditional constraits (wg).
20047 (mov<mode> for DFmode/DDmode): Likewise.
20048 (DFmode/DDmode splitters): Likewise.
20049 (movdf_hardfloat32): Likewise.
20050 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
20051 (movdf_softfloat32): Likewise.
20052 (movdf_hardfloat64_mfpgpr): Likewise.
20053 (movdf_hardfloat64): Likewise.
20054 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
20055 (movdf_softfloat64): Likewise.
20056 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
20057 (reload_<mode>_load): Move to later in the file so they aren't in
20058 the middle of the floating point move insns.
20059 (reload_<mode>_store): Likewise.
20060
20061 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
20062 constraint.
20063
20064 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
20065 constraint if -mdebug=reg.
bd059b26
UB
20066 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
20067 Enable using dd reload support if needed.
c6d5ff83
MM
20068
20069 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
20070 binary and decimal floating point moves in rs6000.md.
20071 (movtd_internal): Likewise.
20072
20073 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
20074 decimal floating point moves.
20075 (movtf): Likewise.
20076 (movtf_internal): Likewise.
20077 (mov<mode>_internal, TDmode/TFmode): Likewise.
20078 (movtf_softfloat): Likewise.
20079 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
20080
20081 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
20082 movdi_internal64, using wg constraint for move direct operations.
20083 (movdi_internal64): Likewise.
20084
20085 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
20086 MODES_TIEABLE_P for selected modes. Print the numerical value of
20087 the various virtual registers. Use GPR/FPR first/last values,
20088 instead of hard coding the register numbers. Print which modes
20089 have reload functions registered.
bd059b26
UB
20090 (rs6000_option_override_internal): If -mdebug=reg, trace the options
20091 settings before/after setting cpu, target and subtarget settings.
20092 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
20093 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
20094 (rs6000_secondary_reload_fail): Likewise.
20095 (rs6000_secondary_reload_inner): Likewise.
20096
20097 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
20098 macros for first/last GPR and FPR registers.
20099 (LAST_GPR_REGNO): Likewise.
20100 (FIRST_FPR_REGNO): Likewise.
20101 (LAST_FPR_REGNO): Likewise.
20102
20103 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
20104 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
20105 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
20106 (vcond<mode><mode>): Likewise.
20107 (vcondu<mode><mode>): Likewise.
20108 (vector_gtu<mode>): Likewise.
20109 (vector_gte<mode>): Likewise.
20110 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 20111 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
20112 (ior<mode>3): Likewise.
20113 (and<mode>3): Likewise.
20114 (one_cmpl<mode>2): Likewise.
20115 (nor<mode>3): Likewise.
20116 (andc<mode>3): Likewise.
20117
20118 * config/rs6000/constraints.md (wt constraint): New constraint
20119 that returns VSX_REGS if TImode is allowed in VSX registers.
20120
20121 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
20122 constant under VSX.
20123
20124 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
20125 similar to TImode, but it is restricted to being in the GPRs.
20126
20127 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
20128 TImode to occupy a single VSX register.
20129
20130 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
20131 -mvsx-timode for power7/power8.
20132 (power7 cpu): Likewise.
20133 (power8 cpu): Likewise.
20134
20135 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
20136 sure that TFmode/TDmode take up two registers if they are ever
20137 allowed in the upper VSX registers.
20138 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
20139 registers.
20140 (rs6000_init_hard_regno_mode_ok): Likewise.
20141 (rs6000_debug_reg_global): Add debugging for PTImode and wt
20142 constraint. Print if LRA is turned on.
20143 (rs6000_option_override_internal): Give an error if -mvsx-timode
20144 and VSX is not enabled.
20145 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
20146 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
20147 to reg+offset addressing. Use PTImode when checking offset
20148 addresses for validity.
20149 (reg_offset_addressing_ok_p): Likewise.
20150 (rs6000_legitimate_offset_address_p): Likewise.
20151 (rs6000_legitimize_address): Likewise.
20152 (rs6000_legitimize_reload_address): Likewise.
20153 (rs6000_legitimate_address_p): Likewise.
20154 (rs6000_eliminate_indexed_memrefs): Likewise.
20155 (rs6000_emit_move): Likewise.
20156 (rs6000_secondary_reload): Likewise.
20157 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
20158 reloads to fpr registers to continue to use reg+offset addressing,
20159 but 64-bit reloads to altivec registers need reg+reg addressing.
20160 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
20161 it. Treat LO_SUM like a PLUS operation.
20162 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 20163 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
20164 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
20165 registers to share a register with a smaller sized type, since VSX
20166 puts scalars in the upper 64-bits.
20167 (print_operand): Add support for PTImode.
20168 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
20169 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
20170 registers, but don't have arithmetic support.
20171 (rs6000_memory_move_cost): Add test for VSX.
20172 (rs6000_opt_masks): Add -mvsx-timode.
20173
20174 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
20175 for TImode.
20176 (VSs): Likewise.
20177 (VSr): Use wt constraint for TImode.
20178 (VSv): Drop TImode support.
20179 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
20180 (vsx_movti_64bit): Likewise.
20181 (vsx_movti_32bit): Likewise.
20182 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
20183 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
20184 one '?' on the appropriate output constraint. Do not allow TImode
20185 logical operations on 32-bit systems.
20186 (vsx_ior<mode>3): Likewise.
20187 (vsx_xor<mode>3): Likewise.
20188 (vsx_one_cmpl<mode>2): Likewise.
20189 (vsx_nor<mode>3): Likewise.
20190 (vsx_andc<mode>3): Likewise.
20191 (vsx_concat_<mode>): Likewise.
20192 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
20193
20194 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
20195 OPTION_MASK_VSX_TIMODE.
20196 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
20197 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
20198
20199 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
20200 (TI2 iterator): New iterator for TImode, PTImode.
20201 (wd mode attribute): Add values for vector types.
bd059b26
UB
20202 (movti_string): Replace TI move operations with operations for TImode
20203 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
20204 (mov<mode>_string, TImode/PTImode): Likewise.
20205 (movti_ppc64): Likewise.
20206 (mov<mode>_ppc64, TImode/PTImode): Likewise.
20207 (TI mode splitters): Likewise.
20208
20209 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
20210 constraint.
20211
1fc5eced
MG
202122013-03-20 Marc Glisse <marc.glisse@inria.fr>
20213
20214 PR tree-optimization/56355
20215 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
20216 Also handle integers with undefined overflow.
20217
22c4c869
CM
202182013-03-20 Catherine Moore <clm@codesourcery.com>
20219 Maciej W. Rozycki <macro@codesourcery.com>
20220 Tom de Vries <tom@codesourcery.com>
12211b99 20221 Nathan Sidwell <nathan@codesourcery.com>
22c4c869
CM
20222 Iain Sandoe <iain@codesourcery.com>
20223 Nathan Froyd <froydnj@codesourcery.com>
12211b99 20224 Chao-ying Fu <fu@mips.com>
22c4c869
CM
20225
20226 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 20227 Document new function attributes.
22c4c869
CM
20228 * doc/invoke.texi (minterlink-compressed, mmicromips,
20229 m14k, m14ke, m14kec): Document new options.
20230 (minterlink-mips16): Update documentation.
20231 * doc/md.texi (ZC, ZD): Document new constraints.
20232 * configure.ac (gcc_cv_as_micromips): Check if linker
20233 supports the .set micromips directive.
20234 * configure: Regenerate.
20235 * config.in: Regenerate.
20236 * config/mips/mips-tables.opt: Regenerate.
20237 * config/mips/micromips.md: New file.
20238 * constraints.md (ZC, ZD): New constraints.
20239 * config/mips/predicates.md (movep_src_register): New predicate.
20240 (movep_src_operand): New predicate.
20241 (non_volatile_mem_operand): New predicate.
20242 * config/mips/mips.md (multimem): New type.
20243 (length): Differentiate between 17-bit and 18-bit branch offsets.
20244 (MOVEP1, MOVEP2): New mode iterator.
33159866 20245 (mov_<load>l): Use ZC constraint.
22c4c869
CM
20246 (mov_<load>r): Likewise.
20247 (mov_<store>l): Likewise.
20248 (mov_<store>r): Likewise.
20249 (*branch_equality<mode>_inverted): Add microMIPS support.
20250 (*branch_equality<mode>): Likewise.
20251 (*jump_absolute): Likewise.
20252 (indirect_jump_<mode>): Likewise.
20253 (tablejump_<mode>): Likewise.
20254 (<optab>_internal): Likewise.
20255 (sibcall_internal): Likewise.
20256 (sibcall_value_internal): Likewise.
20257 (prefetch): Use constraint ZD.
20258 * config/mips/mips.opt (minterlink-compressed): New option.
20259 (minterlink-mips16): Now an alias for minterlink-compressed.
20260 (mmicromips): New option.
20261 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
20262 (compare_and_swap_12): Likewise.
20263 (sync_add<mode>): Likewise.
20264 (sync_<optab>_12): Likewise.
20265 (sync_old_<optab>_12): Likewise.
20266 (sync_new_<optab>_12): Likewise.
20267 (sync_nand_12): Likewise.
20268 (sync_old_nand_12): Likewise.
20269 (sync_new_nand_12): Likewise.
20270 (sync_sub<mode>): Likewise.
20271 (sync_old_add<mode>): Likewise.
20272 (sync_old_sub<mode>): Likewise.
20273 (sync_new_add<mode>): Likewise.
20274 (sync_new_sub<mode>): Likewise.
20275 (sync_<optab><mode>): Likewise.
20276 (sync_old_<optab><mode>): Likewise.
20277 (sync_new_<optab><mode>): Likewise.
20278 (sync_nand<mode>): Likewise.
20279 (sync_old_nand<mode>): Likewise.
20280 (sync_new_nand<mode>): Likewise.
20281 (sync_lock_test_and_set<mode>): Likewise.
20282 (test_and_set_12): Likewise.
20283 (atomic_compare_and_swap<mode>): Likewise.
20284 (atomic_exchange<mode>_llsc): Likewise.
20285 (atomic_fetch_add<mode>_llsc): Likewise.
20286 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
20287 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
20288 (umips_save_restore_pattern_p): Likewise.
20289 (umips_load_store_pair_p): Likewise.
20290 (umips_output_load_store_pair): Likewise.
20291 (umips_movep_target_p): Likewise.
20292 (umips_12bit_offset_address_p): Likewise.
20293 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
20294 (mips_base_mips16): Rename this...
20295 (mips_base_compression_flags): ...to this. Update all uses.
20296 (mips_attribute_table): Add micromips, nomicromips and nocompression.
20297 (mips_mips16_decl_p): Delete.
20298 (mips_nomips16_decl_p): Delete.
33159866 20299 (mips_get_compress_on_flags): New function.
22c4c869
CM
20300 (mips_get_compress_off_flags): New function.
20301 (mips_get_compress_mode): New function.
20302 (mips_get_compress_on_name): New function.
20303 (mips_get_compress_off_name): New function.
20304 (mips_insert_attributes): Support multiple compression types.
20305 (mips_merge_decl_attributes): Likewise.
20306 (umips_12bit_offset_address_p): New function.
20307 (mips_start_function_definition): Emit .set micromips directive.
20308 (mips_call_may_need_jalx_p): New function.
20309 (mips_function_ok_for_sibcall): Add microMIPS support.
20310 (mips_print_operand_punctuation): Support short delay slots and
20311 compact jumps.
20312 (umips_swm_mask, umips_swm_encoding): New.
20313 (umips_build_save_restore): New function.
20314 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
20315 (was_mips16_p): Remove.
20316 (old_compression_mode): New.
20317 (mips_set_compression_mode): New function.
20318 (mips_set_current_function): Add microMIPS support.
20319 (mips_option_override): Likewise.
20320 (umips_save_restore_pattern_p): New function.
20321 (umips_output_save_restore): New function.
20322 (umips_load_store_pair_p_1): New function.
20323 (umips_load_store_pair_p): New function.
20324 (umips_output_load_store_pair_1): New function.
20325 (umips_output_load_store_pair): New function.
20326 (umips_movep_target_p) New function.
20327 (mips_prepare_pch_save): Add microMIPS support.
20328 * config/mips/mips.h (TARGET_COMPRESSION): New.
20329 (TARGET_CPU_CPP_BUILTINS): Update macro
20330 to use new compression flags and to support microMIPS.
20331 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
20332 (MIPS_ARCH_FLOAT_SPEC): Likewise.
20333 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
20334 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
20335 (ASM_SPEC): Support mmicromips and mno-micromips.
20336 (M16STORE_REG_P): New macro.
20337 (MIPS_CALL): Support TARGET_MICROMIPS.
20338 (MICROMIPS_J): New macro.
20339 (mips_base_mips16): Rename this...
20340 (mips_base_compression_flags): ...to this.
20341 (UMIPS_12BIT_OFFSET_P): New macro.
20342 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
20343 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
203442013-03-20 Richard Biener <rguenther@suse.de>
20345
20346 PR tree-optimization/56661
20347 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
20348 the result does not have to be distinct.
20349
54714c68
RB
203502013-03-20 Richard Biener <rguenther@suse.de>
20351
20352 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
20353 remap_gimple_op_r.
20354
cca1130d 203552013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 20356 Steven Bosscher <steven@gcc.gnu.org>
cca1130d
BS
20357
20358 PR rtl-optimization/56605
20359 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
20360
2a930377
UB
203612013-03-20 Uros Bizjak <ubizjak@gmail.com>
20362
20363 PR bootstrap/56656
20364 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
20365 that require movd instead of movq.
20366
d6d305fe
RB
203672013-03-20 Richard Biener <rguenther@suse.de>
20368
20369 * tree-ssa-structalias.c (struct variable_info): Add pointer
20370 to the first field of an aggregate with sub-vars. Make
20371 this and the pointer to the next subfield its ID.
20372 (vi_next): New function.
20373 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
20374 storedanything_id, integer_id): Increment by one.
20375 (new_var_info, get_call_vi, lookup_call_clobber_vi,
20376 get_call_clobber_vi): Adjust.
20377 (solution_set_expand): Simplify and speedup.
20378 (solution_set_add): Inline into ...
20379 (set_union_with_increment): ... this. Adjust accordingly.
20380 (do_sd_constraint): Likewise.
20381 (do_ds_constraint): Likewise.
20382 (do_complex_constraint): Simplify.
20383 (build_pred_graph): Adjust.
20384 (solve_graph): Likewise. Simplify and speedup.
20385 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
20386 get_constraint_for_component_ref, get_constraint_for_1,
20387 first_vi_for_offset, first_or_preceding_vi_for_offset,
20388 create_function_info_for, create_variable_info_for_1,
20389 create_variable_info_for, intra_create_variable_infos): Adjust.
20390 (init_base_vars): Push NULL for ID zero.
20391 (compute_points_to_sets): Adjust.
20392
a271b42d
RB
203932013-03-20 Richard Biener <rguenther@suse.de>
20394
20395 * cfgloop.c (verify_loop_structure): Streamline and avoid
20396 ICEing on corrupt loop tree.
20397 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
20398 loop tree.
20399
ebd65954
RB
204002013-03-20 Richard Biener <rguenther@suse.de>
20401
20402 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
20403 check whether an SSA update is needed.
20404
4547b7ee
RS
204052013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
20406
20407 * config/mips/constraints.md (T): Rename to...
20408 (Yf): ...this.
20409 (U): Rename to...
20410 (Yd): ...this.
20411 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
20412 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
20413
0b8cdc58
IB
204142013-03-19 Ian Bolton <ian.bolton@arm.com>
20415
20416 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
20417 (*subsi3_carryin_uxtw): Likewise.
20418
5977a10d
IB
204192013-03-19 Ian Bolton <ian.bolton@arm.com>
20420
20421 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
20422 (*rorsi3_insn_uxtw): Likewise.
20423
bd83ff2c
IB
204242013-03-19 Ian Bolton <ian.bolton@arm.com>
20425
20426 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
20427 (*extrsi5_insn_uxtw): Likewise.
20428
ba65123c
RB
204292013-03-19 Richard Biener <rguenther@suse.de>
20430
20431 PR tree-optimization/56273
20432 * passes.c (init_optimization_passes): Move second VRP after DOM.
20433
2eac0476
UB
204342013-03-19 Uros Bizjak <ubizjak@gmail.com>
20435
20436 * config/i386/i386.md (*movti_internal): Merge from
20437 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
20438 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
20439 nox64 isa attributes.
20440
6e55eda7
RB
204412013-03-18 Richard Biener <rguenther@suse.de>
20442
20443 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
20444 (unite): Likewise.
20445 (merge_node_constraints): Likewise.
20446 (build_succ_graph): Likewise.
20447 (valid_graph_edge): Inline into single caller.
20448 (unify_nodes): Likewise. Use bitmap_set_bit return value
20449 and cache varinfo.
20450 (scc_visit): Fix formatting and variable use.
20451 (do_sd_constraint): Use gcc_checking_assert.
20452 (do_ds_constraint): Likewise.
20453 (do_complex_constraint): Likewise.
20454 (condense_visit): Likewise. Cleanup.
20455 (dump_pred_graph): New function.
20456 (perform_var_substitution): Dump the pred-graph before
20457 variable substitution.
20458 (find_equivalent_node): Use gcc_checking_assert.
20459 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
20460
4bdd44c4
RB
204612013-03-18 Richard Biener <rguenther@suse.de>
20462
20463 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
20464 Remove cond_expr_stmt_list argument and do not gimplify the
20465 built expression.
20466 (vect_loop_versioning): Adjust.
20467 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20468 Cleanup to use less temporaries.
20469 (vect_create_data_ref_ptr): Cleanup.
20470
38c56a5b
JJ
204712013-03-18 Jakub Jelinek <jakub@redhat.com>
20472
20473 PR tree-optimization/56635
20474 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
20475 require types_compatible_p types.
20476
20b2e6a0
NC
204772013-03-18 Nick Clifton <nickc@redhat.com>
20478
a6178a25
NC
20479 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
20480 spurious backslash.
20481
20b2e6a0
NC
20482 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
20483 Add missing line to comment describing function.
20484
92608d0e
RB
204852013-03-18 Richard Biener <rguenther@suse.de>
20486
20487 PR tree-optimization/56210
20488 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20489 Handle string / character search functions.
20490 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20491
31348d52
RB
204922013-03-18 Richard Biener <rguenther@suse.de>
20493
20494 PR middle-end/56483
20495 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
20496 and implement properly.
20497 * gimple.h (gimple_cond_single_var_p): Remove.
20498
fcac74a1
RB
204992013-03-18 Richard Biener <rguenther@suse.de>
20500
20501 * tree-data-ref.h (find_data_references_in_loop): Declare.
20502 * tree-data-ref.c (get_references_in_stmt): Use a stack
20503 vector pre-allocated in the callers.
20504 (find_data_references_in_stmt): Adjust.
20505 (graphite_find_data_references_in_stmt): Likewise.
20506 (create_rdg_vertices): Likewise.
20507 (find_data_references_in_loop): Export.
20508 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
20509 Compute dependences here...
20510 (vect_analyze_data_refs): ...not here. When we encounter
20511 a non-vectorizable data reference in basic-block vectorization
20512 truncate the data reference vector. Do not bother to
20513 fixup data-dependence information for gather loads.
20514 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
20515 of data references, as reported.
20516
0d5a1b56
RB
205172013-03-18 Richard Biener <rguenther@suse.de>
20518
20519 PR tree-optimization/3713
20520 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
20521 has_constants and expr.
20522 (stmt_has_constants): Properly valueize SSA names when deciding
20523 whether the stmt has constants.
20524
789c34e3
RB
205252013-03-18 Richard Biener <rguenther@suse.de>
20526
20527 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
20528 whole function when there is nothing to do.
20529 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
20530 * tree-vectorizer.c (vectorize_loops): Update virtual and
20531 loop-closed SSA once.
20532 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
20533
076b4605
RB
205342013-03-18 Richard Biener <rguenther@suse.de>
20535
20536 PR middle-end/56113
20537 * domwalk.c (bb_postorder): New global static.
20538 (cmp_bb_postorder): New function.
20539 (walk_dominator_tree): Replace scheme imposing an order for
20540 visiting dominator sons by one sorting them at the time they
20541 are pushed on the stack.
20542
bdb01696
RB
205432013-03-18 Richard Biener <rguenther@suse.de>
20544
20545 PR tree-optimization/39326
20546 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
20547 (struct mem_ref): Replace mem member with ao_ref typed member.
20548 (MEM_ANALYZABLE): Adjust.
20549 (memref_eq): Likewise.
20550 (mem_ref_alloc): Likewise.
20551 (gather_mem_refs_stmt): Likewise.
20552 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
20553 (execute_sm_if_changed_flag_set): Adjust.
20554 (execute_sm): Likewise.
20555 (ref_always_accessed_p): Likewise.
20556 (refs_independent_p): Likewise.
20557 (can_sm_ref_p): Likewise.
20558
12d2dc5e
JJ
205592013-03-18 Jakub Jelinek <jakub@redhat.com>
20560
20561 PR c/56566
20562 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
20563 return 1 even for !unsignedp.
20564
286fb677
UB
205652013-03-17 Uros Bizjak <ubizjak@gmail.com>
20566
20567 * config/i386/i386.md (isa): Add x64 and nox64.
20568 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
20569 (*pushtf): Enable *roF alternative for x64 isa only.
20570 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
20571 mode attribute of integer alternatives to DImode for TARGET_64BIT.
20572 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
20573 (*movtf_internal): Merge from *movtf_internal_rex64 and
20574 *movtf_internal_sse. Use x64 and nox64 isa attributes.
20575 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
20576 nox64 isa attributes.
20577 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
20578 nox64 isa attributes.
20579 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
20580
88b97037
UB
205812013-03-17 Uros Bizjak <ubizjak@gmail.com>
20582
20583 * config/alpha/alpha.c (TARGET_LRA_P): New define.
20584
9f4f1735
JJ
205852013-03-17 Jakub Jelinek <jakub@redhat.com>
20586
20587 PR target/56640
20588 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
20589 class names. Remove trailing comma after "ALL_REGS".
20590
48f4a6fa
JH
205912013-03-16 Jan Hubicka <jh@suse.cz>
20592
20593 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
20594 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
20595 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
20596 of cgraph_get_create_node.
20597 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20598
98e81123
JM
205992013-03-16 Jason Merrill <jason@redhat.com>
20600
20601 PR debug/49090
20602 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
20603 with DW_AT_default_value.
20604
8a298c04
JJ
206052013-03-16 Jakub Jelinek <jakub@redhat.com>
20606
20607 * BASE-VER: Set to 4.9.0.
20608
4323afa0
AK
206092013-03-14 Andi Kleen <ak@linux.intel.com>
20610
20611 PR target/56619
20612 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
20613 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
20614 Document _x* TSX intrinsics.
20615
b3c0d469
JJ
206162013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
20617 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
20618
20619 * configure.ac: Add MicroBlaze TLS support detection.
20620 * configure: Regenerate.
88b97037
UB
20621 * config/microblaze/microblaze-protos.h
20622 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
20623 symbol_mentioned_p, label_mentioned_p): Add prototypes.
20624 * config/microblaze/microblaze.c (microblaze_address_type): Add
20625 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
20626 (microblaze_address_info): Add tls_reloc.
20627 (TARGET_HAVE_TLS): Define.
20628 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
20629 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
20630 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
20631 load_tls_operand, microblaze_call_tls_get_addr,
20632 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
20633 (microblaze_classify_unspec): Handle UNSPEC_TLS.
20634 (get_base_reg): Use microblaze_tls_symbol_p.
20635 (microblaze_classify_address): Handle TLS.
88b97037
UB
20636 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
20637 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
20638 (microblaze_legitimize_address): Handle TLS.
20639 (microblaze_address_insns): Handle ADDRESS_TLS.
20640 (pic_address_needs_scratch): Handle TLS.
20641 (print_operand_address): Handle TLS.
20642 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
20643 (microblaze_expand_move): Handle TLS.
88b97037
UB
20644 (microblaze_legitimate_constant_p): Check
20645 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
20646 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
20647 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
20648 (PIC_OFFSET_TABLE_REGNUM): Set.
20649 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
20650 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
20651 (addsi3, movsi_internal2, movdf_internal): Update constraints
20652 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
20653 (move_operand): Redefine as move_src_operand,
20654 check microblaze_tls_referenced_p.
8cc9a5a5 20655
d803a491
IB
206562013-03-14 Ian Bolton <ian.bolton@arm.com>
20657
20658 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
20659 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
20660
a8504f22
IB
206612013-03-14 Ian Bolton <ian.bolton@arm.com>
20662
20663 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
20664 CC mode for AND.
20665
df2dfaea
JJ
206662013-03-14 Jakub Jelinek <jakub@redhat.com>
20667
fbd28bc3
JJ
20668 PR tree-optimization/53265
20669 * common.opt (Waggressive-loop-optimizations): New option.
20670 * tree-ssa-loop-niter.c: Include tree-pass.h.
20671 (do_warn_aggressive_loop_optimizations): New function.
20672 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
20673 if number_of_latch_executions returned constant.
20674 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
20675 early. If number_of_latch_executions returned constant, set
20676 nb_iterations_upper_bound back to it.
20677 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
20678 field.
20679 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
20680 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
20681
df2dfaea
JJ
20682 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
20683 (MULTILIB_OSDIRNAMES): Set.
20684 * genmultilib: If defaultosdirname doesn't start with :: , set
20685 defaultosdirname2 instead, clear it and emit two . multilib_raw
20686 entries instead of just one.
20687
ee0d2b68
KK
206882013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
20689
20690 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
20691 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
20692 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
20693 (SUBTARGET_OVERRIDE_OPTIONS): New.
20694
decc676e
OE
206952013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
20696
20697 PR target/49880
20698 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
20699 (musermode): Convert to Var(TARGET_USERMODE).
20700 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
20701 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
20702 * config/sh/sh.c (sh_option_override): Use
20703 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
20704 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
20705 condition.
20706 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
20707 TARGET_SH4.
20708 (udivsi3_i4_single, divsi3_i4_single): Use
20709 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
20710
f4b719c7
DK
207112013-03-13 Dave Korn <dave.korn.cygwin@....>
20712
20713 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
20714 default setting.
20715
c40eced0
RB
207162013-03-13 Richard Biener <rguenther@suse.de>
20717
20718 PR tree-optimization/56608
20719 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
20720 calls when vectorizing basic-blocks.
20721
1bfa5973
JJ
207222013-03-13 Jakub Jelinek <jakub@redhat.com>
20723
20724 PR plugins/45078
20725 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
20726 tm_file.
20727
6fcf5434
JJ
207282013-03-12 Jakub Jelinek <jakub@redhat.com>
20729
20730 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
20731
4f38fa8c
JH
207322013-03-11 Jan Hubicka <jh@suse.cz>
20733
20734 PR lto/56557
20735 * lto-streamer-out.c (output_symbol_p): Skip references from
20736 constructors of external variables.
20737
c5c5ba89
JH
207382013-03-11 Jan Hubicka <jh@suse.cz>
20739
20740 PR middle-end/56571
20741 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
20742 from pseudos.
20743 * emit-rtl.c (verify_rtx_sharing): Likewise.
20744 (copy_insn_1): Likewise.
20745 * rtl.c (copy_rtx): Likewise.
20746
c2a939b1
GJL
207472013-03-11 Georg-Johann Lay <avr@gjlay.de>
20748
20749 PR target/56591
20750 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
20751 output_operand_lossage message.
88b97037 20752
3c3279fb
RE
207532013-03-11 Richard Earnshaw <rearnsha@arm.com>
20754
20755 PR target/56470
20756 * arm.c (shift_op): Validate RTL pattern on the fly.
20757 (arm_print_operand, case 'S'): Don't use shift_operator to validate
20758 the RTL.
20759
aef5ef9d
JDA
207602013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20761
20762 PR target/56347
20763 * config/pa/pa.md (call_value): Check for calls to powf and direct to
20764 new call patterns that clobber %fr12.
20765 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
20766 split and postreload patterns.
20767 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
20768 registers %fr12 and %fr12R as call used.
20769
456610d3
SB
207702013-03-09 Steven Bosscher <steven@gcc.gnu.org>
20771
20772 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
20773 (canon_address, record_store, replace_read, check_mem_read_rtx,
20774 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
20775 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
20776 rest_of_handle_dse): Likewise.
20777
4b1baac8
RS
207782013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
20779
20780 PR middle-end/56524
20781 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
20782 Add base_optabs.
20783 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
20784 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
20785 (save_optabs_if_changed): Replace with...
20786 (init_tree_optimization_optabs): ...this.
20787 * optabs.c (save_optabs_if_changed): Rename to...
20788 (init_tree_optimization_optabs): ...this. Take the optimization node
20789 as argument. Do nothing if the base optabs are already correct.
20790 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
20791 to recompute optabs.
20792 * function.h (function): Remove optabs field.
20793 * function.c (invoke_set_current_function_hook): Call
20794 init_tree_optimization_optabs. Use the result to initialize
20795 this_fn_optabs.
20796
b7a78683
AH
207972013-02-27 Aldy Hernandez <aldyh@redhat.com>
20798
20799 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
20800 if GTMA_HAS_NO_INSTRUMENTATION.
20801 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
20802 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
20803 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
20804 * gimple-pretty-print.c (dump_gimple_transaction): Handle
20805 GTMA_HAS_NO_INSTRUMENTATION.
20806
6384c29b
JJ
208072013-03-08 Jakub Jelinek <jakub@redhat.com>
20808
20809 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
20810 libasan_preinit.o.
20811
ecd4f20a
MP
208122013-03-08 Marek Polacek <polacek@redhat.com>
20813 Jakub Jelinek <jakub@redhat.com>
20814
20815 PR tree-optimization/56478
20816 * predict.c (is_comparison_with_loop_invariant_p): Change the
20817 type of loop_step to tree.
20818 (predict_loops): Adjust.
20819 (predict_iv_comparison): Perform the computations on double_ints.
20820
64366d35
RB
208212013-03-08 Richard Biener <rguenther@suse.de>
20822
20823 PR tree-optimization/56570
20824 * tree-cfg.c (verify_expr_location_1): Verify locations for
20825 DECL_DEBUG_EXPR.
20826 * tree-sra.c (create_access_replacement): Strip locations
20827 from DECL_DEBUG_EXPRs.
20828
a9d5a059
RB
208292013-03-08 Richard Biener <rguenther@suse.de>
20830
20831 * tree-inline.c (expand_call_inline): Do not associate
20832 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
20833 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
20834
b7aa4e9a
RB
208352013-03-08 Richard Biener <rguenther@suse.de>
20836
20837 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
20838 or block changes with -Og. Fix for location / block encoding
20839 changes and PHI arguments with locations.
20840
c4c2f9fa
SB
208412013-03-07 Steven Bosscher <steven@gcc.gnu.org>
20842
20843 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
20844 for all counters.
20845 (struct output_info): Likewise.
20846 (register_overhead): Remove bad gcc_assert.
20847 (bitmap_find_bit): If there is only a single bitmap element, do not
20848 count a miss as a search.
20849 (print_statistics): Update for counter type changes.
20850 (dump_bitmap_statistics): Likewise. Print headers such that they
20851 are properly lined up with the printed counters.
20852
5bf6606a
JJ
208532013-03-07 Jakub Jelinek <jakub@redhat.com>
20854
20855 PR tree-optimization/56559
20856 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
20857 check that it has only a single use.
20858
2c653d46
RB
208592013-03-07 Richard Biener <rguenther@suse.de>
20860
20861 * doc/invoke.texi (fwhole-program): Discourage use in combination
20862 with -flto.
20863
a72d8780
JJ
208642013-03-06 Jakub Jelinek <jakub@redhat.com>
20865
01a454df
JJ
20866 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
20867
c1781047
JJ
20868 PR tree-optimization/56539
20869 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
20870 instead of GSI_CONTINUE_LINKING as last argument to
20871 force_gimple_operand_gsi. Adjust function comment.
20872
9772c47a
JJ
20873 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
20874 aarch64-cores.def.
20875
a72d8780
JJ
20876 PR middle-end/56548
20877 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
20878 promoted mode, convert the result back to the original mode.
20879
fa5556de
RB
208802013-03-06 Richard Biener <rguenther@suse.de>
20881
20882 PR middle-end/56294
20883 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
20884 (insert_updated_phi_nodes_compare_uids): New function.
20885 (update_ssa): Sort symbols_to_rename after UID before
20886 traversing it to insert PHI nodes.
20887
010403d1
RB
208882013-03-06 Richard Biener <rguenther@suse.de>
20889
20890 PR middle-end/50494
20891 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
20892 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
20893
20894 Revert
20895 2013-02-13 Richard Biener <rguenther@suse.de>
20896
20897 PR lto/50494
20898 * varasm.c (output_constant_def_1): Get the decl representing
20899 the constant as argument.
20900 (output_constant_def): Wrap output_constant_def_1.
20901 (make_decl_rtl): Use output_constant_def_1 with the decl
20902 representing the constant.
20903 (build_constant_desc): Optionally re-use a decl already
20904 representing the constant.
20905 (tree_output_constant_def): Adjust.
20906
3c27ce4c
JY
209072013-03-06 Joey Ye <joey.ye@arm.com>
20908
20909 PR lto/50293
20910 * gcc.c (convert_white_space): New function.
20911 (main): Handles white space in function name.
20912
8f6d1c86
OE
209132013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
20914
20915 PR target/56529
20916 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
20917 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
20918 to SH_DIV_CALL_TABLE for TARGET_SH2.
20919 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
20920 list.
20921 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
20922 call-table options.
20923
798a209f
SA
209242013-03-05 Sterling Augustine <saugustine@google.com>
20925 Cary Coutant <ccoutant@google.com>
20926
20927 PR debug/55364
20928 * dwarf2out.c (resolve_addr): Don't call
20929 remove_loc_list_addr_table_entries a second time for the same
20930 expression.
20931
6cfa417f 209322013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 20933
6cfa417f
JJ
20934 PR debug/56510
20935 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
20936 (avoid_complex_debug_insns): New function.
20937 (expand_debug_locations): Call it.
20938
20939 PR rtl-optimization/56484
20940 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
20941 lifetimes of hard registers on small register class machines.
20942
209432013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
20944
20945 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 20946 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 20947 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
20948 fast_interrupt.
20949 (microblaze_fast_interrupt_function_p): New function.
20950 (microblaze_is_interrupt_handler): Rename to
20951 microblaze_is_interrupt_variant and add fast_interrupt check.
20952 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
20953 (save_restore_insns): Likewise.
20954 (compute_frame_size): Likewise.
20955 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
20956 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
20957 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
20958 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
20959 microblaze_is_interrupt_variant.
20960
731aefac
KT
209612013-03-05 Kai Tietz <ktietz@redhat.com>
20962
20963 * sdbout.c (sdbout_one_type): Switch to current function's section
20964 supporting cold/hot.
20965
a72d8780 209662013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
20967
20968 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
20969 -mxl-reorder.
20970
334e71e8
JJ
209712013-03-05 Jakub Jelinek <jakub@redhat.com>
20972
0b50e654
JJ
20973 PR middle-end/56461
20974 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
20975 if VALGRIND_GET_VBITS is defined, temporarily make object
20976 memory all defined, and restore previous valgrind addressability
20977 and definability afterwards. Free this_object at the end.
20978
4ccf8f43
JJ
20979 PR middle-end/56461
20980 * lra.c (lra): Call lra_clear_live_ranges if live_p,
20981 right before calling lra_create_live_ranges, also call it
20982 when clearing live_p. Only call lra_clear_live_ranges
20983 at the end if live_p.
20984
334e71e8
JJ
20985 PR middle-end/56461
20986 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
20987
9ca966ca
RB
209882013-03-05 Richard Biener <rguenther@suse.de>
20989
20990 PR tree-optimization/56521
20991 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
20992 value-id.
20993
d273b176
SB
209942013-03-05 Steven Bosscher <steven@gcc.gnu.org>
20995
20996 PR c++/55135
20997 * except.h (remove_unreachable_eh_regions): New prototype.
20998 * except.c (remove_eh_handler_splicer): New function, split out
20999 of remove_eh_handler.
21000 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
21001 warning about running it on many EH regions one at a time.
21002 (remove_unreachable_eh_regions_worker): New function, walk the
21003 EH tree in depth-first order and remove non-marked regions.
21004 (remove_unreachable_eh_regions): New function.
21005 * tree-eh.c (mark_reachable_handlers): New function, split out
21006 from remove_unreachable_handlers.
21007 (remove_unreachable_handlers): Use mark_reachable_handlers and
21008 remove_unreachable_eh_regions.
21009 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
21010 and remove_unreachable_eh_regions.
21011
5e7f1aef
RB
210122013-03-05 Richard Biener <rguenther@suse.de>
21013
21014 PR middle-end/56525
21015 * loop-init.c (fix_loop_structure): Remove loops in two stages,
21016 not freeing them until the end.
21017
f276b762
AK
210182013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21019
21020 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
21021
12a43ab8
RB
210222013-03-05 Richard Biener <rguenther@suse.de>
21023
21024 PR tree-optimization/56270
21025 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
21026 of loads after scheduling an SLP instance.
21027
93675444
JJ
210282013-03-05 Jakub Jelinek <jakub@redhat.com>
21029
db4138e3
JJ
21030 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
21031 tic6x.exp.
21032 (check_gcc_parallelize): Run guality.exp as a separate job from
21033 vect.exp with unsorted.exp and $(dg_target_exps) separately from
21034 struct-layout-1.exp with stackalign.exp.
21035
dd3d1ec0
JJ
21036 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
21037
b8d381a3
JJ
21038 PR middle-end/56461
21039 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
21040 load_index sbitmap even if some bit in it isn't set.
21041
b4f9786b
JJ
21042 PR middle-end/56461
21043 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
21044 (discover_iteration_bound_by_body_walk): Change queues to
21045 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
21046 spelling in comment. Call safe_push on queues[bound_index] directly.
21047 Release queues[queue_index] in every iteration unconditionally.
21048 Release bounds vector.
21049
93675444
JJ
21050 PR middle-end/56461
21051 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
21052 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
21053 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
21054 inner_phis vector.
21055
3e492e9c
RB
210562013-03-05 Richard Biener <rguenther@suse.de>
21057
21058 PR lto/56515
21059 * tree-inline.c (remap_blocks_to_null): New function.
21060 (expand_call_inline): When expanding a call stmt without
21061 an associated block inline remap all callee blocks to NULL.
21062
a5d1569a
JJ
210632013-03-05 Jakub Jelinek <jakub@redhat.com>
21064
86efb5cd
JJ
21065 PR rtl-optimization/56494
21066 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
21067 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
21068 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
21069
85f5dbea
JJ
21070 PR middle-end/56461
21071 * sel-sched-ir.c (free_sched_pools): Release
21072 succs_info_pool.stack[succs_info_pool.max_top] vectors too
21073 if succs_info_pool.max_top isn't -1.
21074
a5d1569a
JJ
21075 PR bootstrap/56509
21076 * opts.c (opts_obstack, opts_concat): Moved to...
21077 * opts-common.c (opts_obstack, opts_concat): ... here.
21078
4432aa6c
JJ
210792013-03-04 Jakub Jelinek <jakub@redhat.com>
21080
21081 PR middle-end/56461
21082 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
21083
f3a1fb91
MJ
210842013-03-04 Martin Jambor <mjambor@suse.cz>
21085
21086 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
21087 all appropriate places.
21088
22110e6c
EB
210892013-01-04 Eric Botcazou <ebotcazou@adacore.com>
21090
21091 PR tree-optimization/56424
21092 * ipa-split.c (split_function): Do not set the RSO flag if result is
21093 not by reference and its type is a register type.
21094
a72d8780 210952013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 21096
88b97037 21097 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 21098 (microblaze_legitimate_pic_operand): Likewise
88b97037 21099 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
21100 new function microblaze_legitimate_pic_operand
21101 * config/microblaze/microblaze-protos.h
21102 (microblaze_legitimate_pic_operand): Declare.
21103
a72d8780 211042013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 21105
a72d8780 21106 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 21107 New predicate for supported rtx code types.
a72d8780 21108 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
21109 call_insn_simple_operand predicate.
21110
541d9ac8
JJ
211112013-03-04 Jakub Jelinek <jakub@redhat.com>
21112
5eb010bc
JJ
21113 PR middle-end/56461
21114 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
21115 partitions.ordered_remove.
21116
30862efc
JJ
21117 PR middle-end/56461
21118 * tree-vect-stmts.c (vectorizable_conversion): Don't call
21119 vec_oprnds0.create (1) for modifier == NONE.
21120
8930f723
JJ
21121 PR middle-end/56461
21122 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
21123 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
21124 vec_oprnds1 right before pushing anything to it for
21125 scalar_shift_arg.
21126
541d9ac8
JJ
21127 PR middle-end/56461
21128 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
21129 set nbbs to 0 instead of having separate code path.
21130 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
21131 instead of false as last argument if returning NULL.
21132
7aa7f2e3
SL
211332013-03-03 Sandra Loosemore <sandra@codesourcery.com>
21134
21135 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
21136 the attribute is now called "target" instead of "option".
21137 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
21138 * doc/tm.texi.in (Target Attributes): Likewise document the correct
21139 attribute/pragma name for TARGET_OPTION_VALID_P and
21140 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
21141 * doc/tm.texi: Regenerated.
21142
8930f723 211432013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 21144
8930f723 21145 * config/microblaze/microblaze.c:
cb8a1637 21146 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
21147 * config/microblaze/microblaze.h: Add -mxl-reorder to
21148 DRIVER_SELF_SPECS.
21149 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
21150 instructions emitted if TARGET_REORDER.
88b97037
UB
21151 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
21152 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 21153 separately.
cb8a1637 21154
4dc1d68c
XDL
211552013-03-01 Xinliang David Li <davidxl@google.com>
21156
21157 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
21158 walk length.
21159
689eaba3
JJ
211602013-03-01 Jakub Jelinek <jakub@redhat.com>
21161
9d676bf6
JJ
21162 PR middle-end/56461
21163 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
21164 vector even when returning true. Fix up function comment formatting.
21165
caff7edf
JJ
21166 PR middle-end/56461
21167 * ira-build.c (ira_loop_nodes_count): New variable.
21168 (create_loop_tree_nodes): Initialize it.
21169 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
21170
b6b9227d
JJ
21171 PR middle-end/56461
21172 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
21173 method on dr_chain and result_chain.
21174 * tree-vect-stmts.c (vectorizable_store): Only call
21175 result_chain.create if j == 0.
21176
689eaba3
JJ
21177 PR middle-end/56461
21178 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
21179 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
21180 before overwriting it.
21181
40bf31ed
TB
211822013-03-01 Tobias Burnus <burnus@net-b.de>
21183
21184 * doc/extended.texi (C Extensions): Change order in @menu
21185 to match @node.
21186 (Other MIPS Built-in Functions): Move last MIPS entry before
21187 "picoChip Built-in Functions".
21188 (SH Built-in Functions): Move after RX Built-in Functions.
21189 * doc/gcc.texi (Introduction): Change order in @menu
21190 to match @node.
21191 * doc/md.texi (Constraints): Ditto.
21192 * gty.texi (Type Information): Ditto.
21193 (User-provided marking routines for template types): Make
21194 subsection.
21195 * doc/invoke.texi (AArch64 Options): Move before
21196 "Adapteva Epiphany Options".
21197
e664c61c
KS
211982013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
21199 Jakub Jelinek <jakub@redhat.com>
21200
21201 PR sanitizer/56454
21202 * asan.c (gate_asan): Lookup no_sanitize_address instead of
21203 no_address_safety_analysis attribute.
21204 * doc/extend.texi (no_address_safety_attribute): Rename to
21205 no_sanitize_address attribute, mention no_address_safety_analysis
21206 attribute as deprecated alias.
21207
37b5ec8f
JJ
212082013-02-28 Jakub Jelinek <jakub@redhat.com>
21209
21210 PR middle-end/56461
21211 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
21212 type to vec<vec<tree> > *.
21213 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
21214 to be vec<tree> instead of vec<tree> *, set vec_defs
21215 to vNULL and call vec_defs.create (number_of_vects), adjust other
21216 uses of vec_defs.
21217 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
21218 vectorizable_condition): Adjust vect_get_slp_defs callers.
21219
ba96cdfb
JG
212202013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
21221
21222 * config/aarch64/aarch64.c
21223 (aarch64_float_const_representable): Remove unused variable.
21224
6f549691
JG
212252013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
21226
21227 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
21228
af55e82d
JG
212292013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
21230
21231 * config/aarch64/aarch64-builtins.c
21232 (aarch64_init_simd_builtins): Make static.
21233
1df3f464
JG
212342013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
21235
21236 * config/aarch64/aarch64.c
21237 (aarch64_simd_make_constant): Make static.
21238
f8f42513
MJ
212392013-02-28 Martin Jambor <mjambor@suse.cz>
21240
21241 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
21242 with no initialization to the RHS of debug statements.
21243
b48b3fc4
MJ
212442013-02-28 Martin Jambor <mjambor@suse.cz>
21245
21246 PR tree-optimization/56294
21247 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
21248 Adjust dumping.
21249 (get_access_replacement): Do not call create_access_replacement.
21250 Assert a replacement exists.
21251 (get_repl_default_def_ssa_name): Create the replacement declaration
21252 itself.
21253
c3ae224c
RR
212542013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21255
21256 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
21257 final_end_function.
21258
45fa0eef
MP
212592013-02-28 Marek Polacek <polacek@redhat.com>
21260
21261 PR rtl-optimization/56466
21262 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
21263 if we're changing a loop.
21264 (peel_loops_completely): Likewise.
21265
502c067d
PC
212662013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
21267
21268 PR c++/55813
21269 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
21270
ff24afc8
GJL
212712013-02-28 Georg-Johann Lay <avr@gjlay.de>
21272
21273 PR target/56445
21274 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
21275 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
21276 INTX_FTYPE_FX, FX_FTYPE_INTX.
21277 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
21278
c7b1fc1b
GJL
212792013-02-28 Georg-Johann Lay <avr@gjlay.de>
21280
21281 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
21282 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
21283 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
21284 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
21285 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
21286 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
21287 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
21288 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
21289 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
21290 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
21291 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
21292 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
21293 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
21294 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
21295 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
21296 (avrxmega6): Increase max flash segments from 5 to 6.
21297 * config/avr/t-multilib: Regenerate.
21298 * config/avr/avr-tables.opt: Regenerate.
21299 * doc/avr-mmcu.texi: Regenerate.
21300
4a0e3cfe
GJL
213012013-02-28 Georg-Johann Lay <avr@gjlay.de>
21302
21303 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
21304 (avr_device_to_arch): Rename to avr_device_to_ld.
21305 (avr_device_to_as): New prototype.
21306 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
21307 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
21308 * config/avr/driver-avr.c (avr_device_to_as): New.
21309 (avr_device_to_arch): Rename to avr_device_to_ld.
21310
97785e52
JJ
213112013-02-27 Jakub Jelinek <jakub@redhat.com>
21312
3f292312
JJ
21313 PR middle-end/56461
21314 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
21315 method on dr_chain and result_chain.
21316
a344216b
JJ
21317 PR middle-end/56461
21318 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
21319 pointer_set_destroy on not_executed_last_iteration.
21320
f121ad02 21321 PR middle-end/56461
88b97037 21322 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 21323
307f83a3
JJ
21324 PR middle-end/56461
21325 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
21326 FOR_EACH_DEFINED_FUNCTION when freeing state.
21327
e19624ee
JJ
21328 PR middle-end/56461
21329 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
21330 pool_free.
21331 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
21332 overwriting it.
21333
90e709fd
JJ
21334 PR middle-end/56461
21335 * ipa-cp.c (decide_whether_version_node): Call vec_free on
21336 known_aggs[i].items and release known_aggs vector.
21337
97785e52
JJ
21338 PR middle-end/56461
21339 * ipa-reference.c (propagate): Free node_info even for alias nodes.
21340
213412013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 21342
97785e52
JJ
21343 * config/microblaze/microblaze.c (microblaze_emit_compare):
21344 Use xor for EQ/NE comparisions.
21345 * config/microblaze/microblaze.md (cstoresf4): Add constraints
21346 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 21347
6fa5e0ed
JJ
213482013-02-27 Jakub Jelinek <jakub@redhat.com>
21349
21350 PR middle-end/56461
21351 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
21352 vector.
21353 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
21354 vec_safe_push, always update *slot.
21355 (redirect_edge_var_map_clear): Use vec_free.
21356 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
21357 (free_var_map_entry): Use vec_free.
21358 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
21359 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
21360
436a956a
AB
213612013-02-27 Andrey Belevantsev <abel@ispras.ru>
21362
21363 PR middle-end/45472
436a956a
AB
21364 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
21365 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
21366 Reorder tests for speculativeness in the logical and operator.
21367
f5c2caca
JJ
213682013-02-27 Jakub Jelinek <jakub@redhat.com>
21369
0fcb564b
JJ
21370 * incpath.c (add_standard_paths): Use reconcat instead of concat
21371 where appropriate and avoid leaking memory.
21372
dc357798
JJ
21373 * opts.h: Include obstack.h.
21374 (opts_concat): New prototype.
21375 (opts_obstack): New declaration.
21376 * opts.c (opts_concat): New function.
21377 (opts_obstack): New variable.
21378 (init_options_struct): Call gcc_init_obstack on opts_obstack.
21379 (finish_options): Use opts_concat instead of concat
21380 and XOBNEWVEC instead of XNEWVEC.
21381 * opts-common.c (generate_canonical_option, decode_cmdline_option,
21382 generate_option): Likewise.
21383 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
21384 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
21385
f5c2caca
JJ
21386 PR target/56455
21387 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
21388 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
21389
d0163673
JJ
213902013-02-26 Jakub Jelinek <jakub@redhat.com>
21391
21392 PR middle-end/56461
21393 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
21394
b5ad2b8e
JR
213952013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
21396
21397 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
21398 (arm_block_move_unaligned_straight): Likewise.
21399 (arm_adjust_block_mem): Likewise.
21400
9b639e2c
JR
214012013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
21402
21403 PR target/48901
21404 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
21405 temp, cond and label.
21406 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
21407
e13a0ccb
JR
21408 PR target/52500
21409 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
21410 * config/c6x/c6x.h (dbx_register_map): Update declaration.
21411
fbe4f171
JR
21412 PR target/52501
21413 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
21414 of prologue/epilogue functions.
21415
ae006543
JR
21416 PR target/52550
21417 * config/tilegx/tilegx.c (tilegx_expand_prologue):
21418 Remove unused variable cfa_offset.
21419 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
21420
c81369fa
JR
21421 PR target/54639
21422 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
21423 type promotion to unsigned.
21424
f8a8fea7
JR
21425 PR target/54640
21426 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
21427 for HOST_WIDE_INT of 32 bit / same size as int.
21428 (arm_block_move_unaligned_straight): Likewise.
21429 (arm_adjust_block_mem): Likewise.
21430
f8be5169
JR
21431 PR target/54662
21432 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
21433 ALL_CFLAGS.
21434
f1ad3354
MP
214352013-02-26 Marek Polacek <polacek@redhat.com>
21436
21437 PR tree-optimization/56426
88b97037 21438 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 21439
a6af0f42
RB
214402013-02-26 Richard Biener <rguenther@suse.de>
21441
21442 PR target/56444
21443 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
21444 unused variable loops.
21445
aca43c6c
JJ
214462013-02-26 Jakub Jelinek <jakub@redhat.com>
21447
cecbe5d9
JJ
21448 PR tree-optimization/56448
21449 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
21450 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
21451 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
21452 later operands of the references, or even first operand for
21453 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
21454
aca43c6c
JJ
21455 PR tree-optimization/56443
21456 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
21457 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
21458 to type_for_mode langhook.
21459
53e2e141
MT
214602013-02-25 Matt Turner <mattst88@gmail.com>
21461
21462 * doc/invoke.texi: Document r4700.
21463
259ee451
RB
214642013-02-25 Richard Biener <rguenther@suse.de>
21465
21466 PR tree-optimization/56175
21467 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
21468 split out from ...
21469 (simplify_bitwise_binary): ... here. Also guard the conversion
21470 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
21471
6d65e8f1
CM
214722013-02-25 Catherine Moore <clm@codesourcery.com>
21473
21474 Revert:
21475 2013-02-24 Catherine Moore <clm@codesourcery.com>
21476 Maciej W. Rozycki <macro@codesourcery.com>
21477 Tom de Vries <tom@codesourcery.com>
a72d8780 21478 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
21479 Iain Sandoe <iain@codesourcery.com>
21480 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 21481 Chao-ying Fu <fu@mips.com>
88b97037 21482
6d65e8f1 21483 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 21484 Document new function attributes.
6d65e8f1
CM
21485 * doc/invoke.texi (minterlink-compressed, mmicromips,
21486 m14k, m14ke, m14kec): Document new options.
21487 (minterlink-mips16): Update documentation.
21488 * doc/md.texi (ZC, ZD): Document new constraints.
21489 * configure.ac (gcc_cv_as_micromips): Check if linker
21490 supports the .set micromips directive.
21491 * configure: Regenerate.
21492 * config.in: Regenerate.
21493 * config/mips/mips-tables.opt: Regenerate.
21494 * config/mips/micromips.md: New file.
21495 * constraints.md (ZC, AD): New constraints.
21496 * config/mips/predicates.md (movep_src_register): New predicate.
21497 (movep_src_operand): New predicate.
21498 (non_volatile_mem_operand): New predicate.
21499 * config/mips/mips.md (multimem): New type.
21500 (length): Differentiate between 17-bit and 18-bit branch offsets.
21501 (MOVEP1, MOVEP2): New mode iterator.
21502 (mov_<load>l): Use ZC constraint.
21503 (mov_<load>r): Likewise.
21504 (mov_<store>l): Likewise.
21505 (mov_<store>r): Likewise.
21506 (*branch_equality<mode>_inverted): Add microMIPS support.
21507 (*branch_equality<mode>): Likewise.
21508 (*jump_absolute): Likewise.
21509 (indirect_jump_<mode>): Likewise.
21510 (tablejump_<mode>): Likewise.
21511 (<optab>_internal): Likewise.
21512 (sibcall_internal): Likewise.
21513 (sibcall_value_internal): Likewise.
21514 (prefetch): Use constraint ZD.
21515 * config/mips/mips.opt (minterlink-compressed): New option.
21516 (minterlink-mips16): Now an alias for minterlink-compressed.
21517 (mmicromips): New option.
21518 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
21519 (compare_and_swap_12): Likewise.
21520 (sync_add<mode>): Likewise.
21521 (sync_<optab>_12): Likewise.
21522 (sync_old_<optab>_12): Likewise.
21523 (sync_new_<optab>_12): Likewise.
21524 (sync_nand_12): Likewise.
21525 (sync_old_nand_12): Likewise.
21526 (sync_new_nand_12): Likewise.
21527 (sync_sub<mode>): Likewise.
21528 (sync_old_add<mode>): Likewise.
21529 (sync_old_sub<mode>): Likewise.
21530 (sync_new_add<mode>): Likewise.
21531 (sync_new_sub<mode>): Likewise.
21532 (sync_<optab><mode>): Likewise.
21533 (sync_old_<optab><mode>): Likewise.
21534 (sync_new_<optab><mode>): Likewise.
21535 (sync_nand<mode>): Likewise.
21536 (sync_old_nand<mode>): Likewise.
21537 (sync_new_nand<mode>): Likewise.
21538 (sync_lock_test_and_set<mode>): Likewise.
21539 (test_and_set_12): Likewise.
21540 (atomic_compare_and_swap<mode>): Likewise.
21541 (atomic_exchange<mode>_llsc): Likewise.
21542 (atomic_fetch_add<mode>_llsc): Likewise.
21543 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
21544 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
21545 (umips_save_restore_pattern_p): Likewise.
21546 (umips_load_store_pair_p): Likewise.
21547 (umips_output_load_store_pair): Likewise.
21548 (umips_movep_target_p): Likewise.
21549 (umips_12bit_offset_address_p): Likewise.
21550 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
21551 (mips_base_mips16): Rename this...
21552 (mips_base_compression_flags): ...to this. Update all uses.
21553 (mips_attribute_table): Add micromips, nomicromips and nocompression.
21554 (mips_mips16_decl_p): Delete.
21555 (mips_nomips16_decl_p): Delete.
21556 (mips_get_compress_on_flags): New function.
21557 (mips_get_compress_off_flags): New function.
21558 (mips_get_compress_mode): New function.
21559 (mips_get_compress_on_name): New function.
21560 (mips_get_compress_off_name): New function.
21561 (mips_insert_attributes): Support multiple compression types.
21562 (mips_merge_decl_attributes): Likewise.
21563 (umips_12bit_offset_address_p): New function.
21564 (mips_start_function_definition): Emit .set micromips directive.
21565 (mips_call_may_need_jalx_p): New function.
21566 (mips_function_ok_for_sibcall): Add microMIPS support.
21567 (mips_print_operand_punctuation): Support short delay slots and
21568 compact jumps.
21569 (umips_swm_mask, umips_swm_encoding): New.
21570 (umips_build_save_restore): New function.
21571 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
21572 (was_mips16_p): Remove.
21573 (old_compression_mode): New.
21574 (mips_set_compression_mode): New function.
21575 (mips_set_current_function): Add microMIPS support.
21576 (mips_option_override): Likewise.
21577 (umips_save_restore_pattern_p): New function.
21578 (umips_output_save_restore): New function.
21579 (umips_load_store_pair_p_1): New function.
21580 (umips_load_store_pair_p): New function.
21581 (umips_output_load_store_pair_1): New function.
21582 (umips_output_load_store_pair): New function.
21583 (umips_movep_target_p) New function.
21584 (mips_prepare_pch_save): Add microMIPS support.
21585 * config/mips/mips.h (TARGET_COMPRESSION): New.
21586 (TARGET_CPU_CPP_BUILTINS): Update macro
21587 to use new compression flags and to support microMIPS.
21588 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
21589 (MIPS_ARCH_FLOAT_SPEC): Likewise.
21590 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
21591 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
21592 (ASM_SPEC): Support mmicromips and mno-micromips.
21593 (M16STORE_REG_P): New macro.
21594 (MIPS_CALL): Support TARGET_MICROMIPS.
21595 (MICROMIPS_J): New macro.
21596 (mips_base_mips16): Rename this...
21597 (mips_base_compression_flags): ...to this.
21598 (UMIPS_12BIT_OFFSET_P): New macro.
21599 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
21600 (MULTILIB_DIRNAMES): Likewise.
21601
5e5df392
TV
216022013-02-25 Tom de Vries <tom@codesourcery.com>
21603
21604 PR rtl-optimization/56131
21605 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
21606 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
21607 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
21608
3fdb53c1
TB
216092013-02-25 Tobias Burnus <burnus@net-b.de>
21610
21611 * doc/invoke.texi (-fsanitize=): Move from optimization
21612 to debugging options.
21613
ed358aea
AB
216142013-02-25 Andrey Belevantsev <abel@ispras.ru>
21615
21616 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
21617
f45e9053
AB
216182013-02-25 Andrey Belevantsev <abel@ispras.ru>
21619 Alexander Monakov <amonakov@ispras.ru>
21620
21621 PR middle-end/56077
21622 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
21623 flush pending lists also on non-jumps. Adjust comment.
21624
6941b508
CM
216252013-02-24 Catherine Moore <clm@codesourcery.com>
21626 Maciej W. Rozycki <macro@codesourcery.com>
21627 Tom de Vries <tom@codesourcery.com>
a72d8780 21628 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
21629 Iain Sandoe <iain@codesourcery.com>
21630 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 21631 Chao-ying Fu <fu@mips.com>
6941b508
CM
21632
21633 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 21634 Document new function attributes.
6941b508
CM
21635 * doc/invoke.texi (minterlink-compressed, mmicromips,
21636 m14k, m14ke, m14kec): Document new options.
21637 (minterlink-mips16): Update documentation.
21638 * doc/md.texi (ZC, ZD): Document new constraints.
21639 * configure.ac (gcc_cv_as_micromips): Check if linker
21640 supports the .set micromips directive.
21641 * configure: Regenerate.
21642 * config.in: Regenerate.
21643 * config/mips/mips-tables.opt: Regenerate.
21644 * config/mips/micromips.md: New file.
21645 * constraints.md (ZC, AD): New constraints.
21646 * config/mips/predicates.md (movep_src_register): New predicate.
21647 (movep_src_operand): New predicate.
21648 (non_volatile_mem_operand): New predicate.
21649 * config/mips/mips.md (multimem): New type.
21650 (length): Differentiate between 17-bit and 18-bit branch offsets.
21651 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 21652 (mov_<load>l): Use ZC constraint.
6941b508
CM
21653 (mov_<load>r): Likewise.
21654 (mov_<store>l): Likewise.
21655 (mov_<store>r): Likewise.
21656 (*branch_equality<mode>_inverted): Add microMIPS support.
21657 (*branch_equality<mode>): Likewise.
21658 (*jump_absolute): Likewise.
21659 (indirect_jump_<mode>): Likewise.
21660 (tablejump_<mode>): Likewise.
21661 (<optab>_internal): Likewise.
21662 (sibcall_internal): Likewise.
21663 (sibcall_value_internal): Likewise.
21664 (prefetch): Use constraint ZD.
21665 * config/mips/mips.opt (minterlink-compressed): New option.
21666 (minterlink-mips16): Now an alias for minterlink-compressed.
21667 (mmicromips): New option.
21668 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
21669 (compare_and_swap_12): Likewise.
21670 (sync_add<mode>): Likewise.
21671 (sync_<optab>_12): Likewise.
21672 (sync_old_<optab>_12): Likewise.
21673 (sync_new_<optab>_12): Likewise.
21674 (sync_nand_12): Likewise.
21675 (sync_old_nand_12): Likewise.
21676 (sync_new_nand_12): Likewise.
21677 (sync_sub<mode>): Likewise.
21678 (sync_old_add<mode>): Likewise.
21679 (sync_old_sub<mode>): Likewise.
21680 (sync_new_add<mode>): Likewise.
21681 (sync_new_sub<mode>): Likewise.
21682 (sync_<optab><mode>): Likewise.
21683 (sync_old_<optab><mode>): Likewise.
21684 (sync_new_<optab><mode>): Likewise.
21685 (sync_nand<mode>): Likewise.
21686 (sync_old_nand<mode>): Likewise.
21687 (sync_new_nand<mode>): Likewise.
21688 (sync_lock_test_and_set<mode>): Likewise.
21689 (test_and_set_12): Likewise.
21690 (atomic_compare_and_swap<mode>): Likewise.
21691 (atomic_exchange<mode>_llsc): Likewise.
21692 (atomic_fetch_add<mode>_llsc): Likewise.
21693 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
21694 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
21695 (umips_save_restore_pattern_p): Likewise.
21696 (umips_load_store_pair_p): Likewise.
21697 (umips_output_load_store_pair): Likewise.
21698 (umips_movep_target_p): Likewise.
21699 (umips_12bit_offset_address_p): Likewise.
21700 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
21701 (mips_base_mips16): Rename this...
21702 (mips_base_compression_flags): ...to this. Update all uses.
21703 (mips_attribute_table): Add micromips, nomicromips and nocompression.
21704 (mips_mips16_decl_p): Delete.
21705 (mips_nomips16_decl_p): Delete.
3fdb53c1 21706 (mips_get_compress_on_flags): New function.
6941b508
CM
21707 (mips_get_compress_off_flags): New function.
21708 (mips_get_compress_mode): New function.
21709 (mips_get_compress_on_name): New function.
21710 (mips_get_compress_off_name): New function.
21711 (mips_insert_attributes): Support multiple compression types.
21712 (mips_merge_decl_attributes): Likewise.
21713 (umips_12bit_offset_address_p): New function.
21714 (mips_start_function_definition): Emit .set micromips directive.
21715 (mips_call_may_need_jalx_p): New function.
21716 (mips_function_ok_for_sibcall): Add microMIPS support.
21717 (mips_print_operand_punctuation): Support short delay slots and
21718 compact jumps.
21719 (umips_swm_mask, umips_swm_encoding): New.
21720 (umips_build_save_restore): New function.
21721 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
21722 (was_mips16_p): Remove.
21723 (old_compression_mode): New.
21724 (mips_set_compression_mode): New function.
21725 (mips_set_current_function): Add microMIPS support.
21726 (mips_option_override): Likewise.
21727 (umips_save_restore_pattern_p): New function.
21728 (umips_output_save_restore): New function.
21729 (umips_load_store_pair_p_1): New function.
21730 (umips_load_store_pair_p): New function.
21731 (umips_output_load_store_pair_1): New function.
21732 (umips_output_load_store_pair): New function.
21733 (umips_movep_target_p) New function.
21734 (mips_prepare_pch_save): Add microMIPS support.
21735 * config/mips/mips.h (TARGET_COMPRESSION): New.
21736 (TARGET_CPU_CPP_BUILTINS): Update macro
21737 to use new compression flags and to support microMIPS.
21738 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
21739 (MIPS_ARCH_FLOAT_SPEC): Likewise.
21740 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
21741 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
21742 (ASM_SPEC): Support mmicromips and mno-micromips.
21743 (M16STORE_REG_P): New macro.
21744 (MIPS_CALL): Support TARGET_MICROMIPS.
21745 (MICROMIPS_J): New macro.
21746 (mips_base_mips16): Rename this...
21747 (mips_base_compression_flags): ...to this.
21748 (UMIPS_12BIT_OFFSET_P): New macro.
21749 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
21750 (MULTILIB_DIRNAMES): Likewise.
21751
cdebbc6d
JJ
217522013-02-24 Jakub Jelinek <jakub@redhat.com>
21753
21754 PR target/52555
21755 * target-globals.c (save_target_globals): For init_reg_sets and
21756 target_reinit remporarily set this_fn_optabs to this_target_optabs.
21757
18c63565
JG
217582013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
21759
21760 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
21761 * config/aarch64/t-aarch64
21762 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
21763
2194f7a2
VM
217642013-02-22 Vladimir Makarov <vmakarov@redhat.com>
21765
21766 PR inline-asm/56148
21767 * lra-constraints.c (process_alt_operands): Reload operand
21768 conflicting with earlier clobber only if no more other conflicting
21769 operands.
21770
7d613735
JJ
217712013-02-22 Jakub Jelinek <jakub@redhat.com>
21772
21773 PR sanitizer/56393
21774 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
21775 if not linking a shared library.
21776
ac8d93a7
SL
217772013-02-22 Seth LaForge <sethml@google.com>
21778
21779 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
21780
e0237780
GY
217812013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
21782
3fdb53c1
TB
21783 * config/arm/arm.md (split for extendsidi): Update condition.
21784 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
21785 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
21786 (qhs_zextenddi_cstr): Likewise.
e0237780 21787
d7fde18c
JJ
217882013-02-21 Jakub Jelinek <jakub@redhat.com>
21789
be63b77d
JJ
21790 PR middle-end/56420
21791 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
21792 avoid signed wrapping.
21793 (expand_mult): Handle properly multiplication by
21794 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
21795 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
21796 in the compiler if coeff is HOST_WIDE_INT_MIN.
21797 (expand_divmod): Don't make ext_op1 static, change it's type to
21798 uhwi. Avoid undefined behavior in -INTVAL (op1).
21799
d7fde18c
JJ
21800 PR rtl-optimization/50339
21801 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
21802 field.
21803 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
21804 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
21805 into splitting_ashiftrt field.
21806 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
21807 ASHIFTRT.
21808 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
21809 choices.
21810
6aad4455
AH
218112013-02-20 Aldy Hernandez <aldyh@redhat.com>
21812
21813 PR middle-end/56108
21814 * trans-mem.c (execute_tm_mark): Do not expand transactions that
21815 are sure to go irrevocable.
21816
38fe784d
HPN
218172013-02-21 Hans-Peter Nilsson <hp@axis.com>
21818
21819 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
21820 scalars are valid operands.
21821
0fd44da3
MJ
218222013-02-21 Martin Jambor <mjambor@suse.cz>
21823
21824 PR tree-optimization/56310
21825 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
21826 only matching indices and non-negative final offsets.
21827 (intersect_aggregates_with_edge): Pass src_idx to
21828 agg_replacements_to_vector. Pass src_idx insstead of index to
21829 intersect_with_agg_replacements.
21830
7a92038b
MJ
218312013-02-21 Martin Jambor <mjambor@suse.cz>
21832
21833 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
21834 instead of hard-wired defaults.
21835
c0da9c37
MR
218362013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
21837
21838 * doc/invoke.texi (MIPS Options): Update documentation of the
21839 floating-point multiply-accumulate instruction restrictions.
21840
d247ea0c 218412013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
21842
21843 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
21844 asan_shadow_offset on x86_64 linux.
21845
22deefcb
RB
218462013-02-21 Richard Biener <rguenther@suse.de>
21847
21848 PR tree-optimization/56415
21849 Revert
21850 2013-02-11 Richard Biener <rguenther@suse.de>
21851
21852 PR tree-optimization/56273
21853 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
21854 first VRP run.
21855
7bcc6e75
JJ
218562013-02-21 Jakub Jelinek <jakub@redhat.com>
21857
a0ad148f
JJ
21858 PR bootstrap/56258
21859 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
21860 instead of @itemx.
21861
7bcc6e75
JJ
21862 PR inline-asm/56405
21863 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
21864 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
21865
a0a7b611
JH
218662013-02-20 Jan Hubicka <jh@suse.cz>
21867
21868 PR tree-optimization/56265
88b97037
UB
21869 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
21870 when target is referenced for first time.
a0a7b611 21871
c0e50f72
RB
218722013-02-20 Richard Biener <rguenther@suse.de>
21873
21874 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
21875 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
21876 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
21877 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
21878 not return anything.
21879 (rename_ssa_copies): Do not remove unused locals.
21880 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 21881 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
21882 * passes.c (execute_function_todo): Do not schedule unused locals
21883 removal if cleanup_tree_cfg did something.
21884 * tree-ssa-live.c (remove_unused_locals): Dump statistics
21885 about the number of removed locals.
21886
a52ca739
RB
218872013-02-20 Richard Biener <rguenther@suse.de>
21888
21889 PR tree-optimization/56398
88b97037 21890 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 21891
ec9c9d1b
MJ
218922013-02-20 Martin Jambor <mjambor@suse.cz>
21893
21894 PR tree-optimization/55334
21895 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
21896 restricted pointers to arrays.
21897
e91c8ed6 218982013-02-20 Richard Biener <rguenther@suse.de>
88b97037 21899 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
21900
21901 PR tree-optimization/56396
21902 * tree-ssa-ccp.c (n_const_val): New static variable.
21903 (get_value): Return NULL for SSA names we don't have a lattice
21904 entry for.
21905 (ccp_initialize): Initialize n_const_val.
21906 * tree-ssa-copy.c (n_copy_of): New static variable.
21907 (init_copy_prop): Initialize n_copy_of.
21908 (get_value): Return NULL_TREE for SSA names we don't have a
21909 lattice entry for.
21910
3d916479
MJ
219112013-02-20 Martin Jambor <mjambor@suse.cz>
21912
21913 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
21914
71a86758
RB
219152013-02-20 Richard Biener <rguenther@suse.de>
21916
21917 * genpreds.c (write_lookup_constraint): Do not compare first
21918 letter of the constraint again.
21919
79836a12
RB
219202013-02-20 Richard Biener <rguenther@suse.de>
21921
21922 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
21923 and ceil_log2.
21924 (get_use_iv_cost): Terminate hashtable walk when coming across
21925 an empty entry.
21926
bbe4fb2c
IZ
219272013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
21928
21929 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
21930 reassociation for avx2 targets.
21931
a72d8780 219322012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 21933
c77f83d5
EI
21934 * config/microblaze/microblaze.c: microblaze_has_clz = 0
21935 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 21936 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
21937 version and TARGET_PATTERN_COMPARE check
21938 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 21939
a72d8780 219402012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 21941
a72d8780 21942 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
21943 function before branching.
21944
242387fa
AB
219452012-02-19 Andrey Belevantsev <abel@ispras.ru>
21946
21947 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
21948 DUMP_INSN_RTX_UID.
21949 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
21950
b4979ab9
AB
219512012-02-19 Andrey Belevantsev <abel@ispras.ru>
21952
21953 PR middle-end/55889
b4979ab9
AB
21954 * sel-sched.c: Include ira.h.
21955 (implicit_clobber_conflict_p): New function.
21956 (moveup_expr): Use it.
88b97037 21957 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 21958
24d63016
RB
219592013-02-19 Richard Biener <rguenther@suse.de>
21960
21961 PR tree-optimization/56384
21962 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
21963 (vn_hash_type): Split out from ...
21964 (vn_hash_constant_with_type): ... here.
21965 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
21966 (vn_phi_eq): Compare types from vn_phi_s structure.
21967 (vn_phi_lookup): Populate vn_phi_s type.
21968 (vn_phi_insert): Likewise.
21969
a475fd3d
JJ
219702013-02-19 Jakub Jelinek <jakub@redhat.com>
21971
47cc28f5
JJ
21972 PR tree-optimization/56350
21973 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
21974 if haven't found reduction or nested cycle operand, rather than
21975 asserting we must find it.
21976
a475fd3d
JJ
21977 PR tree-optimization/56381
21978 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
21979 to fold_build3.
21980
219812013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
21982 Jakub Jelinek <jakub@redhat.com>
21983
21984 PR target/52555
21985 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
21986 (swap_optab_enable): Same.
21987 (init_all_optabs): Use argument instead of global.
88b97037 21988 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
21989 * expr.h (init_all_optabs): Add argument to prototype.
21990 (TREE_OPTIMIZATION_OPTABS): New.
21991 (save_optabs_if_changed): Protoize.
21992 * optabs.h: Declare this_fn_optabs.
21993 * optabs.c (save_optabs_if_changed): New.
21994 Declare this_fn_optabs.
21995 (init_optabs): Add argument to init_all_optabs() call.
21996 * function.c (invoke_set_current_function_hook): Handle per
21997 function optabs.
21998 * function.h (struct function): New field optabs.
21999 * config/mips/mips.c (mips_set_mips16_mode): Handle when
22000 optimization_current_node has changed.
22001 * target-globals.h (save_target_globals_default_opts): Protoize.
22002 * target-globals.c (save_target_globals_default_opts): New.
22003
3f587ca3
JDA
220042013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22005
22006 PR target/56347
22007 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
22008 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
22009
22010 PR target/56214
22011 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
22012 and HImode, require all displacements to be an integer multiple of
22013 their mode size.
ceaca33e
JDA
22014 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
22015 only allow QImode and HImode when reload is in progress and strict is
22016 true. Likewise for symbolic addresses. Use base14_operand to check
22017 displacements in REG+BASE addresses.
22018
fe0b4796
RB
220192013-02-18 Richard Biener <rguenther@suse.de>
22020
22021 PR tree-optimization/56366
22022 * tree-vect-loop.c (get_initial_def_for_induction): Properly
22023 handle sign-conversion of outer-loop initial induction value.
22024
6aaf596b
RB
220252013-02-18 Richard Biener <rguenther@suse.de>
22026
73db8ff1 22027 PR middle-end/56349
6aaf596b
RB
22028 * cfghooks.c (merge_blocks): If we merge a latch into another
22029 block adjust references to it.
22030 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
22031 (verify_loop_structure): Verify that a recorded latch is in fact
22032 a latch.
22033
5e97dfb6
RB
220342013-02-18 Richard Biener <rguenther@suse.de>
22035
22036 PR tree-optimization/56321
22037 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
22038 order SSA name release and virtual operand unlinking.
22039
825527e8
EI
220402013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
22041
22042 * config/microblaze/microblaze.md (save_stack_block): Define.
22043 (restore_stack_block): Likewise.
22044
debd11d9
EI
220452013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
22046
22047 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
22048 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
22049 * config/microblaze/microblaze.c (microblaze_option_override):
22050 Bail out early for PIC modes when target does not support PIC.
22051
8ec77be0
EI
220522013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
22053
88b97037 22054 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
22055 Replace with a microblaze version.
22056 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 22057 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
22058 microblaze.
22059
b41288b3
JJ
220602013-02-16 Jakub Jelinek <jakub@redhat.com>
22061 Dodji Seketeli <dodji@redhat.com>
22062
22063 PR asan/56330
88b97037 22064 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
22065 (instrument_mem_region_access): Do not forget to always put
22066 instrumentation of the of 'base' and 'base + len' in a "if (len !=
22067 0) statement, even for cases where either 'base' or 'base + len'
22068 are not instrumented -- because they have been previously
22069 instrumented. Simplify the logic by putting all the statements
22070 instrument 'base + len' inside a sequence, and then insert that
22071 sequence right before the current insertion point. Then, to
22072 instrument 'base + len', just get an iterator on that statement.
22073 And do not forget to update the pointer to iterator the function
22074 received as argument.
22075
47918951
VM
220762013-02-15 Vladimir Makarov <vmakarov@redhat.com>
22077
22078 PR rtl-optimization/56348
22079 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
22080
3fb7c699
SB
220812013-02-15 Steven Bosscher <steven@gcc.gnu.org>
22082
22083 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
22084 (clean_graph_dump_file): Pass base to start_graph_dump.
22085
576fe41a
RH
220862013-02-14 Richard Henderson <rth@redhat.com>
22087
22088 PR target/55941
22089 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
22090
bb3accfa
SB
220912013-02-14 Steven Bosscher <steven@gcc.gnu.org>
22092
22093 * collect2-aix.h: Define F_LOADONLY.
22094
03143140
RB
220952013-02-14 Richard Biener <rguenther@suse.de>
22096
22097 PR lto/50494
22098 * varasm.c (output_constant_def_1): Get the decl representing
22099 the constant as argument.
22100 (output_constant_def): Wrap output_constant_def_1.
22101 (make_decl_rtl): Use output_constant_def_1 with the decl
22102 representing the constant.
22103 (build_constant_desc): Optionally re-use a decl already
22104 representing the constant.
22105 (tree_output_constant_def): Adjust.
22106
8fb06726
DS
221072013-02-14 Dodji Seketeli <dodji@redhat.com>
22108
22109 Fix an asan crash
22110 * asan.c (instrument_builtin_call): Really put the length of the
22111 second source argument into src1_len.
22112
c4bfe8bf
JJ
221132013-02-13 Jakub Jelinek <jakub@redhat.com>
22114
22115 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
22116 argument. If it is false, don't create edge from then_bb to
22117 fallthru_bb.
22118 (insert_if_then_before_iter): Pass true to it.
22119 (build_check_stmt): Pass false to it.
22120 (transform_statements): Flush hash table only on extended basic
22121 block boundaries, rather than at the beginning of every bb.
22122 Don't flush hash table on nonfreeing_call_p calls.
22123 * tree-flow.h (nonfreeing_call_p): New prototype.
22124 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
22125
7afe2801
DM
221262013-02-13 David S. Miller <davem@davemloft.net>
22127
22128 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
22129
70cc3288
VM
221302013-02-13 Vladimir Makarov <vmakarov@redhat.com>
22131
22132 PR target/56184
22133 * ira.c (max_regno_before_ira): Move from ...
22134 (ira): ... here.
22135 (fix_reg_equiv_init): Use max_regno_before_ira instead of
22136 vec_safe_length.
22137
6422242b
JJ
221382013-02-13 Jakub Jelinek <jakub@redhat.com>
22139
22140 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
22141
976a81ee
RB
221422013-02-13 Richard Biener <rguenther@suse.de>
22143
22144 PR lto/56295
22145 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
22146 globals in MEM_REFs.
22147
c1874a87
RB
221482013-02-13 Richard Biener <rguenther@suse.de>
22149
22150 * loop-init.c (loop_optimizer_init): Clear loop state when
22151 re-initializing preserved loops.
22152 * loop-unswitch.c (unswitch_single_loop): Return whether
22153 we unswitched the loop. Do not verify loop state here.
88b97037 22154 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 22155
b4ab7d34
KS
221562013-02-13 Kostya Serebryany <kcc@google.com>
22157
88b97037
UB
22158 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
22159 on x86_64 linux.
b4ab7d34
KS
22160 * sanitizer.def: Rename __asan_init to __asan_init_v1.
22161
bdcbe80c
DS
221622013-02-12 Dodji Seketeli <dodji@redhat.com>
22163
22164 Avoid instrumenting duplicated memory access in the same basic block
22165 * Makefile.in (asan.o): Add new dependency on hash-table.h
22166 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
22167 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
22168 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
22169 (free_mem_ref_resources, has_mem_ref_been_instrumented)
22170 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
22171 (get_mem_ref_of_assignment): New functions.
22172 (get_mem_refs_of_builtin_call): Extract from
22173 instrument_builtin_call and tweak a little bit to make it fit with
22174 the new signature.
22175 (instrument_builtin_call): Use the new
22176 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
22177 of is_gimple_builtin_call.
22178 (instrument_derefs, instrument_mem_region_access): Insert the
22179 instrumented memory reference into the hash table.
22180 (maybe_instrument_assignment): Renamed instrument_assignment into
22181 this, and change it to advance the iterator when instrumentation
22182 actually happened and return true in that case. This makes it
22183 homogeneous with maybe_instrument_assignment, and thus give a
22184 chance to callers to be more 'regular'.
22185 (transform_statements): Clear the memory reference hash table
22186 whenever we enter a new BB, when we cross a function call, or when
22187 we are done transforming statements. Use
22188 maybe_instrument_assignment instead of instrumentation. No more
22189 need to special case maybe_instrument_assignment and advance the
22190 iterator after calling it; it's now handled just like
22191 maybe_instrument_call. Update comment.
22192
4861a1f7
RB
221932013-02-13 Richard Biener <rguenther@suse.de>
22194
22195 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
22196 Fix loop discovery code.
22197
1c86bd80
VM
221982013-02-12 Vladimir Makarov <vmakarov@redhat.com>
22199
22200 PR inline-asm/56148
22201 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 22202 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
22203 the operand is not reloaded. Prefer to reload conflicting operand
22204 if earlyclobber and matching operands are the same.
22205
7cbda518
RB
222062013-02-12 Richard Biener <rguenther@suse.de>
22207
22208 PR lto/56297
22209 * lto-streamer-out.c (write_symbol): Do not output symbols
22210 for hard register variables.
22211
e68a4ef6
GJL
222122013-02-12 Georg-Johann Lay <avr@gjlay.de>
22213
22214 PR target/54222
22215 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
22216 (umulsidi3_insn, mulsidi3_insn): New insns.
22217
a72d8780 222182013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
22219
22220 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
22221 (struct tune_params): Add vec_costs field.
22222 * config/arm/arm.c (arm_builtin_vectorization_cost)
22223 (arm_add_stmt_cost): New functions.
22224 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
22225 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
22226 (arm_default_vec_cost): New struct of type cpu_vec_costs.
22227 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
22228 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
22229 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
22230 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
22231
43320568
RB
222322013-02-12 Richard Biener <rguenther@suse.de>
22233
22234 PR lto/56295
22235 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
22236 decls again if possible.
22237
a011aa39
RB
222382013-02-12 Richard Biener <rguenther@suse.de>
22239
22240 PR middle-end/56288
22241 * tree-ssa.c (verify_ssa_name): Fix check, move
22242 SSA_NAME_IN_FREE_LIST check up.
22243
6da26889
JJ
222442013-02-12 Jakub Jelinek <jakub@redhat.com>
22245 Steven Bosscher <steven@gcc.gnu.org>
22246
22247 PR rtl-optimization/56151
22248 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
22249 equal to op0 or op1, and last_insn pattern is CODE operation
22250 with MEM dest and one of the operands matches that MEM.
22251
f80e0faf
ST
222522013-02-11 Sriraman Tallam <tmsriramgoogle.com>
22253
22254 * doc/extend.texi: Document Function Multiversioning and "default"
22255 parameter string to target attribute.
22256 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
22257 target attribute parameter is "default".
22258 (ix86_compare_version_priority): Remove checks for target attribute.
22259 (ix86_mangle_function_version_assembler_name): Change error to sorry.
22260 Remove check for target attribute equal to NULL. Add assert.
22261 (ix86_generate_version_dispatcher_body): Change error to sorry.
22262
6c59ffd1
IS
222632013-02-11 Iain Sandoe <iain@codesourcery.com>
22264 Jack Howarth <howarth@bromo.med.uc.edu>
22265 Patrick Marlier <patrick.marlier@gmail.com>
22266
22267 PR libitm/55693
22268 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
22269 define ENDFILE_SPEC as TM_DESTRUCTOR.
22270 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
22271
a72d8780 222722013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
22273 Jack Howarth <howarth@bromo.med.uc.edu>
22274 Jakub Jelinek <jakub@redhat.com>
22275
22276 PR sanitizer/55617
22277 * config/darwin.c (cdtor_record): Rename ctor_record.
22278 (sort_cdtor_records): Rename sort_ctor_records.
22279 (finalize_dtors): New routine to sort destructors by
22280 priority before use in assemble_integer.
22281 (machopic_asm_out_destructor): Use finalize_dtors if needed.
22282
b63fe007
UB
222832013-02-11 Uros Bizjak <ubizjak@gmail.com>
22284
22285 PR rtl-optimization/56275
22286 * simplify-rtx.c (avoid_constant_pool_reference): Check that
22287 offset is non-negative and less than cmode size before
22288 calling simplify_subreg.
22289
8e89b5b5
RB
222902013-02-11 Richard Biener <rguenther@suse.de>
22291
22292 PR tree-optimization/56264
22293 * cfgloop.h (fix_loop_structure): Adjust prototype.
22294 * loop-init.c (fix_loop_structure): Return the number of
22295 newly discovered loops.
22296 * tree-cfgcleanup.c (repair_loop_structures): When new loops
22297 are discovered, do a full loop-closed SSA rewrite.
22298
b4a4b56d
RB
222992013-02-11 Richard Biener <rguenther@suse.de>
22300
22301 PR tree-optimization/56273
22302 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
22303 first VRP run.
22304 (check_array_ref): Fix missing newline in dumps.
22305 (search_for_addr_array): Likewise.
22306
0c885229
DE
223072013-02-09 David Edelsohn <dje.gcc@gmail.com>
22308
22309 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
22310
59ac9a55
JJ
223112013-02-09 Jakub Jelinek <jakub@redhat.com>
22312
22313 PR target/56256
22314 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
22315
25bb0bb5
VM
223162013-02-08 Vladimir Makarov <vmakarov@redhat.com>
22317
22318 PR rtl-optimization/56246
0c885229 22319 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
22320 reload pseudo.
22321 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
22322 constraints are satisfied.
22323
a698cc03
JL
223242013-02-08 Jeff Law <law@redhat.com>
22325
22326 PR debug/53948
22327 * emit-rtl.c (reg_is_parm_p): New function.
22328 * regs.h (reg_is_parm_p): New prototype.
22329 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
22330 callee-clobbered registers.
22331
e1122ddd
MM
223322013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
22333
22334 PR target/56043
22335 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
22336 If there is no implicit builtin declaration, just return NULL.
22337
19c5f6e6
UB
223382013-02-08 Uros Bizjak <ubizjak@gmail.com>
22339
22340 * config/i386/sse.md (FMAMODEM): New mode iterator.
22341 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
22342 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
22343
2480f2ca 223442013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 22345
2480f2ca
UB
22346 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
22347 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
22348 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
22349
223502013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
22351
22352 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
22353 (microblaze*-*-elf): Likewise.
22354 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
22355 LINK_SPEC.
22356 * config/microblaze/microblaze-c.c: Add builtin defines for
22357 _LITTLE_ENDIAN and _BIG_ENDIAN.
22358 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
22359 add to TARGET_DEFAULT flags.
76ef61fb 22360 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
22361 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
22362 * config/microblaze/microblaze.md: Update extendsidi2 and
22363 movdi_internal instructions to use low-order / high-order reg
22364 print_operands.
22365 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
22366 options and inversemask / mask of LITTLE_ENDIAN.
22367 * config/microblaze/t-microblaze: Expand multilib options to
22368 include mlittle-endian (le) and update exceptions patterns.
22369
600a5961
JJ
223702013-02-08 Jakub Jelinek <jakub@redhat.com>
22371
5df81313
JJ
22372 PR rtl-optimization/56195
22373 * lra-constraints.c (get_reload_reg): Don't reuse regs
22374 if they have smaller mode than requested, if they have
22375 wider mode than requested, try to return a SUBREG.
22376
600a5961
JJ
22377 PR tree-optimization/56250
22378 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
22379 if type is unsigned and code isn't MULT_EXPR.
22380
ff544649
GJL
223812013-02-08 Georg-Johann Lay <avr@gjlay.de>
22382
22383 PR tree-optimization/56064
22384 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
22385 bits according to mode.
22386 * fixed-value.h (fixed_from_double_int)
22387 (const_fixed_from_double_int): Adjust comments.
22388
e45cde98
RB
223892013-02-08 Richard Biener <rguenther@suse.de>
22390
22391 PR lto/56231
22392 * lto-streamer.h (struct data_in): Remove current_file, current_line
22393 and current_col members.
22394 * lto-streamer-out.c (lto_output_location): Stream changed bits
22395 en-block for efficiency.
22396 * lto-streamer-in.c (clear_line_info): Remove.
22397 (lto_input_location): Cache current file, line and column
22398 globally via local statics. Read changed bits en-block.
22399 (input_function): Do not call clear_line_info.
22400 (lto_read_body): Likewise.
22401 (lto_input_toplevel_asms): Likewise.
22402
c1ca73d8
MM
224032013-02-08 Michael Matz <matz@suse.de>
22404
22405 PR tree-optimization/52448
22406 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
22407 (nt_call_phase): New static.
22408 (add_or_mark_expr): Only mark accesses with newer phase than any
22409 call seen.
22410 (nonfreeing_call_p): New.
22411 (nt_init_block): Update nt_call_phase, mark blocks as visited.
22412 (nt_fini_block): Keep blocks marked as visited.
22413 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
22414
57548aa2
RB
224152013-02-08 Richard Biener <rguenther@suse.de>
22416
22417 * ira.c (ira): Free broken dominator information.
22418
8e10366f
UB
224192013-02-08 Uros Bizjak <ubizjak@gmail.com>
22420
22421 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
22422
f64fb0fa
MP
224232013-02-08 Marek Polacek <polacek@redhat.com>
22424
8e10366f 22425 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 22426
0375167b
RB
224272013-02-08 Richard Biener <rguenther@suse.de>
22428
22429 PR middle-end/56181
22430 * cfgloop.h (flow_loops_find): Adjust.
22431 (bb_loop_header_p): Declare.
22432 * cfgloop.c (bb_loop_header_p): New function split out from ...
22433 (flow_loops_find): ... here. Adjust function signature,
22434 support incremental loop structure update.
22435 (verify_loop_structure): Cleanup. Verify a loop is a loop.
22436 * cfgloopmanip.c (fix_loop_structure): Move ...
22437 * loop-init.c (fix_loop_structure): ... here.
22438 (apply_loop_flags): Split out from ...
22439 (loop_optimizer_init): ... here.
22440 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
22441 in incremental mode, only remove dead loops here.
22442
85d768f3
GJL
224432013-02-08 Georg-Johann Lay <avr@gjlay.de>
22444
22445 PR target/54222
22446 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
22447 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
22448 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
22449 (*round<mode>3.libgcc): New insns for fixed-modes.
22450 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
22451 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
22452 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
22453 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
22454 implementations. Define to __builtin_avr_absFX,
22455 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
22456 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
22457 __builtin_avr_countlsFX, respectively.
22458 * config/avr/avr-c.c (target.h): Include it.
22459 (enum avr_builtin_id): New enum.
22460 (avr_resolve_overloaded_builtin): New static function.
22461 (avr_register_target_pragmas): Use it to set
22462 targetm.resolve_overloaded_builtin.
22463 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
22464 tree nodes used by DEF_BUILTIN.
22465 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
22466 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
22467 <AVR_BUILTIN_xxBITS>: Same.
22468
661bc682
RB
224692013-02-08 Richard Biener <rguenther@suse.de>
22470
22471 * cfgloop.c (verify_loop_structure): Properly handle
22472 a loop exiting to another loop header.
22473 * ira-int.h (ira_loops): Remove.
22474 * ira.c (ira_loops): Remove.
22475 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
22476 (do_reload): Use loop_optimizer_finalize.
22477 * ira-build.c (create_loop_tree_nodes): Use get_loops and
22478 number_of_loops to access the loop tree.
22479 (more_one_region_p): Likewise.
22480 (finish_loop_tree_nodes): Likewise.
22481 (rebuild_regno_allocno_maps): Likewise.
22482 (mark_loops_for_removal): Likewise.
22483 (mark_all_loops_for_removal): Likewise.
22484 (remove_unnecessary_regions): Likewise.
22485 (ira_build): Likewise.
22486 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
22487
0d5049b2
RB
224882013-02-08 Richard Biener <rguenther@suse.de>
22489
22490 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
22491 * ipa-pure-const.c (analyze_function): Avoid calling
22492 mark_irreducible_loops twice.
8e10366f 22493 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 22494
499f32e8
DM
224952013-02-07 David S. Miller <davem@davemloft.net>
22496
22497 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
22498 on 'reg'.
22499 * var-tracking.c (vt_add_function_parameter): Test the presence of
22500 HAVE_window_save properly and do not remap argument registers when
22501 we have a leaf function.
22502
6edc3e32
UB
225032013-02-07 Uros Bizjak <ubizjak@gmail.com>
22504
22505 PR bootstrap/56227
22506 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
22507 instead of "ll".
22508 * config/i386/i386.c (ix86_print_operand): Ditto.
22509
5306401f
VM
225102013-02-07 Vladimir Makarov <vmakarov@redhat.com>
22511
6edc3e32 22512 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 22513
027ece11
VM
225142013-02-07 Vladimir Makarov <vmakarov@redhat.com>
22515
22516 PR rtl-optimization/56225
22517 * lra-constraints.c (process_alt_operands): Check that reload hard
22518 reg can hold value for strict_low_part.
22519
f980dfdb
JJ
225202013-02-07 Jakub Jelinek <jakub@redhat.com>
22521
22522 PR debug/56154
22523 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
22524 dwarf2out_end_function.
22525 (in_first_function_p, maybe_at_text_label_p,
22526 first_loclabel_num_not_at_text_label): New variables.
22527 (dwarf2out_var_location): In the first function find out
6edc3e32 22528 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
22529 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
22530 functions.
22531
73dd3123
EB
225322013-02-07 Eric Botcazou <ebotcazou@adacore.com>
22533
22534 PR rtl-optimization/56178
22535 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
22536 SUBREG of a register. Tidy up related block of code.
22537 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
22538 note if the source is a register or a SUBREG of a register.
22539
e3936f47
JJ
225402013-02-07 Jakub Jelinek <jakub@redhat.com>
22541
22542 PR target/56228
22543 * config/rs6000/rs6000.md (ptrm): New mode attr.
22544 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
22545 call_value_indirect_aix<pttrsize>,
22546 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
22547 m in constraints.
22548
d96d674b
MH
225492013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
22550
22551 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
22552 if -bnortl. Convert to strcmp and strncmp.
22553
921f2dee
AM
225542013-02-07 Alan Modra <amodra@gmail.com>
22555
22556 PR target/54009
22557 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
22558 addresses won't wrap when offsetting.
22559 (rs6000_secondary_reload): Provide secondary reloads needed for
22560 wrapping LO_SUM addresses.
22561
d09c7dba
TS
225622013-02-06 Thomas Schwinge <thomas@codesourcery.com>
22563
22564 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
22565 MACH, just __MACH__.
22566
a44bbd48
RB
225672013-02-06 Richard Biener <rguenther@suse.de>
22568
22569 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
22570 instead of calling fix_loop_structure.
22571
6d840d99
JJ
225722013-02-06 Jakub Jelinek <jakub@redhat.com>
22573
22574 PR middle-end/56217
22575 * omp-low.c (use_pointer_for_field): Return false if
22576 lower_send_shared_vars doesn't generate any copy-out code.
22577
0f33baa9
TV
225782013-02-06 Tom de Vries <tom@codesourcery.com>
22579
22580 PR rtl-optimization/56131
22581 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
22582 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
22583 of the label is NULL. Add comment.
22584
11f1e3ab
JJ
225852013-02-05 Jakub Jelinek <jakub@redhat.com>
22586
31502f9f
JJ
22587 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
22588
a74db9bd
JJ
22589 PR sanitizer/55374
22590 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
22591 (STATIC_LIBTSAN_LIBS): Likewise.
22592 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
22593 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
22594 is defined, don't add anything else beyond that.
22595 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
22596 (LINK_COMMAND_SPEC): Use them.
22597
11f1e3ab
JJ
22598 PR tree-optimization/56205
22599 * tree-stdarg.c (check_all_va_list_escapes): Return true if
22600 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
22601 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
22602
14ac6aa2
RB
226032013-02-05 Richard Biener <rguenther@suse.de>
22604
22605 PR tree-optimization/53342
22606 PR tree-optimization/53185
22607 * tree-vectorizer.h (vect_check_strided_load): Remove.
22608 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
22609 not disallow peeling for vectorized strided loads.
22610 (vect_check_strided_load): Make static and simplify.
22611 (vect_analyze_data_refs): Adjust.
22612 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
22613 correctly when vectorizing strided loads.
22614
6f22445a
RB
226152013-02-05 Richard Biener <rguenther@suse.de>
22616
22617 * doc/install.texi: Refer to ISL, not PPL.
22618
39f9719e
JH
226192013-02-05 Jan Hubicka <jh@suse.cz>
22620
ec4224ac
JH
22621 PR tree-optimization/55789
22622 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
22623
226242013-02-05 Jan Hubicka <jh@suse.cz>
22625
22626 PR tree-optimization/55789
39f9719e
JH
22627 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
22628 the dead call anyway.
22629
956d3b33
EB
226302013-02-05 Eric Botcazou <ebotcazou@adacore.com>
22631
22632 PR sanitizer/55374
22633 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
22634
226352013-02-04 Alexander Potapenko <glider@google.com>
22636 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
22637 Jakub Jelinek <jakub@redhat.com>
22638
22639 PR sanitizer/55617
22640 * config/darwin.c (sort_ctor_records): Stabilized qsort
22641 on constructor priority by using original position.
22642 (finalize_ctors): New routine to sort constructors by
22643 priority before use in assemble_integer.
22644 (machopic_asm_out_constructor): Use finalize_ctors if needed.
22645
7ac3af38
JJ
226462013-02-04 Jakub Jelinek <jakub@redhat.com>
22647
22648 PR libstdc++/54314
22649 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
22650 about visibility on artificial decls.
22651 * config/sol2.c (solaris_assemble_visibility): Likewise.
22652
152689dc
KT
226532013-02-04 Kai Tietz <ktietz@redhat.com>
22654
22655 PR target/56186
22656 * config/i386/i386.c (function_value_ms_64): Add additional valtype
22657 argument and improve checking of return-argument types for 16-byte
22658 modes.
22659 (ix86_function_value_1): Add additional valtype argument on call
22660 of function_value_64.
22661 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
22662 handling infunction_value_64 function.
22663
2b5987b5
MGD
226642013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
22665
7ac3af38 22666 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 22667
14597080
RB
226682013-02-04 Richard Biener <rguenther@suse.de>
22669
22670 PR tree-optimization/56188
22671 * tree-ssa-structalias.c (label_visit): Consider case with
22672 initially non-empty points-to set.
22673 (perform_var_substitution): Dump node mapping and clean up.
22674
ed73881e
RG
226752013-02-04 Richard Guenther <rguenther@suse.de>
22676
22677 PR lto/56168
22678 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
22679 node prevail as last resort.
22680 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 22681 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 22682
139a0707
RB
226832013-02-04 Richard Biener <rguenther@suse.de>
22684
22685 PR tree-optimization/56113
22686 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
22687 Merge into ...
22688 (equiv_class_lookup_or_add): ... this.
22689 (label_visit): Adjust and fix error in previous patch.
22690 (perform_var_substitution): Adjust.
22691
50fe8924
OE
226922013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
22693
22694 * config/sh/divtab.c: Fix formatting and comments throughout the file.
22695 * config/sh/sh4-300.md: Likewise.
22696 * config/sh/sh4a.md: Likewise.
22697 * config/sh/constraints.md: Likewise.
22698 * config/sh/sh.md: Likewise.
22699 * config/sh/netbsd-elf.h: Likewise.
22700 * config/sh/predicates.md: Likewise.
22701 * config/sh/sh-protos.h: Likewise.
22702 * config/sh/ushmedia.h: Likewise.
22703 * config/sh/linux.h: Likewise.
22704 * config/sh/sh.c: Likewise.
22705 * config/sh/superh.h: Likewise.
22706 * config/sh/elf.h: Likewise.
22707 * config/sh/sh4.md: Likewise.
22708 * config/sh/sh.h: Likewise.
22709
1a04ac2b
JDA
227102013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22711
22712 * config/pa/constraints.md: Adjust unused letters. Change "T"
22713 constraint to match_test floating_point_store_memory_operand().
22714 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
22715 (base14_operand): New.
22716 (floating_point_store_memory_operand): New.
22717 (integer_store_memory_operand): Revise to use base14_operand and
22718 reg_plus_base_memory_operand.
22719 (move_dest_operand): Allow symbolic_memory_operands.
22720 (symbolic_memory_operand): Check for LO_SOM.
22721 (symbolic_operand): Change default case to break.
22722 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
22723 CONST_DOUBLE values to be reloaded by putting them into memory when
22724 the destination is a floating point register.
22725 (movdf): Remove code to handle CONST_DOUBLE.
22726 (movsf): Likewise.
22727 (reload_indf_r1): New.
22728 (reload_insf_r1): New.
22729 Consistently use "Q" and "T" constraints with integer and floating
22730 point move instructions, respectively.
22731 (movdi): Remove FAIL.
22732 Change predicate for source operand unamed DImode move from
22733 general_operand to move_src_operand.
22734 (umulsidi3): Change predicate for destination operand to
22735 register_operand.
22736 Likewise for similar unamed patterns.
22737 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
22738 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
22739 (hppa_legitimize_address): Simplify mask calculation.
22740 (pa_emit_move_sequence): Revised handling of secondary reloads from
22741 REG+D addresses for floating point loads and stores. Directly handle
22742 loading CONST0_RTX (mode) to a floating point register.
22743 (pa_secondary_reload): Handle reloading DF and SFmode constant values
22744 to floating point registers. Don't restrict secondary reloads to
22745 floating point registers to integer modes. Revise some comments and
22746 cleanup some code.
22747 (TARGET_LEGITIMATE_ADDRESS_P): Define.
22748 (pa_legitimate_address_p): New.
22749 (pa_legitimize_reload_address): New.
22750 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
22751 (STRICT_REG_OK_FOR_BASE_P): New.
22752 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
22753 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
22754
3bf65591
DE
227552013-02-03 David Edelsohn <dje.gcc@gmail.com>
22756 Andrew Dixie <andrewd@gentrack.com>
22757
22758 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
22759 flag set.
22760
c0a8a3e6
RS
227612013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
22762
22763 * expmed.c (extract_bit_field_1): Pass the full width of the
22764 structure to get_best_reg_extraction_insn.
22765
99113dff
DE
227662013-02-01 David Edelsohn <dje.gcc@gmail.com>
22767
22768 PR target/54601
22769 * configure.ac (use_cxa_atexit): Add AIX.
22770 * configure: Regenerate.
22771
22772 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
22773
ddd84654
JJ
227742013-02-01 Jakub Jelinek <jakub@redhat.com>
22775
22776 PR debug/54793
22777 * final.c (need_profile_function): New variable.
22778 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
22779 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
22780 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
22781 notes, targetm.asm_out.function_prologue doesn't emit anything,
22782 HAVE_prologue and profiler should be emitted before prologue,
22783 set need_profile_function instead of emitting it.
22784 (final_scan_insn): If need_profile_function, emit
22785 profile_function on the first NOTE_INSN_BASIC_BLOCK or
22786 NOTE_INSN_FUNCTION_BEG note.
22787
227882013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
22789
22790 * config/rs6000/rs6000.md (smulditi3): New.
22791 (umulditi3): New.
22792
ff2a9d88
RH
22793 * config/alpha/alpha.md (umulditi3): New.
22794
14d52b90
DE
227952013-02-01 David Edelsohn <dje.gcc@gmail.com>
22796
22797 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
22798 (ASM_OUTPUT_ALIGNED_LOCAL): New.
22799
8c7ca45c
RB
228002013-02-01 Richard Biener <rguenther@suse.de>
22801
22802 PR tree-optimization/56113
22803 * tree-ssa-structalias.c (label_visit): Reduce work for
22804 single-predecessor nodes.
22805
9f419393
EB
228062013-02-01 Eric Botcazou <ebotcazou@adacore.com>
22807
22808 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
22809 range isn't testing for zero.
22810
c5f4be84
SB
228112013-01-31 Steven Bosscher <steven@gcc.gnu.org>
22812
22813 PR middle-end/56113
22814 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
22815
dbdbd982
NC
228162013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
22817 Nick Clifton <nickc@redhat.com>
22818
22819 * config/v850/constraints.md (Q): Define as a memory constraint.
22820 * config/v850/predicates.md (label_ref_operand): New predicate.
22821 (e3v5_shift_operand): New predicate.
22822 (ior_operator): New predicate.
22823 * config/v850/t-v850: Add e3v5 multilib.
22824 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
22825 (v850_gen_movdi): Prototype.
22826 * config/v850/v850.c: Add support for e3v5 architecture.
22827 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
22828 TARGET_V850E_UP.
22829 (construct_save_jarl): Add e3v5 long JARL support.
22830 (v850_adjust_insn_length): New function. Adjust length of call
22831 insns when using e3v5 instructions.
22832 (v850_gen_movdi): New function: Generate instructions to move a
22833 DImode value.
22834 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
22835 (CPP_SPEC): Define __v850e3v5__ as appropriate.
22836 (TARGET_USE_FPU): Enable for e3v5.
22837 (CONST_OK_FOR_W): New macro.
22838 (ADJUST_INSN_LENGTH): Define.
22839 * config/v850/v850.md (UNSPEC_LOOP): Define.
22840 (attr cpu): Add v850e3v5.
22841 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
22842 (movdi): New pattern.
22843 (movdi_internal): New pattern.
22844 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
22845 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
22846 (cstoresf4): Likewise.
22847 (cstoredf4): Likewise.
22848 (insv): New pattern.
22849 (rotlso3_a): New pattern.
22850 (rotlsi3_b): New pattern
22851 (rotlsi3_v850e3v5): New pattern.
22852 (doloop_begin): New pattern.
22853 (fix_loop_counter): New pattern.
22854 (doloop_end): New pattern.
22855 (branch_normal): Add e3v5 long branch support.
22856 (branch_invert): Likewise.
22857 (branch_z_normal): Likewise.
22858 (branch_z_invert): Likewise.
22859 (branch_nz_normal): Likewise.
22860 (branch_nz_invert): Likewise.
22861 (call_internal_short): Add e3v5 register-indirect JARL support.
22862 (call_internal_long): Likewise.
22863 (call_value_internal_short): Likewise.
22864 (call_value_internal_long): Likewise.
22865 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
22866 (mloop): New option.
22867 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 22868 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 22869
73861a41
PK
228702013-01-31 Paul Koning <ni1d@arrl.net>
22871
22872 PR debug/55059
22873 PR debug/54508
22874 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
22875 children if parent is a class.
22876 (prune_unused_types_prune): Don't add DW_AT_declaration.
22877
e44978dc
RB
228782013-01-31 Richard Biener <rguenther@suse.de>
22879
22880 PR tree-optimization/56157
22881 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
22882 match up operand with SLP child.
22883
90b10dec
JM
228842013-01-31 Jason Merrill <jason@redhat.com>
22885
04d2dadd 22886 PR debug/54410
90b10dec
JM
22887 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
22888 parameters the first time.
22889 (gen_scheduled_generic_parms_dies): Check completeness here.
22890
6e616110
RB
228912013-01-31 Richard Biener <rguenther@suse.de>
22892
22893 PR middle-end/53073
22894 * common.opt (faggressive-loop-optimizations): New flag,
22895 enabled by default.
22896 * doc/invoke.texi (faggressive-loop-optimizations): Document.
22897 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
22898 infer_loop_bounds_from_undefined by it.
22899
636f59cf
RB
229002013-01-31 Richard Biener <rguenther@suse.de>
22901
22902 PR tree-optimization/56150
22903 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
22904 visit virtual operands.
22905 (find_uses_to_rename_bb): Likewise.
22906
229072013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
22908
22909 PR tree-optimization/56150
22910 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
22911 mixed store non-store stmts.
22912
32887460
JJ
229132013-01-30 Jakub Jelinek <jakub@redhat.com>
22914
e60e09a0
JJ
22915 PR sanitizer/55374
22916 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
22917 LIBASAN_EARLY_SPEC is defined.
22918 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
22919 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
22920 before %o.
22921 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
22922
32887460
JJ
22923 PR c++/55742
22924 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
22925 invalid args instead of ICEing on it.
22926 (ix86_valid_target_attribute_tree): Return error_mark_node if
22927 ix86_valid_target_attribute_inner_p failed.
22928 (ix86_valid_target_attribute_p): Return false only if
22929 ix86_valid_target_attribute_tree returned error_mark_node. Allow
22930 target("default") attribute.
22931 (sorted_attr_string): Change argument from const char * to tree,
22932 merge in all target attribute arguments rather than just one.
22933 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
22934 instead of free. Avoid using strcat.
22935 (ix86_mangle_function_version_assembler_name): Mangle
22936 target("default") as if no target attribute is present. Adjust
22937 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
22938 instead of xmalloc and XDELETEVEC instead of free.
22939 (ix86_function_versions): Don't return true if one of the decls
22940 doesn't have target attribute. If they don't and one of the decls
22941 is DECL_FUNCTION_VERSIONED, report an error. Adjust
22942 sorted_attr_string caller. Use XDELETEVEC instead of free.
22943 (ix86_supports_function_versions): Remove.
22944 (make_name): Fix up formatting.
22945 (make_dispatcher_decl): Remove resolver_name and its initialization.
22946 Avoid leaking memory.
22947 (is_function_default_version): Return true if there is
22948 target("default") attribute rather than no target attribute at all.
22949 (make_resolver_func): Avoid leaking memory.
22950 (ix86_generate_version_dispatcher_body): Likewise.
22951 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
22952 * target.def (supports_function_versions): Remove.
22953 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
22954 * doc/tm.texi: Regenerated.
22955
73cca0cc
VM
229562013-01-30 Vladimir Makarov <vmakarov@redhat.com>
22957
22958 PR rtl-optimization/56144
22959 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
22960 for values with side effects.
22961
11452e7b
RB
229622013-01-30 Richard Biener <rguenther@suse.de>
22963
22964 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
22965 (sparseset_pop): Likewise.
22966 * cfganal.c (compute_idf): Likewise. Increase work-stack size
22967 to be able to use quick_push in the worker loop.
22968
01cb1ef5
MP
229692013-01-30 Marek Polacek <polacek@redhat.com>
22970
22971 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
22972
e892936e
RB
229732013-01-30 Richard Biener <rguenther@suse.de>
22974
22975 PR lto/56147
6edc3e32 22976 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 22977
cc06c01d
GJL
229782013-01-30 Georg-Johann Lay <avr@gjlay.de>
22979
22980 PR tree-optimization/56064
22981 * fixed-value.c (fixed_from_double_int): New function.
22982 * fixed-value.h (fixed_from_double_int): New prototype.
22983 (const_fixed_from_double_int): New static inline function.
22984 * fold-const.c (native_interpret_fixed): New static function.
22985 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
22986 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
22987 (native_encode_fixed): New static function.
22988 (native_encode_expr) <FIXED_CST>: Use it.
22989 (native_interpret_int): Move double_int worker code to...
22990 * double-int.c (double_int::from_buffer): ...this new static method.
22991 * double-int.h (double_int::from_buffer): Prototype it.
22992
d394a308
RB
229932013-01-30 Richard Biener <rguenther@suse.de>
22994
22995 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
22996 New pointer-map and obstack.
22997 (init_alias_vars): Allocate pointer-map and obstack.
22998 (delete_points_to_sets): Free them.
22999 (find_what_var_points_to): Cache result.
23000 (find_what_p_points_to): Adjust for changed interface of
23001 find_what_var_points_to.
23002 (compute_points_to_sets): Likewise.
23003 (ipa_pta_execute): Likewise.
23004
20804d96
RO
230052013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23006
23007 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
23008 * configure: Regenerate.
23009 * config.in: Regenerate.
23010 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
23011 #nobits/#progbits if supported.
23012
a7ad88a2
OE
230132013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
23014
23015 PR target/56121
23016 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
23017 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
23018 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
23019
7af79f92
GY
230202013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
23021
91bfca59
OE
23022 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
23023 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 23024
753bcf7b
GY
230252013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
23026
91bfca59
OE
23027 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
23028 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 23029
8cbc2ea8
GY
230302013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
23031
91bfca59
OE
23032 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
23033 declaration.
23034 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
23035 * config/arm/cortex-a7.md: New bypasses using
23036 arm_mac_accumulator_is_result.
8cbc2ea8 23037
697a3325
GY
230382013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
23039
91bfca59 23040 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 23041 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
23042 (cortex_a7_fpfmad): New reservation.
23043 (cortex_a7_fpmacs): Use ffmas and update required units.
23044 (cortex_a7_fpmuld): Update required units and latency.
23045 (cortex_a7_fpmacd): Likewise.
23046 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
23047 (cortex_a7_neon). Likewise.
23048 (bypass) Update participating units.
697a3325 23049
29637783
GY
230502013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
23051
91bfca59
OE
23052 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
23053 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
23054 from fmac to ffma.
23055 * config/arm/vfp11.md (vfp_farith): Use ffmas.
23056 (vfp_fmul): Use ffmad.
23057 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
23058 (cortex_r4_fmacd): Use ffmad.
23059 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
23060 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
23061 (cortex_a9_fmacd): Use ffmad.
23062 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
23063 (cortex_a8_vfp_macd): Use ffmad.
23064 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
23065 (cortex_a5_fpmacd): Use ffmad.
23066 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
23067 (cortex_a15_vfp_macd): Use ffmad.
23068 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 23069
2ee8a2d5
JM
230702013-01-29 Jason Merrill <jason@redhat.com>
23071
23072 PR libstdc++/54314
23073 * varasm.c (default_assemble_visibility): Don't warn about
23074 visibility on artificial decls.
23075
78d087bc
RB
230762013-01-29 Richard Biener <rguenther@suse.de>
23077
23078 PR tree-optimization/56113
23079 * tree-ssa-structalias.c (equiv_class_lookup): Also return
23080 the bitmap leader.
23081 (label_visit): Free duplicate bitmaps and record the leader instead.
23082 (perform_var_substitution): Adjust.
23083
83ba4d6f
RB
230842013-01-29 Richard Biener <rguenther@suse.de>
23085
23086 PR tree-optimization/55270
23087 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
23088 the CFG, schedule loops for fixup.
23089
66dfe13f
NC
230902013-01-29 Nick Clifton <nickc@redhat.com>
23091
23092 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
23093 SP_REG.
23094
5a579c3b
LE
230952013-01-28 Leif Ekblad <leif@rdos.net>
23096
23097 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
23098 * config/i386/i386.h (TARGET_RDOS): New macro.
23099 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
23100 * config/i386/i386.c (ix86_option_override_internal): For 64bit
23101 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
23102 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
23103 DEFAULT_LARGE_SECTION_THRESHOLD.
23104 * config/i386/i386.md (R14_REG, R15_REG): New constants.
23105 * config/i386/rdos.h: New file.
23106 * config/i386/rdos64.h: New file.
23107
51e44392
BS
231082013-01-28 Bernd Schmidt <bernds@codesourcery.com>
23109
23110 PR other/54814
23111 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
23112 TEST_HARD_REG_BIT.
23113
db1fb332
JJ
231142013-01-28 Jakub Jelinek <jakub@redhat.com>
23115
23116 PR rtl-optimization/56117
23117 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
23118 call cselib_lookup_from_insn on the MEM before calling
23119 add_insn_mem_dependence.
23120
16917761
RB
231212013-01-28 Richard Biener <rguenther@suse.de>
23122
23123 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
23124 to a stmt that didn't have one.
23125 (copy_phis_for_bb): Likewise for PHI arguments.
23126 (copy_debug_stmt): Likewise for debug stmts.
23127
b9fc0497
RB
231282013-01-28 Richard Biener <rguenther@suse.de>
23129
23130 PR tree-optimization/56034
6edc3e32 23131 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
23132 (partition_builtin_p): Adjust.
23133 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
23134 it is the last partition.
23135 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
23136 up the vertex for the definition.
23137 (classify_partition): Classify whether a partition is a
23138 PKIND_REDUCTION, thus has uses outside of the loop.
23139 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
23140 Merge all PKIND_REDUCTION partitions into the last partition.
23141 (tree_loop_distribution): Seed partitions from reductions as well.
23142
aa710d25
JJ
231432013-01-28 Jakub Jelinek <jakub@redhat.com>
23144
0bfbca58
JJ
23145 PR tree-optimization/56125
23146 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
23147 pow(x,c) into sqrt(x) * powi(x, n/2) or
23148 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
23149 optimizing for size.
23150 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
23151 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
23152 integer.
23153
aa710d25
JJ
23154 PR tree-optimization/56094
23155 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
23156 to UNKNOWN_LOCATION while gimplifying expr.
23157
77dc5297
UB
231582013-01-27 Uros Bizjak <ubizjak@gmail.com>
23159
23160 PR target/56114
23161 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
23162 operand 0 in movabs insn template for -masm=intel asm alternative.
23163 (*movabs<mode>_2): Ditto for operand 1.
23164
0bfbca58 231652013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
23166
23167 PR target/54663
23168 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
23169 of microblaze-c.o
23170
0bfbca58 231712013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
23172
23173 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
23174 tm_file.
23175
0bfbca58 231762013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
23177
23178 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
23179 Undef to avoid warning.
23180
478f60f9
MH
231812013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
23182
23183 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
23184 * configure: Regenerate.
23185
d7fa6ee2
JJ
231862013-01-25 Jakub Jelinek <jakub@redhat.com>
23187
23188 PR tree-optimization/56098
23189 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
23190 for stmts with volatile ops.
23191 (cond_store_replacement): Don't optimize if assign has volatile ops.
23192 (cond_if_else_store_replacement_1): Don't optimize if either
23193 then_assign or else_assign have volatile ops.
23194 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
23195 volatile ops.
23196
f8fe87bd
GJL
231972013-01-25 Georg-Johann Lay <avr@gjlay.de>
23198
23199 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
23200
28398d0d
GJL
232012013-01-25 Georg-Johann Lay <avr@gjlay.de>
23202
23203 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
23204 missing ':' in asm example.
23205
b7d7d917
TB
232062013-01-25 Tejas Belagod <tejas.belagod@arm.com>
23207
23208 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
23209 entries into lane and laneq entries.
77dc5297
UB
23210 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
23211 Remove AdvSIMD scalar modes.
b7d7d917
TB
23212 (aarch64_sq<r>dmulh_laneq<mode>): New.
23213 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
23214 modes.
23215 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
23216 builtin implementations to relfect changes in RTL in aarch64-simd.md.
23217 * config/aarch64/iterators.md (VCOND): New.
23218 (VCONQ): New.
23219
556f9906
GJL
232202013-01-25 Georg-Johann Lay <avr@gjlay.de>
23221
23222 PR target/54222
23223 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
23224 Add NULL LIBNAME argument to existing definitions.
23225 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
23226 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
23227 * config/avr/avr.c (DEF_BUILTIN): Same.
23228 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
23229 (avr_expand_builtin): Expand to a vanilla call if a libgcc
23230 implementation is available (DECL_ASSEMBLER_NAME is set).
23231 (avr_fold_absfx): New static function.
23232 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
23233 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
23234 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
23235 AVR_BUILTIN_ABSLLK.
23236 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
23237 (abshk, absk, abslk, absllk): Provide as static inline functions.
23238
1f546bbb
MP
232392013-01-25 Marek Polacek <polacek@redhat.com>
23240
23241 PR tree-optimization/56035
23242 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
23243
7e184bd7
UB
232442012-01-24 Uros Bizjak <ubizjak@gmail.com>
23245
23246 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
23247 (*movtf_internal_rex64): Add (!o,C) alternative
23248 (*movxf_internal_rex64): Ditto.
23249 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
23250
f5ba49ac
SM
232512013-01-24 Shenghou Ma <minux.ma@gmail.com>
23252
23253 * doc/invoke.texi: fix typo.
23254 * doc/objc.texi: fix typo.
23255
a6343728
RS
232562013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
23257
23258 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
23259 for the first two alternatives.
23260
cd030c07
DN
232612013-01-24 Diego Novillo <dnovillo@google.com>
23262
77dc5297 23263 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
23264 (ggc-zone.o): Remove.
23265 * configure.ac: Remove option --with-gc.
23266 * configure: Re-generate.
23267 * doc/install.texi: Remove documentation for --with-gc.
23268 * gengtype.c (write_enum_defn): Remove. Update all users.
23269 (write_Types_process_field): Remove generation of gt_e_* argument.
23270 (output_type_enum): Remove. Update all users.
23271 (write_enum_defn): Remove. Update all users.
23272 (enum alloc_zone): Remove. Update all users.
77dc5297 23273 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
23274 * ggc-common.c (ggc_splay_alloc): Remove first argument.
23275 Update all callers.
23276 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 23277 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
23278 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
23279 Update all users.
aaf1e810 23280 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
23281 (struct alloc_zone): Remove.
23282 (ggc_internal_alloc_zone_stat): Remove.
23283 (ggc_internal_cleared_alloc_zone_stat): Remove.
23284 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
23285 (ggc_pch_count_object): Remove last argument. Update all users.
23286 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
23287 (struct alloc_zone): Remove.
23288 * ggc-zone.c: Remove.
77dc5297 23289 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
23290 (struct alloc_zone): Remove.
23291 (ggc_alloc_typed_stat): Remove.
23292 (ggc_alloc_typed): Remove.
23293 (ggc_splay_alloc): Remove first argument.
23294 (rtl_zone): Remove. Update all users.
23295 (tree_zone): Remove. Update all users.
23296 (tree_id_zone): Remove. Update all users.
23297 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 23298 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 23299 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 23300 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 23301
a861ffa4
GJL
233022013-01-24 Georg-Johann Lay <avr@gjlay.de>
23303
23304 * config/avr/avr.c (avr_out_fract): Make register numbers that
23305 might be outside of source operand signed.
23306
593c0ddd
UB
233072013-01-24 Uros Bizjak <ubizjak@gmail.com>
23308
23309 * config/i386/constraints.md (Yf): New constraint.
23310 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
23311 of f constraint to conditionaly disable x87 register preferences.
23312 (*movdf_internal): Ditto.
23313 (*movsf_internal): Ditto.
23314
e86c0101
SB
233152013-01-24 Steven Bosscher <steven@gcc.gnu.org>
23316
23317 PR inline-asm/55934
23318 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
23319 that have operands with impossible constraints.
23320 Add a FIXME for a speed-up opportunity.
23321 * lra-constraints.c (process_alt_operands): Verify that a class
23322 selected from constraints on asms is valid for the operand mode.
23323 (curr_insn_transform): Remove incorrect comment.
23324
f6fee35f
DE
233252013-01-23 David Edelsohn <dje.gcc@gmail.com>
23326
23327 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
23328 TOC operand is a valid symbol ref in the constant pool.
23329
233302013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 23331
aaf1e810 23332 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 23333
dc62d7d1
GJL
233342013-01-23 Georg-Johann Lay <avr@gjlay.de>
23335
23336 PR target/54222
23337 * config/avr/stdfix.h: New file.
23338 * t-avr (stdfix-gcc.h): New rule to build it.
23339 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
23340
2660d12d
KS
233412013-01-23 Kostya Serebryany <kcc@google.com>
23342
77dc5297
UB
23343 * config/darwin.h: remove dependency on
23344 CoreFoundation (asan on Mac OS).
2660d12d 23345
a70418fc
JJ
233462013-01-23 Jakub Jelinek <jakub@redhat.com>
23347
23348 PR target/49069
23349 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
23350 instead of cmpdi_operand for first comparison operand.
23351 Don't assert that comparison operands aren't both constants.
23352
47876a2a
JW
233532013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
23354
23355 * doc/install.texi (Downloading the Source): Update references to
23356 downloading separate components.
23357
233582013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
23359
23360 * doc/extend.texi (__int128): Improve grammar.
23361
47876a2a 233622013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
23363
23364 PR target/56028
23365 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
23366 alternative to (o,r).
23367 (*movdi_internal_rex64): Remove (!o,n) alternative.
23368 (DImode immediate->memory splitter): Remove.
23369 (DImode immediate->memory peephole2): Remove.
23370 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
23371 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
23372 alternative to (!o,*r).
23373 (*movtf_internal_sse): New pattern.
23374 (*movxf_internal_rex64): New pattern.
23375 (*movxf_internal): Disable for TARGET_64BIT.
23376 (*movdf_internal_rex64): Remove (!o,F) alternative.
23377
3a984f10
JJ
233782013-01-22 Jakub Jelinek <jakub@redhat.com>
23379
502498d5
JJ
23380 PR middle-end/56074
23381 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
23382 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
23383 * tree-vect-loop-manip.c (find_loop_location): Also ignore
23384 stmt locations where LOCATION_LOCUS of the stmt location is
23385 UNKNOWN_LOCATION or BUILTINS_LOCATION.
23386
3a984f10
JJ
23387 PR target/55686
23388 * config/i386/i386.md (UNSPEC_STOS): New.
23389 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
23390 *strsetqi_1): Add UNSPEC_STOS.
23391
fa817f7f
PC
233922013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
23393
23394 PR c++/56067
23395 * doc/invoke.texi: Remove left over -Wsynth example.
23396
8f498c1b
JJ
233972013-01-21 Jakub Jelinek <jakub@redhat.com>
23398
23399 PR tree-optimization/56051
23400 * fold-const.c (fold_binary_loc): Don't fold
23401 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
23402 a narrowing conversion, or widening conversion from signed
23403 to unsigned.
23404
47876a2a 234052013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
23406
23407 PR rtl-optimization/56023
23408 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
23409 dependent on debug instruction.
23410
5b9db1bc
MJ
234112013-01-21 Martin Jambor <mjambor@suse.cz>
23412
23413 PR middle-end/56022
23414 * function.c (allocate_struct_function): Call
23415 invoke_set_current_function_hook earlier.
23416
e8bb7d68
JJ
234172013-01-21 Jakub Jelinek <jakub@redhat.com>
23418
23419 * reload1.c (init_reload): Only initialize reload_obstack
23420 during the first call.
23421
616a4e32
MP
234222013-01-21 Marek Polacek <polacek@redhat.com>
23423
23424 * cfgloop.c (verify_loop_structure): Fix up grammar.
23425
4401981b
YHH
234262013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
23427
23428 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
23429 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
23430
8e87740b
RR
234312013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23432
23433 PR target/56058
23434 * config/arm/marvell-pj4.md: Update copyright year.
23435 Fix up use of alu to alu_reg and simple_alu_imm.
23436
47876a2a 234372013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
23438
23439 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
23440
89d56d79
VM
234412013-01-20 Vladimir Makarov <vmakarov@redhat.com>
23442
23443 PR target/55433
23444 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 23445 insn for secondary memory move when memory mode should be different.
89d56d79 23446
fe603553
JDA
234472013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23448
23449 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
23450 atomic_storedi_1): New patterns.
23451
01284895
VK
234522013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23453
23454 btver2 pipeline descriptions.
23455 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
23456 descriptions.
23457 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 23458 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
23459 type attributes.
23460 * config/i386/btver2.md: New file describing btver2 pipelines.
23461
5630e3e1
JL
234622013-01-19 Andrew Pinski <apinski@cavium.com>
23463
23464 PR tree-optimization/52631
23465 * tree-ssa-sccvn (visit_use): Before looking up the original
23466 statement, try looking up the simplified expression.
23467
650ae806
AG
234682013-01-19 Anthony Green <green@moxielogic.com>
23469
23470 * config/moxie/moxie.c (moxie_expand_prologue): Set
23471 current_function_static_stack_size.
23472
e300ec2d
JJ
234732013-01-18 Jakub Jelinek <jakub@redhat.com>
23474
23475 PR tree-optimization/56029
23476 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
23477 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
23478
a3d7af04
SS
234792013-01-18 Sharad Singhai <singhai@google.com>
23480
23481 PR tree-optimization/55995
23482 * dumpfile.c (dump_loc): Print location only if available.
23483 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
23484
66aa7879
VM
234852013-01-18 Vladimir Makarov <vmakarov@redhat.com>
23486
23487 PR target/55433
23488 * lra-constraints.c (curr_insn_transform): Reuse original insn for
23489 secondary memory move.
23490 (inherit_reload_reg): Use rclass instead of cl for
23491 check_secondary_memory_needed_p.
23492
3f0fee7b
JJ
234932013-01-18 Jakub Jelinek <jakub@redhat.com>
23494
23495 PR middle-end/56015
23496 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 23497 the case where writing real complex part of target modifies op1.
3f0fee7b 23498
70c67693
JG
234992013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
23500
23501 * config/aarch64/aarch64-simd.md
23502 (aarch64_vcond_internal<mode>): Handle unordered cases.
23503 * config/aarch64/iterators.md (v_cmp_result): New.
23504
df8de9b3
YHH
235052013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
23506 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23507
23508 * config/arm/marvell-pj4.md: New file.
23509 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
23510 * config/arm/arm.md (generic_sched): Add marvell_pj4.
23511 (generic_vfp): Likewise.
23512 * config/arm/arm-cores.def: Add marvell-pj4.
23513 * config/arm/arm-tune.md: Regenerate.
23514 * config/arm/arm-tables.opt: Regenerate.
23515 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
23516 * doc/invoke.texi: Document marvell-pj4.
23517
be30c356
TB
235182013-01-18 Tejas Belagod <tejas.belagod@arm.com>
23519
23520 * config/aarch64/arm_neon.h: Map scalar types to standard types.
23521
0bfbca58 235222013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
23523
23524 PR debug/54114
23525 PR debug/54402
23526 PR debug/49888
23527 * var-tracking.c (negative_power_of_two_p): New.
23528 (global_get_addr_cache, local_get_addr_cache): New.
23529 (get_addr_from_global_cache, get_addr_from_local_cache): New.
23530 (vt_canonicalize_addr): Rewrite using the above. Adjust the
23531 heading comment.
23532 (vt_stack_offset_p): Remove.
23533 (vt_canon_true_dep): Always canonicalize loc's address.
23534 (clobber_overlapping_mems): Make sure we have a MEM.
23535 (local_get_addr_clear_given_value): New.
23536 (val_reset): Clear local cached entries.
23537 (compute_bb_dataflow): Create and release the local cache.
23538 Disable duplicate MEMs clobbering.
23539 (emit_notes_in_bb): Clobber MEMs likewise.
23540 (vt_emit_notes): Create and release the local cache.
23541 (vt_initialize, vt_finalize): Create and release the global
23542 cache, respectively.
1f6bc337 23543 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 23544
0bfbca58 235452013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
23546
23547 PR libmudflap/53359
23548 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
23549 not found in the symtab.
23550
0bfbca58 235512013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 23552
c350ba53 23553 PR debug/56006
3aa03517
AO
23554 PR rtl-optimization/55547
23555 PR rtl-optimization/53827
23556 PR debug/53671
23557 PR debug/49888
23558 * alias.c (offset_overlap_p): New, factored out of...
23559 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
23560 the conservative special case for symbolic constants. Don't
23561 adjust zero sizes on alignment.
23562
c664546f
JL
235632013-01-18 Bernd Schmidt <bernds@codesourcery.com>
23564
23565 PR rtl-optimization/52573
23566 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
23567 REG_UNUSED for the same register.
23568
1bd3f750
MP
235692013-01-17 Richard Biener <rguenther@suse.de>
23570 Marek Polacek <polacek@redhat.com>
23571
23572 PR rtl-optimization/55833
23573 * loop-unswitch.c (unswitch_loops): Move loop verification...
23574 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
23575 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
23576 Set it to true when we're removing a loop from hierarchy tree in
23577 an irreducible region.
23578 (fix_bb_placements): Adjust caller.
23579 (fix_loop_placements): Likewise.
23580
e52a8b71
GJL
235812013-01-17 Georg-Johann Lay <avr@gjlay.de>
23582
23583 * config/avr/builtins.def (DEF_BUILTIN): Factor out
23584 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
23585 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
23586 Remove ID. Adjust comments.
23587 * config/avr/avr-c.c (avr_builtin_name): Remove.
23588 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
23589 * config/avr/avr.c (avr_tolower): New static function.
23590 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
23591 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
23592 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
23593 default expansion.
23594
8386a7ea
JH
235952013-01-17 Jan Hubicka <jh@suse.cz>
23596
610fb637 23597 PR tree-optimization/55273
8386a7ea
JH
23598 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
23599
47876a2a 236002013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
23601
23602 PR target/55981
23603 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
23604 store through atomic_store<mode>_1.
23605 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
23606
8222c37e
MJ
236072013-01-17 Martin Jambor <mjambor@suse.cz>
23608
23609 PR tree-optimizations/55264
23610 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
23611 for virtual methods.
23612 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
23613 virtual methods before inlining is over.
23614 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
23615 virtual functions.
23616 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
23617 non-virtual.
23618
79f01c76
VM
236192013-01-16 Vladimir Makarov <vmakarov@redhat.com>
23620
23621 PR rtl-optimization/56005
23622 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
23623 pending reads for prefetch.
23624
d0b6bb1b
IB
236252013-01-16 Ian Bolton <ian.bolton@arm.com>
23626
aaf1e810 23627 * config/aarch64/aarch64.md
d0b6bb1b
IB
23628 (*cstoresi_neg_uxtw): New pattern.
23629 (*cmovsi_insn_uxtw): New pattern.
23630 (*<optab>si3_uxtw): New pattern.
23631 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
23632 (*<optab>si3_insn_uxtw): New pattern.
23633 (*bswapsi2_uxtw): New pattern.
23634
cb9cf03b
RB
236352013-01-16 Richard Biener <rguenther@suse.de>
23636
23637 * tree-inline.c (tree_function_versioning): Remove set but
23638 never used variable.
23639
2cfc56b9
RB
236402013-01-16 Richard Biener <rguenther@suse.de>
23641
23642 PR tree-optimization/55964
23643 * tree-flow.h (rename_variables_in_loop): Remove.
23644 (rename_variables_in_bb): Likewise.
23645 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
23646 (copy_loop_before): Adjust and delete update-ssa status.
23647 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 23648 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
23649 (rename_variables_in_loop): Remove.
23650 (slpeel_update_phis_for_duplicate_loop): Likewise.
23651 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
23652 use available cfg machinery instead of duplicating it.
23653 Update PHI nodes and perform poor-mans SSA update here.
23654 (slpeel_tree_peel_loop_to_edge): Adjust.
23655
c25a0c60
RB
236562013-01-16 Richard Biener <rguenther@suse.de>
23657
23658 PR tree-optimization/54767
23659 PR tree-optimization/53465
23660 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
23661 (vrp_visit_phi_node): For PHI arguments coming via backedges
23662 drop all symbolical range information.
23663 (execute_vrp): Compute backedges.
23664
04b535af
RB
236652013-01-16 Richard Biener <rguenther@suse.de>
23666
23667 * doc/install.texi: Update CLooG and ISL requirements to
23668 0.18.0 and 0.11.1.
23669
8b0a1e0b
CB
236702013-01-16 Christian Bruel <christian.bruel@st.com>
23671
23672 PR target/55301
23673 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
23674 (broken_move): Handle UNSPECV_SP_SWITCH_B.
23675 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
23676
236772013-01-16 DJ Delorie <dj@redhat.com>
23678
23679 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
23680 (UNSPECV_SP_SWITCH_E): New.
23681 (sp_switch_1): Change to an unspec.
23682 (sp_switch_2): Change to an unspec. Don't use post-inc when we
23683 replace $r15.
23684
236852013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
23686
23687 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
23688 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
23689 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
23690 (expand_mem_thread_fence): Ditto.
23691 (expand_mem_signal_fence): Ditto.
23692 (expand_atomic_load): Ditto.
23693 (expand_atomic_store): Ditto.
23694
0bfbca58 236952013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
23696
23697 PR rtl-optimization/55547
23698 PR rtl-optimization/53827
23699 PR debug/53671
23700 PR debug/49888
23701 * alias.c (memrefs_conflict_p): Set sizes to negative after
23702 AND adjustments.
23703
305e3ac1
JJ
237042013-01-15 Jakub Jelinek <jakub@redhat.com>
23705
23706 PR target/55940
23707 * function.c (thread_prologue_and_epilogue_insns): Always
23708 add crtl->drap_reg to set_up_by_prologue.set, even if
23709 stack_realign_drap is false.
23710
f78ac4f2
JBG
237112013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23712
23713 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
23714 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
23715 *call): Fix indention.
23716
a78a8cc4
TV
237172013-01-15 Tom de Vries <tom@codesourcery.com>
23718
23719 PR target/55876
23720 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
23721 Update comment.
23722
0e80383f
VM
237232013-01-15 Vladimir Makarov <vmakarov@redhat.com>
23724
305e3ac1 23725 PR rtl-optimization/55153
0e80383f
VM
23726 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
23727
207b5956
MJ
237282013-01-15 Martin Jambor <mjambor@suse.cz>
23729
23730 PR tree-optimization/55920
23731 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
23732 accesses as grp_to_be_debug_replaced.
23733
a7818b54
JJ
237342013-01-15 Jakub Jelinek <jakub@redhat.com>
23735
23736 PR tree-optimization/55920
23737 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
23738 there is non-useless type conversion needed from debug rhs to lhs,
23739 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
23740
b0fe107e
JM
237412013-01-15 Joseph Myers <joseph@codesourcery.com>
23742 Mikael Pettersson <mikpe@it.uu.se>
23743
23744 PR target/43961
23745 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
23746 Thumb.
23747 (ASM_OUTPUT_CASE_LABEL): Remove.
23748 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
23749 * final.c (shorten_branches): Update alignment of labels before
23750 jump tables if CASE_VECTOR_SHORTEN_MODE.
23751
34ab62ee
RB
237522013-01-15 Richard Biener <rguenther@suse.de>
23753
23754 PR bootstrap/55961
23755 * system.h: Do not include gmp.h for building host tools.
23756
783a3a05
RB
237572013-01-15 Richard Biener <rguenther@suse.de>
23758
23759 PR middle-end/55882
23760 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
23761 account for bitpos when computing alignment.
23762
3a579e09
VY
237632013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
23764
23765 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
23766 (ix86_target_macros_internal): Likewise.
23767
23768 * config/i386/i386.c (m_CORE2I7): Removed.
23769 (m_CORE_HASWELL): New macro.
23770 (m_CORE_ALL): Likewise.
23771 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
23772 (initial_ix86_arch_features): Likewise.
23773 (processor_target_table): Initializations for Core avx2.
23774 (cpu_names): New names "core-avx2".
23775 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
23776 PROCESSOR_CORE_HASWELL.
23777 (ix86_issue_rate): New case.
23778 (ia32_multipass_dfa_lookahead): Likewise.
23779 (ix86_sched_init_global): Likewise.
23780
23781 * config/i386/i386.h (TARGET_HASWELL): New macro.
23782 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
23783 (processor_type): New PROCESSOR_HASWELL.
23784
955f5a07
JJ
237852013-01-15 Jakub Jelinek <jakub@redhat.com>
23786
ff784829
JJ
23787 PR tree-optimization/55955
23788 * tree-vect-loop.c (vectorizable_reduction): Give up early on
23789 *SHIFT_EXPR and *ROTATE_EXPR codes.
23790
955f5a07
JJ
23791 PR tree-optimization/48766
23792 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
23793 -ftrapv disable -fwrapv.
23794
aeb8b4e9
GJL
237952013-01-14 Georg-Johann Lay <avr@gjlay.de>
23796
23797 PR target/55974
23798 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
23799 etc. to 1 and not to __flash.
23800 Use LL suffix for __INT24_MAX__ with -mint8.
23801 Use ULL suffix for __UINT24_MAX__ with -mint8.
23802
1c494c6a
GJL
238032013-01-14 Georg-Johann Lay <avr@gjlay.de>
23804
23805 * config/avr/avr-arch.h
23806 (struct base_arch_s): Use typedef avr_arch_t instead.
23807 (struct arch_info_s): Use typedef avr_arch_info_t instead.
23808 (struct mcu_type_s): Use typedef avr_mcu_t instead.
23809 * config/avr/avr.c: Same.
23810 * config/avr/avr-devices.c: Same.
23811 * config/avr/driver-avr.c: Same.
23812 * config/avr/gen-avr-mmcu-texi.c: Same.
23813 * config/avr/avr-mcus.def: Adjust comment.
23814
a50344cb
TB
238152013-01-14 Tejas Belagod <tejas.belagod@arm.com>
23816
88e784e6
UB
23817 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
23818 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 23819
47876a2a 238202013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
23821 Andi Kleen <ak@linux.intel.com>
23822
23823 PR target/55948
23824 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
23825 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
23826 memmodel flag.
23827
00892272
GJL
238282013-01-14 Georg-Johann Lay <avr@gjlay.de>
23829
23830 * config/avr/avr-stdint.h: Remove trailing blanks.
23831 * config/avr/avr-log.h: Same.
23832 * config/avr/avr-arch.h: Same.
23833 * config/avr/avr-devices.c: Same.
23834 * config/avr/avr-dimode.md: Same.
23835 * config/avr/predicates.md: Same.
23836 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 23837
00892272
GJL
23838 * config/avr/avr-protos.h: Same. And:
23839 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
23840 (init_cumulative_args): Rename to avr_init_cumulative_args.
23841 (expand_prologue): Rename to avr_expand_prologue.
23842 (expand_epilogue): Rename to avr_expand_epilogue.
23843 (adjust_insn_length): Rename to avr_adjust_insn_length.
23844 (notice_update_cc): Rename to avr_notice_update_cc.
23845 (final_prescan_insn): Rename to avr_final_prescan_insn.
23846 * config/avr/avr.c: Same.
23847 * config/avr/avr.h: Same.
23848 * config/avr/avr.md: Remove trailing blanks.
23849 (prologue): Use avr_expand_prologue.
23850 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
23851
7bb01996
RB
238522013-01-14 Richard Biener <rguenther@suse.de>
23853
23854 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
23855 verify_location, collect_subblocks): New functions.
23856 (verify_gimple_in_cfg): Verify that locations only reference
23857 BLOCKs in the functions BLOCK tree.
23858
2724573f
RB
238592013-01-14 Richard Biener <rguenther@suse.de>
23860
23861 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
23862 PHI argument.
23863 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
23864 unshare reference.
23865 (insert_out_of_ssa_copy_on_edge): Likewise.
23866 (rewrite_close_phi_out_of_ssa): Likewise.
23867 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
23868 debug expressions.
23869 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
23870 propagated constants.
23871 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
23872 can not be shared.
23873
9a0bbab6
GJL
238742013-01-14 Georg-Johann Lay <avr@gjlay.de>
23875
23876 * config/avr/avr-modes.def: Add GPL copyright notice.
23877
45805f17
UB
238782013-01-13 Uros Bizjak <ubizjak@gmail.com>
23879
23880 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
23881 MEMMODEL_MASK to determine memory model.
23882 (atomic_store<mode>): Ditto from operands[2].
23883 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
23884
9d60be38
JJ
238852013-01-13 Jakub Jelinek <jakub@redhat.com>
23886
23887 PR fortran/55935
45805f17 23888 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
23889 (fold_gimple_assign): Don't call unshare_expr here.
23890 (fold_ctor_reference): Call unshare_expr.
23891
e7f49d92
TG
238922013-01-13 Terry Guo <terry.guo@arm.com>
23893
aaf1e810
EB
23894 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
23895 * doc/fragments.texi: Document MULTILIB_REUSE.
23896 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 23897 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 23898 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
23899 (tmpmultilib4): Ditto.
23900 (multilib_reuse): New multilib argument.
23901
fbd03a27
RS
239022013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
23903
23904 * Makefile.in: Update copyright.
23905
b3681f13
TV
239062013-01-12 Tom de Vries <tom@codesourcery.com>
23907
23908 PR middle-end/55890
23909 * calls.c (expand_call): Check if arg_nr is valid.
23910
3f287e4b
MM
239112013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23912
23913 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
23914 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
23915 documentation. Add missing '__' in front of
23916 __builtin_ia32_packssdw256.
3f287e4b 23917
1abcd5eb
AK
239182013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23919
23920 PR target/55719
23921 * config/s390/s390.c (s390_preferred_reload_class): Do not return
23922 NO_REGS for larl operands.
23923 (s390_reload_larl_operand): Use s390_load_address instead of
23924 emit_move_insn.
23925
980d0812
RB
239262013-01-11 Richard Biener <rguenther@suse.de>
23927
23928 * tree-cfg.c (verify_node_sharing_1): Split out from ...
23929 (verify_node_sharing): ... here.
23930 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
23931
7cb9fd07
EB
239322013-01-11 Eric Botcazou <ebotcazou@adacore.com>
23933
23934 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
23935 Substitute TREECHECKING.
23936 * configure: Regenerate.
23937 * Makefile.in (TREECHECKING): New.
23938
47876a2a 239392013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
23940
23941 PR tree-optimization/44061
23942 * tree-vrp.c (extract_range_basic): Compute zero as
23943 value-range for __builtin_constant_p of function parameters.
23944
d1e082c2
RS
239452013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
23946
45805f17 23947 Update copyright years.
d1e082c2 23948
f85021b0
VM
239492013-01-10 Vladimir Makarov <vmakarov@redhat.com>
23950
9d60be38 23951 PR rtl-optimization/55672
0160442c
VM
23952 * lra-eliminations.c (mark_not_eliminable): Permit addition with
23953 const to be eliminable.
f85021b0 23954
7a8b1ec4
DE
239552013-01-10 David Edelsohn <dje.gcc@gmail.com>
23956
23957 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
23958 * configure: Regenerate.
23959
ad2e5b71
RB
239602013-01-10 Richard Biener <rguenther@suse.de>
23961
ddf9322d 23962 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 23963
ffc5b2bb
RB
239642013-01-10 Richard Biener <rguenther@suse.de>
23965
23966 PR bootstrap/55792
23967 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
23968 locations for virtual PHI arguments.
23969 (rewrite_update_phi_arguments): Likewise.
23970
e1f674e4
JS
239712013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
23972
23973 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
23974 on to assembler.
23975
a57fc743
JJ
239762013-01-10 Jakub Jelinek <jakub@redhat.com>
23977
23978 PR tree-optimization/55921
23979 * tree-complex.c (expand_complex_asm): New function.
23980 (expand_complex_operations_1): Call it for GIMPLE_ASM.
23981
0ff4390d
AK
239822013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23983
23984 PR target/55718
23985 * config/s390/s390.c (s390_symref_operand_p)
23986 (s390_loadrelative_operand_p): Merge the two functions.
23987 (s390_check_qrst_address, print_operand_address): Add parameters
23988 to s390_loadrelative_operand_p invokation.
23989 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
23990 (s390_reload_larl_operand, s390_secondary_reload): Use
23991 s390_loadrelative_operand_p instead of s390_symref_operand_p.
23992 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
23993
6f557e0e
MS
239942013-01-09 Mike Stump <mikestump@comcast.net>
23995
23996 * dse.c (record_store): Remove unnecessary assert.
23997
7770c9e9
JH
239982013-01-09 Jan Hubicka <jh@suse.cz>
23999
24000 PR tree-optimization/55569
24001 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
24002 * cfgloop.h (scale_loop_profile): Likewise.
24003
a19b1432
JH
240042013-01-09 Jan Hubicka <jh@suse.cz>
24005
24006 PR lto/45375
ddf9322d
UB
24007 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
24008 functions.
a19b1432
JH
24009 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
24010
9a002da8
RS
240112013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
24012
24013 PR middle-end/55114
24014 * expr.h (maybe_emit_group_store): Declare.
24015 * expr.c (maybe_emit_group_store): New function.
24016 * builtins.c (expand_builtin_int_roundingfn): Call it.
24017 (expand_builtin_int_roundingfn_2): Likewise.
24018
511dcace
VM
240192013-01-09 Vladimir Makarov <vmakarov@redhat.com>
24020
e1f2b729 24021 PR rtl-optimization/55829
511dcace
VM
24022 * lra-constraints.c (match_reload): Add code for absent output.
24023 (curr_insn_transform): Add code for reloads of matched inputs
24024 without output.
24025
7b0fe4f4
UB
240262013-01-09 Uros Bizjak <ubizjak@gmail.com>
24027
24028 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
24029 attribute of movddup insn to DF.
24030 (*vec_interleave_lowv2df): Ditto.
24031 (vec_dupv2df): Ditto.
24032
870ca331
JH
240332013-01-09 Jan Hubicka <jh@suse.cz>
24034
24035 PR tree-optimiation/55875
24036 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
24037 EVERY_ITERATION parameter.
7b0fe4f4 24038 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
24039 (idx_infer_loop_bounds): Similarly here.
24040 (n_of_executions_at_most): Simplify
24041 to only test for cases where statement is dominated by the
7b0fe4f4 24042 particular bound; handle correctly the "postdominance" test.
870ca331
JH
24043 (scev_probably_wraps_p): Use max loop iterations info
24044 as a global bound first.
24045
6f575fe4 240462013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
24047 Nick Clifton <nickc@redhat.com>
24048
24049 * config/v850/v850.md (cbranchsf4): New pattern.
24050 (cstoresf4): New pattern.
24051 (cbranchdf4): New pattern.
24052 (cstoredf4): New pattern.
24053 (movsicc): Disallow floating point comparisons.
24054 (cmpsf_le_insn): Fix order of operators.
24055 (cmpsf_lt_insn): Likewise.
24056 (cmpsf_eq_insn): Likewise.
24057 (cmpdf_le_insn): Likewise.
24058 (cmpdf_lt_insn): Likewise.
24059 (cmpdf_eq_insn): Likewise.
24060 (cmpsf_ge_insn): Use LE comparison.
24061 (cmpdf_ge_insn): Likewise.
24062 (cmpsf_gt_insn): Use LT comparison.
24063 (cmpdf_gt_insn): Likewise.
24064 (cmpsf_ne_insn): Delete pattern.
24065 (cmpdf_ne_insn): Delete pattern.
24066 * config/v850/v850.c (v850_gen_float_compare): Use
24067 gen_cmpdf_eq_insn for NE comparison.
24068 (v850_float_z_comparison_operator)
24069 (v850_float_nz_comparison_operator): Move from here ...
24070 * config/v850/predicates.md: ... to here. Move GT and GE
24071 comparisons into v850_float_z_comparison_operator.
24072 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
24073 Delete prototype.
24074 (v850_float_nz_comparison_operator): Likewise.
24075
f0d54148
JDA
240762013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24077
24078 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
24079 with calls to gen_insvsi/gen_insvdi.
24080
8f01beca
VK
240812013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
24082
24083 * config/i386/i386.c (initial_ix86_tune_features): Set up
24084 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
24085
2aa579ad
JJ
240862013-01-09 Steven Bosscher <steven@gcc.gnu.org>
24087 Jakub Jelinek <jakub@redhat.com>
24088
24089 PR tree-optimization/48189
24090 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
24091 If nitercst is 0, don't predict the exit edge.
24092
6edc3e32 240932013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
24094
24095 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
24096 in asm_fprintf with reg_names.
24097 (aarch64_print_operand_address): Likewise.
24098 (aarch64_return_addr): Likewise.
24099 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
24100
f6f94d94
JDA
241012013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24102
24103 * config/pa/pa.h (VAL_U6_BITS_P): Define.
24104 (INT_U6_BITS): Likewise.
24105 * config/pa/predicates.md (uint6_operand): New predicate.
24106 (shift5_operand, shift6_operand): Likewise.
24107 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
24108 arith32_operand.
24109 (lshrdi3): Use shift6_operand.
24110 (shrpsi4, shrpdi4): New insn patterns.
24111 (extzv): Delete expander.
24112 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
24113 predicates in unamed zero extract patterns. Tighten common constraint.
24114 (extv): Delete expander.
24115 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
24116 predicates in unamed sign extract patterns. Tighten common constraint.
24117 (insv): Delete expander.
24118 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
24119 predicates in unamed insert patterns. Tighten common constraint.
24120 Change uint32_operand predicate to uint6_operand predicate in unamed
24121 DImode pattern to insert constant values of type 1...1xxxx.
24122
36b72910
JH
241232013-01-04 Jan Hubicka <jh@suse.cz>
24124
24125 PR tree-optimization/55823
7b0fe4f4
UB
24126 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
24127 issue.
36b72910 24128
47876a2a 241292013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
24130 Uros Bizjak <ubizjak@gmail.com>
24131
24132 PR rtl-optimization/55845
24133 * df-problems.c (can_move_insns_across): Stop scanning at
24134 volatile_insn_p source instruction or give up if
24135 across_from .. across_to range contains any volatile_insn_p
24136 instructions.
24137
4369c11e
TB
241382013-01-08 Tejas Belagod <tejas.belagod@arm.com>
24139
7b0fe4f4
UB
24140 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
24141 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
24142 Declare.
4369c11e 24143 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 24144 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 24145
aeb7e7c1
JJ
241462013-01-08 Jakub Jelinek <jakub@redhat.com>
24147
24148 PR fortran/55341
24149 * asan.c (asan_clear_shadow): New function.
24150 (asan_emit_stack_protection): Use it.
24151
a02ad1aa
TB
241522013-01-08 Tejas Belagod <tejas.belagod@arm.com>
24153
24154 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
24155 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
24156 with tab instead of space.
24157
f90d87f5
NC
241582013-01-08 Nick Clifton <nickc@redhat.com>
24159
24160 * config/rl78/rl78.c (rl78_expand_prologue): Always select
24161 register bank 0 at the start of an interrupt handler.
83ffd964
NC
24162 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
24163 MDBH registers.
f90d87f5 24164
385eb93d
JG
241652013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
24166
24167 * config/aarch64/aarch64-simd.md
24168 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
24169 (aarch64_simd_bsl): Likewise.
24170 (aarch64_vcond_internal<mode>): Likewise.
24171 (vcond<mode><mode>): Likewise.
24172 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
24173 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
24174
4dcd1054
JG
241752013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
24176
24177 * config/aarch64/aarch64-builtins.c
24178 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
24179
4267a4a6
MJ
241802013-01-08 Martin Jambor <mjambor@suse.cz>
24181
24182 PR debug/55579
24183 * tree-sra.c (analyze_access_subtree): Return true also after
24184 potentially creating a debug-only replacement.
24185
5f4e6de3
JJ
241862013-01-08 Jakub Jelinek <jakub@redhat.com>
24187
3138f224
JJ
24188 PR middle-end/55890
24189 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
24190
5f4e6de3
JJ
24191 PR tree-optimization/54120
24192 * tree-vrp.c (range_fits_type_p): Don't allow
24193 src_precision < precision from signed vr to unsigned_p
24194 if vr->min or vr->max is negative.
24195 (simplify_float_conversion_using_ranges): Test can_float_p
24196 against CODE_FOR_nothing.
24197
f3ef18ff
JJ
241982013-01-08 Jakub Jelinek <jakub@redhat.com>
24199 Richard Biener <rguenther@suse.de>
24200
24201 PR middle-end/55851
24202 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
24203 types instead of just INTEGER_TYPE types.
24204
25c210f9
MK
242052013-01-07 Mark Kettenis <kettenis@openbsd.org>
24206
24207 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
24208 TF_SIZE): Define.
f90d87f5 24209
81826a7b
SE
242102013-01-07 Steve Ellcey <sellcey@mips.com>
24211
24212 PR target/42661
24213 * config/mips/mips.opt: Change mad to mmad to match documentation.
24214
35678514
GJL
242152013-01-07 Georg-Johann Lay <avr@gjlay.de>
24216
24217 PR target/55897
24218 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
24219 .progmemx.data now.
24220
e5669488
GJL
242212013-01-07 Georg-Johann Lay <avr@gjlay.de>
24222
24223 PR target/55897
24224 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
24225 (avr_addrspace_t): Add .section_name field.
24226 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
24227 array size.
24228 (avr_addrspace): Same. Initialize .section_name. Remove last
24229 NULL entry. Put __memx into .progmemx.data.
24230 (progmem_section_prefix): Remove.
24231 (avr_asm_init_sections): No need to initialize progmem_section.
24232 (avr_asm_named_section): Use avr_addrspace[].section_name to get
24233 section name prefix.
24234 (avr_asm_select_section): Ditto. And use get_unnamed_section to
24235 retrieve the progmem section.
24236 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
24237 boundary to run over avr_addrspace[].
24238 (avr_register_target_pragmas): Ditto.
24239
656e6f37
JJ
242402013-01-06 Jakub Jelinek <jakub@redhat.com>
24241
24242 * varasm.c (output_constant_def_contents): For asan_protect_global
24243 protected strings, adjust DECL_ALIGN if needed, before testing for
24244 anchored symbols.
24245 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
24246 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
24247 normal decls.
24248 (output_object_block): For asan protected decls, emit asan padding
24249 after their contents.
24250 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
24251 (asan_finish_file): Test it here instead.
24252
6edc3e32
UB
242532013-01-07 Nick Clifton <nickc@redhat.com>
24254 Matthias Klose <doko@debian.org>
24255 Doug Kwan <dougkwan@google.com>
24256 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
24257
24258 PR driver/55470
24259 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
24260
24261 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
24262
24263 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
24264
7b0fe4f4 24265 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
24266
24267 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
24268
2a095093
GJL
242692013-01-07 Georg-Johann Lay <avr@gjlay.de>
24270
f3b503f4 24271 PR target/54461
2a095093
GJL
24272 * doc/install.texi (Cross-Compiler-Specific Options): Document
24273 --with-avrlibc.
24274
383f9b34
TB
242752013-01-07 Tejas Belagod <tejas.belagod@arm.com>
24276
24277 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
24278 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
24279 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
24280 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
24281 vqmovun_high_s64): Fix source operand number and update copyright.
24282
3626621a
RB
242832013-01-07 Richard Biener <rguenther@suse.de>
24284
24285 PR middle-end/55890
24286 * gimple.h (gimple_call_builtin_p): New overload.
24287 * gimple.c (validate_call): New function.
24288 (gimple_call_builtin_p): Likewise.
24289 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24290 Use gimple_call_builtin_p.
24291 (find_func_clobbers): Likewise.
24292 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
24293 (strlen_optimize_stmt): Likewise.
24294
8b2ea410
JG
242952013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
24296
24297 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
24298 (vld1q_dup_*): Likewise.
24299 (vld1_*): Likewise.
24300 (vld1q_*): Likewise.
24301 (vld1_lane_*): Likewise.
24302 (vld1q_lane_*): Likewise.
24303
9713d329
RB
243042013-01-07 Richard Biener <rguenther@suse.de>
24305
24306 * lto-streamer.h (LTO_minor_version): Bump to 2.
24307
3520f7cc
JG
243082013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
24309
24310 * config/aarch64/aarch64-protos.h
24311 (aarch64_const_double_zero_rtx_p): Rename to...
24312 (aarch64_float_const_zero_rtx_p): ...this.
24313 (aarch64_float_const_representable_p): New.
24314 (aarch64_output_simd_mov_immediate): Likewise.
24315 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
24316 move immediate case.
24317 * config/aarch64/aarch64.c
24318 (aarch64_const_double_zero_rtx_p): Rename to...
24319 (aarch64_float_const_zero_rtx_p): ...this.
24320 (aarch64_print_operand): Allow printing of new constants.
24321 (aarch64_valid_floating_const): New.
24322 (aarch64_legitimate_constant_p): Check for valid floating-point
24323 constants.
24324 (aarch64_simd_valid_immediate): Likewise.
24325 (aarch64_vect_float_const_representable_p): New.
24326 (aarch64_float_const_representable_p): Likewise.
24327 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
24328 (aarch64_output_simd_mov_immediate): New.
24329 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
24330 (*movdf_aarch64): Likewise.
24331 * config/aarch64/constraints.md (Ufc): New.
24332 (Y): call aarch64_float_const_zero_rtx.
24333 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
24334
e167c04d
RB
243352013-01-07 Richard Biener <rguenther@suse.de>
24336
24337 PR tree-optimization/55888
24338 PR tree-optimization/55862
24339 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
24340 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
24341 not if it is contained therein.
24342
0139aaab
GJL
243432013-01-07 Georg-Johann Lay <avr@gjlay.de>
24344
24345 * config/avr/t-avr: Typo.
24346
4a176b23
GJL
243472013-01-07 Georg-Johann Lay <avr@gjlay.de>
24348
24349 PR55243
24350 * config/avr/t-avr: Don't automatically rebuild
24351 $(srcdir)/config/avr/t-multilib
24352 $(srcdir)/config/avr/avr-tables.opt
24353 $(srcdir)/doc/avr-mmcu.texi
24354 (avr-mcus): New phony target to build them on request.
24355 (s-avr-mlib, s-avr-mmcu-texi): Remove.
24356 * avr/avr-mcus.def: Adjust comments.
24357
c7afdc98
UB
243582013-01-07 Uros Bizjak <ubizjak@gmail.com>
24359
24360 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
24361
1ab05c31
RS
243622013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
24363
24364 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
24365
488e3acc
RS
243662013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
24367
24368 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
24369
a89599d2
DE
243702013-01-05 David Edelsohn <dje.gcc@gmail.com>
24371
24372 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
24373 to generate profiling.
24374 * config/rs6000/aix64.h (LIB_SPEC): Same.
24375
70f09188
AP
243762013-01-04 Andrew Pinski <apinski@cavium.com>
24377
24378 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
24379 New function.
24380 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
24381
918d445f
UB
243822013-01-04 Uros Bizjak <ubizjak@gmail.com>
24383
24384 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
24385 unconditionally.
24386 (ix86_expand_move): Ditto.
24387 (ix86_zero_extend_to_Pmode): Ditto.
24388 (ix86_expand_call): Ditto.
24389 (ix86_expand_special_args_builtin): Ditto.
24390 (ix86_expand_builtin): Ditto.
24391
361618ec
RB
243922013-01-04 Richard Biener <rguenther@suse.de>
24393
24394 PR tree-optimization/55862
24395 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
24396 translating them through PHI nodes.
24397
87eab554
MJ
243982013-01-04 Martin Jambor <mjambor@suse.cz>
24399
24400 PR tree-optimization/55755
24401 * tree-sra.c (sra_modify_assign): Do not check that an access has no
24402 children when trying to avoid producing a VIEW_CONVERT_EXPR.
24403
33879b9f
MP
244042013-01-04 Marek Polacek <polacek@redhat.com>
24405
24406 PR middle-end/55859
24407 * opts.c (default_options_optimization): Clarify error message.
24408
3068819a
RB
244092013-01-04 Richard Biener <rguenther@suse.de>
24410
24411 PR middle-end/55863
24412 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
24413 reassociation.
24414
0e4ae794
JDA
244152013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24416
24417 PR target/53789
24418 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
24419 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
24420 references.
0e4ae794 24421
65c88cef
RH
244222013-01-03 Richard Henderson <rth@redhat.com>
24423
24424 * config/i386/i386.c (ix86_expand_move): Always assign to op1
24425 after eliminating TLS symbols.
24426
8ac16127
MG
244272013-01-03 Marc Glisse <marc.glisse@inria.fr>
24428
24429 PR bootstrap/50167
24430 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
24431 * graphite-poly.c (debug_gmp_value): Likewise.
24432
bb664f09
UB
244332013-01-03 Uros Bizjak <ubizjak@gmail.com>
24434
24435 PR target/55712
24436 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
24437 selected code model, define __code_mode_small__, __code_model_medium__,
24438 __code_model_large__, __code_model_32__ or __code_model_kernel__.
24439 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
24440 xchg temporary register with %k. Declare temporary register as
24441 early clobbered.
24442 [__x86_64__]: For medium and large code models, preserve %rbx register.
24443
bcf1ef00
RB
244442013-01-03 Richard Biener <rguenther@suse.de>
24445
0506634a 24446 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
24447 (dump_subscript): Adjust.
24448 (finalize_ddr_dependent): Do not dump redundant info.
24449 (analyze_siv_subscript): Adjust.
24450 (subscript_dependence_tester): Likewise.
24451 (compute_affine_dependence): Likewise.
24452
59fd17e3
RB
244532013-01-03 Richard Biener <rguenther@suse.de>
24454
24455 Revert
24456 2013-01-03 Richard Biener <rguenther@suse.de>
24457
24458 PR tree-optimization/55857
24459 * tree-vect-stmts.c (vectorizable_load): Do not setup
24460 re-alignment for invariant loads.
24461
24462 2013-01-02 Richard Biener <rguenther@suse.de>
24463
24464 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 24465 invariant load do not generate a vector load from the scalar location.
59fd17e3 24466
595c2679
RB
244672013-01-03 Richard Biener <rguenther@suse.de>
24468
24469 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
24470 for not vectorizing.
24471 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
24472 not build INDIRECT_REFs, call get_name once only.
24473 (vect_create_data_ref_ptr): Likewise. Dump base object kind
24474 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
24475
90bb7d7a
RB
244762013-01-03 Richard Biener <rguenther@suse.de>
24477
24478 PR tree-optimization/55857
24479 * tree-vect-stmts.c (vectorizable_load): Do not setup
24480 re-alignment for invariant loads.
24481
f09b77ca
RB
244822013-01-03 Richard Biener <rguenther@suse.de>
24483
24484 PR lto/55848
24485 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
24486 prefer a built-in decl.
24487
3461a16e
JJ
244882013-01-03 Jakub Jelinek <jakub@redhat.com>
24489
df8e2b4f
JJ
24490 * gcc.c (process_command): Update copyright notice dates.
24491 * gcov.c (print_version): Likewise.
24492 * gcov-dump.c (print_version): Likewise.
24493
3461a16e
JJ
24494 PR rtl-optimization/55838
24495 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
24496 iv0.step, iv1.step and step.
24497
8b5546d6
JJ
244982013-01-03 Jakub Jelinek <jakub@redhat.com>
24499 Marc Glisse <marc.glisse@inria.fr>
24500
24501 PR tree-optimization/55832
24502 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
24503 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
24504 integer_{one,zero}_node.
24505
8ab1d2e9
JJ
245062013-01-03 Jakub Jelinek <jakub@redhat.com>
24507
24508 PR debug/54402
24509 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
24510 * var-tracking.c (reverse_op): Don't add reverse ops to
24511 VALUEs that have already
0506634a 24512 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 24513
5b9ad1d4
GP
245142013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
24515
24516 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
24517
e25a6711
TJ
245182013-01-02 Teresa Johnson <tejohnson@google.com>
24519
24520 * dumpfile.c (dump_loc): Print filename with location.
24521 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
24522 new location_t parameter to emit complete unroll message with
24523 new dump framework.
24524 (canonicalize_loop_induction_variables): Compute loops location
24525 and pass to try_unroll_loop_completely.
24526 * loop-unroll.c (report_unroll_peel): New function.
24527 (peel_loops_completely): Use new dump format with location
24528 for main dumpfile message, and invoke report_unroll_peel on success.
24529 (decide_unrolling_and_peeling): Ditto.
24530 (decide_peel_once_rolling): Remove old dumpfile message subsumed
24531 by report_unroll_peel.
24532 (decide_peel_completely): Ditto.
24533 (decide_unroll_constant_iterations): Ditto.
24534 (decide_unroll_runtime_iterations): Ditto.
24535 (decide_peel_simple): Ditto.
24536 (decide_unroll_stupid): Ditto.
24537 * cfgloop.c (get_loop_location): New function.
24538 * cfgloop.h (get_loop_location): Declare.
24539
77878621
ST
245402013-01-02 Sriraman Tallam <tmsriram@google.com>
24541
24542 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
24543 NULL.
24544
9e65d03e
JDA
245452013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24546
24547 PR middle-end/55198
24548 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
24549 BLKmode objects when EXPAND_MEMORY is specified.
24550
6a7da30f
ST
245512013-01-02 Sriraman Tallam <tmsriram@google.com>
24552
24553 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
24554 in loop predicate.
24555 (fold_builtin_cpu): Do not share cpu model decls across statements.
24556
e78167f2
JM
245572013-01-02 Jason Merrill <jason@redhat.com>
24558
24559 PR c++/55804
24560 * tree.c (build_array_type_1): Revert earlier change.
24561
8c075fb4
YZ
245622013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
24563
24564 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
24565 "cortex-a57".
24566 * config/aarch64/aarch64-tune.md: Re-generate.
24567
0682ed3e
RB
245682013-01-02 Richard Biener <rguenther@suse.de>
24569
24570 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 24571 invariant load do not generate a vector load from the scalar location.
0682ed3e 24572
b8f6a302
RB
245732013-01-02 Richard Biener <rguenther@suse.de>
24574
24575 PR bootstrap/55784
24576 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
24577 * configure: Regenerate.
24578
04b80dbb
RS
245792013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
24580
24581 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
24582 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
24583 (expand_builtin_int_roundingfn_2): Keep the original target around
24584 for the fallback case.
24585
635b0b0c
RS
245862013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
24587
24588 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
24589 to be clear for sign changes.
24590
42d57399
JH
245912013-01-01 Jan Hubicka <jh@suse.cz>
24592
24593 * ipa-inline-analysis.c: Fix formatting.
24594
5bb6669d
JJ
245952013-01-01 Jakub Jelinek <jakub@redhat.com>
24596
24597 PR tree-optimization/55831
24598 * tree-vect-loop.c (get_initial_def_for_induction): Use
24599 gsi_after_labels instead of gsi_start_bb.
ad41bd84 24600\f
86a2db33 24601Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
24602
24603Copying and distribution of this file, with or without modification,
24604are permitted in any medium without royalty provided the copyright
24605notice and this notice are preserved.
This page took 7.839271 seconds and 5 git commands to generate.