]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
rl78.c (rl78_print_operand_1): Change %c to %C to avoid conflict with the MI use...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
59d96342
DD
12013-10-08 DJ Delorie <dj@redhat.com>
2
3 * config/rl78/rl78.c (rl78_print_operand_1): Change %c to %C to
4 avoid conflict with the MI use of %c.
5 * config/rl78/rl78-real.md: change %c to %C throughout.
6 * config/rl78/rl78-virt.md: Likewise.
7
a81169d8
JH
82013-10-08 Jan Hubicka <jh@suse.cz>
9
10 * config/i386/i386.c (ix86_option_override_internal): Switch
11 to SSE math for -ffast-math when target ISA supports SSE2.
12
481d1b81
AM
132013-10-08 Andrew MacLeod <amacleod@redhat.com>
14
15 * tree-flow.h: Remove some prototypes.
16 * tree.h: Remove some protypes, add a couple.
17 * tree.c (using_eh_for_cleanups_flag, using_eh_for_cleanups,
18 using_eh_for_cleanups_p): Add interface routines for front ends.
19 * tree-eh.h: New file. Add protoptyes.
20 * tree-eh.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Delete.
21 (add_stmt_to_eh_lp_fn): Make static.
22 (lower_try_finally): Use new using_eh_for_cleanups_p.
23 * emit-rtl.c: Include tree-eh.h.
24 * gimple.h: Include tree-eh.h.
25
0e6a0e48
MG
262013-10-08 Marc Glisse <marc.glisse@inria.fr>
27
28 PR tree-optimization/58480
29 * tree-vrp.c (infer_nonnull_range): New function.
30 (infer_value_range): Call infer_nonnull_range.
31
ef6179d1
DC
322013-10-08 Dehao Chen <dehao@google.com>
33
34 PR tree-optimization/58619
35 * tree-inline.c (copy_phis_for_bb): Combine location data
36 only if non-null.
37
07d964d5
ZC
382013-10-08 Zhenqiang Chen <zhenqiang.chen@linaro.org>
39
40 PR target/58423
41 * config/arm/arm.c (arm_emit_ldrd_pop): Attach
42 RTX_FRAME_RELATED_P on INSN.
43
19e9b2a3
BS
442013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
45
46 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const_le): New.
47 (altivec_expand_vec_perm_const): Call it.
48
0cf68694
BS
492013-10-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
50
51 * config/rs6000/vector.md (mov<mode>): Emit permuted move
52 sequences for LE VSX loads and stores at expand time.
53 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_move): New
54 prototype.
55 * config/rs6000/rs6000.c (rs6000_const_vec): New.
56 (rs6000_gen_le_vsx_permute): New.
57 (rs6000_gen_le_vsx_load): New.
58 (rs6000_gen_le_vsx_store): New.
59 (rs6000_gen_le_vsx_move): New.
60 * config/rs6000/vsx.md (*vsx_le_perm_load_v2di): New.
61 (*vsx_le_perm_load_v4si): New.
62 (*vsx_le_perm_load_v8hi): New.
63 (*vsx_le_perm_load_v16qi): New.
64 (*vsx_le_perm_store_v2di): New.
65 (*vsx_le_perm_store_v4si): New.
66 (*vsx_le_perm_store_v8hi): New.
67 (*vsx_le_perm_store_v16qi): New.
68 (*vsx_xxpermdi2_le_<mode>): New.
69 (*vsx_xxpermdi4_le_<mode>): New.
70 (*vsx_xxpermdi8_le_V8HI): New.
71 (*vsx_xxpermdi16_le_V16QI): New.
72 (*vsx_lxvd2x2_le_<mode>): New.
73 (*vsx_lxvd2x4_le_<mode>): New.
74 (*vsx_lxvd2x8_le_V8HI): New.
75 (*vsx_lxvd2x16_le_V16QI): New.
76 (*vsx_stxvd2x2_le_<mode>): New.
77 (*vsx_stxvd2x4_le_<mode>): New.
78 (*vsx_stxvd2x8_le_V8HI): New.
79 (*vsx_stxvd2x16_le_V16QI): New.
80
9520e1eb
RL
812013-10-07 Renlin Li <Renlin.Li@arm.com>
82
83 * config/arm/arm-cores.def (cortex-a53): Use cortex tuning.
84
36c0bd4f
AK
852013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
86
87 * config/s390/s390.c (s390_register_info): Make the call-saved FPR
88 loop to work also for 31bit ABI.
89 Save the stack pointer for frame_size > 0.
90
ee163e72
AK
912013-10-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
92
93 * config/s390/s390.md ("tbegin", "tbegin_nofloat", "tbegin_retry")
94 ("tbegin_retry_nofloat", "tend", "tabort", "tx_assist"): Remove
95 constraint letters from expanders.
96 ("tbegin_retry", "tbegin_retry_nofloat"): Change predicate of the
97 retry count to general_operand.
98 ("tabort"): Give operand 0 a mode.
99 ("tabort_1"): Add mode and constraint letter for operand 0.
100 * doc/extend.texi: Fix protoype of __builtin_non_tx_store.
101
45d99234
JL
1022013-10-04 Jeff Law <law@redhat.com>
103
104 * tree-ssa-threadedge.c: Fix some trailing whitespace problems.
105
106 * tree-ssa-threadedge.c (thread_through_normal_block): Broken out of ...
107 (thread_across_edge): Here. Call it.
108
7c327f7b
CC
1092013-10-04 Cary Coutant <ccoutant@google.com>
110
111 * dwarf2out.c (dw_sra_loc_expr): Release addr_table entries when
112 discarding a location list expression (or a piece of one).
113
6867e128
JH
1142013-10-03 Jan Hubicka <jh@suse.cz>
115
65efa7e7
UB
116 * config/i386/i386.c (ix86_issue_rate): Pentium4, Nocona has issue
117 rate of 2. Core2, Corei7 and Haswell has issue rate of 4.
3700bce3 118 (ix86_adjust_cost): Remove Atom case; fix core2/corei7/Haswell case.
6867e128 119
c7f36d55
JH
1202013-10-03 Jan Hubicka <jh@suse.cz>
121
65efa7e7 122 * config/i386/i386.c (ix86_option_override_internal): Do not enable
c7f36d55
JH
123 accumulate-outgoing-args when producing unwind info.
124
4f0bee4c
WM
1252013-10-03 Wei Mi <wmi@google.com>
126
127 * lra-constraints.c (insert_move_for_subreg): New function
128 extracted from simplify_operand_subreg.
129 (simplify_operand_subreg): Add reload for paradoxical subreg.
130
111c3f39
RX
1312013-10-03 Rong Xu <xur@google.com>
132
65efa7e7
UB
133 * ipa-inline-analysis.c (find_foldable_builtin_expect): Find
134 the candidate of builtin_expect such that we should fix the
135 size/time estimation.
136 (estimate_function_body_sizes): Do the acutally size/time fix-up
137 for builtin_expect.
111c3f39 138
942df739
RX
1392013-10-03 Rong Xu <xur@google.com>
140
65efa7e7
UB
141 * predict.c (tree_predict_by_opcode): Get the probability
142 for builtin_expect from param builtin_expect_probability.
143 * params.def (BUILTIN_EXPECT_PROBABILITY): New parameter.
144 * predict.def (PRED_BUILTIN_EXPECT_RELAXED): Fix comments.
145 * doc/invoke.texi: Add documentation for builtin-expect-probability.
942df739 146
2284b034
MG
1472013-10-03 Marc Glisse <marc.glisse@inria.fr>
148
149 PR c++/19476
150 * common.opt (fcheck-new): Moved from c.opt. Make it 'Common'.
151 * calls.c (alloca_call_p): Use get_callee_fndecl.
152 * fold-const.c (tree_expr_nonzero_warnv_p): Handle operator new.
153 * tree-vrp.c (gimple_stmt_nonzero_warnv_p, stmt_interesting_for_vrp):
154 Likewise.
155 (vrp_visit_stmt): Remove duplicated code.
156
0609bdf2
MM
1572013-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
158
159 * config/rs6000/rs6000-builtin.def (XSRDPIM): Use floatdf2,
160 ceildf2, btruncdf2, instead of vsx_* name.
161
162 * config/rs6000/vsx.md (vsx_add<mode>3): Change arithmetic
163 iterators to only do V2DF and V4SF here. Move the DF code to
164 rs6000.md where it is combined with SF mode. Replace <VSv> with
165 just 'v' since only vector operations are handled with these insns
166 after moving the DF support to rs6000.md.
167 (vsx_sub<mode>3): Likewise.
168 (vsx_mul<mode>3): Likewise.
169 (vsx_div<mode>3): Likewise.
170 (vsx_fre<mode>2): Likewise.
171 (vsx_neg<mode>2): Likewise.
172 (vsx_abs<mode>2): Likewise.
173 (vsx_nabs<mode>2): Likewise.
174 (vsx_smax<mode>3): Likewise.
175 (vsx_smin<mode>3): Likewise.
176 (vsx_sqrt<mode>2): Likewise.
177 (vsx_rsqrte<mode>2): Likewise.
178 (vsx_fms<mode>4): Likewise.
179 (vsx_nfma<mode>4): Likewise.
180 (vsx_copysign<mode>3): Likewise.
181 (vsx_btrunc<mode>2): Likewise.
182 (vsx_floor<mode>2): Likewise.
183 (vsx_ceil<mode>2): Likewise.
184 (vsx_smaxsf3): Delete scalar ops that were moved to rs6000.md.
185 (vsx_sminsf3): Likewise.
186 (vsx_fmadf4): Likewise.
187 (vsx_fmsdf4): Likewise.
188 (vsx_nfmadf4): Likewise.
189 (vsx_nfmsdf4): Likewise.
190 (vsx_cmpdf_internal1): Likewise.
191
192 * config/rs6000/rs6000.h (TARGET_SF_SPE): Define macros to make it
193 simpler to select whether a target has SPE or traditional floating
194 point support in iterators.
195 (TARGET_DF_SPE): Likewise.
196 (TARGET_SF_FPR): Likewise.
197 (TARGET_DF_FPR): Likewise.
198 (TARGET_SF_INSN): Macros to say whether floating point support
199 exists for a given operation for expanders.
200 (TARGET_DF_INSN): Likewise.
201
202 * config/rs6000/rs6000.c (Ftrad): New mode attributes to allow
203 combining of SF/DF mode operations, using both traditional and VSX
204 registers.
205 (Fvsx): Likewise.
206 (Ff): Likewise.
207 (Fv): Likewise.
208 (Fs): Likewise.
209 (Ffre): Likewise.
210 (FFRE): Likewise.
211 (abs<mode>2): Combine SF/DF modes using traditional floating point
212 instructions. Add support for using the upper DF registers with
213 VSX support, and SF registers with power8-vector support. Update
214 expanders for operations supported by both the SPE and traditional
215 floating point units.
216 (abs<mode>2_fpr): Likewise.
217 (nabs<mode>2): Likewise.
218 (nabs<mode>2_fpr): Likewise.
219 (neg<mode>2): Likewise.
220 (neg<mode>2_fpr): Likewise.
221 (add<mode>3): Likewise.
222 (add<mode>3_fpr): Likewise.
223 (sub<mode>3): Likewise.
224 (sub<mode>3_fpr): Likewise.
225 (mul<mode>3): Likewise.
226 (mul<mode>3_fpr): Likewise.
227 (div<mode>3): Likewise.
228 (div<mode>3_fpr): Likewise.
229 (sqrt<mode>3): Likewise.
230 (sqrt<mode>3_fpr): Likewise.
231 (fre<Fs>): Likewise.
232 (rsqrt<mode>2): Likewise.
233 (cmp<mode>_fpr): Likewise.
234 (smax<mode>3): Likewise.
235 (smin<mode>3): Likewise.
236 (smax<mode>3_vsx): Likewise.
237 (smin<mode>3_vsx): Likewise.
238 (negsf2): Delete SF operations that are merged with DF.
239 (abssf2): Likewise.
240 (addsf3): Likewise.
241 (subsf3): Likewise.
242 (mulsf3): Likewise.
243 (divsf3): Likewise.
244 (fres): Likewise.
245 (fmasf4_fpr): Likewise.
246 (fmssf4_fpr): Likewise.
247 (nfmasf4_fpr): Likewise.
248 (nfmssf4_fpr): Likewise.
249 (sqrtsf2): Likewise.
250 (rsqrtsf_internal1): Likewise.
251 (smaxsf3): Likewise.
252 (sminsf3): Likewise.
253 (cmpsf_internal1): Likewise.
254 (copysign<mode>3_fcpsgn): Add VSX/power8-vector support.
255 (negdf2): Delete DF operations that are merged with SF.
256 (absdf2): Likewise.
257 (nabsdf2): Likewise.
258 (adddf3): Likewise.
259 (subdf3): Likewise.
260 (muldf3): Likewise.
261 (divdf3): Likewise.
262 (fred): Likewise.
263 (rsqrtdf_internal1): Likewise.
264 (fmadf4_fpr): Likewise.
265 (fmsdf4_fpr): Likewise.
266 (nfmadf4_fpr): Likewise.
267 (nfmsdf4_fpr): Likewise.
268 (sqrtdf2): Likewise.
269 (smaxdf3): Likewise.
270 (smindf3): Likewise.
271 (cmpdf_internal1): Likewise.
272 (lrint<mode>di2): Use TARGET_<MODE>_FPR macro.
273 (btrunc<mode>2): Delete separate expander, and combine with the
274 insn and add VSX instruction support. Use TARGET_<MODE>_FPR.
275 (btrunc<mode>2_fpr): Likewise.
276 (ceil<mode>2): Likewise.
277 (ceil<mode>2_fpr): Likewise.
278 (floor<mode>2): Likewise.
279 (floor<mode>2_fpr): Likewise.
280 (fma<mode>4_fpr): Combine SF and DF fused multiply/add support.
281 Add support for using the upper registers with VSX and
282 power8-vector. Move insns to be closer to the define_expands. On
283 VSX systems, prefer the traditional form of FMA over the VSX
284 version, since the traditional form allows the target not to
285 overlap with the inputs.
286 (fms<mode>4_fpr): Likewise.
287 (nfma<mode>4_fpr): Likewise.
288 (nfms<mode>4_fpr): Likewise.
289
5bea0c6c 2902013-10-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
65efa7e7 291 Richard Earnshaw <richard.earnshaw@arm.com>
5bea0c6c
KT
292
293 * config/arm/aarch-common-protos.h (struct alu_cost_table): New.
294 (struct mult_cost_table): Likewise.
295 (struct mem_cost_table): Likewise.
296 (struct fp_cost_table): Likewise.
297 (struct vector_cost_table): Likewise.
298 (cpu_cost_table): Likewise.
299 * config/arm/arm.opt (mold-rts-costs): New option.
300 (mnew-generic-costs): Likewise.
301 * config/arm/arm.c (generic_extra_costs): New table.
302 (cortexa15_extra_costs): Likewise.
303 (arm_slowmul_tune): Use NULL as new costs.
304 (arm_fastmul_tune): Likewise.
305 (arm_strongarm_tune): Likewise.
306 (arm_xscale_tune): Likewise.
307 (arm_9e_tune): Likewise.
308 (arm_v6t2_tune): Likewise.
309 (arm_cortex_a5_tune): Likewise.
310 (arm_cortex_a9_tune): Likewise.
311 (arm_v6m_tune): Likewise.
312 (arm_fa726te_tune): Likewise.
313 (arm_cortex_a15_tune): Use cortex15_extra_costs.
314 (arm_cortex_tune): Use generict_extra_costs.
315 (shifter_op_p): New function.
316 (arm_unspec_cost): Likewise.
317 (LIBCALL_COST): Define.
318 (arm_new_rtx_costs): New function.
319 (arm_rtx_costs): Use arm_new_rtx_costs when core-specific
320 table is available. Use old costs otherwise unless mnew-generic-costs
321 is specified.
322 * config/arm/arm-protos.h (tune_params): Add insn_extra_cost field.
323 (cpu_cost_table): Declare.
324
24c56925
MS
3252013-10-03 Marcus Shawcroft <marcus.shawcroft@arm.com>
326
327 PR target/58460
328 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>)
329 (*subs_mul_imm_<mode>)
330 (*add_<shift>_<mode>, *add_<shift>_si_uxtw,*add_mul_imm_<mode>)
331 (*sub_<shift>_<mode>)
332 (*sub_<shift>_si_uxtw,*sub_mul_imm_<mode>, *sub_mul_imm_si_uxtw):
333 Remove k constraint.
334
2ab8f063
IB
3352013-10-03 Ian Bolton <ian.bolton@arm.com>
336
337 * config/aarch64/aarch64.c (aarch64_secondary_reload): Remove legacy
338 code.
339 * config/aarch64/aarch64.md (reload_sp_immediate): Likewise.
340
79221839
TJ
3412013-10-02 Teresa Johnson <tejohnson@google.com>
342
343 * predict.c (probably_never_executed): New function.
344 (probably_never_executed_bb_p): Invoke probably_never_executed.
345 (probably_never_executed_edge_p): Ditto.
346 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
347 Treat profile insanities conservatively.
348
d441afe0
JDA
3492013-10-02 John David Anglin <danglin@gcc.gnu.org>
350
351 * config.gcc (hppa*64*-*-linux*): Don't add pa/t-linux to tmake_file.
352
80f466c4
VM
3532013-10-02 Vladimir Makarov <vmakarov@redhat.com>
354
355 * lra-constraints.c (process_alt_operand): Calculate scratch_p and
356 use it. Use smaller increase for scratch. Don't increase reject
357 for early clobber scratch.
358 * lra-eliminations.c (eliminate_regs_in_insn): Remove all insns
359 setting eliminated regs except setting fp from hfp.
360 (lra_eliminate): Check lra_insn_recog_data on NULL.
361
6e228b4b
MM
3622013-10-02 Michael Meissner <meissner@linux.vnet.ibm.com>
363
364 PR target/58587
365 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Turn off
65efa7e7 366 setting -mvsx-timode by default until the underlying problem is fixed.
6e228b4b
MM
367 (RS6000_CPU, power7 defaults): Likewise.
368
11b54a5a
UB
3692013-10-02 Uros Bizjak <ubizjak@gmail.com>
370
371 * config/x-linux (host-linux.o): Remove header dependencies.
372 Use $(COMPILE) and $(POSTCOMPILE).
373 * config/t-linux-android (linux-android.o): Ditto.
374
bbc02b69
UB
3752013-10-02 Uros Bizjak <ubizjak@gmail.com>
376
377 * Makefile.in (expmed.o-warn): Remove.
378
440917de
AM
3792013-10-02 Andrew MacLeod <amacleod@redhat.com>
380
381 * graphite-scop-detection.c: Include tree-ssa-propagate,h.
382 * graphite-sese-to-poly.c: Include tree-ssa-propagate.h.
383
99206ca9
TJ
3842013-10-02 Teresa Johnson <tejohnson@google.com>
385
386 * dojump.c (do_jump_1): Divide probability between
387 both conditions of a TRUTH_ANDIF_EXPR/TRUTH_ORIF_EXPR.
388
56e82b14
TT
3892013-10-02 Tom Tromey <tromey@redhat.com>
390
391 * Makefile.in (DRIVER_DEFINES): Use $(if), not $(and).
392
3d9c733e
AM
3932013-10-02 Andrew MacLeod <amacleod@redhat.com>
394
395 * tree-flow.h: Remove some prototypes.
396 * tree-ssa-dce.c (mark_virtual_operand_for_renaming,
397 mark_virtual_phi_result_for_renaming): Move to tree-into-ssa.c.
398 * tree-into-ssa.c (mark_virtual_operand_for_renaming,
399 mark_virtual_phi_result_for_renaming): Relocate here.
400 * tree-into-ssa.h: Add prototypes.
bbc02b69 401 * tree-ssa-phiopt.c: (tree_ssa_phiopt_worker) Use
3d9c733e
AM
402 single_pred_before_succ_order.
403 (blocks_in_phiopt_order): Rename and move to cfganal.c.
404 (nonfreeing_call_p) Move to gimple.c.
405 * cfganal.c (single_pred_before_succ_order): Move and renamed from
406 tree-ssa-phiopt.c.
407 * basic-block.h (single_pred_before_succ_order): Add prototype.
408 * gimple.c (nonfreeing_call_p): Relocate here.
409 * gimple.h: Add prototype.
410 * tree-ssa-ifcombine.c: Include tree-ssa-phiopt.h.
411 * tree-ssa-dom.h: New file. Relocate prototypes here.
412 * tree-ssa.h: Include tree-ssa-dom.h.
413
78cedfb1
UB
4142013-10-02 Uros Bizjak <ubizjak@gmail.com>
415
416 * config/i386/x-i386 (driver-i386.o): Remove header dependencies.
417 Use $(COMPILE) and $(POSTCOMPILE).
418
419 * config/alpha/x-alpha (driver-alpha.o): Ditto.
420
744730a4
AM
4212013-10-02 Andrew MacLeod <amacleod@redhat.com>
422
423 * tree-flow.h: Remove some prototypes.
424 * gimple-fold.h: Add prototypes from gimple.h and tree-flow.h.
425 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
426 * tree-ssa-copy.c (may_propagate*, propagate_value, replace_exp,
427 propagate_tree_value*): Move from here to...
428 * tree-ssa-propagate.c (may_propagate*, propagate_value, replace_exp,
429 propagate_tree_value*): Relocate here.
430 * tree-ssa-propagate.h: Relocate prototypes from tree-flow.h.
431 * gimple.h: Include gimple-fold.h, move prototypes into gimple-fold.h.
432 * gimple-fold.c: Remove gimple-fold.h from include list.
433 * tree-vrp.c: Remove gimple-fold.h from include list.
434 * tree-ssa-sccvn.c: Remove gimple-fold.h from include list.
435 * tree-ssa-ccp.c: Remove gimple-fold.h from include list.
436 * tree-scalar-evolution.c: Add tree-ssa-propagate.h to include list.
437 * tree-ssa-pre.c: Add tree-ssa-propagate.h to include list.
438 * sese.c: Add tree-ssa-propagate.h to include list.
439
826a536d
RB
4402013-10-02 Richard Biener <rguenther@suse.de>
441
442 * tree-loop-distribution.c: Include tree-vectorizer.h for
443 find_loop_location.
444 (enum partition_kind): Remove PKIND_REDUCTION.
78cedfb1 445 (struct partition_s): Remove has_writes member, add reduction_p member.
826a536d
RB
446 (partition_alloc): Adjust.
447 (partition_builtin_p): Likewise.
448 (partition_has_writes): Remove.
449 (partition_reduction_p): New function.
450 (partition_merge_into): Likewise.
451 (generate_code_for_partition): Commonize builtin partition
452 handling tail.
453 (rdg_cannot_recompute_vertex_p): Remove.
454 (already_processed_vertex_p): Likewise.
455 (rdg_flag_vertex): Do not set has_writes.
456 (classify_partition): Adjust.
457 (rdg_build_partitions): Do not set has_writes, treat all
458 partitions as useful.
78cedfb1 459 (distribute_loop): Record number of library calls generated. Adjust.
826a536d
RB
460 (tree_loop_distribution): Report number of loops and library
461 calls generated as opt-info.
462
4b403ece
AM
4632013-10-02 Andrew MacLeod <amacleod@redhat.com>
464
465 * tree-flow.h: Include new .h files. Move prototypes.
466 * tree-cfgcleanup.h: New file. Add prototypes from tree-flow.h.
467 * tree-dfa.h: New File. Add prototypes from tree-flow.h.
468 (get_addr_base_and_unit_offset_1) Move from tree-flow-inline.h.
469 * tree-pretty-print.h: Add prototypes from tree-flow.h.
470 * tree-into-ssa.h: New File. Add prototypes from tree-flow.h.
471 ({debug|dump}*): Move debugging prototypes out of tree-into-ssa.c.
472 * tree-into-ssa.c ({debug|dump}*): Move prototypes to header file.
473 * tree.h (get_ref_base_and_extent): Move prototype out.
78cedfb1 474 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Move to
4b403ece
AM
475 tree-dfa.h.
476 * gimple-low.h: New File. Add prototypes from tree-flow.h.
477 * gimple-low.c (try_catch_may_fallthru, block_may_fallthru): Move to...
478 * tree.c (try_catch_may_fallthru, block_may_fallthru): Here.
479 * tree-scalar-evolution.c: Include tree.h.
480 * sese.c: Include tree.h.
481 * dumpfile.c: Move gimple-pretty-print.h include after tree.h.
482 * dwarf2out.c: Include tree-dfa.h.
483 * tree-chrec.c: Include tree.h.
484 * tree-data-ref.c: Include tree.h.
485
1d2151c6
YZ
4862013-10-02 Yufeng Zhang <yufeng.zhang@arm.com>
487
488 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref):
489 Fix whitespace.
490
441ad147
RO
4912013-10-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
492
493 * config/t-sol2 (sol2-c.o): Remove header dependencies.
494 Use $(COMPILE) and $(POSTCOMPILE).
495 (sol2-cxx.o): Likewise.
496 (sol2-stubs.o): Likewise.
497 (sol2.o): Likewise.
498 * config/x-solaris (host-solaris.o): Likewise.
499
500 * config/sparc/t-sparc (sparc.o): Remove.
501 (sparc-c.o): Remove header dependencies.
502 Use $(COMPILE) and $(POSTCOMPILE).
503 * config/sparc/x-sparc: Likewise.
504
2deaf8b0
JR
5052013-10-02 Joern Rennecke <joern.rennecke@embecosm.com>
506
507 * config/arc/arc-opts.h: Add 2013 to Copyright years.
508 * config/arc/arc700.md: Likewise.
509 * config/arc/arc-modes.def: Likewise.
510 * config/arc/arc-simd.h: Likewise.
511 * config/arc/t-arc-uClibc: Likewise.
512 * config/arc/t-arc-newlib: Likewise.
513
f6fe771a
RL
5142013-10-02 Renlin Li <renlin.li@arm.com>
515
78cedfb1
UB
516 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
517 plus_constant.
f6fe771a
RL
518 (aarch64_expand_epilogue): Likewise.
519
0916f876
YZ
5202013-10-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
521 Yufeng Zhang <yufeng.zhang@arm.com>
522
523 * gimple-ssa-strength-reduction.c (legal_cast_p_1): Forward
524 declaration.
525 (backtrace_base_for_ref): Call get_unwidened with 'base_in' if
526 'base_in' represent a conversion and legal_cast_p_1 holds; set
527 'base_in' with the returned value from get_unwidened.
528
ebfcd719
KT
5292013-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
530
531 * config/arm/arm.c (arm_legitimize_reload_address): Explain why
532 plus_constant is not used.
533
157ca3e9
WM
5342013-10-01 Wei Mi <wmi@google.com>
535
78cedfb1 536 * config/i386/x86-tune.def (DEF_TUNE): Remove m_CORE_ALL.
157ca3e9
WM
537 * config/i386/i386.md: Add define_peephole2 to
538 break partial reg stall for cvtss2sd/cvtsd2ss.
539
cd4dd8f0
JR
5402013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
541
542 * config/arc/arc.c (pass_arc_ifcvt::clone):
78cedfb1 543 Update for ctxt_ -> m_ctxt change.
cd4dd8f0 544
1465e5cf
JL
5452013-10-01 Jeff Law <law@redhat.com>
546
547 * tree-ssa-threadupdate.c (struct redirection_data): Delete
548 outgoing_edge and intermediate_edge fields. Instead store the path.
549 (redirection_data::hash): Hash on the last edge's destination index.
550 (redirection_data::equal): Check the entire thread path.
551 (lookup_redirectio_data): Corresponding changes.
552 (create_edge_and_update_destination_phis): Likewise.
553 (thread_single_edge): Likewise.
554
25c606cb 5552013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
0ccbc132 556 Diego Novillo <dnovillo@google.com>
25c606cb
JR
557
558 * config/arc/simdext.md (UNSPEC_ARC_SIMD_VLD32WH): Delete.
559 (UNSPEC_ARC_SIMD_VLD32WL): Likewise.
560 (vld32wh_insn, vld32wl_insn): Delete commented-out old
561 versions of these patterns.
562
0ccbc132
JR
563 * doc/extend.texi (long_call/medium_call/short_call): Typo fix.
564 (__builtin_arc_aligned): Likewise.
565
f55d4a20
JR
566 * config/arc/arc.md: Expand adc_0 comment stating the intended
567 purpose and why it isn't ready.
568 Replace commented out call_value_via_label_mixed with a
569 plain comment about bl_s.
570
5719867d 571 * config/arc/arc.c (stdio.h): Don't include directly.
5719867d
JR
572 (arc_expand_epilogue): Remove [0]: Remove fp_restored_p.
573 Remove if (1) condition.
574 (arc_encode_section_info): Fix comment.
575
6462fab0
JR
5762013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
577
578 * config/arc/arc.c (arc_conditional_register_usage):
579 Use ARC_FIRST_SIMD_VR_REG / ARC_LAST_SIMD_VR_REG.
580 Also set reg_alloc_order for DMA config regs.
581
5d5f6720
JR
5822013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
583 Jeremy Bennett <jeremy.bennett@embecosm.com>
584
585 * doc/install.texi (--with-cpu): Mention ARC.
586 (arc-*-elf32): New paragraph.
587 (arc-linux-uclibc): Likewise.
588 * doc/md.texi (Machine Constraints): Add ARC part.
589 * doc/invoke.texi: (menu): Add ARC Options.
590 (Machine Dependent Options) <ARC Options>: Add synopsis.
591 (node ARC Options): Add.
592 * doc/extend.texi (long_call / short_call attribute): Add ARC.
593 (ARC Built-in Functions): New section defining
594 generic ARC built-in functions.
595 (ARC SIMD Built-in Functions): New section defining SIMD specific
596 built-in functions.
597 (Declaring Attributes of Functions): Extended
598 description of short_call and long_call attributes for ARC and
599 added index entries.
600
526b7aee
SV
6012013-10-01 Saurabh Verma <saurabh.verma@codito.com>
602 Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>
603 Joern Rennecke <joern.rennecke@embecosm.com>
604 Muhammad Khurram Riaz <khurram.riaz@arc.com>
605 Brendan Kehoe <brendan@zen.org>
606 Michael Eager <eager@eagercon.com>
607 Simon Cook <simon.cook@embecosm.com>
608 Jeremy Bennett <jeremy.bennett@embecosm.com>
609
610 * config/arc, common/config/arc: New directories.
611
53426f6c
JR
6122013-10-01 Joern Rennecke <joern.rennecke@embecosm.com>
613 Brendan Kehoe <brendan@zen.org>
614 Simon Cook <simon.cook@embecosm.com>
615
616 * config.gcc (arc*-*-elf*, arc*-*-linux-uclibc*): New configurations.
617
1df9f5a9
AM
6182013-10-01 Andrew MacLeod <amacleod@redhat.com>
619
620 * tree-ssa-live.h (coalesce_ssa_name): Move Prototype to...
621 * tree-ssa-coalesce.h: New. Move prototype to here.
622 * tree-outof-ssa.h: Include tree-ssa-coalesce.h.
623 * tree-ssa-coalesce.c: Include tree-outof-ssa.h.
624 (gimple_can_coalesce_p): Move to...
625 * gimple.c (gimple_can_coalesce_p): Here.
626
80560f95
AM
6272013-10-01 Andrew MacLeod <amacleod@redhat.com>
628
629 * tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
630 (dump_decl_set): Move to gimple.c.
631 * gimple.h: Don't include tree-ssa-operands.h.
632 (dump_decl_set): Add prototype.
633 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
634 Move to gimple-ssa.h.
635 (phi_ssa_name_p, phi_nodes, phi_nodes_ptr, gimple_phi_arg_def,
636 gimple_phi_arg_def_ptr, gimple_phi_arg_edge, gimple_phi_arg_location,
637 gimple_phi_arg_location_from_edge, gimple_phi_arg_set_location,
638 gimple_phi_arg_has_location): Relocate from tree-flow-inline.h
639 * gimple.c (walk_stmt_load_store_ops): Use gimple_phi_arg_def rather
640 than PHI_ARG_DEF.
641 (dump_decl_set): Relocate here.
642 * gimple-ssa.h: New file.
643 (gimple_vuse_op, gimple_vdef_op, update_stmt, update_stmt_if_modified):
644 Relocate from gimple.h.
645 * tree-cfg.c (has_zero_uses_1, single_imm_use_1): Move to...
646 * tree-ssa-operands.c (swap_ssa_operands): Rename from
647 swap_tree_operands and remove non-ssa path.
648 (has_zero_uses_1, single_imm_use_1): Relocate from tree-cfg.c.
649 * tree-ssa-reassoc.c (linearize_expr_tree, repropagate_negates): Use
650 swap_ssa_operands.
651 * tree-vect-loop.c (destroy_loop_vec_info, vect_is_slp_reduction,
652 vect_is_simple_reduction_1): Use swap_ssa_operands.
653 * tree-flow.h: Move various prototypes to tree-phinodes.h.
654 (enum need_phi_state): Move to tree-into-ssa.c.
655 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
656 BREAK_FROM_IMM_USE_STMT): Move to ssa-iterators.h.
657 (swap_tree_operands): Rename and move prototype to tree-ssa-operands.h.
658 * tree-flow-inline.h (delink_imm_use, link_imm_use_to_list,
659 link_imm_use, set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
660 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
661 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
662 num_imm_uses): Move to ssa-iterators.h.
663 (get_use_from_ptr, get_def_from_ptr): Move to tree-ssa-operands.h
664 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Move to
665 tree-phinodes.h.
666 (op_iter_done, op_iter_next_def, op_iter_next_tree,
667 clear_and_done_ssa_iter, op_iter_init, op_iter_init_use,
668 op_iter_init_def, op_iter_init_tree, single_ssa_tree_operand,
669 single_ssa_use_operand, single_ssa_def_operand, zero_ssa_operands,
670 num_ssa_operands, delink_stmt_imm_use, single_phi_def,
671 op_iter_init_phiuse, op_iter_init_phidef, end_imm_use_stmt_p,
672 end_imm_use_stmt_traverse, move_use_after_head, link_use_stmts_after,
673 first_imm_use_stmt, next_imm_use_stmt, first_imm_use_on_stmt,
674 end_imm_use_on_stmt_p, next_imm_use_on_stmt): Move to ssa-iterators.h.
675 (gimple_phi_arg_def, gimple_phi_arg_def_ptr, gimple_phi_arg_edge,
676 gimple_phi_arg_location, gimple_phi_arg_location_from_edge,
677 gimple_phi_arg_set_location, gimple_phi_arg_has_location, phi_nodes,
678 phi_nodes_ptr, phi_ssa_name_p): Move to gimple.h.
679 (set_phi_nodes): Move to tree-phinodes.h.
680 * tree-ssa-operands.h (enum ssa_op_iter_type,
681 struct ssa_operand_iterator_d, SSA_OP*, FOR_EACH_SSA*, SINGLE_SSA*,
682 ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS): Move to ssa-iterators.h.
683 (dump_decl_set): Remove prototype.
684 (get_use_from_ptr, get_def_from_ptr): Relocate from tree-flow.h.
685 * tree-phinodes.h: New file. Move some prototypes from tree-flow.h.
686 (set_phi_nodes): Relocate from tree-flow-inline.h.
687 (gimple_phi_arg_imm_use_ptr, phi_arg_index_from_use): Relocate from
688 tree-flow-inline.h
689 * tree-ssa.h: Add tree-phinodes.h, gimple-ssa.h, ssa-iterators.h to
690 include list. Temporarily add gimple.h to include list.
691 * ssa-iterators.h: New file.
692 (struct immediate_use_iterator_d, FOR_EACH_IMM_*,
693 BREAK_FROM_IMM_USE_STMT): Relocate from tree-flow.h.
694 (enum ssa_op_iter_type, struct ssa_operand_iterator_d, SSA_OP*,
695 FOR_EACH_SSA*, SINGLE_SSA*, ZERO_SSA_OPERANDS, NUM_SSA_OPERANDS):
696 Relocate from tree-ssa-operands.h.
697 (delink_imm_use, link_imm_use_to_list, link_imm_use,
698 set_ssa_use_from_ptr, link_imm_use_stmt, relink_imm_use,
699 relink_imm_use_stmt, end_readonly_imm_use_p, first_readonly_imm_use,
700 next_readonly_imm_use, has_zero_uses, has_single_use, single_imm_use,
701 num_imm_uses, get_use_from_ptr, get_def_from_ptr,
702 phi_arg_index_from_use, op_iter_done, op_iter_next_def,
703 op_iter_next_tree, clear_and_done_ssa_iter, op_iter_init,
704 op_iter_init_use, op_iter_init_def, op_iter_init_tree,
705 single_ssa_tree_operand, single_ssa_use_operand, single_ssa_def_operand,
706 zero_ssa_operands, num_ssa_operands, delink_stmt_imm_use,
707 single_phi_def, op_iter_init_phiuse, op_iter_init_phidef,
708 end_imm_use_stmt_p, end_imm_use_stmt_traverse, move_use_after_head,
709 link_use_stmts_after, first_imm_use_stmt, next_imm_use_stmt,
710 first_imm_use_on_stmt, end_imm_use_on_stmt_p, next_imm_use_on_stmt):
711 Relocate from tree-flow-inline.h.
712 * tree-outof-ssa.h: Change _SSAEXPAND_H macro to GCC_TREE_OUTOF_SSA_H.
713
8da00d65
VP
7142013-10-01 Vidya Praveen <vidyapraveen@arm.com>
715
716 * aarch64-simd.md
717 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l2<mode>_internal): Rename to ...
718 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal): ... this;
719 Insert '\t' to output template.
720 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_lo_internal): New.
721 (aarch64_saddl2<mode>, aarch64_uaddl2<mode>): Modify to call
722 gen_aarch64_<ANY_EXTEND:su><ADDSUB:optab>l<mode>_hi_internal() instead.
723 (aarch64_ssubl2<mode>, aarch64_usubl2<mode>): Ditto.
724
e2ebe1c2
UB
7252013-10-01 Uros Bizjak <ubizjak@gmail.com>
726
727 * doc/install.texi (Host/target specific installation notes for GCC):
728 Put @anchor before @heading.
729 * doc/gcc.texi (titlepage): Use @uref and http:// prefix for website.
730 Use @email for email addresses.
731
aee2d611
JL
7322013-10-01 Jeff Law <law@redhat.com>
733
734 * tree-ssa-threadedge.c (thread_across_edge): Make path a pointer to
735 a vec. Only delete the path if we create one without successfully
736 registering a jump thread.
737 * tree-ssa-threadupdate.h (register_jump_thread): Pass in path vector
738 as a pointer.
739 * tree-ssa-threadupdate.c (threaded_edges): Remove. No longer used
740 (paths): New vector of jump threading paths.
741 (THREAD_TARGET, THREAD_TARGET2): Remove accessor macros.
742 (THREAD_PATH): New accessor macro for the entire thread path.
743 (lookup_redirection_data): Get intermediate and final outgoing edge
744 from the thread path.
745 (create_edge_and_update_destination_phis): Copy the threading path.
746 (ssa_fix_duplicate_block_edges): Get edges and block types from the
747 jump threading path.
748 (ssa_redirect_edges): Get edges and block types from the jump threading
749 path. Free the path vector.
750 (thread_block): Get edges from the jump threading path. Look at the
751 entire path to see if we thread to a loop exit. If we cancel a jump
752 thread request, then free the path vector.
753 (thread_single_edge): Get edges and block types from the jump threading
754 path. Free the path vector.
755 (thread_through_loop_header): Get edges and block types from the jump
756 threading path. Free the path vector.
757 (mark_threaded_blocks): Iterate over the vector of paths and store
758 the path on the appropriate edge. Get edges and block types from the
759 jump threading path.
760 (mark_threaded_blocks): Get edges and block types from the jump
761 threading path. Free the path vector.
762 (thread_through_all_blocks): Use the vector of paths rather than
763 a vector of 3-edge sets.
764 (register_jump_thread): Accept pointer to a path vector rather
765 than the path vector itself. Store the path vector for later use.
766 Simplify.
767
966f97ac 7682013-10-01 Jakub Jelinek <jakub@redhat.com>
8da00d65 769 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
966f97ac
JJ
770
771 PR target/58574
772 * config/s390/s390.c (s390_split_branches): Modify check for table
773 jump insns.
774 (s390_chunkify_start): Rearrange table jump insn check in order to
775 deal with compare and branch insns correctly.
776
3a323a38
KV
7772013-10-01 Kugan Vivekanandarajah <kuganv@linaro.org>
778
779 PR target/58578
780 Revert
781 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
782 * config/arm/arm.md (arm_ashldi3_1bit): define_insn into
783 define_insn_and_split.
784 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
785 (shiftsi3_compare): New pattern.
786 (rrx): New pattern.
787 * config/arm/unspecs.md (UNSPEC_RRX): New.
788
90444831
AM
7892013-10-01 Alan Modra <amodra@gmail.com>
790
791 * stmt.c (expand_asm_operands): Revert part of 2013-09-24 special
792 casing inout operands.
793
818625cf
RB
7942013-10-01 Richard Biener <rguenther@suse.de>
795
796 PR tree-optimization/58553
797 * tree-loop-distribution.c (struct partition_s): Add niter member.
798 (classify_partition): Populate niter member for the partition
799 and properly identify whether the relevant store happens before
800 or after the loop exit.
801 (generate_memset_builtin): Use niter member from the partition.
802 (generate_memcpy_builtin): Likewise.
803
30f641cd
RS
8042013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
805
806 * vec.h (vec_prefix, vec): Prefix member names with "m_".
807 * vec.c (vec_prefix::calculate_allocation): Update accordingly.
808
65d3284b
RS
8092013-09-30 Richard Sandiford <rdsandiford@googlemail.com>
810
811 * basic-block.h (edge_list): Prefix member names with "m_".
812 * context.h (context): Likewise.
813 * domwalk.h (dom_walker): Likewise.
814 * gengtype-state.c (s_expr_writer, state_writer): Likewise.
815 * graphite-sese-to-poly.c (sese_dom_walker): Likewise.
816 * hash-table.h (hash_table): Likewise.
817 * machmode.h (bit_field_mode_iterator): Likewise.
818 * pass_manager.h (pass_list): Likewise.
819 * tree-into-ssa.c (mark_def_dom_walker): Likewise.
820 * tree-pass.h (pass_data): Likewise.
821 * tree-ssa-dom.c (dom_opt_dom_walker): Likewise.
822 * tree-ssa-phiopt.c (nontrapping_dom_walker): Likewise,
823 * tree-ssa-uncprop.c (uncprop_dom_walker): Likewise.
824 * asan.c (pass_data_asan): Update accordingly.
825 * cfganal.c (control_dependences::find_control_dependence): Likewise.
826 (control_dependences::control_dependences): Likewise.
827 (control_dependences::~control_dependences): Likewise.
828 (control_dependences::~control_dependences): Likewise.
829 (control_dependences::get_edges_dependent_on): Likewise.
830 * cgraphbuild.c (pass_data_rebuild_cgraph_edges::clone): Likewise.
831 (pass_data_remove_cgraph_callee_edges::clone): Likewise.
832 * context.c (gcc::context::context): Likewise.
833 * cprop.c (pass_rtl_cprop::clone): Likewise.
834 * domwalk.c (dom_walker::walk): Likewise.
835 * ipa-inline-analysis.c (pass_inline_parameters::clone): Likewise.
836 * ipa-pure-const.c (pass_local_pure_const::clone): Likewise.
837 * mode-switching.c (pass_mode_switching::clone): Likewise.
838 * passes.c (opt_pass::opt_pass): Likewise.
839 (pass_manager::pass_manager): Likewise.
840 * predict.c (pass_strip_predict_hints::clone): Likewise.
841 * recog.c (pass_data pass_data_peephole2::clone): Likewise.
842 (pass_split_all_insns::clone): Likewise.
843 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
844 Likewise.
845 (bit_field_mode_iterator::next_mode): Likewise.
846 (bit_field_mode_iterator::prefer_smaller_modes): Likewise.
847 * tree-cfg.c (pass_split_crit_edges::clone): Likewise.
848 * tree-cfgcleanup.c (pass_merge_phi::clone): Likewise.
849 * tree-complex.c (pass_lower_complex::clone): Likewise.
850 * tree-eh.c (pass_cleanup_eh::clone): Likewise.
851 * tree-object-size.c (pass_object_sizes::clone): Likewise.
852 * tree-optimize.c (pass_fixup_cfg::clone): Likewise.
853 * tree-ssa-ccp.c (pass_data_ccp::clone): Likewise.
854 (pass_fold_builtins::clone): Likewise.
855 * tree-ssa-copy.c (pass_data_copy_prop::clone): Likewise.
856 * tree-ssa-copyrename.c (pass_rename_ssa_copies::clone): Likewise.
857 * tree-ssa-dce.c (pass_dce::clone, pass_dce_loop::clone): Likewise.
858 (pass_cd_dce::clone): Likewise.
859 * tree-ssa-dom.c (pass_dominator::clone): Likewise.
860 (pass_phi_only_cprop::clone): Likewise.
861 * tree-ssa-dse.c (pass_dse::clone): Likewise.
862 * tree-ssa-forwprop.c (pass_forwprop::clone): Likewise.
863 * tree-ssa-loop.c (pass_lim::clone): Likewise.
864 * tree-ssa-phiopt.c (pass_phiopt::clone): Likewise.
865 * tree-ssa-pre.c (pass_fre::clone): Likewise.
866 * tree-ssa-reassoc.c (pass_reassoc::clone): Likewise.
867 * tree-ssa-uninit.c (pass_late_warn_uninitialized::clone): Likewise.
868 * tree-tailcall.c (pass_tail_recursion::clone): Likewise.
869 * tree-vect-generic.c (pass_lower_vector_ssa::clone): Likewise.
870 * tree-vrp.c (pass_vrp::clone): Likewise.
871 * tsan.c (pass_tsan::clone): Likewise.
872
f66d0891
JJ
8732013-09-30 Jakub Jelinek <jakub@redhat.com>
874
d2a365a8
JJ
875 PR middle-end/58564
876 * fold-const.c (tree_unary_nonnegative_warnv_p): Use
877 INTEGRAL_TYPE_P (t) instead of TREE_CODE (t) == INTEGER_TYPE.
878
f66d0891
JJ
879 PR middle-end/58564
880 * fold-const.c (fold_ternary_loc): For A < 0 : <sign bit of A> : 0
881 optimization, punt if sign_bit_p looked through any zero extension.
882
05357ac3
TJ
8832013-09-30 Teresa Johnson <tejohnson@google.com>
884
885 * tree-ssa-threadupdate.c (ssa_fix_duplicate_block_edges):
886 Update redirected out edge count in joiner case.
887 (ssa_redirect_edges): Common the joiner and non-joiner cases
888 so that joiner case gets profile updates.
889
ca406576
RB
8902013-09-30 Richard Biener <rguenther@suse.de>
891
892 PR tree-optimization/58554
e2ebe1c2
UB
893 * tree-loop-distribution.c (classify_partition): Require
894 unconditionally executed stores for memcpy and memset recognition.
ca406576
RB
895 (tree_loop_distribution): Calculate dominance info.
896
92d649c4
VK
8972013-09-30 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
898
899 * config/aarch64/aarch64.h (MCOUNT_NAME): Define.
900 (NO_PROFILE_COUNTERS): Likewise.
901 (PROFILE_HOOK): Likewise.
902 (FUNCTION_PROFILER): Likewise.
903 * config/aarch64/aarch64.c (aarch64_function_profiler): Remove.
904
bd9534e2
IS
9052013-09-30 Iain Sandoe <iain@codesourcery.com>
906
907 * config/rs6000/darwin.md (load_macho_picbase_si): Wrap machopic
908 calls and defines in TARGET_MACHO conditional.
909 (load_macho_picbase_di): Likewise.
910 (reload_macho_picbase): Likewise.
911 (reload_macho_picbase_si): Likewise.
912 (reload_macho_picbase_di): Likewise.
913 (nonlocal_goto_receiver): Likewise.
914
4494fbc9
NC
9152013-09-30 Nick Clifton <nickc@redhat.com>
916
917 * config/msp430/msp430.c (msp430x_names): New array. Lists MCUs
918 that use the MSP430X ISA.
919 (msp430_option_override): Scan -mmcu command line option for any
920 MCU name that supports the MSP430X ISA.
921 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for known
922 -mmcu options which enable the MSP430X ISA.
923
791d9044
RB
9242013-09-30 Richard Biener <rguenther@suse.de>
925
926 PR middle-end/58532
927 * tree-cfg.c (make_abnormal_goto_edges): Skip debug statements
928 before looking for setjmp-like calls.
929
e1c5c877
IS
9302013-09-29 Iain Sandoe <iain@codesourcery.com>
931
932 PR target/10901
933 * config/darwin-protos.h (machopic_get_function_picbase): New.
934 * config/darwin.c (machopic_get_function_picbase): New.
935 * config/rs6000/darwin.md (load_macho_picbase_si): Update picbase
936 label for a new func. (load_macho_picbase_di): Likewise.
937 (reload_macho_picbase): New expand.
938 (reload_macho_picbase_si): New insn.
939 (reload_macho_picbase_di): New insn.
940 (nonlocal_goto_receiver): New define and split.
941 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_RELD_MPIC.
942 (unspecv enum): Add UNSPECV_NLGR.
943
749278c5
IS
9442013-09-29 Iain Sandoe <iain@codesourcery.com>
945
946 * config/rs6000/rs6000.c (rs6000_init_dwarf_reg_sizes_extra): Ensure
947 that altivec registers are correctly sized on Darwin.
948
2c43a51c
IS
9492013-09-29 Iain Sandoe <iain@codesourcery.com>
950
951 * config/t-darwin (darwin.o, darwin-c.o, darwin-f.o,
952 darwin-driver.o): Use COMPILE and POSTCOMPILE.
953 * config/x-darwin (host-darwin.o): Likewise.
954 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
955 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
956 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
957
7a5911d3
UB
9582013-09-29 Uros Bizjak <ubizjak@gmail.com>
959
960 * doc/invoke.texi: Fix usage of @tie{} command.
961
3f67a73d
EB
9622013-09-29 Eric Botcazou <ebotcazou@adacore.com>
963
964 * config/sparc/sync.md: Add peephole for consecutive memory barriers.
965
9ac2f538
JH
9662013-09-28 Jan Hubicka <jh@suse.cz>
967
968 * config/i386/x86-tune.def: Add documentation for each of the options;
969 add whitespace.
970
b0ff06da
JH
9712013-09-28 Jan Hubicka <jh@suse.cz>
972
7a5911d3
UB
973 * x86-tune.def (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Enable for
974 generic.
b0ff06da
JH
975 (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
976 (X86_TUNE_FOUR_JUMP_LIMIT): Drop for generic and buldozer.
977 (X86_TUNE_PAD_RETURNS): Drop for buldozer chips.
978 (X86_TUNE_AVOID_VECTOR_DECODE): Drop for generic.
979 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Enable for generic.
980
c3284718
RS
9812013-09-28 Richard Sandiford <rdsandiford@googlemail.com>
982
983 * alloc-pool.c, asan.c, auto-inc-dec.c, basic-block.h, bb-reorder.c,
984 bitmap.c, bitmap.h, bt-load.c, builtins.c, calls.c, cfgcleanup.c,
985 cfgexpand.c, cfghooks.c, cfgloop.c, cfgloopmanip.c, cfgrtl.c, cgraph.c,
986 cgraph.h, cgraphbuild.c, cgraphclones.c, cgraphunit.c, collect2.c,
987 combine-stack-adj.c, combine.c, compare-elim.c, context.c, context.h,
988 cprop.c, cse.c, cselib.c, dbxout.c, dce.c, defaults.h, df-core.c,
989 df-problems.c, df-scan.c, df.h, diagnostic.c, double-int.c, dse.c,
990 dumpfile.c, dwarf2asm.c, dwarf2cfi.c, dwarf2out.c, emit-rtl.c,
991 errors.c, except.c, expmed.c, expr.c, file-find.c, final.c,
992 fixed-value.c, fold-const.c, function.c, fwprop.c, gcc-ar.c, gcc.c,
993 gcov-io.c, gcov-io.h, gcov.c, gcse.c, genattr-common.c, genattr.c,
994 genattrtab.c, genautomata.c, genconfig.c, genemit.c, genextract.c,
995 genflags.c, gengenrtl.c, gengtype-state.c, gengtype.c, genmodes.c,
996 genopinit.c, genoutput.c, genpeep.c, genpreds.c, genrecog.c,
997 gensupport.c, ggc-common.c, ggc-page.c, gimple-fold.c, gimple-low.c,
998 gimple-pretty-print.c, gimple-ssa-strength-reduction.c, gimple.c,
999 gimple.h, godump.c, graphite-clast-to-gimple.c,
1000 graphite-optimize-isl.c, graphite-poly.h, graphite-sese-to-poly.c,
1001 graphite.c, haifa-sched.c, hash-table.c, hash-table.h, hwint.c,
1002 hwint.h, ifcvt.c, incpath.c, init-regs.c, input.h, intl.c, intl.h,
1003 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
1004 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c,
1005 ipa-utils.c, ipa.c, ira-build.c, ira.c, jump.c, loop-doloop.c,
1006 loop-init.c, loop-invariant.c, loop-iv.c, lower-subreg.c, lto-cgraph.c,
1007 lto-streamer-in.c, lto-streamer-out.c, lto-wrapper.c, mcf.c,
1008 mode-switching.c, modulo-sched.c, omp-low.c, optabs.c, opts.c,
1009 pass_manager.h, passes.c, plugin.c, postreload-gcse.c, postreload.c,
1010 predict.c, prefix.c, pretty-print.c, print-rtl.c, print-tree.c,
1011 profile.c, read-md.c, real.c, real.h, recog.c, ree.c, reg-stack.c,
1012 regcprop.c, reginfo.c, regmove.c, regrename.c, regs.h, regstat.c,
1013 reload1.c, reorg.c, rtl.c, rtl.h, rtlanal.c, sbitmap.c, sched-rgn.c,
1014 sdbout.c, sel-sched-ir.c, sel-sched.c, sparseset.c, stack-ptr-mod.c,
1015 statistics.c, stmt.c, stor-layout.c, store-motion.c, streamer-hooks.h,
1016 system.h, target-hooks-macros.h, targhooks.c, targhooks.h, toplev.c,
1017 tracer.c, trans-mem.c, tree-browser.c, tree-call-cdce.c, tree-cfg.c,
1018 tree-cfgcleanup.c, tree-complex.c, tree-data-ref.c, tree-data-ref.h,
1019 tree-eh.c, tree-emutls.c, tree-flow.h, tree-if-conv.c, tree-into-ssa.c,
1020 tree-iterator.c, tree-loop-distribution.c, tree-mudflap.c,
1021 tree-nested.c, tree-nomudflap.c, tree-nrv.c, tree-object-size.c,
1022 tree-optimize.c, tree-pass.h, tree-pretty-print.c, tree-profile.c,
1023 tree-scalar-evolution.c, tree-sra.c, tree-ssa-ccp.c,
1024 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
1025 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
1026 tree-ssa-ifcombine.c, tree-ssa-live.c, tree-ssa-loop-ch.c,
1027 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-loop-prefetch.c,
1028 tree-ssa-loop.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
1029 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
1030 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
1031 tree-ssa-structalias.c, tree-ssa-threadedge.c, tree-ssa-threadupdate.c,
1032 tree-ssa-uncprop.c, tree-ssa-uninit.c, tree-ssa.c, tree-ssanames.c,
1033 tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
1034 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
1035 tree-vect-stmts.c, tree-vectorizer.c, tree-vectorizer.h, tree-vrp.c,
1036 tree.c, tree.h, tsan.c, tsystem.h, value-prof.c, var-tracking.c,
1037 varasm.c, vec.h, vmsdbgout.c, vtable-verify.c, web.c: Add missing
1038 whitespace before "(".
1039
c6285bd7
SL
10402013-09-28 Sandra Loosemore <sandra@codesourcery.com>
1041
1042 * expr.h (extract_bit_field): Remove packedp parameter.
1043 * expmed.c (extract_fixed_bit_field): Remove packedp parameter
1044 from forward declaration.
1045 (store_split_bit_field): Remove packedp arg from calls to
1046 extract_fixed_bit_field.
1047 (extract_bit_field_1): Remove packedp parameter and packedp
1048 argument from recursive calls and calls to extract_fixed_bit_field.
1049 (extract_bit_field): Remove packedp parameter and corresponding
1050 arg to extract_bit_field_1.
1051 (extract_fixed_bit_field): Remove packedp parameter. Remove code
1052 to issue warnings.
1053 (extract_split_bit_field): Remove packedp arg from call to
1054 extract_fixed_bit_field.
1055 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
1056 (copy_blkmode_from_reg): Likewise.
1057 (copy_blkmode_to_reg): Likewise.
1058 (read_complex_part): Likewise.
1059 (store_field): Likewise.
1060 (expand_expr_real_1): Likewise.
1061 * calls.c (store_unaligned_arguments_into_pseudos): Adjust call
1062 to extract_bit_field.
1063 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust
1064 call to extract_bit_field.
1065 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Adjust
1066 call to extract_bit_field.
1067 * doc/invoke.texi (Code Gen Options): Remove mention of warnings
1068 and special packedp behavior from -fstrict-volatile-bitfields
1069 documentation.
1070
522d4efc
JBG
10712013-09-27 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1072
1073 * lra-eliminations.c (init_elim_table): Guard value_p.
1074
19cdb489
MM
10752013-09-27 Michael Meissner <meissner@linux.vnet.ibm.com>
1076
1077 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
1078 DFmode, DImode, and SFmode in the upper VSX registers based on the
1079 -mupper-regs-{df,sf} flags. Fix wu constraint to be ALTIVEC_REGS
1080 if -mpower8-vector. Combine -mvsx-timode handling with the rest
1081 of the VSX register handling.
1082
1083 * config/rs6000/rs6000.md (f32_lv): Use %x0 for VSX regsters.
1084 (f32_sv): Likewise.
1085 (zero_extendsidi2_lfiwzx): Add support for loading into the
1086 Altivec registers with -mpower8-vector. Use wu/wv constraints to
1087 only do VSX memory options on Altivec registers.
1088 (extendsidi2_lfiwax): Likewise.
1089 (extendsfdf2_fpr): Likewise.
1090 (mov<mode>_hardfloat, SF/SD modes): Likewise.
1091 (mov<mode>_hardfloat32, DF/DD modes): Likewise.
1092 (mov<mode>_hardfloat64, DF/DD modes): Likewise.
1093 (movdi_internal64): Likewise.
1094
d6d11272
XDL
10952013-09-27 Xinliang David Li <davidxl@google.com>
1096
1097 * opts.c (finish_options): Adjust parameters
1098 according to vect cost model.
1099 (common_handle_option): Set dynamic vect cost
1100 model for FDO.
1101 targhooks.c (default_add_stmt_cost): Compute stmt cost
1102 unconditionally.
1103 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
1104 Use helper function.
1105 * tree-vectorizer.h (unlimited_cost_model): New function.
1106 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use helper function.
1107 * tree-vect-data-refs.c (vect_peeling_hash_insert): Use helper
1108 function.
1109 (vect_enhance_data_refs_alignment): Ditto.
1110 * flag-types.h: New enum.
1111 * common/config/i386/i386-common.c (ix86_option_init_struct):
1112 No need to initialize vect_cost_model flag.
1113 * config/i386/i386.c (ix86_add_stmt_cost): Compute stmt cost
1114 unconditionally.
1115
ac1857a3
DN
11162013-09-27 Diego Novillo <dnovillo@google.com>
1117
1118 * gimple.h (enum ssa_mode): Remove.
1119
3c468b4c
PM
11202013-09-27 Paulo Matos <pmatos@broadcom.com>
1121
1122 PR middle-end/58463
1123 * gcc.dg/pr58463.c: New test.
1124
0d0e2af6
PM
11252013-09-27 Paulo Matos <pmatos@broadcom.com>
1126
1127 * cfgloop.h (number_of_loops): Fix typo in check for null.
1128
09dc585e
JJ
11292013-09-27 Jakub Jelinek <jakub@redhat.com>
1130
1131 PR middle-end/58551
1132 * tree-cfg.c (move_sese_region_to_fn): Also move loops that
1133 are children of outermost saved_cfun's loop, and set it up to
1134 be moved to dest_cfun's outermost loop. Fix up num_nodes adjustments
1135 if loop != loop0 and SESE region contains bbs that belong to loop0.
1136
ec5a3504
RS
11372013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
1138
1139 * rtlanal.c (must_be_base_p, must_be_index_p): Delete.
1140 (binary_scale_code_p, get_base_term, get_index_term): New functions.
1141 (set_address_segment, set_address_base, set_address_index)
1142 (set_address_disp): Accept the argument unconditionally.
1143 (baseness): Remove must_be_base_p and must_be_index_p checks.
1144 (decompose_normal_address): Classify as much as possible in the
1145 main loop.
1146
f91aec98
RS
11472013-09-27 Richard Sandiford <rdsandiford@googlemail.com>
1148
1149 * cse.c (count_reg_usage): Handle INT_LIST.
1150 * lra-eliminations.c (lra_eliminate_regs_1): Likewise.
1151 * reginfo.c (reg_scan_mark_refs): Likewise.
1152 * reload1.c (eliminate_regs_1): Likewise.
1153
a9195970
IS
11542013-09-27 Iain Sandoe <iain@codesourcery.com>
1155
1156 PR middle-end/58547
1157 * rtlanal.c (lsb_bitfield_op_p): Make both parts of the comparison
1158 signed.
1159
e6f1c509
RB
11602013-09-27 Richard Biener <rguenther@suse.de>
1161
1162 PR tree-optimization/58459
1163 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Remove
1164 restriction not propagating into loops.
1165
84f48495
FW
11662013-09-26 Florian Weimer <fw@deneb.enyo.de>
1167
1168 * tree-ssa.h (walk_use_def_chains_fn, walk_use_def_chains): Delete.
1169 * tree-ssa.c (walk_use_def_chains_1, walk_use_def_chains): Delete.
1170 * doc/tree-ssa.texi (Walking use-def chains): Delete.
1171
74fc8b8a
RB
11722013-09-26 Richard Biener <rguenther@suse.de>
1173
7a5911d3 1174 * tree-into-ssa.c (rewrite_into_ssa): Make more SSA names to anonymous.
74fc8b8a 1175
b4ada065
RB
11762013-09-26 Richard Biener <rguenther@suse.de>
1177
1178 * alias.h (component_uses_parent_alias_set): Rename to ...
1179 (component_uses_parent_alias_set_from): ... this.
1180 * alias.c (component_uses_parent_alias_set): Rename to ...
1181 (component_uses_parent_alias_set_from): ... this and return
1182 the desired parent.
1183 (reference_alias_ptr_type_1): Use the result from
1184 component_uses_parent_alias_set_from instead of stripping
1185 components one at a time.
1186 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
1187
78bca40d
AM
11882013-09-26 Andrew MacLeod <amacleod@redhat.com>
1189
7a5911d3
UB
1190 * tree-ssa-live.h (find_replaceable_exprs, dump_replaceable_exprs):
1191 Move prototypes to...
78bca40d
AM
1192 * tree-ssa-ter.h: New File. Move prototypes here.
1193 * tree-flow.h (stmt_is_replaceable_p): Remove prototype.
1194 * tree-outof-ssa.h: New. Rename ssaexpand.h, include tree-ssa-ter.h.
1195 * tree-outof-ssa.c (ssa_is_replaceable_p): New. Refactor common bits
7a5911d3 1196 from is_replaceable_p.
78bca40d
AM
1197 * tree-ssa-ter.c (is_replaceable_p, stmt_is_replaceable_p): Delete.
1198 (ter_is_replaceable_p): New. Use new refactored ssa_is_replaceable_p.
1199 (process_replaceable): Use ter_is_replaceable_p.
1200 (find_replaceable_in_bb): Use ter_is_replaceable_p.
1201 * expr.c (stmt_is_replaceable_p): Relocate from tree-ssa-ter.c. Use
1202 newly refactored ssa_is_replaceable_p.
1203 * cfgexpand.c: Include tree-outof-ssa.h.
1204 * ssaexpand.h: Delete.
1205
ff2a63a7
AM
12062013-09-26 Andrew MacLeod <amacleod@redhat.com>
1207
1208 * gimple.c (gimple_replace_lhs): Move to tree-ssa.c and rename.
1209 (struct count_ptr_d, count_ptr_derefs, count_uses_and_derefs): Move to
1210 tree-ssa.c
1211 (create_gimple_tmp): Delete.
1212 (get_expr_type, build_assign, build_type_cast): Move to...
1213 * gimple-builder.c: New File.
1214 (get_expr_type): Relocate from gimple.c.
1215 (build_assign, build_type_cast): Change to only create ssanames.
1216 * gimple.h: Move prototypes to...
1217 * gimple-builder.h: New File. Here.
1218 * tree-ssa.h: And here.
1219 * tree-ssa.c (struct count_ptr_d, count_ptr_derefs,
1220 count_uses_and_derefs): Relocate from gimple.c.
1221 (gimple_replace_ssa_lhs): Renamed gimple_replace_ssa from gimple.c
1222 * tree-ssa-reassoc.c (repropagate_negates): Use gimple_replace_ssa_lhs.
1223 * tree-ssa-math-opts (execute_cse_reciprocals): Use
1224 gimple_replace_ssa_lhs.
1225 * asan.c: Include gimple-builder.h.
1226 * Makefile.in: Add gimple-builder.o.
1227
a2544177
RB
12282013-09-26 Richard Biener <rguenther@suse.de>
1229
1230 * tree-ssa-live.c (var_map_base_init): Handle SSA names with
1231 DECL_IGNORED_P base VAR_DECLs like anonymous SSA names.
1232 (loe_visit_block): Use gcc_checking_assert.
1233 * tree-ssa-coalesce.c (create_outofssa_var_map): Use
1234 gimple_assign_ssa_name_copy_p.
1235 (gimple_can_coalesce_p): Adjust according to the var_map_base_init
1236 change.
1237
6d1ca9a0
DE
12382013-09-26 David Edelsohn <dje.gcc@gmail.com>
1239
1240 * config/rs6000/t-rs6000 (rs6000.o): Remove.
1241 (rs6000-c.o): Use COMPILE and POSTCOMPILE.
1242
46e950db
RB
12432013-09-26 Richard Biener <rguenther@suse.de>
1244
1245 PR tree-optimization/58539
1246 * tree-vect-loop.c (vect_create_epilog_for_reduction): Honor
1247 the fact that debug statements are not taking part in loop-closed
1248 SSA construction.
1249
40ada30a
NC
12502013-09-26 Nick Clifton <nickc@redhat.com>
1251
1252 * config/msp430/msp430.c (msp430_expand_epilogue): Fix compile
1253 time warning message.
1254 (msp430_print_operand_raw): Delete unused letter parameter.
1255 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1256 (msp430_print_operand_address): New function.
1257 (msp430_print_operand): Move address printing code from here to
1258 new function.
1259 * config/msp430/msp430.md (movsipsi2): Add comment in generated
1260 assembler.
1261 (zero_extendpsisi2): Likewise.
1262 (extendpsisi2): New pattern.
1263 (andneghi3): New pattern.
1264
38e8f663
YR
12652013-09-26 Yvan Roux <yvan.roux@linaro.org>
1266
1267 * config/aarch64/aarch64.opt (mlra): New option.
1268 * config/aarch64/aarch64.c (aarch64_lra_p): New function.
1269 (TARGET_LRA_P): Define.
1270
4167e8d4
EB
12712013-09-26 Eric Botcazou <ebotcazou@adacore.com>
1272
1273 * expr.c (expand_assignment): Remove obsolete comment.
1274
5254eac4
JL
12752013-09-25 Jeff Law <law@redhat.com>
1276
1277 * tree-flow.h (thread_through_all_blocks): Prototype moved into
1278 tree-ssa-threadupdate.h.
1279 (register_jump_thread): Similarly.
1280 * tree-ssa-threadupdate.h: New header file.
1281 * tree-ssa-dom.c: Include tree-ssa-threadupdate.h.
1282 * tree-vrp.c: Likewise.
1283 * tree-ssa-threadedge.c: Include tree-ssa-threadupdate.h.
1284 (thread_around_empty_blocks): Change type of path vector argument to
1285 an edge,type pair from just an edge. Initialize both elements when
1286 appending to a jump threading path. Tweak references to elements
1287 appropriately.
1288 (thread_across_edge): Similarly. Release memory for the elements
1289 as needed.
1290 * tree-ssa-threadupdate.c: Include tree-ssa-threadupdate.h.
1291 (dump_jump_thread_path): New function broken out from
1292 register_jump_thread.
1293 (register_jump_thread): Use dump_jump_thread_path. Change type of
1294 path vector entries. Search the path for NULL edges and dump
1295 the path if one is found. Tweak the conversion of path to 3-edge
1296 form to use the block copy type information embedded in the path.
1297
20f114a3
YR
12982013-09-25 Yvan Roux <yvan.roux@linaro.org>
1299
1300 * lra.c (update_inc_notes): Remove all REG_DEAD and REG_UNUSED notes.
1301
3936bafc
YR
13022013-09-25 Yvan Roux <yvan.roux@linaro.org>
1303 Vladimir Makarov <vmakarov@redhat.com>
1304
1305 * rtlanal.c (lsb_bitfield_op_p): New predicate for bitfield operations
1306 from the least significant bit.
1307 (strip_address_mutations): Add bitfield operations handling.
1308 (must_be_index_p): Add shifting and rotate operations handling.
1309 (set_address_base): Use must_be_base_p predicate.
4167e8d4 1310 (set_address_index): Use must_be_index_p predicate.
3936bafc 1311
b86f6e9e
AI
13122013-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
1313 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1314 Sergey Lega <sergey.s.lega@intel.com>
1315 Anna Tikhonova <anna.tikhonova@intel.com>
1316 Ilya Tocar <ilya.tocar@intel.com>
1317 Andrey Turetskiy <andrey.turetskiy@intel.com>
1318 Ilya Verbin <ilya.verbin@intel.com>
1319 Kirill Yukhin <kirill.yukhin@intel.com>
1320 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1321
1322 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1323 Use new names.
1324 (ix86_expand_vector_move_misalign): Support new unaligned load and
1325 stores and use new names.
1326 (CODE_FOR_sse2_storedqu): Rename to ...
1327 (CODE_FOR_sse2_storedquv16qi): ... this.
1328 (CODE_FOR_sse2_loaddqu): Rename to ...
1329 (CODE_FOR_sse2_loaddquv16qi): ... this.
1330 (CODE_FOR_avx_loaddqu256): Rename to ...
1331 (CODE_FOR_avx_loaddquv32qi): ... this.
1332 (CODE_FOR_avx_storedqu256): Rename to ...
1333 (CODE_FOR_avx_storedquv32qi): ... this.
1334 * config/i386/i386.md (fpint_logic): New.
1335 * config/i386/sse.md (VMOVE): Extend for AVX512.
1336 (VF): Ditto.
1337 (VF_128_256): New.
1338 (VF_512): Ditto.
1339 (VI_UNALIGNED_LOADSTORE): Ditto.
1340 (sse2_avx_avx512f): Ditto.
1341 (sse2_avx2): Extend for AVX512.
1342 (sse4_1_avx2): Ditto.
1343 (avx2_avx512f): New.
1344 (sse): Extend for AVX512.
1345 (sse2): Ditto.
1346 (sse4_1): Ditto.
1347 (avxsizesuffix): Ditto.
1348 (sseintvecmode): Ditto.
1349 (ssePSmode): Ditto.
1350 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Ditto.
1351 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Ditto.
1352 (<sse2>_loaddqu<avxsizesuffix>): Extend for AVX512 and rename to ...
1353 (<sse2_avx_avx512f>_loaddqu<mode>): ... this.
1354 (<sse2>_storedqu<avxsizesuffix>): Extend for AVX512 and rename to ...
1355 (<sse2_avx_avx512f>_storedqu<mode): ... this.
1356 (<sse>_movnt<mode>): Replace constraint "x" with "v".
1357 (STORENT_MODE): Extend for AVX512.
1358 (*absneg<mode>2): Replace constraint "x" with "v".
1359 (*mul<mode>3): Ditto.
1360 (*ieee_smin<mode>3): Ditto.
1361 (*ieee_smax<mode>3): Ditto.
1362 (avx_cmp<mode>3): Replace VF with VF_128_256.
1363 (*<sse>_maskcmp<mode>3_comm): Ditto.
1364 (<sse>_maskcmp<mode>3): Ditto.
1365 (<sse>_andnot<mode>3): Extend for AVX512.
1366 (<code><mode>3, anylogic): Replace VF with VF_128_256.
1367 (<code><mode>3, fpint_logic): New.
1368 (*<code><mode>3): Extend for AVX512.
1369 (avx512flogicsuff): New.
1370 (avx512f_<logic><mode>): Ditto.
1371 (<sse>_movmsk<ssemodesuffix><avxsizesuffix>): Replace VF with
1372 VF_128_256.
1373 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Ditto.
1374 (<sse4_1>_blendv<ssemodesuffix><avxsizesuffix>): Ditto.
1375 (<sse4_1>_dp<ssemodesuffix><avxsizesuffix>): Ditto.
1376 (avx_vtest<ssemodesuffix><avxsizesuffix>): Ditto.
1377 (<sse4_1>_round<ssemodesuffix><avxsizesuffix>): Ditto.
1378 (xop_vpermil2<mode>3): Ditto.
1379 (*avx_vpermilp<mode>): Extend for AVX512 and rename to ...
1380 (*<sse2_avx_avx512f>_vpermilp<mode>): ... this.
1381 (avx_vpermilvar<mode>3): Extend for AVX512 and rename to ...
1382 (<sse2_avx_avx512f>_vpermilvar<mode>3): ... this.
1383
4d44d03c
TT
13842013-09-25 Tom Tromey <tromey@redhat.com>
1385
1386 * Makefile.in (PARTITION_H, LTO_SYMTAB_H, COMMON_TARGET_DEF_H)
1387 (RTL_ERROR_H, TRANS_MEM_H, COVERAGE_H, DEMANGLE_H, ALIAS_H)
1388 (SCHED_INT_H, SEL_SCHED_IR_H, SEL_SCHED_DUMP_H, VALTRACK_H, DDG_H)
1389 (GGC_INTERNAL_H, DECNUM_H, BACKTRACE_H, MKDEPS_H, TREE_HASHER_H)
1390 (TREE_SSA_LIVE_H, SSAEXPAND_H, DWARF2OUT_H, SCEV_H, OMEGA_H)
1391 (TREE_DATA_REF_H, IRA_INT_H, LRA_INT_H, DBGCNT_H, DATA_STREAMER_H)
1392 (GIMPLE_STREAMER_H, TREE_STREAMER_H, STREAMER_HOOKS_H)
1393 (TREE_VECTORIZER_H, IPA_INLINE_H, GSTAB_H, LIBFUNCS_H)
1394 (GRAPHITE_HTAB_H): Remove.
1395
86aaf68d
TT
13962013-09-25 Tom Tromey <tromey@redhat.com>
1397
1398 * config/mcore/t-mcore (CROSS_FLOAT_H): Remove.
1399
c987deb8
TT
14002013-09-25 Tom Tromey <tromey@redhat.com>
1401
1402 * config/t-glibc (glibc-c.o): Use COMPILE and POSTCOMPILE.
1403
9439747e
TT
14042013-09-25 Tom Tromey <tromey@redhat.com>
1405
1406 * config/i386/t-i386 (i386.o): Remove.
1407 (i386-c.o): Use COMPILE and POSTCOMPILE.
1408
aefc31a1
TT
14092013-09-25 Tom Tromey <tromey@redhat.com>
1410
1411 * Makefile.in ($(out_object_file)): Use COMPILE and POSTCOMPILE.
1412
b6541edc
TT
14132013-09-25 Tom Tromey <tromey@redhat.com>
1414
1415 * Makefile.in (graph.o, sbitmap.o, sparseset.o, gcc-ar.o)
1416 (gcc-ranlib.o, gcc-nm.o, collect2.o, collect2-aix.o, tlink.o)
1417 (lto-wrapper.o, default-c.o, attribs.o, incpath.o, prefix.o)
1418 (gcc.o, options.o, options-save.o, version.o, gtype-desc.o)
1419 (trans-mem.o, ggc-common.o, ggc-page.o, ggc-none.o, stringpool.o)
1420 (convert.o, double-int.o, lto-compress.o, data-streamer-in.o)
1421 (data-streamer-out.o, data-streamer.o, gimple-streamer-in.o)
1422 (gimple-streamer-out.o, tree-streamer.o, tree-streamer-in.o)
1423 (tree-streamer-out.o, streamer-hooks.o, lto-cgraph.o)
1424 (lto-streamer-in.o, lto-streamer-out.o, lto-section-in.o)
1425 (lto-section-out.o, lto-opts.o, lto-streamer.o, langhooks.o)
1426 (test-dump.o, tree.o, tree-dump.o, tree-inline.o, print-tree.o)
1427 (stor-layout.o, asan.o, tsan.o, ubsan.o, tree-ssa-tail-merge.o)
1428 (tree-ssa-structalias.o, tree-ssa-uninit.o, tree-ssa.o)
1429 (tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o)
1430 (tree-outof-ssa.o, tree-ssa-dse.o, tree-ssa-forwprop.o)
1431 (tree-ssa-phiprop.o, tree-ssa-ifcombine.o, tree-ssa-phiopt.o)
1432 (tree-nrv.o, tree-ssa-copy.o, tree-ssa-propagate.o)
1433 (tree-ssa-dom.o, tree-ssa-uncprop.o, tree-ssa-threadedge.o)
1434 (tree-ssa-threadupdate.o, tree-ssanames.o, tree-phinodes.o)
1435 (domwalk.o, tree-ssa-live.o, tree-ssa-copyrename.o)
1436 (tree-ssa-pre.o, tree-ssa-sccvn.o)
1437 (gimple-ssa-strength-reduction.o, tree-vrp.o, tree-cfg.o)
1438 (tree-cfgcleanup.o, tree-tailcall.o, tree-ssa-sink.o)
1439 (tree-nested.o, tree-if-conv.o, tree-iterator.o, tree-dfa.o)
1440 (tree-ssa-operands.o, tree-eh.o, tree-ssa-loop.o)
1441 (tree-ssa-loop-unswitch.o, tree-ssa-address.o)
1442 (tree-ssa-loop-niter.o, tree-ssa-loop-ivcanon.o)
1443 (tree-ssa-loop-ch.o, tree-ssa-loop-prefetch.o, tree-predcom.o)
1444 (tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-manip.o)
1445 (tree-ssa-loop-im.o, tree-ssa-math-opts.o, tree-ssa-alias.o)
1446 (tree-ssa-reassoc.o, tree-optimize.o, gimplify.o)
1447 (gimple-iterator.o, gimple-fold.o, gimple-low.o, omp-low.o)
1448 (tree-browser.o, omega.o, tree-chrec.o, tree-scalar-evolution.o)
1449 (tree-data-ref.o, sese.o, graphite.o, graphite-blocking.o)
1450 (graphite-clast-to-gimple.o, graphite-dependences.o)
1451 (graphite-interchange.o, graphite-poly.o)
1452 (graphite-scop-detection.o, graphite-sese-to-poly.o)
1453 (graphite-optimize-isl.o, tree-vect-loop.o)
1454 (tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o)
1455 (tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o)
1456 (vtable-verify.o, tree-loop-distribution.o, tree-parloops.o)
1457 (tree-stdarg.o, tree-object-size.o, internal-fn.o, gimple.o)
1458 (gimple-pretty-print.o, tree-mudflap.o, tree-nomudflap.o)
1459 (tree-pretty-print.o, tree-diagnostic.o, fold-const.o)
1460 (diagnostic.o, diagnostic-color.o, opts.o, opts-global.o)
1461 (opts-common.o, targhooks.o, common/common-targhooks.o, input.o)
1462 (toplev.o, hwint.o, passes.o, plugin.o, main.o, host-default.o)
1463 (rtl-error.o, rtl.o, print-rtl.o, rtlanal.o, varasm.o, function.o)
1464 (statistics.o, stmt.o, except.o, expr.o, dojump.o, builtins.o)
1465 (calls.o, expmed.o, explow.o, optabs.o, dbxout.o, debug.o)
1466 (sdbout.o, dwarf2out.o, dwarf2cfi.o, dwarf2asm.o, vmsdbgout.o)
1467 (xcoffout.o, godump.o, emit-rtl.o, real.o, realmpfr.o, dfp.o)
1468 (fixed-value.o, jump.o, simplify-rtx.o, symtab.o, cgraph.o)
1469 (cgraphunit.o, cgraphclones.o, cgraphbuild.o, varpool.o, ipa.o)
1470 (ipa-profile.o, ipa-devirt.o, ipa-prop.o, ipa-ref.o, ipa-cp.o)
1471 (ipa-split.o, ipa-inline.o, ipa-inline-analysis.o)
1472 (ipa-inline-transform.o, ipa-utils.o, ipa-reference.o)
1473 (ipa-pure-const.o, coverage.o, cselib.o, cse.o, dce.o, dumpfile.o)
1474 (dse.o, fwprop.o, web.o, ree.o, cprop.o, gcse.o, store-motion.o)
1475 (resource.o, lcm.o, mode-switching.o, tree-ssa-dce.o)
1476 (tree-call-cdce.o, tree-ssa-ccp.o, tree-ssa-strlen.o, tree-sra.o)
1477 (tree-switch-conversion.o, tree-complex.o, tree-emutls.o)
1478 (tree-vect-generic.o, df-core.o, df-problems.o, df-scan.o)
1479 (regstat.o, valtrack.o, var-tracking.o, profile.o, mcf.o)
1480 (tree-profile.o, value-prof.o, loop-doloop.o, alloc-pool.o)
1481 (auto-inc-dec.o, cfg.o, cfghooks.o, cfgexpand.o, cfgrtl.o)
1482 (cfganal.o, cfgbuild.o, cfgcleanup.o, cfgloop.o, cfgloopanal.o)
1483 (graphds.o, loop-iv.o, loop-invariant.o, cfgloopmanip.o)
1484 (loop-init.o, loop-unswitch.o, loop-unroll.o, dominance.o)
1485 (et-forest.o, combine.o, reginfo.o, bitmap.o, vec.o, hash-table.o)
1486 (reload.o, reload1.o, rtlhooks.o, postreload.o, postreload-gcse.o)
1487 (caller-save.o, bt-load.o, reorg.o, alias.o, stack-ptr-mod.o)
1488 (init-regs.o, ira-build.o, ira-costs.o, ira-conflicts.o)
1489 (ira-color.o, ira-emit.o, ira-lives.o, ira.o, lra.o)
1490 (lra-assigns.o, lra-coalesce.o, lra-constraints.o)
1491 (lra-eliminations.o, lra-lives.o, lra-spills.o, regmove.o)
1492 (combine-stack-adj.o, compare-elim.o, ddg.o, modulo-sched.o)
1493 (haifa-sched.o, sched-deps.o, sched-rgn.o, sched-ebb.o)
1494 (sched-vis.o, sel-sched.o, sel-sched-dump.o, sel-sched-ir.o)
1495 (final.o, recog.o, reg-stack.o, sreal.o, predict.o, lists.o)
1496 (bb-reorder.o, tracer.o, timevar.o, regcprop.o, regrename.o)
1497 (ifcvt.o, params.o, pointer-set.o, hooks.o, pretty-print.o)
1498 (errors.o, dbgcnt.o, lower-subreg.o, target-globals.o)
1499 (hw-doloop.o, file-find.o, context.o, $(common_out_object_file))
1500 (insn-attrtab.o, insn-automata.o, insn-dfatab.o, insn-emit.o)
1501 (insn-enums.o, insn-extract.o, insn-latencytab.o, insn-modes.o)
1502 (insn-opinit.o, insn-output.o, insn-peep.o, insn-preds.o)
1503 (insn-recog.o, intl.o, cppbuiltin.o, cppdefault.o, gcov.o)
1504 (gcov-dump.o): Remove.
1505 (default-c.o): Use COMPILE and POSTCOMPILE.
1506 (CFLAGS-gcc.o): New variable.
1507 ($(common_out_object_file)): Use COMPILE and POSTCOMPILE.
1508
8c796d19
TT
15092013-09-25 Tom Tromey <tromey@redhat.com>
1510
1511 * Makefile.in (c-family/cppspec.o, c-family/c-common.o)
1512 (c-family/c-cppbuiltin.o, c-family/c-dump.o, c-family/c-format.o)
1513 (c-family/c-gimplify.o, c-family/c-lex.o, c-family/c-omp.o)
1514 (c-family/c-opts.o, c-family/c-pch.o, c-family/c-ppoutput.o)
1515 (c-family/c-pragma.o, c-family/c-pretty-print.o)
1516 (c-family/c-semantics.o, c-family/c-ada-spec.o)
1517 (c-family/array-notation-common.o, c-family/stub-objc.o)
1518 (c-family/c-ubsan.o): Remove.
1519
0a6c2227
TT
15202013-09-25 Tom Tromey <tromey@redhat.com>
1521
1522 * Makefile.in (C_TREE_H): Reference c/c-tree.h.
1523
f3bc55f0
TT
15242013-09-25 Tom Tromey <tromey@redhat.com>
1525
1526 * Makefile.in (DRIVER_DEFINES): Use $(and), not shell code,
1527 to add -DENABLE_SHARED_LIBGCC.
1528 (gcc.o): Don't use subshell.
1529
c11c795e
TT
15302013-09-25 Tom Tromey <tromey@redhat.com>
1531
1532 * Makefile.in (OUTPUT_OPTION): Define as "-o $@".
1533 * configure.ac: Don't invoke AM_PROG_CC_C_O.
1534 (NO_MINUS_C_MINUS_O, OUTPUT_OPTION): Don't subst.
1535 * configure, config.in: Rebuild.
1536
043378c3
TT
15372013-09-25 Tom Tromey <tromey@redhat.com>
1538
1539 * Makefile.in (CCDEPMODE, DEPDIR, depcomp, COMPILE.base)
1540 (COMPILE, POSTCOMPILE): New variables.
1541 (.cc.o .c.o): Use COMPILE, POSTCOMPILE.
1542 (DEPFILES): New variable.
1543 Include ".Po" files.
1544 * configure.ac: Add checks for dependency checking.
1545 * configure, aclocal.m4: Regenerate.
1546
eab34643
TT
15472013-09-25 Tom Tromey <tromey@redhat.com>
1548
1549 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add lto-wrapper.o.
7a5911d3 1550 ($(ALL_HOST_OBJS)): Move order-only dependency to end of file.
eab34643 1551
d2db5e91
TT
15522013-09-25 Tom Tromey <tromey@redhat.com>
1553
1554 * Makefile.in (generated_files): Add options.h,
1555 target-hooks-def.h, insn-opinit.h,
1556 common/common-target-hooks-def.h, pass-instances.def,
1557 c-family/c-target-hooks-def.h.
1558
af33629e
JL
15592013-09-25 Jeff Law <law@redhat.com>
1560
1561 * tree-ssa-threadedge.c (thread_across_edge): Use foo.last () rather
1562 than foo[foo.length () - 1] to access last member in a vec.
1563 * tree-ssa-threadupdate.c (register_jump_thread): Similarly.
1564
ed0d3051
RB
15652013-09-25 Richard Biener <rguenther@suse.de>
1566
1567 PR middle-end/58521
1568 * tree.c (iterative_hash_expr): Remove MEM_REF special handling.
1569
123485ca
JH
15702013-09-25 Jan Hubicka <jh@suse.cz>
1571
1572 * cgraph.c (cgraph_resolve_speculation): Use semantical equivalency
1573 test.
1574
d70b0f1f
MP
15752013-09-25 Marek Polacek <polacek@redhat.com>
1576
1577 PR sanitizer/58420
1578 * ubsan.c (ubsan_type_descriptor): Handle IDENTIFIER_NODEs
1579 when determining the type name.
1580
e3f02798
OE
15812013-09-24 Oleg Endo <olegendo@gcc.gnu.org>
1582
1583 * config/sh/sh.md: Fix formatting.
1584
7a5911d3 15852013-09-24 Xinliang David Li <davidxl@google.com>
4f17aa0b 1586
7a5911d3
UB
1587 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Check
1588 max peel iterations parameter.
4f17aa0b
XDL
1589 * param.def: New parameter.
1590 * doc/invoke.texi: Document New parameter.
1591
0498471b
CL
15922013-09-24 Christophe Lyon <christophe.lyon@linaro.org>
1593
1594 * gimple-pretty-print.c: Various whitespace tweaks.
1595 * tree-core.h: Likewise.
1596 * tree-pretty-print.c: Likewise.
1597 * tree-ssa-alias.c: Likewise.
1598 * tree-ssa-copy.c: Likewise.
1599 * tree-ssanames.c: Likewise.
1600 * tree-ssanames.h: Likewise.
1601 * tree-vrp.c: Likewise.
1602
5a8c2b57
AM
16032013-09-24 Alan Modra <amodra@gmail.com>
1604
1605 PR middle-end/57134
1606 PR middle-end/57586
7a5911d3
UB
1607 * stmt.c (expand_asm_operands): Call expand_expr with EXPAND_MEMORY
1608 for output operands that disallow regs. Don't use EXPAND_WRITE on
1609 inout operands.
5a8c2b57 1610
f40333af
RB
16112013-09-24 Richard Biener <rguenther@suse.de>
1612
1613 PR middle-end/58513
1614 * tree.c (reference_alias_ptr_type): Move ...
1615 * alias.c (reference_alias_ptr_type): ... here and implement
1616 in terms of the new reference_alias_ptr_type_1.
1617 (ref_all_alias_ptr_type_p): New helper.
1618 (get_deref_alias_set_1): Drop flag_strict_aliasing here,
1619 use ref_all_alias_ptr_type_p.
1620 (get_deref_alias_set): Add flag_strict_aliasing check here.
1621 (reference_alias_ptr_type_1): New function, split out from ...
1622 (get_alias_set): ... here.
1623 (alias_ptr_types_compatible_p): New function.
1624 * alias.h (reference_alias_ptr_type): Declare.
1625 (alias_ptr_types_compatible_p): Likewise.
1626 * tree.h (reference_alias_ptr_type): Remove.
1627 * fold-const.c (operand_equal_p): Use alias_ptr_types_compatible_p
1628 to compare MEM_REF alias types.
1629
583e8bf5
RB
16302013-09-24 Richard Biener <rguenther@suse.de>
1631
1632 * tree-vrp.c (vrp_finalize): Check for SSA name presence.
1633
5e8586d7
MM
16342013-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
1635
19c3e797
MM
1636 * config/rs6000/rs6000.c (rs6000_vector_reload): Delete, combine
1637 reload helper function arrays into a single array reg_addr.
1638 (reload_fpr_gpr): Likewise.
1639 (reload_gpr_vsx): Likewise.
1640 (reload_vsx_gpr): Likewise.
1641 (struct rs6000_reg_addr): Likewise.
1642 (reg_addr): Likewise.
1643 (rs6000_debug_reg_global): Change rs6000_vector_reload,
1644 reload_fpr_gpr, reload_gpr_vsx, reload_vsx_gpr uses to reg_addr.
1645 (rs6000_init_hard_regno_mode_ok): Likewise.
1646 (rs6000_secondary_reload_direct_move): Likewise.
1647 (rs6000_secondary_reload): Likewise.
1648
5e8586d7
MM
1649 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add new
1650 constraints: wu, ww, and wy. Repurpose wv constraint added during
1651 power8 changes. Put wg constraint in alphabetical order.
1652
1653 * config/rs6000/rs6000.opt (-mvsx-scalar-float): New debug switch
1654 for future work to add ISA 2.07 VSX single precision support.
1655 (-mvsx-scalar-double): Change default from -1 to 1, update
1656 documentation comment.
1657 (-mvsx-scalar-memory): Rename debug switch to -mupper-regs-df.
1658 (-mupper-regs-df): New debug switch to control whether DF values
1659 can go in the traditional Altivec registers.
1660 (-mupper-regs-sf): New debug switch to control whether SF values
1661 can go in the traditional Altivec registers.
1662
1663 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print wu, ww,
1664 and wy constraints.
1665 (rs6000_init_hard_regno_mode_ok): Use ssize_t instead of int for
1666 loop variables. Rename -mvsx-scalar-memory to -mupper-regs-df.
1667 Add new constraints, wu/ww/wy. Repurpose wv constraint.
1668 (rs6000_debug_legitimate_address_p): Print if we are running
1669 before, during, or after reload.
1670 (rs6000_secondary_reload): Add a comment.
1671 (rs6000_opt_masks): Add -mupper-regs-df, -mupper-regs-sf.
1672
1673 * config/rs6000/constraints.md (wa constraint): Sort w<x>
1674 constraints. Update documentation string.
1675 (wd constraint): Likewise.
1676 (wf constraint): Likewise.
1677 (wg constraint): Likewise.
1678 (wn constraint): Likewise.
1679 (ws constraint): Likewise.
1680 (wt constraint): Likewise.
1681 (wx constraint): Likewise.
1682 (wz constraint): Likewise.
1683 (wu constraint): New constraint for ISA 2.07 SFmode scalar
1684 instructions.
1685 (ww constraint): Likewise.
1686 (wy constraint): Likewise.
1687 (wv constraint): Repurpose ISA 2.07 constraint that we not used in
1688 the previous submissions.
1689 * doc/md.texi (PowerPC and IBM RS6000): Likewise.
1690
e5af9ddd
RS
16912013-09-23 Richard Sandiford <rdsandiford@googlemail.com>
1692
1693 * doc/rtl.texi (REG_NOTES): Say that int_list can also be used.
1694 (REG_BR_PROB): Say that the probability is stored in an int_list.
1695 * reg-notes.def: Update commentary to mention INT_LIST.
1696 * rtl.def (EXPR_LIST, INSN_LIST): Capitalize comments.
1697 (INT_LIST): New rtx.
1698 * rtl.h (add_int_reg_note, add_shallow_copy_of_reg_note): Declare.
1699 * rtlanal.c (int_reg_note_p): New function.
1700 (alloc_reg_note): Assert that the note does not have an int argument.
1701 (add_int_reg_note, add_shallow_copy_of_reg_note): New functions.
1702 * combine.c (distribute_notes): Use add_shallow_copy_of_rtx.
1703 * cse.c (cse_process_notes_1): Expect REG_EQUAL to be an EXPR_LIST
1704 rather than an INSN_LIST. Handle INT_LIST.
1705 * ifcvt.c (cond_exec_process_insns): Take the probability as an int
1706 rather than an rtx. Use gen_rtx_INT_LIST to create a REG_BR_PROB note.
1707 (cond_exec_process_if_block): Use XINT to extract REG_BR_PROB values.
1708 Manipulate them as ints rather than rtxes.
1709 * reg-stack.c (subst_asm_stack_regs): Only handle EXPR_LIST notes.
1710 * regmove.c (copy_src_to_dest): Likewise.
1711 * sched-vis.c (print_insn_with_notes): Handle INT_LIST.
1712
1713 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Sink pat assignment
1714 into the cases that need it.
1715 * config/arm/arm.c (arm_unwind_emit): Likewise.
1716
1717 * asan.c (asan_clear_shadow): Use add_int_reg_note for REG_BR_PROB.
1718 * emit-rtl.c (try_split, emit_copy_of_insn_after): Likewise.
1719 * loop-doloop.c (add_test, doloop_modify): Likewise.
1720 * loop-unswitch.c (compare_and_jump_seq): Likewise.
1721 * optabs.c (emit_cmp_and_jump_insn_1): Likewise.
1722 * predict.c (combine_predictions_for_insn): Likewise.
1723 * print-rtl.c (print_rtx): Handle INT_LIST.
1724 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Likewise.
1725 * config/alpha/alpha.c (emit_unlikely_jump): Likewise.
1726 * config/arm/arm.c (emit_unlikely_jump): Likewise.
1727 * config/i386/i386.c (ix86_expand_split_stack_prologue): Likewise.
1728 (ix86_split_fp_branch, predict_jump): Likewise.
1729 * config/rs6000/rs6000.c (emit_unlikely_jump): Likewise.
1730 * config/sh/sh.c (expand_cbranchsi4): Likewise.
1731 * config/spu/spu.c (ea_load_store_inline): Likewise.
1732
1733 * cfgbuild.c (compute_outgoing_frequencies): Use XINT to access the
1734 value of a REG_BR_PROB note.
1735 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
1736 (update_br_prob_note, rtl_verify_edges, purge_dead_edges): Likewise.
1737 * emit-rtl.c (try_split): Likewise.
1738 * predict.c (br_prob_note_reliable_p): Likewise.
1739 (invert_br_probabilities, combine_predictions_for_insn): Likewise.
1740 * reorg.c (mostly_true_jump): Likewise.
1741 * config/bfin/bfin.c (cbranch_predicted_taken_p): Likewise.
1742 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1743 * config/i386/i386.c (ix86_print_operand): Likewise.
1744 * config/ia64/ia64.c (ia64_print_operand): Likewise.
1745 * config/mmix/mmix.c (mmix_print_operand): Likewise.
1746 * config/rs6000/rs6000.c (output_cbranch): Likewise.
1747 * config/s390/s390.c (s390_expand_tbegin): Likewise.
1748 * config/sh/sh.c (sh_print_operand, sh_adjust_cost): Likewise.
1749 * config/sparc/sparc.c (output_cbranch): Likewise.
1750 * config/spu/spu.c (get_branch_target): Likewise.
1751 * config/tilegx/tilegx.c (cbranch_predicted_p): Likewise.
1752 * config/tilepro/tilepro.c (cbranch_predicted_p): Likewise.
1753
450ad0cd
JH
17542013-09-23 Jan Hubicka <jh@suse.cz>
1755
1756 * ipa-cp.c (ipa_get_indirect_edge_target_1): Add sanity check
1757 for ipa-devirt.
1758 * ipa-utils.h (possible_polymorphic_call_target_p): New function.
1759 * ipa-devirt.c (possible_polymorphic_call_target_p): Be tolerant
1760 of external calls
1761 * gimple-fold.c: Include ipa-utils.h and gimple-pretty-print.h
1762 (gimple_fold_call): Dump inconsistent devirtualizations; add
1763 sanity check for type based devirtualizations.
1764 * ipa-prop.c: Include ipa-utils.h
1765 (ipa_intraprocedural_devirtualization): Add sanity check.
1766 (try_make_edge_direct_virtual_call): Likewise.
1767
cefce769
EB
17682013-09-23 Eric Botcazou <ebotcazou@adacore.com>
1769
1770 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Recurse on copy
1771 assignment statements.
1772
a895a2b8
KV
17732013-09-23 Kugan Vivekanandarajah <kuganv@linaro.org>
1774
1775 * gimple-pretty-print.c (dump_ssaname_info): New function.
1776 (dump_gimple_phi): Call it.
1777 (pp_gimple_stmt_1): Likewise.
1778 * tree-core.h (tree_ssa_name): New union ssa_name_info_type field.
1779 (range_info_def): Declare.
1780 * tree-pretty-print.c (pp_double_int): New function.
1781 (dump_generic_node): Call it.
1782 * tree-pretty-print.h (pp_double_int): Declare.
1783 * tree-ssa-alias.c (dump_alias_info): Check pointer type.
1784 * tree-ssanames.h (range_info_def): New structure.
1785 (value_range_type): Move definition here.
1786 (set_range_info, value_range_type, duplicate_ssa_name_range_info):
1787 Declare.
1788 * tree-ssanames.c (make_ssa_name_fn): Check pointer type at
1789 initialization.
1790 (set_range_info): New function.
1791 (get_range_info): Likewise.
1792 (duplicate_ssa_name_range_info): Likewise.
1793 (duplicate_ssa_name_fn): Check pointer type and call
1794 duplicate_ssa_name_range_info.
1795 * tree-ssa-copy.c (fini_copy_prop): Likewise.
1796 * tree-vrp.c (value_range_type): Remove definition, now in
1797 tree-ssanames.h.
7a5911d3 1798 (vrp_finalize): Call set_range_info to update value range of SSA_NAMEs.
a895a2b8
KV
1799 * tree.h (SSA_NAME_PTR_INFO): Macro changed to access via union.
1800 (SSA_NAME_RANGE_INFO): New macro.
1801
984af6ac
RB
18022013-09-23 Richard Biener <rguenther@suse.de>
1803
1804 PR tree-optimization/58464
1805 * tree-ssa-pre.c (phi_trans_lookup): Remove.
7a5911d3 1806 (phi_trans_add): Change to add conditionally on being not present.
984af6ac
RB
1807 (phi_translate_1): Remove recursion detection here.
1808 (phi_translate): Pre-seed the cache with NULL to catch
1809 recursion here in a more generic way.
1810 (bitmap_find_leader): Adjust comment.
1811 (get_representative_for): Dump value-numbers.
1812 (create_expression_by_pieces): Likewise.
1813 (insert_into_preds_of_block): Likewise.
1814
0e26cf79
CB
18152013-09-23 Christian Bruel <christian.bruel@st.com>
1816
1817 PR target/58475
1818 * config/sh/sh.md (movsf_ie): Allow fpul_operand.
1819 * config/sh/predicate.md (arith_reg_operand): Disallow FPUL_REG.
1820
4d0e5b54
JG
18212013-09-23 James Greenhalgh <james.greenhalgh@arm.com>
1822
1823 Revert r202780:
1824 2013-09-20 Renlin Li <renlin.li@arm.com>
1825
7a5911d3
UB
1826 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
1827 plus_constant.
4d0e5b54
JG
1828 (aarch64_expand_epilogue): Likewise.
1829 (aarch64_legitimize_reload_address): Likewise.
1830
ca081cc8
EB
18312013-09-22 Eric Botcazou <ebotcazou@adacore.com>
1832
1833 * gimplify.c (gimplify_asm_expr): Reset the TREE_CHAIN of clobbers to
1834 NULL_TREE before pushing them onto the vector. Likewise for labels.
1835
8fc53a5f
EB
18362013-09-21 Eric Botcazou <ebotcazou@adacore.com>
1837
1838 * config/ia64/predicates.md (ia64_cbranch_operator): Accept unordered
1839 comparison operators when -fno-trapping-math is in effect.
1840 * config/ia64/ia64.c (ia64_expand_compare): Add support for unordered
1841 comparison operators in TFmode and assert that unsupported operators
1842 cannot reach here.
1843 (ia64_print_operand): Likewise.
1844
18452013-09-21 Jan Hubicka <jh@suse.cz>
0ca6c49f
JH
1846
1847 * x86-tune.def (partial_reg_stall): Disable for CoreI7 and newer.
1848 (sse_typeless_stores): Enable for core
1849 (sse_load0_by_pxor): Likewise.
1850 (four_jump_limit): Disable for core.
1851 (pad_returns): Likewise.
1852 (avoid_vector_decode): Likewise.
1853 (fuse_cmp_and_branch): Enable for cores.
1854 * i386.c (x86_accumulate_outgoing_args): Disable for cores.
1855
578e51e6
JDA
18562013-09-20 John David Anglin <danglin@gcc.gnu.org>
1857
96ce28a3
JDA
1858 PR middle-end/56791
1859 * config/pa/pa.c (pa_option_override): Disable auto increment and
1860 decrement instructions until reload is completed.
1861
578e51e6
JDA
1862 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Define
1863 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2,
1864 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
1865
6fcd3a13 18662013-09-20 DJ Delorie <dj@redhat.com>
7a5911d3 1867 Nick Clifton <nickc@redhat.com>
6fcd3a13
DD
1868
1869 * config/rl78/rl78.c: Various whitespace and comment tweaks.
1870 (need_to_save): Save bank 0 on interrupts.
1871 (characterize_address): Strip far address wrappers.
1872 (rl78_as_legitimate_address): Likewise.
1873 (transcode_memory_rtx): Likewise.
1874 (rl78_peep_movhi_p): Disable this peephole after devirt.
1875 (rl78_propogate_register_origins): Forget all origins when a
1876 CLOBBER is seen.
1877 * config/rl78/rl78-virt.md: Various whitespace tweaks.
1878 * config/rl78/rl78-real.md: Various whitespace tweaks. Additional
1879 peephole2's.
1880 * config/rl78/rl78.md (sel_rb): Disable for G10 just in case.
1881 * config/rl78/rl78-expand.md (movqi): Check for subregs of consts.
1882 * config/rl78/rl78.h (LINK_SPEC): Pass -gc-sections unless
1883 relocating.
1884 * config/rl78/constraints.md: Various whitespace and paren tweaks.
1885
4a08db33
JDA
18862013-09-20 John David Anglin <danglin@gcc.gnu.org>
1887
1888 * config/pa/pa.md: In "scc" insn patterns, change output template to
1889 handle const0_rtx in reg_or_0_operand operands.
1890
7691132c
JBG
18912013-09-20 Martin Husemann <martin@NetBSD.org>
1892
1893 PR target/56875
1894 * config/vax/vax.c (vax_output_int_move): Use D format specifier.
1895 * config/vax/vax.md (ashldi3, <unnamed>): Ditto.
1896
a3cc13cc
RB
18972013-09-20 Richard Biener <rguenther@suse.de>
1898
1899 PR middle-end/58484
1900 * tree-scalar-evolution.c (struct scev_info_str): Shrink by
1901 remembering SSA name version and block index.
1902 (new_scev_info_str): Adjust.
1903 (hash_scev_info): Likewise. Also hash the block index.
1904 (eq_scev_info): Adjust.
1905 (find_var_scev_info): Likewise.
1906 (struct instantiate_cache_entry): Remove.
1907 (struct instantiate_cache_type): Use a htab to map name, block
1908 to chrec.
1909 (instantiate_cache_type::~instantiate_cache_type): Adjust.
1910 (get_instantiated_value_entry): Likewise.
1911 (hash_idx_scev_info, eq_idx_scev_info): New functions.
1912 (instantiate_scev_name): Adjust.
1913
925f3871
JL
19142013-09-20 Jeff Law <law@redhat.com>
1915
1916 * tree-ssa-dom.c (record_temporary_equivalences): Add comment.
1917
2888c331
YZ
19182013-09-20 Yufeng Zhang <yufeng.zhang@arm.com>
1919
1920 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
1921 Call aarch64_simd_expand_args to update op[argc].
1922
0a811e96
BS
19232013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
1924
7a5911d3
UB
1925 * plugin.c (parse_plugin_arg_opt): Accept equal sign inside
1926 plugin argument.
0a811e96 1927
0078f462
BS
19282013-09-20 Basile Starynkevitch <basile@starynkevitch.net>
1929
7a5911d3
UB
1930 * gengtype.c (file_rules): Added rule for *.cc files.
1931 (get_output_file_with_visibility): Give fatal message when no
1932 rules found.
0078f462 1933
d20e48b0
RL
19342013-09-20 Renlin Li <renlin.li@arm.com>
1935
1936 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use plus_constant.
1937 (aarch64_expand_epilogue): Likewise.
1938 (aarch64_legitimize_reload_address): Likewise.
1939
59bb1544
BE
19402013-09-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1941
1942 PR middle-end/57748
1943 * expr.c (expand_assignment): Remove misalignp code path.
1944
a5430019
MP
19452013-09-20 Marek Polacek <polacek@redhat.com>
1946
1947 PR sanitizer/58413
1948 * ubsan.c (get_ubsan_type_info_for_type): Use TYPE_SIZE instead of
1949 TYPE_PRECISION. Add asserts.
1950
9fed7f3a
RB
19512013-09-20 Richard Biener <rguenther@suse.de>
1952
1953 PR tree-optimization/58453
1954 * tree-loop-distribution.c (distribute_loop): Apply the cost
1955 model for -ftree-loop-distribute-patterns, too.
1956
a820c834
RB
19572013-09-20 Richard Biener <rguenther@suse.de>
1958
1959 PR middle-end/58473
1960 * tree-chrec.h (build_polynomial_chrec): Use gcc_checking_assert,
1961 make type comparison less strict.
1962
3cbe17f7
AM
19632013-09-20 Alan Modra <amodra@gmail.com>
1964
1965 * configure: Regenerate.
1966 * aclocal.m4: Regenerate.
1967
87fccdbb
MP
19682013-09-20 Marek Polacek <polacek@redhat.com>
1969
1970 PR other/58467
1971 * doc/extend.texi: Document that attribute used is meant to be used
1972 on variables with static storage duration.
1973
8928eff3
JJ
19742013-09-19 Jakub Jelinek <jakub@redhat.com>
1975
1976 PR tree-optimization/58472
1977 * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
1978 simd_lane_access set inv_p = false.
1979 * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
1980 the simduid magic VAR_DECL.
1981
b7b28c53
JH
19822013-09-19 Jan Hubicka <jh@suse.cz>
1983
1984 * i386.c (generic_memcpy, generic_memset): Fix 32bit template.
1985
83ae86f5
JL
19862013-09-17 Jeff Law <law@redhat.com>
1987
1988 * tree-ssa-dom.c (record_temporary_equivalences): New function
1989 split out of dom_opt_dom_walker::after_dom_children.
1990 (dom_opt_dom_walker::thread_across_edge): Move common code
1991 in here from dom_opt_dom_walker::after_dom_children.
1992 (dom_opt_dom_walker::after_dom_children): Corresponding simplifictions.
1993
9d532162
JH
19942013-09-19 Jan Hubicka <jh@suse.cz>
1995
1996 * i386.h (TARGET_GENERIC32, TARGET_GENERIC64): Remove.
1997 (TARGET_GENERIC): Use PROCESOR_GENERIC
1998 (enum processor_type): Unify generic32 and 64.
1999 * i386.md (cpu): Likewise.
2000 * x86-tune.def (use_leave): Enable for generic32.
2001 (avoid_vector_decode, slow_imul_imm32_mem, slow_imul_imm8): Likewise.
2002 * athlon.md: Change generic64 to generic in all occurences.
2003 * i386-c.c (ix86_target_macros_internal): Unify generic64 and 32.
2004 (ix86_target_macros_internal): Likewise.
2005 * driver-i386.c (host_detect_local_cpu): Likewise.
7a5911d3
UB
2006 * i386.c (generic64_memcpy, generic64_memset, generic64_cost): Rename
2007 to ..
9d532162
JH
2008 (generic_memcpy, generic_memset, generic_cost): This one.
2009 (generic32_memcpy, generic32_memset, generic32_cost): Remove.
2010 (m_GENERIC32, m_GENERIC64): Remove.
2011 (m_GENERIC): Turn into one flag.
2012 (processor_target): Unify generic tunnings.
2013 (ix86_option_override_internal): Replace generic32/64 by generic.
2014 (ix86_issue_rate): Likewise.
2015 (ix86_adjust_cost): Likewise.
2016
188c7d00
JH
20172013-09-19 Jan Hubicka <jh@suse.cz>
2018
2019 * cgraph.c (cgraph_create_edge_1): Avoid uninitialized read
2020 of speculative flag.
2021
4befd127
JJ
20222013-09-19 Jakub Jelinek <jakub@redhat.com>
2023
2024 * omp-low.c (expand_omp_sections): Always pass len - 1 to
2025 GOMP_sections_start, even if !exit_reachable.
2026
8a26ad39
VM
20272013-09-18 Vladimir Makarov <vmakarov@redhat.com>
2028
2029 * lra-constraints.c (need_for_all_save_p): Use macro
2030 HARD_REGNO_CALL_PART_CLOBBERED.
2031 * lra-lives.c (check_pseudos_live_through_calls): Use the macro to
2032 set up pseudo conflict hard regs.
2033
09487185
MM
20342013-09-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2035
2036 PR target/58452
2037 * config/rs6000/paired.md (movmisalignv2sf): Fix to allow memory
2038 operands.
2039
080cbf9e
VM
20402013-09-18 Vladimir Makarov <vmakarov@redhat.com>
2041
2042 PR rtl-optimization/58438
2043 * lra.c (lra): Clear lra_optional_reload_pseudos in upper loop.
2044 * lra-constraints.c (undo_optional_reloads): Keep optional reloads
2045 from previous subpasses.
2046
a0f70fcb
RE
20472013-09-18 Richard Earnshaw <rearnsha@arm.com>
2048
2049 * arm.c (arm_get_frame_offsets): Validate architecture supports
2050 LDRD/STRD before accepting the tuning preference.
2051 (arm_expand_prologue): Likewise.
2052 (arm_expand_epilogue): Likewise.
2053
0547c9b6
RB
20542013-09-18 Richard Biener <rguenther@suse.de>
2055
2056 PR tree-optimization/58417
2057 * tree-chrec.c (chrec_fold_plus_1): Assert that we do not
2058 have chrecs with symbols defined in the loop as operands.
2059 (chrec_fold_multiply): Likewise.
2060 * tree-scalar-evolution.c (interpret_rhs_expr): Instantiate
2061 parameters before folding binary operations.
2062 (struct instantiate_cache_entry_hasher): Remove.
2063 (struct instantiate_cache_type): Use a pointer-map.
2064 (instantiate_cache_type::instantiate_cache_type): New function.
2065 (instantiate_cache_type::get): Likewise.
2066 (instantiate_cache_type::set): Likewise.
2067 (instantiate_cache_type::~instantiate_cache_type): Adjust.
2068 (get_instantiated_value_entry): Likewise.
2069 (global_cache): New global.
2070 (instantiate_scev_r, instantiate_scev_poly, instantiate_scev_binary,
2071 instantiate_array_ref, instantiate_scev_convert, instantiate_scev_3,
2072 instantiate_scev_2, instantiate_scev_1): Do not pass along cache.
2073 (instantiate_scev_name): Adjust.
2074 (instantiate_scev): Construct global instead of local cache.
2075 (resolve_mixers): Likewise.
2076
309dc1aa
DM
20772013-09-18 Daniel Morris <danielm@ecoscentric.com>
2078 Paolo Carlini <paolo.carlini@oracle.com>
2079
2080 PR c++/58458
2081 * doc/implement-cxx.texi: Fix references to the C++ standards.
2082
995a1b4a
JJ
20832013-09-18 Jakub Jelinek <jakub@redhat.com>
2084
2085 * omp-low.c (copy_var_decl): Copy DECL_ATTRIBUTES.
2086 * tree-vect-data-refs.c (vect_analyze_data_refs): For
2087 simd_lane_access drs, update also DR_ALIGNED_TO.
2088
ce6923c5
MP
20892013-09-18 Marek Polacek <polacek@redhat.com>
2090
2091 PR sanitizer/58411
2092 * doc/extend.texi: Document no_sanitize_undefined attribute.
2093 * builtins.c (fold_builtin_0): Don't sanitize function if it has the
2094 no_sanitize_undefined attribute.
2095
d30d00a2
NC
20962013-09-18 Nick Clifton <nickc@redhat.com>
2097
2098 * config/msp430/msp430.h (ASM_SPEC): Pass -md on to the assembler.
2099 (ASM_DECLARE_FUNCTION_NAME): Define.
2100
4d9192b5
TS
21012013-09-17 Trevor Saunders <tsaunders@mozilla.com>
2102
2103 * compare-elim.c (find_comparison_dom_walker): New class
2104 (find_comparisons_in_bb): Rename to
2105 find_comparison_dom_walker::before_dom_children
2106 (find_comparisons): Adjust
2107 * domwalk.c (walk_dominator_tree): Rename to dom_walker::walk, and
2108 adjust.
2109 (init_walk_dominator_tree, fini_walk_dominator_tree): Remove
2110 * domwalk.h (dom_walk_data): Convert it To a class dom_walker.
2111 (init_walk_dominator_tree): Remove declaration.
2112 (fini_walk_dominator_tree): Remove declaration.
2113 * fwprop.c (single_def_use_dom_walker): New class
2114 (single_def_use_enter_block): Convert to
2115 single_def_use_dom_walker::before_dom_children.
2116 (single_def_use_leave_block): Convert to
2117 single_def_use_dom_walker::after_dom_children.
2118 (build_single_def_use_links): Adjust.
2119 * gimple-ssa-strength-reduction.c (find_candidates_dom_walker): New
2120 class.
2121 (find_candidates_in_block): Convert to
2122 find_candidates_dom_walker::before_dom_children.
2123 (execute_strength_reduction): Adjust.
2124 * graphite-sese-to-poly.c (struct bsc, build_sese_conditions): Remove.
2125 (sese_dom_walker): New class.
2126 (sese_dom_walker::sese_dom_walker): New constructor.
2127 (sese_dom_walker::~sese_dom_walker): New destructor.
2128 (build_sese_conditions_before): Convert to
2129 sese_dom_walker::before_dom_children.
2130 (build_sese_conditions_after): Convert to
2131 sese_dom_walker::after_dom_children.
2132 (build_poly_scop): Adjust
2133 * tree-into-ssa.c (rewrite_dom_walker): New class
2134 (rewrite_enter_block): Convert to
2135 rewrite_dom_walker::before_dom_children.
2136 (rewrite_leave_block): Convert to
2137 rewrite_dom_walker::after_dom_children.
2138 (rewrite_update_dom_walker): New class.
2139 (rewrite_update_enter_block): Convert to
2140 rewrite_update_dom_walker::before_dom_children.
2141 (rewrite_update_leave_block): Convert to
2142 rewrite_update_dom_walker::after_dom_children.
2143 (rewrite_blocks, rewrite_into_ssa): Adjust.
2144 (mark_def_dom_walker): New class.
2145 (mark_def_dom_walker::mark_def_dom_walker): New constructor.
2146 (mark_def_dom_walker::~mark_def_dom_walker): New destructor.
2147 (mark_def_sites_blocks): Convert to
2148 mark_def_dom_walker::before_dom_children.
2149 (mark_def_site_blocks): Remove.
2150 * tree-ssa-dom.c (dom_opt_dom_walker): New class.
2151 (tree_ssa_dominator_optimize): Adjust.
2152 (dom_thread_across_edge): Convert to method
2153 dom_opt_dom_walker::thread_across_edge.
2154 (dom_opt_enter_block): Convert to member function
2155 dom_opt_dom_walker::before_dom_children.
2156 (dom_opt_leave_block): Convert to member function
2157 dom_opt_dom_walker::after_dom_children.
2158 * tree-ssa-dse.c (dse_dom_walker): New class.
2159 (dse_enter_block): Convert to member function
2160 dse_dom_walker::before_dom_children.
2161 (tree_ssa_dse): Adjust.
2162 * tree-ssa-loop-im.c (invariantness_dom_walker): New class.
2163 (determine_invariantness_stmt): Convert to method
2164 invariantness_dom_walker::before_dom_children.
2165 (determine_invariantness): Remove
2166 (move_computations_dom_walker): New class.
2167 (move_computations_stmt): Convert to method
2168 move_computations_dom_walker::before_dom_children.
2169 (move_computations, tree_ssa_lim): Adjust.
2170 * tree-ssa-phiopt.c (nontrapping_dom_walker): new class
2171 (nt_init_block): Make method
2172 notrappping_dom_walker::before_dom_children.
2173 (nt_fini_block): Make
2174 method nontrapping_dom_walker::after_dom_children.
2175 (get_non_trapping): Adjust.
2176 * tree-ssa-pre.c (eliminate_dom_walker): New class.
2177 (eliminate_bb): Make method eliminate_dom_walker::before_dom_children.
2178 (eliminate_leave_block): Make method.
2179 eliminate_dom_walker::after_dom_children.
2180 (eliminate): Adjust
2181 * tree-ssa-strlen.c (strlen_dom_walker): New class.
2182 (strlen_enter_block): Make method
2183 strlen_dom_walker::before_dom_children.
2184 (strlen_leave_block): Make
2185 method strlen_dom_walker::after_dom_children.
2186 (tree_ssa_strlen): Adjust.
2187 * tree-ssa-uncprop.c (uncprop_dom_walker): New class.
2188 (tree_ssa_uncprop): Adjust.
2189 (uncprop_leave_block): Make method
2190 uncprop_dom_walker::after_dom_children.
2191 (uncprop_leave_block): Make method
2192 uncprop_dom_walker::before_dom_children.
2193
3b3cc26b
BC
21942013-09-18 Bin Cheng <bin.cheng@arm.com>
2195
7a5911d3
UB
2196 * config/arm/arm.c (thumb1_reorg): Search for flag setting insn before
2197 branch in same basic block. Check both src and dest of the move insn.
3b3cc26b 2198
b5ba3a9b
NC
21992013-09-17 Nick Clifton <nickc@redhat.com>
2200
2201 * config/rl78/rl78-real.md (bf): New pattern.
2202 (bt): New pattern.
2203 * config/rl78/rl78.c (rl78_print_operand_1): Handle %B.
2204 (rl78_print_operand): Do not put a # before a %B.
2205 * config/rl78/rl78.opt: Tweak doc strings.
2206
09d5094b
DD
22072013-09-17 DJ Delorie <dj@redhat.com>
2208
2209 * config/rl78/constraints.md (Wcv): Allow up to $r31.
2210 * config/rl78/rl78.c (rl78_asm_file_start: Likewise.
2211 (rl78_option_override): Likewise, if -mallregs.
2212 (is_virtual_register): Likewise.
2213 * config/rl78/rl78.h (reg_class): Extend VREGS to $r31.
2214 (REGNO_OK_FOR_BASE_P): Likewise.
2215 * config/rl78/rl78.opt (-mallregs): New.
2216
2ba1dca1
NC
22172013-09-17 Nick Clifton <nickc@redhat.com>
2218
2219 * config/rl78/rl78.c (need_to_save): Change return type to bool.
2220 For interrupt functions: save all call clobbered registers if the
2221 interrupt handler is not a leaf function.
2222 (rl78_expand_prologue): Always recompute the frame information.
2223 For interrupt functions: only select bank 0 if one of the bank 0
2224 registers is going to be psuhed.
2225
2e7c3f21
DD
22262013-09-17 DJ Delorie <dj@redhat.com>
2227
2228 * config/rl78/constraints.md: For each W* constraint, rename to C*
2229 and create a W* constraint that checks for an optional ES: prefix
2230 pattern also.
2231 * config/rl78/rl78.md (UNS_ES_ADDR): New.
2232 (es_addr): New. Used to wrap far addresses.
2233 * config/rl78/rl78-protos.h (rl78_es_addr): New.
2234 (rl78_es_base): New.
2235 * config/rl78/rl78.c (rl78_as_legitimate_address): Accept "unspec"
2236 wrapped far addresses.
2237 (rl78_print_operand_1): Unwrap far addresses before processing.
2238 (rl78_lo16): Wrap far addresses in unspecs.
2239 (rl78_es_addr): New.
2240 (rl78_es_base): New.
2241 (insn_ok_now): Check for not-yet-wrapped far addresses.
2242 (transcode_memory_rtx): Properly re-wrap far addresses.
2243
5c26a69a
SH
22442013-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
2245
2246 * config/sparc/t-rtems: Add leon3 multilibs.
2247
181f5f3e
CH
22482013-09-17 Cong Hou <congh@google.com>
2249
2250 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Fix a bug
2251 when checking the dot production pattern. The type of rhs operand
2252 of multiply is now checked correctly.
2253
8d34e421
JL
22542013-09-17 Jeff Law <law@redhat.com>
2255
2256 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
2257 edge implied equivalences into successor phis.
2258 * tree-ssa-threadupdate.c (phi_args_equal_on_edges): Moved into
2259 here from tree-ssa-threadedge.c.
2260 (mark_threaded_blocks): When threading through a joiner, if both
2261 successors of the joiner's clone reach the same block, verify the
2262 PHI arguments are equal. If not, cancel the jump threading request.
2263 * tree-ssa-threadedge.c (phi_args_equal_on_edges): Moved into
2264 tree-ssa-threadupdate.c
2265 (thread_across_edge): Don't check PHI argument equality when
2266 threading through joiner block here.
7a5911d3 2267
c152901f
AM
22682013-09-17 Andrew MacLeod <amacleod@redhat.com>
2269
2270 * tree-flow.h (ssa_undefined_value_p): Remove prototype.
2271 * tree-ssa.c (ssa_undefined_value_p): Move pass independent parts here.
7a5911d3
UB
2272 (warn_uninit, warn_uninitialized_vars,
2273 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
2274 Move to tree-ssa-uninit.c.
78cedfb1 2275 * tree-ssa-uninit.c (ssa_undefined_value_p): Move to tree-ssa.c.
7a5911d3 2276 (has_undefined_value_p): New. Pass dependant parts of
c152901f
AM
2277 ssa_undefined_value_p.
2278 (uninit_undefined_value_p): Use has_undefined_value_p.
7a5911d3
UB
2279 (warn_uninit, warn_uninitialized_vars,
2280 execute_early_warn_uninitialized, make_pass_early_warn_uninitialized):
2281 Move from tree-ssa.c.
2282 * tree-ssa.h: Adjust prototypes.
c152901f 2283
b631d45a
JH
22842013-09-17 Jan Hubicka <jh@suse.cz>
2285
2286 PR middle-end/58332
2287 * cif-code.def (FUNCTION_NOT_OPTIMIZED): New CIF code.
2288 * ipa-inline.c (can_inline_edge_p): Do not downgrade
2289 FUNCTION_NOT_OPTIMIZED.
2290 * ipa-inline-analysis.c (compute_inline_parameters): Function
2291 not optimized is not inlinable unless it is alwaysinline.
2292 (inline_analyze_function): Force calls in not optimized
2293 function not inlinable.
2294
5b79657a
JH
22952013-09-17 Jan Hubicka <jh@suse.cz>
2296
2297 PR middle-end/58329
2298 * ipa-devirt.c (ipa_devirt): Be ready for symtab_nonoverwritable_alias
2299 to return NULL.
2300 * ipa.c (function_and_variable_visibility): Likewise.
2301 * ipa-profile.c (ipa_profile): Likewise.
2302
27442c24
BE
23032013-09-17 Bernd Edlinger <bernd.edlinger@hotmail.de>
2304
2305 PR ipa/58398
2306 * cgraph.c (cgraph_function_body_availability): Check for ifunc
2307 attribute, and don't inline the resolver in this case.
2308
753b9bc3
TJ
23092013-09-17 Teresa Johnson <tejohnson@google.com>
2310
2311 * coverage.c (get_coverage_counts): Add missing newline.
2312
e3d3cfb4
KT
23132013-09-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2314
2315 PR tree-optimization/58088
2316 * fold-const.c (mask_with_trailing_zeros): New function.
2317 (fold_binary_loc): Make sure we don't recurse infinitely
2318 when the X in (X & C1) | C2 is a tree of the form (Y * K1) & K2.
2319 Use mask_with_trailing_zeros where appropriate.
2320
9a0ac98f
YR
23212013-09-17 Yuri Rumyantsev <ysrumyan@gmail.com>
2322
2323 * config/i386/i386.c (distance_agu_use_in_bb) : Proper initialization
2324 of 'prev' var to get better distance estimation.
2325
78bbd765
EB
23262013-09-17 Eric Botcazou <ebotcazou@adacore.com>
2327
2328 * tree-inline.h (struct copy_body_data): Add transform_parameter.
2329 * tree-inline.c (is_parameter_of): New predicate.
2330 (remap_gimple_op_r): Do not propagate TREE_THIS_NOTRAP on MEM_REF if
2331 a parameter has been remapped.
2332 (copy_tree_body_r): Likewise on INDIRECT_REF and MEM_REF.
2333 (optimize_inline_calls): Initialize transform_parameter.
2334 (copy_gimple_seq_and_replace_locals): Likewise.
2335 (tree_function_versioning): Likewise.
2336 (maybe_inline_call_in_expr): Likewise.
2337
cad055a4
NC
23382013-09-17 Nick Clifton <nickc@redhat.com>
2339
2340 * config/msp430/msp430-protos.h: Add prototypes for new functions.
2341 * config/msp430/msp430.c (msp430_preserve_reg_p): Add support for
2342 interrupt handlers.
2343 (is_attr_func): New function.
2344 (msp430_is_interrupt_func): New function.
2345 (is_naked_func): New function.
2346 (is_reentrant_func): New function.
2347 (is_critical_func): New function.
2348 (msp430_start_function): Add annotations for function attributes.
2349 (msp430_attr): New function.
2350 (msp430_attribute_table): New.
2351 (msp430_function_section): New function.
2352 (TARGET_ASM_FUNCTION_SECTION): Define.
2353 (msp430_builtin): New enum.
2354 (msp430_init_builtins): New function.
2355 (msp430_builtin_devl): New function.
2356 (msp430_expand_builtin): New function.
2357 (TARGET_INIT_BUILTINS): Define.
2358 (TARGET_EXPAND_BUILTINS): Define.
2359 (TARGET_BUILTIN_DECL): Define.
2360 (msp430_expand_prologue): Add support for naked, interrupt,
2361 critical and reentrant functions.
2362 (msp430_expand_epilogue): Likewise.
2363 (msp430_print_operand): Handle 'O' character.
2364 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Define
2365 NO_TRAMPOLINES.
2366 * config/msp430/msp430.md (unspec): Add UNS_DINT, UNS_EINT,
2367 UNS_PUSH_INTR, UNS_POP_INTR, UNS_BIC_SR, UNS_BIS_SR.
2368 (pushm): Use a 'n' rather than an 'i' constraint.
2369 (msp_return): Add generation of the interrupt return instruction.
2370 (disable_interrupts): New pattern.
2371 (enable_interrupts): New pattern.
2372 (push_intr_state): New pattern.
2373 (pop_intr_state): New pattern.
2374 (bic_SR): New pattern.
2375 (bis_SR): New pattern.
2376 * doc/extend.texi: Document MSP430 function attributes and builtin
2377 functions.
2378
deb6c11a
RB
23792013-09-17 Richard Biener <rguenther@suse.de>
2380
2381 PR tree-optimization/58432
2382 * tree-loop-distribution.c (tree_loop_distribution): Also
2383 scan PHIs for outside loop uses and seed a partition from them.
2384
c068654b
BC
23852013-09-17 Bin Cheng <bin.cheng@arm.com>
2386
2387 * gimple-ssa-strength-reduction.c (backtrace_base_for_ref): New.
2388 (restructure_reference): Call backtrace_base_for_ref.
2389
567969e4
AM
23902013-09-17 Alan Modra <amodra@gmail.com>
2391
2392 PR target/57589
7a5911d3
UB
2393 * config/rs6000/driver-rs6000.c (elf_platform): Revert 2013-06-11
2394 patch.
567969e4 2395
5c0029de
DD
23962013-09-16 DJ Delorie <dj@redhat.com>
2397
2398 * config/rl78/rl78.c (rl78_asm_file_start): Specify alternate
2399 vregs location for RL78/G10.
2400 (rl78_expand_prologue): Avoid SEL on G10.
2401 (rl78_expand_epilogue): Likewise.
2402 (rl78_peep_movhi_p): Can't move a constant to memory in HImode.
2403 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
2404 __RL78_G10__ when appropriate.
2405 (ASM_SPEC): Pass -mg10 along to the assembler.
2406 * config/rl78/rl78.md (sel_rb): Disable for G10.
2407 * config/rl78/rl78.opt: Add -mg10 option.
2408 * config/rl78/t-rl78: Add -mg10 multilib.
2409
ea0f3e87
XDL
24102013-09-16 Xinliang David Li <davidxl@google.com>
2411
2412 * tree-if-conv.c (main_tree_if_conversion): Check new flag.
2413 * omp-low.c (omp_max_vf): Ditto.
2414 (expand_omp_simd): Ditto.
2415 * tree-vectorizer.c (vectorize_loops): Ditto.
2416 (gate_vect_slp): Ditto.
2417 (gate_increase_alignment): Ditto.
2418 * tree-ssa-pre.c (inhibit_phi_insertion): Ditto.
2419 * tree-ssa-loop.c (gate_tree_vectorize): Ditto.
2420 (gate_tree_vectorize): Name change.
2421 (tree_vectorize): Ditto.
2422 (pass_vectorize::gate): Call new function.
2423 (pass_vectorize::execute): Ditto.
7a5911d3 2424 * opts.c: O3 default setting change.
ea0f3e87
XDL
2425 (finish_options): Check new flag.
2426 * doc/invoke.texi: Document new flags.
2427 * common.opt: New flags.
2428
4f3da2e5
AS
24292013-09-16 Andreas Schwab <schwab@linux-m68k.org>
2430
2431 * doc/tm.texi.in (Cond Exec Macros): Remove node.
2432 (Condition Code): Don't reference it.
2433 * doc/tm.texi: Regenerate.
2434
aa940f7c
VM
24352013-09-16 Vladimir Makarov <vmakarov@redhat.com>
2436
2437 PR middle-end/58418
2438 * lra-constraints.c (undo_optional_reloads): Consider all optional
2439 reload even if it did not get a hard reg.
2440
e645e942
TJ
24412013-09-16 Teresa Johnson <tejohnson@google.com>
2442
2443 * dumpfile.c (dump_loc): Remove newline emission.
2444 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Add newline
2445 emission to dump_printf_loc calls where missing.
2446 (vect_mark_for_runtime_alias_test): Ditto.
2447 (vect_analyze_data_ref_dependence): Ditto.
2448 (vect_analyze_data_ref_dependences): Ditto.
2449 (vect_slp_analyze_data_ref_dependence): Ditto.
2450 (vect_slp_analyze_data_ref_dependences): Ditto.
2451 (vect_compute_data_ref_alignment): Ditto.
2452 (vect_update_misalignment_for_peel): Ditto.
2453 (vect_verify_datarefs_alignment): Ditto.
2454 (vector_alignment_reachable_p): Ditto.
2455 (vect_get_data_access_cost): Ditto.
2456 (vect_enhance_data_refs_alignment): Ditto.
2457 (vect_find_same_alignment_drs): Ditto.
2458 (vect_analyze_data_refs_alignment): Ditto.
2459 (vect_analyze_group_access): Ditto.
2460 (vect_analyze_data_ref_access): Ditto.
2461 (vect_analyze_data_ref_accesses): Ditto.
2462 (vect_prune_runtime_alias_test_list): Ditto.
2463 (vect_analyze_data_refs): Ditto.
2464 (vect_create_addr_base_for_vector_ref): Ditto.
2465 (vect_create_data_ref_ptr): Ditto.
2466 (vect_grouped_store_supported): Ditto.
2467 (vect_grouped_load_supported): Ditto.
2468 * value-prof.c (check_counter): Ditto.
2469 (check_ic_target): Ditto.
2470 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Ditto.
2471 (vect_recog_widen_mult_pattern): Ditto.
2472 (vect_recog_widen_sum_pattern): Ditto.
2473 (vect_recog_over_widening_pattern): Ditto.
2474 (vect_recog_widen_shift_pattern): Ditto.
2475 (vect_recog_rotate_pattern): Ditto.
2476 (vect_recog_vector_vector_shift_pattern): Ditto.
2477 (vect_recog_divmod_pattern): Ditto.
2478 (vect_recog_mixed_size_cond_pattern): Ditto.
2479 (vect_recog_bool_pattern): Ditto.
2480 (vect_pattern_recog_1): Ditto.
2481 (vect_pattern_recog): Ditto.
2482 * tree-vect-loop.c (vect_determine_vectorization_factor): Ditto.
2483 (vect_is_simple_iv_evolution): Ditto.
2484 (vect_analyze_scalar_cycles_1): Ditto.
2485 (vect_get_loop_niters): Ditto.
2486 (vect_analyze_loop_1): Ditto.
2487 (vect_analyze_loop_form): Ditto.
2488 (vect_analyze_loop_operations): Ditto.
2489 (vect_analyze_loop_2): Ditto.
2490 (vect_analyze_loop): Ditto.
2491 (report_vect_op): Ditto.
2492 (vect_is_slp_reduction): Ditto.
2493 (vect_is_simple_reduction_1): Ditto.
2494 (vect_get_known_peeling_cost): Ditto.
2495 (vect_estimate_min_profitable_iters): Ditto.
2496 (vect_model_reduction_cost): Ditto.
2497 (vect_model_induction_cost): Ditto.
2498 (get_initial_def_for_induction): Ditto.
2499 (vect_create_epilog_for_reduction): Ditto.
2500 (vectorizable_reduction): Ditto.
2501 (vectorizable_induction): Ditto.
2502 (vectorizable_live_operation): Ditto.
2503 (vect_loop_kill_debug_uses): Ditto.
2504 (vect_transform_loop): Ditto.
2505 * tree-vect-stmts.c (vect_mark_relevant): Ditto.
2506 (vect_stmt_relevant_p): Ditto.
2507 (process_use): Ditto.
2508 (vect_mark_stmts_to_be_vectorized): Ditto.
2509 (vect_model_simple_cost): Ditto.
2510 (vect_model_promotion_demotion_cost): Ditto.
2511 (vect_model_store_cost): Ditto.
2512 (vect_get_store_cost): Ditto.
2513 (vect_model_load_cost): Ditto.
2514 (vect_get_load_cost): Ditto.
2515 (vect_init_vector_1): Ditto.
2516 (vect_get_vec_def_for_operand): Ditto.
2517 (vect_finish_stmt_generation): Ditto.
2518 (vectorizable_call): Ditto.
2519 (vectorizable_conversion): Ditto.
2520 (vectorizable_assignment): Ditto.
2521 (vectorizable_shift): Ditto.
2522 (vectorizable_operation): Ditto.
2523 (vectorizable_store): Ditto.
2524 (vectorizable_load): Ditto.
2525 (vectorizable_condition): Ditto.
2526 (vect_analyze_stmt): Ditto.
2527 (vect_transform_stmt): Ditto.
2528 (vect_is_simple_use): Ditto.
2529 * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): Ditto.
2530 (vect_can_advance_ivs_p): Ditto.
2531 (vect_update_ivs_after_vectorizer): Ditto.
2532 (vect_do_peeling_for_loop_bound): Ditto.
2533 (vect_gen_niters_for_prolog_loop): Ditto.
2534 (vect_update_inits_of_drs): Ditto.
2535 (vect_create_cond_for_alias_checks): Ditto.
2536 * tree-vect-slp.c (vect_get_and_check_slp_defs): Ditto.
2537 (vect_build_slp_tree_1): Ditto.
2538 (vect_supported_load_permutation_p): Ditto.
2539 (vect_analyze_slp_instance): Ditto.
2540 (vect_analyze_slp): Ditto.
2541 (vect_make_slp_decision): Ditto.
2542 (vect_detect_hybrid_slp): Ditto.
2543 (vect_bb_vectorization_profitable_p): Ditto.
2544 (vect_slp_analyze_bb_1): Ditto.
2545 (vect_update_slp_costs_according_to_vf): Ditto.
2546 (vect_get_mask_element): Ditto.
2547 (vect_transform_slp_perm_load): Ditto.
2548 (vect_schedule_slp_instance): Ditto.
2549 (vect_schedule_slp): Ditto.
2550 (vect_slp_transform_bb): Ditto.
2551 * profile.c (read_profile_edge_counts): Ditto.
2552 (compute_branch_probabilities): Ditto.
2553 * coverage.c (get_coverage_counts): Ditto.
2554
46f851f3
DN
25552013-09-16 Diego Novillo <dnovillo@google.com>
2556
7a5911d3 2557 * tree-core.h: Add missing comment lines from refactoring of tree.h.
46f851f3 2558
1632a686
JH
25592013-09-16 Jan Hubicka <jh@suse.cz>
2560
2561 * gimple-fold.c (can_refer_decl_in_current_unit_p): Do not accept
7a5911d3 2562 abstract functions; for static functions check the presence of body.
1632a686 2563
828e70c1
JG
25642013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2565
2566 * config/aarch64/aarch64-simd-builtins.def (fma): New.
2567 * config/aarch64/aarch64-simd.md
2568 (aarch64_mla_elt<mode>): New.
2569 (aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
2570 (aarch64_mls_elt<mode>): Likewise.
2571 (aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
2572 (aarch64_fma4_elt<mode>): Likewise.
2573 (aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
2574 (aarch64_fma4_elt_to_128v2df): Likewise.
2575 (aarch64_fma4_elt_to_64df): Likewise.
2576 (fnma<mode>4): Likewise.
2577 (aarch64_fnma4_elt<mode>): Likewise.
2578 (aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
2579 (aarch64_fnma4_elt_to_128v2df): Likewise.
2580 (aarch64_fnma4_elt_to_64df): Likewise.
2581 * config/aarch64/iterators.md (VDQSF): New.
2582 * config/aarch64/arm_neon.h
2583 (vfm<as><sdq>_lane<q>_f<32, 64>): Convert to C implementation.
2584 (vml<sa><q>_lane<q>_<fsu><16, 32, 64>): Likewise.
2585
779aea46
JG
25862013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2587
2588 * config/aarch64/aarch64-simd.md (aarch64_mul3_elt<mode>): New.
2589 (aarch64_mul3_elt_<vswap_width_name><mode>): Likewise.
2590 (aarch64_mul3_elt_to_128df): Likewise.
2591 (aarch64_mul3_elt_to_64v2df): Likewise.
2592 * config/aarch64/iterators.md (VEL): Also handle DFmode.
2593 (VMUL): New.
2594 (VMUL_CHANGE_NLANES) Likewise.
2595 (h_con): Likewise.
2596 (f): Likewise.
2597 * config/aarch64/arm_neon.h
2598 (vmul<q>_lane<q>_<suf><16,32,64>): Convert to C implementation.
2599
a407a750
JG
26002013-09-16 James Greenhalgh <james.greenhalgh@arm.com>
2601
2602 * config/aarch64/arm_neon.h
2603 (vcvtx_high_f32_f64): Fix parameters.
2604
f77e2d2d 26052013-09-16 Jan-Benedict Glaw <jbglaw@lug-owl.de>
a5bd71fa 2606 Uros Bizjak <ubizjak@gmail.com>
f77e2d2d 2607
a5bd71fa 2608 * config/alpha.c: Include tree-ssanames.h.
f77e2d2d 2609
36875e8f
RB
26102013-09-16 Richard Biener <rguenther@suse.de>
2611
2612 * tree-loop-distribution.c (enum rdg_dep_type): Add control_dd.
2613 (dot_rdg_1): Handle control_dd.
2614 (create_edge_for_control_dependence): New function.
2615 (create_rdg_edges): Add control dependences if asked for.
2616 (build_rdg): Likewise.
2617 (generate_loops_for_partition): If there are not necessary
2618 control stmts remove all their dependencies.
2619 (collect_condition_stmts, rdg_flag_loop_exits): Remove.
2620 (distribute_loop): Pass on control dependences.
2621 (tree_loop_distribution): Compute control dependences and remove
2622 restriction on number of loop nodes.
2623
96e24d49
JJ
26242013-09-16 Jakub Jelinek <jakub@redhat.com>
2625
2626 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Return early
2627 for internal calls.
2628
40dbb05c
RS
26292013-09-16 Richard Sandiford <rdsandiford@googlemail.com>
2630
2631 * cse.c (try_const_anchors): Punt on CC modes.
2632
97191ad0
JBG
26332013-09-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2634
2635 * config/vax/constraints.md (T): Add missing CONSTANT_P check.
2636
403a3fb7
JDA
26372013-09-14 John David Anglin <danglin@gcc.gnu.org>
2638
2639 PR target/58382
2640 * config/pa/pa.c (pa_expand_prologue): Change mode in gen_rtx_POST_INC
2641 calls to word_mode.
2642
fb5610fb
IS
26432013-09-14 Iain Sandoe <iain@codesourcery.com>
2644
2645 PR target/48094
2646 * config/darwin.c (darwin_objc2_section): Note if ObjC Metadata is
f77e2d2d
JBG
2647 seen.
2648 (darwin_objc1_section): Likewise.
fb5610fb
IS
2649 (darwin_file_end): Emit Image Info section when required.
2650
afdec9bd
JH
26512013-09-14 Jan Hubicka <jh@suse.cz>
2652
2653 * tree-into-ssa.c (gate_into_ssa): New.
2654 (pass_data_build_ssa): Use it.
2655 * cgraph.h (expand_thunk): Update prototype.
2656 * cgraphunit.c (analyze_function): Expand thunks early.
2657 (expand_thunk): Fix DECL_CONTEXT of reust_decl;
2658 build proper cgraph; set in_ssa_p; clear bogus TREE_ASM_WRITTEN;
2659 set lowered flag; do not add new function.
2660 (assemble_thunks_and_aliases): Update.
2661 * tree-ssa.c (gate_init_datastructures): New gate.
2662 (pass_data_init_datastructures): Use it.
2663
492d1e0a
IS
26642013-09-14 Iain Sandoe <iain@codesourcery.com>
2665
2666 PR target/58269
f77e2d2d 2667 * config/i386/i386.c (ix86_function_arg_regno_p): Make Darwin use the
492d1e0a
IS
2668 xmm register set described in the psABI.
2669
d13c6b70
EG
26702013-09-13 Evgeny Gavrin <e.gavrin@samsung.com>
2671
f77e2d2d
JBG
2672 * dwarf2out.c (should_emit_struct_debug): Add check
2673 for type_decl variable is not NULL.
d13c6b70 2674
88b0e79e
JC
26752013-09-13 Jacek Caban <jacek@codeweavers.com>
2676
2677 * config.gcc: Use new winnt-c.c target hooks
2678 * config/t-winnt: New file
2679 * config/winnt-c.c: New file
2680 * doc/tm.texi.in: Document new hook
2681 * doc/tm.texi: Regenerated
2682
19ba6aab
JH
26832013-09-13 Jan Hubicka <jh@suse.cz>
2684
2685 PR middle-end/58094
2686 * ipa-inline.c (check_callers): New function.
2687 (check_caller_edge): Remove.
2688 (want_inline_function_to_all_callers_p): Also permit alises that are
2689 called dirrectly.
2690 (inline_to_all_callers): Terminate the walk when devirtualization
2691 introduce new calls.
2692
a93c18c8
JH
26932013-09-13 Jan Hubicka <jh@suse.cz>
2694
2695 * ipa-inline-analysis.c (struct growth_data): Add node.
2696 (do_estimate_growth_1): Fix detection of recursion.
2697
f3b331d1
JJ
26982013-09-13 Jakub Jelinek <jakub@redhat.com>
2699
2700 PR tree-optimization/58392
2701 * tree-cfg.c (move_sese_region_to_fn): Rename loop variable
2702 to avoid shadowing of outer loop variable. If
2703 saved_cfun->has_simduid_loops or saved_cfun->has_force_vect_loops,
2704 replace_by_duplicate_decl simduid of loops that have it set and
2705 set dest_cfun->has_simduid_loops and/or
2706 dest_cfun->has_force_vect_loops.
2707 * omp-low.c (build_outer_var_ref): Call maybe_lookup_decl_in_outer_ctx
2708 instead of maybe_lookup_decl.
2709 * tree-inline.c (copy_loops): Change blocks_to_copy argument to id.
2710 Use id->blocks_to_copy instead of blocks_to_copy. Adjust recursive
2711 call. Copy over force_vect and copy and remap simduid. Set
2712 cfun->has_simduid_loops and/or cfun->has_force_vect_loops.
2713 (copy_cfg_body): Remove blocks_to_copy argument. Use
2714 id->blocks_to_copy instead of blocks_to_copy. Adjust copy_loops
2715 caller. Don't set cfun->has_simduid_loops and/or
2716 cfun->has_force_vect_loops here.
2717 (copy_body): Remove blocks_to_copy argument. Adjust copy_cfg_body
2718 caller.
2719 (expand_call_inline, tree_function_versioning): Adjust copy_body
2720 callers.
2721
ae6d0907
MJ
27222013-09-13 Martin Jambor <mjambor@suse.cz>
2723
2724 PR bootstrap/58388
2725 * ipa-prop.c (try_make_edge_direct_simple_call): Be less strict in
2726 the assert if the edge was a speculative one.
2727
2fd5894f
RB
27282013-09-13 Richard Biener <rguenther@suse.de>
2729
2730 * tree-data-ref.h (known_dependences_p): Move here ...
2731 * tree-loop-distribution.c (known_dependences_p): ... from here.
2732 (dump_rdg_component, debug_rdg_component): Remove.
2733 (dump_rdg): Adjust.
2734 (generate_loops_for_partition): Use gimple_uid instead of
2735 relying on matching stmt visit order.
2736 (rdg_build_partitions): Take starting stmt vector.
2737 (ldist_gen): Merge into ...
2738 (distribute_loop): ... this function. Do not compute starting
2739 vertices vector.
2740 * tree-cfg.c (gimple_duplicate_bb): Copy UID for PHIs.
2741
86eb4bd7
KT
27422013-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2743
2744 * config/arm/arm.md (arm_cmpsi_insn): Split rI alternative.
2745 Set type attribute correctly. Set predicable_short_it attribute.
2746 (cmpsi_shiftsi): Remove %? from output template.
2747
83a95546
RB
27482013-09-13 Richard Biener <rguenther@suse.de>
2749
2750 * tree-loop-distribution.c (struct rdg_component,
2751 rdg_defs_used_in_other_loops_p, free_rdg_components,
2752 rdg_build_components): Remove.
2753 (stmts_from_loop): Do not record virtual PHIs.
2754 (generate_loops_for_partition): Skip virtual PHIs.
2755 (build_rdg_partition_for_component): Rename to ...
2756 (build_rdg_partition_for_vertex): ... this and adjust.
2757 (rdg_build_partitions): Take a vector of starting vertices
2758 instead of components. Remove unnecessary leftover handling.
2759 (ldist_gen): Do not build components or record other stores.
2760 (distribute_loop): Do not distribute loops containing stmts
2761 with side-effects.
2762
c0ecf7f1
CB
27632013-09-13 Christian Bruel <christian.bruel@st.com>
2764
2765 PR target/58314
2766 * config/sh/sh.md (mov<mode>_reg_reg): Allow memory reloads.
2767
34f56efc
KT
27682013-09-13 Kai Tietz <ktietz@redhat.com>
2769
740f2bf3
KT
2770 * config.gcc: Separate cases for mingw and cygwin targets,
2771 and add 64-bit cygwin target case.
2772
34f56efc
KT
2773 * config/i386/winnt-cxx.c (i386_pe_type_dllexport_p): Don't
2774 dll-export inline-functions.
2775 * config/i386/winnt.c (i386_pe_determine_dllexport_p): Likewise.
2776
2777
27782013-09-13 Jeff Law <law@redhat.com>
823b5d6b
JL
2779
2780 PR middle-end/58387
2781 Revert:
2782 2013-09-06 Jeff Law <law@redhat.com>
2783
2784 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
2785 edge implied equivalences into successor phis.
2786
aadb52ad
DD
27872013-09-12 DJ Delorie <dj@redhat.com>
2788
2789 * config/rl78/rl78-virt.md: Change from | to \; for asm line
2790 separators.
2791
90ae7019
BM
27922013-09-12 Brooks Moses <bmoses@google.com>
2793
2794 PR driver/42955
2795 * Makefile.in: Do not install driver binaries in $(target)/bin.
2796
17b2557c
DD
27972013-09-12 DJ Delorie <dj@redhat.com>
2798
c5215a9b
DD
2799 * config/rl78/rl78.opt (mrelax): New.
2800 * config/rl78/rl78.h (ASM_SPEC): New, pass on -mrelax to gas.
2801 * config/rl78/rl78.h (LINK_SPEC): New, pass on -mrelax to ld.
2802
17b2557c
DD
2803 * config/rl78/rl78.c (rl78_expand_prologue): Use AX to copy
2804 between SP and FP.
2805 (rl78_expand_epilogue): Likewise.
2806
ecafcf05
VM
28072013-09-12 Vladimir Makarov <vmakarov@redhat.com>
2808
2809 PR middle-end/58335
84f6d9fa 2810 * lra-eliminations.c (remove_reg_equal_offset_note): New.
ecafcf05
VM
2811 (eliminate_regs_in_insn): Rewrite frame pointer to hard frame
2812 pointer elimination with using remove_reg_equal_offset_note.
2813
8369f38a
DD
28142013-09-12 DJ Delorie <dj@redhat.com>
2815
f6a83b4a
DD
2816 * config/msp430/: New port.
2817 * config.gcc (msp430): Added.
2818 * doc/invoke.texi: Document MSP430 options.
2819 * doc/install.texi: Document msp430-elf
2820 * doc/md.texi: Document msp430-elf
2821 * doc/contrib.texi: Document msp430-elf
2822
8369f38a
DD
2823 * cfgexpand.c (expand_debug_expr): Avoid sign-extending SImode to
2824 PSImode.
2825
a854f856
MJ
28262013-09-12 Martin Jambor <mjambor@suse.cz>
2827
2828 PR ipa/58389
2829 * ipa-prop.c (remove_described_reference): Give up if the edge in the
2830 reference descriptor is NULL.
2831 (ipa_edge_removal_hook): If owning a reference descriptor, set its
2832 edge to NULL.
2833
b12ebd96
AM
28342013-09-12 Andrew MacLeod <amacleod@redhat.com>
2835
2836 * tree-flow.h (FREE_SSANAMES): Move to tree-ssanames.c
2837 (SSANAMES, MODIFIED_NORETURN_CALLS, DEFAULT_DEFS, ptr_info_def,
2838 num_ssa_names, ssa_name): Move to tree-ssanames.h + prototypes.
2839 * tree-flow-inline.h (make_ssa_name, copy_ssa_name, duplicate_ssa_name,
2840 make_temp_ssa_name): move to tree-ssanames.h
2841 * tree-ssa-alias.h: Move prototype.
2842 * tree-ssa.h: Include tree-ssanames.h.
2843 * tree-ssanames.c (FREE_SSANAMES): Move to here.
2844 * tree-ssanames.h: New. Move items from tree-flow*.h
2845 * Makefile.in (tree-ssanames.h): Add to tree-ssanames.o and GTFILES.
2846
e1fb4ad3
RB
28472013-09-12 Richard Biener <rguenther@suse.de>
2848
2849 PR tree-optimization/58404
2850 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
2851 propagate non-invariant addresses into dereferences wrapped
2852 in component references.
2853
154c9188
RB
28542013-09-12 Richard Biener <rguenther@suse.de>
2855
2856 PR tree-optimization/58402
2857 * passes.def: Move pass_late_warn_uninitialized later.
2858
7a300452
AM
28592013-09-12 Andrew MacLeod <amacleod@redhat.com>
2860
2861 * tree-ssa.h: New. Move content from tree-flow.h and
2862 tree-flow-inline.h.
2863 * tree-flow.h (_edge_var_map, edge_var_map_vector): Move to tree-ssa.h.
2864 Move prototypes belonging to tree-ssa.c.
f77e2d2d 2865 * tree-flow-inline.h (redirect_edge_var_map_def,
7a300452
AM
2866 redirect_edge_var_map_result, redirect_edge_var_map_location): Move to
2867 tree-ssa.h.
2868 * gimple.h: Adjust prototypes.
f77e2d2d
JBG
2869 * tree-ssa.c (useless_type_conversion_p, types_compatible_p): Move
2870 to...
2871 * gimple.c (useless_type_conversion_p, types_compatible_p): Here.
7a300452
AM
2872 * tree.h: Move prototype to tree-ssa.h.
2873 * gengtype.c (open_base_files): Replace tree-flow.h with tree-ssa.h.
2874 * Makefile.in: (TREE_SSA_H, TREE_FLOW_H): Adjust dependencies.
2875 * alias.c, asan.c, builtins.c, calls.c, cfgexpand.c, cfghooks.c,
2876 cfgloop.c, cfgloopmanip.c, cgraph.c, cgraphbuild.c, cgraphclones.c,
2877 cgraphunit.c, dse.c, except.c, expr.c, final.c, fold-const.c,
2878 ggc-page.c, gimple-fold.c, gimple-iterator.c, gimple-low.c,
2879 gimple-pretty-print.c, gimple-ssa-strength-reduction.c,
2880 gimple-streamer-in.c, gimple-streamer-out.c, gimple.c, gimplify.c,
f77e2d2d
JBG
2881 graphite-blocking.c, graphite-clast-to-gimple.c,
2882 graphite-dependences.c, graphite-interchange.c,
2883 graphite-optimize-isl.c, graphite-poly.c, graphite-scop-detection.c,
2884 graphite-sese-to-poly.c, graphite.c, ipa-cp.c, ipa-inline-analysis.c,
2885 ipa-inline-transform.c, ipa-inline.c, ipa-prop.c, ipa-pure-const.c,
2886 ipa-reference.c, ipa-split.c, ipa-utils.c,
7a300452
AM
2887 loop-init.c, lto-cgraph.c, lto-section-in.c, lto-section-out.c,
2888 lto-streamer-in.c, lto-streamer-out.c, lto-streamer.c, omp-low.c,
2889 passes.c, predict.c, print-tree.c, profile.c, sese.c, targhooks.c,
2890 tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
2891 tree-chrec.c, tree-complex.c, tree-data-ref.c, tree-dfa.c, tree-eh.c,
2892 tree-emutls.c, tree-if-conv.c, tree-inline.c, tree-into-ssa.c,
2893 tree-loop-distribution.c, tree-mudflap.c, tree-nested.c, tree-nrv.c,
2894 tree-object-size.c, tree-optimize.c, tree-outof-ssa.c, tree-parloops.c,
2895 tree-phinodes.c, tree-predcom.c, tree-pretty-print.c, tree-profile.c,
2896 tree-scalar-evolution.c, tree-sra.c, tree-ssa*.c, tree-stdarg.c,
2897 tree-streamer-in.c, tree-switch-conversion.c, tree-tailcall.c,
2898 tree-vect-data-refs.c, tree-vect-generic.c, tree-vect-loop-manip.c,
2899 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
2900 tree-vect-stmts.c, tree-vectorizer.c, tree-vrp.c, tsan.c,
2901 value-prof.c, var-tracking.c,
2902 varpool.c, vtable-verify.c: Replace tree-flow.h with tree-ssa.h
2903
97463b2b
RB
29042013-09-12 Richard Biener <rguenther@suse.de>
2905
2906 PR tree-optimization/58396
2907 * tree-loop-distribution.c (create_rdg_edges): Free unused DDRs.
2908 (build_rdg): Take a loop-nest parameter, fix memleaks.
2909 (distribute_loop): Compute loop-nest here and pass it to build_rdg.
2910
80ecd89d
YR
29112013-09-12 Yuri Rumyantsev <ysrumyan@gmail.com>
2912
2913 * config/i386/x86-tune.def: Turn on X86_TUNE_AVOID_MEM_OPND_FOR_CMOVE
2914 for SLM.
2915
893e85fa
CM
29162013-09-12 Cameron McInally <cameron.mcinally@nyu.edu>
2917
2918 * doc/extend.texi: Fix errors in x86 FMA builtin naming.
2919 The FMA instruction names should have a 'v' prefix.
2920
174ec470
RB
29212013-09-12 Richard Biener <rguenther@suse.de>
2922
2923 * tree-loop-distribution.c (dot_rdg_1): Make graph prettier.
2924 (dot_rdg): Use popen instead of system in optional code.
2925 (remaining_stmts, upstream_mem_writes): Remove global bitmaps.
2926 (already_processed_vertex_p): Adjust.
2927 (has_anti_or_output_dependence, predecessor_has_mem_write,
2928 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
2929 rdg_flag_uses): Remove.
2930 (rdg_flag_vertex): Simplify.
2931 (rdg_flag_vertex_and_dependent): Rely on a correct RDG and
2932 remove recursion.
2933 (build_rdg_partition_for_component): Process the first vertex
2934 of a component only.
2935 (ldist_gen): Do not compute remaining_stmts or upstream_mem_writes.
2936
38c89763
AM
29372013-09-12 Alan Modra <amodra@gmail.com>
2938
2939 * config/rs6000/rs6000.c (toc_relative_expr_p): Use add_cint_operand.
2940
3e3d9d17
DD
29412013-09-11 DJ Delorie <dj@redhat.com>
2942 Nick Clifton <nickc@redhat.com>
2943
2944 * config/rl78/predicates.md (rl78_cmp_operator_signed): New.
2945 (rl78_stack_based_mem): New.
2946 * config/rl78/constraints.md (Iv08): New.
2947 (Iv16): New.
2948 (Iv24): New.
2949 (Is09): New.
2950 (Is17): New.
2951 (Is25): New.
2952 (ISsi): New.
2953 (IShi): New.
2954 (ISqi): New.
2955 * config/rl78/rl78-expand.md (movqi): Reject more SUBREG operands.
2956 (movhi): Likewise.
2957 (movsi): Change from expand to insn-and-split.
2958 (ashrsi3): Clobber AX.
2959 (lshrsi3): New.
2960 (ashlsi3): New.
2961 (cbranchsi4): New.
2962 * config/rl78/rl78.md (CC_REG): Fix.
2963 (addsi3): Allow memory and immediate operands.
2964 (addsi3_internal): Split into...
2965 (addsi3_internal_virt): ...new, and ...
2966 (addsi3_internal_real): ...new.
2967 (subsi): New.
2968 (subsi3_internal_virt): New.
2969 (subsi3_internal_real): New.
2970 (mulsi3): Add memory operand.
2971 (mulsi3_rl78): Likewise.
2972 (mulsi3_g13): Likewise.
2973 * config/rl78/rl78-real.md (cbranchqi4_real_signed): New.
2974 (cbranchqi4_real): Add more constraint options.
2975 (cbranchhi4_real): Expand pattern.
2976 (cbranchhi4_real_signed): New.
2977 (cbranchhi4_real_inverted): New.
2978 (cbranchsi4_real_lt): New.
2979 (cbranchsi4_real_ge): New.
2980 (cbranchsi4_real_signed): New.
2981 (cbranchsi4_real): New.
2982 (peephole2): New.
893e85fa
CM
2983 * config/rl78/rl78-virt.md (ashrsi3_virt): Add custom cases for
2984 constant shifts.
3e3d9d17
DD
2985 (lshrsi3_virt): Likewise.
2986 (ashlsi3_virt): Likewise.
2987 (cbranchqi4_virt_signed): New.
2988 (cbranchhi4_virt_signed): New.
2989 (cbranchsi4_virt): New.
2990 * config/rl78/rl78.c: Whitespace fixes throughout.
2991 (move_elim_pass): New.
2992 (pass_data_rl78_move_elim): New.
2993 (pass_rl78_move_elim): New.
2994 (make_pass_rl78_move_elim): New.
2995 (rl78_devirt_info): Run devirt earlier.
2996 (rl78_move_elim_info): New.
2997 (rl78_asm_file_start): Register it.
2998 (rl78_split_movsi): New.
2999 (rl78_as_legitimate_address): Allow virtual base registers when
3000 appropriate.
3001 (rl78_addr_space_convert): Remove spurious debug stuff.
3002 (rl78_print_operand_1): Add z,s,S,r,E modifiers.
3003 (rl78_print_operand): More cases for not printing '#'.
3004 (rl78_expand_compare): Remove most of the logic.
3005 (content_memory): New.
3006 (clear_content_memory): New.
3007 (get_content_index): New.
3008 (get_content_name): New.
3009 (display_content_memory): New.
3010 (update_content): New.
3011 (record_content): New.
3012 (already_contains): New.
3013 (insn_ok_now): Re-recog insns with virtual registers.
3014 (add_postponed_content_update): New.
3015 (process_postponed_content_update): New.
3016 (gen_and_emit_move): New.
893e85fa
CM
3017 (transcode_memory_rtx): Record new location content.
3018 Use gen_and_emit_move.
3e3d9d17
DD
3019 (force_into_acc): New.
3020 (move_to_acc): Use gen_and_emit_move.
3021 (move_from_acc): Likewise.
3022 (move_acc_to_reg): Likewise.
3023 (move_to_x): Likewise.
3024 (move_to_hl): Likewise.
3025 (move_to_de): Likewise.
3026 (rl78_alloc_physical_registers_op1): Record location content.
3027 (has_constraint): New.
3028 (rl78_alloc_physical_registers_op2): Record location content.
3029 Optimize use of HL.
3030 (rl78_alloc_physical_registers_ro1): Likewise.
3031 (rl78_alloc_physical_registers_cmp): Likewise.
3032 (rl78_alloc_physical_registers_umul): Likewise.
3033 (rl78_alloc_address_registers_macax): New.
3034 (rl78_alloc_physical_registers): Initialize and set location
3035 content memory as needed.
3036 (rl78_reorg): Make sure split2 is called.
3037 (rl78_rtx_costs): New.
3038
088845a5
RS
30392013-09-11 Richard Sandiford <rdsandiford@googlemail.com>
3040
3041 * simplify-rtx.c (simplify_unary_operation_1): Use simplify_gen_binary
3042 for (not (neg ...)) and (neg (not ...)) cases.
3043
5c2961cf
RB
30442013-09-11 Richard Biener <rguenther@suse.de>
3045
3046 PR middle-end/58377
3047 * passes.def: Split critical edges before late uninit warning passes.
3048 * tree-cfg.c (pass_split_crit_edges): Implement clone method.
3049
427e6a14
JJ
30502013-09-11 Jakub Jelinek <jakub@redhat.com>
3051
3052 PR tree-optimization/58385
3053 * fold-const.c (build_range_check): If both low and high are NULL,
3054 use omit_one_operand_loc to preserve exp side-effects.
3055
df45c0cc
KT
30562013-09-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3057
3058 * config/arm/arm.md (arm_shiftsi3): New alternative l/l/M.
3059
80ab0b19
RB
30602013-09-11 Richard Biener <rguenther@suse.de>
3061
3062 * tree-data-ref.c (dump_rdg_vertex, debug_rdg_vertex,
3063 dump_rdg_component, debug_rdg_component, dump_rdg, debug_rdg,
3064 dot_rdg_1, dot_rdg, rdg_vertex_for_stmt, create_rdg_edge_for_ddr,
3065 create_rdg_edges_for_scalar, create_rdg_edges, create_rdg_vertices,
3066 stmts_from_loop, known_dependences_p, build_empty_rdg,
3067 build_rdg, free_rdg, rdg_defs_used_in_other_loops_p): Move ...
3068 * tree-loop-distribution.c: ... here.
3069 * tree-data-ref.h (struct rdg_vertex, RDGV_STMT, RDGV_DATAREFS,
3070 RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_DATAREFS,
3071 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT, enum rdg_dep_type,
3072 struct rdg_edge, RDGE_TYPE, RDGE_LEVEL, RDGE_RELATION): Move ...
3073 * tree-loop-distribution.c: ... here.
3074 * tree-loop-distribution.c: Include gimple-pretty-print.h.
3075 (struct partition_s): Add loops member.
3076 (partition_alloc, partition_free, rdg_flag_uses, rdg_flag_vertex,
3077 rdg_flag_vertex_and_dependent, rdg_flag_loop_exits,
3078 build_rdg_partition_for_component, rdg_build_partitions): Adjust.
3079
85a77221
AI
30802013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
3081 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3082 Sergey Lega <sergey.s.lega@intel.com>
3083 Anna Tikhonova <anna.tikhonova@intel.com>
3084 Ilya Tocar <ilya.tocar@intel.com>
3085 Andrey Turetskiy <andrey.turetskiy@intel.com>
3086 Ilya Verbin <ilya.verbin@intel.com>
3087 Kirill Yukhin <kirill.yukhin@intel.com>
3088 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3089
3090 * config/i386/constraints.md (k): New.
3091 (Yk): Ditto.
3092 * config/i386/i386.c (const regclass_map): Add new mask registers.
3093 (dbx_register_map): Ditto.
3094 (dbx64_register_map): Ditto.
3095 (svr4_dbx_register_map): Ditto.
3096 (ix86_conditional_register_usage): Squash mask registers if AVX512F is
3097 disabled.
3098 (ix86_preferred_reload_class): Disable constants for mask registers.
3099 (ix86_secondary_reload): Do spill of mask register using 32-bit insn.
3100 (ix86_hard_regno_mode_ok): Support new mask registers.
3101 (x86_order_regs_for_local_alloc): Ditto.
3102 * config/i386/i386.h (FIRST_PSEUDO_REGISTER): Update.
3103 (FIXED_REGISTERS): Add new mask registers.
3104 (CALL_USED_REGISTERS): Ditto.
3105 (REG_ALLOC_ORDER): Ditto.
3106 (VALID_MASK_REG_MODE): New.
3107 (FIRST_MASK_REG): Ditto.
3108 (LAST_MASK_REG): Ditto.
3109 (reg_class): Add MASK_EVEX_REGS, MASK_REGS.
3110 (MAYBE_MASK_CLASS_P): New.
3111 (REG_CLASS_NAMES): Add MASK_EVEX_REGS, MASK_REGS.
3112 (REG_CLASS_CONTENTS): Ditto.
3113 (MASK_REGNO_P): New.
3114 (ANY_MASK_REG_P): Ditto.
3115 (HI_REGISTER_NAMES): Add new mask registers.
893e85fa
CM
3116 * config/i386/i386.md (MASK0_REG, MASK1_REG, MASK2_REG, MASK3_REG,
3117 MASK4_REG, MASK5_REG, MASK6_REG, MASK7_REG): Constants for new
3118 mask registers.
85a77221
AI
3119 (attribute "type"): Add mskmov, msklog.
3120 (attribute "length_immediate"): Support them.
3121 (attribute "memory"): Ditto.
3122 (attribute "prefix_0f"): Ditto.
3123 (*movhi_internal): Support new mask registers.
3124 (*movqi_internal): Ditto.
3125 (define_split): Split out clobber pattern is a logic
3126 insn on mask registers.
3127 (*k<logic><mode>): New.
3128 (*andhi_1): Extend to support mask regs.
3129 (*andqi_1): Extend to support mask regs.
3130 (kandn<mode>): New.
3131 (define_split): Split and-not to and and not if operands
3132 are not mask regs.
3133 (*<code><mode>_1): Separate HI mode to new pattern...
3134 (*<code>hi_1): This.
3135 (*<code>qi_1): Extend to support mask regs.
3136 (kxnor<mode>): New.
3137 (kortestzhi): Ditto.
3138 (kortestchi): Ditto.
3139 (kunpckhi): Ditto.
3140 (*one_cmpl<mode>2_1): Remove HImode and handle it...
3141 (*one_cmplhi2_1): ...Here, now with mask registers support.
3142 (*one_cmplqi2_1): Support new mask registers.
893e85fa
CM
3143 (HI/QImode arithmetics splitter): Don't split if mask registers
3144 are used.
85a77221
AI
3145 (HI/QImode not splitter): Ditto.
3146 * config/i386/predicated.md (mask_reg_operand): New.
3147 (general_reg_operand): Ditto.
3148
7e570821
AI
31492013-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
3150
3151 * doc/invoke.texi: Document fxsr, xsave and xsaveopt options.
3152 * doc/extend.texi: Document fxsr, xsave and xsaveopt builtins.
3153
9e1376e9
JL
31542013-09-10 Jeff Law <law@redhat.com>
3155
3156 PR tree-optimization/58380
3157 * tree-ssa-threadupdate.c (thread_block): Recognize another case
3158 of threading through a buried loop header.
3159
3160 * tree-ssa-threadedge.c (thread_around_empty_blocks): Correct
3161 return value for single successor case.
3162
5bbcb888
JH
31632013-09-10 Jan Hubicka <jh@suse.cz>
3164
3165 * ipa-devirt.c (ipa_devirt): Enable with LTO.
3166
d742ff4b
RE
31672013-09-10 Richard Earnshaw <rearnsha@arm.com>
3168
3169 PR target/58361
3170 * arm/vfp.md (combine_vcvt_f32_<FCVTI32typename>): Fix pattern to
3171 support conditional execution.
3172 (combine_vcvt_f64_<FCVTI32typename>): Likewise.
3173
b0681c9e
VM
31742013-09-10 Vladimir Makarov <vmakarov@redhat.com>
3175
3176 * lra.c (lra): Clear lra_optional_reload_pseudos before every
3177 constraint pass.
f77e2d2d
JBG
3178 * lra-constraints.c (curr_insn_transform): Switch on optional reloads.
3179 Check destination too to check move insn.
b0681c9e 3180 (undo_optional_reloads): Add check that the original peudo did not
f77e2d2d
JBG
3181 changed its allocation and the optional reload was inherited on last
3182 inheritance pass. Break loop after deciding to keep optional reload.
b0681c9e
VM
3183 (lra_undo_inheritance): Add check that inherited pseudo still in
3184 memory.
3185
c9b1c957
JG
31862013-09-10 James Greenhalgh <james.greenhalgh@arm.com>
3187
3188 * config/aarch64/aarch64.md (generic_sched): New.
3189 * config/aarch64/aarch64-generic.md (load): Make conditional
3190 on generic_sched attribute.
3191 (nonload): Likewise.
3192
82d618d3
JH
31932013-09-10 Jan Hubicka <jh@suse.cz>
3194
3195 * lto-cgraph.c: Include ipa-utils.h.
3196 (compute_ltrans_boundary): Also add possible targets into the boundary.
3197
668b6894
JH
31982013-09-10 Jan Hubicka <jh@suse.cz>
3199
3200 * gimple-fold.c (gimple_get_virt_method_for_binfo): Pass real
3201 VAR_DECL of vtable rather than full expression.
3202
4f90d3e0
JH
32032013-09-10 Jan Hubicka <jh@suse.cz>
3204 Paolo Carlini <paolo.carlini@oracle.com>
3205
3206 * cgraphunit.c (analyze_functions): Save input_location, set it
3207 to UNKNOWN_LOCATION and restore it at the end.
3208
39e87baf
MJ
32092013-09-10 Martin Jambor <mjambor@suse.cz>
3210
3211 * ipa-cp.c (propagate_constants_topo): Do not ignore SCC
3212 represented by a thunk.
3213
581aedec
JL
32142013-09-10 Jeff Law <law@redhat.com>
3215
3216 PR tree-optimization/58343
3217 * tree-ssa-threadupdate.c (thread_block): Identify and disable
3218 jump threading requests through loop headers buried in the middle
3219 of a jump threading path.
3220
3221 * tree-ssa-threadedge.c (thread_around_empty_blocks): Fix thinko
3222 in return value/type.
3223
84cf4ab6
JJ
32242013-09-10 Jakub Jelinek <jakub@redhat.com>
3225
3226 PR rtl-optimization/58365
3227 * cfgcleanup.c (merge_memattrs): Also clear MEM_READONLY_P
3228 resp. MEM_NOTRAP_P if they differ, or set MEM_VOLATILE_P if
3229 it differs.
3230
447dd906
RB
32312013-09-10 Richard Biener <rguenther@suse.de>
3232
3233 * tree-data-ref.h (build_rdg): Drop all parameters but loop.
3234 * tree-data-ref.c (create_rdg_vertices): Collect all data
3235 references, signal failure to the caller, use data-ref API.
893e85fa
CM
3236 (build_rdg): Compute data references only once. Maintain lifetime
3237 of data references and data dependences from within RDG.
447dd906
RB
3238 (free_rdg): Free dependence relations.
3239 * tree-loop-distribution.c (rdg_flag_uses): Drop weird code
3240 inventing extra dependences.
3241 (distribute_loop): Update for RDG API changes.
3242
f14a7324
KT
32432013-09-10 Kai Tietz <ktietz@redhat.com>
3244
3245 * doc/invoke.texi (fms-extensions): Document changed
3246 behavior for ms-abi targets.
3247 * config/i386/i386.c (ix86_option_override_internal):
3248 Set default value of option -fms-extension for ms-abi targets.
3249
ff131f26
MZ
32502013-09-10 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
3251
3252 * config/i386/i386.c (ix86_expand_movmem): Fix epilogue generation.
3253
33115a2c
AM
32542013-09-10 Alan Modra <amodra@gmail.com>
3255
3256 PR target/58330
3257 * config/rs6000/rs6000.md (bswapdi2_64bit): Disable for volatile mems.
3258
b6872a13
AM
32592013-09-10 Alan Modra <amodra@gmail.com>
3260
3261 * config/rs6000/predicates.md (add_cint_operand): New.
3262 (reg_or_add_cint_operand, small_toc_ref): Use add_cint_operand.
3263 * config/rs6000/rs6000.md (largetoc_high_plus): Restrict offset
3264 using add_cint_operand.
3265 (largetoc_high_plus_aix): Likewise.
3266
28fd0ba2
JJ
32672013-09-09 Jakub Jelinek <jakub@redhat.com>
3268
3269 PR tree-optimization/58364
3270 * tree-ssa-reassoc.c (init_range_entry): For BIT_NOT_EXPR on
3271 BOOLEAN_TYPE, only invert in_p and continue with arg0 if
3272 the current range can't be an unconditional true or false.
3273
552d99fe
JG
32742013-09-09 James Greenhalgh <james.greenhalgh@arm.com>
3275
3276 * config/aarch64/arm_neon.h (vrsqrte_f64): Fix parameter type.
3277
f43245d1
UB
32782013-09-09 Uros Bizjak <ubizjak@gmail.com>
3279
3280 * ipa-prop.c (ipa_modify_call_arguments): Initialize deref_align.
3281
c9b0866a
PC
32822013-09-09 Paolo Carlini <paolo.carlini@oracle.com>
3283
3284 PR c++/43452
3285 * doc/invoke.texi (-Wdelete-incomplete): Document it.
3286
78d8b9f0
IB
32872013-09-09 Ian Bolton <ian.bolton@arm.com>
3288
3289 * config/aarch64/aarch64.c (aarch64_preferred_reload_class): Return
3290 NO_REGS for immediate that can't be moved directly into FP_REGS.
3291
274b2532
KT
32922013-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3293
3294 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
3295 comparison with negated operand.
c9b0866a
PC
3296 * config/aarch64/aarch64.md (compare_neg<mode>): Match canonical
3297 RTL form.
274b2532 3298
467a3558
RB
32992013-09-09 Richard Biener <rguenther@suse.de>
3300
3301 PR middle-end/58326
3302 * cfgloopmanip.c (fix_bb_placements): When fixing the placement
3303 of a subloop record all its block as affecting loop-closed SSA form.
3304
088c5368
RS
33052013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
3306
3307 * expmed.c (lshift_value): Take an unsigned HOST_WIDE_INT instead
3308 of an rtx/bitpos pair.
3309 (store_fixed_bit_field): Update accordingly.
3310
69db2d57
RS
33112013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
3312
3313 * asan.c (asan_emit_stack_protection): Use gen_int_mode instead of
3314 GEN_INT.
3315 * builtins.c (expand_errno_check): Likewise.
3316 * dwarf2cfi.c (init_return_column_size): Likewise.
3317 * except.c (sjlj_mark_call_sites): Likewise.
3318 * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
3319 * lra-constraints.c (emit_inc): Likewise.
3320 * ree.c (combine_set_extension): Likewise.
3321 * regmove.c (fixup_match_2): Likewise.
3322 * reload1.c (inc_for_reload): Likewise.
3323
69a59f0f
RS
33242013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
3325
3326 * combine.c (simplify_set, expand_field_assignment, extract_left_shift)
3327 (force_to_mode, simplify_shift_const_1, simplify_comparison):
3328 Use gen_int_mode with the mode of the associated simplify_* call.
3329 * explow.c (probe_stack_range, anti_adjust_stack_and_probe): Likewise.
3330 * expmed.c (expand_shift_1): Likewise.
3331 * function.c (instantiate_virtual_regs_in_insn): Likewise.
3332 * loop-iv.c (iv_number_of_iterations): Likewise.
3333 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
3334 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3335
2f1cd2eb
RS
33362013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
3337
3338 * asan.c (asan_clear_shadow): Use gen_int_mode with the mode
3339 of the associated expand_* call.
3340 (asan_emit_stack_protection): Likewise.
3341 * builtins.c (round_trampoline_addr): Likewise.
3342 * explow.c (allocate_dynamic_stack_space, probe_stack_range): Likewise.
3343 * expmed.c (expand_smod_pow2, expand_sdiv_pow2, expand_divmod)
3344 (emit_store_flag): Likewise.
3345 * expr.c (emit_move_resolve_push, push_block, emit_single_push_insn_1)
3346 (emit_push_insn, optimize_bitfield_assignment_op, expand_expr_real_1):
3347 Likewise.
3348 * function.c (instantiate_virtual_regs_in_insn): Likewise.
3349 * ifcvt.c (noce_try_store_flag_constants): Likewise.
3350 * loop-unroll.c (unroll_loop_runtime_iterations): Likewise.
3351 * modulo-sched.c (generate_prolog_epilog): Likewise.
3352 * optabs.c (expand_binop, widen_leading, expand_doubleword_clz)
3353 (expand_ctz, expand_ffs, expand_unop): Likewise.
3354
4789c0ce
RS
33552013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
3356
3357 * alias.c (addr_side_effect_eval): Use gen_int_mode with the mode
3358 of the associated gen_rtx_* call.
3359 * caller-save.c (init_caller_save): Likewise.
3360 * combine.c (find_split_point, make_extraction): Likewise.
3361 (make_compound_operation): Likewise.
3362 * dwarf2out.c (mem_loc_descriptor): Likewise.
3363 * explow.c (plus_constant, probe_stack_range): Likewise.
3364 * expmed.c (expand_mult_const): Likewise.
3365 * expr.c (emit_single_push_insn_1, do_tablejump): Likewise.
3366 * reload1.c (init_reload): Likewise.
3367 * valtrack.c (cleanup_auto_inc_dec): Likewise.
3368 * var-tracking.c (adjust_mems): Likewise.
3369 * modulo-sched.c (sms_schedule): Likewise, but use gen_rtx_GT
3370 rather than gen_rtx_fmt_ee.
3371
a811f7cb
JH
33722013-09-09 Jan Hubicka <jh@suse.cz>
3373
3374 PR middle-end/58294
3375 * value-prof.c (gimple_ic): Copy also abnormal edges.
3376
dcad1dd3
RS
33772013-09-09 Richard Sandiford <rdsandiford@googlemail.com>
3378
3379 * asan.c (asan_shadow_cst): Use gen_int_mode.
3380
daf5c770
JH
33812013-09-08 Jan Hubicka <jh@suse.cz>
3382
3383 * ipa-profile.c: Add toplevel comment.
3384 (ipa_propagate_frequency_1): Be more conservative when profile is read.
3385 (contains_hot_call_p): New function.
3386 (ipa_propagate_frequency): Set frequencies based on counts when
3387 profile is read.
3388 * predict.c (compute_function_frequency): Use PROFILE_READ gueard for
3389 profile; do not tamper with profile after inlining if it is read.
3390
a12cd2db
JH
33912013-09-08 Jan Hubicka <jh@suse.cz>
3392
3393 * ipa-prop.c (try_make_edge_direct_simple_call): Do not special case
3394 speculative edges.
3395
856a1588
JH
33962013-09-08 Jan Hubicka <jh@suse.cz>
3397
3398 * ipa.c (walk_polymorphic_call_targets): Fix redirection before IPA
3399 summary generation.
3400
4f4b0b73
JL
34012013-09-08 Jeff Law <law@redhat.com>
3402
3403 PR bootstrap/58340
3404 * tree-ssa-threadedge.c (thread_across_edge): Fix initialization
3405 of 'found'.
3406
cc4029ee
AK
34072013-09-08 Andi Kleen <ak@linux.intel.com>
3408
3409 * tree-inline.c (estimate_num_insns): Limit asm cost to 1000.
3410
7b395ddd
JH
34112013-09-08 Jan Hubicka <jh@suse.cz>
3412
3413 * ipa.c (walk_polymorphic_call_targets): Fix inliner summary update.
3414
c34c46dd
RS
34152013-09-08 Richard Sandiford <rdsandiford@googlemail.com>
3416
3417 * ira.c (update_equiv_regs): Only call set_paradoxical_subreg
3418 for non-debug insns.
3419 * lra.c (new_insn_reg): Take the containing insn as a parameter.
3420 Only modify lra_reg_info[].biggest_mode if it's non-debug insn.
3421 (collect_non_operand_hard_regs, add_regs_to_insn_regno_info): Update
3422 accordingly.
3423
3462aa02
JH
34242013-09-08 Jan Hubicka <jh@suse.cz>
3425
3426 * cgraphunit.c (walk_polymorphic_call_targets): Permit 0 possible
3427 targets and devirtualize to BUILT_IN_UNREACHABLE.
3428 * timevar.def (TV_IPA_UNREACHABLE): New timevar.
3429 * ipa.c (walk_polymorphic_call_targets): New function.
3430 (symtab_remove_unreachable_nodes): Use it; do not keep all virtual
3431 functions; use the new timevar.
3432 * ipa-devirt.c (maybe_record_node): Do not insert static nodes that
3433 was removed from the program.
3434 (record_binfo): If BINFO corresponds to an anonymous namespace, we may
3435 not consider it in the walk when its vtable is dead.
3436 (possible_polymorphic_call_targets_1): Pass anonymous flag to
3437 record_binfo.
3438 (devirt_variable_node_removal_hook): New function.
3439 (possible_polymorphic_call_targets): Also register
3440 devirt_variable_node_removal_hook.
3441 (ipa_devirt): Do not do non-speculative devirtualization.
3442 (gate_ipa_devirt): One execute if devirtualizing speculatively.
3443
26e5b0fd
JH
34442013-09-08 Jan Hubicka <jh@suse.cz>
3445
3446 * cgraph.h (varpool_node_hook, varpool_node_hook_list,
3447 varpool_add_node_removal_hook, varpool_add_variable_insertion_hook,
3448 varpool_remove_variable_insertion_hook): Declare.
3449 * varpool.c (varpool_node_hook_list): New structure.
3450 (first_varpool_node_removal_hook,
3451 first_varpool_variable_insertion_hook): New variables.
3452 (varpool_add_node_removal_hook, varpool_remove_node_removal_hook,
3453 varpool_call_node_removal_hooks, varpool_add_variable_insertion_hook,
3454 varpool_remove_variable_insertion_hook,
3455 varpool_call_variable_insertion_hooks): New functions.
3456 (varpool_remove_node): Use it.
3457
97f1f314 34582013-09-08 Paolo Carlini <paolo.carlini@oracle.com>
6df2ca09 3459
97f1f314
PC
3460 PR c++/54941
3461 * diagnostic.c (diagnostic_build_prefix): When s.file is
3462 "<built-in>" don't output line and column numbers.
6df2ca09 3463
bcb650cb
JH
34642013-09-06 Jan Hubicka <jh@suse.cz>
3465
3466 * cgraphunit.c (expand_thunk): Get body before touching arguments.
3467 * lto-streamer-out.c: Stream thunks, too.
3468 * lto-streamer-in.c (input_function): Pop cfun here
3469 (lto_read_body): Instead of here.
3470
87f3fea8
CT
34712013-09-06 Caroline Tice <cmtice@google.com>
3472
3473 * doc/install.texi: Add documentation for the --enable-vtable-verify
3474 and the --disable-libvtv configure options.
3475
5e8d9b45
JL
34762013-09-06 Jeff Law <law@redhat.com>
3477
3478 * tree-ssa-dom.c (cprop_into_successor_phis): Also propagate
3479 edge implied equivalences into successor phis.
3480
3a001aff
JR
34812013-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
3482
3483 * resource.c (mark_referenced_resources): Handle COND_EXEC.
3484
34852013-09-06 Claudiu Zissulescu <claziss@synopsys.com>
c42091c1
CZ
3486
3487 * resource.c (mark_target_live_regs): Compute resources taking
3488 into account if a call is predicated or not.
3489
2c641f8b
EB
34902013-09-06 Eric Botcazou <ebotcazou@adacore.com>
3491
3492 * toplev.c (output_stack_usage): Be prepared for suffixes created by
3493 the compiler in the function names.
3494
a81b0a3d
JH
34952013-09-06 Jan Hubicka <jh@suse.cz>
3496
3497 PR middle-end/58094
3498 * ipa-inline.c (has_caller_p): New function.
3499 (want_inline_function_to_all_callers_p): Use it.
3500 (sum_callers, inline_to_all_callers): Break out from ...
3501 (ipa_inline): ... here.
3502
68e4ca7e
JH
35032013-09-06 Jan Hubicka <jh@suse.cz>
3504
2c641f8b
EB
3505 * config/i386/i386.c (ix86_hard_regno_mode_ok): AVX modes are valid
3506 only when AVX is enabled.
68e4ca7e 3507
3c73e2fe
JG
35082013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3509
3510 * config/aarch64/aarch64.md
3511 (*movtf_aarch64): Use neon_<ls>dm_2 as type where v8type
3512 is fpsimd_<load/store>2.
3513 (load_pair<mode>): Likewise.
3514 (store_pair<mode>): Likewise.
3515
8c48eecd
JG
35162013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3517
3518 * config/arm/types.md (type): Add "mrs" type.
3519 * config/aarch64/aarch64.md
3520 (aarch64_load_tp_hard): Make type "mrs".
3521 * config/arm/arm.md
3522 (load_tp_hard): Make type "mrs".
3523 * config/arm/cortex-a15.md: Update with new attributes.
3524 * config/arm/cortex-a5.md: Update with new attributes.
3525 * config/arm/cortex-a53.md: Update with new attributes.
3526 * config/arm/cortex-a7.md: Update with new attributes.
3527 * config/arm/cortex-a8.md: Update with new attributes.
3528 * config/arm/cortex-a9.md: Update with new attributes.
3529 * config/arm/cortex-m4.md: Update with new attributes.
3530 * config/arm/cortex-r4.md: Update with new attributes.
3531 * config/arm/fa526.md: Update with new attributes.
3532 * config/arm/fa606te.md: Update with new attributes.
3533 * config/arm/fa626te.md: Update with new attributes.
3534 * config/arm/fa726te.md: Update with new attributes.
3535
9ea187a5
JG
35362013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3537
3538 * config/aarch64/aarch64.md
3539 (*movti_aarch64): Use "multiple" for type where v8type is "move2".
3540 (*movtf_aarch64): Likewise.
3541 * config/arm/arm.md
3542 (thumb1_movdi_insn): Use "multiple" for type where more than one
3543 instruction is used for a move.
3544 (*arm32_movhf): Likewise.
3545 (*thumb_movdf_insn): Likewise.
3546
292b89b3
JG
35472013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3548
3549 * config/arm/types.md (type): Rename fcpys to fmov.
3550 * config/arm/vfp.md
3551 (*arm_movsi_vfp): Rename type fcpys as fmov.
3552 (*thumb2_movsi_vfp): Likewise
3553 (*movhf_vfp_neon): Likewise
3554 (*movhf_vfp): Likewise
3555 (*movsf_vfp): Likewise
3556 (*thumb2_movsf_vfp): Likewise
3557 (*movsfcc_vfp): Likewise
3558 (*thumb2_movsfcc_vfp): Likewise
3559 * config/aarch64/aarch64-simd.md
3560 (move_lo_quad_<mode>): Replace type mov_reg with fmovs.
3561 * config/aarch64/aarch64.md
3562 (*movsi_aarch64): Replace type mov_reg with fmovs.
3563 (*movdi_aarch64): Likewise
3564 (*movsf_aarch64): Likewise
3565 (*movdf_aarch64): Likewise
3566 * config/arm/arm.c
3567 (cortexa7_older_only): Rename TYPE_FCPYS to TYPE_FMOV.
3568 * config/arm/iwmmxt.md
3569 (*iwmmxt_movsi_insn): Rename type fcpys as fmov.
3570 * config/arm/arm1020e.md: Update with new attributes.
3571 * config/arm/cortex-a15-neon.md: Update with new attributes.
3572 * config/arm/cortex-a5.md: Update with new attributes.
3573 * config/arm/cortex-a53.md: Update with new attributes.
3574 * config/arm/cortex-a7.md: Update with new attributes.
3575 * config/arm/cortex-a8-neon.md: Update with new attributes.
3576 * config/arm/cortex-a9.md: Update with new attributes.
3577 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3578 * config/arm/cortex-r4f.md: Update with new attributes.
3579 * config/arm/marvell-pj4.md: Update with new attributes.
3580 * config/arm/vfp11.md: Update with new attributes.
3581
6a24a83e
JG
35822013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3583
3584 * config/aarch64/aarch64.md
3585 (*madd<mode>): Fix type attribute.
3586 (*maddsi_uxtw): Likewise.
3587 (*msub<mode>): Likewise.
3588 (*msubsi_uxtw): Likewise.
3589 (<su_optab>maddsidi4): Likewise.
3590 (<su_optab>msubsidi4): Likewise.
3591
b86923f0
JG
35922013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3593
3594 * config/arm/types.md: Split fdiv<sd> as fsqrt<sd>, fdiv<sd>.
3595 * config/arm/arm.md (core_cycles): Remove fdiv.
3596 * config/arm/vfp.md:
3597 (*sqrtsf2_vfp): Update for attribute changes.
3598 (*sqrtdf2_vfp): Likewise.
3599 * config/aarch64/aarch64.md:
3600 (sqrt<mode>2): Update for attribute changes.
3601 * config/arm/arm1020e.md: Update with new attributes.
3602 * config/arm/cortex-a15-neon.md: Update with new attributes.
3603 * config/arm/cortex-a5.md: Update with new attributes.
3604 * config/arm/cortex-a53.md: Update with new attributes.
3605 * config/arm/cortex-a7.md: Update with new attributes.
3606 * config/arm/cortex-a8-neon.md: Update with new attributes.
3607 * config/arm/cortex-a9.md: Update with new attributes.
3608 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3609 * config/arm/cortex-r4f.md: Update with new attributes.
3610 * config/arm/marvell-pj4.md: Update with new attributes.
3611 * config/arm/vfp11.md: Update with new attributes.
3612
7b49c9e1
JG
36132013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3614
3615 * config/arm/types.md
3616 (type): Split f_cvt as f_cvt, f_cvtf2i, f_cvti2f.
3617 * config/aarch64/aarch64.md
3618 (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Update with
3619 new attributes.
3620 (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
3621 (fixuns_trunc<GPF:mode><GPI:mode>2): Likewise.
3622 (float<GPI:mode><GPF:mode>2): Likewise.
3623 * config/arm/vfp.md
3624 (*truncsisf2_vfp): Update with new attributes.
3625 (*truncsidf2_vfp): Likewise.
3626 (fixuns_truncsfsi2): Likewise.
3627 (fixuns_truncdfsi2): Likewise.
3628 (*floatsisf2_vfp): Likewise.
3629 (*floatsidf2_vfp): Likewise.
3630 (floatunssisf2): Likewise.
3631 (floatunssidf2): Likewise.
3632 (*combine_vcvt_f32_<FCVTI32typename>): Likewise.
3633 (*combine_vcvt_f64_<FCVTI32typename>): Likewise.
3634 * config/arm/arm1020e.md: Update with new attributes.
3635 * config/arm/cortex-a15-neon.md: Update with new attributes.
3636 * config/arm/cortex-a5.md: Update with new attributes.
3637 * config/arm/cortex-a53.md: Update with new attributes.
3638 * config/arm/cortex-a7.md: Update with new attributes.
3639 * config/arm/cortex-a8-neon.md: Update with new attributes.
3640 * config/arm/cortex-a9.md: Update with new attributes.
3641 * config/arm/cortex-m4-fpu.md: Update with new attributes.
3642 * config/arm/cortex-r4f.md: Update with new attributes.
3643 * config/arm/marvell-pj4.md: Update with new attributes.
3644 * config/arm/vfp11.md: Update with new attributes.
3645
e7df8af8
JG
36462013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3647
3648 * config/aarch64/arm_neon.h
3649 (vqtbl<1,2,3,4><q>_s8): Fix control vector parameter type.
3650 (vqtbx<1,2,3,4><q>_s8): Likewise.
3651
594726e4
JG
36522013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3653
f43245d1
UB
3654 * config/arm/types.md: Add "no_insn", "multiple" and "untyped" types.
3655 * config/arm/arm-fixed.md: Add type attribute to all insn patterns.
594726e4
JG
3656 (add<mode>3): Add type attribute.
3657 (add<mode>3): Likewise.
3658 (usadd<mode>3): Likewise.
3659 (ssadd<mode>3): Likewise.
3660 (sub<mode>3): Likewise.
3661 (sub<mode>3): Likewise.
3662 (ussub<mode>3): Likewise.
3663 (sssub<mode>3): Likewise.
3664 (ssmulsa3): Likewise.
3665 (usmulusa3): Likewise.
3666 (arm_usatsihi): Likewise.
3667 * config/arm/vfp.md
3668 (*movdi_vfp): Add types for all instructions.
3669 (*movdi_vfp_cortexa8): Likewise.
3670 (*movhf_vfp_neon): Likewise.
3671 (*movhf_vfp): Likewise.
3672 (*movdf_vfp): Likewise.
3673 (*thumb2_movdf_vfp): Likewise.
3674 (*thumb2_movdfcc_vfp): Likewise.
3675 * config/arm/arm.md: Add type attribute to all insn patterns.
3676 (*thumb1_adddi3): Add type attribute.
3677 (*arm_adddi3): Likewise.
3678 (*adddi_sesidi_di): Likewise.
3679 (*adddi_zesidi_di): Likewise.
3680 (*thumb1_addsi3): Likewise.
3681 (addsi3_compare0): Likewise.
3682 (*addsi3_compare0_scratch): Likewise.
3683 (*compare_negsi_si): Likewise.
3684 (cmpsi2_addneg): Likewise.
3685 (*addsi3_carryin_<optab>): Likewise.
3686 (*addsi3_carryin_alt2_<optab>): Likewise.
3687 (*addsi3_carryin_clobercc_<optab>): Likewise.
3688 (*subsi3_carryin): Likewise.
3689 (*subsi3_carryin_const): Likewise.
3690 (*subsi3_carryin_compare): Likewise.
3691 (*subsi3_carryin_compare_const): Likewise.
3692 (*arm_subdi3): Likewise.
3693 (*thumb_subdi3): Likewise.
3694 (*subdi_di_zesidi): Likewise.
3695 (*subdi_di_sesidi): Likewise.
3696 (*subdi_zesidi_di): Likewise.
3697 (*subdi_sesidi_di): Likewise.
3698 (*subdi_zesidi_ze): Likewise.
3699 (thumb1_subsi3_insn): Likewise.
3700 (*arm_subsi3_insn): Likewise.
3701 (*anddi3_insn): Likewise.
3702 (*anddi_zesidi_di): Likewise.
3703 (*anddi_sesdi_di): Likewise.
3704 (*ne_zeroextracts): Likewise.
3705 (*ne_zeroextracts): Likewise.
3706 (*ite_ne_zeroextr): Likewise.
3707 (*ite_ne_zeroextr): Likewise.
3708 (*anddi_notdi_di): Likewise.
3709 (*anddi_notzesidi): Likewise.
3710 (*anddi_notsesidi): Likewise.
3711 (andsi_notsi_si): Likewise.
3712 (thumb1_bicsi3): Likewise.
3713 (*iordi3_insn): Likewise.
3714 (*iordi_zesidi_di): Likewise.
3715 (*iordi_sesidi_di): Likewise.
3716 (*thumb1_iorsi3_insn): Likewise.
3717 (*xordi3_insn): Likewise.
3718 (*xordi_zesidi_di): Likewise.
3719 (*xordi_sesidi_di): Likewise.
3720 (*arm_xorsi3): Likewise.
3721 (*andsi_iorsi3_no): Likewise.
3722 (*smax_0): Likewise.
3723 (*smax_m1): Likewise.
3724 (*arm_smax_insn): Likewise.
3725 (*smin_0): Likewise.
3726 (*arm_smin_insn): Likewise.
3727 (*arm_umaxsi3): Likewise.
3728 (*arm_uminsi3): Likewise.
3729 (*minmax_arithsi): Likewise.
3730 (*minmax_arithsi_): Likewise.
3731 (*satsi_<SAT:code>): Likewise.
3732 (arm_ashldi3_1bit): Likewise.
3733 (arm_ashrdi3_1bit): Likewise.
3734 (arm_lshrdi3_1bit): Likewise.
3735 (*arm_negdi2): Likewise.
3736 (*thumb1_negdi2): Likewise.
3737 (*arm_negsi2): Likewise.
3738 (*thumb1_negsi2): Likewise.
3739 (*negdi_extendsid): Likewise.
3740 (*negdi_zero_extend): Likewise.
3741 (*arm_abssi2): Likewise.
3742 (*thumb1_abssi2): Likewise.
3743 (*arm_neg_abssi2): Likewise.
3744 (*thumb1_neg_abss): Likewise.
3745 (one_cmpldi2): Likewise.
3746 (extend<mode>di2): Likewise.
3747 (*compareqi_eq0): Likewise.
3748 (*arm_extendhisi2addsi): Likewise.
3749 (*arm_movdi): Likewise.
3750 (*thumb1_movdi_insn): Likewise.
3751 (*arm_movt): Likewise.
3752 (*thumb1_movsi_insn): Likewise.
3753 (pic_add_dot_plus_four): Likewise.
3754 (pic_add_dot_plus_eight): Likewise.
3755 (tls_load_dot_plus_eight): Likewise.
3756 (*thumb1_movhi_insn): Likewise.
3757 (*thumb1_movsf_insn): Likewise.
3758 (*movdf_soft_insn): Likewise.
3759 (*thumb_movdf_insn): Likewise.
3760 (cbranchsi4_insn): Likewise.
3761 (cbranchsi4_scratch): Likewise.
3762 (*negated_cbranchsi4): Likewise.
3763 (*tbit_cbranch): Likewise.
3764 (*tlobits_cbranch): Likewise.
3765 (*tstsi3_cbranch): Likewise.
3766 (*cbranchne_decr1): Likewise.
3767 (*addsi3_cbranch): Likewise.
3768 (*addsi3_cbranch_scratch): Likewise.
3769 (*arm_cmpdi_insn): Likewise.
3770 (*arm_cmpdi_unsig): Likewise.
3771 (*arm_cmpdi_zero): Likewise.
3772 (*thumb_cmpdi_zero): Likewise.
3773 (*deleted_compare): Likewise.
3774 (*mov_scc): Likewise.
3775 (*mov_negscc): Likewise.
3776 (*mov_notscc): Likewise.
3777 (*cstoresi_eq0_thumb1_insn): Likewise.
3778 (cstoresi_nltu_thumb1): Likewise.
3779 (cstoresi_ltu_thu): Likewise.
3780 (thumb1_addsi3_addgeu): Likewise.
3781 (*arm_jump): Likewise.
3782 (*thumb_jump): Likewise.
3783 (*check_arch2): Likewise.
3784 (arm_casesi_internal): Likewise.
3785 (thumb1_casesi_dispatch): Likewise.
3786 (*arm_indirect_jump): Likewise.
3787 (*thumb1_indirect_jump): Likewise.
3788 (nop): Likewise.
3789 (*and_scc): Likewise.
3790 (*ior_scc): Likewise.
3791 (*compare_scc): Likewise.
3792 (*cond_move): Likewise.
3793 (*cond_arith): Likewise.
3794 (*cond_sub): Likewise.
3795 (*cmp_ite0): Likewise.
3796 (*cmp_ite1): Likewise.
3797 (*cmp_and): Likewise.
3798 (*cmp_ior): Likewise.
3799 (*ior_scc_scc): Likewise.
3800 (*ior_scc_scc_cmp): Likewise.
3801 (*and_scc_scc): Likewise.
3802 (*and_scc_scc_cmp): Likewise.
3803 (*and_scc_scc_nod): Likewise.
3804 (*negscc): Likewise.
3805 (movcond_addsi): Likewise.
3806 (movcond): Likewise.
3807 (*ifcompare_plus_move): Likewise.
3808 (*if_plus_move): Likewise.
3809 (*ifcompare_move_plus): Likewise.
3810 (*if_move_plus): Likewise.
3811 (*ifcompare_arith_arith): Likewise.
3812 (*if_arith_arith): Likewise.
3813 (*ifcompare_arith_move): Likewise.
3814 (*if_arith_move): Likewise.
3815 (*ifcompare_move_arith): Likewise.
3816 (*if_move_arith): Likewise.
3817 (*ifcompare_move_not): Likewise.
3818 (*if_move_not): Likewise.
3819 (*ifcompare_not_move): Likewise.
3820 (*if_not_move): Likewise.
3821 (*ifcompare_shift_move): Likewise.
3822 (*if_shift_move): Likewise.
3823 (*ifcompare_move_shift): Likewise.
3824 (*if_move_shift): Likewise.
3825 (*ifcompare_shift_shift): Likewise.
3826 (*ifcompare_not_arith): Likewise.
3827 (*ifcompare_arith_not): Likewise.
3828 (*if_arith_not): Likewise.
3829 (*ifcompare_neg_move): Likewise.
3830 (*if_neg_move): Likewise.
3831 (*ifcompare_move_neg): Likewise.
3832 (*if_move_neg): Likewise.
3833 (prologue_thumb1_interwork): Likewise.
3834 (*cond_move_not): Likewise.
3835 (*sign_extract_onebit): Likewise.
3836 (*not_signextract_onebit): Likewise.
3837 (stack_tie): Likewise.
3838 (align_4): Likewise.
3839 (align_8): Likewise.
3840 (consttable_end): Likewise.
3841 (consttable_1): Likewise.
3842 (consttable_2): Likewise.
3843 (consttable_4): Likewise.
3844 (consttable_8): Likewise.
3845 (consttable_16): Likewise.
3846 (*thumb1_tablejump): Likewise.
3847 (prefetch): Likewise.
3848 (force_register_use): Likewise.
3849 (thumb_eh_return): Likewise.
3850 (load_tp_hard): Likewise.
3851 (load_tp_soft): Likewise.
3852 (tlscall): Likewise.
3853 (*arm_movtas_ze): Likewise.
3854 (*arm_rev): Likewise.
3855 (*arm_revsh): Likewise.
3856 (*arm_rev16): Likewise.
3857 * config/arm/thumb2.md
3858 (*thumb2_smaxsi3): Likewise.
3859 (*thumb2_sminsi3): Likewise.
3860 (*thumb32_umaxsi3): Likewise.
3861 (*thumb2_uminsi3): Likewise.
3862 (*thumb2_negdi2): Likewise.
3863 (*thumb2_abssi2): Likewise.
3864 (*thumb2_neg_abss): Likewise.
3865 (*thumb2_movsi_insn): Likewise.
3866 (tls_load_dot_plus_four): Likewise.
3867 (*thumb2_movhi_insn): Likewise.
3868 (*thumb2_mov_scc): Likewise.
3869 (*thumb2_mov_negs): Likewise.
3870 (*thumb2_mov_negs): Likewise.
3871 (*thumb2_mov_nots): Likewise.
3872 (*thumb2_mov_nots): Likewise.
3873 (*thumb2_movsicc_): Likewise.
3874 (*thumb2_movsfcc_soft_insn): Likewise.
3875 (*thumb2_indirect_jump): Likewise.
3876 (*thumb2_and_scc): Likewise.
3877 (*thumb2_ior_scc): Likewise.
3878 (*thumb2_ior_scc_strict_it): Likewise.
3879 (*thumb2_cond_move): Likewise.
3880 (*thumb2_cond_arith): Likewise.
3881 (*thumb2_cond_ari): Likewise.
3882 (*thumb2_cond_sub): Likewise.
3883 (*thumb2_negscc): Likewise.
3884 (*thumb2_movcond): Likewise.
3885 (thumb2_casesi_internal): Likewise.
3886 (thumb2_casesi_internal_pic): Likewise.
3887 (*thumb2_alusi3_short): Likewise.
3888 (*thumb2_mov<mode>_shortim): Likewise.
3889 (*thumb2_addsi_short): Likewise.
3890 (*thumb2_subsi_short): Likewise.
3891 (thumb2_addsi3_compare0): Likewise.
3892 (*thumb2_cbz): Likewise.
3893 (*thumb2_cbnz): Likewise.
3894 (*thumb2_one_cmplsi2_short): Likewise.
3895 (*thumb2_negsi2_short): Likewise.
3896 (*orsi_notsi_si): Likewise.
3897 * config/arm/arm1020e.md: Update with new attributes.
3898 * config/arm/arm1026ejs.md: Update with new attributes.
3899 * config/arm/arm1136jfs.md: Update with new attributes.
3900 * config/arm/arm926ejs.md: Update with new attributes.
3901 * config/arm/cortex-a15.md: Update with new attributes.
3902 * config/arm/cortex-a5.md: Update with new attributes.
3903 * config/arm/cortex-a53.md: Update with new attributes.
3904 * config/arm/cortex-a7.md: Update with new attributes.
3905 * config/arm/cortex-a8.md: Update with new attributes.
3906 * config/arm/cortex-a9.md: Update with new attributes.
3907 * config/arm/cortex-m4.md: Update with new attributes.
3908 * config/arm/cortex-r4.md: Update with new attributes.
3909 * config/arm/fa526.md: Update with new attributes.
3910 * config/arm/fa606te.md: Update with new attributes.
3911 * config/arm/fa626te.md: Update with new attributes.
3912 * config/arm/fa726te.md: Update with new attributes.
3913
1c83b673
JG
39142013-09-06 James Greenhalgh <james.greenhalgh@arm.com>
3915
3916 * config/aarch64/aarch64-simd.md
3917 (aarch64_sqdml<SBINQOPS:as>l_n<mode>_internal): Use
3918 <vwx> iterator to ensure correct register choice.
3919 (aarch64_sqdml<SBINQOPS:as>l2_n<mode>_internal): Likewise.
3920 (aarch64_sqdmull_n<mode>): Likewise.
3921 (aarch64_sqdmull2_n<mode>_internal): Likewise.
3922 * config/aarch64/arm_neon.h
3923 (vml<as><q>_lane<q>_<su>16): Use 'x' constraint for element vector.
3924 (vml<as><q>_n_<su>16): Likewise.
3925 (vml<as>l_high_lane<q>_<su>16): Likewise.
3926 (vml<as>l_high_n_<su>16): Likewise.
3927 (vml<as>l_lane<q>_<su>16): Likewise.
3928 (vml<as>l_n_<su>16): Likewise.
3929 (vmul<q>_lane<q>_<su>16): Likewise.
3930 (vmul<q>_n_<su>16): Likewise.
3931 (vmull_lane<q>_<su>16): Likewise.
3932 (vmull_n_<su>16): Likewise.
3933 (vmull_high_lane<q>_<su>16): Likewise.
3934 (vmull_high_n_<su>16): Likewise.
3935 (vqrdmulh<q>_n_s16): Likewise.
3936
bb1ae543
TB
39372013-09-06 Tejas Belagod <tejas.belagod@arm.com>
3938
3939 * config/aarch64/arm_neon.h: Fix all vdup<bhsd_lane<q> intrinsics to
3940 have the correct lane parameter.
3941
f23c0742
RB
39422013-09-06 Richard Biener <rguenther@suse.de>
3943
3944 * cfganal.c (control_dependences::~control_dependences):
3945 Properly free all of the vector.
3946
c1d49770
KY
39472013-09-06 Kirill Yukhin <kirill.yukhin@intel.com>
3948
3949 PR target/58269
3950 * config/i386/i386.c (ix86_conditional_register_usage):
3951 Proper initialize extended SSE registers.
3952
6da47f52
JH
39532013-09-06 Jan Hubicka <jh@suse.cz>
3954
3955 PR tree-optimization/58311
3956 * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.
3957
39582013-09-06 Jan Hubicka <jh@suse.cz>
3959
3960 * Makefile.in (tree-sra.o): Update dependencies.
3961 * tree-sra.c: Include ipa-utils.h
3962 (scan_function): Use recursive_call_p.
3963 (has_caller_p): New function.
3964 (cgraph_for_node_and_aliases): Count also callers of aliases.
3965
fc11f321
JH
39662013-09-06 Jan Hubicka <jh@suse.cz>
3967
3968 PR middle-end/58094
3969 * cgraph.h (symtab_semantically_equivalent_p): Declare.
3970 * tree-tailcall.c: Include ipa-utils.h.
3971 (find_tail_calls): Use it.
3972 * ipa-pure-const.c (check_call): Likewise.
3973 * ipa-utils.c (recursive_call_p): New function.
3974 * ipa-utils.h (recursive_call_p): Dclare.
3975 * symtab.c (symtab_nonoverwritable_alias): Fix formatting.
3976 (symtab_semantically_equivalent_p): New function.
3977 * Makefile.in (tree-tailcall.o): Update dependencies.
3978
9a6af450
EB
39792013-09-06 Eric Botcazou <ebotcazou@adacore.com>
3980
3981 * ipa-split.c (split_function): Set DECL_NO_INLINE_WARNING_P on the
3982 non-inlinable part.
3983
35f32ad4
RB
39842013-09-06 Richard Biener <rguenther@suse.de>
3985
3986 * lto-streamer.h (lto_global_var_decls): Remove.
3987 * Makefile.in (OBJS): Remove lto-symtab.o.
3988 (lto-symtab.o): Remove.
3989 (GTFILES): Remove lto-symtab.c
3990 * lto-symtab.c: Move to lto/
3991
d12a76f3
AK
39922013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3993
3994 * config/s390/s390.md (UNSPEC_FPINT_FLOOR, UNSPEC_FPINT_BTRUNC)
3995 (UNSPEC_FPINT_ROUND, UNSPEC_FPINT_CEIL, UNSPEC_FPINT_NEARBYINT)
3996 (UNSPEC_FPINT_RINT): New constant definitions.
3997 (FPINT, fpint_name, fpint_roundingmode): New integer iterator
3998 definition with 2 attributes.
3999 ("<FPINT:fpint_name><BFP:mode>2", "rint<BFP:mode>2")
4000 ("<FPINT:fpint_name><DFP:mode>2", "rint<DFP:mode>2"): New pattern
4001 definitions.
4002
40032013-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4004
f43245d1 4005 * config/s390/s390.md: Add "bcr_flush" value to mnemonic attribute.
d12a76f3
AK
4006 ("mem_thread_fence_1"): Use bcr 14,0 for z196 and later.
4007 Set the mnemonic attribute to "bcr_flush". Set the "z196prop"
4008 attribute to "z196_alone".
4009 * config/s390/2827.md: Add "bcr_flush" to "ooo_groupalone" and
4010 "zEC12_simple".
4011
c8e9d8c3
RB
40122013-09-06 Richard Biener <rguenther@suse.de>
4013
4014 * basic-block.h (class control_dependences): New.
4015 * tree-ssa-dce.c (control_dependence_map): Remove.
4016 (cd): New global.
4017 (EXECUTE_IF_CONTROL_DEPENDENT): Remove.
4018 (set_control_dependence_map_bit, clear_control_dependence_bitmap,
4019 find_pdom, find_control_dependence, find_all_control_dependences):
4020 Move to cfganal.c.
f43245d1
UB
4021 (mark_control_dependent_edges_necessary,
4022 find_obviously_necessary_stmts, propagate_necessity, tree_dce_init,
4023 tree_dce_done, perform_tree_ssa_dce): Adjust.
c8e9d8c3
RB
4024 * cfganal.c (set_control_dependence_map_bit,
4025 clear_control_dependence_bitmap, find_pdom, find_control_dependence,
4026 find_all_control_dependences): Move from tree-ssa-dce.c and
4027 implement as methods of control_dependences class.
4028 (control_dependences::control_dependences): New.
4029 (control_dependences::~control_dependences): Likewise.
4030 (control_dependences::get_edges_dependent_on): Likewise.
4031 (control_dependences::get_edge): Likewise.
4032
7d2ba471
JH
40332013-09-04 Jan Hubicka <jh@suse.cz>
4034
4035 * tree.c (types_same_for_odr): Drop overactive check.
4036 * ipa-devirt.c (hash_type_name): Likewise.
4037
e18412fc
JH
40382013-09-04 Jan Hubicka <jh@suse.cz>
4039
4040 * cgraphunit.c (walk_polymorphic_call_targets): Break out from ...
4041 (analyze_functions): ... here.
4042
d352b245
JH
40432013-09-04 Jan Hubicka <jh@suse.cz>
4044
4045 PR middle-end/58201
4046 * cgraphunit.c (analyze_functions): Clear AUX fields
4047 after processing; initialize assembler name has.
4048
770da076
JL
40492013-09-05 Jeff Law <law@redhat.com>
4050
4051 * tree-ssa-threadedge.c (thread_around_empty_blocks): Renamed
4052 from thread_around_empty_block. Record threading path into PATH.
4053 Recurse if threading through the initial block is successful.
4054 (thread_across_edge): Corresponding changes to slightly simplify.
4055
fe6f68e2
JG
40562013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
4057
4058 * config/aarch64/aarch64.md
4059 (type): Remove frecpe, frecps, frecpx.
4060 (aarch64_frecp<FRECP:frecp_suffix><mode>): Move to aarch64-simd.md,
4061 fix to be a TARGET_SIMD instruction.
4062 (aarch64_frecps): Remove.
4063 * config/aarch64/aarch64-simd.md
4064 (aarch64_frecp<FRECP:frecp_suffix><mode>): New, moved from aarch64.md
4065 (aarch64_frecps<mode>): Handle all float/vector of float modes.
4066
6e4150e1
JG
40672013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
4068 Sofiane Naci <sofiane.naci@arm.com>
4069
f43245d1 4070 * config/arm/types.md (define_attr "type"): Expand "arlo_imm"
6e4150e1 4071 into "adr", "alu_imm", "alus_imm", "logic_imm", "logics_imm".
f43245d1
UB
4072 Expand "arlo_reg" into "adc_reg", "adc_imm", "adcs_reg", "adcs_imm",
4073 "alu_ext", "alu_reg", "alus_ext", "alus_reg", "bfm", "csel",
4074 "logic_reg", "logics_reg", "rev". Expand "arlo_shift" into
4075 "alu_shift_imm", "alus_shift_imm", "logic_shift_imm",
4076 "logics_shift_imm". Expand "arlo_shift_reg" into "alu_shift_reg",
4077 "alus_shift_reg", "logic_shift_reg", "logics_shift_reg". Expand "clz"
4078 into "clz, "rbit". Rename "shift" to "shift_imm".
6e4150e1 4079 * config/arm/arm.md (define_attr "core_cycles"): Update for attribute
f43245d1 4080 changes. Update for attribute changes all occurrences of arlo_* and
6e4150e1
JG
4081 shift* types.
4082 * config/arm/arm-fixed.md: Update for attribute changes
4083 all occurrences of arlo_* types.
4084 * config/arm/thumb2.md: Update for attribute changes all occurrences
4085 of arlo_* types.
4086 * config/arm/arm.c (xscale_sched_adjust_cost): (rtx insn, rtx
4087 (cortexa7_older_only): Likewise.
4088 (cortexa7_younger): Likewise.
4089 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
4090 (1020alu_shift_op): Likewise.
4091 (1020alu_shift_reg_op): Likewise.
4092 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
4093 (alu_shift_op): Likewise.
4094 (alu_shift_reg_op): Likewise.
f43245d1 4095 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
6e4150e1
JG
4096 (11_alu_shift_op): Likewise.
4097 (11_alu_shift_reg_op): Likewise.
4098 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
4099 (9_alu_shift_reg_op): Likewise.
4100 * config/arm/cortex-a15.md (cortex_a15_alu): Update for
4101 attribute changes.
4102 (cortex_a15_alu_shift): Likewise.
4103 (cortex_a15_alu_shift_reg): Likewise.
4104 * config/arm/cortex-a5.md (cortex_a5_alu): Update for
4105 attribute changes.
4106 (cortex_a5_alu_shift): Likewise.
f43245d1
UB
4107 * config/arm/cortex-a53.md (cortex_a53_alu): Update for
4108 attribute changes.
6e4150e1 4109 (cortex_a53_alu_shift): Likewise.
f43245d1
UB
4110 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for
4111 attribute changes.
6e4150e1
JG
4112 (cortex_a7_alu_reg): Likewise.
4113 (cortex_a7_alu_shift): Likewise.
f43245d1
UB
4114 * config/arm/cortex-a8.md (cortex_a8_alu): Update for
4115 attribute changes.
6e4150e1
JG
4116 (cortex_a8_alu_shift): Likewise.
4117 (cortex_a8_alu_shift_reg): Likewise.
f43245d1 4118 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
6e4150e1 4119 (cortex_a9_dp_shift): Likewise.
f43245d1
UB
4120 * config/arm/cortex-m4.md (cortex_m4_alu): Update for
4121 attribute changes.
6e4150e1
JG
4122 * config/arm/cortex-r4.md
4123 (cortex_r4_alu): Update for attribute changes.
4124 (cortex_r4_mov): Likewise.
4125 (cortex_r4_alu_shift_reg): Likewise.
f43245d1 4126 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
6e4150e1 4127 (526_alu_shift_op): Likewise.
f43245d1
UB
4128 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
4129 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
6e4150e1 4130 (626te_alu_shift_op): Likewise.
f43245d1 4131 * config/arm/fa726te.md (726te_alu_op): Update for attribute changes.
6e4150e1
JG
4132 (726te_alu_shift_op): Likewise.
4133 (726te_alu_shift_reg_op): Likewise.
4134 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
4135 (mp626_alu_shift_op): Likewise.
4136 * config/arm/marvell-pj4.md (pj4_alu): Update for attribute changes.
4137 (pj4_alu_conds): Likewise.
4138 (pj4_shift): Likewise.
4139 (pj4_shift_conds): Likewise.
4140 (pj4_alu_shift): Likewise.
4141 (pj4_alu_shift_conds): Likewise.
4142 * config/aarch64/aarch64.md: Update for attribute change
4143 all occurrences of arlo_* and shift* types.
4144
e6523306
MS
41452013-09-05 Mike Stump <mikestump@comcast.net>
4146
4147 * tree.h: Move documentation for tree_function_decl to tree-core.h
4148 with the declaration.
4149
80a18161
PB
41502013-09-05 Peter Bergner <bergner@vnet.ibm.com>
4151
4152 PR target/58139
4153 * reginfo.c (choose_hard_reg_mode): Scan through all mode classes
4154 looking for widest mode.
4155
6994430a
EB
41562013-09-05 Eric Botcazou <ebotcazou@adacore.com>
4157
4158 * config.gcc (*-*-vxworks*): Do not override an existing extra_objs.
4159
e67f39f7
RB
41602013-09-05 Richard Biener <rguenther@suse.de>
4161
4162 PR tree-optimization/58137
4163 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
4164 Do not create vectors of pointers.
4165 * tree-vect-loop.c (get_initial_def_for_induction): Use proper
4166 types for the components of the vector initializer.
4167 * tree-cfg.c (verify_gimple_assign_binary): Remove special-casing
4168 allowing pointer vectors with PLUS_EXPR/MINUS_EXPR.
4169
568cda29
MJ
41702013-09-05 Martin Jambor <mjambor@suse.cz>
4171
4172 * ipa-prop.c (remove_described_reference): Accept missing references,
4173 return false if that hppens, otherwise return true.
4174 (cgraph_node_for_jfunc): New function.
4175 (try_decrement_rdesc_refcount): Likewise.
4176 (try_make_edge_direct_simple_call): Use them.
4177 (ipa_edge_removal_hook): Remove references from rdescs.
4178 (ipa_edge_duplication_hook): Clone rdescs and their references
4179 when the new edge has the same caller as the old one.
4180 * cgraph.c (cgraph_resolve_speculation): Remove speculative
4181 reference before removing any edges.
4182
5a200acb
RE
41832013-09-05 Richard Earnshaw <rearnsha@arm.com>
4184
4185 * arm.c (thumb2_emit_strd_push): Rewrite to use pre-decrement on
4186 initial store.
4187 * thumb2.md (thumb2_storewb_parisi): New pattern.
4188
5922847b
YZ
41892013-09-05 Yufeng Zhang <yufeng.zhang@arm.com>
4190
4191 * config/aarch64/aarch64-option-extensions.def: Add
4192 AARCH64_OPT_EXTENSION of 'crc'.
4193 * config/aarch64/aarch64.h (AARCH64_FL_CRC): New define.
4194 (AARCH64_ISA_CRC): Ditto.
4195 * doc/invoke.texi (-march and -mcpu feature modifiers): Add
4196 description of the CRC extension.
4197
996746aa
AI
41982013-09-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
4199
4200 * config/rs6000/linux64.h: Define OPTION_BIONIC and OPTION_UCLIBC.
4201 * config/rs6000/linux.h: Ditto.
4202 * alpha/linux.h: Ditto.
4203 * config/bfin/uclinux.h: Define TARGET_LIBC_HAS_FUNCTION as
4204 no_c99_libc_has_function.
4205 * config/c6x/uclinux-elf.h: Ditto.
4206 * config/lm32/uclinux-elf.h: Ditto.
4207 * config/m68k/uclinux.h: Ditto.
4208 * config/moxie/uclinux.h: Ditto.
4209 * config.gcc (bfin*-linux-uclibc*): Add t-linux-android to tmake_file.
4210 (crisv32-*-linux*, cris-*-linux*): Ditto.
4211 * config/bfin/bfin.c: Include "tm_p.h".
4212
c370d99f
RB
42132013-09-05 Richard Biener <rguenther@suse.de>
4214
4215 * tree-vect-loop.c (vect_analyze_loop_operations): Properly
4216 check for a definition without a basic-block.
4217
003bb7f3
JG
42182013-09-05 James Greenhalgh <james.greenhalgh@arm.com>
4219 Sofiane Naci <sofiane.naci@arm.com>
4220
4221 * config/aarch64/aarch64.md
4222 (*movti_aarch64): Rename r_2_f and f_2_r.
4223 (*movsf_aarch64): Likewise.
4224 (*movdf_aarch64): Likewise.
4225 (*movtf_aarch64): Likewise.
4226 (aarch64_movdi_<mode>low): Likewise.
4227 (aarch64_movdi_<mode>high): Likewise.
4228 (aarch64_mov<mode>high_di): Likewise.
4229 (aarch64_mov<mode>low_di): Likewise.
4230 (aarch64_movtilow_tilow): Likewise.
4231 * config/arm/arm.md (attribute "neon_type"): Delete. Move attribute
4232 values to config/arm/types.md
4233 (attribute "conds"): Update for attribute change.
4234 (anddi3_insn): Likewise.
4235 (iordi3_insn): Likewise.
4236 (xordi3_insn): Likewise.
4237 (one_cmpldi2): Likewise.
4238 * config/arm/types.md (type): Add Neon types.
4239 * config/arm/neon.md (neon_mov<mode>): Remove "neon_type" attribute,
4240 use "type" attribute.
4241 (movmisalign<mode>_neon_store): Likewise.
4242 (movmisalign<mode>_neon_load): Likewise.
4243 (vec_set<mode>_internal): Likewise.
4244 (vec_setv2di_internal): Likewise.
4245 (vec_extract<mode>): Likewise.
4246 (vec_extractv2di): Likewise.
4247 (add<mode>3_neon): Likewise.
4248 (adddi3_neon): Likewise.
4249 (sub<mode>3_neon): Likewise.
4250 (subdi3_neon): Likewise.
4251 (mul<mode>3_neon): Likewise.
4252 (mul<mode>3add<mode>_neon): Likewise.
4253 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
4254 (fma<VCVTF:mode>4)): Likewise.
4255 (fma<VCVTF:mode>4_intrinsic): Likewise.
4256 (fmsub<VCVTF:mode>4)): Likewise.
4257 (fmsub<VCVTF:mode>4_intrinsic): Likewise.
4258 (neon_vrint<NEON_VRINT:nvrint_variant><VCVTF:mode>): Likewise.
4259 (ior<mode>3): Likewise.
4260 (and<mode>3): Likewise.
4261 (anddi3_neon): Likewise.
4262 (orn<mode>3_neon): Likewise.
4263 (orndi3_neon): Likewise.
4264 (bic<mode>3_neon): Likewise.
4265 (bicdi3_neon): Likewise.
4266 (xor<mode>3): Likewise.
4267 (one_cmpl<mode>2): Likewise.
4268 (abs<mode>2): Likewise.
4269 (neg<mode>2): Likewise.
4270 (umin<mode>3_neon): Likewise.
4271 (umax<mode>3_neon): Likewise.
4272 (smin<mode>3_neon): Likewise.
4273 (smax<mode>3_neon): Likewise.
4274 (vashl<mode>3): Likewise.
4275 (vashr<mode>3_imm): Likewise.
4276 (vlshr<mode>3_imm): Likewise.
4277 (ashl<mode>3_signed): Likewise.
4278 (ashl<mode>3_unsigned): Likewise.
4279 (neon_load_count): Likewise.
4280 (ashldi3_neon_noclobber): Likewise.
4281 (signed_shift_di3_neon): Likewise.
4282 (unsigned_shift_di3_neon): Likewise.
4283 (ashrdi3_neon_imm_noclobber): Likewise.
4284 (lshrdi3_neon_imm_noclobber): Likewise.
4285 (widen_ssum<mode>3): Likewise.
4286 (widen_usum<mode>3): Likewise.
4287 (quad_halves_<code>v4si): Likewise.
4288 (quad_halves_<code>v4sf): Likewise.
4289 (quad_halves_<code>v8hi): Likewise.
4290 (quad_halves_<code>v16qi): Likewise.
4291 (reduc_splus_v2di): Likewise.
4292 (neon_vpadd_internal<mode>): Likewise.
4293 (neon_vpsmin<mode>): Likewise.
4294 (neon_vpsmax<mode>): Likewise.
4295 (neon_vpumin<mode>): Likewise.
4296 (neon_vpumax<mode>): Likewise.
4297 (ss_add<mode>_neon): Likewise.
4298 (us_add<mode>_neon): Likewise.
4299 (ss_sub<mode>_neon): Likewise.
4300 (us_sub<mode>_neon): Likewise.
4301 (neon_vadd<mode>_unspec): Likewise.
4302 (neon_vaddl<mode>): Likewise.
4303 (neon_vaddw<mode>): Likewise.
4304 (neon_vhadd<mode>): Likewise.
4305 (neon_vqadd<mode>): Likewise.
4306 (neon_vaddhn<mode>): Likewise.
4307 (neon_vmul<mode>): Likewise.
4308 (neon_vmla<mode>): Likewise.
4309 (neon_vmlal<mode>): Likewise.
4310 (neon_vmls<mode>): Likewise.
4311 (neon_vmlsl<mode>): Likewise.
4312 (neon_vqdmulh<mode>): Likewise.
4313 (neon_vqdmlal<mode>): Likewise.
4314 (neon_vqdmlsl<mode>): Likewise.
4315 (neon_vmull<mode>): Likewise.
4316 (neon_vqdmull<mode>): Likewise.
4317 (neon_vsub<mode>_unspec): Likewise.
4318 (neon_vsubl<mode>): Likewise.
4319 (neon_vsubw<mode>): Likewise.
4320 (neon_vqsub<mode>): Likewise.
4321 (neon_vhsub<mode>): Likewise.
4322 (neon_vsubhn<mode>): Likewise.
4323 (neon_vceq<mode>): Likewise.
4324 (neon_vcge<mode>): Likewise.
4325 (neon_vcgeu<mode>): Likewise.
4326 (neon_vcgt<mode>): Likewise.
4327 (neon_vcgtu<mode>): Likewise.
4328 (neon_vcle<mode>): Likewise.
4329 (neon_vclt<mode>): Likewise.
4330 (neon_vcage<mode>): Likewise.
4331 (neon_vcagt<mode>): Likewise.
4332 (neon_vtst<mode>): Likewise.
4333 (neon_vabd<mode>): Likewise.
4334 (neon_vabdl<mode>): Likewise.
4335 (neon_vaba<mode>): Likewise.
4336 (neon_vabal<mode>): Likewise.
4337 (neon_vmax<mode>): Likewise.
4338 (neon_vmin<mode>): Likewise.
4339 (neon_vpaddl<mode>): Likewise.
4340 (neon_vpadal<mode>): Likewise.
4341 (neon_vpmax<mode>): Likewise.
4342 (neon_vpmin<mode>): Likewise.
4343 (neon_vrecps<mode>): Likewise.
4344 (neon_vrsqrts<mode>): Likewise.
4345 (neon_vqabs<mode>): Likewise.
4346 (neon_vqneg<mode>): Likewise.
4347 (neon_vcls<mode>): Likewise.
4348 (clz<mode>2): Likewise.
4349 (popcount<mode>2): Likewise.
4350 (neon_vrecpe): Likewise.
4351 (neon_vrsqrte): Likewise.
4352 (neon_vget_lane<mode>_sext_internal): Likewise.
4353 (neon_vget_lane<mode>_zext_internal): Likewise.
4354 (neon_vdup_n<mode>): Likewise.
4355 (neon_vdup_nv2di): Likewise.
4356 (neon_vdpu_lane<mode>_internal): Likewise.
4357 (neon_vswp<mode>): Likewise.
4358 (float<mode><V_cvtto>2): Likewise.
4359 (floatuns<mode><V_cvtto>2): Likewise.
4360 (fix_trunc<mode><V_cvtto>)2): Likewise
4361 (fixuns_trunc<mode><V_cvtto)2): Likewise.
4362 (neon_vcvt<mode>): Likewise.
4363 (neon_vcvtv4sfv4hf): Likewise.
4364 (neon_vcvtv4hfv4sf): Likewise.
4365 (neon_vcvt_n<mode>): Likewise.
4366 (neon_vmovn<mode>): Likewise.
4367 (neon_vqmovn<mode>): Likewise.
4368 (neon_vqmovun<mode>): Likewise.
4369 (neon_vmovl<mode>): Likewise.
4370 (neon_vmul_lane<mode>): Likewise.
4371 (neon_vmull_lane<mode>): Likewise.
4372 (neon_vqdmull_lane<mode>): Likewise.
4373 (neon_vqdmulh_lane<mode>): Likewise.
4374 (neon_vmla_lane<mode>): Likewise.
4375 (neon_vmlal_lane<mode>): Likewise.
4376 (neon_vqdmlal_lane<mode>): Likewise.
4377 (neon_vmls_lane<mode>): Likewise.
4378 (neon_vmlsl_lane<mode>): Likewise.
4379 (neon_vqdmlsl_lane<mode>): Likewise.
4380 (neon_vext<mode>): Likewise.
4381 (neon_vrev64<mode>): Likewise.
4382 (neon_vrev32<mode>): Likewise.
4383 (neon_vrev16<mode>): Likewise.
4384 (neon_vbsl<mode>_internal): Likewise.
4385 (neon_vshl<mode>): Likewise.
4386 (neon_vqshl<mode>): Likewise.
4387 (neon_vshr_n<mode>): Likewise.
4388 (neon_vshrn_n<mode>): Likewise.
4389 (neon_vqshrn_n<mode>): Likewise.
4390 (neon_vqshrun_n<mode>): Likewise.
4391 (neon_vshl_n<mode>): Likewise.
4392 (neon_vqshl_n<mode>): Likewise.
4393 (neon_vqshlu_n<mode>): Likewise.
4394 (neon_vshll_n<mode>): Likewise.
4395 (neon_vsra_n<mode>): Likewise.
4396 (neon_vsri_n<mode>): Likewise.
4397 (neon_vsli_n<mode>): Likewise.
4398 (neon_vtbl1v8qi): Likewise.
4399 (neon_vtbl2v8qi): Likewise.
4400 (neon_vtbl3v8qi): Likewise.
4401 (neon_vtbl4v8qi): Likewise.
4402 (neon_vtbx1v8qi): Likewise.
4403 (neon_vtbx2v8qi): Likewise.
4404 (neon_vtbx3v8qi): Likewise.
4405 (neon_vtbx4v8qi): Likewise.
4406 (neon_vtrn<mode>_internal): Likewise.
4407 (neon_vzip<mode>_internal): Likewise.
4408 (neon_vuzp<mode>_internal): Likewise.
4409 (neon_vld1<mode>): Likewise.
4410 (neon_vld1_lane<mode>): Likewise.
4411 (neon_vld1_dup<mode>): Likewise.
4412 (neon_vld1_dupv2di): Likewise.
4413 (neon_vst1<mode>): Likewise.
4414 (neon_vst1_lane<mode>): Likewise.
4415 (neon_vld2<mode>): Likewise.
4416 (neon_vld2_lane<mode>): Likewise.
4417 (neon_vld2_dup<mode>): Likewise.
4418 (neon_vst2<mode>): Likewise.
4419 (neon_vst2_lane<mode>): Likewise.
4420 (neon_vld3<mode>): Likewise.
4421 (neon_vld3qa<mode>): Likewise.
4422 (neon_vld3qb<mode>): Likewise.
4423 (neon_vld3_lane<mode>): Likewise.
4424 (neon_vld3_dup<mode>): Likewise.
4425 (neon_vst3<mode>): Likewise.
4426 (neon_vst3qa<mode>): Likewise.
4427 (neon_vst3qb<mode>): Likewise.
4428 (neon_vst3_lane<mode>): Likewise.
4429 (neon_vld4<mode>): Likewise.
4430 (neon_vld4qa<mode>): Likewise.
4431 (neon_vld4qb<mode>): Likewise.
4432 (neon_vld4_lane<mode>): Likewise.
4433 (neon_vld4_dup<mode>): Likewise.
4434 (neon_vst4<mode>): Likewise.
4435 (neon_vst4qa<mode>): Likewise.
4436 (neon_vst4qb<mode>): Likewise.
4437 (neon_vst4_lane<mode>): Likewise.
4438 (neon_vec_unpack<US>_lo_<mode>): Likewise.
4439 (neon_vec_unpack<US>_hi_<mode>): Likewise.
4440 (neon_vec_<US>mult_lo_<mode>): Likewise.
4441 (neon_vec_<US>mult_hi_<mode>): Likewise.
4442 (neon_vec_<US>shiftl_<mode>): Likewise.
4443 (neon_unpack<US>_<mode>): Likewise.
4444 (neon_vec_<US>mult_<mode>): Likewise.
4445 (vec_pack_trunc_<mode>): Likewise.
4446 (neon_vec_pack_trunk_<mode>): Likewise.
4447 (neon_vabd<mode>_2): Likewise.
4448 (neon_vabd<mode>_3): Likewise.
4449 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
4450 (thumb2_movsi_vfp): Likewise.
4451 (movdi_vfp): Likewise.
4452 (movdi_vfp_cortexa8): Likewise.
4453 (movhf_vfp_neon): Likewise.
4454 (movhf_vfp): Likewiwse.
4455 (movsf_vfp): Likewiwse.
4456 (thumb2_movsf_vfp): Likewiwse.
4457 (movdf_vfp): Likewise.
4458 (thumb2_movdf_vfp): Likewise.
4459 (movsfcc_vfp): Likewise.
4460 (thumb2_movsfcc_vfp): Likewise.
4461 (movdfcc_vfp): Likewise.
4462 (thumb2_movdfcc_vfp): Likewise.
4463 * config/arm/arm.c (cortexa7_older_only): Update for attribute change.
4464 * config/arm/arm1020e.md (v10_c2v): Update for attribute change.
4465 (v10_v2c): Likewise.
4466 * config/arm/cortex-a15-neon.md (cortex_a15_neon_int_1): Update for
4467 attribute change.
4468 (cortex_a15_neon_int_2): Likewise.
4469 (cortex_a15_neon_int_3): Likewise.
4470 (cortex_a15_neon_int_4): Likewise.
4471 (cortex_a15_neon_int_5): Likewise.
4472 (cortex_a15_neon_vqneg_vqabs): Likewise.
4473 (cortex_a15_neon_vmov): Likewise.
4474 (cortex_a15_neon_vaba): Likewise.
4475 (cortex_a15_neon_vaba_qqq): Likewise.
4476 (cortex_a15_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4477 (cortex_a15_neon_mul_qqq_8_16_32_ddd_32): Likewise.
4478 (cortex_a15_neon_mul_qdd_64_32_long_qqd_16_ddd_32_\
4479 scalar_64_32_long_scalar): Likewise.
4480 (cortex_a15_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4481 (cortex_a15_neon_mla_qqq_8_16): Likewise.
4482 (cortex_a15_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4483 lotype_qdd_64_32_long): Likewise.
4484 (cortex_a15_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4485 (cortex_a15_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4486 (cortex_a15_neon_mul_qqd_32_scalar): Likewise.
4487 (cortex_a15_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4488 (cortex_a15_neon_shift_1): Likewise.
4489 (cortex_a15_neon_shift_2): Likewise.
4490 (cortex_a15_neon_shift_3): Likewise.
4491 (cortex_a15_neon_vshl_ddd): Likewise.
4492 (cortex_a15_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4493 (cortex_a15_neon_vsra_vrsra): Likewise.
4494 (cortex_a15_neon_fp_vadd_ddd_vabs_dd): Likewise.
4495 (cortex_a15_neon_fp_vadd_qqq_vabs_qq): Likewise.
4496 (cortex_a15_neon_fp_vmul_ddd): Likewise.
4497 (cortex_a15_neon_fp_vmul_qqd): Likewise.
4498 (cortex_a15_neon_fp_vmla_ddd): Likewise.
4499 (cortex_a15_neon_fp_vmla_qqq): Likewise.
4500 (cortex_a15_neon_fp_vmla_ddd_scalar): Likewise.
4501 (cortex_a15_neon_fp_vmla_qqq_scalar): Likewise.
4502 (cortex_a15_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4503 (cortex_a15_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4504 (cortex_a15_neon_bp_simple): Likewise.
4505 (cortex_a15_neon_bp_2cycle): Likewise.
4506 (cortex_a15_neon_bp_3cycle): Likewise.
4507 (cortex_a15_neon_vld1_1_2_regs): Likewise.
4508 (cortex_a15_neon_vld1_3_4_regs): Likewise.
4509 (cortex_a15_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4510 (cortex_a15_neon_vld2_4_regs): Likewise.
4511 (cortex_a15_neon_vld3_vld4): Likewise.
4512 (cortex_a15_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4513 (cortex_a15_neon_vst1_3_4_regs): Likewise.
4514 (cortex_a15_neon_vst2_4_regs_vst3_vst4): Likewise.
4515 (cortex_a15_neon_vst3_vst4): Likewise.
4516 (cortex_a15_neon_vld1_vld2_lane): Likewise.
4517 (cortex_a15_neon_vld3_vld4_lane" 10
4518 (cortex_a15_neon_vst1_vst2_lane): Likewise.
4519 (cortex_a15_neon_vst3_vst4_lane): Likewise.
4520 (cortex_a15_neon_vld3_vld4_all_lanes): Likewise.
4521 (cortex_a15_neon_ldm_2): Likewise.0
4522 (cortex_a15_neon_stm_2): Likewise.
4523 (cortex_a15_neon_mcr): Likewise.
4524 (cortex_a15_neon_mcr_2_mcrr): Likewise.
4525 (cortex_a15_neon_mrc): Likewise.
4526 (cortex_a15_neon_mrrc): Likewise.
4527 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
4528 change.
4529 (cortex_a15_alu_shift): Likewise.
4530 (cortex_a15_alu_shift_reg): Likewise.
4531 (cortex_a15_mult32): Likewise.
4532 (cortex_a15_mult64): Likewise.
4533 (cortex_a15_block): Likewise.
4534 (cortex_a15_branch): Likewise.
4535 (cortex_a15_load1): Likewise.
4536 (cortex_a15_load3): Likewise.
4537 (cortex_a15_store1): Likewise.
4538 (cortex_a15_store3): Likewise.
4539 (cortex_a15_call): Likewise.
f43245d1 4540 * config/arm/cortex-a5.md (cortex_a5_r2f): Update for attribute change.
003bb7f3
JG
4541 (cortex_a5_f2r): Likewise.
4542 * config/arm/cortex-a53.md (cortex_a53_r2f): Update for attribute
4543 change.
4544 (cortex_a53_f2r): Likewise.
4545 * config/arm/cortex-a7.md
4546 (cortex_a7_branch): Update for attribute change.
4547 (cortex_a7_call): Likewise.
4548 (cortex_a7_alu_imm): Likewise.
4549 (cortex_a7_alu_reg): Likewise.
4550 (cortex_a7_alu_shift): Likewise.
4551 (cortex_a7_mul): Likewise.
4552 (cortex_a7_load1): Likewise.
4553 (cortex_a7_store1): Likewise.
4554 (cortex_a7_load2): Likewise.
4555 (cortex_a7_store2): Likewise.
4556 (cortex_a7_load3): Likewise.
4557 (cortex_a7_store3): Likewise.
4558 (cortex_a7_load4): Likewise.
4559 (cortex_a7_store4): Likewise.
4560 (cortex_a7_fpalu): Likewise.
4561 (cortex_a7_fconst): Likewise.
4562 (cortex_a7_fpmuls): Likewise.
4563 (cortex_a7_neon_mul): Likewise.
4564 (cortex_a7_fpmacs): Likewise.
4565 (cortex_a7_neon_mla: Likewise.
4566 (cortex_a7_fpmuld: Likewise.
4567 (cortex_a7_fpmacd: Likewise.
4568 (cortex_a7_fpfmad: Likewise.
4569 (cortex_a7_fdivs: Likewise.
4570 (cortex_a7_fdivd: Likewise.
4571 (cortex_a7_r2f: Likewise.
4572 (cortex_a7_f2r: Likewise.
4573 (cortex_a7_f_flags: Likewise.
4574 (cortex_a7_f_loads: Likewise.
4575 (cortex_a7_f_loadd: Likewise.
4576 (cortex_a7_f_stores: Likewise.
4577 (cortex_a7_f_stored: Likewise.
4578 (cortex_a7_neon): Likewise.
4579 * config/arm/cortex-a8-neon.md
4580 (cortex_a8_neon_mrc): Update for attribute change.
4581 (cortex_a8_neon_mrrc): Likewise.
4582 (cortex_a8_neon_int_1): Likewise.
4583 (cortex_a8_neon_int_2): Likewise.
4584 (cortex_a8_neon_int_3): Likewise.
4585 (cortex_a8_neon_int_4): Likewise.
4586 (cortex_a8_neon_int_5): Likewise.
4587 (cortex_a8_neon_vqneg_vqabs): Likewise.
4588 (cortex_a8_neon_vmov): Likewise.
4589 (cortex_a8_neon_vaba): Likewise.
4590 (cortex_a8_neon_vaba_qqq): Likewise.
4591 (cortex_a8_neon_vsma): Likewise.
4592 (cortex_a8_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4593 (cortex_a8_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
4594 (cortex_a8_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
4595 long_scalar): Likewise.
003bb7f3
JG
4596 (cortex_a8_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4597 (cortex_a8_neon_mla_qqq_8_16): Likewise.
4598 (cortex_a8_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4599 long_scalar_qdd_64_32_long): Likewise.
4600 (cortex_a8_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4601 (cortex_a8_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4602 (cortex_a8_neon_mul_qqd_32_scalar): Likewise.
4603 (cortex_a8_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4604 (cortex_a8_neon_shift_1): Likewise.
4605 (cortex_a8_neon_shift_2): Likewise.
4606 (cortex_a8_neon_shift_3): Likewise.
4607 (cortex_a8_neon_vshl_ddd): Likewise.
4608 (cortex_a8_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4609 (cortex_a8_neon_vsra_vrsra): Likewise.
4610 (cortex_a8_neon_fp_vadd_ddd_vabs_dd): Likewise.
4611 (cortex_a8_neon_fp_vadd_qqq_vabs_qq): Likewise.
4612 (cortex_a8_neon_fp_vsum): Likewise.
4613 (cortex_a8_neon_fp_vmul_ddd): Likewise.
4614 (cortex_a8_neon_fp_vmul_qqd): Likewise.
4615 (cortex_a8_neon_fp_vmla_ddd): Likewise.
4616 (cortex_a8_neon_fp_vmla_qqq): Likewise.
4617 (cortex_a8_neon_fp_vmla_ddd_scalar): Likewise.
4618 (cortex_a8_neon_fp_vmla_qqq_scalar): Likewise.
4619 (cortex_a8_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4620 (cortex_a8_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4621 (cortex_a8_neon_bp_simple): Likewise.
4622 (cortex_a8_neon_bp_2cycle): Likewise.
4623 (cortex_a8_neon_bp_3cycle): Likewise.
4624 (cortex_a8_neon_ldr): Likewise.
4625 (cortex_a8_neon_str): Likewise.
4626 (cortex_a8_neon_vld1_1_2_regs): Likewise.
4627 (cortex_a8_neon_vld1_3_4_regs): Likewise.
4628 (cortex_a8_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4629 (cortex_a8_neon_vld2_4_regs): Likewise.
4630 (cortex_a8_neon_vld3_vld4): Likewise.
4631 (cortex_a8_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4632 (cortex_a8_neon_vst1_3_4_regs): Likewise.
4633 (cortex_a8_neon_vst2_4_regs_vst3_vst4): Likewise.
4634 (cortex_a8_neon_vst3_vst4): Likewise.
4635 (cortex_a8_neon_vld1_vld2_lane): Likewise.
4636 (cortex_a8_neon_vld3_vld4_lane): Likewise.
4637 (cortex_a8_neon_vst1_vst2_lane): Likewise.
4638 (cortex_a8_neon_vst3_vst4_lane): Likewise.
4639 (cortex_a8_neon_vld3_vld4_all_lanes): Likewise.
4640 (cortex_a8_neon_mcr): Likewise.
4641 (cortex_a8_neon_mcr_2_mcrr): Likewise.
f43245d1 4642 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
003bb7f3
JG
4643 * config/arm/cortex-a9-neon.md (ca9_neon_mrc): Update for attribute
4644 change.
4645 (ca9_neon_mrrc): Likewise.
4646 (cortex_a9_neon_int_1): Likewise.
4647 (cortex_a9_neon_int_2): Likewise.
4648 (cortex_a9_neon_int_3): Likewise.
4649 (cortex_a9_neon_int_4): Likewise.
4650 (cortex_a9_neon_int_5): Likewise.
4651 (cortex_a9_neon_vqneg_vqabs): Likewise.
4652 (cortex_a9_neon_vmov): Likewise.
4653 (cortex_a9_neon_vaba): Likewise.
4654 (cortex_a9_neon_vaba_qqq): Likewise.
4655 (cortex_a9_neon_vsma): Likewise.
4656 (cortex_a9_neon_mul_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4657 (cortex_a9_neon_mul_qqq_8_16_32_ddd_32): Likewise.
f43245d1
UB
4658 (cortex_a9_neon_mul_qdd_64_32_long_qqd_16_ddd_32_scalar_64_32_\
4659 long_scalar): Likewise.
003bb7f3
JG
4660 (cortex_a9_neon_mla_ddd_8_16_qdd_16_8_long_32_16_long): Likewise.
4661 (cortex_a9_neon_mla_qqq_8_16): Likewise.
4662 (cortex_a9_neon_mla_ddd_32_qqd_16_ddd_32_scalar_qdd_64_32_\
4663 long_scalar_qdd_64_32_long): Likewise.
4664 (cortex_a9_neon_mla_qqq_32_qqd_32_scalar): Likewise.
4665 (cortex_a9_neon_mul_ddd_16_scalar_32_16_long_scalar): Likewise.
4666 (cortex_a9_neon_mul_qqd_32_scalar): Likewise.
4667 (cortex_a9_neon_mla_ddd_16_scalar_qdd_32_16_long_scalar): Likewise.
4668 (cortex_a9_neon_shift_1): Likewise.
4669 (cortex_a9_neon_shift_2): Likewise.
4670 (cortex_a9_neon_shift_3): Likewise.
4671 (cortex_a9_neon_vshl_ddd): Likewise.
4672 (cortex_a9_neon_vqshl_vrshl_vqrshl_qqq): Likewise.
4673 (cortex_a9_neon_vsra_vrsra): Likewise.
4674 (cortex_a9_neon_fp_vadd_ddd_vabs_dd): Likewise.
4675 (cortex_a9_neon_fp_vadd_qqq_vabs_qq): Likewise.
4676 (cortex_a9_neon_fp_vsum): Likewise.
4677 (cortex_a9_neon_fp_vmul_ddd): Likewise.
4678 (cortex_a9_neon_fp_vmul_qqd): Likewise.
4679 (cortex_a9_neon_fp_vmla_ddd): Likewise.
4680 (cortex_a9_neon_fp_vmla_qqq): Likewise.
4681 (cortex_a9_neon_fp_vmla_ddd_scalar): Likewise.
4682 (cortex_a9_neon_fp_vmla_qqq_scalar): Likewise.
4683 (cortex_a9_neon_fp_vrecps_vrsqrts_ddd): Likewise.
4684 (cortex_a9_neon_fp_vrecps_vrsqrts_qqq): Likewise.
4685 (cortex_a9_neon_bp_simple): Likewise.
4686 (cortex_a9_neon_bp_2cycle): Likewise.
4687 (cortex_a9_neon_bp_3cycle): Likewise.
4688 (cortex_a9_neon_ldr): Likewise.
4689 (cortex_a9_neon_str): Likewise.
4690 (cortex_a9_neon_vld1_1_2_regs): Likewise.
4691 (cortex_a9_neon_vld1_3_4_regs): Likewise.
4692 (cortex_a9_neon_vld2_2_regs_vld1_vld2_all_lanes): Likewise.
4693 (cortex_a9_neon_vld2_4_regs): Likewise.
4694 (cortex_a9_neon_vld3_vld4): Likewise.
4695 (cortex_a9_neon_vst1_1_2_regs_vst2_2_regs): Likewise.
4696 (cortex_a9_neon_vst1_3_4_regs): Likewise.
4697 (cortex_a9_neon_vst2_4_regs_vst3_vst4): Likewise.
4698 (cortex_a9_neon_vst3_vst4): Likewise.
4699 (cortex_a9_neon_vld1_vld2_lane): Likewise.
4700 (cortex_a9_neon_vld3_vld4_lane): Likewise.
4701 (cortex_a9_neon_vst1_vst2_lane): Likewise.
4702 (cortex_a9_neon_vst3_vst4_lane): Likewise.
4703 (cortex_a9_neon_vld3_vld4_all_lanes): Likewise.
4704 (cortex_a9_neon_mcr): Likewise.
4705 (cortex_a9_neon_mcr_2_mcrr): Likewise.
4706 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
4707 (cortex_a9_fps): Likewise.
4708 * config/arm/cortex-m4-fpu.md (cortex_m4_vmov_2): Update for attribute
4709 change.
4710 (cortex_m4_fmuls): Likewise.
4711 * config/arm/cortex-r4f.md (cortex_r4_mcr): Update for attribute
4712 change.
4713 (cortex_r4_mrc): Likewise.
4714 * config/arm/iterators.md: Update comment referring to neon_type.
f43245d1 4715 * config/arm/iwmmxt.md (iwmmxt_arm_movdi): Update for attribute change.
003bb7f3 4716 (iwmmxt_movsi_insn): Likewise.
f43245d1
UB
4717 * config/arm/marvell-pj4.md (pj4_vfp_to_core): Update for
4718 attribute change.
003bb7f3
JG
4719 (pj4_core_to_vfp): Likewise.
4720 * config/arm/neon-schedgen.ml (emit_insn_reservations): Update for
4721 attribute change.
4722 * config/arm/vfp11.md (vfp_fload): Update for attribute change.
4723 (vfp_fstore): Likewise.
4724 * doc/md.texi: Change references to neon_type to refer to type.
4725
fbe0dc78
DS
47262013-09-04 Dodji Seketeli <dodji@redhat.com>
4727
4728 * tree.h (DECL_BUILT_IN): Fix typo in comment.
4729
c167bc5b
DE
47302013-09-04 David Edelsohn <dje.gcc@gmail.com>
4731
4732 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Only emit
4733 lglobl if not weak.
4734
035cb59f
ER
47352013-09-04 Easwaran Raman <eraman@google.com>
4736
4737 PR middle-end/57370
4738 * tree-ssa-reassoc.c (get_stmt_uid_with_default): New function,
4739 (build_and_add_sum): Use it.
4740 (appears_later_in_bb): Simplify code.
4741
71191083
TJ
47422013-09-04 Teresa Johnson <tejohnson@google.com>
4743
4744 * dumpfile.c (dump_finish): Don't close stderr/stdout.
4745
0c488213
JG
47462013-09-04 James Greenhalgh <james.greenhalgh@arm.com>
4747
4748 * config/aarch64/arm_neon.h (vaddvq_<su>64): Fix return types.
4749
61a74079
JH
47502013-09-04 Jan Hubicka <jh@suse.cz>
4751
4752 * Makefile.in (ipa-devirt.o): Add dependency on diagnostic.h
4753 * ipa-devirt.c: Include diganostic.h
4754 (odr_type_d): Add types and types_set.
4755 (hash_type_name): Work for types with vtables during LTO.
4756 (odr_hasher::remove): Fix comment; destroy types_set.
4757 (add_type_duplicate): New function,
4758 (get_odr_type): Use it.
4759 (dump_type_inheritance_graph): Dump type duplicates.
4760 * ipa.c (symtab_remove_unreachable_nodes): Build type inheritance
4761 graph.
4762 * tree.c (types_same_for_odr): Give exact answers on types with
4763 virtual tables.
4764
24ba8195
DS
47652013-09-04 Dodji Seketeli <dodji@redhat.com>
4766
4767 * tree.h (DECL_BUILT_IN, DECL_IS_BUILTIN): Add more comments
7a5911d3 4768 explaining their differences.
24ba8195 4769
0a04869e
SKS
47702013-09-04 Sandeep Kumar Singh<Sandeep.Singh2@kpitcummins.com>
4771
4772 * config/rx/rx.h: Add option -mcpu for target variants RX100 and RX200.
4773
3b18bc42
JL
47742013-09-03 Jeff Law <law@redhat.com>
4775
4776 * tree-ssa-threadedge.c (thread_across_edge): Record entire path
4777 when not threading through a joiner block. Pass joiner/no joiner
4778 state to register_jump_thread.
4779 * tree-ssa-threadupdate.c (register_jump_thread): Get joiner/no joiner
4780 state from argument rather than implying on path length.
4781 Dump the entire jump thread path into debugging dump.
4782 * tree-flow.h (register_jump_thread): Update prototype.
4783
ae84e151
XDL
47842013-08-29 Xinliang David Li <davidxl@google.com>
4785
4786 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4787 Remove a trivial gcc_assert.
4788
c716e67f
XDL
47892013-08-29 Xinliang David Li <davidxl@google.com>
4790
4791 * tree-vect-slp.c (destroy_bb_vec_info): Data ref cleanup.
4792 * tree-vect-loop.c (destroy_bb_vec_info): Ditto.
4793 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
4794 Delay base decl alignment adjustment.
4795 * tree-vectorizer.c (vect_destroy_datarefs): New function.
4796 * tree-vectorizer.h: New data structure.
4797 (set_dr_misalignment): New function.
4798 (dr_misalignment): Ditto.
4799 * tree-vect-stmts.c (vectorizable_store): Ensure alignment.
4800 (vectorizable_load): Ditto.
4801 (ensure_base_align): New function.
4802 (vectorize_loops): Add dbg_cnt support.
4803 (execute_vect_slp): Ditto.
4804 * dbgcnt.def: New debug counter.
4805 * Makefile: New dependency.
4806
db8800bc
MI
48072013-09-03 Meador Inge <meadori@codesourcery.com>
4808
4809 Revert:
4810
4811 2013-08-30 Meador Inge <meadori@codesourcery.com>
4812
4813 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
4814
0d9b4f5c
DE
48152013-09-03 David Edelsohn <dje.gcc@gmail.com>
4816
4817 * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DECLS): Emit lglobl for
4818 function descriptor.
4819
29e810b9
RB
48202013-09-03 Richard Biener <rguenther@suse.de>
4821
4822 * tree-affine.c (add_elt_to_tree): Fix association issue,
4823 avoid useless converts and make sure to always return a
4824 properly typed result.
4825
dbfc2894
RB
48262013-09-03 Richard Biener <rguenther@suse.de>
4827
4828 PR middle-end/57656
4829 * fold-const.c (negate_expr_p): Fix division case.
4830 (negate_expr): Likewise.
4831
fa3bf4ce
RB
48322013-09-03 Richard Biener <rguenther@suse.de>
4833
4834 PR lto/58285
4835 * tree-streamer-out.c: Include tm.h.
4836 * Makefile.in (tree-streamer-out.o): Depend on $(TM_H).
4837
a64bbb3f
JH
48382013-09-03 Jan Hubicka <jh@suse.cz>
4839
4840 * tree-profile.c (tree_profiling): Cleanup CFG when done.
4841
93ed07e2
AM
48422013-09-03 Alan Modra <amodra@gmail.com>
4843
4844 * config.gcc (powerpc*-*-linux*): Add support for little-endian
4845 multilibs to big-endian target and vice versa.
4846 * config/rs6000/t-linux64: Use := assignment on all vars.
4847 (MULTILIB_EXTRA_OPTS): Remove fPIC.
4848 (MULTILIB_OSDIRNAMES): Specify using mapping from multilib_options.
4849 * config/rs6000/t-linux64le: New file.
4850 * config/rs6000/t-linux64bele: New file.
4851 * config/rs6000/t-linux64lebe: New file.
4852
07d6cd64
JH
48532013-09-02 Jan Hubicka <jh@suse.cz>
4854
4855 * ipa-inline-transform.c (inline_transform): Do not
4856 optimize_inline_calls when not optimizing.
4857
8e4c9a10
JH
48582013-09-02 Jan Hubicka <jh@suse.cz>
4859
4860 * lto-symtab.c (lto_symtab_merge_symbols): Add comments; merge
4861 duplicated nodes for assembler names.
4862 * symtab.c (symtab_unregister_node): Do not attempt to unlink
4863 hard registers from assembler name hash.
4864
c91061e6
JH
48652013-09-02 Jan Hubicka <jh@suse.cz>
4866
4867 * ipa-split.c (execute_split_functions): Split externally visible
4868 functions called once.
4869
2fd0985c
MJ
48702013-09-02 Martin Jambor <mjambor@suse.cz>
4871
4872 PR ipa/58106
4873 * ipa-prop.c (ipa_edge_duplication_hook): Always put new rdesc to the
4874 linked list. When finding the correct duplicate, also consider also
4875 the caller in additon to its inlined_to node.
4876
91bd4114
JG
48772013-09-02 James Greenhalgh <james.greenhalgh@arm.com>
4878
4879 * config/aarch64/aarch64-simd-builtins.def
4880 (dup_lane_scalar): Remove.
4881 * config/aarch64/aarch64-simd.md
4882 (aarch64_simd_dup): Add 'w->w' alternative.
4883 (aarch64_dup_lane<mode>): Allow for VALL.
4884 (aarch64_dup_lane_scalar<mode>): Remove.
4885 (aarch64_dup_lane_<vswap_width_name><mode>): New.
4886 (aarch64_get_lane_signed<mode>): Add w->w altenative.
4887 (aarch64_get_lane_unsigned<mode>): Likewise.
4888 (aarch64_get_lane<mode>): Likewise.
4889 * config/aarch64/aarch64.c (aarch64_evpc_dup): New.
4890 (aarch64_expand_vec_perm_const_1): Use aarch64_evpc_dup.
4891 * config/aarch64/iterators.md (VSWAP_WIDTH): New.
4892 (VCON): Change container of V2SF.
4893 (vswap_width_name): Likewise.
4894 * config/aarch64/arm_neon.h
4895 (__aarch64_vdup_lane_any): New.
4896 (__aarch64_vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
4897 (vdup<q>_n_<psuf><8,16,32,64>): Convert to C implementation.
4898 (vdup<q>_lane<q>_<fpsu><8,16,32,64>): Likewise.
4899
d617d2d8
EB
49002013-09-02 Eric Botcazou <ebotcazou@adacore.com>
4901
4902 PR middle-end/56382
4903 * expr.c (emit_move_complex): Do not move complex FP values as parts if
4904 the source or the destination is a single hard register.
4905
63fdb7be
RB
49062013-09-02 Richard Biener <rguenther@suse.de>
4907
4908 PR middle-end/57511
4909 * tree-scalar-evolution.c (instantiate_scev_name): Allow
4910 non-linear SCEVs.
4911
78de2333
RB
49122013-09-02 Richard Biener <rguenther@suse.de>
4913
4914 * tree-affine.c (add_elt_to_tree): Avoid converting all pointer
4915 arithmetic to sizetype.
4916
85ff4ec6
BC
49172013-09-02 Bin Cheng <bin.cheng@arm.com>
4918
4919 * tree-ssa-loop-ivopts.c (set_autoinc_for_original_candidates):
4920 Find auto-increment use both before and after candidate.
4921
576016fe
MP
49222013-09-02 Marek Polacek <polacek@redhat.com>
4923
4924 * Makefile.in (ubsan.o): Add $(TM_P_H) dependency.
4925
08f835dc
JH
49262013-09-01 Jan Hubicka <jh@suse.cz>
4927
4928 * Makefile.in: Add ipa-profile.o
4929 (ipa.o, ipa-devrit.o, ipa-inline-analysis.o): Adjust dependencies.
4930 * cgraph.c (struct cgraph_propagate_frequency_data,
4931 cgraph_propagate_frequency_1, cgraph_propagate_frequency): Move to
4932 ipa-profile.c; replace cgraph_ by ipa_ prefix.
4933 * cgraph.h (cgraph_propagate_frequency): Remove.
f43245d1
UB
4934 * ipa-inline-analysis.c: Include ipa-utils.h;
4935 drop duplicated cfgloop.h.
08f835dc
JH
4936 (inline_update_callee_summaries): Update.
4937 * ipa-profile.c: New file.
4938 * ipa-utils.h (ipa_propagate_frequency): Declare.
4939 * ipa.c: Do not include pointer-set.h, hash-table.h, lto-streamer.h,
f43245d1 4940 data-streamer.h, value-prof.h.
08f835dc
JH
4941 (symtab_remove_unreachable_nodes): Update profile.
4942 (struct histogram_entry, histogram, histogram_pool, histogram_hash,
4943 account_time_size, cmp_counts, dump_histogram,
4944 ipa_profile_generate_summary, ipa_profile_write_summary,
4945 ipa_profile_read_summary, ipa_profile, gate_ipa_profile,
4946 pass_data_ipa_profile, pass_ipa_profile, make_pass_ipa_profile):
f43245d1 4947 Move to ipa-profile.c.
08f835dc 4948
cec8583c
JDA
49492013-09-01 John David Anglin <danglin@gcc.gnu.org>
4950
4951 * config/pa/pa.md: Allow "const 0" operand 1 in "scc" insns.
4952
bbc9396b
JH
49532013-09-01 Jan Hubicka <jh@suse.cz>
4954
4955 * common.opt (fdevirtualize-speculatively): New function.
4956 * invoke.texi (fdevirtualize-speculatively): Document.
4957 * ipa-devirt.c: Include ipa-inline.h
4958 (likely_target_p): New function.
4959 (ipa_devirt): New function.
4960 (gate_ipa_devirt): New function.
4961 (pass_data_ipa_devirt): New static var.
4962 (pass_ipa_devirt): Likewise.
4963 (make_pass_ipa_devirt): New function.
4964 * opts.c (default_options): Add OPT_fdevirtualize_speculatively.
4965 (common_handle_option): Disable devirtualization when
4966 value range profiling is available.
4967 * passes.def (pass_ipa_devirt): Add.
4968 * timever.def (TV_IPA_DEVIRT): New timevar.
f43245d1 4969 * tree-pass.h (make_pass_ipa_devirt):
bbc9396b 4970
0cea211e
IS
49712013-09-01 Iain Sandoe <iain@codesourcery.com>
4972
4973 * config/darwin.h (LINK_COMMAND_SPEC_A): Revise sanitizer specs to
4974 include sanitize(undefined).
4975
5e351e96
DN
49762013-08-31 Diego Novillo <dnovillo@google.com>
4977
4978 * Makefile.in (TREE_CORE_H): Define.
4979 (TREE_H): Use.
4980 (GTFILES): Add tree-core.h.
4981 * builtins.c (built_in_class_names): Use BUILT_IN_LAST to
4982 size the array.
4983 * tree-core.h: New file.
4984 Move all data structures, enum, typedefs, global
4985 declarations and constants from ...
4986 * tree.h: ... here.
4987
63bf9a90
JH
49882013-08-31 Jan Hubicka <jh@suse.cz>
4989
4990 * bulitins.c (expand_builtin): Do not early exit for gcov
4991 instrumented functions.
4992
5c0abd6a
MP
49932013-08-31 Marek Polacek <polacek@redhat.com>
4994
4995 * ubsan.c: Include tm_p.h.
4996
4843f032
JH
49972013-08-31 Jan Hubicka <jh@suse.cz>
4998
8356c89c
JH
4999 * gimple-streamer-in.c (input_gimple_stmt): Silence parameter unused
5000 warning.
5001
4843f032
JH
5002 * cgraph.c (cgraph_get_body): Update call of lto_input_function_body.
5003 * gimple-streamer-in.c (input_gimple_stmt): Move sanity check to ...
5e581212 5004 * tree-cfg.c (verify_gimple_label): ... here.
4843f032
JH
5005 * ipa-utils.c: Include lto-streamer.h, ipa-inline.h
5006 (ipa_merge_profiles): New function.
5007 * lto-streamer-in.c (lto_read_body): Take node instead of fn_decl.
5008 (lto_input_function_body): Likewise.
5e581212
JH
5009 * ipa-utils.h (ipa_merge_profiles): Declare.
5010 * lto-streamer.h (lto_input_function_body): Update prototype.
5011 (emit_label_in_global_context_p): Remove.
5012 * lto-symtab.c: Include ipa-utils.h
5013 (lto_cgraph_replace_node): Use ipa_merge_profiles.
4843f032 5014
57292ce9
JH
50152013-08-31 Jan Hubicka <jh@suse.cz>
5016
5017 * cgraph.c (cgraph_speculative_call_info): Fix ref lookup
5018
b9cbfeeb
JH
50192013-08-31 Jan Hubicka <jh@suse.cz>
5020
5021 * basic-block.h (apply_scale): Make scale parmeter gcov_type.
5022
41dedebd
UB
50232013-08-31 Uros Bizjak <ubizjak@gmail.com>
5024
5025 * config/alpha/alpha.c (alpha_emit_conditional_move): Update
5026 "cmp" RTX before signed_comparison_operator check to account
5027 for "code" changes.
5028
06d65050
JH
50292013-08-30 Jan Hubicka <jh@suse.cz>
5030
41dedebd 5031 * ipa-prop.c (ipa_set_jf_known_type): Check that we add only records.
06d65050
JH
5032 (detect_type_change_1): Rename to ...
5033 (detect_type_change): ... this one; early return on non-polymorphic
5034 types.
41dedebd 5035 (detect_type_change_ssa): Add comp_type parameter; update
06d65050
JH
5036 use of detect_type_change.
5037 (compute_complex_assign_jump_func): Add param_type parameter;
5038 update use of detect_type_change_ssa.
5039 (compute_complex_ancestor_jump_func): Likewise.
5040 (ipa_get_callee_param_type): New function.
5041 (ipa_compute_jump_functions_for_edge): Compute parameter type;
5042 update calls to the jump function computation functions.
5043
600b5b1d
TJ
50442013-08-30 Teresa Johnson <tejohnson@google.com>
5045 Steven Bosscher <steven@gcc.gnu.org>
5046
5047 * cfgrtl.c (fixup_new_cold_bb): New routine.
5048 (commit_edge_insertions): Invoke fixup_partitions.
5049 (find_partition_fixes): New routine.
5050 (fixup_partitions): Ditto.
5051 (verify_hot_cold_block_grouping): Update comments.
5052 (rtl_verify_edges): Invoke find_partition_fixes.
5053 (rtl_verify_bb_pointers): Update comments.
5054 (rtl_verify_bb_layout): Ditto.
5055 * basic-block.h (probably_never_executed_edge_p): Declare.
5056 (fixup_partitions): Ditto.
5057 * cfgcleanup.c (try_optimize_cfg): Invoke fixup_partitions.
5058 * bb-reorder.c (sanitize_hot_paths): New function.
5059 (find_rarely_executed_basic_blocks_and_crossing_edges): Invoke
5060 sanitize_hot_paths.
5061 * predict.c (probably_never_executed_edge_p): New routine.
5062 * cfg.c (check_bb_profile): Add partition insanity warnings.
5063
0a6ea5c9
MI
50642013-08-30 Meador Inge <meadori@codesourcery.com>
5065
5066 * tree-vrp.c (check_array_ref): Bail out on zero-length arrays.
5067
de5a5fa1
MP
50682013-08-30 Marek Polacek <polacek@redhat.com>
5069
5070 * Makefile.in (ubsan.o): Add.
5071 (c-family/c-ubsan.o): Add.
5072 (builtins.o): Add ubsan.h dependency.
5073 * ubsan.h: New file.
5074 * ubsan.c: New file.
5075 * common.opt: Add -fsanitize=undefined option.
5076 (flag_sanitize): Add variable.
5077 (fsanitize=): Add option. Add Driver.
5078 (fsanitize=thread): Remove option.
5079 (fsanitize=address): Likewise.
5080 (static-libubsan): New option.
5081 * doc/invoke.texi: Document the new flag and -static-libubsan.
5082 * sanitizer.def (DEF_SANITIZER_BUILTIN): Define.
5083 (BUILT_IN_UBSAN_HANDLE_BUILTIN_UNREACHABLE): Define.
5084 * builtin-attrs.def (ATTR_COLD): Define.
5085 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
5086 * builtins.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW,
5087 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS): Define.
5088 * flag-types.h (sanitize_code): New enum.
5089 * opts.c (common_handle_option): Parse command line arguments
5090 of -fsanitize=. Add -fsanitize=unreachable option.
5091 * varasm.c (get_variable_section): Adjust.
5092 (assemble_noswitch_variable): Likewise.
5093 (assemble_variable): Likewise.
5094 (output_constant_def_contents): Likewise.
5095 (categorize_decl_for_section): Likewise.
5096 (place_block_symbol): Likewise.
5097 (output_object_block): Likewise.
5098 * builtins.def: Likewise.
5099 * toplev.c (compile_file): Likewise.
5100 (process_options): Likewise.
5101 * cppbuiltin.c: Likewise.
5102 * tsan.c (tsan_pass): Likewise.
5103 (tsan_gate): Likewise.
5104 (tsan_gate_O0): Likewise.
5105 * cfgexpand.c (partition_stack_vars): Likewise.
5106 (expand_stack_vars): Likewise.
5107 (defer_stack_allocation): Likewise.
5108 (expand_used_vars): Likewise.
5109 * cfgcleanup.c (old_insns_match_p): Likewise.
5110 * asan.c (asan_finish_file): Likewise.
5111 (asan_instrument): Likewise.
5112 (gate_asan): Likewise.
5113 (initialize_sanitizer_builtins): Build BT_FN_VOID_PTR_PTR_PTR.
5114 (ATTR_COLD_NOTHROW_LEAF_LIST): Define.
5115 (asan_global_struct): Use pointer_sized_int_node instead
5116 calling build_nonstandard_integer_type.
5117 (initialize_sanitizer_builtins): Likewise.
5118 (asan_finish_file): Likewise.
5119 * gcc.c: Document %{%:function(args):X}.
5120 (static_spec_functions): Add sanitize.
5121 (handle_spec_function): Add retval_nonnull argument and if non-NULL,
5122 store funcval != NULL there.
5123 (do_spec_1): Adjust handle_spec_function caller.
5124 (handle_braces): Allow %:function(args) as condition.
5125 (sanitize_spec_function): New function.
5126 (ADD_STATIC_LIBUBSAN_LIBS): Define.
5127 (LIBUBSAN_SPEC): Likewise.
5128 (LIBUBSAN_EARLY_SPEC): Likewise.
5129 (SANITIZER_SPEC): Handle libubsan.
5130 (SANITIZER_EARLY_SPEC): Likewise.
5131 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %:sanitize(address)
5132 instead of fsanitize=address.
5133 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Use %:sanitize(address)
5134 instead of fsanitize=address*.
5135 * builtins.c: Include ubsan.h.
5136 (fold_builtin_0): Instrument __builtin_unreachable.
5137 * config/rs6000/rs6000.h (FRAME_GROWS_DOWNWARD): Use flag_sanitize
5138 instead of flag_asan.
5139 * tree.h (enum tree_index): Add TI_POINTER_SIZED_TYPE.
5140 (pointer_sized_int_node): Define.
41dedebd 5141 * tree.c (build_common_tree_nodes): Initialize pointer_sized_int_node.
de5a5fa1 5142
f07f30cf
MS
51432013-08-30 Mike Stump <mikestump@comcast.net>
5144
5145 * doc/install.texi (Prerequisites): Note regression in Tcl 8.6
5146 with RE patterns.
5147
8a41354f
JH
51482013-08-29 Jan Hubicka <jh@suse.cz>
5149
5150 * cgraph.c (cgraph_function_body_availability): Handle weakref
5151 correctly.
5152 * passes.def: Remove pass_fixup_cfg.
5153 * ipa-inline.c (ipa_inline): When not optimizing, do not inline;
5154 track when we need to remove functions.
5155 (gate_ipa_inline): Execute inlining always; add comment why.
5156 (pass_data_ipa_inline): Remove TODO_remove_functions.
5157 * ipa-inline-analysis.c (inline_generate_summary): When not optimizing
5158 do not produce summaries.
5159 * symtab.c (change_decl_assembler_name): Handle renaming of weakrefs.
5160 (symtab_nonoverwritable_alias): Assert we are not called on weakref.
5161 * varpool.c (cgraph_variable_initializer_availability): Fix weakrefs,
5162 constant pool and vtable.
5163
dc8d7a0f
TB
51642013-08-30 Tejas Belagod <tejas.belagod@arm.com>
5165
41dedebd
UB
5166 * config/aarch64/arm_neon.h (__AARCH64_UINT64_C, __AARCH64_INT64_C):
5167 New arm_neon.h's internal macros to specify 64-bit constants.
5168 Avoid using stdint.h's macros.
dc8d7a0f 5169
ac7eacd2
JR
51702013-08-30 Joern Rennecke <joern.rennecke@embecosm.com>
5171
5172 * recog.c (verify_changes): Verify that changes[i].old is non-zero
5173 before applying REG_P.
5174
8b29fd4e
JJ
51752013-08-30 Jakub Jelinek <jakub@redhat.com>
5176
5177 PR tree-optimization/58277
5178 * tree-ssa-strlen.c (strlen_enter_block): If do_invalidate gave up
5179 after seeing too many stmts with vdef in between dombb and current
5180 bb, invalidate everything.
5181
26d75703
RB
51822013-08-30 Richard Biener <rguenther@suse.de>
5183
5184 * fold-const.c (fold_single_bit_test): Fix overflow test.
5185
f7e088e7
EB
51862013-08-30 Eric Botcazou <ebotcazou@adacore.com>
5187
5188 * function.c (assign_parm_setup_reg): For a parameter passed by pointer
5189 and which can live in a register, always retrieve the value on entry.
5190 * var-tracking.c (add_stores): Treat the copy on entry for a parameter
5191 passed by invisible reference specially.
5192 (emit_notes_in_bb) <MO_VAL_USE>: Emit notes before the instruction.
5193 (vt_add_function_parameter): Correctly deal with a parameter passed by
5194 invisible reference.
5195
51962013-08-30 Jan Hubicka <jh@suse.cz>
47500756
JH
5197
5198 * tree.c (set_call_expr_flags): Fix handling of TM_PURE.
5199
6e8dad05
RB
52002013-08-30 Richard Biener <rguenther@suse.de>
5201
5202 PR tree-optimization/58228
5203 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Do not
5204 allow invariant loads in nested loop vectorization.
5205
062ef2c8
RB
52062013-08-30 Richard Biener <rguenther@suse.de>
5207
5208 PR tree-optimization/58223
5209 * tree-loop-distribution.c (has_anti_dependence): Rename to ...
5210 (has_anti_or_output_dependence): ... this and adjust to also
5211 look for output dependences.
5212 (mark_nodes_having_upstream_mem_writes): Adjust.
5213 (rdg_flag_uses): Likewise.
5214
7a764c60
RB
52152013-08-30 Richard Biener <rguenther@suse.de>
5216
5217 PR tree-optimization/58010
5218 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
5219 assert that we have a loop-closed PHI.
5220
82e9d642
JH
52212013-08-29 Jan Hubicka <jh@suse.cz>
5222
5223 * lto-symtab.c (lto_cgraph_replace_node): Free decl_in_state.
5224 * cgraph.c (cgraph_release_function_body): Free decl_in_state.
5225 * lto-section-in.c (lto_free_function_in_decl_state): New function.
5226 (lto_free_function_in_decl_state_for_node): New function.
5227
9cc1fb4b
XDL
52282013-08-29 Xinliang David Li <davidxl@google.com>
5229
41dedebd 5230 * loop-unroll.c (report_unroll_peel): Minor message change.
9cc1fb4b
XDL
5231 * tree-vect-loop-manip.c (vect_do_peeling_for_alignment):
5232 Emit alignment peeling message with default -fopt-info.
5233 (vect_loop_versioning): Emit loop version info message.
41dedebd 5234 * tree-vectorizer.c (vectorize_loops): Minor message change.
9cc1fb4b
XDL
5235 (execute_vect_slp): Ditto.
5236
440a5082
EB
52372013-08-29 Eric Botcazou <ebotcazou@adacore.com>
5238
5239 * cgraphclones.c (cgraph_create_virtual_clone): Compute the DECL_NAME
5240 of the clone from the DECL_NAME of the original function.
5241
3fa3690d
OE
52422013-08-29 Oleg Endo <olegendo@gcc.gnu.org>
5243
5244 * passes.c (register_pass): Add overload.
5245 * tree-pass.h (register_pass): Forward declare it. Add comment.
5246
0170f33c
JH
52472013-08-29 Jan Hubicka <jh@suse.cz>
5248
41dedebd
UB
5249 * lto-streamer-out.c (hash_tree): Stream DECL_FINAL_P,
5250 DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P and TYPE_FINAL_P.
5251 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Stream
5252 DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
5253 (unpack_ts_type_common_value_fields): Stream TYPE_FINAL_P.
5254 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields):
41dedebd 5255 Add DECL_FINAL_P, DECL_CXX_CONSTRUCTOR_P and DECL_CXX_DESTRUCTOR_P.
0170f33c
JH
5256 (pack_ts_type_common_value_fields): Add TYPE_FINAL_P.
5257
103ff0d6
TJ
52582013-08-29 Teresa Johnson <tejohnson@google.com>
5259
5260 * dumpfile.c (dump_loc): Output column number.
5261 * dumpfile.h (OPTGROUP_OTHER): Add and enable under OPTGROUP_ALL.
5262 * doc/invoke.texi: Document optall -fopt-info flag.
5263 * profile.c (read_profile_edge_counts): Use new dump framework.
5264 (compute_branch_probabilities): Ditto.
5265 * passes.c (pass_manager::register_one_dump_file): Use OPTGROUP_OTHER
5266 when pass not in any opt group.
5267 * pass_manager.h (pass_manager::get_pass_profile): New method.
5268 * value-prof.c (check_counter): Use new dump framework.
5269 (check_ic_target): Ditto.
5270 * coverage.c (get_coverage_counts): Ditto.
5271 (coverage_init): Setup new dump framework.
5272
301bbc16
RB
52732013-08-29 Richard Biener <rguenther@suse.de>
5274
5275 PR tree-optimization/58246
5276 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Properly
5277 handle the dominance check inside a basic-block.
5278
1b275000
RB
52792013-08-29 Richard Biener <rguenther@suse.de>
5280
5281 PR middle-end/57287
5282 * tree-ssa-copy.c (may_propagate_copy): Allow propagating
5283 of default defs that appear in abnormal PHI nodes.
5284
6b1184ba
RB
52852013-08-29 Richard Biener <rguenther@suse.de>
5286
5287 PR tree-optimization/57685
5288 * tree-vrp.c (register_edge_assert_for_1): Recurse only for
5289 single-use operands to avoid exponential complexity.
5290
1b08b734
DC
52912013-08-28 Dehao Chen <dehao@google.com>
5292
5293 * ipa-inline.c (edge_badness): Fix integer underflow.
5294
48a3fa69
UB
52952013-08-28 Uros Bizjak <ubizjak@gmail.com>
5296
5297 * gtm-builtins.def (_ITM_free): Declare leaf.
5298
215f73e6
JJ
52992013-08-28 Jakub Jelinek <jakub@redhat.com>
5300
5301 PR target/58067
5302 * config/i386/i386.md (*tls_global_dynamic_64_largepic): New insn.
5303 (*tls_local_dynamic_base_64_largepic): Likewise.
5304 (tls_global_dynamic_64_<mode>, tls_local_dynamic_base_64_<mode>):
5305 Remove predicate from call operand.
5306 * config/i386/i386.c (ix86_tls_get_addr): For -mcmodel=large -fpic
5307 return sum of pic_offset_table_rtx and UNSPEC_PLTOFF of the symbol.
5308
34554d1a
JL
53092013-08-28 Jeff Law <law@redhat.com>
5310
5311 * tree-ssa-threadedge.c (thread_around_empty_block): Remove
5312 checks for the number of predecessors and successors allowed.
5313 * tree-ssa-threadupdate.c (mark_threaded_blocks): Ignore requests
5314 which require copying a joiner block if there is a request which
5315 is a subpath that requires no joiner block copying.
5316
c01c111b
JH
53172013-08-28 Jan Hubicka <jh@suse.cz>
5318
5319 * lto-streamer-out.c (DFS_write_tree_body): Drop
5320 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX and BINFO_VPTR_INDEX.
5321 (hash_tree): Do not hash DECL_DEFER_OUTPUT, BINFO_INHERITANCE_CHAIN,
5322 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, DECL_IN_TEXT_SECTION.
5323 * tree-streamer-in.c (unpack_ts_decl_common_value_fields):
5324 Do not read DECL_ERROR_ISSUED.
5325 (unpack_ts_decl_with_vis_value_fields): Do not read
5326 DECL_DEFER_OUTPUT.
48a3fa69
UB
5327 (lto_input_ts_binfo_tree_pointers): Do not read
5328 BINFO_INHERITANCE_CHAIN, BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX
c01c111b
JH
5329 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Do not
5330 write DECL_ERROR_ISSUED..
5331 (pack_ts_decl_with_vis_value_fields): Do not write
5332 DECL_DEFER_OUTPUT.
5333 (write_ts_binfo_tree_pointers): Do not read BINFO_INHERITANCE_CHAIN,
48a3fa69 5334 BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX.
c01c111b
JH
5335 * print-tree.c (print_node): Do not print DECL_ERROR_ISSUED.
5336 * tree.h (tree_decl_common): Update comment.
5337 (DECL_ERROR_ISSUED): Remove.
5338
4b128ece
JJ
53392013-08-28 Jakub Jelinek <jakub@redhat.com>
5340
5341 PR middle-end/58257
5342 * omp-low.c (copy_var_decl): Copy over TREE_NO_WARNING flag.
5343
12211b99 53442013-08-28 Jan Hubicka <jh@suse.cz>
9e57846a
JH
5345
5346 * builtins.def (free): Declare leaf.
5347
8dce4dbc
DM
53482013-08-27 David Malcolm <dmalcolm@redhat.com>
5349
5350 * gdbhooks.py: New.
5351 * configure.ac (gdbinit.in): Add import of gcc/gdbhooks.py.
5352 * configure: Regenerate.
5353
b8f6e610
MJ
53542013-08-27 Martin Jambor <mjambor@suse.cz>
5355
5356 * ipa-prop.h (ipa_pass_through_data): New field type_preserved.
5357 (ipa_ancestor_jf_data): Likewise.
5358 (ipa_get_jf_pass_through_agg_preserved): Fix comment typo.
5359 (ipa_get_jf_pass_through_type_preserved): New function.
5360 (ipa_get_jf_ancestor_agg_preserved): Fix comment typo.
5361 (ipa_get_jf_ancestor_type_preserved): New function.
12211b99 5362 * ipa-cp.c (ipa_get_jf_pass_through_result): Honor type_preserved flag.
b8f6e610
MJ
5363 (ipa_get_jf_ancestor_result): Likewise.
5364 (propagate_vals_accross_pass_through): Use
5365 ipa_get_jf_pass_through_result to do all the value mappings.
5366 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump the
5367 type_preserved flag.
5368 (ipa_set_jf_cst_copy): New function.
5369 (ipa_set_jf_simple_pass_through): Set the type_preserved flag.
5370 (ipa_set_jf_arith_pass_through): Likewise.
5371 (ipa_set_ancestor_jf): Likewise.
5372 (compute_complex_assign_jump_func): Set type_preserved instead of
5373 punting.
5374 (ipa_compute_jump_functions_for_edge): Likewise.
5375 (combine_known_type_and_ancestor_jfs): Honor type_preserved.
5376 (update_jump_functions_after_inlining): Update type_preserved.
12211b99 5377 Explicitely create jump functions when combining one with pass_through.
b8f6e610
MJ
5378 (ipa_write_jump_function): Stream the type_preserved flags.
5379 (ipa_read_jump_function): Likewise.
5380
74bf76ed
JJ
53812013-08-27 Jakub Jelinek <jakub@redhat.com>
5382 Aldy Hernandez <aldyh@redhat.com>
5383
5384 * Makefile.in (omp-low.o): Depend on $(TARGET_H).
5385 * cfgloop.h (struct loop): Add safelen, force_vect, simduid.
5386 * function.h (struct function): Add has_force_vect_loops and
5387 has_simduid_loops.
12211b99 5388 * gimple-pretty-print.c (dump_gimple_omp_for): Handle GF_OMP_FOR_KIND*.
74bf76ed
JJ
5389 * gimple.c (gimple_build_omp_critical): Add KIND argument and
5390 handle it.
5391 * gimple.def: Update CLAUSES comments.
5392 * gimple.h (enum gf_mask): Add GF_OMP_FOR_KIND_{FOR,SIMD}.
5393 (gimple_build_omp_for): Add argument to prototype.
5394 (gimple_omp_for_kind): New.
5395 (gimple_omp_for_set_kind): New.
5396 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_LINEAR to
5397 GOVD_DATA_SHARE_CLASS.
5398 (enum omp_region_type): Add ORT_SIMD.
5399 (gimple_add_tmp_var): Handle ORT_SIMD.
5400 (gimplify_var_or_parm_decl): Same.
5401 (is_gimple_stmt): Same.
5402 (omp_firstprivatize_variable): Same.
5403 (omp_add_variable): Only use splay_tree_insert if lookup failed.
5404 (omp_notice_variable): Handle ORT_SIMD.
12211b99 5405 (omp_is_private): Add SIMD argument and handle it as well as ORT_SIMD.
74bf76ed
JJ
5406 (omp_check_private): Handle ORT_SIMD.
5407 (gimplify_scan_omp_clauses): Handle OMP_CLAUSE_LINEAR and
5408 OMP_CLAUSE_SAFELEN.
5409 (gimplify_adjust_omp_clauses_1): Handle GOVD_LINEAR.
5410 Handle OMP_CLAUSE_LASTPRIVATE.
5411 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_LINEAR and
5412 OMP_CLAUSE_SAFELEN.
5413 (gimplify_omp_for): Handle OMP_SIMD and OMP_CLAUSE_LINEAR.
5414 (gimplify_expr): Handle OMP_SIMD.
5415 * internal-fn.c (expand_GOMP_SIMD_LANE): New.
5416 (expand_GOMP_SIMD_VF): New.
5417 (expand_GOMP_SIMD_LAST_LANE): New.
5418 * internal-fn.def (GOMP_SIMD_LANE): New.
5419 (GOMP_SIMD_VF): New.
5420 (GOMP_SIMD_LAST_LANE): New.
5421 * omp-low.c: Include target.h.
5422 (extract_omp_for_data): Handle OMP_SIMD, OMP_CLAUSE_LINEAR,
5423 OMP_CLAUSE_SAFELEN.
5424 (check_omp_nesting_restrictions): Same.
5425 (omp_max_vf): New.
5426 (lower_rec_simd_input_clauses): New.
5427 (lower_rec_input_clauses): Handle OMP_SIMD, GF_OMP_FOR_KIND_SIMD,
5428 OMP_CLAUSE_LINEAR.
5429 (lower_lastprivate_clauses): Handle OMP_CLAUSE_LINEAR,
5430 GF_OMP_FOR_KIND_SIMD, OMP_SIMD.
5431 (expand_omp_build_assign): New.
5432 (expand_omp_for_init_counts): New.
5433 (expand_omp_for_init_vars): New.
5434 (extract_omp_for_update_vars): New.
5435 (expand_omp_for_generic): Use expand_omp_for_{init,update}_vars
5436 and rewrite accordingly.
5437 (expand_omp_simd): New.
5438 (expand_omp_for): Use expand_omp_simd.
5439 (lower_omp_for_lastprivate): Unshare vinit when appropriate.
5440 (lower_omp_for): Do not lower the body.
5441 * tree-data-ref (get_references_in_stmt): Allow IFN_GOMP_SIMD_LANE
5442 in their own loops.
5443 * tree-flow.h (find_omp_clause): Remove prototype.
12211b99
UB
5444 * tree-if-conv.c (main_tree_if_conversion): Run if doing if conversion,
5445 forcing vectorization of the loop, or if flag_tree_vectorize.
74bf76ed
JJ
5446 (gate_tree_if_conversion): Similarly.
5447 * tree-inline.c (remap_gimple_stmt): Pass for kind argument to
5448 gimple_build_omp_for.
5449 (copy_cfg_body): set has_force_vect_loops and has_simduid_loops.
5450 * tree-parloops (create_parallel_loop): Pass kind argument to
5451 gimple_build_omp_for.
5452 * tree-pretty-print.c (dump_omp_clause): Add cases for
5453 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_LINEAR, OMP_CLAUSE_SAFELEN,
5454 OMP_CLAUSE__SIMDUID_.
5455 (dump_generic_node): Handle OMP_SIMD.
5456 * tree-ssa-ccp.c (likely_value): Handle IFN_GOMP_SIMD*.
5457 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Do not
5458 unroll OMP_SIMD loops here.
12211b99 5459 * tree-ssa-loop.c (gate_tree_vectorize): Run if has_force_vect_loops.
74bf76ed 5460 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Handle
12211b99 5461 loop->safelen.
74bf76ed
JJ
5462 (vect_analyze_data_refs): Handle simd loops.
5463 * tree-vect-loop.c (vectorizable_live_operation): Handle
5464 IFN_GOMP_SIMD*.
12211b99 5465 * tree-vect-stmts.c (vectorizable_call): Handle IFN_GOMP_SIMD_LANE.
74bf76ed
JJ
5466 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P.
5467 (vectorizable_load): Same.
12211b99 5468 * tree-vectorizer.c: Include hash-table.h and tree-ssa-propagate.h.
74bf76ed
JJ
5469 (struct simduid_to_vf): New.
5470 (simduid_to_vf::hash): New.
5471 (simduid_to-vf::equal): New.
5472 (struct simd_array_to_simduid): New.
5473 (simd_array_to_simduid::hash): New.
5474 (simd_array_to_simduid::equal): New.
5475 (adjust_simduid_builtins): New.
5476 (struct note_simd_array_uses_struct): New.
5477 (note_simd_array_uses_cb): New.
5478 (note_simd_array_uses): New.
5479 (vectorize_loops): Handle simd hints and adjust simd builtins
5480 accordingly.
5481 * tree-vectorizer.h (struct _stmt_vec_info): Add
5482 simd_lane_access_p field.
5483 (STMT_VINFO_SIMD_LANE_ACCESS_P): New macro.
5484 * tree.c (omp_clause_num_ops): Add entries for OMP_CLAUSE_LINEAR,
5485 OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_UNIFORM.
5486 (omp_clause_code_name): Same.
5487 (walk_tree_1): Handle OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN,
5488 OMP_CLAUSE__SIMDUID_, OMP_CLAUSE_LINEAR.
5489 * tree.def (OMP_SIMD): New entry.
12211b99
UB
5490 * tree.h (enum omp_clause_code): Add entries for OMP_CLAUSE_LINEAR,
5491 OMP_CLAUSE_UNIFORM, OMP_CLAUSE_SAFELEN, OMP_CLAUSE__SIMDUID_.
74bf76ed
JJ
5492 (OMP_CLAUSE_DECL): Adjust range for new clauses.
5493 (OMP_CLAUSE_LINEAR_NO_COPYIN): New.
5494 (OMP_CLAUSE_LINEAR_NO_COPYOUT): New.
5495 (OMP_CLAUSE_LINEAR_STEP): New.
5496 (OMP_CLAUSE_SAFELEN_EXPR): New.
5497 (OMP_CLAUSE__SIMDUID__DECL): New.
5498 (find_omp_clause): New prototype.
5499
d0cf4e84
L
55002013-08-27 H.J. Lu <hongjiu.lu@intel.com>
5501
5502 * config/i386/driver-i386.c (host_detect_local_cpu): Update
5503 Haswell processor detection.
5504
992592ec
CW
55052013-08-27 Christian Widmer <shadow@umbrox.de>
5506
5507 PR target/57927
5508 * config/i386/driver-i386.c (host_detect_local_cpu): Add detection
5509 of Ivy Bridge and Haswell processors. Assume core-avx2 for unknown
5510 AVX2 capable processors.
5511
9116eb22
TB
55122013-08-27 Tejas Belagod <tejas.belagod@arm.com>
5513
5514 * config/aarch64/arm_neon.h: Replace all inline asm implementations
5515 of vget_low_* with implementations in terms of other intrinsics.
5516
1c5abb53
MG
55172013-08-27 Marc Glisse <marc.glisse@inria.fr>
5518
5519 PR middle-end/57219
5520 * doc/extend.texi (__builtin_isinf_sign): Restrict the return
5521 values to -1, 0 and 1.
5522
2e100703
VP
55232013-08-27 Vidya Praveen <vidyapraveen@arm.com>
5524
5525 * config/aarch64/aarch64.md (unspec): Add UNSPEC_SISD_SSHL,
5526 UNSPEC_SISD_USHL, UNSPEC_USHL_2S, UNSPEC_SSHL_2S, UNSPEC_SISD_NEG.
5527 (<optab><mode>3_insn): Remove.
5528 (aarch64_ashl_sisd_or_int_<mode>3): New Pattern.
5529 (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
5530 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
5531 (define_split for aarch64_lshr_sisd_or_int_di3): Likewise.
5532 (define_split for aarch64_lshr_sisd_or_int_si3): Likewise.
5533 (define_split for aarch64_ashr_sisd_or_int_di3): Likewise.
5534 (define_split for aarch64_ashr_sisd_or_int_si3): Likewise.
5535 (aarch64_sisd_ushl, aarch64_sisd_sshl): Likewise.
5536 (aarch64_ushl_2s, aarch64_sshl_2s, aarch64_sisd_neg_qi): Likewise.
5537 (ror<mode>3_insn): Likewise.
5538 * config/aarch64/predicates.md (aarch64_simd_register): New.
5539
4ded8276
RB
55402013-08-27 Richard Biener <rguenther@suse.de>
5541
5542 PR tree-optimization/57521
5543 * tree-if-conv.c (if_convertible_bb_p): Verify that at least
5544 one edge is non-critical.
5545 (find_phi_replacement_condition): Make sure to use a non-critical
5546 edge. Cleanup and remove old bug workarounds.
5547 (bb_postdominates_preds): Remove.
5548 (if_convertible_loop_p_1): Do not compute post-dominators.
5549 (combine_blocks): Do not free post-dominators.
5550 (main_tree_if_conversion): Likewise.
5551 (pass_data_if_conversion): Add TODO_verify_ssa.
5552
5aa11061
DD
55532013-08-27 DJ Delorie <dj@redhat.com>
5554
5555 * config/i386/djgpp.h (ASM_DECLARE_FUNCTION_NAME): New.
5556
fd91cfe3
YZ
55572013-08-27 Yufeng Zhang <yufeng.zhang@arm.com>
5558
5559 * function.c (assign_parm_find_data_types): Set passed_mode and
5560 nominal_mode to the TYPE_MODE of nominal_type for the built
5561 pointer type in case of the struct-pass-by-reference.
5562
907555ce
JR
55632013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5564
5565 * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int".
5566 (UINT16_TYPE): Change default to "unsigned int".
5567
67518c93
JR
5568 * config/avr/avr.opt (mfract-convert-truncate): New option.
5569 * config/avr/avr.c (avr_out_fract): Unless TARGET_FRACT_CONV_TRUNC
5570 is set, round negative fractional integers according to n1169
5571 when converting to integer types.
5572
d6d989fc
JH
55732013-08-26 Jan Hubicka <jh@suse.cz>
5574
5575 * cgraph.c (cgraph_propagate_frequency): Do not assume that virtual
5576 methods can not be called indirectly when their address is not taken.
5577
2aa3da06
JH
55782013-08-26 Jan Hubicka <jh@suse.cz>
5579
12211b99
UB
5580 * gimple-fold.c (gimple_get_virt_method_for_binfo): Use
5581 ctor_for_folding.
2aa3da06 5582
0987ffe7
JH
55832013-08-26 Jan Hubicka <jh@suse.cz>
5584
5585 * ipa.c (comdat_can_be_unshared_p_1): C++ constructors and destructors
5586 can be unshared.
5587
befe8647
JR
55882013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5589
5590 * reload.c (find_valid_class): Allow classes that do not include
5591 FIRST_PSEUDO_REGISTER - 1.
5592
a21e735e
JH
55932013-08-26 Jan Hubicka <jh@suse.cz>
5594
5595 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix formatting;
5596 fix edge count/frequency when speculation failed; fix type check
5597 for the direct call.
5598
e067bd43
JH
55992013-08-26 Jan Hubicka <jh@suse.cz>
5600
5601 * ipa-prop.c (ipa_print_node_params): Do not ICE during WPA.
5602
e8aec975
JH
56032013-08-26 Jan Hubicka <jh@suse.cz>
5604
5605 * ipa-inline-transform.c (inline_transform): Be ready for basic block
5606 to be changed by edge redirection.
5607
d0b66480
JH
56082013-08-26 Jan Hubicka <jh@suse.cz>
5609
12211b99
UB
5610 * cgraph.c (cgraph_speculative_call_info): Fix parameter order and
5611 formating; add sanity check.
d0b66480
JH
5612 (cgraph_resolve_speculation): Add FIXME about scaling profiles.
5613 (cgraph_redirect_edge_call_stmt_to_callee): Fix ICE in debug dump.
5614 * ipa-inline.c (heap_edge_removal_hook): Reset node growth cache.
5615 (resolve_noninline_speculation): Update callee keys, too.
5616
0f9aaac7
JH
56172013-08-26 Jan Hubicka <jh@suse.cz>
5618
5619 * tree.h (tree_decl_with_vis): Add cxx_constructor, cxx_destructor.
5620 (DECL_CXX_CONSTRUCTOR_P, DECL_CXX_DESTRUCTOR_P): New macros.
5621
4b37444e
JR
56222013-08-26 Joern Rennecke <joern.rennecke@embecosm.com>
5623
5624 * config/i386/i386.c (x86_64_elf_select_section): Put ATTRIBUTE_UNUSED
5625 into proper place.
5626
5339fc0c
UB
56272013-08-26 Uros Bizjak <ubizjak@gmail.com>
5628
5629 * config/i386/i386.c (ix86_debug_options): Remove prototype.
5630 (x86_64_elf_select_section): Ditto.
5631 (ix86_handle_tm_regparm_attribute): Remove ATTRIBUTE_UNUSED on used
5632 arguments.
5633 (ix86_pass_by_reference): Ditto.
5339fc0c
UB
5634 (output_set_got): Ditto.
5635 (ix86_unary_operator_ok): Ditto.
5636 (ix86_expand_builtin): Ditto.
5637
d5c3d3ef
JH
56382013-08-23 Jan Hubicka <jh@suse.cz>
5639
5339fc0c 5640 * cgraph.c (cgraph_turn_edge_to_speculative): Fix debug output.
d5c3d3ef 5641
5b1e7435
JH
56422013-08-23 Jan Hubicka <jh@suse.cz>
5643
5644 * tree.h (TYPE_FINAL_P, DECL_FINAL_P): New macros.
5645 (tree_decl_with_vis): Add FINAL field.
5646
ead69dac
JL
56472013-08-23 Jeff Law <law@redhat.com>
5648
5649 * tree-ssa-pre.c (do_regular_insertion): Include the expression in
5650 the debugging dump when the expression is fully redundant.
5651
025311c4
GDR
56522013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
5653
5654 * diagnostic.c (diagnostic_set_caret_max_width): Use pp_buffer.
5655 * gimple-pretty-print.c (gimple_dump_bb_buff): Likewise.
5656 * pretty-print.c (pp_formatted_text_data): Likewise.
5657 (pp_write_text_to_stream): Likewise.
5658 (pp_write_text_as_dot_label_to_stream): Likewise.
5659 (pp_append_r): Likewise.
5660 (pp_format): Likewise.
5661 (pp_flush): Likewise.
5662 (pp_clear_output_area): Likewise.
5663 (pp_append_text): Likewise.
5664 (pp_formatted_text): Likewise.
5665 (pp_remaining_character_count_for_line): Likewise.
5666 (pp_newline): Likewise.
5667 (pp_character): Likewise.
5668 (output_buffer::~output_buffer): Define.
5669 (pretty_printer::~pretty_printer): Destruct output buffer.
5670 * pretty-print.h (output_buffer::~output_buffer): Declare.
5671 (pretty_printer::~pretty_printer): Declare virtual.
5672
0cadbfaa
MG
56732013-08-24 Marc Glisse <marc.glisse@inria.fr>
5674
5675 PR other/57324
5676 * hwint.h (HOST_WIDE_INT_UC, HOST_WIDE_INT_1U, HOST_WIDE_INT_M1,
5677 HOST_WIDE_INT_M1U): New macros.
5678 * fold-const.c (sign_bit_p, build_range_check, fold_unary_loc,
5679 fold_binary_loc, fold_ternary_loc): Use the new macros. Use an
5680 unsigned -1 for lshift.
5681 * cse.c (cse_insn): Likewise.
5682 * double-int.c (rshift_double, lshift_double): Likewise.
5683 * builtins.c (fold_builtin_bitop): Likewise.
5684 * combine.c (force_to_mode): Likewise.
5685 * tree.c (integer_pow2p, tree_log2, tree_floor_log2): Likewise.
5686 * simplify-rtx.c (simplify_const_unary_operation,
5687 simplify_const_binary_operation): Likewise.
5688 * tree-stdarg.c (va_list_counter_bump, va_list_ptr_read,
5689 check_va_list_escapes): Likewise.
5690 * rtlanal.c (nonzero_bits1): Likewise.
5691 * expmed.c (expand_smod_pow2): Likewise.
5692 * tree-ssa-structalias.c (UNKNOWN_OFFSET): Use HOST_WIDE_INT_MIN.
5693
009e5353
JH
56942013-08-23 Jan Hubicka <jh@suse.cz>
5695
5696 * cgraph.c (cgraph_turn_edge_to_speculative): Mark target node
5697 as having address taken.
5698
c4be6568
JH
56992013-08-23 Jan Hubicka <jh@suse.cz>
5700
64cbf23d
JH
5701 * ipa-utils.h (method_class_type): Declare.
5702 * ipa-devirt.c (method_class_type): Export.
5703
c4be6568
JH
5704 * cgraphunit.c (analyze_functions): Do basic devirtualization;
5705 do not walk base classes of anonymous types.
5706
97aba8e9
KK
57072013-08-23 Kaz Kojima <kkojima@gcc.gnu.org>
5708
5709 PR rtl-optimization/58220
5710 PR regression/58221
5711 * final.c (reemit_insn_block_notes): Use NEXT_INSN to
5712 handle SEQUENCE insns properly.
5713
0fc80001
GDR
57142013-08-23 Gabriel Dos Reis <gdr@integrable-solutions.net>
5715
5716 * pretty-print.h (pp_newline_and_flush): Declare. Remove macro
5717 definition.
5718 (pp_newline_and_indent): Likewise.
5719 (pp_separate_with): Likewise.
5720 * pretty-print.c (pp_newline_and_flush): Define.
5721 (pp_newline_and_indent): Likewise.
5722 (pp_separate_with): Likewise.
5723
520a5868
JJ
57242013-08-23 Jakub Jelinek <jakub@redhat.com>
5725
5726 PR target/58218
5727 * config/i386/x86-64.h (TARGET_SECTION_TYPE_FLAGS): Define.
5728 * config/i386/i386.c (x86_64_elf_section_type_flags): New function.
5729
e500c62a
KY
57302013-08-23 Kirill Yukhin <kirill.yukhin@intel.com>
5731
f43245d1
UB
5732 * config/i386/predicates.md (ext_sse_reg_operand): New.
5733 * config/i386/i386.md (*movti_internal): Use
e500c62a
KY
5734 predicate to determine if EVEX is needed.
5735 (*movsi_internal): Ditto.
5736 (*movdf_internal): Ditto.
5737 (*movsf_internal): Ditto.
f43245d1 5738 * config/i386/mmx.md (*mov<mode>_internal): Ditto.
e500c62a 5739
6b00d7dd
JJ
57402013-08-23 Jakub Jelinek <jakub@redhat.com>
5741
5742 PR tree-optimization/58209
5743 * tree-tailcall.c (process_assignment): Handle POINTER_PLUS_EXPR.
5744 (find_tail_calls): Give up for pointer result types if m is non-NULL.
5745 (adjust_return_value_with_ops): For PLUS_EXPR and pointer result type
5746 emit POINTER_PLUS_EXPR.
5747 (create_tailcall_accumulator): For pointer result type accumulate in
5748 sizetype type.
5749
4f2a9f90
PC
57502013-08-22 Paolo Carlini <paolo.carlini@oracle.com>
5751
5752 * configure.ac: Add backslashes missing from the last change.
5753 * configure: Regenerate.
5754
7bf4274e
JH
57552013-08-22 Jan Hubicka <jh@susue.cz>
5756
4f2a9f90
PC
5757 * ipa.c (function_and_variable_visibility): First remember function
5758 was global and then make it local.
7bf4274e 5759
1bea243d
JB
57602013-08-22 Julian Brown <julian@codesourcery.com>
5761
5762 * configure.ac: Add aarch64 to list of arches which use "nop" in
5763 debug_line test.
5764 * configure: Regenerate.
5765
bcba7ecc
AK
57662013-08-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5767
5768 * config/s390/linux.h (TARGET_LIBC_HAS_FUNCTION): Define as
5769 gnu_libc_has_function.
5770 * config/s390/tpf.h: Likewise.
5771
4c495b0d
JH
57722013-08-22 Jan Hubicka <jh@susue.cz>
5773
5774 * timevar.c (validate_phases): Add cast.
5775
5e302bca
JH
57762013-08-22 Jan Hubicka <jh@susue.cz>
5777
5778 * timevar.c (validate_phases): Use size_t for memory.
5779 * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
5780
da6ca2b5
GDR
57812013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
5782
5783 * pretty-print.h (output_buffer::output_buffer): Declare.
5784 (pretty_printer::pretty_printer): Likewise.
5785 (pp_construct): Remove.
5786 * pretty-print.c (output_buffer::output_buffer): Define.
5787 (pretty_printer::pretty_printer): Rename from pp_construct. Simplify.
5788 * gimple-pretty-print.c (print_gimple_stmt): Do not call pp_construct.
5789 (print_gimple_expr): Likewise.
5790 (print_gimple_seq): Likewise.
5791 (gimple_dump_bb): Likewise.
5792 * sched-vis.c (dump_value_slim): Likewise.
5793 (dump_insn_slim): Likewise.
5794 (dump_rtl_slim): Likewise.
5795 (str_pattern_slim): Likewise.
5796 * tree-mudflap.c (mf_varname_tree): Likewise.
5797 * graph.c (print_graph_cfg): Likewise.
5798 (start_graph_dump): Likewise.
5799 * tree-pretty-print.c (maybe_init_pretty_print): Likewise. Use
5800 placement-new.
5801 * diagnostic.c (diagnostic_initialize): Simplify early diagnostic
5802 pretty printer initialization.
5803 * coretypes.h (diagnostic_context): Remove superflous type alias
5804 declaration.
5805 (pretty_printer): Likewise. Declare directly as a class.
5806 (pretty_print_info): Remove declaration as class.
5807 * asan.c (asan_emit_stack_protection): Remove call to pp_construct
5808 and pp_clear_output_area.
5809 (asan_add_global): Likewise.
5810
0e1474e5
JH
58112013-08-22 Jan Hubicka <jh@suse.cz>
5812
5813 * cgraphunit.c (analyze_functions) Use update_type_inheritance_graph.
5814 * ipa-utils.h (update_type_inheritance_graph): Declare.
5815 (possible_polymorphic_call_target_p): Declare.
5816 (possible_polymorphic_call_target_p): New.
5817 * ipa-devirt.c: Update toplevel comments.
5818 (cached_polymorphic_call_targets): Move up.
5819 (odr_type_d): Move ID down.
5820 (polymorphic_type_binfo_p): Update comment.
5821 (odr_hasher::remove): Likewise;
5822 (get_odr_type): Set anonymous_namespace.
5823 (dump_odr_type): Dump it.
5824 (dump_type_inheritance_graph): Do not ICE when there are no ODR types.
5825 (maybe_record_node): Record node in cached_polymorphic_call_targets.
5826 (record_binfo): Add comment.
5339fc0c
UB
5827 (free_polymorphic_call_targets_hash): Do not ICE when cache is not
5828 built.
0e1474e5
JH
5829 (devirt_node_removal_hook): Do not iCE when cache is freed.
5830 (possible_polymorphic_call_target_p): New predicate.
5831 (update_type_inheritance_graph): New function.
5832
3f97cb0b
AI
58332013-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
5834 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5835 Sergey Lega <sergey.s.lega@intel.com>
5836 Anna Tikhonova <anna.tikhonova@intel.com>
5837 Ilya Tocar <ilya.tocar@intel.com>
5838 Andrey Turetskiy <andrey.turetskiy@intel.com>
5839 Ilya Verbin <ilya.verbin@intel.com>
5840 Kirill Yukhin <kirill.yukhin@intel.com>
5841 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5842
5843 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512F_SET): New.
5844 (OPTION_MASK_ISA_AVX512CD_SET): Ditto.
5845 (OPTION_MASK_ISA_AVX512PF_SET): Ditto.
5846 (OPTION_MASK_ISA_AVX512ER_SET): Ditto.
5847 (OPTION_MASK_ISA_AVX2_UNSET): Update.
5848 (OPTION_MASK_ISA_AVX512F_UNSET): New.
5849 (OPTION_MASK_ISA_AVX512CD_UNSET): Ditto.
5850 (OPTION_MASK_ISA_AVX512PF_UNSET): Ditto.
5851 (OPTION_MASK_ISA_AVX512ER_UNSET): Ditto.
5852 (ix86_handle_option): Handle OPT_mavx512f, OPT_mavx512cd,
5853 OPT_mavx512pf, OPT_mavx512er cases.
5854 * config/i386/constraints.md (v): New constraint.
5855 (Yi, Yj): Replace SSE_REGS with ALL_SSE_REGS.
5856 * config/i386/cpuid.h (bit_AVX512F, bit_AVX512PF, bit_AVX512ER)
5857 (bit_AVX512CD): New.
5858 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5859 AVX512F, AVX512ER, AVX512PF, AVX512CD features.
5860 * config/i386/i386-c.c (ix86_target_macros_internal):
5861 Conditionally define __AVX512F__, __AVX512ER__, __AVX512CD__,
5862 __AVX512PF__.
5863 * config/i386/i386-modes.def (VECTOR_MODES (INT, 128))
5864 (VECTOR_MODES (FLOAT, 128), INT_MODE (XI, 64)): New modes.
5865 * config/i386/i386.c (regclass_map, dbx_register_map)
5866 (dbx64_register_map, svr4_dbx_register_map): Add new SSE registers.
5867 (gate_insert_vzeroupper): Disable vzeroupper for TARGET_AVX512F.
5868 (ix86_target_string): Define -mavx512f, -mavx512er, -mavx512cd,
5869 -mavx512pf options.
5870 (ix86_option_override_internal): Define PTA_AVX512F, PTA_AVX512ER,
5871 PTA_AVX512PF, PTA_AVX512CD. Handle -mavx512f, -mavx512er, -mavx512cd,
5872 -mavx512pf options. Fix formatting.
5873 (ix86_conditional_register_usage): Squash EXT_REX_SSE_REGs for 32-bit
5874 targets. Squash EVEX_SSE_REGS if AVX512F is disabled.
5875 (ix86_valid_target_attribute_inner_p): Handle -mavx512f, -mavx512er,
5876 -mavx512cd, -mavx512pf options.
5877 (standard_sse_constant_opcode): Add vpternlogd for 512-bit modes.
5878 (print_reg, ix86_print_operand): Handle 'g' to output 512-bit operands.
5879 (ix86_preferred_output_reload_class): Replace SSE_REGS with
5880 ALL_SSE_REGS.
5881 (ix86_hard_regno_mode_ok): Support 512-bit registers.
5882 (ix86_set_reg_reg_cost): Ditto.
5883 (x86_order_regs_for_local_alloc): Ditto.
5884 (MAX_VECT_LEN): Extend to 64-byte.
5885 (ix86_spill_class): Replace SSE_REGS with ALL_SSE_REGS.
5886 * config/i386/i386.h (TARGET_AVX512F, TARGET_AVX512PF)
5887 (TARGET_AVX512ER, TARGET_AVX512CD): New.
5888 (BIGGEST_ALIGNMENT): Extend to 512-bits.
5889 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS): Add new registers.
5890 (CALL_USED_REGISTERS, REG_ALLOC_ORDER): Likewise.
5891 (VALID_AVX512F_SCALAR_MODE, VALID_AVX512F_REG_MODE): New.
5892 (SSE_REG_MODE_P): Support new modes.
5893 (FIRST_MMX_REG, FIRST_REX_INT_REG, FIRST_REX_SSE_REG): Add comments.
5894 (FIRST_EXT_REX_SSE_REG, LAST_EXT_REX_SSE_REG): New.
5895 (reg_class, REG_CLASS_NAMES): Add EVEX_SSE_REGS, ALL_SSE_REGS.
5896 (SSE_CLASS_P, MAYBE_SSE_CLASS_P): Replace SSE_REGS with ALL_SSE_REGS.
5897 (REG_CLASS_CONTENTS): Add new registers.
5898 (SSE_REGNO_P, SSE_REGNO, HARD_REGNO_RENAME_OK): Support new registers.
5899 (EXT_REX_SSE_REGNO_P): New.
5900 (HI_REGISTER_NAMES): Add new registers.
5901 * config/i386/i386.md: Define constants for new registers.
5902 (mode): Add new 512-bit modes.
5903 (prefix): Support evex prefix.
5904 (isa): Support avx512f, noavx512f, fma_avx512f.
5905 (ssemodesuffix): Add new 512-bit modes.
5906 (movxi): New.
5907 (*movxi_internal_avx512f): Ditto.
5908 (*movdi_internal): Replace constraint "x" with the new constraint "v".
5909 Support MODE_XI.
5910 (*movsi_internal): Likewise.
5911 (*movdf_internal): Likewise.
5912 (*movsf_internal): Likewise.
5913 (*fop_<mode>_comm_sse): Replace constraint "x" with new constraint "v".
5914 (<code><mode>3): Likewise.
5339fc0c
UB
5915 * config/i386/i386.opt (mavx512f, mavx512pf, mavx512er, mavx512cd):
5916 New.
3f97cb0b
AI
5917 * config/i386/mmx.md (*mov<mode>_internal): Replace constraint "x"
5918 with the new constraint "v".
5919 * config/i386/sse.md (*mov<mode>_internal): Support new registers and
5920 modes.
5921 (<sse>_loadu<ssemodesuffix><avxsizesuffix>): Replace constraint "x"
5922 with the new constraint "v".
5923 (<sse2>_loaddqu<avxsizesuffix>): Likewise.
5924 (<sse2>_storedqu<avxsizesuffix>): Likewise.
5925 (*<plusminus_insn><mode>3): Likewise.
5926 (<sse>_vm<plusminus_insn><mode>3): Likewise.
5927 (*mul<mode>3): Likewise.
5928 (<sse>_vmmul<mode>3): Likewise.
5929 (<sse>_div<mode>3): Likewise.
5930 (<sse>_vmdiv<mode>3): Likewise.
5931 (<sse>_sqrt<mode>2): Likewise.
5932 (<sse>_vmsqrt<mode>2): Likewise.
5933 (*<code><mode>3_finite): Likewise.
5934 (*<code><mode>3) <smaxmin>: Likewise.
5935 (<sse>_vm<code><mode>3): Likewise.
5936 (*<code><mode>3) <any_logic>: Likewise.
5937 (*fma_fmadd_<mode>): Likewise.
5938 (*fma_fmsub_<mode>): Likewise.
5939 (*fma_fnmadd_<mode>): Likewise.
5940 (*fma_fnmsub_<mode>): Likewise.
5941 (*fma_fmaddsub_<mode>): Likewise.
5942 (*fma_fmsubadd_<mode>): Likewise.
5943 (*fmai_fmadd_<mode>): Likewise.
5944 (*fmai_fmsub_<mode>): Likewise.
5945 (*fmai_fnmadd_<mode>): Likewise.
5946 (*fmai_fnmsub_<mode>): Likewise.
5947 (sse_cvtsi2ss): Likewise.
5948 (sse_cvtsi2ssq): Likewise.
5949 (sse_cvtss2si): Likewise.
5950 (sse_cvtss2si_2): Likewise.
5951 (sse_cvtss2siq): Likewise.
5952 (sse_cvtss2siq_2): Likewise.
5953 (sse_cvttss2si): Likewise.
5954 (sse_cvtss2siq_2): Likewise.
5955 (float<sseintvecmodelower><mode>2): Likewise.
5956 (sse2_cvtsd2si_2): Likewise.
5957 (sse2_cvtsd2siq_2): Likewise.
5958 (*<plusminus_insn><mode>3): Likewise.
5959 (*<sse2_avx2>_<plusminus_insn><mode>3): Likewise.
5960 (*<sse4_1_avx2>_mul<mode>3): Likewise.
5961 (ashr<mode>3): Likewise.
5962 (<shift_insn><mode>3): Likewise.
5963 (avx2_<code><mode>3): Likewise.
5964 (*avx2_<code><mode>3): Likewise.
5965 (*andnot<mode>3): Likewise.
5966 (*<code><mode>3) <any_logic>: Likewise.
5967 (abs<mode>2): Likewise.
5968 (avx2_permvar<mode>): Likewise.
5969 (avx2_perm<mode>_1): Likewise.
5970 (*avx_vpermilp<mode>): Likewise.
5971 (avx_vpermilvar<mode>3): Likewise.
5972 (avx2_ashrv<mode>): Likewise.
5973 (avx2_<shift_insn>v<mode>): Likewise.
5974 * doc/invoke.texi: Document -mavx512f, -mavx512pf, -mavx512er,
5975 -mavx512cd.
5976 * doc/rtl.texi: Document XImode.
5977
dd5e8423
JL
59782013-08-21 Jeff Law <law@redhat.com>
5979
b9ebee5d
JL
5980 * tree-flow.h (register_jump_thread): Pass vector of edges
5981 instead of each important edge.
5982 * tree-ssa-threadedge.c (thread_across_edge): Build the jump
5983 thread path into a vector and pass that to register_jump_thread.
5984 * tree-ssa-threadupdate.c (register_jump_thread): Conver the
5985 passed in edge vector to the current 3-edge form.
5986
dd5e8423
JL
5987 Revert:
5988 2013-08-20 Alexey Makhalov <makhaloff@gmail.com>
5989
9bb6628e 5990 * dce.c (fini_dce): Call df_analyze again just in case
dd5e8423
JL
5991 delete_unmarked_insns removed anything.
5992
445dc8df
JR
59932013-08-21 Joern Rennecke <joern.rennecke@embecosm.com>
5994
5995 * reload.h (struct reg_equivs): Rename to ..
5996 (struct reg_equivs_s): .. this.
5997
e0df53dd
ML
59982013-08-20 Martin Liska <marxin.liska@gmail.com>
5999
6000 * ipa.c (ipa_profile_read_summary): Fix buffer overflow.
6001
e7d1d3eb
RO
60022013-08-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6003
5339fc0c 6004 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Don't nest comment.
e7d1d3eb 6005
5562e26e
JL
60062013-08-21 Jeff Law <law@redhat.com>
6007
6008 * tree-vrp.c (simplify_stmt_for_jump_threading): Try to
6009 simplify assignments too. If the RHS collapses to a singleton
6010 range, then return the value for the range.
6011
c7ecdec6
KY
60122013-08-21 Kirill Yukhin <kirill.yukhin@intel.com>
6013
7a5911d3
UB
6014 * config/i386/sse.md (V16): Rename to...
6015 (VMOVE): this.
6016 (mov<mode>): Update iterator name.
6017 (*mov<mode>_internal): Ditto.
6018 (push<mode>1): Ditto.
6019 (movmisalign<mode>): Ditto.
c7ecdec6 6020
bfa3b50a
JH
60212013-08-20 Jan Hubicka <jh@suse.cz>
6022
6023 PR bootstrap/58186
6024 * cgraph.c (cgraph_add_edge_to_call_site_hash): Overwrite hash
6025 entry for direct edges.
6026 (cgraph_turn_edge_to_speculative): Fix setting of can_throw_external.
6027
6cd4d135
DM
60282013-08-20 David Malcolm <dmalcolm@redhat.com>
6029
6030 Revert my last two changes, r201865 and r201864:
6031
6032 Revert r201865:
6033 2013-08-20 David Malcolm <dmalcolm@redhat.com>
6034
6035 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
6036 instances can own GC refs.
6037
6038 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
6039 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
6040 (gcc::context::gt_pch_nx): Likewise.
6041 (gcc::context::gt_pch_nx): Likewise.
6042 * ggc.h (gt_ggc_mx <T>): New.
6043 (gt_pch_nx_with_op <T>): New.
6044 (gt_pch_nx <T>): New.
6045 * passes.c (opt_pass::gt_ggc_mx): New.
6046 (opt_pass::gt_pch_nx): New.
6047 (opt_pass::gt_pch_nx_with_op): New.
6048 (pass_manager::gt_ggc_mx): New.
6049 (pass_manager::gt_pch_nx): New.
6050 (pass_manager::gt_pch_nx_with_op): New.
6051 (pass_manager::operator new): Use
6052 ggc_internal_cleared_alloc_stat rather than xcalloc.
6053 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
6054 (pass_manager::gt_ggc_mx): New.
6055 (pass_manager::gt_pch_nx): New.
6056 (pass_manager::gt_pch_nx_with_op): New.
6057 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
6058 (opt_pass::operator new): New.
6059 (opt_pass::gt_ggc_mx): New.
6060 (opt_pass::gt_pch_nx): New.
6061 (opt_pass::gt_pch_nx_with_op): New.
6062
6063 Revert r201864:
6064 2013-08-20 David Malcolm <dmalcolm@redhat.com>
6065
6066 * Makefile.in (GTFILES): Add context.h.
6067 * context.c (gcc::context::operator new): New.
6068 (gcc::context::gt_ggc_mx): New.
6069 (gcc::context::gt_pch_nx): New.
6070 (gcc::context::gt_pch_nx): New.
6071 * context.h (gcc::context): Add GTY((user)) marking.
6072 (gcc::context::operator new): New.
6073 (gcc::context::gt_ggc_mx): New.
6074 (gcc::context::gt_pch_nx): New.
6075 (gcc::context::gt_pch_nx): New.
6076 (g): Add GTY marking.
6077 (gt_ggc_mx (gcc::context *)): New.
6078 (gt_pch_nx (gcc::context *)): New.
6079 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
6080 void *cookie)): New.
6081 * gengtype.c (open_base_files) <ifiles>: Add context.h.
6082
a046136a
AM
60832013-08-20 Alexey Makhalov <makhaloff@gmail.com>
6084
6085 * dce.c (fini_dce): Call df_analyze again just in case
6086 delete_unmarked_insns removed anything.
6087
67598720
TJ
60882013-08-20 Teresa Johnson <tejohnson@google.com>
6089
6090 PR rtl-optimizations/57451
6091 * final.c (reemit_insn_block_notes): Prevent lexical blocks
6092 from crossing split section boundaries.
6093
f8693faf
MGD
60942013-08-20 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
6095
6096 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Remove definition.
6097 * config/arm/t-linux-eabi (MULTILIB_OPTIONS): Document association
6098 with MULTLIB_DEFAULTS.
6099
7d0b9a9c
NC
61002013-08-20 Nick Clifton <nickc@redhat.com>
6101
6102 * target.def (narrow_volatile_bitfield): Note that the default
6103 value is false, not !TARGET_STRICT_ALIGN.
6104 * doc/tm.texi: Regenerate.
6105
8edb8dc8
PC
61062013-08-20 Pavel Chupin <pavel.v.chupin@intel.com>
6107
6108 Fix LIB_SPEC for systems without libpthread.
6109
6110 * config/gnu-user.h: Introduce GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC.
6111 * config/arm/linux-eabi.h: Use GNU_USER_TARGET_NO_PTHREADS_LIB_SPEC
6112 for Android.
6113 * config/i386/linux-common.h: Likewise.
6114 * config/mips/linux-common.h: Likewise.
6115
12211b99 61162013-08-20 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
d71ff3fa
ZZ
6117
6118 * tree-ssa-ccp.c (get_default_value): Remove redundant condition
6119 checks.
6120
e42c64cb
DM
61212013-08-20 David Malcolm <dmalcolm@redhat.com>
6122
6123 Make opt_pass and gcc::pass_manager be GC-managed, so that pass
6124 instances can own GC refs.
6125
6126 * Makefile.in (GTFILES): Add pass_manager.h and tree-pass.h.
6127 * context.c (gcc::context::gt_ggc_mx): Traverse passes_.
6128 (gcc::context::gt_pch_nx): Likewise.
6129 (gcc::context::gt_pch_nx): Likewise.
6130 * ggc.h (gt_ggc_mx <T>): New.
6131 (gt_pch_nx_with_op <T>): New.
6132 (gt_pch_nx <T>): New.
6133 * passes.c (opt_pass::gt_ggc_mx): New.
6134 (opt_pass::gt_pch_nx): New.
6135 (opt_pass::gt_pch_nx_with_op): New.
6136 (pass_manager::gt_ggc_mx): New.
6137 (pass_manager::gt_pch_nx): New.
6138 (pass_manager::gt_pch_nx_with_op): New.
6139 (pass_manager::operator new): Use
6140 ggc_internal_cleared_alloc_stat rather than xcalloc.
6141 * pass_manager.h (class pass_manager): Add GTY((user)) marking.
6142 (pass_manager::gt_ggc_mx): New.
6143 (pass_manager::gt_pch_nx): New.
6144 (pass_manager::gt_pch_nx_with_op): New.
6145 * tree-pass.h (class opt_pass): Add GTY((user)) marking.
6146 (opt_pass::operator new): New.
6147 (opt_pass::gt_ggc_mx): New.
6148 (opt_pass::gt_pch_nx): New.
6149 (opt_pass::gt_pch_nx_with_op): New.
6150
910c02a0
DM
61512013-08-20 David Malcolm <dmalcolm@redhat.com>
6152
6153 * Makefile.in (GTFILES): Add context.h.
6154 * context.c (gcc::context::operator new): New.
6155 (gcc::context::gt_ggc_mx): New.
6156 (gcc::context::gt_pch_nx): New.
6157 (gcc::context::gt_pch_nx): New.
6158 * context.h (gcc::context): Add GTY((user)) marking.
6159 (gcc::context::operator new): New.
6160 (gcc::context::gt_ggc_mx): New.
6161 (gcc::context::gt_pch_nx): New.
6162 (gcc::context::gt_pch_nx): New.
6163 (g): Add GTY marking.
6164 (gt_ggc_mx (gcc::context *)): New.
6165 (gt_pch_nx (gcc::context *)): New.
6166 (gt_pch_nx (gcc::context *ctxt, gt_pointer_operator op,
6167 void *cookie)): New.
6168 * gengtype.c (open_base_files) <ifiles>: Add context.h.
6169
af4b4236
AM
61702013-08-20 Alan Modra <amodra@gmail.com>
6171
6172 PR target/57865
6173 * config/rs6000/rs6000.c (rs6000_emit_prologue): Correct ool_adjust.
6174 (rs6000_emit_epilogue): Likewise.
6175
12211b99 61762013-08-19 Dehao Chen <dehao@google.com>
0d633222
DC
6177
6178 * value-prof.c (gimple_ic): Fix the bug of adding EH edge.
6179
e2323f5b
PB
61802013-08-19 Peter Bergner <bergner@vnet.ibm.com>
6181 Jakub Jelinek <jakub@redhat.com>
6182
6183 * builtins.def (BUILT_IN_FABSD32): New DFP ABS builtin.
6184 (BUILT_IN_FABSD64): Likewise.
6185 (BUILT_IN_FABSD128): Likewise.
6186 * builtins.c (expand_builtin): Add support for new DFP ABS builtins.
6187 (fold_builtin_1): Likewise.
5339fc0c
UB
6188 * config/rs6000/dfp.md (*negtd2_fpr): Handle non-overlapping
6189 destination and source operands.
e2323f5b
PB
6190 (*abstd2_fpr): Likewise.
6191 (*nabstd2_fpr): Likewise.
6192
cfbf3ee8
RS
61932013-08-19 Richard Sandiford <rdsandiford@googlemail.com>
6194
6195 * config/mips/mips.c (mips_adjust_insn_length): Add checks for
6196 JUMP_P and INSN_P.
6197
d3136aeb
AH
61982013-08-19 Aldy Hernandez <aldyh@redhat.com>
6199
6200 * doc/invoke.texi (-fcilkplus): Clarify that implementation is
6201 incomplete.
6202
d33d9e47
AI
62032013-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
6204
6205 * target.def (TARGET_LIBC_HAS_FUNCTION): New target hook.
6206 * builtins.c (default_libc_has_function): New.
6207 (gnu_libc_has_function): Ditto.
6208 (no_c99_libc_has_function): Ditto.
6209 (expand_builtin_cexpi): Using new target hook TARGET_LIBC_HAS_FUNCTION
6210 instead of TARGET_HAS_SINCOS and TARGET_C99_FUNCTIONS.
6211 (fold_builtin_sincos): Likewise.
6212 (fold_builtin_cexp): Likewise.
6213 * builtins.def (DEF_C94_BUILTIN): Likewise.
6214 (DEF_C99_BUILTIN): Likewise.
6215 (DEF_C99_C90RES_BUILTIN): Likewise.
6216 (DEF_C99_COMPL_BUILTIN): New define. Change all complex c99 builtin
6217 definitions to using this define.
6218 * config/darwin-protos.h (darwin_libc_has_function): New.
5339fc0c 6219 * config/darwin.c (darwin_libc_has_function): Ditto.
d33d9e47
AI
6220 * config/alpha/linux.h: Remove TARGET_C99_FUNCTIONS and
6221 TARGET_HAS_SINCOS. Redefine TARGET_LIBC_HAS_FUNCTION.
6222 * config/darwin.h: Ditto.
6223 * config/elfos.h: Ditto.
6224 * config/freebsd.h: Ditto.
6225 * config/i386/cygming.h: Ditto.
6226 * config/i386/djgpp.h: Ditto.
6227 * config/i386/i386-interix.h: Ditto.
6228 * config/microblaze/microblaze.h: Ditto.
6229 * config/mmix/mmix.h: Ditto.
6230 * config/gnu-user.h: Ditto.
6231 * config/ia64/hpux.h: Ditto.
6232 * config/pa/pa-hpux.h: Ditto.
6233 * config/pdp11/pdp11.h: Ditto.
6234 * config/picochip/picochip.h: Ditto.
6235 * config/linux.h: Ditto.
6236 * config/netbsd.h: Ditto.
6237 * config/openbsd.h: Ditto.
6238 * config/rs6000/aix43.h: Ditto.
6239 * config/rs6000/aix51.h: Ditto.
6240 * config/rs6000/aix52.h: Ditto.
6241 * config/rs6000/aix53.h: Ditto.
6242 * config/rs6000/aix61.h: Ditto.
6243 * config/rs6000/darwin.h: Ditto.
6244 * config/rs6000/linux.h: Ditto.
6245 * config/rs6000/linux64.h: Ditto.
6246 * config/s390/tpf.h: Ditto.
6247 * config/sol2-10.h: Ditto.
6248 * config/sol2.h: Ditto.
6249 * config/vms/vms.h: Ditto.
6250 * config/vxworks.h: Ditto.
6251 * config/linux-android.c (linux_android_libc_has_function):
6252 New linux-specific implementation of TARGET_LIBC_HAS_FUNCTION.
6253 * config/linux-protos.h (linux_android_libc_has_function):
6254 New declaration.
6255 * config/i386/i386.c (ix86_libc_has_function): New.
6256 * config/i386/i386-protos.h
6257 (ix86_libc_has_function): New declaration.
6258 * config/i386/i386.md
6259 ("isinfxf2"): Change condition for TARGET_LIBC_HAS_FUNCTION.
6260 ("isinf<mode>2): Likewise.
6261 * convert.c (convert_to_integer): Using new target hook
6262 TARGET_LIBC_HAS_FUNCTION istead of TARGET_HAS_SINCOS and
6263 TARGET_C99_FUNCTIONS.
6264 * fortran/f95-lang.c (gfc_init_builtin_functions): Ditto.
6265 * tree-ssa-math-opts.c (execute_cse_sincos): Ditto.
6266 * coretypes.h (function_class): New enum for different
6267 classes of functions.
6268 * defaults.h: Remove TARGET_C99_FUNCTIONS and TARGET_HAS_SINCOS.
6269 * doc/tm.texi.in (TARGET_C99_FUNCTIONS): Remove documentation.
6270 (TARGET_HAS_SINCOS): Likewise.
6271 (TARGET_LIBC_HAS_FUNCTION): New.
6272 * doc/tm.texi: Regenerated.
6273 * targhooks.h (default_libc_has_function): New declaration.
6274 (no_c99_libc_has_function): Ditto.
6275 (gnu_libc_has_function): Ditto.
6276 * system.h: Add the poisoning of TARGET_C99_FUNCTIONS
6277 and TARGET_HAS_SINCOS.
6278
eefe9a99
JH
62792013-08-18 Jan Hubicka <jh@suse.cz>
6280
6281 * Makeifle-in (ipa-devirt.o): New.
6282 (GTFILES): Add ipa-utils.h and ipa-devirt.c
6283 * cgraphunit.c (decide_is_symbol_needed): Do not care about virtuals.
6284 (analyze_functions): Look into possible targets of polymorphic call.
6285 * dumpfile.c (dump_files): Add type-inheritance dump.
6286 * dumpfile.h (TDI_inheritance): New.
6287 * ipa-devirt.c: New file.
6288 * ipa-utils.h (odr_type_d): Forward declare.
6289 (odr_type): New type.
6290 (build_type_inheritance_graph): Declare.
6291 (possible_polymorphic_call_targets): Declare and introduce inline
6292 variant when only edge is pased.
6293 (dump_possible_polymorphic_call_targets): Likewise.
6294 * timevar.def (TV_IPA_INHERITANCE, TV_IPA_VIRTUAL_CALL): New.
6295 * tree.c (type_in_anonymous_namespace_p): Break out from ...
6296 (types_same_for_odr): ... here.
6297 * tree.h (type_in_anonymous_namespace_p): Declare.
6298
29b89442
JJ
62992013-08-18 Jakub Jelinek <jakub@redhat.com>
6300
6301 PR tree-optimization/58006
6302 * tree-parloops.c (take_address_of): Don't ICE if get_name
6303 returns NULL.
6304 (eliminate_local_variables_stmt): Remove clobber stmts.
6305
4f219961
EB
63062013-08-18 Eric Botcazou <ebotcazou@adacore.com>
6307
6308 * cgraphunit.c (handle_alias_pairs): Reset the alias flag after the
6309 error message is issued for an alias to undefined symbol.
6310
1d5755ef
JH
63112013-08-18 Jan Hubicka <jh@suse.cz>
6312
6313 * cgraph.c (cgraph_create_indirect_edge): Discover
6314 polymorphic calls and record basic info into indirect_info.
6315 * gimple-fold.c (gimple_fold_call): When doing BINFO based
6316 devirtualization, ignore objc function calls.
6317 * ipa-cp.c (initialize_node_lattices): Be ready for polymorphic
6318 call with no parm index info.
6319 * ipa-prop.c (ipa_analyze_call_uses): Likewise.
6320 * tree.c (virtual_method_call_p): New function.
6321 * tree.h (virtual_method_call_p): Declare.
6322
5945bebf
JH
63232013-08-16 Jan Hubicka <jh@suse.cz>
6324
6325 PR middle-end/58179
6326 * tree.c (obj_type_ref_class): Do not ICE on non-method calls.
6327
47fa5d23
DE
63282013-08-16 David Edelsohn <dje.gcc@gmail.com>
6329
6330 * config/rs6000/rs6000.md (rs6000_get_timebase_ppc32): Add length
6331 attribute.
6332
c74f54a0
DM
63332013-08-16 David Malcolm <dmalcolm@redhat.com>
6334
6335 * gengtype.c (type_for_name): Add special-case support for
6336 locating types within the "gcc::" namespace.
6337 (open_base_files): Emit a "using namespace gcc" directive.
6338
f758f299
MM
63392013-08-16 Michael Meissner <meissner@linux.vnet.ibm.com>
6340
6341 PR target/58160
6342 * config/rs6000/predicates.md (fusion_gpr_mem_load): Allow the
6343 memory rtx to contain ZERO_EXTEND and SIGN_EXTEND.
6344
6345 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Pass operands
6346 array instead of each individual operand as a separate argument.
6347 (emit_fusion_gpr_load): Likewise.
6348 (expand_fusion_gpr_load): Add new function declaration.
6349
6350 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change the calling
6351 signature to have the operands passed as an array, instead of as
6352 separate arguments. Allow ZERO_EXTEND to be in the memory
6353 address, and also SIGN_EXTEND if -mpower8-fusion-sign. Do not
6354 depend on the register live/dead flags when peepholes are run.
6355 (expand_fusion_gpr_load): New function to be called from the
6356 peephole2 pass, to change the register that addis sets to be the
6357 target register.
6358 (emit_fusion_gpr_load): Change the calling signature to have the
6359 operands passed as an array, instead of as separate arguments.
6360 Allow ZERO_EXTEND to be in the memory address, and also
6361 SIGN_EXTEND if -mpower8-fusion-sign.
6362
6363 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): Delete unused
6364 unspec enumeration.
6365 (power8 fusion peephole/peephole2): Rework the fusion peepholes to
6366 adjust the register addis loads up in the peephole2 pass. Do not
5339fc0c 6367 depend on the register live/dead state when the peephole pass is done.
f758f299 6368
158f4e4f
DM
63692013-08-16 David Malcolm <dmalcolm@redhat.com>
6370
6371 * gengtype.c (create_user_defined_type): Ensure that the kind
6372 is set to TYPE_USER_STRUCT, fixing a bug seen when an incomplete
6373 declaration is seen before the GTY((user)) marking.
6374
22f8cea5
BE
63752013-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
6376
6377 PR target/58105
6378 * config/i386/i386.c (make_resolver_func): Set DECL_UNINLINABLE.
6379
c49bdb2e
JH
63802013-08-16 Jan Hubicka <jh@suse.cz>
6381
6382 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Add new
6383 arugment expected_type.
6384 (gimple_fold_call): Use it.
6385 * gimple.h (gimple_extract_devirt_binfo_from_cst): Update prototype.
6386 * ipa-cp.c (ipa_get_indirect_edge_target_1): Update.
22f8cea5 6387 * ipa-prop.c (ipa_analyze_virtual_call_uses): Use obj_type_ref_class.
c49bdb2e
JH
6388 (try_make_edge_direct_virtual_call): Likewise.
6389 * tree.c (obj_type_ref_class): New.
6390 * tree.h (obj_type_ref_class): Use it.
6391
4042dca9
GDR
63922013-08-16 Gabriel Dos Reis <gdr@integrable-solutions.net>
6393
6394 * sched-vis.c (rtl_slim_pp_initialized): Remove.
6395 (rtl_slim_pp): Likewise.
6396 (init_rtl_slim_pretty_print): Likewise.
6397 (dump_value_slim): Don't call it. Use local pretty printer.
6398 (dump_insn_slim): Likewise.
6399 (dump_rtl_slim): Likewise.
6400 (str_pattern_slim): Likewise.
6401 * tree-mudflap.c (mf_varname_tree): Use local pretty printer.
6402 Simplify.
6403
7a460594
JJ
64042013-08-16 Jakub Jelinek <jakub@redhat.com>
6405
639dc669
JJ
6406 PR tree-optimization/58164
6407 * gimple.c (walk_stmt_load_store_addr_ops): For visit_addr
6408 walk gimple_goto_dest of GIMPLE_GOTO.
6409
7a460594
JJ
6410 PR tree-optimization/58165
6411 * tree-call-cdce.c (shrink_wrap_one_built_in_call): If
6412 bi_call must be the last stmt in a bb, don't split_block, instead
6413 use fallthru edge from it and give up if there is none.
6414 Release conds vector when returning early.
6415
e3c02cc7
XDL
64162013-08-14 Xinliang David Li <davidxl@google.com>
6417
6418 * config/i386/i386.c (ix86_option_override_internal):
6419 Remove unused variable and field.
6420
6469da2c
BS
64212013-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6422
6423 PR target/57949
22f8cea5 6424 * doc/invoke.texi: Add documentation of mcompat-align-parm option.
6469da2c
BS
6425 * config/rs6000/rs6000.opt: Add mcompat-align-parm option.
6426 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): For AIX
6427 and Linux, correct BLKmode alignment when 128-bit alignment is
6428 required and compatibility flag is not set.
22f8cea5
BE
6429 (rs6000_gimplify_va_arg): For AIX and Linux, honor specified alignment
6430 for zero-size arguments when compatibility flag is not set.
6469da2c 6431
4ca890e2
JJ
64322013-08-14 Jakub Jelinek <jakub@redhat.com>
6433
6434 PR tree-optimization/58145
6435 * tree-sra.c (build_ref_for_offset): If prev_base has
6436 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS, propagate it to MEM_REF.
6437
daec1759 64382013-08-14 Xinliang David Li <davidxl@google.com>
4ca890e2 6439
daec1759 6440 * config/i386/i386.c (ix86_option_override_internal):
e3c02cc7 6441 Fix uninitialized variable error.
daec1759 6442
3ad20bd4
XDL
64432013-08-14 Xinliang David Li <davidxl@google.com>
6444
6445 * config/i386/i386.opt: Define two new options.
6446 * config/i386/x86-tune.def: Add arch selector field in macros.
6447 * config/i386/i386.h: Adjust macro definition.
6448 * config/i386/i386.c (ix86_option_override_internal):
6449 Refactor the code.
6450 (parse_mtune_ctrl_str): New function.
6451 (set_ix86_tune_features): New function.
6452 (ix86_function_specific_restore): Call the new helper function.
6453
e839e2a9
AB
64542013-08-14 Andrey Belevantsev <abel@ispras.ru>
6455
6456 PR rtl-optimization/57662
6457 * sel-sched.c (code_motion_process_successors): When the current insn
6458 is removed after the recursive traversal, break from the loop.
6459 Add comments and debug printouts.
6460
27ed665f
JJ
64612013-08-14 Jakub Jelinek <jakub@redhat.com>
6462 Alexandre Oliva <aoliva@redhat.com>
6463
6464 PR target/58067
6465 * config/i386/i386.c (ix86_delegitimize_address): For CM_MEDIUM_PIC
6466 and CM_LARGE_PIC ix86_cmodel fall thru into the -m32 code, handle
6467 there also UNSPEC_PLTOFF.
6468
61c1a609
MP
64692013-08-14 Marek Polacek <polacek@redhat.com>
6470
6471 * ipa-inline-analysis.c (add_clause): Avoid shifting integer
6472 NUM_CONDITIONS bit positions.
6473
0e901c67
CC
64742013-08-13 Cary Coutant <ccoutant@google.com>
6475
6476 * dwarf2out.c (CHECKSUM_BLOCK): New macro.
6477 (attr_checksum): Hash vector contents instead of pointer.
6478 (attr_checksum_ordered): Likewise.
6479
061eff6d
UB
64802013-08-13 Uros Bizjak <ubizjak@gmail.com>
6481
6482 * config/i386/sse.md (*sse2_maskmovdqu): Emit addr32 prefix
6483 when Pmode != word_mode. Add length_address attribute.
6484 (sse3_monitor_<mode>): Merge from sse3_monitor and
6485 sse3_monitor64_<mode> insn patterns. Emit addr32 prefix when
6486 Pmode != word_mode. Update insn length attribute.
6487 * config/i386/i386.c (ix86_option_override_internal): Update
6488 ix86_gen_monitor selection for merged sse3_monitor insn.
6489
8ec9249b
JB
64902013-08-13 Julian Brown <julian@codesourcery.com>
6491
6492 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
6493 perform invalid legitimization on greater-than-word-size modes for
6494 TARGET_E500_DOUBLE.
6495
761a8eb7
VM
64962013-08-13 Vladimir Makarov <vmakarov@redhat.com>
6497
6498 * ira.c (setup_class_translate_array): Use aclass instead of cl
6499 for classes not fully covered by allocno classes.
6500
99c2bd54
JJ
65012013-08-13 Jakub Jelinek <jakub@redhat.com>
6502
4029a5e0
JJ
6503 PR tree-optimization/57661
6504 * tree-inline.h (struct copy_body_data): Add blocks_to_copy field.
6505 * tree-inline.c (tree_function_versioning): Initialize it.
6506 (remap_gimple_stmt): Return GIMPLE_NOP for MEM_REF lhs clobber stmts
6507 if id->blocks_to_copy and MEM_REF's SSA_NAME is defined in a block
6508 that is not being copied.
6509
99c2bd54
JJ
6510 PR sanitizer/56417
6511 * asan.c (instrument_strlen_call): Fix typo in comment.
6512 Use char * type even for the lhs of POINTER_PLUS_EXPR.
6513
b5f8f063
SE
65142013-08-13 Steve Ellcey <sellcey@mips.com>
6515
6516 * config/mips/mips.md (prefetch): Use lw instead of ld on
6517 loongson in 32bit mode.
6518
4de80584
NC
65192013-08-13 Nick Clifton <nickc@redhat.com>
6520
6521 * config.gcc: (avr-linux): Allow for tmake_file not being empty.
6522
09ce3660
JH
65232013-08-13 Jan Hubicka <jh@suse.cz>
6524
6525 * cgraph.c (cgraph_turn_edge_to_speculative): Return newly
6526 introduced edge; fix typo in sanity check.
6527 (cgraph_resolve_speculation): Export; improve diagnostic.
6528 (cgraph_redirect_edge_call_stmt_to_callee): Better diagnostic; cancel
6529 speculation at type mismatch.
6530 * cgraph.h (cgraph_turn_edge_to_speculative): Update.
6531 (cgraph_resolve_speculation): Declare.
6532 (symtab_can_be_discarded): New function.
6533 * value-prof.c (gimple_ic_transform): Remove actual transform code.
6534 * ipa-inline-transform.c (speculation_removed): New global var.
6535 (clone_inlined_nodes): See if speculation can be removed.
6536 (inline_call): If speculations was removed, we growths may not match.
6537 * ipa-inline.c (can_inline_edge_p): Add DISREGARD_LIMITS parameter.
6538 (speculation_useful_p): New function.
6539 (resolve_noninline_speculation): New function.
6540 (inline_small_functions): Resolve useless speculations.
6541 * ipa-inline.h (speculation_useful_p): Declare
6542 * ipa.c (can_replace_by_local_alias): Simplify.
6543 (ipa_profile): Produce speculative calls in non-lto, too;
6544 add simple cost model; produce local aliases.
6545
f971dc24
DM
65462013-08-13 David Malcolm <dmalcolm@redhat.com>
6547
6548 * config/i386/t-i386 (i386.o): Rename stray PIPELINE_H to
061eff6d 6549 PASS_MANAGER_H.
f971dc24 6550
2e507b9a
PC
65512013-08-12 Paolo Carlini <paolo.carlini@oracle.com>
6552
6553 * config/i386/i386.c (ix86_function_versions): Use error + inform.
6554
c97fd4b8
UB
65552013-08-12 Uros Bizjak <ubizjak@gmail.com>
6556
6557 * config/i386/i386.md (floatunssi<mode>2 expand): Use MODEF mode
6558 iterator instead of X87MODEF.
6559
65602013-08-12 Perez Read <netfirewall@gmail.com>
6561
6562 PR target/58132
6563 * config/i386/i386.md (*movabs<mode>_1): Add <ptrsize> PTR before
6564 operand 0 for intel asm alternative.
6565 (*movabs<mode>_2): Ditto for operand 1.
6566
f4f4204c
JG
65672013-08-12 James Greenhalgh <james.greenhalgh@arm.com>
6568
6569 * config/aarch64/arm_none.h
6570 (vdup<bhsd>_lane_<su><8,16,32,64>): Fix macro call.
6571
133b1a8e
NC
65722013-08-12 Nick Clifton <nickc@redhat.com>
6573
6574 * config.gcc (m32r-linux): Allow for tmake_file not being empty.
6575
15dd8b3a
YR
65762013-08-12 Yuri Rumyantsev <ysrumyan@gmail.com>
6577
6578 * config/i386/i386.md (floatunssi<mode>2 expand): Add new
6579 expand for QI/HImode operand to produce more effictive code for
6580 unsigned char(short) --> float(double) conversion.
6581
94109a6a
AM
65822013-08-12 Alexander Monakov <amonakov@ispras.ru>
6583
6584 * doc/invoke.texi: Mention that -ftls-model does not force the final
6585 model.
6586
4e115102
MP
65872013-08-12 Marek Polacek <polacek@redhat.com>
6588 Marc Glisse <marc.glisse@inria.fr>
6589
6590 PR tree-optimization/57980
6591 * tree-tailcall.c (process_assignment): Call build_minus_one_cst
6592 when creating -1 constant.
6593
748d71f3
JH
65942013-08-10 Jan Hubicka <jh@suse.cz>
6595
1f97e193 6596 Workaround binutils PR14342.
748d71f3
JH
6597 * tree-profile.c (init_ic_make_global_vars): Add LTO path.
6598 (gimple_init_edge_profiler): Likewise.
6599 (gimple_gen_ic_func_profiler): Likewise.
6600
5979aa54
JH
66012013-08-09 Jan Hubicka <jh@suse.cz>
6602
6603 * cgraph.c (cgraph_create_edge_1): Clear speculative flag.
6604
ad83025e
XDL
66052013-08-09 Xinliang David Li <davidxl@google.com>
6606
6607 * config/i386/stringop.def: New file.
6608 * config/i386/stringop.opt: New file.
6609 * config/i386/i386-opts.h: Include stringopt.def.
6610 * config/i386/i386.opt: Include stringopt.opt.
6611 * config/i386/i386.c (ix86_option_override_internal):
c97fd4b8 6612 Override default size based stringop inline strategies with options.
ad83025e
XDL
6613 * config/i386/i386.c (ix86_parse_stringop_strategy_string):
6614 New function.
6615
e59df5fd
JH
66162013-08-09 Jan Hubicka <jh@suse.cz>
6617
c97fd4b8 6618 * ipa-ref.c (ipa_clear_stmts_in_references): Clear lto_stmt_uid, too.
e59df5fd 6619
634ab819
JH
66202013-08-09 Jan Hubicka <jh@suse.cz>
6621
6622 * cgraph.c (cgraph_resolve_speculation): Cut frequency to
6623 CGRAPH_FREQ_MAX.
6624 (dump_cgraph_node): Dump profile-id.
6625 * cgraph.h (cgraph_indirect_call_info): Add common_target_id
6626 and common_target_probability.
6627 * lto-cgraph.c (lto_output_edge): Stream common targets.
6628 (lto_output_node): Stream profile ids.
6629 (input_node): Stream profile ids.
6630 (input_edge): Stream common targets.
6631 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fix formatting.
6632 * ipa.c: Include value-prof.h
6633 (ipa_profile_generate_summary): Turn indirect call statement histograms
6634 into common targets.
6635 (ipa_profile): Turn common targets into speculative edges.
6636
2fa3d31b
JH
66372013-08-09 Jan Hubicka <jh@suse.cz>
6638
6639 * cgraph.h (cgraph_node): Add profile_id.
6640 * value-prof.c (cgraph_node_map): Turn into pointer_map.
c97fd4b8 6641 (init_node_map): Rewrite to handle hashes increas of incremental IDs.
2fa3d31b
JH
6642 (del_node_map): Update.
6643 (find_func_by_funcdef_no): Replace by ...
6644 (find_func_by_profile_id): ... this one.
6645 (gimple_ic_transform): Do not remove useful histograms when
6646 speculation is not done; dump info when indirect call removal
6647 can happen at LTO.
6648 * value-prof.h (find_func_by_profile_id, gimple_ic): Declare.
6649 * gcov-io.h (__gcov_indirect_call_profiler): Replace by ...
6650 (__gcov_indirect_call_profiler_v2): .. this one.
6651 * profile.h (init_node_map): Update.
6652 * coverage.c (coverage_compute_profile_id): New function.
6653 * coverage.h (coverage_compute_profile_id): Declare.
6654 * tree-profile.c (init_ic_make_global_vars): Make
6655 __gcov_indirect_call_callee and __gcov_indirect_call_counters global.
6656 (gimple_init_edge_profiler): Update prototype of
6657 __gcov_indirect_call_profiler.
6658 (gimple_gen_ic_func_profiler): Simplify.
6659 (tree_profiling): Use init_node_map
6660
042ae7d2
JH
66612013-08-09 Jan Hubicka <jh@suse.cz>
6662
c97fd4b8
UB
6663 * cgraphbuild.c (cgraph_rebuild_references): Rebuild only
6664 non-speculative refs.
042ae7d2
JH
6665 * cgraph.c (cgraph_update_edge_in_call_site_hash): New function.
6666 (cgraph_add_edge_to_call_site_hash): Deal with speculative calls.
6667 (cgraph_set_call_stmt): Likewise.
6668 (cgraph_create_edge_1): Fix release checking compilatoin;
6669 clear lto_stmt_uid.
6670 (cgraph_free_edge): Free indirect info.
6671 (cgraph_turn_edge_to_speculative): New function.
6672 (cgraph_speculative_call_info): New function.
6673 (cgraph_make_edge_direct): Return direct edge; handle speculation.
c97fd4b8 6674 (cgraph_redirect_edge_call_stmt_to_callee): Expand speculative edges.
042ae7d2
JH
6675 (dump_cgraph_node): Dump speculation.
6676 (verify_edge_count_and_frequency): Accept speculative edges.
6677 (verify_edge_corresponds_to_fndecl): Handle partitioned cgraph.
6678 (verify_cgraph_node): Handle speculation.
6679 * cgraph.h (cgraph_edge): Add SPECULATIVE flag.
6680 (cgraph_set_call_stmt): Update prototype.
6681 (cgraph_make_edge_direct): Update prototype.
6682 (cgraph_speculative_call_info): Declare.
6683 * ipa-cp.c (ipcp_discover_new_direct_edges): Be ready for edge
6684 to change; update call of ipa_find_references.
6685 * ipa-ref.c (ipa_record_reference): Fix return value; clear
6686 lto_stmt_uid and speculative flags.
6687 (ipa_dump_references): Dump speculation.
6688 (ipa_clone_references): Clone speculative flag.
6689 (ipa_clone_referring): Likewise.
6690 (ipa_clone_ref): New function.
6691 (ipa_find_reference): Look into lto_stmt_uids
6692 (ipa_clear_stmts_in_references): Do not clear speculative calls.
6693 * ipa-ref.h (ipa_ref): Add lto_stmt_uid and speculative flags.
6694 (ipa_find_reference): Update declaration.
6695 (ipa_clone_ref): Declare.
6696 * lto-cgraph.c (lto_output_edge): Make lto_stmt_uids start from 0;
6697 stream speculative flag.
6698 (lto_output_ref): Stream statements uids and speculation.
6699 (input_ref): Likewise.
6700 (input_edge): Stream speuclation.
6701 * cgraphclones.c (cgraph_clone_edge): Clone speculation.
6702 (cgraph_set_call_stmt_including_clones): Handle speculation.
6703 * ipa-inline.c (heap_edge_removal_hook): New function.
6704 (inline_small_functions): Register it.
6705 * lto-streamer-in.c (fixup_call_stmt_edges_1): Bounds checking;
6706 also initialize refs.
6707 * ipa-prop.c (ipa_make_edge_direct_to_target): Be ready for
6708 edge to change.
6709 (try_make_edge_direct_simple_call): Likewise.
6710 (try_make_edge_direct_simple_call): Likewise.
6711 (update_indirect_edges_after_inlining): Likewise.
6712 (remove_described_reference): Look proper lto_stmt_uid.
6713 (propagate_controlled_uses): Likewise.
6714 (propagate_controlled_uses): Liekwise.
6715 * tree-inline.c (copy_bb): Copy speculative edges.
6716 (redirect_all_calls): New function.
c97fd4b8
UB
6717 (copy_cfg_body): Do redirection after loop info is updated.
6718 (delete_unreachable_blocks_update_callgraph): Updadte speculation.
042ae7d2 6719
aa1e10cc
JH
67202013-08-09 Jan Hubicka <jh@suse.cz>
6721
6722 * lto-streamer-out.c (output_function): Renumber PHIs.
6723 * lto-streamer-in.c (input_function): Likewise.
6724
66adb8eb
JG
67252013-08-09 James Greenhalgh <james.greenhalgh@arm.com>
6726
6727 * config/aarch64/aarch64-simd-builtins.def (get_lane_signed): Remove.
6728 (get_lane_unsigned): Likewise.
6729 (dup_lane_scalar): Likewise.
6730 (get_lane): enable for VALL.
6731 * config/aarch64/aarch64-simd.md
6732 (aarch64_dup_lane_scalar<mode>): Remove.
6733 (aarch64_get_lane_signed<mode>): Likewise.
6734 (aarch64_get_lane_unsigned<mode>): Likewise.
6735 (aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): New.
6736 (aarch64_get_lane_zero_extendsi<mode>): Likewise.
6737 (aarch64_get_lane<mode>): Enable for all vector modes.
6738 (aarch64_get_lanedi): Remove misleading constraints.
6739 * config/aarch64/arm_neon.h
6740 (__aarch64_vget_lane_any): Define.
6741 (__aarch64_vget<q>_lane_<fpsu><8,16,32,64>): Likewise.
6742 (vget<q>_lane_<fpsu><8,16,32,64>): Use __aarch64_vget_lane macros.
6743 (vdup<bhsd>_lane_<su><8,16,32,64>): Likewise.
6744 * config/aarch64/iterators.md (VDQQH): New.
6745 (VDQQHS): Likewise.
6746 (vwcore): Likewise.
6747
1f65ae7a
EB
67482013-08-09 Eric Botcazou <ebotcazou@adacore.com>
6749
6750 * configure.ac: Add GAS check for LEON instructions on SPARC.
6751 * configure: Regenerate.
6752 * config.in: Likewise.
6753 * config.gcc (with_cpu): Remove sparc-leon*-* and deal with LEON in the
6754 sparc*-*-* block.
6755 * config/sparc/sparc.opt (LEON, LEON3): New masks.
6756 * config/sparc/sparc.h (ASM_CPU32_DEFAULT_SPEC): Set to AS_LEON_FLAG
6757 for LEON or LEON3.
6758 (ASM_CPU_SPEC): Pass AS_LEON_FLAG if -mcpu=leon or -mcpu=leon3.
6759 (AS_LEON_FLAG): New macro.
6760 * config/sparc/sparc.c (sparc_option_override): Set MASK_LEON for leon
6761 and MASK_LEON3 for leon3 and unset them if HAVE_AS_LEON is not defined.
6762 Deal with LEON and LEON3 for the memory model.
23a6cb78 6763 * config/sparc/sync.md (atomic_compare_and_swap<mode>): Enable if LEON3
1f65ae7a
EB
6764 (atomic_compare_and_swap<mode>_1): Likewise.
6765 (*atomic_compare_and_swap<mode>_1): Likewise.
6766
ff522f7f
ZC
67672013-08-09 Zhenqiang Chen <zhenqiang.chen@linaro.org>
6768
6769 * config/arm/neon.md (vcond): Fix floating-point vector
6770 comparisons against 0.
6771
cb1cca12
VM
67722013-08-08 Vladimir Makarov <vmakarov@redhat.com>
6773
6774 * lra-constraints.c (emit_spill_move): Remove assert.
6775 (process_alt_operands): Add more debugging
6776 output. Increase reject for spilling into memory. Decrease
6777 reject for reloading scratch.
6778 (split_reg): Use HARD_REGNO_CALLER_SAVE_MODE.
6779
a3719e31
SE
67802013-08-08 Steve Ellcey <sellcey@mips.com>
6781
6782 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add nan2008.
6783 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Make mips16 and
6784 micromips incompatible. Add nan2008.
6785 (MULTILIB_DIRNAMES): Add nan2008.
6786 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
6787 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Make mips16
6788 and micromips incompatible. Add nan2008.
6789 (MULTILIB_DIRNAMES): Add nan2008.
6790 (MULTILIB_EXCEPTIONS): Remove mips16/micromips entry.
6791
f40423e2
RS
67922013-08-08 Richard Sandiford <rdsandiford@googlemail.com>
6793
6794 PR rtl-optimization/58079
6795 * combine.c (combine_simplify_rtx): Avoid using SUBST if
6796 simplify_comparison has widened a comparison with an integer.
6797
869b9125
KT
67982013-08-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6799
6800 * config/arm/neon.md (movmisalign<mode>): Disable when we
6801 don't allow unaligned accesses.
6802 (*movmisalign<mode>_neon_store): Likewise.
6803 (*movmisalign<mode>_neon_load): Likewise.
6804 (*movmisalign<mode>_neon_store): Likewise.
6805 (*movmisalign<mode>_neon_load): Likewise.
6806
71cafea9
JH
68072013-08-08 Jan Hubicka <jh@suse.cz>
6808
6809 * cgraphbuild.c (build_cgraph_edges): Do not walk into debugs.
6810 (make_pass_rebuild_cgraph_edges): Also clear references.
6811 * cgraph.c (verify_cgraph_node): Add basic ipa-ref verifier.
6812 * ipa-inline-transform.c (inline_transform): Remove all references
6813 after inlining.
c97fd4b8
UB
6814 * cgraphunit.c (expand_function): Remove all references after
6815 expansion.
71cafea9
JH
6816 * ipa-ref.c (ipa_ref_has_aliases_p): Fix formatting.
6817 (ipa_find_reference): Rewrite to iterator.
6818 (remove_stmt_references): Likewise.
6819 (ipa_clear_stmts_in_references): New function.
6820 * ipa-ref.h (ipa_clear_stmts_in_references): Declare.
03b0ee0a
UB
6821 * cgraphclones.c (cgraph_materialize_all_clones): Remove or
6822 clear references.
71cafea9
JH
6823 * ipa-split.c (split_function): Remove references in split function.
6824
27d2e612
RE
68252013-08-08 Richard Earnshaw <rearnsha@arm.com>
6826
6827 PR target/57431
1f65ae7a 6828 * config/arm/arm/neon.md (neon_vld1_dupdi): New expand pattern.
27d2e612
RE
6829 (neon_vld1_dup<mode> VD iterator): Iterate over VD not VDX.
6830
5efc661c
RE
68312013-08-08 Richard Earnshaw <rearnsha@arm.com>
6832
6833 PR target/56979
1f65ae7a 6834 * config/arm/arm.c (aapcs_vfp_allocate): Decompose the argument if the
5efc661c
RE
6835 suggested mode for the assignment isn't compatible with the
6836 registers required.
6837
f276d31d
BE
68382013-08-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
6839
6840 PR target/58065
6841 * config/arm/arm.h (MALLOC_ABI_ALIGNMENT): Define.
6842
4b8bc035
XDL
68432013-08-07 Xinliang David Li <davidxl@google.com>
6844
6845 * config/i386/i386.opt: New option -mtune-ctrl=.
6846 * config/i386/x86-tune.def: New file.
6847 * config/i386/i386.h: include x86-tune.def.
6848 * config/i386/i386.c (ix86_option_override_internal):
6849 Parsing -mtune-ctrl= option and set tune features.
6850
12211b99 68512013-08-07 Oleg Endo <olegendo@gcc.gnu.org>
a5b38740
OE
6852
6853 PR other/12081
03b0ee0a 6854 * config/rs6000/rs6000.c (gen_2arg_fn_t): Remove typedef.
a5b38740
OE
6855 (rs6000_emit_swdiv, rs6000_emit_swrsqrt): Don't cast result of GEN_FCN
6856 to gen_2arg_fn_t.
6857
5cf6635b
EB
68582013-08-07 Eric Botcazou <ebotcazou@adacore.com>
6859
6860 * rtl.h (update_alignments): Declare.
6861 * final.c (grow_label_align): New function extracted from...
6862 (shorten_branches): ...here. Call it.
6863 (update_alignments): New function.
6864 * reorg.c (sibling_labels): New variable.
6865 (get_label_before): Add SIBLING parameter. If it is non-zero, push
6866 the new label along with it onto the sibling_labels vector.
6867 (fill_simple_delay_slots): Adjust call to get_label_before.
6868 (fill_slots_from_thread): Likewise.
6869 (relax_delay_slots): Likewise.
6870 (make_return_insns): Likewise.
6871 (dbr_schedule): Invoke update_alignment on the sibling_labels vector.
6872
3c8ca1ab
EB
68732013-08-07 Eric Botcazou <ebotcazou@adacore.com>
6874
6875 * diagnostic.c (diagnostic_classify_diagnostic): Accept zero index and
6876 document its semantics.
6877 (diagnostic_report_diagnostic): Adjust accordingly.
6878
5ee5b32c
DM
68792013-08-07 David Malcolm <dmalcolm@redhat.com>
6880
03b0ee0a 6881 * config/sparc/sparc.c (insert_pass_work_around_errata): Move into...
5ee5b32c
DM
6882 (sparc_option_override): ...and port to new C++ pass API.
6883 * config/sparc/t-sparc (sparc.o): Add dep on CONTEXT_H
6884
abd566fa
PB
68852013-08-07 Peter Bergner <bergner@vnet.ibm.com>
6886
6887 * config/rs6000/rs6000.c (htm_expand_builtin) <case 0>: Remove.
6888
2077db1b
CT
68892013-08-06 Caroline Tice <cmtice@google.com>
6890
6891 * gcc.c (VTABLE_VERIFICATION_SPEC): New definition.
6892 (LINK_COMMAND_SPEC): Add VTABLE_VERIFICATION_SPEC.
6893 * tree-pass.h: Add pass_vtable_verify.
6894 * varasm.c (assemble_variable): Add code to properly set the comdat
6895 section and name for the .vtable_map_vars section.
6896 (assemble_vtyv_preinit_initializer): New function.
6897 (default_sectin_type_flags): Make sure .vtable_map_vars section has
6898 LINK_ONCE flag.
6899 * output.h: Add function decl for assemble_vtv_preinit_initializer.
6900 * vtable-verify.c: New file.
6901 * vtable-verify.h: New file.
6902 * flag-types.h (enum vtv_priority): Defintions for flag_vtable_verify
6903 initialiation levels.
6904 * timevar.def (TV_VTABLE_VERIFICATION): New definition.
6905 * passes.def: Insert pass_vtable_verify.
6906 * aclocal.m4: Reorder includes.
6907 * doc/invoke.texi: Document the -fvtable-verify=, -fvtv-debug, and
6908 -fvtv-counts options.
6909 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add vtv_start*.o,
6910 as appropriate, if -fvtable-verify=... is used.
6911 (GNU_USER_TARGET_ENDFILE_SPEC): Add vtv_end*.o as appropriate, if
6912 -fvtable-verify=... is used.
6913 * Makefile.in (OBJS): Add vtable-verify.o to list.
6914 (vtable-verify.o): Add new build rule.
6915 (GTFILES): Add vtable-verify.c to list.
6916 * common.opt (fvtable-verify=): New flag.
6917 (vtv_priority): Values for fvtable-verify= flag.
6918 (fvtv-counts): New flag.
6919 (fvtv-debug): New flag.
6920 * tree.h (save_vtable_map_decl): New extern function decl.
6921
03085d1c
DM
69222013-08-07 David Malcolm <dmalcolm@redhat.com>
6923
6924 * config/rl78/rl78.c (rl78_devirt_pass): Convert from a struct to...
6925 (pass_rl78_devirt): ...new subclass of rtl_opt_pass along with...
6926 (pass_data_rl78_devirt): ...new pass_data instance and...
6927 (make_pass_rl78_devirt): ...new function.
6928 (rl78_asm_file_start): Port pass registration to new C++ API.
6929
05555c4a
DM
69302013-08-07 David Malcolm <dmalcolm@redhat.com>
6931
6932 * coretypes.h (rtl_opt_pass): Add.
6933 (gcc::context): Add.
6934 * config/epiphany/epiphany.c (pass_mode_switch_use): New.
6935 (epiphany_init): Port to new C++ pass API.
6936 (epiphany_optimize_mode_switching): Likewise.
6937 * pass_manager.h (pass_manager::get_pass_split_all_insns): New.
6938 (pass_manager::get_pass_mode_switching): New.
6939 (pass_manager::get_pass_peephole2): New.
6940 * mode-switching.c (pass_mode_switching): Add clone method.
6941 * recog.c (pass_peephole2): Add clone method.
6942 (pass_split_all_insns): Add clone method.
6943
c5a12e26
DM
69442013-08-06 David Malcolm <dmalcolm@redhat.com>
6945
03b0ee0a
UB
6946 * config/mips/mips.c (insert_pass_mips_machine_reorg2): Move into...
6947 (mips_option_override): ...here, porting to new C++ API for passes.
c5a12e26 6948
a2e2a668
JH
69492013-08-06 Jan Hubicka <jh@suse.cz>
6950
6951 * cgraph.c (cgraph_get_body): New function based on lto.c
6952 implementation.
6953 * cgraph.h (cgraph_get_body): Declare.
03b0ee0a
UB
6954 * cgraphclones.c (cgraph_create_virtual_clone): Commonize WPA and
6955 LTO paths.
a2e2a668
JH
6956 * cgraphunit.c (expand_function): Get body prior expanding.
6957 * ipa.c (function_and_variable_visibility): Use gimple_has_body_p test.
03b0ee0a
UB
6958 * lto-cgraph.c (lto_output_node): Do not stream bodies we don't
6959 really need.
a2e2a668
JH
6960 * passes.c (do_per_function_toporder): Get body.
6961 * tree-inline.c (expand_call_inline): Get body prior inlining it.
6962 * tree-ssa-structalias.c (ipa_pta_execute): Get body; skip clones.
6963
15682f24
MJ
69642013-08-06 Martin Jambor <mjambor@suse.cz>
6965
6966 PR fortran/57987
6967 * cgraphunit.c (cgraph_finalize_function): Assert that nested function
6968 is not re-finalized. Rename second parameter to no_collect.
6969
78f6dd68
MJ
69702013-08-06 Martin Jambor <mjambor@suse.cz>
6971
6972 PR middle-end/58041
6973 * gimple-ssa-strength-reduction.c (replace_ref): Make sure built
6974 MEM_REF has proper alignment information.
6975
12211b99 69762013-08-05 Oleg Endo <olegendo@gcc.gnu.org>
eb923e54
OE
6977
6978 PR other/12081
6979 * recog.h (rtx (*insn_gen_fn) (rtx, ...)): Replace typedef with new
6980 class insn_gen_fn.
6981 * expr.c (move_by_pieces_1, store_by_pieces_2): Replace argument
6982 rtx (*) (rtx, ...) with insn_gen_fn.
6983 * genoutput.c (output_insn_data): Cast gen_? function pointers to
6984 insn_gen_fn::stored_funcptr. Add initializer braces.
6985
8ac69a6c
DM
69862013-08-05 David Malcolm <dmalcolm@redhat.com>
6987
6988 Rewrite how instances of passes are cloned to remove assumptions
6989 about their sizes (thus allowing pass subclasses to have
6990 additional data fields, albeit non-GC-managed ones at this point).
6991
6992 * passes.c (make_pass_instance): Now that passes have clone
6993 methods, rewrite this function to eliminate XNEW and memcpy
6994 calls that used hardcoded sizes. Since this function no longer
6995 creates pass instances, rename it to...
03b0ee0a
UB
6996 (add_pass_instance): ...this. Document the old way that passes were
6997 numbered and flagged, and rework this function to continue using it.
8ac69a6c
DM
6998 (next_pass_1): Add an initial_pass argument for use by
6999 add_pass_instance.
7000 (position_pass): When adding multiple instances of a pass, use
7001 the pass's clone method, rather than relying on the XNEW/memcpy
7002 within the former make_pass_instance (now add_pass_instance).
03b0ee0a
UB
7003 (pass_manager::pass_manager): When invoking next_pass_1, also supply
7004 the initial instance of the current pass within the pass manager.
8ac69a6c 7005
27a4cd48
DM
70062013-08-05 David Malcolm <dmalcolm@redhat.com>
7007
7008 This is the automated part of the conversion of passes from C
7009 structs to C++ classes.
7010
7011 Patch autogenerated by refactor_passes.py from
7012 https://github.com/davidmalcolm/gcc-refactoring-scripts
7013 revision 03fe39476a4c4ea450b49e087cfa817b5f92021e
7014
7015 * asan.c (pass_asan): Convert from a global struct to a subclass of
7016 gimple_opt_pass along with...
7017 (pass_data_asan): ...new pass_data instance and...
7018 (make_pass_asan): ...new function.
7019 (pass_asan_O0): Convert from a global struct to a subclass of
7020 gimple_opt_pass along with...
7021 (pass_data_asan_O0): ...new pass_data instance and...
7022 (make_pass_asan_O0): ...new function.
7023 * auto-inc-dec.c (pass_inc_dec): Convert from a global struct to a
7024 subclass of rtl_opt_pass along with...
7025 (pass_data_inc_dec): ...new pass_data instance and...
7026 (make_pass_inc_dec): ...new function.
7027 * bb-reorder.c (pass_reorder_blocks): Convert from a global struct to
7028 a subclass of rtl_opt_pass along with...
7029 (pass_data_reorder_blocks): ...new pass_data instance and...
7030 (make_pass_reorder_blocks): ...new function.
7031 (pass_duplicate_computed_gotos): Convert from a global struct to a
7032 subclass of rtl_opt_pass along with...
7033 (pass_data_duplicate_computed_gotos): ...new pass_data instance and...
7034 (make_pass_duplicate_computed_gotos): ...new function.
7035 (pass_partition_blocks): Convert from a global struct to a subclass of
7036 rtl_opt_pass along with...
7037 (pass_data_partition_blocks): ...new pass_data instance and...
7038 (make_pass_partition_blocks): ...new function.
7039 * bt-load.c (pass_branch_target_load_optimize1): Convert from a global
7040 struct to a subclass of rtl_opt_pass along with...
7041 (pass_data_branch_target_load_optimize1): ...new pass_data instance
7042 and...
7043 (make_pass_branch_target_load_optimize1): ...new function.
7044 (pass_branch_target_load_optimize2): Convert from a global struct to a
7045 subclass of rtl_opt_pass along with...
7046 (pass_data_branch_target_load_optimize2): ...new pass_data instance
7047 and...
7048 (make_pass_branch_target_load_optimize2): ...new function.
7049 * cfgcleanup.c (pass_jump): Convert from a global struct to a subclass
7050 of rtl_opt_pass along with...
7051 (pass_data_jump): ...new pass_data instance and...
7052 (make_pass_jump): ...new function.
7053 (pass_jump2): Convert from a global struct to a subclass of
7054 rtl_opt_pass along with...
7055 (pass_data_jump2): ...new pass_data instance and...
7056 (make_pass_jump2): ...new function.
7057 * cfgexpand.c (pass_expand): Convert from a global struct to a
7058 subclass of rtl_opt_pass along with...
7059 (pass_data_expand): ...new pass_data instance and...
7060 (make_pass_expand): ...new function.
7061 * cfgrtl.c (pass_free_cfg): Convert from a global struct to a subclass
7062 of rtl_opt_pass along with...
7063 (pass_data_free_cfg): ...new pass_data instance and...
7064 (make_pass_free_cfg): ...new function.
7065 (pass_into_cfg_layout_mode): Convert from a global struct to a
7066 subclass of rtl_opt_pass along with...
7067 (pass_data_into_cfg_layout_mode): ...new pass_data instance and...
7068 (make_pass_into_cfg_layout_mode): ...new function.
7069 (pass_outof_cfg_layout_mode): Convert from a global struct to a
7070 subclass of rtl_opt_pass along with...
7071 (pass_data_outof_cfg_layout_mode): ...new pass_data instance and...
7072 (make_pass_outof_cfg_layout_mode): ...new function.
7073 * cgraphbuild.c (pass_build_cgraph_edges): Convert from a global
7074 struct to a subclass of gimple_opt_pass along with...
7075 (pass_data_build_cgraph_edges): ...new pass_data instance and...
7076 (make_pass_build_cgraph_edges): ...new function.
7077 (pass_rebuild_cgraph_edges): Convert from a global struct to a
7078 subclass of gimple_opt_pass along with...
7079 (pass_data_rebuild_cgraph_edges): ...new pass_data instance and...
7080 (make_pass_rebuild_cgraph_edges): ...new function.
7081 (pass_remove_cgraph_callee_edges): Convert from a global struct to a
7082 subclass of gimple_opt_pass along with...
7083 (pass_data_remove_cgraph_callee_edges): ...new pass_data instance
7084 and...
7085 (make_pass_remove_cgraph_callee_edges): ...new function.
7086 * combine-stack-adj.c (pass_stack_adjustments): Convert from a global
7087 struct to a subclass of rtl_opt_pass along with...
7088 (pass_data_stack_adjustments): ...new pass_data instance and...
7089 (make_pass_stack_adjustments): ...new function.
7090 * combine.c (pass_combine): Convert from a global struct to a subclass
7091 of rtl_opt_pass along with...
7092 (pass_data_combine): ...new pass_data instance and...
7093 (make_pass_combine): ...new function.
7094 * compare-elim.c (pass_compare_elim_after_reload): Convert from a
7095 global struct to a subclass of rtl_opt_pass along with...
7096 (pass_data_compare_elim_after_reload): ...new pass_data instance
7097 and...
7098 (make_pass_compare_elim_after_reload): ...new function.
7099 * cprop.c (pass_rtl_cprop): Convert from a global struct to a subclass
7100 of rtl_opt_pass along with...
7101 (pass_data_rtl_cprop): ...new pass_data instance and...
7102 (make_pass_rtl_cprop): ...new function.
7103 * cse.c (pass_cse): Convert from a global struct to a subclass of
7104 rtl_opt_pass along with...
7105 (pass_data_cse): ...new pass_data instance and...
7106 (make_pass_cse): ...new function.
7107 (pass_cse2): Convert from a global struct to a subclass of
7108 rtl_opt_pass along with...
7109 (pass_data_cse2): ...new pass_data instance and...
7110 (make_pass_cse2): ...new function.
7111 (pass_cse_after_global_opts): Convert from a global struct to a
7112 subclass of rtl_opt_pass along with...
7113 (pass_data_cse_after_global_opts): ...new pass_data instance and...
7114 (make_pass_cse_after_global_opts): ...new function.
7115 * dce.c (pass_ud_rtl_dce): Convert from a global struct to a subclass
7116 of rtl_opt_pass along with...
7117 (pass_data_ud_rtl_dce): ...new pass_data instance and...
7118 (make_pass_ud_rtl_dce): ...new function.
7119 (pass_fast_rtl_dce): Convert from a global struct to a subclass of
7120 rtl_opt_pass along with...
7121 (pass_data_fast_rtl_dce): ...new pass_data instance and...
7122 (make_pass_fast_rtl_dce): ...new function.
7123 * df-core.c (pass_df_initialize_opt): Convert from a global struct to
7124 a subclass of rtl_opt_pass along with...
7125 (pass_data_df_initialize_opt): ...new pass_data instance and...
7126 (make_pass_df_initialize_opt): ...new function.
7127 (pass_df_initialize_no_opt): Convert from a global struct to a
7128 subclass of rtl_opt_pass along with...
7129 (pass_data_df_initialize_no_opt): ...new pass_data instance and...
7130 (make_pass_df_initialize_no_opt): ...new function.
7131 (pass_df_finish): Convert from a global struct to a subclass of
7132 rtl_opt_pass along with...
7133 (pass_data_df_finish): ...new pass_data instance and...
7134 (make_pass_df_finish): ...new function.
7135 * dse.c (pass_rtl_dse1): Convert from a global struct to a subclass of
7136 rtl_opt_pass along with...
7137 (pass_data_rtl_dse1): ...new pass_data instance and...
7138 (make_pass_rtl_dse1): ...new function.
7139 (pass_rtl_dse2): Convert from a global struct to a subclass of
7140 rtl_opt_pass along with...
7141 (pass_data_rtl_dse2): ...new pass_data instance and...
7142 (make_pass_rtl_dse2): ...new function.
7143 * dwarf2cfi.c (pass_dwarf2_frame): Convert from a global struct to a
7144 subclass of rtl_opt_pass along with...
7145 (pass_data_dwarf2_frame): ...new pass_data instance and...
7146 (make_pass_dwarf2_frame): ...new function.
7147 * except.c (pass_set_nothrow_function_flags): Convert from a global
7148 struct to a subclass of rtl_opt_pass along with...
7149 (pass_data_set_nothrow_function_flags): ...new pass_data instance
7150 and...
7151 (make_pass_set_nothrow_function_flags): ...new function.
7152 (pass_convert_to_eh_region_ranges): Convert from a global struct to a
7153 subclass of rtl_opt_pass along with...
7154 (pass_data_convert_to_eh_region_ranges): ...new pass_data instance
7155 and...
7156 (make_pass_convert_to_eh_region_ranges): ...new function.
7157 * final.c (pass_compute_alignments): Convert from a global struct to a
7158 subclass of rtl_opt_pass along with...
7159 (pass_data_compute_alignments): ...new pass_data instance and...
7160 (make_pass_compute_alignments): ...new function.
7161 (pass_final): Convert from a global struct to a subclass of
7162 rtl_opt_pass along with...
7163 (pass_data_final): ...new pass_data instance and...
7164 (make_pass_final): ...new function.
7165 (pass_shorten_branches): Convert from a global struct to a subclass of
7166 rtl_opt_pass along with...
7167 (pass_data_shorten_branches): ...new pass_data instance and...
7168 (make_pass_shorten_branches): ...new function.
7169 (pass_clean_state): Convert from a global struct to a subclass of
7170 rtl_opt_pass along with...
7171 (pass_data_clean_state): ...new pass_data instance and...
7172 (make_pass_clean_state): ...new function.
7173 * function.c (pass_instantiate_virtual_regs): Convert from a global
7174 struct to a subclass of rtl_opt_pass along with...
7175 (pass_data_instantiate_virtual_regs): ...new pass_data instance and...
7176 (make_pass_instantiate_virtual_regs): ...new function.
7177 (pass_leaf_regs): Convert from a global struct to a subclass of
7178 rtl_opt_pass along with...
7179 (pass_data_leaf_regs): ...new pass_data instance and...
7180 (make_pass_leaf_regs): ...new function.
7181 (pass_thread_prologue_and_epilogue): Convert from a global struct to a
7182 subclass of rtl_opt_pass along with...
7183 (pass_data_thread_prologue_and_epilogue): ...new pass_data instance
7184 and...
7185 (make_pass_thread_prologue_and_epilogue): ...new function.
7186 (pass_match_asm_constraints): Convert from a global struct to a
7187 subclass of rtl_opt_pass along with...
7188 (pass_data_match_asm_constraints): ...new pass_data instance and...
7189 (make_pass_match_asm_constraints): ...new function.
7190 * fwprop.c (pass_rtl_fwprop): Convert from a global struct to a
7191 subclass of rtl_opt_pass along with...
7192 (pass_data_rtl_fwprop): ...new pass_data instance and...
7193 (make_pass_rtl_fwprop): ...new function.
7194 (pass_rtl_fwprop_addr): Convert from a global struct to a subclass of
7195 rtl_opt_pass along with...
7196 (pass_data_rtl_fwprop_addr): ...new pass_data instance and...
7197 (make_pass_rtl_fwprop_addr): ...new function.
7198 * gcse.c (pass_rtl_pre): Convert from a global struct to a subclass of
7199 rtl_opt_pass along with...
7200 (pass_data_rtl_pre): ...new pass_data instance and...
7201 (make_pass_rtl_pre): ...new function.
7202 (pass_rtl_hoist): Convert from a global struct to a subclass of
7203 rtl_opt_pass along with...
7204 (pass_data_rtl_hoist): ...new pass_data instance and...
7205 (make_pass_rtl_hoist): ...new function.
7206 * gimple-low.c (pass_lower_cf): Convert from a global struct to a
7207 subclass of gimple_opt_pass along with...
7208 (pass_data_lower_cf): ...new pass_data instance and...
7209 (make_pass_lower_cf): ...new function.
7210 * gimple-ssa-strength-reduction.c (pass_strength_reduction): Convert
7211 from a global struct to a subclass of gimple_opt_pass along with...
7212 (pass_data_strength_reduction): ...new pass_data instance and...
7213 (make_pass_strength_reduction): ...new function.
7214 * ifcvt.c (pass_rtl_ifcvt): Convert from a global struct to a subclass
7215 of rtl_opt_pass along with...
7216 (pass_data_rtl_ifcvt): ...new pass_data instance and...
7217 (make_pass_rtl_ifcvt): ...new function.
7218 (pass_if_after_combine): Convert from a global struct to a subclass of
7219 rtl_opt_pass along with...
7220 (pass_data_if_after_combine): ...new pass_data instance and...
7221 (make_pass_if_after_combine): ...new function.
7222 (pass_if_after_reload): Convert from a global struct to a subclass of
7223 rtl_opt_pass along with...
7224 (pass_data_if_after_reload): ...new pass_data instance and...
7225 (make_pass_if_after_reload): ...new function.
7226 * init-regs.c (pass_initialize_regs): Convert from a global struct to
7227 a subclass of rtl_opt_pass along with...
7228 (pass_data_initialize_regs): ...new pass_data instance and...
7229 (make_pass_initialize_regs): ...new function.
7230 * ipa-cp.c (pass_ipa_cp): Convert from a global struct to a subclass
7231 of ipa_opt_pass_d along with...
7232 (pass_data_ipa_cp): ...new pass_data instance and...
7233 (make_pass_ipa_cp): ...new function.
7234 * ipa-inline-analysis.c (pass_inline_parameters): Convert from a
7235 global struct to a subclass of gimple_opt_pass along with...
7236 (pass_data_inline_parameters): ...new pass_data instance and...
7237 (make_pass_inline_parameters): ...new function.
7238 * ipa-inline.c (pass_early_inline): Convert from a global struct to a
7239 subclass of gimple_opt_pass along with...
7240 (pass_data_early_inline): ...new pass_data instance and...
7241 (make_pass_early_inline): ...new function.
7242 (pass_ipa_inline): Convert from a global struct to a subclass of
7243 ipa_opt_pass_d along with...
7244 (pass_data_ipa_inline): ...new pass_data instance and...
7245 (make_pass_ipa_inline): ...new function.
7246 * ipa-pure-const.c (pass_local_pure_const): Convert from a global
7247 struct to a subclass of gimple_opt_pass along with...
7248 (pass_data_local_pure_const): ...new pass_data instance and...
7249 (make_pass_local_pure_const): ...new function.
7250 (pass_ipa_pure_const): Convert from a global struct to a subclass of
7251 ipa_opt_pass_d along with...
7252 (pass_data_ipa_pure_const): ...new pass_data instance and...
7253 (make_pass_ipa_pure_const): ...new function.
7254 * ipa-reference.c (pass_ipa_reference): Convert from a global struct
7255 to a subclass of ipa_opt_pass_d along with...
7256 (pass_data_ipa_reference): ...new pass_data instance and...
7257 (make_pass_ipa_reference): ...new function.
7258 * ipa-split.c (pass_split_functions): Convert from a global struct to
7259 a subclass of gimple_opt_pass along with...
7260 (pass_data_split_functions): ...new pass_data instance and...
7261 (make_pass_split_functions): ...new function.
7262 (pass_feedback_split_functions): Convert from a global struct to a
7263 subclass of gimple_opt_pass along with...
7264 (pass_data_feedback_split_functions): ...new pass_data instance and...
7265 (make_pass_feedback_split_functions): ...new function.
7266 * ipa.c (pass_ipa_function_and_variable_visibility): Convert from a
7267 global struct to a subclass of simple_ipa_opt_pass along with...
7268 (pass_data_ipa_function_and_variable_visibility): ...new pass_data
7269 instance and...
7270 (make_pass_ipa_function_and_variable_visibility): ...new function.
7271 (pass_ipa_free_inline_summary): Convert from a global struct to a
7272 subclass of simple_ipa_opt_pass along with...
7273 (pass_data_ipa_free_inline_summary): ...new pass_data instance and...
7274 (make_pass_ipa_free_inline_summary): ...new function.
7275 (pass_ipa_whole_program_visibility): Convert from a global struct to a
7276 subclass of ipa_opt_pass_d along with...
7277 (pass_data_ipa_whole_program_visibility): ...new pass_data instance
7278 and...
7279 (make_pass_ipa_whole_program_visibility): ...new function.
7280 (pass_ipa_profile): Convert from a global struct to a subclass of
7281 ipa_opt_pass_d along with...
7282 (pass_data_ipa_profile): ...new pass_data instance and...
7283 (make_pass_ipa_profile): ...new function.
7284 (pass_ipa_cdtor_merge): Convert from a global struct to a subclass of
7285 ipa_opt_pass_d along with...
7286 (pass_data_ipa_cdtor_merge): ...new pass_data instance and...
7287 (make_pass_ipa_cdtor_merge): ...new function.
7288 * ira.c (pass_ira): Convert from a global struct to a subclass of
7289 rtl_opt_pass along with...
7290 (pass_data_ira): ...new pass_data instance and...
7291 (make_pass_ira): ...new function.
7292 (pass_reload): Convert from a global struct to a subclass of
7293 rtl_opt_pass along with...
7294 (pass_data_reload): ...new pass_data instance and...
7295 (make_pass_reload): ...new function.
7296 * jump.c (pass_cleanup_barriers): Convert from a global struct to a
7297 subclass of rtl_opt_pass along with...
7298 (pass_data_cleanup_barriers): ...new pass_data instance and...
7299 (make_pass_cleanup_barriers): ...new function.
7300 * loop-init.c (pass_loop2): Convert from a global struct to a subclass
7301 of rtl_opt_pass along with...
7302 (pass_data_loop2): ...new pass_data instance and...
7303 (make_pass_loop2): ...new function.
7304 (pass_rtl_loop_init): Convert from a global struct to a subclass of
7305 rtl_opt_pass along with...
7306 (pass_data_rtl_loop_init): ...new pass_data instance and...
7307 (make_pass_rtl_loop_init): ...new function.
7308 (pass_rtl_loop_done): Convert from a global struct to a subclass of
7309 rtl_opt_pass along with...
7310 (pass_data_rtl_loop_done): ...new pass_data instance and...
7311 (make_pass_rtl_loop_done): ...new function.
7312 (pass_rtl_move_loop_invariants): Convert from a global struct to a
7313 subclass of rtl_opt_pass along with...
7314 (pass_data_rtl_move_loop_invariants): ...new pass_data instance and...
7315 (make_pass_rtl_move_loop_invariants): ...new function.
7316 (pass_rtl_unswitch): Convert from a global struct to a subclass of
7317 rtl_opt_pass along with...
7318 (pass_data_rtl_unswitch): ...new pass_data instance and...
7319 (make_pass_rtl_unswitch): ...new function.
7320 (pass_rtl_unroll_and_peel_loops): Convert from a global struct to a
7321 subclass of rtl_opt_pass along with...
7322 (pass_data_rtl_unroll_and_peel_loops): ...new pass_data instance
7323 and...
7324 (make_pass_rtl_unroll_and_peel_loops): ...new function.
7325 (pass_rtl_doloop): Convert from a global struct to a subclass of
7326 rtl_opt_pass along with...
7327 (pass_data_rtl_doloop): ...new pass_data instance and...
7328 (make_pass_rtl_doloop): ...new function.
7329 * lower-subreg.c (pass_lower_subreg): Convert from a global struct to
7330 a subclass of rtl_opt_pass along with...
7331 (pass_data_lower_subreg): ...new pass_data instance and...
7332 (make_pass_lower_subreg): ...new function.
7333 (pass_lower_subreg2): Convert from a global struct to a subclass of
7334 rtl_opt_pass along with...
7335 (pass_data_lower_subreg2): ...new pass_data instance and...
7336 (make_pass_lower_subreg2): ...new function.
7337 * lto-streamer-out.c (pass_ipa_lto_gimple_out): Convert from a global
7338 struct to a subclass of ipa_opt_pass_d along with...
7339 (pass_data_ipa_lto_gimple_out): ...new pass_data instance and...
7340 (make_pass_ipa_lto_gimple_out): ...new function.
7341 (pass_ipa_lto_finish_out): Convert from a global struct to a subclass
7342 of ipa_opt_pass_d along with...
7343 (pass_data_ipa_lto_finish_out): ...new pass_data instance and...
7344 (make_pass_ipa_lto_finish_out): ...new function.
7345 * mode-switching.c (pass_mode_switching): Convert from a global struct
7346 to a subclass of rtl_opt_pass along with...
7347 (pass_data_mode_switching): ...new pass_data instance and...
7348 (make_pass_mode_switching): ...new function.
7349 * modulo-sched.c (pass_sms): Convert from a global struct to a
7350 subclass of rtl_opt_pass along with...
7351 (pass_data_sms): ...new pass_data instance and...
7352 (make_pass_sms): ...new function.
7353 * omp-low.c (pass_expand_omp): Convert from a global struct to a
7354 subclass of gimple_opt_pass along with...
7355 (pass_data_expand_omp): ...new pass_data instance and...
7356 (make_pass_expand_omp): ...new function.
7357 (pass_lower_omp): Convert from a global struct to a subclass of
7358 gimple_opt_pass along with...
7359 (pass_data_lower_omp): ...new pass_data instance and...
7360 (make_pass_lower_omp): ...new function.
7361 (pass_diagnose_omp_blocks): Convert from a global struct to a subclass
7362 of gimple_opt_pass along with...
7363 (pass_data_diagnose_omp_blocks): ...new pass_data instance and...
7364 (make_pass_diagnose_omp_blocks): ...new function.
7365 * passes.c (pass_early_local_passes): Convert from a global struct to
7366 a subclass of simple_ipa_opt_pass along with...
7367 (pass_data_early_local_passes): ...new pass_data instance and...
7368 (make_pass_early_local_passes): ...new function.
7369 (pass_all_early_optimizations): Convert from a global struct to a
7370 subclass of gimple_opt_pass along with...
7371 (pass_data_all_early_optimizations): ...new pass_data instance and...
7372 (make_pass_all_early_optimizations): ...new function.
7373 (pass_all_optimizations): Convert from a global struct to a subclass
7374 of gimple_opt_pass along with...
7375 (pass_data_all_optimizations): ...new pass_data instance and...
7376 (make_pass_all_optimizations): ...new function.
7377 (pass_all_optimizations_g): Convert from a global struct to a subclass
7378 of gimple_opt_pass along with...
7379 (pass_data_all_optimizations_g): ...new pass_data instance and...
7380 (make_pass_all_optimizations_g): ...new function.
7381 (pass_rest_of_compilation): Convert from a global struct to a subclass
7382 of rtl_opt_pass along with...
7383 (pass_data_rest_of_compilation): ...new pass_data instance and...
7384 (make_pass_rest_of_compilation): ...new function.
7385 (pass_postreload): Convert from a global struct to a subclass of
7386 rtl_opt_pass along with...
7387 (pass_data_postreload): ...new pass_data instance and...
7388 (make_pass_postreload): ...new function.
7389 * postreload-gcse.c (pass_gcse2): Convert from a global struct to a
7390 subclass of rtl_opt_pass along with...
7391 (pass_data_gcse2): ...new pass_data instance and...
7392 (make_pass_gcse2): ...new function.
7393 * postreload.c (pass_postreload_cse): Convert from a global struct to
7394 a subclass of rtl_opt_pass along with...
7395 (pass_data_postreload_cse): ...new pass_data instance and...
7396 (make_pass_postreload_cse): ...new function.
7397 * predict.c (pass_profile): Convert from a global struct to a subclass
7398 of gimple_opt_pass along with...
7399 (pass_data_profile): ...new pass_data instance and...
7400 (make_pass_profile): ...new function.
7401 (pass_strip_predict_hints): Convert from a global struct to a subclass
7402 of gimple_opt_pass along with...
7403 (pass_data_strip_predict_hints): ...new pass_data instance and...
7404 (make_pass_strip_predict_hints): ...new function.
7405 * recog.c (pass_peephole2): Convert from a global struct to a subclass
7406 of rtl_opt_pass along with...
7407 (pass_data_peephole2): ...new pass_data instance and...
7408 (make_pass_peephole2): ...new function.
7409 (pass_split_all_insns): Convert from a global struct to a subclass of
7410 rtl_opt_pass along with...
7411 (pass_data_split_all_insns): ...new pass_data instance and...
7412 (make_pass_split_all_insns): ...new function.
7413 (pass_split_after_reload): Convert from a global struct to a subclass
7414 of rtl_opt_pass along with...
7415 (pass_data_split_after_reload): ...new pass_data instance and...
7416 (make_pass_split_after_reload): ...new function.
7417 (pass_split_before_regstack): Convert from a global struct to a
7418 subclass of rtl_opt_pass along with...
7419 (pass_data_split_before_regstack): ...new pass_data instance and...
7420 (make_pass_split_before_regstack): ...new function.
7421 (pass_split_before_sched2): Convert from a global struct to a subclass
7422 of rtl_opt_pass along with...
7423 (pass_data_split_before_sched2): ...new pass_data instance and...
7424 (make_pass_split_before_sched2): ...new function.
7425 (pass_split_for_shorten_branches): Convert from a global struct to a
7426 subclass of rtl_opt_pass along with...
7427 (pass_data_split_for_shorten_branches): ...new pass_data instance
7428 and...
7429 (make_pass_split_for_shorten_branches): ...new function.
7430 * ree.c (pass_ree): Convert from a global struct to a subclass of
7431 rtl_opt_pass along with...
7432 (pass_data_ree): ...new pass_data instance and...
7433 (make_pass_ree): ...new function.
7434 * reg-stack.c (pass_stack_regs): Convert from a global struct to a
7435 subclass of rtl_opt_pass along with...
7436 (pass_data_stack_regs): ...new pass_data instance and...
7437 (make_pass_stack_regs): ...new function.
7438 (pass_stack_regs_run): Convert from a global struct to a subclass of
7439 rtl_opt_pass along with...
7440 (pass_data_stack_regs_run): ...new pass_data instance and...
7441 (make_pass_stack_regs_run): ...new function.
7442 * regcprop.c (pass_cprop_hardreg): Convert from a global struct to a
7443 subclass of rtl_opt_pass along with...
7444 (pass_data_cprop_hardreg): ...new pass_data instance and...
7445 (make_pass_cprop_hardreg): ...new function.
7446 * reginfo.c (pass_reginfo_init): Convert from a global struct to a
7447 subclass of rtl_opt_pass along with...
7448 (pass_data_reginfo_init): ...new pass_data instance and...
7449 (make_pass_reginfo_init): ...new function.
7450 * regmove.c (pass_regmove): Convert from a global struct to a subclass
7451 of rtl_opt_pass along with...
7452 (pass_data_regmove): ...new pass_data instance and...
7453 (make_pass_regmove): ...new function.
7454 * regrename.c (pass_regrename): Convert from a global struct to a
7455 subclass of rtl_opt_pass along with...
7456 (pass_data_regrename): ...new pass_data instance and...
7457 (make_pass_regrename): ...new function.
7458 * reorg.c (pass_delay_slots): Convert from a global struct to a
7459 subclass of rtl_opt_pass along with...
7460 (pass_data_delay_slots): ...new pass_data instance and...
7461 (make_pass_delay_slots): ...new function.
7462 (pass_machine_reorg): Convert from a global struct to a subclass of
7463 rtl_opt_pass along with...
7464 (pass_data_machine_reorg): ...new pass_data instance and...
7465 (make_pass_machine_reorg): ...new function.
7466 * sched-rgn.c (pass_sched): Convert from a global struct to a subclass
7467 of rtl_opt_pass along with...
7468 (pass_data_sched): ...new pass_data instance and...
7469 (make_pass_sched): ...new function.
7470 (pass_sched2): Convert from a global struct to a subclass of
7471 rtl_opt_pass along with...
7472 (pass_data_sched2): ...new pass_data instance and...
7473 (make_pass_sched2): ...new function.
7474 * stack-ptr-mod.c (pass_stack_ptr_mod): Convert from a global struct
7475 to a subclass of rtl_opt_pass along with...
7476 (pass_data_stack_ptr_mod): ...new pass_data instance and...
7477 (make_pass_stack_ptr_mod): ...new function.
7478 * store-motion.c (pass_rtl_store_motion): Convert from a global struct
7479 to a subclass of rtl_opt_pass along with...
7480 (pass_data_rtl_store_motion): ...new pass_data instance and...
7481 (make_pass_rtl_store_motion): ...new function.
7482 * tracer.c (pass_tracer): Convert from a global struct to a subclass
7483 of gimple_opt_pass along with...
7484 (pass_data_tracer): ...new pass_data instance and...
7485 (make_pass_tracer): ...new function.
7486 * trans-mem.c (pass_diagnose_tm_blocks): Convert from a global struct
7487 to a subclass of gimple_opt_pass along with...
7488 (pass_data_diagnose_tm_blocks): ...new pass_data instance and...
7489 (make_pass_diagnose_tm_blocks): ...new function.
7490 (pass_lower_tm): Convert from a global struct to a subclass of
7491 gimple_opt_pass along with...
7492 (pass_data_lower_tm): ...new pass_data instance and...
7493 (make_pass_lower_tm): ...new function.
7494 (pass_tm_init): Convert from a global struct to a subclass of
7495 gimple_opt_pass along with...
7496 (pass_data_tm_init): ...new pass_data instance and...
7497 (make_pass_tm_init): ...new function.
7498 (pass_tm_mark): Convert from a global struct to a subclass of
7499 gimple_opt_pass along with...
7500 (pass_data_tm_mark): ...new pass_data instance and...
7501 (make_pass_tm_mark): ...new function.
7502 (pass_tm_edges): Convert from a global struct to a subclass of
7503 gimple_opt_pass along with...
7504 (pass_data_tm_edges): ...new pass_data instance and...
7505 (make_pass_tm_edges): ...new function.
7506 (pass_tm_memopt): Convert from a global struct to a subclass of
7507 gimple_opt_pass along with...
7508 (pass_data_tm_memopt): ...new pass_data instance and...
7509 (make_pass_tm_memopt): ...new function.
7510 (pass_ipa_tm): Convert from a global struct to a subclass of
7511 simple_ipa_opt_pass along with...
7512 (pass_data_ipa_tm): ...new pass_data instance and...
7513 (make_pass_ipa_tm): ...new function.
7514 * tree-call-cdce.c (pass_call_cdce): Convert from a global struct to a
7515 subclass of gimple_opt_pass along with...
7516 (pass_data_call_cdce): ...new pass_data instance and...
7517 (make_pass_call_cdce): ...new function.
7518 * tree-cfg.c (pass_build_cfg): Convert from a global struct to a
7519 subclass of gimple_opt_pass along with...
7520 (pass_data_build_cfg): ...new pass_data instance and...
7521 (make_pass_build_cfg): ...new function.
7522 (pass_split_crit_edges): Convert from a global struct to a subclass of
7523 gimple_opt_pass along with...
7524 (pass_data_split_crit_edges): ...new pass_data instance and...
7525 (make_pass_split_crit_edges): ...new function.
7526 (pass_warn_function_return): Convert from a global struct to a
7527 subclass of gimple_opt_pass along with...
7528 (pass_data_warn_function_return): ...new pass_data instance and...
7529 (make_pass_warn_function_return): ...new function.
7530 (pass_warn_function_noreturn): Convert from a global struct to a
7531 subclass of gimple_opt_pass along with...
7532 (pass_data_warn_function_noreturn): ...new pass_data instance and...
7533 (make_pass_warn_function_noreturn): ...new function.
7534 (pass_warn_unused_result): Convert from a global struct to a subclass
7535 of gimple_opt_pass along with...
7536 (pass_data_warn_unused_result): ...new pass_data instance and...
7537 (make_pass_warn_unused_result): ...new function.
7538 * tree-cfgcleanup.c (pass_merge_phi): Convert from a global struct to
7539 a subclass of gimple_opt_pass along with...
7540 (pass_data_merge_phi): ...new pass_data instance and...
7541 (make_pass_merge_phi): ...new function.
7542 * tree-complex.c (pass_lower_complex): Convert from a global struct to
7543 a subclass of gimple_opt_pass along with...
7544 (pass_data_lower_complex): ...new pass_data instance and...
7545 (make_pass_lower_complex): ...new function.
7546 (pass_lower_complex_O0): Convert from a global struct to a subclass of
7547 gimple_opt_pass along with...
7548 (pass_data_lower_complex_O0): ...new pass_data instance and...
7549 (make_pass_lower_complex_O0): ...new function.
7550 * tree-eh.c (pass_lower_eh): Convert from a global struct to a
7551 subclass of gimple_opt_pass along with...
7552 (pass_data_lower_eh): ...new pass_data instance and...
7553 (make_pass_lower_eh): ...new function.
7554 (pass_refactor_eh): Convert from a global struct to a subclass of
7555 gimple_opt_pass along with...
7556 (pass_data_refactor_eh): ...new pass_data instance and...
7557 (make_pass_refactor_eh): ...new function.
7558 (pass_lower_resx): Convert from a global struct to a subclass of
7559 gimple_opt_pass along with...
7560 (pass_data_lower_resx): ...new pass_data instance and...
7561 (make_pass_lower_resx): ...new function.
7562 (pass_lower_eh_dispatch): Convert from a global struct to a subclass
7563 of gimple_opt_pass along with...
7564 (pass_data_lower_eh_dispatch): ...new pass_data instance and...
7565 (make_pass_lower_eh_dispatch): ...new function.
7566 (pass_cleanup_eh): Convert from a global struct to a subclass of
7567 gimple_opt_pass along with...
7568 (pass_data_cleanup_eh): ...new pass_data instance and...
7569 (make_pass_cleanup_eh): ...new function.
7570 * tree-emutls.c (pass_ipa_lower_emutls): Convert from a global struct
7571 to a subclass of simple_ipa_opt_pass along with...
7572 (pass_data_ipa_lower_emutls): ...new pass_data instance and...
7573 (make_pass_ipa_lower_emutls): ...new function.
7574 * tree-if-conv.c (pass_if_conversion): Convert from a global struct to
7575 a subclass of gimple_opt_pass along with...
7576 (pass_data_if_conversion): ...new pass_data instance and...
7577 (make_pass_if_conversion): ...new function.
7578 * tree-into-ssa.c (pass_build_ssa): Convert from a global struct to a
7579 subclass of gimple_opt_pass along with...
7580 (pass_data_build_ssa): ...new pass_data instance and...
7581 (make_pass_build_ssa): ...new function.
7582 * tree-loop-distribution.c (pass_loop_distribution): Convert from a
7583 global struct to a subclass of gimple_opt_pass along with...
7584 (pass_data_loop_distribution): ...new pass_data instance and...
7585 (make_pass_loop_distribution): ...new function.
7586 * tree-mudflap.c (pass_mudflap_1): Convert from a global struct to a
7587 subclass of gimple_opt_pass along with...
7588 (pass_data_mudflap_1): ...new pass_data instance and...
7589 (make_pass_mudflap_1): ...new function.
7590 (pass_mudflap_2): Convert from a global struct to a subclass of
7591 gimple_opt_pass along with...
7592 (pass_data_mudflap_2): ...new pass_data instance and...
7593 (make_pass_mudflap_2): ...new function.
7594 * tree-nomudflap.c (pass_mudflap_1): Convert from a global struct to a
7595 subclass of gimple_opt_pass along with...
7596 (pass_data_mudflap_1): ...new pass_data instance and...
7597 (make_pass_mudflap_1): ...new function.
7598 (pass_mudflap_2): Convert from a global struct to a subclass of
7599 gimple_opt_pass along with...
7600 (pass_data_mudflap_2): ...new pass_data instance and...
7601 (make_pass_mudflap_2): ...new function.
7602 * tree-nrv.c (pass_nrv): Convert from a global struct to a subclass of
7603 gimple_opt_pass along with...
7604 (pass_data_nrv): ...new pass_data instance and...
7605 (make_pass_nrv): ...new function.
7606 (pass_return_slot): Convert from a global struct to a subclass of
7607 gimple_opt_pass along with...
7608 (pass_data_return_slot): ...new pass_data instance and...
7609 (make_pass_return_slot): ...new function.
7610 * tree-object-size.c (pass_object_sizes): Convert from a global struct
7611 to a subclass of gimple_opt_pass along with...
7612 (pass_data_object_sizes): ...new pass_data instance and...
7613 (make_pass_object_sizes): ...new function.
7614 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Convert from a
7615 global struct to a subclass of gimple_opt_pass along with...
7616 (pass_data_cleanup_cfg_post_optimizing): ...new pass_data instance
7617 and...
7618 (make_pass_cleanup_cfg_post_optimizing): ...new function.
7619 (pass_fixup_cfg): Convert from a global struct to a subclass of
7620 gimple_opt_pass along with...
7621 (pass_data_fixup_cfg): ...new pass_data instance and...
7622 (make_pass_fixup_cfg): ...new function.
7623 * tree-pass.h (pass_mudflap_1): Replace declaration with that of...
7624 (make_pass_mudflap_1): ...new function.
7625 (pass_mudflap_2): Replace declaration with that of...
7626 (make_pass_mudflap_2): ...new function.
7627 (pass_asan): Replace declaration with that of...
7628 (make_pass_asan): ...new function.
7629 (pass_asan_O0): Replace declaration with that of...
7630 (make_pass_asan_O0): ...new function.
7631 (pass_tsan): Replace declaration with that of...
7632 (make_pass_tsan): ...new function.
7633 (pass_tsan_O0): Replace declaration with that of...
7634 (make_pass_tsan_O0): ...new function.
7635 (pass_lower_cf): Replace declaration with that of...
7636 (make_pass_lower_cf): ...new function.
7637 (pass_refactor_eh): Replace declaration with that of...
7638 (make_pass_refactor_eh): ...new function.
7639 (pass_lower_eh): Replace declaration with that of...
7640 (make_pass_lower_eh): ...new function.
7641 (pass_lower_eh_dispatch): Replace declaration with that of...
7642 (make_pass_lower_eh_dispatch): ...new function.
7643 (pass_lower_resx): Replace declaration with that of...
7644 (make_pass_lower_resx): ...new function.
7645 (pass_build_cfg): Replace declaration with that of...
7646 (make_pass_build_cfg): ...new function.
7647 (pass_early_tree_profile): Replace declaration with that of...
7648 (make_pass_early_tree_profile): ...new function.
7649 (pass_cleanup_eh): Replace declaration with that of...
7650 (make_pass_cleanup_eh): ...new function.
7651 (pass_sra): Replace declaration with that of...
7652 (make_pass_sra): ...new function.
7653 (pass_sra_early): Replace declaration with that of...
7654 (make_pass_sra_early): ...new function.
7655 (pass_early_ipa_sra): Replace declaration with that of...
7656 (make_pass_early_ipa_sra): ...new function.
7657 (pass_tail_recursion): Replace declaration with that of...
7658 (make_pass_tail_recursion): ...new function.
7659 (pass_tail_calls): Replace declaration with that of...
7660 (make_pass_tail_calls): ...new function.
7661 (pass_tree_loop): Replace declaration with that of...
7662 (make_pass_tree_loop): ...new function.
7663 (pass_tree_loop_init): Replace declaration with that of...
7664 (make_pass_tree_loop_init): ...new function.
7665 (pass_lim): Replace declaration with that of...
7666 (make_pass_lim): ...new function.
7667 (pass_tree_unswitch): Replace declaration with that of...
7668 (make_pass_tree_unswitch): ...new function.
7669 (pass_predcom): Replace declaration with that of...
7670 (make_pass_predcom): ...new function.
7671 (pass_iv_canon): Replace declaration with that of...
7672 (make_pass_iv_canon): ...new function.
7673 (pass_scev_cprop): Replace declaration with that of...
7674 (make_pass_scev_cprop): ...new function.
7675 (pass_empty_loop): Replace declaration with that of...
7676 (make_pass_empty_loop): ...new function.
7677 (pass_record_bounds): Replace declaration with that of...
7678 (make_pass_record_bounds): ...new function.
7679 (pass_graphite): Replace declaration with that of...
7680 (make_pass_graphite): ...new function.
7681 (pass_graphite_transforms): Replace declaration with that of...
7682 (make_pass_graphite_transforms): ...new function.
7683 (pass_if_conversion): Replace declaration with that of...
7684 (make_pass_if_conversion): ...new function.
7685 (pass_loop_distribution): Replace declaration with that of...
7686 (make_pass_loop_distribution): ...new function.
7687 (pass_vectorize): Replace declaration with that of...
7688 (make_pass_vectorize): ...new function.
7689 (pass_slp_vectorize): Replace declaration with that of...
7690 (make_pass_slp_vectorize): ...new function.
7691 (pass_complete_unroll): Replace declaration with that of...
7692 (make_pass_complete_unroll): ...new function.
7693 (pass_complete_unrolli): Replace declaration with that of...
7694 (make_pass_complete_unrolli): ...new function.
7695 (pass_parallelize_loops): Replace declaration with that of...
7696 (make_pass_parallelize_loops): ...new function.
7697 (pass_loop_prefetch): Replace declaration with that of...
7698 (make_pass_loop_prefetch): ...new function.
7699 (pass_iv_optimize): Replace declaration with that of...
7700 (make_pass_iv_optimize): ...new function.
7701 (pass_tree_loop_done): Replace declaration with that of...
7702 (make_pass_tree_loop_done): ...new function.
7703 (pass_ch): Replace declaration with that of...
7704 (make_pass_ch): ...new function.
7705 (pass_ccp): Replace declaration with that of...
7706 (make_pass_ccp): ...new function.
7707 (pass_phi_only_cprop): Replace declaration with that of...
7708 (make_pass_phi_only_cprop): ...new function.
7709 (pass_build_ssa): Replace declaration with that of...
7710 (make_pass_build_ssa): ...new function.
7711 (pass_build_alias): Replace declaration with that of...
7712 (make_pass_build_alias): ...new function.
7713 (pass_build_ealias): Replace declaration with that of...
7714 (make_pass_build_ealias): ...new function.
7715 (pass_dominator): Replace declaration with that of...
7716 (make_pass_dominator): ...new function.
7717 (pass_dce): Replace declaration with that of...
7718 (make_pass_dce): ...new function.
7719 (pass_dce_loop): Replace declaration with that of...
7720 (make_pass_dce_loop): ...new function.
7721 (pass_cd_dce): Replace declaration with that of...
7722 (make_pass_cd_dce): ...new function.
7723 (pass_call_cdce): Replace declaration with that of...
7724 (make_pass_call_cdce): ...new function.
7725 (pass_merge_phi): Replace declaration with that of...
7726 (make_pass_merge_phi): ...new function.
7727 (pass_split_crit_edges): Replace declaration with that of...
7728 (make_pass_split_crit_edges): ...new function.
7729 (pass_pre): Replace declaration with that of...
7730 (make_pass_pre): ...new function.
7731 (pass_profile): Replace declaration with that of...
7732 (make_pass_profile): ...new function.
7733 (pass_strip_predict_hints): Replace declaration with that of...
7734 (make_pass_strip_predict_hints): ...new function.
7735 (pass_lower_complex_O0): Replace declaration with that of...
7736 (make_pass_lower_complex_O0): ...new function.
7737 (pass_lower_complex): Replace declaration with that of...
7738 (make_pass_lower_complex): ...new function.
7739 (pass_lower_vector): Replace declaration with that of...
7740 (make_pass_lower_vector): ...new function.
7741 (pass_lower_vector_ssa): Replace declaration with that of...
7742 (make_pass_lower_vector_ssa): ...new function.
7743 (pass_lower_omp): Replace declaration with that of...
7744 (make_pass_lower_omp): ...new function.
7745 (pass_diagnose_omp_blocks): Replace declaration with that of...
7746 (make_pass_diagnose_omp_blocks): ...new function.
7747 (pass_expand_omp): Replace declaration with that of...
7748 (make_pass_expand_omp): ...new function.
7749 (pass_expand_omp_ssa): Replace declaration with that of...
7750 (make_pass_expand_omp_ssa): ...new function.
7751 (pass_object_sizes): Replace declaration with that of...
7752 (make_pass_object_sizes): ...new function.
7753 (pass_strlen): Replace declaration with that of...
7754 (make_pass_strlen): ...new function.
7755 (pass_fold_builtins): Replace declaration with that of...
7756 (make_pass_fold_builtins): ...new function.
7757 (pass_stdarg): Replace declaration with that of...
7758 (make_pass_stdarg): ...new function.
7759 (pass_early_warn_uninitialized): Replace declaration with that of...
7760 (make_pass_early_warn_uninitialized): ...new function.
7761 (pass_late_warn_uninitialized): Replace declaration with that of...
7762 (make_pass_late_warn_uninitialized): ...new function.
7763 (pass_cse_reciprocals): Replace declaration with that of...
7764 (make_pass_cse_reciprocals): ...new function.
7765 (pass_cse_sincos): Replace declaration with that of...
7766 (make_pass_cse_sincos): ...new function.
7767 (pass_optimize_bswap): Replace declaration with that of...
7768 (make_pass_optimize_bswap): ...new function.
7769 (pass_optimize_widening_mul): Replace declaration with that of...
7770 (make_pass_optimize_widening_mul): ...new function.
7771 (pass_warn_function_return): Replace declaration with that of...
7772 (make_pass_warn_function_return): ...new function.
7773 (pass_warn_function_noreturn): Replace declaration with that of...
7774 (make_pass_warn_function_noreturn): ...new function.
7775 (pass_cselim): Replace declaration with that of...
7776 (make_pass_cselim): ...new function.
7777 (pass_phiopt): Replace declaration with that of...
7778 (make_pass_phiopt): ...new function.
7779 (pass_forwprop): Replace declaration with that of...
7780 (make_pass_forwprop): ...new function.
7781 (pass_phiprop): Replace declaration with that of...
7782 (make_pass_phiprop): ...new function.
7783 (pass_tree_ifcombine): Replace declaration with that of...
7784 (make_pass_tree_ifcombine): ...new function.
7785 (pass_dse): Replace declaration with that of...
7786 (make_pass_dse): ...new function.
7787 (pass_nrv): Replace declaration with that of...
7788 (make_pass_nrv): ...new function.
7789 (pass_rename_ssa_copies): Replace declaration with that of...
7790 (make_pass_rename_ssa_copies): ...new function.
7791 (pass_sink_code): Replace declaration with that of...
7792 (make_pass_sink_code): ...new function.
7793 (pass_fre): Replace declaration with that of...
7794 (make_pass_fre): ...new function.
7795 (pass_check_data_deps): Replace declaration with that of...
7796 (make_pass_check_data_deps): ...new function.
7797 (pass_copy_prop): Replace declaration with that of...
7798 (make_pass_copy_prop): ...new function.
7799 (pass_vrp): Replace declaration with that of...
7800 (make_pass_vrp): ...new function.
7801 (pass_uncprop): Replace declaration with that of...
7802 (make_pass_uncprop): ...new function.
7803 (pass_return_slot): Replace declaration with that of...
7804 (make_pass_return_slot): ...new function.
7805 (pass_reassoc): Replace declaration with that of...
7806 (make_pass_reassoc): ...new function.
7807 (pass_rebuild_cgraph_edges): Replace declaration with that of...
7808 (make_pass_rebuild_cgraph_edges): ...new function.
7809 (pass_remove_cgraph_callee_edges): Replace declaration with that of...
7810 (make_pass_remove_cgraph_callee_edges): ...new function.
7811 (pass_build_cgraph_edges): Replace declaration with that of...
7812 (make_pass_build_cgraph_edges): ...new function.
7813 (pass_local_pure_const): Replace declaration with that of...
7814 (make_pass_local_pure_const): ...new function.
7815 (pass_tracer): Replace declaration with that of...
7816 (make_pass_tracer): ...new function.
7817 (pass_warn_unused_result): Replace declaration with that of...
7818 (make_pass_warn_unused_result): ...new function.
7819 (pass_diagnose_tm_blocks): Replace declaration with that of...
7820 (make_pass_diagnose_tm_blocks): ...new function.
7821 (pass_lower_tm): Replace declaration with that of...
7822 (make_pass_lower_tm): ...new function.
7823 (pass_tm_init): Replace declaration with that of...
7824 (make_pass_tm_init): ...new function.
7825 (pass_tm_mark): Replace declaration with that of...
7826 (make_pass_tm_mark): ...new function.
7827 (pass_tm_memopt): Replace declaration with that of...
7828 (make_pass_tm_memopt): ...new function.
7829 (pass_tm_edges): Replace declaration with that of...
7830 (make_pass_tm_edges): ...new function.
7831 (pass_split_functions): Replace declaration with that of...
7832 (make_pass_split_functions): ...new function.
7833 (pass_feedback_split_functions): Replace declaration with that of...
7834 (make_pass_feedback_split_functions): ...new function.
7835 (pass_strength_reduction): Replace declaration with that of...
7836 (make_pass_strength_reduction): ...new function.
7837 (pass_ipa_lower_emutls): Replace declaration with that of...
7838 (make_pass_ipa_lower_emutls): ...new function.
7839 (pass_ipa_function_and_variable_visibility): Replace declaration with
7840 that of...
7841 (make_pass_ipa_function_and_variable_visibility): ...new function.
7842 (pass_ipa_tree_profile): Replace declaration with that of...
7843 (make_pass_ipa_tree_profile): ...new function.
7844 (pass_early_local_passes): Replace declaration with that of...
7845 (make_pass_early_local_passes): ...new function.
7846 (pass_ipa_whole_program_visibility): Replace declaration with that
7847 of...
7848 (make_pass_ipa_whole_program_visibility): ...new function.
7849 (pass_ipa_lto_gimple_out): Replace declaration with that of...
7850 (make_pass_ipa_lto_gimple_out): ...new function.
7851 (pass_ipa_increase_alignment): Replace declaration with that of...
7852 (make_pass_ipa_increase_alignment): ...new function.
7853 (pass_ipa_inline): Replace declaration with that of...
7854 (make_pass_ipa_inline): ...new function.
7855 (pass_ipa_free_lang_data): Replace declaration with that of...
7856 (make_pass_ipa_free_lang_data): ...new function.
7857 (pass_ipa_free_inline_summary): Replace declaration with that of...
7858 (make_pass_ipa_free_inline_summary): ...new function.
7859 (pass_ipa_cp): Replace declaration with that of...
7860 (make_pass_ipa_cp): ...new function.
7861 (pass_ipa_reference): Replace declaration with that of...
7862 (make_pass_ipa_reference): ...new function.
7863 (pass_ipa_pure_const): Replace declaration with that of...
7864 (make_pass_ipa_pure_const): ...new function.
7865 (pass_ipa_pta): Replace declaration with that of...
7866 (make_pass_ipa_pta): ...new function.
7867 (pass_ipa_lto_finish_out): Replace declaration with that of...
7868 (make_pass_ipa_lto_finish_out): ...new function.
7869 (pass_ipa_tm): Replace declaration with that of...
7870 (make_pass_ipa_tm): ...new function.
7871 (pass_ipa_profile): Replace declaration with that of...
7872 (make_pass_ipa_profile): ...new function.
7873 (pass_ipa_cdtor_merge): Replace declaration with that of...
7874 (make_pass_ipa_cdtor_merge): ...new function.
7875 (pass_cleanup_cfg_post_optimizing): Replace declaration with that
7876 of...
7877 (make_pass_cleanup_cfg_post_optimizing): ...new function.
7878 (pass_init_datastructures): Replace declaration with that of...
7879 (make_pass_init_datastructures): ...new function.
7880 (pass_fixup_cfg): Replace declaration with that of...
7881 (make_pass_fixup_cfg): ...new function.
7882 (pass_expand): Replace declaration with that of...
7883 (make_pass_expand): ...new function.
7884 (pass_instantiate_virtual_regs): Replace declaration with that of...
7885 (make_pass_instantiate_virtual_regs): ...new function.
7886 (pass_rtl_fwprop): Replace declaration with that of...
7887 (make_pass_rtl_fwprop): ...new function.
7888 (pass_rtl_fwprop_addr): Replace declaration with that of...
7889 (make_pass_rtl_fwprop_addr): ...new function.
7890 (pass_jump): Replace declaration with that of...
7891 (make_pass_jump): ...new function.
7892 (pass_jump2): Replace declaration with that of...
7893 (make_pass_jump2): ...new function.
7894 (pass_lower_subreg): Replace declaration with that of...
7895 (make_pass_lower_subreg): ...new function.
7896 (pass_cse): Replace declaration with that of...
7897 (make_pass_cse): ...new function.
7898 (pass_fast_rtl_dce): Replace declaration with that of...
7899 (make_pass_fast_rtl_dce): ...new function.
7900 (pass_ud_rtl_dce): Replace declaration with that of...
7901 (make_pass_ud_rtl_dce): ...new function.
7902 (pass_rtl_dce): Replace declaration with that of...
7903 (make_pass_rtl_dce): ...new function.
7904 (pass_rtl_dse1): Replace declaration with that of...
7905 (make_pass_rtl_dse1): ...new function.
7906 (pass_rtl_dse2): Replace declaration with that of...
7907 (make_pass_rtl_dse2): ...new function.
7908 (pass_rtl_dse3): Replace declaration with that of...
7909 (make_pass_rtl_dse3): ...new function.
7910 (pass_rtl_cprop): Replace declaration with that of...
7911 (make_pass_rtl_cprop): ...new function.
7912 (pass_rtl_pre): Replace declaration with that of...
7913 (make_pass_rtl_pre): ...new function.
7914 (pass_rtl_hoist): Replace declaration with that of...
7915 (make_pass_rtl_hoist): ...new function.
7916 (pass_rtl_store_motion): Replace declaration with that of...
7917 (make_pass_rtl_store_motion): ...new function.
7918 (pass_cse_after_global_opts): Replace declaration with that of...
7919 (make_pass_cse_after_global_opts): ...new function.
7920 (pass_rtl_ifcvt): Replace declaration with that of...
7921 (make_pass_rtl_ifcvt): ...new function.
7922 (pass_into_cfg_layout_mode): Replace declaration with that of...
7923 (make_pass_into_cfg_layout_mode): ...new function.
7924 (pass_outof_cfg_layout_mode): Replace declaration with that of...
7925 (make_pass_outof_cfg_layout_mode): ...new function.
7926 (pass_loop2): Replace declaration with that of...
7927 (make_pass_loop2): ...new function.
7928 (pass_rtl_loop_init): Replace declaration with that of...
7929 (make_pass_rtl_loop_init): ...new function.
7930 (pass_rtl_move_loop_invariants): Replace declaration with that of...
7931 (make_pass_rtl_move_loop_invariants): ...new function.
7932 (pass_rtl_unswitch): Replace declaration with that of...
7933 (make_pass_rtl_unswitch): ...new function.
7934 (pass_rtl_unroll_and_peel_loops): Replace declaration with that of...
7935 (make_pass_rtl_unroll_and_peel_loops): ...new function.
7936 (pass_rtl_doloop): Replace declaration with that of...
7937 (make_pass_rtl_doloop): ...new function.
7938 (pass_rtl_loop_done): Replace declaration with that of...
7939 (make_pass_rtl_loop_done): ...new function.
7940 (pass_web): Replace declaration with that of...
7941 (make_pass_web): ...new function.
7942 (pass_cse2): Replace declaration with that of...
7943 (make_pass_cse2): ...new function.
7944 (pass_df_initialize_opt): Replace declaration with that of...
7945 (make_pass_df_initialize_opt): ...new function.
7946 (pass_df_initialize_no_opt): Replace declaration with that of...
7947 (make_pass_df_initialize_no_opt): ...new function.
7948 (pass_reginfo_init): Replace declaration with that of...
7949 (make_pass_reginfo_init): ...new function.
7950 (pass_inc_dec): Replace declaration with that of...
7951 (make_pass_inc_dec): ...new function.
7952 (pass_stack_ptr_mod): Replace declaration with that of...
7953 (make_pass_stack_ptr_mod): ...new function.
7954 (pass_initialize_regs): Replace declaration with that of...
7955 (make_pass_initialize_regs): ...new function.
7956 (pass_combine): Replace declaration with that of...
7957 (make_pass_combine): ...new function.
7958 (pass_if_after_combine): Replace declaration with that of...
7959 (make_pass_if_after_combine): ...new function.
7960 (pass_ree): Replace declaration with that of...
7961 (make_pass_ree): ...new function.
7962 (pass_partition_blocks): Replace declaration with that of...
7963 (make_pass_partition_blocks): ...new function.
7964 (pass_match_asm_constraints): Replace declaration with that of...
7965 (make_pass_match_asm_constraints): ...new function.
7966 (pass_regmove): Replace declaration with that of...
7967 (make_pass_regmove): ...new function.
7968 (pass_split_all_insns): Replace declaration with that of...
7969 (make_pass_split_all_insns): ...new function.
7970 (pass_fast_rtl_byte_dce): Replace declaration with that of...
7971 (make_pass_fast_rtl_byte_dce): ...new function.
7972 (pass_lower_subreg2): Replace declaration with that of...
7973 (make_pass_lower_subreg2): ...new function.
7974 (pass_mode_switching): Replace declaration with that of...
7975 (make_pass_mode_switching): ...new function.
7976 (pass_sms): Replace declaration with that of...
7977 (make_pass_sms): ...new function.
7978 (pass_sched): Replace declaration with that of...
7979 (make_pass_sched): ...new function.
7980 (pass_ira): Replace declaration with that of...
7981 (make_pass_ira): ...new function.
7982 (pass_reload): Replace declaration with that of...
7983 (make_pass_reload): ...new function.
7984 (pass_clean_state): Replace declaration with that of...
7985 (make_pass_clean_state): ...new function.
7986 (pass_branch_prob): Replace declaration with that of...
7987 (make_pass_branch_prob): ...new function.
7988 (pass_value_profile_transformations): Replace declaration with that
7989 of...
7990 (make_pass_value_profile_transformations): ...new function.
7991 (pass_postreload_cse): Replace declaration with that of...
7992 (make_pass_postreload_cse): ...new function.
7993 (pass_gcse2): Replace declaration with that of...
7994 (make_pass_gcse2): ...new function.
7995 (pass_split_after_reload): Replace declaration with that of...
7996 (make_pass_split_after_reload): ...new function.
7997 (pass_branch_target_load_optimize1): Replace declaration with that
7998 of...
7999 (make_pass_branch_target_load_optimize1): ...new function.
8000 (pass_thread_prologue_and_epilogue): Replace declaration with that
8001 of...
8002 (make_pass_thread_prologue_and_epilogue): ...new function.
8003 (pass_stack_adjustments): Replace declaration with that of...
8004 (make_pass_stack_adjustments): ...new function.
8005 (pass_peephole2): Replace declaration with that of...
8006 (make_pass_peephole2): ...new function.
8007 (pass_if_after_reload): Replace declaration with that of...
8008 (make_pass_if_after_reload): ...new function.
8009 (pass_regrename): Replace declaration with that of...
8010 (make_pass_regrename): ...new function.
8011 (pass_cprop_hardreg): Replace declaration with that of...
8012 (make_pass_cprop_hardreg): ...new function.
8013 (pass_reorder_blocks): Replace declaration with that of...
8014 (make_pass_reorder_blocks): ...new function.
8015 (pass_branch_target_load_optimize2): Replace declaration with that
8016 of...
8017 (make_pass_branch_target_load_optimize2): ...new function.
8018 (pass_leaf_regs): Replace declaration with that of...
8019 (make_pass_leaf_regs): ...new function.
8020 (pass_split_before_sched2): Replace declaration with that of...
8021 (make_pass_split_before_sched2): ...new function.
8022 (pass_compare_elim_after_reload): Replace declaration with that of...
8023 (make_pass_compare_elim_after_reload): ...new function.
8024 (pass_sched2): Replace declaration with that of...
8025 (make_pass_sched2): ...new function.
8026 (pass_stack_regs): Replace declaration with that of...
8027 (make_pass_stack_regs): ...new function.
8028 (pass_stack_regs_run): Replace declaration with that of...
8029 (make_pass_stack_regs_run): ...new function.
8030 (pass_df_finish): Replace declaration with that of...
8031 (make_pass_df_finish): ...new function.
8032 (pass_compute_alignments): Replace declaration with that of...
8033 (make_pass_compute_alignments): ...new function.
8034 (pass_duplicate_computed_gotos): Replace declaration with that of...
8035 (make_pass_duplicate_computed_gotos): ...new function.
8036 (pass_variable_tracking): Replace declaration with that of...
8037 (make_pass_variable_tracking): ...new function.
8038 (pass_free_cfg): Replace declaration with that of...
8039 (make_pass_free_cfg): ...new function.
8040 (pass_machine_reorg): Replace declaration with that of...
8041 (make_pass_machine_reorg): ...new function.
8042 (pass_cleanup_barriers): Replace declaration with that of...
8043 (make_pass_cleanup_barriers): ...new function.
8044 (pass_delay_slots): Replace declaration with that of...
8045 (make_pass_delay_slots): ...new function.
8046 (pass_split_for_shorten_branches): Replace declaration with that of...
8047 (make_pass_split_for_shorten_branches): ...new function.
8048 (pass_split_before_regstack): Replace declaration with that of...
8049 (make_pass_split_before_regstack): ...new function.
8050 (pass_convert_to_eh_region_ranges): Replace declaration with that
8051 of...
8052 (make_pass_convert_to_eh_region_ranges): ...new function.
8053 (pass_shorten_branches): Replace declaration with that of...
8054 (make_pass_shorten_branches): ...new function.
8055 (pass_set_nothrow_function_flags): Replace declaration with that of...
8056 (make_pass_set_nothrow_function_flags): ...new function.
8057 (pass_dwarf2_frame): Replace declaration with that of...
8058 (make_pass_dwarf2_frame): ...new function.
8059 (pass_final): Replace declaration with that of...
8060 (make_pass_final): ...new function.
8061 (pass_rtl_seqabstr): Replace declaration with that of...
8062 (make_pass_rtl_seqabstr): ...new function.
8063 (pass_release_ssa_names): Replace declaration with that of...
8064 (make_pass_release_ssa_names): ...new function.
8065 (pass_early_inline): Replace declaration with that of...
8066 (make_pass_early_inline): ...new function.
8067 (pass_inline_parameters): Replace declaration with that of...
8068 (make_pass_inline_parameters): ...new function.
8069 (pass_update_address_taken): Replace declaration with that of...
8070 (make_pass_update_address_taken): ...new function.
8071 (pass_convert_switch): Replace declaration with that of...
8072 (make_pass_convert_switch): ...new function.
8073 * tree-profile.c (pass_ipa_tree_profile): Convert from a global struct
8074 to a subclass of simple_ipa_opt_pass along with...
8075 (pass_data_ipa_tree_profile): ...new pass_data instance and...
8076 (make_pass_ipa_tree_profile): ...new function.
8077 * tree-sra.c (pass_sra_early): Convert from a global struct to a
8078 subclass of gimple_opt_pass along with...
8079 (pass_data_sra_early): ...new pass_data instance and...
8080 (make_pass_sra_early): ...new function.
8081 (pass_sra): Convert from a global struct to a subclass of
8082 gimple_opt_pass along with...
8083 (pass_data_sra): ...new pass_data instance and...
8084 (make_pass_sra): ...new function.
8085 (pass_early_ipa_sra): Convert from a global struct to a subclass of
8086 gimple_opt_pass along with...
8087 (pass_data_early_ipa_sra): ...new pass_data instance and...
8088 (make_pass_early_ipa_sra): ...new function.
8089 * tree-ssa-ccp.c (pass_ccp): Convert from a global struct to a
8090 subclass of gimple_opt_pass along with...
8091 (pass_data_ccp): ...new pass_data instance and...
8092 (make_pass_ccp): ...new function.
8093 (pass_fold_builtins): Convert from a global struct to a subclass of
8094 gimple_opt_pass along with...
8095 (pass_data_fold_builtins): ...new pass_data instance and...
8096 (make_pass_fold_builtins): ...new function.
8097 * tree-ssa-copy.c (pass_copy_prop): Convert from a global struct to a
8098 subclass of gimple_opt_pass along with...
8099 (pass_data_copy_prop): ...new pass_data instance and...
8100 (make_pass_copy_prop): ...new function.
8101 * tree-ssa-copyrename.c (pass_rename_ssa_copies): Convert from a
8102 global struct to a subclass of gimple_opt_pass along with...
8103 (pass_data_rename_ssa_copies): ...new pass_data instance and...
8104 (make_pass_rename_ssa_copies): ...new function.
8105 * tree-ssa-dce.c (pass_dce): Convert from a global struct to a
8106 subclass of gimple_opt_pass along with...
8107 (pass_data_dce): ...new pass_data instance and...
8108 (make_pass_dce): ...new function.
8109 (pass_dce_loop): Convert from a global struct to a subclass of
8110 gimple_opt_pass along with...
8111 (pass_data_dce_loop): ...new pass_data instance and...
8112 (make_pass_dce_loop): ...new function.
8113 (pass_cd_dce): Convert from a global struct to a subclass of
8114 gimple_opt_pass along with...
8115 (pass_data_cd_dce): ...new pass_data instance and...
8116 (make_pass_cd_dce): ...new function.
8117 * tree-ssa-dom.c (pass_dominator): Convert from a global struct to a
8118 subclass of gimple_opt_pass along with...
8119 (pass_data_dominator): ...new pass_data instance and...
8120 (make_pass_dominator): ...new function.
8121 (pass_phi_only_cprop): Convert from a global struct to a subclass of
8122 gimple_opt_pass along with...
8123 (pass_data_phi_only_cprop): ...new pass_data instance and...
8124 (make_pass_phi_only_cprop): ...new function.
8125 * tree-ssa-dse.c (pass_dse): Convert from a global struct to a
8126 subclass of gimple_opt_pass along with...
8127 (pass_data_dse): ...new pass_data instance and...
8128 (make_pass_dse): ...new function.
8129 * tree-ssa-forwprop.c (pass_forwprop): Convert from a global struct to
8130 a subclass of gimple_opt_pass along with...
8131 (pass_data_forwprop): ...new pass_data instance and...
8132 (make_pass_forwprop): ...new function.
8133 * tree-ssa-ifcombine.c (pass_tree_ifcombine): Convert from a global
8134 struct to a subclass of gimple_opt_pass along with...
8135 (pass_data_tree_ifcombine): ...new pass_data instance and...
8136 (make_pass_tree_ifcombine): ...new function.
8137 * tree-ssa-loop-ch.c (pass_ch): Convert from a global struct to a
8138 subclass of gimple_opt_pass along with...
8139 (pass_data_ch): ...new pass_data instance and...
8140 (make_pass_ch): ...new function.
8141 * tree-ssa-loop.c (pass_tree_loop): Convert from a global struct to a
8142 subclass of gimple_opt_pass along with...
8143 (pass_data_tree_loop): ...new pass_data instance and...
8144 (make_pass_tree_loop): ...new function.
8145 (pass_tree_loop_init): Convert from a global struct to a subclass of
8146 gimple_opt_pass along with...
8147 (pass_data_tree_loop_init): ...new pass_data instance and...
8148 (make_pass_tree_loop_init): ...new function.
8149 (pass_lim): Convert from a global struct to a subclass of
8150 gimple_opt_pass along with...
8151 (pass_data_lim): ...new pass_data instance and...
8152 (make_pass_lim): ...new function.
8153 (pass_tree_unswitch): Convert from a global struct to a subclass of
8154 gimple_opt_pass along with...
8155 (pass_data_tree_unswitch): ...new pass_data instance and...
8156 (make_pass_tree_unswitch): ...new function.
8157 (pass_predcom): Convert from a global struct to a subclass of
8158 gimple_opt_pass along with...
8159 (pass_data_predcom): ...new pass_data instance and...
8160 (make_pass_predcom): ...new function.
8161 (pass_vectorize): Convert from a global struct to a subclass of
8162 gimple_opt_pass along with...
8163 (pass_data_vectorize): ...new pass_data instance and...
8164 (make_pass_vectorize): ...new function.
8165 (pass_graphite): Convert from a global struct to a subclass of
8166 gimple_opt_pass along with...
8167 (pass_data_graphite): ...new pass_data instance and...
8168 (make_pass_graphite): ...new function.
8169 (pass_graphite_transforms): Convert from a global struct to a subclass
8170 of gimple_opt_pass along with...
8171 (pass_data_graphite_transforms): ...new pass_data instance and...
8172 (make_pass_graphite_transforms): ...new function.
8173 (pass_check_data_deps): Convert from a global struct to a subclass of
8174 gimple_opt_pass along with...
8175 (pass_data_check_data_deps): ...new pass_data instance and...
8176 (make_pass_check_data_deps): ...new function.
8177 (pass_iv_canon): Convert from a global struct to a subclass of
8178 gimple_opt_pass along with...
8179 (pass_data_iv_canon): ...new pass_data instance and...
8180 (make_pass_iv_canon): ...new function.
8181 (pass_scev_cprop): Convert from a global struct to a subclass of
8182 gimple_opt_pass along with...
8183 (pass_data_scev_cprop): ...new pass_data instance and...
8184 (make_pass_scev_cprop): ...new function.
8185 (pass_record_bounds): Convert from a global struct to a subclass of
8186 gimple_opt_pass along with...
8187 (pass_data_record_bounds): ...new pass_data instance and...
8188 (make_pass_record_bounds): ...new function.
8189 (pass_complete_unroll): Convert from a global struct to a subclass of
8190 gimple_opt_pass along with...
8191 (pass_data_complete_unroll): ...new pass_data instance and...
8192 (make_pass_complete_unroll): ...new function.
8193 (pass_complete_unrolli): Convert from a global struct to a subclass of
8194 gimple_opt_pass along with...
8195 (pass_data_complete_unrolli): ...new pass_data instance and...
8196 (make_pass_complete_unrolli): ...new function.
8197 (pass_parallelize_loops): Convert from a global struct to a subclass
8198 of gimple_opt_pass along with...
8199 (pass_data_parallelize_loops): ...new pass_data instance and...
8200 (make_pass_parallelize_loops): ...new function.
8201 (pass_loop_prefetch): Convert from a global struct to a subclass of
8202 gimple_opt_pass along with...
8203 (pass_data_loop_prefetch): ...new pass_data instance and...
8204 (make_pass_loop_prefetch): ...new function.
8205 (pass_iv_optimize): Convert from a global struct to a subclass of
8206 gimple_opt_pass along with...
8207 (pass_data_iv_optimize): ...new pass_data instance and...
8208 (make_pass_iv_optimize): ...new function.
8209 (pass_tree_loop_done): Convert from a global struct to a subclass of
8210 gimple_opt_pass along with...
8211 (pass_data_tree_loop_done): ...new pass_data instance and...
8212 (make_pass_tree_loop_done): ...new function.
8213 * tree-ssa-math-opts.c (pass_cse_reciprocals): Convert from a global
8214 struct to a subclass of gimple_opt_pass along with...
8215 (pass_data_cse_reciprocals): ...new pass_data instance and...
8216 (make_pass_cse_reciprocals): ...new function.
8217 (pass_cse_sincos): Convert from a global struct to a subclass of
8218 gimple_opt_pass along with...
8219 (pass_data_cse_sincos): ...new pass_data instance and...
8220 (make_pass_cse_sincos): ...new function.
8221 (pass_optimize_bswap): Convert from a global struct to a subclass of
8222 gimple_opt_pass along with...
8223 (pass_data_optimize_bswap): ...new pass_data instance and...
8224 (make_pass_optimize_bswap): ...new function.
8225 (pass_optimize_widening_mul): Convert from a global struct to a
8226 subclass of gimple_opt_pass along with...
8227 (pass_data_optimize_widening_mul): ...new pass_data instance and...
8228 (make_pass_optimize_widening_mul): ...new function.
8229 * tree-ssa-phiopt.c (pass_phiopt): Convert from a global struct to a
8230 subclass of gimple_opt_pass along with...
8231 (pass_data_phiopt): ...new pass_data instance and...
8232 (make_pass_phiopt): ...new function.
8233 (pass_cselim): Convert from a global struct to a subclass of
8234 gimple_opt_pass along with...
8235 (pass_data_cselim): ...new pass_data instance and...
8236 (make_pass_cselim): ...new function.
8237 * tree-ssa-phiprop.c (pass_phiprop): Convert from a global struct to a
8238 subclass of gimple_opt_pass along with...
8239 (pass_data_phiprop): ...new pass_data instance and...
8240 (make_pass_phiprop): ...new function.
8241 * tree-ssa-pre.c (pass_pre): Convert from a global struct to a
8242 subclass of gimple_opt_pass along with...
8243 (pass_data_pre): ...new pass_data instance and...
8244 (make_pass_pre): ...new function.
8245 (pass_fre): Convert from a global struct to a subclass of
8246 gimple_opt_pass along with...
8247 (pass_data_fre): ...new pass_data instance and...
8248 (make_pass_fre): ...new function.
8249 * tree-ssa-reassoc.c (pass_reassoc): Convert from a global struct to a
8250 subclass of gimple_opt_pass along with...
8251 (pass_data_reassoc): ...new pass_data instance and...
8252 (make_pass_reassoc): ...new function.
8253 * tree-ssa-sink.c (pass_sink_code): Convert from a global struct to a
8254 subclass of gimple_opt_pass along with...
8255 (pass_data_sink_code): ...new pass_data instance and...
8256 (make_pass_sink_code): ...new function.
8257 * tree-ssa-strlen.c (pass_strlen): Convert from a global struct to a
8258 subclass of gimple_opt_pass along with...
8259 (pass_data_strlen): ...new pass_data instance and...
8260 (make_pass_strlen): ...new function.
8261 * tree-ssa-structalias.c (pass_build_alias): Convert from a global
8262 struct to a subclass of gimple_opt_pass along with...
8263 (pass_data_build_alias): ...new pass_data instance and...
8264 (make_pass_build_alias): ...new function.
8265 (pass_build_ealias): Convert from a global struct to a subclass of
8266 gimple_opt_pass along with...
8267 (pass_data_build_ealias): ...new pass_data instance and...
8268 (make_pass_build_ealias): ...new function.
8269 (pass_ipa_pta): Convert from a global struct to a subclass of
8270 simple_ipa_opt_pass along with...
8271 (pass_data_ipa_pta): ...new pass_data instance and...
8272 (make_pass_ipa_pta): ...new function.
8273 * tree-ssa-uncprop.c (pass_uncprop): Convert from a global struct to a
8274 subclass of gimple_opt_pass along with...
8275 (pass_data_uncprop): ...new pass_data instance and...
8276 (make_pass_uncprop): ...new function.
8277 * tree-ssa-uninit.c (pass_late_warn_uninitialized): Convert from a
8278 global struct to a subclass of gimple_opt_pass along with...
8279 (pass_data_late_warn_uninitialized): ...new pass_data instance and...
8280 (make_pass_late_warn_uninitialized): ...new function.
8281 * tree-ssa.c (pass_init_datastructures): Convert from a global struct
8282 to a subclass of gimple_opt_pass along with...
8283 (pass_data_init_datastructures): ...new pass_data instance and...
8284 (make_pass_init_datastructures): ...new function.
8285 (pass_early_warn_uninitialized): Convert from a global struct to a
8286 subclass of gimple_opt_pass along with...
8287 (pass_data_early_warn_uninitialized): ...new pass_data instance and...
8288 (make_pass_early_warn_uninitialized): ...new function.
8289 (pass_update_address_taken): Convert from a global struct to a
8290 subclass of gimple_opt_pass along with...
8291 (pass_data_update_address_taken): ...new pass_data instance and...
8292 (make_pass_update_address_taken): ...new function.
8293 * tree-ssanames.c (pass_release_ssa_names): Convert from a global
8294 struct to a subclass of gimple_opt_pass along with...
8295 (pass_data_release_ssa_names): ...new pass_data instance and...
8296 (make_pass_release_ssa_names): ...new function.
8297 * tree-stdarg.c (pass_stdarg): Convert from a global struct to a
8298 subclass of gimple_opt_pass along with...
8299 (pass_data_stdarg): ...new pass_data instance and...
8300 (make_pass_stdarg): ...new function.
8301 * tree-switch-conversion.c (pass_convert_switch): Convert from a
8302 global struct to a subclass of gimple_opt_pass along with...
8303 (pass_data_convert_switch): ...new pass_data instance and...
8304 (make_pass_convert_switch): ...new function.
8305 * tree-tailcall.c (pass_tail_recursion): Convert from a global struct
8306 to a subclass of gimple_opt_pass along with...
8307 (pass_data_tail_recursion): ...new pass_data instance and...
8308 (make_pass_tail_recursion): ...new function.
8309 (pass_tail_calls): Convert from a global struct to a subclass of
8310 gimple_opt_pass along with...
8311 (pass_data_tail_calls): ...new pass_data instance and...
8312 (make_pass_tail_calls): ...new function.
8313 * tree-vect-generic.c (pass_lower_vector): Convert from a global
8314 struct to a subclass of gimple_opt_pass along with...
8315 (pass_data_lower_vector): ...new pass_data instance and...
8316 (make_pass_lower_vector): ...new function.
8317 (pass_lower_vector_ssa): Convert from a global struct to a subclass of
8318 gimple_opt_pass along with...
8319 (pass_data_lower_vector_ssa): ...new pass_data instance and...
8320 (make_pass_lower_vector_ssa): ...new function.
8321 * tree-vectorizer.c (pass_slp_vectorize): Convert from a global struct
8322 to a subclass of gimple_opt_pass along with...
8323 (pass_data_slp_vectorize): ...new pass_data instance and...
8324 (make_pass_slp_vectorize): ...new function.
8325 (pass_ipa_increase_alignment): Convert from a global struct to a
8326 subclass of simple_ipa_opt_pass along with...
8327 (pass_data_ipa_increase_alignment): ...new pass_data instance and...
8328 (make_pass_ipa_increase_alignment): ...new function.
8329 * tree-vrp.c (pass_vrp): Convert from a global struct to a subclass of
8330 gimple_opt_pass along with...
8331 (pass_data_vrp): ...new pass_data instance and...
8332 (make_pass_vrp): ...new function.
8333 * tree.c (pass_ipa_free_lang_data): Convert from a global struct to a
8334 subclass of simple_ipa_opt_pass along with...
8335 (pass_data_ipa_free_lang_data): ...new pass_data instance and...
8336 (make_pass_ipa_free_lang_data): ...new function.
8337 * tsan.c (pass_tsan): Convert from a global struct to a subclass of
8338 gimple_opt_pass along with...
8339 (pass_data_tsan): ...new pass_data instance and...
8340 (make_pass_tsan): ...new function.
8341 (pass_tsan_O0): Convert from a global struct to a subclass of
8342 gimple_opt_pass along with...
8343 (pass_data_tsan_O0): ...new pass_data instance and...
8344 (make_pass_tsan_O0): ...new function.
8345 * var-tracking.c (pass_variable_tracking): Convert from a global
8346 struct to a subclass of rtl_opt_pass along with...
8347 (pass_data_variable_tracking): ...new pass_data instance and...
8348 (make_pass_variable_tracking): ...new function.
8349 * web.c (pass_web): Convert from a global struct to a subclass of
8350 rtl_opt_pass along with...
8351 (pass_data_web): ...new pass_data instance and...
8352 (make_pass_web): ...new function.
8353 * config/epiphany/epiphany.h (pass_mode_switch_use): Replace
8354 declaration with that of...
8355 (make_pass_mode_switch_use): ...new function.
8356 (pass_resolve_sw_modes): Replace declaration with that of...
8357 (make_pass_resolve_sw_modes): ...new function.
8358 * config/epiphany/mode-switch-use.c (pass_mode_switch_use): Convert
8359 from a global struct to a subclass of rtl_opt_pass along with...
8360 (pass_data_mode_switch_use): ...new pass_data instance and...
8361 (make_pass_mode_switch_use): ...new function.
8362 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes): Convert
8363 from a global struct to a subclass of rtl_opt_pass along with...
8364 (pass_data_resolve_sw_modes): ...new pass_data instance and...
8365 (make_pass_resolve_sw_modes): ...new function.
8366 * config/i386/i386.c (pass_insert_vzeroupper): Convert from a global
8367 struct to a subclass of rtl_opt_pass along with...
8368 (pass_data_insert_vzeroupper): ...new pass_data instance and...
8369 (make_pass_insert_vzeroupper): ...new function.
8370 * config/sparc/sparc.c (pass_work_around_errata): Convert from a
8371 global struct to a subclass of rtl_opt_pass along with...
8372 (pass_data_work_around_errata): ...new pass_data instance and...
8373 (make_pass_work_around_errata): ...new function.
8374 * config/mips/mips.c (pass_mips_machine_reorg2): Convert from a global
8375 struct to a subclass of rtl_opt_pass along with...
8376 (pass_data_mips_machine_reorg2): ...new pass_data instance and...
8377 (make_pass_mips_machine_reorg2): ...new function.
8378
6a389ed5
DM
83792013-08-05 David Malcolm <dmalcolm@redhat.com>
8380
8381 * passes.c (pass_manager::operator new): New.
8382
f7695dbf
DM
83832013-08-05 David Malcolm <dmalcolm@redhat.com>
8384
8385 Handwritten part of conversion of passes to C++ classes.
8386
8387 * Makefile.in (PASS_MANAGER_H): Add dep on pass-instances.def.
8388 (toplev.o): Add dep on PASS_MANAGER_H.
8389 * cgraphunit.c (cgraph_process_new_functions): Rework invocation
8390 of early local pases to reflect this moving from a global to a
8391 member of gcc::pass_manager.
8392 (cgraph_add_new_function): Likewise.
8393 * lto-cgraph.c (lto_output_node): Update for conversion of
8394 struct ipa_opt_pass_d to a C++ subclass of opt_pass.
8395 * passes.c (opt_pass::clone): New.
8396 (opt_pass::gate): New.
8397 (opt_pass::execute): New.
8398 (opt_pass::opt_pass): New.
8399 (pass_manager::execute_early_local_passes): New.
8400 (pass_manager::execute_pass_mode_switching): new.
8401 (finish_optimization_passes): Convert to...
8402 (pass_manager::finish_optimization_passes): ...this.
8403 (finish_optimization_passes): Update for conversion of passes to
8404 C++ classes.
8405 (register_dump_files_1): Use has_gate since we cannot portably
8406 check a vtable entry against NULL.
8407 (dump_one_pass): Likewise.
8408 (ipa_write_summaries_2): Likewise.
8409 (ipa_write_optimization_summaries_1): Likewise.
8410 (ipa_read_summaries_1): Likewise.
8411 (ipa_read_optimization_summaries_1): Likewise.
8412 (execute_ipa_stmt_fixups): Likewise.
8413 (pass_manager::pass_manager): Rewrite pass-creation, invoking
8414 pass-creation functions rather than wiring up globals, and
8415 storing the results in fields of pass_manager generated using
8416 pass-instances.def.
8417 (pass_manager::dump_profile_report): Update for conversion of
8418 passes to C++ classes.
8419 (pass_manager::execute_ipa_summary_passes): Likewise.
8420 (execute_one_ipa_transform_pass): Likewise.
8421 (execute_one_pass): Use has_gate and has_execute since we cannot
8422 portably check a vtable entry against NULL.
8423 * pass_manager.h (pass_manager::finish_optimization_passes): New.
8424 (pass_manager): Use pass-instances.def to add fields for the
8425 various pass instances.
8426 * toplev.c (finalize): Update for move of
8427 finish_optimization_passes to a method of gcc::pass_manager.
8428 * toplev.h (finish_optimization_passes): Move to method of class
8429 pass_manager.
8430 * tree-pass.h (struct pass_data): New.
03b0ee0a 8431 (opt_pass): Convert to C++ class, make it a subclass of pass_data.
f7695dbf
DM
8432 (opt_pass::gate): Convert to virtual function.
8433 (opt_pass::~opt_pass): New.
8434 (opt_pass::clone): New.
8435 (opt_pass::execute): Convert to virtual function.
8436 (opt_pass::opt_pass): New.
8437 (opt_pass::ctxt_): new.
8438 (gimple_opt_pass): Convert to subclass of opt_pass.
8439 (gimple_opt_pass::gimple_opt_pass): New.
8440 (rtl_opt_pass): Convert to subclass of opt_pass.
8441 (rtl_opt_pass::rtl_opt_pass): New.
8442 (ipa_opt_pass_d): Convert to subclass of opt_pass.
8443 (ipa_opt_pass_d::ipa_opt_pass_d): New.
8444 (simple_ipa_opt_pass): Convert to subclass of opt_pass.
8445 (simple_ipa_opt_pass::simple_ipa_opt_pass): New.
8446 * config/i386/i386.c (rest_of_handle_insert_vzeroupper): Rework
8447 invocation of pass_mode_switching to reflect this moving from a
8448 global to a member of gcc::pass_manager.
8449 (ix86_option_override): Rework how pass_insert_vzeroupper is
8450 added to the pass_manager to reflect autogenerated changes.
03b0ee0a 8451 * config/i386/t-i386 (i386.o) Add deps on CONTEXT_H and PASS_MANAGER_H.
f7695dbf 8452
d0b2f831
RE
84532013-08-05 Richard Earnshaw <rearnsha@arm.com>
8454
8455 PR rtl-optimization/57708
8456 * recog.c (peep2_find_free_register): Validate all regs in a
8457 multi-reg mode.
8458
51a5c0c2
JH
84592013-08-05 Jan Hubicka <jh@suse.cz>
8460
8461 PR lto/57602
03b0ee0a
UB
8462 * cgraph.c (verify_cgraph_node): Accept local flags from other
8463 partitions.
51a5c0c2
JH
8464 * ipa.c (symtab_remove_unreachable_nodes): Do not clear local flag.
8465 (function_and_variable_visibility): Likewise.
8466 * trans-mem.c (ipa_tm_create_version): TM versions are not local.
8467
65f0a120
GDR
84682013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
8469
8470 * graph.c (init_graph_slim_pretty_print): Remove.
8471 (print_graph_cfg): Do not call it. Use local pretty printer.
8472 (start_graph_dump): Likewise.
8473
b3f80694
GDR
84742013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
8475
8476 * gimple-pretty-print.c (buffer): Remove.
8477 (initialized): Likewise.
8478 (maybe_init_pretty_print): Likewise.
8479 (print_gimple_stmt): Do not call it. Use non-static local
8480 pretty_printer variable.
8481 (print_gimple_expr): Likewise.
8482 (print_gimple_seq): Likewise.
8483 (gimple_dump_bb): Likewise.
8484
11a877b3
GDR
84852013-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
8486
8487 * asan.c (asan_pp): Remove.
8488 (asan_pp_initialized): Likewise.
8489 (asan_pp_initialize): Likewise.
8490 (asan_pp_string): Take a pretty_printer parameter. Adjust callers.
8491 (asan_emit_stack_protection): Tidy. Use local pretty printer.
8492 (asan_add_global): Likewise.
8493
b066401f
GDR
84942013-08-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
8495
8496 * pretty-print.h (pp_base): Remove. Adjust dependent macros.
8497 * diagnostic.h (diagnostic_flush_buffer): Adjust.
8498 * pretty-print.c (pp_formatted_text_data): Likewise.
8499 (pp_indent): Rename from pp_base_indent.
8500 (pp_format): Rename from pp_base_format.
8501 (pp_output_formatted_text): Rename from pp_base_output_formatted_text.
8502 (pp_format_verbatim): Rename from pp_base_format_verbatim.
8503 (pp_flush): Rename from pp_base_flush.
8504 (pp_set_line_maximum_length): Rename from
8505 pp_base_set_line_maximum_length.
8506 (pp_clear_output_area): Rename from pp_base_clear_output_area.
8507 (pp_set_prefix): Rename from pp_base_set_prefix.
8508 (pp_destroy_prefix): Rename from pp_base_destroy_prefix.
8509 (pp_emit_prefix): Rename from pp_base_emit_prefix.
8510 (pp_append_text): Rename from pp_base_append_text.
8511 (pp_formatted_text): Rename from pp_base_formatted_text.
8512 (pp_last_position_in_text): Rename from pp_base_last_position_in_text.
8513 (pp_remaining_character_count_for_line): Rename from
8514 pp_base_remaining_character_count_for_line.
8515 (pp_newline): Rename from pp_base_newline.
8516 (pp_character): Rename from pp_base_character.
8517 (pp_string): Rename from pp_base_string.
8518 (pp_maybe_space): Rename from pp_base_maybe_space.
8519 * asan.c (asan_pp_string): Adjust.
8520 (asan_emit_stack_protection): Likewise.
8521 (asan_add_global): Likewise.
8522 * sched-vis.c (str_pattern_slim): Adjust pretty printer function call.
8523 * tree-mudflap.c (mf_varname_tree): Likewise.
8524 * tree-pretty-print.c (pp_tree_identifier): Rename from
8525 pp_base_tree_identifier.
8526 * tree-pretty-print.h (pp_tree_identifier): Remove macro definition.
8527 Declare as function.
8528
137a1a27
GDR
85292013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8530
8531 * pretty-print.h (pp_bar_bar): New.
8532 (pp_ampersand_ampersand): Likewise.
8533 (pp_less_equal): Likewise.
8534 (pp_greater_equal): Likewise.
8535 * gimple-pretty-print.c (dump_ternary_rhs): Use specialized pretty
8536 printer functions instead of pp_string or operators and punctuators.
8537 (dump_gimple_call): Likewise.
8538 (dump_gimple_omp_for): Likewise.
8539 (dump_gimple_transaction): Likewise.
8540 (dump_gimple_phi): Likewise.
8541 (pp_gimple_stmt_1): Likewise.
8542 * sched-vis.c (print_insn): Likewise.
8543 * tree-mudflap.c (mf_varname_tree): Likewise.
8544 * tree-pretty-print.c (dump_block_node): Likewise.
8545 (dump_generic_node): Likewise.
8546
815effe1
JH
85472013-08-02 Jan Hubicka <jh@suse.cz>
8548
8549 * lto-cgraph.c (compute_ltrans_boundary): Add abstract origins into
8550 boundaries.
8551 * lto-streamer-out.c (tree_is_indexable): Results decls and
8552 parm decls are not indexable.
8553 (DFS_write_tree_body): Do not follow args and results.
8554 (hash_tree): Likewise.
8555 (output_functions): Rearrange so struct function is needed
8556 only when real body is output; be able to also ouptut abstract
8557 functions; output DECL_ARGUMENTS and DECL_RESULT.
8558 (lto_output): When not in WPA, ale store abstract functions.
8559 (write_symbol): Do not care about RESULT_DECL.
8560 (output_symbol_p): Handle correctly sbtract decls.
8561 * lto-streamer-in.c (input_function): Rearrange so struct
8562 function can be NULL at entry; allow streaming of
8563 functions w/o body; store DECL_ARGUMENTS and DECL_RESULT.
8564 * ipa.c (symtab_remove_unreachable_nodes): Silence confused
8565 sanity check during LTO.
8566 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Skip
8567 RESULT_DECl and DECL_ARGUMENTS.
8568 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
8569 Likewise.
8570
07838b13
GDR
85712013-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
8572
8573 * pretty-print.h (pp_underscore): New.
8574 (pp_comma): Tidy.
8575 * gimple-pretty-print.c (dump_unary_rhs): Use specialized pretty
8576 printer functions instead of pp_character.
8577 (dump_binary_rhs): Likewise.
8578 (dump_ternary_rhs): Likewise.
8579 (dump_gimple_call_args): Likewise.
8580 (pp_points_to_solution): Likewise.
8581 (dump_gimple_call): Likewise.
8582 (dump_gimple_switch): Likewise.
8583 (dump_gimple_cond): Likewise.
8584 (dump_gimple_bind): Likewise.
8585 (dump_gimple_try): Likewise.
8586 (dump_gimple_omp_for): Likewise.
8587 (dump_gimple_omp_continue): Likewise.
8588 (dump_gimple_omp_single): Likewise.
8589 (dump_gimple_omp_sections): Likewise.
8590 (dump_gimple_omp_block): Likewise.
8591 (dump_gimple_omp_critical): Likewise.
8592 (dump_gimple_transaction): Likewise.
8593 (dump_gimple_asm): Likewise.
8594 (dump_gimple_phi): Likewise.
8595 (dump_gimple_omp_parallel): Likewise.
8596 (dump_gimple_omp_task): Likewise.
8597 (dump_gimple_omp_atomic_load): Likewise.
8598 (dump_gimple_omp_atomic_store): Likewise.
8599 (dump_gimple_mem_ops): Likewise.
8600 (pp_gimple_stmt_1): Likewise.
8601 (pp_cfg_jump): Likewise.
8602 (dump_implicit_edges): Likewise.
8603 (gimple_dump_bb_for_graph): Likewise.
8604 * graph.c (draw_cfg_node): Likewise.
8605 * langhooks.c (lhd_print_error_function): Likewise.
8606 * sched-vis.c (print_exp): Likewise.
8607 (print_value): Likewise.
8608 (print_pattern): Likewise.
8609 (print_insn): Likewise.
8610 (rtl_dump_bb_for_graph): Likewise.
8611 * tree-pretty-print.c (dump_function_declaration): Likewise.
8612 (dump_array_domain): Likewise.
8613 (dump_omp_clause): Likewise.
8614 (dump_location): Likewise.
8615 (dump_generic_node): Likewise.
8616 (print_struct_decl): Likewise.
8617 * diagnostic.c (diagnostic_show_locus): Use pp_space.
8618
bb0d2039
BS
86192013-08-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8620
8621 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Update
8622 candidate table when replacing a candidate statement.
8623 (replace_rhs_if_not_dup): Likewise.
8624 (replace_one_candidate): Likewise.
8625
bc0ec027 86262013-08-02 Jan Hubicka <jh@suse.cz>
cdaa808a 8627 Martin Liska <marxin.liska@gmail.com>
bc0ec027
JH
8628
8629 * cgraphunit.c (add_new_function): Fix logic when adding from
8630 late IPA pass.
8631 (assemble_thunk): Rename to ...
03b0ee0a
UB
8632 (expand_thunk); .. this one; export; get it working with
8633 general functions; make produced gimple valid.
bc0ec027
JH
8634 * cgraph.h (expand_thunk): Declare.
8635
0e8853ee
JH
86362013-08-02 Jan Hubicka <jh@suse.cz>
8637
03b0ee0a
UB
8638 * ipa-cp.c (gather_context_independent_values): Use
8639 ipa_get_param_move_cost.
8640 (get_replacement_map): Remove PARAM; move parameter folding
8641 into tree-inline.c
0e8853ee
JH
8642 (create_specialized_node): Update.
8643 * ipa-prop.c (ipa_populate_param_decls): Do not look for origins;
8644 assert that we have gimple body; update move_cost.
8645 (count_formal_params): Assert that we have gimple body.
8646 (ipa_dump_param): New function.
8647 (ipa_alloc_node_params): Break out from ...
8648 (ipa_initialize_node_params): ... here.
8649 (ipa_get_vector_of_formal_parms): ICE when used in WPA.
8650 (ipa_write_node_info): Stream move costs.
8651 (ipa_read_node_info): Read move costs.
8652 (ipa_update_after_lto_read): Do not recompute node params.
8653 * ipa-prop.h (ipa_param_descriptor): Add move_cost.
8654 (ipa_get_param): Check we are not in WPA.
8655 (ipa_get_param_move_cost): New.
8656 * tree-inline.c (tree_function_versioning): Fold replacement as needed.
8657 * ipa-inline-analysis.c (inline_node_duplication_hook): Expect only
8658 parm numbers to be present.
8659
ecee672b
VM
86602013-08-02 Vladimir Makarov <vmakarov@redhat.com>
8661
8662 PR rtl-optimization/58048
8663 * lra-constraints.c (process_alt_operands): Don't check asm
8664 operand on register.
8665
13ec0527
EB
86662013-08-02 Eric Botcazou <ebotcazou@adacore.com>
8667
8668 * config/sparc/sparc.c (sparc_emit_membar_for_model) <SMM_TSO>: Add
8669 the implied StoreLoad barrier for atomic operations if before.
8670
af15184a
JH
86712013-08-02 Jan Hubicka <jh@suse.cz>
8672 Martin Liska <marxin.liska@gmail.com>
8673
03b0ee0a
UB
8674 * cgraph.c (cgraph_function_body_availability): Do not check
8675 cgraph flags.
af15184a
JH
8676 * cgraph.h (symtab_for_node_and_aliases, symtab_nonoverwritable_alias,
8677 symtab_node_availability): Declare.
8678 * ipa.c (can_replace_by_local_alias): New.
8679 (function_and_variable_visibility): Use it.
03b0ee0a
UB
8680 * symtab.c (symtab_for_node_and_aliases,
8681 symtab_nonoverwritable_alias_1, symtab_nonoverwritable_alias): New.
af15184a 8682
01e54ef8
VM
86832013-08-02 Vladimir Makarov <vmakarov@redhat.com>
8684
8685 PR rtl-optimization/57963
03b0ee0a 8686 * lra-constraints.c (reverse_equiv_p, contains_reloaded_insn_p): New.
01e54ef8
VM
8687 (lra_constraints): Use them.
8688
e2fd7ca7
SN
86892013-08-02 Sofiane Naci <sofiane.naci@arm.com>
8690
03b0ee0a
UB
8691 * config/arm/types.md (define_attr "type"): Add "load_acq"
8692 and "store_rel".
e2fd7ca7
SN
8693 * config/arm/cortex-a53.md (cortex_a53_load1): Update for attribute
8694 changes.
8695 (cortex_a53_store1): Likewise.
8696
0dcc26c3
JH
86972013-08-01 Jan Hubicka <jh@suse.cz>
8698
03b0ee0a
UB
8699 * ipa.c (symtab_remove_unreachable_nodes): Nodes in other
8700 partitions are not needed.
0dcc26c3 8701
0bd72901
UB
87022013-08-01 Uros Bizjak <ubizjak@gmail.com>
8703
8704 * config/i386/i386.h (MAYBE_NON_Q_CLASS_P): New.
8705 * config/i386/i386.c (ix86_secondary_reload): Use INTEGER_CLASS_P and
8706 MAYBE_NON_Q_CLASS_P where appropriate.
8707
12123452
JH
87082013-08-01 Jan Hubicka <jh@suse.cz>
8709
8710 * cgraph.h (release_function_body): Declare.
8711 * tree.c (free_lang_data_in_decl): Free, parameters and return values
8712 of unused delcarations.
8713
ce852f9c
KT
87142013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8715
03b0ee0a
UB
8716 * config/arm/arm.md (minmax_arithsi_non_canon): Emit canonical
8717 RTL form when subtracting a constant.
ce852f9c 8718
c743b246
KT
87192013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8720
8721 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
8722 Generate canonical plus rtx with negated immediate instead of minus
8723 where appropriate.
8724 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
8725
c0c123ef
JH
87262013-08-01 Jan Hubicka <jh@suse.cz>
8727
8728 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
8729 (cgraph_release_function_body): Likewise.
8730 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
8731 * cgraph.h (cgrpah_node): Rename abstract_and_needed
8732 to used_as_abstract_origin.
8733 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
8734 symbols used as abstract origins.
8735 * cgraphunit.c (analyze_functions): Update.
0bd72901
UB
8736 * ipa.c (symtab_remove_unreachable_nodes): Recompute
8737 used_as_abstract_origin.
c0c123ef 8738 * tree-inline.c (tree_function_versioning): Update
0bd72901
UB
8739 used_as_abstract_origin; be ready for DECL_RESULT and
8740 DECL_ARGUMENTS to be NULL.
c0c123ef 8741
0bd72901
UB
8742 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes
8743 for abstract functions.
8744 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not
8745 real symbols.
c0c123ef 8746
1f029433
JH
87472013-08-01 Jan Hubicka <jh@suse.cz>
8748
8749 * profile.c (compute_value_histograms): Fix thinko.
8750
c451f4d6
SN
87512013-08-01 Sofiane Naci <sofiane.naci@arm.com>
8752
8753 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
8754 aarch-common-protos.h to extra_headers.
8755 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
8756 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
8757 * config/aarch64/t-aarch64 (aarch-common.o): Define.
8758
34b512f5
SN
87592013-08-01 Sofiane Naci <sofiane.naci@arm.com>
8760
8761 * config/aarch64/aarch64.md (define_attr "type"): Delete.
8762 Include "../arm/types.md". Define "type" attribute for all patterns.
8763 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
8764 attribute changes.
8765
d86e633a
MM
87662013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
8767
8768 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
8769 to support power8 load fusion.
8770 (fusion_gpr_mem_load): Likewise.
8771
8772 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
8773
8774 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
8775 declarations for power8 load fusion.
8776 (emit_fusion_gpr_load): Likewise.
8777
8778 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8779 tuning for power8, turn on fusion mode by default. Turn on sign
8780 extending fusion mode if normal fusion mode is on, and we are at
8781 -O2 or -O3.
8782 (fusion_gpr_load_p): New function, return true if we can fuse an
8783 addis instruction with a dependent load to a GPR.
8784 (emit_fusion_gpr_load): Emit the instructions for power8 load
8785 fusion to GPRs.
8786
0bd72901 8787 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion peepholes.
d86e633a
MM
8788 (VSX load fusion peepholes): New peepholes to fuse together an
8789 addi instruction with a VSX load instruction.
8790
8791 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
8792 peepholes to fuse an addis instruction with a load to a GPR base
8793 register. If we are supporting sign extending fusions, convert
8794 sign extending loads to zero extending loads and add an explicit
8795 sign extension.
8796
c3f35647
SN
87972013-07-31 Sofiane Naci <sofiane.naci@arm.com>
8798
8799 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
8800 aarch-common-protos.h to extra_headers.
8801 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
8802 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
8803 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
8804 (arm_no_early_alu_shift_dep): Likewise.
8805 (arm_no_early_alu_shift_value_dep): Likewise.
8806 (arm_no_early_mul_dep): Likewise.
8807 (arm_no_early_store_addr_dep): Likewise.
8808 (arm_mac_accumulator_is_mul_result): Likewise.
8809 (arm_mac_accumulator_is_result): Likewise.
c3f35647 8810 * config/arm/aarch-common.c: ... here. New file.
0bd72901
UB
8811 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from
8812 here to ...
c3f35647 8813 (arm_early_store_addr_dep): Likewise.
0bd72901
UB
8814 (arm_no_early_alu_shift_dep): Likewise.
8815 (arm_no_early_alu_shift_value_dep): Likewise.
8816 (arm_no_early_mul_dep): Likewise.
8817 (arm_no_early_store_addr_dep): Likewise.
8818 (arm_mac_accumulator_is_mul_result): Likewise.
8819 (arm_mac_accumulator_is_result): Likewise.
c3f35647
SN
8820 * config/arm/aarch-common-protos.h: ... here. New file.
8821 * config/arm/t-arm (aarch-common.o): Define.
8822
88232013-07-31 Sofiane Naci <sofiane.naci@arm.com>
8824
8825 * config/arm/arm.md: Include new file "types.md".
8826 (define_attr "type"): Move from here to ...
8827 (define_attr "mul32"): Likewise.
8828 (define_attr "mul64"): Likewise.
8829 * config/arm/types.md: ... here. New file.
8830
228c1313
SH
88312013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
8832
8833 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
8834 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
8835
d6e9046d 88362013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8ac499bb
JBG
8837
8838 * gen-pass-instances.awk: Fix offset of substr().
8839
a167b052
DM
88402013-07-31 David Malcolm <dmalcolm@redhat.com>
8841
8842 * Makefile.in (pass-instances.def): New.
8843 (passes.o): Replace dependency on passes.def with one on
8844 pass-instances.def
8845
8846 * gen-pass-instances.awk: New.
8847
8848 * passes.c (pass_manager::pass_manager): Use pass-instances.def
8849 rather than passes.def, updating local definition of NEXT_PASS
8850 macro to add an extra NUM parameter (currently unused).
8851
315f8c0e
DM
88522013-07-30 David Malcolm <dmalcolm@redhat.com>
8853
8854 * Makefile.in (PASS_MANAGER_H): New.
8855 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
8856 (passes.o): Likewise.
8857 (statistics.o): Likewise.
8858 (cgraphunit.o): Likewise.
8859 (context.o): Depend on PASS_MANAGER_H.
8860
8861 * pass_manager.h: New.
8862
8863 * cgraphunit.c (cgraph_add_new_function): Update for moves
8864 of globals to fields of pass_manager.
8865 (analyze_function): Likewise.
8866 (expand_function): Likewise.
8867 (ipa_passes): Likewise.
8868 (compile): Likewise.
8869
8870 * context.c (context::context): New.
8871 * context.h (context::context): New.
8872 (context::get_passes): New.
8873 (context::passes_): New.
8874
8875 * lto-cgraph.c (input_node): Update for moves of globals to
8876 fields of pass_manager.
8877
8878 * passes.c (all_passes): Remove, in favor of a field of the
8879 same name within the new class pass_manager.
8880 (all_small_ipa_passes): Likewise.
8881 (all_lowering_passes): Likewise.
8882 (all_regular_ipa_passes): Likewise.
8883 (all_late_ipa_passes): Likewise.
8884 (all_lto_gen_passes): Likewise.
8885 (passes_by_id): Likewise.
8886 (passes_by_id_size): Likewise.
8887 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
8888 the new class pass_manager.
8889 (set_pass_for_id): Convert to...
8890 (pass_manager::set_pass_for_id): ...method.
8891 (get_pass_for_id): Convert to...
8892 (pass_manager::get_pass_for_id): ...method.
8893 (register_one_dump_file): Move body of implementation into...
8894 (pass_manager::register_one_dump_file): ...here.
8895 (register_dump_files_1): Convert to...
8896 (pass_manager::register_dump_files_1): ...method.
8897 (register_dump_files): Convert to...
8898 (pass_manager::register_dump_files): ...method.
8899 (create_pass_tab): Update for moves of globals to fields of
8900 pass_manager.
8901 (dump_passes): Move body of implementation into...
8902 (pass_manager::dump_passes): ...here.
8903 (register_pass): Move body of implementation into...
8904 (pass_manager::register_pass): ...here.
8905 (init_optimization_passes): Convert into...
8906 (pass_manager::pass_manager): ...constructor for new
8907 pass_manager class, and initialize the pass_lists array.
8908 (check_profile_consistency): Update for moves of globals to
8909 fields of pass_manager.
8910 (dump_profile_report): Move body of implementation into...
8911 (pass_manager::dump_profile_report): ...here.
8912 (ipa_write_summaries_1): Update for moves of pass lists from
8913 being globals to fields of pass_manager.
8914 (ipa_write_optimization_summaries): Likewise.
8915 (ipa_read_summaries): Likewise.
8916 (ipa_read_optimization_summaries): Likewise.
8917 (execute_all_ipa_stmt_fixups): Likewise.
8918
8919 * statistics.c (statistics_fini): Update for moves of globals to
8920 fields of pass_manager.
8921
8922 * toplev.c (general_init): Replace call to
8923 init_optimization_passes with construction of the pass_manager
8924 instance.
8925
8926 * tree-pass.h (all_passes): Remove, in favor of a field of the
8927 same name within the new class pass_manager.
8928 (all_small_ipa_passes): Likewise.
8929 (all_lowering_passes): Likewise.
8930 (all_regular_ipa_passes): Likewise.
8931 (all_lto_gen_passes): Likewise.
8932 (all_late_ipa_passes): Likewise.
8933 (passes_by_id): Likewise.
8934 (passes_by_id_size): Likewise.
8935 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
8936 the new class pass_manager.
8937 (get_pass_for_id): Remove.
8938
02cab1c1
RE
89392013-07-30 Richard Earnshaw <rearnsha@arm.com>
8940
8941 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
8942 configs.
8943
b2d3f886
RE
89442013-07-30 Richard Earnshaw <rearnsha@arm.com>
8945
8946 * arm.md (mulhi3): New expand pattern.
8947
605e86fa
JH
89482013-07-30 Jan Hubicka <jh@suse.cz>
8949 Martin Liska <marxin.liska@gmail.com>
8950
8951 * profile.c (compute_value_histograms): Do not ICE when
8952 there is mismatch only on some counters.
8953
14a87636
ZC
89542013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
8955
8956 PR rtl-optimization/57637
8957 * function.c (move_insn_for_shrink_wrap): Also check the
8958 GEN set of the LIVE problem for the liveness analysis
8959 if it exists, otherwise give up.
8960
0100cd3f
BS
89612013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8962
8963 PR tree-optimization/57993
8964 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
8965 replaced statement in the candidate table.
8966 (phi_add_costs): Return infinite cost when the hidden basis does
8967 not dominate all phis on which the candidate is dependent.
8968 (replace_one_candidate): Record replaced statement in the
8969 candidate table.
8970
f0d811f7
JR
89712013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
8972
8973 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
8974 (ashlv2si3): New expander.
8975 (*ashlv2si3_i): New define_insn_and_split.
8976 * predicates.md (float_operation): Allow patterns with three
8977 basic sub-patterns.
8978
bba33211
JR
8979 PR rtl-optimization/58021
8980 * mode-switching.c (create_pre_exit): Always split off preceding
8981 insns if we are not at the basic block head.
8982
ff3f3951
MR
89832013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
8984
8985 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
8986 (UCLIBC_DYNAMIC_LINKER): New macro.
8987 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
8988 `-mnan=2008'.
8989 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
8990 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
8991 `-mnan=2008'.
8992 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
8993 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
8994 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
8995 for SF and DF modes. Use ieee_quad_format for TF mode.
8996 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
8997 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
8998 (mips_option_override): Handle `-mnan=legacy'.
8999 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
9000 `-mabs=2008' and `-mnan=2008'.
9001 (OPTION_DEFAULT_SPECS): Add "nan" default.
9002 (ASM_SPEC): Handle `-mnan='.
9003 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
9004 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
9005 comment accordingly.
9006 (neg<mode>2): Likewise.
9007 * config/mips/mips.opt (mabs, mnan): New options.
9008 * doc/install.texi (Configuration): Document `--with-nan=' option.
9009 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
9010 `-mnan=' options.
9011 (MIPS Options): Document them.
9012 * config.gcc <mips*-*-*>: Handle `--with-nan='.
9013 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
9014 * configure: Regenerate.
9015 * config.in: Regenerate.
9016
576e2f37
UB
90172013-07-29 Uros Bizjak <ubizjak@gmail.com>
9018
9019 * config/i386/i386.md (float post-reload splitters): Do not check
9020 for subregs of SSE registers.
9021
90222013-07-29 Uros Bizjak <ubizjak@gmail.com>
9023 H.J. Lu <hongjiu.lu@intel.com>
9024
9025 PR target/57954
9026 PR target/57988
9027 * config/i386/i386.md (post-reload splitter
9028 to avoid partial SSE reg dependency stalls): New pattern.
9029
a71f0749
DV
90302013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
9031
9032 * config/s390/s390.md ("movcc"): Swap load and store instructions.
9033
4c97f1cc
JR
90342013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
9035
9036 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
9037 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
9038
b0c733d8
CC
90392013-07-26 Cary Coutant <ccoutant@google.com>
9040
9041 * dwarf2out.c (die_checksum_ordered): Don't include template
9042 instantiations in signature.
9043 (is_template_parameter): New function.
9044 (is_template_instantiation): New function.
9045 (generate_skeleton_bottom_up): Don't include template instantiations
9046 in type unit DIE.
9047 (generate_skeleton): Likewise.
9048 (break_out_comdat_types): Move recursive call to break out nested
9049 types earlier.
9050 (prune_unused_types_mark_generic_parms_dies): Call
9051 is_template_parameter.
9052
040d8a1c
IB
90532013-07-26 Ian Bolton <ian.bolton@arm.com>
9054
9055 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
9056 uses vector registers.
89fdc743 9057 * config/aarch64/iterators.md: Add attributes rtn and vas.
040d8a1c 9058
85bd4ac6 90592013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576e2f37 9060 Richard Earnshaw <richard.earnshaw@arm.com>
85bd4ac6
KT
9061
9062 * combine.c (simplify_comparison): Re-canonicalize operands
576e2f37 9063 where appropriate.
85bd4ac6
KT
9064 * config/arm/arm.md (movcond_addsi): New splitter.
9065
b6051207
SA
90662013-07-25 Sterling Augustine <saugustine@google.com>
9067
9068 * dwarf2out.c (size_of_pubnames): Move code to...
9069 (include_pubname_in_output): ...here. New.
9070 (want_pubnames): Rearrange.
9071 (output_pubnames): Call include_pubname_in_output. Move assertion.
9072
41a7c215
CM
90732013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
9074
9075 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
9076
90772013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
9078
9079 PR target/38836
9080 * doc/extend.texi: Remove obsolete builtins. Fix
9081 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
9082
49bde175
JH
90832013-07-25 Jan Hubicka <jh@suse.cz>
9084
9085 * cgraph.c (release_function_body): Break out from ...
9086 (cgraph_release_function_body): ... this one; also release DECL_RESULT
9087 and DECL_ARGUMENTS.
9088 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
9089 old_tree in the map.
9090 (create_specialized_node): Update.
9091 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
9092 into index.
41a7c215
CM
9093 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
9094 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
49bde175
JH
9095 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
9096 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
9097 DECL_RESULT.
9098
4870352d
KT
90992013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9100
9101 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
9102 addsi3_carryin_alt2_<optab>): Correct output template.
9103
1d6aee1c
KT
91042013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9105
9106 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
9107 Adjust for arm_restrict_it.
9108 Remove trailing whitespace.
9109
c7cafd75
MK
91102013-07-25  Mark Kettenis  <kettenis@openbsd.org>
9111
017d38f5
MK
9112 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
9113 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
9114
c7cafd75
MK
9115 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
9116
00b7527b
VM
91172013-07-25 Vladimir Makarov <vmakarov@redhat.com>
9118
9119 PR rtl-optimization/57960
9120 * lra-constraints.c (process_alt_operands): Use the right mode
9121 when checking strict_low.
9122
4f63dfc6
JH
91232013-07-25 Jan Hubicka <jh@suse.cz>
9124
9125 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
9126 * cgraph.c (cgraph_remove_node): Do not release function body
9127 when in cgraph streaming.
9128 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
41a7c215
CM
9129 in other partitions are not considered reachable; fix handling of
9130 clones.
4f63dfc6 9131
e6dcfa18
RR
91322013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9133
9134 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
9135
0b93d3b6
RR
91362013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9137
9138 PR target/19599
9139 PR target/57731
bb80c2eb 9140 PR target/57837
e6dcfa18 9141 * config/arm/arm.md ("*sibcall_insn): Replace use of
0b93d3b6 9142 Ss with US. Adjust output for v5 and v4t.
41a7c215 9143 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
e6dcfa18 9144
0b93d3b6
RR
9145 * config/arm/constraints.md ("Ss"): Rename to US.
9146
690688b3
TG
91472013-07-25 Terry Guo <terry.guo@arm.com>
9148
9149 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
9150 shift_add/shift_sub0/shift_sub1 RTXs.
9151
a4ad093b 91522013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
12211b99 9153 Anton Blanchard <anton@au1.ibm.com>
a4ad093b
BS
9154
9155 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
9156 (altivec_vpks<VI_char>ss): Likewise.
9157 (altivec_vpks<VI_char>us): Likewise.
9158 (altivec_vpku<VI_char>us): Likewise.
9159 (altivec_vpku<VI_char>um): Likewise.
9160
8c5005ce
DM
91612013-07-24 David Malcolm <dmalcolm@redhat.com>
9162
9163 Introduce context class.
9164
9165 * Makefile.in (CONTEXT_H): New.
9166 (OBJS): Add context.o.
9167 (toplev.o): Add CONTEXT_H to dependencies.
9168 (context.o): New.
9169
41a7c215 9170 * toplev.c (general_init): Create the singleton gcc::context instance.
8c5005ce
DM
9171
9172 * context.c: New.
9173
9174 * context.h: New.
9175
ce4a9422
JR
91762013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
9177
9178 PR rtl-optimization/57968
9179 * mode-switching.c (create_pre_exit): Allow instructions that
9180 don't set a return register to need a non-exit mode.
9181
493f4c9e 91822013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 9183 Anton Blanchard <anton@au1.ibm.com>
493f4c9e 9184
b5860fd3
WS
9185 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
9186 operands to vperm for little endian.
9187 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
9188 of lvsl to create the control mask for a vperm for little endian.
493f4c9e 9189
73792b92 91902013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 9191 Anton Blanchard <anton@au1.ibm.com>
73792b92
BS
9192
9193 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
9194 two operands for little-endian.
9195
14c21302
SE
91962013-07-23 Steve Ellcey <sellcey@mips.com>
9197
9198 * config/mips/mips.c (mips_case_values_threshold): New.
9199 (TARGET_CASE_VALUES_THRESHOLD): Define.
9200
a6056198 92012013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 9202 Anton Blanchard <anton@au1.ibm.com>
a6056198
BS
9203
9204 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
9205 selection of field for vector splat in little endian mode.
9206
dd7a40e1
MM
92072013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9208
9209 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
9210 expanders to rs6000.md.
9211 (ior<mode>3): Likewise.
9212 (and<mode>3): Likewise.
9213 (one_cmpl<mode>2): Likewise.
9214 (nor<mode>3): Likewise.
9215 (andc<mode>3): Likewise.
9216 (eqv<mode>3): Likewise.
9217 (nand<mode>3): Likewise.
9218 (orc<mode>3): Likewise.
9219
9220 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
9221 declaration.
9222
9223 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
9224 to split multi-word logical operations.
9225 (rs6000_split_logical_di): Likewise.
9226 (rs6000_split_logical): Likewise.
9227
9228 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
9229 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
9230 and allow TImode operations in 32-bit.
9231 (vsx_and<mode>3_64bit): Likewise.
9232 (vsx_ior<mode>3_32bit): Likewise.
9233 (vsx_ior<mode>3_64bit): Likewise.
9234 (vsx_xor<mode>3_32bit): Likewise.
9235 (vsx_xor<mode>3_64bit): Likewise.
9236 (vsx_one_cmpl<mode>2_32bit): Likewise.
9237 (vsx_one_cmpl<mode>2_64bit): Likewise.
9238 (vsx_nor<mode>3_32bit): Likewise.
9239 (vsx_nor<mode>3_64bit): Likewise.
9240 (vsx_andc<mode>3_32bit): Likewise.
9241 (vsx_andc<mode>3_64bit): Likewise.
9242 (vsx_eqv<mode>3_32bit): Likewise.
9243 (vsx_eqv<mode>3_64bit): Likewise.
9244 (vsx_nand<mode>3_32bit): Likewise.
9245 (vsx_nand<mode>3_64bit): Likewise.
9246 (vsx_orc<mode>3_32bit): Likewise.
9247 (vsx_orc<mode>3_64bit): Likewise.
9248
9249 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
9250 logical types in GPRs.
9251
9252 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
9253 logical insns to rs6000.md, and allow TImode operations in
9254 32-bit.
9255 (altivec_ior<mode>3): Likewise.
9256 (altivec_xor<mode>3): Likewise.
9257 (altivec_one_cmpl<mode>2): Likewise.
9258 (altivec_nor<mode>3): Likewise.
9259 (altivec_andc<mode>3): Likewise.
9260
9261 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
9262 attributes for moving the 128-bit logical operations into
9263 rs6000.md.
9264 (BOOL_REGS_OUTPUT): Likewise.
9265 (BOOL_REGS_OP1): Likewise.
9266 (BOOL_REGS_OP2): Likewise.
9267 (BOOL_REGS_UNARY): Likewise.
9268 (BOOL_REGS_AND_CR0): Likewise.
9269 (one_cmpl<mode>2): Add support for DI logical operations on
9270 32-bit, splitting the operations to 32-bit.
9271 (anddi3): Likewise.
9272 (iordi3): Likewise.
9273 (xordi3): Likewise.
9274 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
9275 changes to combine the 32/64-bit code, allow logical operations on
9276 TI mode in 32-bit, and to use similar match_operator patterns like
9277 scalar mode uses. Combine the Altivec and VSX code for logical
9278 operations, and move it here.
9279 (ior<mode>3, 128-bit types): Likewise.
9280 (xor<mode>3, 128-bit types): Likewise.
9281 (one_cmpl<mode>3, 128-bit types): Likewise.
9282 (nor<mode>3, 128-bit types): Likewise.
9283 (andc<mode>3, 128-bit types): Likewise.
9284 (eqv<mode>3, 128-bit types): Likewise.
9285 (nand<mode>3, 128-bit types): Likewise.
9286 (orc<mode>3, 128-bit types): Likewise.
9287 (and<mode>3_internal): Likewise.
9288 (bool<mode>3_internal): Likewise.
9289 (boolc<mode>3_internal1): Likewise.
9290 (boolc<mode>3_internal2): Likewise.
9291 (boolcc<mode>3_internal1): Likewise.
9292 (boolcc<mode>3_internal2): Likewise.
9293 (eqv<mode>3_internal1): Likewise.
9294 (eqv<mode>3_internal2): Likewise.
9295 (one_cmpl1<mode>3_internal): Likewise.
9296
12211b99 92972013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
9b69d4b4
DH
9298
9299 * config/microblaze/microblaze.c (microblaze_expand_prologue):
9300 Rename flag_stack_usage to flag_stack_usage_info.
9301
12211b99 93022013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
450b0ebb 9303
a5f257fd
ME
9304 * config/microblaze/sync.md: New file.
9305 * config/microblaze/microblaze.md: Include sync.md
9306 * config/microblaze/microblaze.c: Add print_operand 'y'.
9307 * config/microblaze/constraints.md: Add memory_contraint
9308 'Q' which is a single register.
450b0ebb 9309
49fba14f
EB
93102013-07-23 Eric Botcazou <ebotcazou@adacore.com>
9311
9312 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
9313
c7b3b99f
PCC
93142013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
9315
9316 * reload.c (find_reloads): Exit loop once we find this operand
9317 cannot be reloaded somehow for this alternative.
9318
9319 * reload.c (find_reloads): Exit loop once we find a hard register.
9320
9321 * rtlanal.c (computed_jump_p): Exit loop once we find label
9322 reference is used.
9323
9324 * i386.c (ix86_pad_returns): Exit loop after setting replace.
9325
9326 * cfgloopmanip.c (remove_path): Exit loop after setting
9327 irred_invalidated.
9328
9329 * gensupport.c (subst_dup): Avoid loop if code is not
9330 MATCH_DUP nor MATCH_OP_DUP.
9331
c8fbf1fa
NBJ
93322013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
9333
9334 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
9335
9259db42
YZ
93362013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
9337
9338 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
9339 true for SP_REGNUM if mode == ptr_mode.
9340 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
9341 with value R0_REGNUM + 31.
9342
00edcfbe
YZ
93432013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
9344
9345 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
9346 pad pointer-typed argument downward.
9347
43be9a95
YZ
93482013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
9349
9350 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
9351 and __ILP32__ when the ILP32 model is in use.
9352
28514dda
YZ
93532013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
9354
9355 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
9356 (aarch64_load_symref_appropriately): In the case of
9357 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
9358 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
9359 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
9360 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
9361 if 'mode' doesn't equal to 'ptr_mode'.
9362 (aarch64_output_mi_thunk): Add an assertion on the alignment of
9363 'vcall_offset'; change to call aarch64_emit_move differently depending
9364 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
9365 to calculate the upper bound of 'vcall_offset'.
9366 (aarch64_cannot_force_const_mem): Change to also return true if
9367 mode != ptr_mode.
9368 (aarch64_legitimize_reload_address): In the case of large
9369 displacements, add new local variable 'xmode' and an assertion
9370 based on it; change to use 'xmode' to generate the new rtx and
9371 reload.
9372 (aarch64_asm_trampoline_template): Change to generate the template
9373 differently depending on TARGET_ILP32 or not; change to use
9374 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
9375 (aarch64_trampoline_size): Removed.
9376 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
9377 and replace immediate literals with it. Change to use 'ptr_mode'
9378 instead of 'DImode' and call convert_memory_address if the mode
9379 of 'fnaddr' doesn't equal to 'ptr_mode'.
9380 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
9381 to output symbol.
9382 (aarch64_elf_asm_destructor): Likewise.
9383 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
9384 on TARGET_ILP32 instead of aarch64_trampoline_size.
9385 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
9386 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
9387 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
9388 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
9389 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
9390 (storewb_pair<GPI:mode>_<P:mode>): ... this.
9391 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
9392 depending on the value of 'mode'.
9393 (add_losym_<mode>): New.
9394 (ldr_got_small_<mode>): New, based on ldr_got_small.
9395 (ldr_got_small): Remove.
9396 (ldr_got_small_sidi): New.
9397 * config/aarch64/iterators.md (P): New.
9398 (PTR): Change to 'ptr_mode' in the condition.
9399
17a819cb
YZ
94002013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
9401
9402 * config.gcc (aarch64*-*-*): Support --with-abi.
9403 (aarch64*-*-elf): Support --with-multilib-list.
9404 (aarch64*-*-linux*): Likewise.
9405 (supported_defaults): Add abi to aarch64*-*-*.
9406 * configure.ac: Mention AArch64 for --with-multilib-list.
9407 * configure: Re-generated.
9408 * config/aarch64/biarchilp32.h: New file.
9409 * config/aarch64/biarchlp64.h: New file.
9410 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
9411 (ABI_SPEC): Ditto.
9412 (MULTILIB_DEFAULTS): Ditto.
9413 (DRIVER_SELF_SPECS): Ditto.
9414 (ASM_SPEC): Update to also substitute -mabi.
9415 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
9416 file whose name depends on -mabi= and -mbig-endian.
9417 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
9418 TARGET_ILP32.
9419 (POINTER_SIZE): New define.
9420 (POINTERS_EXTEND_UNSIGNED): Ditto.
9421 (enum aarch64_abi_type): New enumeration tag.
9422 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
9423 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
9424 (TARGET_ILP32): New define.
9425 * config/aarch64/aarch64.opt (mabi): New.
9426 (aarch64_abi): New.
9427 (ilp32, lp64): New values for -mabi.
9428 * config/aarch64/t-aarch64 (comma): New define.
9429 (MULTILIB_OPTIONS): Ditto.
9430 (MULTILIB_DIRNAMES): Ditto.
9431 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
9432 * doc/invoke.texi: Document -mabi for AArch64.
9433
9f9cbdce
GJL
94342013-07-23 Georg-Johann Lay <avr@gjlay.de>
9435
9436 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
9437
7061977b 94382013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
12211b99 9439 Anton Blanchard <anton@au1.ibm.com>
7061977b
BS
9440
9441 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
9442 endianness when selecting field to splat.
9443
75a41878
EC
94442013-07-22 Eric Christopher <echristo@gmail.com>
9445
9446 * dwarf2out.c (die_odr_checksum): New function to use
9447 CHECKSUM_ macros and ULEB128 for DIE tag.
9448 (generate_type_signature): Use.
41a7c215 9449
38ae58ca
EB
94502013-07-22 Eric Botcazou <ebotcazou@adacore.com>
9451
9452 * config.gcc (sparc*-*-*): Accept leon3 processor.
9453 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
9454 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
9455 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
9456 * config/sparc/sparc.opt (enum processor_type): Add leon3.
9457 (mfix-ut699): Adjust comment.
9458 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
9459 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
9460 (CPP_CPU_SPEC): Likewise.
9461 (ASM_CPU_SPEC): Likewise.
9462 * config/sparc/sparc.c (leon3_cost): New constant.
9463 (sparc_option_override): Add leon3 support.
9464 (mem_ref): New function.
9465 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
9466 (sparc_do_work_around_errata): Look into the instruction in the delay
9467 slot and adjust accordingly. Add fix for the data cache nullify issues
9468 of the UT699. Change insertion position for the NOP.
9469 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
9470 (leon3_load): New reservation.
9471 (leon_store): Bump latency to 2.
9472 (grfpu): New automaton.
9473 (grfpu_alu): New unit.
9474 (grfpu_ds): Likewise.
9475 (leon_fp_alu): Adjust.
9476 (leon_fp_mult): Delete.
9477 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
9478 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
9479 * config/sparc/sparc.md (cpu): Add leon3.
9480 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
9481 (swapsi): Likewise.
9482 (atomic_test_and_set): Likewise.
9483 (ldstub): Likewise.
9484
04dfc6df
JU
94852013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
9486
9487 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
9488 default for R5900 targets.
9489 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
9490 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
9491 * config/mips/mips.c (mips_option_override): Report an error for
9492 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
9493 for -march=r5900 -mhard-float.
9494
c7b3b99f 94952013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
ae382ebd
PCC
9496
9497 * df-problems.c (can_move_insns_across): Exit loop once we
9498 find a non-fixed, non-global register.
9499
9500 * ipa-pure-const.c (propagate_nothrow): Exit loop after
9501 setting can_throw.
9502
9503 * omega.c (omega_eliminate_red): Break after setting red_found.
9504 (omega_problem_has_red_equations): Similarly after setting found.
9505 (omega_query_variable): Similarly after setting coupled.
9506
9b6e6981
MP
95072013-07-22 Marek Polacek <polacek@redhat.com>
9508
9509 * gimplify.c: Don't include gimple.h twice.
9510
5e5f7673
KT
95112013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9512
9513 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
9514 instead of TARGET_THUMB1.
9515 (Pz): New constraint.
9516 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
9517 encodings.
9518 (compare_negsi_si): Likewise.
9519 (compare_addsi2_op0): Likewise.
9520 (compare_addsi2_op1): Likewise.
9521 (addsi3_carryin_<optab>): Likewise.
9522 (addsi3_carryin_alt2_<optab>): Likewise.
9523 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
9524 for arm_restrict_it.
9525 (subsi3_carryin): Likewise.
9526 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
9527 (minmax_arithsi): Disable for arm_restrict_it.
9528 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
9529 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
9530 (satsi_<SAT:code>_shift): Likewise.
9531 (arm_shiftsi3): Add alternative for 16-bit encoding.
9532 (arm32_movhf): Disable for arm_restrict_it.
9533 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
9534 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
9535
859abddd
SN
95362013-07-22 Sofiane Naci <sofiane.naci@arm.com>
9537
9538 * config/arm/arm.md (attribute "insn"): Delete.
9539 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
9540 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
9541 (not_shiftsi): Update for attribute change.
9542 (not_shiftsi_compare0): Likewise.
9543 (not_shiftsi_compare0_scratch): Likewise.
9544 (arm_one_cmplsi2): Likewise.
9545 (thumb1_one_cmplsi2): Likewise.
9546 (notsi_compare0): Likewise.
9547 (notsi_compare0_scratch): Likewise.
9548 (thumb1_movdi_insn): Likewise.
9549 (arm_movsi_insn): Likewise.
9550 (movhi_insn_arch4): Likewise.
9551 (movhi_bytes): Likewise.
9552 (arm_movqi_insn): Likewise.
9553 (thumb1_movqi_insn): Likewise.
9554 (arm32_movhf): Likewise.
9555 (thumb1_movhf): Likewise.
9556 (arm_movsf_soft_insn): Likewise.
9557 (thumb1_movsf_insn): Likewise.
9558 (thumb_movdf_insn): Likewise.
9559 (movsicc_insn): Likewise.
9560 (movsfcc_soft_insn): Likewise.
9561 (and_scc): Likewise.
9562 (cond_move): Likewise.
9563 (if_move_not): Likewise.
9564 (if_not_move): Likewise.
9565 (if_shift_move): Likewise.
9566 (if_move_shift): Likewise.
9567 (if_shift_shift): Likewise.
9568 (if_not_arith): Likewise.
9569 (if_arith_not): Likewise.
9570 (cond_move_not): Likewise.
9571 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
9572 (neon_mov<mode>): Likewise.
9573 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
9574 (thumb2_movsi_vfp): Likewise.
9575 (movsf_vfp): Likewise.
9576 (thumb2_movsf_vfp): Likewise.
371e77e3
UB
9577 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
9578 change.
859abddd
SN
9579 (cortexa7_older_only): Likewise.
9580 (cortexa7_younger): Likewise.
9581 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
9582 (1020alu_shift_op): Likewise.
9583 (1020alu_shift_reg_op): Likewise.
9584 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
9585 (alu_shift_op): Likewise.
9586 (alu_shift_reg_op): Likewise.
9587 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
9588 (11_alu_shift_op): Likewise.
9589 (11_alu_shift_reg_op): Likewise.
9590 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
9591 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
9592 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
9593 change.
859abddd
SN
9594 (cortex_a15_alu_shift): Likewise.
9595 (cortex_a15_alu_shift_reg): Likewise.
9596 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
9597 (cortex_a5_alu_shift): Likewise.
371e77e3
UB
9598 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
9599 change.
859abddd 9600 (cortex_a53_alu_shift): Likewise.
371e77e3
UB
9601 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
9602 change.
859abddd
SN
9603 (cortex_a7_alu_reg): Likewise.
9604 (cortex_a7_alu_shift): Likewise.
9605 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
9606 (cortex_a8_alu_shift): Likewise.
9607 (cortex_a8_alu_shift_reg): Likewise.
9608 (cortex_a8_mov): Likewise.
9609 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
9610 (cortex_a9_dp_shift): Likewise.
9611 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
9612 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
9613 (cortex_r4_mov): Likewise.
9614 (cortex_r4_alu_shift): Likewise.
9615 (cortex_r4_alu_shift_reg): Likewise.
9616 * config/arm/fa526.md (526_alu_op): Update for attribute change.
9617 (526_alu_shift_op): Likewise.
9618 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
9619 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
9620 (626te_alu_shift_op): Likewise.
9621 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
9622 (726te_alu_op): Likewise.
9623 (726te_alu_shift_op): Likewise.
9624 (726te_alu_shift_reg_op): Likewise.
9625 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
9626 (mp626_alu_shift_op): Likewise.
9627 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
9628 (pj4_alu_e1_conds): Likewise.
9629 (pj4_alu): Likewise.
9630 (pj4_alu_conds): Likewise.
9631 (pj4_shift): Likewise.
9632 (pj4_shift_conds): Likewise.
9633 (pj4_alu_shift): Likewise.
9634 (pj4_alu_shift_conds): Likewise.
9635
95b97fac
KT
96362013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9637
9638 * config/arm/predicates.md (shiftable_operator_strict_it):
9639 New predicate.
9640 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
9641 Disable cond_exec version for arm_restrict_it.
9642 (thumb2_smaxsi3): Convert to generate cond_exec.
9643 (thumb2_sminsi3): Likewise.
9644 (thumb32_umaxsi3): Likewise.
9645 (thumb2_uminsi3): Likewise.
9646 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
9647 (thumb2_neg_abssi2): Likewise.
9648 (thumb2_mov_scc): Add alternative for 16-bit encoding.
9649 (thumb2_movsicc_insn): Adjust alternatives.
9650 (thumb2_mov_negscc): Disable for arm_restrict_it.
9651 (thumb2_mov_negscc_strict_it): New pattern.
9652 (thumb2_mov_notscc_strict_it): New pattern.
9653 (thumb2_mov_notscc): Disable for arm_restrict_it.
9654 (thumb2_ior_scc): Likewise.
9655 (thumb2_ior_scc_strict_it): New pattern.
9656 (thumb2_cond_move): Adjust for arm_restrict_it.
9657 (thumb2_cond_arith): Disable for arm_restrict_it.
9658 (thumb2_cond_arith_strict_it): New pattern.
9659 (thumb2_cond_sub): Adjust for arm_restrict_it.
9660 (thumb2_movcond): Likewise.
9661 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
9662 (thumb2_zero_extendhisi2_v6): Likewise.
9663 (thumb2_zero_extendqisi2_v6): Likewise.
9664 (orsi_notsi_si): Likewise.
9665 (orsi_not_shiftsi_si): Likewise.
9666
d5a6ef82
GJL
96672013-07-22 Georg-Johann Lay <avr@gjlay.de>
9668
9669 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
9670 instruction sequence is 1 byte shorter.
9671
d9e71154
UB
96722013-07-22 Uros Bizjak <ubizjak@gmail.com>
9673
9674 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
9675 it is not needed after split.
9676
8c6381ec
IS
96772013-07-20 Iain Sandoe <iain@codesourcery.com>
9678
9679 PR target/51784
9680 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
9681 second label for nonlocal goto receivers. Don't output pic base labels
9682 unless we're producing PIC; mark that action unreachable().
9683 (ix86_save_reg): If the function contains a nonlocal label, save the
9684 PIC base reg.
9685 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
f43245d1 9686 * config/darwin.c (emitted_pic_label_num): New GTY.
8c6381ec
IS
9687 (update_pic_label_number_if_needed): New.
9688 (machopic_output_function_base_name): Adjust for nonlocal receiver
9689 case.
9690 (machopic_should_output_picbase_label): New.
9691 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
9692 (nonlocal_goto_receiver): New insn and split.
9693
d05d0709
JG
96942013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
9695
9696 * config/aarch64/aarch64-builtins.c
9697 (aarch64_fold_builtin): Fold abs in all modes.
9698 * config/aarch64/aarch64-simd-builtins.def
9699 (abs): Enable for all modes.
9700 * config/aarch64/arm_neon.h
9701 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
9702 (vabs_f64): Add missing intrinsic.
9703
ba590e63
IB
97042013-07-19 Ian Bolton <ian.bolton@arm.com>
9705
9706 * config/aarch64/arm_neon.h (vabs_s64): New function
9707
02371798
GJL
97082013-07-19 Georg-Johann Lay <avr@gjlay.de>
9709
9710 PR target/57516
9711 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
9712 * config/avr/avr.md (adjust_len): Add `round'.
9713 * config/avr/avr-protos.h (avr_out_round): New prototype.
9714 (avr_out_plus): Add `out_label' argument.
9715 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
9716 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
9717 Handle the case where `insn' is just a pattern.
9718 (avr_out_bitop): Handle the case where `insn' is just a pattern.
9719 (avr_out_round): New function.
9720 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
9721
12211b99 97222013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
b950ac25
DH
9723
9724 * config/microblaze/microblaze.c (microblaze_expand_prologue):
9725 Add check for flag_stack_usage to handle -fstack-usage support
9726
12211b99 97272013-07-18 Pat Haugen <pthaugen@us.ibm.com>
ed1fd999
PH
9728
9729 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
9730 interaction for new Power8 flags and VSX.
9731
df9dda2d
ST
97322013-07-18 Sriraman Tallam <tmsriram@google.com>
9733
9734 PR middle-end/57698
9735 * tree-inline.c (expand_call_inline): Emit errors during
9736 early_inlining only if optimization is not turned on.
9737
0f9cdef4
DM
97382013-07-18 David Malcolm <dmalcolm@redhat.com>
9739
9740 * passes.def: New.
9741
9742 * passes.c (init_optimization_passes): Move the construction of
9743 the pass hierarchy into a new passes.def file.
9744
9745 * Makefile.in (passes.o): Add dependency on passes.def.
9746
2efa4087
DM
97472013-07-18 David Malcolm <dmalcolm@redhat.com>
9748
9749 * passes.c (init_optimization_passes): Introduce macros for
9750 constructing the tree of passes (INSERT_PASSES_AFTER,
9751 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
9752 TERMINATE_PASS_LIST).
9753
bc404e1b
VM
97542013-07-18 Vladimir Makarov <vmakarov@redhat.com>
9755 Wei Mi <wmi@google.com>
9756
9757 PR rtl-optimization/57878
9758 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
9759 top.
9760 (reload_pseudo_compare_func): Check nregs first for reload
9761 pseudos.
9762
d675843f
DM
97632013-07-18 David Malcolm <dmalcolm@redhat.com>
9764
9765 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
9766
c7b3b99f 97672013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
bcb97fbd
PCC
9768
9769 * read-rtl.c (validate_const_int): Once an invalid character is
9770 seen, quit the loop.
9771
9772 * gengtype.c (write_roots): Similarly once we find the "deletable"
9773 or "if_marked" option.
9774
52fceb44
SN
97752013-07-18 Sofiane Naci <sofiane.naci@arm.com>
9776
9777 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
9778 "xtab" and "sat". Move value "clz" from here to ...
9779 (attriubte "type"): ... here.
9780 (satsi_<SAT:code>): Delete "insn" attribute.
9781 (satsi_<SAT:code>_shift): Likewise.
9782 (arm_zero_extendqisi2addsi): Likewise.
9783 (arm_extendqisi2addsi): Likewise.
9784 (clzsi2): Update for attribute changes.
9785 (rbitsi2): Likewise.
371e77e3
UB
9786 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
9787 attribute.
52fceb44
SN
9788 (arm_usatsihi): Likewise.
9789 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
9790
006bd006
SN
97912013-07-18 Sofiane Naci <sofiane.naci@arm.com>
9792
9793 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
371e77e3
UB
9794 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
9795 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
006bd006
SN
9796 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
9797 in alphabetical order.
9798 (attribute "core_cycles"): Update for attribute changes.
9799 (arm_addsi3): Likewise.
9800 (addsi3_compare0): Likewise.
9801 (addsi3_compare0_scratch): Likewise.
9802 (addsi3_compare_op1): Likewise.
9803 (addsi3_compare_op2): Likewise.
9804 (compare_addsi2_op0): Likewise.
9805 (compare_addsi2_op1): Likewise.
9806 (addsi3_carryin_shift_<optab>): Likewise.
9807 (subsi3_carryin_shift): Likewise.
9808 (rsbsi3_carryin_shift): Likewise.
9809 (arm_subsi3_insn): Likewise.
9810 (subsi3_compare0): Likewise.
9811 (subsi3_compare): Likewise.
9812 (arm_andsi3_insn): Likewise.
9813 (thumb1_andsi3_insn): Likewise.
9814 (andsi3_compare0): Likewise.
9815 (andsi3_compare0_scratch): Likewise.
9816 (zeroextractsi_compare0_scratch
9817 (andsi_not_shiftsi_si): Likewise.
9818 (iorsi3_insn): Likewise.
9819 (iorsi3_compare0): Likewise.
9820 (iorsi3_compare0_scratch): Likewise.
9821 (arm_xorsi3): Likewise.
9822 (thumb1_xorsi3_insn): Likewise.
9823 (xorsi3_compare0): Likewise.
9824 (xorsi3_compare0_scratch): Likewise.
9825 (satsi_<SAT:code>_shift): Likewise.
9826 (rrx): Likewise.
9827 (arm_shiftsi3): Likewise.
9828 (shiftsi3_compare0): Likewise.
9829 (not_shiftsi): Likewise.
9830 (not_shiftsi_compare0): Likewise.
9831 (not_shiftsi_compare0_scratch): Likewise.
9832 (arm_one_cmplsi2): Likewise.
9833 (thumb_one_complsi2): Likewise.
9834 (notsi_compare0): Likewise.
9835 (notsi_compare0_scratch): Likewise.
9836 (thumb1_zero_extendhisi2): Likewise.
9837 (arm_zero_extendhisi2): Likewise.
9838 (arm_zero_extendhisi2_v6): Likewise.
9839 (arm_zero_extendhisi2addsi): Likewise.
9840 (thumb1_zero_extendqisi2): Likewise.
9841 (thumb1_zero_extendqisi2_v6): Likewise.
9842 (arm_zero_extendqisi2): Likewise.
9843 (arm_zero_extendqisi2_v6): Likewise.
9844 (arm_zero_extendqisi2addsi): Likewise.
9845 (thumb1_extendhisi2): Likewise.
9846 (arm_extendhisi2): Likewise.
9847 (arm_extendhisi2_v6): Likewise.
9848 (arm_extendqisi): Likewise.
9849 (arm_extendqisi_v6): Likewise.
9850 (arm_extendqisi2addsi): Likewise.
9851 (thumb1_extendqisi2): Likewise.
9852 (thumb1_movdi_insn): Likewise.
9853 (arm_movsi_insn): Likewise.
9854 (movsi_compare0): Likewise.
9855 (movhi_insn_arch4): Likewise.
9856 (movhi_bytes): Likewise.
9857 (arm_movqi_insn): Likewise.
9858 (thumb1_movqi_insn): Likewise.
9859 (arm32_movhf): Likewise.
9860 (thumb1_movhf): Likewise.
9861 (arm_movsf_soft_insn): Likewise.
9862 (thumb1_movsf_insn): Likewise.
9863 (movdf_soft_insn): Likewise.
9864 (thumb_movdf_insn): Likewise.
9865 (arm_cmpsi_insn): Likewise.
9866 (cmpsi_shiftsi): Likewise.
9867 (cmpsi_shiftsi_swp): Likewise.
9868 (arm_cmpsi_negshiftsi_si): Likewise.
9869 (movsicc_insn): Likewise.
9870 (movsfcc_soft_insn): Likewise.
9871 (arith_shiftsi): Likewise.
9872 (arith_shiftsi_compare0
9873 (arith_shiftsi_compare0_scratch
9874 (sub_shiftsi): Likewise.
9875 (sub_shiftsi_compare0
9876 (sub_shiftsi_compare0_scratch
9877 (and_scc): Likewise.
9878 (cond_move): Likewise.
9879 (if_plus_move): Likewise.
9880 (if_move_plus): Likewise.
9881 (if_move_not): Likewise.
9882 (if_not_move): Likewise.
9883 (if_shift_move): Likewise.
9884 (if_move_shift): Likewise.
9885 (if_shift_shift): Likewise.
9886 (if_not_arith): Likewise.
9887 (if_arith_not): Likewise.
9888 (cond_move_not): Likewise.
9889 (thumb1_ashlsi3): Set type attribute.
9890 (thumb1_ashrsi3): Likewise.
9891 (thumb1_lshrsi3): Likewise.
9892 (thumb1_rotrsi3): Likewise.
9893 (shiftsi3_compare0_scratch): Likewise.
9894 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
9895 (neon_mov<mode>): Likewise.
371e77e3
UB
9896 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
9897 attribute changes.
006bd006
SN
9898 (thumb2_movsi_insn): Likewise.
9899 (thumb2_cmpsi_neg_shiftsi): Likewise.
9900 (thumb2_extendqisi_v6): Likewise.
9901 (thumb2_zero_extendhisi2_v6): Likewise.
9902 (thumb2_zero_extendqisi2_v6): Likewise.
9903 (thumb2_shiftsi3_short): Likewise.
9904 (thumb2_addsi3_compare0_scratch): Likewise.
9905 (orsi_not_shiftsi_si): Likewise.
9906 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
9907 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
9908 changes.
9909 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
9910 (1020alu_shift_op): Likewise.
9911 (1020alu_shift_reg_op): Likewise.
9912 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
9913 (alu_shift_op): Likewise.
9914 (alu_shift_reg_op): Likewise.
9915 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
9916 (11_alu_shift_op): Likewise.
9917 (11_alu_shift_reg_op): Likewise.
9918 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
9919 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
9920 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
9921 changes.
006bd006
SN
9922 (cortex_a15_alu_shift): Likewise.
9923 (cortex_a15_alu_shift_reg): Likewise.
371e77e3
UB
9924 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
9925 changes.
006bd006
SN
9926 (cortex_a5_alu_shift): Likewise.
9927 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
9928 changes.
9929 (cortex_a53_alu_shift): Likewise.
9930 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
9931 changes.
9932 (cortex_a7_alu_reg): Likewise.
9933 (cortex_a7_alu_shift): Likewise.
371e77e3
UB
9934 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
9935 changes.
006bd006
SN
9936 (cortex_a8_alu_shift): Likewise.
9937 (cortex_a8_alu_shift_reg): Likewise.
9938 (cortex_a8_mov): Likewise.
9939 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
9940 (cortex_a9_dp_shift): Likewise.
371e77e3
UB
9941 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
9942 changes.
9943 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
9944 changes.
006bd006
SN
9945 (cortex_r4_mov): Likewise.
9946 (cortex_r4_alu_shift): Likewise.
9947 (cortex_r4_alu_shift_reg): Likewise.
9948 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
9949 (526_alu_shift_op): Likewise.
9950 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
9951 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
9952 (626te_alu_shift_op): Likewise.
9953 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
9954 (726te_alu_op): Likewise.
9955 (726te_alu_shift_op): Likewise.
9956 (726te_alu_shift_reg_op): Likewise.
9957 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
9958 (mp626_alu_shift_op): Likewise.
9959 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
9960 (pj4_alu_e1_conds): Likewise.
9961 (pj4_alu): Likewise.
9962 (pj4_alu_conds): Likewise.
9963 (pj4_shift): Likewise.
9964 (pj4_shift_conds): Likewise.
9965 (pj4_alu_shift): Likewise.
9966 (pj4_alu_shift_conds): Likewise.
371e77e3
UB
9967 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
9968 changes.
006bd006
SN
9969 (cortexa7_older_only): Likewise.
9970 (cortexa7_younger): Likewise.
9971
651df1b2
DM
99722013-07-18 David Malcolm <dmalcolm@redhat.com>
9973
9974 * ipa-pure-const.c (generate_summary): Rename to...
9975 (pure_const_generate_summary): ... this.
9976
ea717bd7
IS
99772013-07-17 Iain Sandoe <iain@codesourcery.com>
9978
9979 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
9980
a1259a13
YR
99812013-07-17 Yvan Roux <yvan.roux@linaro.org>
9982
9983 PR target/57909
9984 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
9985 usage in HI mode.
9986
167f68ed
AK
99872013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9988
9989 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
9990 enabled without -march=zEC12.
9991 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
9992 flags to be set.
9993
f900a982
MR
99942013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
9995
9996 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
9997 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
9998 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
9999 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
10000 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
10001 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
10002 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
10003 ISA_HAS_FP4.
10004 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
10005 and ISA_HAS_NMADD3_NMSUB3.
10006 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
10007 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
10008 (nmsub4<mode>, nmsub3<mode>): Likewise.
10009 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
10010
d4ed27eb
MR
100112013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
10012
10013 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
10014 TARGET_MIPS5400 checking.
10015
7a5add18
PB
100162013-07-16 Jakub Jelinek <jakub@redhat.com>
10017 Peter Bergner <bergner@vnet.ibm.com>
10018
10019 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
10020 registers in the comment.
10021 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
10022 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
10023 rather than FIRST_PSEUDO_REGISTERS.
10024
100252013-07-16 Peter Bergner <bergner@vnet.ibm.com>
c694dc01
PB
10026
10027 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
10028 enable extra ISA flags with TARGET_HTM.
10029
d2ab0929
MR
100302013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
10031
10032 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
10033 Fix comment typos.
10034
839c74bc
CH
100352013-07-15 Cong Hou <congh@google.com>
10036
10037 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
10038 in compare function for sorting.
10039
7a5add18 100402013-07-15 Peter Bergner <bergner@vnet.ibm.com>
0258b6e4
PB
10041
10042 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
10043 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
10044 * config/rs6000/rs6000.opt: Add -mhtm option.
10045 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
10046 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
10047 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
10048 __HTM__ if the HTM instructions are available.
10049 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
10050 htm_spr_reg_operand): New define_predicates.
10051 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
10052 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
10053 Include htm.md.
10054 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
10055 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
10056 HTM builtin functions.
10057 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
10058 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
10059 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
10060 (rs6000_builtin_mask_calculate): Likewise.
10061 (rs6000_option_override_internal): Likewise.
10062 (bdesc_htm): Add new HTM builtin support.
10063 (htm_spr_num): New function.
10064 (htm_spr_regno): Likewise.
10065 (rs6000_htm_spr_icode): Likewise.
10066 (htm_expand_builtin): Likewise.
10067 (htm_init_builtins): Likewise.
10068 (rs6000_expand_builtin): Add support for HTM builtin functions.
10069 (rs6000_init_builtins): Likewise.
371e77e3
UB
10070 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
10071 option.
0258b6e4
PB
10072 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
10073 (TARGET_HTM, MASK_HTM): Define macros.
10074 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
10075 (FIXED_REGISTERS): Likewise.
10076 (CALL_USED_REGISTERS): Likewise.
10077 (CALL_REALLY_USED_REGISTERS): Likewise.
10078 (REG_ALLOC_ORDER): Likewise.
10079 (enum reg_class): Likewise.
10080 (REG_CLASS_NAMES): Likewise.
10081 (REG_CLASS_CONTENTS): Likewise.
10082 (REGISTER_NAMES): Likewise.
10083 (ADDITIONAL_REGISTER_NAMES): Likewise.
10084 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
10085 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
10086 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
10087 * config/rs6000/htm.md: New file.
10088 * config/rs6000/htmintrin.h: New file.
10089 * config/rs6000/htmxlintrin.h: New file.
10090
87dd8ab0
MS
100912013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
10092
10093 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
10094 Define SYMBOL_TINY_GOT, update comment.
10095 * config/aarch64/aarch64.c
10096 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
10097 (aarch64_expand_mov_immediate): Likewise.
10098 (aarch64_print_operand): Likewise.
10099 (aarch64_classify_symbol): Likewise.
10100 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
10101 (ldr_got_tiny): Define.
10102
52d676b6
TG
101032013-07-13 Tobias Grosser <tobias@grosser.es>
10104
10105 PR tree-optimization/54094
10106 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
10107 scheduling dimension for the parallelism check from the polyhedral
10108 information in the AST.
10109 * graphite-dependences.c (carries_deps): Do not assume the schedule is
10110 in 2D + 1 form.
10111
286e8fc1
JM
101122013-07-13 Jason Merrill <jason@redhat.com>
10113
10114 * print-tree.c (debug_vec_tree): Use debug_raw.
10115 (debug_raw (vec<tree, va_gc> &)): New.
10116 (debug_raw (vec<tree, va_gc> *)): New.
10117 * tree.h: Declare them.
10118
e43257e8
BC
101192013-07-13 Bin Cheng <bin.cheng@arm.com>
10120
10121 * ifcvt.c (ifcvt_after_combine): New static variable.
10122 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
10123 for size.
10124 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
10125 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
10126 rest_of_handle_if_after_reload): Pass new argument for if_convert.
10127
da582d46
MR
101282013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
10129
10130 * config/mips/mips.c (mips_expand_call): Remove empty statement.
10131
18b0ea8f
MM
101322013-07-12 Michael Matz <matz@suse.de>
10133
10134 PR middle-end/55771
10135 * convert.c (convert_to_real): Reject non-float inner types.
10136
e4f0f84d
TB
101372013-07-12 Tejas Belagod <tejas.belagod@arm.com>
10138
10139 * config/aarch64/aarch64-protos.h
10140 (aarch64_simd_immediate_valid_for_move): Remove.
10141 * config/aarch64/aarch64.c (simd_immediate_info): New member.
10142 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
10143 cases.
10144 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
10145
76500022
SE
101462013-07-11 Steve Ellcey <sellcey@mips.com>
10147
10148 * config/mips/mips.c (mips_conditional_register_usage): Do not
10149 use t[0-7] registers in MIPS16 mode when optimizing for size.
10150
78039734
ST
101512013-07-11 Sriraman Tallam <tmsriram@google.com>
10152
10153 * config/i386/i386.c (dispatch_function_versions): Fix array
10154 indexing of function_version_info to match actual_versions.
10155
7b24b675
TJ
101562013-07-11 Teresa Johnson <tejohnson@google.com>
10157
10158 * vec.h (struct va_gc): Move release out-of-line.
10159 (va_gc::release): Call ggc_free on released vec.
10160
85d4cbb8
UW
101612013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10162
10163 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
10164 Require GOT register as additional operand in UNSPEC.
10165 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
10166 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
10167 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
10168 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
10169 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
10170 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
10171 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
10172
52b3f9e2
GJL
101732013-07-11 Georg-Johann Lay <avr@gjlay.de>
10174
10175 PR target/57631
10176 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
10177 name seen by assembler/linker rather if available.
10178
3f3e266e
AS
101792013-07-11 Andreas Schwab <schwab@suse.de>
10180
10181 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
10182
21231ca6
VM
101832013-07-10 Vladimir Makarov <vmakarov@redhat.com>
10184
371e77e3 10185 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21231ca6 10186
d331d374
JM
101872013-07-10 Joseph Myers <joseph@codesourcery.com>
10188
673c2f63
JM
10189 * doc/tm.texi.in: Move hook documentation to ....
10190 * target.def: ... here.
10191
d331d374
JM
10192 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
10193 text on @hook line.
10194 * doc/tm.texi: Regenerate.
10195
dfeadaa0
PC
101962013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
10197
10198 PR c++/57869
10199 * doc/invoke.texi: Document -Wconditionally-supported.
10200
bb6f2bac
GJL
102012013-07-10 Georg-Johann Lay <avr@gjlay.de>
10202
10203 PR target/57844
10204 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
10205 of my_fp.
10206
5219b232
GJL
102072013-07-10 Georg-Johann Lay <avr@gjlay.de>
10208
10209 PR target/57506
10210 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
10211 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
10212 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
10213 Remove duplicate devices.
10214 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
10215 * config/avr/t-multilib: Regenerate.
10216 * config/avr/avr-tables.opt: Regenerate.
10217 * doc/avr-mmcu.texi: Regenerate.
10218
283045c0
GJL
102192013-07-10 Georg-Johann Lay <avr@gjlay.de>
10220
10221 PR target/56987
10222 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
10223
ceb2d59f 102242013-07-10 Graham Stott <graham.stott@btinternet.com>
6a2fa4b2 10225
ceb2d59f
GS
10226 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
10227 the cost of MULT when optimizing for size.
10228
055e0a99
JBG
102292013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
10230
10231 * config/cr16/cr16-protos.h: Don't include target.h.
10232
ef43e868
JM
102332013-07-09 Joseph Myers <joseph@codesourcery.com>
10234
10235 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
10236 adjust register size for TDmode and TFmode for VSX registers.
10237
4a283fdf
KT
102382013-07-08 Kai Tietz <ktietz@redhat.com>
10239
10240 PR target/56892
10241 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
10242 hook_bool_const_tree_true.
10243
2cf4c39e
AK
102442013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10245
10246 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
10247 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
10248 * config/s390/s390.md: Define FPR*_REGNUM constants.
10249 Fix FPR2_REGNUM constant (18 -> 17).
10250 ("*trunc<BFP:mode><DFP_ALL:mode>2")
10251 ("*trunc<DFP_ALL:mode><BFP:mode>2")
10252 ("trunc<BFP:mode><DFP_ALL:mode>2")
10253 ("trunc<DFP_ALL:mode><BFP:mode>2")
10254 ("*extend<BFP:mode><DFP_ALL:mode>2")
10255 ("*extend<DFP_ALL:mode><BFP:mode>2")
10256 ("extend<BFP:mode><DFP_ALL:mode>2")
10257 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
10258 FPR4_REGNUM.
10259
e6ac0270 102602013-07-08 Graham Stott <graham.stott@btinternet.com>
e6ac0270 10261
6a2fa4b2 10262 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
64a92610 10263
b89b22fc
AK
102642013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10265
10266 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
10267 and cfun_fpr_bit_p to cfun_fpr_save_p.
10268 (s390_frame_area, s390_register_info, s390_frame_info)
10269 (s390_emit_prologue, s390_emit_epilogue)
10270 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
10271 register numbers.
10272 * config/s390/s390.h: Define *_REGNUM macros for floating point
10273 register numbers.
10274
07f398aa
EB
102752013-07-08 Eric Botcazou <ebotcazou@adacore.com>
10276
10277 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
10278
75fefa91
PCC
102792013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
10280
10281 PR rtl-optimization/57786
10282 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
10283 and break out of the loop when it is set to false.
10284
046f1eee
JJ
102852013-07-08 Jakub Jelinek <jakub@redhat.com>
10286
8140c065
JJ
10287 PR target/57819
10288 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
10289 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
10290 (const_int 63)) 0)).
10291 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
10292 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
10293 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
10294
046f1eee
JJ
10295 PR rtl-optimization/57829
10296 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
10297 mask bits outside of mode are just sign-extension from mode to HWI.
10298
930b700b
MZ
102992013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
10300
10301 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
10302 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
10303 adjust_address instead of change_address to keep info about alignment.
10304 (emit_strmov): Remove.
10305 (emit_memmov): New function.
10306 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
10307 (expand_movmem_epilogue): Likewise and return updated rtx for
10308 destination.
10309 (expand_constant_movmem_prologue): Likewise and return updated rtx for
10310 destination and source.
10311 (decide_alignment): Refactor, handle vector_loop.
10312 (ix86_expand_movmem): Likewise.
10313 (ix86_expand_setmem): Likewise.
10314 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
10315
7b9d1bd8
UB
103162013-07-07 Uros Bizjak <ubizjak@gmail.com>
10317
10318 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
10319 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
10320
eabb5f48
UB
103212013-07-06 Uros Bizjak <ubizjak@gmail.com>
10322
10323 * config/i386/sse.md (sse_movlhps): Change alternative 3
10324 of operand 2 to "m".
10325
103262013-07-06 Uros Bizjak <ubizjak@gmail.com>
10327
10328 PR target/57807
10329 * config/i386/sse.md (iptr): New mode attribute.
10330 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
10331 (<sse>_vm<plusminus_insn><mode>3): Ditto.
10332 (<sse>_vmmul<mode>3): Ditto.
10333 (<sse>_vmdiv<mode>3): Ditto.
10334 (sse_vmrcpv4sf2): Ditto.
10335 (<sse>_vmsqrt<mode>2): Ditto.
10336 (sse_vmrsqrtv4sf2): Ditto.
10337 (<sse>_vm<code><mode>3): Ditto.
10338 (avx_vmcmp<mode>3): Ditto.
10339 (<sse>_vmmaskcmp<mode>3): Ditto.
10340 (<sse>_comi): Ditto.
10341 (<sse>_ucomi): Ditto.
10342 (*xop_vmfrcz_<mode>): Ditto.
10343 (*fmai_fmadd_<mode>): Ditto.
10344 (*fmai_fmsub_<mode>): Ditto.
10345 (*fmai_fnmadd_<mode>): Ditto.
10346 (*fmai_fnmsub_<mode>): Ditto.
10347 (*fma4i_vmfmadd_<mode>): Ditto.
10348 (*fma4i_vmfmsub_<mode>): Ditto.
10349 (*fma4i_vmfnmadd_<mode>): Ditto.
10350 (*fma4i_vmfnmsub_<mode>): Ditto.
10351 (*xop_vmfrcz_<mode>): Ditto.
10352 (sse_cvtps2pi): Ditto.
10353 (sse_cvttps2pi): Ditto.
10354 (sse_cvtss2si): Ditto.
10355 (sse_cvtss2si_2): Ditto.
10356 (sse_cvtss2siq_2): Ditto.
10357 (sse_cvttss2si): Ditto.
10358 (sse_cvttss2siq): Ditto.
10359 (sse_cvtsd2si): Ditto.
10360 (sse_cvtsd2si_2): Ditto.
10361 (sse_cvtsd2siq_2): Ditto.
10362 (sse_cvttsd2si): Ditto.
10363 (sse_cvttsd2siq): Ditto.
10364 (sse_cvtsd2ss): Ditto.
10365 (sse_cvtss2sd): Ditto.
10366 (avx2_pbroadcast<mode>): Ditto.
10367 (avx2_pbroadcast<mode>_1): Ditto.
10368 (*avx_vperm_broadcast_v4sf): Ditto.
10369
10370 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
10371 (sse_movlhps): Ditto.
10372 (sse_storehps): Ditto.
10373 (sse_loadhps): Ditto.
10374 (sse_storelps): Ditto.
10375 (sse_loadlps): Ditto.
10376 (*vec_concatv4sf): Ditto.
10377 (*vec_interleave_highv2df): Ditto.
10378 (*vec_interleave_lowv2df): Ditto.
10379 (*vec_extractv2df_1_sse): Ditto.
10380 (*vec_extractv2df_0_sse): Ditto.
10381 (sse2_storelpd): Ditto.
10382 (sse2_loadlpd): Ditto.
10383 (sse2_movsd): Ditto.
10384 (*vec_concatv4si): Ditto.
10385 (vec_concatv2di): Ditto.
10386
10387 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
10388 for Intel asm dialect.
10389 (mmx_punpcklwd): Ditto.
10390 (mmx_punpckldq): Ditto.
10391
10392 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
10393 for intel assembler dialect.
10394
1f6eac90
JJ
103952013-07-06 Jakub Jelinek <jakub@redhat.com>
10396
10397 PR target/29776
10398 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
10399 for BUILT_IN_C{LZ,LRSB}*.
10400 * tree.h (CASE_INT_FN): Add FN##IMAX case.
10401 * tree-vrp.c (extract_range_basic): Handle
10402 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
10403 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
10404 fall thru to code calling set_value*.
10405 * builtins.c (expand_builtin): Remove *IMAX cases.
10406 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
10407 if width is bigger than 2*HWI.
10408
2b778c9d
VM
104092013-07-05 Vladimir Makarov <vmakarov@redhat.com>
10410
10411 PR rtl-optimization/55342
10412 * lra-int.h (lra_subreg_reload_pseudos): New.
10413 * lra.c: Add undoing optional reloads to the block diagram.
10414 (lra_subreg_reload_pseudos): New.
10415 (lra_optional_reload_pseudos): Change comments.
10416 (lra): Init and clear lra_subreg_reload_pseudos. Clear
10417 lra_optional_reload_pseudos after undo transformations.
10418 * lra-assigns.c (pseudo_prefix_title): New.
10419 (lra_setup_reg_renumber): Use it.
10420 (spill_for): Ditto. Check subreg reload pseudos too.
10421 (assign_by_spills): Consider subreg reload pseudos too.
10422 * lra-constraints.c (simplify_operand_subreg): Use
10423 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
10424 (curr_insn_transform): Recognize and do optional reloads.
10425 (undo_optional_reloads): New.
10426 (lra_undo_inheritance): Call undo_optional_reloads.
10427
207156e4
TQ
104282013-07-05 Thomas Quinot <quinot@adacore.com>
10429
10430 * tree-complex.c (expand_complex_operations_1): Fix typo.
10431
8990e73a
TB
104322013-07-04 Tejas Belagod <tejas.belagod@arm.com>
10433
10434 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
10435 (tune_params): New member 'const vec_costs'.
10436 * config/aarch64/aarch64.c (generic_vector_cost): New.
10437 (generic_tunings): New member 'generic_vector_cost'.
10438 (aarch64_builtin_vectorization_cost): New.
10439 (aarch64_add_stmt_cost): New.
10440 (TARGET_VECTORIZE_ADD_STMT_COST): New.
10441 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
10442
f7bc421d
JJ
104432013-07-03 Jakub Jelinek <jakub@redhat.com>
10444
10445 PR target/57777
10446 * config/i386/predicates.md (vsib_address_operand): Disallow
10447 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
10448
e90d1568
HPN
104492013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
10450
10451 PR middle-end/55030
10452 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
10453 expand_builtin_setjmp_receiver.
10454 (expand_label): Adjust, call expand_builtin_setjmp_receiver
10455 with NULL for the label parameter.
10456 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
10457 the frame-pointer. Adjust comments.
10458 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
10459 only if LABEL is non-NULL.
10460
cbd7413b
YZ
104612013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
10462
10463 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
10464 (ARM_ABI_AAPCS64): Ditto.
10465 (arm_abi): Ditto.
10466 (ARM_DEFAULT_ABI): Ditto.
10467
dec11868
JG
104682013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
10469
10470 * config/aarch64/aarch64-builtins.c
10471 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
10472 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
10473 (st1): Likewise.
10474 * config/aarch64/aarch64-simd.md
10475 (aarch64_ld1<VALL:mode>): New.
10476 (aarch64_st1<VALL:mode>): Likewise.
10477 * config/aarch64/arm_neon.h
10478 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
10479
786fb9b6
ST
104802013-07-02 Sriraman Tallam <tmsriram@google.com>
10481
0ba6aff3
UB
10482 * config/i386/i386.c (gate_insert_vzeroupper): Check if
10483 target ISA is AVX.
786fb9b6
ST
10484 (ix86_option_override_internal):Turn on all -mavx target flags by
10485 default as they are dependent on AVX anyway.
10486
4b043553
CC
104872013-07-02 Cary Coutant <ccoutant@google.com>
10488
10489 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
10490 deterministic hash.
10491 (loc_checksum_ordered): Likewise.
10492 (hash_loc_operands): Remove inline keyword.
10493
c4e87a13
JJ
104942013-07-02 Jakub Jelinek <jakub@redhat.com>
10495
10496 PR tree-optimization/57741
10497 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
10498 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
10499 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
10500 Allow REAL_CST step_exprs if flag_associative_math.
10501 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
10502
26366d28
IB
105032013-07-02 Ian Bolton <ian.bolton@arm.com>
10504
0ba6aff3 10505 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 10506
2879bb2b
IB
105072013-07-02 Ian Bolton <ian.bolton@arm.com>
10508
10509 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
10510
afc5e8a6
KT
105112013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10512
10513 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
10514 encoding.
10515 (iorsi3_insn): Likewise.
10516 (arm_xorsi3): Likewise.
10517
31f8442b
SN
105182013-07-01 Sofiane Naci <sofiane.naci@arm.com>
10519
10520 * arm.md (attribute "wtype"): Delete. Move attribute values from here
10521 to ...
10522 (attribute "type"): ... here, and prefix with "wmmx_".
10523 (attribute "core_cycles"): Update for attribute changes.
10524 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
10525 (tbcstv4hi): Likewise.
10526 (tbcstv2si): Likewise.
10527 (iwmmxt_iordi3): Likewise.
10528 (iwmmxt_xordi3): Likewise.
10529 (iwmmxt_anddi3): Likewise.
10530 (iwmmxt_nanddi3): Likewise.
10531 (iwmmxt_arm_movdi): Likewise.
10532 (iwmmxt_movsi_insn): Likewise.
10533 (mov<mode>_internal): Likewise.
10534 (and<mode>3_iwmmxt): Likewise.
10535 (ior<mode>3_iwmmxt): Likewise.
10536 (xor<mode>3_iwmmxt): Likewise.
10537 (add<mode>3_iwmmxt): Likewise.
10538 (ssaddv8qi3): Likewise.
10539 (ssaddv4hi3): Likewise.
10540 (ssaddv2si3): Likewise.
10541 (usaddv8qi3): Likewise.
10542 (usaddv4hi3): Likewise.
10543 (usaddv2si3): Likewise.
10544 (sub<mode>3_iwmmxt): Likewise.
10545 (sssubv8qi3): Likewise.
10546 (sssubv4hi3): Likewise.
10547 (sssubv2si3): Likewise.
10548 (ussubv8qi3): Likewise.
10549 (ussubv4hi3): Likewise.
10550 (ussubv2si3): Likewise.
10551 (mulv4hi3_iwmmxt): Likewise.
10552 (smulv4hi3_highpart): Likewise.
10553 (umulv4hi3_highpart): Likewise.
10554 (iwmmxt_wmacs): Likewise.
10555 (iwmmxt_wmacsz): Likewise.
10556 (iwmmxt_wmacu): Likewise.
10557 (iwmmxt_wmacuz): Likewise.
10558 (iwmmxt_clrdi): Likewise.
10559 (iwmmxt_clrv8qi): Likewise.
10560 (iwmmxt_clr4hi): Likewise.
10561 (iwmmxt_clr2si): Likewise.
10562 (iwmmxt_uavgrndv8qi3): Likewise.
10563 (iwmmxt_uavgrndv4hi3): Likewise.
10564 (iwmmxt_uavgv8qi3): Likewise.
10565 (iwmmxt_uavgv4hi3): Likewise.
10566 (iwmmxt_tinsrb): Likewise.
10567 (iwmmxt_tinsrh): Likewise.
10568 (iwmmxt_tinsrw): Likewise.
10569 (iwmmxt_textrmub): Likewise.
10570 (iwmmxt_textrmsb): Likewise.
10571 (iwmmxt_textrmuh): Likewise.
10572 (iwmmxt_textrmsh): Likewise.
10573 (iwmmxt_textrmw): Likewise.
10574 (iwmxxt_wshufh): Likewise.
10575 (eqv8qi3): Likewise.
10576 (eqv4hi3): Likewise.
10577 (eqv2si3): Likewise.
10578 (gtuv8qi3): Likewise.
10579 (gtuv4hi3): Likewise.
10580 (gtuv2si3): Likewise.
10581 (gtv8qi3): Likewise.
10582 (gtv4hi3): Likewise.
10583 (gtv2si3): Likewise.
10584 (smax<mode>3_iwmmxt): Likewise.
10585 (umax<mode>3_iwmmxt): Likewise.
10586 (smin<mode>3_iwmmxt): Likewise.
10587 (umin<mode>3_iwmmxt): Likewise.
10588 (iwmmxt_wpackhss): Likewise.
10589 (iwmmxt_wpackwss): Likewise.
10590 (iwmmxt_wpackdss): Likewise.
10591 (iwmmxt_wpackhus): Likewise.
10592 (iwmmxt_wpackwus): Likewise.
10593 (iwmmxt_wpackdus): Likewise.
10594 (iwmmxt_wunpckihb): Likewise.
10595 (iwmmxt_wunpckihh): Likewise.
10596 (iwmmxt_wunpckihw): Likewise.
10597 (iwmmxt_wunpckilb): Likewise.
10598 (iwmmxt_wunpckilh): Likewise.
10599 (iwmmxt_wunpckilw): Likewise.
10600 (iwmmxt_wunpckehub): Likewise.
10601 (iwmmxt_wunpckehuh): Likewise.
10602 (iwmmxt_wunpckehuw): Likewise.
10603 (iwmmxt_wunpckehsb): Likewise.
10604 (iwmmxt_wunpckehsh): Likewise.
10605 (iwmmxt_wunpckehsw): Likewise.
10606 (iwmmxt_wunpckelub): Likewise.
10607 (iwmmxt_wunpckeluh): Likewise.
10608 (iwmmxt_wunpckeluw): Likewise.
10609 (iwmmxt_wunpckelsb): Likewise.
10610 (iwmmxt_wunpckelsh): Likewise.
10611 (iwmmxt_wunpckelsw): Likewise.
10612 (ror<mode>3): Likewise.
10613 (ashr<mode>3_iwmmxt): Likewise.
10614 (lshr<mode>3_iwmmxt): Likewise.
10615 (ashl<mode>3_iwmmxt): Likewise.
10616 (ror<mode>3_di): Likewise.
10617 (ashr<mode>3_di): Likewise.
10618 (lshr<mode>3_di): Likewise.
10619 (ashl<mode>3_di): Likewise.
10620 (iwmmxt_wmadds): Likewise.
10621 (iwmmxt_wmaddu): Likewise.
10622 (iwmmxt_tmia): Likewise.
10623 (iwmmxt_tmiaph): Likewise.
10624 (iwmmxt_tmiabb): Likewise.
10625 (iwmmxt_tmiatb): Likewise.
10626 (iwmmxt_tmiabt): Likewise.
10627 (iwmmxt_tmiatt): Likewise.
10628 (iwmmxt_tmovmskb): Likewise.
10629 (iwmmxt_tmovmskh): Likewise.
10630 (iwmmxt_tmovmskw): Likewise.
10631 (iwmmxt_waccb): Likewise.
10632 (iwmmxt_wacch): Likewise.
10633 (iwmmxt_waccw): Likewise.
10634 (iwmmxt_waligni): Likewise.
10635 (iwmmxt_walignr): Likewise.
10636 (iwmmxt_walignr0): Likewise.
10637 (iwmmxt_walignr1): Likewise.
10638 (iwmmxt_walignr2): Likewise.
10639 (iwmmxt_walignr3): Likewise.
10640 (iwmmxt_wsadb): Likewise.
10641 (iwmmxt_wsadh): Likewise.
10642 (iwmmxt_wsadbz): Likewise.
10643 (iwmmxt_wsadhz): Likewise.
10644 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
10645 (iwmmxt_wabsdiffb): Likewise.
10646 (iwmmxt_wabsdiffh): Likewise.
10647 (iwmmxt_wabsdiffw): Likewise.
10648 (iwmmxt_waddsubhx): Likewise
10649 (iwmmxt_wsubaddhx): Likewise.
10650 (addc<mode>3): Likewise.
10651 (iwmmxt_avg4): Likewise.
10652 (iwmmxt_avg4r): Likewise.
10653 (iwmmxt_wmaddsx): Likewise.
10654 (iwmmxt_wmaddux): Likewise.
10655 (iwmmxt_wmaddsn): Likewise.
10656 (iwmmxt_wmaddun): Likewise.
10657 (iwmmxt_wmulwsm): Likewise.
10658 (iwmmxt_wmulwum): Likewise.
10659 (iwmmxt_wmulsmr): Likewise.
10660 (iwmmxt_wmulumr): Likewise.
10661 (iwmmxt_wmulwsmr): Likewise.
10662 (iwmmxt_wmulwumr): Likewise.
10663 (iwmmxt_wmulwl): Likewise.
10664 (iwmmxt_wqmulm): Likewise.
10665 (iwmmxt_wqmulwm): Likewise.
10666 (iwmmxt_wqmulmr): Likewise.
10667 (iwmmxt_wqmulwmr): Likewise.
10668 (iwmmxt_waddbhusm): Likewise.
10669 (iwmmxt_waddbhusl): Likewise.
10670 (iwmmxt_wqmiabb): Likewise.
10671 (iwmmxt_wqmiabt): Likewise.
10672 (iwmmxt_wqmiatb): Likewise.
10673 (iwmmxt_wqmiatt): Likewise.
10674 (iwmmxt_wqmiabbn): Likewise.
10675 (iwmmxt_wqmiabtn): Likewise.
10676 (iwmmxt_wqmiatbn): Likewise.
10677 (iwmmxt_wqmiattn): Likewise.
10678 (iwmmxt_wmiabb): Likewise.
10679 (iwmmxt_wmiabt): Likewise.
10680 (iwmmxt_wmiatb): Likewise.
10681 (iwmmxt_wmiatt): Likewise.
10682 (iwmmxt_wmiabbn): Likewise.
10683 (iwmmxt_wmiabtn): Likewise.
10684 (iwmmxt_wmiatbn): Likewise.
10685 (iwmmxt_wmiattn): Likewise.
10686 (iwmmxt_wmiawbb): Likewise.
10687 (iwmmxt_wmiawbt): Likewise.
10688 (iwmmxt_wmiawtb): Likewise.
10689 (iwmmxt_wmiawtt): Likewise.
10690 (iwmmxt_wmiawbbn): Likewise.
10691 (iwmmxt_wmiawbtn): Likewise.
10692 (iwmmxt_wmiawtbn): Likewise.
10693 (iwmmxt_wmiawttn): Likewise.
10694 (iwmmxt_wmerge): Likewise.
10695 (iwmmxt_tandc<mode>3): Likewise.
10696 (iwmmxt_torc<mode>3): Likewise.
10697 (iwmmxt_torvsc<mode>3): Likewise.
10698 (iwmmxt_textrc<mode>3): Likewise.
10699 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
10700 (wmmxt_pack): Likewise.
10701 (wmmxt_mult_c1): Likewise.
10702 (wmmxt_mult_c2): Likewise.
10703 (wmmxt_alu_c1): Likewise.
10704 (wmmxt_alu_c2): Likewise.
10705 (wmmxt_alu_c3): Likewise.
10706 (wmmxt_transfer_c1): Likewise.
10707 (wmmxt_transfer_c2): Likewise.
10708 (wmmxt_transfer_c3): Likewise.
10709 (marvell_f_iwmmxt_wstr): Likewise.
10710 (marvell_f_iwmmxt_wldr): Likewise.
10711
bdb7bf8a
YZ
107122013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
10713
0ba6aff3 10714 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 10715
e6631d38
VM
107162013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10717
10718 Revert:
10719 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10720 * lra-constraints.c (need_for_split_p): Check call used hard regs
10721 living through calls.
10722
10723 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
10724 call used regs for call insn.
10725
53c1275b
JJ
107262013-06-28 Jakub Jelinek <jakub@redhat.com>
10727
10728 PR target/57736
0ba6aff3
UB
10729 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
10730 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 10731
1141ed3f
BI
107322013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
10733
10734 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 10735
e32e4c4a
VM
107362013-06-28 Vladimir Makarov <vmakarov@redhat.com>
10737
10738 * lra-constraints.c (need_for_split_p): Check call used hard regs
10739 living through calls.
10740
f161bfd3
MM
107412013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
10742
10743 PR target/57744
10744 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
10745 to tie with any other modes. Eliminate Altivec vector mode tests,
10746 since these are a subset of ALTIVEC or VSX vector modes. Simplify
10747 code, to return 0 if testing MODE2 for a condition, if we've
10748 already tested MODE1 for the same condition.
10749
7eda14e1
MS
107502013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10751
10752 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
10753 layout.
10754
c822f852
MS
107552013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10756
10757 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
10758 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
10759
da4f13a4
MS
107602013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
10761
0ba6aff3
UB
10762 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
10763 Define.
da4f13a4
MS
10764 (aarch64_symbolic_constant_p): Remove.
10765 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
10766 static. Fix line length and white space.
10767 (aarch64_symbolic_constant_p): Remove.
10768 * config/aarch64/predicates.md (aarch64_valid_symref):
10769 Use aarch64_classify_symbol_expression.
10770
956a95a5
KT
107712013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10772
10773 * config/arm/constraints.md (Ts): New constraint.
10774 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
10775 16-bit encodings.
10776 (compare_scc): Use "Ts" constraint for operand 0.
10777 (ior_scc_scc): Likewise.
10778 (and_scc_scc): Likewise.
10779 (and_scc_scc_nodom): Likewise.
10780 (ior_scc_scc_cmp): Likewise for operand 7.
10781 (and_scc_scc_cmp): Likewise.
10782 * config/arm/thumb2.md (thumb2_movsi_insn):
10783 Add alternatives for 16-bit encodings.
10784 (thumb2_movhi_insn): Likewise.
10785 (thumb2_movsicc_insn): Likewise.
10786 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
10787 (thumb2_negscc): Use "Ts" constraint.
10788 Move mvn instruction outside cond_exec block.
10789 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
10790 for 16-bit encodings.
10791
31dfce10
KT
107922013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10793
10794 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
10795 encoding.
10796 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
10797 (mulsi3subsi): Likewise.
10798 (mulsidi3adddi): Likewise.
10799 (mulsidi3_v6): Likewise.
10800 (umulsidi3_v6): Likewise.
10801 (umulsidi3adddi_v6): Likewise.
10802 (smulsi3_highpart_v6): Likewise.
10803 (umulsi3_highpart_v6): Likewise.
10804 (mulhisi3tb): Likewise.
10805 (mulhisi3bt): Likewise.
10806 (mulhisi3tt): Likewise.
10807 (maddhisi4): Likewise.
10808 (maddhisi4tb): Likewise.
10809 (maddhisi4tt): Likewise.
10810 (maddhidi4): Likewise.
10811 (maddhidi4tb): Likewise.
10812 (maddhidi4tt): Likewise.
10813 (zeroextractsi_compare0_scratch): Likewise.
10814 (insv_zero): Likewise.
10815 (insv_t2): Likewise.
10816 (anddi_notzesidi_di): Likewise.
10817 (anddi_notsesidi_di): Likewise.
10818 (andsi_notsi_si): Likewise.
10819 (iordi_zesidi_di): Likewise.
10820 (xordi_zesidi_di): Likewise.
10821 (andsi_iorsi3_notsi): Likewise.
10822 (smax_0): Likewise.
10823 (smax_m1): Likewise.
10824 (smin_0): Likewise.
10825 (not_shiftsi): Likewise.
10826 (unaligned_loadsi): Likewise.
10827 (unaligned_loadhis): Likewise.
10828 (unaligned_loadhiu): Likewise.
10829 (unaligned_storesi): Likewise.
10830 (unaligned_storehi): Likewise.
10831 (extv_reg): Likewise.
10832 (extzv_t2): Likewise.
10833 (divsi3): Likewise.
10834 (udivsi3): Likewise.
10835 (arm_zero_extendhisi2addsi): Likewise.
10836 (arm_zero_extendqisi2addsi): Likewise.
10837 (compareqi_eq0): Likewise.
10838 (arm_extendhisi2_v6): Likewise.
10839 (arm_extendqisi2addsi): Likewise.
10840 (arm_movt): Likewise.
10841 (thumb2_ldrd): Likewise.
10842 (thumb2_ldrd_base): Likewise.
10843 (thumb2_ldrd_base_neg): Likewise.
10844 (thumb2_strd): Likewise.
10845 (thumb2_strd_base): Likewise.
10846 (thumb2_strd_base_neg): Likewise.
10847 (arm_negsi2): Add alternative for 16-bit encoding.
10848 (arm_one_cmplsi2): Likewise.
10849
1572e697
KT
108502013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10851
10852 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
10853 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
10854 (movdfcc): Likewise.
10855 * config/arm/vfp.md (*thumb2_movsf_vfp):
10856 Disable predication for arm_restrict_it.
10857 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
10858 (*thumb2_movdfcc_vfp): Likewise.
10859 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
10860 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
10861 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
10862 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
10863 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
10864 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
10865 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
10866 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
10867 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
10868 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
10869 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
10870 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
10871 Disable predication for arm_restrict_it.
10872
ebf8f0ea
KY
108732013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
10874
10875 * config/i386/bmiintrin.h (_bextr_u32): New.
10876 (_bextr_u64): Ditto.
10877
a290fcda
RS
108782013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
10879
10880 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
10881 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
10882 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
10883 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
10884 * config/mips/n32-elf.h: ...this new file.
10885
ea169996
MG
108862013-06-27 Marc Glisse <marc.glisse@inria.fr>
10887
10888 PR target/57224
10889 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
10890 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
10891
12211b99 108922013-06-27 Catherine Moore <clm@codesourcery.com>
8e932114
CM
10893
10894 * config/mips/mips-tables.opt: Regenerate.
10895 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 10896 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 10897 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 10898
2444244e
JJ
108992013-06-27 Jakub Jelinek <jakub@redhat.com>
10900
cd06d2a2
JJ
10901 PR target/57623
10902 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
10903 constraints of operand 1 and 2.
10904
2444244e
JJ
10905 PR target/57623
10906 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
10907 to match RTL canonicalization. Swap predicates and
10908 constraints of operand 1 and 2.
10909
2f259720
VM
109102013-06-27 Vladimir Makarov <vmakarov@redhat.com>
10911
0ba6aff3
UB
10912 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
10913 Process OP_INOUT regs for splitting too.
2f259720 10914
fef4d2b3
JJ
109152013-06-27 Jakub Jelinek <jakub@redhat.com>
10916
10917 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
10918 decl before the loop, initialize to NULL.
10919 (vectorizable_load): Initialize ptr_incr to NULL.
10920
79ee9826
MJ
109212013-06-27 Martin Jambor <mjambor@suse.cz>
10922
10923 PR lto/57208
10924 * ipa-ref.h (ipa_maybe_record_reference): Declare.
10925 * ipa-ref.c (ipa_maybe_record_reference): New function.
10926 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
10927 * ipa-cp.c (create_specialized_node): Record potential references from
10928 aggvals.
10929 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
10930
e18b4a81
YZ
109312013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
10932
10933 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
10934 parameter 'mode' of type 'enum machine_mode mode'; change to pass
10935 'mode' to force_reg.
10936 (aarch64_add_offset): Update calls to aarch64_force_temporary.
10937 (aarch64_expand_mov_immediate): Likewise.
10938
9c023bf0
YZ
109392013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
10940
10941 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
10942 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
10943
5a3fe9b6
AK
109442013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10945
10946 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
10947 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
10948 (struct machine_function): Add tbegin_p.
10949 (s390_canonicalize_comparison): Fold CC mode compares to
10950 conditional jump if possible.
10951 (s390_emit_jump): Return the emitted jump.
10952 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
10953 Handle CCRAWmode compares.
10954 (s390_option_override): Default to -mhtm if available.
10955 (s390_reg_clobbered_rtx): Handle floating point regs as well.
10956 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
10957 FPRs instead of df_regs_ever_live_p.
10958 (s390_optimize_nonescaping_tx): New function.
10959 (s390_init_frame_layout): Extend clobbered_regs array to cover
10960 FPRs as well.
10961 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
10962 (s390_expand_tbegin): New function.
10963 (enum s390_builtin): New enum definition.
10964 (code_for_builtin): New array definition.
10965 (s390_init_builtins): New function.
10966 (s390_expand_builtin): New function.
10967 (TARGET_INIT_BUILTINS): Define.
10968 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 10969 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
10970 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
10971 (s390_alc_comparison): Likewise.
10972 * config/s390/s390-modes.def: Add CCRAWmode.
10973 * config/s390/s390.h (processor_flags): Add PF_TX.
10974 (TARGET_CPU_HTM): Define macro.
10975 (TARGET_HTM): Define macro.
10976 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
10977 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
10978 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
10979 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 10980 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
10981 (TBEGIN_MASK, TBEGINC_MASK): New constants.
10982 ("*cc_to_int"): Move up.
10983 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
10984 constants other than 0.
10985 ("*ccraw_to_int"): New insn and splitter definition.
10986 ("tbegin", "tbegin_nofloat", "tbegin_retry")
10987 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
10988 ("tx_assist"): New expander.
10989 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
10990 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
10991 * config/s390/s390.opt: Add -mhtm option.
10992 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
10993 * config/s390/htmxlintrin.h: New file.
10994 * config/s390/htmintrin.h: New file.
10995 * config/s390/s390intrin.h: New file.
10996 * doc/extend.texi: Document htm builtins.
10997 * config.gcc: Add the new header files to extra_headers.
10998
9e216629
TS
109992013-06-26 Thomas Schwinge <thomas@codesourcery.com>
11000
11001 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 11002 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 11003
fd8c65e7 110042013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11005 Pat Haugen <pthaugen@us.ibm.com>
11006 Peter Bergner <bergner@vnet.ibm.com>
fd8c65e7
MM
11007
11008 * config/rs6000/power8.md: New.
11009 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
11010 setting for power8 entry.
11011 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
11012 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
11013 test for Power4/Power5 only.
11014 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
11015 support.
11016 (force_new_group): Adjust comment.
11017 * config/rs6000/rs6000.md: Include power8.md.
11018
b24a2ce5
GY
110192013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
11020
11021 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
11022 * config/arm/arm-protos.h (arm_max_conditional_execute): New
11023 declaration.
11024 (tune_params): Update comment.
11025 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
11026 (arm_max_conditional_execute): New function.
11027 (thumb2_final_prescan_insn): Use max_insn_skipped and
11028 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
11029
f6fdeb62
JJ
110302013-06-25 Jakub Jelinek <jakub@redhat.com>
11031
11032 PR tree-optimization/57705
11033 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
11034 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 11035 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
11036 (get_initial_def_for_induction): Handle SSA_NAME IV step.
11037
c13bc3d9
MJ
110382013-06-25 Martin Jambor <mjambor@suse.cz>
11039
11040 PR middle-end/57670
11041 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
11042 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
11043 calls in the dump.
11044 (ipa_note_param_call): Initialize member_ptr flag.
11045 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
11046 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
11047 (ipa_write_indirect_edge_info): Stream member_ptr flag.
11048 (ipa_read_indirect_edge_info): Likewise.
11049
8a845901
RB
110502013-06-25 Richard Biener <rguenther@suse.de>
11051
11052 PR middle-end/56977
11053 * passes.c (init_optimization_passes): Move pass_fold_builtins
11054 and pass_dce earlier with -Og.
11055
33be0bec
EB
110562013-06-25 Eric Botcazou <ebotcazou@adacore.com>
11057
11058 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
11059 <BIT_FIELD_REF>: Remove trailing TAB.
11060 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
11061 remove blank line.
11062
5fe8e757
MJ
110632013-06-24 Martin Jambor <mjambor@suse.cz>
11064
11065 PR tree-optimization/57358
11066 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
11067 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
11068 (ipa_analyze_params_uses): Generate pessimistic info when true.
11069
44a60244
MJ
110702013-06-24 Martin Jambor <mjambor@suse.cz>
11071
11072 PR tree-optimization/57539
11073 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
11074 global.inlined_to of the new node to it. All callers changed.
11075 * ipa-inline-transform.c (clone_inlined_nodes): New variable
11076 inlining_into, pass it to cgraph_clone_node.
11077 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
11078 ipa_free_edge_args_substructures.
11079 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
11080 rdesc linked list. Do not assert rdesc edges have inlined caller.
11081 Assert we have found an rdesc in the rdesc list.
11082
7c5848b8
RB
110832013-06-24 Richard Biener <rguenther@suse.de>
11084
0ba6aff3 11085 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
11086 (pointer_set_lookup): Declare.
11087 (class pointer_map): New template class implementing a
11088 generic pointer to T map.
11089 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
11090 pointer_map<T>::contains, pointer_map<T>::insert,
11091 pointer_map<T>::traverse): New functions.
11092 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
11093 (pointer_set_lookup): New function.
11094 (pointer_set_contains): Use pointer_set_lookup.
11095 (pointer_set_insert): Likewise.
11096 (insert_aux): Remove.
11097 (struct pointer_map_t): Embed a pointer_set_t.
11098 (pointer_map_create): Adjust.
11099 (pointer_map_destroy): Likewise.
11100 (pointer_map_contains): Likewise.
11101 (pointer_map_insert): Likewise.
11102 (pointer_map_traverse): Likewise.
11103 * tree-streamer.h (struct streamer_tree_cache_d): Use a
11104 pointer_map<unsigned> instead of a pointer_map_t.
11105 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
11106 (streamer_tree_cache_lookup): Likewise.
11107 (streamer_tree_cache_create): Likewise.
11108 (streamer_tree_cache_delete): Likewise.
11109 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
11110 pointer_map<unsigned> instead of a pointer_map_t.
11111 (lto_init_tree_ref_encoder): Adjust.
11112 (lto_destroy_tree_ref_encoder): Likewise.
11113 * lto-section-out.c (lto_output_decl_index): Likewise.
11114 (lto_record_function_out_decl_state): Likewise.
11115 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
11116
3dbc97a9
RB
111172013-06-24 Richard Biener <rguenther@suse.de>
11118
11119 PR tree-optimization/57488
11120 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
11121
8345965a
AM
111222013-06-24 Alan Modra <amodra@gmail.com>
11123
11124 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
11125 (gen_easy_altivec_constant): Likewise.
11126 * config/rs6000/predicates.md (easy_vector_constant_add_self,
11127 easy_vector_constant_msb): Likewise.
11128
b7df379f
JJ
111292013-06-23 Jakub Jelinek <jakub@redhat.com>
11130
11131 PR target/57688
11132 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
11133 add missing return true.
11134
12211b99 111352013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
0bcf9a09
OE
11136
11137 PR target/52483
11138 * config/sh/predicates.md (general_extend_operand): Invoke
11139 general_movsrc_operand for memory operands.
11140 (general_movsrc_operand): Allow reg+reg addressing, do not use
11141 general_operand for memory operands.
11142
97db2bf7
ST
111432013-06-23 Sriraman Tallam <tmsriram@google.com>
11144
11145 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
11146 when current target options does not apply.
11147 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
11148 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
11149 * config/i386/bmiintrin.h: Pass appropriate target
11150 attributes to header.
97db2bf7
ST
11151 * config/i386/mmintrin.h: Ditto.
11152 * config/i386/nmmintrin.h: Ditto.
11153 * config/i386/avx2intrin.h: Ditto.
11154 * config/i386/fxsrintrin.h: Ditto.
11155 * config/i386/tbmintrin.h: Ditto.
11156 * config/i386/xsaveintrin.h: Ditto.
11157 * config/i386/f16cintrin.h: Ditto.
11158 * config/i386/xtestintrin.h: Ditto.
11159 * config/i386/xsaveoptintrin.h: Ditto.
11160 * config/i386/bmi2intrin.h: Ditto.
11161 * config/i386/lzcntintrin.h: Ditto.
11162 * config/i386/smmintrin.h: Ditto.
11163 * config/i386/wmmintrin.h: Ditto.
11164 * config/i386/x86intrin.h: Remove all header include guards.
11165 * config/i386/prfchwintrin.h: Ditto.
11166 * config/i386/pmmintrin.h: Ditto.
11167 * config/i386/tmmintrin.h: Ditto.
11168 * config/i386/xmmintrin.h: Ditto.
11169 * config/i386/popcntintrin.h: Ditto.
11170 * config/i386/rdseedintrin.h: Ditto.
11171 * config/i386/ammintrin.h: Ditto.
11172 * config/i386/emmintrin.h: Ditto.
11173 * config/i386/immintrin.h: Remove all header include guards.
11174 * config/i386/fma4intrin.h: Ditto.
11175 * config/i386/lwpintrin.h: Ditto.
11176 * config/i386/xopintrin.h: Ditto.
11177 * config/i386/ia32intrin.h: Ditto.
11178 * config/i386/avxintrin.h: Ditto.
11179 * config/i386/rtmintrin.h: Ditto.
11180 * config/i386/fmaintrin.h: Ditto.
11181 * config/i386/mm3dnow.h: Ditto.
11182
495e6879
ST
111832013-06-22 Sriraman Tallam <tmsriram@google.com>
11184
11185 * common/config/i386/i386-common.c: Handle LZCNT.
11186
11e8f687
AK
111872013-06-22 Andi Kleen <ak@linux.intel.com>
11188
11189 * doc/extend.texi: Use __atomic_store_n instead of
11190 __atomic_store in HLE example.
11191
12211b99 111922013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
664dd721
OE
11193
11194 * config/sh/sh.c: Remove <cstdlib> workaround.
11195
927f908b
AK
111962013-06-21 Andi Kleen <ak@linux.intel.com>
11197
0ba6aff3 11198 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 11199
cca410b6
AK
112002013-06-21 Andi Kleen <ak@linux.intel.com>
11201
11202 * doc/extend.texi: Document that __atomic_clear and
11203 __atomic_test_and_set should only be used with bool.
11204
d84db1ed
JH
112052013-06-20 Jan Hubicka <jh@suse.cz>
11206
11207 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
11208 types_same_for_odr.
11209 * tree.c (decls_same_for_odr): New function.
11210 (same_for_edr): New function.
11211 (types_same_for_odr): New function.
11212 (get_binfo_at_offset): Use it.
11213 * tree.h (types_same_for_odr): Declare.
11214
12211b99 112152013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
11216 Jason Merrill <jason@redhat.com>
11217
11218 * system.h: Include <cstdlib> as well as <stdlib.h>.
11219
49b4ff63
UB
112202013-06-20 Uros Bizjak <ubizjak@gmail.com>
11221
11222 PR target/57655
11223 * config/i386/i386.c (construct_container): Report error if
11224 long double is used with disabled x87 float returns.
11225
7a89ad00
JH
112262013-06-20 Jan Hubicka <jh@suse.cz>
11227
11228 * lto-cgraph.c (input_symtab): Do not set cgraph state.
11229
12211b99 112302013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
bd280792
JR
11231
11232 PR rtl-optimization/57425
11233 PR rtl-optimization/57569
11234 * alias.c (write_dependence_p): Remove parameters mem_mode and
11235 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
11236 Changed all callers.
11237 (canon_anti_dependence): Get comments and semantics in sync.
11238 Add parameter mem_canonicalized. Changed all callers.
11239 * rtl.h (canon_anti_dependence): Update prototype.
11240
d16e9a99
RB
112412013-06-20 Richard Biener <rguenther@suse.de>
11242
11243 * data-streamer-in.c (streamer_read_uhwi): Optimize single
11244 byte case, inline streamer_read_uchar and defer section
11245 overrun check.
11246
c3a9b91b
RB
112472013-06-20 Richard Biener <rguenther@suse.de>
11248
11249 PR tree-optimization/57584
11250 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
11251 SSA names into the expanded expression that take part in
11252 abnormal coalescing.
11253
371e77e3 112542013-06-19 Sharad Singhai <singhai@google.com>
fc8a650e
SS
11255
11256 * gcov.c (print_usage): Handle new option.
11257 (process_args): Ditto.
11258 (get_gcov_intermediate_filename): New function.
11259 (output_intermediate_file): New function.
11260 (output_gcov_file): New function
11261 (generate_results): Handle new option.
11262 (release_function): Relase demangled name.
11263 (read_graph_file): Handle demangled name.
11264 (output_lines): Ditto.
11265 * doc/gcov.texi: Document gcov intermediate format.
11266
11f5b71a
VM
112672013-06-19 Vladimir Makarov <vmakarov@redhat.com>
11268
11269 PR bootstrap/57604
11270 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
11271 (lra_emit_add): Use the functions. Add comment about Y as an
11272 address segment.
11273
e1f9340b
DE
112742013-06-19 David Edelsohn <dje.gcc@gmail.com>
11275
11276 PR driver/57652
11277 * collect2.c (collect_atexit): New.
11278 (collect_exit): Delete.
11279 (main): Register collect_atexit with atexit.
11280 (collect_wait): Change collect_exit to exit.
11281 (do_wait): Same.
11282 * collect2.h (collect_exit): Delete.
11283 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
11284
e3f9e0ac
WM
112852013-06-19 Wei Mi <wmi@google.com>
11286
11287 PR rtl-optimization/57518
11288 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
11289 if regno is used in paradoxical subreg.
11290 (update_equiv_regs): Check pdx_subregs[regno] before
11291 set a reg to be equivalent with a mem.
11292
a09f1a76
MK
112932013-06-19 Matthias Klose <doko@ubuntu.com>
11294
11295 PR driver/57651
11296 * file-find.h (find_a_file): Add a mode parameter.
11297 * file-find.c (find_a_file): Likewise.
11298 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
11299 with X_OK for the executables.
11300 * collect2.c (main): Call find_a_file with X_OK.
11301
7d18b0ad
SE
113022013-06-19 Steve Ellcey <sellcey@mips.com>
11303
11304 PR target/56942
11305 * config/mips/mips.md (casesi_internal_mips16_<mode>):
11306 Use NEXT_INSN instead of next_real_insn.
11307
6a6dac52
JH
113082013-06-19 Jan Hubicka <jh@suse.cz>
11309
11310 * cgraph.h (const_value_known_p): Replace by ...
11311 (ctor_for_folding): .. this one.
11312 * cgraphunit.c (process_function_and_variable_attributes): Use it.
11313 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
11314 * expr.c (expand_expr_real_1): Likewise.
11315 (string_constant): Likewise.
11316 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
11317 * ipa.c (process_references): Likewise.
11318 (symtab_remove_unreachable_nodes): Likewise.
11319 * ipa-inline-analysis.c (param_change_prob): Likewise.
11320 * gimple-fold.c (canonicalize_constructor_val): Likewise.
11321 (get_base_constructor): Likwise.
11322 * varpool.c (varpool_remove_node): Likewise.
11323 (varpool_remove_initializer): LIkewise.
11324 (dump_varpool_node): LIkwise.
11325 (const_value_known_p): Rewrite to ...
11326 (ctor_for_folding): ... this one.
11327
216c12ab
JJ
113282013-06-19 Jakub Jelinek <jakub@redhat.com>
11329
11330 PR driver/57651
11331 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
11332 PERSONALITY in $PATH derived prefixes.
11333
d53e2f99
JL
113342013-06-19 Jeff Law <law@redhat.com>
11335
ecdbf306
JL
11336 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
11337 in comment.
11338
d53e2f99
JL
11339 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
11340 (simplify_bitwise_binary): Use it to simpify certain binary ops on
11341 booleans.
11342
89e7fc04
SN
113432013-06-19 Sofiane Naci <sofiane.naci@arm.com>
11344
11345 * config/arm/vfp.md: Move VFP instruction classification documentation
11346 to ...
11347 * config/arm/arm.md: ... here. Update instruction classification
11348 documentation.
11349
5e7f6aaa
RE
113502013-06-19 Richard Earnshaw <rearnsha@arm.com>
11351
11352 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
11353 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
11354 pattern. Use more efficient sequences on ARMv5 and Thumb2.
11355
5fdc1e5d
SB
113562013-06-19 Steven Bosscher <steven@gcc.gnu.org>
11357
11358 PR target/57609
11359 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
11360 with NEXT_INSN. Use tablejump_p to check for jump table data
11361 insns.
11362
e952afba
PC
113632013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
11364
11365 PR c++/56544
11366 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
11367 that now in C++ the value is correct per the C++ standards.
11368
3fd0303a
RB
113692013-06-19 Richard Biener <rguenther@suse.de>
11370
11371 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
11372 for global context.
11373
b04e4b08
AK
113742013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11375
11376 Revert:
11377 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11378
11379 PR target/57609
11380 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
11381 with next_active_insn.
11382
bef8491a
ST
113832013-06-18 Sriraman Tallam <tmsriram@google.com>
11384
11385 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
11386 functions are inlined during failures to flag an error.
11387 * tree-inline.c (expand_call_inline): Allow the error to be flagged
11388 in early inline pass.
22fc7d3d 11389
c21b257d
L
113902013-06-18 H.J. Lu <hongjiu.lu@intel.com>
11391
11392 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
11393 in comments.
11394
33255ae3
JB
113952013-06-18 Julian Brown <julian@codesourcery.com>
11396
11397 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
11398 Permit virtual register pre-reload if !strict.
11399 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
11400 change.
11401 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
11402 prototype.
11403 * config/arm/neon.md (movmisalign<mode>): Use
11404 neon_perm_struct_or_reg_operand instead of
11405 neon_struct_or_register_operand.
11406 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
11407 neon_permissive_struct_operand instead of neon_struct_operand.
11408 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
11409 neon_vector_mem_operand.
11410 * config/arm/predicates.md (neon_struct_operand): Adjust call to
11411 neon_vector_mem_operand.
11412 (neon_permissive_struct_operand): New.
11413 (neon_struct_or_register_operand): Rename to...
11414 (neon_perm_struct_or_reg_operand): This. Adjust call to
11415 neon_vector_mem_operand.
11416
d579fcda
RB
114172013-06-18 Richard Biener <rguenther@suse.de>
11418
11419 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
11420 * lto-streamer.h: Include pointer-set.h.
11421 (struct lto_decl_slot): Remove.
11422 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
11423 Remove next_index entry.
11424 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
11425 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
11426 (lto_init_tree_ref_encoder): Adjust.
11427 (lto_destroy_tree_ref_encoder): Likewise.
11428 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
11429 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
11430 (lto_output_decl_index): Adjust.
11431 (lto_new_out_decl_state): Likewise.
11432 (lto_record_function_out_decl_state): Likewise.
11433 * lto-streamer-out.c (copy_function): Likewise.
11434
31ee20ba
RB
114352013-06-18 Richard Biener <rguenther@suse.de>
11436
11437 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
11438 * cgraphunit.c: Include cfgloop.h.
11439 (init_lowered_empty_function): Initialize the loop tree.
11440 (assemble_thunk): Insert new BBs into loops.
11441
ac0511f2
RB
114422013-06-18 Richard Biener <rguenther@suse.de>
11443
11444 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
11445 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
11446 the map from cache entry to cache index optional.
11447 (streamer_tree_cache_replace_tree): Adjust accordingly.
11448 (streamer_tree_cache_append): Likewise.
11449 (streamer_tree_cache_delete): Likewise.
11450 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
11451 streamer cache map from cache entry to cache index.
11452 * lto-streamer-out.c (create_output_block): Adjust.
11453
09485a08
SN
114542013-06-18 Sofiane Naci <sofiane.naci@arm.com>
11455
22fc7d3d
UB
11456 * config/arm/arm.md (attribute "insn"): Move multiplication and
11457 division attributes to...
09485a08
SN
11458 (attribute "type"): ... here. Remove mult.
11459 (attribute "mul32"): New attribute.
11460 (attribute "mul64"): Add umaal.
11461 (*arm_mulsi3): Update attributes.
11462 (*arm_mulsi3_v6): Likewise.
11463 (*thumb_mulsi3): Likewise.
11464 (*thumb_mulsi3_v6): Likewise.
11465 (*mulsi3_compare0): Likewise.
11466 (*mulsi3_compare0_v6): Likewise.
11467 (*mulsi_compare0_scratch): Likewise.
11468 (*mulsi_compare0_scratch_v6): Likewise.
11469 (*mulsi3addsi): Likewise.
11470 (*mulsi3addsi_v6): Likewise.
11471 (*mulsi3addsi_compare0): Likewise.
11472 (*mulsi3addsi_compare0_v6): Likewise.
11473 (*mulsi3addsi_compare0_scratch): Likewise.
11474 (*mulsi3addsi_compare0_scratch_v6): Likewise.
11475 (*mulsi3subsi): Likewise.
11476 (*mulsidi3adddi): Likewise.
11477 (*mulsi3addsi_v6): Likewise.
11478 (*mulsidi3adddi_v6): Likewise.
11479 (*mulsidi3_nov6): Likewise.
11480 (*mulsidi3_v6): Likewise.
11481 (*umulsidi3_nov6): Likewise.
11482 (*umulsidi3_v6): Likewise.
11483 (*umulsidi3adddi): Likewise.
11484 (*umulsidi3adddi_v6): Likewise.
11485 (*smulsi3_highpart_nov6): Likewise.
11486 (*smulsi3_highpart_v6): Likewise.
11487 (*umulsi3_highpart_nov6): Likewise.
11488 (*umulsi3_highpart_v6): Likewise.
11489 (mulhisi3): Likewise.
11490 (*mulhisi3tb): Likewise.
11491 (*mulhisi3bt): Likewise.
11492 (*mulhisi3tt): Likewise.
11493 (maddhisi4): Likewise.
11494 (*maddhisi4tb): Likewise.
11495 (*maddhisi4tt): Likewise.
11496 (maddhidi4): Likewise.
11497 (*maddhidi4tb): Likewise.
11498 (*maddhidi4tt): Likewise.
11499 (divsi3): Likewise.
11500 (udivsi3): Likewise.
11501 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
11502 (thumb2_mulsi_short_compare0): Likewise.
11503 (thumb2_mulsi_short_compare0_scratch): Likewise.
11504 * config/arm/arm1020e.md (1020mult1): Update attribute change.
11505 (1020mult2): Likewise.
11506 (1020mult3): Likewise.
11507 (1020mult4): Likewise.
11508 (1020mult5): Likewise.
11509 (1020mult6): Likewise.
22fc7d3d
UB
11510 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
11511 change.
09485a08
SN
11512 (cortex_a15_mult64): Likewise.
11513 (cortex_a15_sdiv): Likewise.
11514 (cortex_a15_udiv): Likewise.
11515 * config/arm/arm1026ejs.md (mult1): Update attribute change.
11516 (mult2): Likewise.
11517 (mult3): Likewise.
11518 (mult4): Likewise.
11519 (mult5): Likewise.
11520 (mult6): Likewise.
11521 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
11522 (pj4_ir_div): Likewise.
11523 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
11524 (11_mult2): Likewise.
11525 (11_mult3): Likewise.
11526 (11_mult4): Likewise.
11527 (11_mult5): Likewise.
11528 (11_mult6): Likewise.
11529 (11_mult7): Likewise.
11530 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
11531 (cortex_a8_mla): Likewise.
11532 (cortex_a8_mull): Likewise.
11533 (cortex_a8_smulwy): Likewise.
11534 (cortex_a8_smlald): Likewise.
11535 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
11536 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
11537 (cortex_r4_mul_3): Likewise.
11538 (cortex_r4_mla_4): Likewise.
11539 (cortex_r4_mla_3): Likewise.
11540 (cortex_r4_smlald): Likewise.
11541 (cortex_r4_mull): Likewise.
11542 (cortex_r4_sdiv): Likewise.
11543 (cortex_r4_udiv): Likewise.
11544 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
11545 (cortex_a7_idiv): Likewise.
11546 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
11547 (9_mult2): Likewise.
11548 (9_mult3): Likewise.
11549 (9_mult4): Likewise.
11550 (9_mult5): Likewise.
11551 (9_mult6): Likewise.
11552 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
11553 (cortex_a53_sdiv): Likewise.
11554 (cortex_a53_udiv): Likewise.
11555 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
11556 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
11557 (mp626_mult2): Likewise.
11558 (mp626_mult3): Likewise.
11559 (mp626_mult4): Likewise.
11560 * config/arm/fa526.md (526_mult1): Update attribute change.
11561 (526_mult2): Likewise.
11562 * config/arm/arm-generic.md (mult): Update attribute change.
11563 (mult_ldsched_strongarm): Likewise.
11564 (mult_ldsched): Likewise.
11565 (multi_cycle): Likewise.
11566 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
11567 * config/arm/fa606te.md (606te_mult1): Update attribute change.
11568 (606te_mult2): Likewise.
11569 (606te_mult3): Likewise.
11570 (606te_mult4): Likewise.
11571 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
11572 (cortex_a9_mac16): Likewise.
11573 (cortex_a9_multiply): Likewise.
11574 (cortex_a9_mac): Likewise.
11575 (cortex_a9_multiply_long): Likewise.
11576 * config/arm/fa626te.md (626te_mult1): Update attribute change.
11577 (626te_mult2): Likewise.
11578 (626te_mult3): Likewise.
11579 (626te_mult4): Likewise.
11580
8951f345
RB
115812013-06-18 Richard Biener <rguenther@suse.de>
11582
11583 PR lto/57334
11584 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
11585
d8101d05
AK
115862013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11587
11588 PR target/57609
11589 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
11590 with next_active_insn.
11591
69eff9da
AM
115922013-06-18 Alan Modra <amodra@gmail.com>
11593
11594 * config/rs6000/rs6000.h (enum data_align): New.
11595 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
11596 (DATA_ABI_ALIGNMENT): Define.
11597 (CONSTANT_ALIGNMENT): Correct comment.
11598 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
11599 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
11600
8ed00d76
DM
116012013-06-17 David Malcolm <dmalcolm@redhat.com>
11602
11603 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
11604 ATTRIBUTE_UNUSED marking.
11605
3d33d06b
SN
116062013-06-17 Sofiane Naci <sofiane.naci@arm.com>
11607
11608 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
11609 alternative and update.
11610 (aarch64_dup_lanedi): Delete.
11611 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
11612 * config/aarch64/aarch64-simd-builtins.def: Update.
11613
ee03e71d
RB
116142013-06-17 Richard Biener <rguenther@suse.de>
11615
11616 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
11617 (lto_input_scc): Declare.
11618 (lto_input_tree_1): Likewise.
11619 (struct lto_stats_d): Add num_tree_bodies_output and
11620 num_pickle_refs_output.
11621 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
11622 (lto_read_tree_1): Split out from ...
11623 (lto_read_tree): ... this.
11624 (lto_input_scc): New function.
11625 (lto_input_tree_1): Split out from ...
11626 (lto_input_tree): ... this. Handle LTO_tree_scc.
11627 (lto_data_in_create): Create the streamer cache without hashes.
11628 * lto-streamer-out.c (create_output_block): Create the streamer
11629 cache with hashes when not doing WPA.
11630 (lto_write_tree_1): Split out from ...
11631 (lto_write_tree): ... this.
11632 (get_symbol_initial_value): New function.
11633 (lto_output_tree_1): Split out from ...
11634 (lto_output_tree): ... this. Write trees as series of SCCs
11635 using a DFS walk via DFS_write_tree.
11636 (struct sccs, struct scc_entry): New types.
11637 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
11638 (DFS_write_tree_body): New function.
11639 (DFS_write_tree): Likewise.
11640 (hash_tree): Likewise.
11641 (scc_entry_compare): Likewise.
11642 (hash_scc): Likewise.
11643 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
11644 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
11645 TREE_CHAIN as regular reference.
11646 (streamer_read_integer_cst): Remove.
11647 (streamer_get_pickled_tree): Adjust.
11648 * tree-streamer-out.c (streamer_write_chain): Disable streaming
11649 of DECL_EXTERNALs in BLOCK_VARS for now.
11650 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
11651 reference.
11652 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
11653 Add hash value argument and record that if hashes are recorded
11654 in the cache.
11655 (streamer_tree_cache_insert_1): Adjust.
11656 (streamer_tree_cache_insert): Likewise.
11657 (streamer_tree_cache_insert_at): Rename to ...
11658 (streamer_tree_cache_replace_tree): ... this and adjust.
11659 (streamer_tree_cache_append): Adjust.
11660 (record_common_node): Likewise.
11661 (streamer_tree_cache_create): Add argument whether to
11662 record hash values together with trees.
11663 (streamer_tree_cache_delete): Adjust.
11664 * tree-streamer.h (struct streamer_tree_cache_d): Add
11665 vector of hashes.
11666 (streamer_read_integer_cst): Remove.
11667 (streamer_tree_cache_insert): Adjust.
11668 (streamer_tree_cache_append): Likewise.
11669 (streamer_tree_cache_insert_at): Rename to ...
11670 (streamer_tree_cache_replace_tree): ... this and adjust.
11671 (streamer_tree_cache_create): Add argument whether to record hashes.
11672 (streamer_tree_cache_get): Rename to ...
11673 (streamer_tree_cache_get_tree): ... this.
11674 (streamer_tree_cache_get_hash): New function.
11675 * tree.c (cache_integer_cst): New function.
11676 * tree.h (cache_integer_cst): Declare.
11677 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
11678 * lto-symtab.c (lto_varpool_replace_node): Only release
11679 DECL_INITIAL of non-prevailing decls.
11680 * varpool.c (varpool_remove_initializer): Do not release
11681 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
11682
0de86a92
JU
116832013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
11684
11685 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
11686 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
11687 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
11688 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
11689 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
11690 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
11691 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
11692 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
11693 instead of TARGET_64BIT.
11694 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
11695 Require ISA_HAS_<D>DIV.
11696
74240413
RS
116972013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
11698
11699 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
11700 (mips*-*-linux*): Move default with_llsc setting to where other
11701 defaults are set.
11702 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
11703 with_arch block.
11704 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
11705 Likewise. Remove default with_tune setting. Move default float
11706 setting to its own block. Handle with_llsc in the same block as above.
11707
12211b99 117082013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
393f9fed
JR
11709
11710 PR rtl-optimization/57425
11711 PR rtl-optimization/57569
299a5f6a 11712 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
11713 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
11714 Changed all callers.
11715 (canon_anti_dependence): New function.
11716 * cse.c (check_dependence): Use canon_anti_dependence.
11717 * cselib.c (cselib_invalidate_mem): Likewise.
11718 * rtl.h (canon_anti_dependence): Declare.
11719
b259d352
JU
117202013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
11721
11722 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
11723 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
11724 ".set mips3" for 64-bit targets.
11725
4de09b85
DC
117262013-06-15 Dehao Chen <dehao@google.com>
11727
11728 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
11729 * gimple-low.c (gimple_check_call_matching_types): Likewise.
11730 (gimple_check_call_args): Likewise.
11731 * value-prof.c (check_ic_target): Likewise.
11732 * ipa-inline.c (early_inliner): Likewise.
11733 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
11734 * cgraph.c (cgraph_create_edge_1): Likewise.
11735 (cgraph_make_edge_direct): Likewise.
11736
d1aa4a76
MM
117372013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11738
11739 PR target/57615
11740 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
11741 rs6000_output_move_128bit to handle emitting quad memory
11742 operations. Set attribute length to 8 bytes.
11743
12211b99 117442013-06-14 Vidya Praveen <vidyapraveen@arm.com>
24244e4d
VP
11745
11746 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
11747 New pattern.
11748 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
11749 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
11750 (aarch64_<su>mlsl<mode>): Likewise.
11751
f5273574
MS
117522013-06-14 Mike Stump <mikestump@comcast.net>
11753
11754 * Makefile.in (TARGET_H): Add insn-codes.h.
11755
ef7e7ab2
AM
117562013-06-14 Alan Modra <amodra@gmail.com>
11757
11758 PR middle-end/57134
11759 PR middle-end/57586
11760 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
11761 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
11762 bitfield expansion when EXPAND_MEMORY.
11763 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
11764
135faab6
MM
117652013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
11766
11767 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
11768 test for clearing quad memory on 32-bit later.
11769
948a1fd9
MG
117702013-06-13 Marc Glisse <marc.glisse@inria.fr>
11771
11772 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
11773 (fold_negate_expr): Likewise.
11774 (fold_real_zero_addition_p): Handle vectors.
11775 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
11776
0597fb9c
AM
117772013-06-14 Alan Modra <amodra@gmail.com>
11778
11779 * varasm.c (force_const_mem): Revert 2013-06-07 change.
11780
e5b962d0
JH
117812013-06-13 Jan Hubicka <jh@suse.cz>
11782
11783 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
11784 Local comdats are not externally visible.
11785 * symtab.c (dump_symtab_base): Dump externally visible.
11786 (verify_symtab_base): Verify back links in the symtab hash.
11787
a8355e51
BC
117882013-06-13 Bin Cheng <bin.cheng@arm.com>
11789
11790 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
11791 CONVERT_EXPR as equal nodes.
11792
8f7e6e33
BC
117932013-06-13 Bin Cheng <bin.cheng@arm.com>
11794
22fc7d3d 11795 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 11796
5d418483
MG
117972013-06-13 Marc Glisse <marc.glisse@inria.fr>
11798
11799 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
11800 Generalize to complex and vector.
11801 * tree.c (build_all_ones_cst): New function.
11802 * tree.h (build_all_ones_cst): Declare it.
11803
50751417
AM
118042013-06-13 Alan Modra <amodra@gmail.com>
11805
11806 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
11807 * config/rs6000/rs6000.md (signbittf2): New insn.
11808 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
11809 (abstf2_internal, cmptf_internal2): Likewise.
11810 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
11811
4b02c962 118122013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
11813 Pat Haugen <pthaugen@us.ibm.com>
11814 Peter Bergner <bergner@vnet.ibm.com>
4b02c962
MM
11815
11816 * config/rs6000/rs6000.c (emit_load_locked): Add support for
11817 power8 byte, half-word, and quad-word atomic instructions.
11818 (emit_store_conditional): Likewise.
11819 (rs6000_expand_atomic_compare_and_swap): Likewise.
11820 (rs6000_expand_atomic_op): Likewise.
11821
11822 * config/rs6000/sync.md (larx): Add new modes for power8.
11823 (stcx): Likewise.
11824 (AINT): New mode iterator to include TImode as well as normal
11825 integer modes on power8.
11826 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
11827 that VSX registers are not considered. Use AINT mode iterator
11828 instead of INT1 to allow inclusion of quad word atomic operations
11829 on power8.
11830 (load_locked<mode>): Likewise.
11831 (store_conditional<mode>): Likewise.
11832 (atomic_compare_and_swap<mode>): Likewise.
11833 (atomic_exchange<mode>): Likewise.
11834 (atomic_nand<mode>): Likewise.
11835 (atomic_fetch_<fetchop_name><mode>): Likewise.
11836 (atomic_nand_fetch<mode>): Likewise.
11837 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
11838 each type.
11839 (ATOMIC): On power8, add QImode, HImode modes.
11840 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
11841 modes that promote to SImode.
11842 (load_lockedti): Convert TImode arguments to PTImode, so that we
11843 get a guaranteed even/odd register pair.
11844 (load_lockedpti): Likewise.
11845 (store_conditionalti): Likewise.
11846 (store_conditionalpti): Likewise.
11847
11848 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
11849 atomic load/store instructions.
11850 (HSI): Likewise.
11851
710b6cc1
RS
118522013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
11853
11854 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
11855 loads.
11856 (insn_count): New attribute, with most cases extracted from...
11857 (length): ...here. Redefine most cases in terms of insn_count.
11858 (single_insn): Delete.
11859 (can_delay): Use insn_count to check for single instructions.
11860 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
11861 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
11862 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
11863 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
11864 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
11865 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
11866 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
11867 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
11868 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
11869 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
11870 rather than "length".
11871 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
11872 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
11873 Use "insn_count" rather than "length".
11874 * config/mips/mips-dsp.md
11875 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
11876 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
11877 length attributes.
11878
1951f101
MG
118792013-06-12 Marc Glisse <marc.glisse@inria.fr>
11880
11881 PR tree-optimization/57361
11882 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
11883
8b033a8a
SN
118842013-06-12 Sofiane Naci <sofiane.naci@arm.com>
11885
22fc7d3d
UB
11886 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
11887 to split.
8b033a8a
SN
11888 (aarch64_simd_combine<mode>): New instruction expansion.
11889 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
11890 function prototype.
11891 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
11892 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
11893
ca0f62a8
JH
118942013-06-12 Jan Hubicka <jh@suse.cz>
11895
11896 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
11897 decl has when in streaming stage.
11898 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
11899 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
11900
12211b99 119012013-06-12 Roland Stigge <stigge@antcom.de>
cddd69eb
RS
11902
11903 PR target/57578
11904 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
11905
bfdeda2c
JJ
119062013-06-12 Jakub Jelinek <jakub@redhat.com>
11907
11908 PR tree-optimization/57537
11909 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
11910 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
11911
a4fa02d1
RB
119122013-06-12 Richard Biener <rguenther@suse.de>
11913
11914 * data-streamer.h (streamer_write_char_stream): CSE
11915 obs->current_pointer.
11916 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
11917 streamer_write_char_stream manually and optimize the resulting loop.
11918 (streamer_write_hwi_stream): Likewise.
11919
bbf9ad07
JH
119202013-06-12 Jan Hubicka <jh@suse.cz>
11921
11922 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
11923 * cgraph.h (varpool_create_empty_node): Declare.
11924 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
11925 duplicated nodes.
11926 * symtab.c (symtab_unregister_node): Be lax about missin entries
11927 in node hash.
11928 (symtab_get_node): Update comment.
11929 * varpool.c (varpool_create_empty_node): Break out from ...
11930 (varpool_node_for_decl): ... here.
11931 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
11932
a53f90ad
EB
119332013-06-12 Eric Botcazou <ebotcazou@adacore.com>
11934
11935 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
11936 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
11937 part. Use straight-line flow at the end.
11938 <COMPONENT_REF>: Remove superfluous else.
11939 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
11940
946f9306
JJ
119412013-06-12 Jakub Jelinek <jakub@redhat.com>
11942
11943 PR target/56564
11944 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
11945 target hook even for !TREE_PUBLIC decls. If no resolution info
11946 is available, return false for common and external decls.
11947
a7fca6f0
KP
119482013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
11949
11950 * config/rl78/constraints.md (U): New constraint.
11951 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
11952 valloc attribute.
11953
c7d8f446
MM
119542013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11955
11956 PR target/57589
11957 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
11958 to allow returning address to AT_PLATFORM name.
11959
08346abd
JH
119602013-06-11 Jan Hubicka <jh@suse.cz>
11961
11962 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
11963 * cgraph.h (symtab_node_base): Add weakref flag.
11964 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
11965 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
11966 (output_weakrefs): Use weakref flag.
11967 * fold-const.c (simple_operand_p): Handle WEAK.
11968 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
11969 * ipa.c (varpool_externally_visible_p): Drop weakref.
11970 (function_and_variable_visibility): Update comment; fix weakref
11971 sanity checks; do not clear DECL_WEAK on them.
11972 * lto-cgraph.c (lto_output_node): update.
11973 (lto_output_varpool_node): Update.
11974 (input_overwrite_node): Update.
11975 (input_node): Update.
11976 (input_varpool_node): Update.
11977 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
11978 (lto_symtab_merge_symbols): Add sanity check.
11979 (lto_symtab_prevailing_decl): Do not special case weakrefs.
11980 * passes.c (rest_of_decl_compilation): Set static flag, too.
11981 * symtab.c (dump_symtab_base): Dump weakref.
11982 (verify_symtab_base): Sanity check weakrefs.
11983 (symtab_make_decl_local): Remove duplicated code.
11984 (symtab_alias_ultimate_target): Simplify.
11985 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 11986
2e6a2f88
TV
119872013-06-11 Tom de Vries <tom@codesourcery.com>
11988
11989 * genautomata.c (gen_regexp_sequence): Handle els_num == -1. Handle
11990 sequence_vect == NULL.
11991
d9af3652
DD
119922013-06-11 DJ Delorie <dj@redhat.com>
11993
11994 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
11995 (rl78_unwind_word_mode): New.
11996
ffa66012
DM
119972013-06-11 David Malcolm <dmalcolm@redhat.com>
11998
11999 * final.c (debug_prefix_maps): Make static.
12000
783f2d35
DM
120012013-06-11 David Malcolm <dmalcolm@redhat.com>
12002
12003 * function.c (initial_trampoline): Remove stray copy.
12004
7af26def
SN
120052013-06-11 Sofiane Naci <sofiane.naci@arm.com>
12006
12007 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
12008
97756c0e
MJ
120092013-06-11 Martin Jambor <mjambor@suse.cz>
12010
12011 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
12012 within bounds at the beginning of the function.
12013
2c7b8bf6
AM
120142013-06-11 Alan Modra <amodra@gmail.com>
12015
12016 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
12017 reporting.
12018 (get_named_section): Don't NULL !DECL_P decl.
12019
77cea46e
IZ
120202013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
12021
12022 * doc/invoke.texi (core-avx2): Document.
12023 (slm): Likewise.
12024 (atom): Updated with MOVBE.
12025
888f0920
RB
120262013-06-11 Richard Biener <rguenther@suse.de>
12027
22fc7d3d 12028 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 12029
6b438d58
AB
120302013-06-11 Anton Blanchard <anton@samba.org>
12031
12032 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
12033 correct shift value in little-endian mode.
12034
3bc66938
JJ
120352013-06-11 Jakub Jelinek <jakub@redhat.com>
12036
12037 PR target/56564
12038 * varasm.c (get_variable_align): Move #endif to the right place.
12039
a5dc7f88
CC
120402013-06-10 Cary Coutant <ccoutant@google.com>
12041
12042 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
12043 for hash so that hash table traversal order is deterministic.
12044
19be72ab 120452013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
12046 Pat Haugen <pthaugen@us.ibm.com>
12047 Peter Bergner <bergner@vnet.ibm.com>
19be72ab
MM
12048
12049 * config/rs6000/vector.md (GPR move splitter): Do not split moves
12050 of vectors in GPRS if they are direct moves or quad word load or
12051 store moves.
12052
12053 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
12054 declaration.
12055 (direct_move_p): Likewise.
12056 (quad_load_store_p): Likewise.
12057
12058 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
12059 classes into bins based on the physical register type.
12060 (reg_class_to_reg_type): Likewise.
12061 (IS_STD_REG_TYPE): Likewise.
12062 (IS_FP_VECT_REG_TYPE): Likewise.
12063 (reload_fpr_gpr): Arrays to determine what insn to use if we can
12064 use direct move instructions.
12065 (reload_gpr_vsx): Likewise.
12066 (reload_vsx_gpr): Likewise.
12067 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
12068 information that is a simplification of register classes. Also
12069 precalculate direct move reload helpers.
12070 (direct_move_p): New function to return true if the operation can
12071 be done as a direct move instruciton.
12072 (quad_load_store_p): New function to return true if the operation
12073 is a quad memory operation.
12074 (rs6000_legitimize_address): If quad memory, only allow register
12075 indirect for TImode addresses.
12076 (rs6000_legitimate_address_p): Likewise.
12077 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
12078 (rs6000_reload_register_type): Likewise.
12079 (register_to_reg_type): Return register type.
12080 (rs6000_secondary_reload_simple_move): New helper function for
12081 secondary reload and secondary memory needed to identify anything
12082 that is a simple move, and does not need reloading.
12083 (rs6000_secondary_reload_direct_move): New helper function for
12084 secondary reload to identify cases that can be done with several
12085 instructions via the direct move instructions.
12086 (rs6000_secondary_reload_move): New helper function for secondary
12087 reload to identify moves between register types that can be done.
12088 (rs6000_secondary_reload): Add support for quad memory operations
12089 and for direct move.
12090 (rs6000_secondary_memory_needed): Likewise.
12091 (rs6000_debug_secondary_memory_needed): Change argument names.
12092 (rs6000_output_move_128bit): New function to return the move to
12093 use for 128-bit moves, including knowing about the various
12094 limitations of quad memory operations.
12095
12096 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
12097 memory operations. call rs6000_output_move_128bit for the actual
12098 instruciton(s) to generate.
12099 (vsx_movti_64bit): Likewise.
12100
12101 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
12102 (UNSPEC_P8V_MTVSRWZ): Likewise.
12103 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
12104 (UNSPEC_P8V_MTVSRD): Likewise.
12105 (UNSPEC_P8V_XXPERMDI): Likewise.
12106 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
12107 (UNSPEC_FUSION_GPR): Likewise.
12108 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 12109 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
12110 (f32_sv): Likewise.
12111 (f32_dm): Likewise.
12112 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
12113 loads and direct move instructions.
12114 (zero_extendsidi2_lfiwzx): Likewise.
12115 (extendsidi2_lfiwax): Likewise.
12116 (extendsidi2_nocell): Likewise.
12117 (floatsi<mode>2_lfiwax): Likewise.
12118 (lfiwax): Likewise.
12119 (floatunssi<mode>2_lfiwzx): Likewise.
12120 (lfiwzx): Likewise.
12121 (fix_trunc<mode>_stfiwx): Likewise.
12122 (fixuns_trunc<mode>_stfiwx): Likewise.
12123 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
12124 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
12125 (parity<mode>2_cmpb): Set length/type attr.
12126 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
12127 for 'mr.' to fast_compare.
12128 (bpermd_<mode>): Change type attr to popcnt.
12129 (p8_fmrgow_<mode>): New insns for power8 direct move support.
12130 (p8_mtvsrwz_1): Likewise.
12131 (p8_mtvsrwz_2): Likewise.
12132 (reload_fpr_from_gpr<mode>): Likewise.
12133 (p8_mtvsrd_1): Likewise.
12134 (p8_mtvsrd_2): Likewise.
12135 (p8_xxpermdi_<mode>): Likewise.
12136 (reload_vsx_from_gpr<mode>): Likewise.
12137 (reload_vsx_from_gprsf): Likewise.
12138 (p8_mfvsrd_3_<mode>): LIkewise.
12139 (reload_gpr_from_vsx<mode>): Likewise.
12140 (reload_gpr_from_vsxsf): Likewise.
12141 (p8_mfvsrd_4_disf): Likewise.
12142 (multi-word GPR splits): Do not split direct moves or quad memory
12143 operations.
12144
16876bdc
DM
121452013-06-10 David Malcolm <dmalcolm@redhat.com>
12146
12147 * tree-into-ssa.c (interesting_blocks): Make static.
12148
df8a1d28
JJ
121492013-06-10 Jakub Jelinek <jakub@redhat.com>
12150
12151 PR target/56564
12152 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
12153 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
12154 Use DATA_ABI_ALIGNMENT for that case instead if defined.
12155 (get_variable_align): New function.
12156 (get_variable_section, emit_bss, emit_common,
12157 assemble_variable_contents, place_block_symbol): Use
12158 get_variable_align instead of DECL_ALIGN.
12159 (assemble_noswitch_variable): Add align argument, use it
12160 instead of DECL_ALIGN.
12161 (assemble_variable): Adjust caller. Use get_variable_align
12162 instead of DECL_ALIGN.
12163 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
12164 caller.
12165 (DATA_ABI_ALIGNMENT): Define.
12166 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
12167 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
12168 opt is false, only return the psABI mandated alignment increase.
12169 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
12170 (DATA_ABI_ALIGNMENT): ... this.
12171 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
12172 (DATA_ABI_ALIGNMENT): ... this.
12173 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
12174 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
12175 (DATA_ABI_ALIGNMENT): ... this.
12176 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
12177 * doc/tm.texi: Regenerated.
12178
57b29ca6
UB
121792013-06-10 Uros Bizjak <ubizjak@gmail.com>
12180
12181 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
12182 cmp_code to construct REG_EQUAL note.
12183
3e56ed50
JJ
121842013-06-09 Jakub Jelinek <jakub@redhat.com>
12185
12186 PR target/57568
12187 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
12188 that operands[2] doesn't overlap with operands[0].
12189
74fe2a1d
DE
121902013-06-09 David Edelsohn <dje.gcc@gmail.com>
12191 Jan Hubicka <jh@suse.cz>
12192
12193 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
12194 hack to mark symbols as used.
12195
ed52a84e
VM
121962013-06-08 Vladimir Makarov <vmakarov@redhat.com>
12197
12198 PR rtl-optimization/57559
12199 * lra-constraints.c (process_alt_operands): Don't discourage
12200 memory with known offset for offsetable memory constraint.
12201 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
12202
299316ed
EB
122032013-06-08 Eric Botcazou <ebotcazou@adacore.com>
12204
12205 * varasm.c (struct oc_local_state): Reorder fields.
12206 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
12207 and adjust accordingly.
12208 (output_constructor): Reorder initialization code and adjust call to
12209 output_constructor_bitfield.
12210
88ac60d3
JH
122112013-06-07 Jan Hubicka <jh@suse.cz>
12212
12213 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
12214
4cdce1a8
DM
122152013-06-07 David Malcolm <dmalcolm@redhat.com>
12216
12217 * tree-object-size.c (unknown): Make const.
12218
b5e0425c
AK
122192013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12220
12221 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
12222 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
12223 for last alternative in the cpu_facility attribute.
12224
79678d04
KT
122252013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12226
12227 PR target/56315
12228 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
12229 (xordi3): Change operand 2 constraint to arm_xordi_operand.
12230 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
12231 * config/arm/constraints.md (Dg): New constraint.
12232 * config/arm/neon.md (xordi3_neon): Remove.
12233 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
12234 * config/arm/predicates.md (arm_xordi_operand): New predicate.
12235
b31ddbdb
KT
122362013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12237
12238 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
12239 Clean up alternatives.
12240
8f90b7d4
AM
122412013-06-07 Alan Modra <amodra@gmail.com>
12242
12243 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
12244 va_list_gpr_size.
12245
961ce119
AM
122462013-06-07 Alan Modra <amodra@gmail.com>
12247
12248 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
12249
33e49835
KT
122502013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12251
12252 * config/arm/constraints.md (Df): New constraint.
12253 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
12254 Correct length attribute for last two alternatives.
12255
acd17ae6
AM
122562013-06-07 Alan Modra <amodra@gmail.com>
12257
12258 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12259 override user -mfp-in-toc.
12260 (offsettable_ok_by_alignment): Consider just the current access
12261 rather than the whole object, unless BLKmode. Handle
12262 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
12263 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
12264 for -mcmodel=medium.
12265 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
12266 override user -mfp-in-toc or -msum-in-toc. Default to
12267 -mno-fp-in-toc for -mcmodel=medium.
12268
73310b0e
DD
122692013-06-06 DJ Delorie <dj@redhat.com>
12270
12271 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
12272 TARGET_VALID_POINTER_MODE.
12273
0bd62dca 122742013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
12275 Pat Haugen <pthaugen@us.ibm.com>
12276 Peter Bergner <bergner@vnet.ibm.com>
0bd62dca
MM
12277
12278 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12279 Document new power8 builtins.
12280
12281 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
12282 condition code register, to allow 128-bit logical operations to be
12283 done in the VSX or GPR registers.
12284 (nor<mode>3): Use the canonical form for nor.
12285 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
12286 vclz*, and vpopcnt* vector instructions.
12287 (nand<mode>3): Likewise.
12288 (orc<mode>3): Likewise.
12289 (clz<mode>2): LIkewise.
12290 (popcount<mode>2): Likewise.
12291
12292 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
12293 that only the GPRs are recognized.
12294
12295 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12296 support for new power8 builtins.
12297
12298 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
12299 builtin functions.
12300 (xscvdpspn): Likewise.
12301 (vclz): Likewise.
12302 (vclzb): Likewise.
12303 (vclzh): Likewise.
12304 (vclzw): Likewise.
12305 (vclzd): Likewise.
12306 (vpopcnt): Likewise.
12307 (vpopcntb): Likewise.
12308 (vpopcnth): Likewise.
12309 (vpopcntw): Likewise.
12310 (vpopcntd): Likewise.
12311 (vgbbd): Likewise.
12312 (vmrgew): Likewise.
12313 (vmrgow): Likewise.
12314 (eqv): Likewise.
12315 (eqv_v16qi3): Likewise.
12316 (eqv_v8hi3): Likewise.
12317 (eqv_v4si3): Likewise.
12318 (eqv_v2di3): Likewise.
12319 (eqv_v4sf3): Likewise.
12320 (eqv_v2df3): Likewise.
12321 (nand): Likewise.
12322 (nand_v16qi3): Likewise.
12323 (nand_v8hi3): Likewise.
12324 (nand_v4si3): Likewise.
12325 (nand_v2di3): Likewise.
12326 (nand_v4sf3): Likewise.
12327 (nand_v2df3): Likewise.
12328 (orc): Likewise.
12329 (orc_v16qi3): Likewise.
12330 (orc_v8hi3): Likewise.
12331 (orc_v4si3): Likewise.
12332 (orc_v2di3): Likewise.
12333 (orc_v4sf3): Likewise.
12334 (orc_v2df3): Likewise.
12335
12336 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
12337 allow power8 quad mode in 64-bit.
12338 (rs6000_builtin_vectorized_function): Add support to vectorize
12339 ISA 2.07 count leading zeros, population count builtins.
12340 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
12341 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
12342 (builtin_function_type): Add vgbbd builtin function which takes an
12343 unsigned argument.
12344 (altivec_expand_vec_perm_const): Add support for new power8 merge
12345 instructions.
12346
12347 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
12348 that does not include TImdoe for use with 32-bit.
12349 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
12350 instructions.
12351 (UNSPEC_VSX_CVDPSPN): Likewise.
12352 (vsx_xscvdpspn): Likewise.
12353 (vsx_xscvspdpn): Likewise.
12354 (vsx_xscvdpspn_scalar): Likewise.
12355 (vsx_xscvspdpn_directmove): Likewise.
12356 (vsx_and<mode>3): Split logical operations into 32-bit and
12357 64-bit. Add support to do logical operations on TImode as well as
12358 VSX vector types. Allow logical operations to be done in either
12359 VSX registers or in general purpose registers in 64-bit mode. Add
12360 splitters if GPRs were used. For AND, add clobber of CCmode to
12361 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
12362 encoding.
12363 (vsx_and<mode>3_32bit): Likewise.
12364 (vsx_and<mode>3_64bit): Likewise.
12365 (vsx_ior<mode>3): Likewise.
12366 (vsx_ior<mode>3_32bit): Likewise.
12367 (vsx_ior<mode>3_64bit): Likewise.
12368 (vsx_xor<mode>3): Likewise.
12369 (vsx_xor<mode>3_32bit): Likewise.
12370 (vsx_xor<mode>3_64bit): Likewise.
12371 (vsx_one_cmpl<mode>2): Likewise.
12372 (vsx_one_cmpl<mode>2_32bit): Likewise.
12373 (vsx_one_cmpl<mode>2_64bit): Likewise.
12374 (vsx_nor<mode>3): Likewise.
12375 (vsx_nor<mode>3_32bit): Likewise.
12376 (vsx_nor<mode>3_64bit): Likewise.
12377 (vsx_andc<mode>3): Likewise.
12378 (vsx_andc<mode>3_32bit): Likewise.
12379 (vsx_andc<mode>3_64bit): Likewise.
12380 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
12381 and xxlorc instructions.
12382 (vsx_eqv<mode>3_64bit): Likewise.
12383 (vsx_nand<mode>3_32bit): Likewise.
12384 (vsx_nand<mode>3_64bit): Likewise.
12385 (vsx_orc<mode>3_32bit): Likewise.
12386 (vsx_orc<mode>3_64bit): Likewise.
12387
12388 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
12389
12390 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
12391 instruction.
12392 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
12393 (p8_vmrgow): Likewise.
12394 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
12395 GPRs to be split under VSX.
12396 (p8v_clz<mode>2): Add power8 count leading zero support.
12397 (p8v_popcount<mode>2): Add power8 population count support.
12398 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
12399 support.
12400
12401 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
12402 instruction.
12403
12404 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
12405 builtin functions.
12406 (vec_nand): Likewise.
12407 (vec_vclz): Likewise.
12408 (vec_vclzb): Likewise.
12409 (vec_vclzd): Likewise.
12410 (vec_vclzh): Likewise.
12411 (vec_vclzw): Likewise.
12412 (vec_vgbbd): Likewise.
12413 (vec_vmrgew): Likewise.
12414 (vec_vmrgow): Likewise.
12415 (vec_vpopcnt): Likewise.
12416 (vec_vpopcntb): Likewise.
12417 (vec_vpopcntd): Likewise.
12418 (vec_vpopcnth): Likewise.
12419 (vec_vpopcntw): Likewise.
12420
37684c46
VM
124212013-06-06 Vladimir Makarov <vmakarov@redhat.com>
12422
12423 PR rtl-optimization/57468
12424 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
12425 spilled pseudos.
12426
d89ae27c
VM
124272013-06-06 Vladimir Makarov <vmakarov@redhat.com>
12428
12429 PR rtl-optimization/57459
12430 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
12431 type when setting live regs.
12432
3597e113
VM
124332013-06-06 Vladimir Makarov <vmakarov@redhat.com>
12434
12435 * config/s390/s390.opt (mlra): New option.
12436 * config/s390/s390.c (s390_decompose_address): Check displacement
12437 for all registers for LRA.
12438 (s390_secondary_reload): Don't used secondary reloads for LRA.
12439 (s390_lra_p): New function.
12440 (TARGET_LRA_P): Define.
12441 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
12442 of attribute cpu_facility to zarch for the last alternative.
12443 (*cmpmem_short): Ditto.
12444
01037aeb
EB
124452013-06-06 Eric Botcazou <ebotcazou@adacore.com>
12446
12447 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
12448 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
12449 (arm_expand_prologue): Likewise.
12450
3371a64f
TJ
124512013-06-06 Teresa Johnson <tejohnson@google.com>
12452
12453 PR c++/53743
12454 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
12455 as this is now done by redirect_edge_and_branch_force.
12456 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
12457 barriers, and fix interaction with splitting.
12458 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
12459 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
12460 reflect changes made in the routine.
12461 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
12462 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
12463 since this is called in cfglayout mode, and replace partition fixup
12464 with assert as that is now done by force_nonfallthru_and_redirect.
12465 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
12466 already be marked with region crossing note.
12467 (insert_section_boundary_note): Make non-static, gate on flag
12468 has_bb_partition, rewrite to also check for multiple partitions.
12469 (rest_of_handle_reorder_blocks): Remove call to
12470 insert_section_boundary_note, now done later during free_cfg.
12471 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
12472 * bb-reorder.h (insert_section_boundary_note): Declare.
12473 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
12474 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
12475 invoke insert_section_boundary_note.
12476 (try_redirect_by_replacing_jump): Remove unnecessary
12477 check for region crossing note.
12478 (fixup_partition_crossing): New function.
12479 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
12480 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
12481 in non-cfglayout mode.
12482 (force_nonfallthru_and_redirect): Fixup partition boundaries,
12483 remove old code that tried to do this. Emit barrier correctly
12484 when we are in cfglayout mode.
12485 (last_bb_in_partition): New function.
12486 (rtl_split_edge): Correctly fixup partition boundaries.
12487 (commit_one_edge_insertion): Remove old code that tried to
12488 fixup region crossing edge since this is now handled in
12489 split_block, and set up insertion point correctly since
12490 block may now end in a jump.
12491 (verify_hot_cold_block_grouping): Guard against checking when not in
12492 linearized RTL mode.
12493 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
12494 notes.
12495 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
12496 rtl_verify_flow_info, so not called in cfglayout mode.
12497 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
12498 (fixup_reorder_chain): Remove old code that attempted to fixup region
12499 crossing note as this is now handled in force_nonfallthru_and_redirect.
12500 (duplicate_insn_chain): Don't duplicate switch section notes.
12501 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
12502 note.
12503 * basic-block.h (emit_barrier_after_bb): Declare.
12504
66071e10
KT
125052013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12506
12507 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
12508 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
12509 arm_usatsihi): Adjust alternatives for arm_restrict_it.
12510
0e26bf3d
KT
125112013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12512
12513 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
12514 where appropriate.
12515 * config/arm/ldmstm.md: Regenerate.
12516
12b4e7ef
KT
125172013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12518
12519 * config/arm/sync.md (atomic_loaddi_1):
12520 Disable predication for arm_restrict_it.
12521 (arm_load_exclusive<mode>): Likewise.
12522 (arm_load_exclusivesi): Likewise.
12523 (arm_load_exclusivedi): Likewise.
12524 (arm_load_acquire_exclusive<mode>): Likewise.
12525 (arm_load_acquire_exclusivesi): Likewise.
12526 (arm_load_acquire_exclusivedi): Likewise.
12527 (arm_store_exclusive<mode>): Likewise.
12528 (arm_store_exclusive<mode>): Likewise.
12529 (arm_store_release_exclusivedi): Likewise.
12530 (arm_store_release_exclusive<mode>): Likewise.
12531
15d16c8a
RB
125322013-06-06 Richard Biener <rguenther@suse.de>
12533
12534 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
12535 after LTO_null.
12536 (lto_tag_is_tree_code_p): Adjust.
12537 (lto_tag_is_gimple_code_p): Likewise.
12538 (lto_gimple_code_to_tag): Likewise.
12539 (lto_tag_to_gimple_code): Likewise.
12540 (lto_tree_code_to_tag): Likewise.
12541 (lto_tag_to_tree_code): Likewise.
12542 * data-streamer.h (streamer_write_hwi_in_range): Use
12543 uhwi streaming to stream the normalized range.
12544 (streamer_read_hwi_in_range): Likewise.
12545
17a7fc37
KT
125462013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12547
12548 * config/arm/arm.md (enabled_for_depr_it): New attribute.
12549 (predicable_short_it): Likewise.
12550 (predicated): Likewise.
12551 (enabled): Handle above.
12552 (define_cond_exec): Set predicated attribute to yes.
12553
b57ca59b
MS
125542013-06-05 Mike Stump <mikestump@comcast.net>
12555
12556 * gdbinit.in (__FUNCTION__): Add.
12557
c1e183a9
UB
125582013-06-05 Uros Bizjak <ubizjak@gmail.com>
12559
12560 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
12561 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
12562
0378bddb
JH
125632013-06-05 Jan Hubicka <jh@suse.cz>
12564
12565 * varasm.c (mark_decl_referenced): Revert the removal until targets
12566 are fixed.
12567
8f8a2057
DE
125682013-06-05 David Edelsohn <dje.gcc@gmail.com>
12569
12570 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
12571 instead of mark_decl_referenced.
12572
edb983b2
JH
125732013-06-05 Jan Hubicka <jh@suse.cz>
12574
12575 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
12576 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
12577 and symtab_used_from_object_file_p.
12578 (cgraph_make_node_local_1): Clear forced_by_abi.
12579 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
12580 * cgraph.h (symtab_node_base): Add forced_by_abi.
12581 (decide_is_variable_needed): Remove.
12582 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
12583 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
12584 (decide_is_symbol_needed): ... this one; handle symbols in general;
12585 always analyze virtuals; honnor forced_by_abi.
12586 (cgraph_finalize_function): Update.
12587 (varpool_finalize_decl): Update.
12588 (symbol_defined_and_needed): Remove.
12589 (analyze_functions): Update.
12590 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
12591 output_refs, input_overwrite_node): Handle forced_by_abi.
12592 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
12593 (address_taken_from_non_vtable_p): ... this one.
12594 (comdat_can_be_unshared_p_1): New function.
12595 (cgraph_comdat_can_be_unshared_p): Rename to ...
12596 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
12597 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
12598 (function_and_variable_visibility): Clear forced_by_abi as needed.
12599 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
12600 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
12601 * symtab.c (dump_symtab_base): Dump forced_by_abi.
12602 * varpool.c (decide_is_variable_needed): Remove.
12603
9912dbe5
KT
126042013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12605
12606 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
12607 (arm_option_override): Override arm_restrict_it where appropriate.
12608 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
12609 * config/arm/arm.opt (mrestrict-it): New command-line option.
12610 * doc/invoke.texi: Document -mrestrict-it.
12611
34c136b6
DM
126122013-06-05 David Malcolm <dmalcolm@redhat.com>
12613
12614 * tsan.c (tsan_atomic_table): Make const.
12615
a367df53
RB
126162013-06-05 Richard Biener <rguenther@suse.de>
12617
12618 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
12619 index associated with the tree we are supposed to replace.
12620 * tree-streamer-out.c (pack_ts_base_value_fields): Output
12621 TREE_ASM_WRITTEN as zero for everything but SSA names.
12622
70d51a19
DM
126232013-06-05 David Malcolm <dmalcolm@redhat.com>
12624
12625 * tree-ssa-structalias.c (call_stmt_vars): Make static.
12626
b9bd2075
JH
126272013-06-04 Jan Hubicka <jh@suse.cz>
12628
12629 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
12630 (input_node, input_varpool_node): Handle correctly external same
12631 body aliases.
12632 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
12633 nodes at ltrans stage.
12634
aaae719d
JH
126352013-06-04 Jan Hubicka <jh@suse.cz>
12636
12637 * ipa-inline.c (update_caller_keys): Fix availability test.
12638 (update_callee_keys): Likewise.
12639 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
12640 to follow ELF standard.
12641
107eea2c
JU
126422013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
12643
12644 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
12645 (mips64r5900el-*-elf*): New configurations.
12646 * config/mips/mips-cpus.def (r5900): New processor.
12647 * config/mips/mips-tables.opt: Regenerate.
12648 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
12649 (mips_issue_rate): Handle PROCESSOR_R5900.
12650 (mips_reorg_process_insns): Force reorder mode for the R5900.
12651 * config/mips/mips.h (TARGET_MIPS5900): Define.
12652 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
12653 TARGET_MIPS5900.
12654 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
12655 TARGET_MIPS5900.
12656 * config/mips/mips.md (processor): Add r5900.
12657 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
12658
b7342d25
IB
126592013-06-04 Ian Bolton <ian.bolton@arm.com>
12660
12661 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
12662 into function to generate MOVI instruction.
c1e183a9 12663 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
12664 (aarch64_preferred_simd_mode): Turn into wrapper.
12665 (aarch64_output_scalar_simd_mov_immediate): New function.
12666 * config/aarch64/aarch64-protos.h: Add prototype for above.
12667
81c2dfb9
IB
126682013-06-04 Ian Bolton <ian.bolton@arm.com>
12669
12670 * config/aarch64/aarch64.c (simd_immediate_info): Remove
12671 element_char member.
12672 (sizetochar): Return signed char.
12673 (aarch64_simd_valid_immediate): Remove elchar and other
12674 unnecessary variables.
12675 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
12676 Calculate element_char as required.
12677 * config/aarch64/aarch64-protos.h: Update and move prototype
12678 for aarch64_output_simd_mov_immediate.
12679 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
12680 Update arguments.
12681
48063b9d
IB
126822013-06-04 Ian Bolton <ian.bolton@arm.com>
12683
12684 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
12685 information completed by aarch64_simd_valid_immediate.
12686 (aarch64_legitimate_constant_p): Update arguments.
12687 (aarch64_simd_valid_immediate): Work with struct rather than many
12688 pointers.
12689 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
12690 (aarch64_simd_make_constant): Update arguments.
12691 (aarch64_output_simd_mov_immediate): Work with struct rather than
12692 many pointers. Output immediate directly rather than as operand.
12693 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
12694 Update prototype.
12695 * config/aarch64/constraints.md (Dn): Update arguments.
12696
3ea63f60
IB
126972013-06-04 Ian Bolton <ian.bolton@arm.com>
12698
12699 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
12700 longer static.
12701 (aarch64_simd_immediate_valid_for_move): Remove.
12702 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
12703 (aarch64_simd_make_constant): Update call.
12704 (aarch64_output_simd_mov_immediate): Update call.
12705 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
12706 Add prototype.
12707 * config/aarch64/constraints.md (Dn): Update call.
12708
d8edd899
IB
127092013-06-04 Ian Bolton <ian.bolton@arm.com>
12710
12711 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
12712 return type to bool for prototype.
12713 (aarch64_legitimate_constant_p): Check for true instead of not -1.
12714 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
12715 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
12716
44b20bb8
CM
127172013-06-04 Catherine Moore <clm@codesourcery.com>
12718
12719 * config/mips/mips.opt (meva): New.
c1e183a9 12720 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
12721 (ASM_SPEC): Handle -meva.
12722 * doc/invoke.texi (meva): Document.
12723
52befbd8
AM
127242013-06-04 Alan Modra <amodra@gmail.com>
12725
12726 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
12727 constant output.
12728
aadaf24e
KT
127292013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12730
12731 * rtl.def: Add extra fourth optional field to define_cond_exec.
12732 * gensupport.c (process_one_cond_exec): Process attributes from
12733 define_cond_exec.
12734 * doc/md.texi: Document fourth field in define_cond_exec.
12735
0cd9e9ee
EB
127362013-06-04 Eric Botcazou <ebotcazou@adacore.com>
12737
12738 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
12739 out the processing order as in store_bit_field_1.
12740
cb0f665d
JH
127412013-06-04 Jan Hubicka <jh@suse.cz>
12742
12743 PR middle-end/57500
12744 * cgraphunit.c (cgraph_process_same_body_aliases): Create
12745 non-VAR_DECL node if it does not exist yet.
12746
53984b9b
RS
127472013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
12748
12749 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
12750 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
12751 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
12752 target_cpu_default setting.
12753
5d318fd4
TJ
127542013-06-03 Teresa Johnson <tejohnson@google.com>
12755
12756 * dumpfile.c (opt_info_switch_p): Change -fopt-info
12757 default to -fopt-info=optimized instead of all.
12758 * doc/invoke.texi: Ditto.
12759 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
12760 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
12761 (execute_vect_slp): Emit BB vectorization success under
12762 MSG_OPTIMIZED_LOCATIONS.
12763 * tree-vect-slp.c (vect_slp_transform_bb): Change
12764 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
12765 * tree-vect-loop.c (vect_transform_loop): Ditto.
12766
ec3af349
JM
127672013-06-03 Jason Merrill <jason@redhat.com>
12768
12769 PR c++/57415
12770 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12771 Use TARGET_EXPR for C++.
12772
1baf9159
JJ
127732013-06-03 Jakub Jelinek <jakub@redhat.com>
12774
12775 PR rtl-optimization/57268
0cd9e9ee 12776 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
12777 if DEBUG_INSN_P (insn).
12778
12779 Reapply
12780 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
12781
12782 PR rtl-optimization/57268
12783 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12784 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12785
0f1d3965
YR
127862013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
12787
12788 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
12789 (ix86_avoid_lea_for_addr): Likewise.
12790 (exact_dependency_1): Likewise.
12791 (ix86_adjust_cost): Likewise.
12792 (swap_top_of_ready_list): Fix formatting and !reload_completed check
12793 removed.
12794 (do_reorder_for_imul): Fix typo, formatting and
12795 !reload_completed check removed.
12796 (ix86_sched_reorder): Fix typo and formatting.
12797 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
12798 list.
12799
3bc30db4
SN
128002013-06-03 Sofiane Naci <sofiane.naci@arm.com>
12801
12802 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
12803
19cc6fac
EB
128042013-06-03 Eric Botcazou <ebotcazou@adacore.com>
12805
12806 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
12807 <STRING_CST>: Likewise.
12808 <VECTOR_CST>: Likewise.
12809
c68a6e08
JW
128102013-06-01 Janus Weil <janus@gcc.gnu.org>
12811 Mikael Morin <mikael@gcc.gnu.org>
12812
12813 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
12814 * config.in: Regenerated.
12815 * configure: Regenerated.
12816
38e55e5c
JH
128172013-06-01 Jan Hubicka <jh@suse.cz>
12818
12819 PR middle-end/57366
12820 * cgraphunit.c (compile): When weakref is not supported,
12821 set up transparent aliases before final output pass.
12822 * varasm.c (assemble_alias): Do not try to do it here.
12823
eb51d2ff
JH
128242013-06-01 Jan Hubicka <jh@suse.cz>
12825
12826 PR middle-end/57467
12827 * passes.c (for_per_function): Skip unanalyzed functions.
12828
40a7fe1e
JH
128292013-06-01 Jan Hubicka <jh@suse.cz>
12830
12831 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
12832 (lto_symtab_merge_symbols_1): ... this one.
12833 (lto_symtab_merge_cgraph_nodes): Rename to ...
12834 (lto_symtab_merge_symbols): ... this one; simplify.
12835 * cgraph.c (same_body_aliases_done): Rename to ...
12836 (cpp_implicit_aliases_done): ... this one.
12837 (cgraph_create_function_alias): Update.
12838 (cgraph_same_body_alias): Update.
c1e183a9 12839 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 12840 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 12841 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
12842 (cgraph_node): Remove same_body_alias.
12843 (varpool_node): Remove alias_of and extra_name_alias.
12844 (same_body_aliases_done): Rename to ..
12845 (cpp_implicit_aliases_done): ... this one.
12846 (symtab_alias_ultimate_target): Add default parameter.
12847 (symtab_resolve_alias): New function.
12848 (fixup_same_cpp_alias_visibility): Declare.
12849 (cgraph_function_node): Add default parameter.
12850 (cgraph_node_asm_name): Likewise.
12851 (cgraph_function_or_thunk_node): Add default parameter; do
12852 not ICE when it is NULL.
12853 (varpool_variable_node): Likewise.
12854 * tree-emutls.c (create_emultls_var): Update.
12855 (ipa_lower_emutls): Update.
12856 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
12857 (cgraph_reset_node): Reset alias info.
12858 (cgraph_finalize_function): Update.
12859 (fixup_same_cpp_alias_visibility): Move to symtab.c.
12860 (analyze_function): Simplify.
12861 (cgraph_process_same_body_aliases): Simplify.
12862 (analyze_functions): Fixup same body aliases.
12863 (handle_alias_pairs): Simplify.
12864 (assemble_thunk): Update.
12865 (assemble_thunks_and_aliases): Update.
12866 (output_weakrefs): Rewrite.
12867 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
12868 (lto_output_varpool_node): Likewise.
12869 (compute_ltrans_boundary): Remve assert.
12870 (get_alias_symbol): New functoin.
12871 (input_node): Rewrite alias handling.
12872 (input_varpool_node): Likewise.
12873 * ipa-pure-const.c (propagate_pure_const): Fix formating.
12874 * ipa.c (process_references): Handle weakrefs correctly.
12875 (symtab_remove_unreachable_nodes): Likewise.
12876 * trans-mem.c (get_cg_data): Update.
12877 (ipa_tm_create_version_alias): Update.
12878 (ipa_tm_execute): Update.
12879 * symtab.c (dump_symtab_base): Dump aliases.
12880 (verify_symtab_base): Verify aliases.
12881 (symtab_node_availability): New function.
12882 (symtab_alias_ultimate_target): Simplify.
12883 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
12884 handle all the fixup cases.
12885 (symtab_resolve_alias): New function.
12886 * passes.c (ipa_write_summaries): Handle weakrefs.
12887 * varpool.c (varpool_analyze_node): Simplify.
12888 (assemble_aliases): Update.
12889 (varpool_create_variable_alias): Simplify.
12890 (varpool_extra_name_alias): Simplify.
12891 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
12892 (lto_symtab_merge_symbols): ... this one.
12893
21759881
DT
128942013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
12895
12896 Revert
12897 PR rtl-optimization/57268
12898 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12899 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12900
daf4e940
TB
129012013-06-01 Tobias Burnus <burnus@net-b.de>
12902
12903 Partially reverted:
12904 2013-05-31 Tobias Burnus <burnus@net-b.de>
12905
12906 PR middle-end/57073
12907 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
12908 further up.
12909
c359d8d0
DT
129102013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
12911
12912 PR rtl-optimization/57268
12913 * sched-deps.c (sched_analyze_2): Flush dependence lists if
12914 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
12915
4172215d
EB
129162013-05-31 Eric Botcazou <ebotcazou@adacore.com>
12917
12918 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
12919 unordered comparison operators when -fno-trapping-math is in effect
12920 on the e500.
12921 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
12922 and implement unordered comparison operators properly on the e500.
12923
a8c50132
EB
129242013-05-31 Eric Botcazou <ebotcazou@adacore.com>
12925
12926 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
12927 for constant scalar integers.
12928 (simplify_relational_operation_1): Likewise.
12929
44626634
SB
129302013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
12931
12932 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
12933 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
12934 Fix comment.
12935
55805e54
YR
129362013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
12937 Igor Zamyatin <igor.zamyatin@intel.com>
12938
12939 Silvermont (SLM) architecture performance tuning.
12940 * config/i386/i386.h (enum ix86_tune_indices): Add
12941 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
12942 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
12943
12944 * config/i386/i386.c (initial_ix86_tune_features)
12945 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
12946 (ix86_lea_outperforms): Handle Silvermont tuning.
12947 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
12948 call.
12949 (ix86_use_lea_for_mov): Likewise.
12950 (ix86_avoid_lea_for_addr): Likewise.
12951 (ix86_lea_for_add_ok): Likewise.
12952 (exact_dependency_1): New function.
12953 (exact_store_load_dependency): Likewise.
12954 (ix86_adjust_cost): Handle Silvermont tuning.
12955 (do_reoder_for_imul): Likewise.
12956 (swap_top_of_ready_list): New function.
12957 (ix86_sched_reorder): Changed to handle Silvermont tuning.
12958
12959 * config/i386/i386.md (peepholes that split memory operand in fp
12960 converts): New.
12961
e19c9de2
MS
129622013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
12963
12964 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12965 Remove un-necessary braces.
12966
38e6c9a6
MS
129672013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
12968
12969 * config/aarch64/aarch64.c (aarch64_classify_symbol):
12970 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
12971
e3530904
TB
129722013-05-31 Tobias Burnus <burnus@net-b.de>
12973
12974 PR middle-end/57073
c1e183a9 12975 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 12976
b6af05a9
KT
129772013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12978
12979 PR target/56315
12980 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
12981 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
12982 * config/arm/neon.md (iordi3_neon): Remove.
12983 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
12984 * config/arm/predicates.md (imm_for_neon_logic_operand):
12985 Move to earlier in the file.
12986 (neon_logic_op2): Likewise.
12987 (arm_iordi_operand_neon): New predicate.
12988
f800c166
RB
129892013-05-31 Richard Biener <rguenther@suse.de>
12990
12991 PR tree-optimization/57478
12992 PR tree-optimization/57453
12993 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
12994 are life as well.
12995
e571fa59
KP
129962013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12997
12998 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
12999 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
13000
0fa6e0ef
TB
130012013-05-30 Tobias Burnus <burnus@net-b.de>
13002 Thomas Koenig <tkoenig@gcc.gnu.org>
13003
13004 PR middle-end/57073
13005 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
13006 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
13007
4688ddf5
SB
130082013-05-30 Steven Bosscher <steven@gcc.gnu.org>
13009
0fa6e0ef 13010 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 13011
3b9ceb4b
VM
130122013-05-30 Vladimir Makarov <vmakarov@redhat.com>
13013
13014 * target.def (register_usage_leveling_p): New hook.
13015 * targhooks.c (default_register_usage_leveling_p): New.
13016 * targhooks.h (default_register_usage_leveling_p): New prototype.
13017 * lra-assigns.c (register_usage_leveling_p): Use the hook.
13018 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
13019 * doc/tm.texi: Update.
13020 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
13021
65f9e789
IB
130222013-05-30 Ian Bolton <ian.bolton@arm.com>
13023
13024 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
13025 (*insv_reg<mode>): New define_insn.
13026
12211b99 130272013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
ca035367
JR
13028
13029 PR rtl-optimization/57439
13030 * postreload.c (move2add_valid_value_p): Check that we have
13031 a zero subreg_regno_offset when accessing the register in
13032 the requested mode.
13033
0b871ccf
YR
130342013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
13035 Igor Zamyatin <igor.zamyatin@intel.com>
13036
13037 Silvermont (SLM) architecture pipeline model, tuning and
13038 insn selection.
13039 * config.gcc: Add slm config options and target.
13040
13041 * config/i386/slm.md: New.
13042
13043 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
13044
f43245d1 13045 * config/i386/i386-c.c (ix86_target_macros_internal): New case
0b871ccf
YR
13046 PROCESSOR_SLM.
13047 (ix86_target_macros_internal): Likewise.
13048
f43245d1 13049 * config/i386/i386.c (slm_cost): New cost.
0b871ccf
YR
13050 (m_SLM): New macro flag.
13051 (initial_ix86_tune_features): Set m_SLM.
13052 (x86_accumulate_outgoing_args): Likewise.
13053 (x86_arch_always_fancy_math_387): Likewise.
13054 (processor_target_table): Add slm cost.
13055 (cpu_names): Add slm cpu name.
13056 (x86_option_override_internal): Set SLM ISA.
13057 (ix86_issue_rate): New case PROCESSOR_SLM.
13058 (ia32_multipass_dfa_lookahead): Likewise.
13059 (fold_builtin_cpu): Add slm.
13060
13061 * config/i386/i386.h (TARGET_SLM): New target macro.
13062 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
13063 (processor_type): Add PROCESSOR_SLM.
13064
13065 * config/i386/i386.md (cpu): Add new value "slm".
13066 (slm.md): Include slm.md.
13067
24d5b097
XG
130682013-05-30 Bernd Schmidt <bernds@codesourcery.com>
13069 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13070
13071 * config/arm/arm-protos.h: Add and update function protos.
13072 * config/arm/arm.c (use_simple_return_p): New added.
13073 (thumb2_expand_return): Check simple_return flag.
13074 * config/arm/arm.md: Add simple_return and conditional simple_return.
13075 * config/arm/iterators.md: Add iterator for return and simple_return.
13076
c1cccc15
ZC
130772013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13078
13079 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
13080 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
13081 (arm_emit_vfp_multi_reg_pop): Likewise.
13082 (thumb2_emit_ldrd_pop): Likewise.
13083 (arm_expand_epilogue): Add misc REG_CFA notes.
13084 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
13085
3a4f280b
LC
130862013-05-29 Lawrence Crowl <crowl@google.com>
13087
13088 * config/arm/t-arm: Update for below.
13089
13090 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
13091 Change type to hash_table. Update dependent calls and types.
13092
13093 * config/i386/t-cygming: Update for below.
13094
13095 * config/i386/t-interix: Update for below.
13096
13097 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
13098 Change type to hash_table. Update dependent calls and types.
13099 (i386_find_on_wrapper_list::wrappers): Likewise.
13100
13101 * config/ia64/t-ia64: Update for below.
13102
13103 * config/ia64/ia64.c (bundle_state_table):
13104 Change type to hash_table. Update dependent calls and types.
13105
13106 * config/mips/mips.c (mips_reorg_process_insns::htab):
13107 Change type to hash_table. Update dependent calls and types.
13108
13109 * config/sol2.c (solaris_comdat_htab):
13110 Change type to hash_table. Update dependent calls and types.
13111
13112 * config/t-sol2: Update for above.
13113
1388a0e3
TJ
131142013-05-29 Teresa Johnson <tejohnson@google.com>
13115
13116 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
13117 functions are not yet marked as defined.
13118
a5965b52 131192013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13120 Pat Haugen <pthaugen@us.ibm.com>
13121 Peter Bergner <bergner@vnet.ibm.com>
a5965b52
MM
13122
13123 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
13124 instructions.
13125 (VEC_A): Likewise.
13126 (VEC_C): Likewise.
13127 (vrotl<mode>3): Likewise.
13128 (vashl<mode>3): Likewise.
13129 (vlshr<mode>3): Likewise.
13130 (vashr<mode>3): Likewise.
13131
13132 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13133 support for power8 V2DI builtins.
13134
13135 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
13136 power8 V2DI builtins.
13137 (vupkhsw): Likewise.
13138 (vupklsw): Likewise.
13139 (vaddudm): Likewise.
13140 (vminsd): Likewise.
13141 (vmaxsd): Likewise.
13142 (vminud): Likewise.
13143 (vmaxud): Likewise.
13144 (vpkudum): Likewise.
13145 (vpksdss): Likewise.
13146 (vpkudus): Likewise.
13147 (vpksdus): Likewise.
13148 (vrld): Likewise.
13149 (vsld): Likewise.
13150 (vsrd): Likewise.
13151 (vsrad): Likewise.
13152 (vsubudm): Likewise.
13153 (vcmpequd): Likewise.
13154 (vcmpgtsd): Likewise.
13155 (vcmpgtud): Likewise.
13156 (vcmpequd_p): Likewise.
13157 (vcmpgtsd_p): Likewise.
13158 (vcmpgtud_p): Likewise.
13159 (vupkhsw): Likewise.
13160 (vupklsw): Likewise.
13161 (vaddudm): Likewise.
13162 (vmaxsd): Likewise.
13163 (vmaxud): Likewise.
13164 (vminsd): Likewise.
13165 (vminud): Likewise.
13166 (vpksdss): Likewise.
13167 (vpksdus): Likewise.
13168 (vpkudum): Likewise.
13169 (vpkudus): Likewise.
13170 (vrld): Likewise.
13171 (vsld): Likewise.
13172 (vsrad): Likewise.
13173 (vsrd): Likewise.
13174 (vsubudm): Likewise.
13175
13176 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
13177 support for power8 V2DI instructions.
13178
13179 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
13180 power8 V2DI instructions. Combine pack and unpack insns to use an
13181 iterator for each mode. Check whether a particular mode supports
13182 Altivec instructions instead of just checking TARGET_ALTIVEC.
13183 (UNSPEC_VPKUWUM): Likewise.
13184 (UNSPEC_VPKSHSS): Likewise.
13185 (UNSPEC_VPKSWSS): Likewise.
13186 (UNSPEC_VPKUHUS): Likewise.
13187 (UNSPEC_VPKSHUS): Likewise.
13188 (UNSPEC_VPKUWUS): Likewise.
13189 (UNSPEC_VPKSWUS): Likewise.
13190 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
13191 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
13192 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
13193 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
13194 (UNSPEC_VUPKHSB): Likewise.
13195 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
13196 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
13197 (UNSPEC_VUPKHSH): Likewise.
13198 (UNSPEC_VUPKLSB): Likewise.
13199 (UNSPEC_VUPKLSH): Likewise.
13200 (VI2): Likewise.
13201 (VI_char): Likewise.
13202 (VI_scalar): Likewise.
13203 (VI_unit): Likewise.
13204 (VP): Likewise.
13205 (VP_small): Likewise.
13206 (VP_small_lc): Likewise.
13207 (VU_char): Likewise.
13208 (add<mode>3): Likewise.
13209 (altivec_vaddcuw): Likewise.
13210 (altivec_vaddu<VI_char>s): Likewise.
13211 (altivec_vadds<VI_char>s): Likewise.
13212 (sub<mode>3): Likewise.
13213 (altivec_vsubcuw): Likewise.
13214 (altivec_vsubu<VI_char>s): Likewise.
13215 (altivec_vsubs<VI_char>s): Likewise.
13216 (altivec_vavgs<VI_char>): Likewise.
13217 (altivec_vcmpbfp): Likewise.
13218 (altivec_eq<mode>): Likewise.
13219 (altivec_gt<mode>): Likewise.
13220 (altivec_gtu<mode>): Likewise.
13221 (umax<mode>3): Likewise.
13222 (smax<mode>3): Likewise.
13223 (umin<mode>3): Likewise.
13224 (smin<mode>3): Likewise.
13225 (altivec_vpkuhum): Likewise.
13226 (altivec_vpkuwum): Likewise.
13227 (altivec_vpkshss): Likewise.
13228 (altivec_vpkswss): Likewise.
13229 (altivec_vpkuhus): Likewise.
13230 (altivec_vpkshus): Likewise.
13231 (altivec_vpkuwus): Likewise.
13232 (altivec_vpkswus): Likewise.
13233 (altivec_vpks<VI_char>ss): Likewise.
13234 (altivec_vpks<VI_char>us): Likewise.
13235 (altivec_vpku<VI_char>us): Likewise.
13236 (altivec_vpku<VI_char>um): Likewise.
13237 (altivec_vrl<VI_char>): Likewise.
13238 (altivec_vsl<VI_char>): Likewise.
13239 (altivec_vsr<VI_char>): Likewise.
13240 (altivec_vsra<VI_char>): Likewise.
13241 (altivec_vsldoi_<mode>): Likewise.
13242 (altivec_vupkhsb): Likewise.
13243 (altivec_vupkhs<VU_char>): Likewise.
13244 (altivec_vupkls<VU_char>): Likewise.
13245 (altivec_vupkhsh): Likewise.
13246 (altivec_vupklsb): Likewise.
13247 (altivec_vupklsh): Likewise.
13248 (altivec_vcmpequ<VI_char>_p): Likewise.
13249 (altivec_vcmpgts<VI_char>_p): Likewise.
13250 (altivec_vcmpgtu<VI_char>_p): Likewise.
13251 (abs<mode>2): Likewise.
13252 (vec_unpacks_hi_v16qi): Likewise.
13253 (vec_unpacks_hi_v8hi): Likewise.
13254 (vec_unpacks_lo_v16qi): Likewise.
13255 (vec_unpacks_hi_<VP_small_lc>): Likewise.
13256 (vec_unpacks_lo_v8hi): Likewise.
13257 (vec_unpacks_lo_<VP_small_lc>): Likewise.
13258 (vec_pack_trunc_v8h): Likewise.
13259 (vec_pack_trunc_v4si): Likewise.
13260 (vec_pack_trunc_<mode>): Likewise.
13261
13262 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
13263 V2DI builtins.
13264 (vec_vmaxsd): Likewise.
13265 (vec_vmaxud): Likewise.
13266 (vec_vminsd): Likewise.
13267 (vec_vminud): Likewise.
13268 (vec_vpksdss): Likewise.
13269 (vec_vpksdus): Likewise.
13270 (vec_vpkudum): Likewise.
13271 (vec_vpkudus): Likewise.
13272 (vec_vrld): Likewise.
13273 (vec_vsld): Likewise.
13274 (vec_vsrad): Likewise.
13275 (vec_vsrd): Likewise.
13276 (vec_vsubudm): Likewise.
13277 (vec_vupkhsw): Likewise.
13278 (vec_vupklsw): Likewise.
13279
e70670cf
JH
132802013-05-29 Jan Hubicka <jh@suse.cz>
13281
13282 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
13283 flags; reorder rest of fields in more consistent way.
13284 (varpool_node): Remove analyzed, finalized and alias.
13285 (cgraph_ndoe): Likewise.
13286 (symtab_alias_ultimate_target): New function.
13287 (cgraph_function_node): Move offline.
13288 (cgraph_reset_node): Declare.
13289 (cgraph_comdat_can_be_unshared_p): Remove.
13290 (varpool_remove_initializer): Declare.
13291 (varpool_first_defined_variable, varpool_next_defined_variable
13292 cgraph_first_defined_function, cgraph_next_defined_function): Update.
13293 (cgraph_function_with_gimple_body_p): Update.
13294 (varpool_all_refs_explicit_p): Update.
13295 (symtab_alias_target): New function.
13296 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
13297 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
13298 (cgraph_function_or_thunk_node): Simplify using
13299 symtab_alias_ultimate_target.
e70670cf
JH
13300 (varpool_variable_node): Likewise.
13301 * cgraph.c (cgraph_create_function_alias): Update.
13302 (cgraph_add_thunk): Update.
13303 (cgraph_remove_node): Update.
13304 (dump_cgraph_node): Do not dump removed flags.
13305 (cgraph_function_body_availability): Update.
13306 (cgraph_propagate_frequency): Update.
13307 (verify_cgraph_node): Check sanity of local flag.
13308 (cgraph_function_node): Move here from cgraph.h; revamp for
13309 cgraph_function_or_thunk_node.
13310 * lto-symtab.c (lto_varpool_replace_node): Update.
13311 (lto_symtab_resolve_can_prevail_p): Update.
13312 (lto_symtab_merge_cgraph_nodes): Update.
13313 * ipa-cp.c (determine_versionability, initialize_node_lattices,
13314 propagate_constants_accross_call, devirtualization_time_bonus,
13315 ipcp_propagate_stage): Update.
13316 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
13317 * ipa-inline-transform.c (clone_inlined_nodes,
13318 preserve_function_body_p): Update.
e70670cf
JH
13319 * ipa-reference.c (propagate): Update.
13320 (write_node_summary_p): Update.
13321 * toplev.c (wrapup_global_declaration_2): Update.
13322 * cgraphunit.c (cgraph_analyze_function): Rename to ...
13323 (analyze_function) ... this one.
13324 (cgraph_process_new_functions): Update.
13325 (cgraph_reset_node): Export.
13326 (cgraph_finalize_function): Update.
13327 (cgraph_add_new_function): Update.
13328 (process_function_and_variable_attributes): Update.
13329 (varpool_finalize_decl): Update.
13330 (symbol_finalized): Remove.
13331 (symbol_finalized_and_needed): Rename to ...
13332 (symbol_defined_and_needed): ... update.
13333 (cgraph_analyze_functions): Update.
13334 (handle_alias_pairs): Update.
13335 (mark_functions_to_output): Update.
13336 (assemble_thunk): Update.
13337 (output_in_order): Update.
13338 (output_weakrefs): Update.
13339 (finalize_compilation_unit): Update.
13340 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
13341 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
13342 input_node, input_varpool_node): Update.
13343 * dbxout.c (dbxout_expand_expr): Update.
13344 * cgraphclones.c (cgraph_clone_node): Update.
13345 (cgraph_copy_node_for_versioning): Update.
13346 (cgraph_materialize_clone): Update.
13347 (cgraph_materialize_all_clones): Update.
13348 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
13349 propagate_pure_const, propagate_nothrow): Update.
13350 * lto-streamer-out.c (lto_output, write_symbol): Update.
13351 * ipa-utils.c (ipa_reverse_postorder): Update.
13352 * ipa-inline.c (can_inline_edge_p): Update.
13353 (update_caller_keys, ipa_inline): Update.
13354 * dwarf2out.c (reference_to_unused,
13355 premark_types_used_by_global_vars_helper): Update.
13356 * tree-eh.c (tree_could_trap_p): Update.
13357 * ipa-split.c (consider_split, execute_split_functions): Update.
13358 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
13359 has_addr_references_p): Update; move ahead in file for better
13360 readability.
e70670cf
JH
13361 (process_references): Simplify.
13362 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
13363 bodies are removed.
13364 (cgraph_comdat_can_be_unshared_p): Make static.
13365 (cgraph_externally_visible_p): Update.
13366 (varpool_externally_visible_p): Update.
13367 (function_and_variable_visibility): Update.
13368 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
13369 ipa_tm_mark_force_output_node): Update.
13370 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
13371 estimate_edge_devirt_benefit, inline_generate_summary,
13372 inline_write_summary): Update.
13373 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
13374 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
13375 (ipa_print_node_params, ipa_prop_read_section,
13376 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
13377 * varasm.c (mark_decl_referenced): Update.
13378 (assemble_alias, dump_tm_clone_pairs): Update.
13379 * tree-inline.c (copy_bb): Update.
13380 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
13381 Update.
13382 * symtab.c (dump_symtab_base): Print new flags.
13383 (verify_symtab_base): Verify new flags.
13384 (symtab_alias_ultimate_target): New function.
13385 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
13386 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
13387 Update.
c1e183a9
UB
13388 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
13389 Update.
e70670cf
JH
13390 * i386.c (ix86_get_function_versions_dispatcher,
13391 ix86_generate_version_dispatcher_body): Update.
13392 (fold_builtin_cpu): Use varpool_add_new_variable.
13393 * varpool.c (varpool_remove_initializer): Break out from ...
13394 (varpool_remove_node): ... this one.
13395 (dump_varpool_node, varpool_node_for_asm,
13396 cgraph_variable_initializer_availability, varpool_analyze_node,
13397 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
13398 varpool_finalize_named_section_flags, varpool_create_variable_alias):
13399 Update.
e70670cf 13400
182802ad
JH
134012013-05-29 Jan Hubicka <jh@suse.cz>
13402
13403 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
13404
8190b609
ER
134052013-05-29 Easwaran Raman <eraman@google.com>
13406
13407 PR tree-optimization/57442
13408 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
13409 when control exits the main loop.
13410
69f5aa9b
SKS
134112013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
13412
13413 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
13414 and RX600.
c1e183a9 13415 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
13416 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
13417 * rx/t-rx: Add rx100 under multi library matches option for nofpu
13418 option.
13419
4b847da9
BS
134202013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13421
13422 PR tree-optimization/57441
13423 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
13424 Don't limit size of incr_vec to number of candidates.
13425
4fc43c39
SE
134262013-05-29 Steve Ellcey <sellcey@imgtec.com>
13427
13428 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
13429 and mips16 directories.
c1e183a9 13430 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
13431 (MULTILIB_DIRNAMES): Ditto.
13432 (MULTILIB_EXCEPTIONS): Add new exceptions.
13433 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
13434 (MULTILIB_DIRNAMES): Ditto.
13435 (MULTILIB_EXCEPTIONS): Add new exceptions.
13436
12211b99 134372012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
a5350ddc
CSS
13438 Marcus Shawcroft <marcus.shawcroft@arm.com>
13439
13440 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
13441 SYMBOL_TINY_ABSOLUTE.
13442 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
13443 SYMBOL_TINY_ABSOLUTE.
13444 (aarch64_expand_mov_immediate): Likewise.
13445 (aarch64_classify_symbol): Likewise.
13446 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
13447 Permit SYMBOL_TINY_ABSOLUTE.
13448 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
13449
12211b99 134502013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
17f4d4bf
CSS
13451 Marcus Shawcroft <marcus.shawcroft@arm.com>
13452
13453 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
13454 Refactor if/switch. Replace gcc_assert with if.
13455
c0186656
GG
134562013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
13457
13458 * config/i386/i386.c (initial_ix86_tune_features): Enable
13459 FP Reassociation for AMD bdver1 and bdver2.
13460
d20188f3
MJ
134612013-05-29 Martin Jambor <mjambor@suse.cz>
13462
13463 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
13464 and IMAGPART_EXPR do not occur within other handled_components.
13465
292cba13
RB
134662013-05-29 Richard Biener <rguenther@suse.de>
13467
13468 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
13469 access on whether the use is in the BB we currently try to
13470 vectorize.
13471 (vect_bb_vectorization_profitable_p): Pass the BB we currently
13472 vectorize to vect_bb_slp_scalar_cost.
13473
6eddf228
RB
134742013-05-29 Richard Biener <rguenther@suse.de>
13475
13476 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
13477 computing scalar cost offsetted by stmts that are kept live
13478 by scalar uses.
13479 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
13480 for computation of scalar cost.
13481
7df36117
SE
134822013-05-28 Steve Ellcey <sellcey@mips.com>
13483
13484 * config/mips/mips-cpus.def (mips32r2): Change processor type.
13485
36536d79
BI
134862013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
13487
13488 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
13489 array notation built-in reduction functions.
13490 * doc/passes.texi (Passes): Added documentation about changes done
13491 for Cilk Plus.
13492 * doc/invoke.texi (C Dialect Options): Added documentation about
13493 the -fcilkplus flag.
13494 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
13495 (BUILTINS_DEF): Depend on cilkplus.def.
13496 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
13497 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
13498 * cilkplus.def: New file.
13499
12211b99 135002013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
b49eefa5
JR
13501
13502 PR rtl-optimization/57439
13503 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
13504
9daf6dbb
ER
135052013-05-28 Easwaran Raman <eraman@google.com>
13506
13507 PR tree-optimization/57337
13508 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
13509 (find_insert_point): Correctly identify the insertion point
13510 when two statements with the same UID is compared.
13511
fbd7e877
RB
135122013-05-28 Richard Biener <rguenther@suse.de>
13513
13514 PR tree-optimization/56787
13515 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
13516 from the list of data references.
13517 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
13518 clobbers.
13519 (vect_analyze_loop_operations): Likewise.
13520 (vect_transform_loop): Remove clobbers.
13521
bbba1117
MJ
135222013-05-28 Martin Jambor <mjambor@suse.cz>
13523
13524 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
13525 and REALPART_EXPRs have scalar type.
13526
bd388c2a
RB
135272013-05-28 Richard Biener <rguenther@suse.de>
13528
13529 PR tree-optimization/57411
13530 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
13531 virtual operands.
13532 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
13533 virtual operand propagation.
13534
2f56a311
EB
135352013-05-28 Eric Botcazou <ebotcazou@adacore.com>
13536
13537 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
13538 destination register for bmasksi_vis.
13539 (vector_init_bshuffle): Likewise.
13540 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
13541
5c3eacbb
EB
135422013-05-28 Eric Botcazou <ebotcazou@adacore.com>
13543
13544 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
13545 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
13546 mode if the instruction isn't available in the original mode.
13547 * config/sparc/sparc.opt (mfix-ut699): New option.
13548 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
13549 (divdf3): Turn into expander.
13550 (divdf3_nofix): New insn.
13551 (divdf3_fix): Likewise.
13552 (divsf3): Disable if -mfix-ut699.
13553 (sqrtdf2): Turn into expander.
13554 (sqrtdf2_nofix): New insn.
13555 (sqrtdf2_fix): Likewise.
13556 (sqrtsf2): Disable if -mfix-ut699.
13557
a1756c0a
RB
135582013-05-27 Richard Biener <rguenther@suse.de>
13559
13560 PR middle-end/57412
13561 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
13562 block for the new loop.
13563
5a892248
RB
135642013-05-27 Richard Biener <rguenther@suse.de>
13565
13566 PR tree-optimization/57343
13567 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
13568 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
13569 (number_of_iterations_cond): Do not build the folded tree.
13570
d1de852b
RB
135712013-05-27 Richard Biener <rguenther@suse.de>
13572
13573 Revert
13574 PR middle-end/57381
13575 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
13576 OEP_CONSTANT_ADDRESS_OF retained.
13577
13578 PR tree-optimization/57417
13579 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
13580 for unchanged base.
13581 (set_ssa_val_to): Compare addresses using
13582 get_addr_base_and_unit_offset.
13583
12211b99 135842013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
7894bc6b
JR
13585
13586 PR rtl-optimization/56833
13587 * postreload.c (move2add_record_mode): New function.
13588 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
13589 (move2add_use_add2_insn): Use move2add_record_sym_value.
13590 (move2add_use_add3_insn): Likewise.
13591 (reload_cse_move2add): Use move2add_valid_value_p and
13592 move2add_record_mode. Invalidate call-clobbered and REG_INC
13593 affected regs by setting reg_mode to VOIDmode.
13594 (move2add_note_store): Don't pretend the inside of a SUBREG is
13595 the actual destination. Invalidate single/leading registers by
13596 setting reg_mode to VOIDmode.
13597 Use move2add_record_sym_value, move2add_valid_value_p and
13598 move2add_record_mode.
13599
b03be25f
RB
136002013-05-27 Richard Biener <rguenther@suse.de>
13601
13602 PR tree-optimization/57396
13603 * tree-affine.c (double_int_constant_multiple_p): Properly
13604 return false for val == 0 and div != 0.
13605
44e88db2
RS
136062013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13607
13608 * config/mips/mips.h: Use #elif in preprocessor conditions.
13609
3b859704
RS
136102013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13611
13612 PR target/53916
13613 * config/mips/constraints.md (kl): New constraint.
13614 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
13615 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
13616 constraint for operand 0. Split after CSE for MIPS16. Emit a move
13617 from LO for MIPS16.
13618 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
13619
c979d5f5
RS
136202013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
13621
13622 PR target/55777
13623 * config/mips/mips.c (mips_can_inline_p): New function.
13624 (TARGET_CAN_INLINE_P): Define.
13625
8e90de43
SB
136262013-05-25 Steven Bosscher <steven@gcc.gnu.org>
13627
13628 * sched-int.h (ds_t, dw_t): Make unsigned int.
13629 Fix documentation that describes how all the ds_t bits are used.
13630 Reserve the last bit for delayed-branch scheduling.
13631 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
13632 (BITS_PER_DEP_WEAK): Fix definition and documentation.
13633 (gen_dep_weak_1): Remove prototype.
13634 * sched-deps.c (get_dep_weak_1): Make static.
13635 * target.def (speculate_insn, needs_block_p, gen_spec_check,
13636 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
13637 * doc/tm.texi: Regenerate.
13638 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
13639
cb5cb194
SB
136402013-05-24 Steven Bosscher <steven@gcc.gnu.org>
13641
13642 PR debug/56950
13643 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
13644
5bd93ff6
NS
136452013-05-24 Nathan Sidwell <nathan@codesourcery.com>
13646 Sandra Loosemore <sandra@codesourcery.com>
13647
13648 * config.gcc (powerpc-*): Allow native for with-cpu.
13649
2343af65
JL
136502013-05-24 Jeff Law <law@redhat.com>
13651
13652 PR tree-optimization/57124
13653 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
13654 conversion feeding a condition if the range has an overflow
13655 if -fstrict-overflow. Add warnings for when we do make the
13656 transformation.
13657
3ad695b9
DC
136582013-05-24 Dehao Chen <dehao@google.com>
13659
04960246 13660 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
13661 (locus_discrim_hasher): Likewise.
13662 (locus_discrim_hasher::hash): Likewise.
13663 (locus_discrim_hasher::equal): Likewise.
13664
82338059
MJ
136652013-05-24 Martin Jambor <mjambor@suse.cz>
13666
13667 PR tree-optimization/57294
13668 * cgraph.h (ipa_record_stmt_references): Declare.
13669 * cgraphbuild.c (ipa_record_stmt_references): New function.
13670 (build_cgraph_edges): Use ipa_record_stmt_references.
13671 (rebuild_cgraph_edges): Likewise.
13672 (cgraph_rebuild_references): Likewise.
13673 * ipa-prop.c (ipa_modify_call_arguments): Discard references
13674 associated with the old statement and build references from the
13675 newly built statements.
13676 * ipa-ref.c (ipa_remove_stmt_references): New function.
13677 * ipa-ref.h (ipa_remove_stmt_references): Declare.
13678
1ccd4874
VM
136792013-05-24 Vladimir Makarov <vmakarov@redhat.com>
13680
55805e54 13681 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 13682 mem-mem moves.
55805e54 13683 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 13684 too.
55805e54 13685 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
13686 secondary memory moves.
13687 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
13688 reg set up in the current insn.
13689
25e25c73
DC
136902013-05-24 Dehao Chen <dehao@google.com>
13691
04960246 13692 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
13693 hash function.
13694 (locus_descrim_hasher::equal): Likewise.
04960246 13695 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
13696 (make_edges): Likewise.
13697 (next_discriminator_for_locus): Likewise.
13698 (same_line_p): Likewise.
13699 (assign_discriminators): Likewise.
13700 (make_cond_expr_edges): Likewise.
13701 (make_gimple_switch_edges): Likewise.
13702 (make_goto_expr_edges): Likewise.
13703 (make_gimple_asm_edges): Likewise.
13704
50d38551
IB
137052013-05-24 Ian Bolton <ian.bolton@arm.com>
13706
13707 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
13708 X format specifier to only display bottom 16 bits.
13709 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
13710 immediate to match for operand 2, since it will be masked.
13711
aea0101d
RB
137122013-05-24 Richard Biener <rguenther@suse.de>
13713
13714 PR tree-optimization/57287
13715 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
13716 all SSA names that occur in abnormal PHIs.
13717
634e03d3
AI
137182013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
13719
13720 PR tree-ssa/57385
13721 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
13722 that index is not negative.
13723
b17c024f
EB
137242013-05-24 Eric Botcazou <ebotcazou@adacore.com>
13725
13726 PR rtl-optimization/55177
13727 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
13728 (simplify_byte_swapping_operation): New.
13729 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
13730 (simplify_relational_operation_1): Deal with BSWAP.
13731
46aeac1b
RH
137322013-05-23 Richard Henderson <rth@redhat.com>
13733
13734 PR target/56742
13735 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
13736 (ix86_reorg): Call it.
13737
70cc1536
UB
137382013-05-23 Uros Bizjak <ubizjak@gmail.com>
13739
13740 PR target/57379
13741 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
13742 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
13743 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
13744
b3851501
CB
137452013-05-23 Christian Bruel <christian.bruel@st.com>
13746
13747 PR debug/57351
13748 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
13749
12211b99 137502013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4e194912
CSS
13751 Marcus Shawcroft <marcus.shawcroft@arm.com>
13752
13753 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
13754 * config/aarch64/constraints.md (Usa): Remove.
13755 * doc/md.texi (AArch64 Usa): Remove.
13756
12211b99 137572013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
83f8c414
CSS
13758 Marcus Shawcroft <marcus.shawcroft@arm.com>
13759
13760 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
13761 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
13762 * config/aarch64/predicates.md (aarch64_const_address): Remove.
13763 (aarch64_mov_operand): Use aarch64_mov_operand_p.
13764
12211b99 137652013-05-23 Vidya Praveen <vidyapraveen@arm.com>
b5574232
VP
13766
13767 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
13768 instruction (AdvSIMD).
13769 * config/aarch64/aarch64-builtins.c
13770 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
13771 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
13772
76c36cb1 137732013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
13774
13775 PR middle-end/57347
13776 * tree.h (contains_bitfld_component_ref_p): Declare.
13777 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
13778 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
13779 caller.
7d2fb524
MJ
13780 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
13781 not access a bit-field. Assert all final offsets are byte-aligned.
13782
ce521ae6
RB
137832013-05-23 Richard Biener <rguenther@suse.de>
13784
13785 PR tree-optimization/57380
13786 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
13787 least one invariant or re-used load.
13788 * passes.c (init_optimization_passes): Move pass_phiprop before
13789 pass_forwprop.
13790
75c7257f
JG
137912013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
13792
13793 * config/aarch64/aarch64-simd.md
13794 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
13795
af6d44b5
RB
137962013-05-23 Richard Biener <rguenther@suse.de>
13797
13798 PR middle-end/57381
13799 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
13800 OEP_CONSTANT_ADDRESS_OF retained.
13801
bd3647bf
JJ
138022013-05-23 Jakub Jelinek <jakub@redhat.com>
13803
13804 PR middle-end/57344
70cc1536
UB
13805 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
13806 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 13807
a55757ea
RB
138082013-05-23 Richard Biener <rguenther@suse.de>
13809
13810 PR rtl-optimization/57341
13811 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
13812 instead of true_dependence.
13813
cfb00b41
DM
138142013-05-22 David Malcolm <dmalcolm@redhat.com>
13815
dd1c676f
DM
13816 * bb-reorder.c (branch_threshold): Make const.
13817 (exec_threshold): Ditto.
cfb00b41 13818
f62511da 138192013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13820 Pat Haugen <pthaugen@us.ibm.com>
13821 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
13822
13823 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
13824 documentation for the power8 crypto builtins.
13825
13826 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
13827
13828 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
13829 macros for defining power8 builtin functions.
13830 (BU_P8V_AV_2): Likewise.
13831 (BU_P8V_AV_P): Likewise.
13832 (BU_P8V_VSX_1): Likewise.
13833 (BU_P8V_OVERLOAD_1): Likewise.
13834 (BU_P8V_OVERLOAD_2): Likewise.
13835 (BU_CRYPTO_1): Likewise.
13836 (BU_CRYPTO_2): Likewise.
13837 (BU_CRYPTO_3): Likewise.
13838 (BU_CRYPTO_OVERLOAD_1): Likewise.
13839 (BU_CRYPTO_OVERLOAD_2): Likewise.
13840 (XSCVSPDP): Fix typo, point to the correct instruction.
13841 (VCIPHER): Add power8 crypto builtins.
13842 (VCIPHERLAST): Likewise.
13843 (VNCIPHER): Likewise.
13844 (VNCIPHERLAST): Likewise.
13845 (VPMSUMB): Likewise.
13846 (VPMSUMH): Likewise.
13847 (VPMSUMW): Likewise.
13848 (VPERMXOR_V2DI): Likewise.
13849 (VPERMXOR_V4SI: Likewise.
13850 (VPERMXOR_V8HI: Likewise.
13851 (VPERMXOR_V16QI: Likewise.
13852 (VSHASIGMAW): Likewise.
13853 (VSHASIGMAD): Likewise.
13854 (VPMSUM): Likewise.
13855 (VPERMXOR): Likewise.
13856 (VSHASIGMA): Likewise.
13857
13858 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
13859 __CRYPTO__ if the crypto instructions are available.
13860 (altivec_overloaded_builtins): Add support for overloaded power8
13861 builtins.
13862
13863 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
13864 support for power8 crypto builtins.
13865 (builtin_function_type): Likewise.
13866 (altivec_init_builtins): Add support for builtins that take vector
13867 long long (V2DI) arguments.
13868
13869 * config/rs6000/crypto.md: New file, define power8 crypto
13870 instructions.
13871
138722013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
12211b99
UB
13873 Pat Haugen <pthaugen@us.ibm.com>
13874 Peter Bergner <bergner@vnet.ibm.com>
f62511da
MM
13875
13876 * doc/invoke.texi (Option Summary): Add power8 options.
13877 (RS/6000 and PowerPC Options): Likewise.
13878
13879 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
13880 constraints.md instead of rs6000.h. Reorder w* constraints. Add
13881 wm, wn, wr documentation.
13882
f43245d1 13883 * config/rs6000/constraints.md (wm): New constraint for VSX
f62511da
MM
13884 registers if direct move instructions are enabled.
13885 (wn): New constraint for no registers.
13886 (wq): New constraint for quad word even GPR registers.
13887 (wr): New constraint if 64-bit instructions are enabled.
13888 (wv): New constraint if power8 vector instructions are enabled.
13889 (wQ): New constraint for quad word memory locations.
13890
f43245d1 13891 * config/rs6000/predicates.md (const_0_to_15_operand): New
f62511da
MM
13892 constraint for 0..15 for crypto instructions.
13893 (gpc_reg_operand): If VSX allow registers in VSX registers as well
13894 as GPR and floating point registers.
13895 (int_reg_operand): New predicate to match only GPR registers.
13896 (base_reg_operand): New predicate to match base registers.
13897 (quad_int_reg_operand): New predicate to match even GPR registers
13898 for quad memory operations.
13899 (vsx_reg_or_cint_operand): New predicate to allow vector logical
13900 operations in both GPR and VSX registers.
13901 (quad_memory_operand): New predicate for quad memory operations.
13902 (reg_or_indexed_operand): New predicate for direct move support.
13903
f43245d1 13904 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
f62511da
MM
13905 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
13906 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
13907 (POWERPC_MASKS): Add power8 options.
13908 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
13909 various options.
13910
f43245d1 13911 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
f62511da
MM
13912 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
13913
f43245d1 13914 * config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
f62511da
MM
13915 (-mpower8-fusion): New power8 options.
13916 (-mpower8-fusion-sign): Likewise.
13917 (-mpower8-vector): Likewise.
13918 (-mcrypto): Likewise.
13919 (-mdirect-move): Likewise.
13920 (-mquad-memory): Likewise.
13921
f43245d1 13922 * config/rs6000/rs6000.c (power8_cost): Initial definition for power8.
f62511da
MM
13923 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
13924 registers.
70cc1536 13925 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
13926 (rs6000_debug_vector_unit): Add p8_vector.
13927 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
13928 definitions. Also print fusion state.
13929 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
13930 (rs6000_builtin_mask_calculate): Add power8 builtin support.
13931 (rs6000_option_override_internal): Add support for power8.
13932 (rs6000_common_init_builtins): Add debugging for skipped builtins
13933 if -mdebug=builtin.
13934 (rs6000_adjust_cost): Add power8 support.
13935 (rs6000_issue_rate): Likewise.
13936 (insn_must_be_first_in_group): Likewise.
13937 (insn_must_be_last_in_group): Likewise.
13938 (force_new_group): Likewise.
13939 (rs6000_register_move_cost): Likewise.
13940 (rs6000_opt_masks): Likewise.
13941
13942 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
13943 power8 capable assembler, default to power7 options.
13944 (TARGET_DIRECT_MOVE): Likewise.
13945 (TARGET_CRYPTO): Likewise.
13946 (TARGET_P8_VECTOR): Likewise.
13947 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
13948 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
13949 (VECTOR_MEM_P8_VECTOR_P): Likewise.
13950 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
13951 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
13952 (TARGET_XSCVDPSPN): Likewise.
13953 (TARGET_XSCVSPDPN): Likewsie.
13954 (TARGET_SYNC_HI_QI): Likewise.
13955 (TARGET_SYNC_TI): Likewise.
13956 (MASK_CRYPTO): Likewise.
13957 (MASK_DIRECT_MOVE): Likewise.
13958 (MASK_P8_FUSION): Likewise.
13959 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
13960 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
13961 temporary used by some of the direct move instructions to get two FP
13962 temporary registers does not force creation of a stack frame.
f62511da
MM
13963 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
13964 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
13965 that any VSX registers are tieable, even if they are also an
13966 Altivec vector mode.
13967 (r6000_reg_class_enum): Add wm, wr, wv constraints.
13968 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
13969 (RS6000_BTM_CRYPTO): Likewise.
13970 (RS6000_BTM_COMMON): Likewise.
13971
13972 * config/rs6000/rs6000.md (cpu attribute): Add power8.
13973 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
13974 (enum rs6000_vector): Add power8 vector support.
13975
73a1a707
RR
139762013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13977
13978 PR target/19599
13979 PR target/57340
13980 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
13981 (any_sibcall_could_use_r3): this and handle indirect calls.
13982 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
13983
d28073d4
BS
139842013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13985
13986 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
13987
bee0b10c
RB
139882013-05-22 Richard Biener <rguenther@suse.de>
13989
13990 PR middle-end/57349
13991 * profile.c (branch_prob): Do not split blocks that are
13992 abnormally receiving from ECF_RETURNS_TWICE functions.
13993
98409b51
RS
139942013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
13995
13996 * recog.c (offsettable_address_addr_space_p): Fix calculation of
13997 address mode. Move pointer mode initialization to the same place.
13998
c0602ab8
MZ
139992013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
14000
14001 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
14002 while it has any effect.
14003
4f7a634e
ER
140042013-05-21 Easwaran Raman <eraman@google.com>
14005
14006 PR tree-optimization/57322
9daf6dbb
ER
14007 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
14008 UID of the statement added to the BB to be 1.
4f7a634e 14009
a4ce1258
JJ
140102013-05-21 Jakub Jelinek <jakub@redhat.com>
14011
14012 PR tree-optimization/57331
70cc1536
UB
14013 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
14014 of conversion from pointer type to integral type with integer.
a4ce1258 14015
1b14621a
MJ
140162013-05-21 Martin Jambor <mjambor@suse.cz>
14017
14018 PR lto/57289
14019 * ipa-prop.c (ipa_read_node_info): Process param_used and
14020 controlled_uses in the same order as when writing.
14021
e60661f0
MG
140222013-05-21 Magnus Granberg <baldrick@free.fr>
14023
14024 PR plugins/56754
ee49aa34 14025 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 14026
4a61be9a
RB
140272013-05-21 Richard Biener <rguenther@suse.de>
14028
14029 PR tree-optimization/57318
14030 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
14031 estimate stmts with side-effects as likely eliminated.
14032
c52da5f7
RB
140332013-05-21 Richard Biener <rguenther@suse.de>
14034
14035 PR tree-optimization/57330
14036 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
14037 preserve the call stmts fntype.
14038
7ec67e2a
RB
140392013-05-21 Richard Biener <rguenther@suse.de>
14040
14041 PR tree-optimization/57303
14042 * tree-ssa-sink.c (statement_sink_location): Improve killing
14043 stmt detection and properly handle self-assignments.
14044
b112d513
CB
140452013-05-21 Christian Bruel <christian.bruel@st.com>
14046
55805e54
YR
14047 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
14048 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
14049 registers. Set register size out of the PARALLEL loop.
14050
14c2ec26
OE
140512013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
14052
14053 PR target/56547
14054 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
14055 (*fmasf4, *fmasf4_media): New insns.
14056
da734fa1
RS
140572013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14058
14059 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
14060 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
14061 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
14062 (mips_idiv_insns): Update the comments to say that the returned
14063 instruction counts are in units of BASE_INSN_LENGTH.
14064 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
14065 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
14066 using 2 rather than 4 as the length of indirect MIPS16 and
14067 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
14068 length of a NOP. Don't divide MIPS16 lengths by 2.
14069 (mips16_split_long_branches): Assume a branch is long if the
14070 length is greater than 4 rather than 8.
14071 * config/mips/mips.md (length): Give MIPS16 lengths directly,
14072 rather than multiplying them by 2. Multiply instruction counts
14073 by BASE_INSN_LENGTH rather than 4.
14074 (*jump_mips16, tls_get_tp_mips16_<mode>)
14075 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
14076
13719e8b
RS
140772013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14078
14079 * config/mips/mips.md (extended_mips16): Remove branch case.
14080 (length): Remove duplicated extended_mips16 test.
14081
c3850d14
RS
140822013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
14083
14084 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
14085
8da2e059
RS
140862013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
14087
14088 * recog.h (Recog_data): Rename to...
14089 (recog_data_d): ...this.
14090 (recog_data): Update accordingly.
14091 * recog.c (recog_data): Likewise.
14092 * reload.c (save_recog_data): Likewise.
14093 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
14094 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
14095
2df013f3
JB
140962013-05-17 Julian Brown <julian@codesourcery.com>
14097
14098 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
14099 found in a REG_EQUAL note, invalidate it.
14100
371e77e3 141012013-05-17 Easwaran Raman <eraman@google.com>
933f507d
ER
14102
14103 * tree-ssa-reassoc.c (find_insert_point): New function.
14104 (insert_stmt_after): Likewise.
14105 (get_def_stmt): Likewise.
14106 (ensure_ops_are_available): Likewise.
14107 (not_dominated_by): Likewise.
14108 (rewrite_expr_tree): Do not move statements beyond what is
14109 necessary. Remove call to swap_ops_for_binary_stmt...
14110 (reassociate_bb): ... and move it here.
14111 (build_and_add_sum): Assign UIDs for new statements.
14112 (linearize_expr): Likewise.
14113 (do_reassoc): Renumber gimple statement UIDs.
14114
e01c7cca
JH
141152013-05-17 Jan Hubicka <jh@suse.cz>
14116
14117 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
14118 weakrefs.
14119 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
14120 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
14121 weakrefs.
e01c7cca
JH
14122 (output_weakrefs): Update.
14123
c3272a92
PCC
141242013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
14125 Martin Jambor <mjambor@suse.cz>
14126
14127 PR middle-end/57276
14128 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
14129 value that corresponds to the given aggval is found in values vector.
14130
11c2aa39
UB
141312013-05-17 Uros Bizjak <ubizjak@gmail.com>
14132
14133 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
14134 sse, sse2, sse3, ssse3 and sse4a flags to options.
14135
abecc8c6
DM
141362013-05-17 David Malcolm <dmalcolm@redhat.com>
14137
14138 * gengtype-state.c: (s_expr_writer): New class, to handle
14139 prettifying of output layout of s-expressions.
14140 (state_writer): New class, to write out gtype.state.
14141 (state_written_type_count): Move this variable into member data of
14142 state_writer.
14143 (s_expr_writer::s_expr_writer): New code: constructor for new class
14144 (state_writer::state_writer(): ditto
14145 (s_expr_writer::write_new_line): New function
14146 (s_expr_writer::write_any_indent): ditto
14147 (s_expr_writer::begin_s_expr): ditto
14148 (s_expr_writer::end_s_expr): ditto
14149 (write_state_fileloc): convert to method of state_writer...
14150 (state_writer:: write_state_fileloc): ...and use methods of
14151 s_expr_writer to write indentation into the gtype.state output file
14152 to visually represent the hierarchical structure of the list
14153 structures
14154 (write_state_fields): ditto, renaming to...
14155 (state_writer::write_state_fields)
14156 (write_state_a_string): ditto, renaming to...
14157 (state_writer::write_state_a_string)
14158 (write_state_string_option): ditto, renaming to...
14159 (state_writer::write_state_string_option)
14160 (write_state_type_option): ditto, renaming to...
14161 (state_writer::write_state_type_option)
14162 (write_state_nested_option): ditto, renaming to...
14163 (state_writer::write_state_nested_option)
14164 (write_state_option): ditto, renaming to...
14165 (state_writer::write_state_option)
14166 (write_state_options): ditto, renaming to...
14167 (state_writer::write_state_options)
14168 (write_state_lang_bitmap): ditto, renaming to...
14169 (state_writer::write_state_lang_bitmap)
14170 (write_state_version): ditto, renaming to...
14171 (state_writer::write_state_version)
14172 (write_state_scalar_type): ditto, renaming to...
14173 (state_writer::write_state_scalar_type)
14174 (write_state_string_type): ditto, renaming to...
14175 (state_writer::write_state_string_type)
14176 (write_state_undefined_type): ditto, renaming to...
14177 (state_writer::write_state_undefined_type)
14178 (write_state_struct_union_type): ditto, renaming to...
14179 (state_writer::write_state_struct_union_type)
14180 (write_state_struct_type): ditto, renaming to...
14181 (state_writer::write_state_struct_type)
14182 (write_state_user_struct_type): ditto, renaming to...
14183 (state_writer::write_state_user_struct_type)
14184 (write_state_lang_struct_type): ditto, renaming to...
14185 (state_writer::write_state_lang_struct_type)
14186 (write_state_param_struct_type): ditto, renaming to...
14187 (state_writer::write_state_param_struct_type)
14188 (write_state_pointer_type): ditto, renaming to...
14189 (state_writer::write_state_pointer_type)
14190 (write_state_array_type): ditto, renaming to...
14191 (state_writer::write_state_array_type)
14192 (write_state_gc_used): ditto, renaming to...
14193 (state_writer::write_state_gc_used)
14194 (write_state_common_type_content): ditto, renaming to...
14195 (state_writer::write_state_common_type_content)
14196 (write_state_type): ditto, renaming to...
14197 (state_writer::write_state_type)
14198 (write_state_pair_list): ditto, renaming to...
14199 (state_writer::write_state_pair_list)
14200 (write_state_pair): ditto, renaming to...
14201 (state_writer::write_state_pair)
14202 (write_state_typedefs): ditto, renaming to...
14203 (state_writer::write_state_typedefs)
14204 (write_state_structures): ditto, renaming to...
14205 (state_writer::write_state_structures)
14206 (write_state_param_structs): ditto, renaming to...
14207 (state_writer::write_state_param_structs)
14208 (write_state_variables): ditto, renaming to...
14209 (state_writer::write_state_variables)
14210 (write_state_srcdir): ditto, renaming to...
14211 (state_writer::write_state_srcdir)
14212 (write_state_files_list): ditto, renaming to...
14213 (state_writer::write_state_files_list)
14214 (write_state_languages): ditto, renaming to...
14215 (state_writer::write_state_languages)
14216 (write_state): create a state_writer instance and use it when
14217 writing out the state file
14218
d6545f29
MS
142192013-05-17 Mike Stump <mikestump@comcast.net>
14220
816a3f73 14221 PR rtl-optimization/57304
d6545f29
MS
14222 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
14223 accessing DF_REF_REAL_LOC.
14224
38c821cf
JJ
142252013-05-17 Jakub Jelinek <jakub@redhat.com>
14226
14227 PR rtl-optimization/57281
14228 PR rtl-optimization/57300
14229 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
14230 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
14231 what the other splitter did if the registers are dead.
14232
2a293391
RB
142332013-05-17 Richard Biener <rguenther@suse.de>
14234
14235 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
14236 MEM_REF offsets.
14237
17042d2b
JJ
142382013-05-17 Jakub Jelinek <jakub@redhat.com>
14239
14240 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
14241 linking.
14242
5b115c1f
MP
142432013-05-17 Marek Polacek <polacek@redhat.com>
14244
11c2aa39
UB
14245 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
14246 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 14247
52d84413
JJ
142482013-05-17 Jakub Jelinek <jakub@redhat.com>
14249
68119618
JJ
14250 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
14251 vect_external_def oprnd1 with loop_vinfo, try to emit
14252 optional cast, negation and and stmts on the loop preheader
14253 edge instead of into the pattern def seq.
14254
52d84413
JJ
14255 PR tree-optimization/57051
14256 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
14257 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
14258
17b962bd
NC
142592013-05-16 Nick Clifton <nickc@redhat.com>
14260
14261 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
14262 (rl78_is_naked_func): New function.
56aefbf7
UB
14263 (rl78_expand_prologue): Skip prologue generation for naked functions.
14264 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
14265 * doc/extend.texi (naked): Add RL78 to the list of processors
14266 that supports this attribute.
14267
b1a0f84e
JL
142682013-05-16 Jeff Law <law@redhat.com>
14269
14270 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
14271
af0e415b
UB
142722013-05-16 Uros Bizjak <ubizjak@gmail.com>
14273
14274 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
14275 cache parameters using detect_caches_amd also for CYRIX,
14276 NSC and TM2 signatures.
14277
19db293a
UB
142782013-05-16 Uros Bizjak <ubizjak@gmail.com>
14279 Dzianis Kahanovich <mahatma@eu.by>
14280
14281 PR target/45359
14282 PR target/46396
14283 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14284 VIA/Centaur processors and determine their cache parameters
14285 using detect_caches_amd.
14286
251a41b9
TJ
142872013-05-16 Teresa Johnson <tejohnson@google.com>
14288
14289 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
14290 (rtl_verify_edges): New function.
14291 (rtl_verify_bb_insns): Ditto.
14292 (rtl_verify_bb_pointers): Ditto.
14293 (rtl_verify_bb_insn_chain): Ditto.
14294 (rtl_verify_fallthru): Ditto.
14295 (rtl_verify_bb_layout): Ditto.
14296 (rtl_verify_flow_info_1): Outline checks into new functions.
14297 (rtl_verify_flow_info): Ditto.
14298
f14540b6
SE
142992013-05-16 Steve Ellcey <sellcey@imgtec.com>
14300
14301 * cfghooks.c (copy_bbs): Add update_dominance argument.
14302 * cfghooks.h (copy_bbs): Update prototype.
14303 * tree-cfg.c (gimple_duplicate_sese_region):
14304 Add update_dominance argument.
14305 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
14306 * tree-ssa-loop-ch.c (copy_loop_headers): Update
14307 gimple_duplicate_sese_region call.
14308 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
14309 Update copy_bbs call.
14310 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
14311 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
14312
7e9a3abb
JJ
143132013-05-16 Jakub Jelinek <jakub@redhat.com>
14314
14315 * tree-vectorizer.h (NUM_PATTERNS): Increment.
14316 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
14317 vect_recog_rotate_pattern.
14318 (vect_recog_rotate_pattern): New function.
14319
427b248d
JM
143202013-05-16 Jason Merrill <jason@redhat.com>
14321
14322 * Makefile.in (LLINKER): New variable.
14323 (mostlyclean): Remove link mutex.
14324 * configure.ac: Handle --enable-link-mutex.
14325 * lock-and-run.sh: New script.
14326
b871e3d2
RR
143272013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14328
14329 PR target/19599
14330 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
14331 for NULL decl.
14332
ce858126
RO
143332013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14334
14335 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
14336
798d3d04
GY
143372013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
14338
14339 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
14340 * config/arm/arm.c (next_consecutive_mem): New function.
14341 (gen_movmem_ldrd_strd): Likewise.
14342 * config/arm/arm.md (movmemqi): Update condition and code.
14343 (unaligned_loaddi, unaligned_storedi): New patterns.
14344
0baddc45
RO
143452013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14346
14347 * config.gcc: Obsolete *-*-solaris2.9*.
14348 * doc/install.texi (Specific, *-*-solaris2*): Document it.
14349
aa9d5bcf
RB
143502013-05-16 Richard Biener <rguenther@suse.de>
14351
14352 * passes.c (init_optimization_passes): Move pass_parallelize_loops
14353 earlier, after GRAPHITE transforms and IV canonicalization.
14354
5a0f4dd3
JJ
143552013-05-16 Jakub Jelinek <jakub@redhat.com>
14356
14357 * omp-low.c (extract_omp_for_data): For collapsed loops,
14358 if at least one of the loops is known at compile time to
14359 iterate zero times, set count to 0.
14360 (expand_omp_regimplify_p): New function.
14361 (expand_omp_for_generic): For collapsed loops, if at least
14362 one of the loops isn't known to iterate at least once,
14363 add runtime check with setting count to 0.
14364 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
14365 For unsigned types if it isn't known at compile time that
14366 the loop will iterate at least once, add runtime check to bypass
14367 the whole loop if initial condition isn't true.
14368
e3753785
NS
143692013-05-16 Nathan Sidwell <nathan@codesourcery.com>
14370
14371 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
14372
43bb4dd1
MG
143732013-05-16 Marc Glisse <marc.glisse@inria.fr>
14374
14375 PR middle-end/57286
14376 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
14377 transformations to avoid an infinite loop.
14378
3571dde6
MP
143792013-05-16 Marek Polacek <polacek@redhat.com>
14380
14381 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
14382
b8b3f0ca
LE
143832013-05-15 Leif Ekblad <leif@rdos.net>
14384
14385 * config/i386/i386.c (ix86_decompose_address): Use
14386 DEFAULT_TLS_SEG_REG to access TLS segment register.
14387 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
14388 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
14389 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
14390
e299a383
RS
143912013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
14392
14393 PR target/57260
14394 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
14395 sibling calls to functions that would normally be lazily bound,
14396 unless $gp is call-clobbered.
14397
e7208ea3
UB
143982013-05-15 Uros Bizjak <ubizjak@gmail.com>
14399
19db293a 14400 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 14401 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
14402 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
14403 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
14404 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
14405 of TARGET_3DNOW.
14406 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
14407
e7413f3d
AS
144082013-05-15 Andreas Schwab <schwab@suse.de>
14409
14410 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
14411 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
14412 third operand.
14413
ad4db775
TJ
144142013-05-15 Teresa Johnson <tejohnson@google.com>
14415
14416 * loop-unroll.c (report_unroll_peel): Check decision before
14417 emitting unroll/peel message.
14418
af205f67
TJ
144192013-05-15 Teresa Johnson <tejohnson@google.com>
14420
14421 * function.h (has_bb_partition): New rtl_data flag.
14422 (bb_reorder_complete): Ditto.
14423 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
14424 instead of flag_reorder_blocks_and_partition.
14425 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
14426 with some enhancements.
14427 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
14428 * bb-reorder.c (connect_traces): Check for has_bb_partition
14429 instead of flag_reorder_blocks_and_partition.
14430 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
14431 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
14432 verify_hot_cold_block_grouping.
14433 (partition_hot_cold_basic_blocks): Set has_bb_partition.
14434
9adcfa3c
RR
144352013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14436
14437 PR target/19599
14438 * config/arm/predicates.md (call_insn_operand): New predicate.
14439 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
14440 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
14441 if insn is not a tail call.
14442 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
14443 registers.
14444 * config/arm/arm.h (enum reg_class): New caller save register class.
14445 (REG_CLASS_NAMES): Likewise.
14446 (REG_CLASS_CONTENTS): Likewise.
14447 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
14448 without decls.
14449
ccb3ad87
RB
144502013-05-15 Richard Biener <rguenther@suse.de>
14451
14452 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
14453 of MSG_OPTIMIZED_LOCATIONS.
14454 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
14455 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
14456 message.
14457 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
14458 of MSG_OPTIMIZED_LOCATIONS.
14459 (execute_vect_slp): Likewise.
14460 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
14461 (vect_create_cond_for_alias_checks): Likewise.
14462 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
14463 (vect_recog_widen_mult_pattern): Likewise.
14464 (vect_recog_widen_sum_pattern): Likewise.
14465 (vect_recog_over_widening_pattern): Likewise.
14466 (vect_recog_widen_shift_pattern): Likewise.
14467 (vect_recog_vector_vector_shift_pattern): Likewise.
14468 (vect_recog_divmod_pattern): Likewise.
14469 (vect_recog_mixed_size_cond_pattern): Likewise.
14470 (vect_recog_bool_pattern): Likewise.
14471 (vect_pattern_recog_1): Likewise.
14472
48b1474e
MJ
144732013-05-15 Martin Jambor <mjambor@suse.cz>
14474
14475 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
14476 non-functions to builtin_unreachable.
14477 * ipa-inline-transform.c (inline_call): Do not assert estimates were
14478 correct when new direct edges were discovered.
14479
9de04252
MJ
144802013-05-15 Martin Jambor <mjambor@suse.cz>
14481
14482 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
14483 header, print symbol order instead of node uid, print more information
14484 about indirect edge targets.
14485 (ipa_make_edge_direct_to_target): Print symbol order instead of node
14486 uids.
14487 (ipa_make_edge_direct_to_target): Likewise.
14488 (remove_described_reference): Likewise.
14489 (propagate_controlled_uses): Likewise.
14490 (ipa_print_node_params): Also print symbol order.
14491 (ipcp_transform_function): Print symbol order instead of node uids.
14492 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
14493 (cgraph_get_create_real_symbol_node): Likewise.
14494 * ipa-cp.c (print_lattice): Likewise.
14495 (print_all_lattices): Likewise.
14496 (determine_versionability): Likewise.
14497 (initialize_node_lattices): Likewise.
14498 (estimate_local_effects): Likewise.
14499 (update_profiling_info): Likewise.
14500 (create_specialized_node): Likewise.
14501 (perhaps_add_new_callers): Likewise.
14502 (decide_about_value): Likewise.
14503 (decide_whether_version_node): Likewise.
14504 (identify_dead_nodes): Likewise.
14505 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
14506 (dump_inline_summary): Likewise.
14507 (estimate_node_size_and_time): Likewise.
14508 (inline_analyze_function): Likewise.
14509 * ipa-inline.c (report_inline_failed_reason): Likewise.
14510 (want_early_inline_function_p): Likewise.
14511 (edge_badness): Likewise.
14512 (update_edge_key): Likewise.
14513 (inline_small_functions): Likewise. Add dumping of order to two other
14514 dumps.
14515 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
14516 instead of node uids.
14517 (propagate_pure_const): Likewise.
14518 (propagate_pure_const): Likewise.
14519 * ipa-utils.c (dump_cgraph_node_set): Likewise.
14520 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
14521 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
14522 of node uids.
14523 * tree-pretty-print.c (dump_function_header): Likewise.
14524 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
14525 Print symbol order instead of node uids.
14526
1dd03b91
AK
145272013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14528
14529 * config/s390/s390.c (s390_register_move_cost): Don't impose the
14530 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
14531
fdf6a7b9
RB
145322013-05-15 Richard Biener <rguenther@suse.de>
14533
14534 PR tree-optimization/57275
14535 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
14536 return value for fail to do runtime alias checks for gather loads.
14537
2d6e4603
JH
145382013-05-15 Jan Hubicka <jh@suse.cz>
14539
14540 PR lto/57038
14541 PR lto/47375
e7208ea3
UB
14542 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
14543 weakrefs are not external.
14544 (lto_symtab_merge_decls): Fix thinko when dealing with
14545 non-lto_symtab decls.
2d6e4603
JH
14546 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
14547 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
14548 * varpool.c (dump_varpool_node): Dump more flags.
14549
83f44b39
GG
145502013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14551
14552 * config/i386/i386.c (processor_alias_table): Add instruction
14553 FSGSBASE for AMD bdver3 architecture.
14554
2e55d062
JJ
145552013-05-14 Jakub Jelinek <jakub@redhat.com>
14556
14557 * tree.c (warn_deprecated_use): Print file:line using locus color.
14558 * diagnostic.c (diagnostic_report_current_module): Print file:line
14559 and file:line:column using locus color.
14560
0bfdb81e
MS
145612013-05-14 Mike Stump <mikestump@comcast.net>
14562
14563 * gdbinit.in: Add __null.
14564
a508ef22
MS
145652013-05-14 Mike Stump <mikestump@comcast.net>
14566
14567 * recog.h: Rename struct recog_data to Recog_data.
14568 * recog.c: Likewise.
14569 * reload.c (can_reload_into): Likewise.
14570 * config/picochip/picochip.c: Likewise.
14571
e7180acb
MS
145722013-05-14 Mike Stump <mikestump@comcast.net>
14573
14574 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
14575
61216c26
SB
145762013-05-14 Steven Bosscher <steven@gcc.gnu.org>
14577
fd6beed4
SB
14578 * resource.h (struct resources): Remove unch_memory member.
14579 (CLEAR_RESOURCE): Don't clear unch_memory.
14580 * resource.c (mark_referenced_resources): Don't set it.
14581 (mark_set_resources): Likewise.
14582 (mark_target_live_regs): Don't clear it.
14583 (init_resource_info): Likewise.
14584 * reorg.c (resource_conflicts_p): Don't compare it.
14585 (redundant_insn): Don't set it.
14586
61216c26
SB
14587 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
14588 Remove prototypes.
14589 * emit-rtl.c (next_label): Remove unused function.
14590 (skip_consecutive_labels, link_cc0_insns): Move to ...
14591 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
14592 only place where these functions are used, and make them static.
14593
418d1b87
MG
145942013-05-14 Marc Glisse <marc.glisse@inria.fr>
14595
14596 * fold-const.c (fold_negate_expr): Handle vectors.
14597 (fold_truth_not_expr): Make it static.
14598 (fold_invert_truthvalue): New static function.
14599 (invert_truthvalue_loc): Handle vectors. Do not call
14600 fold_truth_not_expr directly.
14601 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
14602 <TRUTH_NOT_EXPR>: Do not cast to boolean.
14603 (fold_comparison): Handle vector constants.
14604 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
14605 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
14606 * tree.h (fold_truth_not_expr): Remove declaration.
14607
fc21784d
JG
146082013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
14609
14610 * config/aarch64/aarch64-simd.md
14611 (aarch64_vcond_internal<mode>): Rename to...
14612 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
14613 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
14614 float modes. Clarify all iterator modes.
14615 (vcond<mode><mode>): Use new name for vcond expanders.
14616 (vcond<v_cmp_result><mode>): Likewise.
14617 (vcondu<mode><mode>: Likewise.
14618 * config/aarch64/iterators.md (VDQF_COND): New.
14619
d4c52634
MG
146202013-05-14 Marc Glisse <marc.glisse@inria.fr>
14621
14622 PR bootstrap/57266
14623 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
14624 variable for the shift amount. Check that we shift by non-negative
14625 amounts.
14626
2b261262
CLT
146272013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
14628
14629 PR target/42017
14630 * config/arm/arm.h (EPILOGUE_USES): Only return true
14631 for LR_REGNUM after epilogue_completed.
14632
12211b99 146332013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
6e022d7b
JR
14634
14635 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 14636 is error_mark_node.
6e022d7b 14637
56cf7859
RO
146382013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14639
14640 PR target/57261
14641 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
14642 and Solaris 11+/x86 with gld.
14643 * configure: Regenerate.
14644
75776c6d
JJ
146452013-05-14 Jakub Jelinek <jakub@redhat.com>
14646
14647 * expmed.c (expand_shift_1): Canonicalize rotates by
14648 constant bitsize / 2 to bitsize - 1.
7f998021 14649 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
14650 case ROTATERT>: Likewise.
14651
14652 Revert:
14653 2013-05-10 Jakub Jelinek <jakub@redhat.com>
14654
14655 * config/i386/i386.md (rotateinv): New code attr.
14656 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
14657 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
14658 roll $31, %eax, etc.
14659
df35498a
RB
146602013-05-14 Richard Biener <rguenther@suse.de>
14661
14662 PR middle-end/57235
14663 * tree-eh.c (sink_clobbers): Give up for successors with
14664 multiple predecessors and no virtual uses.
14665
cc6e7ece
EB
146662013-05-14 Eric Botcazou <ebotcazou@adacore.com>
14667
14668 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
14669 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
14670
f778dd4d
JJ
146712013-05-14 Jakub Jelinek <jakub@redhat.com>
14672
14673 PR middle-end/57251
14674 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
14675 the case when both op0 and op1 have VOIDmode.
14676
bad4df9b
KP
146772013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
14678
14679 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
14680 in multiply-accumulate mode.
14681
56f3e9ac
GW
146822013-05-13 Guozhi Wei <carrot@google.com>
14683
14684 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
14685
a3d7ab92
KT
146862013-05-13 Kai Tietz <ktietz@redhat.com>
14687
14688 PR target/56975
14689 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 14690 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 14691 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 14692 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
14693 (ix86_expand_prologue): Likewise.
14694 (ix86_expand_split_stack_prologue): Likewise.
14695 (legitimate_pic_address_disp_p): Likewise.
14696 (legitimize_pic_address): Likewise.
14697 (legitimize_tls_address): Likewise.
14698 (legitimize_pe_coff_symbol): Likewise.
14699 (output_pic_addr_const): Likewise.
14700 (construct_plt_address): Likewise.
14701 (ix86_expand_call): Likewise.
14702 (x86_output_mi_thunk): Likewise.
14703 (x86_function_profiler): Likewise.
14704
c59b7e28
SN
147052013-05-13 Sofiane Naci <sofiane.naci@arm.com>
14706
14707 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
14708 similar switch cases.
14709 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
14710 (aarch64_simd_mov_to_<mode>low): Delete.
14711 (aarch64_simd_mov_to_<mode>high): Delete.
14712 (move_lo_quad_<mode>): Add w<-r alternative.
14713 (aarch64_simd_move_hi_quad_<mode>): Likewise.
14714 (aarch64_simd_mov_from_*): Update type attribute.
14715 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
14716 statement.
14717
5f28524a
JH
147182013-05-13 Jan Hubicka <jh@suse.cz>
14719
14720 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
14721 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
14722 ix86_expand_epilogue, emit_i387_cw_initialization,
14723 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
14724 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 14725
ae6fa899
JJ
147262013-05-13 Jakub Jelinek <jakub@redhat.com>
14727
14728 PR tree-optimization/45216
14729 PR tree-optimization/57157
14730 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
14731 the (-Y) & (B - 1) variant if OP is |.
14732 * expmed.c (expand_shift_1): For rotations by const0_rtx just
14733 return shifted. Use (-op1) & (prec - 1) as other_amount
14734 instead of prec - op1.
14735
4502fe8d
MJ
147362013-05-13 Martin Jambor <mjambor@suse.cz>
14737
14738 PR middle-end/42371
14739 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
14740 (ipa_constant_data): New type.
14741 (ipa_jump_func): Use ipa_constant_data to hold information about
14742 constant jump functions.
14743 (ipa_get_jf_constant): Adjust to jump function type changes.
14744 (ipa_get_jf_constant_rdesc): New function.
14745 (ipa_param_descriptor): New field controlled_uses.
14746 (ipa_get_controlled_uses): New function.
14747 (ipa_set_controlled_uses): Likewise.
14748 * ipa-ref.h (ipa_find_reference): Declare.
14749 * ipa-prop.c (ipa_cst_ref_desc): New type.
14750 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
14751 changes.
14752 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
14753 New parameter cs. Adjust all callers.
14754 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
14755 (remove_described_reference): New function.
14756 (jfunc_rdesc_usable): Likewise.
14757 (try_make_edge_direct_simple_call): Decrement controlled use count,
14758 attempt to remove reference if it hits zero.
14759 (combine_controlled_uses_counters): New function.
14760 (propagate_controlled_uses): Likewise.
14761 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
14762 (ipa_edge_duplication_hook): Duplicate reference descriptions.
14763 (ipa_print_node_params): Print described use counter.
14764 (ipa_write_jump_function): Adjust to jump function type changes.
14765 (ipa_read_jump_function): New parameter CS, pass it to
14766 ipa_set_jf_constant. Adjust caller.
14767 (ipa_write_node_info): Stream controlled use count
14768 (ipa_read_node_info): Likewise.
14769 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
14770 asserting.
14771 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
14772 count. Remove cloning-added reference if it reaches zero.
14773 * ipa-ref.c (ipa_find_reference): New function.
14774
0864bfc2
GG
147752013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
14776
e7208ea3 14777 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
14778 alignment values for AMD BD and BT architectures.
14779
640bfeb2
MG
147802013-05-13 Marc Glisse <marc.glisse@inria.fr>
14781
14782 * tree-vect-generic.c (uniform_vector_p): Move ...
14783 * tree.c (uniform_vector_p): ... here.
14784 * tree.h (uniform_vector_p): Declare it.
14785 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
14786 into a scalar.
14787
3a60f32b
JJ
147882013-05-13 Jakub Jelinek <jakub@redhat.com>
14789
198fe1bf
JJ
14790 PR tree-optimization/57230
14791 * tree-ssa-strlen.c (handle_char_store): Record length for
14792 array store from STRING_CST.
14793
3a60f32b
JJ
14794 PR tree-optimization/57230
14795 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
14796 check.
14797
566be57c
JR
147982013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
14799
14800 * config/epiphany/epiphany.c (epiphany_init): Check size of
14801 NUM_MODES_FOR_MODE_SWITCHING.
14802 (epiphany_expand_prologue):
14803 Remove CONFIG_REGNUM initial value handling code.
14804 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
14805 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 14806 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
14807 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
14808 Don't return 1 for FP_MODE_NONE.
14809 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
14810 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
14811 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
14812 * config/epiphany/epiphany.md (save_config): New pattern.
14813
0f2c2331
UB
148142013-05-12 Uros Bizjak <ubizjak@gmail.com>
14815
14816 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
14817
5b3f93c7
UB
148182013-05-10 Uros Bizjak <ubizjak@gmail.com>
14819
14820 * config/i386/i386.md (memory): Handle sseishft1.
14821 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
14822 (*vec_extractv2di_1): Ditto.
14823
1f873f0e
VM
148242013-05-10 Vladimir Makarov <vmakarov@redhat.com>
14825
14826 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
14827 saved registers.
14828
341427fa 148292013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
14830
14831 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
14832 Add mthumb/march=armv7-a multilib.
14833 Add mthumb/march=armv7-r multilib.
14834 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
14835
9e69bdde
RC
148362013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
14837
14838 * config/v850/t-rtems: Add more multilibs.
14839
9ff09a22
RB
148402013-05-10 Richard Biener <rguenther@suse.de>
14841
14842 PR tree-optimization/57214
14843 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
14844 not propagate from SSA names that occur in abnormal PHI nodes.
14845
a5e0cd1d
MG
148462013-05-10 Marc Glisse <marc.glisse@inria.fr>
14847
14848 * stor-layout.c (element_precision): New function.
14849 * machmode.h (element_precision): Declare it.
14850 * tree.c (build_minus_one_cst): New function.
14851 (element_precision): Likewise.
14852 * tree.h (build_minus_one_cst): Declare new function.
14853 (element_precision): Likewise.
14854 * fold-const.c (operand_equal_p): Use element_precision.
14855 (fold_binary_loc): Handle vector types.
14856 * convert.c (convert_to_integer): Use element_precision.
14857 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
14858 separately.
14859
cb2558bc
RS
148602013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
14861
14862 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
14863 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
14864 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
14865 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
14866 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
14867 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
14868 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
14869 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
14870 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
14871 (Uuw8): New constraints.
14872 (Usb4): Move into alphabetical order.
14873 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
14874 (sd8_operand, ub8_operand, uw8_operand): New predicates.
14875 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
14876 previously unnamed patterns.
14877 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
14878 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
14879 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
14880 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
14881 of set_attr_alternative/if_then_else. Use extended_mips16 instead
14882 of specific lengths.
14883
cb3b8d33
JJ
148842013-05-10 Jakub Jelinek <jakub@redhat.com>
14885
6f93c008
JJ
14886 * config/i386/i386.md (rotateinv): New code attr.
14887 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
14888 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
14889 roll $31, %eax, etc.
14890
cb3b8d33
JJ
14891 PR tree-optimization/45216
14892 PR tree-optimization/57157
14893 * tree-ssa-forwprop.c (simplify_rotate): New function.
14894 (ssa_forward_propagate_and_combine): Call it.
14895
afb119be
RB
148962013-05-10 Richard Biener <rguenther@suse.de>
14897
14898 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
14899 disable peeling when we version for aliasing.
14900 (vector_alignment_reachable_p): Honor explicit user alignment.
14901 (vect_supportable_dr_alignment): Likewise.
14902 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
14903 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
14904 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
14905 then peeling to arrange for the cost-model check to come first.
14906
01ae4861
AM
149072013-05-10 Alan Modra <amodra@gmail.com>
14908
14909 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
14910 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
14911 * configure: Regenerate.
14912
ebc9a431
AM
149132013-05-10 Alan Modra <amodra@gmail.com>
14914
14915 PR target/55033
14916 * varasm.c (default_elf_select_section): Move !DECL_P check..
14917 (get_named_section): ..to here before calling get_section_name.
14918 Adjust assertion.
14919 (default_section_type_flags): Add DECL_P check.
14920 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
14921 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
14922
d4bca93c
JR
149232013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
14924
14925 * config/epiphany/epiphany.c (epiphany_expand_prologue):
14926 When using gen_stack_adjust_str with a register offset, add a
14927 REG_FRAME_RELATED_EXPR note.
14928
60ca9a65
UB
149292013-05-09 Uros Bizjak <ubizjak@gmail.com>
14930
14931 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
14932 (*vec_extractv4si_zext_mem): Ditto.
14933 (*vec_extractv2di): Add 0->x and x->x alternatives.
14934 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
14935 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
14936
a3409c02
JM
149372013-05-09 Jason Merrill <jason@redhat.com>
14938
0138d6b2
JM
14939 N3639 C++1y VLA support
14940 * gimplify.c (gimplify_vla_decl): Don't touch an existing
14941 DECL_VALUE_EXPR.
14942
a3409c02
JM
14943 * tree.c (build_constructor_va): New.
14944 * tree.h: Declare it.
14945
66e6b990
MJ
149462013-05-09 Martin Jambor <mjambor@suse.cz>
14947
14948 PR lto/57084
14949 * gimple-fold.c (canonicalize_constructor_val): Call
14950 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
14951
64cfa6c0
JH
149522013-05-09 Jan Hubicka <jh@suse.cz>
14953 Richard Biener <rguenther@suse.de>
14954
14955 PR lto/54095
14956 * symtab.c (symtab_make_decl_local): Do not add private names.
14957
c3167b00
JH
149582013-05-09 Jan Hubicka <jh@suse.cz>
14959
14960 PR lto/54095
14961 * symtab.c (insert_to_assembler_name_hash): Handle clones.
14962 (unlink_from_assembler_name_hash): Likewise.
14963 (symtab_prevail_in_asm_name_hash, symtab_register_node,
14964 symtab_unregister_node, symtab_initialize_asm_name_hash,
14965 change_decl_assembler_name): Update.
14966
12dc6974
SN
149672013-05-09 Sofiane Naci <sofiane.naci@arm.com>
14968
14969 * config/aarch64/aarch64.md: New movtf split.
14970 (*movtf_aarch64): Update.
14971 (aarch64_movdi_tilow): Handle TF modes and rename to
14972 aarch64_movdi_<mode>low.
14973 (aarch64_movdi_tihigh): Handle TF modes and rename to
14974 aarch64_movdi_<mode>high
14975 (aarch64_movtihigh_di): Handle TF modes and rename to
14976 aarch64_mov<mode>high_di
14977 (aarch64_movtilow_di): Handle TF modes and rename to
14978 aarch64_mov<mode>low_di
14979 (aarch64_movtilow_tilow): Remove spurious whitespace.
14980 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
14981 splits.
14982 (aarch64_print_operand): Update.
14983
227eb343
AM
149842013-05-09 Alan Modra <amodra@gmail.com>
14985
14986 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
14987 powerpc64le.
14988 * configure: Regenerate.
14989
0b013847
UB
149902013-05-08 Uros Bizjak <ubizjak@gmail.com>
14991
14992 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
14993 splitter preparation statements.
14994 * config/i386/sse.md (*vec_extract* splitters): Ditto.
14995 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
14996 adjust_address_nv.
14997
1dc3d6e9
BS
149982013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14999
15000 * gimple-ssa-strength-reduction.c (count_candidates): Change
15001 return value to int.
15002 (analyze_candidates_and_replace): Change type of length to int.
15003
e61e7d28
UB
150042013-05-08 Uros Bizjak <ubizjak@gmail.com>
15005
15006 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
15007 (*vec_extract<mode>): Use VI12_128 mode iterator.
15008 (*vec_extract<mode>_mem): Ditto.
15009 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
15010 attribute.
15011
4fbfcf44
DN
150122013-05-08 Diego Novillo <dnovillo@google.com>
15013
15014 PR bootstrap/54659
15015
15016 Revert:
4fbfcf44
DN
15017 2012-08-17 Diego Novillo <dnovillo@google.com>
15018
e61e7d28
UB
15019 PR bootstrap/54281
15020 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
15021 * config.in: Regenerate.
15022 * configure: Regenerate.
15023 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 15024
702d8703
JH
150252013-05-08 Jan Hubicka <jh@suse.cz>
15026
15027 PR lto/54095
15028 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
15029 * cgraph.h (symtab_node_base): Add unique_name.
15030 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
15031 input_overwrite_node, input_varpool_node): Stream unique_name.
15032 * cgraphclones.c (cgraph_create_virtual_clone,
15033 cgraph_function_versioning): Set unique_name.
15034 * ipa.c (function_and_variable_visibility): Set unique_name.
15035
8b28cf47
BS
150362013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15037
15038 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
15039 (alloc_cand_and_find_basis): Restrict conditional candidate
15040 processing to CAND_MULTs.
15041
e86074fd
JH
150422013-05-08 Jan Hubicka <jh@suse.cz>
15043
15044 PR lto/54095
15045 lto-symtab.c (lto_symtab_symbol_p): New function.
15046 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
15047 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
15048 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
15049 Skip static symbols.
15050
44398cbe
PC
150512013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
15052
15053 PR tree-optimization/57200
15054 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
15055 Only call inform if the preceding warning_at returns true.
15056
f6bc1c4a
HS
150572013-05-07 Han Shen <shenhan@google.com>
15058
15059 * cfgexpand.c (record_or_union_type_has_array_p): New function.
15060 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
15061 * common.opt (fstack-protector-strong): New option.
15062 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
15063 * doc/invoke.texi (Optimization Options): Document
15064 "-fstack-protector-strong".
15065 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
15066
4ffecb1f
SB
150672013-05-06 Steven Bosscher <steven@gcc.gnu.org>
15068
15069 * config/mips/mips.c (mips_machine_reorg2): Return 0.
15070
5a107a0f
VM
150712013-05-07 Vladimir Makarov <vmakarov@redhat.com>
15072
15073 * ira.c (update_equiv_regs): Add insn having equiv memory even if
15074 it is not lhs of the insn.
15075 (setup_reg_equiv): Remove insn having equiv memory which it is not
15076 lhs of the insn.
15077 * lra-constraints.c (process_address): Try to improve generation
15078 code for address base + disp.
15079 (lra_constraints): Make correct the code for checking insn setting
15080 up backward equivalence. Remove insn only if it is in the init
15081 insn list.
15082 * lra-eliminations.c (update_reg_eliminate): Change return value.
15083 (lra_eliminate): Use the result.
15084
3f5783ea
UB
150852013-05-07 Uros Bizjak <ubizjak@gmail.com>
15086
15087 * config/i386/sse.md (ssescalarnummask): New mode attribute.
15088 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
15089 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
15090 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
15091 register target operands.
15092 (*vec_extractv8hi_sse2): New pattern.
15093 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
15094 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
15095 (*vec_extract<mode>_mem): New insn and split pattern.
15096
8a5800b8
CL
150972013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
15098
15099 * config/arm/arm.c (arm_asan_shadow_offset): New function.
15100 (TARGET_ASAN_SHADOW_OFFSET): Define.
15101 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
15102 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
15103
7bf55a70
BS
151042013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15105
15106 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
15107 (incr_vec_index): Return -1 if increment not found.
15108 (create_add_on_incoming_edge): Assert if increment not found.
15109 (record_increment): Limit number of increments recorded.
15110 (all_phi_incrs_profitable): Return false if an increment not found.
15111 (replace_profitable_candidates): Don't process increments that were
15112 not recorded.
15113 (analyze_candidates_and_replace): Limit size of incr_vec.
15114
3f8825c0
RB
151152013-05-07 Richard Biener <rguenther@suse.de>
15116
15117 * calls.c (special_function_p): setjmp-like functions are leaf.
15118 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
15119 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
15120
fd4842cd
SN
151212013-05-07 Sofiane Naci <sofiane.naci@arm.com>
15122
15123 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
15124 (aarch64_simd_mov<mode>): New expander.
15125 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
15126 (aarch64_simd_mov_to_<mode>high): Likewise.
15127 (aarch64_simd_mov_from_<mode>low): Likewise.
15128 (aarch64_simd_mov_from_<mode>high): Likewise.
15129 (aarch64_dup_lane<mode>): Update.
15130 (aarch64_dup_lanedi): New instruction pattern.
15131 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
15132 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
15133
a7a7d10e
BS
151342013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15135
15136 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
15137 (replace_mult_candidate): Remove unnecessary argument; remove
15138 unnecessary parameter from call to introduce_cast_before_cand.
15139 (replace_unconditional_candidate): Remove unnecessary parameter
15140 from call to replace_mult_candidate.
15141 (replace_conditional_candidate): Likewise.
15142 (insert_initializers): Use make_temp_ssa_name.
15143 (introduce_cast_before_cand): Remove unnecessary argument; use
15144 make_temp_ssa_name.
15145 (replace_one_candidate): Remove unnecessary argument; remove
15146 unnecessary parameter from calls to introduce_cast_before_cand.
15147 (replace_profitable_candidates): Remove unnecessary parameters
15148 from calls to replace_one_candidate.
15149
29105868
BS
151502013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15151
15152 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
15153 phi def as possibly hiding a basis for a CAND_ADD whose operands
15154 have been commuted in the analysis.
15155 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
15156
4095f9fa
N
151572013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15158
15159 * config/aarch64/aarch64.md
15160 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
15161 shift value between 0-4.
15162
39e843e8
RB
151632013-05-07 Richard Biener <rguenther@suse.de>
15164
15165 * double-int.h (rshift): New overload.
15166 * double-int.c (rshift): New function.
15167 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
15168 (create_reference_ops_from_ref): Remove.
15169 (vn_reference_insert): Use shared ops for constructing the
15170 reference and copy it.
15171
0a1a83cb
RB
151722013-05-07 Richard Biener <rguenther@suse.de>
15173
15174 PR middle-end/57190
15175 * tree-eh.c (sink_clobbers): Properly propagate
15176 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
15177
43303d6f
JJ
151782013-05-07 Jakub Jelinek <jakub@redhat.com>
15179
ba7e83f8
JJ
15180 PR tree-optimization/57149
15181 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
15182 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
15183 collect_phi_def_edges, execute_late_warn_uninitialized): Use
15184 uninit_undefined_value_p instead of ssa_undefined_value_p.
15185
43303d6f
JJ
15186 PR debug/57184
15187 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
15188 for modifier == EXPAND_INITIALIZER.
15189
14523c25
AB
151902013-05-07 Anton Blanchard <anton@samba.org>
15191
15192 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
15193 for powerpc64 little endian.
15194 * configure: Regenerate.
15195
cb7c8be9
GS
151962013-05-06 Graham Stott <grahams@btinternet.com>
15197
15198 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
15199 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
15200 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
15201 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
15202
152032013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
15204
15205 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
15206 codes which allow non-lvalues.
15207
9a0ee7b0
MG
152082013-05-06 Marc Glisse <marc.glisse@inria.fr>
15209
15210 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
15211 components are all 1s.
15212 (integer_minus_onep): New function.
15213 * tree.h (integer_minus_onep): Declare it.
15214 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
15215 integer_minus_onep instead of integer_all_onesp.
15216
f2c17ea9
OE
152172013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15218
15219 PR target/52933
15220 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
15221 variations of these patterns.
15222
f75e6a51
UB
152232013-05-06 Uros Bizjak <ubizjak@gmail.com>
15224
15225 * config/i386/i386.md (isa): Add x64_sse4 member.
15226 (enabled): Handle x64_sse4.
15227 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
15228 instruction for 64bit SSE4_1 targets. Update insn attributes.
15229 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
15230 instruction for SSE4_1 targets. Update insn attributes.
15231 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
15232 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
15233 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
15234 const_1 selector.
15235 (*vec_extractv4si): Rename from *sse4_1_pextrd.
15236 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
15237 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
15238
a986d468
OE
152392013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15240
15241 PR target/57108
15242 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
15243
382522cb
MK
152442013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
15245
15246 * final.c (do_assembler_dialects): Don't handle curly braces and
15247 vertical bar escaped by % as dialect delimiters.
15248 (output_asm_insn): Print curly braces and vertical bar if escaped
15249 by % and ASSEMBLER_DIALECT defined.
15250 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
15251 * doc/tm.texi: Regenerated.
15252
fb0d5c60
SB
152532013-05-06 Steven Bosscher <steven@gcc.gnu.org>
15254
fb0d5c60
SB
15255 * config/mips/mips.c: Include tree-pass.h.
15256 (mips_reorg): Split in pre- and post-dbr_schedule parts.
15257 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
15258 (pass_mips_machine_reorg2): New machine specific pass.
15259 (insert_pass_mips_machine_reorg2): New pass plugin definition.
15260 (mips_option_override): Register the new pass.
15261 * rtl.h (cleanup_barriers): Remove prototype.
15262 (dbr_schedule): Likewise.
15263 * jump.c (cleanup_barriers): Make static.
15264 * reorg.c (dbr_schedule): Likewise.
15265
aa06a978
RB
152662013-05-06 Richard Biener <rguenther@suse.de>
15267
15268 PR tree-optimization/57185
15269 * tree-parloops.c (add_field_for_reduction): Handle anonymous
15270 SSA names properly.
15271
0b953bec
UB
152722013-05-06 Uros Bizjak <ubizjak@gmail.com>
15273
15274 PR target/57106
15275 * config/i386/i386.c (add_parameter_dependencies): Add dependence
15276 between "first_arg" and "insn", not "last" and "insn".
15277
28708525
WS
152782013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15279
15280 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
15281 (find_candidates_in_block): Re-enable slsr_process_phi.
15282 (create_phi_basis): Fix double counting of candidate adjustment.
15283
0107dca2
RB
152842013-05-06 Richard Biener <rguenther@suse.de>
15285
15286 PR middle-end/57147
15287 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
15288 the edge is also fallthru, preserve it and just clear the
15289 abnormal flag.
15290 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
15291 also complex, preserve that and just clear the fallthru flag.
15292 * tree-inline.c (update_ssa_across_abnormal_edges): Also
15293 update virtual operands.
15294
470d4d13
AM
152952013-05-06 Alan Modra <amodra@gmail.com>
15296
15297 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
15298 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
15299 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
15300 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
15301 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
15302 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
15303
8f1dbf8d
AM
153042013-05-06 Alan Modra <amodra@gmail.com>
15305
15306 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
15307 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
15308 (DEFAULT_ASM_ENDIAN): Define.
15309 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
15310 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
15311 Update -K PIC clause from sysv4.h.
15312 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
15313 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
15314
54890767
AM
153152013-05-06 Alan Modra <amodra@gmail.com>
15316
15317 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
15318 twice for little-endian.
15319 (ashrdi3_no_power, ashrdi3): Support little-endian.
15320
2353515d
OE
153212013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
15322
15323 PR target/55303
15324 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
15325 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
15326 related expanders.
15327 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
15328 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
15329 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
15330 New predicates.
15331
33e67557
SB
153322013-05-05 Steven Bosscher <steven@gcc.gnu.org>
15333 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15334
15335 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
15336 * config/pa/pa.opt: Make mbig-switch a no-op.
15337 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
15338 (CASE_VECTOR_MODE): Always return SImode.
15339 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
15340 for the !TARGET_BIG_SWITCH case.
15341 * config/pa/pa-linux.h: Likewise.
15342 * config/pa/pa-openbsd.h: Likewise.
15343 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
15344 * config/pa/pa.md (short_jump): Remove define_insn.
15345 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
15346 (casesi0): Remove define_insn.
15347 (type): Remove btable_branch.
15348 (pa_combine_type): Likewise.
15349 (in_nullified_branch_delay): Likewise.
15350 (in_call_delay): Likewise.
15351 (define_delay): Likewise.
15352 (define_insn_reservation "Z3"): Likewise.
15353 (define_insn_reservation "Z4"): Likewise.
15354 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
15355 (pa_adjust_insn_length): Remove adjustment for btable branches.
15356 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
15357 and mno-big-switch
15358
3095685e
UB
153592013-05-05 Uros Bizjak <ubizjak@gmail.com>
15360
15361 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
15362 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
15363 Add m->r,x alternatives.
15364 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
15365 splitters using SWI48x mode iterator.
15366 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
15367 TARGET_64BIT. Add m->x alternative.
15368 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
15369 Add o->x alternative. Enable for TARGET_SSE.
15370 (sse_storeq): Remove expander.
15371 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
15372 with memory input operand.
15373 (*vec_extractv2di_1 splitter): New.
15374 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
15375 * config/i386/i386.md (ssevecmodelower): New mode attribute.
15376
4b36ae28
SB
153772013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
15378
15379 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
15380 (INT_LOWPART): Delete.
15381 (extract_MB): Adjust.
15382 (extract_ME): Adjust.
15383 (print_operand): Adjust.
15384
da226db2
SB
153852013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
15386
15387 * config/rs6000/predicates.md (reg_or_add_cint_operand,
15388 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
15389 (reg_or_logical_cint_operand, easy_fp_constant,
15390 logical_const_operand): Delete "CONST_DOUBLE" case.
15391 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
15392 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 15393 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
15394 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
15395 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
15396 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
15397 test.
15398 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
15399 CONST_DOUBLE DImode/VOIDmode case.
15400 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
15401 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
15402 CONST_DOUBLE VOIDmode case.
15403 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
15404 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
15405 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
15406 Delete CONST_DOUBLE case.
15407 (splitters for mov FMOVE64 const_double): Delete
15408 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
15409 "HOST_BITS_PER_WIDE_INT >= 64" test.
15410 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
15411 case.
15412 (mov DI const_double): Delete.
15413
40de22d6
JJ
154142013-05-04 Jakub Jelinek <jakub@redhat.com>
15415
15416 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
15417 on op shows all bits zero in mode of a lowpart subreg, return zero.
15418
5ec6aff2
MM
154192013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
15420
15421 PR target/57150
15422 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
15423 to save TFmode registers and DImode to save TImode registers for
15424 caller save operations.
15425 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
15426 mark being partially clobbered since they only use the first
15427 double word.
15428
15429 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
15430 and TDmode only use the upper 64-bits of each VSX register.
15431
2cefad90
BS
154322013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15433
15434 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
15435 (find_candidates_in_block): Disable slsr_process_phi.
15436
d6d7eee1
GW
154372013-05-03 Guozhi Wei <carrot@google.com>
15438
15439 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
15440 constructor to ...
15441 (build_init_ctor): ... here.
d6d7eee1 15442
9b92d12b
BS
154432013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15444
15445 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
15446 (slsr_cand_d): Redefine def_phi.
15447 (stride_status, phi_adjust_status, count_phis_status): New enums.
15448 (find_phi_def): New.
15449 (find_basis_for_base_expr): New.
15450 (find_basis_for_candidate): Handle hidden bases.
15451 (alloc_cand_and_find_basis): Handle phi candidates.
15452 (slsr_process_phi): New.
15453 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
15454 (create_mul_imm_cand): Likewise.
15455 (create_add_ssa_cand): Exclude phi base candidates.
15456 (create_add_imm_cand): Likewise.
15457 (slsr_process_cast): Likewise.
15458 (slsr_process_copy): Likewise.
15459 (find_candidates_in_block): Handle phi candidates.
15460 (dump_candidate): Likewise.
15461 (unconditional_cands): Delete.
15462 (unconditional_cands_with_known_stride_p): Delete.
15463 (phi_dependent_cand_p): New.
15464 (cand_increment): Handle phi-dependent candidates.
15465 (replace_dependent): Delete.
15466 (replace_mult_candidate): New.
15467 (replace_unconditional_candidate): New.
15468 (incr_vec_index): Move to avoid forward reference.
15469 (create_add_on_incoming_edge): New.
15470 (create_phi_basis): New.
15471 (replace_dependents): Delete.
15472 (replace_conditional_candidate): New.
15473 (phi_add_costs): New.
15474 (replace_uncond_cands_and_profitable_phis): New.
15475 (record_increment): Handle phi adjustments.
15476 (record_phi_increments): New.
15477 (record_increments): Handle phi adjustments.
15478 (phi_incr_cost): New.
15479 (lowest_cost_path): Handle phis.
15480 (total_savings): Likewise.
15481 (analyze_increments): Likewise.
15482 (ncd_with_phi): New.
15483 (ncd_of_cand_and_phis): New.
15484 (nearest_common_dominator_for_cands): Handle phi increments.
15485 (all_phi_incrs_profitable): New.
15486 (replace_profitable_candidates): Handle phi-dependent candidates.
15487 (analyze_candidates_and_replace): Likewise.
15488
68f073d4
TJ
154892013-05-03 Teresa Johnson <tejohnson@google.com>
15490
15491 PR bootstrap/57154
15492 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
15493 do not exceed REG_BR_PROB_BASE.
15494
a4ee7cb9
JL
154952013-05-03 Jeff Law <law@redhat.com>
15496
ade67f70 15497 PR tree-optimization/57144
a4ee7cb9
JL
15498 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
15499 operand of the condition will bit into the new type when eliminating
15500 a cast feeding a condition.
15501
47954c4e
JJ
155022013-05-03 Jakub Jelinek <jakub@redhat.com>
15503
15504 PR rtl-optimization/57130
3095685e
UB
15505 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
15506 of COMPARE as in_code to the recursive call if needed.
47954c4e 15507
3c21604f
UB
155082013-05-03 Uros Bizjak <ubizjak@gmail.com>
15509
15510 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
15511 (enabled): Handle new members.
15512 * config/i386/sse.md (*vec_concatv2si): Merge from
15513 *vec_concatv2si_sse2 and vec_concatv2si_sse.
15514 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
15515
12211b99 155162013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
95c03b36
JR
15517
15518 PR tree-optimization/57027
15519 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
15520 for fnms opportunity, check we got the prerequisite kind
15521 of tree / gimple before using accessor functions.
15522
07bfc9ec
RB
155232013-05-03 Richard Biener <rguenther@suse.de>
15524
15525 * double-int.h (lshift): New overload without precision
15526 and arith argument.
15527 (operator *=, operator +=, operator -=): Move ...
15528 * double-int.c (operator *=, operator +=, operator -=): ... here
15529 and implement more efficiently.
15530 (mul_double_with_sign): Remove.
15531 (lshift_double): Adjust to take unsinged shift argument, push
15532 dispatching code to callers.
15533 (mul_double_wide_with_sign): Add early out for callers that
15534 are not interested in high parts or overflow.
15535 (lshift): New function.
15536 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
15537 dispatch code here.
15538 (lrotate, rrotate): Use logical shifts.
15539 * expr.c (get_inner_reference): Use lshift.
15540 * fixed-value.c (do_fixed_divide): Likewise.
15541 * tree-dfa.c (get_ref_base_and_extent): Likewise.
15542 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
15543 (indirect_refs_may_alias_p): Likewise.
15544 (stmt_kills_ref_p_1): Likewise.
15545
7769bb64
VP
155462013-05-03 Vidya Praveen <vidyapraveen@arm.com>
15547
15548 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
15549
1d0c8e5c
VP
155502013-05-03 Vidya Praveen <vidyapraveen@arm.com>
15551
15552 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
15553 scalar form of FABD instruction.
15554
f15feaf9
VM
155552013-05-02 Vladimir Makarov <vmakarov@redhat.com>
15556
15557 * lra-constraints.c (process_alt_operands): Add checking alt
15558 number to choose the best alternative.
15559
d90e76d4
RB
155602013-05-02 Richard Biener <rguenther@suse.de>
15561
15562 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
15563 bitmap and its handling.
15564 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
15565
9f8e7a96
RB
155662013-05-02 Richard Biener <rguenther@suse.de>
15567
15568 PR middle-end/57140
15569 * tree-inline.c (copy_loops): Properly handle removed loops.
15570 (copy_cfg_body): Mark destination loops for fixup if source
15571 loops needed fixup.
15572
f3a81b39
GY
155732013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
15574
15575 PR target/56732
15576 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
15577 generating simple_return for naked functions.
15578
7b920a9a
MJ
155792013-05-02 Martin Jambor <mjambor@suse.cz>
15580
15581 PR middle-end/56988
15582 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
15583 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
15584 flags match.
15585 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
15586 ipa_agg_replacement_value structures.
15587 (known_aggs_to_agg_replacement_list): Likewise.
15588 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
15589 (read_agg_replacement_chain): Likewise.
15590 (ipcp_transform_function): Also check that by_ref flags match.
15591
2c41c19d
RB
155922013-05-02 Richard Biener <rguenther@suse.de>
15593
15594 * graphds.h (struct graph): Add obstack member.
15595 * graphds.c (new_graph): Initialize obstack and allocate
15596 vertices from it.
15597 (add_edge): Allocate edge from the obstack.
3c21604f 15598 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 15599
8b47039c
TJ
156002013-05-02 Teresa Johnson <tejohnson@google.com>
15601
15602 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
15603 divides.
15604 * cfg.c (update_bb_profile_for_threading): Ditto.
15605 * tree-inline.c (copy_bb): Ditto.
15606 (copy_edges_for_bb): Ditto.
15607 (initialize_cfun): Ditto.
15608 (copy_cfg_body): Ditto.
15609 (expand_call_inline): Ditto.
15610 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
15611 (estimate_node_size_and_time): Ditto.
15612 (inline_merge_summary): Ditto.
15613 * cgraphclones.c (cgraph_clone_edge): Ditto.
15614 (cgraph_clone_node): Ditto.
15615 * sched-rgn.c (compute_dom_prob_ps): Ditto.
15616 (compute_trg_info): Ditto.
15617
da65928c
IB
156182013-05-02 Ian Bolton <ian.bolton@arm.com>
15619
15620 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
15621 S reg when fp attribute set.
15622 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
15623
add3c965
IB
156242013-05-02 Ian Bolton <ian.bolton@arm.com>
15625
15626 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
15627 New pattern.
15628 (*and_one_cmplsi3_compare0_uxtw): Likewise.
15629 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
15630 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
15631
fdd43ac4
RB
156322013-05-02 Richard Biener <rguenther@suse.de>
15633
15634 * tree-scalar-evolution.c (scev_info_hasher): Remove.
15635 (struct instantiate_cache_entry): New type.
15636 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
15637 (struct instantiate_cache_type): New type.
15638 (set_instantiated_value, get_instantiated_value): Remove.
15639 (get_instantiated_value_entry): New function.
15640 (instantiate_scev_name): Use the new cache and adjust.
15641 (instantiate_scev_poly): Adjust.
15642 (instantiate_scev_binary): Likewise.
15643 (instantiate_array_ref): Likewise.
15644 (instantiate_scev_convert): Likewise.
15645 (instantiate_scev_not): Likewise.
15646 (instantiate_scev_3): Likewise.
15647 (instantiate_scev_2): Likewise.
15648 (instantiate_scev_r): Likewise.
15649 (instantiate_scev): Likewise.
15650 (resolve_mixers): Likewise.
15651
36ff9dfb
VM
156522013-05-01 Vladimir Makarov <vmakarov@redhat.com>
15653
15654 PR target/57091
15655 * lra-constraints.c (best_small_class_operands_num): Remove.
15656 (process_alt_operands): Remove small_class_operands_num. Take
15657 small classes operands into losers and only if the operand is not
15658 matched. Modify debugging output.
15659 (curr_insn_transform): Remove best_small_class_operands_num.
15660 Print insn name.
15661
36054fab
JG
156622013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15663
15664 * config/aarch64/aarch64-builtins.c
15665 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
15666 * config/aarch64/aarch64-simd-builtins.def
15667 (reduc_splus_): Add new modes.
15668 (reduc_uplus_): New.
15669 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
15670 (reduc_uplus_v4sf): Likewise.
15671 (reduc_splus_v4sf): Likewise.
15672 (aarch64_addv<mode>): Likewise.
15673 (reduc_uplus_<mode>): Likewise.
15674 (reduc_splus_<mode>): Likewise.
15675 (aarch64_addvv2di): Likewise.
15676 (reduc_uplus_v2di): Likewise.
15677 (reduc_splus_v2di): Likewise.
15678 (aarch64_addvv2si): Likewise.
15679 (reduc_uplus_v2si): Likewise.
15680 (reduc_splus_v2si): Likewise.
15681 (reduc_<sur>plus_<mode>): New.
15682 (reduc_<sur>plus_v2di): Likewise.
15683 (reduc_<sur>plus_v2si): Likewise.
15684 (reduc_<sur>plus_v4sf): Likewise.
15685 (aarch64_addpv4sf): Likewise.
15686 * config/aarch64/arm_neon.h
15687 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
15688 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
15689 add UNSPEC_SADDV, UNSPEC_UADDV.
15690 (SUADDV): New.
15691 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
15692
6dce23a8
JG
156932013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15694
15695 * config/aarch64/arm_neon.h
15696 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
15697
1598945b
JG
156982013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15699
15700 * config/aarch64/aarch64-builtins
15701 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
15702
998eaf97
JG
157032013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15704
15705 * config/aarch64/aarch64-simd-builtins.def
15706 (reduc_smax_): New.
15707 (reduc_smin_): Likewise.
15708 (reduc_umax_): Likewise.
15709 (reduc_umin_): Likewise.
15710 (reduc_smax_nan_): Likewise.
15711 (reduc_smin_nan_): Likewise.
15712 (fmax): Remove.
15713 (fmin): Likewise.
15714 (smax): Update for V2SF, V4SF and V2DF modes.
15715 (smin): Likewise.
15716 (smax_nan): New.
15717 (smin_nan): Likewise.
15718 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
15719 (<su><maxmin><mode>3): ...This, refactor.
15720 (s<maxmin><mode>3): New.
15721 (<maxmin_uns><mode>3): Likewise.
15722 (reduc_<maxmin_uns>_<mode>): Refactor.
15723 (reduc_<maxmin_uns>_v4sf): Likewise.
15724 (reduc_<maxmin_uns>_v2si): Likewise.
15725 (aarch64_<fmaxmin><mode>: Remove.
15726 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
15727 new builtin names.
15728 (vmin<q>_f<32,64>): Likewise.
15729 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
15730 (FMAXMIN): New.
15731 (su): Add mappings for smax, smin, umax, umin.
15732 (maxmin): New.
15733 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
15734 (FMAXMIN): Rename as...
15735 (FMAXMIN_UNS): ...This.
15736 (maxminv): Remove.
15737 (fmaxminv): Likewise.
15738 (fmaxmin): Likewise.
15739 (maxmin_uns): New.
15740 (maxmin_uns_op): Likewise.
15741
bd11644e
JG
157422013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15743
15744 * config/aarch64/arm_neon.h
15745 (vac<ge, gt><sd>_f<32, 64>): Rename to...
15746 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
15747 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
15748
75dd5ace
JG
157492013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15750
15751 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
15752 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
15753
7c19979f
JG
157542013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15755
15756 * config/aarch64/aarch64-simd.md
15757 (vcond<mode>_internal): Handle special cases for constant masks.
15758 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
15759 (vcondu<mode><mode>): Likewise.
15760 (vcond<v_cmp_result><mode>): New.
15761
bb60efd9
JG
157622013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15763
15764 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
15765 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
15766 * config/aarch64/aarch64-simd-builtins.def
15767 (cmeq): Update to BUILTIN_VALLDI.
15768 (cmgt): Likewise.
15769 (cmge): Likewise.
15770 (cmle): Likewise.
15771 (cmlt): Likewise.
15772 * config/aarch64/arm_neon.h
15773 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
15774 to builtins or C as appropriate.
15775
889b9412
JG
157762013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
15777
15778 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
15779 (cmgeu): ...This.
15780 (cmhi): Rename to...
15781 (cmgtu): ...This.
15782 * config/aarch64/aarch64-simd.md
15783 (simd_mode): Add SF.
15784 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
15785 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
15786 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
15787 (cstore<mode>_neg): ...This.
15788 * config/aarch64/iterators.md
15789 (VALLF): new.
15790 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
15791 (COMPARISONS): New.
15792 (UCOMPARISONS): Likewise.
15793 (optab): Add missing comparisons.
15794 (n_optab): New.
15795 (cmp_1): Likewise.
15796 (cmp_2): Likewise.
15797 (CMP): Likewise.
15798 (cmp): Remove.
15799 (VCMP_S): Likewise.
15800 (VCMP_U): Likewise.
15801 (V_cmp_result): Add DF, SF modes.
15802 (v_cmp_result): Likewise.
15803 (v): Likewise.
15804 (vmtype): Likewise.
15805 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
15806
0a7dbb76
GY
158072013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
15808
15809 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
15810 define_insn to define_insn_and_split.
15811 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
15812 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
15813 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
15814 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
15815 (thumb2_negscc): Likewise.
15816
fb614ca6
GY
158172013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
15818
15819 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
15820
9e64a0bf
GY
158212013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
15822
15823 * config/arm/thumb2.md: Remove trailing whitespaces.
15824
d6b28156
RS
158252013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
15826
15827 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
15828 Use gen_int_mode rather than GEN_INT.
15829
f91674c3
L
158302013-04-30 H.J. Lu <hongjiu.lu@intel.com>
15831
b0dec607 15832 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
15833 debug_gimple_stmt.
15834
3551257c
RB
158352013-04-30 Richard Biener <rguenther@suse.de>
15836
15837 PR middle-end/57122
3c21604f 15838 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 15839
4c1aff1c
RB
158402013-04-30 Richard Biener <rguenther@suse.de>
15841
15842 PR middle-end/57107
15843 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
15844
54b8379a
AB
158452013-04-30 Andrey Belevantsev <abel@ispras.ru>
15846
15847 PR rtl-optimization/56957
15848 PR rtl-optimization/57105
54b8379a
AB
15849 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
15850 variable. Use just INSN_UID for determining whether an insn
15851 should be only disconnected from the insn stream.
15852 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
15853
abc27962
JJ
158542013-04-30 Jakub Jelinek <jakub@redhat.com>
15855
15856 PR tree-optimization/57104
15857 * tsan.c (instrument_expr): Don't instrument accesses to
15858 DECL_HARD_REGISTER VAR_DECLs.
15859
0fc822d0
RB
158602013-04-30 Richard Biener <rguenther@suse.de>
15861
15862 * function.h (loops_for_fn): New inline function.
15863 (set_loops_for_fn): Likewise.
15864 * cfgloop.h (place_new_loop): Add struct function parameter.
15865 (get_loop): Likewise.
15866 (get_loops): Likewise.
15867 (number_of_loops): Likewise.
15868 (fel_next): Adjust.
15869 (fel_init): Likewise.
15870 * cfg.c (get_loop_copy): Adjust.
15871 * cfgloop.c (flow_loops_dump): Likewise.
15872 (record_loop_exits): Likewise.
15873 (verify_loop_structure): Likewise.
15874 * cfgloopanal.c (mark_irreducible_loops): Likewise.
15875 (estimate_reg_pressure_cost): Likewise.
15876 (mark_loop_exit_edges): Likewise.
15877 * cfgloopmanip.c (place_new_loop): Likewise.
15878 (add_loop): Likewise.
15879 (duplicate_loop): Likewise.
15880 * graph.c (draw_cfg_nodes): Likewise.
15881 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
15882 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
15883 (extract_affine_chrec): Likewise.
15884 (build_scop_iteration_domain): Likewise.
15885 * graphite.c (graphite_initialize): Likewise.
15886 * ira-build.c (create_loop_tree_nodes): Likewise.
15887 (more_one_region_p): Likewise.
15888 (rebuild_regno_allocno_maps): Likewise.
15889 (mark_loops_for_removal): Likewise.
15890 (mark_all_loops_for_removal): Likewise.
15891 (remove_unnecessary_regions): Likewise.
15892 (ira_build): Likewise.
15893 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
15894 * loop-init.c (fix_loop_structure): Likewise.
15895 (gate_rtl_move_loop_invariants): Likewise.
15896 (gate_rtl_unswitch): Likewise.
15897 (gate_rtl_unroll_and_peel_loops): Likewise.
15898 (rtl_doloop): Likewise.
15899 * lto-streamer-in.c (input_cfg): Likewise.
15900 * lto-streamer-out.c (output_cfg): Likewise.
15901 * modulo-sched.c (sms_schedule): Likewise.
15902 * predict.c (tree_estimate_probability): Likewise.
15903 (tree_estimate_probability_driver): Likewise.
15904 (estimate_loops): Likewise.
15905 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
15906 (move_sese_region_to_fn): Likewise.
15907 (debug_loop_num): Likewise.
15908 * tree-chrec.c (chrec_evaluate): Likewise.
15909 (hide_evolution_in_other_loops_than_loop): Likewise.
15910 (chrec_component_in_loop_num): Likewise.
15911 (reset_evolution_in_loop): Likewise.
15912 (evolution_function_is_invariant_rec_p): Likewise.
15913 * tree-if-conv.c (main_tree_if_conversion): Likewise.
15914 * tree-inline.c (copy_loops): Likewise.
15915 (copy_cfg_body): Likewise.
15916 (tree_function_versioning): Likewise.
15917 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
15918 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
15919 Likewise.
15920 (add_to_evolution_1): Likewise.
15921 (scev_const_prop): Likewise.
15922 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
15923 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
15924 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
15925 (tree_ssa_lim_initialize): Likewise.
15926 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
15927 (verify_loop_closed_ssa): Likewise.
15928 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
15929 (tree_ssa_loop_im): Likewise.
15930 (tree_ssa_loop_unswitch): Likewise.
15931 (tree_vectorize): Likewise.
15932 (check_data_deps): Likewise.
15933 (tree_ssa_loop_ivcanon): Likewise.
15934 (tree_ssa_loop_bounds): Likewise.
15935 (tree_complete_unroll): Likewise.
15936 (tree_complete_unroll_inner): Likewise.
15937 (tree_parallelize_loops): Likewise.
15938 (tree_ssa_loop_prefetch): Likewise.
15939 (tree_ssa_loop_ivopts): Likewise.
15940 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
15941 * tree-vectorizer.c (vectorize_loops): Likewise.
15942
37953bd3
MF
159432013-04-29 Mike Frysinger <vapier@gentoo.org>
15944
15945 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
15946 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
15947 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
15948 with EABI_LINK_SPEC.
15949
f9ed28db
UB
159502013-04-29 Uros Bizjak <ubizjak@gmail.com>
15951
15952 PR target/44578
15953 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
15954 alternative.
15955
deca73f5
VM
159562013-04-29 Vladimir Makarov <vmakarov@redhat.com>
15957
15958 PR target/57097
37953bd3 15959 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
15960 using memory for pseudos. Print cost dump for alternatives.
15961 Modify cost values for conflicts with early clobbers.
15962 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
15963
fdca7d03
UB
159642013-04-29 Uros Bizjak <ubizjak@gmail.com>
15965
15966 PR target/57098
15967 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
15968
0b064172
IB
159692013-04-29 Ian Bolton <ian.bolton@arm.com>
15970
15971 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
15972 from/to S register.
15973 (movdi_aarch64): Support LDR/STR from/to D register.
15974
473cec55
IB
159752013-04-29 Ian Bolton <ian.bolton@arm.com>
15976
15977 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
15978 or higher by default.
15979
a6f30e66
RB
159802013-04-29 Richard Biener <rguenther@suse.de>
15981
15982 PR middle-end/57075
15983 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
15984 even if not adding abnormal edges for calls that can make
15985 abnormal gotos.
15986
0c2b2040
RB
159872013-04-29 Richard Biener <rguenther@suse.de>
15988
15989 PR middle-end/57103
15990 * tree-cfg.c (move_stmt_op): Fix condition under which to update
15991 TREE_BLOCK.
15992 (move_stmt_r): Remove redundant checking.
15993
f41f80f9
TJ
159942013-04-29 Teresa Johnson <tejohnson@google.com>
15995
15996 PR bootstrap/57077
15997 * basic-block.h (apply_scale): New function.
15998 (apply_probability): Use apply_scale.
15999 * gimple-streamer-in.c (input_bb): Ditto.
16000 * lto-streamer-in.c (input_cfg): Ditto.
16001 * lto-cgraph.c (merge_profile_summaries): Ditto.
16002 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 16003 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
16004 (copy_edges_for_bb): Ditto.
16005 (copy_cfg_body): Ditto.
16006
315bbd2e
TV
160072013-04-29 Tom de Vries <tom@codesourcery.com>
16008
16009 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
16010 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
16011 (tail_merge_optimize): Handle current_loops == NULL.
16012
ebbd90d8
JL
160132013-04-26 Jeff Law <law@redhat.com>
16014
16015 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
16016 (simplify_cond_using_ranges): Generalize code to simplify
16017 COND_EXPRs where one argument is a constant and the other
16018 is an SSA_NAME created by an integral type conversion.
16019
8b9b57eb
KT
160202013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16021
16022 * config/arm/arm.md (store_minmaxsi): Use only when
16023 optimize_insn_for_size_p.
16024
9498e5dc
CB
160252013-04-29 Christian Bruel <christian.bruel@st.com>
16026
16027 PR target/57108
16028 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
16029
6093bc06
RB
160302013-04-29 Richard Biener <rguenther@suse.de>
16031
16032 PR middle-end/57089
fdca7d03
UB
16033 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
16034 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
16035 (expand_omp_for_generic): Properly add loops.
16036 (expand_omp_for_static_nochunk): Likewise.
16037 (expand_omp_for_static_chunk): Likewise.
16038 (expand_omp_for): For the degenerate case fixup loops.
16039 (expand_omp_sections): Fix default bb placement in loops.
16040 (expand_omp_atomic_pipeline): Properly add loops.
16041
84aacbfd
KT
160422013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16043
16044 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
16045
8dee4479
TV
160462013-04-29 Tom de Vries <tom@codesourcery.com>
16047
16048 * tree-ssa-tail-merge.c: Update header comment.
16049
47934dc4
JG
160502013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16051
16052 * config/aarch64/arm_neon.h
16053 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
16054 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
16055 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
16056 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
16057 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
16058 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
16059 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
16060 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
16061
384be29f
JG
160622013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16063
16064 * config/aarch64/aarch64-simd.md
16065 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
16066 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
16067 fix_trunc, fixuns_trunc.
16068 (ftrunc<VDQF:mode>2): New.
16069 * config/aarch64/iterators.md (optab): Add fix, fixuns.
16070 (fix_trunc_optab): New.
16071
0386b123
JG
160722013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16073
16074 * config/aarch64/aarch64-builtins.c
16075 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
16076 iceilf, lround, iroundf.
16077
00fcb892
UB
160782013-04-29 Uros Bizjak <ubizjak@gmail.com>
16079
16080 PR target/54349
16081 * config/i386/i386.h (enum ix86_tune_indices)
16082 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
16083 New, split from X86_TUNE_INTER_UNIT_MOVES.
16084 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
16085 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
16086 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
16087 (TARGET_INTER_UNIT_MOVES): Remove.
16088 * config/i386/i386.c (initial_ix86_tune_features): Update.
16089 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
16090 (ix86_expand_convert_uns_didf_sse): Use
16091 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
16092 (ix86_expand_vector_init_one_nonzero): Ditto.
16093 (ix86_expand_vector_init_interleave): Ditto.
16094 (inline_secondary_memory_needed): Return true for moves from SSE class
16095 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
16096 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
16097 * config/i386/constraints.md (Yi, Ym): Depend on
16098 TARGET_INTER_UNIT_MOVES_TO_VEC.
16099 (Yj, Yn): New constraints.
16100 * config/i386/i386.md (*movdi_internal): Change constraints of
16101 operand 1 from Yi to Yj and from Ym to Yn.
16102 (*movsi_internal): Ditto.
16103 (*movdf_internal): Ditto.
16104 (*movsf_internal): Ditto.
16105 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
16106 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
16107 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
16108 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
16109 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
16110 * config/i386/sse.md (movdi_to_sse): Ditto.
16111 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
16112 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
16113 TARGET_INTER_UNIT_MOVES.
16114 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
16115 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
16116 instead of TARGET_INTER_UNIT_MOVES.
16117 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
16118 operand 1 from Yi to Yj and from Ym to Yn.
16119
4c871069
JG
161202013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16121
16122 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
16123 (float_truncate_hi_): Likewise.
16124 (float_extend_lo_): Likewise.
16125 (float_truncate_lo_): Likewise.
16126 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
16127 (aarch64_float_extend_lo_v2df): Likewise.
16128 (vec_unpacks_hi_v4sf): Likewise.
16129 (aarch64_float_truncate_lo_v2sf): Likewise.
16130 (aarch64_float_truncate_hi_v4sf): Likewise.
16131 (vec_pack_trunc_v2df): Likewise.
16132 (vec_pack_trunc_df): Likewise.
16133
1709ff9b
JG
161342013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16135
16136 * config/aarch64/aarch64-builtins.c
16137 (aarch64_fold_builtin): Fold float conversions.
16138 * config/aarch64/aarch64-simd-builtins.def
16139 (floatv2si, floatv4si, floatv2di): New.
16140 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
16141 * config/aarch64/aarch64-simd.md
16142 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
16143 * config/aarch64/iterators.md (FLOATUORS): New.
16144 (optab): Add float, floatuns.
16145 (su_optab): Likewise.
16146
ce966824
JG
161472013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16148
16149 * config/aarch64/aarch64-builtins.c
16150 (aarch64_builtin_vectorized_function): Use new names for
16151 fcvt builtins.
16152 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
16153 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
16154 (fcvtzu): Split as...
16155 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
16156 (fcvtas): Split as...
16157 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
16158 (fcvtau): Split as...
16159 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
16160 (fcvtps): Split as...
16161 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
16162 (fcvtpu): Split as...
16163 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
16164 (fcvtms): Split as...
16165 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
16166 (fcvtmu): Split as...
16167 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
16168 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
16169 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
16170 (lfrintnusf, lfrintnudf): Likewise.
16171 * config/aarch64/aarch64-simd.md
16172 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
16173 define_insn.
16174 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
16175 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
16176 (fcvt_pattern): Likewise.
16177
b9de24fe
JG
161782013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16179
16180 * config/aarch64/aarch64-simd.md
16181 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
16182 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
16183
77a205be
JG
161842013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16185
16186 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
16187 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
16188 (vrnd<a,m,n,p>_f32): Implement using builtins.
16189 (vrnd<i,x><q>_f<32, 64>): New.
16190
0659ce6f
JG
161912013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
16192
16193 * config/aarch64/aarch64-builtins.c
16194 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
16195 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
16196 (frintz): Rename to...
16197 (btrunc): ...this.
16198 (frintp): Rename to...
16199 (ceil): ...this.
16200 (frintm): Rename to...
16201 (floor): ...this.
16202 (frinti): Rename to...
16203 (nearbyint): ...this.
16204 (frintx): Rename to...
16205 (rint): ...this.
16206 (frinta): Rename to...
16207 (round): ...this.
16208 * config/aarch64/aarch64-simd.md
16209 (aarch64_frint<frint_suffix><mode>): Delete.
16210 (<frint_pattern><mode>2): Convert to insn.
16211 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
16212 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
16213 (frint_pattern): Likewise.
16214 (frint_suffix): Likewise.
16215
ea78906a
RB
162162013-04-29 Richard Biener <rguenther@suse.de>
16217
16218 PR tree-optimization/57081
16219 * loop-init.c: Include tree-flow.h.
16220 (loop_optimizer_finalize): Free number of iteration estimates.
16221 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
16222
baee1763
JJ
162232013-04-29 Jakub Jelinek <jakub@redhat.com>
16224
94dc5332
JJ
16225 PR tree-optimization/57083
16226 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
16227 non-singleton shift count range, zero extend low_bound for uns case.
16228
baee1763
JJ
16229 * config/i386/predicates.md (general_vector_operand): New predicate.
16230 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
16231 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
16232 if they aren't nonimmediate operands. If their original values
16233 satisfy const_vector_equal_evenodd_p, don't shift them.
16234 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
16235 predicates. For the SSE4.1 case force operands[{1,2}] into registers
16236 if not nonimmediate_operand.
16237 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
16238 instead of register_operand.
16239 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
16240
a9073727 162412013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
16242
16243 * stor-layout.c (finalize_size_functions): Allocate a structure and
16244 reset cfun before dumping the functions.
16245
ba8011e6
JJ
162462013-04-27 Jakub Jelinek <jakub@redhat.com>
16247
d6fde69e
JJ
16248 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
16249
ba8011e6
JJ
16250 PR target/56866
16251 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
16252 use xop_pmacsdqh if uns_p.
16253 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
16254 the immediate rotate count.
16255
2c62cbaa
VM
162562013-04-26 Vladimir Makarov <vmakarov@redhat.com>
16257
16258 * rtl.h (struct rtx_def): Add comment for field jump.
16259 (LRA_SUBREG_P): New macro.
16260 * recog.c (register_operand): Check LRA_SUBREG_P.
16261 * lra.c (lra): Add note at the end of RTL code. Align non-empty
16262 stack frame.
16263 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
16264 (lra_final_code_change): Skip subreg change for operators.
16265 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
16266 if there are no operand changes.
16267 * lra-constraints.c (curr_insn_set): New.
16268 (match_reload): Set LRA_SUBREG_P.
16269 (emit_spill_move): Ditto.
16270 (check_and_process_move): Use curr_insn_set. Process only single
16271 set insns. Don't initialize sec_mem_p and change_p.
16272 (simplify_operand_subreg): Use LRA_SUBREG_P.
16273 (reg_in_class_p): New function.
16274 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
16275 of #ifdef. Add code to remove cycling.
16276 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
16277 non-null disp. Reload inner instead of disp when base and index
16278 are null. Try to put lo_sum into register.
16279 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
16280 (check_and_process_move): Move code for move cost check to
16281 simple_move_p. Remove equiv_substitution.
16282 (simple_move_p): New function.
16283 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
16284 curr_insn_set. Call check_and_process_move only for single set
16285 insns. Use the new function. Move call of check_and_process_move
16286 after operand equiv substitution and address process.
16287
e7d764f3
JJ
162882013-04-26 Jakub Jelinek <jakub@redhat.com>
16289
16290 PR go/57045
16291 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
16292 with nonlocal goto receivers or returns twice calls, ignore
16293 unininitialized values from abnormal edges to nl goto receiver
16294 or returns twice call.
16295
41e10689
JJ
162962013-04-26 Jakub Jelinek <jakub@redhat.com>
16297
16298 PR tree-optimization/57051
16299 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
16300 and VEC_RSHIFT_EXPR if shift count is a multiple of element
16301 bitsize.
16302
d7ed20db
RB
163032013-04-26 Richard Biener <rguenther@suse.de>
16304
16305 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
16306 (expand_omp_taskreg): Likewise. Mark loops for fixup.
16307 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
16308 (fixup_loop_arrays_after_move): New function.
16309 (move_sese_region_to_fn): Properly outline the loop tree parts
16310 of the SESE region.
16311
df93505e
UB
163122013-04-26 Uros Bizjak <ubizjak@gmail.com>
16313
16314 * config/i386/i386.md (type, unit): Fix long lines.
16315
dd366ec3
RB
163162013-04-26 Richard Biener <rguenther@suse.de>
16317
16318 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
16319 (lto-streamer-out.o): Likewise.
16320 * cfgloop.c (init_loops_structure): Export, add struct function
16321 argument and adjust.
16322 (flow_loops_find): Adjust.
16323 * cfgloop.h (enum loop_estimation): Add EST_LAST.
16324 (init_loops_structure): Declare.
16325 * lto-streamer-in.c: Include cfgloop.h.
16326 (input_cfg): Input the loop tree.
16327 * lto-streamer-out.c: Include cfgloop.h.
16328 (output_cfg): Output the loop tree.
16329 (output_struct_function_base): Do not drop PROP_loops.
16330
a9e0d843
RB
163312013-03-26 Richard Biener <rguenther@suse.de>
16332
16333 * tree-cfg.c (execute_build_cfg): Build the loop tree.
16334 (pass_build_cfg): Provide PROP_loops.
16335 (move_sese_region_to_fn): Remove loops that are outlined into fn
16336 for now.
16337 * tree-inline.c: Include cfgloop.h.
16338 (initialize_cfun): Do not drop PROP_loops.
16339 (copy_loops): New function.
16340 (copy_cfg_body): Copy loop structure.
16341 (tree_function_versioning): Initialize destination loop tree.
16342 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
16343 (pass_parallelize_loops): Do IL verification.
16344 * loop-init.c (loop_optimizer_init): Fixup loops if required.
16345 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
16346 the CFG make sure we fixup loops as well.
16347 * tree-ssa-tail-merge.c: Include cfgloop.h.
16348 (replace_block_by): When merging loop latches mark loops for fixup.
16349 * lto-streamer-out.c (output_struct_function_base): Drop
16350 PROP_loops for now.
16351 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
16352 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
16353 * ipa-split.c: Include cfgloop.h.
16354 (split_function): Add the new return block to the loop tree root.
16355 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
16356 whether we have removed the forwarder block.
16357 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
16358 * cfgloop.h (place_new_loop): Declare.
16359 * cfgloopmanip.c (place_new_loop): Export.
16360 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
16361 (tree-switch-conversion.o): Likewise.
16362 (tree-complex.o): Likewise.
16363 (tree-inline.o): Likewise.
16364 (tree-ssa-tailmerge.o): Likewise.
16365 (ipa-split.o): Likewise.
16366 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
16367 (tree-ssa-copy.o): Likewise.
16368 * tree-switch-conversion.c: Include cfgloop.h
16369 (process_switch): If we emit a bit-test cascade, schedule loops
16370 for fixup.
16371 * tree-complex.c: Include cfgloop.h.
16372 (expand_complex_div_wide): Properly add new basic-blocks to loops.
16373 * asan.c: Include cfgloop.h.
16374 (create_cond_insert_point): Properly add new basic-blocks to
16375 loops, schedule loop fixup.
16376 * cfgloop.c (verify_loop_structure): Check that looks are not
16377 marked for fixup.
16378 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
16379 to loops.
16380 (expand_omp_for_generic): Likewise.
16381 (expand_omp_sections): Likewise.
16382 (expand_omp_atomic_pipeline): Schedule loops for fixup.
16383 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
16384 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
16385 is initialized, not when loops are present.
16386 * tree-parloops.c (parallelize_loops): Remove checking here.
16387 * passes.c (init_optimization_passes): Schedule a copy-propagation
16388 pass before complete unrolling of inner loops.
16389
e78e8a0b
JJ
163902013-04-26 Jakub Jelinek <jakub@redhat.com>
16391
a2e836b2
JJ
16392 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
16393 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
16394 (colorize_init): Add argument to _WIN32 version.
16395 * toplev.c: Include diagnostic-color.h.
16396 (process_options): Default to -fdiagnostics-color=auto if
16397 GCC_COLORS env var is in the environment.
16398 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
16399 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
16400 env var is in the environment, the default is auto rather than never.
a2e836b2 16401
e78e8a0b
JJ
16402 * diagnostic.h (file_name_as_prefix): Add context argument.
16403 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
16404 the string as locus.
16405 * langhooks.c (lhd_print_error_function): Adjust caller.
16406
013e5ef9
LC
164072013-04-25 Lawrence Crowl <crowl@google.com>
16408
16409 * var-tracking.c (shared_hash_def::htab):
16410 Change type to hash_table. Update dependent calls and types.
16411
4a8fb1a1
LC
164122013-04-25 Lawrence Crowl <crowl@google.com>
16413
16414 * Makefile.in: Update as needed below.
16415
16416 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
16417 Move declaration to after the type's method definitons.
16418
16419 * attribs.c (htab_t scoped_attributes::attribute_hash):
16420 Change type to hash_table. Update dependent calls and types.
16421
16422 * bitmap.c (htab_t bitmap_desc_hash):
16423 Change type to hash_table. Update dependent calls and types.
16424
16425 * cselib.c (htab_t cselib_hash_table):
16426 Change type to hash_table. Update dependent calls and types.
16427
16428 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
16429 (hash_string_slot_node): Move implementation into lto-streamer.h
16430 struct string_slot_hasher.
16431 (eq_string_slot_node): Likewise.
16432
16433 * data-streamer-out.c: Update output_block::string_hash_table
16434 dependent calls and types.
16435
16436 * dwarf2cfi.c (htab_t trace_index):
16437 Change type to hash_table. Update dependent calls and types.
16438
16439 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
16440 Change type to hash_table. Update dependent calls and types.
16441 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
16442 (htab_t optimize_external_refs::map): Likewise.
16443 (htab_t output_comp_unit::extern_map): Likewise.
16444 (htab_t output_comdat_type_unit::extern_map): Likewise.
16445 (htab_t output_macinfo::macinfo_htab): Likewise.
16446 (htab_t optimize_location_lists::htab): Likewise.
16447 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
16448
16449 * except.c (htab_t ehspec_hash_type):
16450 Change type to hash_table. Update dependent calls and types.
16451 (assign_filter_values::ttypes): Likewise.
16452 (assign_filter_values::ehspec): Likewise.
16453 (sjlj_assign_call_site_values::ar_hash): Likewise.
16454 (convert_to_eh_region_ranges::ar_hash): Likewise.
16455
16456 * gcse.c (htab_t pre_ldst_table):
16457 Change type to hash_table. Update dependent calls and types.
16458
16459 * ggc-common.c (htab_t saving_htab):
16460 Change type to hash_table. Update dependent calls and types.
16461 (htab_t loc_hash): Likewise.
16462 (htab_t ptr_hash): Likewise.
16463 (call_count): Rename ggc_call_count.
16464 (call_alloc): Rename ggc_call_alloc.
16465 (loc_descriptor): Rename make_loc_descriptor.
16466 (add_statistics): Rename ggc_add_statistics.
16467
16468 * ggc-common.c (saving_htab):
16469 Change type to hash_table. Update dependent calls and types.
16470
16471 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
16472 (push_gimplify_context): Likewise.
16473 (pop_gimplify_context): Likewise.
16474 (struct gimple_temp_hash_elt): Added.
16475 (struct gimplify_hasher): Likewise.
16476 (struct gimplify_ctx.temp_htab):
16477 Change type to hash_table. Update dependent calls and types.
16478
16479 * gimple-fold.c: Include gimplify-ctx.h.
16480
16481 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
16482 Change type to hash_table. Update dependent calls and types.
16483 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
16484 avoid potential global name collision.
16485
16486 * gimplify.c: Include gimplify-ctx.h.
16487 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
16488 (htab_t gimplify_ctx::temp_htab):
16489 Update dependent calls and types for new type hash_table.
16490 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
16491 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
16492
16493 * gimplify-ctx.h: New.
16494 (struct gimple_temp_hash_elt): Move from gimplify.c.
16495 (class gimplify_hasher): New.
16496 (struct gimplify_ctx): Move from gimple.h.
16497 (htab_t gimplify_ctx::temp_htab):
16498 Change type to hash_table. Update dependent calls and types.
16499
16500 * graphite-clast-to-gimple.c: Include graphite-htab.h.
16501 (htab_t ivs_params::newivs_index):
16502 Change type to hash_table. Update dependent calls and types.
16503 (htab_t ivs_params::params_index): Likewise.
16504 (htab_t print_generated_program::params_index): Likewise.
16505 (htab_t gloog::newivs_index): Likewise.
16506 (htab_t gloog::params_index): Likewise.
16507
16508 * graphite.c: Include graphite-htab.h.
16509 4htab_t graphite_transform_loops::bb_pbb_mapping):
16510 Change type to hash_table. Update dependent calls and types.
16511
16512 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
16513 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
16514 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
16515
16516 * graphite-dependences.c: Include graphite-htab.h.
16517 (loop_is_parallel_p): Change hash table type of parameter.
16518
16519 * graphite-htab.h: New.
16520 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
16521 (extern find_pbb_via_hash): Move from graphite-poly.h.
16522 (extern loop_is_parallel_p): Move from graphite-poly.h.
16523 (extern get_loop_body_pbbs): Move from graphite-poly.h.
16524
16525 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
16526 (extern loop_is_parallel_p): Move to graphite-htab.h.
16527 (extern get_loop_body_pbbs): Move to graphite-htab.h.
16528
16529 * haifa-sched.c (htab_t delay_htab):
16530 Change type to hash_table. Update dependent calls and types.
16531 (htab_t delay_htab_i2): Likewise.
16532
16533 * ira-color.c (htab_t allocno_hard_regs_htab):
16534 Change type to hash_table. Update dependent calls and types.
16535
16536 * ira-costs.c (htab_t cost_classes_htab):
16537 Change type to hash_table. Update dependent calls and types.
16538
16539 * loop-invariant.c (htab_t merge_identical_invariants::eq):
16540 Change type to hash_table. Update dependent calls and types.
16541
16542 * loop-iv.c (htab_t bivs):
16543 Change type to hash_table. Update dependent calls and types.
16544
16545 * loop-unroll.c (htab_t opt_info::insns_to_split):
16546 Change type to hash_table. Update dependent calls and types.
16547 (htab_t opt_info::insns_with_var_to_expand): Likewise.
16548
16549 * lto-streamer.h (struct string_slot): Move from data-streamer.h
16550 (struct string_slot_hasher): New.
16551 (htab_t output_block::string_hash_table):
16552 Change type to hash_table. Update dependent calls and types.
16553
16554 * lto-streamer-in.c (freeing_string_slot_hasher): New.
16555 (htab_t file_name_hash_table):
16556 Change type to hash_table. Update dependent calls and types.
16557
16558 * lto-streamer-out.c: Update output_block::string_hash_table dependent
16559 calls and types.
16560
16561 * lto-streamer.c (htab_t tree_htab):
16562 Change type to hash_table. Update dependent calls and types.
16563
16564 * omp-low.c: Include gimplify-ctx.h.
16565
16566 * passes.c (htab_t name_to_pass_map):
16567 Change type to hash_table. Update dependent calls and types.
16568 (pass_traverse): Rename to passes_pass_traverse.
16569
16570 * plugin.c (htab_t event_tab):
16571 Change type to hash_table. Update dependent calls and types.
16572
16573 * postreload-gcse.c (htab_t expr_table):
16574 Change type to hash_table. Update dependent calls and types.
16575 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
16576
16577 * sese.c (debug_rename_map_1): Make extern.
16578 (htab_t copy_bb_and_scalar_dependences::rename_map):
16579 Change type to hash_table. Update dependent calls and types.
16580
16581 * sese.h (extern debug_rename_map): Move to .c file.
16582
16583 * store-motion.c (htab_t store_motion_mems_table):
16584 Change type to hash_table. Update dependent calls and types.
16585
16586 * trans-mem.c (htab_t tm_new_mem_hash):
16587 Change type to hash_table. Update dependent calls and types.
16588
16589 * tree-browser.c (htab_t TB_up_ht):
16590 Change type to hash_table. Update dependent calls and types.
16591
16592 * tree-cfg.c (htab_t discriminator_per_locus):
16593 Change type to hash_table. Update dependent calls and types.
16594
16595 * tree-complex.c: Include tree-hasher.h
16596 (htab_t complex_variable_components):
16597 Change type to hash_table. Update dependent calls and types.
16598
16599 * tree-eh.c (htab_t finally_tree):
16600 Change type to hash_table. Update dependent calls and types.
16601
16602 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
16603 struct int_tree_hasher.
16604 (extern int_tree_map_eq): Likewise.
16605 (uid_decl_map_hash): Removed.
16606 (extern decl_tree_map_eq): Likewise.
16607
16608 * tree-hasher.h: New.
16609 (struct int_tree_hasher): New.
16610 (typedef int_tree_htab_type): New.
16611
16612 * tree-inline.c: Include gimplify-ctx.h.
16613
16614 * tree-mudflap.c: Include gimplify-ctx.h.
16615
16616 * tree-parloops.c: Include tree-hasher.h.
16617 (htab_t eliminate_local_variables_stmt::decl_address):
16618 Change type to hash_table. Update dependent calls and types.
16619 (htab_t separate_decls_in_region::decl_copies): Likewise.
16620
16621 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
16622 Change type to hash_table. Update dependent calls and types.
16623
16624 * tree-sra.c (candidates):
16625 Change type to hash_table. Update dependent calls and types.
16626
16627 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
16628 in tree-flow.h.
16629 (int_tree_map_hash): Likewise.
16630
16631 * tree-ssa-dom.c (htab_t avail_exprs):
16632 Change type to hash_table. Update dependent calls and types.
16633
16634 * tree-ssa-live.c (var_map_base_init::tree_to_index):
16635 Change type to hash_table. Update dependent calls and types.
16636
16637 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
16638 Change type to hash_table. Update dependent calls and types.
16639
16640 * tree-ssa-phiopt.c (seen_ssa_names):
16641 Change type to hash_table. Update dependent calls and types.
16642
16643 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
16644 Change type to hash_table. Update dependent calls and types.
16645
16646 * tree-ssa-uncprop.c (equiv):
16647 Change type to hash_table. Update dependent calls and types.
16648
c5a44004
JJ
166492013-04-25 Jakub Jelinek <jakub@redhat.com>
16650
16651 PR rtl-optimization/57003
16652 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
16653 call note_stores with kill_clobbered_value callback again after
16654 killing regs_invalidated_by_call.
16655
09962a4a
JG
166562013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16657
16658 * config/aarch64/aarch64-simd.md
16659 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
16660 (aarch64_simd_bsl<mode>): Likewise.
16661 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
16662
ea28bb0b
MP
166632013-04-25 Marek Polacek <polacek@redhat.com>
16664
16665 PR tree-optimization/57066
3c21604f 16666 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 16667
96659611
JG
166682013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
16669
16670 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
16671
9697e620
JG
166722013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16673
16674 * config/aarch64/aarch64-builtins.c
16675 (aarch64_fold_builtin): New.
16676 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
16677 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
16678 * config/aarch64/aarch64-simd-builtins.def (abs): New.
16679 * config/aarch64/arm_neon.h
16680 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
16681
0ac198d3
JG
166822013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16683 Tejas Belagod <tejas.belagod@arm.com>
16684
16685 * config/aarch64/aarch64-builtins.c
16686 (aarch64_gimple_fold_builtin): New.
16687 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
16688 * config/aarch64/aarch64-simd-builtins.def (addv): New.
16689 * config/aarch64/aarch64-simd.md (addpv4sf): New.
16690 (addvv4sf): Update.
16691 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
16692
58cff58c
N
166932013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16694
df93505e 16695 * config/aarch64/aarch64.md
58cff58c
N
16696 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
16697
7e0228bf
N
166982013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16699
16700 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
16701 (*ngcsi_uxtw): New pattern.
16702
5819f96f 167032013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 16704 Julian Brown <julian@codesourcery.com>
5819f96f
KT
16705
16706 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
16707 (TB_DREG): Add T_V4HF.
16708 (v4hf_UP): New macro.
16709 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 16710 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
16711 Handle initialisation of V4HF. Adjust initialisation of reinterpret
16712 built-ins.
df93505e 16713 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
16714 (arm_vector_mode_supported_p): Handle V4HF.
16715 (arm_mangle_map): Handle V4HFmode.
16716 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
16717 * config/arm/arm_neon_builtins.def: Add entries for
16718 vcvtv4hfv4sf, vcvtv4sfv4hf.
16719 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
16720 (neon_vcvtv4hfv4sf): Likewise.
16721 * config/arm/neon-gen.ml: Handle half-precision floating point
16722 features.
16723 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
16724 * config/arm/arm_neon.h: Regenerate.
16725 * config/arm/neon.ml (type elts): Add F16.
16726 (type vectype): Add T_float16x4, T_floatHF.
16727 (type vecmode): Add V4HF.
16728 (type features): Add Requires_FP_bit feature.
16729 (elt_width): Handle F16.
16730 (elt_class): Likewise.
16731 (elt_of_class_width): Likewise.
16732 (mode_of_elt): Refactor.
16733 (type_for_elt): Handle F16, fix error messages.
16734 (vectype_size): Handle T_float16x4.
16735 (vcvt_sh): New function.
16736 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
16737 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
16738 (string_of_mode): Handle V4HF.
16739 * doc/arm-neon-intrinsics.texi: Regenerate.
16740
1ef395e4
JG
167412013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
16742
16743 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
16744 format specifier in 'X' case.
16745
41c34e94
AM
167462013-04-25 Alan Modra <amodra@gmail.com>
16747
16748 PR target/57052
16749 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
16750 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
16751 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
16752 Repeat for many other rotate/shift and mask patterns using subregs.
16753 Name lshiftrt insns.
16754 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
16755 on WORDS_BIG_ENDIAN.
16756
b9a7eb5d
AM
167572013-04-25 Alan Modra <amodra@gmail.com>
16758
16759 * config.gcc: Support little-endian powerpc-linux targets.
16760 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
16761 (LINK_OS_LINUX_SPEC): Define.
16762 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
16763 Preserve MASK_LITTLE_ENDIAN.
16764 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
16765 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
16766 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
16767 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
16768 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
16769 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
16770 Correct fp word order for little-endian. Don't shift toc entries
16771 smaller than a word for little-endian.
16772 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
16773 (bswapdi2 splits): Correct low-part subreg for little-endian.
16774 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
16775 low/high where such is correct only for be.
16776 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
16777 little-endian for -mcall-aixdesc.
16778
87f73374
AM
167792013-04-25 Alan Modra <amodra@gmail.com>
16780
16781 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
16782 replace_equiv_address_nv.
16783
cabf91cd
AM
167842013-04-25 Alan Modra <amodra@gmail.com>
16785
16786 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
16787
0ae24cc8
VM
167882013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16789
16790 Revert:
16791 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16792 * rtl.h (struct rtx_def): ...
cabf91cd 16793
77bce07c
VM
167942013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16795
16796 PR rtl-optimizations/57046
16797 * lra-constraints (split_reg): Set up lra_risky_transformations_p
16798 for multi-reg splits.
16799
0db63e7f
L
168002013-04-24 H.J. Lu <hongjiu.lu@intel.com>
16801
16802 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
16803
3362b6b6
SA
168042013-04-24 Sterling Augustine <saugustine@google.com>
16805
16806 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
16807 (comp_dir_string, debug_str_dwo_section): New.
16808 (DEBUG_STR_DWO_SECTION): Rename to ...
16809 (DEBUG_DWO_STR_SECTION): ... this.
16810 (DEBUG_NORM_STR_SECTION): Delete.
16811 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
16812 (DEBUG_STR_DWO_SECTION_FLAGS): New.
16813 (find_AT_string): Move most logic to ...
16814 (find_AT_string_in_table): ... here. New.
16815 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
16816 add_skeleton_AT_string. Delete logic.
16817 (output_skeleton_debug_sections): Remove call to
16818 add_top_level_skeleton_die_attrs.
16819 (add_comp_dir_attribute): Move logic to comp_dir_string.
16820 (dwarf2out_init): Initialize debug_str_dwo_section.
16821 (output_indirect_string): Call find_string_form.
16822 (output_indirect_strings): Rewrite.
16823 (prune_unused_types): Empty skeleton_debug_str_hash.
16824 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
16825 (dwarf2out_finish): Call output_indirect_strings.
16826
e93e18e9
PC
168272013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16828
16829 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
16830
f6ce35ac
VM
168312013-04-24 Vladimir Makarov <vmakarov@redhat.com>
16832
cabf91cd 16833 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
16834 (LRA_SUBREG_P): New macro.
16835 * recog.c (register_operand): Check LRA_SUBREG_P.
16836 * lra.c (lra): Add note at the end of RTL code. Align non-empty
16837 stack frame.
16838 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
16839 (lra_final_code_change): Skip subreg change for operators.
16840 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
16841 if there are no operand changes.
16842 * lra-constraints.c (curr_insn_set): New.
16843 (match_reload): Set LRA_SUBREG_P.
16844 (emit_spill_move): Ditto.
16845 (check_and_process_move): Use curr_insn_set. Process only single
16846 set insns. Don't initialize sec_mem_p and change_p.
16847 (simplify_operand_subreg): Use LRA_SUBREG_P.
16848 (reg_in_class_p): New function.
16849 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
16850 of #ifdef. Add code to remove cycling.
16851 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
16852 non-null disp. Reload inner instead of disp when base and index
16853 are null. Try to put lo_sum into register.
16854 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 16855 (check_and_process_move): Move code for move cost check to
f6ce35ac 16856 simple_move_p. Remove equiv_substitution.
cabf91cd 16857 (simple_move_p): New function.
f6ce35ac
VM
16858 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
16859 curr_insn_set. Call check_and_process_move only for single set
16860 insns. Use the new function. Move call of check_and_process_move
16861 after operand equiv substitution and address process.
16862
38047d90
JG
168632013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
16864
16865 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
16866 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
16867 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
16868
13f39b2e
PC
168692013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
16870
16871 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
16872
97c116dc
MP
168732013-04-24 Marek Polacek <polacek@redhat.com>
16874
16875 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
16876 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
16877 (select_loops_exit_conditions): Likewise.
16878 (number_of_iterations_for_all_loops): Likewise.
16879 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
16880 (scev_analysis): Likewise.
16881
83082391 168822013-04-02 Catherine Moore <clm@codesourcery.com>
12211b99 16883 Chao-ying Fu <fu@mips.com>
83082391 16884
cabf91cd
AM
16885 * config/mips/micromips.md (jraddiusp): New pattern.
16886 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
16887 instruction if possible.
83082391 16888
19e34aa2
AM
168892013-04-24 Alan Modra <amodra@gmail.com>
16890
16891 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
16892
fdb6603c
JB
168932013-04-24 Julian Brown <julian@codesourcery.com>
16894 Chung-Lin Tang <cltang@codesourcery.com>
16895
16896 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
16897 dependency behavior in enumeration type DIE generation. Add TODO note
16898 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 16899
bf190e8d
LC
169002013-04-23 Lawrence Crowl <crowl@google.com>
16901
16902 * Makefile.in: Update as needed below.
16903
16904 * hash-table.h (class hash_table):
16905 Correct many methods with parameter types compare_type to the correct
16906 value_type. (Correct code was unlikely to notice the change.)
16907 (hash_table::elements_with_deleted) New.
16908 (class hashtable::iterator): New.
16909 (hashtable::begin()): New.
16910 (hashtable::end()): New.
16911 (FOR_EACH_HASH_TABLE_ELEMENT): New.
16912
16913 * statistics.c (statistics_hashes):
16914 Change type to hash_table. Update dependent calls and types.
16915
16916 * tree-into-ssa.c (var_infos):
16917 Change type to hash_table. Update dependent calls and types.
16918
16919 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
16920 Change type to hash_table. Update dependent calls and types.
16921
16922 * tree-ssa-loop-im.c (struct mem_ref.refs):
16923 Change type to hash_table. Update dependent calls and types.
16924
16925 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
16926 Change type to hash_table. Update dependent calls and types.
16927
16928 * tree-ssa-sccvn.c (vn_tables_s::nary):
16929 Change type to hash_table. Update dependent calls and types.
16930 (vn_tables_s::phis): Likewise.
16931 (vn_tables_s::references): Likewise.
16932
16933 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
16934 (vn_reference_eq): Update parameter and return types.
16935
16936 * tree-ssa-structalias.c (pointer_equiv_class_table):
16937 Change type to hash_table. Update dependent calls and types.
16938 (location_equiv_class_table): Likewise.
16939
16940 * tree-vect-data-refs.c: Consequential changes for making
16941 peeling a hash_table.
16942
16943 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
16944 (destroy_loop_vec_info): Dependent hash_table update.
16945
16946 * tree-vectorizer.h (peeling_htab):
16947 Change type to hash_table. Update dependent calls and types.
16948
d70a81dd
SC
169492013-04-23 Shiva Chen <shiva0217@gmail.com>
16950
cabf91cd
AM
16951 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
16952 to check the register content is equal or not.
16953 * lra-constraints.c (match_reload): Use lra_assign_reg_val
16954 to assign register content record.
16955 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 16956 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
16957 * lra-int.h (struct lra_reg): Add offset member.
16958 (lra_reg_val_equal_p): New static inline function.
16959 (lra_update_reg_val_offset): New static inline function.
16960 (lra_assign_reg_val): New static inline function.
16961 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
16962 to assign register content record.
16963 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 16964
b894a1f3
CM
169652013-04-23 Catherine Moore <clm@codesourcery.com>
16966
16967 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
16968 operands. Record compression.
16969
ecd14de9
XDL
169702013-04-23 Xinliang David Li <davidxl@google.com>
16971
16972 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
16973
92e776e9
RB
169742013-04-23 Richard Biener <rguenther@suse.de>
16975
16976 PR middle-end/57036
16977 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
16978 parameter, only add abnormal goto edges from the copied body
16979 if the call could perform abnormal gotos.
16980 (copy_cfg_body): Adjust.
16981
a15ee567
SN
169822013-04-23 Sofiane Naci <sofiane.naci@arm.com>
16983
16984 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
16985
08c52234
AS
169862013-04-23 Andreas Schwab <schwab@linux-m68k.org>
16987
16988 * coretypes.h (gimple_stmt_iterator): Add struct to make
16989 compatible with C.
16990
999c1171
RB
169912013-04-23 Richard Biener <rguenther@suse.de>
16992
16993 PR tree-optimization/57026
16994 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
16995 from SSA names occuring in abnormal PHI nodes.
16996
53669259
AK
169972013-04-22 Andi Kleen <ak@linux.intel.com>
16998
16999 * lto/lto.c (print_lto_report_1): Fix LTO report names.
17000
1a0ad150
AK
170012013-04-22 Andi Kleen <ak@linux.intel.com>
17002
17003 * lto/lto.c (print_lto_report_1): Declare early.
17004 (read_cgraph_and_symbols): Call print_lto_report_1 early.
17005
057f8f20
AK
170062013-04-22 Andi Kleen <ak@linux.intel.com>
17007
17008 * common.opt (-flto-report-wpa): Add.
17009 * doc/invoke.texi (-flto-report-wpa): Add.
17010 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
17011 (lto_main): dito.
17012
473b1e05
XDL
170132013-04-22 Xinliang David Li <davidxl@google.com>
17014
17015 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
17016 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
17017 * Makefile.in: New dependency
17018
cabf91cd 17019 David Daney <ddaney.cavm@gmail.com>
b1485a33 17020
cabf91cd
AM
17021 * configure.ac (gcc_cv_as_micromips_support): Use the
17022 --fatal-warnings option.
17023 * configure: Regenerate.
b1485a33 17024
829d0168
MP
170252013-04-22 Marek Polacek <polacek@redhat.com>
17026
17027 PR sanitizer/56990
17028 * tsan.c (instrument_expr): Don't instrument expression
17029 in case its size is zero.
17030
6d9b7208
UB
170312013-04-22 Uros Bizjak <ubizjak@gmail.com>
17032
17033 PR target/57032
17034 Revert:
17035 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
17036
17037 * config/alpha/alpha.c (TARGET_LRA_P): New define.
17038
ea679d55
JG
170392013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
17040
17041 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
17042 (gimple_stmt_iterator): New typedef.
17043 * gimple.h (gimple_stmt_iterator): Rename to...
17044 (gimple_stmt_iterator_d): ... This.
17045 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
17046 trees be valid for GIMPLE and GENERIC.
17047 (TARGET_GIMPLE_FOLD_BUILTIN): New.
17048 * gimple-fold.c (gimple_fold_call): Call target hook
17049 gimple_fold_builtin.
17050 * hooks.c (hook_bool_gsiptr_false): New.
17051 * hooks.h (hook_bool_gsiptr_false): New.
17052 * target.def (fold_stmt): New.
17053 * doc/tm.texi: Regenerate.
17054
88a581da
VM
170552013-04-22 Vladimir Makarov <vmakarov@redhat.com>
17056
17057 PR target/57018
17058 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
17059 a set sp if no stack realignment.
17060
92be22dc
NC
170612013-04-22 Nick Clifton <nickc@redhat.com>
17062
17063 * config.gcc (tilegx-linux): Extend extra_objs rather than
17064 overwriting it.
17065 (tilepro-linux): Likewise.
17066
0ddec79f
JG
170672013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
17068
17069 * config/aarch64/aarch64-builtins.c
17070 (CF): Remove.
17071 (CF0, CF1, CF2, CF3, CF4, CF10): New.
17072 (VAR<1-12>): Add MAP parameter.
17073 (BUILTIN_*): Likewise.
17074 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
17075 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
17076 (aarch64_ushl_n<mode>): Likewise.
17077 (aarch64_sshr_n<mode>): Likewise.
17078 (aarch64_ushr_n<mode>): Likewise.
17079 (aarch64_<maxmin><mode>): Likewise.
17080 (aarch64_sqrt<mode>): Likewise.
17081 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
17082 (vshr<q>_n_*): Likewise.
17083
0050faf8
JG
170842013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
17085
17086 * config/aarch64/aarch64-builtins.c
17087 (aarch64_simd_builtin_type_mode): Handle SF types.
17088 (sf_UP): Define.
17089 (BUILTIN_GPF): Define.
17090 (aarch64_init_simd_builtins): Handle SF types.
17091 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
17092 (frecps): Likewise.
17093 (frecpx): Likewise.
17094 * config/aarch64/aarch64-simd.md
17095 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
17096 (aarch64_frecpe<mode>): New.
17097 (aarch64_frecps<mode>): Likewise.
17098 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
17099 (v8type): Add frecp<esx>.
17100 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
17101 (aarch64_frecps<mode>): Likewise.
17102 * config/aarch64/iterators.md (FRECP): New.
17103 (frecp_suffix): Likewise.
17104 * config/aarch64/arm_neon.h
17105 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
17106
0fad3dbc 171072013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
17108
17109 PR target/56995
17110 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
17111 (REG_CLASS_NAMES): Idem.
17112 (REG_CLASS_CONTENTS): Idem.
17113 (REGCLASS_HAS_FP_REG): Idem.
17114 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
17115 (sh_conditional_register_usage): Idem.
17116
3e8a33f9
JL
171172013-04-21 Jeff Law <law@redhat.com>
17118
17119 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
17120 (ssa_forward_propagate_and_combine): Use it.
17121
f38e1b0a
VM
171222013-04-19 Vladimir Makarov <vmakarov@redhat.com>
17123
17124 * lra.c: Update the flow chart diagram.
17125
682303da
VM
171262013-04-19 Vladimir Makarov <vmakarov@redhat.com>
17127
17128 PR rtl-optimization/56847
17129 * lra-constraints.c (process_alt_operands): Discourage alternative
17130 with non-matche doffsettable memory constraint fro memory with
17131 known offset.
17132
f6b64c35
RB
171332013-04-19 Richard Biener <rguenther@suse.de>
17134
17135 PR tree-optimization/56982
17136 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
17137 function.
17138 * gimplify.c (gimplify_call_expr): Notice special calls.
17139 (gimplify_modify_expr): Likewise.
17140 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
17141 abnormal control flow receivers.
17142 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
17143 in the same way as cfun->has_nonlocal_labels.
17144 (gimple_purge_dead_abnormal_call_edges): Likewise.
17145 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
17146 receivers start a basic-block.
17147
01d8bf07
RB
171482013-04-19 Richard Biener <rguenther@suse.de>
17149
17150 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
17151 member ...
17152 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
17153 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
17154 (SLP_TREE_LOAD_PERMUTATION): Add.
17155 (vect_transform_slp_perm_load): Adjust prototype.
17156 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
17157 (vect_free_slp_instance): Likewise.
17158 (vect_create_new_slp_node): Likewise.
17159 (vect_supported_slp_permutation_p): Remove.
17160 (vect_slp_rearrange_stmts): Adjust.
17161 (vect_supported_load_permutation_p): Likewise. Inline
17162 vect_supported_slp_permutation_p here.
17163 (vect_analyze_slp_instance): Compute load permutations per
17164 slp node instead of per instance.
17165 (vect_get_slp_defs): Adjust.
17166 (vect_transform_slp_perm_load): Likewise.
17167 (vect_schedule_slp_instance): Remove redundant code.
17168 (vect_schedule_slp): Remove hack for PR56270, add it ...
17169 * tree-vect-stmts.c (vectorizable_load): ... here, do not
17170 CSE loads for SLP. Adjust.
17171
ede22fc3
GY
171722013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
17173
17174 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
17175 spelling in two comments.
17176
67bc84fb
GY
171772013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
17178
17179 PR target/56797
17180 * config/arm/arm.c (load_multiple_sequence): Require SP
17181 as base register for loads if SP is in the register list.
17182
e248d83f
MJ
171832013-04-19 Martin Jambor <mjambor@suse.cz>
17184
17185 PR tree-optimization/56718
17186 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
17187 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
17188 and made public. Adjusted all callers.
17189 (ipa_intraprocedural_devirtualization): New function.
17190 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
17191 (ipa_intraprocedural_devirtualization): Likewise.
17192 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
17193
4891e8f8
RB
171942013-04-19 Richard Biener <rguenther@suse.de>
17195
17196 PR tree-optimization/57000
17197 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
17198
dad89f7c
TG
171992013-04-19 Terry Guo <terry.guo@arm.com>
17200
17201 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
17202 Replace with ...
17203 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
17204 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
17205 (cortex_m4_fmacs): Use new reservations.
17206 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
17207
72ea0d47
VM
172082013-04-18 Vladimir Makarov <vmakarov@redhat.com>
17209
f1e6512c 17210 PR rtl-optimization/56999
72ea0d47
VM
17211 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
17212 related code.
17213 (lra_coalesce): Remove split_origin_bitmap and related code.
17214 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
17215 ranges if necessary.
17216
780a5b71
UB
172172013-04-18 Uros Bizjak <ubizjak@gmail.com>
17218
17219 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
17220 New array.
17221 (ix86_expand_call): Remove clobbered_registers array and use
17222 x86_64_ms_sysv_extra_clobbered_registers instead.
17223 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
17224 Declare here.
17225 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
17226 predicate.
17227 * config/i386/i386.md (*call_rex64_ms_sysv): Use
17228 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
17229 (*call_value_rex64_ms_sysv): Ditto.
17230
6f5a366a
CC
172312013-04-18 Cary Coutant <ccoutant@google.com>
17232
17233 * dwarf2out.c (output_pubnames): Check die_perennial_p of
17234 parent instead of die_mark.
17235
475b8f37
DN
172362013-04-18 Diego Novillo <dnovillo@google.com>
17237
17238 * gimple.c (create_gimple_tmp): New.
17239 (get_expr_type): New.
17240 (build_assign): New.
17241 (build_type_cast): New.
17242 * gimple.h (enum ssa_mode): Define.
17243 (gimple_seq_set_location): New.
17244 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 17245 to use build_assign and build_type_cast.
475b8f37 17246
08940f33
RB
172472013-04-18 Richard Biener <rguenther@suse.de>
17248
17249 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
17250 handle negative step. Remove redundant checks.
17251 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
17252 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
17253 for negative step and grouped loads fail to vectorize.
17254
0e0f87d4
SB
172552013-04-18 Steven Bosscher <steven@gcc.gnu.org>
17256
17257 * emit-rtl.c (reset_insn_used_flags): New function.
17258 (reset_all_used_flags): Use it.
17259 (verify_insn_sharing): New function.
17260 (verify_rtl_sharing): Fix verification for SEQUENCEs.
17261
4c445590
JJ
172622013-04-18 Jakub Jelinek <jakub@redhat.com>
17263
17264 PR tree-optimization/56984
17265 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
17266 and (x >> M) >= N don't register any assertion if N << M is the
17267 minimum value.
17268
6873ecab
SB
172692013-04-18 Steven Bosscher <steven@gcc.gnu.org>
17270
17271 * lower-subreg.c (resolve_simple_move): If called self-recursive,
17272 do not delete_insn insns that have not yet been emitted, only
17273 unlink them with remove_insn.
17274 * df-scan.c (df_insn_delete): Revert r197492.
17275
3ccb989e
SB
172762013-04-17 Steven Bosscher <steven@gcc.gnu.org>
17277
17278 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
17279 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
17280
172812013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
17282
17283 * config/arm/arm.md (movsicc_insn): Convert define_insn into
17284 define_insn_and_split.
17285 (and_scc,ior_scc,negscc): Likewise.
17286 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
17287
3ccb989e 172882013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
17289
17290 * config/arm/arm.c (use_return_insn): Return 0 for targets that
17291 can benefit from using a sequence of LDRD instructions in epilogue
17292 instead of a single LDM instruction.
17293
6d10a203
MLI
172942013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
17295
17296 PR 45688
17297 * doc/extend.texi: Fix typo.
17298
6983e6b5
RB
172992013-04-17 Richard Biener <rguenther@suse.de>
17300
17301 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
17302 (vect_build_slp_tree): ... here.
17303 (vect_build_slp_tree_1): Compute which stmts of the SLP group
17304 match. Remove special-casing of mismatched complex loads.
17305 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
17306 re-try the match with swapped commutative operands.
17307 (vect_supported_load_permutation_p): Remove special-casing of
17308 mismatched complex loads.
17309 (vect_analyze_slp_instance): Adjust.
17310
ef23e6a2
RB
173112013-04-17 Richard Biener <rguenther@suse.de>
17312
17313 PR rtl-optimization/56921
17314 * cfgloop.h (struct loop): Add simple_loop_desc member.
17315 (struct niter_desc): Mark with GTY(()).
17316 (simple_loop_desc): Do not use aux field but simple_loop_desc.
17317 * loop-iv.c (get_simple_loop_desc): Likewise.
17318 (free_simple_loop_desc): Likewise.
17319
17320 Revert
17321 2013-04-16 Richard Biener <rguenther@suse.de>
17322
17323 PR rtl-optimization/56921
17324 * loop-init.c (pass_rtl_move_loop_invariants): Add
17325 TODO_do_not_ggc_collect to todo_flags_finish.
17326 (pass_rtl_unswitch): Same.
17327 (pass_rtl_unroll_and_peel_loops): Same.
17328 (pass_rtl_doloop): Same.
17329
fc6f94f5
EB
173302013-04-17 Eric Botcazou <ebotcazou@adacore.com>
17331
17332 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
17333 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
17334 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
17335 references.
17336 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
17337 * tree-streamer.c (record_common_node): Adjust reference in comment.
17338
10a88311
TG
173392013-04-17 Terry Guo <terry.guo@arm.com>
17340
17341 * config/arm/cortex-m4.md: Add a new bypass.
17342
6d9b7208 173432013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
17344
17345 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
17346 New pattern.
17347 (*subs_<optab><mode>_multp2): New pattern.
17348 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
17349 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
17350
6d9b7208 173512013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
17352
17353 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
17354 (*subs_mul_imm_<mode>): New pattern.
17355
18a6701e
DE
173562013-04-16 David Edelsohn <dje.gcc@gmail.com>
17357
17358 PR target/56948
17359 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
17360 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
17361 (vsx_movti_32bit): Change j->wa to O->wa.
17362
07c37b2f
RB
173632013-04-16 Richard Biener <rguenther@suse.de>
17364
17365 PR rtl-optimization/56921
17366 * loop-init.c (pass_rtl_move_loop_invariants): Add
17367 TODO_do_not_ggc_collect to todo_flags_finish.
17368 (pass_rtl_unswitch): Same.
17369 (pass_rtl_unroll_and_peel_loops): Same.
17370 (pass_rtl_doloop): Same.
17371
0e0f87d4 173722013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
17373
17374 * config/arm/arm.c (emit_multi_reg_push): New declaration
17375 for an existing function.
17376 (arm_emit_strd_push): New function.
17377 (arm_expand_prologue): Used here.
17378 (arm_emit_ldrd_pop): New function.
17379 (arm_expand_epilogue): Used here.
17380 (arm_get_frame_offsets): Update condition.
17381 (arm_emit_multi_reg_pop): Add a special case for load of a single
17382 register with writeback.
17383
5e8e2af4
UB
173842013-04-16 Uros Bizjak <ubizjak@gmail.com>
17385
17386 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
17387 description.
17388
9fd9ccf7
RB
173892013-04-16 Richard Biener <rguenther@suse.de>
17390
17391 PR tree-optimization/56756
17392 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
17393 (first_mem_ref_loc): New.
17394 (execute_sm): Place the load temporarily before a previous
17395 access instead of in the latch edge to ensure its SSA dependencies
17396 are defined at points dominating the load.
17397
96fba521
SB
173982013-04-16 Steven Bosscher <steven@gcc.gnu.org>
17399
4c8af858
SB
17400 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
17401 correct fix by moving header and footer insn to the footer of
17402 the merged basic block. Clear BB_END of the merged-away block.
17403
96fba521
SB
17404 PR middle-end/43631
17405 * emit-rtl.c (make_note_raw): New function.
17406 (link_insn_into_chain): New static inline function.
17407 (add_insn): Use it.
17408 (add_insn_before, add_insn_after): Factor insn chain linking code...
17409 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
17410 using link_insn_into_chain.
17411 (note_outside_basic_block_p): New helper function for emit_note_after
17412 and emit_note_before.
17413 (emit_note_after): Use nobb variant of add_insn_after if the note
17414 should not be contained in a basic block.
17415 (emit_note_before): Use nobb variant of add_insn_before if the note
17416 should not be contained in a basic block.
17417 (emit_note_copy): Use make_note_raw.
17418 (emit_note): Likewise.
17419 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
17420 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
17421 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
17422 the moved barrier the tail of the basic block it follows.
17423 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
17424
7b8265ba
JJ
174252013-04-15 Jakub Jelinek <jakub@redhat.com>
17426
17427 PR tree-optimization/56962
17428 * gimple-ssa-strength-reduction.c (record_increment): Only set
17429 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
17430 either rhs1 or rhs2 is equal to c->base_expr.
17431
5185d248
RB
174322013-04-15 Richard Biener <rguenther@suse.de>
17433
17434 PR tree-optimization/56933
17435 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
17436 member.
17437 (GROUP_READ_WRITE_DEPENDENCE): Remove.
17438 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
17439 * tree-vect-data-refs.c (vect_analyze_group_access): Move
17440 dependence check ...
17441 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
17442 ... here.
17443 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
17444 GROUP_READ_WRITE_DEPENDENCE.
17445
a24243a0
AK
174462013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17447
17448 * emit-rtl.c (reset_all_used_flags): New function.
17449 (verify_rtl_sharing): Call reset_all_used_flags before and after
17450 performing the checks.
17451
1c50eada
KT
174522013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17453
17454 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
17455 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
17456 * config/arm/constraints.md (De): New constraint.
17457 * config/arm/neon.md (anddi3_neon): Delete.
17458 (neon_vand<mode>): Expand to standard anddi3 pattern.
17459 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
17460 Move earlier in the file.
17461 (neon_inv_logic_op2): Likewise.
17462 (arm_anddi_operand_neon): New predicate.
17463
e927b6ad
RO
174642013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17465
17466 * configure.ac (gcc_cv_ld_as_needed): Set
17467 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
17468 Use -z ignore, -z record on *-*-solaris2*.
17469 (HAVE_LD_AS_NEEDED): Update comment.
17470 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
17471 * configure: Regenerate.
17472 * config.in: Regenerate.
17473 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
17474 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
17475 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
17476 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
17477 equivalents. Fix markup.
17478 * doc/tm.texi: Regenerate.
17479
e0ea8797
AH
174802013-04-15 Andrew Hsieh <andrewhsieh.google.com>
17481
17482 * config/i386/i386.opt: New option mstack-protector-guard=.
17483 * config/i386/i386-opts.h: Add enum stack_protector_guard.
17484 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
17485 TARGET_SSP_TLS_GUARD.
17486 * config/i386/i386.c (ix86_option_override_internal): Set
17487 ix86_stack_protector_guard.
17488 * config/i386/i386.md (stack_protect_set): Enable for
17489 TARGET_SSP_TLS_GUARD only.
17490 (stack_protect_set_<mode>): Ditto.
17491 (stack_protect_test): Ditto.
17492 (stack_protect_test_<mode>): Ditto.
17493 * doc/invoke.texi (i386 Option): Document.
17494
811b72f9
EB
174952013-04-15 Eric Botcazou <ebotcazou@adacore.com>
17496
17497 PR target/56890
17498 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
17499 (S_MODES): Set H_MODE bit.
17500 (SF_MODES): Set only S_MODE and SF_MODE bits.
17501 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
17502 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
17503 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
17504 <MODE_FLOAT>: Likewise.
17505
5529fdd6
JY
175062013-04-15 Joey Ye <joey.ye@arm.com>
17507
17508 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
17509
517b1da2
JY
175102013-04-15 Joey Ye <joey.ye@arm.com>
17511
17512 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
17513 for real far jump.
17514 (thumb_far_jump_used_p): Count instruction size and set
17515 far_jump_used.
17516
01007ae0
EB
175172013-04-14 Eric Botcazou <ebotcazou@adacore.com>
17518
17519 * reorg.c (fill_simple_delay_slots): Reindent block of code.
17520 * resource.c (mark_target_live_regs): Reformat conditional block.
17521
c46f6580
SB
175222013-04-13 Steven Bosscher <steven@gcc.gnu.org>
17523
17524 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
17525 notes, they are emitted only just before final.
17526 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
17527
1f397f45
SB
175282013-04-13 Steven Bosscher <steven@gcc.gnu.org>
17529
17530 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
17531 * cfgrtl.c (delete_insn): Call it here instead.
17532 * lra-spills.c (lra_final_code_change): Use delete_insn.
17533 * haifa-sched.c (sched_remove_insn): Likewise.
17534 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
17535 returning to the nop pool.
17536 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
17537 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
17538
58a51369
SB
175392013-04-12 Steven Bosscher <steven@gcc.gnu.org>
17540
17541 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
17542 * doc/tm.texi: Regenerated.
17543
33159866
UB
175442013-04-12 Uros Bizjak <ubizjak@gmail.com>
17545
17546 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
17547 QImode checks.
17548
226e378f
SB
175492013-04-12 Steven Bosscher <steven@gcc.gnu.org>
17550
17551 * df-core.c (df_find_def): Compare register numbers.
17552 (df_find_use): Likewise.
17553
fafb9b18
VM
175542013-04-12 Vladimir Makarov <vmakarov@redhat.com>
17555
17556 PR target/56903
17557 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
17558 lra_in_progress for return.
17559
9a946fd6
GY
175602013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
17561
17562 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
17563 define_insn into define_insn_and_split and emit movsicc patterns.
17564
41b83758
GY
175652013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
17566
17567 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
17568
d3afd9aa
RB
175692013-04-12 Richard Biener <rguenther@suse.de>
17570
17571 * tree-pass.h (TODO_do_not_ggc_collect): New.
17572 * passes.c (execute_one_ipa_transform_pass): Honor
17573 TODO_do_not_ggc_collect.
17574 (execute_one_pass): Likewise.
17575
17576 Revert
17577 2013-04-10 Richard Biener <rguenther@suse.de>
17578
17579 * passes.c (init_optimization_passes): Remove reload pass.
17580 * ira.c (do_reload): Merge into ...
17581 (ira): ... this.
17582 (rest_of_handle_reload): Remove.
17583 (pass_reload): Likewise.
17584 * config/i386/i386.c (ix86_option_override): Refer to ira instead
17585 of reload for vzeroupper pass placement.
17586
06f9b387
JJ
175872013-04-12 Jakub Jelinek <jakub@redhat.com>
17588
17589 PR tree-optimization/56918
17590 PR tree-optimization/56920
17591 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
17592 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
17593 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
17594 use wide_mul_with_sign method.
17595
953094d2
RB
175962013-04-12 Richard Biener <rguenther@suse.de>
17597
17598 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
17599 not be considered a gimple constant.
17600
bb506982
MG
176012013-04-12 Marc Glisse <marc.glisse@inria.fr>
17602
17603 * fold-const.c (const_binop): Handle vector shifts by a scalar.
17604 (fold_binary_loc): Call const_binop also for mixed vector-scalar
17605 operations.
17606
4b84d650
JJ
176072013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
17608 Jakub Jelinek <jakub@redhat.com>
17609
17610 * opts.c: Include diagnostic-color.h.
17611 (common_handle_option): Handle OPT_fdiagnostics_color_.
17612 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
17613 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
17614 (diagnostic-color.o): New.
17615 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
17616 (diagnostic_color_rule): New enum.
17617 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
17618 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
17619 the location string.
17620 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
17621 either NULL, or color kind.
17622 * diagnostic-color.c: New file.
17623 * diagnostic-color.h: New file.
17624 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
17625 arguments.
17626 * doc/invoke.texi (-fdiagnostics-color): Document.
17627 * pretty-print.h (pp_show_color): Define.
17628 (struct pretty_print_info): Add show_color field.
17629 * diagnostic.c: Include diagnostic-color.h.
17630 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
17631 macros. Colorize error:, warning: etc. strings and also the location
17632 string.
17633 (diagnostic_show_locus): Colorize the caret line.
17634 * pretty-print.c: Include diagnostic-color.h.
17635 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
17636 inside of %< %> quotes or quoted through q format modifier.
17637
067a1e71
AK
176382013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17639
33159866 17640 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 17641
33159866 176422013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
17643
17644 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
17645 code in CC_NZ mode.
17646 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
17647 pattern.
17648
7b55f98f
MP
176492013-04-11 Marek Polacek <polacek@redhat.com>
17650
17651 PR tree-optimization/48184
33159866 17652 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 17653
966b587e
EB
176542013-04-11 Eric Botcazou <ebotcazou@adacore.com>
17655
17656 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
17657 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
17658 (skip_simple_arithmetic): Tidy up.
17659 * tree.h (skip_simple_constant_arithmetic): Declare.
17660
33159866 176612013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
17662
17663 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
17664
1d42c1ec
RB
176652013-04-11 Richard Biener <rguenther@suse.de>
17666
17667 * tree-vect-loop.c (get_initial_def_for_induction): Properly
17668 generate vector constants.
17669
4ba5ea11
RB
176702013-04-11 Richard Biener <rguenther@suse.de>
17671
17672 PR tree-optimization/56878
17673 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
17674 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
17675 New function.
17676 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
17677 Prefer to align the DR with the most invariant base address.
17678
f0defe58
SKS
176792013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17680
17681 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
17682 comment.
17683
d07458be
JG
176842013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
17685
17686 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
17687 floating-point vector comparisons against 0.
17688
146b8692
JJ
176892013-04-11 Jakub Jelinek <jakub@redhat.com>
17690
17691 PR tree-optimization/56899
17692 * fold-const.c (extract_muldiv_1): Apply distributive law
17693 only if TYPE_OVERFLOW_WRAPS (ctype).
17694
b8578ff7
BC
176952013-04-11 Bin Cheng <bin.cheng@arm.com>
17696
17697 PR target/56124
17698 * ira-costs.c (scan_one_insn): Check whether the source rtx of
17699 loading has side effect.
17700
0ea8a6f9
SB
177012013-04-10 Steven Bosscher <steven@gcc.gnu.org>
17702
17703 * config/sparc/sparc.c: Include tree-pass.h.
17704 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
17705 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
17706 head of file. Change return type. Split off gate function.
17707 (sparc_gate_work_around_errata): New function.
17708 (pass_work_around_errata): New pass definition.
17709 (insert_pass_work_around_errata) New pass insert definition to
17710 insert pass_work_around_errata just after delayed-branch scheduling.
17711 (sparc_option_override): Insert the pass.
17712 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
17713
42e37616
DM
177142013-04-10 David S. Miller <davem@davemloft.net>
17715
89deeb3b
DM
17716 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
17717 or -mcpu=hypersparc.
17718
42e37616
DM
17719 * target.def (cstore_mode): New hook.
17720 * target.h: Include insn-codes.h
17721 * targhooks.c: Likewise.
17722 (default_cstore_mode): New function.
17723 * targhooks.h: Declare it.
17724 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
17725 * doc/tm.texi: Rebuild.
17726 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
17727 target hook, rather than inspecting the insn_data.
17728 * config/sparc/sparc.c (sparc_cstore_mode): New function.
17729 (TARGET_CSTORE_MODE): Redefine.
17730 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
17731 result patterns.
17732 * config/sparc/predicates.md (cstore_result_operand): New special
17733 predicate.
17734 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
17735 Use it for operand 0.
17736 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
17737 (*snesi_special): Likewise.
17738 (*snesi_zero): Likewise.
17739 (*seqsi_zero): Likewise.
17740 (*sltu_insn): Likewise.
17741 (*sgeu_insn): Likewise.
17742 (*seqdi_special): Make operand 0 and comparison operation be of
17743 DImode.
17744 (*snedi_special): Likewise.
17745 (*snedi_special_vis3): Likewise.
17746 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
17747 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
17748 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
17749 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
17750 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
17751 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
17752 (*sltu_extend_sp64): Likewise.
17753 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
17754 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
17755 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
17756 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
17757 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
17758
95ca411e
YZ
177592013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
17760
17761 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
17762 (aarch64_start_file): Use the new function.
17763
6782438d 177642013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 17765 Jason Merrill <jason@redhat.com>
6782438d
SKS
17766
17767 * common.opt: Add -gdwarf.
17768 * opts.c (common_handle_option): Handle it.
17769 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
17770
bb313b93
RB
177712013-04-10 Richard Biener <rguenther@suse.de>
17772
17773 * passes.c (execute_todo): Do not call ggc_collect conditional here.
17774 (execute_one_ipa_transform_pass): But unconditionally here.
17775 (execute_one_pass): And here.
17776 (init_optimization_passes): Remove reload pass.
17777 * tree-pass.h (TODO_ggc_collect): Remove.
17778 (pass_reload): Likewise.
17779 * ira.c (do_reload): Merge into ...
17780 (ira): ... this.
17781 (rest_of_handle_reload): Remove.
17782 (pass_reload): Likewise.
17783 * config/i386/i386.c (ix86_option_override): Refer to ira instead
17784 of reload for vzeroupper pass placement.
17785 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
17786 and todo_flags_finish of all passes.
17787
793d9a16
RB
177882013-04-10 Richard Biener <rguenther@suse.de>
17789
17790 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
17791 first_const_oprnd field, rename first_def_type to first_op_type.
17792 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
17793 (vect_get_and_check_slp_defs): Always use the type of the
17794 operand. Allow mixed vect_external_def, vect_constant_def types.
17795 (vect_get_constant_vectors): Handle mixed vect_external_def,
17796 vect_constant_def types.
17797
12211b99 177982013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
ee8a9b7b
JR
17799
17800 PR tree-optimization/55524
17801 * tree-ssa-math-opts.c
17802 (convert_mult_to_fma): Don't use an fms construct
17803 when we don't have an fms operation, but fnma, and it looks
17804 likely that we'll be able to use the latter.
17805
12211b99 178062013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6957a6f6
ZZ
17807
17808 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
17809 function.
17810 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
17811 inline fail caused by overwritable functions.
17812
34ab4a5b
CJW
178132013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
17814
17815 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
17816 unnecessary bits in the constant power of two case.
17817
abf9bfbc
RB
178182013-04-10 Richard Biener <rguenther@suse.de>
17819
17820 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
17821 broken code swapping operands.
17822 (vect_build_slp_tree): Do not compute load permutations here.
17823 (vect_analyze_slp_instance): Compute load permutations here,
17824 after building the SLP tree.
17825
f408477e
CB
178262013-04-09 Christian Bruel <christian.bruel@st.com>
17827
17828 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
17829 of next/prev_real_insn.
17830
5ac42672
JH
178312013-04-09 Jan Hubicka <jh@suse.cz>
17832
abf9bfbc
RB
17833 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
17834 Drop aliased parameter.
5ac42672
JH
17835 (function_and_variable_visibility): Do not handle alias pairs.
17836 * cgraph.c (varpool_externally_visible_p): Update prototype.
17837 * varpool.c (varpool_add_new_variable): Update.
17838
5017f1d2
KT
178392013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17840
17841 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
17842
48eecbee
SB
178432013-04-09 Steven Bosscher <steven@gcc.gnu.org>
17844
a949cf1c
SB
17845 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
17846
48eecbee
SB
17847 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
17848
75ef8e3d
MP
178492013-04-09 Marek Polacek <polacek@redhat.com>
17850
17851 PR tree-optimization/48762
33159866 17852 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 17853
23847df4
RB
178542013-04-09 Richard Biener <rguenther@suse.de>
17855
17856 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
17857 dealing with cost.
17858 (vect_build_slp_tree): Likewise.
17859 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
17860 calculating the cost of a SLP instance.
17861 (vect_analyze_slp_instance): Use it from here, after building
17862 the SLP tree.
17863
ea3a0fde
JJ
178642013-04-09 Jakub Jelinek <jakub@redhat.com>
17865
17866 PR middle-end/56883
17867 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
17868 expand_omp_for_static_chunk): Use simple_p = true in
17869 force_gimple_operand_gsi calls when assigning to addressable decls.
17870
a32dfe9d
JL
178712013-04-09 Jeff Law <law@redhat.com>
17872
17873 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
17874 when the boolean was created by converting a wider object which
17875 had a boolean range.
17876
d755c7ef
RB
178772013-04-09 Richard Biener <rguenther@suse.de>
17878
17879 * tree-vectorizer.h (slp_void_p): Remove.
17880 (slp_tree): Typedef before _slp_tree declaration.
17881 (struct _slp_tree): Use a vector of slp_tree as children.
17882 (vect_get_place_in_interleaving_chain): Remove.
17883 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
17884 Move ...
17885 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
17886 and make static.
17887 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
17888 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
17889 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
17890 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
17891 Use slp_node instead of slp_void_p and adjust.
17892
3d741091
RB
178932013-04-09 Richard Biener <rguenther@suse.de>
17894
17895 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
17896 work that is not necessary.
17897
39307ba7
JJ
178982013-04-09 Jakub Jelinek <jakub@redhat.com>
17899
17900 PR tree-optimization/56854
17901 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
17902 forward into clobber stmts if it would change MEM_REF lhs into
17903 non-MEM_REF.
17904
343881fd
MK
179052013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
17906
17907 * tree.c (type_hash_lookup, type_hash_add): Make static.
17908 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
17909
3922658a
RB
179102013-04-09 Richard Biener <rguenther@suse.de>
17911
17912 * tree.h (unsave_expr_now): Remove.
17913 * tree-inline.c (mark_local_for_remap_r): Remove.
17914 (unsave_expr_1): Likewise.
17915 (unsave_r): Likewise.
17916 (unsave_expr_now): Likewise.
17917 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
17918 (propagate_tree_value): Likewise.
17919
9fb6b620
SB
179202013-04-08 Steven Bosscher <steven@gcc.gnu.org>
17921
17922 * doc/rtl.texi (sequence): Rewrite documentation to match the
17923 current use of SEQUENCE rtl objects.
17924 * rtl.def (SEQUENCE): Likewise.
17925
17926 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
17927 Update documentation.
17928 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
17929 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
17930
17931 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
17932
8ddb5a29
TJ
179332013-04-08 Teresa Johnson <tejohnson@google.com>
17934
17935 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
17936 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 17937 methods.
8ddb5a29
TJ
17938 (estimate_edge_size_and_time): Add comment to suggest using rounding
17939 methods.
17940 (estimate_node_size_and_time): Ditto.
17941 (remap_edge_change_prob): Use helper rounding divide methods.
17942 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
17943 (gimple_mod_pow2_value_transform): Ditto.
17944 (gimple_mod_subtract_transform): Ditto.
17945 (gimple_ic_transform): Ditto.
17946 (gimple_stringops_transform): Ditto.
17947 * stmt.c (conditional_probability): Ditto.
17948 (emit_case_dispatch_table): Ditto.
17949 * lto-cgraph.c (merge_profile_summaries): Ditto.
17950 * tree-optimize.c (execute_fixup_cfg): Ditto.
17951 * cfgcleanup.c (try_forward_edges): Ditto.
17952 * cfgloopmanip.c (scale_loop_profile): Ditto.
17953 (loopify): Ditto.
17954 (duplicate_loop_to_header_edge): Ditto.
17955 (lv_adjust_loop_entry_edge): Ditto.
17956 * tree-vect-loop.c (vect_transform_loop): Ditto.
17957 * profile.c (compute_branch_probabilities): Ditto.
17958 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
17959 * lto-streamer-in.c (input_cfg): Ditto.
17960 * gimple-streamer-in.c (input_bb): Ditto.
17961 * ipa-cp.c (update_profiling_info): Ditto.
17962 (update_specialized_profile): Ditto.
17963 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
17964 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 17965 rounding methods.
8ddb5a29
TJ
17966 * sched-rgn.c (compute_dom_prob_ps): Ditto.
17967 (compute_trg_info): Ditto.
17968 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
17969 (purge_dead_edges): Ditto.
17970 * loop-unswitch.c (unswitch_loop): Ditto.
17971 * cgraphclones.c (cgraph_clone_edge): Ditto.
17972 (cgraph_clone_node): Ditto.
17973 * tree-inline.c (copy_bb): Ditto.
17974 (copy_edges_for_bb): Ditto.
17975 (initialize_cfun): Ditto.
17976 (copy_cfg_body): Ditto.
17977 (expand_call_inline): Ditto.
17978
661e6bd7
KT
179792013-04-08 Kai Tietz <ktietz@redhat.com>
17980
17981 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
17982 TARGET_CYGWIN64 by TARGET_64BIT.
17983
105766f3
JR
179842013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
17985
17986 * config/epiphany/epiphany.md (GPR_1): New constant.
17987 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
17988 * config/epiphany/epiphany.c (gen_compare_reg):
17989 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
17990 is already in place.
17991 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
17992 Don't require being called during rtl expansion; If y operlaps r0,
17993 return 0.
17994 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
17995 (epiphany_expand_epilogue): Likewise.
17996
8afab237
JR
17997 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
17998 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 17999 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 18000
fa7707d6
JR
18001 * config/epiphany/constraints.md (CnL): New constraint.
18002 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
18003 * config/epiphany/predicates.md (add_operand): Allow 1024.
18004
5138e18d
JR
18005 * config/epiphany/epiphany.md (logical_op): New code iterator.
18006 (op_mnc): New code attribute.
18007 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
18008 (mov_f+1, mov_f+2): New peephole2 patterns.
18009
2ccc703d
JR
18010 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
18011 (cstoresi4): Also allow re-use of zero result when doing a NE
18012 comparison to a non-zero operand.
aefb0819 18013 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 18014
093ac0a5
JR
18015 * config/epiphany/epiphany.md (<insn_opname>v2si3):
18016 Use gen_addsi3_i / gen_subsi3_i.
18017
f223bb13
JJ
180182013-04-08 Jakub Jelinek <jakub@redhat.com>
18019
18020 PR c++/34949
18021 PR c++/50243
18022 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
18023 contain anything but clobbers, at most one __builtin_stack_restore,
18024 optionally debug stmts and final resx, and if it has at least one
18025 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
18026 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
18027 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
18028 which isn't defaut definition, remove them.
18029 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
18030 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
18031 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
18032 with MEM_REF LHS with SSA_NAME address.
18033
4481581f
JL
180342013-04-08 Jeff Law <law@redhat.com>
18035
18036 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 18037
451dabda
RB
180382013-04-08 Richard Biener <rguenther@suse.de>
18039
18040 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
18041 extra newline.
18042 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
18043 determined vector type.
18044 (vect_analyze_data_refs): Likewise.
18045 (vect_get_new_vect_var): Adjust.
18046 (vect_create_destination_var): Preserve SSA name versions.
18047 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
18048 not dump anything here.
18049
3b088b47
JR
180502013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
18051
18052 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
18053 Add member lr_slot_known.
18054 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
18055 if necessary.
18056 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
18057 Remove code that sets lr_slot_offset according to what a previous
18058 version of epiphany_emit_save_restore used to do.
18059 (epiphany_emit_save_restore): When doing an lr save or restore,
18060 set/verify lr_slot_known and lr_slot_offset.
18061
d8484d41
XQ
180622013-04-08 Xinyu Qi <xyqi@marvell.com>
18063
33159866
UB
18064 PR target/54338
18065 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
18066 in ALL_REGS.
18067
481be1c4
RB
180682013-04-08 Richard Biener <rguenther@suse.de>
18069
18070 * alias.c (find_base_term): Fix thinko in previous change.
18071
401f3a81
JJ
180722013-04-08 Jakub Jelinek <jakub@redhat.com>
18073
18074 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
18075 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
18076 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
18077 if possible to compute val.
18078 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
18079 For QImode integers don't require anything about precision. Use
18080 const_with_all_bytes_same to find out if the constant doesn't have
18081 repeated bytes in it.
18082
03ed99a8
AK
180832013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
18084
18085 * config/s390/s390.c (s390_expand_insv): Only accept insertions
18086 within mode size.
18087
781b2e62
MP
180882013-04-08 Marek Polacek <polacek@redhat.com>
18089
18090 PR rtl-optimization/48182
18091 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
18092 value to 1.
18093
27e430a2
JDA
180942013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18095
18096 PR target/55487
18097 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
18098 nuses, make sure we have a label.
18099
4902aa64
BS
181002013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18101
18102 PR target/56843
18103 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
18104 (rs6000_emit_swdiv_low_precision): Remove.
18105 (rs6000_emit_swdiv): Rewrite to handle between one and four
18106 iterations of Newton-Raphson generally; modify required number of
18107 iterations for some cases.
18108 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
18109
7bca81dc
SB
181102013-04-05 Steven Bosscher <steven@gcc.gnu.org>
18111
18112 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
18113 set-but-unused variable.
18114
18115 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
18116 basic blocks of released function bodies garbage-collectable.
18117
18118 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
18119 (struct rtl_opt_pass): Add TODO_df_finish.
18120
18121 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
18122
4542a38a
GY
181232013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18124
18125 * config/arm/constraints.md (q): New constraint.
18126 * config/arm/ldrdstrd.md: New file.
18127 * config/arm/arm.md (ldrdstrd.md) New include.
18128 (arm_movdi): Use "q" instead of "r" constraint
18129 for double-word memory access.
18130 (movdf_soft_insn): Likewise.
18131 * config/arm/vfp.md (movdi_vfp): Likewise.
18132 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 18133 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
18134 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
18135 (mem_ok_for_ldrd_strd): Likewise.
18136 (output_move_double): Update assertion.
18137
2385b218
GY
181382013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18139
18140 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
18141
75fe1cb5
GY
181422013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18143
18144 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
18145 define_insn_and_split.
18146 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
18147
dd660e8e
GY
181482013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18149
18150 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
18151 define_insn_and_split.
33159866 18152 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
18153 (shiftsi3_compare): New pattern.
18154 (rrx): New pattern.
18155 * config/arm/unspecs.md (UNSPEC_RRX): New.
18156
045e472c
GY
181572013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18158
18159 * config/arm/arm.md (negdi_extendsidi): New pattern.
18160 (negdi_zero_extendsidi): Likewise.
18161
3f3bf1a8
GY
181622013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18163
18164 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
18165 define_insn_and_split.
18166 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
18167 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
18168
b0b49556
GY
181692013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18170
18171 * config/arm/arm.md (arm_subdi3): Convert define_insn into
18172 define_insn_and_split.
18173 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
18174 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
18175
d633dd84
GY
181762013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18177
18178 * config/arm/arm.md (subsi3_carryin): New pattern.
18179 (subsi3_carryin_const): Likewise.
18180 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
18181 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
18182
f4499066
GY
181832013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18184
18185 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
18186
ceef6fd9
GY
181872013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
18188
18189 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 18190 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 18191
ddbdd8a7
KT
181922013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18193
18194 * config/arm/arm.c (arm_expand_builtin): Change fcode
18195 type to unsigned int.
18196
8456d78a
RR
181972013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18198
18199 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
18200
526c230f
ILT
182012013-04-04 Ian Lance Taylor <iant@google.com>
18202
33159866
UB
18203 * doc/standards.texi (Standards): The Go frontend supports the Go 1
18204 language standard.
526c230f 18205
3cfbe04d
SB
182062013-04-04 Steven Bosscher <steven@gcc.gnu.org>
18207
18208 PR middle-end/56729
18209 * df-scan.c (df_insn_delete): Disable failing assert.
18210
dfa3f8d0
KT
182112013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18212
18213 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
18214 New function prototype.
18215 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
18216 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
18217 (arm_builtin_vectorized_function): New function.
18218
f7837758
KT
182192013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18220
18221 * config/arm/arm_neon_builtins.def: New file.
18222 * config/arm/arm.c (neon_builtin_data): Move contents to
18223 arm_neon_builtins.def.
18224 (enum arm_builtins): Include neon builtin definitions.
18225 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 18226 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 18227
39c1b6db
MP
182282013-04-04 Marek Polacek <polacek@redhat.com>
18229
18230 PR tree-optimization/48186
18231 * predict.c (maybe_hot_frequency_p): Return false if
18232 HOT_BB_FREQUENCY_FRACTION is 0.
18233 (cgraph_maybe_hot_edge_p): Likewise.
18234
314f64eb
RB
182352013-04-04 Richard Biener <rguenther@suse.de>
18236
18237 PR tree-optimization/56826
18238 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
18239 more accurately.
18240
51a905b2
RB
182412013-04-04 Richard Biener <rguenther@suse.de>
18242
18243 PR tree-optimization/56213
18244 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 18245 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 18246
f1bf4f3a
RB
182472013-04-04 Richard Biener <rguenther@suse.de>
18248
18249 PR tree-optimization/56837
18250 * tree-loop-distribution.c (classify_partition): For non-zero
18251 values require that the value has the same precision as its
18252 mode to be useful as memset value.
18253
0bca7ded
NC
182542013-04-03 Nick Clifton <nickc@redhat.com>
18255
33159866 18256 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
18257 (fmssf4): Use fmsf.s on E3V5 architectures.
18258 (fnmasf4): Use fnmaf.s on E3V5 architectures.
18259 (fnmssf4): Use fnmsf.s on E3V5 architectures.
18260
b4019227
JL
182612013-04-03 Jeff Law <law@redhat.com>
18262
18263 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
18264 (lra-eliminations.o): Likewise.
18265
f57ddb5b
TJ
182662013-04-03 Teresa Johnson <tejohnson@google.com>
18267
18268 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 18269 compute_working_sets here from profile.c.
f57ddb5b 18270 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
18271 (gcov_working_set_t): Moved typedef here from basic-block.h
18272 (compute_working_set): Declare.
f57ddb5b
TJ
18273 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
18274 (get_working_sets): Renamed from compute_working_set,
33159866 18275 replace most of body with call to new compute_working_sets.
f57ddb5b 18276 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
18277 to get_working_sets.
18278 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 18279 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 18280 to get_working_sets.
f57ddb5b
TJ
18281 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
18282 * gcov-dump.c (dump_working_sets): New function.
18283
12211b99 182842013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5e0919f1
KZ
18285
18286 * hwint.c (sext_hwi, zext_hwi): New functions.
18287 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
18288 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
18289 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
18290 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
18291 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
18292 (sext_hwi, zext_hwi): New functions.
0bca7ded 18293
be672e08
JL
182942013-04-03 Jeff Law <law@redhat.com>
18295
18296 PR tree-optimization/56799
33159866
UB
18297 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
18298 back test for widening conversion erroneously dropped in prior change.
be672e08 18299
9d821fa5
KT
183002013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18301
18302 PR target/56809
18303 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
18304 instead of next_real_insn.
18305
71c581e7
MP
183062013-04-03 Marek Polacek <polacek@redhat.com>
18307
18308 PR sanitizer/55702
33159866 18309 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 18310
4a32ef80
KT
183112013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18312
18313 PR target/56809
18314 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
18315 next_real_insn.
18316 (thumb1_output_casesi): Likewise.
18317 (thumb2_output_casesi): Likewise.
18318
1b2253d4
RB
183192013-04-03 Richard Biener <rguenther@suse.de>
18320
18321 PR tree-optimization/56817
18322 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
18323 Split out ...
18324 (tree_unroll_loops_completely_1): ... new function to manually
18325 walk the loop tree, properly defering outer loops of unrolled
18326 loops to later iterations.
18327
38000232
MG
183282013-04-03 Marc Glisse <marc.glisse@inria.fr>
18329
18330 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
18331 (vectorizable_load): Likewise.
18332 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
18333 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
18334
3fa35298
MG
183352013-04-03 Marc Glisse <marc.glisse@inria.fr>
18336
18337 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
18338 BIT_FIELD_REF.
18339
b3d45ff0
UW
183402013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18341
18342 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
18343
ec9202a8
BC
183442013-04-03 Bin Cheng <bin.cheng@arm.com>
18345
18346 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
18347
6805bd36
MG
183482013-04-03 Marc Glisse <marc.glisse@inria.fr>
18349
18350 PR tree-optimization/56790
33159866
UB
18351 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
18352 folding.
6805bd36 18353
da694a77
MG
183542013-04-03 Marc Glisse <marc.glisse@inria.fr>
18355
18356 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
18357 Handle VEC_MERGE.
18358 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
18359 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
18360 equal arguments.
18361
4e7d7b3d
JJ
183622013-04-03 Jakub Jelinek <jakub@redhat.com>
18363
18364 PR c/19449
18365 * tree.h (force_folding_builtin_constant_p): New decl.
18366 * builtins.c (force_folding_builtin_constant_p): New variable.
18367 (fold_builtin_constant_p): Fold immediately also if
18368 force_folding_builtin_constant_p.
18369
e6c9d234
RB
183702013-04-03 Richard Biener <rguenther@suse.de>
18371
18372 PR tree-optimization/56812
18373 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
18374 DRs of the same interleaving chain are independent.
18375
984d07dd
JM
183762013-04-02 Jason Merrill <jason@redhat.com>
18377
18378 * gdbinit.in (pbb): Use debug fn.
18379
622849c9
LC
183802013-04-02 Lawrence Crowl <crowl@google.com>
18381
18382 * sese.h (struct ivtype_map_elt_s): Remove unused.
18383 (extern debug_ivtype_map): Remove unused.
18384 (extern eq_ivtype_map_elts): Remove unused.
18385 * sese.c (debug_ivtype_map): Removed unused.
18386 (debug_ivtype_map_1): Removed unused.
18387 (debug_ivtype_elt): Remove unused.
18388 (eq_ivtype_map_elts): Remove unused.
18389
18390
82c0e1a0
KT
183912013-04-02 Kai Tietz <ktietz@redhat.com>
18392
18393 PR target/52790
18394 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
18395 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
18396 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
18397 function.
82c0e1a0
KT
18398 (legitimize_pe_coff_symbol): Likewise.
18399 (is_imported_p): New helper-function.
18400 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
18401 for Windows x64 targets.
18402 (ix86_expand_prologue): Optimize for pe-coff targets.
18403 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
18404 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
18405 medium/large code-model.
18406 (legitimize_pic_address): Likewise.
18407 (legitimize_tls_address): Likewise.
18408 (ix86_expand_call): Likewise.
18409 (x86_output_mi_thunk): Likewise.
18410 (get_dllimport_decl): Add new beimport argument.
18411 (construct_plt_address): Don't assert for x64 pe-coff targets.
18412 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
18413 targets.
18414 (SYMBOL_FLAG_STUBVAR): New macro.
18415 (SYMBOL_REF_STUBVAR_P): Likewise.
18416 * config/i386/winnt.c (stub_list): New structure.
18417 (stub_head): New local variable.
18418 (i386_pe_record_stub): New function.
18419 (i386_pe_file_end): Emit refptr-stubs.
18420
5d751b0c
JJ
184212013-04-02 Jakub Jelinek <jakub@redhat.com>
18422
09bb4c99
JJ
18423 PR rtl-optimization/56745
18424 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
18425 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
18426
a1d8947a
JJ
18427 PR c++/34949
18428 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
18429 and both of them are MEM_REFs, just compare first argument for
18430 equality and attempt to deal even with differing offsets.
18431
5d751b0c
JJ
18432 PR c++/34949
18433 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
18434 of gimple_clobber_p to be MEM_REF.
18435 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
18436 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
18437 after gimplification.
18438 * asan.c (get_mem_ref_of_assignment): Don't instrument
18439 gimple_clobber_p stmts.
18440 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
18441 gimple_clobber_p stmt if they have MEM_REF lhs and
18442 are dead because of another gimple_clobber_p stmt.
18443 * tree-ssa-live.c (clear_unused_block_pointer): Treat
18444 gimple_clobber_p stmts like debug stmts.
18445 (remove_unused_locals): Remove clobbers with MEM_REF lhs
18446 that refer to unused VAR_DECLs or uninitialized values.
18447 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
18448 gimple_clobber_p stmts if they refer to removed parameters.
18449 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
18450 formatting.
18451
e594716a
UB
184522013-04-02 Uros Bizjak <ubizjak@gmail.com>
18453
18454 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
18455 using SWI48 mode attribute.
18456
7a80735b
WM
184572013-04-02 Wei Mi <wmi@google.com>
18458
18459 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
18460 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
18461 *<rotate_insn><mode>3_mask in i386.md.
18462
f423a9e4
AI
184632013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
18464
18465 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
18466
90eb75f2
RB
184672013-04-02 Richard Biener <rguenther@suse.de>
18468
18469 PR tree-optimization/56778
18470 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
18471 Runtime alias tests are not supported for gather loads.
18472 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
18473 stmts referenced from SSA operands before updating SSA form.
18474
d8c69a92
IC
184752013-04-02 Ian Caulfield <ian.caulfield@arm.com>
18476 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18477
18478 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
18479 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
18480 * config/arm/cortex-a53.md: New file.
18481 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
18482 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
18483 * config/arm/arm.c (arm_issue_rate): Likewise.
18484 * config/arm/arm-tune.md: Regenerate
18485 * config/arm/arm-tables.opt: Regenerate.
18486 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 18487
239eb04c
ZC
184882013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
18489
18490 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
18491 non-static link.
18492
c902d3c8
SN
184932013-04-02 Sofiane Naci <sofiane.naci@arm.com>
18494
d8c69a92
IC
18495 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
18496 scalar load/store operations using B/H registers.
c902d3c8
SN
18497 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
18498
051d0e2f
SN
184992013-04-02 Sofiane Naci <sofiane.naci@arm.com>
18500
18501 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
18502 scalar move.
18503 * config/aarch64/aarch64.c
18504 (aarch64_simd_scalar_immediate_valid_for_move): New.
18505 * config/aarch64/aarch64-protos.h
18506 (aarch64_simd_scalar_immediate_valid_for_move): New.
18507 * config/aarch64/constraints.md (Dh, Dq): New.
18508 * config/aarch64/iterators.md (hq): New.
18509
0ee1e3d9
EB
185102013-04-02 Eric Botcazou <ebotcazou@adacore.com>
18511
18512 * reorg.c (get_branch_condition): Deal with conditional returns.
18513 (fill_simple_delay_slots): Remove dead code dealing with jumps.
18514
136fb3f7
WM
185152013-04-01 Wei Mi <wmi@google.com>
18516
18517 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
18518 Truncate operand 2 using %b asm operand modifier.
18519 (*<shift_insn><mode>3_mask): Ditto.
18520 (*<rotate_insn><mode>3_mask): Ditto.
18521
6388c738
SB
185222013-04-01 Steven Bosscher <steven@gcc.gnu.org>
18523
18524 PR middle-end/56798
18525 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
18526
f7a4d826
KK
185272013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
18528
18529 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
18530 of next_real_insn.
18531 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
18532
4b943a49
LC
185332013-03-30 Lawrence Crowl <crowl@google.com>
18534
18535 * dse.c (clear_alias_sets): Remove never set.
18536 (disqualified_clear_alias_sets): Remove never set.
18537 (clear_alias_mode_pool): Remove never set.
18538 (dse_step0): Remove condition that is never true.
18539 (canon_address): Remove condition that is never true.
18540 (dse_step7): Remove condition that is never true.
18541 (rest_of_handle_dse): Remove condition that is never true.
18542 (rest_of_handle_dse::did_global): Remove never read from above.
18543 (dse_step2_spill): Remove never called from above.
18544 (dse_step5_spill): Remove never called from above.
18545
39718607
SB
185462013-03-30 Steven Bosscher <steven@gcc.gnu.org>
18547
da5c6bde
SB
18548 * doc/md.texi (Standard Names) <casesi>: Update documentation for
18549 JUMP_TABLE_DATA changes.
18550 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
18551 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
18552 (Insns) <jump_table_data>: New entry.
18553 * doc/tm.texi: Regenerate.
18554
39718607
SB
18555 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
18556
18557 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
18558 for table jump at the end of a basic block using tablejump_p.
18559 * targhooks.c (default_invalid_within_doloop): Likewise.
18560 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
18561 target hook implementation that is identical to the default hook.
18562 (rs6000_invalid_within_doloop): Remove.
18563
18564 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
18565 unused variable from tablejump_p call.
18566
18567 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
18568 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
18569 (INSN_DELETED_P): Likewise.
18570 (emit_jump_table_data): New prototype.
18571 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
18572 after 4th as unused.
18573 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
18574 * sched-vis.c (print_insn): Likewise.
18575 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
18576 insn for compatibility with back ends that use next_active_insn to
18577 identify jump table data.
18578 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
18579 (remove_insn): Likewise.
18580 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
18581 to be emitted.
18582 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
18583 (emit_jump_table_data): New function.
18584
18585 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
18586 basic block, a JUMP_TABLE_DATA never is.
18587 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
18588 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
18589 off from code handling real insns.
18590 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
18591 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
18592 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
18593 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
18594 is not a NONDEBUG_INSN_P.
18595 * ira-costs.c (scan_one_insn): Likewise.
18596 * jump.c (mark_all_labels): Likewise.
18597 (mark_jump_label_1): Likewise.
18598 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
18599 * lra.c (get_insn_freq): Expect all insns reaching here to be in
18600 a basic block.
18601 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
18602 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
18603 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
18604 JUMP_TABLE_DATA_P insns.
18605 (calculate_elim_costs_all_insns): Likewise.
18606 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
18607 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
18608 (delete_output_reload): Code style fixups.
18609 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
18610 insn flags on this non-insn.
18611 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
18612 as scheduling barriers, for pre-change compatibility.
18613 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
18614 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
18615
18616 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
18617 redundant JUMP_TABLE_DATA_P test.
18618 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
18619 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
18620 (frv_for_each_packet): Likewise.
18621 * config/i386/i386.c (min_insn_size): Likewise.
18622 (ix86_avoid_jump_mispredicts): Likewise.
18623 * config/m32r/m32r.c (m32r_is_insn): Likewise.
18624 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
18625 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
18626 (mips16_insn_length): Robustify.
18627 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
18628 (mips16_split_long_branches): Likewise.
18629 * config/pa/pa.c (pa_combine_instructions): Likewise.
18630 * config/rs6000/rs6000.c (get_next_active_insn): Treat
18631 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
18632 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
18633 as contributing to pool range lengths.
18634 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
18635 Remove redundant JUMP_TABLE_DATA_P test.
18636 (sh_loop_align): Likewise.
18637 (split_branches): Likewise.
18638 (sh_insn_length_adjustment): Likewise.
18639 * config/spu/spu.c (get_branch_target): Likewise.
18640
0208f7da
JH
186412013-03-29 Jan Hubicka <jh@suse.cz>
18642
18643 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
18644 gcov streaming; stream hot bb threshold to ltrans.
18645 * predict.c (get_hot_bb_threshold): Break out from ....
18646 (maybe_hot_count_p): ... here.
18647 (set_hot_bb_threshold): New function.
18648 * lto-section-in.c (lto_section_name): Add profile.
18649 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
18650 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
18651 and data-streamer.h
18652 (histogram_entry): New structure.
18653 (histogram, histogram_pool): New global vars.
18654 (histogram_hash): New structure.
18655 (histogram_hash::hash): New method.
18656 (histogram_hash::equal): Likewise.
18657 (account_time_size): New function.
18658 (cmp_counts): New function.
18659 (dump_histogram): New function.
18660 (ipa_profile_generate_summary): New function.
18661 (ipa_profile_write_summary): New function.
18662 (ipa_profile_read_summary): New function.
18663 (ipa_profile): Decide on threshold.
e594716a
UB
18664 (pass_ipa_profile): Add ipa_profile_write_summary and
18665 ipa_profile_read_summary.
0208f7da
JH
18666 * Makefile.in (ipa.o): Update dependencies.
18667 * lto-streamer.h (LTO_section_ipa_profile): New section.
18668
5a6ccc94
GDR
186692013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
18670
18671 * tree.h (VAR_P): New.
18672
39385fa6
PC
186732013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
18674
18675 PR lto/56777
18676 * doc/invoke.texi ([-fwhole-program]): Fix typo.
18677
34f0d87a
SB
186782013-03-29 Steven Bosscher <steven@gcc.gnu.org>
18679
18680 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
18681 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
18682 (control_flow_insn_p): Likewise.
18683 * cfgrtl.c (duplicate_insn_chain): Likewise.
18684 * final.c (get_attr_length_1): Likewise.
18685 (shorten_branches): Likewise.
18686 (final_scan_insn): Likewise.
18687 * function.c (instantiate_virtual_regs): Likewise.
18688 * gcse.c (insert_insn_end_basic_block): Likewise.
18689 * ira-costs.c (scan_one_insn): Likewise.
18690 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
18691 * lra.c (check_rtl): Likewise.
18692 * reload1.c (elimination_costs_in_insn): Likewise.
18693 * reorg.c (follow_jumps): Likewise.
18694
18695 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
18696 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
18697 (thumb_far_jump_used_p): Likewise.
18698 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
18699 (workaround_speculation): Likewise.
18700 (add_sched_insns_for_speculation): Likewise.
18701 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
18702 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
18703 (frv_for_each_packet): Likewise.
18704 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
18705 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
18706 (final_emit_insn_group_barriers): Likewise.
18707 * config/m32r/m32r.c (m32r_is_insn): Likewise.
18708 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
18709 (mips16_insn_length): Likewise.
18710 * config/pa/pa.c (pa_reorg): Likewise.
18711 (pa_combine_instructions): Likewise.
18712 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
18713 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
18714 (sh_reorg): Likewise.
18715 (split_branches): Likewise.
18716 * config/spu/spu.c (get_branch_target): Likewise.
18717
18718 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
18719 JUMP_TABLE_DATA_P.
18720
4ac761b0
KY
187212013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
18722
39385fa6 18723 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
18724 Fix declaration name.
18725
58a49189
LC
187262013-03-28 Lawrence Crowl <crowl@google.com>
18727
18728 * graphds.h (struct graph.indicies): Remove unused.
18729 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
18730 (SCOP_ORIGINAL_PDDRS): Remove unused.
18731 * sese.h (extern insert_loop_close_phis): Removed unused.
18732 (extern insert_guard_phis): Removed unused.
18733 (extern ivtype_map_elt_info): Removed unused.
18734 (new_ivtype_map_elt): Removed unused.
18735 * sese.c (ivtype_map_elt_info): Removed unused.
18736
7b3b6ae4
LC
187372013-03-28 Lawrence Crowl <crowl@google.com>
18738
18739 * Makefile.in: Add several missing include dependences.
18740 (DUMPFILE_H): New.
18741 (test-dump.o): New. This object is not added to any executable,
18742 but is present for ad-hoc testing.
18743 * bitmap.c
18744 (debug (const bitmap_head_def &)): New.
18745 (debug (const bitmap_head_def *)): New.
18746 * bitmap.h
18747 (extern debug (const bitmap_head_def &)): New.
18748 (extern debug (const bitmap_head_def *)): New.
18749 * cfg.c
18750 (debug (edge_def &)): New.
18751 (debug (edge_def *)): New.
18752 * cfghooks.c
18753 (debug (basic_block_def &)): New.
18754 (debug (basic_block_def *)): New.
18755 * dumpfile.h
18756 (dump_node (const_tree, int, FILE *)): Correct source file.
18757 * dwarf2out.c
18758 (debug (die_struct &)): New.
18759 (debug (die_struct *)): New.
18760 * dwarf2out.h
18761 (extern debug (die_struct &)): New.
18762 (extern debug (die_struct *)): New.
18763 * gimple-pretty-print.c
18764 (debug (gimple_statement_d &)): New.
18765 (debug (gimple_statement_d *)): New.
18766 * gimple-pretty-print.h
18767 (extern debug (gimple_statement_d &)): New.
18768 (extern debug (gimple_statement_d *)): New.
18769 * ira-build.c
18770 (debug (ira_allocno_copy &)): New.
18771 (debug (ira_allocno_copy *)): New.
18772 (debug (ira_allocno &)): New.
18773 (debug (ira_allocno *)): New.
18774 * ira-int.h
18775 (extern debug (ira_allocno_copy &)): New.
18776 (extern debug (ira_allocno_copy *)): New.
18777 (extern debug (ira_allocno &)): New.
18778 (extern debug (ira_allocno *)): New.
18779 * ira-lives.c
18780 (debug (live_range &)): New.
18781 (debug (live_range *)): New.
18782 * lra-int.h
18783 (debug (lra_live_range &)): New.
18784 (debug (lra_live_range *)): New.
18785 * lra-lives.c
18786 (debug (lra_live_range &)): New.
18787 (debug (lra_live_range *)): New.
18788 * omega.c
18789 (debug (omega_pb_d &)): New.
18790 (debug (omega_pb_d *)): New.
18791 * omega.h
18792 (extern debug (omega_pb_d &)): New.
18793 (extern debug (omega_pb_d *)): New.
18794 * print-rtl.c
18795 (debug (const rtx_def &)): New.
18796 (debug (const rtx_def *)): New.
18797 * print-tree.c
18798 (debug_tree (tree): Move within file.
18799 (debug_raw (const tree_node &)): New.
18800 (debug_raw (const tree_node *)): New.
18801 (dump_tree_via_hooks (const tree_node *, int)): New.
18802 (debug (const tree_node &)): New.
18803 (debug (const tree_node *)): New.
18804 (debug_verbose (const tree_node &)): New.
18805 (debug_verbose (const tree_node *)): New.
18806 (debug_head (const tree_node &)): New.
18807 (debug_head (const tree_node *)): New.
18808 (debug_body (const tree_node &)): New.
18809 (debug_body (const tree_node *)): New.
18810 (debug_vec_tree (tree): Move and reimplement in terms of dump.
18811 (debug (vec<tree, va_gc> &)): New.
18812 (debug (vec<tree, va_gc> *)): New.
18813 * rtl.h
18814 (extern debug (const rtx_def &)): New.
18815 (extern debug (const rtx_def *)): New.
18816 * sbitmap.c
18817 (debug_raw (simple_bitmap_def &)): New.
18818 (debug_raw (simple_bitmap_def *)): New.
18819 (debug (simple_bitmap_def &)): New.
18820 (debug (simple_bitmap_def *)): New.
18821 * sbitmap.h
18822 (extern debug (simple_bitmap_def &)): New.
18823 (extern debug (simple_bitmap_def *)): New.
18824 (extern debug_raw (simple_bitmap_def &)): New.
18825 (extern debug_raw (simple_bitmap_def *)): New.
18826 * sel-sched-dump.c
18827 (debug (vinsn_def &)): New.
18828 (debug (vinsn_def *)): New.
18829 (debug_verbose (vinsn_def &)): New.
18830 (debug_verbose (vinsn_def *)): New.
18831 (debug (expr_def &)): New.
18832 (debug (expr_def *)): New.
18833 (debug_verbose (expr_def &)): New.
18834 (debug_verbose (expr_def *)): New.
18835 (debug (vec<rtx> &)): New.
18836 (debug (vec<rtx> *)): New.
18837 * sel-sched-dump.h
18838 (extern debug (vinsn_def &)): New.
18839 (extern debug (vinsn_def *)): New.
18840 (extern debug_verbose (vinsn_def &)): New.
18841 (extern debug_verbose (vinsn_def *)): New.
18842 (extern debug (expr_def &)): New.
18843 (extern debug (expr_def *)): New.
18844 (extern debug_verbose (expr_def &)): New.
18845 (extern debug_verbose (expr_def *)): New.
18846 (extern debug (vec<rtx> &)): New.
18847 (extern debug (vec<rtx> *)): New.
18848 * sel-sched-ir.h
18849 (_list_iter_cond_expr): Make inline instead of static.
18850 * sreal.c
18851 (debug (sreal &)): New.
18852 (debug (sreal *)): New.
18853 * sreal.h
18854 (extern debug (sreal &)): New.
18855 (extern debug (sreal *)): New.
18856 * tree.h
18857 (extern debug_raw (const tree_node &)): New.
18858 (extern debug_raw (const tree_node *)): New.
18859 (extern debug (const tree_node &)): New.
18860 (extern debug (const tree_node *)): New.
18861 (extern debug_verbose (const tree_node &)): New.
18862 (extern debug_verbose (const tree_node *)): New.
18863 (extern debug_head (const tree_node &)): New.
18864 (extern debug_head (const tree_node *)): New.
18865 (extern debug_body (const tree_node &)): New.
18866 (extern debug_body (const tree_node *)): New.
18867 (extern debug (vec<tree, va_gc> &)): New.
18868 (extern debug (vec<tree, va_gc> *)): New.
18869 * tree-cfg.c
18870 (debug (struct loop &)): New.
18871 (debug (struct loop *)): New.
18872 (debug_verbose (struct loop &)): New.
18873 (debug_verbose (struct loop *)): New.
18874 * tree-dump.c: Add header dependence.
18875 * tree-flow.h
18876 (extern debug (struct loop &)): New.
18877 (extern debug (struct loop *)): New.
18878 (extern debug_verbose (struct loop &)): New.
18879 (extern debug_verbose (struct loop *)): New.
18880 * tree-data-ref.c
18881 (debug (data_reference &)): New.
18882 (debug (data_reference *)): New.
18883 (debug (vec<data_reference_p> &)): New.
18884 (debug (vec<data_reference_p> *)): New.
18885 (debug (vec<ddr_p> &)): New.
18886 (debug (vec<ddr_p> *)): New.
18887 * tree-data-ref.h
18888 (extern debug (data_reference &)): New.
18889 (extern debug (data_reference *)): New.
18890 (extern debug (vec<data_reference_p> &)): New.
18891 (extern debug (vec<data_reference_p> *)): New.
18892 (extern debug (vec<ddr_p> &)): New.
18893 (extern debug (vec<ddr_p> *)): New.
18894 * tree-ssa-alias.c
18895 (debug (pt_solution &)): New.
18896 (debug (pt_solution *)): New.
18897 * tree-ssa-alias.h
18898 (extern debug (pt_solution &)): New.
18899 (extern debug (pt_solution *)): New.
18900 * tree-ssa-alias.c
18901 (debug (_var_map &)): New.
18902 (debug (_var_map *)): New.
18903 (debug (tree_live_info_d &)): New.
18904 (debug (tree_live_info_d *)): New.
18905 * tree-ssa-alias.h
18906 (extern debug (_var_map &)): New.
18907 (extern debug (_var_map *)): New.
18908 (extern debug (tree_live_info_d &)): New.
18909 (extern debug (tree_live_info_d *)): New.
18910
be77e1e5
JH
189112013-03-28 Jan Hubicka <jh@suse.cz>
18912
18913 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
18914
777e6976
IB
189152013-03-28 Ian Bolton <ian.bolton@arm.com>
18916
18917 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
18918 record only when desired or required.
18919
9cd347ae
UB
189202013-03-28 Uros Bizjak <ubizjak@gmail.com>
18921
18922 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
18923 *vec_extractv2di_1_rex64. Use x64 isa attribute.
18924
33159866 189252013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
18926
18927 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
18928 (*andsi3_compare0_uxtw): New pattern.
18929 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
18930 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
18931
89ab31c1
JH
189322013-03-28 Jan Hubicka <jh@suse.cz>
18933
18934 * data-streamer-in.c (streamer_read_gcov_count): New function.
18935 * gimple-streamer-out.c: Include value-prof.h.
18936 (output_gimple_stmt): Output histogram.
18937 (output_bb): Use streamer_write_gcov_count.
18938 * value-prof.c: Include data-streamer.h
18939 (dump_histogram_value): Add HIST_TYPE_MAX.
18940 (stream_out_histogram_value): New function.
18941 (stream_in_histogram_value): New function.
18942 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
18943 (stream_out_histogram_value, stream_in_histogram_value): Declare.
18944 * data-streamer-out.c (streamer_write_gcov_count): New function.
18945 (streamer_write_gcov_count_stream): New function.
18946 * lto-cgraph.c (lto_output_edge): Update counter streaming.
18947 (lto_output_node): Likewise.
18948 (input_node, input_edge): Likewise.
18949 * lto-streamer-out.c (output_cfg): Update streaming.
18950 * lto-streamer-in.c (input_cfg): Likewise.
18951 * data-streamer.h (streamer_write_gcov_count,
18952 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
18953 * gimple-streamer-in.c: Include value-prof.h
18954 (input_gimple_stmt): Input histograms.
18955 (input_bb): Update profile streaming.
18956
e594716a 189572013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 18958
33159866 18959 * genmodes.c (emit_max_int): New function.
8697be17 18960 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
18961 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
18962 Added doc.
8697be17 18963 * machmode.def: Fixed comment.
89ab31c1 18964
e594716a 189652013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
18966
18967 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
18968 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
18969
74946978
MP
189702013-03-28 Marek Polacek <polacek@redhat.com>
18971 Richard Biener <rguenther@suse.de>
18972
18973 PR tree-optimization/56695
18974 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
18975 build signed result of a vector comparison.
18976 * tree-cfg.c (verify_gimple_comparison): Check that a result
18977 of a vector comparison has signed type.
18978
a64b9c26
RB
189792013-03-28 Richard Biener <rguenther@suse.de>
18980
18981 PR tree-optimization/37021
18982 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
18983 do not restrict gaps between groups.
18984 * tree-vect-stmts.c (vectorizable_load): Properly account for
18985 a gap between groups.
18986
a9dc2a2f
EB
189872013-03-28 Eric Botcazou <ebotcazou@adacore.com>
18988
18989 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
18990 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
18991 is not enabled.
18992
53cb97f9
GP
189932013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
18994
18995 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
18996 * doc/extend.texi (Named Address Spaces): Ditto.
18997 (Variable Attributes): Ditto.
18998
b802ae5c
KT
189992013-03-27 Kai Tietz <ktietz@redhat.com>
19000
eddae10a
KT
19001 * config.build: Add support for cygwin x64 target.
19002 * config.gcc: Likewise.
19003 * config.host: Likewise.
19004 * configure.ac: Likewise
19005 * configure: Regenerated.
b802ae5c 19006
371e77e3 190072013-03-27 Kai Tietz <ktietz@redhat.com>
8269de54
KT
19008
19009 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
19010 * config/i386/t-cygwin-w64: New file.
19011 * config/i386/cygwin-w64.h: New file.
19012 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
19013 and add support for x64-cygwin target.
19014 (CPP_SPEC): Likewise.
19015 (CXX_WRAP_SPEC_LIST): Undefine before define.
19016 (LIBGCJ_SONAME): Use 15 as version.
19017
f49b33cb
RB
190182013-03-27 Richard Biener <rguenther@suse.de>
19019
19020 PR tree-optimization/56716
19021 * tree-ssa-structalias.c (perform_var_substitution): Adjust
19022 dumping for ref nodes.
19023
b37a6ce5
MJ
190242013-03-27 Martin Jambor <mjambor@suse.cz>
19025
19026 PR tree-optimization/55334
19027 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
19028 restricted pointers to arrays.
19029
9469b9b2
GDR
190302013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
19031
19032 * Makefile.in (.SUFFIXES): Add .cc.
19033 (.c.o): Apply same recipe for implicit rule .cc.o.
19034
7d24f650
RB
190352013-03-27 Richard Biener <rguenther@suse.de>
19036
19037 PR tree-optimization/37021
19038 * tree-vect-data-refs.c (vect_check_strided_load): Allow
19039 REALPART/IMAGPART_EXPRs around the supported refs.
19040 * tree-ssa-structalias.c (find_func_aliases): Assume that
19041 floating-point values are not used to transfer pointers.
19042
2f251a05
AI
190432013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
19044
f43245d1
UB
19045 * target.def (TARGET_HAS_IFUNC_P): New target hook.
19046 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
19047 * doc/tm.texi: Regenerate.
19048 * targhooks.h (default_has_ifunc_p): New.
19049 * targhooks.c (default_has_ifunc_p): Ditto.
19050 * config/linux-protos.h: New file.
19051 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of this
19052 hook for linux which disables support of indirect functions in android.
19053 * config/linux-android.c: New file.
19054 * config/t-linux-android.c: Ditto.
19055 * config.gcc: Added new object file linux-android.o.
19056 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 19057 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
f43245d1 19058 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
19059 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
19060 doesn't support indirect functions.
19061 * configure: Regenerate.
19062
78b4e425
BC
190632013-03-27 Bin Cheng <bin.cheng@arm.com>
19064
19065 PR target/56102
19066 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
19067 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
19068 mult-word mode.
19069
a5ba7b92
AK
190702013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19071
19072 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
19073
be624986
TG
190742013-03-27 Terry Guo <terry.guo@arm.com>
19075
19076 * config/arm/arm-cores.def: Added core cortex-r7.
19077 * config/arm/arm-tune.md: Regenerated.
19078 * config/arm/arm-tables.opt: Regenerated.
19079 * doc/invoke.texi: Added entry for core cortex-r7.
19080
0a514f47
WL
190812013-03-27 Walter Lee <walt@tilera.com>
19082
19083 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
19084 double-decrement of next_scratch_regno.
19085
9332b0d2
WL
190862013-03-27 Walter Lee <walt@tilera.com>
19087
801d9b2a 19088 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
19089 input operands.
19090 (insn_v1mulus): Ditto.
19091 (insn_v2muls): Ditto.
19092
f54ea5dd
WL
190932013-03-27 Walter Lee <walt@tilera.com>
19094
e594716a 19095 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
19096 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
19097
bf60f4ca
WL
190982013-03-27 Walter Lee <walt@tilera.com>
19099
e594716a 19100 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
19101 (*sibcall_value): Ditto.
19102
e3b51eeb
WL
191032013-03-27 Walter Lee <walt@tilera.com>
19104
19105 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
19106 (insn_mnz_v8qi): ... this ...
19107 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
19108 vector equivalent.
19109 (insn_v<n>mnz): Replaced by ...
19110 (insn_v1mnz): ... this ...
19111 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
19112 equivalent.
19113 (insn_mz_<mode>): Replaced by ...
19114 (insn_mz_v8qi): ... this ...
19115 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
19116 vector equivalent.
19117 (insn_v<n>mz): Replaced by ...
19118 (insn_v1mz): ... this ...
19119 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
19120 equivalent.
19121
4fc7b145
EB
191222013-03-26 Eric Botcazou <ebotcazou@adacore.com>
19123
19124 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
19125
6f33817e
RM
191262013-03-26 Roland McGrath <mcgrathr@google.com>
19127
19128 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
19129 than fprintf with a non-constant, non-format string.
19130
93a4145b
UB
191312013-03-26 Uros Bizjak <ubizjak@gmail.com>
19132
19133 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
19134 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
19135 operand 0 predicate.
19136 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
19137 attribute. Use general_x64nomem_operand as operand 1 predicate.
19138 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
19139 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
19140 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
19141 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
19142 (mov<mode>_insv_1): Remove expander. Merge insn with
19143 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
19144 Use general_x64nomem_operand as operand 1 predicate.
19145 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
19146 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
19147 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
19148 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
19149 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
19150 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
19151 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
19152 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
19153 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
19154 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
19155 (general_x64nomem_operand): Ditto.
19156
c6a9ed5a 191572013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
19158
19159 * config/rtems.opt: Add -pthread option.
19160
31b0a960
RB
191612013-03-26 Richard Biener <rguenther@suse.de>
19162
93a4145b
UB
19163 * alias.c (find_base_term): Avoid redundant and not used recursion.
19164 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
19165 (true_dependence_1): Compute and pass base terms to base_alias_check.
19166 (write_dependence_p): Likewise.
19167 (may_alias_p): Likewise.
19168
79517551
SN
191692013-03-26 Sofiane Naci <sofiane.naci@arm.com>
19170
19171 * config/aarch64/aarch64.c (aarch64_classify_address): Support
19172 PC-relative load in SI modes and above only.
19173
a76213b9
XQ
191742013-03-26 Xinyu Qi <xyqi@marvell.com>
19175
19176 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
19177 * config/arm/iwmmxt.md (WCGR0): Update.
19178 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 19179
37ff9355
UB
191802013-03-26 Uros Bizjak <ubizjak@gmail.com>
19181
19182 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
19183 Use x64 and nox64 isa attributes.
19184
30b0317c
RB
191852013-03-26 Richard Biener <rguenther@suse.de>
19186
19187 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
19188 alignment computations and rely on get_object_alignment_1
19189 for the !TYPE_P case.
19190 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
19191
cbcdb140
WL
191922013-03-26 Walter Lee <walt@tilera.com>
19193
19194 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
19195 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
19196
dd884525 191972013-03-25 Jeff Law <law@redhat.com>
be672e08 19198
33159866
UB
19199 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
19200 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
19201 wrong version of prior patch.
19202
0051d3ec
WL
192032013-03-25 Walter Lee <walt@tilera.com>
19204
19205 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
19206 TILEGX_INSN_SHUFFLEBYTES1.
19207 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
19208 shufflebytes1.
19209 (tilegx_builtins): Ditto.
19210 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
19211
065a3605
WL
192122013-03-25 Walter Lee <walt@tilera.com>
19213
19214 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
19215 (floatunssisf2): New pattern.
19216 (floatsidf2): New pattern.
19217 (floatunssidf2): New pattern.
065a3605 19218
5b2a3c82
WL
192192013-03-25 Walter Lee <walt@tilera.com>
19220
19221 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
19222 tests for constraint J, K, N, P.
19223
192ea533
WL
192242013-03-25 Walter Lee <walt@tilera.com>
19225
19226 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
19227 Use indirect/pcrel encoding.
19228 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
19229 Ditto.
19230
855e0d0b
SE
192312013-03-25 Steve Ellcey <sellcey@mips.com>
19232
19233 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
19234 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
19235 * config/mips/mips.c (mips_option_override): Set IMADD default.
19236 * config/mips/mips.h (PTF_AVOID_IMADD): New.
19237 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
19238 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
19239 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
19240 * doc/invoke.texi (-mimadd/-mno-imadd): New.
19241
39e45653
JL
192422013-03-25 Jeff Law <law@redhat.com>
19243
19244 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
19245 slightly to avoid creating and folding useless trees. Simplify
19246 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
19247
7482c470
UB
192482013-03-25 Uros Bizjak <ubizjak@gmail.com>
19249
19250 * config/i386/i386.md (*zero_extendsidi2): Merge with
19251 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
19252 * config/i386/predicates.md (x86_64_zext_operand): Rename from
19253 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
19254 targets. Clarify comment.
19255
4a53743e
MJ
192562013-03-25 Martin Jambor <mjambor@suse.cz>
19257
19258 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
19259 pass-through jump functions differently.
19260 (ipa_read_jump_function): Likewise. Also use setter functions to set
19261 up jump functions.
19262
162712de
MJ
192632013-03-25 Martin Jambor <mjambor@suse.cz>
19264
19265 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
19266 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
19267 process it.
19268 (ipa_get_indirect_edge_target): New function.
19269 (devirtualization_time_bonus): New parameter known_aggs, pass it to
19270 ipa_get_indirect_edge_target. Update all callers.
19271 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
19272 ipa_get_indirect_edge_target_1 instead of calling
19273 ipa_get_indirect_edge_target.
19274 (create_specialized_node): Pass aggvlas to
19275 ipcp_discover_new_direct_edges.
19276
a5a4c20a
KT
192772013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19278
19279 * config/arm/arm.md (f_sels, f_seld): New types.
19280 (*cmov<mode>): New pattern.
19281 * config/arm/predicates.md (arm_vsel_comparison_operator): New
19282 predicate.
19283
f992b9fc
KT
192842013-03-25 Kai Tietz <ktietz@redhat.com>
19285
19286 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
19287 POSIX-printf for mingw-hosted builds.
19288
c16fd676
RB
192892013-03-25 Richard Biener <rguenther@suse.de>
19290
19291 PR middle-end/56694
19292 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
19293 must-not-throw stmt location.
19294
5ad29f12
KT
192952013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19296
19297 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
19298 Emit load-acquire versions when acq is true.
19299 (arm_emit_store_exclusive): Add rel parameter.
19300 Emit store-release versions when rel is true.
19301 (arm_split_compare_and_swap): Use acquire-release instructions
19302 instead.
19303 of barriers when appropriate.
19304 (arm_split_atomic_op): Likewise.
19305 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
19306 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
19307 (VUNSPEC_SLX): Likewise.
19308 (VUNSPEC_LDA): Likewise.
19309 (VUNSPEC_STL): Likewise.
19310 * config/arm/sync.md (atomic_load<mode>): New pattern.
19311 (atomic_store<mode>): Likewise.
19312 (arm_load_acquire_exclusive<mode>): Likewise.
19313 (arm_load_acquire_exclusivesi): Likewise.
19314 (arm_load_acquire_exclusivedi): Likewise.
19315 (arm_store_release_exclusive<mode>): Likewise.
19316
03a7dddb
CM
193172013-03-25 Catherine Moore <clm@codesourcery.com>
19318
19319 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
19320 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
19321 * config/mip/predicates.md (lwsp_swsp_operand,
19322 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
19323 sb16_operand, db4_operand, db7_operand, ib3_operand,
19324 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
19325 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
19326 andi16_operand): New predicates.
19327 * config/mips/mips.md (compression): New attribute.
19328 (enabled): New attribute.
19329 (length): Consider compression in computing length.
19330 (shift_compression): New code attribute.
19331 (*add<mode>3): New operands. Record compression.
19332 (sub<mode>3): Likewise.
19333 (one_cmpl<mode>2): Likewise.
19334 (*and<mode>3): Likewise.
19335 (*ior<mode>3): Likewise.
19336 (unnamed pattern for xor): Likewise.
19337 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
19338 (*<optab><mode>3): Likewise.
19339 (*mov<mode>_internal: Likewise.
19340 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
19341 (mips_unsigned_immediate_p): New.
19342 (umips_lwsp_swsp_address_p): New.
19343 (m16_based_address_p): New.
19344 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
19345 (mips_unsigned_immediate_p): New prototype.
19346 (lwsp_swsp_address_p): New prototype.
19347 (m16_based_address_p): New prototype.
19348 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
19349 (mips_signed_immediate_p): New function.
19350 (m16_based_address_p): New function.
19351 (lwsp_swsp_address_p): New function.
19352 (mips_print_operand_punctuation): Recognize short delay slot insns
19353 for microMIPS.add<mode>3"
19354
f35c297f 193552013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 19356
f35c297f
KT
19357 PR target/56720
19358 * config/arm/iterators.md (v_cmp_result): New mode attribute.
19359 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
19360
051b9446
RB
193612013-03-25 Richard Biener <rguenther@suse.de>
19362
19363 PR tree-optimization/56689
19364 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
19365 any edge.
19366
374001cb
RB
193672013-03-25 Richard Biener <rguenther@suse.de>
19368
19369 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
19370 of bitmap.
19371 (memory_references): Likewise.
19372 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
19373 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
19374 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
19375 (gather_mem_refs_in_loops): Fold into ...
19376 (analyze_memory_references): ... this. Move initialization
19377 to tree_ssa_lim_initialize.
19378 (fill_always_executed_in): Rename to ...
19379 (fill_always_executed_in_1): ... this.
19380 (fill_always_executed_in): Move contains_call computation to
19381 this new function from ...
19382 (tree_ssa_lim_initialize): ... here.
19383 (tree_ssa_lim): Call fill_always_executed_in.
19384
57895947
EB
193852013-03-25 Eric Botcazou <ebotcazou@adacore.com>
19386
19387 * postreload.c (reload_combine): Fix code detecting returns.
19388
1e1b18c1
EB
193892013-03-25 Eric Botcazou <ebotcazou@adacore.com>
19390
19391 * function.c (emit_use_return_register_into_block): On cc0 targets,
19392 do not emit the sequence between cc0 setter and user.
19393
9216baf1
KT
193942013-03-25 Kai Tietz <ktietz@redhat.com>
19395
1e1b18c1
EB
19396 * config/i386/predicates.md (local_symbolic_operand): Interpret
19397 dll-imported symbols as none-local.
9216baf1 19398
76421b44
RB
193992013-03-25 Richard Biener <rguenther@suse.de>
19400
19401 * tree-ssa-loop-im.c (struct depend): Remove.
19402 (struct lim_aux_data): Make depends a vec of gimples.
19403 (free_lim_aux_data): Adjust.
19404 (add_dependency): Likewise.
19405 (set_level): Likewise.
19406
d154bfa2
RB
194072013-03-25 Richard Biener <rguenther@suse.de>
19408
19409 PR middle-end/56434
19410 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
19411 the pointer returned by calls with ECF_MALLOC set.
19412
2cd9804e
UB
194132013-03-24 Uros Bizjak <ubizjak@gmail.com>
19414
acef5fe0
UB
19415 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
19416
194172013-03-24 Uros Bizjak <ubizjak@gmail.com>
19418
19419 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
19420 using MMXMODE mode iterator.
19421 (*move<mode>_internal): Merge with *movv2sf_internal and
19422 *movv2sf_internal_rex64 using MMXMODE mode iterator.
19423
225ccc68
SB
194242013-03-23 Steven Bosscher <steven@gcc.gnu.org>
19425
85c0f02d
SB
19426 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
19427 (record_last_mem_set_info): Likewise.
19428
225ccc68
SB
19429 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
19430 of XNEWVEC followed by memset.
19431 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
19432
b64925dc
SB
194332013-03-23 Steven Bosscher <steven@gcc.gnu.org>
19434
19435 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19436 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
19437 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
19438 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
19439 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
19440 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
19441 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
19442 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
19443 BARRIER_P instead of GET_CODE.
19444
b9aaf52e
EB
194452013-03-23 Eric Botcazou <ebotcazou@adacore.com>
19446
19447 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
19448 inaccuracy in the probing code.
19449
19450 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
19451 (ctrapdi4): Likewise.
19452
66de4d7c
EB
194532013-03-23 Eric Botcazou <ebotcazou@adacore.com>
19454
19455 * calls.c (expand_call): Add missing guard to code handling return
19456 of non-BLKmode structures in MSB.
19457 * function.c (expand_function_end): Likewise.
19458
4f25c8fb
EB
194592013-03-23 Eric Botcazou <ebotcazou@adacore.com>
19460
19461 * combine.c (try_combine): Adjust comment. Do not add the set of
19462 insn #0 if the destination indirectly is set or dies in insn #2.
19463 Tidy up code to distribute a new note.
19464
23b7850d
UB
194652013-03-22 Uros Bizjak <ubizjak@gmail.com>
19466
19467 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
19468 also for alternatives 16 and 17.
19469
bed852cf
UB
194702013-03-22 Uros Bizjak <ubizjak@gmail.com>
19471
19472 * config/i386/sse.md (*mov<mode>_internal): Merge with
19473 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
19474 Emit insn template depending on type attribute. Use
19475 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
19476 movd instead of movq mnemonic for interunit moves. Rewrite mode
19477 attribute calculation. Remove unit attribute calculation.
19478 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
19479 Set prefix_data16 attribute for DImode ssemov types.
19480 Use Ym instead of y for SSE-MMX conversion alternatives.
19481 Reorder operand constraints.
19482
1e8a7937
SB
194832013-03-22 Steven Bosscher <steven@gcc.gnu.org>
19484
19485 * df.h (df_insn_delete): Adjust prototype.
19486 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
19487 and let it decide whether mark the basic block dirty.
19488 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
19489 * df-scan.c (df_insn_info_delete): New helper function, split
19490 off from df_insn_delete.
19491 (df_scan_free_bb_info): Use it.
19492 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
19493 Likewise.
19494 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
19495 that the insn is actually an insn and it has a non-NULL basic block.
19496 Do not mark basic block dirty if only deleting a DEBUG_INSN.
19497
e14d094c
RB
194982013-03-22 Richard Biener <rguenther@suse.de>
19499
19500 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
19501 dep_ref members.
19502 (mem_ref_alloc): Do not allocate them.
19503 (refs_independent_p): Do not query or maintain a cache.
19504
e9cf7316
RB
195052013-03-22 Richard Biener <rguenther@suse.de>
19506
19507 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
19508 (gather_mem_refs_in_loops): Do not compute it.
19509 (analyze_memory_references): Do not allocate it.
19510 (tree_ssa_lim_finalize): Do not free it.
19511 (for_all_locs_in_loop): Do not query all_refs_in_loop.
19512
f046e81b
RB
195132013-03-22 Richard Biener <rguenther@suse.de>
19514
19515 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 19516
a05c0ddf
IB
195172013-03-22 Ian Bolton <ian.bolton@arm.com>
19518
19519 * config/aarch64/aarch64.c (aarch64_print_operand): New
19520 format specifier for printing a constant in hex.
19521 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
19522 format specifier for printing second operand.
19523
c00217fc
RB
195242013-03-22 Richard Biener <rguenther@suse.de>
19525
19526 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
19527 bitmaps.
19528 (gather_mem_refs_in_loops): Perform store accumulation here.
19529 (create_vop_ref_mapping_loop): Remove.
19530 (create_vop_ref_mapping): Likewise.
19531 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 19532 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
19533 (record_indep_loop): Remove.
19534 (record_dep_loop): New function.
19535 (ref_indep_loop_p_1): Adjust to only walk over references
19536 in the loop, not its subloops.
19537 (ref_indep_loop_p): Rename to ...
19538 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
19539 maintaining a more fine-grained cache.
19540 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
19541 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
19542
15d19bf8
RB
195432013-03-22 Richard Biener <rguenther@suse.de>
19544
19545 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
19546 (struct mem_ref): Make accesses_in_loop a vec of a vec of
19547 aggregate mem_ref_loc.
19548 (free_mem_ref_locs): Inline into ...
19549 (memref_free): ... this and adjust.
19550 (mem_ref_alloc): Adjust.
19551 (mem_ref_locs_alloc): Remove.
19552 (record_mem_ref_loc): Adjust.
19553 (get_all_locs_in_loop): Rewrite into ...
19554 (for_all_locs_in_loop): ... this iterator.
19555 (rewrite_mem_ref_loc): New functor.
19556 (rewrite_mem_refs): Use for_all_locs_in_loop.
19557 (sm_set_flag_if_changed): New functor.
19558 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
19559 (ref_always_accessed): New functor.
19560 (ref_always_accessed_p): Use for_all_locs_in_loop.
19561
6f37411d
MG
195622013-03-21 Marc Glisse <marc.glisse@inria.fr>
19563
19564 * tree-pass.h (PROP_gimple_lvec): New.
19565 * passes.c (dump_properties): Handle PROP_gimple_lvec.
19566 (init_optimization_passes): Move pass_lower_vector.
19567 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
19568 PROP_gimple_lvec.
19569 (pass_lower_vector): Provide PROP_gimple_lvec.
19570 (pass_lower_vector_ssa): Likewise.
19571 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
19572
511ef689
MW
195732013-03-21 Mark Wielaard <mjw@redhat.com>
19574
19575 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
19576
cc1df30b
UB
195772013-03-21 Uros Bizjak <ubizjak@gmail.com>
19578
19579 * config/i386/i386.md (*movdi_internal): Disparage slightly
19580 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
19581 conversion alternatives.
19582
c845cfe1
JJ
195832013-03-21 Jakub Jelinek <jakub@redhat.com>
19584
37e99116
JJ
19585 PR middle-end/48087
19586 * diagnostic.def (DK_WERROR): New kind.
19587 * diagnostic.h (werrorcount): Define.
19588 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
19589 promoted to DK_ERROR, increment DK_WERROR counter instead of
19590 DK_ERROR counter.
19591 * toplev.c (toplev_main): Call print_ignored_options even if
19592 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
19593 even if just werrorcount is non-zero.
19594
c845cfe1
JJ
19595 PR debug/55608
19596 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
19597 on failure.
19598 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
19599 (string_cst_pool_decl): New function.
19600 (optimize_one_addr_into_implicit_ptr): New function.
19601 (resolve_addr_in_expr): Optimize DWARF location expression
19602 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
19603 which doesn't live in memory, but has DW_AT_location or
19604 DW_AT_const_value, or refers to a string literal, into
19605 DW_OP_GNU_implicit_pointer.
19606 (optimize_location_into_implicit_ptr): New function.
19607 (resolve_addr): If removing DW_AT_location of a variable because
19608 it was DW_OP_addr of address of the variable, but the variable doesn't
19609 live in memory, try to emit const value attribute for the initializer.
19610
08e0cda6
MG
196112013-03-21 Marc Glisse <marc.glisse@inria.fr>
19612
19613 * tree.h (VECTOR_TYPE_P): New macro.
19614 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
19615 TYPE_MODE): Use it.
19616 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
19617 VEC_COND_EXPR cannot be lvalues.
19618 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
19619
d08633b4
MG
196202013-03-21 Marc Glisse <marc.glisse@inria.fr>
19621
19622 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
19623 Restrict the transformation to equal modes.
19624
e6647190
RB
196252013-03-21 Richard Biener <rguenther@suse.de>
19626
19627 PR tree-optimization/39326
19628 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
19629 (MEM_ANALYZABLE): Adjust.
19630 (record_mem_ref_loc): Move bitmap ops ...
19631 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
19632 unanalyzable refs, do not record locations for it.
19633 (analyze_memory_references): Allocate ref zero as shared
19634 unanalyzable ref.
19635 (refs_independent_p): Do not test for unanalyzed mems here.
19636 (ref_indep_loop_p_1): Special-case disambiguation against
19637 the unanalyzed ref.
cc1df30b 19638 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 19639
65074f54
CL
196402013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
19641
19642 * config/arm/arm-protos.h (tune_params): Add
19643 prefer_neon_for_64bits field.
19644 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
19645 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
19646 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
19647 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
19648 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
19649 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
19650 (arm_option_override): Handle -mneon-for-64bits new option.
19651 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
19652 (prefer_neon_for_64bits): Declare new variable.
19653 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 19654 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
19655 (arch_enabled): Handle new arch types. Remove support for onlya8
19656 and nota8.
19657 (one_cmpldi2): Use new arch names.
bc5faa5b 19658 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
19659 * config/arm/arm.opt (mneon-for-64bits): Add option.
19660 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
19661 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
19662 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
19663 of onlya8.
19664 * doc/invoke.texi (-mneon-for-64bits): Document.
19665
5a2d2a79
RB
196662013-03-21 Richard Biener <rguenther@suse.de>
19667
19668 PR tree-optimization/39326
19669 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
19670 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 19671 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 19672
5abe1e05
RB
196732013-03-21 Richard Biener <rguenther@suse.de>
19674
19675 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
19676 (vect_insert_into_interleaving_chain): Likewise.
19677 (vect_drs_dependent_in_basic_block): Inline ...
19678 (vect_slp_analyze_data_ref_dependence): ... here. New function,
19679 split out from ...
19680 (vect_analyze_data_ref_dependence): ... here. Simplify.
19681 (vect_check_interleaving): Simplify.
19682 (vect_analyze_data_ref_dependences): Likewise. Split out ...
19683 (vect_slp_analyze_data_ref_dependences): ... this new function.
19684 (dr_group_sort_cmp): New function.
19685 (vect_analyze_data_ref_accesses): Compute data-reference groups
19686 here instead of in vect_analyze_data_ref_dependence. Use
19687 a more efficient algorithm.
19688 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
19689 vect_slp_analyze_data_ref_dependences. Call
19690 vect_analyze_data_ref_accesses earlier.
19691 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19692 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
19693 (vect_slp_analyze_data_ref_dependences): New prototype.
19694
cad1735b
RB
196952013-03-21 Richard Biener <rguenther@suse.de>
19696
19697 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
19698 ref is stored in the loop.
19699 (find_refs_for_sm): Walk only over all stores.
19700 (store_motion_loop): Allocate from lim_bitmap_obstack.
19701 (store_motion): Likewise.
19702
141310ef
RB
197032013-03-21 Richard Biener <rguenther@suse.de>
19704
19705 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
19706 Update virtual SSA form.
19707
5022315a
RO
197082013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19709
19710 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
19711 * configure: Regenerate.
19712 * config.in: Regenerate.
19713 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
19714 if !HAVE_LD_EH_FRAME_CIEV3.
19715
50d4421c
RB
197162013-03-21 Richard Biener <rguenther@suse.de>
19717
19718 * tree-cfg.c (verify_expr_no_block): New function.
19719 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
19720 nor DECL_VALUE_EXPR have locations with associated blocks.
19721 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
19722 (clear_unused_block_pointer): Remove code dealing with
19723 blocks in DECL_DEBUG_EXPR locations.
19724
839b422f
RB
197252013-03-21 Richard Biener <rguenther@suse.de>
19726
19727 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
19728 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
19729 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
19730 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
19731 instead of DECL_DEBUG_EXPR_IS_FROM.
19732 * gimplify.c (gimplify_modify_expr): Likewise.
19733 * tree-cfg.c (verify_expr_location_1): Likewise.
19734 * tree-complex.c (create_one_component_var): Likewise.
19735 * tree-sra.c (create_access_replacement): Likewise.
19736 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
19737 (clear_unused_block_pointer): Likewise.
19738 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
19739 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
19740 * var-tracking.c (var_debug_decl): Likewise.
19741 (track_expr_p): Likewise.
19742 * tree-inline.c (add_local_variables): Likewise. Set
19743 DECL_HAS_DEBUG_EXPR_P after copying it.
19744 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
19745 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
19746
fe04878d
UB
197472013-03-21 Uros Bizjak <ubizjak@gmail.com>
19748
19749 PR bootstrap/56656
19750 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
19751 * configure: Regenerate.
19752 * config.in: Regenerate.
19753 * config/i386/i386.md (*movdf_internal): Use
19754 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
19755 movd instead of movq mnemonic for interunit moves.
19756 (*movdi_internal): Ditto.
19757
bd059b26 197582013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
19759
19760 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
19761 (abd<mode>_3): New pattern.
19762 (aba<mode>_3): New pattern.
19763 (fabd<mode>_3): New pattern.
19764
bd059b26 197652013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
19766
19767 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
19768 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
19769 occurrence of REGISTER_PREFIX as its empty string.
19770
4f1f78b9
JL
197712013-03-20 Jeff Law <law@redhat.com>
19772
19773 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
19774 addititional equivalences for equality comparisons between an SSA_NAME
19775 and a constant where the SSA_NAME was set from a widening conversion.
19776
327a1118
WL
197772013-03-20 Walter Lee <walt@tilera.com>
19778
19779 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
19780
813e0036
UB
197812013-03-20 Uros Bizjak <ubizjak@gmail.com>
19782
19783 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
19784 depending on type attribute.
19785 (*movti_internal): Ditto.
19786 (*movtf_internal): Ditto.
19787 (*movxf_internal): Ditto.
19788 (*movdf_internal): Ditto.
19789 (*movsf_internal): Ditto.
19790
7cf34aae
UB
197912013-03-20 Uros Bizjak <ubizjak@gmail.com>
19792
19793 * config/i386/i386.md (*movti_internal): Set prefix attribute to
19794 maybe_vex for sselog1 and ssemov types.
19795 (*movdi_internal): Reorder operand constraints.
19796 (*movsi_internal): Ditto. Set prefix attribute to
19797 maybe_vex for sselog1 and ssemov types.
19798 (*movtf_internal): Set prefix attribute to maybe_vex
19799 for sselog1 and ssemov types.
19800 (*movdf_internal): Ditto. Set prefix_data16 attribute for
19801 DImode ssemov types. Reorder operand constraints.
19802 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
19803 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
19804 attribute for SImode ssemov types. Reorder operand constraints.
19805
19321415
MJ
198062013-03-20 Martin Jambor <mjambor@suse.cz>
19807
19808 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
19809 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
19810
12211b99 198112013-03-20 Pat Haugen <pthaugen@us.ibm.com>
c6d5ff83
MM
19812
19813 * config/rs6000/predicates.md (indexed_address, update_address_mem
19814 update_indexed_address_mem): New predicates.
19815 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
19816 attribute for load/store instructions.
19817 * config/rs6000/dfp.md (movsd_store): Likewise.
19818 (movsd_load): Likewise.
19819 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
19820 (unnamed HI->DI extend define_insn): Likewise.
19821 (unnamed SI->DI extend define_insn): Likewise.
19822 (unnamed QI->SI extend define_insn): Likewise.
19823 (unnamed QI->HI extend define_insn): Likewise.
19824 (unnamed HI->SI extend define_insn): Likewise.
19825 (unnamed HI->SI extend define_insn): Likewise.
19826 (extendsfdf2_fpr): Likewise.
19827 (movsi_internal1): Likewise.
19828 (movsi_internal1_single): Likewise.
19829 (movhi_internal): Likewise.
19830 (movqi_internal): Likewise.
19831 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
19832 attribute for load/store instructions.
19833 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
19834 instructions.
19835 (mov<mode>_softfloat): Likewise.
19836 (mov<mode>_hardfloat32): Likewise.
19837 (mov<mode>_hardfloat64): Likewise.
19838 (mov<mode>_softfloat64): Likewise.
19839 (movdi_internal32): Likewise.
19840 (movdi_internal64): Likewise.
19841 (probe_stack_<mode>): Likewise.
19842
198432013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
19844
19845 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
19846 floating point, and decimal floating point to reload iterator.
19847
19848 * config/rs6000/constraints.md (wl constraint): New constraints to
19849 return FLOAT_REGS if certain options are used to reduce the number
19850 of separate patterns that exist in the file.
19851 (wx constraint): Likewise.
19852 (wz constraint): Likewise.
19853
19854 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
19855 -mdebug=reg, print wg, wl, wx, and wz constraints.
19856 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
19857 Initialize the reload functions for 64-bit binary/decimal floating
19858 point types.
19859 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
19860 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
19861 create the buffer on the stack to overcome not having a 32-bit
19862 load and store.
19863 (rs6000_emit_move): Likewise.
19864 (rs6000_secondary_memory_needed_rtx): Likewise.
19865 (rs6000_alloc_sdmode_stack_slot): Likewise.
19866 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
19867 via xxlxor, just like DFmode 0.0.
19868
19869 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
19870 define as 1 if we are running on a power7 or newer.
19871 (enum r6000_reg_class_enum): Add new constraints.
19872
19873 * config/rs6000/dfp.md (movsd): Delete, combine with binary
19874 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
19875 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 19876 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
19877 (movsd splitter): Likewise.
19878 (movsd_hardfloat): Likewise.
19879 (movsd_softfloat): Likewise.
19880
19881 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
19882 binary and decimal floating point moves.
19883 (fmove_ok): New attributes to combine binary and decimal floating
19884 point moves, and to combine power6x (mfpgpr) moves along normal
19885 floating moves.
19886 (real_value_to_target): Likewise.
19887 (f32_lr): Likewise.
19888 (f32_lm): Likewise.
19889 (f32_li): Likewise.
19890 (f32_sr): Likewise.
19891 (f32_sm): Likewise.
19892 (f32_si): Likewise.
19893 (movsf): Combine binary and decimal floating point moves. Combine
19894 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 19895 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
19896 (mov<mode> for SFmode/SDmode); Likewise.
19897 (SFmode/SDmode splitters): Likewise.
19898 (movsf_hardfloat): Likewise.
19899 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
19900 (movsf_softfloat): Likewise.
19901 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
19902
19903 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
19904 wx and wz constraints.
19905
19906 * config/rs6000/constraints.md (wg constraint): New constraint to
19907 return FLOAT_REGS if -mmfpgpr (power6x) was used.
19908
19909 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
19910 constraint.
19911
19912 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
19913 -mdebug=reg, print wg, wl, wx, and wz constraints.
19914 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
19915 Initialize the reload functions for 64-bit binary/decimal floating
19916 point types.
19917 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
19918 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
19919 create the buffer on the stack to overcome not having a 32-bit
19920 load and store.
19921 (rs6000_emit_move): Likewise.
19922 (rs6000_secondary_memory_needed_rtx): Likewise.
19923 (rs6000_alloc_sdmode_stack_slot): Likewise.
19924 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
19925 via xxlxor, just like DFmode 0.0.
19926
c6d5ff83
MM
19927 * config/rs6000/dfp.md (movdd): Delete, combine with binary
19928 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
19929 with other moves by using conditional constraits (wg). Use LFIWZX
19930 and STFIWX for loading SDmode on power7.
19931 (movdd splitters): Likewise.
19932 (movdd_hardfloat32): Likewise.
19933 (movdd_softfloat32): Likewise.
19934 (movdd_hardfloat64_mfpgpr): Likewise.
19935 (movdd_hardfloat64): Likewise.
19936 (movdd_softfloat64): Likewise.
19937
19938 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
19939 64-bit binary and decimal floating point moves.
19940 (FMOVE64X): Likewise.
19941 (movdf): Combine 64-bit binary and decimal floating point moves.
19942 Combine power6x (mfpgpr) moves with other moves by using
19943 conditional constraits (wg).
19944 (mov<mode> for DFmode/DDmode): Likewise.
19945 (DFmode/DDmode splitters): Likewise.
19946 (movdf_hardfloat32): Likewise.
19947 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
19948 (movdf_softfloat32): Likewise.
19949 (movdf_hardfloat64_mfpgpr): Likewise.
19950 (movdf_hardfloat64): Likewise.
19951 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
19952 (movdf_softfloat64): Likewise.
19953 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
19954 (reload_<mode>_load): Move to later in the file so they aren't in
19955 the middle of the floating point move insns.
19956 (reload_<mode>_store): Likewise.
19957
19958 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
19959 constraint.
19960
19961 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
19962 constraint if -mdebug=reg.
bd059b26
UB
19963 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
19964 Enable using dd reload support if needed.
c6d5ff83
MM
19965
19966 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
19967 binary and decimal floating point moves in rs6000.md.
19968 (movtd_internal): Likewise.
19969
19970 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
19971 decimal floating point moves.
19972 (movtf): Likewise.
19973 (movtf_internal): Likewise.
19974 (mov<mode>_internal, TDmode/TFmode): Likewise.
19975 (movtf_softfloat): Likewise.
19976 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
19977
19978 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
19979 movdi_internal64, using wg constraint for move direct operations.
19980 (movdi_internal64): Likewise.
19981
19982 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
19983 MODES_TIEABLE_P for selected modes. Print the numerical value of
19984 the various virtual registers. Use GPR/FPR first/last values,
19985 instead of hard coding the register numbers. Print which modes
19986 have reload functions registered.
bd059b26
UB
19987 (rs6000_option_override_internal): If -mdebug=reg, trace the options
19988 settings before/after setting cpu, target and subtarget settings.
19989 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
19990 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
19991 (rs6000_secondary_reload_fail): Likewise.
19992 (rs6000_secondary_reload_inner): Likewise.
19993
19994 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
19995 macros for first/last GPR and FPR registers.
19996 (LAST_GPR_REGNO): Likewise.
19997 (FIRST_FPR_REGNO): Likewise.
19998 (LAST_FPR_REGNO): Likewise.
19999
20000 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
20001 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
20002 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
20003 (vcond<mode><mode>): Likewise.
20004 (vcondu<mode><mode>): Likewise.
20005 (vector_gtu<mode>): Likewise.
20006 (vector_gte<mode>): Likewise.
20007 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 20008 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
20009 (ior<mode>3): Likewise.
20010 (and<mode>3): Likewise.
20011 (one_cmpl<mode>2): Likewise.
20012 (nor<mode>3): Likewise.
20013 (andc<mode>3): Likewise.
20014
20015 * config/rs6000/constraints.md (wt constraint): New constraint
20016 that returns VSX_REGS if TImode is allowed in VSX registers.
20017
20018 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
20019 constant under VSX.
20020
20021 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
20022 similar to TImode, but it is restricted to being in the GPRs.
20023
20024 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
20025 TImode to occupy a single VSX register.
20026
20027 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
20028 -mvsx-timode for power7/power8.
20029 (power7 cpu): Likewise.
20030 (power8 cpu): Likewise.
20031
20032 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
20033 sure that TFmode/TDmode take up two registers if they are ever
20034 allowed in the upper VSX registers.
20035 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
20036 registers.
20037 (rs6000_init_hard_regno_mode_ok): Likewise.
20038 (rs6000_debug_reg_global): Add debugging for PTImode and wt
20039 constraint. Print if LRA is turned on.
20040 (rs6000_option_override_internal): Give an error if -mvsx-timode
20041 and VSX is not enabled.
20042 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
20043 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
20044 to reg+offset addressing. Use PTImode when checking offset
20045 addresses for validity.
20046 (reg_offset_addressing_ok_p): Likewise.
20047 (rs6000_legitimate_offset_address_p): Likewise.
20048 (rs6000_legitimize_address): Likewise.
20049 (rs6000_legitimize_reload_address): Likewise.
20050 (rs6000_legitimate_address_p): Likewise.
20051 (rs6000_eliminate_indexed_memrefs): Likewise.
20052 (rs6000_emit_move): Likewise.
20053 (rs6000_secondary_reload): Likewise.
20054 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
20055 reloads to fpr registers to continue to use reg+offset addressing,
20056 but 64-bit reloads to altivec registers need reg+reg addressing.
20057 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
20058 it. Treat LO_SUM like a PLUS operation.
20059 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 20060 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
20061 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
20062 registers to share a register with a smaller sized type, since VSX
20063 puts scalars in the upper 64-bits.
20064 (print_operand): Add support for PTImode.
20065 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
20066 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
20067 registers, but don't have arithmetic support.
20068 (rs6000_memory_move_cost): Add test for VSX.
20069 (rs6000_opt_masks): Add -mvsx-timode.
20070
20071 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
20072 for TImode.
20073 (VSs): Likewise.
20074 (VSr): Use wt constraint for TImode.
20075 (VSv): Drop TImode support.
20076 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
20077 (vsx_movti_64bit): Likewise.
20078 (vsx_movti_32bit): Likewise.
20079 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
20080 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
20081 one '?' on the appropriate output constraint. Do not allow TImode
20082 logical operations on 32-bit systems.
20083 (vsx_ior<mode>3): Likewise.
20084 (vsx_xor<mode>3): Likewise.
20085 (vsx_one_cmpl<mode>2): Likewise.
20086 (vsx_nor<mode>3): Likewise.
20087 (vsx_andc<mode>3): Likewise.
20088 (vsx_concat_<mode>): Likewise.
20089 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
20090
20091 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
20092 OPTION_MASK_VSX_TIMODE.
20093 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
20094 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
20095
20096 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
20097 (TI2 iterator): New iterator for TImode, PTImode.
20098 (wd mode attribute): Add values for vector types.
bd059b26
UB
20099 (movti_string): Replace TI move operations with operations for TImode
20100 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
20101 (mov<mode>_string, TImode/PTImode): Likewise.
20102 (movti_ppc64): Likewise.
20103 (mov<mode>_ppc64, TImode/PTImode): Likewise.
20104 (TI mode splitters): Likewise.
20105
20106 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
20107 constraint.
20108
1fc5eced
MG
201092013-03-20 Marc Glisse <marc.glisse@inria.fr>
20110
20111 PR tree-optimization/56355
20112 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
20113 Also handle integers with undefined overflow.
20114
22c4c869
CM
201152013-03-20 Catherine Moore <clm@codesourcery.com>
20116 Maciej W. Rozycki <macro@codesourcery.com>
20117 Tom de Vries <tom@codesourcery.com>
12211b99 20118 Nathan Sidwell <nathan@codesourcery.com>
22c4c869
CM
20119 Iain Sandoe <iain@codesourcery.com>
20120 Nathan Froyd <froydnj@codesourcery.com>
12211b99 20121 Chao-ying Fu <fu@mips.com>
22c4c869
CM
20122
20123 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 20124 Document new function attributes.
22c4c869
CM
20125 * doc/invoke.texi (minterlink-compressed, mmicromips,
20126 m14k, m14ke, m14kec): Document new options.
20127 (minterlink-mips16): Update documentation.
20128 * doc/md.texi (ZC, ZD): Document new constraints.
20129 * configure.ac (gcc_cv_as_micromips): Check if linker
20130 supports the .set micromips directive.
20131 * configure: Regenerate.
20132 * config.in: Regenerate.
20133 * config/mips/mips-tables.opt: Regenerate.
20134 * config/mips/micromips.md: New file.
20135 * constraints.md (ZC, ZD): New constraints.
20136 * config/mips/predicates.md (movep_src_register): New predicate.
20137 (movep_src_operand): New predicate.
20138 (non_volatile_mem_operand): New predicate.
20139 * config/mips/mips.md (multimem): New type.
20140 (length): Differentiate between 17-bit and 18-bit branch offsets.
20141 (MOVEP1, MOVEP2): New mode iterator.
33159866 20142 (mov_<load>l): Use ZC constraint.
22c4c869
CM
20143 (mov_<load>r): Likewise.
20144 (mov_<store>l): Likewise.
20145 (mov_<store>r): Likewise.
20146 (*branch_equality<mode>_inverted): Add microMIPS support.
20147 (*branch_equality<mode>): Likewise.
20148 (*jump_absolute): Likewise.
20149 (indirect_jump_<mode>): Likewise.
20150 (tablejump_<mode>): Likewise.
20151 (<optab>_internal): Likewise.
20152 (sibcall_internal): Likewise.
20153 (sibcall_value_internal): Likewise.
20154 (prefetch): Use constraint ZD.
20155 * config/mips/mips.opt (minterlink-compressed): New option.
20156 (minterlink-mips16): Now an alias for minterlink-compressed.
20157 (mmicromips): New option.
20158 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
20159 (compare_and_swap_12): Likewise.
20160 (sync_add<mode>): Likewise.
20161 (sync_<optab>_12): Likewise.
20162 (sync_old_<optab>_12): Likewise.
20163 (sync_new_<optab>_12): Likewise.
20164 (sync_nand_12): Likewise.
20165 (sync_old_nand_12): Likewise.
20166 (sync_new_nand_12): Likewise.
20167 (sync_sub<mode>): Likewise.
20168 (sync_old_add<mode>): Likewise.
20169 (sync_old_sub<mode>): Likewise.
20170 (sync_new_add<mode>): Likewise.
20171 (sync_new_sub<mode>): Likewise.
20172 (sync_<optab><mode>): Likewise.
20173 (sync_old_<optab><mode>): Likewise.
20174 (sync_new_<optab><mode>): Likewise.
20175 (sync_nand<mode>): Likewise.
20176 (sync_old_nand<mode>): Likewise.
20177 (sync_new_nand<mode>): Likewise.
20178 (sync_lock_test_and_set<mode>): Likewise.
20179 (test_and_set_12): Likewise.
20180 (atomic_compare_and_swap<mode>): Likewise.
20181 (atomic_exchange<mode>_llsc): Likewise.
20182 (atomic_fetch_add<mode>_llsc): Likewise.
20183 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
20184 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
20185 (umips_save_restore_pattern_p): Likewise.
20186 (umips_load_store_pair_p): Likewise.
20187 (umips_output_load_store_pair): Likewise.
20188 (umips_movep_target_p): Likewise.
20189 (umips_12bit_offset_address_p): Likewise.
20190 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
20191 (mips_base_mips16): Rename this...
20192 (mips_base_compression_flags): ...to this. Update all uses.
20193 (mips_attribute_table): Add micromips, nomicromips and nocompression.
20194 (mips_mips16_decl_p): Delete.
20195 (mips_nomips16_decl_p): Delete.
33159866 20196 (mips_get_compress_on_flags): New function.
22c4c869
CM
20197 (mips_get_compress_off_flags): New function.
20198 (mips_get_compress_mode): New function.
20199 (mips_get_compress_on_name): New function.
20200 (mips_get_compress_off_name): New function.
20201 (mips_insert_attributes): Support multiple compression types.
20202 (mips_merge_decl_attributes): Likewise.
20203 (umips_12bit_offset_address_p): New function.
20204 (mips_start_function_definition): Emit .set micromips directive.
20205 (mips_call_may_need_jalx_p): New function.
20206 (mips_function_ok_for_sibcall): Add microMIPS support.
20207 (mips_print_operand_punctuation): Support short delay slots and
20208 compact jumps.
20209 (umips_swm_mask, umips_swm_encoding): New.
20210 (umips_build_save_restore): New function.
20211 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
20212 (was_mips16_p): Remove.
20213 (old_compression_mode): New.
20214 (mips_set_compression_mode): New function.
20215 (mips_set_current_function): Add microMIPS support.
20216 (mips_option_override): Likewise.
20217 (umips_save_restore_pattern_p): New function.
20218 (umips_output_save_restore): New function.
20219 (umips_load_store_pair_p_1): New function.
20220 (umips_load_store_pair_p): New function.
20221 (umips_output_load_store_pair_1): New function.
20222 (umips_output_load_store_pair): New function.
20223 (umips_movep_target_p) New function.
20224 (mips_prepare_pch_save): Add microMIPS support.
20225 * config/mips/mips.h (TARGET_COMPRESSION): New.
20226 (TARGET_CPU_CPP_BUILTINS): Update macro
20227 to use new compression flags and to support microMIPS.
20228 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
20229 (MIPS_ARCH_FLOAT_SPEC): Likewise.
20230 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
20231 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
20232 (ASM_SPEC): Support mmicromips and mno-micromips.
20233 (M16STORE_REG_P): New macro.
20234 (MIPS_CALL): Support TARGET_MICROMIPS.
20235 (MICROMIPS_J): New macro.
20236 (mips_base_mips16): Rename this...
20237 (mips_base_compression_flags): ...to this.
20238 (UMIPS_12BIT_OFFSET_P): New macro.
20239 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
20240 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
202412013-03-20 Richard Biener <rguenther@suse.de>
20242
20243 PR tree-optimization/56661
20244 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
20245 the result does not have to be distinct.
20246
54714c68
RB
202472013-03-20 Richard Biener <rguenther@suse.de>
20248
20249 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
20250 remap_gimple_op_r.
20251
cca1130d 202522013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12211b99 20253 Steven Bosscher <steven@gcc.gnu.org>
cca1130d
BS
20254
20255 PR rtl-optimization/56605
20256 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
20257
2a930377
UB
202582013-03-20 Uros Bizjak <ubizjak@gmail.com>
20259
20260 PR bootstrap/56656
20261 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
20262 that require movd instead of movq.
20263
d6d305fe
RB
202642013-03-20 Richard Biener <rguenther@suse.de>
20265
20266 * tree-ssa-structalias.c (struct variable_info): Add pointer
20267 to the first field of an aggregate with sub-vars. Make
20268 this and the pointer to the next subfield its ID.
20269 (vi_next): New function.
20270 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
20271 storedanything_id, integer_id): Increment by one.
20272 (new_var_info, get_call_vi, lookup_call_clobber_vi,
20273 get_call_clobber_vi): Adjust.
20274 (solution_set_expand): Simplify and speedup.
20275 (solution_set_add): Inline into ...
20276 (set_union_with_increment): ... this. Adjust accordingly.
20277 (do_sd_constraint): Likewise.
20278 (do_ds_constraint): Likewise.
20279 (do_complex_constraint): Simplify.
20280 (build_pred_graph): Adjust.
20281 (solve_graph): Likewise. Simplify and speedup.
20282 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
20283 get_constraint_for_component_ref, get_constraint_for_1,
20284 first_vi_for_offset, first_or_preceding_vi_for_offset,
20285 create_function_info_for, create_variable_info_for_1,
20286 create_variable_info_for, intra_create_variable_infos): Adjust.
20287 (init_base_vars): Push NULL for ID zero.
20288 (compute_points_to_sets): Adjust.
20289
a271b42d
RB
202902013-03-20 Richard Biener <rguenther@suse.de>
20291
20292 * cfgloop.c (verify_loop_structure): Streamline and avoid
20293 ICEing on corrupt loop tree.
20294 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
20295 loop tree.
20296
ebd65954
RB
202972013-03-20 Richard Biener <rguenther@suse.de>
20298
20299 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
20300 check whether an SSA update is needed.
20301
4547b7ee
RS
203022013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
20303
20304 * config/mips/constraints.md (T): Rename to...
20305 (Yf): ...this.
20306 (U): Rename to...
20307 (Yd): ...this.
20308 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
20309 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
20310
0b8cdc58
IB
203112013-03-19 Ian Bolton <ian.bolton@arm.com>
20312
20313 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
20314 (*subsi3_carryin_uxtw): Likewise.
20315
5977a10d
IB
203162013-03-19 Ian Bolton <ian.bolton@arm.com>
20317
20318 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
20319 (*rorsi3_insn_uxtw): Likewise.
20320
bd83ff2c
IB
203212013-03-19 Ian Bolton <ian.bolton@arm.com>
20322
20323 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
20324 (*extrsi5_insn_uxtw): Likewise.
20325
ba65123c
RB
203262013-03-19 Richard Biener <rguenther@suse.de>
20327
20328 PR tree-optimization/56273
20329 * passes.c (init_optimization_passes): Move second VRP after DOM.
20330
2eac0476
UB
203312013-03-19 Uros Bizjak <ubizjak@gmail.com>
20332
20333 * config/i386/i386.md (*movti_internal): Merge from
20334 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
20335 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
20336 nox64 isa attributes.
20337
6e55eda7
RB
203382013-03-18 Richard Biener <rguenther@suse.de>
20339
20340 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
20341 (unite): Likewise.
20342 (merge_node_constraints): Likewise.
20343 (build_succ_graph): Likewise.
20344 (valid_graph_edge): Inline into single caller.
20345 (unify_nodes): Likewise. Use bitmap_set_bit return value
20346 and cache varinfo.
20347 (scc_visit): Fix formatting and variable use.
20348 (do_sd_constraint): Use gcc_checking_assert.
20349 (do_ds_constraint): Likewise.
20350 (do_complex_constraint): Likewise.
20351 (condense_visit): Likewise. Cleanup.
20352 (dump_pred_graph): New function.
20353 (perform_var_substitution): Dump the pred-graph before
20354 variable substitution.
20355 (find_equivalent_node): Use gcc_checking_assert.
20356 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
20357
4bdd44c4
RB
203582013-03-18 Richard Biener <rguenther@suse.de>
20359
20360 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
20361 Remove cond_expr_stmt_list argument and do not gimplify the
20362 built expression.
20363 (vect_loop_versioning): Adjust.
20364 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20365 Cleanup to use less temporaries.
20366 (vect_create_data_ref_ptr): Cleanup.
20367
38c56a5b
JJ
203682013-03-18 Jakub Jelinek <jakub@redhat.com>
20369
20370 PR tree-optimization/56635
20371 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
20372 require types_compatible_p types.
20373
20b2e6a0
NC
203742013-03-18 Nick Clifton <nickc@redhat.com>
20375
a6178a25
NC
20376 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
20377 spurious backslash.
20378
20b2e6a0
NC
20379 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
20380 Add missing line to comment describing function.
20381
92608d0e
RB
203822013-03-18 Richard Biener <rguenther@suse.de>
20383
20384 PR tree-optimization/56210
20385 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
20386 Handle string / character search functions.
20387 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
20388
31348d52
RB
203892013-03-18 Richard Biener <rguenther@suse.de>
20390
20391 PR middle-end/56483
20392 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
20393 and implement properly.
20394 * gimple.h (gimple_cond_single_var_p): Remove.
20395
fcac74a1
RB
203962013-03-18 Richard Biener <rguenther@suse.de>
20397
20398 * tree-data-ref.h (find_data_references_in_loop): Declare.
20399 * tree-data-ref.c (get_references_in_stmt): Use a stack
20400 vector pre-allocated in the callers.
20401 (find_data_references_in_stmt): Adjust.
20402 (graphite_find_data_references_in_stmt): Likewise.
20403 (create_rdg_vertices): Likewise.
20404 (find_data_references_in_loop): Export.
20405 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
20406 Compute dependences here...
20407 (vect_analyze_data_refs): ...not here. When we encounter
20408 a non-vectorizable data reference in basic-block vectorization
20409 truncate the data reference vector. Do not bother to
20410 fixup data-dependence information for gather loads.
20411 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
20412 of data references, as reported.
20413
0d5a1b56
RB
204142013-03-18 Richard Biener <rguenther@suse.de>
20415
20416 PR tree-optimization/3713
20417 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
20418 has_constants and expr.
20419 (stmt_has_constants): Properly valueize SSA names when deciding
20420 whether the stmt has constants.
20421
789c34e3
RB
204222013-03-18 Richard Biener <rguenther@suse.de>
20423
20424 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
20425 whole function when there is nothing to do.
20426 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
20427 * tree-vectorizer.c (vectorize_loops): Update virtual and
20428 loop-closed SSA once.
20429 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
20430
076b4605
RB
204312013-03-18 Richard Biener <rguenther@suse.de>
20432
20433 PR middle-end/56113
20434 * domwalk.c (bb_postorder): New global static.
20435 (cmp_bb_postorder): New function.
20436 (walk_dominator_tree): Replace scheme imposing an order for
20437 visiting dominator sons by one sorting them at the time they
20438 are pushed on the stack.
20439
bdb01696
RB
204402013-03-18 Richard Biener <rguenther@suse.de>
20441
20442 PR tree-optimization/39326
20443 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
20444 (struct mem_ref): Replace mem member with ao_ref typed member.
20445 (MEM_ANALYZABLE): Adjust.
20446 (memref_eq): Likewise.
20447 (mem_ref_alloc): Likewise.
20448 (gather_mem_refs_stmt): Likewise.
20449 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
20450 (execute_sm_if_changed_flag_set): Adjust.
20451 (execute_sm): Likewise.
20452 (ref_always_accessed_p): Likewise.
20453 (refs_independent_p): Likewise.
20454 (can_sm_ref_p): Likewise.
20455
12d2dc5e
JJ
204562013-03-18 Jakub Jelinek <jakub@redhat.com>
20457
20458 PR c/56566
20459 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
20460 return 1 even for !unsignedp.
20461
286fb677
UB
204622013-03-17 Uros Bizjak <ubizjak@gmail.com>
20463
20464 * config/i386/i386.md (isa): Add x64 and nox64.
20465 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
20466 (*pushtf): Enable *roF alternative for x64 isa only.
20467 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
20468 mode attribute of integer alternatives to DImode for TARGET_64BIT.
20469 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
20470 (*movtf_internal): Merge from *movtf_internal_rex64 and
20471 *movtf_internal_sse. Use x64 and nox64 isa attributes.
20472 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
20473 nox64 isa attributes.
20474 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
20475 nox64 isa attributes.
20476 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
20477
88b97037
UB
204782013-03-17 Uros Bizjak <ubizjak@gmail.com>
20479
20480 * config/alpha/alpha.c (TARGET_LRA_P): New define.
20481
9f4f1735
JJ
204822013-03-17 Jakub Jelinek <jakub@redhat.com>
20483
20484 PR target/56640
20485 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
20486 class names. Remove trailing comma after "ALL_REGS".
20487
48f4a6fa
JH
204882013-03-16 Jan Hubicka <jh@suse.cz>
20489
20490 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
20491 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
20492 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
20493 of cgraph_get_create_node.
20494 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
20495
98e81123
JM
204962013-03-16 Jason Merrill <jason@redhat.com>
20497
20498 PR debug/49090
20499 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
20500 with DW_AT_default_value.
20501
8a298c04
JJ
205022013-03-16 Jakub Jelinek <jakub@redhat.com>
20503
20504 * BASE-VER: Set to 4.9.0.
20505
4323afa0
AK
205062013-03-14 Andi Kleen <ak@linux.intel.com>
20507
20508 PR target/56619
20509 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
20510 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
20511 Document _x* TSX intrinsics.
20512
b3c0d469
JJ
205132013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
20514 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
20515
20516 * configure.ac: Add MicroBlaze TLS support detection.
20517 * configure: Regenerate.
88b97037
UB
20518 * config/microblaze/microblaze-protos.h
20519 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
20520 symbol_mentioned_p, label_mentioned_p): Add prototypes.
20521 * config/microblaze/microblaze.c (microblaze_address_type): Add
20522 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
20523 (microblaze_address_info): Add tls_reloc.
20524 (TARGET_HAVE_TLS): Define.
20525 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
20526 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
20527 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
20528 load_tls_operand, microblaze_call_tls_get_addr,
20529 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
20530 (microblaze_classify_unspec): Handle UNSPEC_TLS.
20531 (get_base_reg): Use microblaze_tls_symbol_p.
20532 (microblaze_classify_address): Handle TLS.
88b97037
UB
20533 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
20534 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
20535 (microblaze_legitimize_address): Handle TLS.
20536 (microblaze_address_insns): Handle ADDRESS_TLS.
20537 (pic_address_needs_scratch): Handle TLS.
20538 (print_operand_address): Handle TLS.
20539 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
20540 (microblaze_expand_move): Handle TLS.
88b97037
UB
20541 (microblaze_legitimate_constant_p): Check
20542 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
20543 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
20544 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
20545 (PIC_OFFSET_TABLE_REGNUM): Set.
20546 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
20547 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
20548 (addsi3, movsi_internal2, movdf_internal): Update constraints
20549 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
20550 (move_operand): Redefine as move_src_operand,
20551 check microblaze_tls_referenced_p.
8cc9a5a5 20552
d803a491
IB
205532013-03-14 Ian Bolton <ian.bolton@arm.com>
20554
20555 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
20556 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
20557
a8504f22
IB
205582013-03-14 Ian Bolton <ian.bolton@arm.com>
20559
20560 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
20561 CC mode for AND.
20562
df2dfaea
JJ
205632013-03-14 Jakub Jelinek <jakub@redhat.com>
20564
fbd28bc3
JJ
20565 PR tree-optimization/53265
20566 * common.opt (Waggressive-loop-optimizations): New option.
20567 * tree-ssa-loop-niter.c: Include tree-pass.h.
20568 (do_warn_aggressive_loop_optimizations): New function.
20569 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
20570 if number_of_latch_executions returned constant.
20571 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
20572 early. If number_of_latch_executions returned constant, set
20573 nb_iterations_upper_bound back to it.
20574 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
20575 field.
20576 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
20577 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
20578
df2dfaea
JJ
20579 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
20580 (MULTILIB_OSDIRNAMES): Set.
20581 * genmultilib: If defaultosdirname doesn't start with :: , set
20582 defaultosdirname2 instead, clear it and emit two . multilib_raw
20583 entries instead of just one.
20584
ee0d2b68
KK
205852013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
20586
20587 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
20588 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
20589 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
20590 (SUBTARGET_OVERRIDE_OPTIONS): New.
20591
decc676e
OE
205922013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
20593
20594 PR target/49880
20595 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
20596 (musermode): Convert to Var(TARGET_USERMODE).
20597 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
20598 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
20599 * config/sh/sh.c (sh_option_override): Use
20600 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
20601 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
20602 condition.
20603 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
20604 TARGET_SH4.
20605 (udivsi3_i4_single, divsi3_i4_single): Use
20606 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
20607
f4b719c7
DK
206082013-03-13 Dave Korn <dave.korn.cygwin@....>
20609
20610 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
20611 default setting.
20612
c40eced0
RB
206132013-03-13 Richard Biener <rguenther@suse.de>
20614
20615 PR tree-optimization/56608
20616 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
20617 calls when vectorizing basic-blocks.
20618
1bfa5973
JJ
206192013-03-13 Jakub Jelinek <jakub@redhat.com>
20620
20621 PR plugins/45078
20622 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
20623 tm_file.
20624
6fcf5434
JJ
206252013-03-12 Jakub Jelinek <jakub@redhat.com>
20626
20627 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
20628
4f38fa8c
JH
206292013-03-11 Jan Hubicka <jh@suse.cz>
20630
20631 PR lto/56557
20632 * lto-streamer-out.c (output_symbol_p): Skip references from
20633 constructors of external variables.
20634
c5c5ba89
JH
206352013-03-11 Jan Hubicka <jh@suse.cz>
20636
20637 PR middle-end/56571
20638 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
20639 from pseudos.
20640 * emit-rtl.c (verify_rtx_sharing): Likewise.
20641 (copy_insn_1): Likewise.
20642 * rtl.c (copy_rtx): Likewise.
20643
c2a939b1
GJL
206442013-03-11 Georg-Johann Lay <avr@gjlay.de>
20645
20646 PR target/56591
20647 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
20648 output_operand_lossage message.
88b97037 20649
3c3279fb
RE
206502013-03-11 Richard Earnshaw <rearnsha@arm.com>
20651
20652 PR target/56470
20653 * arm.c (shift_op): Validate RTL pattern on the fly.
20654 (arm_print_operand, case 'S'): Don't use shift_operator to validate
20655 the RTL.
20656
aef5ef9d
JDA
206572013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
20658
20659 PR target/56347
20660 * config/pa/pa.md (call_value): Check for calls to powf and direct to
20661 new call patterns that clobber %fr12.
20662 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
20663 split and postreload patterns.
20664 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
20665 registers %fr12 and %fr12R as call used.
20666
456610d3
SB
206672013-03-09 Steven Bosscher <steven@gcc.gnu.org>
20668
20669 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
20670 (canon_address, record_store, replace_read, check_mem_read_rtx,
20671 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
20672 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
20673 rest_of_handle_dse): Likewise.
20674
4b1baac8
RS
206752013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
20676
20677 PR middle-end/56524
20678 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
20679 Add base_optabs.
20680 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
20681 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
20682 (save_optabs_if_changed): Replace with...
20683 (init_tree_optimization_optabs): ...this.
20684 * optabs.c (save_optabs_if_changed): Rename to...
20685 (init_tree_optimization_optabs): ...this. Take the optimization node
20686 as argument. Do nothing if the base optabs are already correct.
20687 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
20688 to recompute optabs.
20689 * function.h (function): Remove optabs field.
20690 * function.c (invoke_set_current_function_hook): Call
20691 init_tree_optimization_optabs. Use the result to initialize
20692 this_fn_optabs.
20693
b7a78683
AH
206942013-02-27 Aldy Hernandez <aldyh@redhat.com>
20695
20696 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
20697 if GTMA_HAS_NO_INSTRUMENTATION.
20698 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
20699 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
20700 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
20701 * gimple-pretty-print.c (dump_gimple_transaction): Handle
20702 GTMA_HAS_NO_INSTRUMENTATION.
20703
6384c29b
JJ
207042013-03-08 Jakub Jelinek <jakub@redhat.com>
20705
20706 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
20707 libasan_preinit.o.
20708
ecd4f20a
MP
207092013-03-08 Marek Polacek <polacek@redhat.com>
20710 Jakub Jelinek <jakub@redhat.com>
20711
20712 PR tree-optimization/56478
20713 * predict.c (is_comparison_with_loop_invariant_p): Change the
20714 type of loop_step to tree.
20715 (predict_loops): Adjust.
20716 (predict_iv_comparison): Perform the computations on double_ints.
20717
64366d35
RB
207182013-03-08 Richard Biener <rguenther@suse.de>
20719
20720 PR tree-optimization/56570
20721 * tree-cfg.c (verify_expr_location_1): Verify locations for
20722 DECL_DEBUG_EXPR.
20723 * tree-sra.c (create_access_replacement): Strip locations
20724 from DECL_DEBUG_EXPRs.
20725
a9d5a059
RB
207262013-03-08 Richard Biener <rguenther@suse.de>
20727
20728 * tree-inline.c (expand_call_inline): Do not associate
20729 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
20730 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
20731
b7aa4e9a
RB
207322013-03-08 Richard Biener <rguenther@suse.de>
20733
20734 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
20735 or block changes with -Og. Fix for location / block encoding
20736 changes and PHI arguments with locations.
20737
c4c2f9fa
SB
207382013-03-07 Steven Bosscher <steven@gcc.gnu.org>
20739
20740 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
20741 for all counters.
20742 (struct output_info): Likewise.
20743 (register_overhead): Remove bad gcc_assert.
20744 (bitmap_find_bit): If there is only a single bitmap element, do not
20745 count a miss as a search.
20746 (print_statistics): Update for counter type changes.
20747 (dump_bitmap_statistics): Likewise. Print headers such that they
20748 are properly lined up with the printed counters.
20749
5bf6606a
JJ
207502013-03-07 Jakub Jelinek <jakub@redhat.com>
20751
20752 PR tree-optimization/56559
20753 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
20754 check that it has only a single use.
20755
2c653d46
RB
207562013-03-07 Richard Biener <rguenther@suse.de>
20757
20758 * doc/invoke.texi (fwhole-program): Discourage use in combination
20759 with -flto.
20760
a72d8780
JJ
207612013-03-06 Jakub Jelinek <jakub@redhat.com>
20762
01a454df
JJ
20763 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
20764
c1781047
JJ
20765 PR tree-optimization/56539
20766 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
20767 instead of GSI_CONTINUE_LINKING as last argument to
20768 force_gimple_operand_gsi. Adjust function comment.
20769
9772c47a
JJ
20770 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
20771 aarch64-cores.def.
20772
a72d8780
JJ
20773 PR middle-end/56548
20774 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
20775 promoted mode, convert the result back to the original mode.
20776
fa5556de
RB
207772013-03-06 Richard Biener <rguenther@suse.de>
20778
20779 PR middle-end/56294
20780 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
20781 (insert_updated_phi_nodes_compare_uids): New function.
20782 (update_ssa): Sort symbols_to_rename after UID before
20783 traversing it to insert PHI nodes.
20784
010403d1
RB
207852013-03-06 Richard Biener <rguenther@suse.de>
20786
20787 PR middle-end/50494
20788 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
20789 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
20790
20791 Revert
20792 2013-02-13 Richard Biener <rguenther@suse.de>
20793
20794 PR lto/50494
20795 * varasm.c (output_constant_def_1): Get the decl representing
20796 the constant as argument.
20797 (output_constant_def): Wrap output_constant_def_1.
20798 (make_decl_rtl): Use output_constant_def_1 with the decl
20799 representing the constant.
20800 (build_constant_desc): Optionally re-use a decl already
20801 representing the constant.
20802 (tree_output_constant_def): Adjust.
20803
3c27ce4c
JY
208042013-03-06 Joey Ye <joey.ye@arm.com>
20805
20806 PR lto/50293
20807 * gcc.c (convert_white_space): New function.
20808 (main): Handles white space in function name.
20809
8f6d1c86
OE
208102013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
20811
20812 PR target/56529
20813 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
20814 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
20815 to SH_DIV_CALL_TABLE for TARGET_SH2.
20816 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
20817 list.
20818 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
20819 call-table options.
20820
798a209f
SA
208212013-03-05 Sterling Augustine <saugustine@google.com>
20822 Cary Coutant <ccoutant@google.com>
20823
20824 PR debug/55364
20825 * dwarf2out.c (resolve_addr): Don't call
20826 remove_loc_list_addr_table_entries a second time for the same
20827 expression.
20828
6cfa417f 208292013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 20830
6cfa417f
JJ
20831 PR debug/56510
20832 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
20833 (avoid_complex_debug_insns): New function.
20834 (expand_debug_locations): Call it.
20835
20836 PR rtl-optimization/56484
20837 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
20838 lifetimes of hard registers on small register class machines.
20839
208402013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
20841
20842 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 20843 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 20844 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
20845 fast_interrupt.
20846 (microblaze_fast_interrupt_function_p): New function.
20847 (microblaze_is_interrupt_handler): Rename to
20848 microblaze_is_interrupt_variant and add fast_interrupt check.
20849 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
20850 (save_restore_insns): Likewise.
20851 (compute_frame_size): Likewise.
20852 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
20853 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
20854 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
20855 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
20856 microblaze_is_interrupt_variant.
20857
731aefac
KT
208582013-03-05 Kai Tietz <ktietz@redhat.com>
20859
20860 * sdbout.c (sdbout_one_type): Switch to current function's section
20861 supporting cold/hot.
20862
a72d8780 208632013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
20864
20865 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
20866 -mxl-reorder.
20867
334e71e8
JJ
208682013-03-05 Jakub Jelinek <jakub@redhat.com>
20869
0b50e654
JJ
20870 PR middle-end/56461
20871 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
20872 if VALGRIND_GET_VBITS is defined, temporarily make object
20873 memory all defined, and restore previous valgrind addressability
20874 and definability afterwards. Free this_object at the end.
20875
4ccf8f43
JJ
20876 PR middle-end/56461
20877 * lra.c (lra): Call lra_clear_live_ranges if live_p,
20878 right before calling lra_create_live_ranges, also call it
20879 when clearing live_p. Only call lra_clear_live_ranges
20880 at the end if live_p.
20881
334e71e8
JJ
20882 PR middle-end/56461
20883 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
20884
9ca966ca
RB
208852013-03-05 Richard Biener <rguenther@suse.de>
20886
20887 PR tree-optimization/56521
20888 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
20889 value-id.
20890
d273b176
SB
208912013-03-05 Steven Bosscher <steven@gcc.gnu.org>
20892
20893 PR c++/55135
20894 * except.h (remove_unreachable_eh_regions): New prototype.
20895 * except.c (remove_eh_handler_splicer): New function, split out
20896 of remove_eh_handler.
20897 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
20898 warning about running it on many EH regions one at a time.
20899 (remove_unreachable_eh_regions_worker): New function, walk the
20900 EH tree in depth-first order and remove non-marked regions.
20901 (remove_unreachable_eh_regions): New function.
20902 * tree-eh.c (mark_reachable_handlers): New function, split out
20903 from remove_unreachable_handlers.
20904 (remove_unreachable_handlers): Use mark_reachable_handlers and
20905 remove_unreachable_eh_regions.
20906 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
20907 and remove_unreachable_eh_regions.
20908
5e7f1aef
RB
209092013-03-05 Richard Biener <rguenther@suse.de>
20910
20911 PR middle-end/56525
20912 * loop-init.c (fix_loop_structure): Remove loops in two stages,
20913 not freeing them until the end.
20914
f276b762
AK
209152013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20916
20917 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
20918
12a43ab8
RB
209192013-03-05 Richard Biener <rguenther@suse.de>
20920
20921 PR tree-optimization/56270
20922 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
20923 of loads after scheduling an SLP instance.
20924
93675444
JJ
209252013-03-05 Jakub Jelinek <jakub@redhat.com>
20926
db4138e3
JJ
20927 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
20928 tic6x.exp.
20929 (check_gcc_parallelize): Run guality.exp as a separate job from
20930 vect.exp with unsorted.exp and $(dg_target_exps) separately from
20931 struct-layout-1.exp with stackalign.exp.
20932
dd3d1ec0
JJ
20933 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
20934
b8d381a3
JJ
20935 PR middle-end/56461
20936 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
20937 load_index sbitmap even if some bit in it isn't set.
20938
b4f9786b
JJ
20939 PR middle-end/56461
20940 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
20941 (discover_iteration_bound_by_body_walk): Change queues to
20942 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
20943 spelling in comment. Call safe_push on queues[bound_index] directly.
20944 Release queues[queue_index] in every iteration unconditionally.
20945 Release bounds vector.
20946
93675444
JJ
20947 PR middle-end/56461
20948 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
20949 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
20950 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
20951 inner_phis vector.
20952
3e492e9c
RB
209532013-03-05 Richard Biener <rguenther@suse.de>
20954
20955 PR lto/56515
20956 * tree-inline.c (remap_blocks_to_null): New function.
20957 (expand_call_inline): When expanding a call stmt without
20958 an associated block inline remap all callee blocks to NULL.
20959
a5d1569a
JJ
209602013-03-05 Jakub Jelinek <jakub@redhat.com>
20961
86efb5cd
JJ
20962 PR rtl-optimization/56494
20963 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
20964 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
20965 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
20966
85f5dbea
JJ
20967 PR middle-end/56461
20968 * sel-sched-ir.c (free_sched_pools): Release
20969 succs_info_pool.stack[succs_info_pool.max_top] vectors too
20970 if succs_info_pool.max_top isn't -1.
20971
a5d1569a
JJ
20972 PR bootstrap/56509
20973 * opts.c (opts_obstack, opts_concat): Moved to...
20974 * opts-common.c (opts_obstack, opts_concat): ... here.
20975
4432aa6c
JJ
209762013-03-04 Jakub Jelinek <jakub@redhat.com>
20977
20978 PR middle-end/56461
20979 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
20980
f3a1fb91
MJ
209812013-03-04 Martin Jambor <mjambor@suse.cz>
20982
20983 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
20984 all appropriate places.
20985
22110e6c
EB
209862013-01-04 Eric Botcazou <ebotcazou@adacore.com>
20987
20988 PR tree-optimization/56424
20989 * ipa-split.c (split_function): Do not set the RSO flag if result is
20990 not by reference and its type is a register type.
20991
a72d8780 209922013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 20993
88b97037 20994 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 20995 (microblaze_legitimate_pic_operand): Likewise
88b97037 20996 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
20997 new function microblaze_legitimate_pic_operand
20998 * config/microblaze/microblaze-protos.h
20999 (microblaze_legitimate_pic_operand): Declare.
21000
a72d8780 210012013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 21002
a72d8780 21003 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 21004 New predicate for supported rtx code types.
a72d8780 21005 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
21006 call_insn_simple_operand predicate.
21007
541d9ac8
JJ
210082013-03-04 Jakub Jelinek <jakub@redhat.com>
21009
5eb010bc
JJ
21010 PR middle-end/56461
21011 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
21012 partitions.ordered_remove.
21013
30862efc
JJ
21014 PR middle-end/56461
21015 * tree-vect-stmts.c (vectorizable_conversion): Don't call
21016 vec_oprnds0.create (1) for modifier == NONE.
21017
8930f723
JJ
21018 PR middle-end/56461
21019 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
21020 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
21021 vec_oprnds1 right before pushing anything to it for
21022 scalar_shift_arg.
21023
541d9ac8
JJ
21024 PR middle-end/56461
21025 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
21026 set nbbs to 0 instead of having separate code path.
21027 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
21028 instead of false as last argument if returning NULL.
21029
7aa7f2e3
SL
210302013-03-03 Sandra Loosemore <sandra@codesourcery.com>
21031
21032 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
21033 the attribute is now called "target" instead of "option".
21034 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
21035 * doc/tm.texi.in (Target Attributes): Likewise document the correct
21036 attribute/pragma name for TARGET_OPTION_VALID_P and
21037 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
21038 * doc/tm.texi: Regenerated.
21039
8930f723 210402013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 21041
8930f723 21042 * config/microblaze/microblaze.c:
cb8a1637 21043 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
21044 * config/microblaze/microblaze.h: Add -mxl-reorder to
21045 DRIVER_SELF_SPECS.
21046 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
21047 instructions emitted if TARGET_REORDER.
88b97037
UB
21048 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
21049 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 21050 separately.
cb8a1637 21051
4dc1d68c
XDL
210522013-03-01 Xinliang David Li <davidxl@google.com>
21053
21054 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
21055 walk length.
21056
689eaba3
JJ
210572013-03-01 Jakub Jelinek <jakub@redhat.com>
21058
9d676bf6
JJ
21059 PR middle-end/56461
21060 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
21061 vector even when returning true. Fix up function comment formatting.
21062
caff7edf
JJ
21063 PR middle-end/56461
21064 * ira-build.c (ira_loop_nodes_count): New variable.
21065 (create_loop_tree_nodes): Initialize it.
21066 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
21067
b6b9227d
JJ
21068 PR middle-end/56461
21069 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
21070 method on dr_chain and result_chain.
21071 * tree-vect-stmts.c (vectorizable_store): Only call
21072 result_chain.create if j == 0.
21073
689eaba3
JJ
21074 PR middle-end/56461
21075 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
21076 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
21077 before overwriting it.
21078
40bf31ed
TB
210792013-03-01 Tobias Burnus <burnus@net-b.de>
21080
21081 * doc/extended.texi (C Extensions): Change order in @menu
21082 to match @node.
21083 (Other MIPS Built-in Functions): Move last MIPS entry before
21084 "picoChip Built-in Functions".
21085 (SH Built-in Functions): Move after RX Built-in Functions.
21086 * doc/gcc.texi (Introduction): Change order in @menu
21087 to match @node.
21088 * doc/md.texi (Constraints): Ditto.
21089 * gty.texi (Type Information): Ditto.
21090 (User-provided marking routines for template types): Make
21091 subsection.
21092 * doc/invoke.texi (AArch64 Options): Move before
21093 "Adapteva Epiphany Options".
21094
e664c61c
KS
210952013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
21096 Jakub Jelinek <jakub@redhat.com>
21097
21098 PR sanitizer/56454
21099 * asan.c (gate_asan): Lookup no_sanitize_address instead of
21100 no_address_safety_analysis attribute.
21101 * doc/extend.texi (no_address_safety_attribute): Rename to
21102 no_sanitize_address attribute, mention no_address_safety_analysis
21103 attribute as deprecated alias.
21104
37b5ec8f
JJ
211052013-02-28 Jakub Jelinek <jakub@redhat.com>
21106
21107 PR middle-end/56461
21108 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
21109 type to vec<vec<tree> > *.
21110 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
21111 to be vec<tree> instead of vec<tree> *, set vec_defs
21112 to vNULL and call vec_defs.create (number_of_vects), adjust other
21113 uses of vec_defs.
21114 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
21115 vectorizable_condition): Adjust vect_get_slp_defs callers.
21116
ba96cdfb
JG
211172013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
21118
21119 * config/aarch64/aarch64.c
21120 (aarch64_float_const_representable): Remove unused variable.
21121
6f549691
JG
211222013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
21123
21124 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
21125
af55e82d
JG
211262013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
21127
21128 * config/aarch64/aarch64-builtins.c
21129 (aarch64_init_simd_builtins): Make static.
21130
1df3f464
JG
211312013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
21132
21133 * config/aarch64/aarch64.c
21134 (aarch64_simd_make_constant): Make static.
21135
f8f42513
MJ
211362013-02-28 Martin Jambor <mjambor@suse.cz>
21137
21138 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
21139 with no initialization to the RHS of debug statements.
21140
b48b3fc4
MJ
211412013-02-28 Martin Jambor <mjambor@suse.cz>
21142
21143 PR tree-optimization/56294
21144 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
21145 Adjust dumping.
21146 (get_access_replacement): Do not call create_access_replacement.
21147 Assert a replacement exists.
21148 (get_repl_default_def_ssa_name): Create the replacement declaration
21149 itself.
21150
c3ae224c
RR
211512013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21152
21153 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
21154 final_end_function.
21155
45fa0eef
MP
211562013-02-28 Marek Polacek <polacek@redhat.com>
21157
21158 PR rtl-optimization/56466
21159 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
21160 if we're changing a loop.
21161 (peel_loops_completely): Likewise.
21162
502c067d
PC
211632013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
21164
21165 PR c++/55813
21166 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
21167
ff24afc8
GJL
211682013-02-28 Georg-Johann Lay <avr@gjlay.de>
21169
21170 PR target/56445
21171 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
21172 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
21173 INTX_FTYPE_FX, FX_FTYPE_INTX.
21174 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
21175
c7b1fc1b
GJL
211762013-02-28 Georg-Johann Lay <avr@gjlay.de>
21177
21178 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
21179 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
21180 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
21181 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
21182 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
21183 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
21184 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
21185 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
21186 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
21187 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
21188 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
21189 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
21190 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
21191 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
21192 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
21193 (avrxmega6): Increase max flash segments from 5 to 6.
21194 * config/avr/t-multilib: Regenerate.
21195 * config/avr/avr-tables.opt: Regenerate.
21196 * doc/avr-mmcu.texi: Regenerate.
21197
4a0e3cfe
GJL
211982013-02-28 Georg-Johann Lay <avr@gjlay.de>
21199
21200 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
21201 (avr_device_to_arch): Rename to avr_device_to_ld.
21202 (avr_device_to_as): New prototype.
21203 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
21204 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
21205 * config/avr/driver-avr.c (avr_device_to_as): New.
21206 (avr_device_to_arch): Rename to avr_device_to_ld.
21207
97785e52
JJ
212082013-02-27 Jakub Jelinek <jakub@redhat.com>
21209
3f292312
JJ
21210 PR middle-end/56461
21211 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
21212 method on dr_chain and result_chain.
21213
a344216b
JJ
21214 PR middle-end/56461
21215 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
21216 pointer_set_destroy on not_executed_last_iteration.
21217
f121ad02 21218 PR middle-end/56461
88b97037 21219 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 21220
307f83a3
JJ
21221 PR middle-end/56461
21222 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
21223 FOR_EACH_DEFINED_FUNCTION when freeing state.
21224
e19624ee
JJ
21225 PR middle-end/56461
21226 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
21227 pool_free.
21228 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
21229 overwriting it.
21230
90e709fd
JJ
21231 PR middle-end/56461
21232 * ipa-cp.c (decide_whether_version_node): Call vec_free on
21233 known_aggs[i].items and release known_aggs vector.
21234
97785e52
JJ
21235 PR middle-end/56461
21236 * ipa-reference.c (propagate): Free node_info even for alias nodes.
21237
212382013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 21239
97785e52
JJ
21240 * config/microblaze/microblaze.c (microblaze_emit_compare):
21241 Use xor for EQ/NE comparisions.
21242 * config/microblaze/microblaze.md (cstoresf4): Add constraints
21243 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 21244
6fa5e0ed
JJ
212452013-02-27 Jakub Jelinek <jakub@redhat.com>
21246
21247 PR middle-end/56461
21248 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
21249 vector.
21250 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
21251 vec_safe_push, always update *slot.
21252 (redirect_edge_var_map_clear): Use vec_free.
21253 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
21254 (free_var_map_entry): Use vec_free.
21255 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
21256 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
21257
436a956a
AB
212582013-02-27 Andrey Belevantsev <abel@ispras.ru>
21259
21260 PR middle-end/45472
436a956a
AB
21261 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
21262 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
21263 Reorder tests for speculativeness in the logical and operator.
21264
f5c2caca
JJ
212652013-02-27 Jakub Jelinek <jakub@redhat.com>
21266
0fcb564b
JJ
21267 * incpath.c (add_standard_paths): Use reconcat instead of concat
21268 where appropriate and avoid leaking memory.
21269
dc357798
JJ
21270 * opts.h: Include obstack.h.
21271 (opts_concat): New prototype.
21272 (opts_obstack): New declaration.
21273 * opts.c (opts_concat): New function.
21274 (opts_obstack): New variable.
21275 (init_options_struct): Call gcc_init_obstack on opts_obstack.
21276 (finish_options): Use opts_concat instead of concat
21277 and XOBNEWVEC instead of XNEWVEC.
21278 * opts-common.c (generate_canonical_option, decode_cmdline_option,
21279 generate_option): Likewise.
21280 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
21281 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
21282
f5c2caca
JJ
21283 PR target/56455
21284 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
21285 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
21286
d0163673
JJ
212872013-02-26 Jakub Jelinek <jakub@redhat.com>
21288
21289 PR middle-end/56461
21290 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
21291
b5ad2b8e
JR
212922013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
21293
21294 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
21295 (arm_block_move_unaligned_straight): Likewise.
21296 (arm_adjust_block_mem): Likewise.
21297
9b639e2c
JR
212982013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
21299
21300 PR target/48901
21301 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
21302 temp, cond and label.
21303 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
21304
e13a0ccb
JR
21305 PR target/52500
21306 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
21307 * config/c6x/c6x.h (dbx_register_map): Update declaration.
21308
fbe4f171
JR
21309 PR target/52501
21310 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
21311 of prologue/epilogue functions.
21312
ae006543
JR
21313 PR target/52550
21314 * config/tilegx/tilegx.c (tilegx_expand_prologue):
21315 Remove unused variable cfa_offset.
21316 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
21317
c81369fa
JR
21318 PR target/54639
21319 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
21320 type promotion to unsigned.
21321
f8a8fea7
JR
21322 PR target/54640
21323 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
21324 for HOST_WIDE_INT of 32 bit / same size as int.
21325 (arm_block_move_unaligned_straight): Likewise.
21326 (arm_adjust_block_mem): Likewise.
21327
f8be5169
JR
21328 PR target/54662
21329 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
21330 ALL_CFLAGS.
21331
f1ad3354
MP
213322013-02-26 Marek Polacek <polacek@redhat.com>
21333
21334 PR tree-optimization/56426
88b97037 21335 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 21336
a6af0f42
RB
213372013-02-26 Richard Biener <rguenther@suse.de>
21338
21339 PR target/56444
21340 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
21341 unused variable loops.
21342
aca43c6c
JJ
213432013-02-26 Jakub Jelinek <jakub@redhat.com>
21344
cecbe5d9
JJ
21345 PR tree-optimization/56448
21346 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
21347 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
21348 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
21349 later operands of the references, or even first operand for
21350 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
21351
aca43c6c
JJ
21352 PR tree-optimization/56443
21353 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
21354 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
21355 to type_for_mode langhook.
21356
53e2e141
MT
213572013-02-25 Matt Turner <mattst88@gmail.com>
21358
21359 * doc/invoke.texi: Document r4700.
21360
259ee451
RB
213612013-02-25 Richard Biener <rguenther@suse.de>
21362
21363 PR tree-optimization/56175
21364 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
21365 split out from ...
21366 (simplify_bitwise_binary): ... here. Also guard the conversion
21367 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
21368
6d65e8f1
CM
213692013-02-25 Catherine Moore <clm@codesourcery.com>
21370
21371 Revert:
21372 2013-02-24 Catherine Moore <clm@codesourcery.com>
21373 Maciej W. Rozycki <macro@codesourcery.com>
21374 Tom de Vries <tom@codesourcery.com>
a72d8780 21375 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
21376 Iain Sandoe <iain@codesourcery.com>
21377 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 21378 Chao-ying Fu <fu@mips.com>
88b97037 21379
6d65e8f1 21380 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 21381 Document new function attributes.
6d65e8f1
CM
21382 * doc/invoke.texi (minterlink-compressed, mmicromips,
21383 m14k, m14ke, m14kec): Document new options.
21384 (minterlink-mips16): Update documentation.
21385 * doc/md.texi (ZC, ZD): Document new constraints.
21386 * configure.ac (gcc_cv_as_micromips): Check if linker
21387 supports the .set micromips directive.
21388 * configure: Regenerate.
21389 * config.in: Regenerate.
21390 * config/mips/mips-tables.opt: Regenerate.
21391 * config/mips/micromips.md: New file.
21392 * constraints.md (ZC, AD): New constraints.
21393 * config/mips/predicates.md (movep_src_register): New predicate.
21394 (movep_src_operand): New predicate.
21395 (non_volatile_mem_operand): New predicate.
21396 * config/mips/mips.md (multimem): New type.
21397 (length): Differentiate between 17-bit and 18-bit branch offsets.
21398 (MOVEP1, MOVEP2): New mode iterator.
21399 (mov_<load>l): Use ZC constraint.
21400 (mov_<load>r): Likewise.
21401 (mov_<store>l): Likewise.
21402 (mov_<store>r): Likewise.
21403 (*branch_equality<mode>_inverted): Add microMIPS support.
21404 (*branch_equality<mode>): Likewise.
21405 (*jump_absolute): Likewise.
21406 (indirect_jump_<mode>): Likewise.
21407 (tablejump_<mode>): Likewise.
21408 (<optab>_internal): Likewise.
21409 (sibcall_internal): Likewise.
21410 (sibcall_value_internal): Likewise.
21411 (prefetch): Use constraint ZD.
21412 * config/mips/mips.opt (minterlink-compressed): New option.
21413 (minterlink-mips16): Now an alias for minterlink-compressed.
21414 (mmicromips): New option.
21415 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
21416 (compare_and_swap_12): Likewise.
21417 (sync_add<mode>): Likewise.
21418 (sync_<optab>_12): Likewise.
21419 (sync_old_<optab>_12): Likewise.
21420 (sync_new_<optab>_12): Likewise.
21421 (sync_nand_12): Likewise.
21422 (sync_old_nand_12): Likewise.
21423 (sync_new_nand_12): Likewise.
21424 (sync_sub<mode>): Likewise.
21425 (sync_old_add<mode>): Likewise.
21426 (sync_old_sub<mode>): Likewise.
21427 (sync_new_add<mode>): Likewise.
21428 (sync_new_sub<mode>): Likewise.
21429 (sync_<optab><mode>): Likewise.
21430 (sync_old_<optab><mode>): Likewise.
21431 (sync_new_<optab><mode>): Likewise.
21432 (sync_nand<mode>): Likewise.
21433 (sync_old_nand<mode>): Likewise.
21434 (sync_new_nand<mode>): Likewise.
21435 (sync_lock_test_and_set<mode>): Likewise.
21436 (test_and_set_12): Likewise.
21437 (atomic_compare_and_swap<mode>): Likewise.
21438 (atomic_exchange<mode>_llsc): Likewise.
21439 (atomic_fetch_add<mode>_llsc): Likewise.
21440 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
21441 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
21442 (umips_save_restore_pattern_p): Likewise.
21443 (umips_load_store_pair_p): Likewise.
21444 (umips_output_load_store_pair): Likewise.
21445 (umips_movep_target_p): Likewise.
21446 (umips_12bit_offset_address_p): Likewise.
21447 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
21448 (mips_base_mips16): Rename this...
21449 (mips_base_compression_flags): ...to this. Update all uses.
21450 (mips_attribute_table): Add micromips, nomicromips and nocompression.
21451 (mips_mips16_decl_p): Delete.
21452 (mips_nomips16_decl_p): Delete.
21453 (mips_get_compress_on_flags): New function.
21454 (mips_get_compress_off_flags): New function.
21455 (mips_get_compress_mode): New function.
21456 (mips_get_compress_on_name): New function.
21457 (mips_get_compress_off_name): New function.
21458 (mips_insert_attributes): Support multiple compression types.
21459 (mips_merge_decl_attributes): Likewise.
21460 (umips_12bit_offset_address_p): New function.
21461 (mips_start_function_definition): Emit .set micromips directive.
21462 (mips_call_may_need_jalx_p): New function.
21463 (mips_function_ok_for_sibcall): Add microMIPS support.
21464 (mips_print_operand_punctuation): Support short delay slots and
21465 compact jumps.
21466 (umips_swm_mask, umips_swm_encoding): New.
21467 (umips_build_save_restore): New function.
21468 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
21469 (was_mips16_p): Remove.
21470 (old_compression_mode): New.
21471 (mips_set_compression_mode): New function.
21472 (mips_set_current_function): Add microMIPS support.
21473 (mips_option_override): Likewise.
21474 (umips_save_restore_pattern_p): New function.
21475 (umips_output_save_restore): New function.
21476 (umips_load_store_pair_p_1): New function.
21477 (umips_load_store_pair_p): New function.
21478 (umips_output_load_store_pair_1): New function.
21479 (umips_output_load_store_pair): New function.
21480 (umips_movep_target_p) New function.
21481 (mips_prepare_pch_save): Add microMIPS support.
21482 * config/mips/mips.h (TARGET_COMPRESSION): New.
21483 (TARGET_CPU_CPP_BUILTINS): Update macro
21484 to use new compression flags and to support microMIPS.
21485 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
21486 (MIPS_ARCH_FLOAT_SPEC): Likewise.
21487 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
21488 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
21489 (ASM_SPEC): Support mmicromips and mno-micromips.
21490 (M16STORE_REG_P): New macro.
21491 (MIPS_CALL): Support TARGET_MICROMIPS.
21492 (MICROMIPS_J): New macro.
21493 (mips_base_mips16): Rename this...
21494 (mips_base_compression_flags): ...to this.
21495 (UMIPS_12BIT_OFFSET_P): New macro.
21496 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
21497 (MULTILIB_DIRNAMES): Likewise.
21498
5e5df392
TV
214992013-02-25 Tom de Vries <tom@codesourcery.com>
21500
21501 PR rtl-optimization/56131
21502 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
21503 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
21504 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
21505
3fdb53c1
TB
215062013-02-25 Tobias Burnus <burnus@net-b.de>
21507
21508 * doc/invoke.texi (-fsanitize=): Move from optimization
21509 to debugging options.
21510
ed358aea
AB
215112013-02-25 Andrey Belevantsev <abel@ispras.ru>
21512
21513 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
21514
f45e9053
AB
215152013-02-25 Andrey Belevantsev <abel@ispras.ru>
21516 Alexander Monakov <amonakov@ispras.ru>
21517
21518 PR middle-end/56077
21519 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
21520 flush pending lists also on non-jumps. Adjust comment.
21521
6941b508
CM
215222013-02-24 Catherine Moore <clm@codesourcery.com>
21523 Maciej W. Rozycki <macro@codesourcery.com>
21524 Tom de Vries <tom@codesourcery.com>
a72d8780 21525 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
21526 Iain Sandoe <iain@codesourcery.com>
21527 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 21528 Chao-ying Fu <fu@mips.com>
6941b508
CM
21529
21530 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 21531 Document new function attributes.
6941b508
CM
21532 * doc/invoke.texi (minterlink-compressed, mmicromips,
21533 m14k, m14ke, m14kec): Document new options.
21534 (minterlink-mips16): Update documentation.
21535 * doc/md.texi (ZC, ZD): Document new constraints.
21536 * configure.ac (gcc_cv_as_micromips): Check if linker
21537 supports the .set micromips directive.
21538 * configure: Regenerate.
21539 * config.in: Regenerate.
21540 * config/mips/mips-tables.opt: Regenerate.
21541 * config/mips/micromips.md: New file.
21542 * constraints.md (ZC, AD): New constraints.
21543 * config/mips/predicates.md (movep_src_register): New predicate.
21544 (movep_src_operand): New predicate.
21545 (non_volatile_mem_operand): New predicate.
21546 * config/mips/mips.md (multimem): New type.
21547 (length): Differentiate between 17-bit and 18-bit branch offsets.
21548 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 21549 (mov_<load>l): Use ZC constraint.
6941b508
CM
21550 (mov_<load>r): Likewise.
21551 (mov_<store>l): Likewise.
21552 (mov_<store>r): Likewise.
21553 (*branch_equality<mode>_inverted): Add microMIPS support.
21554 (*branch_equality<mode>): Likewise.
21555 (*jump_absolute): Likewise.
21556 (indirect_jump_<mode>): Likewise.
21557 (tablejump_<mode>): Likewise.
21558 (<optab>_internal): Likewise.
21559 (sibcall_internal): Likewise.
21560 (sibcall_value_internal): Likewise.
21561 (prefetch): Use constraint ZD.
21562 * config/mips/mips.opt (minterlink-compressed): New option.
21563 (minterlink-mips16): Now an alias for minterlink-compressed.
21564 (mmicromips): New option.
21565 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
21566 (compare_and_swap_12): Likewise.
21567 (sync_add<mode>): Likewise.
21568 (sync_<optab>_12): Likewise.
21569 (sync_old_<optab>_12): Likewise.
21570 (sync_new_<optab>_12): Likewise.
21571 (sync_nand_12): Likewise.
21572 (sync_old_nand_12): Likewise.
21573 (sync_new_nand_12): Likewise.
21574 (sync_sub<mode>): Likewise.
21575 (sync_old_add<mode>): Likewise.
21576 (sync_old_sub<mode>): Likewise.
21577 (sync_new_add<mode>): Likewise.
21578 (sync_new_sub<mode>): Likewise.
21579 (sync_<optab><mode>): Likewise.
21580 (sync_old_<optab><mode>): Likewise.
21581 (sync_new_<optab><mode>): Likewise.
21582 (sync_nand<mode>): Likewise.
21583 (sync_old_nand<mode>): Likewise.
21584 (sync_new_nand<mode>): Likewise.
21585 (sync_lock_test_and_set<mode>): Likewise.
21586 (test_and_set_12): Likewise.
21587 (atomic_compare_and_swap<mode>): Likewise.
21588 (atomic_exchange<mode>_llsc): Likewise.
21589 (atomic_fetch_add<mode>_llsc): Likewise.
21590 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
21591 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
21592 (umips_save_restore_pattern_p): Likewise.
21593 (umips_load_store_pair_p): Likewise.
21594 (umips_output_load_store_pair): Likewise.
21595 (umips_movep_target_p): Likewise.
21596 (umips_12bit_offset_address_p): Likewise.
21597 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
21598 (mips_base_mips16): Rename this...
21599 (mips_base_compression_flags): ...to this. Update all uses.
21600 (mips_attribute_table): Add micromips, nomicromips and nocompression.
21601 (mips_mips16_decl_p): Delete.
21602 (mips_nomips16_decl_p): Delete.
3fdb53c1 21603 (mips_get_compress_on_flags): New function.
6941b508
CM
21604 (mips_get_compress_off_flags): New function.
21605 (mips_get_compress_mode): New function.
21606 (mips_get_compress_on_name): New function.
21607 (mips_get_compress_off_name): New function.
21608 (mips_insert_attributes): Support multiple compression types.
21609 (mips_merge_decl_attributes): Likewise.
21610 (umips_12bit_offset_address_p): New function.
21611 (mips_start_function_definition): Emit .set micromips directive.
21612 (mips_call_may_need_jalx_p): New function.
21613 (mips_function_ok_for_sibcall): Add microMIPS support.
21614 (mips_print_operand_punctuation): Support short delay slots and
21615 compact jumps.
21616 (umips_swm_mask, umips_swm_encoding): New.
21617 (umips_build_save_restore): New function.
21618 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
21619 (was_mips16_p): Remove.
21620 (old_compression_mode): New.
21621 (mips_set_compression_mode): New function.
21622 (mips_set_current_function): Add microMIPS support.
21623 (mips_option_override): Likewise.
21624 (umips_save_restore_pattern_p): New function.
21625 (umips_output_save_restore): New function.
21626 (umips_load_store_pair_p_1): New function.
21627 (umips_load_store_pair_p): New function.
21628 (umips_output_load_store_pair_1): New function.
21629 (umips_output_load_store_pair): New function.
21630 (umips_movep_target_p) New function.
21631 (mips_prepare_pch_save): Add microMIPS support.
21632 * config/mips/mips.h (TARGET_COMPRESSION): New.
21633 (TARGET_CPU_CPP_BUILTINS): Update macro
21634 to use new compression flags and to support microMIPS.
21635 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
21636 (MIPS_ARCH_FLOAT_SPEC): Likewise.
21637 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
21638 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
21639 (ASM_SPEC): Support mmicromips and mno-micromips.
21640 (M16STORE_REG_P): New macro.
21641 (MIPS_CALL): Support TARGET_MICROMIPS.
21642 (MICROMIPS_J): New macro.
21643 (mips_base_mips16): Rename this...
21644 (mips_base_compression_flags): ...to this.
21645 (UMIPS_12BIT_OFFSET_P): New macro.
21646 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
21647 (MULTILIB_DIRNAMES): Likewise.
21648
cdebbc6d
JJ
216492013-02-24 Jakub Jelinek <jakub@redhat.com>
21650
21651 PR target/52555
21652 * target-globals.c (save_target_globals): For init_reg_sets and
21653 target_reinit remporarily set this_fn_optabs to this_target_optabs.
21654
18c63565
JG
216552013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
21656
21657 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
21658 * config/aarch64/t-aarch64
21659 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
21660
2194f7a2
VM
216612013-02-22 Vladimir Makarov <vmakarov@redhat.com>
21662
21663 PR inline-asm/56148
21664 * lra-constraints.c (process_alt_operands): Reload operand
21665 conflicting with earlier clobber only if no more other conflicting
21666 operands.
21667
7d613735
JJ
216682013-02-22 Jakub Jelinek <jakub@redhat.com>
21669
21670 PR sanitizer/56393
21671 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
21672 if not linking a shared library.
21673
ac8d93a7
SL
216742013-02-22 Seth LaForge <sethml@google.com>
21675
21676 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
21677
e0237780
GY
216782013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
21679
3fdb53c1
TB
21680 * config/arm/arm.md (split for extendsidi): Update condition.
21681 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
21682 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
21683 (qhs_zextenddi_cstr): Likewise.
e0237780 21684
d7fde18c
JJ
216852013-02-21 Jakub Jelinek <jakub@redhat.com>
21686
be63b77d
JJ
21687 PR middle-end/56420
21688 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
21689 avoid signed wrapping.
21690 (expand_mult): Handle properly multiplication by
21691 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
21692 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
21693 in the compiler if coeff is HOST_WIDE_INT_MIN.
21694 (expand_divmod): Don't make ext_op1 static, change it's type to
21695 uhwi. Avoid undefined behavior in -INTVAL (op1).
21696
d7fde18c
JJ
21697 PR rtl-optimization/50339
21698 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
21699 field.
21700 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
21701 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
21702 into splitting_ashiftrt field.
21703 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
21704 ASHIFTRT.
21705 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
21706 choices.
21707
6aad4455
AH
217082013-02-20 Aldy Hernandez <aldyh@redhat.com>
21709
21710 PR middle-end/56108
21711 * trans-mem.c (execute_tm_mark): Do not expand transactions that
21712 are sure to go irrevocable.
21713
38fe784d
HPN
217142013-02-21 Hans-Peter Nilsson <hp@axis.com>
21715
21716 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
21717 scalars are valid operands.
21718
0fd44da3
MJ
217192013-02-21 Martin Jambor <mjambor@suse.cz>
21720
21721 PR tree-optimization/56310
21722 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
21723 only matching indices and non-negative final offsets.
21724 (intersect_aggregates_with_edge): Pass src_idx to
21725 agg_replacements_to_vector. Pass src_idx insstead of index to
21726 intersect_with_agg_replacements.
21727
7a92038b
MJ
217282013-02-21 Martin Jambor <mjambor@suse.cz>
21729
21730 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
21731 instead of hard-wired defaults.
21732
c0da9c37
MR
217332013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
21734
21735 * doc/invoke.texi (MIPS Options): Update documentation of the
21736 floating-point multiply-accumulate instruction restrictions.
21737
d247ea0c 217382013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
21739
21740 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
21741 asan_shadow_offset on x86_64 linux.
21742
22deefcb
RB
217432013-02-21 Richard Biener <rguenther@suse.de>
21744
21745 PR tree-optimization/56415
21746 Revert
21747 2013-02-11 Richard Biener <rguenther@suse.de>
21748
21749 PR tree-optimization/56273
21750 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
21751 first VRP run.
21752
7bcc6e75
JJ
217532013-02-21 Jakub Jelinek <jakub@redhat.com>
21754
a0ad148f
JJ
21755 PR bootstrap/56258
21756 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
21757 instead of @itemx.
21758
7bcc6e75
JJ
21759 PR inline-asm/56405
21760 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
21761 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
21762
a0a7b611
JH
217632013-02-20 Jan Hubicka <jh@suse.cz>
21764
21765 PR tree-optimization/56265
88b97037
UB
21766 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
21767 when target is referenced for first time.
a0a7b611 21768
c0e50f72
RB
217692013-02-20 Richard Biener <rguenther@suse.de>
21770
21771 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
21772 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
21773 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
21774 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
21775 not return anything.
21776 (rename_ssa_copies): Do not remove unused locals.
21777 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 21778 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
21779 * passes.c (execute_function_todo): Do not schedule unused locals
21780 removal if cleanup_tree_cfg did something.
21781 * tree-ssa-live.c (remove_unused_locals): Dump statistics
21782 about the number of removed locals.
21783
a52ca739
RB
217842013-02-20 Richard Biener <rguenther@suse.de>
21785
21786 PR tree-optimization/56398
88b97037 21787 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 21788
ec9c9d1b
MJ
217892013-02-20 Martin Jambor <mjambor@suse.cz>
21790
21791 PR tree-optimization/55334
21792 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
21793 restricted pointers to arrays.
21794
e91c8ed6 217952013-02-20 Richard Biener <rguenther@suse.de>
88b97037 21796 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
21797
21798 PR tree-optimization/56396
21799 * tree-ssa-ccp.c (n_const_val): New static variable.
21800 (get_value): Return NULL for SSA names we don't have a lattice
21801 entry for.
21802 (ccp_initialize): Initialize n_const_val.
21803 * tree-ssa-copy.c (n_copy_of): New static variable.
21804 (init_copy_prop): Initialize n_copy_of.
21805 (get_value): Return NULL_TREE for SSA names we don't have a
21806 lattice entry for.
21807
3d916479
MJ
218082013-02-20 Martin Jambor <mjambor@suse.cz>
21809
21810 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
21811
71a86758
RB
218122013-02-20 Richard Biener <rguenther@suse.de>
21813
21814 * genpreds.c (write_lookup_constraint): Do not compare first
21815 letter of the constraint again.
21816
79836a12
RB
218172013-02-20 Richard Biener <rguenther@suse.de>
21818
21819 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
21820 and ceil_log2.
21821 (get_use_iv_cost): Terminate hashtable walk when coming across
21822 an empty entry.
21823
bbe4fb2c
IZ
218242013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
21825
21826 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
21827 reassociation for avx2 targets.
21828
a72d8780 218292012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 21830
c77f83d5
EI
21831 * config/microblaze/microblaze.c: microblaze_has_clz = 0
21832 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 21833 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
21834 version and TARGET_PATTERN_COMPARE check
21835 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 21836
a72d8780 218372012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 21838
a72d8780 21839 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
21840 function before branching.
21841
242387fa
AB
218422012-02-19 Andrey Belevantsev <abel@ispras.ru>
21843
21844 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
21845 DUMP_INSN_RTX_UID.
21846 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
21847
b4979ab9
AB
218482012-02-19 Andrey Belevantsev <abel@ispras.ru>
21849
21850 PR middle-end/55889
b4979ab9
AB
21851 * sel-sched.c: Include ira.h.
21852 (implicit_clobber_conflict_p): New function.
21853 (moveup_expr): Use it.
88b97037 21854 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 21855
24d63016
RB
218562013-02-19 Richard Biener <rguenther@suse.de>
21857
21858 PR tree-optimization/56384
21859 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
21860 (vn_hash_type): Split out from ...
21861 (vn_hash_constant_with_type): ... here.
21862 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
21863 (vn_phi_eq): Compare types from vn_phi_s structure.
21864 (vn_phi_lookup): Populate vn_phi_s type.
21865 (vn_phi_insert): Likewise.
21866
a475fd3d
JJ
218672013-02-19 Jakub Jelinek <jakub@redhat.com>
21868
47cc28f5
JJ
21869 PR tree-optimization/56350
21870 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
21871 if haven't found reduction or nested cycle operand, rather than
21872 asserting we must find it.
21873
a475fd3d
JJ
21874 PR tree-optimization/56381
21875 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
21876 to fold_build3.
21877
218782013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
21879 Jakub Jelinek <jakub@redhat.com>
21880
21881 PR target/52555
21882 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
21883 (swap_optab_enable): Same.
21884 (init_all_optabs): Use argument instead of global.
88b97037 21885 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
21886 * expr.h (init_all_optabs): Add argument to prototype.
21887 (TREE_OPTIMIZATION_OPTABS): New.
21888 (save_optabs_if_changed): Protoize.
21889 * optabs.h: Declare this_fn_optabs.
21890 * optabs.c (save_optabs_if_changed): New.
21891 Declare this_fn_optabs.
21892 (init_optabs): Add argument to init_all_optabs() call.
21893 * function.c (invoke_set_current_function_hook): Handle per
21894 function optabs.
21895 * function.h (struct function): New field optabs.
21896 * config/mips/mips.c (mips_set_mips16_mode): Handle when
21897 optimization_current_node has changed.
21898 * target-globals.h (save_target_globals_default_opts): Protoize.
21899 * target-globals.c (save_target_globals_default_opts): New.
21900
3f587ca3
JDA
219012013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21902
21903 PR target/56347
21904 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
21905 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
21906
21907 PR target/56214
21908 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
21909 and HImode, require all displacements to be an integer multiple of
21910 their mode size.
ceaca33e
JDA
21911 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
21912 only allow QImode and HImode when reload is in progress and strict is
21913 true. Likewise for symbolic addresses. Use base14_operand to check
21914 displacements in REG+BASE addresses.
21915
fe0b4796
RB
219162013-02-18 Richard Biener <rguenther@suse.de>
21917
21918 PR tree-optimization/56366
21919 * tree-vect-loop.c (get_initial_def_for_induction): Properly
21920 handle sign-conversion of outer-loop initial induction value.
21921
6aaf596b
RB
219222013-02-18 Richard Biener <rguenther@suse.de>
21923
73db8ff1 21924 PR middle-end/56349
6aaf596b
RB
21925 * cfghooks.c (merge_blocks): If we merge a latch into another
21926 block adjust references to it.
21927 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
21928 (verify_loop_structure): Verify that a recorded latch is in fact
21929 a latch.
21930
5e97dfb6
RB
219312013-02-18 Richard Biener <rguenther@suse.de>
21932
21933 PR tree-optimization/56321
21934 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
21935 order SSA name release and virtual operand unlinking.
21936
825527e8
EI
219372013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21938
21939 * config/microblaze/microblaze.md (save_stack_block): Define.
21940 (restore_stack_block): Likewise.
21941
debd11d9
EI
219422013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21943
21944 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
21945 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
21946 * config/microblaze/microblaze.c (microblaze_option_override):
21947 Bail out early for PIC modes when target does not support PIC.
21948
8ec77be0
EI
219492013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
21950
88b97037 21951 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
21952 Replace with a microblaze version.
21953 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 21954 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
21955 microblaze.
21956
b41288b3
JJ
219572013-02-16 Jakub Jelinek <jakub@redhat.com>
21958 Dodji Seketeli <dodji@redhat.com>
21959
21960 PR asan/56330
88b97037 21961 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
21962 (instrument_mem_region_access): Do not forget to always put
21963 instrumentation of the of 'base' and 'base + len' in a "if (len !=
21964 0) statement, even for cases where either 'base' or 'base + len'
21965 are not instrumented -- because they have been previously
21966 instrumented. Simplify the logic by putting all the statements
21967 instrument 'base + len' inside a sequence, and then insert that
21968 sequence right before the current insertion point. Then, to
21969 instrument 'base + len', just get an iterator on that statement.
21970 And do not forget to update the pointer to iterator the function
21971 received as argument.
21972
47918951
VM
219732013-02-15 Vladimir Makarov <vmakarov@redhat.com>
21974
21975 PR rtl-optimization/56348
21976 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
21977
3fb7c699
SB
219782013-02-15 Steven Bosscher <steven@gcc.gnu.org>
21979
21980 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
21981 (clean_graph_dump_file): Pass base to start_graph_dump.
21982
576fe41a
RH
219832013-02-14 Richard Henderson <rth@redhat.com>
21984
21985 PR target/55941
21986 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
21987
bb3accfa
SB
219882013-02-14 Steven Bosscher <steven@gcc.gnu.org>
21989
21990 * collect2-aix.h: Define F_LOADONLY.
21991
03143140
RB
219922013-02-14 Richard Biener <rguenther@suse.de>
21993
21994 PR lto/50494
21995 * varasm.c (output_constant_def_1): Get the decl representing
21996 the constant as argument.
21997 (output_constant_def): Wrap output_constant_def_1.
21998 (make_decl_rtl): Use output_constant_def_1 with the decl
21999 representing the constant.
22000 (build_constant_desc): Optionally re-use a decl already
22001 representing the constant.
22002 (tree_output_constant_def): Adjust.
22003
8fb06726
DS
220042013-02-14 Dodji Seketeli <dodji@redhat.com>
22005
22006 Fix an asan crash
22007 * asan.c (instrument_builtin_call): Really put the length of the
22008 second source argument into src1_len.
22009
c4bfe8bf
JJ
220102013-02-13 Jakub Jelinek <jakub@redhat.com>
22011
22012 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
22013 argument. If it is false, don't create edge from then_bb to
22014 fallthru_bb.
22015 (insert_if_then_before_iter): Pass true to it.
22016 (build_check_stmt): Pass false to it.
22017 (transform_statements): Flush hash table only on extended basic
22018 block boundaries, rather than at the beginning of every bb.
22019 Don't flush hash table on nonfreeing_call_p calls.
22020 * tree-flow.h (nonfreeing_call_p): New prototype.
22021 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
22022
7afe2801
DM
220232013-02-13 David S. Miller <davem@davemloft.net>
22024
22025 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
22026
70cc3288
VM
220272013-02-13 Vladimir Makarov <vmakarov@redhat.com>
22028
22029 PR target/56184
22030 * ira.c (max_regno_before_ira): Move from ...
22031 (ira): ... here.
22032 (fix_reg_equiv_init): Use max_regno_before_ira instead of
22033 vec_safe_length.
22034
6422242b
JJ
220352013-02-13 Jakub Jelinek <jakub@redhat.com>
22036
22037 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
22038
976a81ee
RB
220392013-02-13 Richard Biener <rguenther@suse.de>
22040
22041 PR lto/56295
22042 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
22043 globals in MEM_REFs.
22044
c1874a87
RB
220452013-02-13 Richard Biener <rguenther@suse.de>
22046
22047 * loop-init.c (loop_optimizer_init): Clear loop state when
22048 re-initializing preserved loops.
22049 * loop-unswitch.c (unswitch_single_loop): Return whether
22050 we unswitched the loop. Do not verify loop state here.
88b97037 22051 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 22052
b4ab7d34
KS
220532013-02-13 Kostya Serebryany <kcc@google.com>
22054
88b97037
UB
22055 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
22056 on x86_64 linux.
b4ab7d34
KS
22057 * sanitizer.def: Rename __asan_init to __asan_init_v1.
22058
bdcbe80c
DS
220592013-02-12 Dodji Seketeli <dodji@redhat.com>
22060
22061 Avoid instrumenting duplicated memory access in the same basic block
22062 * Makefile.in (asan.o): Add new dependency on hash-table.h
22063 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
22064 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
22065 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
22066 (free_mem_ref_resources, has_mem_ref_been_instrumented)
22067 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
22068 (get_mem_ref_of_assignment): New functions.
22069 (get_mem_refs_of_builtin_call): Extract from
22070 instrument_builtin_call and tweak a little bit to make it fit with
22071 the new signature.
22072 (instrument_builtin_call): Use the new
22073 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
22074 of is_gimple_builtin_call.
22075 (instrument_derefs, instrument_mem_region_access): Insert the
22076 instrumented memory reference into the hash table.
22077 (maybe_instrument_assignment): Renamed instrument_assignment into
22078 this, and change it to advance the iterator when instrumentation
22079 actually happened and return true in that case. This makes it
22080 homogeneous with maybe_instrument_assignment, and thus give a
22081 chance to callers to be more 'regular'.
22082 (transform_statements): Clear the memory reference hash table
22083 whenever we enter a new BB, when we cross a function call, or when
22084 we are done transforming statements. Use
22085 maybe_instrument_assignment instead of instrumentation. No more
22086 need to special case maybe_instrument_assignment and advance the
22087 iterator after calling it; it's now handled just like
22088 maybe_instrument_call. Update comment.
22089
4861a1f7
RB
220902013-02-13 Richard Biener <rguenther@suse.de>
22091
22092 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
22093 Fix loop discovery code.
22094
1c86bd80
VM
220952013-02-12 Vladimir Makarov <vmakarov@redhat.com>
22096
22097 PR inline-asm/56148
22098 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 22099 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
22100 the operand is not reloaded. Prefer to reload conflicting operand
22101 if earlyclobber and matching operands are the same.
22102
7cbda518
RB
221032013-02-12 Richard Biener <rguenther@suse.de>
22104
22105 PR lto/56297
22106 * lto-streamer-out.c (write_symbol): Do not output symbols
22107 for hard register variables.
22108
e68a4ef6
GJL
221092013-02-12 Georg-Johann Lay <avr@gjlay.de>
22110
22111 PR target/54222
22112 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
22113 (umulsidi3_insn, mulsidi3_insn): New insns.
22114
a72d8780 221152013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
22116
22117 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
22118 (struct tune_params): Add vec_costs field.
22119 * config/arm/arm.c (arm_builtin_vectorization_cost)
22120 (arm_add_stmt_cost): New functions.
22121 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
22122 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
22123 (arm_default_vec_cost): New struct of type cpu_vec_costs.
22124 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
22125 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
22126 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
22127 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
22128
43320568
RB
221292013-02-12 Richard Biener <rguenther@suse.de>
22130
22131 PR lto/56295
22132 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
22133 decls again if possible.
22134
a011aa39
RB
221352013-02-12 Richard Biener <rguenther@suse.de>
22136
22137 PR middle-end/56288
22138 * tree-ssa.c (verify_ssa_name): Fix check, move
22139 SSA_NAME_IN_FREE_LIST check up.
22140
6da26889
JJ
221412013-02-12 Jakub Jelinek <jakub@redhat.com>
22142 Steven Bosscher <steven@gcc.gnu.org>
22143
22144 PR rtl-optimization/56151
22145 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
22146 equal to op0 or op1, and last_insn pattern is CODE operation
22147 with MEM dest and one of the operands matches that MEM.
22148
f80e0faf
ST
221492013-02-11 Sriraman Tallam <tmsriramgoogle.com>
22150
22151 * doc/extend.texi: Document Function Multiversioning and "default"
22152 parameter string to target attribute.
22153 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
22154 target attribute parameter is "default".
22155 (ix86_compare_version_priority): Remove checks for target attribute.
22156 (ix86_mangle_function_version_assembler_name): Change error to sorry.
22157 Remove check for target attribute equal to NULL. Add assert.
22158 (ix86_generate_version_dispatcher_body): Change error to sorry.
22159
6c59ffd1
IS
221602013-02-11 Iain Sandoe <iain@codesourcery.com>
22161 Jack Howarth <howarth@bromo.med.uc.edu>
22162 Patrick Marlier <patrick.marlier@gmail.com>
22163
22164 PR libitm/55693
22165 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
22166 define ENDFILE_SPEC as TM_DESTRUCTOR.
22167 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
22168
a72d8780 221692013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
22170 Jack Howarth <howarth@bromo.med.uc.edu>
22171 Jakub Jelinek <jakub@redhat.com>
22172
22173 PR sanitizer/55617
22174 * config/darwin.c (cdtor_record): Rename ctor_record.
22175 (sort_cdtor_records): Rename sort_ctor_records.
22176 (finalize_dtors): New routine to sort destructors by
22177 priority before use in assemble_integer.
22178 (machopic_asm_out_destructor): Use finalize_dtors if needed.
22179
b63fe007
UB
221802013-02-11 Uros Bizjak <ubizjak@gmail.com>
22181
22182 PR rtl-optimization/56275
22183 * simplify-rtx.c (avoid_constant_pool_reference): Check that
22184 offset is non-negative and less than cmode size before
22185 calling simplify_subreg.
22186
8e89b5b5
RB
221872013-02-11 Richard Biener <rguenther@suse.de>
22188
22189 PR tree-optimization/56264
22190 * cfgloop.h (fix_loop_structure): Adjust prototype.
22191 * loop-init.c (fix_loop_structure): Return the number of
22192 newly discovered loops.
22193 * tree-cfgcleanup.c (repair_loop_structures): When new loops
22194 are discovered, do a full loop-closed SSA rewrite.
22195
b4a4b56d
RB
221962013-02-11 Richard Biener <rguenther@suse.de>
22197
22198 PR tree-optimization/56273
22199 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
22200 first VRP run.
22201 (check_array_ref): Fix missing newline in dumps.
22202 (search_for_addr_array): Likewise.
22203
0c885229
DE
222042013-02-09 David Edelsohn <dje.gcc@gmail.com>
22205
22206 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
22207
59ac9a55
JJ
222082013-02-09 Jakub Jelinek <jakub@redhat.com>
22209
22210 PR target/56256
22211 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
22212
25bb0bb5
VM
222132013-02-08 Vladimir Makarov <vmakarov@redhat.com>
22214
22215 PR rtl-optimization/56246
0c885229 22216 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
22217 reload pseudo.
22218 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
22219 constraints are satisfied.
22220
a698cc03
JL
222212013-02-08 Jeff Law <law@redhat.com>
22222
22223 PR debug/53948
22224 * emit-rtl.c (reg_is_parm_p): New function.
22225 * regs.h (reg_is_parm_p): New prototype.
22226 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
22227 callee-clobbered registers.
22228
e1122ddd
MM
222292013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
22230
22231 PR target/56043
22232 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
22233 If there is no implicit builtin declaration, just return NULL.
22234
19c5f6e6
UB
222352013-02-08 Uros Bizjak <ubizjak@gmail.com>
22236
22237 * config/i386/sse.md (FMAMODEM): New mode iterator.
22238 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
22239 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
22240
2480f2ca 222412013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 22242
2480f2ca
UB
22243 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
22244 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
22245 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
22246
222472013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
22248
22249 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
22250 (microblaze*-*-elf): Likewise.
22251 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
22252 LINK_SPEC.
22253 * config/microblaze/microblaze-c.c: Add builtin defines for
22254 _LITTLE_ENDIAN and _BIG_ENDIAN.
22255 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
22256 add to TARGET_DEFAULT flags.
76ef61fb 22257 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
22258 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
22259 * config/microblaze/microblaze.md: Update extendsidi2 and
22260 movdi_internal instructions to use low-order / high-order reg
22261 print_operands.
22262 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
22263 options and inversemask / mask of LITTLE_ENDIAN.
22264 * config/microblaze/t-microblaze: Expand multilib options to
22265 include mlittle-endian (le) and update exceptions patterns.
22266
600a5961
JJ
222672013-02-08 Jakub Jelinek <jakub@redhat.com>
22268
5df81313
JJ
22269 PR rtl-optimization/56195
22270 * lra-constraints.c (get_reload_reg): Don't reuse regs
22271 if they have smaller mode than requested, if they have
22272 wider mode than requested, try to return a SUBREG.
22273
600a5961
JJ
22274 PR tree-optimization/56250
22275 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
22276 if type is unsigned and code isn't MULT_EXPR.
22277
ff544649
GJL
222782013-02-08 Georg-Johann Lay <avr@gjlay.de>
22279
22280 PR tree-optimization/56064
22281 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
22282 bits according to mode.
22283 * fixed-value.h (fixed_from_double_int)
22284 (const_fixed_from_double_int): Adjust comments.
22285
e45cde98
RB
222862013-02-08 Richard Biener <rguenther@suse.de>
22287
22288 PR lto/56231
22289 * lto-streamer.h (struct data_in): Remove current_file, current_line
22290 and current_col members.
22291 * lto-streamer-out.c (lto_output_location): Stream changed bits
22292 en-block for efficiency.
22293 * lto-streamer-in.c (clear_line_info): Remove.
22294 (lto_input_location): Cache current file, line and column
22295 globally via local statics. Read changed bits en-block.
22296 (input_function): Do not call clear_line_info.
22297 (lto_read_body): Likewise.
22298 (lto_input_toplevel_asms): Likewise.
22299
c1ca73d8
MM
223002013-02-08 Michael Matz <matz@suse.de>
22301
22302 PR tree-optimization/52448
22303 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
22304 (nt_call_phase): New static.
22305 (add_or_mark_expr): Only mark accesses with newer phase than any
22306 call seen.
22307 (nonfreeing_call_p): New.
22308 (nt_init_block): Update nt_call_phase, mark blocks as visited.
22309 (nt_fini_block): Keep blocks marked as visited.
22310 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
22311
57548aa2
RB
223122013-02-08 Richard Biener <rguenther@suse.de>
22313
22314 * ira.c (ira): Free broken dominator information.
22315
8e10366f
UB
223162013-02-08 Uros Bizjak <ubizjak@gmail.com>
22317
22318 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
22319
f64fb0fa
MP
223202013-02-08 Marek Polacek <polacek@redhat.com>
22321
8e10366f 22322 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 22323
0375167b
RB
223242013-02-08 Richard Biener <rguenther@suse.de>
22325
22326 PR middle-end/56181
22327 * cfgloop.h (flow_loops_find): Adjust.
22328 (bb_loop_header_p): Declare.
22329 * cfgloop.c (bb_loop_header_p): New function split out from ...
22330 (flow_loops_find): ... here. Adjust function signature,
22331 support incremental loop structure update.
22332 (verify_loop_structure): Cleanup. Verify a loop is a loop.
22333 * cfgloopmanip.c (fix_loop_structure): Move ...
22334 * loop-init.c (fix_loop_structure): ... here.
22335 (apply_loop_flags): Split out from ...
22336 (loop_optimizer_init): ... here.
22337 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
22338 in incremental mode, only remove dead loops here.
22339
85d768f3
GJL
223402013-02-08 Georg-Johann Lay <avr@gjlay.de>
22341
22342 PR target/54222
22343 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
22344 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
22345 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
22346 (*round<mode>3.libgcc): New insns for fixed-modes.
22347 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
22348 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
22349 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
22350 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
22351 implementations. Define to __builtin_avr_absFX,
22352 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
22353 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
22354 __builtin_avr_countlsFX, respectively.
22355 * config/avr/avr-c.c (target.h): Include it.
22356 (enum avr_builtin_id): New enum.
22357 (avr_resolve_overloaded_builtin): New static function.
22358 (avr_register_target_pragmas): Use it to set
22359 targetm.resolve_overloaded_builtin.
22360 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
22361 tree nodes used by DEF_BUILTIN.
22362 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
22363 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
22364 <AVR_BUILTIN_xxBITS>: Same.
22365
661bc682
RB
223662013-02-08 Richard Biener <rguenther@suse.de>
22367
22368 * cfgloop.c (verify_loop_structure): Properly handle
22369 a loop exiting to another loop header.
22370 * ira-int.h (ira_loops): Remove.
22371 * ira.c (ira_loops): Remove.
22372 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
22373 (do_reload): Use loop_optimizer_finalize.
22374 * ira-build.c (create_loop_tree_nodes): Use get_loops and
22375 number_of_loops to access the loop tree.
22376 (more_one_region_p): Likewise.
22377 (finish_loop_tree_nodes): Likewise.
22378 (rebuild_regno_allocno_maps): Likewise.
22379 (mark_loops_for_removal): Likewise.
22380 (mark_all_loops_for_removal): Likewise.
22381 (remove_unnecessary_regions): Likewise.
22382 (ira_build): Likewise.
22383 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
22384
0d5049b2
RB
223852013-02-08 Richard Biener <rguenther@suse.de>
22386
22387 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
22388 * ipa-pure-const.c (analyze_function): Avoid calling
22389 mark_irreducible_loops twice.
8e10366f 22390 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 22391
499f32e8
DM
223922013-02-07 David S. Miller <davem@davemloft.net>
22393
22394 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
22395 on 'reg'.
22396 * var-tracking.c (vt_add_function_parameter): Test the presence of
22397 HAVE_window_save properly and do not remap argument registers when
22398 we have a leaf function.
22399
6edc3e32
UB
224002013-02-07 Uros Bizjak <ubizjak@gmail.com>
22401
22402 PR bootstrap/56227
22403 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
22404 instead of "ll".
22405 * config/i386/i386.c (ix86_print_operand): Ditto.
22406
5306401f
VM
224072013-02-07 Vladimir Makarov <vmakarov@redhat.com>
22408
6edc3e32 22409 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 22410
027ece11
VM
224112013-02-07 Vladimir Makarov <vmakarov@redhat.com>
22412
22413 PR rtl-optimization/56225
22414 * lra-constraints.c (process_alt_operands): Check that reload hard
22415 reg can hold value for strict_low_part.
22416
f980dfdb
JJ
224172013-02-07 Jakub Jelinek <jakub@redhat.com>
22418
22419 PR debug/56154
22420 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
22421 dwarf2out_end_function.
22422 (in_first_function_p, maybe_at_text_label_p,
22423 first_loclabel_num_not_at_text_label): New variables.
22424 (dwarf2out_var_location): In the first function find out
6edc3e32 22425 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
22426 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
22427 functions.
22428
73dd3123
EB
224292013-02-07 Eric Botcazou <ebotcazou@adacore.com>
22430
22431 PR rtl-optimization/56178
22432 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
22433 SUBREG of a register. Tidy up related block of code.
22434 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
22435 note if the source is a register or a SUBREG of a register.
22436
e3936f47
JJ
224372013-02-07 Jakub Jelinek <jakub@redhat.com>
22438
22439 PR target/56228
22440 * config/rs6000/rs6000.md (ptrm): New mode attr.
22441 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
22442 call_value_indirect_aix<pttrsize>,
22443 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
22444 m in constraints.
22445
d96d674b
MH
224462013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
22447
22448 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
22449 if -bnortl. Convert to strcmp and strncmp.
22450
921f2dee
AM
224512013-02-07 Alan Modra <amodra@gmail.com>
22452
22453 PR target/54009
22454 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
22455 addresses won't wrap when offsetting.
22456 (rs6000_secondary_reload): Provide secondary reloads needed for
22457 wrapping LO_SUM addresses.
22458
d09c7dba
TS
224592013-02-06 Thomas Schwinge <thomas@codesourcery.com>
22460
22461 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
22462 MACH, just __MACH__.
22463
a44bbd48
RB
224642013-02-06 Richard Biener <rguenther@suse.de>
22465
22466 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
22467 instead of calling fix_loop_structure.
22468
6d840d99
JJ
224692013-02-06 Jakub Jelinek <jakub@redhat.com>
22470
22471 PR middle-end/56217
22472 * omp-low.c (use_pointer_for_field): Return false if
22473 lower_send_shared_vars doesn't generate any copy-out code.
22474
0f33baa9
TV
224752013-02-06 Tom de Vries <tom@codesourcery.com>
22476
22477 PR rtl-optimization/56131
22478 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
22479 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
22480 of the label is NULL. Add comment.
22481
11f1e3ab
JJ
224822013-02-05 Jakub Jelinek <jakub@redhat.com>
22483
31502f9f
JJ
22484 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
22485
a74db9bd
JJ
22486 PR sanitizer/55374
22487 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
22488 (STATIC_LIBTSAN_LIBS): Likewise.
22489 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
22490 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
22491 is defined, don't add anything else beyond that.
22492 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
22493 (LINK_COMMAND_SPEC): Use them.
22494
11f1e3ab
JJ
22495 PR tree-optimization/56205
22496 * tree-stdarg.c (check_all_va_list_escapes): Return true if
22497 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
22498 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
22499
14ac6aa2
RB
225002013-02-05 Richard Biener <rguenther@suse.de>
22501
22502 PR tree-optimization/53342
22503 PR tree-optimization/53185
22504 * tree-vectorizer.h (vect_check_strided_load): Remove.
22505 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
22506 not disallow peeling for vectorized strided loads.
22507 (vect_check_strided_load): Make static and simplify.
22508 (vect_analyze_data_refs): Adjust.
22509 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
22510 correctly when vectorizing strided loads.
22511
6f22445a
RB
225122013-02-05 Richard Biener <rguenther@suse.de>
22513
22514 * doc/install.texi: Refer to ISL, not PPL.
22515
39f9719e
JH
225162013-02-05 Jan Hubicka <jh@suse.cz>
22517
ec4224ac
JH
22518 PR tree-optimization/55789
22519 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
22520
225212013-02-05 Jan Hubicka <jh@suse.cz>
22522
22523 PR tree-optimization/55789
39f9719e
JH
22524 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
22525 the dead call anyway.
22526
956d3b33
EB
225272013-02-05 Eric Botcazou <ebotcazou@adacore.com>
22528
22529 PR sanitizer/55374
22530 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
22531
225322013-02-04 Alexander Potapenko <glider@google.com>
22533 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
22534 Jakub Jelinek <jakub@redhat.com>
22535
22536 PR sanitizer/55617
22537 * config/darwin.c (sort_ctor_records): Stabilized qsort
22538 on constructor priority by using original position.
22539 (finalize_ctors): New routine to sort constructors by
22540 priority before use in assemble_integer.
22541 (machopic_asm_out_constructor): Use finalize_ctors if needed.
22542
7ac3af38
JJ
225432013-02-04 Jakub Jelinek <jakub@redhat.com>
22544
22545 PR libstdc++/54314
22546 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
22547 about visibility on artificial decls.
22548 * config/sol2.c (solaris_assemble_visibility): Likewise.
22549
152689dc
KT
225502013-02-04 Kai Tietz <ktietz@redhat.com>
22551
22552 PR target/56186
22553 * config/i386/i386.c (function_value_ms_64): Add additional valtype
22554 argument and improve checking of return-argument types for 16-byte
22555 modes.
22556 (ix86_function_value_1): Add additional valtype argument on call
22557 of function_value_64.
22558 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
22559 handling infunction_value_64 function.
22560
2b5987b5
MGD
225612013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
22562
7ac3af38 22563 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 22564
14597080
RB
225652013-02-04 Richard Biener <rguenther@suse.de>
22566
22567 PR tree-optimization/56188
22568 * tree-ssa-structalias.c (label_visit): Consider case with
22569 initially non-empty points-to set.
22570 (perform_var_substitution): Dump node mapping and clean up.
22571
ed73881e
RG
225722013-02-04 Richard Guenther <rguenther@suse.de>
22573
22574 PR lto/56168
22575 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
22576 node prevail as last resort.
22577 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 22578 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 22579
139a0707
RB
225802013-02-04 Richard Biener <rguenther@suse.de>
22581
22582 PR tree-optimization/56113
22583 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
22584 Merge into ...
22585 (equiv_class_lookup_or_add): ... this.
22586 (label_visit): Adjust and fix error in previous patch.
22587 (perform_var_substitution): Adjust.
22588
50fe8924
OE
225892013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
22590
22591 * config/sh/divtab.c: Fix formatting and comments throughout the file.
22592 * config/sh/sh4-300.md: Likewise.
22593 * config/sh/sh4a.md: Likewise.
22594 * config/sh/constraints.md: Likewise.
22595 * config/sh/sh.md: Likewise.
22596 * config/sh/netbsd-elf.h: Likewise.
22597 * config/sh/predicates.md: Likewise.
22598 * config/sh/sh-protos.h: Likewise.
22599 * config/sh/ushmedia.h: Likewise.
22600 * config/sh/linux.h: Likewise.
22601 * config/sh/sh.c: Likewise.
22602 * config/sh/superh.h: Likewise.
22603 * config/sh/elf.h: Likewise.
22604 * config/sh/sh4.md: Likewise.
22605 * config/sh/sh.h: Likewise.
22606
1a04ac2b
JDA
226072013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22608
22609 * config/pa/constraints.md: Adjust unused letters. Change "T"
22610 constraint to match_test floating_point_store_memory_operand().
22611 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
22612 (base14_operand): New.
22613 (floating_point_store_memory_operand): New.
22614 (integer_store_memory_operand): Revise to use base14_operand and
22615 reg_plus_base_memory_operand.
22616 (move_dest_operand): Allow symbolic_memory_operands.
22617 (symbolic_memory_operand): Check for LO_SOM.
22618 (symbolic_operand): Change default case to break.
22619 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
22620 CONST_DOUBLE values to be reloaded by putting them into memory when
22621 the destination is a floating point register.
22622 (movdf): Remove code to handle CONST_DOUBLE.
22623 (movsf): Likewise.
22624 (reload_indf_r1): New.
22625 (reload_insf_r1): New.
22626 Consistently use "Q" and "T" constraints with integer and floating
22627 point move instructions, respectively.
22628 (movdi): Remove FAIL.
22629 Change predicate for source operand unamed DImode move from
22630 general_operand to move_src_operand.
22631 (umulsidi3): Change predicate for destination operand to
22632 register_operand.
22633 Likewise for similar unamed patterns.
22634 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
22635 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
22636 (hppa_legitimize_address): Simplify mask calculation.
22637 (pa_emit_move_sequence): Revised handling of secondary reloads from
22638 REG+D addresses for floating point loads and stores. Directly handle
22639 loading CONST0_RTX (mode) to a floating point register.
22640 (pa_secondary_reload): Handle reloading DF and SFmode constant values
22641 to floating point registers. Don't restrict secondary reloads to
22642 floating point registers to integer modes. Revise some comments and
22643 cleanup some code.
22644 (TARGET_LEGITIMATE_ADDRESS_P): Define.
22645 (pa_legitimate_address_p): New.
22646 (pa_legitimize_reload_address): New.
22647 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
22648 (STRICT_REG_OK_FOR_BASE_P): New.
22649 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
22650 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
22651
3bf65591
DE
226522013-02-03 David Edelsohn <dje.gcc@gmail.com>
22653 Andrew Dixie <andrewd@gentrack.com>
22654
22655 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
22656 flag set.
22657
c0a8a3e6
RS
226582013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
22659
22660 * expmed.c (extract_bit_field_1): Pass the full width of the
22661 structure to get_best_reg_extraction_insn.
22662
99113dff
DE
226632013-02-01 David Edelsohn <dje.gcc@gmail.com>
22664
22665 PR target/54601
22666 * configure.ac (use_cxa_atexit): Add AIX.
22667 * configure: Regenerate.
22668
22669 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
22670
ddd84654
JJ
226712013-02-01 Jakub Jelinek <jakub@redhat.com>
22672
22673 PR debug/54793
22674 * final.c (need_profile_function): New variable.
22675 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
22676 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
22677 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
22678 notes, targetm.asm_out.function_prologue doesn't emit anything,
22679 HAVE_prologue and profiler should be emitted before prologue,
22680 set need_profile_function instead of emitting it.
22681 (final_scan_insn): If need_profile_function, emit
22682 profile_function on the first NOTE_INSN_BASIC_BLOCK or
22683 NOTE_INSN_FUNCTION_BEG note.
22684
226852013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
22686
22687 * config/rs6000/rs6000.md (smulditi3): New.
22688 (umulditi3): New.
22689
ff2a9d88
RH
22690 * config/alpha/alpha.md (umulditi3): New.
22691
14d52b90
DE
226922013-02-01 David Edelsohn <dje.gcc@gmail.com>
22693
22694 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
22695 (ASM_OUTPUT_ALIGNED_LOCAL): New.
22696
8c7ca45c
RB
226972013-02-01 Richard Biener <rguenther@suse.de>
22698
22699 PR tree-optimization/56113
22700 * tree-ssa-structalias.c (label_visit): Reduce work for
22701 single-predecessor nodes.
22702
9f419393
EB
227032013-02-01 Eric Botcazou <ebotcazou@adacore.com>
22704
22705 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
22706 range isn't testing for zero.
22707
c5f4be84
SB
227082013-01-31 Steven Bosscher <steven@gcc.gnu.org>
22709
22710 PR middle-end/56113
22711 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
22712
dbdbd982
NC
227132013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
22714 Nick Clifton <nickc@redhat.com>
22715
22716 * config/v850/constraints.md (Q): Define as a memory constraint.
22717 * config/v850/predicates.md (label_ref_operand): New predicate.
22718 (e3v5_shift_operand): New predicate.
22719 (ior_operator): New predicate.
22720 * config/v850/t-v850: Add e3v5 multilib.
22721 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
22722 (v850_gen_movdi): Prototype.
22723 * config/v850/v850.c: Add support for e3v5 architecture.
22724 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
22725 TARGET_V850E_UP.
22726 (construct_save_jarl): Add e3v5 long JARL support.
22727 (v850_adjust_insn_length): New function. Adjust length of call
22728 insns when using e3v5 instructions.
22729 (v850_gen_movdi): New function: Generate instructions to move a
22730 DImode value.
22731 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
22732 (CPP_SPEC): Define __v850e3v5__ as appropriate.
22733 (TARGET_USE_FPU): Enable for e3v5.
22734 (CONST_OK_FOR_W): New macro.
22735 (ADJUST_INSN_LENGTH): Define.
22736 * config/v850/v850.md (UNSPEC_LOOP): Define.
22737 (attr cpu): Add v850e3v5.
22738 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
22739 (movdi): New pattern.
22740 (movdi_internal): New pattern.
22741 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
22742 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
22743 (cstoresf4): Likewise.
22744 (cstoredf4): Likewise.
22745 (insv): New pattern.
22746 (rotlso3_a): New pattern.
22747 (rotlsi3_b): New pattern
22748 (rotlsi3_v850e3v5): New pattern.
22749 (doloop_begin): New pattern.
22750 (fix_loop_counter): New pattern.
22751 (doloop_end): New pattern.
22752 (branch_normal): Add e3v5 long branch support.
22753 (branch_invert): Likewise.
22754 (branch_z_normal): Likewise.
22755 (branch_z_invert): Likewise.
22756 (branch_nz_normal): Likewise.
22757 (branch_nz_invert): Likewise.
22758 (call_internal_short): Add e3v5 register-indirect JARL support.
22759 (call_internal_long): Likewise.
22760 (call_value_internal_short): Likewise.
22761 (call_value_internal_long): Likewise.
22762 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
22763 (mloop): New option.
22764 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 22765 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 22766
73861a41
PK
227672013-01-31 Paul Koning <ni1d@arrl.net>
22768
22769 PR debug/55059
22770 PR debug/54508
22771 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
22772 children if parent is a class.
22773 (prune_unused_types_prune): Don't add DW_AT_declaration.
22774
e44978dc
RB
227752013-01-31 Richard Biener <rguenther@suse.de>
22776
22777 PR tree-optimization/56157
22778 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
22779 match up operand with SLP child.
22780
90b10dec
JM
227812013-01-31 Jason Merrill <jason@redhat.com>
22782
04d2dadd 22783 PR debug/54410
90b10dec
JM
22784 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
22785 parameters the first time.
22786 (gen_scheduled_generic_parms_dies): Check completeness here.
22787
6e616110
RB
227882013-01-31 Richard Biener <rguenther@suse.de>
22789
22790 PR middle-end/53073
22791 * common.opt (faggressive-loop-optimizations): New flag,
22792 enabled by default.
22793 * doc/invoke.texi (faggressive-loop-optimizations): Document.
22794 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
22795 infer_loop_bounds_from_undefined by it.
22796
636f59cf
RB
227972013-01-31 Richard Biener <rguenther@suse.de>
22798
22799 PR tree-optimization/56150
22800 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
22801 visit virtual operands.
22802 (find_uses_to_rename_bb): Likewise.
22803
228042013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
22805
22806 PR tree-optimization/56150
22807 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
22808 mixed store non-store stmts.
22809
32887460
JJ
228102013-01-30 Jakub Jelinek <jakub@redhat.com>
22811
e60e09a0
JJ
22812 PR sanitizer/55374
22813 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
22814 LIBASAN_EARLY_SPEC is defined.
22815 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
22816 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
22817 before %o.
22818 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
22819
32887460
JJ
22820 PR c++/55742
22821 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
22822 invalid args instead of ICEing on it.
22823 (ix86_valid_target_attribute_tree): Return error_mark_node if
22824 ix86_valid_target_attribute_inner_p failed.
22825 (ix86_valid_target_attribute_p): Return false only if
22826 ix86_valid_target_attribute_tree returned error_mark_node. Allow
22827 target("default") attribute.
22828 (sorted_attr_string): Change argument from const char * to tree,
22829 merge in all target attribute arguments rather than just one.
22830 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
22831 instead of free. Avoid using strcat.
22832 (ix86_mangle_function_version_assembler_name): Mangle
22833 target("default") as if no target attribute is present. Adjust
22834 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
22835 instead of xmalloc and XDELETEVEC instead of free.
22836 (ix86_function_versions): Don't return true if one of the decls
22837 doesn't have target attribute. If they don't and one of the decls
22838 is DECL_FUNCTION_VERSIONED, report an error. Adjust
22839 sorted_attr_string caller. Use XDELETEVEC instead of free.
22840 (ix86_supports_function_versions): Remove.
22841 (make_name): Fix up formatting.
22842 (make_dispatcher_decl): Remove resolver_name and its initialization.
22843 Avoid leaking memory.
22844 (is_function_default_version): Return true if there is
22845 target("default") attribute rather than no target attribute at all.
22846 (make_resolver_func): Avoid leaking memory.
22847 (ix86_generate_version_dispatcher_body): Likewise.
22848 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
22849 * target.def (supports_function_versions): Remove.
22850 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
22851 * doc/tm.texi: Regenerated.
22852
73cca0cc
VM
228532013-01-30 Vladimir Makarov <vmakarov@redhat.com>
22854
22855 PR rtl-optimization/56144
22856 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
22857 for values with side effects.
22858
11452e7b
RB
228592013-01-30 Richard Biener <rguenther@suse.de>
22860
22861 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
22862 (sparseset_pop): Likewise.
22863 * cfganal.c (compute_idf): Likewise. Increase work-stack size
22864 to be able to use quick_push in the worker loop.
22865
01cb1ef5
MP
228662013-01-30 Marek Polacek <polacek@redhat.com>
22867
22868 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
22869
e892936e
RB
228702013-01-30 Richard Biener <rguenther@suse.de>
22871
22872 PR lto/56147
6edc3e32 22873 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 22874
cc06c01d
GJL
228752013-01-30 Georg-Johann Lay <avr@gjlay.de>
22876
22877 PR tree-optimization/56064
22878 * fixed-value.c (fixed_from_double_int): New function.
22879 * fixed-value.h (fixed_from_double_int): New prototype.
22880 (const_fixed_from_double_int): New static inline function.
22881 * fold-const.c (native_interpret_fixed): New static function.
22882 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
22883 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
22884 (native_encode_fixed): New static function.
22885 (native_encode_expr) <FIXED_CST>: Use it.
22886 (native_interpret_int): Move double_int worker code to...
22887 * double-int.c (double_int::from_buffer): ...this new static method.
22888 * double-int.h (double_int::from_buffer): Prototype it.
22889
d394a308
RB
228902013-01-30 Richard Biener <rguenther@suse.de>
22891
22892 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
22893 New pointer-map and obstack.
22894 (init_alias_vars): Allocate pointer-map and obstack.
22895 (delete_points_to_sets): Free them.
22896 (find_what_var_points_to): Cache result.
22897 (find_what_p_points_to): Adjust for changed interface of
22898 find_what_var_points_to.
22899 (compute_points_to_sets): Likewise.
22900 (ipa_pta_execute): Likewise.
22901
20804d96
RO
229022013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22903
22904 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
22905 * configure: Regenerate.
22906 * config.in: Regenerate.
22907 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
22908 #nobits/#progbits if supported.
22909
a7ad88a2
OE
229102013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
22911
22912 PR target/56121
22913 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
22914 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
22915 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
22916
7af79f92
GY
229172013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22918
91bfca59
OE
22919 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
22920 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 22921
753bcf7b
GY
229222013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22923
91bfca59
OE
22924 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
22925 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 22926
8cbc2ea8
GY
229272013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22928
91bfca59
OE
22929 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
22930 declaration.
22931 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
22932 * config/arm/cortex-a7.md: New bypasses using
22933 arm_mac_accumulator_is_result.
8cbc2ea8 22934
697a3325
GY
229352013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22936
91bfca59 22937 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 22938 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
22939 (cortex_a7_fpfmad): New reservation.
22940 (cortex_a7_fpmacs): Use ffmas and update required units.
22941 (cortex_a7_fpmuld): Update required units and latency.
22942 (cortex_a7_fpmacd): Likewise.
22943 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
22944 (cortex_a7_neon). Likewise.
22945 (bypass) Update participating units.
697a3325 22946
29637783
GY
229472013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
22948
91bfca59
OE
22949 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
22950 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
22951 from fmac to ffma.
22952 * config/arm/vfp11.md (vfp_farith): Use ffmas.
22953 (vfp_fmul): Use ffmad.
22954 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
22955 (cortex_r4_fmacd): Use ffmad.
22956 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
22957 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
22958 (cortex_a9_fmacd): Use ffmad.
22959 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
22960 (cortex_a8_vfp_macd): Use ffmad.
22961 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
22962 (cortex_a5_fpmacd): Use ffmad.
22963 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
22964 (cortex_a15_vfp_macd): Use ffmad.
22965 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 22966
2ee8a2d5
JM
229672013-01-29 Jason Merrill <jason@redhat.com>
22968
22969 PR libstdc++/54314
22970 * varasm.c (default_assemble_visibility): Don't warn about
22971 visibility on artificial decls.
22972
78d087bc
RB
229732013-01-29 Richard Biener <rguenther@suse.de>
22974
22975 PR tree-optimization/56113
22976 * tree-ssa-structalias.c (equiv_class_lookup): Also return
22977 the bitmap leader.
22978 (label_visit): Free duplicate bitmaps and record the leader instead.
22979 (perform_var_substitution): Adjust.
22980
83ba4d6f
RB
229812013-01-29 Richard Biener <rguenther@suse.de>
22982
22983 PR tree-optimization/55270
22984 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
22985 the CFG, schedule loops for fixup.
22986
66dfe13f
NC
229872013-01-29 Nick Clifton <nickc@redhat.com>
22988
22989 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
22990 SP_REG.
22991
5a579c3b
LE
229922013-01-28 Leif Ekblad <leif@rdos.net>
22993
22994 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
22995 * config/i386/i386.h (TARGET_RDOS): New macro.
22996 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
22997 * config/i386/i386.c (ix86_option_override_internal): For 64bit
22998 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
22999 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
23000 DEFAULT_LARGE_SECTION_THRESHOLD.
23001 * config/i386/i386.md (R14_REG, R15_REG): New constants.
23002 * config/i386/rdos.h: New file.
23003 * config/i386/rdos64.h: New file.
23004
51e44392
BS
230052013-01-28 Bernd Schmidt <bernds@codesourcery.com>
23006
23007 PR other/54814
23008 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
23009 TEST_HARD_REG_BIT.
23010
db1fb332
JJ
230112013-01-28 Jakub Jelinek <jakub@redhat.com>
23012
23013 PR rtl-optimization/56117
23014 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
23015 call cselib_lookup_from_insn on the MEM before calling
23016 add_insn_mem_dependence.
23017
16917761
RB
230182013-01-28 Richard Biener <rguenther@suse.de>
23019
23020 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
23021 to a stmt that didn't have one.
23022 (copy_phis_for_bb): Likewise for PHI arguments.
23023 (copy_debug_stmt): Likewise for debug stmts.
23024
b9fc0497
RB
230252013-01-28 Richard Biener <rguenther@suse.de>
23026
23027 PR tree-optimization/56034
6edc3e32 23028 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
23029 (partition_builtin_p): Adjust.
23030 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
23031 it is the last partition.
23032 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
23033 up the vertex for the definition.
23034 (classify_partition): Classify whether a partition is a
23035 PKIND_REDUCTION, thus has uses outside of the loop.
23036 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
23037 Merge all PKIND_REDUCTION partitions into the last partition.
23038 (tree_loop_distribution): Seed partitions from reductions as well.
23039
aa710d25
JJ
230402013-01-28 Jakub Jelinek <jakub@redhat.com>
23041
0bfbca58
JJ
23042 PR tree-optimization/56125
23043 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
23044 pow(x,c) into sqrt(x) * powi(x, n/2) or
23045 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
23046 optimizing for size.
23047 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
23048 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
23049 integer.
23050
aa710d25
JJ
23051 PR tree-optimization/56094
23052 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
23053 to UNKNOWN_LOCATION while gimplifying expr.
23054
77dc5297
UB
230552013-01-27 Uros Bizjak <ubizjak@gmail.com>
23056
23057 PR target/56114
23058 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
23059 operand 0 in movabs insn template for -masm=intel asm alternative.
23060 (*movabs<mode>_2): Ditto for operand 1.
23061
0bfbca58 230622013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
23063
23064 PR target/54663
23065 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
23066 of microblaze-c.o
23067
0bfbca58 230682013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
23069
23070 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
23071 tm_file.
23072
0bfbca58 230732013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
23074
23075 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
23076 Undef to avoid warning.
23077
478f60f9
MH
230782013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
23079
23080 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
23081 * configure: Regenerate.
23082
d7fa6ee2
JJ
230832013-01-25 Jakub Jelinek <jakub@redhat.com>
23084
23085 PR tree-optimization/56098
23086 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
23087 for stmts with volatile ops.
23088 (cond_store_replacement): Don't optimize if assign has volatile ops.
23089 (cond_if_else_store_replacement_1): Don't optimize if either
23090 then_assign or else_assign have volatile ops.
23091 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
23092 volatile ops.
23093
f8fe87bd
GJL
230942013-01-25 Georg-Johann Lay <avr@gjlay.de>
23095
23096 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
23097
28398d0d
GJL
230982013-01-25 Georg-Johann Lay <avr@gjlay.de>
23099
23100 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
23101 missing ':' in asm example.
23102
b7d7d917
TB
231032013-01-25 Tejas Belagod <tejas.belagod@arm.com>
23104
23105 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
23106 entries into lane and laneq entries.
77dc5297
UB
23107 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
23108 Remove AdvSIMD scalar modes.
b7d7d917
TB
23109 (aarch64_sq<r>dmulh_laneq<mode>): New.
23110 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
23111 modes.
23112 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
23113 builtin implementations to relfect changes in RTL in aarch64-simd.md.
23114 * config/aarch64/iterators.md (VCOND): New.
23115 (VCONQ): New.
23116
556f9906
GJL
231172013-01-25 Georg-Johann Lay <avr@gjlay.de>
23118
23119 PR target/54222
23120 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
23121 Add NULL LIBNAME argument to existing definitions.
23122 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
23123 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
23124 * config/avr/avr.c (DEF_BUILTIN): Same.
23125 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
23126 (avr_expand_builtin): Expand to a vanilla call if a libgcc
23127 implementation is available (DECL_ASSEMBLER_NAME is set).
23128 (avr_fold_absfx): New static function.
23129 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
23130 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
23131 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
23132 AVR_BUILTIN_ABSLLK.
23133 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
23134 (abshk, absk, abslk, absllk): Provide as static inline functions.
23135
1f546bbb
MP
231362013-01-25 Marek Polacek <polacek@redhat.com>
23137
23138 PR tree-optimization/56035
23139 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
23140
7e184bd7
UB
231412012-01-24 Uros Bizjak <ubizjak@gmail.com>
23142
23143 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
23144 (*movtf_internal_rex64): Add (!o,C) alternative
23145 (*movxf_internal_rex64): Ditto.
23146 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
23147
f5ba49ac
SM
231482013-01-24 Shenghou Ma <minux.ma@gmail.com>
23149
23150 * doc/invoke.texi: fix typo.
23151 * doc/objc.texi: fix typo.
23152
a6343728
RS
231532013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
23154
23155 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
23156 for the first two alternatives.
23157
cd030c07
DN
231582013-01-24 Diego Novillo <dnovillo@google.com>
23159
77dc5297 23160 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
23161 (ggc-zone.o): Remove.
23162 * configure.ac: Remove option --with-gc.
23163 * configure: Re-generate.
23164 * doc/install.texi: Remove documentation for --with-gc.
23165 * gengtype.c (write_enum_defn): Remove. Update all users.
23166 (write_Types_process_field): Remove generation of gt_e_* argument.
23167 (output_type_enum): Remove. Update all users.
23168 (write_enum_defn): Remove. Update all users.
23169 (enum alloc_zone): Remove. Update all users.
77dc5297 23170 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
23171 * ggc-common.c (ggc_splay_alloc): Remove first argument.
23172 Update all callers.
23173 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 23174 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
23175 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
23176 Update all users.
aaf1e810 23177 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
23178 (struct alloc_zone): Remove.
23179 (ggc_internal_alloc_zone_stat): Remove.
23180 (ggc_internal_cleared_alloc_zone_stat): Remove.
23181 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
23182 (ggc_pch_count_object): Remove last argument. Update all users.
23183 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
23184 (struct alloc_zone): Remove.
23185 * ggc-zone.c: Remove.
77dc5297 23186 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
23187 (struct alloc_zone): Remove.
23188 (ggc_alloc_typed_stat): Remove.
23189 (ggc_alloc_typed): Remove.
23190 (ggc_splay_alloc): Remove first argument.
23191 (rtl_zone): Remove. Update all users.
23192 (tree_zone): Remove. Update all users.
23193 (tree_id_zone): Remove. Update all users.
23194 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 23195 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 23196 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 23197 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 23198
a861ffa4
GJL
231992013-01-24 Georg-Johann Lay <avr@gjlay.de>
23200
23201 * config/avr/avr.c (avr_out_fract): Make register numbers that
23202 might be outside of source operand signed.
23203
593c0ddd
UB
232042013-01-24 Uros Bizjak <ubizjak@gmail.com>
23205
23206 * config/i386/constraints.md (Yf): New constraint.
23207 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
23208 of f constraint to conditionaly disable x87 register preferences.
23209 (*movdf_internal): Ditto.
23210 (*movsf_internal): Ditto.
23211
e86c0101
SB
232122013-01-24 Steven Bosscher <steven@gcc.gnu.org>
23213
23214 PR inline-asm/55934
23215 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
23216 that have operands with impossible constraints.
23217 Add a FIXME for a speed-up opportunity.
23218 * lra-constraints.c (process_alt_operands): Verify that a class
23219 selected from constraints on asms is valid for the operand mode.
23220 (curr_insn_transform): Remove incorrect comment.
23221
f6fee35f
DE
232222013-01-23 David Edelsohn <dje.gcc@gmail.com>
23223
23224 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
23225 TOC operand is a valid symbol ref in the constant pool.
23226
232272013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 23228
aaf1e810 23229 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 23230
dc62d7d1
GJL
232312013-01-23 Georg-Johann Lay <avr@gjlay.de>
23232
23233 PR target/54222
23234 * config/avr/stdfix.h: New file.
23235 * t-avr (stdfix-gcc.h): New rule to build it.
23236 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
23237
2660d12d
KS
232382013-01-23 Kostya Serebryany <kcc@google.com>
23239
77dc5297
UB
23240 * config/darwin.h: remove dependency on
23241 CoreFoundation (asan on Mac OS).
2660d12d 23242
a70418fc
JJ
232432013-01-23 Jakub Jelinek <jakub@redhat.com>
23244
23245 PR target/49069
23246 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
23247 instead of cmpdi_operand for first comparison operand.
23248 Don't assert that comparison operands aren't both constants.
23249
47876a2a
JW
232502013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
23251
23252 * doc/install.texi (Downloading the Source): Update references to
23253 downloading separate components.
23254
232552013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
23256
23257 * doc/extend.texi (__int128): Improve grammar.
23258
47876a2a 232592013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
23260
23261 PR target/56028
23262 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
23263 alternative to (o,r).
23264 (*movdi_internal_rex64): Remove (!o,n) alternative.
23265 (DImode immediate->memory splitter): Remove.
23266 (DImode immediate->memory peephole2): Remove.
23267 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
23268 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
23269 alternative to (!o,*r).
23270 (*movtf_internal_sse): New pattern.
23271 (*movxf_internal_rex64): New pattern.
23272 (*movxf_internal): Disable for TARGET_64BIT.
23273 (*movdf_internal_rex64): Remove (!o,F) alternative.
23274
3a984f10
JJ
232752013-01-22 Jakub Jelinek <jakub@redhat.com>
23276
502498d5
JJ
23277 PR middle-end/56074
23278 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
23279 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
23280 * tree-vect-loop-manip.c (find_loop_location): Also ignore
23281 stmt locations where LOCATION_LOCUS of the stmt location is
23282 UNKNOWN_LOCATION or BUILTINS_LOCATION.
23283
3a984f10
JJ
23284 PR target/55686
23285 * config/i386/i386.md (UNSPEC_STOS): New.
23286 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
23287 *strsetqi_1): Add UNSPEC_STOS.
23288
fa817f7f
PC
232892013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
23290
23291 PR c++/56067
23292 * doc/invoke.texi: Remove left over -Wsynth example.
23293
8f498c1b
JJ
232942013-01-21 Jakub Jelinek <jakub@redhat.com>
23295
23296 PR tree-optimization/56051
23297 * fold-const.c (fold_binary_loc): Don't fold
23298 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
23299 a narrowing conversion, or widening conversion from signed
23300 to unsigned.
23301
47876a2a 233022013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
23303
23304 PR rtl-optimization/56023
23305 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
23306 dependent on debug instruction.
23307
5b9db1bc
MJ
233082013-01-21 Martin Jambor <mjambor@suse.cz>
23309
23310 PR middle-end/56022
23311 * function.c (allocate_struct_function): Call
23312 invoke_set_current_function_hook earlier.
23313
e8bb7d68
JJ
233142013-01-21 Jakub Jelinek <jakub@redhat.com>
23315
23316 * reload1.c (init_reload): Only initialize reload_obstack
23317 during the first call.
23318
616a4e32
MP
233192013-01-21 Marek Polacek <polacek@redhat.com>
23320
23321 * cfgloop.c (verify_loop_structure): Fix up grammar.
23322
4401981b
YHH
233232013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
23324
23325 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
23326 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
23327
8e87740b
RR
233282013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23329
23330 PR target/56058
23331 * config/arm/marvell-pj4.md: Update copyright year.
23332 Fix up use of alu to alu_reg and simple_alu_imm.
23333
47876a2a 233342013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
23335
23336 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
23337
89d56d79
VM
233382013-01-20 Vladimir Makarov <vmakarov@redhat.com>
23339
23340 PR target/55433
23341 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 23342 insn for secondary memory move when memory mode should be different.
89d56d79 23343
fe603553
JDA
233442013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23345
23346 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
23347 atomic_storedi_1): New patterns.
23348
01284895
VK
233492013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23350
23351 btver2 pipeline descriptions.
23352 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
23353 descriptions.
23354 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 23355 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
23356 type attributes.
23357 * config/i386/btver2.md: New file describing btver2 pipelines.
23358
5630e3e1
JL
233592013-01-19 Andrew Pinski <apinski@cavium.com>
23360
23361 PR tree-optimization/52631
23362 * tree-ssa-sccvn (visit_use): Before looking up the original
23363 statement, try looking up the simplified expression.
23364
650ae806
AG
233652013-01-19 Anthony Green <green@moxielogic.com>
23366
23367 * config/moxie/moxie.c (moxie_expand_prologue): Set
23368 current_function_static_stack_size.
23369
e300ec2d
JJ
233702013-01-18 Jakub Jelinek <jakub@redhat.com>
23371
23372 PR tree-optimization/56029
23373 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
23374 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
23375
a3d7af04
SS
233762013-01-18 Sharad Singhai <singhai@google.com>
23377
23378 PR tree-optimization/55995
23379 * dumpfile.c (dump_loc): Print location only if available.
23380 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
23381
66aa7879
VM
233822013-01-18 Vladimir Makarov <vmakarov@redhat.com>
23383
23384 PR target/55433
23385 * lra-constraints.c (curr_insn_transform): Reuse original insn for
23386 secondary memory move.
23387 (inherit_reload_reg): Use rclass instead of cl for
23388 check_secondary_memory_needed_p.
23389
3f0fee7b
JJ
233902013-01-18 Jakub Jelinek <jakub@redhat.com>
23391
23392 PR middle-end/56015
23393 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 23394 the case where writing real complex part of target modifies op1.
3f0fee7b 23395
70c67693
JG
233962013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
23397
23398 * config/aarch64/aarch64-simd.md
23399 (aarch64_vcond_internal<mode>): Handle unordered cases.
23400 * config/aarch64/iterators.md (v_cmp_result): New.
23401
df8de9b3
YHH
234022013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
23403 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23404
23405 * config/arm/marvell-pj4.md: New file.
23406 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
23407 * config/arm/arm.md (generic_sched): Add marvell_pj4.
23408 (generic_vfp): Likewise.
23409 * config/arm/arm-cores.def: Add marvell-pj4.
23410 * config/arm/arm-tune.md: Regenerate.
23411 * config/arm/arm-tables.opt: Regenerate.
23412 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
23413 * doc/invoke.texi: Document marvell-pj4.
23414
be30c356
TB
234152013-01-18 Tejas Belagod <tejas.belagod@arm.com>
23416
23417 * config/aarch64/arm_neon.h: Map scalar types to standard types.
23418
0bfbca58 234192013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
23420
23421 PR debug/54114
23422 PR debug/54402
23423 PR debug/49888
23424 * var-tracking.c (negative_power_of_two_p): New.
23425 (global_get_addr_cache, local_get_addr_cache): New.
23426 (get_addr_from_global_cache, get_addr_from_local_cache): New.
23427 (vt_canonicalize_addr): Rewrite using the above. Adjust the
23428 heading comment.
23429 (vt_stack_offset_p): Remove.
23430 (vt_canon_true_dep): Always canonicalize loc's address.
23431 (clobber_overlapping_mems): Make sure we have a MEM.
23432 (local_get_addr_clear_given_value): New.
23433 (val_reset): Clear local cached entries.
23434 (compute_bb_dataflow): Create and release the local cache.
23435 Disable duplicate MEMs clobbering.
23436 (emit_notes_in_bb): Clobber MEMs likewise.
23437 (vt_emit_notes): Create and release the local cache.
23438 (vt_initialize, vt_finalize): Create and release the global
23439 cache, respectively.
1f6bc337 23440 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 23441
0bfbca58 234422013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
23443
23444 PR libmudflap/53359
23445 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
23446 not found in the symtab.
23447
0bfbca58 234482013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 23449
c350ba53 23450 PR debug/56006
3aa03517
AO
23451 PR rtl-optimization/55547
23452 PR rtl-optimization/53827
23453 PR debug/53671
23454 PR debug/49888
23455 * alias.c (offset_overlap_p): New, factored out of...
23456 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
23457 the conservative special case for symbolic constants. Don't
23458 adjust zero sizes on alignment.
23459
c664546f
JL
234602013-01-18 Bernd Schmidt <bernds@codesourcery.com>
23461
23462 PR rtl-optimization/52573
23463 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
23464 REG_UNUSED for the same register.
23465
1bd3f750
MP
234662013-01-17 Richard Biener <rguenther@suse.de>
23467 Marek Polacek <polacek@redhat.com>
23468
23469 PR rtl-optimization/55833
23470 * loop-unswitch.c (unswitch_loops): Move loop verification...
23471 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
23472 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
23473 Set it to true when we're removing a loop from hierarchy tree in
23474 an irreducible region.
23475 (fix_bb_placements): Adjust caller.
23476 (fix_loop_placements): Likewise.
23477
e52a8b71
GJL
234782013-01-17 Georg-Johann Lay <avr@gjlay.de>
23479
23480 * config/avr/builtins.def (DEF_BUILTIN): Factor out
23481 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
23482 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
23483 Remove ID. Adjust comments.
23484 * config/avr/avr-c.c (avr_builtin_name): Remove.
23485 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
23486 * config/avr/avr.c (avr_tolower): New static function.
23487 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
23488 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
23489 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
23490 default expansion.
23491
8386a7ea
JH
234922013-01-17 Jan Hubicka <jh@suse.cz>
23493
610fb637 23494 PR tree-optimization/55273
8386a7ea
JH
23495 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
23496
47876a2a 234972013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
23498
23499 PR target/55981
23500 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
23501 store through atomic_store<mode>_1.
23502 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
23503
8222c37e
MJ
235042013-01-17 Martin Jambor <mjambor@suse.cz>
23505
23506 PR tree-optimizations/55264
23507 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
23508 for virtual methods.
23509 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
23510 virtual methods before inlining is over.
23511 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
23512 virtual functions.
23513 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
23514 non-virtual.
23515
79f01c76
VM
235162013-01-16 Vladimir Makarov <vmakarov@redhat.com>
23517
23518 PR rtl-optimization/56005
23519 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
23520 pending reads for prefetch.
23521
d0b6bb1b
IB
235222013-01-16 Ian Bolton <ian.bolton@arm.com>
23523
aaf1e810 23524 * config/aarch64/aarch64.md
d0b6bb1b
IB
23525 (*cstoresi_neg_uxtw): New pattern.
23526 (*cmovsi_insn_uxtw): New pattern.
23527 (*<optab>si3_uxtw): New pattern.
23528 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
23529 (*<optab>si3_insn_uxtw): New pattern.
23530 (*bswapsi2_uxtw): New pattern.
23531
cb9cf03b
RB
235322013-01-16 Richard Biener <rguenther@suse.de>
23533
23534 * tree-inline.c (tree_function_versioning): Remove set but
23535 never used variable.
23536
2cfc56b9
RB
235372013-01-16 Richard Biener <rguenther@suse.de>
23538
23539 PR tree-optimization/55964
23540 * tree-flow.h (rename_variables_in_loop): Remove.
23541 (rename_variables_in_bb): Likewise.
23542 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
23543 (copy_loop_before): Adjust and delete update-ssa status.
23544 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 23545 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
23546 (rename_variables_in_loop): Remove.
23547 (slpeel_update_phis_for_duplicate_loop): Likewise.
23548 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
23549 use available cfg machinery instead of duplicating it.
23550 Update PHI nodes and perform poor-mans SSA update here.
23551 (slpeel_tree_peel_loop_to_edge): Adjust.
23552
c25a0c60
RB
235532013-01-16 Richard Biener <rguenther@suse.de>
23554
23555 PR tree-optimization/54767
23556 PR tree-optimization/53465
23557 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
23558 (vrp_visit_phi_node): For PHI arguments coming via backedges
23559 drop all symbolical range information.
23560 (execute_vrp): Compute backedges.
23561
04b535af
RB
235622013-01-16 Richard Biener <rguenther@suse.de>
23563
23564 * doc/install.texi: Update CLooG and ISL requirements to
23565 0.18.0 and 0.11.1.
23566
8b0a1e0b
CB
235672013-01-16 Christian Bruel <christian.bruel@st.com>
23568
23569 PR target/55301
23570 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
23571 (broken_move): Handle UNSPECV_SP_SWITCH_B.
23572 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
23573
235742013-01-16 DJ Delorie <dj@redhat.com>
23575
23576 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
23577 (UNSPECV_SP_SWITCH_E): New.
23578 (sp_switch_1): Change to an unspec.
23579 (sp_switch_2): Change to an unspec. Don't use post-inc when we
23580 replace $r15.
23581
235822013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
23583
23584 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
23585 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
23586 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
23587 (expand_mem_thread_fence): Ditto.
23588 (expand_mem_signal_fence): Ditto.
23589 (expand_atomic_load): Ditto.
23590 (expand_atomic_store): Ditto.
23591
0bfbca58 235922013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
23593
23594 PR rtl-optimization/55547
23595 PR rtl-optimization/53827
23596 PR debug/53671
23597 PR debug/49888
23598 * alias.c (memrefs_conflict_p): Set sizes to negative after
23599 AND adjustments.
23600
305e3ac1
JJ
236012013-01-15 Jakub Jelinek <jakub@redhat.com>
23602
23603 PR target/55940
23604 * function.c (thread_prologue_and_epilogue_insns): Always
23605 add crtl->drap_reg to set_up_by_prologue.set, even if
23606 stack_realign_drap is false.
23607
f78ac4f2
JBG
236082013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
23609
23610 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
23611 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
23612 *call): Fix indention.
23613
a78a8cc4
TV
236142013-01-15 Tom de Vries <tom@codesourcery.com>
23615
23616 PR target/55876
23617 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
23618 Update comment.
23619
0e80383f
VM
236202013-01-15 Vladimir Makarov <vmakarov@redhat.com>
23621
305e3ac1 23622 PR rtl-optimization/55153
0e80383f
VM
23623 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
23624
207b5956
MJ
236252013-01-15 Martin Jambor <mjambor@suse.cz>
23626
23627 PR tree-optimization/55920
23628 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
23629 accesses as grp_to_be_debug_replaced.
23630
a7818b54
JJ
236312013-01-15 Jakub Jelinek <jakub@redhat.com>
23632
23633 PR tree-optimization/55920
23634 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
23635 there is non-useless type conversion needed from debug rhs to lhs,
23636 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
23637
b0fe107e
JM
236382013-01-15 Joseph Myers <joseph@codesourcery.com>
23639 Mikael Pettersson <mikpe@it.uu.se>
23640
23641 PR target/43961
23642 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
23643 Thumb.
23644 (ASM_OUTPUT_CASE_LABEL): Remove.
23645 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
23646 * final.c (shorten_branches): Update alignment of labels before
23647 jump tables if CASE_VECTOR_SHORTEN_MODE.
23648
34ab62ee
RB
236492013-01-15 Richard Biener <rguenther@suse.de>
23650
23651 PR bootstrap/55961
23652 * system.h: Do not include gmp.h for building host tools.
23653
783a3a05
RB
236542013-01-15 Richard Biener <rguenther@suse.de>
23655
23656 PR middle-end/55882
23657 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
23658 account for bitpos when computing alignment.
23659
3a579e09
VY
236602013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
23661
23662 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
23663 (ix86_target_macros_internal): Likewise.
23664
23665 * config/i386/i386.c (m_CORE2I7): Removed.
23666 (m_CORE_HASWELL): New macro.
23667 (m_CORE_ALL): Likewise.
23668 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
23669 (initial_ix86_arch_features): Likewise.
23670 (processor_target_table): Initializations for Core avx2.
23671 (cpu_names): New names "core-avx2".
23672 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
23673 PROCESSOR_CORE_HASWELL.
23674 (ix86_issue_rate): New case.
23675 (ia32_multipass_dfa_lookahead): Likewise.
23676 (ix86_sched_init_global): Likewise.
23677
23678 * config/i386/i386.h (TARGET_HASWELL): New macro.
23679 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
23680 (processor_type): New PROCESSOR_HASWELL.
23681
955f5a07
JJ
236822013-01-15 Jakub Jelinek <jakub@redhat.com>
23683
ff784829
JJ
23684 PR tree-optimization/55955
23685 * tree-vect-loop.c (vectorizable_reduction): Give up early on
23686 *SHIFT_EXPR and *ROTATE_EXPR codes.
23687
955f5a07
JJ
23688 PR tree-optimization/48766
23689 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
23690 -ftrapv disable -fwrapv.
23691
aeb8b4e9
GJL
236922013-01-14 Georg-Johann Lay <avr@gjlay.de>
23693
23694 PR target/55974
23695 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
23696 etc. to 1 and not to __flash.
23697 Use LL suffix for __INT24_MAX__ with -mint8.
23698 Use ULL suffix for __UINT24_MAX__ with -mint8.
23699
1c494c6a
GJL
237002013-01-14 Georg-Johann Lay <avr@gjlay.de>
23701
23702 * config/avr/avr-arch.h
23703 (struct base_arch_s): Use typedef avr_arch_t instead.
23704 (struct arch_info_s): Use typedef avr_arch_info_t instead.
23705 (struct mcu_type_s): Use typedef avr_mcu_t instead.
23706 * config/avr/avr.c: Same.
23707 * config/avr/avr-devices.c: Same.
23708 * config/avr/driver-avr.c: Same.
23709 * config/avr/gen-avr-mmcu-texi.c: Same.
23710 * config/avr/avr-mcus.def: Adjust comment.
23711
a50344cb
TB
237122013-01-14 Tejas Belagod <tejas.belagod@arm.com>
23713
88e784e6
UB
23714 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
23715 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 23716
47876a2a 237172013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
23718 Andi Kleen <ak@linux.intel.com>
23719
23720 PR target/55948
23721 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
23722 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
23723 memmodel flag.
23724
00892272
GJL
237252013-01-14 Georg-Johann Lay <avr@gjlay.de>
23726
23727 * config/avr/avr-stdint.h: Remove trailing blanks.
23728 * config/avr/avr-log.h: Same.
23729 * config/avr/avr-arch.h: Same.
23730 * config/avr/avr-devices.c: Same.
23731 * config/avr/avr-dimode.md: Same.
23732 * config/avr/predicates.md: Same.
23733 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 23734
00892272
GJL
23735 * config/avr/avr-protos.h: Same. And:
23736 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
23737 (init_cumulative_args): Rename to avr_init_cumulative_args.
23738 (expand_prologue): Rename to avr_expand_prologue.
23739 (expand_epilogue): Rename to avr_expand_epilogue.
23740 (adjust_insn_length): Rename to avr_adjust_insn_length.
23741 (notice_update_cc): Rename to avr_notice_update_cc.
23742 (final_prescan_insn): Rename to avr_final_prescan_insn.
23743 * config/avr/avr.c: Same.
23744 * config/avr/avr.h: Same.
23745 * config/avr/avr.md: Remove trailing blanks.
23746 (prologue): Use avr_expand_prologue.
23747 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
23748
7bb01996
RB
237492013-01-14 Richard Biener <rguenther@suse.de>
23750
23751 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
23752 verify_location, collect_subblocks): New functions.
23753 (verify_gimple_in_cfg): Verify that locations only reference
23754 BLOCKs in the functions BLOCK tree.
23755
2724573f
RB
237562013-01-14 Richard Biener <rguenther@suse.de>
23757
23758 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
23759 PHI argument.
23760 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
23761 unshare reference.
23762 (insert_out_of_ssa_copy_on_edge): Likewise.
23763 (rewrite_close_phi_out_of_ssa): Likewise.
23764 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
23765 debug expressions.
23766 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
23767 propagated constants.
23768 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
23769 can not be shared.
23770
9a0bbab6
GJL
237712013-01-14 Georg-Johann Lay <avr@gjlay.de>
23772
23773 * config/avr/avr-modes.def: Add GPL copyright notice.
23774
45805f17
UB
237752013-01-13 Uros Bizjak <ubizjak@gmail.com>
23776
23777 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
23778 MEMMODEL_MASK to determine memory model.
23779 (atomic_store<mode>): Ditto from operands[2].
23780 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
23781
9d60be38
JJ
237822013-01-13 Jakub Jelinek <jakub@redhat.com>
23783
23784 PR fortran/55935
45805f17 23785 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
23786 (fold_gimple_assign): Don't call unshare_expr here.
23787 (fold_ctor_reference): Call unshare_expr.
23788
e7f49d92
TG
237892013-01-13 Terry Guo <terry.guo@arm.com>
23790
aaf1e810
EB
23791 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
23792 * doc/fragments.texi: Document MULTILIB_REUSE.
23793 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 23794 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 23795 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
23796 (tmpmultilib4): Ditto.
23797 (multilib_reuse): New multilib argument.
23798
fbd03a27
RS
237992013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
23800
23801 * Makefile.in: Update copyright.
23802
b3681f13
TV
238032013-01-12 Tom de Vries <tom@codesourcery.com>
23804
23805 PR middle-end/55890
23806 * calls.c (expand_call): Check if arg_nr is valid.
23807
3f287e4b
MM
238082013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
23809
23810 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
23811 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
23812 documentation. Add missing '__' in front of
23813 __builtin_ia32_packssdw256.
3f287e4b 23814
1abcd5eb
AK
238152013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23816
23817 PR target/55719
23818 * config/s390/s390.c (s390_preferred_reload_class): Do not return
23819 NO_REGS for larl operands.
23820 (s390_reload_larl_operand): Use s390_load_address instead of
23821 emit_move_insn.
23822
980d0812
RB
238232013-01-11 Richard Biener <rguenther@suse.de>
23824
23825 * tree-cfg.c (verify_node_sharing_1): Split out from ...
23826 (verify_node_sharing): ... here.
23827 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
23828
7cb9fd07
EB
238292013-01-11 Eric Botcazou <ebotcazou@adacore.com>
23830
23831 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
23832 Substitute TREECHECKING.
23833 * configure: Regenerate.
23834 * Makefile.in (TREECHECKING): New.
23835
47876a2a 238362013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
23837
23838 PR tree-optimization/44061
23839 * tree-vrp.c (extract_range_basic): Compute zero as
23840 value-range for __builtin_constant_p of function parameters.
23841
d1e082c2
RS
238422013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
23843
45805f17 23844 Update copyright years.
d1e082c2 23845
f85021b0
VM
238462013-01-10 Vladimir Makarov <vmakarov@redhat.com>
23847
9d60be38 23848 PR rtl-optimization/55672
0160442c
VM
23849 * lra-eliminations.c (mark_not_eliminable): Permit addition with
23850 const to be eliminable.
f85021b0 23851
7a8b1ec4
DE
238522013-01-10 David Edelsohn <dje.gcc@gmail.com>
23853
23854 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
23855 * configure: Regenerate.
23856
ad2e5b71
RB
238572013-01-10 Richard Biener <rguenther@suse.de>
23858
ddf9322d 23859 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 23860
ffc5b2bb
RB
238612013-01-10 Richard Biener <rguenther@suse.de>
23862
23863 PR bootstrap/55792
23864 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
23865 locations for virtual PHI arguments.
23866 (rewrite_update_phi_arguments): Likewise.
23867
e1f674e4
JS
238682013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
23869
23870 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
23871 on to assembler.
23872
a57fc743
JJ
238732013-01-10 Jakub Jelinek <jakub@redhat.com>
23874
23875 PR tree-optimization/55921
23876 * tree-complex.c (expand_complex_asm): New function.
23877 (expand_complex_operations_1): Call it for GIMPLE_ASM.
23878
0ff4390d
AK
238792013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23880
23881 PR target/55718
23882 * config/s390/s390.c (s390_symref_operand_p)
23883 (s390_loadrelative_operand_p): Merge the two functions.
23884 (s390_check_qrst_address, print_operand_address): Add parameters
23885 to s390_loadrelative_operand_p invokation.
23886 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
23887 (s390_reload_larl_operand, s390_secondary_reload): Use
23888 s390_loadrelative_operand_p instead of s390_symref_operand_p.
23889 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
23890
6f557e0e
MS
238912013-01-09 Mike Stump <mikestump@comcast.net>
23892
23893 * dse.c (record_store): Remove unnecessary assert.
23894
7770c9e9
JH
238952013-01-09 Jan Hubicka <jh@suse.cz>
23896
23897 PR tree-optimization/55569
23898 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
23899 * cfgloop.h (scale_loop_profile): Likewise.
23900
a19b1432
JH
239012013-01-09 Jan Hubicka <jh@suse.cz>
23902
23903 PR lto/45375
ddf9322d
UB
23904 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
23905 functions.
a19b1432
JH
23906 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
23907
9a002da8
RS
239082013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
23909
23910 PR middle-end/55114
23911 * expr.h (maybe_emit_group_store): Declare.
23912 * expr.c (maybe_emit_group_store): New function.
23913 * builtins.c (expand_builtin_int_roundingfn): Call it.
23914 (expand_builtin_int_roundingfn_2): Likewise.
23915
511dcace
VM
239162013-01-09 Vladimir Makarov <vmakarov@redhat.com>
23917
e1f2b729 23918 PR rtl-optimization/55829
511dcace
VM
23919 * lra-constraints.c (match_reload): Add code for absent output.
23920 (curr_insn_transform): Add code for reloads of matched inputs
23921 without output.
23922
7b0fe4f4
UB
239232013-01-09 Uros Bizjak <ubizjak@gmail.com>
23924
23925 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
23926 attribute of movddup insn to DF.
23927 (*vec_interleave_lowv2df): Ditto.
23928 (vec_dupv2df): Ditto.
23929
870ca331
JH
239302013-01-09 Jan Hubicka <jh@suse.cz>
23931
23932 PR tree-optimiation/55875
23933 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
23934 EVERY_ITERATION parameter.
7b0fe4f4 23935 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
23936 (idx_infer_loop_bounds): Similarly here.
23937 (n_of_executions_at_most): Simplify
23938 to only test for cases where statement is dominated by the
7b0fe4f4 23939 particular bound; handle correctly the "postdominance" test.
870ca331
JH
23940 (scev_probably_wraps_p): Use max loop iterations info
23941 as a global bound first.
23942
6f575fe4 239432013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
23944 Nick Clifton <nickc@redhat.com>
23945
23946 * config/v850/v850.md (cbranchsf4): New pattern.
23947 (cstoresf4): New pattern.
23948 (cbranchdf4): New pattern.
23949 (cstoredf4): New pattern.
23950 (movsicc): Disallow floating point comparisons.
23951 (cmpsf_le_insn): Fix order of operators.
23952 (cmpsf_lt_insn): Likewise.
23953 (cmpsf_eq_insn): Likewise.
23954 (cmpdf_le_insn): Likewise.
23955 (cmpdf_lt_insn): Likewise.
23956 (cmpdf_eq_insn): Likewise.
23957 (cmpsf_ge_insn): Use LE comparison.
23958 (cmpdf_ge_insn): Likewise.
23959 (cmpsf_gt_insn): Use LT comparison.
23960 (cmpdf_gt_insn): Likewise.
23961 (cmpsf_ne_insn): Delete pattern.
23962 (cmpdf_ne_insn): Delete pattern.
23963 * config/v850/v850.c (v850_gen_float_compare): Use
23964 gen_cmpdf_eq_insn for NE comparison.
23965 (v850_float_z_comparison_operator)
23966 (v850_float_nz_comparison_operator): Move from here ...
23967 * config/v850/predicates.md: ... to here. Move GT and GE
23968 comparisons into v850_float_z_comparison_operator.
23969 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
23970 Delete prototype.
23971 (v850_float_nz_comparison_operator): Likewise.
23972
f0d54148
JDA
239732013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23974
23975 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
23976 with calls to gen_insvsi/gen_insvdi.
23977
8f01beca
VK
239782013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23979
23980 * config/i386/i386.c (initial_ix86_tune_features): Set up
23981 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
23982
2aa579ad
JJ
239832013-01-09 Steven Bosscher <steven@gcc.gnu.org>
23984 Jakub Jelinek <jakub@redhat.com>
23985
23986 PR tree-optimization/48189
23987 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
23988 If nitercst is 0, don't predict the exit edge.
23989
6edc3e32 239902013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
23991
23992 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
23993 in asm_fprintf with reg_names.
23994 (aarch64_print_operand_address): Likewise.
23995 (aarch64_return_addr): Likewise.
23996 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
23997
f6f94d94
JDA
239982013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23999
24000 * config/pa/pa.h (VAL_U6_BITS_P): Define.
24001 (INT_U6_BITS): Likewise.
24002 * config/pa/predicates.md (uint6_operand): New predicate.
24003 (shift5_operand, shift6_operand): Likewise.
24004 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
24005 arith32_operand.
24006 (lshrdi3): Use shift6_operand.
24007 (shrpsi4, shrpdi4): New insn patterns.
24008 (extzv): Delete expander.
24009 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
24010 predicates in unamed zero extract patterns. Tighten common constraint.
24011 (extv): Delete expander.
24012 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
24013 predicates in unamed sign extract patterns. Tighten common constraint.
24014 (insv): Delete expander.
24015 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
24016 predicates in unamed insert patterns. Tighten common constraint.
24017 Change uint32_operand predicate to uint6_operand predicate in unamed
24018 DImode pattern to insert constant values of type 1...1xxxx.
24019
36b72910
JH
240202013-01-04 Jan Hubicka <jh@suse.cz>
24021
24022 PR tree-optimization/55823
7b0fe4f4
UB
24023 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
24024 issue.
36b72910 24025
47876a2a 240262013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
24027 Uros Bizjak <ubizjak@gmail.com>
24028
24029 PR rtl-optimization/55845
24030 * df-problems.c (can_move_insns_across): Stop scanning at
24031 volatile_insn_p source instruction or give up if
24032 across_from .. across_to range contains any volatile_insn_p
24033 instructions.
24034
4369c11e
TB
240352013-01-08 Tejas Belagod <tejas.belagod@arm.com>
24036
7b0fe4f4
UB
24037 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
24038 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
24039 Declare.
4369c11e 24040 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 24041 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 24042
aeb7e7c1
JJ
240432013-01-08 Jakub Jelinek <jakub@redhat.com>
24044
24045 PR fortran/55341
24046 * asan.c (asan_clear_shadow): New function.
24047 (asan_emit_stack_protection): Use it.
24048
a02ad1aa
TB
240492013-01-08 Tejas Belagod <tejas.belagod@arm.com>
24050
24051 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
24052 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
24053 with tab instead of space.
24054
f90d87f5
NC
240552013-01-08 Nick Clifton <nickc@redhat.com>
24056
24057 * config/rl78/rl78.c (rl78_expand_prologue): Always select
24058 register bank 0 at the start of an interrupt handler.
83ffd964
NC
24059 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
24060 MDBH registers.
f90d87f5 24061
385eb93d
JG
240622013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
24063
24064 * config/aarch64/aarch64-simd.md
24065 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
24066 (aarch64_simd_bsl): Likewise.
24067 (aarch64_vcond_internal<mode>): Likewise.
24068 (vcond<mode><mode>): Likewise.
24069 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
24070 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
24071
4dcd1054
JG
240722013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
24073
24074 * config/aarch64/aarch64-builtins.c
24075 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
24076
4267a4a6
MJ
240772013-01-08 Martin Jambor <mjambor@suse.cz>
24078
24079 PR debug/55579
24080 * tree-sra.c (analyze_access_subtree): Return true also after
24081 potentially creating a debug-only replacement.
24082
5f4e6de3
JJ
240832013-01-08 Jakub Jelinek <jakub@redhat.com>
24084
3138f224
JJ
24085 PR middle-end/55890
24086 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
24087
5f4e6de3
JJ
24088 PR tree-optimization/54120
24089 * tree-vrp.c (range_fits_type_p): Don't allow
24090 src_precision < precision from signed vr to unsigned_p
24091 if vr->min or vr->max is negative.
24092 (simplify_float_conversion_using_ranges): Test can_float_p
24093 against CODE_FOR_nothing.
24094
f3ef18ff
JJ
240952013-01-08 Jakub Jelinek <jakub@redhat.com>
24096 Richard Biener <rguenther@suse.de>
24097
24098 PR middle-end/55851
24099 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
24100 types instead of just INTEGER_TYPE types.
24101
25c210f9
MK
241022013-01-07 Mark Kettenis <kettenis@openbsd.org>
24103
24104 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
24105 TF_SIZE): Define.
f90d87f5 24106
81826a7b
SE
241072013-01-07 Steve Ellcey <sellcey@mips.com>
24108
24109 PR target/42661
24110 * config/mips/mips.opt: Change mad to mmad to match documentation.
24111
35678514
GJL
241122013-01-07 Georg-Johann Lay <avr@gjlay.de>
24113
24114 PR target/55897
24115 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
24116 .progmemx.data now.
24117
e5669488
GJL
241182013-01-07 Georg-Johann Lay <avr@gjlay.de>
24119
24120 PR target/55897
24121 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
24122 (avr_addrspace_t): Add .section_name field.
24123 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
24124 array size.
24125 (avr_addrspace): Same. Initialize .section_name. Remove last
24126 NULL entry. Put __memx into .progmemx.data.
24127 (progmem_section_prefix): Remove.
24128 (avr_asm_init_sections): No need to initialize progmem_section.
24129 (avr_asm_named_section): Use avr_addrspace[].section_name to get
24130 section name prefix.
24131 (avr_asm_select_section): Ditto. And use get_unnamed_section to
24132 retrieve the progmem section.
24133 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
24134 boundary to run over avr_addrspace[].
24135 (avr_register_target_pragmas): Ditto.
24136
656e6f37
JJ
241372013-01-06 Jakub Jelinek <jakub@redhat.com>
24138
24139 * varasm.c (output_constant_def_contents): For asan_protect_global
24140 protected strings, adjust DECL_ALIGN if needed, before testing for
24141 anchored symbols.
24142 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
24143 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
24144 normal decls.
24145 (output_object_block): For asan protected decls, emit asan padding
24146 after their contents.
24147 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
24148 (asan_finish_file): Test it here instead.
24149
6edc3e32
UB
241502013-01-07 Nick Clifton <nickc@redhat.com>
24151 Matthias Klose <doko@debian.org>
24152 Doug Kwan <dougkwan@google.com>
24153 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
24154
24155 PR driver/55470
24156 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
24157
24158 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
24159
24160 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
24161
7b0fe4f4 24162 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
24163
24164 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
24165
2a095093
GJL
241662013-01-07 Georg-Johann Lay <avr@gjlay.de>
24167
f3b503f4 24168 PR target/54461
2a095093
GJL
24169 * doc/install.texi (Cross-Compiler-Specific Options): Document
24170 --with-avrlibc.
24171
383f9b34
TB
241722013-01-07 Tejas Belagod <tejas.belagod@arm.com>
24173
24174 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
24175 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
24176 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
24177 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
24178 vqmovun_high_s64): Fix source operand number and update copyright.
24179
3626621a
RB
241802013-01-07 Richard Biener <rguenther@suse.de>
24181
24182 PR middle-end/55890
24183 * gimple.h (gimple_call_builtin_p): New overload.
24184 * gimple.c (validate_call): New function.
24185 (gimple_call_builtin_p): Likewise.
24186 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24187 Use gimple_call_builtin_p.
24188 (find_func_clobbers): Likewise.
24189 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
24190 (strlen_optimize_stmt): Likewise.
24191
8b2ea410
JG
241922013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
24193
24194 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
24195 (vld1q_dup_*): Likewise.
24196 (vld1_*): Likewise.
24197 (vld1q_*): Likewise.
24198 (vld1_lane_*): Likewise.
24199 (vld1q_lane_*): Likewise.
24200
9713d329
RB
242012013-01-07 Richard Biener <rguenther@suse.de>
24202
24203 * lto-streamer.h (LTO_minor_version): Bump to 2.
24204
3520f7cc
JG
242052013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
24206
24207 * config/aarch64/aarch64-protos.h
24208 (aarch64_const_double_zero_rtx_p): Rename to...
24209 (aarch64_float_const_zero_rtx_p): ...this.
24210 (aarch64_float_const_representable_p): New.
24211 (aarch64_output_simd_mov_immediate): Likewise.
24212 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
24213 move immediate case.
24214 * config/aarch64/aarch64.c
24215 (aarch64_const_double_zero_rtx_p): Rename to...
24216 (aarch64_float_const_zero_rtx_p): ...this.
24217 (aarch64_print_operand): Allow printing of new constants.
24218 (aarch64_valid_floating_const): New.
24219 (aarch64_legitimate_constant_p): Check for valid floating-point
24220 constants.
24221 (aarch64_simd_valid_immediate): Likewise.
24222 (aarch64_vect_float_const_representable_p): New.
24223 (aarch64_float_const_representable_p): Likewise.
24224 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
24225 (aarch64_output_simd_mov_immediate): New.
24226 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
24227 (*movdf_aarch64): Likewise.
24228 * config/aarch64/constraints.md (Ufc): New.
24229 (Y): call aarch64_float_const_zero_rtx.
24230 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
24231
e167c04d
RB
242322013-01-07 Richard Biener <rguenther@suse.de>
24233
24234 PR tree-optimization/55888
24235 PR tree-optimization/55862
24236 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
24237 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
24238 not if it is contained therein.
24239
0139aaab
GJL
242402013-01-07 Georg-Johann Lay <avr@gjlay.de>
24241
24242 * config/avr/t-avr: Typo.
24243
4a176b23
GJL
242442013-01-07 Georg-Johann Lay <avr@gjlay.de>
24245
24246 PR55243
24247 * config/avr/t-avr: Don't automatically rebuild
24248 $(srcdir)/config/avr/t-multilib
24249 $(srcdir)/config/avr/avr-tables.opt
24250 $(srcdir)/doc/avr-mmcu.texi
24251 (avr-mcus): New phony target to build them on request.
24252 (s-avr-mlib, s-avr-mmcu-texi): Remove.
24253 * avr/avr-mcus.def: Adjust comments.
24254
c7afdc98
UB
242552013-01-07 Uros Bizjak <ubizjak@gmail.com>
24256
24257 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
24258
1ab05c31
RS
242592013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
24260
24261 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
24262
488e3acc
RS
242632013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
24264
24265 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
24266
a89599d2
DE
242672013-01-05 David Edelsohn <dje.gcc@gmail.com>
24268
24269 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
24270 to generate profiling.
24271 * config/rs6000/aix64.h (LIB_SPEC): Same.
24272
70f09188
AP
242732013-01-04 Andrew Pinski <apinski@cavium.com>
24274
24275 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
24276 New function.
24277 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
24278
918d445f
UB
242792013-01-04 Uros Bizjak <ubizjak@gmail.com>
24280
24281 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
24282 unconditionally.
24283 (ix86_expand_move): Ditto.
24284 (ix86_zero_extend_to_Pmode): Ditto.
24285 (ix86_expand_call): Ditto.
24286 (ix86_expand_special_args_builtin): Ditto.
24287 (ix86_expand_builtin): Ditto.
24288
361618ec
RB
242892013-01-04 Richard Biener <rguenther@suse.de>
24290
24291 PR tree-optimization/55862
24292 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
24293 translating them through PHI nodes.
24294
87eab554
MJ
242952013-01-04 Martin Jambor <mjambor@suse.cz>
24296
24297 PR tree-optimization/55755
24298 * tree-sra.c (sra_modify_assign): Do not check that an access has no
24299 children when trying to avoid producing a VIEW_CONVERT_EXPR.
24300
33879b9f
MP
243012013-01-04 Marek Polacek <polacek@redhat.com>
24302
24303 PR middle-end/55859
24304 * opts.c (default_options_optimization): Clarify error message.
24305
3068819a
RB
243062013-01-04 Richard Biener <rguenther@suse.de>
24307
24308 PR middle-end/55863
24309 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
24310 reassociation.
24311
0e4ae794
JDA
243122013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24313
24314 PR target/53789
24315 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
24316 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
24317 references.
0e4ae794 24318
65c88cef
RH
243192013-01-03 Richard Henderson <rth@redhat.com>
24320
24321 * config/i386/i386.c (ix86_expand_move): Always assign to op1
24322 after eliminating TLS symbols.
24323
8ac16127
MG
243242013-01-03 Marc Glisse <marc.glisse@inria.fr>
24325
24326 PR bootstrap/50167
24327 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
24328 * graphite-poly.c (debug_gmp_value): Likewise.
24329
bb664f09
UB
243302013-01-03 Uros Bizjak <ubizjak@gmail.com>
24331
24332 PR target/55712
24333 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
24334 selected code model, define __code_mode_small__, __code_model_medium__,
24335 __code_model_large__, __code_model_32__ or __code_model_kernel__.
24336 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
24337 xchg temporary register with %k. Declare temporary register as
24338 early clobbered.
24339 [__x86_64__]: For medium and large code models, preserve %rbx register.
24340
bcf1ef00
RB
243412013-01-03 Richard Biener <rguenther@suse.de>
24342
0506634a 24343 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
24344 (dump_subscript): Adjust.
24345 (finalize_ddr_dependent): Do not dump redundant info.
24346 (analyze_siv_subscript): Adjust.
24347 (subscript_dependence_tester): Likewise.
24348 (compute_affine_dependence): Likewise.
24349
59fd17e3
RB
243502013-01-03 Richard Biener <rguenther@suse.de>
24351
24352 Revert
24353 2013-01-03 Richard Biener <rguenther@suse.de>
24354
24355 PR tree-optimization/55857
24356 * tree-vect-stmts.c (vectorizable_load): Do not setup
24357 re-alignment for invariant loads.
24358
24359 2013-01-02 Richard Biener <rguenther@suse.de>
24360
24361 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 24362 invariant load do not generate a vector load from the scalar location.
59fd17e3 24363
595c2679
RB
243642013-01-03 Richard Biener <rguenther@suse.de>
24365
24366 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
24367 for not vectorizing.
24368 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
24369 not build INDIRECT_REFs, call get_name once only.
24370 (vect_create_data_ref_ptr): Likewise. Dump base object kind
24371 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
24372
90bb7d7a
RB
243732013-01-03 Richard Biener <rguenther@suse.de>
24374
24375 PR tree-optimization/55857
24376 * tree-vect-stmts.c (vectorizable_load): Do not setup
24377 re-alignment for invariant loads.
24378
f09b77ca
RB
243792013-01-03 Richard Biener <rguenther@suse.de>
24380
24381 PR lto/55848
24382 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
24383 prefer a built-in decl.
24384
3461a16e
JJ
243852013-01-03 Jakub Jelinek <jakub@redhat.com>
24386
df8e2b4f
JJ
24387 * gcc.c (process_command): Update copyright notice dates.
24388 * gcov.c (print_version): Likewise.
24389 * gcov-dump.c (print_version): Likewise.
24390
3461a16e
JJ
24391 PR rtl-optimization/55838
24392 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
24393 iv0.step, iv1.step and step.
24394
8b5546d6
JJ
243952013-01-03 Jakub Jelinek <jakub@redhat.com>
24396 Marc Glisse <marc.glisse@inria.fr>
24397
24398 PR tree-optimization/55832
24399 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
24400 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
24401 integer_{one,zero}_node.
24402
8ab1d2e9
JJ
244032013-01-03 Jakub Jelinek <jakub@redhat.com>
24404
24405 PR debug/54402
24406 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
24407 * var-tracking.c (reverse_op): Don't add reverse ops to
24408 VALUEs that have already
0506634a 24409 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 24410
5b9ad1d4
GP
244112013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
24412
24413 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
24414
e25a6711
TJ
244152013-01-02 Teresa Johnson <tejohnson@google.com>
24416
24417 * dumpfile.c (dump_loc): Print filename with location.
24418 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
24419 new location_t parameter to emit complete unroll message with
24420 new dump framework.
24421 (canonicalize_loop_induction_variables): Compute loops location
24422 and pass to try_unroll_loop_completely.
24423 * loop-unroll.c (report_unroll_peel): New function.
24424 (peel_loops_completely): Use new dump format with location
24425 for main dumpfile message, and invoke report_unroll_peel on success.
24426 (decide_unrolling_and_peeling): Ditto.
24427 (decide_peel_once_rolling): Remove old dumpfile message subsumed
24428 by report_unroll_peel.
24429 (decide_peel_completely): Ditto.
24430 (decide_unroll_constant_iterations): Ditto.
24431 (decide_unroll_runtime_iterations): Ditto.
24432 (decide_peel_simple): Ditto.
24433 (decide_unroll_stupid): Ditto.
24434 * cfgloop.c (get_loop_location): New function.
24435 * cfgloop.h (get_loop_location): Declare.
24436
77878621
ST
244372013-01-02 Sriraman Tallam <tmsriram@google.com>
24438
24439 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
24440 NULL.
24441
9e65d03e
JDA
244422013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24443
24444 PR middle-end/55198
24445 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
24446 BLKmode objects when EXPAND_MEMORY is specified.
24447
6a7da30f
ST
244482013-01-02 Sriraman Tallam <tmsriram@google.com>
24449
24450 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
24451 in loop predicate.
24452 (fold_builtin_cpu): Do not share cpu model decls across statements.
24453
e78167f2
JM
244542013-01-02 Jason Merrill <jason@redhat.com>
24455
24456 PR c++/55804
24457 * tree.c (build_array_type_1): Revert earlier change.
24458
8c075fb4
YZ
244592013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
24460
24461 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
24462 "cortex-a57".
24463 * config/aarch64/aarch64-tune.md: Re-generate.
24464
0682ed3e
RB
244652013-01-02 Richard Biener <rguenther@suse.de>
24466
24467 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 24468 invariant load do not generate a vector load from the scalar location.
0682ed3e 24469
b8f6a302
RB
244702013-01-02 Richard Biener <rguenther@suse.de>
24471
24472 PR bootstrap/55784
24473 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
24474 * configure: Regenerate.
24475
04b80dbb
RS
244762013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
24477
24478 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
24479 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
24480 (expand_builtin_int_roundingfn_2): Keep the original target around
24481 for the fallback case.
24482
635b0b0c
RS
244832013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
24484
24485 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
24486 to be clear for sign changes.
24487
42d57399
JH
244882013-01-01 Jan Hubicka <jh@suse.cz>
24489
24490 * ipa-inline-analysis.c: Fix formatting.
24491
5bb6669d
JJ
244922013-01-01 Jakub Jelinek <jakub@redhat.com>
24493
24494 PR tree-optimization/55831
24495 * tree-vect-loop.c (get_initial_def_for_induction): Use
24496 gsi_after_labels instead of gsi_start_bb.
ad41bd84 24497\f
86a2db33 24498Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
24499
24500Copying and distribution of this file, with or without modification,
24501are permitted in any medium without royalty provided the copyright
24502notice and this notice are preserved.