]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
arm.md (peepholes for eq (reg1) (reg2/imm)): Generate canonical plus rtx with negated...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
c743b246
KT
12013-08-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2
3 * config/arm/arm.md (peepholes for eq (reg1) (reg2/imm)):
4 Generate canonical plus rtx with negated immediate instead of minus
5 where appropriate.
6 * config/arm/arm.c (thumb2_reorg): Handle ADCS <Rd>, <Rn> case.
7
c0c123ef
JH
82013-08-01 Jan Hubicka <jh@suse.cz>
9
10 * cgraph.c (cgraph_release_function_body): Use used_as_abstract_origin.
11 (cgraph_release_function_body): Likewise.
12 (cgraph_can_remove_if_no_direct_calls_p): Likewise.
13 * cgraph.h (cgrpah_node): Rename abstract_and_needed
14 to used_as_abstract_origin.
15 * tree-inline-transfrom.c (can_remove_node_now_p_1): Do not remove
16 symbols used as abstract origins.
17 * cgraphunit.c (analyze_functions): Update.
18 * ipa.c (symtab_remove_unreachable_nodes): Recompute used_as_abstract_origin.
19 * tree-inline.c (tree_function_versioning): Update
20 used_as_abstract_origin; be ready for DECL_RESULT and DECL_ARGUMENTS to be
21 NULL.
22
23 * lto-symtab.c (lto_symtab_merge_symbols): Merge duplicated nodes for abstract functions.
24 * cgraph.h (symtab_real_symbol_p): Abstract declarations are not real symbols.
25
1f029433
JH
262013-08-01 Jan Hubicka <jh@suse.cz>
27
28 * profile.c (compute_value_histograms): Fix thinko.
29
c451f4d6
SN
302013-08-01 Sofiane Naci <sofiane.naci@arm.com>
31
32 * config.gcc (aarch64*-*-*): Add aarch-common.o to extra_objs. Add
33 aarch-common-protos.h to extra_headers.
34 (aarch64*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
35 * config/aarch64/aarch64.md: Include "../arm/cortex-a53.md".
36 * config/aarch64/t-aarch64 (aarch-common.o): Define.
37
34b512f5
SN
382013-08-01 Sofiane Naci <sofiane.naci@arm.com>
39
40 * config/aarch64/aarch64.md (define_attr "type"): Delete.
41 Include "../arm/types.md". Define "type" attribute for all patterns.
42 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update for
43 attribute changes.
44
d86e633a
MM
452013-07-31 Michael Meissner <meissner@linux.vnet.ibm.com>
46
47 * config/rs6000/predicates.md (fusion_gpr_addis): New predicates
48 to support power8 load fusion.
49 (fusion_gpr_mem_load): Likewise.
50
51 * config/rs6000/rs6000-modes.def (PTImode): Update a comment.
52
53 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): New
54 declarations for power8 load fusion.
55 (emit_fusion_gpr_load): Likewise.
56
57 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
58 tuning for power8, turn on fusion mode by default. Turn on sign
59 extending fusion mode if normal fusion mode is on, and we are at
60 -O2 or -O3.
61 (fusion_gpr_load_p): New function, return true if we can fuse an
62 addis instruction with a dependent load to a GPR.
63 (emit_fusion_gpr_load): Emit the instructions for power8 load
64 fusion to GPRs.
65
66 * config/rs6000/vsx.md (VSX_M2): New iterator for fusion
67 peepholes.
68 (VSX load fusion peepholes): New peepholes to fuse together an
69 addi instruction with a VSX load instruction.
70
71 * config/rs6000/rs6000.md (GPR load fusion peepholes): New
72 peepholes to fuse an addis instruction with a load to a GPR base
73 register. If we are supporting sign extending fusions, convert
74 sign extending loads to zero extending loads and add an explicit
75 sign extension.
76
c3f35647
SN
772013-07-31 Sofiane Naci <sofiane.naci@arm.com>
78
79 * config.gcc (arm*-*-*): Add aarch-common.o to extra_objs. Add
80 aarch-common-protos.h to extra_headers.
81 (arm*-*-*): Add arm/aarch-common-protos.h to tm_p_file.
82 * config/arm/arm.c (arm_early_load_addr_dep): Move from here to ...
83 (arm_early_store_addr_dep): Likewise.
84 (arm_no_early_alu_shift_dep: Likewise.
85 (arm_no_early_alu_shift_value_dep: Likewise.
86 (arm_no_early_mul_dep: Likewise.
87 (arm_no_early_store_addr_dep: Likewise.
88 (arm_mac_accumulator_is_mul_result: Likewise.
89 (arm_mac_accumulator_is_result: Likewise.
90 * config/arm/aarch-common.c: ... here. New file.
91 * config/arm/arm-protos.h (arm_early_load_addr_dep): Move from here to ...
92 (arm_early_store_addr_dep): Likewise.
93 (arm_no_early_alu_shift_dep: Likewise.
94 (arm_no_early_alu_shift_value_dep: Likewise.
95 (arm_no_early_mul_dep: Likewise.
96 (arm_no_early_store_addr_dep: Likewise.
97 (arm_mac_accumulator_is_mul_result: Likewise.
98 (arm_mac_accumulator_is_result: Likewise.
99 * config/arm/aarch-common-protos.h: ... here. New file.
100 * config/arm/t-arm (aarch-common.o): Define.
101
1022013-07-31 Sofiane Naci <sofiane.naci@arm.com>
103
104 * config/arm/arm.md: Include new file "types.md".
105 (define_attr "type"): Move from here to ...
106 (define_attr "mul32"): Likewise.
107 (define_attr "mul64"): Likewise.
108 * config/arm/types.md: ... here. New file.
109
228c1313
SH
1102013-07-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
111
112 * config.gcc (*-*-rtems*): Use __cxa_atexit by default.
113 * config/rs6000/rtems.h (TARGET_LIBGCC_SDATA_SECTION): Define.
114
d6e9046d 1152013-07-31 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8ac499bb
JBG
116
117 * gen-pass-instances.awk: Fix offset of substr().
118
a167b052
DM
1192013-07-31 David Malcolm <dmalcolm@redhat.com>
120
121 * Makefile.in (pass-instances.def): New.
122 (passes.o): Replace dependency on passes.def with one on
123 pass-instances.def
124
125 * gen-pass-instances.awk: New.
126
127 * passes.c (pass_manager::pass_manager): Use pass-instances.def
128 rather than passes.def, updating local definition of NEXT_PASS
129 macro to add an extra NUM parameter (currently unused).
130
315f8c0e
DM
1312013-07-30 David Malcolm <dmalcolm@redhat.com>
132
133 * Makefile.in (PASS_MANAGER_H): New.
134 (lto-cgraph.o): Depend on CONTEXT_H and PASS_MANAGER_H.
135 (passes.o): Likewise.
136 (statistics.o): Likewise.
137 (cgraphunit.o): Likewise.
138 (context.o): Depend on PASS_MANAGER_H.
139
140 * pass_manager.h: New.
141
142 * cgraphunit.c (cgraph_add_new_function): Update for moves
143 of globals to fields of pass_manager.
144 (analyze_function): Likewise.
145 (expand_function): Likewise.
146 (ipa_passes): Likewise.
147 (compile): Likewise.
148
149 * context.c (context::context): New.
150 * context.h (context::context): New.
151 (context::get_passes): New.
152 (context::passes_): New.
153
154 * lto-cgraph.c (input_node): Update for moves of globals to
155 fields of pass_manager.
156
157 * passes.c (all_passes): Remove, in favor of a field of the
158 same name within the new class pass_manager.
159 (all_small_ipa_passes): Likewise.
160 (all_lowering_passes): Likewise.
161 (all_regular_ipa_passes): Likewise.
162 (all_late_ipa_passes): Likewise.
163 (all_lto_gen_passes): Likewise.
164 (passes_by_id): Likewise.
165 (passes_by_id_size): Likewise.
166 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
167 the new class pass_manager.
168 (set_pass_for_id): Convert to...
169 (pass_manager::set_pass_for_id): ...method.
170 (get_pass_for_id): Convert to...
171 (pass_manager::get_pass_for_id): ...method.
172 (register_one_dump_file): Move body of implementation into...
173 (pass_manager::register_one_dump_file): ...here.
174 (register_dump_files_1): Convert to...
175 (pass_manager::register_dump_files_1): ...method.
176 (register_dump_files): Convert to...
177 (pass_manager::register_dump_files): ...method.
178 (create_pass_tab): Update for moves of globals to fields of
179 pass_manager.
180 (dump_passes): Move body of implementation into...
181 (pass_manager::dump_passes): ...here.
182 (register_pass): Move body of implementation into...
183 (pass_manager::register_pass): ...here.
184 (init_optimization_passes): Convert into...
185 (pass_manager::pass_manager): ...constructor for new
186 pass_manager class, and initialize the pass_lists array.
187 (check_profile_consistency): Update for moves of globals to
188 fields of pass_manager.
189 (dump_profile_report): Move body of implementation into...
190 (pass_manager::dump_profile_report): ...here.
191 (ipa_write_summaries_1): Update for moves of pass lists from
192 being globals to fields of pass_manager.
193 (ipa_write_optimization_summaries): Likewise.
194 (ipa_read_summaries): Likewise.
195 (ipa_read_optimization_summaries): Likewise.
196 (execute_all_ipa_stmt_fixups): Likewise.
197
198 * statistics.c (statistics_fini): Update for moves of globals to
199 fields of pass_manager.
200
201 * toplev.c (general_init): Replace call to
202 init_optimization_passes with construction of the pass_manager
203 instance.
204
205 * tree-pass.h (all_passes): Remove, in favor of a field of the
206 same name within the new class pass_manager.
207 (all_small_ipa_passes): Likewise.
208 (all_lowering_passes): Likewise.
209 (all_regular_ipa_passes): Likewise.
210 (all_lto_gen_passes): Likewise.
211 (all_late_ipa_passes): Likewise.
212 (passes_by_id): Likewise.
213 (passes_by_id_size): Likewise.
214 (gcc_pass_lists): Remove, in favor of "pass_lists" field within
215 the new class pass_manager.
216 (get_pass_for_id): Remove.
217
02cab1c1
RE
2182013-07-30 Richard Earnshaw <rearnsha@arm.com>
219
220 * config.gcc (arm): Require 64-bit host-wide-int for all ARM target
221 configs.
222
b2d3f886
RE
2232013-07-30 Richard Earnshaw <rearnsha@arm.com>
224
225 * arm.md (mulhi3): New expand pattern.
226
605e86fa
JH
2272013-07-30 Jan Hubicka <jh@suse.cz>
228 Martin Liska <marxin.liska@gmail.com>
229
230 * profile.c (compute_value_histograms): Do not ICE when
231 there is mismatch only on some counters.
232
14a87636
ZC
2332013-07-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
234
235 PR rtl-optimization/57637
236 * function.c (move_insn_for_shrink_wrap): Also check the
237 GEN set of the LIVE problem for the liveness analysis
238 if it exists, otherwise give up.
239
0100cd3f
BS
2402013-07-29 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
241
242 PR tree-optimization/57993
243 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Record
244 replaced statement in the candidate table.
245 (phi_add_costs): Return infinite cost when the hidden basis does
246 not dominate all phis on which the candidate is dependent.
247 (replace_one_candidate): Record replaced statement in the
248 candidate table.
249
f0d811f7
JR
2502013-07-29 Joern Rennecke <joern.rennecke@embecosm.com>
251
252 * config/epiphany/epiphany.md (*isub_i+2): New peephole.
253 (ashlv2si3): New expander.
254 (*ashlv2si3_i): New define_insn_and_split.
255 * predicates.md (float_operation): Allow patterns with three
256 basic sub-patterns.
257
bba33211
JR
258 PR rtl-optimization/58021
259 * mode-switching.c (create_pre_exit): Always split off preceding
260 insns if we are not at the basic block head.
261
ff3f3951
MR
2622013-07-29 Maciej W. Rozycki <macro@codesourcery.com>
263
264 * config/mips/linux.h (GLIBC_DYNAMIC_LINKER): Handle `-mnan=2008'.
265 (UCLIBC_DYNAMIC_LINKER): New macro.
266 * config/mips/linux64.h (GLIBC_DYNAMIC_LINKER32): Handle
267 `-mnan=2008'.
268 (GLIBC_DYNAMIC_LINKER64, GLIBC_DYNAMIC_LINKERN32): Likewise.
269 (UCLIBC_DYNAMIC_LINKER32): Undefine macro first. Handle
270 `-mnan=2008'.
271 (UCLIBC_DYNAMIC_LINKER64): Redefine macro.
272 (UCLIBC_DYNAMIC_LINKERN32): Likewise.
273 * config/mips/mips-modes.def: Remove RESET_FLOAT_FORMAT calls
274 for SF and DF modes. Use ieee_quad_format for TF mode.
275 * config/mips/mips-opts.h (mips_ieee_754_setting): New enum.
276 * config/mips/mips.c (mips_file_start): Output a `.nan' directive.
277 (mips_option_override): Handle `-mnan=legacy'.
278 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Handle
279 `-mabs=2008' and `-mnan=2008'.
280 (OPTION_DEFAULT_SPECS): Add "nan" default.
281 (ASM_SPEC): Handle `-mnan='.
282 [!HAVE_AS_NAN] (HAVE_AS_NAN): New macro.
283 * config/mips/mips.md (abs<mode>2): Handle `-mabs=2008', update
284 comment accordingly.
285 (neg<mode>2): Likewise.
286 * config/mips/mips.opt (mabs, mnan): New options.
287 * doc/install.texi (Configuration): Document `--with-nan=' option.
288 * doc/invoke.texi (Option Summary): List MIPS `-mabs=' and
289 `-mnan=' options.
290 (MIPS Options): Document them.
291 * config.gcc <mips*-*-*>: Handle `--with-nan='.
292 * configure.ac <mips*-*-*>: Check for GAS `-mnan=2008' support.
293 * configure: Regenerate.
294 * config.in: Regenerate.
295
576e2f37
UB
2962013-07-29 Uros Bizjak <ubizjak@gmail.com>
297
298 * config/i386/i386.md (float post-reload splitters): Do not check
299 for subregs of SSE registers.
300
3012013-07-29 Uros Bizjak <ubizjak@gmail.com>
302 H.J. Lu <hongjiu.lu@intel.com>
303
304 PR target/57954
305 PR target/57988
306 * config/i386/i386.md (post-reload splitter
307 to avoid partial SSE reg dependency stalls): New pattern.
308
a71f0749
DV
3092013-07-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
310
311 * config/s390/s390.md ("movcc"): Swap load and store instructions.
312
4c97f1cc
JR
3132013-07-27 Joern Rennecke <joern.rennecke@embecosm.com>
314
315 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
316 Also reserve space for saving UNKNOWN_REGNUM for leaf functions.
317
b0c733d8
CC
3182013-07-26 Cary Coutant <ccoutant@google.com>
319
320 * dwarf2out.c (die_checksum_ordered): Don't include template
321 instantiations in signature.
322 (is_template_parameter): New function.
323 (is_template_instantiation): New function.
324 (generate_skeleton_bottom_up): Don't include template instantiations
325 in type unit DIE.
326 (generate_skeleton): Likewise.
327 (break_out_comdat_types): Move recursive call to break out nested
328 types earlier.
329 (prune_unused_types_mark_generic_parms_dies): Call
330 is_template_parameter.
331
040d8a1c
IB
3322013-07-26 Ian Bolton <ian.bolton@arm.com>
333
334 * config/aarch64/aarch64.md (neg<mode>2): Offer alternative that
335 uses vector registers.
89fdc743 336 * config/aarch64/iterators.md: Add attributes rtn and vas.
040d8a1c 337
85bd4ac6 3382013-07-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
576e2f37 339 Richard Earnshaw <richard.earnshaw@arm.com>
85bd4ac6
KT
340
341 * combine.c (simplify_comparison): Re-canonicalize operands
576e2f37 342 where appropriate.
85bd4ac6
KT
343 * config/arm/arm.md (movcond_addsi): New splitter.
344
b6051207
SA
3452013-07-25 Sterling Augustine <saugustine@google.com>
346
347 * dwarf2out.c (size_of_pubnames): Move code to...
348 (include_pubname_in_output): ...here. New.
349 (want_pubnames): Rearrange.
350 (output_pubnames): Call include_pubname_in_output. Move assertion.
351
41a7c215
CM
3522013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
353
354 * doc/extend.texi: Fix return types for __builtin_ia32_cmp*s builtins.
355
3562013-07-25 Cameron McInally <cameron.mcinally@nyu.edu>
357
358 PR target/38836
359 * doc/extend.texi: Remove obsolete builtins. Fix
360 typo for __builtin_ia32_loadss and __builtin_ia32_cmpnltss.
361
49bde175
JH
3622013-07-25 Jan Hubicka <jh@suse.cz>
363
364 * cgraph.c (release_function_body): Break out from ...
365 (cgraph_release_function_body): ... this one; also release DECL_RESULT
366 and DECL_ARGUMENTS.
367 * ipa-cp.c (get_replacement_map): Add parm_num argument; do not set
368 old_tree in the map.
369 (create_specialized_node): Update.
370 * lto-cgraph.c (output_node_opt_summary): Do not translate old_tree
371 into index.
41a7c215
CM
372 * cgraphclones.c (cgraph_create_virtual_clone): Do not copy
373 DECL_ARGUMENTS, DECL_INITIAL and DECL_RESULT.
49bde175
JH
374 * ipa-prop.c (ipa_populate_param_decls): Look for origin of clones.
375 * tree-inline.c (initialize_cfun): Initialize DECL_ARGUMENTS and
376 DECL_RESULT.
377
4870352d
KT
3782013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
379
380 * config/arm/arm.md (arm_addsi3, addsi3_carryin_<optab>,
381 addsi3_carryin_alt2_<optab>): Correct output template.
382
1d6aee1c
KT
3832013-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
384
385 * config/arm/arm-fixed.md (ssmulsa3, usmulusa3):
386 Adjust for arm_restrict_it.
387 Remove trailing whitespace.
388
c7cafd75
MK
3892013-07-25  Mark Kettenis  <kettenis@openbsd.org>
390
017d38f5
MK
391 * config/pa/pa.c (pa_trampoline_init): Emit __enable_execute_stack
392 libcall if HAVE_ENABLE_EXECUTE_STACK is defined.
393
c7cafd75
MK
394 * config.gcc (hppa-*-openbsd*): Don't set tmake_file.
395
00b7527b
VM
3962013-07-25 Vladimir Makarov <vmakarov@redhat.com>
397
398 PR rtl-optimization/57960
399 * lra-constraints.c (process_alt_operands): Use the right mode
400 when checking strict_low.
401
4f63dfc6
JH
4022013-07-25 Jan Hubicka <jh@suse.cz>
403
404 * lto-symtab.c (lto_cgraph_replace_node): Release function body.
405 * cgraph.c (cgraph_remove_node): Do not release function body
406 when in cgraph streaming.
407 * ipa.c (process_references, symtab_remove_unreachable_nodes): Objects
41a7c215
CM
408 in other partitions are not considered reachable; fix handling of
409 clones.
4f63dfc6 410
e6dcfa18
RR
4112013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
412
413 * config/arm/arm.md (*sibcall_insn): Remove unnecessary space.
414
0b93d3b6
RR
4152013-07-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
416
417 PR target/19599
418 PR target/57731
bb80c2eb 419 PR target/57837
e6dcfa18 420 * config/arm/arm.md ("*sibcall_insn): Replace use of
0b93d3b6 421 Ss with US. Adjust output for v5 and v4t.
41a7c215 422 (*sibcall_value_insn): Likewise and loosen predicate on operand0.
e6dcfa18 423
0b93d3b6
RR
424 * config/arm/constraints.md ("Ss"): Rename to US.
425
690688b3
TG
4262013-07-25 Terry Guo <terry.guo@arm.com>
427
428 * config/arm/arm.c (thumb1_size_rtx_costs): Assign proper cost for
429 shift_add/shift_sub0/shift_sub1 RTXs.
430
a4ad093b
BS
4312013-07-24 Bill Schmidt <wschmidt@linux.ibm.com>
432 Anton Blanchard <anton@au1.ibm.com>
433
434 * config/rs6000/altivec.md (altivec_vpkpx): Handle little endian.
435 (altivec_vpks<VI_char>ss): Likewise.
436 (altivec_vpks<VI_char>us): Likewise.
437 (altivec_vpku<VI_char>us): Likewise.
438 (altivec_vpku<VI_char>um): Likewise.
439
8c5005ce
DM
4402013-07-24 David Malcolm <dmalcolm@redhat.com>
441
442 Introduce context class.
443
444 * Makefile.in (CONTEXT_H): New.
445 (OBJS): Add context.o.
446 (toplev.o): Add CONTEXT_H to dependencies.
447 (context.o): New.
448
41a7c215 449 * toplev.c (general_init): Create the singleton gcc::context instance.
8c5005ce
DM
450
451 * context.c: New.
452
453 * context.h: New.
454
ce4a9422
JR
4552013-07-24 Joern Rennecke <joern.rennecke@embecosm.com>
456
457 PR rtl-optimization/57968
458 * mode-switching.c (create_pre_exit): Allow instructions that
459 don't set a return register to need a non-exit mode.
460
493f4c9e
BS
4612013-07-24 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
462 Anton Blanchard <anton@au1.ibm.com>
463
b5860fd3
WS
464 * config/rs6000/vector.md (vec_realign_load_<mode>): Reorder input
465 operands to vperm for little endian.
466 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use lvsr instead
467 of lvsl to create the control mask for a vperm for little endian.
493f4c9e 468
73792b92
BS
4692013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
470 Anton Blanchard <anton@au1.ibm.com>
471
472 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Reverse
473 two operands for little-endian.
474
14c21302
SE
4752013-07-23 Steve Ellcey <sellcey@mips.com>
476
477 * config/mips/mips.c (mips_case_values_threshold): New.
478 (TARGET_CASE_VALUES_THRESHOLD): Define.
479
a6056198
BS
4802013-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
481 Anton Blanchard <anton@au1.ibm.com>
482
483 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Correct
484 selection of field for vector splat in little endian mode.
485
dd7a40e1
MM
4862013-07-23 Michael Meissner <meissner@linux.vnet.ibm.com>
487
488 * config/rs6000/vector.md (xor<mode>3): Move 128-bit boolean
489 expanders to rs6000.md.
490 (ior<mode>3): Likewise.
491 (and<mode>3): Likewise.
492 (one_cmpl<mode>2): Likewise.
493 (nor<mode>3): Likewise.
494 (andc<mode>3): Likewise.
495 (eqv<mode>3): Likewise.
496 (nand<mode>3): Likewise.
497 (orc<mode>3): Likewise.
498
499 * config/rs6000/rs6000-protos.h (rs6000_split_logical): New
500 declaration.
501
502 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Add support
503 to split multi-word logical operations.
504 (rs6000_split_logical_di): Likewise.
505 (rs6000_split_logical): Likewise.
506
507 * config/rs6000/vsx.md (VSX_L2): Delete, no longer used.
508 (vsx_and<mode>3_32bit): Move 128-bit logical insns to rs6000.md,
509 and allow TImode operations in 32-bit.
510 (vsx_and<mode>3_64bit): Likewise.
511 (vsx_ior<mode>3_32bit): Likewise.
512 (vsx_ior<mode>3_64bit): Likewise.
513 (vsx_xor<mode>3_32bit): Likewise.
514 (vsx_xor<mode>3_64bit): Likewise.
515 (vsx_one_cmpl<mode>2_32bit): Likewise.
516 (vsx_one_cmpl<mode>2_64bit): Likewise.
517 (vsx_nor<mode>3_32bit): Likewise.
518 (vsx_nor<mode>3_64bit): Likewise.
519 (vsx_andc<mode>3_32bit): Likewise.
520 (vsx_andc<mode>3_64bit): Likewise.
521 (vsx_eqv<mode>3_32bit): Likewise.
522 (vsx_eqv<mode>3_64bit): Likewise.
523 (vsx_nand<mode>3_32bit): Likewise.
524 (vsx_nand<mode>3_64bit): Likewise.
525 (vsx_orc<mode>3_32bit): Likewise.
526 (vsx_orc<mode>3_64bit): Likewise.
527
528 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Always allow vector
529 logical types in GPRs.
530
531 * config/rs6000/altivec.md (altivec_and<mode>3): Move 128-bit
532 logical insns to rs6000.md, and allow TImode operations in
533 32-bit.
534 (altivec_ior<mode>3): Likewise.
535 (altivec_xor<mode>3): Likewise.
536 (altivec_one_cmpl<mode>2): Likewise.
537 (altivec_nor<mode>3): Likewise.
538 (altivec_andc<mode>3): Likewise.
539
540 * config/rs6000/rs6000.md (BOOL_128): New mode iterators and mode
541 attributes for moving the 128-bit logical operations into
542 rs6000.md.
543 (BOOL_REGS_OUTPUT): Likewise.
544 (BOOL_REGS_OP1): Likewise.
545 (BOOL_REGS_OP2): Likewise.
546 (BOOL_REGS_UNARY): Likewise.
547 (BOOL_REGS_AND_CR0): Likewise.
548 (one_cmpl<mode>2): Add support for DI logical operations on
549 32-bit, splitting the operations to 32-bit.
550 (anddi3): Likewise.
551 (iordi3): Likewise.
552 (xordi3): Likewise.
553 (and<mode>3, 128-bit types): Rewrite 2013-06-06 logical operator
554 changes to combine the 32/64-bit code, allow logical operations on
555 TI mode in 32-bit, and to use similar match_operator patterns like
556 scalar mode uses. Combine the Altivec and VSX code for logical
557 operations, and move it here.
558 (ior<mode>3, 128-bit types): Likewise.
559 (xor<mode>3, 128-bit types): Likewise.
560 (one_cmpl<mode>3, 128-bit types): Likewise.
561 (nor<mode>3, 128-bit types): Likewise.
562 (andc<mode>3, 128-bit types): Likewise.
563 (eqv<mode>3, 128-bit types): Likewise.
564 (nand<mode>3, 128-bit types): Likewise.
565 (orc<mode>3, 128-bit types): Likewise.
566 (and<mode>3_internal): Likewise.
567 (bool<mode>3_internal): Likewise.
568 (boolc<mode>3_internal1): Likewise.
569 (boolc<mode>3_internal2): Likewise.
570 (boolcc<mode>3_internal1): Likewise.
571 (boolcc<mode>3_internal2): Likewise.
572 (eqv<mode>3_internal1): Likewise.
573 (eqv<mode>3_internal2): Likewise.
574 (one_cmpl1<mode>3_internal): Likewise.
575
9b69d4b4
DH
5762013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
577
578 * config/microblaze/microblaze.c (microblaze_expand_prologue):
579 Rename flag_stack_usage to flag_stack_usage_info.
580
450b0ebb
DH
5812013-07-23 David Holsgrove <david.holsgrove@xilinx.com>
582
a5f257fd
ME
583 * config/microblaze/sync.md: New file.
584 * config/microblaze/microblaze.md: Include sync.md
585 * config/microblaze/microblaze.c: Add print_operand 'y'.
586 * config/microblaze/constraints.md: Add memory_contraint
587 'Q' which is a single register.
450b0ebb 588
49fba14f
EB
5892013-07-23 Eric Botcazou <ebotcazou@adacore.com>
590
591 * doc/invoke.texi (SPARC Options): Document new leon3 processor value.
592
c7b3b99f
PCC
5932013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
594
595 * reload.c (find_reloads): Exit loop once we find this operand
596 cannot be reloaded somehow for this alternative.
597
598 * reload.c (find_reloads): Exit loop once we find a hard register.
599
600 * rtlanal.c (computed_jump_p): Exit loop once we find label
601 reference is used.
602
603 * i386.c (ix86_pad_returns): Exit loop after setting replace.
604
605 * cfgloopmanip.c (remove_path): Exit loop after setting
606 irred_invalidated.
607
608 * gensupport.c (subst_dup): Avoid loop if code is not
609 MATCH_DUP nor MATCH_OP_DUP.
610
c8fbf1fa
NBJ
6112013-07-23 Nicklas Bo Jensen <nbjensen@gmail.com>
612
613 * doc/md.texi (Machine-Specific Peephole Optimizers): Fix a typo.
614
9259db42
YZ
6152013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
616
617 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Also return
618 true for SP_REGNUM if mode == ptr_mode.
619 * config/aarch64/aarch64.h (ADDITIONAL_REGISTER_NAMES): Add "wsp"
620 with value R0_REGNUM + 31.
621
00edcfbe
YZ
6222013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
623
624 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): In big-endian,
625 pad pointer-typed argument downward.
626
43be9a95
YZ
6272013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
628
629 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define _ILP32
630 and __ILP32__ when the ILP32 model is in use.
631
28514dda
YZ
6322013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
633
634 * config/aarch64/aarch64.c (POINTER_BYTES): New define.
635 (aarch64_load_symref_appropriately): In the case of
636 SYMBOL_SMALL_ABSOLUTE, use the mode of 'dest' instead of Pmode
637 to generate new rtx; likewise to the case of SYMBOL_SMALL_GOT.
638 (aarch64_expand_mov_immediate): In the case of SYMBOL_FORCE_TO_MEM,
639 change to pass 'ptr_mode' to force_const_mem and zero-extend 'mem'
640 if 'mode' doesn't equal to 'ptr_mode'.
641 (aarch64_output_mi_thunk): Add an assertion on the alignment of
642 'vcall_offset'; change to call aarch64_emit_move differently depending
643 on whether 'Pmode' equals to 'ptr_mode' or not; use 'POINTER_BYTES'
644 to calculate the upper bound of 'vcall_offset'.
645 (aarch64_cannot_force_const_mem): Change to also return true if
646 mode != ptr_mode.
647 (aarch64_legitimize_reload_address): In the case of large
648 displacements, add new local variable 'xmode' and an assertion
649 based on it; change to use 'xmode' to generate the new rtx and
650 reload.
651 (aarch64_asm_trampoline_template): Change to generate the template
652 differently depending on TARGET_ILP32 or not; change to use
653 'POINTER_BYTES' in the argument passed to assemble_aligned_integer.
654 (aarch64_trampoline_size): Removed.
655 (aarch64_trampoline_init): Add new local constant 'tramp_code_sz'
656 and replace immediate literals with it. Change to use 'ptr_mode'
657 instead of 'DImode' and call convert_memory_address if the mode
658 of 'fnaddr' doesn't equal to 'ptr_mode'.
659 (aarch64_elf_asm_constructor): Change to use assemble_aligned_integer
660 to output symbol.
661 (aarch64_elf_asm_destructor): Likewise.
662 * config/aarch64/aarch64.h (TRAMPOLINE_SIZE): Change to be dependent
663 on TARGET_ILP32 instead of aarch64_trampoline_size.
664 * config/aarch64/aarch64.md (movsi_aarch64): Add new alternatives
665 of 'mov' between WSP and W registers as well as 'adr' and 'adrp'.
666 (loadwb_pair<GPI:mode>_<PTR:mode>): Rename to ...
667 (loadwb_pair<GPI:mode>_<P:mode>): ... this. Replace PTR with P.
668 (storewb_pair<GPI:mode>_<PTR:mode>): Likewise; rename to ...
669 (storewb_pair<GPI:mode>_<P:mode>): ... this.
670 (add_losym): Change to 'define_expand' and call gen_add_losym_<mode>
671 depending on the value of 'mode'.
672 (add_losym_<mode>): New.
673 (ldr_got_small_<mode>): New, based on ldr_got_small.
674 (ldr_got_small): Remove.
675 (ldr_got_small_sidi): New.
676 * config/aarch64/iterators.md (P): New.
677 (PTR): Change to 'ptr_mode' in the condition.
678
17a819cb
YZ
6792013-07-23 Yufeng Zhang <yufeng.zhang@arm.com>
680
681 * config.gcc (aarch64*-*-*): Support --with-abi.
682 (aarch64*-*-elf): Support --with-multilib-list.
683 (aarch64*-*-linux*): Likewise.
684 (supported_defaults): Add abi to aarch64*-*-*.
685 * configure.ac: Mention AArch64 for --with-multilib-list.
686 * configure: Re-generated.
687 * config/aarch64/biarchilp32.h: New file.
688 * config/aarch64/biarchlp64.h: New file.
689 * config/aarch64/aarch64-elf.h (ENDIAN_SPEC): New define.
690 (ABI_SPEC): Ditto.
691 (MULTILIB_DEFAULTS): Ditto.
692 (DRIVER_SELF_SPECS): Ditto.
693 (ASM_SPEC): Update to also substitute -mabi.
694 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Add linker script
695 file whose name depends on -mabi= and -mbig-endian.
696 * config/aarch64/aarch64.h (LONG_TYPE_SIZE): Change to depend on
697 TARGET_ILP32.
698 (POINTER_SIZE): New define.
699 (POINTERS_EXTEND_UNSIGNED): Ditto.
700 (enum aarch64_abi_type): New enumeration tag.
701 (AARCH64_ABI_LP64, AARCH64_ABI_ILP32): New enumerators.
702 (AARCH64_ABI_DEFAULT): Define to AARCH64_ABI_LP64 if undefined.
703 (TARGET_ILP32): New define.
704 * config/aarch64/aarch64.opt (mabi): New.
705 (aarch64_abi): New.
706 (ilp32, lp64): New values for -mabi.
707 * config/aarch64/t-aarch64 (comma): New define.
708 (MULTILIB_OPTIONS): Ditto.
709 (MULTILIB_DIRNAMES): Ditto.
710 * config/aarch64/t-aarch64-linux (MULTIARCH_DIRNAME): New define.
711 * doc/invoke.texi: Document -mabi for AArch64.
712
9f9cbdce
GJL
7132013-07-23 Georg-Johann Lay <avr@gjlay.de>
714
715 * config/avr/avr.md: Explain asm print modifier 'r' for REG.
716
7061977b
BS
7172013-07-22 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
718 Anton Blanchard <anton@au1.ibm.com>
719
720 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Fix
721 endianness when selecting field to splat.
722
75a41878
EC
7232013-07-22 Eric Christopher <echristo@gmail.com>
724
725 * dwarf2out.c (die_odr_checksum): New function to use
726 CHECKSUM_ macros and ULEB128 for DIE tag.
727 (generate_type_signature): Use.
41a7c215 728
38ae58ca
EB
7292013-07-22 Eric Botcazou <ebotcazou@adacore.com>
730
731 * config.gcc (sparc*-*-*): Accept leon3 processor.
732 (sparc-leon*-*): Merge with sparc*-*-* and add leon3 support.
733 * doc/invoke.texi (SPARC Options): Adjust -mfix-ut699 entry.
734 * config/sparc/sparc-opts.h (enum processor_type): Add PROCESSOR_LEON3.
735 * config/sparc/sparc.opt (enum processor_type): Add leon3.
736 (mfix-ut699): Adjust comment.
737 * config/sparc/sparc.h (TARGET_CPU_leon3): New define.
738 (CPP_CPU32_DEFAULT_SPEC): Add leon3 support.
739 (CPP_CPU_SPEC): Likewise.
740 (ASM_CPU_SPEC): Likewise.
741 * config/sparc/sparc.c (leon3_cost): New constant.
742 (sparc_option_override): Add leon3 support.
743 (mem_ref): New function.
744 (sparc_gate_work_around_errata): Return true if -mfix-ut699 is enabled.
745 (sparc_do_work_around_errata): Look into the instruction in the delay
746 slot and adjust accordingly. Add fix for the data cache nullify issues
747 of the UT699. Change insertion position for the NOP.
748 * config/sparc/leon.md (leon_fpalu, leon_fpmds, write_buf): Delete.
749 (leon3_load): New reservation.
750 (leon_store): Bump latency to 2.
751 (grfpu): New automaton.
752 (grfpu_alu): New unit.
753 (grfpu_ds): Likewise.
754 (leon_fp_alu): Adjust.
755 (leon_fp_mult): Delete.
756 (leon_fp_div): Split into leon_fp_divs and leon_fp_divd.
757 (leon_fp_sqrt): Split into leon_fp_sqrts and leon_fp_sqrtd.
758 * config/sparc/sparc.md (cpu): Add leon3.
759 * config/sparc/sync.md (atomic_exchangesi): Disable if -mfix-ut699.
760 (swapsi): Likewise.
761 (atomic_test_and_set): Likewise.
762 (ldstub): Likewise.
763
04dfc6df
JU
7642013-07-22 Jürgen Urban <JuergenUrban@gmx.de>
765
766 * config.gcc (mips*-*-*): Add --with-fpu support. Make single the
767 default for R5900 targets.
768 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Handle --with-fpu.
769 (ISA_HAS_LDC1_SDC1): Set to false for TARGET_MIPS5900.
770 * config/mips/mips.c (mips_option_override): Report an error for
771 -march=r5900 -mhard-float -mdouble-float. Use spu_single_format
772 for -march=r5900 -mhard-float.
773
c7b3b99f 7742013-07-22 Po-Chun Chang <pchang9@cs.wisc.edu>
ae382ebd
PCC
775
776 * df-problems.c (can_move_insns_across): Exit loop once we
777 find a non-fixed, non-global register.
778
779 * ipa-pure-const.c (propagate_nothrow): Exit loop after
780 setting can_throw.
781
782 * omega.c (omega_eliminate_red): Break after setting red_found.
783 (omega_problem_has_red_equations): Similarly after setting found.
784 (omega_query_variable): Similarly after setting coupled.
785
9b6e6981
MP
7862013-07-22 Marek Polacek <polacek@redhat.com>
787
788 * gimplify.c: Don't include gimple.h twice.
789
5e5f7673
KT
7902013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
791
792 * config/arm/constraints.md (Pd): Allow TARGET_THUMB
793 instead of TARGET_THUMB1.
794 (Pz): New constraint.
795 * config/arm/arm.md (arm_addsi3): Add alternatives for 16-bit
796 encodings.
797 (compare_negsi_si): Likewise.
798 (compare_addsi2_op0): Likewise.
799 (compare_addsi2_op1): Likewise.
800 (addsi3_carryin_<optab>): Likewise.
801 (addsi3_carryin_alt2_<optab>): Likewise.
802 (addsi3_carryin_shift_<optab>): Disable cond_exec variant
803 for arm_restrict_it.
804 (subsi3_carryin): Likewise.
805 (arm_subsi3_insn): Add alternatives for 16-bit encoding.
806 (minmax_arithsi): Disable for arm_restrict_it.
807 (minmax_arithsi_non_canon): Adjust for arm_restrict_it.
808 (satsi_<SAT:code>): Disable cond_exec variant for arm_restrict_it.
809 (satsi_<SAT:code>_shift): Likewise.
810 (arm_shiftsi3): Add alternative for 16-bit encoding.
811 (arm32_movhf): Disable for arm_restrict_it.
812 (arm_cmpdi_unsigned): Add alternatives for 16-bit encoding.
813 (arm_movtas_ze): Disable cond_exec variant for arm_restrict_it.
814
859abddd
SN
8152013-07-22 Sofiane Naci <sofiane.naci@arm.com>
816
817 * config/arm/arm.md (attribute "insn"): Delete.
818 (attribute "type"): Add "mov_imm", "mov_reg", "mov_shift",
819 "mov_shift_reg", "mvn_imm", "mvn_reg", "mvn_shift" and "mvn_shift_reg".
820 (not_shiftsi): Update for attribute change.
821 (not_shiftsi_compare0): Likewise.
822 (not_shiftsi_compare0_scratch): Likewise.
823 (arm_one_cmplsi2): Likewise.
824 (thumb1_one_cmplsi2): Likewise.
825 (notsi_compare0): Likewise.
826 (notsi_compare0_scratch): Likewise.
827 (thumb1_movdi_insn): Likewise.
828 (arm_movsi_insn): Likewise.
829 (movhi_insn_arch4): Likewise.
830 (movhi_bytes): Likewise.
831 (arm_movqi_insn): Likewise.
832 (thumb1_movqi_insn): Likewise.
833 (arm32_movhf): Likewise.
834 (thumb1_movhf): Likewise.
835 (arm_movsf_soft_insn): Likewise.
836 (thumb1_movsf_insn): Likewise.
837 (thumb_movdf_insn): Likewise.
838 (movsicc_insn): Likewise.
839 (movsfcc_soft_insn): Likewise.
840 (and_scc): Likewise.
841 (cond_move): Likewise.
842 (if_move_not): Likewise.
843 (if_not_move): Likewise.
844 (if_shift_move): Likewise.
845 (if_move_shift): Likewise.
846 (if_shift_shift): Likewise.
847 (if_not_arith): Likewise.
848 (if_arith_not): Likewise.
849 (cond_move_not): Likewise.
850 * config/arm/neon.md (neon_mov<mode>): Update for attribute change.
851 (neon_mov<mode>): Likewise.
852 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute change.
853 (thumb2_movsi_vfp): Likewise.
854 (movsf_vfp): Likewise.
855 (thumb2_movsf_vfp): Likewise.
371e77e3
UB
856 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
857 change.
859abddd
SN
858 (cortexa7_older_only): Likewise.
859 (cortexa7_younger): Likewise.
860 * config/arm/arm1020e.md (1020alu_op): Update for attribute change.
861 (1020alu_shift_op): Likewise.
862 (1020alu_shift_reg_op): Likewise.
863 * config/arm/arm1026ejs.md (alu_op): Update for attribute change.
864 (alu_shift_op): Likewise.
865 (alu_shift_reg_op): Likewise.
866 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute change.
867 (11_alu_shift_op): Likewise.
868 (11_alu_shift_reg_op): Likewise.
869 * config/arm/arm926ejs.md (9_alu_op): Update for attribute change.
870 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
871 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
872 change.
859abddd
SN
873 (cortex_a15_alu_shift): Likewise.
874 (cortex_a15_alu_shift_reg): Likewise.
875 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute change.
876 (cortex_a5_alu_shift): Likewise.
371e77e3
UB
877 * config/arm/cortex-a53.md (cortex_a53_alu): Update for attribute
878 change.
859abddd 879 (cortex_a53_alu_shift): Likewise.
371e77e3
UB
880 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
881 change.
859abddd
SN
882 (cortex_a7_alu_reg): Likewise.
883 (cortex_a7_alu_shift): Likewise.
884 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
885 (cortex_a8_alu_shift): Likewise.
886 (cortex_a8_alu_shift_reg): Likewise.
887 (cortex_a8_mov): Likewise.
888 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute change.
889 (cortex_a9_dp_shift): Likewise.
890 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute change.
891 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute change.
892 (cortex_r4_mov): Likewise.
893 (cortex_r4_alu_shift): Likewise.
894 (cortex_r4_alu_shift_reg): Likewise.
895 * config/arm/fa526.md (526_alu_op): Update for attribute change.
896 (526_alu_shift_op): Likewise.
897 * config/arm/fa606te.md (606te_alu_op): Update for attribute change.
898 * config/arm/fa626te.md (626te_alu_op): Update for attribute change.
899 (626te_alu_shift_op): Likewise.
900 * config/arm/fa726te.md (726te_shift_op): Update for attribute change.
901 (726te_alu_op): Likewise.
902 (726te_alu_shift_op): Likewise.
903 (726te_alu_shift_reg_op): Likewise.
904 * config/arm/fmp626.md (mp626_alu_op): Update for attribute change.
905 (mp626_alu_shift_op): Likewise.
906 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute change.
907 (pj4_alu_e1_conds): Likewise.
908 (pj4_alu): Likewise.
909 (pj4_alu_conds): Likewise.
910 (pj4_shift): Likewise.
911 (pj4_shift_conds): Likewise.
912 (pj4_alu_shift): Likewise.
913 (pj4_alu_shift_conds): Likewise.
914
95b97fac
KT
9152013-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
916
917 * config/arm/predicates.md (shiftable_operator_strict_it):
918 New predicate.
919 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si):
920 Disable cond_exec version for arm_restrict_it.
921 (thumb2_smaxsi3): Convert to generate cond_exec.
922 (thumb2_sminsi3): Likewise.
923 (thumb32_umaxsi3): Likewise.
924 (thumb2_uminsi3): Likewise.
925 (thumb2_abssi2): Adjust constraints for arm_restrict_it.
926 (thumb2_neg_abssi2): Likewise.
927 (thumb2_mov_scc): Add alternative for 16-bit encoding.
928 (thumb2_movsicc_insn): Adjust alternatives.
929 (thumb2_mov_negscc): Disable for arm_restrict_it.
930 (thumb2_mov_negscc_strict_it): New pattern.
931 (thumb2_mov_notscc_strict_it): New pattern.
932 (thumb2_mov_notscc): Disable for arm_restrict_it.
933 (thumb2_ior_scc): Likewise.
934 (thumb2_ior_scc_strict_it): New pattern.
935 (thumb2_cond_move): Adjust for arm_restrict_it.
936 (thumb2_cond_arith): Disable for arm_restrict_it.
937 (thumb2_cond_arith_strict_it): New pattern.
938 (thumb2_cond_sub): Adjust for arm_restrict_it.
939 (thumb2_movcond): Likewise.
940 (thumb2_extendqisi_v6): Disable cond_exec variant for arm_restrict_it.
941 (thumb2_zero_extendhisi2_v6): Likewise.
942 (thumb2_zero_extendqisi2_v6): Likewise.
943 (orsi_notsi_si): Likewise.
944 (orsi_not_shiftsi_si): Likewise.
945
d5a6ef82
GJL
9462013-07-22 Georg-Johann Lay <avr@gjlay.de>
947
948 * config/avr/avr.c (avr_out_xload): No SBIS around LPM so that
949 instruction sequence is 1 byte shorter.
950
d9e71154
UB
9512013-07-22 Uros Bizjak <ubizjak@gmail.com>
952
953 * config/i386/i386.md (nonlocal_goto_receiver): Delete insn if
954 it is not needed after split.
955
8c6381ec
IS
9562013-07-20 Iain Sandoe <iain@codesourcery.com>
957
958 PR target/51784
959 * config/i386/i386.c (output_set_got) [TARGET_MACHO]: Adjust to emit a
960 second label for nonlocal goto receivers. Don't output pic base labels
961 unless we're producing PIC; mark that action unreachable().
962 (ix86_save_reg): If the function contains a nonlocal label, save the
963 PIC base reg.
964 * config/darwin-protos.h (machopic_should_output_picbase_label): New.
371e77e3 965 * gcc/config/darwin.c (emitted_pic_label_num): New GTY.
8c6381ec
IS
966 (update_pic_label_number_if_needed): New.
967 (machopic_output_function_base_name): Adjust for nonlocal receiver
968 case.
969 (machopic_should_output_picbase_label): New.
970 * config/i386/i386.md (enum unspecv): UNSPECV_NLGR: New.
971 (nonlocal_goto_receiver): New insn and split.
972
d05d0709
JG
9732013-07-20 James Greenhalgh <james.greenhalgh@arm.com>
974
975 * config/aarch64/aarch64-builtins.c
976 (aarch64_fold_builtin): Fold abs in all modes.
977 * config/aarch64/aarch64-simd-builtins.def
978 (abs): Enable for all modes.
979 * config/aarch64/arm_neon.h
980 (vabs<q>_s<8,16,32,64): Rewrite using builtins.
981 (vabs_f64): Add missing intrinsic.
982
ba590e63
IB
9832013-07-19 Ian Bolton <ian.bolton@arm.com>
984
985 * config/aarch64/arm_neon.h (vabs_s64): New function
986
02371798
GJL
9872013-07-19 Georg-Johann Lay <avr@gjlay.de>
988
989 PR target/57516
990 * config/avr/avr-fixed.md (round<mode>3_const): Turn expander to insn.
991 * config/avr/avr.md (adjust_len): Add `round'.
992 * config/avr/avr-protos.h (avr_out_round): New prototype.
993 (avr_out_plus): Add `out_label' argument.
994 * config/avr/avr.c (avr_out_plus_1): Add `out_label' argument.
995 (avr_out_plus): Pass down `out_label' to avr_out_plus_1.
996 Handle the case where `insn' is just a pattern.
997 (avr_out_bitop): Handle the case where `insn' is just a pattern.
998 (avr_out_round): New function.
999 (avr_adjust_insn_length): Handle ADJUST_LEN_ROUND.
1000
b950ac25
DH
10012013-07-18 David Holsgrove <david.holsgrove@xilinx.com>
1002
1003 * config/microblaze/microblaze.c (microblaze_expand_prologue):
1004 Add check for flag_stack_usage to handle -fstack-usage support
1005
ed1fd999
PH
10062013-07-18 Pat Haugen <pthaugen@us.ibm.com>
1007
1008 * config/rs6000/rs6000.c (rs6000_option_override_internal): Adjust flag
1009 interaction for new Power8 flags and VSX.
1010
df9dda2d
ST
10112013-07-18 Sriraman Tallam <tmsriram@google.com>
1012
1013 PR middle-end/57698
1014 * tree-inline.c (expand_call_inline): Emit errors during
1015 early_inlining only if optimization is not turned on.
1016
0f9cdef4
DM
10172013-07-18 David Malcolm <dmalcolm@redhat.com>
1018
1019 * passes.def: New.
1020
1021 * passes.c (init_optimization_passes): Move the construction of
1022 the pass hierarchy into a new passes.def file.
1023
1024 * Makefile.in (passes.o): Add dependency on passes.def.
1025
2efa4087
DM
10262013-07-18 David Malcolm <dmalcolm@redhat.com>
1027
1028 * passes.c (init_optimization_passes): Introduce macros for
1029 constructing the tree of passes (INSERT_PASSES_AFTER,
1030 PUSH_INSERT_PASSES_WITHIN, POP_INSERT_PASSES,
1031 TERMINATE_PASS_LIST).
1032
bc404e1b
VM
10332013-07-18 Vladimir Makarov <vmakarov@redhat.com>
1034 Wei Mi <wmi@google.com>
1035
1036 PR rtl-optimization/57878
1037 * lra-assigns.c (assign_by_spills): Move non_reload_pseudos to the
1038 top.
1039 (reload_pseudo_compare_func): Check nregs first for reload
1040 pseudos.
1041
d675843f
DM
10422013-07-18 David Malcolm <dmalcolm@redhat.com>
1043
1044 * tree-pass.h (pass_ipa_lto_wpa_fixup): Remove redundant decl.
1045
c7b3b99f 10462013-07-18 Po-Chun Chang <pchang9@cs.wisc.edu>
bcb97fbd
PCC
1047
1048 * read-rtl.c (validate_const_int): Once an invalid character is
1049 seen, quit the loop.
1050
1051 * gengtype.c (write_roots): Similarly once we find the "deletable"
1052 or "if_marked" option.
1053
52fceb44
SN
10542013-07-18 Sofiane Naci <sofiane.naci@arm.com>
1055
1056 * config/arm/arm.md (attribute "insn"): Delete values "mrs", "msr",
1057 "xtab" and "sat". Move value "clz" from here to ...
1058 (attriubte "type"): ... here.
1059 (satsi_<SAT:code>): Delete "insn" attribute.
1060 (satsi_<SAT:code>_shift): Likewise.
1061 (arm_zero_extendqisi2addsi): Likewise.
1062 (arm_extendqisi2addsi): Likewise.
1063 (clzsi2): Update for attribute changes.
1064 (rbitsi2): Likewise.
371e77e3
UB
1065 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Delete "insn"
1066 attribute.
52fceb44
SN
1067 (arm_usatsihi): Likewise.
1068 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute change.
1069
006bd006
SN
10702013-07-18 Sofiane Naci <sofiane.naci@arm.com>
1071
1072 * config/arm/arm.md (attribute "type"): Rename "simple_alu_imm" to
371e77e3
UB
1073 "arlo_imm". Rename "alu_reg" to "arlo_reg". Rename "simple_alu_shift"
1074 to "extend". Split "alu_shift" into "shift" and "arlo_shift". Split
006bd006
SN
1075 "alu_shift_reg" into "shift_reg" and "arlo_shift_reg". List types
1076 in alphabetical order.
1077 (attribute "core_cycles"): Update for attribute changes.
1078 (arm_addsi3): Likewise.
1079 (addsi3_compare0): Likewise.
1080 (addsi3_compare0_scratch): Likewise.
1081 (addsi3_compare_op1): Likewise.
1082 (addsi3_compare_op2): Likewise.
1083 (compare_addsi2_op0): Likewise.
1084 (compare_addsi2_op1): Likewise.
1085 (addsi3_carryin_shift_<optab>): Likewise.
1086 (subsi3_carryin_shift): Likewise.
1087 (rsbsi3_carryin_shift): Likewise.
1088 (arm_subsi3_insn): Likewise.
1089 (subsi3_compare0): Likewise.
1090 (subsi3_compare): Likewise.
1091 (arm_andsi3_insn): Likewise.
1092 (thumb1_andsi3_insn): Likewise.
1093 (andsi3_compare0): Likewise.
1094 (andsi3_compare0_scratch): Likewise.
1095 (zeroextractsi_compare0_scratch
1096 (andsi_not_shiftsi_si): Likewise.
1097 (iorsi3_insn): Likewise.
1098 (iorsi3_compare0): Likewise.
1099 (iorsi3_compare0_scratch): Likewise.
1100 (arm_xorsi3): Likewise.
1101 (thumb1_xorsi3_insn): Likewise.
1102 (xorsi3_compare0): Likewise.
1103 (xorsi3_compare0_scratch): Likewise.
1104 (satsi_<SAT:code>_shift): Likewise.
1105 (rrx): Likewise.
1106 (arm_shiftsi3): Likewise.
1107 (shiftsi3_compare0): Likewise.
1108 (not_shiftsi): Likewise.
1109 (not_shiftsi_compare0): Likewise.
1110 (not_shiftsi_compare0_scratch): Likewise.
1111 (arm_one_cmplsi2): Likewise.
1112 (thumb_one_complsi2): Likewise.
1113 (notsi_compare0): Likewise.
1114 (notsi_compare0_scratch): Likewise.
1115 (thumb1_zero_extendhisi2): Likewise.
1116 (arm_zero_extendhisi2): Likewise.
1117 (arm_zero_extendhisi2_v6): Likewise.
1118 (arm_zero_extendhisi2addsi): Likewise.
1119 (thumb1_zero_extendqisi2): Likewise.
1120 (thumb1_zero_extendqisi2_v6): Likewise.
1121 (arm_zero_extendqisi2): Likewise.
1122 (arm_zero_extendqisi2_v6): Likewise.
1123 (arm_zero_extendqisi2addsi): Likewise.
1124 (thumb1_extendhisi2): Likewise.
1125 (arm_extendhisi2): Likewise.
1126 (arm_extendhisi2_v6): Likewise.
1127 (arm_extendqisi): Likewise.
1128 (arm_extendqisi_v6): Likewise.
1129 (arm_extendqisi2addsi): Likewise.
1130 (thumb1_extendqisi2): Likewise.
1131 (thumb1_movdi_insn): Likewise.
1132 (arm_movsi_insn): Likewise.
1133 (movsi_compare0): Likewise.
1134 (movhi_insn_arch4): Likewise.
1135 (movhi_bytes): Likewise.
1136 (arm_movqi_insn): Likewise.
1137 (thumb1_movqi_insn): Likewise.
1138 (arm32_movhf): Likewise.
1139 (thumb1_movhf): Likewise.
1140 (arm_movsf_soft_insn): Likewise.
1141 (thumb1_movsf_insn): Likewise.
1142 (movdf_soft_insn): Likewise.
1143 (thumb_movdf_insn): Likewise.
1144 (arm_cmpsi_insn): Likewise.
1145 (cmpsi_shiftsi): Likewise.
1146 (cmpsi_shiftsi_swp): Likewise.
1147 (arm_cmpsi_negshiftsi_si): Likewise.
1148 (movsicc_insn): Likewise.
1149 (movsfcc_soft_insn): Likewise.
1150 (arith_shiftsi): Likewise.
1151 (arith_shiftsi_compare0
1152 (arith_shiftsi_compare0_scratch
1153 (sub_shiftsi): Likewise.
1154 (sub_shiftsi_compare0
1155 (sub_shiftsi_compare0_scratch
1156 (and_scc): Likewise.
1157 (cond_move): Likewise.
1158 (if_plus_move): Likewise.
1159 (if_move_plus): Likewise.
1160 (if_move_not): Likewise.
1161 (if_not_move): Likewise.
1162 (if_shift_move): Likewise.
1163 (if_move_shift): Likewise.
1164 (if_shift_shift): Likewise.
1165 (if_not_arith): Likewise.
1166 (if_arith_not): Likewise.
1167 (cond_move_not): Likewise.
1168 (thumb1_ashlsi3): Set type attribute.
1169 (thumb1_ashrsi3): Likewise.
1170 (thumb1_lshrsi3): Likewise.
1171 (thumb1_rotrsi3): Likewise.
1172 (shiftsi3_compare0_scratch): Likewise.
1173 * config/arm/neon.md (neon_mov<mode>): Update for attribute changes.
1174 (neon_mov<mode>): Likewise.
371e77e3
UB
1175 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Update for
1176 attribute changes.
006bd006
SN
1177 (thumb2_movsi_insn): Likewise.
1178 (thumb2_cmpsi_neg_shiftsi): Likewise.
1179 (thumb2_extendqisi_v6): Likewise.
1180 (thumb2_zero_extendhisi2_v6): Likewise.
1181 (thumb2_zero_extendqisi2_v6): Likewise.
1182 (thumb2_shiftsi3_short): Likewise.
1183 (thumb2_addsi3_compare0_scratch): Likewise.
1184 (orsi_not_shiftsi_si): Likewise.
1185 * config/arm/vfp.md (arm_movsi_vfp): Update for attribute changes.
1186 * config/arm/arm-fixed.md (arm_ssatsihi_shift): Update for attribute
1187 changes.
1188 * config/arm/arm1020e.md (1020alu_op): Update for attribute changes.
1189 (1020alu_shift_op): Likewise.
1190 (1020alu_shift_reg_op): Likewise.
1191 * config/arm/arm1026ejs.md (alu_op): Update for attribute changes.
1192 (alu_shift_op): Likewise.
1193 (alu_shift_reg_op): Likewise.
1194 * config/arm/arm1136jfs.md (11_alu_op): Update for attribute changes.
1195 (11_alu_shift_op): Likewise.
1196 (11_alu_shift_reg_op): Likewise.
1197 * config/arm/arm926ejs.md (9_alu_op): Update for attribute changes.
1198 (9_alu_shift_reg_op): Likewise.
371e77e3
UB
1199 * config/arm/cortex-a15.md (cortex_a15_alu): Update for attribute
1200 changes.
006bd006
SN
1201 (cortex_a15_alu_shift): Likewise.
1202 (cortex_a15_alu_shift_reg): Likewise.
371e77e3
UB
1203 * config/arm/cortex-a5.md (cortex_a5_alu): Update for attribute
1204 changes.
006bd006
SN
1205 (cortex_a5_alu_shift): Likewise.
1206 * config/arm/cortex-a53.md (cortex_a53_alu) : Update for attribute
1207 changes.
1208 (cortex_a53_alu_shift): Likewise.
1209 * config/arm/cortex-a7.md (cortex_a7_alu_imm): Update for attribute
1210 changes.
1211 (cortex_a7_alu_reg): Likewise.
1212 (cortex_a7_alu_shift): Likewise.
371e77e3
UB
1213 * config/arm/cortex-a8.md (cortex_a8_alu): Update for attribute
1214 changes.
006bd006
SN
1215 (cortex_a8_alu_shift): Likewise.
1216 (cortex_a8_alu_shift_reg): Likewise.
1217 (cortex_a8_mov): Likewise.
1218 * config/arm/cortex-a9.md (cortex_a9_dp): Update for attribute changes.
1219 (cortex_a9_dp_shift): Likewise.
371e77e3
UB
1220 * config/arm/cortex-m4.md (cortex_m4_alu): Update for attribute
1221 changes.
1222 * config/arm/cortex-r4.md (cortex_r4_alu): Update for attribute
1223 changes.
006bd006
SN
1224 (cortex_r4_mov): Likewise.
1225 (cortex_r4_alu_shift): Likewise.
1226 (cortex_r4_alu_shift_reg): Likewise.
1227 * config/arm/fa526.md (526_alu_op): Update for attribute changes.
1228 (526_alu_shift_op): Likewise.
1229 * config/arm/fa606te.md (606te_alu_op): Update for attribute changes.
1230 * config/arm/fa626te.md (626te_alu_op): Update for attribute changes.
1231 (626te_alu_shift_op): Likewise.
1232 * config/arm/fa726te.md (726te_shift_op): Update for attribute changes.
1233 (726te_alu_op): Likewise.
1234 (726te_alu_shift_op): Likewise.
1235 (726te_alu_shift_reg_op): Likewise.
1236 * config/arm/fmp626.md (mp626_alu_op): Update for attribute changes.
1237 (mp626_alu_shift_op): Likewise.
1238 * config/arm/marvell-pj4.md (pj4_alu_e1): Update for attribute changes.
1239 (pj4_alu_e1_conds): Likewise.
1240 (pj4_alu): Likewise.
1241 (pj4_alu_conds): Likewise.
1242 (pj4_shift): Likewise.
1243 (pj4_shift_conds): Likewise.
1244 (pj4_alu_shift): Likewise.
1245 (pj4_alu_shift_conds): Likewise.
371e77e3
UB
1246 * config/arm/arm.c (xscale_sched_adjust_cost): Update for attribute
1247 changes.
006bd006
SN
1248 (cortexa7_older_only): Likewise.
1249 (cortexa7_younger): Likewise.
1250
651df1b2
DM
12512013-07-18 David Malcolm <dmalcolm@redhat.com>
1252
1253 * ipa-pure-const.c (generate_summary): Rename to...
1254 (pure_const_generate_summary): ... this.
1255
ea717bd7
IS
12562013-07-17 Iain Sandoe <iain@codesourcery.com>
1257
1258 * config/rs6000/darwin.h (REGISTER_NAMES): Add HTM registers.
1259
a1259a13
YR
12602013-07-17 Yvan Roux <yvan.roux@linaro.org>
1261
1262 PR target/57909
1263 * config/arm/arm.c (gen_movmem_ldrd_strd): Fix unaligned load/store
1264 usage in HI mode.
1265
167f68ed
AK
12662013-07-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1267
1268 * config/s390/s390.c: (s390_expand_builtin): Allow -mhtm to be
1269 enabled without -march=zEC12.
1270 * config/s390/s390.h (TARGET_HTM): Do not require EC12 machine
1271 flags to be set.
1272
f900a982
MR
12732013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
1274
1275 * config/mips/mips.h (ISA_HAS_FP4): Correct formatting.
1276 (ISA_HAS_FP_MADD4_MSUB4): Also enable for ISA_MIPS32R2.
1277 (ISA_HAS_NMADD4_NMSUB4): Remove the MODE argument; rewrite in
1278 terms of ISA_HAS_FP4, and also enable for ISA_MIPS32R2.
1279 (ISA_HAS_NMADD3_NMSUB3): Remove the MODE argument.
1280 * config/mips/mips.c (mips_rtx_costs) <PLUS>: Check for
1281 ISA_HAS_FP_MADD4_MSUB4 || ISA_HAS_FP_MADD3_MSUB3 rather than
1282 ISA_HAS_FP4.
1283 <MINUS, NEG>: Update according to changes to ISA_HAS_NMADD4_NMSUB4
1284 and ISA_HAS_NMADD3_NMSUB3.
1285 * config/mips/mips.md (nmadd4<mode>, nmadd3<mode>): Likewise.
1286 (nmadd4<mode>_fastmath, nmadd3<mode>_fastmath): Likewise.
1287 (nmsub4<mode>, nmsub3<mode>): Likewise.
1288 (nmsub4<mode>_fastmath, nmsub3<mode>_fastmath): Likewise.
1289
d4ed27eb
MR
12902013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
1291
1292 * config/mips/mips.h (ISA_HAS_NMADD4_NMSUB4): Remove
1293 TARGET_MIPS5400 checking.
1294
7a5add18
PB
12952013-07-16 Jakub Jelinek <jakub@redhat.com>
1296 Peter Bergner <bergner@vnet.ibm.com>
1297
1298 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTERS): Mention HTM
1299 registers in the comment.
1300 (DWARF_FRAME_REGISTERS): Subtract also the 3 HTM registers.
1301 (DWARF_REG_TO_UNWIND_COLUMN): Use DWARF_FRAME_REGISTERS
1302 rather than FIRST_PSEUDO_REGISTERS.
1303
13042013-07-16 Peter Bergner <bergner@vnet.ibm.com>
c694dc01
PB
1305
1306 * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
1307 enable extra ISA flags with TARGET_HTM.
1308
d2ab0929
MR
13092013-07-16 Maciej W. Rozycki <macro@codesourcery.com>
1310
1311 * config/mips/mips.h (ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC):
1312 Fix comment typos.
1313
839c74bc
CH
13142013-07-15 Cong Hou <congh@google.com>
1315
1316 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use hash function
1317 in compare function for sorting.
1318
7a5add18 13192013-07-15 Peter Bergner <bergner@vnet.ibm.com>
0258b6e4
PB
1320
1321 * config.gcc (powerpc*-*-*): Install htmintrin.h and htmxlintrin.h.
1322 * config/rs6000/t-rs6000 (MD_INCLUDES): Add htm.md.
1323 * config/rs6000/rs6000.opt: Add -mhtm option.
1324 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add OPTION_MASK_HTM.
1325 (ISA_2_7_MASKS_SERVER): Add OPTION_MASK_HTM.
1326 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1327 __HTM__ if the HTM instructions are available.
1328 * config/rs6000/predicates.md (u3bit_cint_operand, u10bit_cint_operand,
1329 htm_spr_reg_operand): New define_predicates.
1330 * config/rs6000/rs6000.md (define_attr "type"): Add htm.
1331 (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO): New define_constants.
1332 Include htm.md.
1333 * config/rs6000/rs6000-builtin.def (BU_HTM_0, BU_HTM_1, BU_HTM_2,
1334 BU_HTM_3, BU_HTM_SPR0, BU_HTM_SPR1): Add support macros for defining
1335 HTM builtin functions.
1336 * config/rs6000/rs6000.c (RS6000_BUILTIN_H): New macro.
1337 (rs6000_reg_names, alt_reg_names): Add HTM SPR register names.
1338 (rs6000_init_hard_regno_mode_ok): Add support for HTM instructions.
1339 (rs6000_builtin_mask_calculate): Likewise.
1340 (rs6000_option_override_internal): Likewise.
1341 (bdesc_htm): Add new HTM builtin support.
1342 (htm_spr_num): New function.
1343 (htm_spr_regno): Likewise.
1344 (rs6000_htm_spr_icode): Likewise.
1345 (htm_expand_builtin): Likewise.
1346 (htm_init_builtins): Likewise.
1347 (rs6000_expand_builtin): Add support for HTM builtin functions.
1348 (rs6000_init_builtins): Likewise.
371e77e3
UB
1349 (rs6000_invalid_builtin, rs6000_opt_mask): Add support for -mhtm
1350 option.
0258b6e4
PB
1351 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add support for -mhtm.
1352 (TARGET_HTM, MASK_HTM): Define macros.
1353 (FIRST_PSEUDO_REGISTER): Adjust for new HTM SPR registers.
1354 (FIXED_REGISTERS): Likewise.
1355 (CALL_USED_REGISTERS): Likewise.
1356 (CALL_REALLY_USED_REGISTERS): Likewise.
1357 (REG_ALLOC_ORDER): Likewise.
1358 (enum reg_class): Likewise.
1359 (REG_CLASS_NAMES): Likewise.
1360 (REG_CLASS_CONTENTS): Likewise.
1361 (REGISTER_NAMES): Likewise.
1362 (ADDITIONAL_REGISTER_NAMES): Likewise.
1363 (RS6000_BTC_SPR, RS6000_BTC_VOID, RS6000_BTC_32BIT, RS6000_BTC_64BIT,
1364 RS6000_BTC_MISC_MASK, RS6000_BTM_HTM): New macros.
1365 (RS6000_BTM_COMMON): Add RS6000_BTM_HTM.
1366 * config/rs6000/htm.md: New file.
1367 * config/rs6000/htmintrin.h: New file.
1368 * config/rs6000/htmxlintrin.h: New file.
1369
87dd8ab0
MS
13702013-07-15 Marcus Shawcroft <marcus.shawcroft@arm.com>
1371
1372 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
1373 Define SYMBOL_TINY_GOT, update comment.
1374 * config/aarch64/aarch64.c
1375 (aarch64_load_symref_appropriately): Handle SYMBOL_TINY_GOT.
1376 (aarch64_expand_mov_immediate): Likewise.
1377 (aarch64_print_operand): Likewise.
1378 (aarch64_classify_symbol): Likewise.
1379 * config/aarch64/aarch64.md (UNSPEC_GOTTINYPIC): Define.
1380 (ldr_got_tiny): Define.
1381
52d676b6
TG
13822013-07-13 Tobias Grosser <tobias@grosser.es>
1383
1384 PR tree-optimization/54094
1385 * graphite-clast-to-gimple.c (translate_clast_for_loop): Derive the
1386 scheduling dimension for the parallelism check from the polyhedral
1387 information in the AST.
1388 * graphite-dependences.c (carries_deps): Do not assume the schedule is
1389 in 2D + 1 form.
1390
286e8fc1
JM
13912013-07-13 Jason Merrill <jason@redhat.com>
1392
1393 * print-tree.c (debug_vec_tree): Use debug_raw.
1394 (debug_raw (vec<tree, va_gc> &)): New.
1395 (debug_raw (vec<tree, va_gc> *)): New.
1396 * tree.h: Declare them.
1397
e43257e8
BC
13982013-07-13 Bin Cheng <bin.cheng@arm.com>
1399
1400 * ifcvt.c (ifcvt_after_combine): New static variable.
1401 (cheap_bb_rtx_cost_p): Set scale to REG_BR_PROB_BASE when optimizing
1402 for size.
1403 (if_convert): New parameter after_combine. Set ifcvt_after_combine.
1404 (rest_of_handle_if_conversion, rest_of_handle_if_after_combine,
1405 rest_of_handle_if_after_reload): Pass new argument for if_convert.
1406
da582d46
MR
14072013-07-12 Maciej W. Rozycki <macro@codesourcery.com>
1408
1409 * config/mips/mips.c (mips_expand_call): Remove empty statement.
1410
18b0ea8f
MM
14112013-07-12 Michael Matz <matz@suse.de>
1412
1413 PR middle-end/55771
1414 * convert.c (convert_to_real): Reject non-float inner types.
1415
e4f0f84d
TB
14162013-07-12 Tejas Belagod <tejas.belagod@arm.com>
1417
1418 * config/aarch64/aarch64-protos.h
1419 (aarch64_simd_immediate_valid_for_move): Remove.
1420 * config/aarch64/aarch64.c (simd_immediate_info): New member.
1421 (aarch64_simd_valid_immediate): Recognize idioms for shifting ones
1422 cases.
1423 (aarch64_output_simd_mov_immediate): Print the correct shift specifier.
1424
76500022
SE
14252013-07-11 Steve Ellcey <sellcey@mips.com>
1426
1427 * config/mips/mips.c (mips_conditional_register_usage): Do not
1428 use t[0-7] registers in MIPS16 mode when optimizing for size.
1429
78039734
ST
14302013-07-11 Sriraman Tallam <tmsriram@google.com>
1431
1432 * config/i386/i386.c (dispatch_function_versions): Fix array
1433 indexing of function_version_info to match actual_versions.
1434
7b24b675
TJ
14352013-07-11 Teresa Johnson <tejohnson@google.com>
1436
1437 * vec.h (struct va_gc): Move release out-of-line.
1438 (va_gc::release): Call ggc_free on released vec.
1439
85d4cbb8
UW
14402013-07-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1441
1442 * config/rs6000/rs6000.md (""*tls_gd_low<TLSmode:tls_abi_suffix>"):
1443 Require GOT register as additional operand in UNSPEC.
1444 ("*tls_ld_low<TLSmode:tls_abi_suffix>"): Likewise.
1445 ("*tls_got_dtprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1446 ("*tls_got_tprel_low<TLSmode:tls_abi_suffix>"): Likewise.
1447 ("*tls_gd<TLSmode:tls_abi_suffix>"): Update splitter.
1448 ("*tls_ld<TLSmode:tls_abi_suffix>"): Likewise.
1449 ("tls_got_dtprel_<TLSmode:tls_abi_suffix>"): Likewise.
1450 ("tls_got_tprel_<TLSmode:tls_abi_suffix>"): Likewise.
1451
52b3f9e2
GJL
14522013-07-11 Georg-Johann Lay <avr@gjlay.de>
1453
1454 PR target/57631
1455 * config/avr/avr.c (avr_set_current_function): Sanity-check signal
1456 name seen by assembler/linker rather if available.
1457
3f3e266e
AS
14582013-07-11 Andreas Schwab <schwab@suse.de>
1459
1460 * config/aarch64/aarch64-linux.h (CPP_SPEC): Define.
1461
21231ca6
VM
14622013-07-10 Vladimir Makarov <vmakarov@redhat.com>
1463
371e77e3 1464 * lra-constraints.c (curr_insn_transform): Switch off optional reloads.
21231ca6 1465
d331d374
JM
14662013-07-10 Joseph Myers <joseph@codesourcery.com>
1467
673c2f63
JM
1468 * doc/tm.texi.in: Move hook documentation to ....
1469 * target.def: ... here.
1470
d331d374
JM
1471 * doc/tm.texi.in (TARGET_CANONICALIZE_COMPARISON): Remove stray
1472 text on @hook line.
1473 * doc/tm.texi: Regenerate.
1474
dfeadaa0
PC
14752013-07-10 Paolo Carlini <paolo.carlini@oracle.com>
1476
1477 PR c++/57869
1478 * doc/invoke.texi: Document -Wconditionally-supported.
1479
bb6f2bac
GJL
14802013-07-10 Georg-Johann Lay <avr@gjlay.de>
1481
1482 PR target/57844
1483 * config/avr/avr.c (avr_prologue_setup_frame): Trunk -size to mode
1484 of my_fp.
1485
5219b232
GJL
14862013-07-10 Georg-Johann Lay <avr@gjlay.de>
1487
1488 PR target/57506
1489 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
1490 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
1491 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
1492 Remove duplicate devices.
1493 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
1494 * config/avr/t-multilib: Regenerate.
1495 * config/avr/avr-tables.opt: Regenerate.
1496 * doc/avr-mmcu.texi: Regenerate.
1497
283045c0
GJL
14982013-07-10 Georg-Johann Lay <avr@gjlay.de>
1499
1500 PR target/56987
1501 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
1502
ceb2d59f 15032013-07-10 Graham Stott <graham.stott@btinternet.com>
6a2fa4b2 1504
ceb2d59f
GS
1505 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
1506 the cost of MULT when optimizing for size.
1507
055e0a99
JBG
15082013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1509
1510 * config/cr16/cr16-protos.h: Don't include target.h.
1511
ef43e868
JM
15122013-07-09 Joseph Myers <joseph@codesourcery.com>
1513
1514 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
1515 adjust register size for TDmode and TFmode for VSX registers.
1516
4a283fdf
KT
15172013-07-08 Kai Tietz <ktietz@redhat.com>
1518
1519 PR target/56892
1520 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
1521 hook_bool_const_tree_true.
1522
2cf4c39e
AK
15232013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1524
1525 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
1526 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
1527 * config/s390/s390.md: Define FPR*_REGNUM constants.
1528 Fix FPR2_REGNUM constant (18 -> 17).
1529 ("*trunc<BFP:mode><DFP_ALL:mode>2")
1530 ("*trunc<DFP_ALL:mode><BFP:mode>2")
1531 ("trunc<BFP:mode><DFP_ALL:mode>2")
1532 ("trunc<DFP_ALL:mode><BFP:mode>2")
1533 ("*extend<BFP:mode><DFP_ALL:mode>2")
1534 ("*extend<DFP_ALL:mode><BFP:mode>2")
1535 ("extend<BFP:mode><DFP_ALL:mode>2")
1536 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
1537 FPR4_REGNUM.
1538
e6ac0270 15392013-07-08 Graham Stott <graham.stott@btinternet.com>
e6ac0270 1540
6a2fa4b2 1541 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
64a92610 1542
b89b22fc
AK
15432013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1544
1545 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
1546 and cfun_fpr_bit_p to cfun_fpr_save_p.
1547 (s390_frame_area, s390_register_info, s390_frame_info)
1548 (s390_emit_prologue, s390_emit_epilogue)
1549 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
1550 register numbers.
1551 * config/s390/s390.h: Define *_REGNUM macros for floating point
1552 register numbers.
1553
07f398aa
EB
15542013-07-08 Eric Botcazou <ebotcazou@adacore.com>
1555
1556 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
1557
75fefa91
PCC
15582013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
1559
1560 PR rtl-optimization/57786
1561 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
1562 and break out of the loop when it is set to false.
1563
046f1eee
JJ
15642013-07-08 Jakub Jelinek <jakub@redhat.com>
1565
8140c065
JJ
1566 PR target/57819
1567 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
1568 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
1569 (const_int 63)) 0)).
1570 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
1571 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
1572 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
1573
046f1eee
JJ
1574 PR rtl-optimization/57829
1575 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
1576 mask bits outside of mode are just sign-extension from mode to HWI.
1577
930b700b
MZ
15782013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
1579
1580 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
1581 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
1582 adjust_address instead of change_address to keep info about alignment.
1583 (emit_strmov): Remove.
1584 (emit_memmov): New function.
1585 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
1586 (expand_movmem_epilogue): Likewise and return updated rtx for
1587 destination.
1588 (expand_constant_movmem_prologue): Likewise and return updated rtx for
1589 destination and source.
1590 (decide_alignment): Refactor, handle vector_loop.
1591 (ix86_expand_movmem): Likewise.
1592 (ix86_expand_setmem): Likewise.
1593 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
1594
7b9d1bd8
UB
15952013-07-07 Uros Bizjak <ubizjak@gmail.com>
1596
1597 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
1598 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
1599
eabb5f48
UB
16002013-07-06 Uros Bizjak <ubizjak@gmail.com>
1601
1602 * config/i386/sse.md (sse_movlhps): Change alternative 3
1603 of operand 2 to "m".
1604
16052013-07-06 Uros Bizjak <ubizjak@gmail.com>
1606
1607 PR target/57807
1608 * config/i386/sse.md (iptr): New mode attribute.
1609 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
1610 (<sse>_vm<plusminus_insn><mode>3): Ditto.
1611 (<sse>_vmmul<mode>3): Ditto.
1612 (<sse>_vmdiv<mode>3): Ditto.
1613 (sse_vmrcpv4sf2): Ditto.
1614 (<sse>_vmsqrt<mode>2): Ditto.
1615 (sse_vmrsqrtv4sf2): Ditto.
1616 (<sse>_vm<code><mode>3): Ditto.
1617 (avx_vmcmp<mode>3): Ditto.
1618 (<sse>_vmmaskcmp<mode>3): Ditto.
1619 (<sse>_comi): Ditto.
1620 (<sse>_ucomi): Ditto.
1621 (*xop_vmfrcz_<mode>): Ditto.
1622 (*fmai_fmadd_<mode>): Ditto.
1623 (*fmai_fmsub_<mode>): Ditto.
1624 (*fmai_fnmadd_<mode>): Ditto.
1625 (*fmai_fnmsub_<mode>): Ditto.
1626 (*fma4i_vmfmadd_<mode>): Ditto.
1627 (*fma4i_vmfmsub_<mode>): Ditto.
1628 (*fma4i_vmfnmadd_<mode>): Ditto.
1629 (*fma4i_vmfnmsub_<mode>): Ditto.
1630 (*xop_vmfrcz_<mode>): Ditto.
1631 (sse_cvtps2pi): Ditto.
1632 (sse_cvttps2pi): Ditto.
1633 (sse_cvtss2si): Ditto.
1634 (sse_cvtss2si_2): Ditto.
1635 (sse_cvtss2siq_2): Ditto.
1636 (sse_cvttss2si): Ditto.
1637 (sse_cvttss2siq): Ditto.
1638 (sse_cvtsd2si): Ditto.
1639 (sse_cvtsd2si_2): Ditto.
1640 (sse_cvtsd2siq_2): Ditto.
1641 (sse_cvttsd2si): Ditto.
1642 (sse_cvttsd2siq): Ditto.
1643 (sse_cvtsd2ss): Ditto.
1644 (sse_cvtss2sd): Ditto.
1645 (avx2_pbroadcast<mode>): Ditto.
1646 (avx2_pbroadcast<mode>_1): Ditto.
1647 (*avx_vperm_broadcast_v4sf): Ditto.
1648
1649 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
1650 (sse_movlhps): Ditto.
1651 (sse_storehps): Ditto.
1652 (sse_loadhps): Ditto.
1653 (sse_storelps): Ditto.
1654 (sse_loadlps): Ditto.
1655 (*vec_concatv4sf): Ditto.
1656 (*vec_interleave_highv2df): Ditto.
1657 (*vec_interleave_lowv2df): Ditto.
1658 (*vec_extractv2df_1_sse): Ditto.
1659 (*vec_extractv2df_0_sse): Ditto.
1660 (sse2_storelpd): Ditto.
1661 (sse2_loadlpd): Ditto.
1662 (sse2_movsd): Ditto.
1663 (*vec_concatv4si): Ditto.
1664 (vec_concatv2di): Ditto.
1665
1666 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
1667 for Intel asm dialect.
1668 (mmx_punpcklwd): Ditto.
1669 (mmx_punpckldq): Ditto.
1670
1671 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
1672 for intel assembler dialect.
1673
1f6eac90
JJ
16742013-07-06 Jakub Jelinek <jakub@redhat.com>
1675
1676 PR target/29776
1677 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
1678 for BUILT_IN_C{LZ,LRSB}*.
1679 * tree.h (CASE_INT_FN): Add FN##IMAX case.
1680 * tree-vrp.c (extract_range_basic): Handle
1681 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
1682 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
1683 fall thru to code calling set_value*.
1684 * builtins.c (expand_builtin): Remove *IMAX cases.
1685 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
1686 if width is bigger than 2*HWI.
1687
2b778c9d
VM
16882013-07-05 Vladimir Makarov <vmakarov@redhat.com>
1689
1690 PR rtl-optimization/55342
1691 * lra-int.h (lra_subreg_reload_pseudos): New.
1692 * lra.c: Add undoing optional reloads to the block diagram.
1693 (lra_subreg_reload_pseudos): New.
1694 (lra_optional_reload_pseudos): Change comments.
1695 (lra): Init and clear lra_subreg_reload_pseudos. Clear
1696 lra_optional_reload_pseudos after undo transformations.
1697 * lra-assigns.c (pseudo_prefix_title): New.
1698 (lra_setup_reg_renumber): Use it.
1699 (spill_for): Ditto. Check subreg reload pseudos too.
1700 (assign_by_spills): Consider subreg reload pseudos too.
1701 * lra-constraints.c (simplify_operand_subreg): Use
1702 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
1703 (curr_insn_transform): Recognize and do optional reloads.
1704 (undo_optional_reloads): New.
1705 (lra_undo_inheritance): Call undo_optional_reloads.
1706
207156e4
TQ
17072013-07-05 Thomas Quinot <quinot@adacore.com>
1708
1709 * tree-complex.c (expand_complex_operations_1): Fix typo.
1710
8990e73a
TB
17112013-07-04 Tejas Belagod <tejas.belagod@arm.com>
1712
1713 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
1714 (tune_params): New member 'const vec_costs'.
1715 * config/aarch64/aarch64.c (generic_vector_cost): New.
1716 (generic_tunings): New member 'generic_vector_cost'.
1717 (aarch64_builtin_vectorization_cost): New.
1718 (aarch64_add_stmt_cost): New.
1719 (TARGET_VECTORIZE_ADD_STMT_COST): New.
1720 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
1721
f7bc421d
JJ
17222013-07-03 Jakub Jelinek <jakub@redhat.com>
1723
1724 PR target/57777
1725 * config/i386/predicates.md (vsib_address_operand): Disallow
1726 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
1727
e90d1568
HPN
17282013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
1729
1730 PR middle-end/55030
1731 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
1732 expand_builtin_setjmp_receiver.
1733 (expand_label): Adjust, call expand_builtin_setjmp_receiver
1734 with NULL for the label parameter.
1735 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
1736 the frame-pointer. Adjust comments.
1737 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
1738 only if LABEL is non-NULL.
1739
cbd7413b
YZ
17402013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
1741
1742 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
1743 (ARM_ABI_AAPCS64): Ditto.
1744 (arm_abi): Ditto.
1745 (ARM_DEFAULT_ABI): Ditto.
1746
dec11868
JG
17472013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
1748
1749 * config/aarch64/aarch64-builtins.c
1750 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
1751 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
1752 (st1): Likewise.
1753 * config/aarch64/aarch64-simd.md
1754 (aarch64_ld1<VALL:mode>): New.
1755 (aarch64_st1<VALL:mode>): Likewise.
1756 * config/aarch64/arm_neon.h
1757 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
1758
786fb9b6
ST
17592013-07-02 Sriraman Tallam <tmsriram@google.com>
1760
0ba6aff3
UB
1761 * config/i386/i386.c (gate_insert_vzeroupper): Check if
1762 target ISA is AVX.
786fb9b6
ST
1763 (ix86_option_override_internal):Turn on all -mavx target flags by
1764 default as they are dependent on AVX anyway.
1765
4b043553
CC
17662013-07-02 Cary Coutant <ccoutant@google.com>
1767
1768 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
1769 deterministic hash.
1770 (loc_checksum_ordered): Likewise.
1771 (hash_loc_operands): Remove inline keyword.
1772
c4e87a13
JJ
17732013-07-02 Jakub Jelinek <jakub@redhat.com>
1774
1775 PR tree-optimization/57741
1776 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
1777 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
1778 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
1779 Allow REAL_CST step_exprs if flag_associative_math.
1780 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
1781
26366d28
IB
17822013-07-02 Ian Bolton <ian.bolton@arm.com>
1783
0ba6aff3 1784 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
26366d28 1785
2879bb2b
IB
17862013-07-02 Ian Bolton <ian.bolton@arm.com>
1787
1788 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
1789
afc5e8a6
KT
17902013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1791
1792 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
1793 encoding.
1794 (iorsi3_insn): Likewise.
1795 (arm_xorsi3): Likewise.
1796
31f8442b
SN
17972013-07-01 Sofiane Naci <sofiane.naci@arm.com>
1798
1799 * arm.md (attribute "wtype"): Delete. Move attribute values from here
1800 to ...
1801 (attribute "type"): ... here, and prefix with "wmmx_".
1802 (attribute "core_cycles"): Update for attribute changes.
1803 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
1804 (tbcstv4hi): Likewise.
1805 (tbcstv2si): Likewise.
1806 (iwmmxt_iordi3): Likewise.
1807 (iwmmxt_xordi3): Likewise.
1808 (iwmmxt_anddi3): Likewise.
1809 (iwmmxt_nanddi3): Likewise.
1810 (iwmmxt_arm_movdi): Likewise.
1811 (iwmmxt_movsi_insn): Likewise.
1812 (mov<mode>_internal): Likewise.
1813 (and<mode>3_iwmmxt): Likewise.
1814 (ior<mode>3_iwmmxt): Likewise.
1815 (xor<mode>3_iwmmxt): Likewise.
1816 (add<mode>3_iwmmxt): Likewise.
1817 (ssaddv8qi3): Likewise.
1818 (ssaddv4hi3): Likewise.
1819 (ssaddv2si3): Likewise.
1820 (usaddv8qi3): Likewise.
1821 (usaddv4hi3): Likewise.
1822 (usaddv2si3): Likewise.
1823 (sub<mode>3_iwmmxt): Likewise.
1824 (sssubv8qi3): Likewise.
1825 (sssubv4hi3): Likewise.
1826 (sssubv2si3): Likewise.
1827 (ussubv8qi3): Likewise.
1828 (ussubv4hi3): Likewise.
1829 (ussubv2si3): Likewise.
1830 (mulv4hi3_iwmmxt): Likewise.
1831 (smulv4hi3_highpart): Likewise.
1832 (umulv4hi3_highpart): Likewise.
1833 (iwmmxt_wmacs): Likewise.
1834 (iwmmxt_wmacsz): Likewise.
1835 (iwmmxt_wmacu): Likewise.
1836 (iwmmxt_wmacuz): Likewise.
1837 (iwmmxt_clrdi): Likewise.
1838 (iwmmxt_clrv8qi): Likewise.
1839 (iwmmxt_clr4hi): Likewise.
1840 (iwmmxt_clr2si): Likewise.
1841 (iwmmxt_uavgrndv8qi3): Likewise.
1842 (iwmmxt_uavgrndv4hi3): Likewise.
1843 (iwmmxt_uavgv8qi3): Likewise.
1844 (iwmmxt_uavgv4hi3): Likewise.
1845 (iwmmxt_tinsrb): Likewise.
1846 (iwmmxt_tinsrh): Likewise.
1847 (iwmmxt_tinsrw): Likewise.
1848 (iwmmxt_textrmub): Likewise.
1849 (iwmmxt_textrmsb): Likewise.
1850 (iwmmxt_textrmuh): Likewise.
1851 (iwmmxt_textrmsh): Likewise.
1852 (iwmmxt_textrmw): Likewise.
1853 (iwmxxt_wshufh): Likewise.
1854 (eqv8qi3): Likewise.
1855 (eqv4hi3): Likewise.
1856 (eqv2si3): Likewise.
1857 (gtuv8qi3): Likewise.
1858 (gtuv4hi3): Likewise.
1859 (gtuv2si3): Likewise.
1860 (gtv8qi3): Likewise.
1861 (gtv4hi3): Likewise.
1862 (gtv2si3): Likewise.
1863 (smax<mode>3_iwmmxt): Likewise.
1864 (umax<mode>3_iwmmxt): Likewise.
1865 (smin<mode>3_iwmmxt): Likewise.
1866 (umin<mode>3_iwmmxt): Likewise.
1867 (iwmmxt_wpackhss): Likewise.
1868 (iwmmxt_wpackwss): Likewise.
1869 (iwmmxt_wpackdss): Likewise.
1870 (iwmmxt_wpackhus): Likewise.
1871 (iwmmxt_wpackwus): Likewise.
1872 (iwmmxt_wpackdus): Likewise.
1873 (iwmmxt_wunpckihb): Likewise.
1874 (iwmmxt_wunpckihh): Likewise.
1875 (iwmmxt_wunpckihw): Likewise.
1876 (iwmmxt_wunpckilb): Likewise.
1877 (iwmmxt_wunpckilh): Likewise.
1878 (iwmmxt_wunpckilw): Likewise.
1879 (iwmmxt_wunpckehub): Likewise.
1880 (iwmmxt_wunpckehuh): Likewise.
1881 (iwmmxt_wunpckehuw): Likewise.
1882 (iwmmxt_wunpckehsb): Likewise.
1883 (iwmmxt_wunpckehsh): Likewise.
1884 (iwmmxt_wunpckehsw): Likewise.
1885 (iwmmxt_wunpckelub): Likewise.
1886 (iwmmxt_wunpckeluh): Likewise.
1887 (iwmmxt_wunpckeluw): Likewise.
1888 (iwmmxt_wunpckelsb): Likewise.
1889 (iwmmxt_wunpckelsh): Likewise.
1890 (iwmmxt_wunpckelsw): Likewise.
1891 (ror<mode>3): Likewise.
1892 (ashr<mode>3_iwmmxt): Likewise.
1893 (lshr<mode>3_iwmmxt): Likewise.
1894 (ashl<mode>3_iwmmxt): Likewise.
1895 (ror<mode>3_di): Likewise.
1896 (ashr<mode>3_di): Likewise.
1897 (lshr<mode>3_di): Likewise.
1898 (ashl<mode>3_di): Likewise.
1899 (iwmmxt_wmadds): Likewise.
1900 (iwmmxt_wmaddu): Likewise.
1901 (iwmmxt_tmia): Likewise.
1902 (iwmmxt_tmiaph): Likewise.
1903 (iwmmxt_tmiabb): Likewise.
1904 (iwmmxt_tmiatb): Likewise.
1905 (iwmmxt_tmiabt): Likewise.
1906 (iwmmxt_tmiatt): Likewise.
1907 (iwmmxt_tmovmskb): Likewise.
1908 (iwmmxt_tmovmskh): Likewise.
1909 (iwmmxt_tmovmskw): Likewise.
1910 (iwmmxt_waccb): Likewise.
1911 (iwmmxt_wacch): Likewise.
1912 (iwmmxt_waccw): Likewise.
1913 (iwmmxt_waligni): Likewise.
1914 (iwmmxt_walignr): Likewise.
1915 (iwmmxt_walignr0): Likewise.
1916 (iwmmxt_walignr1): Likewise.
1917 (iwmmxt_walignr2): Likewise.
1918 (iwmmxt_walignr3): Likewise.
1919 (iwmmxt_wsadb): Likewise.
1920 (iwmmxt_wsadh): Likewise.
1921 (iwmmxt_wsadbz): Likewise.
1922 (iwmmxt_wsadhz): Likewise.
1923 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
1924 (iwmmxt_wabsdiffb): Likewise.
1925 (iwmmxt_wabsdiffh): Likewise.
1926 (iwmmxt_wabsdiffw): Likewise.
1927 (iwmmxt_waddsubhx): Likewise
1928 (iwmmxt_wsubaddhx): Likewise.
1929 (addc<mode>3): Likewise.
1930 (iwmmxt_avg4): Likewise.
1931 (iwmmxt_avg4r): Likewise.
1932 (iwmmxt_wmaddsx): Likewise.
1933 (iwmmxt_wmaddux): Likewise.
1934 (iwmmxt_wmaddsn): Likewise.
1935 (iwmmxt_wmaddun): Likewise.
1936 (iwmmxt_wmulwsm): Likewise.
1937 (iwmmxt_wmulwum): Likewise.
1938 (iwmmxt_wmulsmr): Likewise.
1939 (iwmmxt_wmulumr): Likewise.
1940 (iwmmxt_wmulwsmr): Likewise.
1941 (iwmmxt_wmulwumr): Likewise.
1942 (iwmmxt_wmulwl): Likewise.
1943 (iwmmxt_wqmulm): Likewise.
1944 (iwmmxt_wqmulwm): Likewise.
1945 (iwmmxt_wqmulmr): Likewise.
1946 (iwmmxt_wqmulwmr): Likewise.
1947 (iwmmxt_waddbhusm): Likewise.
1948 (iwmmxt_waddbhusl): Likewise.
1949 (iwmmxt_wqmiabb): Likewise.
1950 (iwmmxt_wqmiabt): Likewise.
1951 (iwmmxt_wqmiatb): Likewise.
1952 (iwmmxt_wqmiatt): Likewise.
1953 (iwmmxt_wqmiabbn): Likewise.
1954 (iwmmxt_wqmiabtn): Likewise.
1955 (iwmmxt_wqmiatbn): Likewise.
1956 (iwmmxt_wqmiattn): Likewise.
1957 (iwmmxt_wmiabb): Likewise.
1958 (iwmmxt_wmiabt): Likewise.
1959 (iwmmxt_wmiatb): Likewise.
1960 (iwmmxt_wmiatt): Likewise.
1961 (iwmmxt_wmiabbn): Likewise.
1962 (iwmmxt_wmiabtn): Likewise.
1963 (iwmmxt_wmiatbn): Likewise.
1964 (iwmmxt_wmiattn): Likewise.
1965 (iwmmxt_wmiawbb): Likewise.
1966 (iwmmxt_wmiawbt): Likewise.
1967 (iwmmxt_wmiawtb): Likewise.
1968 (iwmmxt_wmiawtt): Likewise.
1969 (iwmmxt_wmiawbbn): Likewise.
1970 (iwmmxt_wmiawbtn): Likewise.
1971 (iwmmxt_wmiawtbn): Likewise.
1972 (iwmmxt_wmiawttn): Likewise.
1973 (iwmmxt_wmerge): Likewise.
1974 (iwmmxt_tandc<mode>3): Likewise.
1975 (iwmmxt_torc<mode>3): Likewise.
1976 (iwmmxt_torvsc<mode>3): Likewise.
1977 (iwmmxt_textrc<mode>3): Likewise.
1978 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
1979 (wmmxt_pack): Likewise.
1980 (wmmxt_mult_c1): Likewise.
1981 (wmmxt_mult_c2): Likewise.
1982 (wmmxt_alu_c1): Likewise.
1983 (wmmxt_alu_c2): Likewise.
1984 (wmmxt_alu_c3): Likewise.
1985 (wmmxt_transfer_c1): Likewise.
1986 (wmmxt_transfer_c2): Likewise.
1987 (wmmxt_transfer_c3): Likewise.
1988 (marvell_f_iwmmxt_wstr): Likewise.
1989 (marvell_f_iwmmxt_wldr): Likewise.
1990
bdb7bf8a
YZ
19912013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
1992
0ba6aff3 1993 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
bdb7bf8a 1994
e6631d38
VM
19952013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1996
1997 Revert:
1998 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
1999 * lra-constraints.c (need_for_split_p): Check call used hard regs
2000 living through calls.
2001
2002 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
2003 call used regs for call insn.
2004
53c1275b
JJ
20052013-06-28 Jakub Jelinek <jakub@redhat.com>
2006
2007 PR target/57736
0ba6aff3
UB
2008 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
2009 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
53c1275b 2010
1141ed3f
BI
20112013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2012
2013 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
e6631d38 2014
e32e4c4a
VM
20152013-06-28 Vladimir Makarov <vmakarov@redhat.com>
2016
2017 * lra-constraints.c (need_for_split_p): Check call used hard regs
2018 living through calls.
2019
f161bfd3
MM
20202013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
2021
2022 PR target/57744
2023 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
2024 to tie with any other modes. Eliminate Altivec vector mode tests,
2025 since these are a subset of ALTIVEC or VSX vector modes. Simplify
2026 code, to return 0 if testing MODE2 for a condition, if we've
2027 already tested MODE1 for the same condition.
2028
7eda14e1
MS
20292013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
2030
2031 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
2032 layout.
2033
c822f852
MS
20342013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
2035
2036 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
2037 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
2038
da4f13a4
MS
20392013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
2040
0ba6aff3
UB
2041 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
2042 Define.
da4f13a4
MS
2043 (aarch64_symbolic_constant_p): Remove.
2044 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
2045 static. Fix line length and white space.
2046 (aarch64_symbolic_constant_p): Remove.
2047 * config/aarch64/predicates.md (aarch64_valid_symref):
2048 Use aarch64_classify_symbol_expression.
2049
956a95a5
KT
20502013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2051
2052 * config/arm/constraints.md (Ts): New constraint.
2053 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
2054 16-bit encodings.
2055 (compare_scc): Use "Ts" constraint for operand 0.
2056 (ior_scc_scc): Likewise.
2057 (and_scc_scc): Likewise.
2058 (and_scc_scc_nodom): Likewise.
2059 (ior_scc_scc_cmp): Likewise for operand 7.
2060 (and_scc_scc_cmp): Likewise.
2061 * config/arm/thumb2.md (thumb2_movsi_insn):
2062 Add alternatives for 16-bit encodings.
2063 (thumb2_movhi_insn): Likewise.
2064 (thumb2_movsicc_insn): Likewise.
2065 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
2066 (thumb2_negscc): Use "Ts" constraint.
2067 Move mvn instruction outside cond_exec block.
2068 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
2069 for 16-bit encodings.
2070
31dfce10
KT
20712013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2072
2073 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
2074 encoding.
2075 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
2076 (mulsi3subsi): Likewise.
2077 (mulsidi3adddi): Likewise.
2078 (mulsidi3_v6): Likewise.
2079 (umulsidi3_v6): Likewise.
2080 (umulsidi3adddi_v6): Likewise.
2081 (smulsi3_highpart_v6): Likewise.
2082 (umulsi3_highpart_v6): Likewise.
2083 (mulhisi3tb): Likewise.
2084 (mulhisi3bt): Likewise.
2085 (mulhisi3tt): Likewise.
2086 (maddhisi4): Likewise.
2087 (maddhisi4tb): Likewise.
2088 (maddhisi4tt): Likewise.
2089 (maddhidi4): Likewise.
2090 (maddhidi4tb): Likewise.
2091 (maddhidi4tt): Likewise.
2092 (zeroextractsi_compare0_scratch): Likewise.
2093 (insv_zero): Likewise.
2094 (insv_t2): Likewise.
2095 (anddi_notzesidi_di): Likewise.
2096 (anddi_notsesidi_di): Likewise.
2097 (andsi_notsi_si): Likewise.
2098 (iordi_zesidi_di): Likewise.
2099 (xordi_zesidi_di): Likewise.
2100 (andsi_iorsi3_notsi): Likewise.
2101 (smax_0): Likewise.
2102 (smax_m1): Likewise.
2103 (smin_0): Likewise.
2104 (not_shiftsi): Likewise.
2105 (unaligned_loadsi): Likewise.
2106 (unaligned_loadhis): Likewise.
2107 (unaligned_loadhiu): Likewise.
2108 (unaligned_storesi): Likewise.
2109 (unaligned_storehi): Likewise.
2110 (extv_reg): Likewise.
2111 (extzv_t2): Likewise.
2112 (divsi3): Likewise.
2113 (udivsi3): Likewise.
2114 (arm_zero_extendhisi2addsi): Likewise.
2115 (arm_zero_extendqisi2addsi): Likewise.
2116 (compareqi_eq0): Likewise.
2117 (arm_extendhisi2_v6): Likewise.
2118 (arm_extendqisi2addsi): Likewise.
2119 (arm_movt): Likewise.
2120 (thumb2_ldrd): Likewise.
2121 (thumb2_ldrd_base): Likewise.
2122 (thumb2_ldrd_base_neg): Likewise.
2123 (thumb2_strd): Likewise.
2124 (thumb2_strd_base): Likewise.
2125 (thumb2_strd_base_neg): Likewise.
2126 (arm_negsi2): Add alternative for 16-bit encoding.
2127 (arm_one_cmplsi2): Likewise.
2128
1572e697
KT
21292013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2130
2131 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
2132 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
2133 (movdfcc): Likewise.
2134 * config/arm/vfp.md (*thumb2_movsf_vfp):
2135 Disable predication for arm_restrict_it.
2136 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
2137 (*thumb2_movdfcc_vfp): Likewise.
2138 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
2139 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
2140 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
2141 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
2142 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
2143 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
2144 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
2145 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
2146 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
2147 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
2148 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
2149 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
2150 Disable predication for arm_restrict_it.
2151
ebf8f0ea
KY
21522013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
2153
2154 * config/i386/bmiintrin.h (_bextr_u32): New.
2155 (_bextr_u64): Ditto.
2156
a290fcda
RS
21572013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
2158
2159 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
2160 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
2161 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
2162 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
2163 * config/mips/n32-elf.h: ...this new file.
2164
ea169996
MG
21652013-06-27 Marc Glisse <marc.glisse@inria.fr>
2166
2167 PR target/57224
2168 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
2169 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
2170
8e932114
CM
21712013-06-27 Catherine Moore <clm@codesourcery.com>
2172
2173 * config/mips/mips-tables.opt: Regenerate.
2174 * config/mips/mips-cpus.def: Add m14ke and m14kec.
0ba6aff3 2175 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
8e932114 2176 * doc/invoke.texi: Add -m14kc.
ebf8f0ea 2177
2444244e
JJ
21782013-06-27 Jakub Jelinek <jakub@redhat.com>
2179
cd06d2a2
JJ
2180 PR target/57623
2181 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
2182 constraints of operand 1 and 2.
2183
2444244e
JJ
2184 PR target/57623
2185 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
2186 to match RTL canonicalization. Swap predicates and
2187 constraints of operand 1 and 2.
2188
2f259720
VM
21892013-06-27 Vladimir Makarov <vmakarov@redhat.com>
2190
0ba6aff3
UB
2191 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
2192 Process OP_INOUT regs for splitting too.
2f259720 2193
fef4d2b3
JJ
21942013-06-27 Jakub Jelinek <jakub@redhat.com>
2195
2196 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
2197 decl before the loop, initialize to NULL.
2198 (vectorizable_load): Initialize ptr_incr to NULL.
2199
79ee9826
MJ
22002013-06-27 Martin Jambor <mjambor@suse.cz>
2201
2202 PR lto/57208
2203 * ipa-ref.h (ipa_maybe_record_reference): Declare.
2204 * ipa-ref.c (ipa_maybe_record_reference): New function.
2205 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
2206 * ipa-cp.c (create_specialized_node): Record potential references from
2207 aggvals.
2208 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
2209
e18b4a81
YZ
22102013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
2211
2212 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
2213 parameter 'mode' of type 'enum machine_mode mode'; change to pass
2214 'mode' to force_reg.
2215 (aarch64_add_offset): Update calls to aarch64_force_temporary.
2216 (aarch64_expand_mov_immediate): Likewise.
2217
9c023bf0
YZ
22182013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
2219
2220 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
2221 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
2222
5a3fe9b6
AK
22232013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2224
2225 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
2226 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
2227 (struct machine_function): Add tbegin_p.
2228 (s390_canonicalize_comparison): Fold CC mode compares to
2229 conditional jump if possible.
2230 (s390_emit_jump): Return the emitted jump.
2231 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
2232 Handle CCRAWmode compares.
2233 (s390_option_override): Default to -mhtm if available.
2234 (s390_reg_clobbered_rtx): Handle floating point regs as well.
2235 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
2236 FPRs instead of df_regs_ever_live_p.
2237 (s390_optimize_nonescaping_tx): New function.
2238 (s390_init_frame_layout): Extend clobbered_regs array to cover
2239 FPRs as well.
2240 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
2241 (s390_expand_tbegin): New function.
2242 (enum s390_builtin): New enum definition.
2243 (code_for_builtin): New array definition.
2244 (s390_init_builtins): New function.
2245 (s390_expand_builtin): New function.
2246 (TARGET_INIT_BUILTINS): Define.
2247 (TARGET_EXPAND_BUILTIN): Define.
0ba6aff3 2248 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
5a3fe9b6
AK
2249 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
2250 (s390_alc_comparison): Likewise.
2251 * config/s390/s390-modes.def: Add CCRAWmode.
2252 * config/s390/s390.h (processor_flags): Add PF_TX.
2253 (TARGET_CPU_HTM): Define macro.
2254 (TARGET_HTM): Define macro.
2255 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
2256 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
2257 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
2258 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
0ba6aff3 2259 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
5a3fe9b6
AK
2260 (TBEGIN_MASK, TBEGINC_MASK): New constants.
2261 ("*cc_to_int"): Move up.
2262 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
2263 constants other than 0.
2264 ("*ccraw_to_int"): New insn and splitter definition.
2265 ("tbegin", "tbegin_nofloat", "tbegin_retry")
2266 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
2267 ("tx_assist"): New expander.
2268 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
2269 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
2270 * config/s390/s390.opt: Add -mhtm option.
2271 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
2272 * config/s390/htmxlintrin.h: New file.
2273 * config/s390/htmintrin.h: New file.
2274 * config/s390/s390intrin.h: New file.
2275 * doc/extend.texi: Document htm builtins.
2276 * config.gcc: Add the new header files to extra_headers.
2277
9e216629
TS
22782013-06-26 Thomas Schwinge <thomas@codesourcery.com>
2279
2280 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
0ba6aff3 2281 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
9e216629 2282
fd8c65e7
MM
22832013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2284 Pat Haugen <pthaugen@us.ibm.com>
2285 Peter Bergner <bergner@vnet.ibm.com>
2286
2287 * config/rs6000/power8.md: New.
2288 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
2289 setting for power8 entry.
2290 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
2291 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
2292 test for Power4/Power5 only.
2293 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
2294 support.
2295 (force_new_group): Adjust comment.
2296 * config/rs6000/rs6000.md: Include power8.md.
2297
b24a2ce5
GY
22982013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
2299
2300 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
2301 * config/arm/arm-protos.h (arm_max_conditional_execute): New
2302 declaration.
2303 (tune_params): Update comment.
2304 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
2305 (arm_max_conditional_execute): New function.
2306 (thumb2_final_prescan_insn): Use max_insn_skipped and
2307 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
2308
f6fdeb62
JJ
23092013-06-25 Jakub Jelinek <jakub@redhat.com>
2310
2311 PR tree-optimization/57705
2312 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
2313 SSA_NAME step, provided that it is not defined inside the loop.
0ba6aff3 2314 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
f6fdeb62
JJ
2315 (get_initial_def_for_induction): Handle SSA_NAME IV step.
2316
c13bc3d9
MJ
23172013-06-25 Martin Jambor <mjambor@suse.cz>
2318
2319 PR middle-end/57670
2320 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
2321 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
2322 calls in the dump.
2323 (ipa_note_param_call): Initialize member_ptr flag.
2324 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
2325 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
2326 (ipa_write_indirect_edge_info): Stream member_ptr flag.
2327 (ipa_read_indirect_edge_info): Likewise.
2328
8a845901
RB
23292013-06-25 Richard Biener <rguenther@suse.de>
2330
2331 PR middle-end/56977
2332 * passes.c (init_optimization_passes): Move pass_fold_builtins
2333 and pass_dce earlier with -Og.
2334
33be0bec
EB
23352013-06-25 Eric Botcazou <ebotcazou@adacore.com>
2336
2337 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
2338 <BIT_FIELD_REF>: Remove trailing TAB.
2339 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
2340 remove blank line.
2341
5fe8e757
MJ
23422013-06-24 Martin Jambor <mjambor@suse.cz>
2343
2344 PR tree-optimization/57358
2345 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
2346 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
2347 (ipa_analyze_params_uses): Generate pessimistic info when true.
2348
44a60244
MJ
23492013-06-24 Martin Jambor <mjambor@suse.cz>
2350
2351 PR tree-optimization/57539
2352 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
2353 global.inlined_to of the new node to it. All callers changed.
2354 * ipa-inline-transform.c (clone_inlined_nodes): New variable
2355 inlining_into, pass it to cgraph_clone_node.
2356 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
2357 ipa_free_edge_args_substructures.
2358 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
2359 rdesc linked list. Do not assert rdesc edges have inlined caller.
2360 Assert we have found an rdesc in the rdesc list.
2361
7c5848b8
RB
23622013-06-24 Richard Biener <rguenther@suse.de>
2363
0ba6aff3 2364 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
7c5848b8
RB
2365 (pointer_set_lookup): Declare.
2366 (class pointer_map): New template class implementing a
2367 generic pointer to T map.
2368 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
2369 pointer_map<T>::contains, pointer_map<T>::insert,
2370 pointer_map<T>::traverse): New functions.
2371 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
2372 (pointer_set_lookup): New function.
2373 (pointer_set_contains): Use pointer_set_lookup.
2374 (pointer_set_insert): Likewise.
2375 (insert_aux): Remove.
2376 (struct pointer_map_t): Embed a pointer_set_t.
2377 (pointer_map_create): Adjust.
2378 (pointer_map_destroy): Likewise.
2379 (pointer_map_contains): Likewise.
2380 (pointer_map_insert): Likewise.
2381 (pointer_map_traverse): Likewise.
2382 * tree-streamer.h (struct streamer_tree_cache_d): Use a
2383 pointer_map<unsigned> instead of a pointer_map_t.
2384 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
2385 (streamer_tree_cache_lookup): Likewise.
2386 (streamer_tree_cache_create): Likewise.
2387 (streamer_tree_cache_delete): Likewise.
2388 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
2389 pointer_map<unsigned> instead of a pointer_map_t.
2390 (lto_init_tree_ref_encoder): Adjust.
2391 (lto_destroy_tree_ref_encoder): Likewise.
2392 * lto-section-out.c (lto_output_decl_index): Likewise.
2393 (lto_record_function_out_decl_state): Likewise.
2394 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
2395
3dbc97a9
RB
23962013-06-24 Richard Biener <rguenther@suse.de>
2397
2398 PR tree-optimization/57488
2399 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
2400
8345965a
AM
24012013-06-24 Alan Modra <amodra@gmail.com>
2402
2403 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
2404 (gen_easy_altivec_constant): Likewise.
2405 * config/rs6000/predicates.md (easy_vector_constant_add_self,
2406 easy_vector_constant_msb): Likewise.
2407
b7df379f
JJ
24082013-06-23 Jakub Jelinek <jakub@redhat.com>
2409
2410 PR target/57688
2411 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
2412 add missing return true.
2413
0bcf9a09
OE
24142013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
2415
2416 PR target/52483
2417 * config/sh/predicates.md (general_extend_operand): Invoke
2418 general_movsrc_operand for memory operands.
2419 (general_movsrc_operand): Allow reg+reg addressing, do not use
2420 general_operand for memory operands.
2421
97db2bf7
ST
24222013-06-23 Sriraman Tallam <tmsriram@google.com>
2423
2424 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
2425 when current target options does not apply.
2426 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
2427 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
0ba6aff3
UB
2428 * config/i386/bmiintrin.h: Pass appropriate target
2429 attributes to header.
97db2bf7
ST
2430 * config/i386/mmintrin.h: Ditto.
2431 * config/i386/nmmintrin.h: Ditto.
2432 * config/i386/avx2intrin.h: Ditto.
2433 * config/i386/fxsrintrin.h: Ditto.
2434 * config/i386/tbmintrin.h: Ditto.
2435 * config/i386/xsaveintrin.h: Ditto.
2436 * config/i386/f16cintrin.h: Ditto.
2437 * config/i386/xtestintrin.h: Ditto.
2438 * config/i386/xsaveoptintrin.h: Ditto.
2439 * config/i386/bmi2intrin.h: Ditto.
2440 * config/i386/lzcntintrin.h: Ditto.
2441 * config/i386/smmintrin.h: Ditto.
2442 * config/i386/wmmintrin.h: Ditto.
2443 * config/i386/x86intrin.h: Remove all header include guards.
2444 * config/i386/prfchwintrin.h: Ditto.
2445 * config/i386/pmmintrin.h: Ditto.
2446 * config/i386/tmmintrin.h: Ditto.
2447 * config/i386/xmmintrin.h: Ditto.
2448 * config/i386/popcntintrin.h: Ditto.
2449 * config/i386/rdseedintrin.h: Ditto.
2450 * config/i386/ammintrin.h: Ditto.
2451 * config/i386/emmintrin.h: Ditto.
2452 * config/i386/immintrin.h: Remove all header include guards.
2453 * config/i386/fma4intrin.h: Ditto.
2454 * config/i386/lwpintrin.h: Ditto.
2455 * config/i386/xopintrin.h: Ditto.
2456 * config/i386/ia32intrin.h: Ditto.
2457 * config/i386/avxintrin.h: Ditto.
2458 * config/i386/rtmintrin.h: Ditto.
2459 * config/i386/fmaintrin.h: Ditto.
2460 * config/i386/mm3dnow.h: Ditto.
2461
495e6879
ST
24622013-06-22 Sriraman Tallam <tmsriram@google.com>
2463
2464 * common/config/i386/i386-common.c: Handle LZCNT.
2465
11e8f687
AK
24662013-06-22 Andi Kleen <ak@linux.intel.com>
2467
2468 * doc/extend.texi: Use __atomic_store_n instead of
2469 __atomic_store in HLE example.
2470
664dd721
OE
24712013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
2472
2473 * config/sh/sh.c: Remove <cstdlib> workaround.
2474
927f908b
AK
24752013-06-21 Andi Kleen <ak@linux.intel.com>
2476
0ba6aff3 2477 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
927f908b 2478
cca410b6
AK
24792013-06-21 Andi Kleen <ak@linux.intel.com>
2480
2481 * doc/extend.texi: Document that __atomic_clear and
2482 __atomic_test_and_set should only be used with bool.
2483
d84db1ed
JH
24842013-06-20 Jan Hubicka <jh@suse.cz>
2485
2486 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
2487 types_same_for_odr.
2488 * tree.c (decls_same_for_odr): New function.
2489 (same_for_edr): New function.
2490 (types_same_for_odr): New function.
2491 (get_binfo_at_offset): Use it.
2492 * tree.h (types_same_for_odr): Declare.
2493
664dd721 24942013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
2495 Jason Merrill <jason@redhat.com>
2496
2497 * system.h: Include <cstdlib> as well as <stdlib.h>.
2498
49b4ff63
UB
24992013-06-20 Uros Bizjak <ubizjak@gmail.com>
2500
2501 PR target/57655
2502 * config/i386/i386.c (construct_container): Report error if
2503 long double is used with disabled x87 float returns.
2504
7a89ad00
JH
25052013-06-20 Jan Hubicka <jh@suse.cz>
2506
2507 * lto-cgraph.c (input_symtab): Do not set cgraph state.
2508
bd280792
JR
25092013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
2510
2511 PR rtl-optimization/57425
2512 PR rtl-optimization/57569
2513 * alias.c (write_dependence_p): Remove parameters mem_mode and
2514 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
2515 Changed all callers.
2516 (canon_anti_dependence): Get comments and semantics in sync.
2517 Add parameter mem_canonicalized. Changed all callers.
2518 * rtl.h (canon_anti_dependence): Update prototype.
2519
d16e9a99
RB
25202013-06-20 Richard Biener <rguenther@suse.de>
2521
2522 * data-streamer-in.c (streamer_read_uhwi): Optimize single
2523 byte case, inline streamer_read_uchar and defer section
2524 overrun check.
2525
c3a9b91b
RB
25262013-06-20 Richard Biener <rguenther@suse.de>
2527
2528 PR tree-optimization/57584
2529 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
2530 SSA names into the expanded expression that take part in
2531 abnormal coalescing.
2532
371e77e3 25332013-06-19 Sharad Singhai <singhai@google.com>
fc8a650e
SS
2534
2535 * gcov.c (print_usage): Handle new option.
2536 (process_args): Ditto.
2537 (get_gcov_intermediate_filename): New function.
2538 (output_intermediate_file): New function.
2539 (output_gcov_file): New function
2540 (generate_results): Handle new option.
2541 (release_function): Relase demangled name.
2542 (read_graph_file): Handle demangled name.
2543 (output_lines): Ditto.
2544 * doc/gcov.texi: Document gcov intermediate format.
2545
11f5b71a
VM
25462013-06-19 Vladimir Makarov <vmakarov@redhat.com>
2547
2548 PR bootstrap/57604
2549 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
2550 (lra_emit_add): Use the functions. Add comment about Y as an
2551 address segment.
2552
e1f9340b
DE
25532013-06-19 David Edelsohn <dje.gcc@gmail.com>
2554
2555 PR driver/57652
2556 * collect2.c (collect_atexit): New.
2557 (collect_exit): Delete.
2558 (main): Register collect_atexit with atexit.
2559 (collect_wait): Change collect_exit to exit.
2560 (do_wait): Same.
2561 * collect2.h (collect_exit): Delete.
2562 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
2563
e3f9e0ac
WM
25642013-06-19 Wei Mi <wmi@google.com>
2565
2566 PR rtl-optimization/57518
2567 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
2568 if regno is used in paradoxical subreg.
2569 (update_equiv_regs): Check pdx_subregs[regno] before
2570 set a reg to be equivalent with a mem.
2571
a09f1a76
MK
25722013-06-19 Matthias Klose <doko@ubuntu.com>
2573
2574 PR driver/57651
2575 * file-find.h (find_a_file): Add a mode parameter.
2576 * file-find.c (find_a_file): Likewise.
2577 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
2578 with X_OK for the executables.
2579 * collect2.c (main): Call find_a_file with X_OK.
2580
7d18b0ad
SE
25812013-06-19 Steve Ellcey <sellcey@mips.com>
2582
2583 PR target/56942
2584 * config/mips/mips.md (casesi_internal_mips16_<mode>):
2585 Use NEXT_INSN instead of next_real_insn.
2586
6a6dac52
JH
25872013-06-19 Jan Hubicka <jh@suse.cz>
2588
2589 * cgraph.h (const_value_known_p): Replace by ...
2590 (ctor_for_folding): .. this one.
2591 * cgraphunit.c (process_function_and_variable_attributes): Use it.
2592 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
2593 * expr.c (expand_expr_real_1): Likewise.
2594 (string_constant): Likewise.
2595 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
2596 * ipa.c (process_references): Likewise.
2597 (symtab_remove_unreachable_nodes): Likewise.
2598 * ipa-inline-analysis.c (param_change_prob): Likewise.
2599 * gimple-fold.c (canonicalize_constructor_val): Likewise.
2600 (get_base_constructor): Likwise.
2601 * varpool.c (varpool_remove_node): Likewise.
2602 (varpool_remove_initializer): LIkewise.
2603 (dump_varpool_node): LIkwise.
2604 (const_value_known_p): Rewrite to ...
2605 (ctor_for_folding): ... this one.
2606
216c12ab
JJ
26072013-06-19 Jakub Jelinek <jakub@redhat.com>
2608
2609 PR driver/57651
2610 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
2611 PERSONALITY in $PATH derived prefixes.
2612
d53e2f99
JL
26132013-06-19 Jeff Law <law@redhat.com>
2614
ecdbf306
JL
2615 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
2616 in comment.
2617
d53e2f99
JL
2618 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
2619 (simplify_bitwise_binary): Use it to simpify certain binary ops on
2620 booleans.
2621
89e7fc04
SN
26222013-06-19 Sofiane Naci <sofiane.naci@arm.com>
2623
2624 * config/arm/vfp.md: Move VFP instruction classification documentation
2625 to ...
2626 * config/arm/arm.md: ... here. Update instruction classification
2627 documentation.
2628
5e7f6aaa
RE
26292013-06-19 Richard Earnshaw <rearnsha@arm.com>
2630
2631 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
2632 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
2633 pattern. Use more efficient sequences on ARMv5 and Thumb2.
2634
5fdc1e5d
SB
26352013-06-19 Steven Bosscher <steven@gcc.gnu.org>
2636
2637 PR target/57609
2638 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2639 with NEXT_INSN. Use tablejump_p to check for jump table data
2640 insns.
2641
e952afba
PC
26422013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
2643
2644 PR c++/56544
2645 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
2646 that now in C++ the value is correct per the C++ standards.
2647
3fd0303a
RB
26482013-06-19 Richard Biener <rguenther@suse.de>
2649
2650 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
2651 for global context.
2652
b04e4b08
AK
26532013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2654
2655 Revert:
2656 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2657
2658 PR target/57609
2659 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2660 with next_active_insn.
2661
bef8491a
ST
26622013-06-18 Sriraman Tallam <tmsriram@google.com>
2663
2664 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
2665 functions are inlined during failures to flag an error.
2666 * tree-inline.c (expand_call_inline): Allow the error to be flagged
2667 in early inline pass.
22fc7d3d 2668
c21b257d
L
26692013-06-18 H.J. Lu <hongjiu.lu@intel.com>
2670
2671 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
2672 in comments.
2673
33255ae3
JB
26742013-06-18 Julian Brown <julian@codesourcery.com>
2675
2676 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
2677 Permit virtual register pre-reload if !strict.
2678 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
2679 change.
2680 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
2681 prototype.
2682 * config/arm/neon.md (movmisalign<mode>): Use
2683 neon_perm_struct_or_reg_operand instead of
2684 neon_struct_or_register_operand.
2685 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
2686 neon_permissive_struct_operand instead of neon_struct_operand.
2687 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
2688 neon_vector_mem_operand.
2689 * config/arm/predicates.md (neon_struct_operand): Adjust call to
2690 neon_vector_mem_operand.
2691 (neon_permissive_struct_operand): New.
2692 (neon_struct_or_register_operand): Rename to...
2693 (neon_perm_struct_or_reg_operand): This. Adjust call to
2694 neon_vector_mem_operand.
2695
d579fcda
RB
26962013-06-18 Richard Biener <rguenther@suse.de>
2697
2698 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
2699 * lto-streamer.h: Include pointer-set.h.
2700 (struct lto_decl_slot): Remove.
2701 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
2702 Remove next_index entry.
2703 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2704 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2705 (lto_init_tree_ref_encoder): Adjust.
2706 (lto_destroy_tree_ref_encoder): Likewise.
2707 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
2708 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
2709 (lto_output_decl_index): Adjust.
2710 (lto_new_out_decl_state): Likewise.
2711 (lto_record_function_out_decl_state): Likewise.
2712 * lto-streamer-out.c (copy_function): Likewise.
2713
31ee20ba
RB
27142013-06-18 Richard Biener <rguenther@suse.de>
2715
2716 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
2717 * cgraphunit.c: Include cfgloop.h.
2718 (init_lowered_empty_function): Initialize the loop tree.
2719 (assemble_thunk): Insert new BBs into loops.
2720
ac0511f2
RB
27212013-06-18 Richard Biener <rguenther@suse.de>
2722
2723 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
2724 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
2725 the map from cache entry to cache index optional.
2726 (streamer_tree_cache_replace_tree): Adjust accordingly.
2727 (streamer_tree_cache_append): Likewise.
2728 (streamer_tree_cache_delete): Likewise.
2729 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
2730 streamer cache map from cache entry to cache index.
2731 * lto-streamer-out.c (create_output_block): Adjust.
2732
09485a08
SN
27332013-06-18 Sofiane Naci <sofiane.naci@arm.com>
2734
22fc7d3d
UB
2735 * config/arm/arm.md (attribute "insn"): Move multiplication and
2736 division attributes to...
09485a08
SN
2737 (attribute "type"): ... here. Remove mult.
2738 (attribute "mul32"): New attribute.
2739 (attribute "mul64"): Add umaal.
2740 (*arm_mulsi3): Update attributes.
2741 (*arm_mulsi3_v6): Likewise.
2742 (*thumb_mulsi3): Likewise.
2743 (*thumb_mulsi3_v6): Likewise.
2744 (*mulsi3_compare0): Likewise.
2745 (*mulsi3_compare0_v6): Likewise.
2746 (*mulsi_compare0_scratch): Likewise.
2747 (*mulsi_compare0_scratch_v6): Likewise.
2748 (*mulsi3addsi): Likewise.
2749 (*mulsi3addsi_v6): Likewise.
2750 (*mulsi3addsi_compare0): Likewise.
2751 (*mulsi3addsi_compare0_v6): Likewise.
2752 (*mulsi3addsi_compare0_scratch): Likewise.
2753 (*mulsi3addsi_compare0_scratch_v6): Likewise.
2754 (*mulsi3subsi): Likewise.
2755 (*mulsidi3adddi): Likewise.
2756 (*mulsi3addsi_v6): Likewise.
2757 (*mulsidi3adddi_v6): Likewise.
2758 (*mulsidi3_nov6): Likewise.
2759 (*mulsidi3_v6): Likewise.
2760 (*umulsidi3_nov6): Likewise.
2761 (*umulsidi3_v6): Likewise.
2762 (*umulsidi3adddi): Likewise.
2763 (*umulsidi3adddi_v6): Likewise.
2764 (*smulsi3_highpart_nov6): Likewise.
2765 (*smulsi3_highpart_v6): Likewise.
2766 (*umulsi3_highpart_nov6): Likewise.
2767 (*umulsi3_highpart_v6): Likewise.
2768 (mulhisi3): Likewise.
2769 (*mulhisi3tb): Likewise.
2770 (*mulhisi3bt): Likewise.
2771 (*mulhisi3tt): Likewise.
2772 (maddhisi4): Likewise.
2773 (*maddhisi4tb): Likewise.
2774 (*maddhisi4tt): Likewise.
2775 (maddhidi4): Likewise.
2776 (*maddhidi4tb): Likewise.
2777 (*maddhidi4tt): Likewise.
2778 (divsi3): Likewise.
2779 (udivsi3): Likewise.
2780 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
2781 (thumb2_mulsi_short_compare0): Likewise.
2782 (thumb2_mulsi_short_compare0_scratch): Likewise.
2783 * config/arm/arm1020e.md (1020mult1): Update attribute change.
2784 (1020mult2): Likewise.
2785 (1020mult3): Likewise.
2786 (1020mult4): Likewise.
2787 (1020mult5): Likewise.
2788 (1020mult6): Likewise.
22fc7d3d
UB
2789 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
2790 change.
09485a08
SN
2791 (cortex_a15_mult64): Likewise.
2792 (cortex_a15_sdiv): Likewise.
2793 (cortex_a15_udiv): Likewise.
2794 * config/arm/arm1026ejs.md (mult1): Update attribute change.
2795 (mult2): Likewise.
2796 (mult3): Likewise.
2797 (mult4): Likewise.
2798 (mult5): Likewise.
2799 (mult6): Likewise.
2800 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
2801 (pj4_ir_div): Likewise.
2802 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
2803 (11_mult2): Likewise.
2804 (11_mult3): Likewise.
2805 (11_mult4): Likewise.
2806 (11_mult5): Likewise.
2807 (11_mult6): Likewise.
2808 (11_mult7): Likewise.
2809 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
2810 (cortex_a8_mla): Likewise.
2811 (cortex_a8_mull): Likewise.
2812 (cortex_a8_smulwy): Likewise.
2813 (cortex_a8_smlald): Likewise.
2814 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
2815 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
2816 (cortex_r4_mul_3): Likewise.
2817 (cortex_r4_mla_4): Likewise.
2818 (cortex_r4_mla_3): Likewise.
2819 (cortex_r4_smlald): Likewise.
2820 (cortex_r4_mull): Likewise.
2821 (cortex_r4_sdiv): Likewise.
2822 (cortex_r4_udiv): Likewise.
2823 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
2824 (cortex_a7_idiv): Likewise.
2825 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
2826 (9_mult2): Likewise.
2827 (9_mult3): Likewise.
2828 (9_mult4): Likewise.
2829 (9_mult5): Likewise.
2830 (9_mult6): Likewise.
2831 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
2832 (cortex_a53_sdiv): Likewise.
2833 (cortex_a53_udiv): Likewise.
2834 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
2835 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
2836 (mp626_mult2): Likewise.
2837 (mp626_mult3): Likewise.
2838 (mp626_mult4): Likewise.
2839 * config/arm/fa526.md (526_mult1): Update attribute change.
2840 (526_mult2): Likewise.
2841 * config/arm/arm-generic.md (mult): Update attribute change.
2842 (mult_ldsched_strongarm): Likewise.
2843 (mult_ldsched): Likewise.
2844 (multi_cycle): Likewise.
2845 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
2846 * config/arm/fa606te.md (606te_mult1): Update attribute change.
2847 (606te_mult2): Likewise.
2848 (606te_mult3): Likewise.
2849 (606te_mult4): Likewise.
2850 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
2851 (cortex_a9_mac16): Likewise.
2852 (cortex_a9_multiply): Likewise.
2853 (cortex_a9_mac): Likewise.
2854 (cortex_a9_multiply_long): Likewise.
2855 * config/arm/fa626te.md (626te_mult1): Update attribute change.
2856 (626te_mult2): Likewise.
2857 (626te_mult3): Likewise.
2858 (626te_mult4): Likewise.
2859
8951f345
RB
28602013-06-18 Richard Biener <rguenther@suse.de>
2861
2862 PR lto/57334
2863 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
2864
d8101d05
AK
28652013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2866
2867 PR target/57609
2868 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
2869 with next_active_insn.
2870
69eff9da
AM
28712013-06-18 Alan Modra <amodra@gmail.com>
2872
2873 * config/rs6000/rs6000.h (enum data_align): New.
2874 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
2875 (DATA_ABI_ALIGNMENT): Define.
2876 (CONSTANT_ALIGNMENT): Correct comment.
2877 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
2878 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
2879
8ed00d76
DM
28802013-06-17 David Malcolm <dmalcolm@redhat.com>
2881
2882 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
2883 ATTRIBUTE_UNUSED marking.
2884
3d33d06b
SN
28852013-06-17 Sofiane Naci <sofiane.naci@arm.com>
2886
2887 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
2888 alternative and update.
2889 (aarch64_dup_lanedi): Delete.
2890 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
2891 * config/aarch64/aarch64-simd-builtins.def: Update.
2892
ee03e71d
RB
28932013-06-17 Richard Biener <rguenther@suse.de>
2894
2895 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
2896 (lto_input_scc): Declare.
2897 (lto_input_tree_1): Likewise.
2898 (struct lto_stats_d): Add num_tree_bodies_output and
2899 num_pickle_refs_output.
2900 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
2901 (lto_read_tree_1): Split out from ...
2902 (lto_read_tree): ... this.
2903 (lto_input_scc): New function.
2904 (lto_input_tree_1): Split out from ...
2905 (lto_input_tree): ... this. Handle LTO_tree_scc.
2906 (lto_data_in_create): Create the streamer cache without hashes.
2907 * lto-streamer-out.c (create_output_block): Create the streamer
2908 cache with hashes when not doing WPA.
2909 (lto_write_tree_1): Split out from ...
2910 (lto_write_tree): ... this.
2911 (get_symbol_initial_value): New function.
2912 (lto_output_tree_1): Split out from ...
2913 (lto_output_tree): ... this. Write trees as series of SCCs
2914 using a DFS walk via DFS_write_tree.
2915 (struct sccs, struct scc_entry): New types.
2916 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
2917 (DFS_write_tree_body): New function.
2918 (DFS_write_tree): Likewise.
2919 (hash_tree): Likewise.
2920 (scc_entry_compare): Likewise.
2921 (hash_scc): Likewise.
2922 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
2923 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
2924 TREE_CHAIN as regular reference.
2925 (streamer_read_integer_cst): Remove.
2926 (streamer_get_pickled_tree): Adjust.
2927 * tree-streamer-out.c (streamer_write_chain): Disable streaming
2928 of DECL_EXTERNALs in BLOCK_VARS for now.
2929 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
2930 reference.
2931 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
2932 Add hash value argument and record that if hashes are recorded
2933 in the cache.
2934 (streamer_tree_cache_insert_1): Adjust.
2935 (streamer_tree_cache_insert): Likewise.
2936 (streamer_tree_cache_insert_at): Rename to ...
2937 (streamer_tree_cache_replace_tree): ... this and adjust.
2938 (streamer_tree_cache_append): Adjust.
2939 (record_common_node): Likewise.
2940 (streamer_tree_cache_create): Add argument whether to
2941 record hash values together with trees.
2942 (streamer_tree_cache_delete): Adjust.
2943 * tree-streamer.h (struct streamer_tree_cache_d): Add
2944 vector of hashes.
2945 (streamer_read_integer_cst): Remove.
2946 (streamer_tree_cache_insert): Adjust.
2947 (streamer_tree_cache_append): Likewise.
2948 (streamer_tree_cache_insert_at): Rename to ...
2949 (streamer_tree_cache_replace_tree): ... this and adjust.
2950 (streamer_tree_cache_create): Add argument whether to record hashes.
2951 (streamer_tree_cache_get): Rename to ...
2952 (streamer_tree_cache_get_tree): ... this.
2953 (streamer_tree_cache_get_hash): New function.
2954 * tree.c (cache_integer_cst): New function.
2955 * tree.h (cache_integer_cst): Declare.
2956 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
2957 * lto-symtab.c (lto_varpool_replace_node): Only release
2958 DECL_INITIAL of non-prevailing decls.
2959 * varpool.c (varpool_remove_initializer): Do not release
2960 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
2961
0de86a92
JU
29622013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
2963
2964 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
2965 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
2966 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
2967 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
2968 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
2969 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
2970 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
2971 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
2972 instead of TARGET_64BIT.
2973 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
2974 Require ISA_HAS_<D>DIV.
2975
74240413
RS
29762013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
2977
2978 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
2979 (mips*-*-linux*): Move default with_llsc setting to where other
2980 defaults are set.
2981 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
2982 with_arch block.
2983 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
2984 Likewise. Remove default with_tune setting. Move default float
2985 setting to its own block. Handle with_llsc in the same block as above.
2986
393f9fed
JR
29872013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
2988
2989 PR rtl-optimization/57425
2990 PR rtl-optimization/57569
299a5f6a 2991 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
2992 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
2993 Changed all callers.
2994 (canon_anti_dependence): New function.
2995 * cse.c (check_dependence): Use canon_anti_dependence.
2996 * cselib.c (cselib_invalidate_mem): Likewise.
2997 * rtl.h (canon_anti_dependence): Declare.
2998
b259d352
JU
29992013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
3000
3001 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
3002 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
3003 ".set mips3" for 64-bit targets.
3004
4de09b85
DC
30052013-06-15 Dehao Chen <dehao@google.com>
3006
3007 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
3008 * gimple-low.c (gimple_check_call_matching_types): Likewise.
3009 (gimple_check_call_args): Likewise.
3010 * value-prof.c (check_ic_target): Likewise.
3011 * ipa-inline.c (early_inliner): Likewise.
3012 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
3013 * cgraph.c (cgraph_create_edge_1): Likewise.
3014 (cgraph_make_edge_direct): Likewise.
3015
d1aa4a76
MM
30162013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3017
3018 PR target/57615
3019 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
3020 rs6000_output_move_128bit to handle emitting quad memory
3021 operations. Set attribute length to 8 bytes.
3022
24244e4d
VP
30232013-06-14 Vidya Praveen <vidyapraveen@arm.com>
3024
3025 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
3026 New pattern.
3027 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
3028 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
3029 (aarch64_<su>mlsl<mode>): Likewise.
3030
f5273574
MS
30312013-06-14 Mike Stump <mikestump@comcast.net>
3032
3033 * Makefile.in (TARGET_H): Add insn-codes.h.
3034
ef7e7ab2
AM
30352013-06-14 Alan Modra <amodra@gmail.com>
3036
3037 PR middle-end/57134
3038 PR middle-end/57586
3039 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
3040 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
3041 bitfield expansion when EXPAND_MEMORY.
3042 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
3043
135faab6
MM
30442013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3045
3046 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3047 test for clearing quad memory on 32-bit later.
3048
948a1fd9
MG
30492013-06-13 Marc Glisse <marc.glisse@inria.fr>
3050
3051 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
3052 (fold_negate_expr): Likewise.
3053 (fold_real_zero_addition_p): Handle vectors.
3054 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
3055
0597fb9c
AM
30562013-06-14 Alan Modra <amodra@gmail.com>
3057
3058 * varasm.c (force_const_mem): Revert 2013-06-07 change.
3059
e5b962d0
JH
30602013-06-13 Jan Hubicka <jh@suse.cz>
3061
3062 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
3063 Local comdats are not externally visible.
3064 * symtab.c (dump_symtab_base): Dump externally visible.
3065 (verify_symtab_base): Verify back links in the symtab hash.
3066
a8355e51
BC
30672013-06-13 Bin Cheng <bin.cheng@arm.com>
3068
3069 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
3070 CONVERT_EXPR as equal nodes.
3071
8f7e6e33
BC
30722013-06-13 Bin Cheng <bin.cheng@arm.com>
3073
22fc7d3d 3074 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 3075
5d418483
MG
30762013-06-13 Marc Glisse <marc.glisse@inria.fr>
3077
3078 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
3079 Generalize to complex and vector.
3080 * tree.c (build_all_ones_cst): New function.
3081 * tree.h (build_all_ones_cst): Declare it.
3082
50751417
AM
30832013-06-13 Alan Modra <amodra@gmail.com>
3084
3085 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
3086 * config/rs6000/rs6000.md (signbittf2): New insn.
3087 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
3088 (abstf2_internal, cmptf_internal2): Likewise.
3089 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
3090
4b02c962
MM
30912013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
3092 Pat Haugen <pthaugen@us.ibm.com>
3093 Peter Bergner <bergner@vnet.ibm.com>
3094
3095 * config/rs6000/rs6000.c (emit_load_locked): Add support for
3096 power8 byte, half-word, and quad-word atomic instructions.
3097 (emit_store_conditional): Likewise.
3098 (rs6000_expand_atomic_compare_and_swap): Likewise.
3099 (rs6000_expand_atomic_op): Likewise.
3100
3101 * config/rs6000/sync.md (larx): Add new modes for power8.
3102 (stcx): Likewise.
3103 (AINT): New mode iterator to include TImode as well as normal
3104 integer modes on power8.
3105 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
3106 that VSX registers are not considered. Use AINT mode iterator
3107 instead of INT1 to allow inclusion of quad word atomic operations
3108 on power8.
3109 (load_locked<mode>): Likewise.
3110 (store_conditional<mode>): Likewise.
3111 (atomic_compare_and_swap<mode>): Likewise.
3112 (atomic_exchange<mode>): Likewise.
3113 (atomic_nand<mode>): Likewise.
3114 (atomic_fetch_<fetchop_name><mode>): Likewise.
3115 (atomic_nand_fetch<mode>): Likewise.
3116 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
3117 each type.
3118 (ATOMIC): On power8, add QImode, HImode modes.
3119 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
3120 modes that promote to SImode.
3121 (load_lockedti): Convert TImode arguments to PTImode, so that we
3122 get a guaranteed even/odd register pair.
3123 (load_lockedpti): Likewise.
3124 (store_conditionalti): Likewise.
3125 (store_conditionalpti): Likewise.
3126
3127 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
3128 atomic load/store instructions.
3129 (HSI): Likewise.
3130
710b6cc1
RS
31312013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
3132
3133 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
3134 loads.
3135 (insn_count): New attribute, with most cases extracted from...
3136 (length): ...here. Redefine most cases in terms of insn_count.
3137 (single_insn): Delete.
3138 (can_delay): Use insn_count to check for single instructions.
3139 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
3140 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
3141 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
3142 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
3143 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
3144 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
3145 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
3146 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
3147 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
3148 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
3149 rather than "length".
3150 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
3151 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
3152 Use "insn_count" rather than "length".
3153 * config/mips/mips-dsp.md
3154 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
3155 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
3156 length attributes.
3157
1951f101
MG
31582013-06-12 Marc Glisse <marc.glisse@inria.fr>
3159
3160 PR tree-optimization/57361
3161 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
3162
8b033a8a
SN
31632013-06-12 Sofiane Naci <sofiane.naci@arm.com>
3164
22fc7d3d
UB
3165 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
3166 to split.
8b033a8a
SN
3167 (aarch64_simd_combine<mode>): New instruction expansion.
3168 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
3169 function prototype.
3170 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
3171 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
3172
ca0f62a8
JH
31732013-06-12 Jan Hubicka <jh@suse.cz>
3174
3175 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
3176 decl has when in streaming stage.
3177 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
3178 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
3179
cddd69eb
RS
31802013-06-12 Roland Stigge <stigge@antcom.de>
3181
3182 PR target/57578
3183 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
3184
bfdeda2c
JJ
31852013-06-12 Jakub Jelinek <jakub@redhat.com>
3186
3187 PR tree-optimization/57537
3188 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
3189 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
3190
a4fa02d1
RB
31912013-06-12 Richard Biener <rguenther@suse.de>
3192
3193 * data-streamer.h (streamer_write_char_stream): CSE
3194 obs->current_pointer.
3195 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
3196 streamer_write_char_stream manually and optimize the resulting loop.
3197 (streamer_write_hwi_stream): Likewise.
3198
bbf9ad07
JH
31992013-06-12 Jan Hubicka <jh@suse.cz>
3200
3201 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
3202 * cgraph.h (varpool_create_empty_node): Declare.
3203 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
3204 duplicated nodes.
3205 * symtab.c (symtab_unregister_node): Be lax about missin entries
3206 in node hash.
3207 (symtab_get_node): Update comment.
3208 * varpool.c (varpool_create_empty_node): Break out from ...
3209 (varpool_node_for_decl): ... here.
3210 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
3211
a53f90ad
EB
32122013-06-12 Eric Botcazou <ebotcazou@adacore.com>
3213
3214 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
3215 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
3216 part. Use straight-line flow at the end.
3217 <COMPONENT_REF>: Remove superfluous else.
3218 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
3219
946f9306
JJ
32202013-06-12 Jakub Jelinek <jakub@redhat.com>
3221
3222 PR target/56564
3223 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
3224 target hook even for !TREE_PUBLIC decls. If no resolution info
3225 is available, return false for common and external decls.
3226
a7fca6f0
KP
32272013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3228
3229 * config/rl78/constraints.md (U): New constraint.
3230 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
3231 valloc attribute.
3232
c7d8f446
MM
32332013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3234
3235 PR target/57589
3236 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
3237 to allow returning address to AT_PLATFORM name.
3238
08346abd
JH
32392013-06-11 Jan Hubicka <jh@suse.cz>
3240
3241 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
3242 * cgraph.h (symtab_node_base): Add weakref flag.
3243 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
3244 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
3245 (output_weakrefs): Use weakref flag.
3246 * fold-const.c (simple_operand_p): Handle WEAK.
3247 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
3248 * ipa.c (varpool_externally_visible_p): Drop weakref.
3249 (function_and_variable_visibility): Update comment; fix weakref
3250 sanity checks; do not clear DECL_WEAK on them.
3251 * lto-cgraph.c (lto_output_node): update.
3252 (lto_output_varpool_node): Update.
3253 (input_overwrite_node): Update.
3254 (input_node): Update.
3255 (input_varpool_node): Update.
3256 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
3257 (lto_symtab_merge_symbols): Add sanity check.
3258 (lto_symtab_prevailing_decl): Do not special case weakrefs.
3259 * passes.c (rest_of_decl_compilation): Set static flag, too.
3260 * symtab.c (dump_symtab_base): Dump weakref.
3261 (verify_symtab_base): Sanity check weakrefs.
3262 (symtab_make_decl_local): Remove duplicated code.
3263 (symtab_alias_ultimate_target): Simplify.
3264 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 3265
d9af3652
DD
32662013-06-11 DJ Delorie <dj@redhat.com>
3267
3268 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
3269 (rl78_unwind_word_mode): New.
3270
ffa66012
DM
32712013-06-11 David Malcolm <dmalcolm@redhat.com>
3272
3273 * final.c (debug_prefix_maps): Make static.
3274
783f2d35
DM
32752013-06-11 David Malcolm <dmalcolm@redhat.com>
3276
3277 * function.c (initial_trampoline): Remove stray copy.
3278
7af26def
SN
32792013-06-11 Sofiane Naci <sofiane.naci@arm.com>
3280
3281 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
3282
97756c0e
MJ
32832013-06-11 Martin Jambor <mjambor@suse.cz>
3284
3285 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
3286 within bounds at the beginning of the function.
3287
2c7b8bf6
AM
32882013-06-11 Alan Modra <amodra@gmail.com>
3289
3290 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
3291 reporting.
3292 (get_named_section): Don't NULL !DECL_P decl.
3293
77cea46e
IZ
32942013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
3295
3296 * doc/invoke.texi (core-avx2): Document.
3297 (slm): Likewise.
3298 (atom): Updated with MOVBE.
3299
888f0920
RB
33002013-06-11 Richard Biener <rguenther@suse.de>
3301
22fc7d3d 3302 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 3303
6b438d58
AB
33042013-06-11 Anton Blanchard <anton@samba.org>
3305
3306 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
3307 correct shift value in little-endian mode.
3308
3bc66938
JJ
33092013-06-11 Jakub Jelinek <jakub@redhat.com>
3310
3311 PR target/56564
3312 * varasm.c (get_variable_align): Move #endif to the right place.
3313
a5dc7f88
CC
33142013-06-10 Cary Coutant <ccoutant@google.com>
3315
3316 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
3317 for hash so that hash table traversal order is deterministic.
3318
19be72ab
MM
33192013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
3320 Pat Haugen <pthaugen@us.ibm.com>
3321 Peter Bergner <bergner@vnet.ibm.com>
3322
3323 * config/rs6000/vector.md (GPR move splitter): Do not split moves
3324 of vectors in GPRS if they are direct moves or quad word load or
3325 store moves.
3326
3327 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
3328 declaration.
3329 (direct_move_p): Likewise.
3330 (quad_load_store_p): Likewise.
3331
3332 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
3333 classes into bins based on the physical register type.
3334 (reg_class_to_reg_type): Likewise.
3335 (IS_STD_REG_TYPE): Likewise.
3336 (IS_FP_VECT_REG_TYPE): Likewise.
3337 (reload_fpr_gpr): Arrays to determine what insn to use if we can
3338 use direct move instructions.
3339 (reload_gpr_vsx): Likewise.
3340 (reload_vsx_gpr): Likewise.
3341 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
3342 information that is a simplification of register classes. Also
3343 precalculate direct move reload helpers.
3344 (direct_move_p): New function to return true if the operation can
3345 be done as a direct move instruciton.
3346 (quad_load_store_p): New function to return true if the operation
3347 is a quad memory operation.
3348 (rs6000_legitimize_address): If quad memory, only allow register
3349 indirect for TImode addresses.
3350 (rs6000_legitimate_address_p): Likewise.
3351 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
3352 (rs6000_reload_register_type): Likewise.
3353 (register_to_reg_type): Return register type.
3354 (rs6000_secondary_reload_simple_move): New helper function for
3355 secondary reload and secondary memory needed to identify anything
3356 that is a simple move, and does not need reloading.
3357 (rs6000_secondary_reload_direct_move): New helper function for
3358 secondary reload to identify cases that can be done with several
3359 instructions via the direct move instructions.
3360 (rs6000_secondary_reload_move): New helper function for secondary
3361 reload to identify moves between register types that can be done.
3362 (rs6000_secondary_reload): Add support for quad memory operations
3363 and for direct move.
3364 (rs6000_secondary_memory_needed): Likewise.
3365 (rs6000_debug_secondary_memory_needed): Change argument names.
3366 (rs6000_output_move_128bit): New function to return the move to
3367 use for 128-bit moves, including knowing about the various
3368 limitations of quad memory operations.
3369
3370 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
3371 memory operations. call rs6000_output_move_128bit for the actual
3372 instruciton(s) to generate.
3373 (vsx_movti_64bit): Likewise.
3374
3375 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
3376 (UNSPEC_P8V_MTVSRWZ): Likewise.
3377 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
3378 (UNSPEC_P8V_MTVSRD): Likewise.
3379 (UNSPEC_P8V_XXPERMDI): Likewise.
3380 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
3381 (UNSPEC_FUSION_GPR): Likewise.
3382 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 3383 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
3384 (f32_sv): Likewise.
3385 (f32_dm): Likewise.
3386 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
3387 loads and direct move instructions.
3388 (zero_extendsidi2_lfiwzx): Likewise.
3389 (extendsidi2_lfiwax): Likewise.
3390 (extendsidi2_nocell): Likewise.
3391 (floatsi<mode>2_lfiwax): Likewise.
3392 (lfiwax): Likewise.
3393 (floatunssi<mode>2_lfiwzx): Likewise.
3394 (lfiwzx): Likewise.
3395 (fix_trunc<mode>_stfiwx): Likewise.
3396 (fixuns_trunc<mode>_stfiwx): Likewise.
3397 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
3398 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
3399 (parity<mode>2_cmpb): Set length/type attr.
3400 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
3401 for 'mr.' to fast_compare.
3402 (bpermd_<mode>): Change type attr to popcnt.
3403 (p8_fmrgow_<mode>): New insns for power8 direct move support.
3404 (p8_mtvsrwz_1): Likewise.
3405 (p8_mtvsrwz_2): Likewise.
3406 (reload_fpr_from_gpr<mode>): Likewise.
3407 (p8_mtvsrd_1): Likewise.
3408 (p8_mtvsrd_2): Likewise.
3409 (p8_xxpermdi_<mode>): Likewise.
3410 (reload_vsx_from_gpr<mode>): Likewise.
3411 (reload_vsx_from_gprsf): Likewise.
3412 (p8_mfvsrd_3_<mode>): LIkewise.
3413 (reload_gpr_from_vsx<mode>): Likewise.
3414 (reload_gpr_from_vsxsf): Likewise.
3415 (p8_mfvsrd_4_disf): Likewise.
3416 (multi-word GPR splits): Do not split direct moves or quad memory
3417 operations.
3418
16876bdc
DM
34192013-06-10 David Malcolm <dmalcolm@redhat.com>
3420
3421 * tree-into-ssa.c (interesting_blocks): Make static.
3422
df8a1d28
JJ
34232013-06-10 Jakub Jelinek <jakub@redhat.com>
3424
3425 PR target/56564
3426 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
3427 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
3428 Use DATA_ABI_ALIGNMENT for that case instead if defined.
3429 (get_variable_align): New function.
3430 (get_variable_section, emit_bss, emit_common,
3431 assemble_variable_contents, place_block_symbol): Use
3432 get_variable_align instead of DECL_ALIGN.
3433 (assemble_noswitch_variable): Add align argument, use it
3434 instead of DECL_ALIGN.
3435 (assemble_variable): Adjust caller. Use get_variable_align
3436 instead of DECL_ALIGN.
3437 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
3438 caller.
3439 (DATA_ABI_ALIGNMENT): Define.
3440 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
3441 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
3442 opt is false, only return the psABI mandated alignment increase.
3443 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
3444 (DATA_ABI_ALIGNMENT): ... this.
3445 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
3446 (DATA_ABI_ALIGNMENT): ... this.
3447 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
3448 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
3449 (DATA_ABI_ALIGNMENT): ... this.
3450 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
3451 * doc/tm.texi: Regenerated.
3452
57b29ca6
UB
34532013-06-10 Uros Bizjak <ubizjak@gmail.com>
3454
3455 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
3456 cmp_code to construct REG_EQUAL note.
3457
3e56ed50
JJ
34582013-06-09 Jakub Jelinek <jakub@redhat.com>
3459
3460 PR target/57568
3461 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
3462 that operands[2] doesn't overlap with operands[0].
3463
74fe2a1d
DE
34642013-06-09 David Edelsohn <dje.gcc@gmail.com>
3465 Jan Hubicka <jh@suse.cz>
3466
3467 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
3468 hack to mark symbols as used.
3469
ed52a84e
VM
34702013-06-08 Vladimir Makarov <vmakarov@redhat.com>
3471
3472 PR rtl-optimization/57559
3473 * lra-constraints.c (process_alt_operands): Don't discourage
3474 memory with known offset for offsetable memory constraint.
3475 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
3476
299316ed
EB
34772013-06-08 Eric Botcazou <ebotcazou@adacore.com>
3478
3479 * varasm.c (struct oc_local_state): Reorder fields.
3480 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
3481 and adjust accordingly.
3482 (output_constructor): Reorder initialization code and adjust call to
3483 output_constructor_bitfield.
3484
88ac60d3
JH
34852013-06-07 Jan Hubicka <jh@suse.cz>
3486
3487 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
3488
4cdce1a8
DM
34892013-06-07 David Malcolm <dmalcolm@redhat.com>
3490
3491 * tree-object-size.c (unknown): Make const.
3492
b5e0425c
AK
34932013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3494
3495 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
3496 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
3497 for last alternative in the cpu_facility attribute.
3498
79678d04
KT
34992013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3500
3501 PR target/56315
3502 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
3503 (xordi3): Change operand 2 constraint to arm_xordi_operand.
3504 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
3505 * config/arm/constraints.md (Dg): New constraint.
3506 * config/arm/neon.md (xordi3_neon): Remove.
3507 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
3508 * config/arm/predicates.md (arm_xordi_operand): New predicate.
3509
b31ddbdb
KT
35102013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3511
3512 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
3513 Clean up alternatives.
3514
8f90b7d4
AM
35152013-06-07 Alan Modra <amodra@gmail.com>
3516
3517 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
3518 va_list_gpr_size.
3519
961ce119
AM
35202013-06-07 Alan Modra <amodra@gmail.com>
3521
3522 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
3523
33e49835
KT
35242013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3525
3526 * config/arm/constraints.md (Df): New constraint.
3527 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
3528 Correct length attribute for last two alternatives.
3529
acd17ae6
AM
35302013-06-07 Alan Modra <amodra@gmail.com>
3531
3532 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3533 override user -mfp-in-toc.
3534 (offsettable_ok_by_alignment): Consider just the current access
3535 rather than the whole object, unless BLKmode. Handle
3536 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
3537 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
3538 for -mcmodel=medium.
3539 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
3540 override user -mfp-in-toc or -msum-in-toc. Default to
3541 -mno-fp-in-toc for -mcmodel=medium.
3542
73310b0e
DD
35432013-06-06 DJ Delorie <dj@redhat.com>
3544
3545 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
3546 TARGET_VALID_POINTER_MODE.
3547
0bd62dca
MM
35482013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
3549 Pat Haugen <pthaugen@us.ibm.com>
3550 Peter Bergner <bergner@vnet.ibm.com>
3551
3552 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
3553 Document new power8 builtins.
3554
3555 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
3556 condition code register, to allow 128-bit logical operations to be
3557 done in the VSX or GPR registers.
3558 (nor<mode>3): Use the canonical form for nor.
3559 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
3560 vclz*, and vpopcnt* vector instructions.
3561 (nand<mode>3): Likewise.
3562 (orc<mode>3): Likewise.
3563 (clz<mode>2): LIkewise.
3564 (popcount<mode>2): Likewise.
3565
3566 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
3567 that only the GPRs are recognized.
3568
3569 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
3570 support for new power8 builtins.
3571
3572 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
3573 builtin functions.
3574 (xscvdpspn): Likewise.
3575 (vclz): Likewise.
3576 (vclzb): Likewise.
3577 (vclzh): Likewise.
3578 (vclzw): Likewise.
3579 (vclzd): Likewise.
3580 (vpopcnt): Likewise.
3581 (vpopcntb): Likewise.
3582 (vpopcnth): Likewise.
3583 (vpopcntw): Likewise.
3584 (vpopcntd): Likewise.
3585 (vgbbd): Likewise.
3586 (vmrgew): Likewise.
3587 (vmrgow): Likewise.
3588 (eqv): Likewise.
3589 (eqv_v16qi3): Likewise.
3590 (eqv_v8hi3): Likewise.
3591 (eqv_v4si3): Likewise.
3592 (eqv_v2di3): Likewise.
3593 (eqv_v4sf3): Likewise.
3594 (eqv_v2df3): Likewise.
3595 (nand): Likewise.
3596 (nand_v16qi3): Likewise.
3597 (nand_v8hi3): Likewise.
3598 (nand_v4si3): Likewise.
3599 (nand_v2di3): Likewise.
3600 (nand_v4sf3): Likewise.
3601 (nand_v2df3): Likewise.
3602 (orc): Likewise.
3603 (orc_v16qi3): Likewise.
3604 (orc_v8hi3): Likewise.
3605 (orc_v4si3): Likewise.
3606 (orc_v2di3): Likewise.
3607 (orc_v4sf3): Likewise.
3608 (orc_v2df3): Likewise.
3609
3610 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
3611 allow power8 quad mode in 64-bit.
3612 (rs6000_builtin_vectorized_function): Add support to vectorize
3613 ISA 2.07 count leading zeros, population count builtins.
3614 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
3615 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
3616 (builtin_function_type): Add vgbbd builtin function which takes an
3617 unsigned argument.
3618 (altivec_expand_vec_perm_const): Add support for new power8 merge
3619 instructions.
3620
3621 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
3622 that does not include TImdoe for use with 32-bit.
3623 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
3624 instructions.
3625 (UNSPEC_VSX_CVDPSPN): Likewise.
3626 (vsx_xscvdpspn): Likewise.
3627 (vsx_xscvspdpn): Likewise.
3628 (vsx_xscvdpspn_scalar): Likewise.
3629 (vsx_xscvspdpn_directmove): Likewise.
3630 (vsx_and<mode>3): Split logical operations into 32-bit and
3631 64-bit. Add support to do logical operations on TImode as well as
3632 VSX vector types. Allow logical operations to be done in either
3633 VSX registers or in general purpose registers in 64-bit mode. Add
3634 splitters if GPRs were used. For AND, add clobber of CCmode to
3635 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
3636 encoding.
3637 (vsx_and<mode>3_32bit): Likewise.
3638 (vsx_and<mode>3_64bit): Likewise.
3639 (vsx_ior<mode>3): Likewise.
3640 (vsx_ior<mode>3_32bit): Likewise.
3641 (vsx_ior<mode>3_64bit): Likewise.
3642 (vsx_xor<mode>3): Likewise.
3643 (vsx_xor<mode>3_32bit): Likewise.
3644 (vsx_xor<mode>3_64bit): Likewise.
3645 (vsx_one_cmpl<mode>2): Likewise.
3646 (vsx_one_cmpl<mode>2_32bit): Likewise.
3647 (vsx_one_cmpl<mode>2_64bit): Likewise.
3648 (vsx_nor<mode>3): Likewise.
3649 (vsx_nor<mode>3_32bit): Likewise.
3650 (vsx_nor<mode>3_64bit): Likewise.
3651 (vsx_andc<mode>3): Likewise.
3652 (vsx_andc<mode>3_32bit): Likewise.
3653 (vsx_andc<mode>3_64bit): Likewise.
3654 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
3655 and xxlorc instructions.
3656 (vsx_eqv<mode>3_64bit): Likewise.
3657 (vsx_nand<mode>3_32bit): Likewise.
3658 (vsx_nand<mode>3_64bit): Likewise.
3659 (vsx_orc<mode>3_32bit): Likewise.
3660 (vsx_orc<mode>3_64bit): Likewise.
3661
3662 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
3663
3664 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
3665 instruction.
3666 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
3667 (p8_vmrgow): Likewise.
3668 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
3669 GPRs to be split under VSX.
3670 (p8v_clz<mode>2): Add power8 count leading zero support.
3671 (p8v_popcount<mode>2): Add power8 population count support.
3672 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
3673 support.
3674
3675 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
3676 instruction.
3677
3678 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
3679 builtin functions.
3680 (vec_nand): Likewise.
3681 (vec_vclz): Likewise.
3682 (vec_vclzb): Likewise.
3683 (vec_vclzd): Likewise.
3684 (vec_vclzh): Likewise.
3685 (vec_vclzw): Likewise.
3686 (vec_vgbbd): Likewise.
3687 (vec_vmrgew): Likewise.
3688 (vec_vmrgow): Likewise.
3689 (vec_vpopcnt): Likewise.
3690 (vec_vpopcntb): Likewise.
3691 (vec_vpopcntd): Likewise.
3692 (vec_vpopcnth): Likewise.
3693 (vec_vpopcntw): Likewise.
3694
37684c46
VM
36952013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3696
3697 PR rtl-optimization/57468
3698 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
3699 spilled pseudos.
3700
d89ae27c
VM
37012013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3702
3703 PR rtl-optimization/57459
3704 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
3705 type when setting live regs.
3706
3597e113
VM
37072013-06-06 Vladimir Makarov <vmakarov@redhat.com>
3708
3709 * config/s390/s390.opt (mlra): New option.
3710 * config/s390/s390.c (s390_decompose_address): Check displacement
3711 for all registers for LRA.
3712 (s390_secondary_reload): Don't used secondary reloads for LRA.
3713 (s390_lra_p): New function.
3714 (TARGET_LRA_P): Define.
3715 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
3716 of attribute cpu_facility to zarch for the last alternative.
3717 (*cmpmem_short): Ditto.
3718
01037aeb
EB
37192013-06-06 Eric Botcazou <ebotcazou@adacore.com>
3720
3721 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
3722 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
3723 (arm_expand_prologue): Likewise.
3724
3371a64f
TJ
37252013-06-06 Teresa Johnson <tejohnson@google.com>
3726
3727 PR c++/53743
3728 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
3729 as this is now done by redirect_edge_and_branch_force.
3730 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
3731 barriers, and fix interaction with splitting.
3732 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
3733 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
3734 reflect changes made in the routine.
3735 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
3736 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
3737 since this is called in cfglayout mode, and replace partition fixup
3738 with assert as that is now done by force_nonfallthru_and_redirect.
3739 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
3740 already be marked with region crossing note.
3741 (insert_section_boundary_note): Make non-static, gate on flag
3742 has_bb_partition, rewrite to also check for multiple partitions.
3743 (rest_of_handle_reorder_blocks): Remove call to
3744 insert_section_boundary_note, now done later during free_cfg.
3745 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
3746 * bb-reorder.h (insert_section_boundary_note): Declare.
3747 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
3748 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
3749 invoke insert_section_boundary_note.
3750 (try_redirect_by_replacing_jump): Remove unnecessary
3751 check for region crossing note.
3752 (fixup_partition_crossing): New function.
3753 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
3754 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
3755 in non-cfglayout mode.
3756 (force_nonfallthru_and_redirect): Fixup partition boundaries,
3757 remove old code that tried to do this. Emit barrier correctly
3758 when we are in cfglayout mode.
3759 (last_bb_in_partition): New function.
3760 (rtl_split_edge): Correctly fixup partition boundaries.
3761 (commit_one_edge_insertion): Remove old code that tried to
3762 fixup region crossing edge since this is now handled in
3763 split_block, and set up insertion point correctly since
3764 block may now end in a jump.
3765 (verify_hot_cold_block_grouping): Guard against checking when not in
3766 linearized RTL mode.
3767 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
3768 notes.
3769 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
3770 rtl_verify_flow_info, so not called in cfglayout mode.
3771 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
3772 (fixup_reorder_chain): Remove old code that attempted to fixup region
3773 crossing note as this is now handled in force_nonfallthru_and_redirect.
3774 (duplicate_insn_chain): Don't duplicate switch section notes.
3775 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
3776 note.
3777 * basic-block.h (emit_barrier_after_bb): Declare.
3778
66071e10
KT
37792013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3780
3781 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
3782 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
3783 arm_usatsihi): Adjust alternatives for arm_restrict_it.
3784
0e26bf3d
KT
37852013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3786
3787 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
3788 where appropriate.
3789 * config/arm/ldmstm.md: Regenerate.
3790
12b4e7ef
KT
37912013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3792
3793 * config/arm/sync.md (atomic_loaddi_1):
3794 Disable predication for arm_restrict_it.
3795 (arm_load_exclusive<mode>): Likewise.
3796 (arm_load_exclusivesi): Likewise.
3797 (arm_load_exclusivedi): Likewise.
3798 (arm_load_acquire_exclusive<mode>): Likewise.
3799 (arm_load_acquire_exclusivesi): Likewise.
3800 (arm_load_acquire_exclusivedi): Likewise.
3801 (arm_store_exclusive<mode>): Likewise.
3802 (arm_store_exclusive<mode>): Likewise.
3803 (arm_store_release_exclusivedi): Likewise.
3804 (arm_store_release_exclusive<mode>): Likewise.
3805
15d16c8a
RB
38062013-06-06 Richard Biener <rguenther@suse.de>
3807
3808 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
3809 after LTO_null.
3810 (lto_tag_is_tree_code_p): Adjust.
3811 (lto_tag_is_gimple_code_p): Likewise.
3812 (lto_gimple_code_to_tag): Likewise.
3813 (lto_tag_to_gimple_code): Likewise.
3814 (lto_tree_code_to_tag): Likewise.
3815 (lto_tag_to_tree_code): Likewise.
3816 * data-streamer.h (streamer_write_hwi_in_range): Use
3817 uhwi streaming to stream the normalized range.
3818 (streamer_read_hwi_in_range): Likewise.
3819
17a7fc37
KT
38202013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3821
3822 * config/arm/arm.md (enabled_for_depr_it): New attribute.
3823 (predicable_short_it): Likewise.
3824 (predicated): Likewise.
3825 (enabled): Handle above.
3826 (define_cond_exec): Set predicated attribute to yes.
3827
b57ca59b
MS
38282013-06-05 Mike Stump <mikestump@comcast.net>
3829
3830 * gdbinit.in (__FUNCTION__): Add.
3831
c1e183a9
UB
38322013-06-05 Uros Bizjak <ubizjak@gmail.com>
3833
3834 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
3835 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
3836
0378bddb
JH
38372013-06-05 Jan Hubicka <jh@suse.cz>
3838
3839 * varasm.c (mark_decl_referenced): Revert the removal until targets
3840 are fixed.
3841
8f8a2057
DE
38422013-06-05 David Edelsohn <dje.gcc@gmail.com>
3843
3844 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
3845 instead of mark_decl_referenced.
3846
edb983b2
JH
38472013-06-05 Jan Hubicka <jh@suse.cz>
3848
3849 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
3850 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
3851 and symtab_used_from_object_file_p.
3852 (cgraph_make_node_local_1): Clear forced_by_abi.
3853 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
3854 * cgraph.h (symtab_node_base): Add forced_by_abi.
3855 (decide_is_variable_needed): Remove.
3856 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
3857 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
3858 (decide_is_symbol_needed): ... this one; handle symbols in general;
3859 always analyze virtuals; honnor forced_by_abi.
3860 (cgraph_finalize_function): Update.
3861 (varpool_finalize_decl): Update.
3862 (symbol_defined_and_needed): Remove.
3863 (analyze_functions): Update.
3864 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
3865 output_refs, input_overwrite_node): Handle forced_by_abi.
3866 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
3867 (address_taken_from_non_vtable_p): ... this one.
3868 (comdat_can_be_unshared_p_1): New function.
3869 (cgraph_comdat_can_be_unshared_p): Rename to ...
3870 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
3871 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
3872 (function_and_variable_visibility): Clear forced_by_abi as needed.
3873 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
3874 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
3875 * symtab.c (dump_symtab_base): Dump forced_by_abi.
3876 * varpool.c (decide_is_variable_needed): Remove.
3877
9912dbe5
KT
38782013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3879
3880 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
3881 (arm_option_override): Override arm_restrict_it where appropriate.
3882 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
3883 * config/arm/arm.opt (mrestrict-it): New command-line option.
3884 * doc/invoke.texi: Document -mrestrict-it.
3885
34c136b6
DM
38862013-06-05 David Malcolm <dmalcolm@redhat.com>
3887
3888 * tsan.c (tsan_atomic_table): Make const.
3889
a367df53
RB
38902013-06-05 Richard Biener <rguenther@suse.de>
3891
3892 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
3893 index associated with the tree we are supposed to replace.
3894 * tree-streamer-out.c (pack_ts_base_value_fields): Output
3895 TREE_ASM_WRITTEN as zero for everything but SSA names.
3896
70d51a19
DM
38972013-06-05 David Malcolm <dmalcolm@redhat.com>
3898
3899 * tree-ssa-structalias.c (call_stmt_vars): Make static.
3900
b9bd2075
JH
39012013-06-04 Jan Hubicka <jh@suse.cz>
3902
3903 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
3904 (input_node, input_varpool_node): Handle correctly external same
3905 body aliases.
3906 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
3907 nodes at ltrans stage.
3908
aaae719d
JH
39092013-06-04 Jan Hubicka <jh@suse.cz>
3910
3911 * ipa-inline.c (update_caller_keys): Fix availability test.
3912 (update_callee_keys): Likewise.
3913 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
3914 to follow ELF standard.
3915
107eea2c
JU
39162013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
3917
3918 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
3919 (mips64r5900el-*-elf*): New configurations.
3920 * config/mips/mips-cpus.def (r5900): New processor.
3921 * config/mips/mips-tables.opt: Regenerate.
3922 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
3923 (mips_issue_rate): Handle PROCESSOR_R5900.
3924 (mips_reorg_process_insns): Force reorder mode for the R5900.
3925 * config/mips/mips.h (TARGET_MIPS5900): Define.
3926 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
3927 TARGET_MIPS5900.
3928 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
3929 TARGET_MIPS5900.
3930 * config/mips/mips.md (processor): Add r5900.
3931 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
3932
b7342d25
IB
39332013-06-04 Ian Bolton <ian.bolton@arm.com>
3934
3935 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
3936 into function to generate MOVI instruction.
c1e183a9 3937 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
3938 (aarch64_preferred_simd_mode): Turn into wrapper.
3939 (aarch64_output_scalar_simd_mov_immediate): New function.
3940 * config/aarch64/aarch64-protos.h: Add prototype for above.
3941
81c2dfb9
IB
39422013-06-04 Ian Bolton <ian.bolton@arm.com>
3943
3944 * config/aarch64/aarch64.c (simd_immediate_info): Remove
3945 element_char member.
3946 (sizetochar): Return signed char.
3947 (aarch64_simd_valid_immediate): Remove elchar and other
3948 unnecessary variables.
3949 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
3950 Calculate element_char as required.
3951 * config/aarch64/aarch64-protos.h: Update and move prototype
3952 for aarch64_output_simd_mov_immediate.
3953 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
3954 Update arguments.
3955
48063b9d
IB
39562013-06-04 Ian Bolton <ian.bolton@arm.com>
3957
3958 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
3959 information completed by aarch64_simd_valid_immediate.
3960 (aarch64_legitimate_constant_p): Update arguments.
3961 (aarch64_simd_valid_immediate): Work with struct rather than many
3962 pointers.
3963 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
3964 (aarch64_simd_make_constant): Update arguments.
3965 (aarch64_output_simd_mov_immediate): Work with struct rather than
3966 many pointers. Output immediate directly rather than as operand.
3967 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3968 Update prototype.
3969 * config/aarch64/constraints.md (Dn): Update arguments.
3970
3ea63f60
IB
39712013-06-04 Ian Bolton <ian.bolton@arm.com>
3972
3973 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
3974 longer static.
3975 (aarch64_simd_immediate_valid_for_move): Remove.
3976 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
3977 (aarch64_simd_make_constant): Update call.
3978 (aarch64_output_simd_mov_immediate): Update call.
3979 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
3980 Add prototype.
3981 * config/aarch64/constraints.md (Dn): Update call.
3982
d8edd899
IB
39832013-06-04 Ian Bolton <ian.bolton@arm.com>
3984
3985 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
3986 return type to bool for prototype.
3987 (aarch64_legitimate_constant_p): Check for true instead of not -1.
3988 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
3989 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
3990
44b20bb8
CM
39912013-06-04 Catherine Moore <clm@codesourcery.com>
3992
3993 * config/mips/mips.opt (meva): New.
c1e183a9 3994 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
3995 (ASM_SPEC): Handle -meva.
3996 * doc/invoke.texi (meva): Document.
3997
52befbd8
AM
39982013-06-04 Alan Modra <amodra@gmail.com>
3999
4000 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
4001 constant output.
4002
aadaf24e
KT
40032013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4004
4005 * rtl.def: Add extra fourth optional field to define_cond_exec.
4006 * gensupport.c (process_one_cond_exec): Process attributes from
4007 define_cond_exec.
4008 * doc/md.texi: Document fourth field in define_cond_exec.
4009
0cd9e9ee
EB
40102013-06-04 Eric Botcazou <ebotcazou@adacore.com>
4011
4012 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
4013 out the processing order as in store_bit_field_1.
4014
cb0f665d
JH
40152013-06-04 Jan Hubicka <jh@suse.cz>
4016
4017 PR middle-end/57500
4018 * cgraphunit.c (cgraph_process_same_body_aliases): Create
4019 non-VAR_DECL node if it does not exist yet.
4020
53984b9b
RS
40212013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
4022
4023 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
4024 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
4025 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
4026 target_cpu_default setting.
4027
5d318fd4
TJ
40282013-06-03 Teresa Johnson <tejohnson@google.com>
4029
4030 * dumpfile.c (opt_info_switch_p): Change -fopt-info
4031 default to -fopt-info=optimized instead of all.
4032 * doc/invoke.texi: Ditto.
4033 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
4034 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
4035 (execute_vect_slp): Emit BB vectorization success under
4036 MSG_OPTIMIZED_LOCATIONS.
4037 * tree-vect-slp.c (vect_slp_transform_bb): Change
4038 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
4039 * tree-vect-loop.c (vect_transform_loop): Ditto.
4040
ec3af349
JM
40412013-06-03 Jason Merrill <jason@redhat.com>
4042
4043 PR c++/57415
4044 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4045 Use TARGET_EXPR for C++.
4046
1baf9159
JJ
40472013-06-03 Jakub Jelinek <jakub@redhat.com>
4048
4049 PR rtl-optimization/57268
0cd9e9ee 4050 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
4051 if DEBUG_INSN_P (insn).
4052
4053 Reapply
4054 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
4055
4056 PR rtl-optimization/57268
4057 * sched-deps.c (sched_analyze_2): Flush dependence lists if
4058 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
4059
0f1d3965
YR
40602013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
4061
4062 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
4063 (ix86_avoid_lea_for_addr): Likewise.
4064 (exact_dependency_1): Likewise.
4065 (ix86_adjust_cost): Likewise.
4066 (swap_top_of_ready_list): Fix formatting and !reload_completed check
4067 removed.
4068 (do_reorder_for_imul): Fix typo, formatting and
4069 !reload_completed check removed.
4070 (ix86_sched_reorder): Fix typo and formatting.
4071 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
4072 list.
4073
3bc30db4
SN
40742013-06-03 Sofiane Naci <sofiane.naci@arm.com>
4075
4076 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
4077
19cc6fac
EB
40782013-06-03 Eric Botcazou <ebotcazou@adacore.com>
4079
4080 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
4081 <STRING_CST>: Likewise.
4082 <VECTOR_CST>: Likewise.
4083
c68a6e08
JW
40842013-06-01 Janus Weil <janus@gcc.gnu.org>
4085 Mikael Morin <mikael@gcc.gnu.org>
4086
4087 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
4088 * config.in: Regenerated.
4089 * configure: Regenerated.
4090
38e55e5c
JH
40912013-06-01 Jan Hubicka <jh@suse.cz>
4092
4093 PR middle-end/57366
4094 * cgraphunit.c (compile): When weakref is not supported,
4095 set up transparent aliases before final output pass.
4096 * varasm.c (assemble_alias): Do not try to do it here.
4097
eb51d2ff
JH
40982013-06-01 Jan Hubicka <jh@suse.cz>
4099
4100 PR middle-end/57467
4101 * passes.c (for_per_function): Skip unanalyzed functions.
4102
40a7fe1e
JH
41032013-06-01 Jan Hubicka <jh@suse.cz>
4104
4105 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
4106 (lto_symtab_merge_symbols_1): ... this one.
4107 (lto_symtab_merge_cgraph_nodes): Rename to ...
4108 (lto_symtab_merge_symbols): ... this one; simplify.
4109 * cgraph.c (same_body_aliases_done): Rename to ...
4110 (cpp_implicit_aliases_done): ... this one.
4111 (cgraph_create_function_alias): Update.
4112 (cgraph_same_body_alias): Update.
c1e183a9 4113 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 4114 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 4115 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
4116 (cgraph_node): Remove same_body_alias.
4117 (varpool_node): Remove alias_of and extra_name_alias.
4118 (same_body_aliases_done): Rename to ..
4119 (cpp_implicit_aliases_done): ... this one.
4120 (symtab_alias_ultimate_target): Add default parameter.
4121 (symtab_resolve_alias): New function.
4122 (fixup_same_cpp_alias_visibility): Declare.
4123 (cgraph_function_node): Add default parameter.
4124 (cgraph_node_asm_name): Likewise.
4125 (cgraph_function_or_thunk_node): Add default parameter; do
4126 not ICE when it is NULL.
4127 (varpool_variable_node): Likewise.
4128 * tree-emutls.c (create_emultls_var): Update.
4129 (ipa_lower_emutls): Update.
4130 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
4131 (cgraph_reset_node): Reset alias info.
4132 (cgraph_finalize_function): Update.
4133 (fixup_same_cpp_alias_visibility): Move to symtab.c.
4134 (analyze_function): Simplify.
4135 (cgraph_process_same_body_aliases): Simplify.
4136 (analyze_functions): Fixup same body aliases.
4137 (handle_alias_pairs): Simplify.
4138 (assemble_thunk): Update.
4139 (assemble_thunks_and_aliases): Update.
4140 (output_weakrefs): Rewrite.
4141 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
4142 (lto_output_varpool_node): Likewise.
4143 (compute_ltrans_boundary): Remve assert.
4144 (get_alias_symbol): New functoin.
4145 (input_node): Rewrite alias handling.
4146 (input_varpool_node): Likewise.
4147 * ipa-pure-const.c (propagate_pure_const): Fix formating.
4148 * ipa.c (process_references): Handle weakrefs correctly.
4149 (symtab_remove_unreachable_nodes): Likewise.
4150 * trans-mem.c (get_cg_data): Update.
4151 (ipa_tm_create_version_alias): Update.
4152 (ipa_tm_execute): Update.
4153 * symtab.c (dump_symtab_base): Dump aliases.
4154 (verify_symtab_base): Verify aliases.
4155 (symtab_node_availability): New function.
4156 (symtab_alias_ultimate_target): Simplify.
4157 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
4158 handle all the fixup cases.
4159 (symtab_resolve_alias): New function.
4160 * passes.c (ipa_write_summaries): Handle weakrefs.
4161 * varpool.c (varpool_analyze_node): Simplify.
4162 (assemble_aliases): Update.
4163 (varpool_create_variable_alias): Simplify.
4164 (varpool_extra_name_alias): Simplify.
4165 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
4166 (lto_symtab_merge_symbols): ... this one.
4167
21759881
DT
41682013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
4169
4170 Revert
4171 PR rtl-optimization/57268
4172 * sched-deps.c (sched_analyze_2): Flush dependence lists if
4173 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
4174
daf4e940
TB
41752013-06-01 Tobias Burnus <burnus@net-b.de>
4176
4177 Partially reverted:
4178 2013-05-31 Tobias Burnus <burnus@net-b.de>
4179
4180 PR middle-end/57073
4181 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
4182 further up.
4183
c359d8d0
DT
41842013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
4185
4186 PR rtl-optimization/57268
4187 * sched-deps.c (sched_analyze_2): Flush dependence lists if
4188 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
4189
4172215d
EB
41902013-05-31 Eric Botcazou <ebotcazou@adacore.com>
4191
4192 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
4193 unordered comparison operators when -fno-trapping-math is in effect
4194 on the e500.
4195 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
4196 and implement unordered comparison operators properly on the e500.
4197
a8c50132
EB
41982013-05-31 Eric Botcazou <ebotcazou@adacore.com>
4199
4200 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
4201 for constant scalar integers.
4202 (simplify_relational_operation_1): Likewise.
4203
44626634
SB
42042013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
4205
4206 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
4207 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
4208 Fix comment.
4209
55805e54
YR
42102013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
4211 Igor Zamyatin <igor.zamyatin@intel.com>
4212
4213 Silvermont (SLM) architecture performance tuning.
4214 * config/i386/i386.h (enum ix86_tune_indices): Add
4215 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
4216 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
4217
4218 * config/i386/i386.c (initial_ix86_tune_features)
4219 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
4220 (ix86_lea_outperforms): Handle Silvermont tuning.
4221 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
4222 call.
4223 (ix86_use_lea_for_mov): Likewise.
4224 (ix86_avoid_lea_for_addr): Likewise.
4225 (ix86_lea_for_add_ok): Likewise.
4226 (exact_dependency_1): New function.
4227 (exact_store_load_dependency): Likewise.
4228 (ix86_adjust_cost): Handle Silvermont tuning.
4229 (do_reoder_for_imul): Likewise.
4230 (swap_top_of_ready_list): New function.
4231 (ix86_sched_reorder): Changed to handle Silvermont tuning.
4232
4233 * config/i386/i386.md (peepholes that split memory operand in fp
4234 converts): New.
4235
e19c9de2
MS
42362013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
4237
4238 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4239 Remove un-necessary braces.
4240
38e6c9a6
MS
42412013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
4242
4243 * config/aarch64/aarch64.c (aarch64_classify_symbol):
4244 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
4245
e3530904
TB
42462013-05-31 Tobias Burnus <burnus@net-b.de>
4247
4248 PR middle-end/57073
c1e183a9 4249 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 4250
b6af05a9
KT
42512013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4252
4253 PR target/56315
4254 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
4255 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
4256 * config/arm/neon.md (iordi3_neon): Remove.
4257 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
4258 * config/arm/predicates.md (imm_for_neon_logic_operand):
4259 Move to earlier in the file.
4260 (neon_logic_op2): Likewise.
4261 (arm_iordi_operand_neon): New predicate.
4262
f800c166
RB
42632013-05-31 Richard Biener <rguenther@suse.de>
4264
4265 PR tree-optimization/57478
4266 PR tree-optimization/57453
4267 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
4268 are life as well.
4269
e571fa59
KP
42702013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4271
4272 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
4273 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
4274
0fa6e0ef
TB
42752013-05-30 Tobias Burnus <burnus@net-b.de>
4276 Thomas Koenig <tkoenig@gcc.gnu.org>
4277
4278 PR middle-end/57073
4279 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
4280 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
4281
4688ddf5
SB
42822013-05-30 Steven Bosscher <steven@gcc.gnu.org>
4283
0fa6e0ef 4284 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 4285
3b9ceb4b
VM
42862013-05-30 Vladimir Makarov <vmakarov@redhat.com>
4287
4288 * target.def (register_usage_leveling_p): New hook.
4289 * targhooks.c (default_register_usage_leveling_p): New.
4290 * targhooks.h (default_register_usage_leveling_p): New prototype.
4291 * lra-assigns.c (register_usage_leveling_p): Use the hook.
4292 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
4293 * doc/tm.texi: Update.
4294 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
4295
65f9e789
IB
42962013-05-30 Ian Bolton <ian.bolton@arm.com>
4297
4298 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
4299 (*insv_reg<mode>): New define_insn.
4300
ca035367
JR
43012013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
4302
4303 PR rtl-optimization/57439
4304 * postreload.c (move2add_valid_value_p): Check that we have
4305 a zero subreg_regno_offset when accessing the register in
4306 the requested mode.
4307
0b871ccf
YR
43082013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
4309 Igor Zamyatin <igor.zamyatin@intel.com>
4310
4311 Silvermont (SLM) architecture pipeline model, tuning and
4312 insn selection.
4313 * config.gcc: Add slm config options and target.
4314
4315 * config/i386/slm.md: New.
4316
4317 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
4318
4319 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
4320 PROCESSOR_SLM.
4321 (ix86_target_macros_internal): Likewise.
4322
4323 * gcc/config/i386/i386.c (slm_cost): New cost.
4324 (m_SLM): New macro flag.
4325 (initial_ix86_tune_features): Set m_SLM.
4326 (x86_accumulate_outgoing_args): Likewise.
4327 (x86_arch_always_fancy_math_387): Likewise.
4328 (processor_target_table): Add slm cost.
4329 (cpu_names): Add slm cpu name.
4330 (x86_option_override_internal): Set SLM ISA.
4331 (ix86_issue_rate): New case PROCESSOR_SLM.
4332 (ia32_multipass_dfa_lookahead): Likewise.
4333 (fold_builtin_cpu): Add slm.
4334
4335 * config/i386/i386.h (TARGET_SLM): New target macro.
4336 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
4337 (processor_type): Add PROCESSOR_SLM.
4338
4339 * config/i386/i386.md (cpu): Add new value "slm".
4340 (slm.md): Include slm.md.
4341
24d5b097
XG
43422013-05-30 Bernd Schmidt <bernds@codesourcery.com>
4343 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4344
4345 * config/arm/arm-protos.h: Add and update function protos.
4346 * config/arm/arm.c (use_simple_return_p): New added.
4347 (thumb2_expand_return): Check simple_return flag.
4348 * config/arm/arm.md: Add simple_return and conditional simple_return.
4349 * config/arm/iterators.md: Add iterator for return and simple_return.
4350
c1cccc15
ZC
43512013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
4352
4353 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
4354 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
4355 (arm_emit_vfp_multi_reg_pop): Likewise.
4356 (thumb2_emit_ldrd_pop): Likewise.
4357 (arm_expand_epilogue): Add misc REG_CFA notes.
4358 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
4359
3a4f280b
LC
43602013-05-29 Lawrence Crowl <crowl@google.com>
4361
4362 * config/arm/t-arm: Update for below.
4363
4364 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
4365 Change type to hash_table. Update dependent calls and types.
4366
4367 * config/i386/t-cygming: Update for below.
4368
4369 * config/i386/t-interix: Update for below.
4370
4371 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
4372 Change type to hash_table. Update dependent calls and types.
4373 (i386_find_on_wrapper_list::wrappers): Likewise.
4374
4375 * config/ia64/t-ia64: Update for below.
4376
4377 * config/ia64/ia64.c (bundle_state_table):
4378 Change type to hash_table. Update dependent calls and types.
4379
4380 * config/mips/mips.c (mips_reorg_process_insns::htab):
4381 Change type to hash_table. Update dependent calls and types.
4382
4383 * config/sol2.c (solaris_comdat_htab):
4384 Change type to hash_table. Update dependent calls and types.
4385
4386 * config/t-sol2: Update for above.
4387
1388a0e3
TJ
43882013-05-29 Teresa Johnson <tejohnson@google.com>
4389
4390 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
4391 functions are not yet marked as defined.
4392
a5965b52
MM
43932013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
4394 Pat Haugen <pthaugen@us.ibm.com>
4395 Peter Bergner <bergner@vnet.ibm.com>
4396
4397 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
4398 instructions.
4399 (VEC_A): Likewise.
4400 (VEC_C): Likewise.
4401 (vrotl<mode>3): Likewise.
4402 (vashl<mode>3): Likewise.
4403 (vlshr<mode>3): Likewise.
4404 (vashr<mode>3): Likewise.
4405
4406 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
4407 support for power8 V2DI builtins.
4408
4409 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
4410 power8 V2DI builtins.
4411 (vupkhsw): Likewise.
4412 (vupklsw): Likewise.
4413 (vaddudm): Likewise.
4414 (vminsd): Likewise.
4415 (vmaxsd): Likewise.
4416 (vminud): Likewise.
4417 (vmaxud): Likewise.
4418 (vpkudum): Likewise.
4419 (vpksdss): Likewise.
4420 (vpkudus): Likewise.
4421 (vpksdus): Likewise.
4422 (vrld): Likewise.
4423 (vsld): Likewise.
4424 (vsrd): Likewise.
4425 (vsrad): Likewise.
4426 (vsubudm): Likewise.
4427 (vcmpequd): Likewise.
4428 (vcmpgtsd): Likewise.
4429 (vcmpgtud): Likewise.
4430 (vcmpequd_p): Likewise.
4431 (vcmpgtsd_p): Likewise.
4432 (vcmpgtud_p): Likewise.
4433 (vupkhsw): Likewise.
4434 (vupklsw): Likewise.
4435 (vaddudm): Likewise.
4436 (vmaxsd): Likewise.
4437 (vmaxud): Likewise.
4438 (vminsd): Likewise.
4439 (vminud): Likewise.
4440 (vpksdss): Likewise.
4441 (vpksdus): Likewise.
4442 (vpkudum): Likewise.
4443 (vpkudus): Likewise.
4444 (vrld): Likewise.
4445 (vsld): Likewise.
4446 (vsrad): Likewise.
4447 (vsrd): Likewise.
4448 (vsubudm): Likewise.
4449
4450 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
4451 support for power8 V2DI instructions.
4452
4453 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
4454 power8 V2DI instructions. Combine pack and unpack insns to use an
4455 iterator for each mode. Check whether a particular mode supports
4456 Altivec instructions instead of just checking TARGET_ALTIVEC.
4457 (UNSPEC_VPKUWUM): Likewise.
4458 (UNSPEC_VPKSHSS): Likewise.
4459 (UNSPEC_VPKSWSS): Likewise.
4460 (UNSPEC_VPKUHUS): Likewise.
4461 (UNSPEC_VPKSHUS): Likewise.
4462 (UNSPEC_VPKUWUS): Likewise.
4463 (UNSPEC_VPKSWUS): Likewise.
4464 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
4465 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
4466 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
4467 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
4468 (UNSPEC_VUPKHSB): Likewise.
4469 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
4470 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
4471 (UNSPEC_VUPKHSH): Likewise.
4472 (UNSPEC_VUPKLSB): Likewise.
4473 (UNSPEC_VUPKLSH): Likewise.
4474 (VI2): Likewise.
4475 (VI_char): Likewise.
4476 (VI_scalar): Likewise.
4477 (VI_unit): Likewise.
4478 (VP): Likewise.
4479 (VP_small): Likewise.
4480 (VP_small_lc): Likewise.
4481 (VU_char): Likewise.
4482 (add<mode>3): Likewise.
4483 (altivec_vaddcuw): Likewise.
4484 (altivec_vaddu<VI_char>s): Likewise.
4485 (altivec_vadds<VI_char>s): Likewise.
4486 (sub<mode>3): Likewise.
4487 (altivec_vsubcuw): Likewise.
4488 (altivec_vsubu<VI_char>s): Likewise.
4489 (altivec_vsubs<VI_char>s): Likewise.
4490 (altivec_vavgs<VI_char>): Likewise.
4491 (altivec_vcmpbfp): Likewise.
4492 (altivec_eq<mode>): Likewise.
4493 (altivec_gt<mode>): Likewise.
4494 (altivec_gtu<mode>): Likewise.
4495 (umax<mode>3): Likewise.
4496 (smax<mode>3): Likewise.
4497 (umin<mode>3): Likewise.
4498 (smin<mode>3): Likewise.
4499 (altivec_vpkuhum): Likewise.
4500 (altivec_vpkuwum): Likewise.
4501 (altivec_vpkshss): Likewise.
4502 (altivec_vpkswss): Likewise.
4503 (altivec_vpkuhus): Likewise.
4504 (altivec_vpkshus): Likewise.
4505 (altivec_vpkuwus): Likewise.
4506 (altivec_vpkswus): Likewise.
4507 (altivec_vpks<VI_char>ss): Likewise.
4508 (altivec_vpks<VI_char>us): Likewise.
4509 (altivec_vpku<VI_char>us): Likewise.
4510 (altivec_vpku<VI_char>um): Likewise.
4511 (altivec_vrl<VI_char>): Likewise.
4512 (altivec_vsl<VI_char>): Likewise.
4513 (altivec_vsr<VI_char>): Likewise.
4514 (altivec_vsra<VI_char>): Likewise.
4515 (altivec_vsldoi_<mode>): Likewise.
4516 (altivec_vupkhsb): Likewise.
4517 (altivec_vupkhs<VU_char>): Likewise.
4518 (altivec_vupkls<VU_char>): Likewise.
4519 (altivec_vupkhsh): Likewise.
4520 (altivec_vupklsb): Likewise.
4521 (altivec_vupklsh): Likewise.
4522 (altivec_vcmpequ<VI_char>_p): Likewise.
4523 (altivec_vcmpgts<VI_char>_p): Likewise.
4524 (altivec_vcmpgtu<VI_char>_p): Likewise.
4525 (abs<mode>2): Likewise.
4526 (vec_unpacks_hi_v16qi): Likewise.
4527 (vec_unpacks_hi_v8hi): Likewise.
4528 (vec_unpacks_lo_v16qi): Likewise.
4529 (vec_unpacks_hi_<VP_small_lc>): Likewise.
4530 (vec_unpacks_lo_v8hi): Likewise.
4531 (vec_unpacks_lo_<VP_small_lc>): Likewise.
4532 (vec_pack_trunc_v8h): Likewise.
4533 (vec_pack_trunc_v4si): Likewise.
4534 (vec_pack_trunc_<mode>): Likewise.
4535
4536 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
4537 V2DI builtins.
4538 (vec_vmaxsd): Likewise.
4539 (vec_vmaxud): Likewise.
4540 (vec_vminsd): Likewise.
4541 (vec_vminud): Likewise.
4542 (vec_vpksdss): Likewise.
4543 (vec_vpksdus): Likewise.
4544 (vec_vpkudum): Likewise.
4545 (vec_vpkudus): Likewise.
4546 (vec_vrld): Likewise.
4547 (vec_vsld): Likewise.
4548 (vec_vsrad): Likewise.
4549 (vec_vsrd): Likewise.
4550 (vec_vsubudm): Likewise.
4551 (vec_vupkhsw): Likewise.
4552 (vec_vupklsw): Likewise.
4553
e70670cf
JH
45542013-05-29 Jan Hubicka <jh@suse.cz>
4555
4556 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
4557 flags; reorder rest of fields in more consistent way.
4558 (varpool_node): Remove analyzed, finalized and alias.
4559 (cgraph_ndoe): Likewise.
4560 (symtab_alias_ultimate_target): New function.
4561 (cgraph_function_node): Move offline.
4562 (cgraph_reset_node): Declare.
4563 (cgraph_comdat_can_be_unshared_p): Remove.
4564 (varpool_remove_initializer): Declare.
4565 (varpool_first_defined_variable, varpool_next_defined_variable
4566 cgraph_first_defined_function, cgraph_next_defined_function): Update.
4567 (cgraph_function_with_gimple_body_p): Update.
4568 (varpool_all_refs_explicit_p): Update.
4569 (symtab_alias_target): New function.
4570 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
4571 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
4572 (cgraph_function_or_thunk_node): Simplify using
4573 symtab_alias_ultimate_target.
e70670cf
JH
4574 (varpool_variable_node): Likewise.
4575 * cgraph.c (cgraph_create_function_alias): Update.
4576 (cgraph_add_thunk): Update.
4577 (cgraph_remove_node): Update.
4578 (dump_cgraph_node): Do not dump removed flags.
4579 (cgraph_function_body_availability): Update.
4580 (cgraph_propagate_frequency): Update.
4581 (verify_cgraph_node): Check sanity of local flag.
4582 (cgraph_function_node): Move here from cgraph.h; revamp for
4583 cgraph_function_or_thunk_node.
4584 * lto-symtab.c (lto_varpool_replace_node): Update.
4585 (lto_symtab_resolve_can_prevail_p): Update.
4586 (lto_symtab_merge_cgraph_nodes): Update.
4587 * ipa-cp.c (determine_versionability, initialize_node_lattices,
4588 propagate_constants_accross_call, devirtualization_time_bonus,
4589 ipcp_propagate_stage): Update.
4590 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
4591 * ipa-inline-transform.c (clone_inlined_nodes,
4592 preserve_function_body_p): Update.
e70670cf
JH
4593 * ipa-reference.c (propagate): Update.
4594 (write_node_summary_p): Update.
4595 * toplev.c (wrapup_global_declaration_2): Update.
4596 * cgraphunit.c (cgraph_analyze_function): Rename to ...
4597 (analyze_function) ... this one.
4598 (cgraph_process_new_functions): Update.
4599 (cgraph_reset_node): Export.
4600 (cgraph_finalize_function): Update.
4601 (cgraph_add_new_function): Update.
4602 (process_function_and_variable_attributes): Update.
4603 (varpool_finalize_decl): Update.
4604 (symbol_finalized): Remove.
4605 (symbol_finalized_and_needed): Rename to ...
4606 (symbol_defined_and_needed): ... update.
4607 (cgraph_analyze_functions): Update.
4608 (handle_alias_pairs): Update.
4609 (mark_functions_to_output): Update.
4610 (assemble_thunk): Update.
4611 (output_in_order): Update.
4612 (output_weakrefs): Update.
4613 (finalize_compilation_unit): Update.
4614 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
4615 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
4616 input_node, input_varpool_node): Update.
4617 * dbxout.c (dbxout_expand_expr): Update.
4618 * cgraphclones.c (cgraph_clone_node): Update.
4619 (cgraph_copy_node_for_versioning): Update.
4620 (cgraph_materialize_clone): Update.
4621 (cgraph_materialize_all_clones): Update.
4622 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
4623 propagate_pure_const, propagate_nothrow): Update.
4624 * lto-streamer-out.c (lto_output, write_symbol): Update.
4625 * ipa-utils.c (ipa_reverse_postorder): Update.
4626 * ipa-inline.c (can_inline_edge_p): Update.
4627 (update_caller_keys, ipa_inline): Update.
4628 * dwarf2out.c (reference_to_unused,
4629 premark_types_used_by_global_vars_helper): Update.
4630 * tree-eh.c (tree_could_trap_p): Update.
4631 * ipa-split.c (consider_split, execute_split_functions): Update.
4632 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
4633 has_addr_references_p): Update; move ahead in file for better
4634 readability.
e70670cf
JH
4635 (process_references): Simplify.
4636 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
4637 bodies are removed.
4638 (cgraph_comdat_can_be_unshared_p): Make static.
4639 (cgraph_externally_visible_p): Update.
4640 (varpool_externally_visible_p): Update.
4641 (function_and_variable_visibility): Update.
4642 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
4643 ipa_tm_mark_force_output_node): Update.
4644 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
4645 estimate_edge_devirt_benefit, inline_generate_summary,
4646 inline_write_summary): Update.
4647 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
4648 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
4649 (ipa_print_node_params, ipa_prop_read_section,
4650 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
4651 * varasm.c (mark_decl_referenced): Update.
4652 (assemble_alias, dump_tm_clone_pairs): Update.
4653 * tree-inline.c (copy_bb): Update.
4654 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
4655 Update.
4656 * symtab.c (dump_symtab_base): Print new flags.
4657 (verify_symtab_base): Verify new flags.
4658 (symtab_alias_ultimate_target): New function.
4659 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
4660 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
4661 Update.
c1e183a9
UB
4662 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
4663 Update.
e70670cf
JH
4664 * i386.c (ix86_get_function_versions_dispatcher,
4665 ix86_generate_version_dispatcher_body): Update.
4666 (fold_builtin_cpu): Use varpool_add_new_variable.
4667 * varpool.c (varpool_remove_initializer): Break out from ...
4668 (varpool_remove_node): ... this one.
4669 (dump_varpool_node, varpool_node_for_asm,
4670 cgraph_variable_initializer_availability, varpool_analyze_node,
4671 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
4672 varpool_finalize_named_section_flags, varpool_create_variable_alias):
4673 Update.
e70670cf 4674
182802ad
JH
46752013-05-29 Jan Hubicka <jh@suse.cz>
4676
4677 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
4678
8190b609
ER
46792013-05-29 Easwaran Raman <eraman@google.com>
4680
4681 PR tree-optimization/57442
4682 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
4683 when control exits the main loop.
4684
69f5aa9b
SKS
46852013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
4686
4687 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
4688 and RX600.
c1e183a9 4689 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
4690 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
4691 * rx/t-rx: Add rx100 under multi library matches option for nofpu
4692 option.
4693
4b847da9
BS
46942013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4695
4696 PR tree-optimization/57441
4697 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
4698 Don't limit size of incr_vec to number of candidates.
4699
4fc43c39
SE
47002013-05-29 Steve Ellcey <sellcey@imgtec.com>
4701
4702 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
4703 and mips16 directories.
c1e183a9 4704 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
4705 (MULTILIB_DIRNAMES): Ditto.
4706 (MULTILIB_EXCEPTIONS): Add new exceptions.
4707 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
4708 (MULTILIB_DIRNAMES): Ditto.
4709 (MULTILIB_EXCEPTIONS): Add new exceptions.
4710
a5350ddc
CSS
47112012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4712 Marcus Shawcroft <marcus.shawcroft@arm.com>
4713
4714 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
4715 SYMBOL_TINY_ABSOLUTE.
4716 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
4717 SYMBOL_TINY_ABSOLUTE.
4718 (aarch64_expand_mov_immediate): Likewise.
4719 (aarch64_classify_symbol): Likewise.
4720 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
4721 Permit SYMBOL_TINY_ABSOLUTE.
4722 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
4723
17f4d4bf
CSS
47242013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
4725 Marcus Shawcroft <marcus.shawcroft@arm.com>
4726
4727 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
4728 Refactor if/switch. Replace gcc_assert with if.
4729
c0186656
GG
47302013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4731
4732 * config/i386/i386.c (initial_ix86_tune_features): Enable
4733 FP Reassociation for AMD bdver1 and bdver2.
4734
d20188f3
MJ
47352013-05-29 Martin Jambor <mjambor@suse.cz>
4736
4737 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
4738 and IMAGPART_EXPR do not occur within other handled_components.
4739
292cba13
RB
47402013-05-29 Richard Biener <rguenther@suse.de>
4741
4742 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
4743 access on whether the use is in the BB we currently try to
4744 vectorize.
4745 (vect_bb_vectorization_profitable_p): Pass the BB we currently
4746 vectorize to vect_bb_slp_scalar_cost.
4747
6eddf228
RB
47482013-05-29 Richard Biener <rguenther@suse.de>
4749
4750 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
4751 computing scalar cost offsetted by stmts that are kept live
4752 by scalar uses.
4753 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
4754 for computation of scalar cost.
4755
7df36117
SE
47562013-05-28 Steve Ellcey <sellcey@mips.com>
4757
4758 * config/mips/mips-cpus.def (mips32r2): Change processor type.
4759
36536d79
BI
47602013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
4761
4762 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
4763 array notation built-in reduction functions.
4764 * doc/passes.texi (Passes): Added documentation about changes done
4765 for Cilk Plus.
4766 * doc/invoke.texi (C Dialect Options): Added documentation about
4767 the -fcilkplus flag.
4768 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
4769 (BUILTINS_DEF): Depend on cilkplus.def.
4770 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
4771 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
4772 * cilkplus.def: New file.
4773
b49eefa5
JR
47742013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
4775
4776 PR rtl-optimization/57439
4777 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
4778
9daf6dbb
ER
47792013-05-28 Easwaran Raman <eraman@google.com>
4780
4781 PR tree-optimization/57337
4782 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
4783 (find_insert_point): Correctly identify the insertion point
4784 when two statements with the same UID is compared.
4785
fbd7e877
RB
47862013-05-28 Richard Biener <rguenther@suse.de>
4787
4788 PR tree-optimization/56787
4789 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
4790 from the list of data references.
4791 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4792 clobbers.
4793 (vect_analyze_loop_operations): Likewise.
4794 (vect_transform_loop): Remove clobbers.
4795
bbba1117
MJ
47962013-05-28 Martin Jambor <mjambor@suse.cz>
4797
4798 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
4799 and REALPART_EXPRs have scalar type.
4800
bd388c2a
RB
48012013-05-28 Richard Biener <rguenther@suse.de>
4802
4803 PR tree-optimization/57411
4804 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
4805 virtual operands.
4806 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
4807 virtual operand propagation.
4808
2f56a311
EB
48092013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4810
4811 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
4812 destination register for bmasksi_vis.
4813 (vector_init_bshuffle): Likewise.
4814 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
4815
5c3eacbb
EB
48162013-05-28 Eric Botcazou <ebotcazou@adacore.com>
4817
4818 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
4819 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
4820 mode if the instruction isn't available in the original mode.
4821 * config/sparc/sparc.opt (mfix-ut699): New option.
4822 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
4823 (divdf3): Turn into expander.
4824 (divdf3_nofix): New insn.
4825 (divdf3_fix): Likewise.
4826 (divsf3): Disable if -mfix-ut699.
4827 (sqrtdf2): Turn into expander.
4828 (sqrtdf2_nofix): New insn.
4829 (sqrtdf2_fix): Likewise.
4830 (sqrtsf2): Disable if -mfix-ut699.
4831
a1756c0a
RB
48322013-05-27 Richard Biener <rguenther@suse.de>
4833
4834 PR middle-end/57412
4835 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
4836 block for the new loop.
4837
5a892248
RB
48382013-05-27 Richard Biener <rguenther@suse.de>
4839
4840 PR tree-optimization/57343
4841 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
4842 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
4843 (number_of_iterations_cond): Do not build the folded tree.
4844
d1de852b
RB
48452013-05-27 Richard Biener <rguenther@suse.de>
4846
4847 Revert
4848 PR middle-end/57381
4849 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
4850 OEP_CONSTANT_ADDRESS_OF retained.
4851
4852 PR tree-optimization/57417
4853 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
4854 for unchanged base.
4855 (set_ssa_val_to): Compare addresses using
4856 get_addr_base_and_unit_offset.
4857
7894bc6b
JR
48582013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
4859
4860 PR rtl-optimization/56833
4861 * postreload.c (move2add_record_mode): New function.
4862 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
4863 (move2add_use_add2_insn): Use move2add_record_sym_value.
4864 (move2add_use_add3_insn): Likewise.
4865 (reload_cse_move2add): Use move2add_valid_value_p and
4866 move2add_record_mode. Invalidate call-clobbered and REG_INC
4867 affected regs by setting reg_mode to VOIDmode.
4868 (move2add_note_store): Don't pretend the inside of a SUBREG is
4869 the actual destination. Invalidate single/leading registers by
4870 setting reg_mode to VOIDmode.
4871 Use move2add_record_sym_value, move2add_valid_value_p and
4872 move2add_record_mode.
4873
b03be25f
RB
48742013-05-27 Richard Biener <rguenther@suse.de>
4875
4876 PR tree-optimization/57396
4877 * tree-affine.c (double_int_constant_multiple_p): Properly
4878 return false for val == 0 and div != 0.
4879
44e88db2
RS
48802013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4881
4882 * config/mips/mips.h: Use #elif in preprocessor conditions.
4883
3b859704
RS
48842013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4885
4886 PR target/53916
4887 * config/mips/constraints.md (kl): New constraint.
4888 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
4889 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
4890 constraint for operand 0. Split after CSE for MIPS16. Emit a move
4891 from LO for MIPS16.
4892 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
4893
c979d5f5
RS
48942013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
4895
4896 PR target/55777
4897 * config/mips/mips.c (mips_can_inline_p): New function.
4898 (TARGET_CAN_INLINE_P): Define.
4899
8e90de43
SB
49002013-05-25 Steven Bosscher <steven@gcc.gnu.org>
4901
4902 * sched-int.h (ds_t, dw_t): Make unsigned int.
4903 Fix documentation that describes how all the ds_t bits are used.
4904 Reserve the last bit for delayed-branch scheduling.
4905 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
4906 (BITS_PER_DEP_WEAK): Fix definition and documentation.
4907 (gen_dep_weak_1): Remove prototype.
4908 * sched-deps.c (get_dep_weak_1): Make static.
4909 * target.def (speculate_insn, needs_block_p, gen_spec_check,
4910 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
4911 * doc/tm.texi: Regenerate.
4912 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
4913
cb5cb194
SB
49142013-05-24 Steven Bosscher <steven@gcc.gnu.org>
4915
4916 PR debug/56950
4917 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
4918
5bd93ff6
NS
49192013-05-24 Nathan Sidwell <nathan@codesourcery.com>
4920 Sandra Loosemore <sandra@codesourcery.com>
4921
4922 * config.gcc (powerpc-*): Allow native for with-cpu.
4923
2343af65
JL
49242013-05-24 Jeff Law <law@redhat.com>
4925
4926 PR tree-optimization/57124
4927 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
4928 conversion feeding a condition if the range has an overflow
4929 if -fstrict-overflow. Add warnings for when we do make the
4930 transformation.
4931
3ad695b9
DC
49322013-05-24 Dehao Chen <dehao@google.com>
4933
04960246 4934 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
4935 (locus_discrim_hasher): Likewise.
4936 (locus_discrim_hasher::hash): Likewise.
4937 (locus_discrim_hasher::equal): Likewise.
4938
82338059
MJ
49392013-05-24 Martin Jambor <mjambor@suse.cz>
4940
4941 PR tree-optimization/57294
4942 * cgraph.h (ipa_record_stmt_references): Declare.
4943 * cgraphbuild.c (ipa_record_stmt_references): New function.
4944 (build_cgraph_edges): Use ipa_record_stmt_references.
4945 (rebuild_cgraph_edges): Likewise.
4946 (cgraph_rebuild_references): Likewise.
4947 * ipa-prop.c (ipa_modify_call_arguments): Discard references
4948 associated with the old statement and build references from the
4949 newly built statements.
4950 * ipa-ref.c (ipa_remove_stmt_references): New function.
4951 * ipa-ref.h (ipa_remove_stmt_references): Declare.
4952
1ccd4874
VM
49532013-05-24 Vladimir Makarov <vmakarov@redhat.com>
4954
55805e54 4955 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 4956 mem-mem moves.
55805e54 4957 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 4958 too.
55805e54 4959 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
4960 secondary memory moves.
4961 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
4962 reg set up in the current insn.
4963
25e25c73
DC
49642013-05-24 Dehao Chen <dehao@google.com>
4965
04960246 4966 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
4967 hash function.
4968 (locus_descrim_hasher::equal): Likewise.
04960246 4969 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
4970 (make_edges): Likewise.
4971 (next_discriminator_for_locus): Likewise.
4972 (same_line_p): Likewise.
4973 (assign_discriminators): Likewise.
4974 (make_cond_expr_edges): Likewise.
4975 (make_gimple_switch_edges): Likewise.
4976 (make_goto_expr_edges): Likewise.
4977 (make_gimple_asm_edges): Likewise.
4978
50d38551
IB
49792013-05-24 Ian Bolton <ian.bolton@arm.com>
4980
4981 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
4982 X format specifier to only display bottom 16 bits.
4983 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
4984 immediate to match for operand 2, since it will be masked.
4985
aea0101d
RB
49862013-05-24 Richard Biener <rguenther@suse.de>
4987
4988 PR tree-optimization/57287
4989 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
4990 all SSA names that occur in abnormal PHIs.
4991
634e03d3
AI
49922013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4993
4994 PR tree-ssa/57385
4995 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
4996 that index is not negative.
4997
b17c024f
EB
49982013-05-24 Eric Botcazou <ebotcazou@adacore.com>
4999
5000 PR rtl-optimization/55177
5001 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
5002 (simplify_byte_swapping_operation): New.
5003 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
5004 (simplify_relational_operation_1): Deal with BSWAP.
5005
46aeac1b
RH
50062013-05-23 Richard Henderson <rth@redhat.com>
5007
5008 PR target/56742
5009 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
5010 (ix86_reorg): Call it.
5011
70cc1536
UB
50122013-05-23 Uros Bizjak <ubizjak@gmail.com>
5013
5014 PR target/57379
5015 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
5016 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
5017 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
5018
b3851501
CB
50192013-05-23 Christian Bruel <christian.bruel@st.com>
5020
5021 PR debug/57351
5022 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
5023
4e194912
CSS
50242013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
5025 Marcus Shawcroft <marcus.shawcroft@arm.com>
5026
5027 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
5028 * config/aarch64/constraints.md (Usa): Remove.
5029 * doc/md.texi (AArch64 Usa): Remove.
5030
83f8c414
CSS
50312013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
5032 Marcus Shawcroft <marcus.shawcroft@arm.com>
5033
5034 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
5035 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
5036 * config/aarch64/predicates.md (aarch64_const_address): Remove.
5037 (aarch64_mov_operand): Use aarch64_mov_operand_p.
5038
b5574232
VP
50392013-05-23 Vidya Praveen <vidyapraveen@arm.com>
5040
5041 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
5042 instruction (AdvSIMD).
5043 * config/aarch64/aarch64-builtins.c
5044 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
5045 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
5046
76c36cb1 50472013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
5048
5049 PR middle-end/57347
5050 * tree.h (contains_bitfld_component_ref_p): Declare.
5051 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
5052 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
5053 caller.
7d2fb524
MJ
5054 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
5055 not access a bit-field. Assert all final offsets are byte-aligned.
5056
ce521ae6
RB
50572013-05-23 Richard Biener <rguenther@suse.de>
5058
5059 PR tree-optimization/57380
5060 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
5061 least one invariant or re-used load.
5062 * passes.c (init_optimization_passes): Move pass_phiprop before
5063 pass_forwprop.
5064
75c7257f
JG
50652013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
5066
5067 * config/aarch64/aarch64-simd.md
5068 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
5069
af6d44b5
RB
50702013-05-23 Richard Biener <rguenther@suse.de>
5071
5072 PR middle-end/57381
5073 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
5074 OEP_CONSTANT_ADDRESS_OF retained.
5075
bd3647bf
JJ
50762013-05-23 Jakub Jelinek <jakub@redhat.com>
5077
5078 PR middle-end/57344
70cc1536
UB
5079 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
5080 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 5081
a55757ea
RB
50822013-05-23 Richard Biener <rguenther@suse.de>
5083
5084 PR rtl-optimization/57341
5085 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
5086 instead of true_dependence.
5087
cfb00b41
DM
50882013-05-22 David Malcolm <dmalcolm@redhat.com>
5089
dd1c676f
DM
5090 * bb-reorder.c (branch_threshold): Make const.
5091 (exec_threshold): Ditto.
cfb00b41 5092
f62511da
MM
50932013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5094 Pat Haugen <pthaugen@us.ibm.com>
5095 Peter Bergner <bergner@vnet.ibm.com>
5096
5097 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
5098 documentation for the power8 crypto builtins.
5099
5100 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
5101
5102 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
5103 macros for defining power8 builtin functions.
5104 (BU_P8V_AV_2): Likewise.
5105 (BU_P8V_AV_P): Likewise.
5106 (BU_P8V_VSX_1): Likewise.
5107 (BU_P8V_OVERLOAD_1): Likewise.
5108 (BU_P8V_OVERLOAD_2): Likewise.
5109 (BU_CRYPTO_1): Likewise.
5110 (BU_CRYPTO_2): Likewise.
5111 (BU_CRYPTO_3): Likewise.
5112 (BU_CRYPTO_OVERLOAD_1): Likewise.
5113 (BU_CRYPTO_OVERLOAD_2): Likewise.
5114 (XSCVSPDP): Fix typo, point to the correct instruction.
5115 (VCIPHER): Add power8 crypto builtins.
5116 (VCIPHERLAST): Likewise.
5117 (VNCIPHER): Likewise.
5118 (VNCIPHERLAST): Likewise.
5119 (VPMSUMB): Likewise.
5120 (VPMSUMH): Likewise.
5121 (VPMSUMW): Likewise.
5122 (VPERMXOR_V2DI): Likewise.
5123 (VPERMXOR_V4SI: Likewise.
5124 (VPERMXOR_V8HI: Likewise.
5125 (VPERMXOR_V16QI: Likewise.
5126 (VSHASIGMAW): Likewise.
5127 (VSHASIGMAD): Likewise.
5128 (VPMSUM): Likewise.
5129 (VPERMXOR): Likewise.
5130 (VSHASIGMA): Likewise.
5131
5132 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5133 __CRYPTO__ if the crypto instructions are available.
5134 (altivec_overloaded_builtins): Add support for overloaded power8
5135 builtins.
5136
5137 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
5138 support for power8 crypto builtins.
5139 (builtin_function_type): Likewise.
5140 (altivec_init_builtins): Add support for builtins that take vector
5141 long long (V2DI) arguments.
5142
5143 * config/rs6000/crypto.md: New file, define power8 crypto
5144 instructions.
5145
51462013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
5147 Pat Haugen <pthaugen@us.ibm.com>
5148 Peter Bergner <bergner@vnet.ibm.com>
5149
5150 * doc/invoke.texi (Option Summary): Add power8 options.
5151 (RS/6000 and PowerPC Options): Likewise.
5152
5153 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
5154 constraints.md instead of rs6000.h. Reorder w* constraints. Add
5155 wm, wn, wr documentation.
5156
5157 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
5158 registers if direct move instructions are enabled.
5159 (wn): New constraint for no registers.
5160 (wq): New constraint for quad word even GPR registers.
5161 (wr): New constraint if 64-bit instructions are enabled.
5162 (wv): New constraint if power8 vector instructions are enabled.
5163 (wQ): New constraint for quad word memory locations.
5164
5165 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
5166 constraint for 0..15 for crypto instructions.
5167 (gpc_reg_operand): If VSX allow registers in VSX registers as well
5168 as GPR and floating point registers.
5169 (int_reg_operand): New predicate to match only GPR registers.
5170 (base_reg_operand): New predicate to match base registers.
5171 (quad_int_reg_operand): New predicate to match even GPR registers
5172 for quad memory operations.
5173 (vsx_reg_or_cint_operand): New predicate to allow vector logical
5174 operations in both GPR and VSX registers.
5175 (quad_memory_operand): New predicate for quad memory operations.
5176 (reg_or_indexed_operand): New predicate for direct move support.
5177
5178 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
5179 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
5180 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
5181 (POWERPC_MASKS): Add power8 options.
5182 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
5183 various options.
5184
5185 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
5186 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
5187
5188 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
5189 (-mpower8-fusion): New power8 options.
5190 (-mpower8-fusion-sign): Likewise.
5191 (-mpower8-vector): Likewise.
5192 (-mcrypto): Likewise.
5193 (-mdirect-move): Likewise.
5194 (-mquad-memory): Likewise.
5195
5196 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
5197 power8.
5198 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
5199 registers.
70cc1536 5200 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
5201 (rs6000_debug_vector_unit): Add p8_vector.
5202 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
5203 definitions. Also print fusion state.
5204 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
5205 (rs6000_builtin_mask_calculate): Add power8 builtin support.
5206 (rs6000_option_override_internal): Add support for power8.
5207 (rs6000_common_init_builtins): Add debugging for skipped builtins
5208 if -mdebug=builtin.
5209 (rs6000_adjust_cost): Add power8 support.
5210 (rs6000_issue_rate): Likewise.
5211 (insn_must_be_first_in_group): Likewise.
5212 (insn_must_be_last_in_group): Likewise.
5213 (force_new_group): Likewise.
5214 (rs6000_register_move_cost): Likewise.
5215 (rs6000_opt_masks): Likewise.
5216
5217 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
5218 power8 capable assembler, default to power7 options.
5219 (TARGET_DIRECT_MOVE): Likewise.
5220 (TARGET_CRYPTO): Likewise.
5221 (TARGET_P8_VECTOR): Likewise.
5222 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
5223 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
5224 (VECTOR_MEM_P8_VECTOR_P): Likewise.
5225 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
5226 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
5227 (TARGET_XSCVDPSPN): Likewise.
5228 (TARGET_XSCVSPDPN): Likewsie.
5229 (TARGET_SYNC_HI_QI): Likewise.
5230 (TARGET_SYNC_TI): Likewise.
5231 (MASK_CRYPTO): Likewise.
5232 (MASK_DIRECT_MOVE): Likewise.
5233 (MASK_P8_FUSION): Likewise.
5234 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
5235 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
5236 temporary used by some of the direct move instructions to get two FP
5237 temporary registers does not force creation of a stack frame.
f62511da
MM
5238 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
5239 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
5240 that any VSX registers are tieable, even if they are also an
5241 Altivec vector mode.
5242 (r6000_reg_class_enum): Add wm, wr, wv constraints.
5243 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
5244 (RS6000_BTM_CRYPTO): Likewise.
5245 (RS6000_BTM_COMMON): Likewise.
5246
5247 * config/rs6000/rs6000.md (cpu attribute): Add power8.
5248 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
5249 (enum rs6000_vector): Add power8 vector support.
5250
73a1a707
RR
52512013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5252
5253 PR target/19599
5254 PR target/57340
5255 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
5256 (any_sibcall_could_use_r3): this and handle indirect calls.
5257 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
5258
d28073d4
BS
52592013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5260
5261 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
5262
bee0b10c
RB
52632013-05-22 Richard Biener <rguenther@suse.de>
5264
5265 PR middle-end/57349
5266 * profile.c (branch_prob): Do not split blocks that are
5267 abnormally receiving from ECF_RETURNS_TWICE functions.
5268
98409b51
RS
52692013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5270
5271 * recog.c (offsettable_address_addr_space_p): Fix calculation of
5272 address mode. Move pointer mode initialization to the same place.
5273
c0602ab8
MZ
52742013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5275
5276 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
5277 while it has any effect.
5278
4f7a634e
ER
52792013-05-21 Easwaran Raman <eraman@google.com>
5280
5281 PR tree-optimization/57322
9daf6dbb
ER
5282 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
5283 UID of the statement added to the BB to be 1.
4f7a634e 5284
a4ce1258
JJ
52852013-05-21 Jakub Jelinek <jakub@redhat.com>
5286
5287 PR tree-optimization/57331
70cc1536
UB
5288 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
5289 of conversion from pointer type to integral type with integer.
a4ce1258 5290
1b14621a
MJ
52912013-05-21 Martin Jambor <mjambor@suse.cz>
5292
5293 PR lto/57289
5294 * ipa-prop.c (ipa_read_node_info): Process param_used and
5295 controlled_uses in the same order as when writing.
5296
e60661f0
MG
52972013-05-21 Magnus Granberg <baldrick@free.fr>
5298
5299 PR plugins/56754
ee49aa34 5300 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 5301
4a61be9a
RB
53022013-05-21 Richard Biener <rguenther@suse.de>
5303
5304 PR tree-optimization/57318
5305 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
5306 estimate stmts with side-effects as likely eliminated.
5307
c52da5f7
RB
53082013-05-21 Richard Biener <rguenther@suse.de>
5309
5310 PR tree-optimization/57330
5311 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
5312 preserve the call stmts fntype.
5313
7ec67e2a
RB
53142013-05-21 Richard Biener <rguenther@suse.de>
5315
5316 PR tree-optimization/57303
5317 * tree-ssa-sink.c (statement_sink_location): Improve killing
5318 stmt detection and properly handle self-assignments.
5319
b112d513
CB
53202013-05-21 Christian Bruel <christian.bruel@st.com>
5321
55805e54
YR
5322 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
5323 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
5324 registers. Set register size out of the PARALLEL loop.
5325
14c2ec26
OE
53262013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
5327
5328 PR target/56547
5329 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
5330 (*fmasf4, *fmasf4_media): New insns.
5331
da734fa1
RS
53322013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5333
5334 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
5335 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
5336 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
5337 (mips_idiv_insns): Update the comments to say that the returned
5338 instruction counts are in units of BASE_INSN_LENGTH.
5339 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
5340 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
5341 using 2 rather than 4 as the length of indirect MIPS16 and
5342 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
5343 length of a NOP. Don't divide MIPS16 lengths by 2.
5344 (mips16_split_long_branches): Assume a branch is long if the
5345 length is greater than 4 rather than 8.
5346 * config/mips/mips.md (length): Give MIPS16 lengths directly,
5347 rather than multiplying them by 2. Multiply instruction counts
5348 by BASE_INSN_LENGTH rather than 4.
5349 (*jump_mips16, tls_get_tp_mips16_<mode>)
5350 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
5351
13719e8b
RS
53522013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5353
5354 * config/mips/mips.md (extended_mips16): Remove branch case.
5355 (length): Remove duplicated extended_mips16 test.
5356
c3850d14
RS
53572013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
5358
5359 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
5360
8da2e059
RS
53612013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
5362
5363 * recog.h (Recog_data): Rename to...
5364 (recog_data_d): ...this.
5365 (recog_data): Update accordingly.
5366 * recog.c (recog_data): Likewise.
5367 * reload.c (save_recog_data): Likewise.
5368 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
5369 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
5370
2df013f3
JB
53712013-05-17 Julian Brown <julian@codesourcery.com>
5372
5373 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
5374 found in a REG_EQUAL note, invalidate it.
5375
371e77e3 53762013-05-17 Easwaran Raman <eraman@google.com>
933f507d
ER
5377
5378 * tree-ssa-reassoc.c (find_insert_point): New function.
5379 (insert_stmt_after): Likewise.
5380 (get_def_stmt): Likewise.
5381 (ensure_ops_are_available): Likewise.
5382 (not_dominated_by): Likewise.
5383 (rewrite_expr_tree): Do not move statements beyond what is
5384 necessary. Remove call to swap_ops_for_binary_stmt...
5385 (reassociate_bb): ... and move it here.
5386 (build_and_add_sum): Assign UIDs for new statements.
5387 (linearize_expr): Likewise.
5388 (do_reassoc): Renumber gimple statement UIDs.
5389
e01c7cca
JH
53902013-05-17 Jan Hubicka <jh@suse.cz>
5391
5392 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
5393 weakrefs.
5394 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
5395 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
5396 weakrefs.
e01c7cca
JH
5397 (output_weakrefs): Update.
5398
c3272a92
PCC
53992013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
5400 Martin Jambor <mjambor@suse.cz>
5401
5402 PR middle-end/57276
5403 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
5404 value that corresponds to the given aggval is found in values vector.
5405
11c2aa39
UB
54062013-05-17 Uros Bizjak <ubizjak@gmail.com>
5407
5408 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
5409 sse, sse2, sse3, ssse3 and sse4a flags to options.
5410
abecc8c6
DM
54112013-05-17 David Malcolm <dmalcolm@redhat.com>
5412
5413 * gengtype-state.c: (s_expr_writer): New class, to handle
5414 prettifying of output layout of s-expressions.
5415 (state_writer): New class, to write out gtype.state.
5416 (state_written_type_count): Move this variable into member data of
5417 state_writer.
5418 (s_expr_writer::s_expr_writer): New code: constructor for new class
5419 (state_writer::state_writer(): ditto
5420 (s_expr_writer::write_new_line): New function
5421 (s_expr_writer::write_any_indent): ditto
5422 (s_expr_writer::begin_s_expr): ditto
5423 (s_expr_writer::end_s_expr): ditto
5424 (write_state_fileloc): convert to method of state_writer...
5425 (state_writer:: write_state_fileloc): ...and use methods of
5426 s_expr_writer to write indentation into the gtype.state output file
5427 to visually represent the hierarchical structure of the list
5428 structures
5429 (write_state_fields): ditto, renaming to...
5430 (state_writer::write_state_fields)
5431 (write_state_a_string): ditto, renaming to...
5432 (state_writer::write_state_a_string)
5433 (write_state_string_option): ditto, renaming to...
5434 (state_writer::write_state_string_option)
5435 (write_state_type_option): ditto, renaming to...
5436 (state_writer::write_state_type_option)
5437 (write_state_nested_option): ditto, renaming to...
5438 (state_writer::write_state_nested_option)
5439 (write_state_option): ditto, renaming to...
5440 (state_writer::write_state_option)
5441 (write_state_options): ditto, renaming to...
5442 (state_writer::write_state_options)
5443 (write_state_lang_bitmap): ditto, renaming to...
5444 (state_writer::write_state_lang_bitmap)
5445 (write_state_version): ditto, renaming to...
5446 (state_writer::write_state_version)
5447 (write_state_scalar_type): ditto, renaming to...
5448 (state_writer::write_state_scalar_type)
5449 (write_state_string_type): ditto, renaming to...
5450 (state_writer::write_state_string_type)
5451 (write_state_undefined_type): ditto, renaming to...
5452 (state_writer::write_state_undefined_type)
5453 (write_state_struct_union_type): ditto, renaming to...
5454 (state_writer::write_state_struct_union_type)
5455 (write_state_struct_type): ditto, renaming to...
5456 (state_writer::write_state_struct_type)
5457 (write_state_user_struct_type): ditto, renaming to...
5458 (state_writer::write_state_user_struct_type)
5459 (write_state_lang_struct_type): ditto, renaming to...
5460 (state_writer::write_state_lang_struct_type)
5461 (write_state_param_struct_type): ditto, renaming to...
5462 (state_writer::write_state_param_struct_type)
5463 (write_state_pointer_type): ditto, renaming to...
5464 (state_writer::write_state_pointer_type)
5465 (write_state_array_type): ditto, renaming to...
5466 (state_writer::write_state_array_type)
5467 (write_state_gc_used): ditto, renaming to...
5468 (state_writer::write_state_gc_used)
5469 (write_state_common_type_content): ditto, renaming to...
5470 (state_writer::write_state_common_type_content)
5471 (write_state_type): ditto, renaming to...
5472 (state_writer::write_state_type)
5473 (write_state_pair_list): ditto, renaming to...
5474 (state_writer::write_state_pair_list)
5475 (write_state_pair): ditto, renaming to...
5476 (state_writer::write_state_pair)
5477 (write_state_typedefs): ditto, renaming to...
5478 (state_writer::write_state_typedefs)
5479 (write_state_structures): ditto, renaming to...
5480 (state_writer::write_state_structures)
5481 (write_state_param_structs): ditto, renaming to...
5482 (state_writer::write_state_param_structs)
5483 (write_state_variables): ditto, renaming to...
5484 (state_writer::write_state_variables)
5485 (write_state_srcdir): ditto, renaming to...
5486 (state_writer::write_state_srcdir)
5487 (write_state_files_list): ditto, renaming to...
5488 (state_writer::write_state_files_list)
5489 (write_state_languages): ditto, renaming to...
5490 (state_writer::write_state_languages)
5491 (write_state): create a state_writer instance and use it when
5492 writing out the state file
5493
d6545f29
MS
54942013-05-17 Mike Stump <mikestump@comcast.net>
5495
816a3f73 5496 PR rtl-optimization/57304
d6545f29
MS
5497 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
5498 accessing DF_REF_REAL_LOC.
5499
38c821cf
JJ
55002013-05-17 Jakub Jelinek <jakub@redhat.com>
5501
5502 PR rtl-optimization/57281
5503 PR rtl-optimization/57300
5504 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
5505 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
5506 what the other splitter did if the registers are dead.
5507
2a293391
RB
55082013-05-17 Richard Biener <rguenther@suse.de>
5509
5510 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
5511 MEM_REF offsets.
5512
17042d2b
JJ
55132013-05-17 Jakub Jelinek <jakub@redhat.com>
5514
5515 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
5516 linking.
5517
5b115c1f
MP
55182013-05-17 Marek Polacek <polacek@redhat.com>
5519
11c2aa39
UB
5520 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
5521 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 5522
52d84413
JJ
55232013-05-17 Jakub Jelinek <jakub@redhat.com>
5524
68119618
JJ
5525 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
5526 vect_external_def oprnd1 with loop_vinfo, try to emit
5527 optional cast, negation and and stmts on the loop preheader
5528 edge instead of into the pattern def seq.
5529
52d84413
JJ
5530 PR tree-optimization/57051
5531 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
5532 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
5533
17b962bd
NC
55342013-05-16 Nick Clifton <nickc@redhat.com>
5535
5536 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
5537 (rl78_is_naked_func): New function.
56aefbf7
UB
5538 (rl78_expand_prologue): Skip prologue generation for naked functions.
5539 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
5540 * doc/extend.texi (naked): Add RL78 to the list of processors
5541 that supports this attribute.
5542
b1a0f84e
JL
55432013-05-16 Jeff Law <law@redhat.com>
5544
5545 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
5546
af0e415b
UB
55472013-05-16 Uros Bizjak <ubizjak@gmail.com>
5548
5549 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
5550 cache parameters using detect_caches_amd also for CYRIX,
5551 NSC and TM2 signatures.
5552
19db293a
UB
55532013-05-16 Uros Bizjak <ubizjak@gmail.com>
5554 Dzianis Kahanovich <mahatma@eu.by>
5555
5556 PR target/45359
5557 PR target/46396
5558 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
5559 VIA/Centaur processors and determine their cache parameters
5560 using detect_caches_amd.
5561
251a41b9
TJ
55622013-05-16 Teresa Johnson <tejohnson@google.com>
5563
5564 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
5565 (rtl_verify_edges): New function.
5566 (rtl_verify_bb_insns): Ditto.
5567 (rtl_verify_bb_pointers): Ditto.
5568 (rtl_verify_bb_insn_chain): Ditto.
5569 (rtl_verify_fallthru): Ditto.
5570 (rtl_verify_bb_layout): Ditto.
5571 (rtl_verify_flow_info_1): Outline checks into new functions.
5572 (rtl_verify_flow_info): Ditto.
5573
f14540b6
SE
55742013-05-16 Steve Ellcey <sellcey@imgtec.com>
5575
5576 * cfghooks.c (copy_bbs): Add update_dominance argument.
5577 * cfghooks.h (copy_bbs): Update prototype.
5578 * tree-cfg.c (gimple_duplicate_sese_region):
5579 Add update_dominance argument.
5580 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
5581 * tree-ssa-loop-ch.c (copy_loop_headers): Update
5582 gimple_duplicate_sese_region call.
5583 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
5584 Update copy_bbs call.
5585 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
5586 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
5587
7e9a3abb
JJ
55882013-05-16 Jakub Jelinek <jakub@redhat.com>
5589
5590 * tree-vectorizer.h (NUM_PATTERNS): Increment.
5591 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
5592 vect_recog_rotate_pattern.
5593 (vect_recog_rotate_pattern): New function.
5594
427b248d
JM
55952013-05-16 Jason Merrill <jason@redhat.com>
5596
5597 * Makefile.in (LLINKER): New variable.
5598 (mostlyclean): Remove link mutex.
5599 * configure.ac: Handle --enable-link-mutex.
5600 * lock-and-run.sh: New script.
5601
b871e3d2
RR
56022013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5603
5604 PR target/19599
5605 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
5606 for NULL decl.
5607
ce858126
RO
56082013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5609
5610 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
5611
798d3d04
GY
56122013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
5613
5614 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
5615 * config/arm/arm.c (next_consecutive_mem): New function.
5616 (gen_movmem_ldrd_strd): Likewise.
5617 * config/arm/arm.md (movmemqi): Update condition and code.
5618 (unaligned_loaddi, unaligned_storedi): New patterns.
5619
0baddc45
RO
56202013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5621
5622 * config.gcc: Obsolete *-*-solaris2.9*.
5623 * doc/install.texi (Specific, *-*-solaris2*): Document it.
5624
aa9d5bcf
RB
56252013-05-16 Richard Biener <rguenther@suse.de>
5626
5627 * passes.c (init_optimization_passes): Move pass_parallelize_loops
5628 earlier, after GRAPHITE transforms and IV canonicalization.
5629
5a0f4dd3
JJ
56302013-05-16 Jakub Jelinek <jakub@redhat.com>
5631
5632 * omp-low.c (extract_omp_for_data): For collapsed loops,
5633 if at least one of the loops is known at compile time to
5634 iterate zero times, set count to 0.
5635 (expand_omp_regimplify_p): New function.
5636 (expand_omp_for_generic): For collapsed loops, if at least
5637 one of the loops isn't known to iterate at least once,
5638 add runtime check with setting count to 0.
5639 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
5640 For unsigned types if it isn't known at compile time that
5641 the loop will iterate at least once, add runtime check to bypass
5642 the whole loop if initial condition isn't true.
5643
e3753785
NS
56442013-05-16 Nathan Sidwell <nathan@codesourcery.com>
5645
5646 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
5647
43bb4dd1
MG
56482013-05-16 Marc Glisse <marc.glisse@inria.fr>
5649
5650 PR middle-end/57286
5651 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
5652 transformations to avoid an infinite loop.
5653
3571dde6
MP
56542013-05-16 Marek Polacek <polacek@redhat.com>
5655
5656 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
5657
b8b3f0ca
LE
56582013-05-15 Leif Ekblad <leif@rdos.net>
5659
5660 * config/i386/i386.c (ix86_decompose_address): Use
5661 DEFAULT_TLS_SEG_REG to access TLS segment register.
5662 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
5663 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
5664 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
5665
e299a383
RS
56662013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
5667
5668 PR target/57260
5669 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
5670 sibling calls to functions that would normally be lazily bound,
5671 unless $gp is call-clobbered.
5672
e7208ea3
UB
56732013-05-15 Uros Bizjak <ubizjak@gmail.com>
5674
19db293a 5675 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 5676 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
5677 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
5678 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
5679 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
5680 of TARGET_3DNOW.
5681 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
5682
e7413f3d
AS
56832013-05-15 Andreas Schwab <schwab@suse.de>
5684
5685 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
5686 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
5687 third operand.
5688
ad4db775
TJ
56892013-05-15 Teresa Johnson <tejohnson@google.com>
5690
5691 * loop-unroll.c (report_unroll_peel): Check decision before
5692 emitting unroll/peel message.
5693
af205f67
TJ
56942013-05-15 Teresa Johnson <tejohnson@google.com>
5695
5696 * function.h (has_bb_partition): New rtl_data flag.
5697 (bb_reorder_complete): Ditto.
5698 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
5699 instead of flag_reorder_blocks_and_partition.
5700 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
5701 with some enhancements.
5702 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
5703 * bb-reorder.c (connect_traces): Check for has_bb_partition
5704 instead of flag_reorder_blocks_and_partition.
5705 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
5706 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
5707 verify_hot_cold_block_grouping.
5708 (partition_hot_cold_basic_blocks): Set has_bb_partition.
5709
9adcfa3c
RR
57102013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5711
5712 PR target/19599
5713 * config/arm/predicates.md (call_insn_operand): New predicate.
5714 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
5715 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
5716 if insn is not a tail call.
5717 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
5718 registers.
5719 * config/arm/arm.h (enum reg_class): New caller save register class.
5720 (REG_CLASS_NAMES): Likewise.
5721 (REG_CLASS_CONTENTS): Likewise.
5722 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
5723 without decls.
5724
ccb3ad87
RB
57252013-05-15 Richard Biener <rguenther@suse.de>
5726
5727 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
5728 of MSG_OPTIMIZED_LOCATIONS.
5729 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
5730 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
5731 message.
5732 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
5733 of MSG_OPTIMIZED_LOCATIONS.
5734 (execute_vect_slp): Likewise.
5735 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
5736 (vect_create_cond_for_alias_checks): Likewise.
5737 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
5738 (vect_recog_widen_mult_pattern): Likewise.
5739 (vect_recog_widen_sum_pattern): Likewise.
5740 (vect_recog_over_widening_pattern): Likewise.
5741 (vect_recog_widen_shift_pattern): Likewise.
5742 (vect_recog_vector_vector_shift_pattern): Likewise.
5743 (vect_recog_divmod_pattern): Likewise.
5744 (vect_recog_mixed_size_cond_pattern): Likewise.
5745 (vect_recog_bool_pattern): Likewise.
5746 (vect_pattern_recog_1): Likewise.
5747
48b1474e
MJ
57482013-05-15 Martin Jambor <mjambor@suse.cz>
5749
5750 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
5751 non-functions to builtin_unreachable.
5752 * ipa-inline-transform.c (inline_call): Do not assert estimates were
5753 correct when new direct edges were discovered.
5754
9de04252
MJ
57552013-05-15 Martin Jambor <mjambor@suse.cz>
5756
5757 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
5758 header, print symbol order instead of node uid, print more information
5759 about indirect edge targets.
5760 (ipa_make_edge_direct_to_target): Print symbol order instead of node
5761 uids.
5762 (ipa_make_edge_direct_to_target): Likewise.
5763 (remove_described_reference): Likewise.
5764 (propagate_controlled_uses): Likewise.
5765 (ipa_print_node_params): Also print symbol order.
5766 (ipcp_transform_function): Print symbol order instead of node uids.
5767 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
5768 (cgraph_get_create_real_symbol_node): Likewise.
5769 * ipa-cp.c (print_lattice): Likewise.
5770 (print_all_lattices): Likewise.
5771 (determine_versionability): Likewise.
5772 (initialize_node_lattices): Likewise.
5773 (estimate_local_effects): Likewise.
5774 (update_profiling_info): Likewise.
5775 (create_specialized_node): Likewise.
5776 (perhaps_add_new_callers): Likewise.
5777 (decide_about_value): Likewise.
5778 (decide_whether_version_node): Likewise.
5779 (identify_dead_nodes): Likewise.
5780 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
5781 (dump_inline_summary): Likewise.
5782 (estimate_node_size_and_time): Likewise.
5783 (inline_analyze_function): Likewise.
5784 * ipa-inline.c (report_inline_failed_reason): Likewise.
5785 (want_early_inline_function_p): Likewise.
5786 (edge_badness): Likewise.
5787 (update_edge_key): Likewise.
5788 (inline_small_functions): Likewise. Add dumping of order to two other
5789 dumps.
5790 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
5791 instead of node uids.
5792 (propagate_pure_const): Likewise.
5793 (propagate_pure_const): Likewise.
5794 * ipa-utils.c (dump_cgraph_node_set): Likewise.
5795 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
5796 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
5797 of node uids.
5798 * tree-pretty-print.c (dump_function_header): Likewise.
5799 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
5800 Print symbol order instead of node uids.
5801
1dd03b91
AK
58022013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5803
5804 * config/s390/s390.c (s390_register_move_cost): Don't impose the
5805 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
5806
fdf6a7b9
RB
58072013-05-15 Richard Biener <rguenther@suse.de>
5808
5809 PR tree-optimization/57275
5810 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
5811 return value for fail to do runtime alias checks for gather loads.
5812
2d6e4603
JH
58132013-05-15 Jan Hubicka <jh@suse.cz>
5814
5815 PR lto/57038
5816 PR lto/47375
e7208ea3
UB
5817 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
5818 weakrefs are not external.
5819 (lto_symtab_merge_decls): Fix thinko when dealing with
5820 non-lto_symtab decls.
2d6e4603
JH
5821 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
5822 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
5823 * varpool.c (dump_varpool_node): Dump more flags.
5824
83f44b39
GG
58252013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
5826
5827 * config/i386/i386.c (processor_alias_table): Add instruction
5828 FSGSBASE for AMD bdver3 architecture.
5829
2e55d062
JJ
58302013-05-14 Jakub Jelinek <jakub@redhat.com>
5831
5832 * tree.c (warn_deprecated_use): Print file:line using locus color.
5833 * diagnostic.c (diagnostic_report_current_module): Print file:line
5834 and file:line:column using locus color.
5835
0bfdb81e
MS
58362013-05-14 Mike Stump <mikestump@comcast.net>
5837
5838 * gdbinit.in: Add __null.
5839
a508ef22
MS
58402013-05-14 Mike Stump <mikestump@comcast.net>
5841
5842 * recog.h: Rename struct recog_data to Recog_data.
5843 * recog.c: Likewise.
5844 * reload.c (can_reload_into): Likewise.
5845 * config/picochip/picochip.c: Likewise.
5846
e7180acb
MS
58472013-05-14 Mike Stump <mikestump@comcast.net>
5848
5849 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
5850
61216c26
SB
58512013-05-14 Steven Bosscher <steven@gcc.gnu.org>
5852
fd6beed4
SB
5853 * resource.h (struct resources): Remove unch_memory member.
5854 (CLEAR_RESOURCE): Don't clear unch_memory.
5855 * resource.c (mark_referenced_resources): Don't set it.
5856 (mark_set_resources): Likewise.
5857 (mark_target_live_regs): Don't clear it.
5858 (init_resource_info): Likewise.
5859 * reorg.c (resource_conflicts_p): Don't compare it.
5860 (redundant_insn): Don't set it.
5861
61216c26
SB
5862 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
5863 Remove prototypes.
5864 * emit-rtl.c (next_label): Remove unused function.
5865 (skip_consecutive_labels, link_cc0_insns): Move to ...
5866 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
5867 only place where these functions are used, and make them static.
5868
418d1b87
MG
58692013-05-14 Marc Glisse <marc.glisse@inria.fr>
5870
5871 * fold-const.c (fold_negate_expr): Handle vectors.
5872 (fold_truth_not_expr): Make it static.
5873 (fold_invert_truthvalue): New static function.
5874 (invert_truthvalue_loc): Handle vectors. Do not call
5875 fold_truth_not_expr directly.
5876 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
5877 <TRUTH_NOT_EXPR>: Do not cast to boolean.
5878 (fold_comparison): Handle vector constants.
5879 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
5880 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
5881 * tree.h (fold_truth_not_expr): Remove declaration.
5882
fc21784d
JG
58832013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
5884
5885 * config/aarch64/aarch64-simd.md
5886 (aarch64_vcond_internal<mode>): Rename to...
5887 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
5888 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
5889 float modes. Clarify all iterator modes.
5890 (vcond<mode><mode>): Use new name for vcond expanders.
5891 (vcond<v_cmp_result><mode>): Likewise.
5892 (vcondu<mode><mode>: Likewise.
5893 * config/aarch64/iterators.md (VDQF_COND): New.
5894
d4c52634
MG
58952013-05-14 Marc Glisse <marc.glisse@inria.fr>
5896
5897 PR bootstrap/57266
5898 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
5899 variable for the shift amount. Check that we shift by non-negative
5900 amounts.
5901
2b261262
CLT
59022013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
5903
5904 PR target/42017
5905 * config/arm/arm.h (EPILOGUE_USES): Only return true
5906 for LR_REGNUM after epilogue_completed.
5907
6e022d7b
JR
59082013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
5909
5910 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 5911 is error_mark_node.
6e022d7b 5912
56cf7859
RO
59132013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5914
5915 PR target/57261
5916 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
5917 and Solaris 11+/x86 with gld.
5918 * configure: Regenerate.
5919
75776c6d
JJ
59202013-05-14 Jakub Jelinek <jakub@redhat.com>
5921
5922 * expmed.c (expand_shift_1): Canonicalize rotates by
5923 constant bitsize / 2 to bitsize - 1.
7f998021 5924 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
5925 case ROTATERT>: Likewise.
5926
5927 Revert:
5928 2013-05-10 Jakub Jelinek <jakub@redhat.com>
5929
5930 * config/i386/i386.md (rotateinv): New code attr.
5931 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
5932 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
5933 roll $31, %eax, etc.
5934
df35498a
RB
59352013-05-14 Richard Biener <rguenther@suse.de>
5936
5937 PR middle-end/57235
5938 * tree-eh.c (sink_clobbers): Give up for successors with
5939 multiple predecessors and no virtual uses.
5940
cc6e7ece
EB
59412013-05-14 Eric Botcazou <ebotcazou@adacore.com>
5942
5943 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
5944 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
5945
f778dd4d
JJ
59462013-05-14 Jakub Jelinek <jakub@redhat.com>
5947
5948 PR middle-end/57251
5949 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
5950 the case when both op0 and op1 have VOIDmode.
5951
bad4df9b
KP
59522013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5953
5954 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
5955 in multiply-accumulate mode.
5956
56f3e9ac
GW
59572013-05-13 Guozhi Wei <carrot@google.com>
5958
5959 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
5960
a3d7ab92
KT
59612013-05-13 Kai Tietz <ktietz@redhat.com>
5962
5963 PR target/56975
5964 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 5965 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 5966 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 5967 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
5968 (ix86_expand_prologue): Likewise.
5969 (ix86_expand_split_stack_prologue): Likewise.
5970 (legitimate_pic_address_disp_p): Likewise.
5971 (legitimize_pic_address): Likewise.
5972 (legitimize_tls_address): Likewise.
5973 (legitimize_pe_coff_symbol): Likewise.
5974 (output_pic_addr_const): Likewise.
5975 (construct_plt_address): Likewise.
5976 (ix86_expand_call): Likewise.
5977 (x86_output_mi_thunk): Likewise.
5978 (x86_function_profiler): Likewise.
5979
c59b7e28
SN
59802013-05-13 Sofiane Naci <sofiane.naci@arm.com>
5981
5982 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
5983 similar switch cases.
5984 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
5985 (aarch64_simd_mov_to_<mode>low): Delete.
5986 (aarch64_simd_mov_to_<mode>high): Delete.
5987 (move_lo_quad_<mode>): Add w<-r alternative.
5988 (aarch64_simd_move_hi_quad_<mode>): Likewise.
5989 (aarch64_simd_mov_from_*): Update type attribute.
5990 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
5991 statement.
5992
5f28524a
JH
59932013-05-13 Jan Hubicka <jh@suse.cz>
5994
5995 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
5996 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
5997 ix86_expand_epilogue, emit_i387_cw_initialization,
5998 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
5999 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 6000
ae6fa899
JJ
60012013-05-13 Jakub Jelinek <jakub@redhat.com>
6002
6003 PR tree-optimization/45216
6004 PR tree-optimization/57157
6005 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
6006 the (-Y) & (B - 1) variant if OP is |.
6007 * expmed.c (expand_shift_1): For rotations by const0_rtx just
6008 return shifted. Use (-op1) & (prec - 1) as other_amount
6009 instead of prec - op1.
6010
4502fe8d
MJ
60112013-05-13 Martin Jambor <mjambor@suse.cz>
6012
6013 PR middle-end/42371
6014 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
6015 (ipa_constant_data): New type.
6016 (ipa_jump_func): Use ipa_constant_data to hold information about
6017 constant jump functions.
6018 (ipa_get_jf_constant): Adjust to jump function type changes.
6019 (ipa_get_jf_constant_rdesc): New function.
6020 (ipa_param_descriptor): New field controlled_uses.
6021 (ipa_get_controlled_uses): New function.
6022 (ipa_set_controlled_uses): Likewise.
6023 * ipa-ref.h (ipa_find_reference): Declare.
6024 * ipa-prop.c (ipa_cst_ref_desc): New type.
6025 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
6026 changes.
6027 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
6028 New parameter cs. Adjust all callers.
6029 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
6030 (remove_described_reference): New function.
6031 (jfunc_rdesc_usable): Likewise.
6032 (try_make_edge_direct_simple_call): Decrement controlled use count,
6033 attempt to remove reference if it hits zero.
6034 (combine_controlled_uses_counters): New function.
6035 (propagate_controlled_uses): Likewise.
6036 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
6037 (ipa_edge_duplication_hook): Duplicate reference descriptions.
6038 (ipa_print_node_params): Print described use counter.
6039 (ipa_write_jump_function): Adjust to jump function type changes.
6040 (ipa_read_jump_function): New parameter CS, pass it to
6041 ipa_set_jf_constant. Adjust caller.
6042 (ipa_write_node_info): Stream controlled use count
6043 (ipa_read_node_info): Likewise.
6044 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
6045 asserting.
6046 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
6047 count. Remove cloning-added reference if it reaches zero.
6048 * ipa-ref.c (ipa_find_reference): New function.
6049
0864bfc2
GG
60502013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
6051
e7208ea3 6052 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
6053 alignment values for AMD BD and BT architectures.
6054
640bfeb2
MG
60552013-05-13 Marc Glisse <marc.glisse@inria.fr>
6056
6057 * tree-vect-generic.c (uniform_vector_p): Move ...
6058 * tree.c (uniform_vector_p): ... here.
6059 * tree.h (uniform_vector_p): Declare it.
6060 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
6061 into a scalar.
6062
3a60f32b
JJ
60632013-05-13 Jakub Jelinek <jakub@redhat.com>
6064
198fe1bf
JJ
6065 PR tree-optimization/57230
6066 * tree-ssa-strlen.c (handle_char_store): Record length for
6067 array store from STRING_CST.
6068
3a60f32b
JJ
6069 PR tree-optimization/57230
6070 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
6071 check.
6072
566be57c
JR
60732013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
6074
6075 * config/epiphany/epiphany.c (epiphany_init): Check size of
6076 NUM_MODES_FOR_MODE_SWITCHING.
6077 (epiphany_expand_prologue):
6078 Remove CONFIG_REGNUM initial value handling code.
6079 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
6080 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 6081 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
6082 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
6083 Don't return 1 for FP_MODE_NONE.
6084 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
6085 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
6086 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
6087 * config/epiphany/epiphany.md (save_config): New pattern.
6088
0f2c2331
UB
60892013-05-12 Uros Bizjak <ubizjak@gmail.com>
6090
6091 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
6092
5b3f93c7
UB
60932013-05-10 Uros Bizjak <ubizjak@gmail.com>
6094
6095 * config/i386/i386.md (memory): Handle sseishft1.
6096 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
6097 (*vec_extractv2di_1): Ditto.
6098
1f873f0e
VM
60992013-05-10 Vladimir Makarov <vmakarov@redhat.com>
6100
6101 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
6102 saved registers.
6103
341427fa 61042013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
6105
6106 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
6107 Add mthumb/march=armv7-a multilib.
6108 Add mthumb/march=armv7-r multilib.
6109 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
6110
9e69bdde
RC
61112013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
6112
6113 * config/v850/t-rtems: Add more multilibs.
6114
9ff09a22
RB
61152013-05-10 Richard Biener <rguenther@suse.de>
6116
6117 PR tree-optimization/57214
6118 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
6119 not propagate from SSA names that occur in abnormal PHI nodes.
6120
a5e0cd1d
MG
61212013-05-10 Marc Glisse <marc.glisse@inria.fr>
6122
6123 * stor-layout.c (element_precision): New function.
6124 * machmode.h (element_precision): Declare it.
6125 * tree.c (build_minus_one_cst): New function.
6126 (element_precision): Likewise.
6127 * tree.h (build_minus_one_cst): Declare new function.
6128 (element_precision): Likewise.
6129 * fold-const.c (operand_equal_p): Use element_precision.
6130 (fold_binary_loc): Handle vector types.
6131 * convert.c (convert_to_integer): Use element_precision.
6132 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
6133 separately.
6134
cb2558bc
RS
61352013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
6136
6137 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
6138 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
6139 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
6140 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
6141 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
6142 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
6143 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
6144 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
6145 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
6146 (Uuw8): New constraints.
6147 (Usb4): Move into alphabetical order.
6148 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
6149 (sd8_operand, ub8_operand, uw8_operand): New predicates.
6150 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
6151 previously unnamed patterns.
6152 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
6153 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
6154 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
6155 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
6156 of set_attr_alternative/if_then_else. Use extended_mips16 instead
6157 of specific lengths.
6158
cb3b8d33
JJ
61592013-05-10 Jakub Jelinek <jakub@redhat.com>
6160
6f93c008
JJ
6161 * config/i386/i386.md (rotateinv): New code attr.
6162 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
6163 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
6164 roll $31, %eax, etc.
6165
cb3b8d33
JJ
6166 PR tree-optimization/45216
6167 PR tree-optimization/57157
6168 * tree-ssa-forwprop.c (simplify_rotate): New function.
6169 (ssa_forward_propagate_and_combine): Call it.
6170
afb119be
RB
61712013-05-10 Richard Biener <rguenther@suse.de>
6172
6173 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
6174 disable peeling when we version for aliasing.
6175 (vector_alignment_reachable_p): Honor explicit user alignment.
6176 (vect_supportable_dr_alignment): Likewise.
6177 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
6178 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
6179 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
6180 then peeling to arrange for the cost-model check to come first.
6181
01ae4861
AM
61822013-05-10 Alan Modra <amodra@gmail.com>
6183
6184 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
6185 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
6186 * configure: Regenerate.
6187
ebc9a431
AM
61882013-05-10 Alan Modra <amodra@gmail.com>
6189
6190 PR target/55033
6191 * varasm.c (default_elf_select_section): Move !DECL_P check..
6192 (get_named_section): ..to here before calling get_section_name.
6193 Adjust assertion.
6194 (default_section_type_flags): Add DECL_P check.
6195 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
6196 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
6197
d4bca93c
JR
61982013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
6199
6200 * config/epiphany/epiphany.c (epiphany_expand_prologue):
6201 When using gen_stack_adjust_str with a register offset, add a
6202 REG_FRAME_RELATED_EXPR note.
6203
60ca9a65
UB
62042013-05-09 Uros Bizjak <ubizjak@gmail.com>
6205
6206 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
6207 (*vec_extractv4si_zext_mem): Ditto.
6208 (*vec_extractv2di): Add 0->x and x->x alternatives.
6209 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
6210 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
6211
a3409c02
JM
62122013-05-09 Jason Merrill <jason@redhat.com>
6213
0138d6b2
JM
6214 N3639 C++1y VLA support
6215 * gimplify.c (gimplify_vla_decl): Don't touch an existing
6216 DECL_VALUE_EXPR.
6217
a3409c02
JM
6218 * tree.c (build_constructor_va): New.
6219 * tree.h: Declare it.
6220
66e6b990
MJ
62212013-05-09 Martin Jambor <mjambor@suse.cz>
6222
6223 PR lto/57084
6224 * gimple-fold.c (canonicalize_constructor_val): Call
6225 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
6226
64cfa6c0
JH
62272013-05-09 Jan Hubicka <jh@suse.cz>
6228 Richard Biener <rguenther@suse.de>
6229
6230 PR lto/54095
6231 * symtab.c (symtab_make_decl_local): Do not add private names.
6232
c3167b00
JH
62332013-05-09 Jan Hubicka <jh@suse.cz>
6234
6235 PR lto/54095
6236 * symtab.c (insert_to_assembler_name_hash): Handle clones.
6237 (unlink_from_assembler_name_hash): Likewise.
6238 (symtab_prevail_in_asm_name_hash, symtab_register_node,
6239 symtab_unregister_node, symtab_initialize_asm_name_hash,
6240 change_decl_assembler_name): Update.
6241
12dc6974
SN
62422013-05-09 Sofiane Naci <sofiane.naci@arm.com>
6243
6244 * config/aarch64/aarch64.md: New movtf split.
6245 (*movtf_aarch64): Update.
6246 (aarch64_movdi_tilow): Handle TF modes and rename to
6247 aarch64_movdi_<mode>low.
6248 (aarch64_movdi_tihigh): Handle TF modes and rename to
6249 aarch64_movdi_<mode>high
6250 (aarch64_movtihigh_di): Handle TF modes and rename to
6251 aarch64_mov<mode>high_di
6252 (aarch64_movtilow_di): Handle TF modes and rename to
6253 aarch64_mov<mode>low_di
6254 (aarch64_movtilow_tilow): Remove spurious whitespace.
6255 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
6256 splits.
6257 (aarch64_print_operand): Update.
6258
227eb343
AM
62592013-05-09 Alan Modra <amodra@gmail.com>
6260
6261 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
6262 powerpc64le.
6263 * configure: Regenerate.
6264
0b013847
UB
62652013-05-08 Uros Bizjak <ubizjak@gmail.com>
6266
6267 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
6268 splitter preparation statements.
6269 * config/i386/sse.md (*vec_extract* splitters): Ditto.
6270 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
6271 adjust_address_nv.
6272
1dc3d6e9
BS
62732013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6274
6275 * gimple-ssa-strength-reduction.c (count_candidates): Change
6276 return value to int.
6277 (analyze_candidates_and_replace): Change type of length to int.
6278
e61e7d28
UB
62792013-05-08 Uros Bizjak <ubizjak@gmail.com>
6280
6281 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
6282 (*vec_extract<mode>): Use VI12_128 mode iterator.
6283 (*vec_extract<mode>_mem): Ditto.
6284 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
6285 attribute.
6286
4fbfcf44
DN
62872013-05-08 Diego Novillo <dnovillo@google.com>
6288
6289 PR bootstrap/54659
6290
6291 Revert:
4fbfcf44
DN
6292 2012-08-17 Diego Novillo <dnovillo@google.com>
6293
e61e7d28
UB
6294 PR bootstrap/54281
6295 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
6296 * config.in: Regenerate.
6297 * configure: Regenerate.
6298 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 6299
702d8703
JH
63002013-05-08 Jan Hubicka <jh@suse.cz>
6301
6302 PR lto/54095
6303 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
6304 * cgraph.h (symtab_node_base): Add unique_name.
6305 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6306 input_overwrite_node, input_varpool_node): Stream unique_name.
6307 * cgraphclones.c (cgraph_create_virtual_clone,
6308 cgraph_function_versioning): Set unique_name.
6309 * ipa.c (function_and_variable_visibility): Set unique_name.
6310
8b28cf47
BS
63112013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6312
6313 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
6314 (alloc_cand_and_find_basis): Restrict conditional candidate
6315 processing to CAND_MULTs.
6316
e86074fd
JH
63172013-05-08 Jan Hubicka <jh@suse.cz>
6318
6319 PR lto/54095
6320 lto-symtab.c (lto_symtab_symbol_p): New function.
6321 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
6322 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
6323 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
6324 Skip static symbols.
6325
44398cbe
PC
63262013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
6327
6328 PR tree-optimization/57200
6329 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
6330 Only call inform if the preceding warning_at returns true.
6331
f6bc1c4a
HS
63322013-05-07 Han Shen <shenhan@google.com>
6333
6334 * cfgexpand.c (record_or_union_type_has_array_p): New function.
6335 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
6336 * common.opt (fstack-protector-strong): New option.
6337 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
6338 * doc/invoke.texi (Optimization Options): Document
6339 "-fstack-protector-strong".
6340 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
6341
4ffecb1f
SB
63422013-05-06 Steven Bosscher <steven@gcc.gnu.org>
6343
6344 * config/mips/mips.c (mips_machine_reorg2): Return 0.
6345
5a107a0f
VM
63462013-05-07 Vladimir Makarov <vmakarov@redhat.com>
6347
6348 * ira.c (update_equiv_regs): Add insn having equiv memory even if
6349 it is not lhs of the insn.
6350 (setup_reg_equiv): Remove insn having equiv memory which it is not
6351 lhs of the insn.
6352 * lra-constraints.c (process_address): Try to improve generation
6353 code for address base + disp.
6354 (lra_constraints): Make correct the code for checking insn setting
6355 up backward equivalence. Remove insn only if it is in the init
6356 insn list.
6357 * lra-eliminations.c (update_reg_eliminate): Change return value.
6358 (lra_eliminate): Use the result.
6359
3f5783ea
UB
63602013-05-07 Uros Bizjak <ubizjak@gmail.com>
6361
6362 * config/i386/sse.md (ssescalarnummask): New mode attribute.
6363 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
6364 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
6365 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
6366 register target operands.
6367 (*vec_extractv8hi_sse2): New pattern.
6368 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
6369 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
6370 (*vec_extract<mode>_mem): New insn and split pattern.
6371
8a5800b8
CL
63722013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
6373
6374 * config/arm/arm.c (arm_asan_shadow_offset): New function.
6375 (TARGET_ASAN_SHADOW_OFFSET): Define.
6376 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
6377 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
6378
7bf55a70
BS
63792013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6380
6381 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
6382 (incr_vec_index): Return -1 if increment not found.
6383 (create_add_on_incoming_edge): Assert if increment not found.
6384 (record_increment): Limit number of increments recorded.
6385 (all_phi_incrs_profitable): Return false if an increment not found.
6386 (replace_profitable_candidates): Don't process increments that were
6387 not recorded.
6388 (analyze_candidates_and_replace): Limit size of incr_vec.
6389
3f8825c0
RB
63902013-05-07 Richard Biener <rguenther@suse.de>
6391
6392 * calls.c (special_function_p): setjmp-like functions are leaf.
6393 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
6394 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
6395
fd4842cd
SN
63962013-05-07 Sofiane Naci <sofiane.naci@arm.com>
6397
6398 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
6399 (aarch64_simd_mov<mode>): New expander.
6400 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
6401 (aarch64_simd_mov_to_<mode>high): Likewise.
6402 (aarch64_simd_mov_from_<mode>low): Likewise.
6403 (aarch64_simd_mov_from_<mode>high): Likewise.
6404 (aarch64_dup_lane<mode>): Update.
6405 (aarch64_dup_lanedi): New instruction pattern.
6406 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
6407 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
6408
a7a7d10e
BS
64092013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6410
6411 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
6412 (replace_mult_candidate): Remove unnecessary argument; remove
6413 unnecessary parameter from call to introduce_cast_before_cand.
6414 (replace_unconditional_candidate): Remove unnecessary parameter
6415 from call to replace_mult_candidate.
6416 (replace_conditional_candidate): Likewise.
6417 (insert_initializers): Use make_temp_ssa_name.
6418 (introduce_cast_before_cand): Remove unnecessary argument; use
6419 make_temp_ssa_name.
6420 (replace_one_candidate): Remove unnecessary argument; remove
6421 unnecessary parameter from calls to introduce_cast_before_cand.
6422 (replace_profitable_candidates): Remove unnecessary parameters
6423 from calls to replace_one_candidate.
6424
29105868
BS
64252013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6426
6427 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
6428 phi def as possibly hiding a basis for a CAND_ADD whose operands
6429 have been commuted in the analysis.
6430 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
6431
4095f9fa
N
64322013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6433
6434 * config/aarch64/aarch64.md
6435 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
6436 shift value between 0-4.
6437
39e843e8
RB
64382013-05-07 Richard Biener <rguenther@suse.de>
6439
6440 * double-int.h (rshift): New overload.
6441 * double-int.c (rshift): New function.
6442 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
6443 (create_reference_ops_from_ref): Remove.
6444 (vn_reference_insert): Use shared ops for constructing the
6445 reference and copy it.
6446
0a1a83cb
RB
64472013-05-07 Richard Biener <rguenther@suse.de>
6448
6449 PR middle-end/57190
6450 * tree-eh.c (sink_clobbers): Properly propagate
6451 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
6452
43303d6f
JJ
64532013-05-07 Jakub Jelinek <jakub@redhat.com>
6454
ba7e83f8
JJ
6455 PR tree-optimization/57149
6456 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
6457 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
6458 collect_phi_def_edges, execute_late_warn_uninitialized): Use
6459 uninit_undefined_value_p instead of ssa_undefined_value_p.
6460
43303d6f
JJ
6461 PR debug/57184
6462 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
6463 for modifier == EXPAND_INITIALIZER.
6464
14523c25
AB
64652013-05-07 Anton Blanchard <anton@samba.org>
6466
6467 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
6468 for powerpc64 little endian.
6469 * configure: Regenerate.
6470
cb7c8be9
GS
64712013-05-06 Graham Stott <grahams@btinternet.com>
6472
6473 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
6474 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
6475 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
6476 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
6477
64782013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
6479
6480 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
6481 codes which allow non-lvalues.
6482
9a0ee7b0
MG
64832013-05-06 Marc Glisse <marc.glisse@inria.fr>
6484
6485 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
6486 components are all 1s.
6487 (integer_minus_onep): New function.
6488 * tree.h (integer_minus_onep): Declare it.
6489 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
6490 integer_minus_onep instead of integer_all_onesp.
6491
f2c17ea9
OE
64922013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6493
6494 PR target/52933
6495 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
6496 variations of these patterns.
6497
f75e6a51
UB
64982013-05-06 Uros Bizjak <ubizjak@gmail.com>
6499
6500 * config/i386/i386.md (isa): Add x64_sse4 member.
6501 (enabled): Handle x64_sse4.
6502 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
6503 instruction for 64bit SSE4_1 targets. Update insn attributes.
6504 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
6505 instruction for SSE4_1 targets. Update insn attributes.
6506 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6507 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
6508 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
6509 const_1 selector.
6510 (*vec_extractv4si): Rename from *sse4_1_pextrd.
6511 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
6512 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
6513
a986d468
OE
65142013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6515
6516 PR target/57108
6517 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
6518
382522cb
MK
65192013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
6520
6521 * final.c (do_assembler_dialects): Don't handle curly braces and
6522 vertical bar escaped by % as dialect delimiters.
6523 (output_asm_insn): Print curly braces and vertical bar if escaped
6524 by % and ASSEMBLER_DIALECT defined.
6525 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
6526 * doc/tm.texi: Regenerated.
6527
fb0d5c60
SB
65282013-05-06 Steven Bosscher <steven@gcc.gnu.org>
6529
fb0d5c60
SB
6530 * config/mips/mips.c: Include tree-pass.h.
6531 (mips_reorg): Split in pre- and post-dbr_schedule parts.
6532 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
6533 (pass_mips_machine_reorg2): New machine specific pass.
6534 (insert_pass_mips_machine_reorg2): New pass plugin definition.
6535 (mips_option_override): Register the new pass.
6536 * rtl.h (cleanup_barriers): Remove prototype.
6537 (dbr_schedule): Likewise.
6538 * jump.c (cleanup_barriers): Make static.
6539 * reorg.c (dbr_schedule): Likewise.
6540
aa06a978
RB
65412013-05-06 Richard Biener <rguenther@suse.de>
6542
6543 PR tree-optimization/57185
6544 * tree-parloops.c (add_field_for_reduction): Handle anonymous
6545 SSA names properly.
6546
0b953bec
UB
65472013-05-06 Uros Bizjak <ubizjak@gmail.com>
6548
6549 PR target/57106
6550 * config/i386/i386.c (add_parameter_dependencies): Add dependence
6551 between "first_arg" and "insn", not "last" and "insn".
6552
28708525
WS
65532013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6554
6555 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
6556 (find_candidates_in_block): Re-enable slsr_process_phi.
6557 (create_phi_basis): Fix double counting of candidate adjustment.
6558
0107dca2
RB
65592013-05-06 Richard Biener <rguenther@suse.de>
6560
6561 PR middle-end/57147
6562 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
6563 the edge is also fallthru, preserve it and just clear the
6564 abnormal flag.
6565 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
6566 also complex, preserve that and just clear the fallthru flag.
6567 * tree-inline.c (update_ssa_across_abnormal_edges): Also
6568 update virtual operands.
6569
470d4d13
AM
65702013-05-06 Alan Modra <amodra@gmail.com>
6571
6572 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
6573 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
6574 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
6575 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
6576 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6577 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
6578
8f1dbf8d
AM
65792013-05-06 Alan Modra <amodra@gmail.com>
6580
6581 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
6582 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
6583 (DEFAULT_ASM_ENDIAN): Define.
6584 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
6585 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
6586 Update -K PIC clause from sysv4.h.
6587 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
6588 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
6589
54890767
AM
65902013-05-06 Alan Modra <amodra@gmail.com>
6591
6592 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
6593 twice for little-endian.
6594 (ashrdi3_no_power, ashrdi3): Support little-endian.
6595
2353515d
OE
65962013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
6597
6598 PR target/55303
6599 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
6600 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
6601 related expanders.
6602 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
6603 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
6604 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
6605 New predicates.
6606
33e67557
SB
66072013-05-05 Steven Bosscher <steven@gcc.gnu.org>
6608 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6609
6610 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
6611 * config/pa/pa.opt: Make mbig-switch a no-op.
6612 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
6613 (CASE_VECTOR_MODE): Always return SImode.
6614 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
6615 for the !TARGET_BIG_SWITCH case.
6616 * config/pa/pa-linux.h: Likewise.
6617 * config/pa/pa-openbsd.h: Likewise.
6618 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
6619 * config/pa/pa.md (short_jump): Remove define_insn.
6620 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
6621 (casesi0): Remove define_insn.
6622 (type): Remove btable_branch.
6623 (pa_combine_type): Likewise.
6624 (in_nullified_branch_delay): Likewise.
6625 (in_call_delay): Likewise.
6626 (define_delay): Likewise.
6627 (define_insn_reservation "Z3"): Likewise.
6628 (define_insn_reservation "Z4"): Likewise.
6629 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
6630 (pa_adjust_insn_length): Remove adjustment for btable branches.
6631 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
6632 and mno-big-switch
6633
3095685e
UB
66342013-05-05 Uros Bizjak <ubizjak@gmail.com>
6635
6636 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
6637 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
6638 Add m->r,x alternatives.
6639 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
6640 splitters using SWI48x mode iterator.
6641 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
6642 TARGET_64BIT. Add m->x alternative.
6643 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
6644 Add o->x alternative. Enable for TARGET_SSE.
6645 (sse_storeq): Remove expander.
6646 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
6647 with memory input operand.
6648 (*vec_extractv2di_1 splitter): New.
6649 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
6650 * config/i386/i386.md (ssevecmodelower): New mode attribute.
6651
4b36ae28
SB
66522013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6653
6654 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
6655 (INT_LOWPART): Delete.
6656 (extract_MB): Adjust.
6657 (extract_ME): Adjust.
6658 (print_operand): Adjust.
6659
da226db2
SB
66602013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
6661
6662 * config/rs6000/predicates.md (reg_or_add_cint_operand,
6663 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6664 (reg_or_logical_cint_operand, easy_fp_constant,
6665 logical_const_operand): Delete "CONST_DOUBLE" case.
6666 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
6667 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 6668 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
6669 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
6670 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
6671 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
6672 test.
6673 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
6674 CONST_DOUBLE DImode/VOIDmode case.
6675 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
6676 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6677 CONST_DOUBLE VOIDmode case.
6678 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
6679 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
6680 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
6681 Delete CONST_DOUBLE case.
6682 (splitters for mov FMOVE64 const_double): Delete
6683 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
6684 "HOST_BITS_PER_WIDE_INT >= 64" test.
6685 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
6686 case.
6687 (mov DI const_double): Delete.
6688
40de22d6
JJ
66892013-05-04 Jakub Jelinek <jakub@redhat.com>
6690
6691 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
6692 on op shows all bits zero in mode of a lowpart subreg, return zero.
6693
5ec6aff2
MM
66942013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6695
6696 PR target/57150
6697 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
6698 to save TFmode registers and DImode to save TImode registers for
6699 caller save operations.
6700 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
6701 mark being partially clobbered since they only use the first
6702 double word.
6703
6704 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
6705 and TDmode only use the upper 64-bits of each VSX register.
6706
2cefad90
BS
67072013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6708
6709 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
6710 (find_candidates_in_block): Disable slsr_process_phi.
6711
d6d7eee1
GW
67122013-05-03 Guozhi Wei <carrot@google.com>
6713
6714 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
6715 constructor to ...
6716 (build_init_ctor): ... here.
d6d7eee1 6717
9b92d12b
BS
67182013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6719
6720 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
6721 (slsr_cand_d): Redefine def_phi.
6722 (stride_status, phi_adjust_status, count_phis_status): New enums.
6723 (find_phi_def): New.
6724 (find_basis_for_base_expr): New.
6725 (find_basis_for_candidate): Handle hidden bases.
6726 (alloc_cand_and_find_basis): Handle phi candidates.
6727 (slsr_process_phi): New.
6728 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
6729 (create_mul_imm_cand): Likewise.
6730 (create_add_ssa_cand): Exclude phi base candidates.
6731 (create_add_imm_cand): Likewise.
6732 (slsr_process_cast): Likewise.
6733 (slsr_process_copy): Likewise.
6734 (find_candidates_in_block): Handle phi candidates.
6735 (dump_candidate): Likewise.
6736 (unconditional_cands): Delete.
6737 (unconditional_cands_with_known_stride_p): Delete.
6738 (phi_dependent_cand_p): New.
6739 (cand_increment): Handle phi-dependent candidates.
6740 (replace_dependent): Delete.
6741 (replace_mult_candidate): New.
6742 (replace_unconditional_candidate): New.
6743 (incr_vec_index): Move to avoid forward reference.
6744 (create_add_on_incoming_edge): New.
6745 (create_phi_basis): New.
6746 (replace_dependents): Delete.
6747 (replace_conditional_candidate): New.
6748 (phi_add_costs): New.
6749 (replace_uncond_cands_and_profitable_phis): New.
6750 (record_increment): Handle phi adjustments.
6751 (record_phi_increments): New.
6752 (record_increments): Handle phi adjustments.
6753 (phi_incr_cost): New.
6754 (lowest_cost_path): Handle phis.
6755 (total_savings): Likewise.
6756 (analyze_increments): Likewise.
6757 (ncd_with_phi): New.
6758 (ncd_of_cand_and_phis): New.
6759 (nearest_common_dominator_for_cands): Handle phi increments.
6760 (all_phi_incrs_profitable): New.
6761 (replace_profitable_candidates): Handle phi-dependent candidates.
6762 (analyze_candidates_and_replace): Likewise.
6763
68f073d4
TJ
67642013-05-03 Teresa Johnson <tejohnson@google.com>
6765
6766 PR bootstrap/57154
6767 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
6768 do not exceed REG_BR_PROB_BASE.
6769
a4ee7cb9
JL
67702013-05-03 Jeff Law <law@redhat.com>
6771
ade67f70 6772 PR tree-optimization/57144
a4ee7cb9
JL
6773 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
6774 operand of the condition will bit into the new type when eliminating
6775 a cast feeding a condition.
6776
47954c4e
JJ
67772013-05-03 Jakub Jelinek <jakub@redhat.com>
6778
6779 PR rtl-optimization/57130
3095685e
UB
6780 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
6781 of COMPARE as in_code to the recursive call if needed.
47954c4e 6782
3c21604f
UB
67832013-05-03 Uros Bizjak <ubizjak@gmail.com>
6784
6785 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
6786 (enabled): Handle new members.
6787 * config/i386/sse.md (*vec_concatv2si): Merge from
6788 *vec_concatv2si_sse2 and vec_concatv2si_sse.
6789 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
6790
95c03b36
JR
67912013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
6792
6793 PR tree-optimization/57027
6794 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
6795 for fnms opportunity, check we got the prerequisite kind
6796 of tree / gimple before using accessor functions.
6797
07bfc9ec
RB
67982013-05-03 Richard Biener <rguenther@suse.de>
6799
6800 * double-int.h (lshift): New overload without precision
6801 and arith argument.
6802 (operator *=, operator +=, operator -=): Move ...
6803 * double-int.c (operator *=, operator +=, operator -=): ... here
6804 and implement more efficiently.
6805 (mul_double_with_sign): Remove.
6806 (lshift_double): Adjust to take unsinged shift argument, push
6807 dispatching code to callers.
6808 (mul_double_wide_with_sign): Add early out for callers that
6809 are not interested in high parts or overflow.
6810 (lshift): New function.
6811 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
6812 dispatch code here.
6813 (lrotate, rrotate): Use logical shifts.
6814 * expr.c (get_inner_reference): Use lshift.
6815 * fixed-value.c (do_fixed_divide): Likewise.
6816 * tree-dfa.c (get_ref_base_and_extent): Likewise.
6817 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
6818 (indirect_refs_may_alias_p): Likewise.
6819 (stmt_kills_ref_p_1): Likewise.
6820
7769bb64
VP
68212013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6822
6823 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
6824
1d0c8e5c
VP
68252013-05-03 Vidya Praveen <vidyapraveen@arm.com>
6826
6827 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
6828 scalar form of FABD instruction.
6829
f15feaf9
VM
68302013-05-02 Vladimir Makarov <vmakarov@redhat.com>
6831
6832 * lra-constraints.c (process_alt_operands): Add checking alt
6833 number to choose the best alternative.
6834
d90e76d4
RB
68352013-05-02 Richard Biener <rguenther@suse.de>
6836
6837 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
6838 bitmap and its handling.
6839 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
6840
9f8e7a96
RB
68412013-05-02 Richard Biener <rguenther@suse.de>
6842
6843 PR middle-end/57140
6844 * tree-inline.c (copy_loops): Properly handle removed loops.
6845 (copy_cfg_body): Mark destination loops for fixup if source
6846 loops needed fixup.
6847
f3a81b39
GY
68482013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
6849
6850 PR target/56732
6851 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
6852 generating simple_return for naked functions.
6853
7b920a9a
MJ
68542013-05-02 Martin Jambor <mjambor@suse.cz>
6855
6856 PR middle-end/56988
6857 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
6858 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
6859 flags match.
6860 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
6861 ipa_agg_replacement_value structures.
6862 (known_aggs_to_agg_replacement_list): Likewise.
6863 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
6864 (read_agg_replacement_chain): Likewise.
6865 (ipcp_transform_function): Also check that by_ref flags match.
6866
2c41c19d
RB
68672013-05-02 Richard Biener <rguenther@suse.de>
6868
6869 * graphds.h (struct graph): Add obstack member.
6870 * graphds.c (new_graph): Initialize obstack and allocate
6871 vertices from it.
6872 (add_edge): Allocate edge from the obstack.
3c21604f 6873 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 6874
8b47039c
TJ
68752013-05-02 Teresa Johnson <tejohnson@google.com>
6876
6877 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
6878 divides.
6879 * cfg.c (update_bb_profile_for_threading): Ditto.
6880 * tree-inline.c (copy_bb): Ditto.
6881 (copy_edges_for_bb): Ditto.
6882 (initialize_cfun): Ditto.
6883 (copy_cfg_body): Ditto.
6884 (expand_call_inline): Ditto.
6885 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
6886 (estimate_node_size_and_time): Ditto.
6887 (inline_merge_summary): Ditto.
6888 * cgraphclones.c (cgraph_clone_edge): Ditto.
6889 (cgraph_clone_node): Ditto.
6890 * sched-rgn.c (compute_dom_prob_ps): Ditto.
6891 (compute_trg_info): Ditto.
6892
da65928c
IB
68932013-05-02 Ian Bolton <ian.bolton@arm.com>
6894
6895 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
6896 S reg when fp attribute set.
6897 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
6898
add3c965
IB
68992013-05-02 Ian Bolton <ian.bolton@arm.com>
6900
6901 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
6902 New pattern.
6903 (*and_one_cmplsi3_compare0_uxtw): Likewise.
6904 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
6905 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
6906
fdd43ac4
RB
69072013-05-02 Richard Biener <rguenther@suse.de>
6908
6909 * tree-scalar-evolution.c (scev_info_hasher): Remove.
6910 (struct instantiate_cache_entry): New type.
6911 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
6912 (struct instantiate_cache_type): New type.
6913 (set_instantiated_value, get_instantiated_value): Remove.
6914 (get_instantiated_value_entry): New function.
6915 (instantiate_scev_name): Use the new cache and adjust.
6916 (instantiate_scev_poly): Adjust.
6917 (instantiate_scev_binary): Likewise.
6918 (instantiate_array_ref): Likewise.
6919 (instantiate_scev_convert): Likewise.
6920 (instantiate_scev_not): Likewise.
6921 (instantiate_scev_3): Likewise.
6922 (instantiate_scev_2): Likewise.
6923 (instantiate_scev_r): Likewise.
6924 (instantiate_scev): Likewise.
6925 (resolve_mixers): Likewise.
6926
36ff9dfb
VM
69272013-05-01 Vladimir Makarov <vmakarov@redhat.com>
6928
6929 PR target/57091
6930 * lra-constraints.c (best_small_class_operands_num): Remove.
6931 (process_alt_operands): Remove small_class_operands_num. Take
6932 small classes operands into losers and only if the operand is not
6933 matched. Modify debugging output.
6934 (curr_insn_transform): Remove best_small_class_operands_num.
6935 Print insn name.
6936
36054fab
JG
69372013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6938
6939 * config/aarch64/aarch64-builtins.c
6940 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
6941 * config/aarch64/aarch64-simd-builtins.def
6942 (reduc_splus_): Add new modes.
6943 (reduc_uplus_): New.
6944 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
6945 (reduc_uplus_v4sf): Likewise.
6946 (reduc_splus_v4sf): Likewise.
6947 (aarch64_addv<mode>): Likewise.
6948 (reduc_uplus_<mode>): Likewise.
6949 (reduc_splus_<mode>): Likewise.
6950 (aarch64_addvv2di): Likewise.
6951 (reduc_uplus_v2di): Likewise.
6952 (reduc_splus_v2di): Likewise.
6953 (aarch64_addvv2si): Likewise.
6954 (reduc_uplus_v2si): Likewise.
6955 (reduc_splus_v2si): Likewise.
6956 (reduc_<sur>plus_<mode>): New.
6957 (reduc_<sur>plus_v2di): Likewise.
6958 (reduc_<sur>plus_v2si): Likewise.
6959 (reduc_<sur>plus_v4sf): Likewise.
6960 (aarch64_addpv4sf): Likewise.
6961 * config/aarch64/arm_neon.h
6962 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
6963 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
6964 add UNSPEC_SADDV, UNSPEC_UADDV.
6965 (SUADDV): New.
6966 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
6967
6dce23a8
JG
69682013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6969
6970 * config/aarch64/arm_neon.h
6971 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
6972
1598945b
JG
69732013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6974
6975 * config/aarch64/aarch64-builtins
6976 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
6977
998eaf97
JG
69782013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
6979
6980 * config/aarch64/aarch64-simd-builtins.def
6981 (reduc_smax_): New.
6982 (reduc_smin_): Likewise.
6983 (reduc_umax_): Likewise.
6984 (reduc_umin_): Likewise.
6985 (reduc_smax_nan_): Likewise.
6986 (reduc_smin_nan_): Likewise.
6987 (fmax): Remove.
6988 (fmin): Likewise.
6989 (smax): Update for V2SF, V4SF and V2DF modes.
6990 (smin): Likewise.
6991 (smax_nan): New.
6992 (smin_nan): Likewise.
6993 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
6994 (<su><maxmin><mode>3): ...This, refactor.
6995 (s<maxmin><mode>3): New.
6996 (<maxmin_uns><mode>3): Likewise.
6997 (reduc_<maxmin_uns>_<mode>): Refactor.
6998 (reduc_<maxmin_uns>_v4sf): Likewise.
6999 (reduc_<maxmin_uns>_v2si): Likewise.
7000 (aarch64_<fmaxmin><mode>: Remove.
7001 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
7002 new builtin names.
7003 (vmin<q>_f<32,64>): Likewise.
7004 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
7005 (FMAXMIN): New.
7006 (su): Add mappings for smax, smin, umax, umin.
7007 (maxmin): New.
7008 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
7009 (FMAXMIN): Rename as...
7010 (FMAXMIN_UNS): ...This.
7011 (maxminv): Remove.
7012 (fmaxminv): Likewise.
7013 (fmaxmin): Likewise.
7014 (maxmin_uns): New.
7015 (maxmin_uns_op): Likewise.
7016
bd11644e
JG
70172013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
7018
7019 * config/aarch64/arm_neon.h
7020 (vac<ge, gt><sd>_f<32, 64>): Rename to...
7021 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
7022 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
7023
75dd5ace
JG
70242013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
7025
7026 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
7027 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
7028
7c19979f
JG
70292013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
7030
7031 * config/aarch64/aarch64-simd.md
7032 (vcond<mode>_internal): Handle special cases for constant masks.
7033 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
7034 (vcondu<mode><mode>): Likewise.
7035 (vcond<v_cmp_result><mode>): New.
7036
bb60efd9
JG
70372013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
7038
7039 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
7040 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
7041 * config/aarch64/aarch64-simd-builtins.def
7042 (cmeq): Update to BUILTIN_VALLDI.
7043 (cmgt): Likewise.
7044 (cmge): Likewise.
7045 (cmle): Likewise.
7046 (cmlt): Likewise.
7047 * config/aarch64/arm_neon.h
7048 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
7049 to builtins or C as appropriate.
7050
889b9412
JG
70512013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
7052
7053 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
7054 (cmgeu): ...This.
7055 (cmhi): Rename to...
7056 (cmgtu): ...This.
7057 * config/aarch64/aarch64-simd.md
7058 (simd_mode): Add SF.
7059 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
7060 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
7061 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
7062 (cstore<mode>_neg): ...This.
7063 * config/aarch64/iterators.md
7064 (VALLF): new.
7065 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
7066 (COMPARISONS): New.
7067 (UCOMPARISONS): Likewise.
7068 (optab): Add missing comparisons.
7069 (n_optab): New.
7070 (cmp_1): Likewise.
7071 (cmp_2): Likewise.
7072 (CMP): Likewise.
7073 (cmp): Remove.
7074 (VCMP_S): Likewise.
7075 (VCMP_U): Likewise.
7076 (V_cmp_result): Add DF, SF modes.
7077 (v_cmp_result): Likewise.
7078 (v): Likewise.
7079 (vmtype): Likewise.
7080 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
7081
0a7dbb76
GY
70822013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
7083
7084 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
7085 define_insn to define_insn_and_split.
7086 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
7087 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
7088 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
7089 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
7090 (thumb2_negscc): Likewise.
7091
fb614ca6
GY
70922013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
7093
7094 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
7095
9e64a0bf
GY
70962013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
7097
7098 * config/arm/thumb2.md: Remove trailing whitespaces.
7099
d6b28156
RS
71002013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
7101
7102 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
7103 Use gen_int_mode rather than GEN_INT.
7104
f91674c3
L
71052013-04-30 H.J. Lu <hongjiu.lu@intel.com>
7106
b0dec607 7107 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
7108 debug_gimple_stmt.
7109
3551257c
RB
71102013-04-30 Richard Biener <rguenther@suse.de>
7111
7112 PR middle-end/57122
3c21604f 7113 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 7114
4c1aff1c
RB
71152013-04-30 Richard Biener <rguenther@suse.de>
7116
7117 PR middle-end/57107
7118 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
7119
54b8379a
AB
71202013-04-30 Andrey Belevantsev <abel@ispras.ru>
7121
7122 PR rtl-optimization/56957
7123 PR rtl-optimization/57105
54b8379a
AB
7124 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
7125 variable. Use just INSN_UID for determining whether an insn
7126 should be only disconnected from the insn stream.
7127 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
7128
abc27962
JJ
71292013-04-30 Jakub Jelinek <jakub@redhat.com>
7130
7131 PR tree-optimization/57104
7132 * tsan.c (instrument_expr): Don't instrument accesses to
7133 DECL_HARD_REGISTER VAR_DECLs.
7134
0fc822d0
RB
71352013-04-30 Richard Biener <rguenther@suse.de>
7136
7137 * function.h (loops_for_fn): New inline function.
7138 (set_loops_for_fn): Likewise.
7139 * cfgloop.h (place_new_loop): Add struct function parameter.
7140 (get_loop): Likewise.
7141 (get_loops): Likewise.
7142 (number_of_loops): Likewise.
7143 (fel_next): Adjust.
7144 (fel_init): Likewise.
7145 * cfg.c (get_loop_copy): Adjust.
7146 * cfgloop.c (flow_loops_dump): Likewise.
7147 (record_loop_exits): Likewise.
7148 (verify_loop_structure): Likewise.
7149 * cfgloopanal.c (mark_irreducible_loops): Likewise.
7150 (estimate_reg_pressure_cost): Likewise.
7151 (mark_loop_exit_edges): Likewise.
7152 * cfgloopmanip.c (place_new_loop): Likewise.
7153 (add_loop): Likewise.
7154 (duplicate_loop): Likewise.
7155 * graph.c (draw_cfg_nodes): Likewise.
7156 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
7157 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
7158 (extract_affine_chrec): Likewise.
7159 (build_scop_iteration_domain): Likewise.
7160 * graphite.c (graphite_initialize): Likewise.
7161 * ira-build.c (create_loop_tree_nodes): Likewise.
7162 (more_one_region_p): Likewise.
7163 (rebuild_regno_allocno_maps): Likewise.
7164 (mark_loops_for_removal): Likewise.
7165 (mark_all_loops_for_removal): Likewise.
7166 (remove_unnecessary_regions): Likewise.
7167 (ira_build): Likewise.
7168 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
7169 * loop-init.c (fix_loop_structure): Likewise.
7170 (gate_rtl_move_loop_invariants): Likewise.
7171 (gate_rtl_unswitch): Likewise.
7172 (gate_rtl_unroll_and_peel_loops): Likewise.
7173 (rtl_doloop): Likewise.
7174 * lto-streamer-in.c (input_cfg): Likewise.
7175 * lto-streamer-out.c (output_cfg): Likewise.
7176 * modulo-sched.c (sms_schedule): Likewise.
7177 * predict.c (tree_estimate_probability): Likewise.
7178 (tree_estimate_probability_driver): Likewise.
7179 (estimate_loops): Likewise.
7180 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
7181 (move_sese_region_to_fn): Likewise.
7182 (debug_loop_num): Likewise.
7183 * tree-chrec.c (chrec_evaluate): Likewise.
7184 (hide_evolution_in_other_loops_than_loop): Likewise.
7185 (chrec_component_in_loop_num): Likewise.
7186 (reset_evolution_in_loop): Likewise.
7187 (evolution_function_is_invariant_rec_p): Likewise.
7188 * tree-if-conv.c (main_tree_if_conversion): Likewise.
7189 * tree-inline.c (copy_loops): Likewise.
7190 (copy_cfg_body): Likewise.
7191 (tree_function_versioning): Likewise.
7192 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
7193 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
7194 Likewise.
7195 (add_to_evolution_1): Likewise.
7196 (scev_const_prop): Likewise.
7197 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
7198 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
7199 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
7200 (tree_ssa_lim_initialize): Likewise.
7201 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
7202 (verify_loop_closed_ssa): Likewise.
7203 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
7204 (tree_ssa_loop_im): Likewise.
7205 (tree_ssa_loop_unswitch): Likewise.
7206 (tree_vectorize): Likewise.
7207 (check_data_deps): Likewise.
7208 (tree_ssa_loop_ivcanon): Likewise.
7209 (tree_ssa_loop_bounds): Likewise.
7210 (tree_complete_unroll): Likewise.
7211 (tree_complete_unroll_inner): Likewise.
7212 (tree_parallelize_loops): Likewise.
7213 (tree_ssa_loop_prefetch): Likewise.
7214 (tree_ssa_loop_ivopts): Likewise.
7215 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
7216 * tree-vectorizer.c (vectorize_loops): Likewise.
7217
37953bd3
MF
72182013-04-29 Mike Frysinger <vapier@gentoo.org>
7219
7220 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
7221 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
7222 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
7223 with EABI_LINK_SPEC.
7224
f9ed28db
UB
72252013-04-29 Uros Bizjak <ubizjak@gmail.com>
7226
7227 PR target/44578
7228 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
7229 alternative.
7230
deca73f5
VM
72312013-04-29 Vladimir Makarov <vmakarov@redhat.com>
7232
7233 PR target/57097
37953bd3 7234 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
7235 using memory for pseudos. Print cost dump for alternatives.
7236 Modify cost values for conflicts with early clobbers.
7237 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
7238
fdca7d03
UB
72392013-04-29 Uros Bizjak <ubizjak@gmail.com>
7240
7241 PR target/57098
7242 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
7243
0b064172
IB
72442013-04-29 Ian Bolton <ian.bolton@arm.com>
7245
7246 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
7247 from/to S register.
7248 (movdi_aarch64): Support LDR/STR from/to D register.
7249
473cec55
IB
72502013-04-29 Ian Bolton <ian.bolton@arm.com>
7251
7252 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
7253 or higher by default.
7254
a6f30e66
RB
72552013-04-29 Richard Biener <rguenther@suse.de>
7256
7257 PR middle-end/57075
7258 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
7259 even if not adding abnormal edges for calls that can make
7260 abnormal gotos.
7261
0c2b2040
RB
72622013-04-29 Richard Biener <rguenther@suse.de>
7263
7264 PR middle-end/57103
7265 * tree-cfg.c (move_stmt_op): Fix condition under which to update
7266 TREE_BLOCK.
7267 (move_stmt_r): Remove redundant checking.
7268
f41f80f9
TJ
72692013-04-29 Teresa Johnson <tejohnson@google.com>
7270
7271 PR bootstrap/57077
7272 * basic-block.h (apply_scale): New function.
7273 (apply_probability): Use apply_scale.
7274 * gimple-streamer-in.c (input_bb): Ditto.
7275 * lto-streamer-in.c (input_cfg): Ditto.
7276 * lto-cgraph.c (merge_profile_summaries): Ditto.
7277 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 7278 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
7279 (copy_edges_for_bb): Ditto.
7280 (copy_cfg_body): Ditto.
7281
315bbd2e
TV
72822013-04-29 Tom de Vries <tom@codesourcery.com>
7283
7284 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
7285 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
7286 (tail_merge_optimize): Handle current_loops == NULL.
7287
ebbd90d8
JL
72882013-04-26 Jeff Law <law@redhat.com>
7289
7290 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
7291 (simplify_cond_using_ranges): Generalize code to simplify
7292 COND_EXPRs where one argument is a constant and the other
7293 is an SSA_NAME created by an integral type conversion.
7294
8b9b57eb
KT
72952013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7296
7297 * config/arm/arm.md (store_minmaxsi): Use only when
7298 optimize_insn_for_size_p.
7299
9498e5dc
CB
73002013-04-29 Christian Bruel <christian.bruel@st.com>
7301
7302 PR target/57108
7303 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
7304
6093bc06
RB
73052013-04-29 Richard Biener <rguenther@suse.de>
7306
7307 PR middle-end/57089
fdca7d03
UB
7308 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
7309 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
7310 (expand_omp_for_generic): Properly add loops.
7311 (expand_omp_for_static_nochunk): Likewise.
7312 (expand_omp_for_static_chunk): Likewise.
7313 (expand_omp_for): For the degenerate case fixup loops.
7314 (expand_omp_sections): Fix default bb placement in loops.
7315 (expand_omp_atomic_pipeline): Properly add loops.
7316
84aacbfd
KT
73172013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7318
7319 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
7320
8dee4479
TV
73212013-04-29 Tom de Vries <tom@codesourcery.com>
7322
7323 * tree-ssa-tail-merge.c: Update header comment.
7324
47934dc4
JG
73252013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7326
7327 * config/aarch64/arm_neon.h
7328 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
7329 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
7330 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
7331 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
7332 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
7333 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
7334 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
7335 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
7336
384be29f
JG
73372013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7338
7339 * config/aarch64/aarch64-simd.md
7340 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
7341 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
7342 fix_trunc, fixuns_trunc.
7343 (ftrunc<VDQF:mode>2): New.
7344 * config/aarch64/iterators.md (optab): Add fix, fixuns.
7345 (fix_trunc_optab): New.
7346
0386b123
JG
73472013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7348
7349 * config/aarch64/aarch64-builtins.c
7350 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
7351 iceilf, lround, iroundf.
7352
00fcb892
UB
73532013-04-29 Uros Bizjak <ubizjak@gmail.com>
7354
7355 PR target/54349
7356 * config/i386/i386.h (enum ix86_tune_indices)
7357 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
7358 New, split from X86_TUNE_INTER_UNIT_MOVES.
7359 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
7360 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
7361 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
7362 (TARGET_INTER_UNIT_MOVES): Remove.
7363 * config/i386/i386.c (initial_ix86_tune_features): Update.
7364 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
7365 (ix86_expand_convert_uns_didf_sse): Use
7366 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
7367 (ix86_expand_vector_init_one_nonzero): Ditto.
7368 (ix86_expand_vector_init_interleave): Ditto.
7369 (inline_secondary_memory_needed): Return true for moves from SSE class
7370 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
7371 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
7372 * config/i386/constraints.md (Yi, Ym): Depend on
7373 TARGET_INTER_UNIT_MOVES_TO_VEC.
7374 (Yj, Yn): New constraints.
7375 * config/i386/i386.md (*movdi_internal): Change constraints of
7376 operand 1 from Yi to Yj and from Ym to Yn.
7377 (*movsi_internal): Ditto.
7378 (*movdf_internal): Ditto.
7379 (*movsf_internal): Ditto.
7380 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
7381 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
7382 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
7383 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
7384 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
7385 * config/i386/sse.md (movdi_to_sse): Ditto.
7386 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
7387 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
7388 TARGET_INTER_UNIT_MOVES.
7389 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
7390 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
7391 instead of TARGET_INTER_UNIT_MOVES.
7392 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
7393 operand 1 from Yi to Yj and from Ym to Yn.
7394
4c871069
JG
73952013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7396
7397 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
7398 (float_truncate_hi_): Likewise.
7399 (float_extend_lo_): Likewise.
7400 (float_truncate_lo_): Likewise.
7401 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
7402 (aarch64_float_extend_lo_v2df): Likewise.
7403 (vec_unpacks_hi_v4sf): Likewise.
7404 (aarch64_float_truncate_lo_v2sf): Likewise.
7405 (aarch64_float_truncate_hi_v4sf): Likewise.
7406 (vec_pack_trunc_v2df): Likewise.
7407 (vec_pack_trunc_df): Likewise.
7408
1709ff9b
JG
74092013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7410
7411 * config/aarch64/aarch64-builtins.c
7412 (aarch64_fold_builtin): Fold float conversions.
7413 * config/aarch64/aarch64-simd-builtins.def
7414 (floatv2si, floatv4si, floatv2di): New.
7415 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
7416 * config/aarch64/aarch64-simd.md
7417 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
7418 * config/aarch64/iterators.md (FLOATUORS): New.
7419 (optab): Add float, floatuns.
7420 (su_optab): Likewise.
7421
ce966824
JG
74222013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7423
7424 * config/aarch64/aarch64-builtins.c
7425 (aarch64_builtin_vectorized_function): Use new names for
7426 fcvt builtins.
7427 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
7428 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
7429 (fcvtzu): Split as...
7430 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
7431 (fcvtas): Split as...
7432 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
7433 (fcvtau): Split as...
7434 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
7435 (fcvtps): Split as...
7436 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
7437 (fcvtpu): Split as...
7438 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
7439 (fcvtms): Split as...
7440 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
7441 (fcvtmu): Split as...
7442 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
7443 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
7444 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
7445 (lfrintnusf, lfrintnudf): Likewise.
7446 * config/aarch64/aarch64-simd.md
7447 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
7448 define_insn.
7449 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
7450 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
7451 (fcvt_pattern): Likewise.
7452
b9de24fe
JG
74532013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7454
7455 * config/aarch64/aarch64-simd.md
7456 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
7457 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
7458
77a205be
JG
74592013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7460
7461 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
7462 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
7463 (vrnd<a,m,n,p>_f32): Implement using builtins.
7464 (vrnd<i,x><q>_f<32, 64>): New.
7465
0659ce6f
JG
74662013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
7467
7468 * config/aarch64/aarch64-builtins.c
7469 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
7470 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
7471 (frintz): Rename to...
7472 (btrunc): ...this.
7473 (frintp): Rename to...
7474 (ceil): ...this.
7475 (frintm): Rename to...
7476 (floor): ...this.
7477 (frinti): Rename to...
7478 (nearbyint): ...this.
7479 (frintx): Rename to...
7480 (rint): ...this.
7481 (frinta): Rename to...
7482 (round): ...this.
7483 * config/aarch64/aarch64-simd.md
7484 (aarch64_frint<frint_suffix><mode>): Delete.
7485 (<frint_pattern><mode>2): Convert to insn.
7486 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
7487 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
7488 (frint_pattern): Likewise.
7489 (frint_suffix): Likewise.
7490
ea78906a
RB
74912013-04-29 Richard Biener <rguenther@suse.de>
7492
7493 PR tree-optimization/57081
7494 * loop-init.c: Include tree-flow.h.
7495 (loop_optimizer_finalize): Free number of iteration estimates.
7496 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
7497
baee1763
JJ
74982013-04-29 Jakub Jelinek <jakub@redhat.com>
7499
94dc5332
JJ
7500 PR tree-optimization/57083
7501 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
7502 non-singleton shift count range, zero extend low_bound for uns case.
7503
baee1763
JJ
7504 * config/i386/predicates.md (general_vector_operand): New predicate.
7505 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
7506 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
7507 if they aren't nonimmediate operands. If their original values
7508 satisfy const_vector_equal_evenodd_p, don't shift them.
7509 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
7510 predicates. For the SSE4.1 case force operands[{1,2}] into registers
7511 if not nonimmediate_operand.
7512 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
7513 instead of register_operand.
7514 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
7515
a9073727 75162013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
7517
7518 * stor-layout.c (finalize_size_functions): Allocate a structure and
7519 reset cfun before dumping the functions.
7520
ba8011e6
JJ
75212013-04-27 Jakub Jelinek <jakub@redhat.com>
7522
d6fde69e
JJ
7523 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
7524
ba8011e6
JJ
7525 PR target/56866
7526 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
7527 use xop_pmacsdqh if uns_p.
7528 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
7529 the immediate rotate count.
7530
2c62cbaa
VM
75312013-04-26 Vladimir Makarov <vmakarov@redhat.com>
7532
7533 * rtl.h (struct rtx_def): Add comment for field jump.
7534 (LRA_SUBREG_P): New macro.
7535 * recog.c (register_operand): Check LRA_SUBREG_P.
7536 * lra.c (lra): Add note at the end of RTL code. Align non-empty
7537 stack frame.
7538 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
7539 (lra_final_code_change): Skip subreg change for operators.
7540 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
7541 if there are no operand changes.
7542 * lra-constraints.c (curr_insn_set): New.
7543 (match_reload): Set LRA_SUBREG_P.
7544 (emit_spill_move): Ditto.
7545 (check_and_process_move): Use curr_insn_set. Process only single
7546 set insns. Don't initialize sec_mem_p and change_p.
7547 (simplify_operand_subreg): Use LRA_SUBREG_P.
7548 (reg_in_class_p): New function.
7549 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
7550 of #ifdef. Add code to remove cycling.
7551 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
7552 non-null disp. Reload inner instead of disp when base and index
7553 are null. Try to put lo_sum into register.
7554 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
7555 (check_and_process_move): Move code for move cost check to
7556 simple_move_p. Remove equiv_substitution.
7557 (simple_move_p): New function.
7558 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
7559 curr_insn_set. Call check_and_process_move only for single set
7560 insns. Use the new function. Move call of check_and_process_move
7561 after operand equiv substitution and address process.
7562
e7d764f3
JJ
75632013-04-26 Jakub Jelinek <jakub@redhat.com>
7564
7565 PR go/57045
7566 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
7567 with nonlocal goto receivers or returns twice calls, ignore
7568 unininitialized values from abnormal edges to nl goto receiver
7569 or returns twice call.
7570
41e10689
JJ
75712013-04-26 Jakub Jelinek <jakub@redhat.com>
7572
7573 PR tree-optimization/57051
7574 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
7575 and VEC_RSHIFT_EXPR if shift count is a multiple of element
7576 bitsize.
7577
d7ed20db
RB
75782013-04-26 Richard Biener <rguenther@suse.de>
7579
7580 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
7581 (expand_omp_taskreg): Likewise. Mark loops for fixup.
7582 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
7583 (fixup_loop_arrays_after_move): New function.
7584 (move_sese_region_to_fn): Properly outline the loop tree parts
7585 of the SESE region.
7586
df93505e
UB
75872013-04-26 Uros Bizjak <ubizjak@gmail.com>
7588
7589 * config/i386/i386.md (type, unit): Fix long lines.
7590
dd366ec3
RB
75912013-04-26 Richard Biener <rguenther@suse.de>
7592
7593 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
7594 (lto-streamer-out.o): Likewise.
7595 * cfgloop.c (init_loops_structure): Export, add struct function
7596 argument and adjust.
7597 (flow_loops_find): Adjust.
7598 * cfgloop.h (enum loop_estimation): Add EST_LAST.
7599 (init_loops_structure): Declare.
7600 * lto-streamer-in.c: Include cfgloop.h.
7601 (input_cfg): Input the loop tree.
7602 * lto-streamer-out.c: Include cfgloop.h.
7603 (output_cfg): Output the loop tree.
7604 (output_struct_function_base): Do not drop PROP_loops.
7605
a9e0d843
RB
76062013-03-26 Richard Biener <rguenther@suse.de>
7607
7608 * tree-cfg.c (execute_build_cfg): Build the loop tree.
7609 (pass_build_cfg): Provide PROP_loops.
7610 (move_sese_region_to_fn): Remove loops that are outlined into fn
7611 for now.
7612 * tree-inline.c: Include cfgloop.h.
7613 (initialize_cfun): Do not drop PROP_loops.
7614 (copy_loops): New function.
7615 (copy_cfg_body): Copy loop structure.
7616 (tree_function_versioning): Initialize destination loop tree.
7617 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
7618 (pass_parallelize_loops): Do IL verification.
7619 * loop-init.c (loop_optimizer_init): Fixup loops if required.
7620 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
7621 the CFG make sure we fixup loops as well.
7622 * tree-ssa-tail-merge.c: Include cfgloop.h.
7623 (replace_block_by): When merging loop latches mark loops for fixup.
7624 * lto-streamer-out.c (output_struct_function_base): Drop
7625 PROP_loops for now.
7626 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
7627 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
7628 * ipa-split.c: Include cfgloop.h.
7629 (split_function): Add the new return block to the loop tree root.
7630 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
7631 whether we have removed the forwarder block.
7632 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
7633 * cfgloop.h (place_new_loop): Declare.
7634 * cfgloopmanip.c (place_new_loop): Export.
7635 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
7636 (tree-switch-conversion.o): Likewise.
7637 (tree-complex.o): Likewise.
7638 (tree-inline.o): Likewise.
7639 (tree-ssa-tailmerge.o): Likewise.
7640 (ipa-split.o): Likewise.
7641 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
7642 (tree-ssa-copy.o): Likewise.
7643 * tree-switch-conversion.c: Include cfgloop.h
7644 (process_switch): If we emit a bit-test cascade, schedule loops
7645 for fixup.
7646 * tree-complex.c: Include cfgloop.h.
7647 (expand_complex_div_wide): Properly add new basic-blocks to loops.
7648 * asan.c: Include cfgloop.h.
7649 (create_cond_insert_point): Properly add new basic-blocks to
7650 loops, schedule loop fixup.
7651 * cfgloop.c (verify_loop_structure): Check that looks are not
7652 marked for fixup.
7653 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
7654 to loops.
7655 (expand_omp_for_generic): Likewise.
7656 (expand_omp_sections): Likewise.
7657 (expand_omp_atomic_pipeline): Schedule loops for fixup.
7658 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
7659 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
7660 is initialized, not when loops are present.
7661 * tree-parloops.c (parallelize_loops): Remove checking here.
7662 * passes.c (init_optimization_passes): Schedule a copy-propagation
7663 pass before complete unrolling of inner loops.
7664
e78e8a0b
JJ
76652013-04-26 Jakub Jelinek <jakub@redhat.com>
7666
a2e836b2
JJ
7667 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
7668 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
7669 (colorize_init): Add argument to _WIN32 version.
7670 * toplev.c: Include diagnostic-color.h.
7671 (process_options): Default to -fdiagnostics-color=auto if
7672 GCC_COLORS env var is in the environment.
7673 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
7674 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
7675 env var is in the environment, the default is auto rather than never.
a2e836b2 7676
e78e8a0b
JJ
7677 * diagnostic.h (file_name_as_prefix): Add context argument.
7678 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
7679 the string as locus.
7680 * langhooks.c (lhd_print_error_function): Adjust caller.
7681
013e5ef9
LC
76822013-04-25 Lawrence Crowl <crowl@google.com>
7683
7684 * var-tracking.c (shared_hash_def::htab):
7685 Change type to hash_table. Update dependent calls and types.
7686
4a8fb1a1
LC
76872013-04-25 Lawrence Crowl <crowl@google.com>
7688
7689 * Makefile.in: Update as needed below.
7690
7691 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
7692 Move declaration to after the type's method definitons.
7693
7694 * attribs.c (htab_t scoped_attributes::attribute_hash):
7695 Change type to hash_table. Update dependent calls and types.
7696
7697 * bitmap.c (htab_t bitmap_desc_hash):
7698 Change type to hash_table. Update dependent calls and types.
7699
7700 * cselib.c (htab_t cselib_hash_table):
7701 Change type to hash_table. Update dependent calls and types.
7702
7703 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
7704 (hash_string_slot_node): Move implementation into lto-streamer.h
7705 struct string_slot_hasher.
7706 (eq_string_slot_node): Likewise.
7707
7708 * data-streamer-out.c: Update output_block::string_hash_table
7709 dependent calls and types.
7710
7711 * dwarf2cfi.c (htab_t trace_index):
7712 Change type to hash_table. Update dependent calls and types.
7713
7714 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
7715 Change type to hash_table. Update dependent calls and types.
7716 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
7717 (htab_t optimize_external_refs::map): Likewise.
7718 (htab_t output_comp_unit::extern_map): Likewise.
7719 (htab_t output_comdat_type_unit::extern_map): Likewise.
7720 (htab_t output_macinfo::macinfo_htab): Likewise.
7721 (htab_t optimize_location_lists::htab): Likewise.
7722 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
7723
7724 * except.c (htab_t ehspec_hash_type):
7725 Change type to hash_table. Update dependent calls and types.
7726 (assign_filter_values::ttypes): Likewise.
7727 (assign_filter_values::ehspec): Likewise.
7728 (sjlj_assign_call_site_values::ar_hash): Likewise.
7729 (convert_to_eh_region_ranges::ar_hash): Likewise.
7730
7731 * gcse.c (htab_t pre_ldst_table):
7732 Change type to hash_table. Update dependent calls and types.
7733
7734 * ggc-common.c (htab_t saving_htab):
7735 Change type to hash_table. Update dependent calls and types.
7736 (htab_t loc_hash): Likewise.
7737 (htab_t ptr_hash): Likewise.
7738 (call_count): Rename ggc_call_count.
7739 (call_alloc): Rename ggc_call_alloc.
7740 (loc_descriptor): Rename make_loc_descriptor.
7741 (add_statistics): Rename ggc_add_statistics.
7742
7743 * ggc-common.c (saving_htab):
7744 Change type to hash_table. Update dependent calls and types.
7745
7746 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
7747 (push_gimplify_context): Likewise.
7748 (pop_gimplify_context): Likewise.
7749 (struct gimple_temp_hash_elt): Added.
7750 (struct gimplify_hasher): Likewise.
7751 (struct gimplify_ctx.temp_htab):
7752 Change type to hash_table. Update dependent calls and types.
7753
7754 * gimple-fold.c: Include gimplify-ctx.h.
7755
7756 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
7757 Change type to hash_table. Update dependent calls and types.
7758 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
7759 avoid potential global name collision.
7760
7761 * gimplify.c: Include gimplify-ctx.h.
7762 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
7763 (htab_t gimplify_ctx::temp_htab):
7764 Update dependent calls and types for new type hash_table.
7765 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
7766 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
7767
7768 * gimplify-ctx.h: New.
7769 (struct gimple_temp_hash_elt): Move from gimplify.c.
7770 (class gimplify_hasher): New.
7771 (struct gimplify_ctx): Move from gimple.h.
7772 (htab_t gimplify_ctx::temp_htab):
7773 Change type to hash_table. Update dependent calls and types.
7774
7775 * graphite-clast-to-gimple.c: Include graphite-htab.h.
7776 (htab_t ivs_params::newivs_index):
7777 Change type to hash_table. Update dependent calls and types.
7778 (htab_t ivs_params::params_index): Likewise.
7779 (htab_t print_generated_program::params_index): Likewise.
7780 (htab_t gloog::newivs_index): Likewise.
7781 (htab_t gloog::params_index): Likewise.
7782
7783 * graphite.c: Include graphite-htab.h.
7784 4htab_t graphite_transform_loops::bb_pbb_mapping):
7785 Change type to hash_table. Update dependent calls and types.
7786
7787 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
7788 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
7789 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
7790
7791 * graphite-dependences.c: Include graphite-htab.h.
7792 (loop_is_parallel_p): Change hash table type of parameter.
7793
7794 * graphite-htab.h: New.
7795 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
7796 (extern find_pbb_via_hash): Move from graphite-poly.h.
7797 (extern loop_is_parallel_p): Move from graphite-poly.h.
7798 (extern get_loop_body_pbbs): Move from graphite-poly.h.
7799
7800 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
7801 (extern loop_is_parallel_p): Move to graphite-htab.h.
7802 (extern get_loop_body_pbbs): Move to graphite-htab.h.
7803
7804 * haifa-sched.c (htab_t delay_htab):
7805 Change type to hash_table. Update dependent calls and types.
7806 (htab_t delay_htab_i2): Likewise.
7807
7808 * ira-color.c (htab_t allocno_hard_regs_htab):
7809 Change type to hash_table. Update dependent calls and types.
7810
7811 * ira-costs.c (htab_t cost_classes_htab):
7812 Change type to hash_table. Update dependent calls and types.
7813
7814 * loop-invariant.c (htab_t merge_identical_invariants::eq):
7815 Change type to hash_table. Update dependent calls and types.
7816
7817 * loop-iv.c (htab_t bivs):
7818 Change type to hash_table. Update dependent calls and types.
7819
7820 * loop-unroll.c (htab_t opt_info::insns_to_split):
7821 Change type to hash_table. Update dependent calls and types.
7822 (htab_t opt_info::insns_with_var_to_expand): Likewise.
7823
7824 * lto-streamer.h (struct string_slot): Move from data-streamer.h
7825 (struct string_slot_hasher): New.
7826 (htab_t output_block::string_hash_table):
7827 Change type to hash_table. Update dependent calls and types.
7828
7829 * lto-streamer-in.c (freeing_string_slot_hasher): New.
7830 (htab_t file_name_hash_table):
7831 Change type to hash_table. Update dependent calls and types.
7832
7833 * lto-streamer-out.c: Update output_block::string_hash_table dependent
7834 calls and types.
7835
7836 * lto-streamer.c (htab_t tree_htab):
7837 Change type to hash_table. Update dependent calls and types.
7838
7839 * omp-low.c: Include gimplify-ctx.h.
7840
7841 * passes.c (htab_t name_to_pass_map):
7842 Change type to hash_table. Update dependent calls and types.
7843 (pass_traverse): Rename to passes_pass_traverse.
7844
7845 * plugin.c (htab_t event_tab):
7846 Change type to hash_table. Update dependent calls and types.
7847
7848 * postreload-gcse.c (htab_t expr_table):
7849 Change type to hash_table. Update dependent calls and types.
7850 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
7851
7852 * sese.c (debug_rename_map_1): Make extern.
7853 (htab_t copy_bb_and_scalar_dependences::rename_map):
7854 Change type to hash_table. Update dependent calls and types.
7855
7856 * sese.h (extern debug_rename_map): Move to .c file.
7857
7858 * store-motion.c (htab_t store_motion_mems_table):
7859 Change type to hash_table. Update dependent calls and types.
7860
7861 * trans-mem.c (htab_t tm_new_mem_hash):
7862 Change type to hash_table. Update dependent calls and types.
7863
7864 * tree-browser.c (htab_t TB_up_ht):
7865 Change type to hash_table. Update dependent calls and types.
7866
7867 * tree-cfg.c (htab_t discriminator_per_locus):
7868 Change type to hash_table. Update dependent calls and types.
7869
7870 * tree-complex.c: Include tree-hasher.h
7871 (htab_t complex_variable_components):
7872 Change type to hash_table. Update dependent calls and types.
7873
7874 * tree-eh.c (htab_t finally_tree):
7875 Change type to hash_table. Update dependent calls and types.
7876
7877 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
7878 struct int_tree_hasher.
7879 (extern int_tree_map_eq): Likewise.
7880 (uid_decl_map_hash): Removed.
7881 (extern decl_tree_map_eq): Likewise.
7882
7883 * tree-hasher.h: New.
7884 (struct int_tree_hasher): New.
7885 (typedef int_tree_htab_type): New.
7886
7887 * tree-inline.c: Include gimplify-ctx.h.
7888
7889 * tree-mudflap.c: Include gimplify-ctx.h.
7890
7891 * tree-parloops.c: Include tree-hasher.h.
7892 (htab_t eliminate_local_variables_stmt::decl_address):
7893 Change type to hash_table. Update dependent calls and types.
7894 (htab_t separate_decls_in_region::decl_copies): Likewise.
7895
7896 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
7897 Change type to hash_table. Update dependent calls and types.
7898
7899 * tree-sra.c (candidates):
7900 Change type to hash_table. Update dependent calls and types.
7901
7902 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
7903 in tree-flow.h.
7904 (int_tree_map_hash): Likewise.
7905
7906 * tree-ssa-dom.c (htab_t avail_exprs):
7907 Change type to hash_table. Update dependent calls and types.
7908
7909 * tree-ssa-live.c (var_map_base_init::tree_to_index):
7910 Change type to hash_table. Update dependent calls and types.
7911
7912 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
7913 Change type to hash_table. Update dependent calls and types.
7914
7915 * tree-ssa-phiopt.c (seen_ssa_names):
7916 Change type to hash_table. Update dependent calls and types.
7917
7918 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
7919 Change type to hash_table. Update dependent calls and types.
7920
7921 * tree-ssa-uncprop.c (equiv):
7922 Change type to hash_table. Update dependent calls and types.
7923
c5a44004
JJ
79242013-04-25 Jakub Jelinek <jakub@redhat.com>
7925
7926 PR rtl-optimization/57003
7927 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
7928 call note_stores with kill_clobbered_value callback again after
7929 killing regs_invalidated_by_call.
7930
09962a4a
JG
79312013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7932
7933 * config/aarch64/aarch64-simd.md
7934 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
7935 (aarch64_simd_bsl<mode>): Likewise.
7936 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
7937
ea28bb0b
MP
79382013-04-25 Marek Polacek <polacek@redhat.com>
7939
7940 PR tree-optimization/57066
3c21604f 7941 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 7942
96659611
JG
79432013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
7944
7945 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
7946
9697e620
JG
79472013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7948
7949 * config/aarch64/aarch64-builtins.c
7950 (aarch64_fold_builtin): New.
7951 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
7952 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
7953 * config/aarch64/aarch64-simd-builtins.def (abs): New.
7954 * config/aarch64/arm_neon.h
7955 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
7956
0ac198d3
JG
79572013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
7958 Tejas Belagod <tejas.belagod@arm.com>
7959
7960 * config/aarch64/aarch64-builtins.c
7961 (aarch64_gimple_fold_builtin): New.
7962 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
7963 * config/aarch64/aarch64-simd-builtins.def (addv): New.
7964 * config/aarch64/aarch64-simd.md (addpv4sf): New.
7965 (addvv4sf): Update.
7966 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
7967
58cff58c
N
79682013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7969
df93505e 7970 * config/aarch64/aarch64.md
58cff58c
N
7971 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
7972
7e0228bf
N
79732013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7974
7975 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
7976 (*ngcsi_uxtw): New pattern.
7977
5819f96f 79782013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 7979 Julian Brown <julian@codesourcery.com>
5819f96f
KT
7980
7981 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
7982 (TB_DREG): Add T_V4HF.
7983 (v4hf_UP): New macro.
7984 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 7985 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
7986 Handle initialisation of V4HF. Adjust initialisation of reinterpret
7987 built-ins.
df93505e 7988 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
7989 (arm_vector_mode_supported_p): Handle V4HF.
7990 (arm_mangle_map): Handle V4HFmode.
7991 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
7992 * config/arm/arm_neon_builtins.def: Add entries for
7993 vcvtv4hfv4sf, vcvtv4sfv4hf.
7994 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
7995 (neon_vcvtv4hfv4sf): Likewise.
7996 * config/arm/neon-gen.ml: Handle half-precision floating point
7997 features.
7998 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
7999 * config/arm/arm_neon.h: Regenerate.
8000 * config/arm/neon.ml (type elts): Add F16.
8001 (type vectype): Add T_float16x4, T_floatHF.
8002 (type vecmode): Add V4HF.
8003 (type features): Add Requires_FP_bit feature.
8004 (elt_width): Handle F16.
8005 (elt_class): Likewise.
8006 (elt_of_class_width): Likewise.
8007 (mode_of_elt): Refactor.
8008 (type_for_elt): Handle F16, fix error messages.
8009 (vectype_size): Handle T_float16x4.
8010 (vcvt_sh): New function.
8011 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
8012 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
8013 (string_of_mode): Handle V4HF.
8014 * doc/arm-neon-intrinsics.texi: Regenerate.
8015
1ef395e4
JG
80162013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
8017
8018 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
8019 format specifier in 'X' case.
8020
41c34e94
AM
80212013-04-25 Alan Modra <amodra@gmail.com>
8022
8023 PR target/57052
8024 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
8025 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
8026 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
8027 Repeat for many other rotate/shift and mask patterns using subregs.
8028 Name lshiftrt insns.
8029 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
8030 on WORDS_BIG_ENDIAN.
8031
b9a7eb5d
AM
80322013-04-25 Alan Modra <amodra@gmail.com>
8033
8034 * config.gcc: Support little-endian powerpc-linux targets.
8035 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
8036 (LINK_OS_LINUX_SPEC): Define.
8037 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
8038 Preserve MASK_LITTLE_ENDIAN.
8039 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
8040 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
8041 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
8042 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
8043 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
8044 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
8045 Correct fp word order for little-endian. Don't shift toc entries
8046 smaller than a word for little-endian.
8047 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
8048 (bswapdi2 splits): Correct low-part subreg for little-endian.
8049 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
8050 low/high where such is correct only for be.
8051 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
8052 little-endian for -mcall-aixdesc.
8053
87f73374
AM
80542013-04-25 Alan Modra <amodra@gmail.com>
8055
8056 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
8057 replace_equiv_address_nv.
8058
cabf91cd
AM
80592013-04-25 Alan Modra <amodra@gmail.com>
8060
8061 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
8062
0ae24cc8
VM
80632013-04-24 Vladimir Makarov <vmakarov@redhat.com>
8064
8065 Revert:
8066 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
8067 * rtl.h (struct rtx_def): ...
cabf91cd 8068
77bce07c
VM
80692013-04-24 Vladimir Makarov <vmakarov@redhat.com>
8070
8071 PR rtl-optimizations/57046
8072 * lra-constraints (split_reg): Set up lra_risky_transformations_p
8073 for multi-reg splits.
8074
0db63e7f
L
80752013-04-24 H.J. Lu <hongjiu.lu@intel.com>
8076
8077 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
8078
3362b6b6
SA
80792013-04-24 Sterling Augustine <saugustine@google.com>
8080
8081 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
8082 (comp_dir_string, debug_str_dwo_section): New.
8083 (DEBUG_STR_DWO_SECTION): Rename to ...
8084 (DEBUG_DWO_STR_SECTION): ... this.
8085 (DEBUG_NORM_STR_SECTION): Delete.
8086 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
8087 (DEBUG_STR_DWO_SECTION_FLAGS): New.
8088 (find_AT_string): Move most logic to ...
8089 (find_AT_string_in_table): ... here. New.
8090 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
8091 add_skeleton_AT_string. Delete logic.
8092 (output_skeleton_debug_sections): Remove call to
8093 add_top_level_skeleton_die_attrs.
8094 (add_comp_dir_attribute): Move logic to comp_dir_string.
8095 (dwarf2out_init): Initialize debug_str_dwo_section.
8096 (output_indirect_string): Call find_string_form.
8097 (output_indirect_strings): Rewrite.
8098 (prune_unused_types): Empty skeleton_debug_str_hash.
8099 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
8100 (dwarf2out_finish): Call output_indirect_strings.
8101
e93e18e9
PC
81022013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8103
8104 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
8105
f6ce35ac
VM
81062013-04-24 Vladimir Makarov <vmakarov@redhat.com>
8107
cabf91cd 8108 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
8109 (LRA_SUBREG_P): New macro.
8110 * recog.c (register_operand): Check LRA_SUBREG_P.
8111 * lra.c (lra): Add note at the end of RTL code. Align non-empty
8112 stack frame.
8113 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
8114 (lra_final_code_change): Skip subreg change for operators.
8115 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
8116 if there are no operand changes.
8117 * lra-constraints.c (curr_insn_set): New.
8118 (match_reload): Set LRA_SUBREG_P.
8119 (emit_spill_move): Ditto.
8120 (check_and_process_move): Use curr_insn_set. Process only single
8121 set insns. Don't initialize sec_mem_p and change_p.
8122 (simplify_operand_subreg): Use LRA_SUBREG_P.
8123 (reg_in_class_p): New function.
8124 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
8125 of #ifdef. Add code to remove cycling.
8126 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
8127 non-null disp. Reload inner instead of disp when base and index
8128 are null. Try to put lo_sum into register.
8129 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 8130 (check_and_process_move): Move code for move cost check to
f6ce35ac 8131 simple_move_p. Remove equiv_substitution.
cabf91cd 8132 (simple_move_p): New function.
f6ce35ac
VM
8133 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
8134 curr_insn_set. Call check_and_process_move only for single set
8135 insns. Use the new function. Move call of check_and_process_move
8136 after operand equiv substitution and address process.
8137
38047d90
JG
81382013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
8139
8140 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
8141 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
8142 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
8143
13f39b2e
PC
81442013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
8145
8146 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
8147
97c116dc
MP
81482013-04-24 Marek Polacek <polacek@redhat.com>
8149
8150 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
8151 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
8152 (select_loops_exit_conditions): Likewise.
8153 (number_of_iterations_for_all_loops): Likewise.
8154 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
8155 (scev_analysis): Likewise.
8156
83082391
CM
81572013-04-02 Catherine Moore <clm@codesourcery.com>
8158 Chao-ying Fu <fu@mips.com>
8159
cabf91cd
AM
8160 * config/mips/micromips.md (jraddiusp): New pattern.
8161 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
8162 instruction if possible.
83082391 8163
19e34aa2
AM
81642013-04-24 Alan Modra <amodra@gmail.com>
8165
8166 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
8167
fdb6603c
JB
81682013-04-24 Julian Brown <julian@codesourcery.com>
8169 Chung-Lin Tang <cltang@codesourcery.com>
8170
8171 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
8172 dependency behavior in enumeration type DIE generation. Add TODO note
8173 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 8174
bf190e8d
LC
81752013-04-23 Lawrence Crowl <crowl@google.com>
8176
8177 * Makefile.in: Update as needed below.
8178
8179 * hash-table.h (class hash_table):
8180 Correct many methods with parameter types compare_type to the correct
8181 value_type. (Correct code was unlikely to notice the change.)
8182 (hash_table::elements_with_deleted) New.
8183 (class hashtable::iterator): New.
8184 (hashtable::begin()): New.
8185 (hashtable::end()): New.
8186 (FOR_EACH_HASH_TABLE_ELEMENT): New.
8187
8188 * statistics.c (statistics_hashes):
8189 Change type to hash_table. Update dependent calls and types.
8190
8191 * tree-into-ssa.c (var_infos):
8192 Change type to hash_table. Update dependent calls and types.
8193
8194 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
8195 Change type to hash_table. Update dependent calls and types.
8196
8197 * tree-ssa-loop-im.c (struct mem_ref.refs):
8198 Change type to hash_table. Update dependent calls and types.
8199
8200 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
8201 Change type to hash_table. Update dependent calls and types.
8202
8203 * tree-ssa-sccvn.c (vn_tables_s::nary):
8204 Change type to hash_table. Update dependent calls and types.
8205 (vn_tables_s::phis): Likewise.
8206 (vn_tables_s::references): Likewise.
8207
8208 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
8209 (vn_reference_eq): Update parameter and return types.
8210
8211 * tree-ssa-structalias.c (pointer_equiv_class_table):
8212 Change type to hash_table. Update dependent calls and types.
8213 (location_equiv_class_table): Likewise.
8214
8215 * tree-vect-data-refs.c: Consequential changes for making
8216 peeling a hash_table.
8217
8218 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
8219 (destroy_loop_vec_info): Dependent hash_table update.
8220
8221 * tree-vectorizer.h (peeling_htab):
8222 Change type to hash_table. Update dependent calls and types.
8223
d70a81dd
SC
82242013-04-23 Shiva Chen <shiva0217@gmail.com>
8225
cabf91cd
AM
8226 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
8227 to check the register content is equal or not.
8228 * lra-constraints.c (match_reload): Use lra_assign_reg_val
8229 to assign register content record.
8230 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 8231 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
8232 * lra-int.h (struct lra_reg): Add offset member.
8233 (lra_reg_val_equal_p): New static inline function.
8234 (lra_update_reg_val_offset): New static inline function.
8235 (lra_assign_reg_val): New static inline function.
8236 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
8237 to assign register content record.
8238 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 8239
b894a1f3
CM
82402013-04-23 Catherine Moore <clm@codesourcery.com>
8241
8242 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
8243 operands. Record compression.
8244
ecd14de9
XDL
82452013-04-23 Xinliang David Li <davidxl@google.com>
8246
8247 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
8248
92e776e9
RB
82492013-04-23 Richard Biener <rguenther@suse.de>
8250
8251 PR middle-end/57036
8252 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
8253 parameter, only add abnormal goto edges from the copied body
8254 if the call could perform abnormal gotos.
8255 (copy_cfg_body): Adjust.
8256
a15ee567
SN
82572013-04-23 Sofiane Naci <sofiane.naci@arm.com>
8258
8259 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
8260
08c52234
AS
82612013-04-23 Andreas Schwab <schwab@linux-m68k.org>
8262
8263 * coretypes.h (gimple_stmt_iterator): Add struct to make
8264 compatible with C.
8265
999c1171
RB
82662013-04-23 Richard Biener <rguenther@suse.de>
8267
8268 PR tree-optimization/57026
8269 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
8270 from SSA names occuring in abnormal PHI nodes.
8271
53669259
AK
82722013-04-22 Andi Kleen <ak@linux.intel.com>
8273
8274 * lto/lto.c (print_lto_report_1): Fix LTO report names.
8275
1a0ad150
AK
82762013-04-22 Andi Kleen <ak@linux.intel.com>
8277
8278 * lto/lto.c (print_lto_report_1): Declare early.
8279 (read_cgraph_and_symbols): Call print_lto_report_1 early.
8280
057f8f20
AK
82812013-04-22 Andi Kleen <ak@linux.intel.com>
8282
8283 * common.opt (-flto-report-wpa): Add.
8284 * doc/invoke.texi (-flto-report-wpa): Add.
8285 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
8286 (lto_main): dito.
8287
473b1e05
XDL
82882013-04-22 Xinliang David Li <davidxl@google.com>
8289
8290 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
8291 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
8292 * Makefile.in: New dependency
8293
cabf91cd 8294 David Daney <ddaney.cavm@gmail.com>
b1485a33 8295
cabf91cd
AM
8296 * configure.ac (gcc_cv_as_micromips_support): Use the
8297 --fatal-warnings option.
8298 * configure: Regenerate.
b1485a33 8299
829d0168
MP
83002013-04-22 Marek Polacek <polacek@redhat.com>
8301
8302 PR sanitizer/56990
8303 * tsan.c (instrument_expr): Don't instrument expression
8304 in case its size is zero.
8305
6d9b7208
UB
83062013-04-22 Uros Bizjak <ubizjak@gmail.com>
8307
8308 PR target/57032
8309 Revert:
8310 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
8311
8312 * config/alpha/alpha.c (TARGET_LRA_P): New define.
8313
ea679d55
JG
83142013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
8315
8316 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
8317 (gimple_stmt_iterator): New typedef.
8318 * gimple.h (gimple_stmt_iterator): Rename to...
8319 (gimple_stmt_iterator_d): ... This.
8320 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
8321 trees be valid for GIMPLE and GENERIC.
8322 (TARGET_GIMPLE_FOLD_BUILTIN): New.
8323 * gimple-fold.c (gimple_fold_call): Call target hook
8324 gimple_fold_builtin.
8325 * hooks.c (hook_bool_gsiptr_false): New.
8326 * hooks.h (hook_bool_gsiptr_false): New.
8327 * target.def (fold_stmt): New.
8328 * doc/tm.texi: Regenerate.
8329
88a581da
VM
83302013-04-22 Vladimir Makarov <vmakarov@redhat.com>
8331
8332 PR target/57018
8333 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
8334 a set sp if no stack realignment.
8335
92be22dc
NC
83362013-04-22 Nick Clifton <nickc@redhat.com>
8337
8338 * config.gcc (tilegx-linux): Extend extra_objs rather than
8339 overwriting it.
8340 (tilepro-linux): Likewise.
8341
0ddec79f
JG
83422013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
8343
8344 * config/aarch64/aarch64-builtins.c
8345 (CF): Remove.
8346 (CF0, CF1, CF2, CF3, CF4, CF10): New.
8347 (VAR<1-12>): Add MAP parameter.
8348 (BUILTIN_*): Likewise.
8349 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
8350 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
8351 (aarch64_ushl_n<mode>): Likewise.
8352 (aarch64_sshr_n<mode>): Likewise.
8353 (aarch64_ushr_n<mode>): Likewise.
8354 (aarch64_<maxmin><mode>): Likewise.
8355 (aarch64_sqrt<mode>): Likewise.
8356 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
8357 (vshr<q>_n_*): Likewise.
8358
0050faf8
JG
83592013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
8360
8361 * config/aarch64/aarch64-builtins.c
8362 (aarch64_simd_builtin_type_mode): Handle SF types.
8363 (sf_UP): Define.
8364 (BUILTIN_GPF): Define.
8365 (aarch64_init_simd_builtins): Handle SF types.
8366 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
8367 (frecps): Likewise.
8368 (frecpx): Likewise.
8369 * config/aarch64/aarch64-simd.md
8370 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
8371 (aarch64_frecpe<mode>): New.
8372 (aarch64_frecps<mode>): Likewise.
8373 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
8374 (v8type): Add frecp<esx>.
8375 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
8376 (aarch64_frecps<mode>): Likewise.
8377 * config/aarch64/iterators.md (FRECP): New.
8378 (frecp_suffix): Likewise.
8379 * config/aarch64/arm_neon.h
8380 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
8381
0fad3dbc 83822013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
8383
8384 PR target/56995
8385 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
8386 (REG_CLASS_NAMES): Idem.
8387 (REG_CLASS_CONTENTS): Idem.
8388 (REGCLASS_HAS_FP_REG): Idem.
8389 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
8390 (sh_conditional_register_usage): Idem.
8391
3e8a33f9
JL
83922013-04-21 Jeff Law <law@redhat.com>
8393
8394 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
8395 (ssa_forward_propagate_and_combine): Use it.
8396
f38e1b0a
VM
83972013-04-19 Vladimir Makarov <vmakarov@redhat.com>
8398
8399 * lra.c: Update the flow chart diagram.
8400
682303da
VM
84012013-04-19 Vladimir Makarov <vmakarov@redhat.com>
8402
8403 PR rtl-optimization/56847
8404 * lra-constraints.c (process_alt_operands): Discourage alternative
8405 with non-matche doffsettable memory constraint fro memory with
8406 known offset.
8407
f6b64c35
RB
84082013-04-19 Richard Biener <rguenther@suse.de>
8409
8410 PR tree-optimization/56982
8411 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
8412 function.
8413 * gimplify.c (gimplify_call_expr): Notice special calls.
8414 (gimplify_modify_expr): Likewise.
8415 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
8416 abnormal control flow receivers.
8417 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
8418 in the same way as cfun->has_nonlocal_labels.
8419 (gimple_purge_dead_abnormal_call_edges): Likewise.
8420 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
8421 receivers start a basic-block.
8422
01d8bf07
RB
84232013-04-19 Richard Biener <rguenther@suse.de>
8424
8425 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
8426 member ...
8427 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
8428 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
8429 (SLP_TREE_LOAD_PERMUTATION): Add.
8430 (vect_transform_slp_perm_load): Adjust prototype.
8431 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
8432 (vect_free_slp_instance): Likewise.
8433 (vect_create_new_slp_node): Likewise.
8434 (vect_supported_slp_permutation_p): Remove.
8435 (vect_slp_rearrange_stmts): Adjust.
8436 (vect_supported_load_permutation_p): Likewise. Inline
8437 vect_supported_slp_permutation_p here.
8438 (vect_analyze_slp_instance): Compute load permutations per
8439 slp node instead of per instance.
8440 (vect_get_slp_defs): Adjust.
8441 (vect_transform_slp_perm_load): Likewise.
8442 (vect_schedule_slp_instance): Remove redundant code.
8443 (vect_schedule_slp): Remove hack for PR56270, add it ...
8444 * tree-vect-stmts.c (vectorizable_load): ... here, do not
8445 CSE loads for SLP. Adjust.
8446
ede22fc3
GY
84472013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
8448
8449 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
8450 spelling in two comments.
8451
67bc84fb
GY
84522013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
8453
8454 PR target/56797
8455 * config/arm/arm.c (load_multiple_sequence): Require SP
8456 as base register for loads if SP is in the register list.
8457
e248d83f
MJ
84582013-04-19 Martin Jambor <mjambor@suse.cz>
8459
8460 PR tree-optimization/56718
8461 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
8462 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
8463 and made public. Adjusted all callers.
8464 (ipa_intraprocedural_devirtualization): New function.
8465 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
8466 (ipa_intraprocedural_devirtualization): Likewise.
8467 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
8468
4891e8f8
RB
84692013-04-19 Richard Biener <rguenther@suse.de>
8470
8471 PR tree-optimization/57000
8472 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
8473
dad89f7c
TG
84742013-04-19 Terry Guo <terry.guo@arm.com>
8475
8476 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
8477 Replace with ...
8478 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
8479 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
8480 (cortex_m4_fmacs): Use new reservations.
8481 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
8482
72ea0d47
VM
84832013-04-18 Vladimir Makarov <vmakarov@redhat.com>
8484
f1e6512c 8485 PR rtl-optimization/56999
72ea0d47
VM
8486 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
8487 related code.
8488 (lra_coalesce): Remove split_origin_bitmap and related code.
8489 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
8490 ranges if necessary.
8491
780a5b71
UB
84922013-04-18 Uros Bizjak <ubizjak@gmail.com>
8493
8494 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
8495 New array.
8496 (ix86_expand_call): Remove clobbered_registers array and use
8497 x86_64_ms_sysv_extra_clobbered_registers instead.
8498 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
8499 Declare here.
8500 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
8501 predicate.
8502 * config/i386/i386.md (*call_rex64_ms_sysv): Use
8503 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
8504 (*call_value_rex64_ms_sysv): Ditto.
8505
6f5a366a
CC
85062013-04-18 Cary Coutant <ccoutant@google.com>
8507
8508 * dwarf2out.c (output_pubnames): Check die_perennial_p of
8509 parent instead of die_mark.
8510
475b8f37
DN
85112013-04-18 Diego Novillo <dnovillo@google.com>
8512
8513 * gimple.c (create_gimple_tmp): New.
8514 (get_expr_type): New.
8515 (build_assign): New.
8516 (build_type_cast): New.
8517 * gimple.h (enum ssa_mode): Define.
8518 (gimple_seq_set_location): New.
8519 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 8520 to use build_assign and build_type_cast.
475b8f37 8521
08940f33
RB
85222013-04-18 Richard Biener <rguenther@suse.de>
8523
8524 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
8525 handle negative step. Remove redundant checks.
8526 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
8527 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
8528 for negative step and grouped loads fail to vectorize.
8529
0e0f87d4
SB
85302013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8531
8532 * emit-rtl.c (reset_insn_used_flags): New function.
8533 (reset_all_used_flags): Use it.
8534 (verify_insn_sharing): New function.
8535 (verify_rtl_sharing): Fix verification for SEQUENCEs.
8536
4c445590
JJ
85372013-04-18 Jakub Jelinek <jakub@redhat.com>
8538
8539 PR tree-optimization/56984
8540 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
8541 and (x >> M) >= N don't register any assertion if N << M is the
8542 minimum value.
8543
6873ecab
SB
85442013-04-18 Steven Bosscher <steven@gcc.gnu.org>
8545
8546 * lower-subreg.c (resolve_simple_move): If called self-recursive,
8547 do not delete_insn insns that have not yet been emitted, only
8548 unlink them with remove_insn.
8549 * df-scan.c (df_insn_delete): Revert r197492.
8550
3ccb989e
SB
85512013-04-17 Steven Bosscher <steven@gcc.gnu.org>
8552
8553 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
8554 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
8555
85562013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
8557
8558 * config/arm/arm.md (movsicc_insn): Convert define_insn into
8559 define_insn_and_split.
8560 (and_scc,ior_scc,negscc): Likewise.
8561 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
8562
3ccb989e 85632013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
8564
8565 * config/arm/arm.c (use_return_insn): Return 0 for targets that
8566 can benefit from using a sequence of LDRD instructions in epilogue
8567 instead of a single LDM instruction.
8568
6d10a203
MLI
85692013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
8570
8571 PR 45688
8572 * doc/extend.texi: Fix typo.
8573
6983e6b5
RB
85742013-04-17 Richard Biener <rguenther@suse.de>
8575
8576 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
8577 (vect_build_slp_tree): ... here.
8578 (vect_build_slp_tree_1): Compute which stmts of the SLP group
8579 match. Remove special-casing of mismatched complex loads.
8580 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
8581 re-try the match with swapped commutative operands.
8582 (vect_supported_load_permutation_p): Remove special-casing of
8583 mismatched complex loads.
8584 (vect_analyze_slp_instance): Adjust.
8585
ef23e6a2
RB
85862013-04-17 Richard Biener <rguenther@suse.de>
8587
8588 PR rtl-optimization/56921
8589 * cfgloop.h (struct loop): Add simple_loop_desc member.
8590 (struct niter_desc): Mark with GTY(()).
8591 (simple_loop_desc): Do not use aux field but simple_loop_desc.
8592 * loop-iv.c (get_simple_loop_desc): Likewise.
8593 (free_simple_loop_desc): Likewise.
8594
8595 Revert
8596 2013-04-16 Richard Biener <rguenther@suse.de>
8597
8598 PR rtl-optimization/56921
8599 * loop-init.c (pass_rtl_move_loop_invariants): Add
8600 TODO_do_not_ggc_collect to todo_flags_finish.
8601 (pass_rtl_unswitch): Same.
8602 (pass_rtl_unroll_and_peel_loops): Same.
8603 (pass_rtl_doloop): Same.
8604
fc6f94f5
EB
86052013-04-17 Eric Botcazou <ebotcazou@adacore.com>
8606
8607 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
8608 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
8609 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
8610 references.
8611 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
8612 * tree-streamer.c (record_common_node): Adjust reference in comment.
8613
10a88311
TG
86142013-04-17 Terry Guo <terry.guo@arm.com>
8615
8616 * config/arm/cortex-m4.md: Add a new bypass.
8617
6d9b7208 86182013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
8619
8620 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
8621 New pattern.
8622 (*subs_<optab><mode>_multp2): New pattern.
8623 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8624 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
8625
6d9b7208 86262013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
8627
8628 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
8629 (*subs_mul_imm_<mode>): New pattern.
8630
18a6701e
DE
86312013-04-16 David Edelsohn <dje.gcc@gmail.com>
8632
8633 PR target/56948
8634 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
8635 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
8636 (vsx_movti_32bit): Change j->wa to O->wa.
8637
07c37b2f
RB
86382013-04-16 Richard Biener <rguenther@suse.de>
8639
8640 PR rtl-optimization/56921
8641 * loop-init.c (pass_rtl_move_loop_invariants): Add
8642 TODO_do_not_ggc_collect to todo_flags_finish.
8643 (pass_rtl_unswitch): Same.
8644 (pass_rtl_unroll_and_peel_loops): Same.
8645 (pass_rtl_doloop): Same.
8646
0e0f87d4 86472013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
8648
8649 * config/arm/arm.c (emit_multi_reg_push): New declaration
8650 for an existing function.
8651 (arm_emit_strd_push): New function.
8652 (arm_expand_prologue): Used here.
8653 (arm_emit_ldrd_pop): New function.
8654 (arm_expand_epilogue): Used here.
8655 (arm_get_frame_offsets): Update condition.
8656 (arm_emit_multi_reg_pop): Add a special case for load of a single
8657 register with writeback.
8658
5e8e2af4
UB
86592013-04-16 Uros Bizjak <ubizjak@gmail.com>
8660
8661 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
8662 description.
8663
9fd9ccf7
RB
86642013-04-16 Richard Biener <rguenther@suse.de>
8665
8666 PR tree-optimization/56756
8667 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
8668 (first_mem_ref_loc): New.
8669 (execute_sm): Place the load temporarily before a previous
8670 access instead of in the latch edge to ensure its SSA dependencies
8671 are defined at points dominating the load.
8672
96fba521
SB
86732013-04-16 Steven Bosscher <steven@gcc.gnu.org>
8674
4c8af858
SB
8675 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
8676 correct fix by moving header and footer insn to the footer of
8677 the merged basic block. Clear BB_END of the merged-away block.
8678
96fba521
SB
8679 PR middle-end/43631
8680 * emit-rtl.c (make_note_raw): New function.
8681 (link_insn_into_chain): New static inline function.
8682 (add_insn): Use it.
8683 (add_insn_before, add_insn_after): Factor insn chain linking code...
8684 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
8685 using link_insn_into_chain.
8686 (note_outside_basic_block_p): New helper function for emit_note_after
8687 and emit_note_before.
8688 (emit_note_after): Use nobb variant of add_insn_after if the note
8689 should not be contained in a basic block.
8690 (emit_note_before): Use nobb variant of add_insn_before if the note
8691 should not be contained in a basic block.
8692 (emit_note_copy): Use make_note_raw.
8693 (emit_note): Likewise.
8694 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
8695 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
8696 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
8697 the moved barrier the tail of the basic block it follows.
8698 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
8699
7b8265ba
JJ
87002013-04-15 Jakub Jelinek <jakub@redhat.com>
8701
8702 PR tree-optimization/56962
8703 * gimple-ssa-strength-reduction.c (record_increment): Only set
8704 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
8705 either rhs1 or rhs2 is equal to c->base_expr.
8706
5185d248
RB
87072013-04-15 Richard Biener <rguenther@suse.de>
8708
8709 PR tree-optimization/56933
8710 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
8711 member.
8712 (GROUP_READ_WRITE_DEPENDENCE): Remove.
8713 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
8714 * tree-vect-data-refs.c (vect_analyze_group_access): Move
8715 dependence check ...
8716 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
8717 ... here.
8718 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
8719 GROUP_READ_WRITE_DEPENDENCE.
8720
a24243a0
AK
87212013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8722
8723 * emit-rtl.c (reset_all_used_flags): New function.
8724 (verify_rtl_sharing): Call reset_all_used_flags before and after
8725 performing the checks.
8726
1c50eada
KT
87272013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8728
8729 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
8730 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
8731 * config/arm/constraints.md (De): New constraint.
8732 * config/arm/neon.md (anddi3_neon): Delete.
8733 (neon_vand<mode>): Expand to standard anddi3 pattern.
8734 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
8735 Move earlier in the file.
8736 (neon_inv_logic_op2): Likewise.
8737 (arm_anddi_operand_neon): New predicate.
8738
e927b6ad
RO
87392013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8740
8741 * configure.ac (gcc_cv_ld_as_needed): Set
8742 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
8743 Use -z ignore, -z record on *-*-solaris2*.
8744 (HAVE_LD_AS_NEEDED): Update comment.
8745 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
8746 * configure: Regenerate.
8747 * config.in: Regenerate.
8748 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
8749 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
8750 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
8751 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
8752 equivalents. Fix markup.
8753 * doc/tm.texi: Regenerate.
8754
e0ea8797
AH
87552013-04-15 Andrew Hsieh <andrewhsieh.google.com>
8756
8757 * config/i386/i386.opt: New option mstack-protector-guard=.
8758 * config/i386/i386-opts.h: Add enum stack_protector_guard.
8759 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
8760 TARGET_SSP_TLS_GUARD.
8761 * config/i386/i386.c (ix86_option_override_internal): Set
8762 ix86_stack_protector_guard.
8763 * config/i386/i386.md (stack_protect_set): Enable for
8764 TARGET_SSP_TLS_GUARD only.
8765 (stack_protect_set_<mode>): Ditto.
8766 (stack_protect_test): Ditto.
8767 (stack_protect_test_<mode>): Ditto.
8768 * doc/invoke.texi (i386 Option): Document.
8769
811b72f9
EB
87702013-04-15 Eric Botcazou <ebotcazou@adacore.com>
8771
8772 PR target/56890
8773 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
8774 (S_MODES): Set H_MODE bit.
8775 (SF_MODES): Set only S_MODE and SF_MODE bits.
8776 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
8777 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
8778 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
8779 <MODE_FLOAT>: Likewise.
8780
5529fdd6
JY
87812013-04-15 Joey Ye <joey.ye@arm.com>
8782
8783 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
8784
517b1da2
JY
87852013-04-15 Joey Ye <joey.ye@arm.com>
8786
8787 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
8788 for real far jump.
8789 (thumb_far_jump_used_p): Count instruction size and set
8790 far_jump_used.
8791
01007ae0
EB
87922013-04-14 Eric Botcazou <ebotcazou@adacore.com>
8793
8794 * reorg.c (fill_simple_delay_slots): Reindent block of code.
8795 * resource.c (mark_target_live_regs): Reformat conditional block.
8796
c46f6580
SB
87972013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8798
8799 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
8800 notes, they are emitted only just before final.
8801 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
8802
1f397f45
SB
88032013-04-13 Steven Bosscher <steven@gcc.gnu.org>
8804
8805 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
8806 * cfgrtl.c (delete_insn): Call it here instead.
8807 * lra-spills.c (lra_final_code_change): Use delete_insn.
8808 * haifa-sched.c (sched_remove_insn): Likewise.
8809 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
8810 returning to the nop pool.
8811 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
8812 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
8813
58a51369
SB
88142013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8815
8816 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
8817 * doc/tm.texi: Regenerated.
8818
33159866
UB
88192013-04-12 Uros Bizjak <ubizjak@gmail.com>
8820
8821 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
8822 QImode checks.
8823
226e378f
SB
88242013-04-12 Steven Bosscher <steven@gcc.gnu.org>
8825
8826 * df-core.c (df_find_def): Compare register numbers.
8827 (df_find_use): Likewise.
8828
fafb9b18
VM
88292013-04-12 Vladimir Makarov <vmakarov@redhat.com>
8830
8831 PR target/56903
8832 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
8833 lra_in_progress for return.
8834
9a946fd6
GY
88352013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8836
8837 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
8838 define_insn into define_insn_and_split and emit movsicc patterns.
8839
41b83758
GY
88402013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
8841
8842 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
8843
d3afd9aa
RB
88442013-04-12 Richard Biener <rguenther@suse.de>
8845
8846 * tree-pass.h (TODO_do_not_ggc_collect): New.
8847 * passes.c (execute_one_ipa_transform_pass): Honor
8848 TODO_do_not_ggc_collect.
8849 (execute_one_pass): Likewise.
8850
8851 Revert
8852 2013-04-10 Richard Biener <rguenther@suse.de>
8853
8854 * passes.c (init_optimization_passes): Remove reload pass.
8855 * ira.c (do_reload): Merge into ...
8856 (ira): ... this.
8857 (rest_of_handle_reload): Remove.
8858 (pass_reload): Likewise.
8859 * config/i386/i386.c (ix86_option_override): Refer to ira instead
8860 of reload for vzeroupper pass placement.
8861
06f9b387
JJ
88622013-04-12 Jakub Jelinek <jakub@redhat.com>
8863
8864 PR tree-optimization/56918
8865 PR tree-optimization/56920
8866 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
8867 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
8868 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
8869 use wide_mul_with_sign method.
8870
953094d2
RB
88712013-04-12 Richard Biener <rguenther@suse.de>
8872
8873 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
8874 not be considered a gimple constant.
8875
bb506982
MG
88762013-04-12 Marc Glisse <marc.glisse@inria.fr>
8877
8878 * fold-const.c (const_binop): Handle vector shifts by a scalar.
8879 (fold_binary_loc): Call const_binop also for mixed vector-scalar
8880 operations.
8881
4b84d650
JJ
88822013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
8883 Jakub Jelinek <jakub@redhat.com>
8884
8885 * opts.c: Include diagnostic-color.h.
8886 (common_handle_option): Handle OPT_fdiagnostics_color_.
8887 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
8888 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
8889 (diagnostic-color.o): New.
8890 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
8891 (diagnostic_color_rule): New enum.
8892 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
8893 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
8894 the location string.
8895 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
8896 either NULL, or color kind.
8897 * diagnostic-color.c: New file.
8898 * diagnostic-color.h: New file.
8899 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
8900 arguments.
8901 * doc/invoke.texi (-fdiagnostics-color): Document.
8902 * pretty-print.h (pp_show_color): Define.
8903 (struct pretty_print_info): Add show_color field.
8904 * diagnostic.c: Include diagnostic-color.h.
8905 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
8906 macros. Colorize error:, warning: etc. strings and also the location
8907 string.
8908 (diagnostic_show_locus): Colorize the caret line.
8909 * pretty-print.c: Include diagnostic-color.h.
8910 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
8911 inside of %< %> quotes or quoted through q format modifier.
8912
067a1e71
AK
89132013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8914
33159866 8915 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 8916
33159866 89172013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
8918
8919 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
8920 code in CC_NZ mode.
8921 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
8922 pattern.
8923
7b55f98f
MP
89242013-04-11 Marek Polacek <polacek@redhat.com>
8925
8926 PR tree-optimization/48184
33159866 8927 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 8928
966b587e
EB
89292013-04-11 Eric Botcazou <ebotcazou@adacore.com>
8930
8931 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
8932 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
8933 (skip_simple_arithmetic): Tidy up.
8934 * tree.h (skip_simple_constant_arithmetic): Declare.
8935
33159866 89362013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
8937
8938 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
8939
1d42c1ec
RB
89402013-04-11 Richard Biener <rguenther@suse.de>
8941
8942 * tree-vect-loop.c (get_initial_def_for_induction): Properly
8943 generate vector constants.
8944
4ba5ea11
RB
89452013-04-11 Richard Biener <rguenther@suse.de>
8946
8947 PR tree-optimization/56878
8948 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
8949 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
8950 New function.
8951 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8952 Prefer to align the DR with the most invariant base address.
8953
f0defe58
SKS
89542013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
8955
8956 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
8957 comment.
8958
d07458be
JG
89592013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
8960
8961 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
8962 floating-point vector comparisons against 0.
8963
146b8692
JJ
89642013-04-11 Jakub Jelinek <jakub@redhat.com>
8965
8966 PR tree-optimization/56899
8967 * fold-const.c (extract_muldiv_1): Apply distributive law
8968 only if TYPE_OVERFLOW_WRAPS (ctype).
8969
b8578ff7
BC
89702013-04-11 Bin Cheng <bin.cheng@arm.com>
8971
8972 PR target/56124
8973 * ira-costs.c (scan_one_insn): Check whether the source rtx of
8974 loading has side effect.
8975
0ea8a6f9
SB
89762013-04-10 Steven Bosscher <steven@gcc.gnu.org>
8977
8978 * config/sparc/sparc.c: Include tree-pass.h.
8979 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
8980 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
8981 head of file. Change return type. Split off gate function.
8982 (sparc_gate_work_around_errata): New function.
8983 (pass_work_around_errata): New pass definition.
8984 (insert_pass_work_around_errata) New pass insert definition to
8985 insert pass_work_around_errata just after delayed-branch scheduling.
8986 (sparc_option_override): Insert the pass.
8987 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
8988
42e37616
DM
89892013-04-10 David S. Miller <davem@davemloft.net>
8990
89deeb3b
DM
8991 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
8992 or -mcpu=hypersparc.
8993
42e37616
DM
8994 * target.def (cstore_mode): New hook.
8995 * target.h: Include insn-codes.h
8996 * targhooks.c: Likewise.
8997 (default_cstore_mode): New function.
8998 * targhooks.h: Declare it.
8999 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
9000 * doc/tm.texi: Rebuild.
9001 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
9002 target hook, rather than inspecting the insn_data.
9003 * config/sparc/sparc.c (sparc_cstore_mode): New function.
9004 (TARGET_CSTORE_MODE): Redefine.
9005 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
9006 result patterns.
9007 * config/sparc/predicates.md (cstore_result_operand): New special
9008 predicate.
9009 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
9010 Use it for operand 0.
9011 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
9012 (*snesi_special): Likewise.
9013 (*snesi_zero): Likewise.
9014 (*seqsi_zero): Likewise.
9015 (*sltu_insn): Likewise.
9016 (*sgeu_insn): Likewise.
9017 (*seqdi_special): Make operand 0 and comparison operation be of
9018 DImode.
9019 (*snedi_special): Likewise.
9020 (*snedi_special_vis3): Likewise.
9021 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
9022 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
9023 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
9024 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
9025 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
9026 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
9027 (*sltu_extend_sp64): Likewise.
9028 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
9029 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
9030 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
9031 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
9032 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
9033
95ca411e
YZ
90342013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
9035
9036 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
9037 (aarch64_start_file): Use the new function.
9038
6782438d 90392013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 9040 Jason Merrill <jason@redhat.com>
6782438d
SKS
9041
9042 * common.opt: Add -gdwarf.
9043 * opts.c (common_handle_option): Handle it.
9044 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
9045
bb313b93
RB
90462013-04-10 Richard Biener <rguenther@suse.de>
9047
9048 * passes.c (execute_todo): Do not call ggc_collect conditional here.
9049 (execute_one_ipa_transform_pass): But unconditionally here.
9050 (execute_one_pass): And here.
9051 (init_optimization_passes): Remove reload pass.
9052 * tree-pass.h (TODO_ggc_collect): Remove.
9053 (pass_reload): Likewise.
9054 * ira.c (do_reload): Merge into ...
9055 (ira): ... this.
9056 (rest_of_handle_reload): Remove.
9057 (pass_reload): Likewise.
9058 * config/i386/i386.c (ix86_option_override): Refer to ira instead
9059 of reload for vzeroupper pass placement.
9060 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
9061 and todo_flags_finish of all passes.
9062
793d9a16
RB
90632013-04-10 Richard Biener <rguenther@suse.de>
9064
9065 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
9066 first_const_oprnd field, rename first_def_type to first_op_type.
9067 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
9068 (vect_get_and_check_slp_defs): Always use the type of the
9069 operand. Allow mixed vect_external_def, vect_constant_def types.
9070 (vect_get_constant_vectors): Handle mixed vect_external_def,
9071 vect_constant_def types.
9072
ee8a9b7b
JR
90732013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
9074
9075 PR tree-optimization/55524
9076 * tree-ssa-math-opts.c
9077 (convert_mult_to_fma): Don't use an fms construct
9078 when we don't have an fms operation, but fnma, and it looks
9079 likely that we'll be able to use the latter.
9080
6957a6f6
ZZ
90812013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
9082
9083 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
9084 function.
9085 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
9086 inline fail caused by overwritable functions.
9087
34ab4a5b
CJW
90882013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
9089
9090 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
9091 unnecessary bits in the constant power of two case.
9092
abf9bfbc
RB
90932013-04-10 Richard Biener <rguenther@suse.de>
9094
9095 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
9096 broken code swapping operands.
9097 (vect_build_slp_tree): Do not compute load permutations here.
9098 (vect_analyze_slp_instance): Compute load permutations here,
9099 after building the SLP tree.
9100
f408477e
CB
91012013-04-09 Christian Bruel <christian.bruel@st.com>
9102
9103 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
9104 of next/prev_real_insn.
9105
5ac42672
JH
91062013-04-09 Jan Hubicka <jh@suse.cz>
9107
abf9bfbc
RB
9108 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
9109 Drop aliased parameter.
5ac42672
JH
9110 (function_and_variable_visibility): Do not handle alias pairs.
9111 * cgraph.c (varpool_externally_visible_p): Update prototype.
9112 * varpool.c (varpool_add_new_variable): Update.
9113
5017f1d2
KT
91142013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9115
9116 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
9117
48eecbee
SB
91182013-04-09 Steven Bosscher <steven@gcc.gnu.org>
9119
a949cf1c
SB
9120 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
9121
48eecbee
SB
9122 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
9123
75ef8e3d
MP
91242013-04-09 Marek Polacek <polacek@redhat.com>
9125
9126 PR tree-optimization/48762
33159866 9127 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 9128
23847df4
RB
91292013-04-09 Richard Biener <rguenther@suse.de>
9130
9131 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
9132 dealing with cost.
9133 (vect_build_slp_tree): Likewise.
9134 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
9135 calculating the cost of a SLP instance.
9136 (vect_analyze_slp_instance): Use it from here, after building
9137 the SLP tree.
9138
ea3a0fde
JJ
91392013-04-09 Jakub Jelinek <jakub@redhat.com>
9140
9141 PR middle-end/56883
9142 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
9143 expand_omp_for_static_chunk): Use simple_p = true in
9144 force_gimple_operand_gsi calls when assigning to addressable decls.
9145
a32dfe9d
JL
91462013-04-09 Jeff Law <law@redhat.com>
9147
9148 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
9149 when the boolean was created by converting a wider object which
9150 had a boolean range.
9151
d755c7ef
RB
91522013-04-09 Richard Biener <rguenther@suse.de>
9153
9154 * tree-vectorizer.h (slp_void_p): Remove.
9155 (slp_tree): Typedef before _slp_tree declaration.
9156 (struct _slp_tree): Use a vector of slp_tree as children.
9157 (vect_get_place_in_interleaving_chain): Remove.
9158 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
9159 Move ...
9160 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
9161 and make static.
9162 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
9163 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
9164 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
9165 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
9166 Use slp_node instead of slp_void_p and adjust.
9167
3d741091
RB
91682013-04-09 Richard Biener <rguenther@suse.de>
9169
9170 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
9171 work that is not necessary.
9172
39307ba7
JJ
91732013-04-09 Jakub Jelinek <jakub@redhat.com>
9174
9175 PR tree-optimization/56854
9176 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
9177 forward into clobber stmts if it would change MEM_REF lhs into
9178 non-MEM_REF.
9179
343881fd
MK
91802013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
9181
9182 * tree.c (type_hash_lookup, type_hash_add): Make static.
9183 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
9184
3922658a
RB
91852013-04-09 Richard Biener <rguenther@suse.de>
9186
9187 * tree.h (unsave_expr_now): Remove.
9188 * tree-inline.c (mark_local_for_remap_r): Remove.
9189 (unsave_expr_1): Likewise.
9190 (unsave_r): Likewise.
9191 (unsave_expr_now): Likewise.
9192 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
9193 (propagate_tree_value): Likewise.
9194
9fb6b620
SB
91952013-04-08 Steven Bosscher <steven@gcc.gnu.org>
9196
9197 * doc/rtl.texi (sequence): Rewrite documentation to match the
9198 current use of SEQUENCE rtl objects.
9199 * rtl.def (SEQUENCE): Likewise.
9200
9201 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
9202 Update documentation.
9203 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
9204 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
9205
9206 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
9207
8ddb5a29
TJ
92082013-04-08 Teresa Johnson <tejohnson@google.com>
9209
9210 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
9211 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 9212 methods.
8ddb5a29
TJ
9213 (estimate_edge_size_and_time): Add comment to suggest using rounding
9214 methods.
9215 (estimate_node_size_and_time): Ditto.
9216 (remap_edge_change_prob): Use helper rounding divide methods.
9217 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
9218 (gimple_mod_pow2_value_transform): Ditto.
9219 (gimple_mod_subtract_transform): Ditto.
9220 (gimple_ic_transform): Ditto.
9221 (gimple_stringops_transform): Ditto.
9222 * stmt.c (conditional_probability): Ditto.
9223 (emit_case_dispatch_table): Ditto.
9224 * lto-cgraph.c (merge_profile_summaries): Ditto.
9225 * tree-optimize.c (execute_fixup_cfg): Ditto.
9226 * cfgcleanup.c (try_forward_edges): Ditto.
9227 * cfgloopmanip.c (scale_loop_profile): Ditto.
9228 (loopify): Ditto.
9229 (duplicate_loop_to_header_edge): Ditto.
9230 (lv_adjust_loop_entry_edge): Ditto.
9231 * tree-vect-loop.c (vect_transform_loop): Ditto.
9232 * profile.c (compute_branch_probabilities): Ditto.
9233 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
9234 * lto-streamer-in.c (input_cfg): Ditto.
9235 * gimple-streamer-in.c (input_bb): Ditto.
9236 * ipa-cp.c (update_profiling_info): Ditto.
9237 (update_specialized_profile): Ditto.
9238 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
9239 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 9240 rounding methods.
8ddb5a29
TJ
9241 * sched-rgn.c (compute_dom_prob_ps): Ditto.
9242 (compute_trg_info): Ditto.
9243 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
9244 (purge_dead_edges): Ditto.
9245 * loop-unswitch.c (unswitch_loop): Ditto.
9246 * cgraphclones.c (cgraph_clone_edge): Ditto.
9247 (cgraph_clone_node): Ditto.
9248 * tree-inline.c (copy_bb): Ditto.
9249 (copy_edges_for_bb): Ditto.
9250 (initialize_cfun): Ditto.
9251 (copy_cfg_body): Ditto.
9252 (expand_call_inline): Ditto.
9253
661e6bd7
KT
92542013-04-08 Kai Tietz <ktietz@redhat.com>
9255
9256 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
9257 TARGET_CYGWIN64 by TARGET_64BIT.
9258
105766f3
JR
92592013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
9260
9261 * config/epiphany/epiphany.md (GPR_1): New constant.
9262 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
9263 * config/epiphany/epiphany.c (gen_compare_reg):
9264 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
9265 is already in place.
9266 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
9267 Don't require being called during rtl expansion; If y operlaps r0,
9268 return 0.
9269 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
9270 (epiphany_expand_epilogue): Likewise.
9271
8afab237
JR
9272 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
9273 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 9274 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 9275
fa7707d6
JR
9276 * config/epiphany/constraints.md (CnL): New constraint.
9277 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
9278 * config/epiphany/predicates.md (add_operand): Allow 1024.
9279
5138e18d
JR
9280 * config/epiphany/epiphany.md (logical_op): New code iterator.
9281 (op_mnc): New code attribute.
9282 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
9283 (mov_f+1, mov_f+2): New peephole2 patterns.
9284
2ccc703d
JR
9285 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
9286 (cstoresi4): Also allow re-use of zero result when doing a NE
9287 comparison to a non-zero operand.
aefb0819 9288 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 9289
093ac0a5
JR
9290 * config/epiphany/epiphany.md (<insn_opname>v2si3):
9291 Use gen_addsi3_i / gen_subsi3_i.
9292
f223bb13
JJ
92932013-04-08 Jakub Jelinek <jakub@redhat.com>
9294
9295 PR c++/34949
9296 PR c++/50243
9297 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
9298 contain anything but clobbers, at most one __builtin_stack_restore,
9299 optionally debug stmts and final resx, and if it has at least one
9300 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
9301 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
9302 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
9303 which isn't defaut definition, remove them.
9304 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
9305 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
9306 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
9307 with MEM_REF LHS with SSA_NAME address.
9308
4481581f
JL
93092013-04-08 Jeff Law <law@redhat.com>
9310
9311 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 9312
451dabda
RB
93132013-04-08 Richard Biener <rguenther@suse.de>
9314
9315 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
9316 extra newline.
9317 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
9318 determined vector type.
9319 (vect_analyze_data_refs): Likewise.
9320 (vect_get_new_vect_var): Adjust.
9321 (vect_create_destination_var): Preserve SSA name versions.
9322 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
9323 not dump anything here.
9324
3b088b47
JR
93252013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
9326
9327 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
9328 Add member lr_slot_known.
9329 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
9330 if necessary.
9331 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
9332 Remove code that sets lr_slot_offset according to what a previous
9333 version of epiphany_emit_save_restore used to do.
9334 (epiphany_emit_save_restore): When doing an lr save or restore,
9335 set/verify lr_slot_known and lr_slot_offset.
9336
d8484d41
XQ
93372013-04-08 Xinyu Qi <xyqi@marvell.com>
9338
33159866
UB
9339 PR target/54338
9340 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
9341 in ALL_REGS.
9342
481be1c4
RB
93432013-04-08 Richard Biener <rguenther@suse.de>
9344
9345 * alias.c (find_base_term): Fix thinko in previous change.
9346
401f3a81
JJ
93472013-04-08 Jakub Jelinek <jakub@redhat.com>
9348
9349 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
9350 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
9351 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
9352 if possible to compute val.
9353 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
9354 For QImode integers don't require anything about precision. Use
9355 const_with_all_bytes_same to find out if the constant doesn't have
9356 repeated bytes in it.
9357
03ed99a8
AK
93582013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9359
9360 * config/s390/s390.c (s390_expand_insv): Only accept insertions
9361 within mode size.
9362
781b2e62
MP
93632013-04-08 Marek Polacek <polacek@redhat.com>
9364
9365 PR rtl-optimization/48182
9366 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
9367 value to 1.
9368
27e430a2
JDA
93692013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9370
9371 PR target/55487
9372 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
9373 nuses, make sure we have a label.
9374
4902aa64
BS
93752013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9376
9377 PR target/56843
9378 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
9379 (rs6000_emit_swdiv_low_precision): Remove.
9380 (rs6000_emit_swdiv): Rewrite to handle between one and four
9381 iterations of Newton-Raphson generally; modify required number of
9382 iterations for some cases.
9383 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
9384
7bca81dc
SB
93852013-04-05 Steven Bosscher <steven@gcc.gnu.org>
9386
9387 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
9388 set-but-unused variable.
9389
9390 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
9391 basic blocks of released function bodies garbage-collectable.
9392
9393 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
9394 (struct rtl_opt_pass): Add TODO_df_finish.
9395
9396 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
9397
4542a38a
GY
93982013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9399
9400 * config/arm/constraints.md (q): New constraint.
9401 * config/arm/ldrdstrd.md: New file.
9402 * config/arm/arm.md (ldrdstrd.md) New include.
9403 (arm_movdi): Use "q" instead of "r" constraint
9404 for double-word memory access.
9405 (movdf_soft_insn): Likewise.
9406 * config/arm/vfp.md (movdi_vfp): Likewise.
9407 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 9408 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
9409 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
9410 (mem_ok_for_ldrd_strd): Likewise.
9411 (output_move_double): Update assertion.
9412
2385b218
GY
94132013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9414
9415 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
9416
75fe1cb5
GY
94172013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9418
9419 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
9420 define_insn_and_split.
9421 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
9422
dd660e8e
GY
94232013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9424
9425 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
9426 define_insn_and_split.
33159866 9427 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
9428 (shiftsi3_compare): New pattern.
9429 (rrx): New pattern.
9430 * config/arm/unspecs.md (UNSPEC_RRX): New.
9431
045e472c
GY
94322013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9433
9434 * config/arm/arm.md (negdi_extendsidi): New pattern.
9435 (negdi_zero_extendsidi): Likewise.
9436
3f3bf1a8
GY
94372013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9438
9439 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
9440 define_insn_and_split.
9441 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
9442 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
9443
b0b49556
GY
94442013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9445
9446 * config/arm/arm.md (arm_subdi3): Convert define_insn into
9447 define_insn_and_split.
9448 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
9449 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
9450
d633dd84
GY
94512013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9452
9453 * config/arm/arm.md (subsi3_carryin): New pattern.
9454 (subsi3_carryin_const): Likewise.
9455 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
9456 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
9457
f4499066
GY
94582013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9459
9460 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
9461
ceef6fd9
GY
94622013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
9463
9464 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 9465 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 9466
ddbdd8a7
KT
94672013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9468
9469 * config/arm/arm.c (arm_expand_builtin): Change fcode
9470 type to unsigned int.
9471
8456d78a
RR
94722013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9473
9474 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
9475
526c230f
ILT
94762013-04-04 Ian Lance Taylor <iant@google.com>
9477
33159866
UB
9478 * doc/standards.texi (Standards): The Go frontend supports the Go 1
9479 language standard.
526c230f 9480
3cfbe04d
SB
94812013-04-04 Steven Bosscher <steven@gcc.gnu.org>
9482
9483 PR middle-end/56729
9484 * df-scan.c (df_insn_delete): Disable failing assert.
9485
dfa3f8d0
KT
94862013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9487
9488 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
9489 New function prototype.
9490 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
9491 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
9492 (arm_builtin_vectorized_function): New function.
9493
f7837758
KT
94942013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9495
9496 * config/arm/arm_neon_builtins.def: New file.
9497 * config/arm/arm.c (neon_builtin_data): Move contents to
9498 arm_neon_builtins.def.
9499 (enum arm_builtins): Include neon builtin definitions.
9500 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 9501 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 9502
39c1b6db
MP
95032013-04-04 Marek Polacek <polacek@redhat.com>
9504
9505 PR tree-optimization/48186
9506 * predict.c (maybe_hot_frequency_p): Return false if
9507 HOT_BB_FREQUENCY_FRACTION is 0.
9508 (cgraph_maybe_hot_edge_p): Likewise.
9509
314f64eb
RB
95102013-04-04 Richard Biener <rguenther@suse.de>
9511
9512 PR tree-optimization/56826
9513 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
9514 more accurately.
9515
51a905b2
RB
95162013-04-04 Richard Biener <rguenther@suse.de>
9517
9518 PR tree-optimization/56213
9519 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 9520 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 9521
f1bf4f3a
RB
95222013-04-04 Richard Biener <rguenther@suse.de>
9523
9524 PR tree-optimization/56837
9525 * tree-loop-distribution.c (classify_partition): For non-zero
9526 values require that the value has the same precision as its
9527 mode to be useful as memset value.
9528
0bca7ded
NC
95292013-04-03 Nick Clifton <nickc@redhat.com>
9530
33159866 9531 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
9532 (fmssf4): Use fmsf.s on E3V5 architectures.
9533 (fnmasf4): Use fnmaf.s on E3V5 architectures.
9534 (fnmssf4): Use fnmsf.s on E3V5 architectures.
9535
b4019227
JL
95362013-04-03 Jeff Law <law@redhat.com>
9537
9538 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
9539 (lra-eliminations.o): Likewise.
9540
f57ddb5b
TJ
95412013-04-03 Teresa Johnson <tejohnson@google.com>
9542
9543 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 9544 compute_working_sets here from profile.c.
f57ddb5b 9545 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
9546 (gcov_working_set_t): Moved typedef here from basic-block.h
9547 (compute_working_set): Declare.
f57ddb5b
TJ
9548 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
9549 (get_working_sets): Renamed from compute_working_set,
33159866 9550 replace most of body with call to new compute_working_sets.
f57ddb5b 9551 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
9552 to get_working_sets.
9553 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 9554 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 9555 to get_working_sets.
f57ddb5b
TJ
9556 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
9557 * gcov-dump.c (dump_working_sets): New function.
9558
5e0919f1
KZ
95592013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
9560
9561 * hwint.c (sext_hwi, zext_hwi): New functions.
9562 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
9563 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
9564 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
9565 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
9566 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
9567 (sext_hwi, zext_hwi): New functions.
0bca7ded 9568
be672e08
JL
95692013-04-03 Jeff Law <law@redhat.com>
9570
9571 PR tree-optimization/56799
33159866
UB
9572 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
9573 back test for widening conversion erroneously dropped in prior change.
be672e08 9574
9d821fa5
KT
95752013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9576
9577 PR target/56809
9578 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
9579 instead of next_real_insn.
9580
71c581e7
MP
95812013-04-03 Marek Polacek <polacek@redhat.com>
9582
9583 PR sanitizer/55702
33159866 9584 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 9585
4a32ef80
KT
95862013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9587
9588 PR target/56809
9589 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
9590 next_real_insn.
9591 (thumb1_output_casesi): Likewise.
9592 (thumb2_output_casesi): Likewise.
9593
1b2253d4
RB
95942013-04-03 Richard Biener <rguenther@suse.de>
9595
9596 PR tree-optimization/56817
9597 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
9598 Split out ...
9599 (tree_unroll_loops_completely_1): ... new function to manually
9600 walk the loop tree, properly defering outer loops of unrolled
9601 loops to later iterations.
9602
38000232
MG
96032013-04-03 Marc Glisse <marc.glisse@inria.fr>
9604
9605 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
9606 (vectorizable_load): Likewise.
9607 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
9608 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
9609
3fa35298
MG
96102013-04-03 Marc Glisse <marc.glisse@inria.fr>
9611
9612 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
9613 BIT_FIELD_REF.
9614
b3d45ff0
UW
96152013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9616
9617 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
9618
ec9202a8
BC
96192013-04-03 Bin Cheng <bin.cheng@arm.com>
9620
9621 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
9622
6805bd36
MG
96232013-04-03 Marc Glisse <marc.glisse@inria.fr>
9624
9625 PR tree-optimization/56790
33159866
UB
9626 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
9627 folding.
6805bd36 9628
da694a77
MG
96292013-04-03 Marc Glisse <marc.glisse@inria.fr>
9630
9631 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
9632 Handle VEC_MERGE.
9633 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
9634 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
9635 equal arguments.
9636
4e7d7b3d
JJ
96372013-04-03 Jakub Jelinek <jakub@redhat.com>
9638
9639 PR c/19449
9640 * tree.h (force_folding_builtin_constant_p): New decl.
9641 * builtins.c (force_folding_builtin_constant_p): New variable.
9642 (fold_builtin_constant_p): Fold immediately also if
9643 force_folding_builtin_constant_p.
9644
e6c9d234
RB
96452013-04-03 Richard Biener <rguenther@suse.de>
9646
9647 PR tree-optimization/56812
9648 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
9649 DRs of the same interleaving chain are independent.
9650
984d07dd
JM
96512013-04-02 Jason Merrill <jason@redhat.com>
9652
9653 * gdbinit.in (pbb): Use debug fn.
9654
622849c9
LC
96552013-04-02 Lawrence Crowl <crowl@google.com>
9656
9657 * sese.h (struct ivtype_map_elt_s): Remove unused.
9658 (extern debug_ivtype_map): Remove unused.
9659 (extern eq_ivtype_map_elts): Remove unused.
9660 * sese.c (debug_ivtype_map): Removed unused.
9661 (debug_ivtype_map_1): Removed unused.
9662 (debug_ivtype_elt): Remove unused.
9663 (eq_ivtype_map_elts): Remove unused.
9664
9665
82c0e1a0
KT
96662013-04-02 Kai Tietz <ktietz@redhat.com>
9667
9668 PR target/52790
9669 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
9670 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
9671 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
9672 function.
82c0e1a0
KT
9673 (legitimize_pe_coff_symbol): Likewise.
9674 (is_imported_p): New helper-function.
9675 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
9676 for Windows x64 targets.
9677 (ix86_expand_prologue): Optimize for pe-coff targets.
9678 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
9679 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
9680 medium/large code-model.
9681 (legitimize_pic_address): Likewise.
9682 (legitimize_tls_address): Likewise.
9683 (ix86_expand_call): Likewise.
9684 (x86_output_mi_thunk): Likewise.
9685 (get_dllimport_decl): Add new beimport argument.
9686 (construct_plt_address): Don't assert for x64 pe-coff targets.
9687 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
9688 targets.
9689 (SYMBOL_FLAG_STUBVAR): New macro.
9690 (SYMBOL_REF_STUBVAR_P): Likewise.
9691 * config/i386/winnt.c (stub_list): New structure.
9692 (stub_head): New local variable.
9693 (i386_pe_record_stub): New function.
9694 (i386_pe_file_end): Emit refptr-stubs.
9695
5d751b0c
JJ
96962013-04-02 Jakub Jelinek <jakub@redhat.com>
9697
09bb4c99
JJ
9698 PR rtl-optimization/56745
9699 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
9700 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
9701
a1d8947a
JJ
9702 PR c++/34949
9703 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
9704 and both of them are MEM_REFs, just compare first argument for
9705 equality and attempt to deal even with differing offsets.
9706
5d751b0c
JJ
9707 PR c++/34949
9708 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
9709 of gimple_clobber_p to be MEM_REF.
9710 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
9711 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
9712 after gimplification.
9713 * asan.c (get_mem_ref_of_assignment): Don't instrument
9714 gimple_clobber_p stmts.
9715 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
9716 gimple_clobber_p stmt if they have MEM_REF lhs and
9717 are dead because of another gimple_clobber_p stmt.
9718 * tree-ssa-live.c (clear_unused_block_pointer): Treat
9719 gimple_clobber_p stmts like debug stmts.
9720 (remove_unused_locals): Remove clobbers with MEM_REF lhs
9721 that refer to unused VAR_DECLs or uninitialized values.
9722 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
9723 gimple_clobber_p stmts if they refer to removed parameters.
9724 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
9725 formatting.
9726
e594716a
UB
97272013-04-02 Uros Bizjak <ubizjak@gmail.com>
9728
9729 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
9730 using SWI48 mode attribute.
9731
7a80735b
WM
97322013-04-02 Wei Mi <wmi@google.com>
9733
9734 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
9735 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
9736 *<rotate_insn><mode>3_mask in i386.md.
9737
f423a9e4
AI
97382013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
9739
9740 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
9741
90eb75f2
RB
97422013-04-02 Richard Biener <rguenther@suse.de>
9743
9744 PR tree-optimization/56778
9745 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
9746 Runtime alias tests are not supported for gather loads.
9747 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
9748 stmts referenced from SSA operands before updating SSA form.
9749
d8c69a92
IC
97502013-04-02 Ian Caulfield <ian.caulfield@arm.com>
9751 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9752
9753 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
9754 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
9755 * config/arm/cortex-a53.md: New file.
9756 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
9757 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
9758 * config/arm/arm.c (arm_issue_rate): Likewise.
9759 * config/arm/arm-tune.md: Regenerate
9760 * config/arm/arm-tables.opt: Regenerate.
9761 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 9762
239eb04c
ZC
97632013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
9764
9765 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
9766 non-static link.
9767
c902d3c8
SN
97682013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9769
d8c69a92
IC
9770 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
9771 scalar load/store operations using B/H registers.
c902d3c8
SN
9772 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
9773
051d0e2f
SN
97742013-04-02 Sofiane Naci <sofiane.naci@arm.com>
9775
9776 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
9777 scalar move.
9778 * config/aarch64/aarch64.c
9779 (aarch64_simd_scalar_immediate_valid_for_move): New.
9780 * config/aarch64/aarch64-protos.h
9781 (aarch64_simd_scalar_immediate_valid_for_move): New.
9782 * config/aarch64/constraints.md (Dh, Dq): New.
9783 * config/aarch64/iterators.md (hq): New.
9784
0ee1e3d9
EB
97852013-04-02 Eric Botcazou <ebotcazou@adacore.com>
9786
9787 * reorg.c (get_branch_condition): Deal with conditional returns.
9788 (fill_simple_delay_slots): Remove dead code dealing with jumps.
9789
136fb3f7
WM
97902013-04-01 Wei Mi <wmi@google.com>
9791
9792 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
9793 Truncate operand 2 using %b asm operand modifier.
9794 (*<shift_insn><mode>3_mask): Ditto.
9795 (*<rotate_insn><mode>3_mask): Ditto.
9796
6388c738
SB
97972013-04-01 Steven Bosscher <steven@gcc.gnu.org>
9798
9799 PR middle-end/56798
9800 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
9801
f7a4d826
KK
98022013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
9803
9804 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
9805 of next_real_insn.
9806 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
9807
4b943a49
LC
98082013-03-30 Lawrence Crowl <crowl@google.com>
9809
9810 * dse.c (clear_alias_sets): Remove never set.
9811 (disqualified_clear_alias_sets): Remove never set.
9812 (clear_alias_mode_pool): Remove never set.
9813 (dse_step0): Remove condition that is never true.
9814 (canon_address): Remove condition that is never true.
9815 (dse_step7): Remove condition that is never true.
9816 (rest_of_handle_dse): Remove condition that is never true.
9817 (rest_of_handle_dse::did_global): Remove never read from above.
9818 (dse_step2_spill): Remove never called from above.
9819 (dse_step5_spill): Remove never called from above.
9820
39718607
SB
98212013-03-30 Steven Bosscher <steven@gcc.gnu.org>
9822
da5c6bde
SB
9823 * doc/md.texi (Standard Names) <casesi>: Update documentation for
9824 JUMP_TABLE_DATA changes.
9825 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
9826 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
9827 (Insns) <jump_table_data>: New entry.
9828 * doc/tm.texi: Regenerate.
9829
39718607
SB
9830 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
9831
9832 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
9833 for table jump at the end of a basic block using tablejump_p.
9834 * targhooks.c (default_invalid_within_doloop): Likewise.
9835 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
9836 target hook implementation that is identical to the default hook.
9837 (rs6000_invalid_within_doloop): Remove.
9838
9839 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
9840 unused variable from tablejump_p call.
9841
9842 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
9843 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
9844 (INSN_DELETED_P): Likewise.
9845 (emit_jump_table_data): New prototype.
9846 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
9847 after 4th as unused.
9848 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
9849 * sched-vis.c (print_insn): Likewise.
9850 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
9851 insn for compatibility with back ends that use next_active_insn to
9852 identify jump table data.
9853 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
9854 (remove_insn): Likewise.
9855 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
9856 to be emitted.
9857 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
9858 (emit_jump_table_data): New function.
9859
9860 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
9861 basic block, a JUMP_TABLE_DATA never is.
9862 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
9863 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
9864 off from code handling real insns.
9865 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
9866 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
9867 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
9868 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
9869 is not a NONDEBUG_INSN_P.
9870 * ira-costs.c (scan_one_insn): Likewise.
9871 * jump.c (mark_all_labels): Likewise.
9872 (mark_jump_label_1): Likewise.
9873 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9874 * lra.c (get_insn_freq): Expect all insns reaching here to be in
9875 a basic block.
9876 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
9877 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
9878 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
9879 JUMP_TABLE_DATA_P insns.
9880 (calculate_elim_costs_all_insns): Likewise.
9881 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
9882 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
9883 (delete_output_reload): Code style fixups.
9884 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
9885 insn flags on this non-insn.
9886 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
9887 as scheduling barriers, for pre-change compatibility.
9888 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
9889 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
9890
9891 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
9892 redundant JUMP_TABLE_DATA_P test.
9893 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
9894 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9895 (frv_for_each_packet): Likewise.
9896 * config/i386/i386.c (min_insn_size): Likewise.
9897 (ix86_avoid_jump_mispredicts): Likewise.
9898 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9899 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
9900 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9901 (mips16_insn_length): Robustify.
9902 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
9903 (mips16_split_long_branches): Likewise.
9904 * config/pa/pa.c (pa_combine_instructions): Likewise.
9905 * config/rs6000/rs6000.c (get_next_active_insn): Treat
9906 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
9907 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
9908 as contributing to pool range lengths.
9909 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
9910 Remove redundant JUMP_TABLE_DATA_P test.
9911 (sh_loop_align): Likewise.
9912 (split_branches): Likewise.
9913 (sh_insn_length_adjustment): Likewise.
9914 * config/spu/spu.c (get_branch_target): Likewise.
9915
0208f7da
JH
99162013-03-29 Jan Hubicka <jh@suse.cz>
9917
9918 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
9919 gcov streaming; stream hot bb threshold to ltrans.
9920 * predict.c (get_hot_bb_threshold): Break out from ....
9921 (maybe_hot_count_p): ... here.
9922 (set_hot_bb_threshold): New function.
9923 * lto-section-in.c (lto_section_name): Add profile.
9924 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
9925 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
9926 and data-streamer.h
9927 (histogram_entry): New structure.
9928 (histogram, histogram_pool): New global vars.
9929 (histogram_hash): New structure.
9930 (histogram_hash::hash): New method.
9931 (histogram_hash::equal): Likewise.
9932 (account_time_size): New function.
9933 (cmp_counts): New function.
9934 (dump_histogram): New function.
9935 (ipa_profile_generate_summary): New function.
9936 (ipa_profile_write_summary): New function.
9937 (ipa_profile_read_summary): New function.
9938 (ipa_profile): Decide on threshold.
e594716a
UB
9939 (pass_ipa_profile): Add ipa_profile_write_summary and
9940 ipa_profile_read_summary.
0208f7da
JH
9941 * Makefile.in (ipa.o): Update dependencies.
9942 * lto-streamer.h (LTO_section_ipa_profile): New section.
9943
5a6ccc94
GDR
99442013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
9945
9946 * tree.h (VAR_P): New.
9947
39385fa6
PC
99482013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
9949
9950 PR lto/56777
9951 * doc/invoke.texi ([-fwhole-program]): Fix typo.
9952
34f0d87a
SB
99532013-03-29 Steven Bosscher <steven@gcc.gnu.org>
9954
9955 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
9956 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9957 (control_flow_insn_p): Likewise.
9958 * cfgrtl.c (duplicate_insn_chain): Likewise.
9959 * final.c (get_attr_length_1): Likewise.
9960 (shorten_branches): Likewise.
9961 (final_scan_insn): Likewise.
9962 * function.c (instantiate_virtual_regs): Likewise.
9963 * gcse.c (insert_insn_end_basic_block): Likewise.
9964 * ira-costs.c (scan_one_insn): Likewise.
9965 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
9966 * lra.c (check_rtl): Likewise.
9967 * reload1.c (elimination_costs_in_insn): Likewise.
9968 * reorg.c (follow_jumps): Likewise.
9969
9970 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
9971 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
9972 (thumb_far_jump_used_p): Likewise.
9973 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
9974 (workaround_speculation): Likewise.
9975 (add_sched_insns_for_speculation): Likewise.
9976 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
9977 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
9978 (frv_for_each_packet): Likewise.
9979 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
9980 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
9981 (final_emit_insn_group_barriers): Likewise.
9982 * config/m32r/m32r.c (m32r_is_insn): Likewise.
9983 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
9984 (mips16_insn_length): Likewise.
9985 * config/pa/pa.c (pa_reorg): Likewise.
9986 (pa_combine_instructions): Likewise.
9987 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
9988 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
9989 (sh_reorg): Likewise.
9990 (split_branches): Likewise.
9991 * config/spu/spu.c (get_branch_target): Likewise.
9992
9993 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
9994 JUMP_TABLE_DATA_P.
9995
4ac761b0
KY
99962013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
9997
39385fa6 9998 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
9999 Fix declaration name.
10000
58a49189
LC
100012013-03-28 Lawrence Crowl <crowl@google.com>
10002
10003 * graphds.h (struct graph.indicies): Remove unused.
10004 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
10005 (SCOP_ORIGINAL_PDDRS): Remove unused.
10006 * sese.h (extern insert_loop_close_phis): Removed unused.
10007 (extern insert_guard_phis): Removed unused.
10008 (extern ivtype_map_elt_info): Removed unused.
10009 (new_ivtype_map_elt): Removed unused.
10010 * sese.c (ivtype_map_elt_info): Removed unused.
10011
7b3b6ae4
LC
100122013-03-28 Lawrence Crowl <crowl@google.com>
10013
10014 * Makefile.in: Add several missing include dependences.
10015 (DUMPFILE_H): New.
10016 (test-dump.o): New. This object is not added to any executable,
10017 but is present for ad-hoc testing.
10018 * bitmap.c
10019 (debug (const bitmap_head_def &)): New.
10020 (debug (const bitmap_head_def *)): New.
10021 * bitmap.h
10022 (extern debug (const bitmap_head_def &)): New.
10023 (extern debug (const bitmap_head_def *)): New.
10024 * cfg.c
10025 (debug (edge_def &)): New.
10026 (debug (edge_def *)): New.
10027 * cfghooks.c
10028 (debug (basic_block_def &)): New.
10029 (debug (basic_block_def *)): New.
10030 * dumpfile.h
10031 (dump_node (const_tree, int, FILE *)): Correct source file.
10032 * dwarf2out.c
10033 (debug (die_struct &)): New.
10034 (debug (die_struct *)): New.
10035 * dwarf2out.h
10036 (extern debug (die_struct &)): New.
10037 (extern debug (die_struct *)): New.
10038 * gimple-pretty-print.c
10039 (debug (gimple_statement_d &)): New.
10040 (debug (gimple_statement_d *)): New.
10041 * gimple-pretty-print.h
10042 (extern debug (gimple_statement_d &)): New.
10043 (extern debug (gimple_statement_d *)): New.
10044 * ira-build.c
10045 (debug (ira_allocno_copy &)): New.
10046 (debug (ira_allocno_copy *)): New.
10047 (debug (ira_allocno &)): New.
10048 (debug (ira_allocno *)): New.
10049 * ira-int.h
10050 (extern debug (ira_allocno_copy &)): New.
10051 (extern debug (ira_allocno_copy *)): New.
10052 (extern debug (ira_allocno &)): New.
10053 (extern debug (ira_allocno *)): New.
10054 * ira-lives.c
10055 (debug (live_range &)): New.
10056 (debug (live_range *)): New.
10057 * lra-int.h
10058 (debug (lra_live_range &)): New.
10059 (debug (lra_live_range *)): New.
10060 * lra-lives.c
10061 (debug (lra_live_range &)): New.
10062 (debug (lra_live_range *)): New.
10063 * omega.c
10064 (debug (omega_pb_d &)): New.
10065 (debug (omega_pb_d *)): New.
10066 * omega.h
10067 (extern debug (omega_pb_d &)): New.
10068 (extern debug (omega_pb_d *)): New.
10069 * print-rtl.c
10070 (debug (const rtx_def &)): New.
10071 (debug (const rtx_def *)): New.
10072 * print-tree.c
10073 (debug_tree (tree): Move within file.
10074 (debug_raw (const tree_node &)): New.
10075 (debug_raw (const tree_node *)): New.
10076 (dump_tree_via_hooks (const tree_node *, int)): New.
10077 (debug (const tree_node &)): New.
10078 (debug (const tree_node *)): New.
10079 (debug_verbose (const tree_node &)): New.
10080 (debug_verbose (const tree_node *)): New.
10081 (debug_head (const tree_node &)): New.
10082 (debug_head (const tree_node *)): New.
10083 (debug_body (const tree_node &)): New.
10084 (debug_body (const tree_node *)): New.
10085 (debug_vec_tree (tree): Move and reimplement in terms of dump.
10086 (debug (vec<tree, va_gc> &)): New.
10087 (debug (vec<tree, va_gc> *)): New.
10088 * rtl.h
10089 (extern debug (const rtx_def &)): New.
10090 (extern debug (const rtx_def *)): New.
10091 * sbitmap.c
10092 (debug_raw (simple_bitmap_def &)): New.
10093 (debug_raw (simple_bitmap_def *)): New.
10094 (debug (simple_bitmap_def &)): New.
10095 (debug (simple_bitmap_def *)): New.
10096 * sbitmap.h
10097 (extern debug (simple_bitmap_def &)): New.
10098 (extern debug (simple_bitmap_def *)): New.
10099 (extern debug_raw (simple_bitmap_def &)): New.
10100 (extern debug_raw (simple_bitmap_def *)): New.
10101 * sel-sched-dump.c
10102 (debug (vinsn_def &)): New.
10103 (debug (vinsn_def *)): New.
10104 (debug_verbose (vinsn_def &)): New.
10105 (debug_verbose (vinsn_def *)): New.
10106 (debug (expr_def &)): New.
10107 (debug (expr_def *)): New.
10108 (debug_verbose (expr_def &)): New.
10109 (debug_verbose (expr_def *)): New.
10110 (debug (vec<rtx> &)): New.
10111 (debug (vec<rtx> *)): New.
10112 * sel-sched-dump.h
10113 (extern debug (vinsn_def &)): New.
10114 (extern debug (vinsn_def *)): New.
10115 (extern debug_verbose (vinsn_def &)): New.
10116 (extern debug_verbose (vinsn_def *)): New.
10117 (extern debug (expr_def &)): New.
10118 (extern debug (expr_def *)): New.
10119 (extern debug_verbose (expr_def &)): New.
10120 (extern debug_verbose (expr_def *)): New.
10121 (extern debug (vec<rtx> &)): New.
10122 (extern debug (vec<rtx> *)): New.
10123 * sel-sched-ir.h
10124 (_list_iter_cond_expr): Make inline instead of static.
10125 * sreal.c
10126 (debug (sreal &)): New.
10127 (debug (sreal *)): New.
10128 * sreal.h
10129 (extern debug (sreal &)): New.
10130 (extern debug (sreal *)): New.
10131 * tree.h
10132 (extern debug_raw (const tree_node &)): New.
10133 (extern debug_raw (const tree_node *)): New.
10134 (extern debug (const tree_node &)): New.
10135 (extern debug (const tree_node *)): New.
10136 (extern debug_verbose (const tree_node &)): New.
10137 (extern debug_verbose (const tree_node *)): New.
10138 (extern debug_head (const tree_node &)): New.
10139 (extern debug_head (const tree_node *)): New.
10140 (extern debug_body (const tree_node &)): New.
10141 (extern debug_body (const tree_node *)): New.
10142 (extern debug (vec<tree, va_gc> &)): New.
10143 (extern debug (vec<tree, va_gc> *)): New.
10144 * tree-cfg.c
10145 (debug (struct loop &)): New.
10146 (debug (struct loop *)): New.
10147 (debug_verbose (struct loop &)): New.
10148 (debug_verbose (struct loop *)): New.
10149 * tree-dump.c: Add header dependence.
10150 * tree-flow.h
10151 (extern debug (struct loop &)): New.
10152 (extern debug (struct loop *)): New.
10153 (extern debug_verbose (struct loop &)): New.
10154 (extern debug_verbose (struct loop *)): New.
10155 * tree-data-ref.c
10156 (debug (data_reference &)): New.
10157 (debug (data_reference *)): New.
10158 (debug (vec<data_reference_p> &)): New.
10159 (debug (vec<data_reference_p> *)): New.
10160 (debug (vec<ddr_p> &)): New.
10161 (debug (vec<ddr_p> *)): New.
10162 * tree-data-ref.h
10163 (extern debug (data_reference &)): New.
10164 (extern debug (data_reference *)): New.
10165 (extern debug (vec<data_reference_p> &)): New.
10166 (extern debug (vec<data_reference_p> *)): New.
10167 (extern debug (vec<ddr_p> &)): New.
10168 (extern debug (vec<ddr_p> *)): New.
10169 * tree-ssa-alias.c
10170 (debug (pt_solution &)): New.
10171 (debug (pt_solution *)): New.
10172 * tree-ssa-alias.h
10173 (extern debug (pt_solution &)): New.
10174 (extern debug (pt_solution *)): New.
10175 * tree-ssa-alias.c
10176 (debug (_var_map &)): New.
10177 (debug (_var_map *)): New.
10178 (debug (tree_live_info_d &)): New.
10179 (debug (tree_live_info_d *)): New.
10180 * tree-ssa-alias.h
10181 (extern debug (_var_map &)): New.
10182 (extern debug (_var_map *)): New.
10183 (extern debug (tree_live_info_d &)): New.
10184 (extern debug (tree_live_info_d *)): New.
10185
be77e1e5
JH
101862013-03-28 Jan Hubicka <jh@suse.cz>
10187
10188 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
10189
777e6976
IB
101902013-03-28 Ian Bolton <ian.bolton@arm.com>
10191
10192 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
10193 record only when desired or required.
10194
9cd347ae
UB
101952013-03-28 Uros Bizjak <ubizjak@gmail.com>
10196
10197 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
10198 *vec_extractv2di_1_rex64. Use x64 isa attribute.
10199
33159866 102002013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
10201
10202 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
10203 (*andsi3_compare0_uxtw): New pattern.
10204 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
10205 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
10206
89ab31c1
JH
102072013-03-28 Jan Hubicka <jh@suse.cz>
10208
10209 * data-streamer-in.c (streamer_read_gcov_count): New function.
10210 * gimple-streamer-out.c: Include value-prof.h.
10211 (output_gimple_stmt): Output histogram.
10212 (output_bb): Use streamer_write_gcov_count.
10213 * value-prof.c: Include data-streamer.h
10214 (dump_histogram_value): Add HIST_TYPE_MAX.
10215 (stream_out_histogram_value): New function.
10216 (stream_in_histogram_value): New function.
10217 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
10218 (stream_out_histogram_value, stream_in_histogram_value): Declare.
10219 * data-streamer-out.c (streamer_write_gcov_count): New function.
10220 (streamer_write_gcov_count_stream): New function.
10221 * lto-cgraph.c (lto_output_edge): Update counter streaming.
10222 (lto_output_node): Likewise.
10223 (input_node, input_edge): Likewise.
10224 * lto-streamer-out.c (output_cfg): Update streaming.
10225 * lto-streamer-in.c (input_cfg): Likewise.
10226 * data-streamer.h (streamer_write_gcov_count,
10227 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
10228 * gimple-streamer-in.c: Include value-prof.h
10229 (input_gimple_stmt): Input histograms.
10230 (input_bb): Update profile streaming.
10231
e594716a 102322013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 10233
33159866 10234 * genmodes.c (emit_max_int): New function.
8697be17 10235 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
10236 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
10237 Added doc.
8697be17 10238 * machmode.def: Fixed comment.
89ab31c1 10239
e594716a 102402013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
10241
10242 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
10243 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
10244
74946978
MP
102452013-03-28 Marek Polacek <polacek@redhat.com>
10246 Richard Biener <rguenther@suse.de>
10247
10248 PR tree-optimization/56695
10249 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
10250 build signed result of a vector comparison.
10251 * tree-cfg.c (verify_gimple_comparison): Check that a result
10252 of a vector comparison has signed type.
10253
a64b9c26
RB
102542013-03-28 Richard Biener <rguenther@suse.de>
10255
10256 PR tree-optimization/37021
10257 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
10258 do not restrict gaps between groups.
10259 * tree-vect-stmts.c (vectorizable_load): Properly account for
10260 a gap between groups.
10261
a9dc2a2f
EB
102622013-03-28 Eric Botcazou <ebotcazou@adacore.com>
10263
10264 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
10265 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
10266 is not enabled.
10267
53cb97f9
GP
102682013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
10269
10270 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
10271 * doc/extend.texi (Named Address Spaces): Ditto.
10272 (Variable Attributes): Ditto.
10273
b802ae5c
KT
102742013-03-27 Kai Tietz <ktietz@redhat.com>
10275
eddae10a
KT
10276 * config.build: Add support for cygwin x64 target.
10277 * config.gcc: Likewise.
10278 * config.host: Likewise.
10279 * configure.ac: Likewise
10280 * configure: Regenerated.
b802ae5c 10281
371e77e3 102822013-03-27 Kai Tietz <ktietz@redhat.com>
8269de54
KT
10283
10284 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
10285 * config/i386/t-cygwin-w64: New file.
10286 * config/i386/cygwin-w64.h: New file.
10287 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
10288 and add support for x64-cygwin target.
10289 (CPP_SPEC): Likewise.
10290 (CXX_WRAP_SPEC_LIST): Undefine before define.
10291 (LIBGCJ_SONAME): Use 15 as version.
10292
f49b33cb
RB
102932013-03-27 Richard Biener <rguenther@suse.de>
10294
10295 PR tree-optimization/56716
10296 * tree-ssa-structalias.c (perform_var_substitution): Adjust
10297 dumping for ref nodes.
10298
b37a6ce5
MJ
102992013-03-27 Martin Jambor <mjambor@suse.cz>
10300
10301 PR tree-optimization/55334
10302 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
10303 restricted pointers to arrays.
10304
9469b9b2
GDR
103052013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
10306
10307 * Makefile.in (.SUFFIXES): Add .cc.
10308 (.c.o): Apply same recipe for implicit rule .cc.o.
10309
7d24f650
RB
103102013-03-27 Richard Biener <rguenther@suse.de>
10311
10312 PR tree-optimization/37021
10313 * tree-vect-data-refs.c (vect_check_strided_load): Allow
10314 REALPART/IMAGPART_EXPRs around the supported refs.
10315 * tree-ssa-structalias.c (find_func_aliases): Assume that
10316 floating-point values are not used to transfer pointers.
10317
2f251a05
AI
103182013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
10319
39385fa6
PC
10320 * target.def (TARGET_HAS_IFUNC_P): New target hook.
10321 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
10322 * doc/tm.texi: Regenerate.
10323 * targhooks.h (default_has_ifunc_p): New.
10324 * targhooks.c (default_has_ifunc_p): Ditto.
10325 * config/linux-protos.h: New file.
10326 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
10327 this hook for linux which disables support of indirect functions in
10328 android.
39385fa6
PC
10329 * config/linux-android.c: New file.
10330 * config/t-linux-android.c: Ditto.
10331 * config.gcc: Added new object file linux-android.o.
10332 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 10333 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 10334 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
10335 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
10336 doesn't support indirect functions.
10337 * configure: Regenerate.
10338
78b4e425
BC
103392013-03-27 Bin Cheng <bin.cheng@arm.com>
10340
10341 PR target/56102
10342 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
10343 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
10344 mult-word mode.
10345
a5ba7b92
AK
103462013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10347
10348 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
10349
be624986
TG
103502013-03-27 Terry Guo <terry.guo@arm.com>
10351
10352 * config/arm/arm-cores.def: Added core cortex-r7.
10353 * config/arm/arm-tune.md: Regenerated.
10354 * config/arm/arm-tables.opt: Regenerated.
10355 * doc/invoke.texi: Added entry for core cortex-r7.
10356
0a514f47
WL
103572013-03-27 Walter Lee <walt@tilera.com>
10358
10359 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
10360 double-decrement of next_scratch_regno.
10361
9332b0d2
WL
103622013-03-27 Walter Lee <walt@tilera.com>
10363
801d9b2a 10364 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
10365 input operands.
10366 (insn_v1mulus): Ditto.
10367 (insn_v2muls): Ditto.
10368
f54ea5dd
WL
103692013-03-27 Walter Lee <walt@tilera.com>
10370
e594716a 10371 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
10372 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
10373
bf60f4ca
WL
103742013-03-27 Walter Lee <walt@tilera.com>
10375
e594716a 10376 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
10377 (*sibcall_value): Ditto.
10378
e3b51eeb
WL
103792013-03-27 Walter Lee <walt@tilera.com>
10380
10381 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
10382 (insn_mnz_v8qi): ... this ...
10383 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
10384 vector equivalent.
10385 (insn_v<n>mnz): Replaced by ...
10386 (insn_v1mnz): ... this ...
10387 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
10388 equivalent.
10389 (insn_mz_<mode>): Replaced by ...
10390 (insn_mz_v8qi): ... this ...
10391 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
10392 vector equivalent.
10393 (insn_v<n>mz): Replaced by ...
10394 (insn_v1mz): ... this ...
10395 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
10396 equivalent.
10397
4fc7b145
EB
103982013-03-26 Eric Botcazou <ebotcazou@adacore.com>
10399
10400 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
10401
6f33817e
RM
104022013-03-26 Roland McGrath <mcgrathr@google.com>
10403
10404 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
10405 than fprintf with a non-constant, non-format string.
10406
93a4145b
UB
104072013-03-26 Uros Bizjak <ubizjak@gmail.com>
10408
10409 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
10410 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
10411 operand 0 predicate.
10412 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
10413 attribute. Use general_x64nomem_operand as operand 1 predicate.
10414 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
10415 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
10416 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
10417 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
10418 (mov<mode>_insv_1): Remove expander. Merge insn with
10419 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
10420 Use general_x64nomem_operand as operand 1 predicate.
10421 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
10422 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
10423 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
10424 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
10425 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
10426 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
10427 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
10428 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
10429 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
10430 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
10431 (general_x64nomem_operand): Ditto.
10432
c6a9ed5a 104332013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
10434
10435 * config/rtems.opt: Add -pthread option.
10436
31b0a960
RB
104372013-03-26 Richard Biener <rguenther@suse.de>
10438
93a4145b
UB
10439 * alias.c (find_base_term): Avoid redundant and not used recursion.
10440 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
10441 (true_dependence_1): Compute and pass base terms to base_alias_check.
10442 (write_dependence_p): Likewise.
10443 (may_alias_p): Likewise.
10444
79517551
SN
104452013-03-26 Sofiane Naci <sofiane.naci@arm.com>
10446
10447 * config/aarch64/aarch64.c (aarch64_classify_address): Support
10448 PC-relative load in SI modes and above only.
10449
a76213b9
XQ
104502013-03-26 Xinyu Qi <xyqi@marvell.com>
10451
10452 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
10453 * config/arm/iwmmxt.md (WCGR0): Update.
10454 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 10455
37ff9355
UB
104562013-03-26 Uros Bizjak <ubizjak@gmail.com>
10457
10458 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
10459 Use x64 and nox64 isa attributes.
10460
30b0317c
RB
104612013-03-26 Richard Biener <rguenther@suse.de>
10462
10463 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
10464 alignment computations and rely on get_object_alignment_1
10465 for the !TYPE_P case.
10466 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
10467
cbcdb140
WL
104682013-03-26 Walter Lee <walt@tilera.com>
10469
10470 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
10471 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
10472
dd884525 104732013-03-25 Jeff Law <law@redhat.com>
be672e08 10474
33159866
UB
10475 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
10476 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
10477 wrong version of prior patch.
10478
0051d3ec
WL
104792013-03-25 Walter Lee <walt@tilera.com>
10480
10481 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
10482 TILEGX_INSN_SHUFFLEBYTES1.
10483 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
10484 shufflebytes1.
10485 (tilegx_builtins): Ditto.
10486 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
10487
065a3605
WL
104882013-03-25 Walter Lee <walt@tilera.com>
10489
10490 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
10491 (floatunssisf2): New pattern.
10492 (floatsidf2): New pattern.
10493 (floatunssidf2): New pattern.
065a3605 10494
5b2a3c82
WL
104952013-03-25 Walter Lee <walt@tilera.com>
10496
10497 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
10498 tests for constraint J, K, N, P.
10499
192ea533
WL
105002013-03-25 Walter Lee <walt@tilera.com>
10501
10502 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
10503 Use indirect/pcrel encoding.
10504 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
10505 Ditto.
10506
855e0d0b
SE
105072013-03-25 Steve Ellcey <sellcey@mips.com>
10508
10509 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
10510 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
10511 * config/mips/mips.c (mips_option_override): Set IMADD default.
10512 * config/mips/mips.h (PTF_AVOID_IMADD): New.
10513 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
10514 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
10515 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
10516 * doc/invoke.texi (-mimadd/-mno-imadd): New.
10517
39e45653
JL
105182013-03-25 Jeff Law <law@redhat.com>
10519
10520 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
10521 slightly to avoid creating and folding useless trees. Simplify
10522 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
10523
7482c470
UB
105242013-03-25 Uros Bizjak <ubizjak@gmail.com>
10525
10526 * config/i386/i386.md (*zero_extendsidi2): Merge with
10527 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
10528 * config/i386/predicates.md (x86_64_zext_operand): Rename from
10529 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
10530 targets. Clarify comment.
10531
4a53743e
MJ
105322013-03-25 Martin Jambor <mjambor@suse.cz>
10533
10534 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
10535 pass-through jump functions differently.
10536 (ipa_read_jump_function): Likewise. Also use setter functions to set
10537 up jump functions.
10538
162712de
MJ
105392013-03-25 Martin Jambor <mjambor@suse.cz>
10540
10541 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
10542 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
10543 process it.
10544 (ipa_get_indirect_edge_target): New function.
10545 (devirtualization_time_bonus): New parameter known_aggs, pass it to
10546 ipa_get_indirect_edge_target. Update all callers.
10547 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
10548 ipa_get_indirect_edge_target_1 instead of calling
10549 ipa_get_indirect_edge_target.
10550 (create_specialized_node): Pass aggvlas to
10551 ipcp_discover_new_direct_edges.
10552
a5a4c20a
KT
105532013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10554
10555 * config/arm/arm.md (f_sels, f_seld): New types.
10556 (*cmov<mode>): New pattern.
10557 * config/arm/predicates.md (arm_vsel_comparison_operator): New
10558 predicate.
10559
f992b9fc
KT
105602013-03-25 Kai Tietz <ktietz@redhat.com>
10561
10562 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
10563 POSIX-printf for mingw-hosted builds.
10564
c16fd676
RB
105652013-03-25 Richard Biener <rguenther@suse.de>
10566
10567 PR middle-end/56694
10568 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
10569 must-not-throw stmt location.
10570
5ad29f12
KT
105712013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10572
10573 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
10574 Emit load-acquire versions when acq is true.
10575 (arm_emit_store_exclusive): Add rel parameter.
10576 Emit store-release versions when rel is true.
10577 (arm_split_compare_and_swap): Use acquire-release instructions
10578 instead.
10579 of barriers when appropriate.
10580 (arm_split_atomic_op): Likewise.
10581 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
10582 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
10583 (VUNSPEC_SLX): Likewise.
10584 (VUNSPEC_LDA): Likewise.
10585 (VUNSPEC_STL): Likewise.
10586 * config/arm/sync.md (atomic_load<mode>): New pattern.
10587 (atomic_store<mode>): Likewise.
10588 (arm_load_acquire_exclusive<mode>): Likewise.
10589 (arm_load_acquire_exclusivesi): Likewise.
10590 (arm_load_acquire_exclusivedi): Likewise.
10591 (arm_store_release_exclusive<mode>): Likewise.
10592
03a7dddb
CM
105932013-03-25 Catherine Moore <clm@codesourcery.com>
10594
10595 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
10596 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
10597 * config/mip/predicates.md (lwsp_swsp_operand,
10598 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
10599 sb16_operand, db4_operand, db7_operand, ib3_operand,
10600 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
10601 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
10602 andi16_operand): New predicates.
10603 * config/mips/mips.md (compression): New attribute.
10604 (enabled): New attribute.
10605 (length): Consider compression in computing length.
10606 (shift_compression): New code attribute.
10607 (*add<mode>3): New operands. Record compression.
10608 (sub<mode>3): Likewise.
10609 (one_cmpl<mode>2): Likewise.
10610 (*and<mode>3): Likewise.
10611 (*ior<mode>3): Likewise.
10612 (unnamed pattern for xor): Likewise.
10613 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
10614 (*<optab><mode>3): Likewise.
10615 (*mov<mode>_internal: Likewise.
10616 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
10617 (mips_unsigned_immediate_p): New.
10618 (umips_lwsp_swsp_address_p): New.
10619 (m16_based_address_p): New.
10620 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
10621 (mips_unsigned_immediate_p): New prototype.
10622 (lwsp_swsp_address_p): New prototype.
10623 (m16_based_address_p): New prototype.
10624 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
10625 (mips_signed_immediate_p): New function.
10626 (m16_based_address_p): New function.
10627 (lwsp_swsp_address_p): New function.
10628 (mips_print_operand_punctuation): Recognize short delay slot insns
10629 for microMIPS.add<mode>3"
10630
f35c297f 106312013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 10632
f35c297f
KT
10633 PR target/56720
10634 * config/arm/iterators.md (v_cmp_result): New mode attribute.
10635 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
10636
051b9446
RB
106372013-03-25 Richard Biener <rguenther@suse.de>
10638
10639 PR tree-optimization/56689
10640 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
10641 any edge.
10642
374001cb
RB
106432013-03-25 Richard Biener <rguenther@suse.de>
10644
10645 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
10646 of bitmap.
10647 (memory_references): Likewise.
10648 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
10649 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
10650 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
10651 (gather_mem_refs_in_loops): Fold into ...
10652 (analyze_memory_references): ... this. Move initialization
10653 to tree_ssa_lim_initialize.
10654 (fill_always_executed_in): Rename to ...
10655 (fill_always_executed_in_1): ... this.
10656 (fill_always_executed_in): Move contains_call computation to
10657 this new function from ...
10658 (tree_ssa_lim_initialize): ... here.
10659 (tree_ssa_lim): Call fill_always_executed_in.
10660
57895947
EB
106612013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10662
10663 * postreload.c (reload_combine): Fix code detecting returns.
10664
1e1b18c1
EB
106652013-03-25 Eric Botcazou <ebotcazou@adacore.com>
10666
10667 * function.c (emit_use_return_register_into_block): On cc0 targets,
10668 do not emit the sequence between cc0 setter and user.
10669
9216baf1
KT
106702013-03-25 Kai Tietz <ktietz@redhat.com>
10671
1e1b18c1
EB
10672 * config/i386/predicates.md (local_symbolic_operand): Interpret
10673 dll-imported symbols as none-local.
9216baf1 10674
76421b44
RB
106752013-03-25 Richard Biener <rguenther@suse.de>
10676
10677 * tree-ssa-loop-im.c (struct depend): Remove.
10678 (struct lim_aux_data): Make depends a vec of gimples.
10679 (free_lim_aux_data): Adjust.
10680 (add_dependency): Likewise.
10681 (set_level): Likewise.
10682
d154bfa2
RB
106832013-03-25 Richard Biener <rguenther@suse.de>
10684
10685 PR middle-end/56434
10686 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
10687 the pointer returned by calls with ECF_MALLOC set.
10688
2cd9804e
UB
106892013-03-24 Uros Bizjak <ubizjak@gmail.com>
10690
acef5fe0
UB
10691 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
10692
106932013-03-24 Uros Bizjak <ubizjak@gmail.com>
10694
10695 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
10696 using MMXMODE mode iterator.
10697 (*move<mode>_internal): Merge with *movv2sf_internal and
10698 *movv2sf_internal_rex64 using MMXMODE mode iterator.
10699
225ccc68
SB
107002013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10701
85c0f02d
SB
10702 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
10703 (record_last_mem_set_info): Likewise.
10704
225ccc68
SB
10705 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
10706 of XNEWVEC followed by memset.
10707 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
10708
b64925dc
SB
107092013-03-23 Steven Bosscher <steven@gcc.gnu.org>
10710
10711 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
10712 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
10713 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
10714 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
10715 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
10716 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
10717 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
10718 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
10719 BARRIER_P instead of GET_CODE.
10720
b9aaf52e
EB
107212013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10722
10723 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
10724 inaccuracy in the probing code.
10725
10726 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
10727 (ctrapdi4): Likewise.
10728
66de4d7c
EB
107292013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10730
10731 * calls.c (expand_call): Add missing guard to code handling return
10732 of non-BLKmode structures in MSB.
10733 * function.c (expand_function_end): Likewise.
10734
4f25c8fb
EB
107352013-03-23 Eric Botcazou <ebotcazou@adacore.com>
10736
10737 * combine.c (try_combine): Adjust comment. Do not add the set of
10738 insn #0 if the destination indirectly is set or dies in insn #2.
10739 Tidy up code to distribute a new note.
10740
23b7850d
UB
107412013-03-22 Uros Bizjak <ubizjak@gmail.com>
10742
10743 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
10744 also for alternatives 16 and 17.
10745
bed852cf
UB
107462013-03-22 Uros Bizjak <ubizjak@gmail.com>
10747
10748 * config/i386/sse.md (*mov<mode>_internal): Merge with
10749 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
10750 Emit insn template depending on type attribute. Use
10751 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
10752 movd instead of movq mnemonic for interunit moves. Rewrite mode
10753 attribute calculation. Remove unit attribute calculation.
10754 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
10755 Set prefix_data16 attribute for DImode ssemov types.
10756 Use Ym instead of y for SSE-MMX conversion alternatives.
10757 Reorder operand constraints.
10758
1e8a7937
SB
107592013-03-22 Steven Bosscher <steven@gcc.gnu.org>
10760
10761 * df.h (df_insn_delete): Adjust prototype.
10762 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
10763 and let it decide whether mark the basic block dirty.
10764 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
10765 * df-scan.c (df_insn_info_delete): New helper function, split
10766 off from df_insn_delete.
10767 (df_scan_free_bb_info): Use it.
10768 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
10769 Likewise.
10770 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
10771 that the insn is actually an insn and it has a non-NULL basic block.
10772 Do not mark basic block dirty if only deleting a DEBUG_INSN.
10773
e14d094c
RB
107742013-03-22 Richard Biener <rguenther@suse.de>
10775
10776 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
10777 dep_ref members.
10778 (mem_ref_alloc): Do not allocate them.
10779 (refs_independent_p): Do not query or maintain a cache.
10780
e9cf7316
RB
107812013-03-22 Richard Biener <rguenther@suse.de>
10782
10783 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
10784 (gather_mem_refs_in_loops): Do not compute it.
10785 (analyze_memory_references): Do not allocate it.
10786 (tree_ssa_lim_finalize): Do not free it.
10787 (for_all_locs_in_loop): Do not query all_refs_in_loop.
10788
f046e81b
RB
107892013-03-22 Richard Biener <rguenther@suse.de>
10790
10791 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 10792
a05c0ddf
IB
107932013-03-22 Ian Bolton <ian.bolton@arm.com>
10794
10795 * config/aarch64/aarch64.c (aarch64_print_operand): New
10796 format specifier for printing a constant in hex.
10797 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
10798 format specifier for printing second operand.
10799
c00217fc
RB
108002013-03-22 Richard Biener <rguenther@suse.de>
10801
10802 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
10803 bitmaps.
10804 (gather_mem_refs_in_loops): Perform store accumulation here.
10805 (create_vop_ref_mapping_loop): Remove.
10806 (create_vop_ref_mapping): Likewise.
10807 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 10808 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
10809 (record_indep_loop): Remove.
10810 (record_dep_loop): New function.
10811 (ref_indep_loop_p_1): Adjust to only walk over references
10812 in the loop, not its subloops.
10813 (ref_indep_loop_p): Rename to ...
10814 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
10815 maintaining a more fine-grained cache.
10816 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
10817 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
10818
15d19bf8
RB
108192013-03-22 Richard Biener <rguenther@suse.de>
10820
10821 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
10822 (struct mem_ref): Make accesses_in_loop a vec of a vec of
10823 aggregate mem_ref_loc.
10824 (free_mem_ref_locs): Inline into ...
10825 (memref_free): ... this and adjust.
10826 (mem_ref_alloc): Adjust.
10827 (mem_ref_locs_alloc): Remove.
10828 (record_mem_ref_loc): Adjust.
10829 (get_all_locs_in_loop): Rewrite into ...
10830 (for_all_locs_in_loop): ... this iterator.
10831 (rewrite_mem_ref_loc): New functor.
10832 (rewrite_mem_refs): Use for_all_locs_in_loop.
10833 (sm_set_flag_if_changed): New functor.
10834 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
10835 (ref_always_accessed): New functor.
10836 (ref_always_accessed_p): Use for_all_locs_in_loop.
10837
6f37411d
MG
108382013-03-21 Marc Glisse <marc.glisse@inria.fr>
10839
10840 * tree-pass.h (PROP_gimple_lvec): New.
10841 * passes.c (dump_properties): Handle PROP_gimple_lvec.
10842 (init_optimization_passes): Move pass_lower_vector.
10843 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
10844 PROP_gimple_lvec.
10845 (pass_lower_vector): Provide PROP_gimple_lvec.
10846 (pass_lower_vector_ssa): Likewise.
10847 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
10848
511ef689
MW
108492013-03-21 Mark Wielaard <mjw@redhat.com>
10850
10851 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
10852
cc1df30b
UB
108532013-03-21 Uros Bizjak <ubizjak@gmail.com>
10854
10855 * config/i386/i386.md (*movdi_internal): Disparage slightly
10856 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
10857 conversion alternatives.
10858
c845cfe1
JJ
108592013-03-21 Jakub Jelinek <jakub@redhat.com>
10860
37e99116
JJ
10861 PR middle-end/48087
10862 * diagnostic.def (DK_WERROR): New kind.
10863 * diagnostic.h (werrorcount): Define.
10864 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
10865 promoted to DK_ERROR, increment DK_WERROR counter instead of
10866 DK_ERROR counter.
10867 * toplev.c (toplev_main): Call print_ignored_options even if
10868 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
10869 even if just werrorcount is non-zero.
10870
c845cfe1
JJ
10871 PR debug/55608
10872 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
10873 on failure.
10874 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
10875 (string_cst_pool_decl): New function.
10876 (optimize_one_addr_into_implicit_ptr): New function.
10877 (resolve_addr_in_expr): Optimize DWARF location expression
10878 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
10879 which doesn't live in memory, but has DW_AT_location or
10880 DW_AT_const_value, or refers to a string literal, into
10881 DW_OP_GNU_implicit_pointer.
10882 (optimize_location_into_implicit_ptr): New function.
10883 (resolve_addr): If removing DW_AT_location of a variable because
10884 it was DW_OP_addr of address of the variable, but the variable doesn't
10885 live in memory, try to emit const value attribute for the initializer.
10886
08e0cda6
MG
108872013-03-21 Marc Glisse <marc.glisse@inria.fr>
10888
10889 * tree.h (VECTOR_TYPE_P): New macro.
10890 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
10891 TYPE_MODE): Use it.
10892 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
10893 VEC_COND_EXPR cannot be lvalues.
10894 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
10895
d08633b4
MG
108962013-03-21 Marc Glisse <marc.glisse@inria.fr>
10897
10898 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
10899 Restrict the transformation to equal modes.
10900
e6647190
RB
109012013-03-21 Richard Biener <rguenther@suse.de>
10902
10903 PR tree-optimization/39326
10904 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
10905 (MEM_ANALYZABLE): Adjust.
10906 (record_mem_ref_loc): Move bitmap ops ...
10907 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
10908 unanalyzable refs, do not record locations for it.
10909 (analyze_memory_references): Allocate ref zero as shared
10910 unanalyzable ref.
10911 (refs_independent_p): Do not test for unanalyzed mems here.
10912 (ref_indep_loop_p_1): Special-case disambiguation against
10913 the unanalyzed ref.
cc1df30b 10914 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 10915
65074f54
CL
109162013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
10917
10918 * config/arm/arm-protos.h (tune_params): Add
10919 prefer_neon_for_64bits field.
10920 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
10921 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
10922 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
10923 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
10924 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
10925 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
10926 (arm_option_override): Handle -mneon-for-64bits new option.
10927 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
10928 (prefer_neon_for_64bits): Declare new variable.
10929 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 10930 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
10931 (arch_enabled): Handle new arch types. Remove support for onlya8
10932 and nota8.
10933 (one_cmpldi2): Use new arch names.
bc5faa5b 10934 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
10935 * config/arm/arm.opt (mneon-for-64bits): Add option.
10936 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
10937 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
10938 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
10939 of onlya8.
10940 * doc/invoke.texi (-mneon-for-64bits): Document.
10941
5a2d2a79
RB
109422013-03-21 Richard Biener <rguenther@suse.de>
10943
10944 PR tree-optimization/39326
10945 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
10946 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 10947 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 10948
5abe1e05
RB
109492013-03-21 Richard Biener <rguenther@suse.de>
10950
10951 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
10952 (vect_insert_into_interleaving_chain): Likewise.
10953 (vect_drs_dependent_in_basic_block): Inline ...
10954 (vect_slp_analyze_data_ref_dependence): ... here. New function,
10955 split out from ...
10956 (vect_analyze_data_ref_dependence): ... here. Simplify.
10957 (vect_check_interleaving): Simplify.
10958 (vect_analyze_data_ref_dependences): Likewise. Split out ...
10959 (vect_slp_analyze_data_ref_dependences): ... this new function.
10960 (dr_group_sort_cmp): New function.
10961 (vect_analyze_data_ref_accesses): Compute data-reference groups
10962 here instead of in vect_analyze_data_ref_dependence. Use
10963 a more efficient algorithm.
10964 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
10965 vect_slp_analyze_data_ref_dependences. Call
10966 vect_analyze_data_ref_accesses earlier.
10967 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
10968 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
10969 (vect_slp_analyze_data_ref_dependences): New prototype.
10970
cad1735b
RB
109712013-03-21 Richard Biener <rguenther@suse.de>
10972
10973 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
10974 ref is stored in the loop.
10975 (find_refs_for_sm): Walk only over all stores.
10976 (store_motion_loop): Allocate from lim_bitmap_obstack.
10977 (store_motion): Likewise.
10978
141310ef
RB
109792013-03-21 Richard Biener <rguenther@suse.de>
10980
10981 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
10982 Update virtual SSA form.
10983
5022315a
RO
109842013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10985
10986 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
10987 * configure: Regenerate.
10988 * config.in: Regenerate.
10989 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
10990 if !HAVE_LD_EH_FRAME_CIEV3.
10991
50d4421c
RB
109922013-03-21 Richard Biener <rguenther@suse.de>
10993
10994 * tree-cfg.c (verify_expr_no_block): New function.
10995 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
10996 nor DECL_VALUE_EXPR have locations with associated blocks.
10997 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
10998 (clear_unused_block_pointer): Remove code dealing with
10999 blocks in DECL_DEBUG_EXPR locations.
11000
839b422f
RB
110012013-03-21 Richard Biener <rguenther@suse.de>
11002
11003 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
11004 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
11005 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
11006 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
11007 instead of DECL_DEBUG_EXPR_IS_FROM.
11008 * gimplify.c (gimplify_modify_expr): Likewise.
11009 * tree-cfg.c (verify_expr_location_1): Likewise.
11010 * tree-complex.c (create_one_component_var): Likewise.
11011 * tree-sra.c (create_access_replacement): Likewise.
11012 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
11013 (clear_unused_block_pointer): Likewise.
11014 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
11015 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
11016 * var-tracking.c (var_debug_decl): Likewise.
11017 (track_expr_p): Likewise.
11018 * tree-inline.c (add_local_variables): Likewise. Set
11019 DECL_HAS_DEBUG_EXPR_P after copying it.
11020 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
11021 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
11022
fe04878d
UB
110232013-03-21 Uros Bizjak <ubizjak@gmail.com>
11024
11025 PR bootstrap/56656
11026 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
11027 * configure: Regenerate.
11028 * config.in: Regenerate.
11029 * config/i386/i386.md (*movdf_internal): Use
11030 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
11031 movd instead of movq mnemonic for interunit moves.
11032 (*movdi_internal): Ditto.
11033
bd059b26 110342013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
11035
11036 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
11037 (abd<mode>_3): New pattern.
11038 (aba<mode>_3): New pattern.
11039 (fabd<mode>_3): New pattern.
11040
bd059b26 110412013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
11042
11043 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
11044 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
11045 occurrence of REGISTER_PREFIX as its empty string.
11046
4f1f78b9
JL
110472013-03-20 Jeff Law <law@redhat.com>
11048
11049 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
11050 addititional equivalences for equality comparisons between an SSA_NAME
11051 and a constant where the SSA_NAME was set from a widening conversion.
11052
327a1118
WL
110532013-03-20 Walter Lee <walt@tilera.com>
11054
11055 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
11056
813e0036
UB
110572013-03-20 Uros Bizjak <ubizjak@gmail.com>
11058
11059 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
11060 depending on type attribute.
11061 (*movti_internal): Ditto.
11062 (*movtf_internal): Ditto.
11063 (*movxf_internal): Ditto.
11064 (*movdf_internal): Ditto.
11065 (*movsf_internal): Ditto.
11066
7cf34aae
UB
110672013-03-20 Uros Bizjak <ubizjak@gmail.com>
11068
11069 * config/i386/i386.md (*movti_internal): Set prefix attribute to
11070 maybe_vex for sselog1 and ssemov types.
11071 (*movdi_internal): Reorder operand constraints.
11072 (*movsi_internal): Ditto. Set prefix attribute to
11073 maybe_vex for sselog1 and ssemov types.
11074 (*movtf_internal): Set prefix attribute to maybe_vex
11075 for sselog1 and ssemov types.
11076 (*movdf_internal): Ditto. Set prefix_data16 attribute for
11077 DImode ssemov types. Reorder operand constraints.
11078 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
11079 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
11080 attribute for SImode ssemov types. Reorder operand constraints.
11081
19321415
MJ
110822013-03-20 Martin Jambor <mjambor@suse.cz>
11083
11084 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
11085 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
11086
c6d5ff83
MM
110872013-03-20 Pat Haugen <pthaugen@us.ibm.com>
11088
11089 * config/rs6000/predicates.md (indexed_address, update_address_mem
11090 update_indexed_address_mem): New predicates.
11091 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
11092 attribute for load/store instructions.
11093 * config/rs6000/dfp.md (movsd_store): Likewise.
11094 (movsd_load): Likewise.
11095 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
11096 (unnamed HI->DI extend define_insn): Likewise.
11097 (unnamed SI->DI extend define_insn): Likewise.
11098 (unnamed QI->SI extend define_insn): Likewise.
11099 (unnamed QI->HI extend define_insn): Likewise.
11100 (unnamed HI->SI extend define_insn): Likewise.
11101 (unnamed HI->SI extend define_insn): Likewise.
11102 (extendsfdf2_fpr): Likewise.
11103 (movsi_internal1): Likewise.
11104 (movsi_internal1_single): Likewise.
11105 (movhi_internal): Likewise.
11106 (movqi_internal): Likewise.
11107 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
11108 attribute for load/store instructions.
11109 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
11110 instructions.
11111 (mov<mode>_softfloat): Likewise.
11112 (mov<mode>_hardfloat32): Likewise.
11113 (mov<mode>_hardfloat64): Likewise.
11114 (mov<mode>_softfloat64): Likewise.
11115 (movdi_internal32): Likewise.
11116 (movdi_internal64): Likewise.
11117 (probe_stack_<mode>): Likewise.
11118
111192013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
11120
11121 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
11122 floating point, and decimal floating point to reload iterator.
11123
11124 * config/rs6000/constraints.md (wl constraint): New constraints to
11125 return FLOAT_REGS if certain options are used to reduce the number
11126 of separate patterns that exist in the file.
11127 (wx constraint): Likewise.
11128 (wz constraint): Likewise.
11129
11130 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
11131 -mdebug=reg, print wg, wl, wx, and wz constraints.
11132 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
11133 Initialize the reload functions for 64-bit binary/decimal floating
11134 point types.
11135 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
11136 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
11137 create the buffer on the stack to overcome not having a 32-bit
11138 load and store.
11139 (rs6000_emit_move): Likewise.
11140 (rs6000_secondary_memory_needed_rtx): Likewise.
11141 (rs6000_alloc_sdmode_stack_slot): Likewise.
11142 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
11143 via xxlxor, just like DFmode 0.0.
11144
11145 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
11146 define as 1 if we are running on a power7 or newer.
11147 (enum r6000_reg_class_enum): Add new constraints.
11148
11149 * config/rs6000/dfp.md (movsd): Delete, combine with binary
11150 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
11151 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 11152 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
11153 (movsd splitter): Likewise.
11154 (movsd_hardfloat): Likewise.
11155 (movsd_softfloat): Likewise.
11156
11157 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
11158 binary and decimal floating point moves.
11159 (fmove_ok): New attributes to combine binary and decimal floating
11160 point moves, and to combine power6x (mfpgpr) moves along normal
11161 floating moves.
11162 (real_value_to_target): Likewise.
11163 (f32_lr): Likewise.
11164 (f32_lm): Likewise.
11165 (f32_li): Likewise.
11166 (f32_sr): Likewise.
11167 (f32_sm): Likewise.
11168 (f32_si): Likewise.
11169 (movsf): Combine binary and decimal floating point moves. Combine
11170 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 11171 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
11172 (mov<mode> for SFmode/SDmode); Likewise.
11173 (SFmode/SDmode splitters): Likewise.
11174 (movsf_hardfloat): Likewise.
11175 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
11176 (movsf_softfloat): Likewise.
11177 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
11178
11179 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
11180 wx and wz constraints.
11181
11182 * config/rs6000/constraints.md (wg constraint): New constraint to
11183 return FLOAT_REGS if -mmfpgpr (power6x) was used.
11184
11185 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
11186 constraint.
11187
11188 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
11189 -mdebug=reg, print wg, wl, wx, and wz constraints.
11190 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
11191 Initialize the reload functions for 64-bit binary/decimal floating
11192 point types.
11193 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
11194 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
11195 create the buffer on the stack to overcome not having a 32-bit
11196 load and store.
11197 (rs6000_emit_move): Likewise.
11198 (rs6000_secondary_memory_needed_rtx): Likewise.
11199 (rs6000_alloc_sdmode_stack_slot): Likewise.
11200 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
11201 via xxlxor, just like DFmode 0.0.
11202
c6d5ff83
MM
11203 * config/rs6000/dfp.md (movdd): Delete, combine with binary
11204 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
11205 with other moves by using conditional constraits (wg). Use LFIWZX
11206 and STFIWX for loading SDmode on power7.
11207 (movdd splitters): Likewise.
11208 (movdd_hardfloat32): Likewise.
11209 (movdd_softfloat32): Likewise.
11210 (movdd_hardfloat64_mfpgpr): Likewise.
11211 (movdd_hardfloat64): Likewise.
11212 (movdd_softfloat64): Likewise.
11213
11214 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
11215 64-bit binary and decimal floating point moves.
11216 (FMOVE64X): Likewise.
11217 (movdf): Combine 64-bit binary and decimal floating point moves.
11218 Combine power6x (mfpgpr) moves with other moves by using
11219 conditional constraits (wg).
11220 (mov<mode> for DFmode/DDmode): Likewise.
11221 (DFmode/DDmode splitters): Likewise.
11222 (movdf_hardfloat32): Likewise.
11223 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
11224 (movdf_softfloat32): Likewise.
11225 (movdf_hardfloat64_mfpgpr): Likewise.
11226 (movdf_hardfloat64): Likewise.
11227 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
11228 (movdf_softfloat64): Likewise.
11229 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
11230 (reload_<mode>_load): Move to later in the file so they aren't in
11231 the middle of the floating point move insns.
11232 (reload_<mode>_store): Likewise.
11233
11234 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
11235 constraint.
11236
11237 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
11238 constraint if -mdebug=reg.
bd059b26
UB
11239 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
11240 Enable using dd reload support if needed.
c6d5ff83
MM
11241
11242 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
11243 binary and decimal floating point moves in rs6000.md.
11244 (movtd_internal): Likewise.
11245
11246 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
11247 decimal floating point moves.
11248 (movtf): Likewise.
11249 (movtf_internal): Likewise.
11250 (mov<mode>_internal, TDmode/TFmode): Likewise.
11251 (movtf_softfloat): Likewise.
11252 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
11253
11254 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
11255 movdi_internal64, using wg constraint for move direct operations.
11256 (movdi_internal64): Likewise.
11257
11258 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
11259 MODES_TIEABLE_P for selected modes. Print the numerical value of
11260 the various virtual registers. Use GPR/FPR first/last values,
11261 instead of hard coding the register numbers. Print which modes
11262 have reload functions registered.
bd059b26
UB
11263 (rs6000_option_override_internal): If -mdebug=reg, trace the options
11264 settings before/after setting cpu, target and subtarget settings.
11265 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
11266 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
11267 (rs6000_secondary_reload_fail): Likewise.
11268 (rs6000_secondary_reload_inner): Likewise.
11269
11270 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
11271 macros for first/last GPR and FPR registers.
11272 (LAST_GPR_REGNO): Likewise.
11273 (FIRST_FPR_REGNO): Likewise.
11274 (LAST_FPR_REGNO): Likewise.
11275
11276 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
11277 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
11278 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
11279 (vcond<mode><mode>): Likewise.
11280 (vcondu<mode><mode>): Likewise.
11281 (vector_gtu<mode>): Likewise.
11282 (vector_gte<mode>): Likewise.
11283 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 11284 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
11285 (ior<mode>3): Likewise.
11286 (and<mode>3): Likewise.
11287 (one_cmpl<mode>2): Likewise.
11288 (nor<mode>3): Likewise.
11289 (andc<mode>3): Likewise.
11290
11291 * config/rs6000/constraints.md (wt constraint): New constraint
11292 that returns VSX_REGS if TImode is allowed in VSX registers.
11293
11294 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
11295 constant under VSX.
11296
11297 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
11298 similar to TImode, but it is restricted to being in the GPRs.
11299
11300 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
11301 TImode to occupy a single VSX register.
11302
11303 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
11304 -mvsx-timode for power7/power8.
11305 (power7 cpu): Likewise.
11306 (power8 cpu): Likewise.
11307
11308 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
11309 sure that TFmode/TDmode take up two registers if they are ever
11310 allowed in the upper VSX registers.
11311 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
11312 registers.
11313 (rs6000_init_hard_regno_mode_ok): Likewise.
11314 (rs6000_debug_reg_global): Add debugging for PTImode and wt
11315 constraint. Print if LRA is turned on.
11316 (rs6000_option_override_internal): Give an error if -mvsx-timode
11317 and VSX is not enabled.
11318 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
11319 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
11320 to reg+offset addressing. Use PTImode when checking offset
11321 addresses for validity.
11322 (reg_offset_addressing_ok_p): Likewise.
11323 (rs6000_legitimate_offset_address_p): Likewise.
11324 (rs6000_legitimize_address): Likewise.
11325 (rs6000_legitimize_reload_address): Likewise.
11326 (rs6000_legitimate_address_p): Likewise.
11327 (rs6000_eliminate_indexed_memrefs): Likewise.
11328 (rs6000_emit_move): Likewise.
11329 (rs6000_secondary_reload): Likewise.
11330 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
11331 reloads to fpr registers to continue to use reg+offset addressing,
11332 but 64-bit reloads to altivec registers need reg+reg addressing.
11333 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
11334 it. Treat LO_SUM like a PLUS operation.
11335 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 11336 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
11337 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
11338 registers to share a register with a smaller sized type, since VSX
11339 puts scalars in the upper 64-bits.
11340 (print_operand): Add support for PTImode.
11341 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
11342 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
11343 registers, but don't have arithmetic support.
11344 (rs6000_memory_move_cost): Add test for VSX.
11345 (rs6000_opt_masks): Add -mvsx-timode.
11346
11347 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
11348 for TImode.
11349 (VSs): Likewise.
11350 (VSr): Use wt constraint for TImode.
11351 (VSv): Drop TImode support.
11352 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
11353 (vsx_movti_64bit): Likewise.
11354 (vsx_movti_32bit): Likewise.
11355 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
11356 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
11357 one '?' on the appropriate output constraint. Do not allow TImode
11358 logical operations on 32-bit systems.
11359 (vsx_ior<mode>3): Likewise.
11360 (vsx_xor<mode>3): Likewise.
11361 (vsx_one_cmpl<mode>2): Likewise.
11362 (vsx_nor<mode>3): Likewise.
11363 (vsx_andc<mode>3): Likewise.
11364 (vsx_concat_<mode>): Likewise.
11365 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
11366
11367 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
11368 OPTION_MASK_VSX_TIMODE.
11369 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
11370 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
11371
11372 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
11373 (TI2 iterator): New iterator for TImode, PTImode.
11374 (wd mode attribute): Add values for vector types.
bd059b26
UB
11375 (movti_string): Replace TI move operations with operations for TImode
11376 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
11377 (mov<mode>_string, TImode/PTImode): Likewise.
11378 (movti_ppc64): Likewise.
11379 (mov<mode>_ppc64, TImode/PTImode): Likewise.
11380 (TI mode splitters): Likewise.
11381
11382 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
11383 constraint.
11384
1fc5eced
MG
113852013-03-20 Marc Glisse <marc.glisse@inria.fr>
11386
11387 PR tree-optimization/56355
11388 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
11389 Also handle integers with undefined overflow.
11390
22c4c869
CM
113912013-03-20 Catherine Moore <clm@codesourcery.com>
11392 Maciej W. Rozycki <macro@codesourcery.com>
11393 Tom de Vries <tom@codesourcery.com>
11394 Nathan Sidwell <nathan@codesourcery.com>
11395 Iain Sandoe <iain@codesourcery.com>
11396 Nathan Froyd <froydnj@codesourcery.com>
11397 Chao-ying Fu <fu@mips.com>
11398
11399 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 11400 Document new function attributes.
22c4c869
CM
11401 * doc/invoke.texi (minterlink-compressed, mmicromips,
11402 m14k, m14ke, m14kec): Document new options.
11403 (minterlink-mips16): Update documentation.
11404 * doc/md.texi (ZC, ZD): Document new constraints.
11405 * configure.ac (gcc_cv_as_micromips): Check if linker
11406 supports the .set micromips directive.
11407 * configure: Regenerate.
11408 * config.in: Regenerate.
11409 * config/mips/mips-tables.opt: Regenerate.
11410 * config/mips/micromips.md: New file.
11411 * constraints.md (ZC, ZD): New constraints.
11412 * config/mips/predicates.md (movep_src_register): New predicate.
11413 (movep_src_operand): New predicate.
11414 (non_volatile_mem_operand): New predicate.
11415 * config/mips/mips.md (multimem): New type.
11416 (length): Differentiate between 17-bit and 18-bit branch offsets.
11417 (MOVEP1, MOVEP2): New mode iterator.
33159866 11418 (mov_<load>l): Use ZC constraint.
22c4c869
CM
11419 (mov_<load>r): Likewise.
11420 (mov_<store>l): Likewise.
11421 (mov_<store>r): Likewise.
11422 (*branch_equality<mode>_inverted): Add microMIPS support.
11423 (*branch_equality<mode>): Likewise.
11424 (*jump_absolute): Likewise.
11425 (indirect_jump_<mode>): Likewise.
11426 (tablejump_<mode>): Likewise.
11427 (<optab>_internal): Likewise.
11428 (sibcall_internal): Likewise.
11429 (sibcall_value_internal): Likewise.
11430 (prefetch): Use constraint ZD.
11431 * config/mips/mips.opt (minterlink-compressed): New option.
11432 (minterlink-mips16): Now an alias for minterlink-compressed.
11433 (mmicromips): New option.
11434 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11435 (compare_and_swap_12): Likewise.
11436 (sync_add<mode>): Likewise.
11437 (sync_<optab>_12): Likewise.
11438 (sync_old_<optab>_12): Likewise.
11439 (sync_new_<optab>_12): Likewise.
11440 (sync_nand_12): Likewise.
11441 (sync_old_nand_12): Likewise.
11442 (sync_new_nand_12): Likewise.
11443 (sync_sub<mode>): Likewise.
11444 (sync_old_add<mode>): Likewise.
11445 (sync_old_sub<mode>): Likewise.
11446 (sync_new_add<mode>): Likewise.
11447 (sync_new_sub<mode>): Likewise.
11448 (sync_<optab><mode>): Likewise.
11449 (sync_old_<optab><mode>): Likewise.
11450 (sync_new_<optab><mode>): Likewise.
11451 (sync_nand<mode>): Likewise.
11452 (sync_old_nand<mode>): Likewise.
11453 (sync_new_nand<mode>): Likewise.
11454 (sync_lock_test_and_set<mode>): Likewise.
11455 (test_and_set_12): Likewise.
11456 (atomic_compare_and_swap<mode>): Likewise.
11457 (atomic_exchange<mode>_llsc): Likewise.
11458 (atomic_fetch_add<mode>_llsc): Likewise.
11459 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11460 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11461 (umips_save_restore_pattern_p): Likewise.
11462 (umips_load_store_pair_p): Likewise.
11463 (umips_output_load_store_pair): Likewise.
11464 (umips_movep_target_p): Likewise.
11465 (umips_12bit_offset_address_p): Likewise.
11466 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11467 (mips_base_mips16): Rename this...
11468 (mips_base_compression_flags): ...to this. Update all uses.
11469 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11470 (mips_mips16_decl_p): Delete.
11471 (mips_nomips16_decl_p): Delete.
33159866 11472 (mips_get_compress_on_flags): New function.
22c4c869
CM
11473 (mips_get_compress_off_flags): New function.
11474 (mips_get_compress_mode): New function.
11475 (mips_get_compress_on_name): New function.
11476 (mips_get_compress_off_name): New function.
11477 (mips_insert_attributes): Support multiple compression types.
11478 (mips_merge_decl_attributes): Likewise.
11479 (umips_12bit_offset_address_p): New function.
11480 (mips_start_function_definition): Emit .set micromips directive.
11481 (mips_call_may_need_jalx_p): New function.
11482 (mips_function_ok_for_sibcall): Add microMIPS support.
11483 (mips_print_operand_punctuation): Support short delay slots and
11484 compact jumps.
11485 (umips_swm_mask, umips_swm_encoding): New.
11486 (umips_build_save_restore): New function.
11487 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11488 (was_mips16_p): Remove.
11489 (old_compression_mode): New.
11490 (mips_set_compression_mode): New function.
11491 (mips_set_current_function): Add microMIPS support.
11492 (mips_option_override): Likewise.
11493 (umips_save_restore_pattern_p): New function.
11494 (umips_output_save_restore): New function.
11495 (umips_load_store_pair_p_1): New function.
11496 (umips_load_store_pair_p): New function.
11497 (umips_output_load_store_pair_1): New function.
11498 (umips_output_load_store_pair): New function.
11499 (umips_movep_target_p) New function.
11500 (mips_prepare_pch_save): Add microMIPS support.
11501 * config/mips/mips.h (TARGET_COMPRESSION): New.
11502 (TARGET_CPU_CPP_BUILTINS): Update macro
11503 to use new compression flags and to support microMIPS.
11504 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11505 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11506 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11507 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11508 (ASM_SPEC): Support mmicromips and mno-micromips.
11509 (M16STORE_REG_P): New macro.
11510 (MIPS_CALL): Support TARGET_MICROMIPS.
11511 (MICROMIPS_J): New macro.
11512 (mips_base_mips16): Rename this...
11513 (mips_base_compression_flags): ...to this.
11514 (UMIPS_12BIT_OFFSET_P): New macro.
11515 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11516 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
115172013-03-20 Richard Biener <rguenther@suse.de>
11518
11519 PR tree-optimization/56661
11520 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
11521 the result does not have to be distinct.
11522
54714c68
RB
115232013-03-20 Richard Biener <rguenther@suse.de>
11524
11525 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
11526 remap_gimple_op_r.
11527
cca1130d
BS
115282013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11529 Steven Bosscher <steven@gcc.gnu.org>
11530
11531 PR rtl-optimization/56605
11532 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
11533
2a930377
UB
115342013-03-20 Uros Bizjak <ubizjak@gmail.com>
11535
11536 PR bootstrap/56656
11537 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
11538 that require movd instead of movq.
11539
d6d305fe
RB
115402013-03-20 Richard Biener <rguenther@suse.de>
11541
11542 * tree-ssa-structalias.c (struct variable_info): Add pointer
11543 to the first field of an aggregate with sub-vars. Make
11544 this and the pointer to the next subfield its ID.
11545 (vi_next): New function.
11546 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
11547 storedanything_id, integer_id): Increment by one.
11548 (new_var_info, get_call_vi, lookup_call_clobber_vi,
11549 get_call_clobber_vi): Adjust.
11550 (solution_set_expand): Simplify and speedup.
11551 (solution_set_add): Inline into ...
11552 (set_union_with_increment): ... this. Adjust accordingly.
11553 (do_sd_constraint): Likewise.
11554 (do_ds_constraint): Likewise.
11555 (do_complex_constraint): Simplify.
11556 (build_pred_graph): Adjust.
11557 (solve_graph): Likewise. Simplify and speedup.
11558 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
11559 get_constraint_for_component_ref, get_constraint_for_1,
11560 first_vi_for_offset, first_or_preceding_vi_for_offset,
11561 create_function_info_for, create_variable_info_for_1,
11562 create_variable_info_for, intra_create_variable_infos): Adjust.
11563 (init_base_vars): Push NULL for ID zero.
11564 (compute_points_to_sets): Adjust.
11565
a271b42d
RB
115662013-03-20 Richard Biener <rguenther@suse.de>
11567
11568 * cfgloop.c (verify_loop_structure): Streamline and avoid
11569 ICEing on corrupt loop tree.
11570 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
11571 loop tree.
11572
ebd65954
RB
115732013-03-20 Richard Biener <rguenther@suse.de>
11574
11575 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
11576 check whether an SSA update is needed.
11577
4547b7ee
RS
115782013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
11579
11580 * config/mips/constraints.md (T): Rename to...
11581 (Yf): ...this.
11582 (U): Rename to...
11583 (Yd): ...this.
11584 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
11585 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
11586
0b8cdc58
IB
115872013-03-19 Ian Bolton <ian.bolton@arm.com>
11588
11589 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
11590 (*subsi3_carryin_uxtw): Likewise.
11591
5977a10d
IB
115922013-03-19 Ian Bolton <ian.bolton@arm.com>
11593
11594 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
11595 (*rorsi3_insn_uxtw): Likewise.
11596
bd83ff2c
IB
115972013-03-19 Ian Bolton <ian.bolton@arm.com>
11598
11599 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
11600 (*extrsi5_insn_uxtw): Likewise.
11601
ba65123c
RB
116022013-03-19 Richard Biener <rguenther@suse.de>
11603
11604 PR tree-optimization/56273
11605 * passes.c (init_optimization_passes): Move second VRP after DOM.
11606
2eac0476
UB
116072013-03-19 Uros Bizjak <ubizjak@gmail.com>
11608
11609 * config/i386/i386.md (*movti_internal): Merge from
11610 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
11611 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
11612 nox64 isa attributes.
11613
6e55eda7
RB
116142013-03-18 Richard Biener <rguenther@suse.de>
11615
11616 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
11617 (unite): Likewise.
11618 (merge_node_constraints): Likewise.
11619 (build_succ_graph): Likewise.
11620 (valid_graph_edge): Inline into single caller.
11621 (unify_nodes): Likewise. Use bitmap_set_bit return value
11622 and cache varinfo.
11623 (scc_visit): Fix formatting and variable use.
11624 (do_sd_constraint): Use gcc_checking_assert.
11625 (do_ds_constraint): Likewise.
11626 (do_complex_constraint): Likewise.
11627 (condense_visit): Likewise. Cleanup.
11628 (dump_pred_graph): New function.
11629 (perform_var_substitution): Dump the pred-graph before
11630 variable substitution.
11631 (find_equivalent_node): Use gcc_checking_assert.
11632 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
11633
4bdd44c4
RB
116342013-03-18 Richard Biener <rguenther@suse.de>
11635
11636 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
11637 Remove cond_expr_stmt_list argument and do not gimplify the
11638 built expression.
11639 (vect_loop_versioning): Adjust.
11640 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
11641 Cleanup to use less temporaries.
11642 (vect_create_data_ref_ptr): Cleanup.
11643
38c56a5b
JJ
116442013-03-18 Jakub Jelinek <jakub@redhat.com>
11645
11646 PR tree-optimization/56635
11647 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
11648 require types_compatible_p types.
11649
20b2e6a0
NC
116502013-03-18 Nick Clifton <nickc@redhat.com>
11651
a6178a25
NC
11652 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
11653 spurious backslash.
11654
20b2e6a0
NC
11655 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
11656 Add missing line to comment describing function.
11657
92608d0e
RB
116582013-03-18 Richard Biener <rguenther@suse.de>
11659
11660 PR tree-optimization/56210
11661 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11662 Handle string / character search functions.
11663 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
11664
31348d52
RB
116652013-03-18 Richard Biener <rguenther@suse.de>
11666
11667 PR middle-end/56483
11668 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
11669 and implement properly.
11670 * gimple.h (gimple_cond_single_var_p): Remove.
11671
fcac74a1
RB
116722013-03-18 Richard Biener <rguenther@suse.de>
11673
11674 * tree-data-ref.h (find_data_references_in_loop): Declare.
11675 * tree-data-ref.c (get_references_in_stmt): Use a stack
11676 vector pre-allocated in the callers.
11677 (find_data_references_in_stmt): Adjust.
11678 (graphite_find_data_references_in_stmt): Likewise.
11679 (create_rdg_vertices): Likewise.
11680 (find_data_references_in_loop): Export.
11681 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
11682 Compute dependences here...
11683 (vect_analyze_data_refs): ...not here. When we encounter
11684 a non-vectorizable data reference in basic-block vectorization
11685 truncate the data reference vector. Do not bother to
11686 fixup data-dependence information for gather loads.
11687 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
11688 of data references, as reported.
11689
0d5a1b56
RB
116902013-03-18 Richard Biener <rguenther@suse.de>
11691
11692 PR tree-optimization/3713
11693 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
11694 has_constants and expr.
11695 (stmt_has_constants): Properly valueize SSA names when deciding
11696 whether the stmt has constants.
11697
789c34e3
RB
116982013-03-18 Richard Biener <rguenther@suse.de>
11699
11700 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
11701 whole function when there is nothing to do.
11702 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
11703 * tree-vectorizer.c (vectorize_loops): Update virtual and
11704 loop-closed SSA once.
11705 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
11706
076b4605
RB
117072013-03-18 Richard Biener <rguenther@suse.de>
11708
11709 PR middle-end/56113
11710 * domwalk.c (bb_postorder): New global static.
11711 (cmp_bb_postorder): New function.
11712 (walk_dominator_tree): Replace scheme imposing an order for
11713 visiting dominator sons by one sorting them at the time they
11714 are pushed on the stack.
11715
bdb01696
RB
117162013-03-18 Richard Biener <rguenther@suse.de>
11717
11718 PR tree-optimization/39326
11719 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
11720 (struct mem_ref): Replace mem member with ao_ref typed member.
11721 (MEM_ANALYZABLE): Adjust.
11722 (memref_eq): Likewise.
11723 (mem_ref_alloc): Likewise.
11724 (gather_mem_refs_stmt): Likewise.
11725 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
11726 (execute_sm_if_changed_flag_set): Adjust.
11727 (execute_sm): Likewise.
11728 (ref_always_accessed_p): Likewise.
11729 (refs_independent_p): Likewise.
11730 (can_sm_ref_p): Likewise.
11731
12d2dc5e
JJ
117322013-03-18 Jakub Jelinek <jakub@redhat.com>
11733
11734 PR c/56566
11735 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
11736 return 1 even for !unsignedp.
11737
286fb677
UB
117382013-03-17 Uros Bizjak <ubizjak@gmail.com>
11739
11740 * config/i386/i386.md (isa): Add x64 and nox64.
11741 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
11742 (*pushtf): Enable *roF alternative for x64 isa only.
11743 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
11744 mode attribute of integer alternatives to DImode for TARGET_64BIT.
11745 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
11746 (*movtf_internal): Merge from *movtf_internal_rex64 and
11747 *movtf_internal_sse. Use x64 and nox64 isa attributes.
11748 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
11749 nox64 isa attributes.
11750 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
11751 nox64 isa attributes.
11752 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
11753
88b97037
UB
117542013-03-17 Uros Bizjak <ubizjak@gmail.com>
11755
11756 * config/alpha/alpha.c (TARGET_LRA_P): New define.
11757
9f4f1735
JJ
117582013-03-17 Jakub Jelinek <jakub@redhat.com>
11759
11760 PR target/56640
11761 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
11762 class names. Remove trailing comma after "ALL_REGS".
11763
48f4a6fa
JH
117642013-03-16 Jan Hubicka <jh@suse.cz>
11765
11766 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
11767 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
11768 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
11769 of cgraph_get_create_node.
11770 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
11771
98e81123
JM
117722013-03-16 Jason Merrill <jason@redhat.com>
11773
11774 PR debug/49090
11775 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
11776 with DW_AT_default_value.
11777
8a298c04
JJ
117782013-03-16 Jakub Jelinek <jakub@redhat.com>
11779
11780 * BASE-VER: Set to 4.9.0.
11781
4323afa0
AK
117822013-03-14 Andi Kleen <ak@linux.intel.com>
11783
11784 PR target/56619
11785 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
11786 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
11787 Document _x* TSX intrinsics.
11788
b3c0d469
JJ
117892013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
11790 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
11791
11792 * configure.ac: Add MicroBlaze TLS support detection.
11793 * configure: Regenerate.
88b97037
UB
11794 * config/microblaze/microblaze-protos.h
11795 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
11796 symbol_mentioned_p, label_mentioned_p): Add prototypes.
11797 * config/microblaze/microblaze.c (microblaze_address_type): Add
11798 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
11799 (microblaze_address_info): Add tls_reloc.
11800 (TARGET_HAVE_TLS): Define.
11801 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
11802 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
11803 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
11804 load_tls_operand, microblaze_call_tls_get_addr,
11805 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
11806 (microblaze_classify_unspec): Handle UNSPEC_TLS.
11807 (get_base_reg): Use microblaze_tls_symbol_p.
11808 (microblaze_classify_address): Handle TLS.
88b97037
UB
11809 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
11810 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
11811 (microblaze_legitimize_address): Handle TLS.
11812 (microblaze_address_insns): Handle ADDRESS_TLS.
11813 (pic_address_needs_scratch): Handle TLS.
11814 (print_operand_address): Handle TLS.
11815 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
11816 (microblaze_expand_move): Handle TLS.
88b97037
UB
11817 (microblaze_legitimate_constant_p): Check
11818 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
11819 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11820 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
11821 (PIC_OFFSET_TABLE_REGNUM): Set.
11822 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
11823 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
11824 (addsi3, movsi_internal2, movdf_internal): Update constraints
11825 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
11826 (move_operand): Redefine as move_src_operand,
11827 check microblaze_tls_referenced_p.
8cc9a5a5 11828
d803a491
IB
118292013-03-14 Ian Bolton <ian.bolton@arm.com>
11830
11831 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
11832 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
11833
a8504f22
IB
118342013-03-14 Ian Bolton <ian.bolton@arm.com>
11835
11836 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
11837 CC mode for AND.
11838
df2dfaea
JJ
118392013-03-14 Jakub Jelinek <jakub@redhat.com>
11840
fbd28bc3
JJ
11841 PR tree-optimization/53265
11842 * common.opt (Waggressive-loop-optimizations): New option.
11843 * tree-ssa-loop-niter.c: Include tree-pass.h.
11844 (do_warn_aggressive_loop_optimizations): New function.
11845 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
11846 if number_of_latch_executions returned constant.
11847 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
11848 early. If number_of_latch_executions returned constant, set
11849 nb_iterations_upper_bound back to it.
11850 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
11851 field.
11852 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
11853 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
11854
df2dfaea
JJ
11855 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
11856 (MULTILIB_OSDIRNAMES): Set.
11857 * genmultilib: If defaultosdirname doesn't start with :: , set
11858 defaultosdirname2 instead, clear it and emit two . multilib_raw
11859 entries instead of just one.
11860
ee0d2b68
KK
118612013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
11862
11863 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11864 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
11865 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
11866 (SUBTARGET_OVERRIDE_OPTIONS): New.
11867
decc676e
OE
118682013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
11869
11870 PR target/49880
11871 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
11872 (musermode): Convert to Var(TARGET_USERMODE).
11873 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
11874 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
11875 * config/sh/sh.c (sh_option_override): Use
11876 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
11877 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
11878 condition.
11879 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
11880 TARGET_SH4.
11881 (udivsi3_i4_single, divsi3_i4_single): Use
11882 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
11883
f4b719c7
DK
118842013-03-13 Dave Korn <dave.korn.cygwin@....>
11885
11886 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
11887 default setting.
11888
c40eced0
RB
118892013-03-13 Richard Biener <rguenther@suse.de>
11890
11891 PR tree-optimization/56608
11892 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
11893 calls when vectorizing basic-blocks.
11894
1bfa5973
JJ
118952013-03-13 Jakub Jelinek <jakub@redhat.com>
11896
11897 PR plugins/45078
11898 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
11899 tm_file.
11900
6fcf5434
JJ
119012013-03-12 Jakub Jelinek <jakub@redhat.com>
11902
11903 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
11904
4f38fa8c
JH
119052013-03-11 Jan Hubicka <jh@suse.cz>
11906
11907 PR lto/56557
11908 * lto-streamer-out.c (output_symbol_p): Skip references from
11909 constructors of external variables.
11910
c5c5ba89
JH
119112013-03-11 Jan Hubicka <jh@suse.cz>
11912
11913 PR middle-end/56571
11914 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
11915 from pseudos.
11916 * emit-rtl.c (verify_rtx_sharing): Likewise.
11917 (copy_insn_1): Likewise.
11918 * rtl.c (copy_rtx): Likewise.
11919
c2a939b1
GJL
119202013-03-11 Georg-Johann Lay <avr@gjlay.de>
11921
11922 PR target/56591
11923 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
11924 output_operand_lossage message.
88b97037 11925
3c3279fb
RE
119262013-03-11 Richard Earnshaw <rearnsha@arm.com>
11927
11928 PR target/56470
11929 * arm.c (shift_op): Validate RTL pattern on the fly.
11930 (arm_print_operand, case 'S'): Don't use shift_operator to validate
11931 the RTL.
11932
aef5ef9d
JDA
119332013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11934
11935 PR target/56347
11936 * config/pa/pa.md (call_value): Check for calls to powf and direct to
11937 new call patterns that clobber %fr12.
11938 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
11939 split and postreload patterns.
11940 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
11941 registers %fr12 and %fr12R as call used.
11942
456610d3
SB
119432013-03-09 Steven Bosscher <steven@gcc.gnu.org>
11944
11945 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
11946 (canon_address, record_store, replace_read, check_mem_read_rtx,
11947 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
11948 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
11949 rest_of_handle_dse): Likewise.
11950
4b1baac8
RS
119512013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
11952
11953 PR middle-end/56524
11954 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
11955 Add base_optabs.
11956 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
11957 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
11958 (save_optabs_if_changed): Replace with...
11959 (init_tree_optimization_optabs): ...this.
11960 * optabs.c (save_optabs_if_changed): Rename to...
11961 (init_tree_optimization_optabs): ...this. Take the optimization node
11962 as argument. Do nothing if the base optabs are already correct.
11963 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
11964 to recompute optabs.
11965 * function.h (function): Remove optabs field.
11966 * function.c (invoke_set_current_function_hook): Call
11967 init_tree_optimization_optabs. Use the result to initialize
11968 this_fn_optabs.
11969
b7a78683
AH
119702013-02-27 Aldy Hernandez <aldyh@redhat.com>
11971
11972 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
11973 if GTMA_HAS_NO_INSTRUMENTATION.
11974 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
11975 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
11976 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
11977 * gimple-pretty-print.c (dump_gimple_transaction): Handle
11978 GTMA_HAS_NO_INSTRUMENTATION.
11979
6384c29b
JJ
119802013-03-08 Jakub Jelinek <jakub@redhat.com>
11981
11982 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
11983 libasan_preinit.o.
11984
ecd4f20a
MP
119852013-03-08 Marek Polacek <polacek@redhat.com>
11986 Jakub Jelinek <jakub@redhat.com>
11987
11988 PR tree-optimization/56478
11989 * predict.c (is_comparison_with_loop_invariant_p): Change the
11990 type of loop_step to tree.
11991 (predict_loops): Adjust.
11992 (predict_iv_comparison): Perform the computations on double_ints.
11993
64366d35
RB
119942013-03-08 Richard Biener <rguenther@suse.de>
11995
11996 PR tree-optimization/56570
11997 * tree-cfg.c (verify_expr_location_1): Verify locations for
11998 DECL_DEBUG_EXPR.
11999 * tree-sra.c (create_access_replacement): Strip locations
12000 from DECL_DEBUG_EXPRs.
12001
a9d5a059
RB
120022013-03-08 Richard Biener <rguenther@suse.de>
12003
12004 * tree-inline.c (expand_call_inline): Do not associate
12005 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
12006 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
12007
b7aa4e9a
RB
120082013-03-08 Richard Biener <rguenther@suse.de>
12009
12010 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
12011 or block changes with -Og. Fix for location / block encoding
12012 changes and PHI arguments with locations.
12013
c4c2f9fa
SB
120142013-03-07 Steven Bosscher <steven@gcc.gnu.org>
12015
12016 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
12017 for all counters.
12018 (struct output_info): Likewise.
12019 (register_overhead): Remove bad gcc_assert.
12020 (bitmap_find_bit): If there is only a single bitmap element, do not
12021 count a miss as a search.
12022 (print_statistics): Update for counter type changes.
12023 (dump_bitmap_statistics): Likewise. Print headers such that they
12024 are properly lined up with the printed counters.
12025
5bf6606a
JJ
120262013-03-07 Jakub Jelinek <jakub@redhat.com>
12027
12028 PR tree-optimization/56559
12029 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
12030 check that it has only a single use.
12031
2c653d46
RB
120322013-03-07 Richard Biener <rguenther@suse.de>
12033
12034 * doc/invoke.texi (fwhole-program): Discourage use in combination
12035 with -flto.
12036
a72d8780
JJ
120372013-03-06 Jakub Jelinek <jakub@redhat.com>
12038
01a454df
JJ
12039 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
12040
c1781047
JJ
12041 PR tree-optimization/56539
12042 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
12043 instead of GSI_CONTINUE_LINKING as last argument to
12044 force_gimple_operand_gsi. Adjust function comment.
12045
9772c47a
JJ
12046 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
12047 aarch64-cores.def.
12048
a72d8780
JJ
12049 PR middle-end/56548
12050 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
12051 promoted mode, convert the result back to the original mode.
12052
fa5556de
RB
120532013-03-06 Richard Biener <rguenther@suse.de>
12054
12055 PR middle-end/56294
12056 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
12057 (insert_updated_phi_nodes_compare_uids): New function.
12058 (update_ssa): Sort symbols_to_rename after UID before
12059 traversing it to insert PHI nodes.
12060
010403d1
RB
120612013-03-06 Richard Biener <rguenther@suse.de>
12062
12063 PR middle-end/50494
12064 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
12065 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
12066
12067 Revert
12068 2013-02-13 Richard Biener <rguenther@suse.de>
12069
12070 PR lto/50494
12071 * varasm.c (output_constant_def_1): Get the decl representing
12072 the constant as argument.
12073 (output_constant_def): Wrap output_constant_def_1.
12074 (make_decl_rtl): Use output_constant_def_1 with the decl
12075 representing the constant.
12076 (build_constant_desc): Optionally re-use a decl already
12077 representing the constant.
12078 (tree_output_constant_def): Adjust.
12079
3c27ce4c
JY
120802013-03-06 Joey Ye <joey.ye@arm.com>
12081
12082 PR lto/50293
12083 * gcc.c (convert_white_space): New function.
12084 (main): Handles white space in function name.
12085
8f6d1c86
OE
120862013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
12087
12088 PR target/56529
12089 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
12090 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
12091 to SH_DIV_CALL_TABLE for TARGET_SH2.
12092 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
12093 list.
12094 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
12095 call-table options.
12096
798a209f
SA
120972013-03-05 Sterling Augustine <saugustine@google.com>
12098 Cary Coutant <ccoutant@google.com>
12099
12100 PR debug/55364
12101 * dwarf2out.c (resolve_addr): Don't call
12102 remove_loc_list_addr_table_entries a second time for the same
12103 expression.
12104
6cfa417f 121052013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 12106
6cfa417f
JJ
12107 PR debug/56510
12108 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
12109 (avoid_complex_debug_insns): New function.
12110 (expand_debug_locations): Call it.
12111
12112 PR rtl-optimization/56484
12113 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
12114 lifetimes of hard registers on small register class machines.
12115
121162013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
12117
12118 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 12119 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 12120 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
12121 fast_interrupt.
12122 (microblaze_fast_interrupt_function_p): New function.
12123 (microblaze_is_interrupt_handler): Rename to
12124 microblaze_is_interrupt_variant and add fast_interrupt check.
12125 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
12126 (save_restore_insns): Likewise.
12127 (compute_frame_size): Likewise.
12128 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
12129 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
12130 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
12131 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
12132 microblaze_is_interrupt_variant.
12133
731aefac
KT
121342013-03-05 Kai Tietz <ktietz@redhat.com>
12135
12136 * sdbout.c (sdbout_one_type): Switch to current function's section
12137 supporting cold/hot.
12138
a72d8780 121392013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
12140
12141 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
12142 -mxl-reorder.
12143
334e71e8
JJ
121442013-03-05 Jakub Jelinek <jakub@redhat.com>
12145
0b50e654
JJ
12146 PR middle-end/56461
12147 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
12148 if VALGRIND_GET_VBITS is defined, temporarily make object
12149 memory all defined, and restore previous valgrind addressability
12150 and definability afterwards. Free this_object at the end.
12151
4ccf8f43
JJ
12152 PR middle-end/56461
12153 * lra.c (lra): Call lra_clear_live_ranges if live_p,
12154 right before calling lra_create_live_ranges, also call it
12155 when clearing live_p. Only call lra_clear_live_ranges
12156 at the end if live_p.
12157
334e71e8
JJ
12158 PR middle-end/56461
12159 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
12160
9ca966ca
RB
121612013-03-05 Richard Biener <rguenther@suse.de>
12162
12163 PR tree-optimization/56521
12164 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
12165 value-id.
12166
d273b176
SB
121672013-03-05 Steven Bosscher <steven@gcc.gnu.org>
12168
12169 PR c++/55135
12170 * except.h (remove_unreachable_eh_regions): New prototype.
12171 * except.c (remove_eh_handler_splicer): New function, split out
12172 of remove_eh_handler.
12173 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
12174 warning about running it on many EH regions one at a time.
12175 (remove_unreachable_eh_regions_worker): New function, walk the
12176 EH tree in depth-first order and remove non-marked regions.
12177 (remove_unreachable_eh_regions): New function.
12178 * tree-eh.c (mark_reachable_handlers): New function, split out
12179 from remove_unreachable_handlers.
12180 (remove_unreachable_handlers): Use mark_reachable_handlers and
12181 remove_unreachable_eh_regions.
12182 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
12183 and remove_unreachable_eh_regions.
12184
5e7f1aef
RB
121852013-03-05 Richard Biener <rguenther@suse.de>
12186
12187 PR middle-end/56525
12188 * loop-init.c (fix_loop_structure): Remove loops in two stages,
12189 not freeing them until the end.
12190
f276b762
AK
121912013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12192
12193 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
12194
12a43ab8
RB
121952013-03-05 Richard Biener <rguenther@suse.de>
12196
12197 PR tree-optimization/56270
12198 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
12199 of loads after scheduling an SLP instance.
12200
93675444
JJ
122012013-03-05 Jakub Jelinek <jakub@redhat.com>
12202
db4138e3
JJ
12203 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
12204 tic6x.exp.
12205 (check_gcc_parallelize): Run guality.exp as a separate job from
12206 vect.exp with unsorted.exp and $(dg_target_exps) separately from
12207 struct-layout-1.exp with stackalign.exp.
12208
dd3d1ec0
JJ
12209 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
12210
b8d381a3
JJ
12211 PR middle-end/56461
12212 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
12213 load_index sbitmap even if some bit in it isn't set.
12214
b4f9786b
JJ
12215 PR middle-end/56461
12216 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
12217 (discover_iteration_bound_by_body_walk): Change queues to
12218 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
12219 spelling in comment. Call safe_push on queues[bound_index] directly.
12220 Release queues[queue_index] in every iteration unconditionally.
12221 Release bounds vector.
12222
93675444
JJ
12223 PR middle-end/56461
12224 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
12225 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
12226 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
12227 inner_phis vector.
12228
3e492e9c
RB
122292013-03-05 Richard Biener <rguenther@suse.de>
12230
12231 PR lto/56515
12232 * tree-inline.c (remap_blocks_to_null): New function.
12233 (expand_call_inline): When expanding a call stmt without
12234 an associated block inline remap all callee blocks to NULL.
12235
a5d1569a
JJ
122362013-03-05 Jakub Jelinek <jakub@redhat.com>
12237
86efb5cd
JJ
12238 PR rtl-optimization/56494
12239 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
12240 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
12241 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
12242
85f5dbea
JJ
12243 PR middle-end/56461
12244 * sel-sched-ir.c (free_sched_pools): Release
12245 succs_info_pool.stack[succs_info_pool.max_top] vectors too
12246 if succs_info_pool.max_top isn't -1.
12247
a5d1569a
JJ
12248 PR bootstrap/56509
12249 * opts.c (opts_obstack, opts_concat): Moved to...
12250 * opts-common.c (opts_obstack, opts_concat): ... here.
12251
4432aa6c
JJ
122522013-03-04 Jakub Jelinek <jakub@redhat.com>
12253
12254 PR middle-end/56461
12255 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
12256
f3a1fb91
MJ
122572013-03-04 Martin Jambor <mjambor@suse.cz>
12258
12259 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
12260 all appropriate places.
12261
22110e6c
EB
122622013-01-04 Eric Botcazou <ebotcazou@adacore.com>
12263
12264 PR tree-optimization/56424
12265 * ipa-split.c (split_function): Do not set the RSO flag if result is
12266 not by reference and its type is a register type.
12267
a72d8780 122682013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 12269
88b97037 12270 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 12271 (microblaze_legitimate_pic_operand): Likewise
88b97037 12272 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
12273 new function microblaze_legitimate_pic_operand
12274 * config/microblaze/microblaze-protos.h
12275 (microblaze_legitimate_pic_operand): Declare.
12276
a72d8780 122772013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 12278
a72d8780 12279 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 12280 New predicate for supported rtx code types.
a72d8780 12281 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
12282 call_insn_simple_operand predicate.
12283
541d9ac8
JJ
122842013-03-04 Jakub Jelinek <jakub@redhat.com>
12285
5eb010bc
JJ
12286 PR middle-end/56461
12287 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
12288 partitions.ordered_remove.
12289
30862efc
JJ
12290 PR middle-end/56461
12291 * tree-vect-stmts.c (vectorizable_conversion): Don't call
12292 vec_oprnds0.create (1) for modifier == NONE.
12293
8930f723
JJ
12294 PR middle-end/56461
12295 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
12296 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
12297 vec_oprnds1 right before pushing anything to it for
12298 scalar_shift_arg.
12299
541d9ac8
JJ
12300 PR middle-end/56461
12301 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
12302 set nbbs to 0 instead of having separate code path.
12303 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
12304 instead of false as last argument if returning NULL.
12305
7aa7f2e3
SL
123062013-03-03 Sandra Loosemore <sandra@codesourcery.com>
12307
12308 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
12309 the attribute is now called "target" instead of "option".
12310 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
12311 * doc/tm.texi.in (Target Attributes): Likewise document the correct
12312 attribute/pragma name for TARGET_OPTION_VALID_P and
12313 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
12314 * doc/tm.texi: Regenerated.
12315
8930f723 123162013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 12317
8930f723 12318 * config/microblaze/microblaze.c:
cb8a1637 12319 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
12320 * config/microblaze/microblaze.h: Add -mxl-reorder to
12321 DRIVER_SELF_SPECS.
12322 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
12323 instructions emitted if TARGET_REORDER.
88b97037
UB
12324 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
12325 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 12326 separately.
cb8a1637 12327
4dc1d68c
XDL
123282013-03-01 Xinliang David Li <davidxl@google.com>
12329
12330 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
12331 walk length.
12332
689eaba3
JJ
123332013-03-01 Jakub Jelinek <jakub@redhat.com>
12334
9d676bf6
JJ
12335 PR middle-end/56461
12336 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
12337 vector even when returning true. Fix up function comment formatting.
12338
caff7edf
JJ
12339 PR middle-end/56461
12340 * ira-build.c (ira_loop_nodes_count): New variable.
12341 (create_loop_tree_nodes): Initialize it.
12342 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
12343
b6b9227d
JJ
12344 PR middle-end/56461
12345 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
12346 method on dr_chain and result_chain.
12347 * tree-vect-stmts.c (vectorizable_store): Only call
12348 result_chain.create if j == 0.
12349
689eaba3
JJ
12350 PR middle-end/56461
12351 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
12352 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
12353 before overwriting it.
12354
40bf31ed
TB
123552013-03-01 Tobias Burnus <burnus@net-b.de>
12356
12357 * doc/extended.texi (C Extensions): Change order in @menu
12358 to match @node.
12359 (Other MIPS Built-in Functions): Move last MIPS entry before
12360 "picoChip Built-in Functions".
12361 (SH Built-in Functions): Move after RX Built-in Functions.
12362 * doc/gcc.texi (Introduction): Change order in @menu
12363 to match @node.
12364 * doc/md.texi (Constraints): Ditto.
12365 * gty.texi (Type Information): Ditto.
12366 (User-provided marking routines for template types): Make
12367 subsection.
12368 * doc/invoke.texi (AArch64 Options): Move before
12369 "Adapteva Epiphany Options".
12370
e664c61c
KS
123712013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
12372 Jakub Jelinek <jakub@redhat.com>
12373
12374 PR sanitizer/56454
12375 * asan.c (gate_asan): Lookup no_sanitize_address instead of
12376 no_address_safety_analysis attribute.
12377 * doc/extend.texi (no_address_safety_attribute): Rename to
12378 no_sanitize_address attribute, mention no_address_safety_analysis
12379 attribute as deprecated alias.
12380
37b5ec8f
JJ
123812013-02-28 Jakub Jelinek <jakub@redhat.com>
12382
12383 PR middle-end/56461
12384 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
12385 type to vec<vec<tree> > *.
12386 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
12387 to be vec<tree> instead of vec<tree> *, set vec_defs
12388 to vNULL and call vec_defs.create (number_of_vects), adjust other
12389 uses of vec_defs.
12390 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
12391 vectorizable_condition): Adjust vect_get_slp_defs callers.
12392
ba96cdfb
JG
123932013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12394
12395 * config/aarch64/aarch64.c
12396 (aarch64_float_const_representable): Remove unused variable.
12397
6f549691
JG
123982013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12399
12400 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
12401
af55e82d
JG
124022013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12403
12404 * config/aarch64/aarch64-builtins.c
12405 (aarch64_init_simd_builtins): Make static.
12406
1df3f464
JG
124072013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
12408
12409 * config/aarch64/aarch64.c
12410 (aarch64_simd_make_constant): Make static.
12411
f8f42513
MJ
124122013-02-28 Martin Jambor <mjambor@suse.cz>
12413
12414 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
12415 with no initialization to the RHS of debug statements.
12416
b48b3fc4
MJ
124172013-02-28 Martin Jambor <mjambor@suse.cz>
12418
12419 PR tree-optimization/56294
12420 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
12421 Adjust dumping.
12422 (get_access_replacement): Do not call create_access_replacement.
12423 Assert a replacement exists.
12424 (get_repl_default_def_ssa_name): Create the replacement declaration
12425 itself.
12426
c3ae224c
RR
124272013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12428
12429 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
12430 final_end_function.
12431
45fa0eef
MP
124322013-02-28 Marek Polacek <polacek@redhat.com>
12433
12434 PR rtl-optimization/56466
12435 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
12436 if we're changing a loop.
12437 (peel_loops_completely): Likewise.
12438
502c067d
PC
124392013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
12440
12441 PR c++/55813
12442 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
12443
ff24afc8
GJL
124442013-02-28 Georg-Johann Lay <avr@gjlay.de>
12445
12446 PR target/56445
12447 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
12448 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
12449 INTX_FTYPE_FX, FX_FTYPE_INTX.
12450 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
12451
c7b1fc1b
GJL
124522013-02-28 Georg-Johann Lay <avr@gjlay.de>
12453
12454 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
12455 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
12456 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
12457 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
12458 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
12459 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
12460 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
12461 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
12462 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
12463 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
12464 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
12465 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
12466 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
12467 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
12468 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
12469 (avrxmega6): Increase max flash segments from 5 to 6.
12470 * config/avr/t-multilib: Regenerate.
12471 * config/avr/avr-tables.opt: Regenerate.
12472 * doc/avr-mmcu.texi: Regenerate.
12473
4a0e3cfe
GJL
124742013-02-28 Georg-Johann Lay <avr@gjlay.de>
12475
12476 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
12477 (avr_device_to_arch): Rename to avr_device_to_ld.
12478 (avr_device_to_as): New prototype.
12479 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
12480 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
12481 * config/avr/driver-avr.c (avr_device_to_as): New.
12482 (avr_device_to_arch): Rename to avr_device_to_ld.
12483
97785e52
JJ
124842013-02-27 Jakub Jelinek <jakub@redhat.com>
12485
3f292312
JJ
12486 PR middle-end/56461
12487 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
12488 method on dr_chain and result_chain.
12489
a344216b
JJ
12490 PR middle-end/56461
12491 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
12492 pointer_set_destroy on not_executed_last_iteration.
12493
f121ad02 12494 PR middle-end/56461
88b97037 12495 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 12496
307f83a3
JJ
12497 PR middle-end/56461
12498 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
12499 FOR_EACH_DEFINED_FUNCTION when freeing state.
12500
e19624ee
JJ
12501 PR middle-end/56461
12502 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
12503 pool_free.
12504 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
12505 overwriting it.
12506
90e709fd
JJ
12507 PR middle-end/56461
12508 * ipa-cp.c (decide_whether_version_node): Call vec_free on
12509 known_aggs[i].items and release known_aggs vector.
12510
97785e52
JJ
12511 PR middle-end/56461
12512 * ipa-reference.c (propagate): Free node_info even for alias nodes.
12513
125142013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 12515
97785e52
JJ
12516 * config/microblaze/microblaze.c (microblaze_emit_compare):
12517 Use xor for EQ/NE comparisions.
12518 * config/microblaze/microblaze.md (cstoresf4): Add constraints
12519 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 12520
6fa5e0ed
JJ
125212013-02-27 Jakub Jelinek <jakub@redhat.com>
12522
12523 PR middle-end/56461
12524 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
12525 vector.
12526 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
12527 vec_safe_push, always update *slot.
12528 (redirect_edge_var_map_clear): Use vec_free.
12529 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
12530 (free_var_map_entry): Use vec_free.
12531 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
12532 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
12533
436a956a
AB
125342013-02-27 Andrey Belevantsev <abel@ispras.ru>
12535
12536 PR middle-end/45472
436a956a
AB
12537 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
12538 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
12539 Reorder tests for speculativeness in the logical and operator.
12540
f5c2caca
JJ
125412013-02-27 Jakub Jelinek <jakub@redhat.com>
12542
0fcb564b
JJ
12543 * incpath.c (add_standard_paths): Use reconcat instead of concat
12544 where appropriate and avoid leaking memory.
12545
dc357798
JJ
12546 * opts.h: Include obstack.h.
12547 (opts_concat): New prototype.
12548 (opts_obstack): New declaration.
12549 * opts.c (opts_concat): New function.
12550 (opts_obstack): New variable.
12551 (init_options_struct): Call gcc_init_obstack on opts_obstack.
12552 (finish_options): Use opts_concat instead of concat
12553 and XOBNEWVEC instead of XNEWVEC.
12554 * opts-common.c (generate_canonical_option, decode_cmdline_option,
12555 generate_option): Likewise.
12556 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
12557 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
12558
f5c2caca
JJ
12559 PR target/56455
12560 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
12561 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
12562
d0163673
JJ
125632013-02-26 Jakub Jelinek <jakub@redhat.com>
12564
12565 PR middle-end/56461
12566 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
12567
b5ad2b8e
JR
125682013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12569
12570 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
12571 (arm_block_move_unaligned_straight): Likewise.
12572 (arm_adjust_block_mem): Likewise.
12573
9b639e2c
JR
125742013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
12575
12576 PR target/48901
12577 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
12578 temp, cond and label.
12579 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
12580
e13a0ccb
JR
12581 PR target/52500
12582 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
12583 * config/c6x/c6x.h (dbx_register_map): Update declaration.
12584
fbe4f171
JR
12585 PR target/52501
12586 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
12587 of prologue/epilogue functions.
12588
ae006543
JR
12589 PR target/52550
12590 * config/tilegx/tilegx.c (tilegx_expand_prologue):
12591 Remove unused variable cfa_offset.
12592 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
12593
c81369fa
JR
12594 PR target/54639
12595 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
12596 type promotion to unsigned.
12597
f8a8fea7
JR
12598 PR target/54640
12599 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
12600 for HOST_WIDE_INT of 32 bit / same size as int.
12601 (arm_block_move_unaligned_straight): Likewise.
12602 (arm_adjust_block_mem): Likewise.
12603
f8be5169
JR
12604 PR target/54662
12605 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
12606 ALL_CFLAGS.
12607
f1ad3354
MP
126082013-02-26 Marek Polacek <polacek@redhat.com>
12609
12610 PR tree-optimization/56426
88b97037 12611 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 12612
a6af0f42
RB
126132013-02-26 Richard Biener <rguenther@suse.de>
12614
12615 PR target/56444
12616 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
12617 unused variable loops.
12618
aca43c6c
JJ
126192013-02-26 Jakub Jelinek <jakub@redhat.com>
12620
cecbe5d9
JJ
12621 PR tree-optimization/56448
12622 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
12623 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
12624 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
12625 later operands of the references, or even first operand for
12626 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
12627
aca43c6c
JJ
12628 PR tree-optimization/56443
12629 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
12630 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
12631 to type_for_mode langhook.
12632
53e2e141
MT
126332013-02-25 Matt Turner <mattst88@gmail.com>
12634
12635 * doc/invoke.texi: Document r4700.
12636
259ee451
RB
126372013-02-25 Richard Biener <rguenther@suse.de>
12638
12639 PR tree-optimization/56175
12640 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
12641 split out from ...
12642 (simplify_bitwise_binary): ... here. Also guard the conversion
12643 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
12644
6d65e8f1
CM
126452013-02-25 Catherine Moore <clm@codesourcery.com>
12646
12647 Revert:
12648 2013-02-24 Catherine Moore <clm@codesourcery.com>
12649 Maciej W. Rozycki <macro@codesourcery.com>
12650 Tom de Vries <tom@codesourcery.com>
a72d8780 12651 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
12652 Iain Sandoe <iain@codesourcery.com>
12653 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 12654 Chao-ying Fu <fu@mips.com>
88b97037 12655
6d65e8f1 12656 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 12657 Document new function attributes.
6d65e8f1
CM
12658 * doc/invoke.texi (minterlink-compressed, mmicromips,
12659 m14k, m14ke, m14kec): Document new options.
12660 (minterlink-mips16): Update documentation.
12661 * doc/md.texi (ZC, ZD): Document new constraints.
12662 * configure.ac (gcc_cv_as_micromips): Check if linker
12663 supports the .set micromips directive.
12664 * configure: Regenerate.
12665 * config.in: Regenerate.
12666 * config/mips/mips-tables.opt: Regenerate.
12667 * config/mips/micromips.md: New file.
12668 * constraints.md (ZC, AD): New constraints.
12669 * config/mips/predicates.md (movep_src_register): New predicate.
12670 (movep_src_operand): New predicate.
12671 (non_volatile_mem_operand): New predicate.
12672 * config/mips/mips.md (multimem): New type.
12673 (length): Differentiate between 17-bit and 18-bit branch offsets.
12674 (MOVEP1, MOVEP2): New mode iterator.
12675 (mov_<load>l): Use ZC constraint.
12676 (mov_<load>r): Likewise.
12677 (mov_<store>l): Likewise.
12678 (mov_<store>r): Likewise.
12679 (*branch_equality<mode>_inverted): Add microMIPS support.
12680 (*branch_equality<mode>): Likewise.
12681 (*jump_absolute): Likewise.
12682 (indirect_jump_<mode>): Likewise.
12683 (tablejump_<mode>): Likewise.
12684 (<optab>_internal): Likewise.
12685 (sibcall_internal): Likewise.
12686 (sibcall_value_internal): Likewise.
12687 (prefetch): Use constraint ZD.
12688 * config/mips/mips.opt (minterlink-compressed): New option.
12689 (minterlink-mips16): Now an alias for minterlink-compressed.
12690 (mmicromips): New option.
12691 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12692 (compare_and_swap_12): Likewise.
12693 (sync_add<mode>): Likewise.
12694 (sync_<optab>_12): Likewise.
12695 (sync_old_<optab>_12): Likewise.
12696 (sync_new_<optab>_12): Likewise.
12697 (sync_nand_12): Likewise.
12698 (sync_old_nand_12): Likewise.
12699 (sync_new_nand_12): Likewise.
12700 (sync_sub<mode>): Likewise.
12701 (sync_old_add<mode>): Likewise.
12702 (sync_old_sub<mode>): Likewise.
12703 (sync_new_add<mode>): Likewise.
12704 (sync_new_sub<mode>): Likewise.
12705 (sync_<optab><mode>): Likewise.
12706 (sync_old_<optab><mode>): Likewise.
12707 (sync_new_<optab><mode>): Likewise.
12708 (sync_nand<mode>): Likewise.
12709 (sync_old_nand<mode>): Likewise.
12710 (sync_new_nand<mode>): Likewise.
12711 (sync_lock_test_and_set<mode>): Likewise.
12712 (test_and_set_12): Likewise.
12713 (atomic_compare_and_swap<mode>): Likewise.
12714 (atomic_exchange<mode>_llsc): Likewise.
12715 (atomic_fetch_add<mode>_llsc): Likewise.
12716 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12717 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12718 (umips_save_restore_pattern_p): Likewise.
12719 (umips_load_store_pair_p): Likewise.
12720 (umips_output_load_store_pair): Likewise.
12721 (umips_movep_target_p): Likewise.
12722 (umips_12bit_offset_address_p): Likewise.
12723 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12724 (mips_base_mips16): Rename this...
12725 (mips_base_compression_flags): ...to this. Update all uses.
12726 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12727 (mips_mips16_decl_p): Delete.
12728 (mips_nomips16_decl_p): Delete.
12729 (mips_get_compress_on_flags): New function.
12730 (mips_get_compress_off_flags): New function.
12731 (mips_get_compress_mode): New function.
12732 (mips_get_compress_on_name): New function.
12733 (mips_get_compress_off_name): New function.
12734 (mips_insert_attributes): Support multiple compression types.
12735 (mips_merge_decl_attributes): Likewise.
12736 (umips_12bit_offset_address_p): New function.
12737 (mips_start_function_definition): Emit .set micromips directive.
12738 (mips_call_may_need_jalx_p): New function.
12739 (mips_function_ok_for_sibcall): Add microMIPS support.
12740 (mips_print_operand_punctuation): Support short delay slots and
12741 compact jumps.
12742 (umips_swm_mask, umips_swm_encoding): New.
12743 (umips_build_save_restore): New function.
12744 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12745 (was_mips16_p): Remove.
12746 (old_compression_mode): New.
12747 (mips_set_compression_mode): New function.
12748 (mips_set_current_function): Add microMIPS support.
12749 (mips_option_override): Likewise.
12750 (umips_save_restore_pattern_p): New function.
12751 (umips_output_save_restore): New function.
12752 (umips_load_store_pair_p_1): New function.
12753 (umips_load_store_pair_p): New function.
12754 (umips_output_load_store_pair_1): New function.
12755 (umips_output_load_store_pair): New function.
12756 (umips_movep_target_p) New function.
12757 (mips_prepare_pch_save): Add microMIPS support.
12758 * config/mips/mips.h (TARGET_COMPRESSION): New.
12759 (TARGET_CPU_CPP_BUILTINS): Update macro
12760 to use new compression flags and to support microMIPS.
12761 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12762 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12763 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12764 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12765 (ASM_SPEC): Support mmicromips and mno-micromips.
12766 (M16STORE_REG_P): New macro.
12767 (MIPS_CALL): Support TARGET_MICROMIPS.
12768 (MICROMIPS_J): New macro.
12769 (mips_base_mips16): Rename this...
12770 (mips_base_compression_flags): ...to this.
12771 (UMIPS_12BIT_OFFSET_P): New macro.
12772 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12773 (MULTILIB_DIRNAMES): Likewise.
12774
5e5df392
TV
127752013-02-25 Tom de Vries <tom@codesourcery.com>
12776
12777 PR rtl-optimization/56131
12778 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
12779 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
12780 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
12781
3fdb53c1
TB
127822013-02-25 Tobias Burnus <burnus@net-b.de>
12783
12784 * doc/invoke.texi (-fsanitize=): Move from optimization
12785 to debugging options.
12786
ed358aea
AB
127872013-02-25 Andrey Belevantsev <abel@ispras.ru>
12788
12789 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
12790
f45e9053
AB
127912013-02-25 Andrey Belevantsev <abel@ispras.ru>
12792 Alexander Monakov <amonakov@ispras.ru>
12793
12794 PR middle-end/56077
12795 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
12796 flush pending lists also on non-jumps. Adjust comment.
12797
6941b508
CM
127982013-02-24 Catherine Moore <clm@codesourcery.com>
12799 Maciej W. Rozycki <macro@codesourcery.com>
12800 Tom de Vries <tom@codesourcery.com>
a72d8780 12801 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
12802 Iain Sandoe <iain@codesourcery.com>
12803 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 12804 Chao-ying Fu <fu@mips.com>
6941b508
CM
12805
12806 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 12807 Document new function attributes.
6941b508
CM
12808 * doc/invoke.texi (minterlink-compressed, mmicromips,
12809 m14k, m14ke, m14kec): Document new options.
12810 (minterlink-mips16): Update documentation.
12811 * doc/md.texi (ZC, ZD): Document new constraints.
12812 * configure.ac (gcc_cv_as_micromips): Check if linker
12813 supports the .set micromips directive.
12814 * configure: Regenerate.
12815 * config.in: Regenerate.
12816 * config/mips/mips-tables.opt: Regenerate.
12817 * config/mips/micromips.md: New file.
12818 * constraints.md (ZC, AD): New constraints.
12819 * config/mips/predicates.md (movep_src_register): New predicate.
12820 (movep_src_operand): New predicate.
12821 (non_volatile_mem_operand): New predicate.
12822 * config/mips/mips.md (multimem): New type.
12823 (length): Differentiate between 17-bit and 18-bit branch offsets.
12824 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 12825 (mov_<load>l): Use ZC constraint.
6941b508
CM
12826 (mov_<load>r): Likewise.
12827 (mov_<store>l): Likewise.
12828 (mov_<store>r): Likewise.
12829 (*branch_equality<mode>_inverted): Add microMIPS support.
12830 (*branch_equality<mode>): Likewise.
12831 (*jump_absolute): Likewise.
12832 (indirect_jump_<mode>): Likewise.
12833 (tablejump_<mode>): Likewise.
12834 (<optab>_internal): Likewise.
12835 (sibcall_internal): Likewise.
12836 (sibcall_value_internal): Likewise.
12837 (prefetch): Use constraint ZD.
12838 * config/mips/mips.opt (minterlink-compressed): New option.
12839 (minterlink-mips16): Now an alias for minterlink-compressed.
12840 (mmicromips): New option.
12841 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
12842 (compare_and_swap_12): Likewise.
12843 (sync_add<mode>): Likewise.
12844 (sync_<optab>_12): Likewise.
12845 (sync_old_<optab>_12): Likewise.
12846 (sync_new_<optab>_12): Likewise.
12847 (sync_nand_12): Likewise.
12848 (sync_old_nand_12): Likewise.
12849 (sync_new_nand_12): Likewise.
12850 (sync_sub<mode>): Likewise.
12851 (sync_old_add<mode>): Likewise.
12852 (sync_old_sub<mode>): Likewise.
12853 (sync_new_add<mode>): Likewise.
12854 (sync_new_sub<mode>): Likewise.
12855 (sync_<optab><mode>): Likewise.
12856 (sync_old_<optab><mode>): Likewise.
12857 (sync_new_<optab><mode>): Likewise.
12858 (sync_nand<mode>): Likewise.
12859 (sync_old_nand<mode>): Likewise.
12860 (sync_new_nand<mode>): Likewise.
12861 (sync_lock_test_and_set<mode>): Likewise.
12862 (test_and_set_12): Likewise.
12863 (atomic_compare_and_swap<mode>): Likewise.
12864 (atomic_exchange<mode>_llsc): Likewise.
12865 (atomic_fetch_add<mode>_llsc): Likewise.
12866 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
12867 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
12868 (umips_save_restore_pattern_p): Likewise.
12869 (umips_load_store_pair_p): Likewise.
12870 (umips_output_load_store_pair): Likewise.
12871 (umips_movep_target_p): Likewise.
12872 (umips_12bit_offset_address_p): Likewise.
12873 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
12874 (mips_base_mips16): Rename this...
12875 (mips_base_compression_flags): ...to this. Update all uses.
12876 (mips_attribute_table): Add micromips, nomicromips and nocompression.
12877 (mips_mips16_decl_p): Delete.
12878 (mips_nomips16_decl_p): Delete.
3fdb53c1 12879 (mips_get_compress_on_flags): New function.
6941b508
CM
12880 (mips_get_compress_off_flags): New function.
12881 (mips_get_compress_mode): New function.
12882 (mips_get_compress_on_name): New function.
12883 (mips_get_compress_off_name): New function.
12884 (mips_insert_attributes): Support multiple compression types.
12885 (mips_merge_decl_attributes): Likewise.
12886 (umips_12bit_offset_address_p): New function.
12887 (mips_start_function_definition): Emit .set micromips directive.
12888 (mips_call_may_need_jalx_p): New function.
12889 (mips_function_ok_for_sibcall): Add microMIPS support.
12890 (mips_print_operand_punctuation): Support short delay slots and
12891 compact jumps.
12892 (umips_swm_mask, umips_swm_encoding): New.
12893 (umips_build_save_restore): New function.
12894 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
12895 (was_mips16_p): Remove.
12896 (old_compression_mode): New.
12897 (mips_set_compression_mode): New function.
12898 (mips_set_current_function): Add microMIPS support.
12899 (mips_option_override): Likewise.
12900 (umips_save_restore_pattern_p): New function.
12901 (umips_output_save_restore): New function.
12902 (umips_load_store_pair_p_1): New function.
12903 (umips_load_store_pair_p): New function.
12904 (umips_output_load_store_pair_1): New function.
12905 (umips_output_load_store_pair): New function.
12906 (umips_movep_target_p) New function.
12907 (mips_prepare_pch_save): Add microMIPS support.
12908 * config/mips/mips.h (TARGET_COMPRESSION): New.
12909 (TARGET_CPU_CPP_BUILTINS): Update macro
12910 to use new compression flags and to support microMIPS.
12911 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
12912 (MIPS_ARCH_FLOAT_SPEC): Likewise.
12913 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
12914 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
12915 (ASM_SPEC): Support mmicromips and mno-micromips.
12916 (M16STORE_REG_P): New macro.
12917 (MIPS_CALL): Support TARGET_MICROMIPS.
12918 (MICROMIPS_J): New macro.
12919 (mips_base_mips16): Rename this...
12920 (mips_base_compression_flags): ...to this.
12921 (UMIPS_12BIT_OFFSET_P): New macro.
12922 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
12923 (MULTILIB_DIRNAMES): Likewise.
12924
cdebbc6d
JJ
129252013-02-24 Jakub Jelinek <jakub@redhat.com>
12926
12927 PR target/52555
12928 * target-globals.c (save_target_globals): For init_reg_sets and
12929 target_reinit remporarily set this_fn_optabs to this_target_optabs.
12930
18c63565
JG
129312013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
12932
12933 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
12934 * config/aarch64/t-aarch64
12935 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
12936
2194f7a2
VM
129372013-02-22 Vladimir Makarov <vmakarov@redhat.com>
12938
12939 PR inline-asm/56148
12940 * lra-constraints.c (process_alt_operands): Reload operand
12941 conflicting with earlier clobber only if no more other conflicting
12942 operands.
12943
7d613735
JJ
129442013-02-22 Jakub Jelinek <jakub@redhat.com>
12945
12946 PR sanitizer/56393
12947 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
12948 if not linking a shared library.
12949
ac8d93a7
SL
129502013-02-22 Seth LaForge <sethml@google.com>
12951
12952 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
12953
e0237780
GY
129542013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
12955
3fdb53c1
TB
12956 * config/arm/arm.md (split for extendsidi): Update condition.
12957 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
12958 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
12959 (qhs_zextenddi_cstr): Likewise.
e0237780 12960
d7fde18c
JJ
129612013-02-21 Jakub Jelinek <jakub@redhat.com>
12962
be63b77d
JJ
12963 PR middle-end/56420
12964 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
12965 avoid signed wrapping.
12966 (expand_mult): Handle properly multiplication by
12967 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
12968 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
12969 in the compiler if coeff is HOST_WIDE_INT_MIN.
12970 (expand_divmod): Don't make ext_op1 static, change it's type to
12971 uhwi. Avoid undefined behavior in -INTVAL (op1).
12972
d7fde18c
JJ
12973 PR rtl-optimization/50339
12974 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
12975 field.
12976 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
12977 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
12978 into splitting_ashiftrt field.
12979 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
12980 ASHIFTRT.
12981 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
12982 choices.
12983
6aad4455
AH
129842013-02-20 Aldy Hernandez <aldyh@redhat.com>
12985
12986 PR middle-end/56108
12987 * trans-mem.c (execute_tm_mark): Do not expand transactions that
12988 are sure to go irrevocable.
12989
38fe784d
HPN
129902013-02-21 Hans-Peter Nilsson <hp@axis.com>
12991
12992 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
12993 scalars are valid operands.
12994
0fd44da3
MJ
129952013-02-21 Martin Jambor <mjambor@suse.cz>
12996
12997 PR tree-optimization/56310
12998 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
12999 only matching indices and non-negative final offsets.
13000 (intersect_aggregates_with_edge): Pass src_idx to
13001 agg_replacements_to_vector. Pass src_idx insstead of index to
13002 intersect_with_agg_replacements.
13003
7a92038b
MJ
130042013-02-21 Martin Jambor <mjambor@suse.cz>
13005
13006 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
13007 instead of hard-wired defaults.
13008
c0da9c37
MR
130092013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
13010
13011 * doc/invoke.texi (MIPS Options): Update documentation of the
13012 floating-point multiply-accumulate instruction restrictions.
13013
d247ea0c 130142013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
13015
13016 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
13017 asan_shadow_offset on x86_64 linux.
13018
22deefcb
RB
130192013-02-21 Richard Biener <rguenther@suse.de>
13020
13021 PR tree-optimization/56415
13022 Revert
13023 2013-02-11 Richard Biener <rguenther@suse.de>
13024
13025 PR tree-optimization/56273
13026 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
13027 first VRP run.
13028
7bcc6e75
JJ
130292013-02-21 Jakub Jelinek <jakub@redhat.com>
13030
a0ad148f
JJ
13031 PR bootstrap/56258
13032 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
13033 instead of @itemx.
13034
7bcc6e75
JJ
13035 PR inline-asm/56405
13036 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
13037 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
13038
a0a7b611
JH
130392013-02-20 Jan Hubicka <jh@suse.cz>
13040
13041 PR tree-optimization/56265
88b97037
UB
13042 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
13043 when target is referenced for first time.
a0a7b611 13044
c0e50f72
RB
130452013-02-20 Richard Biener <rguenther@suse.de>
13046
13047 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
13048 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
13049 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
13050 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
13051 not return anything.
13052 (rename_ssa_copies): Do not remove unused locals.
13053 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 13054 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
13055 * passes.c (execute_function_todo): Do not schedule unused locals
13056 removal if cleanup_tree_cfg did something.
13057 * tree-ssa-live.c (remove_unused_locals): Dump statistics
13058 about the number of removed locals.
13059
a52ca739
RB
130602013-02-20 Richard Biener <rguenther@suse.de>
13061
13062 PR tree-optimization/56398
88b97037 13063 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 13064
ec9c9d1b
MJ
130652013-02-20 Martin Jambor <mjambor@suse.cz>
13066
13067 PR tree-optimization/55334
13068 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
13069 restricted pointers to arrays.
13070
e91c8ed6 130712013-02-20 Richard Biener <rguenther@suse.de>
88b97037 13072 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
13073
13074 PR tree-optimization/56396
13075 * tree-ssa-ccp.c (n_const_val): New static variable.
13076 (get_value): Return NULL for SSA names we don't have a lattice
13077 entry for.
13078 (ccp_initialize): Initialize n_const_val.
13079 * tree-ssa-copy.c (n_copy_of): New static variable.
13080 (init_copy_prop): Initialize n_copy_of.
13081 (get_value): Return NULL_TREE for SSA names we don't have a
13082 lattice entry for.
13083
3d916479
MJ
130842013-02-20 Martin Jambor <mjambor@suse.cz>
13085
13086 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
13087
71a86758
RB
130882013-02-20 Richard Biener <rguenther@suse.de>
13089
13090 * genpreds.c (write_lookup_constraint): Do not compare first
13091 letter of the constraint again.
13092
79836a12
RB
130932013-02-20 Richard Biener <rguenther@suse.de>
13094
13095 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
13096 and ceil_log2.
13097 (get_use_iv_cost): Terminate hashtable walk when coming across
13098 an empty entry.
13099
bbe4fb2c
IZ
131002013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
13101
13102 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
13103 reassociation for avx2 targets.
13104
a72d8780 131052012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 13106
c77f83d5
EI
13107 * config/microblaze/microblaze.c: microblaze_has_clz = 0
13108 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 13109 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
13110 version and TARGET_PATTERN_COMPARE check
13111 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 13112
a72d8780 131132012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 13114
a72d8780 13115 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
13116 function before branching.
13117
242387fa
AB
131182012-02-19 Andrey Belevantsev <abel@ispras.ru>
13119
13120 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
13121 DUMP_INSN_RTX_UID.
13122 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
13123
b4979ab9
AB
131242012-02-19 Andrey Belevantsev <abel@ispras.ru>
13125
13126 PR middle-end/55889
b4979ab9
AB
13127 * sel-sched.c: Include ira.h.
13128 (implicit_clobber_conflict_p): New function.
13129 (moveup_expr): Use it.
88b97037 13130 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 13131
24d63016
RB
131322013-02-19 Richard Biener <rguenther@suse.de>
13133
13134 PR tree-optimization/56384
13135 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
13136 (vn_hash_type): Split out from ...
13137 (vn_hash_constant_with_type): ... here.
13138 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
13139 (vn_phi_eq): Compare types from vn_phi_s structure.
13140 (vn_phi_lookup): Populate vn_phi_s type.
13141 (vn_phi_insert): Likewise.
13142
a475fd3d
JJ
131432013-02-19 Jakub Jelinek <jakub@redhat.com>
13144
47cc28f5
JJ
13145 PR tree-optimization/56350
13146 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
13147 if haven't found reduction or nested cycle operand, rather than
13148 asserting we must find it.
13149
a475fd3d
JJ
13150 PR tree-optimization/56381
13151 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
13152 to fold_build3.
13153
131542013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
13155 Jakub Jelinek <jakub@redhat.com>
13156
13157 PR target/52555
13158 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
13159 (swap_optab_enable): Same.
13160 (init_all_optabs): Use argument instead of global.
88b97037 13161 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
13162 * expr.h (init_all_optabs): Add argument to prototype.
13163 (TREE_OPTIMIZATION_OPTABS): New.
13164 (save_optabs_if_changed): Protoize.
13165 * optabs.h: Declare this_fn_optabs.
13166 * optabs.c (save_optabs_if_changed): New.
13167 Declare this_fn_optabs.
13168 (init_optabs): Add argument to init_all_optabs() call.
13169 * function.c (invoke_set_current_function_hook): Handle per
13170 function optabs.
13171 * function.h (struct function): New field optabs.
13172 * config/mips/mips.c (mips_set_mips16_mode): Handle when
13173 optimization_current_node has changed.
13174 * target-globals.h (save_target_globals_default_opts): Protoize.
13175 * target-globals.c (save_target_globals_default_opts): New.
13176
3f587ca3
JDA
131772013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13178
13179 PR target/56347
13180 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
13181 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
13182
13183 PR target/56214
13184 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
13185 and HImode, require all displacements to be an integer multiple of
13186 their mode size.
ceaca33e
JDA
13187 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
13188 only allow QImode and HImode when reload is in progress and strict is
13189 true. Likewise for symbolic addresses. Use base14_operand to check
13190 displacements in REG+BASE addresses.
13191
fe0b4796
RB
131922013-02-18 Richard Biener <rguenther@suse.de>
13193
13194 PR tree-optimization/56366
13195 * tree-vect-loop.c (get_initial_def_for_induction): Properly
13196 handle sign-conversion of outer-loop initial induction value.
13197
6aaf596b
RB
131982013-02-18 Richard Biener <rguenther@suse.de>
13199
73db8ff1 13200 PR middle-end/56349
6aaf596b
RB
13201 * cfghooks.c (merge_blocks): If we merge a latch into another
13202 block adjust references to it.
13203 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
13204 (verify_loop_structure): Verify that a recorded latch is in fact
13205 a latch.
13206
5e97dfb6
RB
132072013-02-18 Richard Biener <rguenther@suse.de>
13208
13209 PR tree-optimization/56321
13210 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
13211 order SSA name release and virtual operand unlinking.
13212
825527e8
EI
132132013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13214
13215 * config/microblaze/microblaze.md (save_stack_block): Define.
13216 (restore_stack_block): Likewise.
13217
debd11d9
EI
132182013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13219
13220 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
13221 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
13222 * config/microblaze/microblaze.c (microblaze_option_override):
13223 Bail out early for PIC modes when target does not support PIC.
13224
8ec77be0
EI
132252013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13226
88b97037 13227 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
13228 Replace with a microblaze version.
13229 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 13230 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
13231 microblaze.
13232
b41288b3
JJ
132332013-02-16 Jakub Jelinek <jakub@redhat.com>
13234 Dodji Seketeli <dodji@redhat.com>
13235
13236 PR asan/56330
88b97037 13237 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
13238 (instrument_mem_region_access): Do not forget to always put
13239 instrumentation of the of 'base' and 'base + len' in a "if (len !=
13240 0) statement, even for cases where either 'base' or 'base + len'
13241 are not instrumented -- because they have been previously
13242 instrumented. Simplify the logic by putting all the statements
13243 instrument 'base + len' inside a sequence, and then insert that
13244 sequence right before the current insertion point. Then, to
13245 instrument 'base + len', just get an iterator on that statement.
13246 And do not forget to update the pointer to iterator the function
13247 received as argument.
13248
47918951
VM
132492013-02-15 Vladimir Makarov <vmakarov@redhat.com>
13250
13251 PR rtl-optimization/56348
13252 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
13253
3fb7c699
SB
132542013-02-15 Steven Bosscher <steven@gcc.gnu.org>
13255
13256 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
13257 (clean_graph_dump_file): Pass base to start_graph_dump.
13258
576fe41a
RH
132592013-02-14 Richard Henderson <rth@redhat.com>
13260
13261 PR target/55941
13262 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
13263
bb3accfa
SB
132642013-02-14 Steven Bosscher <steven@gcc.gnu.org>
13265
13266 * collect2-aix.h: Define F_LOADONLY.
13267
03143140
RB
132682013-02-14 Richard Biener <rguenther@suse.de>
13269
13270 PR lto/50494
13271 * varasm.c (output_constant_def_1): Get the decl representing
13272 the constant as argument.
13273 (output_constant_def): Wrap output_constant_def_1.
13274 (make_decl_rtl): Use output_constant_def_1 with the decl
13275 representing the constant.
13276 (build_constant_desc): Optionally re-use a decl already
13277 representing the constant.
13278 (tree_output_constant_def): Adjust.
13279
8fb06726
DS
132802013-02-14 Dodji Seketeli <dodji@redhat.com>
13281
13282 Fix an asan crash
13283 * asan.c (instrument_builtin_call): Really put the length of the
13284 second source argument into src1_len.
13285
c4bfe8bf
JJ
132862013-02-13 Jakub Jelinek <jakub@redhat.com>
13287
13288 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
13289 argument. If it is false, don't create edge from then_bb to
13290 fallthru_bb.
13291 (insert_if_then_before_iter): Pass true to it.
13292 (build_check_stmt): Pass false to it.
13293 (transform_statements): Flush hash table only on extended basic
13294 block boundaries, rather than at the beginning of every bb.
13295 Don't flush hash table on nonfreeing_call_p calls.
13296 * tree-flow.h (nonfreeing_call_p): New prototype.
13297 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
13298
7afe2801
DM
132992013-02-13 David S. Miller <davem@davemloft.net>
13300
13301 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
13302
70cc3288
VM
133032013-02-13 Vladimir Makarov <vmakarov@redhat.com>
13304
13305 PR target/56184
13306 * ira.c (max_regno_before_ira): Move from ...
13307 (ira): ... here.
13308 (fix_reg_equiv_init): Use max_regno_before_ira instead of
13309 vec_safe_length.
13310
6422242b
JJ
133112013-02-13 Jakub Jelinek <jakub@redhat.com>
13312
13313 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
13314
976a81ee
RB
133152013-02-13 Richard Biener <rguenther@suse.de>
13316
13317 PR lto/56295
13318 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
13319 globals in MEM_REFs.
13320
c1874a87
RB
133212013-02-13 Richard Biener <rguenther@suse.de>
13322
13323 * loop-init.c (loop_optimizer_init): Clear loop state when
13324 re-initializing preserved loops.
13325 * loop-unswitch.c (unswitch_single_loop): Return whether
13326 we unswitched the loop. Do not verify loop state here.
88b97037 13327 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 13328
b4ab7d34
KS
133292013-02-13 Kostya Serebryany <kcc@google.com>
13330
88b97037
UB
13331 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
13332 on x86_64 linux.
b4ab7d34
KS
13333 * sanitizer.def: Rename __asan_init to __asan_init_v1.
13334
bdcbe80c
DS
133352013-02-12 Dodji Seketeli <dodji@redhat.com>
13336
13337 Avoid instrumenting duplicated memory access in the same basic block
13338 * Makefile.in (asan.o): Add new dependency on hash-table.h
13339 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
13340 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
13341 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
13342 (free_mem_ref_resources, has_mem_ref_been_instrumented)
13343 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
13344 (get_mem_ref_of_assignment): New functions.
13345 (get_mem_refs_of_builtin_call): Extract from
13346 instrument_builtin_call and tweak a little bit to make it fit with
13347 the new signature.
13348 (instrument_builtin_call): Use the new
13349 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
13350 of is_gimple_builtin_call.
13351 (instrument_derefs, instrument_mem_region_access): Insert the
13352 instrumented memory reference into the hash table.
13353 (maybe_instrument_assignment): Renamed instrument_assignment into
13354 this, and change it to advance the iterator when instrumentation
13355 actually happened and return true in that case. This makes it
13356 homogeneous with maybe_instrument_assignment, and thus give a
13357 chance to callers to be more 'regular'.
13358 (transform_statements): Clear the memory reference hash table
13359 whenever we enter a new BB, when we cross a function call, or when
13360 we are done transforming statements. Use
13361 maybe_instrument_assignment instead of instrumentation. No more
13362 need to special case maybe_instrument_assignment and advance the
13363 iterator after calling it; it's now handled just like
13364 maybe_instrument_call. Update comment.
13365
4861a1f7
RB
133662013-02-13 Richard Biener <rguenther@suse.de>
13367
13368 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
13369 Fix loop discovery code.
13370
1c86bd80
VM
133712013-02-12 Vladimir Makarov <vmakarov@redhat.com>
13372
13373 PR inline-asm/56148
13374 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 13375 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
13376 the operand is not reloaded. Prefer to reload conflicting operand
13377 if earlyclobber and matching operands are the same.
13378
7cbda518
RB
133792013-02-12 Richard Biener <rguenther@suse.de>
13380
13381 PR lto/56297
13382 * lto-streamer-out.c (write_symbol): Do not output symbols
13383 for hard register variables.
13384
e68a4ef6
GJL
133852013-02-12 Georg-Johann Lay <avr@gjlay.de>
13386
13387 PR target/54222
13388 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
13389 (umulsidi3_insn, mulsidi3_insn): New insns.
13390
a72d8780 133912013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
13392
13393 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
13394 (struct tune_params): Add vec_costs field.
13395 * config/arm/arm.c (arm_builtin_vectorization_cost)
13396 (arm_add_stmt_cost): New functions.
13397 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
13398 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
13399 (arm_default_vec_cost): New struct of type cpu_vec_costs.
13400 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13401 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
13402 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
13403 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
13404
43320568
RB
134052013-02-12 Richard Biener <rguenther@suse.de>
13406
13407 PR lto/56295
13408 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
13409 decls again if possible.
13410
a011aa39
RB
134112013-02-12 Richard Biener <rguenther@suse.de>
13412
13413 PR middle-end/56288
13414 * tree-ssa.c (verify_ssa_name): Fix check, move
13415 SSA_NAME_IN_FREE_LIST check up.
13416
6da26889
JJ
134172013-02-12 Jakub Jelinek <jakub@redhat.com>
13418 Steven Bosscher <steven@gcc.gnu.org>
13419
13420 PR rtl-optimization/56151
13421 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
13422 equal to op0 or op1, and last_insn pattern is CODE operation
13423 with MEM dest and one of the operands matches that MEM.
13424
f80e0faf
ST
134252013-02-11 Sriraman Tallam <tmsriramgoogle.com>
13426
13427 * doc/extend.texi: Document Function Multiversioning and "default"
13428 parameter string to target attribute.
13429 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
13430 target attribute parameter is "default".
13431 (ix86_compare_version_priority): Remove checks for target attribute.
13432 (ix86_mangle_function_version_assembler_name): Change error to sorry.
13433 Remove check for target attribute equal to NULL. Add assert.
13434 (ix86_generate_version_dispatcher_body): Change error to sorry.
13435
6c59ffd1
IS
134362013-02-11 Iain Sandoe <iain@codesourcery.com>
13437 Jack Howarth <howarth@bromo.med.uc.edu>
13438 Patrick Marlier <patrick.marlier@gmail.com>
13439
13440 PR libitm/55693
13441 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
13442 define ENDFILE_SPEC as TM_DESTRUCTOR.
13443 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
13444
a72d8780 134452013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
13446 Jack Howarth <howarth@bromo.med.uc.edu>
13447 Jakub Jelinek <jakub@redhat.com>
13448
13449 PR sanitizer/55617
13450 * config/darwin.c (cdtor_record): Rename ctor_record.
13451 (sort_cdtor_records): Rename sort_ctor_records.
13452 (finalize_dtors): New routine to sort destructors by
13453 priority before use in assemble_integer.
13454 (machopic_asm_out_destructor): Use finalize_dtors if needed.
13455
b63fe007
UB
134562013-02-11 Uros Bizjak <ubizjak@gmail.com>
13457
13458 PR rtl-optimization/56275
13459 * simplify-rtx.c (avoid_constant_pool_reference): Check that
13460 offset is non-negative and less than cmode size before
13461 calling simplify_subreg.
13462
8e89b5b5
RB
134632013-02-11 Richard Biener <rguenther@suse.de>
13464
13465 PR tree-optimization/56264
13466 * cfgloop.h (fix_loop_structure): Adjust prototype.
13467 * loop-init.c (fix_loop_structure): Return the number of
13468 newly discovered loops.
13469 * tree-cfgcleanup.c (repair_loop_structures): When new loops
13470 are discovered, do a full loop-closed SSA rewrite.
13471
b4a4b56d
RB
134722013-02-11 Richard Biener <rguenther@suse.de>
13473
13474 PR tree-optimization/56273
13475 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
13476 first VRP run.
13477 (check_array_ref): Fix missing newline in dumps.
13478 (search_for_addr_array): Likewise.
13479
0c885229
DE
134802013-02-09 David Edelsohn <dje.gcc@gmail.com>
13481
13482 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
13483
59ac9a55
JJ
134842013-02-09 Jakub Jelinek <jakub@redhat.com>
13485
13486 PR target/56256
13487 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
13488
25bb0bb5
VM
134892013-02-08 Vladimir Makarov <vmakarov@redhat.com>
13490
13491 PR rtl-optimization/56246
0c885229 13492 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
13493 reload pseudo.
13494 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
13495 constraints are satisfied.
13496
a698cc03
JL
134972013-02-08 Jeff Law <law@redhat.com>
13498
13499 PR debug/53948
13500 * emit-rtl.c (reg_is_parm_p): New function.
13501 * regs.h (reg_is_parm_p): New prototype.
13502 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
13503 callee-clobbered registers.
13504
e1122ddd
MM
135052013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
13506
13507 PR target/56043
13508 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
13509 If there is no implicit builtin declaration, just return NULL.
13510
19c5f6e6
UB
135112013-02-08 Uros Bizjak <ubizjak@gmail.com>
13512
13513 * config/i386/sse.md (FMAMODEM): New mode iterator.
13514 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
13515 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
13516
2480f2ca 135172013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 13518
2480f2ca
UB
13519 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
13520 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
13521 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
13522
135232013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13524
13525 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
13526 (microblaze*-*-elf): Likewise.
13527 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
13528 LINK_SPEC.
13529 * config/microblaze/microblaze-c.c: Add builtin defines for
13530 _LITTLE_ENDIAN and _BIG_ENDIAN.
13531 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
13532 add to TARGET_DEFAULT flags.
76ef61fb 13533 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
13534 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
13535 * config/microblaze/microblaze.md: Update extendsidi2 and
13536 movdi_internal instructions to use low-order / high-order reg
13537 print_operands.
13538 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
13539 options and inversemask / mask of LITTLE_ENDIAN.
13540 * config/microblaze/t-microblaze: Expand multilib options to
13541 include mlittle-endian (le) and update exceptions patterns.
13542
600a5961
JJ
135432013-02-08 Jakub Jelinek <jakub@redhat.com>
13544
5df81313
JJ
13545 PR rtl-optimization/56195
13546 * lra-constraints.c (get_reload_reg): Don't reuse regs
13547 if they have smaller mode than requested, if they have
13548 wider mode than requested, try to return a SUBREG.
13549
600a5961
JJ
13550 PR tree-optimization/56250
13551 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
13552 if type is unsigned and code isn't MULT_EXPR.
13553
ff544649
GJL
135542013-02-08 Georg-Johann Lay <avr@gjlay.de>
13555
13556 PR tree-optimization/56064
13557 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
13558 bits according to mode.
13559 * fixed-value.h (fixed_from_double_int)
13560 (const_fixed_from_double_int): Adjust comments.
13561
e45cde98
RB
135622013-02-08 Richard Biener <rguenther@suse.de>
13563
13564 PR lto/56231
13565 * lto-streamer.h (struct data_in): Remove current_file, current_line
13566 and current_col members.
13567 * lto-streamer-out.c (lto_output_location): Stream changed bits
13568 en-block for efficiency.
13569 * lto-streamer-in.c (clear_line_info): Remove.
13570 (lto_input_location): Cache current file, line and column
13571 globally via local statics. Read changed bits en-block.
13572 (input_function): Do not call clear_line_info.
13573 (lto_read_body): Likewise.
13574 (lto_input_toplevel_asms): Likewise.
13575
c1ca73d8
MM
135762013-02-08 Michael Matz <matz@suse.de>
13577
13578 PR tree-optimization/52448
13579 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
13580 (nt_call_phase): New static.
13581 (add_or_mark_expr): Only mark accesses with newer phase than any
13582 call seen.
13583 (nonfreeing_call_p): New.
13584 (nt_init_block): Update nt_call_phase, mark blocks as visited.
13585 (nt_fini_block): Keep blocks marked as visited.
13586 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
13587
57548aa2
RB
135882013-02-08 Richard Biener <rguenther@suse.de>
13589
13590 * ira.c (ira): Free broken dominator information.
13591
8e10366f
UB
135922013-02-08 Uros Bizjak <ubizjak@gmail.com>
13593
13594 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
13595
f64fb0fa
MP
135962013-02-08 Marek Polacek <polacek@redhat.com>
13597
8e10366f 13598 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 13599
0375167b
RB
136002013-02-08 Richard Biener <rguenther@suse.de>
13601
13602 PR middle-end/56181
13603 * cfgloop.h (flow_loops_find): Adjust.
13604 (bb_loop_header_p): Declare.
13605 * cfgloop.c (bb_loop_header_p): New function split out from ...
13606 (flow_loops_find): ... here. Adjust function signature,
13607 support incremental loop structure update.
13608 (verify_loop_structure): Cleanup. Verify a loop is a loop.
13609 * cfgloopmanip.c (fix_loop_structure): Move ...
13610 * loop-init.c (fix_loop_structure): ... here.
13611 (apply_loop_flags): Split out from ...
13612 (loop_optimizer_init): ... here.
13613 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
13614 in incremental mode, only remove dead loops here.
13615
85d768f3
GJL
136162013-02-08 Georg-Johann Lay <avr@gjlay.de>
13617
13618 PR target/54222
13619 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
13620 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
13621 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
13622 (*round<mode>3.libgcc): New insns for fixed-modes.
13623 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
13624 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
13625 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
13626 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
13627 implementations. Define to __builtin_avr_absFX,
13628 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
13629 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
13630 __builtin_avr_countlsFX, respectively.
13631 * config/avr/avr-c.c (target.h): Include it.
13632 (enum avr_builtin_id): New enum.
13633 (avr_resolve_overloaded_builtin): New static function.
13634 (avr_register_target_pragmas): Use it to set
13635 targetm.resolve_overloaded_builtin.
13636 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
13637 tree nodes used by DEF_BUILTIN.
13638 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
13639 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
13640 <AVR_BUILTIN_xxBITS>: Same.
13641
661bc682
RB
136422013-02-08 Richard Biener <rguenther@suse.de>
13643
13644 * cfgloop.c (verify_loop_structure): Properly handle
13645 a loop exiting to another loop header.
13646 * ira-int.h (ira_loops): Remove.
13647 * ira.c (ira_loops): Remove.
13648 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
13649 (do_reload): Use loop_optimizer_finalize.
13650 * ira-build.c (create_loop_tree_nodes): Use get_loops and
13651 number_of_loops to access the loop tree.
13652 (more_one_region_p): Likewise.
13653 (finish_loop_tree_nodes): Likewise.
13654 (rebuild_regno_allocno_maps): Likewise.
13655 (mark_loops_for_removal): Likewise.
13656 (mark_all_loops_for_removal): Likewise.
13657 (remove_unnecessary_regions): Likewise.
13658 (ira_build): Likewise.
13659 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
13660
0d5049b2
RB
136612013-02-08 Richard Biener <rguenther@suse.de>
13662
13663 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
13664 * ipa-pure-const.c (analyze_function): Avoid calling
13665 mark_irreducible_loops twice.
8e10366f 13666 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 13667
499f32e8
DM
136682013-02-07 David S. Miller <davem@davemloft.net>
13669
13670 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
13671 on 'reg'.
13672 * var-tracking.c (vt_add_function_parameter): Test the presence of
13673 HAVE_window_save properly and do not remap argument registers when
13674 we have a leaf function.
13675
6edc3e32
UB
136762013-02-07 Uros Bizjak <ubizjak@gmail.com>
13677
13678 PR bootstrap/56227
13679 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
13680 instead of "ll".
13681 * config/i386/i386.c (ix86_print_operand): Ditto.
13682
5306401f
VM
136832013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13684
6edc3e32 13685 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 13686
027ece11
VM
136872013-02-07 Vladimir Makarov <vmakarov@redhat.com>
13688
13689 PR rtl-optimization/56225
13690 * lra-constraints.c (process_alt_operands): Check that reload hard
13691 reg can hold value for strict_low_part.
13692
f980dfdb
JJ
136932013-02-07 Jakub Jelinek <jakub@redhat.com>
13694
13695 PR debug/56154
13696 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
13697 dwarf2out_end_function.
13698 (in_first_function_p, maybe_at_text_label_p,
13699 first_loclabel_num_not_at_text_label): New variables.
13700 (dwarf2out_var_location): In the first function find out
6edc3e32 13701 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
13702 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
13703 functions.
13704
73dd3123
EB
137052013-02-07 Eric Botcazou <ebotcazou@adacore.com>
13706
13707 PR rtl-optimization/56178
13708 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
13709 SUBREG of a register. Tidy up related block of code.
13710 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
13711 note if the source is a register or a SUBREG of a register.
13712
e3936f47
JJ
137132013-02-07 Jakub Jelinek <jakub@redhat.com>
13714
13715 PR target/56228
13716 * config/rs6000/rs6000.md (ptrm): New mode attr.
13717 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
13718 call_value_indirect_aix<pttrsize>,
13719 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
13720 m in constraints.
13721
d96d674b
MH
137222013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13723
13724 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
13725 if -bnortl. Convert to strcmp and strncmp.
13726
921f2dee
AM
137272013-02-07 Alan Modra <amodra@gmail.com>
13728
13729 PR target/54009
13730 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
13731 addresses won't wrap when offsetting.
13732 (rs6000_secondary_reload): Provide secondary reloads needed for
13733 wrapping LO_SUM addresses.
13734
d09c7dba
TS
137352013-02-06 Thomas Schwinge <thomas@codesourcery.com>
13736
13737 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
13738 MACH, just __MACH__.
13739
a44bbd48
RB
137402013-02-06 Richard Biener <rguenther@suse.de>
13741
13742 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
13743 instead of calling fix_loop_structure.
13744
6d840d99
JJ
137452013-02-06 Jakub Jelinek <jakub@redhat.com>
13746
13747 PR middle-end/56217
13748 * omp-low.c (use_pointer_for_field): Return false if
13749 lower_send_shared_vars doesn't generate any copy-out code.
13750
0f33baa9
TV
137512013-02-06 Tom de Vries <tom@codesourcery.com>
13752
13753 PR rtl-optimization/56131
13754 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
13755 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
13756 of the label is NULL. Add comment.
13757
11f1e3ab
JJ
137582013-02-05 Jakub Jelinek <jakub@redhat.com>
13759
31502f9f
JJ
13760 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
13761
a74db9bd
JJ
13762 PR sanitizer/55374
13763 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
13764 (STATIC_LIBTSAN_LIBS): Likewise.
13765 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
13766 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
13767 is defined, don't add anything else beyond that.
13768 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
13769 (LINK_COMMAND_SPEC): Use them.
13770
11f1e3ab
JJ
13771 PR tree-optimization/56205
13772 * tree-stdarg.c (check_all_va_list_escapes): Return true if
13773 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
13774 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
13775
14ac6aa2
RB
137762013-02-05 Richard Biener <rguenther@suse.de>
13777
13778 PR tree-optimization/53342
13779 PR tree-optimization/53185
13780 * tree-vectorizer.h (vect_check_strided_load): Remove.
13781 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
13782 not disallow peeling for vectorized strided loads.
13783 (vect_check_strided_load): Make static and simplify.
13784 (vect_analyze_data_refs): Adjust.
13785 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
13786 correctly when vectorizing strided loads.
13787
6f22445a
RB
137882013-02-05 Richard Biener <rguenther@suse.de>
13789
13790 * doc/install.texi: Refer to ISL, not PPL.
13791
39f9719e
JH
137922013-02-05 Jan Hubicka <jh@suse.cz>
13793
ec4224ac
JH
13794 PR tree-optimization/55789
13795 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
13796
137972013-02-05 Jan Hubicka <jh@suse.cz>
13798
13799 PR tree-optimization/55789
39f9719e
JH
13800 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
13801 the dead call anyway.
13802
956d3b33
EB
138032013-02-05 Eric Botcazou <ebotcazou@adacore.com>
13804
13805 PR sanitizer/55374
13806 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
13807
138082013-02-04 Alexander Potapenko <glider@google.com>
13809 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
13810 Jakub Jelinek <jakub@redhat.com>
13811
13812 PR sanitizer/55617
13813 * config/darwin.c (sort_ctor_records): Stabilized qsort
13814 on constructor priority by using original position.
13815 (finalize_ctors): New routine to sort constructors by
13816 priority before use in assemble_integer.
13817 (machopic_asm_out_constructor): Use finalize_ctors if needed.
13818
7ac3af38
JJ
138192013-02-04 Jakub Jelinek <jakub@redhat.com>
13820
13821 PR libstdc++/54314
13822 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
13823 about visibility on artificial decls.
13824 * config/sol2.c (solaris_assemble_visibility): Likewise.
13825
152689dc
KT
138262013-02-04 Kai Tietz <ktietz@redhat.com>
13827
13828 PR target/56186
13829 * config/i386/i386.c (function_value_ms_64): Add additional valtype
13830 argument and improve checking of return-argument types for 16-byte
13831 modes.
13832 (ix86_function_value_1): Add additional valtype argument on call
13833 of function_value_64.
13834 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
13835 handling infunction_value_64 function.
13836
2b5987b5
MGD
138372013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
13838
7ac3af38 13839 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 13840
14597080
RB
138412013-02-04 Richard Biener <rguenther@suse.de>
13842
13843 PR tree-optimization/56188
13844 * tree-ssa-structalias.c (label_visit): Consider case with
13845 initially non-empty points-to set.
13846 (perform_var_substitution): Dump node mapping and clean up.
13847
ed73881e
RG
138482013-02-04 Richard Guenther <rguenther@suse.de>
13849
13850 PR lto/56168
13851 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
13852 node prevail as last resort.
13853 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 13854 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 13855
139a0707
RB
138562013-02-04 Richard Biener <rguenther@suse.de>
13857
13858 PR tree-optimization/56113
13859 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
13860 Merge into ...
13861 (equiv_class_lookup_or_add): ... this.
13862 (label_visit): Adjust and fix error in previous patch.
13863 (perform_var_substitution): Adjust.
13864
50fe8924
OE
138652013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
13866
13867 * config/sh/divtab.c: Fix formatting and comments throughout the file.
13868 * config/sh/sh4-300.md: Likewise.
13869 * config/sh/sh4a.md: Likewise.
13870 * config/sh/constraints.md: Likewise.
13871 * config/sh/sh.md: Likewise.
13872 * config/sh/netbsd-elf.h: Likewise.
13873 * config/sh/predicates.md: Likewise.
13874 * config/sh/sh-protos.h: Likewise.
13875 * config/sh/ushmedia.h: Likewise.
13876 * config/sh/linux.h: Likewise.
13877 * config/sh/sh.c: Likewise.
13878 * config/sh/superh.h: Likewise.
13879 * config/sh/elf.h: Likewise.
13880 * config/sh/sh4.md: Likewise.
13881 * config/sh/sh.h: Likewise.
13882
1a04ac2b
JDA
138832013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13884
13885 * config/pa/constraints.md: Adjust unused letters. Change "T"
13886 constraint to match_test floating_point_store_memory_operand().
13887 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
13888 (base14_operand): New.
13889 (floating_point_store_memory_operand): New.
13890 (integer_store_memory_operand): Revise to use base14_operand and
13891 reg_plus_base_memory_operand.
13892 (move_dest_operand): Allow symbolic_memory_operands.
13893 (symbolic_memory_operand): Check for LO_SOM.
13894 (symbolic_operand): Change default case to break.
13895 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
13896 CONST_DOUBLE values to be reloaded by putting them into memory when
13897 the destination is a floating point register.
13898 (movdf): Remove code to handle CONST_DOUBLE.
13899 (movsf): Likewise.
13900 (reload_indf_r1): New.
13901 (reload_insf_r1): New.
13902 Consistently use "Q" and "T" constraints with integer and floating
13903 point move instructions, respectively.
13904 (movdi): Remove FAIL.
13905 Change predicate for source operand unamed DImode move from
13906 general_operand to move_src_operand.
13907 (umulsidi3): Change predicate for destination operand to
13908 register_operand.
13909 Likewise for similar unamed patterns.
13910 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
13911 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
13912 (hppa_legitimize_address): Simplify mask calculation.
13913 (pa_emit_move_sequence): Revised handling of secondary reloads from
13914 REG+D addresses for floating point loads and stores. Directly handle
13915 loading CONST0_RTX (mode) to a floating point register.
13916 (pa_secondary_reload): Handle reloading DF and SFmode constant values
13917 to floating point registers. Don't restrict secondary reloads to
13918 floating point registers to integer modes. Revise some comments and
13919 cleanup some code.
13920 (TARGET_LEGITIMATE_ADDRESS_P): Define.
13921 (pa_legitimate_address_p): New.
13922 (pa_legitimize_reload_address): New.
13923 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
13924 (STRICT_REG_OK_FOR_BASE_P): New.
13925 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
13926 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
13927
3bf65591
DE
139282013-02-03 David Edelsohn <dje.gcc@gmail.com>
13929 Andrew Dixie <andrewd@gentrack.com>
13930
13931 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
13932 flag set.
13933
c0a8a3e6
RS
139342013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
13935
13936 * expmed.c (extract_bit_field_1): Pass the full width of the
13937 structure to get_best_reg_extraction_insn.
13938
99113dff
DE
139392013-02-01 David Edelsohn <dje.gcc@gmail.com>
13940
13941 PR target/54601
13942 * configure.ac (use_cxa_atexit): Add AIX.
13943 * configure: Regenerate.
13944
13945 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
13946
ddd84654
JJ
139472013-02-01 Jakub Jelinek <jakub@redhat.com>
13948
13949 PR debug/54793
13950 * final.c (need_profile_function): New variable.
13951 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
13952 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
13953 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
13954 notes, targetm.asm_out.function_prologue doesn't emit anything,
13955 HAVE_prologue and profiler should be emitted before prologue,
13956 set need_profile_function instead of emitting it.
13957 (final_scan_insn): If need_profile_function, emit
13958 profile_function on the first NOTE_INSN_BASIC_BLOCK or
13959 NOTE_INSN_FUNCTION_BEG note.
13960
139612013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
13962
13963 * config/rs6000/rs6000.md (smulditi3): New.
13964 (umulditi3): New.
13965
ff2a9d88
RH
13966 * config/alpha/alpha.md (umulditi3): New.
13967
14d52b90
DE
139682013-02-01 David Edelsohn <dje.gcc@gmail.com>
13969
13970 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
13971 (ASM_OUTPUT_ALIGNED_LOCAL): New.
13972
8c7ca45c
RB
139732013-02-01 Richard Biener <rguenther@suse.de>
13974
13975 PR tree-optimization/56113
13976 * tree-ssa-structalias.c (label_visit): Reduce work for
13977 single-predecessor nodes.
13978
9f419393
EB
139792013-02-01 Eric Botcazou <ebotcazou@adacore.com>
13980
13981 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
13982 range isn't testing for zero.
13983
c5f4be84
SB
139842013-01-31 Steven Bosscher <steven@gcc.gnu.org>
13985
13986 PR middle-end/56113
13987 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
13988
dbdbd982
NC
139892013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
13990 Nick Clifton <nickc@redhat.com>
13991
13992 * config/v850/constraints.md (Q): Define as a memory constraint.
13993 * config/v850/predicates.md (label_ref_operand): New predicate.
13994 (e3v5_shift_operand): New predicate.
13995 (ior_operator): New predicate.
13996 * config/v850/t-v850: Add e3v5 multilib.
13997 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
13998 (v850_gen_movdi): Prototype.
13999 * config/v850/v850.c: Add support for e3v5 architecture.
14000 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
14001 TARGET_V850E_UP.
14002 (construct_save_jarl): Add e3v5 long JARL support.
14003 (v850_adjust_insn_length): New function. Adjust length of call
14004 insns when using e3v5 instructions.
14005 (v850_gen_movdi): New function: Generate instructions to move a
14006 DImode value.
14007 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
14008 (CPP_SPEC): Define __v850e3v5__ as appropriate.
14009 (TARGET_USE_FPU): Enable for e3v5.
14010 (CONST_OK_FOR_W): New macro.
14011 (ADJUST_INSN_LENGTH): Define.
14012 * config/v850/v850.md (UNSPEC_LOOP): Define.
14013 (attr cpu): Add v850e3v5.
14014 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
14015 (movdi): New pattern.
14016 (movdi_internal): New pattern.
14017 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
14018 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
14019 (cstoresf4): Likewise.
14020 (cstoredf4): Likewise.
14021 (insv): New pattern.
14022 (rotlso3_a): New pattern.
14023 (rotlsi3_b): New pattern
14024 (rotlsi3_v850e3v5): New pattern.
14025 (doloop_begin): New pattern.
14026 (fix_loop_counter): New pattern.
14027 (doloop_end): New pattern.
14028 (branch_normal): Add e3v5 long branch support.
14029 (branch_invert): Likewise.
14030 (branch_z_normal): Likewise.
14031 (branch_z_invert): Likewise.
14032 (branch_nz_normal): Likewise.
14033 (branch_nz_invert): Likewise.
14034 (call_internal_short): Add e3v5 register-indirect JARL support.
14035 (call_internal_long): Likewise.
14036 (call_value_internal_short): Likewise.
14037 (call_value_internal_long): Likewise.
14038 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
14039 (mloop): New option.
14040 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 14041 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 14042
73861a41
PK
140432013-01-31 Paul Koning <ni1d@arrl.net>
14044
14045 PR debug/55059
14046 PR debug/54508
14047 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
14048 children if parent is a class.
14049 (prune_unused_types_prune): Don't add DW_AT_declaration.
14050
e44978dc
RB
140512013-01-31 Richard Biener <rguenther@suse.de>
14052
14053 PR tree-optimization/56157
14054 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
14055 match up operand with SLP child.
14056
90b10dec
JM
140572013-01-31 Jason Merrill <jason@redhat.com>
14058
04d2dadd 14059 PR debug/54410
90b10dec
JM
14060 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
14061 parameters the first time.
14062 (gen_scheduled_generic_parms_dies): Check completeness here.
14063
6e616110
RB
140642013-01-31 Richard Biener <rguenther@suse.de>
14065
14066 PR middle-end/53073
14067 * common.opt (faggressive-loop-optimizations): New flag,
14068 enabled by default.
14069 * doc/invoke.texi (faggressive-loop-optimizations): Document.
14070 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
14071 infer_loop_bounds_from_undefined by it.
14072
636f59cf
RB
140732013-01-31 Richard Biener <rguenther@suse.de>
14074
14075 PR tree-optimization/56150
14076 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
14077 visit virtual operands.
14078 (find_uses_to_rename_bb): Likewise.
14079
140802013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
14081
14082 PR tree-optimization/56150
14083 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
14084 mixed store non-store stmts.
14085
32887460
JJ
140862013-01-30 Jakub Jelinek <jakub@redhat.com>
14087
e60e09a0
JJ
14088 PR sanitizer/55374
14089 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
14090 LIBASAN_EARLY_SPEC is defined.
14091 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
14092 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
14093 before %o.
14094 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
14095
32887460
JJ
14096 PR c++/55742
14097 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
14098 invalid args instead of ICEing on it.
14099 (ix86_valid_target_attribute_tree): Return error_mark_node if
14100 ix86_valid_target_attribute_inner_p failed.
14101 (ix86_valid_target_attribute_p): Return false only if
14102 ix86_valid_target_attribute_tree returned error_mark_node. Allow
14103 target("default") attribute.
14104 (sorted_attr_string): Change argument from const char * to tree,
14105 merge in all target attribute arguments rather than just one.
14106 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
14107 instead of free. Avoid using strcat.
14108 (ix86_mangle_function_version_assembler_name): Mangle
14109 target("default") as if no target attribute is present. Adjust
14110 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
14111 instead of xmalloc and XDELETEVEC instead of free.
14112 (ix86_function_versions): Don't return true if one of the decls
14113 doesn't have target attribute. If they don't and one of the decls
14114 is DECL_FUNCTION_VERSIONED, report an error. Adjust
14115 sorted_attr_string caller. Use XDELETEVEC instead of free.
14116 (ix86_supports_function_versions): Remove.
14117 (make_name): Fix up formatting.
14118 (make_dispatcher_decl): Remove resolver_name and its initialization.
14119 Avoid leaking memory.
14120 (is_function_default_version): Return true if there is
14121 target("default") attribute rather than no target attribute at all.
14122 (make_resolver_func): Avoid leaking memory.
14123 (ix86_generate_version_dispatcher_body): Likewise.
14124 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
14125 * target.def (supports_function_versions): Remove.
14126 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
14127 * doc/tm.texi: Regenerated.
14128
73cca0cc
VM
141292013-01-30 Vladimir Makarov <vmakarov@redhat.com>
14130
14131 PR rtl-optimization/56144
14132 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
14133 for values with side effects.
14134
11452e7b
RB
141352013-01-30 Richard Biener <rguenther@suse.de>
14136
14137 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
14138 (sparseset_pop): Likewise.
14139 * cfganal.c (compute_idf): Likewise. Increase work-stack size
14140 to be able to use quick_push in the worker loop.
14141
01cb1ef5
MP
141422013-01-30 Marek Polacek <polacek@redhat.com>
14143
14144 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
14145
e892936e
RB
141462013-01-30 Richard Biener <rguenther@suse.de>
14147
14148 PR lto/56147
6edc3e32 14149 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 14150
cc06c01d
GJL
141512013-01-30 Georg-Johann Lay <avr@gjlay.de>
14152
14153 PR tree-optimization/56064
14154 * fixed-value.c (fixed_from_double_int): New function.
14155 * fixed-value.h (fixed_from_double_int): New prototype.
14156 (const_fixed_from_double_int): New static inline function.
14157 * fold-const.c (native_interpret_fixed): New static function.
14158 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
14159 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
14160 (native_encode_fixed): New static function.
14161 (native_encode_expr) <FIXED_CST>: Use it.
14162 (native_interpret_int): Move double_int worker code to...
14163 * double-int.c (double_int::from_buffer): ...this new static method.
14164 * double-int.h (double_int::from_buffer): Prototype it.
14165
d394a308
RB
141662013-01-30 Richard Biener <rguenther@suse.de>
14167
14168 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
14169 New pointer-map and obstack.
14170 (init_alias_vars): Allocate pointer-map and obstack.
14171 (delete_points_to_sets): Free them.
14172 (find_what_var_points_to): Cache result.
14173 (find_what_p_points_to): Adjust for changed interface of
14174 find_what_var_points_to.
14175 (compute_points_to_sets): Likewise.
14176 (ipa_pta_execute): Likewise.
14177
20804d96
RO
141782013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14179
14180 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
14181 * configure: Regenerate.
14182 * config.in: Regenerate.
14183 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
14184 #nobits/#progbits if supported.
14185
a7ad88a2
OE
141862013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
14187
14188 PR target/56121
14189 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
14190 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
14191 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
14192
7af79f92
GY
141932013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
14194
91bfca59
OE
14195 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
14196 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 14197
753bcf7b
GY
141982013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
14199
91bfca59
OE
14200 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
14201 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 14202
8cbc2ea8
GY
142032013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
14204
91bfca59
OE
14205 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
14206 declaration.
14207 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
14208 * config/arm/cortex-a7.md: New bypasses using
14209 arm_mac_accumulator_is_result.
8cbc2ea8 14210
697a3325
GY
142112013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
14212
91bfca59 14213 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 14214 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
14215 (cortex_a7_fpfmad): New reservation.
14216 (cortex_a7_fpmacs): Use ffmas and update required units.
14217 (cortex_a7_fpmuld): Update required units and latency.
14218 (cortex_a7_fpmacd): Likewise.
14219 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
14220 (cortex_a7_neon). Likewise.
14221 (bypass) Update participating units.
697a3325 14222
29637783
GY
142232013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
14224
91bfca59
OE
14225 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
14226 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
14227 from fmac to ffma.
14228 * config/arm/vfp11.md (vfp_farith): Use ffmas.
14229 (vfp_fmul): Use ffmad.
14230 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
14231 (cortex_r4_fmacd): Use ffmad.
14232 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
14233 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
14234 (cortex_a9_fmacd): Use ffmad.
14235 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
14236 (cortex_a8_vfp_macd): Use ffmad.
14237 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
14238 (cortex_a5_fpmacd): Use ffmad.
14239 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
14240 (cortex_a15_vfp_macd): Use ffmad.
14241 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 14242
2ee8a2d5
JM
142432013-01-29 Jason Merrill <jason@redhat.com>
14244
14245 PR libstdc++/54314
14246 * varasm.c (default_assemble_visibility): Don't warn about
14247 visibility on artificial decls.
14248
78d087bc
RB
142492013-01-29 Richard Biener <rguenther@suse.de>
14250
14251 PR tree-optimization/56113
14252 * tree-ssa-structalias.c (equiv_class_lookup): Also return
14253 the bitmap leader.
14254 (label_visit): Free duplicate bitmaps and record the leader instead.
14255 (perform_var_substitution): Adjust.
14256
83ba4d6f
RB
142572013-01-29 Richard Biener <rguenther@suse.de>
14258
14259 PR tree-optimization/55270
14260 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
14261 the CFG, schedule loops for fixup.
14262
66dfe13f
NC
142632013-01-29 Nick Clifton <nickc@redhat.com>
14264
14265 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
14266 SP_REG.
14267
5a579c3b
LE
142682013-01-28 Leif Ekblad <leif@rdos.net>
14269
14270 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
14271 * config/i386/i386.h (TARGET_RDOS): New macro.
14272 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
14273 * config/i386/i386.c (ix86_option_override_internal): For 64bit
14274 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
14275 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
14276 DEFAULT_LARGE_SECTION_THRESHOLD.
14277 * config/i386/i386.md (R14_REG, R15_REG): New constants.
14278 * config/i386/rdos.h: New file.
14279 * config/i386/rdos64.h: New file.
14280
51e44392
BS
142812013-01-28 Bernd Schmidt <bernds@codesourcery.com>
14282
14283 PR other/54814
14284 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
14285 TEST_HARD_REG_BIT.
14286
db1fb332
JJ
142872013-01-28 Jakub Jelinek <jakub@redhat.com>
14288
14289 PR rtl-optimization/56117
14290 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
14291 call cselib_lookup_from_insn on the MEM before calling
14292 add_insn_mem_dependence.
14293
16917761
RB
142942013-01-28 Richard Biener <rguenther@suse.de>
14295
14296 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
14297 to a stmt that didn't have one.
14298 (copy_phis_for_bb): Likewise for PHI arguments.
14299 (copy_debug_stmt): Likewise for debug stmts.
14300
b9fc0497
RB
143012013-01-28 Richard Biener <rguenther@suse.de>
14302
14303 PR tree-optimization/56034
6edc3e32 14304 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
14305 (partition_builtin_p): Adjust.
14306 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
14307 it is the last partition.
14308 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
14309 up the vertex for the definition.
14310 (classify_partition): Classify whether a partition is a
14311 PKIND_REDUCTION, thus has uses outside of the loop.
14312 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
14313 Merge all PKIND_REDUCTION partitions into the last partition.
14314 (tree_loop_distribution): Seed partitions from reductions as well.
14315
aa710d25
JJ
143162013-01-28 Jakub Jelinek <jakub@redhat.com>
14317
0bfbca58
JJ
14318 PR tree-optimization/56125
14319 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
14320 pow(x,c) into sqrt(x) * powi(x, n/2) or
14321 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
14322 optimizing for size.
14323 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
14324 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
14325 integer.
14326
aa710d25
JJ
14327 PR tree-optimization/56094
14328 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
14329 to UNKNOWN_LOCATION while gimplifying expr.
14330
77dc5297
UB
143312013-01-27 Uros Bizjak <ubizjak@gmail.com>
14332
14333 PR target/56114
14334 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
14335 operand 0 in movabs insn template for -masm=intel asm alternative.
14336 (*movabs<mode>_2): Ditto for operand 1.
14337
0bfbca58 143382013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
14339
14340 PR target/54663
14341 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
14342 of microblaze-c.o
14343
0bfbca58 143442013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
14345
14346 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
14347 tm_file.
14348
0bfbca58 143492013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
14350
14351 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
14352 Undef to avoid warning.
14353
478f60f9
MH
143542013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14355
14356 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
14357 * configure: Regenerate.
14358
d7fa6ee2
JJ
143592013-01-25 Jakub Jelinek <jakub@redhat.com>
14360
14361 PR tree-optimization/56098
14362 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
14363 for stmts with volatile ops.
14364 (cond_store_replacement): Don't optimize if assign has volatile ops.
14365 (cond_if_else_store_replacement_1): Don't optimize if either
14366 then_assign or else_assign have volatile ops.
14367 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
14368 volatile ops.
14369
f8fe87bd
GJL
143702013-01-25 Georg-Johann Lay <avr@gjlay.de>
14371
14372 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
14373
28398d0d
GJL
143742013-01-25 Georg-Johann Lay <avr@gjlay.de>
14375
14376 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
14377 missing ':' in asm example.
14378
b7d7d917
TB
143792013-01-25 Tejas Belagod <tejas.belagod@arm.com>
14380
14381 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
14382 entries into lane and laneq entries.
77dc5297
UB
14383 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
14384 Remove AdvSIMD scalar modes.
b7d7d917
TB
14385 (aarch64_sq<r>dmulh_laneq<mode>): New.
14386 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
14387 modes.
14388 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
14389 builtin implementations to relfect changes in RTL in aarch64-simd.md.
14390 * config/aarch64/iterators.md (VCOND): New.
14391 (VCONQ): New.
14392
556f9906
GJL
143932013-01-25 Georg-Johann Lay <avr@gjlay.de>
14394
14395 PR target/54222
14396 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
14397 Add NULL LIBNAME argument to existing definitions.
14398 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
14399 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
14400 * config/avr/avr.c (DEF_BUILTIN): Same.
14401 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
14402 (avr_expand_builtin): Expand to a vanilla call if a libgcc
14403 implementation is available (DECL_ASSEMBLER_NAME is set).
14404 (avr_fold_absfx): New static function.
14405 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
14406 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
14407 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
14408 AVR_BUILTIN_ABSLLK.
14409 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
14410 (abshk, absk, abslk, absllk): Provide as static inline functions.
14411
1f546bbb
MP
144122013-01-25 Marek Polacek <polacek@redhat.com>
14413
14414 PR tree-optimization/56035
14415 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
14416
7e184bd7
UB
144172012-01-24 Uros Bizjak <ubizjak@gmail.com>
14418
14419 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
14420 (*movtf_internal_rex64): Add (!o,C) alternative
14421 (*movxf_internal_rex64): Ditto.
14422 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
14423
f5ba49ac
SM
144242013-01-24 Shenghou Ma <minux.ma@gmail.com>
14425
14426 * doc/invoke.texi: fix typo.
14427 * doc/objc.texi: fix typo.
14428
a6343728
RS
144292013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
14430
14431 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
14432 for the first two alternatives.
14433
cd030c07
DN
144342013-01-24 Diego Novillo <dnovillo@google.com>
14435
77dc5297 14436 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
14437 (ggc-zone.o): Remove.
14438 * configure.ac: Remove option --with-gc.
14439 * configure: Re-generate.
14440 * doc/install.texi: Remove documentation for --with-gc.
14441 * gengtype.c (write_enum_defn): Remove. Update all users.
14442 (write_Types_process_field): Remove generation of gt_e_* argument.
14443 (output_type_enum): Remove. Update all users.
14444 (write_enum_defn): Remove. Update all users.
14445 (enum alloc_zone): Remove. Update all users.
77dc5297 14446 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
14447 * ggc-common.c (ggc_splay_alloc): Remove first argument.
14448 Update all callers.
14449 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 14450 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
14451 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
14452 Update all users.
aaf1e810 14453 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
14454 (struct alloc_zone): Remove.
14455 (ggc_internal_alloc_zone_stat): Remove.
14456 (ggc_internal_cleared_alloc_zone_stat): Remove.
14457 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
14458 (ggc_pch_count_object): Remove last argument. Update all users.
14459 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
14460 (struct alloc_zone): Remove.
14461 * ggc-zone.c: Remove.
77dc5297 14462 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
14463 (struct alloc_zone): Remove.
14464 (ggc_alloc_typed_stat): Remove.
14465 (ggc_alloc_typed): Remove.
14466 (ggc_splay_alloc): Remove first argument.
14467 (rtl_zone): Remove. Update all users.
14468 (tree_zone): Remove. Update all users.
14469 (tree_id_zone): Remove. Update all users.
14470 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 14471 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 14472 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 14473 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 14474
a861ffa4
GJL
144752013-01-24 Georg-Johann Lay <avr@gjlay.de>
14476
14477 * config/avr/avr.c (avr_out_fract): Make register numbers that
14478 might be outside of source operand signed.
14479
593c0ddd
UB
144802013-01-24 Uros Bizjak <ubizjak@gmail.com>
14481
14482 * config/i386/constraints.md (Yf): New constraint.
14483 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
14484 of f constraint to conditionaly disable x87 register preferences.
14485 (*movdf_internal): Ditto.
14486 (*movsf_internal): Ditto.
14487
e86c0101
SB
144882013-01-24 Steven Bosscher <steven@gcc.gnu.org>
14489
14490 PR inline-asm/55934
14491 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
14492 that have operands with impossible constraints.
14493 Add a FIXME for a speed-up opportunity.
14494 * lra-constraints.c (process_alt_operands): Verify that a class
14495 selected from constraints on asms is valid for the operand mode.
14496 (curr_insn_transform): Remove incorrect comment.
14497
f6fee35f
DE
144982013-01-23 David Edelsohn <dje.gcc@gmail.com>
14499
14500 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
14501 TOC operand is a valid symbol ref in the constant pool.
14502
145032013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 14504
aaf1e810 14505 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 14506
dc62d7d1
GJL
145072013-01-23 Georg-Johann Lay <avr@gjlay.de>
14508
14509 PR target/54222
14510 * config/avr/stdfix.h: New file.
14511 * t-avr (stdfix-gcc.h): New rule to build it.
14512 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
14513
2660d12d
KS
145142013-01-23 Kostya Serebryany <kcc@google.com>
14515
77dc5297
UB
14516 * config/darwin.h: remove dependency on
14517 CoreFoundation (asan on Mac OS).
2660d12d 14518
a70418fc
JJ
145192013-01-23 Jakub Jelinek <jakub@redhat.com>
14520
14521 PR target/49069
14522 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
14523 instead of cmpdi_operand for first comparison operand.
14524 Don't assert that comparison operands aren't both constants.
14525
47876a2a
JW
145262013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
14527
14528 * doc/install.texi (Downloading the Source): Update references to
14529 downloading separate components.
14530
145312013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
14532
14533 * doc/extend.texi (__int128): Improve grammar.
14534
47876a2a 145352013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
14536
14537 PR target/56028
14538 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
14539 alternative to (o,r).
14540 (*movdi_internal_rex64): Remove (!o,n) alternative.
14541 (DImode immediate->memory splitter): Remove.
14542 (DImode immediate->memory peephole2): Remove.
14543 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
14544 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
14545 alternative to (!o,*r).
14546 (*movtf_internal_sse): New pattern.
14547 (*movxf_internal_rex64): New pattern.
14548 (*movxf_internal): Disable for TARGET_64BIT.
14549 (*movdf_internal_rex64): Remove (!o,F) alternative.
14550
3a984f10
JJ
145512013-01-22 Jakub Jelinek <jakub@redhat.com>
14552
502498d5
JJ
14553 PR middle-end/56074
14554 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
14555 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
14556 * tree-vect-loop-manip.c (find_loop_location): Also ignore
14557 stmt locations where LOCATION_LOCUS of the stmt location is
14558 UNKNOWN_LOCATION or BUILTINS_LOCATION.
14559
3a984f10
JJ
14560 PR target/55686
14561 * config/i386/i386.md (UNSPEC_STOS): New.
14562 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
14563 *strsetqi_1): Add UNSPEC_STOS.
14564
fa817f7f
PC
145652013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
14566
14567 PR c++/56067
14568 * doc/invoke.texi: Remove left over -Wsynth example.
14569
8f498c1b
JJ
145702013-01-21 Jakub Jelinek <jakub@redhat.com>
14571
14572 PR tree-optimization/56051
14573 * fold-const.c (fold_binary_loc): Don't fold
14574 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
14575 a narrowing conversion, or widening conversion from signed
14576 to unsigned.
14577
47876a2a 145782013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
14579
14580 PR rtl-optimization/56023
14581 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
14582 dependent on debug instruction.
14583
5b9db1bc
MJ
145842013-01-21 Martin Jambor <mjambor@suse.cz>
14585
14586 PR middle-end/56022
14587 * function.c (allocate_struct_function): Call
14588 invoke_set_current_function_hook earlier.
14589
e8bb7d68
JJ
145902013-01-21 Jakub Jelinek <jakub@redhat.com>
14591
14592 * reload1.c (init_reload): Only initialize reload_obstack
14593 during the first call.
14594
616a4e32
MP
145952013-01-21 Marek Polacek <polacek@redhat.com>
14596
14597 * cfgloop.c (verify_loop_structure): Fix up grammar.
14598
4401981b
YHH
145992013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
14600
14601 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
14602 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
14603
8e87740b
RR
146042013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14605
14606 PR target/56058
14607 * config/arm/marvell-pj4.md: Update copyright year.
14608 Fix up use of alu to alu_reg and simple_alu_imm.
14609
47876a2a 146102013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
14611
14612 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
14613
89d56d79
VM
146142013-01-20 Vladimir Makarov <vmakarov@redhat.com>
14615
14616 PR target/55433
14617 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 14618 insn for secondary memory move when memory mode should be different.
89d56d79 14619
fe603553
JDA
146202013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14621
14622 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
14623 atomic_storedi_1): New patterns.
14624
01284895
VK
146252013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14626
14627 btver2 pipeline descriptions.
14628 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
14629 descriptions.
14630 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 14631 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
14632 type attributes.
14633 * config/i386/btver2.md: New file describing btver2 pipelines.
14634
5630e3e1
JL
146352013-01-19 Andrew Pinski <apinski@cavium.com>
14636
14637 PR tree-optimization/52631
14638 * tree-ssa-sccvn (visit_use): Before looking up the original
14639 statement, try looking up the simplified expression.
14640
650ae806
AG
146412013-01-19 Anthony Green <green@moxielogic.com>
14642
14643 * config/moxie/moxie.c (moxie_expand_prologue): Set
14644 current_function_static_stack_size.
14645
e300ec2d
JJ
146462013-01-18 Jakub Jelinek <jakub@redhat.com>
14647
14648 PR tree-optimization/56029
14649 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
14650 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
14651
a3d7af04
SS
146522013-01-18 Sharad Singhai <singhai@google.com>
14653
14654 PR tree-optimization/55995
14655 * dumpfile.c (dump_loc): Print location only if available.
14656 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
14657
66aa7879
VM
146582013-01-18 Vladimir Makarov <vmakarov@redhat.com>
14659
14660 PR target/55433
14661 * lra-constraints.c (curr_insn_transform): Reuse original insn for
14662 secondary memory move.
14663 (inherit_reload_reg): Use rclass instead of cl for
14664 check_secondary_memory_needed_p.
14665
3f0fee7b
JJ
146662013-01-18 Jakub Jelinek <jakub@redhat.com>
14667
14668 PR middle-end/56015
14669 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 14670 the case where writing real complex part of target modifies op1.
3f0fee7b 14671
70c67693
JG
146722013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
14673
14674 * config/aarch64/aarch64-simd.md
14675 (aarch64_vcond_internal<mode>): Handle unordered cases.
14676 * config/aarch64/iterators.md (v_cmp_result): New.
14677
df8de9b3
YHH
146782013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
14679 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14680
14681 * config/arm/marvell-pj4.md: New file.
14682 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
14683 * config/arm/arm.md (generic_sched): Add marvell_pj4.
14684 (generic_vfp): Likewise.
14685 * config/arm/arm-cores.def: Add marvell-pj4.
14686 * config/arm/arm-tune.md: Regenerate.
14687 * config/arm/arm-tables.opt: Regenerate.
14688 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
14689 * doc/invoke.texi: Document marvell-pj4.
14690
be30c356
TB
146912013-01-18 Tejas Belagod <tejas.belagod@arm.com>
14692
14693 * config/aarch64/arm_neon.h: Map scalar types to standard types.
14694
0bfbca58 146952013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
14696
14697 PR debug/54114
14698 PR debug/54402
14699 PR debug/49888
14700 * var-tracking.c (negative_power_of_two_p): New.
14701 (global_get_addr_cache, local_get_addr_cache): New.
14702 (get_addr_from_global_cache, get_addr_from_local_cache): New.
14703 (vt_canonicalize_addr): Rewrite using the above. Adjust the
14704 heading comment.
14705 (vt_stack_offset_p): Remove.
14706 (vt_canon_true_dep): Always canonicalize loc's address.
14707 (clobber_overlapping_mems): Make sure we have a MEM.
14708 (local_get_addr_clear_given_value): New.
14709 (val_reset): Clear local cached entries.
14710 (compute_bb_dataflow): Create and release the local cache.
14711 Disable duplicate MEMs clobbering.
14712 (emit_notes_in_bb): Clobber MEMs likewise.
14713 (vt_emit_notes): Create and release the local cache.
14714 (vt_initialize, vt_finalize): Create and release the global
14715 cache, respectively.
1f6bc337 14716 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 14717
0bfbca58 147182013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
14719
14720 PR libmudflap/53359
14721 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
14722 not found in the symtab.
14723
0bfbca58 147242013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 14725
c350ba53 14726 PR debug/56006
3aa03517
AO
14727 PR rtl-optimization/55547
14728 PR rtl-optimization/53827
14729 PR debug/53671
14730 PR debug/49888
14731 * alias.c (offset_overlap_p): New, factored out of...
14732 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
14733 the conservative special case for symbolic constants. Don't
14734 adjust zero sizes on alignment.
14735
c664546f
JL
147362013-01-18 Bernd Schmidt <bernds@codesourcery.com>
14737
14738 PR rtl-optimization/52573
14739 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
14740 REG_UNUSED for the same register.
14741
1bd3f750
MP
147422013-01-17 Richard Biener <rguenther@suse.de>
14743 Marek Polacek <polacek@redhat.com>
14744
14745 PR rtl-optimization/55833
14746 * loop-unswitch.c (unswitch_loops): Move loop verification...
14747 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
14748 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
14749 Set it to true when we're removing a loop from hierarchy tree in
14750 an irreducible region.
14751 (fix_bb_placements): Adjust caller.
14752 (fix_loop_placements): Likewise.
14753
e52a8b71
GJL
147542013-01-17 Georg-Johann Lay <avr@gjlay.de>
14755
14756 * config/avr/builtins.def (DEF_BUILTIN): Factor out
14757 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
14758 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
14759 Remove ID. Adjust comments.
14760 * config/avr/avr-c.c (avr_builtin_name): Remove.
14761 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
14762 * config/avr/avr.c (avr_tolower): New static function.
14763 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
14764 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
14765 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
14766 default expansion.
14767
8386a7ea
JH
147682013-01-17 Jan Hubicka <jh@suse.cz>
14769
610fb637 14770 PR tree-optimization/55273
8386a7ea
JH
14771 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
14772
47876a2a 147732013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
14774
14775 PR target/55981
14776 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
14777 store through atomic_store<mode>_1.
14778 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
14779
8222c37e
MJ
147802013-01-17 Martin Jambor <mjambor@suse.cz>
14781
14782 PR tree-optimizations/55264
14783 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
14784 for virtual methods.
14785 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
14786 virtual methods before inlining is over.
14787 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
14788 virtual functions.
14789 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
14790 non-virtual.
14791
79f01c76
VM
147922013-01-16 Vladimir Makarov <vmakarov@redhat.com>
14793
14794 PR rtl-optimization/56005
14795 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
14796 pending reads for prefetch.
14797
d0b6bb1b
IB
147982013-01-16 Ian Bolton <ian.bolton@arm.com>
14799
aaf1e810 14800 * config/aarch64/aarch64.md
d0b6bb1b
IB
14801 (*cstoresi_neg_uxtw): New pattern.
14802 (*cmovsi_insn_uxtw): New pattern.
14803 (*<optab>si3_uxtw): New pattern.
14804 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
14805 (*<optab>si3_insn_uxtw): New pattern.
14806 (*bswapsi2_uxtw): New pattern.
14807
cb9cf03b
RB
148082013-01-16 Richard Biener <rguenther@suse.de>
14809
14810 * tree-inline.c (tree_function_versioning): Remove set but
14811 never used variable.
14812
2cfc56b9
RB
148132013-01-16 Richard Biener <rguenther@suse.de>
14814
14815 PR tree-optimization/55964
14816 * tree-flow.h (rename_variables_in_loop): Remove.
14817 (rename_variables_in_bb): Likewise.
14818 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
14819 (copy_loop_before): Adjust and delete update-ssa status.
14820 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 14821 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
14822 (rename_variables_in_loop): Remove.
14823 (slpeel_update_phis_for_duplicate_loop): Likewise.
14824 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
14825 use available cfg machinery instead of duplicating it.
14826 Update PHI nodes and perform poor-mans SSA update here.
14827 (slpeel_tree_peel_loop_to_edge): Adjust.
14828
c25a0c60
RB
148292013-01-16 Richard Biener <rguenther@suse.de>
14830
14831 PR tree-optimization/54767
14832 PR tree-optimization/53465
14833 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
14834 (vrp_visit_phi_node): For PHI arguments coming via backedges
14835 drop all symbolical range information.
14836 (execute_vrp): Compute backedges.
14837
04b535af
RB
148382013-01-16 Richard Biener <rguenther@suse.de>
14839
14840 * doc/install.texi: Update CLooG and ISL requirements to
14841 0.18.0 and 0.11.1.
14842
8b0a1e0b
CB
148432013-01-16 Christian Bruel <christian.bruel@st.com>
14844
14845 PR target/55301
14846 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
14847 (broken_move): Handle UNSPECV_SP_SWITCH_B.
14848 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
14849
148502013-01-16 DJ Delorie <dj@redhat.com>
14851
14852 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
14853 (UNSPECV_SP_SWITCH_E): New.
14854 (sp_switch_1): Change to an unspec.
14855 (sp_switch_2): Change to an unspec. Don't use post-inc when we
14856 replace $r15.
14857
148582013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
14859
14860 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
14861 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
14862 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
14863 (expand_mem_thread_fence): Ditto.
14864 (expand_mem_signal_fence): Ditto.
14865 (expand_atomic_load): Ditto.
14866 (expand_atomic_store): Ditto.
14867
0bfbca58 148682013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
14869
14870 PR rtl-optimization/55547
14871 PR rtl-optimization/53827
14872 PR debug/53671
14873 PR debug/49888
14874 * alias.c (memrefs_conflict_p): Set sizes to negative after
14875 AND adjustments.
14876
305e3ac1
JJ
148772013-01-15 Jakub Jelinek <jakub@redhat.com>
14878
14879 PR target/55940
14880 * function.c (thread_prologue_and_epilogue_insns): Always
14881 add crtl->drap_reg to set_up_by_prologue.set, even if
14882 stack_realign_drap is false.
14883
f78ac4f2
JBG
148842013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
14885
14886 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
14887 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
14888 *call): Fix indention.
14889
a78a8cc4
TV
148902013-01-15 Tom de Vries <tom@codesourcery.com>
14891
14892 PR target/55876
14893 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
14894 Update comment.
14895
0e80383f
VM
148962013-01-15 Vladimir Makarov <vmakarov@redhat.com>
14897
305e3ac1 14898 PR rtl-optimization/55153
0e80383f
VM
14899 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
14900
207b5956
MJ
149012013-01-15 Martin Jambor <mjambor@suse.cz>
14902
14903 PR tree-optimization/55920
14904 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
14905 accesses as grp_to_be_debug_replaced.
14906
a7818b54
JJ
149072013-01-15 Jakub Jelinek <jakub@redhat.com>
14908
14909 PR tree-optimization/55920
14910 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
14911 there is non-useless type conversion needed from debug rhs to lhs,
14912 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
14913
b0fe107e
JM
149142013-01-15 Joseph Myers <joseph@codesourcery.com>
14915 Mikael Pettersson <mikpe@it.uu.se>
14916
14917 PR target/43961
14918 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
14919 Thumb.
14920 (ASM_OUTPUT_CASE_LABEL): Remove.
14921 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
14922 * final.c (shorten_branches): Update alignment of labels before
14923 jump tables if CASE_VECTOR_SHORTEN_MODE.
14924
34ab62ee
RB
149252013-01-15 Richard Biener <rguenther@suse.de>
14926
14927 PR bootstrap/55961
14928 * system.h: Do not include gmp.h for building host tools.
14929
783a3a05
RB
149302013-01-15 Richard Biener <rguenther@suse.de>
14931
14932 PR middle-end/55882
14933 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
14934 account for bitpos when computing alignment.
14935
3a579e09
VY
149362013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
14937
14938 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
14939 (ix86_target_macros_internal): Likewise.
14940
14941 * config/i386/i386.c (m_CORE2I7): Removed.
14942 (m_CORE_HASWELL): New macro.
14943 (m_CORE_ALL): Likewise.
14944 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
14945 (initial_ix86_arch_features): Likewise.
14946 (processor_target_table): Initializations for Core avx2.
14947 (cpu_names): New names "core-avx2".
14948 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
14949 PROCESSOR_CORE_HASWELL.
14950 (ix86_issue_rate): New case.
14951 (ia32_multipass_dfa_lookahead): Likewise.
14952 (ix86_sched_init_global): Likewise.
14953
14954 * config/i386/i386.h (TARGET_HASWELL): New macro.
14955 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
14956 (processor_type): New PROCESSOR_HASWELL.
14957
955f5a07
JJ
149582013-01-15 Jakub Jelinek <jakub@redhat.com>
14959
ff784829
JJ
14960 PR tree-optimization/55955
14961 * tree-vect-loop.c (vectorizable_reduction): Give up early on
14962 *SHIFT_EXPR and *ROTATE_EXPR codes.
14963
955f5a07
JJ
14964 PR tree-optimization/48766
14965 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
14966 -ftrapv disable -fwrapv.
14967
aeb8b4e9
GJL
149682013-01-14 Georg-Johann Lay <avr@gjlay.de>
14969
14970 PR target/55974
14971 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
14972 etc. to 1 and not to __flash.
14973 Use LL suffix for __INT24_MAX__ with -mint8.
14974 Use ULL suffix for __UINT24_MAX__ with -mint8.
14975
1c494c6a
GJL
149762013-01-14 Georg-Johann Lay <avr@gjlay.de>
14977
14978 * config/avr/avr-arch.h
14979 (struct base_arch_s): Use typedef avr_arch_t instead.
14980 (struct arch_info_s): Use typedef avr_arch_info_t instead.
14981 (struct mcu_type_s): Use typedef avr_mcu_t instead.
14982 * config/avr/avr.c: Same.
14983 * config/avr/avr-devices.c: Same.
14984 * config/avr/driver-avr.c: Same.
14985 * config/avr/gen-avr-mmcu-texi.c: Same.
14986 * config/avr/avr-mcus.def: Adjust comment.
14987
a50344cb
TB
149882013-01-14 Tejas Belagod <tejas.belagod@arm.com>
14989
88e784e6
UB
14990 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
14991 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 14992
47876a2a 149932013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
14994 Andi Kleen <ak@linux.intel.com>
14995
14996 PR target/55948
14997 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
14998 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
14999 memmodel flag.
15000
00892272
GJL
150012013-01-14 Georg-Johann Lay <avr@gjlay.de>
15002
15003 * config/avr/avr-stdint.h: Remove trailing blanks.
15004 * config/avr/avr-log.h: Same.
15005 * config/avr/avr-arch.h: Same.
15006 * config/avr/avr-devices.c: Same.
15007 * config/avr/avr-dimode.md: Same.
15008 * config/avr/predicates.md: Same.
15009 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 15010
00892272
GJL
15011 * config/avr/avr-protos.h: Same. And:
15012 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
15013 (init_cumulative_args): Rename to avr_init_cumulative_args.
15014 (expand_prologue): Rename to avr_expand_prologue.
15015 (expand_epilogue): Rename to avr_expand_epilogue.
15016 (adjust_insn_length): Rename to avr_adjust_insn_length.
15017 (notice_update_cc): Rename to avr_notice_update_cc.
15018 (final_prescan_insn): Rename to avr_final_prescan_insn.
15019 * config/avr/avr.c: Same.
15020 * config/avr/avr.h: Same.
15021 * config/avr/avr.md: Remove trailing blanks.
15022 (prologue): Use avr_expand_prologue.
15023 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
15024
7bb01996
RB
150252013-01-14 Richard Biener <rguenther@suse.de>
15026
15027 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
15028 verify_location, collect_subblocks): New functions.
15029 (verify_gimple_in_cfg): Verify that locations only reference
15030 BLOCKs in the functions BLOCK tree.
15031
2724573f
RB
150322013-01-14 Richard Biener <rguenther@suse.de>
15033
15034 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
15035 PHI argument.
15036 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
15037 unshare reference.
15038 (insert_out_of_ssa_copy_on_edge): Likewise.
15039 (rewrite_close_phi_out_of_ssa): Likewise.
15040 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
15041 debug expressions.
15042 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
15043 propagated constants.
15044 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
15045 can not be shared.
15046
9a0bbab6
GJL
150472013-01-14 Georg-Johann Lay <avr@gjlay.de>
15048
15049 * config/avr/avr-modes.def: Add GPL copyright notice.
15050
45805f17
UB
150512013-01-13 Uros Bizjak <ubizjak@gmail.com>
15052
15053 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
15054 MEMMODEL_MASK to determine memory model.
15055 (atomic_store<mode>): Ditto from operands[2].
15056 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
15057
9d60be38
JJ
150582013-01-13 Jakub Jelinek <jakub@redhat.com>
15059
15060 PR fortran/55935
45805f17 15061 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
15062 (fold_gimple_assign): Don't call unshare_expr here.
15063 (fold_ctor_reference): Call unshare_expr.
15064
e7f49d92
TG
150652013-01-13 Terry Guo <terry.guo@arm.com>
15066
aaf1e810
EB
15067 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
15068 * doc/fragments.texi: Document MULTILIB_REUSE.
15069 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 15070 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 15071 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
15072 (tmpmultilib4): Ditto.
15073 (multilib_reuse): New multilib argument.
15074
fbd03a27
RS
150752013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
15076
15077 * Makefile.in: Update copyright.
15078
b3681f13
TV
150792013-01-12 Tom de Vries <tom@codesourcery.com>
15080
15081 PR middle-end/55890
15082 * calls.c (expand_call): Check if arg_nr is valid.
15083
3f287e4b
MM
150842013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
15085
15086 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
15087 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
15088 documentation. Add missing '__' in front of
15089 __builtin_ia32_packssdw256.
3f287e4b 15090
1abcd5eb
AK
150912013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15092
15093 PR target/55719
15094 * config/s390/s390.c (s390_preferred_reload_class): Do not return
15095 NO_REGS for larl operands.
15096 (s390_reload_larl_operand): Use s390_load_address instead of
15097 emit_move_insn.
15098
980d0812
RB
150992013-01-11 Richard Biener <rguenther@suse.de>
15100
15101 * tree-cfg.c (verify_node_sharing_1): Split out from ...
15102 (verify_node_sharing): ... here.
15103 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
15104
7cb9fd07
EB
151052013-01-11 Eric Botcazou <ebotcazou@adacore.com>
15106
15107 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
15108 Substitute TREECHECKING.
15109 * configure: Regenerate.
15110 * Makefile.in (TREECHECKING): New.
15111
47876a2a 151122013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
15113
15114 PR tree-optimization/44061
15115 * tree-vrp.c (extract_range_basic): Compute zero as
15116 value-range for __builtin_constant_p of function parameters.
15117
d1e082c2
RS
151182013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
15119
45805f17 15120 Update copyright years.
d1e082c2 15121
f85021b0
VM
151222013-01-10 Vladimir Makarov <vmakarov@redhat.com>
15123
9d60be38 15124 PR rtl-optimization/55672
0160442c
VM
15125 * lra-eliminations.c (mark_not_eliminable): Permit addition with
15126 const to be eliminable.
f85021b0 15127
7a8b1ec4
DE
151282013-01-10 David Edelsohn <dje.gcc@gmail.com>
15129
15130 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
15131 * configure: Regenerate.
15132
ad2e5b71
RB
151332013-01-10 Richard Biener <rguenther@suse.de>
15134
ddf9322d 15135 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 15136
ffc5b2bb
RB
151372013-01-10 Richard Biener <rguenther@suse.de>
15138
15139 PR bootstrap/55792
15140 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
15141 locations for virtual PHI arguments.
15142 (rewrite_update_phi_arguments): Likewise.
15143
e1f674e4
JS
151442013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
15145
15146 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
15147 on to assembler.
15148
a57fc743
JJ
151492013-01-10 Jakub Jelinek <jakub@redhat.com>
15150
15151 PR tree-optimization/55921
15152 * tree-complex.c (expand_complex_asm): New function.
15153 (expand_complex_operations_1): Call it for GIMPLE_ASM.
15154
0ff4390d
AK
151552013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15156
15157 PR target/55718
15158 * config/s390/s390.c (s390_symref_operand_p)
15159 (s390_loadrelative_operand_p): Merge the two functions.
15160 (s390_check_qrst_address, print_operand_address): Add parameters
15161 to s390_loadrelative_operand_p invokation.
15162 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
15163 (s390_reload_larl_operand, s390_secondary_reload): Use
15164 s390_loadrelative_operand_p instead of s390_symref_operand_p.
15165 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
15166
6f557e0e
MS
151672013-01-09 Mike Stump <mikestump@comcast.net>
15168
15169 * dse.c (record_store): Remove unnecessary assert.
15170
7770c9e9
JH
151712013-01-09 Jan Hubicka <jh@suse.cz>
15172
15173 PR tree-optimization/55569
15174 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
15175 * cfgloop.h (scale_loop_profile): Likewise.
15176
a19b1432
JH
151772013-01-09 Jan Hubicka <jh@suse.cz>
15178
15179 PR lto/45375
ddf9322d
UB
15180 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
15181 functions.
a19b1432
JH
15182 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
15183
9a002da8
RS
151842013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
15185
15186 PR middle-end/55114
15187 * expr.h (maybe_emit_group_store): Declare.
15188 * expr.c (maybe_emit_group_store): New function.
15189 * builtins.c (expand_builtin_int_roundingfn): Call it.
15190 (expand_builtin_int_roundingfn_2): Likewise.
15191
511dcace
VM
151922013-01-09 Vladimir Makarov <vmakarov@redhat.com>
15193
e1f2b729 15194 PR rtl-optimization/55829
511dcace
VM
15195 * lra-constraints.c (match_reload): Add code for absent output.
15196 (curr_insn_transform): Add code for reloads of matched inputs
15197 without output.
15198
7b0fe4f4
UB
151992013-01-09 Uros Bizjak <ubizjak@gmail.com>
15200
15201 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
15202 attribute of movddup insn to DF.
15203 (*vec_interleave_lowv2df): Ditto.
15204 (vec_dupv2df): Ditto.
15205
870ca331
JH
152062013-01-09 Jan Hubicka <jh@suse.cz>
15207
15208 PR tree-optimiation/55875
15209 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
15210 EVERY_ITERATION parameter.
7b0fe4f4 15211 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
15212 (idx_infer_loop_bounds): Similarly here.
15213 (n_of_executions_at_most): Simplify
15214 to only test for cases where statement is dominated by the
7b0fe4f4 15215 particular bound; handle correctly the "postdominance" test.
870ca331
JH
15216 (scev_probably_wraps_p): Use max loop iterations info
15217 as a global bound first.
15218
6f575fe4 152192013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
15220 Nick Clifton <nickc@redhat.com>
15221
15222 * config/v850/v850.md (cbranchsf4): New pattern.
15223 (cstoresf4): New pattern.
15224 (cbranchdf4): New pattern.
15225 (cstoredf4): New pattern.
15226 (movsicc): Disallow floating point comparisons.
15227 (cmpsf_le_insn): Fix order of operators.
15228 (cmpsf_lt_insn): Likewise.
15229 (cmpsf_eq_insn): Likewise.
15230 (cmpdf_le_insn): Likewise.
15231 (cmpdf_lt_insn): Likewise.
15232 (cmpdf_eq_insn): Likewise.
15233 (cmpsf_ge_insn): Use LE comparison.
15234 (cmpdf_ge_insn): Likewise.
15235 (cmpsf_gt_insn): Use LT comparison.
15236 (cmpdf_gt_insn): Likewise.
15237 (cmpsf_ne_insn): Delete pattern.
15238 (cmpdf_ne_insn): Delete pattern.
15239 * config/v850/v850.c (v850_gen_float_compare): Use
15240 gen_cmpdf_eq_insn for NE comparison.
15241 (v850_float_z_comparison_operator)
15242 (v850_float_nz_comparison_operator): Move from here ...
15243 * config/v850/predicates.md: ... to here. Move GT and GE
15244 comparisons into v850_float_z_comparison_operator.
15245 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
15246 Delete prototype.
15247 (v850_float_nz_comparison_operator): Likewise.
15248
f0d54148
JDA
152492013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15250
15251 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
15252 with calls to gen_insvsi/gen_insvdi.
15253
8f01beca
VK
152542013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
15255
15256 * config/i386/i386.c (initial_ix86_tune_features): Set up
15257 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
15258
2aa579ad
JJ
152592013-01-09 Steven Bosscher <steven@gcc.gnu.org>
15260 Jakub Jelinek <jakub@redhat.com>
15261
15262 PR tree-optimization/48189
15263 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
15264 If nitercst is 0, don't predict the exit edge.
15265
6edc3e32 152662013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
15267
15268 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
15269 in asm_fprintf with reg_names.
15270 (aarch64_print_operand_address): Likewise.
15271 (aarch64_return_addr): Likewise.
15272 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
15273
f6f94d94
JDA
152742013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15275
15276 * config/pa/pa.h (VAL_U6_BITS_P): Define.
15277 (INT_U6_BITS): Likewise.
15278 * config/pa/predicates.md (uint6_operand): New predicate.
15279 (shift5_operand, shift6_operand): Likewise.
15280 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
15281 arith32_operand.
15282 (lshrdi3): Use shift6_operand.
15283 (shrpsi4, shrpdi4): New insn patterns.
15284 (extzv): Delete expander.
15285 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
15286 predicates in unamed zero extract patterns. Tighten common constraint.
15287 (extv): Delete expander.
15288 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
15289 predicates in unamed sign extract patterns. Tighten common constraint.
15290 (insv): Delete expander.
15291 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
15292 predicates in unamed insert patterns. Tighten common constraint.
15293 Change uint32_operand predicate to uint6_operand predicate in unamed
15294 DImode pattern to insert constant values of type 1...1xxxx.
15295
36b72910
JH
152962013-01-04 Jan Hubicka <jh@suse.cz>
15297
15298 PR tree-optimization/55823
7b0fe4f4
UB
15299 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
15300 issue.
36b72910 15301
47876a2a 153022013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
15303 Uros Bizjak <ubizjak@gmail.com>
15304
15305 PR rtl-optimization/55845
15306 * df-problems.c (can_move_insns_across): Stop scanning at
15307 volatile_insn_p source instruction or give up if
15308 across_from .. across_to range contains any volatile_insn_p
15309 instructions.
15310
4369c11e
TB
153112013-01-08 Tejas Belagod <tejas.belagod@arm.com>
15312
7b0fe4f4
UB
15313 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
15314 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
15315 Declare.
4369c11e 15316 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 15317 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 15318
aeb7e7c1
JJ
153192013-01-08 Jakub Jelinek <jakub@redhat.com>
15320
15321 PR fortran/55341
15322 * asan.c (asan_clear_shadow): New function.
15323 (asan_emit_stack_protection): Use it.
15324
a02ad1aa
TB
153252013-01-08 Tejas Belagod <tejas.belagod@arm.com>
15326
15327 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
15328 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
15329 with tab instead of space.
15330
f90d87f5
NC
153312013-01-08 Nick Clifton <nickc@redhat.com>
15332
15333 * config/rl78/rl78.c (rl78_expand_prologue): Always select
15334 register bank 0 at the start of an interrupt handler.
83ffd964
NC
15335 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
15336 MDBH registers.
f90d87f5 15337
385eb93d
JG
153382013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
15339
15340 * config/aarch64/aarch64-simd.md
15341 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
15342 (aarch64_simd_bsl): Likewise.
15343 (aarch64_vcond_internal<mode>): Likewise.
15344 (vcond<mode><mode>): Likewise.
15345 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
15346 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
15347
4dcd1054
JG
153482013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
15349
15350 * config/aarch64/aarch64-builtins.c
15351 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
15352
4267a4a6
MJ
153532013-01-08 Martin Jambor <mjambor@suse.cz>
15354
15355 PR debug/55579
15356 * tree-sra.c (analyze_access_subtree): Return true also after
15357 potentially creating a debug-only replacement.
15358
5f4e6de3
JJ
153592013-01-08 Jakub Jelinek <jakub@redhat.com>
15360
3138f224
JJ
15361 PR middle-end/55890
15362 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
15363
5f4e6de3
JJ
15364 PR tree-optimization/54120
15365 * tree-vrp.c (range_fits_type_p): Don't allow
15366 src_precision < precision from signed vr to unsigned_p
15367 if vr->min or vr->max is negative.
15368 (simplify_float_conversion_using_ranges): Test can_float_p
15369 against CODE_FOR_nothing.
15370
f3ef18ff
JJ
153712013-01-08 Jakub Jelinek <jakub@redhat.com>
15372 Richard Biener <rguenther@suse.de>
15373
15374 PR middle-end/55851
15375 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
15376 types instead of just INTEGER_TYPE types.
15377
25c210f9
MK
153782013-01-07 Mark Kettenis <kettenis@openbsd.org>
15379
15380 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
15381 TF_SIZE): Define.
f90d87f5 15382
81826a7b
SE
153832013-01-07 Steve Ellcey <sellcey@mips.com>
15384
15385 PR target/42661
15386 * config/mips/mips.opt: Change mad to mmad to match documentation.
15387
35678514
GJL
153882013-01-07 Georg-Johann Lay <avr@gjlay.de>
15389
15390 PR target/55897
15391 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
15392 .progmemx.data now.
15393
e5669488
GJL
153942013-01-07 Georg-Johann Lay <avr@gjlay.de>
15395
15396 PR target/55897
15397 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
15398 (avr_addrspace_t): Add .section_name field.
15399 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
15400 array size.
15401 (avr_addrspace): Same. Initialize .section_name. Remove last
15402 NULL entry. Put __memx into .progmemx.data.
15403 (progmem_section_prefix): Remove.
15404 (avr_asm_init_sections): No need to initialize progmem_section.
15405 (avr_asm_named_section): Use avr_addrspace[].section_name to get
15406 section name prefix.
15407 (avr_asm_select_section): Ditto. And use get_unnamed_section to
15408 retrieve the progmem section.
15409 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
15410 boundary to run over avr_addrspace[].
15411 (avr_register_target_pragmas): Ditto.
15412
656e6f37
JJ
154132013-01-06 Jakub Jelinek <jakub@redhat.com>
15414
15415 * varasm.c (output_constant_def_contents): For asan_protect_global
15416 protected strings, adjust DECL_ALIGN if needed, before testing for
15417 anchored symbols.
15418 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
15419 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
15420 normal decls.
15421 (output_object_block): For asan protected decls, emit asan padding
15422 after their contents.
15423 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
15424 (asan_finish_file): Test it here instead.
15425
6edc3e32
UB
154262013-01-07 Nick Clifton <nickc@redhat.com>
15427 Matthias Klose <doko@debian.org>
15428 Doug Kwan <dougkwan@google.com>
15429 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
15430
15431 PR driver/55470
15432 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
15433
15434 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
15435
15436 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
15437
7b0fe4f4 15438 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
15439
15440 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
15441
2a095093
GJL
154422013-01-07 Georg-Johann Lay <avr@gjlay.de>
15443
f3b503f4 15444 PR target/54461
2a095093
GJL
15445 * doc/install.texi (Cross-Compiler-Specific Options): Document
15446 --with-avrlibc.
15447
383f9b34
TB
154482013-01-07 Tejas Belagod <tejas.belagod@arm.com>
15449
15450 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
15451 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
15452 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
15453 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
15454 vqmovun_high_s64): Fix source operand number and update copyright.
15455
3626621a
RB
154562013-01-07 Richard Biener <rguenther@suse.de>
15457
15458 PR middle-end/55890
15459 * gimple.h (gimple_call_builtin_p): New overload.
15460 * gimple.c (validate_call): New function.
15461 (gimple_call_builtin_p): Likewise.
15462 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15463 Use gimple_call_builtin_p.
15464 (find_func_clobbers): Likewise.
15465 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
15466 (strlen_optimize_stmt): Likewise.
15467
8b2ea410
JG
154682013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15469
15470 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
15471 (vld1q_dup_*): Likewise.
15472 (vld1_*): Likewise.
15473 (vld1q_*): Likewise.
15474 (vld1_lane_*): Likewise.
15475 (vld1q_lane_*): Likewise.
15476
9713d329
RB
154772013-01-07 Richard Biener <rguenther@suse.de>
15478
15479 * lto-streamer.h (LTO_minor_version): Bump to 2.
15480
3520f7cc
JG
154812013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
15482
15483 * config/aarch64/aarch64-protos.h
15484 (aarch64_const_double_zero_rtx_p): Rename to...
15485 (aarch64_float_const_zero_rtx_p): ...this.
15486 (aarch64_float_const_representable_p): New.
15487 (aarch64_output_simd_mov_immediate): Likewise.
15488 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
15489 move immediate case.
15490 * config/aarch64/aarch64.c
15491 (aarch64_const_double_zero_rtx_p): Rename to...
15492 (aarch64_float_const_zero_rtx_p): ...this.
15493 (aarch64_print_operand): Allow printing of new constants.
15494 (aarch64_valid_floating_const): New.
15495 (aarch64_legitimate_constant_p): Check for valid floating-point
15496 constants.
15497 (aarch64_simd_valid_immediate): Likewise.
15498 (aarch64_vect_float_const_representable_p): New.
15499 (aarch64_float_const_representable_p): Likewise.
15500 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
15501 (aarch64_output_simd_mov_immediate): New.
15502 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
15503 (*movdf_aarch64): Likewise.
15504 * config/aarch64/constraints.md (Ufc): New.
15505 (Y): call aarch64_float_const_zero_rtx.
15506 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
15507
e167c04d
RB
155082013-01-07 Richard Biener <rguenther@suse.de>
15509
15510 PR tree-optimization/55888
15511 PR tree-optimization/55862
15512 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
15513 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
15514 not if it is contained therein.
15515
0139aaab
GJL
155162013-01-07 Georg-Johann Lay <avr@gjlay.de>
15517
15518 * config/avr/t-avr: Typo.
15519
4a176b23
GJL
155202013-01-07 Georg-Johann Lay <avr@gjlay.de>
15521
15522 PR55243
15523 * config/avr/t-avr: Don't automatically rebuild
15524 $(srcdir)/config/avr/t-multilib
15525 $(srcdir)/config/avr/avr-tables.opt
15526 $(srcdir)/doc/avr-mmcu.texi
15527 (avr-mcus): New phony target to build them on request.
15528 (s-avr-mlib, s-avr-mmcu-texi): Remove.
15529 * avr/avr-mcus.def: Adjust comments.
15530
c7afdc98
UB
155312013-01-07 Uros Bizjak <ubizjak@gmail.com>
15532
15533 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
15534
1ab05c31
RS
155352013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15536
15537 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
15538
488e3acc
RS
155392013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
15540
15541 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
15542
a89599d2
DE
155432013-01-05 David Edelsohn <dje.gcc@gmail.com>
15544
15545 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
15546 to generate profiling.
15547 * config/rs6000/aix64.h (LIB_SPEC): Same.
15548
70f09188
AP
155492013-01-04 Andrew Pinski <apinski@cavium.com>
15550
15551 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
15552 New function.
15553 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
15554
918d445f
UB
155552013-01-04 Uros Bizjak <ubizjak@gmail.com>
15556
15557 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
15558 unconditionally.
15559 (ix86_expand_move): Ditto.
15560 (ix86_zero_extend_to_Pmode): Ditto.
15561 (ix86_expand_call): Ditto.
15562 (ix86_expand_special_args_builtin): Ditto.
15563 (ix86_expand_builtin): Ditto.
15564
361618ec
RB
155652013-01-04 Richard Biener <rguenther@suse.de>
15566
15567 PR tree-optimization/55862
15568 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
15569 translating them through PHI nodes.
15570
87eab554
MJ
155712013-01-04 Martin Jambor <mjambor@suse.cz>
15572
15573 PR tree-optimization/55755
15574 * tree-sra.c (sra_modify_assign): Do not check that an access has no
15575 children when trying to avoid producing a VIEW_CONVERT_EXPR.
15576
33879b9f
MP
155772013-01-04 Marek Polacek <polacek@redhat.com>
15578
15579 PR middle-end/55859
15580 * opts.c (default_options_optimization): Clarify error message.
15581
3068819a
RB
155822013-01-04 Richard Biener <rguenther@suse.de>
15583
15584 PR middle-end/55863
15585 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
15586 reassociation.
15587
0e4ae794
JDA
155882013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15589
15590 PR target/53789
15591 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
15592 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
15593 references.
0e4ae794 15594
65c88cef
RH
155952013-01-03 Richard Henderson <rth@redhat.com>
15596
15597 * config/i386/i386.c (ix86_expand_move): Always assign to op1
15598 after eliminating TLS symbols.
15599
8ac16127
MG
156002013-01-03 Marc Glisse <marc.glisse@inria.fr>
15601
15602 PR bootstrap/50167
15603 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
15604 * graphite-poly.c (debug_gmp_value): Likewise.
15605
bb664f09
UB
156062013-01-03 Uros Bizjak <ubizjak@gmail.com>
15607
15608 PR target/55712
15609 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
15610 selected code model, define __code_mode_small__, __code_model_medium__,
15611 __code_model_large__, __code_model_32__ or __code_model_kernel__.
15612 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
15613 xchg temporary register with %k. Declare temporary register as
15614 early clobbered.
15615 [__x86_64__]: For medium and large code models, preserve %rbx register.
15616
bcf1ef00
RB
156172013-01-03 Richard Biener <rguenther@suse.de>
15618
0506634a 15619 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
15620 (dump_subscript): Adjust.
15621 (finalize_ddr_dependent): Do not dump redundant info.
15622 (analyze_siv_subscript): Adjust.
15623 (subscript_dependence_tester): Likewise.
15624 (compute_affine_dependence): Likewise.
15625
59fd17e3
RB
156262013-01-03 Richard Biener <rguenther@suse.de>
15627
15628 Revert
15629 2013-01-03 Richard Biener <rguenther@suse.de>
15630
15631 PR tree-optimization/55857
15632 * tree-vect-stmts.c (vectorizable_load): Do not setup
15633 re-alignment for invariant loads.
15634
15635 2013-01-02 Richard Biener <rguenther@suse.de>
15636
15637 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 15638 invariant load do not generate a vector load from the scalar location.
59fd17e3 15639
595c2679
RB
156402013-01-03 Richard Biener <rguenther@suse.de>
15641
15642 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
15643 for not vectorizing.
15644 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
15645 not build INDIRECT_REFs, call get_name once only.
15646 (vect_create_data_ref_ptr): Likewise. Dump base object kind
15647 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
15648
90bb7d7a
RB
156492013-01-03 Richard Biener <rguenther@suse.de>
15650
15651 PR tree-optimization/55857
15652 * tree-vect-stmts.c (vectorizable_load): Do not setup
15653 re-alignment for invariant loads.
15654
f09b77ca
RB
156552013-01-03 Richard Biener <rguenther@suse.de>
15656
15657 PR lto/55848
15658 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
15659 prefer a built-in decl.
15660
3461a16e
JJ
156612013-01-03 Jakub Jelinek <jakub@redhat.com>
15662
df8e2b4f
JJ
15663 * gcc.c (process_command): Update copyright notice dates.
15664 * gcov.c (print_version): Likewise.
15665 * gcov-dump.c (print_version): Likewise.
15666
3461a16e
JJ
15667 PR rtl-optimization/55838
15668 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
15669 iv0.step, iv1.step and step.
15670
8b5546d6
JJ
156712013-01-03 Jakub Jelinek <jakub@redhat.com>
15672 Marc Glisse <marc.glisse@inria.fr>
15673
15674 PR tree-optimization/55832
15675 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
15676 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
15677 integer_{one,zero}_node.
15678
8ab1d2e9
JJ
156792013-01-03 Jakub Jelinek <jakub@redhat.com>
15680
15681 PR debug/54402
15682 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
15683 * var-tracking.c (reverse_op): Don't add reverse ops to
15684 VALUEs that have already
0506634a 15685 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 15686
5b9ad1d4
GP
156872013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
15688
15689 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
15690
e25a6711
TJ
156912013-01-02 Teresa Johnson <tejohnson@google.com>
15692
15693 * dumpfile.c (dump_loc): Print filename with location.
15694 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
15695 new location_t parameter to emit complete unroll message with
15696 new dump framework.
15697 (canonicalize_loop_induction_variables): Compute loops location
15698 and pass to try_unroll_loop_completely.
15699 * loop-unroll.c (report_unroll_peel): New function.
15700 (peel_loops_completely): Use new dump format with location
15701 for main dumpfile message, and invoke report_unroll_peel on success.
15702 (decide_unrolling_and_peeling): Ditto.
15703 (decide_peel_once_rolling): Remove old dumpfile message subsumed
15704 by report_unroll_peel.
15705 (decide_peel_completely): Ditto.
15706 (decide_unroll_constant_iterations): Ditto.
15707 (decide_unroll_runtime_iterations): Ditto.
15708 (decide_peel_simple): Ditto.
15709 (decide_unroll_stupid): Ditto.
15710 * cfgloop.c (get_loop_location): New function.
15711 * cfgloop.h (get_loop_location): Declare.
15712
77878621
ST
157132013-01-02 Sriraman Tallam <tmsriram@google.com>
15714
15715 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
15716 NULL.
15717
9e65d03e
JDA
157182013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15719
15720 PR middle-end/55198
15721 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
15722 BLKmode objects when EXPAND_MEMORY is specified.
15723
6a7da30f
ST
157242013-01-02 Sriraman Tallam <tmsriram@google.com>
15725
15726 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
15727 in loop predicate.
15728 (fold_builtin_cpu): Do not share cpu model decls across statements.
15729
e78167f2
JM
157302013-01-02 Jason Merrill <jason@redhat.com>
15731
15732 PR c++/55804
15733 * tree.c (build_array_type_1): Revert earlier change.
15734
8c075fb4
YZ
157352013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
15736
15737 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
15738 "cortex-a57".
15739 * config/aarch64/aarch64-tune.md: Re-generate.
15740
0682ed3e
RB
157412013-01-02 Richard Biener <rguenther@suse.de>
15742
15743 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 15744 invariant load do not generate a vector load from the scalar location.
0682ed3e 15745
b8f6a302
RB
157462013-01-02 Richard Biener <rguenther@suse.de>
15747
15748 PR bootstrap/55784
15749 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
15750 * configure: Regenerate.
15751
04b80dbb
RS
157522013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15753
15754 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
15755 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
15756 (expand_builtin_int_roundingfn_2): Keep the original target around
15757 for the fallback case.
15758
635b0b0c
RS
157592013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
15760
15761 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
15762 to be clear for sign changes.
15763
42d57399
JH
157642013-01-01 Jan Hubicka <jh@suse.cz>
15765
15766 * ipa-inline-analysis.c: Fix formatting.
15767
5bb6669d
JJ
157682013-01-01 Jakub Jelinek <jakub@redhat.com>
15769
15770 PR tree-optimization/55831
15771 * tree-vect-loop.c (get_initial_def_for_induction): Use
15772 gsi_after_labels instead of gsi_start_bb.
ad41bd84 15773\f
86a2db33 15774Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
15775
15776Copying and distribution of this file, with or without modification,
15777are permitted in any medium without royalty provided the copyright
15778notice and this notice are preserved.