]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
aarch64.c (aarch64_force_temporary): Add an extra parameter 'mode' of type 'enum...
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
e18b4a81
YZ
12013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
2
3 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
4 parameter 'mode' of type 'enum machine_mode mode'; change to pass
5 'mode' to force_reg.
6 (aarch64_add_offset): Update calls to aarch64_force_temporary.
7 (aarch64_expand_mov_immediate): Likewise.
8
9c023bf0
YZ
92013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
10
11 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
12 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
13
5a3fe9b6
AK
142013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15
16 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
17 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
18 (struct machine_function): Add tbegin_p.
19 (s390_canonicalize_comparison): Fold CC mode compares to
20 conditional jump if possible.
21 (s390_emit_jump): Return the emitted jump.
22 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
23 Handle CCRAWmode compares.
24 (s390_option_override): Default to -mhtm if available.
25 (s390_reg_clobbered_rtx): Handle floating point regs as well.
26 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
27 FPRs instead of df_regs_ever_live_p.
28 (s390_optimize_nonescaping_tx): New function.
29 (s390_init_frame_layout): Extend clobbered_regs array to cover
30 FPRs as well.
31 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
32 (s390_expand_tbegin): New function.
33 (enum s390_builtin): New enum definition.
34 (code_for_builtin): New array definition.
35 (s390_init_builtins): New function.
36 (s390_expand_builtin): New function.
37 (TARGET_INIT_BUILTINS): Define.
38 (TARGET_EXPAND_BUILTIN): Define.
39 * common/config/s390/s390-common.c (processor_flags_table): Add
40 PF_TX.
41 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
42 (s390_alc_comparison): Likewise.
43 * config/s390/s390-modes.def: Add CCRAWmode.
44 * config/s390/s390.h (processor_flags): Add PF_TX.
45 (TARGET_CPU_HTM): Define macro.
46 (TARGET_HTM): Define macro.
47 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
48 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
49 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
50 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
51 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum
52 values.
53 (TBEGIN_MASK, TBEGINC_MASK): New constants.
54 ("*cc_to_int"): Move up.
55 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
56 constants other than 0.
57 ("*ccraw_to_int"): New insn and splitter definition.
58 ("tbegin", "tbegin_nofloat", "tbegin_retry")
59 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
60 ("tx_assist"): New expander.
61 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
62 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
63 * config/s390/s390.opt: Add -mhtm option.
64 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
65 * config/s390/htmxlintrin.h: New file.
66 * config/s390/htmintrin.h: New file.
67 * config/s390/s390intrin.h: New file.
68 * doc/extend.texi: Document htm builtins.
69 * config.gcc: Add the new header files to extra_headers.
70
9e216629
TS
712013-06-26 Thomas Schwinge <thomas@codesourcery.com>
72
73 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
74 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET):
75 Undefine.
76
fd8c65e7
MM
772013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
78 Pat Haugen <pthaugen@us.ibm.com>
79 Peter Bergner <bergner@vnet.ibm.com>
80
81 * config/rs6000/power8.md: New.
82 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
83 setting for power8 entry.
84 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
85 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
86 test for Power4/Power5 only.
87 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
88 support.
89 (force_new_group): Adjust comment.
90 * config/rs6000/rs6000.md: Include power8.md.
91
b24a2ce5
GY
922013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
93
94 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
95 * config/arm/arm-protos.h (arm_max_conditional_execute): New
96 declaration.
97 (tune_params): Update comment.
98 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
99 (arm_max_conditional_execute): New function.
100 (thumb2_final_prescan_insn): Use max_insn_skipped and
101 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
102
f6fdeb62
JJ
1032013-06-25 Jakub Jelinek <jakub@redhat.com>
104
105 PR tree-optimization/57705
106 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
107 SSA_NAME step, provided that it is not defined inside the loop.
108 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested
109 loop.
110 (get_initial_def_for_induction): Handle SSA_NAME IV step.
111
c13bc3d9
MJ
1122013-06-25 Martin Jambor <mjambor@suse.cz>
113
114 PR middle-end/57670
115 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
116 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
117 calls in the dump.
118 (ipa_note_param_call): Initialize member_ptr flag.
119 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
120 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
121 (ipa_write_indirect_edge_info): Stream member_ptr flag.
122 (ipa_read_indirect_edge_info): Likewise.
123
8a845901
RB
1242013-06-25 Richard Biener <rguenther@suse.de>
125
126 PR middle-end/56977
127 * passes.c (init_optimization_passes): Move pass_fold_builtins
128 and pass_dce earlier with -Og.
129
33be0bec
EB
1302013-06-25 Eric Botcazou <ebotcazou@adacore.com>
131
132 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
133 <BIT_FIELD_REF>: Remove trailing TAB.
134 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
135 remove blank line.
136
5fe8e757
MJ
1372013-06-24 Martin Jambor <mjambor@suse.cz>
138
139 PR tree-optimization/57358
140 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
141 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
142 (ipa_analyze_params_uses): Generate pessimistic info when true.
143
44a60244
MJ
1442013-06-24 Martin Jambor <mjambor@suse.cz>
145
146 PR tree-optimization/57539
147 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
148 global.inlined_to of the new node to it. All callers changed.
149 * ipa-inline-transform.c (clone_inlined_nodes): New variable
150 inlining_into, pass it to cgraph_clone_node.
151 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
152 ipa_free_edge_args_substructures.
153 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
154 rdesc linked list. Do not assert rdesc edges have inlined caller.
155 Assert we have found an rdesc in the rdesc list.
156
7c5848b8
RB
1572013-06-24 Richard Biener <rguenther@suse.de>
158
159 * pointer-set.h (struct pointer_set_t): Move here from
160 pointer-set.c.
161 (pointer_set_lookup): Declare.
162 (class pointer_map): New template class implementing a
163 generic pointer to T map.
164 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
165 pointer_map<T>::contains, pointer_map<T>::insert,
166 pointer_map<T>::traverse): New functions.
167 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
168 (pointer_set_lookup): New function.
169 (pointer_set_contains): Use pointer_set_lookup.
170 (pointer_set_insert): Likewise.
171 (insert_aux): Remove.
172 (struct pointer_map_t): Embed a pointer_set_t.
173 (pointer_map_create): Adjust.
174 (pointer_map_destroy): Likewise.
175 (pointer_map_contains): Likewise.
176 (pointer_map_insert): Likewise.
177 (pointer_map_traverse): Likewise.
178 * tree-streamer.h (struct streamer_tree_cache_d): Use a
179 pointer_map<unsigned> instead of a pointer_map_t.
180 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
181 (streamer_tree_cache_lookup): Likewise.
182 (streamer_tree_cache_create): Likewise.
183 (streamer_tree_cache_delete): Likewise.
184 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
185 pointer_map<unsigned> instead of a pointer_map_t.
186 (lto_init_tree_ref_encoder): Adjust.
187 (lto_destroy_tree_ref_encoder): Likewise.
188 * lto-section-out.c (lto_output_decl_index): Likewise.
189 (lto_record_function_out_decl_state): Likewise.
190 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
191
3dbc97a9
RB
1922013-06-24 Richard Biener <rguenther@suse.de>
193
194 PR tree-optimization/57488
195 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
196
8345965a
AM
1972013-06-24 Alan Modra <amodra@gmail.com>
198
199 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
200 (gen_easy_altivec_constant): Likewise.
201 * config/rs6000/predicates.md (easy_vector_constant_add_self,
202 easy_vector_constant_msb): Likewise.
203
b7df379f
JJ
2042013-06-23 Jakub Jelinek <jakub@redhat.com>
205
206 PR target/57688
207 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
208 add missing return true.
209
0bcf9a09
OE
2102013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
211
212 PR target/52483
213 * config/sh/predicates.md (general_extend_operand): Invoke
214 general_movsrc_operand for memory operands.
215 (general_movsrc_operand): Allow reg+reg addressing, do not use
216 general_operand for memory operands.
217
97db2bf7
ST
2182013-06-23 Sriraman Tallam <tmsriram@google.com>
219
220 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
221 when current target options does not apply.
222 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
223 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
224 * config/i386/bmiintrin.h: Pass appropriate target attributes to header.
225 * config/i386/mmintrin.h: Ditto.
226 * config/i386/nmmintrin.h: Ditto.
227 * config/i386/avx2intrin.h: Ditto.
228 * config/i386/fxsrintrin.h: Ditto.
229 * config/i386/tbmintrin.h: Ditto.
230 * config/i386/xsaveintrin.h: Ditto.
231 * config/i386/f16cintrin.h: Ditto.
232 * config/i386/xtestintrin.h: Ditto.
233 * config/i386/xsaveoptintrin.h: Ditto.
234 * config/i386/bmi2intrin.h: Ditto.
235 * config/i386/lzcntintrin.h: Ditto.
236 * config/i386/smmintrin.h: Ditto.
237 * config/i386/wmmintrin.h: Ditto.
238 * config/i386/x86intrin.h: Remove all header include guards.
239 * config/i386/prfchwintrin.h: Ditto.
240 * config/i386/pmmintrin.h: Ditto.
241 * config/i386/tmmintrin.h: Ditto.
242 * config/i386/xmmintrin.h: Ditto.
243 * config/i386/popcntintrin.h: Ditto.
244 * config/i386/rdseedintrin.h: Ditto.
245 * config/i386/ammintrin.h: Ditto.
246 * config/i386/emmintrin.h: Ditto.
247 * config/i386/immintrin.h: Remove all header include guards.
248 * config/i386/fma4intrin.h: Ditto.
249 * config/i386/lwpintrin.h: Ditto.
250 * config/i386/xopintrin.h: Ditto.
251 * config/i386/ia32intrin.h: Ditto.
252 * config/i386/avxintrin.h: Ditto.
253 * config/i386/rtmintrin.h: Ditto.
254 * config/i386/fmaintrin.h: Ditto.
255 * config/i386/mm3dnow.h: Ditto.
256
495e6879
ST
2572013-06-22 Sriraman Tallam <tmsriram@google.com>
258
259 * common/config/i386/i386-common.c: Handle LZCNT.
260
11e8f687
AK
2612013-06-22 Andi Kleen <ak@linux.intel.com>
262
263 * doc/extend.texi: Use __atomic_store_n instead of
264 __atomic_store in HLE example.
265
664dd721
OE
2662013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
267
268 * config/sh/sh.c: Remove <cstdlib> workaround.
269
927f908b
AK
2702013-06-21 Andi Kleen <ak@linux.intel.com>
271
272 * doc/extend.texi: Dont use __atomic_clear in HLE
273 example. Fix typo.
274
cca410b6
AK
2752013-06-21 Andi Kleen <ak@linux.intel.com>
276
277 * doc/extend.texi: Document that __atomic_clear and
278 __atomic_test_and_set should only be used with bool.
279
d84db1ed
JH
2802013-06-20 Jan Hubicka <jh@suse.cz>
281
282 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
283 types_same_for_odr.
284 * tree.c (decls_same_for_odr): New function.
285 (same_for_edr): New function.
286 (types_same_for_odr): New function.
287 (get_binfo_at_offset): Use it.
288 * tree.h (types_same_for_odr): Declare.
289
664dd721 2902013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
469a31a9
OE
291 Jason Merrill <jason@redhat.com>
292
293 * system.h: Include <cstdlib> as well as <stdlib.h>.
294
49b4ff63
UB
2952013-06-20 Uros Bizjak <ubizjak@gmail.com>
296
297 PR target/57655
298 * config/i386/i386.c (construct_container): Report error if
299 long double is used with disabled x87 float returns.
300
7a89ad00
JH
3012013-06-20 Jan Hubicka <jh@suse.cz>
302
303 * lto-cgraph.c (input_symtab): Do not set cgraph state.
304
bd280792
JR
3052013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
306
307 PR rtl-optimization/57425
308 PR rtl-optimization/57569
309 * alias.c (write_dependence_p): Remove parameters mem_mode and
310 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
311 Changed all callers.
312 (canon_anti_dependence): Get comments and semantics in sync.
313 Add parameter mem_canonicalized. Changed all callers.
314 * rtl.h (canon_anti_dependence): Update prototype.
315
d16e9a99
RB
3162013-06-20 Richard Biener <rguenther@suse.de>
317
318 * data-streamer-in.c (streamer_read_uhwi): Optimize single
319 byte case, inline streamer_read_uchar and defer section
320 overrun check.
321
c3a9b91b
RB
3222013-06-20 Richard Biener <rguenther@suse.de>
323
324 PR tree-optimization/57584
325 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
326 SSA names into the expanded expression that take part in
327 abnormal coalescing.
328
fc8a650e
SS
3292013-06-19 <singhai@google.com>
330
331 * gcov.c (print_usage): Handle new option.
332 (process_args): Ditto.
333 (get_gcov_intermediate_filename): New function.
334 (output_intermediate_file): New function.
335 (output_gcov_file): New function
336 (generate_results): Handle new option.
337 (release_function): Relase demangled name.
338 (read_graph_file): Handle demangled name.
339 (output_lines): Ditto.
340 * doc/gcov.texi: Document gcov intermediate format.
341
11f5b71a
VM
3422013-06-19 Vladimir Makarov <vmakarov@redhat.com>
343
344 PR bootstrap/57604
345 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
346 (lra_emit_add): Use the functions. Add comment about Y as an
347 address segment.
348
e1f9340b
DE
3492013-06-19 David Edelsohn <dje.gcc@gmail.com>
350
351 PR driver/57652
352 * collect2.c (collect_atexit): New.
353 (collect_exit): Delete.
354 (main): Register collect_atexit with atexit.
355 (collect_wait): Change collect_exit to exit.
356 (do_wait): Same.
357 * collect2.h (collect_exit): Delete.
358 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
359
e3f9e0ac
WM
3602013-06-19 Wei Mi <wmi@google.com>
361
362 PR rtl-optimization/57518
363 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
364 if regno is used in paradoxical subreg.
365 (update_equiv_regs): Check pdx_subregs[regno] before
366 set a reg to be equivalent with a mem.
367
a09f1a76
MK
3682013-06-19 Matthias Klose <doko@ubuntu.com>
369
370 PR driver/57651
371 * file-find.h (find_a_file): Add a mode parameter.
372 * file-find.c (find_a_file): Likewise.
373 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
374 with X_OK for the executables.
375 * collect2.c (main): Call find_a_file with X_OK.
376
7d18b0ad
SE
3772013-06-19 Steve Ellcey <sellcey@mips.com>
378
379 PR target/56942
380 * config/mips/mips.md (casesi_internal_mips16_<mode>):
381 Use NEXT_INSN instead of next_real_insn.
382
6a6dac52
JH
3832013-06-19 Jan Hubicka <jh@suse.cz>
384
385 * cgraph.h (const_value_known_p): Replace by ...
386 (ctor_for_folding): .. this one.
387 * cgraphunit.c (process_function_and_variable_attributes): Use it.
388 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
389 * expr.c (expand_expr_real_1): Likewise.
390 (string_constant): Likewise.
391 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
392 * ipa.c (process_references): Likewise.
393 (symtab_remove_unreachable_nodes): Likewise.
394 * ipa-inline-analysis.c (param_change_prob): Likewise.
395 * gimple-fold.c (canonicalize_constructor_val): Likewise.
396 (get_base_constructor): Likwise.
397 * varpool.c (varpool_remove_node): Likewise.
398 (varpool_remove_initializer): LIkewise.
399 (dump_varpool_node): LIkwise.
400 (const_value_known_p): Rewrite to ...
401 (ctor_for_folding): ... this one.
402
216c12ab
JJ
4032013-06-19 Jakub Jelinek <jakub@redhat.com>
404
405 PR driver/57651
406 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
407 PERSONALITY in $PATH derived prefixes.
408
d53e2f99
JL
4092013-06-19 Jeff Law <law@redhat.com>
410
ecdbf306
JL
411 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
412 in comment.
413
d53e2f99
JL
414 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
415 (simplify_bitwise_binary): Use it to simpify certain binary ops on
416 booleans.
417
89e7fc04
SN
4182013-06-19 Sofiane Naci <sofiane.naci@arm.com>
419
420 * config/arm/vfp.md: Move VFP instruction classification documentation
421 to ...
422 * config/arm/arm.md: ... here. Update instruction classification
423 documentation.
424
5e7f6aaa
RE
4252013-06-19 Richard Earnshaw <rearnsha@arm.com>
426
427 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
428 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
429 pattern. Use more efficient sequences on ARMv5 and Thumb2.
430
5fdc1e5d
SB
4312013-06-19 Steven Bosscher <steven@gcc.gnu.org>
432
433 PR target/57609
434 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
435 with NEXT_INSN. Use tablejump_p to check for jump table data
436 insns.
437
e952afba
PC
4382013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
439
440 PR c++/56544
441 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
442 that now in C++ the value is correct per the C++ standards.
443
3fd0303a
RB
4442013-06-19 Richard Biener <rguenther@suse.de>
445
446 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
447 for global context.
448
b04e4b08
AK
4492013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
450
451 Revert:
452 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
453
454 PR target/57609
455 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
456 with next_active_insn.
457
bef8491a
ST
4582013-06-18 Sriraman Tallam <tmsriram@google.com>
459
460 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
461 functions are inlined during failures to flag an error.
462 * tree-inline.c (expand_call_inline): Allow the error to be flagged
463 in early inline pass.
22fc7d3d 464
c21b257d
L
4652013-06-18 H.J. Lu <hongjiu.lu@intel.com>
466
467 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
468 in comments.
469
33255ae3
JB
4702013-06-18 Julian Brown <julian@codesourcery.com>
471
472 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
473 Permit virtual register pre-reload if !strict.
474 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
475 change.
476 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
477 prototype.
478 * config/arm/neon.md (movmisalign<mode>): Use
479 neon_perm_struct_or_reg_operand instead of
480 neon_struct_or_register_operand.
481 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
482 neon_permissive_struct_operand instead of neon_struct_operand.
483 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
484 neon_vector_mem_operand.
485 * config/arm/predicates.md (neon_struct_operand): Adjust call to
486 neon_vector_mem_operand.
487 (neon_permissive_struct_operand): New.
488 (neon_struct_or_register_operand): Rename to...
489 (neon_perm_struct_or_reg_operand): This. Adjust call to
490 neon_vector_mem_operand.
491
d579fcda
RB
4922013-06-18 Richard Biener <rguenther@suse.de>
493
494 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
495 * lto-streamer.h: Include pointer-set.h.
496 (struct lto_decl_slot): Remove.
497 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
498 Remove next_index entry.
499 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
500 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
501 (lto_init_tree_ref_encoder): Adjust.
502 (lto_destroy_tree_ref_encoder): Likewise.
503 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
504 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
505 (lto_output_decl_index): Adjust.
506 (lto_new_out_decl_state): Likewise.
507 (lto_record_function_out_decl_state): Likewise.
508 * lto-streamer-out.c (copy_function): Likewise.
509
31ee20ba
RB
5102013-06-18 Richard Biener <rguenther@suse.de>
511
512 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
513 * cgraphunit.c: Include cfgloop.h.
514 (init_lowered_empty_function): Initialize the loop tree.
515 (assemble_thunk): Insert new BBs into loops.
516
ac0511f2
RB
5172013-06-18 Richard Biener <rguenther@suse.de>
518
519 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
520 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
521 the map from cache entry to cache index optional.
522 (streamer_tree_cache_replace_tree): Adjust accordingly.
523 (streamer_tree_cache_append): Likewise.
524 (streamer_tree_cache_delete): Likewise.
525 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
526 streamer cache map from cache entry to cache index.
527 * lto-streamer-out.c (create_output_block): Adjust.
528
09485a08
SN
5292013-06-18 Sofiane Naci <sofiane.naci@arm.com>
530
22fc7d3d
UB
531 * config/arm/arm.md (attribute "insn"): Move multiplication and
532 division attributes to...
09485a08
SN
533 (attribute "type"): ... here. Remove mult.
534 (attribute "mul32"): New attribute.
535 (attribute "mul64"): Add umaal.
536 (*arm_mulsi3): Update attributes.
537 (*arm_mulsi3_v6): Likewise.
538 (*thumb_mulsi3): Likewise.
539 (*thumb_mulsi3_v6): Likewise.
540 (*mulsi3_compare0): Likewise.
541 (*mulsi3_compare0_v6): Likewise.
542 (*mulsi_compare0_scratch): Likewise.
543 (*mulsi_compare0_scratch_v6): Likewise.
544 (*mulsi3addsi): Likewise.
545 (*mulsi3addsi_v6): Likewise.
546 (*mulsi3addsi_compare0): Likewise.
547 (*mulsi3addsi_compare0_v6): Likewise.
548 (*mulsi3addsi_compare0_scratch): Likewise.
549 (*mulsi3addsi_compare0_scratch_v6): Likewise.
550 (*mulsi3subsi): Likewise.
551 (*mulsidi3adddi): Likewise.
552 (*mulsi3addsi_v6): Likewise.
553 (*mulsidi3adddi_v6): Likewise.
554 (*mulsidi3_nov6): Likewise.
555 (*mulsidi3_v6): Likewise.
556 (*umulsidi3_nov6): Likewise.
557 (*umulsidi3_v6): Likewise.
558 (*umulsidi3adddi): Likewise.
559 (*umulsidi3adddi_v6): Likewise.
560 (*smulsi3_highpart_nov6): Likewise.
561 (*smulsi3_highpart_v6): Likewise.
562 (*umulsi3_highpart_nov6): Likewise.
563 (*umulsi3_highpart_v6): Likewise.
564 (mulhisi3): Likewise.
565 (*mulhisi3tb): Likewise.
566 (*mulhisi3bt): Likewise.
567 (*mulhisi3tt): Likewise.
568 (maddhisi4): Likewise.
569 (*maddhisi4tb): Likewise.
570 (*maddhisi4tt): Likewise.
571 (maddhidi4): Likewise.
572 (*maddhidi4tb): Likewise.
573 (*maddhidi4tt): Likewise.
574 (divsi3): Likewise.
575 (udivsi3): Likewise.
576 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
577 (thumb2_mulsi_short_compare0): Likewise.
578 (thumb2_mulsi_short_compare0_scratch): Likewise.
579 * config/arm/arm1020e.md (1020mult1): Update attribute change.
580 (1020mult2): Likewise.
581 (1020mult3): Likewise.
582 (1020mult4): Likewise.
583 (1020mult5): Likewise.
584 (1020mult6): Likewise.
22fc7d3d
UB
585 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
586 change.
09485a08
SN
587 (cortex_a15_mult64): Likewise.
588 (cortex_a15_sdiv): Likewise.
589 (cortex_a15_udiv): Likewise.
590 * config/arm/arm1026ejs.md (mult1): Update attribute change.
591 (mult2): Likewise.
592 (mult3): Likewise.
593 (mult4): Likewise.
594 (mult5): Likewise.
595 (mult6): Likewise.
596 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
597 (pj4_ir_div): Likewise.
598 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
599 (11_mult2): Likewise.
600 (11_mult3): Likewise.
601 (11_mult4): Likewise.
602 (11_mult5): Likewise.
603 (11_mult6): Likewise.
604 (11_mult7): Likewise.
605 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
606 (cortex_a8_mla): Likewise.
607 (cortex_a8_mull): Likewise.
608 (cortex_a8_smulwy): Likewise.
609 (cortex_a8_smlald): Likewise.
610 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
611 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
612 (cortex_r4_mul_3): Likewise.
613 (cortex_r4_mla_4): Likewise.
614 (cortex_r4_mla_3): Likewise.
615 (cortex_r4_smlald): Likewise.
616 (cortex_r4_mull): Likewise.
617 (cortex_r4_sdiv): Likewise.
618 (cortex_r4_udiv): Likewise.
619 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
620 (cortex_a7_idiv): Likewise.
621 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
622 (9_mult2): Likewise.
623 (9_mult3): Likewise.
624 (9_mult4): Likewise.
625 (9_mult5): Likewise.
626 (9_mult6): Likewise.
627 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
628 (cortex_a53_sdiv): Likewise.
629 (cortex_a53_udiv): Likewise.
630 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
631 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
632 (mp626_mult2): Likewise.
633 (mp626_mult3): Likewise.
634 (mp626_mult4): Likewise.
635 * config/arm/fa526.md (526_mult1): Update attribute change.
636 (526_mult2): Likewise.
637 * config/arm/arm-generic.md (mult): Update attribute change.
638 (mult_ldsched_strongarm): Likewise.
639 (mult_ldsched): Likewise.
640 (multi_cycle): Likewise.
641 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
642 * config/arm/fa606te.md (606te_mult1): Update attribute change.
643 (606te_mult2): Likewise.
644 (606te_mult3): Likewise.
645 (606te_mult4): Likewise.
646 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
647 (cortex_a9_mac16): Likewise.
648 (cortex_a9_multiply): Likewise.
649 (cortex_a9_mac): Likewise.
650 (cortex_a9_multiply_long): Likewise.
651 * config/arm/fa626te.md (626te_mult1): Update attribute change.
652 (626te_mult2): Likewise.
653 (626te_mult3): Likewise.
654 (626te_mult4): Likewise.
655
8951f345
RB
6562013-06-18 Richard Biener <rguenther@suse.de>
657
658 PR lto/57334
659 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
660
d8101d05
AK
6612013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
662
663 PR target/57609
664 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
665 with next_active_insn.
666
69eff9da
AM
6672013-06-18 Alan Modra <amodra@gmail.com>
668
669 * config/rs6000/rs6000.h (enum data_align): New.
670 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
671 (DATA_ABI_ALIGNMENT): Define.
672 (CONSTANT_ALIGNMENT): Correct comment.
673 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
674 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
675
8ed00d76
DM
6762013-06-17 David Malcolm <dmalcolm@redhat.com>
677
678 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
679 ATTRIBUTE_UNUSED marking.
680
3d33d06b
SN
6812013-06-17 Sofiane Naci <sofiane.naci@arm.com>
682
683 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
684 alternative and update.
685 (aarch64_dup_lanedi): Delete.
686 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
687 * config/aarch64/aarch64-simd-builtins.def: Update.
688
ee03e71d
RB
6892013-06-17 Richard Biener <rguenther@suse.de>
690
691 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
692 (lto_input_scc): Declare.
693 (lto_input_tree_1): Likewise.
694 (struct lto_stats_d): Add num_tree_bodies_output and
695 num_pickle_refs_output.
696 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
697 (lto_read_tree_1): Split out from ...
698 (lto_read_tree): ... this.
699 (lto_input_scc): New function.
700 (lto_input_tree_1): Split out from ...
701 (lto_input_tree): ... this. Handle LTO_tree_scc.
702 (lto_data_in_create): Create the streamer cache without hashes.
703 * lto-streamer-out.c (create_output_block): Create the streamer
704 cache with hashes when not doing WPA.
705 (lto_write_tree_1): Split out from ...
706 (lto_write_tree): ... this.
707 (get_symbol_initial_value): New function.
708 (lto_output_tree_1): Split out from ...
709 (lto_output_tree): ... this. Write trees as series of SCCs
710 using a DFS walk via DFS_write_tree.
711 (struct sccs, struct scc_entry): New types.
712 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
713 (DFS_write_tree_body): New function.
714 (DFS_write_tree): Likewise.
715 (hash_tree): Likewise.
716 (scc_entry_compare): Likewise.
717 (hash_scc): Likewise.
718 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
719 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
720 TREE_CHAIN as regular reference.
721 (streamer_read_integer_cst): Remove.
722 (streamer_get_pickled_tree): Adjust.
723 * tree-streamer-out.c (streamer_write_chain): Disable streaming
724 of DECL_EXTERNALs in BLOCK_VARS for now.
725 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
726 reference.
727 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
728 Add hash value argument and record that if hashes are recorded
729 in the cache.
730 (streamer_tree_cache_insert_1): Adjust.
731 (streamer_tree_cache_insert): Likewise.
732 (streamer_tree_cache_insert_at): Rename to ...
733 (streamer_tree_cache_replace_tree): ... this and adjust.
734 (streamer_tree_cache_append): Adjust.
735 (record_common_node): Likewise.
736 (streamer_tree_cache_create): Add argument whether to
737 record hash values together with trees.
738 (streamer_tree_cache_delete): Adjust.
739 * tree-streamer.h (struct streamer_tree_cache_d): Add
740 vector of hashes.
741 (streamer_read_integer_cst): Remove.
742 (streamer_tree_cache_insert): Adjust.
743 (streamer_tree_cache_append): Likewise.
744 (streamer_tree_cache_insert_at): Rename to ...
745 (streamer_tree_cache_replace_tree): ... this and adjust.
746 (streamer_tree_cache_create): Add argument whether to record hashes.
747 (streamer_tree_cache_get): Rename to ...
748 (streamer_tree_cache_get_tree): ... this.
749 (streamer_tree_cache_get_hash): New function.
750 * tree.c (cache_integer_cst): New function.
751 * tree.h (cache_integer_cst): Declare.
752 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
753 * lto-symtab.c (lto_varpool_replace_node): Only release
754 DECL_INITIAL of non-prevailing decls.
755 * varpool.c (varpool_remove_initializer): Do not release
756 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
757
0de86a92
JU
7582013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
759
760 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
761 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
762 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
763 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
764 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
765 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
766 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
767 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
768 instead of TARGET_64BIT.
769 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
770 Require ISA_HAS_<D>DIV.
771
74240413
RS
7722013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
773
774 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
775 (mips*-*-linux*): Move default with_llsc setting to where other
776 defaults are set.
777 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
778 with_arch block.
779 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
780 Likewise. Remove default with_tune setting. Move default float
781 setting to its own block. Handle with_llsc in the same block as above.
782
393f9fed
JR
7832013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
784
785 PR rtl-optimization/57425
786 PR rtl-optimization/57569
299a5f6a 787 * alias.c (write_dependence_p): Add new parameters mem_mode,
393f9fed
JR
788 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
789 Changed all callers.
790 (canon_anti_dependence): New function.
791 * cse.c (check_dependence): Use canon_anti_dependence.
792 * cselib.c (cselib_invalidate_mem): Likewise.
793 * rtl.h (canon_anti_dependence): Declare.
794
b259d352
JU
7952013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
796
797 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
798 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
799 ".set mips3" for 64-bit targets.
800
4de09b85
DC
8012013-06-15 Dehao Chen <dehao@google.com>
802
803 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
804 * gimple-low.c (gimple_check_call_matching_types): Likewise.
805 (gimple_check_call_args): Likewise.
806 * value-prof.c (check_ic_target): Likewise.
807 * ipa-inline.c (early_inliner): Likewise.
808 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
809 * cgraph.c (cgraph_create_edge_1): Likewise.
810 (cgraph_make_edge_direct): Likewise.
811
d1aa4a76
MM
8122013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
813
814 PR target/57615
815 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
816 rs6000_output_move_128bit to handle emitting quad memory
817 operations. Set attribute length to 8 bytes.
818
24244e4d
VP
8192013-06-14 Vidya Praveen <vidyapraveen@arm.com>
820
821 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
822 New pattern.
823 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
824 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
825 (aarch64_<su>mlsl<mode>): Likewise.
826
f5273574
MS
8272013-06-14 Mike Stump <mikestump@comcast.net>
828
829 * Makefile.in (TARGET_H): Add insn-codes.h.
830
ef7e7ab2
AM
8312013-06-14 Alan Modra <amodra@gmail.com>
832
833 PR middle-end/57134
834 PR middle-end/57586
835 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
836 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
837 bitfield expansion when EXPAND_MEMORY.
838 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
839
135faab6
MM
8402013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
841
842 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
843 test for clearing quad memory on 32-bit later.
844
948a1fd9
MG
8452013-06-13 Marc Glisse <marc.glisse@inria.fr>
846
847 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
848 (fold_negate_expr): Likewise.
849 (fold_real_zero_addition_p): Handle vectors.
850 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
851
0597fb9c
AM
8522013-06-14 Alan Modra <amodra@gmail.com>
853
854 * varasm.c (force_const_mem): Revert 2013-06-07 change.
855
e5b962d0
JH
8562013-06-13 Jan Hubicka <jh@suse.cz>
857
858 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
859 Local comdats are not externally visible.
860 * symtab.c (dump_symtab_base): Dump externally visible.
861 (verify_symtab_base): Verify back links in the symtab hash.
862
a8355e51
BC
8632013-06-13 Bin Cheng <bin.cheng@arm.com>
864
865 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
866 CONVERT_EXPR as equal nodes.
867
8f7e6e33
BC
8682013-06-13 Bin Cheng <bin.cheng@arm.com>
869
22fc7d3d 870 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
8f7e6e33 871
5d418483
MG
8722013-06-13 Marc Glisse <marc.glisse@inria.fr>
873
874 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
875 Generalize to complex and vector.
876 * tree.c (build_all_ones_cst): New function.
877 * tree.h (build_all_ones_cst): Declare it.
878
50751417
AM
8792013-06-13 Alan Modra <amodra@gmail.com>
880
881 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
882 * config/rs6000/rs6000.md (signbittf2): New insn.
883 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
884 (abstf2_internal, cmptf_internal2): Likewise.
885 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
886
4b02c962
MM
8872013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
888 Pat Haugen <pthaugen@us.ibm.com>
889 Peter Bergner <bergner@vnet.ibm.com>
890
891 * config/rs6000/rs6000.c (emit_load_locked): Add support for
892 power8 byte, half-word, and quad-word atomic instructions.
893 (emit_store_conditional): Likewise.
894 (rs6000_expand_atomic_compare_and_swap): Likewise.
895 (rs6000_expand_atomic_op): Likewise.
896
897 * config/rs6000/sync.md (larx): Add new modes for power8.
898 (stcx): Likewise.
899 (AINT): New mode iterator to include TImode as well as normal
900 integer modes on power8.
901 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
902 that VSX registers are not considered. Use AINT mode iterator
903 instead of INT1 to allow inclusion of quad word atomic operations
904 on power8.
905 (load_locked<mode>): Likewise.
906 (store_conditional<mode>): Likewise.
907 (atomic_compare_and_swap<mode>): Likewise.
908 (atomic_exchange<mode>): Likewise.
909 (atomic_nand<mode>): Likewise.
910 (atomic_fetch_<fetchop_name><mode>): Likewise.
911 (atomic_nand_fetch<mode>): Likewise.
912 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
913 each type.
914 (ATOMIC): On power8, add QImode, HImode modes.
915 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
916 modes that promote to SImode.
917 (load_lockedti): Convert TImode arguments to PTImode, so that we
918 get a guaranteed even/odd register pair.
919 (load_lockedpti): Likewise.
920 (store_conditionalti): Likewise.
921 (store_conditionalpti): Likewise.
922
923 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
924 atomic load/store instructions.
925 (HSI): Likewise.
926
710b6cc1
RS
9272013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
928
929 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
930 loads.
931 (insn_count): New attribute, with most cases extracted from...
932 (length): ...here. Redefine most cases in terms of insn_count.
933 (single_insn): Delete.
934 (can_delay): Use insn_count to check for single instructions.
935 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
936 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
937 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
938 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
939 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
940 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
941 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
942 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
943 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
944 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
945 rather than "length".
946 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
947 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
948 Use "insn_count" rather than "length".
949 * config/mips/mips-dsp.md
950 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
951 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
952 length attributes.
953
1951f101
MG
9542013-06-12 Marc Glisse <marc.glisse@inria.fr>
955
956 PR tree-optimization/57361
957 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
958
8b033a8a
SN
9592013-06-12 Sofiane Naci <sofiane.naci@arm.com>
960
22fc7d3d
UB
961 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
962 to split.
8b033a8a
SN
963 (aarch64_simd_combine<mode>): New instruction expansion.
964 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
965 function prototype.
966 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
967 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
968
ca0f62a8
JH
9692013-06-12 Jan Hubicka <jh@suse.cz>
970
971 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
972 decl has when in streaming stage.
973 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
974 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
975
cddd69eb
RS
9762013-06-12 Roland Stigge <stigge@antcom.de>
977
978 PR target/57578
979 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
980
bfdeda2c
JJ
9812013-06-12 Jakub Jelinek <jakub@redhat.com>
982
983 PR tree-optimization/57537
984 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
985 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
986
a4fa02d1
RB
9872013-06-12 Richard Biener <rguenther@suse.de>
988
989 * data-streamer.h (streamer_write_char_stream): CSE
990 obs->current_pointer.
991 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
992 streamer_write_char_stream manually and optimize the resulting loop.
993 (streamer_write_hwi_stream): Likewise.
994
bbf9ad07
JH
9952013-06-12 Jan Hubicka <jh@suse.cz>
996
997 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
998 * cgraph.h (varpool_create_empty_node): Declare.
999 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1000 duplicated nodes.
1001 * symtab.c (symtab_unregister_node): Be lax about missin entries
1002 in node hash.
1003 (symtab_get_node): Update comment.
1004 * varpool.c (varpool_create_empty_node): Break out from ...
1005 (varpool_node_for_decl): ... here.
1006 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1007
a53f90ad
EB
10082013-06-12 Eric Botcazou <ebotcazou@adacore.com>
1009
1010 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1011 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1012 part. Use straight-line flow at the end.
1013 <COMPONENT_REF>: Remove superfluous else.
1014 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1015
946f9306
JJ
10162013-06-12 Jakub Jelinek <jakub@redhat.com>
1017
1018 PR target/56564
1019 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1020 target hook even for !TREE_PUBLIC decls. If no resolution info
1021 is available, return false for common and external decls.
1022
a7fca6f0
KP
10232013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1024
1025 * config/rl78/constraints.md (U): New constraint.
1026 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1027 valloc attribute.
1028
c7d8f446
MM
10292013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1030
1031 PR target/57589
1032 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1033 to allow returning address to AT_PLATFORM name.
1034
08346abd
JH
10352013-06-11 Jan Hubicka <jh@suse.cz>
1036
1037 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1038 * cgraph.h (symtab_node_base): Add weakref flag.
1039 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1040 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1041 (output_weakrefs): Use weakref flag.
1042 * fold-const.c (simple_operand_p): Handle WEAK.
1043 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1044 * ipa.c (varpool_externally_visible_p): Drop weakref.
1045 (function_and_variable_visibility): Update comment; fix weakref
1046 sanity checks; do not clear DECL_WEAK on them.
1047 * lto-cgraph.c (lto_output_node): update.
1048 (lto_output_varpool_node): Update.
1049 (input_overwrite_node): Update.
1050 (input_node): Update.
1051 (input_varpool_node): Update.
1052 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1053 (lto_symtab_merge_symbols): Add sanity check.
1054 (lto_symtab_prevailing_decl): Do not special case weakrefs.
1055 * passes.c (rest_of_decl_compilation): Set static flag, too.
1056 * symtab.c (dump_symtab_base): Dump weakref.
1057 (verify_symtab_base): Sanity check weakrefs.
1058 (symtab_make_decl_local): Remove duplicated code.
1059 (symtab_alias_ultimate_target): Simplify.
1060 * varpool.c (varpool_create_variable_alias): Set weakref flag.
c7d8f446 1061
d9af3652
DD
10622013-06-11 DJ Delorie <dj@redhat.com>
1063
1064 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1065 (rl78_unwind_word_mode): New.
1066
ffa66012
DM
10672013-06-11 David Malcolm <dmalcolm@redhat.com>
1068
1069 * final.c (debug_prefix_maps): Make static.
1070
783f2d35
DM
10712013-06-11 David Malcolm <dmalcolm@redhat.com>
1072
1073 * function.c (initial_trampoline): Remove stray copy.
1074
7af26def
SN
10752013-06-11 Sofiane Naci <sofiane.naci@arm.com>
1076
1077 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1078
97756c0e
MJ
10792013-06-11 Martin Jambor <mjambor@suse.cz>
1080
1081 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1082 within bounds at the beginning of the function.
1083
2c7b8bf6
AM
10842013-06-11 Alan Modra <amodra@gmail.com>
1085
1086 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
1087 reporting.
1088 (get_named_section): Don't NULL !DECL_P decl.
1089
77cea46e
IZ
10902013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
1091
1092 * doc/invoke.texi (core-avx2): Document.
1093 (slm): Likewise.
1094 (atom): Updated with MOVBE.
1095
888f0920
RB
10962013-06-11 Richard Biener <rguenther@suse.de>
1097
22fc7d3d 1098 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
888f0920 1099
6b438d58
AB
11002013-06-11 Anton Blanchard <anton@samba.org>
1101
1102 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1103 correct shift value in little-endian mode.
1104
3bc66938
JJ
11052013-06-11 Jakub Jelinek <jakub@redhat.com>
1106
1107 PR target/56564
1108 * varasm.c (get_variable_align): Move #endif to the right place.
1109
a5dc7f88
CC
11102013-06-10 Cary Coutant <ccoutant@google.com>
1111
1112 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1113 for hash so that hash table traversal order is deterministic.
1114
19be72ab
MM
11152013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1116 Pat Haugen <pthaugen@us.ibm.com>
1117 Peter Bergner <bergner@vnet.ibm.com>
1118
1119 * config/rs6000/vector.md (GPR move splitter): Do not split moves
1120 of vectors in GPRS if they are direct moves or quad word load or
1121 store moves.
1122
1123 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1124 declaration.
1125 (direct_move_p): Likewise.
1126 (quad_load_store_p): Likewise.
1127
1128 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1129 classes into bins based on the physical register type.
1130 (reg_class_to_reg_type): Likewise.
1131 (IS_STD_REG_TYPE): Likewise.
1132 (IS_FP_VECT_REG_TYPE): Likewise.
1133 (reload_fpr_gpr): Arrays to determine what insn to use if we can
1134 use direct move instructions.
1135 (reload_gpr_vsx): Likewise.
1136 (reload_vsx_gpr): Likewise.
1137 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1138 information that is a simplification of register classes. Also
1139 precalculate direct move reload helpers.
1140 (direct_move_p): New function to return true if the operation can
1141 be done as a direct move instruciton.
1142 (quad_load_store_p): New function to return true if the operation
1143 is a quad memory operation.
1144 (rs6000_legitimize_address): If quad memory, only allow register
1145 indirect for TImode addresses.
1146 (rs6000_legitimate_address_p): Likewise.
1147 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1148 (rs6000_reload_register_type): Likewise.
1149 (register_to_reg_type): Return register type.
1150 (rs6000_secondary_reload_simple_move): New helper function for
1151 secondary reload and secondary memory needed to identify anything
1152 that is a simple move, and does not need reloading.
1153 (rs6000_secondary_reload_direct_move): New helper function for
1154 secondary reload to identify cases that can be done with several
1155 instructions via the direct move instructions.
1156 (rs6000_secondary_reload_move): New helper function for secondary
1157 reload to identify moves between register types that can be done.
1158 (rs6000_secondary_reload): Add support for quad memory operations
1159 and for direct move.
1160 (rs6000_secondary_memory_needed): Likewise.
1161 (rs6000_debug_secondary_memory_needed): Change argument names.
1162 (rs6000_output_move_128bit): New function to return the move to
1163 use for 128-bit moves, including knowing about the various
1164 limitations of quad memory operations.
1165
1166 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1167 memory operations. call rs6000_output_move_128bit for the actual
1168 instruciton(s) to generate.
1169 (vsx_movti_64bit): Likewise.
1170
1171 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1172 (UNSPEC_P8V_MTVSRWZ): Likewise.
1173 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1174 (UNSPEC_P8V_MTVSRD): Likewise.
1175 (UNSPEC_P8V_XXPERMDI): Likewise.
1176 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1177 (UNSPEC_FUSION_GPR): Likewise.
1178 (FMOVE128_GPR): New iterator for direct move.
22fc7d3d 1179 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
19be72ab
MM
1180 (f32_sv): Likewise.
1181 (f32_dm): Likewise.
1182 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1183 loads and direct move instructions.
1184 (zero_extendsidi2_lfiwzx): Likewise.
1185 (extendsidi2_lfiwax): Likewise.
1186 (extendsidi2_nocell): Likewise.
1187 (floatsi<mode>2_lfiwax): Likewise.
1188 (lfiwax): Likewise.
1189 (floatunssi<mode>2_lfiwzx): Likewise.
1190 (lfiwzx): Likewise.
1191 (fix_trunc<mode>_stfiwx): Likewise.
1192 (fixuns_trunc<mode>_stfiwx): Likewise.
1193 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1194 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1195 (parity<mode>2_cmpb): Set length/type attr.
1196 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1197 for 'mr.' to fast_compare.
1198 (bpermd_<mode>): Change type attr to popcnt.
1199 (p8_fmrgow_<mode>): New insns for power8 direct move support.
1200 (p8_mtvsrwz_1): Likewise.
1201 (p8_mtvsrwz_2): Likewise.
1202 (reload_fpr_from_gpr<mode>): Likewise.
1203 (p8_mtvsrd_1): Likewise.
1204 (p8_mtvsrd_2): Likewise.
1205 (p8_xxpermdi_<mode>): Likewise.
1206 (reload_vsx_from_gpr<mode>): Likewise.
1207 (reload_vsx_from_gprsf): Likewise.
1208 (p8_mfvsrd_3_<mode>): LIkewise.
1209 (reload_gpr_from_vsx<mode>): Likewise.
1210 (reload_gpr_from_vsxsf): Likewise.
1211 (p8_mfvsrd_4_disf): Likewise.
1212 (multi-word GPR splits): Do not split direct moves or quad memory
1213 operations.
1214
16876bdc
DM
12152013-06-10 David Malcolm <dmalcolm@redhat.com>
1216
1217 * tree-into-ssa.c (interesting_blocks): Make static.
1218
df8a1d28
JJ
12192013-06-10 Jakub Jelinek <jakub@redhat.com>
1220
1221 PR target/56564
1222 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1223 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1224 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1225 (get_variable_align): New function.
1226 (get_variable_section, emit_bss, emit_common,
1227 assemble_variable_contents, place_block_symbol): Use
1228 get_variable_align instead of DECL_ALIGN.
1229 (assemble_noswitch_variable): Add align argument, use it
1230 instead of DECL_ALIGN.
1231 (assemble_variable): Adjust caller. Use get_variable_align
1232 instead of DECL_ALIGN.
1233 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1234 caller.
1235 (DATA_ABI_ALIGNMENT): Define.
1236 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1237 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1238 opt is false, only return the psABI mandated alignment increase.
1239 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1240 (DATA_ABI_ALIGNMENT): ... this.
1241 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1242 (DATA_ABI_ALIGNMENT): ... this.
1243 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1244 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1245 (DATA_ABI_ALIGNMENT): ... this.
1246 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1247 * doc/tm.texi: Regenerated.
1248
57b29ca6
UB
12492013-06-10 Uros Bizjak <ubizjak@gmail.com>
1250
1251 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1252 cmp_code to construct REG_EQUAL note.
1253
3e56ed50
JJ
12542013-06-09 Jakub Jelinek <jakub@redhat.com>
1255
1256 PR target/57568
1257 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1258 that operands[2] doesn't overlap with operands[0].
1259
74fe2a1d
DE
12602013-06-09 David Edelsohn <dje.gcc@gmail.com>
1261 Jan Hubicka <jh@suse.cz>
1262
1263 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1264 hack to mark symbols as used.
1265
ed52a84e
VM
12662013-06-08 Vladimir Makarov <vmakarov@redhat.com>
1267
1268 PR rtl-optimization/57559
1269 * lra-constraints.c (process_alt_operands): Don't discourage
1270 memory with known offset for offsetable memory constraint.
1271 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1272
299316ed
EB
12732013-06-08 Eric Botcazou <ebotcazou@adacore.com>
1274
1275 * varasm.c (struct oc_local_state): Reorder fields.
1276 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1277 and adjust accordingly.
1278 (output_constructor): Reorder initialization code and adjust call to
1279 output_constructor_bitfield.
1280
88ac60d3
JH
12812013-06-07 Jan Hubicka <jh@suse.cz>
1282
1283 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1284
4cdce1a8
DM
12852013-06-07 David Malcolm <dmalcolm@redhat.com>
1286
1287 * tree-object-size.c (unknown): Make const.
1288
b5e0425c
AK
12892013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1290
1291 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1292 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1293 for last alternative in the cpu_facility attribute.
1294
79678d04
KT
12952013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1296
1297 PR target/56315
1298 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1299 (xordi3): Change operand 2 constraint to arm_xordi_operand.
1300 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1301 * config/arm/constraints.md (Dg): New constraint.
1302 * config/arm/neon.md (xordi3_neon): Remove.
1303 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
1304 * config/arm/predicates.md (arm_xordi_operand): New predicate.
1305
b31ddbdb
KT
13062013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1307
1308 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
1309 Clean up alternatives.
1310
8f90b7d4
AM
13112013-06-07 Alan Modra <amodra@gmail.com>
1312
1313 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
1314 va_list_gpr_size.
1315
961ce119
AM
13162013-06-07 Alan Modra <amodra@gmail.com>
1317
1318 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
1319
33e49835
KT
13202013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1321
1322 * config/arm/constraints.md (Df): New constraint.
1323 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
1324 Correct length attribute for last two alternatives.
1325
acd17ae6
AM
13262013-06-07 Alan Modra <amodra@gmail.com>
1327
1328 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
1329 override user -mfp-in-toc.
1330 (offsettable_ok_by_alignment): Consider just the current access
1331 rather than the whole object, unless BLKmode. Handle
1332 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
1333 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
1334 for -mcmodel=medium.
1335 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
1336 override user -mfp-in-toc or -msum-in-toc. Default to
1337 -mno-fp-in-toc for -mcmodel=medium.
1338
73310b0e
DD
13392013-06-06 DJ Delorie <dj@redhat.com>
1340
1341 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
1342 TARGET_VALID_POINTER_MODE.
1343
0bd62dca
MM
13442013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
1345 Pat Haugen <pthaugen@us.ibm.com>
1346 Peter Bergner <bergner@vnet.ibm.com>
1347
1348 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
1349 Document new power8 builtins.
1350
1351 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
1352 condition code register, to allow 128-bit logical operations to be
1353 done in the VSX or GPR registers.
1354 (nor<mode>3): Use the canonical form for nor.
1355 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
1356 vclz*, and vpopcnt* vector instructions.
1357 (nand<mode>3): Likewise.
1358 (orc<mode>3): Likewise.
1359 (clz<mode>2): LIkewise.
1360 (popcount<mode>2): Likewise.
1361
1362 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
1363 that only the GPRs are recognized.
1364
1365 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
1366 support for new power8 builtins.
1367
1368 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
1369 builtin functions.
1370 (xscvdpspn): Likewise.
1371 (vclz): Likewise.
1372 (vclzb): Likewise.
1373 (vclzh): Likewise.
1374 (vclzw): Likewise.
1375 (vclzd): Likewise.
1376 (vpopcnt): Likewise.
1377 (vpopcntb): Likewise.
1378 (vpopcnth): Likewise.
1379 (vpopcntw): Likewise.
1380 (vpopcntd): Likewise.
1381 (vgbbd): Likewise.
1382 (vmrgew): Likewise.
1383 (vmrgow): Likewise.
1384 (eqv): Likewise.
1385 (eqv_v16qi3): Likewise.
1386 (eqv_v8hi3): Likewise.
1387 (eqv_v4si3): Likewise.
1388 (eqv_v2di3): Likewise.
1389 (eqv_v4sf3): Likewise.
1390 (eqv_v2df3): Likewise.
1391 (nand): Likewise.
1392 (nand_v16qi3): Likewise.
1393 (nand_v8hi3): Likewise.
1394 (nand_v4si3): Likewise.
1395 (nand_v2di3): Likewise.
1396 (nand_v4sf3): Likewise.
1397 (nand_v2df3): Likewise.
1398 (orc): Likewise.
1399 (orc_v16qi3): Likewise.
1400 (orc_v8hi3): Likewise.
1401 (orc_v4si3): Likewise.
1402 (orc_v2di3): Likewise.
1403 (orc_v4sf3): Likewise.
1404 (orc_v2df3): Likewise.
1405
1406 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
1407 allow power8 quad mode in 64-bit.
1408 (rs6000_builtin_vectorized_function): Add support to vectorize
1409 ISA 2.07 count leading zeros, population count builtins.
1410 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
1411 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
1412 (builtin_function_type): Add vgbbd builtin function which takes an
1413 unsigned argument.
1414 (altivec_expand_vec_perm_const): Add support for new power8 merge
1415 instructions.
1416
1417 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
1418 that does not include TImdoe for use with 32-bit.
1419 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
1420 instructions.
1421 (UNSPEC_VSX_CVDPSPN): Likewise.
1422 (vsx_xscvdpspn): Likewise.
1423 (vsx_xscvspdpn): Likewise.
1424 (vsx_xscvdpspn_scalar): Likewise.
1425 (vsx_xscvspdpn_directmove): Likewise.
1426 (vsx_and<mode>3): Split logical operations into 32-bit and
1427 64-bit. Add support to do logical operations on TImode as well as
1428 VSX vector types. Allow logical operations to be done in either
1429 VSX registers or in general purpose registers in 64-bit mode. Add
1430 splitters if GPRs were used. For AND, add clobber of CCmode to
1431 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
1432 encoding.
1433 (vsx_and<mode>3_32bit): Likewise.
1434 (vsx_and<mode>3_64bit): Likewise.
1435 (vsx_ior<mode>3): Likewise.
1436 (vsx_ior<mode>3_32bit): Likewise.
1437 (vsx_ior<mode>3_64bit): Likewise.
1438 (vsx_xor<mode>3): Likewise.
1439 (vsx_xor<mode>3_32bit): Likewise.
1440 (vsx_xor<mode>3_64bit): Likewise.
1441 (vsx_one_cmpl<mode>2): Likewise.
1442 (vsx_one_cmpl<mode>2_32bit): Likewise.
1443 (vsx_one_cmpl<mode>2_64bit): Likewise.
1444 (vsx_nor<mode>3): Likewise.
1445 (vsx_nor<mode>3_32bit): Likewise.
1446 (vsx_nor<mode>3_64bit): Likewise.
1447 (vsx_andc<mode>3): Likewise.
1448 (vsx_andc<mode>3_32bit): Likewise.
1449 (vsx_andc<mode>3_64bit): Likewise.
1450 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
1451 and xxlorc instructions.
1452 (vsx_eqv<mode>3_64bit): Likewise.
1453 (vsx_nand<mode>3_32bit): Likewise.
1454 (vsx_nand<mode>3_64bit): Likewise.
1455 (vsx_orc<mode>3_32bit): Likewise.
1456 (vsx_orc<mode>3_64bit): Likewise.
1457
1458 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
1459
1460 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
1461 instruction.
1462 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
1463 (p8_vmrgow): Likewise.
1464 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
1465 GPRs to be split under VSX.
1466 (p8v_clz<mode>2): Add power8 count leading zero support.
1467 (p8v_popcount<mode>2): Add power8 population count support.
1468 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
1469 support.
1470
1471 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
1472 instruction.
1473
1474 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
1475 builtin functions.
1476 (vec_nand): Likewise.
1477 (vec_vclz): Likewise.
1478 (vec_vclzb): Likewise.
1479 (vec_vclzd): Likewise.
1480 (vec_vclzh): Likewise.
1481 (vec_vclzw): Likewise.
1482 (vec_vgbbd): Likewise.
1483 (vec_vmrgew): Likewise.
1484 (vec_vmrgow): Likewise.
1485 (vec_vpopcnt): Likewise.
1486 (vec_vpopcntb): Likewise.
1487 (vec_vpopcntd): Likewise.
1488 (vec_vpopcnth): Likewise.
1489 (vec_vpopcntw): Likewise.
1490
37684c46
VM
14912013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1492
1493 PR rtl-optimization/57468
1494 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
1495 spilled pseudos.
1496
d89ae27c
VM
14972013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1498
1499 PR rtl-optimization/57459
1500 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
1501 type when setting live regs.
1502
3597e113
VM
15032013-06-06 Vladimir Makarov <vmakarov@redhat.com>
1504
1505 * config/s390/s390.opt (mlra): New option.
1506 * config/s390/s390.c (s390_decompose_address): Check displacement
1507 for all registers for LRA.
1508 (s390_secondary_reload): Don't used secondary reloads for LRA.
1509 (s390_lra_p): New function.
1510 (TARGET_LRA_P): Define.
1511 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
1512 of attribute cpu_facility to zarch for the last alternative.
1513 (*cmpmem_short): Ditto.
1514
01037aeb
EB
15152013-06-06 Eric Botcazou <ebotcazou@adacore.com>
1516
1517 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
1518 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
1519 (arm_expand_prologue): Likewise.
1520
3371a64f
TJ
15212013-06-06 Teresa Johnson <tejohnson@google.com>
1522
1523 PR c++/53743
1524 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
1525 as this is now done by redirect_edge_and_branch_force.
1526 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
1527 barriers, and fix interaction with splitting.
1528 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
1529 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
1530 reflect changes made in the routine.
1531 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
1532 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
1533 since this is called in cfglayout mode, and replace partition fixup
1534 with assert as that is now done by force_nonfallthru_and_redirect.
1535 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
1536 already be marked with region crossing note.
1537 (insert_section_boundary_note): Make non-static, gate on flag
1538 has_bb_partition, rewrite to also check for multiple partitions.
1539 (rest_of_handle_reorder_blocks): Remove call to
1540 insert_section_boundary_note, now done later during free_cfg.
1541 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
1542 * bb-reorder.h (insert_section_boundary_note): Declare.
1543 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
1544 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
1545 invoke insert_section_boundary_note.
1546 (try_redirect_by_replacing_jump): Remove unnecessary
1547 check for region crossing note.
1548 (fixup_partition_crossing): New function.
1549 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
1550 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
1551 in non-cfglayout mode.
1552 (force_nonfallthru_and_redirect): Fixup partition boundaries,
1553 remove old code that tried to do this. Emit barrier correctly
1554 when we are in cfglayout mode.
1555 (last_bb_in_partition): New function.
1556 (rtl_split_edge): Correctly fixup partition boundaries.
1557 (commit_one_edge_insertion): Remove old code that tried to
1558 fixup region crossing edge since this is now handled in
1559 split_block, and set up insertion point correctly since
1560 block may now end in a jump.
1561 (verify_hot_cold_block_grouping): Guard against checking when not in
1562 linearized RTL mode.
1563 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
1564 notes.
1565 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
1566 rtl_verify_flow_info, so not called in cfglayout mode.
1567 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
1568 (fixup_reorder_chain): Remove old code that attempted to fixup region
1569 crossing note as this is now handled in force_nonfallthru_and_redirect.
1570 (duplicate_insn_chain): Don't duplicate switch section notes.
1571 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
1572 note.
1573 * basic-block.h (emit_barrier_after_bb): Declare.
1574
66071e10
KT
15752013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1576
1577 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
1578 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
1579 arm_usatsihi): Adjust alternatives for arm_restrict_it.
1580
0e26bf3d
KT
15812013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1582
1583 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
1584 where appropriate.
1585 * config/arm/ldmstm.md: Regenerate.
1586
12b4e7ef
KT
15872013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1588
1589 * config/arm/sync.md (atomic_loaddi_1):
1590 Disable predication for arm_restrict_it.
1591 (arm_load_exclusive<mode>): Likewise.
1592 (arm_load_exclusivesi): Likewise.
1593 (arm_load_exclusivedi): Likewise.
1594 (arm_load_acquire_exclusive<mode>): Likewise.
1595 (arm_load_acquire_exclusivesi): Likewise.
1596 (arm_load_acquire_exclusivedi): Likewise.
1597 (arm_store_exclusive<mode>): Likewise.
1598 (arm_store_exclusive<mode>): Likewise.
1599 (arm_store_release_exclusivedi): Likewise.
1600 (arm_store_release_exclusive<mode>): Likewise.
1601
15d16c8a
RB
16022013-06-06 Richard Biener <rguenther@suse.de>
1603
1604 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
1605 after LTO_null.
1606 (lto_tag_is_tree_code_p): Adjust.
1607 (lto_tag_is_gimple_code_p): Likewise.
1608 (lto_gimple_code_to_tag): Likewise.
1609 (lto_tag_to_gimple_code): Likewise.
1610 (lto_tree_code_to_tag): Likewise.
1611 (lto_tag_to_tree_code): Likewise.
1612 * data-streamer.h (streamer_write_hwi_in_range): Use
1613 uhwi streaming to stream the normalized range.
1614 (streamer_read_hwi_in_range): Likewise.
1615
17a7fc37
KT
16162013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1617
1618 * config/arm/arm.md (enabled_for_depr_it): New attribute.
1619 (predicable_short_it): Likewise.
1620 (predicated): Likewise.
1621 (enabled): Handle above.
1622 (define_cond_exec): Set predicated attribute to yes.
1623
b57ca59b
MS
16242013-06-05 Mike Stump <mikestump@comcast.net>
1625
1626 * gdbinit.in (__FUNCTION__): Add.
1627
c1e183a9
UB
16282013-06-05 Uros Bizjak <ubizjak@gmail.com>
1629
1630 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
1631 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
1632
0378bddb
JH
16332013-06-05 Jan Hubicka <jh@suse.cz>
1634
1635 * varasm.c (mark_decl_referenced): Revert the removal until targets
1636 are fixed.
1637
8f8a2057
DE
16382013-06-05 David Edelsohn <dje.gcc@gmail.com>
1639
1640 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
1641 instead of mark_decl_referenced.
1642
edb983b2
JH
16432013-06-05 Jan Hubicka <jh@suse.cz>
1644
1645 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
1646 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
1647 and symtab_used_from_object_file_p.
1648 (cgraph_make_node_local_1): Clear forced_by_abi.
1649 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
1650 * cgraph.h (symtab_node_base): Add forced_by_abi.
1651 (decide_is_variable_needed): Remove.
1652 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
1653 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
1654 (decide_is_symbol_needed): ... this one; handle symbols in general;
1655 always analyze virtuals; honnor forced_by_abi.
1656 (cgraph_finalize_function): Update.
1657 (varpool_finalize_decl): Update.
1658 (symbol_defined_and_needed): Remove.
1659 (analyze_functions): Update.
1660 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
1661 output_refs, input_overwrite_node): Handle forced_by_abi.
1662 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
1663 (address_taken_from_non_vtable_p): ... this one.
1664 (comdat_can_be_unshared_p_1): New function.
1665 (cgraph_comdat_can_be_unshared_p): Rename to ...
1666 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
1667 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
1668 (function_and_variable_visibility): Clear forced_by_abi as needed.
1669 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
1670 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
1671 * symtab.c (dump_symtab_base): Dump forced_by_abi.
1672 * varpool.c (decide_is_variable_needed): Remove.
1673
9912dbe5
KT
16742013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1675
1676 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
1677 (arm_option_override): Override arm_restrict_it where appropriate.
1678 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
1679 * config/arm/arm.opt (mrestrict-it): New command-line option.
1680 * doc/invoke.texi: Document -mrestrict-it.
1681
34c136b6
DM
16822013-06-05 David Malcolm <dmalcolm@redhat.com>
1683
1684 * tsan.c (tsan_atomic_table): Make const.
1685
a367df53
RB
16862013-06-05 Richard Biener <rguenther@suse.de>
1687
1688 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
1689 index associated with the tree we are supposed to replace.
1690 * tree-streamer-out.c (pack_ts_base_value_fields): Output
1691 TREE_ASM_WRITTEN as zero for everything but SSA names.
1692
70d51a19
DM
16932013-06-05 David Malcolm <dmalcolm@redhat.com>
1694
1695 * tree-ssa-structalias.c (call_stmt_vars): Make static.
1696
b9bd2075
JH
16972013-06-04 Jan Hubicka <jh@suse.cz>
1698
1699 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
1700 (input_node, input_varpool_node): Handle correctly external same
1701 body aliases.
1702 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
1703 nodes at ltrans stage.
1704
aaae719d
JH
17052013-06-04 Jan Hubicka <jh@suse.cz>
1706
1707 * ipa-inline.c (update_caller_keys): Fix availability test.
1708 (update_callee_keys): Likewise.
1709 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
1710 to follow ELF standard.
1711
107eea2c
JU
17122013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
1713
1714 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
1715 (mips64r5900el-*-elf*): New configurations.
1716 * config/mips/mips-cpus.def (r5900): New processor.
1717 * config/mips/mips-tables.opt: Regenerate.
1718 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
1719 (mips_issue_rate): Handle PROCESSOR_R5900.
1720 (mips_reorg_process_insns): Force reorder mode for the R5900.
1721 * config/mips/mips.h (TARGET_MIPS5900): Define.
1722 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
1723 TARGET_MIPS5900.
1724 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
1725 TARGET_MIPS5900.
1726 * config/mips/mips.md (processor): Add r5900.
1727 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
1728
b7342d25
IB
17292013-06-04 Ian Bolton <ian.bolton@arm.com>
1730
1731 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
1732 into function to generate MOVI instruction.
c1e183a9 1733 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
1734 (aarch64_preferred_simd_mode): Turn into wrapper.
1735 (aarch64_output_scalar_simd_mov_immediate): New function.
1736 * config/aarch64/aarch64-protos.h: Add prototype for above.
1737
81c2dfb9
IB
17382013-06-04 Ian Bolton <ian.bolton@arm.com>
1739
1740 * config/aarch64/aarch64.c (simd_immediate_info): Remove
1741 element_char member.
1742 (sizetochar): Return signed char.
1743 (aarch64_simd_valid_immediate): Remove elchar and other
1744 unnecessary variables.
1745 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
1746 Calculate element_char as required.
1747 * config/aarch64/aarch64-protos.h: Update and move prototype
1748 for aarch64_output_simd_mov_immediate.
1749 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
1750 Update arguments.
1751
48063b9d
IB
17522013-06-04 Ian Bolton <ian.bolton@arm.com>
1753
1754 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
1755 information completed by aarch64_simd_valid_immediate.
1756 (aarch64_legitimate_constant_p): Update arguments.
1757 (aarch64_simd_valid_immediate): Work with struct rather than many
1758 pointers.
1759 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
1760 (aarch64_simd_make_constant): Update arguments.
1761 (aarch64_output_simd_mov_immediate): Work with struct rather than
1762 many pointers. Output immediate directly rather than as operand.
1763 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1764 Update prototype.
1765 * config/aarch64/constraints.md (Dn): Update arguments.
1766
3ea63f60
IB
17672013-06-04 Ian Bolton <ian.bolton@arm.com>
1768
1769 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
1770 longer static.
1771 (aarch64_simd_immediate_valid_for_move): Remove.
1772 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
1773 (aarch64_simd_make_constant): Update call.
1774 (aarch64_output_simd_mov_immediate): Update call.
1775 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
1776 Add prototype.
1777 * config/aarch64/constraints.md (Dn): Update call.
1778
d8edd899
IB
17792013-06-04 Ian Bolton <ian.bolton@arm.com>
1780
1781 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
1782 return type to bool for prototype.
1783 (aarch64_legitimate_constant_p): Check for true instead of not -1.
1784 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
1785 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
1786
44b20bb8
CM
17872013-06-04 Catherine Moore <clm@codesourcery.com>
1788
1789 * config/mips/mips.opt (meva): New.
c1e183a9 1790 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
1791 (ASM_SPEC): Handle -meva.
1792 * doc/invoke.texi (meva): Document.
1793
52befbd8
AM
17942013-06-04 Alan Modra <amodra@gmail.com>
1795
1796 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
1797 constant output.
1798
aadaf24e
KT
17992013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1800
1801 * rtl.def: Add extra fourth optional field to define_cond_exec.
1802 * gensupport.c (process_one_cond_exec): Process attributes from
1803 define_cond_exec.
1804 * doc/md.texi: Document fourth field in define_cond_exec.
1805
0cd9e9ee
EB
18062013-06-04 Eric Botcazou <ebotcazou@adacore.com>
1807
1808 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
1809 out the processing order as in store_bit_field_1.
1810
cb0f665d
JH
18112013-06-04 Jan Hubicka <jh@suse.cz>
1812
1813 PR middle-end/57500
1814 * cgraphunit.c (cgraph_process_same_body_aliases): Create
1815 non-VAR_DECL node if it does not exist yet.
1816
53984b9b
RS
18172013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
1818
1819 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
1820 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
1821 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
1822 target_cpu_default setting.
1823
5d318fd4
TJ
18242013-06-03 Teresa Johnson <tejohnson@google.com>
1825
1826 * dumpfile.c (opt_info_switch_p): Change -fopt-info
1827 default to -fopt-info=optimized instead of all.
1828 * doc/invoke.texi: Ditto.
1829 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
1830 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
1831 (execute_vect_slp): Emit BB vectorization success under
1832 MSG_OPTIMIZED_LOCATIONS.
1833 * tree-vect-slp.c (vect_slp_transform_bb): Change
1834 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
1835 * tree-vect-loop.c (vect_transform_loop): Ditto.
1836
ec3af349
JM
18372013-06-03 Jason Merrill <jason@redhat.com>
1838
1839 PR c++/57415
1840 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1841 Use TARGET_EXPR for C++.
1842
1baf9159
JJ
18432013-06-03 Jakub Jelinek <jakub@redhat.com>
1844
1845 PR rtl-optimization/57268
0cd9e9ee 1846 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
1847 if DEBUG_INSN_P (insn).
1848
1849 Reapply
1850 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1851
1852 PR rtl-optimization/57268
1853 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1854 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1855
0f1d3965
YR
18562013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
1857
1858 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
1859 (ix86_avoid_lea_for_addr): Likewise.
1860 (exact_dependency_1): Likewise.
1861 (ix86_adjust_cost): Likewise.
1862 (swap_top_of_ready_list): Fix formatting and !reload_completed check
1863 removed.
1864 (do_reorder_for_imul): Fix typo, formatting and
1865 !reload_completed check removed.
1866 (ix86_sched_reorder): Fix typo and formatting.
1867 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
1868 list.
1869
3bc30db4
SN
18702013-06-03 Sofiane Naci <sofiane.naci@arm.com>
1871
1872 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
1873
19cc6fac
EB
18742013-06-03 Eric Botcazou <ebotcazou@adacore.com>
1875
1876 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
1877 <STRING_CST>: Likewise.
1878 <VECTOR_CST>: Likewise.
1879
c68a6e08
JW
18802013-06-01 Janus Weil <janus@gcc.gnu.org>
1881 Mikael Morin <mikael@gcc.gnu.org>
1882
1883 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
1884 * config.in: Regenerated.
1885 * configure: Regenerated.
1886
38e55e5c
JH
18872013-06-01 Jan Hubicka <jh@suse.cz>
1888
1889 PR middle-end/57366
1890 * cgraphunit.c (compile): When weakref is not supported,
1891 set up transparent aliases before final output pass.
1892 * varasm.c (assemble_alias): Do not try to do it here.
1893
eb51d2ff
JH
18942013-06-01 Jan Hubicka <jh@suse.cz>
1895
1896 PR middle-end/57467
1897 * passes.c (for_per_function): Skip unanalyzed functions.
1898
40a7fe1e
JH
18992013-06-01 Jan Hubicka <jh@suse.cz>
1900
1901 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
1902 (lto_symtab_merge_symbols_1): ... this one.
1903 (lto_symtab_merge_cgraph_nodes): Rename to ...
1904 (lto_symtab_merge_symbols): ... this one; simplify.
1905 * cgraph.c (same_body_aliases_done): Rename to ...
1906 (cpp_implicit_aliases_done): ... this one.
1907 (cgraph_create_function_alias): Update.
1908 (cgraph_same_body_alias): Update.
c1e183a9 1909 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 1910 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 1911 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
1912 (cgraph_node): Remove same_body_alias.
1913 (varpool_node): Remove alias_of and extra_name_alias.
1914 (same_body_aliases_done): Rename to ..
1915 (cpp_implicit_aliases_done): ... this one.
1916 (symtab_alias_ultimate_target): Add default parameter.
1917 (symtab_resolve_alias): New function.
1918 (fixup_same_cpp_alias_visibility): Declare.
1919 (cgraph_function_node): Add default parameter.
1920 (cgraph_node_asm_name): Likewise.
1921 (cgraph_function_or_thunk_node): Add default parameter; do
1922 not ICE when it is NULL.
1923 (varpool_variable_node): Likewise.
1924 * tree-emutls.c (create_emultls_var): Update.
1925 (ipa_lower_emutls): Update.
1926 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
1927 (cgraph_reset_node): Reset alias info.
1928 (cgraph_finalize_function): Update.
1929 (fixup_same_cpp_alias_visibility): Move to symtab.c.
1930 (analyze_function): Simplify.
1931 (cgraph_process_same_body_aliases): Simplify.
1932 (analyze_functions): Fixup same body aliases.
1933 (handle_alias_pairs): Simplify.
1934 (assemble_thunk): Update.
1935 (assemble_thunks_and_aliases): Update.
1936 (output_weakrefs): Rewrite.
1937 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
1938 (lto_output_varpool_node): Likewise.
1939 (compute_ltrans_boundary): Remve assert.
1940 (get_alias_symbol): New functoin.
1941 (input_node): Rewrite alias handling.
1942 (input_varpool_node): Likewise.
1943 * ipa-pure-const.c (propagate_pure_const): Fix formating.
1944 * ipa.c (process_references): Handle weakrefs correctly.
1945 (symtab_remove_unreachable_nodes): Likewise.
1946 * trans-mem.c (get_cg_data): Update.
1947 (ipa_tm_create_version_alias): Update.
1948 (ipa_tm_execute): Update.
1949 * symtab.c (dump_symtab_base): Dump aliases.
1950 (verify_symtab_base): Verify aliases.
1951 (symtab_node_availability): New function.
1952 (symtab_alias_ultimate_target): Simplify.
1953 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
1954 handle all the fixup cases.
1955 (symtab_resolve_alias): New function.
1956 * passes.c (ipa_write_summaries): Handle weakrefs.
1957 * varpool.c (varpool_analyze_node): Simplify.
1958 (assemble_aliases): Update.
1959 (varpool_create_variable_alias): Simplify.
1960 (varpool_extra_name_alias): Simplify.
1961 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
1962 (lto_symtab_merge_symbols): ... this one.
1963
21759881
DT
19642013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
1965
1966 Revert
1967 PR rtl-optimization/57268
1968 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1969 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1970
daf4e940
TB
19712013-06-01 Tobias Burnus <burnus@net-b.de>
1972
1973 Partially reverted:
1974 2013-05-31 Tobias Burnus <burnus@net-b.de>
1975
1976 PR middle-end/57073
1977 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
1978 further up.
1979
c359d8d0
DT
19802013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
1981
1982 PR rtl-optimization/57268
1983 * sched-deps.c (sched_analyze_2): Flush dependence lists if
1984 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
1985
4172215d
EB
19862013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1987
1988 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
1989 unordered comparison operators when -fno-trapping-math is in effect
1990 on the e500.
1991 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
1992 and implement unordered comparison operators properly on the e500.
1993
a8c50132
EB
19942013-05-31 Eric Botcazou <ebotcazou@adacore.com>
1995
1996 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
1997 for constant scalar integers.
1998 (simplify_relational_operation_1): Likewise.
1999
44626634
SB
20002013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
2001
2002 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2003 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
2004 Fix comment.
2005
55805e54
YR
20062013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2007 Igor Zamyatin <igor.zamyatin@intel.com>
2008
2009 Silvermont (SLM) architecture performance tuning.
2010 * config/i386/i386.h (enum ix86_tune_indices): Add
2011 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2012 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2013
2014 * config/i386/i386.c (initial_ix86_tune_features)
2015 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2016 (ix86_lea_outperforms): Handle Silvermont tuning.
2017 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2018 call.
2019 (ix86_use_lea_for_mov): Likewise.
2020 (ix86_avoid_lea_for_addr): Likewise.
2021 (ix86_lea_for_add_ok): Likewise.
2022 (exact_dependency_1): New function.
2023 (exact_store_load_dependency): Likewise.
2024 (ix86_adjust_cost): Handle Silvermont tuning.
2025 (do_reoder_for_imul): Likewise.
2026 (swap_top_of_ready_list): New function.
2027 (ix86_sched_reorder): Changed to handle Silvermont tuning.
2028
2029 * config/i386/i386.md (peepholes that split memory operand in fp
2030 converts): New.
2031
e19c9de2
MS
20322013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2033
2034 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2035 Remove un-necessary braces.
2036
38e6c9a6
MS
20372013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2038
2039 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2040 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2041
e3530904
TB
20422013-05-31 Tobias Burnus <burnus@net-b.de>
2043
2044 PR middle-end/57073
c1e183a9 2045 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 2046
b6af05a9
KT
20472013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2048
2049 PR target/56315
2050 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2051 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2052 * config/arm/neon.md (iordi3_neon): Remove.
2053 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2054 * config/arm/predicates.md (imm_for_neon_logic_operand):
2055 Move to earlier in the file.
2056 (neon_logic_op2): Likewise.
2057 (arm_iordi_operand_neon): New predicate.
2058
f800c166
RB
20592013-05-31 Richard Biener <rguenther@suse.de>
2060
2061 PR tree-optimization/57478
2062 PR tree-optimization/57453
2063 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2064 are life as well.
2065
e571fa59
KP
20662013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2067
2068 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2069 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2070
0fa6e0ef
TB
20712013-05-30 Tobias Burnus <burnus@net-b.de>
2072 Thomas Koenig <tkoenig@gcc.gnu.org>
2073
2074 PR middle-end/57073
2075 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2076 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2077
4688ddf5
SB
20782013-05-30 Steven Bosscher <steven@gcc.gnu.org>
2079
0fa6e0ef 2080 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 2081
3b9ceb4b
VM
20822013-05-30 Vladimir Makarov <vmakarov@redhat.com>
2083
2084 * target.def (register_usage_leveling_p): New hook.
2085 * targhooks.c (default_register_usage_leveling_p): New.
2086 * targhooks.h (default_register_usage_leveling_p): New prototype.
2087 * lra-assigns.c (register_usage_leveling_p): Use the hook.
2088 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2089 * doc/tm.texi: Update.
2090 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2091
65f9e789
IB
20922013-05-30 Ian Bolton <ian.bolton@arm.com>
2093
2094 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2095 (*insv_reg<mode>): New define_insn.
2096
ca035367
JR
20972013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
2098
2099 PR rtl-optimization/57439
2100 * postreload.c (move2add_valid_value_p): Check that we have
2101 a zero subreg_regno_offset when accessing the register in
2102 the requested mode.
2103
0b871ccf
YR
21042013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2105 Igor Zamyatin <igor.zamyatin@intel.com>
2106
2107 Silvermont (SLM) architecture pipeline model, tuning and
2108 insn selection.
2109 * config.gcc: Add slm config options and target.
2110
2111 * config/i386/slm.md: New.
2112
2113 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2114
2115 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
2116 PROCESSOR_SLM.
2117 (ix86_target_macros_internal): Likewise.
2118
2119 * gcc/config/i386/i386.c (slm_cost): New cost.
2120 (m_SLM): New macro flag.
2121 (initial_ix86_tune_features): Set m_SLM.
2122 (x86_accumulate_outgoing_args): Likewise.
2123 (x86_arch_always_fancy_math_387): Likewise.
2124 (processor_target_table): Add slm cost.
2125 (cpu_names): Add slm cpu name.
2126 (x86_option_override_internal): Set SLM ISA.
2127 (ix86_issue_rate): New case PROCESSOR_SLM.
2128 (ia32_multipass_dfa_lookahead): Likewise.
2129 (fold_builtin_cpu): Add slm.
2130
2131 * config/i386/i386.h (TARGET_SLM): New target macro.
2132 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2133 (processor_type): Add PROCESSOR_SLM.
2134
2135 * config/i386/i386.md (cpu): Add new value "slm".
2136 (slm.md): Include slm.md.
2137
24d5b097
XG
21382013-05-30 Bernd Schmidt <bernds@codesourcery.com>
2139 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2140
2141 * config/arm/arm-protos.h: Add and update function protos.
2142 * config/arm/arm.c (use_simple_return_p): New added.
2143 (thumb2_expand_return): Check simple_return flag.
2144 * config/arm/arm.md: Add simple_return and conditional simple_return.
2145 * config/arm/iterators.md: Add iterator for return and simple_return.
2146
c1cccc15
ZC
21472013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2148
2149 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2150 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2151 (arm_emit_vfp_multi_reg_pop): Likewise.
2152 (thumb2_emit_ldrd_pop): Likewise.
2153 (arm_expand_epilogue): Add misc REG_CFA notes.
2154 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2155
3a4f280b
LC
21562013-05-29 Lawrence Crowl <crowl@google.com>
2157
2158 * config/arm/t-arm: Update for below.
2159
2160 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2161 Change type to hash_table. Update dependent calls and types.
2162
2163 * config/i386/t-cygming: Update for below.
2164
2165 * config/i386/t-interix: Update for below.
2166
2167 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2168 Change type to hash_table. Update dependent calls and types.
2169 (i386_find_on_wrapper_list::wrappers): Likewise.
2170
2171 * config/ia64/t-ia64: Update for below.
2172
2173 * config/ia64/ia64.c (bundle_state_table):
2174 Change type to hash_table. Update dependent calls and types.
2175
2176 * config/mips/mips.c (mips_reorg_process_insns::htab):
2177 Change type to hash_table. Update dependent calls and types.
2178
2179 * config/sol2.c (solaris_comdat_htab):
2180 Change type to hash_table. Update dependent calls and types.
2181
2182 * config/t-sol2: Update for above.
2183
1388a0e3
TJ
21842013-05-29 Teresa Johnson <tejohnson@google.com>
2185
2186 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2187 functions are not yet marked as defined.
2188
a5965b52
MM
21892013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2190 Pat Haugen <pthaugen@us.ibm.com>
2191 Peter Bergner <bergner@vnet.ibm.com>
2192
2193 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2194 instructions.
2195 (VEC_A): Likewise.
2196 (VEC_C): Likewise.
2197 (vrotl<mode>3): Likewise.
2198 (vashl<mode>3): Likewise.
2199 (vlshr<mode>3): Likewise.
2200 (vashr<mode>3): Likewise.
2201
2202 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2203 support for power8 V2DI builtins.
2204
2205 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2206 power8 V2DI builtins.
2207 (vupkhsw): Likewise.
2208 (vupklsw): Likewise.
2209 (vaddudm): Likewise.
2210 (vminsd): Likewise.
2211 (vmaxsd): Likewise.
2212 (vminud): Likewise.
2213 (vmaxud): Likewise.
2214 (vpkudum): Likewise.
2215 (vpksdss): Likewise.
2216 (vpkudus): Likewise.
2217 (vpksdus): Likewise.
2218 (vrld): Likewise.
2219 (vsld): Likewise.
2220 (vsrd): Likewise.
2221 (vsrad): Likewise.
2222 (vsubudm): Likewise.
2223 (vcmpequd): Likewise.
2224 (vcmpgtsd): Likewise.
2225 (vcmpgtud): Likewise.
2226 (vcmpequd_p): Likewise.
2227 (vcmpgtsd_p): Likewise.
2228 (vcmpgtud_p): Likewise.
2229 (vupkhsw): Likewise.
2230 (vupklsw): Likewise.
2231 (vaddudm): Likewise.
2232 (vmaxsd): Likewise.
2233 (vmaxud): Likewise.
2234 (vminsd): Likewise.
2235 (vminud): Likewise.
2236 (vpksdss): Likewise.
2237 (vpksdus): Likewise.
2238 (vpkudum): Likewise.
2239 (vpkudus): Likewise.
2240 (vrld): Likewise.
2241 (vsld): Likewise.
2242 (vsrad): Likewise.
2243 (vsrd): Likewise.
2244 (vsubudm): Likewise.
2245
2246 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2247 support for power8 V2DI instructions.
2248
2249 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2250 power8 V2DI instructions. Combine pack and unpack insns to use an
2251 iterator for each mode. Check whether a particular mode supports
2252 Altivec instructions instead of just checking TARGET_ALTIVEC.
2253 (UNSPEC_VPKUWUM): Likewise.
2254 (UNSPEC_VPKSHSS): Likewise.
2255 (UNSPEC_VPKSWSS): Likewise.
2256 (UNSPEC_VPKUHUS): Likewise.
2257 (UNSPEC_VPKSHUS): Likewise.
2258 (UNSPEC_VPKUWUS): Likewise.
2259 (UNSPEC_VPKSWUS): Likewise.
2260 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2261 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2262 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2263 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2264 (UNSPEC_VUPKHSB): Likewise.
2265 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2266 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2267 (UNSPEC_VUPKHSH): Likewise.
2268 (UNSPEC_VUPKLSB): Likewise.
2269 (UNSPEC_VUPKLSH): Likewise.
2270 (VI2): Likewise.
2271 (VI_char): Likewise.
2272 (VI_scalar): Likewise.
2273 (VI_unit): Likewise.
2274 (VP): Likewise.
2275 (VP_small): Likewise.
2276 (VP_small_lc): Likewise.
2277 (VU_char): Likewise.
2278 (add<mode>3): Likewise.
2279 (altivec_vaddcuw): Likewise.
2280 (altivec_vaddu<VI_char>s): Likewise.
2281 (altivec_vadds<VI_char>s): Likewise.
2282 (sub<mode>3): Likewise.
2283 (altivec_vsubcuw): Likewise.
2284 (altivec_vsubu<VI_char>s): Likewise.
2285 (altivec_vsubs<VI_char>s): Likewise.
2286 (altivec_vavgs<VI_char>): Likewise.
2287 (altivec_vcmpbfp): Likewise.
2288 (altivec_eq<mode>): Likewise.
2289 (altivec_gt<mode>): Likewise.
2290 (altivec_gtu<mode>): Likewise.
2291 (umax<mode>3): Likewise.
2292 (smax<mode>3): Likewise.
2293 (umin<mode>3): Likewise.
2294 (smin<mode>3): Likewise.
2295 (altivec_vpkuhum): Likewise.
2296 (altivec_vpkuwum): Likewise.
2297 (altivec_vpkshss): Likewise.
2298 (altivec_vpkswss): Likewise.
2299 (altivec_vpkuhus): Likewise.
2300 (altivec_vpkshus): Likewise.
2301 (altivec_vpkuwus): Likewise.
2302 (altivec_vpkswus): Likewise.
2303 (altivec_vpks<VI_char>ss): Likewise.
2304 (altivec_vpks<VI_char>us): Likewise.
2305 (altivec_vpku<VI_char>us): Likewise.
2306 (altivec_vpku<VI_char>um): Likewise.
2307 (altivec_vrl<VI_char>): Likewise.
2308 (altivec_vsl<VI_char>): Likewise.
2309 (altivec_vsr<VI_char>): Likewise.
2310 (altivec_vsra<VI_char>): Likewise.
2311 (altivec_vsldoi_<mode>): Likewise.
2312 (altivec_vupkhsb): Likewise.
2313 (altivec_vupkhs<VU_char>): Likewise.
2314 (altivec_vupkls<VU_char>): Likewise.
2315 (altivec_vupkhsh): Likewise.
2316 (altivec_vupklsb): Likewise.
2317 (altivec_vupklsh): Likewise.
2318 (altivec_vcmpequ<VI_char>_p): Likewise.
2319 (altivec_vcmpgts<VI_char>_p): Likewise.
2320 (altivec_vcmpgtu<VI_char>_p): Likewise.
2321 (abs<mode>2): Likewise.
2322 (vec_unpacks_hi_v16qi): Likewise.
2323 (vec_unpacks_hi_v8hi): Likewise.
2324 (vec_unpacks_lo_v16qi): Likewise.
2325 (vec_unpacks_hi_<VP_small_lc>): Likewise.
2326 (vec_unpacks_lo_v8hi): Likewise.
2327 (vec_unpacks_lo_<VP_small_lc>): Likewise.
2328 (vec_pack_trunc_v8h): Likewise.
2329 (vec_pack_trunc_v4si): Likewise.
2330 (vec_pack_trunc_<mode>): Likewise.
2331
2332 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
2333 V2DI builtins.
2334 (vec_vmaxsd): Likewise.
2335 (vec_vmaxud): Likewise.
2336 (vec_vminsd): Likewise.
2337 (vec_vminud): Likewise.
2338 (vec_vpksdss): Likewise.
2339 (vec_vpksdus): Likewise.
2340 (vec_vpkudum): Likewise.
2341 (vec_vpkudus): Likewise.
2342 (vec_vrld): Likewise.
2343 (vec_vsld): Likewise.
2344 (vec_vsrad): Likewise.
2345 (vec_vsrd): Likewise.
2346 (vec_vsubudm): Likewise.
2347 (vec_vupkhsw): Likewise.
2348 (vec_vupklsw): Likewise.
2349
e70670cf
JH
23502013-05-29 Jan Hubicka <jh@suse.cz>
2351
2352 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
2353 flags; reorder rest of fields in more consistent way.
2354 (varpool_node): Remove analyzed, finalized and alias.
2355 (cgraph_ndoe): Likewise.
2356 (symtab_alias_ultimate_target): New function.
2357 (cgraph_function_node): Move offline.
2358 (cgraph_reset_node): Declare.
2359 (cgraph_comdat_can_be_unshared_p): Remove.
2360 (varpool_remove_initializer): Declare.
2361 (varpool_first_defined_variable, varpool_next_defined_variable
2362 cgraph_first_defined_function, cgraph_next_defined_function): Update.
2363 (cgraph_function_with_gimple_body_p): Update.
2364 (varpool_all_refs_explicit_p): Update.
2365 (symtab_alias_target): New function.
2366 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
2367 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
2368 (cgraph_function_or_thunk_node): Simplify using
2369 symtab_alias_ultimate_target.
e70670cf
JH
2370 (varpool_variable_node): Likewise.
2371 * cgraph.c (cgraph_create_function_alias): Update.
2372 (cgraph_add_thunk): Update.
2373 (cgraph_remove_node): Update.
2374 (dump_cgraph_node): Do not dump removed flags.
2375 (cgraph_function_body_availability): Update.
2376 (cgraph_propagate_frequency): Update.
2377 (verify_cgraph_node): Check sanity of local flag.
2378 (cgraph_function_node): Move here from cgraph.h; revamp for
2379 cgraph_function_or_thunk_node.
2380 * lto-symtab.c (lto_varpool_replace_node): Update.
2381 (lto_symtab_resolve_can_prevail_p): Update.
2382 (lto_symtab_merge_cgraph_nodes): Update.
2383 * ipa-cp.c (determine_versionability, initialize_node_lattices,
2384 propagate_constants_accross_call, devirtualization_time_bonus,
2385 ipcp_propagate_stage): Update.
2386 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
2387 * ipa-inline-transform.c (clone_inlined_nodes,
2388 preserve_function_body_p): Update.
e70670cf
JH
2389 * ipa-reference.c (propagate): Update.
2390 (write_node_summary_p): Update.
2391 * toplev.c (wrapup_global_declaration_2): Update.
2392 * cgraphunit.c (cgraph_analyze_function): Rename to ...
2393 (analyze_function) ... this one.
2394 (cgraph_process_new_functions): Update.
2395 (cgraph_reset_node): Export.
2396 (cgraph_finalize_function): Update.
2397 (cgraph_add_new_function): Update.
2398 (process_function_and_variable_attributes): Update.
2399 (varpool_finalize_decl): Update.
2400 (symbol_finalized): Remove.
2401 (symbol_finalized_and_needed): Rename to ...
2402 (symbol_defined_and_needed): ... update.
2403 (cgraph_analyze_functions): Update.
2404 (handle_alias_pairs): Update.
2405 (mark_functions_to_output): Update.
2406 (assemble_thunk): Update.
2407 (output_in_order): Update.
2408 (output_weakrefs): Update.
2409 (finalize_compilation_unit): Update.
2410 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
2411 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
2412 input_node, input_varpool_node): Update.
2413 * dbxout.c (dbxout_expand_expr): Update.
2414 * cgraphclones.c (cgraph_clone_node): Update.
2415 (cgraph_copy_node_for_versioning): Update.
2416 (cgraph_materialize_clone): Update.
2417 (cgraph_materialize_all_clones): Update.
2418 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
2419 propagate_pure_const, propagate_nothrow): Update.
2420 * lto-streamer-out.c (lto_output, write_symbol): Update.
2421 * ipa-utils.c (ipa_reverse_postorder): Update.
2422 * ipa-inline.c (can_inline_edge_p): Update.
2423 (update_caller_keys, ipa_inline): Update.
2424 * dwarf2out.c (reference_to_unused,
2425 premark_types_used_by_global_vars_helper): Update.
2426 * tree-eh.c (tree_could_trap_p): Update.
2427 * ipa-split.c (consider_split, execute_split_functions): Update.
2428 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
2429 has_addr_references_p): Update; move ahead in file for better
2430 readability.
e70670cf
JH
2431 (process_references): Simplify.
2432 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
2433 bodies are removed.
2434 (cgraph_comdat_can_be_unshared_p): Make static.
2435 (cgraph_externally_visible_p): Update.
2436 (varpool_externally_visible_p): Update.
2437 (function_and_variable_visibility): Update.
2438 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
2439 ipa_tm_mark_force_output_node): Update.
2440 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
2441 estimate_edge_devirt_benefit, inline_generate_summary,
2442 inline_write_summary): Update.
2443 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
2444 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
2445 (ipa_print_node_params, ipa_prop_read_section,
2446 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
2447 * varasm.c (mark_decl_referenced): Update.
2448 (assemble_alias, dump_tm_clone_pairs): Update.
2449 * tree-inline.c (copy_bb): Update.
2450 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
2451 Update.
2452 * symtab.c (dump_symtab_base): Print new flags.
2453 (verify_symtab_base): Verify new flags.
2454 (symtab_alias_ultimate_target): New function.
2455 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
2456 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
2457 Update.
c1e183a9
UB
2458 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
2459 Update.
e70670cf
JH
2460 * i386.c (ix86_get_function_versions_dispatcher,
2461 ix86_generate_version_dispatcher_body): Update.
2462 (fold_builtin_cpu): Use varpool_add_new_variable.
2463 * varpool.c (varpool_remove_initializer): Break out from ...
2464 (varpool_remove_node): ... this one.
2465 (dump_varpool_node, varpool_node_for_asm,
2466 cgraph_variable_initializer_availability, varpool_analyze_node,
2467 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
2468 varpool_finalize_named_section_flags, varpool_create_variable_alias):
2469 Update.
e70670cf 2470
182802ad
JH
24712013-05-29 Jan Hubicka <jh@suse.cz>
2472
2473 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
2474
8190b609
ER
24752013-05-29 Easwaran Raman <eraman@google.com>
2476
2477 PR tree-optimization/57442
2478 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
2479 when control exits the main loop.
2480
69f5aa9b
SKS
24812013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
2482
2483 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
2484 and RX600.
c1e183a9 2485 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
2486 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
2487 * rx/t-rx: Add rx100 under multi library matches option for nofpu
2488 option.
2489
4b847da9
BS
24902013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2491
2492 PR tree-optimization/57441
2493 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
2494 Don't limit size of incr_vec to number of candidates.
2495
4fc43c39
SE
24962013-05-29 Steve Ellcey <sellcey@imgtec.com>
2497
2498 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
2499 and mips16 directories.
c1e183a9 2500 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
2501 (MULTILIB_DIRNAMES): Ditto.
2502 (MULTILIB_EXCEPTIONS): Add new exceptions.
2503 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
2504 (MULTILIB_DIRNAMES): Ditto.
2505 (MULTILIB_EXCEPTIONS): Add new exceptions.
2506
a5350ddc
CSS
25072012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2508 Marcus Shawcroft <marcus.shawcroft@arm.com>
2509
2510 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
2511 SYMBOL_TINY_ABSOLUTE.
2512 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
2513 SYMBOL_TINY_ABSOLUTE.
2514 (aarch64_expand_mov_immediate): Likewise.
2515 (aarch64_classify_symbol): Likewise.
2516 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
2517 Permit SYMBOL_TINY_ABSOLUTE.
2518 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
2519
17f4d4bf
CSS
25202013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2521 Marcus Shawcroft <marcus.shawcroft@arm.com>
2522
2523 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
2524 Refactor if/switch. Replace gcc_assert with if.
2525
c0186656
GG
25262013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2527
2528 * config/i386/i386.c (initial_ix86_tune_features): Enable
2529 FP Reassociation for AMD bdver1 and bdver2.
2530
d20188f3
MJ
25312013-05-29 Martin Jambor <mjambor@suse.cz>
2532
2533 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
2534 and IMAGPART_EXPR do not occur within other handled_components.
2535
292cba13
RB
25362013-05-29 Richard Biener <rguenther@suse.de>
2537
2538 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
2539 access on whether the use is in the BB we currently try to
2540 vectorize.
2541 (vect_bb_vectorization_profitable_p): Pass the BB we currently
2542 vectorize to vect_bb_slp_scalar_cost.
2543
6eddf228
RB
25442013-05-29 Richard Biener <rguenther@suse.de>
2545
2546 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
2547 computing scalar cost offsetted by stmts that are kept live
2548 by scalar uses.
2549 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
2550 for computation of scalar cost.
2551
7df36117
SE
25522013-05-28 Steve Ellcey <sellcey@mips.com>
2553
2554 * config/mips/mips-cpus.def (mips32r2): Change processor type.
2555
36536d79
BI
25562013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
2557
2558 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
2559 array notation built-in reduction functions.
2560 * doc/passes.texi (Passes): Added documentation about changes done
2561 for Cilk Plus.
2562 * doc/invoke.texi (C Dialect Options): Added documentation about
2563 the -fcilkplus flag.
2564 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
2565 (BUILTINS_DEF): Depend on cilkplus.def.
2566 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
2567 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
2568 * cilkplus.def: New file.
2569
b49eefa5
JR
25702013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
2571
2572 PR rtl-optimization/57439
2573 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
2574
9daf6dbb
ER
25752013-05-28 Easwaran Raman <eraman@google.com>
2576
2577 PR tree-optimization/57337
2578 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
2579 (find_insert_point): Correctly identify the insertion point
2580 when two statements with the same UID is compared.
2581
fbd7e877
RB
25822013-05-28 Richard Biener <rguenther@suse.de>
2583
2584 PR tree-optimization/56787
2585 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
2586 from the list of data references.
2587 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
2588 clobbers.
2589 (vect_analyze_loop_operations): Likewise.
2590 (vect_transform_loop): Remove clobbers.
2591
bbba1117
MJ
25922013-05-28 Martin Jambor <mjambor@suse.cz>
2593
2594 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
2595 and REALPART_EXPRs have scalar type.
2596
bd388c2a
RB
25972013-05-28 Richard Biener <rguenther@suse.de>
2598
2599 PR tree-optimization/57411
2600 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
2601 virtual operands.
2602 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
2603 virtual operand propagation.
2604
2f56a311
EB
26052013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2606
2607 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
2608 destination register for bmasksi_vis.
2609 (vector_init_bshuffle): Likewise.
2610 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
2611
5c3eacbb
EB
26122013-05-28 Eric Botcazou <ebotcazou@adacore.com>
2613
2614 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
2615 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
2616 mode if the instruction isn't available in the original mode.
2617 * config/sparc/sparc.opt (mfix-ut699): New option.
2618 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
2619 (divdf3): Turn into expander.
2620 (divdf3_nofix): New insn.
2621 (divdf3_fix): Likewise.
2622 (divsf3): Disable if -mfix-ut699.
2623 (sqrtdf2): Turn into expander.
2624 (sqrtdf2_nofix): New insn.
2625 (sqrtdf2_fix): Likewise.
2626 (sqrtsf2): Disable if -mfix-ut699.
2627
a1756c0a
RB
26282013-05-27 Richard Biener <rguenther@suse.de>
2629
2630 PR middle-end/57412
2631 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
2632 block for the new loop.
2633
5a892248
RB
26342013-05-27 Richard Biener <rguenther@suse.de>
2635
2636 PR tree-optimization/57343
2637 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
2638 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
2639 (number_of_iterations_cond): Do not build the folded tree.
2640
d1de852b
RB
26412013-05-27 Richard Biener <rguenther@suse.de>
2642
2643 Revert
2644 PR middle-end/57381
2645 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2646 OEP_CONSTANT_ADDRESS_OF retained.
2647
2648 PR tree-optimization/57417
2649 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
2650 for unchanged base.
2651 (set_ssa_val_to): Compare addresses using
2652 get_addr_base_and_unit_offset.
2653
7894bc6b
JR
26542013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
2655
2656 PR rtl-optimization/56833
2657 * postreload.c (move2add_record_mode): New function.
2658 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
2659 (move2add_use_add2_insn): Use move2add_record_sym_value.
2660 (move2add_use_add3_insn): Likewise.
2661 (reload_cse_move2add): Use move2add_valid_value_p and
2662 move2add_record_mode. Invalidate call-clobbered and REG_INC
2663 affected regs by setting reg_mode to VOIDmode.
2664 (move2add_note_store): Don't pretend the inside of a SUBREG is
2665 the actual destination. Invalidate single/leading registers by
2666 setting reg_mode to VOIDmode.
2667 Use move2add_record_sym_value, move2add_valid_value_p and
2668 move2add_record_mode.
2669
b03be25f
RB
26702013-05-27 Richard Biener <rguenther@suse.de>
2671
2672 PR tree-optimization/57396
2673 * tree-affine.c (double_int_constant_multiple_p): Properly
2674 return false for val == 0 and div != 0.
2675
44e88db2
RS
26762013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2677
2678 * config/mips/mips.h: Use #elif in preprocessor conditions.
2679
3b859704
RS
26802013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2681
2682 PR target/53916
2683 * config/mips/constraints.md (kl): New constraint.
2684 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
2685 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
2686 constraint for operand 0. Split after CSE for MIPS16. Emit a move
2687 from LO for MIPS16.
2688 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
2689
c979d5f5
RS
26902013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
2691
2692 PR target/55777
2693 * config/mips/mips.c (mips_can_inline_p): New function.
2694 (TARGET_CAN_INLINE_P): Define.
2695
8e90de43
SB
26962013-05-25 Steven Bosscher <steven@gcc.gnu.org>
2697
2698 * sched-int.h (ds_t, dw_t): Make unsigned int.
2699 Fix documentation that describes how all the ds_t bits are used.
2700 Reserve the last bit for delayed-branch scheduling.
2701 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
2702 (BITS_PER_DEP_WEAK): Fix definition and documentation.
2703 (gen_dep_weak_1): Remove prototype.
2704 * sched-deps.c (get_dep_weak_1): Make static.
2705 * target.def (speculate_insn, needs_block_p, gen_spec_check,
2706 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
2707 * doc/tm.texi: Regenerate.
2708 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
2709
cb5cb194
SB
27102013-05-24 Steven Bosscher <steven@gcc.gnu.org>
2711
2712 PR debug/56950
2713 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
2714
5bd93ff6
NS
27152013-05-24 Nathan Sidwell <nathan@codesourcery.com>
2716 Sandra Loosemore <sandra@codesourcery.com>
2717
2718 * config.gcc (powerpc-*): Allow native for with-cpu.
2719
2343af65
JL
27202013-05-24 Jeff Law <law@redhat.com>
2721
2722 PR tree-optimization/57124
2723 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
2724 conversion feeding a condition if the range has an overflow
2725 if -fstrict-overflow. Add warnings for when we do make the
2726 transformation.
2727
3ad695b9
DC
27282013-05-24 Dehao Chen <dehao@google.com>
2729
04960246 2730 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
2731 (locus_discrim_hasher): Likewise.
2732 (locus_discrim_hasher::hash): Likewise.
2733 (locus_discrim_hasher::equal): Likewise.
2734
82338059
MJ
27352013-05-24 Martin Jambor <mjambor@suse.cz>
2736
2737 PR tree-optimization/57294
2738 * cgraph.h (ipa_record_stmt_references): Declare.
2739 * cgraphbuild.c (ipa_record_stmt_references): New function.
2740 (build_cgraph_edges): Use ipa_record_stmt_references.
2741 (rebuild_cgraph_edges): Likewise.
2742 (cgraph_rebuild_references): Likewise.
2743 * ipa-prop.c (ipa_modify_call_arguments): Discard references
2744 associated with the old statement and build references from the
2745 newly built statements.
2746 * ipa-ref.c (ipa_remove_stmt_references): New function.
2747 * ipa-ref.h (ipa_remove_stmt_references): Declare.
2748
1ccd4874
VM
27492013-05-24 Vladimir Makarov <vmakarov@redhat.com>
2750
55805e54 2751 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 2752 mem-mem moves.
55805e54 2753 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 2754 too.
55805e54 2755 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
2756 secondary memory moves.
2757 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
2758 reg set up in the current insn.
2759
25e25c73
DC
27602013-05-24 Dehao Chen <dehao@google.com>
2761
04960246 2762 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
2763 hash function.
2764 (locus_descrim_hasher::equal): Likewise.
04960246 2765 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
2766 (make_edges): Likewise.
2767 (next_discriminator_for_locus): Likewise.
2768 (same_line_p): Likewise.
2769 (assign_discriminators): Likewise.
2770 (make_cond_expr_edges): Likewise.
2771 (make_gimple_switch_edges): Likewise.
2772 (make_goto_expr_edges): Likewise.
2773 (make_gimple_asm_edges): Likewise.
2774
50d38551
IB
27752013-05-24 Ian Bolton <ian.bolton@arm.com>
2776
2777 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
2778 X format specifier to only display bottom 16 bits.
2779 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
2780 immediate to match for operand 2, since it will be masked.
2781
aea0101d
RB
27822013-05-24 Richard Biener <rguenther@suse.de>
2783
2784 PR tree-optimization/57287
2785 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
2786 all SSA names that occur in abnormal PHIs.
2787
634e03d3
AI
27882013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
2789
2790 PR tree-ssa/57385
2791 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
2792 that index is not negative.
2793
b17c024f
EB
27942013-05-24 Eric Botcazou <ebotcazou@adacore.com>
2795
2796 PR rtl-optimization/55177
2797 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
2798 (simplify_byte_swapping_operation): New.
2799 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
2800 (simplify_relational_operation_1): Deal with BSWAP.
2801
46aeac1b
RH
28022013-05-23 Richard Henderson <rth@redhat.com>
2803
2804 PR target/56742
2805 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
2806 (ix86_reorg): Call it.
2807
70cc1536
UB
28082013-05-23 Uros Bizjak <ubizjak@gmail.com>
2809
2810 PR target/57379
2811 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
2812 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
2813 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
2814
b3851501
CB
28152013-05-23 Christian Bruel <christian.bruel@st.com>
2816
2817 PR debug/57351
2818 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
2819
4e194912
CSS
28202013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2821 Marcus Shawcroft <marcus.shawcroft@arm.com>
2822
2823 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
2824 * config/aarch64/constraints.md (Usa): Remove.
2825 * doc/md.texi (AArch64 Usa): Remove.
2826
83f8c414
CSS
28272013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
2828 Marcus Shawcroft <marcus.shawcroft@arm.com>
2829
2830 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
2831 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
2832 * config/aarch64/predicates.md (aarch64_const_address): Remove.
2833 (aarch64_mov_operand): Use aarch64_mov_operand_p.
2834
b5574232
VP
28352013-05-23 Vidya Praveen <vidyapraveen@arm.com>
2836
2837 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
2838 instruction (AdvSIMD).
2839 * config/aarch64/aarch64-builtins.c
2840 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
2841 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
2842
76c36cb1 28432013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
2844
2845 PR middle-end/57347
2846 * tree.h (contains_bitfld_component_ref_p): Declare.
2847 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
2848 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
2849 caller.
7d2fb524
MJ
2850 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
2851 not access a bit-field. Assert all final offsets are byte-aligned.
2852
ce521ae6
RB
28532013-05-23 Richard Biener <rguenther@suse.de>
2854
2855 PR tree-optimization/57380
2856 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
2857 least one invariant or re-used load.
2858 * passes.c (init_optimization_passes): Move pass_phiprop before
2859 pass_forwprop.
2860
75c7257f
JG
28612013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
2862
2863 * config/aarch64/aarch64-simd.md
2864 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
2865
af6d44b5
RB
28662013-05-23 Richard Biener <rguenther@suse.de>
2867
2868 PR middle-end/57381
2869 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
2870 OEP_CONSTANT_ADDRESS_OF retained.
2871
bd3647bf
JJ
28722013-05-23 Jakub Jelinek <jakub@redhat.com>
2873
2874 PR middle-end/57344
70cc1536
UB
2875 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
2876 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 2877
a55757ea
RB
28782013-05-23 Richard Biener <rguenther@suse.de>
2879
2880 PR rtl-optimization/57341
2881 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
2882 instead of true_dependence.
2883
cfb00b41
DM
28842013-05-22 David Malcolm <dmalcolm@redhat.com>
2885
dd1c676f
DM
2886 * bb-reorder.c (branch_threshold): Make const.
2887 (exec_threshold): Ditto.
cfb00b41 2888
f62511da
MM
28892013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2890 Pat Haugen <pthaugen@us.ibm.com>
2891 Peter Bergner <bergner@vnet.ibm.com>
2892
2893 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
2894 documentation for the power8 crypto builtins.
2895
2896 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
2897
2898 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
2899 macros for defining power8 builtin functions.
2900 (BU_P8V_AV_2): Likewise.
2901 (BU_P8V_AV_P): Likewise.
2902 (BU_P8V_VSX_1): Likewise.
2903 (BU_P8V_OVERLOAD_1): Likewise.
2904 (BU_P8V_OVERLOAD_2): Likewise.
2905 (BU_CRYPTO_1): Likewise.
2906 (BU_CRYPTO_2): Likewise.
2907 (BU_CRYPTO_3): Likewise.
2908 (BU_CRYPTO_OVERLOAD_1): Likewise.
2909 (BU_CRYPTO_OVERLOAD_2): Likewise.
2910 (XSCVSPDP): Fix typo, point to the correct instruction.
2911 (VCIPHER): Add power8 crypto builtins.
2912 (VCIPHERLAST): Likewise.
2913 (VNCIPHER): Likewise.
2914 (VNCIPHERLAST): Likewise.
2915 (VPMSUMB): Likewise.
2916 (VPMSUMH): Likewise.
2917 (VPMSUMW): Likewise.
2918 (VPERMXOR_V2DI): Likewise.
2919 (VPERMXOR_V4SI: Likewise.
2920 (VPERMXOR_V8HI: Likewise.
2921 (VPERMXOR_V16QI: Likewise.
2922 (VSHASIGMAW): Likewise.
2923 (VSHASIGMAD): Likewise.
2924 (VPMSUM): Likewise.
2925 (VPERMXOR): Likewise.
2926 (VSHASIGMA): Likewise.
2927
2928 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
2929 __CRYPTO__ if the crypto instructions are available.
2930 (altivec_overloaded_builtins): Add support for overloaded power8
2931 builtins.
2932
2933 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
2934 support for power8 crypto builtins.
2935 (builtin_function_type): Likewise.
2936 (altivec_init_builtins): Add support for builtins that take vector
2937 long long (V2DI) arguments.
2938
2939 * config/rs6000/crypto.md: New file, define power8 crypto
2940 instructions.
2941
29422013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
2943 Pat Haugen <pthaugen@us.ibm.com>
2944 Peter Bergner <bergner@vnet.ibm.com>
2945
2946 * doc/invoke.texi (Option Summary): Add power8 options.
2947 (RS/6000 and PowerPC Options): Likewise.
2948
2949 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
2950 constraints.md instead of rs6000.h. Reorder w* constraints. Add
2951 wm, wn, wr documentation.
2952
2953 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
2954 registers if direct move instructions are enabled.
2955 (wn): New constraint for no registers.
2956 (wq): New constraint for quad word even GPR registers.
2957 (wr): New constraint if 64-bit instructions are enabled.
2958 (wv): New constraint if power8 vector instructions are enabled.
2959 (wQ): New constraint for quad word memory locations.
2960
2961 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
2962 constraint for 0..15 for crypto instructions.
2963 (gpc_reg_operand): If VSX allow registers in VSX registers as well
2964 as GPR and floating point registers.
2965 (int_reg_operand): New predicate to match only GPR registers.
2966 (base_reg_operand): New predicate to match base registers.
2967 (quad_int_reg_operand): New predicate to match even GPR registers
2968 for quad memory operations.
2969 (vsx_reg_or_cint_operand): New predicate to allow vector logical
2970 operations in both GPR and VSX registers.
2971 (quad_memory_operand): New predicate for quad memory operations.
2972 (reg_or_indexed_operand): New predicate for direct move support.
2973
2974 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
2975 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
2976 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
2977 (POWERPC_MASKS): Add power8 options.
2978 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
2979 various options.
2980
2981 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
2982 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
2983
2984 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
2985 (-mpower8-fusion): New power8 options.
2986 (-mpower8-fusion-sign): Likewise.
2987 (-mpower8-vector): Likewise.
2988 (-mcrypto): Likewise.
2989 (-mdirect-move): Likewise.
2990 (-mquad-memory): Likewise.
2991
2992 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
2993 power8.
2994 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
2995 registers.
70cc1536 2996 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
2997 (rs6000_debug_vector_unit): Add p8_vector.
2998 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
2999 definitions. Also print fusion state.
3000 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3001 (rs6000_builtin_mask_calculate): Add power8 builtin support.
3002 (rs6000_option_override_internal): Add support for power8.
3003 (rs6000_common_init_builtins): Add debugging for skipped builtins
3004 if -mdebug=builtin.
3005 (rs6000_adjust_cost): Add power8 support.
3006 (rs6000_issue_rate): Likewise.
3007 (insn_must_be_first_in_group): Likewise.
3008 (insn_must_be_last_in_group): Likewise.
3009 (force_new_group): Likewise.
3010 (rs6000_register_move_cost): Likewise.
3011 (rs6000_opt_masks): Likewise.
3012
3013 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3014 power8 capable assembler, default to power7 options.
3015 (TARGET_DIRECT_MOVE): Likewise.
3016 (TARGET_CRYPTO): Likewise.
3017 (TARGET_P8_VECTOR): Likewise.
3018 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3019 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3020 (VECTOR_MEM_P8_VECTOR_P): Likewise.
3021 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3022 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3023 (TARGET_XSCVDPSPN): Likewise.
3024 (TARGET_XSCVSPDPN): Likewsie.
3025 (TARGET_SYNC_HI_QI): Likewise.
3026 (TARGET_SYNC_TI): Likewise.
3027 (MASK_CRYPTO): Likewise.
3028 (MASK_DIRECT_MOVE): Likewise.
3029 (MASK_P8_FUSION): Likewise.
3030 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
3031 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3032 temporary used by some of the direct move instructions to get two FP
3033 temporary registers does not force creation of a stack frame.
f62511da
MM
3034 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3035 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3036 that any VSX registers are tieable, even if they are also an
3037 Altivec vector mode.
3038 (r6000_reg_class_enum): Add wm, wr, wv constraints.
3039 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3040 (RS6000_BTM_CRYPTO): Likewise.
3041 (RS6000_BTM_COMMON): Likewise.
3042
3043 * config/rs6000/rs6000.md (cpu attribute): Add power8.
3044 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3045 (enum rs6000_vector): Add power8 vector support.
3046
73a1a707
RR
30472013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3048
3049 PR target/19599
3050 PR target/57340
3051 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3052 (any_sibcall_could_use_r3): this and handle indirect calls.
3053 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3054
d28073d4
BS
30552013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3056
3057 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3058
bee0b10c
RB
30592013-05-22 Richard Biener <rguenther@suse.de>
3060
3061 PR middle-end/57349
3062 * profile.c (branch_prob): Do not split blocks that are
3063 abnormally receiving from ECF_RETURNS_TWICE functions.
3064
98409b51
RS
30652013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3066
3067 * recog.c (offsettable_address_addr_space_p): Fix calculation of
3068 address mode. Move pointer mode initialization to the same place.
3069
c0602ab8
MZ
30702013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3071
3072 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3073 while it has any effect.
3074
4f7a634e
ER
30752013-05-21 Easwaran Raman <eraman@google.com>
3076
3077 PR tree-optimization/57322
9daf6dbb
ER
3078 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3079 UID of the statement added to the BB to be 1.
4f7a634e 3080
a4ce1258
JJ
30812013-05-21 Jakub Jelinek <jakub@redhat.com>
3082
3083 PR tree-optimization/57331
70cc1536
UB
3084 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3085 of conversion from pointer type to integral type with integer.
a4ce1258 3086
1b14621a
MJ
30872013-05-21 Martin Jambor <mjambor@suse.cz>
3088
3089 PR lto/57289
3090 * ipa-prop.c (ipa_read_node_info): Process param_used and
3091 controlled_uses in the same order as when writing.
3092
e60661f0
MG
30932013-05-21 Magnus Granberg <baldrick@free.fr>
3094
3095 PR plugins/56754
ee49aa34 3096 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 3097
4a61be9a
RB
30982013-05-21 Richard Biener <rguenther@suse.de>
3099
3100 PR tree-optimization/57318
3101 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3102 estimate stmts with side-effects as likely eliminated.
3103
c52da5f7
RB
31042013-05-21 Richard Biener <rguenther@suse.de>
3105
3106 PR tree-optimization/57330
3107 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3108 preserve the call stmts fntype.
3109
7ec67e2a
RB
31102013-05-21 Richard Biener <rguenther@suse.de>
3111
3112 PR tree-optimization/57303
3113 * tree-ssa-sink.c (statement_sink_location): Improve killing
3114 stmt detection and properly handle self-assignments.
3115
b112d513
CB
31162013-05-21 Christian Bruel <christian.bruel@st.com>
3117
55805e54
YR
3118 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3119 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
3120 registers. Set register size out of the PARALLEL loop.
3121
14c2ec26
OE
31222013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
3123
3124 PR target/56547
3125 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3126 (*fmasf4, *fmasf4_media): New insns.
3127
da734fa1
RS
31282013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3129
3130 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3131 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3132 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3133 (mips_idiv_insns): Update the comments to say that the returned
3134 instruction counts are in units of BASE_INSN_LENGTH.
3135 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3136 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
3137 using 2 rather than 4 as the length of indirect MIPS16 and
3138 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
3139 length of a NOP. Don't divide MIPS16 lengths by 2.
3140 (mips16_split_long_branches): Assume a branch is long if the
3141 length is greater than 4 rather than 8.
3142 * config/mips/mips.md (length): Give MIPS16 lengths directly,
3143 rather than multiplying them by 2. Multiply instruction counts
3144 by BASE_INSN_LENGTH rather than 4.
3145 (*jump_mips16, tls_get_tp_mips16_<mode>)
3146 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3147
13719e8b
RS
31482013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3149
3150 * config/mips/mips.md (extended_mips16): Remove branch case.
3151 (length): Remove duplicated extended_mips16 test.
3152
c3850d14
RS
31532013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3154
3155 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3156
8da2e059
RS
31572013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
3158
3159 * recog.h (Recog_data): Rename to...
3160 (recog_data_d): ...this.
3161 (recog_data): Update accordingly.
3162 * recog.c (recog_data): Likewise.
3163 * reload.c (save_recog_data): Likewise.
3164 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3165 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3166
2df013f3
JB
31672013-05-17 Julian Brown <julian@codesourcery.com>
3168
3169 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3170 found in a REG_EQUAL note, invalidate it.
3171
933f507d
ER
31722013-05-17 Easwaran Raman <eraman@google.com>
3173
3174 * tree-ssa-reassoc.c (find_insert_point): New function.
3175 (insert_stmt_after): Likewise.
3176 (get_def_stmt): Likewise.
3177 (ensure_ops_are_available): Likewise.
3178 (not_dominated_by): Likewise.
3179 (rewrite_expr_tree): Do not move statements beyond what is
3180 necessary. Remove call to swap_ops_for_binary_stmt...
3181 (reassociate_bb): ... and move it here.
3182 (build_and_add_sum): Assign UIDs for new statements.
3183 (linearize_expr): Likewise.
3184 (do_reassoc): Renumber gimple statement UIDs.
3185
e01c7cca
JH
31862013-05-17 Jan Hubicka <jh@suse.cz>
3187
3188 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3189 weakrefs.
3190 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
3191 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3192 weakrefs.
e01c7cca
JH
3193 (output_weakrefs): Update.
3194
c3272a92
PCC
31952013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
3196 Martin Jambor <mjambor@suse.cz>
3197
3198 PR middle-end/57276
3199 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3200 value that corresponds to the given aggval is found in values vector.
3201
11c2aa39
UB
32022013-05-17 Uros Bizjak <ubizjak@gmail.com>
3203
3204 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3205 sse, sse2, sse3, ssse3 and sse4a flags to options.
3206
abecc8c6
DM
32072013-05-17 David Malcolm <dmalcolm@redhat.com>
3208
3209 * gengtype-state.c: (s_expr_writer): New class, to handle
3210 prettifying of output layout of s-expressions.
3211 (state_writer): New class, to write out gtype.state.
3212 (state_written_type_count): Move this variable into member data of
3213 state_writer.
3214 (s_expr_writer::s_expr_writer): New code: constructor for new class
3215 (state_writer::state_writer(): ditto
3216 (s_expr_writer::write_new_line): New function
3217 (s_expr_writer::write_any_indent): ditto
3218 (s_expr_writer::begin_s_expr): ditto
3219 (s_expr_writer::end_s_expr): ditto
3220 (write_state_fileloc): convert to method of state_writer...
3221 (state_writer:: write_state_fileloc): ...and use methods of
3222 s_expr_writer to write indentation into the gtype.state output file
3223 to visually represent the hierarchical structure of the list
3224 structures
3225 (write_state_fields): ditto, renaming to...
3226 (state_writer::write_state_fields)
3227 (write_state_a_string): ditto, renaming to...
3228 (state_writer::write_state_a_string)
3229 (write_state_string_option): ditto, renaming to...
3230 (state_writer::write_state_string_option)
3231 (write_state_type_option): ditto, renaming to...
3232 (state_writer::write_state_type_option)
3233 (write_state_nested_option): ditto, renaming to...
3234 (state_writer::write_state_nested_option)
3235 (write_state_option): ditto, renaming to...
3236 (state_writer::write_state_option)
3237 (write_state_options): ditto, renaming to...
3238 (state_writer::write_state_options)
3239 (write_state_lang_bitmap): ditto, renaming to...
3240 (state_writer::write_state_lang_bitmap)
3241 (write_state_version): ditto, renaming to...
3242 (state_writer::write_state_version)
3243 (write_state_scalar_type): ditto, renaming to...
3244 (state_writer::write_state_scalar_type)
3245 (write_state_string_type): ditto, renaming to...
3246 (state_writer::write_state_string_type)
3247 (write_state_undefined_type): ditto, renaming to...
3248 (state_writer::write_state_undefined_type)
3249 (write_state_struct_union_type): ditto, renaming to...
3250 (state_writer::write_state_struct_union_type)
3251 (write_state_struct_type): ditto, renaming to...
3252 (state_writer::write_state_struct_type)
3253 (write_state_user_struct_type): ditto, renaming to...
3254 (state_writer::write_state_user_struct_type)
3255 (write_state_lang_struct_type): ditto, renaming to...
3256 (state_writer::write_state_lang_struct_type)
3257 (write_state_param_struct_type): ditto, renaming to...
3258 (state_writer::write_state_param_struct_type)
3259 (write_state_pointer_type): ditto, renaming to...
3260 (state_writer::write_state_pointer_type)
3261 (write_state_array_type): ditto, renaming to...
3262 (state_writer::write_state_array_type)
3263 (write_state_gc_used): ditto, renaming to...
3264 (state_writer::write_state_gc_used)
3265 (write_state_common_type_content): ditto, renaming to...
3266 (state_writer::write_state_common_type_content)
3267 (write_state_type): ditto, renaming to...
3268 (state_writer::write_state_type)
3269 (write_state_pair_list): ditto, renaming to...
3270 (state_writer::write_state_pair_list)
3271 (write_state_pair): ditto, renaming to...
3272 (state_writer::write_state_pair)
3273 (write_state_typedefs): ditto, renaming to...
3274 (state_writer::write_state_typedefs)
3275 (write_state_structures): ditto, renaming to...
3276 (state_writer::write_state_structures)
3277 (write_state_param_structs): ditto, renaming to...
3278 (state_writer::write_state_param_structs)
3279 (write_state_variables): ditto, renaming to...
3280 (state_writer::write_state_variables)
3281 (write_state_srcdir): ditto, renaming to...
3282 (state_writer::write_state_srcdir)
3283 (write_state_files_list): ditto, renaming to...
3284 (state_writer::write_state_files_list)
3285 (write_state_languages): ditto, renaming to...
3286 (state_writer::write_state_languages)
3287 (write_state): create a state_writer instance and use it when
3288 writing out the state file
3289
d6545f29
MS
32902013-05-17 Mike Stump <mikestump@comcast.net>
3291
816a3f73 3292 PR rtl-optimization/57304
d6545f29
MS
3293 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3294 accessing DF_REF_REAL_LOC.
3295
38c821cf
JJ
32962013-05-17 Jakub Jelinek <jakub@redhat.com>
3297
3298 PR rtl-optimization/57281
3299 PR rtl-optimization/57300
3300 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3301 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3302 what the other splitter did if the registers are dead.
3303
2a293391
RB
33042013-05-17 Richard Biener <rguenther@suse.de>
3305
3306 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
3307 MEM_REF offsets.
3308
17042d2b
JJ
33092013-05-17 Jakub Jelinek <jakub@redhat.com>
3310
3311 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
3312 linking.
3313
5b115c1f
MP
33142013-05-17 Marek Polacek <polacek@redhat.com>
3315
11c2aa39
UB
3316 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
3317 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 3318
52d84413
JJ
33192013-05-17 Jakub Jelinek <jakub@redhat.com>
3320
68119618
JJ
3321 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
3322 vect_external_def oprnd1 with loop_vinfo, try to emit
3323 optional cast, negation and and stmts on the loop preheader
3324 edge instead of into the pattern def seq.
3325
52d84413
JJ
3326 PR tree-optimization/57051
3327 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
3328 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
3329
17b962bd
NC
33302013-05-16 Nick Clifton <nickc@redhat.com>
3331
3332 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
3333 (rl78_is_naked_func): New function.
56aefbf7
UB
3334 (rl78_expand_prologue): Skip prologue generation for naked functions.
3335 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
17b962bd
NC
3336 * doc/extend.texi (naked): Add RL78 to the list of processors
3337 that supports this attribute.
3338
b1a0f84e
JL
33392013-05-16 Jeff Law <law@redhat.com>
3340
3341 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
3342
af0e415b
UB
33432013-05-16 Uros Bizjak <ubizjak@gmail.com>
3344
3345 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
3346 cache parameters using detect_caches_amd also for CYRIX,
3347 NSC and TM2 signatures.
3348
19db293a
UB
33492013-05-16 Uros Bizjak <ubizjak@gmail.com>
3350 Dzianis Kahanovich <mahatma@eu.by>
3351
3352 PR target/45359
3353 PR target/46396
3354 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
3355 VIA/Centaur processors and determine their cache parameters
3356 using detect_caches_amd.
3357
251a41b9
TJ
33582013-05-16 Teresa Johnson <tejohnson@google.com>
3359
3360 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
3361 (rtl_verify_edges): New function.
3362 (rtl_verify_bb_insns): Ditto.
3363 (rtl_verify_bb_pointers): Ditto.
3364 (rtl_verify_bb_insn_chain): Ditto.
3365 (rtl_verify_fallthru): Ditto.
3366 (rtl_verify_bb_layout): Ditto.
3367 (rtl_verify_flow_info_1): Outline checks into new functions.
3368 (rtl_verify_flow_info): Ditto.
3369
f14540b6
SE
33702013-05-16 Steve Ellcey <sellcey@imgtec.com>
3371
3372 * cfghooks.c (copy_bbs): Add update_dominance argument.
3373 * cfghooks.h (copy_bbs): Update prototype.
3374 * tree-cfg.c (gimple_duplicate_sese_region):
3375 Add update_dominance argument.
3376 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
3377 * tree-ssa-loop-ch.c (copy_loop_headers): Update
3378 gimple_duplicate_sese_region call.
3379 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
3380 Update copy_bbs call.
3381 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
3382 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
3383
7e9a3abb
JJ
33842013-05-16 Jakub Jelinek <jakub@redhat.com>
3385
3386 * tree-vectorizer.h (NUM_PATTERNS): Increment.
3387 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
3388 vect_recog_rotate_pattern.
3389 (vect_recog_rotate_pattern): New function.
3390
427b248d
JM
33912013-05-16 Jason Merrill <jason@redhat.com>
3392
3393 * Makefile.in (LLINKER): New variable.
3394 (mostlyclean): Remove link mutex.
3395 * configure.ac: Handle --enable-link-mutex.
3396 * lock-and-run.sh: New script.
3397
b871e3d2
RR
33982013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3399
3400 PR target/19599
3401 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
3402 for NULL decl.
3403
ce858126
RO
34042013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3405
3406 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
3407
798d3d04
GY
34082013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
3409
3410 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
3411 * config/arm/arm.c (next_consecutive_mem): New function.
3412 (gen_movmem_ldrd_strd): Likewise.
3413 * config/arm/arm.md (movmemqi): Update condition and code.
3414 (unaligned_loaddi, unaligned_storedi): New patterns.
3415
0baddc45
RO
34162013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3417
3418 * config.gcc: Obsolete *-*-solaris2.9*.
3419 * doc/install.texi (Specific, *-*-solaris2*): Document it.
3420
aa9d5bcf
RB
34212013-05-16 Richard Biener <rguenther@suse.de>
3422
3423 * passes.c (init_optimization_passes): Move pass_parallelize_loops
3424 earlier, after GRAPHITE transforms and IV canonicalization.
3425
5a0f4dd3
JJ
34262013-05-16 Jakub Jelinek <jakub@redhat.com>
3427
3428 * omp-low.c (extract_omp_for_data): For collapsed loops,
3429 if at least one of the loops is known at compile time to
3430 iterate zero times, set count to 0.
3431 (expand_omp_regimplify_p): New function.
3432 (expand_omp_for_generic): For collapsed loops, if at least
3433 one of the loops isn't known to iterate at least once,
3434 add runtime check with setting count to 0.
3435 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
3436 For unsigned types if it isn't known at compile time that
3437 the loop will iterate at least once, add runtime check to bypass
3438 the whole loop if initial condition isn't true.
3439
e3753785
NS
34402013-05-16 Nathan Sidwell <nathan@codesourcery.com>
3441
3442 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
3443
43bb4dd1
MG
34442013-05-16 Marc Glisse <marc.glisse@inria.fr>
3445
3446 PR middle-end/57286
3447 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
3448 transformations to avoid an infinite loop.
3449
3571dde6
MP
34502013-05-16 Marek Polacek <polacek@redhat.com>
3451
3452 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
3453
b8b3f0ca
LE
34542013-05-15 Leif Ekblad <leif@rdos.net>
3455
3456 * config/i386/i386.c (ix86_decompose_address): Use
3457 DEFAULT_TLS_SEG_REG to access TLS segment register.
3458 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
3459 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
3460 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
3461
e299a383
RS
34622013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
3463
3464 PR target/57260
3465 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
3466 sibling calls to functions that would normally be lazily bound,
3467 unless $gp is call-clobbered.
3468
e7208ea3
UB
34692013-05-15 Uros Bizjak <ubizjak@gmail.com>
3470
19db293a 3471 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 3472 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
3473 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
3474 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
3475 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
3476 of TARGET_3DNOW.
3477 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
3478
e7413f3d
AS
34792013-05-15 Andreas Schwab <schwab@suse.de>
3480
3481 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
3482 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
3483 third operand.
3484
ad4db775
TJ
34852013-05-15 Teresa Johnson <tejohnson@google.com>
3486
3487 * loop-unroll.c (report_unroll_peel): Check decision before
3488 emitting unroll/peel message.
3489
af205f67
TJ
34902013-05-15 Teresa Johnson <tejohnson@google.com>
3491
3492 * function.h (has_bb_partition): New rtl_data flag.
3493 (bb_reorder_complete): Ditto.
3494 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
3495 instead of flag_reorder_blocks_and_partition.
3496 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
3497 with some enhancements.
3498 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
3499 * bb-reorder.c (connect_traces): Check for has_bb_partition
3500 instead of flag_reorder_blocks_and_partition.
3501 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
3502 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
3503 verify_hot_cold_block_grouping.
3504 (partition_hot_cold_basic_blocks): Set has_bb_partition.
3505
9adcfa3c
RR
35062013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3507
3508 PR target/19599
3509 * config/arm/predicates.md (call_insn_operand): New predicate.
3510 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
3511 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
3512 if insn is not a tail call.
3513 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
3514 registers.
3515 * config/arm/arm.h (enum reg_class): New caller save register class.
3516 (REG_CLASS_NAMES): Likewise.
3517 (REG_CLASS_CONTENTS): Likewise.
3518 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
3519 without decls.
3520
ccb3ad87
RB
35212013-05-15 Richard Biener <rguenther@suse.de>
3522
3523 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
3524 of MSG_OPTIMIZED_LOCATIONS.
3525 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
3526 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
3527 message.
3528 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
3529 of MSG_OPTIMIZED_LOCATIONS.
3530 (execute_vect_slp): Likewise.
3531 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
3532 (vect_create_cond_for_alias_checks): Likewise.
3533 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
3534 (vect_recog_widen_mult_pattern): Likewise.
3535 (vect_recog_widen_sum_pattern): Likewise.
3536 (vect_recog_over_widening_pattern): Likewise.
3537 (vect_recog_widen_shift_pattern): Likewise.
3538 (vect_recog_vector_vector_shift_pattern): Likewise.
3539 (vect_recog_divmod_pattern): Likewise.
3540 (vect_recog_mixed_size_cond_pattern): Likewise.
3541 (vect_recog_bool_pattern): Likewise.
3542 (vect_pattern_recog_1): Likewise.
3543
48b1474e
MJ
35442013-05-15 Martin Jambor <mjambor@suse.cz>
3545
3546 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
3547 non-functions to builtin_unreachable.
3548 * ipa-inline-transform.c (inline_call): Do not assert estimates were
3549 correct when new direct edges were discovered.
3550
9de04252
MJ
35512013-05-15 Martin Jambor <mjambor@suse.cz>
3552
3553 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
3554 header, print symbol order instead of node uid, print more information
3555 about indirect edge targets.
3556 (ipa_make_edge_direct_to_target): Print symbol order instead of node
3557 uids.
3558 (ipa_make_edge_direct_to_target): Likewise.
3559 (remove_described_reference): Likewise.
3560 (propagate_controlled_uses): Likewise.
3561 (ipa_print_node_params): Also print symbol order.
3562 (ipcp_transform_function): Print symbol order instead of node uids.
3563 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
3564 (cgraph_get_create_real_symbol_node): Likewise.
3565 * ipa-cp.c (print_lattice): Likewise.
3566 (print_all_lattices): Likewise.
3567 (determine_versionability): Likewise.
3568 (initialize_node_lattices): Likewise.
3569 (estimate_local_effects): Likewise.
3570 (update_profiling_info): Likewise.
3571 (create_specialized_node): Likewise.
3572 (perhaps_add_new_callers): Likewise.
3573 (decide_about_value): Likewise.
3574 (decide_whether_version_node): Likewise.
3575 (identify_dead_nodes): Likewise.
3576 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
3577 (dump_inline_summary): Likewise.
3578 (estimate_node_size_and_time): Likewise.
3579 (inline_analyze_function): Likewise.
3580 * ipa-inline.c (report_inline_failed_reason): Likewise.
3581 (want_early_inline_function_p): Likewise.
3582 (edge_badness): Likewise.
3583 (update_edge_key): Likewise.
3584 (inline_small_functions): Likewise. Add dumping of order to two other
3585 dumps.
3586 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
3587 instead of node uids.
3588 (propagate_pure_const): Likewise.
3589 (propagate_pure_const): Likewise.
3590 * ipa-utils.c (dump_cgraph_node_set): Likewise.
3591 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
3592 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
3593 of node uids.
3594 * tree-pretty-print.c (dump_function_header): Likewise.
3595 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
3596 Print symbol order instead of node uids.
3597
1dd03b91
AK
35982013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3599
3600 * config/s390/s390.c (s390_register_move_cost): Don't impose the
3601 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
3602
fdf6a7b9
RB
36032013-05-15 Richard Biener <rguenther@suse.de>
3604
3605 PR tree-optimization/57275
3606 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
3607 return value for fail to do runtime alias checks for gather loads.
3608
2d6e4603
JH
36092013-05-15 Jan Hubicka <jh@suse.cz>
3610
3611 PR lto/57038
3612 PR lto/47375
e7208ea3
UB
3613 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
3614 weakrefs are not external.
3615 (lto_symtab_merge_decls): Fix thinko when dealing with
3616 non-lto_symtab decls.
2d6e4603
JH
3617 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
3618 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
3619 * varpool.c (dump_varpool_node): Dump more flags.
3620
83f44b39
GG
36212013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3622
3623 * config/i386/i386.c (processor_alias_table): Add instruction
3624 FSGSBASE for AMD bdver3 architecture.
3625
2e55d062
JJ
36262013-05-14 Jakub Jelinek <jakub@redhat.com>
3627
3628 * tree.c (warn_deprecated_use): Print file:line using locus color.
3629 * diagnostic.c (diagnostic_report_current_module): Print file:line
3630 and file:line:column using locus color.
3631
0bfdb81e
MS
36322013-05-14 Mike Stump <mikestump@comcast.net>
3633
3634 * gdbinit.in: Add __null.
3635
a508ef22
MS
36362013-05-14 Mike Stump <mikestump@comcast.net>
3637
3638 * recog.h: Rename struct recog_data to Recog_data.
3639 * recog.c: Likewise.
3640 * reload.c (can_reload_into): Likewise.
3641 * config/picochip/picochip.c: Likewise.
3642
e7180acb
MS
36432013-05-14 Mike Stump <mikestump@comcast.net>
3644
3645 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
3646
61216c26
SB
36472013-05-14 Steven Bosscher <steven@gcc.gnu.org>
3648
fd6beed4
SB
3649 * resource.h (struct resources): Remove unch_memory member.
3650 (CLEAR_RESOURCE): Don't clear unch_memory.
3651 * resource.c (mark_referenced_resources): Don't set it.
3652 (mark_set_resources): Likewise.
3653 (mark_target_live_regs): Don't clear it.
3654 (init_resource_info): Likewise.
3655 * reorg.c (resource_conflicts_p): Don't compare it.
3656 (redundant_insn): Don't set it.
3657
61216c26
SB
3658 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
3659 Remove prototypes.
3660 * emit-rtl.c (next_label): Remove unused function.
3661 (skip_consecutive_labels, link_cc0_insns): Move to ...
3662 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
3663 only place where these functions are used, and make them static.
3664
418d1b87
MG
36652013-05-14 Marc Glisse <marc.glisse@inria.fr>
3666
3667 * fold-const.c (fold_negate_expr): Handle vectors.
3668 (fold_truth_not_expr): Make it static.
3669 (fold_invert_truthvalue): New static function.
3670 (invert_truthvalue_loc): Handle vectors. Do not call
3671 fold_truth_not_expr directly.
3672 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
3673 <TRUTH_NOT_EXPR>: Do not cast to boolean.
3674 (fold_comparison): Handle vector constants.
3675 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
3676 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
3677 * tree.h (fold_truth_not_expr): Remove declaration.
3678
fc21784d
JG
36792013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
3680
3681 * config/aarch64/aarch64-simd.md
3682 (aarch64_vcond_internal<mode>): Rename to...
3683 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
3684 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
3685 float modes. Clarify all iterator modes.
3686 (vcond<mode><mode>): Use new name for vcond expanders.
3687 (vcond<v_cmp_result><mode>): Likewise.
3688 (vcondu<mode><mode>: Likewise.
3689 * config/aarch64/iterators.md (VDQF_COND): New.
3690
d4c52634
MG
36912013-05-14 Marc Glisse <marc.glisse@inria.fr>
3692
3693 PR bootstrap/57266
3694 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
3695 variable for the shift amount. Check that we shift by non-negative
3696 amounts.
3697
2b261262
CLT
36982013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
3699
3700 PR target/42017
3701 * config/arm/arm.h (EPILOGUE_USES): Only return true
3702 for LR_REGNUM after epilogue_completed.
3703
6e022d7b
JR
37042013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
3705
3706 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 3707 is error_mark_node.
6e022d7b 3708
56cf7859
RO
37092013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3710
3711 PR target/57261
3712 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
3713 and Solaris 11+/x86 with gld.
3714 * configure: Regenerate.
3715
75776c6d
JJ
37162013-05-14 Jakub Jelinek <jakub@redhat.com>
3717
3718 * expmed.c (expand_shift_1): Canonicalize rotates by
3719 constant bitsize / 2 to bitsize - 1.
7f998021 3720 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
3721 case ROTATERT>: Likewise.
3722
3723 Revert:
3724 2013-05-10 Jakub Jelinek <jakub@redhat.com>
3725
3726 * config/i386/i386.md (rotateinv): New code attr.
3727 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3728 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3729 roll $31, %eax, etc.
3730
df35498a
RB
37312013-05-14 Richard Biener <rguenther@suse.de>
3732
3733 PR middle-end/57235
3734 * tree-eh.c (sink_clobbers): Give up for successors with
3735 multiple predecessors and no virtual uses.
3736
cc6e7ece
EB
37372013-05-14 Eric Botcazou <ebotcazou@adacore.com>
3738
3739 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
3740 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
3741
f778dd4d
JJ
37422013-05-14 Jakub Jelinek <jakub@redhat.com>
3743
3744 PR middle-end/57251
3745 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
3746 the case when both op0 and op1 have VOIDmode.
3747
bad4df9b
KP
37482013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
3749
3750 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
3751 in multiply-accumulate mode.
3752
56f3e9ac
GW
37532013-05-13 Guozhi Wei <carrot@google.com>
3754
3755 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
3756
a3d7ab92
KT
37572013-05-13 Kai Tietz <ktietz@redhat.com>
3758
3759 PR target/56975
3760 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 3761 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 3762 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 3763 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
3764 (ix86_expand_prologue): Likewise.
3765 (ix86_expand_split_stack_prologue): Likewise.
3766 (legitimate_pic_address_disp_p): Likewise.
3767 (legitimize_pic_address): Likewise.
3768 (legitimize_tls_address): Likewise.
3769 (legitimize_pe_coff_symbol): Likewise.
3770 (output_pic_addr_const): Likewise.
3771 (construct_plt_address): Likewise.
3772 (ix86_expand_call): Likewise.
3773 (x86_output_mi_thunk): Likewise.
3774 (x86_function_profiler): Likewise.
3775
c59b7e28
SN
37762013-05-13 Sofiane Naci <sofiane.naci@arm.com>
3777
3778 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
3779 similar switch cases.
3780 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
3781 (aarch64_simd_mov_to_<mode>low): Delete.
3782 (aarch64_simd_mov_to_<mode>high): Delete.
3783 (move_lo_quad_<mode>): Add w<-r alternative.
3784 (aarch64_simd_move_hi_quad_<mode>): Likewise.
3785 (aarch64_simd_mov_from_*): Update type attribute.
3786 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
3787 statement.
3788
5f28524a
JH
37892013-05-13 Jan Hubicka <jh@suse.cz>
3790
3791 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
3792 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
3793 ix86_expand_epilogue, emit_i387_cw_initialization,
3794 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
3795 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 3796
ae6fa899
JJ
37972013-05-13 Jakub Jelinek <jakub@redhat.com>
3798
3799 PR tree-optimization/45216
3800 PR tree-optimization/57157
3801 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
3802 the (-Y) & (B - 1) variant if OP is |.
3803 * expmed.c (expand_shift_1): For rotations by const0_rtx just
3804 return shifted. Use (-op1) & (prec - 1) as other_amount
3805 instead of prec - op1.
3806
4502fe8d
MJ
38072013-05-13 Martin Jambor <mjambor@suse.cz>
3808
3809 PR middle-end/42371
3810 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
3811 (ipa_constant_data): New type.
3812 (ipa_jump_func): Use ipa_constant_data to hold information about
3813 constant jump functions.
3814 (ipa_get_jf_constant): Adjust to jump function type changes.
3815 (ipa_get_jf_constant_rdesc): New function.
3816 (ipa_param_descriptor): New field controlled_uses.
3817 (ipa_get_controlled_uses): New function.
3818 (ipa_set_controlled_uses): Likewise.
3819 * ipa-ref.h (ipa_find_reference): Declare.
3820 * ipa-prop.c (ipa_cst_ref_desc): New type.
3821 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
3822 changes.
3823 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
3824 New parameter cs. Adjust all callers.
3825 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
3826 (remove_described_reference): New function.
3827 (jfunc_rdesc_usable): Likewise.
3828 (try_make_edge_direct_simple_call): Decrement controlled use count,
3829 attempt to remove reference if it hits zero.
3830 (combine_controlled_uses_counters): New function.
3831 (propagate_controlled_uses): Likewise.
3832 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
3833 (ipa_edge_duplication_hook): Duplicate reference descriptions.
3834 (ipa_print_node_params): Print described use counter.
3835 (ipa_write_jump_function): Adjust to jump function type changes.
3836 (ipa_read_jump_function): New parameter CS, pass it to
3837 ipa_set_jf_constant. Adjust caller.
3838 (ipa_write_node_info): Stream controlled use count
3839 (ipa_read_node_info): Likewise.
3840 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
3841 asserting.
3842 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
3843 count. Remove cloning-added reference if it reaches zero.
3844 * ipa-ref.c (ipa_find_reference): New function.
3845
0864bfc2
GG
38462013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3847
e7208ea3 3848 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
3849 alignment values for AMD BD and BT architectures.
3850
640bfeb2
MG
38512013-05-13 Marc Glisse <marc.glisse@inria.fr>
3852
3853 * tree-vect-generic.c (uniform_vector_p): Move ...
3854 * tree.c (uniform_vector_p): ... here.
3855 * tree.h (uniform_vector_p): Declare it.
3856 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
3857 into a scalar.
3858
3a60f32b
JJ
38592013-05-13 Jakub Jelinek <jakub@redhat.com>
3860
198fe1bf
JJ
3861 PR tree-optimization/57230
3862 * tree-ssa-strlen.c (handle_char_store): Record length for
3863 array store from STRING_CST.
3864
3a60f32b
JJ
3865 PR tree-optimization/57230
3866 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
3867 check.
3868
566be57c
JR
38692013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
3870
3871 * config/epiphany/epiphany.c (epiphany_init): Check size of
3872 NUM_MODES_FOR_MODE_SWITCHING.
3873 (epiphany_expand_prologue):
3874 Remove CONFIG_REGNUM initial value handling code.
3875 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
3876 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 3877 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
3878 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
3879 Don't return 1 for FP_MODE_NONE.
3880 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
3881 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
3882 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
3883 * config/epiphany/epiphany.md (save_config): New pattern.
3884
0f2c2331
UB
38852013-05-12 Uros Bizjak <ubizjak@gmail.com>
3886
3887 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
3888
5b3f93c7
UB
38892013-05-10 Uros Bizjak <ubizjak@gmail.com>
3890
3891 * config/i386/i386.md (memory): Handle sseishft1.
3892 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
3893 (*vec_extractv2di_1): Ditto.
3894
1f873f0e
VM
38952013-05-10 Vladimir Makarov <vmakarov@redhat.com>
3896
3897 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
3898 saved registers.
3899
341427fa 39002013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
3901
3902 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
3903 Add mthumb/march=armv7-a multilib.
3904 Add mthumb/march=armv7-r multilib.
3905 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
3906
9e69bdde
RC
39072013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
3908
3909 * config/v850/t-rtems: Add more multilibs.
3910
9ff09a22
RB
39112013-05-10 Richard Biener <rguenther@suse.de>
3912
3913 PR tree-optimization/57214
3914 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
3915 not propagate from SSA names that occur in abnormal PHI nodes.
3916
a5e0cd1d
MG
39172013-05-10 Marc Glisse <marc.glisse@inria.fr>
3918
3919 * stor-layout.c (element_precision): New function.
3920 * machmode.h (element_precision): Declare it.
3921 * tree.c (build_minus_one_cst): New function.
3922 (element_precision): Likewise.
3923 * tree.h (build_minus_one_cst): Declare new function.
3924 (element_precision): Likewise.
3925 * fold-const.c (operand_equal_p): Use element_precision.
3926 (fold_binary_loc): Handle vector types.
3927 * convert.c (convert_to_integer): Use element_precision.
3928 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
3929 separately.
3930
cb2558bc
RS
39312013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
3932
3933 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
3934 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
3935 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
3936 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3937 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
3938 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
3939 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
3940 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
3941 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
3942 (Uuw8): New constraints.
3943 (Usb4): Move into alphabetical order.
3944 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
3945 (sd8_operand, ub8_operand, uw8_operand): New predicates.
3946 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
3947 previously unnamed patterns.
3948 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
3949 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
3950 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
3951 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
3952 of set_attr_alternative/if_then_else. Use extended_mips16 instead
3953 of specific lengths.
3954
cb3b8d33
JJ
39552013-05-10 Jakub Jelinek <jakub@redhat.com>
3956
6f93c008
JJ
3957 * config/i386/i386.md (rotateinv): New code attr.
3958 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
3959 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
3960 roll $31, %eax, etc.
3961
cb3b8d33
JJ
3962 PR tree-optimization/45216
3963 PR tree-optimization/57157
3964 * tree-ssa-forwprop.c (simplify_rotate): New function.
3965 (ssa_forward_propagate_and_combine): Call it.
3966
afb119be
RB
39672013-05-10 Richard Biener <rguenther@suse.de>
3968
3969 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3970 disable peeling when we version for aliasing.
3971 (vector_alignment_reachable_p): Honor explicit user alignment.
3972 (vect_supportable_dr_alignment): Likewise.
3973 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
3974 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
3975 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
3976 then peeling to arrange for the cost-model check to come first.
3977
01ae4861
AM
39782013-05-10 Alan Modra <amodra@gmail.com>
3979
3980 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
3981 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
3982 * configure: Regenerate.
3983
ebc9a431
AM
39842013-05-10 Alan Modra <amodra@gmail.com>
3985
3986 PR target/55033
3987 * varasm.c (default_elf_select_section): Move !DECL_P check..
3988 (get_named_section): ..to here before calling get_section_name.
3989 Adjust assertion.
3990 (default_section_type_flags): Add DECL_P check.
3991 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
3992 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
3993
d4bca93c
JR
39942013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
3995
3996 * config/epiphany/epiphany.c (epiphany_expand_prologue):
3997 When using gen_stack_adjust_str with a register offset, add a
3998 REG_FRAME_RELATED_EXPR note.
3999
60ca9a65
UB
40002013-05-09 Uros Bizjak <ubizjak@gmail.com>
4001
4002 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4003 (*vec_extractv4si_zext_mem): Ditto.
4004 (*vec_extractv2di): Add 0->x and x->x alternatives.
4005 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4006 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4007
a3409c02
JM
40082013-05-09 Jason Merrill <jason@redhat.com>
4009
0138d6b2
JM
4010 N3639 C++1y VLA support
4011 * gimplify.c (gimplify_vla_decl): Don't touch an existing
4012 DECL_VALUE_EXPR.
4013
a3409c02
JM
4014 * tree.c (build_constructor_va): New.
4015 * tree.h: Declare it.
4016
66e6b990
MJ
40172013-05-09 Martin Jambor <mjambor@suse.cz>
4018
4019 PR lto/57084
4020 * gimple-fold.c (canonicalize_constructor_val): Call
4021 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4022
64cfa6c0
JH
40232013-05-09 Jan Hubicka <jh@suse.cz>
4024 Richard Biener <rguenther@suse.de>
4025
4026 PR lto/54095
4027 * symtab.c (symtab_make_decl_local): Do not add private names.
4028
c3167b00
JH
40292013-05-09 Jan Hubicka <jh@suse.cz>
4030
4031 PR lto/54095
4032 * symtab.c (insert_to_assembler_name_hash): Handle clones.
4033 (unlink_from_assembler_name_hash): Likewise.
4034 (symtab_prevail_in_asm_name_hash, symtab_register_node,
4035 symtab_unregister_node, symtab_initialize_asm_name_hash,
4036 change_decl_assembler_name): Update.
4037
12dc6974
SN
40382013-05-09 Sofiane Naci <sofiane.naci@arm.com>
4039
4040 * config/aarch64/aarch64.md: New movtf split.
4041 (*movtf_aarch64): Update.
4042 (aarch64_movdi_tilow): Handle TF modes and rename to
4043 aarch64_movdi_<mode>low.
4044 (aarch64_movdi_tihigh): Handle TF modes and rename to
4045 aarch64_movdi_<mode>high
4046 (aarch64_movtihigh_di): Handle TF modes and rename to
4047 aarch64_mov<mode>high_di
4048 (aarch64_movtilow_di): Handle TF modes and rename to
4049 aarch64_mov<mode>low_di
4050 (aarch64_movtilow_tilow): Remove spurious whitespace.
4051 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4052 splits.
4053 (aarch64_print_operand): Update.
4054
227eb343
AM
40552013-05-09 Alan Modra <amodra@gmail.com>
4056
4057 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4058 powerpc64le.
4059 * configure: Regenerate.
4060
0b013847
UB
40612013-05-08 Uros Bizjak <ubizjak@gmail.com>
4062
4063 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4064 splitter preparation statements.
4065 * config/i386/sse.md (*vec_extract* splitters): Ditto.
4066 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4067 adjust_address_nv.
4068
1dc3d6e9
BS
40692013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4070
4071 * gimple-ssa-strength-reduction.c (count_candidates): Change
4072 return value to int.
4073 (analyze_candidates_and_replace): Change type of length to int.
4074
e61e7d28
UB
40752013-05-08 Uros Bizjak <ubizjak@gmail.com>
4076
4077 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4078 (*vec_extract<mode>): Use VI12_128 mode iterator.
4079 (*vec_extract<mode>_mem): Ditto.
4080 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4081 attribute.
4082
4fbfcf44
DN
40832013-05-08 Diego Novillo <dnovillo@google.com>
4084
4085 PR bootstrap/54659
4086
4087 Revert:
4fbfcf44
DN
4088 2012-08-17 Diego Novillo <dnovillo@google.com>
4089
e61e7d28
UB
4090 PR bootstrap/54281
4091 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4092 * config.in: Regenerate.
4093 * configure: Regenerate.
4094 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 4095
702d8703
JH
40962013-05-08 Jan Hubicka <jh@suse.cz>
4097
4098 PR lto/54095
4099 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4100 * cgraph.h (symtab_node_base): Add unique_name.
4101 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4102 input_overwrite_node, input_varpool_node): Stream unique_name.
4103 * cgraphclones.c (cgraph_create_virtual_clone,
4104 cgraph_function_versioning): Set unique_name.
4105 * ipa.c (function_and_variable_visibility): Set unique_name.
4106
8b28cf47
BS
41072013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4108
4109 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4110 (alloc_cand_and_find_basis): Restrict conditional candidate
4111 processing to CAND_MULTs.
4112
e86074fd
JH
41132013-05-08 Jan Hubicka <jh@suse.cz>
4114
4115 PR lto/54095
4116 lto-symtab.c (lto_symtab_symbol_p): New function.
4117 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4118 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4119 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4120 Skip static symbols.
4121
44398cbe
PC
41222013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
4123
4124 PR tree-optimization/57200
4125 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4126 Only call inform if the preceding warning_at returns true.
4127
f6bc1c4a
HS
41282013-05-07 Han Shen <shenhan@google.com>
4129
4130 * cfgexpand.c (record_or_union_type_has_array_p): New function.
4131 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4132 * common.opt (fstack-protector-strong): New option.
4133 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4134 * doc/invoke.texi (Optimization Options): Document
4135 "-fstack-protector-strong".
4136 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4137
4ffecb1f
SB
41382013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4139
4140 * config/mips/mips.c (mips_machine_reorg2): Return 0.
4141
5a107a0f
VM
41422013-05-07 Vladimir Makarov <vmakarov@redhat.com>
4143
4144 * ira.c (update_equiv_regs): Add insn having equiv memory even if
4145 it is not lhs of the insn.
4146 (setup_reg_equiv): Remove insn having equiv memory which it is not
4147 lhs of the insn.
4148 * lra-constraints.c (process_address): Try to improve generation
4149 code for address base + disp.
4150 (lra_constraints): Make correct the code for checking insn setting
4151 up backward equivalence. Remove insn only if it is in the init
4152 insn list.
4153 * lra-eliminations.c (update_reg_eliminate): Change return value.
4154 (lra_eliminate): Use the result.
4155
3f5783ea
UB
41562013-05-07 Uros Bizjak <ubizjak@gmail.com>
4157
4158 * config/i386/sse.md (ssescalarnummask): New mode attribute.
4159 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4160 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4161 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4162 register target operands.
4163 (*vec_extractv8hi_sse2): New pattern.
4164 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4165 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4166 (*vec_extract<mode>_mem): New insn and split pattern.
4167
8a5800b8
CL
41682013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
4169
4170 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4171 (TARGET_ASAN_SHADOW_OFFSET): Define.
4172 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4173 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4174
7bf55a70
BS
41752013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4176
4177 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4178 (incr_vec_index): Return -1 if increment not found.
4179 (create_add_on_incoming_edge): Assert if increment not found.
4180 (record_increment): Limit number of increments recorded.
4181 (all_phi_incrs_profitable): Return false if an increment not found.
4182 (replace_profitable_candidates): Don't process increments that were
4183 not recorded.
4184 (analyze_candidates_and_replace): Limit size of incr_vec.
4185
3f8825c0
RB
41862013-05-07 Richard Biener <rguenther@suse.de>
4187
4188 * calls.c (special_function_p): setjmp-like functions are leaf.
4189 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4190 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4191
fd4842cd
SN
41922013-05-07 Sofiane Naci <sofiane.naci@arm.com>
4193
4194 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4195 (aarch64_simd_mov<mode>): New expander.
4196 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4197 (aarch64_simd_mov_to_<mode>high): Likewise.
4198 (aarch64_simd_mov_from_<mode>low): Likewise.
4199 (aarch64_simd_mov_from_<mode>high): Likewise.
4200 (aarch64_dup_lane<mode>): Update.
4201 (aarch64_dup_lanedi): New instruction pattern.
4202 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4203 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4204
a7a7d10e
BS
42052013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4206
4207 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4208 (replace_mult_candidate): Remove unnecessary argument; remove
4209 unnecessary parameter from call to introduce_cast_before_cand.
4210 (replace_unconditional_candidate): Remove unnecessary parameter
4211 from call to replace_mult_candidate.
4212 (replace_conditional_candidate): Likewise.
4213 (insert_initializers): Use make_temp_ssa_name.
4214 (introduce_cast_before_cand): Remove unnecessary argument; use
4215 make_temp_ssa_name.
4216 (replace_one_candidate): Remove unnecessary argument; remove
4217 unnecessary parameter from calls to introduce_cast_before_cand.
4218 (replace_profitable_candidates): Remove unnecessary parameters
4219 from calls to replace_one_candidate.
4220
29105868
BS
42212013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4222
4223 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4224 phi def as possibly hiding a basis for a CAND_ADD whose operands
4225 have been commuted in the analysis.
4226 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4227
4095f9fa
N
42282013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4229
4230 * config/aarch64/aarch64.md
4231 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4232 shift value between 0-4.
4233
39e843e8
RB
42342013-05-07 Richard Biener <rguenther@suse.de>
4235
4236 * double-int.h (rshift): New overload.
4237 * double-int.c (rshift): New function.
4238 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4239 (create_reference_ops_from_ref): Remove.
4240 (vn_reference_insert): Use shared ops for constructing the
4241 reference and copy it.
4242
0a1a83cb
RB
42432013-05-07 Richard Biener <rguenther@suse.de>
4244
4245 PR middle-end/57190
4246 * tree-eh.c (sink_clobbers): Properly propagate
4247 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4248
43303d6f
JJ
42492013-05-07 Jakub Jelinek <jakub@redhat.com>
4250
ba7e83f8
JJ
4251 PR tree-optimization/57149
4252 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4253 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4254 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4255 uninit_undefined_value_p instead of ssa_undefined_value_p.
4256
43303d6f
JJ
4257 PR debug/57184
4258 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4259 for modifier == EXPAND_INITIALIZER.
4260
14523c25
AB
42612013-05-07 Anton Blanchard <anton@samba.org>
4262
4263 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4264 for powerpc64 little endian.
4265 * configure: Regenerate.
4266
cb7c8be9
GS
42672013-05-06 Graham Stott <grahams@btinternet.com>
4268
4269 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4270 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4271 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4272 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4273
42742013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
4275
4276 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4277 codes which allow non-lvalues.
4278
9a0ee7b0
MG
42792013-05-06 Marc Glisse <marc.glisse@inria.fr>
4280
4281 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4282 components are all 1s.
4283 (integer_minus_onep): New function.
4284 * tree.h (integer_minus_onep): Declare it.
4285 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4286 integer_minus_onep instead of integer_all_onesp.
4287
f2c17ea9
OE
42882013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4289
4290 PR target/52933
4291 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4292 variations of these patterns.
4293
f75e6a51
UB
42942013-05-06 Uros Bizjak <ubizjak@gmail.com>
4295
4296 * config/i386/i386.md (isa): Add x64_sse4 member.
4297 (enabled): Handle x64_sse4.
4298 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4299 instruction for 64bit SSE4_1 targets. Update insn attributes.
4300 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4301 instruction for SSE4_1 targets. Update insn attributes.
4302 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4303 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
4304 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
4305 const_1 selector.
4306 (*vec_extractv4si): Rename from *sse4_1_pextrd.
4307 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
4308 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
4309
a986d468
OE
43102013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4311
4312 PR target/57108
4313 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
4314
382522cb
MK
43152013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
4316
4317 * final.c (do_assembler_dialects): Don't handle curly braces and
4318 vertical bar escaped by % as dialect delimiters.
4319 (output_asm_insn): Print curly braces and vertical bar if escaped
4320 by % and ASSEMBLER_DIALECT defined.
4321 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
4322 * doc/tm.texi: Regenerated.
4323
fb0d5c60
SB
43242013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4325
fb0d5c60
SB
4326 * config/mips/mips.c: Include tree-pass.h.
4327 (mips_reorg): Split in pre- and post-dbr_schedule parts.
4328 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
4329 (pass_mips_machine_reorg2): New machine specific pass.
4330 (insert_pass_mips_machine_reorg2): New pass plugin definition.
4331 (mips_option_override): Register the new pass.
4332 * rtl.h (cleanup_barriers): Remove prototype.
4333 (dbr_schedule): Likewise.
4334 * jump.c (cleanup_barriers): Make static.
4335 * reorg.c (dbr_schedule): Likewise.
4336
aa06a978
RB
43372013-05-06 Richard Biener <rguenther@suse.de>
4338
4339 PR tree-optimization/57185
4340 * tree-parloops.c (add_field_for_reduction): Handle anonymous
4341 SSA names properly.
4342
0b953bec
UB
43432013-05-06 Uros Bizjak <ubizjak@gmail.com>
4344
4345 PR target/57106
4346 * config/i386/i386.c (add_parameter_dependencies): Add dependence
4347 between "first_arg" and "insn", not "last" and "insn".
4348
28708525
WS
43492013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4350
4351 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
4352 (find_candidates_in_block): Re-enable slsr_process_phi.
4353 (create_phi_basis): Fix double counting of candidate adjustment.
4354
0107dca2
RB
43552013-05-06 Richard Biener <rguenther@suse.de>
4356
4357 PR middle-end/57147
4358 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
4359 the edge is also fallthru, preserve it and just clear the
4360 abnormal flag.
4361 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
4362 also complex, preserve that and just clear the fallthru flag.
4363 * tree-inline.c (update_ssa_across_abnormal_edges): Also
4364 update virtual operands.
4365
470d4d13
AM
43662013-05-06 Alan Modra <amodra@gmail.com>
4367
4368 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
4369 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
4370 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
4371 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
4372 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4373 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
4374
8f1dbf8d
AM
43752013-05-06 Alan Modra <amodra@gmail.com>
4376
4377 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
4378 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
4379 (DEFAULT_ASM_ENDIAN): Define.
4380 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
4381 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
4382 Update -K PIC clause from sysv4.h.
4383 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
4384 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
4385
54890767
AM
43862013-05-06 Alan Modra <amodra@gmail.com>
4387
4388 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
4389 twice for little-endian.
4390 (ashrdi3_no_power, ashrdi3): Support little-endian.
4391
2353515d
OE
43922013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4393
4394 PR target/55303
4395 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
4396 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
4397 related expanders.
4398 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
4399 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
4400 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
4401 New predicates.
4402
33e67557
SB
44032013-05-05 Steven Bosscher <steven@gcc.gnu.org>
4404 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4405
4406 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
4407 * config/pa/pa.opt: Make mbig-switch a no-op.
4408 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
4409 (CASE_VECTOR_MODE): Always return SImode.
4410 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
4411 for the !TARGET_BIG_SWITCH case.
4412 * config/pa/pa-linux.h: Likewise.
4413 * config/pa/pa-openbsd.h: Likewise.
4414 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
4415 * config/pa/pa.md (short_jump): Remove define_insn.
4416 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
4417 (casesi0): Remove define_insn.
4418 (type): Remove btable_branch.
4419 (pa_combine_type): Likewise.
4420 (in_nullified_branch_delay): Likewise.
4421 (in_call_delay): Likewise.
4422 (define_delay): Likewise.
4423 (define_insn_reservation "Z3"): Likewise.
4424 (define_insn_reservation "Z4"): Likewise.
4425 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
4426 (pa_adjust_insn_length): Remove adjustment for btable branches.
4427 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
4428 and mno-big-switch
4429
3095685e
UB
44302013-05-05 Uros Bizjak <ubizjak@gmail.com>
4431
4432 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4433 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
4434 Add m->r,x alternatives.
4435 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
4436 splitters using SWI48x mode iterator.
4437 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
4438 TARGET_64BIT. Add m->x alternative.
4439 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
4440 Add o->x alternative. Enable for TARGET_SSE.
4441 (sse_storeq): Remove expander.
4442 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
4443 with memory input operand.
4444 (*vec_extractv2di_1 splitter): New.
4445 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
4446 * config/i386/i386.md (ssevecmodelower): New mode attribute.
4447
4b36ae28
SB
44482013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4449
4450 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
4451 (INT_LOWPART): Delete.
4452 (extract_MB): Adjust.
4453 (extract_ME): Adjust.
4454 (print_operand): Adjust.
4455
da226db2
SB
44562013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
4457
4458 * config/rs6000/predicates.md (reg_or_add_cint_operand,
4459 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4460 (reg_or_logical_cint_operand, easy_fp_constant,
4461 logical_const_operand): Delete "CONST_DOUBLE" case.
4462 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
4463 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 4464 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
4465 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
4466 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
4467 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
4468 test.
4469 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
4470 CONST_DOUBLE DImode/VOIDmode case.
4471 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
4472 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4473 CONST_DOUBLE VOIDmode case.
4474 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
4475 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
4476 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
4477 Delete CONST_DOUBLE case.
4478 (splitters for mov FMOVE64 const_double): Delete
4479 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
4480 "HOST_BITS_PER_WIDE_INT >= 64" test.
4481 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
4482 case.
4483 (mov DI const_double): Delete.
4484
40de22d6
JJ
44852013-05-04 Jakub Jelinek <jakub@redhat.com>
4486
4487 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
4488 on op shows all bits zero in mode of a lowpart subreg, return zero.
4489
5ec6aff2
MM
44902013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
4491
4492 PR target/57150
4493 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
4494 to save TFmode registers and DImode to save TImode registers for
4495 caller save operations.
4496 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
4497 mark being partially clobbered since they only use the first
4498 double word.
4499
4500 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
4501 and TDmode only use the upper 64-bits of each VSX register.
4502
2cefad90
BS
45032013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4504
4505 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
4506 (find_candidates_in_block): Disable slsr_process_phi.
4507
d6d7eee1
GW
45082013-05-03 Guozhi Wei <carrot@google.com>
4509
4510 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
4511 constructor to ...
4512 (build_init_ctor): ... here.
d6d7eee1 4513
9b92d12b
BS
45142013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4515
4516 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
4517 (slsr_cand_d): Redefine def_phi.
4518 (stride_status, phi_adjust_status, count_phis_status): New enums.
4519 (find_phi_def): New.
4520 (find_basis_for_base_expr): New.
4521 (find_basis_for_candidate): Handle hidden bases.
4522 (alloc_cand_and_find_basis): Handle phi candidates.
4523 (slsr_process_phi): New.
4524 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
4525 (create_mul_imm_cand): Likewise.
4526 (create_add_ssa_cand): Exclude phi base candidates.
4527 (create_add_imm_cand): Likewise.
4528 (slsr_process_cast): Likewise.
4529 (slsr_process_copy): Likewise.
4530 (find_candidates_in_block): Handle phi candidates.
4531 (dump_candidate): Likewise.
4532 (unconditional_cands): Delete.
4533 (unconditional_cands_with_known_stride_p): Delete.
4534 (phi_dependent_cand_p): New.
4535 (cand_increment): Handle phi-dependent candidates.
4536 (replace_dependent): Delete.
4537 (replace_mult_candidate): New.
4538 (replace_unconditional_candidate): New.
4539 (incr_vec_index): Move to avoid forward reference.
4540 (create_add_on_incoming_edge): New.
4541 (create_phi_basis): New.
4542 (replace_dependents): Delete.
4543 (replace_conditional_candidate): New.
4544 (phi_add_costs): New.
4545 (replace_uncond_cands_and_profitable_phis): New.
4546 (record_increment): Handle phi adjustments.
4547 (record_phi_increments): New.
4548 (record_increments): Handle phi adjustments.
4549 (phi_incr_cost): New.
4550 (lowest_cost_path): Handle phis.
4551 (total_savings): Likewise.
4552 (analyze_increments): Likewise.
4553 (ncd_with_phi): New.
4554 (ncd_of_cand_and_phis): New.
4555 (nearest_common_dominator_for_cands): Handle phi increments.
4556 (all_phi_incrs_profitable): New.
4557 (replace_profitable_candidates): Handle phi-dependent candidates.
4558 (analyze_candidates_and_replace): Likewise.
4559
68f073d4
TJ
45602013-05-03 Teresa Johnson <tejohnson@google.com>
4561
4562 PR bootstrap/57154
4563 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
4564 do not exceed REG_BR_PROB_BASE.
4565
a4ee7cb9
JL
45662013-05-03 Jeff Law <law@redhat.com>
4567
ade67f70 4568 PR tree-optimization/57144
a4ee7cb9
JL
4569 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
4570 operand of the condition will bit into the new type when eliminating
4571 a cast feeding a condition.
4572
47954c4e
JJ
45732013-05-03 Jakub Jelinek <jakub@redhat.com>
4574
4575 PR rtl-optimization/57130
3095685e
UB
4576 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
4577 of COMPARE as in_code to the recursive call if needed.
47954c4e 4578
3c21604f
UB
45792013-05-03 Uros Bizjak <ubizjak@gmail.com>
4580
4581 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
4582 (enabled): Handle new members.
4583 * config/i386/sse.md (*vec_concatv2si): Merge from
4584 *vec_concatv2si_sse2 and vec_concatv2si_sse.
4585 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
4586
95c03b36
JR
45872013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
4588
4589 PR tree-optimization/57027
4590 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
4591 for fnms opportunity, check we got the prerequisite kind
4592 of tree / gimple before using accessor functions.
4593
07bfc9ec
RB
45942013-05-03 Richard Biener <rguenther@suse.de>
4595
4596 * double-int.h (lshift): New overload without precision
4597 and arith argument.
4598 (operator *=, operator +=, operator -=): Move ...
4599 * double-int.c (operator *=, operator +=, operator -=): ... here
4600 and implement more efficiently.
4601 (mul_double_with_sign): Remove.
4602 (lshift_double): Adjust to take unsinged shift argument, push
4603 dispatching code to callers.
4604 (mul_double_wide_with_sign): Add early out for callers that
4605 are not interested in high parts or overflow.
4606 (lshift): New function.
4607 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
4608 dispatch code here.
4609 (lrotate, rrotate): Use logical shifts.
4610 * expr.c (get_inner_reference): Use lshift.
4611 * fixed-value.c (do_fixed_divide): Likewise.
4612 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4613 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
4614 (indirect_refs_may_alias_p): Likewise.
4615 (stmt_kills_ref_p_1): Likewise.
4616
7769bb64
VP
46172013-05-03 Vidya Praveen <vidyapraveen@arm.com>
4618
4619 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
4620
1d0c8e5c
VP
46212013-05-03 Vidya Praveen <vidyapraveen@arm.com>
4622
4623 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
4624 scalar form of FABD instruction.
4625
f15feaf9
VM
46262013-05-02 Vladimir Makarov <vmakarov@redhat.com>
4627
4628 * lra-constraints.c (process_alt_operands): Add checking alt
4629 number to choose the best alternative.
4630
d90e76d4
RB
46312013-05-02 Richard Biener <rguenther@suse.de>
4632
4633 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
4634 bitmap and its handling.
4635 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
4636
9f8e7a96
RB
46372013-05-02 Richard Biener <rguenther@suse.de>
4638
4639 PR middle-end/57140
4640 * tree-inline.c (copy_loops): Properly handle removed loops.
4641 (copy_cfg_body): Mark destination loops for fixup if source
4642 loops needed fixup.
4643
f3a81b39
GY
46442013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
4645
4646 PR target/56732
4647 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
4648 generating simple_return for naked functions.
4649
7b920a9a
MJ
46502013-05-02 Martin Jambor <mjambor@suse.cz>
4651
4652 PR middle-end/56988
4653 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
4654 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
4655 flags match.
4656 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
4657 ipa_agg_replacement_value structures.
4658 (known_aggs_to_agg_replacement_list): Likewise.
4659 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
4660 (read_agg_replacement_chain): Likewise.
4661 (ipcp_transform_function): Also check that by_ref flags match.
4662
2c41c19d
RB
46632013-05-02 Richard Biener <rguenther@suse.de>
4664
4665 * graphds.h (struct graph): Add obstack member.
4666 * graphds.c (new_graph): Initialize obstack and allocate
4667 vertices from it.
4668 (add_edge): Allocate edge from the obstack.
3c21604f 4669 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 4670
8b47039c
TJ
46712013-05-02 Teresa Johnson <tejohnson@google.com>
4672
4673 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
4674 divides.
4675 * cfg.c (update_bb_profile_for_threading): Ditto.
4676 * tree-inline.c (copy_bb): Ditto.
4677 (copy_edges_for_bb): Ditto.
4678 (initialize_cfun): Ditto.
4679 (copy_cfg_body): Ditto.
4680 (expand_call_inline): Ditto.
4681 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
4682 (estimate_node_size_and_time): Ditto.
4683 (inline_merge_summary): Ditto.
4684 * cgraphclones.c (cgraph_clone_edge): Ditto.
4685 (cgraph_clone_node): Ditto.
4686 * sched-rgn.c (compute_dom_prob_ps): Ditto.
4687 (compute_trg_info): Ditto.
4688
da65928c
IB
46892013-05-02 Ian Bolton <ian.bolton@arm.com>
4690
4691 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
4692 S reg when fp attribute set.
4693 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
4694
add3c965
IB
46952013-05-02 Ian Bolton <ian.bolton@arm.com>
4696
4697 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
4698 New pattern.
4699 (*and_one_cmplsi3_compare0_uxtw): Likewise.
4700 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
4701 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
4702
fdd43ac4
RB
47032013-05-02 Richard Biener <rguenther@suse.de>
4704
4705 * tree-scalar-evolution.c (scev_info_hasher): Remove.
4706 (struct instantiate_cache_entry): New type.
4707 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
4708 (struct instantiate_cache_type): New type.
4709 (set_instantiated_value, get_instantiated_value): Remove.
4710 (get_instantiated_value_entry): New function.
4711 (instantiate_scev_name): Use the new cache and adjust.
4712 (instantiate_scev_poly): Adjust.
4713 (instantiate_scev_binary): Likewise.
4714 (instantiate_array_ref): Likewise.
4715 (instantiate_scev_convert): Likewise.
4716 (instantiate_scev_not): Likewise.
4717 (instantiate_scev_3): Likewise.
4718 (instantiate_scev_2): Likewise.
4719 (instantiate_scev_r): Likewise.
4720 (instantiate_scev): Likewise.
4721 (resolve_mixers): Likewise.
4722
36ff9dfb
VM
47232013-05-01 Vladimir Makarov <vmakarov@redhat.com>
4724
4725 PR target/57091
4726 * lra-constraints.c (best_small_class_operands_num): Remove.
4727 (process_alt_operands): Remove small_class_operands_num. Take
4728 small classes operands into losers and only if the operand is not
4729 matched. Modify debugging output.
4730 (curr_insn_transform): Remove best_small_class_operands_num.
4731 Print insn name.
4732
36054fab
JG
47332013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4734
4735 * config/aarch64/aarch64-builtins.c
4736 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
4737 * config/aarch64/aarch64-simd-builtins.def
4738 (reduc_splus_): Add new modes.
4739 (reduc_uplus_): New.
4740 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
4741 (reduc_uplus_v4sf): Likewise.
4742 (reduc_splus_v4sf): Likewise.
4743 (aarch64_addv<mode>): Likewise.
4744 (reduc_uplus_<mode>): Likewise.
4745 (reduc_splus_<mode>): Likewise.
4746 (aarch64_addvv2di): Likewise.
4747 (reduc_uplus_v2di): Likewise.
4748 (reduc_splus_v2di): Likewise.
4749 (aarch64_addvv2si): Likewise.
4750 (reduc_uplus_v2si): Likewise.
4751 (reduc_splus_v2si): Likewise.
4752 (reduc_<sur>plus_<mode>): New.
4753 (reduc_<sur>plus_v2di): Likewise.
4754 (reduc_<sur>plus_v2si): Likewise.
4755 (reduc_<sur>plus_v4sf): Likewise.
4756 (aarch64_addpv4sf): Likewise.
4757 * config/aarch64/arm_neon.h
4758 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
4759 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
4760 add UNSPEC_SADDV, UNSPEC_UADDV.
4761 (SUADDV): New.
4762 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
4763
6dce23a8
JG
47642013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4765
4766 * config/aarch64/arm_neon.h
4767 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
4768
1598945b
JG
47692013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4770
4771 * config/aarch64/aarch64-builtins
4772 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
4773
998eaf97
JG
47742013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4775
4776 * config/aarch64/aarch64-simd-builtins.def
4777 (reduc_smax_): New.
4778 (reduc_smin_): Likewise.
4779 (reduc_umax_): Likewise.
4780 (reduc_umin_): Likewise.
4781 (reduc_smax_nan_): Likewise.
4782 (reduc_smin_nan_): Likewise.
4783 (fmax): Remove.
4784 (fmin): Likewise.
4785 (smax): Update for V2SF, V4SF and V2DF modes.
4786 (smin): Likewise.
4787 (smax_nan): New.
4788 (smin_nan): Likewise.
4789 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
4790 (<su><maxmin><mode>3): ...This, refactor.
4791 (s<maxmin><mode>3): New.
4792 (<maxmin_uns><mode>3): Likewise.
4793 (reduc_<maxmin_uns>_<mode>): Refactor.
4794 (reduc_<maxmin_uns>_v4sf): Likewise.
4795 (reduc_<maxmin_uns>_v2si): Likewise.
4796 (aarch64_<fmaxmin><mode>: Remove.
4797 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
4798 new builtin names.
4799 (vmin<q>_f<32,64>): Likewise.
4800 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4801 (FMAXMIN): New.
4802 (su): Add mappings for smax, smin, umax, umin.
4803 (maxmin): New.
4804 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
4805 (FMAXMIN): Rename as...
4806 (FMAXMIN_UNS): ...This.
4807 (maxminv): Remove.
4808 (fmaxminv): Likewise.
4809 (fmaxmin): Likewise.
4810 (maxmin_uns): New.
4811 (maxmin_uns_op): Likewise.
4812
bd11644e
JG
48132013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4814
4815 * config/aarch64/arm_neon.h
4816 (vac<ge, gt><sd>_f<32, 64>): Rename to...
4817 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
4818 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
4819
75dd5ace
JG
48202013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4821
4822 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
4823 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
4824
7c19979f
JG
48252013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4826
4827 * config/aarch64/aarch64-simd.md
4828 (vcond<mode>_internal): Handle special cases for constant masks.
4829 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
4830 (vcondu<mode><mode>): Likewise.
4831 (vcond<v_cmp_result><mode>): New.
4832
bb60efd9
JG
48332013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4834
4835 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
4836 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
4837 * config/aarch64/aarch64-simd-builtins.def
4838 (cmeq): Update to BUILTIN_VALLDI.
4839 (cmgt): Likewise.
4840 (cmge): Likewise.
4841 (cmle): Likewise.
4842 (cmlt): Likewise.
4843 * config/aarch64/arm_neon.h
4844 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
4845 to builtins or C as appropriate.
4846
889b9412
JG
48472013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
4848
4849 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
4850 (cmgeu): ...This.
4851 (cmhi): Rename to...
4852 (cmgtu): ...This.
4853 * config/aarch64/aarch64-simd.md
4854 (simd_mode): Add SF.
4855 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
4856 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
4857 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
4858 (cstore<mode>_neg): ...This.
4859 * config/aarch64/iterators.md
4860 (VALLF): new.
4861 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
4862 (COMPARISONS): New.
4863 (UCOMPARISONS): Likewise.
4864 (optab): Add missing comparisons.
4865 (n_optab): New.
4866 (cmp_1): Likewise.
4867 (cmp_2): Likewise.
4868 (CMP): Likewise.
4869 (cmp): Remove.
4870 (VCMP_S): Likewise.
4871 (VCMP_U): Likewise.
4872 (V_cmp_result): Add DF, SF modes.
4873 (v_cmp_result): Likewise.
4874 (v): Likewise.
4875 (vmtype): Likewise.
4876 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
4877
0a7dbb76
GY
48782013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
4879
4880 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
4881 define_insn to define_insn_and_split.
4882 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
4883 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
4884 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
4885 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
4886 (thumb2_negscc): Likewise.
4887
fb614ca6
GY
48882013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
4889
4890 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
4891
9e64a0bf
GY
48922013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
4893
4894 * config/arm/thumb2.md: Remove trailing whitespaces.
4895
d6b28156
RS
48962013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
4897
4898 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
4899 Use gen_int_mode rather than GEN_INT.
4900
f91674c3
L
49012013-04-30 H.J. Lu <hongjiu.lu@intel.com>
4902
b0dec607 4903 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
4904 debug_gimple_stmt.
4905
3551257c
RB
49062013-04-30 Richard Biener <rguenther@suse.de>
4907
4908 PR middle-end/57122
3c21604f 4909 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 4910
4c1aff1c
RB
49112013-04-30 Richard Biener <rguenther@suse.de>
4912
4913 PR middle-end/57107
4914 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
4915
54b8379a
AB
49162013-04-30 Andrey Belevantsev <abel@ispras.ru>
4917
4918 PR rtl-optimization/56957
4919 PR rtl-optimization/57105
54b8379a
AB
4920 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
4921 variable. Use just INSN_UID for determining whether an insn
4922 should be only disconnected from the insn stream.
4923 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
4924
abc27962
JJ
49252013-04-30 Jakub Jelinek <jakub@redhat.com>
4926
4927 PR tree-optimization/57104
4928 * tsan.c (instrument_expr): Don't instrument accesses to
4929 DECL_HARD_REGISTER VAR_DECLs.
4930
0fc822d0
RB
49312013-04-30 Richard Biener <rguenther@suse.de>
4932
4933 * function.h (loops_for_fn): New inline function.
4934 (set_loops_for_fn): Likewise.
4935 * cfgloop.h (place_new_loop): Add struct function parameter.
4936 (get_loop): Likewise.
4937 (get_loops): Likewise.
4938 (number_of_loops): Likewise.
4939 (fel_next): Adjust.
4940 (fel_init): Likewise.
4941 * cfg.c (get_loop_copy): Adjust.
4942 * cfgloop.c (flow_loops_dump): Likewise.
4943 (record_loop_exits): Likewise.
4944 (verify_loop_structure): Likewise.
4945 * cfgloopanal.c (mark_irreducible_loops): Likewise.
4946 (estimate_reg_pressure_cost): Likewise.
4947 (mark_loop_exit_edges): Likewise.
4948 * cfgloopmanip.c (place_new_loop): Likewise.
4949 (add_loop): Likewise.
4950 (duplicate_loop): Likewise.
4951 * graph.c (draw_cfg_nodes): Likewise.
4952 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
4953 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
4954 (extract_affine_chrec): Likewise.
4955 (build_scop_iteration_domain): Likewise.
4956 * graphite.c (graphite_initialize): Likewise.
4957 * ira-build.c (create_loop_tree_nodes): Likewise.
4958 (more_one_region_p): Likewise.
4959 (rebuild_regno_allocno_maps): Likewise.
4960 (mark_loops_for_removal): Likewise.
4961 (mark_all_loops_for_removal): Likewise.
4962 (remove_unnecessary_regions): Likewise.
4963 (ira_build): Likewise.
4964 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
4965 * loop-init.c (fix_loop_structure): Likewise.
4966 (gate_rtl_move_loop_invariants): Likewise.
4967 (gate_rtl_unswitch): Likewise.
4968 (gate_rtl_unroll_and_peel_loops): Likewise.
4969 (rtl_doloop): Likewise.
4970 * lto-streamer-in.c (input_cfg): Likewise.
4971 * lto-streamer-out.c (output_cfg): Likewise.
4972 * modulo-sched.c (sms_schedule): Likewise.
4973 * predict.c (tree_estimate_probability): Likewise.
4974 (tree_estimate_probability_driver): Likewise.
4975 (estimate_loops): Likewise.
4976 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
4977 (move_sese_region_to_fn): Likewise.
4978 (debug_loop_num): Likewise.
4979 * tree-chrec.c (chrec_evaluate): Likewise.
4980 (hide_evolution_in_other_loops_than_loop): Likewise.
4981 (chrec_component_in_loop_num): Likewise.
4982 (reset_evolution_in_loop): Likewise.
4983 (evolution_function_is_invariant_rec_p): Likewise.
4984 * tree-if-conv.c (main_tree_if_conversion): Likewise.
4985 * tree-inline.c (copy_loops): Likewise.
4986 (copy_cfg_body): Likewise.
4987 (tree_function_versioning): Likewise.
4988 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
4989 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4990 Likewise.
4991 (add_to_evolution_1): Likewise.
4992 (scev_const_prop): Likewise.
4993 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
4994 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
4995 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
4996 (tree_ssa_lim_initialize): Likewise.
4997 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
4998 (verify_loop_closed_ssa): Likewise.
4999 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
5000 (tree_ssa_loop_im): Likewise.
5001 (tree_ssa_loop_unswitch): Likewise.
5002 (tree_vectorize): Likewise.
5003 (check_data_deps): Likewise.
5004 (tree_ssa_loop_ivcanon): Likewise.
5005 (tree_ssa_loop_bounds): Likewise.
5006 (tree_complete_unroll): Likewise.
5007 (tree_complete_unroll_inner): Likewise.
5008 (tree_parallelize_loops): Likewise.
5009 (tree_ssa_loop_prefetch): Likewise.
5010 (tree_ssa_loop_ivopts): Likewise.
5011 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5012 * tree-vectorizer.c (vectorize_loops): Likewise.
5013
37953bd3
MF
50142013-04-29 Mike Frysinger <vapier@gentoo.org>
5015
5016 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5017 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5018 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5019 with EABI_LINK_SPEC.
5020
f9ed28db
UB
50212013-04-29 Uros Bizjak <ubizjak@gmail.com>
5022
5023 PR target/44578
5024 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5025 alternative.
5026
deca73f5
VM
50272013-04-29 Vladimir Makarov <vmakarov@redhat.com>
5028
5029 PR target/57097
37953bd3 5030 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
5031 using memory for pseudos. Print cost dump for alternatives.
5032 Modify cost values for conflicts with early clobbers.
5033 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5034
fdca7d03
UB
50352013-04-29 Uros Bizjak <ubizjak@gmail.com>
5036
5037 PR target/57098
5038 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5039
0b064172
IB
50402013-04-29 Ian Bolton <ian.bolton@arm.com>
5041
5042 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5043 from/to S register.
5044 (movdi_aarch64): Support LDR/STR from/to D register.
5045
473cec55
IB
50462013-04-29 Ian Bolton <ian.bolton@arm.com>
5047
5048 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5049 or higher by default.
5050
a6f30e66
RB
50512013-04-29 Richard Biener <rguenther@suse.de>
5052
5053 PR middle-end/57075
5054 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5055 even if not adding abnormal edges for calls that can make
5056 abnormal gotos.
5057
0c2b2040
RB
50582013-04-29 Richard Biener <rguenther@suse.de>
5059
5060 PR middle-end/57103
5061 * tree-cfg.c (move_stmt_op): Fix condition under which to update
5062 TREE_BLOCK.
5063 (move_stmt_r): Remove redundant checking.
5064
f41f80f9
TJ
50652013-04-29 Teresa Johnson <tejohnson@google.com>
5066
5067 PR bootstrap/57077
5068 * basic-block.h (apply_scale): New function.
5069 (apply_probability): Use apply_scale.
5070 * gimple-streamer-in.c (input_bb): Ditto.
5071 * lto-streamer-in.c (input_cfg): Ditto.
5072 * lto-cgraph.c (merge_profile_summaries): Ditto.
5073 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 5074 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
5075 (copy_edges_for_bb): Ditto.
5076 (copy_cfg_body): Ditto.
5077
315bbd2e
TV
50782013-04-29 Tom de Vries <tom@codesourcery.com>
5079
5080 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5081 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5082 (tail_merge_optimize): Handle current_loops == NULL.
5083
ebbd90d8
JL
50842013-04-26 Jeff Law <law@redhat.com>
5085
5086 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5087 (simplify_cond_using_ranges): Generalize code to simplify
5088 COND_EXPRs where one argument is a constant and the other
5089 is an SSA_NAME created by an integral type conversion.
5090
8b9b57eb
KT
50912013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5092
5093 * config/arm/arm.md (store_minmaxsi): Use only when
5094 optimize_insn_for_size_p.
5095
9498e5dc
CB
50962013-04-29 Christian Bruel <christian.bruel@st.com>
5097
5098 PR target/57108
5099 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5100
6093bc06
RB
51012013-04-29 Richard Biener <rguenther@suse.de>
5102
5103 PR middle-end/57089
fdca7d03
UB
5104 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5105 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
5106 (expand_omp_for_generic): Properly add loops.
5107 (expand_omp_for_static_nochunk): Likewise.
5108 (expand_omp_for_static_chunk): Likewise.
5109 (expand_omp_for): For the degenerate case fixup loops.
5110 (expand_omp_sections): Fix default bb placement in loops.
5111 (expand_omp_atomic_pipeline): Properly add loops.
5112
84aacbfd
KT
51132013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5114
5115 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5116
8dee4479
TV
51172013-04-29 Tom de Vries <tom@codesourcery.com>
5118
5119 * tree-ssa-tail-merge.c: Update header comment.
5120
47934dc4
JG
51212013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5122
5123 * config/aarch64/arm_neon.h
5124 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5125 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5126 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5127 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5128 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5129 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5130 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5131 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5132
384be29f
JG
51332013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5134
5135 * config/aarch64/aarch64-simd.md
5136 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5137 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5138 fix_trunc, fixuns_trunc.
5139 (ftrunc<VDQF:mode>2): New.
5140 * config/aarch64/iterators.md (optab): Add fix, fixuns.
5141 (fix_trunc_optab): New.
5142
0386b123
JG
51432013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5144
5145 * config/aarch64/aarch64-builtins.c
5146 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5147 iceilf, lround, iroundf.
5148
00fcb892
UB
51492013-04-29 Uros Bizjak <ubizjak@gmail.com>
5150
5151 PR target/54349
5152 * config/i386/i386.h (enum ix86_tune_indices)
5153 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5154 New, split from X86_TUNE_INTER_UNIT_MOVES.
5155 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5156 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5157 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5158 (TARGET_INTER_UNIT_MOVES): Remove.
5159 * config/i386/i386.c (initial_ix86_tune_features): Update.
5160 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5161 (ix86_expand_convert_uns_didf_sse): Use
5162 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5163 (ix86_expand_vector_init_one_nonzero): Ditto.
5164 (ix86_expand_vector_init_interleave): Ditto.
5165 (inline_secondary_memory_needed): Return true for moves from SSE class
5166 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5167 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5168 * config/i386/constraints.md (Yi, Ym): Depend on
5169 TARGET_INTER_UNIT_MOVES_TO_VEC.
5170 (Yj, Yn): New constraints.
5171 * config/i386/i386.md (*movdi_internal): Change constraints of
5172 operand 1 from Yi to Yj and from Ym to Yn.
5173 (*movsi_internal): Ditto.
5174 (*movdf_internal): Ditto.
5175 (*movsf_internal): Ditto.
5176 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5177 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5178 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5179 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5180 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5181 * config/i386/sse.md (movdi_to_sse): Ditto.
5182 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5183 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5184 TARGET_INTER_UNIT_MOVES.
5185 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5186 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5187 instead of TARGET_INTER_UNIT_MOVES.
5188 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5189 operand 1 from Yi to Yj and from Ym to Yn.
5190
4c871069
JG
51912013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5192
5193 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5194 (float_truncate_hi_): Likewise.
5195 (float_extend_lo_): Likewise.
5196 (float_truncate_lo_): Likewise.
5197 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5198 (aarch64_float_extend_lo_v2df): Likewise.
5199 (vec_unpacks_hi_v4sf): Likewise.
5200 (aarch64_float_truncate_lo_v2sf): Likewise.
5201 (aarch64_float_truncate_hi_v4sf): Likewise.
5202 (vec_pack_trunc_v2df): Likewise.
5203 (vec_pack_trunc_df): Likewise.
5204
1709ff9b
JG
52052013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5206
5207 * config/aarch64/aarch64-builtins.c
5208 (aarch64_fold_builtin): Fold float conversions.
5209 * config/aarch64/aarch64-simd-builtins.def
5210 (floatv2si, floatv4si, floatv2di): New.
5211 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5212 * config/aarch64/aarch64-simd.md
5213 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5214 * config/aarch64/iterators.md (FLOATUORS): New.
5215 (optab): Add float, floatuns.
5216 (su_optab): Likewise.
5217
ce966824
JG
52182013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5219
5220 * config/aarch64/aarch64-builtins.c
5221 (aarch64_builtin_vectorized_function): Use new names for
5222 fcvt builtins.
5223 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5224 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5225 (fcvtzu): Split as...
5226 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5227 (fcvtas): Split as...
5228 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5229 (fcvtau): Split as...
5230 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5231 (fcvtps): Split as...
5232 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5233 (fcvtpu): Split as...
5234 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5235 (fcvtms): Split as...
5236 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5237 (fcvtmu): Split as...
5238 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5239 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5240 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5241 (lfrintnusf, lfrintnudf): Likewise.
5242 * config/aarch64/aarch64-simd.md
5243 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5244 define_insn.
5245 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5246 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5247 (fcvt_pattern): Likewise.
5248
b9de24fe
JG
52492013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5250
5251 * config/aarch64/aarch64-simd.md
5252 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5253 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5254
77a205be
JG
52552013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5256
5257 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5258 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5259 (vrnd<a,m,n,p>_f32): Implement using builtins.
5260 (vrnd<i,x><q>_f<32, 64>): New.
5261
0659ce6f
JG
52622013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5263
5264 * config/aarch64/aarch64-builtins.c
5265 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5266 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5267 (frintz): Rename to...
5268 (btrunc): ...this.
5269 (frintp): Rename to...
5270 (ceil): ...this.
5271 (frintm): Rename to...
5272 (floor): ...this.
5273 (frinti): Rename to...
5274 (nearbyint): ...this.
5275 (frintx): Rename to...
5276 (rint): ...this.
5277 (frinta): Rename to...
5278 (round): ...this.
5279 * config/aarch64/aarch64-simd.md
5280 (aarch64_frint<frint_suffix><mode>): Delete.
5281 (<frint_pattern><mode>2): Convert to insn.
5282 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5283 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5284 (frint_pattern): Likewise.
5285 (frint_suffix): Likewise.
5286
ea78906a
RB
52872013-04-29 Richard Biener <rguenther@suse.de>
5288
5289 PR tree-optimization/57081
5290 * loop-init.c: Include tree-flow.h.
5291 (loop_optimizer_finalize): Free number of iteration estimates.
5292 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5293
baee1763
JJ
52942013-04-29 Jakub Jelinek <jakub@redhat.com>
5295
94dc5332
JJ
5296 PR tree-optimization/57083
5297 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5298 non-singleton shift count range, zero extend low_bound for uns case.
5299
baee1763
JJ
5300 * config/i386/predicates.md (general_vector_operand): New predicate.
5301 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5302 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5303 if they aren't nonimmediate operands. If their original values
5304 satisfy const_vector_equal_evenodd_p, don't shift them.
5305 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
5306 predicates. For the SSE4.1 case force operands[{1,2}] into registers
5307 if not nonimmediate_operand.
5308 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
5309 instead of register_operand.
5310 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
5311
a9073727 53122013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
5313
5314 * stor-layout.c (finalize_size_functions): Allocate a structure and
5315 reset cfun before dumping the functions.
5316
ba8011e6
JJ
53172013-04-27 Jakub Jelinek <jakub@redhat.com>
5318
d6fde69e
JJ
5319 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
5320
ba8011e6
JJ
5321 PR target/56866
5322 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
5323 use xop_pmacsdqh if uns_p.
5324 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
5325 the immediate rotate count.
5326
2c62cbaa
VM
53272013-04-26 Vladimir Makarov <vmakarov@redhat.com>
5328
5329 * rtl.h (struct rtx_def): Add comment for field jump.
5330 (LRA_SUBREG_P): New macro.
5331 * recog.c (register_operand): Check LRA_SUBREG_P.
5332 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5333 stack frame.
5334 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5335 (lra_final_code_change): Skip subreg change for operators.
5336 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5337 if there are no operand changes.
5338 * lra-constraints.c (curr_insn_set): New.
5339 (match_reload): Set LRA_SUBREG_P.
5340 (emit_spill_move): Ditto.
5341 (check_and_process_move): Use curr_insn_set. Process only single
5342 set insns. Don't initialize sec_mem_p and change_p.
5343 (simplify_operand_subreg): Use LRA_SUBREG_P.
5344 (reg_in_class_p): New function.
5345 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5346 of #ifdef. Add code to remove cycling.
5347 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5348 non-null disp. Reload inner instead of disp when base and index
5349 are null. Try to put lo_sum into register.
5350 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
5351 (check_and_process_move): Move code for move cost check to
5352 simple_move_p. Remove equiv_substitution.
5353 (simple_move_p): New function.
5354 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5355 curr_insn_set. Call check_and_process_move only for single set
5356 insns. Use the new function. Move call of check_and_process_move
5357 after operand equiv substitution and address process.
5358
e7d764f3
JJ
53592013-04-26 Jakub Jelinek <jakub@redhat.com>
5360
5361 PR go/57045
5362 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
5363 with nonlocal goto receivers or returns twice calls, ignore
5364 unininitialized values from abnormal edges to nl goto receiver
5365 or returns twice call.
5366
41e10689
JJ
53672013-04-26 Jakub Jelinek <jakub@redhat.com>
5368
5369 PR tree-optimization/57051
5370 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
5371 and VEC_RSHIFT_EXPR if shift count is a multiple of element
5372 bitsize.
5373
d7ed20db
RB
53742013-04-26 Richard Biener <rguenther@suse.de>
5375
5376 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
5377 (expand_omp_taskreg): Likewise. Mark loops for fixup.
5378 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
5379 (fixup_loop_arrays_after_move): New function.
5380 (move_sese_region_to_fn): Properly outline the loop tree parts
5381 of the SESE region.
5382
df93505e
UB
53832013-04-26 Uros Bizjak <ubizjak@gmail.com>
5384
5385 * config/i386/i386.md (type, unit): Fix long lines.
5386
dd366ec3
RB
53872013-04-26 Richard Biener <rguenther@suse.de>
5388
5389 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
5390 (lto-streamer-out.o): Likewise.
5391 * cfgloop.c (init_loops_structure): Export, add struct function
5392 argument and adjust.
5393 (flow_loops_find): Adjust.
5394 * cfgloop.h (enum loop_estimation): Add EST_LAST.
5395 (init_loops_structure): Declare.
5396 * lto-streamer-in.c: Include cfgloop.h.
5397 (input_cfg): Input the loop tree.
5398 * lto-streamer-out.c: Include cfgloop.h.
5399 (output_cfg): Output the loop tree.
5400 (output_struct_function_base): Do not drop PROP_loops.
5401
a9e0d843
RB
54022013-03-26 Richard Biener <rguenther@suse.de>
5403
5404 * tree-cfg.c (execute_build_cfg): Build the loop tree.
5405 (pass_build_cfg): Provide PROP_loops.
5406 (move_sese_region_to_fn): Remove loops that are outlined into fn
5407 for now.
5408 * tree-inline.c: Include cfgloop.h.
5409 (initialize_cfun): Do not drop PROP_loops.
5410 (copy_loops): New function.
5411 (copy_cfg_body): Copy loop structure.
5412 (tree_function_versioning): Initialize destination loop tree.
5413 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
5414 (pass_parallelize_loops): Do IL verification.
5415 * loop-init.c (loop_optimizer_init): Fixup loops if required.
5416 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
5417 the CFG make sure we fixup loops as well.
5418 * tree-ssa-tail-merge.c: Include cfgloop.h.
5419 (replace_block_by): When merging loop latches mark loops for fixup.
5420 * lto-streamer-out.c (output_struct_function_base): Drop
5421 PROP_loops for now.
5422 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
5423 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
5424 * ipa-split.c: Include cfgloop.h.
5425 (split_function): Add the new return block to the loop tree root.
5426 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
5427 whether we have removed the forwarder block.
5428 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
5429 * cfgloop.h (place_new_loop): Declare.
5430 * cfgloopmanip.c (place_new_loop): Export.
5431 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
5432 (tree-switch-conversion.o): Likewise.
5433 (tree-complex.o): Likewise.
5434 (tree-inline.o): Likewise.
5435 (tree-ssa-tailmerge.o): Likewise.
5436 (ipa-split.o): Likewise.
5437 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
5438 (tree-ssa-copy.o): Likewise.
5439 * tree-switch-conversion.c: Include cfgloop.h
5440 (process_switch): If we emit a bit-test cascade, schedule loops
5441 for fixup.
5442 * tree-complex.c: Include cfgloop.h.
5443 (expand_complex_div_wide): Properly add new basic-blocks to loops.
5444 * asan.c: Include cfgloop.h.
5445 (create_cond_insert_point): Properly add new basic-blocks to
5446 loops, schedule loop fixup.
5447 * cfgloop.c (verify_loop_structure): Check that looks are not
5448 marked for fixup.
5449 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
5450 to loops.
5451 (expand_omp_for_generic): Likewise.
5452 (expand_omp_sections): Likewise.
5453 (expand_omp_atomic_pipeline): Schedule loops for fixup.
5454 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
5455 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
5456 is initialized, not when loops are present.
5457 * tree-parloops.c (parallelize_loops): Remove checking here.
5458 * passes.c (init_optimization_passes): Schedule a copy-propagation
5459 pass before complete unrolling of inner loops.
5460
e78e8a0b
JJ
54612013-04-26 Jakub Jelinek <jakub@redhat.com>
5462
a2e836b2
JJ
5463 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
5464 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
5465 (colorize_init): Add argument to _WIN32 version.
5466 * toplev.c: Include diagnostic-color.h.
5467 (process_options): Default to -fdiagnostics-color=auto if
5468 GCC_COLORS env var is in the environment.
5469 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
5470 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
5471 env var is in the environment, the default is auto rather than never.
a2e836b2 5472
e78e8a0b
JJ
5473 * diagnostic.h (file_name_as_prefix): Add context argument.
5474 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
5475 the string as locus.
5476 * langhooks.c (lhd_print_error_function): Adjust caller.
5477
013e5ef9
LC
54782013-04-25 Lawrence Crowl <crowl@google.com>
5479
5480 * var-tracking.c (shared_hash_def::htab):
5481 Change type to hash_table. Update dependent calls and types.
5482
4a8fb1a1
LC
54832013-04-25 Lawrence Crowl <crowl@google.com>
5484
5485 * Makefile.in: Update as needed below.
5486
5487 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
5488 Move declaration to after the type's method definitons.
5489
5490 * attribs.c (htab_t scoped_attributes::attribute_hash):
5491 Change type to hash_table. Update dependent calls and types.
5492
5493 * bitmap.c (htab_t bitmap_desc_hash):
5494 Change type to hash_table. Update dependent calls and types.
5495
5496 * cselib.c (htab_t cselib_hash_table):
5497 Change type to hash_table. Update dependent calls and types.
5498
5499 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
5500 (hash_string_slot_node): Move implementation into lto-streamer.h
5501 struct string_slot_hasher.
5502 (eq_string_slot_node): Likewise.
5503
5504 * data-streamer-out.c: Update output_block::string_hash_table
5505 dependent calls and types.
5506
5507 * dwarf2cfi.c (htab_t trace_index):
5508 Change type to hash_table. Update dependent calls and types.
5509
5510 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
5511 Change type to hash_table. Update dependent calls and types.
5512 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
5513 (htab_t optimize_external_refs::map): Likewise.
5514 (htab_t output_comp_unit::extern_map): Likewise.
5515 (htab_t output_comdat_type_unit::extern_map): Likewise.
5516 (htab_t output_macinfo::macinfo_htab): Likewise.
5517 (htab_t optimize_location_lists::htab): Likewise.
5518 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
5519
5520 * except.c (htab_t ehspec_hash_type):
5521 Change type to hash_table. Update dependent calls and types.
5522 (assign_filter_values::ttypes): Likewise.
5523 (assign_filter_values::ehspec): Likewise.
5524 (sjlj_assign_call_site_values::ar_hash): Likewise.
5525 (convert_to_eh_region_ranges::ar_hash): Likewise.
5526
5527 * gcse.c (htab_t pre_ldst_table):
5528 Change type to hash_table. Update dependent calls and types.
5529
5530 * ggc-common.c (htab_t saving_htab):
5531 Change type to hash_table. Update dependent calls and types.
5532 (htab_t loc_hash): Likewise.
5533 (htab_t ptr_hash): Likewise.
5534 (call_count): Rename ggc_call_count.
5535 (call_alloc): Rename ggc_call_alloc.
5536 (loc_descriptor): Rename make_loc_descriptor.
5537 (add_statistics): Rename ggc_add_statistics.
5538
5539 * ggc-common.c (saving_htab):
5540 Change type to hash_table. Update dependent calls and types.
5541
5542 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
5543 (push_gimplify_context): Likewise.
5544 (pop_gimplify_context): Likewise.
5545 (struct gimple_temp_hash_elt): Added.
5546 (struct gimplify_hasher): Likewise.
5547 (struct gimplify_ctx.temp_htab):
5548 Change type to hash_table. Update dependent calls and types.
5549
5550 * gimple-fold.c: Include gimplify-ctx.h.
5551
5552 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
5553 Change type to hash_table. Update dependent calls and types.
5554 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
5555 avoid potential global name collision.
5556
5557 * gimplify.c: Include gimplify-ctx.h.
5558 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
5559 (htab_t gimplify_ctx::temp_htab):
5560 Update dependent calls and types for new type hash_table.
5561 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
5562 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
5563
5564 * gimplify-ctx.h: New.
5565 (struct gimple_temp_hash_elt): Move from gimplify.c.
5566 (class gimplify_hasher): New.
5567 (struct gimplify_ctx): Move from gimple.h.
5568 (htab_t gimplify_ctx::temp_htab):
5569 Change type to hash_table. Update dependent calls and types.
5570
5571 * graphite-clast-to-gimple.c: Include graphite-htab.h.
5572 (htab_t ivs_params::newivs_index):
5573 Change type to hash_table. Update dependent calls and types.
5574 (htab_t ivs_params::params_index): Likewise.
5575 (htab_t print_generated_program::params_index): Likewise.
5576 (htab_t gloog::newivs_index): Likewise.
5577 (htab_t gloog::params_index): Likewise.
5578
5579 * graphite.c: Include graphite-htab.h.
5580 4htab_t graphite_transform_loops::bb_pbb_mapping):
5581 Change type to hash_table. Update dependent calls and types.
5582
5583 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
5584 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
5585 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
5586
5587 * graphite-dependences.c: Include graphite-htab.h.
5588 (loop_is_parallel_p): Change hash table type of parameter.
5589
5590 * graphite-htab.h: New.
5591 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
5592 (extern find_pbb_via_hash): Move from graphite-poly.h.
5593 (extern loop_is_parallel_p): Move from graphite-poly.h.
5594 (extern get_loop_body_pbbs): Move from graphite-poly.h.
5595
5596 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
5597 (extern loop_is_parallel_p): Move to graphite-htab.h.
5598 (extern get_loop_body_pbbs): Move to graphite-htab.h.
5599
5600 * haifa-sched.c (htab_t delay_htab):
5601 Change type to hash_table. Update dependent calls and types.
5602 (htab_t delay_htab_i2): Likewise.
5603
5604 * ira-color.c (htab_t allocno_hard_regs_htab):
5605 Change type to hash_table. Update dependent calls and types.
5606
5607 * ira-costs.c (htab_t cost_classes_htab):
5608 Change type to hash_table. Update dependent calls and types.
5609
5610 * loop-invariant.c (htab_t merge_identical_invariants::eq):
5611 Change type to hash_table. Update dependent calls and types.
5612
5613 * loop-iv.c (htab_t bivs):
5614 Change type to hash_table. Update dependent calls and types.
5615
5616 * loop-unroll.c (htab_t opt_info::insns_to_split):
5617 Change type to hash_table. Update dependent calls and types.
5618 (htab_t opt_info::insns_with_var_to_expand): Likewise.
5619
5620 * lto-streamer.h (struct string_slot): Move from data-streamer.h
5621 (struct string_slot_hasher): New.
5622 (htab_t output_block::string_hash_table):
5623 Change type to hash_table. Update dependent calls and types.
5624
5625 * lto-streamer-in.c (freeing_string_slot_hasher): New.
5626 (htab_t file_name_hash_table):
5627 Change type to hash_table. Update dependent calls and types.
5628
5629 * lto-streamer-out.c: Update output_block::string_hash_table dependent
5630 calls and types.
5631
5632 * lto-streamer.c (htab_t tree_htab):
5633 Change type to hash_table. Update dependent calls and types.
5634
5635 * omp-low.c: Include gimplify-ctx.h.
5636
5637 * passes.c (htab_t name_to_pass_map):
5638 Change type to hash_table. Update dependent calls and types.
5639 (pass_traverse): Rename to passes_pass_traverse.
5640
5641 * plugin.c (htab_t event_tab):
5642 Change type to hash_table. Update dependent calls and types.
5643
5644 * postreload-gcse.c (htab_t expr_table):
5645 Change type to hash_table. Update dependent calls and types.
5646 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
5647
5648 * sese.c (debug_rename_map_1): Make extern.
5649 (htab_t copy_bb_and_scalar_dependences::rename_map):
5650 Change type to hash_table. Update dependent calls and types.
5651
5652 * sese.h (extern debug_rename_map): Move to .c file.
5653
5654 * store-motion.c (htab_t store_motion_mems_table):
5655 Change type to hash_table. Update dependent calls and types.
5656
5657 * trans-mem.c (htab_t tm_new_mem_hash):
5658 Change type to hash_table. Update dependent calls and types.
5659
5660 * tree-browser.c (htab_t TB_up_ht):
5661 Change type to hash_table. Update dependent calls and types.
5662
5663 * tree-cfg.c (htab_t discriminator_per_locus):
5664 Change type to hash_table. Update dependent calls and types.
5665
5666 * tree-complex.c: Include tree-hasher.h
5667 (htab_t complex_variable_components):
5668 Change type to hash_table. Update dependent calls and types.
5669
5670 * tree-eh.c (htab_t finally_tree):
5671 Change type to hash_table. Update dependent calls and types.
5672
5673 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
5674 struct int_tree_hasher.
5675 (extern int_tree_map_eq): Likewise.
5676 (uid_decl_map_hash): Removed.
5677 (extern decl_tree_map_eq): Likewise.
5678
5679 * tree-hasher.h: New.
5680 (struct int_tree_hasher): New.
5681 (typedef int_tree_htab_type): New.
5682
5683 * tree-inline.c: Include gimplify-ctx.h.
5684
5685 * tree-mudflap.c: Include gimplify-ctx.h.
5686
5687 * tree-parloops.c: Include tree-hasher.h.
5688 (htab_t eliminate_local_variables_stmt::decl_address):
5689 Change type to hash_table. Update dependent calls and types.
5690 (htab_t separate_decls_in_region::decl_copies): Likewise.
5691
5692 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
5693 Change type to hash_table. Update dependent calls and types.
5694
5695 * tree-sra.c (candidates):
5696 Change type to hash_table. Update dependent calls and types.
5697
5698 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
5699 in tree-flow.h.
5700 (int_tree_map_hash): Likewise.
5701
5702 * tree-ssa-dom.c (htab_t avail_exprs):
5703 Change type to hash_table. Update dependent calls and types.
5704
5705 * tree-ssa-live.c (var_map_base_init::tree_to_index):
5706 Change type to hash_table. Update dependent calls and types.
5707
5708 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
5709 Change type to hash_table. Update dependent calls and types.
5710
5711 * tree-ssa-phiopt.c (seen_ssa_names):
5712 Change type to hash_table. Update dependent calls and types.
5713
5714 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
5715 Change type to hash_table. Update dependent calls and types.
5716
5717 * tree-ssa-uncprop.c (equiv):
5718 Change type to hash_table. Update dependent calls and types.
5719
c5a44004
JJ
57202013-04-25 Jakub Jelinek <jakub@redhat.com>
5721
5722 PR rtl-optimization/57003
5723 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
5724 call note_stores with kill_clobbered_value callback again after
5725 killing regs_invalidated_by_call.
5726
09962a4a
JG
57272013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5728
5729 * config/aarch64/aarch64-simd.md
5730 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
5731 (aarch64_simd_bsl<mode>): Likewise.
5732 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
5733
ea28bb0b
MP
57342013-04-25 Marek Polacek <polacek@redhat.com>
5735
5736 PR tree-optimization/57066
3c21604f 5737 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 5738
96659611
JG
57392013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
5740
5741 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
5742
9697e620
JG
57432013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5744
5745 * config/aarch64/aarch64-builtins.c
5746 (aarch64_fold_builtin): New.
5747 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
5748 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
5749 * config/aarch64/aarch64-simd-builtins.def (abs): New.
5750 * config/aarch64/arm_neon.h
5751 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
5752
0ac198d3
JG
57532013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5754 Tejas Belagod <tejas.belagod@arm.com>
5755
5756 * config/aarch64/aarch64-builtins.c
5757 (aarch64_gimple_fold_builtin): New.
5758 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
5759 * config/aarch64/aarch64-simd-builtins.def (addv): New.
5760 * config/aarch64/aarch64-simd.md (addpv4sf): New.
5761 (addvv4sf): Update.
5762 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
5763
58cff58c
N
57642013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5765
df93505e 5766 * config/aarch64/aarch64.md
58cff58c
N
5767 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
5768
7e0228bf
N
57692013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5770
5771 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
5772 (*ngcsi_uxtw): New pattern.
5773
5819f96f 57742013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 5775 Julian Brown <julian@codesourcery.com>
5819f96f
KT
5776
5777 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
5778 (TB_DREG): Add T_V4HF.
5779 (v4hf_UP): New macro.
5780 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 5781 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
5782 Handle initialisation of V4HF. Adjust initialisation of reinterpret
5783 built-ins.
df93505e 5784 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
5785 (arm_vector_mode_supported_p): Handle V4HF.
5786 (arm_mangle_map): Handle V4HFmode.
5787 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
5788 * config/arm/arm_neon_builtins.def: Add entries for
5789 vcvtv4hfv4sf, vcvtv4sfv4hf.
5790 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
5791 (neon_vcvtv4hfv4sf): Likewise.
5792 * config/arm/neon-gen.ml: Handle half-precision floating point
5793 features.
5794 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
5795 * config/arm/arm_neon.h: Regenerate.
5796 * config/arm/neon.ml (type elts): Add F16.
5797 (type vectype): Add T_float16x4, T_floatHF.
5798 (type vecmode): Add V4HF.
5799 (type features): Add Requires_FP_bit feature.
5800 (elt_width): Handle F16.
5801 (elt_class): Likewise.
5802 (elt_of_class_width): Likewise.
5803 (mode_of_elt): Refactor.
5804 (type_for_elt): Handle F16, fix error messages.
5805 (vectype_size): Handle T_float16x4.
5806 (vcvt_sh): New function.
5807 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
5808 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
5809 (string_of_mode): Handle V4HF.
5810 * doc/arm-neon-intrinsics.texi: Regenerate.
5811
1ef395e4
JG
58122013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
5813
5814 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
5815 format specifier in 'X' case.
5816
41c34e94
AM
58172013-04-25 Alan Modra <amodra@gmail.com>
5818
5819 PR target/57052
5820 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
5821 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
5822 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
5823 Repeat for many other rotate/shift and mask patterns using subregs.
5824 Name lshiftrt insns.
5825 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
5826 on WORDS_BIG_ENDIAN.
5827
b9a7eb5d
AM
58282013-04-25 Alan Modra <amodra@gmail.com>
5829
5830 * config.gcc: Support little-endian powerpc-linux targets.
5831 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
5832 (LINK_OS_LINUX_SPEC): Define.
5833 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
5834 Preserve MASK_LITTLE_ENDIAN.
5835 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
5836 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
5837 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
5838 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
5839 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
5840 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
5841 Correct fp word order for little-endian. Don't shift toc entries
5842 smaller than a word for little-endian.
5843 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
5844 (bswapdi2 splits): Correct low-part subreg for little-endian.
5845 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
5846 low/high where such is correct only for be.
5847 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
5848 little-endian for -mcall-aixdesc.
5849
87f73374
AM
58502013-04-25 Alan Modra <amodra@gmail.com>
5851
5852 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
5853 replace_equiv_address_nv.
5854
cabf91cd
AM
58552013-04-25 Alan Modra <amodra@gmail.com>
5856
5857 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
5858
0ae24cc8
VM
58592013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5860
5861 Revert:
5862 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5863 * rtl.h (struct rtx_def): ...
cabf91cd 5864
77bce07c
VM
58652013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5866
5867 PR rtl-optimizations/57046
5868 * lra-constraints (split_reg): Set up lra_risky_transformations_p
5869 for multi-reg splits.
5870
0db63e7f
L
58712013-04-24 H.J. Lu <hongjiu.lu@intel.com>
5872
5873 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
5874
3362b6b6
SA
58752013-04-24 Sterling Augustine <saugustine@google.com>
5876
5877 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
5878 (comp_dir_string, debug_str_dwo_section): New.
5879 (DEBUG_STR_DWO_SECTION): Rename to ...
5880 (DEBUG_DWO_STR_SECTION): ... this.
5881 (DEBUG_NORM_STR_SECTION): Delete.
5882 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
5883 (DEBUG_STR_DWO_SECTION_FLAGS): New.
5884 (find_AT_string): Move most logic to ...
5885 (find_AT_string_in_table): ... here. New.
5886 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
5887 add_skeleton_AT_string. Delete logic.
5888 (output_skeleton_debug_sections): Remove call to
5889 add_top_level_skeleton_die_attrs.
5890 (add_comp_dir_attribute): Move logic to comp_dir_string.
5891 (dwarf2out_init): Initialize debug_str_dwo_section.
5892 (output_indirect_string): Call find_string_form.
5893 (output_indirect_strings): Rewrite.
5894 (prune_unused_types): Empty skeleton_debug_str_hash.
5895 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
5896 (dwarf2out_finish): Call output_indirect_strings.
5897
e93e18e9
PC
58982013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5899
5900 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
5901
f6ce35ac
VM
59022013-04-24 Vladimir Makarov <vmakarov@redhat.com>
5903
cabf91cd 5904 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
5905 (LRA_SUBREG_P): New macro.
5906 * recog.c (register_operand): Check LRA_SUBREG_P.
5907 * lra.c (lra): Add note at the end of RTL code. Align non-empty
5908 stack frame.
5909 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
5910 (lra_final_code_change): Skip subreg change for operators.
5911 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
5912 if there are no operand changes.
5913 * lra-constraints.c (curr_insn_set): New.
5914 (match_reload): Set LRA_SUBREG_P.
5915 (emit_spill_move): Ditto.
5916 (check_and_process_move): Use curr_insn_set. Process only single
5917 set insns. Don't initialize sec_mem_p and change_p.
5918 (simplify_operand_subreg): Use LRA_SUBREG_P.
5919 (reg_in_class_p): New function.
5920 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
5921 of #ifdef. Add code to remove cycling.
5922 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
5923 non-null disp. Reload inner instead of disp when base and index
5924 are null. Try to put lo_sum into register.
5925 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 5926 (check_and_process_move): Move code for move cost check to
f6ce35ac 5927 simple_move_p. Remove equiv_substitution.
cabf91cd 5928 (simple_move_p): New function.
f6ce35ac
VM
5929 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
5930 curr_insn_set. Call check_and_process_move only for single set
5931 insns. Use the new function. Move call of check_and_process_move
5932 after operand equiv substitution and address process.
5933
38047d90
JG
59342013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
5935
5936 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
5937 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
5938 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
5939
13f39b2e
PC
59402013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
5941
5942 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
5943
97c116dc
MP
59442013-04-24 Marek Polacek <polacek@redhat.com>
5945
5946 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
5947 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
5948 (select_loops_exit_conditions): Likewise.
5949 (number_of_iterations_for_all_loops): Likewise.
5950 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
5951 (scev_analysis): Likewise.
5952
83082391
CM
59532013-04-02 Catherine Moore <clm@codesourcery.com>
5954 Chao-ying Fu <fu@mips.com>
5955
cabf91cd
AM
5956 * config/mips/micromips.md (jraddiusp): New pattern.
5957 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
5958 instruction if possible.
83082391 5959
19e34aa2
AM
59602013-04-24 Alan Modra <amodra@gmail.com>
5961
5962 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
5963
fdb6603c
JB
59642013-04-24 Julian Brown <julian@codesourcery.com>
5965 Chung-Lin Tang <cltang@codesourcery.com>
5966
5967 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
5968 dependency behavior in enumeration type DIE generation. Add TODO note
5969 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 5970
bf190e8d
LC
59712013-04-23 Lawrence Crowl <crowl@google.com>
5972
5973 * Makefile.in: Update as needed below.
5974
5975 * hash-table.h (class hash_table):
5976 Correct many methods with parameter types compare_type to the correct
5977 value_type. (Correct code was unlikely to notice the change.)
5978 (hash_table::elements_with_deleted) New.
5979 (class hashtable::iterator): New.
5980 (hashtable::begin()): New.
5981 (hashtable::end()): New.
5982 (FOR_EACH_HASH_TABLE_ELEMENT): New.
5983
5984 * statistics.c (statistics_hashes):
5985 Change type to hash_table. Update dependent calls and types.
5986
5987 * tree-into-ssa.c (var_infos):
5988 Change type to hash_table. Update dependent calls and types.
5989
5990 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
5991 Change type to hash_table. Update dependent calls and types.
5992
5993 * tree-ssa-loop-im.c (struct mem_ref.refs):
5994 Change type to hash_table. Update dependent calls and types.
5995
5996 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
5997 Change type to hash_table. Update dependent calls and types.
5998
5999 * tree-ssa-sccvn.c (vn_tables_s::nary):
6000 Change type to hash_table. Update dependent calls and types.
6001 (vn_tables_s::phis): Likewise.
6002 (vn_tables_s::references): Likewise.
6003
6004 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6005 (vn_reference_eq): Update parameter and return types.
6006
6007 * tree-ssa-structalias.c (pointer_equiv_class_table):
6008 Change type to hash_table. Update dependent calls and types.
6009 (location_equiv_class_table): Likewise.
6010
6011 * tree-vect-data-refs.c: Consequential changes for making
6012 peeling a hash_table.
6013
6014 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6015 (destroy_loop_vec_info): Dependent hash_table update.
6016
6017 * tree-vectorizer.h (peeling_htab):
6018 Change type to hash_table. Update dependent calls and types.
6019
d70a81dd
SC
60202013-04-23 Shiva Chen <shiva0217@gmail.com>
6021
cabf91cd
AM
6022 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6023 to check the register content is equal or not.
6024 * lra-constraints.c (match_reload): Use lra_assign_reg_val
6025 to assign register content record.
6026 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 6027 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
6028 * lra-int.h (struct lra_reg): Add offset member.
6029 (lra_reg_val_equal_p): New static inline function.
6030 (lra_update_reg_val_offset): New static inline function.
6031 (lra_assign_reg_val): New static inline function.
6032 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6033 to assign register content record.
6034 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 6035
b894a1f3
CM
60362013-04-23 Catherine Moore <clm@codesourcery.com>
6037
6038 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6039 operands. Record compression.
6040
ecd14de9
XDL
60412013-04-23 Xinliang David Li <davidxl@google.com>
6042
6043 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6044
92e776e9
RB
60452013-04-23 Richard Biener <rguenther@suse.de>
6046
6047 PR middle-end/57036
6048 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6049 parameter, only add abnormal goto edges from the copied body
6050 if the call could perform abnormal gotos.
6051 (copy_cfg_body): Adjust.
6052
a15ee567
SN
60532013-04-23 Sofiane Naci <sofiane.naci@arm.com>
6054
6055 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6056
08c52234
AS
60572013-04-23 Andreas Schwab <schwab@linux-m68k.org>
6058
6059 * coretypes.h (gimple_stmt_iterator): Add struct to make
6060 compatible with C.
6061
999c1171
RB
60622013-04-23 Richard Biener <rguenther@suse.de>
6063
6064 PR tree-optimization/57026
6065 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6066 from SSA names occuring in abnormal PHI nodes.
6067
53669259
AK
60682013-04-22 Andi Kleen <ak@linux.intel.com>
6069
6070 * lto/lto.c (print_lto_report_1): Fix LTO report names.
6071
1a0ad150
AK
60722013-04-22 Andi Kleen <ak@linux.intel.com>
6073
6074 * lto/lto.c (print_lto_report_1): Declare early.
6075 (read_cgraph_and_symbols): Call print_lto_report_1 early.
6076
057f8f20
AK
60772013-04-22 Andi Kleen <ak@linux.intel.com>
6078
6079 * common.opt (-flto-report-wpa): Add.
6080 * doc/invoke.texi (-flto-report-wpa): Add.
6081 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6082 (lto_main): dito.
6083
473b1e05
XDL
60842013-04-22 Xinliang David Li <davidxl@google.com>
6085
6086 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6087 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6088 * Makefile.in: New dependency
6089
cabf91cd 6090 David Daney <ddaney.cavm@gmail.com>
b1485a33 6091
cabf91cd
AM
6092 * configure.ac (gcc_cv_as_micromips_support): Use the
6093 --fatal-warnings option.
6094 * configure: Regenerate.
b1485a33 6095
829d0168
MP
60962013-04-22 Marek Polacek <polacek@redhat.com>
6097
6098 PR sanitizer/56990
6099 * tsan.c (instrument_expr): Don't instrument expression
6100 in case its size is zero.
6101
6d9b7208
UB
61022013-04-22 Uros Bizjak <ubizjak@gmail.com>
6103
6104 PR target/57032
6105 Revert:
6106 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6107
6108 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6109
ea679d55
JG
61102013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6111
6112 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6113 (gimple_stmt_iterator): New typedef.
6114 * gimple.h (gimple_stmt_iterator): Rename to...
6115 (gimple_stmt_iterator_d): ... This.
6116 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6117 trees be valid for GIMPLE and GENERIC.
6118 (TARGET_GIMPLE_FOLD_BUILTIN): New.
6119 * gimple-fold.c (gimple_fold_call): Call target hook
6120 gimple_fold_builtin.
6121 * hooks.c (hook_bool_gsiptr_false): New.
6122 * hooks.h (hook_bool_gsiptr_false): New.
6123 * target.def (fold_stmt): New.
6124 * doc/tm.texi: Regenerate.
6125
88a581da
VM
61262013-04-22 Vladimir Makarov <vmakarov@redhat.com>
6127
6128 PR target/57018
6129 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6130 a set sp if no stack realignment.
6131
92be22dc
NC
61322013-04-22 Nick Clifton <nickc@redhat.com>
6133
6134 * config.gcc (tilegx-linux): Extend extra_objs rather than
6135 overwriting it.
6136 (tilepro-linux): Likewise.
6137
0ddec79f
JG
61382013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6139
6140 * config/aarch64/aarch64-builtins.c
6141 (CF): Remove.
6142 (CF0, CF1, CF2, CF3, CF4, CF10): New.
6143 (VAR<1-12>): Add MAP parameter.
6144 (BUILTIN_*): Likewise.
6145 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6146 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6147 (aarch64_ushl_n<mode>): Likewise.
6148 (aarch64_sshr_n<mode>): Likewise.
6149 (aarch64_ushr_n<mode>): Likewise.
6150 (aarch64_<maxmin><mode>): Likewise.
6151 (aarch64_sqrt<mode>): Likewise.
6152 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6153 (vshr<q>_n_*): Likewise.
6154
0050faf8
JG
61552013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6156
6157 * config/aarch64/aarch64-builtins.c
6158 (aarch64_simd_builtin_type_mode): Handle SF types.
6159 (sf_UP): Define.
6160 (BUILTIN_GPF): Define.
6161 (aarch64_init_simd_builtins): Handle SF types.
6162 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6163 (frecps): Likewise.
6164 (frecpx): Likewise.
6165 * config/aarch64/aarch64-simd.md
6166 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6167 (aarch64_frecpe<mode>): New.
6168 (aarch64_frecps<mode>): Likewise.
6169 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6170 (v8type): Add frecp<esx>.
6171 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6172 (aarch64_frecps<mode>): Likewise.
6173 * config/aarch64/iterators.md (FRECP): New.
6174 (frecp_suffix): Likewise.
6175 * config/aarch64/arm_neon.h
6176 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6177
0fad3dbc 61782013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
6179
6180 PR target/56995
6181 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6182 (REG_CLASS_NAMES): Idem.
6183 (REG_CLASS_CONTENTS): Idem.
6184 (REGCLASS_HAS_FP_REG): Idem.
6185 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6186 (sh_conditional_register_usage): Idem.
6187
3e8a33f9
JL
61882013-04-21 Jeff Law <law@redhat.com>
6189
6190 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6191 (ssa_forward_propagate_and_combine): Use it.
6192
f38e1b0a
VM
61932013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6194
6195 * lra.c: Update the flow chart diagram.
6196
682303da
VM
61972013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6198
6199 PR rtl-optimization/56847
6200 * lra-constraints.c (process_alt_operands): Discourage alternative
6201 with non-matche doffsettable memory constraint fro memory with
6202 known offset.
6203
f6b64c35
RB
62042013-04-19 Richard Biener <rguenther@suse.de>
6205
6206 PR tree-optimization/56982
6207 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6208 function.
6209 * gimplify.c (gimplify_call_expr): Notice special calls.
6210 (gimplify_modify_expr): Likewise.
6211 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6212 abnormal control flow receivers.
6213 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6214 in the same way as cfun->has_nonlocal_labels.
6215 (gimple_purge_dead_abnormal_call_edges): Likewise.
6216 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6217 receivers start a basic-block.
6218
01d8bf07
RB
62192013-04-19 Richard Biener <rguenther@suse.de>
6220
6221 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6222 member ...
6223 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6224 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6225 (SLP_TREE_LOAD_PERMUTATION): Add.
6226 (vect_transform_slp_perm_load): Adjust prototype.
6227 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6228 (vect_free_slp_instance): Likewise.
6229 (vect_create_new_slp_node): Likewise.
6230 (vect_supported_slp_permutation_p): Remove.
6231 (vect_slp_rearrange_stmts): Adjust.
6232 (vect_supported_load_permutation_p): Likewise. Inline
6233 vect_supported_slp_permutation_p here.
6234 (vect_analyze_slp_instance): Compute load permutations per
6235 slp node instead of per instance.
6236 (vect_get_slp_defs): Adjust.
6237 (vect_transform_slp_perm_load): Likewise.
6238 (vect_schedule_slp_instance): Remove redundant code.
6239 (vect_schedule_slp): Remove hack for PR56270, add it ...
6240 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6241 CSE loads for SLP. Adjust.
6242
ede22fc3
GY
62432013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6244
6245 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6246 spelling in two comments.
6247
67bc84fb
GY
62482013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6249
6250 PR target/56797
6251 * config/arm/arm.c (load_multiple_sequence): Require SP
6252 as base register for loads if SP is in the register list.
6253
e248d83f
MJ
62542013-04-19 Martin Jambor <mjambor@suse.cz>
6255
6256 PR tree-optimization/56718
6257 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6258 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6259 and made public. Adjusted all callers.
6260 (ipa_intraprocedural_devirtualization): New function.
6261 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6262 (ipa_intraprocedural_devirtualization): Likewise.
6263 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6264
4891e8f8
RB
62652013-04-19 Richard Biener <rguenther@suse.de>
6266
6267 PR tree-optimization/57000
6268 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6269
dad89f7c
TG
62702013-04-19 Terry Guo <terry.guo@arm.com>
6271
6272 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6273 Replace with ...
6274 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
6275 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6276 (cortex_m4_fmacs): Use new reservations.
6277 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6278
72ea0d47
VM
62792013-04-18 Vladimir Makarov <vmakarov@redhat.com>
6280
f1e6512c 6281 PR rtl-optimization/56999
72ea0d47
VM
6282 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6283 related code.
6284 (lra_coalesce): Remove split_origin_bitmap and related code.
6285 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
6286 ranges if necessary.
6287
780a5b71
UB
62882013-04-18 Uros Bizjak <ubizjak@gmail.com>
6289
6290 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6291 New array.
6292 (ix86_expand_call): Remove clobbered_registers array and use
6293 x86_64_ms_sysv_extra_clobbered_registers instead.
6294 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6295 Declare here.
6296 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6297 predicate.
6298 * config/i386/i386.md (*call_rex64_ms_sysv): Use
6299 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
6300 (*call_value_rex64_ms_sysv): Ditto.
6301
6f5a366a
CC
63022013-04-18 Cary Coutant <ccoutant@google.com>
6303
6304 * dwarf2out.c (output_pubnames): Check die_perennial_p of
6305 parent instead of die_mark.
6306
475b8f37
DN
63072013-04-18 Diego Novillo <dnovillo@google.com>
6308
6309 * gimple.c (create_gimple_tmp): New.
6310 (get_expr_type): New.
6311 (build_assign): New.
6312 (build_type_cast): New.
6313 * gimple.h (enum ssa_mode): Define.
6314 (gimple_seq_set_location): New.
6315 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 6316 to use build_assign and build_type_cast.
475b8f37 6317
08940f33
RB
63182013-04-18 Richard Biener <rguenther@suse.de>
6319
6320 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
6321 handle negative step. Remove redundant checks.
6322 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
6323 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
6324 for negative step and grouped loads fail to vectorize.
6325
0e0f87d4
SB
63262013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6327
6328 * emit-rtl.c (reset_insn_used_flags): New function.
6329 (reset_all_used_flags): Use it.
6330 (verify_insn_sharing): New function.
6331 (verify_rtl_sharing): Fix verification for SEQUENCEs.
6332
4c445590
JJ
63332013-04-18 Jakub Jelinek <jakub@redhat.com>
6334
6335 PR tree-optimization/56984
6336 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
6337 and (x >> M) >= N don't register any assertion if N << M is the
6338 minimum value.
6339
6873ecab
SB
63402013-04-18 Steven Bosscher <steven@gcc.gnu.org>
6341
6342 * lower-subreg.c (resolve_simple_move): If called self-recursive,
6343 do not delete_insn insns that have not yet been emitted, only
6344 unlink them with remove_insn.
6345 * df-scan.c (df_insn_delete): Revert r197492.
6346
3ccb989e
SB
63472013-04-17 Steven Bosscher <steven@gcc.gnu.org>
6348
6349 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
6350 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
6351
63522013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
6353
6354 * config/arm/arm.md (movsicc_insn): Convert define_insn into
6355 define_insn_and_split.
6356 (and_scc,ior_scc,negscc): Likewise.
6357 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
6358
3ccb989e 63592013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
6360
6361 * config/arm/arm.c (use_return_insn): Return 0 for targets that
6362 can benefit from using a sequence of LDRD instructions in epilogue
6363 instead of a single LDM instruction.
6364
6d10a203
MLI
63652013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
6366
6367 PR 45688
6368 * doc/extend.texi: Fix typo.
6369
6983e6b5
RB
63702013-04-17 Richard Biener <rguenther@suse.de>
6371
6372 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
6373 (vect_build_slp_tree): ... here.
6374 (vect_build_slp_tree_1): Compute which stmts of the SLP group
6375 match. Remove special-casing of mismatched complex loads.
6376 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
6377 re-try the match with swapped commutative operands.
6378 (vect_supported_load_permutation_p): Remove special-casing of
6379 mismatched complex loads.
6380 (vect_analyze_slp_instance): Adjust.
6381
ef23e6a2
RB
63822013-04-17 Richard Biener <rguenther@suse.de>
6383
6384 PR rtl-optimization/56921
6385 * cfgloop.h (struct loop): Add simple_loop_desc member.
6386 (struct niter_desc): Mark with GTY(()).
6387 (simple_loop_desc): Do not use aux field but simple_loop_desc.
6388 * loop-iv.c (get_simple_loop_desc): Likewise.
6389 (free_simple_loop_desc): Likewise.
6390
6391 Revert
6392 2013-04-16 Richard Biener <rguenther@suse.de>
6393
6394 PR rtl-optimization/56921
6395 * loop-init.c (pass_rtl_move_loop_invariants): Add
6396 TODO_do_not_ggc_collect to todo_flags_finish.
6397 (pass_rtl_unswitch): Same.
6398 (pass_rtl_unroll_and_peel_loops): Same.
6399 (pass_rtl_doloop): Same.
6400
fc6f94f5
EB
64012013-04-17 Eric Botcazou <ebotcazou@adacore.com>
6402
6403 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
6404 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
6405 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
6406 references.
6407 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
6408 * tree-streamer.c (record_common_node): Adjust reference in comment.
6409
10a88311
TG
64102013-04-17 Terry Guo <terry.guo@arm.com>
6411
6412 * config/arm/cortex-m4.md: Add a new bypass.
6413
6d9b7208 64142013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
6415
6416 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
6417 New pattern.
6418 (*subs_<optab><mode>_multp2): New pattern.
6419 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6420 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
6421
6d9b7208 64222013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
6423
6424 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
6425 (*subs_mul_imm_<mode>): New pattern.
6426
18a6701e
DE
64272013-04-16 David Edelsohn <dje.gcc@gmail.com>
6428
6429 PR target/56948
6430 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
6431 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
6432 (vsx_movti_32bit): Change j->wa to O->wa.
6433
07c37b2f
RB
64342013-04-16 Richard Biener <rguenther@suse.de>
6435
6436 PR rtl-optimization/56921
6437 * loop-init.c (pass_rtl_move_loop_invariants): Add
6438 TODO_do_not_ggc_collect to todo_flags_finish.
6439 (pass_rtl_unswitch): Same.
6440 (pass_rtl_unroll_and_peel_loops): Same.
6441 (pass_rtl_doloop): Same.
6442
0e0f87d4 64432013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
6444
6445 * config/arm/arm.c (emit_multi_reg_push): New declaration
6446 for an existing function.
6447 (arm_emit_strd_push): New function.
6448 (arm_expand_prologue): Used here.
6449 (arm_emit_ldrd_pop): New function.
6450 (arm_expand_epilogue): Used here.
6451 (arm_get_frame_offsets): Update condition.
6452 (arm_emit_multi_reg_pop): Add a special case for load of a single
6453 register with writeback.
6454
5e8e2af4
UB
64552013-04-16 Uros Bizjak <ubizjak@gmail.com>
6456
6457 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
6458 description.
6459
9fd9ccf7
RB
64602013-04-16 Richard Biener <rguenther@suse.de>
6461
6462 PR tree-optimization/56756
6463 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
6464 (first_mem_ref_loc): New.
6465 (execute_sm): Place the load temporarily before a previous
6466 access instead of in the latch edge to ensure its SSA dependencies
6467 are defined at points dominating the load.
6468
96fba521
SB
64692013-04-16 Steven Bosscher <steven@gcc.gnu.org>
6470
4c8af858
SB
6471 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
6472 correct fix by moving header and footer insn to the footer of
6473 the merged basic block. Clear BB_END of the merged-away block.
6474
96fba521
SB
6475 PR middle-end/43631
6476 * emit-rtl.c (make_note_raw): New function.
6477 (link_insn_into_chain): New static inline function.
6478 (add_insn): Use it.
6479 (add_insn_before, add_insn_after): Factor insn chain linking code...
6480 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
6481 using link_insn_into_chain.
6482 (note_outside_basic_block_p): New helper function for emit_note_after
6483 and emit_note_before.
6484 (emit_note_after): Use nobb variant of add_insn_after if the note
6485 should not be contained in a basic block.
6486 (emit_note_before): Use nobb variant of add_insn_before if the note
6487 should not be contained in a basic block.
6488 (emit_note_copy): Use make_note_raw.
6489 (emit_note): Likewise.
6490 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
6491 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
6492 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
6493 the moved barrier the tail of the basic block it follows.
6494 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
6495
7b8265ba
JJ
64962013-04-15 Jakub Jelinek <jakub@redhat.com>
6497
6498 PR tree-optimization/56962
6499 * gimple-ssa-strength-reduction.c (record_increment): Only set
6500 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
6501 either rhs1 or rhs2 is equal to c->base_expr.
6502
5185d248
RB
65032013-04-15 Richard Biener <rguenther@suse.de>
6504
6505 PR tree-optimization/56933
6506 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
6507 member.
6508 (GROUP_READ_WRITE_DEPENDENCE): Remove.
6509 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
6510 * tree-vect-data-refs.c (vect_analyze_group_access): Move
6511 dependence check ...
6512 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
6513 ... here.
6514 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
6515 GROUP_READ_WRITE_DEPENDENCE.
6516
a24243a0
AK
65172013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6518
6519 * emit-rtl.c (reset_all_used_flags): New function.
6520 (verify_rtl_sharing): Call reset_all_used_flags before and after
6521 performing the checks.
6522
1c50eada
KT
65232013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6524
6525 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
6526 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
6527 * config/arm/constraints.md (De): New constraint.
6528 * config/arm/neon.md (anddi3_neon): Delete.
6529 (neon_vand<mode>): Expand to standard anddi3 pattern.
6530 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
6531 Move earlier in the file.
6532 (neon_inv_logic_op2): Likewise.
6533 (arm_anddi_operand_neon): New predicate.
6534
e927b6ad
RO
65352013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6536
6537 * configure.ac (gcc_cv_ld_as_needed): Set
6538 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
6539 Use -z ignore, -z record on *-*-solaris2*.
6540 (HAVE_LD_AS_NEEDED): Update comment.
6541 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
6542 * configure: Regenerate.
6543 * config.in: Regenerate.
6544 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
6545 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
6546 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
6547 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
6548 equivalents. Fix markup.
6549 * doc/tm.texi: Regenerate.
6550
e0ea8797
AH
65512013-04-15 Andrew Hsieh <andrewhsieh.google.com>
6552
6553 * config/i386/i386.opt: New option mstack-protector-guard=.
6554 * config/i386/i386-opts.h: Add enum stack_protector_guard.
6555 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
6556 TARGET_SSP_TLS_GUARD.
6557 * config/i386/i386.c (ix86_option_override_internal): Set
6558 ix86_stack_protector_guard.
6559 * config/i386/i386.md (stack_protect_set): Enable for
6560 TARGET_SSP_TLS_GUARD only.
6561 (stack_protect_set_<mode>): Ditto.
6562 (stack_protect_test): Ditto.
6563 (stack_protect_test_<mode>): Ditto.
6564 * doc/invoke.texi (i386 Option): Document.
6565
811b72f9
EB
65662013-04-15 Eric Botcazou <ebotcazou@adacore.com>
6567
6568 PR target/56890
6569 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
6570 (S_MODES): Set H_MODE bit.
6571 (SF_MODES): Set only S_MODE and SF_MODE bits.
6572 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
6573 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
6574 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
6575 <MODE_FLOAT>: Likewise.
6576
5529fdd6
JY
65772013-04-15 Joey Ye <joey.ye@arm.com>
6578
6579 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
6580
517b1da2
JY
65812013-04-15 Joey Ye <joey.ye@arm.com>
6582
6583 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
6584 for real far jump.
6585 (thumb_far_jump_used_p): Count instruction size and set
6586 far_jump_used.
6587
01007ae0
EB
65882013-04-14 Eric Botcazou <ebotcazou@adacore.com>
6589
6590 * reorg.c (fill_simple_delay_slots): Reindent block of code.
6591 * resource.c (mark_target_live_regs): Reformat conditional block.
6592
c46f6580
SB
65932013-04-13 Steven Bosscher <steven@gcc.gnu.org>
6594
6595 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
6596 notes, they are emitted only just before final.
6597 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
6598
1f397f45
SB
65992013-04-13 Steven Bosscher <steven@gcc.gnu.org>
6600
6601 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
6602 * cfgrtl.c (delete_insn): Call it here instead.
6603 * lra-spills.c (lra_final_code_change): Use delete_insn.
6604 * haifa-sched.c (sched_remove_insn): Likewise.
6605 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
6606 returning to the nop pool.
6607 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
6608 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
6609
58a51369
SB
66102013-04-12 Steven Bosscher <steven@gcc.gnu.org>
6611
6612 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
6613 * doc/tm.texi: Regenerated.
6614
33159866
UB
66152013-04-12 Uros Bizjak <ubizjak@gmail.com>
6616
6617 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
6618 QImode checks.
6619
226e378f
SB
66202013-04-12 Steven Bosscher <steven@gcc.gnu.org>
6621
6622 * df-core.c (df_find_def): Compare register numbers.
6623 (df_find_use): Likewise.
6624
fafb9b18
VM
66252013-04-12 Vladimir Makarov <vmakarov@redhat.com>
6626
6627 PR target/56903
6628 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
6629 lra_in_progress for return.
6630
9a946fd6
GY
66312013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
6632
6633 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
6634 define_insn into define_insn_and_split and emit movsicc patterns.
6635
41b83758
GY
66362013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
6637
6638 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
6639
d3afd9aa
RB
66402013-04-12 Richard Biener <rguenther@suse.de>
6641
6642 * tree-pass.h (TODO_do_not_ggc_collect): New.
6643 * passes.c (execute_one_ipa_transform_pass): Honor
6644 TODO_do_not_ggc_collect.
6645 (execute_one_pass): Likewise.
6646
6647 Revert
6648 2013-04-10 Richard Biener <rguenther@suse.de>
6649
6650 * passes.c (init_optimization_passes): Remove reload pass.
6651 * ira.c (do_reload): Merge into ...
6652 (ira): ... this.
6653 (rest_of_handle_reload): Remove.
6654 (pass_reload): Likewise.
6655 * config/i386/i386.c (ix86_option_override): Refer to ira instead
6656 of reload for vzeroupper pass placement.
6657
06f9b387
JJ
66582013-04-12 Jakub Jelinek <jakub@redhat.com>
6659
6660 PR tree-optimization/56918
6661 PR tree-optimization/56920
6662 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
6663 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
6664 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
6665 use wide_mul_with_sign method.
6666
953094d2
RB
66672013-04-12 Richard Biener <rguenther@suse.de>
6668
6669 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
6670 not be considered a gimple constant.
6671
bb506982
MG
66722013-04-12 Marc Glisse <marc.glisse@inria.fr>
6673
6674 * fold-const.c (const_binop): Handle vector shifts by a scalar.
6675 (fold_binary_loc): Call const_binop also for mixed vector-scalar
6676 operations.
6677
4b84d650
JJ
66782013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
6679 Jakub Jelinek <jakub@redhat.com>
6680
6681 * opts.c: Include diagnostic-color.h.
6682 (common_handle_option): Handle OPT_fdiagnostics_color_.
6683 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
6684 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
6685 (diagnostic-color.o): New.
6686 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
6687 (diagnostic_color_rule): New enum.
6688 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
6689 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
6690 the location string.
6691 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
6692 either NULL, or color kind.
6693 * diagnostic-color.c: New file.
6694 * diagnostic-color.h: New file.
6695 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
6696 arguments.
6697 * doc/invoke.texi (-fdiagnostics-color): Document.
6698 * pretty-print.h (pp_show_color): Define.
6699 (struct pretty_print_info): Add show_color field.
6700 * diagnostic.c: Include diagnostic-color.h.
6701 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
6702 macros. Colorize error:, warning: etc. strings and also the location
6703 string.
6704 (diagnostic_show_locus): Colorize the caret line.
6705 * pretty-print.c: Include diagnostic-color.h.
6706 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
6707 inside of %< %> quotes or quoted through q format modifier.
6708
067a1e71
AK
67092013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6710
33159866 6711 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 6712
33159866 67132013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
6714
6715 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
6716 code in CC_NZ mode.
6717 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
6718 pattern.
6719
7b55f98f
MP
67202013-04-11 Marek Polacek <polacek@redhat.com>
6721
6722 PR tree-optimization/48184
33159866 6723 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 6724
966b587e
EB
67252013-04-11 Eric Botcazou <ebotcazou@adacore.com>
6726
6727 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
6728 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
6729 (skip_simple_arithmetic): Tidy up.
6730 * tree.h (skip_simple_constant_arithmetic): Declare.
6731
33159866 67322013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
6733
6734 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
6735
1d42c1ec
RB
67362013-04-11 Richard Biener <rguenther@suse.de>
6737
6738 * tree-vect-loop.c (get_initial_def_for_induction): Properly
6739 generate vector constants.
6740
4ba5ea11
RB
67412013-04-11 Richard Biener <rguenther@suse.de>
6742
6743 PR tree-optimization/56878
6744 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
6745 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
6746 New function.
6747 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6748 Prefer to align the DR with the most invariant base address.
6749
f0defe58
SKS
67502013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6751
6752 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
6753 comment.
6754
d07458be
JG
67552013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
6756
6757 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
6758 floating-point vector comparisons against 0.
6759
146b8692
JJ
67602013-04-11 Jakub Jelinek <jakub@redhat.com>
6761
6762 PR tree-optimization/56899
6763 * fold-const.c (extract_muldiv_1): Apply distributive law
6764 only if TYPE_OVERFLOW_WRAPS (ctype).
6765
b8578ff7
BC
67662013-04-11 Bin Cheng <bin.cheng@arm.com>
6767
6768 PR target/56124
6769 * ira-costs.c (scan_one_insn): Check whether the source rtx of
6770 loading has side effect.
6771
0ea8a6f9
SB
67722013-04-10 Steven Bosscher <steven@gcc.gnu.org>
6773
6774 * config/sparc/sparc.c: Include tree-pass.h.
6775 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
6776 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
6777 head of file. Change return type. Split off gate function.
6778 (sparc_gate_work_around_errata): New function.
6779 (pass_work_around_errata): New pass definition.
6780 (insert_pass_work_around_errata) New pass insert definition to
6781 insert pass_work_around_errata just after delayed-branch scheduling.
6782 (sparc_option_override): Insert the pass.
6783 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
6784
42e37616
DM
67852013-04-10 David S. Miller <davem@davemloft.net>
6786
89deeb3b
DM
6787 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
6788 or -mcpu=hypersparc.
6789
42e37616
DM
6790 * target.def (cstore_mode): New hook.
6791 * target.h: Include insn-codes.h
6792 * targhooks.c: Likewise.
6793 (default_cstore_mode): New function.
6794 * targhooks.h: Declare it.
6795 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
6796 * doc/tm.texi: Rebuild.
6797 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
6798 target hook, rather than inspecting the insn_data.
6799 * config/sparc/sparc.c (sparc_cstore_mode): New function.
6800 (TARGET_CSTORE_MODE): Redefine.
6801 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
6802 result patterns.
6803 * config/sparc/predicates.md (cstore_result_operand): New special
6804 predicate.
6805 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
6806 Use it for operand 0.
6807 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
6808 (*snesi_special): Likewise.
6809 (*snesi_zero): Likewise.
6810 (*seqsi_zero): Likewise.
6811 (*sltu_insn): Likewise.
6812 (*sgeu_insn): Likewise.
6813 (*seqdi_special): Make operand 0 and comparison operation be of
6814 DImode.
6815 (*snedi_special): Likewise.
6816 (*snedi_special_vis3): Likewise.
6817 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
6818 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
6819 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
6820 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
6821 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
6822 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
6823 (*sltu_extend_sp64): Likewise.
6824 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
6825 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
6826 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
6827 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
6828 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
6829
95ca411e
YZ
68302013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
6831
6832 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
6833 (aarch64_start_file): Use the new function.
6834
6782438d 68352013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 6836 Jason Merrill <jason@redhat.com>
6782438d
SKS
6837
6838 * common.opt: Add -gdwarf.
6839 * opts.c (common_handle_option): Handle it.
6840 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
6841
bb313b93
RB
68422013-04-10 Richard Biener <rguenther@suse.de>
6843
6844 * passes.c (execute_todo): Do not call ggc_collect conditional here.
6845 (execute_one_ipa_transform_pass): But unconditionally here.
6846 (execute_one_pass): And here.
6847 (init_optimization_passes): Remove reload pass.
6848 * tree-pass.h (TODO_ggc_collect): Remove.
6849 (pass_reload): Likewise.
6850 * ira.c (do_reload): Merge into ...
6851 (ira): ... this.
6852 (rest_of_handle_reload): Remove.
6853 (pass_reload): Likewise.
6854 * config/i386/i386.c (ix86_option_override): Refer to ira instead
6855 of reload for vzeroupper pass placement.
6856 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
6857 and todo_flags_finish of all passes.
6858
793d9a16
RB
68592013-04-10 Richard Biener <rguenther@suse.de>
6860
6861 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
6862 first_const_oprnd field, rename first_def_type to first_op_type.
6863 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
6864 (vect_get_and_check_slp_defs): Always use the type of the
6865 operand. Allow mixed vect_external_def, vect_constant_def types.
6866 (vect_get_constant_vectors): Handle mixed vect_external_def,
6867 vect_constant_def types.
6868
ee8a9b7b
JR
68692013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
6870
6871 PR tree-optimization/55524
6872 * tree-ssa-math-opts.c
6873 (convert_mult_to_fma): Don't use an fms construct
6874 when we don't have an fms operation, but fnma, and it looks
6875 likely that we'll be able to use the latter.
6876
6957a6f6
ZZ
68772013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
6878
6879 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
6880 function.
6881 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
6882 inline fail caused by overwritable functions.
6883
34ab4a5b
CJW
68842013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
6885
6886 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
6887 unnecessary bits in the constant power of two case.
6888
abf9bfbc
RB
68892013-04-10 Richard Biener <rguenther@suse.de>
6890
6891 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
6892 broken code swapping operands.
6893 (vect_build_slp_tree): Do not compute load permutations here.
6894 (vect_analyze_slp_instance): Compute load permutations here,
6895 after building the SLP tree.
6896
f408477e
CB
68972013-04-09 Christian Bruel <christian.bruel@st.com>
6898
6899 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
6900 of next/prev_real_insn.
6901
5ac42672
JH
69022013-04-09 Jan Hubicka <jh@suse.cz>
6903
abf9bfbc
RB
6904 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
6905 Drop aliased parameter.
5ac42672
JH
6906 (function_and_variable_visibility): Do not handle alias pairs.
6907 * cgraph.c (varpool_externally_visible_p): Update prototype.
6908 * varpool.c (varpool_add_new_variable): Update.
6909
5017f1d2
KT
69102013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6911
6912 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
6913
48eecbee
SB
69142013-04-09 Steven Bosscher <steven@gcc.gnu.org>
6915
a949cf1c
SB
6916 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
6917
48eecbee
SB
6918 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
6919
75ef8e3d
MP
69202013-04-09 Marek Polacek <polacek@redhat.com>
6921
6922 PR tree-optimization/48762
33159866 6923 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 6924
23847df4
RB
69252013-04-09 Richard Biener <rguenther@suse.de>
6926
6927 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
6928 dealing with cost.
6929 (vect_build_slp_tree): Likewise.
6930 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
6931 calculating the cost of a SLP instance.
6932 (vect_analyze_slp_instance): Use it from here, after building
6933 the SLP tree.
6934
ea3a0fde
JJ
69352013-04-09 Jakub Jelinek <jakub@redhat.com>
6936
6937 PR middle-end/56883
6938 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
6939 expand_omp_for_static_chunk): Use simple_p = true in
6940 force_gimple_operand_gsi calls when assigning to addressable decls.
6941
a32dfe9d
JL
69422013-04-09 Jeff Law <law@redhat.com>
6943
6944 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
6945 when the boolean was created by converting a wider object which
6946 had a boolean range.
6947
d755c7ef
RB
69482013-04-09 Richard Biener <rguenther@suse.de>
6949
6950 * tree-vectorizer.h (slp_void_p): Remove.
6951 (slp_tree): Typedef before _slp_tree declaration.
6952 (struct _slp_tree): Use a vector of slp_tree as children.
6953 (vect_get_place_in_interleaving_chain): Remove.
6954 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
6955 Move ...
6956 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
6957 and make static.
6958 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
6959 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
6960 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
6961 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
6962 Use slp_node instead of slp_void_p and adjust.
6963
3d741091
RB
69642013-04-09 Richard Biener <rguenther@suse.de>
6965
6966 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
6967 work that is not necessary.
6968
39307ba7
JJ
69692013-04-09 Jakub Jelinek <jakub@redhat.com>
6970
6971 PR tree-optimization/56854
6972 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
6973 forward into clobber stmts if it would change MEM_REF lhs into
6974 non-MEM_REF.
6975
343881fd
MK
69762013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
6977
6978 * tree.c (type_hash_lookup, type_hash_add): Make static.
6979 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
6980
3922658a
RB
69812013-04-09 Richard Biener <rguenther@suse.de>
6982
6983 * tree.h (unsave_expr_now): Remove.
6984 * tree-inline.c (mark_local_for_remap_r): Remove.
6985 (unsave_expr_1): Likewise.
6986 (unsave_r): Likewise.
6987 (unsave_expr_now): Likewise.
6988 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
6989 (propagate_tree_value): Likewise.
6990
9fb6b620
SB
69912013-04-08 Steven Bosscher <steven@gcc.gnu.org>
6992
6993 * doc/rtl.texi (sequence): Rewrite documentation to match the
6994 current use of SEQUENCE rtl objects.
6995 * rtl.def (SEQUENCE): Likewise.
6996
6997 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
6998 Update documentation.
6999 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7000 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7001
7002 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7003
8ddb5a29
TJ
70042013-04-08 Teresa Johnson <tejohnson@google.com>
7005
7006 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7007 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 7008 methods.
8ddb5a29
TJ
7009 (estimate_edge_size_and_time): Add comment to suggest using rounding
7010 methods.
7011 (estimate_node_size_and_time): Ditto.
7012 (remap_edge_change_prob): Use helper rounding divide methods.
7013 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7014 (gimple_mod_pow2_value_transform): Ditto.
7015 (gimple_mod_subtract_transform): Ditto.
7016 (gimple_ic_transform): Ditto.
7017 (gimple_stringops_transform): Ditto.
7018 * stmt.c (conditional_probability): Ditto.
7019 (emit_case_dispatch_table): Ditto.
7020 * lto-cgraph.c (merge_profile_summaries): Ditto.
7021 * tree-optimize.c (execute_fixup_cfg): Ditto.
7022 * cfgcleanup.c (try_forward_edges): Ditto.
7023 * cfgloopmanip.c (scale_loop_profile): Ditto.
7024 (loopify): Ditto.
7025 (duplicate_loop_to_header_edge): Ditto.
7026 (lv_adjust_loop_entry_edge): Ditto.
7027 * tree-vect-loop.c (vect_transform_loop): Ditto.
7028 * profile.c (compute_branch_probabilities): Ditto.
7029 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7030 * lto-streamer-in.c (input_cfg): Ditto.
7031 * gimple-streamer-in.c (input_bb): Ditto.
7032 * ipa-cp.c (update_profiling_info): Ditto.
7033 (update_specialized_profile): Ditto.
7034 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7035 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 7036 rounding methods.
8ddb5a29
TJ
7037 * sched-rgn.c (compute_dom_prob_ps): Ditto.
7038 (compute_trg_info): Ditto.
7039 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7040 (purge_dead_edges): Ditto.
7041 * loop-unswitch.c (unswitch_loop): Ditto.
7042 * cgraphclones.c (cgraph_clone_edge): Ditto.
7043 (cgraph_clone_node): Ditto.
7044 * tree-inline.c (copy_bb): Ditto.
7045 (copy_edges_for_bb): Ditto.
7046 (initialize_cfun): Ditto.
7047 (copy_cfg_body): Ditto.
7048 (expand_call_inline): Ditto.
7049
661e6bd7
KT
70502013-04-08 Kai Tietz <ktietz@redhat.com>
7051
7052 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7053 TARGET_CYGWIN64 by TARGET_64BIT.
7054
105766f3
JR
70552013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7056
7057 * config/epiphany/epiphany.md (GPR_1): New constant.
7058 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7059 * config/epiphany/epiphany.c (gen_compare_reg):
7060 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7061 is already in place.
7062 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7063 Don't require being called during rtl expansion; If y operlaps r0,
7064 return 0.
7065 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7066 (epiphany_expand_epilogue): Likewise.
7067
8afab237
JR
7068 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7069 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 7070 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 7071
fa7707d6
JR
7072 * config/epiphany/constraints.md (CnL): New constraint.
7073 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7074 * config/epiphany/predicates.md (add_operand): Allow 1024.
7075
5138e18d
JR
7076 * config/epiphany/epiphany.md (logical_op): New code iterator.
7077 (op_mnc): New code attribute.
7078 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7079 (mov_f+1, mov_f+2): New peephole2 patterns.
7080
2ccc703d
JR
7081 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7082 (cstoresi4): Also allow re-use of zero result when doing a NE
7083 comparison to a non-zero operand.
aefb0819 7084 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 7085
093ac0a5
JR
7086 * config/epiphany/epiphany.md (<insn_opname>v2si3):
7087 Use gen_addsi3_i / gen_subsi3_i.
7088
f223bb13
JJ
70892013-04-08 Jakub Jelinek <jakub@redhat.com>
7090
7091 PR c++/34949
7092 PR c++/50243
7093 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7094 contain anything but clobbers, at most one __builtin_stack_restore,
7095 optionally debug stmts and final resx, and if it has at least one
7096 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
7097 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7098 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7099 which isn't defaut definition, remove them.
7100 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7101 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7102 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7103 with MEM_REF LHS with SSA_NAME address.
7104
4481581f
JL
71052013-04-08 Jeff Law <law@redhat.com>
7106
7107 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 7108
451dabda
RB
71092013-04-08 Richard Biener <rguenther@suse.de>
7110
7111 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7112 extra newline.
7113 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7114 determined vector type.
7115 (vect_analyze_data_refs): Likewise.
7116 (vect_get_new_vect_var): Adjust.
7117 (vect_create_destination_var): Preserve SSA name versions.
7118 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7119 not dump anything here.
7120
3b088b47
JR
71212013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7122
7123 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7124 Add member lr_slot_known.
7125 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7126 if necessary.
7127 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7128 Remove code that sets lr_slot_offset according to what a previous
7129 version of epiphany_emit_save_restore used to do.
7130 (epiphany_emit_save_restore): When doing an lr save or restore,
7131 set/verify lr_slot_known and lr_slot_offset.
7132
d8484d41
XQ
71332013-04-08 Xinyu Qi <xyqi@marvell.com>
7134
33159866
UB
7135 PR target/54338
7136 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
7137 in ALL_REGS.
7138
481be1c4
RB
71392013-04-08 Richard Biener <rguenther@suse.de>
7140
7141 * alias.c (find_base_term): Fix thinko in previous change.
7142
401f3a81
JJ
71432013-04-08 Jakub Jelinek <jakub@redhat.com>
7144
7145 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7146 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7147 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
7148 if possible to compute val.
7149 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7150 For QImode integers don't require anything about precision. Use
7151 const_with_all_bytes_same to find out if the constant doesn't have
7152 repeated bytes in it.
7153
03ed99a8
AK
71542013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7155
7156 * config/s390/s390.c (s390_expand_insv): Only accept insertions
7157 within mode size.
7158
781b2e62
MP
71592013-04-08 Marek Polacek <polacek@redhat.com>
7160
7161 PR rtl-optimization/48182
7162 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7163 value to 1.
7164
27e430a2
JDA
71652013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7166
7167 PR target/55487
7168 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7169 nuses, make sure we have a label.
7170
4902aa64
BS
71712013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7172
7173 PR target/56843
7174 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7175 (rs6000_emit_swdiv_low_precision): Remove.
7176 (rs6000_emit_swdiv): Rewrite to handle between one and four
7177 iterations of Newton-Raphson generally; modify required number of
7178 iterations for some cases.
7179 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7180
7bca81dc
SB
71812013-04-05 Steven Bosscher <steven@gcc.gnu.org>
7182
7183 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7184 set-but-unused variable.
7185
7186 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7187 basic blocks of released function bodies garbage-collectable.
7188
7189 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7190 (struct rtl_opt_pass): Add TODO_df_finish.
7191
7192 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7193
4542a38a
GY
71942013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7195
7196 * config/arm/constraints.md (q): New constraint.
7197 * config/arm/ldrdstrd.md: New file.
7198 * config/arm/arm.md (ldrdstrd.md) New include.
7199 (arm_movdi): Use "q" instead of "r" constraint
7200 for double-word memory access.
7201 (movdf_soft_insn): Likewise.
7202 * config/arm/vfp.md (movdi_vfp): Likewise.
7203 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 7204 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
7205 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7206 (mem_ok_for_ldrd_strd): Likewise.
7207 (output_move_double): Update assertion.
7208
2385b218
GY
72092013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7210
7211 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7212
75fe1cb5
GY
72132013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7214
7215 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7216 define_insn_and_split.
7217 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7218
dd660e8e
GY
72192013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7220
7221 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7222 define_insn_and_split.
33159866 7223 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
7224 (shiftsi3_compare): New pattern.
7225 (rrx): New pattern.
7226 * config/arm/unspecs.md (UNSPEC_RRX): New.
7227
045e472c
GY
72282013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7229
7230 * config/arm/arm.md (negdi_extendsidi): New pattern.
7231 (negdi_zero_extendsidi): Likewise.
7232
3f3bf1a8
GY
72332013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7234
7235 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7236 define_insn_and_split.
7237 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7238 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7239
b0b49556
GY
72402013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7241
7242 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7243 define_insn_and_split.
7244 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7245 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7246
d633dd84
GY
72472013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7248
7249 * config/arm/arm.md (subsi3_carryin): New pattern.
7250 (subsi3_carryin_const): Likewise.
7251 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7252 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7253
f4499066
GY
72542013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7255
7256 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7257
ceef6fd9
GY
72582013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7259
7260 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 7261 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 7262
ddbdd8a7
KT
72632013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7264
7265 * config/arm/arm.c (arm_expand_builtin): Change fcode
7266 type to unsigned int.
7267
8456d78a
RR
72682013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7269
7270 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7271
526c230f
ILT
72722013-04-04 Ian Lance Taylor <iant@google.com>
7273
33159866
UB
7274 * doc/standards.texi (Standards): The Go frontend supports the Go 1
7275 language standard.
526c230f 7276
3cfbe04d
SB
72772013-04-04 Steven Bosscher <steven@gcc.gnu.org>
7278
7279 PR middle-end/56729
7280 * df-scan.c (df_insn_delete): Disable failing assert.
7281
dfa3f8d0
KT
72822013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7283
7284 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7285 New function prototype.
7286 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7287 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7288 (arm_builtin_vectorized_function): New function.
7289
f7837758
KT
72902013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7291
7292 * config/arm/arm_neon_builtins.def: New file.
7293 * config/arm/arm.c (neon_builtin_data): Move contents to
7294 arm_neon_builtins.def.
7295 (enum arm_builtins): Include neon builtin definitions.
7296 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 7297 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 7298
39c1b6db
MP
72992013-04-04 Marek Polacek <polacek@redhat.com>
7300
7301 PR tree-optimization/48186
7302 * predict.c (maybe_hot_frequency_p): Return false if
7303 HOT_BB_FREQUENCY_FRACTION is 0.
7304 (cgraph_maybe_hot_edge_p): Likewise.
7305
314f64eb
RB
73062013-04-04 Richard Biener <rguenther@suse.de>
7307
7308 PR tree-optimization/56826
7309 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
7310 more accurately.
7311
51a905b2
RB
73122013-04-04 Richard Biener <rguenther@suse.de>
7313
7314 PR tree-optimization/56213
7315 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 7316 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 7317
f1bf4f3a
RB
73182013-04-04 Richard Biener <rguenther@suse.de>
7319
7320 PR tree-optimization/56837
7321 * tree-loop-distribution.c (classify_partition): For non-zero
7322 values require that the value has the same precision as its
7323 mode to be useful as memset value.
7324
0bca7ded
NC
73252013-04-03 Nick Clifton <nickc@redhat.com>
7326
33159866 7327 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
7328 (fmssf4): Use fmsf.s on E3V5 architectures.
7329 (fnmasf4): Use fnmaf.s on E3V5 architectures.
7330 (fnmssf4): Use fnmsf.s on E3V5 architectures.
7331
b4019227
JL
73322013-04-03 Jeff Law <law@redhat.com>
7333
7334 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
7335 (lra-eliminations.o): Likewise.
7336
f57ddb5b
TJ
73372013-04-03 Teresa Johnson <tejohnson@google.com>
7338
7339 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 7340 compute_working_sets here from profile.c.
f57ddb5b 7341 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
7342 (gcov_working_set_t): Moved typedef here from basic-block.h
7343 (compute_working_set): Declare.
f57ddb5b
TJ
7344 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
7345 (get_working_sets): Renamed from compute_working_set,
33159866 7346 replace most of body with call to new compute_working_sets.
f57ddb5b 7347 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
7348 to get_working_sets.
7349 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 7350 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 7351 to get_working_sets.
f57ddb5b
TJ
7352 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
7353 * gcov-dump.c (dump_working_sets): New function.
7354
5e0919f1
KZ
73552013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
7356
7357 * hwint.c (sext_hwi, zext_hwi): New functions.
7358 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
7359 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
7360 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
7361 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
7362 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
7363 (sext_hwi, zext_hwi): New functions.
0bca7ded 7364
be672e08
JL
73652013-04-03 Jeff Law <law@redhat.com>
7366
7367 PR tree-optimization/56799
33159866
UB
7368 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
7369 back test for widening conversion erroneously dropped in prior change.
be672e08 7370
9d821fa5
KT
73712013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7372
7373 PR target/56809
7374 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
7375 instead of next_real_insn.
7376
71c581e7
MP
73772013-04-03 Marek Polacek <polacek@redhat.com>
7378
7379 PR sanitizer/55702
33159866 7380 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 7381
4a32ef80
KT
73822013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7383
7384 PR target/56809
7385 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
7386 next_real_insn.
7387 (thumb1_output_casesi): Likewise.
7388 (thumb2_output_casesi): Likewise.
7389
1b2253d4
RB
73902013-04-03 Richard Biener <rguenther@suse.de>
7391
7392 PR tree-optimization/56817
7393 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
7394 Split out ...
7395 (tree_unroll_loops_completely_1): ... new function to manually
7396 walk the loop tree, properly defering outer loops of unrolled
7397 loops to later iterations.
7398
38000232
MG
73992013-04-03 Marc Glisse <marc.glisse@inria.fr>
7400
7401 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
7402 (vectorizable_load): Likewise.
7403 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7404 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
7405
3fa35298
MG
74062013-04-03 Marc Glisse <marc.glisse@inria.fr>
7407
7408 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
7409 BIT_FIELD_REF.
7410
b3d45ff0
UW
74112013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7412
7413 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
7414
ec9202a8
BC
74152013-04-03 Bin Cheng <bin.cheng@arm.com>
7416
7417 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
7418
6805bd36
MG
74192013-04-03 Marc Glisse <marc.glisse@inria.fr>
7420
7421 PR tree-optimization/56790
33159866
UB
7422 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
7423 folding.
6805bd36 7424
da694a77
MG
74252013-04-03 Marc Glisse <marc.glisse@inria.fr>
7426
7427 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
7428 Handle VEC_MERGE.
7429 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
7430 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
7431 equal arguments.
7432
4e7d7b3d
JJ
74332013-04-03 Jakub Jelinek <jakub@redhat.com>
7434
7435 PR c/19449
7436 * tree.h (force_folding_builtin_constant_p): New decl.
7437 * builtins.c (force_folding_builtin_constant_p): New variable.
7438 (fold_builtin_constant_p): Fold immediately also if
7439 force_folding_builtin_constant_p.
7440
e6c9d234
RB
74412013-04-03 Richard Biener <rguenther@suse.de>
7442
7443 PR tree-optimization/56812
7444 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
7445 DRs of the same interleaving chain are independent.
7446
984d07dd
JM
74472013-04-02 Jason Merrill <jason@redhat.com>
7448
7449 * gdbinit.in (pbb): Use debug fn.
7450
622849c9
LC
74512013-04-02 Lawrence Crowl <crowl@google.com>
7452
7453 * sese.h (struct ivtype_map_elt_s): Remove unused.
7454 (extern debug_ivtype_map): Remove unused.
7455 (extern eq_ivtype_map_elts): Remove unused.
7456 * sese.c (debug_ivtype_map): Removed unused.
7457 (debug_ivtype_map_1): Removed unused.
7458 (debug_ivtype_elt): Remove unused.
7459 (eq_ivtype_map_elts): Remove unused.
7460
7461
82c0e1a0
KT
74622013-04-02 Kai Tietz <ktietz@redhat.com>
7463
7464 PR target/52790
7465 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
7466 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
7467 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
7468 function.
82c0e1a0
KT
7469 (legitimize_pe_coff_symbol): Likewise.
7470 (is_imported_p): New helper-function.
7471 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
7472 for Windows x64 targets.
7473 (ix86_expand_prologue): Optimize for pe-coff targets.
7474 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
7475 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
7476 medium/large code-model.
7477 (legitimize_pic_address): Likewise.
7478 (legitimize_tls_address): Likewise.
7479 (ix86_expand_call): Likewise.
7480 (x86_output_mi_thunk): Likewise.
7481 (get_dllimport_decl): Add new beimport argument.
7482 (construct_plt_address): Don't assert for x64 pe-coff targets.
7483 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
7484 targets.
7485 (SYMBOL_FLAG_STUBVAR): New macro.
7486 (SYMBOL_REF_STUBVAR_P): Likewise.
7487 * config/i386/winnt.c (stub_list): New structure.
7488 (stub_head): New local variable.
7489 (i386_pe_record_stub): New function.
7490 (i386_pe_file_end): Emit refptr-stubs.
7491
5d751b0c
JJ
74922013-04-02 Jakub Jelinek <jakub@redhat.com>
7493
09bb4c99
JJ
7494 PR rtl-optimization/56745
7495 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
7496 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
7497
a1d8947a
JJ
7498 PR c++/34949
7499 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
7500 and both of them are MEM_REFs, just compare first argument for
7501 equality and attempt to deal even with differing offsets.
7502
5d751b0c
JJ
7503 PR c++/34949
7504 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
7505 of gimple_clobber_p to be MEM_REF.
7506 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
7507 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
7508 after gimplification.
7509 * asan.c (get_mem_ref_of_assignment): Don't instrument
7510 gimple_clobber_p stmts.
7511 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
7512 gimple_clobber_p stmt if they have MEM_REF lhs and
7513 are dead because of another gimple_clobber_p stmt.
7514 * tree-ssa-live.c (clear_unused_block_pointer): Treat
7515 gimple_clobber_p stmts like debug stmts.
7516 (remove_unused_locals): Remove clobbers with MEM_REF lhs
7517 that refer to unused VAR_DECLs or uninitialized values.
7518 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
7519 gimple_clobber_p stmts if they refer to removed parameters.
7520 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
7521 formatting.
7522
e594716a
UB
75232013-04-02 Uros Bizjak <ubizjak@gmail.com>
7524
7525 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
7526 using SWI48 mode attribute.
7527
7a80735b
WM
75282013-04-02 Wei Mi <wmi@google.com>
7529
7530 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
7531 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
7532 *<rotate_insn><mode>3_mask in i386.md.
7533
f423a9e4
AI
75342013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
7535
7536 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
7537
90eb75f2
RB
75382013-04-02 Richard Biener <rguenther@suse.de>
7539
7540 PR tree-optimization/56778
7541 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
7542 Runtime alias tests are not supported for gather loads.
7543 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
7544 stmts referenced from SSA operands before updating SSA form.
7545
d8c69a92
IC
75462013-04-02 Ian Caulfield <ian.caulfield@arm.com>
7547 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7548
7549 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
7550 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
7551 * config/arm/cortex-a53.md: New file.
7552 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
7553 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
7554 * config/arm/arm.c (arm_issue_rate): Likewise.
7555 * config/arm/arm-tune.md: Regenerate
7556 * config/arm/arm-tables.opt: Regenerate.
7557 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 7558
239eb04c
ZC
75592013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
7560
7561 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
7562 non-static link.
7563
c902d3c8
SN
75642013-04-02 Sofiane Naci <sofiane.naci@arm.com>
7565
d8c69a92
IC
7566 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
7567 scalar load/store operations using B/H registers.
c902d3c8
SN
7568 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
7569
051d0e2f
SN
75702013-04-02 Sofiane Naci <sofiane.naci@arm.com>
7571
7572 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
7573 scalar move.
7574 * config/aarch64/aarch64.c
7575 (aarch64_simd_scalar_immediate_valid_for_move): New.
7576 * config/aarch64/aarch64-protos.h
7577 (aarch64_simd_scalar_immediate_valid_for_move): New.
7578 * config/aarch64/constraints.md (Dh, Dq): New.
7579 * config/aarch64/iterators.md (hq): New.
7580
0ee1e3d9
EB
75812013-04-02 Eric Botcazou <ebotcazou@adacore.com>
7582
7583 * reorg.c (get_branch_condition): Deal with conditional returns.
7584 (fill_simple_delay_slots): Remove dead code dealing with jumps.
7585
136fb3f7
WM
75862013-04-01 Wei Mi <wmi@google.com>
7587
7588 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
7589 Truncate operand 2 using %b asm operand modifier.
7590 (*<shift_insn><mode>3_mask): Ditto.
7591 (*<rotate_insn><mode>3_mask): Ditto.
7592
6388c738
SB
75932013-04-01 Steven Bosscher <steven@gcc.gnu.org>
7594
7595 PR middle-end/56798
7596 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
7597
f7a4d826
KK
75982013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
7599
7600 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
7601 of next_real_insn.
7602 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
7603
4b943a49
LC
76042013-03-30 Lawrence Crowl <crowl@google.com>
7605
7606 * dse.c (clear_alias_sets): Remove never set.
7607 (disqualified_clear_alias_sets): Remove never set.
7608 (clear_alias_mode_pool): Remove never set.
7609 (dse_step0): Remove condition that is never true.
7610 (canon_address): Remove condition that is never true.
7611 (dse_step7): Remove condition that is never true.
7612 (rest_of_handle_dse): Remove condition that is never true.
7613 (rest_of_handle_dse::did_global): Remove never read from above.
7614 (dse_step2_spill): Remove never called from above.
7615 (dse_step5_spill): Remove never called from above.
7616
39718607
SB
76172013-03-30 Steven Bosscher <steven@gcc.gnu.org>
7618
da5c6bde
SB
7619 * doc/md.texi (Standard Names) <casesi>: Update documentation for
7620 JUMP_TABLE_DATA changes.
7621 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
7622 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
7623 (Insns) <jump_table_data>: New entry.
7624 * doc/tm.texi: Regenerate.
7625
39718607
SB
7626 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
7627
7628 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
7629 for table jump at the end of a basic block using tablejump_p.
7630 * targhooks.c (default_invalid_within_doloop): Likewise.
7631 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
7632 target hook implementation that is identical to the default hook.
7633 (rs6000_invalid_within_doloop): Remove.
7634
7635 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
7636 unused variable from tablejump_p call.
7637
7638 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
7639 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
7640 (INSN_DELETED_P): Likewise.
7641 (emit_jump_table_data): New prototype.
7642 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
7643 after 4th as unused.
7644 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
7645 * sched-vis.c (print_insn): Likewise.
7646 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
7647 insn for compatibility with back ends that use next_active_insn to
7648 identify jump table data.
7649 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
7650 (remove_insn): Likewise.
7651 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
7652 to be emitted.
7653 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
7654 (emit_jump_table_data): New function.
7655
7656 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
7657 basic block, a JUMP_TABLE_DATA never is.
7658 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
7659 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
7660 off from code handling real insns.
7661 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
7662 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
7663 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
7664 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
7665 is not a NONDEBUG_INSN_P.
7666 * ira-costs.c (scan_one_insn): Likewise.
7667 * jump.c (mark_all_labels): Likewise.
7668 (mark_jump_label_1): Likewise.
7669 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7670 * lra.c (get_insn_freq): Expect all insns reaching here to be in
7671 a basic block.
7672 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
7673 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
7674 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
7675 JUMP_TABLE_DATA_P insns.
7676 (calculate_elim_costs_all_insns): Likewise.
7677 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
7678 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
7679 (delete_output_reload): Code style fixups.
7680 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
7681 insn flags on this non-insn.
7682 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
7683 as scheduling barriers, for pre-change compatibility.
7684 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
7685 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
7686
7687 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
7688 redundant JUMP_TABLE_DATA_P test.
7689 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
7690 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7691 (frv_for_each_packet): Likewise.
7692 * config/i386/i386.c (min_insn_size): Likewise.
7693 (ix86_avoid_jump_mispredicts): Likewise.
7694 * config/m32r/m32r.c (m32r_is_insn): Likewise.
7695 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
7696 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7697 (mips16_insn_length): Robustify.
7698 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
7699 (mips16_split_long_branches): Likewise.
7700 * config/pa/pa.c (pa_combine_instructions): Likewise.
7701 * config/rs6000/rs6000.c (get_next_active_insn): Treat
7702 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
7703 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
7704 as contributing to pool range lengths.
7705 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
7706 Remove redundant JUMP_TABLE_DATA_P test.
7707 (sh_loop_align): Likewise.
7708 (split_branches): Likewise.
7709 (sh_insn_length_adjustment): Likewise.
7710 * config/spu/spu.c (get_branch_target): Likewise.
7711
0208f7da
JH
77122013-03-29 Jan Hubicka <jh@suse.cz>
7713
7714 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
7715 gcov streaming; stream hot bb threshold to ltrans.
7716 * predict.c (get_hot_bb_threshold): Break out from ....
7717 (maybe_hot_count_p): ... here.
7718 (set_hot_bb_threshold): New function.
7719 * lto-section-in.c (lto_section_name): Add profile.
7720 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
7721 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
7722 and data-streamer.h
7723 (histogram_entry): New structure.
7724 (histogram, histogram_pool): New global vars.
7725 (histogram_hash): New structure.
7726 (histogram_hash::hash): New method.
7727 (histogram_hash::equal): Likewise.
7728 (account_time_size): New function.
7729 (cmp_counts): New function.
7730 (dump_histogram): New function.
7731 (ipa_profile_generate_summary): New function.
7732 (ipa_profile_write_summary): New function.
7733 (ipa_profile_read_summary): New function.
7734 (ipa_profile): Decide on threshold.
e594716a
UB
7735 (pass_ipa_profile): Add ipa_profile_write_summary and
7736 ipa_profile_read_summary.
0208f7da
JH
7737 * Makefile.in (ipa.o): Update dependencies.
7738 * lto-streamer.h (LTO_section_ipa_profile): New section.
7739
5a6ccc94
GDR
77402013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
7741
7742 * tree.h (VAR_P): New.
7743
39385fa6
PC
77442013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
7745
7746 PR lto/56777
7747 * doc/invoke.texi ([-fwhole-program]): Fix typo.
7748
34f0d87a
SB
77492013-03-29 Steven Bosscher <steven@gcc.gnu.org>
7750
7751 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
7752 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7753 (control_flow_insn_p): Likewise.
7754 * cfgrtl.c (duplicate_insn_chain): Likewise.
7755 * final.c (get_attr_length_1): Likewise.
7756 (shorten_branches): Likewise.
7757 (final_scan_insn): Likewise.
7758 * function.c (instantiate_virtual_regs): Likewise.
7759 * gcse.c (insert_insn_end_basic_block): Likewise.
7760 * ira-costs.c (scan_one_insn): Likewise.
7761 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
7762 * lra.c (check_rtl): Likewise.
7763 * reload1.c (elimination_costs_in_insn): Likewise.
7764 * reorg.c (follow_jumps): Likewise.
7765
7766 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
7767 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
7768 (thumb_far_jump_used_p): Likewise.
7769 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
7770 (workaround_speculation): Likewise.
7771 (add_sched_insns_for_speculation): Likewise.
7772 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
7773 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
7774 (frv_for_each_packet): Likewise.
7775 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
7776 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
7777 (final_emit_insn_group_barriers): Likewise.
7778 * config/m32r/m32r.c (m32r_is_insn): Likewise.
7779 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
7780 (mips16_insn_length): Likewise.
7781 * config/pa/pa.c (pa_reorg): Likewise.
7782 (pa_combine_instructions): Likewise.
7783 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
7784 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
7785 (sh_reorg): Likewise.
7786 (split_branches): Likewise.
7787 * config/spu/spu.c (get_branch_target): Likewise.
7788
7789 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
7790 JUMP_TABLE_DATA_P.
7791
4ac761b0
KY
77922013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
7793
39385fa6 7794 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
7795 Fix declaration name.
7796
58a49189
LC
77972013-03-28 Lawrence Crowl <crowl@google.com>
7798
7799 * graphds.h (struct graph.indicies): Remove unused.
7800 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
7801 (SCOP_ORIGINAL_PDDRS): Remove unused.
7802 * sese.h (extern insert_loop_close_phis): Removed unused.
7803 (extern insert_guard_phis): Removed unused.
7804 (extern ivtype_map_elt_info): Removed unused.
7805 (new_ivtype_map_elt): Removed unused.
7806 * sese.c (ivtype_map_elt_info): Removed unused.
7807
7b3b6ae4
LC
78082013-03-28 Lawrence Crowl <crowl@google.com>
7809
7810 * Makefile.in: Add several missing include dependences.
7811 (DUMPFILE_H): New.
7812 (test-dump.o): New. This object is not added to any executable,
7813 but is present for ad-hoc testing.
7814 * bitmap.c
7815 (debug (const bitmap_head_def &)): New.
7816 (debug (const bitmap_head_def *)): New.
7817 * bitmap.h
7818 (extern debug (const bitmap_head_def &)): New.
7819 (extern debug (const bitmap_head_def *)): New.
7820 * cfg.c
7821 (debug (edge_def &)): New.
7822 (debug (edge_def *)): New.
7823 * cfghooks.c
7824 (debug (basic_block_def &)): New.
7825 (debug (basic_block_def *)): New.
7826 * dumpfile.h
7827 (dump_node (const_tree, int, FILE *)): Correct source file.
7828 * dwarf2out.c
7829 (debug (die_struct &)): New.
7830 (debug (die_struct *)): New.
7831 * dwarf2out.h
7832 (extern debug (die_struct &)): New.
7833 (extern debug (die_struct *)): New.
7834 * gimple-pretty-print.c
7835 (debug (gimple_statement_d &)): New.
7836 (debug (gimple_statement_d *)): New.
7837 * gimple-pretty-print.h
7838 (extern debug (gimple_statement_d &)): New.
7839 (extern debug (gimple_statement_d *)): New.
7840 * ira-build.c
7841 (debug (ira_allocno_copy &)): New.
7842 (debug (ira_allocno_copy *)): New.
7843 (debug (ira_allocno &)): New.
7844 (debug (ira_allocno *)): New.
7845 * ira-int.h
7846 (extern debug (ira_allocno_copy &)): New.
7847 (extern debug (ira_allocno_copy *)): New.
7848 (extern debug (ira_allocno &)): New.
7849 (extern debug (ira_allocno *)): New.
7850 * ira-lives.c
7851 (debug (live_range &)): New.
7852 (debug (live_range *)): New.
7853 * lra-int.h
7854 (debug (lra_live_range &)): New.
7855 (debug (lra_live_range *)): New.
7856 * lra-lives.c
7857 (debug (lra_live_range &)): New.
7858 (debug (lra_live_range *)): New.
7859 * omega.c
7860 (debug (omega_pb_d &)): New.
7861 (debug (omega_pb_d *)): New.
7862 * omega.h
7863 (extern debug (omega_pb_d &)): New.
7864 (extern debug (omega_pb_d *)): New.
7865 * print-rtl.c
7866 (debug (const rtx_def &)): New.
7867 (debug (const rtx_def *)): New.
7868 * print-tree.c
7869 (debug_tree (tree): Move within file.
7870 (debug_raw (const tree_node &)): New.
7871 (debug_raw (const tree_node *)): New.
7872 (dump_tree_via_hooks (const tree_node *, int)): New.
7873 (debug (const tree_node &)): New.
7874 (debug (const tree_node *)): New.
7875 (debug_verbose (const tree_node &)): New.
7876 (debug_verbose (const tree_node *)): New.
7877 (debug_head (const tree_node &)): New.
7878 (debug_head (const tree_node *)): New.
7879 (debug_body (const tree_node &)): New.
7880 (debug_body (const tree_node *)): New.
7881 (debug_vec_tree (tree): Move and reimplement in terms of dump.
7882 (debug (vec<tree, va_gc> &)): New.
7883 (debug (vec<tree, va_gc> *)): New.
7884 * rtl.h
7885 (extern debug (const rtx_def &)): New.
7886 (extern debug (const rtx_def *)): New.
7887 * sbitmap.c
7888 (debug_raw (simple_bitmap_def &)): New.
7889 (debug_raw (simple_bitmap_def *)): New.
7890 (debug (simple_bitmap_def &)): New.
7891 (debug (simple_bitmap_def *)): New.
7892 * sbitmap.h
7893 (extern debug (simple_bitmap_def &)): New.
7894 (extern debug (simple_bitmap_def *)): New.
7895 (extern debug_raw (simple_bitmap_def &)): New.
7896 (extern debug_raw (simple_bitmap_def *)): New.
7897 * sel-sched-dump.c
7898 (debug (vinsn_def &)): New.
7899 (debug (vinsn_def *)): New.
7900 (debug_verbose (vinsn_def &)): New.
7901 (debug_verbose (vinsn_def *)): New.
7902 (debug (expr_def &)): New.
7903 (debug (expr_def *)): New.
7904 (debug_verbose (expr_def &)): New.
7905 (debug_verbose (expr_def *)): New.
7906 (debug (vec<rtx> &)): New.
7907 (debug (vec<rtx> *)): New.
7908 * sel-sched-dump.h
7909 (extern debug (vinsn_def &)): New.
7910 (extern debug (vinsn_def *)): New.
7911 (extern debug_verbose (vinsn_def &)): New.
7912 (extern debug_verbose (vinsn_def *)): New.
7913 (extern debug (expr_def &)): New.
7914 (extern debug (expr_def *)): New.
7915 (extern debug_verbose (expr_def &)): New.
7916 (extern debug_verbose (expr_def *)): New.
7917 (extern debug (vec<rtx> &)): New.
7918 (extern debug (vec<rtx> *)): New.
7919 * sel-sched-ir.h
7920 (_list_iter_cond_expr): Make inline instead of static.
7921 * sreal.c
7922 (debug (sreal &)): New.
7923 (debug (sreal *)): New.
7924 * sreal.h
7925 (extern debug (sreal &)): New.
7926 (extern debug (sreal *)): New.
7927 * tree.h
7928 (extern debug_raw (const tree_node &)): New.
7929 (extern debug_raw (const tree_node *)): New.
7930 (extern debug (const tree_node &)): New.
7931 (extern debug (const tree_node *)): New.
7932 (extern debug_verbose (const tree_node &)): New.
7933 (extern debug_verbose (const tree_node *)): New.
7934 (extern debug_head (const tree_node &)): New.
7935 (extern debug_head (const tree_node *)): New.
7936 (extern debug_body (const tree_node &)): New.
7937 (extern debug_body (const tree_node *)): New.
7938 (extern debug (vec<tree, va_gc> &)): New.
7939 (extern debug (vec<tree, va_gc> *)): New.
7940 * tree-cfg.c
7941 (debug (struct loop &)): New.
7942 (debug (struct loop *)): New.
7943 (debug_verbose (struct loop &)): New.
7944 (debug_verbose (struct loop *)): New.
7945 * tree-dump.c: Add header dependence.
7946 * tree-flow.h
7947 (extern debug (struct loop &)): New.
7948 (extern debug (struct loop *)): New.
7949 (extern debug_verbose (struct loop &)): New.
7950 (extern debug_verbose (struct loop *)): New.
7951 * tree-data-ref.c
7952 (debug (data_reference &)): New.
7953 (debug (data_reference *)): New.
7954 (debug (vec<data_reference_p> &)): New.
7955 (debug (vec<data_reference_p> *)): New.
7956 (debug (vec<ddr_p> &)): New.
7957 (debug (vec<ddr_p> *)): New.
7958 * tree-data-ref.h
7959 (extern debug (data_reference &)): New.
7960 (extern debug (data_reference *)): New.
7961 (extern debug (vec<data_reference_p> &)): New.
7962 (extern debug (vec<data_reference_p> *)): New.
7963 (extern debug (vec<ddr_p> &)): New.
7964 (extern debug (vec<ddr_p> *)): New.
7965 * tree-ssa-alias.c
7966 (debug (pt_solution &)): New.
7967 (debug (pt_solution *)): New.
7968 * tree-ssa-alias.h
7969 (extern debug (pt_solution &)): New.
7970 (extern debug (pt_solution *)): New.
7971 * tree-ssa-alias.c
7972 (debug (_var_map &)): New.
7973 (debug (_var_map *)): New.
7974 (debug (tree_live_info_d &)): New.
7975 (debug (tree_live_info_d *)): New.
7976 * tree-ssa-alias.h
7977 (extern debug (_var_map &)): New.
7978 (extern debug (_var_map *)): New.
7979 (extern debug (tree_live_info_d &)): New.
7980 (extern debug (tree_live_info_d *)): New.
7981
be77e1e5
JH
79822013-03-28 Jan Hubicka <jh@suse.cz>
7983
7984 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
7985
777e6976
IB
79862013-03-28 Ian Bolton <ian.bolton@arm.com>
7987
7988 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
7989 record only when desired or required.
7990
9cd347ae
UB
79912013-03-28 Uros Bizjak <ubizjak@gmail.com>
7992
7993 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
7994 *vec_extractv2di_1_rex64. Use x64 isa attribute.
7995
33159866 79962013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
7997
7998 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
7999 (*andsi3_compare0_uxtw): New pattern.
8000 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8001 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8002
89ab31c1
JH
80032013-03-28 Jan Hubicka <jh@suse.cz>
8004
8005 * data-streamer-in.c (streamer_read_gcov_count): New function.
8006 * gimple-streamer-out.c: Include value-prof.h.
8007 (output_gimple_stmt): Output histogram.
8008 (output_bb): Use streamer_write_gcov_count.
8009 * value-prof.c: Include data-streamer.h
8010 (dump_histogram_value): Add HIST_TYPE_MAX.
8011 (stream_out_histogram_value): New function.
8012 (stream_in_histogram_value): New function.
8013 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8014 (stream_out_histogram_value, stream_in_histogram_value): Declare.
8015 * data-streamer-out.c (streamer_write_gcov_count): New function.
8016 (streamer_write_gcov_count_stream): New function.
8017 * lto-cgraph.c (lto_output_edge): Update counter streaming.
8018 (lto_output_node): Likewise.
8019 (input_node, input_edge): Likewise.
8020 * lto-streamer-out.c (output_cfg): Update streaming.
8021 * lto-streamer-in.c (input_cfg): Likewise.
8022 * data-streamer.h (streamer_write_gcov_count,
8023 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8024 * gimple-streamer-in.c: Include value-prof.h
8025 (input_gimple_stmt): Input histograms.
8026 (input_bb): Update profile streaming.
8027
e594716a 80282013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 8029
33159866 8030 * genmodes.c (emit_max_int): New function.
8697be17 8031 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
8032 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8033 Added doc.
8697be17 8034 * machmode.def: Fixed comment.
89ab31c1 8035
e594716a 80362013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
8037
8038 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
8039 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8040
74946978
MP
80412013-03-28 Marek Polacek <polacek@redhat.com>
8042 Richard Biener <rguenther@suse.de>
8043
8044 PR tree-optimization/56695
8045 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8046 build signed result of a vector comparison.
8047 * tree-cfg.c (verify_gimple_comparison): Check that a result
8048 of a vector comparison has signed type.
8049
a64b9c26
RB
80502013-03-28 Richard Biener <rguenther@suse.de>
8051
8052 PR tree-optimization/37021
8053 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8054 do not restrict gaps between groups.
8055 * tree-vect-stmts.c (vectorizable_load): Properly account for
8056 a gap between groups.
8057
a9dc2a2f
EB
80582013-03-28 Eric Botcazou <ebotcazou@adacore.com>
8059
8060 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8061 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8062 is not enabled.
8063
53cb97f9
GP
80642013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8065
8066 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8067 * doc/extend.texi (Named Address Spaces): Ditto.
8068 (Variable Attributes): Ditto.
8069
b802ae5c
KT
80702013-03-27 Kai Tietz <ktietz@redhat.com>
8071
eddae10a
KT
8072 * config.build: Add support for cygwin x64 target.
8073 * config.gcc: Likewise.
8074 * config.host: Likewise.
8075 * configure.ac: Likewise
8076 * configure: Regenerated.
b802ae5c 8077
8269de54
KT
80782013-03-27 Kai Tietz <ktietz@redhat.com>
8079
8080 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8081 * config/i386/t-cygwin-w64: New file.
8082 * config/i386/cygwin-w64.h: New file.
8083 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8084 and add support for x64-cygwin target.
8085 (CPP_SPEC): Likewise.
8086 (CXX_WRAP_SPEC_LIST): Undefine before define.
8087 (LIBGCJ_SONAME): Use 15 as version.
8088
f49b33cb
RB
80892013-03-27 Richard Biener <rguenther@suse.de>
8090
8091 PR tree-optimization/56716
8092 * tree-ssa-structalias.c (perform_var_substitution): Adjust
8093 dumping for ref nodes.
8094
b37a6ce5
MJ
80952013-03-27 Martin Jambor <mjambor@suse.cz>
8096
8097 PR tree-optimization/55334
8098 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8099 restricted pointers to arrays.
8100
9469b9b2
GDR
81012013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8102
8103 * Makefile.in (.SUFFIXES): Add .cc.
8104 (.c.o): Apply same recipe for implicit rule .cc.o.
8105
7d24f650
RB
81062013-03-27 Richard Biener <rguenther@suse.de>
8107
8108 PR tree-optimization/37021
8109 * tree-vect-data-refs.c (vect_check_strided_load): Allow
8110 REALPART/IMAGPART_EXPRs around the supported refs.
8111 * tree-ssa-structalias.c (find_func_aliases): Assume that
8112 floating-point values are not used to transfer pointers.
8113
2f251a05
AI
81142013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8115
39385fa6
PC
8116 * target.def (TARGET_HAS_IFUNC_P): New target hook.
8117 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8118 * doc/tm.texi: Regenerate.
8119 * targhooks.h (default_has_ifunc_p): New.
8120 * targhooks.c (default_has_ifunc_p): Ditto.
8121 * config/linux-protos.h: New file.
8122 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
8123 this hook for linux which disables support of indirect functions in
8124 android.
39385fa6
PC
8125 * config/linux-android.c: New file.
8126 * config/t-linux-android.c: Ditto.
8127 * config.gcc: Added new object file linux-android.o.
8128 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 8129 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 8130 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
8131 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8132 doesn't support indirect functions.
8133 * configure: Regenerate.
8134
78b4e425
BC
81352013-03-27 Bin Cheng <bin.cheng@arm.com>
8136
8137 PR target/56102
8138 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8139 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8140 mult-word mode.
8141
a5ba7b92
AK
81422013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8143
8144 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8145
be624986
TG
81462013-03-27 Terry Guo <terry.guo@arm.com>
8147
8148 * config/arm/arm-cores.def: Added core cortex-r7.
8149 * config/arm/arm-tune.md: Regenerated.
8150 * config/arm/arm-tables.opt: Regenerated.
8151 * doc/invoke.texi: Added entry for core cortex-r7.
8152
0a514f47
WL
81532013-03-27 Walter Lee <walt@tilera.com>
8154
8155 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8156 double-decrement of next_scratch_regno.
8157
9332b0d2
WL
81582013-03-27 Walter Lee <walt@tilera.com>
8159
801d9b2a 8160 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
8161 input operands.
8162 (insn_v1mulus): Ditto.
8163 (insn_v2muls): Ditto.
8164
f54ea5dd
WL
81652013-03-27 Walter Lee <walt@tilera.com>
8166
e594716a 8167 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
8168 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8169
bf60f4ca
WL
81702013-03-27 Walter Lee <walt@tilera.com>
8171
e594716a 8172 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
8173 (*sibcall_value): Ditto.
8174
e3b51eeb
WL
81752013-03-27 Walter Lee <walt@tilera.com>
8176
8177 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8178 (insn_mnz_v8qi): ... this ...
8179 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
8180 vector equivalent.
8181 (insn_v<n>mnz): Replaced by ...
8182 (insn_v1mnz): ... this ...
8183 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
8184 equivalent.
8185 (insn_mz_<mode>): Replaced by ...
8186 (insn_mz_v8qi): ... this ...
8187 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
8188 vector equivalent.
8189 (insn_v<n>mz): Replaced by ...
8190 (insn_v1mz): ... this ...
8191 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
8192 equivalent.
8193
4fc7b145
EB
81942013-03-26 Eric Botcazou <ebotcazou@adacore.com>
8195
8196 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8197
6f33817e
RM
81982013-03-26 Roland McGrath <mcgrathr@google.com>
8199
8200 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8201 than fprintf with a non-constant, non-format string.
8202
93a4145b
UB
82032013-03-26 Uros Bizjak <ubizjak@gmail.com>
8204
8205 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8206 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
8207 operand 0 predicate.
8208 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8209 attribute. Use general_x64nomem_operand as operand 1 predicate.
8210 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8211 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8212 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8213 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8214 (mov<mode>_insv_1): Remove expander. Merge insn with
8215 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8216 Use general_x64nomem_operand as operand 1 predicate.
8217 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8218 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8219 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8220 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8221 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8222 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8223 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8224 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8225 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8226 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8227 (general_x64nomem_operand): Ditto.
8228
c6a9ed5a 82292013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
8230
8231 * config/rtems.opt: Add -pthread option.
8232
31b0a960
RB
82332013-03-26 Richard Biener <rguenther@suse.de>
8234
93a4145b
UB
8235 * alias.c (find_base_term): Avoid redundant and not used recursion.
8236 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
8237 (true_dependence_1): Compute and pass base terms to base_alias_check.
8238 (write_dependence_p): Likewise.
8239 (may_alias_p): Likewise.
8240
79517551
SN
82412013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8242
8243 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8244 PC-relative load in SI modes and above only.
8245
a76213b9
XQ
82462013-03-26 Xinyu Qi <xyqi@marvell.com>
8247
8248 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
8249 * config/arm/iwmmxt.md (WCGR0): Update.
8250 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 8251
37ff9355
UB
82522013-03-26 Uros Bizjak <ubizjak@gmail.com>
8253
8254 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8255 Use x64 and nox64 isa attributes.
8256
30b0317c
RB
82572013-03-26 Richard Biener <rguenther@suse.de>
8258
8259 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8260 alignment computations and rely on get_object_alignment_1
8261 for the !TYPE_P case.
8262 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8263
cbcdb140
WL
82642013-03-26 Walter Lee <walt@tilera.com>
8265
8266 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8267 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8268
dd884525 82692013-03-25 Jeff Law <law@redhat.com>
be672e08 8270
33159866
UB
8271 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8272 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
8273 wrong version of prior patch.
8274
0051d3ec
WL
82752013-03-25 Walter Lee <walt@tilera.com>
8276
8277 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8278 TILEGX_INSN_SHUFFLEBYTES1.
8279 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8280 shufflebytes1.
8281 (tilegx_builtins): Ditto.
8282 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8283
065a3605
WL
82842013-03-25 Walter Lee <walt@tilera.com>
8285
8286 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
8287 (floatunssisf2): New pattern.
8288 (floatsidf2): New pattern.
8289 (floatunssidf2): New pattern.
065a3605 8290
5b2a3c82
WL
82912013-03-25 Walter Lee <walt@tilera.com>
8292
8293 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8294 tests for constraint J, K, N, P.
8295
192ea533
WL
82962013-03-25 Walter Lee <walt@tilera.com>
8297
8298 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8299 Use indirect/pcrel encoding.
8300 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8301 Ditto.
8302
855e0d0b
SE
83032013-03-25 Steve Ellcey <sellcey@mips.com>
8304
8305 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
8306 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
8307 * config/mips/mips.c (mips_option_override): Set IMADD default.
8308 * config/mips/mips.h (PTF_AVOID_IMADD): New.
8309 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
8310 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
8311 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
8312 * doc/invoke.texi (-mimadd/-mno-imadd): New.
8313
39e45653
JL
83142013-03-25 Jeff Law <law@redhat.com>
8315
8316 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
8317 slightly to avoid creating and folding useless trees. Simplify
8318 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
8319
7482c470
UB
83202013-03-25 Uros Bizjak <ubizjak@gmail.com>
8321
8322 * config/i386/i386.md (*zero_extendsidi2): Merge with
8323 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
8324 * config/i386/predicates.md (x86_64_zext_operand): Rename from
8325 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
8326 targets. Clarify comment.
8327
4a53743e
MJ
83282013-03-25 Martin Jambor <mjambor@suse.cz>
8329
8330 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
8331 pass-through jump functions differently.
8332 (ipa_read_jump_function): Likewise. Also use setter functions to set
8333 up jump functions.
8334
162712de
MJ
83352013-03-25 Martin Jambor <mjambor@suse.cz>
8336
8337 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
8338 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
8339 process it.
8340 (ipa_get_indirect_edge_target): New function.
8341 (devirtualization_time_bonus): New parameter known_aggs, pass it to
8342 ipa_get_indirect_edge_target. Update all callers.
8343 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
8344 ipa_get_indirect_edge_target_1 instead of calling
8345 ipa_get_indirect_edge_target.
8346 (create_specialized_node): Pass aggvlas to
8347 ipcp_discover_new_direct_edges.
8348
a5a4c20a
KT
83492013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8350
8351 * config/arm/arm.md (f_sels, f_seld): New types.
8352 (*cmov<mode>): New pattern.
8353 * config/arm/predicates.md (arm_vsel_comparison_operator): New
8354 predicate.
8355
f992b9fc
KT
83562013-03-25 Kai Tietz <ktietz@redhat.com>
8357
8358 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
8359 POSIX-printf for mingw-hosted builds.
8360
c16fd676
RB
83612013-03-25 Richard Biener <rguenther@suse.de>
8362
8363 PR middle-end/56694
8364 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
8365 must-not-throw stmt location.
8366
5ad29f12
KT
83672013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8368
8369 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
8370 Emit load-acquire versions when acq is true.
8371 (arm_emit_store_exclusive): Add rel parameter.
8372 Emit store-release versions when rel is true.
8373 (arm_split_compare_and_swap): Use acquire-release instructions
8374 instead.
8375 of barriers when appropriate.
8376 (arm_split_atomic_op): Likewise.
8377 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
8378 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
8379 (VUNSPEC_SLX): Likewise.
8380 (VUNSPEC_LDA): Likewise.
8381 (VUNSPEC_STL): Likewise.
8382 * config/arm/sync.md (atomic_load<mode>): New pattern.
8383 (atomic_store<mode>): Likewise.
8384 (arm_load_acquire_exclusive<mode>): Likewise.
8385 (arm_load_acquire_exclusivesi): Likewise.
8386 (arm_load_acquire_exclusivedi): Likewise.
8387 (arm_store_release_exclusive<mode>): Likewise.
8388
03a7dddb
CM
83892013-03-25 Catherine Moore <clm@codesourcery.com>
8390
8391 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
8392 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
8393 * config/mip/predicates.md (lwsp_swsp_operand,
8394 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
8395 sb16_operand, db4_operand, db7_operand, ib3_operand,
8396 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
8397 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
8398 andi16_operand): New predicates.
8399 * config/mips/mips.md (compression): New attribute.
8400 (enabled): New attribute.
8401 (length): Consider compression in computing length.
8402 (shift_compression): New code attribute.
8403 (*add<mode>3): New operands. Record compression.
8404 (sub<mode>3): Likewise.
8405 (one_cmpl<mode>2): Likewise.
8406 (*and<mode>3): Likewise.
8407 (*ior<mode>3): Likewise.
8408 (unnamed pattern for xor): Likewise.
8409 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
8410 (*<optab><mode>3): Likewise.
8411 (*mov<mode>_internal: Likewise.
8412 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
8413 (mips_unsigned_immediate_p): New.
8414 (umips_lwsp_swsp_address_p): New.
8415 (m16_based_address_p): New.
8416 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
8417 (mips_unsigned_immediate_p): New prototype.
8418 (lwsp_swsp_address_p): New prototype.
8419 (m16_based_address_p): New prototype.
8420 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
8421 (mips_signed_immediate_p): New function.
8422 (m16_based_address_p): New function.
8423 (lwsp_swsp_address_p): New function.
8424 (mips_print_operand_punctuation): Recognize short delay slot insns
8425 for microMIPS.add<mode>3"
8426
f35c297f 84272013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 8428
f35c297f
KT
8429 PR target/56720
8430 * config/arm/iterators.md (v_cmp_result): New mode attribute.
8431 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
8432
051b9446
RB
84332013-03-25 Richard Biener <rguenther@suse.de>
8434
8435 PR tree-optimization/56689
8436 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
8437 any edge.
8438
374001cb
RB
84392013-03-25 Richard Biener <rguenther@suse.de>
8440
8441 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
8442 of bitmap.
8443 (memory_references): Likewise.
8444 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
8445 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
8446 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
8447 (gather_mem_refs_in_loops): Fold into ...
8448 (analyze_memory_references): ... this. Move initialization
8449 to tree_ssa_lim_initialize.
8450 (fill_always_executed_in): Rename to ...
8451 (fill_always_executed_in_1): ... this.
8452 (fill_always_executed_in): Move contains_call computation to
8453 this new function from ...
8454 (tree_ssa_lim_initialize): ... here.
8455 (tree_ssa_lim): Call fill_always_executed_in.
8456
57895947
EB
84572013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8458
8459 * postreload.c (reload_combine): Fix code detecting returns.
8460
1e1b18c1
EB
84612013-03-25 Eric Botcazou <ebotcazou@adacore.com>
8462
8463 * function.c (emit_use_return_register_into_block): On cc0 targets,
8464 do not emit the sequence between cc0 setter and user.
8465
9216baf1
KT
84662013-03-25 Kai Tietz <ktietz@redhat.com>
8467
1e1b18c1
EB
8468 * config/i386/predicates.md (local_symbolic_operand): Interpret
8469 dll-imported symbols as none-local.
9216baf1 8470
76421b44
RB
84712013-03-25 Richard Biener <rguenther@suse.de>
8472
8473 * tree-ssa-loop-im.c (struct depend): Remove.
8474 (struct lim_aux_data): Make depends a vec of gimples.
8475 (free_lim_aux_data): Adjust.
8476 (add_dependency): Likewise.
8477 (set_level): Likewise.
8478
d154bfa2
RB
84792013-03-25 Richard Biener <rguenther@suse.de>
8480
8481 PR middle-end/56434
8482 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
8483 the pointer returned by calls with ECF_MALLOC set.
8484
2cd9804e
UB
84852013-03-24 Uros Bizjak <ubizjak@gmail.com>
8486
acef5fe0
UB
8487 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
8488
84892013-03-24 Uros Bizjak <ubizjak@gmail.com>
8490
8491 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
8492 using MMXMODE mode iterator.
8493 (*move<mode>_internal): Merge with *movv2sf_internal and
8494 *movv2sf_internal_rex64 using MMXMODE mode iterator.
8495
225ccc68
SB
84962013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8497
85c0f02d
SB
8498 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
8499 (record_last_mem_set_info): Likewise.
8500
225ccc68
SB
8501 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
8502 of XNEWVEC followed by memset.
8503 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
8504
b64925dc
SB
85052013-03-23 Steven Bosscher <steven@gcc.gnu.org>
8506
8507 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
8508 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
8509 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
8510 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
8511 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
8512 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
8513 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
8514 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
8515 BARRIER_P instead of GET_CODE.
8516
b9aaf52e
EB
85172013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8518
8519 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
8520 inaccuracy in the probing code.
8521
8522 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
8523 (ctrapdi4): Likewise.
8524
66de4d7c
EB
85252013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8526
8527 * calls.c (expand_call): Add missing guard to code handling return
8528 of non-BLKmode structures in MSB.
8529 * function.c (expand_function_end): Likewise.
8530
4f25c8fb
EB
85312013-03-23 Eric Botcazou <ebotcazou@adacore.com>
8532
8533 * combine.c (try_combine): Adjust comment. Do not add the set of
8534 insn #0 if the destination indirectly is set or dies in insn #2.
8535 Tidy up code to distribute a new note.
8536
23b7850d
UB
85372013-03-22 Uros Bizjak <ubizjak@gmail.com>
8538
8539 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
8540 also for alternatives 16 and 17.
8541
bed852cf
UB
85422013-03-22 Uros Bizjak <ubizjak@gmail.com>
8543
8544 * config/i386/sse.md (*mov<mode>_internal): Merge with
8545 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
8546 Emit insn template depending on type attribute. Use
8547 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8548 movd instead of movq mnemonic for interunit moves. Rewrite mode
8549 attribute calculation. Remove unit attribute calculation.
8550 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
8551 Set prefix_data16 attribute for DImode ssemov types.
8552 Use Ym instead of y for SSE-MMX conversion alternatives.
8553 Reorder operand constraints.
8554
1e8a7937
SB
85552013-03-22 Steven Bosscher <steven@gcc.gnu.org>
8556
8557 * df.h (df_insn_delete): Adjust prototype.
8558 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
8559 and let it decide whether mark the basic block dirty.
8560 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
8561 * df-scan.c (df_insn_info_delete): New helper function, split
8562 off from df_insn_delete.
8563 (df_scan_free_bb_info): Use it.
8564 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
8565 Likewise.
8566 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
8567 that the insn is actually an insn and it has a non-NULL basic block.
8568 Do not mark basic block dirty if only deleting a DEBUG_INSN.
8569
e14d094c
RB
85702013-03-22 Richard Biener <rguenther@suse.de>
8571
8572 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
8573 dep_ref members.
8574 (mem_ref_alloc): Do not allocate them.
8575 (refs_independent_p): Do not query or maintain a cache.
8576
e9cf7316
RB
85772013-03-22 Richard Biener <rguenther@suse.de>
8578
8579 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
8580 (gather_mem_refs_in_loops): Do not compute it.
8581 (analyze_memory_references): Do not allocate it.
8582 (tree_ssa_lim_finalize): Do not free it.
8583 (for_all_locs_in_loop): Do not query all_refs_in_loop.
8584
f046e81b
RB
85852013-03-22 Richard Biener <rguenther@suse.de>
8586
8587 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 8588
a05c0ddf
IB
85892013-03-22 Ian Bolton <ian.bolton@arm.com>
8590
8591 * config/aarch64/aarch64.c (aarch64_print_operand): New
8592 format specifier for printing a constant in hex.
8593 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
8594 format specifier for printing second operand.
8595
c00217fc
RB
85962013-03-22 Richard Biener <rguenther@suse.de>
8597
8598 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
8599 bitmaps.
8600 (gather_mem_refs_in_loops): Perform store accumulation here.
8601 (create_vop_ref_mapping_loop): Remove.
8602 (create_vop_ref_mapping): Likewise.
8603 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 8604 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
8605 (record_indep_loop): Remove.
8606 (record_dep_loop): New function.
8607 (ref_indep_loop_p_1): Adjust to only walk over references
8608 in the loop, not its subloops.
8609 (ref_indep_loop_p): Rename to ...
8610 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
8611 maintaining a more fine-grained cache.
8612 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
8613 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
8614
15d19bf8
RB
86152013-03-22 Richard Biener <rguenther@suse.de>
8616
8617 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
8618 (struct mem_ref): Make accesses_in_loop a vec of a vec of
8619 aggregate mem_ref_loc.
8620 (free_mem_ref_locs): Inline into ...
8621 (memref_free): ... this and adjust.
8622 (mem_ref_alloc): Adjust.
8623 (mem_ref_locs_alloc): Remove.
8624 (record_mem_ref_loc): Adjust.
8625 (get_all_locs_in_loop): Rewrite into ...
8626 (for_all_locs_in_loop): ... this iterator.
8627 (rewrite_mem_ref_loc): New functor.
8628 (rewrite_mem_refs): Use for_all_locs_in_loop.
8629 (sm_set_flag_if_changed): New functor.
8630 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
8631 (ref_always_accessed): New functor.
8632 (ref_always_accessed_p): Use for_all_locs_in_loop.
8633
6f37411d
MG
86342013-03-21 Marc Glisse <marc.glisse@inria.fr>
8635
8636 * tree-pass.h (PROP_gimple_lvec): New.
8637 * passes.c (dump_properties): Handle PROP_gimple_lvec.
8638 (init_optimization_passes): Move pass_lower_vector.
8639 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
8640 PROP_gimple_lvec.
8641 (pass_lower_vector): Provide PROP_gimple_lvec.
8642 (pass_lower_vector_ssa): Likewise.
8643 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
8644
511ef689
MW
86452013-03-21 Mark Wielaard <mjw@redhat.com>
8646
8647 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
8648
cc1df30b
UB
86492013-03-21 Uros Bizjak <ubizjak@gmail.com>
8650
8651 * config/i386/i386.md (*movdi_internal): Disparage slightly
8652 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
8653 conversion alternatives.
8654
c845cfe1
JJ
86552013-03-21 Jakub Jelinek <jakub@redhat.com>
8656
37e99116
JJ
8657 PR middle-end/48087
8658 * diagnostic.def (DK_WERROR): New kind.
8659 * diagnostic.h (werrorcount): Define.
8660 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
8661 promoted to DK_ERROR, increment DK_WERROR counter instead of
8662 DK_ERROR counter.
8663 * toplev.c (toplev_main): Call print_ignored_options even if
8664 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
8665 even if just werrorcount is non-zero.
8666
c845cfe1
JJ
8667 PR debug/55608
8668 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
8669 on failure.
8670 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
8671 (string_cst_pool_decl): New function.
8672 (optimize_one_addr_into_implicit_ptr): New function.
8673 (resolve_addr_in_expr): Optimize DWARF location expression
8674 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
8675 which doesn't live in memory, but has DW_AT_location or
8676 DW_AT_const_value, or refers to a string literal, into
8677 DW_OP_GNU_implicit_pointer.
8678 (optimize_location_into_implicit_ptr): New function.
8679 (resolve_addr): If removing DW_AT_location of a variable because
8680 it was DW_OP_addr of address of the variable, but the variable doesn't
8681 live in memory, try to emit const value attribute for the initializer.
8682
08e0cda6
MG
86832013-03-21 Marc Glisse <marc.glisse@inria.fr>
8684
8685 * tree.h (VECTOR_TYPE_P): New macro.
8686 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
8687 TYPE_MODE): Use it.
8688 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
8689 VEC_COND_EXPR cannot be lvalues.
8690 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
8691
d08633b4
MG
86922013-03-21 Marc Glisse <marc.glisse@inria.fr>
8693
8694 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
8695 Restrict the transformation to equal modes.
8696
e6647190
RB
86972013-03-21 Richard Biener <rguenther@suse.de>
8698
8699 PR tree-optimization/39326
8700 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
8701 (MEM_ANALYZABLE): Adjust.
8702 (record_mem_ref_loc): Move bitmap ops ...
8703 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
8704 unanalyzable refs, do not record locations for it.
8705 (analyze_memory_references): Allocate ref zero as shared
8706 unanalyzable ref.
8707 (refs_independent_p): Do not test for unanalyzed mems here.
8708 (ref_indep_loop_p_1): Special-case disambiguation against
8709 the unanalyzed ref.
cc1df30b 8710 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 8711
65074f54
CL
87122013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
8713
8714 * config/arm/arm-protos.h (tune_params): Add
8715 prefer_neon_for_64bits field.
8716 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
8717 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
8718 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
8719 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
8720 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
8721 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
8722 (arm_option_override): Handle -mneon-for-64bits new option.
8723 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
8724 (prefer_neon_for_64bits): Declare new variable.
8725 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 8726 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
8727 (arch_enabled): Handle new arch types. Remove support for onlya8
8728 and nota8.
8729 (one_cmpldi2): Use new arch names.
bc5faa5b 8730 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
8731 * config/arm/arm.opt (mneon-for-64bits): Add option.
8732 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
8733 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
8734 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
8735 of onlya8.
8736 * doc/invoke.texi (-mneon-for-64bits): Document.
8737
5a2d2a79
RB
87382013-03-21 Richard Biener <rguenther@suse.de>
8739
8740 PR tree-optimization/39326
8741 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
8742 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 8743 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 8744
5abe1e05
RB
87452013-03-21 Richard Biener <rguenther@suse.de>
8746
8747 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
8748 (vect_insert_into_interleaving_chain): Likewise.
8749 (vect_drs_dependent_in_basic_block): Inline ...
8750 (vect_slp_analyze_data_ref_dependence): ... here. New function,
8751 split out from ...
8752 (vect_analyze_data_ref_dependence): ... here. Simplify.
8753 (vect_check_interleaving): Simplify.
8754 (vect_analyze_data_ref_dependences): Likewise. Split out ...
8755 (vect_slp_analyze_data_ref_dependences): ... this new function.
8756 (dr_group_sort_cmp): New function.
8757 (vect_analyze_data_ref_accesses): Compute data-reference groups
8758 here instead of in vect_analyze_data_ref_dependence. Use
8759 a more efficient algorithm.
8760 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
8761 vect_slp_analyze_data_ref_dependences. Call
8762 vect_analyze_data_ref_accesses earlier.
8763 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
8764 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
8765 (vect_slp_analyze_data_ref_dependences): New prototype.
8766
cad1735b
RB
87672013-03-21 Richard Biener <rguenther@suse.de>
8768
8769 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
8770 ref is stored in the loop.
8771 (find_refs_for_sm): Walk only over all stores.
8772 (store_motion_loop): Allocate from lim_bitmap_obstack.
8773 (store_motion): Likewise.
8774
141310ef
RB
87752013-03-21 Richard Biener <rguenther@suse.de>
8776
8777 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
8778 Update virtual SSA form.
8779
5022315a
RO
87802013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8781
8782 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
8783 * configure: Regenerate.
8784 * config.in: Regenerate.
8785 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
8786 if !HAVE_LD_EH_FRAME_CIEV3.
8787
50d4421c
RB
87882013-03-21 Richard Biener <rguenther@suse.de>
8789
8790 * tree-cfg.c (verify_expr_no_block): New function.
8791 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
8792 nor DECL_VALUE_EXPR have locations with associated blocks.
8793 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
8794 (clear_unused_block_pointer): Remove code dealing with
8795 blocks in DECL_DEBUG_EXPR locations.
8796
839b422f
RB
87972013-03-21 Richard Biener <rguenther@suse.de>
8798
8799 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
8800 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
8801 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
8802 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
8803 instead of DECL_DEBUG_EXPR_IS_FROM.
8804 * gimplify.c (gimplify_modify_expr): Likewise.
8805 * tree-cfg.c (verify_expr_location_1): Likewise.
8806 * tree-complex.c (create_one_component_var): Likewise.
8807 * tree-sra.c (create_access_replacement): Likewise.
8808 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
8809 (clear_unused_block_pointer): Likewise.
8810 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
8811 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8812 * var-tracking.c (var_debug_decl): Likewise.
8813 (track_expr_p): Likewise.
8814 * tree-inline.c (add_local_variables): Likewise. Set
8815 DECL_HAS_DEBUG_EXPR_P after copying it.
8816 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
8817 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
8818
fe04878d
UB
88192013-03-21 Uros Bizjak <ubizjak@gmail.com>
8820
8821 PR bootstrap/56656
8822 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
8823 * configure: Regenerate.
8824 * config.in: Regenerate.
8825 * config/i386/i386.md (*movdf_internal): Use
8826 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
8827 movd instead of movq mnemonic for interunit moves.
8828 (*movdi_internal): Ditto.
8829
bd059b26 88302013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
8831
8832 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
8833 (abd<mode>_3): New pattern.
8834 (aba<mode>_3): New pattern.
8835 (fabd<mode>_3): New pattern.
8836
bd059b26 88372013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
8838
8839 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
8840 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
8841 occurrence of REGISTER_PREFIX as its empty string.
8842
4f1f78b9
JL
88432013-03-20 Jeff Law <law@redhat.com>
8844
8845 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
8846 addititional equivalences for equality comparisons between an SSA_NAME
8847 and a constant where the SSA_NAME was set from a widening conversion.
8848
327a1118
WL
88492013-03-20 Walter Lee <walt@tilera.com>
8850
8851 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
8852
813e0036
UB
88532013-03-20 Uros Bizjak <ubizjak@gmail.com>
8854
8855 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
8856 depending on type attribute.
8857 (*movti_internal): Ditto.
8858 (*movtf_internal): Ditto.
8859 (*movxf_internal): Ditto.
8860 (*movdf_internal): Ditto.
8861 (*movsf_internal): Ditto.
8862
7cf34aae
UB
88632013-03-20 Uros Bizjak <ubizjak@gmail.com>
8864
8865 * config/i386/i386.md (*movti_internal): Set prefix attribute to
8866 maybe_vex for sselog1 and ssemov types.
8867 (*movdi_internal): Reorder operand constraints.
8868 (*movsi_internal): Ditto. Set prefix attribute to
8869 maybe_vex for sselog1 and ssemov types.
8870 (*movtf_internal): Set prefix attribute to maybe_vex
8871 for sselog1 and ssemov types.
8872 (*movdf_internal): Ditto. Set prefix_data16 attribute for
8873 DImode ssemov types. Reorder operand constraints.
8874 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
8875 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
8876 attribute for SImode ssemov types. Reorder operand constraints.
8877
19321415
MJ
88782013-03-20 Martin Jambor <mjambor@suse.cz>
8879
8880 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
8881 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
8882
c6d5ff83
MM
88832013-03-20 Pat Haugen <pthaugen@us.ibm.com>
8884
8885 * config/rs6000/predicates.md (indexed_address, update_address_mem
8886 update_indexed_address_mem): New predicates.
8887 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
8888 attribute for load/store instructions.
8889 * config/rs6000/dfp.md (movsd_store): Likewise.
8890 (movsd_load): Likewise.
8891 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
8892 (unnamed HI->DI extend define_insn): Likewise.
8893 (unnamed SI->DI extend define_insn): Likewise.
8894 (unnamed QI->SI extend define_insn): Likewise.
8895 (unnamed QI->HI extend define_insn): Likewise.
8896 (unnamed HI->SI extend define_insn): Likewise.
8897 (unnamed HI->SI extend define_insn): Likewise.
8898 (extendsfdf2_fpr): Likewise.
8899 (movsi_internal1): Likewise.
8900 (movsi_internal1_single): Likewise.
8901 (movhi_internal): Likewise.
8902 (movqi_internal): Likewise.
8903 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
8904 attribute for load/store instructions.
8905 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
8906 instructions.
8907 (mov<mode>_softfloat): Likewise.
8908 (mov<mode>_hardfloat32): Likewise.
8909 (mov<mode>_hardfloat64): Likewise.
8910 (mov<mode>_softfloat64): Likewise.
8911 (movdi_internal32): Likewise.
8912 (movdi_internal64): Likewise.
8913 (probe_stack_<mode>): Likewise.
8914
89152013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
8916
8917 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
8918 floating point, and decimal floating point to reload iterator.
8919
8920 * config/rs6000/constraints.md (wl constraint): New constraints to
8921 return FLOAT_REGS if certain options are used to reduce the number
8922 of separate patterns that exist in the file.
8923 (wx constraint): Likewise.
8924 (wz constraint): Likewise.
8925
8926 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8927 -mdebug=reg, print wg, wl, wx, and wz constraints.
8928 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8929 Initialize the reload functions for 64-bit binary/decimal floating
8930 point types.
8931 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8932 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8933 create the buffer on the stack to overcome not having a 32-bit
8934 load and store.
8935 (rs6000_emit_move): Likewise.
8936 (rs6000_secondary_memory_needed_rtx): Likewise.
8937 (rs6000_alloc_sdmode_stack_slot): Likewise.
8938 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8939 via xxlxor, just like DFmode 0.0.
8940
8941 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
8942 define as 1 if we are running on a power7 or newer.
8943 (enum r6000_reg_class_enum): Add new constraints.
8944
8945 * config/rs6000/dfp.md (movsd): Delete, combine with binary
8946 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
8947 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 8948 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
8949 (movsd splitter): Likewise.
8950 (movsd_hardfloat): Likewise.
8951 (movsd_softfloat): Likewise.
8952
8953 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
8954 binary and decimal floating point moves.
8955 (fmove_ok): New attributes to combine binary and decimal floating
8956 point moves, and to combine power6x (mfpgpr) moves along normal
8957 floating moves.
8958 (real_value_to_target): Likewise.
8959 (f32_lr): Likewise.
8960 (f32_lm): Likewise.
8961 (f32_li): Likewise.
8962 (f32_sr): Likewise.
8963 (f32_sm): Likewise.
8964 (f32_si): Likewise.
8965 (movsf): Combine binary and decimal floating point moves. Combine
8966 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 8967 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
8968 (mov<mode> for SFmode/SDmode); Likewise.
8969 (SFmode/SDmode splitters): Likewise.
8970 (movsf_hardfloat): Likewise.
8971 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
8972 (movsf_softfloat): Likewise.
8973 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
8974
8975 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
8976 wx and wz constraints.
8977
8978 * config/rs6000/constraints.md (wg constraint): New constraint to
8979 return FLOAT_REGS if -mmfpgpr (power6x) was used.
8980
8981 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
8982 constraint.
8983
8984 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
8985 -mdebug=reg, print wg, wl, wx, and wz constraints.
8986 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
8987 Initialize the reload functions for 64-bit binary/decimal floating
8988 point types.
8989 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
8990 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
8991 create the buffer on the stack to overcome not having a 32-bit
8992 load and store.
8993 (rs6000_emit_move): Likewise.
8994 (rs6000_secondary_memory_needed_rtx): Likewise.
8995 (rs6000_alloc_sdmode_stack_slot): Likewise.
8996 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
8997 via xxlxor, just like DFmode 0.0.
8998
c6d5ff83
MM
8999 * config/rs6000/dfp.md (movdd): Delete, combine with binary
9000 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9001 with other moves by using conditional constraits (wg). Use LFIWZX
9002 and STFIWX for loading SDmode on power7.
9003 (movdd splitters): Likewise.
9004 (movdd_hardfloat32): Likewise.
9005 (movdd_softfloat32): Likewise.
9006 (movdd_hardfloat64_mfpgpr): Likewise.
9007 (movdd_hardfloat64): Likewise.
9008 (movdd_softfloat64): Likewise.
9009
9010 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9011 64-bit binary and decimal floating point moves.
9012 (FMOVE64X): Likewise.
9013 (movdf): Combine 64-bit binary and decimal floating point moves.
9014 Combine power6x (mfpgpr) moves with other moves by using
9015 conditional constraits (wg).
9016 (mov<mode> for DFmode/DDmode): Likewise.
9017 (DFmode/DDmode splitters): Likewise.
9018 (movdf_hardfloat32): Likewise.
9019 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9020 (movdf_softfloat32): Likewise.
9021 (movdf_hardfloat64_mfpgpr): Likewise.
9022 (movdf_hardfloat64): Likewise.
9023 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9024 (movdf_softfloat64): Likewise.
9025 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9026 (reload_<mode>_load): Move to later in the file so they aren't in
9027 the middle of the floating point move insns.
9028 (reload_<mode>_store): Likewise.
9029
9030 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9031 constraint.
9032
9033 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9034 constraint if -mdebug=reg.
bd059b26
UB
9035 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9036 Enable using dd reload support if needed.
c6d5ff83
MM
9037
9038 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9039 binary and decimal floating point moves in rs6000.md.
9040 (movtd_internal): Likewise.
9041
9042 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9043 decimal floating point moves.
9044 (movtf): Likewise.
9045 (movtf_internal): Likewise.
9046 (mov<mode>_internal, TDmode/TFmode): Likewise.
9047 (movtf_softfloat): Likewise.
9048 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9049
9050 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9051 movdi_internal64, using wg constraint for move direct operations.
9052 (movdi_internal64): Likewise.
9053
9054 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9055 MODES_TIEABLE_P for selected modes. Print the numerical value of
9056 the various virtual registers. Use GPR/FPR first/last values,
9057 instead of hard coding the register numbers. Print which modes
9058 have reload functions registered.
bd059b26
UB
9059 (rs6000_option_override_internal): If -mdebug=reg, trace the options
9060 settings before/after setting cpu, target and subtarget settings.
9061 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9062 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
9063 (rs6000_secondary_reload_fail): Likewise.
9064 (rs6000_secondary_reload_inner): Likewise.
9065
9066 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9067 macros for first/last GPR and FPR registers.
9068 (LAST_GPR_REGNO): Likewise.
9069 (FIRST_FPR_REGNO): Likewise.
9070 (LAST_FPR_REGNO): Likewise.
9071
9072 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9073 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9074 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9075 (vcond<mode><mode>): Likewise.
9076 (vcondu<mode><mode>): Likewise.
9077 (vector_gtu<mode>): Likewise.
9078 (vector_gte<mode>): Likewise.
9079 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 9080 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
9081 (ior<mode>3): Likewise.
9082 (and<mode>3): Likewise.
9083 (one_cmpl<mode>2): Likewise.
9084 (nor<mode>3): Likewise.
9085 (andc<mode>3): Likewise.
9086
9087 * config/rs6000/constraints.md (wt constraint): New constraint
9088 that returns VSX_REGS if TImode is allowed in VSX registers.
9089
9090 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9091 constant under VSX.
9092
9093 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9094 similar to TImode, but it is restricted to being in the GPRs.
9095
9096 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9097 TImode to occupy a single VSX register.
9098
9099 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9100 -mvsx-timode for power7/power8.
9101 (power7 cpu): Likewise.
9102 (power8 cpu): Likewise.
9103
9104 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9105 sure that TFmode/TDmode take up two registers if they are ever
9106 allowed in the upper VSX registers.
9107 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9108 registers.
9109 (rs6000_init_hard_regno_mode_ok): Likewise.
9110 (rs6000_debug_reg_global): Add debugging for PTImode and wt
9111 constraint. Print if LRA is turned on.
9112 (rs6000_option_override_internal): Give an error if -mvsx-timode
9113 and VSX is not enabled.
9114 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
9115 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9116 to reg+offset addressing. Use PTImode when checking offset
9117 addresses for validity.
9118 (reg_offset_addressing_ok_p): Likewise.
9119 (rs6000_legitimate_offset_address_p): Likewise.
9120 (rs6000_legitimize_address): Likewise.
9121 (rs6000_legitimize_reload_address): Likewise.
9122 (rs6000_legitimate_address_p): Likewise.
9123 (rs6000_eliminate_indexed_memrefs): Likewise.
9124 (rs6000_emit_move): Likewise.
9125 (rs6000_secondary_reload): Likewise.
9126 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
9127 reloads to fpr registers to continue to use reg+offset addressing,
9128 but 64-bit reloads to altivec registers need reg+reg addressing.
9129 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9130 it. Treat LO_SUM like a PLUS operation.
9131 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 9132 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
9133 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9134 registers to share a register with a smaller sized type, since VSX
9135 puts scalars in the upper 64-bits.
9136 (print_operand): Add support for PTImode.
9137 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9138 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9139 registers, but don't have arithmetic support.
9140 (rs6000_memory_move_cost): Add test for VSX.
9141 (rs6000_opt_masks): Add -mvsx-timode.
9142
9143 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9144 for TImode.
9145 (VSs): Likewise.
9146 (VSr): Use wt constraint for TImode.
9147 (VSv): Drop TImode support.
9148 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9149 (vsx_movti_64bit): Likewise.
9150 (vsx_movti_32bit): Likewise.
9151 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9152 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9153 one '?' on the appropriate output constraint. Do not allow TImode
9154 logical operations on 32-bit systems.
9155 (vsx_ior<mode>3): Likewise.
9156 (vsx_xor<mode>3): Likewise.
9157 (vsx_one_cmpl<mode>2): Likewise.
9158 (vsx_nor<mode>3): Likewise.
9159 (vsx_andc<mode>3): Likewise.
9160 (vsx_concat_<mode>): Likewise.
9161 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9162
9163 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9164 OPTION_MASK_VSX_TIMODE.
9165 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9166 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9167
9168 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9169 (TI2 iterator): New iterator for TImode, PTImode.
9170 (wd mode attribute): Add values for vector types.
bd059b26
UB
9171 (movti_string): Replace TI move operations with operations for TImode
9172 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
9173 (mov<mode>_string, TImode/PTImode): Likewise.
9174 (movti_ppc64): Likewise.
9175 (mov<mode>_ppc64, TImode/PTImode): Likewise.
9176 (TI mode splitters): Likewise.
9177
9178 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9179 constraint.
9180
1fc5eced
MG
91812013-03-20 Marc Glisse <marc.glisse@inria.fr>
9182
9183 PR tree-optimization/56355
9184 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9185 Also handle integers with undefined overflow.
9186
22c4c869
CM
91872013-03-20 Catherine Moore <clm@codesourcery.com>
9188 Maciej W. Rozycki <macro@codesourcery.com>
9189 Tom de Vries <tom@codesourcery.com>
9190 Nathan Sidwell <nathan@codesourcery.com>
9191 Iain Sandoe <iain@codesourcery.com>
9192 Nathan Froyd <froydnj@codesourcery.com>
9193 Chao-ying Fu <fu@mips.com>
9194
9195 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 9196 Document new function attributes.
22c4c869
CM
9197 * doc/invoke.texi (minterlink-compressed, mmicromips,
9198 m14k, m14ke, m14kec): Document new options.
9199 (minterlink-mips16): Update documentation.
9200 * doc/md.texi (ZC, ZD): Document new constraints.
9201 * configure.ac (gcc_cv_as_micromips): Check if linker
9202 supports the .set micromips directive.
9203 * configure: Regenerate.
9204 * config.in: Regenerate.
9205 * config/mips/mips-tables.opt: Regenerate.
9206 * config/mips/micromips.md: New file.
9207 * constraints.md (ZC, ZD): New constraints.
9208 * config/mips/predicates.md (movep_src_register): New predicate.
9209 (movep_src_operand): New predicate.
9210 (non_volatile_mem_operand): New predicate.
9211 * config/mips/mips.md (multimem): New type.
9212 (length): Differentiate between 17-bit and 18-bit branch offsets.
9213 (MOVEP1, MOVEP2): New mode iterator.
33159866 9214 (mov_<load>l): Use ZC constraint.
22c4c869
CM
9215 (mov_<load>r): Likewise.
9216 (mov_<store>l): Likewise.
9217 (mov_<store>r): Likewise.
9218 (*branch_equality<mode>_inverted): Add microMIPS support.
9219 (*branch_equality<mode>): Likewise.
9220 (*jump_absolute): Likewise.
9221 (indirect_jump_<mode>): Likewise.
9222 (tablejump_<mode>): Likewise.
9223 (<optab>_internal): Likewise.
9224 (sibcall_internal): Likewise.
9225 (sibcall_value_internal): Likewise.
9226 (prefetch): Use constraint ZD.
9227 * config/mips/mips.opt (minterlink-compressed): New option.
9228 (minterlink-mips16): Now an alias for minterlink-compressed.
9229 (mmicromips): New option.
9230 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9231 (compare_and_swap_12): Likewise.
9232 (sync_add<mode>): Likewise.
9233 (sync_<optab>_12): Likewise.
9234 (sync_old_<optab>_12): Likewise.
9235 (sync_new_<optab>_12): Likewise.
9236 (sync_nand_12): Likewise.
9237 (sync_old_nand_12): Likewise.
9238 (sync_new_nand_12): Likewise.
9239 (sync_sub<mode>): Likewise.
9240 (sync_old_add<mode>): Likewise.
9241 (sync_old_sub<mode>): Likewise.
9242 (sync_new_add<mode>): Likewise.
9243 (sync_new_sub<mode>): Likewise.
9244 (sync_<optab><mode>): Likewise.
9245 (sync_old_<optab><mode>): Likewise.
9246 (sync_new_<optab><mode>): Likewise.
9247 (sync_nand<mode>): Likewise.
9248 (sync_old_nand<mode>): Likewise.
9249 (sync_new_nand<mode>): Likewise.
9250 (sync_lock_test_and_set<mode>): Likewise.
9251 (test_and_set_12): Likewise.
9252 (atomic_compare_and_swap<mode>): Likewise.
9253 (atomic_exchange<mode>_llsc): Likewise.
9254 (atomic_fetch_add<mode>_llsc): Likewise.
9255 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9256 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9257 (umips_save_restore_pattern_p): Likewise.
9258 (umips_load_store_pair_p): Likewise.
9259 (umips_output_load_store_pair): Likewise.
9260 (umips_movep_target_p): Likewise.
9261 (umips_12bit_offset_address_p): Likewise.
9262 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9263 (mips_base_mips16): Rename this...
9264 (mips_base_compression_flags): ...to this. Update all uses.
9265 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9266 (mips_mips16_decl_p): Delete.
9267 (mips_nomips16_decl_p): Delete.
33159866 9268 (mips_get_compress_on_flags): New function.
22c4c869
CM
9269 (mips_get_compress_off_flags): New function.
9270 (mips_get_compress_mode): New function.
9271 (mips_get_compress_on_name): New function.
9272 (mips_get_compress_off_name): New function.
9273 (mips_insert_attributes): Support multiple compression types.
9274 (mips_merge_decl_attributes): Likewise.
9275 (umips_12bit_offset_address_p): New function.
9276 (mips_start_function_definition): Emit .set micromips directive.
9277 (mips_call_may_need_jalx_p): New function.
9278 (mips_function_ok_for_sibcall): Add microMIPS support.
9279 (mips_print_operand_punctuation): Support short delay slots and
9280 compact jumps.
9281 (umips_swm_mask, umips_swm_encoding): New.
9282 (umips_build_save_restore): New function.
9283 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9284 (was_mips16_p): Remove.
9285 (old_compression_mode): New.
9286 (mips_set_compression_mode): New function.
9287 (mips_set_current_function): Add microMIPS support.
9288 (mips_option_override): Likewise.
9289 (umips_save_restore_pattern_p): New function.
9290 (umips_output_save_restore): New function.
9291 (umips_load_store_pair_p_1): New function.
9292 (umips_load_store_pair_p): New function.
9293 (umips_output_load_store_pair_1): New function.
9294 (umips_output_load_store_pair): New function.
9295 (umips_movep_target_p) New function.
9296 (mips_prepare_pch_save): Add microMIPS support.
9297 * config/mips/mips.h (TARGET_COMPRESSION): New.
9298 (TARGET_CPU_CPP_BUILTINS): Update macro
9299 to use new compression flags and to support microMIPS.
9300 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9301 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9302 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9303 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9304 (ASM_SPEC): Support mmicromips and mno-micromips.
9305 (M16STORE_REG_P): New macro.
9306 (MIPS_CALL): Support TARGET_MICROMIPS.
9307 (MICROMIPS_J): New macro.
9308 (mips_base_mips16): Rename this...
9309 (mips_base_compression_flags): ...to this.
9310 (UMIPS_12BIT_OFFSET_P): New macro.
9311 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9312 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
93132013-03-20 Richard Biener <rguenther@suse.de>
9314
9315 PR tree-optimization/56661
9316 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
9317 the result does not have to be distinct.
9318
54714c68
RB
93192013-03-20 Richard Biener <rguenther@suse.de>
9320
9321 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
9322 remap_gimple_op_r.
9323
cca1130d
BS
93242013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9325 Steven Bosscher <steven@gcc.gnu.org>
9326
9327 PR rtl-optimization/56605
9328 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
9329
2a930377
UB
93302013-03-20 Uros Bizjak <ubizjak@gmail.com>
9331
9332 PR bootstrap/56656
9333 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
9334 that require movd instead of movq.
9335
d6d305fe
RB
93362013-03-20 Richard Biener <rguenther@suse.de>
9337
9338 * tree-ssa-structalias.c (struct variable_info): Add pointer
9339 to the first field of an aggregate with sub-vars. Make
9340 this and the pointer to the next subfield its ID.
9341 (vi_next): New function.
9342 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
9343 storedanything_id, integer_id): Increment by one.
9344 (new_var_info, get_call_vi, lookup_call_clobber_vi,
9345 get_call_clobber_vi): Adjust.
9346 (solution_set_expand): Simplify and speedup.
9347 (solution_set_add): Inline into ...
9348 (set_union_with_increment): ... this. Adjust accordingly.
9349 (do_sd_constraint): Likewise.
9350 (do_ds_constraint): Likewise.
9351 (do_complex_constraint): Simplify.
9352 (build_pred_graph): Adjust.
9353 (solve_graph): Likewise. Simplify and speedup.
9354 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
9355 get_constraint_for_component_ref, get_constraint_for_1,
9356 first_vi_for_offset, first_or_preceding_vi_for_offset,
9357 create_function_info_for, create_variable_info_for_1,
9358 create_variable_info_for, intra_create_variable_infos): Adjust.
9359 (init_base_vars): Push NULL for ID zero.
9360 (compute_points_to_sets): Adjust.
9361
a271b42d
RB
93622013-03-20 Richard Biener <rguenther@suse.de>
9363
9364 * cfgloop.c (verify_loop_structure): Streamline and avoid
9365 ICEing on corrupt loop tree.
9366 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
9367 loop tree.
9368
ebd65954
RB
93692013-03-20 Richard Biener <rguenther@suse.de>
9370
9371 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
9372 check whether an SSA update is needed.
9373
4547b7ee
RS
93742013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
9375
9376 * config/mips/constraints.md (T): Rename to...
9377 (Yf): ...this.
9378 (U): Rename to...
9379 (Yd): ...this.
9380 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
9381 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
9382
0b8cdc58
IB
93832013-03-19 Ian Bolton <ian.bolton@arm.com>
9384
9385 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
9386 (*subsi3_carryin_uxtw): Likewise.
9387
5977a10d
IB
93882013-03-19 Ian Bolton <ian.bolton@arm.com>
9389
9390 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
9391 (*rorsi3_insn_uxtw): Likewise.
9392
bd83ff2c
IB
93932013-03-19 Ian Bolton <ian.bolton@arm.com>
9394
9395 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
9396 (*extrsi5_insn_uxtw): Likewise.
9397
ba65123c
RB
93982013-03-19 Richard Biener <rguenther@suse.de>
9399
9400 PR tree-optimization/56273
9401 * passes.c (init_optimization_passes): Move second VRP after DOM.
9402
2eac0476
UB
94032013-03-19 Uros Bizjak <ubizjak@gmail.com>
9404
9405 * config/i386/i386.md (*movti_internal): Merge from
9406 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
9407 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
9408 nox64 isa attributes.
9409
6e55eda7
RB
94102013-03-18 Richard Biener <rguenther@suse.de>
9411
9412 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
9413 (unite): Likewise.
9414 (merge_node_constraints): Likewise.
9415 (build_succ_graph): Likewise.
9416 (valid_graph_edge): Inline into single caller.
9417 (unify_nodes): Likewise. Use bitmap_set_bit return value
9418 and cache varinfo.
9419 (scc_visit): Fix formatting and variable use.
9420 (do_sd_constraint): Use gcc_checking_assert.
9421 (do_ds_constraint): Likewise.
9422 (do_complex_constraint): Likewise.
9423 (condense_visit): Likewise. Cleanup.
9424 (dump_pred_graph): New function.
9425 (perform_var_substitution): Dump the pred-graph before
9426 variable substitution.
9427 (find_equivalent_node): Use gcc_checking_assert.
9428 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
9429
4bdd44c4
RB
94302013-03-18 Richard Biener <rguenther@suse.de>
9431
9432 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
9433 Remove cond_expr_stmt_list argument and do not gimplify the
9434 built expression.
9435 (vect_loop_versioning): Adjust.
9436 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
9437 Cleanup to use less temporaries.
9438 (vect_create_data_ref_ptr): Cleanup.
9439
38c56a5b
JJ
94402013-03-18 Jakub Jelinek <jakub@redhat.com>
9441
9442 PR tree-optimization/56635
9443 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
9444 require types_compatible_p types.
9445
20b2e6a0
NC
94462013-03-18 Nick Clifton <nickc@redhat.com>
9447
a6178a25
NC
9448 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
9449 spurious backslash.
9450
20b2e6a0
NC
9451 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
9452 Add missing line to comment describing function.
9453
92608d0e
RB
94542013-03-18 Richard Biener <rguenther@suse.de>
9455
9456 PR tree-optimization/56210
9457 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
9458 Handle string / character search functions.
9459 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
9460
31348d52
RB
94612013-03-18 Richard Biener <rguenther@suse.de>
9462
9463 PR middle-end/56483
9464 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
9465 and implement properly.
9466 * gimple.h (gimple_cond_single_var_p): Remove.
9467
fcac74a1
RB
94682013-03-18 Richard Biener <rguenther@suse.de>
9469
9470 * tree-data-ref.h (find_data_references_in_loop): Declare.
9471 * tree-data-ref.c (get_references_in_stmt): Use a stack
9472 vector pre-allocated in the callers.
9473 (find_data_references_in_stmt): Adjust.
9474 (graphite_find_data_references_in_stmt): Likewise.
9475 (create_rdg_vertices): Likewise.
9476 (find_data_references_in_loop): Export.
9477 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
9478 Compute dependences here...
9479 (vect_analyze_data_refs): ...not here. When we encounter
9480 a non-vectorizable data reference in basic-block vectorization
9481 truncate the data reference vector. Do not bother to
9482 fixup data-dependence information for gather loads.
9483 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
9484 of data references, as reported.
9485
0d5a1b56
RB
94862013-03-18 Richard Biener <rguenther@suse.de>
9487
9488 PR tree-optimization/3713
9489 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
9490 has_constants and expr.
9491 (stmt_has_constants): Properly valueize SSA names when deciding
9492 whether the stmt has constants.
9493
789c34e3
RB
94942013-03-18 Richard Biener <rguenther@suse.de>
9495
9496 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
9497 whole function when there is nothing to do.
9498 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
9499 * tree-vectorizer.c (vectorize_loops): Update virtual and
9500 loop-closed SSA once.
9501 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
9502
076b4605
RB
95032013-03-18 Richard Biener <rguenther@suse.de>
9504
9505 PR middle-end/56113
9506 * domwalk.c (bb_postorder): New global static.
9507 (cmp_bb_postorder): New function.
9508 (walk_dominator_tree): Replace scheme imposing an order for
9509 visiting dominator sons by one sorting them at the time they
9510 are pushed on the stack.
9511
bdb01696
RB
95122013-03-18 Richard Biener <rguenther@suse.de>
9513
9514 PR tree-optimization/39326
9515 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
9516 (struct mem_ref): Replace mem member with ao_ref typed member.
9517 (MEM_ANALYZABLE): Adjust.
9518 (memref_eq): Likewise.
9519 (mem_ref_alloc): Likewise.
9520 (gather_mem_refs_stmt): Likewise.
9521 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
9522 (execute_sm_if_changed_flag_set): Adjust.
9523 (execute_sm): Likewise.
9524 (ref_always_accessed_p): Likewise.
9525 (refs_independent_p): Likewise.
9526 (can_sm_ref_p): Likewise.
9527
12d2dc5e
JJ
95282013-03-18 Jakub Jelinek <jakub@redhat.com>
9529
9530 PR c/56566
9531 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
9532 return 1 even for !unsignedp.
9533
286fb677
UB
95342013-03-17 Uros Bizjak <ubizjak@gmail.com>
9535
9536 * config/i386/i386.md (isa): Add x64 and nox64.
9537 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
9538 (*pushtf): Enable *roF alternative for x64 isa only.
9539 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
9540 mode attribute of integer alternatives to DImode for TARGET_64BIT.
9541 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
9542 (*movtf_internal): Merge from *movtf_internal_rex64 and
9543 *movtf_internal_sse. Use x64 and nox64 isa attributes.
9544 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
9545 nox64 isa attributes.
9546 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
9547 nox64 isa attributes.
9548 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
9549
88b97037
UB
95502013-03-17 Uros Bizjak <ubizjak@gmail.com>
9551
9552 * config/alpha/alpha.c (TARGET_LRA_P): New define.
9553
9f4f1735
JJ
95542013-03-17 Jakub Jelinek <jakub@redhat.com>
9555
9556 PR target/56640
9557 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
9558 class names. Remove trailing comma after "ALL_REGS".
9559
48f4a6fa
JH
95602013-03-16 Jan Hubicka <jh@suse.cz>
9561
9562 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
9563 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
9564 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
9565 of cgraph_get_create_node.
9566 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
9567
98e81123
JM
95682013-03-16 Jason Merrill <jason@redhat.com>
9569
9570 PR debug/49090
9571 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
9572 with DW_AT_default_value.
9573
8a298c04
JJ
95742013-03-16 Jakub Jelinek <jakub@redhat.com>
9575
9576 * BASE-VER: Set to 4.9.0.
9577
4323afa0
AK
95782013-03-14 Andi Kleen <ak@linux.intel.com>
9579
9580 PR target/56619
9581 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
9582 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
9583 Document _x* TSX intrinsics.
9584
b3c0d469
JJ
95852013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
9586 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
9587
9588 * configure.ac: Add MicroBlaze TLS support detection.
9589 * configure: Regenerate.
88b97037
UB
9590 * config/microblaze/microblaze-protos.h
9591 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
9592 symbol_mentioned_p, label_mentioned_p): Add prototypes.
9593 * config/microblaze/microblaze.c (microblaze_address_type): Add
9594 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
9595 (microblaze_address_info): Add tls_reloc.
9596 (TARGET_HAVE_TLS): Define.
9597 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
9598 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
9599 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
9600 load_tls_operand, microblaze_call_tls_get_addr,
9601 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
9602 (microblaze_classify_unspec): Handle UNSPEC_TLS.
9603 (get_base_reg): Use microblaze_tls_symbol_p.
9604 (microblaze_classify_address): Handle TLS.
88b97037
UB
9605 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
9606 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
9607 (microblaze_legitimize_address): Handle TLS.
9608 (microblaze_address_insns): Handle ADDRESS_TLS.
9609 (pic_address_needs_scratch): Handle TLS.
9610 (print_operand_address): Handle TLS.
9611 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
9612 (microblaze_expand_move): Handle TLS.
88b97037
UB
9613 (microblaze_legitimate_constant_p): Check
9614 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
9615 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
9616 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
9617 (PIC_OFFSET_TABLE_REGNUM): Set.
9618 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
9619 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
9620 (addsi3, movsi_internal2, movdf_internal): Update constraints
9621 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
9622 (move_operand): Redefine as move_src_operand,
9623 check microblaze_tls_referenced_p.
8cc9a5a5 9624
d803a491
IB
96252013-03-14 Ian Bolton <ian.bolton@arm.com>
9626
9627 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
9628 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
9629
a8504f22
IB
96302013-03-14 Ian Bolton <ian.bolton@arm.com>
9631
9632 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
9633 CC mode for AND.
9634
df2dfaea
JJ
96352013-03-14 Jakub Jelinek <jakub@redhat.com>
9636
fbd28bc3
JJ
9637 PR tree-optimization/53265
9638 * common.opt (Waggressive-loop-optimizations): New option.
9639 * tree-ssa-loop-niter.c: Include tree-pass.h.
9640 (do_warn_aggressive_loop_optimizations): New function.
9641 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
9642 if number_of_latch_executions returned constant.
9643 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
9644 early. If number_of_latch_executions returned constant, set
9645 nb_iterations_upper_bound back to it.
9646 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
9647 field.
9648 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
9649 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
9650
df2dfaea
JJ
9651 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
9652 (MULTILIB_OSDIRNAMES): Set.
9653 * genmultilib: If defaultosdirname doesn't start with :: , set
9654 defaultosdirname2 instead, clear it and emit two . multilib_raw
9655 entries instead of just one.
9656
ee0d2b68
KK
96572013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
9658
9659 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9660 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
9661 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
9662 (SUBTARGET_OVERRIDE_OPTIONS): New.
9663
decc676e
OE
96642013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
9665
9666 PR target/49880
9667 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
9668 (musermode): Convert to Var(TARGET_USERMODE).
9669 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
9670 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
9671 * config/sh/sh.c (sh_option_override): Use
9672 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
9673 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
9674 condition.
9675 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
9676 TARGET_SH4.
9677 (udivsi3_i4_single, divsi3_i4_single): Use
9678 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
9679
f4b719c7
DK
96802013-03-13 Dave Korn <dave.korn.cygwin@....>
9681
9682 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
9683 default setting.
9684
c40eced0
RB
96852013-03-13 Richard Biener <rguenther@suse.de>
9686
9687 PR tree-optimization/56608
9688 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
9689 calls when vectorizing basic-blocks.
9690
1bfa5973
JJ
96912013-03-13 Jakub Jelinek <jakub@redhat.com>
9692
9693 PR plugins/45078
9694 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
9695 tm_file.
9696
6fcf5434
JJ
96972013-03-12 Jakub Jelinek <jakub@redhat.com>
9698
9699 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
9700
4f38fa8c
JH
97012013-03-11 Jan Hubicka <jh@suse.cz>
9702
9703 PR lto/56557
9704 * lto-streamer-out.c (output_symbol_p): Skip references from
9705 constructors of external variables.
9706
c5c5ba89
JH
97072013-03-11 Jan Hubicka <jh@suse.cz>
9708
9709 PR middle-end/56571
9710 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
9711 from pseudos.
9712 * emit-rtl.c (verify_rtx_sharing): Likewise.
9713 (copy_insn_1): Likewise.
9714 * rtl.c (copy_rtx): Likewise.
9715
c2a939b1
GJL
97162013-03-11 Georg-Johann Lay <avr@gjlay.de>
9717
9718 PR target/56591
9719 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
9720 output_operand_lossage message.
88b97037 9721
3c3279fb
RE
97222013-03-11 Richard Earnshaw <rearnsha@arm.com>
9723
9724 PR target/56470
9725 * arm.c (shift_op): Validate RTL pattern on the fly.
9726 (arm_print_operand, case 'S'): Don't use shift_operator to validate
9727 the RTL.
9728
aef5ef9d
JDA
97292013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9730
9731 PR target/56347
9732 * config/pa/pa.md (call_value): Check for calls to powf and direct to
9733 new call patterns that clobber %fr12.
9734 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
9735 split and postreload patterns.
9736 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
9737 registers %fr12 and %fr12R as call used.
9738
456610d3
SB
97392013-03-09 Steven Bosscher <steven@gcc.gnu.org>
9740
9741 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
9742 (canon_address, record_store, replace_read, check_mem_read_rtx,
9743 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
9744 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
9745 rest_of_handle_dse): Likewise.
9746
4b1baac8
RS
97472013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
9748
9749 PR middle-end/56524
9750 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
9751 Add base_optabs.
9752 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
9753 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
9754 (save_optabs_if_changed): Replace with...
9755 (init_tree_optimization_optabs): ...this.
9756 * optabs.c (save_optabs_if_changed): Rename to...
9757 (init_tree_optimization_optabs): ...this. Take the optimization node
9758 as argument. Do nothing if the base optabs are already correct.
9759 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
9760 to recompute optabs.
9761 * function.h (function): Remove optabs field.
9762 * function.c (invoke_set_current_function_hook): Call
9763 init_tree_optimization_optabs. Use the result to initialize
9764 this_fn_optabs.
9765
b7a78683
AH
97662013-02-27 Aldy Hernandez <aldyh@redhat.com>
9767
9768 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
9769 if GTMA_HAS_NO_INSTRUMENTATION.
9770 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
9771 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
9772 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
9773 * gimple-pretty-print.c (dump_gimple_transaction): Handle
9774 GTMA_HAS_NO_INSTRUMENTATION.
9775
6384c29b
JJ
97762013-03-08 Jakub Jelinek <jakub@redhat.com>
9777
9778 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
9779 libasan_preinit.o.
9780
ecd4f20a
MP
97812013-03-08 Marek Polacek <polacek@redhat.com>
9782 Jakub Jelinek <jakub@redhat.com>
9783
9784 PR tree-optimization/56478
9785 * predict.c (is_comparison_with_loop_invariant_p): Change the
9786 type of loop_step to tree.
9787 (predict_loops): Adjust.
9788 (predict_iv_comparison): Perform the computations on double_ints.
9789
64366d35
RB
97902013-03-08 Richard Biener <rguenther@suse.de>
9791
9792 PR tree-optimization/56570
9793 * tree-cfg.c (verify_expr_location_1): Verify locations for
9794 DECL_DEBUG_EXPR.
9795 * tree-sra.c (create_access_replacement): Strip locations
9796 from DECL_DEBUG_EXPRs.
9797
a9d5a059
RB
97982013-03-08 Richard Biener <rguenther@suse.de>
9799
9800 * tree-inline.c (expand_call_inline): Do not associate
9801 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
9802 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
9803
b7aa4e9a
RB
98042013-03-08 Richard Biener <rguenther@suse.de>
9805
9806 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
9807 or block changes with -Og. Fix for location / block encoding
9808 changes and PHI arguments with locations.
9809
c4c2f9fa
SB
98102013-03-07 Steven Bosscher <steven@gcc.gnu.org>
9811
9812 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
9813 for all counters.
9814 (struct output_info): Likewise.
9815 (register_overhead): Remove bad gcc_assert.
9816 (bitmap_find_bit): If there is only a single bitmap element, do not
9817 count a miss as a search.
9818 (print_statistics): Update for counter type changes.
9819 (dump_bitmap_statistics): Likewise. Print headers such that they
9820 are properly lined up with the printed counters.
9821
5bf6606a
JJ
98222013-03-07 Jakub Jelinek <jakub@redhat.com>
9823
9824 PR tree-optimization/56559
9825 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
9826 check that it has only a single use.
9827
2c653d46
RB
98282013-03-07 Richard Biener <rguenther@suse.de>
9829
9830 * doc/invoke.texi (fwhole-program): Discourage use in combination
9831 with -flto.
9832
a72d8780
JJ
98332013-03-06 Jakub Jelinek <jakub@redhat.com>
9834
01a454df
JJ
9835 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
9836
c1781047
JJ
9837 PR tree-optimization/56539
9838 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
9839 instead of GSI_CONTINUE_LINKING as last argument to
9840 force_gimple_operand_gsi. Adjust function comment.
9841
9772c47a
JJ
9842 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
9843 aarch64-cores.def.
9844
a72d8780
JJ
9845 PR middle-end/56548
9846 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
9847 promoted mode, convert the result back to the original mode.
9848
fa5556de
RB
98492013-03-06 Richard Biener <rguenther@suse.de>
9850
9851 PR middle-end/56294
9852 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
9853 (insert_updated_phi_nodes_compare_uids): New function.
9854 (update_ssa): Sort symbols_to_rename after UID before
9855 traversing it to insert PHI nodes.
9856
010403d1
RB
98572013-03-06 Richard Biener <rguenther@suse.de>
9858
9859 PR middle-end/50494
9860 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
9861 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
9862
9863 Revert
9864 2013-02-13 Richard Biener <rguenther@suse.de>
9865
9866 PR lto/50494
9867 * varasm.c (output_constant_def_1): Get the decl representing
9868 the constant as argument.
9869 (output_constant_def): Wrap output_constant_def_1.
9870 (make_decl_rtl): Use output_constant_def_1 with the decl
9871 representing the constant.
9872 (build_constant_desc): Optionally re-use a decl already
9873 representing the constant.
9874 (tree_output_constant_def): Adjust.
9875
3c27ce4c
JY
98762013-03-06 Joey Ye <joey.ye@arm.com>
9877
9878 PR lto/50293
9879 * gcc.c (convert_white_space): New function.
9880 (main): Handles white space in function name.
9881
8f6d1c86
OE
98822013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
9883
9884 PR target/56529
9885 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
9886 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
9887 to SH_DIV_CALL_TABLE for TARGET_SH2.
9888 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
9889 list.
9890 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
9891 call-table options.
9892
798a209f
SA
98932013-03-05 Sterling Augustine <saugustine@google.com>
9894 Cary Coutant <ccoutant@google.com>
9895
9896 PR debug/55364
9897 * dwarf2out.c (resolve_addr): Don't call
9898 remove_loc_list_addr_table_entries a second time for the same
9899 expression.
9900
6cfa417f 99012013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 9902
6cfa417f
JJ
9903 PR debug/56510
9904 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
9905 (avoid_complex_debug_insns): New function.
9906 (expand_debug_locations): Call it.
9907
9908 PR rtl-optimization/56484
9909 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
9910 lifetimes of hard registers on small register class machines.
9911
99122013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
9913
9914 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 9915 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 9916 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
9917 fast_interrupt.
9918 (microblaze_fast_interrupt_function_p): New function.
9919 (microblaze_is_interrupt_handler): Rename to
9920 microblaze_is_interrupt_variant and add fast_interrupt check.
9921 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
9922 (save_restore_insns): Likewise.
9923 (compute_frame_size): Likewise.
9924 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
9925 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
9926 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
9927 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
9928 microblaze_is_interrupt_variant.
9929
731aefac
KT
99302013-03-05 Kai Tietz <ktietz@redhat.com>
9931
9932 * sdbout.c (sdbout_one_type): Switch to current function's section
9933 supporting cold/hot.
9934
a72d8780 99352013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
9936
9937 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
9938 -mxl-reorder.
9939
334e71e8
JJ
99402013-03-05 Jakub Jelinek <jakub@redhat.com>
9941
0b50e654
JJ
9942 PR middle-end/56461
9943 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
9944 if VALGRIND_GET_VBITS is defined, temporarily make object
9945 memory all defined, and restore previous valgrind addressability
9946 and definability afterwards. Free this_object at the end.
9947
4ccf8f43
JJ
9948 PR middle-end/56461
9949 * lra.c (lra): Call lra_clear_live_ranges if live_p,
9950 right before calling lra_create_live_ranges, also call it
9951 when clearing live_p. Only call lra_clear_live_ranges
9952 at the end if live_p.
9953
334e71e8
JJ
9954 PR middle-end/56461
9955 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
9956
9ca966ca
RB
99572013-03-05 Richard Biener <rguenther@suse.de>
9958
9959 PR tree-optimization/56521
9960 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
9961 value-id.
9962
d273b176
SB
99632013-03-05 Steven Bosscher <steven@gcc.gnu.org>
9964
9965 PR c++/55135
9966 * except.h (remove_unreachable_eh_regions): New prototype.
9967 * except.c (remove_eh_handler_splicer): New function, split out
9968 of remove_eh_handler.
9969 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
9970 warning about running it on many EH regions one at a time.
9971 (remove_unreachable_eh_regions_worker): New function, walk the
9972 EH tree in depth-first order and remove non-marked regions.
9973 (remove_unreachable_eh_regions): New function.
9974 * tree-eh.c (mark_reachable_handlers): New function, split out
9975 from remove_unreachable_handlers.
9976 (remove_unreachable_handlers): Use mark_reachable_handlers and
9977 remove_unreachable_eh_regions.
9978 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
9979 and remove_unreachable_eh_regions.
9980
5e7f1aef
RB
99812013-03-05 Richard Biener <rguenther@suse.de>
9982
9983 PR middle-end/56525
9984 * loop-init.c (fix_loop_structure): Remove loops in two stages,
9985 not freeing them until the end.
9986
f276b762
AK
99872013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9988
9989 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
9990
12a43ab8
RB
99912013-03-05 Richard Biener <rguenther@suse.de>
9992
9993 PR tree-optimization/56270
9994 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
9995 of loads after scheduling an SLP instance.
9996
93675444
JJ
99972013-03-05 Jakub Jelinek <jakub@redhat.com>
9998
db4138e3
JJ
9999 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10000 tic6x.exp.
10001 (check_gcc_parallelize): Run guality.exp as a separate job from
10002 vect.exp with unsorted.exp and $(dg_target_exps) separately from
10003 struct-layout-1.exp with stackalign.exp.
10004
dd3d1ec0
JJ
10005 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10006
b8d381a3
JJ
10007 PR middle-end/56461
10008 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10009 load_index sbitmap even if some bit in it isn't set.
10010
b4f9786b
JJ
10011 PR middle-end/56461
10012 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10013 (discover_iteration_bound_by_body_walk): Change queues to
10014 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
10015 spelling in comment. Call safe_push on queues[bound_index] directly.
10016 Release queues[queue_index] in every iteration unconditionally.
10017 Release bounds vector.
10018
93675444
JJ
10019 PR middle-end/56461
10020 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10021 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10022 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10023 inner_phis vector.
10024
3e492e9c
RB
100252013-03-05 Richard Biener <rguenther@suse.de>
10026
10027 PR lto/56515
10028 * tree-inline.c (remap_blocks_to_null): New function.
10029 (expand_call_inline): When expanding a call stmt without
10030 an associated block inline remap all callee blocks to NULL.
10031
a5d1569a
JJ
100322013-03-05 Jakub Jelinek <jakub@redhat.com>
10033
86efb5cd
JJ
10034 PR rtl-optimization/56494
10035 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10036 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10037 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10038
85f5dbea
JJ
10039 PR middle-end/56461
10040 * sel-sched-ir.c (free_sched_pools): Release
10041 succs_info_pool.stack[succs_info_pool.max_top] vectors too
10042 if succs_info_pool.max_top isn't -1.
10043
a5d1569a
JJ
10044 PR bootstrap/56509
10045 * opts.c (opts_obstack, opts_concat): Moved to...
10046 * opts-common.c (opts_obstack, opts_concat): ... here.
10047
4432aa6c
JJ
100482013-03-04 Jakub Jelinek <jakub@redhat.com>
10049
10050 PR middle-end/56461
10051 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10052
f3a1fb91
MJ
100532013-03-04 Martin Jambor <mjambor@suse.cz>
10054
10055 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10056 all appropriate places.
10057
22110e6c
EB
100582013-01-04 Eric Botcazou <ebotcazou@adacore.com>
10059
10060 PR tree-optimization/56424
10061 * ipa-split.c (split_function): Do not set the RSO flag if result is
10062 not by reference and its type is a register type.
10063
a72d8780 100642013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 10065
88b97037 10066 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 10067 (microblaze_legitimate_pic_operand): Likewise
88b97037 10068 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
10069 new function microblaze_legitimate_pic_operand
10070 * config/microblaze/microblaze-protos.h
10071 (microblaze_legitimate_pic_operand): Declare.
10072
a72d8780 100732013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 10074
a72d8780 10075 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 10076 New predicate for supported rtx code types.
a72d8780 10077 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
10078 call_insn_simple_operand predicate.
10079
541d9ac8
JJ
100802013-03-04 Jakub Jelinek <jakub@redhat.com>
10081
5eb010bc
JJ
10082 PR middle-end/56461
10083 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10084 partitions.ordered_remove.
10085
30862efc
JJ
10086 PR middle-end/56461
10087 * tree-vect-stmts.c (vectorizable_conversion): Don't call
10088 vec_oprnds0.create (1) for modifier == NONE.
10089
8930f723
JJ
10090 PR middle-end/56461
10091 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10092 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10093 vec_oprnds1 right before pushing anything to it for
10094 scalar_shift_arg.
10095
541d9ac8
JJ
10096 PR middle-end/56461
10097 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10098 set nbbs to 0 instead of having separate code path.
10099 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10100 instead of false as last argument if returning NULL.
10101
7aa7f2e3
SL
101022013-03-03 Sandra Loosemore <sandra@codesourcery.com>
10103
10104 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10105 the attribute is now called "target" instead of "option".
10106 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10107 * doc/tm.texi.in (Target Attributes): Likewise document the correct
10108 attribute/pragma name for TARGET_OPTION_VALID_P and
10109 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
10110 * doc/tm.texi: Regenerated.
10111
8930f723 101122013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 10113
8930f723 10114 * config/microblaze/microblaze.c:
cb8a1637 10115 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
10116 * config/microblaze/microblaze.h: Add -mxl-reorder to
10117 DRIVER_SELF_SPECS.
10118 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10119 instructions emitted if TARGET_REORDER.
88b97037
UB
10120 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10121 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 10122 separately.
cb8a1637 10123
4dc1d68c
XDL
101242013-03-01 Xinliang David Li <davidxl@google.com>
10125
10126 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10127 walk length.
10128
689eaba3
JJ
101292013-03-01 Jakub Jelinek <jakub@redhat.com>
10130
9d676bf6
JJ
10131 PR middle-end/56461
10132 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10133 vector even when returning true. Fix up function comment formatting.
10134
caff7edf
JJ
10135 PR middle-end/56461
10136 * ira-build.c (ira_loop_nodes_count): New variable.
10137 (create_loop_tree_nodes): Initialize it.
10138 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10139
b6b9227d
JJ
10140 PR middle-end/56461
10141 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10142 method on dr_chain and result_chain.
10143 * tree-vect-stmts.c (vectorizable_store): Only call
10144 result_chain.create if j == 0.
10145
689eaba3
JJ
10146 PR middle-end/56461
10147 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10148 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10149 before overwriting it.
10150
40bf31ed
TB
101512013-03-01 Tobias Burnus <burnus@net-b.de>
10152
10153 * doc/extended.texi (C Extensions): Change order in @menu
10154 to match @node.
10155 (Other MIPS Built-in Functions): Move last MIPS entry before
10156 "picoChip Built-in Functions".
10157 (SH Built-in Functions): Move after RX Built-in Functions.
10158 * doc/gcc.texi (Introduction): Change order in @menu
10159 to match @node.
10160 * doc/md.texi (Constraints): Ditto.
10161 * gty.texi (Type Information): Ditto.
10162 (User-provided marking routines for template types): Make
10163 subsection.
10164 * doc/invoke.texi (AArch64 Options): Move before
10165 "Adapteva Epiphany Options".
10166
e664c61c
KS
101672013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10168 Jakub Jelinek <jakub@redhat.com>
10169
10170 PR sanitizer/56454
10171 * asan.c (gate_asan): Lookup no_sanitize_address instead of
10172 no_address_safety_analysis attribute.
10173 * doc/extend.texi (no_address_safety_attribute): Rename to
10174 no_sanitize_address attribute, mention no_address_safety_analysis
10175 attribute as deprecated alias.
10176
37b5ec8f
JJ
101772013-02-28 Jakub Jelinek <jakub@redhat.com>
10178
10179 PR middle-end/56461
10180 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10181 type to vec<vec<tree> > *.
10182 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
10183 to be vec<tree> instead of vec<tree> *, set vec_defs
10184 to vNULL and call vec_defs.create (number_of_vects), adjust other
10185 uses of vec_defs.
10186 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10187 vectorizable_condition): Adjust vect_get_slp_defs callers.
10188
ba96cdfb
JG
101892013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10190
10191 * config/aarch64/aarch64.c
10192 (aarch64_float_const_representable): Remove unused variable.
10193
6f549691
JG
101942013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10195
10196 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10197
af55e82d
JG
101982013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10199
10200 * config/aarch64/aarch64-builtins.c
10201 (aarch64_init_simd_builtins): Make static.
10202
1df3f464
JG
102032013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10204
10205 * config/aarch64/aarch64.c
10206 (aarch64_simd_make_constant): Make static.
10207
f8f42513
MJ
102082013-02-28 Martin Jambor <mjambor@suse.cz>
10209
10210 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10211 with no initialization to the RHS of debug statements.
10212
b48b3fc4
MJ
102132013-02-28 Martin Jambor <mjambor@suse.cz>
10214
10215 PR tree-optimization/56294
10216 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10217 Adjust dumping.
10218 (get_access_replacement): Do not call create_access_replacement.
10219 Assert a replacement exists.
10220 (get_repl_default_def_ssa_name): Create the replacement declaration
10221 itself.
10222
c3ae224c
RR
102232013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10224
10225 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10226 final_end_function.
10227
45fa0eef
MP
102282013-02-28 Marek Polacek <polacek@redhat.com>
10229
10230 PR rtl-optimization/56466
10231 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10232 if we're changing a loop.
10233 (peel_loops_completely): Likewise.
10234
502c067d
PC
102352013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10236
10237 PR c++/55813
10238 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10239
ff24afc8
GJL
102402013-02-28 Georg-Johann Lay <avr@gjlay.de>
10241
10242 PR target/56445
10243 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10244 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10245 INTX_FTYPE_FX, FX_FTYPE_INTX.
10246 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10247
c7b1fc1b
GJL
102482013-02-28 Georg-Johann Lay <avr@gjlay.de>
10249
10250 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10251 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10252 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10253 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10254 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10255 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10256 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10257 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10258 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10259 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10260 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10261 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10262 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10263 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10264 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10265 (avrxmega6): Increase max flash segments from 5 to 6.
10266 * config/avr/t-multilib: Regenerate.
10267 * config/avr/avr-tables.opt: Regenerate.
10268 * doc/avr-mmcu.texi: Regenerate.
10269
4a0e3cfe
GJL
102702013-02-28 Georg-Johann Lay <avr@gjlay.de>
10271
10272 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10273 (avr_device_to_arch): Rename to avr_device_to_ld.
10274 (avr_device_to_as): New prototype.
10275 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10276 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10277 * config/avr/driver-avr.c (avr_device_to_as): New.
10278 (avr_device_to_arch): Rename to avr_device_to_ld.
10279
97785e52
JJ
102802013-02-27 Jakub Jelinek <jakub@redhat.com>
10281
3f292312
JJ
10282 PR middle-end/56461
10283 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10284 method on dr_chain and result_chain.
10285
a344216b
JJ
10286 PR middle-end/56461
10287 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10288 pointer_set_destroy on not_executed_last_iteration.
10289
f121ad02 10290 PR middle-end/56461
88b97037 10291 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 10292
307f83a3
JJ
10293 PR middle-end/56461
10294 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10295 FOR_EACH_DEFINED_FUNCTION when freeing state.
10296
e19624ee
JJ
10297 PR middle-end/56461
10298 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10299 pool_free.
10300 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10301 overwriting it.
10302
90e709fd
JJ
10303 PR middle-end/56461
10304 * ipa-cp.c (decide_whether_version_node): Call vec_free on
10305 known_aggs[i].items and release known_aggs vector.
10306
97785e52
JJ
10307 PR middle-end/56461
10308 * ipa-reference.c (propagate): Free node_info even for alias nodes.
10309
103102013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 10311
97785e52
JJ
10312 * config/microblaze/microblaze.c (microblaze_emit_compare):
10313 Use xor for EQ/NE comparisions.
10314 * config/microblaze/microblaze.md (cstoresf4): Add constraints
10315 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 10316
6fa5e0ed
JJ
103172013-02-27 Jakub Jelinek <jakub@redhat.com>
10318
10319 PR middle-end/56461
10320 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
10321 vector.
10322 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
10323 vec_safe_push, always update *slot.
10324 (redirect_edge_var_map_clear): Use vec_free.
10325 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
10326 (free_var_map_entry): Use vec_free.
10327 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
10328 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
10329
436a956a
AB
103302013-02-27 Andrey Belevantsev <abel@ispras.ru>
10331
10332 PR middle-end/45472
436a956a
AB
10333 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
10334 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
10335 Reorder tests for speculativeness in the logical and operator.
10336
f5c2caca
JJ
103372013-02-27 Jakub Jelinek <jakub@redhat.com>
10338
0fcb564b
JJ
10339 * incpath.c (add_standard_paths): Use reconcat instead of concat
10340 where appropriate and avoid leaking memory.
10341
dc357798
JJ
10342 * opts.h: Include obstack.h.
10343 (opts_concat): New prototype.
10344 (opts_obstack): New declaration.
10345 * opts.c (opts_concat): New function.
10346 (opts_obstack): New variable.
10347 (init_options_struct): Call gcc_init_obstack on opts_obstack.
10348 (finish_options): Use opts_concat instead of concat
10349 and XOBNEWVEC instead of XNEWVEC.
10350 * opts-common.c (generate_canonical_option, decode_cmdline_option,
10351 generate_option): Likewise.
10352 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
10353 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
10354
f5c2caca
JJ
10355 PR target/56455
10356 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
10357 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
10358
d0163673
JJ
103592013-02-26 Jakub Jelinek <jakub@redhat.com>
10360
10361 PR middle-end/56461
10362 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
10363
b5ad2b8e
JR
103642013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10365
10366 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
10367 (arm_block_move_unaligned_straight): Likewise.
10368 (arm_adjust_block_mem): Likewise.
10369
9b639e2c
JR
103702013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
10371
10372 PR target/48901
10373 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
10374 temp, cond and label.
10375 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
10376
e13a0ccb
JR
10377 PR target/52500
10378 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
10379 * config/c6x/c6x.h (dbx_register_map): Update declaration.
10380
fbe4f171
JR
10381 PR target/52501
10382 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
10383 of prologue/epilogue functions.
10384
ae006543
JR
10385 PR target/52550
10386 * config/tilegx/tilegx.c (tilegx_expand_prologue):
10387 Remove unused variable cfa_offset.
10388 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
10389
c81369fa
JR
10390 PR target/54639
10391 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
10392 type promotion to unsigned.
10393
f8a8fea7
JR
10394 PR target/54640
10395 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
10396 for HOST_WIDE_INT of 32 bit / same size as int.
10397 (arm_block_move_unaligned_straight): Likewise.
10398 (arm_adjust_block_mem): Likewise.
10399
f8be5169
JR
10400 PR target/54662
10401 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
10402 ALL_CFLAGS.
10403
f1ad3354
MP
104042013-02-26 Marek Polacek <polacek@redhat.com>
10405
10406 PR tree-optimization/56426
88b97037 10407 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 10408
a6af0f42
RB
104092013-02-26 Richard Biener <rguenther@suse.de>
10410
10411 PR target/56444
10412 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
10413 unused variable loops.
10414
aca43c6c
JJ
104152013-02-26 Jakub Jelinek <jakub@redhat.com>
10416
cecbe5d9
JJ
10417 PR tree-optimization/56448
10418 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
10419 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
10420 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
10421 later operands of the references, or even first operand for
10422 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
10423
aca43c6c
JJ
10424 PR tree-optimization/56443
10425 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
10426 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
10427 to type_for_mode langhook.
10428
53e2e141
MT
104292013-02-25 Matt Turner <mattst88@gmail.com>
10430
10431 * doc/invoke.texi: Document r4700.
10432
259ee451
RB
104332013-02-25 Richard Biener <rguenther@suse.de>
10434
10435 PR tree-optimization/56175
10436 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
10437 split out from ...
10438 (simplify_bitwise_binary): ... here. Also guard the conversion
10439 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
10440
6d65e8f1
CM
104412013-02-25 Catherine Moore <clm@codesourcery.com>
10442
10443 Revert:
10444 2013-02-24 Catherine Moore <clm@codesourcery.com>
10445 Maciej W. Rozycki <macro@codesourcery.com>
10446 Tom de Vries <tom@codesourcery.com>
a72d8780 10447 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
10448 Iain Sandoe <iain@codesourcery.com>
10449 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 10450 Chao-ying Fu <fu@mips.com>
88b97037 10451
6d65e8f1 10452 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 10453 Document new function attributes.
6d65e8f1
CM
10454 * doc/invoke.texi (minterlink-compressed, mmicromips,
10455 m14k, m14ke, m14kec): Document new options.
10456 (minterlink-mips16): Update documentation.
10457 * doc/md.texi (ZC, ZD): Document new constraints.
10458 * configure.ac (gcc_cv_as_micromips): Check if linker
10459 supports the .set micromips directive.
10460 * configure: Regenerate.
10461 * config.in: Regenerate.
10462 * config/mips/mips-tables.opt: Regenerate.
10463 * config/mips/micromips.md: New file.
10464 * constraints.md (ZC, AD): New constraints.
10465 * config/mips/predicates.md (movep_src_register): New predicate.
10466 (movep_src_operand): New predicate.
10467 (non_volatile_mem_operand): New predicate.
10468 * config/mips/mips.md (multimem): New type.
10469 (length): Differentiate between 17-bit and 18-bit branch offsets.
10470 (MOVEP1, MOVEP2): New mode iterator.
10471 (mov_<load>l): Use ZC constraint.
10472 (mov_<load>r): Likewise.
10473 (mov_<store>l): Likewise.
10474 (mov_<store>r): Likewise.
10475 (*branch_equality<mode>_inverted): Add microMIPS support.
10476 (*branch_equality<mode>): Likewise.
10477 (*jump_absolute): Likewise.
10478 (indirect_jump_<mode>): Likewise.
10479 (tablejump_<mode>): Likewise.
10480 (<optab>_internal): Likewise.
10481 (sibcall_internal): Likewise.
10482 (sibcall_value_internal): Likewise.
10483 (prefetch): Use constraint ZD.
10484 * config/mips/mips.opt (minterlink-compressed): New option.
10485 (minterlink-mips16): Now an alias for minterlink-compressed.
10486 (mmicromips): New option.
10487 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10488 (compare_and_swap_12): Likewise.
10489 (sync_add<mode>): Likewise.
10490 (sync_<optab>_12): Likewise.
10491 (sync_old_<optab>_12): Likewise.
10492 (sync_new_<optab>_12): Likewise.
10493 (sync_nand_12): Likewise.
10494 (sync_old_nand_12): Likewise.
10495 (sync_new_nand_12): Likewise.
10496 (sync_sub<mode>): Likewise.
10497 (sync_old_add<mode>): Likewise.
10498 (sync_old_sub<mode>): Likewise.
10499 (sync_new_add<mode>): Likewise.
10500 (sync_new_sub<mode>): Likewise.
10501 (sync_<optab><mode>): Likewise.
10502 (sync_old_<optab><mode>): Likewise.
10503 (sync_new_<optab><mode>): Likewise.
10504 (sync_nand<mode>): Likewise.
10505 (sync_old_nand<mode>): Likewise.
10506 (sync_new_nand<mode>): Likewise.
10507 (sync_lock_test_and_set<mode>): Likewise.
10508 (test_and_set_12): Likewise.
10509 (atomic_compare_and_swap<mode>): Likewise.
10510 (atomic_exchange<mode>_llsc): Likewise.
10511 (atomic_fetch_add<mode>_llsc): Likewise.
10512 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10513 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10514 (umips_save_restore_pattern_p): Likewise.
10515 (umips_load_store_pair_p): Likewise.
10516 (umips_output_load_store_pair): Likewise.
10517 (umips_movep_target_p): Likewise.
10518 (umips_12bit_offset_address_p): Likewise.
10519 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10520 (mips_base_mips16): Rename this...
10521 (mips_base_compression_flags): ...to this. Update all uses.
10522 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10523 (mips_mips16_decl_p): Delete.
10524 (mips_nomips16_decl_p): Delete.
10525 (mips_get_compress_on_flags): New function.
10526 (mips_get_compress_off_flags): New function.
10527 (mips_get_compress_mode): New function.
10528 (mips_get_compress_on_name): New function.
10529 (mips_get_compress_off_name): New function.
10530 (mips_insert_attributes): Support multiple compression types.
10531 (mips_merge_decl_attributes): Likewise.
10532 (umips_12bit_offset_address_p): New function.
10533 (mips_start_function_definition): Emit .set micromips directive.
10534 (mips_call_may_need_jalx_p): New function.
10535 (mips_function_ok_for_sibcall): Add microMIPS support.
10536 (mips_print_operand_punctuation): Support short delay slots and
10537 compact jumps.
10538 (umips_swm_mask, umips_swm_encoding): New.
10539 (umips_build_save_restore): New function.
10540 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10541 (was_mips16_p): Remove.
10542 (old_compression_mode): New.
10543 (mips_set_compression_mode): New function.
10544 (mips_set_current_function): Add microMIPS support.
10545 (mips_option_override): Likewise.
10546 (umips_save_restore_pattern_p): New function.
10547 (umips_output_save_restore): New function.
10548 (umips_load_store_pair_p_1): New function.
10549 (umips_load_store_pair_p): New function.
10550 (umips_output_load_store_pair_1): New function.
10551 (umips_output_load_store_pair): New function.
10552 (umips_movep_target_p) New function.
10553 (mips_prepare_pch_save): Add microMIPS support.
10554 * config/mips/mips.h (TARGET_COMPRESSION): New.
10555 (TARGET_CPU_CPP_BUILTINS): Update macro
10556 to use new compression flags and to support microMIPS.
10557 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10558 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10559 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10560 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10561 (ASM_SPEC): Support mmicromips and mno-micromips.
10562 (M16STORE_REG_P): New macro.
10563 (MIPS_CALL): Support TARGET_MICROMIPS.
10564 (MICROMIPS_J): New macro.
10565 (mips_base_mips16): Rename this...
10566 (mips_base_compression_flags): ...to this.
10567 (UMIPS_12BIT_OFFSET_P): New macro.
10568 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10569 (MULTILIB_DIRNAMES): Likewise.
10570
5e5df392
TV
105712013-02-25 Tom de Vries <tom@codesourcery.com>
10572
10573 PR rtl-optimization/56131
10574 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
10575 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
10576 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
10577
3fdb53c1
TB
105782013-02-25 Tobias Burnus <burnus@net-b.de>
10579
10580 * doc/invoke.texi (-fsanitize=): Move from optimization
10581 to debugging options.
10582
ed358aea
AB
105832013-02-25 Andrey Belevantsev <abel@ispras.ru>
10584
10585 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
10586
f45e9053
AB
105872013-02-25 Andrey Belevantsev <abel@ispras.ru>
10588 Alexander Monakov <amonakov@ispras.ru>
10589
10590 PR middle-end/56077
10591 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
10592 flush pending lists also on non-jumps. Adjust comment.
10593
6941b508
CM
105942013-02-24 Catherine Moore <clm@codesourcery.com>
10595 Maciej W. Rozycki <macro@codesourcery.com>
10596 Tom de Vries <tom@codesourcery.com>
a72d8780 10597 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
10598 Iain Sandoe <iain@codesourcery.com>
10599 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 10600 Chao-ying Fu <fu@mips.com>
6941b508
CM
10601
10602 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 10603 Document new function attributes.
6941b508
CM
10604 * doc/invoke.texi (minterlink-compressed, mmicromips,
10605 m14k, m14ke, m14kec): Document new options.
10606 (minterlink-mips16): Update documentation.
10607 * doc/md.texi (ZC, ZD): Document new constraints.
10608 * configure.ac (gcc_cv_as_micromips): Check if linker
10609 supports the .set micromips directive.
10610 * configure: Regenerate.
10611 * config.in: Regenerate.
10612 * config/mips/mips-tables.opt: Regenerate.
10613 * config/mips/micromips.md: New file.
10614 * constraints.md (ZC, AD): New constraints.
10615 * config/mips/predicates.md (movep_src_register): New predicate.
10616 (movep_src_operand): New predicate.
10617 (non_volatile_mem_operand): New predicate.
10618 * config/mips/mips.md (multimem): New type.
10619 (length): Differentiate between 17-bit and 18-bit branch offsets.
10620 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 10621 (mov_<load>l): Use ZC constraint.
6941b508
CM
10622 (mov_<load>r): Likewise.
10623 (mov_<store>l): Likewise.
10624 (mov_<store>r): Likewise.
10625 (*branch_equality<mode>_inverted): Add microMIPS support.
10626 (*branch_equality<mode>): Likewise.
10627 (*jump_absolute): Likewise.
10628 (indirect_jump_<mode>): Likewise.
10629 (tablejump_<mode>): Likewise.
10630 (<optab>_internal): Likewise.
10631 (sibcall_internal): Likewise.
10632 (sibcall_value_internal): Likewise.
10633 (prefetch): Use constraint ZD.
10634 * config/mips/mips.opt (minterlink-compressed): New option.
10635 (minterlink-mips16): Now an alias for minterlink-compressed.
10636 (mmicromips): New option.
10637 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
10638 (compare_and_swap_12): Likewise.
10639 (sync_add<mode>): Likewise.
10640 (sync_<optab>_12): Likewise.
10641 (sync_old_<optab>_12): Likewise.
10642 (sync_new_<optab>_12): Likewise.
10643 (sync_nand_12): Likewise.
10644 (sync_old_nand_12): Likewise.
10645 (sync_new_nand_12): Likewise.
10646 (sync_sub<mode>): Likewise.
10647 (sync_old_add<mode>): Likewise.
10648 (sync_old_sub<mode>): Likewise.
10649 (sync_new_add<mode>): Likewise.
10650 (sync_new_sub<mode>): Likewise.
10651 (sync_<optab><mode>): Likewise.
10652 (sync_old_<optab><mode>): Likewise.
10653 (sync_new_<optab><mode>): Likewise.
10654 (sync_nand<mode>): Likewise.
10655 (sync_old_nand<mode>): Likewise.
10656 (sync_new_nand<mode>): Likewise.
10657 (sync_lock_test_and_set<mode>): Likewise.
10658 (test_and_set_12): Likewise.
10659 (atomic_compare_and_swap<mode>): Likewise.
10660 (atomic_exchange<mode>_llsc): Likewise.
10661 (atomic_fetch_add<mode>_llsc): Likewise.
10662 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
10663 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
10664 (umips_save_restore_pattern_p): Likewise.
10665 (umips_load_store_pair_p): Likewise.
10666 (umips_output_load_store_pair): Likewise.
10667 (umips_movep_target_p): Likewise.
10668 (umips_12bit_offset_address_p): Likewise.
10669 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
10670 (mips_base_mips16): Rename this...
10671 (mips_base_compression_flags): ...to this. Update all uses.
10672 (mips_attribute_table): Add micromips, nomicromips and nocompression.
10673 (mips_mips16_decl_p): Delete.
10674 (mips_nomips16_decl_p): Delete.
3fdb53c1 10675 (mips_get_compress_on_flags): New function.
6941b508
CM
10676 (mips_get_compress_off_flags): New function.
10677 (mips_get_compress_mode): New function.
10678 (mips_get_compress_on_name): New function.
10679 (mips_get_compress_off_name): New function.
10680 (mips_insert_attributes): Support multiple compression types.
10681 (mips_merge_decl_attributes): Likewise.
10682 (umips_12bit_offset_address_p): New function.
10683 (mips_start_function_definition): Emit .set micromips directive.
10684 (mips_call_may_need_jalx_p): New function.
10685 (mips_function_ok_for_sibcall): Add microMIPS support.
10686 (mips_print_operand_punctuation): Support short delay slots and
10687 compact jumps.
10688 (umips_swm_mask, umips_swm_encoding): New.
10689 (umips_build_save_restore): New function.
10690 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10691 (was_mips16_p): Remove.
10692 (old_compression_mode): New.
10693 (mips_set_compression_mode): New function.
10694 (mips_set_current_function): Add microMIPS support.
10695 (mips_option_override): Likewise.
10696 (umips_save_restore_pattern_p): New function.
10697 (umips_output_save_restore): New function.
10698 (umips_load_store_pair_p_1): New function.
10699 (umips_load_store_pair_p): New function.
10700 (umips_output_load_store_pair_1): New function.
10701 (umips_output_load_store_pair): New function.
10702 (umips_movep_target_p) New function.
10703 (mips_prepare_pch_save): Add microMIPS support.
10704 * config/mips/mips.h (TARGET_COMPRESSION): New.
10705 (TARGET_CPU_CPP_BUILTINS): Update macro
10706 to use new compression flags and to support microMIPS.
10707 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10708 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10709 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10710 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10711 (ASM_SPEC): Support mmicromips and mno-micromips.
10712 (M16STORE_REG_P): New macro.
10713 (MIPS_CALL): Support TARGET_MICROMIPS.
10714 (MICROMIPS_J): New macro.
10715 (mips_base_mips16): Rename this...
10716 (mips_base_compression_flags): ...to this.
10717 (UMIPS_12BIT_OFFSET_P): New macro.
10718 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10719 (MULTILIB_DIRNAMES): Likewise.
10720
cdebbc6d
JJ
107212013-02-24 Jakub Jelinek <jakub@redhat.com>
10722
10723 PR target/52555
10724 * target-globals.c (save_target_globals): For init_reg_sets and
10725 target_reinit remporarily set this_fn_optabs to this_target_optabs.
10726
18c63565
JG
107272013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
10728
10729 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
10730 * config/aarch64/t-aarch64
10731 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
10732
2194f7a2
VM
107332013-02-22 Vladimir Makarov <vmakarov@redhat.com>
10734
10735 PR inline-asm/56148
10736 * lra-constraints.c (process_alt_operands): Reload operand
10737 conflicting with earlier clobber only if no more other conflicting
10738 operands.
10739
7d613735
JJ
107402013-02-22 Jakub Jelinek <jakub@redhat.com>
10741
10742 PR sanitizer/56393
10743 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
10744 if not linking a shared library.
10745
ac8d93a7
SL
107462013-02-22 Seth LaForge <sethml@google.com>
10747
10748 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
10749
e0237780
GY
107502013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
10751
3fdb53c1
TB
10752 * config/arm/arm.md (split for extendsidi): Update condition.
10753 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
10754 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
10755 (qhs_zextenddi_cstr): Likewise.
e0237780 10756
d7fde18c
JJ
107572013-02-21 Jakub Jelinek <jakub@redhat.com>
10758
be63b77d
JJ
10759 PR middle-end/56420
10760 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
10761 avoid signed wrapping.
10762 (expand_mult): Handle properly multiplication by
10763 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
10764 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
10765 in the compiler if coeff is HOST_WIDE_INT_MIN.
10766 (expand_divmod): Don't make ext_op1 static, change it's type to
10767 uhwi. Avoid undefined behavior in -INTVAL (op1).
10768
d7fde18c
JJ
10769 PR rtl-optimization/50339
10770 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
10771 field.
10772 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
10773 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
10774 into splitting_ashiftrt field.
10775 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
10776 ASHIFTRT.
10777 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
10778 choices.
10779
6aad4455
AH
107802013-02-20 Aldy Hernandez <aldyh@redhat.com>
10781
10782 PR middle-end/56108
10783 * trans-mem.c (execute_tm_mark): Do not expand transactions that
10784 are sure to go irrevocable.
10785
38fe784d
HPN
107862013-02-21 Hans-Peter Nilsson <hp@axis.com>
10787
10788 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
10789 scalars are valid operands.
10790
0fd44da3
MJ
107912013-02-21 Martin Jambor <mjambor@suse.cz>
10792
10793 PR tree-optimization/56310
10794 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
10795 only matching indices and non-negative final offsets.
10796 (intersect_aggregates_with_edge): Pass src_idx to
10797 agg_replacements_to_vector. Pass src_idx insstead of index to
10798 intersect_with_agg_replacements.
10799
7a92038b
MJ
108002013-02-21 Martin Jambor <mjambor@suse.cz>
10801
10802 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
10803 instead of hard-wired defaults.
10804
c0da9c37
MR
108052013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
10806
10807 * doc/invoke.texi (MIPS Options): Update documentation of the
10808 floating-point multiply-accumulate instruction restrictions.
10809
d247ea0c 108102013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
10811
10812 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
10813 asan_shadow_offset on x86_64 linux.
10814
22deefcb
RB
108152013-02-21 Richard Biener <rguenther@suse.de>
10816
10817 PR tree-optimization/56415
10818 Revert
10819 2013-02-11 Richard Biener <rguenther@suse.de>
10820
10821 PR tree-optimization/56273
10822 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
10823 first VRP run.
10824
7bcc6e75
JJ
108252013-02-21 Jakub Jelinek <jakub@redhat.com>
10826
a0ad148f
JJ
10827 PR bootstrap/56258
10828 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
10829 instead of @itemx.
10830
7bcc6e75
JJ
10831 PR inline-asm/56405
10832 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
10833 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
10834
a0a7b611
JH
108352013-02-20 Jan Hubicka <jh@suse.cz>
10836
10837 PR tree-optimization/56265
88b97037
UB
10838 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
10839 when target is referenced for first time.
a0a7b611 10840
c0e50f72
RB
108412013-02-20 Richard Biener <rguenther@suse.de>
10842
10843 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
10844 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
10845 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10846 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
10847 not return anything.
10848 (rename_ssa_copies): Do not remove unused locals.
10849 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 10850 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
10851 * passes.c (execute_function_todo): Do not schedule unused locals
10852 removal if cleanup_tree_cfg did something.
10853 * tree-ssa-live.c (remove_unused_locals): Dump statistics
10854 about the number of removed locals.
10855
a52ca739
RB
108562013-02-20 Richard Biener <rguenther@suse.de>
10857
10858 PR tree-optimization/56398
88b97037 10859 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 10860
ec9c9d1b
MJ
108612013-02-20 Martin Jambor <mjambor@suse.cz>
10862
10863 PR tree-optimization/55334
10864 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
10865 restricted pointers to arrays.
10866
e91c8ed6 108672013-02-20 Richard Biener <rguenther@suse.de>
88b97037 10868 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
10869
10870 PR tree-optimization/56396
10871 * tree-ssa-ccp.c (n_const_val): New static variable.
10872 (get_value): Return NULL for SSA names we don't have a lattice
10873 entry for.
10874 (ccp_initialize): Initialize n_const_val.
10875 * tree-ssa-copy.c (n_copy_of): New static variable.
10876 (init_copy_prop): Initialize n_copy_of.
10877 (get_value): Return NULL_TREE for SSA names we don't have a
10878 lattice entry for.
10879
3d916479
MJ
108802013-02-20 Martin Jambor <mjambor@suse.cz>
10881
10882 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
10883
71a86758
RB
108842013-02-20 Richard Biener <rguenther@suse.de>
10885
10886 * genpreds.c (write_lookup_constraint): Do not compare first
10887 letter of the constraint again.
10888
79836a12
RB
108892013-02-20 Richard Biener <rguenther@suse.de>
10890
10891 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
10892 and ceil_log2.
10893 (get_use_iv_cost): Terminate hashtable walk when coming across
10894 an empty entry.
10895
bbe4fb2c
IZ
108962013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
10897
10898 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
10899 reassociation for avx2 targets.
10900
a72d8780 109012012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 10902
c77f83d5
EI
10903 * config/microblaze/microblaze.c: microblaze_has_clz = 0
10904 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 10905 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
10906 version and TARGET_PATTERN_COMPARE check
10907 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 10908
a72d8780 109092012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 10910
a72d8780 10911 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
10912 function before branching.
10913
242387fa
AB
109142012-02-19 Andrey Belevantsev <abel@ispras.ru>
10915
10916 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
10917 DUMP_INSN_RTX_UID.
10918 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
10919
b4979ab9
AB
109202012-02-19 Andrey Belevantsev <abel@ispras.ru>
10921
10922 PR middle-end/55889
b4979ab9
AB
10923 * sel-sched.c: Include ira.h.
10924 (implicit_clobber_conflict_p): New function.
10925 (moveup_expr): Use it.
88b97037 10926 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 10927
24d63016
RB
109282013-02-19 Richard Biener <rguenther@suse.de>
10929
10930 PR tree-optimization/56384
10931 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
10932 (vn_hash_type): Split out from ...
10933 (vn_hash_constant_with_type): ... here.
10934 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
10935 (vn_phi_eq): Compare types from vn_phi_s structure.
10936 (vn_phi_lookup): Populate vn_phi_s type.
10937 (vn_phi_insert): Likewise.
10938
a475fd3d
JJ
109392013-02-19 Jakub Jelinek <jakub@redhat.com>
10940
47cc28f5
JJ
10941 PR tree-optimization/56350
10942 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
10943 if haven't found reduction or nested cycle operand, rather than
10944 asserting we must find it.
10945
a475fd3d
JJ
10946 PR tree-optimization/56381
10947 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
10948 to fold_build3.
10949
109502013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
10951 Jakub Jelinek <jakub@redhat.com>
10952
10953 PR target/52555
10954 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
10955 (swap_optab_enable): Same.
10956 (init_all_optabs): Use argument instead of global.
88b97037 10957 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
10958 * expr.h (init_all_optabs): Add argument to prototype.
10959 (TREE_OPTIMIZATION_OPTABS): New.
10960 (save_optabs_if_changed): Protoize.
10961 * optabs.h: Declare this_fn_optabs.
10962 * optabs.c (save_optabs_if_changed): New.
10963 Declare this_fn_optabs.
10964 (init_optabs): Add argument to init_all_optabs() call.
10965 * function.c (invoke_set_current_function_hook): Handle per
10966 function optabs.
10967 * function.h (struct function): New field optabs.
10968 * config/mips/mips.c (mips_set_mips16_mode): Handle when
10969 optimization_current_node has changed.
10970 * target-globals.h (save_target_globals_default_opts): Protoize.
10971 * target-globals.c (save_target_globals_default_opts): New.
10972
3f587ca3
JDA
109732013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10974
10975 PR target/56347
10976 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
10977 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
10978
10979 PR target/56214
10980 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
10981 and HImode, require all displacements to be an integer multiple of
10982 their mode size.
ceaca33e
JDA
10983 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
10984 only allow QImode and HImode when reload is in progress and strict is
10985 true. Likewise for symbolic addresses. Use base14_operand to check
10986 displacements in REG+BASE addresses.
10987
fe0b4796
RB
109882013-02-18 Richard Biener <rguenther@suse.de>
10989
10990 PR tree-optimization/56366
10991 * tree-vect-loop.c (get_initial_def_for_induction): Properly
10992 handle sign-conversion of outer-loop initial induction value.
10993
6aaf596b
RB
109942013-02-18 Richard Biener <rguenther@suse.de>
10995
73db8ff1 10996 PR middle-end/56349
6aaf596b
RB
10997 * cfghooks.c (merge_blocks): If we merge a latch into another
10998 block adjust references to it.
10999 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11000 (verify_loop_structure): Verify that a recorded latch is in fact
11001 a latch.
11002
5e97dfb6
RB
110032013-02-18 Richard Biener <rguenther@suse.de>
11004
11005 PR tree-optimization/56321
11006 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11007 order SSA name release and virtual operand unlinking.
11008
825527e8
EI
110092013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11010
11011 * config/microblaze/microblaze.md (save_stack_block): Define.
11012 (restore_stack_block): Likewise.
11013
debd11d9
EI
110142013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11015
11016 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11017 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11018 * config/microblaze/microblaze.c (microblaze_option_override):
11019 Bail out early for PIC modes when target does not support PIC.
11020
8ec77be0
EI
110212013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11022
88b97037 11023 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
11024 Replace with a microblaze version.
11025 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 11026 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
11027 microblaze.
11028
b41288b3
JJ
110292013-02-16 Jakub Jelinek <jakub@redhat.com>
11030 Dodji Seketeli <dodji@redhat.com>
11031
11032 PR asan/56330
88b97037 11033 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
11034 (instrument_mem_region_access): Do not forget to always put
11035 instrumentation of the of 'base' and 'base + len' in a "if (len !=
11036 0) statement, even for cases where either 'base' or 'base + len'
11037 are not instrumented -- because they have been previously
11038 instrumented. Simplify the logic by putting all the statements
11039 instrument 'base + len' inside a sequence, and then insert that
11040 sequence right before the current insertion point. Then, to
11041 instrument 'base + len', just get an iterator on that statement.
11042 And do not forget to update the pointer to iterator the function
11043 received as argument.
11044
47918951
VM
110452013-02-15 Vladimir Makarov <vmakarov@redhat.com>
11046
11047 PR rtl-optimization/56348
11048 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11049
3fb7c699
SB
110502013-02-15 Steven Bosscher <steven@gcc.gnu.org>
11051
11052 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11053 (clean_graph_dump_file): Pass base to start_graph_dump.
11054
576fe41a
RH
110552013-02-14 Richard Henderson <rth@redhat.com>
11056
11057 PR target/55941
11058 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11059
bb3accfa
SB
110602013-02-14 Steven Bosscher <steven@gcc.gnu.org>
11061
11062 * collect2-aix.h: Define F_LOADONLY.
11063
03143140
RB
110642013-02-14 Richard Biener <rguenther@suse.de>
11065
11066 PR lto/50494
11067 * varasm.c (output_constant_def_1): Get the decl representing
11068 the constant as argument.
11069 (output_constant_def): Wrap output_constant_def_1.
11070 (make_decl_rtl): Use output_constant_def_1 with the decl
11071 representing the constant.
11072 (build_constant_desc): Optionally re-use a decl already
11073 representing the constant.
11074 (tree_output_constant_def): Adjust.
11075
8fb06726
DS
110762013-02-14 Dodji Seketeli <dodji@redhat.com>
11077
11078 Fix an asan crash
11079 * asan.c (instrument_builtin_call): Really put the length of the
11080 second source argument into src1_len.
11081
c4bfe8bf
JJ
110822013-02-13 Jakub Jelinek <jakub@redhat.com>
11083
11084 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11085 argument. If it is false, don't create edge from then_bb to
11086 fallthru_bb.
11087 (insert_if_then_before_iter): Pass true to it.
11088 (build_check_stmt): Pass false to it.
11089 (transform_statements): Flush hash table only on extended basic
11090 block boundaries, rather than at the beginning of every bb.
11091 Don't flush hash table on nonfreeing_call_p calls.
11092 * tree-flow.h (nonfreeing_call_p): New prototype.
11093 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11094
7afe2801
DM
110952013-02-13 David S. Miller <davem@davemloft.net>
11096
11097 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11098
70cc3288
VM
110992013-02-13 Vladimir Makarov <vmakarov@redhat.com>
11100
11101 PR target/56184
11102 * ira.c (max_regno_before_ira): Move from ...
11103 (ira): ... here.
11104 (fix_reg_equiv_init): Use max_regno_before_ira instead of
11105 vec_safe_length.
11106
6422242b
JJ
111072013-02-13 Jakub Jelinek <jakub@redhat.com>
11108
11109 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11110
976a81ee
RB
111112013-02-13 Richard Biener <rguenther@suse.de>
11112
11113 PR lto/56295
11114 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11115 globals in MEM_REFs.
11116
c1874a87
RB
111172013-02-13 Richard Biener <rguenther@suse.de>
11118
11119 * loop-init.c (loop_optimizer_init): Clear loop state when
11120 re-initializing preserved loops.
11121 * loop-unswitch.c (unswitch_single_loop): Return whether
11122 we unswitched the loop. Do not verify loop state here.
88b97037 11123 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 11124
b4ab7d34
KS
111252013-02-13 Kostya Serebryany <kcc@google.com>
11126
88b97037
UB
11127 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11128 on x86_64 linux.
b4ab7d34
KS
11129 * sanitizer.def: Rename __asan_init to __asan_init_v1.
11130
bdcbe80c
DS
111312013-02-12 Dodji Seketeli <dodji@redhat.com>
11132
11133 Avoid instrumenting duplicated memory access in the same basic block
11134 * Makefile.in (asan.o): Add new dependency on hash-table.h
11135 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11136 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11137 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11138 (free_mem_ref_resources, has_mem_ref_been_instrumented)
11139 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11140 (get_mem_ref_of_assignment): New functions.
11141 (get_mem_refs_of_builtin_call): Extract from
11142 instrument_builtin_call and tweak a little bit to make it fit with
11143 the new signature.
11144 (instrument_builtin_call): Use the new
11145 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
11146 of is_gimple_builtin_call.
11147 (instrument_derefs, instrument_mem_region_access): Insert the
11148 instrumented memory reference into the hash table.
11149 (maybe_instrument_assignment): Renamed instrument_assignment into
11150 this, and change it to advance the iterator when instrumentation
11151 actually happened and return true in that case. This makes it
11152 homogeneous with maybe_instrument_assignment, and thus give a
11153 chance to callers to be more 'regular'.
11154 (transform_statements): Clear the memory reference hash table
11155 whenever we enter a new BB, when we cross a function call, or when
11156 we are done transforming statements. Use
11157 maybe_instrument_assignment instead of instrumentation. No more
11158 need to special case maybe_instrument_assignment and advance the
11159 iterator after calling it; it's now handled just like
11160 maybe_instrument_call. Update comment.
11161
4861a1f7
RB
111622013-02-13 Richard Biener <rguenther@suse.de>
11163
11164 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11165 Fix loop discovery code.
11166
1c86bd80
VM
111672013-02-12 Vladimir Makarov <vmakarov@redhat.com>
11168
11169 PR inline-asm/56148
11170 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 11171 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
11172 the operand is not reloaded. Prefer to reload conflicting operand
11173 if earlyclobber and matching operands are the same.
11174
7cbda518
RB
111752013-02-12 Richard Biener <rguenther@suse.de>
11176
11177 PR lto/56297
11178 * lto-streamer-out.c (write_symbol): Do not output symbols
11179 for hard register variables.
11180
e68a4ef6
GJL
111812013-02-12 Georg-Johann Lay <avr@gjlay.de>
11182
11183 PR target/54222
11184 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11185 (umulsidi3_insn, mulsidi3_insn): New insns.
11186
a72d8780 111872013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
11188
11189 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11190 (struct tune_params): Add vec_costs field.
11191 * config/arm/arm.c (arm_builtin_vectorization_cost)
11192 (arm_add_stmt_cost): New functions.
11193 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11194 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11195 (arm_default_vec_cost): New struct of type cpu_vec_costs.
11196 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11197 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11198 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11199 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11200
43320568
RB
112012013-02-12 Richard Biener <rguenther@suse.de>
11202
11203 PR lto/56295
11204 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11205 decls again if possible.
11206
a011aa39
RB
112072013-02-12 Richard Biener <rguenther@suse.de>
11208
11209 PR middle-end/56288
11210 * tree-ssa.c (verify_ssa_name): Fix check, move
11211 SSA_NAME_IN_FREE_LIST check up.
11212
6da26889
JJ
112132013-02-12 Jakub Jelinek <jakub@redhat.com>
11214 Steven Bosscher <steven@gcc.gnu.org>
11215
11216 PR rtl-optimization/56151
11217 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11218 equal to op0 or op1, and last_insn pattern is CODE operation
11219 with MEM dest and one of the operands matches that MEM.
11220
f80e0faf
ST
112212013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11222
11223 * doc/extend.texi: Document Function Multiversioning and "default"
11224 parameter string to target attribute.
11225 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11226 target attribute parameter is "default".
11227 (ix86_compare_version_priority): Remove checks for target attribute.
11228 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11229 Remove check for target attribute equal to NULL. Add assert.
11230 (ix86_generate_version_dispatcher_body): Change error to sorry.
11231
6c59ffd1
IS
112322013-02-11 Iain Sandoe <iain@codesourcery.com>
11233 Jack Howarth <howarth@bromo.med.uc.edu>
11234 Patrick Marlier <patrick.marlier@gmail.com>
11235
11236 PR libitm/55693
11237 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11238 define ENDFILE_SPEC as TM_DESTRUCTOR.
11239 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11240
a72d8780 112412013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
11242 Jack Howarth <howarth@bromo.med.uc.edu>
11243 Jakub Jelinek <jakub@redhat.com>
11244
11245 PR sanitizer/55617
11246 * config/darwin.c (cdtor_record): Rename ctor_record.
11247 (sort_cdtor_records): Rename sort_ctor_records.
11248 (finalize_dtors): New routine to sort destructors by
11249 priority before use in assemble_integer.
11250 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11251
b63fe007
UB
112522013-02-11 Uros Bizjak <ubizjak@gmail.com>
11253
11254 PR rtl-optimization/56275
11255 * simplify-rtx.c (avoid_constant_pool_reference): Check that
11256 offset is non-negative and less than cmode size before
11257 calling simplify_subreg.
11258
8e89b5b5
RB
112592013-02-11 Richard Biener <rguenther@suse.de>
11260
11261 PR tree-optimization/56264
11262 * cfgloop.h (fix_loop_structure): Adjust prototype.
11263 * loop-init.c (fix_loop_structure): Return the number of
11264 newly discovered loops.
11265 * tree-cfgcleanup.c (repair_loop_structures): When new loops
11266 are discovered, do a full loop-closed SSA rewrite.
11267
b4a4b56d
RB
112682013-02-11 Richard Biener <rguenther@suse.de>
11269
11270 PR tree-optimization/56273
11271 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11272 first VRP run.
11273 (check_array_ref): Fix missing newline in dumps.
11274 (search_for_addr_array): Likewise.
11275
0c885229
DE
112762013-02-09 David Edelsohn <dje.gcc@gmail.com>
11277
11278 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11279
59ac9a55
JJ
112802013-02-09 Jakub Jelinek <jakub@redhat.com>
11281
11282 PR target/56256
11283 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11284
25bb0bb5
VM
112852013-02-08 Vladimir Makarov <vmakarov@redhat.com>
11286
11287 PR rtl-optimization/56246
0c885229 11288 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
11289 reload pseudo.
11290 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11291 constraints are satisfied.
11292
a698cc03
JL
112932013-02-08 Jeff Law <law@redhat.com>
11294
11295 PR debug/53948
11296 * emit-rtl.c (reg_is_parm_p): New function.
11297 * regs.h (reg_is_parm_p): New prototype.
11298 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11299 callee-clobbered registers.
11300
e1122ddd
MM
113012013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
11302
11303 PR target/56043
11304 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
11305 If there is no implicit builtin declaration, just return NULL.
11306
19c5f6e6
UB
113072013-02-08 Uros Bizjak <ubizjak@gmail.com>
11308
11309 * config/i386/sse.md (FMAMODEM): New mode iterator.
11310 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
11311 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
11312
2480f2ca 113132013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 11314
2480f2ca
UB
11315 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
11316 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
11317 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
11318
113192013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11320
11321 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
11322 (microblaze*-*-elf): Likewise.
11323 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
11324 LINK_SPEC.
11325 * config/microblaze/microblaze-c.c: Add builtin defines for
11326 _LITTLE_ENDIAN and _BIG_ENDIAN.
11327 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
11328 add to TARGET_DEFAULT flags.
76ef61fb 11329 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
11330 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
11331 * config/microblaze/microblaze.md: Update extendsidi2 and
11332 movdi_internal instructions to use low-order / high-order reg
11333 print_operands.
11334 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
11335 options and inversemask / mask of LITTLE_ENDIAN.
11336 * config/microblaze/t-microblaze: Expand multilib options to
11337 include mlittle-endian (le) and update exceptions patterns.
11338
600a5961
JJ
113392013-02-08 Jakub Jelinek <jakub@redhat.com>
11340
5df81313
JJ
11341 PR rtl-optimization/56195
11342 * lra-constraints.c (get_reload_reg): Don't reuse regs
11343 if they have smaller mode than requested, if they have
11344 wider mode than requested, try to return a SUBREG.
11345
600a5961
JJ
11346 PR tree-optimization/56250
11347 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
11348 if type is unsigned and code isn't MULT_EXPR.
11349
ff544649
GJL
113502013-02-08 Georg-Johann Lay <avr@gjlay.de>
11351
11352 PR tree-optimization/56064
11353 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
11354 bits according to mode.
11355 * fixed-value.h (fixed_from_double_int)
11356 (const_fixed_from_double_int): Adjust comments.
11357
e45cde98
RB
113582013-02-08 Richard Biener <rguenther@suse.de>
11359
11360 PR lto/56231
11361 * lto-streamer.h (struct data_in): Remove current_file, current_line
11362 and current_col members.
11363 * lto-streamer-out.c (lto_output_location): Stream changed bits
11364 en-block for efficiency.
11365 * lto-streamer-in.c (clear_line_info): Remove.
11366 (lto_input_location): Cache current file, line and column
11367 globally via local statics. Read changed bits en-block.
11368 (input_function): Do not call clear_line_info.
11369 (lto_read_body): Likewise.
11370 (lto_input_toplevel_asms): Likewise.
11371
c1ca73d8
MM
113722013-02-08 Michael Matz <matz@suse.de>
11373
11374 PR tree-optimization/52448
11375 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
11376 (nt_call_phase): New static.
11377 (add_or_mark_expr): Only mark accesses with newer phase than any
11378 call seen.
11379 (nonfreeing_call_p): New.
11380 (nt_init_block): Update nt_call_phase, mark blocks as visited.
11381 (nt_fini_block): Keep blocks marked as visited.
11382 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
11383
57548aa2
RB
113842013-02-08 Richard Biener <rguenther@suse.de>
11385
11386 * ira.c (ira): Free broken dominator information.
11387
8e10366f
UB
113882013-02-08 Uros Bizjak <ubizjak@gmail.com>
11389
11390 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
11391
f64fb0fa
MP
113922013-02-08 Marek Polacek <polacek@redhat.com>
11393
8e10366f 11394 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 11395
0375167b
RB
113962013-02-08 Richard Biener <rguenther@suse.de>
11397
11398 PR middle-end/56181
11399 * cfgloop.h (flow_loops_find): Adjust.
11400 (bb_loop_header_p): Declare.
11401 * cfgloop.c (bb_loop_header_p): New function split out from ...
11402 (flow_loops_find): ... here. Adjust function signature,
11403 support incremental loop structure update.
11404 (verify_loop_structure): Cleanup. Verify a loop is a loop.
11405 * cfgloopmanip.c (fix_loop_structure): Move ...
11406 * loop-init.c (fix_loop_structure): ... here.
11407 (apply_loop_flags): Split out from ...
11408 (loop_optimizer_init): ... here.
11409 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
11410 in incremental mode, only remove dead loops here.
11411
85d768f3
GJL
114122013-02-08 Georg-Johann Lay <avr@gjlay.de>
11413
11414 PR target/54222
11415 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
11416 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
11417 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
11418 (*round<mode>3.libgcc): New insns for fixed-modes.
11419 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
11420 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
11421 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
11422 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
11423 implementations. Define to __builtin_avr_absFX,
11424 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
11425 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
11426 __builtin_avr_countlsFX, respectively.
11427 * config/avr/avr-c.c (target.h): Include it.
11428 (enum avr_builtin_id): New enum.
11429 (avr_resolve_overloaded_builtin): New static function.
11430 (avr_register_target_pragmas): Use it to set
11431 targetm.resolve_overloaded_builtin.
11432 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
11433 tree nodes used by DEF_BUILTIN.
11434 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
11435 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
11436 <AVR_BUILTIN_xxBITS>: Same.
11437
661bc682
RB
114382013-02-08 Richard Biener <rguenther@suse.de>
11439
11440 * cfgloop.c (verify_loop_structure): Properly handle
11441 a loop exiting to another loop header.
11442 * ira-int.h (ira_loops): Remove.
11443 * ira.c (ira_loops): Remove.
11444 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
11445 (do_reload): Use loop_optimizer_finalize.
11446 * ira-build.c (create_loop_tree_nodes): Use get_loops and
11447 number_of_loops to access the loop tree.
11448 (more_one_region_p): Likewise.
11449 (finish_loop_tree_nodes): Likewise.
11450 (rebuild_regno_allocno_maps): Likewise.
11451 (mark_loops_for_removal): Likewise.
11452 (mark_all_loops_for_removal): Likewise.
11453 (remove_unnecessary_regions): Likewise.
11454 (ira_build): Likewise.
11455 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
11456
0d5049b2
RB
114572013-02-08 Richard Biener <rguenther@suse.de>
11458
11459 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
11460 * ipa-pure-const.c (analyze_function): Avoid calling
11461 mark_irreducible_loops twice.
8e10366f 11462 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 11463
499f32e8
DM
114642013-02-07 David S. Miller <davem@davemloft.net>
11465
11466 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
11467 on 'reg'.
11468 * var-tracking.c (vt_add_function_parameter): Test the presence of
11469 HAVE_window_save properly and do not remap argument registers when
11470 we have a leaf function.
11471
6edc3e32
UB
114722013-02-07 Uros Bizjak <ubizjak@gmail.com>
11473
11474 PR bootstrap/56227
11475 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
11476 instead of "ll".
11477 * config/i386/i386.c (ix86_print_operand): Ditto.
11478
5306401f
VM
114792013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11480
6edc3e32 11481 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 11482
027ece11
VM
114832013-02-07 Vladimir Makarov <vmakarov@redhat.com>
11484
11485 PR rtl-optimization/56225
11486 * lra-constraints.c (process_alt_operands): Check that reload hard
11487 reg can hold value for strict_low_part.
11488
f980dfdb
JJ
114892013-02-07 Jakub Jelinek <jakub@redhat.com>
11490
11491 PR debug/56154
11492 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
11493 dwarf2out_end_function.
11494 (in_first_function_p, maybe_at_text_label_p,
11495 first_loclabel_num_not_at_text_label): New variables.
11496 (dwarf2out_var_location): In the first function find out
6edc3e32 11497 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
11498 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
11499 functions.
11500
73dd3123
EB
115012013-02-07 Eric Botcazou <ebotcazou@adacore.com>
11502
11503 PR rtl-optimization/56178
11504 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
11505 SUBREG of a register. Tidy up related block of code.
11506 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
11507 note if the source is a register or a SUBREG of a register.
11508
e3936f47
JJ
115092013-02-07 Jakub Jelinek <jakub@redhat.com>
11510
11511 PR target/56228
11512 * config/rs6000/rs6000.md (ptrm): New mode attr.
11513 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
11514 call_value_indirect_aix<pttrsize>,
11515 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
11516 m in constraints.
11517
d96d674b
MH
115182013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
11519
11520 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
11521 if -bnortl. Convert to strcmp and strncmp.
11522
921f2dee
AM
115232013-02-07 Alan Modra <amodra@gmail.com>
11524
11525 PR target/54009
11526 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
11527 addresses won't wrap when offsetting.
11528 (rs6000_secondary_reload): Provide secondary reloads needed for
11529 wrapping LO_SUM addresses.
11530
d09c7dba
TS
115312013-02-06 Thomas Schwinge <thomas@codesourcery.com>
11532
11533 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
11534 MACH, just __MACH__.
11535
a44bbd48
RB
115362013-02-06 Richard Biener <rguenther@suse.de>
11537
11538 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
11539 instead of calling fix_loop_structure.
11540
6d840d99
JJ
115412013-02-06 Jakub Jelinek <jakub@redhat.com>
11542
11543 PR middle-end/56217
11544 * omp-low.c (use_pointer_for_field): Return false if
11545 lower_send_shared_vars doesn't generate any copy-out code.
11546
0f33baa9
TV
115472013-02-06 Tom de Vries <tom@codesourcery.com>
11548
11549 PR rtl-optimization/56131
11550 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
11551 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
11552 of the label is NULL. Add comment.
11553
11f1e3ab
JJ
115542013-02-05 Jakub Jelinek <jakub@redhat.com>
11555
31502f9f
JJ
11556 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
11557
a74db9bd
JJ
11558 PR sanitizer/55374
11559 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
11560 (STATIC_LIBTSAN_LIBS): Likewise.
11561 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
11562 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
11563 is defined, don't add anything else beyond that.
11564 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
11565 (LINK_COMMAND_SPEC): Use them.
11566
11f1e3ab
JJ
11567 PR tree-optimization/56205
11568 * tree-stdarg.c (check_all_va_list_escapes): Return true if
11569 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
11570 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
11571
14ac6aa2
RB
115722013-02-05 Richard Biener <rguenther@suse.de>
11573
11574 PR tree-optimization/53342
11575 PR tree-optimization/53185
11576 * tree-vectorizer.h (vect_check_strided_load): Remove.
11577 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
11578 not disallow peeling for vectorized strided loads.
11579 (vect_check_strided_load): Make static and simplify.
11580 (vect_analyze_data_refs): Adjust.
11581 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
11582 correctly when vectorizing strided loads.
11583
6f22445a
RB
115842013-02-05 Richard Biener <rguenther@suse.de>
11585
11586 * doc/install.texi: Refer to ISL, not PPL.
11587
39f9719e
JH
115882013-02-05 Jan Hubicka <jh@suse.cz>
11589
ec4224ac
JH
11590 PR tree-optimization/55789
11591 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
11592
115932013-02-05 Jan Hubicka <jh@suse.cz>
11594
11595 PR tree-optimization/55789
39f9719e
JH
11596 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
11597 the dead call anyway.
11598
956d3b33
EB
115992013-02-05 Eric Botcazou <ebotcazou@adacore.com>
11600
11601 PR sanitizer/55374
11602 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
11603
116042013-02-04 Alexander Potapenko <glider@google.com>
11605 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
11606 Jakub Jelinek <jakub@redhat.com>
11607
11608 PR sanitizer/55617
11609 * config/darwin.c (sort_ctor_records): Stabilized qsort
11610 on constructor priority by using original position.
11611 (finalize_ctors): New routine to sort constructors by
11612 priority before use in assemble_integer.
11613 (machopic_asm_out_constructor): Use finalize_ctors if needed.
11614
7ac3af38
JJ
116152013-02-04 Jakub Jelinek <jakub@redhat.com>
11616
11617 PR libstdc++/54314
11618 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
11619 about visibility on artificial decls.
11620 * config/sol2.c (solaris_assemble_visibility): Likewise.
11621
152689dc
KT
116222013-02-04 Kai Tietz <ktietz@redhat.com>
11623
11624 PR target/56186
11625 * config/i386/i386.c (function_value_ms_64): Add additional valtype
11626 argument and improve checking of return-argument types for 16-byte
11627 modes.
11628 (ix86_function_value_1): Add additional valtype argument on call
11629 of function_value_64.
11630 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
11631 handling infunction_value_64 function.
11632
2b5987b5
MGD
116332013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
11634
7ac3af38 11635 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 11636
14597080
RB
116372013-02-04 Richard Biener <rguenther@suse.de>
11638
11639 PR tree-optimization/56188
11640 * tree-ssa-structalias.c (label_visit): Consider case with
11641 initially non-empty points-to set.
11642 (perform_var_substitution): Dump node mapping and clean up.
11643
ed73881e
RG
116442013-02-04 Richard Guenther <rguenther@suse.de>
11645
11646 PR lto/56168
11647 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
11648 node prevail as last resort.
11649 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 11650 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 11651
139a0707
RB
116522013-02-04 Richard Biener <rguenther@suse.de>
11653
11654 PR tree-optimization/56113
11655 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
11656 Merge into ...
11657 (equiv_class_lookup_or_add): ... this.
11658 (label_visit): Adjust and fix error in previous patch.
11659 (perform_var_substitution): Adjust.
11660
50fe8924
OE
116612013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
11662
11663 * config/sh/divtab.c: Fix formatting and comments throughout the file.
11664 * config/sh/sh4-300.md: Likewise.
11665 * config/sh/sh4a.md: Likewise.
11666 * config/sh/constraints.md: Likewise.
11667 * config/sh/sh.md: Likewise.
11668 * config/sh/netbsd-elf.h: Likewise.
11669 * config/sh/predicates.md: Likewise.
11670 * config/sh/sh-protos.h: Likewise.
11671 * config/sh/ushmedia.h: Likewise.
11672 * config/sh/linux.h: Likewise.
11673 * config/sh/sh.c: Likewise.
11674 * config/sh/superh.h: Likewise.
11675 * config/sh/elf.h: Likewise.
11676 * config/sh/sh4.md: Likewise.
11677 * config/sh/sh.h: Likewise.
11678
1a04ac2b
JDA
116792013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11680
11681 * config/pa/constraints.md: Adjust unused letters. Change "T"
11682 constraint to match_test floating_point_store_memory_operand().
11683 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
11684 (base14_operand): New.
11685 (floating_point_store_memory_operand): New.
11686 (integer_store_memory_operand): Revise to use base14_operand and
11687 reg_plus_base_memory_operand.
11688 (move_dest_operand): Allow symbolic_memory_operands.
11689 (symbolic_memory_operand): Check for LO_SOM.
11690 (symbolic_operand): Change default case to break.
11691 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
11692 CONST_DOUBLE values to be reloaded by putting them into memory when
11693 the destination is a floating point register.
11694 (movdf): Remove code to handle CONST_DOUBLE.
11695 (movsf): Likewise.
11696 (reload_indf_r1): New.
11697 (reload_insf_r1): New.
11698 Consistently use "Q" and "T" constraints with integer and floating
11699 point move instructions, respectively.
11700 (movdi): Remove FAIL.
11701 Change predicate for source operand unamed DImode move from
11702 general_operand to move_src_operand.
11703 (umulsidi3): Change predicate for destination operand to
11704 register_operand.
11705 Likewise for similar unamed patterns.
11706 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
11707 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
11708 (hppa_legitimize_address): Simplify mask calculation.
11709 (pa_emit_move_sequence): Revised handling of secondary reloads from
11710 REG+D addresses for floating point loads and stores. Directly handle
11711 loading CONST0_RTX (mode) to a floating point register.
11712 (pa_secondary_reload): Handle reloading DF and SFmode constant values
11713 to floating point registers. Don't restrict secondary reloads to
11714 floating point registers to integer modes. Revise some comments and
11715 cleanup some code.
11716 (TARGET_LEGITIMATE_ADDRESS_P): Define.
11717 (pa_legitimate_address_p): New.
11718 (pa_legitimize_reload_address): New.
11719 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
11720 (STRICT_REG_OK_FOR_BASE_P): New.
11721 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
11722 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
11723
3bf65591
DE
117242013-02-03 David Edelsohn <dje.gcc@gmail.com>
11725 Andrew Dixie <andrewd@gentrack.com>
11726
11727 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
11728 flag set.
11729
c0a8a3e6
RS
117302013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
11731
11732 * expmed.c (extract_bit_field_1): Pass the full width of the
11733 structure to get_best_reg_extraction_insn.
11734
99113dff
DE
117352013-02-01 David Edelsohn <dje.gcc@gmail.com>
11736
11737 PR target/54601
11738 * configure.ac (use_cxa_atexit): Add AIX.
11739 * configure: Regenerate.
11740
11741 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
11742
ddd84654
JJ
117432013-02-01 Jakub Jelinek <jakub@redhat.com>
11744
11745 PR debug/54793
11746 * final.c (need_profile_function): New variable.
11747 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
11748 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
11749 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
11750 notes, targetm.asm_out.function_prologue doesn't emit anything,
11751 HAVE_prologue and profiler should be emitted before prologue,
11752 set need_profile_function instead of emitting it.
11753 (final_scan_insn): If need_profile_function, emit
11754 profile_function on the first NOTE_INSN_BASIC_BLOCK or
11755 NOTE_INSN_FUNCTION_BEG note.
11756
117572013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
11758
11759 * config/rs6000/rs6000.md (smulditi3): New.
11760 (umulditi3): New.
11761
ff2a9d88
RH
11762 * config/alpha/alpha.md (umulditi3): New.
11763
14d52b90
DE
117642013-02-01 David Edelsohn <dje.gcc@gmail.com>
11765
11766 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
11767 (ASM_OUTPUT_ALIGNED_LOCAL): New.
11768
8c7ca45c
RB
117692013-02-01 Richard Biener <rguenther@suse.de>
11770
11771 PR tree-optimization/56113
11772 * tree-ssa-structalias.c (label_visit): Reduce work for
11773 single-predecessor nodes.
11774
9f419393
EB
117752013-02-01 Eric Botcazou <ebotcazou@adacore.com>
11776
11777 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
11778 range isn't testing for zero.
11779
c5f4be84
SB
117802013-01-31 Steven Bosscher <steven@gcc.gnu.org>
11781
11782 PR middle-end/56113
11783 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
11784
dbdbd982
NC
117852013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
11786 Nick Clifton <nickc@redhat.com>
11787
11788 * config/v850/constraints.md (Q): Define as a memory constraint.
11789 * config/v850/predicates.md (label_ref_operand): New predicate.
11790 (e3v5_shift_operand): New predicate.
11791 (ior_operator): New predicate.
11792 * config/v850/t-v850: Add e3v5 multilib.
11793 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
11794 (v850_gen_movdi): Prototype.
11795 * config/v850/v850.c: Add support for e3v5 architecture.
11796 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
11797 TARGET_V850E_UP.
11798 (construct_save_jarl): Add e3v5 long JARL support.
11799 (v850_adjust_insn_length): New function. Adjust length of call
11800 insns when using e3v5 instructions.
11801 (v850_gen_movdi): New function: Generate instructions to move a
11802 DImode value.
11803 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
11804 (CPP_SPEC): Define __v850e3v5__ as appropriate.
11805 (TARGET_USE_FPU): Enable for e3v5.
11806 (CONST_OK_FOR_W): New macro.
11807 (ADJUST_INSN_LENGTH): Define.
11808 * config/v850/v850.md (UNSPEC_LOOP): Define.
11809 (attr cpu): Add v850e3v5.
11810 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
11811 (movdi): New pattern.
11812 (movdi_internal): New pattern.
11813 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
11814 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
11815 (cstoresf4): Likewise.
11816 (cstoredf4): Likewise.
11817 (insv): New pattern.
11818 (rotlso3_a): New pattern.
11819 (rotlsi3_b): New pattern
11820 (rotlsi3_v850e3v5): New pattern.
11821 (doloop_begin): New pattern.
11822 (fix_loop_counter): New pattern.
11823 (doloop_end): New pattern.
11824 (branch_normal): Add e3v5 long branch support.
11825 (branch_invert): Likewise.
11826 (branch_z_normal): Likewise.
11827 (branch_z_invert): Likewise.
11828 (branch_nz_normal): Likewise.
11829 (branch_nz_invert): Likewise.
11830 (call_internal_short): Add e3v5 register-indirect JARL support.
11831 (call_internal_long): Likewise.
11832 (call_value_internal_short): Likewise.
11833 (call_value_internal_long): Likewise.
11834 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
11835 (mloop): New option.
11836 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 11837 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 11838
73861a41
PK
118392013-01-31 Paul Koning <ni1d@arrl.net>
11840
11841 PR debug/55059
11842 PR debug/54508
11843 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
11844 children if parent is a class.
11845 (prune_unused_types_prune): Don't add DW_AT_declaration.
11846
e44978dc
RB
118472013-01-31 Richard Biener <rguenther@suse.de>
11848
11849 PR tree-optimization/56157
11850 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
11851 match up operand with SLP child.
11852
90b10dec
JM
118532013-01-31 Jason Merrill <jason@redhat.com>
11854
04d2dadd 11855 PR debug/54410
90b10dec
JM
11856 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
11857 parameters the first time.
11858 (gen_scheduled_generic_parms_dies): Check completeness here.
11859
6e616110
RB
118602013-01-31 Richard Biener <rguenther@suse.de>
11861
11862 PR middle-end/53073
11863 * common.opt (faggressive-loop-optimizations): New flag,
11864 enabled by default.
11865 * doc/invoke.texi (faggressive-loop-optimizations): Document.
11866 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
11867 infer_loop_bounds_from_undefined by it.
11868
636f59cf
RB
118692013-01-31 Richard Biener <rguenther@suse.de>
11870
11871 PR tree-optimization/56150
11872 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
11873 visit virtual operands.
11874 (find_uses_to_rename_bb): Likewise.
11875
118762013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
11877
11878 PR tree-optimization/56150
11879 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
11880 mixed store non-store stmts.
11881
32887460
JJ
118822013-01-30 Jakub Jelinek <jakub@redhat.com>
11883
e60e09a0
JJ
11884 PR sanitizer/55374
11885 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
11886 LIBASAN_EARLY_SPEC is defined.
11887 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
11888 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
11889 before %o.
11890 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
11891
32887460
JJ
11892 PR c++/55742
11893 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
11894 invalid args instead of ICEing on it.
11895 (ix86_valid_target_attribute_tree): Return error_mark_node if
11896 ix86_valid_target_attribute_inner_p failed.
11897 (ix86_valid_target_attribute_p): Return false only if
11898 ix86_valid_target_attribute_tree returned error_mark_node. Allow
11899 target("default") attribute.
11900 (sorted_attr_string): Change argument from const char * to tree,
11901 merge in all target attribute arguments rather than just one.
11902 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
11903 instead of free. Avoid using strcat.
11904 (ix86_mangle_function_version_assembler_name): Mangle
11905 target("default") as if no target attribute is present. Adjust
11906 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
11907 instead of xmalloc and XDELETEVEC instead of free.
11908 (ix86_function_versions): Don't return true if one of the decls
11909 doesn't have target attribute. If they don't and one of the decls
11910 is DECL_FUNCTION_VERSIONED, report an error. Adjust
11911 sorted_attr_string caller. Use XDELETEVEC instead of free.
11912 (ix86_supports_function_versions): Remove.
11913 (make_name): Fix up formatting.
11914 (make_dispatcher_decl): Remove resolver_name and its initialization.
11915 Avoid leaking memory.
11916 (is_function_default_version): Return true if there is
11917 target("default") attribute rather than no target attribute at all.
11918 (make_resolver_func): Avoid leaking memory.
11919 (ix86_generate_version_dispatcher_body): Likewise.
11920 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
11921 * target.def (supports_function_versions): Remove.
11922 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
11923 * doc/tm.texi: Regenerated.
11924
73cca0cc
VM
119252013-01-30 Vladimir Makarov <vmakarov@redhat.com>
11926
11927 PR rtl-optimization/56144
11928 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
11929 for values with side effects.
11930
11452e7b
RB
119312013-01-30 Richard Biener <rguenther@suse.de>
11932
11933 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
11934 (sparseset_pop): Likewise.
11935 * cfganal.c (compute_idf): Likewise. Increase work-stack size
11936 to be able to use quick_push in the worker loop.
11937
01cb1ef5
MP
119382013-01-30 Marek Polacek <polacek@redhat.com>
11939
11940 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
11941
e892936e
RB
119422013-01-30 Richard Biener <rguenther@suse.de>
11943
11944 PR lto/56147
6edc3e32 11945 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 11946
cc06c01d
GJL
119472013-01-30 Georg-Johann Lay <avr@gjlay.de>
11948
11949 PR tree-optimization/56064
11950 * fixed-value.c (fixed_from_double_int): New function.
11951 * fixed-value.h (fixed_from_double_int): New prototype.
11952 (const_fixed_from_double_int): New static inline function.
11953 * fold-const.c (native_interpret_fixed): New static function.
11954 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
11955 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
11956 (native_encode_fixed): New static function.
11957 (native_encode_expr) <FIXED_CST>: Use it.
11958 (native_interpret_int): Move double_int worker code to...
11959 * double-int.c (double_int::from_buffer): ...this new static method.
11960 * double-int.h (double_int::from_buffer): Prototype it.
11961
d394a308
RB
119622013-01-30 Richard Biener <rguenther@suse.de>
11963
11964 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
11965 New pointer-map and obstack.
11966 (init_alias_vars): Allocate pointer-map and obstack.
11967 (delete_points_to_sets): Free them.
11968 (find_what_var_points_to): Cache result.
11969 (find_what_p_points_to): Adjust for changed interface of
11970 find_what_var_points_to.
11971 (compute_points_to_sets): Likewise.
11972 (ipa_pta_execute): Likewise.
11973
20804d96
RO
119742013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11975
11976 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
11977 * configure: Regenerate.
11978 * config.in: Regenerate.
11979 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
11980 #nobits/#progbits if supported.
11981
a7ad88a2
OE
119822013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
11983
11984 PR target/56121
11985 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
11986 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
11987 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
11988
7af79f92
GY
119892013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11990
91bfca59
OE
11991 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
11992 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 11993
753bcf7b
GY
119942013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
11995
91bfca59
OE
11996 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
11997 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 11998
8cbc2ea8
GY
119992013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12000
91bfca59
OE
12001 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12002 declaration.
12003 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12004 * config/arm/cortex-a7.md: New bypasses using
12005 arm_mac_accumulator_is_result.
8cbc2ea8 12006
697a3325
GY
120072013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12008
91bfca59 12009 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 12010 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
12011 (cortex_a7_fpfmad): New reservation.
12012 (cortex_a7_fpmacs): Use ffmas and update required units.
12013 (cortex_a7_fpmuld): Update required units and latency.
12014 (cortex_a7_fpmacd): Likewise.
12015 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12016 (cortex_a7_neon). Likewise.
12017 (bypass) Update participating units.
697a3325 12018
29637783
GY
120192013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12020
91bfca59
OE
12021 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12022 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12023 from fmac to ffma.
12024 * config/arm/vfp11.md (vfp_farith): Use ffmas.
12025 (vfp_fmul): Use ffmad.
12026 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12027 (cortex_r4_fmacd): Use ffmad.
12028 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12029 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
12030 (cortex_a9_fmacd): Use ffmad.
12031 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12032 (cortex_a8_vfp_macd): Use ffmad.
12033 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12034 (cortex_a5_fpmacd): Use ffmad.
12035 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12036 (cortex_a15_vfp_macd): Use ffmad.
12037 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 12038
2ee8a2d5
JM
120392013-01-29 Jason Merrill <jason@redhat.com>
12040
12041 PR libstdc++/54314
12042 * varasm.c (default_assemble_visibility): Don't warn about
12043 visibility on artificial decls.
12044
78d087bc
RB
120452013-01-29 Richard Biener <rguenther@suse.de>
12046
12047 PR tree-optimization/56113
12048 * tree-ssa-structalias.c (equiv_class_lookup): Also return
12049 the bitmap leader.
12050 (label_visit): Free duplicate bitmaps and record the leader instead.
12051 (perform_var_substitution): Adjust.
12052
83ba4d6f
RB
120532013-01-29 Richard Biener <rguenther@suse.de>
12054
12055 PR tree-optimization/55270
12056 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12057 the CFG, schedule loops for fixup.
12058
66dfe13f
NC
120592013-01-29 Nick Clifton <nickc@redhat.com>
12060
12061 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12062 SP_REG.
12063
5a579c3b
LE
120642013-01-28 Leif Ekblad <leif@rdos.net>
12065
12066 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12067 * config/i386/i386.h (TARGET_RDOS): New macro.
12068 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12069 * config/i386/i386.c (ix86_option_override_internal): For 64bit
12070 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12071 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12072 DEFAULT_LARGE_SECTION_THRESHOLD.
12073 * config/i386/i386.md (R14_REG, R15_REG): New constants.
12074 * config/i386/rdos.h: New file.
12075 * config/i386/rdos64.h: New file.
12076
51e44392
BS
120772013-01-28 Bernd Schmidt <bernds@codesourcery.com>
12078
12079 PR other/54814
12080 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12081 TEST_HARD_REG_BIT.
12082
db1fb332
JJ
120832013-01-28 Jakub Jelinek <jakub@redhat.com>
12084
12085 PR rtl-optimization/56117
12086 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12087 call cselib_lookup_from_insn on the MEM before calling
12088 add_insn_mem_dependence.
12089
16917761
RB
120902013-01-28 Richard Biener <rguenther@suse.de>
12091
12092 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12093 to a stmt that didn't have one.
12094 (copy_phis_for_bb): Likewise for PHI arguments.
12095 (copy_debug_stmt): Likewise for debug stmts.
12096
b9fc0497
RB
120972013-01-28 Richard Biener <rguenther@suse.de>
12098
12099 PR tree-optimization/56034
6edc3e32 12100 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
12101 (partition_builtin_p): Adjust.
12102 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
12103 it is the last partition.
12104 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12105 up the vertex for the definition.
12106 (classify_partition): Classify whether a partition is a
12107 PKIND_REDUCTION, thus has uses outside of the loop.
12108 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12109 Merge all PKIND_REDUCTION partitions into the last partition.
12110 (tree_loop_distribution): Seed partitions from reductions as well.
12111
aa710d25
JJ
121122013-01-28 Jakub Jelinek <jakub@redhat.com>
12113
0bfbca58
JJ
12114 PR tree-optimization/56125
12115 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12116 pow(x,c) into sqrt(x) * powi(x, n/2) or
12117 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12118 optimizing for size.
12119 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12120 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12121 integer.
12122
aa710d25
JJ
12123 PR tree-optimization/56094
12124 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12125 to UNKNOWN_LOCATION while gimplifying expr.
12126
77dc5297
UB
121272013-01-27 Uros Bizjak <ubizjak@gmail.com>
12128
12129 PR target/56114
12130 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12131 operand 0 in movabs insn template for -masm=intel asm alternative.
12132 (*movabs<mode>_2): Ditto for operand 1.
12133
0bfbca58 121342013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
12135
12136 PR target/54663
12137 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12138 of microblaze-c.o
12139
0bfbca58 121402013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
12141
12142 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12143 tm_file.
12144
0bfbca58 121452013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
12146
12147 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12148 Undef to avoid warning.
12149
478f60f9
MH
121502013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12151
12152 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12153 * configure: Regenerate.
12154
d7fa6ee2
JJ
121552013-01-25 Jakub Jelinek <jakub@redhat.com>
12156
12157 PR tree-optimization/56098
12158 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12159 for stmts with volatile ops.
12160 (cond_store_replacement): Don't optimize if assign has volatile ops.
12161 (cond_if_else_store_replacement_1): Don't optimize if either
12162 then_assign or else_assign have volatile ops.
12163 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12164 volatile ops.
12165
f8fe87bd
GJL
121662013-01-25 Georg-Johann Lay <avr@gjlay.de>
12167
12168 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12169
28398d0d
GJL
121702013-01-25 Georg-Johann Lay <avr@gjlay.de>
12171
12172 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12173 missing ':' in asm example.
12174
b7d7d917
TB
121752013-01-25 Tejas Belagod <tejas.belagod@arm.com>
12176
12177 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12178 entries into lane and laneq entries.
77dc5297
UB
12179 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12180 Remove AdvSIMD scalar modes.
b7d7d917
TB
12181 (aarch64_sq<r>dmulh_laneq<mode>): New.
12182 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12183 modes.
12184 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12185 builtin implementations to relfect changes in RTL in aarch64-simd.md.
12186 * config/aarch64/iterators.md (VCOND): New.
12187 (VCONQ): New.
12188
556f9906
GJL
121892013-01-25 Georg-Johann Lay <avr@gjlay.de>
12190
12191 PR target/54222
12192 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12193 Add NULL LIBNAME argument to existing definitions.
12194 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12195 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12196 * config/avr/avr.c (DEF_BUILTIN): Same.
12197 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12198 (avr_expand_builtin): Expand to a vanilla call if a libgcc
12199 implementation is available (DECL_ASSEMBLER_NAME is set).
12200 (avr_fold_absfx): New static function.
12201 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12202 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12203 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12204 AVR_BUILTIN_ABSLLK.
12205 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12206 (abshk, absk, abslk, absllk): Provide as static inline functions.
12207
1f546bbb
MP
122082013-01-25 Marek Polacek <polacek@redhat.com>
12209
12210 PR tree-optimization/56035
12211 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12212
7e184bd7
UB
122132012-01-24 Uros Bizjak <ubizjak@gmail.com>
12214
12215 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12216 (*movtf_internal_rex64): Add (!o,C) alternative
12217 (*movxf_internal_rex64): Ditto.
12218 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12219
f5ba49ac
SM
122202013-01-24 Shenghou Ma <minux.ma@gmail.com>
12221
12222 * doc/invoke.texi: fix typo.
12223 * doc/objc.texi: fix typo.
12224
a6343728
RS
122252013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12226
12227 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12228 for the first two alternatives.
12229
cd030c07
DN
122302013-01-24 Diego Novillo <dnovillo@google.com>
12231
77dc5297 12232 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
12233 (ggc-zone.o): Remove.
12234 * configure.ac: Remove option --with-gc.
12235 * configure: Re-generate.
12236 * doc/install.texi: Remove documentation for --with-gc.
12237 * gengtype.c (write_enum_defn): Remove. Update all users.
12238 (write_Types_process_field): Remove generation of gt_e_* argument.
12239 (output_type_enum): Remove. Update all users.
12240 (write_enum_defn): Remove. Update all users.
12241 (enum alloc_zone): Remove. Update all users.
77dc5297 12242 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
12243 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12244 Update all callers.
12245 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 12246 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
12247 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12248 Update all users.
aaf1e810 12249 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
12250 (struct alloc_zone): Remove.
12251 (ggc_internal_alloc_zone_stat): Remove.
12252 (ggc_internal_cleared_alloc_zone_stat): Remove.
12253 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
12254 (ggc_pch_count_object): Remove last argument. Update all users.
12255 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
12256 (struct alloc_zone): Remove.
12257 * ggc-zone.c: Remove.
77dc5297 12258 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
12259 (struct alloc_zone): Remove.
12260 (ggc_alloc_typed_stat): Remove.
12261 (ggc_alloc_typed): Remove.
12262 (ggc_splay_alloc): Remove first argument.
12263 (rtl_zone): Remove. Update all users.
12264 (tree_zone): Remove. Update all users.
12265 (tree_id_zone): Remove. Update all users.
12266 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 12267 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 12268 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 12269 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 12270
a861ffa4
GJL
122712013-01-24 Georg-Johann Lay <avr@gjlay.de>
12272
12273 * config/avr/avr.c (avr_out_fract): Make register numbers that
12274 might be outside of source operand signed.
12275
593c0ddd
UB
122762013-01-24 Uros Bizjak <ubizjak@gmail.com>
12277
12278 * config/i386/constraints.md (Yf): New constraint.
12279 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12280 of f constraint to conditionaly disable x87 register preferences.
12281 (*movdf_internal): Ditto.
12282 (*movsf_internal): Ditto.
12283
e86c0101
SB
122842013-01-24 Steven Bosscher <steven@gcc.gnu.org>
12285
12286 PR inline-asm/55934
12287 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12288 that have operands with impossible constraints.
12289 Add a FIXME for a speed-up opportunity.
12290 * lra-constraints.c (process_alt_operands): Verify that a class
12291 selected from constraints on asms is valid for the operand mode.
12292 (curr_insn_transform): Remove incorrect comment.
12293
f6fee35f
DE
122942013-01-23 David Edelsohn <dje.gcc@gmail.com>
12295
12296 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12297 TOC operand is a valid symbol ref in the constant pool.
12298
122992013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 12300
aaf1e810 12301 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 12302
dc62d7d1
GJL
123032013-01-23 Georg-Johann Lay <avr@gjlay.de>
12304
12305 PR target/54222
12306 * config/avr/stdfix.h: New file.
12307 * t-avr (stdfix-gcc.h): New rule to build it.
12308 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
12309
2660d12d
KS
123102013-01-23 Kostya Serebryany <kcc@google.com>
12311
77dc5297
UB
12312 * config/darwin.h: remove dependency on
12313 CoreFoundation (asan on Mac OS).
2660d12d 12314
a70418fc
JJ
123152013-01-23 Jakub Jelinek <jakub@redhat.com>
12316
12317 PR target/49069
12318 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
12319 instead of cmpdi_operand for first comparison operand.
12320 Don't assert that comparison operands aren't both constants.
12321
47876a2a
JW
123222013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
12323
12324 * doc/install.texi (Downloading the Source): Update references to
12325 downloading separate components.
12326
123272013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
12328
12329 * doc/extend.texi (__int128): Improve grammar.
12330
47876a2a 123312013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
12332
12333 PR target/56028
12334 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
12335 alternative to (o,r).
12336 (*movdi_internal_rex64): Remove (!o,n) alternative.
12337 (DImode immediate->memory splitter): Remove.
12338 (DImode immediate->memory peephole2): Remove.
12339 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
12340 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
12341 alternative to (!o,*r).
12342 (*movtf_internal_sse): New pattern.
12343 (*movxf_internal_rex64): New pattern.
12344 (*movxf_internal): Disable for TARGET_64BIT.
12345 (*movdf_internal_rex64): Remove (!o,F) alternative.
12346
3a984f10
JJ
123472013-01-22 Jakub Jelinek <jakub@redhat.com>
12348
502498d5
JJ
12349 PR middle-end/56074
12350 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
12351 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
12352 * tree-vect-loop-manip.c (find_loop_location): Also ignore
12353 stmt locations where LOCATION_LOCUS of the stmt location is
12354 UNKNOWN_LOCATION or BUILTINS_LOCATION.
12355
3a984f10
JJ
12356 PR target/55686
12357 * config/i386/i386.md (UNSPEC_STOS): New.
12358 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
12359 *strsetqi_1): Add UNSPEC_STOS.
12360
fa817f7f
PC
123612013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
12362
12363 PR c++/56067
12364 * doc/invoke.texi: Remove left over -Wsynth example.
12365
8f498c1b
JJ
123662013-01-21 Jakub Jelinek <jakub@redhat.com>
12367
12368 PR tree-optimization/56051
12369 * fold-const.c (fold_binary_loc): Don't fold
12370 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
12371 a narrowing conversion, or widening conversion from signed
12372 to unsigned.
12373
47876a2a 123742013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
12375
12376 PR rtl-optimization/56023
12377 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
12378 dependent on debug instruction.
12379
5b9db1bc
MJ
123802013-01-21 Martin Jambor <mjambor@suse.cz>
12381
12382 PR middle-end/56022
12383 * function.c (allocate_struct_function): Call
12384 invoke_set_current_function_hook earlier.
12385
e8bb7d68
JJ
123862013-01-21 Jakub Jelinek <jakub@redhat.com>
12387
12388 * reload1.c (init_reload): Only initialize reload_obstack
12389 during the first call.
12390
616a4e32
MP
123912013-01-21 Marek Polacek <polacek@redhat.com>
12392
12393 * cfgloop.c (verify_loop_structure): Fix up grammar.
12394
4401981b
YHH
123952013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
12396
12397 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
12398 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
12399
8e87740b
RR
124002013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12401
12402 PR target/56058
12403 * config/arm/marvell-pj4.md: Update copyright year.
12404 Fix up use of alu to alu_reg and simple_alu_imm.
12405
47876a2a 124062013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
12407
12408 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
12409
89d56d79
VM
124102013-01-20 Vladimir Makarov <vmakarov@redhat.com>
12411
12412 PR target/55433
12413 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 12414 insn for secondary memory move when memory mode should be different.
89d56d79 12415
fe603553
JDA
124162013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12417
12418 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
12419 atomic_storedi_1): New patterns.
12420
01284895
VK
124212013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12422
12423 btver2 pipeline descriptions.
12424 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
12425 descriptions.
12426 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 12427 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
12428 type attributes.
12429 * config/i386/btver2.md: New file describing btver2 pipelines.
12430
5630e3e1
JL
124312013-01-19 Andrew Pinski <apinski@cavium.com>
12432
12433 PR tree-optimization/52631
12434 * tree-ssa-sccvn (visit_use): Before looking up the original
12435 statement, try looking up the simplified expression.
12436
650ae806
AG
124372013-01-19 Anthony Green <green@moxielogic.com>
12438
12439 * config/moxie/moxie.c (moxie_expand_prologue): Set
12440 current_function_static_stack_size.
12441
e300ec2d
JJ
124422013-01-18 Jakub Jelinek <jakub@redhat.com>
12443
12444 PR tree-optimization/56029
12445 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
12446 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
12447
a3d7af04
SS
124482013-01-18 Sharad Singhai <singhai@google.com>
12449
12450 PR tree-optimization/55995
12451 * dumpfile.c (dump_loc): Print location only if available.
12452 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
12453
66aa7879
VM
124542013-01-18 Vladimir Makarov <vmakarov@redhat.com>
12455
12456 PR target/55433
12457 * lra-constraints.c (curr_insn_transform): Reuse original insn for
12458 secondary memory move.
12459 (inherit_reload_reg): Use rclass instead of cl for
12460 check_secondary_memory_needed_p.
12461
3f0fee7b
JJ
124622013-01-18 Jakub Jelinek <jakub@redhat.com>
12463
12464 PR middle-end/56015
12465 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 12466 the case where writing real complex part of target modifies op1.
3f0fee7b 12467
70c67693
JG
124682013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
12469
12470 * config/aarch64/aarch64-simd.md
12471 (aarch64_vcond_internal<mode>): Handle unordered cases.
12472 * config/aarch64/iterators.md (v_cmp_result): New.
12473
df8de9b3
YHH
124742013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
12475 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12476
12477 * config/arm/marvell-pj4.md: New file.
12478 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
12479 * config/arm/arm.md (generic_sched): Add marvell_pj4.
12480 (generic_vfp): Likewise.
12481 * config/arm/arm-cores.def: Add marvell-pj4.
12482 * config/arm/arm-tune.md: Regenerate.
12483 * config/arm/arm-tables.opt: Regenerate.
12484 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
12485 * doc/invoke.texi: Document marvell-pj4.
12486
be30c356
TB
124872013-01-18 Tejas Belagod <tejas.belagod@arm.com>
12488
12489 * config/aarch64/arm_neon.h: Map scalar types to standard types.
12490
0bfbca58 124912013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
12492
12493 PR debug/54114
12494 PR debug/54402
12495 PR debug/49888
12496 * var-tracking.c (negative_power_of_two_p): New.
12497 (global_get_addr_cache, local_get_addr_cache): New.
12498 (get_addr_from_global_cache, get_addr_from_local_cache): New.
12499 (vt_canonicalize_addr): Rewrite using the above. Adjust the
12500 heading comment.
12501 (vt_stack_offset_p): Remove.
12502 (vt_canon_true_dep): Always canonicalize loc's address.
12503 (clobber_overlapping_mems): Make sure we have a MEM.
12504 (local_get_addr_clear_given_value): New.
12505 (val_reset): Clear local cached entries.
12506 (compute_bb_dataflow): Create and release the local cache.
12507 Disable duplicate MEMs clobbering.
12508 (emit_notes_in_bb): Clobber MEMs likewise.
12509 (vt_emit_notes): Create and release the local cache.
12510 (vt_initialize, vt_finalize): Create and release the global
12511 cache, respectively.
1f6bc337 12512 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 12513
0bfbca58 125142013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
12515
12516 PR libmudflap/53359
12517 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
12518 not found in the symtab.
12519
0bfbca58 125202013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 12521
c350ba53 12522 PR debug/56006
3aa03517
AO
12523 PR rtl-optimization/55547
12524 PR rtl-optimization/53827
12525 PR debug/53671
12526 PR debug/49888
12527 * alias.c (offset_overlap_p): New, factored out of...
12528 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
12529 the conservative special case for symbolic constants. Don't
12530 adjust zero sizes on alignment.
12531
c664546f
JL
125322013-01-18 Bernd Schmidt <bernds@codesourcery.com>
12533
12534 PR rtl-optimization/52573
12535 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
12536 REG_UNUSED for the same register.
12537
1bd3f750
MP
125382013-01-17 Richard Biener <rguenther@suse.de>
12539 Marek Polacek <polacek@redhat.com>
12540
12541 PR rtl-optimization/55833
12542 * loop-unswitch.c (unswitch_loops): Move loop verification...
12543 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
12544 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
12545 Set it to true when we're removing a loop from hierarchy tree in
12546 an irreducible region.
12547 (fix_bb_placements): Adjust caller.
12548 (fix_loop_placements): Likewise.
12549
e52a8b71
GJL
125502013-01-17 Georg-Johann Lay <avr@gjlay.de>
12551
12552 * config/avr/builtins.def (DEF_BUILTIN): Factor out
12553 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
12554 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
12555 Remove ID. Adjust comments.
12556 * config/avr/avr-c.c (avr_builtin_name): Remove.
12557 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
12558 * config/avr/avr.c (avr_tolower): New static function.
12559 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
12560 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
12561 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
12562 default expansion.
12563
8386a7ea
JH
125642013-01-17 Jan Hubicka <jh@suse.cz>
12565
610fb637 12566 PR tree-optimization/55273
8386a7ea
JH
12567 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
12568
47876a2a 125692013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
12570
12571 PR target/55981
12572 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
12573 store through atomic_store<mode>_1.
12574 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
12575
8222c37e
MJ
125762013-01-17 Martin Jambor <mjambor@suse.cz>
12577
12578 PR tree-optimizations/55264
12579 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
12580 for virtual methods.
12581 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
12582 virtual methods before inlining is over.
12583 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
12584 virtual functions.
12585 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
12586 non-virtual.
12587
79f01c76
VM
125882013-01-16 Vladimir Makarov <vmakarov@redhat.com>
12589
12590 PR rtl-optimization/56005
12591 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
12592 pending reads for prefetch.
12593
d0b6bb1b
IB
125942013-01-16 Ian Bolton <ian.bolton@arm.com>
12595
aaf1e810 12596 * config/aarch64/aarch64.md
d0b6bb1b
IB
12597 (*cstoresi_neg_uxtw): New pattern.
12598 (*cmovsi_insn_uxtw): New pattern.
12599 (*<optab>si3_uxtw): New pattern.
12600 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
12601 (*<optab>si3_insn_uxtw): New pattern.
12602 (*bswapsi2_uxtw): New pattern.
12603
cb9cf03b
RB
126042013-01-16 Richard Biener <rguenther@suse.de>
12605
12606 * tree-inline.c (tree_function_versioning): Remove set but
12607 never used variable.
12608
2cfc56b9
RB
126092013-01-16 Richard Biener <rguenther@suse.de>
12610
12611 PR tree-optimization/55964
12612 * tree-flow.h (rename_variables_in_loop): Remove.
12613 (rename_variables_in_bb): Likewise.
12614 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
12615 (copy_loop_before): Adjust and delete update-ssa status.
12616 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 12617 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
12618 (rename_variables_in_loop): Remove.
12619 (slpeel_update_phis_for_duplicate_loop): Likewise.
12620 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
12621 use available cfg machinery instead of duplicating it.
12622 Update PHI nodes and perform poor-mans SSA update here.
12623 (slpeel_tree_peel_loop_to_edge): Adjust.
12624
c25a0c60
RB
126252013-01-16 Richard Biener <rguenther@suse.de>
12626
12627 PR tree-optimization/54767
12628 PR tree-optimization/53465
12629 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
12630 (vrp_visit_phi_node): For PHI arguments coming via backedges
12631 drop all symbolical range information.
12632 (execute_vrp): Compute backedges.
12633
04b535af
RB
126342013-01-16 Richard Biener <rguenther@suse.de>
12635
12636 * doc/install.texi: Update CLooG and ISL requirements to
12637 0.18.0 and 0.11.1.
12638
8b0a1e0b
CB
126392013-01-16 Christian Bruel <christian.bruel@st.com>
12640
12641 PR target/55301
12642 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
12643 (broken_move): Handle UNSPECV_SP_SWITCH_B.
12644 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
12645
126462013-01-16 DJ Delorie <dj@redhat.com>
12647
12648 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
12649 (UNSPECV_SP_SWITCH_E): New.
12650 (sp_switch_1): Change to an unspec.
12651 (sp_switch_2): Change to an unspec. Don't use post-inc when we
12652 replace $r15.
12653
126542013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
12655
12656 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
12657 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
12658 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
12659 (expand_mem_thread_fence): Ditto.
12660 (expand_mem_signal_fence): Ditto.
12661 (expand_atomic_load): Ditto.
12662 (expand_atomic_store): Ditto.
12663
0bfbca58 126642013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
12665
12666 PR rtl-optimization/55547
12667 PR rtl-optimization/53827
12668 PR debug/53671
12669 PR debug/49888
12670 * alias.c (memrefs_conflict_p): Set sizes to negative after
12671 AND adjustments.
12672
305e3ac1
JJ
126732013-01-15 Jakub Jelinek <jakub@redhat.com>
12674
12675 PR target/55940
12676 * function.c (thread_prologue_and_epilogue_insns): Always
12677 add crtl->drap_reg to set_up_by_prologue.set, even if
12678 stack_realign_drap is false.
12679
f78ac4f2
JBG
126802013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12681
12682 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
12683 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
12684 *call): Fix indention.
12685
a78a8cc4
TV
126862013-01-15 Tom de Vries <tom@codesourcery.com>
12687
12688 PR target/55876
12689 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
12690 Update comment.
12691
0e80383f
VM
126922013-01-15 Vladimir Makarov <vmakarov@redhat.com>
12693
305e3ac1 12694 PR rtl-optimization/55153
0e80383f
VM
12695 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
12696
207b5956
MJ
126972013-01-15 Martin Jambor <mjambor@suse.cz>
12698
12699 PR tree-optimization/55920
12700 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
12701 accesses as grp_to_be_debug_replaced.
12702
a7818b54
JJ
127032013-01-15 Jakub Jelinek <jakub@redhat.com>
12704
12705 PR tree-optimization/55920
12706 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
12707 there is non-useless type conversion needed from debug rhs to lhs,
12708 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
12709
b0fe107e
JM
127102013-01-15 Joseph Myers <joseph@codesourcery.com>
12711 Mikael Pettersson <mikpe@it.uu.se>
12712
12713 PR target/43961
12714 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
12715 Thumb.
12716 (ASM_OUTPUT_CASE_LABEL): Remove.
12717 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
12718 * final.c (shorten_branches): Update alignment of labels before
12719 jump tables if CASE_VECTOR_SHORTEN_MODE.
12720
34ab62ee
RB
127212013-01-15 Richard Biener <rguenther@suse.de>
12722
12723 PR bootstrap/55961
12724 * system.h: Do not include gmp.h for building host tools.
12725
783a3a05
RB
127262013-01-15 Richard Biener <rguenther@suse.de>
12727
12728 PR middle-end/55882
12729 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
12730 account for bitpos when computing alignment.
12731
3a579e09
VY
127322013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
12733
12734 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
12735 (ix86_target_macros_internal): Likewise.
12736
12737 * config/i386/i386.c (m_CORE2I7): Removed.
12738 (m_CORE_HASWELL): New macro.
12739 (m_CORE_ALL): Likewise.
12740 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
12741 (initial_ix86_arch_features): Likewise.
12742 (processor_target_table): Initializations for Core avx2.
12743 (cpu_names): New names "core-avx2".
12744 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
12745 PROCESSOR_CORE_HASWELL.
12746 (ix86_issue_rate): New case.
12747 (ia32_multipass_dfa_lookahead): Likewise.
12748 (ix86_sched_init_global): Likewise.
12749
12750 * config/i386/i386.h (TARGET_HASWELL): New macro.
12751 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
12752 (processor_type): New PROCESSOR_HASWELL.
12753
955f5a07
JJ
127542013-01-15 Jakub Jelinek <jakub@redhat.com>
12755
ff784829
JJ
12756 PR tree-optimization/55955
12757 * tree-vect-loop.c (vectorizable_reduction): Give up early on
12758 *SHIFT_EXPR and *ROTATE_EXPR codes.
12759
955f5a07
JJ
12760 PR tree-optimization/48766
12761 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
12762 -ftrapv disable -fwrapv.
12763
aeb8b4e9
GJL
127642013-01-14 Georg-Johann Lay <avr@gjlay.de>
12765
12766 PR target/55974
12767 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
12768 etc. to 1 and not to __flash.
12769 Use LL suffix for __INT24_MAX__ with -mint8.
12770 Use ULL suffix for __UINT24_MAX__ with -mint8.
12771
1c494c6a
GJL
127722013-01-14 Georg-Johann Lay <avr@gjlay.de>
12773
12774 * config/avr/avr-arch.h
12775 (struct base_arch_s): Use typedef avr_arch_t instead.
12776 (struct arch_info_s): Use typedef avr_arch_info_t instead.
12777 (struct mcu_type_s): Use typedef avr_mcu_t instead.
12778 * config/avr/avr.c: Same.
12779 * config/avr/avr-devices.c: Same.
12780 * config/avr/driver-avr.c: Same.
12781 * config/avr/gen-avr-mmcu-texi.c: Same.
12782 * config/avr/avr-mcus.def: Adjust comment.
12783
a50344cb
TB
127842013-01-14 Tejas Belagod <tejas.belagod@arm.com>
12785
88e784e6
UB
12786 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
12787 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 12788
47876a2a 127892013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
12790 Andi Kleen <ak@linux.intel.com>
12791
12792 PR target/55948
12793 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
12794 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
12795 memmodel flag.
12796
00892272
GJL
127972013-01-14 Georg-Johann Lay <avr@gjlay.de>
12798
12799 * config/avr/avr-stdint.h: Remove trailing blanks.
12800 * config/avr/avr-log.h: Same.
12801 * config/avr/avr-arch.h: Same.
12802 * config/avr/avr-devices.c: Same.
12803 * config/avr/avr-dimode.md: Same.
12804 * config/avr/predicates.md: Same.
12805 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 12806
00892272
GJL
12807 * config/avr/avr-protos.h: Same. And:
12808 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
12809 (init_cumulative_args): Rename to avr_init_cumulative_args.
12810 (expand_prologue): Rename to avr_expand_prologue.
12811 (expand_epilogue): Rename to avr_expand_epilogue.
12812 (adjust_insn_length): Rename to avr_adjust_insn_length.
12813 (notice_update_cc): Rename to avr_notice_update_cc.
12814 (final_prescan_insn): Rename to avr_final_prescan_insn.
12815 * config/avr/avr.c: Same.
12816 * config/avr/avr.h: Same.
12817 * config/avr/avr.md: Remove trailing blanks.
12818 (prologue): Use avr_expand_prologue.
12819 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
12820
7bb01996
RB
128212013-01-14 Richard Biener <rguenther@suse.de>
12822
12823 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
12824 verify_location, collect_subblocks): New functions.
12825 (verify_gimple_in_cfg): Verify that locations only reference
12826 BLOCKs in the functions BLOCK tree.
12827
2724573f
RB
128282013-01-14 Richard Biener <rguenther@suse.de>
12829
12830 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
12831 PHI argument.
12832 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
12833 unshare reference.
12834 (insert_out_of_ssa_copy_on_edge): Likewise.
12835 (rewrite_close_phi_out_of_ssa): Likewise.
12836 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
12837 debug expressions.
12838 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
12839 propagated constants.
12840 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
12841 can not be shared.
12842
9a0bbab6
GJL
128432013-01-14 Georg-Johann Lay <avr@gjlay.de>
12844
12845 * config/avr/avr-modes.def: Add GPL copyright notice.
12846
45805f17
UB
128472013-01-13 Uros Bizjak <ubizjak@gmail.com>
12848
12849 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
12850 MEMMODEL_MASK to determine memory model.
12851 (atomic_store<mode>): Ditto from operands[2].
12852 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
12853
9d60be38
JJ
128542013-01-13 Jakub Jelinek <jakub@redhat.com>
12855
12856 PR fortran/55935
45805f17 12857 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
12858 (fold_gimple_assign): Don't call unshare_expr here.
12859 (fold_ctor_reference): Call unshare_expr.
12860
e7f49d92
TG
128612013-01-13 Terry Guo <terry.guo@arm.com>
12862
aaf1e810
EB
12863 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
12864 * doc/fragments.texi: Document MULTILIB_REUSE.
12865 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 12866 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 12867 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
12868 (tmpmultilib4): Ditto.
12869 (multilib_reuse): New multilib argument.
12870
fbd03a27
RS
128712013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
12872
12873 * Makefile.in: Update copyright.
12874
b3681f13
TV
128752013-01-12 Tom de Vries <tom@codesourcery.com>
12876
12877 PR middle-end/55890
12878 * calls.c (expand_call): Check if arg_nr is valid.
12879
3f287e4b
MM
128802013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
12881
12882 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
12883 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
12884 documentation. Add missing '__' in front of
12885 __builtin_ia32_packssdw256.
3f287e4b 12886
1abcd5eb
AK
128872013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12888
12889 PR target/55719
12890 * config/s390/s390.c (s390_preferred_reload_class): Do not return
12891 NO_REGS for larl operands.
12892 (s390_reload_larl_operand): Use s390_load_address instead of
12893 emit_move_insn.
12894
980d0812
RB
128952013-01-11 Richard Biener <rguenther@suse.de>
12896
12897 * tree-cfg.c (verify_node_sharing_1): Split out from ...
12898 (verify_node_sharing): ... here.
12899 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
12900
7cb9fd07
EB
129012013-01-11 Eric Botcazou <ebotcazou@adacore.com>
12902
12903 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
12904 Substitute TREECHECKING.
12905 * configure: Regenerate.
12906 * Makefile.in (TREECHECKING): New.
12907
47876a2a 129082013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
12909
12910 PR tree-optimization/44061
12911 * tree-vrp.c (extract_range_basic): Compute zero as
12912 value-range for __builtin_constant_p of function parameters.
12913
d1e082c2
RS
129142013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
12915
45805f17 12916 Update copyright years.
d1e082c2 12917
f85021b0
VM
129182013-01-10 Vladimir Makarov <vmakarov@redhat.com>
12919
9d60be38 12920 PR rtl-optimization/55672
0160442c
VM
12921 * lra-eliminations.c (mark_not_eliminable): Permit addition with
12922 const to be eliminable.
f85021b0 12923
7a8b1ec4
DE
129242013-01-10 David Edelsohn <dje.gcc@gmail.com>
12925
12926 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
12927 * configure: Regenerate.
12928
ad2e5b71
RB
129292013-01-10 Richard Biener <rguenther@suse.de>
12930
ddf9322d 12931 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 12932
ffc5b2bb
RB
129332013-01-10 Richard Biener <rguenther@suse.de>
12934
12935 PR bootstrap/55792
12936 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
12937 locations for virtual PHI arguments.
12938 (rewrite_update_phi_arguments): Likewise.
12939
e1f674e4
JS
129402013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
12941
12942 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
12943 on to assembler.
12944
a57fc743
JJ
129452013-01-10 Jakub Jelinek <jakub@redhat.com>
12946
12947 PR tree-optimization/55921
12948 * tree-complex.c (expand_complex_asm): New function.
12949 (expand_complex_operations_1): Call it for GIMPLE_ASM.
12950
0ff4390d
AK
129512013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12952
12953 PR target/55718
12954 * config/s390/s390.c (s390_symref_operand_p)
12955 (s390_loadrelative_operand_p): Merge the two functions.
12956 (s390_check_qrst_address, print_operand_address): Add parameters
12957 to s390_loadrelative_operand_p invokation.
12958 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
12959 (s390_reload_larl_operand, s390_secondary_reload): Use
12960 s390_loadrelative_operand_p instead of s390_symref_operand_p.
12961 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
12962
6f557e0e
MS
129632013-01-09 Mike Stump <mikestump@comcast.net>
12964
12965 * dse.c (record_store): Remove unnecessary assert.
12966
7770c9e9
JH
129672013-01-09 Jan Hubicka <jh@suse.cz>
12968
12969 PR tree-optimization/55569
12970 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
12971 * cfgloop.h (scale_loop_profile): Likewise.
12972
a19b1432
JH
129732013-01-09 Jan Hubicka <jh@suse.cz>
12974
12975 PR lto/45375
ddf9322d
UB
12976 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
12977 functions.
a19b1432
JH
12978 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
12979
9a002da8
RS
129802013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
12981
12982 PR middle-end/55114
12983 * expr.h (maybe_emit_group_store): Declare.
12984 * expr.c (maybe_emit_group_store): New function.
12985 * builtins.c (expand_builtin_int_roundingfn): Call it.
12986 (expand_builtin_int_roundingfn_2): Likewise.
12987
511dcace
VM
129882013-01-09 Vladimir Makarov <vmakarov@redhat.com>
12989
e1f2b729 12990 PR rtl-optimization/55829
511dcace
VM
12991 * lra-constraints.c (match_reload): Add code for absent output.
12992 (curr_insn_transform): Add code for reloads of matched inputs
12993 without output.
12994
7b0fe4f4
UB
129952013-01-09 Uros Bizjak <ubizjak@gmail.com>
12996
12997 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
12998 attribute of movddup insn to DF.
12999 (*vec_interleave_lowv2df): Ditto.
13000 (vec_dupv2df): Ditto.
13001
870ca331
JH
130022013-01-09 Jan Hubicka <jh@suse.cz>
13003
13004 PR tree-optimiation/55875
13005 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13006 EVERY_ITERATION parameter.
7b0fe4f4 13007 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
13008 (idx_infer_loop_bounds): Similarly here.
13009 (n_of_executions_at_most): Simplify
13010 to only test for cases where statement is dominated by the
7b0fe4f4 13011 particular bound; handle correctly the "postdominance" test.
870ca331
JH
13012 (scev_probably_wraps_p): Use max loop iterations info
13013 as a global bound first.
13014
6f575fe4 130152013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
13016 Nick Clifton <nickc@redhat.com>
13017
13018 * config/v850/v850.md (cbranchsf4): New pattern.
13019 (cstoresf4): New pattern.
13020 (cbranchdf4): New pattern.
13021 (cstoredf4): New pattern.
13022 (movsicc): Disallow floating point comparisons.
13023 (cmpsf_le_insn): Fix order of operators.
13024 (cmpsf_lt_insn): Likewise.
13025 (cmpsf_eq_insn): Likewise.
13026 (cmpdf_le_insn): Likewise.
13027 (cmpdf_lt_insn): Likewise.
13028 (cmpdf_eq_insn): Likewise.
13029 (cmpsf_ge_insn): Use LE comparison.
13030 (cmpdf_ge_insn): Likewise.
13031 (cmpsf_gt_insn): Use LT comparison.
13032 (cmpdf_gt_insn): Likewise.
13033 (cmpsf_ne_insn): Delete pattern.
13034 (cmpdf_ne_insn): Delete pattern.
13035 * config/v850/v850.c (v850_gen_float_compare): Use
13036 gen_cmpdf_eq_insn for NE comparison.
13037 (v850_float_z_comparison_operator)
13038 (v850_float_nz_comparison_operator): Move from here ...
13039 * config/v850/predicates.md: ... to here. Move GT and GE
13040 comparisons into v850_float_z_comparison_operator.
13041 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13042 Delete prototype.
13043 (v850_float_nz_comparison_operator): Likewise.
13044
f0d54148
JDA
130452013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13046
13047 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13048 with calls to gen_insvsi/gen_insvdi.
13049
8f01beca
VK
130502013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13051
13052 * config/i386/i386.c (initial_ix86_tune_features): Set up
13053 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13054
2aa579ad
JJ
130552013-01-09 Steven Bosscher <steven@gcc.gnu.org>
13056 Jakub Jelinek <jakub@redhat.com>
13057
13058 PR tree-optimization/48189
13059 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13060 If nitercst is 0, don't predict the exit edge.
13061
6edc3e32 130622013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
13063
13064 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13065 in asm_fprintf with reg_names.
13066 (aarch64_print_operand_address): Likewise.
13067 (aarch64_return_addr): Likewise.
13068 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13069
f6f94d94
JDA
130702013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13071
13072 * config/pa/pa.h (VAL_U6_BITS_P): Define.
13073 (INT_U6_BITS): Likewise.
13074 * config/pa/predicates.md (uint6_operand): New predicate.
13075 (shift5_operand, shift6_operand): Likewise.
13076 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13077 arith32_operand.
13078 (lshrdi3): Use shift6_operand.
13079 (shrpsi4, shrpdi4): New insn patterns.
13080 (extzv): Delete expander.
13081 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
13082 predicates in unamed zero extract patterns. Tighten common constraint.
13083 (extv): Delete expander.
13084 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
13085 predicates in unamed sign extract patterns. Tighten common constraint.
13086 (insv): Delete expander.
13087 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
13088 predicates in unamed insert patterns. Tighten common constraint.
13089 Change uint32_operand predicate to uint6_operand predicate in unamed
13090 DImode pattern to insert constant values of type 1...1xxxx.
13091
36b72910
JH
130922013-01-04 Jan Hubicka <jh@suse.cz>
13093
13094 PR tree-optimization/55823
7b0fe4f4
UB
13095 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13096 issue.
36b72910 13097
47876a2a 130982013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
13099 Uros Bizjak <ubizjak@gmail.com>
13100
13101 PR rtl-optimization/55845
13102 * df-problems.c (can_move_insns_across): Stop scanning at
13103 volatile_insn_p source instruction or give up if
13104 across_from .. across_to range contains any volatile_insn_p
13105 instructions.
13106
4369c11e
TB
131072013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13108
7b0fe4f4
UB
13109 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13110 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13111 Declare.
4369c11e 13112 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 13113 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 13114
aeb7e7c1
JJ
131152013-01-08 Jakub Jelinek <jakub@redhat.com>
13116
13117 PR fortran/55341
13118 * asan.c (asan_clear_shadow): New function.
13119 (asan_emit_stack_protection): Use it.
13120
a02ad1aa
TB
131212013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13122
13123 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13124 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13125 with tab instead of space.
13126
f90d87f5
NC
131272013-01-08 Nick Clifton <nickc@redhat.com>
13128
13129 * config/rl78/rl78.c (rl78_expand_prologue): Always select
13130 register bank 0 at the start of an interrupt handler.
83ffd964
NC
13131 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13132 MDBH registers.
f90d87f5 13133
385eb93d
JG
131342013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13135
13136 * config/aarch64/aarch64-simd.md
13137 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13138 (aarch64_simd_bsl): Likewise.
13139 (aarch64_vcond_internal<mode>): Likewise.
13140 (vcond<mode><mode>): Likewise.
13141 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13142 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13143
4dcd1054
JG
131442013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13145
13146 * config/aarch64/aarch64-builtins.c
13147 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13148
4267a4a6
MJ
131492013-01-08 Martin Jambor <mjambor@suse.cz>
13150
13151 PR debug/55579
13152 * tree-sra.c (analyze_access_subtree): Return true also after
13153 potentially creating a debug-only replacement.
13154
5f4e6de3
JJ
131552013-01-08 Jakub Jelinek <jakub@redhat.com>
13156
3138f224
JJ
13157 PR middle-end/55890
13158 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13159
5f4e6de3
JJ
13160 PR tree-optimization/54120
13161 * tree-vrp.c (range_fits_type_p): Don't allow
13162 src_precision < precision from signed vr to unsigned_p
13163 if vr->min or vr->max is negative.
13164 (simplify_float_conversion_using_ranges): Test can_float_p
13165 against CODE_FOR_nothing.
13166
f3ef18ff
JJ
131672013-01-08 Jakub Jelinek <jakub@redhat.com>
13168 Richard Biener <rguenther@suse.de>
13169
13170 PR middle-end/55851
13171 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13172 types instead of just INTEGER_TYPE types.
13173
25c210f9
MK
131742013-01-07 Mark Kettenis <kettenis@openbsd.org>
13175
13176 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13177 TF_SIZE): Define.
f90d87f5 13178
81826a7b
SE
131792013-01-07 Steve Ellcey <sellcey@mips.com>
13180
13181 PR target/42661
13182 * config/mips/mips.opt: Change mad to mmad to match documentation.
13183
35678514
GJL
131842013-01-07 Georg-Johann Lay <avr@gjlay.de>
13185
13186 PR target/55897
13187 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13188 .progmemx.data now.
13189
e5669488
GJL
131902013-01-07 Georg-Johann Lay <avr@gjlay.de>
13191
13192 PR target/55897
13193 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13194 (avr_addrspace_t): Add .section_name field.
13195 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13196 array size.
13197 (avr_addrspace): Same. Initialize .section_name. Remove last
13198 NULL entry. Put __memx into .progmemx.data.
13199 (progmem_section_prefix): Remove.
13200 (avr_asm_init_sections): No need to initialize progmem_section.
13201 (avr_asm_named_section): Use avr_addrspace[].section_name to get
13202 section name prefix.
13203 (avr_asm_select_section): Ditto. And use get_unnamed_section to
13204 retrieve the progmem section.
13205 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13206 boundary to run over avr_addrspace[].
13207 (avr_register_target_pragmas): Ditto.
13208
656e6f37
JJ
132092013-01-06 Jakub Jelinek <jakub@redhat.com>
13210
13211 * varasm.c (output_constant_def_contents): For asan_protect_global
13212 protected strings, adjust DECL_ALIGN if needed, before testing for
13213 anchored symbols.
13214 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13215 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13216 normal decls.
13217 (output_object_block): For asan protected decls, emit asan padding
13218 after their contents.
13219 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13220 (asan_finish_file): Test it here instead.
13221
6edc3e32
UB
132222013-01-07 Nick Clifton <nickc@redhat.com>
13223 Matthias Klose <doko@debian.org>
13224 Doug Kwan <dougkwan@google.com>
13225 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
13226
13227 PR driver/55470
13228 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13229
13230 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13231
13232 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13233
7b0fe4f4 13234 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
13235
13236 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13237
2a095093
GJL
132382013-01-07 Georg-Johann Lay <avr@gjlay.de>
13239
f3b503f4 13240 PR target/54461
2a095093
GJL
13241 * doc/install.texi (Cross-Compiler-Specific Options): Document
13242 --with-avrlibc.
13243
383f9b34
TB
132442013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13245
13246 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13247 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13248 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13249 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13250 vqmovun_high_s64): Fix source operand number and update copyright.
13251
3626621a
RB
132522013-01-07 Richard Biener <rguenther@suse.de>
13253
13254 PR middle-end/55890
13255 * gimple.h (gimple_call_builtin_p): New overload.
13256 * gimple.c (validate_call): New function.
13257 (gimple_call_builtin_p): Likewise.
13258 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13259 Use gimple_call_builtin_p.
13260 (find_func_clobbers): Likewise.
13261 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13262 (strlen_optimize_stmt): Likewise.
13263
8b2ea410
JG
132642013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13265
13266 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13267 (vld1q_dup_*): Likewise.
13268 (vld1_*): Likewise.
13269 (vld1q_*): Likewise.
13270 (vld1_lane_*): Likewise.
13271 (vld1q_lane_*): Likewise.
13272
9713d329
RB
132732013-01-07 Richard Biener <rguenther@suse.de>
13274
13275 * lto-streamer.h (LTO_minor_version): Bump to 2.
13276
3520f7cc
JG
132772013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13278
13279 * config/aarch64/aarch64-protos.h
13280 (aarch64_const_double_zero_rtx_p): Rename to...
13281 (aarch64_float_const_zero_rtx_p): ...this.
13282 (aarch64_float_const_representable_p): New.
13283 (aarch64_output_simd_mov_immediate): Likewise.
13284 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13285 move immediate case.
13286 * config/aarch64/aarch64.c
13287 (aarch64_const_double_zero_rtx_p): Rename to...
13288 (aarch64_float_const_zero_rtx_p): ...this.
13289 (aarch64_print_operand): Allow printing of new constants.
13290 (aarch64_valid_floating_const): New.
13291 (aarch64_legitimate_constant_p): Check for valid floating-point
13292 constants.
13293 (aarch64_simd_valid_immediate): Likewise.
13294 (aarch64_vect_float_const_representable_p): New.
13295 (aarch64_float_const_representable_p): Likewise.
13296 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13297 (aarch64_output_simd_mov_immediate): New.
13298 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13299 (*movdf_aarch64): Likewise.
13300 * config/aarch64/constraints.md (Ufc): New.
13301 (Y): call aarch64_float_const_zero_rtx.
13302 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
13303
e167c04d
RB
133042013-01-07 Richard Biener <rguenther@suse.de>
13305
13306 PR tree-optimization/55888
13307 PR tree-optimization/55862
13308 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
13309 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
13310 not if it is contained therein.
13311
0139aaab
GJL
133122013-01-07 Georg-Johann Lay <avr@gjlay.de>
13313
13314 * config/avr/t-avr: Typo.
13315
4a176b23
GJL
133162013-01-07 Georg-Johann Lay <avr@gjlay.de>
13317
13318 PR55243
13319 * config/avr/t-avr: Don't automatically rebuild
13320 $(srcdir)/config/avr/t-multilib
13321 $(srcdir)/config/avr/avr-tables.opt
13322 $(srcdir)/doc/avr-mmcu.texi
13323 (avr-mcus): New phony target to build them on request.
13324 (s-avr-mlib, s-avr-mmcu-texi): Remove.
13325 * avr/avr-mcus.def: Adjust comments.
13326
c7afdc98
UB
133272013-01-07 Uros Bizjak <ubizjak@gmail.com>
13328
13329 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
13330
1ab05c31
RS
133312013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13332
13333 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
13334
488e3acc
RS
133352013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
13336
13337 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
13338
a89599d2
DE
133392013-01-05 David Edelsohn <dje.gcc@gmail.com>
13340
13341 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
13342 to generate profiling.
13343 * config/rs6000/aix64.h (LIB_SPEC): Same.
13344
70f09188
AP
133452013-01-04 Andrew Pinski <apinski@cavium.com>
13346
13347 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
13348 New function.
13349 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
13350
918d445f
UB
133512013-01-04 Uros Bizjak <ubizjak@gmail.com>
13352
13353 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
13354 unconditionally.
13355 (ix86_expand_move): Ditto.
13356 (ix86_zero_extend_to_Pmode): Ditto.
13357 (ix86_expand_call): Ditto.
13358 (ix86_expand_special_args_builtin): Ditto.
13359 (ix86_expand_builtin): Ditto.
13360
361618ec
RB
133612013-01-04 Richard Biener <rguenther@suse.de>
13362
13363 PR tree-optimization/55862
13364 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
13365 translating them through PHI nodes.
13366
87eab554
MJ
133672013-01-04 Martin Jambor <mjambor@suse.cz>
13368
13369 PR tree-optimization/55755
13370 * tree-sra.c (sra_modify_assign): Do not check that an access has no
13371 children when trying to avoid producing a VIEW_CONVERT_EXPR.
13372
33879b9f
MP
133732013-01-04 Marek Polacek <polacek@redhat.com>
13374
13375 PR middle-end/55859
13376 * opts.c (default_options_optimization): Clarify error message.
13377
3068819a
RB
133782013-01-04 Richard Biener <rguenther@suse.de>
13379
13380 PR middle-end/55863
13381 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
13382 reassociation.
13383
0e4ae794
JDA
133842013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13385
13386 PR target/53789
13387 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
13388 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
13389 references.
0e4ae794 13390
65c88cef
RH
133912013-01-03 Richard Henderson <rth@redhat.com>
13392
13393 * config/i386/i386.c (ix86_expand_move): Always assign to op1
13394 after eliminating TLS symbols.
13395
8ac16127
MG
133962013-01-03 Marc Glisse <marc.glisse@inria.fr>
13397
13398 PR bootstrap/50167
13399 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
13400 * graphite-poly.c (debug_gmp_value): Likewise.
13401
bb664f09
UB
134022013-01-03 Uros Bizjak <ubizjak@gmail.com>
13403
13404 PR target/55712
13405 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
13406 selected code model, define __code_mode_small__, __code_model_medium__,
13407 __code_model_large__, __code_model_32__ or __code_model_kernel__.
13408 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
13409 xchg temporary register with %k. Declare temporary register as
13410 early clobbered.
13411 [__x86_64__]: For medium and large code models, preserve %rbx register.
13412
bcf1ef00
RB
134132013-01-03 Richard Biener <rguenther@suse.de>
13414
0506634a 13415 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
13416 (dump_subscript): Adjust.
13417 (finalize_ddr_dependent): Do not dump redundant info.
13418 (analyze_siv_subscript): Adjust.
13419 (subscript_dependence_tester): Likewise.
13420 (compute_affine_dependence): Likewise.
13421
59fd17e3
RB
134222013-01-03 Richard Biener <rguenther@suse.de>
13423
13424 Revert
13425 2013-01-03 Richard Biener <rguenther@suse.de>
13426
13427 PR tree-optimization/55857
13428 * tree-vect-stmts.c (vectorizable_load): Do not setup
13429 re-alignment for invariant loads.
13430
13431 2013-01-02 Richard Biener <rguenther@suse.de>
13432
13433 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 13434 invariant load do not generate a vector load from the scalar location.
59fd17e3 13435
595c2679
RB
134362013-01-03 Richard Biener <rguenther@suse.de>
13437
13438 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
13439 for not vectorizing.
13440 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
13441 not build INDIRECT_REFs, call get_name once only.
13442 (vect_create_data_ref_ptr): Likewise. Dump base object kind
13443 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
13444
90bb7d7a
RB
134452013-01-03 Richard Biener <rguenther@suse.de>
13446
13447 PR tree-optimization/55857
13448 * tree-vect-stmts.c (vectorizable_load): Do not setup
13449 re-alignment for invariant loads.
13450
f09b77ca
RB
134512013-01-03 Richard Biener <rguenther@suse.de>
13452
13453 PR lto/55848
13454 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
13455 prefer a built-in decl.
13456
3461a16e
JJ
134572013-01-03 Jakub Jelinek <jakub@redhat.com>
13458
df8e2b4f
JJ
13459 * gcc.c (process_command): Update copyright notice dates.
13460 * gcov.c (print_version): Likewise.
13461 * gcov-dump.c (print_version): Likewise.
13462
3461a16e
JJ
13463 PR rtl-optimization/55838
13464 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
13465 iv0.step, iv1.step and step.
13466
8b5546d6
JJ
134672013-01-03 Jakub Jelinek <jakub@redhat.com>
13468 Marc Glisse <marc.glisse@inria.fr>
13469
13470 PR tree-optimization/55832
13471 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
13472 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
13473 integer_{one,zero}_node.
13474
8ab1d2e9
JJ
134752013-01-03 Jakub Jelinek <jakub@redhat.com>
13476
13477 PR debug/54402
13478 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
13479 * var-tracking.c (reverse_op): Don't add reverse ops to
13480 VALUEs that have already
0506634a 13481 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 13482
5b9ad1d4
GP
134832013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
13484
13485 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
13486
e25a6711
TJ
134872013-01-02 Teresa Johnson <tejohnson@google.com>
13488
13489 * dumpfile.c (dump_loc): Print filename with location.
13490 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
13491 new location_t parameter to emit complete unroll message with
13492 new dump framework.
13493 (canonicalize_loop_induction_variables): Compute loops location
13494 and pass to try_unroll_loop_completely.
13495 * loop-unroll.c (report_unroll_peel): New function.
13496 (peel_loops_completely): Use new dump format with location
13497 for main dumpfile message, and invoke report_unroll_peel on success.
13498 (decide_unrolling_and_peeling): Ditto.
13499 (decide_peel_once_rolling): Remove old dumpfile message subsumed
13500 by report_unroll_peel.
13501 (decide_peel_completely): Ditto.
13502 (decide_unroll_constant_iterations): Ditto.
13503 (decide_unroll_runtime_iterations): Ditto.
13504 (decide_peel_simple): Ditto.
13505 (decide_unroll_stupid): Ditto.
13506 * cfgloop.c (get_loop_location): New function.
13507 * cfgloop.h (get_loop_location): Declare.
13508
77878621
ST
135092013-01-02 Sriraman Tallam <tmsriram@google.com>
13510
13511 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
13512 NULL.
13513
9e65d03e
JDA
135142013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13515
13516 PR middle-end/55198
13517 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
13518 BLKmode objects when EXPAND_MEMORY is specified.
13519
6a7da30f
ST
135202013-01-02 Sriraman Tallam <tmsriram@google.com>
13521
13522 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
13523 in loop predicate.
13524 (fold_builtin_cpu): Do not share cpu model decls across statements.
13525
e78167f2
JM
135262013-01-02 Jason Merrill <jason@redhat.com>
13527
13528 PR c++/55804
13529 * tree.c (build_array_type_1): Revert earlier change.
13530
8c075fb4
YZ
135312013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
13532
13533 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
13534 "cortex-a57".
13535 * config/aarch64/aarch64-tune.md: Re-generate.
13536
0682ed3e
RB
135372013-01-02 Richard Biener <rguenther@suse.de>
13538
13539 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 13540 invariant load do not generate a vector load from the scalar location.
0682ed3e 13541
b8f6a302
RB
135422013-01-02 Richard Biener <rguenther@suse.de>
13543
13544 PR bootstrap/55784
13545 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
13546 * configure: Regenerate.
13547
04b80dbb
RS
135482013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13549
13550 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
13551 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
13552 (expand_builtin_int_roundingfn_2): Keep the original target around
13553 for the fallback case.
13554
635b0b0c
RS
135552013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
13556
13557 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
13558 to be clear for sign changes.
13559
42d57399
JH
135602013-01-01 Jan Hubicka <jh@suse.cz>
13561
13562 * ipa-inline-analysis.c: Fix formatting.
13563
5bb6669d
JJ
135642013-01-01 Jakub Jelinek <jakub@redhat.com>
13565
13566 PR tree-optimization/55831
13567 * tree-vect-loop.c (get_initial_def_for_induction): Use
13568 gsi_after_labels instead of gsi_start_bb.
ad41bd84 13569\f
86a2db33 13570Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
13571
13572Copying and distribution of this file, with or without modification,
13573are permitted in any medium without royalty provided the copyright
13574notice and this notice are preserved.