]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
s390.c: Rename UNSPEC_CCU_TO_INT to UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
5a3fe9b6
AK
12013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2
3 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
4 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
5 (struct machine_function): Add tbegin_p.
6 (s390_canonicalize_comparison): Fold CC mode compares to
7 conditional jump if possible.
8 (s390_emit_jump): Return the emitted jump.
9 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
10 Handle CCRAWmode compares.
11 (s390_option_override): Default to -mhtm if available.
12 (s390_reg_clobbered_rtx): Handle floating point regs as well.
13 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
14 FPRs instead of df_regs_ever_live_p.
15 (s390_optimize_nonescaping_tx): New function.
16 (s390_init_frame_layout): Extend clobbered_regs array to cover
17 FPRs as well.
18 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
19 (s390_expand_tbegin): New function.
20 (enum s390_builtin): New enum definition.
21 (code_for_builtin): New array definition.
22 (s390_init_builtins): New function.
23 (s390_expand_builtin): New function.
24 (TARGET_INIT_BUILTINS): Define.
25 (TARGET_EXPAND_BUILTIN): Define.
26 * common/config/s390/s390-common.c (processor_flags_table): Add
27 PF_TX.
28 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
29 (s390_alc_comparison): Likewise.
30 * config/s390/s390-modes.def: Add CCRAWmode.
31 * config/s390/s390.h (processor_flags): Add PF_TX.
32 (TARGET_CPU_HTM): Define macro.
33 (TARGET_HTM): Define macro.
34 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
35 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
36 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
37 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
38 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
39 values.
40 (TBEGIN_MASK, TBEGINC_MASK): New constants.
41 ("*cc_to_int"): Move up.
42 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
43 constants other than 0.
44 ("*ccraw_to_int"): New insn and splitter definition.
45 ("tbegin", "tbegin_nofloat", "tbegin_retry")
46 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
47 ("tx_assist"): New expander.
48 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
49 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
50 * config/s390/s390.opt: Add -mhtm option.
51 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
52 * config/s390/htmxlintrin.h: New file.
53 * config/s390/htmintrin.h: New file.
54 * config/s390/s390intrin.h: New file.
55 * doc/extend.texi: Document htm builtins.
56 * config.gcc: Add the new header files to extra_headers.
57
9e216629
TS
582013-06-26 Thomas Schwinge <thomas@codesourcery.com>
59
60 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
61 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET):
62 Undefine.
63
fd8c65e7
MM
642013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
65 Pat Haugen <pthaugen@us.ibm.com>
66 Peter Bergner <bergner@vnet.ibm.com>
67
68 * config/rs6000/power8.md: New.
69 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
70 setting for power8 entry.
71 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
72 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
73 test for Power4/Power5 only.
74 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
75 support.
76 (force_new_group): Adjust comment.
77 * config/rs6000/rs6000.md: Include power8.md.
78
b24a2ce5
GY
792013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
80
81 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
82 * config/arm/arm-protos.h (arm_max_conditional_execute): New
83 declaration.
84 (tune_params): Update comment.
85 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
86 (arm_max_conditional_execute): New function.
87 (thumb2_final_prescan_insn): Use max_insn_skipped and
88 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
89
f6fdeb62
JJ
902013-06-25 Jakub Jelinek <jakub@redhat.com>
91
92 PR tree-optimization/57705
93 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
94 SSA_NAME step, provided that it is not defined inside the loop.
95 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested
96 loop.
97 (get_initial_def_for_induction): Handle SSA_NAME IV step.
98
c13bc3d9
MJ
992013-06-25 Martin Jambor <mjambor@suse.cz>
100
101 PR middle-end/57670
102 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
103 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
104 calls in the dump.
105 (ipa_note_param_call): Initialize member_ptr flag.
106 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
107 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
108 (ipa_write_indirect_edge_info): Stream member_ptr flag.
109 (ipa_read_indirect_edge_info): Likewise.
110
8a845901
RB
1112013-06-25 Richard Biener <rguenther@suse.de>
112
113 PR middle-end/56977
114 * passes.c (init_optimization_passes): Move pass_fold_builtins
115 and pass_dce earlier with -Og.
116
33be0bec
EB
1172013-06-25 Eric Botcazou <ebotcazou@adacore.com>
118
119 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
120 <BIT_FIELD_REF>: Remove trailing TAB.
121 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
122 remove blank line.
123
5fe8e757
MJ
1242013-06-24 Martin Jambor <mjambor@suse.cz>
125
126 PR tree-optimization/57358
127 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
128 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
129 (ipa_analyze_params_uses): Generate pessimistic info when true.
130
44a60244
MJ
1312013-06-24 Martin Jambor <mjambor@suse.cz>
132
133 PR tree-optimization/57539
134 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
135 global.inlined_to of the new node to it. All callers changed.
136 * ipa-inline-transform.c (clone_inlined_nodes): New variable
137 inlining_into, pass it to cgraph_clone_node.
138 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
139 ipa_free_edge_args_substructures.
140 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
141 rdesc linked list. Do not assert rdesc edges have inlined caller.
142 Assert we have found an rdesc in the rdesc list.
143
7c5848b8
RB
1442013-06-24 Richard Biener <rguenther@suse.de>
145
146 * pointer-set.h (struct pointer_set_t): Move here from
147 pointer-set.c.
148 (pointer_set_lookup): Declare.
149 (class pointer_map): New template class implementing a
150 generic pointer to T map.
151 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
152 pointer_map<T>::contains, pointer_map<T>::insert,
153 pointer_map<T>::traverse): New functions.
154 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
155 (pointer_set_lookup): New function.
156 (pointer_set_contains): Use pointer_set_lookup.
157 (pointer_set_insert): Likewise.
158 (insert_aux): Remove.
159 (struct pointer_map_t): Embed a pointer_set_t.
160 (pointer_map_create): Adjust.
161 (pointer_map_destroy): Likewise.
162 (pointer_map_contains): Likewise.
163 (pointer_map_insert): Likewise.
164 (pointer_map_traverse): Likewise.
165 * tree-streamer.h (struct streamer_tree_cache_d): Use a
166 pointer_map<unsigned> instead of a pointer_map_t.
167 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
168 (streamer_tree_cache_lookup): Likewise.
169 (streamer_tree_cache_create): Likewise.
170 (streamer_tree_cache_delete): Likewise.
171 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
172 pointer_map<unsigned> instead of a pointer_map_t.
173 (lto_init_tree_ref_encoder): Adjust.
174 (lto_destroy_tree_ref_encoder): Likewise.
175 * lto-section-out.c (lto_output_decl_index): Likewise.
176 (lto_record_function_out_decl_state): Likewise.
177 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
178
3dbc97a9
RB
1792013-06-24 Richard Biener <rguenther@suse.de>
180
181 PR tree-optimization/57488
182 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
183
8345965a
AM
1842013-06-24 Alan Modra <amodra@gmail.com>
185
186 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
187 (gen_easy_altivec_constant): Likewise.
188 * config/rs6000/predicates.md (easy_vector_constant_add_self,
189 easy_vector_constant_msb): Likewise.
190
b7df379f
JJ
1912013-06-23 Jakub Jelinek <jakub@redhat.com>
192
193 PR target/57688
194 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
195 add missing return true.
196
0bcf9a09
OE
1972013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
198
199 PR target/52483
200 * config/sh/predicates.md (general_extend_operand): Invoke
201 general_movsrc_operand for memory operands.
202 (general_movsrc_operand): Allow reg+reg addressing, do not use
203 general_operand for memory operands.
204
97db2bf7
ST
2052013-06-23 Sriraman Tallam <tmsriram@google.com>
206
207 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
208 when current target options does not apply.
209 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
210 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
211 * config/i386/bmiintrin.h: Pass appropriate target attributes to header.
212 * config/i386/mmintrin.h: Ditto.
213 * config/i386/nmmintrin.h: Ditto.
214 * config/i386/avx2intrin.h: Ditto.
215 * config/i386/fxsrintrin.h: Ditto.
216 * config/i386/tbmintrin.h: Ditto.
217 * config/i386/xsaveintrin.h: Ditto.
218 * config/i386/f16cintrin.h: Ditto.
219 * config/i386/xtestintrin.h: Ditto.
220 * config/i386/xsaveoptintrin.h: Ditto.
221 * config/i386/bmi2intrin.h: Ditto.
222 * config/i386/lzcntintrin.h: Ditto.
223 * config/i386/smmintrin.h: Ditto.
224 * config/i386/wmmintrin.h: Ditto.
225 * config/i386/x86intrin.h: Remove all header include guards.
226 * config/i386/prfchwintrin.h: Ditto.
227 * config/i386/pmmintrin.h: Ditto.
228 * config/i386/tmmintrin.h: Ditto.
229 * config/i386/xmmintrin.h: Ditto.
230 * config/i386/popcntintrin.h: Ditto.
231 * config/i386/rdseedintrin.h: Ditto.
232 * config/i386/ammintrin.h: Ditto.
233 * config/i386/emmintrin.h: Ditto.
234 * config/i386/immintrin.h: Remove all header include guards.
235 * config/i386/fma4intrin.h: Ditto.
236 * config/i386/lwpintrin.h: Ditto.
237 * config/i386/xopintrin.h: Ditto.
238 * config/i386/ia32intrin.h: Ditto.
239 * config/i386/avxintrin.h: Ditto.
240 * config/i386/rtmintrin.h: Ditto.
241 * config/i386/fmaintrin.h: Ditto.
242 * config/i386/mm3dnow.h: Ditto.
243
495e6879
ST
2442013-06-22 Sriraman Tallam <tmsriram@google.com>
245
246 * common/config/i386/i386-common.c: Handle LZCNT.
247
11e8f687
AK
2482013-06-22 Andi Kleen <ak@linux.intel.com>
249
250 * doc/extend.texi: Use __atomic_store_n instead of
251 __atomic_store in HLE example.
252
664dd721
OE
2532013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
254
255 * config/sh/sh.c: Remove <cstdlib> workaround.
256
927f908b
AK
2572013-06-21 Andi Kleen <ak@linux.intel.com>
258
259 * doc/extend.texi: Dont use __atomic_clear in HLE
260 example. Fix typo.
261
cca410b6
AK
2622013-06-21 Andi Kleen <ak@linux.intel.com>
263
264 * doc/extend.texi: Document that __atomic_clear and
265 __atomic_test_and_set should only be used with bool.
266
d84db1ed
JH
2672013-06-20 Jan Hubicka <jh@suse.cz>
268
269 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
270 types_same_for_odr.
271 * tree.c (decls_same_for_odr): New function.
272 (same_for_edr): New function.
273 (types_same_for_odr): New function.
274 (get_binfo_at_offset): Use it.
275 * tree.h (types_same_for_odr): Declare.
276
664dd721 2772013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
278 Jason Merrill <jason@redhat.com>
279
280 * system.h: Include <cstdlib> as well as <stdlib.h>.
281
49b4ff63
UB
2822013-06-20 Uros Bizjak <ubizjak@gmail.com>
283
284 PR target/57655
285 * config/i386/i386.c (construct_container): Report error if
286 long double is used with disabled x87 float returns.
287
7a89ad00
JH
2882013-06-20 Jan Hubicka <jh@suse.cz>
289
290 * lto-cgraph.c (input_symtab): Do not set cgraph state.
291
bd280792
JR
2922013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
293
294 PR rtl-optimization/57425
295 PR rtl-optimization/57569
296 * alias.c (write_dependence_p): Remove parameters mem_mode and
297 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
298 Changed all callers.
299 (canon_anti_dependence): Get comments and semantics in sync.
300 Add parameter mem_canonicalized. Changed all callers.
301 * rtl.h (canon_anti_dependence): Update prototype.
302
d16e9a99
RB
3032013-06-20 Richard Biener <rguenther@suse.de>
304
305 * data-streamer-in.c (streamer_read_uhwi): Optimize single
306 byte case, inline streamer_read_uchar and defer section
307 overrun check.
308
c3a9b91b
RB
3092013-06-20 Richard Biener <rguenther@suse.de>
310
311 PR tree-optimization/57584
312 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
313 SSA names into the expanded expression that take part in
314 abnormal coalescing.
315
fc8a650e
SS
3162013-06-19 <singhai@google.com>
317
318 * gcov.c (print_usage): Handle new option.
319 (process_args): Ditto.
320 (get_gcov_intermediate_filename): New function.
321 (output_intermediate_file): New function.
322 (output_gcov_file): New function
323 (generate_results): Handle new option.
324 (release_function): Relase demangled name.
325 (read_graph_file): Handle demangled name.
326 (output_lines): Ditto.
327 * doc/gcov.texi: Document gcov intermediate format.
328
11f5b71a
VM
3292013-06-19 Vladimir Makarov <vmakarov@redhat.com>
330
331 PR bootstrap/57604
332 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
333 (lra_emit_add): Use the functions. Add comment about Y as an
334 address segment.
335
e1f9340b
DE
3362013-06-19 David Edelsohn <dje.gcc@gmail.com>
337
338 PR driver/57652
339 * collect2.c (collect_atexit): New.
340 (collect_exit): Delete.
341 (main): Register collect_atexit with atexit.
342 (collect_wait): Change collect_exit to exit.
343 (do_wait): Same.
344 * collect2.h (collect_exit): Delete.
345 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
346
e3f9e0ac
WM
3472013-06-19 Wei Mi <wmi@google.com>
348
349 PR rtl-optimization/57518
350 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
351 if regno is used in paradoxical subreg.
352 (update_equiv_regs): Check pdx_subregs[regno] before
353 set a reg to be equivalent with a mem.
354
a09f1a76
MK
3552013-06-19 Matthias Klose <doko@ubuntu.com>
356
357 PR driver/57651
358 * file-find.h (find_a_file): Add a mode parameter.
359 * file-find.c (find_a_file): Likewise.
360 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
361 with X_OK for the executables.
362 * collect2.c (main): Call find_a_file with X_OK.
363
7d18b0ad
SE
3642013-06-19 Steve Ellcey <sellcey@mips.com>
365
366 PR target/56942
367 * config/mips/mips.md (casesi_internal_mips16_<mode>):
368 Use NEXT_INSN instead of next_real_insn.
369
6a6dac52
JH
3702013-06-19 Jan Hubicka <jh@suse.cz>
371
372 * cgraph.h (const_value_known_p): Replace by ...
373 (ctor_for_folding): .. this one.
374 * cgraphunit.c (process_function_and_variable_attributes): Use it.
375 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
376 * expr.c (expand_expr_real_1): Likewise.
377 (string_constant): Likewise.
378 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
379 * ipa.c (process_references): Likewise.
380 (symtab_remove_unreachable_nodes): Likewise.
381 * ipa-inline-analysis.c (param_change_prob): Likewise.
382 * gimple-fold.c (canonicalize_constructor_val): Likewise.
383 (get_base_constructor): Likwise.
384 * varpool.c (varpool_remove_node): Likewise.
385 (varpool_remove_initializer): LIkewise.
386 (dump_varpool_node): LIkwise.
387 (const_value_known_p): Rewrite to ...
388 (ctor_for_folding): ... this one.
389
216c12ab
JJ
3902013-06-19 Jakub Jelinek <jakub@redhat.com>
391
392 PR driver/57651
393 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
394 PERSONALITY in $PATH derived prefixes.
395
d53e2f99
JL
3962013-06-19 Jeff Law <law@redhat.com>
397
ecdbf306
JL
398 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
399 in comment.
400
d53e2f99
JL
401 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
402 (simplify_bitwise_binary): Use it to simpify certain binary ops on
403 booleans.
404
89e7fc04
SN
4052013-06-19 Sofiane Naci <sofiane.naci@arm.com>
406
407 * config/arm/vfp.md: Move VFP instruction classification documentation
408 to ...
409 * config/arm/arm.md: ... here. Update instruction classification
410 documentation.
411
5e7f6aaa
RE
4122013-06-19 Richard Earnshaw <rearnsha@arm.com>
413
414 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
415 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
416 pattern. Use more efficient sequences on ARMv5 and Thumb2.
417
5fdc1e5d
SB
4182013-06-19 Steven Bosscher <steven@gcc.gnu.org>
419
420 PR target/57609
421 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
422 with NEXT_INSN. Use tablejump_p to check for jump table data
423 insns.
424
e952afba
PC
4252013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
426
427 PR c++/56544
428 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
429 that now in C++ the value is correct per the C++ standards.
430
3fd0303a
RB
4312013-06-19 Richard Biener <rguenther@suse.de>
432
433 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
434 for global context.
435
b04e4b08
AK
4362013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
437
438 Revert:
439 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
440
441 PR target/57609
442 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
443 with next_active_insn.
444
bef8491a
ST
4452013-06-18 Sriraman Tallam <tmsriram@google.com>
446
447 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
448 functions are inlined during failures to flag an error.
449 * tree-inline.c (expand_call_inline): Allow the error to be flagged
450 in early inline pass.
22fc7d3d 451
c21b257d
L
4522013-06-18 H.J. Lu <hongjiu.lu@intel.com>
453
454 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
455 in comments.
456
33255ae3
JB
4572013-06-18 Julian Brown <julian@codesourcery.com>
458
459 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
460 Permit virtual register pre-reload if !strict.
461 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
462 change.
463 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
464 prototype.
465 * config/arm/neon.md (movmisalign<mode>): Use
466 neon_perm_struct_or_reg_operand instead of
467 neon_struct_or_register_operand.
468 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
469 neon_permissive_struct_operand instead of neon_struct_operand.
470 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
471 neon_vector_mem_operand.
472 * config/arm/predicates.md (neon_struct_operand): Adjust call to
473 neon_vector_mem_operand.
474 (neon_permissive_struct_operand): New.
475 (neon_struct_or_register_operand): Rename to...
476 (neon_perm_struct_or_reg_operand): This. Adjust call to
477 neon_vector_mem_operand.
478
d579fcda
RB
4792013-06-18 Richard Biener <rguenther@suse.de>
480
481 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
482 * lto-streamer.h: Include pointer-set.h.
483 (struct lto_decl_slot): Remove.
484 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
485 Remove next_index entry.
486 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
487 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
488 (lto_init_tree_ref_encoder): Adjust.
489 (lto_destroy_tree_ref_encoder): Likewise.
490 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
491 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
492 (lto_output_decl_index): Adjust.
493 (lto_new_out_decl_state): Likewise.
494 (lto_record_function_out_decl_state): Likewise.
495 * lto-streamer-out.c (copy_function): Likewise.
496
31ee20ba
RB
4972013-06-18 Richard Biener <rguenther@suse.de>
498
499 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
500 * cgraphunit.c: Include cfgloop.h.
501 (init_lowered_empty_function): Initialize the loop tree.
502 (assemble_thunk): Insert new BBs into loops.
503
ac0511f2
RB
5042013-06-18 Richard Biener <rguenther@suse.de>
505
506 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
507 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
508 the map from cache entry to cache index optional.
509 (streamer_tree_cache_replace_tree): Adjust accordingly.
510 (streamer_tree_cache_append): Likewise.
511 (streamer_tree_cache_delete): Likewise.
512 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
513 streamer cache map from cache entry to cache index.
514 * lto-streamer-out.c (create_output_block): Adjust.
515
09485a08
SN
5162013-06-18 Sofiane Naci <sofiane.naci@arm.com>
517
22fc7d3d
UB
518 * config/arm/arm.md (attribute "insn"): Move multiplication and
519 division attributes to...
09485a08
SN
520 (attribute "type"): ... here. Remove mult.
521 (attribute "mul32"): New attribute.
522 (attribute "mul64"): Add umaal.
523 (*arm_mulsi3): Update attributes.
524 (*arm_mulsi3_v6): Likewise.
525 (*thumb_mulsi3): Likewise.
526 (*thumb_mulsi3_v6): Likewise.
527 (*mulsi3_compare0): Likewise.
528 (*mulsi3_compare0_v6): Likewise.
529 (*mulsi_compare0_scratch): Likewise.
530 (*mulsi_compare0_scratch_v6): Likewise.
531 (*mulsi3addsi): Likewise.
532 (*mulsi3addsi_v6): Likewise.
533 (*mulsi3addsi_compare0): Likewise.
534 (*mulsi3addsi_compare0_v6): Likewise.
535 (*mulsi3addsi_compare0_scratch): Likewise.
536 (*mulsi3addsi_compare0_scratch_v6): Likewise.
537 (*mulsi3subsi): Likewise.
538 (*mulsidi3adddi): Likewise.
539 (*mulsi3addsi_v6): Likewise.
540 (*mulsidi3adddi_v6): Likewise.
541 (*mulsidi3_nov6): Likewise.
542 (*mulsidi3_v6): Likewise.
543 (*umulsidi3_nov6): Likewise.
544 (*umulsidi3_v6): Likewise.
545 (*umulsidi3adddi): Likewise.
546 (*umulsidi3adddi_v6): Likewise.
547 (*smulsi3_highpart_nov6): Likewise.
548 (*smulsi3_highpart_v6): Likewise.
549 (*umulsi3_highpart_nov6): Likewise.
550 (*umulsi3_highpart_v6): Likewise.
551 (mulhisi3): Likewise.
552 (*mulhisi3tb): Likewise.
553 (*mulhisi3bt): Likewise.
554 (*mulhisi3tt): Likewise.
555 (maddhisi4): Likewise.
556 (*maddhisi4tb): Likewise.
557 (*maddhisi4tt): Likewise.
558 (maddhidi4): Likewise.
559 (*maddhidi4tb): Likewise.
560 (*maddhidi4tt): Likewise.
561 (divsi3): Likewise.
562 (udivsi3): Likewise.
563 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
564 (thumb2_mulsi_short_compare0): Likewise.
565 (thumb2_mulsi_short_compare0_scratch): Likewise.
566 * config/arm/arm1020e.md (1020mult1): Update attribute change.
567 (1020mult2): Likewise.
568 (1020mult3): Likewise.
569 (1020mult4): Likewise.
570 (1020mult5): Likewise.
571 (1020mult6): Likewise.
22fc7d3d
UB
572 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
573 change.
09485a08
SN
574 (cortex_a15_mult64): Likewise.
575 (cortex_a15_sdiv): Likewise.
576 (cortex_a15_udiv): Likewise.
577 * config/arm/arm1026ejs.md (mult1): Update attribute change.
578 (mult2): Likewise.
579 (mult3): Likewise.
580 (mult4): Likewise.
581 (mult5): Likewise.
582 (mult6): Likewise.
583 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
584 (pj4_ir_div): Likewise.
585 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
586 (11_mult2): Likewise.
587 (11_mult3): Likewise.
588 (11_mult4): Likewise.
589 (11_mult5): Likewise.
590 (11_mult6): Likewise.
591 (11_mult7): Likewise.
592 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
593 (cortex_a8_mla): Likewise.
594 (cortex_a8_mull): Likewise.
595 (cortex_a8_smulwy): Likewise.
596 (cortex_a8_smlald): Likewise.
597 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
598 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
599 (cortex_r4_mul_3): Likewise.
600 (cortex_r4_mla_4): Likewise.
601 (cortex_r4_mla_3): Likewise.
602 (cortex_r4_smlald): Likewise.
603 (cortex_r4_mull): Likewise.
604 (cortex_r4_sdiv): Likewise.
605 (cortex_r4_udiv): Likewise.
606 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
607 (cortex_a7_idiv): Likewise.
608 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
609 (9_mult2): Likewise.
610 (9_mult3): Likewise.
611 (9_mult4): Likewise.
612 (9_mult5): Likewise.
613 (9_mult6): Likewise.
614 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
615 (cortex_a53_sdiv): Likewise.
616 (cortex_a53_udiv): Likewise.
617 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
618 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
619 (mp626_mult2): Likewise.
620 (mp626_mult3): Likewise.
621 (mp626_mult4): Likewise.
622 * config/arm/fa526.md (526_mult1): Update attribute change.
623 (526_mult2): Likewise.
624 * config/arm/arm-generic.md (mult): Update attribute change.
625 (mult_ldsched_strongarm): Likewise.
626 (mult_ldsched): Likewise.
627 (multi_cycle): Likewise.
628 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
629 * config/arm/fa606te.md (606te_mult1): Update attribute change.
630 (606te_mult2): Likewise.
631 (606te_mult3): Likewise.
632 (606te_mult4): Likewise.
633 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
634 (cortex_a9_mac16): Likewise.
635 (cortex_a9_multiply): Likewise.
636 (cortex_a9_mac): Likewise.
637 (cortex_a9_multiply_long): Likewise.
638 * config/arm/fa626te.md (626te_mult1): Update attribute change.
639 (626te_mult2): Likewise.
640 (626te_mult3): Likewise.
641 (626te_mult4): Likewise.
642
8951f345
RB
6432013-06-18 Richard Biener <rguenther@suse.de>
644
645 PR lto/57334
646 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
647
d8101d05
AK
6482013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
649
650 PR target/57609
651 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
652 with next_active_insn.
653
69eff9da
AM
6542013-06-18 Alan Modra <amodra@gmail.com>
655
656 * config/rs6000/rs6000.h (enum data_align): New.
657 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
658 (DATA_ABI_ALIGNMENT): Define.
659 (CONSTANT_ALIGNMENT): Correct comment.
660 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
661 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
662
8ed00d76
DM
6632013-06-17 David Malcolm <dmalcolm@redhat.com>
664
665 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
666 ATTRIBUTE_UNUSED marking.
667
3d33d06b
SN
6682013-06-17 Sofiane Naci <sofiane.naci@arm.com>
669
670 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
671 alternative and update.
672 (aarch64_dup_lanedi): Delete.
673 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
674 * config/aarch64/aarch64-simd-builtins.def: Update.
675
ee03e71d
RB
6762013-06-17 Richard Biener <rguenther@suse.de>
677
678 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
679 (lto_input_scc): Declare.
680 (lto_input_tree_1): Likewise.
681 (struct lto_stats_d): Add num_tree_bodies_output and
682 num_pickle_refs_output.
683 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
684 (lto_read_tree_1): Split out from ...
685 (lto_read_tree): ... this.
686 (lto_input_scc): New function.
687 (lto_input_tree_1): Split out from ...
688 (lto_input_tree): ... this. Handle LTO_tree_scc.
689 (lto_data_in_create): Create the streamer cache without hashes.
690 * lto-streamer-out.c (create_output_block): Create the streamer
691 cache with hashes when not doing WPA.
692 (lto_write_tree_1): Split out from ...
693 (lto_write_tree): ... this.
694 (get_symbol_initial_value): New function.
695 (lto_output_tree_1): Split out from ...
696 (lto_output_tree): ... this. Write trees as series of SCCs
697 using a DFS walk via DFS_write_tree.
698 (struct sccs, struct scc_entry): New types.
699 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
700 (DFS_write_tree_body): New function.
701 (DFS_write_tree): Likewise.
702 (hash_tree): Likewise.
703 (scc_entry_compare): Likewise.
704 (hash_scc): Likewise.
705 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
706 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
707 TREE_CHAIN as regular reference.
708 (streamer_read_integer_cst): Remove.
709 (streamer_get_pickled_tree): Adjust.
710 * tree-streamer-out.c (streamer_write_chain): Disable streaming
711 of DECL_EXTERNALs in BLOCK_VARS for now.
712 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
713 reference.
714 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
715 Add hash value argument and record that if hashes are recorded
716 in the cache.
717 (streamer_tree_cache_insert_1): Adjust.
718 (streamer_tree_cache_insert): Likewise.
719 (streamer_tree_cache_insert_at): Rename to ...
720 (streamer_tree_cache_replace_tree): ... this and adjust.
721 (streamer_tree_cache_append): Adjust.
722 (record_common_node): Likewise.
723 (streamer_tree_cache_create): Add argument whether to
724 record hash values together with trees.
725 (streamer_tree_cache_delete): Adjust.
726 * tree-streamer.h (struct streamer_tree_cache_d): Add
727 vector of hashes.
728 (streamer_read_integer_cst): Remove.
729 (streamer_tree_cache_insert): Adjust.
730 (streamer_tree_cache_append): Likewise.
731 (streamer_tree_cache_insert_at): Rename to ...
732 (streamer_tree_cache_replace_tree): ... this and adjust.
733 (streamer_tree_cache_create): Add argument whether to record hashes.
734 (streamer_tree_cache_get): Rename to ...
735 (streamer_tree_cache_get_tree): ... this.
736 (streamer_tree_cache_get_hash): New function.
737 * tree.c (cache_integer_cst): New function.
738 * tree.h (cache_integer_cst): Declare.
739 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
740 * lto-symtab.c (lto_varpool_replace_node): Only release
741 DECL_INITIAL of non-prevailing decls.
742 * varpool.c (varpool_remove_initializer): Do not release
743 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
744
0de86a92
JU
7452013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
746
747 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
748 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
749 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
750 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
751 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
752 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
753 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
754 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
755 instead of TARGET_64BIT.
756 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
757 Require ISA_HAS_<D>DIV.
758
74240413
RS
7592013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
760
761 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
762 (mips*-*-linux*): Move default with_llsc setting to where other
763 defaults are set.
764 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
765 with_arch block.
766 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
767 Likewise. Remove default with_tune setting. Move default float
768 setting to its own block. Handle with_llsc in the same block as above.
769
393f9fed
JR
7702013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
771
772 PR rtl-optimization/57425
773 PR rtl-optimization/57569
299a5f6a 774 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
775 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
776 Changed all callers.
777 (canon_anti_dependence): New function.
778 * cse.c (check_dependence): Use canon_anti_dependence.
779 * cselib.c (cselib_invalidate_mem): Likewise.
780 * rtl.h (canon_anti_dependence): Declare.
781
b259d352
JU
7822013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
783
784 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
785 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
786 ".set mips3" for 64-bit targets.
787
4de09b85
DC
7882013-06-15 Dehao Chen <dehao@google.com>
789
790 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
791 * gimple-low.c (gimple_check_call_matching_types): Likewise.
792 (gimple_check_call_args): Likewise.
793 * value-prof.c (check_ic_target): Likewise.
794 * ipa-inline.c (early_inliner): Likewise.
795 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
796 * cgraph.c (cgraph_create_edge_1): Likewise.
797 (cgraph_make_edge_direct): Likewise.
798
d1aa4a76
MM
7992013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
800
801 PR target/57615
802 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
803 rs6000_output_move_128bit to handle emitting quad memory
804 operations. Set attribute length to 8 bytes.
805
24244e4d
VP
8062013-06-14 Vidya Praveen <vidyapraveen@arm.com>
807
808 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
809 New pattern.
810 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
811 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
812 (aarch64_<su>mlsl<mode>): Likewise.
813
f5273574
MS
8142013-06-14 Mike Stump <mikestump@comcast.net>
815
816 * Makefile.in (TARGET_H): Add insn-codes.h.
817
ef7e7ab2
AM
8182013-06-14 Alan Modra <amodra@gmail.com>
819
820 PR middle-end/57134
821 PR middle-end/57586
822 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
823 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
824 bitfield expansion when EXPAND_MEMORY.
825 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
826
135faab6
MM
8272013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
828
829 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
830 test for clearing quad memory on 32-bit later.
831
948a1fd9
MG
8322013-06-13 Marc Glisse <marc.glisse@inria.fr>
833
834 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
835 (fold_negate_expr): Likewise.
836 (fold_real_zero_addition_p): Handle vectors.
837 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
838
0597fb9c
AM
8392013-06-14 Alan Modra <amodra@gmail.com>
840
841 * varasm.c (force_const_mem): Revert 2013-06-07 change.
842
e5b962d0
JH
8432013-06-13 Jan Hubicka <jh@suse.cz>
844
845 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
846 Local comdats are not externally visible.
847 * symtab.c (dump_symtab_base): Dump externally visible.
848 (verify_symtab_base): Verify back links in the symtab hash.
849
a8355e51
BC
8502013-06-13 Bin Cheng <bin.cheng@arm.com>
851
852 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
853 CONVERT_EXPR as equal nodes.
854
8f7e6e33
BC
8552013-06-13 Bin Cheng <bin.cheng@arm.com>
856
22fc7d3d 857 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 858
5d418483
MG
8592013-06-13 Marc Glisse <marc.glisse@inria.fr>
860
861 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
862 Generalize to complex and vector.
863 * tree.c (build_all_ones_cst): New function.
864 * tree.h (build_all_ones_cst): Declare it.
865
50751417
AM
8662013-06-13 Alan Modra <amodra@gmail.com>
867
868 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
869 * config/rs6000/rs6000.md (signbittf2): New insn.
870 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
871 (abstf2_internal, cmptf_internal2): Likewise.
872 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
873
4b02c962
MM
8742013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
875 Pat Haugen <pthaugen@us.ibm.com>
876 Peter Bergner <bergner@vnet.ibm.com>
877
878 * config/rs6000/rs6000.c (emit_load_locked): Add support for
879 power8 byte, half-word, and quad-word atomic instructions.
880 (emit_store_conditional): Likewise.
881 (rs6000_expand_atomic_compare_and_swap): Likewise.
882 (rs6000_expand_atomic_op): Likewise.
883
884 * config/rs6000/sync.md (larx): Add new modes for power8.
885 (stcx): Likewise.
886 (AINT): New mode iterator to include TImode as well as normal
887 integer modes on power8.
888 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
889 that VSX registers are not considered. Use AINT mode iterator
890 instead of INT1 to allow inclusion of quad word atomic operations
891 on power8.
892 (load_locked<mode>): Likewise.
893 (store_conditional<mode>): Likewise.
894 (atomic_compare_and_swap<mode>): Likewise.
895 (atomic_exchange<mode>): Likewise.
896 (atomic_nand<mode>): Likewise.
897 (atomic_fetch_<fetchop_name><mode>): Likewise.
898 (atomic_nand_fetch<mode>): Likewise.
899 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
900 each type.
901 (ATOMIC): On power8, add QImode, HImode modes.
902 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
903 modes that promote to SImode.
904 (load_lockedti): Convert TImode arguments to PTImode, so that we
905 get a guaranteed even/odd register pair.
906 (load_lockedpti): Likewise.
907 (store_conditionalti): Likewise.
908 (store_conditionalpti): Likewise.
909
910 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
911 atomic load/store instructions.
912 (HSI): Likewise.
913
710b6cc1
RS
9142013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
915
916 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
917 loads.
918 (insn_count): New attribute, with most cases extracted from...
919 (length): ...here. Redefine most cases in terms of insn_count.
920 (single_insn): Delete.
921 (can_delay): Use insn_count to check for single instructions.
922 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
923 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
924 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
925 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
926 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
927 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
928 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
929 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
930 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
931 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
932 rather than "length".
933 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
934 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
935 Use "insn_count" rather than "length".
936 * config/mips/mips-dsp.md
937 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
938 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
939 length attributes.
940
1951f101
MG
9412013-06-12 Marc Glisse <marc.glisse@inria.fr>
942
943 PR tree-optimization/57361
944 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
945
8b033a8a
SN
9462013-06-12 Sofiane Naci <sofiane.naci@arm.com>
947
22fc7d3d
UB
948 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
949 to split.
8b033a8a
SN
950 (aarch64_simd_combine<mode>): New instruction expansion.
951 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
952 function prototype.
953 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
954 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
955
ca0f62a8
JH
9562013-06-12 Jan Hubicka <jh@suse.cz>
957
958 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
959 decl has when in streaming stage.
960 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
961 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
962
cddd69eb
RS
9632013-06-12 Roland Stigge <stigge@antcom.de>
964
965 PR target/57578
966 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
967
bfdeda2c
JJ
9682013-06-12 Jakub Jelinek <jakub@redhat.com>
969
970 PR tree-optimization/57537
971 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
972 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
973
a4fa02d1
RB
9742013-06-12 Richard Biener <rguenther@suse.de>
975
976 * data-streamer.h (streamer_write_char_stream): CSE
977 obs->current_pointer.
978 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
979 streamer_write_char_stream manually and optimize the resulting loop.
980 (streamer_write_hwi_stream): Likewise.
981
bbf9ad07
JH
9822013-06-12 Jan Hubicka <jh@suse.cz>
983
984 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
985 * cgraph.h (varpool_create_empty_node): Declare.
986 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
987 duplicated nodes.
988 * symtab.c (symtab_unregister_node): Be lax about missin entries
989 in node hash.
990 (symtab_get_node): Update comment.
991 * varpool.c (varpool_create_empty_node): Break out from ...
992 (varpool_node_for_decl): ... here.
993 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
994
a53f90ad
EB
9952013-06-12 Eric Botcazou <ebotcazou@adacore.com>
996
997 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
998 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
999 part. Use straight-line flow at the end.
1000 <COMPONENT_REF>: Remove superfluous else.
1001 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1002
946f9306
JJ
10032013-06-12 Jakub Jelinek <jakub@redhat.com>
1004
1005 PR target/56564
1006 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1007 target hook even for !TREE_PUBLIC decls. If no resolution info
1008 is available, return false for common and external decls.
1009
a7fca6f0
KP
10102013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1011
1012 * config/rl78/constraints.md (U): New constraint.
1013 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1014 valloc attribute.
1015
c7d8f446
MM
10162013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1017
1018 PR target/57589
1019 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1020 to allow returning address to AT_PLATFORM name.
1021
08346abd
JH
10222013-06-11 Jan Hubicka <jh@suse.cz>
1023
1024 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1025 * cgraph.h (symtab_node_base): Add weakref flag.
1026 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1027 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1028 (output_weakrefs): Use weakref flag.
1029 * fold-const.c (simple_operand_p): Handle WEAK.
1030 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1031 * ipa.c (varpool_externally_visible_p): Drop weakref.
1032 (function_and_variable_visibility): Update comment; fix weakref
1033 sanity checks; do not clear DECL_WEAK on them.
1034 * lto-cgraph.c (lto_output_node): update.
1035 (lto_output_varpool_node): Update.
1036 (input_overwrite_node): Update.
1037 (input_node): Update.
1038 (input_varpool_node): Update.
1039 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1040 (lto_symtab_merge_symbols): Add sanity check.
1041 (lto_symtab_prevailing_decl): Do not special case weakrefs.
1042 * passes.c (rest_of_decl_compilation): Set static flag, too.
1043 * symtab.c (dump_symtab_base): Dump weakref.
1044 (verify_symtab_base): Sanity check weakrefs.
1045 (symtab_make_decl_local): Remove duplicated code.
1046 (symtab_alias_ultimate_target): Simplify.
1047 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 1048
d9af3652
DD
10492013-06-11 DJ Delorie <dj@redhat.com>
1050
1051 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1052 (rl78_unwind_word_mode): New.
1053
ffa66012
DM
10542013-06-11 David Malcolm <dmalcolm@redhat.com>
1055
1056 * final.c (debug_prefix_maps): Make static.
1057
783f2d35
DM
10582013-06-11 David Malcolm <dmalcolm@redhat.com>
1059
1060 * function.c (initial_trampoline): Remove stray copy.
1061
7af26def
SN
10622013-06-11 Sofiane Naci <sofiane.naci@arm.com>
1063
1064 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1065
97756c0e
MJ
10662013-06-11 Martin Jambor <mjambor@suse.cz>
1067
1068 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1069 within bounds at the beginning of the function.
1070
2c7b8bf6
AM
10712013-06-11 Alan Modra <amodra@gmail.com>
1072
1073 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
1074 reporting.
1075 (get_named_section): Don't NULL !DECL_P decl.
1076
77cea46e
IZ
10772013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
1078
1079 * doc/invoke.texi (core-avx2): Document.
1080 (slm): Likewise.
1081 (atom): Updated with MOVBE.
1082
888f0920
RB
10832013-06-11 Richard Biener <rguenther@suse.de>
1084
22fc7d3d 1085 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 1086
6b438d58
AB
10872013-06-11 Anton Blanchard <anton@samba.org>
1088
1089 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1090 correct shift value in little-endian mode.
1091
3bc66938
JJ
10922013-06-11 Jakub Jelinek <jakub@redhat.com>
1093
1094 PR target/56564
1095 * varasm.c (get_variable_align): Move #endif to the right place.
1096
a5dc7f88
CC
10972013-06-10 Cary Coutant <ccoutant@google.com>
1098
1099 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1100 for hash so that hash table traversal order is deterministic.
1101
19be72ab
MM
11022013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1103 Pat Haugen <pthaugen@us.ibm.com>
1104 Peter Bergner <bergner@vnet.ibm.com>
1105
1106 * config/rs6000/vector.md (GPR move splitter): Do not split moves
1107 of vectors in GPRS if they are direct moves or quad word load or
1108 store moves.
1109
1110 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1111 declaration.
1112 (direct_move_p): Likewise.
1113 (quad_load_store_p): Likewise.
1114
1115 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1116 classes into bins based on the physical register type.
1117 (reg_class_to_reg_type): Likewise.
1118 (IS_STD_REG_TYPE): Likewise.
1119 (IS_FP_VECT_REG_TYPE): Likewise.
1120 (reload_fpr_gpr): Arrays to determine what insn to use if we can
1121 use direct move instructions.
1122 (reload_gpr_vsx): Likewise.
1123 (reload_vsx_gpr): Likewise.
1124 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1125 information that is a simplification of register classes. Also
1126 precalculate direct move reload helpers.
1127 (direct_move_p): New function to return true if the operation can
1128 be done as a direct move instruciton.
1129 (quad_load_store_p): New function to return true if the operation
1130 is a quad memory operation.
1131 (rs6000_legitimize_address): If quad memory, only allow register
1132 indirect for TImode addresses.
1133 (rs6000_legitimate_address_p): Likewise.
1134 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1135 (rs6000_reload_register_type): Likewise.
1136 (register_to_reg_type): Return register type.
1137 (rs6000_secondary_reload_simple_move): New helper function for
1138 secondary reload and secondary memory needed to identify anything
1139 that is a simple move, and does not need reloading.
1140 (rs6000_secondary_reload_direct_move): New helper function for
1141 secondary reload to identify cases that can be done with several
1142 instructions via the direct move instructions.
1143 (rs6000_secondary_reload_move): New helper function for secondary
1144 reload to identify moves between register types that can be done.
1145 (rs6000_secondary_reload): Add support for quad memory operations
1146 and for direct move.
1147 (rs6000_secondary_memory_needed): Likewise.
1148 (rs6000_debug_secondary_memory_needed): Change argument names.
1149 (rs6000_output_move_128bit): New function to return the move to
1150 use for 128-bit moves, including knowing about the various
1151 limitations of quad memory operations.
1152
1153 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1154 memory operations. call rs6000_output_move_128bit for the actual
1155 instruciton(s) to generate.
1156 (vsx_movti_64bit): Likewise.
1157
1158 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1159 (UNSPEC_P8V_MTVSRWZ): Likewise.
1160 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1161 (UNSPEC_P8V_MTVSRD): Likewise.
1162 (UNSPEC_P8V_XXPERMDI): Likewise.
1163 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1164 (UNSPEC_FUSION_GPR): Likewise.
1165 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 1166 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
1167 (f32_sv): Likewise.
1168 (f32_dm): Likewise.
1169 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1170 loads and direct move instructions.
1171 (zero_extendsidi2_lfiwzx): Likewise.
1172 (extendsidi2_lfiwax): Likewise.
1173 (extendsidi2_nocell): Likewise.
1174 (floatsi<mode>2_lfiwax): Likewise.
1175 (lfiwax): Likewise.
1176 (floatunssi<mode>2_lfiwzx): Likewise.
1177 (lfiwzx): Likewise.
1178 (fix_trunc<mode>_stfiwx): Likewise.
1179 (fixuns_trunc<mode>_stfiwx): Likewise.
1180 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1181 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1182 (parity<mode>2_cmpb): Set length/type attr.
1183 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1184 for 'mr.' to fast_compare.
1185 (bpermd_<mode>): Change type attr to popcnt.
1186 (p8_fmrgow_<mode>): New insns for power8 direct move support.
1187 (p8_mtvsrwz_1): Likewise.
1188 (p8_mtvsrwz_2): Likewise.
1189 (reload_fpr_from_gpr<mode>): Likewise.
1190 (p8_mtvsrd_1): Likewise.
1191 (p8_mtvsrd_2): Likewise.
1192 (p8_xxpermdi_<mode>): Likewise.
1193 (reload_vsx_from_gpr<mode>): Likewise.
1194 (reload_vsx_from_gprsf): Likewise.
1195 (p8_mfvsrd_3_<mode>): LIkewise.
1196 (reload_gpr_from_vsx<mode>): Likewise.
1197 (reload_gpr_from_vsxsf): Likewise.
1198 (p8_mfvsrd_4_disf): Likewise.
1199 (multi-word GPR splits): Do not split direct moves or quad memory
1200 operations.
1201
16876bdc
DM
12022013-06-10 David Malcolm <dmalcolm@redhat.com>
1203
1204 * tree-into-ssa.c (interesting_blocks): Make static.
1205
df8a1d28
JJ
12062013-06-10 Jakub Jelinek <jakub@redhat.com>
1207
1208 PR target/56564
1209 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1210 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1211 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1212 (get_variable_align): New function.
1213 (get_variable_section, emit_bss, emit_common,
1214 assemble_variable_contents, place_block_symbol): Use
1215 get_variable_align instead of DECL_ALIGN.
1216 (assemble_noswitch_variable): Add align argument, use it
1217 instead of DECL_ALIGN.
1218 (assemble_variable): Adjust caller. Use get_variable_align
1219 instead of DECL_ALIGN.
1220 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1221 caller.
1222 (DATA_ABI_ALIGNMENT): Define.
1223 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1224 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1225 opt is false, only return the psABI mandated alignment increase.
1226 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1227 (DATA_ABI_ALIGNMENT): ... this.
1228 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1229 (DATA_ABI_ALIGNMENT): ... this.
1230 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1231 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1232 (DATA_ABI_ALIGNMENT): ... this.
1233 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1234 * doc/tm.texi: Regenerated.
1235
57b29ca6
UB
12362013-06-10 Uros Bizjak <ubizjak@gmail.com>
1237
1238 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1239 cmp_code to construct REG_EQUAL note.
1240
3e56ed50
JJ
12412013-06-09 Jakub Jelinek <jakub@redhat.com>
1242
1243 PR target/57568
1244 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1245 that operands[2] doesn't overlap with operands[0].
1246
74fe2a1d
DE
12472013-06-09 David Edelsohn <dje.gcc@gmail.com>
1248 Jan Hubicka <jh@suse.cz>
1249
1250 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1251 hack to mark symbols as used.
1252
ed52a84e
VM
12532013-06-08 Vladimir Makarov <vmakarov@redhat.com>
1254
1255 PR rtl-optimization/57559
1256 * lra-constraints.c (process_alt_operands): Don't discourage
1257 memory with known offset for offsetable memory constraint.
1258 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1259
299316ed
EB
12602013-06-08 Eric Botcazou <ebotcazou@adacore.com>
1261
1262 * varasm.c (struct oc_local_state): Reorder fields.
1263 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1264 and adjust accordingly.
1265 (output_constructor): Reorder initialization code and adjust call to
1266 output_constructor_bitfield.
1267
88ac60d3
JH
12682013-06-07 Jan Hubicka <jh@suse.cz>
1269
1270 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1271
4cdce1a8
DM
12722013-06-07 David Malcolm <dmalcolm@redhat.com>
1273
1274 * tree-object-size.c (unknown): Make const.
1275
b5e0425c
AK
12762013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1277
1278 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1279 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1280 for last alternative in the cpu_facility attribute.
1281
79678d04
KT
12822013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1283
1284 PR target/56315
1285 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1286 (xordi3): Change operand 2 constraint to arm_xordi_operand.
1287 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1288 * config/arm/constraints.md (Dg): New constraint.
1289 * config/arm/neon.md (xordi3_neon): Remove.
1290 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1291 * config/arm/predicates.md (arm_xordi_operand): New predicate.
1292
b31ddbdb
KT
12932013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1294
1295 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1296 Clean up alternatives.
1297
8f90b7d4
AM
12982013-06-07 Alan Modra <amodra@gmail.com>
1299
1300 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1301 va_list_gpr_size.
1302
961ce119
AM
13032013-06-07 Alan Modra <amodra@gmail.com>
1304
1305 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1306
33e49835
KT
13072013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1308
1309 * config/arm/constraints.md (Df): New constraint.
1310 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1311 Correct length attribute for last two alternatives.
1312
acd17ae6
AM
13132013-06-07 Alan Modra <amodra@gmail.com>
1314
1315 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1316 override user -mfp-in-toc.
1317 (offsettable_ok_by_alignment): Consider just the current access
1318 rather than the whole object, unless BLKmode. Handle
1319 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1320 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1321 for -mcmodel=medium.
1322 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1323 override user -mfp-in-toc or -msum-in-toc. Default to
1324 -mno-fp-in-toc for -mcmodel=medium.
1325
73310b0e
DD
13262013-06-06 DJ Delorie <dj@redhat.com>
1327
1328 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1329 TARGET_VALID_POINTER_MODE.
1330
0bd62dca
MM
13312013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1332 Pat Haugen <pthaugen@us.ibm.com>
1333 Peter Bergner <bergner@vnet.ibm.com>
1334
1335 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1336 Document new power8 builtins.
1337
1338 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1339 condition code register, to allow 128-bit logical operations to be
1340 done in the VSX or GPR registers.
1341 (nor<mode>3): Use the canonical form for nor.
1342 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1343 vclz*, and vpopcnt* vector instructions.
1344 (nand<mode>3): Likewise.
1345 (orc<mode>3): Likewise.
1346 (clz<mode>2): LIkewise.
1347 (popcount<mode>2): Likewise.
1348
1349 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1350 that only the GPRs are recognized.
1351
1352 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1353 support for new power8 builtins.
1354
1355 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1356 builtin functions.
1357 (xscvdpspn): Likewise.
1358 (vclz): Likewise.
1359 (vclzb): Likewise.
1360 (vclzh): Likewise.
1361 (vclzw): Likewise.
1362 (vclzd): Likewise.
1363 (vpopcnt): Likewise.
1364 (vpopcntb): Likewise.
1365 (vpopcnth): Likewise.
1366 (vpopcntw): Likewise.
1367 (vpopcntd): Likewise.
1368 (vgbbd): Likewise.
1369 (vmrgew): Likewise.
1370 (vmrgow): Likewise.
1371 (eqv): Likewise.
1372 (eqv_v16qi3): Likewise.
1373 (eqv_v8hi3): Likewise.
1374 (eqv_v4si3): Likewise.
1375 (eqv_v2di3): Likewise.
1376 (eqv_v4sf3): Likewise.
1377 (eqv_v2df3): Likewise.
1378 (nand): Likewise.
1379 (nand_v16qi3): Likewise.
1380 (nand_v8hi3): Likewise.
1381 (nand_v4si3): Likewise.
1382 (nand_v2di3): Likewise.
1383 (nand_v4sf3): Likewise.
1384 (nand_v2df3): Likewise.
1385 (orc): Likewise.
1386 (orc_v16qi3): Likewise.
1387 (orc_v8hi3): Likewise.
1388 (orc_v4si3): Likewise.
1389 (orc_v2di3): Likewise.
1390 (orc_v4sf3): Likewise.
1391 (orc_v2df3): Likewise.
1392
1393 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1394 allow power8 quad mode in 64-bit.
1395 (rs6000_builtin_vectorized_function): Add support to vectorize
1396 ISA 2.07 count leading zeros, population count builtins.
1397 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1398 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1399 (builtin_function_type): Add vgbbd builtin function which takes an
1400 unsigned argument.
1401 (altivec_expand_vec_perm_const): Add support for new power8 merge
1402 instructions.
1403
1404 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1405 that does not include TImdoe for use with 32-bit.
1406 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1407 instructions.
1408 (UNSPEC_VSX_CVDPSPN): Likewise.
1409 (vsx_xscvdpspn): Likewise.
1410 (vsx_xscvspdpn): Likewise.
1411 (vsx_xscvdpspn_scalar): Likewise.
1412 (vsx_xscvspdpn_directmove): Likewise.
1413 (vsx_and<mode>3): Split logical operations into 32-bit and
1414 64-bit. Add support to do logical operations on TImode as well as
1415 VSX vector types. Allow logical operations to be done in either
1416 VSX registers or in general purpose registers in 64-bit mode. Add
1417 splitters if GPRs were used. For AND, add clobber of CCmode to
1418 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
1419 encoding.
1420 (vsx_and<mode>3_32bit): Likewise.
1421 (vsx_and<mode>3_64bit): Likewise.
1422 (vsx_ior<mode>3): Likewise.
1423 (vsx_ior<mode>3_32bit): Likewise.
1424 (vsx_ior<mode>3_64bit): Likewise.
1425 (vsx_xor<mode>3): Likewise.
1426 (vsx_xor<mode>3_32bit): Likewise.
1427 (vsx_xor<mode>3_64bit): Likewise.
1428 (vsx_one_cmpl<mode>2): Likewise.
1429 (vsx_one_cmpl<mode>2_32bit): Likewise.
1430 (vsx_one_cmpl<mode>2_64bit): Likewise.
1431 (vsx_nor<mode>3): Likewise.
1432 (vsx_nor<mode>3_32bit): Likewise.
1433 (vsx_nor<mode>3_64bit): Likewise.
1434 (vsx_andc<mode>3): Likewise.
1435 (vsx_andc<mode>3_32bit): Likewise.
1436 (vsx_andc<mode>3_64bit): Likewise.
1437 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1438 and xxlorc instructions.
1439 (vsx_eqv<mode>3_64bit): Likewise.
1440 (vsx_nand<mode>3_32bit): Likewise.
1441 (vsx_nand<mode>3_64bit): Likewise.
1442 (vsx_orc<mode>3_32bit): Likewise.
1443 (vsx_orc<mode>3_64bit): Likewise.
1444
1445 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1446
1447 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1448 instruction.
1449 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1450 (p8_vmrgow): Likewise.
1451 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1452 GPRs to be split under VSX.
1453 (p8v_clz<mode>2): Add power8 count leading zero support.
1454 (p8v_popcount<mode>2): Add power8 population count support.
1455 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1456 support.
1457
1458 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1459 instruction.
1460
1461 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1462 builtin functions.
1463 (vec_nand): Likewise.
1464 (vec_vclz): Likewise.
1465 (vec_vclzb): Likewise.
1466 (vec_vclzd): Likewise.
1467 (vec_vclzh): Likewise.
1468 (vec_vclzw): Likewise.
1469 (vec_vgbbd): Likewise.
1470 (vec_vmrgew): Likewise.
1471 (vec_vmrgow): Likewise.
1472 (vec_vpopcnt): Likewise.
1473 (vec_vpopcntb): Likewise.
1474 (vec_vpopcntd): Likewise.
1475 (vec_vpopcnth): Likewise.
1476 (vec_vpopcntw): Likewise.
1477
37684c46
VM
14782013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1479
1480 PR rtl-optimization/57468
1481 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1482 spilled pseudos.
1483
d89ae27c
VM
14842013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1485
1486 PR rtl-optimization/57459
1487 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1488 type when setting live regs.
1489
3597e113
VM
14902013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1491
1492 * config/s390/s390.opt (mlra): New option.
1493 * config/s390/s390.c (s390_decompose_address): Check displacement
1494 for all registers for LRA.
1495 (s390_secondary_reload): Don't used secondary reloads for LRA.
1496 (s390_lra_p): New function.
1497 (TARGET_LRA_P): Define.
1498 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1499 of attribute cpu_facility to zarch for the last alternative.
1500 (*cmpmem_short): Ditto.
1501
01037aeb
EB
15022013-06-06 Eric Botcazou <ebotcazou@adacore.com>
1503
1504 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1505 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
1506 (arm_expand_prologue): Likewise.
1507
3371a64f
TJ
15082013-06-06 Teresa Johnson <tejohnson@google.com>
1509
1510 PR c++/53743
1511 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1512 as this is now done by redirect_edge_and_branch_force.
1513 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1514 barriers, and fix interaction with splitting.
1515 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1516 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1517 reflect changes made in the routine.
1518 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1519 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1520 since this is called in cfglayout mode, and replace partition fixup
1521 with assert as that is now done by force_nonfallthru_and_redirect.
1522 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1523 already be marked with region crossing note.
1524 (insert_section_boundary_note): Make non-static, gate on flag
1525 has_bb_partition, rewrite to also check for multiple partitions.
1526 (rest_of_handle_reorder_blocks): Remove call to
1527 insert_section_boundary_note, now done later during free_cfg.
1528 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1529 * bb-reorder.h (insert_section_boundary_note): Declare.
1530 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1531 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1532 invoke insert_section_boundary_note.
1533 (try_redirect_by_replacing_jump): Remove unnecessary
1534 check for region crossing note.
1535 (fixup_partition_crossing): New function.
1536 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1537 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1538 in non-cfglayout mode.
1539 (force_nonfallthru_and_redirect): Fixup partition boundaries,
1540 remove old code that tried to do this. Emit barrier correctly
1541 when we are in cfglayout mode.
1542 (last_bb_in_partition): New function.
1543 (rtl_split_edge): Correctly fixup partition boundaries.
1544 (commit_one_edge_insertion): Remove old code that tried to
1545 fixup region crossing edge since this is now handled in
1546 split_block, and set up insertion point correctly since
1547 block may now end in a jump.
1548 (verify_hot_cold_block_grouping): Guard against checking when not in
1549 linearized RTL mode.
1550 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1551 notes.
1552 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1553 rtl_verify_flow_info, so not called in cfglayout mode.
1554 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1555 (fixup_reorder_chain): Remove old code that attempted to fixup region
1556 crossing note as this is now handled in force_nonfallthru_and_redirect.
1557 (duplicate_insn_chain): Don't duplicate switch section notes.
1558 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1559 note.
1560 * basic-block.h (emit_barrier_after_bb): Declare.
1561
66071e10
KT
15622013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1563
1564 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1565 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1566 arm_usatsihi): Adjust alternatives for arm_restrict_it.
1567
0e26bf3d
KT
15682013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1569
1570 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1571 where appropriate.
1572 * config/arm/ldmstm.md: Regenerate.
1573
12b4e7ef
KT
15742013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1575
1576 * config/arm/sync.md (atomic_loaddi_1):
1577 Disable predication for arm_restrict_it.
1578 (arm_load_exclusive<mode>): Likewise.
1579 (arm_load_exclusivesi): Likewise.
1580 (arm_load_exclusivedi): Likewise.
1581 (arm_load_acquire_exclusive<mode>): Likewise.
1582 (arm_load_acquire_exclusivesi): Likewise.
1583 (arm_load_acquire_exclusivedi): Likewise.
1584 (arm_store_exclusive<mode>): Likewise.
1585 (arm_store_exclusive<mode>): Likewise.
1586 (arm_store_release_exclusivedi): Likewise.
1587 (arm_store_release_exclusive<mode>): Likewise.
1588
15d16c8a
RB
15892013-06-06 Richard Biener <rguenther@suse.de>
1590
1591 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1592 after LTO_null.
1593 (lto_tag_is_tree_code_p): Adjust.
1594 (lto_tag_is_gimple_code_p): Likewise.
1595 (lto_gimple_code_to_tag): Likewise.
1596 (lto_tag_to_gimple_code): Likewise.
1597 (lto_tree_code_to_tag): Likewise.
1598 (lto_tag_to_tree_code): Likewise.
1599 * data-streamer.h (streamer_write_hwi_in_range): Use
1600 uhwi streaming to stream the normalized range.
1601 (streamer_read_hwi_in_range): Likewise.
1602
17a7fc37
KT
16032013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1604
1605 * config/arm/arm.md (enabled_for_depr_it): New attribute.
1606 (predicable_short_it): Likewise.
1607 (predicated): Likewise.
1608 (enabled): Handle above.
1609 (define_cond_exec): Set predicated attribute to yes.
1610
b57ca59b
MS
16112013-06-05 Mike Stump <mikestump@comcast.net>
1612
1613 * gdbinit.in (__FUNCTION__): Add.
1614
c1e183a9
UB
16152013-06-05 Uros Bizjak <ubizjak@gmail.com>
1616
1617 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1618 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1619
0378bddb
JH
16202013-06-05 Jan Hubicka <jh@suse.cz>
1621
1622 * varasm.c (mark_decl_referenced): Revert the removal until targets
1623 are fixed.
1624
8f8a2057
DE
16252013-06-05 David Edelsohn <dje.gcc@gmail.com>
1626
1627 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1628 instead of mark_decl_referenced.
1629
edb983b2
JH
16302013-06-05 Jan Hubicka <jh@suse.cz>
1631
1632 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1633 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1634 and symtab_used_from_object_file_p.
1635 (cgraph_make_node_local_1): Clear forced_by_abi.
1636 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1637 * cgraph.h (symtab_node_base): Add forced_by_abi.
1638 (decide_is_variable_needed): Remove.
1639 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1640 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1641 (decide_is_symbol_needed): ... this one; handle symbols in general;
1642 always analyze virtuals; honnor forced_by_abi.
1643 (cgraph_finalize_function): Update.
1644 (varpool_finalize_decl): Update.
1645 (symbol_defined_and_needed): Remove.
1646 (analyze_functions): Update.
1647 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1648 output_refs, input_overwrite_node): Handle forced_by_abi.
1649 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1650 (address_taken_from_non_vtable_p): ... this one.
1651 (comdat_can_be_unshared_p_1): New function.
1652 (cgraph_comdat_can_be_unshared_p): Rename to ...
1653 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1654 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1655 (function_and_variable_visibility): Clear forced_by_abi as needed.
1656 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1657 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
1658 * symtab.c (dump_symtab_base): Dump forced_by_abi.
1659 * varpool.c (decide_is_variable_needed): Remove.
1660
9912dbe5
KT
16612013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1662
1663 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1664 (arm_option_override): Override arm_restrict_it where appropriate.
1665 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1666 * config/arm/arm.opt (mrestrict-it): New command-line option.
1667 * doc/invoke.texi: Document -mrestrict-it.
1668
34c136b6
DM
16692013-06-05 David Malcolm <dmalcolm@redhat.com>
1670
1671 * tsan.c (tsan_atomic_table): Make const.
1672
a367df53
RB
16732013-06-05 Richard Biener <rguenther@suse.de>
1674
1675 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1676 index associated with the tree we are supposed to replace.
1677 * tree-streamer-out.c (pack_ts_base_value_fields): Output
1678 TREE_ASM_WRITTEN as zero for everything but SSA names.
1679
70d51a19
DM
16802013-06-05 David Malcolm <dmalcolm@redhat.com>
1681
1682 * tree-ssa-structalias.c (call_stmt_vars): Make static.
1683
b9bd2075
JH
16842013-06-04 Jan Hubicka <jh@suse.cz>
1685
1686 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1687 (input_node, input_varpool_node): Handle correctly external same
1688 body aliases.
1689 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1690 nodes at ltrans stage.
1691
aaae719d
JH
16922013-06-04 Jan Hubicka <jh@suse.cz>
1693
1694 * ipa-inline.c (update_caller_keys): Fix availability test.
1695 (update_callee_keys): Likewise.
1696 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1697 to follow ELF standard.
1698
107eea2c
JU
16992013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
1700
1701 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1702 (mips64r5900el-*-elf*): New configurations.
1703 * config/mips/mips-cpus.def (r5900): New processor.
1704 * config/mips/mips-tables.opt: Regenerate.
1705 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1706 (mips_issue_rate): Handle PROCESSOR_R5900.
1707 (mips_reorg_process_insns): Force reorder mode for the R5900.
1708 * config/mips/mips.h (TARGET_MIPS5900): Define.
1709 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1710 TARGET_MIPS5900.
1711 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1712 TARGET_MIPS5900.
1713 * config/mips/mips.md (processor): Add r5900.
1714 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1715
b7342d25
IB
17162013-06-04 Ian Bolton <ian.bolton@arm.com>
1717
1718 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1719 into function to generate MOVI instruction.
c1e183a9 1720 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
1721 (aarch64_preferred_simd_mode): Turn into wrapper.
1722 (aarch64_output_scalar_simd_mov_immediate): New function.
1723 * config/aarch64/aarch64-protos.h: Add prototype for above.
1724
81c2dfb9
IB
17252013-06-04 Ian Bolton <ian.bolton@arm.com>
1726
1727 * config/aarch64/aarch64.c (simd_immediate_info): Remove
1728 element_char member.
1729 (sizetochar): Return signed char.
1730 (aarch64_simd_valid_immediate): Remove elchar and other
1731 unnecessary variables.
1732 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1733 Calculate element_char as required.
1734 * config/aarch64/aarch64-protos.h: Update and move prototype
1735 for aarch64_output_simd_mov_immediate.
1736 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1737 Update arguments.
1738
48063b9d
IB
17392013-06-04 Ian Bolton <ian.bolton@arm.com>
1740
1741 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1742 information completed by aarch64_simd_valid_immediate.
1743 (aarch64_legitimate_constant_p): Update arguments.
1744 (aarch64_simd_valid_immediate): Work with struct rather than many
1745 pointers.
1746 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1747 (aarch64_simd_make_constant): Update arguments.
1748 (aarch64_output_simd_mov_immediate): Work with struct rather than
1749 many pointers. Output immediate directly rather than as operand.
1750 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1751 Update prototype.
1752 * config/aarch64/constraints.md (Dn): Update arguments.
1753
3ea63f60
IB
17542013-06-04 Ian Bolton <ian.bolton@arm.com>
1755
1756 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1757 longer static.
1758 (aarch64_simd_immediate_valid_for_move): Remove.
1759 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1760 (aarch64_simd_make_constant): Update call.
1761 (aarch64_output_simd_mov_immediate): Update call.
1762 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1763 Add prototype.
1764 * config/aarch64/constraints.md (Dn): Update call.
1765
d8edd899
IB
17662013-06-04 Ian Bolton <ian.bolton@arm.com>
1767
1768 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1769 return type to bool for prototype.
1770 (aarch64_legitimate_constant_p): Check for true instead of not -1.
1771 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1772 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1773
44b20bb8
CM
17742013-06-04 Catherine Moore <clm@codesourcery.com>
1775
1776 * config/mips/mips.opt (meva): New.
c1e183a9 1777 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
1778 (ASM_SPEC): Handle -meva.
1779 * doc/invoke.texi (meva): Document.
1780
52befbd8
AM
17812013-06-04 Alan Modra <amodra@gmail.com>
1782
1783 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1784 constant output.
1785
aadaf24e
KT
17862013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1787
1788 * rtl.def: Add extra fourth optional field to define_cond_exec.
1789 * gensupport.c (process_one_cond_exec): Process attributes from
1790 define_cond_exec.
1791 * doc/md.texi: Document fourth field in define_cond_exec.
1792
0cd9e9ee
EB
17932013-06-04 Eric Botcazou <ebotcazou@adacore.com>
1794
1795 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1796 out the processing order as in store_bit_field_1.
1797
cb0f665d
JH
17982013-06-04 Jan Hubicka <jh@suse.cz>
1799
1800 PR middle-end/57500
1801 * cgraphunit.c (cgraph_process_same_body_aliases): Create
1802 non-VAR_DECL node if it does not exist yet.
1803
53984b9b
RS
18042013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
1805
1806 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1807 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1808 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1809 target_cpu_default setting.
1810
5d318fd4
TJ
18112013-06-03 Teresa Johnson <tejohnson@google.com>
1812
1813 * dumpfile.c (opt_info_switch_p): Change -fopt-info
1814 default to -fopt-info=optimized instead of all.
1815 * doc/invoke.texi: Ditto.
1816 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1817 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1818 (execute_vect_slp): Emit BB vectorization success under
1819 MSG_OPTIMIZED_LOCATIONS.
1820 * tree-vect-slp.c (vect_slp_transform_bb): Change
1821 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1822 * tree-vect-loop.c (vect_transform_loop): Ditto.
1823
ec3af349
JM
18242013-06-03 Jason Merrill <jason@redhat.com>
1825
1826 PR c++/57415
1827 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1828 Use TARGET_EXPR for C++.
1829
1baf9159
JJ
18302013-06-03 Jakub Jelinek <jakub@redhat.com>
1831
1832 PR rtl-optimization/57268
0cd9e9ee 1833 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
1834 if DEBUG_INSN_P (insn).
1835
1836 Reapply
1837 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1838
1839 PR rtl-optimization/57268
1840 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1841 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1842
0f1d3965
YR
18432013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1844
1845 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1846 (ix86_avoid_lea_for_addr): Likewise.
1847 (exact_dependency_1): Likewise.
1848 (ix86_adjust_cost): Likewise.
1849 (swap_top_of_ready_list): Fix formatting and !reload_completed check
1850 removed.
1851 (do_reorder_for_imul): Fix typo, formatting and
1852 !reload_completed check removed.
1853 (ix86_sched_reorder): Fix typo and formatting.
1854 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1855 list.
1856
3bc30db4
SN
18572013-06-03 Sofiane Naci <sofiane.naci@arm.com>
1858
1859 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1860
19cc6fac
EB
18612013-06-03 Eric Botcazou <ebotcazou@adacore.com>
1862
1863 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1864 <STRING_CST>: Likewise.
1865 <VECTOR_CST>: Likewise.
1866
c68a6e08
JW
18672013-06-01 Janus Weil <janus@gcc.gnu.org>
1868 Mikael Morin <mikael@gcc.gnu.org>
1869
1870 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1871 * config.in: Regenerated.
1872 * configure: Regenerated.
1873
38e55e5c
JH
18742013-06-01 Jan Hubicka <jh@suse.cz>
1875
1876 PR middle-end/57366
1877 * cgraphunit.c (compile): When weakref is not supported,
1878 set up transparent aliases before final output pass.
1879 * varasm.c (assemble_alias): Do not try to do it here.
1880
eb51d2ff
JH
18812013-06-01 Jan Hubicka <jh@suse.cz>
1882
1883 PR middle-end/57467
1884 * passes.c (for_per_function): Skip unanalyzed functions.
1885
40a7fe1e
JH
18862013-06-01 Jan Hubicka <jh@suse.cz>
1887
1888 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1889 (lto_symtab_merge_symbols_1): ... this one.
1890 (lto_symtab_merge_cgraph_nodes): Rename to ...
1891 (lto_symtab_merge_symbols): ... this one; simplify.
1892 * cgraph.c (same_body_aliases_done): Rename to ...
1893 (cpp_implicit_aliases_done): ... this one.
1894 (cgraph_create_function_alias): Update.
1895 (cgraph_same_body_alias): Update.
c1e183a9 1896 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 1897 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 1898 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
1899 (cgraph_node): Remove same_body_alias.
1900 (varpool_node): Remove alias_of and extra_name_alias.
1901 (same_body_aliases_done): Rename to ..
1902 (cpp_implicit_aliases_done): ... this one.
1903 (symtab_alias_ultimate_target): Add default parameter.
1904 (symtab_resolve_alias): New function.
1905 (fixup_same_cpp_alias_visibility): Declare.
1906 (cgraph_function_node): Add default parameter.
1907 (cgraph_node_asm_name): Likewise.
1908 (cgraph_function_or_thunk_node): Add default parameter; do
1909 not ICE when it is NULL.
1910 (varpool_variable_node): Likewise.
1911 * tree-emutls.c (create_emultls_var): Update.
1912 (ipa_lower_emutls): Update.
1913 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1914 (cgraph_reset_node): Reset alias info.
1915 (cgraph_finalize_function): Update.
1916 (fixup_same_cpp_alias_visibility): Move to symtab.c.
1917 (analyze_function): Simplify.
1918 (cgraph_process_same_body_aliases): Simplify.
1919 (analyze_functions): Fixup same body aliases.
1920 (handle_alias_pairs): Simplify.
1921 (assemble_thunk): Update.
1922 (assemble_thunks_and_aliases): Update.
1923 (output_weakrefs): Rewrite.
1924 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1925 (lto_output_varpool_node): Likewise.
1926 (compute_ltrans_boundary): Remve assert.
1927 (get_alias_symbol): New functoin.
1928 (input_node): Rewrite alias handling.
1929 (input_varpool_node): Likewise.
1930 * ipa-pure-const.c (propagate_pure_const): Fix formating.
1931 * ipa.c (process_references): Handle weakrefs correctly.
1932 (symtab_remove_unreachable_nodes): Likewise.
1933 * trans-mem.c (get_cg_data): Update.
1934 (ipa_tm_create_version_alias): Update.
1935 (ipa_tm_execute): Update.
1936 * symtab.c (dump_symtab_base): Dump aliases.
1937 (verify_symtab_base): Verify aliases.
1938 (symtab_node_availability): New function.
1939 (symtab_alias_ultimate_target): Simplify.
1940 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1941 handle all the fixup cases.
1942 (symtab_resolve_alias): New function.
1943 * passes.c (ipa_write_summaries): Handle weakrefs.
1944 * varpool.c (varpool_analyze_node): Simplify.
1945 (assemble_aliases): Update.
1946 (varpool_create_variable_alias): Simplify.
1947 (varpool_extra_name_alias): Simplify.
1948 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1949 (lto_symtab_merge_symbols): ... this one.
1950
21759881
DT
19512013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
1952
1953 Revert
1954 PR rtl-optimization/57268
1955 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1956 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1957
daf4e940
TB
19582013-06-01 Tobias Burnus <burnus@net-b.de>
1959
1960 Partially reverted:
1961 2013-05-31 Tobias Burnus <burnus@net-b.de>
1962
1963 PR middle-end/57073
1964 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1965 further up.
1966
c359d8d0
DT
19672013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1968
1969 PR rtl-optimization/57268
1970 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1971 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1972
4172215d
EB
19732013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1974
1975 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1976 unordered comparison operators when -fno-trapping-math is in effect
1977 on the e500.
1978 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1979 and implement unordered comparison operators properly on the e500.
1980
a8c50132
EB
19812013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1982
1983 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1984 for constant scalar integers.
1985 (simplify_relational_operation_1): Likewise.
1986
44626634
SB
19872013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
1988
1989 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
1990 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
1991 Fix comment.
1992
55805e54
YR
19932013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1994 Igor Zamyatin <igor.zamyatin@intel.com>
1995
1996 Silvermont (SLM) architecture performance tuning.
1997 * config/i386/i386.h (enum ix86_tune_indices): Add
1998 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
1999 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2000
2001 * config/i386/i386.c (initial_ix86_tune_features)
2002 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2003 (ix86_lea_outperforms): Handle Silvermont tuning.
2004 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2005 call.
2006 (ix86_use_lea_for_mov): Likewise.
2007 (ix86_avoid_lea_for_addr): Likewise.
2008 (ix86_lea_for_add_ok): Likewise.
2009 (exact_dependency_1): New function.
2010 (exact_store_load_dependency): Likewise.
2011 (ix86_adjust_cost): Handle Silvermont tuning.
2012 (do_reoder_for_imul): Likewise.
2013 (swap_top_of_ready_list): New function.
2014 (ix86_sched_reorder): Changed to handle Silvermont tuning.
2015
2016 * config/i386/i386.md (peepholes that split memory operand in fp
2017 converts): New.
2018
e19c9de2
MS
20192013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2020
2021 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2022 Remove un-necessary braces.
2023
38e6c9a6
MS
20242013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2025
2026 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2027 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2028
e3530904
TB
20292013-05-31 Tobias Burnus <burnus@net-b.de>
2030
2031 PR middle-end/57073
c1e183a9 2032 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 2033
b6af05a9
KT
20342013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2035
2036 PR target/56315
2037 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2038 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2039 * config/arm/neon.md (iordi3_neon): Remove.
2040 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2041 * config/arm/predicates.md (imm_for_neon_logic_operand):
2042 Move to earlier in the file.
2043 (neon_logic_op2): Likewise.
2044 (arm_iordi_operand_neon): New predicate.
2045
f800c166
RB
20462013-05-31 Richard Biener <rguenther@suse.de>
2047
2048 PR tree-optimization/57478
2049 PR tree-optimization/57453
2050 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2051 are life as well.
2052
e571fa59
KP
20532013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2054
2055 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2056 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2057
0fa6e0ef
TB
20582013-05-30 Tobias Burnus <burnus@net-b.de>
2059 Thomas Koenig <tkoenig@gcc.gnu.org>
2060
2061 PR middle-end/57073
2062 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2063 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2064
4688ddf5
SB
20652013-05-30 Steven Bosscher <steven@gcc.gnu.org>
2066
0fa6e0ef 2067 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 2068
3b9ceb4b
VM
20692013-05-30 Vladimir Makarov <vmakarov@redhat.com>
2070
2071 * target.def (register_usage_leveling_p): New hook.
2072 * targhooks.c (default_register_usage_leveling_p): New.
2073 * targhooks.h (default_register_usage_leveling_p): New prototype.
2074 * lra-assigns.c (register_usage_leveling_p): Use the hook.
2075 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2076 * doc/tm.texi: Update.
2077 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2078
65f9e789
IB
20792013-05-30 Ian Bolton <ian.bolton@arm.com>
2080
2081 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2082 (*insv_reg<mode>): New define_insn.
2083
ca035367
JR
20842013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
2085
2086 PR rtl-optimization/57439
2087 * postreload.c (move2add_valid_value_p): Check that we have
2088 a zero subreg_regno_offset when accessing the register in
2089 the requested mode.
2090
0b871ccf
YR
20912013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2092 Igor Zamyatin <igor.zamyatin@intel.com>
2093
2094 Silvermont (SLM) architecture pipeline model, tuning and
2095 insn selection.
2096 * config.gcc: Add slm config options and target.
2097
2098 * config/i386/slm.md: New.
2099
2100 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2101
2102 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
2103 PROCESSOR_SLM.
2104 (ix86_target_macros_internal): Likewise.
2105
2106 * gcc/config/i386/i386.c (slm_cost): New cost.
2107 (m_SLM): New macro flag.
2108 (initial_ix86_tune_features): Set m_SLM.
2109 (x86_accumulate_outgoing_args): Likewise.
2110 (x86_arch_always_fancy_math_387): Likewise.
2111 (processor_target_table): Add slm cost.
2112 (cpu_names): Add slm cpu name.
2113 (x86_option_override_internal): Set SLM ISA.
2114 (ix86_issue_rate): New case PROCESSOR_SLM.
2115 (ia32_multipass_dfa_lookahead): Likewise.
2116 (fold_builtin_cpu): Add slm.
2117
2118 * config/i386/i386.h (TARGET_SLM): New target macro.
2119 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2120 (processor_type): Add PROCESSOR_SLM.
2121
2122 * config/i386/i386.md (cpu): Add new value "slm".
2123 (slm.md): Include slm.md.
2124
24d5b097
XG
21252013-05-30 Bernd Schmidt <bernds@codesourcery.com>
2126 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2127
2128 * config/arm/arm-protos.h: Add and update function protos.
2129 * config/arm/arm.c (use_simple_return_p): New added.
2130 (thumb2_expand_return): Check simple_return flag.
2131 * config/arm/arm.md: Add simple_return and conditional simple_return.
2132 * config/arm/iterators.md: Add iterator for return and simple_return.
2133
c1cccc15
ZC
21342013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2135
2136 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2137 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2138 (arm_emit_vfp_multi_reg_pop): Likewise.
2139 (thumb2_emit_ldrd_pop): Likewise.
2140 (arm_expand_epilogue): Add misc REG_CFA notes.
2141 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2142
3a4f280b
LC
21432013-05-29 Lawrence Crowl <crowl@google.com>
2144
2145 * config/arm/t-arm: Update for below.
2146
2147 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2148 Change type to hash_table. Update dependent calls and types.
2149
2150 * config/i386/t-cygming: Update for below.
2151
2152 * config/i386/t-interix: Update for below.
2153
2154 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2155 Change type to hash_table. Update dependent calls and types.
2156 (i386_find_on_wrapper_list::wrappers): Likewise.
2157
2158 * config/ia64/t-ia64: Update for below.
2159
2160 * config/ia64/ia64.c (bundle_state_table):
2161 Change type to hash_table. Update dependent calls and types.
2162
2163 * config/mips/mips.c (mips_reorg_process_insns::htab):
2164 Change type to hash_table. Update dependent calls and types.
2165
2166 * config/sol2.c (solaris_comdat_htab):
2167 Change type to hash_table. Update dependent calls and types.
2168
2169 * config/t-sol2: Update for above.
2170
1388a0e3
TJ
21712013-05-29 Teresa Johnson <tejohnson@google.com>
2172
2173 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2174 functions are not yet marked as defined.
2175
a5965b52
MM
21762013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2177 Pat Haugen <pthaugen@us.ibm.com>
2178 Peter Bergner <bergner@vnet.ibm.com>
2179
2180 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2181 instructions.
2182 (VEC_A): Likewise.
2183 (VEC_C): Likewise.
2184 (vrotl<mode>3): Likewise.
2185 (vashl<mode>3): Likewise.
2186 (vlshr<mode>3): Likewise.
2187 (vashr<mode>3): Likewise.
2188
2189 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2190 support for power8 V2DI builtins.
2191
2192 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2193 power8 V2DI builtins.
2194 (vupkhsw): Likewise.
2195 (vupklsw): Likewise.
2196 (vaddudm): Likewise.
2197 (vminsd): Likewise.
2198 (vmaxsd): Likewise.
2199 (vminud): Likewise.
2200 (vmaxud): Likewise.
2201 (vpkudum): Likewise.
2202 (vpksdss): Likewise.
2203 (vpkudus): Likewise.
2204 (vpksdus): Likewise.
2205 (vrld): Likewise.
2206 (vsld): Likewise.
2207 (vsrd): Likewise.
2208 (vsrad): Likewise.
2209 (vsubudm): Likewise.
2210 (vcmpequd): Likewise.
2211 (vcmpgtsd): Likewise.
2212 (vcmpgtud): Likewise.
2213 (vcmpequd_p): Likewise.
2214 (vcmpgtsd_p): Likewise.
2215 (vcmpgtud_p): Likewise.
2216 (vupkhsw): Likewise.
2217 (vupklsw): Likewise.
2218 (vaddudm): Likewise.
2219 (vmaxsd): Likewise.
2220 (vmaxud): Likewise.
2221 (vminsd): Likewise.
2222 (vminud): Likewise.
2223 (vpksdss): Likewise.
2224 (vpksdus): Likewise.
2225 (vpkudum): Likewise.
2226 (vpkudus): Likewise.
2227 (vrld): Likewise.
2228 (vsld): Likewise.
2229 (vsrad): Likewise.
2230 (vsrd): Likewise.
2231 (vsubudm): Likewise.
2232
2233 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2234 support for power8 V2DI instructions.
2235
2236 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2237 power8 V2DI instructions. Combine pack and unpack insns to use an
2238 iterator for each mode. Check whether a particular mode supports
2239 Altivec instructions instead of just checking TARGET_ALTIVEC.
2240 (UNSPEC_VPKUWUM): Likewise.
2241 (UNSPEC_VPKSHSS): Likewise.
2242 (UNSPEC_VPKSWSS): Likewise.
2243 (UNSPEC_VPKUHUS): Likewise.
2244 (UNSPEC_VPKSHUS): Likewise.
2245 (UNSPEC_VPKUWUS): Likewise.
2246 (UNSPEC_VPKSWUS): Likewise.
2247 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2248 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2249 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2250 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2251 (UNSPEC_VUPKHSB): Likewise.
2252 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2253 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2254 (UNSPEC_VUPKHSH): Likewise.
2255 (UNSPEC_VUPKLSB): Likewise.
2256 (UNSPEC_VUPKLSH): Likewise.
2257 (VI2): Likewise.
2258 (VI_char): Likewise.
2259 (VI_scalar): Likewise.
2260 (VI_unit): Likewise.
2261 (VP): Likewise.
2262 (VP_small): Likewise.
2263 (VP_small_lc): Likewise.
2264 (VU_char): Likewise.
2265 (add<mode>3): Likewise.
2266 (altivec_vaddcuw): Likewise.
2267 (altivec_vaddu<VI_char>s): Likewise.
2268 (altivec_vadds<VI_char>s): Likewise.
2269 (sub<mode>3): Likewise.
2270 (altivec_vsubcuw): Likewise.
2271 (altivec_vsubu<VI_char>s): Likewise.
2272 (altivec_vsubs<VI_char>s): Likewise.
2273 (altivec_vavgs<VI_char>): Likewise.
2274 (altivec_vcmpbfp): Likewise.
2275 (altivec_eq<mode>): Likewise.
2276 (altivec_gt<mode>): Likewise.
2277 (altivec_gtu<mode>): Likewise.
2278 (umax<mode>3): Likewise.
2279 (smax<mode>3): Likewise.
2280 (umin<mode>3): Likewise.
2281 (smin<mode>3): Likewise.
2282 (altivec_vpkuhum): Likewise.
2283 (altivec_vpkuwum): Likewise.
2284 (altivec_vpkshss): Likewise.
2285 (altivec_vpkswss): Likewise.
2286 (altivec_vpkuhus): Likewise.
2287 (altivec_vpkshus): Likewise.
2288 (altivec_vpkuwus): Likewise.
2289 (altivec_vpkswus): Likewise.
2290 (altivec_vpks<VI_char>ss): Likewise.
2291 (altivec_vpks<VI_char>us): Likewise.
2292 (altivec_vpku<VI_char>us): Likewise.
2293 (altivec_vpku<VI_char>um): Likewise.
2294 (altivec_vrl<VI_char>): Likewise.
2295 (altivec_vsl<VI_char>): Likewise.
2296 (altivec_vsr<VI_char>): Likewise.
2297 (altivec_vsra<VI_char>): Likewise.
2298 (altivec_vsldoi_<mode>): Likewise.
2299 (altivec_vupkhsb): Likewise.
2300 (altivec_vupkhs<VU_char>): Likewise.
2301 (altivec_vupkls<VU_char>): Likewise.
2302 (altivec_vupkhsh): Likewise.
2303 (altivec_vupklsb): Likewise.
2304 (altivec_vupklsh): Likewise.
2305 (altivec_vcmpequ<VI_char>_p): Likewise.
2306 (altivec_vcmpgts<VI_char>_p): Likewise.
2307 (altivec_vcmpgtu<VI_char>_p): Likewise.
2308 (abs<mode>2): Likewise.
2309 (vec_unpacks_hi_v16qi): Likewise.
2310 (vec_unpacks_hi_v8hi): Likewise.
2311 (vec_unpacks_lo_v16qi): Likewise.
2312 (vec_unpacks_hi_<VP_small_lc>): Likewise.
2313 (vec_unpacks_lo_v8hi): Likewise.
2314 (vec_unpacks_lo_<VP_small_lc>): Likewise.
2315 (vec_pack_trunc_v8h): Likewise.
2316 (vec_pack_trunc_v4si): Likewise.
2317 (vec_pack_trunc_<mode>): Likewise.
2318
2319 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2320 V2DI builtins.
2321 (vec_vmaxsd): Likewise.
2322 (vec_vmaxud): Likewise.
2323 (vec_vminsd): Likewise.
2324 (vec_vminud): Likewise.
2325 (vec_vpksdss): Likewise.
2326 (vec_vpksdus): Likewise.
2327 (vec_vpkudum): Likewise.
2328 (vec_vpkudus): Likewise.
2329 (vec_vrld): Likewise.
2330 (vec_vsld): Likewise.
2331 (vec_vsrad): Likewise.
2332 (vec_vsrd): Likewise.
2333 (vec_vsubudm): Likewise.
2334 (vec_vupkhsw): Likewise.
2335 (vec_vupklsw): Likewise.
2336
e70670cf
JH
23372013-05-29 Jan Hubicka <jh@suse.cz>
2338
2339 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2340 flags; reorder rest of fields in more consistent way.
2341 (varpool_node): Remove analyzed, finalized and alias.
2342 (cgraph_ndoe): Likewise.
2343 (symtab_alias_ultimate_target): New function.
2344 (cgraph_function_node): Move offline.
2345 (cgraph_reset_node): Declare.
2346 (cgraph_comdat_can_be_unshared_p): Remove.
2347 (varpool_remove_initializer): Declare.
2348 (varpool_first_defined_variable, varpool_next_defined_variable
2349 cgraph_first_defined_function, cgraph_next_defined_function): Update.
2350 (cgraph_function_with_gimple_body_p): Update.
2351 (varpool_all_refs_explicit_p): Update.
2352 (symtab_alias_target): New function.
2353 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2354 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
2355 (cgraph_function_or_thunk_node): Simplify using
2356 symtab_alias_ultimate_target.
e70670cf
JH
2357 (varpool_variable_node): Likewise.
2358 * cgraph.c (cgraph_create_function_alias): Update.
2359 (cgraph_add_thunk): Update.
2360 (cgraph_remove_node): Update.
2361 (dump_cgraph_node): Do not dump removed flags.
2362 (cgraph_function_body_availability): Update.
2363 (cgraph_propagate_frequency): Update.
2364 (verify_cgraph_node): Check sanity of local flag.
2365 (cgraph_function_node): Move here from cgraph.h; revamp for
2366 cgraph_function_or_thunk_node.
2367 * lto-symtab.c (lto_varpool_replace_node): Update.
2368 (lto_symtab_resolve_can_prevail_p): Update.
2369 (lto_symtab_merge_cgraph_nodes): Update.
2370 * ipa-cp.c (determine_versionability, initialize_node_lattices,
2371 propagate_constants_accross_call, devirtualization_time_bonus,
2372 ipcp_propagate_stage): Update.
2373 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
2374 * ipa-inline-transform.c (clone_inlined_nodes,
2375 preserve_function_body_p): Update.
e70670cf
JH
2376 * ipa-reference.c (propagate): Update.
2377 (write_node_summary_p): Update.
2378 * toplev.c (wrapup_global_declaration_2): Update.
2379 * cgraphunit.c (cgraph_analyze_function): Rename to ...
2380 (analyze_function) ... this one.
2381 (cgraph_process_new_functions): Update.
2382 (cgraph_reset_node): Export.
2383 (cgraph_finalize_function): Update.
2384 (cgraph_add_new_function): Update.
2385 (process_function_and_variable_attributes): Update.
2386 (varpool_finalize_decl): Update.
2387 (symbol_finalized): Remove.
2388 (symbol_finalized_and_needed): Rename to ...
2389 (symbol_defined_and_needed): ... update.
2390 (cgraph_analyze_functions): Update.
2391 (handle_alias_pairs): Update.
2392 (mark_functions_to_output): Update.
2393 (assemble_thunk): Update.
2394 (output_in_order): Update.
2395 (output_weakrefs): Update.
2396 (finalize_compilation_unit): Update.
2397 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2398 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2399 input_node, input_varpool_node): Update.
2400 * dbxout.c (dbxout_expand_expr): Update.
2401 * cgraphclones.c (cgraph_clone_node): Update.
2402 (cgraph_copy_node_for_versioning): Update.
2403 (cgraph_materialize_clone): Update.
2404 (cgraph_materialize_all_clones): Update.
2405 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2406 propagate_pure_const, propagate_nothrow): Update.
2407 * lto-streamer-out.c (lto_output, write_symbol): Update.
2408 * ipa-utils.c (ipa_reverse_postorder): Update.
2409 * ipa-inline.c (can_inline_edge_p): Update.
2410 (update_caller_keys, ipa_inline): Update.
2411 * dwarf2out.c (reference_to_unused,
2412 premark_types_used_by_global_vars_helper): Update.
2413 * tree-eh.c (tree_could_trap_p): Update.
2414 * ipa-split.c (consider_split, execute_split_functions): Update.
2415 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
2416 has_addr_references_p): Update; move ahead in file for better
2417 readability.
e70670cf
JH
2418 (process_references): Simplify.
2419 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2420 bodies are removed.
2421 (cgraph_comdat_can_be_unshared_p): Make static.
2422 (cgraph_externally_visible_p): Update.
2423 (varpool_externally_visible_p): Update.
2424 (function_and_variable_visibility): Update.
2425 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2426 ipa_tm_mark_force_output_node): Update.
2427 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2428 estimate_edge_devirt_benefit, inline_generate_summary,
2429 inline_write_summary): Update.
2430 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2431 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
2432 (ipa_print_node_params, ipa_prop_read_section,
2433 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
2434 * varasm.c (mark_decl_referenced): Update.
2435 (assemble_alias, dump_tm_clone_pairs): Update.
2436 * tree-inline.c (copy_bb): Update.
2437 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2438 Update.
2439 * symtab.c (dump_symtab_base): Print new flags.
2440 (verify_symtab_base): Verify new flags.
2441 (symtab_alias_ultimate_target): New function.
2442 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2443 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2444 Update.
c1e183a9
UB
2445 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2446 Update.
e70670cf
JH
2447 * i386.c (ix86_get_function_versions_dispatcher,
2448 ix86_generate_version_dispatcher_body): Update.
2449 (fold_builtin_cpu): Use varpool_add_new_variable.
2450 * varpool.c (varpool_remove_initializer): Break out from ...
2451 (varpool_remove_node): ... this one.
2452 (dump_varpool_node, varpool_node_for_asm,
2453 cgraph_variable_initializer_availability, varpool_analyze_node,
2454 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
2455 varpool_finalize_named_section_flags, varpool_create_variable_alias):
2456 Update.
e70670cf 2457
182802ad
JH
24582013-05-29 Jan Hubicka <jh@suse.cz>
2459
2460 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2461
8190b609
ER
24622013-05-29 Easwaran Raman <eraman@google.com>
2463
2464 PR tree-optimization/57442
2465 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2466 when control exits the main loop.
2467
69f5aa9b
SKS
24682013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
2469
2470 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2471 and RX600.
c1e183a9 2472 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
2473 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2474 * rx/t-rx: Add rx100 under multi library matches option for nofpu
2475 option.
2476
4b847da9
BS
24772013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2478
2479 PR tree-optimization/57441
2480 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2481 Don't limit size of incr_vec to number of candidates.
2482
4fc43c39
SE
24832013-05-29 Steve Ellcey <sellcey@imgtec.com>
2484
2485 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2486 and mips16 directories.
c1e183a9 2487 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
2488 (MULTILIB_DIRNAMES): Ditto.
2489 (MULTILIB_EXCEPTIONS): Add new exceptions.
2490 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2491 (MULTILIB_DIRNAMES): Ditto.
2492 (MULTILIB_EXCEPTIONS): Add new exceptions.
2493
a5350ddc
CSS
24942012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2495 Marcus Shawcroft <marcus.shawcroft@arm.com>
2496
2497 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2498 SYMBOL_TINY_ABSOLUTE.
2499 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2500 SYMBOL_TINY_ABSOLUTE.
2501 (aarch64_expand_mov_immediate): Likewise.
2502 (aarch64_classify_symbol): Likewise.
2503 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2504 Permit SYMBOL_TINY_ABSOLUTE.
2505 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2506
17f4d4bf
CSS
25072013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2508 Marcus Shawcroft <marcus.shawcroft@arm.com>
2509
2510 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2511 Refactor if/switch. Replace gcc_assert with if.
2512
c0186656
GG
25132013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2514
2515 * config/i386/i386.c (initial_ix86_tune_features): Enable
2516 FP Reassociation for AMD bdver1 and bdver2.
2517
d20188f3
MJ
25182013-05-29 Martin Jambor <mjambor@suse.cz>
2519
2520 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2521 and IMAGPART_EXPR do not occur within other handled_components.
2522
292cba13
RB
25232013-05-29 Richard Biener <rguenther@suse.de>
2524
2525 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2526 access on whether the use is in the BB we currently try to
2527 vectorize.
2528 (vect_bb_vectorization_profitable_p): Pass the BB we currently
2529 vectorize to vect_bb_slp_scalar_cost.
2530
6eddf228
RB
25312013-05-29 Richard Biener <rguenther@suse.de>
2532
2533 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2534 computing scalar cost offsetted by stmts that are kept live
2535 by scalar uses.
2536 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2537 for computation of scalar cost.
2538
7df36117
SE
25392013-05-28 Steve Ellcey <sellcey@mips.com>
2540
2541 * config/mips/mips-cpus.def (mips32r2): Change processor type.
2542
36536d79
BI
25432013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2544
2545 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2546 array notation built-in reduction functions.
2547 * doc/passes.texi (Passes): Added documentation about changes done
2548 for Cilk Plus.
2549 * doc/invoke.texi (C Dialect Options): Added documentation about
2550 the -fcilkplus flag.
2551 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2552 (BUILTINS_DEF): Depend on cilkplus.def.
2553 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
2554 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2555 * cilkplus.def: New file.
2556
b49eefa5
JR
25572013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
2558
2559 PR rtl-optimization/57439
2560 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2561
9daf6dbb
ER
25622013-05-28 Easwaran Raman <eraman@google.com>
2563
2564 PR tree-optimization/57337
2565 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2566 (find_insert_point): Correctly identify the insertion point
2567 when two statements with the same UID is compared.
2568
fbd7e877
RB
25692013-05-28 Richard Biener <rguenther@suse.de>
2570
2571 PR tree-optimization/56787
2572 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2573 from the list of data references.
2574 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2575 clobbers.
2576 (vect_analyze_loop_operations): Likewise.
2577 (vect_transform_loop): Remove clobbers.
2578
bbba1117
MJ
25792013-05-28 Martin Jambor <mjambor@suse.cz>
2580
2581 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2582 and REALPART_EXPRs have scalar type.
2583
bd388c2a
RB
25842013-05-28 Richard Biener <rguenther@suse.de>
2585
2586 PR tree-optimization/57411
2587 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2588 virtual operands.
2589 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2590 virtual operand propagation.
2591
2f56a311
EB
25922013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2593
2594 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2595 destination register for bmasksi_vis.
2596 (vector_init_bshuffle): Likewise.
2597 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2598
5c3eacbb
EB
25992013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2600
2601 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2602 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2603 mode if the instruction isn't available in the original mode.
2604 * config/sparc/sparc.opt (mfix-ut699): New option.
2605 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2606 (divdf3): Turn into expander.
2607 (divdf3_nofix): New insn.
2608 (divdf3_fix): Likewise.
2609 (divsf3): Disable if -mfix-ut699.
2610 (sqrtdf2): Turn into expander.
2611 (sqrtdf2_nofix): New insn.
2612 (sqrtdf2_fix): Likewise.
2613 (sqrtsf2): Disable if -mfix-ut699.
2614
a1756c0a
RB
26152013-05-27 Richard Biener <rguenther@suse.de>
2616
2617 PR middle-end/57412
2618 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2619 block for the new loop.
2620
5a892248
RB
26212013-05-27 Richard Biener <rguenther@suse.de>
2622
2623 PR tree-optimization/57343
2624 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2625 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2626 (number_of_iterations_cond): Do not build the folded tree.
2627
d1de852b
RB
26282013-05-27 Richard Biener <rguenther@suse.de>
2629
2630 Revert
2631 PR middle-end/57381
2632 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2633 OEP_CONSTANT_ADDRESS_OF retained.
2634
2635 PR tree-optimization/57417
2636 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2637 for unchanged base.
2638 (set_ssa_val_to): Compare addresses using
2639 get_addr_base_and_unit_offset.
2640
7894bc6b
JR
26412013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
2642
2643 PR rtl-optimization/56833
2644 * postreload.c (move2add_record_mode): New function.
2645 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2646 (move2add_use_add2_insn): Use move2add_record_sym_value.
2647 (move2add_use_add3_insn): Likewise.
2648 (reload_cse_move2add): Use move2add_valid_value_p and
2649 move2add_record_mode. Invalidate call-clobbered and REG_INC
2650 affected regs by setting reg_mode to VOIDmode.
2651 (move2add_note_store): Don't pretend the inside of a SUBREG is
2652 the actual destination. Invalidate single/leading registers by
2653 setting reg_mode to VOIDmode.
2654 Use move2add_record_sym_value, move2add_valid_value_p and
2655 move2add_record_mode.
2656
b03be25f
RB
26572013-05-27 Richard Biener <rguenther@suse.de>
2658
2659 PR tree-optimization/57396
2660 * tree-affine.c (double_int_constant_multiple_p): Properly
2661 return false for val == 0 and div != 0.
2662
44e88db2
RS
26632013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2664
2665 * config/mips/mips.h: Use #elif in preprocessor conditions.
2666
3b859704
RS
26672013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2668
2669 PR target/53916
2670 * config/mips/constraints.md (kl): New constraint.
2671 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2672 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
2673 constraint for operand 0. Split after CSE for MIPS16. Emit a move
2674 from LO for MIPS16.
2675 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2676
c979d5f5
RS
26772013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2678
2679 PR target/55777
2680 * config/mips/mips.c (mips_can_inline_p): New function.
2681 (TARGET_CAN_INLINE_P): Define.
2682
8e90de43
SB
26832013-05-25 Steven Bosscher <steven@gcc.gnu.org>
2684
2685 * sched-int.h (ds_t, dw_t): Make unsigned int.
2686 Fix documentation that describes how all the ds_t bits are used.
2687 Reserve the last bit for delayed-branch scheduling.
2688 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2689 (BITS_PER_DEP_WEAK): Fix definition and documentation.
2690 (gen_dep_weak_1): Remove prototype.
2691 * sched-deps.c (get_dep_weak_1): Make static.
2692 * target.def (speculate_insn, needs_block_p, gen_spec_check,
2693 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2694 * doc/tm.texi: Regenerate.
2695 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2696
cb5cb194
SB
26972013-05-24 Steven Bosscher <steven@gcc.gnu.org>
2698
2699 PR debug/56950
2700 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2701
5bd93ff6
NS
27022013-05-24 Nathan Sidwell <nathan@codesourcery.com>
2703 Sandra Loosemore <sandra@codesourcery.com>
2704
2705 * config.gcc (powerpc-*): Allow native for with-cpu.
2706
2343af65
JL
27072013-05-24 Jeff Law <law@redhat.com>
2708
2709 PR tree-optimization/57124
2710 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2711 conversion feeding a condition if the range has an overflow
2712 if -fstrict-overflow. Add warnings for when we do make the
2713 transformation.
2714
3ad695b9
DC
27152013-05-24 Dehao Chen <dehao@google.com>
2716
04960246 2717 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
2718 (locus_discrim_hasher): Likewise.
2719 (locus_discrim_hasher::hash): Likewise.
2720 (locus_discrim_hasher::equal): Likewise.
2721
82338059
MJ
27222013-05-24 Martin Jambor <mjambor@suse.cz>
2723
2724 PR tree-optimization/57294
2725 * cgraph.h (ipa_record_stmt_references): Declare.
2726 * cgraphbuild.c (ipa_record_stmt_references): New function.
2727 (build_cgraph_edges): Use ipa_record_stmt_references.
2728 (rebuild_cgraph_edges): Likewise.
2729 (cgraph_rebuild_references): Likewise.
2730 * ipa-prop.c (ipa_modify_call_arguments): Discard references
2731 associated with the old statement and build references from the
2732 newly built statements.
2733 * ipa-ref.c (ipa_remove_stmt_references): New function.
2734 * ipa-ref.h (ipa_remove_stmt_references): Declare.
2735
1ccd4874
VM
27362013-05-24 Vladimir Makarov <vmakarov@redhat.com>
2737
55805e54 2738 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 2739 mem-mem moves.
55805e54 2740 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 2741 too.
55805e54 2742 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
2743 secondary memory moves.
2744 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
2745 reg set up in the current insn.
2746
25e25c73
DC
27472013-05-24 Dehao Chen <dehao@google.com>
2748
04960246 2749 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
2750 hash function.
2751 (locus_descrim_hasher::equal): Likewise.
04960246 2752 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
2753 (make_edges): Likewise.
2754 (next_discriminator_for_locus): Likewise.
2755 (same_line_p): Likewise.
2756 (assign_discriminators): Likewise.
2757 (make_cond_expr_edges): Likewise.
2758 (make_gimple_switch_edges): Likewise.
2759 (make_goto_expr_edges): Likewise.
2760 (make_gimple_asm_edges): Likewise.
2761
50d38551
IB
27622013-05-24 Ian Bolton <ian.bolton@arm.com>
2763
2764 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2765 X format specifier to only display bottom 16 bits.
2766 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2767 immediate to match for operand 2, since it will be masked.
2768
aea0101d
RB
27692013-05-24 Richard Biener <rguenther@suse.de>
2770
2771 PR tree-optimization/57287
2772 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2773 all SSA names that occur in abnormal PHIs.
2774
634e03d3
AI
27752013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2776
2777 PR tree-ssa/57385
2778 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2779 that index is not negative.
2780
b17c024f
EB
27812013-05-24 Eric Botcazou <ebotcazou@adacore.com>
2782
2783 PR rtl-optimization/55177
2784 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2785 (simplify_byte_swapping_operation): New.
2786 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2787 (simplify_relational_operation_1): Deal with BSWAP.
2788
46aeac1b
RH
27892013-05-23 Richard Henderson <rth@redhat.com>
2790
2791 PR target/56742
2792 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2793 (ix86_reorg): Call it.
2794
70cc1536
UB
27952013-05-23 Uros Bizjak <ubizjak@gmail.com>
2796
2797 PR target/57379
2798 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2799 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2800 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2801
b3851501
CB
28022013-05-23 Christian Bruel <christian.bruel@st.com>
2803
2804 PR debug/57351
2805 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2806
4e194912
CSS
28072013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2808 Marcus Shawcroft <marcus.shawcroft@arm.com>
2809
2810 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2811 * config/aarch64/constraints.md (Usa): Remove.
2812 * doc/md.texi (AArch64 Usa): Remove.
2813
83f8c414
CSS
28142013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2815 Marcus Shawcroft <marcus.shawcroft@arm.com>
2816
2817 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2818 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2819 * config/aarch64/predicates.md (aarch64_const_address): Remove.
2820 (aarch64_mov_operand): Use aarch64_mov_operand_p.
2821
b5574232
VP
28222013-05-23 Vidya Praveen <vidyapraveen@arm.com>
2823
2824 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2825 instruction (AdvSIMD).
2826 * config/aarch64/aarch64-builtins.c
2827 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2828 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2829
76c36cb1 28302013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
2831
2832 PR middle-end/57347
2833 * tree.h (contains_bitfld_component_ref_p): Declare.
2834 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
2835 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
2836 caller.
7d2fb524
MJ
2837 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2838 not access a bit-field. Assert all final offsets are byte-aligned.
2839
ce521ae6
RB
28402013-05-23 Richard Biener <rguenther@suse.de>
2841
2842 PR tree-optimization/57380
2843 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2844 least one invariant or re-used load.
2845 * passes.c (init_optimization_passes): Move pass_phiprop before
2846 pass_forwprop.
2847
75c7257f
JG
28482013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
2849
2850 * config/aarch64/aarch64-simd.md
2851 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2852
af6d44b5
RB
28532013-05-23 Richard Biener <rguenther@suse.de>
2854
2855 PR middle-end/57381
2856 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2857 OEP_CONSTANT_ADDRESS_OF retained.
2858
bd3647bf
JJ
28592013-05-23 Jakub Jelinek <jakub@redhat.com>
2860
2861 PR middle-end/57344
70cc1536
UB
2862 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2863 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 2864
a55757ea
RB
28652013-05-23 Richard Biener <rguenther@suse.de>
2866
2867 PR rtl-optimization/57341
2868 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2869 instead of true_dependence.
2870
cfb00b41
DM
28712013-05-22 David Malcolm <dmalcolm@redhat.com>
2872
dd1c676f
DM
2873 * bb-reorder.c (branch_threshold): Make const.
2874 (exec_threshold): Ditto.
cfb00b41 2875
f62511da
MM
28762013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2877 Pat Haugen <pthaugen@us.ibm.com>
2878 Peter Bergner <bergner@vnet.ibm.com>
2879
2880 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2881 documentation for the power8 crypto builtins.
2882
2883 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2884
2885 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2886 macros for defining power8 builtin functions.
2887 (BU_P8V_AV_2): Likewise.
2888 (BU_P8V_AV_P): Likewise.
2889 (BU_P8V_VSX_1): Likewise.
2890 (BU_P8V_OVERLOAD_1): Likewise.
2891 (BU_P8V_OVERLOAD_2): Likewise.
2892 (BU_CRYPTO_1): Likewise.
2893 (BU_CRYPTO_2): Likewise.
2894 (BU_CRYPTO_3): Likewise.
2895 (BU_CRYPTO_OVERLOAD_1): Likewise.
2896 (BU_CRYPTO_OVERLOAD_2): Likewise.
2897 (XSCVSPDP): Fix typo, point to the correct instruction.
2898 (VCIPHER): Add power8 crypto builtins.
2899 (VCIPHERLAST): Likewise.
2900 (VNCIPHER): Likewise.
2901 (VNCIPHERLAST): Likewise.
2902 (VPMSUMB): Likewise.
2903 (VPMSUMH): Likewise.
2904 (VPMSUMW): Likewise.
2905 (VPERMXOR_V2DI): Likewise.
2906 (VPERMXOR_V4SI: Likewise.
2907 (VPERMXOR_V8HI: Likewise.
2908 (VPERMXOR_V16QI: Likewise.
2909 (VSHASIGMAW): Likewise.
2910 (VSHASIGMAD): Likewise.
2911 (VPMSUM): Likewise.
2912 (VPERMXOR): Likewise.
2913 (VSHASIGMA): Likewise.
2914
2915 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2916 __CRYPTO__ if the crypto instructions are available.
2917 (altivec_overloaded_builtins): Add support for overloaded power8
2918 builtins.
2919
2920 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2921 support for power8 crypto builtins.
2922 (builtin_function_type): Likewise.
2923 (altivec_init_builtins): Add support for builtins that take vector
2924 long long (V2DI) arguments.
2925
2926 * config/rs6000/crypto.md: New file, define power8 crypto
2927 instructions.
2928
29292013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2930 Pat Haugen <pthaugen@us.ibm.com>
2931 Peter Bergner <bergner@vnet.ibm.com>
2932
2933 * doc/invoke.texi (Option Summary): Add power8 options.
2934 (RS/6000 and PowerPC Options): Likewise.
2935
2936 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2937 constraints.md instead of rs6000.h. Reorder w* constraints. Add
2938 wm, wn, wr documentation.
2939
2940 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2941 registers if direct move instructions are enabled.
2942 (wn): New constraint for no registers.
2943 (wq): New constraint for quad word even GPR registers.
2944 (wr): New constraint if 64-bit instructions are enabled.
2945 (wv): New constraint if power8 vector instructions are enabled.
2946 (wQ): New constraint for quad word memory locations.
2947
2948 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2949 constraint for 0..15 for crypto instructions.
2950 (gpc_reg_operand): If VSX allow registers in VSX registers as well
2951 as GPR and floating point registers.
2952 (int_reg_operand): New predicate to match only GPR registers.
2953 (base_reg_operand): New predicate to match base registers.
2954 (quad_int_reg_operand): New predicate to match even GPR registers
2955 for quad memory operations.
2956 (vsx_reg_or_cint_operand): New predicate to allow vector logical
2957 operations in both GPR and VSX registers.
2958 (quad_memory_operand): New predicate for quad memory operations.
2959 (reg_or_indexed_operand): New predicate for direct move support.
2960
2961 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2962 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2963 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2964 (POWERPC_MASKS): Add power8 options.
2965 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2966 various options.
2967
2968 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2969 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2970
2971 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2972 (-mpower8-fusion): New power8 options.
2973 (-mpower8-fusion-sign): Likewise.
2974 (-mpower8-vector): Likewise.
2975 (-mcrypto): Likewise.
2976 (-mdirect-move): Likewise.
2977 (-mquad-memory): Likewise.
2978
2979 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2980 power8.
2981 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2982 registers.
70cc1536 2983 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
2984 (rs6000_debug_vector_unit): Add p8_vector.
2985 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2986 definitions. Also print fusion state.
2987 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
2988 (rs6000_builtin_mask_calculate): Add power8 builtin support.
2989 (rs6000_option_override_internal): Add support for power8.
2990 (rs6000_common_init_builtins): Add debugging for skipped builtins
2991 if -mdebug=builtin.
2992 (rs6000_adjust_cost): Add power8 support.
2993 (rs6000_issue_rate): Likewise.
2994 (insn_must_be_first_in_group): Likewise.
2995 (insn_must_be_last_in_group): Likewise.
2996 (force_new_group): Likewise.
2997 (rs6000_register_move_cost): Likewise.
2998 (rs6000_opt_masks): Likewise.
2999
3000 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3001 power8 capable assembler, default to power7 options.
3002 (TARGET_DIRECT_MOVE): Likewise.
3003 (TARGET_CRYPTO): Likewise.
3004 (TARGET_P8_VECTOR): Likewise.
3005 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3006 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3007 (VECTOR_MEM_P8_VECTOR_P): Likewise.
3008 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3009 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3010 (TARGET_XSCVDPSPN): Likewise.
3011 (TARGET_XSCVSPDPN): Likewsie.
3012 (TARGET_SYNC_HI_QI): Likewise.
3013 (TARGET_SYNC_TI): Likewise.
3014 (MASK_CRYPTO): Likewise.
3015 (MASK_DIRECT_MOVE): Likewise.
3016 (MASK_P8_FUSION): Likewise.
3017 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
3018 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3019 temporary used by some of the direct move instructions to get two FP
3020 temporary registers does not force creation of a stack frame.
f62511da
MM
3021 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3022 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3023 that any VSX registers are tieable, even if they are also an
3024 Altivec vector mode.
3025 (r6000_reg_class_enum): Add wm, wr, wv constraints.
3026 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3027 (RS6000_BTM_CRYPTO): Likewise.
3028 (RS6000_BTM_COMMON): Likewise.
3029
3030 * config/rs6000/rs6000.md (cpu attribute): Add power8.
3031 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3032 (enum rs6000_vector): Add power8 vector support.
3033
73a1a707
RR
30342013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3035
3036 PR target/19599
3037 PR target/57340
3038 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3039 (any_sibcall_could_use_r3): this and handle indirect calls.
3040 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3041
d28073d4
BS
30422013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3043
3044 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3045
bee0b10c
RB
30462013-05-22 Richard Biener <rguenther@suse.de>
3047
3048 PR middle-end/57349
3049 * profile.c (branch_prob): Do not split blocks that are
3050 abnormally receiving from ECF_RETURNS_TWICE functions.
3051
98409b51
RS
30522013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3053
3054 * recog.c (offsettable_address_addr_space_p): Fix calculation of
3055 address mode. Move pointer mode initialization to the same place.
3056
c0602ab8
MZ
30572013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3058
3059 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3060 while it has any effect.
3061
4f7a634e
ER
30622013-05-21 Easwaran Raman <eraman@google.com>
3063
3064 PR tree-optimization/57322
9daf6dbb
ER
3065 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3066 UID of the statement added to the BB to be 1.
4f7a634e 3067
a4ce1258
JJ
30682013-05-21 Jakub Jelinek <jakub@redhat.com>
3069
3070 PR tree-optimization/57331
70cc1536
UB
3071 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3072 of conversion from pointer type to integral type with integer.
a4ce1258 3073
1b14621a
MJ
30742013-05-21 Martin Jambor <mjambor@suse.cz>
3075
3076 PR lto/57289
3077 * ipa-prop.c (ipa_read_node_info): Process param_used and
3078 controlled_uses in the same order as when writing.
3079
e60661f0
MG
30802013-05-21 Magnus Granberg <baldrick@free.fr>
3081
3082 PR plugins/56754
ee49aa34 3083 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 3084
4a61be9a
RB
30852013-05-21 Richard Biener <rguenther@suse.de>
3086
3087 PR tree-optimization/57318
3088 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3089 estimate stmts with side-effects as likely eliminated.
3090
c52da5f7
RB
30912013-05-21 Richard Biener <rguenther@suse.de>
3092
3093 PR tree-optimization/57330
3094 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3095 preserve the call stmts fntype.
3096
7ec67e2a
RB
30972013-05-21 Richard Biener <rguenther@suse.de>
3098
3099 PR tree-optimization/57303
3100 * tree-ssa-sink.c (statement_sink_location): Improve killing
3101 stmt detection and properly handle self-assignments.
3102
b112d513
CB
31032013-05-21 Christian Bruel <christian.bruel@st.com>
3104
55805e54
YR
3105 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3106 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
3107 registers. Set register size out of the PARALLEL loop.
3108
14c2ec26
OE
31092013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
3110
3111 PR target/56547
3112 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3113 (*fmasf4, *fmasf4_media): New insns.
3114
da734fa1
RS
31152013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3116
3117 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3118 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3119 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3120 (mips_idiv_insns): Update the comments to say that the returned
3121 instruction counts are in units of BASE_INSN_LENGTH.
3122 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3123 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
3124 using 2 rather than 4 as the length of indirect MIPS16 and
3125 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
3126 length of a NOP. Don't divide MIPS16 lengths by 2.
3127 (mips16_split_long_branches): Assume a branch is long if the
3128 length is greater than 4 rather than 8.
3129 * config/mips/mips.md (length): Give MIPS16 lengths directly,
3130 rather than multiplying them by 2. Multiply instruction counts
3131 by BASE_INSN_LENGTH rather than 4.
3132 (*jump_mips16, tls_get_tp_mips16_<mode>)
3133 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3134
13719e8b
RS
31352013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3136
3137 * config/mips/mips.md (extended_mips16): Remove branch case.
3138 (length): Remove duplicated extended_mips16 test.
3139
c3850d14
RS
31402013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3141
3142 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3143
8da2e059
RS
31442013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
3145
3146 * recog.h (Recog_data): Rename to...
3147 (recog_data_d): ...this.
3148 (recog_data): Update accordingly.
3149 * recog.c (recog_data): Likewise.
3150 * reload.c (save_recog_data): Likewise.
3151 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3152 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3153
2df013f3
JB
31542013-05-17 Julian Brown <julian@codesourcery.com>
3155
3156 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3157 found in a REG_EQUAL note, invalidate it.
3158
933f507d
ER
31592013-05-17 Easwaran Raman <eraman@google.com>
3160
3161 * tree-ssa-reassoc.c (find_insert_point): New function.
3162 (insert_stmt_after): Likewise.
3163 (get_def_stmt): Likewise.
3164 (ensure_ops_are_available): Likewise.
3165 (not_dominated_by): Likewise.
3166 (rewrite_expr_tree): Do not move statements beyond what is
3167 necessary. Remove call to swap_ops_for_binary_stmt...
3168 (reassociate_bb): ... and move it here.
3169 (build_and_add_sum): Assign UIDs for new statements.
3170 (linearize_expr): Likewise.
3171 (do_reassoc): Renumber gimple statement UIDs.
3172
e01c7cca
JH
31732013-05-17 Jan Hubicka <jh@suse.cz>
3174
3175 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3176 weakrefs.
3177 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
3178 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3179 weakrefs.
e01c7cca
JH
3180 (output_weakrefs): Update.
3181
c3272a92
PCC
31822013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
3183 Martin Jambor <mjambor@suse.cz>
3184
3185 PR middle-end/57276
3186 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3187 value that corresponds to the given aggval is found in values vector.
3188
11c2aa39
UB
31892013-05-17 Uros Bizjak <ubizjak@gmail.com>
3190
3191 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3192 sse, sse2, sse3, ssse3 and sse4a flags to options.
3193
abecc8c6
DM
31942013-05-17 David Malcolm <dmalcolm@redhat.com>
3195
3196 * gengtype-state.c: (s_expr_writer): New class, to handle
3197 prettifying of output layout of s-expressions.
3198 (state_writer): New class, to write out gtype.state.
3199 (state_written_type_count): Move this variable into member data of
3200 state_writer.
3201 (s_expr_writer::s_expr_writer): New code: constructor for new class
3202 (state_writer::state_writer(): ditto
3203 (s_expr_writer::write_new_line): New function
3204 (s_expr_writer::write_any_indent): ditto
3205 (s_expr_writer::begin_s_expr): ditto
3206 (s_expr_writer::end_s_expr): ditto
3207 (write_state_fileloc): convert to method of state_writer...
3208 (state_writer:: write_state_fileloc): ...and use methods of
3209 s_expr_writer to write indentation into the gtype.state output file
3210 to visually represent the hierarchical structure of the list
3211 structures
3212 (write_state_fields): ditto, renaming to...
3213 (state_writer::write_state_fields)
3214 (write_state_a_string): ditto, renaming to...
3215 (state_writer::write_state_a_string)
3216 (write_state_string_option): ditto, renaming to...
3217 (state_writer::write_state_string_option)
3218 (write_state_type_option): ditto, renaming to...
3219 (state_writer::write_state_type_option)
3220 (write_state_nested_option): ditto, renaming to...
3221 (state_writer::write_state_nested_option)
3222 (write_state_option): ditto, renaming to...
3223 (state_writer::write_state_option)
3224 (write_state_options): ditto, renaming to...
3225 (state_writer::write_state_options)
3226 (write_state_lang_bitmap): ditto, renaming to...
3227 (state_writer::write_state_lang_bitmap)
3228 (write_state_version): ditto, renaming to...
3229 (state_writer::write_state_version)
3230 (write_state_scalar_type): ditto, renaming to...
3231 (state_writer::write_state_scalar_type)
3232 (write_state_string_type): ditto, renaming to...
3233 (state_writer::write_state_string_type)
3234 (write_state_undefined_type): ditto, renaming to...
3235 (state_writer::write_state_undefined_type)
3236 (write_state_struct_union_type): ditto, renaming to...
3237 (state_writer::write_state_struct_union_type)
3238 (write_state_struct_type): ditto, renaming to...
3239 (state_writer::write_state_struct_type)
3240 (write_state_user_struct_type): ditto, renaming to...
3241 (state_writer::write_state_user_struct_type)
3242 (write_state_lang_struct_type): ditto, renaming to...
3243 (state_writer::write_state_lang_struct_type)
3244 (write_state_param_struct_type): ditto, renaming to...
3245 (state_writer::write_state_param_struct_type)
3246 (write_state_pointer_type): ditto, renaming to...
3247 (state_writer::write_state_pointer_type)
3248 (write_state_array_type): ditto, renaming to...
3249 (state_writer::write_state_array_type)
3250 (write_state_gc_used): ditto, renaming to...
3251 (state_writer::write_state_gc_used)
3252 (write_state_common_type_content): ditto, renaming to...
3253 (state_writer::write_state_common_type_content)
3254 (write_state_type): ditto, renaming to...
3255 (state_writer::write_state_type)
3256 (write_state_pair_list): ditto, renaming to...
3257 (state_writer::write_state_pair_list)
3258 (write_state_pair): ditto, renaming to...
3259 (state_writer::write_state_pair)
3260 (write_state_typedefs): ditto, renaming to...
3261 (state_writer::write_state_typedefs)
3262 (write_state_structures): ditto, renaming to...
3263 (state_writer::write_state_structures)
3264 (write_state_param_structs): ditto, renaming to...
3265 (state_writer::write_state_param_structs)
3266 (write_state_variables): ditto, renaming to...
3267 (state_writer::write_state_variables)
3268 (write_state_srcdir): ditto, renaming to...
3269 (state_writer::write_state_srcdir)
3270 (write_state_files_list): ditto, renaming to...
3271 (state_writer::write_state_files_list)
3272 (write_state_languages): ditto, renaming to...
3273 (state_writer::write_state_languages)
3274 (write_state): create a state_writer instance and use it when
3275 writing out the state file
3276
d6545f29
MS
32772013-05-17 Mike Stump <mikestump@comcast.net>
3278
816a3f73 3279 PR rtl-optimization/57304
d6545f29
MS
3280 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3281 accessing DF_REF_REAL_LOC.
3282
38c821cf
JJ
32832013-05-17 Jakub Jelinek <jakub@redhat.com>
3284
3285 PR rtl-optimization/57281
3286 PR rtl-optimization/57300
3287 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3288 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3289 what the other splitter did if the registers are dead.
3290
2a293391
RB
32912013-05-17 Richard Biener <rguenther@suse.de>
3292
3293 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3294 MEM_REF offsets.
3295
17042d2b
JJ
32962013-05-17 Jakub Jelinek <jakub@redhat.com>
3297
3298 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3299 linking.
3300
5b115c1f
MP
33012013-05-17 Marek Polacek <polacek@redhat.com>
3302
11c2aa39
UB
3303 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3304 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 3305
52d84413
JJ
33062013-05-17 Jakub Jelinek <jakub@redhat.com>
3307
68119618
JJ
3308 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3309 vect_external_def oprnd1 with loop_vinfo, try to emit
3310 optional cast, negation and and stmts on the loop preheader
3311 edge instead of into the pattern def seq.
3312
52d84413
JJ
3313 PR tree-optimization/57051
3314 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3315 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3316
17b962bd
NC
33172013-05-16 Nick Clifton <nickc@redhat.com>
3318
3319 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3320 (rl78_is_naked_func): New function.
56aefbf7
UB
3321 (rl78_expand_prologue): Skip prologue generation for naked functions.
3322 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
3323 * doc/extend.texi (naked): Add RL78 to the list of processors
3324 that supports this attribute.
3325
b1a0f84e
JL
33262013-05-16 Jeff Law <law@redhat.com>
3327
3328 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3329
af0e415b
UB
33302013-05-16 Uros Bizjak <ubizjak@gmail.com>
3331
3332 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3333 cache parameters using detect_caches_amd also for CYRIX,
3334 NSC and TM2 signatures.
3335
19db293a
UB
33362013-05-16 Uros Bizjak <ubizjak@gmail.com>
3337 Dzianis Kahanovich <mahatma@eu.by>
3338
3339 PR target/45359
3340 PR target/46396
3341 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3342 VIA/Centaur processors and determine their cache parameters
3343 using detect_caches_amd.
3344
251a41b9
TJ
33452013-05-16 Teresa Johnson <tejohnson@google.com>
3346
3347 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3348 (rtl_verify_edges): New function.
3349 (rtl_verify_bb_insns): Ditto.
3350 (rtl_verify_bb_pointers): Ditto.
3351 (rtl_verify_bb_insn_chain): Ditto.
3352 (rtl_verify_fallthru): Ditto.
3353 (rtl_verify_bb_layout): Ditto.
3354 (rtl_verify_flow_info_1): Outline checks into new functions.
3355 (rtl_verify_flow_info): Ditto.
3356
f14540b6
SE
33572013-05-16 Steve Ellcey <sellcey@imgtec.com>
3358
3359 * cfghooks.c (copy_bbs): Add update_dominance argument.
3360 * cfghooks.h (copy_bbs): Update prototype.
3361 * tree-cfg.c (gimple_duplicate_sese_region):
3362 Add update_dominance argument.
3363 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3364 * tree-ssa-loop-ch.c (copy_loop_headers): Update
3365 gimple_duplicate_sese_region call.
3366 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3367 Update copy_bbs call.
3368 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3369 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3370
7e9a3abb
JJ
33712013-05-16 Jakub Jelinek <jakub@redhat.com>
3372
3373 * tree-vectorizer.h (NUM_PATTERNS): Increment.
3374 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3375 vect_recog_rotate_pattern.
3376 (vect_recog_rotate_pattern): New function.
3377
427b248d
JM
33782013-05-16 Jason Merrill <jason@redhat.com>
3379
3380 * Makefile.in (LLINKER): New variable.
3381 (mostlyclean): Remove link mutex.
3382 * configure.ac: Handle --enable-link-mutex.
3383 * lock-and-run.sh: New script.
3384
b871e3d2
RR
33852013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3386
3387 PR target/19599
3388 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3389 for NULL decl.
3390
ce858126
RO
33912013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3392
3393 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3394
798d3d04
GY
33952013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
3396
3397 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3398 * config/arm/arm.c (next_consecutive_mem): New function.
3399 (gen_movmem_ldrd_strd): Likewise.
3400 * config/arm/arm.md (movmemqi): Update condition and code.
3401 (unaligned_loaddi, unaligned_storedi): New patterns.
3402
0baddc45
RO
34032013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3404
3405 * config.gcc: Obsolete *-*-solaris2.9*.
3406 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3407
aa9d5bcf
RB
34082013-05-16 Richard Biener <rguenther@suse.de>
3409
3410 * passes.c (init_optimization_passes): Move pass_parallelize_loops
3411 earlier, after GRAPHITE transforms and IV canonicalization.
3412
5a0f4dd3
JJ
34132013-05-16 Jakub Jelinek <jakub@redhat.com>
3414
3415 * omp-low.c (extract_omp_for_data): For collapsed loops,
3416 if at least one of the loops is known at compile time to
3417 iterate zero times, set count to 0.
3418 (expand_omp_regimplify_p): New function.
3419 (expand_omp_for_generic): For collapsed loops, if at least
3420 one of the loops isn't known to iterate at least once,
3421 add runtime check with setting count to 0.
3422 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3423 For unsigned types if it isn't known at compile time that
3424 the loop will iterate at least once, add runtime check to bypass
3425 the whole loop if initial condition isn't true.
3426
e3753785
NS
34272013-05-16 Nathan Sidwell <nathan@codesourcery.com>
3428
3429 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3430
43bb4dd1
MG
34312013-05-16 Marc Glisse <marc.glisse@inria.fr>
3432
3433 PR middle-end/57286
3434 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3435 transformations to avoid an infinite loop.
3436
3571dde6
MP
34372013-05-16 Marek Polacek <polacek@redhat.com>
3438
3439 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3440
b8b3f0ca
LE
34412013-05-15 Leif Ekblad <leif@rdos.net>
3442
3443 * config/i386/i386.c (ix86_decompose_address): Use
3444 DEFAULT_TLS_SEG_REG to access TLS segment register.
3445 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3446 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3447 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3448
e299a383
RS
34492013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
3450
3451 PR target/57260
3452 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3453 sibling calls to functions that would normally be lazily bound,
3454 unless $gp is call-clobbered.
3455
e7208ea3
UB
34562013-05-15 Uros Bizjak <ubizjak@gmail.com>
3457
19db293a 3458 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 3459 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
3460 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3461 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
3462 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3463 of TARGET_3DNOW.
3464 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3465
e7413f3d
AS
34662013-05-15 Andreas Schwab <schwab@suse.de>
3467
3468 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3469 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
3470 third operand.
3471
ad4db775
TJ
34722013-05-15 Teresa Johnson <tejohnson@google.com>
3473
3474 * loop-unroll.c (report_unroll_peel): Check decision before
3475 emitting unroll/peel message.
3476
af205f67
TJ
34772013-05-15 Teresa Johnson <tejohnson@google.com>
3478
3479 * function.h (has_bb_partition): New rtl_data flag.
3480 (bb_reorder_complete): Ditto.
3481 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3482 instead of flag_reorder_blocks_and_partition.
3483 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3484 with some enhancements.
3485 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3486 * bb-reorder.c (connect_traces): Check for has_bb_partition
3487 instead of flag_reorder_blocks_and_partition.
3488 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3489 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3490 verify_hot_cold_block_grouping.
3491 (partition_hot_cold_basic_blocks): Set has_bb_partition.
3492
9adcfa3c
RR
34932013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3494
3495 PR target/19599
3496 * config/arm/predicates.md (call_insn_operand): New predicate.
3497 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
3498 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3499 if insn is not a tail call.
3500 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3501 registers.
3502 * config/arm/arm.h (enum reg_class): New caller save register class.
3503 (REG_CLASS_NAMES): Likewise.
3504 (REG_CLASS_CONTENTS): Likewise.
3505 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3506 without decls.
3507
ccb3ad87
RB
35082013-05-15 Richard Biener <rguenther@suse.de>
3509
3510 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3511 of MSG_OPTIMIZED_LOCATIONS.
3512 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3513 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3514 message.
3515 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3516 of MSG_OPTIMIZED_LOCATIONS.
3517 (execute_vect_slp): Likewise.
3518 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3519 (vect_create_cond_for_alias_checks): Likewise.
3520 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3521 (vect_recog_widen_mult_pattern): Likewise.
3522 (vect_recog_widen_sum_pattern): Likewise.
3523 (vect_recog_over_widening_pattern): Likewise.
3524 (vect_recog_widen_shift_pattern): Likewise.
3525 (vect_recog_vector_vector_shift_pattern): Likewise.
3526 (vect_recog_divmod_pattern): Likewise.
3527 (vect_recog_mixed_size_cond_pattern): Likewise.
3528 (vect_recog_bool_pattern): Likewise.
3529 (vect_pattern_recog_1): Likewise.
3530
48b1474e
MJ
35312013-05-15 Martin Jambor <mjambor@suse.cz>
3532
3533 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3534 non-functions to builtin_unreachable.
3535 * ipa-inline-transform.c (inline_call): Do not assert estimates were
3536 correct when new direct edges were discovered.
3537
9de04252
MJ
35382013-05-15 Martin Jambor <mjambor@suse.cz>
3539
3540 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3541 header, print symbol order instead of node uid, print more information
3542 about indirect edge targets.
3543 (ipa_make_edge_direct_to_target): Print symbol order instead of node
3544 uids.
3545 (ipa_make_edge_direct_to_target): Likewise.
3546 (remove_described_reference): Likewise.
3547 (propagate_controlled_uses): Likewise.
3548 (ipa_print_node_params): Also print symbol order.
3549 (ipcp_transform_function): Print symbol order instead of node uids.
3550 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3551 (cgraph_get_create_real_symbol_node): Likewise.
3552 * ipa-cp.c (print_lattice): Likewise.
3553 (print_all_lattices): Likewise.
3554 (determine_versionability): Likewise.
3555 (initialize_node_lattices): Likewise.
3556 (estimate_local_effects): Likewise.
3557 (update_profiling_info): Likewise.
3558 (create_specialized_node): Likewise.
3559 (perhaps_add_new_callers): Likewise.
3560 (decide_about_value): Likewise.
3561 (decide_whether_version_node): Likewise.
3562 (identify_dead_nodes): Likewise.
3563 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3564 (dump_inline_summary): Likewise.
3565 (estimate_node_size_and_time): Likewise.
3566 (inline_analyze_function): Likewise.
3567 * ipa-inline.c (report_inline_failed_reason): Likewise.
3568 (want_early_inline_function_p): Likewise.
3569 (edge_badness): Likewise.
3570 (update_edge_key): Likewise.
3571 (inline_small_functions): Likewise. Add dumping of order to two other
3572 dumps.
3573 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3574 instead of node uids.
3575 (propagate_pure_const): Likewise.
3576 (propagate_pure_const): Likewise.
3577 * ipa-utils.c (dump_cgraph_node_set): Likewise.
3578 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3579 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3580 of node uids.
3581 * tree-pretty-print.c (dump_function_header): Likewise.
3582 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3583 Print symbol order instead of node uids.
3584
1dd03b91
AK
35852013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3586
3587 * config/s390/s390.c (s390_register_move_cost): Don't impose the
3588 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3589
fdf6a7b9
RB
35902013-05-15 Richard Biener <rguenther@suse.de>
3591
3592 PR tree-optimization/57275
3593 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3594 return value for fail to do runtime alias checks for gather loads.
3595
2d6e4603
JH
35962013-05-15 Jan Hubicka <jh@suse.cz>
3597
3598 PR lto/57038
3599 PR lto/47375
e7208ea3
UB
3600 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3601 weakrefs are not external.
3602 (lto_symtab_merge_decls): Fix thinko when dealing with
3603 non-lto_symtab decls.
2d6e4603
JH
3604 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3605 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3606 * varpool.c (dump_varpool_node): Dump more flags.
3607
83f44b39
GG
36082013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3609
3610 * config/i386/i386.c (processor_alias_table): Add instruction
3611 FSGSBASE for AMD bdver3 architecture.
3612
2e55d062
JJ
36132013-05-14 Jakub Jelinek <jakub@redhat.com>
3614
3615 * tree.c (warn_deprecated_use): Print file:line using locus color.
3616 * diagnostic.c (diagnostic_report_current_module): Print file:line
3617 and file:line:column using locus color.
3618
0bfdb81e
MS
36192013-05-14 Mike Stump <mikestump@comcast.net>
3620
3621 * gdbinit.in: Add __null.
3622
a508ef22
MS
36232013-05-14 Mike Stump <mikestump@comcast.net>
3624
3625 * recog.h: Rename struct recog_data to Recog_data.
3626 * recog.c: Likewise.
3627 * reload.c (can_reload_into): Likewise.
3628 * config/picochip/picochip.c: Likewise.
3629
e7180acb
MS
36302013-05-14 Mike Stump <mikestump@comcast.net>
3631
3632 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3633
61216c26
SB
36342013-05-14 Steven Bosscher <steven@gcc.gnu.org>
3635
fd6beed4
SB
3636 * resource.h (struct resources): Remove unch_memory member.
3637 (CLEAR_RESOURCE): Don't clear unch_memory.
3638 * resource.c (mark_referenced_resources): Don't set it.
3639 (mark_set_resources): Likewise.
3640 (mark_target_live_regs): Don't clear it.
3641 (init_resource_info): Likewise.
3642 * reorg.c (resource_conflicts_p): Don't compare it.
3643 (redundant_insn): Don't set it.
3644
61216c26
SB
3645 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3646 Remove prototypes.
3647 * emit-rtl.c (next_label): Remove unused function.
3648 (skip_consecutive_labels, link_cc0_insns): Move to ...
3649 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3650 only place where these functions are used, and make them static.
3651
418d1b87
MG
36522013-05-14 Marc Glisse <marc.glisse@inria.fr>
3653
3654 * fold-const.c (fold_negate_expr): Handle vectors.
3655 (fold_truth_not_expr): Make it static.
3656 (fold_invert_truthvalue): New static function.
3657 (invert_truthvalue_loc): Handle vectors. Do not call
3658 fold_truth_not_expr directly.
3659 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3660 <TRUTH_NOT_EXPR>: Do not cast to boolean.
3661 (fold_comparison): Handle vector constants.
3662 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3663 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3664 * tree.h (fold_truth_not_expr): Remove declaration.
3665
fc21784d
JG
36662013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
3667
3668 * config/aarch64/aarch64-simd.md
3669 (aarch64_vcond_internal<mode>): Rename to...
3670 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3671 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3672 float modes. Clarify all iterator modes.
3673 (vcond<mode><mode>): Use new name for vcond expanders.
3674 (vcond<v_cmp_result><mode>): Likewise.
3675 (vcondu<mode><mode>: Likewise.
3676 * config/aarch64/iterators.md (VDQF_COND): New.
3677
d4c52634
MG
36782013-05-14 Marc Glisse <marc.glisse@inria.fr>
3679
3680 PR bootstrap/57266
3681 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3682 variable for the shift amount. Check that we shift by non-negative
3683 amounts.
3684
2b261262
CLT
36852013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
3686
3687 PR target/42017
3688 * config/arm/arm.h (EPILOGUE_USES): Only return true
3689 for LR_REGNUM after epilogue_completed.
3690
6e022d7b
JR
36912013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
3692
3693 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 3694 is error_mark_node.
6e022d7b 3695
56cf7859
RO
36962013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3697
3698 PR target/57261
3699 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3700 and Solaris 11+/x86 with gld.
3701 * configure: Regenerate.
3702
75776c6d
JJ
37032013-05-14 Jakub Jelinek <jakub@redhat.com>
3704
3705 * expmed.c (expand_shift_1): Canonicalize rotates by
3706 constant bitsize / 2 to bitsize - 1.
7f998021 3707 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
3708 case ROTATERT>: Likewise.
3709
3710 Revert:
3711 2013-05-10 Jakub Jelinek <jakub@redhat.com>
3712
3713 * config/i386/i386.md (rotateinv): New code attr.
3714 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3715 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3716 roll $31, %eax, etc.
3717
df35498a
RB
37182013-05-14 Richard Biener <rguenther@suse.de>
3719
3720 PR middle-end/57235
3721 * tree-eh.c (sink_clobbers): Give up for successors with
3722 multiple predecessors and no virtual uses.
3723
cc6e7ece
EB
37242013-05-14 Eric Botcazou <ebotcazou@adacore.com>
3725
3726 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3727 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3728
f778dd4d
JJ
37292013-05-14 Jakub Jelinek <jakub@redhat.com>
3730
3731 PR middle-end/57251
3732 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3733 the case when both op0 and op1 have VOIDmode.
3734
bad4df9b
KP
37352013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3736
3737 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3738 in multiply-accumulate mode.
3739
56f3e9ac
GW
37402013-05-13 Guozhi Wei <carrot@google.com>
3741
3742 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3743
a3d7ab92
KT
37442013-05-13 Kai Tietz <ktietz@redhat.com>
3745
3746 PR target/56975
3747 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 3748 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 3749 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 3750 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
3751 (ix86_expand_prologue): Likewise.
3752 (ix86_expand_split_stack_prologue): Likewise.
3753 (legitimate_pic_address_disp_p): Likewise.
3754 (legitimize_pic_address): Likewise.
3755 (legitimize_tls_address): Likewise.
3756 (legitimize_pe_coff_symbol): Likewise.
3757 (output_pic_addr_const): Likewise.
3758 (construct_plt_address): Likewise.
3759 (ix86_expand_call): Likewise.
3760 (x86_output_mi_thunk): Likewise.
3761 (x86_function_profiler): Likewise.
3762
c59b7e28
SN
37632013-05-13 Sofiane Naci <sofiane.naci@arm.com>
3764
3765 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3766 similar switch cases.
3767 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3768 (aarch64_simd_mov_to_<mode>low): Delete.
3769 (aarch64_simd_mov_to_<mode>high): Delete.
3770 (move_lo_quad_<mode>): Add w<-r alternative.
3771 (aarch64_simd_move_hi_quad_<mode>): Likewise.
3772 (aarch64_simd_mov_from_*): Update type attribute.
3773 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3774 statement.
3775
5f28524a
JH
37762013-05-13 Jan Hubicka <jh@suse.cz>
3777
3778 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3779 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
3780 ix86_expand_epilogue, emit_i387_cw_initialization,
3781 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3782 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 3783
ae6fa899
JJ
37842013-05-13 Jakub Jelinek <jakub@redhat.com>
3785
3786 PR tree-optimization/45216
3787 PR tree-optimization/57157
3788 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3789 the (-Y) & (B - 1) variant if OP is |.
3790 * expmed.c (expand_shift_1): For rotations by const0_rtx just
3791 return shifted. Use (-op1) & (prec - 1) as other_amount
3792 instead of prec - op1.
3793
4502fe8d
MJ
37942013-05-13 Martin Jambor <mjambor@suse.cz>
3795
3796 PR middle-end/42371
3797 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3798 (ipa_constant_data): New type.
3799 (ipa_jump_func): Use ipa_constant_data to hold information about
3800 constant jump functions.
3801 (ipa_get_jf_constant): Adjust to jump function type changes.
3802 (ipa_get_jf_constant_rdesc): New function.
3803 (ipa_param_descriptor): New field controlled_uses.
3804 (ipa_get_controlled_uses): New function.
3805 (ipa_set_controlled_uses): Likewise.
3806 * ipa-ref.h (ipa_find_reference): Declare.
3807 * ipa-prop.c (ipa_cst_ref_desc): New type.
3808 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3809 changes.
3810 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
3811 New parameter cs. Adjust all callers.
3812 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3813 (remove_described_reference): New function.
3814 (jfunc_rdesc_usable): Likewise.
3815 (try_make_edge_direct_simple_call): Decrement controlled use count,
3816 attempt to remove reference if it hits zero.
3817 (combine_controlled_uses_counters): New function.
3818 (propagate_controlled_uses): Likewise.
3819 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3820 (ipa_edge_duplication_hook): Duplicate reference descriptions.
3821 (ipa_print_node_params): Print described use counter.
3822 (ipa_write_jump_function): Adjust to jump function type changes.
3823 (ipa_read_jump_function): New parameter CS, pass it to
3824 ipa_set_jf_constant. Adjust caller.
3825 (ipa_write_node_info): Stream controlled use count
3826 (ipa_read_node_info): Likewise.
3827 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3828 asserting.
3829 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3830 count. Remove cloning-added reference if it reaches zero.
3831 * ipa-ref.c (ipa_find_reference): New function.
3832
0864bfc2
GG
38332013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3834
e7208ea3 3835 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
3836 alignment values for AMD BD and BT architectures.
3837
640bfeb2
MG
38382013-05-13 Marc Glisse <marc.glisse@inria.fr>
3839
3840 * tree-vect-generic.c (uniform_vector_p): Move ...
3841 * tree.c (uniform_vector_p): ... here.
3842 * tree.h (uniform_vector_p): Declare it.
3843 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3844 into a scalar.
3845
3a60f32b
JJ
38462013-05-13 Jakub Jelinek <jakub@redhat.com>
3847
198fe1bf
JJ
3848 PR tree-optimization/57230
3849 * tree-ssa-strlen.c (handle_char_store): Record length for
3850 array store from STRING_CST.
3851
3a60f32b
JJ
3852 PR tree-optimization/57230
3853 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3854 check.
3855
566be57c
JR
38562013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
3857
3858 * config/epiphany/epiphany.c (epiphany_init): Check size of
3859 NUM_MODES_FOR_MODE_SWITCHING.
3860 (epiphany_expand_prologue):
3861 Remove CONFIG_REGNUM initial value handling code.
3862 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3863 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 3864 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
3865 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3866 Don't return 1 for FP_MODE_NONE.
3867 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3868 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3869 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3870 * config/epiphany/epiphany.md (save_config): New pattern.
3871
0f2c2331
UB
38722013-05-12 Uros Bizjak <ubizjak@gmail.com>
3873
3874 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3875
5b3f93c7
UB
38762013-05-10 Uros Bizjak <ubizjak@gmail.com>
3877
3878 * config/i386/i386.md (memory): Handle sseishft1.
3879 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3880 (*vec_extractv2di_1): Ditto.
3881
1f873f0e
VM
38822013-05-10 Vladimir Makarov <vmakarov@redhat.com>
3883
3884 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3885 saved registers.
3886
341427fa 38872013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
3888
3889 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3890 Add mthumb/march=armv7-a multilib.
3891 Add mthumb/march=armv7-r multilib.
3892 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3893
9e69bdde
RC
38942013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
3895
3896 * config/v850/t-rtems: Add more multilibs.
3897
9ff09a22
RB
38982013-05-10 Richard Biener <rguenther@suse.de>
3899
3900 PR tree-optimization/57214
3901 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3902 not propagate from SSA names that occur in abnormal PHI nodes.
3903
a5e0cd1d
MG
39042013-05-10 Marc Glisse <marc.glisse@inria.fr>
3905
3906 * stor-layout.c (element_precision): New function.
3907 * machmode.h (element_precision): Declare it.
3908 * tree.c (build_minus_one_cst): New function.
3909 (element_precision): Likewise.
3910 * tree.h (build_minus_one_cst): Declare new function.
3911 (element_precision): Likewise.
3912 * fold-const.c (operand_equal_p): Use element_precision.
3913 (fold_binary_loc): Handle vector types.
3914 * convert.c (convert_to_integer): Use element_precision.
3915 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3916 separately.
3917
cb2558bc
RS
39182013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
3919
3920 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3921 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3922 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3923 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3924 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3925 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3926 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3927 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3928 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3929 (Uuw8): New constraints.
3930 (Usb4): Move into alphabetical order.
3931 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3932 (sd8_operand, ub8_operand, uw8_operand): New predicates.
3933 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3934 previously unnamed patterns.
3935 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3936 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3937 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3938 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3939 of set_attr_alternative/if_then_else. Use extended_mips16 instead
3940 of specific lengths.
3941
cb3b8d33
JJ
39422013-05-10 Jakub Jelinek <jakub@redhat.com>
3943
6f93c008
JJ
3944 * config/i386/i386.md (rotateinv): New code attr.
3945 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3946 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3947 roll $31, %eax, etc.
3948
cb3b8d33
JJ
3949 PR tree-optimization/45216
3950 PR tree-optimization/57157
3951 * tree-ssa-forwprop.c (simplify_rotate): New function.
3952 (ssa_forward_propagate_and_combine): Call it.
3953
afb119be
RB
39542013-05-10 Richard Biener <rguenther@suse.de>
3955
3956 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3957 disable peeling when we version for aliasing.
3958 (vector_alignment_reachable_p): Honor explicit user alignment.
3959 (vect_supportable_dr_alignment): Likewise.
3960 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3961 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3962 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3963 then peeling to arrange for the cost-model check to come first.
3964
01ae4861
AM
39652013-05-10 Alan Modra <amodra@gmail.com>
3966
3967 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3968 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3969 * configure: Regenerate.
3970
ebc9a431
AM
39712013-05-10 Alan Modra <amodra@gmail.com>
3972
3973 PR target/55033
3974 * varasm.c (default_elf_select_section): Move !DECL_P check..
3975 (get_named_section): ..to here before calling get_section_name.
3976 Adjust assertion.
3977 (default_section_type_flags): Add DECL_P check.
3978 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3979 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3980
d4bca93c
JR
39812013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
3982
3983 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3984 When using gen_stack_adjust_str with a register offset, add a
3985 REG_FRAME_RELATED_EXPR note.
3986
60ca9a65
UB
39872013-05-09 Uros Bizjak <ubizjak@gmail.com>
3988
3989 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
3990 (*vec_extractv4si_zext_mem): Ditto.
3991 (*vec_extractv2di): Add 0->x and x->x alternatives.
3992 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
3993 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
3994
a3409c02
JM
39952013-05-09 Jason Merrill <jason@redhat.com>
3996
0138d6b2
JM
3997 N3639 C++1y VLA support
3998 * gimplify.c (gimplify_vla_decl): Don't touch an existing
3999 DECL_VALUE_EXPR.
4000
a3409c02
JM
4001 * tree.c (build_constructor_va): New.
4002 * tree.h: Declare it.
4003
66e6b990
MJ
40042013-05-09 Martin Jambor <mjambor@suse.cz>
4005
4006 PR lto/57084
4007 * gimple-fold.c (canonicalize_constructor_val): Call
4008 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4009
64cfa6c0
JH
40102013-05-09 Jan Hubicka <jh@suse.cz>
4011 Richard Biener <rguenther@suse.de>
4012
4013 PR lto/54095
4014 * symtab.c (symtab_make_decl_local): Do not add private names.
4015
c3167b00
JH
40162013-05-09 Jan Hubicka <jh@suse.cz>
4017
4018 PR lto/54095
4019 * symtab.c (insert_to_assembler_name_hash): Handle clones.
4020 (unlink_from_assembler_name_hash): Likewise.
4021 (symtab_prevail_in_asm_name_hash, symtab_register_node,
4022 symtab_unregister_node, symtab_initialize_asm_name_hash,
4023 change_decl_assembler_name): Update.
4024
12dc6974
SN
40252013-05-09 Sofiane Naci <sofiane.naci@arm.com>
4026
4027 * config/aarch64/aarch64.md: New movtf split.
4028 (*movtf_aarch64): Update.
4029 (aarch64_movdi_tilow): Handle TF modes and rename to
4030 aarch64_movdi_<mode>low.
4031 (aarch64_movdi_tihigh): Handle TF modes and rename to
4032 aarch64_movdi_<mode>high
4033 (aarch64_movtihigh_di): Handle TF modes and rename to
4034 aarch64_mov<mode>high_di
4035 (aarch64_movtilow_di): Handle TF modes and rename to
4036 aarch64_mov<mode>low_di
4037 (aarch64_movtilow_tilow): Remove spurious whitespace.
4038 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4039 splits.
4040 (aarch64_print_operand): Update.
4041
227eb343
AM
40422013-05-09 Alan Modra <amodra@gmail.com>
4043
4044 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4045 powerpc64le.
4046 * configure: Regenerate.
4047
0b013847
UB
40482013-05-08 Uros Bizjak <ubizjak@gmail.com>
4049
4050 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4051 splitter preparation statements.
4052 * config/i386/sse.md (*vec_extract* splitters): Ditto.
4053 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4054 adjust_address_nv.
4055
1dc3d6e9
BS
40562013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4057
4058 * gimple-ssa-strength-reduction.c (count_candidates): Change
4059 return value to int.
4060 (analyze_candidates_and_replace): Change type of length to int.
4061
e61e7d28
UB
40622013-05-08 Uros Bizjak <ubizjak@gmail.com>
4063
4064 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4065 (*vec_extract<mode>): Use VI12_128 mode iterator.
4066 (*vec_extract<mode>_mem): Ditto.
4067 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4068 attribute.
4069
4fbfcf44
DN
40702013-05-08 Diego Novillo <dnovillo@google.com>
4071
4072 PR bootstrap/54659
4073
4074 Revert:
4fbfcf44
DN
4075 2012-08-17 Diego Novillo <dnovillo@google.com>
4076
e61e7d28
UB
4077 PR bootstrap/54281
4078 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4079 * config.in: Regenerate.
4080 * configure: Regenerate.
4081 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 4082
702d8703
JH
40832013-05-08 Jan Hubicka <jh@suse.cz>
4084
4085 PR lto/54095
4086 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4087 * cgraph.h (symtab_node_base): Add unique_name.
4088 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4089 input_overwrite_node, input_varpool_node): Stream unique_name.
4090 * cgraphclones.c (cgraph_create_virtual_clone,
4091 cgraph_function_versioning): Set unique_name.
4092 * ipa.c (function_and_variable_visibility): Set unique_name.
4093
8b28cf47
BS
40942013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4095
4096 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4097 (alloc_cand_and_find_basis): Restrict conditional candidate
4098 processing to CAND_MULTs.
4099
e86074fd
JH
41002013-05-08 Jan Hubicka <jh@suse.cz>
4101
4102 PR lto/54095
4103 lto-symtab.c (lto_symtab_symbol_p): New function.
4104 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4105 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4106 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4107 Skip static symbols.
4108
44398cbe
PC
41092013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
4110
4111 PR tree-optimization/57200
4112 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4113 Only call inform if the preceding warning_at returns true.
4114
f6bc1c4a
HS
41152013-05-07 Han Shen <shenhan@google.com>
4116
4117 * cfgexpand.c (record_or_union_type_has_array_p): New function.
4118 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4119 * common.opt (fstack-protector-strong): New option.
4120 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4121 * doc/invoke.texi (Optimization Options): Document
4122 "-fstack-protector-strong".
4123 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4124
4ffecb1f
SB
41252013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4126
4127 * config/mips/mips.c (mips_machine_reorg2): Return 0.
4128
5a107a0f
VM
41292013-05-07 Vladimir Makarov <vmakarov@redhat.com>
4130
4131 * ira.c (update_equiv_regs): Add insn having equiv memory even if
4132 it is not lhs of the insn.
4133 (setup_reg_equiv): Remove insn having equiv memory which it is not
4134 lhs of the insn.
4135 * lra-constraints.c (process_address): Try to improve generation
4136 code for address base + disp.
4137 (lra_constraints): Make correct the code for checking insn setting
4138 up backward equivalence. Remove insn only if it is in the init
4139 insn list.
4140 * lra-eliminations.c (update_reg_eliminate): Change return value.
4141 (lra_eliminate): Use the result.
4142
3f5783ea
UB
41432013-05-07 Uros Bizjak <ubizjak@gmail.com>
4144
4145 * config/i386/sse.md (ssescalarnummask): New mode attribute.
4146 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4147 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4148 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4149 register target operands.
4150 (*vec_extractv8hi_sse2): New pattern.
4151 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4152 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4153 (*vec_extract<mode>_mem): New insn and split pattern.
4154
8a5800b8
CL
41552013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
4156
4157 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4158 (TARGET_ASAN_SHADOW_OFFSET): Define.
4159 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4160 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4161
7bf55a70
BS
41622013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4163
4164 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4165 (incr_vec_index): Return -1 if increment not found.
4166 (create_add_on_incoming_edge): Assert if increment not found.
4167 (record_increment): Limit number of increments recorded.
4168 (all_phi_incrs_profitable): Return false if an increment not found.
4169 (replace_profitable_candidates): Don't process increments that were
4170 not recorded.
4171 (analyze_candidates_and_replace): Limit size of incr_vec.
4172
3f8825c0
RB
41732013-05-07 Richard Biener <rguenther@suse.de>
4174
4175 * calls.c (special_function_p): setjmp-like functions are leaf.
4176 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4177 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4178
fd4842cd
SN
41792013-05-07 Sofiane Naci <sofiane.naci@arm.com>
4180
4181 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4182 (aarch64_simd_mov<mode>): New expander.
4183 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4184 (aarch64_simd_mov_to_<mode>high): Likewise.
4185 (aarch64_simd_mov_from_<mode>low): Likewise.
4186 (aarch64_simd_mov_from_<mode>high): Likewise.
4187 (aarch64_dup_lane<mode>): Update.
4188 (aarch64_dup_lanedi): New instruction pattern.
4189 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4190 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4191
a7a7d10e
BS
41922013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4193
4194 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4195 (replace_mult_candidate): Remove unnecessary argument; remove
4196 unnecessary parameter from call to introduce_cast_before_cand.
4197 (replace_unconditional_candidate): Remove unnecessary parameter
4198 from call to replace_mult_candidate.
4199 (replace_conditional_candidate): Likewise.
4200 (insert_initializers): Use make_temp_ssa_name.
4201 (introduce_cast_before_cand): Remove unnecessary argument; use
4202 make_temp_ssa_name.
4203 (replace_one_candidate): Remove unnecessary argument; remove
4204 unnecessary parameter from calls to introduce_cast_before_cand.
4205 (replace_profitable_candidates): Remove unnecessary parameters
4206 from calls to replace_one_candidate.
4207
29105868
BS
42082013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4209
4210 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4211 phi def as possibly hiding a basis for a CAND_ADD whose operands
4212 have been commuted in the analysis.
4213 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4214
4095f9fa
N
42152013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4216
4217 * config/aarch64/aarch64.md
4218 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4219 shift value between 0-4.
4220
39e843e8
RB
42212013-05-07 Richard Biener <rguenther@suse.de>
4222
4223 * double-int.h (rshift): New overload.
4224 * double-int.c (rshift): New function.
4225 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4226 (create_reference_ops_from_ref): Remove.
4227 (vn_reference_insert): Use shared ops for constructing the
4228 reference and copy it.
4229
0a1a83cb
RB
42302013-05-07 Richard Biener <rguenther@suse.de>
4231
4232 PR middle-end/57190
4233 * tree-eh.c (sink_clobbers): Properly propagate
4234 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4235
43303d6f
JJ
42362013-05-07 Jakub Jelinek <jakub@redhat.com>
4237
ba7e83f8
JJ
4238 PR tree-optimization/57149
4239 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4240 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4241 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4242 uninit_undefined_value_p instead of ssa_undefined_value_p.
4243
43303d6f
JJ
4244 PR debug/57184
4245 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4246 for modifier == EXPAND_INITIALIZER.
4247
14523c25
AB
42482013-05-07 Anton Blanchard <anton@samba.org>
4249
4250 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4251 for powerpc64 little endian.
4252 * configure: Regenerate.
4253
cb7c8be9
GS
42542013-05-06 Graham Stott <grahams@btinternet.com>
4255
4256 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4257 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4258 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4259 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4260
42612013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
4262
4263 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4264 codes which allow non-lvalues.
4265
9a0ee7b0
MG
42662013-05-06 Marc Glisse <marc.glisse@inria.fr>
4267
4268 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4269 components are all 1s.
4270 (integer_minus_onep): New function.
4271 * tree.h (integer_minus_onep): Declare it.
4272 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4273 integer_minus_onep instead of integer_all_onesp.
4274
f2c17ea9
OE
42752013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4276
4277 PR target/52933
4278 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4279 variations of these patterns.
4280
f75e6a51
UB
42812013-05-06 Uros Bizjak <ubizjak@gmail.com>
4282
4283 * config/i386/i386.md (isa): Add x64_sse4 member.
4284 (enabled): Handle x64_sse4.
4285 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4286 instruction for 64bit SSE4_1 targets. Update insn attributes.
4287 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4288 instruction for SSE4_1 targets. Update insn attributes.
4289 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4290 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4291 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4292 const_1 selector.
4293 (*vec_extractv4si): Rename from *sse4_1_pextrd.
4294 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4295 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4296
a986d468
OE
42972013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4298
4299 PR target/57108
4300 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4301
382522cb
MK
43022013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
4303
4304 * final.c (do_assembler_dialects): Don't handle curly braces and
4305 vertical bar escaped by % as dialect delimiters.
4306 (output_asm_insn): Print curly braces and vertical bar if escaped
4307 by % and ASSEMBLER_DIALECT defined.
4308 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4309 * doc/tm.texi: Regenerated.
4310
fb0d5c60
SB
43112013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4312
fb0d5c60
SB
4313 * config/mips/mips.c: Include tree-pass.h.
4314 (mips_reorg): Split in pre- and post-dbr_schedule parts.
4315 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4316 (pass_mips_machine_reorg2): New machine specific pass.
4317 (insert_pass_mips_machine_reorg2): New pass plugin definition.
4318 (mips_option_override): Register the new pass.
4319 * rtl.h (cleanup_barriers): Remove prototype.
4320 (dbr_schedule): Likewise.
4321 * jump.c (cleanup_barriers): Make static.
4322 * reorg.c (dbr_schedule): Likewise.
4323
aa06a978
RB
43242013-05-06 Richard Biener <rguenther@suse.de>
4325
4326 PR tree-optimization/57185
4327 * tree-parloops.c (add_field_for_reduction): Handle anonymous
4328 SSA names properly.
4329
0b953bec
UB
43302013-05-06 Uros Bizjak <ubizjak@gmail.com>
4331
4332 PR target/57106
4333 * config/i386/i386.c (add_parameter_dependencies): Add dependence
4334 between "first_arg" and "insn", not "last" and "insn".
4335
28708525
WS
43362013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4337
4338 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4339 (find_candidates_in_block): Re-enable slsr_process_phi.
4340 (create_phi_basis): Fix double counting of candidate adjustment.
4341
0107dca2
RB
43422013-05-06 Richard Biener <rguenther@suse.de>
4343
4344 PR middle-end/57147
4345 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4346 the edge is also fallthru, preserve it and just clear the
4347 abnormal flag.
4348 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4349 also complex, preserve that and just clear the fallthru flag.
4350 * tree-inline.c (update_ssa_across_abnormal_edges): Also
4351 update virtual operands.
4352
470d4d13
AM
43532013-05-06 Alan Modra <amodra@gmail.com>
4354
4355 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4356 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4357 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4358 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4359 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4360 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4361
8f1dbf8d
AM
43622013-05-06 Alan Modra <amodra@gmail.com>
4363
4364 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4365 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
4366 (DEFAULT_ASM_ENDIAN): Define.
4367 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4368 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4369 Update -K PIC clause from sysv4.h.
4370 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4371 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4372
54890767
AM
43732013-05-06 Alan Modra <amodra@gmail.com>
4374
4375 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4376 twice for little-endian.
4377 (ashrdi3_no_power, ashrdi3): Support little-endian.
4378
2353515d
OE
43792013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4380
4381 PR target/55303
4382 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4383 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4384 related expanders.
4385 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4386 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4387 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4388 New predicates.
4389
33e67557
SB
43902013-05-05 Steven Bosscher <steven@gcc.gnu.org>
4391 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4392
4393 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4394 * config/pa/pa.opt: Make mbig-switch a no-op.
4395 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4396 (CASE_VECTOR_MODE): Always return SImode.
4397 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4398 for the !TARGET_BIG_SWITCH case.
4399 * config/pa/pa-linux.h: Likewise.
4400 * config/pa/pa-openbsd.h: Likewise.
4401 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4402 * config/pa/pa.md (short_jump): Remove define_insn.
4403 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4404 (casesi0): Remove define_insn.
4405 (type): Remove btable_branch.
4406 (pa_combine_type): Likewise.
4407 (in_nullified_branch_delay): Likewise.
4408 (in_call_delay): Likewise.
4409 (define_delay): Likewise.
4410 (define_insn_reservation "Z3"): Likewise.
4411 (define_insn_reservation "Z4"): Likewise.
4412 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4413 (pa_adjust_insn_length): Remove adjustment for btable branches.
4414 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4415 and mno-big-switch
4416
3095685e
UB
44172013-05-05 Uros Bizjak <ubizjak@gmail.com>
4418
4419 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4420 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4421 Add m->r,x alternatives.
4422 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4423 splitters using SWI48x mode iterator.
4424 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
4425 TARGET_64BIT. Add m->x alternative.
4426 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4427 Add o->x alternative. Enable for TARGET_SSE.
4428 (sse_storeq): Remove expander.
4429 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4430 with memory input operand.
4431 (*vec_extractv2di_1 splitter): New.
4432 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4433 * config/i386/i386.md (ssevecmodelower): New mode attribute.
4434
4b36ae28
SB
44352013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4436
4437 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
4438 (INT_LOWPART): Delete.
4439 (extract_MB): Adjust.
4440 (extract_ME): Adjust.
4441 (print_operand): Adjust.
4442
da226db2
SB
44432013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4444
4445 * config/rs6000/predicates.md (reg_or_add_cint_operand,
4446 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4447 (reg_or_logical_cint_operand, easy_fp_constant,
4448 logical_const_operand): Delete "CONST_DOUBLE" case.
4449 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4450 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 4451 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
4452 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4453 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4454 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4455 test.
4456 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4457 CONST_DOUBLE DImode/VOIDmode case.
4458 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4459 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4460 CONST_DOUBLE VOIDmode case.
4461 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4462 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4463 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4464 Delete CONST_DOUBLE case.
4465 (splitters for mov FMOVE64 const_double): Delete
4466 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4467 "HOST_BITS_PER_WIDE_INT >= 64" test.
4468 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4469 case.
4470 (mov DI const_double): Delete.
4471
40de22d6
JJ
44722013-05-04 Jakub Jelinek <jakub@redhat.com>
4473
4474 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4475 on op shows all bits zero in mode of a lowpart subreg, return zero.
4476
5ec6aff2
MM
44772013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4478
4479 PR target/57150
4480 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4481 to save TFmode registers and DImode to save TImode registers for
4482 caller save operations.
4483 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4484 mark being partially clobbered since they only use the first
4485 double word.
4486
4487 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4488 and TDmode only use the upper 64-bits of each VSX register.
4489
2cefad90
BS
44902013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4491
4492 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4493 (find_candidates_in_block): Disable slsr_process_phi.
4494
d6d7eee1
GW
44952013-05-03 Guozhi Wei <carrot@google.com>
4496
4497 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
4498 constructor to ...
4499 (build_init_ctor): ... here.
d6d7eee1 4500
9b92d12b
BS
45012013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4502
4503 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4504 (slsr_cand_d): Redefine def_phi.
4505 (stride_status, phi_adjust_status, count_phis_status): New enums.
4506 (find_phi_def): New.
4507 (find_basis_for_base_expr): New.
4508 (find_basis_for_candidate): Handle hidden bases.
4509 (alloc_cand_and_find_basis): Handle phi candidates.
4510 (slsr_process_phi): New.
4511 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4512 (create_mul_imm_cand): Likewise.
4513 (create_add_ssa_cand): Exclude phi base candidates.
4514 (create_add_imm_cand): Likewise.
4515 (slsr_process_cast): Likewise.
4516 (slsr_process_copy): Likewise.
4517 (find_candidates_in_block): Handle phi candidates.
4518 (dump_candidate): Likewise.
4519 (unconditional_cands): Delete.
4520 (unconditional_cands_with_known_stride_p): Delete.
4521 (phi_dependent_cand_p): New.
4522 (cand_increment): Handle phi-dependent candidates.
4523 (replace_dependent): Delete.
4524 (replace_mult_candidate): New.
4525 (replace_unconditional_candidate): New.
4526 (incr_vec_index): Move to avoid forward reference.
4527 (create_add_on_incoming_edge): New.
4528 (create_phi_basis): New.
4529 (replace_dependents): Delete.
4530 (replace_conditional_candidate): New.
4531 (phi_add_costs): New.
4532 (replace_uncond_cands_and_profitable_phis): New.
4533 (record_increment): Handle phi adjustments.
4534 (record_phi_increments): New.
4535 (record_increments): Handle phi adjustments.
4536 (phi_incr_cost): New.
4537 (lowest_cost_path): Handle phis.
4538 (total_savings): Likewise.
4539 (analyze_increments): Likewise.
4540 (ncd_with_phi): New.
4541 (ncd_of_cand_and_phis): New.
4542 (nearest_common_dominator_for_cands): Handle phi increments.
4543 (all_phi_incrs_profitable): New.
4544 (replace_profitable_candidates): Handle phi-dependent candidates.
4545 (analyze_candidates_and_replace): Likewise.
4546
68f073d4
TJ
45472013-05-03 Teresa Johnson <tejohnson@google.com>
4548
4549 PR bootstrap/57154
4550 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4551 do not exceed REG_BR_PROB_BASE.
4552
a4ee7cb9
JL
45532013-05-03 Jeff Law <law@redhat.com>
4554
ade67f70 4555 PR tree-optimization/57144
a4ee7cb9
JL
4556 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4557 operand of the condition will bit into the new type when eliminating
4558 a cast feeding a condition.
4559
47954c4e
JJ
45602013-05-03 Jakub Jelinek <jakub@redhat.com>
4561
4562 PR rtl-optimization/57130
3095685e
UB
4563 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4564 of COMPARE as in_code to the recursive call if needed.
47954c4e 4565
3c21604f
UB
45662013-05-03 Uros Bizjak <ubizjak@gmail.com>
4567
4568 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4569 (enabled): Handle new members.
4570 * config/i386/sse.md (*vec_concatv2si): Merge from
4571 *vec_concatv2si_sse2 and vec_concatv2si_sse.
4572 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4573
95c03b36
JR
45742013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
4575
4576 PR tree-optimization/57027
4577 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4578 for fnms opportunity, check we got the prerequisite kind
4579 of tree / gimple before using accessor functions.
4580
07bfc9ec
RB
45812013-05-03 Richard Biener <rguenther@suse.de>
4582
4583 * double-int.h (lshift): New overload without precision
4584 and arith argument.
4585 (operator *=, operator +=, operator -=): Move ...
4586 * double-int.c (operator *=, operator +=, operator -=): ... here
4587 and implement more efficiently.
4588 (mul_double_with_sign): Remove.
4589 (lshift_double): Adjust to take unsinged shift argument, push
4590 dispatching code to callers.
4591 (mul_double_wide_with_sign): Add early out for callers that
4592 are not interested in high parts or overflow.
4593 (lshift): New function.
4594 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4595 dispatch code here.
4596 (lrotate, rrotate): Use logical shifts.
4597 * expr.c (get_inner_reference): Use lshift.
4598 * fixed-value.c (do_fixed_divide): Likewise.
4599 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4600 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4601 (indirect_refs_may_alias_p): Likewise.
4602 (stmt_kills_ref_p_1): Likewise.
4603
7769bb64
VP
46042013-05-03 Vidya Praveen <vidyapraveen@arm.com>
4605
4606 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4607
1d0c8e5c
VP
46082013-05-03 Vidya Praveen <vidyapraveen@arm.com>
4609
4610 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4611 scalar form of FABD instruction.
4612
f15feaf9
VM
46132013-05-02 Vladimir Makarov <vmakarov@redhat.com>
4614
4615 * lra-constraints.c (process_alt_operands): Add checking alt
4616 number to choose the best alternative.
4617
d90e76d4
RB
46182013-05-02 Richard Biener <rguenther@suse.de>
4619
4620 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4621 bitmap and its handling.
4622 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4623
9f8e7a96
RB
46242013-05-02 Richard Biener <rguenther@suse.de>
4625
4626 PR middle-end/57140
4627 * tree-inline.c (copy_loops): Properly handle removed loops.
4628 (copy_cfg_body): Mark destination loops for fixup if source
4629 loops needed fixup.
4630
f3a81b39
GY
46312013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
4632
4633 PR target/56732
4634 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4635 generating simple_return for naked functions.
4636
7b920a9a
MJ
46372013-05-02 Martin Jambor <mjambor@suse.cz>
4638
4639 PR middle-end/56988
4640 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4641 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4642 flags match.
4643 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4644 ipa_agg_replacement_value structures.
4645 (known_aggs_to_agg_replacement_list): Likewise.
4646 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4647 (read_agg_replacement_chain): Likewise.
4648 (ipcp_transform_function): Also check that by_ref flags match.
4649
2c41c19d
RB
46502013-05-02 Richard Biener <rguenther@suse.de>
4651
4652 * graphds.h (struct graph): Add obstack member.
4653 * graphds.c (new_graph): Initialize obstack and allocate
4654 vertices from it.
4655 (add_edge): Allocate edge from the obstack.
3c21604f 4656 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 4657
8b47039c
TJ
46582013-05-02 Teresa Johnson <tejohnson@google.com>
4659
4660 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4661 divides.
4662 * cfg.c (update_bb_profile_for_threading): Ditto.
4663 * tree-inline.c (copy_bb): Ditto.
4664 (copy_edges_for_bb): Ditto.
4665 (initialize_cfun): Ditto.
4666 (copy_cfg_body): Ditto.
4667 (expand_call_inline): Ditto.
4668 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4669 (estimate_node_size_and_time): Ditto.
4670 (inline_merge_summary): Ditto.
4671 * cgraphclones.c (cgraph_clone_edge): Ditto.
4672 (cgraph_clone_node): Ditto.
4673 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4674 (compute_trg_info): Ditto.
4675
da65928c
IB
46762013-05-02 Ian Bolton <ian.bolton@arm.com>
4677
4678 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4679 S reg when fp attribute set.
4680 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4681
add3c965
IB
46822013-05-02 Ian Bolton <ian.bolton@arm.com>
4683
4684 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4685 New pattern.
4686 (*and_one_cmplsi3_compare0_uxtw): Likewise.
4687 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4688 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4689
fdd43ac4
RB
46902013-05-02 Richard Biener <rguenther@suse.de>
4691
4692 * tree-scalar-evolution.c (scev_info_hasher): Remove.
4693 (struct instantiate_cache_entry): New type.
4694 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4695 (struct instantiate_cache_type): New type.
4696 (set_instantiated_value, get_instantiated_value): Remove.
4697 (get_instantiated_value_entry): New function.
4698 (instantiate_scev_name): Use the new cache and adjust.
4699 (instantiate_scev_poly): Adjust.
4700 (instantiate_scev_binary): Likewise.
4701 (instantiate_array_ref): Likewise.
4702 (instantiate_scev_convert): Likewise.
4703 (instantiate_scev_not): Likewise.
4704 (instantiate_scev_3): Likewise.
4705 (instantiate_scev_2): Likewise.
4706 (instantiate_scev_r): Likewise.
4707 (instantiate_scev): Likewise.
4708 (resolve_mixers): Likewise.
4709
36ff9dfb
VM
47102013-05-01 Vladimir Makarov <vmakarov@redhat.com>
4711
4712 PR target/57091
4713 * lra-constraints.c (best_small_class_operands_num): Remove.
4714 (process_alt_operands): Remove small_class_operands_num. Take
4715 small classes operands into losers and only if the operand is not
4716 matched. Modify debugging output.
4717 (curr_insn_transform): Remove best_small_class_operands_num.
4718 Print insn name.
4719
36054fab
JG
47202013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4721
4722 * config/aarch64/aarch64-builtins.c
4723 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4724 * config/aarch64/aarch64-simd-builtins.def
4725 (reduc_splus_): Add new modes.
4726 (reduc_uplus_): New.
4727 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4728 (reduc_uplus_v4sf): Likewise.
4729 (reduc_splus_v4sf): Likewise.
4730 (aarch64_addv<mode>): Likewise.
4731 (reduc_uplus_<mode>): Likewise.
4732 (reduc_splus_<mode>): Likewise.
4733 (aarch64_addvv2di): Likewise.
4734 (reduc_uplus_v2di): Likewise.
4735 (reduc_splus_v2di): Likewise.
4736 (aarch64_addvv2si): Likewise.
4737 (reduc_uplus_v2si): Likewise.
4738 (reduc_splus_v2si): Likewise.
4739 (reduc_<sur>plus_<mode>): New.
4740 (reduc_<sur>plus_v2di): Likewise.
4741 (reduc_<sur>plus_v2si): Likewise.
4742 (reduc_<sur>plus_v4sf): Likewise.
4743 (aarch64_addpv4sf): Likewise.
4744 * config/aarch64/arm_neon.h
4745 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4746 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4747 add UNSPEC_SADDV, UNSPEC_UADDV.
4748 (SUADDV): New.
4749 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4750
6dce23a8
JG
47512013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4752
4753 * config/aarch64/arm_neon.h
4754 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4755
1598945b
JG
47562013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4757
4758 * config/aarch64/aarch64-builtins
4759 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4760
998eaf97
JG
47612013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4762
4763 * config/aarch64/aarch64-simd-builtins.def
4764 (reduc_smax_): New.
4765 (reduc_smin_): Likewise.
4766 (reduc_umax_): Likewise.
4767 (reduc_umin_): Likewise.
4768 (reduc_smax_nan_): Likewise.
4769 (reduc_smin_nan_): Likewise.
4770 (fmax): Remove.
4771 (fmin): Likewise.
4772 (smax): Update for V2SF, V4SF and V2DF modes.
4773 (smin): Likewise.
4774 (smax_nan): New.
4775 (smin_nan): Likewise.
4776 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4777 (<su><maxmin><mode>3): ...This, refactor.
4778 (s<maxmin><mode>3): New.
4779 (<maxmin_uns><mode>3): Likewise.
4780 (reduc_<maxmin_uns>_<mode>): Refactor.
4781 (reduc_<maxmin_uns>_v4sf): Likewise.
4782 (reduc_<maxmin_uns>_v2si): Likewise.
4783 (aarch64_<fmaxmin><mode>: Remove.
4784 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4785 new builtin names.
4786 (vmin<q>_f<32,64>): Likewise.
4787 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4788 (FMAXMIN): New.
4789 (su): Add mappings for smax, smin, umax, umin.
4790 (maxmin): New.
4791 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4792 (FMAXMIN): Rename as...
4793 (FMAXMIN_UNS): ...This.
4794 (maxminv): Remove.
4795 (fmaxminv): Likewise.
4796 (fmaxmin): Likewise.
4797 (maxmin_uns): New.
4798 (maxmin_uns_op): Likewise.
4799
bd11644e
JG
48002013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4801
4802 * config/aarch64/arm_neon.h
4803 (vac<ge, gt><sd>_f<32, 64>): Rename to...
4804 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4805 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4806
75dd5ace
JG
48072013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4808
4809 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4810 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4811
7c19979f
JG
48122013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4813
4814 * config/aarch64/aarch64-simd.md
4815 (vcond<mode>_internal): Handle special cases for constant masks.
4816 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4817 (vcondu<mode><mode>): Likewise.
4818 (vcond<v_cmp_result><mode>): New.
4819
bb60efd9
JG
48202013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4821
4822 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4823 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4824 * config/aarch64/aarch64-simd-builtins.def
4825 (cmeq): Update to BUILTIN_VALLDI.
4826 (cmgt): Likewise.
4827 (cmge): Likewise.
4828 (cmle): Likewise.
4829 (cmlt): Likewise.
4830 * config/aarch64/arm_neon.h
4831 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4832 to builtins or C as appropriate.
4833
889b9412
JG
48342013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4835
4836 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4837 (cmgeu): ...This.
4838 (cmhi): Rename to...
4839 (cmgtu): ...This.
4840 * config/aarch64/aarch64-simd.md
4841 (simd_mode): Add SF.
4842 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4843 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4844 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4845 (cstore<mode>_neg): ...This.
4846 * config/aarch64/iterators.md
4847 (VALLF): new.
4848 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4849 (COMPARISONS): New.
4850 (UCOMPARISONS): Likewise.
4851 (optab): Add missing comparisons.
4852 (n_optab): New.
4853 (cmp_1): Likewise.
4854 (cmp_2): Likewise.
4855 (CMP): Likewise.
4856 (cmp): Remove.
4857 (VCMP_S): Likewise.
4858 (VCMP_U): Likewise.
4859 (V_cmp_result): Add DF, SF modes.
4860 (v_cmp_result): Likewise.
4861 (v): Likewise.
4862 (vmtype): Likewise.
4863 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4864
0a7dbb76
GY
48652013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
4866
4867 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4868 define_insn to define_insn_and_split.
4869 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4870 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4871 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4872 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4873 (thumb2_negscc): Likewise.
4874
fb614ca6
GY
48752013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
4876
4877 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4878
9e64a0bf
GY
48792013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
4880
4881 * config/arm/thumb2.md: Remove trailing whitespaces.
4882
d6b28156
RS
48832013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4884
4885 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4886 Use gen_int_mode rather than GEN_INT.
4887
f91674c3
L
48882013-04-30 H.J. Lu <hongjiu.lu@intel.com>
4889
b0dec607 4890 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
4891 debug_gimple_stmt.
4892
3551257c
RB
48932013-04-30 Richard Biener <rguenther@suse.de>
4894
4895 PR middle-end/57122
3c21604f 4896 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 4897
4c1aff1c
RB
48982013-04-30 Richard Biener <rguenther@suse.de>
4899
4900 PR middle-end/57107
4901 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4902
54b8379a
AB
49032013-04-30 Andrey Belevantsev <abel@ispras.ru>
4904
4905 PR rtl-optimization/56957
4906 PR rtl-optimization/57105
54b8379a
AB
4907 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4908 variable. Use just INSN_UID for determining whether an insn
4909 should be only disconnected from the insn stream.
4910 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4911
abc27962
JJ
49122013-04-30 Jakub Jelinek <jakub@redhat.com>
4913
4914 PR tree-optimization/57104
4915 * tsan.c (instrument_expr): Don't instrument accesses to
4916 DECL_HARD_REGISTER VAR_DECLs.
4917
0fc822d0
RB
49182013-04-30 Richard Biener <rguenther@suse.de>
4919
4920 * function.h (loops_for_fn): New inline function.
4921 (set_loops_for_fn): Likewise.
4922 * cfgloop.h (place_new_loop): Add struct function parameter.
4923 (get_loop): Likewise.
4924 (get_loops): Likewise.
4925 (number_of_loops): Likewise.
4926 (fel_next): Adjust.
4927 (fel_init): Likewise.
4928 * cfg.c (get_loop_copy): Adjust.
4929 * cfgloop.c (flow_loops_dump): Likewise.
4930 (record_loop_exits): Likewise.
4931 (verify_loop_structure): Likewise.
4932 * cfgloopanal.c (mark_irreducible_loops): Likewise.
4933 (estimate_reg_pressure_cost): Likewise.
4934 (mark_loop_exit_edges): Likewise.
4935 * cfgloopmanip.c (place_new_loop): Likewise.
4936 (add_loop): Likewise.
4937 (duplicate_loop): Likewise.
4938 * graph.c (draw_cfg_nodes): Likewise.
4939 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4940 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4941 (extract_affine_chrec): Likewise.
4942 (build_scop_iteration_domain): Likewise.
4943 * graphite.c (graphite_initialize): Likewise.
4944 * ira-build.c (create_loop_tree_nodes): Likewise.
4945 (more_one_region_p): Likewise.
4946 (rebuild_regno_allocno_maps): Likewise.
4947 (mark_loops_for_removal): Likewise.
4948 (mark_all_loops_for_removal): Likewise.
4949 (remove_unnecessary_regions): Likewise.
4950 (ira_build): Likewise.
4951 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4952 * loop-init.c (fix_loop_structure): Likewise.
4953 (gate_rtl_move_loop_invariants): Likewise.
4954 (gate_rtl_unswitch): Likewise.
4955 (gate_rtl_unroll_and_peel_loops): Likewise.
4956 (rtl_doloop): Likewise.
4957 * lto-streamer-in.c (input_cfg): Likewise.
4958 * lto-streamer-out.c (output_cfg): Likewise.
4959 * modulo-sched.c (sms_schedule): Likewise.
4960 * predict.c (tree_estimate_probability): Likewise.
4961 (tree_estimate_probability_driver): Likewise.
4962 (estimate_loops): Likewise.
4963 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4964 (move_sese_region_to_fn): Likewise.
4965 (debug_loop_num): Likewise.
4966 * tree-chrec.c (chrec_evaluate): Likewise.
4967 (hide_evolution_in_other_loops_than_loop): Likewise.
4968 (chrec_component_in_loop_num): Likewise.
4969 (reset_evolution_in_loop): Likewise.
4970 (evolution_function_is_invariant_rec_p): Likewise.
4971 * tree-if-conv.c (main_tree_if_conversion): Likewise.
4972 * tree-inline.c (copy_loops): Likewise.
4973 (copy_cfg_body): Likewise.
4974 (tree_function_versioning): Likewise.
4975 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4976 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4977 Likewise.
4978 (add_to_evolution_1): Likewise.
4979 (scev_const_prop): Likewise.
4980 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4981 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4982 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4983 (tree_ssa_lim_initialize): Likewise.
4984 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4985 (verify_loop_closed_ssa): Likewise.
4986 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
4987 (tree_ssa_loop_im): Likewise.
4988 (tree_ssa_loop_unswitch): Likewise.
4989 (tree_vectorize): Likewise.
4990 (check_data_deps): Likewise.
4991 (tree_ssa_loop_ivcanon): Likewise.
4992 (tree_ssa_loop_bounds): Likewise.
4993 (tree_complete_unroll): Likewise.
4994 (tree_complete_unroll_inner): Likewise.
4995 (tree_parallelize_loops): Likewise.
4996 (tree_ssa_loop_prefetch): Likewise.
4997 (tree_ssa_loop_ivopts): Likewise.
4998 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
4999 * tree-vectorizer.c (vectorize_loops): Likewise.
5000
37953bd3
MF
50012013-04-29 Mike Frysinger <vapier@gentoo.org>
5002
5003 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5004 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5005 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5006 with EABI_LINK_SPEC.
5007
f9ed28db
UB
50082013-04-29 Uros Bizjak <ubizjak@gmail.com>
5009
5010 PR target/44578
5011 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5012 alternative.
5013
deca73f5
VM
50142013-04-29 Vladimir Makarov <vmakarov@redhat.com>
5015
5016 PR target/57097
37953bd3 5017 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
5018 using memory for pseudos. Print cost dump for alternatives.
5019 Modify cost values for conflicts with early clobbers.
5020 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5021
fdca7d03
UB
50222013-04-29 Uros Bizjak <ubizjak@gmail.com>
5023
5024 PR target/57098
5025 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5026
0b064172
IB
50272013-04-29 Ian Bolton <ian.bolton@arm.com>
5028
5029 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5030 from/to S register.
5031 (movdi_aarch64): Support LDR/STR from/to D register.
5032
473cec55
IB
50332013-04-29 Ian Bolton <ian.bolton@arm.com>
5034
5035 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5036 or higher by default.
5037
a6f30e66
RB
50382013-04-29 Richard Biener <rguenther@suse.de>
5039
5040 PR middle-end/57075
5041 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5042 even if not adding abnormal edges for calls that can make
5043 abnormal gotos.
5044
0c2b2040
RB
50452013-04-29 Richard Biener <rguenther@suse.de>
5046
5047 PR middle-end/57103
5048 * tree-cfg.c (move_stmt_op): Fix condition under which to update
5049 TREE_BLOCK.
5050 (move_stmt_r): Remove redundant checking.
5051
f41f80f9
TJ
50522013-04-29 Teresa Johnson <tejohnson@google.com>
5053
5054 PR bootstrap/57077
5055 * basic-block.h (apply_scale): New function.
5056 (apply_probability): Use apply_scale.
5057 * gimple-streamer-in.c (input_bb): Ditto.
5058 * lto-streamer-in.c (input_cfg): Ditto.
5059 * lto-cgraph.c (merge_profile_summaries): Ditto.
5060 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 5061 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
5062 (copy_edges_for_bb): Ditto.
5063 (copy_cfg_body): Ditto.
5064
315bbd2e
TV
50652013-04-29 Tom de Vries <tom@codesourcery.com>
5066
5067 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5068 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5069 (tail_merge_optimize): Handle current_loops == NULL.
5070
ebbd90d8
JL
50712013-04-26 Jeff Law <law@redhat.com>
5072
5073 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5074 (simplify_cond_using_ranges): Generalize code to simplify
5075 COND_EXPRs where one argument is a constant and the other
5076 is an SSA_NAME created by an integral type conversion.
5077
8b9b57eb
KT
50782013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5079
5080 * config/arm/arm.md (store_minmaxsi): Use only when
5081 optimize_insn_for_size_p.
5082
9498e5dc
CB
50832013-04-29 Christian Bruel <christian.bruel@st.com>
5084
5085 PR target/57108
5086 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5087
6093bc06
RB
50882013-04-29 Richard Biener <rguenther@suse.de>
5089
5090 PR middle-end/57089
fdca7d03
UB
5091 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5092 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
5093 (expand_omp_for_generic): Properly add loops.
5094 (expand_omp_for_static_nochunk): Likewise.
5095 (expand_omp_for_static_chunk): Likewise.
5096 (expand_omp_for): For the degenerate case fixup loops.
5097 (expand_omp_sections): Fix default bb placement in loops.
5098 (expand_omp_atomic_pipeline): Properly add loops.
5099
84aacbfd
KT
51002013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5101
5102 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5103
8dee4479
TV
51042013-04-29 Tom de Vries <tom@codesourcery.com>
5105
5106 * tree-ssa-tail-merge.c: Update header comment.
5107
47934dc4
JG
51082013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5109
5110 * config/aarch64/arm_neon.h
5111 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5112 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5113 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5114 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5115 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5116 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5117 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5118 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5119
384be29f
JG
51202013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5121
5122 * config/aarch64/aarch64-simd.md
5123 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5124 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5125 fix_trunc, fixuns_trunc.
5126 (ftrunc<VDQF:mode>2): New.
5127 * config/aarch64/iterators.md (optab): Add fix, fixuns.
5128 (fix_trunc_optab): New.
5129
0386b123
JG
51302013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5131
5132 * config/aarch64/aarch64-builtins.c
5133 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5134 iceilf, lround, iroundf.
5135
00fcb892
UB
51362013-04-29 Uros Bizjak <ubizjak@gmail.com>
5137
5138 PR target/54349
5139 * config/i386/i386.h (enum ix86_tune_indices)
5140 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5141 New, split from X86_TUNE_INTER_UNIT_MOVES.
5142 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5143 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5144 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5145 (TARGET_INTER_UNIT_MOVES): Remove.
5146 * config/i386/i386.c (initial_ix86_tune_features): Update.
5147 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5148 (ix86_expand_convert_uns_didf_sse): Use
5149 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5150 (ix86_expand_vector_init_one_nonzero): Ditto.
5151 (ix86_expand_vector_init_interleave): Ditto.
5152 (inline_secondary_memory_needed): Return true for moves from SSE class
5153 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5154 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5155 * config/i386/constraints.md (Yi, Ym): Depend on
5156 TARGET_INTER_UNIT_MOVES_TO_VEC.
5157 (Yj, Yn): New constraints.
5158 * config/i386/i386.md (*movdi_internal): Change constraints of
5159 operand 1 from Yi to Yj and from Ym to Yn.
5160 (*movsi_internal): Ditto.
5161 (*movdf_internal): Ditto.
5162 (*movsf_internal): Ditto.
5163 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5164 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5165 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5166 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5167 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5168 * config/i386/sse.md (movdi_to_sse): Ditto.
5169 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5170 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5171 TARGET_INTER_UNIT_MOVES.
5172 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5173 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5174 instead of TARGET_INTER_UNIT_MOVES.
5175 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5176 operand 1 from Yi to Yj and from Ym to Yn.
5177
4c871069
JG
51782013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5179
5180 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5181 (float_truncate_hi_): Likewise.
5182 (float_extend_lo_): Likewise.
5183 (float_truncate_lo_): Likewise.
5184 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5185 (aarch64_float_extend_lo_v2df): Likewise.
5186 (vec_unpacks_hi_v4sf): Likewise.
5187 (aarch64_float_truncate_lo_v2sf): Likewise.
5188 (aarch64_float_truncate_hi_v4sf): Likewise.
5189 (vec_pack_trunc_v2df): Likewise.
5190 (vec_pack_trunc_df): Likewise.
5191
1709ff9b
JG
51922013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5193
5194 * config/aarch64/aarch64-builtins.c
5195 (aarch64_fold_builtin): Fold float conversions.
5196 * config/aarch64/aarch64-simd-builtins.def
5197 (floatv2si, floatv4si, floatv2di): New.
5198 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5199 * config/aarch64/aarch64-simd.md
5200 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5201 * config/aarch64/iterators.md (FLOATUORS): New.
5202 (optab): Add float, floatuns.
5203 (su_optab): Likewise.
5204
ce966824
JG
52052013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5206
5207 * config/aarch64/aarch64-builtins.c
5208 (aarch64_builtin_vectorized_function): Use new names for
5209 fcvt builtins.
5210 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5211 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5212 (fcvtzu): Split as...
5213 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5214 (fcvtas): Split as...
5215 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5216 (fcvtau): Split as...
5217 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5218 (fcvtps): Split as...
5219 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5220 (fcvtpu): Split as...
5221 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5222 (fcvtms): Split as...
5223 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5224 (fcvtmu): Split as...
5225 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5226 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5227 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5228 (lfrintnusf, lfrintnudf): Likewise.
5229 * config/aarch64/aarch64-simd.md
5230 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5231 define_insn.
5232 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5233 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5234 (fcvt_pattern): Likewise.
5235
b9de24fe
JG
52362013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5237
5238 * config/aarch64/aarch64-simd.md
5239 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5240 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5241
77a205be
JG
52422013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5243
5244 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5245 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5246 (vrnd<a,m,n,p>_f32): Implement using builtins.
5247 (vrnd<i,x><q>_f<32, 64>): New.
5248
0659ce6f
JG
52492013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5250
5251 * config/aarch64/aarch64-builtins.c
5252 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5253 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5254 (frintz): Rename to...
5255 (btrunc): ...this.
5256 (frintp): Rename to...
5257 (ceil): ...this.
5258 (frintm): Rename to...
5259 (floor): ...this.
5260 (frinti): Rename to...
5261 (nearbyint): ...this.
5262 (frintx): Rename to...
5263 (rint): ...this.
5264 (frinta): Rename to...
5265 (round): ...this.
5266 * config/aarch64/aarch64-simd.md
5267 (aarch64_frint<frint_suffix><mode>): Delete.
5268 (<frint_pattern><mode>2): Convert to insn.
5269 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5270 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5271 (frint_pattern): Likewise.
5272 (frint_suffix): Likewise.
5273
ea78906a
RB
52742013-04-29 Richard Biener <rguenther@suse.de>
5275
5276 PR tree-optimization/57081
5277 * loop-init.c: Include tree-flow.h.
5278 (loop_optimizer_finalize): Free number of iteration estimates.
5279 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5280
baee1763
JJ
52812013-04-29 Jakub Jelinek <jakub@redhat.com>
5282
94dc5332
JJ
5283 PR tree-optimization/57083
5284 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5285 non-singleton shift count range, zero extend low_bound for uns case.
5286
baee1763
JJ
5287 * config/i386/predicates.md (general_vector_operand): New predicate.
5288 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5289 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5290 if they aren't nonimmediate operands. If their original values
5291 satisfy const_vector_equal_evenodd_p, don't shift them.
5292 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5293 predicates. For the SSE4.1 case force operands[{1,2}] into registers
5294 if not nonimmediate_operand.
5295 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5296 instead of register_operand.
5297 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5298
a9073727 52992013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
5300
5301 * stor-layout.c (finalize_size_functions): Allocate a structure and
5302 reset cfun before dumping the functions.
5303
ba8011e6
JJ
53042013-04-27 Jakub Jelinek <jakub@redhat.com>
5305
d6fde69e
JJ
5306 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5307
ba8011e6
JJ
5308 PR target/56866
5309 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5310 use xop_pmacsdqh if uns_p.
5311 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5312 the immediate rotate count.
5313
2c62cbaa
VM
53142013-04-26 Vladimir Makarov <vmakarov@redhat.com>
5315
5316 * rtl.h (struct rtx_def): Add comment for field jump.
5317 (LRA_SUBREG_P): New macro.
5318 * recog.c (register_operand): Check LRA_SUBREG_P.
5319 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5320 stack frame.
5321 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5322 (lra_final_code_change): Skip subreg change for operators.
5323 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5324 if there are no operand changes.
5325 * lra-constraints.c (curr_insn_set): New.
5326 (match_reload): Set LRA_SUBREG_P.
5327 (emit_spill_move): Ditto.
5328 (check_and_process_move): Use curr_insn_set. Process only single
5329 set insns. Don't initialize sec_mem_p and change_p.
5330 (simplify_operand_subreg): Use LRA_SUBREG_P.
5331 (reg_in_class_p): New function.
5332 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5333 of #ifdef. Add code to remove cycling.
5334 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5335 non-null disp. Reload inner instead of disp when base and index
5336 are null. Try to put lo_sum into register.
5337 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5338 (check_and_process_move): Move code for move cost check to
5339 simple_move_p. Remove equiv_substitution.
5340 (simple_move_p): New function.
5341 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5342 curr_insn_set. Call check_and_process_move only for single set
5343 insns. Use the new function. Move call of check_and_process_move
5344 after operand equiv substitution and address process.
5345
e7d764f3
JJ
53462013-04-26 Jakub Jelinek <jakub@redhat.com>
5347
5348 PR go/57045
5349 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5350 with nonlocal goto receivers or returns twice calls, ignore
5351 unininitialized values from abnormal edges to nl goto receiver
5352 or returns twice call.
5353
41e10689
JJ
53542013-04-26 Jakub Jelinek <jakub@redhat.com>
5355
5356 PR tree-optimization/57051
5357 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5358 and VEC_RSHIFT_EXPR if shift count is a multiple of element
5359 bitsize.
5360
d7ed20db
RB
53612013-04-26 Richard Biener <rguenther@suse.de>
5362
5363 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5364 (expand_omp_taskreg): Likewise. Mark loops for fixup.
5365 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5366 (fixup_loop_arrays_after_move): New function.
5367 (move_sese_region_to_fn): Properly outline the loop tree parts
5368 of the SESE region.
5369
df93505e
UB
53702013-04-26 Uros Bizjak <ubizjak@gmail.com>
5371
5372 * config/i386/i386.md (type, unit): Fix long lines.
5373
dd366ec3
RB
53742013-04-26 Richard Biener <rguenther@suse.de>
5375
5376 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5377 (lto-streamer-out.o): Likewise.
5378 * cfgloop.c (init_loops_structure): Export, add struct function
5379 argument and adjust.
5380 (flow_loops_find): Adjust.
5381 * cfgloop.h (enum loop_estimation): Add EST_LAST.
5382 (init_loops_structure): Declare.
5383 * lto-streamer-in.c: Include cfgloop.h.
5384 (input_cfg): Input the loop tree.
5385 * lto-streamer-out.c: Include cfgloop.h.
5386 (output_cfg): Output the loop tree.
5387 (output_struct_function_base): Do not drop PROP_loops.
5388
a9e0d843
RB
53892013-03-26 Richard Biener <rguenther@suse.de>
5390
5391 * tree-cfg.c (execute_build_cfg): Build the loop tree.
5392 (pass_build_cfg): Provide PROP_loops.
5393 (move_sese_region_to_fn): Remove loops that are outlined into fn
5394 for now.
5395 * tree-inline.c: Include cfgloop.h.
5396 (initialize_cfun): Do not drop PROP_loops.
5397 (copy_loops): New function.
5398 (copy_cfg_body): Copy loop structure.
5399 (tree_function_versioning): Initialize destination loop tree.
5400 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5401 (pass_parallelize_loops): Do IL verification.
5402 * loop-init.c (loop_optimizer_init): Fixup loops if required.
5403 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5404 the CFG make sure we fixup loops as well.
5405 * tree-ssa-tail-merge.c: Include cfgloop.h.
5406 (replace_block_by): When merging loop latches mark loops for fixup.
5407 * lto-streamer-out.c (output_struct_function_base): Drop
5408 PROP_loops for now.
5409 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5410 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5411 * ipa-split.c: Include cfgloop.h.
5412 (split_function): Add the new return block to the loop tree root.
5413 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5414 whether we have removed the forwarder block.
5415 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5416 * cfgloop.h (place_new_loop): Declare.
5417 * cfgloopmanip.c (place_new_loop): Export.
5418 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5419 (tree-switch-conversion.o): Likewise.
5420 (tree-complex.o): Likewise.
5421 (tree-inline.o): Likewise.
5422 (tree-ssa-tailmerge.o): Likewise.
5423 (ipa-split.o): Likewise.
5424 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5425 (tree-ssa-copy.o): Likewise.
5426 * tree-switch-conversion.c: Include cfgloop.h
5427 (process_switch): If we emit a bit-test cascade, schedule loops
5428 for fixup.
5429 * tree-complex.c: Include cfgloop.h.
5430 (expand_complex_div_wide): Properly add new basic-blocks to loops.
5431 * asan.c: Include cfgloop.h.
5432 (create_cond_insert_point): Properly add new basic-blocks to
5433 loops, schedule loop fixup.
5434 * cfgloop.c (verify_loop_structure): Check that looks are not
5435 marked for fixup.
5436 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5437 to loops.
5438 (expand_omp_for_generic): Likewise.
5439 (expand_omp_sections): Likewise.
5440 (expand_omp_atomic_pipeline): Schedule loops for fixup.
5441 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5442 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5443 is initialized, not when loops are present.
5444 * tree-parloops.c (parallelize_loops): Remove checking here.
5445 * passes.c (init_optimization_passes): Schedule a copy-propagation
5446 pass before complete unrolling of inner loops.
5447
e78e8a0b
JJ
54482013-04-26 Jakub Jelinek <jakub@redhat.com>
5449
a2e836b2
JJ
5450 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5451 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5452 (colorize_init): Add argument to _WIN32 version.
5453 * toplev.c: Include diagnostic-color.h.
5454 (process_options): Default to -fdiagnostics-color=auto if
5455 GCC_COLORS env var is in the environment.
5456 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
5457 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5458 env var is in the environment, the default is auto rather than never.
a2e836b2 5459
e78e8a0b
JJ
5460 * diagnostic.h (file_name_as_prefix): Add context argument.
5461 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
5462 the string as locus.
5463 * langhooks.c (lhd_print_error_function): Adjust caller.
5464
013e5ef9
LC
54652013-04-25 Lawrence Crowl <crowl@google.com>
5466
5467 * var-tracking.c (shared_hash_def::htab):
5468 Change type to hash_table. Update dependent calls and types.
5469
4a8fb1a1
LC
54702013-04-25 Lawrence Crowl <crowl@google.com>
5471
5472 * Makefile.in: Update as needed below.
5473
5474 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5475 Move declaration to after the type's method definitons.
5476
5477 * attribs.c (htab_t scoped_attributes::attribute_hash):
5478 Change type to hash_table. Update dependent calls and types.
5479
5480 * bitmap.c (htab_t bitmap_desc_hash):
5481 Change type to hash_table. Update dependent calls and types.
5482
5483 * cselib.c (htab_t cselib_hash_table):
5484 Change type to hash_table. Update dependent calls and types.
5485
5486 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5487 (hash_string_slot_node): Move implementation into lto-streamer.h
5488 struct string_slot_hasher.
5489 (eq_string_slot_node): Likewise.
5490
5491 * data-streamer-out.c: Update output_block::string_hash_table
5492 dependent calls and types.
5493
5494 * dwarf2cfi.c (htab_t trace_index):
5495 Change type to hash_table. Update dependent calls and types.
5496
5497 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5498 Change type to hash_table. Update dependent calls and types.
5499 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5500 (htab_t optimize_external_refs::map): Likewise.
5501 (htab_t output_comp_unit::extern_map): Likewise.
5502 (htab_t output_comdat_type_unit::extern_map): Likewise.
5503 (htab_t output_macinfo::macinfo_htab): Likewise.
5504 (htab_t optimize_location_lists::htab): Likewise.
5505 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5506
5507 * except.c (htab_t ehspec_hash_type):
5508 Change type to hash_table. Update dependent calls and types.
5509 (assign_filter_values::ttypes): Likewise.
5510 (assign_filter_values::ehspec): Likewise.
5511 (sjlj_assign_call_site_values::ar_hash): Likewise.
5512 (convert_to_eh_region_ranges::ar_hash): Likewise.
5513
5514 * gcse.c (htab_t pre_ldst_table):
5515 Change type to hash_table. Update dependent calls and types.
5516
5517 * ggc-common.c (htab_t saving_htab):
5518 Change type to hash_table. Update dependent calls and types.
5519 (htab_t loc_hash): Likewise.
5520 (htab_t ptr_hash): Likewise.
5521 (call_count): Rename ggc_call_count.
5522 (call_alloc): Rename ggc_call_alloc.
5523 (loc_descriptor): Rename make_loc_descriptor.
5524 (add_statistics): Rename ggc_add_statistics.
5525
5526 * ggc-common.c (saving_htab):
5527 Change type to hash_table. Update dependent calls and types.
5528
5529 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5530 (push_gimplify_context): Likewise.
5531 (pop_gimplify_context): Likewise.
5532 (struct gimple_temp_hash_elt): Added.
5533 (struct gimplify_hasher): Likewise.
5534 (struct gimplify_ctx.temp_htab):
5535 Change type to hash_table. Update dependent calls and types.
5536
5537 * gimple-fold.c: Include gimplify-ctx.h.
5538
5539 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5540 Change type to hash_table. Update dependent calls and types.
5541 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5542 avoid potential global name collision.
5543
5544 * gimplify.c: Include gimplify-ctx.h.
5545 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5546 (htab_t gimplify_ctx::temp_htab):
5547 Update dependent calls and types for new type hash_table.
5548 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5549 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5550
5551 * gimplify-ctx.h: New.
5552 (struct gimple_temp_hash_elt): Move from gimplify.c.
5553 (class gimplify_hasher): New.
5554 (struct gimplify_ctx): Move from gimple.h.
5555 (htab_t gimplify_ctx::temp_htab):
5556 Change type to hash_table. Update dependent calls and types.
5557
5558 * graphite-clast-to-gimple.c: Include graphite-htab.h.
5559 (htab_t ivs_params::newivs_index):
5560 Change type to hash_table. Update dependent calls and types.
5561 (htab_t ivs_params::params_index): Likewise.
5562 (htab_t print_generated_program::params_index): Likewise.
5563 (htab_t gloog::newivs_index): Likewise.
5564 (htab_t gloog::params_index): Likewise.
5565
5566 * graphite.c: Include graphite-htab.h.
5567 4htab_t graphite_transform_loops::bb_pbb_mapping):
5568 Change type to hash_table. Update dependent calls and types.
5569
5570 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5571 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5572 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5573
5574 * graphite-dependences.c: Include graphite-htab.h.
5575 (loop_is_parallel_p): Change hash table type of parameter.
5576
5577 * graphite-htab.h: New.
5578 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5579 (extern find_pbb_via_hash): Move from graphite-poly.h.
5580 (extern loop_is_parallel_p): Move from graphite-poly.h.
5581 (extern get_loop_body_pbbs): Move from graphite-poly.h.
5582
5583 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5584 (extern loop_is_parallel_p): Move to graphite-htab.h.
5585 (extern get_loop_body_pbbs): Move to graphite-htab.h.
5586
5587 * haifa-sched.c (htab_t delay_htab):
5588 Change type to hash_table. Update dependent calls and types.
5589 (htab_t delay_htab_i2): Likewise.
5590
5591 * ira-color.c (htab_t allocno_hard_regs_htab):
5592 Change type to hash_table. Update dependent calls and types.
5593
5594 * ira-costs.c (htab_t cost_classes_htab):
5595 Change type to hash_table. Update dependent calls and types.
5596
5597 * loop-invariant.c (htab_t merge_identical_invariants::eq):
5598 Change type to hash_table. Update dependent calls and types.
5599
5600 * loop-iv.c (htab_t bivs):
5601 Change type to hash_table. Update dependent calls and types.
5602
5603 * loop-unroll.c (htab_t opt_info::insns_to_split):
5604 Change type to hash_table. Update dependent calls and types.
5605 (htab_t opt_info::insns_with_var_to_expand): Likewise.
5606
5607 * lto-streamer.h (struct string_slot): Move from data-streamer.h
5608 (struct string_slot_hasher): New.
5609 (htab_t output_block::string_hash_table):
5610 Change type to hash_table. Update dependent calls and types.
5611
5612 * lto-streamer-in.c (freeing_string_slot_hasher): New.
5613 (htab_t file_name_hash_table):
5614 Change type to hash_table. Update dependent calls and types.
5615
5616 * lto-streamer-out.c: Update output_block::string_hash_table dependent
5617 calls and types.
5618
5619 * lto-streamer.c (htab_t tree_htab):
5620 Change type to hash_table. Update dependent calls and types.
5621
5622 * omp-low.c: Include gimplify-ctx.h.
5623
5624 * passes.c (htab_t name_to_pass_map):
5625 Change type to hash_table. Update dependent calls and types.
5626 (pass_traverse): Rename to passes_pass_traverse.
5627
5628 * plugin.c (htab_t event_tab):
5629 Change type to hash_table. Update dependent calls and types.
5630
5631 * postreload-gcse.c (htab_t expr_table):
5632 Change type to hash_table. Update dependent calls and types.
5633 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5634
5635 * sese.c (debug_rename_map_1): Make extern.
5636 (htab_t copy_bb_and_scalar_dependences::rename_map):
5637 Change type to hash_table. Update dependent calls and types.
5638
5639 * sese.h (extern debug_rename_map): Move to .c file.
5640
5641 * store-motion.c (htab_t store_motion_mems_table):
5642 Change type to hash_table. Update dependent calls and types.
5643
5644 * trans-mem.c (htab_t tm_new_mem_hash):
5645 Change type to hash_table. Update dependent calls and types.
5646
5647 * tree-browser.c (htab_t TB_up_ht):
5648 Change type to hash_table. Update dependent calls and types.
5649
5650 * tree-cfg.c (htab_t discriminator_per_locus):
5651 Change type to hash_table. Update dependent calls and types.
5652
5653 * tree-complex.c: Include tree-hasher.h
5654 (htab_t complex_variable_components):
5655 Change type to hash_table. Update dependent calls and types.
5656
5657 * tree-eh.c (htab_t finally_tree):
5658 Change type to hash_table. Update dependent calls and types.
5659
5660 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5661 struct int_tree_hasher.
5662 (extern int_tree_map_eq): Likewise.
5663 (uid_decl_map_hash): Removed.
5664 (extern decl_tree_map_eq): Likewise.
5665
5666 * tree-hasher.h: New.
5667 (struct int_tree_hasher): New.
5668 (typedef int_tree_htab_type): New.
5669
5670 * tree-inline.c: Include gimplify-ctx.h.
5671
5672 * tree-mudflap.c: Include gimplify-ctx.h.
5673
5674 * tree-parloops.c: Include tree-hasher.h.
5675 (htab_t eliminate_local_variables_stmt::decl_address):
5676 Change type to hash_table. Update dependent calls and types.
5677 (htab_t separate_decls_in_region::decl_copies): Likewise.
5678
5679 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5680 Change type to hash_table. Update dependent calls and types.
5681
5682 * tree-sra.c (candidates):
5683 Change type to hash_table. Update dependent calls and types.
5684
5685 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5686 in tree-flow.h.
5687 (int_tree_map_hash): Likewise.
5688
5689 * tree-ssa-dom.c (htab_t avail_exprs):
5690 Change type to hash_table. Update dependent calls and types.
5691
5692 * tree-ssa-live.c (var_map_base_init::tree_to_index):
5693 Change type to hash_table. Update dependent calls and types.
5694
5695 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5696 Change type to hash_table. Update dependent calls and types.
5697
5698 * tree-ssa-phiopt.c (seen_ssa_names):
5699 Change type to hash_table. Update dependent calls and types.
5700
5701 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5702 Change type to hash_table. Update dependent calls and types.
5703
5704 * tree-ssa-uncprop.c (equiv):
5705 Change type to hash_table. Update dependent calls and types.
5706
c5a44004
JJ
57072013-04-25 Jakub Jelinek <jakub@redhat.com>
5708
5709 PR rtl-optimization/57003
5710 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5711 call note_stores with kill_clobbered_value callback again after
5712 killing regs_invalidated_by_call.
5713
09962a4a
JG
57142013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5715
5716 * config/aarch64/aarch64-simd.md
5717 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5718 (aarch64_simd_bsl<mode>): Likewise.
5719 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5720
ea28bb0b
MP
57212013-04-25 Marek Polacek <polacek@redhat.com>
5722
5723 PR tree-optimization/57066
3c21604f 5724 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 5725
96659611
JG
57262013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
5727
5728 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5729
9697e620
JG
57302013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5731
5732 * config/aarch64/aarch64-builtins.c
5733 (aarch64_fold_builtin): New.
5734 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5735 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5736 * config/aarch64/aarch64-simd-builtins.def (abs): New.
5737 * config/aarch64/arm_neon.h
5738 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5739
0ac198d3
JG
57402013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5741 Tejas Belagod <tejas.belagod@arm.com>
5742
5743 * config/aarch64/aarch64-builtins.c
5744 (aarch64_gimple_fold_builtin): New.
5745 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5746 * config/aarch64/aarch64-simd-builtins.def (addv): New.
5747 * config/aarch64/aarch64-simd.md (addpv4sf): New.
5748 (addvv4sf): Update.
5749 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5750
58cff58c
N
57512013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5752
df93505e 5753 * config/aarch64/aarch64.md
58cff58c
N
5754 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5755
7e0228bf
N
57562013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5757
5758 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5759 (*ngcsi_uxtw): New pattern.
5760
5819f96f 57612013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 5762 Julian Brown <julian@codesourcery.com>
5819f96f
KT
5763
5764 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5765 (TB_DREG): Add T_V4HF.
5766 (v4hf_UP): New macro.
5767 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 5768 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
5769 Handle initialisation of V4HF. Adjust initialisation of reinterpret
5770 built-ins.
df93505e 5771 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
5772 (arm_vector_mode_supported_p): Handle V4HF.
5773 (arm_mangle_map): Handle V4HFmode.
5774 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5775 * config/arm/arm_neon_builtins.def: Add entries for
5776 vcvtv4hfv4sf, vcvtv4sfv4hf.
5777 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5778 (neon_vcvtv4hfv4sf): Likewise.
5779 * config/arm/neon-gen.ml: Handle half-precision floating point
5780 features.
5781 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5782 * config/arm/arm_neon.h: Regenerate.
5783 * config/arm/neon.ml (type elts): Add F16.
5784 (type vectype): Add T_float16x4, T_floatHF.
5785 (type vecmode): Add V4HF.
5786 (type features): Add Requires_FP_bit feature.
5787 (elt_width): Handle F16.
5788 (elt_class): Likewise.
5789 (elt_of_class_width): Likewise.
5790 (mode_of_elt): Refactor.
5791 (type_for_elt): Handle F16, fix error messages.
5792 (vectype_size): Handle T_float16x4.
5793 (vcvt_sh): New function.
5794 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5795 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5796 (string_of_mode): Handle V4HF.
5797 * doc/arm-neon-intrinsics.texi: Regenerate.
5798
1ef395e4
JG
57992013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5800
5801 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5802 format specifier in 'X' case.
5803
41c34e94
AM
58042013-04-25 Alan Modra <amodra@gmail.com>
5805
5806 PR target/57052
5807 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5808 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5809 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5810 Repeat for many other rotate/shift and mask patterns using subregs.
5811 Name lshiftrt insns.
5812 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5813 on WORDS_BIG_ENDIAN.
5814
b9a7eb5d
AM
58152013-04-25 Alan Modra <amodra@gmail.com>
5816
5817 * config.gcc: Support little-endian powerpc-linux targets.
5818 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5819 (LINK_OS_LINUX_SPEC): Define.
5820 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5821 Preserve MASK_LITTLE_ENDIAN.
5822 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5823 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5824 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5825 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5826 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5827 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5828 Correct fp word order for little-endian. Don't shift toc entries
5829 smaller than a word for little-endian.
5830 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5831 (bswapdi2 splits): Correct low-part subreg for little-endian.
5832 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5833 low/high where such is correct only for be.
5834 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5835 little-endian for -mcall-aixdesc.
5836
87f73374
AM
58372013-04-25 Alan Modra <amodra@gmail.com>
5838
5839 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5840 replace_equiv_address_nv.
5841
cabf91cd
AM
58422013-04-25 Alan Modra <amodra@gmail.com>
5843
5844 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5845
0ae24cc8
VM
58462013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5847
5848 Revert:
5849 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5850 * rtl.h (struct rtx_def): ...
cabf91cd 5851
77bce07c
VM
58522013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5853
5854 PR rtl-optimizations/57046
5855 * lra-constraints (split_reg): Set up lra_risky_transformations_p
5856 for multi-reg splits.
5857
0db63e7f
L
58582013-04-24 H.J. Lu <hongjiu.lu@intel.com>
5859
5860 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5861
3362b6b6
SA
58622013-04-24 Sterling Augustine <saugustine@google.com>
5863
5864 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5865 (comp_dir_string, debug_str_dwo_section): New.
5866 (DEBUG_STR_DWO_SECTION): Rename to ...
5867 (DEBUG_DWO_STR_SECTION): ... this.
5868 (DEBUG_NORM_STR_SECTION): Delete.
5869 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5870 (DEBUG_STR_DWO_SECTION_FLAGS): New.
5871 (find_AT_string): Move most logic to ...
5872 (find_AT_string_in_table): ... here. New.
5873 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5874 add_skeleton_AT_string. Delete logic.
5875 (output_skeleton_debug_sections): Remove call to
5876 add_top_level_skeleton_die_attrs.
5877 (add_comp_dir_attribute): Move logic to comp_dir_string.
5878 (dwarf2out_init): Initialize debug_str_dwo_section.
5879 (output_indirect_string): Call find_string_form.
5880 (output_indirect_strings): Rewrite.
5881 (prune_unused_types): Empty skeleton_debug_str_hash.
5882 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5883 (dwarf2out_finish): Call output_indirect_strings.
5884
e93e18e9
PC
58852013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5886
5887 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5888
f6ce35ac
VM
58892013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5890
cabf91cd 5891 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
5892 (LRA_SUBREG_P): New macro.
5893 * recog.c (register_operand): Check LRA_SUBREG_P.
5894 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5895 stack frame.
5896 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5897 (lra_final_code_change): Skip subreg change for operators.
5898 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5899 if there are no operand changes.
5900 * lra-constraints.c (curr_insn_set): New.
5901 (match_reload): Set LRA_SUBREG_P.
5902 (emit_spill_move): Ditto.
5903 (check_and_process_move): Use curr_insn_set. Process only single
5904 set insns. Don't initialize sec_mem_p and change_p.
5905 (simplify_operand_subreg): Use LRA_SUBREG_P.
5906 (reg_in_class_p): New function.
5907 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5908 of #ifdef. Add code to remove cycling.
5909 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5910 non-null disp. Reload inner instead of disp when base and index
5911 are null. Try to put lo_sum into register.
5912 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 5913 (check_and_process_move): Move code for move cost check to
f6ce35ac 5914 simple_move_p. Remove equiv_substitution.
cabf91cd 5915 (simple_move_p): New function.
f6ce35ac
VM
5916 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5917 curr_insn_set. Call check_and_process_move only for single set
5918 insns. Use the new function. Move call of check_and_process_move
5919 after operand equiv substitution and address process.
5920
38047d90
JG
59212013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
5922
5923 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5924 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5925 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5926
13f39b2e
PC
59272013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5928
5929 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5930
97c116dc
MP
59312013-04-24 Marek Polacek <polacek@redhat.com>
5932
5933 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5934 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5935 (select_loops_exit_conditions): Likewise.
5936 (number_of_iterations_for_all_loops): Likewise.
5937 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5938 (scev_analysis): Likewise.
5939
83082391
CM
59402013-04-02 Catherine Moore <clm@codesourcery.com>
5941 Chao-ying Fu <fu@mips.com>
5942
cabf91cd
AM
5943 * config/mips/micromips.md (jraddiusp): New pattern.
5944 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5945 instruction if possible.
83082391 5946
19e34aa2
AM
59472013-04-24 Alan Modra <amodra@gmail.com>
5948
5949 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5950
fdb6603c
JB
59512013-04-24 Julian Brown <julian@codesourcery.com>
5952 Chung-Lin Tang <cltang@codesourcery.com>
5953
5954 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
5955 dependency behavior in enumeration type DIE generation. Add TODO note
5956 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 5957
bf190e8d
LC
59582013-04-23 Lawrence Crowl <crowl@google.com>
5959
5960 * Makefile.in: Update as needed below.
5961
5962 * hash-table.h (class hash_table):
5963 Correct many methods with parameter types compare_type to the correct
5964 value_type. (Correct code was unlikely to notice the change.)
5965 (hash_table::elements_with_deleted) New.
5966 (class hashtable::iterator): New.
5967 (hashtable::begin()): New.
5968 (hashtable::end()): New.
5969 (FOR_EACH_HASH_TABLE_ELEMENT): New.
5970
5971 * statistics.c (statistics_hashes):
5972 Change type to hash_table. Update dependent calls and types.
5973
5974 * tree-into-ssa.c (var_infos):
5975 Change type to hash_table. Update dependent calls and types.
5976
5977 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5978 Change type to hash_table. Update dependent calls and types.
5979
5980 * tree-ssa-loop-im.c (struct mem_ref.refs):
5981 Change type to hash_table. Update dependent calls and types.
5982
5983 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5984 Change type to hash_table. Update dependent calls and types.
5985
5986 * tree-ssa-sccvn.c (vn_tables_s::nary):
5987 Change type to hash_table. Update dependent calls and types.
5988 (vn_tables_s::phis): Likewise.
5989 (vn_tables_s::references): Likewise.
5990
5991 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
5992 (vn_reference_eq): Update parameter and return types.
5993
5994 * tree-ssa-structalias.c (pointer_equiv_class_table):
5995 Change type to hash_table. Update dependent calls and types.
5996 (location_equiv_class_table): Likewise.
5997
5998 * tree-vect-data-refs.c: Consequential changes for making
5999 peeling a hash_table.
6000
6001 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6002 (destroy_loop_vec_info): Dependent hash_table update.
6003
6004 * tree-vectorizer.h (peeling_htab):
6005 Change type to hash_table. Update dependent calls and types.
6006
d70a81dd
SC
60072013-04-23 Shiva Chen <shiva0217@gmail.com>
6008
cabf91cd
AM
6009 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6010 to check the register content is equal or not.
6011 * lra-constraints.c (match_reload): Use lra_assign_reg_val
6012 to assign register content record.
6013 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 6014 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
6015 * lra-int.h (struct lra_reg): Add offset member.
6016 (lra_reg_val_equal_p): New static inline function.
6017 (lra_update_reg_val_offset): New static inline function.
6018 (lra_assign_reg_val): New static inline function.
6019 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6020 to assign register content record.
6021 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 6022
b894a1f3
CM
60232013-04-23 Catherine Moore <clm@codesourcery.com>
6024
6025 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6026 operands. Record compression.
6027
ecd14de9
XDL
60282013-04-23 Xinliang David Li <davidxl@google.com>
6029
6030 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6031
92e776e9
RB
60322013-04-23 Richard Biener <rguenther@suse.de>
6033
6034 PR middle-end/57036
6035 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6036 parameter, only add abnormal goto edges from the copied body
6037 if the call could perform abnormal gotos.
6038 (copy_cfg_body): Adjust.
6039
a15ee567
SN
60402013-04-23 Sofiane Naci <sofiane.naci@arm.com>
6041
6042 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6043
08c52234
AS
60442013-04-23 Andreas Schwab <schwab@linux-m68k.org>
6045
6046 * coretypes.h (gimple_stmt_iterator): Add struct to make
6047 compatible with C.
6048
999c1171
RB
60492013-04-23 Richard Biener <rguenther@suse.de>
6050
6051 PR tree-optimization/57026
6052 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6053 from SSA names occuring in abnormal PHI nodes.
6054
53669259
AK
60552013-04-22 Andi Kleen <ak@linux.intel.com>
6056
6057 * lto/lto.c (print_lto_report_1): Fix LTO report names.
6058
1a0ad150
AK
60592013-04-22 Andi Kleen <ak@linux.intel.com>
6060
6061 * lto/lto.c (print_lto_report_1): Declare early.
6062 (read_cgraph_and_symbols): Call print_lto_report_1 early.
6063
057f8f20
AK
60642013-04-22 Andi Kleen <ak@linux.intel.com>
6065
6066 * common.opt (-flto-report-wpa): Add.
6067 * doc/invoke.texi (-flto-report-wpa): Add.
6068 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6069 (lto_main): dito.
6070
473b1e05
XDL
60712013-04-22 Xinliang David Li <davidxl@google.com>
6072
6073 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6074 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6075 * Makefile.in: New dependency
6076
cabf91cd 6077 David Daney <ddaney.cavm@gmail.com>
b1485a33 6078
cabf91cd
AM
6079 * configure.ac (gcc_cv_as_micromips_support): Use the
6080 --fatal-warnings option.
6081 * configure: Regenerate.
b1485a33 6082
829d0168
MP
60832013-04-22 Marek Polacek <polacek@redhat.com>
6084
6085 PR sanitizer/56990
6086 * tsan.c (instrument_expr): Don't instrument expression
6087 in case its size is zero.
6088
6d9b7208
UB
60892013-04-22 Uros Bizjak <ubizjak@gmail.com>
6090
6091 PR target/57032
6092 Revert:
6093 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6094
6095 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6096
ea679d55
JG
60972013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6098
6099 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6100 (gimple_stmt_iterator): New typedef.
6101 * gimple.h (gimple_stmt_iterator): Rename to...
6102 (gimple_stmt_iterator_d): ... This.
6103 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6104 trees be valid for GIMPLE and GENERIC.
6105 (TARGET_GIMPLE_FOLD_BUILTIN): New.
6106 * gimple-fold.c (gimple_fold_call): Call target hook
6107 gimple_fold_builtin.
6108 * hooks.c (hook_bool_gsiptr_false): New.
6109 * hooks.h (hook_bool_gsiptr_false): New.
6110 * target.def (fold_stmt): New.
6111 * doc/tm.texi: Regenerate.
6112
88a581da
VM
61132013-04-22 Vladimir Makarov <vmakarov@redhat.com>
6114
6115 PR target/57018
6116 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6117 a set sp if no stack realignment.
6118
92be22dc
NC
61192013-04-22 Nick Clifton <nickc@redhat.com>
6120
6121 * config.gcc (tilegx-linux): Extend extra_objs rather than
6122 overwriting it.
6123 (tilepro-linux): Likewise.
6124
0ddec79f
JG
61252013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6126
6127 * config/aarch64/aarch64-builtins.c
6128 (CF): Remove.
6129 (CF0, CF1, CF2, CF3, CF4, CF10): New.
6130 (VAR<1-12>): Add MAP parameter.
6131 (BUILTIN_*): Likewise.
6132 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6133 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6134 (aarch64_ushl_n<mode>): Likewise.
6135 (aarch64_sshr_n<mode>): Likewise.
6136 (aarch64_ushr_n<mode>): Likewise.
6137 (aarch64_<maxmin><mode>): Likewise.
6138 (aarch64_sqrt<mode>): Likewise.
6139 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6140 (vshr<q>_n_*): Likewise.
6141
0050faf8
JG
61422013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6143
6144 * config/aarch64/aarch64-builtins.c
6145 (aarch64_simd_builtin_type_mode): Handle SF types.
6146 (sf_UP): Define.
6147 (BUILTIN_GPF): Define.
6148 (aarch64_init_simd_builtins): Handle SF types.
6149 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6150 (frecps): Likewise.
6151 (frecpx): Likewise.
6152 * config/aarch64/aarch64-simd.md
6153 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6154 (aarch64_frecpe<mode>): New.
6155 (aarch64_frecps<mode>): Likewise.
6156 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6157 (v8type): Add frecp<esx>.
6158 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6159 (aarch64_frecps<mode>): Likewise.
6160 * config/aarch64/iterators.md (FRECP): New.
6161 (frecp_suffix): Likewise.
6162 * config/aarch64/arm_neon.h
6163 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6164
0fad3dbc 61652013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
6166
6167 PR target/56995
6168 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6169 (REG_CLASS_NAMES): Idem.
6170 (REG_CLASS_CONTENTS): Idem.
6171 (REGCLASS_HAS_FP_REG): Idem.
6172 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6173 (sh_conditional_register_usage): Idem.
6174
3e8a33f9
JL
61752013-04-21 Jeff Law <law@redhat.com>
6176
6177 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6178 (ssa_forward_propagate_and_combine): Use it.
6179
f38e1b0a
VM
61802013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6181
6182 * lra.c: Update the flow chart diagram.
6183
682303da
VM
61842013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6185
6186 PR rtl-optimization/56847
6187 * lra-constraints.c (process_alt_operands): Discourage alternative
6188 with non-matche doffsettable memory constraint fro memory with
6189 known offset.
6190
f6b64c35
RB
61912013-04-19 Richard Biener <rguenther@suse.de>
6192
6193 PR tree-optimization/56982
6194 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6195 function.
6196 * gimplify.c (gimplify_call_expr): Notice special calls.
6197 (gimplify_modify_expr): Likewise.
6198 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6199 abnormal control flow receivers.
6200 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6201 in the same way as cfun->has_nonlocal_labels.
6202 (gimple_purge_dead_abnormal_call_edges): Likewise.
6203 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6204 receivers start a basic-block.
6205
01d8bf07
RB
62062013-04-19 Richard Biener <rguenther@suse.de>
6207
6208 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6209 member ...
6210 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6211 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6212 (SLP_TREE_LOAD_PERMUTATION): Add.
6213 (vect_transform_slp_perm_load): Adjust prototype.
6214 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6215 (vect_free_slp_instance): Likewise.
6216 (vect_create_new_slp_node): Likewise.
6217 (vect_supported_slp_permutation_p): Remove.
6218 (vect_slp_rearrange_stmts): Adjust.
6219 (vect_supported_load_permutation_p): Likewise. Inline
6220 vect_supported_slp_permutation_p here.
6221 (vect_analyze_slp_instance): Compute load permutations per
6222 slp node instead of per instance.
6223 (vect_get_slp_defs): Adjust.
6224 (vect_transform_slp_perm_load): Likewise.
6225 (vect_schedule_slp_instance): Remove redundant code.
6226 (vect_schedule_slp): Remove hack for PR56270, add it ...
6227 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6228 CSE loads for SLP. Adjust.
6229
ede22fc3
GY
62302013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6231
6232 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6233 spelling in two comments.
6234
67bc84fb
GY
62352013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6236
6237 PR target/56797
6238 * config/arm/arm.c (load_multiple_sequence): Require SP
6239 as base register for loads if SP is in the register list.
6240
e248d83f
MJ
62412013-04-19 Martin Jambor <mjambor@suse.cz>
6242
6243 PR tree-optimization/56718
6244 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6245 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6246 and made public. Adjusted all callers.
6247 (ipa_intraprocedural_devirtualization): New function.
6248 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6249 (ipa_intraprocedural_devirtualization): Likewise.
6250 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6251
4891e8f8
RB
62522013-04-19 Richard Biener <rguenther@suse.de>
6253
6254 PR tree-optimization/57000
6255 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6256
dad89f7c
TG
62572013-04-19 Terry Guo <terry.guo@arm.com>
6258
6259 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6260 Replace with ...
6261 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
6262 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6263 (cortex_m4_fmacs): Use new reservations.
6264 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6265
72ea0d47
VM
62662013-04-18 Vladimir Makarov <vmakarov@redhat.com>
6267
f1e6512c 6268 PR rtl-optimization/56999
72ea0d47
VM
6269 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6270 related code.
6271 (lra_coalesce): Remove split_origin_bitmap and related code.
6272 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
6273 ranges if necessary.
6274
780a5b71
UB
62752013-04-18 Uros Bizjak <ubizjak@gmail.com>
6276
6277 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6278 New array.
6279 (ix86_expand_call): Remove clobbered_registers array and use
6280 x86_64_ms_sysv_extra_clobbered_registers instead.
6281 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6282 Declare here.
6283 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6284 predicate.
6285 * config/i386/i386.md (*call_rex64_ms_sysv): Use
6286 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
6287 (*call_value_rex64_ms_sysv): Ditto.
6288
6f5a366a
CC
62892013-04-18 Cary Coutant <ccoutant@google.com>
6290
6291 * dwarf2out.c (output_pubnames): Check die_perennial_p of
6292 parent instead of die_mark.
6293
475b8f37
DN
62942013-04-18 Diego Novillo <dnovillo@google.com>
6295
6296 * gimple.c (create_gimple_tmp): New.
6297 (get_expr_type): New.
6298 (build_assign): New.
6299 (build_type_cast): New.
6300 * gimple.h (enum ssa_mode): Define.
6301 (gimple_seq_set_location): New.
6302 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 6303 to use build_assign and build_type_cast.
475b8f37 6304
08940f33
RB
63052013-04-18 Richard Biener <rguenther@suse.de>
6306
6307 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6308 handle negative step. Remove redundant checks.
6309 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6310 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6311 for negative step and grouped loads fail to vectorize.
6312
0e0f87d4
SB
63132013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6314
6315 * emit-rtl.c (reset_insn_used_flags): New function.
6316 (reset_all_used_flags): Use it.
6317 (verify_insn_sharing): New function.
6318 (verify_rtl_sharing): Fix verification for SEQUENCEs.
6319
4c445590
JJ
63202013-04-18 Jakub Jelinek <jakub@redhat.com>
6321
6322 PR tree-optimization/56984
6323 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6324 and (x >> M) >= N don't register any assertion if N << M is the
6325 minimum value.
6326
6873ecab
SB
63272013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6328
6329 * lower-subreg.c (resolve_simple_move): If called self-recursive,
6330 do not delete_insn insns that have not yet been emitted, only
6331 unlink them with remove_insn.
6332 * df-scan.c (df_insn_delete): Revert r197492.
6333
3ccb989e
SB
63342013-04-17 Steven Bosscher <steven@gcc.gnu.org>
6335
6336 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6337 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6338
63392013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
6340
6341 * config/arm/arm.md (movsicc_insn): Convert define_insn into
6342 define_insn_and_split.
6343 (and_scc,ior_scc,negscc): Likewise.
6344 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6345
3ccb989e 63462013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
6347
6348 * config/arm/arm.c (use_return_insn): Return 0 for targets that
6349 can benefit from using a sequence of LDRD instructions in epilogue
6350 instead of a single LDM instruction.
6351
6d10a203
MLI
63522013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6353
6354 PR 45688
6355 * doc/extend.texi: Fix typo.
6356
6983e6b5
RB
63572013-04-17 Richard Biener <rguenther@suse.de>
6358
6359 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6360 (vect_build_slp_tree): ... here.
6361 (vect_build_slp_tree_1): Compute which stmts of the SLP group
6362 match. Remove special-casing of mismatched complex loads.
6363 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6364 re-try the match with swapped commutative operands.
6365 (vect_supported_load_permutation_p): Remove special-casing of
6366 mismatched complex loads.
6367 (vect_analyze_slp_instance): Adjust.
6368
ef23e6a2
RB
63692013-04-17 Richard Biener <rguenther@suse.de>
6370
6371 PR rtl-optimization/56921
6372 * cfgloop.h (struct loop): Add simple_loop_desc member.
6373 (struct niter_desc): Mark with GTY(()).
6374 (simple_loop_desc): Do not use aux field but simple_loop_desc.
6375 * loop-iv.c (get_simple_loop_desc): Likewise.
6376 (free_simple_loop_desc): Likewise.
6377
6378 Revert
6379 2013-04-16 Richard Biener <rguenther@suse.de>
6380
6381 PR rtl-optimization/56921
6382 * loop-init.c (pass_rtl_move_loop_invariants): Add
6383 TODO_do_not_ggc_collect to todo_flags_finish.
6384 (pass_rtl_unswitch): Same.
6385 (pass_rtl_unroll_and_peel_loops): Same.
6386 (pass_rtl_doloop): Same.
6387
fc6f94f5
EB
63882013-04-17 Eric Botcazou <ebotcazou@adacore.com>
6389
6390 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6391 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6392 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6393 references.
6394 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6395 * tree-streamer.c (record_common_node): Adjust reference in comment.
6396
10a88311
TG
63972013-04-17 Terry Guo <terry.guo@arm.com>
6398
6399 * config/arm/cortex-m4.md: Add a new bypass.
6400
6d9b7208 64012013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
6402
6403 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6404 New pattern.
6405 (*subs_<optab><mode>_multp2): New pattern.
6406 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6407 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6408
6d9b7208 64092013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
6410
6411 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6412 (*subs_mul_imm_<mode>): New pattern.
6413
18a6701e
DE
64142013-04-16 David Edelsohn <dje.gcc@gmail.com>
6415
6416 PR target/56948
6417 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6418 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
6419 (vsx_movti_32bit): Change j->wa to O->wa.
6420
07c37b2f
RB
64212013-04-16 Richard Biener <rguenther@suse.de>
6422
6423 PR rtl-optimization/56921
6424 * loop-init.c (pass_rtl_move_loop_invariants): Add
6425 TODO_do_not_ggc_collect to todo_flags_finish.
6426 (pass_rtl_unswitch): Same.
6427 (pass_rtl_unroll_and_peel_loops): Same.
6428 (pass_rtl_doloop): Same.
6429
0e0f87d4 64302013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
6431
6432 * config/arm/arm.c (emit_multi_reg_push): New declaration
6433 for an existing function.
6434 (arm_emit_strd_push): New function.
6435 (arm_expand_prologue): Used here.
6436 (arm_emit_ldrd_pop): New function.
6437 (arm_expand_epilogue): Used here.
6438 (arm_get_frame_offsets): Update condition.
6439 (arm_emit_multi_reg_pop): Add a special case for load of a single
6440 register with writeback.
6441
5e8e2af4
UB
64422013-04-16 Uros Bizjak <ubizjak@gmail.com>
6443
6444 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6445 description.
6446
9fd9ccf7
RB
64472013-04-16 Richard Biener <rguenther@suse.de>
6448
6449 PR tree-optimization/56756
6450 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6451 (first_mem_ref_loc): New.
6452 (execute_sm): Place the load temporarily before a previous
6453 access instead of in the latch edge to ensure its SSA dependencies
6454 are defined at points dominating the load.
6455
96fba521
SB
64562013-04-16 Steven Bosscher <steven@gcc.gnu.org>
6457
4c8af858
SB
6458 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6459 correct fix by moving header and footer insn to the footer of
6460 the merged basic block. Clear BB_END of the merged-away block.
6461
96fba521
SB
6462 PR middle-end/43631
6463 * emit-rtl.c (make_note_raw): New function.
6464 (link_insn_into_chain): New static inline function.
6465 (add_insn): Use it.
6466 (add_insn_before, add_insn_after): Factor insn chain linking code...
6467 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6468 using link_insn_into_chain.
6469 (note_outside_basic_block_p): New helper function for emit_note_after
6470 and emit_note_before.
6471 (emit_note_after): Use nobb variant of add_insn_after if the note
6472 should not be contained in a basic block.
6473 (emit_note_before): Use nobb variant of add_insn_before if the note
6474 should not be contained in a basic block.
6475 (emit_note_copy): Use make_note_raw.
6476 (emit_note): Likewise.
6477 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6478 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6479 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6480 the moved barrier the tail of the basic block it follows.
6481 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6482
7b8265ba
JJ
64832013-04-15 Jakub Jelinek <jakub@redhat.com>
6484
6485 PR tree-optimization/56962
6486 * gimple-ssa-strength-reduction.c (record_increment): Only set
6487 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6488 either rhs1 or rhs2 is equal to c->base_expr.
6489
5185d248
RB
64902013-04-15 Richard Biener <rguenther@suse.de>
6491
6492 PR tree-optimization/56933
6493 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6494 member.
6495 (GROUP_READ_WRITE_DEPENDENCE): Remove.
6496 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6497 * tree-vect-data-refs.c (vect_analyze_group_access): Move
6498 dependence check ...
6499 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6500 ... here.
6501 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6502 GROUP_READ_WRITE_DEPENDENCE.
6503
a24243a0
AK
65042013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6505
6506 * emit-rtl.c (reset_all_used_flags): New function.
6507 (verify_rtl_sharing): Call reset_all_used_flags before and after
6508 performing the checks.
6509
1c50eada
KT
65102013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6511
6512 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6513 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6514 * config/arm/constraints.md (De): New constraint.
6515 * config/arm/neon.md (anddi3_neon): Delete.
6516 (neon_vand<mode>): Expand to standard anddi3 pattern.
6517 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6518 Move earlier in the file.
6519 (neon_inv_logic_op2): Likewise.
6520 (arm_anddi_operand_neon): New predicate.
6521
e927b6ad
RO
65222013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6523
6524 * configure.ac (gcc_cv_ld_as_needed): Set
6525 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6526 Use -z ignore, -z record on *-*-solaris2*.
6527 (HAVE_LD_AS_NEEDED): Update comment.
6528 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6529 * configure: Regenerate.
6530 * config.in: Regenerate.
6531 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6532 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6533 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6534 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6535 equivalents. Fix markup.
6536 * doc/tm.texi: Regenerate.
6537
e0ea8797
AH
65382013-04-15 Andrew Hsieh <andrewhsieh.google.com>
6539
6540 * config/i386/i386.opt: New option mstack-protector-guard=.
6541 * config/i386/i386-opts.h: Add enum stack_protector_guard.
6542 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6543 TARGET_SSP_TLS_GUARD.
6544 * config/i386/i386.c (ix86_option_override_internal): Set
6545 ix86_stack_protector_guard.
6546 * config/i386/i386.md (stack_protect_set): Enable for
6547 TARGET_SSP_TLS_GUARD only.
6548 (stack_protect_set_<mode>): Ditto.
6549 (stack_protect_test): Ditto.
6550 (stack_protect_test_<mode>): Ditto.
6551 * doc/invoke.texi (i386 Option): Document.
6552
811b72f9
EB
65532013-04-15 Eric Botcazou <ebotcazou@adacore.com>
6554
6555 PR target/56890
6556 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6557 (S_MODES): Set H_MODE bit.
6558 (SF_MODES): Set only S_MODE and SF_MODE bits.
6559 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6560 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6561 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6562 <MODE_FLOAT>: Likewise.
6563
5529fdd6
JY
65642013-04-15 Joey Ye <joey.ye@arm.com>
6565
6566 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6567
517b1da2
JY
65682013-04-15 Joey Ye <joey.ye@arm.com>
6569
6570 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6571 for real far jump.
6572 (thumb_far_jump_used_p): Count instruction size and set
6573 far_jump_used.
6574
01007ae0
EB
65752013-04-14 Eric Botcazou <ebotcazou@adacore.com>
6576
6577 * reorg.c (fill_simple_delay_slots): Reindent block of code.
6578 * resource.c (mark_target_live_regs): Reformat conditional block.
6579
c46f6580
SB
65802013-04-13 Steven Bosscher <steven@gcc.gnu.org>
6581
6582 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6583 notes, they are emitted only just before final.
6584 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6585
1f397f45
SB
65862013-04-13 Steven Bosscher <steven@gcc.gnu.org>
6587
6588 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6589 * cfgrtl.c (delete_insn): Call it here instead.
6590 * lra-spills.c (lra_final_code_change): Use delete_insn.
6591 * haifa-sched.c (sched_remove_insn): Likewise.
6592 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6593 returning to the nop pool.
6594 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6595 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
6596
58a51369
SB
65972013-04-12 Steven Bosscher <steven@gcc.gnu.org>
6598
6599 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6600 * doc/tm.texi: Regenerated.
6601
33159866
UB
66022013-04-12 Uros Bizjak <ubizjak@gmail.com>
6603
6604 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6605 QImode checks.
6606
226e378f
SB
66072013-04-12 Steven Bosscher <steven@gcc.gnu.org>
6608
6609 * df-core.c (df_find_def): Compare register numbers.
6610 (df_find_use): Likewise.
6611
fafb9b18
VM
66122013-04-12 Vladimir Makarov <vmakarov@redhat.com>
6613
6614 PR target/56903
6615 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6616 lra_in_progress for return.
6617
9a946fd6
GY
66182013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
6619
6620 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6621 define_insn into define_insn_and_split and emit movsicc patterns.
6622
41b83758
GY
66232013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
6624
6625 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6626
d3afd9aa
RB
66272013-04-12 Richard Biener <rguenther@suse.de>
6628
6629 * tree-pass.h (TODO_do_not_ggc_collect): New.
6630 * passes.c (execute_one_ipa_transform_pass): Honor
6631 TODO_do_not_ggc_collect.
6632 (execute_one_pass): Likewise.
6633
6634 Revert
6635 2013-04-10 Richard Biener <rguenther@suse.de>
6636
6637 * passes.c (init_optimization_passes): Remove reload pass.
6638 * ira.c (do_reload): Merge into ...
6639 (ira): ... this.
6640 (rest_of_handle_reload): Remove.
6641 (pass_reload): Likewise.
6642 * config/i386/i386.c (ix86_option_override): Refer to ira instead
6643 of reload for vzeroupper pass placement.
6644
06f9b387
JJ
66452013-04-12 Jakub Jelinek <jakub@redhat.com>
6646
6647 PR tree-optimization/56918
6648 PR tree-optimization/56920
6649 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6650 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
6651 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
6652 use wide_mul_with_sign method.
6653
953094d2
RB
66542013-04-12 Richard Biener <rguenther@suse.de>
6655
6656 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6657 not be considered a gimple constant.
6658
bb506982
MG
66592013-04-12 Marc Glisse <marc.glisse@inria.fr>
6660
6661 * fold-const.c (const_binop): Handle vector shifts by a scalar.
6662 (fold_binary_loc): Call const_binop also for mixed vector-scalar
6663 operations.
6664
4b84d650
JJ
66652013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
6666 Jakub Jelinek <jakub@redhat.com>
6667
6668 * opts.c: Include diagnostic-color.h.
6669 (common_handle_option): Handle OPT_fdiagnostics_color_.
6670 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6671 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6672 (diagnostic-color.o): New.
6673 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6674 (diagnostic_color_rule): New enum.
6675 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6676 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6677 the location string.
6678 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6679 either NULL, or color kind.
6680 * diagnostic-color.c: New file.
6681 * diagnostic-color.h: New file.
6682 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6683 arguments.
6684 * doc/invoke.texi (-fdiagnostics-color): Document.
6685 * pretty-print.h (pp_show_color): Define.
6686 (struct pretty_print_info): Add show_color field.
6687 * diagnostic.c: Include diagnostic-color.h.
6688 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6689 macros. Colorize error:, warning: etc. strings and also the location
6690 string.
6691 (diagnostic_show_locus): Colorize the caret line.
6692 * pretty-print.c: Include diagnostic-color.h.
6693 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
6694 inside of %< %> quotes or quoted through q format modifier.
6695
067a1e71
AK
66962013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6697
33159866 6698 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 6699
33159866 67002013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
6701
6702 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6703 code in CC_NZ mode.
6704 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6705 pattern.
6706
7b55f98f
MP
67072013-04-11 Marek Polacek <polacek@redhat.com>
6708
6709 PR tree-optimization/48184
33159866 6710 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 6711
966b587e
EB
67122013-04-11 Eric Botcazou <ebotcazou@adacore.com>
6713
6714 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6715 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6716 (skip_simple_arithmetic): Tidy up.
6717 * tree.h (skip_simple_constant_arithmetic): Declare.
6718
33159866 67192013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
6720
6721 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6722
1d42c1ec
RB
67232013-04-11 Richard Biener <rguenther@suse.de>
6724
6725 * tree-vect-loop.c (get_initial_def_for_induction): Properly
6726 generate vector constants.
6727
4ba5ea11
RB
67282013-04-11 Richard Biener <rguenther@suse.de>
6729
6730 PR tree-optimization/56878
6731 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6732 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6733 New function.
6734 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6735 Prefer to align the DR with the most invariant base address.
6736
f0defe58
SKS
67372013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6738
6739 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6740 comment.
6741
d07458be
JG
67422013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6743
6744 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6745 floating-point vector comparisons against 0.
6746
146b8692
JJ
67472013-04-11 Jakub Jelinek <jakub@redhat.com>
6748
6749 PR tree-optimization/56899
6750 * fold-const.c (extract_muldiv_1): Apply distributive law
6751 only if TYPE_OVERFLOW_WRAPS (ctype).
6752
b8578ff7
BC
67532013-04-11 Bin Cheng <bin.cheng@arm.com>
6754
6755 PR target/56124
6756 * ira-costs.c (scan_one_insn): Check whether the source rtx of
6757 loading has side effect.
6758
0ea8a6f9
SB
67592013-04-10 Steven Bosscher <steven@gcc.gnu.org>
6760
6761 * config/sparc/sparc.c: Include tree-pass.h.
6762 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6763 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
6764 head of file. Change return type. Split off gate function.
6765 (sparc_gate_work_around_errata): New function.
6766 (pass_work_around_errata): New pass definition.
6767 (insert_pass_work_around_errata) New pass insert definition to
6768 insert pass_work_around_errata just after delayed-branch scheduling.
6769 (sparc_option_override): Insert the pass.
6770 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6771
42e37616
DM
67722013-04-10 David S. Miller <davem@davemloft.net>
6773
89deeb3b
DM
6774 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6775 or -mcpu=hypersparc.
6776
42e37616
DM
6777 * target.def (cstore_mode): New hook.
6778 * target.h: Include insn-codes.h
6779 * targhooks.c: Likewise.
6780 (default_cstore_mode): New function.
6781 * targhooks.h: Declare it.
6782 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6783 * doc/tm.texi: Rebuild.
6784 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6785 target hook, rather than inspecting the insn_data.
6786 * config/sparc/sparc.c (sparc_cstore_mode): New function.
6787 (TARGET_CSTORE_MODE): Redefine.
6788 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6789 result patterns.
6790 * config/sparc/predicates.md (cstore_result_operand): New special
6791 predicate.
6792 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6793 Use it for operand 0.
6794 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6795 (*snesi_special): Likewise.
6796 (*snesi_zero): Likewise.
6797 (*seqsi_zero): Likewise.
6798 (*sltu_insn): Likewise.
6799 (*sgeu_insn): Likewise.
6800 (*seqdi_special): Make operand 0 and comparison operation be of
6801 DImode.
6802 (*snedi_special): Likewise.
6803 (*snedi_special_vis3): Likewise.
6804 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6805 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6806 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6807 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6808 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6809 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6810 (*sltu_extend_sp64): Likewise.
6811 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6812 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6813 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6814 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6815 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6816
95ca411e
YZ
68172013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
6818
6819 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6820 (aarch64_start_file): Use the new function.
6821
6782438d 68222013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 6823 Jason Merrill <jason@redhat.com>
6782438d
SKS
6824
6825 * common.opt: Add -gdwarf.
6826 * opts.c (common_handle_option): Handle it.
6827 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6828
bb313b93
RB
68292013-04-10 Richard Biener <rguenther@suse.de>
6830
6831 * passes.c (execute_todo): Do not call ggc_collect conditional here.
6832 (execute_one_ipa_transform_pass): But unconditionally here.
6833 (execute_one_pass): And here.
6834 (init_optimization_passes): Remove reload pass.
6835 * tree-pass.h (TODO_ggc_collect): Remove.
6836 (pass_reload): Likewise.
6837 * ira.c (do_reload): Merge into ...
6838 (ira): ... this.
6839 (rest_of_handle_reload): Remove.
6840 (pass_reload): Likewise.
6841 * config/i386/i386.c (ix86_option_override): Refer to ira instead
6842 of reload for vzeroupper pass placement.
6843 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6844 and todo_flags_finish of all passes.
6845
793d9a16
RB
68462013-04-10 Richard Biener <rguenther@suse.de>
6847
6848 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6849 first_const_oprnd field, rename first_def_type to first_op_type.
6850 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6851 (vect_get_and_check_slp_defs): Always use the type of the
6852 operand. Allow mixed vect_external_def, vect_constant_def types.
6853 (vect_get_constant_vectors): Handle mixed vect_external_def,
6854 vect_constant_def types.
6855
ee8a9b7b
JR
68562013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
6857
6858 PR tree-optimization/55524
6859 * tree-ssa-math-opts.c
6860 (convert_mult_to_fma): Don't use an fms construct
6861 when we don't have an fms operation, but fnma, and it looks
6862 likely that we'll be able to use the latter.
6863
6957a6f6
ZZ
68642013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6865
6866 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6867 function.
6868 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6869 inline fail caused by overwritable functions.
6870
34ab4a5b
CJW
68712013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
6872
6873 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6874 unnecessary bits in the constant power of two case.
6875
abf9bfbc
RB
68762013-04-10 Richard Biener <rguenther@suse.de>
6877
6878 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6879 broken code swapping operands.
6880 (vect_build_slp_tree): Do not compute load permutations here.
6881 (vect_analyze_slp_instance): Compute load permutations here,
6882 after building the SLP tree.
6883
f408477e
CB
68842013-04-09 Christian Bruel <christian.bruel@st.com>
6885
6886 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6887 of next/prev_real_insn.
6888
5ac42672
JH
68892013-04-09 Jan Hubicka <jh@suse.cz>
6890
abf9bfbc
RB
6891 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6892 Drop aliased parameter.
5ac42672
JH
6893 (function_and_variable_visibility): Do not handle alias pairs.
6894 * cgraph.c (varpool_externally_visible_p): Update prototype.
6895 * varpool.c (varpool_add_new_variable): Update.
6896
5017f1d2
KT
68972013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6898
6899 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6900
48eecbee
SB
69012013-04-09 Steven Bosscher <steven@gcc.gnu.org>
6902
a949cf1c
SB
6903 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6904
48eecbee
SB
6905 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6906
75ef8e3d
MP
69072013-04-09 Marek Polacek <polacek@redhat.com>
6908
6909 PR tree-optimization/48762
33159866 6910 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 6911
23847df4
RB
69122013-04-09 Richard Biener <rguenther@suse.de>
6913
6914 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6915 dealing with cost.
6916 (vect_build_slp_tree): Likewise.
6917 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6918 calculating the cost of a SLP instance.
6919 (vect_analyze_slp_instance): Use it from here, after building
6920 the SLP tree.
6921
ea3a0fde
JJ
69222013-04-09 Jakub Jelinek <jakub@redhat.com>
6923
6924 PR middle-end/56883
6925 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6926 expand_omp_for_static_chunk): Use simple_p = true in
6927 force_gimple_operand_gsi calls when assigning to addressable decls.
6928
a32dfe9d
JL
69292013-04-09 Jeff Law <law@redhat.com>
6930
6931 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6932 when the boolean was created by converting a wider object which
6933 had a boolean range.
6934
d755c7ef
RB
69352013-04-09 Richard Biener <rguenther@suse.de>
6936
6937 * tree-vectorizer.h (slp_void_p): Remove.
6938 (slp_tree): Typedef before _slp_tree declaration.
6939 (struct _slp_tree): Use a vector of slp_tree as children.
6940 (vect_get_place_in_interleaving_chain): Remove.
6941 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6942 Move ...
6943 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6944 and make static.
6945 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6946 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6947 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6948 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6949 Use slp_node instead of slp_void_p and adjust.
6950
3d741091
RB
69512013-04-09 Richard Biener <rguenther@suse.de>
6952
6953 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6954 work that is not necessary.
6955
39307ba7
JJ
69562013-04-09 Jakub Jelinek <jakub@redhat.com>
6957
6958 PR tree-optimization/56854
6959 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6960 forward into clobber stmts if it would change MEM_REF lhs into
6961 non-MEM_REF.
6962
343881fd
MK
69632013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
6964
6965 * tree.c (type_hash_lookup, type_hash_add): Make static.
6966 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6967
3922658a
RB
69682013-04-09 Richard Biener <rguenther@suse.de>
6969
6970 * tree.h (unsave_expr_now): Remove.
6971 * tree-inline.c (mark_local_for_remap_r): Remove.
6972 (unsave_expr_1): Likewise.
6973 (unsave_r): Likewise.
6974 (unsave_expr_now): Likewise.
6975 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6976 (propagate_tree_value): Likewise.
6977
9fb6b620
SB
69782013-04-08 Steven Bosscher <steven@gcc.gnu.org>
6979
6980 * doc/rtl.texi (sequence): Rewrite documentation to match the
6981 current use of SEQUENCE rtl objects.
6982 * rtl.def (SEQUENCE): Likewise.
6983
6984 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6985 Update documentation.
6986 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
6987 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
6988
6989 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
6990
8ddb5a29
TJ
69912013-04-08 Teresa Johnson <tejohnson@google.com>
6992
6993 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
6994 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 6995 methods.
8ddb5a29
TJ
6996 (estimate_edge_size_and_time): Add comment to suggest using rounding
6997 methods.
6998 (estimate_node_size_and_time): Ditto.
6999 (remap_edge_change_prob): Use helper rounding divide methods.
7000 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7001 (gimple_mod_pow2_value_transform): Ditto.
7002 (gimple_mod_subtract_transform): Ditto.
7003 (gimple_ic_transform): Ditto.
7004 (gimple_stringops_transform): Ditto.
7005 * stmt.c (conditional_probability): Ditto.
7006 (emit_case_dispatch_table): Ditto.
7007 * lto-cgraph.c (merge_profile_summaries): Ditto.
7008 * tree-optimize.c (execute_fixup_cfg): Ditto.
7009 * cfgcleanup.c (try_forward_edges): Ditto.
7010 * cfgloopmanip.c (scale_loop_profile): Ditto.
7011 (loopify): Ditto.
7012 (duplicate_loop_to_header_edge): Ditto.
7013 (lv_adjust_loop_entry_edge): Ditto.
7014 * tree-vect-loop.c (vect_transform_loop): Ditto.
7015 * profile.c (compute_branch_probabilities): Ditto.
7016 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7017 * lto-streamer-in.c (input_cfg): Ditto.
7018 * gimple-streamer-in.c (input_bb): Ditto.
7019 * ipa-cp.c (update_profiling_info): Ditto.
7020 (update_specialized_profile): Ditto.
7021 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7022 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 7023 rounding methods.
8ddb5a29
TJ
7024 * sched-rgn.c (compute_dom_prob_ps): Ditto.
7025 (compute_trg_info): Ditto.
7026 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7027 (purge_dead_edges): Ditto.
7028 * loop-unswitch.c (unswitch_loop): Ditto.
7029 * cgraphclones.c (cgraph_clone_edge): Ditto.
7030 (cgraph_clone_node): Ditto.
7031 * tree-inline.c (copy_bb): Ditto.
7032 (copy_edges_for_bb): Ditto.
7033 (initialize_cfun): Ditto.
7034 (copy_cfg_body): Ditto.
7035 (expand_call_inline): Ditto.
7036
661e6bd7
KT
70372013-04-08 Kai Tietz <ktietz@redhat.com>
7038
7039 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7040 TARGET_CYGWIN64 by TARGET_64BIT.
7041
105766f3
JR
70422013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7043
7044 * config/epiphany/epiphany.md (GPR_1): New constant.
7045 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7046 * config/epiphany/epiphany.c (gen_compare_reg):
7047 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7048 is already in place.
7049 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7050 Don't require being called during rtl expansion; If y operlaps r0,
7051 return 0.
7052 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7053 (epiphany_expand_epilogue): Likewise.
7054
8afab237
JR
7055 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7056 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 7057 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 7058
fa7707d6
JR
7059 * config/epiphany/constraints.md (CnL): New constraint.
7060 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7061 * config/epiphany/predicates.md (add_operand): Allow 1024.
7062
5138e18d
JR
7063 * config/epiphany/epiphany.md (logical_op): New code iterator.
7064 (op_mnc): New code attribute.
7065 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7066 (mov_f+1, mov_f+2): New peephole2 patterns.
7067
2ccc703d
JR
7068 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7069 (cstoresi4): Also allow re-use of zero result when doing a NE
7070 comparison to a non-zero operand.
aefb0819 7071 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 7072
093ac0a5
JR
7073 * config/epiphany/epiphany.md (<insn_opname>v2si3):
7074 Use gen_addsi3_i / gen_subsi3_i.
7075
f223bb13
JJ
70762013-04-08 Jakub Jelinek <jakub@redhat.com>
7077
7078 PR c++/34949
7079 PR c++/50243
7080 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7081 contain anything but clobbers, at most one __builtin_stack_restore,
7082 optionally debug stmts and final resx, and if it has at least one
7083 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
7084 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7085 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7086 which isn't defaut definition, remove them.
7087 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7088 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7089 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7090 with MEM_REF LHS with SSA_NAME address.
7091
4481581f
JL
70922013-04-08 Jeff Law <law@redhat.com>
7093
7094 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 7095
451dabda
RB
70962013-04-08 Richard Biener <rguenther@suse.de>
7097
7098 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7099 extra newline.
7100 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7101 determined vector type.
7102 (vect_analyze_data_refs): Likewise.
7103 (vect_get_new_vect_var): Adjust.
7104 (vect_create_destination_var): Preserve SSA name versions.
7105 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7106 not dump anything here.
7107
3b088b47
JR
71082013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7109
7110 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7111 Add member lr_slot_known.
7112 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7113 if necessary.
7114 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7115 Remove code that sets lr_slot_offset according to what a previous
7116 version of epiphany_emit_save_restore used to do.
7117 (epiphany_emit_save_restore): When doing an lr save or restore,
7118 set/verify lr_slot_known and lr_slot_offset.
7119
d8484d41
XQ
71202013-04-08 Xinyu Qi <xyqi@marvell.com>
7121
33159866
UB
7122 PR target/54338
7123 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
7124 in ALL_REGS.
7125
481be1c4
RB
71262013-04-08 Richard Biener <rguenther@suse.de>
7127
7128 * alias.c (find_base_term): Fix thinko in previous change.
7129
401f3a81
JJ
71302013-04-08 Jakub Jelinek <jakub@redhat.com>
7131
7132 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7133 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7134 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
7135 if possible to compute val.
7136 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7137 For QImode integers don't require anything about precision. Use
7138 const_with_all_bytes_same to find out if the constant doesn't have
7139 repeated bytes in it.
7140
03ed99a8
AK
71412013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7142
7143 * config/s390/s390.c (s390_expand_insv): Only accept insertions
7144 within mode size.
7145
781b2e62
MP
71462013-04-08 Marek Polacek <polacek@redhat.com>
7147
7148 PR rtl-optimization/48182
7149 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7150 value to 1.
7151
27e430a2
JDA
71522013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7153
7154 PR target/55487
7155 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7156 nuses, make sure we have a label.
7157
4902aa64
BS
71582013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7159
7160 PR target/56843
7161 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7162 (rs6000_emit_swdiv_low_precision): Remove.
7163 (rs6000_emit_swdiv): Rewrite to handle between one and four
7164 iterations of Newton-Raphson generally; modify required number of
7165 iterations for some cases.
7166 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7167
7bca81dc
SB
71682013-04-05 Steven Bosscher <steven@gcc.gnu.org>
7169
7170 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7171 set-but-unused variable.
7172
7173 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7174 basic blocks of released function bodies garbage-collectable.
7175
7176 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7177 (struct rtl_opt_pass): Add TODO_df_finish.
7178
7179 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7180
4542a38a
GY
71812013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7182
7183 * config/arm/constraints.md (q): New constraint.
7184 * config/arm/ldrdstrd.md: New file.
7185 * config/arm/arm.md (ldrdstrd.md) New include.
7186 (arm_movdi): Use "q" instead of "r" constraint
7187 for double-word memory access.
7188 (movdf_soft_insn): Likewise.
7189 * config/arm/vfp.md (movdi_vfp): Likewise.
7190 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 7191 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
7192 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7193 (mem_ok_for_ldrd_strd): Likewise.
7194 (output_move_double): Update assertion.
7195
2385b218
GY
71962013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7197
7198 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7199
75fe1cb5
GY
72002013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7201
7202 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7203 define_insn_and_split.
7204 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7205
dd660e8e
GY
72062013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7207
7208 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7209 define_insn_and_split.
33159866 7210 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
7211 (shiftsi3_compare): New pattern.
7212 (rrx): New pattern.
7213 * config/arm/unspecs.md (UNSPEC_RRX): New.
7214
045e472c
GY
72152013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7216
7217 * config/arm/arm.md (negdi_extendsidi): New pattern.
7218 (negdi_zero_extendsidi): Likewise.
7219
3f3bf1a8
GY
72202013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7221
7222 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7223 define_insn_and_split.
7224 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7225 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7226
b0b49556
GY
72272013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7228
7229 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7230 define_insn_and_split.
7231 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7232 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7233
d633dd84
GY
72342013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7235
7236 * config/arm/arm.md (subsi3_carryin): New pattern.
7237 (subsi3_carryin_const): Likewise.
7238 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7239 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7240
f4499066
GY
72412013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7242
7243 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7244
ceef6fd9
GY
72452013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7246
7247 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 7248 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 7249
ddbdd8a7
KT
72502013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7251
7252 * config/arm/arm.c (arm_expand_builtin): Change fcode
7253 type to unsigned int.
7254
8456d78a
RR
72552013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7256
7257 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7258
526c230f
ILT
72592013-04-04 Ian Lance Taylor <iant@google.com>
7260
33159866
UB
7261 * doc/standards.texi (Standards): The Go frontend supports the Go 1
7262 language standard.
526c230f 7263
3cfbe04d
SB
72642013-04-04 Steven Bosscher <steven@gcc.gnu.org>
7265
7266 PR middle-end/56729
7267 * df-scan.c (df_insn_delete): Disable failing assert.
7268
dfa3f8d0
KT
72692013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7270
7271 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7272 New function prototype.
7273 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7274 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7275 (arm_builtin_vectorized_function): New function.
7276
f7837758
KT
72772013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7278
7279 * config/arm/arm_neon_builtins.def: New file.
7280 * config/arm/arm.c (neon_builtin_data): Move contents to
7281 arm_neon_builtins.def.
7282 (enum arm_builtins): Include neon builtin definitions.
7283 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 7284 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 7285
39c1b6db
MP
72862013-04-04 Marek Polacek <polacek@redhat.com>
7287
7288 PR tree-optimization/48186
7289 * predict.c (maybe_hot_frequency_p): Return false if
7290 HOT_BB_FREQUENCY_FRACTION is 0.
7291 (cgraph_maybe_hot_edge_p): Likewise.
7292
314f64eb
RB
72932013-04-04 Richard Biener <rguenther@suse.de>
7294
7295 PR tree-optimization/56826
7296 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7297 more accurately.
7298
51a905b2
RB
72992013-04-04 Richard Biener <rguenther@suse.de>
7300
7301 PR tree-optimization/56213
7302 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 7303 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 7304
f1bf4f3a
RB
73052013-04-04 Richard Biener <rguenther@suse.de>
7306
7307 PR tree-optimization/56837
7308 * tree-loop-distribution.c (classify_partition): For non-zero
7309 values require that the value has the same precision as its
7310 mode to be useful as memset value.
7311
0bca7ded
NC
73122013-04-03 Nick Clifton <nickc@redhat.com>
7313
33159866 7314 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
7315 (fmssf4): Use fmsf.s on E3V5 architectures.
7316 (fnmasf4): Use fnmaf.s on E3V5 architectures.
7317 (fnmssf4): Use fnmsf.s on E3V5 architectures.
7318
b4019227
JL
73192013-04-03 Jeff Law <law@redhat.com>
7320
7321 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7322 (lra-eliminations.o): Likewise.
7323
f57ddb5b
TJ
73242013-04-03 Teresa Johnson <tejohnson@google.com>
7325
7326 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 7327 compute_working_sets here from profile.c.
f57ddb5b 7328 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
7329 (gcov_working_set_t): Moved typedef here from basic-block.h
7330 (compute_working_set): Declare.
f57ddb5b
TJ
7331 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7332 (get_working_sets): Renamed from compute_working_set,
33159866 7333 replace most of body with call to new compute_working_sets.
f57ddb5b 7334 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
7335 to get_working_sets.
7336 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 7337 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 7338 to get_working_sets.
f57ddb5b
TJ
7339 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7340 * gcov-dump.c (dump_working_sets): New function.
7341
5e0919f1
KZ
73422013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
7343
7344 * hwint.c (sext_hwi, zext_hwi): New functions.
7345 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7346 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7347 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7348 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7349 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7350 (sext_hwi, zext_hwi): New functions.
0bca7ded 7351
be672e08
JL
73522013-04-03 Jeff Law <law@redhat.com>
7353
7354 PR tree-optimization/56799
33159866
UB
7355 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7356 back test for widening conversion erroneously dropped in prior change.
be672e08 7357
9d821fa5
KT
73582013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7359
7360 PR target/56809
7361 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7362 instead of next_real_insn.
7363
71c581e7
MP
73642013-04-03 Marek Polacek <polacek@redhat.com>
7365
7366 PR sanitizer/55702
33159866 7367 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 7368
4a32ef80
KT
73692013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7370
7371 PR target/56809
7372 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7373 next_real_insn.
7374 (thumb1_output_casesi): Likewise.
7375 (thumb2_output_casesi): Likewise.
7376
1b2253d4
RB
73772013-04-03 Richard Biener <rguenther@suse.de>
7378
7379 PR tree-optimization/56817
7380 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7381 Split out ...
7382 (tree_unroll_loops_completely_1): ... new function to manually
7383 walk the loop tree, properly defering outer loops of unrolled
7384 loops to later iterations.
7385
38000232
MG
73862013-04-03 Marc Glisse <marc.glisse@inria.fr>
7387
7388 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7389 (vectorizable_load): Likewise.
7390 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7391 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7392
3fa35298
MG
73932013-04-03 Marc Glisse <marc.glisse@inria.fr>
7394
7395 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7396 BIT_FIELD_REF.
7397
b3d45ff0
UW
73982013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7399
7400 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7401
ec9202a8
BC
74022013-04-03 Bin Cheng <bin.cheng@arm.com>
7403
7404 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7405
6805bd36
MG
74062013-04-03 Marc Glisse <marc.glisse@inria.fr>
7407
7408 PR tree-optimization/56790
33159866
UB
7409 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7410 folding.
6805bd36 7411
da694a77
MG
74122013-04-03 Marc Glisse <marc.glisse@inria.fr>
7413
7414 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7415 Handle VEC_MERGE.
7416 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7417 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7418 equal arguments.
7419
4e7d7b3d
JJ
74202013-04-03 Jakub Jelinek <jakub@redhat.com>
7421
7422 PR c/19449
7423 * tree.h (force_folding_builtin_constant_p): New decl.
7424 * builtins.c (force_folding_builtin_constant_p): New variable.
7425 (fold_builtin_constant_p): Fold immediately also if
7426 force_folding_builtin_constant_p.
7427
e6c9d234
RB
74282013-04-03 Richard Biener <rguenther@suse.de>
7429
7430 PR tree-optimization/56812
7431 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7432 DRs of the same interleaving chain are independent.
7433
984d07dd
JM
74342013-04-02 Jason Merrill <jason@redhat.com>
7435
7436 * gdbinit.in (pbb): Use debug fn.
7437
622849c9
LC
74382013-04-02 Lawrence Crowl <crowl@google.com>
7439
7440 * sese.h (struct ivtype_map_elt_s): Remove unused.
7441 (extern debug_ivtype_map): Remove unused.
7442 (extern eq_ivtype_map_elts): Remove unused.
7443 * sese.c (debug_ivtype_map): Removed unused.
7444 (debug_ivtype_map_1): Removed unused.
7445 (debug_ivtype_elt): Remove unused.
7446 (eq_ivtype_map_elts): Remove unused.
7447
7448
82c0e1a0
KT
74492013-04-02 Kai Tietz <ktietz@redhat.com>
7450
7451 PR target/52790
7452 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7453 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
7454 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7455 function.
82c0e1a0
KT
7456 (legitimize_pe_coff_symbol): Likewise.
7457 (is_imported_p): New helper-function.
7458 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7459 for Windows x64 targets.
7460 (ix86_expand_prologue): Optimize for pe-coff targets.
7461 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7462 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7463 medium/large code-model.
7464 (legitimize_pic_address): Likewise.
7465 (legitimize_tls_address): Likewise.
7466 (ix86_expand_call): Likewise.
7467 (x86_output_mi_thunk): Likewise.
7468 (get_dllimport_decl): Add new beimport argument.
7469 (construct_plt_address): Don't assert for x64 pe-coff targets.
7470 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7471 targets.
7472 (SYMBOL_FLAG_STUBVAR): New macro.
7473 (SYMBOL_REF_STUBVAR_P): Likewise.
7474 * config/i386/winnt.c (stub_list): New structure.
7475 (stub_head): New local variable.
7476 (i386_pe_record_stub): New function.
7477 (i386_pe_file_end): Emit refptr-stubs.
7478
5d751b0c
JJ
74792013-04-02 Jakub Jelinek <jakub@redhat.com>
7480
09bb4c99
JJ
7481 PR rtl-optimization/56745
7482 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7483 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7484
a1d8947a
JJ
7485 PR c++/34949
7486 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7487 and both of them are MEM_REFs, just compare first argument for
7488 equality and attempt to deal even with differing offsets.
7489
5d751b0c
JJ
7490 PR c++/34949
7491 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7492 of gimple_clobber_p to be MEM_REF.
7493 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7494 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
7495 after gimplification.
7496 * asan.c (get_mem_ref_of_assignment): Don't instrument
7497 gimple_clobber_p stmts.
7498 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7499 gimple_clobber_p stmt if they have MEM_REF lhs and
7500 are dead because of another gimple_clobber_p stmt.
7501 * tree-ssa-live.c (clear_unused_block_pointer): Treat
7502 gimple_clobber_p stmts like debug stmts.
7503 (remove_unused_locals): Remove clobbers with MEM_REF lhs
7504 that refer to unused VAR_DECLs or uninitialized values.
7505 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7506 gimple_clobber_p stmts if they refer to removed parameters.
7507 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7508 formatting.
7509
e594716a
UB
75102013-04-02 Uros Bizjak <ubizjak@gmail.com>
7511
7512 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7513 using SWI48 mode attribute.
7514
7a80735b
WM
75152013-04-02 Wei Mi <wmi@google.com>
7516
7517 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7518 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7519 *<rotate_insn><mode>3_mask in i386.md.
7520
f423a9e4
AI
75212013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
7522
7523 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7524
90eb75f2
RB
75252013-04-02 Richard Biener <rguenther@suse.de>
7526
7527 PR tree-optimization/56778
7528 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7529 Runtime alias tests are not supported for gather loads.
7530 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7531 stmts referenced from SSA operands before updating SSA form.
7532
d8c69a92
IC
75332013-04-02 Ian Caulfield <ian.caulfield@arm.com>
7534 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7535
7536 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
7537 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7538 * config/arm/cortex-a53.md: New file.
7539 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7540 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7541 * config/arm/arm.c (arm_issue_rate): Likewise.
7542 * config/arm/arm-tune.md: Regenerate
7543 * config/arm/arm-tables.opt: Regenerate.
7544 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 7545
239eb04c
ZC
75462013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
7547
7548 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7549 non-static link.
7550
c902d3c8
SN
75512013-04-02 Sofiane Naci <sofiane.naci@arm.com>
7552
d8c69a92
IC
7553 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7554 scalar load/store operations using B/H registers.
c902d3c8
SN
7555 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7556
051d0e2f
SN
75572013-04-02 Sofiane Naci <sofiane.naci@arm.com>
7558
7559 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7560 scalar move.
7561 * config/aarch64/aarch64.c
7562 (aarch64_simd_scalar_immediate_valid_for_move): New.
7563 * config/aarch64/aarch64-protos.h
7564 (aarch64_simd_scalar_immediate_valid_for_move): New.
7565 * config/aarch64/constraints.md (Dh, Dq): New.
7566 * config/aarch64/iterators.md (hq): New.
7567
0ee1e3d9
EB
75682013-04-02 Eric Botcazou <ebotcazou@adacore.com>
7569
7570 * reorg.c (get_branch_condition): Deal with conditional returns.
7571 (fill_simple_delay_slots): Remove dead code dealing with jumps.
7572
136fb3f7
WM
75732013-04-01 Wei Mi <wmi@google.com>
7574
7575 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7576 Truncate operand 2 using %b asm operand modifier.
7577 (*<shift_insn><mode>3_mask): Ditto.
7578 (*<rotate_insn><mode>3_mask): Ditto.
7579
6388c738
SB
75802013-04-01 Steven Bosscher <steven@gcc.gnu.org>
7581
7582 PR middle-end/56798
7583 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7584
f7a4d826
KK
75852013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
7586
7587 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7588 of next_real_insn.
7589 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7590
4b943a49
LC
75912013-03-30 Lawrence Crowl <crowl@google.com>
7592
7593 * dse.c (clear_alias_sets): Remove never set.
7594 (disqualified_clear_alias_sets): Remove never set.
7595 (clear_alias_mode_pool): Remove never set.
7596 (dse_step0): Remove condition that is never true.
7597 (canon_address): Remove condition that is never true.
7598 (dse_step7): Remove condition that is never true.
7599 (rest_of_handle_dse): Remove condition that is never true.
7600 (rest_of_handle_dse::did_global): Remove never read from above.
7601 (dse_step2_spill): Remove never called from above.
7602 (dse_step5_spill): Remove never called from above.
7603
39718607
SB
76042013-03-30 Steven Bosscher <steven@gcc.gnu.org>
7605
da5c6bde
SB
7606 * doc/md.texi (Standard Names) <casesi>: Update documentation for
7607 JUMP_TABLE_DATA changes.
7608 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7609 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7610 (Insns) <jump_table_data>: New entry.
7611 * doc/tm.texi: Regenerate.
7612
39718607
SB
7613 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7614
7615 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7616 for table jump at the end of a basic block using tablejump_p.
7617 * targhooks.c (default_invalid_within_doloop): Likewise.
7618 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7619 target hook implementation that is identical to the default hook.
7620 (rs6000_invalid_within_doloop): Remove.
7621
7622 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7623 unused variable from tablejump_p call.
7624
7625 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7626 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7627 (INSN_DELETED_P): Likewise.
7628 (emit_jump_table_data): New prototype.
7629 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7630 after 4th as unused.
7631 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7632 * sched-vis.c (print_insn): Likewise.
7633 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7634 insn for compatibility with back ends that use next_active_insn to
7635 identify jump table data.
7636 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7637 (remove_insn): Likewise.
7638 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7639 to be emitted.
7640 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7641 (emit_jump_table_data): New function.
7642
7643 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7644 basic block, a JUMP_TABLE_DATA never is.
7645 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7646 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7647 off from code handling real insns.
7648 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7649 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7650 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7651 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7652 is not a NONDEBUG_INSN_P.
7653 * ira-costs.c (scan_one_insn): Likewise.
7654 * jump.c (mark_all_labels): Likewise.
7655 (mark_jump_label_1): Likewise.
7656 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7657 * lra.c (get_insn_freq): Expect all insns reaching here to be in
7658 a basic block.
7659 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7660 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7661 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7662 JUMP_TABLE_DATA_P insns.
7663 (calculate_elim_costs_all_insns): Likewise.
7664 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7665 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7666 (delete_output_reload): Code style fixups.
7667 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7668 insn flags on this non-insn.
7669 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7670 as scheduling barriers, for pre-change compatibility.
7671 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7672 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7673
7674 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7675 redundant JUMP_TABLE_DATA_P test.
7676 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7677 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7678 (frv_for_each_packet): Likewise.
7679 * config/i386/i386.c (min_insn_size): Likewise.
7680 (ix86_avoid_jump_mispredicts): Likewise.
7681 * config/m32r/m32r.c (m32r_is_insn): Likewise.
7682 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7683 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7684 (mips16_insn_length): Robustify.
7685 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7686 (mips16_split_long_branches): Likewise.
7687 * config/pa/pa.c (pa_combine_instructions): Likewise.
7688 * config/rs6000/rs6000.c (get_next_active_insn): Treat
7689 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7690 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7691 as contributing to pool range lengths.
7692 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7693 Remove redundant JUMP_TABLE_DATA_P test.
7694 (sh_loop_align): Likewise.
7695 (split_branches): Likewise.
7696 (sh_insn_length_adjustment): Likewise.
7697 * config/spu/spu.c (get_branch_target): Likewise.
7698
0208f7da
JH
76992013-03-29 Jan Hubicka <jh@suse.cz>
7700
7701 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7702 gcov streaming; stream hot bb threshold to ltrans.
7703 * predict.c (get_hot_bb_threshold): Break out from ....
7704 (maybe_hot_count_p): ... here.
7705 (set_hot_bb_threshold): New function.
7706 * lto-section-in.c (lto_section_name): Add profile.
7707 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7708 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7709 and data-streamer.h
7710 (histogram_entry): New structure.
7711 (histogram, histogram_pool): New global vars.
7712 (histogram_hash): New structure.
7713 (histogram_hash::hash): New method.
7714 (histogram_hash::equal): Likewise.
7715 (account_time_size): New function.
7716 (cmp_counts): New function.
7717 (dump_histogram): New function.
7718 (ipa_profile_generate_summary): New function.
7719 (ipa_profile_write_summary): New function.
7720 (ipa_profile_read_summary): New function.
7721 (ipa_profile): Decide on threshold.
e594716a
UB
7722 (pass_ipa_profile): Add ipa_profile_write_summary and
7723 ipa_profile_read_summary.
0208f7da
JH
7724 * Makefile.in (ipa.o): Update dependencies.
7725 * lto-streamer.h (LTO_section_ipa_profile): New section.
7726
5a6ccc94
GDR
77272013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
7728
7729 * tree.h (VAR_P): New.
7730
39385fa6
PC
77312013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
7732
7733 PR lto/56777
7734 * doc/invoke.texi ([-fwhole-program]): Fix typo.
7735
34f0d87a
SB
77362013-03-29 Steven Bosscher <steven@gcc.gnu.org>
7737
7738 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7739 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7740 (control_flow_insn_p): Likewise.
7741 * cfgrtl.c (duplicate_insn_chain): Likewise.
7742 * final.c (get_attr_length_1): Likewise.
7743 (shorten_branches): Likewise.
7744 (final_scan_insn): Likewise.
7745 * function.c (instantiate_virtual_regs): Likewise.
7746 * gcse.c (insert_insn_end_basic_block): Likewise.
7747 * ira-costs.c (scan_one_insn): Likewise.
7748 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7749 * lra.c (check_rtl): Likewise.
7750 * reload1.c (elimination_costs_in_insn): Likewise.
7751 * reorg.c (follow_jumps): Likewise.
7752
7753 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7754 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7755 (thumb_far_jump_used_p): Likewise.
7756 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7757 (workaround_speculation): Likewise.
7758 (add_sched_insns_for_speculation): Likewise.
7759 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7760 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7761 (frv_for_each_packet): Likewise.
7762 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7763 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7764 (final_emit_insn_group_barriers): Likewise.
7765 * config/m32r/m32r.c (m32r_is_insn): Likewise.
7766 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7767 (mips16_insn_length): Likewise.
7768 * config/pa/pa.c (pa_reorg): Likewise.
7769 (pa_combine_instructions): Likewise.
7770 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7771 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7772 (sh_reorg): Likewise.
7773 (split_branches): Likewise.
7774 * config/spu/spu.c (get_branch_target): Likewise.
7775
7776 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7777 JUMP_TABLE_DATA_P.
7778
4ac761b0
KY
77792013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
7780
39385fa6 7781 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
7782 Fix declaration name.
7783
58a49189
LC
77842013-03-28 Lawrence Crowl <crowl@google.com>
7785
7786 * graphds.h (struct graph.indicies): Remove unused.
7787 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7788 (SCOP_ORIGINAL_PDDRS): Remove unused.
7789 * sese.h (extern insert_loop_close_phis): Removed unused.
7790 (extern insert_guard_phis): Removed unused.
7791 (extern ivtype_map_elt_info): Removed unused.
7792 (new_ivtype_map_elt): Removed unused.
7793 * sese.c (ivtype_map_elt_info): Removed unused.
7794
7b3b6ae4
LC
77952013-03-28 Lawrence Crowl <crowl@google.com>
7796
7797 * Makefile.in: Add several missing include dependences.
7798 (DUMPFILE_H): New.
7799 (test-dump.o): New. This object is not added to any executable,
7800 but is present for ad-hoc testing.
7801 * bitmap.c
7802 (debug (const bitmap_head_def &)): New.
7803 (debug (const bitmap_head_def *)): New.
7804 * bitmap.h
7805 (extern debug (const bitmap_head_def &)): New.
7806 (extern debug (const bitmap_head_def *)): New.
7807 * cfg.c
7808 (debug (edge_def &)): New.
7809 (debug (edge_def *)): New.
7810 * cfghooks.c
7811 (debug (basic_block_def &)): New.
7812 (debug (basic_block_def *)): New.
7813 * dumpfile.h
7814 (dump_node (const_tree, int, FILE *)): Correct source file.
7815 * dwarf2out.c
7816 (debug (die_struct &)): New.
7817 (debug (die_struct *)): New.
7818 * dwarf2out.h
7819 (extern debug (die_struct &)): New.
7820 (extern debug (die_struct *)): New.
7821 * gimple-pretty-print.c
7822 (debug (gimple_statement_d &)): New.
7823 (debug (gimple_statement_d *)): New.
7824 * gimple-pretty-print.h
7825 (extern debug (gimple_statement_d &)): New.
7826 (extern debug (gimple_statement_d *)): New.
7827 * ira-build.c
7828 (debug (ira_allocno_copy &)): New.
7829 (debug (ira_allocno_copy *)): New.
7830 (debug (ira_allocno &)): New.
7831 (debug (ira_allocno *)): New.
7832 * ira-int.h
7833 (extern debug (ira_allocno_copy &)): New.
7834 (extern debug (ira_allocno_copy *)): New.
7835 (extern debug (ira_allocno &)): New.
7836 (extern debug (ira_allocno *)): New.
7837 * ira-lives.c
7838 (debug (live_range &)): New.
7839 (debug (live_range *)): New.
7840 * lra-int.h
7841 (debug (lra_live_range &)): New.
7842 (debug (lra_live_range *)): New.
7843 * lra-lives.c
7844 (debug (lra_live_range &)): New.
7845 (debug (lra_live_range *)): New.
7846 * omega.c
7847 (debug (omega_pb_d &)): New.
7848 (debug (omega_pb_d *)): New.
7849 * omega.h
7850 (extern debug (omega_pb_d &)): New.
7851 (extern debug (omega_pb_d *)): New.
7852 * print-rtl.c
7853 (debug (const rtx_def &)): New.
7854 (debug (const rtx_def *)): New.
7855 * print-tree.c
7856 (debug_tree (tree): Move within file.
7857 (debug_raw (const tree_node &)): New.
7858 (debug_raw (const tree_node *)): New.
7859 (dump_tree_via_hooks (const tree_node *, int)): New.
7860 (debug (const tree_node &)): New.
7861 (debug (const tree_node *)): New.
7862 (debug_verbose (const tree_node &)): New.
7863 (debug_verbose (const tree_node *)): New.
7864 (debug_head (const tree_node &)): New.
7865 (debug_head (const tree_node *)): New.
7866 (debug_body (const tree_node &)): New.
7867 (debug_body (const tree_node *)): New.
7868 (debug_vec_tree (tree): Move and reimplement in terms of dump.
7869 (debug (vec<tree, va_gc> &)): New.
7870 (debug (vec<tree, va_gc> *)): New.
7871 * rtl.h
7872 (extern debug (const rtx_def &)): New.
7873 (extern debug (const rtx_def *)): New.
7874 * sbitmap.c
7875 (debug_raw (simple_bitmap_def &)): New.
7876 (debug_raw (simple_bitmap_def *)): New.
7877 (debug (simple_bitmap_def &)): New.
7878 (debug (simple_bitmap_def *)): New.
7879 * sbitmap.h
7880 (extern debug (simple_bitmap_def &)): New.
7881 (extern debug (simple_bitmap_def *)): New.
7882 (extern debug_raw (simple_bitmap_def &)): New.
7883 (extern debug_raw (simple_bitmap_def *)): New.
7884 * sel-sched-dump.c
7885 (debug (vinsn_def &)): New.
7886 (debug (vinsn_def *)): New.
7887 (debug_verbose (vinsn_def &)): New.
7888 (debug_verbose (vinsn_def *)): New.
7889 (debug (expr_def &)): New.
7890 (debug (expr_def *)): New.
7891 (debug_verbose (expr_def &)): New.
7892 (debug_verbose (expr_def *)): New.
7893 (debug (vec<rtx> &)): New.
7894 (debug (vec<rtx> *)): New.
7895 * sel-sched-dump.h
7896 (extern debug (vinsn_def &)): New.
7897 (extern debug (vinsn_def *)): New.
7898 (extern debug_verbose (vinsn_def &)): New.
7899 (extern debug_verbose (vinsn_def *)): New.
7900 (extern debug (expr_def &)): New.
7901 (extern debug (expr_def *)): New.
7902 (extern debug_verbose (expr_def &)): New.
7903 (extern debug_verbose (expr_def *)): New.
7904 (extern debug (vec<rtx> &)): New.
7905 (extern debug (vec<rtx> *)): New.
7906 * sel-sched-ir.h
7907 (_list_iter_cond_expr): Make inline instead of static.
7908 * sreal.c
7909 (debug (sreal &)): New.
7910 (debug (sreal *)): New.
7911 * sreal.h
7912 (extern debug (sreal &)): New.
7913 (extern debug (sreal *)): New.
7914 * tree.h
7915 (extern debug_raw (const tree_node &)): New.
7916 (extern debug_raw (const tree_node *)): New.
7917 (extern debug (const tree_node &)): New.
7918 (extern debug (const tree_node *)): New.
7919 (extern debug_verbose (const tree_node &)): New.
7920 (extern debug_verbose (const tree_node *)): New.
7921 (extern debug_head (const tree_node &)): New.
7922 (extern debug_head (const tree_node *)): New.
7923 (extern debug_body (const tree_node &)): New.
7924 (extern debug_body (const tree_node *)): New.
7925 (extern debug (vec<tree, va_gc> &)): New.
7926 (extern debug (vec<tree, va_gc> *)): New.
7927 * tree-cfg.c
7928 (debug (struct loop &)): New.
7929 (debug (struct loop *)): New.
7930 (debug_verbose (struct loop &)): New.
7931 (debug_verbose (struct loop *)): New.
7932 * tree-dump.c: Add header dependence.
7933 * tree-flow.h
7934 (extern debug (struct loop &)): New.
7935 (extern debug (struct loop *)): New.
7936 (extern debug_verbose (struct loop &)): New.
7937 (extern debug_verbose (struct loop *)): New.
7938 * tree-data-ref.c
7939 (debug (data_reference &)): New.
7940 (debug (data_reference *)): New.
7941 (debug (vec<data_reference_p> &)): New.
7942 (debug (vec<data_reference_p> *)): New.
7943 (debug (vec<ddr_p> &)): New.
7944 (debug (vec<ddr_p> *)): New.
7945 * tree-data-ref.h
7946 (extern debug (data_reference &)): New.
7947 (extern debug (data_reference *)): New.
7948 (extern debug (vec<data_reference_p> &)): New.
7949 (extern debug (vec<data_reference_p> *)): New.
7950 (extern debug (vec<ddr_p> &)): New.
7951 (extern debug (vec<ddr_p> *)): New.
7952 * tree-ssa-alias.c
7953 (debug (pt_solution &)): New.
7954 (debug (pt_solution *)): New.
7955 * tree-ssa-alias.h
7956 (extern debug (pt_solution &)): New.
7957 (extern debug (pt_solution *)): New.
7958 * tree-ssa-alias.c
7959 (debug (_var_map &)): New.
7960 (debug (_var_map *)): New.
7961 (debug (tree_live_info_d &)): New.
7962 (debug (tree_live_info_d *)): New.
7963 * tree-ssa-alias.h
7964 (extern debug (_var_map &)): New.
7965 (extern debug (_var_map *)): New.
7966 (extern debug (tree_live_info_d &)): New.
7967 (extern debug (tree_live_info_d *)): New.
7968
be77e1e5
JH
79692013-03-28 Jan Hubicka <jh@suse.cz>
7970
7971 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7972
777e6976
IB
79732013-03-28 Ian Bolton <ian.bolton@arm.com>
7974
7975 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7976 record only when desired or required.
7977
9cd347ae
UB
79782013-03-28 Uros Bizjak <ubizjak@gmail.com>
7979
7980 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7981 *vec_extractv2di_1_rex64. Use x64 isa attribute.
7982
33159866 79832013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
7984
7985 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7986 (*andsi3_compare0_uxtw): New pattern.
7987 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
7988 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
7989
89ab31c1
JH
79902013-03-28 Jan Hubicka <jh@suse.cz>
7991
7992 * data-streamer-in.c (streamer_read_gcov_count): New function.
7993 * gimple-streamer-out.c: Include value-prof.h.
7994 (output_gimple_stmt): Output histogram.
7995 (output_bb): Use streamer_write_gcov_count.
7996 * value-prof.c: Include data-streamer.h
7997 (dump_histogram_value): Add HIST_TYPE_MAX.
7998 (stream_out_histogram_value): New function.
7999 (stream_in_histogram_value): New function.
8000 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8001 (stream_out_histogram_value, stream_in_histogram_value): Declare.
8002 * data-streamer-out.c (streamer_write_gcov_count): New function.
8003 (streamer_write_gcov_count_stream): New function.
8004 * lto-cgraph.c (lto_output_edge): Update counter streaming.
8005 (lto_output_node): Likewise.
8006 (input_node, input_edge): Likewise.
8007 * lto-streamer-out.c (output_cfg): Update streaming.
8008 * lto-streamer-in.c (input_cfg): Likewise.
8009 * data-streamer.h (streamer_write_gcov_count,
8010 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8011 * gimple-streamer-in.c: Include value-prof.h
8012 (input_gimple_stmt): Input histograms.
8013 (input_bb): Update profile streaming.
8014
e594716a 80152013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 8016
33159866 8017 * genmodes.c (emit_max_int): New function.
8697be17 8018 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
8019 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8020 Added doc.
8697be17 8021 * machmode.def: Fixed comment.
89ab31c1 8022
e594716a 80232013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
8024
8025 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
8026 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8027
74946978
MP
80282013-03-28 Marek Polacek <polacek@redhat.com>
8029 Richard Biener <rguenther@suse.de>
8030
8031 PR tree-optimization/56695
8032 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8033 build signed result of a vector comparison.
8034 * tree-cfg.c (verify_gimple_comparison): Check that a result
8035 of a vector comparison has signed type.
8036
a64b9c26
RB
80372013-03-28 Richard Biener <rguenther@suse.de>
8038
8039 PR tree-optimization/37021
8040 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8041 do not restrict gaps between groups.
8042 * tree-vect-stmts.c (vectorizable_load): Properly account for
8043 a gap between groups.
8044
a9dc2a2f
EB
80452013-03-28 Eric Botcazou <ebotcazou@adacore.com>
8046
8047 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8048 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8049 is not enabled.
8050
53cb97f9
GP
80512013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8052
8053 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8054 * doc/extend.texi (Named Address Spaces): Ditto.
8055 (Variable Attributes): Ditto.
8056
b802ae5c
KT
80572013-03-27 Kai Tietz <ktietz@redhat.com>
8058
eddae10a
KT
8059 * config.build: Add support for cygwin x64 target.
8060 * config.gcc: Likewise.
8061 * config.host: Likewise.
8062 * configure.ac: Likewise
8063 * configure: Regenerated.
b802ae5c 8064
8269de54
KT
80652013-03-27 Kai Tietz <ktietz@redhat.com>
8066
8067 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8068 * config/i386/t-cygwin-w64: New file.
8069 * config/i386/cygwin-w64.h: New file.
8070 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8071 and add support for x64-cygwin target.
8072 (CPP_SPEC): Likewise.
8073 (CXX_WRAP_SPEC_LIST): Undefine before define.
8074 (LIBGCJ_SONAME): Use 15 as version.
8075
f49b33cb
RB
80762013-03-27 Richard Biener <rguenther@suse.de>
8077
8078 PR tree-optimization/56716
8079 * tree-ssa-structalias.c (perform_var_substitution): Adjust
8080 dumping for ref nodes.
8081
b37a6ce5
MJ
80822013-03-27 Martin Jambor <mjambor@suse.cz>
8083
8084 PR tree-optimization/55334
8085 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8086 restricted pointers to arrays.
8087
9469b9b2
GDR
80882013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8089
8090 * Makefile.in (.SUFFIXES): Add .cc.
8091 (.c.o): Apply same recipe for implicit rule .cc.o.
8092
7d24f650
RB
80932013-03-27 Richard Biener <rguenther@suse.de>
8094
8095 PR tree-optimization/37021
8096 * tree-vect-data-refs.c (vect_check_strided_load): Allow
8097 REALPART/IMAGPART_EXPRs around the supported refs.
8098 * tree-ssa-structalias.c (find_func_aliases): Assume that
8099 floating-point values are not used to transfer pointers.
8100
2f251a05
AI
81012013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8102
39385fa6
PC
8103 * target.def (TARGET_HAS_IFUNC_P): New target hook.
8104 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8105 * doc/tm.texi: Regenerate.
8106 * targhooks.h (default_has_ifunc_p): New.
8107 * targhooks.c (default_has_ifunc_p): Ditto.
8108 * config/linux-protos.h: New file.
8109 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
8110 this hook for linux which disables support of indirect functions in
8111 android.
39385fa6
PC
8112 * config/linux-android.c: New file.
8113 * config/t-linux-android.c: Ditto.
8114 * config.gcc: Added new object file linux-android.o.
8115 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 8116 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 8117 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
8118 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8119 doesn't support indirect functions.
8120 * configure: Regenerate.
8121
78b4e425
BC
81222013-03-27 Bin Cheng <bin.cheng@arm.com>
8123
8124 PR target/56102
8125 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8126 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8127 mult-word mode.
8128
a5ba7b92
AK
81292013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8130
8131 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8132
be624986
TG
81332013-03-27 Terry Guo <terry.guo@arm.com>
8134
8135 * config/arm/arm-cores.def: Added core cortex-r7.
8136 * config/arm/arm-tune.md: Regenerated.
8137 * config/arm/arm-tables.opt: Regenerated.
8138 * doc/invoke.texi: Added entry for core cortex-r7.
8139
0a514f47
WL
81402013-03-27 Walter Lee <walt@tilera.com>
8141
8142 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8143 double-decrement of next_scratch_regno.
8144
9332b0d2
WL
81452013-03-27 Walter Lee <walt@tilera.com>
8146
801d9b2a 8147 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
8148 input operands.
8149 (insn_v1mulus): Ditto.
8150 (insn_v2muls): Ditto.
8151
f54ea5dd
WL
81522013-03-27 Walter Lee <walt@tilera.com>
8153
e594716a 8154 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
8155 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8156
bf60f4ca
WL
81572013-03-27 Walter Lee <walt@tilera.com>
8158
e594716a 8159 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
8160 (*sibcall_value): Ditto.
8161
e3b51eeb
WL
81622013-03-27 Walter Lee <walt@tilera.com>
8163
8164 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8165 (insn_mnz_v8qi): ... this ...
8166 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
8167 vector equivalent.
8168 (insn_v<n>mnz): Replaced by ...
8169 (insn_v1mnz): ... this ...
8170 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
8171 equivalent.
8172 (insn_mz_<mode>): Replaced by ...
8173 (insn_mz_v8qi): ... this ...
8174 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
8175 vector equivalent.
8176 (insn_v<n>mz): Replaced by ...
8177 (insn_v1mz): ... this ...
8178 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
8179 equivalent.
8180
4fc7b145
EB
81812013-03-26 Eric Botcazou <ebotcazou@adacore.com>
8182
8183 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8184
6f33817e
RM
81852013-03-26 Roland McGrath <mcgrathr@google.com>
8186
8187 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8188 than fprintf with a non-constant, non-format string.
8189
93a4145b
UB
81902013-03-26 Uros Bizjak <ubizjak@gmail.com>
8191
8192 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8193 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
8194 operand 0 predicate.
8195 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8196 attribute. Use general_x64nomem_operand as operand 1 predicate.
8197 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8198 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8199 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8200 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8201 (mov<mode>_insv_1): Remove expander. Merge insn with
8202 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8203 Use general_x64nomem_operand as operand 1 predicate.
8204 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8205 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8206 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8207 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8208 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8209 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8210 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8211 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8212 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8213 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8214 (general_x64nomem_operand): Ditto.
8215
c6a9ed5a 82162013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
8217
8218 * config/rtems.opt: Add -pthread option.
8219
31b0a960
RB
82202013-03-26 Richard Biener <rguenther@suse.de>
8221
93a4145b
UB
8222 * alias.c (find_base_term): Avoid redundant and not used recursion.
8223 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
8224 (true_dependence_1): Compute and pass base terms to base_alias_check.
8225 (write_dependence_p): Likewise.
8226 (may_alias_p): Likewise.
8227
79517551
SN
82282013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8229
8230 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8231 PC-relative load in SI modes and above only.
8232
a76213b9
XQ
82332013-03-26 Xinyu Qi <xyqi@marvell.com>
8234
8235 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
8236 * config/arm/iwmmxt.md (WCGR0): Update.
8237 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 8238
37ff9355
UB
82392013-03-26 Uros Bizjak <ubizjak@gmail.com>
8240
8241 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8242 Use x64 and nox64 isa attributes.
8243
30b0317c
RB
82442013-03-26 Richard Biener <rguenther@suse.de>
8245
8246 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8247 alignment computations and rely on get_object_alignment_1
8248 for the !TYPE_P case.
8249 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8250
cbcdb140
WL
82512013-03-26 Walter Lee <walt@tilera.com>
8252
8253 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8254 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8255
dd884525 82562013-03-25 Jeff Law <law@redhat.com>
be672e08 8257
33159866
UB
8258 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8259 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
8260 wrong version of prior patch.
8261
0051d3ec
WL
82622013-03-25 Walter Lee <walt@tilera.com>
8263
8264 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8265 TILEGX_INSN_SHUFFLEBYTES1.
8266 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8267 shufflebytes1.
8268 (tilegx_builtins): Ditto.
8269 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8270
065a3605
WL
82712013-03-25 Walter Lee <walt@tilera.com>
8272
8273 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
8274 (floatunssisf2): New pattern.
8275 (floatsidf2): New pattern.
8276 (floatunssidf2): New pattern.
065a3605 8277
5b2a3c82
WL
82782013-03-25 Walter Lee <walt@tilera.com>
8279
8280 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8281 tests for constraint J, K, N, P.
8282
192ea533
WL
82832013-03-25 Walter Lee <walt@tilera.com>
8284
8285 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8286 Use indirect/pcrel encoding.
8287 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8288 Ditto.
8289
855e0d0b
SE
82902013-03-25 Steve Ellcey <sellcey@mips.com>
8291
8292 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8293 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8294 * config/mips/mips.c (mips_option_override): Set IMADD default.
8295 * config/mips/mips.h (PTF_AVOID_IMADD): New.
8296 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8297 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8298 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8299 * doc/invoke.texi (-mimadd/-mno-imadd): New.
8300
39e45653
JL
83012013-03-25 Jeff Law <law@redhat.com>
8302
8303 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8304 slightly to avoid creating and folding useless trees. Simplify
8305 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8306
7482c470
UB
83072013-03-25 Uros Bizjak <ubizjak@gmail.com>
8308
8309 * config/i386/i386.md (*zero_extendsidi2): Merge with
8310 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
8311 * config/i386/predicates.md (x86_64_zext_operand): Rename from
8312 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
8313 targets. Clarify comment.
8314
4a53743e
MJ
83152013-03-25 Martin Jambor <mjambor@suse.cz>
8316
8317 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8318 pass-through jump functions differently.
8319 (ipa_read_jump_function): Likewise. Also use setter functions to set
8320 up jump functions.
8321
162712de
MJ
83222013-03-25 Martin Jambor <mjambor@suse.cz>
8323
8324 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8325 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8326 process it.
8327 (ipa_get_indirect_edge_target): New function.
8328 (devirtualization_time_bonus): New parameter known_aggs, pass it to
8329 ipa_get_indirect_edge_target. Update all callers.
8330 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
8331 ipa_get_indirect_edge_target_1 instead of calling
8332 ipa_get_indirect_edge_target.
8333 (create_specialized_node): Pass aggvlas to
8334 ipcp_discover_new_direct_edges.
8335
a5a4c20a
KT
83362013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8337
8338 * config/arm/arm.md (f_sels, f_seld): New types.
8339 (*cmov<mode>): New pattern.
8340 * config/arm/predicates.md (arm_vsel_comparison_operator): New
8341 predicate.
8342
f992b9fc
KT
83432013-03-25 Kai Tietz <ktietz@redhat.com>
8344
8345 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8346 POSIX-printf for mingw-hosted builds.
8347
c16fd676
RB
83482013-03-25 Richard Biener <rguenther@suse.de>
8349
8350 PR middle-end/56694
8351 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8352 must-not-throw stmt location.
8353
5ad29f12
KT
83542013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8355
8356 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8357 Emit load-acquire versions when acq is true.
8358 (arm_emit_store_exclusive): Add rel parameter.
8359 Emit store-release versions when rel is true.
8360 (arm_split_compare_and_swap): Use acquire-release instructions
8361 instead.
8362 of barriers when appropriate.
8363 (arm_split_atomic_op): Likewise.
8364 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8365 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8366 (VUNSPEC_SLX): Likewise.
8367 (VUNSPEC_LDA): Likewise.
8368 (VUNSPEC_STL): Likewise.
8369 * config/arm/sync.md (atomic_load<mode>): New pattern.
8370 (atomic_store<mode>): Likewise.
8371 (arm_load_acquire_exclusive<mode>): Likewise.
8372 (arm_load_acquire_exclusivesi): Likewise.
8373 (arm_load_acquire_exclusivedi): Likewise.
8374 (arm_store_release_exclusive<mode>): Likewise.
8375
03a7dddb
CM
83762013-03-25 Catherine Moore <clm@codesourcery.com>
8377
8378 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8379 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8380 * config/mip/predicates.md (lwsp_swsp_operand,
8381 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8382 sb16_operand, db4_operand, db7_operand, ib3_operand,
8383 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8384 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8385 andi16_operand): New predicates.
8386 * config/mips/mips.md (compression): New attribute.
8387 (enabled): New attribute.
8388 (length): Consider compression in computing length.
8389 (shift_compression): New code attribute.
8390 (*add<mode>3): New operands. Record compression.
8391 (sub<mode>3): Likewise.
8392 (one_cmpl<mode>2): Likewise.
8393 (*and<mode>3): Likewise.
8394 (*ior<mode>3): Likewise.
8395 (unnamed pattern for xor): Likewise.
8396 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8397 (*<optab><mode>3): Likewise.
8398 (*mov<mode>_internal: Likewise.
8399 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8400 (mips_unsigned_immediate_p): New.
8401 (umips_lwsp_swsp_address_p): New.
8402 (m16_based_address_p): New.
8403 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8404 (mips_unsigned_immediate_p): New prototype.
8405 (lwsp_swsp_address_p): New prototype.
8406 (m16_based_address_p): New prototype.
8407 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8408 (mips_signed_immediate_p): New function.
8409 (m16_based_address_p): New function.
8410 (lwsp_swsp_address_p): New function.
8411 (mips_print_operand_punctuation): Recognize short delay slot insns
8412 for microMIPS.add<mode>3"
8413
f35c297f 84142013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 8415
f35c297f
KT
8416 PR target/56720
8417 * config/arm/iterators.md (v_cmp_result): New mode attribute.
8418 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8419
051b9446
RB
84202013-03-25 Richard Biener <rguenther@suse.de>
8421
8422 PR tree-optimization/56689
8423 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8424 any edge.
8425
374001cb
RB
84262013-03-25 Richard Biener <rguenther@suse.de>
8427
8428 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8429 of bitmap.
8430 (memory_references): Likewise.
8431 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8432 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8433 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8434 (gather_mem_refs_in_loops): Fold into ...
8435 (analyze_memory_references): ... this. Move initialization
8436 to tree_ssa_lim_initialize.
8437 (fill_always_executed_in): Rename to ...
8438 (fill_always_executed_in_1): ... this.
8439 (fill_always_executed_in): Move contains_call computation to
8440 this new function from ...
8441 (tree_ssa_lim_initialize): ... here.
8442 (tree_ssa_lim): Call fill_always_executed_in.
8443
57895947
EB
84442013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8445
8446 * postreload.c (reload_combine): Fix code detecting returns.
8447
1e1b18c1
EB
84482013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8449
8450 * function.c (emit_use_return_register_into_block): On cc0 targets,
8451 do not emit the sequence between cc0 setter and user.
8452
9216baf1
KT
84532013-03-25 Kai Tietz <ktietz@redhat.com>
8454
1e1b18c1
EB
8455 * config/i386/predicates.md (local_symbolic_operand): Interpret
8456 dll-imported symbols as none-local.
9216baf1 8457
76421b44
RB
84582013-03-25 Richard Biener <rguenther@suse.de>
8459
8460 * tree-ssa-loop-im.c (struct depend): Remove.
8461 (struct lim_aux_data): Make depends a vec of gimples.
8462 (free_lim_aux_data): Adjust.
8463 (add_dependency): Likewise.
8464 (set_level): Likewise.
8465
d154bfa2
RB
84662013-03-25 Richard Biener <rguenther@suse.de>
8467
8468 PR middle-end/56434
8469 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8470 the pointer returned by calls with ECF_MALLOC set.
8471
2cd9804e
UB
84722013-03-24 Uros Bizjak <ubizjak@gmail.com>
8473
acef5fe0
UB
8474 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8475
84762013-03-24 Uros Bizjak <ubizjak@gmail.com>
8477
8478 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
8479 using MMXMODE mode iterator.
8480 (*move<mode>_internal): Merge with *movv2sf_internal and
8481 *movv2sf_internal_rex64 using MMXMODE mode iterator.
8482
225ccc68
SB
84832013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8484
85c0f02d
SB
8485 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8486 (record_last_mem_set_info): Likewise.
8487
225ccc68
SB
8488 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8489 of XNEWVEC followed by memset.
8490 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8491
b64925dc
SB
84922013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8493
8494 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8495 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8496 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8497 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8498 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8499 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8500 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8501 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8502 BARRIER_P instead of GET_CODE.
8503
b9aaf52e
EB
85042013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8505
8506 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8507 inaccuracy in the probing code.
8508
8509 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8510 (ctrapdi4): Likewise.
8511
66de4d7c
EB
85122013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8513
8514 * calls.c (expand_call): Add missing guard to code handling return
8515 of non-BLKmode structures in MSB.
8516 * function.c (expand_function_end): Likewise.
8517
4f25c8fb
EB
85182013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8519
8520 * combine.c (try_combine): Adjust comment. Do not add the set of
8521 insn #0 if the destination indirectly is set or dies in insn #2.
8522 Tidy up code to distribute a new note.
8523
23b7850d
UB
85242013-03-22 Uros Bizjak <ubizjak@gmail.com>
8525
8526 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8527 also for alternatives 16 and 17.
8528
bed852cf
UB
85292013-03-22 Uros Bizjak <ubizjak@gmail.com>
8530
8531 * config/i386/sse.md (*mov<mode>_internal): Merge with
8532 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
8533 Emit insn template depending on type attribute. Use
8534 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8535 movd instead of movq mnemonic for interunit moves. Rewrite mode
8536 attribute calculation. Remove unit attribute calculation.
8537 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8538 Set prefix_data16 attribute for DImode ssemov types.
8539 Use Ym instead of y for SSE-MMX conversion alternatives.
8540 Reorder operand constraints.
8541
1e8a7937
SB
85422013-03-22 Steven Bosscher <steven@gcc.gnu.org>
8543
8544 * df.h (df_insn_delete): Adjust prototype.
8545 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8546 and let it decide whether mark the basic block dirty.
8547 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8548 * df-scan.c (df_insn_info_delete): New helper function, split
8549 off from df_insn_delete.
8550 (df_scan_free_bb_info): Use it.
8551 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8552 Likewise.
8553 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
8554 that the insn is actually an insn and it has a non-NULL basic block.
8555 Do not mark basic block dirty if only deleting a DEBUG_INSN.
8556
e14d094c
RB
85572013-03-22 Richard Biener <rguenther@suse.de>
8558
8559 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8560 dep_ref members.
8561 (mem_ref_alloc): Do not allocate them.
8562 (refs_independent_p): Do not query or maintain a cache.
8563
e9cf7316
RB
85642013-03-22 Richard Biener <rguenther@suse.de>
8565
8566 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8567 (gather_mem_refs_in_loops): Do not compute it.
8568 (analyze_memory_references): Do not allocate it.
8569 (tree_ssa_lim_finalize): Do not free it.
8570 (for_all_locs_in_loop): Do not query all_refs_in_loop.
8571
f046e81b
RB
85722013-03-22 Richard Biener <rguenther@suse.de>
8573
8574 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 8575
a05c0ddf
IB
85762013-03-22 Ian Bolton <ian.bolton@arm.com>
8577
8578 * config/aarch64/aarch64.c (aarch64_print_operand): New
8579 format specifier for printing a constant in hex.
8580 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8581 format specifier for printing second operand.
8582
c00217fc
RB
85832013-03-22 Richard Biener <rguenther@suse.de>
8584
8585 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8586 bitmaps.
8587 (gather_mem_refs_in_loops): Perform store accumulation here.
8588 (create_vop_ref_mapping_loop): Remove.
8589 (create_vop_ref_mapping): Likewise.
8590 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 8591 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
8592 (record_indep_loop): Remove.
8593 (record_dep_loop): New function.
8594 (ref_indep_loop_p_1): Adjust to only walk over references
8595 in the loop, not its subloops.
8596 (ref_indep_loop_p): Rename to ...
8597 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8598 maintaining a more fine-grained cache.
8599 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8600 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8601
15d19bf8
RB
86022013-03-22 Richard Biener <rguenther@suse.de>
8603
8604 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8605 (struct mem_ref): Make accesses_in_loop a vec of a vec of
8606 aggregate mem_ref_loc.
8607 (free_mem_ref_locs): Inline into ...
8608 (memref_free): ... this and adjust.
8609 (mem_ref_alloc): Adjust.
8610 (mem_ref_locs_alloc): Remove.
8611 (record_mem_ref_loc): Adjust.
8612 (get_all_locs_in_loop): Rewrite into ...
8613 (for_all_locs_in_loop): ... this iterator.
8614 (rewrite_mem_ref_loc): New functor.
8615 (rewrite_mem_refs): Use for_all_locs_in_loop.
8616 (sm_set_flag_if_changed): New functor.
8617 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8618 (ref_always_accessed): New functor.
8619 (ref_always_accessed_p): Use for_all_locs_in_loop.
8620
6f37411d
MG
86212013-03-21 Marc Glisse <marc.glisse@inria.fr>
8622
8623 * tree-pass.h (PROP_gimple_lvec): New.
8624 * passes.c (dump_properties): Handle PROP_gimple_lvec.
8625 (init_optimization_passes): Move pass_lower_vector.
8626 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8627 PROP_gimple_lvec.
8628 (pass_lower_vector): Provide PROP_gimple_lvec.
8629 (pass_lower_vector_ssa): Likewise.
8630 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8631
511ef689
MW
86322013-03-21 Mark Wielaard <mjw@redhat.com>
8633
8634 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8635
cc1df30b
UB
86362013-03-21 Uros Bizjak <ubizjak@gmail.com>
8637
8638 * config/i386/i386.md (*movdi_internal): Disparage slightly
8639 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
8640 conversion alternatives.
8641
c845cfe1
JJ
86422013-03-21 Jakub Jelinek <jakub@redhat.com>
8643
37e99116
JJ
8644 PR middle-end/48087
8645 * diagnostic.def (DK_WERROR): New kind.
8646 * diagnostic.h (werrorcount): Define.
8647 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8648 promoted to DK_ERROR, increment DK_WERROR counter instead of
8649 DK_ERROR counter.
8650 * toplev.c (toplev_main): Call print_ignored_options even if
8651 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
8652 even if just werrorcount is non-zero.
8653
c845cfe1
JJ
8654 PR debug/55608
8655 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8656 on failure.
8657 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8658 (string_cst_pool_decl): New function.
8659 (optimize_one_addr_into_implicit_ptr): New function.
8660 (resolve_addr_in_expr): Optimize DWARF location expression
8661 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8662 which doesn't live in memory, but has DW_AT_location or
8663 DW_AT_const_value, or refers to a string literal, into
8664 DW_OP_GNU_implicit_pointer.
8665 (optimize_location_into_implicit_ptr): New function.
8666 (resolve_addr): If removing DW_AT_location of a variable because
8667 it was DW_OP_addr of address of the variable, but the variable doesn't
8668 live in memory, try to emit const value attribute for the initializer.
8669
08e0cda6
MG
86702013-03-21 Marc Glisse <marc.glisse@inria.fr>
8671
8672 * tree.h (VECTOR_TYPE_P): New macro.
8673 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8674 TYPE_MODE): Use it.
8675 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8676 VEC_COND_EXPR cannot be lvalues.
8677 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8678
d08633b4
MG
86792013-03-21 Marc Glisse <marc.glisse@inria.fr>
8680
8681 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8682 Restrict the transformation to equal modes.
8683
e6647190
RB
86842013-03-21 Richard Biener <rguenther@suse.de>
8685
8686 PR tree-optimization/39326
8687 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8688 (MEM_ANALYZABLE): Adjust.
8689 (record_mem_ref_loc): Move bitmap ops ...
8690 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
8691 unanalyzable refs, do not record locations for it.
8692 (analyze_memory_references): Allocate ref zero as shared
8693 unanalyzable ref.
8694 (refs_independent_p): Do not test for unanalyzed mems here.
8695 (ref_indep_loop_p_1): Special-case disambiguation against
8696 the unanalyzed ref.
cc1df30b 8697 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 8698
65074f54
CL
86992013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
8700
8701 * config/arm/arm-protos.h (tune_params): Add
8702 prefer_neon_for_64bits field.
8703 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8704 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8705 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8706 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8707 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8708 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8709 (arm_option_override): Handle -mneon-for-64bits new option.
8710 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8711 (prefer_neon_for_64bits): Declare new variable.
8712 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 8713 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
8714 (arch_enabled): Handle new arch types. Remove support for onlya8
8715 and nota8.
8716 (one_cmpldi2): Use new arch names.
bc5faa5b 8717 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
8718 * config/arm/arm.opt (mneon-for-64bits): Add option.
8719 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8720 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8721 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8722 of onlya8.
8723 * doc/invoke.texi (-mneon-for-64bits): Document.
8724
5a2d2a79
RB
87252013-03-21 Richard Biener <rguenther@suse.de>
8726
8727 PR tree-optimization/39326
8728 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8729 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 8730 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 8731
5abe1e05
RB
87322013-03-21 Richard Biener <rguenther@suse.de>
8733
8734 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8735 (vect_insert_into_interleaving_chain): Likewise.
8736 (vect_drs_dependent_in_basic_block): Inline ...
8737 (vect_slp_analyze_data_ref_dependence): ... here. New function,
8738 split out from ...
8739 (vect_analyze_data_ref_dependence): ... here. Simplify.
8740 (vect_check_interleaving): Simplify.
8741 (vect_analyze_data_ref_dependences): Likewise. Split out ...
8742 (vect_slp_analyze_data_ref_dependences): ... this new function.
8743 (dr_group_sort_cmp): New function.
8744 (vect_analyze_data_ref_accesses): Compute data-reference groups
8745 here instead of in vect_analyze_data_ref_dependence. Use
8746 a more efficient algorithm.
8747 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8748 vect_slp_analyze_data_ref_dependences. Call
8749 vect_analyze_data_ref_accesses earlier.
8750 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8751 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8752 (vect_slp_analyze_data_ref_dependences): New prototype.
8753
cad1735b
RB
87542013-03-21 Richard Biener <rguenther@suse.de>
8755
8756 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8757 ref is stored in the loop.
8758 (find_refs_for_sm): Walk only over all stores.
8759 (store_motion_loop): Allocate from lim_bitmap_obstack.
8760 (store_motion): Likewise.
8761
141310ef
RB
87622013-03-21 Richard Biener <rguenther@suse.de>
8763
8764 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8765 Update virtual SSA form.
8766
5022315a
RO
87672013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8768
8769 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8770 * configure: Regenerate.
8771 * config.in: Regenerate.
8772 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8773 if !HAVE_LD_EH_FRAME_CIEV3.
8774
50d4421c
RB
87752013-03-21 Richard Biener <rguenther@suse.de>
8776
8777 * tree-cfg.c (verify_expr_no_block): New function.
8778 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8779 nor DECL_VALUE_EXPR have locations with associated blocks.
8780 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8781 (clear_unused_block_pointer): Remove code dealing with
8782 blocks in DECL_DEBUG_EXPR locations.
8783
839b422f
RB
87842013-03-21 Richard Biener <rguenther@suse.de>
8785
8786 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8787 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
8788 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8789 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8790 instead of DECL_DEBUG_EXPR_IS_FROM.
8791 * gimplify.c (gimplify_modify_expr): Likewise.
8792 * tree-cfg.c (verify_expr_location_1): Likewise.
8793 * tree-complex.c (create_one_component_var): Likewise.
8794 * tree-sra.c (create_access_replacement): Likewise.
8795 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8796 (clear_unused_block_pointer): Likewise.
8797 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8798 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8799 * var-tracking.c (var_debug_decl): Likewise.
8800 (track_expr_p): Likewise.
8801 * tree-inline.c (add_local_variables): Likewise. Set
8802 DECL_HAS_DEBUG_EXPR_P after copying it.
8803 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8804 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
8805
fe04878d
UB
88062013-03-21 Uros Bizjak <ubizjak@gmail.com>
8807
8808 PR bootstrap/56656
8809 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8810 * configure: Regenerate.
8811 * config.in: Regenerate.
8812 * config/i386/i386.md (*movdf_internal): Use
8813 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8814 movd instead of movq mnemonic for interunit moves.
8815 (*movdi_internal): Ditto.
8816
bd059b26 88172013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
8818
8819 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8820 (abd<mode>_3): New pattern.
8821 (aba<mode>_3): New pattern.
8822 (fabd<mode>_3): New pattern.
8823
bd059b26 88242013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
8825
8826 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8827 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8828 occurrence of REGISTER_PREFIX as its empty string.
8829
4f1f78b9
JL
88302013-03-20 Jeff Law <law@redhat.com>
8831
8832 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8833 addititional equivalences for equality comparisons between an SSA_NAME
8834 and a constant where the SSA_NAME was set from a widening conversion.
8835
327a1118
WL
88362013-03-20 Walter Lee <walt@tilera.com>
8837
8838 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8839
813e0036
UB
88402013-03-20 Uros Bizjak <ubizjak@gmail.com>
8841
8842 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8843 depending on type attribute.
8844 (*movti_internal): Ditto.
8845 (*movtf_internal): Ditto.
8846 (*movxf_internal): Ditto.
8847 (*movdf_internal): Ditto.
8848 (*movsf_internal): Ditto.
8849
7cf34aae
UB
88502013-03-20 Uros Bizjak <ubizjak@gmail.com>
8851
8852 * config/i386/i386.md (*movti_internal): Set prefix attribute to
8853 maybe_vex for sselog1 and ssemov types.
8854 (*movdi_internal): Reorder operand constraints.
8855 (*movsi_internal): Ditto. Set prefix attribute to
8856 maybe_vex for sselog1 and ssemov types.
8857 (*movtf_internal): Set prefix attribute to maybe_vex
8858 for sselog1 and ssemov types.
8859 (*movdf_internal): Ditto. Set prefix_data16 attribute for
8860 DImode ssemov types. Reorder operand constraints.
8861 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
8862 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
8863 attribute for SImode ssemov types. Reorder operand constraints.
8864
19321415
MJ
88652013-03-20 Martin Jambor <mjambor@suse.cz>
8866
8867 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8868 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8869
c6d5ff83
MM
88702013-03-20 Pat Haugen <pthaugen@us.ibm.com>
8871
8872 * config/rs6000/predicates.md (indexed_address, update_address_mem
8873 update_indexed_address_mem): New predicates.
8874 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8875 attribute for load/store instructions.
8876 * config/rs6000/dfp.md (movsd_store): Likewise.
8877 (movsd_load): Likewise.
8878 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8879 (unnamed HI->DI extend define_insn): Likewise.
8880 (unnamed SI->DI extend define_insn): Likewise.
8881 (unnamed QI->SI extend define_insn): Likewise.
8882 (unnamed QI->HI extend define_insn): Likewise.
8883 (unnamed HI->SI extend define_insn): Likewise.
8884 (unnamed HI->SI extend define_insn): Likewise.
8885 (extendsfdf2_fpr): Likewise.
8886 (movsi_internal1): Likewise.
8887 (movsi_internal1_single): Likewise.
8888 (movhi_internal): Likewise.
8889 (movqi_internal): Likewise.
8890 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8891 attribute for load/store instructions.
8892 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8893 instructions.
8894 (mov<mode>_softfloat): Likewise.
8895 (mov<mode>_hardfloat32): Likewise.
8896 (mov<mode>_hardfloat64): Likewise.
8897 (mov<mode>_softfloat64): Likewise.
8898 (movdi_internal32): Likewise.
8899 (movdi_internal64): Likewise.
8900 (probe_stack_<mode>): Likewise.
8901
89022013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
8903
8904 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8905 floating point, and decimal floating point to reload iterator.
8906
8907 * config/rs6000/constraints.md (wl constraint): New constraints to
8908 return FLOAT_REGS if certain options are used to reduce the number
8909 of separate patterns that exist in the file.
8910 (wx constraint): Likewise.
8911 (wz constraint): Likewise.
8912
8913 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8914 -mdebug=reg, print wg, wl, wx, and wz constraints.
8915 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8916 Initialize the reload functions for 64-bit binary/decimal floating
8917 point types.
8918 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8919 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8920 create the buffer on the stack to overcome not having a 32-bit
8921 load and store.
8922 (rs6000_emit_move): Likewise.
8923 (rs6000_secondary_memory_needed_rtx): Likewise.
8924 (rs6000_alloc_sdmode_stack_slot): Likewise.
8925 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8926 via xxlxor, just like DFmode 0.0.
8927
8928 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8929 define as 1 if we are running on a power7 or newer.
8930 (enum r6000_reg_class_enum): Add new constraints.
8931
8932 * config/rs6000/dfp.md (movsd): Delete, combine with binary
8933 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
8934 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 8935 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
8936 (movsd splitter): Likewise.
8937 (movsd_hardfloat): Likewise.
8938 (movsd_softfloat): Likewise.
8939
8940 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8941 binary and decimal floating point moves.
8942 (fmove_ok): New attributes to combine binary and decimal floating
8943 point moves, and to combine power6x (mfpgpr) moves along normal
8944 floating moves.
8945 (real_value_to_target): Likewise.
8946 (f32_lr): Likewise.
8947 (f32_lm): Likewise.
8948 (f32_li): Likewise.
8949 (f32_sr): Likewise.
8950 (f32_sm): Likewise.
8951 (f32_si): Likewise.
8952 (movsf): Combine binary and decimal floating point moves. Combine
8953 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 8954 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
8955 (mov<mode> for SFmode/SDmode); Likewise.
8956 (SFmode/SDmode splitters): Likewise.
8957 (movsf_hardfloat): Likewise.
8958 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8959 (movsf_softfloat): Likewise.
8960 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8961
8962 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8963 wx and wz constraints.
8964
8965 * config/rs6000/constraints.md (wg constraint): New constraint to
8966 return FLOAT_REGS if -mmfpgpr (power6x) was used.
8967
8968 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8969 constraint.
8970
8971 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8972 -mdebug=reg, print wg, wl, wx, and wz constraints.
8973 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8974 Initialize the reload functions for 64-bit binary/decimal floating
8975 point types.
8976 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8977 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8978 create the buffer on the stack to overcome not having a 32-bit
8979 load and store.
8980 (rs6000_emit_move): Likewise.
8981 (rs6000_secondary_memory_needed_rtx): Likewise.
8982 (rs6000_alloc_sdmode_stack_slot): Likewise.
8983 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8984 via xxlxor, just like DFmode 0.0.
8985
c6d5ff83
MM
8986 * config/rs6000/dfp.md (movdd): Delete, combine with binary
8987 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
8988 with other moves by using conditional constraits (wg). Use LFIWZX
8989 and STFIWX for loading SDmode on power7.
8990 (movdd splitters): Likewise.
8991 (movdd_hardfloat32): Likewise.
8992 (movdd_softfloat32): Likewise.
8993 (movdd_hardfloat64_mfpgpr): Likewise.
8994 (movdd_hardfloat64): Likewise.
8995 (movdd_softfloat64): Likewise.
8996
8997 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
8998 64-bit binary and decimal floating point moves.
8999 (FMOVE64X): Likewise.
9000 (movdf): Combine 64-bit binary and decimal floating point moves.
9001 Combine power6x (mfpgpr) moves with other moves by using
9002 conditional constraits (wg).
9003 (mov<mode> for DFmode/DDmode): Likewise.
9004 (DFmode/DDmode splitters): Likewise.
9005 (movdf_hardfloat32): Likewise.
9006 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9007 (movdf_softfloat32): Likewise.
9008 (movdf_hardfloat64_mfpgpr): Likewise.
9009 (movdf_hardfloat64): Likewise.
9010 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9011 (movdf_softfloat64): Likewise.
9012 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9013 (reload_<mode>_load): Move to later in the file so they aren't in
9014 the middle of the floating point move insns.
9015 (reload_<mode>_store): Likewise.
9016
9017 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9018 constraint.
9019
9020 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9021 constraint if -mdebug=reg.
bd059b26
UB
9022 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9023 Enable using dd reload support if needed.
c6d5ff83
MM
9024
9025 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9026 binary and decimal floating point moves in rs6000.md.
9027 (movtd_internal): Likewise.
9028
9029 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9030 decimal floating point moves.
9031 (movtf): Likewise.
9032 (movtf_internal): Likewise.
9033 (mov<mode>_internal, TDmode/TFmode): Likewise.
9034 (movtf_softfloat): Likewise.
9035 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9036
9037 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9038 movdi_internal64, using wg constraint for move direct operations.
9039 (movdi_internal64): Likewise.
9040
9041 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9042 MODES_TIEABLE_P for selected modes. Print the numerical value of
9043 the various virtual registers. Use GPR/FPR first/last values,
9044 instead of hard coding the register numbers. Print which modes
9045 have reload functions registered.
bd059b26
UB
9046 (rs6000_option_override_internal): If -mdebug=reg, trace the options
9047 settings before/after setting cpu, target and subtarget settings.
9048 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9049 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
9050 (rs6000_secondary_reload_fail): Likewise.
9051 (rs6000_secondary_reload_inner): Likewise.
9052
9053 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9054 macros for first/last GPR and FPR registers.
9055 (LAST_GPR_REGNO): Likewise.
9056 (FIRST_FPR_REGNO): Likewise.
9057 (LAST_FPR_REGNO): Likewise.
9058
9059 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9060 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9061 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9062 (vcond<mode><mode>): Likewise.
9063 (vcondu<mode><mode>): Likewise.
9064 (vector_gtu<mode>): Likewise.
9065 (vector_gte<mode>): Likewise.
9066 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 9067 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
9068 (ior<mode>3): Likewise.
9069 (and<mode>3): Likewise.
9070 (one_cmpl<mode>2): Likewise.
9071 (nor<mode>3): Likewise.
9072 (andc<mode>3): Likewise.
9073
9074 * config/rs6000/constraints.md (wt constraint): New constraint
9075 that returns VSX_REGS if TImode is allowed in VSX registers.
9076
9077 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9078 constant under VSX.
9079
9080 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9081 similar to TImode, but it is restricted to being in the GPRs.
9082
9083 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9084 TImode to occupy a single VSX register.
9085
9086 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9087 -mvsx-timode for power7/power8.
9088 (power7 cpu): Likewise.
9089 (power8 cpu): Likewise.
9090
9091 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9092 sure that TFmode/TDmode take up two registers if they are ever
9093 allowed in the upper VSX registers.
9094 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9095 registers.
9096 (rs6000_init_hard_regno_mode_ok): Likewise.
9097 (rs6000_debug_reg_global): Add debugging for PTImode and wt
9098 constraint. Print if LRA is turned on.
9099 (rs6000_option_override_internal): Give an error if -mvsx-timode
9100 and VSX is not enabled.
9101 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
9102 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9103 to reg+offset addressing. Use PTImode when checking offset
9104 addresses for validity.
9105 (reg_offset_addressing_ok_p): Likewise.
9106 (rs6000_legitimate_offset_address_p): Likewise.
9107 (rs6000_legitimize_address): Likewise.
9108 (rs6000_legitimize_reload_address): Likewise.
9109 (rs6000_legitimate_address_p): Likewise.
9110 (rs6000_eliminate_indexed_memrefs): Likewise.
9111 (rs6000_emit_move): Likewise.
9112 (rs6000_secondary_reload): Likewise.
9113 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
9114 reloads to fpr registers to continue to use reg+offset addressing,
9115 but 64-bit reloads to altivec registers need reg+reg addressing.
9116 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9117 it. Treat LO_SUM like a PLUS operation.
9118 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 9119 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
9120 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9121 registers to share a register with a smaller sized type, since VSX
9122 puts scalars in the upper 64-bits.
9123 (print_operand): Add support for PTImode.
9124 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9125 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9126 registers, but don't have arithmetic support.
9127 (rs6000_memory_move_cost): Add test for VSX.
9128 (rs6000_opt_masks): Add -mvsx-timode.
9129
9130 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9131 for TImode.
9132 (VSs): Likewise.
9133 (VSr): Use wt constraint for TImode.
9134 (VSv): Drop TImode support.
9135 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9136 (vsx_movti_64bit): Likewise.
9137 (vsx_movti_32bit): Likewise.
9138 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9139 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9140 one '?' on the appropriate output constraint. Do not allow TImode
9141 logical operations on 32-bit systems.
9142 (vsx_ior<mode>3): Likewise.
9143 (vsx_xor<mode>3): Likewise.
9144 (vsx_one_cmpl<mode>2): Likewise.
9145 (vsx_nor<mode>3): Likewise.
9146 (vsx_andc<mode>3): Likewise.
9147 (vsx_concat_<mode>): Likewise.
9148 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9149
9150 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9151 OPTION_MASK_VSX_TIMODE.
9152 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9153 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9154
9155 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9156 (TI2 iterator): New iterator for TImode, PTImode.
9157 (wd mode attribute): Add values for vector types.
bd059b26
UB
9158 (movti_string): Replace TI move operations with operations for TImode
9159 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
9160 (mov<mode>_string, TImode/PTImode): Likewise.
9161 (movti_ppc64): Likewise.
9162 (mov<mode>_ppc64, TImode/PTImode): Likewise.
9163 (TI mode splitters): Likewise.
9164
9165 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9166 constraint.
9167
1fc5eced
MG
91682013-03-20 Marc Glisse <marc.glisse@inria.fr>
9169
9170 PR tree-optimization/56355
9171 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9172 Also handle integers with undefined overflow.
9173
22c4c869
CM
91742013-03-20 Catherine Moore <clm@codesourcery.com>
9175 Maciej W. Rozycki <macro@codesourcery.com>
9176 Tom de Vries <tom@codesourcery.com>
9177 Nathan Sidwell <nathan@codesourcery.com>
9178 Iain Sandoe <iain@codesourcery.com>
9179 Nathan Froyd <froydnj@codesourcery.com>
9180 Chao-ying Fu <fu@mips.com>
9181
9182 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 9183 Document new function attributes.
22c4c869
CM
9184 * doc/invoke.texi (minterlink-compressed, mmicromips,
9185 m14k, m14ke, m14kec): Document new options.
9186 (minterlink-mips16): Update documentation.
9187 * doc/md.texi (ZC, ZD): Document new constraints.
9188 * configure.ac (gcc_cv_as_micromips): Check if linker
9189 supports the .set micromips directive.
9190 * configure: Regenerate.
9191 * config.in: Regenerate.
9192 * config/mips/mips-tables.opt: Regenerate.
9193 * config/mips/micromips.md: New file.
9194 * constraints.md (ZC, ZD): New constraints.
9195 * config/mips/predicates.md (movep_src_register): New predicate.
9196 (movep_src_operand): New predicate.
9197 (non_volatile_mem_operand): New predicate.
9198 * config/mips/mips.md (multimem): New type.
9199 (length): Differentiate between 17-bit and 18-bit branch offsets.
9200 (MOVEP1, MOVEP2): New mode iterator.
33159866 9201 (mov_<load>l): Use ZC constraint.
22c4c869
CM
9202 (mov_<load>r): Likewise.
9203 (mov_<store>l): Likewise.
9204 (mov_<store>r): Likewise.
9205 (*branch_equality<mode>_inverted): Add microMIPS support.
9206 (*branch_equality<mode>): Likewise.
9207 (*jump_absolute): Likewise.
9208 (indirect_jump_<mode>): Likewise.
9209 (tablejump_<mode>): Likewise.
9210 (<optab>_internal): Likewise.
9211 (sibcall_internal): Likewise.
9212 (sibcall_value_internal): Likewise.
9213 (prefetch): Use constraint ZD.
9214 * config/mips/mips.opt (minterlink-compressed): New option.
9215 (minterlink-mips16): Now an alias for minterlink-compressed.
9216 (mmicromips): New option.
9217 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9218 (compare_and_swap_12): Likewise.
9219 (sync_add<mode>): Likewise.
9220 (sync_<optab>_12): Likewise.
9221 (sync_old_<optab>_12): Likewise.
9222 (sync_new_<optab>_12): Likewise.
9223 (sync_nand_12): Likewise.
9224 (sync_old_nand_12): Likewise.
9225 (sync_new_nand_12): Likewise.
9226 (sync_sub<mode>): Likewise.
9227 (sync_old_add<mode>): Likewise.
9228 (sync_old_sub<mode>): Likewise.
9229 (sync_new_add<mode>): Likewise.
9230 (sync_new_sub<mode>): Likewise.
9231 (sync_<optab><mode>): Likewise.
9232 (sync_old_<optab><mode>): Likewise.
9233 (sync_new_<optab><mode>): Likewise.
9234 (sync_nand<mode>): Likewise.
9235 (sync_old_nand<mode>): Likewise.
9236 (sync_new_nand<mode>): Likewise.
9237 (sync_lock_test_and_set<mode>): Likewise.
9238 (test_and_set_12): Likewise.
9239 (atomic_compare_and_swap<mode>): Likewise.
9240 (atomic_exchange<mode>_llsc): Likewise.
9241 (atomic_fetch_add<mode>_llsc): Likewise.
9242 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9243 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9244 (umips_save_restore_pattern_p): Likewise.
9245 (umips_load_store_pair_p): Likewise.
9246 (umips_output_load_store_pair): Likewise.
9247 (umips_movep_target_p): Likewise.
9248 (umips_12bit_offset_address_p): Likewise.
9249 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9250 (mips_base_mips16): Rename this...
9251 (mips_base_compression_flags): ...to this. Update all uses.
9252 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9253 (mips_mips16_decl_p): Delete.
9254 (mips_nomips16_decl_p): Delete.
33159866 9255 (mips_get_compress_on_flags): New function.
22c4c869
CM
9256 (mips_get_compress_off_flags): New function.
9257 (mips_get_compress_mode): New function.
9258 (mips_get_compress_on_name): New function.
9259 (mips_get_compress_off_name): New function.
9260 (mips_insert_attributes): Support multiple compression types.
9261 (mips_merge_decl_attributes): Likewise.
9262 (umips_12bit_offset_address_p): New function.
9263 (mips_start_function_definition): Emit .set micromips directive.
9264 (mips_call_may_need_jalx_p): New function.
9265 (mips_function_ok_for_sibcall): Add microMIPS support.
9266 (mips_print_operand_punctuation): Support short delay slots and
9267 compact jumps.
9268 (umips_swm_mask, umips_swm_encoding): New.
9269 (umips_build_save_restore): New function.
9270 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9271 (was_mips16_p): Remove.
9272 (old_compression_mode): New.
9273 (mips_set_compression_mode): New function.
9274 (mips_set_current_function): Add microMIPS support.
9275 (mips_option_override): Likewise.
9276 (umips_save_restore_pattern_p): New function.
9277 (umips_output_save_restore): New function.
9278 (umips_load_store_pair_p_1): New function.
9279 (umips_load_store_pair_p): New function.
9280 (umips_output_load_store_pair_1): New function.
9281 (umips_output_load_store_pair): New function.
9282 (umips_movep_target_p) New function.
9283 (mips_prepare_pch_save): Add microMIPS support.
9284 * config/mips/mips.h (TARGET_COMPRESSION): New.
9285 (TARGET_CPU_CPP_BUILTINS): Update macro
9286 to use new compression flags and to support microMIPS.
9287 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9288 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9289 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9290 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9291 (ASM_SPEC): Support mmicromips and mno-micromips.
9292 (M16STORE_REG_P): New macro.
9293 (MIPS_CALL): Support TARGET_MICROMIPS.
9294 (MICROMIPS_J): New macro.
9295 (mips_base_mips16): Rename this...
9296 (mips_base_compression_flags): ...to this.
9297 (UMIPS_12BIT_OFFSET_P): New macro.
9298 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9299 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
93002013-03-20 Richard Biener <rguenther@suse.de>
9301
9302 PR tree-optimization/56661
9303 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9304 the result does not have to be distinct.
9305
54714c68
RB
93062013-03-20 Richard Biener <rguenther@suse.de>
9307
9308 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9309 remap_gimple_op_r.
9310
cca1130d
BS
93112013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9312 Steven Bosscher <steven@gcc.gnu.org>
9313
9314 PR rtl-optimization/56605
9315 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9316
2a930377
UB
93172013-03-20 Uros Bizjak <ubizjak@gmail.com>
9318
9319 PR bootstrap/56656
9320 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9321 that require movd instead of movq.
9322
d6d305fe
RB
93232013-03-20 Richard Biener <rguenther@suse.de>
9324
9325 * tree-ssa-structalias.c (struct variable_info): Add pointer
9326 to the first field of an aggregate with sub-vars. Make
9327 this and the pointer to the next subfield its ID.
9328 (vi_next): New function.
9329 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9330 storedanything_id, integer_id): Increment by one.
9331 (new_var_info, get_call_vi, lookup_call_clobber_vi,
9332 get_call_clobber_vi): Adjust.
9333 (solution_set_expand): Simplify and speedup.
9334 (solution_set_add): Inline into ...
9335 (set_union_with_increment): ... this. Adjust accordingly.
9336 (do_sd_constraint): Likewise.
9337 (do_ds_constraint): Likewise.
9338 (do_complex_constraint): Simplify.
9339 (build_pred_graph): Adjust.
9340 (solve_graph): Likewise. Simplify and speedup.
9341 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9342 get_constraint_for_component_ref, get_constraint_for_1,
9343 first_vi_for_offset, first_or_preceding_vi_for_offset,
9344 create_function_info_for, create_variable_info_for_1,
9345 create_variable_info_for, intra_create_variable_infos): Adjust.
9346 (init_base_vars): Push NULL for ID zero.
9347 (compute_points_to_sets): Adjust.
9348
a271b42d
RB
93492013-03-20 Richard Biener <rguenther@suse.de>
9350
9351 * cfgloop.c (verify_loop_structure): Streamline and avoid
9352 ICEing on corrupt loop tree.
9353 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9354 loop tree.
9355
ebd65954
RB
93562013-03-20 Richard Biener <rguenther@suse.de>
9357
9358 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9359 check whether an SSA update is needed.
9360
4547b7ee
RS
93612013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
9362
9363 * config/mips/constraints.md (T): Rename to...
9364 (Yf): ...this.
9365 (U): Rename to...
9366 (Yd): ...this.
9367 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9368 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9369
0b8cdc58
IB
93702013-03-19 Ian Bolton <ian.bolton@arm.com>
9371
9372 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9373 (*subsi3_carryin_uxtw): Likewise.
9374
5977a10d
IB
93752013-03-19 Ian Bolton <ian.bolton@arm.com>
9376
9377 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9378 (*rorsi3_insn_uxtw): Likewise.
9379
bd83ff2c
IB
93802013-03-19 Ian Bolton <ian.bolton@arm.com>
9381
9382 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9383 (*extrsi5_insn_uxtw): Likewise.
9384
ba65123c
RB
93852013-03-19 Richard Biener <rguenther@suse.de>
9386
9387 PR tree-optimization/56273
9388 * passes.c (init_optimization_passes): Move second VRP after DOM.
9389
2eac0476
UB
93902013-03-19 Uros Bizjak <ubizjak@gmail.com>
9391
9392 * config/i386/i386.md (*movti_internal): Merge from
9393 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
9394 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
9395 nox64 isa attributes.
9396
6e55eda7
RB
93972013-03-18 Richard Biener <rguenther@suse.de>
9398
9399 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9400 (unite): Likewise.
9401 (merge_node_constraints): Likewise.
9402 (build_succ_graph): Likewise.
9403 (valid_graph_edge): Inline into single caller.
9404 (unify_nodes): Likewise. Use bitmap_set_bit return value
9405 and cache varinfo.
9406 (scc_visit): Fix formatting and variable use.
9407 (do_sd_constraint): Use gcc_checking_assert.
9408 (do_ds_constraint): Likewise.
9409 (do_complex_constraint): Likewise.
9410 (condense_visit): Likewise. Cleanup.
9411 (dump_pred_graph): New function.
9412 (perform_var_substitution): Dump the pred-graph before
9413 variable substitution.
9414 (find_equivalent_node): Use gcc_checking_assert.
9415 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9416
4bdd44c4
RB
94172013-03-18 Richard Biener <rguenther@suse.de>
9418
9419 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9420 Remove cond_expr_stmt_list argument and do not gimplify the
9421 built expression.
9422 (vect_loop_versioning): Adjust.
9423 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9424 Cleanup to use less temporaries.
9425 (vect_create_data_ref_ptr): Cleanup.
9426
38c56a5b
JJ
94272013-03-18 Jakub Jelinek <jakub@redhat.com>
9428
9429 PR tree-optimization/56635
9430 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9431 require types_compatible_p types.
9432
20b2e6a0
NC
94332013-03-18 Nick Clifton <nickc@redhat.com>
9434
a6178a25
NC
9435 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9436 spurious backslash.
9437
20b2e6a0
NC
9438 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9439 Add missing line to comment describing function.
9440
92608d0e
RB
94412013-03-18 Richard Biener <rguenther@suse.de>
9442
9443 PR tree-optimization/56210
9444 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9445 Handle string / character search functions.
9446 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9447
31348d52
RB
94482013-03-18 Richard Biener <rguenther@suse.de>
9449
9450 PR middle-end/56483
9451 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9452 and implement properly.
9453 * gimple.h (gimple_cond_single_var_p): Remove.
9454
fcac74a1
RB
94552013-03-18 Richard Biener <rguenther@suse.de>
9456
9457 * tree-data-ref.h (find_data_references_in_loop): Declare.
9458 * tree-data-ref.c (get_references_in_stmt): Use a stack
9459 vector pre-allocated in the callers.
9460 (find_data_references_in_stmt): Adjust.
9461 (graphite_find_data_references_in_stmt): Likewise.
9462 (create_rdg_vertices): Likewise.
9463 (find_data_references_in_loop): Export.
9464 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9465 Compute dependences here...
9466 (vect_analyze_data_refs): ...not here. When we encounter
9467 a non-vectorizable data reference in basic-block vectorization
9468 truncate the data reference vector. Do not bother to
9469 fixup data-dependence information for gather loads.
9470 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9471 of data references, as reported.
9472
0d5a1b56
RB
94732013-03-18 Richard Biener <rguenther@suse.de>
9474
9475 PR tree-optimization/3713
9476 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
9477 has_constants and expr.
9478 (stmt_has_constants): Properly valueize SSA names when deciding
9479 whether the stmt has constants.
9480
789c34e3
RB
94812013-03-18 Richard Biener <rguenther@suse.de>
9482
9483 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9484 whole function when there is nothing to do.
9485 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9486 * tree-vectorizer.c (vectorize_loops): Update virtual and
9487 loop-closed SSA once.
9488 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9489
076b4605
RB
94902013-03-18 Richard Biener <rguenther@suse.de>
9491
9492 PR middle-end/56113
9493 * domwalk.c (bb_postorder): New global static.
9494 (cmp_bb_postorder): New function.
9495 (walk_dominator_tree): Replace scheme imposing an order for
9496 visiting dominator sons by one sorting them at the time they
9497 are pushed on the stack.
9498
bdb01696
RB
94992013-03-18 Richard Biener <rguenther@suse.de>
9500
9501 PR tree-optimization/39326
9502 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9503 (struct mem_ref): Replace mem member with ao_ref typed member.
9504 (MEM_ANALYZABLE): Adjust.
9505 (memref_eq): Likewise.
9506 (mem_ref_alloc): Likewise.
9507 (gather_mem_refs_stmt): Likewise.
9508 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9509 (execute_sm_if_changed_flag_set): Adjust.
9510 (execute_sm): Likewise.
9511 (ref_always_accessed_p): Likewise.
9512 (refs_independent_p): Likewise.
9513 (can_sm_ref_p): Likewise.
9514
12d2dc5e
JJ
95152013-03-18 Jakub Jelinek <jakub@redhat.com>
9516
9517 PR c/56566
9518 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9519 return 1 even for !unsignedp.
9520
286fb677
UB
95212013-03-17 Uros Bizjak <ubizjak@gmail.com>
9522
9523 * config/i386/i386.md (isa): Add x64 and nox64.
9524 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9525 (*pushtf): Enable *roF alternative for x64 isa only.
9526 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
9527 mode attribute of integer alternatives to DImode for TARGET_64BIT.
9528 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
9529 (*movtf_internal): Merge from *movtf_internal_rex64 and
9530 *movtf_internal_sse. Use x64 and nox64 isa attributes.
9531 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
9532 nox64 isa attributes.
9533 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
9534 nox64 isa attributes.
9535 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9536
88b97037
UB
95372013-03-17 Uros Bizjak <ubizjak@gmail.com>
9538
9539 * config/alpha/alpha.c (TARGET_LRA_P): New define.
9540
9f4f1735
JJ
95412013-03-17 Jakub Jelinek <jakub@redhat.com>
9542
9543 PR target/56640
9544 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9545 class names. Remove trailing comma after "ALL_REGS".
9546
48f4a6fa
JH
95472013-03-16 Jan Hubicka <jh@suse.cz>
9548
9549 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9550 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9551 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9552 of cgraph_get_create_node.
9553 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9554
98e81123
JM
95552013-03-16 Jason Merrill <jason@redhat.com>
9556
9557 PR debug/49090
9558 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9559 with DW_AT_default_value.
9560
8a298c04
JJ
95612013-03-16 Jakub Jelinek <jakub@redhat.com>
9562
9563 * BASE-VER: Set to 4.9.0.
9564
4323afa0
AK
95652013-03-14 Andi Kleen <ak@linux.intel.com>
9566
9567 PR target/56619
9568 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9569 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9570 Document _x* TSX intrinsics.
9571
b3c0d469
JJ
95722013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
9573 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
9574
9575 * configure.ac: Add MicroBlaze TLS support detection.
9576 * configure: Regenerate.
88b97037
UB
9577 * config/microblaze/microblaze-protos.h
9578 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9579 symbol_mentioned_p, label_mentioned_p): Add prototypes.
9580 * config/microblaze/microblaze.c (microblaze_address_type): Add
9581 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
9582 (microblaze_address_info): Add tls_reloc.
9583 (TARGET_HAVE_TLS): Define.
9584 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9585 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
9586 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9587 load_tls_operand, microblaze_call_tls_get_addr,
9588 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
9589 (microblaze_classify_unspec): Handle UNSPEC_TLS.
9590 (get_base_reg): Use microblaze_tls_symbol_p.
9591 (microblaze_classify_address): Handle TLS.
88b97037
UB
9592 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9593 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
9594 (microblaze_legitimize_address): Handle TLS.
9595 (microblaze_address_insns): Handle ADDRESS_TLS.
9596 (pic_address_needs_scratch): Handle TLS.
9597 (print_operand_address): Handle TLS.
9598 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9599 (microblaze_expand_move): Handle TLS.
88b97037
UB
9600 (microblaze_legitimate_constant_p): Check
9601 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
9602 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9603 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9604 (PIC_OFFSET_TABLE_REGNUM): Set.
9605 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9606 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9607 (addsi3, movsi_internal2, movdf_internal): Update constraints
9608 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
9609 (move_operand): Redefine as move_src_operand,
9610 check microblaze_tls_referenced_p.
8cc9a5a5 9611
d803a491
IB
96122013-03-14 Ian Bolton <ian.bolton@arm.com>
9613
9614 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9615 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9616
a8504f22
IB
96172013-03-14 Ian Bolton <ian.bolton@arm.com>
9618
9619 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9620 CC mode for AND.
9621
df2dfaea
JJ
96222013-03-14 Jakub Jelinek <jakub@redhat.com>
9623
fbd28bc3
JJ
9624 PR tree-optimization/53265
9625 * common.opt (Waggressive-loop-optimizations): New option.
9626 * tree-ssa-loop-niter.c: Include tree-pass.h.
9627 (do_warn_aggressive_loop_optimizations): New function.
9628 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
9629 if number_of_latch_executions returned constant.
9630 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9631 early. If number_of_latch_executions returned constant, set
9632 nb_iterations_upper_bound back to it.
9633 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9634 field.
9635 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9636 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9637
df2dfaea
JJ
9638 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9639 (MULTILIB_OSDIRNAMES): Set.
9640 * genmultilib: If defaultosdirname doesn't start with :: , set
9641 defaultosdirname2 instead, clear it and emit two . multilib_raw
9642 entries instead of just one.
9643
ee0d2b68
KK
96442013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
9645
9646 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9647 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9648 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9649 (SUBTARGET_OVERRIDE_OPTIONS): New.
9650
decc676e
OE
96512013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
9652
9653 PR target/49880
9654 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9655 (musermode): Convert to Var(TARGET_USERMODE).
9656 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9657 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9658 * config/sh/sh.c (sh_option_override): Use
9659 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9660 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9661 condition.
9662 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9663 TARGET_SH4.
9664 (udivsi3_i4_single, divsi3_i4_single): Use
9665 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9666
f4b719c7
DK
96672013-03-13 Dave Korn <dave.korn.cygwin@....>
9668
9669 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9670 default setting.
9671
c40eced0
RB
96722013-03-13 Richard Biener <rguenther@suse.de>
9673
9674 PR tree-optimization/56608
9675 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9676 calls when vectorizing basic-blocks.
9677
1bfa5973
JJ
96782013-03-13 Jakub Jelinek <jakub@redhat.com>
9679
9680 PR plugins/45078
9681 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9682 tm_file.
9683
6fcf5434
JJ
96842013-03-12 Jakub Jelinek <jakub@redhat.com>
9685
9686 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9687
4f38fa8c
JH
96882013-03-11 Jan Hubicka <jh@suse.cz>
9689
9690 PR lto/56557
9691 * lto-streamer-out.c (output_symbol_p): Skip references from
9692 constructors of external variables.
9693
c5c5ba89
JH
96942013-03-11 Jan Hubicka <jh@suse.cz>
9695
9696 PR middle-end/56571
9697 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9698 from pseudos.
9699 * emit-rtl.c (verify_rtx_sharing): Likewise.
9700 (copy_insn_1): Likewise.
9701 * rtl.c (copy_rtx): Likewise.
9702
c2a939b1
GJL
97032013-03-11 Georg-Johann Lay <avr@gjlay.de>
9704
9705 PR target/56591
9706 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9707 output_operand_lossage message.
88b97037 9708
3c3279fb
RE
97092013-03-11 Richard Earnshaw <rearnsha@arm.com>
9710
9711 PR target/56470
9712 * arm.c (shift_op): Validate RTL pattern on the fly.
9713 (arm_print_operand, case 'S'): Don't use shift_operator to validate
9714 the RTL.
9715
aef5ef9d
JDA
97162013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9717
9718 PR target/56347
9719 * config/pa/pa.md (call_value): Check for calls to powf and direct to
9720 new call patterns that clobber %fr12.
9721 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9722 split and postreload patterns.
9723 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9724 registers %fr12 and %fr12R as call used.
9725
456610d3
SB
97262013-03-09 Steven Bosscher <steven@gcc.gnu.org>
9727
9728 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9729 (canon_address, record_store, replace_read, check_mem_read_rtx,
9730 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9731 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9732 rest_of_handle_dse): Likewise.
9733
4b1baac8
RS
97342013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
9735
9736 PR middle-end/56524
9737 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9738 Add base_optabs.
9739 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9740 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9741 (save_optabs_if_changed): Replace with...
9742 (init_tree_optimization_optabs): ...this.
9743 * optabs.c (save_optabs_if_changed): Rename to...
9744 (init_tree_optimization_optabs): ...this. Take the optimization node
9745 as argument. Do nothing if the base optabs are already correct.
9746 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9747 to recompute optabs.
9748 * function.h (function): Remove optabs field.
9749 * function.c (invoke_set_current_function_hook): Call
9750 init_tree_optimization_optabs. Use the result to initialize
9751 this_fn_optabs.
9752
b7a78683
AH
97532013-02-27 Aldy Hernandez <aldyh@redhat.com>
9754
9755 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9756 if GTMA_HAS_NO_INSTRUMENTATION.
9757 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9758 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9759 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9760 * gimple-pretty-print.c (dump_gimple_transaction): Handle
9761 GTMA_HAS_NO_INSTRUMENTATION.
9762
6384c29b
JJ
97632013-03-08 Jakub Jelinek <jakub@redhat.com>
9764
9765 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9766 libasan_preinit.o.
9767
ecd4f20a
MP
97682013-03-08 Marek Polacek <polacek@redhat.com>
9769 Jakub Jelinek <jakub@redhat.com>
9770
9771 PR tree-optimization/56478
9772 * predict.c (is_comparison_with_loop_invariant_p): Change the
9773 type of loop_step to tree.
9774 (predict_loops): Adjust.
9775 (predict_iv_comparison): Perform the computations on double_ints.
9776
64366d35
RB
97772013-03-08 Richard Biener <rguenther@suse.de>
9778
9779 PR tree-optimization/56570
9780 * tree-cfg.c (verify_expr_location_1): Verify locations for
9781 DECL_DEBUG_EXPR.
9782 * tree-sra.c (create_access_replacement): Strip locations
9783 from DECL_DEBUG_EXPRs.
9784
a9d5a059
RB
97852013-03-08 Richard Biener <rguenther@suse.de>
9786
9787 * tree-inline.c (expand_call_inline): Do not associate
9788 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9789 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9790
b7aa4e9a
RB
97912013-03-08 Richard Biener <rguenther@suse.de>
9792
9793 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9794 or block changes with -Og. Fix for location / block encoding
9795 changes and PHI arguments with locations.
9796
c4c2f9fa
SB
97972013-03-07 Steven Bosscher <steven@gcc.gnu.org>
9798
9799 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9800 for all counters.
9801 (struct output_info): Likewise.
9802 (register_overhead): Remove bad gcc_assert.
9803 (bitmap_find_bit): If there is only a single bitmap element, do not
9804 count a miss as a search.
9805 (print_statistics): Update for counter type changes.
9806 (dump_bitmap_statistics): Likewise. Print headers such that they
9807 are properly lined up with the printed counters.
9808
5bf6606a
JJ
98092013-03-07 Jakub Jelinek <jakub@redhat.com>
9810
9811 PR tree-optimization/56559
9812 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9813 check that it has only a single use.
9814
2c653d46
RB
98152013-03-07 Richard Biener <rguenther@suse.de>
9816
9817 * doc/invoke.texi (fwhole-program): Discourage use in combination
9818 with -flto.
9819
a72d8780
JJ
98202013-03-06 Jakub Jelinek <jakub@redhat.com>
9821
01a454df
JJ
9822 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9823
c1781047
JJ
9824 PR tree-optimization/56539
9825 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9826 instead of GSI_CONTINUE_LINKING as last argument to
9827 force_gimple_operand_gsi. Adjust function comment.
9828
9772c47a
JJ
9829 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9830 aarch64-cores.def.
9831
a72d8780
JJ
9832 PR middle-end/56548
9833 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9834 promoted mode, convert the result back to the original mode.
9835
fa5556de
RB
98362013-03-06 Richard Biener <rguenther@suse.de>
9837
9838 PR middle-end/56294
9839 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9840 (insert_updated_phi_nodes_compare_uids): New function.
9841 (update_ssa): Sort symbols_to_rename after UID before
9842 traversing it to insert PHI nodes.
9843
010403d1
RB
98442013-03-06 Richard Biener <rguenther@suse.de>
9845
9846 PR middle-end/50494
9847 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9848 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9849
9850 Revert
9851 2013-02-13 Richard Biener <rguenther@suse.de>
9852
9853 PR lto/50494
9854 * varasm.c (output_constant_def_1): Get the decl representing
9855 the constant as argument.
9856 (output_constant_def): Wrap output_constant_def_1.
9857 (make_decl_rtl): Use output_constant_def_1 with the decl
9858 representing the constant.
9859 (build_constant_desc): Optionally re-use a decl already
9860 representing the constant.
9861 (tree_output_constant_def): Adjust.
9862
3c27ce4c
JY
98632013-03-06 Joey Ye <joey.ye@arm.com>
9864
9865 PR lto/50293
9866 * gcc.c (convert_white_space): New function.
9867 (main): Handles white space in function name.
9868
8f6d1c86
OE
98692013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
9870
9871 PR target/56529
9872 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9873 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
9874 to SH_DIV_CALL_TABLE for TARGET_SH2.
9875 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9876 list.
9877 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9878 call-table options.
9879
798a209f
SA
98802013-03-05 Sterling Augustine <saugustine@google.com>
9881 Cary Coutant <ccoutant@google.com>
9882
9883 PR debug/55364
9884 * dwarf2out.c (resolve_addr): Don't call
9885 remove_loc_list_addr_table_entries a second time for the same
9886 expression.
9887
6cfa417f 98882013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 9889
6cfa417f
JJ
9890 PR debug/56510
9891 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9892 (avoid_complex_debug_insns): New function.
9893 (expand_debug_locations): Call it.
9894
9895 PR rtl-optimization/56484
9896 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9897 lifetimes of hard registers on small register class machines.
9898
98992013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
9900
9901 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 9902 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 9903 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
9904 fast_interrupt.
9905 (microblaze_fast_interrupt_function_p): New function.
9906 (microblaze_is_interrupt_handler): Rename to
9907 microblaze_is_interrupt_variant and add fast_interrupt check.
9908 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9909 (save_restore_insns): Likewise.
9910 (compute_frame_size): Likewise.
9911 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9912 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
9913 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9914 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
9915 microblaze_is_interrupt_variant.
9916
731aefac
KT
99172013-03-05 Kai Tietz <ktietz@redhat.com>
9918
9919 * sdbout.c (sdbout_one_type): Switch to current function's section
9920 supporting cold/hot.
9921
a72d8780 99222013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
9923
9924 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9925 -mxl-reorder.
9926
334e71e8
JJ
99272013-03-05 Jakub Jelinek <jakub@redhat.com>
9928
0b50e654
JJ
9929 PR middle-end/56461
9930 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9931 if VALGRIND_GET_VBITS is defined, temporarily make object
9932 memory all defined, and restore previous valgrind addressability
9933 and definability afterwards. Free this_object at the end.
9934
4ccf8f43
JJ
9935 PR middle-end/56461
9936 * lra.c (lra): Call lra_clear_live_ranges if live_p,
9937 right before calling lra_create_live_ranges, also call it
9938 when clearing live_p. Only call lra_clear_live_ranges
9939 at the end if live_p.
9940
334e71e8
JJ
9941 PR middle-end/56461
9942 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9943
9ca966ca
RB
99442013-03-05 Richard Biener <rguenther@suse.de>
9945
9946 PR tree-optimization/56521
9947 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9948 value-id.
9949
d273b176
SB
99502013-03-05 Steven Bosscher <steven@gcc.gnu.org>
9951
9952 PR c++/55135
9953 * except.h (remove_unreachable_eh_regions): New prototype.
9954 * except.c (remove_eh_handler_splicer): New function, split out
9955 of remove_eh_handler.
9956 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
9957 warning about running it on many EH regions one at a time.
9958 (remove_unreachable_eh_regions_worker): New function, walk the
9959 EH tree in depth-first order and remove non-marked regions.
9960 (remove_unreachable_eh_regions): New function.
9961 * tree-eh.c (mark_reachable_handlers): New function, split out
9962 from remove_unreachable_handlers.
9963 (remove_unreachable_handlers): Use mark_reachable_handlers and
9964 remove_unreachable_eh_regions.
9965 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9966 and remove_unreachable_eh_regions.
9967
5e7f1aef
RB
99682013-03-05 Richard Biener <rguenther@suse.de>
9969
9970 PR middle-end/56525
9971 * loop-init.c (fix_loop_structure): Remove loops in two stages,
9972 not freeing them until the end.
9973
f276b762
AK
99742013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9975
9976 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9977
12a43ab8
RB
99782013-03-05 Richard Biener <rguenther@suse.de>
9979
9980 PR tree-optimization/56270
9981 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9982 of loads after scheduling an SLP instance.
9983
93675444
JJ
99842013-03-05 Jakub Jelinek <jakub@redhat.com>
9985
db4138e3
JJ
9986 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
9987 tic6x.exp.
9988 (check_gcc_parallelize): Run guality.exp as a separate job from
9989 vect.exp with unsorted.exp and $(dg_target_exps) separately from
9990 struct-layout-1.exp with stackalign.exp.
9991
dd3d1ec0
JJ
9992 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
9993
b8d381a3
JJ
9994 PR middle-end/56461
9995 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
9996 load_index sbitmap even if some bit in it isn't set.
9997
b4f9786b
JJ
9998 PR middle-end/56461
9999 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10000 (discover_iteration_bound_by_body_walk): Change queues to
10001 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
10002 spelling in comment. Call safe_push on queues[bound_index] directly.
10003 Release queues[queue_index] in every iteration unconditionally.
10004 Release bounds vector.
10005
93675444
JJ
10006 PR middle-end/56461
10007 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10008 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10009 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10010 inner_phis vector.
10011
3e492e9c
RB
100122013-03-05 Richard Biener <rguenther@suse.de>
10013
10014 PR lto/56515
10015 * tree-inline.c (remap_blocks_to_null): New function.
10016 (expand_call_inline): When expanding a call stmt without
10017 an associated block inline remap all callee blocks to NULL.
10018
a5d1569a
JJ
100192013-03-05 Jakub Jelinek <jakub@redhat.com>
10020
86efb5cd
JJ
10021 PR rtl-optimization/56494
10022 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10023 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10024 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10025
85f5dbea
JJ
10026 PR middle-end/56461
10027 * sel-sched-ir.c (free_sched_pools): Release
10028 succs_info_pool.stack[succs_info_pool.max_top] vectors too
10029 if succs_info_pool.max_top isn't -1.
10030
a5d1569a
JJ
10031 PR bootstrap/56509
10032 * opts.c (opts_obstack, opts_concat): Moved to...
10033 * opts-common.c (opts_obstack, opts_concat): ... here.
10034
4432aa6c
JJ
100352013-03-04 Jakub Jelinek <jakub@redhat.com>
10036
10037 PR middle-end/56461
10038 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10039
f3a1fb91
MJ
100402013-03-04 Martin Jambor <mjambor@suse.cz>
10041
10042 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10043 all appropriate places.
10044
22110e6c
EB
100452013-01-04 Eric Botcazou <ebotcazou@adacore.com>
10046
10047 PR tree-optimization/56424
10048 * ipa-split.c (split_function): Do not set the RSO flag if result is
10049 not by reference and its type is a register type.
10050
a72d8780 100512013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 10052
88b97037 10053 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 10054 (microblaze_legitimate_pic_operand): Likewise
88b97037 10055 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
10056 new function microblaze_legitimate_pic_operand
10057 * config/microblaze/microblaze-protos.h
10058 (microblaze_legitimate_pic_operand): Declare.
10059
a72d8780 100602013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 10061
a72d8780 10062 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 10063 New predicate for supported rtx code types.
a72d8780 10064 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
10065 call_insn_simple_operand predicate.
10066
541d9ac8
JJ
100672013-03-04 Jakub Jelinek <jakub@redhat.com>
10068
5eb010bc
JJ
10069 PR middle-end/56461
10070 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10071 partitions.ordered_remove.
10072
30862efc
JJ
10073 PR middle-end/56461
10074 * tree-vect-stmts.c (vectorizable_conversion): Don't call
10075 vec_oprnds0.create (1) for modifier == NONE.
10076
8930f723
JJ
10077 PR middle-end/56461
10078 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10079 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10080 vec_oprnds1 right before pushing anything to it for
10081 scalar_shift_arg.
10082
541d9ac8
JJ
10083 PR middle-end/56461
10084 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10085 set nbbs to 0 instead of having separate code path.
10086 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10087 instead of false as last argument if returning NULL.
10088
7aa7f2e3
SL
100892013-03-03 Sandra Loosemore <sandra@codesourcery.com>
10090
10091 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10092 the attribute is now called "target" instead of "option".
10093 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10094 * doc/tm.texi.in (Target Attributes): Likewise document the correct
10095 attribute/pragma name for TARGET_OPTION_VALID_P and
10096 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
10097 * doc/tm.texi: Regenerated.
10098
8930f723 100992013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 10100
8930f723 10101 * config/microblaze/microblaze.c:
cb8a1637 10102 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
10103 * config/microblaze/microblaze.h: Add -mxl-reorder to
10104 DRIVER_SELF_SPECS.
10105 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10106 instructions emitted if TARGET_REORDER.
88b97037
UB
10107 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10108 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 10109 separately.
cb8a1637 10110
4dc1d68c
XDL
101112013-03-01 Xinliang David Li <davidxl@google.com>
10112
10113 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10114 walk length.
10115
689eaba3
JJ
101162013-03-01 Jakub Jelinek <jakub@redhat.com>
10117
9d676bf6
JJ
10118 PR middle-end/56461
10119 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10120 vector even when returning true. Fix up function comment formatting.
10121
caff7edf
JJ
10122 PR middle-end/56461
10123 * ira-build.c (ira_loop_nodes_count): New variable.
10124 (create_loop_tree_nodes): Initialize it.
10125 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10126
b6b9227d
JJ
10127 PR middle-end/56461
10128 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10129 method on dr_chain and result_chain.
10130 * tree-vect-stmts.c (vectorizable_store): Only call
10131 result_chain.create if j == 0.
10132
689eaba3
JJ
10133 PR middle-end/56461
10134 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10135 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10136 before overwriting it.
10137
40bf31ed
TB
101382013-03-01 Tobias Burnus <burnus@net-b.de>
10139
10140 * doc/extended.texi (C Extensions): Change order in @menu
10141 to match @node.
10142 (Other MIPS Built-in Functions): Move last MIPS entry before
10143 "picoChip Built-in Functions".
10144 (SH Built-in Functions): Move after RX Built-in Functions.
10145 * doc/gcc.texi (Introduction): Change order in @menu
10146 to match @node.
10147 * doc/md.texi (Constraints): Ditto.
10148 * gty.texi (Type Information): Ditto.
10149 (User-provided marking routines for template types): Make
10150 subsection.
10151 * doc/invoke.texi (AArch64 Options): Move before
10152 "Adapteva Epiphany Options".
10153
e664c61c
KS
101542013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10155 Jakub Jelinek <jakub@redhat.com>
10156
10157 PR sanitizer/56454
10158 * asan.c (gate_asan): Lookup no_sanitize_address instead of
10159 no_address_safety_analysis attribute.
10160 * doc/extend.texi (no_address_safety_attribute): Rename to
10161 no_sanitize_address attribute, mention no_address_safety_analysis
10162 attribute as deprecated alias.
10163
37b5ec8f
JJ
101642013-02-28 Jakub Jelinek <jakub@redhat.com>
10165
10166 PR middle-end/56461
10167 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10168 type to vec<vec<tree> > *.
10169 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
10170 to be vec<tree> instead of vec<tree> *, set vec_defs
10171 to vNULL and call vec_defs.create (number_of_vects), adjust other
10172 uses of vec_defs.
10173 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10174 vectorizable_condition): Adjust vect_get_slp_defs callers.
10175
ba96cdfb
JG
101762013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10177
10178 * config/aarch64/aarch64.c
10179 (aarch64_float_const_representable): Remove unused variable.
10180
6f549691
JG
101812013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10182
10183 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10184
af55e82d
JG
101852013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10186
10187 * config/aarch64/aarch64-builtins.c
10188 (aarch64_init_simd_builtins): Make static.
10189
1df3f464
JG
101902013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10191
10192 * config/aarch64/aarch64.c
10193 (aarch64_simd_make_constant): Make static.
10194
f8f42513
MJ
101952013-02-28 Martin Jambor <mjambor@suse.cz>
10196
10197 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10198 with no initialization to the RHS of debug statements.
10199
b48b3fc4
MJ
102002013-02-28 Martin Jambor <mjambor@suse.cz>
10201
10202 PR tree-optimization/56294
10203 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10204 Adjust dumping.
10205 (get_access_replacement): Do not call create_access_replacement.
10206 Assert a replacement exists.
10207 (get_repl_default_def_ssa_name): Create the replacement declaration
10208 itself.
10209
c3ae224c
RR
102102013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10211
10212 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10213 final_end_function.
10214
45fa0eef
MP
102152013-02-28 Marek Polacek <polacek@redhat.com>
10216
10217 PR rtl-optimization/56466
10218 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10219 if we're changing a loop.
10220 (peel_loops_completely): Likewise.
10221
502c067d
PC
102222013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10223
10224 PR c++/55813
10225 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10226
ff24afc8
GJL
102272013-02-28 Georg-Johann Lay <avr@gjlay.de>
10228
10229 PR target/56445
10230 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10231 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10232 INTX_FTYPE_FX, FX_FTYPE_INTX.
10233 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10234
c7b1fc1b
GJL
102352013-02-28 Georg-Johann Lay <avr@gjlay.de>
10236
10237 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10238 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10239 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10240 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10241 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10242 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10243 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10244 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10245 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10246 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10247 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10248 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10249 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10250 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10251 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10252 (avrxmega6): Increase max flash segments from 5 to 6.
10253 * config/avr/t-multilib: Regenerate.
10254 * config/avr/avr-tables.opt: Regenerate.
10255 * doc/avr-mmcu.texi: Regenerate.
10256
4a0e3cfe
GJL
102572013-02-28 Georg-Johann Lay <avr@gjlay.de>
10258
10259 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10260 (avr_device_to_arch): Rename to avr_device_to_ld.
10261 (avr_device_to_as): New prototype.
10262 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10263 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10264 * config/avr/driver-avr.c (avr_device_to_as): New.
10265 (avr_device_to_arch): Rename to avr_device_to_ld.
10266
97785e52
JJ
102672013-02-27 Jakub Jelinek <jakub@redhat.com>
10268
3f292312
JJ
10269 PR middle-end/56461
10270 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10271 method on dr_chain and result_chain.
10272
a344216b
JJ
10273 PR middle-end/56461
10274 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10275 pointer_set_destroy on not_executed_last_iteration.
10276
f121ad02 10277 PR middle-end/56461
88b97037 10278 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 10279
307f83a3
JJ
10280 PR middle-end/56461
10281 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10282 FOR_EACH_DEFINED_FUNCTION when freeing state.
10283
e19624ee
JJ
10284 PR middle-end/56461
10285 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10286 pool_free.
10287 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10288 overwriting it.
10289
90e709fd
JJ
10290 PR middle-end/56461
10291 * ipa-cp.c (decide_whether_version_node): Call vec_free on
10292 known_aggs[i].items and release known_aggs vector.
10293
97785e52
JJ
10294 PR middle-end/56461
10295 * ipa-reference.c (propagate): Free node_info even for alias nodes.
10296
102972013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 10298
97785e52
JJ
10299 * config/microblaze/microblaze.c (microblaze_emit_compare):
10300 Use xor for EQ/NE comparisions.
10301 * config/microblaze/microblaze.md (cstoresf4): Add constraints
10302 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 10303
6fa5e0ed
JJ
103042013-02-27 Jakub Jelinek <jakub@redhat.com>
10305
10306 PR middle-end/56461
10307 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10308 vector.
10309 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10310 vec_safe_push, always update *slot.
10311 (redirect_edge_var_map_clear): Use vec_free.
10312 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10313 (free_var_map_entry): Use vec_free.
10314 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10315 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10316
436a956a
AB
103172013-02-27 Andrey Belevantsev <abel@ispras.ru>
10318
10319 PR middle-end/45472
436a956a
AB
10320 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10321 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
10322 Reorder tests for speculativeness in the logical and operator.
10323
f5c2caca
JJ
103242013-02-27 Jakub Jelinek <jakub@redhat.com>
10325
0fcb564b
JJ
10326 * incpath.c (add_standard_paths): Use reconcat instead of concat
10327 where appropriate and avoid leaking memory.
10328
dc357798
JJ
10329 * opts.h: Include obstack.h.
10330 (opts_concat): New prototype.
10331 (opts_obstack): New declaration.
10332 * opts.c (opts_concat): New function.
10333 (opts_obstack): New variable.
10334 (init_options_struct): Call gcc_init_obstack on opts_obstack.
10335 (finish_options): Use opts_concat instead of concat
10336 and XOBNEWVEC instead of XNEWVEC.
10337 * opts-common.c (generate_canonical_option, decode_cmdline_option,
10338 generate_option): Likewise.
10339 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10340 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10341
f5c2caca
JJ
10342 PR target/56455
10343 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10344 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10345
d0163673
JJ
103462013-02-26 Jakub Jelinek <jakub@redhat.com>
10347
10348 PR middle-end/56461
10349 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10350
b5ad2b8e
JR
103512013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10352
10353 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10354 (arm_block_move_unaligned_straight): Likewise.
10355 (arm_adjust_block_mem): Likewise.
10356
9b639e2c
JR
103572013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10358
10359 PR target/48901
10360 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10361 temp, cond and label.
10362 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10363
e13a0ccb
JR
10364 PR target/52500
10365 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10366 * config/c6x/c6x.h (dbx_register_map): Update declaration.
10367
fbe4f171
JR
10368 PR target/52501
10369 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10370 of prologue/epilogue functions.
10371
ae006543
JR
10372 PR target/52550
10373 * config/tilegx/tilegx.c (tilegx_expand_prologue):
10374 Remove unused variable cfa_offset.
10375 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10376
c81369fa
JR
10377 PR target/54639
10378 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10379 type promotion to unsigned.
10380
f8a8fea7
JR
10381 PR target/54640
10382 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10383 for HOST_WIDE_INT of 32 bit / same size as int.
10384 (arm_block_move_unaligned_straight): Likewise.
10385 (arm_adjust_block_mem): Likewise.
10386
f8be5169
JR
10387 PR target/54662
10388 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10389 ALL_CFLAGS.
10390
f1ad3354
MP
103912013-02-26 Marek Polacek <polacek@redhat.com>
10392
10393 PR tree-optimization/56426
88b97037 10394 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 10395
a6af0f42
RB
103962013-02-26 Richard Biener <rguenther@suse.de>
10397
10398 PR target/56444
10399 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10400 unused variable loops.
10401
aca43c6c
JJ
104022013-02-26 Jakub Jelinek <jakub@redhat.com>
10403
cecbe5d9
JJ
10404 PR tree-optimization/56448
10405 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10406 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10407 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10408 later operands of the references, or even first operand for
10409 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10410
aca43c6c
JJ
10411 PR tree-optimization/56443
10412 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10413 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10414 to type_for_mode langhook.
10415
53e2e141
MT
104162013-02-25 Matt Turner <mattst88@gmail.com>
10417
10418 * doc/invoke.texi: Document r4700.
10419
259ee451
RB
104202013-02-25 Richard Biener <rguenther@suse.de>
10421
10422 PR tree-optimization/56175
10423 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10424 split out from ...
10425 (simplify_bitwise_binary): ... here. Also guard the conversion
10426 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10427
6d65e8f1
CM
104282013-02-25 Catherine Moore <clm@codesourcery.com>
10429
10430 Revert:
10431 2013-02-24 Catherine Moore <clm@codesourcery.com>
10432 Maciej W. Rozycki <macro@codesourcery.com>
10433 Tom de Vries <tom@codesourcery.com>
a72d8780 10434 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
10435 Iain Sandoe <iain@codesourcery.com>
10436 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 10437 Chao-ying Fu <fu@mips.com>
88b97037 10438
6d65e8f1 10439 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 10440 Document new function attributes.
6d65e8f1
CM
10441 * doc/invoke.texi (minterlink-compressed, mmicromips,
10442 m14k, m14ke, m14kec): Document new options.
10443 (minterlink-mips16): Update documentation.
10444 * doc/md.texi (ZC, ZD): Document new constraints.
10445 * configure.ac (gcc_cv_as_micromips): Check if linker
10446 supports the .set micromips directive.
10447 * configure: Regenerate.
10448 * config.in: Regenerate.
10449 * config/mips/mips-tables.opt: Regenerate.
10450 * config/mips/micromips.md: New file.
10451 * constraints.md (ZC, AD): New constraints.
10452 * config/mips/predicates.md (movep_src_register): New predicate.
10453 (movep_src_operand): New predicate.
10454 (non_volatile_mem_operand): New predicate.
10455 * config/mips/mips.md (multimem): New type.
10456 (length): Differentiate between 17-bit and 18-bit branch offsets.
10457 (MOVEP1, MOVEP2): New mode iterator.
10458 (mov_<load>l): Use ZC constraint.
10459 (mov_<load>r): Likewise.
10460 (mov_<store>l): Likewise.
10461 (mov_<store>r): Likewise.
10462 (*branch_equality<mode>_inverted): Add microMIPS support.
10463 (*branch_equality<mode>): Likewise.
10464 (*jump_absolute): Likewise.
10465 (indirect_jump_<mode>): Likewise.
10466 (tablejump_<mode>): Likewise.
10467 (<optab>_internal): Likewise.
10468 (sibcall_internal): Likewise.
10469 (sibcall_value_internal): Likewise.
10470 (prefetch): Use constraint ZD.
10471 * config/mips/mips.opt (minterlink-compressed): New option.
10472 (minterlink-mips16): Now an alias for minterlink-compressed.
10473 (mmicromips): New option.
10474 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10475 (compare_and_swap_12): Likewise.
10476 (sync_add<mode>): Likewise.
10477 (sync_<optab>_12): Likewise.
10478 (sync_old_<optab>_12): Likewise.
10479 (sync_new_<optab>_12): Likewise.
10480 (sync_nand_12): Likewise.
10481 (sync_old_nand_12): Likewise.
10482 (sync_new_nand_12): Likewise.
10483 (sync_sub<mode>): Likewise.
10484 (sync_old_add<mode>): Likewise.
10485 (sync_old_sub<mode>): Likewise.
10486 (sync_new_add<mode>): Likewise.
10487 (sync_new_sub<mode>): Likewise.
10488 (sync_<optab><mode>): Likewise.
10489 (sync_old_<optab><mode>): Likewise.
10490 (sync_new_<optab><mode>): Likewise.
10491 (sync_nand<mode>): Likewise.
10492 (sync_old_nand<mode>): Likewise.
10493 (sync_new_nand<mode>): Likewise.
10494 (sync_lock_test_and_set<mode>): Likewise.
10495 (test_and_set_12): Likewise.
10496 (atomic_compare_and_swap<mode>): Likewise.
10497 (atomic_exchange<mode>_llsc): Likewise.
10498 (atomic_fetch_add<mode>_llsc): Likewise.
10499 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10500 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10501 (umips_save_restore_pattern_p): Likewise.
10502 (umips_load_store_pair_p): Likewise.
10503 (umips_output_load_store_pair): Likewise.
10504 (umips_movep_target_p): Likewise.
10505 (umips_12bit_offset_address_p): Likewise.
10506 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10507 (mips_base_mips16): Rename this...
10508 (mips_base_compression_flags): ...to this. Update all uses.
10509 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10510 (mips_mips16_decl_p): Delete.
10511 (mips_nomips16_decl_p): Delete.
10512 (mips_get_compress_on_flags): New function.
10513 (mips_get_compress_off_flags): New function.
10514 (mips_get_compress_mode): New function.
10515 (mips_get_compress_on_name): New function.
10516 (mips_get_compress_off_name): New function.
10517 (mips_insert_attributes): Support multiple compression types.
10518 (mips_merge_decl_attributes): Likewise.
10519 (umips_12bit_offset_address_p): New function.
10520 (mips_start_function_definition): Emit .set micromips directive.
10521 (mips_call_may_need_jalx_p): New function.
10522 (mips_function_ok_for_sibcall): Add microMIPS support.
10523 (mips_print_operand_punctuation): Support short delay slots and
10524 compact jumps.
10525 (umips_swm_mask, umips_swm_encoding): New.
10526 (umips_build_save_restore): New function.
10527 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10528 (was_mips16_p): Remove.
10529 (old_compression_mode): New.
10530 (mips_set_compression_mode): New function.
10531 (mips_set_current_function): Add microMIPS support.
10532 (mips_option_override): Likewise.
10533 (umips_save_restore_pattern_p): New function.
10534 (umips_output_save_restore): New function.
10535 (umips_load_store_pair_p_1): New function.
10536 (umips_load_store_pair_p): New function.
10537 (umips_output_load_store_pair_1): New function.
10538 (umips_output_load_store_pair): New function.
10539 (umips_movep_target_p) New function.
10540 (mips_prepare_pch_save): Add microMIPS support.
10541 * config/mips/mips.h (TARGET_COMPRESSION): New.
10542 (TARGET_CPU_CPP_BUILTINS): Update macro
10543 to use new compression flags and to support microMIPS.
10544 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10545 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10546 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10547 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10548 (ASM_SPEC): Support mmicromips and mno-micromips.
10549 (M16STORE_REG_P): New macro.
10550 (MIPS_CALL): Support TARGET_MICROMIPS.
10551 (MICROMIPS_J): New macro.
10552 (mips_base_mips16): Rename this...
10553 (mips_base_compression_flags): ...to this.
10554 (UMIPS_12BIT_OFFSET_P): New macro.
10555 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10556 (MULTILIB_DIRNAMES): Likewise.
10557
5e5df392
TV
105582013-02-25 Tom de Vries <tom@codesourcery.com>
10559
10560 PR rtl-optimization/56131
10561 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10562 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10563 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10564
3fdb53c1
TB
105652013-02-25 Tobias Burnus <burnus@net-b.de>
10566
10567 * doc/invoke.texi (-fsanitize=): Move from optimization
10568 to debugging options.
10569
ed358aea
AB
105702013-02-25 Andrey Belevantsev <abel@ispras.ru>
10571
10572 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10573
f45e9053
AB
105742013-02-25 Andrey Belevantsev <abel@ispras.ru>
10575 Alexander Monakov <amonakov@ispras.ru>
10576
10577 PR middle-end/56077
10578 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10579 flush pending lists also on non-jumps. Adjust comment.
10580
6941b508
CM
105812013-02-24 Catherine Moore <clm@codesourcery.com>
10582 Maciej W. Rozycki <macro@codesourcery.com>
10583 Tom de Vries <tom@codesourcery.com>
a72d8780 10584 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
10585 Iain Sandoe <iain@codesourcery.com>
10586 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 10587 Chao-ying Fu <fu@mips.com>
6941b508
CM
10588
10589 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 10590 Document new function attributes.
6941b508
CM
10591 * doc/invoke.texi (minterlink-compressed, mmicromips,
10592 m14k, m14ke, m14kec): Document new options.
10593 (minterlink-mips16): Update documentation.
10594 * doc/md.texi (ZC, ZD): Document new constraints.
10595 * configure.ac (gcc_cv_as_micromips): Check if linker
10596 supports the .set micromips directive.
10597 * configure: Regenerate.
10598 * config.in: Regenerate.
10599 * config/mips/mips-tables.opt: Regenerate.
10600 * config/mips/micromips.md: New file.
10601 * constraints.md (ZC, AD): New constraints.
10602 * config/mips/predicates.md (movep_src_register): New predicate.
10603 (movep_src_operand): New predicate.
10604 (non_volatile_mem_operand): New predicate.
10605 * config/mips/mips.md (multimem): New type.
10606 (length): Differentiate between 17-bit and 18-bit branch offsets.
10607 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 10608 (mov_<load>l): Use ZC constraint.
6941b508
CM
10609 (mov_<load>r): Likewise.
10610 (mov_<store>l): Likewise.
10611 (mov_<store>r): Likewise.
10612 (*branch_equality<mode>_inverted): Add microMIPS support.
10613 (*branch_equality<mode>): Likewise.
10614 (*jump_absolute): Likewise.
10615 (indirect_jump_<mode>): Likewise.
10616 (tablejump_<mode>): Likewise.
10617 (<optab>_internal): Likewise.
10618 (sibcall_internal): Likewise.
10619 (sibcall_value_internal): Likewise.
10620 (prefetch): Use constraint ZD.
10621 * config/mips/mips.opt (minterlink-compressed): New option.
10622 (minterlink-mips16): Now an alias for minterlink-compressed.
10623 (mmicromips): New option.
10624 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10625 (compare_and_swap_12): Likewise.
10626 (sync_add<mode>): Likewise.
10627 (sync_<optab>_12): Likewise.
10628 (sync_old_<optab>_12): Likewise.
10629 (sync_new_<optab>_12): Likewise.
10630 (sync_nand_12): Likewise.
10631 (sync_old_nand_12): Likewise.
10632 (sync_new_nand_12): Likewise.
10633 (sync_sub<mode>): Likewise.
10634 (sync_old_add<mode>): Likewise.
10635 (sync_old_sub<mode>): Likewise.
10636 (sync_new_add<mode>): Likewise.
10637 (sync_new_sub<mode>): Likewise.
10638 (sync_<optab><mode>): Likewise.
10639 (sync_old_<optab><mode>): Likewise.
10640 (sync_new_<optab><mode>): Likewise.
10641 (sync_nand<mode>): Likewise.
10642 (sync_old_nand<mode>): Likewise.
10643 (sync_new_nand<mode>): Likewise.
10644 (sync_lock_test_and_set<mode>): Likewise.
10645 (test_and_set_12): Likewise.
10646 (atomic_compare_and_swap<mode>): Likewise.
10647 (atomic_exchange<mode>_llsc): Likewise.
10648 (atomic_fetch_add<mode>_llsc): Likewise.
10649 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10650 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10651 (umips_save_restore_pattern_p): Likewise.
10652 (umips_load_store_pair_p): Likewise.
10653 (umips_output_load_store_pair): Likewise.
10654 (umips_movep_target_p): Likewise.
10655 (umips_12bit_offset_address_p): Likewise.
10656 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10657 (mips_base_mips16): Rename this...
10658 (mips_base_compression_flags): ...to this. Update all uses.
10659 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10660 (mips_mips16_decl_p): Delete.
10661 (mips_nomips16_decl_p): Delete.
3fdb53c1 10662 (mips_get_compress_on_flags): New function.
6941b508
CM
10663 (mips_get_compress_off_flags): New function.
10664 (mips_get_compress_mode): New function.
10665 (mips_get_compress_on_name): New function.
10666 (mips_get_compress_off_name): New function.
10667 (mips_insert_attributes): Support multiple compression types.
10668 (mips_merge_decl_attributes): Likewise.
10669 (umips_12bit_offset_address_p): New function.
10670 (mips_start_function_definition): Emit .set micromips directive.
10671 (mips_call_may_need_jalx_p): New function.
10672 (mips_function_ok_for_sibcall): Add microMIPS support.
10673 (mips_print_operand_punctuation): Support short delay slots and
10674 compact jumps.
10675 (umips_swm_mask, umips_swm_encoding): New.
10676 (umips_build_save_restore): New function.
10677 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10678 (was_mips16_p): Remove.
10679 (old_compression_mode): New.
10680 (mips_set_compression_mode): New function.
10681 (mips_set_current_function): Add microMIPS support.
10682 (mips_option_override): Likewise.
10683 (umips_save_restore_pattern_p): New function.
10684 (umips_output_save_restore): New function.
10685 (umips_load_store_pair_p_1): New function.
10686 (umips_load_store_pair_p): New function.
10687 (umips_output_load_store_pair_1): New function.
10688 (umips_output_load_store_pair): New function.
10689 (umips_movep_target_p) New function.
10690 (mips_prepare_pch_save): Add microMIPS support.
10691 * config/mips/mips.h (TARGET_COMPRESSION): New.
10692 (TARGET_CPU_CPP_BUILTINS): Update macro
10693 to use new compression flags and to support microMIPS.
10694 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10695 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10696 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10697 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10698 (ASM_SPEC): Support mmicromips and mno-micromips.
10699 (M16STORE_REG_P): New macro.
10700 (MIPS_CALL): Support TARGET_MICROMIPS.
10701 (MICROMIPS_J): New macro.
10702 (mips_base_mips16): Rename this...
10703 (mips_base_compression_flags): ...to this.
10704 (UMIPS_12BIT_OFFSET_P): New macro.
10705 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10706 (MULTILIB_DIRNAMES): Likewise.
10707
cdebbc6d
JJ
107082013-02-24 Jakub Jelinek <jakub@redhat.com>
10709
10710 PR target/52555
10711 * target-globals.c (save_target_globals): For init_reg_sets and
10712 target_reinit remporarily set this_fn_optabs to this_target_optabs.
10713
18c63565
JG
107142013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
10715
10716 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10717 * config/aarch64/t-aarch64
10718 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10719
2194f7a2
VM
107202013-02-22 Vladimir Makarov <vmakarov@redhat.com>
10721
10722 PR inline-asm/56148
10723 * lra-constraints.c (process_alt_operands): Reload operand
10724 conflicting with earlier clobber only if no more other conflicting
10725 operands.
10726
7d613735
JJ
107272013-02-22 Jakub Jelinek <jakub@redhat.com>
10728
10729 PR sanitizer/56393
10730 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10731 if not linking a shared library.
10732
ac8d93a7
SL
107332013-02-22 Seth LaForge <sethml@google.com>
10734
10735 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10736
e0237780
GY
107372013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
10738
3fdb53c1
TB
10739 * config/arm/arm.md (split for extendsidi): Update condition.
10740 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10741 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10742 (qhs_zextenddi_cstr): Likewise.
e0237780 10743
d7fde18c
JJ
107442013-02-21 Jakub Jelinek <jakub@redhat.com>
10745
be63b77d
JJ
10746 PR middle-end/56420
10747 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10748 avoid signed wrapping.
10749 (expand_mult): Handle properly multiplication by
10750 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
10751 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
10752 in the compiler if coeff is HOST_WIDE_INT_MIN.
10753 (expand_divmod): Don't make ext_op1 static, change it's type to
10754 uhwi. Avoid undefined behavior in -INTVAL (op1).
10755
d7fde18c
JJ
10756 PR rtl-optimization/50339
10757 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10758 field.
10759 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10760 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10761 into splitting_ashiftrt field.
10762 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10763 ASHIFTRT.
10764 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10765 choices.
10766
6aad4455
AH
107672013-02-20 Aldy Hernandez <aldyh@redhat.com>
10768
10769 PR middle-end/56108
10770 * trans-mem.c (execute_tm_mark): Do not expand transactions that
10771 are sure to go irrevocable.
10772
38fe784d
HPN
107732013-02-21 Hans-Peter Nilsson <hp@axis.com>
10774
10775 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10776 scalars are valid operands.
10777
0fd44da3
MJ
107782013-02-21 Martin Jambor <mjambor@suse.cz>
10779
10780 PR tree-optimization/56310
10781 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10782 only matching indices and non-negative final offsets.
10783 (intersect_aggregates_with_edge): Pass src_idx to
10784 agg_replacements_to_vector. Pass src_idx insstead of index to
10785 intersect_with_agg_replacements.
10786
7a92038b
MJ
107872013-02-21 Martin Jambor <mjambor@suse.cz>
10788
10789 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10790 instead of hard-wired defaults.
10791
c0da9c37
MR
107922013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
10793
10794 * doc/invoke.texi (MIPS Options): Update documentation of the
10795 floating-point multiply-accumulate instruction restrictions.
10796
d247ea0c 107972013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
10798
10799 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10800 asan_shadow_offset on x86_64 linux.
10801
22deefcb
RB
108022013-02-21 Richard Biener <rguenther@suse.de>
10803
10804 PR tree-optimization/56415
10805 Revert
10806 2013-02-11 Richard Biener <rguenther@suse.de>
10807
10808 PR tree-optimization/56273
10809 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10810 first VRP run.
10811
7bcc6e75
JJ
108122013-02-21 Jakub Jelinek <jakub@redhat.com>
10813
a0ad148f
JJ
10814 PR bootstrap/56258
10815 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10816 instead of @itemx.
10817
7bcc6e75
JJ
10818 PR inline-asm/56405
10819 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10820 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10821
a0a7b611
JH
108222013-02-20 Jan Hubicka <jh@suse.cz>
10823
10824 PR tree-optimization/56265
88b97037
UB
10825 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10826 when target is referenced for first time.
a0a7b611 10827
c0e50f72
RB
108282013-02-20 Richard Biener <rguenther@suse.de>
10829
10830 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10831 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10832 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10833 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10834 not return anything.
10835 (rename_ssa_copies): Do not remove unused locals.
10836 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 10837 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
10838 * passes.c (execute_function_todo): Do not schedule unused locals
10839 removal if cleanup_tree_cfg did something.
10840 * tree-ssa-live.c (remove_unused_locals): Dump statistics
10841 about the number of removed locals.
10842
a52ca739
RB
108432013-02-20 Richard Biener <rguenther@suse.de>
10844
10845 PR tree-optimization/56398
88b97037 10846 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 10847
ec9c9d1b
MJ
108482013-02-20 Martin Jambor <mjambor@suse.cz>
10849
10850 PR tree-optimization/55334
10851 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10852 restricted pointers to arrays.
10853
e91c8ed6 108542013-02-20 Richard Biener <rguenther@suse.de>
88b97037 10855 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
10856
10857 PR tree-optimization/56396
10858 * tree-ssa-ccp.c (n_const_val): New static variable.
10859 (get_value): Return NULL for SSA names we don't have a lattice
10860 entry for.
10861 (ccp_initialize): Initialize n_const_val.
10862 * tree-ssa-copy.c (n_copy_of): New static variable.
10863 (init_copy_prop): Initialize n_copy_of.
10864 (get_value): Return NULL_TREE for SSA names we don't have a
10865 lattice entry for.
10866
3d916479
MJ
108672013-02-20 Martin Jambor <mjambor@suse.cz>
10868
10869 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10870
71a86758
RB
108712013-02-20 Richard Biener <rguenther@suse.de>
10872
10873 * genpreds.c (write_lookup_constraint): Do not compare first
10874 letter of the constraint again.
10875
79836a12
RB
108762013-02-20 Richard Biener <rguenther@suse.de>
10877
10878 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10879 and ceil_log2.
10880 (get_use_iv_cost): Terminate hashtable walk when coming across
10881 an empty entry.
10882
bbe4fb2c
IZ
108832013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
10884
10885 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10886 reassociation for avx2 targets.
10887
a72d8780 108882012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 10889
c77f83d5
EI
10890 * config/microblaze/microblaze.c: microblaze_has_clz = 0
10891 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 10892 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
10893 version and TARGET_PATTERN_COMPARE check
10894 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 10895
a72d8780 108962012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 10897
a72d8780 10898 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
10899 function before branching.
10900
242387fa
AB
109012012-02-19 Andrey Belevantsev <abel@ispras.ru>
10902
10903 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10904 DUMP_INSN_RTX_UID.
10905 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10906
b4979ab9
AB
109072012-02-19 Andrey Belevantsev <abel@ispras.ru>
10908
10909 PR middle-end/55889
b4979ab9
AB
10910 * sel-sched.c: Include ira.h.
10911 (implicit_clobber_conflict_p): New function.
10912 (moveup_expr): Use it.
88b97037 10913 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 10914
24d63016
RB
109152013-02-19 Richard Biener <rguenther@suse.de>
10916
10917 PR tree-optimization/56384
10918 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10919 (vn_hash_type): Split out from ...
10920 (vn_hash_constant_with_type): ... here.
10921 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10922 (vn_phi_eq): Compare types from vn_phi_s structure.
10923 (vn_phi_lookup): Populate vn_phi_s type.
10924 (vn_phi_insert): Likewise.
10925
a475fd3d
JJ
109262013-02-19 Jakub Jelinek <jakub@redhat.com>
10927
47cc28f5
JJ
10928 PR tree-optimization/56350
10929 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10930 if haven't found reduction or nested cycle operand, rather than
10931 asserting we must find it.
10932
a475fd3d
JJ
10933 PR tree-optimization/56381
10934 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10935 to fold_build3.
10936
109372013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
10938 Jakub Jelinek <jakub@redhat.com>
10939
10940 PR target/52555
10941 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10942 (swap_optab_enable): Same.
10943 (init_all_optabs): Use argument instead of global.
88b97037 10944 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
10945 * expr.h (init_all_optabs): Add argument to prototype.
10946 (TREE_OPTIMIZATION_OPTABS): New.
10947 (save_optabs_if_changed): Protoize.
10948 * optabs.h: Declare this_fn_optabs.
10949 * optabs.c (save_optabs_if_changed): New.
10950 Declare this_fn_optabs.
10951 (init_optabs): Add argument to init_all_optabs() call.
10952 * function.c (invoke_set_current_function_hook): Handle per
10953 function optabs.
10954 * function.h (struct function): New field optabs.
10955 * config/mips/mips.c (mips_set_mips16_mode): Handle when
10956 optimization_current_node has changed.
10957 * target-globals.h (save_target_globals_default_opts): Protoize.
10958 * target-globals.c (save_target_globals_default_opts): New.
10959
3f587ca3
JDA
109602013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10961
10962 PR target/56347
10963 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10964 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
10965
10966 PR target/56214
10967 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
10968 and HImode, require all displacements to be an integer multiple of
10969 their mode size.
ceaca33e
JDA
10970 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10971 only allow QImode and HImode when reload is in progress and strict is
10972 true. Likewise for symbolic addresses. Use base14_operand to check
10973 displacements in REG+BASE addresses.
10974
fe0b4796
RB
109752013-02-18 Richard Biener <rguenther@suse.de>
10976
10977 PR tree-optimization/56366
10978 * tree-vect-loop.c (get_initial_def_for_induction): Properly
10979 handle sign-conversion of outer-loop initial induction value.
10980
6aaf596b
RB
109812013-02-18 Richard Biener <rguenther@suse.de>
10982
73db8ff1 10983 PR middle-end/56349
6aaf596b
RB
10984 * cfghooks.c (merge_blocks): If we merge a latch into another
10985 block adjust references to it.
10986 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
10987 (verify_loop_structure): Verify that a recorded latch is in fact
10988 a latch.
10989
5e97dfb6
RB
109902013-02-18 Richard Biener <rguenther@suse.de>
10991
10992 PR tree-optimization/56321
10993 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
10994 order SSA name release and virtual operand unlinking.
10995
825527e8
EI
109962013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10997
10998 * config/microblaze/microblaze.md (save_stack_block): Define.
10999 (restore_stack_block): Likewise.
11000
debd11d9
EI
110012013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11002
11003 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11004 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11005 * config/microblaze/microblaze.c (microblaze_option_override):
11006 Bail out early for PIC modes when target does not support PIC.
11007
8ec77be0
EI
110082013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11009
88b97037 11010 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
11011 Replace with a microblaze version.
11012 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 11013 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
11014 microblaze.
11015
b41288b3
JJ
110162013-02-16 Jakub Jelinek <jakub@redhat.com>
11017 Dodji Seketeli <dodji@redhat.com>
11018
11019 PR asan/56330
88b97037 11020 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
11021 (instrument_mem_region_access): Do not forget to always put
11022 instrumentation of the of 'base' and 'base + len' in a "if (len !=
11023 0) statement, even for cases where either 'base' or 'base + len'
11024 are not instrumented -- because they have been previously
11025 instrumented. Simplify the logic by putting all the statements
11026 instrument 'base + len' inside a sequence, and then insert that
11027 sequence right before the current insertion point. Then, to
11028 instrument 'base + len', just get an iterator on that statement.
11029 And do not forget to update the pointer to iterator the function
11030 received as argument.
11031
47918951
VM
110322013-02-15 Vladimir Makarov <vmakarov@redhat.com>
11033
11034 PR rtl-optimization/56348
11035 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11036
3fb7c699
SB
110372013-02-15 Steven Bosscher <steven@gcc.gnu.org>
11038
11039 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11040 (clean_graph_dump_file): Pass base to start_graph_dump.
11041
576fe41a
RH
110422013-02-14 Richard Henderson <rth@redhat.com>
11043
11044 PR target/55941
11045 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11046
bb3accfa
SB
110472013-02-14 Steven Bosscher <steven@gcc.gnu.org>
11048
11049 * collect2-aix.h: Define F_LOADONLY.
11050
03143140
RB
110512013-02-14 Richard Biener <rguenther@suse.de>
11052
11053 PR lto/50494
11054 * varasm.c (output_constant_def_1): Get the decl representing
11055 the constant as argument.
11056 (output_constant_def): Wrap output_constant_def_1.
11057 (make_decl_rtl): Use output_constant_def_1 with the decl
11058 representing the constant.
11059 (build_constant_desc): Optionally re-use a decl already
11060 representing the constant.
11061 (tree_output_constant_def): Adjust.
11062
8fb06726
DS
110632013-02-14 Dodji Seketeli <dodji@redhat.com>
11064
11065 Fix an asan crash
11066 * asan.c (instrument_builtin_call): Really put the length of the
11067 second source argument into src1_len.
11068
c4bfe8bf
JJ
110692013-02-13 Jakub Jelinek <jakub@redhat.com>
11070
11071 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11072 argument. If it is false, don't create edge from then_bb to
11073 fallthru_bb.
11074 (insert_if_then_before_iter): Pass true to it.
11075 (build_check_stmt): Pass false to it.
11076 (transform_statements): Flush hash table only on extended basic
11077 block boundaries, rather than at the beginning of every bb.
11078 Don't flush hash table on nonfreeing_call_p calls.
11079 * tree-flow.h (nonfreeing_call_p): New prototype.
11080 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11081
7afe2801
DM
110822013-02-13 David S. Miller <davem@davemloft.net>
11083
11084 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11085
70cc3288
VM
110862013-02-13 Vladimir Makarov <vmakarov@redhat.com>
11087
11088 PR target/56184
11089 * ira.c (max_regno_before_ira): Move from ...
11090 (ira): ... here.
11091 (fix_reg_equiv_init): Use max_regno_before_ira instead of
11092 vec_safe_length.
11093
6422242b
JJ
110942013-02-13 Jakub Jelinek <jakub@redhat.com>
11095
11096 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11097
976a81ee
RB
110982013-02-13 Richard Biener <rguenther@suse.de>
11099
11100 PR lto/56295
11101 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11102 globals in MEM_REFs.
11103
c1874a87
RB
111042013-02-13 Richard Biener <rguenther@suse.de>
11105
11106 * loop-init.c (loop_optimizer_init): Clear loop state when
11107 re-initializing preserved loops.
11108 * loop-unswitch.c (unswitch_single_loop): Return whether
11109 we unswitched the loop. Do not verify loop state here.
88b97037 11110 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 11111
b4ab7d34
KS
111122013-02-13 Kostya Serebryany <kcc@google.com>
11113
88b97037
UB
11114 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11115 on x86_64 linux.
b4ab7d34
KS
11116 * sanitizer.def: Rename __asan_init to __asan_init_v1.
11117
bdcbe80c
DS
111182013-02-12 Dodji Seketeli <dodji@redhat.com>
11119
11120 Avoid instrumenting duplicated memory access in the same basic block
11121 * Makefile.in (asan.o): Add new dependency on hash-table.h
11122 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11123 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11124 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11125 (free_mem_ref_resources, has_mem_ref_been_instrumented)
11126 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11127 (get_mem_ref_of_assignment): New functions.
11128 (get_mem_refs_of_builtin_call): Extract from
11129 instrument_builtin_call and tweak a little bit to make it fit with
11130 the new signature.
11131 (instrument_builtin_call): Use the new
11132 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
11133 of is_gimple_builtin_call.
11134 (instrument_derefs, instrument_mem_region_access): Insert the
11135 instrumented memory reference into the hash table.
11136 (maybe_instrument_assignment): Renamed instrument_assignment into
11137 this, and change it to advance the iterator when instrumentation
11138 actually happened and return true in that case. This makes it
11139 homogeneous with maybe_instrument_assignment, and thus give a
11140 chance to callers to be more 'regular'.
11141 (transform_statements): Clear the memory reference hash table
11142 whenever we enter a new BB, when we cross a function call, or when
11143 we are done transforming statements. Use
11144 maybe_instrument_assignment instead of instrumentation. No more
11145 need to special case maybe_instrument_assignment and advance the
11146 iterator after calling it; it's now handled just like
11147 maybe_instrument_call. Update comment.
11148
4861a1f7
RB
111492013-02-13 Richard Biener <rguenther@suse.de>
11150
11151 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11152 Fix loop discovery code.
11153
1c86bd80
VM
111542013-02-12 Vladimir Makarov <vmakarov@redhat.com>
11155
11156 PR inline-asm/56148
11157 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 11158 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
11159 the operand is not reloaded. Prefer to reload conflicting operand
11160 if earlyclobber and matching operands are the same.
11161
7cbda518
RB
111622013-02-12 Richard Biener <rguenther@suse.de>
11163
11164 PR lto/56297
11165 * lto-streamer-out.c (write_symbol): Do not output symbols
11166 for hard register variables.
11167
e68a4ef6
GJL
111682013-02-12 Georg-Johann Lay <avr@gjlay.de>
11169
11170 PR target/54222
11171 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11172 (umulsidi3_insn, mulsidi3_insn): New insns.
11173
a72d8780 111742013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
11175
11176 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11177 (struct tune_params): Add vec_costs field.
11178 * config/arm/arm.c (arm_builtin_vectorization_cost)
11179 (arm_add_stmt_cost): New functions.
11180 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11181 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11182 (arm_default_vec_cost): New struct of type cpu_vec_costs.
11183 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11184 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11185 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11186 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11187
43320568
RB
111882013-02-12 Richard Biener <rguenther@suse.de>
11189
11190 PR lto/56295
11191 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11192 decls again if possible.
11193
a011aa39
RB
111942013-02-12 Richard Biener <rguenther@suse.de>
11195
11196 PR middle-end/56288
11197 * tree-ssa.c (verify_ssa_name): Fix check, move
11198 SSA_NAME_IN_FREE_LIST check up.
11199
6da26889
JJ
112002013-02-12 Jakub Jelinek <jakub@redhat.com>
11201 Steven Bosscher <steven@gcc.gnu.org>
11202
11203 PR rtl-optimization/56151
11204 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11205 equal to op0 or op1, and last_insn pattern is CODE operation
11206 with MEM dest and one of the operands matches that MEM.
11207
f80e0faf
ST
112082013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11209
11210 * doc/extend.texi: Document Function Multiversioning and "default"
11211 parameter string to target attribute.
11212 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11213 target attribute parameter is "default".
11214 (ix86_compare_version_priority): Remove checks for target attribute.
11215 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11216 Remove check for target attribute equal to NULL. Add assert.
11217 (ix86_generate_version_dispatcher_body): Change error to sorry.
11218
6c59ffd1
IS
112192013-02-11 Iain Sandoe <iain@codesourcery.com>
11220 Jack Howarth <howarth@bromo.med.uc.edu>
11221 Patrick Marlier <patrick.marlier@gmail.com>
11222
11223 PR libitm/55693
11224 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11225 define ENDFILE_SPEC as TM_DESTRUCTOR.
11226 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11227
a72d8780 112282013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
11229 Jack Howarth <howarth@bromo.med.uc.edu>
11230 Jakub Jelinek <jakub@redhat.com>
11231
11232 PR sanitizer/55617
11233 * config/darwin.c (cdtor_record): Rename ctor_record.
11234 (sort_cdtor_records): Rename sort_ctor_records.
11235 (finalize_dtors): New routine to sort destructors by
11236 priority before use in assemble_integer.
11237 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11238
b63fe007
UB
112392013-02-11 Uros Bizjak <ubizjak@gmail.com>
11240
11241 PR rtl-optimization/56275
11242 * simplify-rtx.c (avoid_constant_pool_reference): Check that
11243 offset is non-negative and less than cmode size before
11244 calling simplify_subreg.
11245
8e89b5b5
RB
112462013-02-11 Richard Biener <rguenther@suse.de>
11247
11248 PR tree-optimization/56264
11249 * cfgloop.h (fix_loop_structure): Adjust prototype.
11250 * loop-init.c (fix_loop_structure): Return the number of
11251 newly discovered loops.
11252 * tree-cfgcleanup.c (repair_loop_structures): When new loops
11253 are discovered, do a full loop-closed SSA rewrite.
11254
b4a4b56d
RB
112552013-02-11 Richard Biener <rguenther@suse.de>
11256
11257 PR tree-optimization/56273
11258 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11259 first VRP run.
11260 (check_array_ref): Fix missing newline in dumps.
11261 (search_for_addr_array): Likewise.
11262
0c885229
DE
112632013-02-09 David Edelsohn <dje.gcc@gmail.com>
11264
11265 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11266
59ac9a55
JJ
112672013-02-09 Jakub Jelinek <jakub@redhat.com>
11268
11269 PR target/56256
11270 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11271
25bb0bb5
VM
112722013-02-08 Vladimir Makarov <vmakarov@redhat.com>
11273
11274 PR rtl-optimization/56246
0c885229 11275 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
11276 reload pseudo.
11277 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11278 constraints are satisfied.
11279
a698cc03
JL
112802013-02-08 Jeff Law <law@redhat.com>
11281
11282 PR debug/53948
11283 * emit-rtl.c (reg_is_parm_p): New function.
11284 * regs.h (reg_is_parm_p): New prototype.
11285 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11286 callee-clobbered registers.
11287
e1122ddd
MM
112882013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11289
11290 PR target/56043
11291 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11292 If there is no implicit builtin declaration, just return NULL.
11293
19c5f6e6
UB
112942013-02-08 Uros Bizjak <ubizjak@gmail.com>
11295
11296 * config/i386/sse.md (FMAMODEM): New mode iterator.
11297 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11298 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11299
2480f2ca 113002013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 11301
2480f2ca
UB
11302 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11303 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11304 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11305
113062013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11307
11308 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11309 (microblaze*-*-elf): Likewise.
11310 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11311 LINK_SPEC.
11312 * config/microblaze/microblaze-c.c: Add builtin defines for
11313 _LITTLE_ENDIAN and _BIG_ENDIAN.
11314 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11315 add to TARGET_DEFAULT flags.
76ef61fb 11316 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
11317 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11318 * config/microblaze/microblaze.md: Update extendsidi2 and
11319 movdi_internal instructions to use low-order / high-order reg
11320 print_operands.
11321 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11322 options and inversemask / mask of LITTLE_ENDIAN.
11323 * config/microblaze/t-microblaze: Expand multilib options to
11324 include mlittle-endian (le) and update exceptions patterns.
11325
600a5961
JJ
113262013-02-08 Jakub Jelinek <jakub@redhat.com>
11327
5df81313
JJ
11328 PR rtl-optimization/56195
11329 * lra-constraints.c (get_reload_reg): Don't reuse regs
11330 if they have smaller mode than requested, if they have
11331 wider mode than requested, try to return a SUBREG.
11332
600a5961
JJ
11333 PR tree-optimization/56250
11334 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11335 if type is unsigned and code isn't MULT_EXPR.
11336
ff544649
GJL
113372013-02-08 Georg-Johann Lay <avr@gjlay.de>
11338
11339 PR tree-optimization/56064
11340 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11341 bits according to mode.
11342 * fixed-value.h (fixed_from_double_int)
11343 (const_fixed_from_double_int): Adjust comments.
11344
e45cde98
RB
113452013-02-08 Richard Biener <rguenther@suse.de>
11346
11347 PR lto/56231
11348 * lto-streamer.h (struct data_in): Remove current_file, current_line
11349 and current_col members.
11350 * lto-streamer-out.c (lto_output_location): Stream changed bits
11351 en-block for efficiency.
11352 * lto-streamer-in.c (clear_line_info): Remove.
11353 (lto_input_location): Cache current file, line and column
11354 globally via local statics. Read changed bits en-block.
11355 (input_function): Do not call clear_line_info.
11356 (lto_read_body): Likewise.
11357 (lto_input_toplevel_asms): Likewise.
11358
c1ca73d8
MM
113592013-02-08 Michael Matz <matz@suse.de>
11360
11361 PR tree-optimization/52448
11362 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11363 (nt_call_phase): New static.
11364 (add_or_mark_expr): Only mark accesses with newer phase than any
11365 call seen.
11366 (nonfreeing_call_p): New.
11367 (nt_init_block): Update nt_call_phase, mark blocks as visited.
11368 (nt_fini_block): Keep blocks marked as visited.
11369 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11370
57548aa2
RB
113712013-02-08 Richard Biener <rguenther@suse.de>
11372
11373 * ira.c (ira): Free broken dominator information.
11374
8e10366f
UB
113752013-02-08 Uros Bizjak <ubizjak@gmail.com>
11376
11377 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11378
f64fb0fa
MP
113792013-02-08 Marek Polacek <polacek@redhat.com>
11380
8e10366f 11381 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 11382
0375167b
RB
113832013-02-08 Richard Biener <rguenther@suse.de>
11384
11385 PR middle-end/56181
11386 * cfgloop.h (flow_loops_find): Adjust.
11387 (bb_loop_header_p): Declare.
11388 * cfgloop.c (bb_loop_header_p): New function split out from ...
11389 (flow_loops_find): ... here. Adjust function signature,
11390 support incremental loop structure update.
11391 (verify_loop_structure): Cleanup. Verify a loop is a loop.
11392 * cfgloopmanip.c (fix_loop_structure): Move ...
11393 * loop-init.c (fix_loop_structure): ... here.
11394 (apply_loop_flags): Split out from ...
11395 (loop_optimizer_init): ... here.
11396 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
11397 in incremental mode, only remove dead loops here.
11398
85d768f3
GJL
113992013-02-08 Georg-Johann Lay <avr@gjlay.de>
11400
11401 PR target/54222
11402 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11403 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11404 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11405 (*round<mode>3.libgcc): New insns for fixed-modes.
11406 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11407 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11408 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11409 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11410 implementations. Define to __builtin_avr_absFX,
11411 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11412 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11413 __builtin_avr_countlsFX, respectively.
11414 * config/avr/avr-c.c (target.h): Include it.
11415 (enum avr_builtin_id): New enum.
11416 (avr_resolve_overloaded_builtin): New static function.
11417 (avr_register_target_pragmas): Use it to set
11418 targetm.resolve_overloaded_builtin.
11419 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11420 tree nodes used by DEF_BUILTIN.
11421 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11422 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11423 <AVR_BUILTIN_xxBITS>: Same.
11424
661bc682
RB
114252013-02-08 Richard Biener <rguenther@suse.de>
11426
11427 * cfgloop.c (verify_loop_structure): Properly handle
11428 a loop exiting to another loop header.
11429 * ira-int.h (ira_loops): Remove.
11430 * ira.c (ira_loops): Remove.
11431 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11432 (do_reload): Use loop_optimizer_finalize.
11433 * ira-build.c (create_loop_tree_nodes): Use get_loops and
11434 number_of_loops to access the loop tree.
11435 (more_one_region_p): Likewise.
11436 (finish_loop_tree_nodes): Likewise.
11437 (rebuild_regno_allocno_maps): Likewise.
11438 (mark_loops_for_removal): Likewise.
11439 (mark_all_loops_for_removal): Likewise.
11440 (remove_unnecessary_regions): Likewise.
11441 (ira_build): Likewise.
11442 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11443
0d5049b2
RB
114442013-02-08 Richard Biener <rguenther@suse.de>
11445
11446 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11447 * ipa-pure-const.c (analyze_function): Avoid calling
11448 mark_irreducible_loops twice.
8e10366f 11449 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 11450
499f32e8
DM
114512013-02-07 David S. Miller <davem@davemloft.net>
11452
11453 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11454 on 'reg'.
11455 * var-tracking.c (vt_add_function_parameter): Test the presence of
11456 HAVE_window_save properly and do not remap argument registers when
11457 we have a leaf function.
11458
6edc3e32
UB
114592013-02-07 Uros Bizjak <ubizjak@gmail.com>
11460
11461 PR bootstrap/56227
11462 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11463 instead of "ll".
11464 * config/i386/i386.c (ix86_print_operand): Ditto.
11465
5306401f
VM
114662013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11467
6edc3e32 11468 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 11469
027ece11
VM
114702013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11471
11472 PR rtl-optimization/56225
11473 * lra-constraints.c (process_alt_operands): Check that reload hard
11474 reg can hold value for strict_low_part.
11475
f980dfdb
JJ
114762013-02-07 Jakub Jelinek <jakub@redhat.com>
11477
11478 PR debug/56154
11479 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11480 dwarf2out_end_function.
11481 (in_first_function_p, maybe_at_text_label_p,
11482 first_loclabel_num_not_at_text_label): New variables.
11483 (dwarf2out_var_location): In the first function find out
6edc3e32 11484 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
11485 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11486 functions.
11487
73dd3123
EB
114882013-02-07 Eric Botcazou <ebotcazou@adacore.com>
11489
11490 PR rtl-optimization/56178
11491 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11492 SUBREG of a register. Tidy up related block of code.
11493 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11494 note if the source is a register or a SUBREG of a register.
11495
e3936f47
JJ
114962013-02-07 Jakub Jelinek <jakub@redhat.com>
11497
11498 PR target/56228
11499 * config/rs6000/rs6000.md (ptrm): New mode attr.
11500 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11501 call_value_indirect_aix<pttrsize>,
11502 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11503 m in constraints.
11504
d96d674b
MH
115052013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11506
11507 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11508 if -bnortl. Convert to strcmp and strncmp.
11509
921f2dee
AM
115102013-02-07 Alan Modra <amodra@gmail.com>
11511
11512 PR target/54009
11513 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11514 addresses won't wrap when offsetting.
11515 (rs6000_secondary_reload): Provide secondary reloads needed for
11516 wrapping LO_SUM addresses.
11517
d09c7dba
TS
115182013-02-06 Thomas Schwinge <thomas@codesourcery.com>
11519
11520 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11521 MACH, just __MACH__.
11522
a44bbd48
RB
115232013-02-06 Richard Biener <rguenther@suse.de>
11524
11525 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11526 instead of calling fix_loop_structure.
11527
6d840d99
JJ
115282013-02-06 Jakub Jelinek <jakub@redhat.com>
11529
11530 PR middle-end/56217
11531 * omp-low.c (use_pointer_for_field): Return false if
11532 lower_send_shared_vars doesn't generate any copy-out code.
11533
0f33baa9
TV
115342013-02-06 Tom de Vries <tom@codesourcery.com>
11535
11536 PR rtl-optimization/56131
11537 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11538 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
11539 of the label is NULL. Add comment.
11540
11f1e3ab
JJ
115412013-02-05 Jakub Jelinek <jakub@redhat.com>
11542
31502f9f
JJ
11543 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11544
a74db9bd
JJ
11545 PR sanitizer/55374
11546 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11547 (STATIC_LIBTSAN_LIBS): Likewise.
11548 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11549 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11550 is defined, don't add anything else beyond that.
11551 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11552 (LINK_COMMAND_SPEC): Use them.
11553
11f1e3ab
JJ
11554 PR tree-optimization/56205
11555 * tree-stdarg.c (check_all_va_list_escapes): Return true if
11556 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11557 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11558
14ac6aa2
RB
115592013-02-05 Richard Biener <rguenther@suse.de>
11560
11561 PR tree-optimization/53342
11562 PR tree-optimization/53185
11563 * tree-vectorizer.h (vect_check_strided_load): Remove.
11564 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11565 not disallow peeling for vectorized strided loads.
11566 (vect_check_strided_load): Make static and simplify.
11567 (vect_analyze_data_refs): Adjust.
11568 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11569 correctly when vectorizing strided loads.
11570
6f22445a
RB
115712013-02-05 Richard Biener <rguenther@suse.de>
11572
11573 * doc/install.texi: Refer to ISL, not PPL.
11574
39f9719e
JH
115752013-02-05 Jan Hubicka <jh@suse.cz>
11576
ec4224ac
JH
11577 PR tree-optimization/55789
11578 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11579
115802013-02-05 Jan Hubicka <jh@suse.cz>
11581
11582 PR tree-optimization/55789
39f9719e
JH
11583 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11584 the dead call anyway.
11585
956d3b33
EB
115862013-02-05 Eric Botcazou <ebotcazou@adacore.com>
11587
11588 PR sanitizer/55374
11589 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11590
115912013-02-04 Alexander Potapenko <glider@google.com>
11592 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
11593 Jakub Jelinek <jakub@redhat.com>
11594
11595 PR sanitizer/55617
11596 * config/darwin.c (sort_ctor_records): Stabilized qsort
11597 on constructor priority by using original position.
11598 (finalize_ctors): New routine to sort constructors by
11599 priority before use in assemble_integer.
11600 (machopic_asm_out_constructor): Use finalize_ctors if needed.
11601
7ac3af38
JJ
116022013-02-04 Jakub Jelinek <jakub@redhat.com>
11603
11604 PR libstdc++/54314
11605 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11606 about visibility on artificial decls.
11607 * config/sol2.c (solaris_assemble_visibility): Likewise.
11608
152689dc
KT
116092013-02-04 Kai Tietz <ktietz@redhat.com>
11610
11611 PR target/56186
11612 * config/i386/i386.c (function_value_ms_64): Add additional valtype
11613 argument and improve checking of return-argument types for 16-byte
11614 modes.
11615 (ix86_function_value_1): Add additional valtype argument on call
11616 of function_value_64.
11617 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11618 handling infunction_value_64 function.
11619
2b5987b5
MGD
116202013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11621
7ac3af38 11622 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 11623
14597080
RB
116242013-02-04 Richard Biener <rguenther@suse.de>
11625
11626 PR tree-optimization/56188
11627 * tree-ssa-structalias.c (label_visit): Consider case with
11628 initially non-empty points-to set.
11629 (perform_var_substitution): Dump node mapping and clean up.
11630
ed73881e
RG
116312013-02-04 Richard Guenther <rguenther@suse.de>
11632
11633 PR lto/56168
11634 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11635 node prevail as last resort.
11636 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 11637 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 11638
139a0707
RB
116392013-02-04 Richard Biener <rguenther@suse.de>
11640
11641 PR tree-optimization/56113
11642 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11643 Merge into ...
11644 (equiv_class_lookup_or_add): ... this.
11645 (label_visit): Adjust and fix error in previous patch.
11646 (perform_var_substitution): Adjust.
11647
50fe8924
OE
116482013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
11649
11650 * config/sh/divtab.c: Fix formatting and comments throughout the file.
11651 * config/sh/sh4-300.md: Likewise.
11652 * config/sh/sh4a.md: Likewise.
11653 * config/sh/constraints.md: Likewise.
11654 * config/sh/sh.md: Likewise.
11655 * config/sh/netbsd-elf.h: Likewise.
11656 * config/sh/predicates.md: Likewise.
11657 * config/sh/sh-protos.h: Likewise.
11658 * config/sh/ushmedia.h: Likewise.
11659 * config/sh/linux.h: Likewise.
11660 * config/sh/sh.c: Likewise.
11661 * config/sh/superh.h: Likewise.
11662 * config/sh/elf.h: Likewise.
11663 * config/sh/sh4.md: Likewise.
11664 * config/sh/sh.h: Likewise.
11665
1a04ac2b
JDA
116662013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11667
11668 * config/pa/constraints.md: Adjust unused letters. Change "T"
11669 constraint to match_test floating_point_store_memory_operand().
11670 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11671 (base14_operand): New.
11672 (floating_point_store_memory_operand): New.
11673 (integer_store_memory_operand): Revise to use base14_operand and
11674 reg_plus_base_memory_operand.
11675 (move_dest_operand): Allow symbolic_memory_operands.
11676 (symbolic_memory_operand): Check for LO_SOM.
11677 (symbolic_operand): Change default case to break.
11678 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11679 CONST_DOUBLE values to be reloaded by putting them into memory when
11680 the destination is a floating point register.
11681 (movdf): Remove code to handle CONST_DOUBLE.
11682 (movsf): Likewise.
11683 (reload_indf_r1): New.
11684 (reload_insf_r1): New.
11685 Consistently use "Q" and "T" constraints with integer and floating
11686 point move instructions, respectively.
11687 (movdi): Remove FAIL.
11688 Change predicate for source operand unamed DImode move from
11689 general_operand to move_src_operand.
11690 (umulsidi3): Change predicate for destination operand to
11691 register_operand.
11692 Likewise for similar unamed patterns.
11693 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11694 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11695 (hppa_legitimize_address): Simplify mask calculation.
11696 (pa_emit_move_sequence): Revised handling of secondary reloads from
11697 REG+D addresses for floating point loads and stores. Directly handle
11698 loading CONST0_RTX (mode) to a floating point register.
11699 (pa_secondary_reload): Handle reloading DF and SFmode constant values
11700 to floating point registers. Don't restrict secondary reloads to
11701 floating point registers to integer modes. Revise some comments and
11702 cleanup some code.
11703 (TARGET_LEGITIMATE_ADDRESS_P): Define.
11704 (pa_legitimate_address_p): New.
11705 (pa_legitimize_reload_address): New.
11706 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11707 (STRICT_REG_OK_FOR_BASE_P): New.
11708 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
11709 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11710
3bf65591
DE
117112013-02-03 David Edelsohn <dje.gcc@gmail.com>
11712 Andrew Dixie <andrewd@gentrack.com>
11713
11714 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11715 flag set.
11716
c0a8a3e6
RS
117172013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
11718
11719 * expmed.c (extract_bit_field_1): Pass the full width of the
11720 structure to get_best_reg_extraction_insn.
11721
99113dff
DE
117222013-02-01 David Edelsohn <dje.gcc@gmail.com>
11723
11724 PR target/54601
11725 * configure.ac (use_cxa_atexit): Add AIX.
11726 * configure: Regenerate.
11727
11728 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11729
ddd84654
JJ
117302013-02-01 Jakub Jelinek <jakub@redhat.com>
11731
11732 PR debug/54793
11733 * final.c (need_profile_function): New variable.
11734 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11735 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11736 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11737 notes, targetm.asm_out.function_prologue doesn't emit anything,
11738 HAVE_prologue and profiler should be emitted before prologue,
11739 set need_profile_function instead of emitting it.
11740 (final_scan_insn): If need_profile_function, emit
11741 profile_function on the first NOTE_INSN_BASIC_BLOCK or
11742 NOTE_INSN_FUNCTION_BEG note.
11743
117442013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
11745
11746 * config/rs6000/rs6000.md (smulditi3): New.
11747 (umulditi3): New.
11748
ff2a9d88
RH
11749 * config/alpha/alpha.md (umulditi3): New.
11750
14d52b90
DE
117512013-02-01 David Edelsohn <dje.gcc@gmail.com>
11752
11753 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11754 (ASM_OUTPUT_ALIGNED_LOCAL): New.
11755
8c7ca45c
RB
117562013-02-01 Richard Biener <rguenther@suse.de>
11757
11758 PR tree-optimization/56113
11759 * tree-ssa-structalias.c (label_visit): Reduce work for
11760 single-predecessor nodes.
11761
9f419393
EB
117622013-02-01 Eric Botcazou <ebotcazou@adacore.com>
11763
11764 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11765 range isn't testing for zero.
11766
c5f4be84
SB
117672013-01-31 Steven Bosscher <steven@gcc.gnu.org>
11768
11769 PR middle-end/56113
11770 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11771
dbdbd982
NC
117722013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
11773 Nick Clifton <nickc@redhat.com>
11774
11775 * config/v850/constraints.md (Q): Define as a memory constraint.
11776 * config/v850/predicates.md (label_ref_operand): New predicate.
11777 (e3v5_shift_operand): New predicate.
11778 (ior_operator): New predicate.
11779 * config/v850/t-v850: Add e3v5 multilib.
11780 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11781 (v850_gen_movdi): Prototype.
11782 * config/v850/v850.c: Add support for e3v5 architecture.
11783 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11784 TARGET_V850E_UP.
11785 (construct_save_jarl): Add e3v5 long JARL support.
11786 (v850_adjust_insn_length): New function. Adjust length of call
11787 insns when using e3v5 instructions.
11788 (v850_gen_movdi): New function: Generate instructions to move a
11789 DImode value.
11790 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11791 (CPP_SPEC): Define __v850e3v5__ as appropriate.
11792 (TARGET_USE_FPU): Enable for e3v5.
11793 (CONST_OK_FOR_W): New macro.
11794 (ADJUST_INSN_LENGTH): Define.
11795 * config/v850/v850.md (UNSPEC_LOOP): Define.
11796 (attr cpu): Add v850e3v5.
11797 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11798 (movdi): New pattern.
11799 (movdi_internal): New pattern.
11800 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11801 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11802 (cstoresf4): Likewise.
11803 (cstoredf4): Likewise.
11804 (insv): New pattern.
11805 (rotlso3_a): New pattern.
11806 (rotlsi3_b): New pattern
11807 (rotlsi3_v850e3v5): New pattern.
11808 (doloop_begin): New pattern.
11809 (fix_loop_counter): New pattern.
11810 (doloop_end): New pattern.
11811 (branch_normal): Add e3v5 long branch support.
11812 (branch_invert): Likewise.
11813 (branch_z_normal): Likewise.
11814 (branch_z_invert): Likewise.
11815 (branch_nz_normal): Likewise.
11816 (branch_nz_invert): Likewise.
11817 (call_internal_short): Add e3v5 register-indirect JARL support.
11818 (call_internal_long): Likewise.
11819 (call_value_internal_short): Likewise.
11820 (call_value_internal_long): Likewise.
11821 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11822 (mloop): New option.
11823 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 11824 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 11825
73861a41
PK
118262013-01-31 Paul Koning <ni1d@arrl.net>
11827
11828 PR debug/55059
11829 PR debug/54508
11830 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11831 children if parent is a class.
11832 (prune_unused_types_prune): Don't add DW_AT_declaration.
11833
e44978dc
RB
118342013-01-31 Richard Biener <rguenther@suse.de>
11835
11836 PR tree-optimization/56157
11837 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11838 match up operand with SLP child.
11839
90b10dec
JM
118402013-01-31 Jason Merrill <jason@redhat.com>
11841
04d2dadd 11842 PR debug/54410
90b10dec
JM
11843 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11844 parameters the first time.
11845 (gen_scheduled_generic_parms_dies): Check completeness here.
11846
6e616110
RB
118472013-01-31 Richard Biener <rguenther@suse.de>
11848
11849 PR middle-end/53073
11850 * common.opt (faggressive-loop-optimizations): New flag,
11851 enabled by default.
11852 * doc/invoke.texi (faggressive-loop-optimizations): Document.
11853 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11854 infer_loop_bounds_from_undefined by it.
11855
636f59cf
RB
118562013-01-31 Richard Biener <rguenther@suse.de>
11857
11858 PR tree-optimization/56150
11859 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11860 visit virtual operands.
11861 (find_uses_to_rename_bb): Likewise.
11862
118632013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
11864
11865 PR tree-optimization/56150
11866 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11867 mixed store non-store stmts.
11868
32887460
JJ
118692013-01-30 Jakub Jelinek <jakub@redhat.com>
11870
e60e09a0
JJ
11871 PR sanitizer/55374
11872 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11873 LIBASAN_EARLY_SPEC is defined.
11874 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11875 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11876 before %o.
11877 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11878
32887460
JJ
11879 PR c++/55742
11880 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11881 invalid args instead of ICEing on it.
11882 (ix86_valid_target_attribute_tree): Return error_mark_node if
11883 ix86_valid_target_attribute_inner_p failed.
11884 (ix86_valid_target_attribute_p): Return false only if
11885 ix86_valid_target_attribute_tree returned error_mark_node. Allow
11886 target("default") attribute.
11887 (sorted_attr_string): Change argument from const char * to tree,
11888 merge in all target attribute arguments rather than just one.
11889 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
11890 instead of free. Avoid using strcat.
11891 (ix86_mangle_function_version_assembler_name): Mangle
11892 target("default") as if no target attribute is present. Adjust
11893 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
11894 instead of xmalloc and XDELETEVEC instead of free.
11895 (ix86_function_versions): Don't return true if one of the decls
11896 doesn't have target attribute. If they don't and one of the decls
11897 is DECL_FUNCTION_VERSIONED, report an error. Adjust
11898 sorted_attr_string caller. Use XDELETEVEC instead of free.
11899 (ix86_supports_function_versions): Remove.
11900 (make_name): Fix up formatting.
11901 (make_dispatcher_decl): Remove resolver_name and its initialization.
11902 Avoid leaking memory.
11903 (is_function_default_version): Return true if there is
11904 target("default") attribute rather than no target attribute at all.
11905 (make_resolver_func): Avoid leaking memory.
11906 (ix86_generate_version_dispatcher_body): Likewise.
11907 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11908 * target.def (supports_function_versions): Remove.
11909 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11910 * doc/tm.texi: Regenerated.
11911
73cca0cc
VM
119122013-01-30 Vladimir Makarov <vmakarov@redhat.com>
11913
11914 PR rtl-optimization/56144
11915 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11916 for values with side effects.
11917
11452e7b
RB
119182013-01-30 Richard Biener <rguenther@suse.de>
11919
11920 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11921 (sparseset_pop): Likewise.
11922 * cfganal.c (compute_idf): Likewise. Increase work-stack size
11923 to be able to use quick_push in the worker loop.
11924
01cb1ef5
MP
119252013-01-30 Marek Polacek <polacek@redhat.com>
11926
11927 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11928
e892936e
RB
119292013-01-30 Richard Biener <rguenther@suse.de>
11930
11931 PR lto/56147
6edc3e32 11932 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 11933
cc06c01d
GJL
119342013-01-30 Georg-Johann Lay <avr@gjlay.de>
11935
11936 PR tree-optimization/56064
11937 * fixed-value.c (fixed_from_double_int): New function.
11938 * fixed-value.h (fixed_from_double_int): New prototype.
11939 (const_fixed_from_double_int): New static inline function.
11940 * fold-const.c (native_interpret_fixed): New static function.
11941 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11942 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11943 (native_encode_fixed): New static function.
11944 (native_encode_expr) <FIXED_CST>: Use it.
11945 (native_interpret_int): Move double_int worker code to...
11946 * double-int.c (double_int::from_buffer): ...this new static method.
11947 * double-int.h (double_int::from_buffer): Prototype it.
11948
d394a308
RB
119492013-01-30 Richard Biener <rguenther@suse.de>
11950
11951 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11952 New pointer-map and obstack.
11953 (init_alias_vars): Allocate pointer-map and obstack.
11954 (delete_points_to_sets): Free them.
11955 (find_what_var_points_to): Cache result.
11956 (find_what_p_points_to): Adjust for changed interface of
11957 find_what_var_points_to.
11958 (compute_points_to_sets): Likewise.
11959 (ipa_pta_execute): Likewise.
11960
20804d96
RO
119612013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11962
11963 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11964 * configure: Regenerate.
11965 * config.in: Regenerate.
11966 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11967 #nobits/#progbits if supported.
11968
a7ad88a2
OE
119692013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
11970
11971 PR target/56121
11972 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11973 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11974 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11975
7af79f92
GY
119762013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11977
91bfca59
OE
11978 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11979 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 11980
753bcf7b
GY
119812013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11982
91bfca59
OE
11983 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11984 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 11985
8cbc2ea8
GY
119862013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11987
91bfca59
OE
11988 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
11989 declaration.
11990 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
11991 * config/arm/cortex-a7.md: New bypasses using
11992 arm_mac_accumulator_is_result.
8cbc2ea8 11993
697a3325
GY
119942013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11995
91bfca59 11996 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 11997 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
11998 (cortex_a7_fpfmad): New reservation.
11999 (cortex_a7_fpmacs): Use ffmas and update required units.
12000 (cortex_a7_fpmuld): Update required units and latency.
12001 (cortex_a7_fpmacd): Likewise.
12002 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12003 (cortex_a7_neon). Likewise.
12004 (bypass) Update participating units.
697a3325 12005
29637783
GY
120062013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12007
91bfca59
OE
12008 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12009 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12010 from fmac to ffma.
12011 * config/arm/vfp11.md (vfp_farith): Use ffmas.
12012 (vfp_fmul): Use ffmad.
12013 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12014 (cortex_r4_fmacd): Use ffmad.
12015 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12016 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
12017 (cortex_a9_fmacd): Use ffmad.
12018 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12019 (cortex_a8_vfp_macd): Use ffmad.
12020 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12021 (cortex_a5_fpmacd): Use ffmad.
12022 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12023 (cortex_a15_vfp_macd): Use ffmad.
12024 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 12025
2ee8a2d5
JM
120262013-01-29 Jason Merrill <jason@redhat.com>
12027
12028 PR libstdc++/54314
12029 * varasm.c (default_assemble_visibility): Don't warn about
12030 visibility on artificial decls.
12031
78d087bc
RB
120322013-01-29 Richard Biener <rguenther@suse.de>
12033
12034 PR tree-optimization/56113
12035 * tree-ssa-structalias.c (equiv_class_lookup): Also return
12036 the bitmap leader.
12037 (label_visit): Free duplicate bitmaps and record the leader instead.
12038 (perform_var_substitution): Adjust.
12039
83ba4d6f
RB
120402013-01-29 Richard Biener <rguenther@suse.de>
12041
12042 PR tree-optimization/55270
12043 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12044 the CFG, schedule loops for fixup.
12045
66dfe13f
NC
120462013-01-29 Nick Clifton <nickc@redhat.com>
12047
12048 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12049 SP_REG.
12050
5a579c3b
LE
120512013-01-28 Leif Ekblad <leif@rdos.net>
12052
12053 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12054 * config/i386/i386.h (TARGET_RDOS): New macro.
12055 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12056 * config/i386/i386.c (ix86_option_override_internal): For 64bit
12057 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12058 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12059 DEFAULT_LARGE_SECTION_THRESHOLD.
12060 * config/i386/i386.md (R14_REG, R15_REG): New constants.
12061 * config/i386/rdos.h: New file.
12062 * config/i386/rdos64.h: New file.
12063
51e44392
BS
120642013-01-28 Bernd Schmidt <bernds@codesourcery.com>
12065
12066 PR other/54814
12067 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12068 TEST_HARD_REG_BIT.
12069
db1fb332
JJ
120702013-01-28 Jakub Jelinek <jakub@redhat.com>
12071
12072 PR rtl-optimization/56117
12073 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12074 call cselib_lookup_from_insn on the MEM before calling
12075 add_insn_mem_dependence.
12076
16917761
RB
120772013-01-28 Richard Biener <rguenther@suse.de>
12078
12079 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12080 to a stmt that didn't have one.
12081 (copy_phis_for_bb): Likewise for PHI arguments.
12082 (copy_debug_stmt): Likewise for debug stmts.
12083
b9fc0497
RB
120842013-01-28 Richard Biener <rguenther@suse.de>
12085
12086 PR tree-optimization/56034
6edc3e32 12087 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
12088 (partition_builtin_p): Adjust.
12089 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
12090 it is the last partition.
12091 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12092 up the vertex for the definition.
12093 (classify_partition): Classify whether a partition is a
12094 PKIND_REDUCTION, thus has uses outside of the loop.
12095 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12096 Merge all PKIND_REDUCTION partitions into the last partition.
12097 (tree_loop_distribution): Seed partitions from reductions as well.
12098
aa710d25
JJ
120992013-01-28 Jakub Jelinek <jakub@redhat.com>
12100
0bfbca58
JJ
12101 PR tree-optimization/56125
12102 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12103 pow(x,c) into sqrt(x) * powi(x, n/2) or
12104 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12105 optimizing for size.
12106 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12107 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12108 integer.
12109
aa710d25
JJ
12110 PR tree-optimization/56094
12111 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12112 to UNKNOWN_LOCATION while gimplifying expr.
12113
77dc5297
UB
121142013-01-27 Uros Bizjak <ubizjak@gmail.com>
12115
12116 PR target/56114
12117 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12118 operand 0 in movabs insn template for -masm=intel asm alternative.
12119 (*movabs<mode>_2): Ditto for operand 1.
12120
0bfbca58 121212013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
12122
12123 PR target/54663
12124 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12125 of microblaze-c.o
12126
0bfbca58 121272013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
12128
12129 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12130 tm_file.
12131
0bfbca58 121322013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
12133
12134 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12135 Undef to avoid warning.
12136
478f60f9
MH
121372013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12138
12139 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12140 * configure: Regenerate.
12141
d7fa6ee2
JJ
121422013-01-25 Jakub Jelinek <jakub@redhat.com>
12143
12144 PR tree-optimization/56098
12145 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12146 for stmts with volatile ops.
12147 (cond_store_replacement): Don't optimize if assign has volatile ops.
12148 (cond_if_else_store_replacement_1): Don't optimize if either
12149 then_assign or else_assign have volatile ops.
12150 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12151 volatile ops.
12152
f8fe87bd
GJL
121532013-01-25 Georg-Johann Lay <avr@gjlay.de>
12154
12155 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12156
28398d0d
GJL
121572013-01-25 Georg-Johann Lay <avr@gjlay.de>
12158
12159 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12160 missing ':' in asm example.
12161
b7d7d917
TB
121622013-01-25 Tejas Belagod <tejas.belagod@arm.com>
12163
12164 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12165 entries into lane and laneq entries.
77dc5297
UB
12166 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12167 Remove AdvSIMD scalar modes.
b7d7d917
TB
12168 (aarch64_sq<r>dmulh_laneq<mode>): New.
12169 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12170 modes.
12171 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12172 builtin implementations to relfect changes in RTL in aarch64-simd.md.
12173 * config/aarch64/iterators.md (VCOND): New.
12174 (VCONQ): New.
12175
556f9906
GJL
121762013-01-25 Georg-Johann Lay <avr@gjlay.de>
12177
12178 PR target/54222
12179 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12180 Add NULL LIBNAME argument to existing definitions.
12181 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12182 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12183 * config/avr/avr.c (DEF_BUILTIN): Same.
12184 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12185 (avr_expand_builtin): Expand to a vanilla call if a libgcc
12186 implementation is available (DECL_ASSEMBLER_NAME is set).
12187 (avr_fold_absfx): New static function.
12188 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12189 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12190 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12191 AVR_BUILTIN_ABSLLK.
12192 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12193 (abshk, absk, abslk, absllk): Provide as static inline functions.
12194
1f546bbb
MP
121952013-01-25 Marek Polacek <polacek@redhat.com>
12196
12197 PR tree-optimization/56035
12198 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12199
7e184bd7
UB
122002012-01-24 Uros Bizjak <ubizjak@gmail.com>
12201
12202 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12203 (*movtf_internal_rex64): Add (!o,C) alternative
12204 (*movxf_internal_rex64): Ditto.
12205 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12206
f5ba49ac
SM
122072013-01-24 Shenghou Ma <minux.ma@gmail.com>
12208
12209 * doc/invoke.texi: fix typo.
12210 * doc/objc.texi: fix typo.
12211
a6343728
RS
122122013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12213
12214 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12215 for the first two alternatives.
12216
cd030c07
DN
122172013-01-24 Diego Novillo <dnovillo@google.com>
12218
77dc5297 12219 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
12220 (ggc-zone.o): Remove.
12221 * configure.ac: Remove option --with-gc.
12222 * configure: Re-generate.
12223 * doc/install.texi: Remove documentation for --with-gc.
12224 * gengtype.c (write_enum_defn): Remove. Update all users.
12225 (write_Types_process_field): Remove generation of gt_e_* argument.
12226 (output_type_enum): Remove. Update all users.
12227 (write_enum_defn): Remove. Update all users.
12228 (enum alloc_zone): Remove. Update all users.
77dc5297 12229 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
12230 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12231 Update all callers.
12232 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 12233 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
12234 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12235 Update all users.
aaf1e810 12236 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
12237 (struct alloc_zone): Remove.
12238 (ggc_internal_alloc_zone_stat): Remove.
12239 (ggc_internal_cleared_alloc_zone_stat): Remove.
12240 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
12241 (ggc_pch_count_object): Remove last argument. Update all users.
12242 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
12243 (struct alloc_zone): Remove.
12244 * ggc-zone.c: Remove.
77dc5297 12245 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
12246 (struct alloc_zone): Remove.
12247 (ggc_alloc_typed_stat): Remove.
12248 (ggc_alloc_typed): Remove.
12249 (ggc_splay_alloc): Remove first argument.
12250 (rtl_zone): Remove. Update all users.
12251 (tree_zone): Remove. Update all users.
12252 (tree_id_zone): Remove. Update all users.
12253 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 12254 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 12255 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 12256 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 12257
a861ffa4
GJL
122582013-01-24 Georg-Johann Lay <avr@gjlay.de>
12259
12260 * config/avr/avr.c (avr_out_fract): Make register numbers that
12261 might be outside of source operand signed.
12262
593c0ddd
UB
122632013-01-24 Uros Bizjak <ubizjak@gmail.com>
12264
12265 * config/i386/constraints.md (Yf): New constraint.
12266 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12267 of f constraint to conditionaly disable x87 register preferences.
12268 (*movdf_internal): Ditto.
12269 (*movsf_internal): Ditto.
12270
e86c0101
SB
122712013-01-24 Steven Bosscher <steven@gcc.gnu.org>
12272
12273 PR inline-asm/55934
12274 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12275 that have operands with impossible constraints.
12276 Add a FIXME for a speed-up opportunity.
12277 * lra-constraints.c (process_alt_operands): Verify that a class
12278 selected from constraints on asms is valid for the operand mode.
12279 (curr_insn_transform): Remove incorrect comment.
12280
f6fee35f
DE
122812013-01-23 David Edelsohn <dje.gcc@gmail.com>
12282
12283 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12284 TOC operand is a valid symbol ref in the constant pool.
12285
122862013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 12287
aaf1e810 12288 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 12289
dc62d7d1
GJL
122902013-01-23 Georg-Johann Lay <avr@gjlay.de>
12291
12292 PR target/54222
12293 * config/avr/stdfix.h: New file.
12294 * t-avr (stdfix-gcc.h): New rule to build it.
12295 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12296
2660d12d
KS
122972013-01-23 Kostya Serebryany <kcc@google.com>
12298
77dc5297
UB
12299 * config/darwin.h: remove dependency on
12300 CoreFoundation (asan on Mac OS).
2660d12d 12301
a70418fc
JJ
123022013-01-23 Jakub Jelinek <jakub@redhat.com>
12303
12304 PR target/49069
12305 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12306 instead of cmpdi_operand for first comparison operand.
12307 Don't assert that comparison operands aren't both constants.
12308
47876a2a
JW
123092013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
12310
12311 * doc/install.texi (Downloading the Source): Update references to
12312 downloading separate components.
12313
123142013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
12315
12316 * doc/extend.texi (__int128): Improve grammar.
12317
47876a2a 123182013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
12319
12320 PR target/56028
12321 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12322 alternative to (o,r).
12323 (*movdi_internal_rex64): Remove (!o,n) alternative.
12324 (DImode immediate->memory splitter): Remove.
12325 (DImode immediate->memory peephole2): Remove.
12326 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12327 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12328 alternative to (!o,*r).
12329 (*movtf_internal_sse): New pattern.
12330 (*movxf_internal_rex64): New pattern.
12331 (*movxf_internal): Disable for TARGET_64BIT.
12332 (*movdf_internal_rex64): Remove (!o,F) alternative.
12333
3a984f10
JJ
123342013-01-22 Jakub Jelinek <jakub@redhat.com>
12335
502498d5
JJ
12336 PR middle-end/56074
12337 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12338 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12339 * tree-vect-loop-manip.c (find_loop_location): Also ignore
12340 stmt locations where LOCATION_LOCUS of the stmt location is
12341 UNKNOWN_LOCATION or BUILTINS_LOCATION.
12342
3a984f10
JJ
12343 PR target/55686
12344 * config/i386/i386.md (UNSPEC_STOS): New.
12345 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12346 *strsetqi_1): Add UNSPEC_STOS.
12347
fa817f7f
PC
123482013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
12349
12350 PR c++/56067
12351 * doc/invoke.texi: Remove left over -Wsynth example.
12352
8f498c1b
JJ
123532013-01-21 Jakub Jelinek <jakub@redhat.com>
12354
12355 PR tree-optimization/56051
12356 * fold-const.c (fold_binary_loc): Don't fold
12357 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12358 a narrowing conversion, or widening conversion from signed
12359 to unsigned.
12360
47876a2a 123612013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
12362
12363 PR rtl-optimization/56023
12364 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12365 dependent on debug instruction.
12366
5b9db1bc
MJ
123672013-01-21 Martin Jambor <mjambor@suse.cz>
12368
12369 PR middle-end/56022
12370 * function.c (allocate_struct_function): Call
12371 invoke_set_current_function_hook earlier.
12372
e8bb7d68
JJ
123732013-01-21 Jakub Jelinek <jakub@redhat.com>
12374
12375 * reload1.c (init_reload): Only initialize reload_obstack
12376 during the first call.
12377
616a4e32
MP
123782013-01-21 Marek Polacek <polacek@redhat.com>
12379
12380 * cfgloop.c (verify_loop_structure): Fix up grammar.
12381
4401981b
YHH
123822013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
12383
12384 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12385 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12386
8e87740b
RR
123872013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12388
12389 PR target/56058
12390 * config/arm/marvell-pj4.md: Update copyright year.
12391 Fix up use of alu to alu_reg and simple_alu_imm.
12392
47876a2a 123932013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
12394
12395 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12396
89d56d79
VM
123972013-01-20 Vladimir Makarov <vmakarov@redhat.com>
12398
12399 PR target/55433
12400 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 12401 insn for secondary memory move when memory mode should be different.
89d56d79 12402
fe603553
JDA
124032013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12404
12405 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12406 atomic_storedi_1): New patterns.
12407
01284895
VK
124082013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12409
12410 btver2 pipeline descriptions.
12411 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12412 descriptions.
12413 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 12414 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
12415 type attributes.
12416 * config/i386/btver2.md: New file describing btver2 pipelines.
12417
5630e3e1
JL
124182013-01-19 Andrew Pinski <apinski@cavium.com>
12419
12420 PR tree-optimization/52631
12421 * tree-ssa-sccvn (visit_use): Before looking up the original
12422 statement, try looking up the simplified expression.
12423
650ae806
AG
124242013-01-19 Anthony Green <green@moxielogic.com>
12425
12426 * config/moxie/moxie.c (moxie_expand_prologue): Set
12427 current_function_static_stack_size.
12428
e300ec2d
JJ
124292013-01-18 Jakub Jelinek <jakub@redhat.com>
12430
12431 PR tree-optimization/56029
12432 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12433 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12434
a3d7af04
SS
124352013-01-18 Sharad Singhai <singhai@google.com>
12436
12437 PR tree-optimization/55995
12438 * dumpfile.c (dump_loc): Print location only if available.
12439 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12440
66aa7879
VM
124412013-01-18 Vladimir Makarov <vmakarov@redhat.com>
12442
12443 PR target/55433
12444 * lra-constraints.c (curr_insn_transform): Reuse original insn for
12445 secondary memory move.
12446 (inherit_reload_reg): Use rclass instead of cl for
12447 check_secondary_memory_needed_p.
12448
3f0fee7b
JJ
124492013-01-18 Jakub Jelinek <jakub@redhat.com>
12450
12451 PR middle-end/56015
12452 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 12453 the case where writing real complex part of target modifies op1.
3f0fee7b 12454
70c67693
JG
124552013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
12456
12457 * config/aarch64/aarch64-simd.md
12458 (aarch64_vcond_internal<mode>): Handle unordered cases.
12459 * config/aarch64/iterators.md (v_cmp_result): New.
12460
df8de9b3
YHH
124612013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
12462 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12463
12464 * config/arm/marvell-pj4.md: New file.
12465 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12466 * config/arm/arm.md (generic_sched): Add marvell_pj4.
12467 (generic_vfp): Likewise.
12468 * config/arm/arm-cores.def: Add marvell-pj4.
12469 * config/arm/arm-tune.md: Regenerate.
12470 * config/arm/arm-tables.opt: Regenerate.
12471 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12472 * doc/invoke.texi: Document marvell-pj4.
12473
be30c356
TB
124742013-01-18 Tejas Belagod <tejas.belagod@arm.com>
12475
12476 * config/aarch64/arm_neon.h: Map scalar types to standard types.
12477
0bfbca58 124782013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
12479
12480 PR debug/54114
12481 PR debug/54402
12482 PR debug/49888
12483 * var-tracking.c (negative_power_of_two_p): New.
12484 (global_get_addr_cache, local_get_addr_cache): New.
12485 (get_addr_from_global_cache, get_addr_from_local_cache): New.
12486 (vt_canonicalize_addr): Rewrite using the above. Adjust the
12487 heading comment.
12488 (vt_stack_offset_p): Remove.
12489 (vt_canon_true_dep): Always canonicalize loc's address.
12490 (clobber_overlapping_mems): Make sure we have a MEM.
12491 (local_get_addr_clear_given_value): New.
12492 (val_reset): Clear local cached entries.
12493 (compute_bb_dataflow): Create and release the local cache.
12494 Disable duplicate MEMs clobbering.
12495 (emit_notes_in_bb): Clobber MEMs likewise.
12496 (vt_emit_notes): Create and release the local cache.
12497 (vt_initialize, vt_finalize): Create and release the global
12498 cache, respectively.
1f6bc337 12499 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 12500
0bfbca58 125012013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
12502
12503 PR libmudflap/53359
12504 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12505 not found in the symtab.
12506
0bfbca58 125072013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 12508
c350ba53 12509 PR debug/56006
3aa03517
AO
12510 PR rtl-optimization/55547
12511 PR rtl-optimization/53827
12512 PR debug/53671
12513 PR debug/49888
12514 * alias.c (offset_overlap_p): New, factored out of...
12515 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
12516 the conservative special case for symbolic constants. Don't
12517 adjust zero sizes on alignment.
12518
c664546f
JL
125192013-01-18 Bernd Schmidt <bernds@codesourcery.com>
12520
12521 PR rtl-optimization/52573
12522 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12523 REG_UNUSED for the same register.
12524
1bd3f750
MP
125252013-01-17 Richard Biener <rguenther@suse.de>
12526 Marek Polacek <polacek@redhat.com>
12527
12528 PR rtl-optimization/55833
12529 * loop-unswitch.c (unswitch_loops): Move loop verification...
12530 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
12531 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12532 Set it to true when we're removing a loop from hierarchy tree in
12533 an irreducible region.
12534 (fix_bb_placements): Adjust caller.
12535 (fix_loop_placements): Likewise.
12536
e52a8b71
GJL
125372013-01-17 Georg-Johann Lay <avr@gjlay.de>
12538
12539 * config/avr/builtins.def (DEF_BUILTIN): Factor out
12540 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12541 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12542 Remove ID. Adjust comments.
12543 * config/avr/avr-c.c (avr_builtin_name): Remove.
12544 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12545 * config/avr/avr.c (avr_tolower): New static function.
12546 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
12547 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12548 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12549 default expansion.
12550
8386a7ea
JH
125512013-01-17 Jan Hubicka <jh@suse.cz>
12552
610fb637 12553 PR tree-optimization/55273
8386a7ea
JH
12554 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12555
47876a2a 125562013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
12557
12558 PR target/55981
12559 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12560 store through atomic_store<mode>_1.
12561 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12562
8222c37e
MJ
125632013-01-17 Martin Jambor <mjambor@suse.cz>
12564
12565 PR tree-optimizations/55264
12566 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12567 for virtual methods.
12568 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12569 virtual methods before inlining is over.
12570 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12571 virtual functions.
12572 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12573 non-virtual.
12574
79f01c76
VM
125752013-01-16 Vladimir Makarov <vmakarov@redhat.com>
12576
12577 PR rtl-optimization/56005
12578 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12579 pending reads for prefetch.
12580
d0b6bb1b
IB
125812013-01-16 Ian Bolton <ian.bolton@arm.com>
12582
aaf1e810 12583 * config/aarch64/aarch64.md
d0b6bb1b
IB
12584 (*cstoresi_neg_uxtw): New pattern.
12585 (*cmovsi_insn_uxtw): New pattern.
12586 (*<optab>si3_uxtw): New pattern.
12587 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12588 (*<optab>si3_insn_uxtw): New pattern.
12589 (*bswapsi2_uxtw): New pattern.
12590
cb9cf03b
RB
125912013-01-16 Richard Biener <rguenther@suse.de>
12592
12593 * tree-inline.c (tree_function_versioning): Remove set but
12594 never used variable.
12595
2cfc56b9
RB
125962013-01-16 Richard Biener <rguenther@suse.de>
12597
12598 PR tree-optimization/55964
12599 * tree-flow.h (rename_variables_in_loop): Remove.
12600 (rename_variables_in_bb): Likewise.
12601 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12602 (copy_loop_before): Adjust and delete update-ssa status.
12603 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 12604 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
12605 (rename_variables_in_loop): Remove.
12606 (slpeel_update_phis_for_duplicate_loop): Likewise.
12607 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12608 use available cfg machinery instead of duplicating it.
12609 Update PHI nodes and perform poor-mans SSA update here.
12610 (slpeel_tree_peel_loop_to_edge): Adjust.
12611
c25a0c60
RB
126122013-01-16 Richard Biener <rguenther@suse.de>
12613
12614 PR tree-optimization/54767
12615 PR tree-optimization/53465
12616 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12617 (vrp_visit_phi_node): For PHI arguments coming via backedges
12618 drop all symbolical range information.
12619 (execute_vrp): Compute backedges.
12620
04b535af
RB
126212013-01-16 Richard Biener <rguenther@suse.de>
12622
12623 * doc/install.texi: Update CLooG and ISL requirements to
12624 0.18.0 and 0.11.1.
12625
8b0a1e0b
CB
126262013-01-16 Christian Bruel <christian.bruel@st.com>
12627
12628 PR target/55301
12629 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12630 (broken_move): Handle UNSPECV_SP_SWITCH_B.
12631 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12632
126332013-01-16 DJ Delorie <dj@redhat.com>
12634
12635 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12636 (UNSPECV_SP_SWITCH_E): New.
12637 (sp_switch_1): Change to an unspec.
12638 (sp_switch_2): Change to an unspec. Don't use post-inc when we
12639 replace $r15.
12640
126412013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
12642
12643 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12644 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12645 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12646 (expand_mem_thread_fence): Ditto.
12647 (expand_mem_signal_fence): Ditto.
12648 (expand_atomic_load): Ditto.
12649 (expand_atomic_store): Ditto.
12650
0bfbca58 126512013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
12652
12653 PR rtl-optimization/55547
12654 PR rtl-optimization/53827
12655 PR debug/53671
12656 PR debug/49888
12657 * alias.c (memrefs_conflict_p): Set sizes to negative after
12658 AND adjustments.
12659
305e3ac1
JJ
126602013-01-15 Jakub Jelinek <jakub@redhat.com>
12661
12662 PR target/55940
12663 * function.c (thread_prologue_and_epilogue_insns): Always
12664 add crtl->drap_reg to set_up_by_prologue.set, even if
12665 stack_realign_drap is false.
12666
f78ac4f2
JBG
126672013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12668
12669 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12670 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12671 *call): Fix indention.
12672
a78a8cc4
TV
126732013-01-15 Tom de Vries <tom@codesourcery.com>
12674
12675 PR target/55876
12676 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12677 Update comment.
12678
0e80383f
VM
126792013-01-15 Vladimir Makarov <vmakarov@redhat.com>
12680
305e3ac1 12681 PR rtl-optimization/55153
0e80383f
VM
12682 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12683
207b5956
MJ
126842013-01-15 Martin Jambor <mjambor@suse.cz>
12685
12686 PR tree-optimization/55920
12687 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12688 accesses as grp_to_be_debug_replaced.
12689
a7818b54
JJ
126902013-01-15 Jakub Jelinek <jakub@redhat.com>
12691
12692 PR tree-optimization/55920
12693 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12694 there is non-useless type conversion needed from debug rhs to lhs,
12695 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12696
b0fe107e
JM
126972013-01-15 Joseph Myers <joseph@codesourcery.com>
12698 Mikael Pettersson <mikpe@it.uu.se>
12699
12700 PR target/43961
12701 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12702 Thumb.
12703 (ASM_OUTPUT_CASE_LABEL): Remove.
12704 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12705 * final.c (shorten_branches): Update alignment of labels before
12706 jump tables if CASE_VECTOR_SHORTEN_MODE.
12707
34ab62ee
RB
127082013-01-15 Richard Biener <rguenther@suse.de>
12709
12710 PR bootstrap/55961
12711 * system.h: Do not include gmp.h for building host tools.
12712
783a3a05
RB
127132013-01-15 Richard Biener <rguenther@suse.de>
12714
12715 PR middle-end/55882
12716 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12717 account for bitpos when computing alignment.
12718
3a579e09
VY
127192013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
12720
12721 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12722 (ix86_target_macros_internal): Likewise.
12723
12724 * config/i386/i386.c (m_CORE2I7): Removed.
12725 (m_CORE_HASWELL): New macro.
12726 (m_CORE_ALL): Likewise.
12727 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12728 (initial_ix86_arch_features): Likewise.
12729 (processor_target_table): Initializations for Core avx2.
12730 (cpu_names): New names "core-avx2".
12731 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12732 PROCESSOR_CORE_HASWELL.
12733 (ix86_issue_rate): New case.
12734 (ia32_multipass_dfa_lookahead): Likewise.
12735 (ix86_sched_init_global): Likewise.
12736
12737 * config/i386/i386.h (TARGET_HASWELL): New macro.
12738 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12739 (processor_type): New PROCESSOR_HASWELL.
12740
955f5a07
JJ
127412013-01-15 Jakub Jelinek <jakub@redhat.com>
12742
ff784829
JJ
12743 PR tree-optimization/55955
12744 * tree-vect-loop.c (vectorizable_reduction): Give up early on
12745 *SHIFT_EXPR and *ROTATE_EXPR codes.
12746
955f5a07
JJ
12747 PR tree-optimization/48766
12748 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12749 -ftrapv disable -fwrapv.
12750
aeb8b4e9
GJL
127512013-01-14 Georg-Johann Lay <avr@gjlay.de>
12752
12753 PR target/55974
12754 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12755 etc. to 1 and not to __flash.
12756 Use LL suffix for __INT24_MAX__ with -mint8.
12757 Use ULL suffix for __UINT24_MAX__ with -mint8.
12758
1c494c6a
GJL
127592013-01-14 Georg-Johann Lay <avr@gjlay.de>
12760
12761 * config/avr/avr-arch.h
12762 (struct base_arch_s): Use typedef avr_arch_t instead.
12763 (struct arch_info_s): Use typedef avr_arch_info_t instead.
12764 (struct mcu_type_s): Use typedef avr_mcu_t instead.
12765 * config/avr/avr.c: Same.
12766 * config/avr/avr-devices.c: Same.
12767 * config/avr/driver-avr.c: Same.
12768 * config/avr/gen-avr-mmcu-texi.c: Same.
12769 * config/avr/avr-mcus.def: Adjust comment.
12770
a50344cb
TB
127712013-01-14 Tejas Belagod <tejas.belagod@arm.com>
12772
88e784e6
UB
12773 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12774 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 12775
47876a2a 127762013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
12777 Andi Kleen <ak@linux.intel.com>
12778
12779 PR target/55948
12780 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12781 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12782 memmodel flag.
12783
00892272
GJL
127842013-01-14 Georg-Johann Lay <avr@gjlay.de>
12785
12786 * config/avr/avr-stdint.h: Remove trailing blanks.
12787 * config/avr/avr-log.h: Same.
12788 * config/avr/avr-arch.h: Same.
12789 * config/avr/avr-devices.c: Same.
12790 * config/avr/avr-dimode.md: Same.
12791 * config/avr/predicates.md: Same.
12792 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 12793
00892272
GJL
12794 * config/avr/avr-protos.h: Same. And:
12795 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12796 (init_cumulative_args): Rename to avr_init_cumulative_args.
12797 (expand_prologue): Rename to avr_expand_prologue.
12798 (expand_epilogue): Rename to avr_expand_epilogue.
12799 (adjust_insn_length): Rename to avr_adjust_insn_length.
12800 (notice_update_cc): Rename to avr_notice_update_cc.
12801 (final_prescan_insn): Rename to avr_final_prescan_insn.
12802 * config/avr/avr.c: Same.
12803 * config/avr/avr.h: Same.
12804 * config/avr/avr.md: Remove trailing blanks.
12805 (prologue): Use avr_expand_prologue.
12806 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12807
7bb01996
RB
128082013-01-14 Richard Biener <rguenther@suse.de>
12809
12810 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12811 verify_location, collect_subblocks): New functions.
12812 (verify_gimple_in_cfg): Verify that locations only reference
12813 BLOCKs in the functions BLOCK tree.
12814
2724573f
RB
128152013-01-14 Richard Biener <rguenther@suse.de>
12816
12817 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12818 PHI argument.
12819 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12820 unshare reference.
12821 (insert_out_of_ssa_copy_on_edge): Likewise.
12822 (rewrite_close_phi_out_of_ssa): Likewise.
12823 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12824 debug expressions.
12825 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12826 propagated constants.
12827 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12828 can not be shared.
12829
9a0bbab6
GJL
128302013-01-14 Georg-Johann Lay <avr@gjlay.de>
12831
12832 * config/avr/avr-modes.def: Add GPL copyright notice.
12833
45805f17
UB
128342013-01-13 Uros Bizjak <ubizjak@gmail.com>
12835
12836 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12837 MEMMODEL_MASK to determine memory model.
12838 (atomic_store<mode>): Ditto from operands[2].
12839 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12840
9d60be38
JJ
128412013-01-13 Jakub Jelinek <jakub@redhat.com>
12842
12843 PR fortran/55935
45805f17 12844 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
12845 (fold_gimple_assign): Don't call unshare_expr here.
12846 (fold_ctor_reference): Call unshare_expr.
12847
e7f49d92
TG
128482013-01-13 Terry Guo <terry.guo@arm.com>
12849
aaf1e810
EB
12850 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12851 * doc/fragments.texi: Document MULTILIB_REUSE.
12852 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 12853 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 12854 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
12855 (tmpmultilib4): Ditto.
12856 (multilib_reuse): New multilib argument.
12857
fbd03a27
RS
128582013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
12859
12860 * Makefile.in: Update copyright.
12861
b3681f13
TV
128622013-01-12 Tom de Vries <tom@codesourcery.com>
12863
12864 PR middle-end/55890
12865 * calls.c (expand_call): Check if arg_nr is valid.
12866
3f287e4b
MM
128672013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12868
12869 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12870 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
12871 documentation. Add missing '__' in front of
12872 __builtin_ia32_packssdw256.
3f287e4b 12873
1abcd5eb
AK
128742013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12875
12876 PR target/55719
12877 * config/s390/s390.c (s390_preferred_reload_class): Do not return
12878 NO_REGS for larl operands.
12879 (s390_reload_larl_operand): Use s390_load_address instead of
12880 emit_move_insn.
12881
980d0812
RB
128822013-01-11 Richard Biener <rguenther@suse.de>
12883
12884 * tree-cfg.c (verify_node_sharing_1): Split out from ...
12885 (verify_node_sharing): ... here.
12886 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12887
7cb9fd07
EB
128882013-01-11 Eric Botcazou <ebotcazou@adacore.com>
12889
12890 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12891 Substitute TREECHECKING.
12892 * configure: Regenerate.
12893 * Makefile.in (TREECHECKING): New.
12894
47876a2a 128952013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
12896
12897 PR tree-optimization/44061
12898 * tree-vrp.c (extract_range_basic): Compute zero as
12899 value-range for __builtin_constant_p of function parameters.
12900
d1e082c2
RS
129012013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
12902
45805f17 12903 Update copyright years.
d1e082c2 12904
f85021b0
VM
129052013-01-10 Vladimir Makarov <vmakarov@redhat.com>
12906
9d60be38 12907 PR rtl-optimization/55672
0160442c
VM
12908 * lra-eliminations.c (mark_not_eliminable): Permit addition with
12909 const to be eliminable.
f85021b0 12910
7a8b1ec4
DE
129112013-01-10 David Edelsohn <dje.gcc@gmail.com>
12912
12913 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12914 * configure: Regenerate.
12915
ad2e5b71
RB
129162013-01-10 Richard Biener <rguenther@suse.de>
12917
ddf9322d 12918 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 12919
ffc5b2bb
RB
129202013-01-10 Richard Biener <rguenther@suse.de>
12921
12922 PR bootstrap/55792
12923 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12924 locations for virtual PHI arguments.
12925 (rewrite_update_phi_arguments): Likewise.
12926
e1f674e4
JS
129272013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
12928
12929 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12930 on to assembler.
12931
a57fc743
JJ
129322013-01-10 Jakub Jelinek <jakub@redhat.com>
12933
12934 PR tree-optimization/55921
12935 * tree-complex.c (expand_complex_asm): New function.
12936 (expand_complex_operations_1): Call it for GIMPLE_ASM.
12937
0ff4390d
AK
129382013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12939
12940 PR target/55718
12941 * config/s390/s390.c (s390_symref_operand_p)
12942 (s390_loadrelative_operand_p): Merge the two functions.
12943 (s390_check_qrst_address, print_operand_address): Add parameters
12944 to s390_loadrelative_operand_p invokation.
12945 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12946 (s390_reload_larl_operand, s390_secondary_reload): Use
12947 s390_loadrelative_operand_p instead of s390_symref_operand_p.
12948 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12949
6f557e0e
MS
129502013-01-09 Mike Stump <mikestump@comcast.net>
12951
12952 * dse.c (record_store): Remove unnecessary assert.
12953
7770c9e9
JH
129542013-01-09 Jan Hubicka <jh@suse.cz>
12955
12956 PR tree-optimization/55569
12957 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12958 * cfgloop.h (scale_loop_profile): Likewise.
12959
a19b1432
JH
129602013-01-09 Jan Hubicka <jh@suse.cz>
12961
12962 PR lto/45375
ddf9322d
UB
12963 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12964 functions.
a19b1432
JH
12965 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12966
9a002da8
RS
129672013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
12968
12969 PR middle-end/55114
12970 * expr.h (maybe_emit_group_store): Declare.
12971 * expr.c (maybe_emit_group_store): New function.
12972 * builtins.c (expand_builtin_int_roundingfn): Call it.
12973 (expand_builtin_int_roundingfn_2): Likewise.
12974
511dcace
VM
129752013-01-09 Vladimir Makarov <vmakarov@redhat.com>
12976
e1f2b729 12977 PR rtl-optimization/55829
511dcace
VM
12978 * lra-constraints.c (match_reload): Add code for absent output.
12979 (curr_insn_transform): Add code for reloads of matched inputs
12980 without output.
12981
7b0fe4f4
UB
129822013-01-09 Uros Bizjak <ubizjak@gmail.com>
12983
12984 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12985 attribute of movddup insn to DF.
12986 (*vec_interleave_lowv2df): Ditto.
12987 (vec_dupv2df): Ditto.
12988
870ca331
JH
129892013-01-09 Jan Hubicka <jh@suse.cz>
12990
12991 PR tree-optimiation/55875
12992 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
12993 EVERY_ITERATION parameter.
7b0fe4f4 12994 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
12995 (idx_infer_loop_bounds): Similarly here.
12996 (n_of_executions_at_most): Simplify
12997 to only test for cases where statement is dominated by the
7b0fe4f4 12998 particular bound; handle correctly the "postdominance" test.
870ca331
JH
12999 (scev_probably_wraps_p): Use max loop iterations info
13000 as a global bound first.
13001
6f575fe4 130022013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
13003 Nick Clifton <nickc@redhat.com>
13004
13005 * config/v850/v850.md (cbranchsf4): New pattern.
13006 (cstoresf4): New pattern.
13007 (cbranchdf4): New pattern.
13008 (cstoredf4): New pattern.
13009 (movsicc): Disallow floating point comparisons.
13010 (cmpsf_le_insn): Fix order of operators.
13011 (cmpsf_lt_insn): Likewise.
13012 (cmpsf_eq_insn): Likewise.
13013 (cmpdf_le_insn): Likewise.
13014 (cmpdf_lt_insn): Likewise.
13015 (cmpdf_eq_insn): Likewise.
13016 (cmpsf_ge_insn): Use LE comparison.
13017 (cmpdf_ge_insn): Likewise.
13018 (cmpsf_gt_insn): Use LT comparison.
13019 (cmpdf_gt_insn): Likewise.
13020 (cmpsf_ne_insn): Delete pattern.
13021 (cmpdf_ne_insn): Delete pattern.
13022 * config/v850/v850.c (v850_gen_float_compare): Use
13023 gen_cmpdf_eq_insn for NE comparison.
13024 (v850_float_z_comparison_operator)
13025 (v850_float_nz_comparison_operator): Move from here ...
13026 * config/v850/predicates.md: ... to here. Move GT and GE
13027 comparisons into v850_float_z_comparison_operator.
13028 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13029 Delete prototype.
13030 (v850_float_nz_comparison_operator): Likewise.
13031
f0d54148
JDA
130322013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13033
13034 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13035 with calls to gen_insvsi/gen_insvdi.
13036
8f01beca
VK
130372013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13038
13039 * config/i386/i386.c (initial_ix86_tune_features): Set up
13040 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13041
2aa579ad
JJ
130422013-01-09 Steven Bosscher <steven@gcc.gnu.org>
13043 Jakub Jelinek <jakub@redhat.com>
13044
13045 PR tree-optimization/48189
13046 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13047 If nitercst is 0, don't predict the exit edge.
13048
6edc3e32 130492013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
13050
13051 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13052 in asm_fprintf with reg_names.
13053 (aarch64_print_operand_address): Likewise.
13054 (aarch64_return_addr): Likewise.
13055 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13056
f6f94d94
JDA
130572013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13058
13059 * config/pa/pa.h (VAL_U6_BITS_P): Define.
13060 (INT_U6_BITS): Likewise.
13061 * config/pa/predicates.md (uint6_operand): New predicate.
13062 (shift5_operand, shift6_operand): Likewise.
13063 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13064 arith32_operand.
13065 (lshrdi3): Use shift6_operand.
13066 (shrpsi4, shrpdi4): New insn patterns.
13067 (extzv): Delete expander.
13068 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
13069 predicates in unamed zero extract patterns. Tighten common constraint.
13070 (extv): Delete expander.
13071 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
13072 predicates in unamed sign extract patterns. Tighten common constraint.
13073 (insv): Delete expander.
13074 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
13075 predicates in unamed insert patterns. Tighten common constraint.
13076 Change uint32_operand predicate to uint6_operand predicate in unamed
13077 DImode pattern to insert constant values of type 1...1xxxx.
13078
36b72910
JH
130792013-01-04 Jan Hubicka <jh@suse.cz>
13080
13081 PR tree-optimization/55823
7b0fe4f4
UB
13082 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13083 issue.
36b72910 13084
47876a2a 130852013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
13086 Uros Bizjak <ubizjak@gmail.com>
13087
13088 PR rtl-optimization/55845
13089 * df-problems.c (can_move_insns_across): Stop scanning at
13090 volatile_insn_p source instruction or give up if
13091 across_from .. across_to range contains any volatile_insn_p
13092 instructions.
13093
4369c11e
TB
130942013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13095
7b0fe4f4
UB
13096 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13097 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13098 Declare.
4369c11e 13099 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 13100 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 13101
aeb7e7c1
JJ
131022013-01-08 Jakub Jelinek <jakub@redhat.com>
13103
13104 PR fortran/55341
13105 * asan.c (asan_clear_shadow): New function.
13106 (asan_emit_stack_protection): Use it.
13107
a02ad1aa
TB
131082013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13109
13110 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13111 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13112 with tab instead of space.
13113
f90d87f5
NC
131142013-01-08 Nick Clifton <nickc@redhat.com>
13115
13116 * config/rl78/rl78.c (rl78_expand_prologue): Always select
13117 register bank 0 at the start of an interrupt handler.
83ffd964
NC
13118 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13119 MDBH registers.
f90d87f5 13120
385eb93d
JG
131212013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13122
13123 * config/aarch64/aarch64-simd.md
13124 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13125 (aarch64_simd_bsl): Likewise.
13126 (aarch64_vcond_internal<mode>): Likewise.
13127 (vcond<mode><mode>): Likewise.
13128 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13129 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13130
4dcd1054
JG
131312013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13132
13133 * config/aarch64/aarch64-builtins.c
13134 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13135
4267a4a6
MJ
131362013-01-08 Martin Jambor <mjambor@suse.cz>
13137
13138 PR debug/55579
13139 * tree-sra.c (analyze_access_subtree): Return true also after
13140 potentially creating a debug-only replacement.
13141
5f4e6de3
JJ
131422013-01-08 Jakub Jelinek <jakub@redhat.com>
13143
3138f224
JJ
13144 PR middle-end/55890
13145 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13146
5f4e6de3
JJ
13147 PR tree-optimization/54120
13148 * tree-vrp.c (range_fits_type_p): Don't allow
13149 src_precision < precision from signed vr to unsigned_p
13150 if vr->min or vr->max is negative.
13151 (simplify_float_conversion_using_ranges): Test can_float_p
13152 against CODE_FOR_nothing.
13153
f3ef18ff
JJ
131542013-01-08 Jakub Jelinek <jakub@redhat.com>
13155 Richard Biener <rguenther@suse.de>
13156
13157 PR middle-end/55851
13158 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13159 types instead of just INTEGER_TYPE types.
13160
25c210f9
MK
131612013-01-07 Mark Kettenis <kettenis@openbsd.org>
13162
13163 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13164 TF_SIZE): Define.
f90d87f5 13165
81826a7b
SE
131662013-01-07 Steve Ellcey <sellcey@mips.com>
13167
13168 PR target/42661
13169 * config/mips/mips.opt: Change mad to mmad to match documentation.
13170
35678514
GJL
131712013-01-07 Georg-Johann Lay <avr@gjlay.de>
13172
13173 PR target/55897
13174 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13175 .progmemx.data now.
13176
e5669488
GJL
131772013-01-07 Georg-Johann Lay <avr@gjlay.de>
13178
13179 PR target/55897
13180 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13181 (avr_addrspace_t): Add .section_name field.
13182 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13183 array size.
13184 (avr_addrspace): Same. Initialize .section_name. Remove last
13185 NULL entry. Put __memx into .progmemx.data.
13186 (progmem_section_prefix): Remove.
13187 (avr_asm_init_sections): No need to initialize progmem_section.
13188 (avr_asm_named_section): Use avr_addrspace[].section_name to get
13189 section name prefix.
13190 (avr_asm_select_section): Ditto. And use get_unnamed_section to
13191 retrieve the progmem section.
13192 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13193 boundary to run over avr_addrspace[].
13194 (avr_register_target_pragmas): Ditto.
13195
656e6f37
JJ
131962013-01-06 Jakub Jelinek <jakub@redhat.com>
13197
13198 * varasm.c (output_constant_def_contents): For asan_protect_global
13199 protected strings, adjust DECL_ALIGN if needed, before testing for
13200 anchored symbols.
13201 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13202 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13203 normal decls.
13204 (output_object_block): For asan protected decls, emit asan padding
13205 after their contents.
13206 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13207 (asan_finish_file): Test it here instead.
13208
6edc3e32
UB
132092013-01-07 Nick Clifton <nickc@redhat.com>
13210 Matthias Klose <doko@debian.org>
13211 Doug Kwan <dougkwan@google.com>
13212 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
13213
13214 PR driver/55470
13215 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13216
13217 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13218
13219 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13220
7b0fe4f4 13221 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
13222
13223 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13224
2a095093
GJL
132252013-01-07 Georg-Johann Lay <avr@gjlay.de>
13226
f3b503f4 13227 PR target/54461
2a095093
GJL
13228 * doc/install.texi (Cross-Compiler-Specific Options): Document
13229 --with-avrlibc.
13230
383f9b34
TB
132312013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13232
13233 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13234 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13235 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13236 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13237 vqmovun_high_s64): Fix source operand number and update copyright.
13238
3626621a
RB
132392013-01-07 Richard Biener <rguenther@suse.de>
13240
13241 PR middle-end/55890
13242 * gimple.h (gimple_call_builtin_p): New overload.
13243 * gimple.c (validate_call): New function.
13244 (gimple_call_builtin_p): Likewise.
13245 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13246 Use gimple_call_builtin_p.
13247 (find_func_clobbers): Likewise.
13248 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13249 (strlen_optimize_stmt): Likewise.
13250
8b2ea410
JG
132512013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13252
13253 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13254 (vld1q_dup_*): Likewise.
13255 (vld1_*): Likewise.
13256 (vld1q_*): Likewise.
13257 (vld1_lane_*): Likewise.
13258 (vld1q_lane_*): Likewise.
13259
9713d329
RB
132602013-01-07 Richard Biener <rguenther@suse.de>
13261
13262 * lto-streamer.h (LTO_minor_version): Bump to 2.
13263
3520f7cc
JG
132642013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13265
13266 * config/aarch64/aarch64-protos.h
13267 (aarch64_const_double_zero_rtx_p): Rename to...
13268 (aarch64_float_const_zero_rtx_p): ...this.
13269 (aarch64_float_const_representable_p): New.
13270 (aarch64_output_simd_mov_immediate): Likewise.
13271 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13272 move immediate case.
13273 * config/aarch64/aarch64.c
13274 (aarch64_const_double_zero_rtx_p): Rename to...
13275 (aarch64_float_const_zero_rtx_p): ...this.
13276 (aarch64_print_operand): Allow printing of new constants.
13277 (aarch64_valid_floating_const): New.
13278 (aarch64_legitimate_constant_p): Check for valid floating-point
13279 constants.
13280 (aarch64_simd_valid_immediate): Likewise.
13281 (aarch64_vect_float_const_representable_p): New.
13282 (aarch64_float_const_representable_p): Likewise.
13283 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13284 (aarch64_output_simd_mov_immediate): New.
13285 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13286 (*movdf_aarch64): Likewise.
13287 * config/aarch64/constraints.md (Ufc): New.
13288 (Y): call aarch64_float_const_zero_rtx.
13289 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13290
e167c04d
RB
132912013-01-07 Richard Biener <rguenther@suse.de>
13292
13293 PR tree-optimization/55888
13294 PR tree-optimization/55862
13295 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13296 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13297 not if it is contained therein.
13298
0139aaab
GJL
132992013-01-07 Georg-Johann Lay <avr@gjlay.de>
13300
13301 * config/avr/t-avr: Typo.
13302
4a176b23
GJL
133032013-01-07 Georg-Johann Lay <avr@gjlay.de>
13304
13305 PR55243
13306 * config/avr/t-avr: Don't automatically rebuild
13307 $(srcdir)/config/avr/t-multilib
13308 $(srcdir)/config/avr/avr-tables.opt
13309 $(srcdir)/doc/avr-mmcu.texi
13310 (avr-mcus): New phony target to build them on request.
13311 (s-avr-mlib, s-avr-mmcu-texi): Remove.
13312 * avr/avr-mcus.def: Adjust comments.
13313
c7afdc98
UB
133142013-01-07 Uros Bizjak <ubizjak@gmail.com>
13315
13316 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13317
1ab05c31
RS
133182013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13319
13320 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13321
488e3acc
RS
133222013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13323
13324 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13325
a89599d2
DE
133262013-01-05 David Edelsohn <dje.gcc@gmail.com>
13327
13328 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13329 to generate profiling.
13330 * config/rs6000/aix64.h (LIB_SPEC): Same.
13331
70f09188
AP
133322013-01-04 Andrew Pinski <apinski@cavium.com>
13333
13334 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13335 New function.
13336 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13337
918d445f
UB
133382013-01-04 Uros Bizjak <ubizjak@gmail.com>
13339
13340 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13341 unconditionally.
13342 (ix86_expand_move): Ditto.
13343 (ix86_zero_extend_to_Pmode): Ditto.
13344 (ix86_expand_call): Ditto.
13345 (ix86_expand_special_args_builtin): Ditto.
13346 (ix86_expand_builtin): Ditto.
13347
361618ec
RB
133482013-01-04 Richard Biener <rguenther@suse.de>
13349
13350 PR tree-optimization/55862
13351 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13352 translating them through PHI nodes.
13353
87eab554
MJ
133542013-01-04 Martin Jambor <mjambor@suse.cz>
13355
13356 PR tree-optimization/55755
13357 * tree-sra.c (sra_modify_assign): Do not check that an access has no
13358 children when trying to avoid producing a VIEW_CONVERT_EXPR.
13359
33879b9f
MP
133602013-01-04 Marek Polacek <polacek@redhat.com>
13361
13362 PR middle-end/55859
13363 * opts.c (default_options_optimization): Clarify error message.
13364
3068819a
RB
133652013-01-04 Richard Biener <rguenther@suse.de>
13366
13367 PR middle-end/55863
13368 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13369 reassociation.
13370
0e4ae794
JDA
133712013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13372
13373 PR target/53789
13374 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
13375 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13376 references.
0e4ae794 13377
65c88cef
RH
133782013-01-03 Richard Henderson <rth@redhat.com>
13379
13380 * config/i386/i386.c (ix86_expand_move): Always assign to op1
13381 after eliminating TLS symbols.
13382
8ac16127
MG
133832013-01-03 Marc Glisse <marc.glisse@inria.fr>
13384
13385 PR bootstrap/50167
13386 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13387 * graphite-poly.c (debug_gmp_value): Likewise.
13388
bb664f09
UB
133892013-01-03 Uros Bizjak <ubizjak@gmail.com>
13390
13391 PR target/55712
13392 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13393 selected code model, define __code_mode_small__, __code_model_medium__,
13394 __code_model_large__, __code_model_32__ or __code_model_kernel__.
13395 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13396 xchg temporary register with %k. Declare temporary register as
13397 early clobbered.
13398 [__x86_64__]: For medium and large code models, preserve %rbx register.
13399
bcf1ef00
RB
134002013-01-03 Richard Biener <rguenther@suse.de>
13401
0506634a 13402 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
13403 (dump_subscript): Adjust.
13404 (finalize_ddr_dependent): Do not dump redundant info.
13405 (analyze_siv_subscript): Adjust.
13406 (subscript_dependence_tester): Likewise.
13407 (compute_affine_dependence): Likewise.
13408
59fd17e3
RB
134092013-01-03 Richard Biener <rguenther@suse.de>
13410
13411 Revert
13412 2013-01-03 Richard Biener <rguenther@suse.de>
13413
13414 PR tree-optimization/55857
13415 * tree-vect-stmts.c (vectorizable_load): Do not setup
13416 re-alignment for invariant loads.
13417
13418 2013-01-02 Richard Biener <rguenther@suse.de>
13419
13420 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 13421 invariant load do not generate a vector load from the scalar location.
59fd17e3 13422
595c2679
RB
134232013-01-03 Richard Biener <rguenther@suse.de>
13424
13425 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13426 for not vectorizing.
13427 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13428 not build INDIRECT_REFs, call get_name once only.
13429 (vect_create_data_ref_ptr): Likewise. Dump base object kind
13430 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13431
90bb7d7a
RB
134322013-01-03 Richard Biener <rguenther@suse.de>
13433
13434 PR tree-optimization/55857
13435 * tree-vect-stmts.c (vectorizable_load): Do not setup
13436 re-alignment for invariant loads.
13437
f09b77ca
RB
134382013-01-03 Richard Biener <rguenther@suse.de>
13439
13440 PR lto/55848
13441 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13442 prefer a built-in decl.
13443
3461a16e
JJ
134442013-01-03 Jakub Jelinek <jakub@redhat.com>
13445
df8e2b4f
JJ
13446 * gcc.c (process_command): Update copyright notice dates.
13447 * gcov.c (print_version): Likewise.
13448 * gcov-dump.c (print_version): Likewise.
13449
3461a16e
JJ
13450 PR rtl-optimization/55838
13451 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13452 iv0.step, iv1.step and step.
13453
8b5546d6
JJ
134542013-01-03 Jakub Jelinek <jakub@redhat.com>
13455 Marc Glisse <marc.glisse@inria.fr>
13456
13457 PR tree-optimization/55832
13458 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13459 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13460 integer_{one,zero}_node.
13461
8ab1d2e9
JJ
134622013-01-03 Jakub Jelinek <jakub@redhat.com>
13463
13464 PR debug/54402
13465 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13466 * var-tracking.c (reverse_op): Don't add reverse ops to
13467 VALUEs that have already
0506634a 13468 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 13469
5b9ad1d4
GP
134702013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
13471
13472 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13473
e25a6711
TJ
134742013-01-02 Teresa Johnson <tejohnson@google.com>
13475
13476 * dumpfile.c (dump_loc): Print filename with location.
13477 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13478 new location_t parameter to emit complete unroll message with
13479 new dump framework.
13480 (canonicalize_loop_induction_variables): Compute loops location
13481 and pass to try_unroll_loop_completely.
13482 * loop-unroll.c (report_unroll_peel): New function.
13483 (peel_loops_completely): Use new dump format with location
13484 for main dumpfile message, and invoke report_unroll_peel on success.
13485 (decide_unrolling_and_peeling): Ditto.
13486 (decide_peel_once_rolling): Remove old dumpfile message subsumed
13487 by report_unroll_peel.
13488 (decide_peel_completely): Ditto.
13489 (decide_unroll_constant_iterations): Ditto.
13490 (decide_unroll_runtime_iterations): Ditto.
13491 (decide_peel_simple): Ditto.
13492 (decide_unroll_stupid): Ditto.
13493 * cfgloop.c (get_loop_location): New function.
13494 * cfgloop.h (get_loop_location): Declare.
13495
77878621
ST
134962013-01-02 Sriraman Tallam <tmsriram@google.com>
13497
13498 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13499 NULL.
13500
9e65d03e
JDA
135012013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13502
13503 PR middle-end/55198
13504 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13505 BLKmode objects when EXPAND_MEMORY is specified.
13506
6a7da30f
ST
135072013-01-02 Sriraman Tallam <tmsriram@google.com>
13508
13509 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13510 in loop predicate.
13511 (fold_builtin_cpu): Do not share cpu model decls across statements.
13512
e78167f2
JM
135132013-01-02 Jason Merrill <jason@redhat.com>
13514
13515 PR c++/55804
13516 * tree.c (build_array_type_1): Revert earlier change.
13517
8c075fb4
YZ
135182013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
13519
13520 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13521 "cortex-a57".
13522 * config/aarch64/aarch64-tune.md: Re-generate.
13523
0682ed3e
RB
135242013-01-02 Richard Biener <rguenther@suse.de>
13525
13526 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 13527 invariant load do not generate a vector load from the scalar location.
0682ed3e 13528
b8f6a302
RB
135292013-01-02 Richard Biener <rguenther@suse.de>
13530
13531 PR bootstrap/55784
13532 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13533 * configure: Regenerate.
13534
04b80dbb
RS
135352013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13536
13537 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13538 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13539 (expand_builtin_int_roundingfn_2): Keep the original target around
13540 for the fallback case.
13541
635b0b0c
RS
135422013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13543
13544 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13545 to be clear for sign changes.
13546
42d57399
JH
135472013-01-01 Jan Hubicka <jh@suse.cz>
13548
13549 * ipa-inline-analysis.c: Fix formatting.
13550
5bb6669d
JJ
135512013-01-01 Jakub Jelinek <jakub@redhat.com>
13552
13553 PR tree-optimization/55831
13554 * tree-vect-loop.c (get_initial_def_for_induction): Use
13555 gsi_after_labels instead of gsi_start_bb.
ad41bd84 13556\f
86a2db33 13557Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
13558
13559Copying and distribution of this file, with or without modification,
13560are permitted in any medium without royalty provided the copyright
13561notice and this notice are preserved.