]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
aot-compile.in: Fix typo in option list.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
79ee9826
MJ
12013-06-27 Martin Jambor <mjambor@suse.cz>
2
3 PR lto/57208
4 * ipa-ref.h (ipa_maybe_record_reference): Declare.
5 * ipa-ref.c (ipa_maybe_record_reference): New function.
6 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
7 * ipa-cp.c (create_specialized_node): Record potential references from
8 aggvals.
9 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
10
e18b4a81
YZ
112013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
12
13 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
14 parameter 'mode' of type 'enum machine_mode mode'; change to pass
15 'mode' to force_reg.
16 (aarch64_add_offset): Update calls to aarch64_force_temporary.
17 (aarch64_expand_mov_immediate): Likewise.
18
9c023bf0
YZ
192013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
20
21 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
22 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
23
5a3fe9b6
AK
242013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25
26 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
27 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
28 (struct machine_function): Add tbegin_p.
29 (s390_canonicalize_comparison): Fold CC mode compares to
30 conditional jump if possible.
31 (s390_emit_jump): Return the emitted jump.
32 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
33 Handle CCRAWmode compares.
34 (s390_option_override): Default to -mhtm if available.
35 (s390_reg_clobbered_rtx): Handle floating point regs as well.
36 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
37 FPRs instead of df_regs_ever_live_p.
38 (s390_optimize_nonescaping_tx): New function.
39 (s390_init_frame_layout): Extend clobbered_regs array to cover
40 FPRs as well.
41 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
42 (s390_expand_tbegin): New function.
43 (enum s390_builtin): New enum definition.
44 (code_for_builtin): New array definition.
45 (s390_init_builtins): New function.
46 (s390_expand_builtin): New function.
47 (TARGET_INIT_BUILTINS): Define.
48 (TARGET_EXPAND_BUILTIN): Define.
49 * common/config/s390/s390-common.c (processor_flags_table): Add
50 PF_TX.
51 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
52 (s390_alc_comparison): Likewise.
53 * config/s390/s390-modes.def: Add CCRAWmode.
54 * config/s390/s390.h (processor_flags): Add PF_TX.
55 (TARGET_CPU_HTM): Define macro.
56 (TARGET_HTM): Define macro.
57 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
58 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
59 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
60 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
61 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
62 values.
63 (TBEGIN_MASK, TBEGINC_MASK): New constants.
64 ("*cc_to_int"): Move up.
65 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
66 constants other than 0.
67 ("*ccraw_to_int"): New insn and splitter definition.
68 ("tbegin", "tbegin_nofloat", "tbegin_retry")
69 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
70 ("tx_assist"): New expander.
71 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
72 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
73 * config/s390/s390.opt: Add -mhtm option.
74 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
75 * config/s390/htmxlintrin.h: New file.
76 * config/s390/htmintrin.h: New file.
77 * config/s390/s390intrin.h: New file.
78 * doc/extend.texi: Document htm builtins.
79 * config.gcc: Add the new header files to extra_headers.
80
9e216629
TS
812013-06-26 Thomas Schwinge <thomas@codesourcery.com>
82
83 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
84 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET):
85 Undefine.
86
fd8c65e7
MM
872013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
88 Pat Haugen <pthaugen@us.ibm.com>
89 Peter Bergner <bergner@vnet.ibm.com>
90
91 * config/rs6000/power8.md: New.
92 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
93 setting for power8 entry.
94 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
95 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
96 test for Power4/Power5 only.
97 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
98 support.
99 (force_new_group): Adjust comment.
100 * config/rs6000/rs6000.md: Include power8.md.
101
b24a2ce5
GY
1022013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
103
104 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
105 * config/arm/arm-protos.h (arm_max_conditional_execute): New
106 declaration.
107 (tune_params): Update comment.
108 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
109 (arm_max_conditional_execute): New function.
110 (thumb2_final_prescan_insn): Use max_insn_skipped and
111 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
112
f6fdeb62
JJ
1132013-06-25 Jakub Jelinek <jakub@redhat.com>
114
115 PR tree-optimization/57705
116 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
117 SSA_NAME step, provided that it is not defined inside the loop.
118 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested
119 loop.
120 (get_initial_def_for_induction): Handle SSA_NAME IV step.
121
c13bc3d9
MJ
1222013-06-25 Martin Jambor <mjambor@suse.cz>
123
124 PR middle-end/57670
125 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
126 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
127 calls in the dump.
128 (ipa_note_param_call): Initialize member_ptr flag.
129 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
130 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
131 (ipa_write_indirect_edge_info): Stream member_ptr flag.
132 (ipa_read_indirect_edge_info): Likewise.
133
8a845901
RB
1342013-06-25 Richard Biener <rguenther@suse.de>
135
136 PR middle-end/56977
137 * passes.c (init_optimization_passes): Move pass_fold_builtins
138 and pass_dce earlier with -Og.
139
33be0bec
EB
1402013-06-25 Eric Botcazou <ebotcazou@adacore.com>
141
142 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
143 <BIT_FIELD_REF>: Remove trailing TAB.
144 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
145 remove blank line.
146
5fe8e757
MJ
1472013-06-24 Martin Jambor <mjambor@suse.cz>
148
149 PR tree-optimization/57358
150 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
151 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
152 (ipa_analyze_params_uses): Generate pessimistic info when true.
153
44a60244
MJ
1542013-06-24 Martin Jambor <mjambor@suse.cz>
155
156 PR tree-optimization/57539
157 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
158 global.inlined_to of the new node to it. All callers changed.
159 * ipa-inline-transform.c (clone_inlined_nodes): New variable
160 inlining_into, pass it to cgraph_clone_node.
161 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
162 ipa_free_edge_args_substructures.
163 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
164 rdesc linked list. Do not assert rdesc edges have inlined caller.
165 Assert we have found an rdesc in the rdesc list.
166
7c5848b8
RB
1672013-06-24 Richard Biener <rguenther@suse.de>
168
169 * pointer-set.h (struct pointer_set_t): Move here from
170 pointer-set.c.
171 (pointer_set_lookup): Declare.
172 (class pointer_map): New template class implementing a
173 generic pointer to T map.
174 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
175 pointer_map<T>::contains, pointer_map<T>::insert,
176 pointer_map<T>::traverse): New functions.
177 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
178 (pointer_set_lookup): New function.
179 (pointer_set_contains): Use pointer_set_lookup.
180 (pointer_set_insert): Likewise.
181 (insert_aux): Remove.
182 (struct pointer_map_t): Embed a pointer_set_t.
183 (pointer_map_create): Adjust.
184 (pointer_map_destroy): Likewise.
185 (pointer_map_contains): Likewise.
186 (pointer_map_insert): Likewise.
187 (pointer_map_traverse): Likewise.
188 * tree-streamer.h (struct streamer_tree_cache_d): Use a
189 pointer_map<unsigned> instead of a pointer_map_t.
190 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
191 (streamer_tree_cache_lookup): Likewise.
192 (streamer_tree_cache_create): Likewise.
193 (streamer_tree_cache_delete): Likewise.
194 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
195 pointer_map<unsigned> instead of a pointer_map_t.
196 (lto_init_tree_ref_encoder): Adjust.
197 (lto_destroy_tree_ref_encoder): Likewise.
198 * lto-section-out.c (lto_output_decl_index): Likewise.
199 (lto_record_function_out_decl_state): Likewise.
200 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
201
3dbc97a9
RB
2022013-06-24 Richard Biener <rguenther@suse.de>
203
204 PR tree-optimization/57488
205 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
206
8345965a
AM
2072013-06-24 Alan Modra <amodra@gmail.com>
208
209 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
210 (gen_easy_altivec_constant): Likewise.
211 * config/rs6000/predicates.md (easy_vector_constant_add_self,
212 easy_vector_constant_msb): Likewise.
213
b7df379f
JJ
2142013-06-23 Jakub Jelinek <jakub@redhat.com>
215
216 PR target/57688
217 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
218 add missing return true.
219
0bcf9a09
OE
2202013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
221
222 PR target/52483
223 * config/sh/predicates.md (general_extend_operand): Invoke
224 general_movsrc_operand for memory operands.
225 (general_movsrc_operand): Allow reg+reg addressing, do not use
226 general_operand for memory operands.
227
97db2bf7
ST
2282013-06-23 Sriraman Tallam <tmsriram@google.com>
229
230 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
231 when current target options does not apply.
232 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
233 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
234 * config/i386/bmiintrin.h: Pass appropriate target attributes to header.
235 * config/i386/mmintrin.h: Ditto.
236 * config/i386/nmmintrin.h: Ditto.
237 * config/i386/avx2intrin.h: Ditto.
238 * config/i386/fxsrintrin.h: Ditto.
239 * config/i386/tbmintrin.h: Ditto.
240 * config/i386/xsaveintrin.h: Ditto.
241 * config/i386/f16cintrin.h: Ditto.
242 * config/i386/xtestintrin.h: Ditto.
243 * config/i386/xsaveoptintrin.h: Ditto.
244 * config/i386/bmi2intrin.h: Ditto.
245 * config/i386/lzcntintrin.h: Ditto.
246 * config/i386/smmintrin.h: Ditto.
247 * config/i386/wmmintrin.h: Ditto.
248 * config/i386/x86intrin.h: Remove all header include guards.
249 * config/i386/prfchwintrin.h: Ditto.
250 * config/i386/pmmintrin.h: Ditto.
251 * config/i386/tmmintrin.h: Ditto.
252 * config/i386/xmmintrin.h: Ditto.
253 * config/i386/popcntintrin.h: Ditto.
254 * config/i386/rdseedintrin.h: Ditto.
255 * config/i386/ammintrin.h: Ditto.
256 * config/i386/emmintrin.h: Ditto.
257 * config/i386/immintrin.h: Remove all header include guards.
258 * config/i386/fma4intrin.h: Ditto.
259 * config/i386/lwpintrin.h: Ditto.
260 * config/i386/xopintrin.h: Ditto.
261 * config/i386/ia32intrin.h: Ditto.
262 * config/i386/avxintrin.h: Ditto.
263 * config/i386/rtmintrin.h: Ditto.
264 * config/i386/fmaintrin.h: Ditto.
265 * config/i386/mm3dnow.h: Ditto.
266
495e6879
ST
2672013-06-22 Sriraman Tallam <tmsriram@google.com>
268
269 * common/config/i386/i386-common.c: Handle LZCNT.
270
11e8f687
AK
2712013-06-22 Andi Kleen <ak@linux.intel.com>
272
273 * doc/extend.texi: Use __atomic_store_n instead of
274 __atomic_store in HLE example.
275
664dd721
OE
2762013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
277
278 * config/sh/sh.c: Remove <cstdlib> workaround.
279
927f908b
AK
2802013-06-21 Andi Kleen <ak@linux.intel.com>
281
282 * doc/extend.texi: Dont use __atomic_clear in HLE
283 example. Fix typo.
284
cca410b6
AK
2852013-06-21 Andi Kleen <ak@linux.intel.com>
286
287 * doc/extend.texi: Document that __atomic_clear and
288 __atomic_test_and_set should only be used with bool.
289
d84db1ed
JH
2902013-06-20 Jan Hubicka <jh@suse.cz>
291
292 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
293 types_same_for_odr.
294 * tree.c (decls_same_for_odr): New function.
295 (same_for_edr): New function.
296 (types_same_for_odr): New function.
297 (get_binfo_at_offset): Use it.
298 * tree.h (types_same_for_odr): Declare.
299
664dd721 3002013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
301 Jason Merrill <jason@redhat.com>
302
303 * system.h: Include <cstdlib> as well as <stdlib.h>.
304
49b4ff63
UB
3052013-06-20 Uros Bizjak <ubizjak@gmail.com>
306
307 PR target/57655
308 * config/i386/i386.c (construct_container): Report error if
309 long double is used with disabled x87 float returns.
310
7a89ad00
JH
3112013-06-20 Jan Hubicka <jh@suse.cz>
312
313 * lto-cgraph.c (input_symtab): Do not set cgraph state.
314
bd280792
JR
3152013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
316
317 PR rtl-optimization/57425
318 PR rtl-optimization/57569
319 * alias.c (write_dependence_p): Remove parameters mem_mode and
320 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
321 Changed all callers.
322 (canon_anti_dependence): Get comments and semantics in sync.
323 Add parameter mem_canonicalized. Changed all callers.
324 * rtl.h (canon_anti_dependence): Update prototype.
325
d16e9a99
RB
3262013-06-20 Richard Biener <rguenther@suse.de>
327
328 * data-streamer-in.c (streamer_read_uhwi): Optimize single
329 byte case, inline streamer_read_uchar and defer section
330 overrun check.
331
c3a9b91b
RB
3322013-06-20 Richard Biener <rguenther@suse.de>
333
334 PR tree-optimization/57584
335 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
336 SSA names into the expanded expression that take part in
337 abnormal coalescing.
338
fc8a650e
SS
3392013-06-19 <singhai@google.com>
340
341 * gcov.c (print_usage): Handle new option.
342 (process_args): Ditto.
343 (get_gcov_intermediate_filename): New function.
344 (output_intermediate_file): New function.
345 (output_gcov_file): New function
346 (generate_results): Handle new option.
347 (release_function): Relase demangled name.
348 (read_graph_file): Handle demangled name.
349 (output_lines): Ditto.
350 * doc/gcov.texi: Document gcov intermediate format.
351
11f5b71a
VM
3522013-06-19 Vladimir Makarov <vmakarov@redhat.com>
353
354 PR bootstrap/57604
355 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
356 (lra_emit_add): Use the functions. Add comment about Y as an
357 address segment.
358
e1f9340b
DE
3592013-06-19 David Edelsohn <dje.gcc@gmail.com>
360
361 PR driver/57652
362 * collect2.c (collect_atexit): New.
363 (collect_exit): Delete.
364 (main): Register collect_atexit with atexit.
365 (collect_wait): Change collect_exit to exit.
366 (do_wait): Same.
367 * collect2.h (collect_exit): Delete.
368 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
369
e3f9e0ac
WM
3702013-06-19 Wei Mi <wmi@google.com>
371
372 PR rtl-optimization/57518
373 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
374 if regno is used in paradoxical subreg.
375 (update_equiv_regs): Check pdx_subregs[regno] before
376 set a reg to be equivalent with a mem.
377
a09f1a76
MK
3782013-06-19 Matthias Klose <doko@ubuntu.com>
379
380 PR driver/57651
381 * file-find.h (find_a_file): Add a mode parameter.
382 * file-find.c (find_a_file): Likewise.
383 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
384 with X_OK for the executables.
385 * collect2.c (main): Call find_a_file with X_OK.
386
7d18b0ad
SE
3872013-06-19 Steve Ellcey <sellcey@mips.com>
388
389 PR target/56942
390 * config/mips/mips.md (casesi_internal_mips16_<mode>):
391 Use NEXT_INSN instead of next_real_insn.
392
6a6dac52
JH
3932013-06-19 Jan Hubicka <jh@suse.cz>
394
395 * cgraph.h (const_value_known_p): Replace by ...
396 (ctor_for_folding): .. this one.
397 * cgraphunit.c (process_function_and_variable_attributes): Use it.
398 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
399 * expr.c (expand_expr_real_1): Likewise.
400 (string_constant): Likewise.
401 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
402 * ipa.c (process_references): Likewise.
403 (symtab_remove_unreachable_nodes): Likewise.
404 * ipa-inline-analysis.c (param_change_prob): Likewise.
405 * gimple-fold.c (canonicalize_constructor_val): Likewise.
406 (get_base_constructor): Likwise.
407 * varpool.c (varpool_remove_node): Likewise.
408 (varpool_remove_initializer): LIkewise.
409 (dump_varpool_node): LIkwise.
410 (const_value_known_p): Rewrite to ...
411 (ctor_for_folding): ... this one.
412
216c12ab
JJ
4132013-06-19 Jakub Jelinek <jakub@redhat.com>
414
415 PR driver/57651
416 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
417 PERSONALITY in $PATH derived prefixes.
418
d53e2f99
JL
4192013-06-19 Jeff Law <law@redhat.com>
420
ecdbf306
JL
421 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
422 in comment.
423
d53e2f99
JL
424 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
425 (simplify_bitwise_binary): Use it to simpify certain binary ops on
426 booleans.
427
89e7fc04
SN
4282013-06-19 Sofiane Naci <sofiane.naci@arm.com>
429
430 * config/arm/vfp.md: Move VFP instruction classification documentation
431 to ...
432 * config/arm/arm.md: ... here. Update instruction classification
433 documentation.
434
5e7f6aaa
RE
4352013-06-19 Richard Earnshaw <rearnsha@arm.com>
436
437 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
438 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
439 pattern. Use more efficient sequences on ARMv5 and Thumb2.
440
5fdc1e5d
SB
4412013-06-19 Steven Bosscher <steven@gcc.gnu.org>
442
443 PR target/57609
444 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
445 with NEXT_INSN. Use tablejump_p to check for jump table data
446 insns.
447
e952afba
PC
4482013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
449
450 PR c++/56544
451 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
452 that now in C++ the value is correct per the C++ standards.
453
3fd0303a
RB
4542013-06-19 Richard Biener <rguenther@suse.de>
455
456 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
457 for global context.
458
b04e4b08
AK
4592013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
460
461 Revert:
462 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
463
464 PR target/57609
465 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
466 with next_active_insn.
467
bef8491a
ST
4682013-06-18 Sriraman Tallam <tmsriram@google.com>
469
470 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
471 functions are inlined during failures to flag an error.
472 * tree-inline.c (expand_call_inline): Allow the error to be flagged
473 in early inline pass.
22fc7d3d 474
c21b257d
L
4752013-06-18 H.J. Lu <hongjiu.lu@intel.com>
476
477 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
478 in comments.
479
33255ae3
JB
4802013-06-18 Julian Brown <julian@codesourcery.com>
481
482 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
483 Permit virtual register pre-reload if !strict.
484 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
485 change.
486 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
487 prototype.
488 * config/arm/neon.md (movmisalign<mode>): Use
489 neon_perm_struct_or_reg_operand instead of
490 neon_struct_or_register_operand.
491 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
492 neon_permissive_struct_operand instead of neon_struct_operand.
493 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
494 neon_vector_mem_operand.
495 * config/arm/predicates.md (neon_struct_operand): Adjust call to
496 neon_vector_mem_operand.
497 (neon_permissive_struct_operand): New.
498 (neon_struct_or_register_operand): Rename to...
499 (neon_perm_struct_or_reg_operand): This. Adjust call to
500 neon_vector_mem_operand.
501
d579fcda
RB
5022013-06-18 Richard Biener <rguenther@suse.de>
503
504 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
505 * lto-streamer.h: Include pointer-set.h.
506 (struct lto_decl_slot): Remove.
507 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
508 Remove next_index entry.
509 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
510 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
511 (lto_init_tree_ref_encoder): Adjust.
512 (lto_destroy_tree_ref_encoder): Likewise.
513 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
514 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
515 (lto_output_decl_index): Adjust.
516 (lto_new_out_decl_state): Likewise.
517 (lto_record_function_out_decl_state): Likewise.
518 * lto-streamer-out.c (copy_function): Likewise.
519
31ee20ba
RB
5202013-06-18 Richard Biener <rguenther@suse.de>
521
522 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
523 * cgraphunit.c: Include cfgloop.h.
524 (init_lowered_empty_function): Initialize the loop tree.
525 (assemble_thunk): Insert new BBs into loops.
526
ac0511f2
RB
5272013-06-18 Richard Biener <rguenther@suse.de>
528
529 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
530 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
531 the map from cache entry to cache index optional.
532 (streamer_tree_cache_replace_tree): Adjust accordingly.
533 (streamer_tree_cache_append): Likewise.
534 (streamer_tree_cache_delete): Likewise.
535 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
536 streamer cache map from cache entry to cache index.
537 * lto-streamer-out.c (create_output_block): Adjust.
538
09485a08
SN
5392013-06-18 Sofiane Naci <sofiane.naci@arm.com>
540
22fc7d3d
UB
541 * config/arm/arm.md (attribute "insn"): Move multiplication and
542 division attributes to...
09485a08
SN
543 (attribute "type"): ... here. Remove mult.
544 (attribute "mul32"): New attribute.
545 (attribute "mul64"): Add umaal.
546 (*arm_mulsi3): Update attributes.
547 (*arm_mulsi3_v6): Likewise.
548 (*thumb_mulsi3): Likewise.
549 (*thumb_mulsi3_v6): Likewise.
550 (*mulsi3_compare0): Likewise.
551 (*mulsi3_compare0_v6): Likewise.
552 (*mulsi_compare0_scratch): Likewise.
553 (*mulsi_compare0_scratch_v6): Likewise.
554 (*mulsi3addsi): Likewise.
555 (*mulsi3addsi_v6): Likewise.
556 (*mulsi3addsi_compare0): Likewise.
557 (*mulsi3addsi_compare0_v6): Likewise.
558 (*mulsi3addsi_compare0_scratch): Likewise.
559 (*mulsi3addsi_compare0_scratch_v6): Likewise.
560 (*mulsi3subsi): Likewise.
561 (*mulsidi3adddi): Likewise.
562 (*mulsi3addsi_v6): Likewise.
563 (*mulsidi3adddi_v6): Likewise.
564 (*mulsidi3_nov6): Likewise.
565 (*mulsidi3_v6): Likewise.
566 (*umulsidi3_nov6): Likewise.
567 (*umulsidi3_v6): Likewise.
568 (*umulsidi3adddi): Likewise.
569 (*umulsidi3adddi_v6): Likewise.
570 (*smulsi3_highpart_nov6): Likewise.
571 (*smulsi3_highpart_v6): Likewise.
572 (*umulsi3_highpart_nov6): Likewise.
573 (*umulsi3_highpart_v6): Likewise.
574 (mulhisi3): Likewise.
575 (*mulhisi3tb): Likewise.
576 (*mulhisi3bt): Likewise.
577 (*mulhisi3tt): Likewise.
578 (maddhisi4): Likewise.
579 (*maddhisi4tb): Likewise.
580 (*maddhisi4tt): Likewise.
581 (maddhidi4): Likewise.
582 (*maddhidi4tb): Likewise.
583 (*maddhidi4tt): Likewise.
584 (divsi3): Likewise.
585 (udivsi3): Likewise.
586 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
587 (thumb2_mulsi_short_compare0): Likewise.
588 (thumb2_mulsi_short_compare0_scratch): Likewise.
589 * config/arm/arm1020e.md (1020mult1): Update attribute change.
590 (1020mult2): Likewise.
591 (1020mult3): Likewise.
592 (1020mult4): Likewise.
593 (1020mult5): Likewise.
594 (1020mult6): Likewise.
22fc7d3d
UB
595 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
596 change.
09485a08
SN
597 (cortex_a15_mult64): Likewise.
598 (cortex_a15_sdiv): Likewise.
599 (cortex_a15_udiv): Likewise.
600 * config/arm/arm1026ejs.md (mult1): Update attribute change.
601 (mult2): Likewise.
602 (mult3): Likewise.
603 (mult4): Likewise.
604 (mult5): Likewise.
605 (mult6): Likewise.
606 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
607 (pj4_ir_div): Likewise.
608 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
609 (11_mult2): Likewise.
610 (11_mult3): Likewise.
611 (11_mult4): Likewise.
612 (11_mult5): Likewise.
613 (11_mult6): Likewise.
614 (11_mult7): Likewise.
615 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
616 (cortex_a8_mla): Likewise.
617 (cortex_a8_mull): Likewise.
618 (cortex_a8_smulwy): Likewise.
619 (cortex_a8_smlald): Likewise.
620 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
621 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
622 (cortex_r4_mul_3): Likewise.
623 (cortex_r4_mla_4): Likewise.
624 (cortex_r4_mla_3): Likewise.
625 (cortex_r4_smlald): Likewise.
626 (cortex_r4_mull): Likewise.
627 (cortex_r4_sdiv): Likewise.
628 (cortex_r4_udiv): Likewise.
629 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
630 (cortex_a7_idiv): Likewise.
631 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
632 (9_mult2): Likewise.
633 (9_mult3): Likewise.
634 (9_mult4): Likewise.
635 (9_mult5): Likewise.
636 (9_mult6): Likewise.
637 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
638 (cortex_a53_sdiv): Likewise.
639 (cortex_a53_udiv): Likewise.
640 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
641 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
642 (mp626_mult2): Likewise.
643 (mp626_mult3): Likewise.
644 (mp626_mult4): Likewise.
645 * config/arm/fa526.md (526_mult1): Update attribute change.
646 (526_mult2): Likewise.
647 * config/arm/arm-generic.md (mult): Update attribute change.
648 (mult_ldsched_strongarm): Likewise.
649 (mult_ldsched): Likewise.
650 (multi_cycle): Likewise.
651 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
652 * config/arm/fa606te.md (606te_mult1): Update attribute change.
653 (606te_mult2): Likewise.
654 (606te_mult3): Likewise.
655 (606te_mult4): Likewise.
656 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
657 (cortex_a9_mac16): Likewise.
658 (cortex_a9_multiply): Likewise.
659 (cortex_a9_mac): Likewise.
660 (cortex_a9_multiply_long): Likewise.
661 * config/arm/fa626te.md (626te_mult1): Update attribute change.
662 (626te_mult2): Likewise.
663 (626te_mult3): Likewise.
664 (626te_mult4): Likewise.
665
8951f345
RB
6662013-06-18 Richard Biener <rguenther@suse.de>
667
668 PR lto/57334
669 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
670
d8101d05
AK
6712013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
672
673 PR target/57609
674 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
675 with next_active_insn.
676
69eff9da
AM
6772013-06-18 Alan Modra <amodra@gmail.com>
678
679 * config/rs6000/rs6000.h (enum data_align): New.
680 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
681 (DATA_ABI_ALIGNMENT): Define.
682 (CONSTANT_ALIGNMENT): Correct comment.
683 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
684 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
685
8ed00d76
DM
6862013-06-17 David Malcolm <dmalcolm@redhat.com>
687
688 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
689 ATTRIBUTE_UNUSED marking.
690
3d33d06b
SN
6912013-06-17 Sofiane Naci <sofiane.naci@arm.com>
692
693 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
694 alternative and update.
695 (aarch64_dup_lanedi): Delete.
696 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
697 * config/aarch64/aarch64-simd-builtins.def: Update.
698
ee03e71d
RB
6992013-06-17 Richard Biener <rguenther@suse.de>
700
701 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
702 (lto_input_scc): Declare.
703 (lto_input_tree_1): Likewise.
704 (struct lto_stats_d): Add num_tree_bodies_output and
705 num_pickle_refs_output.
706 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
707 (lto_read_tree_1): Split out from ...
708 (lto_read_tree): ... this.
709 (lto_input_scc): New function.
710 (lto_input_tree_1): Split out from ...
711 (lto_input_tree): ... this. Handle LTO_tree_scc.
712 (lto_data_in_create): Create the streamer cache without hashes.
713 * lto-streamer-out.c (create_output_block): Create the streamer
714 cache with hashes when not doing WPA.
715 (lto_write_tree_1): Split out from ...
716 (lto_write_tree): ... this.
717 (get_symbol_initial_value): New function.
718 (lto_output_tree_1): Split out from ...
719 (lto_output_tree): ... this. Write trees as series of SCCs
720 using a DFS walk via DFS_write_tree.
721 (struct sccs, struct scc_entry): New types.
722 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
723 (DFS_write_tree_body): New function.
724 (DFS_write_tree): Likewise.
725 (hash_tree): Likewise.
726 (scc_entry_compare): Likewise.
727 (hash_scc): Likewise.
728 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
729 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
730 TREE_CHAIN as regular reference.
731 (streamer_read_integer_cst): Remove.
732 (streamer_get_pickled_tree): Adjust.
733 * tree-streamer-out.c (streamer_write_chain): Disable streaming
734 of DECL_EXTERNALs in BLOCK_VARS for now.
735 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
736 reference.
737 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
738 Add hash value argument and record that if hashes are recorded
739 in the cache.
740 (streamer_tree_cache_insert_1): Adjust.
741 (streamer_tree_cache_insert): Likewise.
742 (streamer_tree_cache_insert_at): Rename to ...
743 (streamer_tree_cache_replace_tree): ... this and adjust.
744 (streamer_tree_cache_append): Adjust.
745 (record_common_node): Likewise.
746 (streamer_tree_cache_create): Add argument whether to
747 record hash values together with trees.
748 (streamer_tree_cache_delete): Adjust.
749 * tree-streamer.h (struct streamer_tree_cache_d): Add
750 vector of hashes.
751 (streamer_read_integer_cst): Remove.
752 (streamer_tree_cache_insert): Adjust.
753 (streamer_tree_cache_append): Likewise.
754 (streamer_tree_cache_insert_at): Rename to ...
755 (streamer_tree_cache_replace_tree): ... this and adjust.
756 (streamer_tree_cache_create): Add argument whether to record hashes.
757 (streamer_tree_cache_get): Rename to ...
758 (streamer_tree_cache_get_tree): ... this.
759 (streamer_tree_cache_get_hash): New function.
760 * tree.c (cache_integer_cst): New function.
761 * tree.h (cache_integer_cst): Declare.
762 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
763 * lto-symtab.c (lto_varpool_replace_node): Only release
764 DECL_INITIAL of non-prevailing decls.
765 * varpool.c (varpool_remove_initializer): Do not release
766 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
767
0de86a92
JU
7682013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
769
770 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
771 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
772 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
773 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
774 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
775 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
776 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
777 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
778 instead of TARGET_64BIT.
779 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
780 Require ISA_HAS_<D>DIV.
781
74240413
RS
7822013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
783
784 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
785 (mips*-*-linux*): Move default with_llsc setting to where other
786 defaults are set.
787 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
788 with_arch block.
789 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
790 Likewise. Remove default with_tune setting. Move default float
791 setting to its own block. Handle with_llsc in the same block as above.
792
393f9fed
JR
7932013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
794
795 PR rtl-optimization/57425
796 PR rtl-optimization/57569
299a5f6a 797 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
798 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
799 Changed all callers.
800 (canon_anti_dependence): New function.
801 * cse.c (check_dependence): Use canon_anti_dependence.
802 * cselib.c (cselib_invalidate_mem): Likewise.
803 * rtl.h (canon_anti_dependence): Declare.
804
b259d352
JU
8052013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
806
807 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
808 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
809 ".set mips3" for 64-bit targets.
810
4de09b85
DC
8112013-06-15 Dehao Chen <dehao@google.com>
812
813 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
814 * gimple-low.c (gimple_check_call_matching_types): Likewise.
815 (gimple_check_call_args): Likewise.
816 * value-prof.c (check_ic_target): Likewise.
817 * ipa-inline.c (early_inliner): Likewise.
818 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
819 * cgraph.c (cgraph_create_edge_1): Likewise.
820 (cgraph_make_edge_direct): Likewise.
821
d1aa4a76
MM
8222013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
823
824 PR target/57615
825 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
826 rs6000_output_move_128bit to handle emitting quad memory
827 operations. Set attribute length to 8 bytes.
828
24244e4d
VP
8292013-06-14 Vidya Praveen <vidyapraveen@arm.com>
830
831 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
832 New pattern.
833 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
834 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
835 (aarch64_<su>mlsl<mode>): Likewise.
836
f5273574
MS
8372013-06-14 Mike Stump <mikestump@comcast.net>
838
839 * Makefile.in (TARGET_H): Add insn-codes.h.
840
ef7e7ab2
AM
8412013-06-14 Alan Modra <amodra@gmail.com>
842
843 PR middle-end/57134
844 PR middle-end/57586
845 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
846 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
847 bitfield expansion when EXPAND_MEMORY.
848 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
849
135faab6
MM
8502013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
851
852 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
853 test for clearing quad memory on 32-bit later.
854
948a1fd9
MG
8552013-06-13 Marc Glisse <marc.glisse@inria.fr>
856
857 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
858 (fold_negate_expr): Likewise.
859 (fold_real_zero_addition_p): Handle vectors.
860 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
861
0597fb9c
AM
8622013-06-14 Alan Modra <amodra@gmail.com>
863
864 * varasm.c (force_const_mem): Revert 2013-06-07 change.
865
e5b962d0
JH
8662013-06-13 Jan Hubicka <jh@suse.cz>
867
868 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
869 Local comdats are not externally visible.
870 * symtab.c (dump_symtab_base): Dump externally visible.
871 (verify_symtab_base): Verify back links in the symtab hash.
872
a8355e51
BC
8732013-06-13 Bin Cheng <bin.cheng@arm.com>
874
875 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
876 CONVERT_EXPR as equal nodes.
877
8f7e6e33
BC
8782013-06-13 Bin Cheng <bin.cheng@arm.com>
879
22fc7d3d 880 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 881
5d418483
MG
8822013-06-13 Marc Glisse <marc.glisse@inria.fr>
883
884 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
885 Generalize to complex and vector.
886 * tree.c (build_all_ones_cst): New function.
887 * tree.h (build_all_ones_cst): Declare it.
888
50751417
AM
8892013-06-13 Alan Modra <amodra@gmail.com>
890
891 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
892 * config/rs6000/rs6000.md (signbittf2): New insn.
893 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
894 (abstf2_internal, cmptf_internal2): Likewise.
895 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
896
4b02c962
MM
8972013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
898 Pat Haugen <pthaugen@us.ibm.com>
899 Peter Bergner <bergner@vnet.ibm.com>
900
901 * config/rs6000/rs6000.c (emit_load_locked): Add support for
902 power8 byte, half-word, and quad-word atomic instructions.
903 (emit_store_conditional): Likewise.
904 (rs6000_expand_atomic_compare_and_swap): Likewise.
905 (rs6000_expand_atomic_op): Likewise.
906
907 * config/rs6000/sync.md (larx): Add new modes for power8.
908 (stcx): Likewise.
909 (AINT): New mode iterator to include TImode as well as normal
910 integer modes on power8.
911 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
912 that VSX registers are not considered. Use AINT mode iterator
913 instead of INT1 to allow inclusion of quad word atomic operations
914 on power8.
915 (load_locked<mode>): Likewise.
916 (store_conditional<mode>): Likewise.
917 (atomic_compare_and_swap<mode>): Likewise.
918 (atomic_exchange<mode>): Likewise.
919 (atomic_nand<mode>): Likewise.
920 (atomic_fetch_<fetchop_name><mode>): Likewise.
921 (atomic_nand_fetch<mode>): Likewise.
922 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
923 each type.
924 (ATOMIC): On power8, add QImode, HImode modes.
925 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
926 modes that promote to SImode.
927 (load_lockedti): Convert TImode arguments to PTImode, so that we
928 get a guaranteed even/odd register pair.
929 (load_lockedpti): Likewise.
930 (store_conditionalti): Likewise.
931 (store_conditionalpti): Likewise.
932
933 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
934 atomic load/store instructions.
935 (HSI): Likewise.
936
710b6cc1
RS
9372013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
938
939 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
940 loads.
941 (insn_count): New attribute, with most cases extracted from...
942 (length): ...here. Redefine most cases in terms of insn_count.
943 (single_insn): Delete.
944 (can_delay): Use insn_count to check for single instructions.
945 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
946 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
947 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
948 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
949 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
950 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
951 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
952 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
953 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
954 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
955 rather than "length".
956 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
957 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
958 Use "insn_count" rather than "length".
959 * config/mips/mips-dsp.md
960 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
961 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
962 length attributes.
963
1951f101
MG
9642013-06-12 Marc Glisse <marc.glisse@inria.fr>
965
966 PR tree-optimization/57361
967 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
968
8b033a8a
SN
9692013-06-12 Sofiane Naci <sofiane.naci@arm.com>
970
22fc7d3d
UB
971 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
972 to split.
8b033a8a
SN
973 (aarch64_simd_combine<mode>): New instruction expansion.
974 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
975 function prototype.
976 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
977 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
978
ca0f62a8
JH
9792013-06-12 Jan Hubicka <jh@suse.cz>
980
981 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
982 decl has when in streaming stage.
983 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
984 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
985
cddd69eb
RS
9862013-06-12 Roland Stigge <stigge@antcom.de>
987
988 PR target/57578
989 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
990
bfdeda2c
JJ
9912013-06-12 Jakub Jelinek <jakub@redhat.com>
992
993 PR tree-optimization/57537
994 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
995 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
996
a4fa02d1
RB
9972013-06-12 Richard Biener <rguenther@suse.de>
998
999 * data-streamer.h (streamer_write_char_stream): CSE
1000 obs->current_pointer.
1001 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1002 streamer_write_char_stream manually and optimize the resulting loop.
1003 (streamer_write_hwi_stream): Likewise.
1004
bbf9ad07
JH
10052013-06-12 Jan Hubicka <jh@suse.cz>
1006
1007 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1008 * cgraph.h (varpool_create_empty_node): Declare.
1009 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1010 duplicated nodes.
1011 * symtab.c (symtab_unregister_node): Be lax about missin entries
1012 in node hash.
1013 (symtab_get_node): Update comment.
1014 * varpool.c (varpool_create_empty_node): Break out from ...
1015 (varpool_node_for_decl): ... here.
1016 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1017
a53f90ad
EB
10182013-06-12 Eric Botcazou <ebotcazou@adacore.com>
1019
1020 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1021 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1022 part. Use straight-line flow at the end.
1023 <COMPONENT_REF>: Remove superfluous else.
1024 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1025
946f9306
JJ
10262013-06-12 Jakub Jelinek <jakub@redhat.com>
1027
1028 PR target/56564
1029 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1030 target hook even for !TREE_PUBLIC decls. If no resolution info
1031 is available, return false for common and external decls.
1032
a7fca6f0
KP
10332013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1034
1035 * config/rl78/constraints.md (U): New constraint.
1036 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1037 valloc attribute.
1038
c7d8f446
MM
10392013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1040
1041 PR target/57589
1042 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1043 to allow returning address to AT_PLATFORM name.
1044
08346abd
JH
10452013-06-11 Jan Hubicka <jh@suse.cz>
1046
1047 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1048 * cgraph.h (symtab_node_base): Add weakref flag.
1049 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1050 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1051 (output_weakrefs): Use weakref flag.
1052 * fold-const.c (simple_operand_p): Handle WEAK.
1053 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1054 * ipa.c (varpool_externally_visible_p): Drop weakref.
1055 (function_and_variable_visibility): Update comment; fix weakref
1056 sanity checks; do not clear DECL_WEAK on them.
1057 * lto-cgraph.c (lto_output_node): update.
1058 (lto_output_varpool_node): Update.
1059 (input_overwrite_node): Update.
1060 (input_node): Update.
1061 (input_varpool_node): Update.
1062 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1063 (lto_symtab_merge_symbols): Add sanity check.
1064 (lto_symtab_prevailing_decl): Do not special case weakrefs.
1065 * passes.c (rest_of_decl_compilation): Set static flag, too.
1066 * symtab.c (dump_symtab_base): Dump weakref.
1067 (verify_symtab_base): Sanity check weakrefs.
1068 (symtab_make_decl_local): Remove duplicated code.
1069 (symtab_alias_ultimate_target): Simplify.
1070 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 1071
d9af3652
DD
10722013-06-11 DJ Delorie <dj@redhat.com>
1073
1074 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1075 (rl78_unwind_word_mode): New.
1076
ffa66012
DM
10772013-06-11 David Malcolm <dmalcolm@redhat.com>
1078
1079 * final.c (debug_prefix_maps): Make static.
1080
783f2d35
DM
10812013-06-11 David Malcolm <dmalcolm@redhat.com>
1082
1083 * function.c (initial_trampoline): Remove stray copy.
1084
7af26def
SN
10852013-06-11 Sofiane Naci <sofiane.naci@arm.com>
1086
1087 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1088
97756c0e
MJ
10892013-06-11 Martin Jambor <mjambor@suse.cz>
1090
1091 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1092 within bounds at the beginning of the function.
1093
2c7b8bf6
AM
10942013-06-11 Alan Modra <amodra@gmail.com>
1095
1096 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
1097 reporting.
1098 (get_named_section): Don't NULL !DECL_P decl.
1099
77cea46e
IZ
11002013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
1101
1102 * doc/invoke.texi (core-avx2): Document.
1103 (slm): Likewise.
1104 (atom): Updated with MOVBE.
1105
888f0920
RB
11062013-06-11 Richard Biener <rguenther@suse.de>
1107
22fc7d3d 1108 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 1109
6b438d58
AB
11102013-06-11 Anton Blanchard <anton@samba.org>
1111
1112 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1113 correct shift value in little-endian mode.
1114
3bc66938
JJ
11152013-06-11 Jakub Jelinek <jakub@redhat.com>
1116
1117 PR target/56564
1118 * varasm.c (get_variable_align): Move #endif to the right place.
1119
a5dc7f88
CC
11202013-06-10 Cary Coutant <ccoutant@google.com>
1121
1122 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1123 for hash so that hash table traversal order is deterministic.
1124
19be72ab
MM
11252013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1126 Pat Haugen <pthaugen@us.ibm.com>
1127 Peter Bergner <bergner@vnet.ibm.com>
1128
1129 * config/rs6000/vector.md (GPR move splitter): Do not split moves
1130 of vectors in GPRS if they are direct moves or quad word load or
1131 store moves.
1132
1133 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1134 declaration.
1135 (direct_move_p): Likewise.
1136 (quad_load_store_p): Likewise.
1137
1138 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1139 classes into bins based on the physical register type.
1140 (reg_class_to_reg_type): Likewise.
1141 (IS_STD_REG_TYPE): Likewise.
1142 (IS_FP_VECT_REG_TYPE): Likewise.
1143 (reload_fpr_gpr): Arrays to determine what insn to use if we can
1144 use direct move instructions.
1145 (reload_gpr_vsx): Likewise.
1146 (reload_vsx_gpr): Likewise.
1147 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1148 information that is a simplification of register classes. Also
1149 precalculate direct move reload helpers.
1150 (direct_move_p): New function to return true if the operation can
1151 be done as a direct move instruciton.
1152 (quad_load_store_p): New function to return true if the operation
1153 is a quad memory operation.
1154 (rs6000_legitimize_address): If quad memory, only allow register
1155 indirect for TImode addresses.
1156 (rs6000_legitimate_address_p): Likewise.
1157 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1158 (rs6000_reload_register_type): Likewise.
1159 (register_to_reg_type): Return register type.
1160 (rs6000_secondary_reload_simple_move): New helper function for
1161 secondary reload and secondary memory needed to identify anything
1162 that is a simple move, and does not need reloading.
1163 (rs6000_secondary_reload_direct_move): New helper function for
1164 secondary reload to identify cases that can be done with several
1165 instructions via the direct move instructions.
1166 (rs6000_secondary_reload_move): New helper function for secondary
1167 reload to identify moves between register types that can be done.
1168 (rs6000_secondary_reload): Add support for quad memory operations
1169 and for direct move.
1170 (rs6000_secondary_memory_needed): Likewise.
1171 (rs6000_debug_secondary_memory_needed): Change argument names.
1172 (rs6000_output_move_128bit): New function to return the move to
1173 use for 128-bit moves, including knowing about the various
1174 limitations of quad memory operations.
1175
1176 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1177 memory operations. call rs6000_output_move_128bit for the actual
1178 instruciton(s) to generate.
1179 (vsx_movti_64bit): Likewise.
1180
1181 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1182 (UNSPEC_P8V_MTVSRWZ): Likewise.
1183 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1184 (UNSPEC_P8V_MTVSRD): Likewise.
1185 (UNSPEC_P8V_XXPERMDI): Likewise.
1186 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1187 (UNSPEC_FUSION_GPR): Likewise.
1188 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 1189 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
1190 (f32_sv): Likewise.
1191 (f32_dm): Likewise.
1192 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1193 loads and direct move instructions.
1194 (zero_extendsidi2_lfiwzx): Likewise.
1195 (extendsidi2_lfiwax): Likewise.
1196 (extendsidi2_nocell): Likewise.
1197 (floatsi<mode>2_lfiwax): Likewise.
1198 (lfiwax): Likewise.
1199 (floatunssi<mode>2_lfiwzx): Likewise.
1200 (lfiwzx): Likewise.
1201 (fix_trunc<mode>_stfiwx): Likewise.
1202 (fixuns_trunc<mode>_stfiwx): Likewise.
1203 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1204 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1205 (parity<mode>2_cmpb): Set length/type attr.
1206 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1207 for 'mr.' to fast_compare.
1208 (bpermd_<mode>): Change type attr to popcnt.
1209 (p8_fmrgow_<mode>): New insns for power8 direct move support.
1210 (p8_mtvsrwz_1): Likewise.
1211 (p8_mtvsrwz_2): Likewise.
1212 (reload_fpr_from_gpr<mode>): Likewise.
1213 (p8_mtvsrd_1): Likewise.
1214 (p8_mtvsrd_2): Likewise.
1215 (p8_xxpermdi_<mode>): Likewise.
1216 (reload_vsx_from_gpr<mode>): Likewise.
1217 (reload_vsx_from_gprsf): Likewise.
1218 (p8_mfvsrd_3_<mode>): LIkewise.
1219 (reload_gpr_from_vsx<mode>): Likewise.
1220 (reload_gpr_from_vsxsf): Likewise.
1221 (p8_mfvsrd_4_disf): Likewise.
1222 (multi-word GPR splits): Do not split direct moves or quad memory
1223 operations.
1224
16876bdc
DM
12252013-06-10 David Malcolm <dmalcolm@redhat.com>
1226
1227 * tree-into-ssa.c (interesting_blocks): Make static.
1228
df8a1d28
JJ
12292013-06-10 Jakub Jelinek <jakub@redhat.com>
1230
1231 PR target/56564
1232 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1233 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1234 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1235 (get_variable_align): New function.
1236 (get_variable_section, emit_bss, emit_common,
1237 assemble_variable_contents, place_block_symbol): Use
1238 get_variable_align instead of DECL_ALIGN.
1239 (assemble_noswitch_variable): Add align argument, use it
1240 instead of DECL_ALIGN.
1241 (assemble_variable): Adjust caller. Use get_variable_align
1242 instead of DECL_ALIGN.
1243 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1244 caller.
1245 (DATA_ABI_ALIGNMENT): Define.
1246 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1247 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1248 opt is false, only return the psABI mandated alignment increase.
1249 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1250 (DATA_ABI_ALIGNMENT): ... this.
1251 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1252 (DATA_ABI_ALIGNMENT): ... this.
1253 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1254 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1255 (DATA_ABI_ALIGNMENT): ... this.
1256 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1257 * doc/tm.texi: Regenerated.
1258
57b29ca6
UB
12592013-06-10 Uros Bizjak <ubizjak@gmail.com>
1260
1261 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1262 cmp_code to construct REG_EQUAL note.
1263
3e56ed50
JJ
12642013-06-09 Jakub Jelinek <jakub@redhat.com>
1265
1266 PR target/57568
1267 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1268 that operands[2] doesn't overlap with operands[0].
1269
74fe2a1d
DE
12702013-06-09 David Edelsohn <dje.gcc@gmail.com>
1271 Jan Hubicka <jh@suse.cz>
1272
1273 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1274 hack to mark symbols as used.
1275
ed52a84e
VM
12762013-06-08 Vladimir Makarov <vmakarov@redhat.com>
1277
1278 PR rtl-optimization/57559
1279 * lra-constraints.c (process_alt_operands): Don't discourage
1280 memory with known offset for offsetable memory constraint.
1281 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1282
299316ed
EB
12832013-06-08 Eric Botcazou <ebotcazou@adacore.com>
1284
1285 * varasm.c (struct oc_local_state): Reorder fields.
1286 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1287 and adjust accordingly.
1288 (output_constructor): Reorder initialization code and adjust call to
1289 output_constructor_bitfield.
1290
88ac60d3
JH
12912013-06-07 Jan Hubicka <jh@suse.cz>
1292
1293 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1294
4cdce1a8
DM
12952013-06-07 David Malcolm <dmalcolm@redhat.com>
1296
1297 * tree-object-size.c (unknown): Make const.
1298
b5e0425c
AK
12992013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1300
1301 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1302 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1303 for last alternative in the cpu_facility attribute.
1304
79678d04
KT
13052013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1306
1307 PR target/56315
1308 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1309 (xordi3): Change operand 2 constraint to arm_xordi_operand.
1310 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1311 * config/arm/constraints.md (Dg): New constraint.
1312 * config/arm/neon.md (xordi3_neon): Remove.
1313 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1314 * config/arm/predicates.md (arm_xordi_operand): New predicate.
1315
b31ddbdb
KT
13162013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1317
1318 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1319 Clean up alternatives.
1320
8f90b7d4
AM
13212013-06-07 Alan Modra <amodra@gmail.com>
1322
1323 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1324 va_list_gpr_size.
1325
961ce119
AM
13262013-06-07 Alan Modra <amodra@gmail.com>
1327
1328 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1329
33e49835
KT
13302013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1331
1332 * config/arm/constraints.md (Df): New constraint.
1333 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1334 Correct length attribute for last two alternatives.
1335
acd17ae6
AM
13362013-06-07 Alan Modra <amodra@gmail.com>
1337
1338 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1339 override user -mfp-in-toc.
1340 (offsettable_ok_by_alignment): Consider just the current access
1341 rather than the whole object, unless BLKmode. Handle
1342 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1343 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1344 for -mcmodel=medium.
1345 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1346 override user -mfp-in-toc or -msum-in-toc. Default to
1347 -mno-fp-in-toc for -mcmodel=medium.
1348
73310b0e
DD
13492013-06-06 DJ Delorie <dj@redhat.com>
1350
1351 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1352 TARGET_VALID_POINTER_MODE.
1353
0bd62dca
MM
13542013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1355 Pat Haugen <pthaugen@us.ibm.com>
1356 Peter Bergner <bergner@vnet.ibm.com>
1357
1358 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1359 Document new power8 builtins.
1360
1361 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1362 condition code register, to allow 128-bit logical operations to be
1363 done in the VSX or GPR registers.
1364 (nor<mode>3): Use the canonical form for nor.
1365 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1366 vclz*, and vpopcnt* vector instructions.
1367 (nand<mode>3): Likewise.
1368 (orc<mode>3): Likewise.
1369 (clz<mode>2): LIkewise.
1370 (popcount<mode>2): Likewise.
1371
1372 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1373 that only the GPRs are recognized.
1374
1375 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1376 support for new power8 builtins.
1377
1378 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1379 builtin functions.
1380 (xscvdpspn): Likewise.
1381 (vclz): Likewise.
1382 (vclzb): Likewise.
1383 (vclzh): Likewise.
1384 (vclzw): Likewise.
1385 (vclzd): Likewise.
1386 (vpopcnt): Likewise.
1387 (vpopcntb): Likewise.
1388 (vpopcnth): Likewise.
1389 (vpopcntw): Likewise.
1390 (vpopcntd): Likewise.
1391 (vgbbd): Likewise.
1392 (vmrgew): Likewise.
1393 (vmrgow): Likewise.
1394 (eqv): Likewise.
1395 (eqv_v16qi3): Likewise.
1396 (eqv_v8hi3): Likewise.
1397 (eqv_v4si3): Likewise.
1398 (eqv_v2di3): Likewise.
1399 (eqv_v4sf3): Likewise.
1400 (eqv_v2df3): Likewise.
1401 (nand): Likewise.
1402 (nand_v16qi3): Likewise.
1403 (nand_v8hi3): Likewise.
1404 (nand_v4si3): Likewise.
1405 (nand_v2di3): Likewise.
1406 (nand_v4sf3): Likewise.
1407 (nand_v2df3): Likewise.
1408 (orc): Likewise.
1409 (orc_v16qi3): Likewise.
1410 (orc_v8hi3): Likewise.
1411 (orc_v4si3): Likewise.
1412 (orc_v2di3): Likewise.
1413 (orc_v4sf3): Likewise.
1414 (orc_v2df3): Likewise.
1415
1416 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1417 allow power8 quad mode in 64-bit.
1418 (rs6000_builtin_vectorized_function): Add support to vectorize
1419 ISA 2.07 count leading zeros, population count builtins.
1420 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1421 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1422 (builtin_function_type): Add vgbbd builtin function which takes an
1423 unsigned argument.
1424 (altivec_expand_vec_perm_const): Add support for new power8 merge
1425 instructions.
1426
1427 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1428 that does not include TImdoe for use with 32-bit.
1429 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1430 instructions.
1431 (UNSPEC_VSX_CVDPSPN): Likewise.
1432 (vsx_xscvdpspn): Likewise.
1433 (vsx_xscvspdpn): Likewise.
1434 (vsx_xscvdpspn_scalar): Likewise.
1435 (vsx_xscvspdpn_directmove): Likewise.
1436 (vsx_and<mode>3): Split logical operations into 32-bit and
1437 64-bit. Add support to do logical operations on TImode as well as
1438 VSX vector types. Allow logical operations to be done in either
1439 VSX registers or in general purpose registers in 64-bit mode. Add
1440 splitters if GPRs were used. For AND, add clobber of CCmode to
1441 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
1442 encoding.
1443 (vsx_and<mode>3_32bit): Likewise.
1444 (vsx_and<mode>3_64bit): Likewise.
1445 (vsx_ior<mode>3): Likewise.
1446 (vsx_ior<mode>3_32bit): Likewise.
1447 (vsx_ior<mode>3_64bit): Likewise.
1448 (vsx_xor<mode>3): Likewise.
1449 (vsx_xor<mode>3_32bit): Likewise.
1450 (vsx_xor<mode>3_64bit): Likewise.
1451 (vsx_one_cmpl<mode>2): Likewise.
1452 (vsx_one_cmpl<mode>2_32bit): Likewise.
1453 (vsx_one_cmpl<mode>2_64bit): Likewise.
1454 (vsx_nor<mode>3): Likewise.
1455 (vsx_nor<mode>3_32bit): Likewise.
1456 (vsx_nor<mode>3_64bit): Likewise.
1457 (vsx_andc<mode>3): Likewise.
1458 (vsx_andc<mode>3_32bit): Likewise.
1459 (vsx_andc<mode>3_64bit): Likewise.
1460 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1461 and xxlorc instructions.
1462 (vsx_eqv<mode>3_64bit): Likewise.
1463 (vsx_nand<mode>3_32bit): Likewise.
1464 (vsx_nand<mode>3_64bit): Likewise.
1465 (vsx_orc<mode>3_32bit): Likewise.
1466 (vsx_orc<mode>3_64bit): Likewise.
1467
1468 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1469
1470 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1471 instruction.
1472 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1473 (p8_vmrgow): Likewise.
1474 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1475 GPRs to be split under VSX.
1476 (p8v_clz<mode>2): Add power8 count leading zero support.
1477 (p8v_popcount<mode>2): Add power8 population count support.
1478 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1479 support.
1480
1481 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1482 instruction.
1483
1484 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1485 builtin functions.
1486 (vec_nand): Likewise.
1487 (vec_vclz): Likewise.
1488 (vec_vclzb): Likewise.
1489 (vec_vclzd): Likewise.
1490 (vec_vclzh): Likewise.
1491 (vec_vclzw): Likewise.
1492 (vec_vgbbd): Likewise.
1493 (vec_vmrgew): Likewise.
1494 (vec_vmrgow): Likewise.
1495 (vec_vpopcnt): Likewise.
1496 (vec_vpopcntb): Likewise.
1497 (vec_vpopcntd): Likewise.
1498 (vec_vpopcnth): Likewise.
1499 (vec_vpopcntw): Likewise.
1500
37684c46
VM
15012013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1502
1503 PR rtl-optimization/57468
1504 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1505 spilled pseudos.
1506
d89ae27c
VM
15072013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1508
1509 PR rtl-optimization/57459
1510 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1511 type when setting live regs.
1512
3597e113
VM
15132013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1514
1515 * config/s390/s390.opt (mlra): New option.
1516 * config/s390/s390.c (s390_decompose_address): Check displacement
1517 for all registers for LRA.
1518 (s390_secondary_reload): Don't used secondary reloads for LRA.
1519 (s390_lra_p): New function.
1520 (TARGET_LRA_P): Define.
1521 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1522 of attribute cpu_facility to zarch for the last alternative.
1523 (*cmpmem_short): Ditto.
1524
01037aeb
EB
15252013-06-06 Eric Botcazou <ebotcazou@adacore.com>
1526
1527 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1528 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
1529 (arm_expand_prologue): Likewise.
1530
3371a64f
TJ
15312013-06-06 Teresa Johnson <tejohnson@google.com>
1532
1533 PR c++/53743
1534 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1535 as this is now done by redirect_edge_and_branch_force.
1536 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1537 barriers, and fix interaction with splitting.
1538 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1539 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1540 reflect changes made in the routine.
1541 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1542 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1543 since this is called in cfglayout mode, and replace partition fixup
1544 with assert as that is now done by force_nonfallthru_and_redirect.
1545 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1546 already be marked with region crossing note.
1547 (insert_section_boundary_note): Make non-static, gate on flag
1548 has_bb_partition, rewrite to also check for multiple partitions.
1549 (rest_of_handle_reorder_blocks): Remove call to
1550 insert_section_boundary_note, now done later during free_cfg.
1551 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1552 * bb-reorder.h (insert_section_boundary_note): Declare.
1553 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1554 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1555 invoke insert_section_boundary_note.
1556 (try_redirect_by_replacing_jump): Remove unnecessary
1557 check for region crossing note.
1558 (fixup_partition_crossing): New function.
1559 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1560 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1561 in non-cfglayout mode.
1562 (force_nonfallthru_and_redirect): Fixup partition boundaries,
1563 remove old code that tried to do this. Emit barrier correctly
1564 when we are in cfglayout mode.
1565 (last_bb_in_partition): New function.
1566 (rtl_split_edge): Correctly fixup partition boundaries.
1567 (commit_one_edge_insertion): Remove old code that tried to
1568 fixup region crossing edge since this is now handled in
1569 split_block, and set up insertion point correctly since
1570 block may now end in a jump.
1571 (verify_hot_cold_block_grouping): Guard against checking when not in
1572 linearized RTL mode.
1573 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1574 notes.
1575 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1576 rtl_verify_flow_info, so not called in cfglayout mode.
1577 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1578 (fixup_reorder_chain): Remove old code that attempted to fixup region
1579 crossing note as this is now handled in force_nonfallthru_and_redirect.
1580 (duplicate_insn_chain): Don't duplicate switch section notes.
1581 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1582 note.
1583 * basic-block.h (emit_barrier_after_bb): Declare.
1584
66071e10
KT
15852013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1586
1587 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1588 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1589 arm_usatsihi): Adjust alternatives for arm_restrict_it.
1590
0e26bf3d
KT
15912013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1592
1593 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1594 where appropriate.
1595 * config/arm/ldmstm.md: Regenerate.
1596
12b4e7ef
KT
15972013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1598
1599 * config/arm/sync.md (atomic_loaddi_1):
1600 Disable predication for arm_restrict_it.
1601 (arm_load_exclusive<mode>): Likewise.
1602 (arm_load_exclusivesi): Likewise.
1603 (arm_load_exclusivedi): Likewise.
1604 (arm_load_acquire_exclusive<mode>): Likewise.
1605 (arm_load_acquire_exclusivesi): Likewise.
1606 (arm_load_acquire_exclusivedi): Likewise.
1607 (arm_store_exclusive<mode>): Likewise.
1608 (arm_store_exclusive<mode>): Likewise.
1609 (arm_store_release_exclusivedi): Likewise.
1610 (arm_store_release_exclusive<mode>): Likewise.
1611
15d16c8a
RB
16122013-06-06 Richard Biener <rguenther@suse.de>
1613
1614 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1615 after LTO_null.
1616 (lto_tag_is_tree_code_p): Adjust.
1617 (lto_tag_is_gimple_code_p): Likewise.
1618 (lto_gimple_code_to_tag): Likewise.
1619 (lto_tag_to_gimple_code): Likewise.
1620 (lto_tree_code_to_tag): Likewise.
1621 (lto_tag_to_tree_code): Likewise.
1622 * data-streamer.h (streamer_write_hwi_in_range): Use
1623 uhwi streaming to stream the normalized range.
1624 (streamer_read_hwi_in_range): Likewise.
1625
17a7fc37
KT
16262013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1627
1628 * config/arm/arm.md (enabled_for_depr_it): New attribute.
1629 (predicable_short_it): Likewise.
1630 (predicated): Likewise.
1631 (enabled): Handle above.
1632 (define_cond_exec): Set predicated attribute to yes.
1633
b57ca59b
MS
16342013-06-05 Mike Stump <mikestump@comcast.net>
1635
1636 * gdbinit.in (__FUNCTION__): Add.
1637
c1e183a9
UB
16382013-06-05 Uros Bizjak <ubizjak@gmail.com>
1639
1640 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1641 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1642
0378bddb
JH
16432013-06-05 Jan Hubicka <jh@suse.cz>
1644
1645 * varasm.c (mark_decl_referenced): Revert the removal until targets
1646 are fixed.
1647
8f8a2057
DE
16482013-06-05 David Edelsohn <dje.gcc@gmail.com>
1649
1650 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1651 instead of mark_decl_referenced.
1652
edb983b2
JH
16532013-06-05 Jan Hubicka <jh@suse.cz>
1654
1655 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1656 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1657 and symtab_used_from_object_file_p.
1658 (cgraph_make_node_local_1): Clear forced_by_abi.
1659 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1660 * cgraph.h (symtab_node_base): Add forced_by_abi.
1661 (decide_is_variable_needed): Remove.
1662 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1663 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1664 (decide_is_symbol_needed): ... this one; handle symbols in general;
1665 always analyze virtuals; honnor forced_by_abi.
1666 (cgraph_finalize_function): Update.
1667 (varpool_finalize_decl): Update.
1668 (symbol_defined_and_needed): Remove.
1669 (analyze_functions): Update.
1670 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1671 output_refs, input_overwrite_node): Handle forced_by_abi.
1672 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1673 (address_taken_from_non_vtable_p): ... this one.
1674 (comdat_can_be_unshared_p_1): New function.
1675 (cgraph_comdat_can_be_unshared_p): Rename to ...
1676 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1677 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1678 (function_and_variable_visibility): Clear forced_by_abi as needed.
1679 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1680 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
1681 * symtab.c (dump_symtab_base): Dump forced_by_abi.
1682 * varpool.c (decide_is_variable_needed): Remove.
1683
9912dbe5
KT
16842013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1685
1686 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1687 (arm_option_override): Override arm_restrict_it where appropriate.
1688 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1689 * config/arm/arm.opt (mrestrict-it): New command-line option.
1690 * doc/invoke.texi: Document -mrestrict-it.
1691
34c136b6
DM
16922013-06-05 David Malcolm <dmalcolm@redhat.com>
1693
1694 * tsan.c (tsan_atomic_table): Make const.
1695
a367df53
RB
16962013-06-05 Richard Biener <rguenther@suse.de>
1697
1698 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1699 index associated with the tree we are supposed to replace.
1700 * tree-streamer-out.c (pack_ts_base_value_fields): Output
1701 TREE_ASM_WRITTEN as zero for everything but SSA names.
1702
70d51a19
DM
17032013-06-05 David Malcolm <dmalcolm@redhat.com>
1704
1705 * tree-ssa-structalias.c (call_stmt_vars): Make static.
1706
b9bd2075
JH
17072013-06-04 Jan Hubicka <jh@suse.cz>
1708
1709 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1710 (input_node, input_varpool_node): Handle correctly external same
1711 body aliases.
1712 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1713 nodes at ltrans stage.
1714
aaae719d
JH
17152013-06-04 Jan Hubicka <jh@suse.cz>
1716
1717 * ipa-inline.c (update_caller_keys): Fix availability test.
1718 (update_callee_keys): Likewise.
1719 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1720 to follow ELF standard.
1721
107eea2c
JU
17222013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
1723
1724 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1725 (mips64r5900el-*-elf*): New configurations.
1726 * config/mips/mips-cpus.def (r5900): New processor.
1727 * config/mips/mips-tables.opt: Regenerate.
1728 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1729 (mips_issue_rate): Handle PROCESSOR_R5900.
1730 (mips_reorg_process_insns): Force reorder mode for the R5900.
1731 * config/mips/mips.h (TARGET_MIPS5900): Define.
1732 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1733 TARGET_MIPS5900.
1734 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1735 TARGET_MIPS5900.
1736 * config/mips/mips.md (processor): Add r5900.
1737 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1738
b7342d25
IB
17392013-06-04 Ian Bolton <ian.bolton@arm.com>
1740
1741 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1742 into function to generate MOVI instruction.
c1e183a9 1743 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
1744 (aarch64_preferred_simd_mode): Turn into wrapper.
1745 (aarch64_output_scalar_simd_mov_immediate): New function.
1746 * config/aarch64/aarch64-protos.h: Add prototype for above.
1747
81c2dfb9
IB
17482013-06-04 Ian Bolton <ian.bolton@arm.com>
1749
1750 * config/aarch64/aarch64.c (simd_immediate_info): Remove
1751 element_char member.
1752 (sizetochar): Return signed char.
1753 (aarch64_simd_valid_immediate): Remove elchar and other
1754 unnecessary variables.
1755 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1756 Calculate element_char as required.
1757 * config/aarch64/aarch64-protos.h: Update and move prototype
1758 for aarch64_output_simd_mov_immediate.
1759 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1760 Update arguments.
1761
48063b9d
IB
17622013-06-04 Ian Bolton <ian.bolton@arm.com>
1763
1764 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1765 information completed by aarch64_simd_valid_immediate.
1766 (aarch64_legitimate_constant_p): Update arguments.
1767 (aarch64_simd_valid_immediate): Work with struct rather than many
1768 pointers.
1769 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1770 (aarch64_simd_make_constant): Update arguments.
1771 (aarch64_output_simd_mov_immediate): Work with struct rather than
1772 many pointers. Output immediate directly rather than as operand.
1773 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1774 Update prototype.
1775 * config/aarch64/constraints.md (Dn): Update arguments.
1776
3ea63f60
IB
17772013-06-04 Ian Bolton <ian.bolton@arm.com>
1778
1779 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1780 longer static.
1781 (aarch64_simd_immediate_valid_for_move): Remove.
1782 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1783 (aarch64_simd_make_constant): Update call.
1784 (aarch64_output_simd_mov_immediate): Update call.
1785 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1786 Add prototype.
1787 * config/aarch64/constraints.md (Dn): Update call.
1788
d8edd899
IB
17892013-06-04 Ian Bolton <ian.bolton@arm.com>
1790
1791 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1792 return type to bool for prototype.
1793 (aarch64_legitimate_constant_p): Check for true instead of not -1.
1794 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1795 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1796
44b20bb8
CM
17972013-06-04 Catherine Moore <clm@codesourcery.com>
1798
1799 * config/mips/mips.opt (meva): New.
c1e183a9 1800 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
1801 (ASM_SPEC): Handle -meva.
1802 * doc/invoke.texi (meva): Document.
1803
52befbd8
AM
18042013-06-04 Alan Modra <amodra@gmail.com>
1805
1806 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1807 constant output.
1808
aadaf24e
KT
18092013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1810
1811 * rtl.def: Add extra fourth optional field to define_cond_exec.
1812 * gensupport.c (process_one_cond_exec): Process attributes from
1813 define_cond_exec.
1814 * doc/md.texi: Document fourth field in define_cond_exec.
1815
0cd9e9ee
EB
18162013-06-04 Eric Botcazou <ebotcazou@adacore.com>
1817
1818 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1819 out the processing order as in store_bit_field_1.
1820
cb0f665d
JH
18212013-06-04 Jan Hubicka <jh@suse.cz>
1822
1823 PR middle-end/57500
1824 * cgraphunit.c (cgraph_process_same_body_aliases): Create
1825 non-VAR_DECL node if it does not exist yet.
1826
53984b9b
RS
18272013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
1828
1829 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1830 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1831 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1832 target_cpu_default setting.
1833
5d318fd4
TJ
18342013-06-03 Teresa Johnson <tejohnson@google.com>
1835
1836 * dumpfile.c (opt_info_switch_p): Change -fopt-info
1837 default to -fopt-info=optimized instead of all.
1838 * doc/invoke.texi: Ditto.
1839 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1840 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1841 (execute_vect_slp): Emit BB vectorization success under
1842 MSG_OPTIMIZED_LOCATIONS.
1843 * tree-vect-slp.c (vect_slp_transform_bb): Change
1844 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1845 * tree-vect-loop.c (vect_transform_loop): Ditto.
1846
ec3af349
JM
18472013-06-03 Jason Merrill <jason@redhat.com>
1848
1849 PR c++/57415
1850 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1851 Use TARGET_EXPR for C++.
1852
1baf9159
JJ
18532013-06-03 Jakub Jelinek <jakub@redhat.com>
1854
1855 PR rtl-optimization/57268
0cd9e9ee 1856 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
1857 if DEBUG_INSN_P (insn).
1858
1859 Reapply
1860 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1861
1862 PR rtl-optimization/57268
1863 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1864 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1865
0f1d3965
YR
18662013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1867
1868 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1869 (ix86_avoid_lea_for_addr): Likewise.
1870 (exact_dependency_1): Likewise.
1871 (ix86_adjust_cost): Likewise.
1872 (swap_top_of_ready_list): Fix formatting and !reload_completed check
1873 removed.
1874 (do_reorder_for_imul): Fix typo, formatting and
1875 !reload_completed check removed.
1876 (ix86_sched_reorder): Fix typo and formatting.
1877 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1878 list.
1879
3bc30db4
SN
18802013-06-03 Sofiane Naci <sofiane.naci@arm.com>
1881
1882 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1883
19cc6fac
EB
18842013-06-03 Eric Botcazou <ebotcazou@adacore.com>
1885
1886 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1887 <STRING_CST>: Likewise.
1888 <VECTOR_CST>: Likewise.
1889
c68a6e08
JW
18902013-06-01 Janus Weil <janus@gcc.gnu.org>
1891 Mikael Morin <mikael@gcc.gnu.org>
1892
1893 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1894 * config.in: Regenerated.
1895 * configure: Regenerated.
1896
38e55e5c
JH
18972013-06-01 Jan Hubicka <jh@suse.cz>
1898
1899 PR middle-end/57366
1900 * cgraphunit.c (compile): When weakref is not supported,
1901 set up transparent aliases before final output pass.
1902 * varasm.c (assemble_alias): Do not try to do it here.
1903
eb51d2ff
JH
19042013-06-01 Jan Hubicka <jh@suse.cz>
1905
1906 PR middle-end/57467
1907 * passes.c (for_per_function): Skip unanalyzed functions.
1908
40a7fe1e
JH
19092013-06-01 Jan Hubicka <jh@suse.cz>
1910
1911 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1912 (lto_symtab_merge_symbols_1): ... this one.
1913 (lto_symtab_merge_cgraph_nodes): Rename to ...
1914 (lto_symtab_merge_symbols): ... this one; simplify.
1915 * cgraph.c (same_body_aliases_done): Rename to ...
1916 (cpp_implicit_aliases_done): ... this one.
1917 (cgraph_create_function_alias): Update.
1918 (cgraph_same_body_alias): Update.
c1e183a9 1919 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 1920 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 1921 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
1922 (cgraph_node): Remove same_body_alias.
1923 (varpool_node): Remove alias_of and extra_name_alias.
1924 (same_body_aliases_done): Rename to ..
1925 (cpp_implicit_aliases_done): ... this one.
1926 (symtab_alias_ultimate_target): Add default parameter.
1927 (symtab_resolve_alias): New function.
1928 (fixup_same_cpp_alias_visibility): Declare.
1929 (cgraph_function_node): Add default parameter.
1930 (cgraph_node_asm_name): Likewise.
1931 (cgraph_function_or_thunk_node): Add default parameter; do
1932 not ICE when it is NULL.
1933 (varpool_variable_node): Likewise.
1934 * tree-emutls.c (create_emultls_var): Update.
1935 (ipa_lower_emutls): Update.
1936 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1937 (cgraph_reset_node): Reset alias info.
1938 (cgraph_finalize_function): Update.
1939 (fixup_same_cpp_alias_visibility): Move to symtab.c.
1940 (analyze_function): Simplify.
1941 (cgraph_process_same_body_aliases): Simplify.
1942 (analyze_functions): Fixup same body aliases.
1943 (handle_alias_pairs): Simplify.
1944 (assemble_thunk): Update.
1945 (assemble_thunks_and_aliases): Update.
1946 (output_weakrefs): Rewrite.
1947 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1948 (lto_output_varpool_node): Likewise.
1949 (compute_ltrans_boundary): Remve assert.
1950 (get_alias_symbol): New functoin.
1951 (input_node): Rewrite alias handling.
1952 (input_varpool_node): Likewise.
1953 * ipa-pure-const.c (propagate_pure_const): Fix formating.
1954 * ipa.c (process_references): Handle weakrefs correctly.
1955 (symtab_remove_unreachable_nodes): Likewise.
1956 * trans-mem.c (get_cg_data): Update.
1957 (ipa_tm_create_version_alias): Update.
1958 (ipa_tm_execute): Update.
1959 * symtab.c (dump_symtab_base): Dump aliases.
1960 (verify_symtab_base): Verify aliases.
1961 (symtab_node_availability): New function.
1962 (symtab_alias_ultimate_target): Simplify.
1963 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1964 handle all the fixup cases.
1965 (symtab_resolve_alias): New function.
1966 * passes.c (ipa_write_summaries): Handle weakrefs.
1967 * varpool.c (varpool_analyze_node): Simplify.
1968 (assemble_aliases): Update.
1969 (varpool_create_variable_alias): Simplify.
1970 (varpool_extra_name_alias): Simplify.
1971 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1972 (lto_symtab_merge_symbols): ... this one.
1973
21759881
DT
19742013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
1975
1976 Revert
1977 PR rtl-optimization/57268
1978 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1979 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1980
daf4e940
TB
19812013-06-01 Tobias Burnus <burnus@net-b.de>
1982
1983 Partially reverted:
1984 2013-05-31 Tobias Burnus <burnus@net-b.de>
1985
1986 PR middle-end/57073
1987 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1988 further up.
1989
c359d8d0
DT
19902013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1991
1992 PR rtl-optimization/57268
1993 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1994 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1995
4172215d
EB
19962013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1997
1998 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1999 unordered comparison operators when -fno-trapping-math is in effect
2000 on the e500.
2001 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2002 and implement unordered comparison operators properly on the e500.
2003
a8c50132
EB
20042013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2005
2006 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2007 for constant scalar integers.
2008 (simplify_relational_operation_1): Likewise.
2009
44626634
SB
20102013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
2011
2012 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2013 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
2014 Fix comment.
2015
55805e54
YR
20162013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2017 Igor Zamyatin <igor.zamyatin@intel.com>
2018
2019 Silvermont (SLM) architecture performance tuning.
2020 * config/i386/i386.h (enum ix86_tune_indices): Add
2021 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2022 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2023
2024 * config/i386/i386.c (initial_ix86_tune_features)
2025 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2026 (ix86_lea_outperforms): Handle Silvermont tuning.
2027 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2028 call.
2029 (ix86_use_lea_for_mov): Likewise.
2030 (ix86_avoid_lea_for_addr): Likewise.
2031 (ix86_lea_for_add_ok): Likewise.
2032 (exact_dependency_1): New function.
2033 (exact_store_load_dependency): Likewise.
2034 (ix86_adjust_cost): Handle Silvermont tuning.
2035 (do_reoder_for_imul): Likewise.
2036 (swap_top_of_ready_list): New function.
2037 (ix86_sched_reorder): Changed to handle Silvermont tuning.
2038
2039 * config/i386/i386.md (peepholes that split memory operand in fp
2040 converts): New.
2041
e19c9de2
MS
20422013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2043
2044 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2045 Remove un-necessary braces.
2046
38e6c9a6
MS
20472013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2048
2049 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2050 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2051
e3530904
TB
20522013-05-31 Tobias Burnus <burnus@net-b.de>
2053
2054 PR middle-end/57073
c1e183a9 2055 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 2056
b6af05a9
KT
20572013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2058
2059 PR target/56315
2060 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2061 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2062 * config/arm/neon.md (iordi3_neon): Remove.
2063 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2064 * config/arm/predicates.md (imm_for_neon_logic_operand):
2065 Move to earlier in the file.
2066 (neon_logic_op2): Likewise.
2067 (arm_iordi_operand_neon): New predicate.
2068
f800c166
RB
20692013-05-31 Richard Biener <rguenther@suse.de>
2070
2071 PR tree-optimization/57478
2072 PR tree-optimization/57453
2073 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2074 are life as well.
2075
e571fa59
KP
20762013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2077
2078 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2079 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2080
0fa6e0ef
TB
20812013-05-30 Tobias Burnus <burnus@net-b.de>
2082 Thomas Koenig <tkoenig@gcc.gnu.org>
2083
2084 PR middle-end/57073
2085 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2086 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2087
4688ddf5
SB
20882013-05-30 Steven Bosscher <steven@gcc.gnu.org>
2089
0fa6e0ef 2090 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 2091
3b9ceb4b
VM
20922013-05-30 Vladimir Makarov <vmakarov@redhat.com>
2093
2094 * target.def (register_usage_leveling_p): New hook.
2095 * targhooks.c (default_register_usage_leveling_p): New.
2096 * targhooks.h (default_register_usage_leveling_p): New prototype.
2097 * lra-assigns.c (register_usage_leveling_p): Use the hook.
2098 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2099 * doc/tm.texi: Update.
2100 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2101
65f9e789
IB
21022013-05-30 Ian Bolton <ian.bolton@arm.com>
2103
2104 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2105 (*insv_reg<mode>): New define_insn.
2106
ca035367
JR
21072013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
2108
2109 PR rtl-optimization/57439
2110 * postreload.c (move2add_valid_value_p): Check that we have
2111 a zero subreg_regno_offset when accessing the register in
2112 the requested mode.
2113
0b871ccf
YR
21142013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2115 Igor Zamyatin <igor.zamyatin@intel.com>
2116
2117 Silvermont (SLM) architecture pipeline model, tuning and
2118 insn selection.
2119 * config.gcc: Add slm config options and target.
2120
2121 * config/i386/slm.md: New.
2122
2123 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2124
2125 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
2126 PROCESSOR_SLM.
2127 (ix86_target_macros_internal): Likewise.
2128
2129 * gcc/config/i386/i386.c (slm_cost): New cost.
2130 (m_SLM): New macro flag.
2131 (initial_ix86_tune_features): Set m_SLM.
2132 (x86_accumulate_outgoing_args): Likewise.
2133 (x86_arch_always_fancy_math_387): Likewise.
2134 (processor_target_table): Add slm cost.
2135 (cpu_names): Add slm cpu name.
2136 (x86_option_override_internal): Set SLM ISA.
2137 (ix86_issue_rate): New case PROCESSOR_SLM.
2138 (ia32_multipass_dfa_lookahead): Likewise.
2139 (fold_builtin_cpu): Add slm.
2140
2141 * config/i386/i386.h (TARGET_SLM): New target macro.
2142 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2143 (processor_type): Add PROCESSOR_SLM.
2144
2145 * config/i386/i386.md (cpu): Add new value "slm".
2146 (slm.md): Include slm.md.
2147
24d5b097
XG
21482013-05-30 Bernd Schmidt <bernds@codesourcery.com>
2149 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2150
2151 * config/arm/arm-protos.h: Add and update function protos.
2152 * config/arm/arm.c (use_simple_return_p): New added.
2153 (thumb2_expand_return): Check simple_return flag.
2154 * config/arm/arm.md: Add simple_return and conditional simple_return.
2155 * config/arm/iterators.md: Add iterator for return and simple_return.
2156
c1cccc15
ZC
21572013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2158
2159 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2160 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2161 (arm_emit_vfp_multi_reg_pop): Likewise.
2162 (thumb2_emit_ldrd_pop): Likewise.
2163 (arm_expand_epilogue): Add misc REG_CFA notes.
2164 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2165
3a4f280b
LC
21662013-05-29 Lawrence Crowl <crowl@google.com>
2167
2168 * config/arm/t-arm: Update for below.
2169
2170 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2171 Change type to hash_table. Update dependent calls and types.
2172
2173 * config/i386/t-cygming: Update for below.
2174
2175 * config/i386/t-interix: Update for below.
2176
2177 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2178 Change type to hash_table. Update dependent calls and types.
2179 (i386_find_on_wrapper_list::wrappers): Likewise.
2180
2181 * config/ia64/t-ia64: Update for below.
2182
2183 * config/ia64/ia64.c (bundle_state_table):
2184 Change type to hash_table. Update dependent calls and types.
2185
2186 * config/mips/mips.c (mips_reorg_process_insns::htab):
2187 Change type to hash_table. Update dependent calls and types.
2188
2189 * config/sol2.c (solaris_comdat_htab):
2190 Change type to hash_table. Update dependent calls and types.
2191
2192 * config/t-sol2: Update for above.
2193
1388a0e3
TJ
21942013-05-29 Teresa Johnson <tejohnson@google.com>
2195
2196 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2197 functions are not yet marked as defined.
2198
a5965b52
MM
21992013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2200 Pat Haugen <pthaugen@us.ibm.com>
2201 Peter Bergner <bergner@vnet.ibm.com>
2202
2203 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2204 instructions.
2205 (VEC_A): Likewise.
2206 (VEC_C): Likewise.
2207 (vrotl<mode>3): Likewise.
2208 (vashl<mode>3): Likewise.
2209 (vlshr<mode>3): Likewise.
2210 (vashr<mode>3): Likewise.
2211
2212 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2213 support for power8 V2DI builtins.
2214
2215 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2216 power8 V2DI builtins.
2217 (vupkhsw): Likewise.
2218 (vupklsw): Likewise.
2219 (vaddudm): Likewise.
2220 (vminsd): Likewise.
2221 (vmaxsd): Likewise.
2222 (vminud): Likewise.
2223 (vmaxud): Likewise.
2224 (vpkudum): Likewise.
2225 (vpksdss): Likewise.
2226 (vpkudus): Likewise.
2227 (vpksdus): Likewise.
2228 (vrld): Likewise.
2229 (vsld): Likewise.
2230 (vsrd): Likewise.
2231 (vsrad): Likewise.
2232 (vsubudm): Likewise.
2233 (vcmpequd): Likewise.
2234 (vcmpgtsd): Likewise.
2235 (vcmpgtud): Likewise.
2236 (vcmpequd_p): Likewise.
2237 (vcmpgtsd_p): Likewise.
2238 (vcmpgtud_p): Likewise.
2239 (vupkhsw): Likewise.
2240 (vupklsw): Likewise.
2241 (vaddudm): Likewise.
2242 (vmaxsd): Likewise.
2243 (vmaxud): Likewise.
2244 (vminsd): Likewise.
2245 (vminud): Likewise.
2246 (vpksdss): Likewise.
2247 (vpksdus): Likewise.
2248 (vpkudum): Likewise.
2249 (vpkudus): Likewise.
2250 (vrld): Likewise.
2251 (vsld): Likewise.
2252 (vsrad): Likewise.
2253 (vsrd): Likewise.
2254 (vsubudm): Likewise.
2255
2256 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2257 support for power8 V2DI instructions.
2258
2259 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2260 power8 V2DI instructions. Combine pack and unpack insns to use an
2261 iterator for each mode. Check whether a particular mode supports
2262 Altivec instructions instead of just checking TARGET_ALTIVEC.
2263 (UNSPEC_VPKUWUM): Likewise.
2264 (UNSPEC_VPKSHSS): Likewise.
2265 (UNSPEC_VPKSWSS): Likewise.
2266 (UNSPEC_VPKUHUS): Likewise.
2267 (UNSPEC_VPKSHUS): Likewise.
2268 (UNSPEC_VPKUWUS): Likewise.
2269 (UNSPEC_VPKSWUS): Likewise.
2270 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2271 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2272 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2273 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2274 (UNSPEC_VUPKHSB): Likewise.
2275 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2276 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2277 (UNSPEC_VUPKHSH): Likewise.
2278 (UNSPEC_VUPKLSB): Likewise.
2279 (UNSPEC_VUPKLSH): Likewise.
2280 (VI2): Likewise.
2281 (VI_char): Likewise.
2282 (VI_scalar): Likewise.
2283 (VI_unit): Likewise.
2284 (VP): Likewise.
2285 (VP_small): Likewise.
2286 (VP_small_lc): Likewise.
2287 (VU_char): Likewise.
2288 (add<mode>3): Likewise.
2289 (altivec_vaddcuw): Likewise.
2290 (altivec_vaddu<VI_char>s): Likewise.
2291 (altivec_vadds<VI_char>s): Likewise.
2292 (sub<mode>3): Likewise.
2293 (altivec_vsubcuw): Likewise.
2294 (altivec_vsubu<VI_char>s): Likewise.
2295 (altivec_vsubs<VI_char>s): Likewise.
2296 (altivec_vavgs<VI_char>): Likewise.
2297 (altivec_vcmpbfp): Likewise.
2298 (altivec_eq<mode>): Likewise.
2299 (altivec_gt<mode>): Likewise.
2300 (altivec_gtu<mode>): Likewise.
2301 (umax<mode>3): Likewise.
2302 (smax<mode>3): Likewise.
2303 (umin<mode>3): Likewise.
2304 (smin<mode>3): Likewise.
2305 (altivec_vpkuhum): Likewise.
2306 (altivec_vpkuwum): Likewise.
2307 (altivec_vpkshss): Likewise.
2308 (altivec_vpkswss): Likewise.
2309 (altivec_vpkuhus): Likewise.
2310 (altivec_vpkshus): Likewise.
2311 (altivec_vpkuwus): Likewise.
2312 (altivec_vpkswus): Likewise.
2313 (altivec_vpks<VI_char>ss): Likewise.
2314 (altivec_vpks<VI_char>us): Likewise.
2315 (altivec_vpku<VI_char>us): Likewise.
2316 (altivec_vpku<VI_char>um): Likewise.
2317 (altivec_vrl<VI_char>): Likewise.
2318 (altivec_vsl<VI_char>): Likewise.
2319 (altivec_vsr<VI_char>): Likewise.
2320 (altivec_vsra<VI_char>): Likewise.
2321 (altivec_vsldoi_<mode>): Likewise.
2322 (altivec_vupkhsb): Likewise.
2323 (altivec_vupkhs<VU_char>): Likewise.
2324 (altivec_vupkls<VU_char>): Likewise.
2325 (altivec_vupkhsh): Likewise.
2326 (altivec_vupklsb): Likewise.
2327 (altivec_vupklsh): Likewise.
2328 (altivec_vcmpequ<VI_char>_p): Likewise.
2329 (altivec_vcmpgts<VI_char>_p): Likewise.
2330 (altivec_vcmpgtu<VI_char>_p): Likewise.
2331 (abs<mode>2): Likewise.
2332 (vec_unpacks_hi_v16qi): Likewise.
2333 (vec_unpacks_hi_v8hi): Likewise.
2334 (vec_unpacks_lo_v16qi): Likewise.
2335 (vec_unpacks_hi_<VP_small_lc>): Likewise.
2336 (vec_unpacks_lo_v8hi): Likewise.
2337 (vec_unpacks_lo_<VP_small_lc>): Likewise.
2338 (vec_pack_trunc_v8h): Likewise.
2339 (vec_pack_trunc_v4si): Likewise.
2340 (vec_pack_trunc_<mode>): Likewise.
2341
2342 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2343 V2DI builtins.
2344 (vec_vmaxsd): Likewise.
2345 (vec_vmaxud): Likewise.
2346 (vec_vminsd): Likewise.
2347 (vec_vminud): Likewise.
2348 (vec_vpksdss): Likewise.
2349 (vec_vpksdus): Likewise.
2350 (vec_vpkudum): Likewise.
2351 (vec_vpkudus): Likewise.
2352 (vec_vrld): Likewise.
2353 (vec_vsld): Likewise.
2354 (vec_vsrad): Likewise.
2355 (vec_vsrd): Likewise.
2356 (vec_vsubudm): Likewise.
2357 (vec_vupkhsw): Likewise.
2358 (vec_vupklsw): Likewise.
2359
e70670cf
JH
23602013-05-29 Jan Hubicka <jh@suse.cz>
2361
2362 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2363 flags; reorder rest of fields in more consistent way.
2364 (varpool_node): Remove analyzed, finalized and alias.
2365 (cgraph_ndoe): Likewise.
2366 (symtab_alias_ultimate_target): New function.
2367 (cgraph_function_node): Move offline.
2368 (cgraph_reset_node): Declare.
2369 (cgraph_comdat_can_be_unshared_p): Remove.
2370 (varpool_remove_initializer): Declare.
2371 (varpool_first_defined_variable, varpool_next_defined_variable
2372 cgraph_first_defined_function, cgraph_next_defined_function): Update.
2373 (cgraph_function_with_gimple_body_p): Update.
2374 (varpool_all_refs_explicit_p): Update.
2375 (symtab_alias_target): New function.
2376 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2377 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
2378 (cgraph_function_or_thunk_node): Simplify using
2379 symtab_alias_ultimate_target.
e70670cf
JH
2380 (varpool_variable_node): Likewise.
2381 * cgraph.c (cgraph_create_function_alias): Update.
2382 (cgraph_add_thunk): Update.
2383 (cgraph_remove_node): Update.
2384 (dump_cgraph_node): Do not dump removed flags.
2385 (cgraph_function_body_availability): Update.
2386 (cgraph_propagate_frequency): Update.
2387 (verify_cgraph_node): Check sanity of local flag.
2388 (cgraph_function_node): Move here from cgraph.h; revamp for
2389 cgraph_function_or_thunk_node.
2390 * lto-symtab.c (lto_varpool_replace_node): Update.
2391 (lto_symtab_resolve_can_prevail_p): Update.
2392 (lto_symtab_merge_cgraph_nodes): Update.
2393 * ipa-cp.c (determine_versionability, initialize_node_lattices,
2394 propagate_constants_accross_call, devirtualization_time_bonus,
2395 ipcp_propagate_stage): Update.
2396 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
2397 * ipa-inline-transform.c (clone_inlined_nodes,
2398 preserve_function_body_p): Update.
e70670cf
JH
2399 * ipa-reference.c (propagate): Update.
2400 (write_node_summary_p): Update.
2401 * toplev.c (wrapup_global_declaration_2): Update.
2402 * cgraphunit.c (cgraph_analyze_function): Rename to ...
2403 (analyze_function) ... this one.
2404 (cgraph_process_new_functions): Update.
2405 (cgraph_reset_node): Export.
2406 (cgraph_finalize_function): Update.
2407 (cgraph_add_new_function): Update.
2408 (process_function_and_variable_attributes): Update.
2409 (varpool_finalize_decl): Update.
2410 (symbol_finalized): Remove.
2411 (symbol_finalized_and_needed): Rename to ...
2412 (symbol_defined_and_needed): ... update.
2413 (cgraph_analyze_functions): Update.
2414 (handle_alias_pairs): Update.
2415 (mark_functions_to_output): Update.
2416 (assemble_thunk): Update.
2417 (output_in_order): Update.
2418 (output_weakrefs): Update.
2419 (finalize_compilation_unit): Update.
2420 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2421 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2422 input_node, input_varpool_node): Update.
2423 * dbxout.c (dbxout_expand_expr): Update.
2424 * cgraphclones.c (cgraph_clone_node): Update.
2425 (cgraph_copy_node_for_versioning): Update.
2426 (cgraph_materialize_clone): Update.
2427 (cgraph_materialize_all_clones): Update.
2428 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2429 propagate_pure_const, propagate_nothrow): Update.
2430 * lto-streamer-out.c (lto_output, write_symbol): Update.
2431 * ipa-utils.c (ipa_reverse_postorder): Update.
2432 * ipa-inline.c (can_inline_edge_p): Update.
2433 (update_caller_keys, ipa_inline): Update.
2434 * dwarf2out.c (reference_to_unused,
2435 premark_types_used_by_global_vars_helper): Update.
2436 * tree-eh.c (tree_could_trap_p): Update.
2437 * ipa-split.c (consider_split, execute_split_functions): Update.
2438 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
2439 has_addr_references_p): Update; move ahead in file for better
2440 readability.
e70670cf
JH
2441 (process_references): Simplify.
2442 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2443 bodies are removed.
2444 (cgraph_comdat_can_be_unshared_p): Make static.
2445 (cgraph_externally_visible_p): Update.
2446 (varpool_externally_visible_p): Update.
2447 (function_and_variable_visibility): Update.
2448 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2449 ipa_tm_mark_force_output_node): Update.
2450 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2451 estimate_edge_devirt_benefit, inline_generate_summary,
2452 inline_write_summary): Update.
2453 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2454 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
2455 (ipa_print_node_params, ipa_prop_read_section,
2456 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
2457 * varasm.c (mark_decl_referenced): Update.
2458 (assemble_alias, dump_tm_clone_pairs): Update.
2459 * tree-inline.c (copy_bb): Update.
2460 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2461 Update.
2462 * symtab.c (dump_symtab_base): Print new flags.
2463 (verify_symtab_base): Verify new flags.
2464 (symtab_alias_ultimate_target): New function.
2465 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2466 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2467 Update.
c1e183a9
UB
2468 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2469 Update.
e70670cf
JH
2470 * i386.c (ix86_get_function_versions_dispatcher,
2471 ix86_generate_version_dispatcher_body): Update.
2472 (fold_builtin_cpu): Use varpool_add_new_variable.
2473 * varpool.c (varpool_remove_initializer): Break out from ...
2474 (varpool_remove_node): ... this one.
2475 (dump_varpool_node, varpool_node_for_asm,
2476 cgraph_variable_initializer_availability, varpool_analyze_node,
2477 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
2478 varpool_finalize_named_section_flags, varpool_create_variable_alias):
2479 Update.
e70670cf 2480
182802ad
JH
24812013-05-29 Jan Hubicka <jh@suse.cz>
2482
2483 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2484
8190b609
ER
24852013-05-29 Easwaran Raman <eraman@google.com>
2486
2487 PR tree-optimization/57442
2488 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2489 when control exits the main loop.
2490
69f5aa9b
SKS
24912013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
2492
2493 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2494 and RX600.
c1e183a9 2495 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
2496 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2497 * rx/t-rx: Add rx100 under multi library matches option for nofpu
2498 option.
2499
4b847da9
BS
25002013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2501
2502 PR tree-optimization/57441
2503 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2504 Don't limit size of incr_vec to number of candidates.
2505
4fc43c39
SE
25062013-05-29 Steve Ellcey <sellcey@imgtec.com>
2507
2508 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2509 and mips16 directories.
c1e183a9 2510 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
2511 (MULTILIB_DIRNAMES): Ditto.
2512 (MULTILIB_EXCEPTIONS): Add new exceptions.
2513 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2514 (MULTILIB_DIRNAMES): Ditto.
2515 (MULTILIB_EXCEPTIONS): Add new exceptions.
2516
a5350ddc
CSS
25172012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2518 Marcus Shawcroft <marcus.shawcroft@arm.com>
2519
2520 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2521 SYMBOL_TINY_ABSOLUTE.
2522 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2523 SYMBOL_TINY_ABSOLUTE.
2524 (aarch64_expand_mov_immediate): Likewise.
2525 (aarch64_classify_symbol): Likewise.
2526 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2527 Permit SYMBOL_TINY_ABSOLUTE.
2528 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2529
17f4d4bf
CSS
25302013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2531 Marcus Shawcroft <marcus.shawcroft@arm.com>
2532
2533 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2534 Refactor if/switch. Replace gcc_assert with if.
2535
c0186656
GG
25362013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2537
2538 * config/i386/i386.c (initial_ix86_tune_features): Enable
2539 FP Reassociation for AMD bdver1 and bdver2.
2540
d20188f3
MJ
25412013-05-29 Martin Jambor <mjambor@suse.cz>
2542
2543 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2544 and IMAGPART_EXPR do not occur within other handled_components.
2545
292cba13
RB
25462013-05-29 Richard Biener <rguenther@suse.de>
2547
2548 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2549 access on whether the use is in the BB we currently try to
2550 vectorize.
2551 (vect_bb_vectorization_profitable_p): Pass the BB we currently
2552 vectorize to vect_bb_slp_scalar_cost.
2553
6eddf228
RB
25542013-05-29 Richard Biener <rguenther@suse.de>
2555
2556 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2557 computing scalar cost offsetted by stmts that are kept live
2558 by scalar uses.
2559 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2560 for computation of scalar cost.
2561
7df36117
SE
25622013-05-28 Steve Ellcey <sellcey@mips.com>
2563
2564 * config/mips/mips-cpus.def (mips32r2): Change processor type.
2565
36536d79
BI
25662013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2567
2568 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2569 array notation built-in reduction functions.
2570 * doc/passes.texi (Passes): Added documentation about changes done
2571 for Cilk Plus.
2572 * doc/invoke.texi (C Dialect Options): Added documentation about
2573 the -fcilkplus flag.
2574 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2575 (BUILTINS_DEF): Depend on cilkplus.def.
2576 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
2577 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2578 * cilkplus.def: New file.
2579
b49eefa5
JR
25802013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
2581
2582 PR rtl-optimization/57439
2583 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2584
9daf6dbb
ER
25852013-05-28 Easwaran Raman <eraman@google.com>
2586
2587 PR tree-optimization/57337
2588 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2589 (find_insert_point): Correctly identify the insertion point
2590 when two statements with the same UID is compared.
2591
fbd7e877
RB
25922013-05-28 Richard Biener <rguenther@suse.de>
2593
2594 PR tree-optimization/56787
2595 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2596 from the list of data references.
2597 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2598 clobbers.
2599 (vect_analyze_loop_operations): Likewise.
2600 (vect_transform_loop): Remove clobbers.
2601
bbba1117
MJ
26022013-05-28 Martin Jambor <mjambor@suse.cz>
2603
2604 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2605 and REALPART_EXPRs have scalar type.
2606
bd388c2a
RB
26072013-05-28 Richard Biener <rguenther@suse.de>
2608
2609 PR tree-optimization/57411
2610 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2611 virtual operands.
2612 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2613 virtual operand propagation.
2614
2f56a311
EB
26152013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2616
2617 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2618 destination register for bmasksi_vis.
2619 (vector_init_bshuffle): Likewise.
2620 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2621
5c3eacbb
EB
26222013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2623
2624 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2625 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2626 mode if the instruction isn't available in the original mode.
2627 * config/sparc/sparc.opt (mfix-ut699): New option.
2628 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2629 (divdf3): Turn into expander.
2630 (divdf3_nofix): New insn.
2631 (divdf3_fix): Likewise.
2632 (divsf3): Disable if -mfix-ut699.
2633 (sqrtdf2): Turn into expander.
2634 (sqrtdf2_nofix): New insn.
2635 (sqrtdf2_fix): Likewise.
2636 (sqrtsf2): Disable if -mfix-ut699.
2637
a1756c0a
RB
26382013-05-27 Richard Biener <rguenther@suse.de>
2639
2640 PR middle-end/57412
2641 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2642 block for the new loop.
2643
5a892248
RB
26442013-05-27 Richard Biener <rguenther@suse.de>
2645
2646 PR tree-optimization/57343
2647 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2648 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2649 (number_of_iterations_cond): Do not build the folded tree.
2650
d1de852b
RB
26512013-05-27 Richard Biener <rguenther@suse.de>
2652
2653 Revert
2654 PR middle-end/57381
2655 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2656 OEP_CONSTANT_ADDRESS_OF retained.
2657
2658 PR tree-optimization/57417
2659 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2660 for unchanged base.
2661 (set_ssa_val_to): Compare addresses using
2662 get_addr_base_and_unit_offset.
2663
7894bc6b
JR
26642013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
2665
2666 PR rtl-optimization/56833
2667 * postreload.c (move2add_record_mode): New function.
2668 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2669 (move2add_use_add2_insn): Use move2add_record_sym_value.
2670 (move2add_use_add3_insn): Likewise.
2671 (reload_cse_move2add): Use move2add_valid_value_p and
2672 move2add_record_mode. Invalidate call-clobbered and REG_INC
2673 affected regs by setting reg_mode to VOIDmode.
2674 (move2add_note_store): Don't pretend the inside of a SUBREG is
2675 the actual destination. Invalidate single/leading registers by
2676 setting reg_mode to VOIDmode.
2677 Use move2add_record_sym_value, move2add_valid_value_p and
2678 move2add_record_mode.
2679
b03be25f
RB
26802013-05-27 Richard Biener <rguenther@suse.de>
2681
2682 PR tree-optimization/57396
2683 * tree-affine.c (double_int_constant_multiple_p): Properly
2684 return false for val == 0 and div != 0.
2685
44e88db2
RS
26862013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2687
2688 * config/mips/mips.h: Use #elif in preprocessor conditions.
2689
3b859704
RS
26902013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2691
2692 PR target/53916
2693 * config/mips/constraints.md (kl): New constraint.
2694 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2695 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
2696 constraint for operand 0. Split after CSE for MIPS16. Emit a move
2697 from LO for MIPS16.
2698 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2699
c979d5f5
RS
27002013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2701
2702 PR target/55777
2703 * config/mips/mips.c (mips_can_inline_p): New function.
2704 (TARGET_CAN_INLINE_P): Define.
2705
8e90de43
SB
27062013-05-25 Steven Bosscher <steven@gcc.gnu.org>
2707
2708 * sched-int.h (ds_t, dw_t): Make unsigned int.
2709 Fix documentation that describes how all the ds_t bits are used.
2710 Reserve the last bit for delayed-branch scheduling.
2711 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2712 (BITS_PER_DEP_WEAK): Fix definition and documentation.
2713 (gen_dep_weak_1): Remove prototype.
2714 * sched-deps.c (get_dep_weak_1): Make static.
2715 * target.def (speculate_insn, needs_block_p, gen_spec_check,
2716 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2717 * doc/tm.texi: Regenerate.
2718 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2719
cb5cb194
SB
27202013-05-24 Steven Bosscher <steven@gcc.gnu.org>
2721
2722 PR debug/56950
2723 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2724
5bd93ff6
NS
27252013-05-24 Nathan Sidwell <nathan@codesourcery.com>
2726 Sandra Loosemore <sandra@codesourcery.com>
2727
2728 * config.gcc (powerpc-*): Allow native for with-cpu.
2729
2343af65
JL
27302013-05-24 Jeff Law <law@redhat.com>
2731
2732 PR tree-optimization/57124
2733 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2734 conversion feeding a condition if the range has an overflow
2735 if -fstrict-overflow. Add warnings for when we do make the
2736 transformation.
2737
3ad695b9
DC
27382013-05-24 Dehao Chen <dehao@google.com>
2739
04960246 2740 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
2741 (locus_discrim_hasher): Likewise.
2742 (locus_discrim_hasher::hash): Likewise.
2743 (locus_discrim_hasher::equal): Likewise.
2744
82338059
MJ
27452013-05-24 Martin Jambor <mjambor@suse.cz>
2746
2747 PR tree-optimization/57294
2748 * cgraph.h (ipa_record_stmt_references): Declare.
2749 * cgraphbuild.c (ipa_record_stmt_references): New function.
2750 (build_cgraph_edges): Use ipa_record_stmt_references.
2751 (rebuild_cgraph_edges): Likewise.
2752 (cgraph_rebuild_references): Likewise.
2753 * ipa-prop.c (ipa_modify_call_arguments): Discard references
2754 associated with the old statement and build references from the
2755 newly built statements.
2756 * ipa-ref.c (ipa_remove_stmt_references): New function.
2757 * ipa-ref.h (ipa_remove_stmt_references): Declare.
2758
1ccd4874
VM
27592013-05-24 Vladimir Makarov <vmakarov@redhat.com>
2760
55805e54 2761 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 2762 mem-mem moves.
55805e54 2763 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 2764 too.
55805e54 2765 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
2766 secondary memory moves.
2767 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
2768 reg set up in the current insn.
2769
25e25c73
DC
27702013-05-24 Dehao Chen <dehao@google.com>
2771
04960246 2772 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
2773 hash function.
2774 (locus_descrim_hasher::equal): Likewise.
04960246 2775 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
2776 (make_edges): Likewise.
2777 (next_discriminator_for_locus): Likewise.
2778 (same_line_p): Likewise.
2779 (assign_discriminators): Likewise.
2780 (make_cond_expr_edges): Likewise.
2781 (make_gimple_switch_edges): Likewise.
2782 (make_goto_expr_edges): Likewise.
2783 (make_gimple_asm_edges): Likewise.
2784
50d38551
IB
27852013-05-24 Ian Bolton <ian.bolton@arm.com>
2786
2787 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2788 X format specifier to only display bottom 16 bits.
2789 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2790 immediate to match for operand 2, since it will be masked.
2791
aea0101d
RB
27922013-05-24 Richard Biener <rguenther@suse.de>
2793
2794 PR tree-optimization/57287
2795 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2796 all SSA names that occur in abnormal PHIs.
2797
634e03d3
AI
27982013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2799
2800 PR tree-ssa/57385
2801 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2802 that index is not negative.
2803
b17c024f
EB
28042013-05-24 Eric Botcazou <ebotcazou@adacore.com>
2805
2806 PR rtl-optimization/55177
2807 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2808 (simplify_byte_swapping_operation): New.
2809 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2810 (simplify_relational_operation_1): Deal with BSWAP.
2811
46aeac1b
RH
28122013-05-23 Richard Henderson <rth@redhat.com>
2813
2814 PR target/56742
2815 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2816 (ix86_reorg): Call it.
2817
70cc1536
UB
28182013-05-23 Uros Bizjak <ubizjak@gmail.com>
2819
2820 PR target/57379
2821 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2822 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2823 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2824
b3851501
CB
28252013-05-23 Christian Bruel <christian.bruel@st.com>
2826
2827 PR debug/57351
2828 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2829
4e194912
CSS
28302013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2831 Marcus Shawcroft <marcus.shawcroft@arm.com>
2832
2833 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2834 * config/aarch64/constraints.md (Usa): Remove.
2835 * doc/md.texi (AArch64 Usa): Remove.
2836
83f8c414
CSS
28372013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2838 Marcus Shawcroft <marcus.shawcroft@arm.com>
2839
2840 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2841 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2842 * config/aarch64/predicates.md (aarch64_const_address): Remove.
2843 (aarch64_mov_operand): Use aarch64_mov_operand_p.
2844
b5574232
VP
28452013-05-23 Vidya Praveen <vidyapraveen@arm.com>
2846
2847 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2848 instruction (AdvSIMD).
2849 * config/aarch64/aarch64-builtins.c
2850 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2851 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2852
76c36cb1 28532013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
2854
2855 PR middle-end/57347
2856 * tree.h (contains_bitfld_component_ref_p): Declare.
2857 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
2858 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
2859 caller.
7d2fb524
MJ
2860 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2861 not access a bit-field. Assert all final offsets are byte-aligned.
2862
ce521ae6
RB
28632013-05-23 Richard Biener <rguenther@suse.de>
2864
2865 PR tree-optimization/57380
2866 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2867 least one invariant or re-used load.
2868 * passes.c (init_optimization_passes): Move pass_phiprop before
2869 pass_forwprop.
2870
75c7257f
JG
28712013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
2872
2873 * config/aarch64/aarch64-simd.md
2874 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2875
af6d44b5
RB
28762013-05-23 Richard Biener <rguenther@suse.de>
2877
2878 PR middle-end/57381
2879 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2880 OEP_CONSTANT_ADDRESS_OF retained.
2881
bd3647bf
JJ
28822013-05-23 Jakub Jelinek <jakub@redhat.com>
2883
2884 PR middle-end/57344
70cc1536
UB
2885 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2886 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 2887
a55757ea
RB
28882013-05-23 Richard Biener <rguenther@suse.de>
2889
2890 PR rtl-optimization/57341
2891 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2892 instead of true_dependence.
2893
cfb00b41
DM
28942013-05-22 David Malcolm <dmalcolm@redhat.com>
2895
dd1c676f
DM
2896 * bb-reorder.c (branch_threshold): Make const.
2897 (exec_threshold): Ditto.
cfb00b41 2898
f62511da
MM
28992013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2900 Pat Haugen <pthaugen@us.ibm.com>
2901 Peter Bergner <bergner@vnet.ibm.com>
2902
2903 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2904 documentation for the power8 crypto builtins.
2905
2906 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2907
2908 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2909 macros for defining power8 builtin functions.
2910 (BU_P8V_AV_2): Likewise.
2911 (BU_P8V_AV_P): Likewise.
2912 (BU_P8V_VSX_1): Likewise.
2913 (BU_P8V_OVERLOAD_1): Likewise.
2914 (BU_P8V_OVERLOAD_2): Likewise.
2915 (BU_CRYPTO_1): Likewise.
2916 (BU_CRYPTO_2): Likewise.
2917 (BU_CRYPTO_3): Likewise.
2918 (BU_CRYPTO_OVERLOAD_1): Likewise.
2919 (BU_CRYPTO_OVERLOAD_2): Likewise.
2920 (XSCVSPDP): Fix typo, point to the correct instruction.
2921 (VCIPHER): Add power8 crypto builtins.
2922 (VCIPHERLAST): Likewise.
2923 (VNCIPHER): Likewise.
2924 (VNCIPHERLAST): Likewise.
2925 (VPMSUMB): Likewise.
2926 (VPMSUMH): Likewise.
2927 (VPMSUMW): Likewise.
2928 (VPERMXOR_V2DI): Likewise.
2929 (VPERMXOR_V4SI: Likewise.
2930 (VPERMXOR_V8HI: Likewise.
2931 (VPERMXOR_V16QI: Likewise.
2932 (VSHASIGMAW): Likewise.
2933 (VSHASIGMAD): Likewise.
2934 (VPMSUM): Likewise.
2935 (VPERMXOR): Likewise.
2936 (VSHASIGMA): Likewise.
2937
2938 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2939 __CRYPTO__ if the crypto instructions are available.
2940 (altivec_overloaded_builtins): Add support for overloaded power8
2941 builtins.
2942
2943 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2944 support for power8 crypto builtins.
2945 (builtin_function_type): Likewise.
2946 (altivec_init_builtins): Add support for builtins that take vector
2947 long long (V2DI) arguments.
2948
2949 * config/rs6000/crypto.md: New file, define power8 crypto
2950 instructions.
2951
29522013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2953 Pat Haugen <pthaugen@us.ibm.com>
2954 Peter Bergner <bergner@vnet.ibm.com>
2955
2956 * doc/invoke.texi (Option Summary): Add power8 options.
2957 (RS/6000 and PowerPC Options): Likewise.
2958
2959 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2960 constraints.md instead of rs6000.h. Reorder w* constraints. Add
2961 wm, wn, wr documentation.
2962
2963 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2964 registers if direct move instructions are enabled.
2965 (wn): New constraint for no registers.
2966 (wq): New constraint for quad word even GPR registers.
2967 (wr): New constraint if 64-bit instructions are enabled.
2968 (wv): New constraint if power8 vector instructions are enabled.
2969 (wQ): New constraint for quad word memory locations.
2970
2971 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2972 constraint for 0..15 for crypto instructions.
2973 (gpc_reg_operand): If VSX allow registers in VSX registers as well
2974 as GPR and floating point registers.
2975 (int_reg_operand): New predicate to match only GPR registers.
2976 (base_reg_operand): New predicate to match base registers.
2977 (quad_int_reg_operand): New predicate to match even GPR registers
2978 for quad memory operations.
2979 (vsx_reg_or_cint_operand): New predicate to allow vector logical
2980 operations in both GPR and VSX registers.
2981 (quad_memory_operand): New predicate for quad memory operations.
2982 (reg_or_indexed_operand): New predicate for direct move support.
2983
2984 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2985 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2986 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2987 (POWERPC_MASKS): Add power8 options.
2988 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2989 various options.
2990
2991 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2992 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2993
2994 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2995 (-mpower8-fusion): New power8 options.
2996 (-mpower8-fusion-sign): Likewise.
2997 (-mpower8-vector): Likewise.
2998 (-mcrypto): Likewise.
2999 (-mdirect-move): Likewise.
3000 (-mquad-memory): Likewise.
3001
3002 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3003 power8.
3004 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3005 registers.
70cc1536 3006 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
3007 (rs6000_debug_vector_unit): Add p8_vector.
3008 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3009 definitions. Also print fusion state.
3010 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3011 (rs6000_builtin_mask_calculate): Add power8 builtin support.
3012 (rs6000_option_override_internal): Add support for power8.
3013 (rs6000_common_init_builtins): Add debugging for skipped builtins
3014 if -mdebug=builtin.
3015 (rs6000_adjust_cost): Add power8 support.
3016 (rs6000_issue_rate): Likewise.
3017 (insn_must_be_first_in_group): Likewise.
3018 (insn_must_be_last_in_group): Likewise.
3019 (force_new_group): Likewise.
3020 (rs6000_register_move_cost): Likewise.
3021 (rs6000_opt_masks): Likewise.
3022
3023 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3024 power8 capable assembler, default to power7 options.
3025 (TARGET_DIRECT_MOVE): Likewise.
3026 (TARGET_CRYPTO): Likewise.
3027 (TARGET_P8_VECTOR): Likewise.
3028 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3029 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3030 (VECTOR_MEM_P8_VECTOR_P): Likewise.
3031 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3032 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3033 (TARGET_XSCVDPSPN): Likewise.
3034 (TARGET_XSCVSPDPN): Likewsie.
3035 (TARGET_SYNC_HI_QI): Likewise.
3036 (TARGET_SYNC_TI): Likewise.
3037 (MASK_CRYPTO): Likewise.
3038 (MASK_DIRECT_MOVE): Likewise.
3039 (MASK_P8_FUSION): Likewise.
3040 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
3041 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3042 temporary used by some of the direct move instructions to get two FP
3043 temporary registers does not force creation of a stack frame.
f62511da
MM
3044 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3045 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3046 that any VSX registers are tieable, even if they are also an
3047 Altivec vector mode.
3048 (r6000_reg_class_enum): Add wm, wr, wv constraints.
3049 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3050 (RS6000_BTM_CRYPTO): Likewise.
3051 (RS6000_BTM_COMMON): Likewise.
3052
3053 * config/rs6000/rs6000.md (cpu attribute): Add power8.
3054 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3055 (enum rs6000_vector): Add power8 vector support.
3056
73a1a707
RR
30572013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3058
3059 PR target/19599
3060 PR target/57340
3061 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3062 (any_sibcall_could_use_r3): this and handle indirect calls.
3063 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3064
d28073d4
BS
30652013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3066
3067 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3068
bee0b10c
RB
30692013-05-22 Richard Biener <rguenther@suse.de>
3070
3071 PR middle-end/57349
3072 * profile.c (branch_prob): Do not split blocks that are
3073 abnormally receiving from ECF_RETURNS_TWICE functions.
3074
98409b51
RS
30752013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3076
3077 * recog.c (offsettable_address_addr_space_p): Fix calculation of
3078 address mode. Move pointer mode initialization to the same place.
3079
c0602ab8
MZ
30802013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3081
3082 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3083 while it has any effect.
3084
4f7a634e
ER
30852013-05-21 Easwaran Raman <eraman@google.com>
3086
3087 PR tree-optimization/57322
9daf6dbb
ER
3088 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3089 UID of the statement added to the BB to be 1.
4f7a634e 3090
a4ce1258
JJ
30912013-05-21 Jakub Jelinek <jakub@redhat.com>
3092
3093 PR tree-optimization/57331
70cc1536
UB
3094 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3095 of conversion from pointer type to integral type with integer.
a4ce1258 3096
1b14621a
MJ
30972013-05-21 Martin Jambor <mjambor@suse.cz>
3098
3099 PR lto/57289
3100 * ipa-prop.c (ipa_read_node_info): Process param_used and
3101 controlled_uses in the same order as when writing.
3102
e60661f0
MG
31032013-05-21 Magnus Granberg <baldrick@free.fr>
3104
3105 PR plugins/56754
ee49aa34 3106 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 3107
4a61be9a
RB
31082013-05-21 Richard Biener <rguenther@suse.de>
3109
3110 PR tree-optimization/57318
3111 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3112 estimate stmts with side-effects as likely eliminated.
3113
c52da5f7
RB
31142013-05-21 Richard Biener <rguenther@suse.de>
3115
3116 PR tree-optimization/57330
3117 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3118 preserve the call stmts fntype.
3119
7ec67e2a
RB
31202013-05-21 Richard Biener <rguenther@suse.de>
3121
3122 PR tree-optimization/57303
3123 * tree-ssa-sink.c (statement_sink_location): Improve killing
3124 stmt detection and properly handle self-assignments.
3125
b112d513
CB
31262013-05-21 Christian Bruel <christian.bruel@st.com>
3127
55805e54
YR
3128 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3129 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
3130 registers. Set register size out of the PARALLEL loop.
3131
14c2ec26
OE
31322013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
3133
3134 PR target/56547
3135 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3136 (*fmasf4, *fmasf4_media): New insns.
3137
da734fa1
RS
31382013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3139
3140 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3141 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3142 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3143 (mips_idiv_insns): Update the comments to say that the returned
3144 instruction counts are in units of BASE_INSN_LENGTH.
3145 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3146 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
3147 using 2 rather than 4 as the length of indirect MIPS16 and
3148 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
3149 length of a NOP. Don't divide MIPS16 lengths by 2.
3150 (mips16_split_long_branches): Assume a branch is long if the
3151 length is greater than 4 rather than 8.
3152 * config/mips/mips.md (length): Give MIPS16 lengths directly,
3153 rather than multiplying them by 2. Multiply instruction counts
3154 by BASE_INSN_LENGTH rather than 4.
3155 (*jump_mips16, tls_get_tp_mips16_<mode>)
3156 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3157
13719e8b
RS
31582013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3159
3160 * config/mips/mips.md (extended_mips16): Remove branch case.
3161 (length): Remove duplicated extended_mips16 test.
3162
c3850d14
RS
31632013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3164
3165 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3166
8da2e059
RS
31672013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
3168
3169 * recog.h (Recog_data): Rename to...
3170 (recog_data_d): ...this.
3171 (recog_data): Update accordingly.
3172 * recog.c (recog_data): Likewise.
3173 * reload.c (save_recog_data): Likewise.
3174 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3175 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3176
2df013f3
JB
31772013-05-17 Julian Brown <julian@codesourcery.com>
3178
3179 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3180 found in a REG_EQUAL note, invalidate it.
3181
933f507d
ER
31822013-05-17 Easwaran Raman <eraman@google.com>
3183
3184 * tree-ssa-reassoc.c (find_insert_point): New function.
3185 (insert_stmt_after): Likewise.
3186 (get_def_stmt): Likewise.
3187 (ensure_ops_are_available): Likewise.
3188 (not_dominated_by): Likewise.
3189 (rewrite_expr_tree): Do not move statements beyond what is
3190 necessary. Remove call to swap_ops_for_binary_stmt...
3191 (reassociate_bb): ... and move it here.
3192 (build_and_add_sum): Assign UIDs for new statements.
3193 (linearize_expr): Likewise.
3194 (do_reassoc): Renumber gimple statement UIDs.
3195
e01c7cca
JH
31962013-05-17 Jan Hubicka <jh@suse.cz>
3197
3198 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3199 weakrefs.
3200 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
3201 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3202 weakrefs.
e01c7cca
JH
3203 (output_weakrefs): Update.
3204
c3272a92
PCC
32052013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
3206 Martin Jambor <mjambor@suse.cz>
3207
3208 PR middle-end/57276
3209 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3210 value that corresponds to the given aggval is found in values vector.
3211
11c2aa39
UB
32122013-05-17 Uros Bizjak <ubizjak@gmail.com>
3213
3214 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3215 sse, sse2, sse3, ssse3 and sse4a flags to options.
3216
abecc8c6
DM
32172013-05-17 David Malcolm <dmalcolm@redhat.com>
3218
3219 * gengtype-state.c: (s_expr_writer): New class, to handle
3220 prettifying of output layout of s-expressions.
3221 (state_writer): New class, to write out gtype.state.
3222 (state_written_type_count): Move this variable into member data of
3223 state_writer.
3224 (s_expr_writer::s_expr_writer): New code: constructor for new class
3225 (state_writer::state_writer(): ditto
3226 (s_expr_writer::write_new_line): New function
3227 (s_expr_writer::write_any_indent): ditto
3228 (s_expr_writer::begin_s_expr): ditto
3229 (s_expr_writer::end_s_expr): ditto
3230 (write_state_fileloc): convert to method of state_writer...
3231 (state_writer:: write_state_fileloc): ...and use methods of
3232 s_expr_writer to write indentation into the gtype.state output file
3233 to visually represent the hierarchical structure of the list
3234 structures
3235 (write_state_fields): ditto, renaming to...
3236 (state_writer::write_state_fields)
3237 (write_state_a_string): ditto, renaming to...
3238 (state_writer::write_state_a_string)
3239 (write_state_string_option): ditto, renaming to...
3240 (state_writer::write_state_string_option)
3241 (write_state_type_option): ditto, renaming to...
3242 (state_writer::write_state_type_option)
3243 (write_state_nested_option): ditto, renaming to...
3244 (state_writer::write_state_nested_option)
3245 (write_state_option): ditto, renaming to...
3246 (state_writer::write_state_option)
3247 (write_state_options): ditto, renaming to...
3248 (state_writer::write_state_options)
3249 (write_state_lang_bitmap): ditto, renaming to...
3250 (state_writer::write_state_lang_bitmap)
3251 (write_state_version): ditto, renaming to...
3252 (state_writer::write_state_version)
3253 (write_state_scalar_type): ditto, renaming to...
3254 (state_writer::write_state_scalar_type)
3255 (write_state_string_type): ditto, renaming to...
3256 (state_writer::write_state_string_type)
3257 (write_state_undefined_type): ditto, renaming to...
3258 (state_writer::write_state_undefined_type)
3259 (write_state_struct_union_type): ditto, renaming to...
3260 (state_writer::write_state_struct_union_type)
3261 (write_state_struct_type): ditto, renaming to...
3262 (state_writer::write_state_struct_type)
3263 (write_state_user_struct_type): ditto, renaming to...
3264 (state_writer::write_state_user_struct_type)
3265 (write_state_lang_struct_type): ditto, renaming to...
3266 (state_writer::write_state_lang_struct_type)
3267 (write_state_param_struct_type): ditto, renaming to...
3268 (state_writer::write_state_param_struct_type)
3269 (write_state_pointer_type): ditto, renaming to...
3270 (state_writer::write_state_pointer_type)
3271 (write_state_array_type): ditto, renaming to...
3272 (state_writer::write_state_array_type)
3273 (write_state_gc_used): ditto, renaming to...
3274 (state_writer::write_state_gc_used)
3275 (write_state_common_type_content): ditto, renaming to...
3276 (state_writer::write_state_common_type_content)
3277 (write_state_type): ditto, renaming to...
3278 (state_writer::write_state_type)
3279 (write_state_pair_list): ditto, renaming to...
3280 (state_writer::write_state_pair_list)
3281 (write_state_pair): ditto, renaming to...
3282 (state_writer::write_state_pair)
3283 (write_state_typedefs): ditto, renaming to...
3284 (state_writer::write_state_typedefs)
3285 (write_state_structures): ditto, renaming to...
3286 (state_writer::write_state_structures)
3287 (write_state_param_structs): ditto, renaming to...
3288 (state_writer::write_state_param_structs)
3289 (write_state_variables): ditto, renaming to...
3290 (state_writer::write_state_variables)
3291 (write_state_srcdir): ditto, renaming to...
3292 (state_writer::write_state_srcdir)
3293 (write_state_files_list): ditto, renaming to...
3294 (state_writer::write_state_files_list)
3295 (write_state_languages): ditto, renaming to...
3296 (state_writer::write_state_languages)
3297 (write_state): create a state_writer instance and use it when
3298 writing out the state file
3299
d6545f29
MS
33002013-05-17 Mike Stump <mikestump@comcast.net>
3301
816a3f73 3302 PR rtl-optimization/57304
d6545f29
MS
3303 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3304 accessing DF_REF_REAL_LOC.
3305
38c821cf
JJ
33062013-05-17 Jakub Jelinek <jakub@redhat.com>
3307
3308 PR rtl-optimization/57281
3309 PR rtl-optimization/57300
3310 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3311 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3312 what the other splitter did if the registers are dead.
3313
2a293391
RB
33142013-05-17 Richard Biener <rguenther@suse.de>
3315
3316 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3317 MEM_REF offsets.
3318
17042d2b
JJ
33192013-05-17 Jakub Jelinek <jakub@redhat.com>
3320
3321 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3322 linking.
3323
5b115c1f
MP
33242013-05-17 Marek Polacek <polacek@redhat.com>
3325
11c2aa39
UB
3326 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3327 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 3328
52d84413
JJ
33292013-05-17 Jakub Jelinek <jakub@redhat.com>
3330
68119618
JJ
3331 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3332 vect_external_def oprnd1 with loop_vinfo, try to emit
3333 optional cast, negation and and stmts on the loop preheader
3334 edge instead of into the pattern def seq.
3335
52d84413
JJ
3336 PR tree-optimization/57051
3337 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3338 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3339
17b962bd
NC
33402013-05-16 Nick Clifton <nickc@redhat.com>
3341
3342 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3343 (rl78_is_naked_func): New function.
56aefbf7
UB
3344 (rl78_expand_prologue): Skip prologue generation for naked functions.
3345 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
3346 * doc/extend.texi (naked): Add RL78 to the list of processors
3347 that supports this attribute.
3348
b1a0f84e
JL
33492013-05-16 Jeff Law <law@redhat.com>
3350
3351 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3352
af0e415b
UB
33532013-05-16 Uros Bizjak <ubizjak@gmail.com>
3354
3355 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3356 cache parameters using detect_caches_amd also for CYRIX,
3357 NSC and TM2 signatures.
3358
19db293a
UB
33592013-05-16 Uros Bizjak <ubizjak@gmail.com>
3360 Dzianis Kahanovich <mahatma@eu.by>
3361
3362 PR target/45359
3363 PR target/46396
3364 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3365 VIA/Centaur processors and determine their cache parameters
3366 using detect_caches_amd.
3367
251a41b9
TJ
33682013-05-16 Teresa Johnson <tejohnson@google.com>
3369
3370 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3371 (rtl_verify_edges): New function.
3372 (rtl_verify_bb_insns): Ditto.
3373 (rtl_verify_bb_pointers): Ditto.
3374 (rtl_verify_bb_insn_chain): Ditto.
3375 (rtl_verify_fallthru): Ditto.
3376 (rtl_verify_bb_layout): Ditto.
3377 (rtl_verify_flow_info_1): Outline checks into new functions.
3378 (rtl_verify_flow_info): Ditto.
3379
f14540b6
SE
33802013-05-16 Steve Ellcey <sellcey@imgtec.com>
3381
3382 * cfghooks.c (copy_bbs): Add update_dominance argument.
3383 * cfghooks.h (copy_bbs): Update prototype.
3384 * tree-cfg.c (gimple_duplicate_sese_region):
3385 Add update_dominance argument.
3386 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3387 * tree-ssa-loop-ch.c (copy_loop_headers): Update
3388 gimple_duplicate_sese_region call.
3389 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3390 Update copy_bbs call.
3391 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3392 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3393
7e9a3abb
JJ
33942013-05-16 Jakub Jelinek <jakub@redhat.com>
3395
3396 * tree-vectorizer.h (NUM_PATTERNS): Increment.
3397 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3398 vect_recog_rotate_pattern.
3399 (vect_recog_rotate_pattern): New function.
3400
427b248d
JM
34012013-05-16 Jason Merrill <jason@redhat.com>
3402
3403 * Makefile.in (LLINKER): New variable.
3404 (mostlyclean): Remove link mutex.
3405 * configure.ac: Handle --enable-link-mutex.
3406 * lock-and-run.sh: New script.
3407
b871e3d2
RR
34082013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3409
3410 PR target/19599
3411 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3412 for NULL decl.
3413
ce858126
RO
34142013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3415
3416 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3417
798d3d04
GY
34182013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
3419
3420 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3421 * config/arm/arm.c (next_consecutive_mem): New function.
3422 (gen_movmem_ldrd_strd): Likewise.
3423 * config/arm/arm.md (movmemqi): Update condition and code.
3424 (unaligned_loaddi, unaligned_storedi): New patterns.
3425
0baddc45
RO
34262013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3427
3428 * config.gcc: Obsolete *-*-solaris2.9*.
3429 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3430
aa9d5bcf
RB
34312013-05-16 Richard Biener <rguenther@suse.de>
3432
3433 * passes.c (init_optimization_passes): Move pass_parallelize_loops
3434 earlier, after GRAPHITE transforms and IV canonicalization.
3435
5a0f4dd3
JJ
34362013-05-16 Jakub Jelinek <jakub@redhat.com>
3437
3438 * omp-low.c (extract_omp_for_data): For collapsed loops,
3439 if at least one of the loops is known at compile time to
3440 iterate zero times, set count to 0.
3441 (expand_omp_regimplify_p): New function.
3442 (expand_omp_for_generic): For collapsed loops, if at least
3443 one of the loops isn't known to iterate at least once,
3444 add runtime check with setting count to 0.
3445 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3446 For unsigned types if it isn't known at compile time that
3447 the loop will iterate at least once, add runtime check to bypass
3448 the whole loop if initial condition isn't true.
3449
e3753785
NS
34502013-05-16 Nathan Sidwell <nathan@codesourcery.com>
3451
3452 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3453
43bb4dd1
MG
34542013-05-16 Marc Glisse <marc.glisse@inria.fr>
3455
3456 PR middle-end/57286
3457 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3458 transformations to avoid an infinite loop.
3459
3571dde6
MP
34602013-05-16 Marek Polacek <polacek@redhat.com>
3461
3462 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3463
b8b3f0ca
LE
34642013-05-15 Leif Ekblad <leif@rdos.net>
3465
3466 * config/i386/i386.c (ix86_decompose_address): Use
3467 DEFAULT_TLS_SEG_REG to access TLS segment register.
3468 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3469 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3470 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3471
e299a383
RS
34722013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
3473
3474 PR target/57260
3475 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3476 sibling calls to functions that would normally be lazily bound,
3477 unless $gp is call-clobbered.
3478
e7208ea3
UB
34792013-05-15 Uros Bizjak <ubizjak@gmail.com>
3480
19db293a 3481 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 3482 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
3483 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3484 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
3485 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3486 of TARGET_3DNOW.
3487 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3488
e7413f3d
AS
34892013-05-15 Andreas Schwab <schwab@suse.de>
3490
3491 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3492 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
3493 third operand.
3494
ad4db775
TJ
34952013-05-15 Teresa Johnson <tejohnson@google.com>
3496
3497 * loop-unroll.c (report_unroll_peel): Check decision before
3498 emitting unroll/peel message.
3499
af205f67
TJ
35002013-05-15 Teresa Johnson <tejohnson@google.com>
3501
3502 * function.h (has_bb_partition): New rtl_data flag.
3503 (bb_reorder_complete): Ditto.
3504 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3505 instead of flag_reorder_blocks_and_partition.
3506 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3507 with some enhancements.
3508 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3509 * bb-reorder.c (connect_traces): Check for has_bb_partition
3510 instead of flag_reorder_blocks_and_partition.
3511 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3512 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3513 verify_hot_cold_block_grouping.
3514 (partition_hot_cold_basic_blocks): Set has_bb_partition.
3515
9adcfa3c
RR
35162013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3517
3518 PR target/19599
3519 * config/arm/predicates.md (call_insn_operand): New predicate.
3520 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
3521 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3522 if insn is not a tail call.
3523 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3524 registers.
3525 * config/arm/arm.h (enum reg_class): New caller save register class.
3526 (REG_CLASS_NAMES): Likewise.
3527 (REG_CLASS_CONTENTS): Likewise.
3528 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3529 without decls.
3530
ccb3ad87
RB
35312013-05-15 Richard Biener <rguenther@suse.de>
3532
3533 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3534 of MSG_OPTIMIZED_LOCATIONS.
3535 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3536 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3537 message.
3538 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3539 of MSG_OPTIMIZED_LOCATIONS.
3540 (execute_vect_slp): Likewise.
3541 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3542 (vect_create_cond_for_alias_checks): Likewise.
3543 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3544 (vect_recog_widen_mult_pattern): Likewise.
3545 (vect_recog_widen_sum_pattern): Likewise.
3546 (vect_recog_over_widening_pattern): Likewise.
3547 (vect_recog_widen_shift_pattern): Likewise.
3548 (vect_recog_vector_vector_shift_pattern): Likewise.
3549 (vect_recog_divmod_pattern): Likewise.
3550 (vect_recog_mixed_size_cond_pattern): Likewise.
3551 (vect_recog_bool_pattern): Likewise.
3552 (vect_pattern_recog_1): Likewise.
3553
48b1474e
MJ
35542013-05-15 Martin Jambor <mjambor@suse.cz>
3555
3556 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3557 non-functions to builtin_unreachable.
3558 * ipa-inline-transform.c (inline_call): Do not assert estimates were
3559 correct when new direct edges were discovered.
3560
9de04252
MJ
35612013-05-15 Martin Jambor <mjambor@suse.cz>
3562
3563 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3564 header, print symbol order instead of node uid, print more information
3565 about indirect edge targets.
3566 (ipa_make_edge_direct_to_target): Print symbol order instead of node
3567 uids.
3568 (ipa_make_edge_direct_to_target): Likewise.
3569 (remove_described_reference): Likewise.
3570 (propagate_controlled_uses): Likewise.
3571 (ipa_print_node_params): Also print symbol order.
3572 (ipcp_transform_function): Print symbol order instead of node uids.
3573 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3574 (cgraph_get_create_real_symbol_node): Likewise.
3575 * ipa-cp.c (print_lattice): Likewise.
3576 (print_all_lattices): Likewise.
3577 (determine_versionability): Likewise.
3578 (initialize_node_lattices): Likewise.
3579 (estimate_local_effects): Likewise.
3580 (update_profiling_info): Likewise.
3581 (create_specialized_node): Likewise.
3582 (perhaps_add_new_callers): Likewise.
3583 (decide_about_value): Likewise.
3584 (decide_whether_version_node): Likewise.
3585 (identify_dead_nodes): Likewise.
3586 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3587 (dump_inline_summary): Likewise.
3588 (estimate_node_size_and_time): Likewise.
3589 (inline_analyze_function): Likewise.
3590 * ipa-inline.c (report_inline_failed_reason): Likewise.
3591 (want_early_inline_function_p): Likewise.
3592 (edge_badness): Likewise.
3593 (update_edge_key): Likewise.
3594 (inline_small_functions): Likewise. Add dumping of order to two other
3595 dumps.
3596 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3597 instead of node uids.
3598 (propagate_pure_const): Likewise.
3599 (propagate_pure_const): Likewise.
3600 * ipa-utils.c (dump_cgraph_node_set): Likewise.
3601 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3602 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3603 of node uids.
3604 * tree-pretty-print.c (dump_function_header): Likewise.
3605 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3606 Print symbol order instead of node uids.
3607
1dd03b91
AK
36082013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3609
3610 * config/s390/s390.c (s390_register_move_cost): Don't impose the
3611 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3612
fdf6a7b9
RB
36132013-05-15 Richard Biener <rguenther@suse.de>
3614
3615 PR tree-optimization/57275
3616 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3617 return value for fail to do runtime alias checks for gather loads.
3618
2d6e4603
JH
36192013-05-15 Jan Hubicka <jh@suse.cz>
3620
3621 PR lto/57038
3622 PR lto/47375
e7208ea3
UB
3623 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3624 weakrefs are not external.
3625 (lto_symtab_merge_decls): Fix thinko when dealing with
3626 non-lto_symtab decls.
2d6e4603
JH
3627 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3628 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3629 * varpool.c (dump_varpool_node): Dump more flags.
3630
83f44b39
GG
36312013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3632
3633 * config/i386/i386.c (processor_alias_table): Add instruction
3634 FSGSBASE for AMD bdver3 architecture.
3635
2e55d062
JJ
36362013-05-14 Jakub Jelinek <jakub@redhat.com>
3637
3638 * tree.c (warn_deprecated_use): Print file:line using locus color.
3639 * diagnostic.c (diagnostic_report_current_module): Print file:line
3640 and file:line:column using locus color.
3641
0bfdb81e
MS
36422013-05-14 Mike Stump <mikestump@comcast.net>
3643
3644 * gdbinit.in: Add __null.
3645
a508ef22
MS
36462013-05-14 Mike Stump <mikestump@comcast.net>
3647
3648 * recog.h: Rename struct recog_data to Recog_data.
3649 * recog.c: Likewise.
3650 * reload.c (can_reload_into): Likewise.
3651 * config/picochip/picochip.c: Likewise.
3652
e7180acb
MS
36532013-05-14 Mike Stump <mikestump@comcast.net>
3654
3655 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3656
61216c26
SB
36572013-05-14 Steven Bosscher <steven@gcc.gnu.org>
3658
fd6beed4
SB
3659 * resource.h (struct resources): Remove unch_memory member.
3660 (CLEAR_RESOURCE): Don't clear unch_memory.
3661 * resource.c (mark_referenced_resources): Don't set it.
3662 (mark_set_resources): Likewise.
3663 (mark_target_live_regs): Don't clear it.
3664 (init_resource_info): Likewise.
3665 * reorg.c (resource_conflicts_p): Don't compare it.
3666 (redundant_insn): Don't set it.
3667
61216c26
SB
3668 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3669 Remove prototypes.
3670 * emit-rtl.c (next_label): Remove unused function.
3671 (skip_consecutive_labels, link_cc0_insns): Move to ...
3672 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3673 only place where these functions are used, and make them static.
3674
418d1b87
MG
36752013-05-14 Marc Glisse <marc.glisse@inria.fr>
3676
3677 * fold-const.c (fold_negate_expr): Handle vectors.
3678 (fold_truth_not_expr): Make it static.
3679 (fold_invert_truthvalue): New static function.
3680 (invert_truthvalue_loc): Handle vectors. Do not call
3681 fold_truth_not_expr directly.
3682 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3683 <TRUTH_NOT_EXPR>: Do not cast to boolean.
3684 (fold_comparison): Handle vector constants.
3685 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3686 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3687 * tree.h (fold_truth_not_expr): Remove declaration.
3688
fc21784d
JG
36892013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
3690
3691 * config/aarch64/aarch64-simd.md
3692 (aarch64_vcond_internal<mode>): Rename to...
3693 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3694 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3695 float modes. Clarify all iterator modes.
3696 (vcond<mode><mode>): Use new name for vcond expanders.
3697 (vcond<v_cmp_result><mode>): Likewise.
3698 (vcondu<mode><mode>: Likewise.
3699 * config/aarch64/iterators.md (VDQF_COND): New.
3700
d4c52634
MG
37012013-05-14 Marc Glisse <marc.glisse@inria.fr>
3702
3703 PR bootstrap/57266
3704 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3705 variable for the shift amount. Check that we shift by non-negative
3706 amounts.
3707
2b261262
CLT
37082013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
3709
3710 PR target/42017
3711 * config/arm/arm.h (EPILOGUE_USES): Only return true
3712 for LR_REGNUM after epilogue_completed.
3713
6e022d7b
JR
37142013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
3715
3716 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 3717 is error_mark_node.
6e022d7b 3718
56cf7859
RO
37192013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3720
3721 PR target/57261
3722 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3723 and Solaris 11+/x86 with gld.
3724 * configure: Regenerate.
3725
75776c6d
JJ
37262013-05-14 Jakub Jelinek <jakub@redhat.com>
3727
3728 * expmed.c (expand_shift_1): Canonicalize rotates by
3729 constant bitsize / 2 to bitsize - 1.
7f998021 3730 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
3731 case ROTATERT>: Likewise.
3732
3733 Revert:
3734 2013-05-10 Jakub Jelinek <jakub@redhat.com>
3735
3736 * config/i386/i386.md (rotateinv): New code attr.
3737 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3738 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3739 roll $31, %eax, etc.
3740
df35498a
RB
37412013-05-14 Richard Biener <rguenther@suse.de>
3742
3743 PR middle-end/57235
3744 * tree-eh.c (sink_clobbers): Give up for successors with
3745 multiple predecessors and no virtual uses.
3746
cc6e7ece
EB
37472013-05-14 Eric Botcazou <ebotcazou@adacore.com>
3748
3749 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3750 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3751
f778dd4d
JJ
37522013-05-14 Jakub Jelinek <jakub@redhat.com>
3753
3754 PR middle-end/57251
3755 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3756 the case when both op0 and op1 have VOIDmode.
3757
bad4df9b
KP
37582013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3759
3760 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3761 in multiply-accumulate mode.
3762
56f3e9ac
GW
37632013-05-13 Guozhi Wei <carrot@google.com>
3764
3765 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3766
a3d7ab92
KT
37672013-05-13 Kai Tietz <ktietz@redhat.com>
3768
3769 PR target/56975
3770 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 3771 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 3772 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 3773 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
3774 (ix86_expand_prologue): Likewise.
3775 (ix86_expand_split_stack_prologue): Likewise.
3776 (legitimate_pic_address_disp_p): Likewise.
3777 (legitimize_pic_address): Likewise.
3778 (legitimize_tls_address): Likewise.
3779 (legitimize_pe_coff_symbol): Likewise.
3780 (output_pic_addr_const): Likewise.
3781 (construct_plt_address): Likewise.
3782 (ix86_expand_call): Likewise.
3783 (x86_output_mi_thunk): Likewise.
3784 (x86_function_profiler): Likewise.
3785
c59b7e28
SN
37862013-05-13 Sofiane Naci <sofiane.naci@arm.com>
3787
3788 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3789 similar switch cases.
3790 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3791 (aarch64_simd_mov_to_<mode>low): Delete.
3792 (aarch64_simd_mov_to_<mode>high): Delete.
3793 (move_lo_quad_<mode>): Add w<-r alternative.
3794 (aarch64_simd_move_hi_quad_<mode>): Likewise.
3795 (aarch64_simd_mov_from_*): Update type attribute.
3796 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3797 statement.
3798
5f28524a
JH
37992013-05-13 Jan Hubicka <jh@suse.cz>
3800
3801 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3802 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
3803 ix86_expand_epilogue, emit_i387_cw_initialization,
3804 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3805 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 3806
ae6fa899
JJ
38072013-05-13 Jakub Jelinek <jakub@redhat.com>
3808
3809 PR tree-optimization/45216
3810 PR tree-optimization/57157
3811 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3812 the (-Y) & (B - 1) variant if OP is |.
3813 * expmed.c (expand_shift_1): For rotations by const0_rtx just
3814 return shifted. Use (-op1) & (prec - 1) as other_amount
3815 instead of prec - op1.
3816
4502fe8d
MJ
38172013-05-13 Martin Jambor <mjambor@suse.cz>
3818
3819 PR middle-end/42371
3820 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3821 (ipa_constant_data): New type.
3822 (ipa_jump_func): Use ipa_constant_data to hold information about
3823 constant jump functions.
3824 (ipa_get_jf_constant): Adjust to jump function type changes.
3825 (ipa_get_jf_constant_rdesc): New function.
3826 (ipa_param_descriptor): New field controlled_uses.
3827 (ipa_get_controlled_uses): New function.
3828 (ipa_set_controlled_uses): Likewise.
3829 * ipa-ref.h (ipa_find_reference): Declare.
3830 * ipa-prop.c (ipa_cst_ref_desc): New type.
3831 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3832 changes.
3833 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
3834 New parameter cs. Adjust all callers.
3835 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3836 (remove_described_reference): New function.
3837 (jfunc_rdesc_usable): Likewise.
3838 (try_make_edge_direct_simple_call): Decrement controlled use count,
3839 attempt to remove reference if it hits zero.
3840 (combine_controlled_uses_counters): New function.
3841 (propagate_controlled_uses): Likewise.
3842 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3843 (ipa_edge_duplication_hook): Duplicate reference descriptions.
3844 (ipa_print_node_params): Print described use counter.
3845 (ipa_write_jump_function): Adjust to jump function type changes.
3846 (ipa_read_jump_function): New parameter CS, pass it to
3847 ipa_set_jf_constant. Adjust caller.
3848 (ipa_write_node_info): Stream controlled use count
3849 (ipa_read_node_info): Likewise.
3850 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3851 asserting.
3852 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3853 count. Remove cloning-added reference if it reaches zero.
3854 * ipa-ref.c (ipa_find_reference): New function.
3855
0864bfc2
GG
38562013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3857
e7208ea3 3858 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
3859 alignment values for AMD BD and BT architectures.
3860
640bfeb2
MG
38612013-05-13 Marc Glisse <marc.glisse@inria.fr>
3862
3863 * tree-vect-generic.c (uniform_vector_p): Move ...
3864 * tree.c (uniform_vector_p): ... here.
3865 * tree.h (uniform_vector_p): Declare it.
3866 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3867 into a scalar.
3868
3a60f32b
JJ
38692013-05-13 Jakub Jelinek <jakub@redhat.com>
3870
198fe1bf
JJ
3871 PR tree-optimization/57230
3872 * tree-ssa-strlen.c (handle_char_store): Record length for
3873 array store from STRING_CST.
3874
3a60f32b
JJ
3875 PR tree-optimization/57230
3876 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3877 check.
3878
566be57c
JR
38792013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
3880
3881 * config/epiphany/epiphany.c (epiphany_init): Check size of
3882 NUM_MODES_FOR_MODE_SWITCHING.
3883 (epiphany_expand_prologue):
3884 Remove CONFIG_REGNUM initial value handling code.
3885 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3886 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 3887 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
3888 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3889 Don't return 1 for FP_MODE_NONE.
3890 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3891 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3892 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3893 * config/epiphany/epiphany.md (save_config): New pattern.
3894
0f2c2331
UB
38952013-05-12 Uros Bizjak <ubizjak@gmail.com>
3896
3897 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3898
5b3f93c7
UB
38992013-05-10 Uros Bizjak <ubizjak@gmail.com>
3900
3901 * config/i386/i386.md (memory): Handle sseishft1.
3902 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3903 (*vec_extractv2di_1): Ditto.
3904
1f873f0e
VM
39052013-05-10 Vladimir Makarov <vmakarov@redhat.com>
3906
3907 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3908 saved registers.
3909
341427fa 39102013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
3911
3912 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3913 Add mthumb/march=armv7-a multilib.
3914 Add mthumb/march=armv7-r multilib.
3915 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3916
9e69bdde
RC
39172013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
3918
3919 * config/v850/t-rtems: Add more multilibs.
3920
9ff09a22
RB
39212013-05-10 Richard Biener <rguenther@suse.de>
3922
3923 PR tree-optimization/57214
3924 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3925 not propagate from SSA names that occur in abnormal PHI nodes.
3926
a5e0cd1d
MG
39272013-05-10 Marc Glisse <marc.glisse@inria.fr>
3928
3929 * stor-layout.c (element_precision): New function.
3930 * machmode.h (element_precision): Declare it.
3931 * tree.c (build_minus_one_cst): New function.
3932 (element_precision): Likewise.
3933 * tree.h (build_minus_one_cst): Declare new function.
3934 (element_precision): Likewise.
3935 * fold-const.c (operand_equal_p): Use element_precision.
3936 (fold_binary_loc): Handle vector types.
3937 * convert.c (convert_to_integer): Use element_precision.
3938 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3939 separately.
3940
cb2558bc
RS
39412013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
3942
3943 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3944 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3945 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3946 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3947 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3948 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3949 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3950 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3951 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3952 (Uuw8): New constraints.
3953 (Usb4): Move into alphabetical order.
3954 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3955 (sd8_operand, ub8_operand, uw8_operand): New predicates.
3956 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3957 previously unnamed patterns.
3958 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3959 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3960 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3961 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3962 of set_attr_alternative/if_then_else. Use extended_mips16 instead
3963 of specific lengths.
3964
cb3b8d33
JJ
39652013-05-10 Jakub Jelinek <jakub@redhat.com>
3966
6f93c008
JJ
3967 * config/i386/i386.md (rotateinv): New code attr.
3968 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3969 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3970 roll $31, %eax, etc.
3971
cb3b8d33
JJ
3972 PR tree-optimization/45216
3973 PR tree-optimization/57157
3974 * tree-ssa-forwprop.c (simplify_rotate): New function.
3975 (ssa_forward_propagate_and_combine): Call it.
3976
afb119be
RB
39772013-05-10 Richard Biener <rguenther@suse.de>
3978
3979 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3980 disable peeling when we version for aliasing.
3981 (vector_alignment_reachable_p): Honor explicit user alignment.
3982 (vect_supportable_dr_alignment): Likewise.
3983 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3984 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3985 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3986 then peeling to arrange for the cost-model check to come first.
3987
01ae4861
AM
39882013-05-10 Alan Modra <amodra@gmail.com>
3989
3990 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3991 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3992 * configure: Regenerate.
3993
ebc9a431
AM
39942013-05-10 Alan Modra <amodra@gmail.com>
3995
3996 PR target/55033
3997 * varasm.c (default_elf_select_section): Move !DECL_P check..
3998 (get_named_section): ..to here before calling get_section_name.
3999 Adjust assertion.
4000 (default_section_type_flags): Add DECL_P check.
4001 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4002 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4003
d4bca93c
JR
40042013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
4005
4006 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4007 When using gen_stack_adjust_str with a register offset, add a
4008 REG_FRAME_RELATED_EXPR note.
4009
60ca9a65
UB
40102013-05-09 Uros Bizjak <ubizjak@gmail.com>
4011
4012 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4013 (*vec_extractv4si_zext_mem): Ditto.
4014 (*vec_extractv2di): Add 0->x and x->x alternatives.
4015 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4016 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4017
a3409c02
JM
40182013-05-09 Jason Merrill <jason@redhat.com>
4019
0138d6b2
JM
4020 N3639 C++1y VLA support
4021 * gimplify.c (gimplify_vla_decl): Don't touch an existing
4022 DECL_VALUE_EXPR.
4023
a3409c02
JM
4024 * tree.c (build_constructor_va): New.
4025 * tree.h: Declare it.
4026
66e6b990
MJ
40272013-05-09 Martin Jambor <mjambor@suse.cz>
4028
4029 PR lto/57084
4030 * gimple-fold.c (canonicalize_constructor_val): Call
4031 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4032
64cfa6c0
JH
40332013-05-09 Jan Hubicka <jh@suse.cz>
4034 Richard Biener <rguenther@suse.de>
4035
4036 PR lto/54095
4037 * symtab.c (symtab_make_decl_local): Do not add private names.
4038
c3167b00
JH
40392013-05-09 Jan Hubicka <jh@suse.cz>
4040
4041 PR lto/54095
4042 * symtab.c (insert_to_assembler_name_hash): Handle clones.
4043 (unlink_from_assembler_name_hash): Likewise.
4044 (symtab_prevail_in_asm_name_hash, symtab_register_node,
4045 symtab_unregister_node, symtab_initialize_asm_name_hash,
4046 change_decl_assembler_name): Update.
4047
12dc6974
SN
40482013-05-09 Sofiane Naci <sofiane.naci@arm.com>
4049
4050 * config/aarch64/aarch64.md: New movtf split.
4051 (*movtf_aarch64): Update.
4052 (aarch64_movdi_tilow): Handle TF modes and rename to
4053 aarch64_movdi_<mode>low.
4054 (aarch64_movdi_tihigh): Handle TF modes and rename to
4055 aarch64_movdi_<mode>high
4056 (aarch64_movtihigh_di): Handle TF modes and rename to
4057 aarch64_mov<mode>high_di
4058 (aarch64_movtilow_di): Handle TF modes and rename to
4059 aarch64_mov<mode>low_di
4060 (aarch64_movtilow_tilow): Remove spurious whitespace.
4061 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4062 splits.
4063 (aarch64_print_operand): Update.
4064
227eb343
AM
40652013-05-09 Alan Modra <amodra@gmail.com>
4066
4067 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4068 powerpc64le.
4069 * configure: Regenerate.
4070
0b013847
UB
40712013-05-08 Uros Bizjak <ubizjak@gmail.com>
4072
4073 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4074 splitter preparation statements.
4075 * config/i386/sse.md (*vec_extract* splitters): Ditto.
4076 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4077 adjust_address_nv.
4078
1dc3d6e9
BS
40792013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4080
4081 * gimple-ssa-strength-reduction.c (count_candidates): Change
4082 return value to int.
4083 (analyze_candidates_and_replace): Change type of length to int.
4084
e61e7d28
UB
40852013-05-08 Uros Bizjak <ubizjak@gmail.com>
4086
4087 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4088 (*vec_extract<mode>): Use VI12_128 mode iterator.
4089 (*vec_extract<mode>_mem): Ditto.
4090 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4091 attribute.
4092
4fbfcf44
DN
40932013-05-08 Diego Novillo <dnovillo@google.com>
4094
4095 PR bootstrap/54659
4096
4097 Revert:
4fbfcf44
DN
4098 2012-08-17 Diego Novillo <dnovillo@google.com>
4099
e61e7d28
UB
4100 PR bootstrap/54281
4101 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4102 * config.in: Regenerate.
4103 * configure: Regenerate.
4104 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 4105
702d8703
JH
41062013-05-08 Jan Hubicka <jh@suse.cz>
4107
4108 PR lto/54095
4109 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4110 * cgraph.h (symtab_node_base): Add unique_name.
4111 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4112 input_overwrite_node, input_varpool_node): Stream unique_name.
4113 * cgraphclones.c (cgraph_create_virtual_clone,
4114 cgraph_function_versioning): Set unique_name.
4115 * ipa.c (function_and_variable_visibility): Set unique_name.
4116
8b28cf47
BS
41172013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4118
4119 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4120 (alloc_cand_and_find_basis): Restrict conditional candidate
4121 processing to CAND_MULTs.
4122
e86074fd
JH
41232013-05-08 Jan Hubicka <jh@suse.cz>
4124
4125 PR lto/54095
4126 lto-symtab.c (lto_symtab_symbol_p): New function.
4127 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4128 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4129 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4130 Skip static symbols.
4131
44398cbe
PC
41322013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
4133
4134 PR tree-optimization/57200
4135 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4136 Only call inform if the preceding warning_at returns true.
4137
f6bc1c4a
HS
41382013-05-07 Han Shen <shenhan@google.com>
4139
4140 * cfgexpand.c (record_or_union_type_has_array_p): New function.
4141 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4142 * common.opt (fstack-protector-strong): New option.
4143 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4144 * doc/invoke.texi (Optimization Options): Document
4145 "-fstack-protector-strong".
4146 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4147
4ffecb1f
SB
41482013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4149
4150 * config/mips/mips.c (mips_machine_reorg2): Return 0.
4151
5a107a0f
VM
41522013-05-07 Vladimir Makarov <vmakarov@redhat.com>
4153
4154 * ira.c (update_equiv_regs): Add insn having equiv memory even if
4155 it is not lhs of the insn.
4156 (setup_reg_equiv): Remove insn having equiv memory which it is not
4157 lhs of the insn.
4158 * lra-constraints.c (process_address): Try to improve generation
4159 code for address base + disp.
4160 (lra_constraints): Make correct the code for checking insn setting
4161 up backward equivalence. Remove insn only if it is in the init
4162 insn list.
4163 * lra-eliminations.c (update_reg_eliminate): Change return value.
4164 (lra_eliminate): Use the result.
4165
3f5783ea
UB
41662013-05-07 Uros Bizjak <ubizjak@gmail.com>
4167
4168 * config/i386/sse.md (ssescalarnummask): New mode attribute.
4169 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4170 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4171 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4172 register target operands.
4173 (*vec_extractv8hi_sse2): New pattern.
4174 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4175 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4176 (*vec_extract<mode>_mem): New insn and split pattern.
4177
8a5800b8
CL
41782013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
4179
4180 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4181 (TARGET_ASAN_SHADOW_OFFSET): Define.
4182 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4183 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4184
7bf55a70
BS
41852013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4186
4187 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4188 (incr_vec_index): Return -1 if increment not found.
4189 (create_add_on_incoming_edge): Assert if increment not found.
4190 (record_increment): Limit number of increments recorded.
4191 (all_phi_incrs_profitable): Return false if an increment not found.
4192 (replace_profitable_candidates): Don't process increments that were
4193 not recorded.
4194 (analyze_candidates_and_replace): Limit size of incr_vec.
4195
3f8825c0
RB
41962013-05-07 Richard Biener <rguenther@suse.de>
4197
4198 * calls.c (special_function_p): setjmp-like functions are leaf.
4199 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4200 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4201
fd4842cd
SN
42022013-05-07 Sofiane Naci <sofiane.naci@arm.com>
4203
4204 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4205 (aarch64_simd_mov<mode>): New expander.
4206 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4207 (aarch64_simd_mov_to_<mode>high): Likewise.
4208 (aarch64_simd_mov_from_<mode>low): Likewise.
4209 (aarch64_simd_mov_from_<mode>high): Likewise.
4210 (aarch64_dup_lane<mode>): Update.
4211 (aarch64_dup_lanedi): New instruction pattern.
4212 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4213 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4214
a7a7d10e
BS
42152013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4216
4217 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4218 (replace_mult_candidate): Remove unnecessary argument; remove
4219 unnecessary parameter from call to introduce_cast_before_cand.
4220 (replace_unconditional_candidate): Remove unnecessary parameter
4221 from call to replace_mult_candidate.
4222 (replace_conditional_candidate): Likewise.
4223 (insert_initializers): Use make_temp_ssa_name.
4224 (introduce_cast_before_cand): Remove unnecessary argument; use
4225 make_temp_ssa_name.
4226 (replace_one_candidate): Remove unnecessary argument; remove
4227 unnecessary parameter from calls to introduce_cast_before_cand.
4228 (replace_profitable_candidates): Remove unnecessary parameters
4229 from calls to replace_one_candidate.
4230
29105868
BS
42312013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4232
4233 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4234 phi def as possibly hiding a basis for a CAND_ADD whose operands
4235 have been commuted in the analysis.
4236 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4237
4095f9fa
N
42382013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4239
4240 * config/aarch64/aarch64.md
4241 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4242 shift value between 0-4.
4243
39e843e8
RB
42442013-05-07 Richard Biener <rguenther@suse.de>
4245
4246 * double-int.h (rshift): New overload.
4247 * double-int.c (rshift): New function.
4248 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4249 (create_reference_ops_from_ref): Remove.
4250 (vn_reference_insert): Use shared ops for constructing the
4251 reference and copy it.
4252
0a1a83cb
RB
42532013-05-07 Richard Biener <rguenther@suse.de>
4254
4255 PR middle-end/57190
4256 * tree-eh.c (sink_clobbers): Properly propagate
4257 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4258
43303d6f
JJ
42592013-05-07 Jakub Jelinek <jakub@redhat.com>
4260
ba7e83f8
JJ
4261 PR tree-optimization/57149
4262 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4263 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4264 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4265 uninit_undefined_value_p instead of ssa_undefined_value_p.
4266
43303d6f
JJ
4267 PR debug/57184
4268 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4269 for modifier == EXPAND_INITIALIZER.
4270
14523c25
AB
42712013-05-07 Anton Blanchard <anton@samba.org>
4272
4273 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4274 for powerpc64 little endian.
4275 * configure: Regenerate.
4276
cb7c8be9
GS
42772013-05-06 Graham Stott <grahams@btinternet.com>
4278
4279 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4280 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4281 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4282 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4283
42842013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
4285
4286 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4287 codes which allow non-lvalues.
4288
9a0ee7b0
MG
42892013-05-06 Marc Glisse <marc.glisse@inria.fr>
4290
4291 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4292 components are all 1s.
4293 (integer_minus_onep): New function.
4294 * tree.h (integer_minus_onep): Declare it.
4295 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4296 integer_minus_onep instead of integer_all_onesp.
4297
f2c17ea9
OE
42982013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4299
4300 PR target/52933
4301 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4302 variations of these patterns.
4303
f75e6a51
UB
43042013-05-06 Uros Bizjak <ubizjak@gmail.com>
4305
4306 * config/i386/i386.md (isa): Add x64_sse4 member.
4307 (enabled): Handle x64_sse4.
4308 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4309 instruction for 64bit SSE4_1 targets. Update insn attributes.
4310 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4311 instruction for SSE4_1 targets. Update insn attributes.
4312 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4313 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4314 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4315 const_1 selector.
4316 (*vec_extractv4si): Rename from *sse4_1_pextrd.
4317 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4318 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4319
a986d468
OE
43202013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4321
4322 PR target/57108
4323 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4324
382522cb
MK
43252013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
4326
4327 * final.c (do_assembler_dialects): Don't handle curly braces and
4328 vertical bar escaped by % as dialect delimiters.
4329 (output_asm_insn): Print curly braces and vertical bar if escaped
4330 by % and ASSEMBLER_DIALECT defined.
4331 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4332 * doc/tm.texi: Regenerated.
4333
fb0d5c60
SB
43342013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4335
fb0d5c60
SB
4336 * config/mips/mips.c: Include tree-pass.h.
4337 (mips_reorg): Split in pre- and post-dbr_schedule parts.
4338 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4339 (pass_mips_machine_reorg2): New machine specific pass.
4340 (insert_pass_mips_machine_reorg2): New pass plugin definition.
4341 (mips_option_override): Register the new pass.
4342 * rtl.h (cleanup_barriers): Remove prototype.
4343 (dbr_schedule): Likewise.
4344 * jump.c (cleanup_barriers): Make static.
4345 * reorg.c (dbr_schedule): Likewise.
4346
aa06a978
RB
43472013-05-06 Richard Biener <rguenther@suse.de>
4348
4349 PR tree-optimization/57185
4350 * tree-parloops.c (add_field_for_reduction): Handle anonymous
4351 SSA names properly.
4352
0b953bec
UB
43532013-05-06 Uros Bizjak <ubizjak@gmail.com>
4354
4355 PR target/57106
4356 * config/i386/i386.c (add_parameter_dependencies): Add dependence
4357 between "first_arg" and "insn", not "last" and "insn".
4358
28708525
WS
43592013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4360
4361 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4362 (find_candidates_in_block): Re-enable slsr_process_phi.
4363 (create_phi_basis): Fix double counting of candidate adjustment.
4364
0107dca2
RB
43652013-05-06 Richard Biener <rguenther@suse.de>
4366
4367 PR middle-end/57147
4368 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4369 the edge is also fallthru, preserve it and just clear the
4370 abnormal flag.
4371 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4372 also complex, preserve that and just clear the fallthru flag.
4373 * tree-inline.c (update_ssa_across_abnormal_edges): Also
4374 update virtual operands.
4375
470d4d13
AM
43762013-05-06 Alan Modra <amodra@gmail.com>
4377
4378 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4379 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4380 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4381 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4382 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4383 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4384
8f1dbf8d
AM
43852013-05-06 Alan Modra <amodra@gmail.com>
4386
4387 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4388 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
4389 (DEFAULT_ASM_ENDIAN): Define.
4390 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4391 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4392 Update -K PIC clause from sysv4.h.
4393 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4394 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4395
54890767
AM
43962013-05-06 Alan Modra <amodra@gmail.com>
4397
4398 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4399 twice for little-endian.
4400 (ashrdi3_no_power, ashrdi3): Support little-endian.
4401
2353515d
OE
44022013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4403
4404 PR target/55303
4405 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4406 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4407 related expanders.
4408 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4409 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4410 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4411 New predicates.
4412
33e67557
SB
44132013-05-05 Steven Bosscher <steven@gcc.gnu.org>
4414 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4415
4416 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4417 * config/pa/pa.opt: Make mbig-switch a no-op.
4418 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4419 (CASE_VECTOR_MODE): Always return SImode.
4420 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4421 for the !TARGET_BIG_SWITCH case.
4422 * config/pa/pa-linux.h: Likewise.
4423 * config/pa/pa-openbsd.h: Likewise.
4424 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4425 * config/pa/pa.md (short_jump): Remove define_insn.
4426 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4427 (casesi0): Remove define_insn.
4428 (type): Remove btable_branch.
4429 (pa_combine_type): Likewise.
4430 (in_nullified_branch_delay): Likewise.
4431 (in_call_delay): Likewise.
4432 (define_delay): Likewise.
4433 (define_insn_reservation "Z3"): Likewise.
4434 (define_insn_reservation "Z4"): Likewise.
4435 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4436 (pa_adjust_insn_length): Remove adjustment for btable branches.
4437 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4438 and mno-big-switch
4439
3095685e
UB
44402013-05-05 Uros Bizjak <ubizjak@gmail.com>
4441
4442 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4443 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4444 Add m->r,x alternatives.
4445 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4446 splitters using SWI48x mode iterator.
4447 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
4448 TARGET_64BIT. Add m->x alternative.
4449 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4450 Add o->x alternative. Enable for TARGET_SSE.
4451 (sse_storeq): Remove expander.
4452 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4453 with memory input operand.
4454 (*vec_extractv2di_1 splitter): New.
4455 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4456 * config/i386/i386.md (ssevecmodelower): New mode attribute.
4457
4b36ae28
SB
44582013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4459
4460 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
4461 (INT_LOWPART): Delete.
4462 (extract_MB): Adjust.
4463 (extract_ME): Adjust.
4464 (print_operand): Adjust.
4465
da226db2
SB
44662013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4467
4468 * config/rs6000/predicates.md (reg_or_add_cint_operand,
4469 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4470 (reg_or_logical_cint_operand, easy_fp_constant,
4471 logical_const_operand): Delete "CONST_DOUBLE" case.
4472 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4473 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 4474 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
4475 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4476 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4477 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4478 test.
4479 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4480 CONST_DOUBLE DImode/VOIDmode case.
4481 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4482 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4483 CONST_DOUBLE VOIDmode case.
4484 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4485 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4486 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4487 Delete CONST_DOUBLE case.
4488 (splitters for mov FMOVE64 const_double): Delete
4489 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4490 "HOST_BITS_PER_WIDE_INT >= 64" test.
4491 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4492 case.
4493 (mov DI const_double): Delete.
4494
40de22d6
JJ
44952013-05-04 Jakub Jelinek <jakub@redhat.com>
4496
4497 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4498 on op shows all bits zero in mode of a lowpart subreg, return zero.
4499
5ec6aff2
MM
45002013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4501
4502 PR target/57150
4503 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4504 to save TFmode registers and DImode to save TImode registers for
4505 caller save operations.
4506 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4507 mark being partially clobbered since they only use the first
4508 double word.
4509
4510 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4511 and TDmode only use the upper 64-bits of each VSX register.
4512
2cefad90
BS
45132013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4514
4515 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4516 (find_candidates_in_block): Disable slsr_process_phi.
4517
d6d7eee1
GW
45182013-05-03 Guozhi Wei <carrot@google.com>
4519
4520 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
4521 constructor to ...
4522 (build_init_ctor): ... here.
d6d7eee1 4523
9b92d12b
BS
45242013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4525
4526 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4527 (slsr_cand_d): Redefine def_phi.
4528 (stride_status, phi_adjust_status, count_phis_status): New enums.
4529 (find_phi_def): New.
4530 (find_basis_for_base_expr): New.
4531 (find_basis_for_candidate): Handle hidden bases.
4532 (alloc_cand_and_find_basis): Handle phi candidates.
4533 (slsr_process_phi): New.
4534 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4535 (create_mul_imm_cand): Likewise.
4536 (create_add_ssa_cand): Exclude phi base candidates.
4537 (create_add_imm_cand): Likewise.
4538 (slsr_process_cast): Likewise.
4539 (slsr_process_copy): Likewise.
4540 (find_candidates_in_block): Handle phi candidates.
4541 (dump_candidate): Likewise.
4542 (unconditional_cands): Delete.
4543 (unconditional_cands_with_known_stride_p): Delete.
4544 (phi_dependent_cand_p): New.
4545 (cand_increment): Handle phi-dependent candidates.
4546 (replace_dependent): Delete.
4547 (replace_mult_candidate): New.
4548 (replace_unconditional_candidate): New.
4549 (incr_vec_index): Move to avoid forward reference.
4550 (create_add_on_incoming_edge): New.
4551 (create_phi_basis): New.
4552 (replace_dependents): Delete.
4553 (replace_conditional_candidate): New.
4554 (phi_add_costs): New.
4555 (replace_uncond_cands_and_profitable_phis): New.
4556 (record_increment): Handle phi adjustments.
4557 (record_phi_increments): New.
4558 (record_increments): Handle phi adjustments.
4559 (phi_incr_cost): New.
4560 (lowest_cost_path): Handle phis.
4561 (total_savings): Likewise.
4562 (analyze_increments): Likewise.
4563 (ncd_with_phi): New.
4564 (ncd_of_cand_and_phis): New.
4565 (nearest_common_dominator_for_cands): Handle phi increments.
4566 (all_phi_incrs_profitable): New.
4567 (replace_profitable_candidates): Handle phi-dependent candidates.
4568 (analyze_candidates_and_replace): Likewise.
4569
68f073d4
TJ
45702013-05-03 Teresa Johnson <tejohnson@google.com>
4571
4572 PR bootstrap/57154
4573 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4574 do not exceed REG_BR_PROB_BASE.
4575
a4ee7cb9
JL
45762013-05-03 Jeff Law <law@redhat.com>
4577
ade67f70 4578 PR tree-optimization/57144
a4ee7cb9
JL
4579 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4580 operand of the condition will bit into the new type when eliminating
4581 a cast feeding a condition.
4582
47954c4e
JJ
45832013-05-03 Jakub Jelinek <jakub@redhat.com>
4584
4585 PR rtl-optimization/57130
3095685e
UB
4586 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4587 of COMPARE as in_code to the recursive call if needed.
47954c4e 4588
3c21604f
UB
45892013-05-03 Uros Bizjak <ubizjak@gmail.com>
4590
4591 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4592 (enabled): Handle new members.
4593 * config/i386/sse.md (*vec_concatv2si): Merge from
4594 *vec_concatv2si_sse2 and vec_concatv2si_sse.
4595 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4596
95c03b36
JR
45972013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
4598
4599 PR tree-optimization/57027
4600 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4601 for fnms opportunity, check we got the prerequisite kind
4602 of tree / gimple before using accessor functions.
4603
07bfc9ec
RB
46042013-05-03 Richard Biener <rguenther@suse.de>
4605
4606 * double-int.h (lshift): New overload without precision
4607 and arith argument.
4608 (operator *=, operator +=, operator -=): Move ...
4609 * double-int.c (operator *=, operator +=, operator -=): ... here
4610 and implement more efficiently.
4611 (mul_double_with_sign): Remove.
4612 (lshift_double): Adjust to take unsinged shift argument, push
4613 dispatching code to callers.
4614 (mul_double_wide_with_sign): Add early out for callers that
4615 are not interested in high parts or overflow.
4616 (lshift): New function.
4617 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4618 dispatch code here.
4619 (lrotate, rrotate): Use logical shifts.
4620 * expr.c (get_inner_reference): Use lshift.
4621 * fixed-value.c (do_fixed_divide): Likewise.
4622 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4623 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4624 (indirect_refs_may_alias_p): Likewise.
4625 (stmt_kills_ref_p_1): Likewise.
4626
7769bb64
VP
46272013-05-03 Vidya Praveen <vidyapraveen@arm.com>
4628
4629 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4630
1d0c8e5c
VP
46312013-05-03 Vidya Praveen <vidyapraveen@arm.com>
4632
4633 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4634 scalar form of FABD instruction.
4635
f15feaf9
VM
46362013-05-02 Vladimir Makarov <vmakarov@redhat.com>
4637
4638 * lra-constraints.c (process_alt_operands): Add checking alt
4639 number to choose the best alternative.
4640
d90e76d4
RB
46412013-05-02 Richard Biener <rguenther@suse.de>
4642
4643 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4644 bitmap and its handling.
4645 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4646
9f8e7a96
RB
46472013-05-02 Richard Biener <rguenther@suse.de>
4648
4649 PR middle-end/57140
4650 * tree-inline.c (copy_loops): Properly handle removed loops.
4651 (copy_cfg_body): Mark destination loops for fixup if source
4652 loops needed fixup.
4653
f3a81b39
GY
46542013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
4655
4656 PR target/56732
4657 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4658 generating simple_return for naked functions.
4659
7b920a9a
MJ
46602013-05-02 Martin Jambor <mjambor@suse.cz>
4661
4662 PR middle-end/56988
4663 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4664 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4665 flags match.
4666 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4667 ipa_agg_replacement_value structures.
4668 (known_aggs_to_agg_replacement_list): Likewise.
4669 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4670 (read_agg_replacement_chain): Likewise.
4671 (ipcp_transform_function): Also check that by_ref flags match.
4672
2c41c19d
RB
46732013-05-02 Richard Biener <rguenther@suse.de>
4674
4675 * graphds.h (struct graph): Add obstack member.
4676 * graphds.c (new_graph): Initialize obstack and allocate
4677 vertices from it.
4678 (add_edge): Allocate edge from the obstack.
3c21604f 4679 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 4680
8b47039c
TJ
46812013-05-02 Teresa Johnson <tejohnson@google.com>
4682
4683 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4684 divides.
4685 * cfg.c (update_bb_profile_for_threading): Ditto.
4686 * tree-inline.c (copy_bb): Ditto.
4687 (copy_edges_for_bb): Ditto.
4688 (initialize_cfun): Ditto.
4689 (copy_cfg_body): Ditto.
4690 (expand_call_inline): Ditto.
4691 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4692 (estimate_node_size_and_time): Ditto.
4693 (inline_merge_summary): Ditto.
4694 * cgraphclones.c (cgraph_clone_edge): Ditto.
4695 (cgraph_clone_node): Ditto.
4696 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4697 (compute_trg_info): Ditto.
4698
da65928c
IB
46992013-05-02 Ian Bolton <ian.bolton@arm.com>
4700
4701 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4702 S reg when fp attribute set.
4703 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4704
add3c965
IB
47052013-05-02 Ian Bolton <ian.bolton@arm.com>
4706
4707 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4708 New pattern.
4709 (*and_one_cmplsi3_compare0_uxtw): Likewise.
4710 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4711 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4712
fdd43ac4
RB
47132013-05-02 Richard Biener <rguenther@suse.de>
4714
4715 * tree-scalar-evolution.c (scev_info_hasher): Remove.
4716 (struct instantiate_cache_entry): New type.
4717 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4718 (struct instantiate_cache_type): New type.
4719 (set_instantiated_value, get_instantiated_value): Remove.
4720 (get_instantiated_value_entry): New function.
4721 (instantiate_scev_name): Use the new cache and adjust.
4722 (instantiate_scev_poly): Adjust.
4723 (instantiate_scev_binary): Likewise.
4724 (instantiate_array_ref): Likewise.
4725 (instantiate_scev_convert): Likewise.
4726 (instantiate_scev_not): Likewise.
4727 (instantiate_scev_3): Likewise.
4728 (instantiate_scev_2): Likewise.
4729 (instantiate_scev_r): Likewise.
4730 (instantiate_scev): Likewise.
4731 (resolve_mixers): Likewise.
4732
36ff9dfb
VM
47332013-05-01 Vladimir Makarov <vmakarov@redhat.com>
4734
4735 PR target/57091
4736 * lra-constraints.c (best_small_class_operands_num): Remove.
4737 (process_alt_operands): Remove small_class_operands_num. Take
4738 small classes operands into losers and only if the operand is not
4739 matched. Modify debugging output.
4740 (curr_insn_transform): Remove best_small_class_operands_num.
4741 Print insn name.
4742
36054fab
JG
47432013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4744
4745 * config/aarch64/aarch64-builtins.c
4746 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4747 * config/aarch64/aarch64-simd-builtins.def
4748 (reduc_splus_): Add new modes.
4749 (reduc_uplus_): New.
4750 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4751 (reduc_uplus_v4sf): Likewise.
4752 (reduc_splus_v4sf): Likewise.
4753 (aarch64_addv<mode>): Likewise.
4754 (reduc_uplus_<mode>): Likewise.
4755 (reduc_splus_<mode>): Likewise.
4756 (aarch64_addvv2di): Likewise.
4757 (reduc_uplus_v2di): Likewise.
4758 (reduc_splus_v2di): Likewise.
4759 (aarch64_addvv2si): Likewise.
4760 (reduc_uplus_v2si): Likewise.
4761 (reduc_splus_v2si): Likewise.
4762 (reduc_<sur>plus_<mode>): New.
4763 (reduc_<sur>plus_v2di): Likewise.
4764 (reduc_<sur>plus_v2si): Likewise.
4765 (reduc_<sur>plus_v4sf): Likewise.
4766 (aarch64_addpv4sf): Likewise.
4767 * config/aarch64/arm_neon.h
4768 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4769 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4770 add UNSPEC_SADDV, UNSPEC_UADDV.
4771 (SUADDV): New.
4772 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4773
6dce23a8
JG
47742013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4775
4776 * config/aarch64/arm_neon.h
4777 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4778
1598945b
JG
47792013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4780
4781 * config/aarch64/aarch64-builtins
4782 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4783
998eaf97
JG
47842013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4785
4786 * config/aarch64/aarch64-simd-builtins.def
4787 (reduc_smax_): New.
4788 (reduc_smin_): Likewise.
4789 (reduc_umax_): Likewise.
4790 (reduc_umin_): Likewise.
4791 (reduc_smax_nan_): Likewise.
4792 (reduc_smin_nan_): Likewise.
4793 (fmax): Remove.
4794 (fmin): Likewise.
4795 (smax): Update for V2SF, V4SF and V2DF modes.
4796 (smin): Likewise.
4797 (smax_nan): New.
4798 (smin_nan): Likewise.
4799 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4800 (<su><maxmin><mode>3): ...This, refactor.
4801 (s<maxmin><mode>3): New.
4802 (<maxmin_uns><mode>3): Likewise.
4803 (reduc_<maxmin_uns>_<mode>): Refactor.
4804 (reduc_<maxmin_uns>_v4sf): Likewise.
4805 (reduc_<maxmin_uns>_v2si): Likewise.
4806 (aarch64_<fmaxmin><mode>: Remove.
4807 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4808 new builtin names.
4809 (vmin<q>_f<32,64>): Likewise.
4810 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4811 (FMAXMIN): New.
4812 (su): Add mappings for smax, smin, umax, umin.
4813 (maxmin): New.
4814 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4815 (FMAXMIN): Rename as...
4816 (FMAXMIN_UNS): ...This.
4817 (maxminv): Remove.
4818 (fmaxminv): Likewise.
4819 (fmaxmin): Likewise.
4820 (maxmin_uns): New.
4821 (maxmin_uns_op): Likewise.
4822
bd11644e
JG
48232013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4824
4825 * config/aarch64/arm_neon.h
4826 (vac<ge, gt><sd>_f<32, 64>): Rename to...
4827 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4828 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4829
75dd5ace
JG
48302013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4831
4832 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4833 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4834
7c19979f
JG
48352013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4836
4837 * config/aarch64/aarch64-simd.md
4838 (vcond<mode>_internal): Handle special cases for constant masks.
4839 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4840 (vcondu<mode><mode>): Likewise.
4841 (vcond<v_cmp_result><mode>): New.
4842
bb60efd9
JG
48432013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4844
4845 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4846 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4847 * config/aarch64/aarch64-simd-builtins.def
4848 (cmeq): Update to BUILTIN_VALLDI.
4849 (cmgt): Likewise.
4850 (cmge): Likewise.
4851 (cmle): Likewise.
4852 (cmlt): Likewise.
4853 * config/aarch64/arm_neon.h
4854 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4855 to builtins or C as appropriate.
4856
889b9412
JG
48572013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4858
4859 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4860 (cmgeu): ...This.
4861 (cmhi): Rename to...
4862 (cmgtu): ...This.
4863 * config/aarch64/aarch64-simd.md
4864 (simd_mode): Add SF.
4865 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4866 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4867 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4868 (cstore<mode>_neg): ...This.
4869 * config/aarch64/iterators.md
4870 (VALLF): new.
4871 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4872 (COMPARISONS): New.
4873 (UCOMPARISONS): Likewise.
4874 (optab): Add missing comparisons.
4875 (n_optab): New.
4876 (cmp_1): Likewise.
4877 (cmp_2): Likewise.
4878 (CMP): Likewise.
4879 (cmp): Remove.
4880 (VCMP_S): Likewise.
4881 (VCMP_U): Likewise.
4882 (V_cmp_result): Add DF, SF modes.
4883 (v_cmp_result): Likewise.
4884 (v): Likewise.
4885 (vmtype): Likewise.
4886 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4887
0a7dbb76
GY
48882013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
4889
4890 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4891 define_insn to define_insn_and_split.
4892 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4893 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4894 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4895 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4896 (thumb2_negscc): Likewise.
4897
fb614ca6
GY
48982013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
4899
4900 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4901
9e64a0bf
GY
49022013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
4903
4904 * config/arm/thumb2.md: Remove trailing whitespaces.
4905
d6b28156
RS
49062013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4907
4908 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4909 Use gen_int_mode rather than GEN_INT.
4910
f91674c3
L
49112013-04-30 H.J. Lu <hongjiu.lu@intel.com>
4912
b0dec607 4913 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
4914 debug_gimple_stmt.
4915
3551257c
RB
49162013-04-30 Richard Biener <rguenther@suse.de>
4917
4918 PR middle-end/57122
3c21604f 4919 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 4920
4c1aff1c
RB
49212013-04-30 Richard Biener <rguenther@suse.de>
4922
4923 PR middle-end/57107
4924 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4925
54b8379a
AB
49262013-04-30 Andrey Belevantsev <abel@ispras.ru>
4927
4928 PR rtl-optimization/56957
4929 PR rtl-optimization/57105
54b8379a
AB
4930 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4931 variable. Use just INSN_UID for determining whether an insn
4932 should be only disconnected from the insn stream.
4933 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4934
abc27962
JJ
49352013-04-30 Jakub Jelinek <jakub@redhat.com>
4936
4937 PR tree-optimization/57104
4938 * tsan.c (instrument_expr): Don't instrument accesses to
4939 DECL_HARD_REGISTER VAR_DECLs.
4940
0fc822d0
RB
49412013-04-30 Richard Biener <rguenther@suse.de>
4942
4943 * function.h (loops_for_fn): New inline function.
4944 (set_loops_for_fn): Likewise.
4945 * cfgloop.h (place_new_loop): Add struct function parameter.
4946 (get_loop): Likewise.
4947 (get_loops): Likewise.
4948 (number_of_loops): Likewise.
4949 (fel_next): Adjust.
4950 (fel_init): Likewise.
4951 * cfg.c (get_loop_copy): Adjust.
4952 * cfgloop.c (flow_loops_dump): Likewise.
4953 (record_loop_exits): Likewise.
4954 (verify_loop_structure): Likewise.
4955 * cfgloopanal.c (mark_irreducible_loops): Likewise.
4956 (estimate_reg_pressure_cost): Likewise.
4957 (mark_loop_exit_edges): Likewise.
4958 * cfgloopmanip.c (place_new_loop): Likewise.
4959 (add_loop): Likewise.
4960 (duplicate_loop): Likewise.
4961 * graph.c (draw_cfg_nodes): Likewise.
4962 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4963 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4964 (extract_affine_chrec): Likewise.
4965 (build_scop_iteration_domain): Likewise.
4966 * graphite.c (graphite_initialize): Likewise.
4967 * ira-build.c (create_loop_tree_nodes): Likewise.
4968 (more_one_region_p): Likewise.
4969 (rebuild_regno_allocno_maps): Likewise.
4970 (mark_loops_for_removal): Likewise.
4971 (mark_all_loops_for_removal): Likewise.
4972 (remove_unnecessary_regions): Likewise.
4973 (ira_build): Likewise.
4974 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4975 * loop-init.c (fix_loop_structure): Likewise.
4976 (gate_rtl_move_loop_invariants): Likewise.
4977 (gate_rtl_unswitch): Likewise.
4978 (gate_rtl_unroll_and_peel_loops): Likewise.
4979 (rtl_doloop): Likewise.
4980 * lto-streamer-in.c (input_cfg): Likewise.
4981 * lto-streamer-out.c (output_cfg): Likewise.
4982 * modulo-sched.c (sms_schedule): Likewise.
4983 * predict.c (tree_estimate_probability): Likewise.
4984 (tree_estimate_probability_driver): Likewise.
4985 (estimate_loops): Likewise.
4986 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4987 (move_sese_region_to_fn): Likewise.
4988 (debug_loop_num): Likewise.
4989 * tree-chrec.c (chrec_evaluate): Likewise.
4990 (hide_evolution_in_other_loops_than_loop): Likewise.
4991 (chrec_component_in_loop_num): Likewise.
4992 (reset_evolution_in_loop): Likewise.
4993 (evolution_function_is_invariant_rec_p): Likewise.
4994 * tree-if-conv.c (main_tree_if_conversion): Likewise.
4995 * tree-inline.c (copy_loops): Likewise.
4996 (copy_cfg_body): Likewise.
4997 (tree_function_versioning): Likewise.
4998 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4999 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5000 Likewise.
5001 (add_to_evolution_1): Likewise.
5002 (scev_const_prop): Likewise.
5003 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5004 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5005 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5006 (tree_ssa_lim_initialize): Likewise.
5007 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5008 (verify_loop_closed_ssa): Likewise.
5009 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
5010 (tree_ssa_loop_im): Likewise.
5011 (tree_ssa_loop_unswitch): Likewise.
5012 (tree_vectorize): Likewise.
5013 (check_data_deps): Likewise.
5014 (tree_ssa_loop_ivcanon): Likewise.
5015 (tree_ssa_loop_bounds): Likewise.
5016 (tree_complete_unroll): Likewise.
5017 (tree_complete_unroll_inner): Likewise.
5018 (tree_parallelize_loops): Likewise.
5019 (tree_ssa_loop_prefetch): Likewise.
5020 (tree_ssa_loop_ivopts): Likewise.
5021 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5022 * tree-vectorizer.c (vectorize_loops): Likewise.
5023
37953bd3
MF
50242013-04-29 Mike Frysinger <vapier@gentoo.org>
5025
5026 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5027 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5028 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5029 with EABI_LINK_SPEC.
5030
f9ed28db
UB
50312013-04-29 Uros Bizjak <ubizjak@gmail.com>
5032
5033 PR target/44578
5034 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5035 alternative.
5036
deca73f5
VM
50372013-04-29 Vladimir Makarov <vmakarov@redhat.com>
5038
5039 PR target/57097
37953bd3 5040 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
5041 using memory for pseudos. Print cost dump for alternatives.
5042 Modify cost values for conflicts with early clobbers.
5043 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5044
fdca7d03
UB
50452013-04-29 Uros Bizjak <ubizjak@gmail.com>
5046
5047 PR target/57098
5048 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5049
0b064172
IB
50502013-04-29 Ian Bolton <ian.bolton@arm.com>
5051
5052 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5053 from/to S register.
5054 (movdi_aarch64): Support LDR/STR from/to D register.
5055
473cec55
IB
50562013-04-29 Ian Bolton <ian.bolton@arm.com>
5057
5058 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5059 or higher by default.
5060
a6f30e66
RB
50612013-04-29 Richard Biener <rguenther@suse.de>
5062
5063 PR middle-end/57075
5064 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5065 even if not adding abnormal edges for calls that can make
5066 abnormal gotos.
5067
0c2b2040
RB
50682013-04-29 Richard Biener <rguenther@suse.de>
5069
5070 PR middle-end/57103
5071 * tree-cfg.c (move_stmt_op): Fix condition under which to update
5072 TREE_BLOCK.
5073 (move_stmt_r): Remove redundant checking.
5074
f41f80f9
TJ
50752013-04-29 Teresa Johnson <tejohnson@google.com>
5076
5077 PR bootstrap/57077
5078 * basic-block.h (apply_scale): New function.
5079 (apply_probability): Use apply_scale.
5080 * gimple-streamer-in.c (input_bb): Ditto.
5081 * lto-streamer-in.c (input_cfg): Ditto.
5082 * lto-cgraph.c (merge_profile_summaries): Ditto.
5083 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 5084 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
5085 (copy_edges_for_bb): Ditto.
5086 (copy_cfg_body): Ditto.
5087
315bbd2e
TV
50882013-04-29 Tom de Vries <tom@codesourcery.com>
5089
5090 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5091 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5092 (tail_merge_optimize): Handle current_loops == NULL.
5093
ebbd90d8
JL
50942013-04-26 Jeff Law <law@redhat.com>
5095
5096 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5097 (simplify_cond_using_ranges): Generalize code to simplify
5098 COND_EXPRs where one argument is a constant and the other
5099 is an SSA_NAME created by an integral type conversion.
5100
8b9b57eb
KT
51012013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5102
5103 * config/arm/arm.md (store_minmaxsi): Use only when
5104 optimize_insn_for_size_p.
5105
9498e5dc
CB
51062013-04-29 Christian Bruel <christian.bruel@st.com>
5107
5108 PR target/57108
5109 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5110
6093bc06
RB
51112013-04-29 Richard Biener <rguenther@suse.de>
5112
5113 PR middle-end/57089
fdca7d03
UB
5114 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5115 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
5116 (expand_omp_for_generic): Properly add loops.
5117 (expand_omp_for_static_nochunk): Likewise.
5118 (expand_omp_for_static_chunk): Likewise.
5119 (expand_omp_for): For the degenerate case fixup loops.
5120 (expand_omp_sections): Fix default bb placement in loops.
5121 (expand_omp_atomic_pipeline): Properly add loops.
5122
84aacbfd
KT
51232013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5124
5125 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5126
8dee4479
TV
51272013-04-29 Tom de Vries <tom@codesourcery.com>
5128
5129 * tree-ssa-tail-merge.c: Update header comment.
5130
47934dc4
JG
51312013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5132
5133 * config/aarch64/arm_neon.h
5134 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5135 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5136 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5137 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5138 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5139 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5140 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5141 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5142
384be29f
JG
51432013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5144
5145 * config/aarch64/aarch64-simd.md
5146 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5147 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5148 fix_trunc, fixuns_trunc.
5149 (ftrunc<VDQF:mode>2): New.
5150 * config/aarch64/iterators.md (optab): Add fix, fixuns.
5151 (fix_trunc_optab): New.
5152
0386b123
JG
51532013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5154
5155 * config/aarch64/aarch64-builtins.c
5156 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5157 iceilf, lround, iroundf.
5158
00fcb892
UB
51592013-04-29 Uros Bizjak <ubizjak@gmail.com>
5160
5161 PR target/54349
5162 * config/i386/i386.h (enum ix86_tune_indices)
5163 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5164 New, split from X86_TUNE_INTER_UNIT_MOVES.
5165 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5166 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5167 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5168 (TARGET_INTER_UNIT_MOVES): Remove.
5169 * config/i386/i386.c (initial_ix86_tune_features): Update.
5170 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5171 (ix86_expand_convert_uns_didf_sse): Use
5172 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5173 (ix86_expand_vector_init_one_nonzero): Ditto.
5174 (ix86_expand_vector_init_interleave): Ditto.
5175 (inline_secondary_memory_needed): Return true for moves from SSE class
5176 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5177 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5178 * config/i386/constraints.md (Yi, Ym): Depend on
5179 TARGET_INTER_UNIT_MOVES_TO_VEC.
5180 (Yj, Yn): New constraints.
5181 * config/i386/i386.md (*movdi_internal): Change constraints of
5182 operand 1 from Yi to Yj and from Ym to Yn.
5183 (*movsi_internal): Ditto.
5184 (*movdf_internal): Ditto.
5185 (*movsf_internal): Ditto.
5186 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5187 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5188 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5189 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5190 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5191 * config/i386/sse.md (movdi_to_sse): Ditto.
5192 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5193 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5194 TARGET_INTER_UNIT_MOVES.
5195 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5196 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5197 instead of TARGET_INTER_UNIT_MOVES.
5198 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5199 operand 1 from Yi to Yj and from Ym to Yn.
5200
4c871069
JG
52012013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5202
5203 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5204 (float_truncate_hi_): Likewise.
5205 (float_extend_lo_): Likewise.
5206 (float_truncate_lo_): Likewise.
5207 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5208 (aarch64_float_extend_lo_v2df): Likewise.
5209 (vec_unpacks_hi_v4sf): Likewise.
5210 (aarch64_float_truncate_lo_v2sf): Likewise.
5211 (aarch64_float_truncate_hi_v4sf): Likewise.
5212 (vec_pack_trunc_v2df): Likewise.
5213 (vec_pack_trunc_df): Likewise.
5214
1709ff9b
JG
52152013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5216
5217 * config/aarch64/aarch64-builtins.c
5218 (aarch64_fold_builtin): Fold float conversions.
5219 * config/aarch64/aarch64-simd-builtins.def
5220 (floatv2si, floatv4si, floatv2di): New.
5221 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5222 * config/aarch64/aarch64-simd.md
5223 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5224 * config/aarch64/iterators.md (FLOATUORS): New.
5225 (optab): Add float, floatuns.
5226 (su_optab): Likewise.
5227
ce966824
JG
52282013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5229
5230 * config/aarch64/aarch64-builtins.c
5231 (aarch64_builtin_vectorized_function): Use new names for
5232 fcvt builtins.
5233 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5234 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5235 (fcvtzu): Split as...
5236 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5237 (fcvtas): Split as...
5238 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5239 (fcvtau): Split as...
5240 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5241 (fcvtps): Split as...
5242 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5243 (fcvtpu): Split as...
5244 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5245 (fcvtms): Split as...
5246 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5247 (fcvtmu): Split as...
5248 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5249 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5250 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5251 (lfrintnusf, lfrintnudf): Likewise.
5252 * config/aarch64/aarch64-simd.md
5253 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5254 define_insn.
5255 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5256 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5257 (fcvt_pattern): Likewise.
5258
b9de24fe
JG
52592013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5260
5261 * config/aarch64/aarch64-simd.md
5262 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5263 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5264
77a205be
JG
52652013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5266
5267 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5268 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5269 (vrnd<a,m,n,p>_f32): Implement using builtins.
5270 (vrnd<i,x><q>_f<32, 64>): New.
5271
0659ce6f
JG
52722013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5273
5274 * config/aarch64/aarch64-builtins.c
5275 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5276 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5277 (frintz): Rename to...
5278 (btrunc): ...this.
5279 (frintp): Rename to...
5280 (ceil): ...this.
5281 (frintm): Rename to...
5282 (floor): ...this.
5283 (frinti): Rename to...
5284 (nearbyint): ...this.
5285 (frintx): Rename to...
5286 (rint): ...this.
5287 (frinta): Rename to...
5288 (round): ...this.
5289 * config/aarch64/aarch64-simd.md
5290 (aarch64_frint<frint_suffix><mode>): Delete.
5291 (<frint_pattern><mode>2): Convert to insn.
5292 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5293 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5294 (frint_pattern): Likewise.
5295 (frint_suffix): Likewise.
5296
ea78906a
RB
52972013-04-29 Richard Biener <rguenther@suse.de>
5298
5299 PR tree-optimization/57081
5300 * loop-init.c: Include tree-flow.h.
5301 (loop_optimizer_finalize): Free number of iteration estimates.
5302 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5303
baee1763
JJ
53042013-04-29 Jakub Jelinek <jakub@redhat.com>
5305
94dc5332
JJ
5306 PR tree-optimization/57083
5307 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5308 non-singleton shift count range, zero extend low_bound for uns case.
5309
baee1763
JJ
5310 * config/i386/predicates.md (general_vector_operand): New predicate.
5311 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5312 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5313 if they aren't nonimmediate operands. If their original values
5314 satisfy const_vector_equal_evenodd_p, don't shift them.
5315 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5316 predicates. For the SSE4.1 case force operands[{1,2}] into registers
5317 if not nonimmediate_operand.
5318 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5319 instead of register_operand.
5320 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5321
a9073727 53222013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
5323
5324 * stor-layout.c (finalize_size_functions): Allocate a structure and
5325 reset cfun before dumping the functions.
5326
ba8011e6
JJ
53272013-04-27 Jakub Jelinek <jakub@redhat.com>
5328
d6fde69e
JJ
5329 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5330
ba8011e6
JJ
5331 PR target/56866
5332 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5333 use xop_pmacsdqh if uns_p.
5334 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5335 the immediate rotate count.
5336
2c62cbaa
VM
53372013-04-26 Vladimir Makarov <vmakarov@redhat.com>
5338
5339 * rtl.h (struct rtx_def): Add comment for field jump.
5340 (LRA_SUBREG_P): New macro.
5341 * recog.c (register_operand): Check LRA_SUBREG_P.
5342 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5343 stack frame.
5344 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5345 (lra_final_code_change): Skip subreg change for operators.
5346 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5347 if there are no operand changes.
5348 * lra-constraints.c (curr_insn_set): New.
5349 (match_reload): Set LRA_SUBREG_P.
5350 (emit_spill_move): Ditto.
5351 (check_and_process_move): Use curr_insn_set. Process only single
5352 set insns. Don't initialize sec_mem_p and change_p.
5353 (simplify_operand_subreg): Use LRA_SUBREG_P.
5354 (reg_in_class_p): New function.
5355 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5356 of #ifdef. Add code to remove cycling.
5357 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5358 non-null disp. Reload inner instead of disp when base and index
5359 are null. Try to put lo_sum into register.
5360 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5361 (check_and_process_move): Move code for move cost check to
5362 simple_move_p. Remove equiv_substitution.
5363 (simple_move_p): New function.
5364 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5365 curr_insn_set. Call check_and_process_move only for single set
5366 insns. Use the new function. Move call of check_and_process_move
5367 after operand equiv substitution and address process.
5368
e7d764f3
JJ
53692013-04-26 Jakub Jelinek <jakub@redhat.com>
5370
5371 PR go/57045
5372 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5373 with nonlocal goto receivers or returns twice calls, ignore
5374 unininitialized values from abnormal edges to nl goto receiver
5375 or returns twice call.
5376
41e10689
JJ
53772013-04-26 Jakub Jelinek <jakub@redhat.com>
5378
5379 PR tree-optimization/57051
5380 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5381 and VEC_RSHIFT_EXPR if shift count is a multiple of element
5382 bitsize.
5383
d7ed20db
RB
53842013-04-26 Richard Biener <rguenther@suse.de>
5385
5386 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5387 (expand_omp_taskreg): Likewise. Mark loops for fixup.
5388 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5389 (fixup_loop_arrays_after_move): New function.
5390 (move_sese_region_to_fn): Properly outline the loop tree parts
5391 of the SESE region.
5392
df93505e
UB
53932013-04-26 Uros Bizjak <ubizjak@gmail.com>
5394
5395 * config/i386/i386.md (type, unit): Fix long lines.
5396
dd366ec3
RB
53972013-04-26 Richard Biener <rguenther@suse.de>
5398
5399 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5400 (lto-streamer-out.o): Likewise.
5401 * cfgloop.c (init_loops_structure): Export, add struct function
5402 argument and adjust.
5403 (flow_loops_find): Adjust.
5404 * cfgloop.h (enum loop_estimation): Add EST_LAST.
5405 (init_loops_structure): Declare.
5406 * lto-streamer-in.c: Include cfgloop.h.
5407 (input_cfg): Input the loop tree.
5408 * lto-streamer-out.c: Include cfgloop.h.
5409 (output_cfg): Output the loop tree.
5410 (output_struct_function_base): Do not drop PROP_loops.
5411
a9e0d843
RB
54122013-03-26 Richard Biener <rguenther@suse.de>
5413
5414 * tree-cfg.c (execute_build_cfg): Build the loop tree.
5415 (pass_build_cfg): Provide PROP_loops.
5416 (move_sese_region_to_fn): Remove loops that are outlined into fn
5417 for now.
5418 * tree-inline.c: Include cfgloop.h.
5419 (initialize_cfun): Do not drop PROP_loops.
5420 (copy_loops): New function.
5421 (copy_cfg_body): Copy loop structure.
5422 (tree_function_versioning): Initialize destination loop tree.
5423 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5424 (pass_parallelize_loops): Do IL verification.
5425 * loop-init.c (loop_optimizer_init): Fixup loops if required.
5426 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5427 the CFG make sure we fixup loops as well.
5428 * tree-ssa-tail-merge.c: Include cfgloop.h.
5429 (replace_block_by): When merging loop latches mark loops for fixup.
5430 * lto-streamer-out.c (output_struct_function_base): Drop
5431 PROP_loops for now.
5432 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5433 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5434 * ipa-split.c: Include cfgloop.h.
5435 (split_function): Add the new return block to the loop tree root.
5436 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5437 whether we have removed the forwarder block.
5438 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5439 * cfgloop.h (place_new_loop): Declare.
5440 * cfgloopmanip.c (place_new_loop): Export.
5441 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5442 (tree-switch-conversion.o): Likewise.
5443 (tree-complex.o): Likewise.
5444 (tree-inline.o): Likewise.
5445 (tree-ssa-tailmerge.o): Likewise.
5446 (ipa-split.o): Likewise.
5447 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5448 (tree-ssa-copy.o): Likewise.
5449 * tree-switch-conversion.c: Include cfgloop.h
5450 (process_switch): If we emit a bit-test cascade, schedule loops
5451 for fixup.
5452 * tree-complex.c: Include cfgloop.h.
5453 (expand_complex_div_wide): Properly add new basic-blocks to loops.
5454 * asan.c: Include cfgloop.h.
5455 (create_cond_insert_point): Properly add new basic-blocks to
5456 loops, schedule loop fixup.
5457 * cfgloop.c (verify_loop_structure): Check that looks are not
5458 marked for fixup.
5459 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5460 to loops.
5461 (expand_omp_for_generic): Likewise.
5462 (expand_omp_sections): Likewise.
5463 (expand_omp_atomic_pipeline): Schedule loops for fixup.
5464 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5465 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5466 is initialized, not when loops are present.
5467 * tree-parloops.c (parallelize_loops): Remove checking here.
5468 * passes.c (init_optimization_passes): Schedule a copy-propagation
5469 pass before complete unrolling of inner loops.
5470
e78e8a0b
JJ
54712013-04-26 Jakub Jelinek <jakub@redhat.com>
5472
a2e836b2
JJ
5473 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5474 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5475 (colorize_init): Add argument to _WIN32 version.
5476 * toplev.c: Include diagnostic-color.h.
5477 (process_options): Default to -fdiagnostics-color=auto if
5478 GCC_COLORS env var is in the environment.
5479 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
5480 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5481 env var is in the environment, the default is auto rather than never.
a2e836b2 5482
e78e8a0b
JJ
5483 * diagnostic.h (file_name_as_prefix): Add context argument.
5484 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
5485 the string as locus.
5486 * langhooks.c (lhd_print_error_function): Adjust caller.
5487
013e5ef9
LC
54882013-04-25 Lawrence Crowl <crowl@google.com>
5489
5490 * var-tracking.c (shared_hash_def::htab):
5491 Change type to hash_table. Update dependent calls and types.
5492
4a8fb1a1
LC
54932013-04-25 Lawrence Crowl <crowl@google.com>
5494
5495 * Makefile.in: Update as needed below.
5496
5497 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5498 Move declaration to after the type's method definitons.
5499
5500 * attribs.c (htab_t scoped_attributes::attribute_hash):
5501 Change type to hash_table. Update dependent calls and types.
5502
5503 * bitmap.c (htab_t bitmap_desc_hash):
5504 Change type to hash_table. Update dependent calls and types.
5505
5506 * cselib.c (htab_t cselib_hash_table):
5507 Change type to hash_table. Update dependent calls and types.
5508
5509 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5510 (hash_string_slot_node): Move implementation into lto-streamer.h
5511 struct string_slot_hasher.
5512 (eq_string_slot_node): Likewise.
5513
5514 * data-streamer-out.c: Update output_block::string_hash_table
5515 dependent calls and types.
5516
5517 * dwarf2cfi.c (htab_t trace_index):
5518 Change type to hash_table. Update dependent calls and types.
5519
5520 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5521 Change type to hash_table. Update dependent calls and types.
5522 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5523 (htab_t optimize_external_refs::map): Likewise.
5524 (htab_t output_comp_unit::extern_map): Likewise.
5525 (htab_t output_comdat_type_unit::extern_map): Likewise.
5526 (htab_t output_macinfo::macinfo_htab): Likewise.
5527 (htab_t optimize_location_lists::htab): Likewise.
5528 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5529
5530 * except.c (htab_t ehspec_hash_type):
5531 Change type to hash_table. Update dependent calls and types.
5532 (assign_filter_values::ttypes): Likewise.
5533 (assign_filter_values::ehspec): Likewise.
5534 (sjlj_assign_call_site_values::ar_hash): Likewise.
5535 (convert_to_eh_region_ranges::ar_hash): Likewise.
5536
5537 * gcse.c (htab_t pre_ldst_table):
5538 Change type to hash_table. Update dependent calls and types.
5539
5540 * ggc-common.c (htab_t saving_htab):
5541 Change type to hash_table. Update dependent calls and types.
5542 (htab_t loc_hash): Likewise.
5543 (htab_t ptr_hash): Likewise.
5544 (call_count): Rename ggc_call_count.
5545 (call_alloc): Rename ggc_call_alloc.
5546 (loc_descriptor): Rename make_loc_descriptor.
5547 (add_statistics): Rename ggc_add_statistics.
5548
5549 * ggc-common.c (saving_htab):
5550 Change type to hash_table. Update dependent calls and types.
5551
5552 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5553 (push_gimplify_context): Likewise.
5554 (pop_gimplify_context): Likewise.
5555 (struct gimple_temp_hash_elt): Added.
5556 (struct gimplify_hasher): Likewise.
5557 (struct gimplify_ctx.temp_htab):
5558 Change type to hash_table. Update dependent calls and types.
5559
5560 * gimple-fold.c: Include gimplify-ctx.h.
5561
5562 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5563 Change type to hash_table. Update dependent calls and types.
5564 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5565 avoid potential global name collision.
5566
5567 * gimplify.c: Include gimplify-ctx.h.
5568 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5569 (htab_t gimplify_ctx::temp_htab):
5570 Update dependent calls and types for new type hash_table.
5571 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5572 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5573
5574 * gimplify-ctx.h: New.
5575 (struct gimple_temp_hash_elt): Move from gimplify.c.
5576 (class gimplify_hasher): New.
5577 (struct gimplify_ctx): Move from gimple.h.
5578 (htab_t gimplify_ctx::temp_htab):
5579 Change type to hash_table. Update dependent calls and types.
5580
5581 * graphite-clast-to-gimple.c: Include graphite-htab.h.
5582 (htab_t ivs_params::newivs_index):
5583 Change type to hash_table. Update dependent calls and types.
5584 (htab_t ivs_params::params_index): Likewise.
5585 (htab_t print_generated_program::params_index): Likewise.
5586 (htab_t gloog::newivs_index): Likewise.
5587 (htab_t gloog::params_index): Likewise.
5588
5589 * graphite.c: Include graphite-htab.h.
5590 4htab_t graphite_transform_loops::bb_pbb_mapping):
5591 Change type to hash_table. Update dependent calls and types.
5592
5593 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5594 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5595 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5596
5597 * graphite-dependences.c: Include graphite-htab.h.
5598 (loop_is_parallel_p): Change hash table type of parameter.
5599
5600 * graphite-htab.h: New.
5601 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5602 (extern find_pbb_via_hash): Move from graphite-poly.h.
5603 (extern loop_is_parallel_p): Move from graphite-poly.h.
5604 (extern get_loop_body_pbbs): Move from graphite-poly.h.
5605
5606 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5607 (extern loop_is_parallel_p): Move to graphite-htab.h.
5608 (extern get_loop_body_pbbs): Move to graphite-htab.h.
5609
5610 * haifa-sched.c (htab_t delay_htab):
5611 Change type to hash_table. Update dependent calls and types.
5612 (htab_t delay_htab_i2): Likewise.
5613
5614 * ira-color.c (htab_t allocno_hard_regs_htab):
5615 Change type to hash_table. Update dependent calls and types.
5616
5617 * ira-costs.c (htab_t cost_classes_htab):
5618 Change type to hash_table. Update dependent calls and types.
5619
5620 * loop-invariant.c (htab_t merge_identical_invariants::eq):
5621 Change type to hash_table. Update dependent calls and types.
5622
5623 * loop-iv.c (htab_t bivs):
5624 Change type to hash_table. Update dependent calls and types.
5625
5626 * loop-unroll.c (htab_t opt_info::insns_to_split):
5627 Change type to hash_table. Update dependent calls and types.
5628 (htab_t opt_info::insns_with_var_to_expand): Likewise.
5629
5630 * lto-streamer.h (struct string_slot): Move from data-streamer.h
5631 (struct string_slot_hasher): New.
5632 (htab_t output_block::string_hash_table):
5633 Change type to hash_table. Update dependent calls and types.
5634
5635 * lto-streamer-in.c (freeing_string_slot_hasher): New.
5636 (htab_t file_name_hash_table):
5637 Change type to hash_table. Update dependent calls and types.
5638
5639 * lto-streamer-out.c: Update output_block::string_hash_table dependent
5640 calls and types.
5641
5642 * lto-streamer.c (htab_t tree_htab):
5643 Change type to hash_table. Update dependent calls and types.
5644
5645 * omp-low.c: Include gimplify-ctx.h.
5646
5647 * passes.c (htab_t name_to_pass_map):
5648 Change type to hash_table. Update dependent calls and types.
5649 (pass_traverse): Rename to passes_pass_traverse.
5650
5651 * plugin.c (htab_t event_tab):
5652 Change type to hash_table. Update dependent calls and types.
5653
5654 * postreload-gcse.c (htab_t expr_table):
5655 Change type to hash_table. Update dependent calls and types.
5656 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5657
5658 * sese.c (debug_rename_map_1): Make extern.
5659 (htab_t copy_bb_and_scalar_dependences::rename_map):
5660 Change type to hash_table. Update dependent calls and types.
5661
5662 * sese.h (extern debug_rename_map): Move to .c file.
5663
5664 * store-motion.c (htab_t store_motion_mems_table):
5665 Change type to hash_table. Update dependent calls and types.
5666
5667 * trans-mem.c (htab_t tm_new_mem_hash):
5668 Change type to hash_table. Update dependent calls and types.
5669
5670 * tree-browser.c (htab_t TB_up_ht):
5671 Change type to hash_table. Update dependent calls and types.
5672
5673 * tree-cfg.c (htab_t discriminator_per_locus):
5674 Change type to hash_table. Update dependent calls and types.
5675
5676 * tree-complex.c: Include tree-hasher.h
5677 (htab_t complex_variable_components):
5678 Change type to hash_table. Update dependent calls and types.
5679
5680 * tree-eh.c (htab_t finally_tree):
5681 Change type to hash_table. Update dependent calls and types.
5682
5683 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5684 struct int_tree_hasher.
5685 (extern int_tree_map_eq): Likewise.
5686 (uid_decl_map_hash): Removed.
5687 (extern decl_tree_map_eq): Likewise.
5688
5689 * tree-hasher.h: New.
5690 (struct int_tree_hasher): New.
5691 (typedef int_tree_htab_type): New.
5692
5693 * tree-inline.c: Include gimplify-ctx.h.
5694
5695 * tree-mudflap.c: Include gimplify-ctx.h.
5696
5697 * tree-parloops.c: Include tree-hasher.h.
5698 (htab_t eliminate_local_variables_stmt::decl_address):
5699 Change type to hash_table. Update dependent calls and types.
5700 (htab_t separate_decls_in_region::decl_copies): Likewise.
5701
5702 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5703 Change type to hash_table. Update dependent calls and types.
5704
5705 * tree-sra.c (candidates):
5706 Change type to hash_table. Update dependent calls and types.
5707
5708 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5709 in tree-flow.h.
5710 (int_tree_map_hash): Likewise.
5711
5712 * tree-ssa-dom.c (htab_t avail_exprs):
5713 Change type to hash_table. Update dependent calls and types.
5714
5715 * tree-ssa-live.c (var_map_base_init::tree_to_index):
5716 Change type to hash_table. Update dependent calls and types.
5717
5718 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5719 Change type to hash_table. Update dependent calls and types.
5720
5721 * tree-ssa-phiopt.c (seen_ssa_names):
5722 Change type to hash_table. Update dependent calls and types.
5723
5724 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5725 Change type to hash_table. Update dependent calls and types.
5726
5727 * tree-ssa-uncprop.c (equiv):
5728 Change type to hash_table. Update dependent calls and types.
5729
c5a44004
JJ
57302013-04-25 Jakub Jelinek <jakub@redhat.com>
5731
5732 PR rtl-optimization/57003
5733 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5734 call note_stores with kill_clobbered_value callback again after
5735 killing regs_invalidated_by_call.
5736
09962a4a
JG
57372013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5738
5739 * config/aarch64/aarch64-simd.md
5740 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5741 (aarch64_simd_bsl<mode>): Likewise.
5742 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5743
ea28bb0b
MP
57442013-04-25 Marek Polacek <polacek@redhat.com>
5745
5746 PR tree-optimization/57066
3c21604f 5747 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 5748
96659611
JG
57492013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
5750
5751 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5752
9697e620
JG
57532013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5754
5755 * config/aarch64/aarch64-builtins.c
5756 (aarch64_fold_builtin): New.
5757 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5758 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5759 * config/aarch64/aarch64-simd-builtins.def (abs): New.
5760 * config/aarch64/arm_neon.h
5761 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5762
0ac198d3
JG
57632013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5764 Tejas Belagod <tejas.belagod@arm.com>
5765
5766 * config/aarch64/aarch64-builtins.c
5767 (aarch64_gimple_fold_builtin): New.
5768 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5769 * config/aarch64/aarch64-simd-builtins.def (addv): New.
5770 * config/aarch64/aarch64-simd.md (addpv4sf): New.
5771 (addvv4sf): Update.
5772 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5773
58cff58c
N
57742013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5775
df93505e 5776 * config/aarch64/aarch64.md
58cff58c
N
5777 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5778
7e0228bf
N
57792013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5780
5781 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5782 (*ngcsi_uxtw): New pattern.
5783
5819f96f 57842013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 5785 Julian Brown <julian@codesourcery.com>
5819f96f
KT
5786
5787 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5788 (TB_DREG): Add T_V4HF.
5789 (v4hf_UP): New macro.
5790 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 5791 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
5792 Handle initialisation of V4HF. Adjust initialisation of reinterpret
5793 built-ins.
df93505e 5794 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
5795 (arm_vector_mode_supported_p): Handle V4HF.
5796 (arm_mangle_map): Handle V4HFmode.
5797 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5798 * config/arm/arm_neon_builtins.def: Add entries for
5799 vcvtv4hfv4sf, vcvtv4sfv4hf.
5800 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5801 (neon_vcvtv4hfv4sf): Likewise.
5802 * config/arm/neon-gen.ml: Handle half-precision floating point
5803 features.
5804 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5805 * config/arm/arm_neon.h: Regenerate.
5806 * config/arm/neon.ml (type elts): Add F16.
5807 (type vectype): Add T_float16x4, T_floatHF.
5808 (type vecmode): Add V4HF.
5809 (type features): Add Requires_FP_bit feature.
5810 (elt_width): Handle F16.
5811 (elt_class): Likewise.
5812 (elt_of_class_width): Likewise.
5813 (mode_of_elt): Refactor.
5814 (type_for_elt): Handle F16, fix error messages.
5815 (vectype_size): Handle T_float16x4.
5816 (vcvt_sh): New function.
5817 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5818 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5819 (string_of_mode): Handle V4HF.
5820 * doc/arm-neon-intrinsics.texi: Regenerate.
5821
1ef395e4
JG
58222013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5823
5824 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5825 format specifier in 'X' case.
5826
41c34e94
AM
58272013-04-25 Alan Modra <amodra@gmail.com>
5828
5829 PR target/57052
5830 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5831 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5832 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5833 Repeat for many other rotate/shift and mask patterns using subregs.
5834 Name lshiftrt insns.
5835 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5836 on WORDS_BIG_ENDIAN.
5837
b9a7eb5d
AM
58382013-04-25 Alan Modra <amodra@gmail.com>
5839
5840 * config.gcc: Support little-endian powerpc-linux targets.
5841 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5842 (LINK_OS_LINUX_SPEC): Define.
5843 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5844 Preserve MASK_LITTLE_ENDIAN.
5845 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5846 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5847 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5848 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5849 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5850 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5851 Correct fp word order for little-endian. Don't shift toc entries
5852 smaller than a word for little-endian.
5853 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5854 (bswapdi2 splits): Correct low-part subreg for little-endian.
5855 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5856 low/high where such is correct only for be.
5857 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5858 little-endian for -mcall-aixdesc.
5859
87f73374
AM
58602013-04-25 Alan Modra <amodra@gmail.com>
5861
5862 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5863 replace_equiv_address_nv.
5864
cabf91cd
AM
58652013-04-25 Alan Modra <amodra@gmail.com>
5866
5867 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5868
0ae24cc8
VM
58692013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5870
5871 Revert:
5872 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5873 * rtl.h (struct rtx_def): ...
cabf91cd 5874
77bce07c
VM
58752013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5876
5877 PR rtl-optimizations/57046
5878 * lra-constraints (split_reg): Set up lra_risky_transformations_p
5879 for multi-reg splits.
5880
0db63e7f
L
58812013-04-24 H.J. Lu <hongjiu.lu@intel.com>
5882
5883 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5884
3362b6b6
SA
58852013-04-24 Sterling Augustine <saugustine@google.com>
5886
5887 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5888 (comp_dir_string, debug_str_dwo_section): New.
5889 (DEBUG_STR_DWO_SECTION): Rename to ...
5890 (DEBUG_DWO_STR_SECTION): ... this.
5891 (DEBUG_NORM_STR_SECTION): Delete.
5892 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5893 (DEBUG_STR_DWO_SECTION_FLAGS): New.
5894 (find_AT_string): Move most logic to ...
5895 (find_AT_string_in_table): ... here. New.
5896 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5897 add_skeleton_AT_string. Delete logic.
5898 (output_skeleton_debug_sections): Remove call to
5899 add_top_level_skeleton_die_attrs.
5900 (add_comp_dir_attribute): Move logic to comp_dir_string.
5901 (dwarf2out_init): Initialize debug_str_dwo_section.
5902 (output_indirect_string): Call find_string_form.
5903 (output_indirect_strings): Rewrite.
5904 (prune_unused_types): Empty skeleton_debug_str_hash.
5905 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5906 (dwarf2out_finish): Call output_indirect_strings.
5907
e93e18e9
PC
59082013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5909
5910 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5911
f6ce35ac
VM
59122013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5913
cabf91cd 5914 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
5915 (LRA_SUBREG_P): New macro.
5916 * recog.c (register_operand): Check LRA_SUBREG_P.
5917 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5918 stack frame.
5919 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5920 (lra_final_code_change): Skip subreg change for operators.
5921 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5922 if there are no operand changes.
5923 * lra-constraints.c (curr_insn_set): New.
5924 (match_reload): Set LRA_SUBREG_P.
5925 (emit_spill_move): Ditto.
5926 (check_and_process_move): Use curr_insn_set. Process only single
5927 set insns. Don't initialize sec_mem_p and change_p.
5928 (simplify_operand_subreg): Use LRA_SUBREG_P.
5929 (reg_in_class_p): New function.
5930 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5931 of #ifdef. Add code to remove cycling.
5932 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5933 non-null disp. Reload inner instead of disp when base and index
5934 are null. Try to put lo_sum into register.
5935 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 5936 (check_and_process_move): Move code for move cost check to
f6ce35ac 5937 simple_move_p. Remove equiv_substitution.
cabf91cd 5938 (simple_move_p): New function.
f6ce35ac
VM
5939 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5940 curr_insn_set. Call check_and_process_move only for single set
5941 insns. Use the new function. Move call of check_and_process_move
5942 after operand equiv substitution and address process.
5943
38047d90
JG
59442013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
5945
5946 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5947 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5948 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5949
13f39b2e
PC
59502013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5951
5952 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5953
97c116dc
MP
59542013-04-24 Marek Polacek <polacek@redhat.com>
5955
5956 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5957 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5958 (select_loops_exit_conditions): Likewise.
5959 (number_of_iterations_for_all_loops): Likewise.
5960 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5961 (scev_analysis): Likewise.
5962
83082391
CM
59632013-04-02 Catherine Moore <clm@codesourcery.com>
5964 Chao-ying Fu <fu@mips.com>
5965
cabf91cd
AM
5966 * config/mips/micromips.md (jraddiusp): New pattern.
5967 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5968 instruction if possible.
83082391 5969
19e34aa2
AM
59702013-04-24 Alan Modra <amodra@gmail.com>
5971
5972 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5973
fdb6603c
JB
59742013-04-24 Julian Brown <julian@codesourcery.com>
5975 Chung-Lin Tang <cltang@codesourcery.com>
5976
5977 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
5978 dependency behavior in enumeration type DIE generation. Add TODO note
5979 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 5980
bf190e8d
LC
59812013-04-23 Lawrence Crowl <crowl@google.com>
5982
5983 * Makefile.in: Update as needed below.
5984
5985 * hash-table.h (class hash_table):
5986 Correct many methods with parameter types compare_type to the correct
5987 value_type. (Correct code was unlikely to notice the change.)
5988 (hash_table::elements_with_deleted) New.
5989 (class hashtable::iterator): New.
5990 (hashtable::begin()): New.
5991 (hashtable::end()): New.
5992 (FOR_EACH_HASH_TABLE_ELEMENT): New.
5993
5994 * statistics.c (statistics_hashes):
5995 Change type to hash_table. Update dependent calls and types.
5996
5997 * tree-into-ssa.c (var_infos):
5998 Change type to hash_table. Update dependent calls and types.
5999
6000 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6001 Change type to hash_table. Update dependent calls and types.
6002
6003 * tree-ssa-loop-im.c (struct mem_ref.refs):
6004 Change type to hash_table. Update dependent calls and types.
6005
6006 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6007 Change type to hash_table. Update dependent calls and types.
6008
6009 * tree-ssa-sccvn.c (vn_tables_s::nary):
6010 Change type to hash_table. Update dependent calls and types.
6011 (vn_tables_s::phis): Likewise.
6012 (vn_tables_s::references): Likewise.
6013
6014 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6015 (vn_reference_eq): Update parameter and return types.
6016
6017 * tree-ssa-structalias.c (pointer_equiv_class_table):
6018 Change type to hash_table. Update dependent calls and types.
6019 (location_equiv_class_table): Likewise.
6020
6021 * tree-vect-data-refs.c: Consequential changes for making
6022 peeling a hash_table.
6023
6024 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6025 (destroy_loop_vec_info): Dependent hash_table update.
6026
6027 * tree-vectorizer.h (peeling_htab):
6028 Change type to hash_table. Update dependent calls and types.
6029
d70a81dd
SC
60302013-04-23 Shiva Chen <shiva0217@gmail.com>
6031
cabf91cd
AM
6032 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6033 to check the register content is equal or not.
6034 * lra-constraints.c (match_reload): Use lra_assign_reg_val
6035 to assign register content record.
6036 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 6037 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
6038 * lra-int.h (struct lra_reg): Add offset member.
6039 (lra_reg_val_equal_p): New static inline function.
6040 (lra_update_reg_val_offset): New static inline function.
6041 (lra_assign_reg_val): New static inline function.
6042 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6043 to assign register content record.
6044 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 6045
b894a1f3
CM
60462013-04-23 Catherine Moore <clm@codesourcery.com>
6047
6048 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6049 operands. Record compression.
6050
ecd14de9
XDL
60512013-04-23 Xinliang David Li <davidxl@google.com>
6052
6053 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6054
92e776e9
RB
60552013-04-23 Richard Biener <rguenther@suse.de>
6056
6057 PR middle-end/57036
6058 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6059 parameter, only add abnormal goto edges from the copied body
6060 if the call could perform abnormal gotos.
6061 (copy_cfg_body): Adjust.
6062
a15ee567
SN
60632013-04-23 Sofiane Naci <sofiane.naci@arm.com>
6064
6065 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6066
08c52234
AS
60672013-04-23 Andreas Schwab <schwab@linux-m68k.org>
6068
6069 * coretypes.h (gimple_stmt_iterator): Add struct to make
6070 compatible with C.
6071
999c1171
RB
60722013-04-23 Richard Biener <rguenther@suse.de>
6073
6074 PR tree-optimization/57026
6075 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6076 from SSA names occuring in abnormal PHI nodes.
6077
53669259
AK
60782013-04-22 Andi Kleen <ak@linux.intel.com>
6079
6080 * lto/lto.c (print_lto_report_1): Fix LTO report names.
6081
1a0ad150
AK
60822013-04-22 Andi Kleen <ak@linux.intel.com>
6083
6084 * lto/lto.c (print_lto_report_1): Declare early.
6085 (read_cgraph_and_symbols): Call print_lto_report_1 early.
6086
057f8f20
AK
60872013-04-22 Andi Kleen <ak@linux.intel.com>
6088
6089 * common.opt (-flto-report-wpa): Add.
6090 * doc/invoke.texi (-flto-report-wpa): Add.
6091 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6092 (lto_main): dito.
6093
473b1e05
XDL
60942013-04-22 Xinliang David Li <davidxl@google.com>
6095
6096 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6097 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6098 * Makefile.in: New dependency
6099
cabf91cd 6100 David Daney <ddaney.cavm@gmail.com>
b1485a33 6101
cabf91cd
AM
6102 * configure.ac (gcc_cv_as_micromips_support): Use the
6103 --fatal-warnings option.
6104 * configure: Regenerate.
b1485a33 6105
829d0168
MP
61062013-04-22 Marek Polacek <polacek@redhat.com>
6107
6108 PR sanitizer/56990
6109 * tsan.c (instrument_expr): Don't instrument expression
6110 in case its size is zero.
6111
6d9b7208
UB
61122013-04-22 Uros Bizjak <ubizjak@gmail.com>
6113
6114 PR target/57032
6115 Revert:
6116 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6117
6118 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6119
ea679d55
JG
61202013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6121
6122 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6123 (gimple_stmt_iterator): New typedef.
6124 * gimple.h (gimple_stmt_iterator): Rename to...
6125 (gimple_stmt_iterator_d): ... This.
6126 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6127 trees be valid for GIMPLE and GENERIC.
6128 (TARGET_GIMPLE_FOLD_BUILTIN): New.
6129 * gimple-fold.c (gimple_fold_call): Call target hook
6130 gimple_fold_builtin.
6131 * hooks.c (hook_bool_gsiptr_false): New.
6132 * hooks.h (hook_bool_gsiptr_false): New.
6133 * target.def (fold_stmt): New.
6134 * doc/tm.texi: Regenerate.
6135
88a581da
VM
61362013-04-22 Vladimir Makarov <vmakarov@redhat.com>
6137
6138 PR target/57018
6139 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6140 a set sp if no stack realignment.
6141
92be22dc
NC
61422013-04-22 Nick Clifton <nickc@redhat.com>
6143
6144 * config.gcc (tilegx-linux): Extend extra_objs rather than
6145 overwriting it.
6146 (tilepro-linux): Likewise.
6147
0ddec79f
JG
61482013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6149
6150 * config/aarch64/aarch64-builtins.c
6151 (CF): Remove.
6152 (CF0, CF1, CF2, CF3, CF4, CF10): New.
6153 (VAR<1-12>): Add MAP parameter.
6154 (BUILTIN_*): Likewise.
6155 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6156 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6157 (aarch64_ushl_n<mode>): Likewise.
6158 (aarch64_sshr_n<mode>): Likewise.
6159 (aarch64_ushr_n<mode>): Likewise.
6160 (aarch64_<maxmin><mode>): Likewise.
6161 (aarch64_sqrt<mode>): Likewise.
6162 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6163 (vshr<q>_n_*): Likewise.
6164
0050faf8
JG
61652013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6166
6167 * config/aarch64/aarch64-builtins.c
6168 (aarch64_simd_builtin_type_mode): Handle SF types.
6169 (sf_UP): Define.
6170 (BUILTIN_GPF): Define.
6171 (aarch64_init_simd_builtins): Handle SF types.
6172 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6173 (frecps): Likewise.
6174 (frecpx): Likewise.
6175 * config/aarch64/aarch64-simd.md
6176 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6177 (aarch64_frecpe<mode>): New.
6178 (aarch64_frecps<mode>): Likewise.
6179 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6180 (v8type): Add frecp<esx>.
6181 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6182 (aarch64_frecps<mode>): Likewise.
6183 * config/aarch64/iterators.md (FRECP): New.
6184 (frecp_suffix): Likewise.
6185 * config/aarch64/arm_neon.h
6186 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6187
0fad3dbc 61882013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
6189
6190 PR target/56995
6191 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6192 (REG_CLASS_NAMES): Idem.
6193 (REG_CLASS_CONTENTS): Idem.
6194 (REGCLASS_HAS_FP_REG): Idem.
6195 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6196 (sh_conditional_register_usage): Idem.
6197
3e8a33f9
JL
61982013-04-21 Jeff Law <law@redhat.com>
6199
6200 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6201 (ssa_forward_propagate_and_combine): Use it.
6202
f38e1b0a
VM
62032013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6204
6205 * lra.c: Update the flow chart diagram.
6206
682303da
VM
62072013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6208
6209 PR rtl-optimization/56847
6210 * lra-constraints.c (process_alt_operands): Discourage alternative
6211 with non-matche doffsettable memory constraint fro memory with
6212 known offset.
6213
f6b64c35
RB
62142013-04-19 Richard Biener <rguenther@suse.de>
6215
6216 PR tree-optimization/56982
6217 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6218 function.
6219 * gimplify.c (gimplify_call_expr): Notice special calls.
6220 (gimplify_modify_expr): Likewise.
6221 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6222 abnormal control flow receivers.
6223 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6224 in the same way as cfun->has_nonlocal_labels.
6225 (gimple_purge_dead_abnormal_call_edges): Likewise.
6226 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6227 receivers start a basic-block.
6228
01d8bf07
RB
62292013-04-19 Richard Biener <rguenther@suse.de>
6230
6231 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6232 member ...
6233 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6234 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6235 (SLP_TREE_LOAD_PERMUTATION): Add.
6236 (vect_transform_slp_perm_load): Adjust prototype.
6237 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6238 (vect_free_slp_instance): Likewise.
6239 (vect_create_new_slp_node): Likewise.
6240 (vect_supported_slp_permutation_p): Remove.
6241 (vect_slp_rearrange_stmts): Adjust.
6242 (vect_supported_load_permutation_p): Likewise. Inline
6243 vect_supported_slp_permutation_p here.
6244 (vect_analyze_slp_instance): Compute load permutations per
6245 slp node instead of per instance.
6246 (vect_get_slp_defs): Adjust.
6247 (vect_transform_slp_perm_load): Likewise.
6248 (vect_schedule_slp_instance): Remove redundant code.
6249 (vect_schedule_slp): Remove hack for PR56270, add it ...
6250 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6251 CSE loads for SLP. Adjust.
6252
ede22fc3
GY
62532013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6254
6255 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6256 spelling in two comments.
6257
67bc84fb
GY
62582013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6259
6260 PR target/56797
6261 * config/arm/arm.c (load_multiple_sequence): Require SP
6262 as base register for loads if SP is in the register list.
6263
e248d83f
MJ
62642013-04-19 Martin Jambor <mjambor@suse.cz>
6265
6266 PR tree-optimization/56718
6267 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6268 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6269 and made public. Adjusted all callers.
6270 (ipa_intraprocedural_devirtualization): New function.
6271 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6272 (ipa_intraprocedural_devirtualization): Likewise.
6273 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6274
4891e8f8
RB
62752013-04-19 Richard Biener <rguenther@suse.de>
6276
6277 PR tree-optimization/57000
6278 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6279
dad89f7c
TG
62802013-04-19 Terry Guo <terry.guo@arm.com>
6281
6282 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6283 Replace with ...
6284 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
6285 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6286 (cortex_m4_fmacs): Use new reservations.
6287 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6288
72ea0d47
VM
62892013-04-18 Vladimir Makarov <vmakarov@redhat.com>
6290
f1e6512c 6291 PR rtl-optimization/56999
72ea0d47
VM
6292 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6293 related code.
6294 (lra_coalesce): Remove split_origin_bitmap and related code.
6295 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
6296 ranges if necessary.
6297
780a5b71
UB
62982013-04-18 Uros Bizjak <ubizjak@gmail.com>
6299
6300 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6301 New array.
6302 (ix86_expand_call): Remove clobbered_registers array and use
6303 x86_64_ms_sysv_extra_clobbered_registers instead.
6304 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6305 Declare here.
6306 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6307 predicate.
6308 * config/i386/i386.md (*call_rex64_ms_sysv): Use
6309 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
6310 (*call_value_rex64_ms_sysv): Ditto.
6311
6f5a366a
CC
63122013-04-18 Cary Coutant <ccoutant@google.com>
6313
6314 * dwarf2out.c (output_pubnames): Check die_perennial_p of
6315 parent instead of die_mark.
6316
475b8f37
DN
63172013-04-18 Diego Novillo <dnovillo@google.com>
6318
6319 * gimple.c (create_gimple_tmp): New.
6320 (get_expr_type): New.
6321 (build_assign): New.
6322 (build_type_cast): New.
6323 * gimple.h (enum ssa_mode): Define.
6324 (gimple_seq_set_location): New.
6325 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 6326 to use build_assign and build_type_cast.
475b8f37 6327
08940f33
RB
63282013-04-18 Richard Biener <rguenther@suse.de>
6329
6330 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6331 handle negative step. Remove redundant checks.
6332 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6333 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6334 for negative step and grouped loads fail to vectorize.
6335
0e0f87d4
SB
63362013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6337
6338 * emit-rtl.c (reset_insn_used_flags): New function.
6339 (reset_all_used_flags): Use it.
6340 (verify_insn_sharing): New function.
6341 (verify_rtl_sharing): Fix verification for SEQUENCEs.
6342
4c445590
JJ
63432013-04-18 Jakub Jelinek <jakub@redhat.com>
6344
6345 PR tree-optimization/56984
6346 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6347 and (x >> M) >= N don't register any assertion if N << M is the
6348 minimum value.
6349
6873ecab
SB
63502013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6351
6352 * lower-subreg.c (resolve_simple_move): If called self-recursive,
6353 do not delete_insn insns that have not yet been emitted, only
6354 unlink them with remove_insn.
6355 * df-scan.c (df_insn_delete): Revert r197492.
6356
3ccb989e
SB
63572013-04-17 Steven Bosscher <steven@gcc.gnu.org>
6358
6359 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6360 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6361
63622013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
6363
6364 * config/arm/arm.md (movsicc_insn): Convert define_insn into
6365 define_insn_and_split.
6366 (and_scc,ior_scc,negscc): Likewise.
6367 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6368
3ccb989e 63692013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
6370
6371 * config/arm/arm.c (use_return_insn): Return 0 for targets that
6372 can benefit from using a sequence of LDRD instructions in epilogue
6373 instead of a single LDM instruction.
6374
6d10a203
MLI
63752013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6376
6377 PR 45688
6378 * doc/extend.texi: Fix typo.
6379
6983e6b5
RB
63802013-04-17 Richard Biener <rguenther@suse.de>
6381
6382 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6383 (vect_build_slp_tree): ... here.
6384 (vect_build_slp_tree_1): Compute which stmts of the SLP group
6385 match. Remove special-casing of mismatched complex loads.
6386 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6387 re-try the match with swapped commutative operands.
6388 (vect_supported_load_permutation_p): Remove special-casing of
6389 mismatched complex loads.
6390 (vect_analyze_slp_instance): Adjust.
6391
ef23e6a2
RB
63922013-04-17 Richard Biener <rguenther@suse.de>
6393
6394 PR rtl-optimization/56921
6395 * cfgloop.h (struct loop): Add simple_loop_desc member.
6396 (struct niter_desc): Mark with GTY(()).
6397 (simple_loop_desc): Do not use aux field but simple_loop_desc.
6398 * loop-iv.c (get_simple_loop_desc): Likewise.
6399 (free_simple_loop_desc): Likewise.
6400
6401 Revert
6402 2013-04-16 Richard Biener <rguenther@suse.de>
6403
6404 PR rtl-optimization/56921
6405 * loop-init.c (pass_rtl_move_loop_invariants): Add
6406 TODO_do_not_ggc_collect to todo_flags_finish.
6407 (pass_rtl_unswitch): Same.
6408 (pass_rtl_unroll_and_peel_loops): Same.
6409 (pass_rtl_doloop): Same.
6410
fc6f94f5
EB
64112013-04-17 Eric Botcazou <ebotcazou@adacore.com>
6412
6413 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6414 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6415 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6416 references.
6417 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6418 * tree-streamer.c (record_common_node): Adjust reference in comment.
6419
10a88311
TG
64202013-04-17 Terry Guo <terry.guo@arm.com>
6421
6422 * config/arm/cortex-m4.md: Add a new bypass.
6423
6d9b7208 64242013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
6425
6426 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6427 New pattern.
6428 (*subs_<optab><mode>_multp2): New pattern.
6429 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6430 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6431
6d9b7208 64322013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
6433
6434 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6435 (*subs_mul_imm_<mode>): New pattern.
6436
18a6701e
DE
64372013-04-16 David Edelsohn <dje.gcc@gmail.com>
6438
6439 PR target/56948
6440 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6441 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
6442 (vsx_movti_32bit): Change j->wa to O->wa.
6443
07c37b2f
RB
64442013-04-16 Richard Biener <rguenther@suse.de>
6445
6446 PR rtl-optimization/56921
6447 * loop-init.c (pass_rtl_move_loop_invariants): Add
6448 TODO_do_not_ggc_collect to todo_flags_finish.
6449 (pass_rtl_unswitch): Same.
6450 (pass_rtl_unroll_and_peel_loops): Same.
6451 (pass_rtl_doloop): Same.
6452
0e0f87d4 64532013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
6454
6455 * config/arm/arm.c (emit_multi_reg_push): New declaration
6456 for an existing function.
6457 (arm_emit_strd_push): New function.
6458 (arm_expand_prologue): Used here.
6459 (arm_emit_ldrd_pop): New function.
6460 (arm_expand_epilogue): Used here.
6461 (arm_get_frame_offsets): Update condition.
6462 (arm_emit_multi_reg_pop): Add a special case for load of a single
6463 register with writeback.
6464
5e8e2af4
UB
64652013-04-16 Uros Bizjak <ubizjak@gmail.com>
6466
6467 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6468 description.
6469
9fd9ccf7
RB
64702013-04-16 Richard Biener <rguenther@suse.de>
6471
6472 PR tree-optimization/56756
6473 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6474 (first_mem_ref_loc): New.
6475 (execute_sm): Place the load temporarily before a previous
6476 access instead of in the latch edge to ensure its SSA dependencies
6477 are defined at points dominating the load.
6478
96fba521
SB
64792013-04-16 Steven Bosscher <steven@gcc.gnu.org>
6480
4c8af858
SB
6481 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6482 correct fix by moving header and footer insn to the footer of
6483 the merged basic block. Clear BB_END of the merged-away block.
6484
96fba521
SB
6485 PR middle-end/43631
6486 * emit-rtl.c (make_note_raw): New function.
6487 (link_insn_into_chain): New static inline function.
6488 (add_insn): Use it.
6489 (add_insn_before, add_insn_after): Factor insn chain linking code...
6490 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6491 using link_insn_into_chain.
6492 (note_outside_basic_block_p): New helper function for emit_note_after
6493 and emit_note_before.
6494 (emit_note_after): Use nobb variant of add_insn_after if the note
6495 should not be contained in a basic block.
6496 (emit_note_before): Use nobb variant of add_insn_before if the note
6497 should not be contained in a basic block.
6498 (emit_note_copy): Use make_note_raw.
6499 (emit_note): Likewise.
6500 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6501 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6502 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6503 the moved barrier the tail of the basic block it follows.
6504 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6505
7b8265ba
JJ
65062013-04-15 Jakub Jelinek <jakub@redhat.com>
6507
6508 PR tree-optimization/56962
6509 * gimple-ssa-strength-reduction.c (record_increment): Only set
6510 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6511 either rhs1 or rhs2 is equal to c->base_expr.
6512
5185d248
RB
65132013-04-15 Richard Biener <rguenther@suse.de>
6514
6515 PR tree-optimization/56933
6516 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6517 member.
6518 (GROUP_READ_WRITE_DEPENDENCE): Remove.
6519 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6520 * tree-vect-data-refs.c (vect_analyze_group_access): Move
6521 dependence check ...
6522 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6523 ... here.
6524 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6525 GROUP_READ_WRITE_DEPENDENCE.
6526
a24243a0
AK
65272013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6528
6529 * emit-rtl.c (reset_all_used_flags): New function.
6530 (verify_rtl_sharing): Call reset_all_used_flags before and after
6531 performing the checks.
6532
1c50eada
KT
65332013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6534
6535 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6536 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6537 * config/arm/constraints.md (De): New constraint.
6538 * config/arm/neon.md (anddi3_neon): Delete.
6539 (neon_vand<mode>): Expand to standard anddi3 pattern.
6540 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6541 Move earlier in the file.
6542 (neon_inv_logic_op2): Likewise.
6543 (arm_anddi_operand_neon): New predicate.
6544
e927b6ad
RO
65452013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6546
6547 * configure.ac (gcc_cv_ld_as_needed): Set
6548 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6549 Use -z ignore, -z record on *-*-solaris2*.
6550 (HAVE_LD_AS_NEEDED): Update comment.
6551 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6552 * configure: Regenerate.
6553 * config.in: Regenerate.
6554 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6555 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6556 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6557 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6558 equivalents. Fix markup.
6559 * doc/tm.texi: Regenerate.
6560
e0ea8797
AH
65612013-04-15 Andrew Hsieh <andrewhsieh.google.com>
6562
6563 * config/i386/i386.opt: New option mstack-protector-guard=.
6564 * config/i386/i386-opts.h: Add enum stack_protector_guard.
6565 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6566 TARGET_SSP_TLS_GUARD.
6567 * config/i386/i386.c (ix86_option_override_internal): Set
6568 ix86_stack_protector_guard.
6569 * config/i386/i386.md (stack_protect_set): Enable for
6570 TARGET_SSP_TLS_GUARD only.
6571 (stack_protect_set_<mode>): Ditto.
6572 (stack_protect_test): Ditto.
6573 (stack_protect_test_<mode>): Ditto.
6574 * doc/invoke.texi (i386 Option): Document.
6575
811b72f9
EB
65762013-04-15 Eric Botcazou <ebotcazou@adacore.com>
6577
6578 PR target/56890
6579 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6580 (S_MODES): Set H_MODE bit.
6581 (SF_MODES): Set only S_MODE and SF_MODE bits.
6582 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6583 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6584 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6585 <MODE_FLOAT>: Likewise.
6586
5529fdd6
JY
65872013-04-15 Joey Ye <joey.ye@arm.com>
6588
6589 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6590
517b1da2
JY
65912013-04-15 Joey Ye <joey.ye@arm.com>
6592
6593 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6594 for real far jump.
6595 (thumb_far_jump_used_p): Count instruction size and set
6596 far_jump_used.
6597
01007ae0
EB
65982013-04-14 Eric Botcazou <ebotcazou@adacore.com>
6599
6600 * reorg.c (fill_simple_delay_slots): Reindent block of code.
6601 * resource.c (mark_target_live_regs): Reformat conditional block.
6602
c46f6580
SB
66032013-04-13 Steven Bosscher <steven@gcc.gnu.org>
6604
6605 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6606 notes, they are emitted only just before final.
6607 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6608
1f397f45
SB
66092013-04-13 Steven Bosscher <steven@gcc.gnu.org>
6610
6611 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6612 * cfgrtl.c (delete_insn): Call it here instead.
6613 * lra-spills.c (lra_final_code_change): Use delete_insn.
6614 * haifa-sched.c (sched_remove_insn): Likewise.
6615 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6616 returning to the nop pool.
6617 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6618 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
6619
58a51369
SB
66202013-04-12 Steven Bosscher <steven@gcc.gnu.org>
6621
6622 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6623 * doc/tm.texi: Regenerated.
6624
33159866
UB
66252013-04-12 Uros Bizjak <ubizjak@gmail.com>
6626
6627 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6628 QImode checks.
6629
226e378f
SB
66302013-04-12 Steven Bosscher <steven@gcc.gnu.org>
6631
6632 * df-core.c (df_find_def): Compare register numbers.
6633 (df_find_use): Likewise.
6634
fafb9b18
VM
66352013-04-12 Vladimir Makarov <vmakarov@redhat.com>
6636
6637 PR target/56903
6638 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6639 lra_in_progress for return.
6640
9a946fd6
GY
66412013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
6642
6643 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6644 define_insn into define_insn_and_split and emit movsicc patterns.
6645
41b83758
GY
66462013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
6647
6648 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6649
d3afd9aa
RB
66502013-04-12 Richard Biener <rguenther@suse.de>
6651
6652 * tree-pass.h (TODO_do_not_ggc_collect): New.
6653 * passes.c (execute_one_ipa_transform_pass): Honor
6654 TODO_do_not_ggc_collect.
6655 (execute_one_pass): Likewise.
6656
6657 Revert
6658 2013-04-10 Richard Biener <rguenther@suse.de>
6659
6660 * passes.c (init_optimization_passes): Remove reload pass.
6661 * ira.c (do_reload): Merge into ...
6662 (ira): ... this.
6663 (rest_of_handle_reload): Remove.
6664 (pass_reload): Likewise.
6665 * config/i386/i386.c (ix86_option_override): Refer to ira instead
6666 of reload for vzeroupper pass placement.
6667
06f9b387
JJ
66682013-04-12 Jakub Jelinek <jakub@redhat.com>
6669
6670 PR tree-optimization/56918
6671 PR tree-optimization/56920
6672 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6673 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
6674 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
6675 use wide_mul_with_sign method.
6676
953094d2
RB
66772013-04-12 Richard Biener <rguenther@suse.de>
6678
6679 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6680 not be considered a gimple constant.
6681
bb506982
MG
66822013-04-12 Marc Glisse <marc.glisse@inria.fr>
6683
6684 * fold-const.c (const_binop): Handle vector shifts by a scalar.
6685 (fold_binary_loc): Call const_binop also for mixed vector-scalar
6686 operations.
6687
4b84d650
JJ
66882013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
6689 Jakub Jelinek <jakub@redhat.com>
6690
6691 * opts.c: Include diagnostic-color.h.
6692 (common_handle_option): Handle OPT_fdiagnostics_color_.
6693 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6694 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6695 (diagnostic-color.o): New.
6696 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6697 (diagnostic_color_rule): New enum.
6698 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6699 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6700 the location string.
6701 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6702 either NULL, or color kind.
6703 * diagnostic-color.c: New file.
6704 * diagnostic-color.h: New file.
6705 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6706 arguments.
6707 * doc/invoke.texi (-fdiagnostics-color): Document.
6708 * pretty-print.h (pp_show_color): Define.
6709 (struct pretty_print_info): Add show_color field.
6710 * diagnostic.c: Include diagnostic-color.h.
6711 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6712 macros. Colorize error:, warning: etc. strings and also the location
6713 string.
6714 (diagnostic_show_locus): Colorize the caret line.
6715 * pretty-print.c: Include diagnostic-color.h.
6716 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
6717 inside of %< %> quotes or quoted through q format modifier.
6718
067a1e71
AK
67192013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6720
33159866 6721 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 6722
33159866 67232013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
6724
6725 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6726 code in CC_NZ mode.
6727 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6728 pattern.
6729
7b55f98f
MP
67302013-04-11 Marek Polacek <polacek@redhat.com>
6731
6732 PR tree-optimization/48184
33159866 6733 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 6734
966b587e
EB
67352013-04-11 Eric Botcazou <ebotcazou@adacore.com>
6736
6737 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6738 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6739 (skip_simple_arithmetic): Tidy up.
6740 * tree.h (skip_simple_constant_arithmetic): Declare.
6741
33159866 67422013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
6743
6744 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6745
1d42c1ec
RB
67462013-04-11 Richard Biener <rguenther@suse.de>
6747
6748 * tree-vect-loop.c (get_initial_def_for_induction): Properly
6749 generate vector constants.
6750
4ba5ea11
RB
67512013-04-11 Richard Biener <rguenther@suse.de>
6752
6753 PR tree-optimization/56878
6754 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6755 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6756 New function.
6757 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6758 Prefer to align the DR with the most invariant base address.
6759
f0defe58
SKS
67602013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6761
6762 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6763 comment.
6764
d07458be
JG
67652013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6766
6767 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6768 floating-point vector comparisons against 0.
6769
146b8692
JJ
67702013-04-11 Jakub Jelinek <jakub@redhat.com>
6771
6772 PR tree-optimization/56899
6773 * fold-const.c (extract_muldiv_1): Apply distributive law
6774 only if TYPE_OVERFLOW_WRAPS (ctype).
6775
b8578ff7
BC
67762013-04-11 Bin Cheng <bin.cheng@arm.com>
6777
6778 PR target/56124
6779 * ira-costs.c (scan_one_insn): Check whether the source rtx of
6780 loading has side effect.
6781
0ea8a6f9
SB
67822013-04-10 Steven Bosscher <steven@gcc.gnu.org>
6783
6784 * config/sparc/sparc.c: Include tree-pass.h.
6785 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6786 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
6787 head of file. Change return type. Split off gate function.
6788 (sparc_gate_work_around_errata): New function.
6789 (pass_work_around_errata): New pass definition.
6790 (insert_pass_work_around_errata) New pass insert definition to
6791 insert pass_work_around_errata just after delayed-branch scheduling.
6792 (sparc_option_override): Insert the pass.
6793 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6794
42e37616
DM
67952013-04-10 David S. Miller <davem@davemloft.net>
6796
89deeb3b
DM
6797 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6798 or -mcpu=hypersparc.
6799
42e37616
DM
6800 * target.def (cstore_mode): New hook.
6801 * target.h: Include insn-codes.h
6802 * targhooks.c: Likewise.
6803 (default_cstore_mode): New function.
6804 * targhooks.h: Declare it.
6805 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6806 * doc/tm.texi: Rebuild.
6807 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6808 target hook, rather than inspecting the insn_data.
6809 * config/sparc/sparc.c (sparc_cstore_mode): New function.
6810 (TARGET_CSTORE_MODE): Redefine.
6811 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6812 result patterns.
6813 * config/sparc/predicates.md (cstore_result_operand): New special
6814 predicate.
6815 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6816 Use it for operand 0.
6817 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6818 (*snesi_special): Likewise.
6819 (*snesi_zero): Likewise.
6820 (*seqsi_zero): Likewise.
6821 (*sltu_insn): Likewise.
6822 (*sgeu_insn): Likewise.
6823 (*seqdi_special): Make operand 0 and comparison operation be of
6824 DImode.
6825 (*snedi_special): Likewise.
6826 (*snedi_special_vis3): Likewise.
6827 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6828 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6829 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6830 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6831 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6832 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6833 (*sltu_extend_sp64): Likewise.
6834 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6835 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6836 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6837 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6838 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6839
95ca411e
YZ
68402013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
6841
6842 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6843 (aarch64_start_file): Use the new function.
6844
6782438d 68452013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 6846 Jason Merrill <jason@redhat.com>
6782438d
SKS
6847
6848 * common.opt: Add -gdwarf.
6849 * opts.c (common_handle_option): Handle it.
6850 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6851
bb313b93
RB
68522013-04-10 Richard Biener <rguenther@suse.de>
6853
6854 * passes.c (execute_todo): Do not call ggc_collect conditional here.
6855 (execute_one_ipa_transform_pass): But unconditionally here.
6856 (execute_one_pass): And here.
6857 (init_optimization_passes): Remove reload pass.
6858 * tree-pass.h (TODO_ggc_collect): Remove.
6859 (pass_reload): Likewise.
6860 * ira.c (do_reload): Merge into ...
6861 (ira): ... this.
6862 (rest_of_handle_reload): Remove.
6863 (pass_reload): Likewise.
6864 * config/i386/i386.c (ix86_option_override): Refer to ira instead
6865 of reload for vzeroupper pass placement.
6866 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6867 and todo_flags_finish of all passes.
6868
793d9a16
RB
68692013-04-10 Richard Biener <rguenther@suse.de>
6870
6871 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6872 first_const_oprnd field, rename first_def_type to first_op_type.
6873 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6874 (vect_get_and_check_slp_defs): Always use the type of the
6875 operand. Allow mixed vect_external_def, vect_constant_def types.
6876 (vect_get_constant_vectors): Handle mixed vect_external_def,
6877 vect_constant_def types.
6878
ee8a9b7b
JR
68792013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
6880
6881 PR tree-optimization/55524
6882 * tree-ssa-math-opts.c
6883 (convert_mult_to_fma): Don't use an fms construct
6884 when we don't have an fms operation, but fnma, and it looks
6885 likely that we'll be able to use the latter.
6886
6957a6f6
ZZ
68872013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6888
6889 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6890 function.
6891 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6892 inline fail caused by overwritable functions.
6893
34ab4a5b
CJW
68942013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
6895
6896 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6897 unnecessary bits in the constant power of two case.
6898
abf9bfbc
RB
68992013-04-10 Richard Biener <rguenther@suse.de>
6900
6901 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6902 broken code swapping operands.
6903 (vect_build_slp_tree): Do not compute load permutations here.
6904 (vect_analyze_slp_instance): Compute load permutations here,
6905 after building the SLP tree.
6906
f408477e
CB
69072013-04-09 Christian Bruel <christian.bruel@st.com>
6908
6909 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6910 of next/prev_real_insn.
6911
5ac42672
JH
69122013-04-09 Jan Hubicka <jh@suse.cz>
6913
abf9bfbc
RB
6914 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6915 Drop aliased parameter.
5ac42672
JH
6916 (function_and_variable_visibility): Do not handle alias pairs.
6917 * cgraph.c (varpool_externally_visible_p): Update prototype.
6918 * varpool.c (varpool_add_new_variable): Update.
6919
5017f1d2
KT
69202013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6921
6922 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6923
48eecbee
SB
69242013-04-09 Steven Bosscher <steven@gcc.gnu.org>
6925
a949cf1c
SB
6926 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6927
48eecbee
SB
6928 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6929
75ef8e3d
MP
69302013-04-09 Marek Polacek <polacek@redhat.com>
6931
6932 PR tree-optimization/48762
33159866 6933 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 6934
23847df4
RB
69352013-04-09 Richard Biener <rguenther@suse.de>
6936
6937 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6938 dealing with cost.
6939 (vect_build_slp_tree): Likewise.
6940 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6941 calculating the cost of a SLP instance.
6942 (vect_analyze_slp_instance): Use it from here, after building
6943 the SLP tree.
6944
ea3a0fde
JJ
69452013-04-09 Jakub Jelinek <jakub@redhat.com>
6946
6947 PR middle-end/56883
6948 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6949 expand_omp_for_static_chunk): Use simple_p = true in
6950 force_gimple_operand_gsi calls when assigning to addressable decls.
6951
a32dfe9d
JL
69522013-04-09 Jeff Law <law@redhat.com>
6953
6954 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6955 when the boolean was created by converting a wider object which
6956 had a boolean range.
6957
d755c7ef
RB
69582013-04-09 Richard Biener <rguenther@suse.de>
6959
6960 * tree-vectorizer.h (slp_void_p): Remove.
6961 (slp_tree): Typedef before _slp_tree declaration.
6962 (struct _slp_tree): Use a vector of slp_tree as children.
6963 (vect_get_place_in_interleaving_chain): Remove.
6964 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6965 Move ...
6966 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6967 and make static.
6968 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6969 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6970 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6971 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6972 Use slp_node instead of slp_void_p and adjust.
6973
3d741091
RB
69742013-04-09 Richard Biener <rguenther@suse.de>
6975
6976 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6977 work that is not necessary.
6978
39307ba7
JJ
69792013-04-09 Jakub Jelinek <jakub@redhat.com>
6980
6981 PR tree-optimization/56854
6982 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6983 forward into clobber stmts if it would change MEM_REF lhs into
6984 non-MEM_REF.
6985
343881fd
MK
69862013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
6987
6988 * tree.c (type_hash_lookup, type_hash_add): Make static.
6989 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6990
3922658a
RB
69912013-04-09 Richard Biener <rguenther@suse.de>
6992
6993 * tree.h (unsave_expr_now): Remove.
6994 * tree-inline.c (mark_local_for_remap_r): Remove.
6995 (unsave_expr_1): Likewise.
6996 (unsave_r): Likewise.
6997 (unsave_expr_now): Likewise.
6998 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6999 (propagate_tree_value): Likewise.
7000
9fb6b620
SB
70012013-04-08 Steven Bosscher <steven@gcc.gnu.org>
7002
7003 * doc/rtl.texi (sequence): Rewrite documentation to match the
7004 current use of SEQUENCE rtl objects.
7005 * rtl.def (SEQUENCE): Likewise.
7006
7007 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7008 Update documentation.
7009 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7010 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7011
7012 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7013
8ddb5a29
TJ
70142013-04-08 Teresa Johnson <tejohnson@google.com>
7015
7016 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7017 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 7018 methods.
8ddb5a29
TJ
7019 (estimate_edge_size_and_time): Add comment to suggest using rounding
7020 methods.
7021 (estimate_node_size_and_time): Ditto.
7022 (remap_edge_change_prob): Use helper rounding divide methods.
7023 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7024 (gimple_mod_pow2_value_transform): Ditto.
7025 (gimple_mod_subtract_transform): Ditto.
7026 (gimple_ic_transform): Ditto.
7027 (gimple_stringops_transform): Ditto.
7028 * stmt.c (conditional_probability): Ditto.
7029 (emit_case_dispatch_table): Ditto.
7030 * lto-cgraph.c (merge_profile_summaries): Ditto.
7031 * tree-optimize.c (execute_fixup_cfg): Ditto.
7032 * cfgcleanup.c (try_forward_edges): Ditto.
7033 * cfgloopmanip.c (scale_loop_profile): Ditto.
7034 (loopify): Ditto.
7035 (duplicate_loop_to_header_edge): Ditto.
7036 (lv_adjust_loop_entry_edge): Ditto.
7037 * tree-vect-loop.c (vect_transform_loop): Ditto.
7038 * profile.c (compute_branch_probabilities): Ditto.
7039 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7040 * lto-streamer-in.c (input_cfg): Ditto.
7041 * gimple-streamer-in.c (input_bb): Ditto.
7042 * ipa-cp.c (update_profiling_info): Ditto.
7043 (update_specialized_profile): Ditto.
7044 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7045 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 7046 rounding methods.
8ddb5a29
TJ
7047 * sched-rgn.c (compute_dom_prob_ps): Ditto.
7048 (compute_trg_info): Ditto.
7049 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7050 (purge_dead_edges): Ditto.
7051 * loop-unswitch.c (unswitch_loop): Ditto.
7052 * cgraphclones.c (cgraph_clone_edge): Ditto.
7053 (cgraph_clone_node): Ditto.
7054 * tree-inline.c (copy_bb): Ditto.
7055 (copy_edges_for_bb): Ditto.
7056 (initialize_cfun): Ditto.
7057 (copy_cfg_body): Ditto.
7058 (expand_call_inline): Ditto.
7059
661e6bd7
KT
70602013-04-08 Kai Tietz <ktietz@redhat.com>
7061
7062 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7063 TARGET_CYGWIN64 by TARGET_64BIT.
7064
105766f3
JR
70652013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7066
7067 * config/epiphany/epiphany.md (GPR_1): New constant.
7068 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7069 * config/epiphany/epiphany.c (gen_compare_reg):
7070 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7071 is already in place.
7072 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7073 Don't require being called during rtl expansion; If y operlaps r0,
7074 return 0.
7075 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7076 (epiphany_expand_epilogue): Likewise.
7077
8afab237
JR
7078 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7079 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 7080 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 7081
fa7707d6
JR
7082 * config/epiphany/constraints.md (CnL): New constraint.
7083 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7084 * config/epiphany/predicates.md (add_operand): Allow 1024.
7085
5138e18d
JR
7086 * config/epiphany/epiphany.md (logical_op): New code iterator.
7087 (op_mnc): New code attribute.
7088 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7089 (mov_f+1, mov_f+2): New peephole2 patterns.
7090
2ccc703d
JR
7091 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7092 (cstoresi4): Also allow re-use of zero result when doing a NE
7093 comparison to a non-zero operand.
aefb0819 7094 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 7095
093ac0a5
JR
7096 * config/epiphany/epiphany.md (<insn_opname>v2si3):
7097 Use gen_addsi3_i / gen_subsi3_i.
7098
f223bb13
JJ
70992013-04-08 Jakub Jelinek <jakub@redhat.com>
7100
7101 PR c++/34949
7102 PR c++/50243
7103 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7104 contain anything but clobbers, at most one __builtin_stack_restore,
7105 optionally debug stmts and final resx, and if it has at least one
7106 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
7107 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7108 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7109 which isn't defaut definition, remove them.
7110 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7111 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7112 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7113 with MEM_REF LHS with SSA_NAME address.
7114
4481581f
JL
71152013-04-08 Jeff Law <law@redhat.com>
7116
7117 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 7118
451dabda
RB
71192013-04-08 Richard Biener <rguenther@suse.de>
7120
7121 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7122 extra newline.
7123 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7124 determined vector type.
7125 (vect_analyze_data_refs): Likewise.
7126 (vect_get_new_vect_var): Adjust.
7127 (vect_create_destination_var): Preserve SSA name versions.
7128 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7129 not dump anything here.
7130
3b088b47
JR
71312013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7132
7133 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7134 Add member lr_slot_known.
7135 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7136 if necessary.
7137 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7138 Remove code that sets lr_slot_offset according to what a previous
7139 version of epiphany_emit_save_restore used to do.
7140 (epiphany_emit_save_restore): When doing an lr save or restore,
7141 set/verify lr_slot_known and lr_slot_offset.
7142
d8484d41
XQ
71432013-04-08 Xinyu Qi <xyqi@marvell.com>
7144
33159866
UB
7145 PR target/54338
7146 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
7147 in ALL_REGS.
7148
481be1c4
RB
71492013-04-08 Richard Biener <rguenther@suse.de>
7150
7151 * alias.c (find_base_term): Fix thinko in previous change.
7152
401f3a81
JJ
71532013-04-08 Jakub Jelinek <jakub@redhat.com>
7154
7155 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7156 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7157 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
7158 if possible to compute val.
7159 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7160 For QImode integers don't require anything about precision. Use
7161 const_with_all_bytes_same to find out if the constant doesn't have
7162 repeated bytes in it.
7163
03ed99a8
AK
71642013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7165
7166 * config/s390/s390.c (s390_expand_insv): Only accept insertions
7167 within mode size.
7168
781b2e62
MP
71692013-04-08 Marek Polacek <polacek@redhat.com>
7170
7171 PR rtl-optimization/48182
7172 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7173 value to 1.
7174
27e430a2
JDA
71752013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7176
7177 PR target/55487
7178 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7179 nuses, make sure we have a label.
7180
4902aa64
BS
71812013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7182
7183 PR target/56843
7184 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7185 (rs6000_emit_swdiv_low_precision): Remove.
7186 (rs6000_emit_swdiv): Rewrite to handle between one and four
7187 iterations of Newton-Raphson generally; modify required number of
7188 iterations for some cases.
7189 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7190
7bca81dc
SB
71912013-04-05 Steven Bosscher <steven@gcc.gnu.org>
7192
7193 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7194 set-but-unused variable.
7195
7196 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7197 basic blocks of released function bodies garbage-collectable.
7198
7199 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7200 (struct rtl_opt_pass): Add TODO_df_finish.
7201
7202 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7203
4542a38a
GY
72042013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7205
7206 * config/arm/constraints.md (q): New constraint.
7207 * config/arm/ldrdstrd.md: New file.
7208 * config/arm/arm.md (ldrdstrd.md) New include.
7209 (arm_movdi): Use "q" instead of "r" constraint
7210 for double-word memory access.
7211 (movdf_soft_insn): Likewise.
7212 * config/arm/vfp.md (movdi_vfp): Likewise.
7213 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 7214 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
7215 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7216 (mem_ok_for_ldrd_strd): Likewise.
7217 (output_move_double): Update assertion.
7218
2385b218
GY
72192013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7220
7221 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7222
75fe1cb5
GY
72232013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7224
7225 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7226 define_insn_and_split.
7227 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7228
dd660e8e
GY
72292013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7230
7231 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7232 define_insn_and_split.
33159866 7233 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
7234 (shiftsi3_compare): New pattern.
7235 (rrx): New pattern.
7236 * config/arm/unspecs.md (UNSPEC_RRX): New.
7237
045e472c
GY
72382013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7239
7240 * config/arm/arm.md (negdi_extendsidi): New pattern.
7241 (negdi_zero_extendsidi): Likewise.
7242
3f3bf1a8
GY
72432013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7244
7245 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7246 define_insn_and_split.
7247 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7248 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7249
b0b49556
GY
72502013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7251
7252 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7253 define_insn_and_split.
7254 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7255 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7256
d633dd84
GY
72572013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7258
7259 * config/arm/arm.md (subsi3_carryin): New pattern.
7260 (subsi3_carryin_const): Likewise.
7261 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7262 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7263
f4499066
GY
72642013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7265
7266 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7267
ceef6fd9
GY
72682013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7269
7270 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 7271 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 7272
ddbdd8a7
KT
72732013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7274
7275 * config/arm/arm.c (arm_expand_builtin): Change fcode
7276 type to unsigned int.
7277
8456d78a
RR
72782013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7279
7280 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7281
526c230f
ILT
72822013-04-04 Ian Lance Taylor <iant@google.com>
7283
33159866
UB
7284 * doc/standards.texi (Standards): The Go frontend supports the Go 1
7285 language standard.
526c230f 7286
3cfbe04d
SB
72872013-04-04 Steven Bosscher <steven@gcc.gnu.org>
7288
7289 PR middle-end/56729
7290 * df-scan.c (df_insn_delete): Disable failing assert.
7291
dfa3f8d0
KT
72922013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7293
7294 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7295 New function prototype.
7296 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7297 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7298 (arm_builtin_vectorized_function): New function.
7299
f7837758
KT
73002013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7301
7302 * config/arm/arm_neon_builtins.def: New file.
7303 * config/arm/arm.c (neon_builtin_data): Move contents to
7304 arm_neon_builtins.def.
7305 (enum arm_builtins): Include neon builtin definitions.
7306 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 7307 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 7308
39c1b6db
MP
73092013-04-04 Marek Polacek <polacek@redhat.com>
7310
7311 PR tree-optimization/48186
7312 * predict.c (maybe_hot_frequency_p): Return false if
7313 HOT_BB_FREQUENCY_FRACTION is 0.
7314 (cgraph_maybe_hot_edge_p): Likewise.
7315
314f64eb
RB
73162013-04-04 Richard Biener <rguenther@suse.de>
7317
7318 PR tree-optimization/56826
7319 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7320 more accurately.
7321
51a905b2
RB
73222013-04-04 Richard Biener <rguenther@suse.de>
7323
7324 PR tree-optimization/56213
7325 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 7326 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 7327
f1bf4f3a
RB
73282013-04-04 Richard Biener <rguenther@suse.de>
7329
7330 PR tree-optimization/56837
7331 * tree-loop-distribution.c (classify_partition): For non-zero
7332 values require that the value has the same precision as its
7333 mode to be useful as memset value.
7334
0bca7ded
NC
73352013-04-03 Nick Clifton <nickc@redhat.com>
7336
33159866 7337 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
7338 (fmssf4): Use fmsf.s on E3V5 architectures.
7339 (fnmasf4): Use fnmaf.s on E3V5 architectures.
7340 (fnmssf4): Use fnmsf.s on E3V5 architectures.
7341
b4019227
JL
73422013-04-03 Jeff Law <law@redhat.com>
7343
7344 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7345 (lra-eliminations.o): Likewise.
7346
f57ddb5b
TJ
73472013-04-03 Teresa Johnson <tejohnson@google.com>
7348
7349 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 7350 compute_working_sets here from profile.c.
f57ddb5b 7351 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
7352 (gcov_working_set_t): Moved typedef here from basic-block.h
7353 (compute_working_set): Declare.
f57ddb5b
TJ
7354 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7355 (get_working_sets): Renamed from compute_working_set,
33159866 7356 replace most of body with call to new compute_working_sets.
f57ddb5b 7357 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
7358 to get_working_sets.
7359 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 7360 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 7361 to get_working_sets.
f57ddb5b
TJ
7362 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7363 * gcov-dump.c (dump_working_sets): New function.
7364
5e0919f1
KZ
73652013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
7366
7367 * hwint.c (sext_hwi, zext_hwi): New functions.
7368 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7369 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7370 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7371 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7372 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7373 (sext_hwi, zext_hwi): New functions.
0bca7ded 7374
be672e08
JL
73752013-04-03 Jeff Law <law@redhat.com>
7376
7377 PR tree-optimization/56799
33159866
UB
7378 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7379 back test for widening conversion erroneously dropped in prior change.
be672e08 7380
9d821fa5
KT
73812013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7382
7383 PR target/56809
7384 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7385 instead of next_real_insn.
7386
71c581e7
MP
73872013-04-03 Marek Polacek <polacek@redhat.com>
7388
7389 PR sanitizer/55702
33159866 7390 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 7391
4a32ef80
KT
73922013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7393
7394 PR target/56809
7395 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7396 next_real_insn.
7397 (thumb1_output_casesi): Likewise.
7398 (thumb2_output_casesi): Likewise.
7399
1b2253d4
RB
74002013-04-03 Richard Biener <rguenther@suse.de>
7401
7402 PR tree-optimization/56817
7403 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7404 Split out ...
7405 (tree_unroll_loops_completely_1): ... new function to manually
7406 walk the loop tree, properly defering outer loops of unrolled
7407 loops to later iterations.
7408
38000232
MG
74092013-04-03 Marc Glisse <marc.glisse@inria.fr>
7410
7411 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7412 (vectorizable_load): Likewise.
7413 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7414 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7415
3fa35298
MG
74162013-04-03 Marc Glisse <marc.glisse@inria.fr>
7417
7418 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7419 BIT_FIELD_REF.
7420
b3d45ff0
UW
74212013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7422
7423 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7424
ec9202a8
BC
74252013-04-03 Bin Cheng <bin.cheng@arm.com>
7426
7427 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7428
6805bd36
MG
74292013-04-03 Marc Glisse <marc.glisse@inria.fr>
7430
7431 PR tree-optimization/56790
33159866
UB
7432 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7433 folding.
6805bd36 7434
da694a77
MG
74352013-04-03 Marc Glisse <marc.glisse@inria.fr>
7436
7437 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7438 Handle VEC_MERGE.
7439 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7440 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7441 equal arguments.
7442
4e7d7b3d
JJ
74432013-04-03 Jakub Jelinek <jakub@redhat.com>
7444
7445 PR c/19449
7446 * tree.h (force_folding_builtin_constant_p): New decl.
7447 * builtins.c (force_folding_builtin_constant_p): New variable.
7448 (fold_builtin_constant_p): Fold immediately also if
7449 force_folding_builtin_constant_p.
7450
e6c9d234
RB
74512013-04-03 Richard Biener <rguenther@suse.de>
7452
7453 PR tree-optimization/56812
7454 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7455 DRs of the same interleaving chain are independent.
7456
984d07dd
JM
74572013-04-02 Jason Merrill <jason@redhat.com>
7458
7459 * gdbinit.in (pbb): Use debug fn.
7460
622849c9
LC
74612013-04-02 Lawrence Crowl <crowl@google.com>
7462
7463 * sese.h (struct ivtype_map_elt_s): Remove unused.
7464 (extern debug_ivtype_map): Remove unused.
7465 (extern eq_ivtype_map_elts): Remove unused.
7466 * sese.c (debug_ivtype_map): Removed unused.
7467 (debug_ivtype_map_1): Removed unused.
7468 (debug_ivtype_elt): Remove unused.
7469 (eq_ivtype_map_elts): Remove unused.
7470
7471
82c0e1a0
KT
74722013-04-02 Kai Tietz <ktietz@redhat.com>
7473
7474 PR target/52790
7475 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7476 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
7477 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7478 function.
82c0e1a0
KT
7479 (legitimize_pe_coff_symbol): Likewise.
7480 (is_imported_p): New helper-function.
7481 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7482 for Windows x64 targets.
7483 (ix86_expand_prologue): Optimize for pe-coff targets.
7484 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7485 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7486 medium/large code-model.
7487 (legitimize_pic_address): Likewise.
7488 (legitimize_tls_address): Likewise.
7489 (ix86_expand_call): Likewise.
7490 (x86_output_mi_thunk): Likewise.
7491 (get_dllimport_decl): Add new beimport argument.
7492 (construct_plt_address): Don't assert for x64 pe-coff targets.
7493 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7494 targets.
7495 (SYMBOL_FLAG_STUBVAR): New macro.
7496 (SYMBOL_REF_STUBVAR_P): Likewise.
7497 * config/i386/winnt.c (stub_list): New structure.
7498 (stub_head): New local variable.
7499 (i386_pe_record_stub): New function.
7500 (i386_pe_file_end): Emit refptr-stubs.
7501
5d751b0c
JJ
75022013-04-02 Jakub Jelinek <jakub@redhat.com>
7503
09bb4c99
JJ
7504 PR rtl-optimization/56745
7505 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7506 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7507
a1d8947a
JJ
7508 PR c++/34949
7509 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7510 and both of them are MEM_REFs, just compare first argument for
7511 equality and attempt to deal even with differing offsets.
7512
5d751b0c
JJ
7513 PR c++/34949
7514 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7515 of gimple_clobber_p to be MEM_REF.
7516 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7517 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
7518 after gimplification.
7519 * asan.c (get_mem_ref_of_assignment): Don't instrument
7520 gimple_clobber_p stmts.
7521 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7522 gimple_clobber_p stmt if they have MEM_REF lhs and
7523 are dead because of another gimple_clobber_p stmt.
7524 * tree-ssa-live.c (clear_unused_block_pointer): Treat
7525 gimple_clobber_p stmts like debug stmts.
7526 (remove_unused_locals): Remove clobbers with MEM_REF lhs
7527 that refer to unused VAR_DECLs or uninitialized values.
7528 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7529 gimple_clobber_p stmts if they refer to removed parameters.
7530 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7531 formatting.
7532
e594716a
UB
75332013-04-02 Uros Bizjak <ubizjak@gmail.com>
7534
7535 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7536 using SWI48 mode attribute.
7537
7a80735b
WM
75382013-04-02 Wei Mi <wmi@google.com>
7539
7540 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7541 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7542 *<rotate_insn><mode>3_mask in i386.md.
7543
f423a9e4
AI
75442013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
7545
7546 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7547
90eb75f2
RB
75482013-04-02 Richard Biener <rguenther@suse.de>
7549
7550 PR tree-optimization/56778
7551 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7552 Runtime alias tests are not supported for gather loads.
7553 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7554 stmts referenced from SSA operands before updating SSA form.
7555
d8c69a92
IC
75562013-04-02 Ian Caulfield <ian.caulfield@arm.com>
7557 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7558
7559 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
7560 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7561 * config/arm/cortex-a53.md: New file.
7562 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7563 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7564 * config/arm/arm.c (arm_issue_rate): Likewise.
7565 * config/arm/arm-tune.md: Regenerate
7566 * config/arm/arm-tables.opt: Regenerate.
7567 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 7568
239eb04c
ZC
75692013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
7570
7571 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7572 non-static link.
7573
c902d3c8
SN
75742013-04-02 Sofiane Naci <sofiane.naci@arm.com>
7575
d8c69a92
IC
7576 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7577 scalar load/store operations using B/H registers.
c902d3c8
SN
7578 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7579
051d0e2f
SN
75802013-04-02 Sofiane Naci <sofiane.naci@arm.com>
7581
7582 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7583 scalar move.
7584 * config/aarch64/aarch64.c
7585 (aarch64_simd_scalar_immediate_valid_for_move): New.
7586 * config/aarch64/aarch64-protos.h
7587 (aarch64_simd_scalar_immediate_valid_for_move): New.
7588 * config/aarch64/constraints.md (Dh, Dq): New.
7589 * config/aarch64/iterators.md (hq): New.
7590
0ee1e3d9
EB
75912013-04-02 Eric Botcazou <ebotcazou@adacore.com>
7592
7593 * reorg.c (get_branch_condition): Deal with conditional returns.
7594 (fill_simple_delay_slots): Remove dead code dealing with jumps.
7595
136fb3f7
WM
75962013-04-01 Wei Mi <wmi@google.com>
7597
7598 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7599 Truncate operand 2 using %b asm operand modifier.
7600 (*<shift_insn><mode>3_mask): Ditto.
7601 (*<rotate_insn><mode>3_mask): Ditto.
7602
6388c738
SB
76032013-04-01 Steven Bosscher <steven@gcc.gnu.org>
7604
7605 PR middle-end/56798
7606 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7607
f7a4d826
KK
76082013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
7609
7610 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7611 of next_real_insn.
7612 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7613
4b943a49
LC
76142013-03-30 Lawrence Crowl <crowl@google.com>
7615
7616 * dse.c (clear_alias_sets): Remove never set.
7617 (disqualified_clear_alias_sets): Remove never set.
7618 (clear_alias_mode_pool): Remove never set.
7619 (dse_step0): Remove condition that is never true.
7620 (canon_address): Remove condition that is never true.
7621 (dse_step7): Remove condition that is never true.
7622 (rest_of_handle_dse): Remove condition that is never true.
7623 (rest_of_handle_dse::did_global): Remove never read from above.
7624 (dse_step2_spill): Remove never called from above.
7625 (dse_step5_spill): Remove never called from above.
7626
39718607
SB
76272013-03-30 Steven Bosscher <steven@gcc.gnu.org>
7628
da5c6bde
SB
7629 * doc/md.texi (Standard Names) <casesi>: Update documentation for
7630 JUMP_TABLE_DATA changes.
7631 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7632 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7633 (Insns) <jump_table_data>: New entry.
7634 * doc/tm.texi: Regenerate.
7635
39718607
SB
7636 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7637
7638 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7639 for table jump at the end of a basic block using tablejump_p.
7640 * targhooks.c (default_invalid_within_doloop): Likewise.
7641 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7642 target hook implementation that is identical to the default hook.
7643 (rs6000_invalid_within_doloop): Remove.
7644
7645 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7646 unused variable from tablejump_p call.
7647
7648 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7649 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7650 (INSN_DELETED_P): Likewise.
7651 (emit_jump_table_data): New prototype.
7652 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7653 after 4th as unused.
7654 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7655 * sched-vis.c (print_insn): Likewise.
7656 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7657 insn for compatibility with back ends that use next_active_insn to
7658 identify jump table data.
7659 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7660 (remove_insn): Likewise.
7661 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7662 to be emitted.
7663 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7664 (emit_jump_table_data): New function.
7665
7666 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7667 basic block, a JUMP_TABLE_DATA never is.
7668 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7669 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7670 off from code handling real insns.
7671 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7672 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7673 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7674 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7675 is not a NONDEBUG_INSN_P.
7676 * ira-costs.c (scan_one_insn): Likewise.
7677 * jump.c (mark_all_labels): Likewise.
7678 (mark_jump_label_1): Likewise.
7679 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7680 * lra.c (get_insn_freq): Expect all insns reaching here to be in
7681 a basic block.
7682 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7683 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7684 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7685 JUMP_TABLE_DATA_P insns.
7686 (calculate_elim_costs_all_insns): Likewise.
7687 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7688 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7689 (delete_output_reload): Code style fixups.
7690 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7691 insn flags on this non-insn.
7692 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7693 as scheduling barriers, for pre-change compatibility.
7694 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7695 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7696
7697 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7698 redundant JUMP_TABLE_DATA_P test.
7699 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7700 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7701 (frv_for_each_packet): Likewise.
7702 * config/i386/i386.c (min_insn_size): Likewise.
7703 (ix86_avoid_jump_mispredicts): Likewise.
7704 * config/m32r/m32r.c (m32r_is_insn): Likewise.
7705 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7706 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7707 (mips16_insn_length): Robustify.
7708 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7709 (mips16_split_long_branches): Likewise.
7710 * config/pa/pa.c (pa_combine_instructions): Likewise.
7711 * config/rs6000/rs6000.c (get_next_active_insn): Treat
7712 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7713 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7714 as contributing to pool range lengths.
7715 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7716 Remove redundant JUMP_TABLE_DATA_P test.
7717 (sh_loop_align): Likewise.
7718 (split_branches): Likewise.
7719 (sh_insn_length_adjustment): Likewise.
7720 * config/spu/spu.c (get_branch_target): Likewise.
7721
0208f7da
JH
77222013-03-29 Jan Hubicka <jh@suse.cz>
7723
7724 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7725 gcov streaming; stream hot bb threshold to ltrans.
7726 * predict.c (get_hot_bb_threshold): Break out from ....
7727 (maybe_hot_count_p): ... here.
7728 (set_hot_bb_threshold): New function.
7729 * lto-section-in.c (lto_section_name): Add profile.
7730 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7731 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7732 and data-streamer.h
7733 (histogram_entry): New structure.
7734 (histogram, histogram_pool): New global vars.
7735 (histogram_hash): New structure.
7736 (histogram_hash::hash): New method.
7737 (histogram_hash::equal): Likewise.
7738 (account_time_size): New function.
7739 (cmp_counts): New function.
7740 (dump_histogram): New function.
7741 (ipa_profile_generate_summary): New function.
7742 (ipa_profile_write_summary): New function.
7743 (ipa_profile_read_summary): New function.
7744 (ipa_profile): Decide on threshold.
e594716a
UB
7745 (pass_ipa_profile): Add ipa_profile_write_summary and
7746 ipa_profile_read_summary.
0208f7da
JH
7747 * Makefile.in (ipa.o): Update dependencies.
7748 * lto-streamer.h (LTO_section_ipa_profile): New section.
7749
5a6ccc94
GDR
77502013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
7751
7752 * tree.h (VAR_P): New.
7753
39385fa6
PC
77542013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
7755
7756 PR lto/56777
7757 * doc/invoke.texi ([-fwhole-program]): Fix typo.
7758
34f0d87a
SB
77592013-03-29 Steven Bosscher <steven@gcc.gnu.org>
7760
7761 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7762 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7763 (control_flow_insn_p): Likewise.
7764 * cfgrtl.c (duplicate_insn_chain): Likewise.
7765 * final.c (get_attr_length_1): Likewise.
7766 (shorten_branches): Likewise.
7767 (final_scan_insn): Likewise.
7768 * function.c (instantiate_virtual_regs): Likewise.
7769 * gcse.c (insert_insn_end_basic_block): Likewise.
7770 * ira-costs.c (scan_one_insn): Likewise.
7771 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7772 * lra.c (check_rtl): Likewise.
7773 * reload1.c (elimination_costs_in_insn): Likewise.
7774 * reorg.c (follow_jumps): Likewise.
7775
7776 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7777 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7778 (thumb_far_jump_used_p): Likewise.
7779 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7780 (workaround_speculation): Likewise.
7781 (add_sched_insns_for_speculation): Likewise.
7782 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7783 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7784 (frv_for_each_packet): Likewise.
7785 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7786 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7787 (final_emit_insn_group_barriers): Likewise.
7788 * config/m32r/m32r.c (m32r_is_insn): Likewise.
7789 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7790 (mips16_insn_length): Likewise.
7791 * config/pa/pa.c (pa_reorg): Likewise.
7792 (pa_combine_instructions): Likewise.
7793 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7794 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7795 (sh_reorg): Likewise.
7796 (split_branches): Likewise.
7797 * config/spu/spu.c (get_branch_target): Likewise.
7798
7799 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7800 JUMP_TABLE_DATA_P.
7801
4ac761b0
KY
78022013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
7803
39385fa6 7804 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
7805 Fix declaration name.
7806
58a49189
LC
78072013-03-28 Lawrence Crowl <crowl@google.com>
7808
7809 * graphds.h (struct graph.indicies): Remove unused.
7810 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7811 (SCOP_ORIGINAL_PDDRS): Remove unused.
7812 * sese.h (extern insert_loop_close_phis): Removed unused.
7813 (extern insert_guard_phis): Removed unused.
7814 (extern ivtype_map_elt_info): Removed unused.
7815 (new_ivtype_map_elt): Removed unused.
7816 * sese.c (ivtype_map_elt_info): Removed unused.
7817
7b3b6ae4
LC
78182013-03-28 Lawrence Crowl <crowl@google.com>
7819
7820 * Makefile.in: Add several missing include dependences.
7821 (DUMPFILE_H): New.
7822 (test-dump.o): New. This object is not added to any executable,
7823 but is present for ad-hoc testing.
7824 * bitmap.c
7825 (debug (const bitmap_head_def &)): New.
7826 (debug (const bitmap_head_def *)): New.
7827 * bitmap.h
7828 (extern debug (const bitmap_head_def &)): New.
7829 (extern debug (const bitmap_head_def *)): New.
7830 * cfg.c
7831 (debug (edge_def &)): New.
7832 (debug (edge_def *)): New.
7833 * cfghooks.c
7834 (debug (basic_block_def &)): New.
7835 (debug (basic_block_def *)): New.
7836 * dumpfile.h
7837 (dump_node (const_tree, int, FILE *)): Correct source file.
7838 * dwarf2out.c
7839 (debug (die_struct &)): New.
7840 (debug (die_struct *)): New.
7841 * dwarf2out.h
7842 (extern debug (die_struct &)): New.
7843 (extern debug (die_struct *)): New.
7844 * gimple-pretty-print.c
7845 (debug (gimple_statement_d &)): New.
7846 (debug (gimple_statement_d *)): New.
7847 * gimple-pretty-print.h
7848 (extern debug (gimple_statement_d &)): New.
7849 (extern debug (gimple_statement_d *)): New.
7850 * ira-build.c
7851 (debug (ira_allocno_copy &)): New.
7852 (debug (ira_allocno_copy *)): New.
7853 (debug (ira_allocno &)): New.
7854 (debug (ira_allocno *)): New.
7855 * ira-int.h
7856 (extern debug (ira_allocno_copy &)): New.
7857 (extern debug (ira_allocno_copy *)): New.
7858 (extern debug (ira_allocno &)): New.
7859 (extern debug (ira_allocno *)): New.
7860 * ira-lives.c
7861 (debug (live_range &)): New.
7862 (debug (live_range *)): New.
7863 * lra-int.h
7864 (debug (lra_live_range &)): New.
7865 (debug (lra_live_range *)): New.
7866 * lra-lives.c
7867 (debug (lra_live_range &)): New.
7868 (debug (lra_live_range *)): New.
7869 * omega.c
7870 (debug (omega_pb_d &)): New.
7871 (debug (omega_pb_d *)): New.
7872 * omega.h
7873 (extern debug (omega_pb_d &)): New.
7874 (extern debug (omega_pb_d *)): New.
7875 * print-rtl.c
7876 (debug (const rtx_def &)): New.
7877 (debug (const rtx_def *)): New.
7878 * print-tree.c
7879 (debug_tree (tree): Move within file.
7880 (debug_raw (const tree_node &)): New.
7881 (debug_raw (const tree_node *)): New.
7882 (dump_tree_via_hooks (const tree_node *, int)): New.
7883 (debug (const tree_node &)): New.
7884 (debug (const tree_node *)): New.
7885 (debug_verbose (const tree_node &)): New.
7886 (debug_verbose (const tree_node *)): New.
7887 (debug_head (const tree_node &)): New.
7888 (debug_head (const tree_node *)): New.
7889 (debug_body (const tree_node &)): New.
7890 (debug_body (const tree_node *)): New.
7891 (debug_vec_tree (tree): Move and reimplement in terms of dump.
7892 (debug (vec<tree, va_gc> &)): New.
7893 (debug (vec<tree, va_gc> *)): New.
7894 * rtl.h
7895 (extern debug (const rtx_def &)): New.
7896 (extern debug (const rtx_def *)): New.
7897 * sbitmap.c
7898 (debug_raw (simple_bitmap_def &)): New.
7899 (debug_raw (simple_bitmap_def *)): New.
7900 (debug (simple_bitmap_def &)): New.
7901 (debug (simple_bitmap_def *)): New.
7902 * sbitmap.h
7903 (extern debug (simple_bitmap_def &)): New.
7904 (extern debug (simple_bitmap_def *)): New.
7905 (extern debug_raw (simple_bitmap_def &)): New.
7906 (extern debug_raw (simple_bitmap_def *)): New.
7907 * sel-sched-dump.c
7908 (debug (vinsn_def &)): New.
7909 (debug (vinsn_def *)): New.
7910 (debug_verbose (vinsn_def &)): New.
7911 (debug_verbose (vinsn_def *)): New.
7912 (debug (expr_def &)): New.
7913 (debug (expr_def *)): New.
7914 (debug_verbose (expr_def &)): New.
7915 (debug_verbose (expr_def *)): New.
7916 (debug (vec<rtx> &)): New.
7917 (debug (vec<rtx> *)): New.
7918 * sel-sched-dump.h
7919 (extern debug (vinsn_def &)): New.
7920 (extern debug (vinsn_def *)): New.
7921 (extern debug_verbose (vinsn_def &)): New.
7922 (extern debug_verbose (vinsn_def *)): New.
7923 (extern debug (expr_def &)): New.
7924 (extern debug (expr_def *)): New.
7925 (extern debug_verbose (expr_def &)): New.
7926 (extern debug_verbose (expr_def *)): New.
7927 (extern debug (vec<rtx> &)): New.
7928 (extern debug (vec<rtx> *)): New.
7929 * sel-sched-ir.h
7930 (_list_iter_cond_expr): Make inline instead of static.
7931 * sreal.c
7932 (debug (sreal &)): New.
7933 (debug (sreal *)): New.
7934 * sreal.h
7935 (extern debug (sreal &)): New.
7936 (extern debug (sreal *)): New.
7937 * tree.h
7938 (extern debug_raw (const tree_node &)): New.
7939 (extern debug_raw (const tree_node *)): New.
7940 (extern debug (const tree_node &)): New.
7941 (extern debug (const tree_node *)): New.
7942 (extern debug_verbose (const tree_node &)): New.
7943 (extern debug_verbose (const tree_node *)): New.
7944 (extern debug_head (const tree_node &)): New.
7945 (extern debug_head (const tree_node *)): New.
7946 (extern debug_body (const tree_node &)): New.
7947 (extern debug_body (const tree_node *)): New.
7948 (extern debug (vec<tree, va_gc> &)): New.
7949 (extern debug (vec<tree, va_gc> *)): New.
7950 * tree-cfg.c
7951 (debug (struct loop &)): New.
7952 (debug (struct loop *)): New.
7953 (debug_verbose (struct loop &)): New.
7954 (debug_verbose (struct loop *)): New.
7955 * tree-dump.c: Add header dependence.
7956 * tree-flow.h
7957 (extern debug (struct loop &)): New.
7958 (extern debug (struct loop *)): New.
7959 (extern debug_verbose (struct loop &)): New.
7960 (extern debug_verbose (struct loop *)): New.
7961 * tree-data-ref.c
7962 (debug (data_reference &)): New.
7963 (debug (data_reference *)): New.
7964 (debug (vec<data_reference_p> &)): New.
7965 (debug (vec<data_reference_p> *)): New.
7966 (debug (vec<ddr_p> &)): New.
7967 (debug (vec<ddr_p> *)): New.
7968 * tree-data-ref.h
7969 (extern debug (data_reference &)): New.
7970 (extern debug (data_reference *)): New.
7971 (extern debug (vec<data_reference_p> &)): New.
7972 (extern debug (vec<data_reference_p> *)): New.
7973 (extern debug (vec<ddr_p> &)): New.
7974 (extern debug (vec<ddr_p> *)): New.
7975 * tree-ssa-alias.c
7976 (debug (pt_solution &)): New.
7977 (debug (pt_solution *)): New.
7978 * tree-ssa-alias.h
7979 (extern debug (pt_solution &)): New.
7980 (extern debug (pt_solution *)): New.
7981 * tree-ssa-alias.c
7982 (debug (_var_map &)): New.
7983 (debug (_var_map *)): New.
7984 (debug (tree_live_info_d &)): New.
7985 (debug (tree_live_info_d *)): New.
7986 * tree-ssa-alias.h
7987 (extern debug (_var_map &)): New.
7988 (extern debug (_var_map *)): New.
7989 (extern debug (tree_live_info_d &)): New.
7990 (extern debug (tree_live_info_d *)): New.
7991
be77e1e5
JH
79922013-03-28 Jan Hubicka <jh@suse.cz>
7993
7994 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7995
777e6976
IB
79962013-03-28 Ian Bolton <ian.bolton@arm.com>
7997
7998 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7999 record only when desired or required.
8000
9cd347ae
UB
80012013-03-28 Uros Bizjak <ubizjak@gmail.com>
8002
8003 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8004 *vec_extractv2di_1_rex64. Use x64 isa attribute.
8005
33159866 80062013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
8007
8008 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8009 (*andsi3_compare0_uxtw): New pattern.
8010 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8011 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8012
89ab31c1
JH
80132013-03-28 Jan Hubicka <jh@suse.cz>
8014
8015 * data-streamer-in.c (streamer_read_gcov_count): New function.
8016 * gimple-streamer-out.c: Include value-prof.h.
8017 (output_gimple_stmt): Output histogram.
8018 (output_bb): Use streamer_write_gcov_count.
8019 * value-prof.c: Include data-streamer.h
8020 (dump_histogram_value): Add HIST_TYPE_MAX.
8021 (stream_out_histogram_value): New function.
8022 (stream_in_histogram_value): New function.
8023 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8024 (stream_out_histogram_value, stream_in_histogram_value): Declare.
8025 * data-streamer-out.c (streamer_write_gcov_count): New function.
8026 (streamer_write_gcov_count_stream): New function.
8027 * lto-cgraph.c (lto_output_edge): Update counter streaming.
8028 (lto_output_node): Likewise.
8029 (input_node, input_edge): Likewise.
8030 * lto-streamer-out.c (output_cfg): Update streaming.
8031 * lto-streamer-in.c (input_cfg): Likewise.
8032 * data-streamer.h (streamer_write_gcov_count,
8033 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8034 * gimple-streamer-in.c: Include value-prof.h
8035 (input_gimple_stmt): Input histograms.
8036 (input_bb): Update profile streaming.
8037
e594716a 80382013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 8039
33159866 8040 * genmodes.c (emit_max_int): New function.
8697be17 8041 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
8042 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8043 Added doc.
8697be17 8044 * machmode.def: Fixed comment.
89ab31c1 8045
e594716a 80462013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
8047
8048 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
8049 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8050
74946978
MP
80512013-03-28 Marek Polacek <polacek@redhat.com>
8052 Richard Biener <rguenther@suse.de>
8053
8054 PR tree-optimization/56695
8055 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8056 build signed result of a vector comparison.
8057 * tree-cfg.c (verify_gimple_comparison): Check that a result
8058 of a vector comparison has signed type.
8059
a64b9c26
RB
80602013-03-28 Richard Biener <rguenther@suse.de>
8061
8062 PR tree-optimization/37021
8063 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8064 do not restrict gaps between groups.
8065 * tree-vect-stmts.c (vectorizable_load): Properly account for
8066 a gap between groups.
8067
a9dc2a2f
EB
80682013-03-28 Eric Botcazou <ebotcazou@adacore.com>
8069
8070 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8071 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8072 is not enabled.
8073
53cb97f9
GP
80742013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8075
8076 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8077 * doc/extend.texi (Named Address Spaces): Ditto.
8078 (Variable Attributes): Ditto.
8079
b802ae5c
KT
80802013-03-27 Kai Tietz <ktietz@redhat.com>
8081
eddae10a
KT
8082 * config.build: Add support for cygwin x64 target.
8083 * config.gcc: Likewise.
8084 * config.host: Likewise.
8085 * configure.ac: Likewise
8086 * configure: Regenerated.
b802ae5c 8087
8269de54
KT
80882013-03-27 Kai Tietz <ktietz@redhat.com>
8089
8090 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8091 * config/i386/t-cygwin-w64: New file.
8092 * config/i386/cygwin-w64.h: New file.
8093 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8094 and add support for x64-cygwin target.
8095 (CPP_SPEC): Likewise.
8096 (CXX_WRAP_SPEC_LIST): Undefine before define.
8097 (LIBGCJ_SONAME): Use 15 as version.
8098
f49b33cb
RB
80992013-03-27 Richard Biener <rguenther@suse.de>
8100
8101 PR tree-optimization/56716
8102 * tree-ssa-structalias.c (perform_var_substitution): Adjust
8103 dumping for ref nodes.
8104
b37a6ce5
MJ
81052013-03-27 Martin Jambor <mjambor@suse.cz>
8106
8107 PR tree-optimization/55334
8108 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8109 restricted pointers to arrays.
8110
9469b9b2
GDR
81112013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8112
8113 * Makefile.in (.SUFFIXES): Add .cc.
8114 (.c.o): Apply same recipe for implicit rule .cc.o.
8115
7d24f650
RB
81162013-03-27 Richard Biener <rguenther@suse.de>
8117
8118 PR tree-optimization/37021
8119 * tree-vect-data-refs.c (vect_check_strided_load): Allow
8120 REALPART/IMAGPART_EXPRs around the supported refs.
8121 * tree-ssa-structalias.c (find_func_aliases): Assume that
8122 floating-point values are not used to transfer pointers.
8123
2f251a05
AI
81242013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8125
39385fa6
PC
8126 * target.def (TARGET_HAS_IFUNC_P): New target hook.
8127 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8128 * doc/tm.texi: Regenerate.
8129 * targhooks.h (default_has_ifunc_p): New.
8130 * targhooks.c (default_has_ifunc_p): Ditto.
8131 * config/linux-protos.h: New file.
8132 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
8133 this hook for linux which disables support of indirect functions in
8134 android.
39385fa6
PC
8135 * config/linux-android.c: New file.
8136 * config/t-linux-android.c: Ditto.
8137 * config.gcc: Added new object file linux-android.o.
8138 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 8139 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 8140 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
8141 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8142 doesn't support indirect functions.
8143 * configure: Regenerate.
8144
78b4e425
BC
81452013-03-27 Bin Cheng <bin.cheng@arm.com>
8146
8147 PR target/56102
8148 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8149 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8150 mult-word mode.
8151
a5ba7b92
AK
81522013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8153
8154 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8155
be624986
TG
81562013-03-27 Terry Guo <terry.guo@arm.com>
8157
8158 * config/arm/arm-cores.def: Added core cortex-r7.
8159 * config/arm/arm-tune.md: Regenerated.
8160 * config/arm/arm-tables.opt: Regenerated.
8161 * doc/invoke.texi: Added entry for core cortex-r7.
8162
0a514f47
WL
81632013-03-27 Walter Lee <walt@tilera.com>
8164
8165 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8166 double-decrement of next_scratch_regno.
8167
9332b0d2
WL
81682013-03-27 Walter Lee <walt@tilera.com>
8169
801d9b2a 8170 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
8171 input operands.
8172 (insn_v1mulus): Ditto.
8173 (insn_v2muls): Ditto.
8174
f54ea5dd
WL
81752013-03-27 Walter Lee <walt@tilera.com>
8176
e594716a 8177 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
8178 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8179
bf60f4ca
WL
81802013-03-27 Walter Lee <walt@tilera.com>
8181
e594716a 8182 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
8183 (*sibcall_value): Ditto.
8184
e3b51eeb
WL
81852013-03-27 Walter Lee <walt@tilera.com>
8186
8187 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8188 (insn_mnz_v8qi): ... this ...
8189 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
8190 vector equivalent.
8191 (insn_v<n>mnz): Replaced by ...
8192 (insn_v1mnz): ... this ...
8193 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
8194 equivalent.
8195 (insn_mz_<mode>): Replaced by ...
8196 (insn_mz_v8qi): ... this ...
8197 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
8198 vector equivalent.
8199 (insn_v<n>mz): Replaced by ...
8200 (insn_v1mz): ... this ...
8201 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
8202 equivalent.
8203
4fc7b145
EB
82042013-03-26 Eric Botcazou <ebotcazou@adacore.com>
8205
8206 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8207
6f33817e
RM
82082013-03-26 Roland McGrath <mcgrathr@google.com>
8209
8210 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8211 than fprintf with a non-constant, non-format string.
8212
93a4145b
UB
82132013-03-26 Uros Bizjak <ubizjak@gmail.com>
8214
8215 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8216 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
8217 operand 0 predicate.
8218 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8219 attribute. Use general_x64nomem_operand as operand 1 predicate.
8220 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8221 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8222 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8223 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8224 (mov<mode>_insv_1): Remove expander. Merge insn with
8225 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8226 Use general_x64nomem_operand as operand 1 predicate.
8227 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8228 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8229 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8230 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8231 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8232 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8233 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8234 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8235 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8236 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8237 (general_x64nomem_operand): Ditto.
8238
c6a9ed5a 82392013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
8240
8241 * config/rtems.opt: Add -pthread option.
8242
31b0a960
RB
82432013-03-26 Richard Biener <rguenther@suse.de>
8244
93a4145b
UB
8245 * alias.c (find_base_term): Avoid redundant and not used recursion.
8246 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
8247 (true_dependence_1): Compute and pass base terms to base_alias_check.
8248 (write_dependence_p): Likewise.
8249 (may_alias_p): Likewise.
8250
79517551
SN
82512013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8252
8253 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8254 PC-relative load in SI modes and above only.
8255
a76213b9
XQ
82562013-03-26 Xinyu Qi <xyqi@marvell.com>
8257
8258 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
8259 * config/arm/iwmmxt.md (WCGR0): Update.
8260 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 8261
37ff9355
UB
82622013-03-26 Uros Bizjak <ubizjak@gmail.com>
8263
8264 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8265 Use x64 and nox64 isa attributes.
8266
30b0317c
RB
82672013-03-26 Richard Biener <rguenther@suse.de>
8268
8269 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8270 alignment computations and rely on get_object_alignment_1
8271 for the !TYPE_P case.
8272 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8273
cbcdb140
WL
82742013-03-26 Walter Lee <walt@tilera.com>
8275
8276 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8277 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8278
dd884525 82792013-03-25 Jeff Law <law@redhat.com>
be672e08 8280
33159866
UB
8281 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8282 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
8283 wrong version of prior patch.
8284
0051d3ec
WL
82852013-03-25 Walter Lee <walt@tilera.com>
8286
8287 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8288 TILEGX_INSN_SHUFFLEBYTES1.
8289 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8290 shufflebytes1.
8291 (tilegx_builtins): Ditto.
8292 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8293
065a3605
WL
82942013-03-25 Walter Lee <walt@tilera.com>
8295
8296 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
8297 (floatunssisf2): New pattern.
8298 (floatsidf2): New pattern.
8299 (floatunssidf2): New pattern.
065a3605 8300
5b2a3c82
WL
83012013-03-25 Walter Lee <walt@tilera.com>
8302
8303 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8304 tests for constraint J, K, N, P.
8305
192ea533
WL
83062013-03-25 Walter Lee <walt@tilera.com>
8307
8308 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8309 Use indirect/pcrel encoding.
8310 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8311 Ditto.
8312
855e0d0b
SE
83132013-03-25 Steve Ellcey <sellcey@mips.com>
8314
8315 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8316 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8317 * config/mips/mips.c (mips_option_override): Set IMADD default.
8318 * config/mips/mips.h (PTF_AVOID_IMADD): New.
8319 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8320 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8321 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8322 * doc/invoke.texi (-mimadd/-mno-imadd): New.
8323
39e45653
JL
83242013-03-25 Jeff Law <law@redhat.com>
8325
8326 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8327 slightly to avoid creating and folding useless trees. Simplify
8328 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8329
7482c470
UB
83302013-03-25 Uros Bizjak <ubizjak@gmail.com>
8331
8332 * config/i386/i386.md (*zero_extendsidi2): Merge with
8333 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
8334 * config/i386/predicates.md (x86_64_zext_operand): Rename from
8335 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
8336 targets. Clarify comment.
8337
4a53743e
MJ
83382013-03-25 Martin Jambor <mjambor@suse.cz>
8339
8340 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8341 pass-through jump functions differently.
8342 (ipa_read_jump_function): Likewise. Also use setter functions to set
8343 up jump functions.
8344
162712de
MJ
83452013-03-25 Martin Jambor <mjambor@suse.cz>
8346
8347 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8348 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8349 process it.
8350 (ipa_get_indirect_edge_target): New function.
8351 (devirtualization_time_bonus): New parameter known_aggs, pass it to
8352 ipa_get_indirect_edge_target. Update all callers.
8353 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
8354 ipa_get_indirect_edge_target_1 instead of calling
8355 ipa_get_indirect_edge_target.
8356 (create_specialized_node): Pass aggvlas to
8357 ipcp_discover_new_direct_edges.
8358
a5a4c20a
KT
83592013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8360
8361 * config/arm/arm.md (f_sels, f_seld): New types.
8362 (*cmov<mode>): New pattern.
8363 * config/arm/predicates.md (arm_vsel_comparison_operator): New
8364 predicate.
8365
f992b9fc
KT
83662013-03-25 Kai Tietz <ktietz@redhat.com>
8367
8368 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8369 POSIX-printf for mingw-hosted builds.
8370
c16fd676
RB
83712013-03-25 Richard Biener <rguenther@suse.de>
8372
8373 PR middle-end/56694
8374 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8375 must-not-throw stmt location.
8376
5ad29f12
KT
83772013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8378
8379 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8380 Emit load-acquire versions when acq is true.
8381 (arm_emit_store_exclusive): Add rel parameter.
8382 Emit store-release versions when rel is true.
8383 (arm_split_compare_and_swap): Use acquire-release instructions
8384 instead.
8385 of barriers when appropriate.
8386 (arm_split_atomic_op): Likewise.
8387 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8388 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8389 (VUNSPEC_SLX): Likewise.
8390 (VUNSPEC_LDA): Likewise.
8391 (VUNSPEC_STL): Likewise.
8392 * config/arm/sync.md (atomic_load<mode>): New pattern.
8393 (atomic_store<mode>): Likewise.
8394 (arm_load_acquire_exclusive<mode>): Likewise.
8395 (arm_load_acquire_exclusivesi): Likewise.
8396 (arm_load_acquire_exclusivedi): Likewise.
8397 (arm_store_release_exclusive<mode>): Likewise.
8398
03a7dddb
CM
83992013-03-25 Catherine Moore <clm@codesourcery.com>
8400
8401 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8402 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8403 * config/mip/predicates.md (lwsp_swsp_operand,
8404 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8405 sb16_operand, db4_operand, db7_operand, ib3_operand,
8406 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8407 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8408 andi16_operand): New predicates.
8409 * config/mips/mips.md (compression): New attribute.
8410 (enabled): New attribute.
8411 (length): Consider compression in computing length.
8412 (shift_compression): New code attribute.
8413 (*add<mode>3): New operands. Record compression.
8414 (sub<mode>3): Likewise.
8415 (one_cmpl<mode>2): Likewise.
8416 (*and<mode>3): Likewise.
8417 (*ior<mode>3): Likewise.
8418 (unnamed pattern for xor): Likewise.
8419 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8420 (*<optab><mode>3): Likewise.
8421 (*mov<mode>_internal: Likewise.
8422 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8423 (mips_unsigned_immediate_p): New.
8424 (umips_lwsp_swsp_address_p): New.
8425 (m16_based_address_p): New.
8426 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8427 (mips_unsigned_immediate_p): New prototype.
8428 (lwsp_swsp_address_p): New prototype.
8429 (m16_based_address_p): New prototype.
8430 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8431 (mips_signed_immediate_p): New function.
8432 (m16_based_address_p): New function.
8433 (lwsp_swsp_address_p): New function.
8434 (mips_print_operand_punctuation): Recognize short delay slot insns
8435 for microMIPS.add<mode>3"
8436
f35c297f 84372013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 8438
f35c297f
KT
8439 PR target/56720
8440 * config/arm/iterators.md (v_cmp_result): New mode attribute.
8441 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8442
051b9446
RB
84432013-03-25 Richard Biener <rguenther@suse.de>
8444
8445 PR tree-optimization/56689
8446 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8447 any edge.
8448
374001cb
RB
84492013-03-25 Richard Biener <rguenther@suse.de>
8450
8451 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8452 of bitmap.
8453 (memory_references): Likewise.
8454 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8455 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8456 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8457 (gather_mem_refs_in_loops): Fold into ...
8458 (analyze_memory_references): ... this. Move initialization
8459 to tree_ssa_lim_initialize.
8460 (fill_always_executed_in): Rename to ...
8461 (fill_always_executed_in_1): ... this.
8462 (fill_always_executed_in): Move contains_call computation to
8463 this new function from ...
8464 (tree_ssa_lim_initialize): ... here.
8465 (tree_ssa_lim): Call fill_always_executed_in.
8466
57895947
EB
84672013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8468
8469 * postreload.c (reload_combine): Fix code detecting returns.
8470
1e1b18c1
EB
84712013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8472
8473 * function.c (emit_use_return_register_into_block): On cc0 targets,
8474 do not emit the sequence between cc0 setter and user.
8475
9216baf1
KT
84762013-03-25 Kai Tietz <ktietz@redhat.com>
8477
1e1b18c1
EB
8478 * config/i386/predicates.md (local_symbolic_operand): Interpret
8479 dll-imported symbols as none-local.
9216baf1 8480
76421b44
RB
84812013-03-25 Richard Biener <rguenther@suse.de>
8482
8483 * tree-ssa-loop-im.c (struct depend): Remove.
8484 (struct lim_aux_data): Make depends a vec of gimples.
8485 (free_lim_aux_data): Adjust.
8486 (add_dependency): Likewise.
8487 (set_level): Likewise.
8488
d154bfa2
RB
84892013-03-25 Richard Biener <rguenther@suse.de>
8490
8491 PR middle-end/56434
8492 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8493 the pointer returned by calls with ECF_MALLOC set.
8494
2cd9804e
UB
84952013-03-24 Uros Bizjak <ubizjak@gmail.com>
8496
acef5fe0
UB
8497 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8498
84992013-03-24 Uros Bizjak <ubizjak@gmail.com>
8500
8501 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
8502 using MMXMODE mode iterator.
8503 (*move<mode>_internal): Merge with *movv2sf_internal and
8504 *movv2sf_internal_rex64 using MMXMODE mode iterator.
8505
225ccc68
SB
85062013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8507
85c0f02d
SB
8508 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8509 (record_last_mem_set_info): Likewise.
8510
225ccc68
SB
8511 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8512 of XNEWVEC followed by memset.
8513 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8514
b64925dc
SB
85152013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8516
8517 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8518 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8519 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8520 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8521 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8522 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8523 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8524 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8525 BARRIER_P instead of GET_CODE.
8526
b9aaf52e
EB
85272013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8528
8529 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8530 inaccuracy in the probing code.
8531
8532 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8533 (ctrapdi4): Likewise.
8534
66de4d7c
EB
85352013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8536
8537 * calls.c (expand_call): Add missing guard to code handling return
8538 of non-BLKmode structures in MSB.
8539 * function.c (expand_function_end): Likewise.
8540
4f25c8fb
EB
85412013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8542
8543 * combine.c (try_combine): Adjust comment. Do not add the set of
8544 insn #0 if the destination indirectly is set or dies in insn #2.
8545 Tidy up code to distribute a new note.
8546
23b7850d
UB
85472013-03-22 Uros Bizjak <ubizjak@gmail.com>
8548
8549 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8550 also for alternatives 16 and 17.
8551
bed852cf
UB
85522013-03-22 Uros Bizjak <ubizjak@gmail.com>
8553
8554 * config/i386/sse.md (*mov<mode>_internal): Merge with
8555 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
8556 Emit insn template depending on type attribute. Use
8557 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8558 movd instead of movq mnemonic for interunit moves. Rewrite mode
8559 attribute calculation. Remove unit attribute calculation.
8560 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8561 Set prefix_data16 attribute for DImode ssemov types.
8562 Use Ym instead of y for SSE-MMX conversion alternatives.
8563 Reorder operand constraints.
8564
1e8a7937
SB
85652013-03-22 Steven Bosscher <steven@gcc.gnu.org>
8566
8567 * df.h (df_insn_delete): Adjust prototype.
8568 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8569 and let it decide whether mark the basic block dirty.
8570 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8571 * df-scan.c (df_insn_info_delete): New helper function, split
8572 off from df_insn_delete.
8573 (df_scan_free_bb_info): Use it.
8574 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8575 Likewise.
8576 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
8577 that the insn is actually an insn and it has a non-NULL basic block.
8578 Do not mark basic block dirty if only deleting a DEBUG_INSN.
8579
e14d094c
RB
85802013-03-22 Richard Biener <rguenther@suse.de>
8581
8582 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8583 dep_ref members.
8584 (mem_ref_alloc): Do not allocate them.
8585 (refs_independent_p): Do not query or maintain a cache.
8586
e9cf7316
RB
85872013-03-22 Richard Biener <rguenther@suse.de>
8588
8589 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8590 (gather_mem_refs_in_loops): Do not compute it.
8591 (analyze_memory_references): Do not allocate it.
8592 (tree_ssa_lim_finalize): Do not free it.
8593 (for_all_locs_in_loop): Do not query all_refs_in_loop.
8594
f046e81b
RB
85952013-03-22 Richard Biener <rguenther@suse.de>
8596
8597 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 8598
a05c0ddf
IB
85992013-03-22 Ian Bolton <ian.bolton@arm.com>
8600
8601 * config/aarch64/aarch64.c (aarch64_print_operand): New
8602 format specifier for printing a constant in hex.
8603 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8604 format specifier for printing second operand.
8605
c00217fc
RB
86062013-03-22 Richard Biener <rguenther@suse.de>
8607
8608 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8609 bitmaps.
8610 (gather_mem_refs_in_loops): Perform store accumulation here.
8611 (create_vop_ref_mapping_loop): Remove.
8612 (create_vop_ref_mapping): Likewise.
8613 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 8614 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
8615 (record_indep_loop): Remove.
8616 (record_dep_loop): New function.
8617 (ref_indep_loop_p_1): Adjust to only walk over references
8618 in the loop, not its subloops.
8619 (ref_indep_loop_p): Rename to ...
8620 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8621 maintaining a more fine-grained cache.
8622 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8623 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8624
15d19bf8
RB
86252013-03-22 Richard Biener <rguenther@suse.de>
8626
8627 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8628 (struct mem_ref): Make accesses_in_loop a vec of a vec of
8629 aggregate mem_ref_loc.
8630 (free_mem_ref_locs): Inline into ...
8631 (memref_free): ... this and adjust.
8632 (mem_ref_alloc): Adjust.
8633 (mem_ref_locs_alloc): Remove.
8634 (record_mem_ref_loc): Adjust.
8635 (get_all_locs_in_loop): Rewrite into ...
8636 (for_all_locs_in_loop): ... this iterator.
8637 (rewrite_mem_ref_loc): New functor.
8638 (rewrite_mem_refs): Use for_all_locs_in_loop.
8639 (sm_set_flag_if_changed): New functor.
8640 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8641 (ref_always_accessed): New functor.
8642 (ref_always_accessed_p): Use for_all_locs_in_loop.
8643
6f37411d
MG
86442013-03-21 Marc Glisse <marc.glisse@inria.fr>
8645
8646 * tree-pass.h (PROP_gimple_lvec): New.
8647 * passes.c (dump_properties): Handle PROP_gimple_lvec.
8648 (init_optimization_passes): Move pass_lower_vector.
8649 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8650 PROP_gimple_lvec.
8651 (pass_lower_vector): Provide PROP_gimple_lvec.
8652 (pass_lower_vector_ssa): Likewise.
8653 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8654
511ef689
MW
86552013-03-21 Mark Wielaard <mjw@redhat.com>
8656
8657 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8658
cc1df30b
UB
86592013-03-21 Uros Bizjak <ubizjak@gmail.com>
8660
8661 * config/i386/i386.md (*movdi_internal): Disparage slightly
8662 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
8663 conversion alternatives.
8664
c845cfe1
JJ
86652013-03-21 Jakub Jelinek <jakub@redhat.com>
8666
37e99116
JJ
8667 PR middle-end/48087
8668 * diagnostic.def (DK_WERROR): New kind.
8669 * diagnostic.h (werrorcount): Define.
8670 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8671 promoted to DK_ERROR, increment DK_WERROR counter instead of
8672 DK_ERROR counter.
8673 * toplev.c (toplev_main): Call print_ignored_options even if
8674 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
8675 even if just werrorcount is non-zero.
8676
c845cfe1
JJ
8677 PR debug/55608
8678 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8679 on failure.
8680 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8681 (string_cst_pool_decl): New function.
8682 (optimize_one_addr_into_implicit_ptr): New function.
8683 (resolve_addr_in_expr): Optimize DWARF location expression
8684 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8685 which doesn't live in memory, but has DW_AT_location or
8686 DW_AT_const_value, or refers to a string literal, into
8687 DW_OP_GNU_implicit_pointer.
8688 (optimize_location_into_implicit_ptr): New function.
8689 (resolve_addr): If removing DW_AT_location of a variable because
8690 it was DW_OP_addr of address of the variable, but the variable doesn't
8691 live in memory, try to emit const value attribute for the initializer.
8692
08e0cda6
MG
86932013-03-21 Marc Glisse <marc.glisse@inria.fr>
8694
8695 * tree.h (VECTOR_TYPE_P): New macro.
8696 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8697 TYPE_MODE): Use it.
8698 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8699 VEC_COND_EXPR cannot be lvalues.
8700 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8701
d08633b4
MG
87022013-03-21 Marc Glisse <marc.glisse@inria.fr>
8703
8704 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8705 Restrict the transformation to equal modes.
8706
e6647190
RB
87072013-03-21 Richard Biener <rguenther@suse.de>
8708
8709 PR tree-optimization/39326
8710 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8711 (MEM_ANALYZABLE): Adjust.
8712 (record_mem_ref_loc): Move bitmap ops ...
8713 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
8714 unanalyzable refs, do not record locations for it.
8715 (analyze_memory_references): Allocate ref zero as shared
8716 unanalyzable ref.
8717 (refs_independent_p): Do not test for unanalyzed mems here.
8718 (ref_indep_loop_p_1): Special-case disambiguation against
8719 the unanalyzed ref.
cc1df30b 8720 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 8721
65074f54
CL
87222013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
8723
8724 * config/arm/arm-protos.h (tune_params): Add
8725 prefer_neon_for_64bits field.
8726 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8727 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8728 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8729 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8730 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8731 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8732 (arm_option_override): Handle -mneon-for-64bits new option.
8733 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8734 (prefer_neon_for_64bits): Declare new variable.
8735 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 8736 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
8737 (arch_enabled): Handle new arch types. Remove support for onlya8
8738 and nota8.
8739 (one_cmpldi2): Use new arch names.
bc5faa5b 8740 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
8741 * config/arm/arm.opt (mneon-for-64bits): Add option.
8742 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8743 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8744 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8745 of onlya8.
8746 * doc/invoke.texi (-mneon-for-64bits): Document.
8747
5a2d2a79
RB
87482013-03-21 Richard Biener <rguenther@suse.de>
8749
8750 PR tree-optimization/39326
8751 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8752 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 8753 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 8754
5abe1e05
RB
87552013-03-21 Richard Biener <rguenther@suse.de>
8756
8757 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8758 (vect_insert_into_interleaving_chain): Likewise.
8759 (vect_drs_dependent_in_basic_block): Inline ...
8760 (vect_slp_analyze_data_ref_dependence): ... here. New function,
8761 split out from ...
8762 (vect_analyze_data_ref_dependence): ... here. Simplify.
8763 (vect_check_interleaving): Simplify.
8764 (vect_analyze_data_ref_dependences): Likewise. Split out ...
8765 (vect_slp_analyze_data_ref_dependences): ... this new function.
8766 (dr_group_sort_cmp): New function.
8767 (vect_analyze_data_ref_accesses): Compute data-reference groups
8768 here instead of in vect_analyze_data_ref_dependence. Use
8769 a more efficient algorithm.
8770 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8771 vect_slp_analyze_data_ref_dependences. Call
8772 vect_analyze_data_ref_accesses earlier.
8773 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8774 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8775 (vect_slp_analyze_data_ref_dependences): New prototype.
8776
cad1735b
RB
87772013-03-21 Richard Biener <rguenther@suse.de>
8778
8779 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8780 ref is stored in the loop.
8781 (find_refs_for_sm): Walk only over all stores.
8782 (store_motion_loop): Allocate from lim_bitmap_obstack.
8783 (store_motion): Likewise.
8784
141310ef
RB
87852013-03-21 Richard Biener <rguenther@suse.de>
8786
8787 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8788 Update virtual SSA form.
8789
5022315a
RO
87902013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8791
8792 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8793 * configure: Regenerate.
8794 * config.in: Regenerate.
8795 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8796 if !HAVE_LD_EH_FRAME_CIEV3.
8797
50d4421c
RB
87982013-03-21 Richard Biener <rguenther@suse.de>
8799
8800 * tree-cfg.c (verify_expr_no_block): New function.
8801 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8802 nor DECL_VALUE_EXPR have locations with associated blocks.
8803 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8804 (clear_unused_block_pointer): Remove code dealing with
8805 blocks in DECL_DEBUG_EXPR locations.
8806
839b422f
RB
88072013-03-21 Richard Biener <rguenther@suse.de>
8808
8809 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8810 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
8811 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8812 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8813 instead of DECL_DEBUG_EXPR_IS_FROM.
8814 * gimplify.c (gimplify_modify_expr): Likewise.
8815 * tree-cfg.c (verify_expr_location_1): Likewise.
8816 * tree-complex.c (create_one_component_var): Likewise.
8817 * tree-sra.c (create_access_replacement): Likewise.
8818 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8819 (clear_unused_block_pointer): Likewise.
8820 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8821 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8822 * var-tracking.c (var_debug_decl): Likewise.
8823 (track_expr_p): Likewise.
8824 * tree-inline.c (add_local_variables): Likewise. Set
8825 DECL_HAS_DEBUG_EXPR_P after copying it.
8826 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8827 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
8828
fe04878d
UB
88292013-03-21 Uros Bizjak <ubizjak@gmail.com>
8830
8831 PR bootstrap/56656
8832 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8833 * configure: Regenerate.
8834 * config.in: Regenerate.
8835 * config/i386/i386.md (*movdf_internal): Use
8836 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8837 movd instead of movq mnemonic for interunit moves.
8838 (*movdi_internal): Ditto.
8839
bd059b26 88402013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
8841
8842 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8843 (abd<mode>_3): New pattern.
8844 (aba<mode>_3): New pattern.
8845 (fabd<mode>_3): New pattern.
8846
bd059b26 88472013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
8848
8849 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8850 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8851 occurrence of REGISTER_PREFIX as its empty string.
8852
4f1f78b9
JL
88532013-03-20 Jeff Law <law@redhat.com>
8854
8855 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8856 addititional equivalences for equality comparisons between an SSA_NAME
8857 and a constant where the SSA_NAME was set from a widening conversion.
8858
327a1118
WL
88592013-03-20 Walter Lee <walt@tilera.com>
8860
8861 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8862
813e0036
UB
88632013-03-20 Uros Bizjak <ubizjak@gmail.com>
8864
8865 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8866 depending on type attribute.
8867 (*movti_internal): Ditto.
8868 (*movtf_internal): Ditto.
8869 (*movxf_internal): Ditto.
8870 (*movdf_internal): Ditto.
8871 (*movsf_internal): Ditto.
8872
7cf34aae
UB
88732013-03-20 Uros Bizjak <ubizjak@gmail.com>
8874
8875 * config/i386/i386.md (*movti_internal): Set prefix attribute to
8876 maybe_vex for sselog1 and ssemov types.
8877 (*movdi_internal): Reorder operand constraints.
8878 (*movsi_internal): Ditto. Set prefix attribute to
8879 maybe_vex for sselog1 and ssemov types.
8880 (*movtf_internal): Set prefix attribute to maybe_vex
8881 for sselog1 and ssemov types.
8882 (*movdf_internal): Ditto. Set prefix_data16 attribute for
8883 DImode ssemov types. Reorder operand constraints.
8884 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
8885 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
8886 attribute for SImode ssemov types. Reorder operand constraints.
8887
19321415
MJ
88882013-03-20 Martin Jambor <mjambor@suse.cz>
8889
8890 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8891 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8892
c6d5ff83
MM
88932013-03-20 Pat Haugen <pthaugen@us.ibm.com>
8894
8895 * config/rs6000/predicates.md (indexed_address, update_address_mem
8896 update_indexed_address_mem): New predicates.
8897 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8898 attribute for load/store instructions.
8899 * config/rs6000/dfp.md (movsd_store): Likewise.
8900 (movsd_load): Likewise.
8901 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8902 (unnamed HI->DI extend define_insn): Likewise.
8903 (unnamed SI->DI extend define_insn): Likewise.
8904 (unnamed QI->SI extend define_insn): Likewise.
8905 (unnamed QI->HI extend define_insn): Likewise.
8906 (unnamed HI->SI extend define_insn): Likewise.
8907 (unnamed HI->SI extend define_insn): Likewise.
8908 (extendsfdf2_fpr): Likewise.
8909 (movsi_internal1): Likewise.
8910 (movsi_internal1_single): Likewise.
8911 (movhi_internal): Likewise.
8912 (movqi_internal): Likewise.
8913 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8914 attribute for load/store instructions.
8915 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8916 instructions.
8917 (mov<mode>_softfloat): Likewise.
8918 (mov<mode>_hardfloat32): Likewise.
8919 (mov<mode>_hardfloat64): Likewise.
8920 (mov<mode>_softfloat64): Likewise.
8921 (movdi_internal32): Likewise.
8922 (movdi_internal64): Likewise.
8923 (probe_stack_<mode>): Likewise.
8924
89252013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
8926
8927 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8928 floating point, and decimal floating point to reload iterator.
8929
8930 * config/rs6000/constraints.md (wl constraint): New constraints to
8931 return FLOAT_REGS if certain options are used to reduce the number
8932 of separate patterns that exist in the file.
8933 (wx constraint): Likewise.
8934 (wz constraint): Likewise.
8935
8936 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8937 -mdebug=reg, print wg, wl, wx, and wz constraints.
8938 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8939 Initialize the reload functions for 64-bit binary/decimal floating
8940 point types.
8941 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8942 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8943 create the buffer on the stack to overcome not having a 32-bit
8944 load and store.
8945 (rs6000_emit_move): Likewise.
8946 (rs6000_secondary_memory_needed_rtx): Likewise.
8947 (rs6000_alloc_sdmode_stack_slot): Likewise.
8948 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8949 via xxlxor, just like DFmode 0.0.
8950
8951 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8952 define as 1 if we are running on a power7 or newer.
8953 (enum r6000_reg_class_enum): Add new constraints.
8954
8955 * config/rs6000/dfp.md (movsd): Delete, combine with binary
8956 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
8957 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 8958 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
8959 (movsd splitter): Likewise.
8960 (movsd_hardfloat): Likewise.
8961 (movsd_softfloat): Likewise.
8962
8963 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8964 binary and decimal floating point moves.
8965 (fmove_ok): New attributes to combine binary and decimal floating
8966 point moves, and to combine power6x (mfpgpr) moves along normal
8967 floating moves.
8968 (real_value_to_target): Likewise.
8969 (f32_lr): Likewise.
8970 (f32_lm): Likewise.
8971 (f32_li): Likewise.
8972 (f32_sr): Likewise.
8973 (f32_sm): Likewise.
8974 (f32_si): Likewise.
8975 (movsf): Combine binary and decimal floating point moves. Combine
8976 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 8977 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
8978 (mov<mode> for SFmode/SDmode); Likewise.
8979 (SFmode/SDmode splitters): Likewise.
8980 (movsf_hardfloat): Likewise.
8981 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8982 (movsf_softfloat): Likewise.
8983 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8984
8985 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8986 wx and wz constraints.
8987
8988 * config/rs6000/constraints.md (wg constraint): New constraint to
8989 return FLOAT_REGS if -mmfpgpr (power6x) was used.
8990
8991 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8992 constraint.
8993
8994 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8995 -mdebug=reg, print wg, wl, wx, and wz constraints.
8996 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8997 Initialize the reload functions for 64-bit binary/decimal floating
8998 point types.
8999 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9000 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9001 create the buffer on the stack to overcome not having a 32-bit
9002 load and store.
9003 (rs6000_emit_move): Likewise.
9004 (rs6000_secondary_memory_needed_rtx): Likewise.
9005 (rs6000_alloc_sdmode_stack_slot): Likewise.
9006 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9007 via xxlxor, just like DFmode 0.0.
9008
c6d5ff83
MM
9009 * config/rs6000/dfp.md (movdd): Delete, combine with binary
9010 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9011 with other moves by using conditional constraits (wg). Use LFIWZX
9012 and STFIWX for loading SDmode on power7.
9013 (movdd splitters): Likewise.
9014 (movdd_hardfloat32): Likewise.
9015 (movdd_softfloat32): Likewise.
9016 (movdd_hardfloat64_mfpgpr): Likewise.
9017 (movdd_hardfloat64): Likewise.
9018 (movdd_softfloat64): Likewise.
9019
9020 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9021 64-bit binary and decimal floating point moves.
9022 (FMOVE64X): Likewise.
9023 (movdf): Combine 64-bit binary and decimal floating point moves.
9024 Combine power6x (mfpgpr) moves with other moves by using
9025 conditional constraits (wg).
9026 (mov<mode> for DFmode/DDmode): Likewise.
9027 (DFmode/DDmode splitters): Likewise.
9028 (movdf_hardfloat32): Likewise.
9029 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9030 (movdf_softfloat32): Likewise.
9031 (movdf_hardfloat64_mfpgpr): Likewise.
9032 (movdf_hardfloat64): Likewise.
9033 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9034 (movdf_softfloat64): Likewise.
9035 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9036 (reload_<mode>_load): Move to later in the file so they aren't in
9037 the middle of the floating point move insns.
9038 (reload_<mode>_store): Likewise.
9039
9040 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9041 constraint.
9042
9043 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9044 constraint if -mdebug=reg.
bd059b26
UB
9045 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9046 Enable using dd reload support if needed.
c6d5ff83
MM
9047
9048 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9049 binary and decimal floating point moves in rs6000.md.
9050 (movtd_internal): Likewise.
9051
9052 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9053 decimal floating point moves.
9054 (movtf): Likewise.
9055 (movtf_internal): Likewise.
9056 (mov<mode>_internal, TDmode/TFmode): Likewise.
9057 (movtf_softfloat): Likewise.
9058 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9059
9060 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9061 movdi_internal64, using wg constraint for move direct operations.
9062 (movdi_internal64): Likewise.
9063
9064 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9065 MODES_TIEABLE_P for selected modes. Print the numerical value of
9066 the various virtual registers. Use GPR/FPR first/last values,
9067 instead of hard coding the register numbers. Print which modes
9068 have reload functions registered.
bd059b26
UB
9069 (rs6000_option_override_internal): If -mdebug=reg, trace the options
9070 settings before/after setting cpu, target and subtarget settings.
9071 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9072 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
9073 (rs6000_secondary_reload_fail): Likewise.
9074 (rs6000_secondary_reload_inner): Likewise.
9075
9076 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9077 macros for first/last GPR and FPR registers.
9078 (LAST_GPR_REGNO): Likewise.
9079 (FIRST_FPR_REGNO): Likewise.
9080 (LAST_FPR_REGNO): Likewise.
9081
9082 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9083 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9084 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9085 (vcond<mode><mode>): Likewise.
9086 (vcondu<mode><mode>): Likewise.
9087 (vector_gtu<mode>): Likewise.
9088 (vector_gte<mode>): Likewise.
9089 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 9090 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
9091 (ior<mode>3): Likewise.
9092 (and<mode>3): Likewise.
9093 (one_cmpl<mode>2): Likewise.
9094 (nor<mode>3): Likewise.
9095 (andc<mode>3): Likewise.
9096
9097 * config/rs6000/constraints.md (wt constraint): New constraint
9098 that returns VSX_REGS if TImode is allowed in VSX registers.
9099
9100 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9101 constant under VSX.
9102
9103 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9104 similar to TImode, but it is restricted to being in the GPRs.
9105
9106 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9107 TImode to occupy a single VSX register.
9108
9109 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9110 -mvsx-timode for power7/power8.
9111 (power7 cpu): Likewise.
9112 (power8 cpu): Likewise.
9113
9114 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9115 sure that TFmode/TDmode take up two registers if they are ever
9116 allowed in the upper VSX registers.
9117 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9118 registers.
9119 (rs6000_init_hard_regno_mode_ok): Likewise.
9120 (rs6000_debug_reg_global): Add debugging for PTImode and wt
9121 constraint. Print if LRA is turned on.
9122 (rs6000_option_override_internal): Give an error if -mvsx-timode
9123 and VSX is not enabled.
9124 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
9125 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9126 to reg+offset addressing. Use PTImode when checking offset
9127 addresses for validity.
9128 (reg_offset_addressing_ok_p): Likewise.
9129 (rs6000_legitimate_offset_address_p): Likewise.
9130 (rs6000_legitimize_address): Likewise.
9131 (rs6000_legitimize_reload_address): Likewise.
9132 (rs6000_legitimate_address_p): Likewise.
9133 (rs6000_eliminate_indexed_memrefs): Likewise.
9134 (rs6000_emit_move): Likewise.
9135 (rs6000_secondary_reload): Likewise.
9136 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
9137 reloads to fpr registers to continue to use reg+offset addressing,
9138 but 64-bit reloads to altivec registers need reg+reg addressing.
9139 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9140 it. Treat LO_SUM like a PLUS operation.
9141 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 9142 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
9143 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9144 registers to share a register with a smaller sized type, since VSX
9145 puts scalars in the upper 64-bits.
9146 (print_operand): Add support for PTImode.
9147 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9148 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9149 registers, but don't have arithmetic support.
9150 (rs6000_memory_move_cost): Add test for VSX.
9151 (rs6000_opt_masks): Add -mvsx-timode.
9152
9153 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9154 for TImode.
9155 (VSs): Likewise.
9156 (VSr): Use wt constraint for TImode.
9157 (VSv): Drop TImode support.
9158 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9159 (vsx_movti_64bit): Likewise.
9160 (vsx_movti_32bit): Likewise.
9161 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9162 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9163 one '?' on the appropriate output constraint. Do not allow TImode
9164 logical operations on 32-bit systems.
9165 (vsx_ior<mode>3): Likewise.
9166 (vsx_xor<mode>3): Likewise.
9167 (vsx_one_cmpl<mode>2): Likewise.
9168 (vsx_nor<mode>3): Likewise.
9169 (vsx_andc<mode>3): Likewise.
9170 (vsx_concat_<mode>): Likewise.
9171 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9172
9173 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9174 OPTION_MASK_VSX_TIMODE.
9175 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9176 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9177
9178 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9179 (TI2 iterator): New iterator for TImode, PTImode.
9180 (wd mode attribute): Add values for vector types.
bd059b26
UB
9181 (movti_string): Replace TI move operations with operations for TImode
9182 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
9183 (mov<mode>_string, TImode/PTImode): Likewise.
9184 (movti_ppc64): Likewise.
9185 (mov<mode>_ppc64, TImode/PTImode): Likewise.
9186 (TI mode splitters): Likewise.
9187
9188 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9189 constraint.
9190
1fc5eced
MG
91912013-03-20 Marc Glisse <marc.glisse@inria.fr>
9192
9193 PR tree-optimization/56355
9194 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9195 Also handle integers with undefined overflow.
9196
22c4c869
CM
91972013-03-20 Catherine Moore <clm@codesourcery.com>
9198 Maciej W. Rozycki <macro@codesourcery.com>
9199 Tom de Vries <tom@codesourcery.com>
9200 Nathan Sidwell <nathan@codesourcery.com>
9201 Iain Sandoe <iain@codesourcery.com>
9202 Nathan Froyd <froydnj@codesourcery.com>
9203 Chao-ying Fu <fu@mips.com>
9204
9205 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 9206 Document new function attributes.
22c4c869
CM
9207 * doc/invoke.texi (minterlink-compressed, mmicromips,
9208 m14k, m14ke, m14kec): Document new options.
9209 (minterlink-mips16): Update documentation.
9210 * doc/md.texi (ZC, ZD): Document new constraints.
9211 * configure.ac (gcc_cv_as_micromips): Check if linker
9212 supports the .set micromips directive.
9213 * configure: Regenerate.
9214 * config.in: Regenerate.
9215 * config/mips/mips-tables.opt: Regenerate.
9216 * config/mips/micromips.md: New file.
9217 * constraints.md (ZC, ZD): New constraints.
9218 * config/mips/predicates.md (movep_src_register): New predicate.
9219 (movep_src_operand): New predicate.
9220 (non_volatile_mem_operand): New predicate.
9221 * config/mips/mips.md (multimem): New type.
9222 (length): Differentiate between 17-bit and 18-bit branch offsets.
9223 (MOVEP1, MOVEP2): New mode iterator.
33159866 9224 (mov_<load>l): Use ZC constraint.
22c4c869
CM
9225 (mov_<load>r): Likewise.
9226 (mov_<store>l): Likewise.
9227 (mov_<store>r): Likewise.
9228 (*branch_equality<mode>_inverted): Add microMIPS support.
9229 (*branch_equality<mode>): Likewise.
9230 (*jump_absolute): Likewise.
9231 (indirect_jump_<mode>): Likewise.
9232 (tablejump_<mode>): Likewise.
9233 (<optab>_internal): Likewise.
9234 (sibcall_internal): Likewise.
9235 (sibcall_value_internal): Likewise.
9236 (prefetch): Use constraint ZD.
9237 * config/mips/mips.opt (minterlink-compressed): New option.
9238 (minterlink-mips16): Now an alias for minterlink-compressed.
9239 (mmicromips): New option.
9240 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9241 (compare_and_swap_12): Likewise.
9242 (sync_add<mode>): Likewise.
9243 (sync_<optab>_12): Likewise.
9244 (sync_old_<optab>_12): Likewise.
9245 (sync_new_<optab>_12): Likewise.
9246 (sync_nand_12): Likewise.
9247 (sync_old_nand_12): Likewise.
9248 (sync_new_nand_12): Likewise.
9249 (sync_sub<mode>): Likewise.
9250 (sync_old_add<mode>): Likewise.
9251 (sync_old_sub<mode>): Likewise.
9252 (sync_new_add<mode>): Likewise.
9253 (sync_new_sub<mode>): Likewise.
9254 (sync_<optab><mode>): Likewise.
9255 (sync_old_<optab><mode>): Likewise.
9256 (sync_new_<optab><mode>): Likewise.
9257 (sync_nand<mode>): Likewise.
9258 (sync_old_nand<mode>): Likewise.
9259 (sync_new_nand<mode>): Likewise.
9260 (sync_lock_test_and_set<mode>): Likewise.
9261 (test_and_set_12): Likewise.
9262 (atomic_compare_and_swap<mode>): Likewise.
9263 (atomic_exchange<mode>_llsc): Likewise.
9264 (atomic_fetch_add<mode>_llsc): Likewise.
9265 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9266 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9267 (umips_save_restore_pattern_p): Likewise.
9268 (umips_load_store_pair_p): Likewise.
9269 (umips_output_load_store_pair): Likewise.
9270 (umips_movep_target_p): Likewise.
9271 (umips_12bit_offset_address_p): Likewise.
9272 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9273 (mips_base_mips16): Rename this...
9274 (mips_base_compression_flags): ...to this. Update all uses.
9275 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9276 (mips_mips16_decl_p): Delete.
9277 (mips_nomips16_decl_p): Delete.
33159866 9278 (mips_get_compress_on_flags): New function.
22c4c869
CM
9279 (mips_get_compress_off_flags): New function.
9280 (mips_get_compress_mode): New function.
9281 (mips_get_compress_on_name): New function.
9282 (mips_get_compress_off_name): New function.
9283 (mips_insert_attributes): Support multiple compression types.
9284 (mips_merge_decl_attributes): Likewise.
9285 (umips_12bit_offset_address_p): New function.
9286 (mips_start_function_definition): Emit .set micromips directive.
9287 (mips_call_may_need_jalx_p): New function.
9288 (mips_function_ok_for_sibcall): Add microMIPS support.
9289 (mips_print_operand_punctuation): Support short delay slots and
9290 compact jumps.
9291 (umips_swm_mask, umips_swm_encoding): New.
9292 (umips_build_save_restore): New function.
9293 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9294 (was_mips16_p): Remove.
9295 (old_compression_mode): New.
9296 (mips_set_compression_mode): New function.
9297 (mips_set_current_function): Add microMIPS support.
9298 (mips_option_override): Likewise.
9299 (umips_save_restore_pattern_p): New function.
9300 (umips_output_save_restore): New function.
9301 (umips_load_store_pair_p_1): New function.
9302 (umips_load_store_pair_p): New function.
9303 (umips_output_load_store_pair_1): New function.
9304 (umips_output_load_store_pair): New function.
9305 (umips_movep_target_p) New function.
9306 (mips_prepare_pch_save): Add microMIPS support.
9307 * config/mips/mips.h (TARGET_COMPRESSION): New.
9308 (TARGET_CPU_CPP_BUILTINS): Update macro
9309 to use new compression flags and to support microMIPS.
9310 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9311 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9312 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9313 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9314 (ASM_SPEC): Support mmicromips and mno-micromips.
9315 (M16STORE_REG_P): New macro.
9316 (MIPS_CALL): Support TARGET_MICROMIPS.
9317 (MICROMIPS_J): New macro.
9318 (mips_base_mips16): Rename this...
9319 (mips_base_compression_flags): ...to this.
9320 (UMIPS_12BIT_OFFSET_P): New macro.
9321 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9322 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
93232013-03-20 Richard Biener <rguenther@suse.de>
9324
9325 PR tree-optimization/56661
9326 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9327 the result does not have to be distinct.
9328
54714c68
RB
93292013-03-20 Richard Biener <rguenther@suse.de>
9330
9331 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9332 remap_gimple_op_r.
9333
cca1130d
BS
93342013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9335 Steven Bosscher <steven@gcc.gnu.org>
9336
9337 PR rtl-optimization/56605
9338 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9339
2a930377
UB
93402013-03-20 Uros Bizjak <ubizjak@gmail.com>
9341
9342 PR bootstrap/56656
9343 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9344 that require movd instead of movq.
9345
d6d305fe
RB
93462013-03-20 Richard Biener <rguenther@suse.de>
9347
9348 * tree-ssa-structalias.c (struct variable_info): Add pointer
9349 to the first field of an aggregate with sub-vars. Make
9350 this and the pointer to the next subfield its ID.
9351 (vi_next): New function.
9352 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9353 storedanything_id, integer_id): Increment by one.
9354 (new_var_info, get_call_vi, lookup_call_clobber_vi,
9355 get_call_clobber_vi): Adjust.
9356 (solution_set_expand): Simplify and speedup.
9357 (solution_set_add): Inline into ...
9358 (set_union_with_increment): ... this. Adjust accordingly.
9359 (do_sd_constraint): Likewise.
9360 (do_ds_constraint): Likewise.
9361 (do_complex_constraint): Simplify.
9362 (build_pred_graph): Adjust.
9363 (solve_graph): Likewise. Simplify and speedup.
9364 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9365 get_constraint_for_component_ref, get_constraint_for_1,
9366 first_vi_for_offset, first_or_preceding_vi_for_offset,
9367 create_function_info_for, create_variable_info_for_1,
9368 create_variable_info_for, intra_create_variable_infos): Adjust.
9369 (init_base_vars): Push NULL for ID zero.
9370 (compute_points_to_sets): Adjust.
9371
a271b42d
RB
93722013-03-20 Richard Biener <rguenther@suse.de>
9373
9374 * cfgloop.c (verify_loop_structure): Streamline and avoid
9375 ICEing on corrupt loop tree.
9376 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9377 loop tree.
9378
ebd65954
RB
93792013-03-20 Richard Biener <rguenther@suse.de>
9380
9381 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9382 check whether an SSA update is needed.
9383
4547b7ee
RS
93842013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
9385
9386 * config/mips/constraints.md (T): Rename to...
9387 (Yf): ...this.
9388 (U): Rename to...
9389 (Yd): ...this.
9390 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9391 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9392
0b8cdc58
IB
93932013-03-19 Ian Bolton <ian.bolton@arm.com>
9394
9395 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9396 (*subsi3_carryin_uxtw): Likewise.
9397
5977a10d
IB
93982013-03-19 Ian Bolton <ian.bolton@arm.com>
9399
9400 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9401 (*rorsi3_insn_uxtw): Likewise.
9402
bd83ff2c
IB
94032013-03-19 Ian Bolton <ian.bolton@arm.com>
9404
9405 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9406 (*extrsi5_insn_uxtw): Likewise.
9407
ba65123c
RB
94082013-03-19 Richard Biener <rguenther@suse.de>
9409
9410 PR tree-optimization/56273
9411 * passes.c (init_optimization_passes): Move second VRP after DOM.
9412
2eac0476
UB
94132013-03-19 Uros Bizjak <ubizjak@gmail.com>
9414
9415 * config/i386/i386.md (*movti_internal): Merge from
9416 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
9417 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
9418 nox64 isa attributes.
9419
6e55eda7
RB
94202013-03-18 Richard Biener <rguenther@suse.de>
9421
9422 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9423 (unite): Likewise.
9424 (merge_node_constraints): Likewise.
9425 (build_succ_graph): Likewise.
9426 (valid_graph_edge): Inline into single caller.
9427 (unify_nodes): Likewise. Use bitmap_set_bit return value
9428 and cache varinfo.
9429 (scc_visit): Fix formatting and variable use.
9430 (do_sd_constraint): Use gcc_checking_assert.
9431 (do_ds_constraint): Likewise.
9432 (do_complex_constraint): Likewise.
9433 (condense_visit): Likewise. Cleanup.
9434 (dump_pred_graph): New function.
9435 (perform_var_substitution): Dump the pred-graph before
9436 variable substitution.
9437 (find_equivalent_node): Use gcc_checking_assert.
9438 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9439
4bdd44c4
RB
94402013-03-18 Richard Biener <rguenther@suse.de>
9441
9442 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9443 Remove cond_expr_stmt_list argument and do not gimplify the
9444 built expression.
9445 (vect_loop_versioning): Adjust.
9446 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9447 Cleanup to use less temporaries.
9448 (vect_create_data_ref_ptr): Cleanup.
9449
38c56a5b
JJ
94502013-03-18 Jakub Jelinek <jakub@redhat.com>
9451
9452 PR tree-optimization/56635
9453 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9454 require types_compatible_p types.
9455
20b2e6a0
NC
94562013-03-18 Nick Clifton <nickc@redhat.com>
9457
a6178a25
NC
9458 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9459 spurious backslash.
9460
20b2e6a0
NC
9461 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9462 Add missing line to comment describing function.
9463
92608d0e
RB
94642013-03-18 Richard Biener <rguenther@suse.de>
9465
9466 PR tree-optimization/56210
9467 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9468 Handle string / character search functions.
9469 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9470
31348d52
RB
94712013-03-18 Richard Biener <rguenther@suse.de>
9472
9473 PR middle-end/56483
9474 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9475 and implement properly.
9476 * gimple.h (gimple_cond_single_var_p): Remove.
9477
fcac74a1
RB
94782013-03-18 Richard Biener <rguenther@suse.de>
9479
9480 * tree-data-ref.h (find_data_references_in_loop): Declare.
9481 * tree-data-ref.c (get_references_in_stmt): Use a stack
9482 vector pre-allocated in the callers.
9483 (find_data_references_in_stmt): Adjust.
9484 (graphite_find_data_references_in_stmt): Likewise.
9485 (create_rdg_vertices): Likewise.
9486 (find_data_references_in_loop): Export.
9487 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9488 Compute dependences here...
9489 (vect_analyze_data_refs): ...not here. When we encounter
9490 a non-vectorizable data reference in basic-block vectorization
9491 truncate the data reference vector. Do not bother to
9492 fixup data-dependence information for gather loads.
9493 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9494 of data references, as reported.
9495
0d5a1b56
RB
94962013-03-18 Richard Biener <rguenther@suse.de>
9497
9498 PR tree-optimization/3713
9499 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
9500 has_constants and expr.
9501 (stmt_has_constants): Properly valueize SSA names when deciding
9502 whether the stmt has constants.
9503
789c34e3
RB
95042013-03-18 Richard Biener <rguenther@suse.de>
9505
9506 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9507 whole function when there is nothing to do.
9508 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9509 * tree-vectorizer.c (vectorize_loops): Update virtual and
9510 loop-closed SSA once.
9511 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9512
076b4605
RB
95132013-03-18 Richard Biener <rguenther@suse.de>
9514
9515 PR middle-end/56113
9516 * domwalk.c (bb_postorder): New global static.
9517 (cmp_bb_postorder): New function.
9518 (walk_dominator_tree): Replace scheme imposing an order for
9519 visiting dominator sons by one sorting them at the time they
9520 are pushed on the stack.
9521
bdb01696
RB
95222013-03-18 Richard Biener <rguenther@suse.de>
9523
9524 PR tree-optimization/39326
9525 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9526 (struct mem_ref): Replace mem member with ao_ref typed member.
9527 (MEM_ANALYZABLE): Adjust.
9528 (memref_eq): Likewise.
9529 (mem_ref_alloc): Likewise.
9530 (gather_mem_refs_stmt): Likewise.
9531 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9532 (execute_sm_if_changed_flag_set): Adjust.
9533 (execute_sm): Likewise.
9534 (ref_always_accessed_p): Likewise.
9535 (refs_independent_p): Likewise.
9536 (can_sm_ref_p): Likewise.
9537
12d2dc5e
JJ
95382013-03-18 Jakub Jelinek <jakub@redhat.com>
9539
9540 PR c/56566
9541 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9542 return 1 even for !unsignedp.
9543
286fb677
UB
95442013-03-17 Uros Bizjak <ubizjak@gmail.com>
9545
9546 * config/i386/i386.md (isa): Add x64 and nox64.
9547 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9548 (*pushtf): Enable *roF alternative for x64 isa only.
9549 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
9550 mode attribute of integer alternatives to DImode for TARGET_64BIT.
9551 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
9552 (*movtf_internal): Merge from *movtf_internal_rex64 and
9553 *movtf_internal_sse. Use x64 and nox64 isa attributes.
9554 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
9555 nox64 isa attributes.
9556 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
9557 nox64 isa attributes.
9558 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9559
88b97037
UB
95602013-03-17 Uros Bizjak <ubizjak@gmail.com>
9561
9562 * config/alpha/alpha.c (TARGET_LRA_P): New define.
9563
9f4f1735
JJ
95642013-03-17 Jakub Jelinek <jakub@redhat.com>
9565
9566 PR target/56640
9567 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9568 class names. Remove trailing comma after "ALL_REGS".
9569
48f4a6fa
JH
95702013-03-16 Jan Hubicka <jh@suse.cz>
9571
9572 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9573 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9574 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9575 of cgraph_get_create_node.
9576 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9577
98e81123
JM
95782013-03-16 Jason Merrill <jason@redhat.com>
9579
9580 PR debug/49090
9581 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9582 with DW_AT_default_value.
9583
8a298c04
JJ
95842013-03-16 Jakub Jelinek <jakub@redhat.com>
9585
9586 * BASE-VER: Set to 4.9.0.
9587
4323afa0
AK
95882013-03-14 Andi Kleen <ak@linux.intel.com>
9589
9590 PR target/56619
9591 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9592 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9593 Document _x* TSX intrinsics.
9594
b3c0d469
JJ
95952013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
9596 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
9597
9598 * configure.ac: Add MicroBlaze TLS support detection.
9599 * configure: Regenerate.
88b97037
UB
9600 * config/microblaze/microblaze-protos.h
9601 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9602 symbol_mentioned_p, label_mentioned_p): Add prototypes.
9603 * config/microblaze/microblaze.c (microblaze_address_type): Add
9604 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
9605 (microblaze_address_info): Add tls_reloc.
9606 (TARGET_HAVE_TLS): Define.
9607 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9608 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
9609 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9610 load_tls_operand, microblaze_call_tls_get_addr,
9611 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
9612 (microblaze_classify_unspec): Handle UNSPEC_TLS.
9613 (get_base_reg): Use microblaze_tls_symbol_p.
9614 (microblaze_classify_address): Handle TLS.
88b97037
UB
9615 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9616 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
9617 (microblaze_legitimize_address): Handle TLS.
9618 (microblaze_address_insns): Handle ADDRESS_TLS.
9619 (pic_address_needs_scratch): Handle TLS.
9620 (print_operand_address): Handle TLS.
9621 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9622 (microblaze_expand_move): Handle TLS.
88b97037
UB
9623 (microblaze_legitimate_constant_p): Check
9624 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
9625 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9626 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9627 (PIC_OFFSET_TABLE_REGNUM): Set.
9628 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9629 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9630 (addsi3, movsi_internal2, movdf_internal): Update constraints
9631 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
9632 (move_operand): Redefine as move_src_operand,
9633 check microblaze_tls_referenced_p.
8cc9a5a5 9634
d803a491
IB
96352013-03-14 Ian Bolton <ian.bolton@arm.com>
9636
9637 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9638 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9639
a8504f22
IB
96402013-03-14 Ian Bolton <ian.bolton@arm.com>
9641
9642 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9643 CC mode for AND.
9644
df2dfaea
JJ
96452013-03-14 Jakub Jelinek <jakub@redhat.com>
9646
fbd28bc3
JJ
9647 PR tree-optimization/53265
9648 * common.opt (Waggressive-loop-optimizations): New option.
9649 * tree-ssa-loop-niter.c: Include tree-pass.h.
9650 (do_warn_aggressive_loop_optimizations): New function.
9651 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
9652 if number_of_latch_executions returned constant.
9653 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9654 early. If number_of_latch_executions returned constant, set
9655 nb_iterations_upper_bound back to it.
9656 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9657 field.
9658 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9659 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9660
df2dfaea
JJ
9661 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9662 (MULTILIB_OSDIRNAMES): Set.
9663 * genmultilib: If defaultosdirname doesn't start with :: , set
9664 defaultosdirname2 instead, clear it and emit two . multilib_raw
9665 entries instead of just one.
9666
ee0d2b68
KK
96672013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
9668
9669 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9670 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9671 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9672 (SUBTARGET_OVERRIDE_OPTIONS): New.
9673
decc676e
OE
96742013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
9675
9676 PR target/49880
9677 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9678 (musermode): Convert to Var(TARGET_USERMODE).
9679 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9680 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9681 * config/sh/sh.c (sh_option_override): Use
9682 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9683 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9684 condition.
9685 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9686 TARGET_SH4.
9687 (udivsi3_i4_single, divsi3_i4_single): Use
9688 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9689
f4b719c7
DK
96902013-03-13 Dave Korn <dave.korn.cygwin@....>
9691
9692 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9693 default setting.
9694
c40eced0
RB
96952013-03-13 Richard Biener <rguenther@suse.de>
9696
9697 PR tree-optimization/56608
9698 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9699 calls when vectorizing basic-blocks.
9700
1bfa5973
JJ
97012013-03-13 Jakub Jelinek <jakub@redhat.com>
9702
9703 PR plugins/45078
9704 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9705 tm_file.
9706
6fcf5434
JJ
97072013-03-12 Jakub Jelinek <jakub@redhat.com>
9708
9709 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9710
4f38fa8c
JH
97112013-03-11 Jan Hubicka <jh@suse.cz>
9712
9713 PR lto/56557
9714 * lto-streamer-out.c (output_symbol_p): Skip references from
9715 constructors of external variables.
9716
c5c5ba89
JH
97172013-03-11 Jan Hubicka <jh@suse.cz>
9718
9719 PR middle-end/56571
9720 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9721 from pseudos.
9722 * emit-rtl.c (verify_rtx_sharing): Likewise.
9723 (copy_insn_1): Likewise.
9724 * rtl.c (copy_rtx): Likewise.
9725
c2a939b1
GJL
97262013-03-11 Georg-Johann Lay <avr@gjlay.de>
9727
9728 PR target/56591
9729 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9730 output_operand_lossage message.
88b97037 9731
3c3279fb
RE
97322013-03-11 Richard Earnshaw <rearnsha@arm.com>
9733
9734 PR target/56470
9735 * arm.c (shift_op): Validate RTL pattern on the fly.
9736 (arm_print_operand, case 'S'): Don't use shift_operator to validate
9737 the RTL.
9738
aef5ef9d
JDA
97392013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9740
9741 PR target/56347
9742 * config/pa/pa.md (call_value): Check for calls to powf and direct to
9743 new call patterns that clobber %fr12.
9744 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9745 split and postreload patterns.
9746 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9747 registers %fr12 and %fr12R as call used.
9748
456610d3
SB
97492013-03-09 Steven Bosscher <steven@gcc.gnu.org>
9750
9751 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9752 (canon_address, record_store, replace_read, check_mem_read_rtx,
9753 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9754 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9755 rest_of_handle_dse): Likewise.
9756
4b1baac8
RS
97572013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
9758
9759 PR middle-end/56524
9760 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9761 Add base_optabs.
9762 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9763 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9764 (save_optabs_if_changed): Replace with...
9765 (init_tree_optimization_optabs): ...this.
9766 * optabs.c (save_optabs_if_changed): Rename to...
9767 (init_tree_optimization_optabs): ...this. Take the optimization node
9768 as argument. Do nothing if the base optabs are already correct.
9769 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9770 to recompute optabs.
9771 * function.h (function): Remove optabs field.
9772 * function.c (invoke_set_current_function_hook): Call
9773 init_tree_optimization_optabs. Use the result to initialize
9774 this_fn_optabs.
9775
b7a78683
AH
97762013-02-27 Aldy Hernandez <aldyh@redhat.com>
9777
9778 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9779 if GTMA_HAS_NO_INSTRUMENTATION.
9780 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9781 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9782 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9783 * gimple-pretty-print.c (dump_gimple_transaction): Handle
9784 GTMA_HAS_NO_INSTRUMENTATION.
9785
6384c29b
JJ
97862013-03-08 Jakub Jelinek <jakub@redhat.com>
9787
9788 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9789 libasan_preinit.o.
9790
ecd4f20a
MP
97912013-03-08 Marek Polacek <polacek@redhat.com>
9792 Jakub Jelinek <jakub@redhat.com>
9793
9794 PR tree-optimization/56478
9795 * predict.c (is_comparison_with_loop_invariant_p): Change the
9796 type of loop_step to tree.
9797 (predict_loops): Adjust.
9798 (predict_iv_comparison): Perform the computations on double_ints.
9799
64366d35
RB
98002013-03-08 Richard Biener <rguenther@suse.de>
9801
9802 PR tree-optimization/56570
9803 * tree-cfg.c (verify_expr_location_1): Verify locations for
9804 DECL_DEBUG_EXPR.
9805 * tree-sra.c (create_access_replacement): Strip locations
9806 from DECL_DEBUG_EXPRs.
9807
a9d5a059
RB
98082013-03-08 Richard Biener <rguenther@suse.de>
9809
9810 * tree-inline.c (expand_call_inline): Do not associate
9811 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9812 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9813
b7aa4e9a
RB
98142013-03-08 Richard Biener <rguenther@suse.de>
9815
9816 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9817 or block changes with -Og. Fix for location / block encoding
9818 changes and PHI arguments with locations.
9819
c4c2f9fa
SB
98202013-03-07 Steven Bosscher <steven@gcc.gnu.org>
9821
9822 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9823 for all counters.
9824 (struct output_info): Likewise.
9825 (register_overhead): Remove bad gcc_assert.
9826 (bitmap_find_bit): If there is only a single bitmap element, do not
9827 count a miss as a search.
9828 (print_statistics): Update for counter type changes.
9829 (dump_bitmap_statistics): Likewise. Print headers such that they
9830 are properly lined up with the printed counters.
9831
5bf6606a
JJ
98322013-03-07 Jakub Jelinek <jakub@redhat.com>
9833
9834 PR tree-optimization/56559
9835 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9836 check that it has only a single use.
9837
2c653d46
RB
98382013-03-07 Richard Biener <rguenther@suse.de>
9839
9840 * doc/invoke.texi (fwhole-program): Discourage use in combination
9841 with -flto.
9842
a72d8780
JJ
98432013-03-06 Jakub Jelinek <jakub@redhat.com>
9844
01a454df
JJ
9845 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9846
c1781047
JJ
9847 PR tree-optimization/56539
9848 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9849 instead of GSI_CONTINUE_LINKING as last argument to
9850 force_gimple_operand_gsi. Adjust function comment.
9851
9772c47a
JJ
9852 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9853 aarch64-cores.def.
9854
a72d8780
JJ
9855 PR middle-end/56548
9856 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9857 promoted mode, convert the result back to the original mode.
9858
fa5556de
RB
98592013-03-06 Richard Biener <rguenther@suse.de>
9860
9861 PR middle-end/56294
9862 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9863 (insert_updated_phi_nodes_compare_uids): New function.
9864 (update_ssa): Sort symbols_to_rename after UID before
9865 traversing it to insert PHI nodes.
9866
010403d1
RB
98672013-03-06 Richard Biener <rguenther@suse.de>
9868
9869 PR middle-end/50494
9870 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9871 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9872
9873 Revert
9874 2013-02-13 Richard Biener <rguenther@suse.de>
9875
9876 PR lto/50494
9877 * varasm.c (output_constant_def_1): Get the decl representing
9878 the constant as argument.
9879 (output_constant_def): Wrap output_constant_def_1.
9880 (make_decl_rtl): Use output_constant_def_1 with the decl
9881 representing the constant.
9882 (build_constant_desc): Optionally re-use a decl already
9883 representing the constant.
9884 (tree_output_constant_def): Adjust.
9885
3c27ce4c
JY
98862013-03-06 Joey Ye <joey.ye@arm.com>
9887
9888 PR lto/50293
9889 * gcc.c (convert_white_space): New function.
9890 (main): Handles white space in function name.
9891
8f6d1c86
OE
98922013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
9893
9894 PR target/56529
9895 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9896 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
9897 to SH_DIV_CALL_TABLE for TARGET_SH2.
9898 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9899 list.
9900 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9901 call-table options.
9902
798a209f
SA
99032013-03-05 Sterling Augustine <saugustine@google.com>
9904 Cary Coutant <ccoutant@google.com>
9905
9906 PR debug/55364
9907 * dwarf2out.c (resolve_addr): Don't call
9908 remove_loc_list_addr_table_entries a second time for the same
9909 expression.
9910
6cfa417f 99112013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 9912
6cfa417f
JJ
9913 PR debug/56510
9914 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9915 (avoid_complex_debug_insns): New function.
9916 (expand_debug_locations): Call it.
9917
9918 PR rtl-optimization/56484
9919 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9920 lifetimes of hard registers on small register class machines.
9921
99222013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
9923
9924 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 9925 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 9926 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
9927 fast_interrupt.
9928 (microblaze_fast_interrupt_function_p): New function.
9929 (microblaze_is_interrupt_handler): Rename to
9930 microblaze_is_interrupt_variant and add fast_interrupt check.
9931 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9932 (save_restore_insns): Likewise.
9933 (compute_frame_size): Likewise.
9934 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9935 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
9936 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9937 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
9938 microblaze_is_interrupt_variant.
9939
731aefac
KT
99402013-03-05 Kai Tietz <ktietz@redhat.com>
9941
9942 * sdbout.c (sdbout_one_type): Switch to current function's section
9943 supporting cold/hot.
9944
a72d8780 99452013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
9946
9947 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9948 -mxl-reorder.
9949
334e71e8
JJ
99502013-03-05 Jakub Jelinek <jakub@redhat.com>
9951
0b50e654
JJ
9952 PR middle-end/56461
9953 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9954 if VALGRIND_GET_VBITS is defined, temporarily make object
9955 memory all defined, and restore previous valgrind addressability
9956 and definability afterwards. Free this_object at the end.
9957
4ccf8f43
JJ
9958 PR middle-end/56461
9959 * lra.c (lra): Call lra_clear_live_ranges if live_p,
9960 right before calling lra_create_live_ranges, also call it
9961 when clearing live_p. Only call lra_clear_live_ranges
9962 at the end if live_p.
9963
334e71e8
JJ
9964 PR middle-end/56461
9965 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9966
9ca966ca
RB
99672013-03-05 Richard Biener <rguenther@suse.de>
9968
9969 PR tree-optimization/56521
9970 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9971 value-id.
9972
d273b176
SB
99732013-03-05 Steven Bosscher <steven@gcc.gnu.org>
9974
9975 PR c++/55135
9976 * except.h (remove_unreachable_eh_regions): New prototype.
9977 * except.c (remove_eh_handler_splicer): New function, split out
9978 of remove_eh_handler.
9979 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
9980 warning about running it on many EH regions one at a time.
9981 (remove_unreachable_eh_regions_worker): New function, walk the
9982 EH tree in depth-first order and remove non-marked regions.
9983 (remove_unreachable_eh_regions): New function.
9984 * tree-eh.c (mark_reachable_handlers): New function, split out
9985 from remove_unreachable_handlers.
9986 (remove_unreachable_handlers): Use mark_reachable_handlers and
9987 remove_unreachable_eh_regions.
9988 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9989 and remove_unreachable_eh_regions.
9990
5e7f1aef
RB
99912013-03-05 Richard Biener <rguenther@suse.de>
9992
9993 PR middle-end/56525
9994 * loop-init.c (fix_loop_structure): Remove loops in two stages,
9995 not freeing them until the end.
9996
f276b762
AK
99972013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9998
9999 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10000
12a43ab8
RB
100012013-03-05 Richard Biener <rguenther@suse.de>
10002
10003 PR tree-optimization/56270
10004 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10005 of loads after scheduling an SLP instance.
10006
93675444
JJ
100072013-03-05 Jakub Jelinek <jakub@redhat.com>
10008
db4138e3
JJ
10009 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10010 tic6x.exp.
10011 (check_gcc_parallelize): Run guality.exp as a separate job from
10012 vect.exp with unsorted.exp and $(dg_target_exps) separately from
10013 struct-layout-1.exp with stackalign.exp.
10014
dd3d1ec0
JJ
10015 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10016
b8d381a3
JJ
10017 PR middle-end/56461
10018 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10019 load_index sbitmap even if some bit in it isn't set.
10020
b4f9786b
JJ
10021 PR middle-end/56461
10022 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10023 (discover_iteration_bound_by_body_walk): Change queues to
10024 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
10025 spelling in comment. Call safe_push on queues[bound_index] directly.
10026 Release queues[queue_index] in every iteration unconditionally.
10027 Release bounds vector.
10028
93675444
JJ
10029 PR middle-end/56461
10030 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10031 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10032 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10033 inner_phis vector.
10034
3e492e9c
RB
100352013-03-05 Richard Biener <rguenther@suse.de>
10036
10037 PR lto/56515
10038 * tree-inline.c (remap_blocks_to_null): New function.
10039 (expand_call_inline): When expanding a call stmt without
10040 an associated block inline remap all callee blocks to NULL.
10041
a5d1569a
JJ
100422013-03-05 Jakub Jelinek <jakub@redhat.com>
10043
86efb5cd
JJ
10044 PR rtl-optimization/56494
10045 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10046 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10047 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10048
85f5dbea
JJ
10049 PR middle-end/56461
10050 * sel-sched-ir.c (free_sched_pools): Release
10051 succs_info_pool.stack[succs_info_pool.max_top] vectors too
10052 if succs_info_pool.max_top isn't -1.
10053
a5d1569a
JJ
10054 PR bootstrap/56509
10055 * opts.c (opts_obstack, opts_concat): Moved to...
10056 * opts-common.c (opts_obstack, opts_concat): ... here.
10057
4432aa6c
JJ
100582013-03-04 Jakub Jelinek <jakub@redhat.com>
10059
10060 PR middle-end/56461
10061 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10062
f3a1fb91
MJ
100632013-03-04 Martin Jambor <mjambor@suse.cz>
10064
10065 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10066 all appropriate places.
10067
22110e6c
EB
100682013-01-04 Eric Botcazou <ebotcazou@adacore.com>
10069
10070 PR tree-optimization/56424
10071 * ipa-split.c (split_function): Do not set the RSO flag if result is
10072 not by reference and its type is a register type.
10073
a72d8780 100742013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 10075
88b97037 10076 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 10077 (microblaze_legitimate_pic_operand): Likewise
88b97037 10078 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
10079 new function microblaze_legitimate_pic_operand
10080 * config/microblaze/microblaze-protos.h
10081 (microblaze_legitimate_pic_operand): Declare.
10082
a72d8780 100832013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 10084
a72d8780 10085 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 10086 New predicate for supported rtx code types.
a72d8780 10087 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
10088 call_insn_simple_operand predicate.
10089
541d9ac8
JJ
100902013-03-04 Jakub Jelinek <jakub@redhat.com>
10091
5eb010bc
JJ
10092 PR middle-end/56461
10093 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10094 partitions.ordered_remove.
10095
30862efc
JJ
10096 PR middle-end/56461
10097 * tree-vect-stmts.c (vectorizable_conversion): Don't call
10098 vec_oprnds0.create (1) for modifier == NONE.
10099
8930f723
JJ
10100 PR middle-end/56461
10101 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10102 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10103 vec_oprnds1 right before pushing anything to it for
10104 scalar_shift_arg.
10105
541d9ac8
JJ
10106 PR middle-end/56461
10107 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10108 set nbbs to 0 instead of having separate code path.
10109 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10110 instead of false as last argument if returning NULL.
10111
7aa7f2e3
SL
101122013-03-03 Sandra Loosemore <sandra@codesourcery.com>
10113
10114 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10115 the attribute is now called "target" instead of "option".
10116 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10117 * doc/tm.texi.in (Target Attributes): Likewise document the correct
10118 attribute/pragma name for TARGET_OPTION_VALID_P and
10119 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
10120 * doc/tm.texi: Regenerated.
10121
8930f723 101222013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 10123
8930f723 10124 * config/microblaze/microblaze.c:
cb8a1637 10125 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
10126 * config/microblaze/microblaze.h: Add -mxl-reorder to
10127 DRIVER_SELF_SPECS.
10128 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10129 instructions emitted if TARGET_REORDER.
88b97037
UB
10130 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10131 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 10132 separately.
cb8a1637 10133
4dc1d68c
XDL
101342013-03-01 Xinliang David Li <davidxl@google.com>
10135
10136 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10137 walk length.
10138
689eaba3
JJ
101392013-03-01 Jakub Jelinek <jakub@redhat.com>
10140
9d676bf6
JJ
10141 PR middle-end/56461
10142 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10143 vector even when returning true. Fix up function comment formatting.
10144
caff7edf
JJ
10145 PR middle-end/56461
10146 * ira-build.c (ira_loop_nodes_count): New variable.
10147 (create_loop_tree_nodes): Initialize it.
10148 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10149
b6b9227d
JJ
10150 PR middle-end/56461
10151 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10152 method on dr_chain and result_chain.
10153 * tree-vect-stmts.c (vectorizable_store): Only call
10154 result_chain.create if j == 0.
10155
689eaba3
JJ
10156 PR middle-end/56461
10157 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10158 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10159 before overwriting it.
10160
40bf31ed
TB
101612013-03-01 Tobias Burnus <burnus@net-b.de>
10162
10163 * doc/extended.texi (C Extensions): Change order in @menu
10164 to match @node.
10165 (Other MIPS Built-in Functions): Move last MIPS entry before
10166 "picoChip Built-in Functions".
10167 (SH Built-in Functions): Move after RX Built-in Functions.
10168 * doc/gcc.texi (Introduction): Change order in @menu
10169 to match @node.
10170 * doc/md.texi (Constraints): Ditto.
10171 * gty.texi (Type Information): Ditto.
10172 (User-provided marking routines for template types): Make
10173 subsection.
10174 * doc/invoke.texi (AArch64 Options): Move before
10175 "Adapteva Epiphany Options".
10176
e664c61c
KS
101772013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10178 Jakub Jelinek <jakub@redhat.com>
10179
10180 PR sanitizer/56454
10181 * asan.c (gate_asan): Lookup no_sanitize_address instead of
10182 no_address_safety_analysis attribute.
10183 * doc/extend.texi (no_address_safety_attribute): Rename to
10184 no_sanitize_address attribute, mention no_address_safety_analysis
10185 attribute as deprecated alias.
10186
37b5ec8f
JJ
101872013-02-28 Jakub Jelinek <jakub@redhat.com>
10188
10189 PR middle-end/56461
10190 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10191 type to vec<vec<tree> > *.
10192 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
10193 to be vec<tree> instead of vec<tree> *, set vec_defs
10194 to vNULL and call vec_defs.create (number_of_vects), adjust other
10195 uses of vec_defs.
10196 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10197 vectorizable_condition): Adjust vect_get_slp_defs callers.
10198
ba96cdfb
JG
101992013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10200
10201 * config/aarch64/aarch64.c
10202 (aarch64_float_const_representable): Remove unused variable.
10203
6f549691
JG
102042013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10205
10206 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10207
af55e82d
JG
102082013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10209
10210 * config/aarch64/aarch64-builtins.c
10211 (aarch64_init_simd_builtins): Make static.
10212
1df3f464
JG
102132013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10214
10215 * config/aarch64/aarch64.c
10216 (aarch64_simd_make_constant): Make static.
10217
f8f42513
MJ
102182013-02-28 Martin Jambor <mjambor@suse.cz>
10219
10220 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10221 with no initialization to the RHS of debug statements.
10222
b48b3fc4
MJ
102232013-02-28 Martin Jambor <mjambor@suse.cz>
10224
10225 PR tree-optimization/56294
10226 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10227 Adjust dumping.
10228 (get_access_replacement): Do not call create_access_replacement.
10229 Assert a replacement exists.
10230 (get_repl_default_def_ssa_name): Create the replacement declaration
10231 itself.
10232
c3ae224c
RR
102332013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10234
10235 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10236 final_end_function.
10237
45fa0eef
MP
102382013-02-28 Marek Polacek <polacek@redhat.com>
10239
10240 PR rtl-optimization/56466
10241 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10242 if we're changing a loop.
10243 (peel_loops_completely): Likewise.
10244
502c067d
PC
102452013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10246
10247 PR c++/55813
10248 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10249
ff24afc8
GJL
102502013-02-28 Georg-Johann Lay <avr@gjlay.de>
10251
10252 PR target/56445
10253 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10254 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10255 INTX_FTYPE_FX, FX_FTYPE_INTX.
10256 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10257
c7b1fc1b
GJL
102582013-02-28 Georg-Johann Lay <avr@gjlay.de>
10259
10260 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10261 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10262 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10263 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10264 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10265 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10266 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10267 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10268 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10269 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10270 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10271 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10272 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10273 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10274 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10275 (avrxmega6): Increase max flash segments from 5 to 6.
10276 * config/avr/t-multilib: Regenerate.
10277 * config/avr/avr-tables.opt: Regenerate.
10278 * doc/avr-mmcu.texi: Regenerate.
10279
4a0e3cfe
GJL
102802013-02-28 Georg-Johann Lay <avr@gjlay.de>
10281
10282 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10283 (avr_device_to_arch): Rename to avr_device_to_ld.
10284 (avr_device_to_as): New prototype.
10285 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10286 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10287 * config/avr/driver-avr.c (avr_device_to_as): New.
10288 (avr_device_to_arch): Rename to avr_device_to_ld.
10289
97785e52
JJ
102902013-02-27 Jakub Jelinek <jakub@redhat.com>
10291
3f292312
JJ
10292 PR middle-end/56461
10293 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10294 method on dr_chain and result_chain.
10295
a344216b
JJ
10296 PR middle-end/56461
10297 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10298 pointer_set_destroy on not_executed_last_iteration.
10299
f121ad02 10300 PR middle-end/56461
88b97037 10301 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 10302
307f83a3
JJ
10303 PR middle-end/56461
10304 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10305 FOR_EACH_DEFINED_FUNCTION when freeing state.
10306
e19624ee
JJ
10307 PR middle-end/56461
10308 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10309 pool_free.
10310 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10311 overwriting it.
10312
90e709fd
JJ
10313 PR middle-end/56461
10314 * ipa-cp.c (decide_whether_version_node): Call vec_free on
10315 known_aggs[i].items and release known_aggs vector.
10316
97785e52
JJ
10317 PR middle-end/56461
10318 * ipa-reference.c (propagate): Free node_info even for alias nodes.
10319
103202013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 10321
97785e52
JJ
10322 * config/microblaze/microblaze.c (microblaze_emit_compare):
10323 Use xor for EQ/NE comparisions.
10324 * config/microblaze/microblaze.md (cstoresf4): Add constraints
10325 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 10326
6fa5e0ed
JJ
103272013-02-27 Jakub Jelinek <jakub@redhat.com>
10328
10329 PR middle-end/56461
10330 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10331 vector.
10332 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10333 vec_safe_push, always update *slot.
10334 (redirect_edge_var_map_clear): Use vec_free.
10335 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10336 (free_var_map_entry): Use vec_free.
10337 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10338 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10339
436a956a
AB
103402013-02-27 Andrey Belevantsev <abel@ispras.ru>
10341
10342 PR middle-end/45472
436a956a
AB
10343 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10344 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
10345 Reorder tests for speculativeness in the logical and operator.
10346
f5c2caca
JJ
103472013-02-27 Jakub Jelinek <jakub@redhat.com>
10348
0fcb564b
JJ
10349 * incpath.c (add_standard_paths): Use reconcat instead of concat
10350 where appropriate and avoid leaking memory.
10351
dc357798
JJ
10352 * opts.h: Include obstack.h.
10353 (opts_concat): New prototype.
10354 (opts_obstack): New declaration.
10355 * opts.c (opts_concat): New function.
10356 (opts_obstack): New variable.
10357 (init_options_struct): Call gcc_init_obstack on opts_obstack.
10358 (finish_options): Use opts_concat instead of concat
10359 and XOBNEWVEC instead of XNEWVEC.
10360 * opts-common.c (generate_canonical_option, decode_cmdline_option,
10361 generate_option): Likewise.
10362 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10363 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10364
f5c2caca
JJ
10365 PR target/56455
10366 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10367 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10368
d0163673
JJ
103692013-02-26 Jakub Jelinek <jakub@redhat.com>
10370
10371 PR middle-end/56461
10372 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10373
b5ad2b8e
JR
103742013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10375
10376 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10377 (arm_block_move_unaligned_straight): Likewise.
10378 (arm_adjust_block_mem): Likewise.
10379
9b639e2c
JR
103802013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10381
10382 PR target/48901
10383 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10384 temp, cond and label.
10385 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10386
e13a0ccb
JR
10387 PR target/52500
10388 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10389 * config/c6x/c6x.h (dbx_register_map): Update declaration.
10390
fbe4f171
JR
10391 PR target/52501
10392 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10393 of prologue/epilogue functions.
10394
ae006543
JR
10395 PR target/52550
10396 * config/tilegx/tilegx.c (tilegx_expand_prologue):
10397 Remove unused variable cfa_offset.
10398 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10399
c81369fa
JR
10400 PR target/54639
10401 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10402 type promotion to unsigned.
10403
f8a8fea7
JR
10404 PR target/54640
10405 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10406 for HOST_WIDE_INT of 32 bit / same size as int.
10407 (arm_block_move_unaligned_straight): Likewise.
10408 (arm_adjust_block_mem): Likewise.
10409
f8be5169
JR
10410 PR target/54662
10411 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10412 ALL_CFLAGS.
10413
f1ad3354
MP
104142013-02-26 Marek Polacek <polacek@redhat.com>
10415
10416 PR tree-optimization/56426
88b97037 10417 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 10418
a6af0f42
RB
104192013-02-26 Richard Biener <rguenther@suse.de>
10420
10421 PR target/56444
10422 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10423 unused variable loops.
10424
aca43c6c
JJ
104252013-02-26 Jakub Jelinek <jakub@redhat.com>
10426
cecbe5d9
JJ
10427 PR tree-optimization/56448
10428 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10429 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10430 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10431 later operands of the references, or even first operand for
10432 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10433
aca43c6c
JJ
10434 PR tree-optimization/56443
10435 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10436 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10437 to type_for_mode langhook.
10438
53e2e141
MT
104392013-02-25 Matt Turner <mattst88@gmail.com>
10440
10441 * doc/invoke.texi: Document r4700.
10442
259ee451
RB
104432013-02-25 Richard Biener <rguenther@suse.de>
10444
10445 PR tree-optimization/56175
10446 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10447 split out from ...
10448 (simplify_bitwise_binary): ... here. Also guard the conversion
10449 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10450
6d65e8f1
CM
104512013-02-25 Catherine Moore <clm@codesourcery.com>
10452
10453 Revert:
10454 2013-02-24 Catherine Moore <clm@codesourcery.com>
10455 Maciej W. Rozycki <macro@codesourcery.com>
10456 Tom de Vries <tom@codesourcery.com>
a72d8780 10457 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
10458 Iain Sandoe <iain@codesourcery.com>
10459 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 10460 Chao-ying Fu <fu@mips.com>
88b97037 10461
6d65e8f1 10462 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 10463 Document new function attributes.
6d65e8f1
CM
10464 * doc/invoke.texi (minterlink-compressed, mmicromips,
10465 m14k, m14ke, m14kec): Document new options.
10466 (minterlink-mips16): Update documentation.
10467 * doc/md.texi (ZC, ZD): Document new constraints.
10468 * configure.ac (gcc_cv_as_micromips): Check if linker
10469 supports the .set micromips directive.
10470 * configure: Regenerate.
10471 * config.in: Regenerate.
10472 * config/mips/mips-tables.opt: Regenerate.
10473 * config/mips/micromips.md: New file.
10474 * constraints.md (ZC, AD): New constraints.
10475 * config/mips/predicates.md (movep_src_register): New predicate.
10476 (movep_src_operand): New predicate.
10477 (non_volatile_mem_operand): New predicate.
10478 * config/mips/mips.md (multimem): New type.
10479 (length): Differentiate between 17-bit and 18-bit branch offsets.
10480 (MOVEP1, MOVEP2): New mode iterator.
10481 (mov_<load>l): Use ZC constraint.
10482 (mov_<load>r): Likewise.
10483 (mov_<store>l): Likewise.
10484 (mov_<store>r): Likewise.
10485 (*branch_equality<mode>_inverted): Add microMIPS support.
10486 (*branch_equality<mode>): Likewise.
10487 (*jump_absolute): Likewise.
10488 (indirect_jump_<mode>): Likewise.
10489 (tablejump_<mode>): Likewise.
10490 (<optab>_internal): Likewise.
10491 (sibcall_internal): Likewise.
10492 (sibcall_value_internal): Likewise.
10493 (prefetch): Use constraint ZD.
10494 * config/mips/mips.opt (minterlink-compressed): New option.
10495 (minterlink-mips16): Now an alias for minterlink-compressed.
10496 (mmicromips): New option.
10497 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10498 (compare_and_swap_12): Likewise.
10499 (sync_add<mode>): Likewise.
10500 (sync_<optab>_12): Likewise.
10501 (sync_old_<optab>_12): Likewise.
10502 (sync_new_<optab>_12): Likewise.
10503 (sync_nand_12): Likewise.
10504 (sync_old_nand_12): Likewise.
10505 (sync_new_nand_12): Likewise.
10506 (sync_sub<mode>): Likewise.
10507 (sync_old_add<mode>): Likewise.
10508 (sync_old_sub<mode>): Likewise.
10509 (sync_new_add<mode>): Likewise.
10510 (sync_new_sub<mode>): Likewise.
10511 (sync_<optab><mode>): Likewise.
10512 (sync_old_<optab><mode>): Likewise.
10513 (sync_new_<optab><mode>): Likewise.
10514 (sync_nand<mode>): Likewise.
10515 (sync_old_nand<mode>): Likewise.
10516 (sync_new_nand<mode>): Likewise.
10517 (sync_lock_test_and_set<mode>): Likewise.
10518 (test_and_set_12): Likewise.
10519 (atomic_compare_and_swap<mode>): Likewise.
10520 (atomic_exchange<mode>_llsc): Likewise.
10521 (atomic_fetch_add<mode>_llsc): Likewise.
10522 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10523 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10524 (umips_save_restore_pattern_p): Likewise.
10525 (umips_load_store_pair_p): Likewise.
10526 (umips_output_load_store_pair): Likewise.
10527 (umips_movep_target_p): Likewise.
10528 (umips_12bit_offset_address_p): Likewise.
10529 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10530 (mips_base_mips16): Rename this...
10531 (mips_base_compression_flags): ...to this. Update all uses.
10532 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10533 (mips_mips16_decl_p): Delete.
10534 (mips_nomips16_decl_p): Delete.
10535 (mips_get_compress_on_flags): New function.
10536 (mips_get_compress_off_flags): New function.
10537 (mips_get_compress_mode): New function.
10538 (mips_get_compress_on_name): New function.
10539 (mips_get_compress_off_name): New function.
10540 (mips_insert_attributes): Support multiple compression types.
10541 (mips_merge_decl_attributes): Likewise.
10542 (umips_12bit_offset_address_p): New function.
10543 (mips_start_function_definition): Emit .set micromips directive.
10544 (mips_call_may_need_jalx_p): New function.
10545 (mips_function_ok_for_sibcall): Add microMIPS support.
10546 (mips_print_operand_punctuation): Support short delay slots and
10547 compact jumps.
10548 (umips_swm_mask, umips_swm_encoding): New.
10549 (umips_build_save_restore): New function.
10550 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10551 (was_mips16_p): Remove.
10552 (old_compression_mode): New.
10553 (mips_set_compression_mode): New function.
10554 (mips_set_current_function): Add microMIPS support.
10555 (mips_option_override): Likewise.
10556 (umips_save_restore_pattern_p): New function.
10557 (umips_output_save_restore): New function.
10558 (umips_load_store_pair_p_1): New function.
10559 (umips_load_store_pair_p): New function.
10560 (umips_output_load_store_pair_1): New function.
10561 (umips_output_load_store_pair): New function.
10562 (umips_movep_target_p) New function.
10563 (mips_prepare_pch_save): Add microMIPS support.
10564 * config/mips/mips.h (TARGET_COMPRESSION): New.
10565 (TARGET_CPU_CPP_BUILTINS): Update macro
10566 to use new compression flags and to support microMIPS.
10567 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10568 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10569 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10570 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10571 (ASM_SPEC): Support mmicromips and mno-micromips.
10572 (M16STORE_REG_P): New macro.
10573 (MIPS_CALL): Support TARGET_MICROMIPS.
10574 (MICROMIPS_J): New macro.
10575 (mips_base_mips16): Rename this...
10576 (mips_base_compression_flags): ...to this.
10577 (UMIPS_12BIT_OFFSET_P): New macro.
10578 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10579 (MULTILIB_DIRNAMES): Likewise.
10580
5e5df392
TV
105812013-02-25 Tom de Vries <tom@codesourcery.com>
10582
10583 PR rtl-optimization/56131
10584 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10585 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10586 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10587
3fdb53c1
TB
105882013-02-25 Tobias Burnus <burnus@net-b.de>
10589
10590 * doc/invoke.texi (-fsanitize=): Move from optimization
10591 to debugging options.
10592
ed358aea
AB
105932013-02-25 Andrey Belevantsev <abel@ispras.ru>
10594
10595 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10596
f45e9053
AB
105972013-02-25 Andrey Belevantsev <abel@ispras.ru>
10598 Alexander Monakov <amonakov@ispras.ru>
10599
10600 PR middle-end/56077
10601 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10602 flush pending lists also on non-jumps. Adjust comment.
10603
6941b508
CM
106042013-02-24 Catherine Moore <clm@codesourcery.com>
10605 Maciej W. Rozycki <macro@codesourcery.com>
10606 Tom de Vries <tom@codesourcery.com>
a72d8780 10607 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
10608 Iain Sandoe <iain@codesourcery.com>
10609 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 10610 Chao-ying Fu <fu@mips.com>
6941b508
CM
10611
10612 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 10613 Document new function attributes.
6941b508
CM
10614 * doc/invoke.texi (minterlink-compressed, mmicromips,
10615 m14k, m14ke, m14kec): Document new options.
10616 (minterlink-mips16): Update documentation.
10617 * doc/md.texi (ZC, ZD): Document new constraints.
10618 * configure.ac (gcc_cv_as_micromips): Check if linker
10619 supports the .set micromips directive.
10620 * configure: Regenerate.
10621 * config.in: Regenerate.
10622 * config/mips/mips-tables.opt: Regenerate.
10623 * config/mips/micromips.md: New file.
10624 * constraints.md (ZC, AD): New constraints.
10625 * config/mips/predicates.md (movep_src_register): New predicate.
10626 (movep_src_operand): New predicate.
10627 (non_volatile_mem_operand): New predicate.
10628 * config/mips/mips.md (multimem): New type.
10629 (length): Differentiate between 17-bit and 18-bit branch offsets.
10630 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 10631 (mov_<load>l): Use ZC constraint.
6941b508
CM
10632 (mov_<load>r): Likewise.
10633 (mov_<store>l): Likewise.
10634 (mov_<store>r): Likewise.
10635 (*branch_equality<mode>_inverted): Add microMIPS support.
10636 (*branch_equality<mode>): Likewise.
10637 (*jump_absolute): Likewise.
10638 (indirect_jump_<mode>): Likewise.
10639 (tablejump_<mode>): Likewise.
10640 (<optab>_internal): Likewise.
10641 (sibcall_internal): Likewise.
10642 (sibcall_value_internal): Likewise.
10643 (prefetch): Use constraint ZD.
10644 * config/mips/mips.opt (minterlink-compressed): New option.
10645 (minterlink-mips16): Now an alias for minterlink-compressed.
10646 (mmicromips): New option.
10647 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10648 (compare_and_swap_12): Likewise.
10649 (sync_add<mode>): Likewise.
10650 (sync_<optab>_12): Likewise.
10651 (sync_old_<optab>_12): Likewise.
10652 (sync_new_<optab>_12): Likewise.
10653 (sync_nand_12): Likewise.
10654 (sync_old_nand_12): Likewise.
10655 (sync_new_nand_12): Likewise.
10656 (sync_sub<mode>): Likewise.
10657 (sync_old_add<mode>): Likewise.
10658 (sync_old_sub<mode>): Likewise.
10659 (sync_new_add<mode>): Likewise.
10660 (sync_new_sub<mode>): Likewise.
10661 (sync_<optab><mode>): Likewise.
10662 (sync_old_<optab><mode>): Likewise.
10663 (sync_new_<optab><mode>): Likewise.
10664 (sync_nand<mode>): Likewise.
10665 (sync_old_nand<mode>): Likewise.
10666 (sync_new_nand<mode>): Likewise.
10667 (sync_lock_test_and_set<mode>): Likewise.
10668 (test_and_set_12): Likewise.
10669 (atomic_compare_and_swap<mode>): Likewise.
10670 (atomic_exchange<mode>_llsc): Likewise.
10671 (atomic_fetch_add<mode>_llsc): Likewise.
10672 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10673 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10674 (umips_save_restore_pattern_p): Likewise.
10675 (umips_load_store_pair_p): Likewise.
10676 (umips_output_load_store_pair): Likewise.
10677 (umips_movep_target_p): Likewise.
10678 (umips_12bit_offset_address_p): Likewise.
10679 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10680 (mips_base_mips16): Rename this...
10681 (mips_base_compression_flags): ...to this. Update all uses.
10682 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10683 (mips_mips16_decl_p): Delete.
10684 (mips_nomips16_decl_p): Delete.
3fdb53c1 10685 (mips_get_compress_on_flags): New function.
6941b508
CM
10686 (mips_get_compress_off_flags): New function.
10687 (mips_get_compress_mode): New function.
10688 (mips_get_compress_on_name): New function.
10689 (mips_get_compress_off_name): New function.
10690 (mips_insert_attributes): Support multiple compression types.
10691 (mips_merge_decl_attributes): Likewise.
10692 (umips_12bit_offset_address_p): New function.
10693 (mips_start_function_definition): Emit .set micromips directive.
10694 (mips_call_may_need_jalx_p): New function.
10695 (mips_function_ok_for_sibcall): Add microMIPS support.
10696 (mips_print_operand_punctuation): Support short delay slots and
10697 compact jumps.
10698 (umips_swm_mask, umips_swm_encoding): New.
10699 (umips_build_save_restore): New function.
10700 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10701 (was_mips16_p): Remove.
10702 (old_compression_mode): New.
10703 (mips_set_compression_mode): New function.
10704 (mips_set_current_function): Add microMIPS support.
10705 (mips_option_override): Likewise.
10706 (umips_save_restore_pattern_p): New function.
10707 (umips_output_save_restore): New function.
10708 (umips_load_store_pair_p_1): New function.
10709 (umips_load_store_pair_p): New function.
10710 (umips_output_load_store_pair_1): New function.
10711 (umips_output_load_store_pair): New function.
10712 (umips_movep_target_p) New function.
10713 (mips_prepare_pch_save): Add microMIPS support.
10714 * config/mips/mips.h (TARGET_COMPRESSION): New.
10715 (TARGET_CPU_CPP_BUILTINS): Update macro
10716 to use new compression flags and to support microMIPS.
10717 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10718 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10719 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10720 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10721 (ASM_SPEC): Support mmicromips and mno-micromips.
10722 (M16STORE_REG_P): New macro.
10723 (MIPS_CALL): Support TARGET_MICROMIPS.
10724 (MICROMIPS_J): New macro.
10725 (mips_base_mips16): Rename this...
10726 (mips_base_compression_flags): ...to this.
10727 (UMIPS_12BIT_OFFSET_P): New macro.
10728 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10729 (MULTILIB_DIRNAMES): Likewise.
10730
cdebbc6d
JJ
107312013-02-24 Jakub Jelinek <jakub@redhat.com>
10732
10733 PR target/52555
10734 * target-globals.c (save_target_globals): For init_reg_sets and
10735 target_reinit remporarily set this_fn_optabs to this_target_optabs.
10736
18c63565
JG
107372013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
10738
10739 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10740 * config/aarch64/t-aarch64
10741 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10742
2194f7a2
VM
107432013-02-22 Vladimir Makarov <vmakarov@redhat.com>
10744
10745 PR inline-asm/56148
10746 * lra-constraints.c (process_alt_operands): Reload operand
10747 conflicting with earlier clobber only if no more other conflicting
10748 operands.
10749
7d613735
JJ
107502013-02-22 Jakub Jelinek <jakub@redhat.com>
10751
10752 PR sanitizer/56393
10753 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10754 if not linking a shared library.
10755
ac8d93a7
SL
107562013-02-22 Seth LaForge <sethml@google.com>
10757
10758 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10759
e0237780
GY
107602013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
10761
3fdb53c1
TB
10762 * config/arm/arm.md (split for extendsidi): Update condition.
10763 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10764 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10765 (qhs_zextenddi_cstr): Likewise.
e0237780 10766
d7fde18c
JJ
107672013-02-21 Jakub Jelinek <jakub@redhat.com>
10768
be63b77d
JJ
10769 PR middle-end/56420
10770 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10771 avoid signed wrapping.
10772 (expand_mult): Handle properly multiplication by
10773 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
10774 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
10775 in the compiler if coeff is HOST_WIDE_INT_MIN.
10776 (expand_divmod): Don't make ext_op1 static, change it's type to
10777 uhwi. Avoid undefined behavior in -INTVAL (op1).
10778
d7fde18c
JJ
10779 PR rtl-optimization/50339
10780 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10781 field.
10782 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10783 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10784 into splitting_ashiftrt field.
10785 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10786 ASHIFTRT.
10787 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10788 choices.
10789
6aad4455
AH
107902013-02-20 Aldy Hernandez <aldyh@redhat.com>
10791
10792 PR middle-end/56108
10793 * trans-mem.c (execute_tm_mark): Do not expand transactions that
10794 are sure to go irrevocable.
10795
38fe784d
HPN
107962013-02-21 Hans-Peter Nilsson <hp@axis.com>
10797
10798 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10799 scalars are valid operands.
10800
0fd44da3
MJ
108012013-02-21 Martin Jambor <mjambor@suse.cz>
10802
10803 PR tree-optimization/56310
10804 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10805 only matching indices and non-negative final offsets.
10806 (intersect_aggregates_with_edge): Pass src_idx to
10807 agg_replacements_to_vector. Pass src_idx insstead of index to
10808 intersect_with_agg_replacements.
10809
7a92038b
MJ
108102013-02-21 Martin Jambor <mjambor@suse.cz>
10811
10812 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10813 instead of hard-wired defaults.
10814
c0da9c37
MR
108152013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
10816
10817 * doc/invoke.texi (MIPS Options): Update documentation of the
10818 floating-point multiply-accumulate instruction restrictions.
10819
d247ea0c 108202013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
10821
10822 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10823 asan_shadow_offset on x86_64 linux.
10824
22deefcb
RB
108252013-02-21 Richard Biener <rguenther@suse.de>
10826
10827 PR tree-optimization/56415
10828 Revert
10829 2013-02-11 Richard Biener <rguenther@suse.de>
10830
10831 PR tree-optimization/56273
10832 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10833 first VRP run.
10834
7bcc6e75
JJ
108352013-02-21 Jakub Jelinek <jakub@redhat.com>
10836
a0ad148f
JJ
10837 PR bootstrap/56258
10838 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10839 instead of @itemx.
10840
7bcc6e75
JJ
10841 PR inline-asm/56405
10842 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10843 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10844
a0a7b611
JH
108452013-02-20 Jan Hubicka <jh@suse.cz>
10846
10847 PR tree-optimization/56265
88b97037
UB
10848 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10849 when target is referenced for first time.
a0a7b611 10850
c0e50f72
RB
108512013-02-20 Richard Biener <rguenther@suse.de>
10852
10853 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10854 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10855 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10856 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10857 not return anything.
10858 (rename_ssa_copies): Do not remove unused locals.
10859 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 10860 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
10861 * passes.c (execute_function_todo): Do not schedule unused locals
10862 removal if cleanup_tree_cfg did something.
10863 * tree-ssa-live.c (remove_unused_locals): Dump statistics
10864 about the number of removed locals.
10865
a52ca739
RB
108662013-02-20 Richard Biener <rguenther@suse.de>
10867
10868 PR tree-optimization/56398
88b97037 10869 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 10870
ec9c9d1b
MJ
108712013-02-20 Martin Jambor <mjambor@suse.cz>
10872
10873 PR tree-optimization/55334
10874 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10875 restricted pointers to arrays.
10876
e91c8ed6 108772013-02-20 Richard Biener <rguenther@suse.de>
88b97037 10878 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
10879
10880 PR tree-optimization/56396
10881 * tree-ssa-ccp.c (n_const_val): New static variable.
10882 (get_value): Return NULL for SSA names we don't have a lattice
10883 entry for.
10884 (ccp_initialize): Initialize n_const_val.
10885 * tree-ssa-copy.c (n_copy_of): New static variable.
10886 (init_copy_prop): Initialize n_copy_of.
10887 (get_value): Return NULL_TREE for SSA names we don't have a
10888 lattice entry for.
10889
3d916479
MJ
108902013-02-20 Martin Jambor <mjambor@suse.cz>
10891
10892 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10893
71a86758
RB
108942013-02-20 Richard Biener <rguenther@suse.de>
10895
10896 * genpreds.c (write_lookup_constraint): Do not compare first
10897 letter of the constraint again.
10898
79836a12
RB
108992013-02-20 Richard Biener <rguenther@suse.de>
10900
10901 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10902 and ceil_log2.
10903 (get_use_iv_cost): Terminate hashtable walk when coming across
10904 an empty entry.
10905
bbe4fb2c
IZ
109062013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
10907
10908 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10909 reassociation for avx2 targets.
10910
a72d8780 109112012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 10912
c77f83d5
EI
10913 * config/microblaze/microblaze.c: microblaze_has_clz = 0
10914 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 10915 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
10916 version and TARGET_PATTERN_COMPARE check
10917 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 10918
a72d8780 109192012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 10920
a72d8780 10921 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
10922 function before branching.
10923
242387fa
AB
109242012-02-19 Andrey Belevantsev <abel@ispras.ru>
10925
10926 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10927 DUMP_INSN_RTX_UID.
10928 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10929
b4979ab9
AB
109302012-02-19 Andrey Belevantsev <abel@ispras.ru>
10931
10932 PR middle-end/55889
b4979ab9
AB
10933 * sel-sched.c: Include ira.h.
10934 (implicit_clobber_conflict_p): New function.
10935 (moveup_expr): Use it.
88b97037 10936 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 10937
24d63016
RB
109382013-02-19 Richard Biener <rguenther@suse.de>
10939
10940 PR tree-optimization/56384
10941 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10942 (vn_hash_type): Split out from ...
10943 (vn_hash_constant_with_type): ... here.
10944 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10945 (vn_phi_eq): Compare types from vn_phi_s structure.
10946 (vn_phi_lookup): Populate vn_phi_s type.
10947 (vn_phi_insert): Likewise.
10948
a475fd3d
JJ
109492013-02-19 Jakub Jelinek <jakub@redhat.com>
10950
47cc28f5
JJ
10951 PR tree-optimization/56350
10952 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10953 if haven't found reduction or nested cycle operand, rather than
10954 asserting we must find it.
10955
a475fd3d
JJ
10956 PR tree-optimization/56381
10957 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10958 to fold_build3.
10959
109602013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
10961 Jakub Jelinek <jakub@redhat.com>
10962
10963 PR target/52555
10964 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10965 (swap_optab_enable): Same.
10966 (init_all_optabs): Use argument instead of global.
88b97037 10967 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
10968 * expr.h (init_all_optabs): Add argument to prototype.
10969 (TREE_OPTIMIZATION_OPTABS): New.
10970 (save_optabs_if_changed): Protoize.
10971 * optabs.h: Declare this_fn_optabs.
10972 * optabs.c (save_optabs_if_changed): New.
10973 Declare this_fn_optabs.
10974 (init_optabs): Add argument to init_all_optabs() call.
10975 * function.c (invoke_set_current_function_hook): Handle per
10976 function optabs.
10977 * function.h (struct function): New field optabs.
10978 * config/mips/mips.c (mips_set_mips16_mode): Handle when
10979 optimization_current_node has changed.
10980 * target-globals.h (save_target_globals_default_opts): Protoize.
10981 * target-globals.c (save_target_globals_default_opts): New.
10982
3f587ca3
JDA
109832013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10984
10985 PR target/56347
10986 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10987 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
10988
10989 PR target/56214
10990 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
10991 and HImode, require all displacements to be an integer multiple of
10992 their mode size.
ceaca33e
JDA
10993 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10994 only allow QImode and HImode when reload is in progress and strict is
10995 true. Likewise for symbolic addresses. Use base14_operand to check
10996 displacements in REG+BASE addresses.
10997
fe0b4796
RB
109982013-02-18 Richard Biener <rguenther@suse.de>
10999
11000 PR tree-optimization/56366
11001 * tree-vect-loop.c (get_initial_def_for_induction): Properly
11002 handle sign-conversion of outer-loop initial induction value.
11003
6aaf596b
RB
110042013-02-18 Richard Biener <rguenther@suse.de>
11005
73db8ff1 11006 PR middle-end/56349
6aaf596b
RB
11007 * cfghooks.c (merge_blocks): If we merge a latch into another
11008 block adjust references to it.
11009 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11010 (verify_loop_structure): Verify that a recorded latch is in fact
11011 a latch.
11012
5e97dfb6
RB
110132013-02-18 Richard Biener <rguenther@suse.de>
11014
11015 PR tree-optimization/56321
11016 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11017 order SSA name release and virtual operand unlinking.
11018
825527e8
EI
110192013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11020
11021 * config/microblaze/microblaze.md (save_stack_block): Define.
11022 (restore_stack_block): Likewise.
11023
debd11d9
EI
110242013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11025
11026 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11027 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11028 * config/microblaze/microblaze.c (microblaze_option_override):
11029 Bail out early for PIC modes when target does not support PIC.
11030
8ec77be0
EI
110312013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11032
88b97037 11033 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
11034 Replace with a microblaze version.
11035 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 11036 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
11037 microblaze.
11038
b41288b3
JJ
110392013-02-16 Jakub Jelinek <jakub@redhat.com>
11040 Dodji Seketeli <dodji@redhat.com>
11041
11042 PR asan/56330
88b97037 11043 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
11044 (instrument_mem_region_access): Do not forget to always put
11045 instrumentation of the of 'base' and 'base + len' in a "if (len !=
11046 0) statement, even for cases where either 'base' or 'base + len'
11047 are not instrumented -- because they have been previously
11048 instrumented. Simplify the logic by putting all the statements
11049 instrument 'base + len' inside a sequence, and then insert that
11050 sequence right before the current insertion point. Then, to
11051 instrument 'base + len', just get an iterator on that statement.
11052 And do not forget to update the pointer to iterator the function
11053 received as argument.
11054
47918951
VM
110552013-02-15 Vladimir Makarov <vmakarov@redhat.com>
11056
11057 PR rtl-optimization/56348
11058 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11059
3fb7c699
SB
110602013-02-15 Steven Bosscher <steven@gcc.gnu.org>
11061
11062 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11063 (clean_graph_dump_file): Pass base to start_graph_dump.
11064
576fe41a
RH
110652013-02-14 Richard Henderson <rth@redhat.com>
11066
11067 PR target/55941
11068 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11069
bb3accfa
SB
110702013-02-14 Steven Bosscher <steven@gcc.gnu.org>
11071
11072 * collect2-aix.h: Define F_LOADONLY.
11073
03143140
RB
110742013-02-14 Richard Biener <rguenther@suse.de>
11075
11076 PR lto/50494
11077 * varasm.c (output_constant_def_1): Get the decl representing
11078 the constant as argument.
11079 (output_constant_def): Wrap output_constant_def_1.
11080 (make_decl_rtl): Use output_constant_def_1 with the decl
11081 representing the constant.
11082 (build_constant_desc): Optionally re-use a decl already
11083 representing the constant.
11084 (tree_output_constant_def): Adjust.
11085
8fb06726
DS
110862013-02-14 Dodji Seketeli <dodji@redhat.com>
11087
11088 Fix an asan crash
11089 * asan.c (instrument_builtin_call): Really put the length of the
11090 second source argument into src1_len.
11091
c4bfe8bf
JJ
110922013-02-13 Jakub Jelinek <jakub@redhat.com>
11093
11094 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11095 argument. If it is false, don't create edge from then_bb to
11096 fallthru_bb.
11097 (insert_if_then_before_iter): Pass true to it.
11098 (build_check_stmt): Pass false to it.
11099 (transform_statements): Flush hash table only on extended basic
11100 block boundaries, rather than at the beginning of every bb.
11101 Don't flush hash table on nonfreeing_call_p calls.
11102 * tree-flow.h (nonfreeing_call_p): New prototype.
11103 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11104
7afe2801
DM
111052013-02-13 David S. Miller <davem@davemloft.net>
11106
11107 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11108
70cc3288
VM
111092013-02-13 Vladimir Makarov <vmakarov@redhat.com>
11110
11111 PR target/56184
11112 * ira.c (max_regno_before_ira): Move from ...
11113 (ira): ... here.
11114 (fix_reg_equiv_init): Use max_regno_before_ira instead of
11115 vec_safe_length.
11116
6422242b
JJ
111172013-02-13 Jakub Jelinek <jakub@redhat.com>
11118
11119 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11120
976a81ee
RB
111212013-02-13 Richard Biener <rguenther@suse.de>
11122
11123 PR lto/56295
11124 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11125 globals in MEM_REFs.
11126
c1874a87
RB
111272013-02-13 Richard Biener <rguenther@suse.de>
11128
11129 * loop-init.c (loop_optimizer_init): Clear loop state when
11130 re-initializing preserved loops.
11131 * loop-unswitch.c (unswitch_single_loop): Return whether
11132 we unswitched the loop. Do not verify loop state here.
88b97037 11133 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 11134
b4ab7d34
KS
111352013-02-13 Kostya Serebryany <kcc@google.com>
11136
88b97037
UB
11137 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11138 on x86_64 linux.
b4ab7d34
KS
11139 * sanitizer.def: Rename __asan_init to __asan_init_v1.
11140
bdcbe80c
DS
111412013-02-12 Dodji Seketeli <dodji@redhat.com>
11142
11143 Avoid instrumenting duplicated memory access in the same basic block
11144 * Makefile.in (asan.o): Add new dependency on hash-table.h
11145 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11146 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11147 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11148 (free_mem_ref_resources, has_mem_ref_been_instrumented)
11149 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11150 (get_mem_ref_of_assignment): New functions.
11151 (get_mem_refs_of_builtin_call): Extract from
11152 instrument_builtin_call and tweak a little bit to make it fit with
11153 the new signature.
11154 (instrument_builtin_call): Use the new
11155 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
11156 of is_gimple_builtin_call.
11157 (instrument_derefs, instrument_mem_region_access): Insert the
11158 instrumented memory reference into the hash table.
11159 (maybe_instrument_assignment): Renamed instrument_assignment into
11160 this, and change it to advance the iterator when instrumentation
11161 actually happened and return true in that case. This makes it
11162 homogeneous with maybe_instrument_assignment, and thus give a
11163 chance to callers to be more 'regular'.
11164 (transform_statements): Clear the memory reference hash table
11165 whenever we enter a new BB, when we cross a function call, or when
11166 we are done transforming statements. Use
11167 maybe_instrument_assignment instead of instrumentation. No more
11168 need to special case maybe_instrument_assignment and advance the
11169 iterator after calling it; it's now handled just like
11170 maybe_instrument_call. Update comment.
11171
4861a1f7
RB
111722013-02-13 Richard Biener <rguenther@suse.de>
11173
11174 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11175 Fix loop discovery code.
11176
1c86bd80
VM
111772013-02-12 Vladimir Makarov <vmakarov@redhat.com>
11178
11179 PR inline-asm/56148
11180 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 11181 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
11182 the operand is not reloaded. Prefer to reload conflicting operand
11183 if earlyclobber and matching operands are the same.
11184
7cbda518
RB
111852013-02-12 Richard Biener <rguenther@suse.de>
11186
11187 PR lto/56297
11188 * lto-streamer-out.c (write_symbol): Do not output symbols
11189 for hard register variables.
11190
e68a4ef6
GJL
111912013-02-12 Georg-Johann Lay <avr@gjlay.de>
11192
11193 PR target/54222
11194 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11195 (umulsidi3_insn, mulsidi3_insn): New insns.
11196
a72d8780 111972013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
11198
11199 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11200 (struct tune_params): Add vec_costs field.
11201 * config/arm/arm.c (arm_builtin_vectorization_cost)
11202 (arm_add_stmt_cost): New functions.
11203 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11204 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11205 (arm_default_vec_cost): New struct of type cpu_vec_costs.
11206 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11207 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11208 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11209 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11210
43320568
RB
112112013-02-12 Richard Biener <rguenther@suse.de>
11212
11213 PR lto/56295
11214 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11215 decls again if possible.
11216
a011aa39
RB
112172013-02-12 Richard Biener <rguenther@suse.de>
11218
11219 PR middle-end/56288
11220 * tree-ssa.c (verify_ssa_name): Fix check, move
11221 SSA_NAME_IN_FREE_LIST check up.
11222
6da26889
JJ
112232013-02-12 Jakub Jelinek <jakub@redhat.com>
11224 Steven Bosscher <steven@gcc.gnu.org>
11225
11226 PR rtl-optimization/56151
11227 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11228 equal to op0 or op1, and last_insn pattern is CODE operation
11229 with MEM dest and one of the operands matches that MEM.
11230
f80e0faf
ST
112312013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11232
11233 * doc/extend.texi: Document Function Multiversioning and "default"
11234 parameter string to target attribute.
11235 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11236 target attribute parameter is "default".
11237 (ix86_compare_version_priority): Remove checks for target attribute.
11238 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11239 Remove check for target attribute equal to NULL. Add assert.
11240 (ix86_generate_version_dispatcher_body): Change error to sorry.
11241
6c59ffd1
IS
112422013-02-11 Iain Sandoe <iain@codesourcery.com>
11243 Jack Howarth <howarth@bromo.med.uc.edu>
11244 Patrick Marlier <patrick.marlier@gmail.com>
11245
11246 PR libitm/55693
11247 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11248 define ENDFILE_SPEC as TM_DESTRUCTOR.
11249 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11250
a72d8780 112512013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
11252 Jack Howarth <howarth@bromo.med.uc.edu>
11253 Jakub Jelinek <jakub@redhat.com>
11254
11255 PR sanitizer/55617
11256 * config/darwin.c (cdtor_record): Rename ctor_record.
11257 (sort_cdtor_records): Rename sort_ctor_records.
11258 (finalize_dtors): New routine to sort destructors by
11259 priority before use in assemble_integer.
11260 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11261
b63fe007
UB
112622013-02-11 Uros Bizjak <ubizjak@gmail.com>
11263
11264 PR rtl-optimization/56275
11265 * simplify-rtx.c (avoid_constant_pool_reference): Check that
11266 offset is non-negative and less than cmode size before
11267 calling simplify_subreg.
11268
8e89b5b5
RB
112692013-02-11 Richard Biener <rguenther@suse.de>
11270
11271 PR tree-optimization/56264
11272 * cfgloop.h (fix_loop_structure): Adjust prototype.
11273 * loop-init.c (fix_loop_structure): Return the number of
11274 newly discovered loops.
11275 * tree-cfgcleanup.c (repair_loop_structures): When new loops
11276 are discovered, do a full loop-closed SSA rewrite.
11277
b4a4b56d
RB
112782013-02-11 Richard Biener <rguenther@suse.de>
11279
11280 PR tree-optimization/56273
11281 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11282 first VRP run.
11283 (check_array_ref): Fix missing newline in dumps.
11284 (search_for_addr_array): Likewise.
11285
0c885229
DE
112862013-02-09 David Edelsohn <dje.gcc@gmail.com>
11287
11288 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11289
59ac9a55
JJ
112902013-02-09 Jakub Jelinek <jakub@redhat.com>
11291
11292 PR target/56256
11293 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11294
25bb0bb5
VM
112952013-02-08 Vladimir Makarov <vmakarov@redhat.com>
11296
11297 PR rtl-optimization/56246
0c885229 11298 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
11299 reload pseudo.
11300 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11301 constraints are satisfied.
11302
a698cc03
JL
113032013-02-08 Jeff Law <law@redhat.com>
11304
11305 PR debug/53948
11306 * emit-rtl.c (reg_is_parm_p): New function.
11307 * regs.h (reg_is_parm_p): New prototype.
11308 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11309 callee-clobbered registers.
11310
e1122ddd
MM
113112013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11312
11313 PR target/56043
11314 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11315 If there is no implicit builtin declaration, just return NULL.
11316
19c5f6e6
UB
113172013-02-08 Uros Bizjak <ubizjak@gmail.com>
11318
11319 * config/i386/sse.md (FMAMODEM): New mode iterator.
11320 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11321 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11322
2480f2ca 113232013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 11324
2480f2ca
UB
11325 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11326 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11327 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11328
113292013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11330
11331 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11332 (microblaze*-*-elf): Likewise.
11333 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11334 LINK_SPEC.
11335 * config/microblaze/microblaze-c.c: Add builtin defines for
11336 _LITTLE_ENDIAN and _BIG_ENDIAN.
11337 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11338 add to TARGET_DEFAULT flags.
76ef61fb 11339 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
11340 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11341 * config/microblaze/microblaze.md: Update extendsidi2 and
11342 movdi_internal instructions to use low-order / high-order reg
11343 print_operands.
11344 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11345 options and inversemask / mask of LITTLE_ENDIAN.
11346 * config/microblaze/t-microblaze: Expand multilib options to
11347 include mlittle-endian (le) and update exceptions patterns.
11348
600a5961
JJ
113492013-02-08 Jakub Jelinek <jakub@redhat.com>
11350
5df81313
JJ
11351 PR rtl-optimization/56195
11352 * lra-constraints.c (get_reload_reg): Don't reuse regs
11353 if they have smaller mode than requested, if they have
11354 wider mode than requested, try to return a SUBREG.
11355
600a5961
JJ
11356 PR tree-optimization/56250
11357 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11358 if type is unsigned and code isn't MULT_EXPR.
11359
ff544649
GJL
113602013-02-08 Georg-Johann Lay <avr@gjlay.de>
11361
11362 PR tree-optimization/56064
11363 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11364 bits according to mode.
11365 * fixed-value.h (fixed_from_double_int)
11366 (const_fixed_from_double_int): Adjust comments.
11367
e45cde98
RB
113682013-02-08 Richard Biener <rguenther@suse.de>
11369
11370 PR lto/56231
11371 * lto-streamer.h (struct data_in): Remove current_file, current_line
11372 and current_col members.
11373 * lto-streamer-out.c (lto_output_location): Stream changed bits
11374 en-block for efficiency.
11375 * lto-streamer-in.c (clear_line_info): Remove.
11376 (lto_input_location): Cache current file, line and column
11377 globally via local statics. Read changed bits en-block.
11378 (input_function): Do not call clear_line_info.
11379 (lto_read_body): Likewise.
11380 (lto_input_toplevel_asms): Likewise.
11381
c1ca73d8
MM
113822013-02-08 Michael Matz <matz@suse.de>
11383
11384 PR tree-optimization/52448
11385 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11386 (nt_call_phase): New static.
11387 (add_or_mark_expr): Only mark accesses with newer phase than any
11388 call seen.
11389 (nonfreeing_call_p): New.
11390 (nt_init_block): Update nt_call_phase, mark blocks as visited.
11391 (nt_fini_block): Keep blocks marked as visited.
11392 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11393
57548aa2
RB
113942013-02-08 Richard Biener <rguenther@suse.de>
11395
11396 * ira.c (ira): Free broken dominator information.
11397
8e10366f
UB
113982013-02-08 Uros Bizjak <ubizjak@gmail.com>
11399
11400 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11401
f64fb0fa
MP
114022013-02-08 Marek Polacek <polacek@redhat.com>
11403
8e10366f 11404 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 11405
0375167b
RB
114062013-02-08 Richard Biener <rguenther@suse.de>
11407
11408 PR middle-end/56181
11409 * cfgloop.h (flow_loops_find): Adjust.
11410 (bb_loop_header_p): Declare.
11411 * cfgloop.c (bb_loop_header_p): New function split out from ...
11412 (flow_loops_find): ... here. Adjust function signature,
11413 support incremental loop structure update.
11414 (verify_loop_structure): Cleanup. Verify a loop is a loop.
11415 * cfgloopmanip.c (fix_loop_structure): Move ...
11416 * loop-init.c (fix_loop_structure): ... here.
11417 (apply_loop_flags): Split out from ...
11418 (loop_optimizer_init): ... here.
11419 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
11420 in incremental mode, only remove dead loops here.
11421
85d768f3
GJL
114222013-02-08 Georg-Johann Lay <avr@gjlay.de>
11423
11424 PR target/54222
11425 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11426 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11427 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11428 (*round<mode>3.libgcc): New insns for fixed-modes.
11429 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11430 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11431 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11432 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11433 implementations. Define to __builtin_avr_absFX,
11434 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11435 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11436 __builtin_avr_countlsFX, respectively.
11437 * config/avr/avr-c.c (target.h): Include it.
11438 (enum avr_builtin_id): New enum.
11439 (avr_resolve_overloaded_builtin): New static function.
11440 (avr_register_target_pragmas): Use it to set
11441 targetm.resolve_overloaded_builtin.
11442 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11443 tree nodes used by DEF_BUILTIN.
11444 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11445 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11446 <AVR_BUILTIN_xxBITS>: Same.
11447
661bc682
RB
114482013-02-08 Richard Biener <rguenther@suse.de>
11449
11450 * cfgloop.c (verify_loop_structure): Properly handle
11451 a loop exiting to another loop header.
11452 * ira-int.h (ira_loops): Remove.
11453 * ira.c (ira_loops): Remove.
11454 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11455 (do_reload): Use loop_optimizer_finalize.
11456 * ira-build.c (create_loop_tree_nodes): Use get_loops and
11457 number_of_loops to access the loop tree.
11458 (more_one_region_p): Likewise.
11459 (finish_loop_tree_nodes): Likewise.
11460 (rebuild_regno_allocno_maps): Likewise.
11461 (mark_loops_for_removal): Likewise.
11462 (mark_all_loops_for_removal): Likewise.
11463 (remove_unnecessary_regions): Likewise.
11464 (ira_build): Likewise.
11465 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11466
0d5049b2
RB
114672013-02-08 Richard Biener <rguenther@suse.de>
11468
11469 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11470 * ipa-pure-const.c (analyze_function): Avoid calling
11471 mark_irreducible_loops twice.
8e10366f 11472 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 11473
499f32e8
DM
114742013-02-07 David S. Miller <davem@davemloft.net>
11475
11476 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11477 on 'reg'.
11478 * var-tracking.c (vt_add_function_parameter): Test the presence of
11479 HAVE_window_save properly and do not remap argument registers when
11480 we have a leaf function.
11481
6edc3e32
UB
114822013-02-07 Uros Bizjak <ubizjak@gmail.com>
11483
11484 PR bootstrap/56227
11485 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11486 instead of "ll".
11487 * config/i386/i386.c (ix86_print_operand): Ditto.
11488
5306401f
VM
114892013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11490
6edc3e32 11491 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 11492
027ece11
VM
114932013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11494
11495 PR rtl-optimization/56225
11496 * lra-constraints.c (process_alt_operands): Check that reload hard
11497 reg can hold value for strict_low_part.
11498
f980dfdb
JJ
114992013-02-07 Jakub Jelinek <jakub@redhat.com>
11500
11501 PR debug/56154
11502 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11503 dwarf2out_end_function.
11504 (in_first_function_p, maybe_at_text_label_p,
11505 first_loclabel_num_not_at_text_label): New variables.
11506 (dwarf2out_var_location): In the first function find out
6edc3e32 11507 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
11508 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11509 functions.
11510
73dd3123
EB
115112013-02-07 Eric Botcazou <ebotcazou@adacore.com>
11512
11513 PR rtl-optimization/56178
11514 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11515 SUBREG of a register. Tidy up related block of code.
11516 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11517 note if the source is a register or a SUBREG of a register.
11518
e3936f47
JJ
115192013-02-07 Jakub Jelinek <jakub@redhat.com>
11520
11521 PR target/56228
11522 * config/rs6000/rs6000.md (ptrm): New mode attr.
11523 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11524 call_value_indirect_aix<pttrsize>,
11525 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11526 m in constraints.
11527
d96d674b
MH
115282013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11529
11530 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11531 if -bnortl. Convert to strcmp and strncmp.
11532
921f2dee
AM
115332013-02-07 Alan Modra <amodra@gmail.com>
11534
11535 PR target/54009
11536 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11537 addresses won't wrap when offsetting.
11538 (rs6000_secondary_reload): Provide secondary reloads needed for
11539 wrapping LO_SUM addresses.
11540
d09c7dba
TS
115412013-02-06 Thomas Schwinge <thomas@codesourcery.com>
11542
11543 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11544 MACH, just __MACH__.
11545
a44bbd48
RB
115462013-02-06 Richard Biener <rguenther@suse.de>
11547
11548 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11549 instead of calling fix_loop_structure.
11550
6d840d99
JJ
115512013-02-06 Jakub Jelinek <jakub@redhat.com>
11552
11553 PR middle-end/56217
11554 * omp-low.c (use_pointer_for_field): Return false if
11555 lower_send_shared_vars doesn't generate any copy-out code.
11556
0f33baa9
TV
115572013-02-06 Tom de Vries <tom@codesourcery.com>
11558
11559 PR rtl-optimization/56131
11560 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11561 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
11562 of the label is NULL. Add comment.
11563
11f1e3ab
JJ
115642013-02-05 Jakub Jelinek <jakub@redhat.com>
11565
31502f9f
JJ
11566 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11567
a74db9bd
JJ
11568 PR sanitizer/55374
11569 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11570 (STATIC_LIBTSAN_LIBS): Likewise.
11571 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11572 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11573 is defined, don't add anything else beyond that.
11574 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11575 (LINK_COMMAND_SPEC): Use them.
11576
11f1e3ab
JJ
11577 PR tree-optimization/56205
11578 * tree-stdarg.c (check_all_va_list_escapes): Return true if
11579 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11580 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11581
14ac6aa2
RB
115822013-02-05 Richard Biener <rguenther@suse.de>
11583
11584 PR tree-optimization/53342
11585 PR tree-optimization/53185
11586 * tree-vectorizer.h (vect_check_strided_load): Remove.
11587 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11588 not disallow peeling for vectorized strided loads.
11589 (vect_check_strided_load): Make static and simplify.
11590 (vect_analyze_data_refs): Adjust.
11591 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11592 correctly when vectorizing strided loads.
11593
6f22445a
RB
115942013-02-05 Richard Biener <rguenther@suse.de>
11595
11596 * doc/install.texi: Refer to ISL, not PPL.
11597
39f9719e
JH
115982013-02-05 Jan Hubicka <jh@suse.cz>
11599
ec4224ac
JH
11600 PR tree-optimization/55789
11601 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11602
116032013-02-05 Jan Hubicka <jh@suse.cz>
11604
11605 PR tree-optimization/55789
39f9719e
JH
11606 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11607 the dead call anyway.
11608
956d3b33
EB
116092013-02-05 Eric Botcazou <ebotcazou@adacore.com>
11610
11611 PR sanitizer/55374
11612 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11613
116142013-02-04 Alexander Potapenko <glider@google.com>
11615 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
11616 Jakub Jelinek <jakub@redhat.com>
11617
11618 PR sanitizer/55617
11619 * config/darwin.c (sort_ctor_records): Stabilized qsort
11620 on constructor priority by using original position.
11621 (finalize_ctors): New routine to sort constructors by
11622 priority before use in assemble_integer.
11623 (machopic_asm_out_constructor): Use finalize_ctors if needed.
11624
7ac3af38
JJ
116252013-02-04 Jakub Jelinek <jakub@redhat.com>
11626
11627 PR libstdc++/54314
11628 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11629 about visibility on artificial decls.
11630 * config/sol2.c (solaris_assemble_visibility): Likewise.
11631
152689dc
KT
116322013-02-04 Kai Tietz <ktietz@redhat.com>
11633
11634 PR target/56186
11635 * config/i386/i386.c (function_value_ms_64): Add additional valtype
11636 argument and improve checking of return-argument types for 16-byte
11637 modes.
11638 (ix86_function_value_1): Add additional valtype argument on call
11639 of function_value_64.
11640 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11641 handling infunction_value_64 function.
11642
2b5987b5
MGD
116432013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11644
7ac3af38 11645 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 11646
14597080
RB
116472013-02-04 Richard Biener <rguenther@suse.de>
11648
11649 PR tree-optimization/56188
11650 * tree-ssa-structalias.c (label_visit): Consider case with
11651 initially non-empty points-to set.
11652 (perform_var_substitution): Dump node mapping and clean up.
11653
ed73881e
RG
116542013-02-04 Richard Guenther <rguenther@suse.de>
11655
11656 PR lto/56168
11657 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11658 node prevail as last resort.
11659 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 11660 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 11661
139a0707
RB
116622013-02-04 Richard Biener <rguenther@suse.de>
11663
11664 PR tree-optimization/56113
11665 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11666 Merge into ...
11667 (equiv_class_lookup_or_add): ... this.
11668 (label_visit): Adjust and fix error in previous patch.
11669 (perform_var_substitution): Adjust.
11670
50fe8924
OE
116712013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
11672
11673 * config/sh/divtab.c: Fix formatting and comments throughout the file.
11674 * config/sh/sh4-300.md: Likewise.
11675 * config/sh/sh4a.md: Likewise.
11676 * config/sh/constraints.md: Likewise.
11677 * config/sh/sh.md: Likewise.
11678 * config/sh/netbsd-elf.h: Likewise.
11679 * config/sh/predicates.md: Likewise.
11680 * config/sh/sh-protos.h: Likewise.
11681 * config/sh/ushmedia.h: Likewise.
11682 * config/sh/linux.h: Likewise.
11683 * config/sh/sh.c: Likewise.
11684 * config/sh/superh.h: Likewise.
11685 * config/sh/elf.h: Likewise.
11686 * config/sh/sh4.md: Likewise.
11687 * config/sh/sh.h: Likewise.
11688
1a04ac2b
JDA
116892013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11690
11691 * config/pa/constraints.md: Adjust unused letters. Change "T"
11692 constraint to match_test floating_point_store_memory_operand().
11693 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11694 (base14_operand): New.
11695 (floating_point_store_memory_operand): New.
11696 (integer_store_memory_operand): Revise to use base14_operand and
11697 reg_plus_base_memory_operand.
11698 (move_dest_operand): Allow symbolic_memory_operands.
11699 (symbolic_memory_operand): Check for LO_SOM.
11700 (symbolic_operand): Change default case to break.
11701 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11702 CONST_DOUBLE values to be reloaded by putting them into memory when
11703 the destination is a floating point register.
11704 (movdf): Remove code to handle CONST_DOUBLE.
11705 (movsf): Likewise.
11706 (reload_indf_r1): New.
11707 (reload_insf_r1): New.
11708 Consistently use "Q" and "T" constraints with integer and floating
11709 point move instructions, respectively.
11710 (movdi): Remove FAIL.
11711 Change predicate for source operand unamed DImode move from
11712 general_operand to move_src_operand.
11713 (umulsidi3): Change predicate for destination operand to
11714 register_operand.
11715 Likewise for similar unamed patterns.
11716 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11717 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11718 (hppa_legitimize_address): Simplify mask calculation.
11719 (pa_emit_move_sequence): Revised handling of secondary reloads from
11720 REG+D addresses for floating point loads and stores. Directly handle
11721 loading CONST0_RTX (mode) to a floating point register.
11722 (pa_secondary_reload): Handle reloading DF and SFmode constant values
11723 to floating point registers. Don't restrict secondary reloads to
11724 floating point registers to integer modes. Revise some comments and
11725 cleanup some code.
11726 (TARGET_LEGITIMATE_ADDRESS_P): Define.
11727 (pa_legitimate_address_p): New.
11728 (pa_legitimize_reload_address): New.
11729 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11730 (STRICT_REG_OK_FOR_BASE_P): New.
11731 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
11732 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11733
3bf65591
DE
117342013-02-03 David Edelsohn <dje.gcc@gmail.com>
11735 Andrew Dixie <andrewd@gentrack.com>
11736
11737 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11738 flag set.
11739
c0a8a3e6
RS
117402013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
11741
11742 * expmed.c (extract_bit_field_1): Pass the full width of the
11743 structure to get_best_reg_extraction_insn.
11744
99113dff
DE
117452013-02-01 David Edelsohn <dje.gcc@gmail.com>
11746
11747 PR target/54601
11748 * configure.ac (use_cxa_atexit): Add AIX.
11749 * configure: Regenerate.
11750
11751 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11752
ddd84654
JJ
117532013-02-01 Jakub Jelinek <jakub@redhat.com>
11754
11755 PR debug/54793
11756 * final.c (need_profile_function): New variable.
11757 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11758 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11759 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11760 notes, targetm.asm_out.function_prologue doesn't emit anything,
11761 HAVE_prologue and profiler should be emitted before prologue,
11762 set need_profile_function instead of emitting it.
11763 (final_scan_insn): If need_profile_function, emit
11764 profile_function on the first NOTE_INSN_BASIC_BLOCK or
11765 NOTE_INSN_FUNCTION_BEG note.
11766
117672013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
11768
11769 * config/rs6000/rs6000.md (smulditi3): New.
11770 (umulditi3): New.
11771
ff2a9d88
RH
11772 * config/alpha/alpha.md (umulditi3): New.
11773
14d52b90
DE
117742013-02-01 David Edelsohn <dje.gcc@gmail.com>
11775
11776 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11777 (ASM_OUTPUT_ALIGNED_LOCAL): New.
11778
8c7ca45c
RB
117792013-02-01 Richard Biener <rguenther@suse.de>
11780
11781 PR tree-optimization/56113
11782 * tree-ssa-structalias.c (label_visit): Reduce work for
11783 single-predecessor nodes.
11784
9f419393
EB
117852013-02-01 Eric Botcazou <ebotcazou@adacore.com>
11786
11787 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11788 range isn't testing for zero.
11789
c5f4be84
SB
117902013-01-31 Steven Bosscher <steven@gcc.gnu.org>
11791
11792 PR middle-end/56113
11793 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11794
dbdbd982
NC
117952013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
11796 Nick Clifton <nickc@redhat.com>
11797
11798 * config/v850/constraints.md (Q): Define as a memory constraint.
11799 * config/v850/predicates.md (label_ref_operand): New predicate.
11800 (e3v5_shift_operand): New predicate.
11801 (ior_operator): New predicate.
11802 * config/v850/t-v850: Add e3v5 multilib.
11803 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11804 (v850_gen_movdi): Prototype.
11805 * config/v850/v850.c: Add support for e3v5 architecture.
11806 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11807 TARGET_V850E_UP.
11808 (construct_save_jarl): Add e3v5 long JARL support.
11809 (v850_adjust_insn_length): New function. Adjust length of call
11810 insns when using e3v5 instructions.
11811 (v850_gen_movdi): New function: Generate instructions to move a
11812 DImode value.
11813 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11814 (CPP_SPEC): Define __v850e3v5__ as appropriate.
11815 (TARGET_USE_FPU): Enable for e3v5.
11816 (CONST_OK_FOR_W): New macro.
11817 (ADJUST_INSN_LENGTH): Define.
11818 * config/v850/v850.md (UNSPEC_LOOP): Define.
11819 (attr cpu): Add v850e3v5.
11820 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11821 (movdi): New pattern.
11822 (movdi_internal): New pattern.
11823 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11824 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11825 (cstoresf4): Likewise.
11826 (cstoredf4): Likewise.
11827 (insv): New pattern.
11828 (rotlso3_a): New pattern.
11829 (rotlsi3_b): New pattern
11830 (rotlsi3_v850e3v5): New pattern.
11831 (doloop_begin): New pattern.
11832 (fix_loop_counter): New pattern.
11833 (doloop_end): New pattern.
11834 (branch_normal): Add e3v5 long branch support.
11835 (branch_invert): Likewise.
11836 (branch_z_normal): Likewise.
11837 (branch_z_invert): Likewise.
11838 (branch_nz_normal): Likewise.
11839 (branch_nz_invert): Likewise.
11840 (call_internal_short): Add e3v5 register-indirect JARL support.
11841 (call_internal_long): Likewise.
11842 (call_value_internal_short): Likewise.
11843 (call_value_internal_long): Likewise.
11844 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11845 (mloop): New option.
11846 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 11847 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 11848
73861a41
PK
118492013-01-31 Paul Koning <ni1d@arrl.net>
11850
11851 PR debug/55059
11852 PR debug/54508
11853 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11854 children if parent is a class.
11855 (prune_unused_types_prune): Don't add DW_AT_declaration.
11856
e44978dc
RB
118572013-01-31 Richard Biener <rguenther@suse.de>
11858
11859 PR tree-optimization/56157
11860 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11861 match up operand with SLP child.
11862
90b10dec
JM
118632013-01-31 Jason Merrill <jason@redhat.com>
11864
04d2dadd 11865 PR debug/54410
90b10dec
JM
11866 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11867 parameters the first time.
11868 (gen_scheduled_generic_parms_dies): Check completeness here.
11869
6e616110
RB
118702013-01-31 Richard Biener <rguenther@suse.de>
11871
11872 PR middle-end/53073
11873 * common.opt (faggressive-loop-optimizations): New flag,
11874 enabled by default.
11875 * doc/invoke.texi (faggressive-loop-optimizations): Document.
11876 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11877 infer_loop_bounds_from_undefined by it.
11878
636f59cf
RB
118792013-01-31 Richard Biener <rguenther@suse.de>
11880
11881 PR tree-optimization/56150
11882 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11883 visit virtual operands.
11884 (find_uses_to_rename_bb): Likewise.
11885
118862013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
11887
11888 PR tree-optimization/56150
11889 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11890 mixed store non-store stmts.
11891
32887460
JJ
118922013-01-30 Jakub Jelinek <jakub@redhat.com>
11893
e60e09a0
JJ
11894 PR sanitizer/55374
11895 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11896 LIBASAN_EARLY_SPEC is defined.
11897 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11898 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11899 before %o.
11900 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11901
32887460
JJ
11902 PR c++/55742
11903 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11904 invalid args instead of ICEing on it.
11905 (ix86_valid_target_attribute_tree): Return error_mark_node if
11906 ix86_valid_target_attribute_inner_p failed.
11907 (ix86_valid_target_attribute_p): Return false only if
11908 ix86_valid_target_attribute_tree returned error_mark_node. Allow
11909 target("default") attribute.
11910 (sorted_attr_string): Change argument from const char * to tree,
11911 merge in all target attribute arguments rather than just one.
11912 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
11913 instead of free. Avoid using strcat.
11914 (ix86_mangle_function_version_assembler_name): Mangle
11915 target("default") as if no target attribute is present. Adjust
11916 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
11917 instead of xmalloc and XDELETEVEC instead of free.
11918 (ix86_function_versions): Don't return true if one of the decls
11919 doesn't have target attribute. If they don't and one of the decls
11920 is DECL_FUNCTION_VERSIONED, report an error. Adjust
11921 sorted_attr_string caller. Use XDELETEVEC instead of free.
11922 (ix86_supports_function_versions): Remove.
11923 (make_name): Fix up formatting.
11924 (make_dispatcher_decl): Remove resolver_name and its initialization.
11925 Avoid leaking memory.
11926 (is_function_default_version): Return true if there is
11927 target("default") attribute rather than no target attribute at all.
11928 (make_resolver_func): Avoid leaking memory.
11929 (ix86_generate_version_dispatcher_body): Likewise.
11930 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11931 * target.def (supports_function_versions): Remove.
11932 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11933 * doc/tm.texi: Regenerated.
11934
73cca0cc
VM
119352013-01-30 Vladimir Makarov <vmakarov@redhat.com>
11936
11937 PR rtl-optimization/56144
11938 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11939 for values with side effects.
11940
11452e7b
RB
119412013-01-30 Richard Biener <rguenther@suse.de>
11942
11943 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11944 (sparseset_pop): Likewise.
11945 * cfganal.c (compute_idf): Likewise. Increase work-stack size
11946 to be able to use quick_push in the worker loop.
11947
01cb1ef5
MP
119482013-01-30 Marek Polacek <polacek@redhat.com>
11949
11950 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11951
e892936e
RB
119522013-01-30 Richard Biener <rguenther@suse.de>
11953
11954 PR lto/56147
6edc3e32 11955 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 11956
cc06c01d
GJL
119572013-01-30 Georg-Johann Lay <avr@gjlay.de>
11958
11959 PR tree-optimization/56064
11960 * fixed-value.c (fixed_from_double_int): New function.
11961 * fixed-value.h (fixed_from_double_int): New prototype.
11962 (const_fixed_from_double_int): New static inline function.
11963 * fold-const.c (native_interpret_fixed): New static function.
11964 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11965 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11966 (native_encode_fixed): New static function.
11967 (native_encode_expr) <FIXED_CST>: Use it.
11968 (native_interpret_int): Move double_int worker code to...
11969 * double-int.c (double_int::from_buffer): ...this new static method.
11970 * double-int.h (double_int::from_buffer): Prototype it.
11971
d394a308
RB
119722013-01-30 Richard Biener <rguenther@suse.de>
11973
11974 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11975 New pointer-map and obstack.
11976 (init_alias_vars): Allocate pointer-map and obstack.
11977 (delete_points_to_sets): Free them.
11978 (find_what_var_points_to): Cache result.
11979 (find_what_p_points_to): Adjust for changed interface of
11980 find_what_var_points_to.
11981 (compute_points_to_sets): Likewise.
11982 (ipa_pta_execute): Likewise.
11983
20804d96
RO
119842013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11985
11986 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11987 * configure: Regenerate.
11988 * config.in: Regenerate.
11989 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11990 #nobits/#progbits if supported.
11991
a7ad88a2
OE
119922013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
11993
11994 PR target/56121
11995 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11996 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11997 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11998
7af79f92
GY
119992013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12000
91bfca59
OE
12001 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12002 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 12003
753bcf7b
GY
120042013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12005
91bfca59
OE
12006 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12007 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 12008
8cbc2ea8
GY
120092013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12010
91bfca59
OE
12011 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12012 declaration.
12013 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12014 * config/arm/cortex-a7.md: New bypasses using
12015 arm_mac_accumulator_is_result.
8cbc2ea8 12016
697a3325
GY
120172013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12018
91bfca59 12019 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 12020 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
12021 (cortex_a7_fpfmad): New reservation.
12022 (cortex_a7_fpmacs): Use ffmas and update required units.
12023 (cortex_a7_fpmuld): Update required units and latency.
12024 (cortex_a7_fpmacd): Likewise.
12025 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12026 (cortex_a7_neon). Likewise.
12027 (bypass) Update participating units.
697a3325 12028
29637783
GY
120292013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12030
91bfca59
OE
12031 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12032 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12033 from fmac to ffma.
12034 * config/arm/vfp11.md (vfp_farith): Use ffmas.
12035 (vfp_fmul): Use ffmad.
12036 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12037 (cortex_r4_fmacd): Use ffmad.
12038 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12039 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
12040 (cortex_a9_fmacd): Use ffmad.
12041 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12042 (cortex_a8_vfp_macd): Use ffmad.
12043 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12044 (cortex_a5_fpmacd): Use ffmad.
12045 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12046 (cortex_a15_vfp_macd): Use ffmad.
12047 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 12048
2ee8a2d5
JM
120492013-01-29 Jason Merrill <jason@redhat.com>
12050
12051 PR libstdc++/54314
12052 * varasm.c (default_assemble_visibility): Don't warn about
12053 visibility on artificial decls.
12054
78d087bc
RB
120552013-01-29 Richard Biener <rguenther@suse.de>
12056
12057 PR tree-optimization/56113
12058 * tree-ssa-structalias.c (equiv_class_lookup): Also return
12059 the bitmap leader.
12060 (label_visit): Free duplicate bitmaps and record the leader instead.
12061 (perform_var_substitution): Adjust.
12062
83ba4d6f
RB
120632013-01-29 Richard Biener <rguenther@suse.de>
12064
12065 PR tree-optimization/55270
12066 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12067 the CFG, schedule loops for fixup.
12068
66dfe13f
NC
120692013-01-29 Nick Clifton <nickc@redhat.com>
12070
12071 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12072 SP_REG.
12073
5a579c3b
LE
120742013-01-28 Leif Ekblad <leif@rdos.net>
12075
12076 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12077 * config/i386/i386.h (TARGET_RDOS): New macro.
12078 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12079 * config/i386/i386.c (ix86_option_override_internal): For 64bit
12080 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12081 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12082 DEFAULT_LARGE_SECTION_THRESHOLD.
12083 * config/i386/i386.md (R14_REG, R15_REG): New constants.
12084 * config/i386/rdos.h: New file.
12085 * config/i386/rdos64.h: New file.
12086
51e44392
BS
120872013-01-28 Bernd Schmidt <bernds@codesourcery.com>
12088
12089 PR other/54814
12090 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12091 TEST_HARD_REG_BIT.
12092
db1fb332
JJ
120932013-01-28 Jakub Jelinek <jakub@redhat.com>
12094
12095 PR rtl-optimization/56117
12096 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12097 call cselib_lookup_from_insn on the MEM before calling
12098 add_insn_mem_dependence.
12099
16917761
RB
121002013-01-28 Richard Biener <rguenther@suse.de>
12101
12102 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12103 to a stmt that didn't have one.
12104 (copy_phis_for_bb): Likewise for PHI arguments.
12105 (copy_debug_stmt): Likewise for debug stmts.
12106
b9fc0497
RB
121072013-01-28 Richard Biener <rguenther@suse.de>
12108
12109 PR tree-optimization/56034
6edc3e32 12110 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
12111 (partition_builtin_p): Adjust.
12112 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
12113 it is the last partition.
12114 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12115 up the vertex for the definition.
12116 (classify_partition): Classify whether a partition is a
12117 PKIND_REDUCTION, thus has uses outside of the loop.
12118 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12119 Merge all PKIND_REDUCTION partitions into the last partition.
12120 (tree_loop_distribution): Seed partitions from reductions as well.
12121
aa710d25
JJ
121222013-01-28 Jakub Jelinek <jakub@redhat.com>
12123
0bfbca58
JJ
12124 PR tree-optimization/56125
12125 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12126 pow(x,c) into sqrt(x) * powi(x, n/2) or
12127 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12128 optimizing for size.
12129 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12130 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12131 integer.
12132
aa710d25
JJ
12133 PR tree-optimization/56094
12134 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12135 to UNKNOWN_LOCATION while gimplifying expr.
12136
77dc5297
UB
121372013-01-27 Uros Bizjak <ubizjak@gmail.com>
12138
12139 PR target/56114
12140 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12141 operand 0 in movabs insn template for -masm=intel asm alternative.
12142 (*movabs<mode>_2): Ditto for operand 1.
12143
0bfbca58 121442013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
12145
12146 PR target/54663
12147 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12148 of microblaze-c.o
12149
0bfbca58 121502013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
12151
12152 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12153 tm_file.
12154
0bfbca58 121552013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
12156
12157 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12158 Undef to avoid warning.
12159
478f60f9
MH
121602013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12161
12162 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12163 * configure: Regenerate.
12164
d7fa6ee2
JJ
121652013-01-25 Jakub Jelinek <jakub@redhat.com>
12166
12167 PR tree-optimization/56098
12168 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12169 for stmts with volatile ops.
12170 (cond_store_replacement): Don't optimize if assign has volatile ops.
12171 (cond_if_else_store_replacement_1): Don't optimize if either
12172 then_assign or else_assign have volatile ops.
12173 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12174 volatile ops.
12175
f8fe87bd
GJL
121762013-01-25 Georg-Johann Lay <avr@gjlay.de>
12177
12178 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12179
28398d0d
GJL
121802013-01-25 Georg-Johann Lay <avr@gjlay.de>
12181
12182 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12183 missing ':' in asm example.
12184
b7d7d917
TB
121852013-01-25 Tejas Belagod <tejas.belagod@arm.com>
12186
12187 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12188 entries into lane and laneq entries.
77dc5297
UB
12189 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12190 Remove AdvSIMD scalar modes.
b7d7d917
TB
12191 (aarch64_sq<r>dmulh_laneq<mode>): New.
12192 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12193 modes.
12194 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12195 builtin implementations to relfect changes in RTL in aarch64-simd.md.
12196 * config/aarch64/iterators.md (VCOND): New.
12197 (VCONQ): New.
12198
556f9906
GJL
121992013-01-25 Georg-Johann Lay <avr@gjlay.de>
12200
12201 PR target/54222
12202 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12203 Add NULL LIBNAME argument to existing definitions.
12204 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12205 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12206 * config/avr/avr.c (DEF_BUILTIN): Same.
12207 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12208 (avr_expand_builtin): Expand to a vanilla call if a libgcc
12209 implementation is available (DECL_ASSEMBLER_NAME is set).
12210 (avr_fold_absfx): New static function.
12211 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12212 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12213 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12214 AVR_BUILTIN_ABSLLK.
12215 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12216 (abshk, absk, abslk, absllk): Provide as static inline functions.
12217
1f546bbb
MP
122182013-01-25 Marek Polacek <polacek@redhat.com>
12219
12220 PR tree-optimization/56035
12221 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12222
7e184bd7
UB
122232012-01-24 Uros Bizjak <ubizjak@gmail.com>
12224
12225 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12226 (*movtf_internal_rex64): Add (!o,C) alternative
12227 (*movxf_internal_rex64): Ditto.
12228 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12229
f5ba49ac
SM
122302013-01-24 Shenghou Ma <minux.ma@gmail.com>
12231
12232 * doc/invoke.texi: fix typo.
12233 * doc/objc.texi: fix typo.
12234
a6343728
RS
122352013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12236
12237 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12238 for the first two alternatives.
12239
cd030c07
DN
122402013-01-24 Diego Novillo <dnovillo@google.com>
12241
77dc5297 12242 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
12243 (ggc-zone.o): Remove.
12244 * configure.ac: Remove option --with-gc.
12245 * configure: Re-generate.
12246 * doc/install.texi: Remove documentation for --with-gc.
12247 * gengtype.c (write_enum_defn): Remove. Update all users.
12248 (write_Types_process_field): Remove generation of gt_e_* argument.
12249 (output_type_enum): Remove. Update all users.
12250 (write_enum_defn): Remove. Update all users.
12251 (enum alloc_zone): Remove. Update all users.
77dc5297 12252 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
12253 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12254 Update all callers.
12255 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 12256 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
12257 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12258 Update all users.
aaf1e810 12259 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
12260 (struct alloc_zone): Remove.
12261 (ggc_internal_alloc_zone_stat): Remove.
12262 (ggc_internal_cleared_alloc_zone_stat): Remove.
12263 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
12264 (ggc_pch_count_object): Remove last argument. Update all users.
12265 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
12266 (struct alloc_zone): Remove.
12267 * ggc-zone.c: Remove.
77dc5297 12268 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
12269 (struct alloc_zone): Remove.
12270 (ggc_alloc_typed_stat): Remove.
12271 (ggc_alloc_typed): Remove.
12272 (ggc_splay_alloc): Remove first argument.
12273 (rtl_zone): Remove. Update all users.
12274 (tree_zone): Remove. Update all users.
12275 (tree_id_zone): Remove. Update all users.
12276 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 12277 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 12278 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 12279 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 12280
a861ffa4
GJL
122812013-01-24 Georg-Johann Lay <avr@gjlay.de>
12282
12283 * config/avr/avr.c (avr_out_fract): Make register numbers that
12284 might be outside of source operand signed.
12285
593c0ddd
UB
122862013-01-24 Uros Bizjak <ubizjak@gmail.com>
12287
12288 * config/i386/constraints.md (Yf): New constraint.
12289 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12290 of f constraint to conditionaly disable x87 register preferences.
12291 (*movdf_internal): Ditto.
12292 (*movsf_internal): Ditto.
12293
e86c0101
SB
122942013-01-24 Steven Bosscher <steven@gcc.gnu.org>
12295
12296 PR inline-asm/55934
12297 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12298 that have operands with impossible constraints.
12299 Add a FIXME for a speed-up opportunity.
12300 * lra-constraints.c (process_alt_operands): Verify that a class
12301 selected from constraints on asms is valid for the operand mode.
12302 (curr_insn_transform): Remove incorrect comment.
12303
f6fee35f
DE
123042013-01-23 David Edelsohn <dje.gcc@gmail.com>
12305
12306 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12307 TOC operand is a valid symbol ref in the constant pool.
12308
123092013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 12310
aaf1e810 12311 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 12312
dc62d7d1
GJL
123132013-01-23 Georg-Johann Lay <avr@gjlay.de>
12314
12315 PR target/54222
12316 * config/avr/stdfix.h: New file.
12317 * t-avr (stdfix-gcc.h): New rule to build it.
12318 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12319
2660d12d
KS
123202013-01-23 Kostya Serebryany <kcc@google.com>
12321
77dc5297
UB
12322 * config/darwin.h: remove dependency on
12323 CoreFoundation (asan on Mac OS).
2660d12d 12324
a70418fc
JJ
123252013-01-23 Jakub Jelinek <jakub@redhat.com>
12326
12327 PR target/49069
12328 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12329 instead of cmpdi_operand for first comparison operand.
12330 Don't assert that comparison operands aren't both constants.
12331
47876a2a
JW
123322013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
12333
12334 * doc/install.texi (Downloading the Source): Update references to
12335 downloading separate components.
12336
123372013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
12338
12339 * doc/extend.texi (__int128): Improve grammar.
12340
47876a2a 123412013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
12342
12343 PR target/56028
12344 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12345 alternative to (o,r).
12346 (*movdi_internal_rex64): Remove (!o,n) alternative.
12347 (DImode immediate->memory splitter): Remove.
12348 (DImode immediate->memory peephole2): Remove.
12349 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12350 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12351 alternative to (!o,*r).
12352 (*movtf_internal_sse): New pattern.
12353 (*movxf_internal_rex64): New pattern.
12354 (*movxf_internal): Disable for TARGET_64BIT.
12355 (*movdf_internal_rex64): Remove (!o,F) alternative.
12356
3a984f10
JJ
123572013-01-22 Jakub Jelinek <jakub@redhat.com>
12358
502498d5
JJ
12359 PR middle-end/56074
12360 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12361 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12362 * tree-vect-loop-manip.c (find_loop_location): Also ignore
12363 stmt locations where LOCATION_LOCUS of the stmt location is
12364 UNKNOWN_LOCATION or BUILTINS_LOCATION.
12365
3a984f10
JJ
12366 PR target/55686
12367 * config/i386/i386.md (UNSPEC_STOS): New.
12368 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12369 *strsetqi_1): Add UNSPEC_STOS.
12370
fa817f7f
PC
123712013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
12372
12373 PR c++/56067
12374 * doc/invoke.texi: Remove left over -Wsynth example.
12375
8f498c1b
JJ
123762013-01-21 Jakub Jelinek <jakub@redhat.com>
12377
12378 PR tree-optimization/56051
12379 * fold-const.c (fold_binary_loc): Don't fold
12380 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12381 a narrowing conversion, or widening conversion from signed
12382 to unsigned.
12383
47876a2a 123842013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
12385
12386 PR rtl-optimization/56023
12387 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12388 dependent on debug instruction.
12389
5b9db1bc
MJ
123902013-01-21 Martin Jambor <mjambor@suse.cz>
12391
12392 PR middle-end/56022
12393 * function.c (allocate_struct_function): Call
12394 invoke_set_current_function_hook earlier.
12395
e8bb7d68
JJ
123962013-01-21 Jakub Jelinek <jakub@redhat.com>
12397
12398 * reload1.c (init_reload): Only initialize reload_obstack
12399 during the first call.
12400
616a4e32
MP
124012013-01-21 Marek Polacek <polacek@redhat.com>
12402
12403 * cfgloop.c (verify_loop_structure): Fix up grammar.
12404
4401981b
YHH
124052013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
12406
12407 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12408 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12409
8e87740b
RR
124102013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12411
12412 PR target/56058
12413 * config/arm/marvell-pj4.md: Update copyright year.
12414 Fix up use of alu to alu_reg and simple_alu_imm.
12415
47876a2a 124162013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
12417
12418 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12419
89d56d79
VM
124202013-01-20 Vladimir Makarov <vmakarov@redhat.com>
12421
12422 PR target/55433
12423 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 12424 insn for secondary memory move when memory mode should be different.
89d56d79 12425
fe603553
JDA
124262013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12427
12428 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12429 atomic_storedi_1): New patterns.
12430
01284895
VK
124312013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12432
12433 btver2 pipeline descriptions.
12434 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12435 descriptions.
12436 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 12437 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
12438 type attributes.
12439 * config/i386/btver2.md: New file describing btver2 pipelines.
12440
5630e3e1
JL
124412013-01-19 Andrew Pinski <apinski@cavium.com>
12442
12443 PR tree-optimization/52631
12444 * tree-ssa-sccvn (visit_use): Before looking up the original
12445 statement, try looking up the simplified expression.
12446
650ae806
AG
124472013-01-19 Anthony Green <green@moxielogic.com>
12448
12449 * config/moxie/moxie.c (moxie_expand_prologue): Set
12450 current_function_static_stack_size.
12451
e300ec2d
JJ
124522013-01-18 Jakub Jelinek <jakub@redhat.com>
12453
12454 PR tree-optimization/56029
12455 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12456 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12457
a3d7af04
SS
124582013-01-18 Sharad Singhai <singhai@google.com>
12459
12460 PR tree-optimization/55995
12461 * dumpfile.c (dump_loc): Print location only if available.
12462 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12463
66aa7879
VM
124642013-01-18 Vladimir Makarov <vmakarov@redhat.com>
12465
12466 PR target/55433
12467 * lra-constraints.c (curr_insn_transform): Reuse original insn for
12468 secondary memory move.
12469 (inherit_reload_reg): Use rclass instead of cl for
12470 check_secondary_memory_needed_p.
12471
3f0fee7b
JJ
124722013-01-18 Jakub Jelinek <jakub@redhat.com>
12473
12474 PR middle-end/56015
12475 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 12476 the case where writing real complex part of target modifies op1.
3f0fee7b 12477
70c67693
JG
124782013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
12479
12480 * config/aarch64/aarch64-simd.md
12481 (aarch64_vcond_internal<mode>): Handle unordered cases.
12482 * config/aarch64/iterators.md (v_cmp_result): New.
12483
df8de9b3
YHH
124842013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
12485 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12486
12487 * config/arm/marvell-pj4.md: New file.
12488 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12489 * config/arm/arm.md (generic_sched): Add marvell_pj4.
12490 (generic_vfp): Likewise.
12491 * config/arm/arm-cores.def: Add marvell-pj4.
12492 * config/arm/arm-tune.md: Regenerate.
12493 * config/arm/arm-tables.opt: Regenerate.
12494 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12495 * doc/invoke.texi: Document marvell-pj4.
12496
be30c356
TB
124972013-01-18 Tejas Belagod <tejas.belagod@arm.com>
12498
12499 * config/aarch64/arm_neon.h: Map scalar types to standard types.
12500
0bfbca58 125012013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
12502
12503 PR debug/54114
12504 PR debug/54402
12505 PR debug/49888
12506 * var-tracking.c (negative_power_of_two_p): New.
12507 (global_get_addr_cache, local_get_addr_cache): New.
12508 (get_addr_from_global_cache, get_addr_from_local_cache): New.
12509 (vt_canonicalize_addr): Rewrite using the above. Adjust the
12510 heading comment.
12511 (vt_stack_offset_p): Remove.
12512 (vt_canon_true_dep): Always canonicalize loc's address.
12513 (clobber_overlapping_mems): Make sure we have a MEM.
12514 (local_get_addr_clear_given_value): New.
12515 (val_reset): Clear local cached entries.
12516 (compute_bb_dataflow): Create and release the local cache.
12517 Disable duplicate MEMs clobbering.
12518 (emit_notes_in_bb): Clobber MEMs likewise.
12519 (vt_emit_notes): Create and release the local cache.
12520 (vt_initialize, vt_finalize): Create and release the global
12521 cache, respectively.
1f6bc337 12522 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 12523
0bfbca58 125242013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
12525
12526 PR libmudflap/53359
12527 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12528 not found in the symtab.
12529
0bfbca58 125302013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 12531
c350ba53 12532 PR debug/56006
3aa03517
AO
12533 PR rtl-optimization/55547
12534 PR rtl-optimization/53827
12535 PR debug/53671
12536 PR debug/49888
12537 * alias.c (offset_overlap_p): New, factored out of...
12538 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
12539 the conservative special case for symbolic constants. Don't
12540 adjust zero sizes on alignment.
12541
c664546f
JL
125422013-01-18 Bernd Schmidt <bernds@codesourcery.com>
12543
12544 PR rtl-optimization/52573
12545 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12546 REG_UNUSED for the same register.
12547
1bd3f750
MP
125482013-01-17 Richard Biener <rguenther@suse.de>
12549 Marek Polacek <polacek@redhat.com>
12550
12551 PR rtl-optimization/55833
12552 * loop-unswitch.c (unswitch_loops): Move loop verification...
12553 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
12554 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12555 Set it to true when we're removing a loop from hierarchy tree in
12556 an irreducible region.
12557 (fix_bb_placements): Adjust caller.
12558 (fix_loop_placements): Likewise.
12559
e52a8b71
GJL
125602013-01-17 Georg-Johann Lay <avr@gjlay.de>
12561
12562 * config/avr/builtins.def (DEF_BUILTIN): Factor out
12563 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12564 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12565 Remove ID. Adjust comments.
12566 * config/avr/avr-c.c (avr_builtin_name): Remove.
12567 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12568 * config/avr/avr.c (avr_tolower): New static function.
12569 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
12570 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12571 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12572 default expansion.
12573
8386a7ea
JH
125742013-01-17 Jan Hubicka <jh@suse.cz>
12575
610fb637 12576 PR tree-optimization/55273
8386a7ea
JH
12577 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12578
47876a2a 125792013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
12580
12581 PR target/55981
12582 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12583 store through atomic_store<mode>_1.
12584 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12585
8222c37e
MJ
125862013-01-17 Martin Jambor <mjambor@suse.cz>
12587
12588 PR tree-optimizations/55264
12589 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12590 for virtual methods.
12591 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12592 virtual methods before inlining is over.
12593 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12594 virtual functions.
12595 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12596 non-virtual.
12597
79f01c76
VM
125982013-01-16 Vladimir Makarov <vmakarov@redhat.com>
12599
12600 PR rtl-optimization/56005
12601 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12602 pending reads for prefetch.
12603
d0b6bb1b
IB
126042013-01-16 Ian Bolton <ian.bolton@arm.com>
12605
aaf1e810 12606 * config/aarch64/aarch64.md
d0b6bb1b
IB
12607 (*cstoresi_neg_uxtw): New pattern.
12608 (*cmovsi_insn_uxtw): New pattern.
12609 (*<optab>si3_uxtw): New pattern.
12610 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12611 (*<optab>si3_insn_uxtw): New pattern.
12612 (*bswapsi2_uxtw): New pattern.
12613
cb9cf03b
RB
126142013-01-16 Richard Biener <rguenther@suse.de>
12615
12616 * tree-inline.c (tree_function_versioning): Remove set but
12617 never used variable.
12618
2cfc56b9
RB
126192013-01-16 Richard Biener <rguenther@suse.de>
12620
12621 PR tree-optimization/55964
12622 * tree-flow.h (rename_variables_in_loop): Remove.
12623 (rename_variables_in_bb): Likewise.
12624 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12625 (copy_loop_before): Adjust and delete update-ssa status.
12626 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 12627 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
12628 (rename_variables_in_loop): Remove.
12629 (slpeel_update_phis_for_duplicate_loop): Likewise.
12630 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12631 use available cfg machinery instead of duplicating it.
12632 Update PHI nodes and perform poor-mans SSA update here.
12633 (slpeel_tree_peel_loop_to_edge): Adjust.
12634
c25a0c60
RB
126352013-01-16 Richard Biener <rguenther@suse.de>
12636
12637 PR tree-optimization/54767
12638 PR tree-optimization/53465
12639 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12640 (vrp_visit_phi_node): For PHI arguments coming via backedges
12641 drop all symbolical range information.
12642 (execute_vrp): Compute backedges.
12643
04b535af
RB
126442013-01-16 Richard Biener <rguenther@suse.de>
12645
12646 * doc/install.texi: Update CLooG and ISL requirements to
12647 0.18.0 and 0.11.1.
12648
8b0a1e0b
CB
126492013-01-16 Christian Bruel <christian.bruel@st.com>
12650
12651 PR target/55301
12652 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12653 (broken_move): Handle UNSPECV_SP_SWITCH_B.
12654 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12655
126562013-01-16 DJ Delorie <dj@redhat.com>
12657
12658 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12659 (UNSPECV_SP_SWITCH_E): New.
12660 (sp_switch_1): Change to an unspec.
12661 (sp_switch_2): Change to an unspec. Don't use post-inc when we
12662 replace $r15.
12663
126642013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
12665
12666 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12667 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12668 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12669 (expand_mem_thread_fence): Ditto.
12670 (expand_mem_signal_fence): Ditto.
12671 (expand_atomic_load): Ditto.
12672 (expand_atomic_store): Ditto.
12673
0bfbca58 126742013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
12675
12676 PR rtl-optimization/55547
12677 PR rtl-optimization/53827
12678 PR debug/53671
12679 PR debug/49888
12680 * alias.c (memrefs_conflict_p): Set sizes to negative after
12681 AND adjustments.
12682
305e3ac1
JJ
126832013-01-15 Jakub Jelinek <jakub@redhat.com>
12684
12685 PR target/55940
12686 * function.c (thread_prologue_and_epilogue_insns): Always
12687 add crtl->drap_reg to set_up_by_prologue.set, even if
12688 stack_realign_drap is false.
12689
f78ac4f2
JBG
126902013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12691
12692 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12693 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12694 *call): Fix indention.
12695
a78a8cc4
TV
126962013-01-15 Tom de Vries <tom@codesourcery.com>
12697
12698 PR target/55876
12699 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12700 Update comment.
12701
0e80383f
VM
127022013-01-15 Vladimir Makarov <vmakarov@redhat.com>
12703
305e3ac1 12704 PR rtl-optimization/55153
0e80383f
VM
12705 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12706
207b5956
MJ
127072013-01-15 Martin Jambor <mjambor@suse.cz>
12708
12709 PR tree-optimization/55920
12710 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12711 accesses as grp_to_be_debug_replaced.
12712
a7818b54
JJ
127132013-01-15 Jakub Jelinek <jakub@redhat.com>
12714
12715 PR tree-optimization/55920
12716 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12717 there is non-useless type conversion needed from debug rhs to lhs,
12718 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12719
b0fe107e
JM
127202013-01-15 Joseph Myers <joseph@codesourcery.com>
12721 Mikael Pettersson <mikpe@it.uu.se>
12722
12723 PR target/43961
12724 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12725 Thumb.
12726 (ASM_OUTPUT_CASE_LABEL): Remove.
12727 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12728 * final.c (shorten_branches): Update alignment of labels before
12729 jump tables if CASE_VECTOR_SHORTEN_MODE.
12730
34ab62ee
RB
127312013-01-15 Richard Biener <rguenther@suse.de>
12732
12733 PR bootstrap/55961
12734 * system.h: Do not include gmp.h for building host tools.
12735
783a3a05
RB
127362013-01-15 Richard Biener <rguenther@suse.de>
12737
12738 PR middle-end/55882
12739 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12740 account for bitpos when computing alignment.
12741
3a579e09
VY
127422013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
12743
12744 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12745 (ix86_target_macros_internal): Likewise.
12746
12747 * config/i386/i386.c (m_CORE2I7): Removed.
12748 (m_CORE_HASWELL): New macro.
12749 (m_CORE_ALL): Likewise.
12750 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12751 (initial_ix86_arch_features): Likewise.
12752 (processor_target_table): Initializations for Core avx2.
12753 (cpu_names): New names "core-avx2".
12754 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12755 PROCESSOR_CORE_HASWELL.
12756 (ix86_issue_rate): New case.
12757 (ia32_multipass_dfa_lookahead): Likewise.
12758 (ix86_sched_init_global): Likewise.
12759
12760 * config/i386/i386.h (TARGET_HASWELL): New macro.
12761 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12762 (processor_type): New PROCESSOR_HASWELL.
12763
955f5a07
JJ
127642013-01-15 Jakub Jelinek <jakub@redhat.com>
12765
ff784829
JJ
12766 PR tree-optimization/55955
12767 * tree-vect-loop.c (vectorizable_reduction): Give up early on
12768 *SHIFT_EXPR and *ROTATE_EXPR codes.
12769
955f5a07
JJ
12770 PR tree-optimization/48766
12771 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12772 -ftrapv disable -fwrapv.
12773
aeb8b4e9
GJL
127742013-01-14 Georg-Johann Lay <avr@gjlay.de>
12775
12776 PR target/55974
12777 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12778 etc. to 1 and not to __flash.
12779 Use LL suffix for __INT24_MAX__ with -mint8.
12780 Use ULL suffix for __UINT24_MAX__ with -mint8.
12781
1c494c6a
GJL
127822013-01-14 Georg-Johann Lay <avr@gjlay.de>
12783
12784 * config/avr/avr-arch.h
12785 (struct base_arch_s): Use typedef avr_arch_t instead.
12786 (struct arch_info_s): Use typedef avr_arch_info_t instead.
12787 (struct mcu_type_s): Use typedef avr_mcu_t instead.
12788 * config/avr/avr.c: Same.
12789 * config/avr/avr-devices.c: Same.
12790 * config/avr/driver-avr.c: Same.
12791 * config/avr/gen-avr-mmcu-texi.c: Same.
12792 * config/avr/avr-mcus.def: Adjust comment.
12793
a50344cb
TB
127942013-01-14 Tejas Belagod <tejas.belagod@arm.com>
12795
88e784e6
UB
12796 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12797 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 12798
47876a2a 127992013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
12800 Andi Kleen <ak@linux.intel.com>
12801
12802 PR target/55948
12803 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12804 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12805 memmodel flag.
12806
00892272
GJL
128072013-01-14 Georg-Johann Lay <avr@gjlay.de>
12808
12809 * config/avr/avr-stdint.h: Remove trailing blanks.
12810 * config/avr/avr-log.h: Same.
12811 * config/avr/avr-arch.h: Same.
12812 * config/avr/avr-devices.c: Same.
12813 * config/avr/avr-dimode.md: Same.
12814 * config/avr/predicates.md: Same.
12815 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 12816
00892272
GJL
12817 * config/avr/avr-protos.h: Same. And:
12818 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12819 (init_cumulative_args): Rename to avr_init_cumulative_args.
12820 (expand_prologue): Rename to avr_expand_prologue.
12821 (expand_epilogue): Rename to avr_expand_epilogue.
12822 (adjust_insn_length): Rename to avr_adjust_insn_length.
12823 (notice_update_cc): Rename to avr_notice_update_cc.
12824 (final_prescan_insn): Rename to avr_final_prescan_insn.
12825 * config/avr/avr.c: Same.
12826 * config/avr/avr.h: Same.
12827 * config/avr/avr.md: Remove trailing blanks.
12828 (prologue): Use avr_expand_prologue.
12829 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12830
7bb01996
RB
128312013-01-14 Richard Biener <rguenther@suse.de>
12832
12833 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12834 verify_location, collect_subblocks): New functions.
12835 (verify_gimple_in_cfg): Verify that locations only reference
12836 BLOCKs in the functions BLOCK tree.
12837
2724573f
RB
128382013-01-14 Richard Biener <rguenther@suse.de>
12839
12840 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12841 PHI argument.
12842 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12843 unshare reference.
12844 (insert_out_of_ssa_copy_on_edge): Likewise.
12845 (rewrite_close_phi_out_of_ssa): Likewise.
12846 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12847 debug expressions.
12848 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12849 propagated constants.
12850 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12851 can not be shared.
12852
9a0bbab6
GJL
128532013-01-14 Georg-Johann Lay <avr@gjlay.de>
12854
12855 * config/avr/avr-modes.def: Add GPL copyright notice.
12856
45805f17
UB
128572013-01-13 Uros Bizjak <ubizjak@gmail.com>
12858
12859 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12860 MEMMODEL_MASK to determine memory model.
12861 (atomic_store<mode>): Ditto from operands[2].
12862 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12863
9d60be38
JJ
128642013-01-13 Jakub Jelinek <jakub@redhat.com>
12865
12866 PR fortran/55935
45805f17 12867 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
12868 (fold_gimple_assign): Don't call unshare_expr here.
12869 (fold_ctor_reference): Call unshare_expr.
12870
e7f49d92
TG
128712013-01-13 Terry Guo <terry.guo@arm.com>
12872
aaf1e810
EB
12873 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12874 * doc/fragments.texi: Document MULTILIB_REUSE.
12875 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 12876 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 12877 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
12878 (tmpmultilib4): Ditto.
12879 (multilib_reuse): New multilib argument.
12880
fbd03a27
RS
128812013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
12882
12883 * Makefile.in: Update copyright.
12884
b3681f13
TV
128852013-01-12 Tom de Vries <tom@codesourcery.com>
12886
12887 PR middle-end/55890
12888 * calls.c (expand_call): Check if arg_nr is valid.
12889
3f287e4b
MM
128902013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12891
12892 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12893 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
12894 documentation. Add missing '__' in front of
12895 __builtin_ia32_packssdw256.
3f287e4b 12896
1abcd5eb
AK
128972013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12898
12899 PR target/55719
12900 * config/s390/s390.c (s390_preferred_reload_class): Do not return
12901 NO_REGS for larl operands.
12902 (s390_reload_larl_operand): Use s390_load_address instead of
12903 emit_move_insn.
12904
980d0812
RB
129052013-01-11 Richard Biener <rguenther@suse.de>
12906
12907 * tree-cfg.c (verify_node_sharing_1): Split out from ...
12908 (verify_node_sharing): ... here.
12909 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12910
7cb9fd07
EB
129112013-01-11 Eric Botcazou <ebotcazou@adacore.com>
12912
12913 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12914 Substitute TREECHECKING.
12915 * configure: Regenerate.
12916 * Makefile.in (TREECHECKING): New.
12917
47876a2a 129182013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
12919
12920 PR tree-optimization/44061
12921 * tree-vrp.c (extract_range_basic): Compute zero as
12922 value-range for __builtin_constant_p of function parameters.
12923
d1e082c2
RS
129242013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
12925
45805f17 12926 Update copyright years.
d1e082c2 12927
f85021b0
VM
129282013-01-10 Vladimir Makarov <vmakarov@redhat.com>
12929
9d60be38 12930 PR rtl-optimization/55672
0160442c
VM
12931 * lra-eliminations.c (mark_not_eliminable): Permit addition with
12932 const to be eliminable.
f85021b0 12933
7a8b1ec4
DE
129342013-01-10 David Edelsohn <dje.gcc@gmail.com>
12935
12936 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12937 * configure: Regenerate.
12938
ad2e5b71
RB
129392013-01-10 Richard Biener <rguenther@suse.de>
12940
ddf9322d 12941 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 12942
ffc5b2bb
RB
129432013-01-10 Richard Biener <rguenther@suse.de>
12944
12945 PR bootstrap/55792
12946 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12947 locations for virtual PHI arguments.
12948 (rewrite_update_phi_arguments): Likewise.
12949
e1f674e4
JS
129502013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
12951
12952 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12953 on to assembler.
12954
a57fc743
JJ
129552013-01-10 Jakub Jelinek <jakub@redhat.com>
12956
12957 PR tree-optimization/55921
12958 * tree-complex.c (expand_complex_asm): New function.
12959 (expand_complex_operations_1): Call it for GIMPLE_ASM.
12960
0ff4390d
AK
129612013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12962
12963 PR target/55718
12964 * config/s390/s390.c (s390_symref_operand_p)
12965 (s390_loadrelative_operand_p): Merge the two functions.
12966 (s390_check_qrst_address, print_operand_address): Add parameters
12967 to s390_loadrelative_operand_p invokation.
12968 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12969 (s390_reload_larl_operand, s390_secondary_reload): Use
12970 s390_loadrelative_operand_p instead of s390_symref_operand_p.
12971 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12972
6f557e0e
MS
129732013-01-09 Mike Stump <mikestump@comcast.net>
12974
12975 * dse.c (record_store): Remove unnecessary assert.
12976
7770c9e9
JH
129772013-01-09 Jan Hubicka <jh@suse.cz>
12978
12979 PR tree-optimization/55569
12980 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12981 * cfgloop.h (scale_loop_profile): Likewise.
12982
a19b1432
JH
129832013-01-09 Jan Hubicka <jh@suse.cz>
12984
12985 PR lto/45375
ddf9322d
UB
12986 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12987 functions.
a19b1432
JH
12988 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12989
9a002da8
RS
129902013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
12991
12992 PR middle-end/55114
12993 * expr.h (maybe_emit_group_store): Declare.
12994 * expr.c (maybe_emit_group_store): New function.
12995 * builtins.c (expand_builtin_int_roundingfn): Call it.
12996 (expand_builtin_int_roundingfn_2): Likewise.
12997
511dcace
VM
129982013-01-09 Vladimir Makarov <vmakarov@redhat.com>
12999
e1f2b729 13000 PR rtl-optimization/55829
511dcace
VM
13001 * lra-constraints.c (match_reload): Add code for absent output.
13002 (curr_insn_transform): Add code for reloads of matched inputs
13003 without output.
13004
7b0fe4f4
UB
130052013-01-09 Uros Bizjak <ubizjak@gmail.com>
13006
13007 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13008 attribute of movddup insn to DF.
13009 (*vec_interleave_lowv2df): Ditto.
13010 (vec_dupv2df): Ditto.
13011
870ca331
JH
130122013-01-09 Jan Hubicka <jh@suse.cz>
13013
13014 PR tree-optimiation/55875
13015 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13016 EVERY_ITERATION parameter.
7b0fe4f4 13017 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
13018 (idx_infer_loop_bounds): Similarly here.
13019 (n_of_executions_at_most): Simplify
13020 to only test for cases where statement is dominated by the
7b0fe4f4 13021 particular bound; handle correctly the "postdominance" test.
870ca331
JH
13022 (scev_probably_wraps_p): Use max loop iterations info
13023 as a global bound first.
13024
6f575fe4 130252013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
13026 Nick Clifton <nickc@redhat.com>
13027
13028 * config/v850/v850.md (cbranchsf4): New pattern.
13029 (cstoresf4): New pattern.
13030 (cbranchdf4): New pattern.
13031 (cstoredf4): New pattern.
13032 (movsicc): Disallow floating point comparisons.
13033 (cmpsf_le_insn): Fix order of operators.
13034 (cmpsf_lt_insn): Likewise.
13035 (cmpsf_eq_insn): Likewise.
13036 (cmpdf_le_insn): Likewise.
13037 (cmpdf_lt_insn): Likewise.
13038 (cmpdf_eq_insn): Likewise.
13039 (cmpsf_ge_insn): Use LE comparison.
13040 (cmpdf_ge_insn): Likewise.
13041 (cmpsf_gt_insn): Use LT comparison.
13042 (cmpdf_gt_insn): Likewise.
13043 (cmpsf_ne_insn): Delete pattern.
13044 (cmpdf_ne_insn): Delete pattern.
13045 * config/v850/v850.c (v850_gen_float_compare): Use
13046 gen_cmpdf_eq_insn for NE comparison.
13047 (v850_float_z_comparison_operator)
13048 (v850_float_nz_comparison_operator): Move from here ...
13049 * config/v850/predicates.md: ... to here. Move GT and GE
13050 comparisons into v850_float_z_comparison_operator.
13051 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13052 Delete prototype.
13053 (v850_float_nz_comparison_operator): Likewise.
13054
f0d54148
JDA
130552013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13056
13057 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13058 with calls to gen_insvsi/gen_insvdi.
13059
8f01beca
VK
130602013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13061
13062 * config/i386/i386.c (initial_ix86_tune_features): Set up
13063 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13064
2aa579ad
JJ
130652013-01-09 Steven Bosscher <steven@gcc.gnu.org>
13066 Jakub Jelinek <jakub@redhat.com>
13067
13068 PR tree-optimization/48189
13069 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13070 If nitercst is 0, don't predict the exit edge.
13071
6edc3e32 130722013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
13073
13074 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13075 in asm_fprintf with reg_names.
13076 (aarch64_print_operand_address): Likewise.
13077 (aarch64_return_addr): Likewise.
13078 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13079
f6f94d94
JDA
130802013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13081
13082 * config/pa/pa.h (VAL_U6_BITS_P): Define.
13083 (INT_U6_BITS): Likewise.
13084 * config/pa/predicates.md (uint6_operand): New predicate.
13085 (shift5_operand, shift6_operand): Likewise.
13086 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13087 arith32_operand.
13088 (lshrdi3): Use shift6_operand.
13089 (shrpsi4, shrpdi4): New insn patterns.
13090 (extzv): Delete expander.
13091 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
13092 predicates in unamed zero extract patterns. Tighten common constraint.
13093 (extv): Delete expander.
13094 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
13095 predicates in unamed sign extract patterns. Tighten common constraint.
13096 (insv): Delete expander.
13097 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
13098 predicates in unamed insert patterns. Tighten common constraint.
13099 Change uint32_operand predicate to uint6_operand predicate in unamed
13100 DImode pattern to insert constant values of type 1...1xxxx.
13101
36b72910
JH
131022013-01-04 Jan Hubicka <jh@suse.cz>
13103
13104 PR tree-optimization/55823
7b0fe4f4
UB
13105 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13106 issue.
36b72910 13107
47876a2a 131082013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
13109 Uros Bizjak <ubizjak@gmail.com>
13110
13111 PR rtl-optimization/55845
13112 * df-problems.c (can_move_insns_across): Stop scanning at
13113 volatile_insn_p source instruction or give up if
13114 across_from .. across_to range contains any volatile_insn_p
13115 instructions.
13116
4369c11e
TB
131172013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13118
7b0fe4f4
UB
13119 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13120 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13121 Declare.
4369c11e 13122 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 13123 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 13124
aeb7e7c1
JJ
131252013-01-08 Jakub Jelinek <jakub@redhat.com>
13126
13127 PR fortran/55341
13128 * asan.c (asan_clear_shadow): New function.
13129 (asan_emit_stack_protection): Use it.
13130
a02ad1aa
TB
131312013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13132
13133 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13134 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13135 with tab instead of space.
13136
f90d87f5
NC
131372013-01-08 Nick Clifton <nickc@redhat.com>
13138
13139 * config/rl78/rl78.c (rl78_expand_prologue): Always select
13140 register bank 0 at the start of an interrupt handler.
83ffd964
NC
13141 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13142 MDBH registers.
f90d87f5 13143
385eb93d
JG
131442013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13145
13146 * config/aarch64/aarch64-simd.md
13147 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13148 (aarch64_simd_bsl): Likewise.
13149 (aarch64_vcond_internal<mode>): Likewise.
13150 (vcond<mode><mode>): Likewise.
13151 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13152 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13153
4dcd1054
JG
131542013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13155
13156 * config/aarch64/aarch64-builtins.c
13157 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13158
4267a4a6
MJ
131592013-01-08 Martin Jambor <mjambor@suse.cz>
13160
13161 PR debug/55579
13162 * tree-sra.c (analyze_access_subtree): Return true also after
13163 potentially creating a debug-only replacement.
13164
5f4e6de3
JJ
131652013-01-08 Jakub Jelinek <jakub@redhat.com>
13166
3138f224
JJ
13167 PR middle-end/55890
13168 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13169
5f4e6de3
JJ
13170 PR tree-optimization/54120
13171 * tree-vrp.c (range_fits_type_p): Don't allow
13172 src_precision < precision from signed vr to unsigned_p
13173 if vr->min or vr->max is negative.
13174 (simplify_float_conversion_using_ranges): Test can_float_p
13175 against CODE_FOR_nothing.
13176
f3ef18ff
JJ
131772013-01-08 Jakub Jelinek <jakub@redhat.com>
13178 Richard Biener <rguenther@suse.de>
13179
13180 PR middle-end/55851
13181 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13182 types instead of just INTEGER_TYPE types.
13183
25c210f9
MK
131842013-01-07 Mark Kettenis <kettenis@openbsd.org>
13185
13186 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13187 TF_SIZE): Define.
f90d87f5 13188
81826a7b
SE
131892013-01-07 Steve Ellcey <sellcey@mips.com>
13190
13191 PR target/42661
13192 * config/mips/mips.opt: Change mad to mmad to match documentation.
13193
35678514
GJL
131942013-01-07 Georg-Johann Lay <avr@gjlay.de>
13195
13196 PR target/55897
13197 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13198 .progmemx.data now.
13199
e5669488
GJL
132002013-01-07 Georg-Johann Lay <avr@gjlay.de>
13201
13202 PR target/55897
13203 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13204 (avr_addrspace_t): Add .section_name field.
13205 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13206 array size.
13207 (avr_addrspace): Same. Initialize .section_name. Remove last
13208 NULL entry. Put __memx into .progmemx.data.
13209 (progmem_section_prefix): Remove.
13210 (avr_asm_init_sections): No need to initialize progmem_section.
13211 (avr_asm_named_section): Use avr_addrspace[].section_name to get
13212 section name prefix.
13213 (avr_asm_select_section): Ditto. And use get_unnamed_section to
13214 retrieve the progmem section.
13215 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13216 boundary to run over avr_addrspace[].
13217 (avr_register_target_pragmas): Ditto.
13218
656e6f37
JJ
132192013-01-06 Jakub Jelinek <jakub@redhat.com>
13220
13221 * varasm.c (output_constant_def_contents): For asan_protect_global
13222 protected strings, adjust DECL_ALIGN if needed, before testing for
13223 anchored symbols.
13224 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13225 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13226 normal decls.
13227 (output_object_block): For asan protected decls, emit asan padding
13228 after their contents.
13229 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13230 (asan_finish_file): Test it here instead.
13231
6edc3e32
UB
132322013-01-07 Nick Clifton <nickc@redhat.com>
13233 Matthias Klose <doko@debian.org>
13234 Doug Kwan <dougkwan@google.com>
13235 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
13236
13237 PR driver/55470
13238 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13239
13240 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13241
13242 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13243
7b0fe4f4 13244 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
13245
13246 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13247
2a095093
GJL
132482013-01-07 Georg-Johann Lay <avr@gjlay.de>
13249
f3b503f4 13250 PR target/54461
2a095093
GJL
13251 * doc/install.texi (Cross-Compiler-Specific Options): Document
13252 --with-avrlibc.
13253
383f9b34
TB
132542013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13255
13256 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13257 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13258 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13259 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13260 vqmovun_high_s64): Fix source operand number and update copyright.
13261
3626621a
RB
132622013-01-07 Richard Biener <rguenther@suse.de>
13263
13264 PR middle-end/55890
13265 * gimple.h (gimple_call_builtin_p): New overload.
13266 * gimple.c (validate_call): New function.
13267 (gimple_call_builtin_p): Likewise.
13268 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13269 Use gimple_call_builtin_p.
13270 (find_func_clobbers): Likewise.
13271 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13272 (strlen_optimize_stmt): Likewise.
13273
8b2ea410
JG
132742013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13275
13276 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13277 (vld1q_dup_*): Likewise.
13278 (vld1_*): Likewise.
13279 (vld1q_*): Likewise.
13280 (vld1_lane_*): Likewise.
13281 (vld1q_lane_*): Likewise.
13282
9713d329
RB
132832013-01-07 Richard Biener <rguenther@suse.de>
13284
13285 * lto-streamer.h (LTO_minor_version): Bump to 2.
13286
3520f7cc
JG
132872013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13288
13289 * config/aarch64/aarch64-protos.h
13290 (aarch64_const_double_zero_rtx_p): Rename to...
13291 (aarch64_float_const_zero_rtx_p): ...this.
13292 (aarch64_float_const_representable_p): New.
13293 (aarch64_output_simd_mov_immediate): Likewise.
13294 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13295 move immediate case.
13296 * config/aarch64/aarch64.c
13297 (aarch64_const_double_zero_rtx_p): Rename to...
13298 (aarch64_float_const_zero_rtx_p): ...this.
13299 (aarch64_print_operand): Allow printing of new constants.
13300 (aarch64_valid_floating_const): New.
13301 (aarch64_legitimate_constant_p): Check for valid floating-point
13302 constants.
13303 (aarch64_simd_valid_immediate): Likewise.
13304 (aarch64_vect_float_const_representable_p): New.
13305 (aarch64_float_const_representable_p): Likewise.
13306 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13307 (aarch64_output_simd_mov_immediate): New.
13308 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13309 (*movdf_aarch64): Likewise.
13310 * config/aarch64/constraints.md (Ufc): New.
13311 (Y): call aarch64_float_const_zero_rtx.
13312 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13313
e167c04d
RB
133142013-01-07 Richard Biener <rguenther@suse.de>
13315
13316 PR tree-optimization/55888
13317 PR tree-optimization/55862
13318 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13319 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13320 not if it is contained therein.
13321
0139aaab
GJL
133222013-01-07 Georg-Johann Lay <avr@gjlay.de>
13323
13324 * config/avr/t-avr: Typo.
13325
4a176b23
GJL
133262013-01-07 Georg-Johann Lay <avr@gjlay.de>
13327
13328 PR55243
13329 * config/avr/t-avr: Don't automatically rebuild
13330 $(srcdir)/config/avr/t-multilib
13331 $(srcdir)/config/avr/avr-tables.opt
13332 $(srcdir)/doc/avr-mmcu.texi
13333 (avr-mcus): New phony target to build them on request.
13334 (s-avr-mlib, s-avr-mmcu-texi): Remove.
13335 * avr/avr-mcus.def: Adjust comments.
13336
c7afdc98
UB
133372013-01-07 Uros Bizjak <ubizjak@gmail.com>
13338
13339 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13340
1ab05c31
RS
133412013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13342
13343 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13344
488e3acc
RS
133452013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13346
13347 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13348
a89599d2
DE
133492013-01-05 David Edelsohn <dje.gcc@gmail.com>
13350
13351 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13352 to generate profiling.
13353 * config/rs6000/aix64.h (LIB_SPEC): Same.
13354
70f09188
AP
133552013-01-04 Andrew Pinski <apinski@cavium.com>
13356
13357 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13358 New function.
13359 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13360
918d445f
UB
133612013-01-04 Uros Bizjak <ubizjak@gmail.com>
13362
13363 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13364 unconditionally.
13365 (ix86_expand_move): Ditto.
13366 (ix86_zero_extend_to_Pmode): Ditto.
13367 (ix86_expand_call): Ditto.
13368 (ix86_expand_special_args_builtin): Ditto.
13369 (ix86_expand_builtin): Ditto.
13370
361618ec
RB
133712013-01-04 Richard Biener <rguenther@suse.de>
13372
13373 PR tree-optimization/55862
13374 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13375 translating them through PHI nodes.
13376
87eab554
MJ
133772013-01-04 Martin Jambor <mjambor@suse.cz>
13378
13379 PR tree-optimization/55755
13380 * tree-sra.c (sra_modify_assign): Do not check that an access has no
13381 children when trying to avoid producing a VIEW_CONVERT_EXPR.
13382
33879b9f
MP
133832013-01-04 Marek Polacek <polacek@redhat.com>
13384
13385 PR middle-end/55859
13386 * opts.c (default_options_optimization): Clarify error message.
13387
3068819a
RB
133882013-01-04 Richard Biener <rguenther@suse.de>
13389
13390 PR middle-end/55863
13391 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13392 reassociation.
13393
0e4ae794
JDA
133942013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13395
13396 PR target/53789
13397 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
13398 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13399 references.
0e4ae794 13400
65c88cef
RH
134012013-01-03 Richard Henderson <rth@redhat.com>
13402
13403 * config/i386/i386.c (ix86_expand_move): Always assign to op1
13404 after eliminating TLS symbols.
13405
8ac16127
MG
134062013-01-03 Marc Glisse <marc.glisse@inria.fr>
13407
13408 PR bootstrap/50167
13409 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13410 * graphite-poly.c (debug_gmp_value): Likewise.
13411
bb664f09
UB
134122013-01-03 Uros Bizjak <ubizjak@gmail.com>
13413
13414 PR target/55712
13415 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13416 selected code model, define __code_mode_small__, __code_model_medium__,
13417 __code_model_large__, __code_model_32__ or __code_model_kernel__.
13418 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13419 xchg temporary register with %k. Declare temporary register as
13420 early clobbered.
13421 [__x86_64__]: For medium and large code models, preserve %rbx register.
13422
bcf1ef00
RB
134232013-01-03 Richard Biener <rguenther@suse.de>
13424
0506634a 13425 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
13426 (dump_subscript): Adjust.
13427 (finalize_ddr_dependent): Do not dump redundant info.
13428 (analyze_siv_subscript): Adjust.
13429 (subscript_dependence_tester): Likewise.
13430 (compute_affine_dependence): Likewise.
13431
59fd17e3
RB
134322013-01-03 Richard Biener <rguenther@suse.de>
13433
13434 Revert
13435 2013-01-03 Richard Biener <rguenther@suse.de>
13436
13437 PR tree-optimization/55857
13438 * tree-vect-stmts.c (vectorizable_load): Do not setup
13439 re-alignment for invariant loads.
13440
13441 2013-01-02 Richard Biener <rguenther@suse.de>
13442
13443 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 13444 invariant load do not generate a vector load from the scalar location.
59fd17e3 13445
595c2679
RB
134462013-01-03 Richard Biener <rguenther@suse.de>
13447
13448 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13449 for not vectorizing.
13450 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13451 not build INDIRECT_REFs, call get_name once only.
13452 (vect_create_data_ref_ptr): Likewise. Dump base object kind
13453 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13454
90bb7d7a
RB
134552013-01-03 Richard Biener <rguenther@suse.de>
13456
13457 PR tree-optimization/55857
13458 * tree-vect-stmts.c (vectorizable_load): Do not setup
13459 re-alignment for invariant loads.
13460
f09b77ca
RB
134612013-01-03 Richard Biener <rguenther@suse.de>
13462
13463 PR lto/55848
13464 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13465 prefer a built-in decl.
13466
3461a16e
JJ
134672013-01-03 Jakub Jelinek <jakub@redhat.com>
13468
df8e2b4f
JJ
13469 * gcc.c (process_command): Update copyright notice dates.
13470 * gcov.c (print_version): Likewise.
13471 * gcov-dump.c (print_version): Likewise.
13472
3461a16e
JJ
13473 PR rtl-optimization/55838
13474 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13475 iv0.step, iv1.step and step.
13476
8b5546d6
JJ
134772013-01-03 Jakub Jelinek <jakub@redhat.com>
13478 Marc Glisse <marc.glisse@inria.fr>
13479
13480 PR tree-optimization/55832
13481 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13482 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13483 integer_{one,zero}_node.
13484
8ab1d2e9
JJ
134852013-01-03 Jakub Jelinek <jakub@redhat.com>
13486
13487 PR debug/54402
13488 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13489 * var-tracking.c (reverse_op): Don't add reverse ops to
13490 VALUEs that have already
0506634a 13491 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 13492
5b9ad1d4
GP
134932013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
13494
13495 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13496
e25a6711
TJ
134972013-01-02 Teresa Johnson <tejohnson@google.com>
13498
13499 * dumpfile.c (dump_loc): Print filename with location.
13500 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13501 new location_t parameter to emit complete unroll message with
13502 new dump framework.
13503 (canonicalize_loop_induction_variables): Compute loops location
13504 and pass to try_unroll_loop_completely.
13505 * loop-unroll.c (report_unroll_peel): New function.
13506 (peel_loops_completely): Use new dump format with location
13507 for main dumpfile message, and invoke report_unroll_peel on success.
13508 (decide_unrolling_and_peeling): Ditto.
13509 (decide_peel_once_rolling): Remove old dumpfile message subsumed
13510 by report_unroll_peel.
13511 (decide_peel_completely): Ditto.
13512 (decide_unroll_constant_iterations): Ditto.
13513 (decide_unroll_runtime_iterations): Ditto.
13514 (decide_peel_simple): Ditto.
13515 (decide_unroll_stupid): Ditto.
13516 * cfgloop.c (get_loop_location): New function.
13517 * cfgloop.h (get_loop_location): Declare.
13518
77878621
ST
135192013-01-02 Sriraman Tallam <tmsriram@google.com>
13520
13521 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13522 NULL.
13523
9e65d03e
JDA
135242013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13525
13526 PR middle-end/55198
13527 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13528 BLKmode objects when EXPAND_MEMORY is specified.
13529
6a7da30f
ST
135302013-01-02 Sriraman Tallam <tmsriram@google.com>
13531
13532 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13533 in loop predicate.
13534 (fold_builtin_cpu): Do not share cpu model decls across statements.
13535
e78167f2
JM
135362013-01-02 Jason Merrill <jason@redhat.com>
13537
13538 PR c++/55804
13539 * tree.c (build_array_type_1): Revert earlier change.
13540
8c075fb4
YZ
135412013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
13542
13543 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13544 "cortex-a57".
13545 * config/aarch64/aarch64-tune.md: Re-generate.
13546
0682ed3e
RB
135472013-01-02 Richard Biener <rguenther@suse.de>
13548
13549 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 13550 invariant load do not generate a vector load from the scalar location.
0682ed3e 13551
b8f6a302
RB
135522013-01-02 Richard Biener <rguenther@suse.de>
13553
13554 PR bootstrap/55784
13555 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13556 * configure: Regenerate.
13557
04b80dbb
RS
135582013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13559
13560 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13561 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13562 (expand_builtin_int_roundingfn_2): Keep the original target around
13563 for the fallback case.
13564
635b0b0c
RS
135652013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13566
13567 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13568 to be clear for sign changes.
13569
42d57399
JH
135702013-01-01 Jan Hubicka <jh@suse.cz>
13571
13572 * ipa-inline-analysis.c: Fix formatting.
13573
5bb6669d
JJ
135742013-01-01 Jakub Jelinek <jakub@redhat.com>
13575
13576 PR tree-optimization/55831
13577 * tree-vect-loop.c (get_initial_def_for_induction): Use
13578 gsi_after_labels instead of gsi_start_bb.
ad41bd84 13579\f
86a2db33 13580Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
13581
13582Copying and distribution of this file, with or without modification,
13583are permitted in any medium without royalty provided the copyright
13584notice and this notice are preserved.