]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
arm.c (arm_r3_live_at_start_p): New predicate.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
01037aeb
EB
12013-06-06 Eric Botcazou <ebotcazou@adacore.com>
2
3 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
4 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
5 (arm_expand_prologue): Likewise.
6
3371a64f
TJ
72013-06-06 Teresa Johnson <tejohnson@google.com>
8
9 PR c++/53743
10 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
11 as this is now done by redirect_edge_and_branch_force.
12 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
13 barriers, and fix interaction with splitting.
14 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
15 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
16 reflect changes made in the routine.
17 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
18 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
19 since this is called in cfglayout mode, and replace partition fixup
20 with assert as that is now done by force_nonfallthru_and_redirect.
21 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
22 already be marked with region crossing note.
23 (insert_section_boundary_note): Make non-static, gate on flag
24 has_bb_partition, rewrite to also check for multiple partitions.
25 (rest_of_handle_reorder_blocks): Remove call to
26 insert_section_boundary_note, now done later during free_cfg.
27 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
28 * bb-reorder.h (insert_section_boundary_note): Declare.
29 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
30 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
31 invoke insert_section_boundary_note.
32 (try_redirect_by_replacing_jump): Remove unnecessary
33 check for region crossing note.
34 (fixup_partition_crossing): New function.
35 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
36 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
37 in non-cfglayout mode.
38 (force_nonfallthru_and_redirect): Fixup partition boundaries,
39 remove old code that tried to do this. Emit barrier correctly
40 when we are in cfglayout mode.
41 (last_bb_in_partition): New function.
42 (rtl_split_edge): Correctly fixup partition boundaries.
43 (commit_one_edge_insertion): Remove old code that tried to
44 fixup region crossing edge since this is now handled in
45 split_block, and set up insertion point correctly since
46 block may now end in a jump.
47 (verify_hot_cold_block_grouping): Guard against checking when not in
48 linearized RTL mode.
49 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
50 notes.
51 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
52 rtl_verify_flow_info, so not called in cfglayout mode.
53 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
54 (fixup_reorder_chain): Remove old code that attempted to fixup region
55 crossing note as this is now handled in force_nonfallthru_and_redirect.
56 (duplicate_insn_chain): Don't duplicate switch section notes.
57 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
58 note.
59 * basic-block.h (emit_barrier_after_bb): Declare.
60
66071e10
KT
612013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
62
63 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
64 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
65 arm_usatsihi): Adjust alternatives for arm_restrict_it.
66
0e26bf3d
KT
672013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
68
69 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
70 where appropriate.
71 * config/arm/ldmstm.md: Regenerate.
72
12b4e7ef
KT
732013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
74
75 * config/arm/sync.md (atomic_loaddi_1):
76 Disable predication for arm_restrict_it.
77 (arm_load_exclusive<mode>): Likewise.
78 (arm_load_exclusivesi): Likewise.
79 (arm_load_exclusivedi): Likewise.
80 (arm_load_acquire_exclusive<mode>): Likewise.
81 (arm_load_acquire_exclusivesi): Likewise.
82 (arm_load_acquire_exclusivedi): Likewise.
83 (arm_store_exclusive<mode>): Likewise.
84 (arm_store_exclusive<mode>): Likewise.
85 (arm_store_release_exclusivedi): Likewise.
86 (arm_store_release_exclusive<mode>): Likewise.
87
15d16c8a
RB
882013-06-06 Richard Biener <rguenther@suse.de>
89
90 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
91 after LTO_null.
92 (lto_tag_is_tree_code_p): Adjust.
93 (lto_tag_is_gimple_code_p): Likewise.
94 (lto_gimple_code_to_tag): Likewise.
95 (lto_tag_to_gimple_code): Likewise.
96 (lto_tree_code_to_tag): Likewise.
97 (lto_tag_to_tree_code): Likewise.
98 * data-streamer.h (streamer_write_hwi_in_range): Use
99 uhwi streaming to stream the normalized range.
100 (streamer_read_hwi_in_range): Likewise.
101
17a7fc37
KT
1022013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
103
104 * config/arm/arm.md (enabled_for_depr_it): New attribute.
105 (predicable_short_it): Likewise.
106 (predicated): Likewise.
107 (enabled): Handle above.
108 (define_cond_exec): Set predicated attribute to yes.
109
b57ca59b
MS
1102013-06-05 Mike Stump <mikestump@comcast.net>
111
112 * gdbinit.in (__FUNCTION__): Add.
113
c1e183a9
UB
1142013-06-05 Uros Bizjak <ubizjak@gmail.com>
115
116 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
117 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
118
0378bddb
JH
1192013-06-05 Jan Hubicka <jh@suse.cz>
120
121 * varasm.c (mark_decl_referenced): Revert the removal until targets
122 are fixed.
123
8f8a2057
DE
1242013-06-05 David Edelsohn <dje.gcc@gmail.com>
125
126 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
127 instead of mark_decl_referenced.
128
edb983b2
JH
1292013-06-05 Jan Hubicka <jh@suse.cz>
130
131 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
132 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
133 and symtab_used_from_object_file_p.
134 (cgraph_make_node_local_1): Clear forced_by_abi.
135 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
136 * cgraph.h (symtab_node_base): Add forced_by_abi.
137 (decide_is_variable_needed): Remove.
138 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
139 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
140 (decide_is_symbol_needed): ... this one; handle symbols in general;
141 always analyze virtuals; honnor forced_by_abi.
142 (cgraph_finalize_function): Update.
143 (varpool_finalize_decl): Update.
144 (symbol_defined_and_needed): Remove.
145 (analyze_functions): Update.
146 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
147 output_refs, input_overwrite_node): Handle forced_by_abi.
148 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
149 (address_taken_from_non_vtable_p): ... this one.
150 (comdat_can_be_unshared_p_1): New function.
151 (cgraph_comdat_can_be_unshared_p): Rename to ...
152 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
153 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
154 (function_and_variable_visibility): Clear forced_by_abi as needed.
155 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
156 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
edb983b2
JH
157 * symtab.c (dump_symtab_base): Dump forced_by_abi.
158 * varpool.c (decide_is_variable_needed): Remove.
159
9912dbe5
KT
1602013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
161
162 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
163 (arm_option_override): Override arm_restrict_it where appropriate.
164 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
165 * config/arm/arm.opt (mrestrict-it): New command-line option.
166 * doc/invoke.texi: Document -mrestrict-it.
167
34c136b6
DM
1682013-06-05 David Malcolm <dmalcolm@redhat.com>
169
170 * tsan.c (tsan_atomic_table): Make const.
171
a367df53
RB
1722013-06-05 Richard Biener <rguenther@suse.de>
173
174 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
175 index associated with the tree we are supposed to replace.
176 * tree-streamer-out.c (pack_ts_base_value_fields): Output
177 TREE_ASM_WRITTEN as zero for everything but SSA names.
178
70d51a19
DM
1792013-06-05 David Malcolm <dmalcolm@redhat.com>
180
181 * tree-ssa-structalias.c (call_stmt_vars): Make static.
182
b9bd2075
JH
1832013-06-04 Jan Hubicka <jh@suse.cz>
184
185 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
186 (input_node, input_varpool_node): Handle correctly external same
187 body aliases.
188 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
189 nodes at ltrans stage.
190
aaae719d
JH
1912013-06-04 Jan Hubicka <jh@suse.cz>
192
193 * ipa-inline.c (update_caller_keys): Fix availability test.
194 (update_callee_keys): Likewise.
195 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
196 to follow ELF standard.
197
107eea2c
JU
1982013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
199
200 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
201 (mips64r5900el-*-elf*): New configurations.
202 * config/mips/mips-cpus.def (r5900): New processor.
203 * config/mips/mips-tables.opt: Regenerate.
204 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
205 (mips_issue_rate): Handle PROCESSOR_R5900.
206 (mips_reorg_process_insns): Force reorder mode for the R5900.
207 * config/mips/mips.h (TARGET_MIPS5900): Define.
208 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
209 TARGET_MIPS5900.
210 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
211 TARGET_MIPS5900.
212 * config/mips/mips.md (processor): Add r5900.
213 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
214
b7342d25
IB
2152013-06-04 Ian Bolton <ian.bolton@arm.com>
216
217 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
218 into function to generate MOVI instruction.
c1e183a9 219 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
b7342d25
IB
220 (aarch64_preferred_simd_mode): Turn into wrapper.
221 (aarch64_output_scalar_simd_mov_immediate): New function.
222 * config/aarch64/aarch64-protos.h: Add prototype for above.
223
81c2dfb9
IB
2242013-06-04 Ian Bolton <ian.bolton@arm.com>
225
226 * config/aarch64/aarch64.c (simd_immediate_info): Remove
227 element_char member.
228 (sizetochar): Return signed char.
229 (aarch64_simd_valid_immediate): Remove elchar and other
230 unnecessary variables.
231 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
232 Calculate element_char as required.
233 * config/aarch64/aarch64-protos.h: Update and move prototype
234 for aarch64_output_simd_mov_immediate.
235 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
236 Update arguments.
237
48063b9d
IB
2382013-06-04 Ian Bolton <ian.bolton@arm.com>
239
240 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
241 information completed by aarch64_simd_valid_immediate.
242 (aarch64_legitimate_constant_p): Update arguments.
243 (aarch64_simd_valid_immediate): Work with struct rather than many
244 pointers.
245 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
246 (aarch64_simd_make_constant): Update arguments.
247 (aarch64_output_simd_mov_immediate): Work with struct rather than
248 many pointers. Output immediate directly rather than as operand.
249 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
250 Update prototype.
251 * config/aarch64/constraints.md (Dn): Update arguments.
252
3ea63f60
IB
2532013-06-04 Ian Bolton <ian.bolton@arm.com>
254
255 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
256 longer static.
257 (aarch64_simd_immediate_valid_for_move): Remove.
258 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
259 (aarch64_simd_make_constant): Update call.
260 (aarch64_output_simd_mov_immediate): Update call.
261 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
262 Add prototype.
263 * config/aarch64/constraints.md (Dn): Update call.
264
d8edd899
IB
2652013-06-04 Ian Bolton <ian.bolton@arm.com>
266
267 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
268 return type to bool for prototype.
269 (aarch64_legitimate_constant_p): Check for true instead of not -1.
270 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
271 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
272
44b20bb8
CM
2732013-06-04 Catherine Moore <clm@codesourcery.com>
274
275 * config/mips/mips.opt (meva): New.
c1e183a9 276 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
44b20bb8
CM
277 (ASM_SPEC): Handle -meva.
278 * doc/invoke.texi (meva): Document.
279
52befbd8
AM
2802013-06-04 Alan Modra <amodra@gmail.com>
281
282 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
283 constant output.
284
aadaf24e
KT
2852013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
286
287 * rtl.def: Add extra fourth optional field to define_cond_exec.
288 * gensupport.c (process_one_cond_exec): Process attributes from
289 define_cond_exec.
290 * doc/md.texi: Document fourth field in define_cond_exec.
291
0cd9e9ee
EB
2922013-06-04 Eric Botcazou <ebotcazou@adacore.com>
293
294 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
295 out the processing order as in store_bit_field_1.
296
cb0f665d
JH
2972013-06-04 Jan Hubicka <jh@suse.cz>
298
299 PR middle-end/57500
300 * cgraphunit.c (cgraph_process_same_body_aliases): Create
301 non-VAR_DECL node if it does not exist yet.
302
53984b9b
RS
3032013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
304
305 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
306 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
307 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
308 target_cpu_default setting.
309
5d318fd4
TJ
3102013-06-03 Teresa Johnson <tejohnson@google.com>
311
312 * dumpfile.c (opt_info_switch_p): Change -fopt-info
313 default to -fopt-info=optimized instead of all.
314 * doc/invoke.texi: Ditto.
315 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
316 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
317 (execute_vect_slp): Emit BB vectorization success under
318 MSG_OPTIMIZED_LOCATIONS.
319 * tree-vect-slp.c (vect_slp_transform_bb): Change
320 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
321 * tree-vect-loop.c (vect_transform_loop): Ditto.
322
ec3af349
JM
3232013-06-03 Jason Merrill <jason@redhat.com>
324
325 PR c++/57415
326 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
327 Use TARGET_EXPR for C++.
328
1baf9159
JJ
3292013-06-03 Jakub Jelinek <jakub@redhat.com>
330
331 PR rtl-optimization/57268
0cd9e9ee 332 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
1baf9159
JJ
333 if DEBUG_INSN_P (insn).
334
335 Reapply
336 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
337
338 PR rtl-optimization/57268
339 * sched-deps.c (sched_analyze_2): Flush dependence lists if
340 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
341
0f1d3965
YR
3422013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
343
344 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
345 (ix86_avoid_lea_for_addr): Likewise.
346 (exact_dependency_1): Likewise.
347 (ix86_adjust_cost): Likewise.
348 (swap_top_of_ready_list): Fix formatting and !reload_completed check
349 removed.
350 (do_reorder_for_imul): Fix typo, formatting and
351 !reload_completed check removed.
352 (ix86_sched_reorder): Fix typo and formatting.
353 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
354 list.
355
3bc30db4
SN
3562013-06-03 Sofiane Naci <sofiane.naci@arm.com>
357
358 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
359
19cc6fac
EB
3602013-06-03 Eric Botcazou <ebotcazou@adacore.com>
361
362 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
363 <STRING_CST>: Likewise.
364 <VECTOR_CST>: Likewise.
365
c68a6e08
JW
3662013-06-01 Janus Weil <janus@gcc.gnu.org>
367 Mikael Morin <mikael@gcc.gnu.org>
368
369 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
370 * config.in: Regenerated.
371 * configure: Regenerated.
372
38e55e5c
JH
3732013-06-01 Jan Hubicka <jh@suse.cz>
374
375 PR middle-end/57366
376 * cgraphunit.c (compile): When weakref is not supported,
377 set up transparent aliases before final output pass.
378 * varasm.c (assemble_alias): Do not try to do it here.
379
eb51d2ff
JH
3802013-06-01 Jan Hubicka <jh@suse.cz>
381
382 PR middle-end/57467
383 * passes.c (for_per_function): Skip unanalyzed functions.
384
40a7fe1e
JH
3852013-06-01 Jan Hubicka <jh@suse.cz>
386
387 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
388 (lto_symtab_merge_symbols_1): ... this one.
389 (lto_symtab_merge_cgraph_nodes): Rename to ...
390 (lto_symtab_merge_symbols): ... this one; simplify.
391 * cgraph.c (same_body_aliases_done): Rename to ...
392 (cpp_implicit_aliases_done): ... this one.
393 (cgraph_create_function_alias): Update.
394 (cgraph_same_body_alias): Update.
c1e183a9 395 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
40a7fe1e 396 (verify_edge_corresponds_to_fndecl): Simplify.
c1e183a9 397 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
40a7fe1e
JH
398 (cgraph_node): Remove same_body_alias.
399 (varpool_node): Remove alias_of and extra_name_alias.
400 (same_body_aliases_done): Rename to ..
401 (cpp_implicit_aliases_done): ... this one.
402 (symtab_alias_ultimate_target): Add default parameter.
403 (symtab_resolve_alias): New function.
404 (fixup_same_cpp_alias_visibility): Declare.
405 (cgraph_function_node): Add default parameter.
406 (cgraph_node_asm_name): Likewise.
407 (cgraph_function_or_thunk_node): Add default parameter; do
408 not ICE when it is NULL.
409 (varpool_variable_node): Likewise.
410 * tree-emutls.c (create_emultls_var): Update.
411 (ipa_lower_emutls): Update.
412 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
413 (cgraph_reset_node): Reset alias info.
414 (cgraph_finalize_function): Update.
415 (fixup_same_cpp_alias_visibility): Move to symtab.c.
416 (analyze_function): Simplify.
417 (cgraph_process_same_body_aliases): Simplify.
418 (analyze_functions): Fixup same body aliases.
419 (handle_alias_pairs): Simplify.
420 (assemble_thunk): Update.
421 (assemble_thunks_and_aliases): Update.
422 (output_weakrefs): Rewrite.
423 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
424 (lto_output_varpool_node): Likewise.
425 (compute_ltrans_boundary): Remve assert.
426 (get_alias_symbol): New functoin.
427 (input_node): Rewrite alias handling.
428 (input_varpool_node): Likewise.
429 * ipa-pure-const.c (propagate_pure_const): Fix formating.
430 * ipa.c (process_references): Handle weakrefs correctly.
431 (symtab_remove_unreachable_nodes): Likewise.
432 * trans-mem.c (get_cg_data): Update.
433 (ipa_tm_create_version_alias): Update.
434 (ipa_tm_execute): Update.
435 * symtab.c (dump_symtab_base): Dump aliases.
436 (verify_symtab_base): Verify aliases.
437 (symtab_node_availability): New function.
438 (symtab_alias_ultimate_target): Simplify.
439 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
440 handle all the fixup cases.
441 (symtab_resolve_alias): New function.
442 * passes.c (ipa_write_summaries): Handle weakrefs.
443 * varpool.c (varpool_analyze_node): Simplify.
444 (assemble_aliases): Update.
445 (varpool_create_variable_alias): Simplify.
446 (varpool_extra_name_alias): Simplify.
447 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
448 (lto_symtab_merge_symbols): ... this one.
449
21759881
DT
4502013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
451
452 Revert
453 PR rtl-optimization/57268
454 * sched-deps.c (sched_analyze_2): Flush dependence lists if
455 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
456
daf4e940
TB
4572013-06-01 Tobias Burnus <burnus@net-b.de>
458
459 Partially reverted:
460 2013-05-31 Tobias Burnus <burnus@net-b.de>
461
462 PR middle-end/57073
463 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
464 further up.
465
c359d8d0
DT
4662013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
467
468 PR rtl-optimization/57268
469 * sched-deps.c (sched_analyze_2): Flush dependence lists if
470 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
471
4172215d
EB
4722013-05-31 Eric Botcazou <ebotcazou@adacore.com>
473
474 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
475 unordered comparison operators when -fno-trapping-math is in effect
476 on the e500.
477 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
478 and implement unordered comparison operators properly on the e500.
479
a8c50132
EB
4802013-05-31 Eric Botcazou <ebotcazou@adacore.com>
481
482 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
483 for constant scalar integers.
484 (simplify_relational_operation_1): Likewise.
485
44626634
SB
4862013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
487
488 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
489 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
490 Fix comment.
491
55805e54
YR
4922013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
493 Igor Zamyatin <igor.zamyatin@intel.com>
494
495 Silvermont (SLM) architecture performance tuning.
496 * config/i386/i386.h (enum ix86_tune_indices): Add
497 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
498 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
499
500 * config/i386/i386.c (initial_ix86_tune_features)
501 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
502 (ix86_lea_outperforms): Handle Silvermont tuning.
503 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
504 call.
505 (ix86_use_lea_for_mov): Likewise.
506 (ix86_avoid_lea_for_addr): Likewise.
507 (ix86_lea_for_add_ok): Likewise.
508 (exact_dependency_1): New function.
509 (exact_store_load_dependency): Likewise.
510 (ix86_adjust_cost): Handle Silvermont tuning.
511 (do_reoder_for_imul): Likewise.
512 (swap_top_of_ready_list): New function.
513 (ix86_sched_reorder): Changed to handle Silvermont tuning.
514
515 * config/i386/i386.md (peepholes that split memory operand in fp
516 converts): New.
517
e19c9de2
MS
5182013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
519
520 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
521 Remove un-necessary braces.
522
38e6c9a6
MS
5232013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
524
525 * config/aarch64/aarch64.c (aarch64_classify_symbol):
526 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
527
e3530904
TB
5282013-05-31 Tobias Burnus <burnus@net-b.de>
529
530 PR middle-end/57073
c1e183a9 531 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
e3530904 532
b6af05a9
KT
5332013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
534
535 PR target/56315
536 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
537 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
538 * config/arm/neon.md (iordi3_neon): Remove.
539 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
540 * config/arm/predicates.md (imm_for_neon_logic_operand):
541 Move to earlier in the file.
542 (neon_logic_op2): Likewise.
543 (arm_iordi_operand_neon): New predicate.
544
f800c166
RB
5452013-05-31 Richard Biener <rguenther@suse.de>
546
547 PR tree-optimization/57478
548 PR tree-optimization/57453
549 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
550 are life as well.
551
e571fa59
KP
5522013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
553
554 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
555 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
556
0fa6e0ef
TB
5572013-05-30 Tobias Burnus <burnus@net-b.de>
558 Thomas Koenig <tkoenig@gcc.gnu.org>
559
560 PR middle-end/57073
561 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
562 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
563
4688ddf5
SB
5642013-05-30 Steven Bosscher <steven@gcc.gnu.org>
565
0fa6e0ef 566 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
4688ddf5 567
3b9ceb4b
VM
5682013-05-30 Vladimir Makarov <vmakarov@redhat.com>
569
570 * target.def (register_usage_leveling_p): New hook.
571 * targhooks.c (default_register_usage_leveling_p): New.
572 * targhooks.h (default_register_usage_leveling_p): New prototype.
573 * lra-assigns.c (register_usage_leveling_p): Use the hook.
574 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
575 * doc/tm.texi: Update.
576 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
577
65f9e789
IB
5782013-05-30 Ian Bolton <ian.bolton@arm.com>
579
580 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
581 (*insv_reg<mode>): New define_insn.
582
ca035367
JR
5832013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
584
585 PR rtl-optimization/57439
586 * postreload.c (move2add_valid_value_p): Check that we have
587 a zero subreg_regno_offset when accessing the register in
588 the requested mode.
589
0b871ccf
YR
5902013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
591 Igor Zamyatin <igor.zamyatin@intel.com>
592
593 Silvermont (SLM) architecture pipeline model, tuning and
594 insn selection.
595 * config.gcc: Add slm config options and target.
596
597 * config/i386/slm.md: New.
598
599 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
600
601 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
602 PROCESSOR_SLM.
603 (ix86_target_macros_internal): Likewise.
604
605 * gcc/config/i386/i386.c (slm_cost): New cost.
606 (m_SLM): New macro flag.
607 (initial_ix86_tune_features): Set m_SLM.
608 (x86_accumulate_outgoing_args): Likewise.
609 (x86_arch_always_fancy_math_387): Likewise.
610 (processor_target_table): Add slm cost.
611 (cpu_names): Add slm cpu name.
612 (x86_option_override_internal): Set SLM ISA.
613 (ix86_issue_rate): New case PROCESSOR_SLM.
614 (ia32_multipass_dfa_lookahead): Likewise.
615 (fold_builtin_cpu): Add slm.
616
617 * config/i386/i386.h (TARGET_SLM): New target macro.
618 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
619 (processor_type): Add PROCESSOR_SLM.
620
621 * config/i386/i386.md (cpu): Add new value "slm".
622 (slm.md): Include slm.md.
623
24d5b097
XG
6242013-05-30 Bernd Schmidt <bernds@codesourcery.com>
625 Zhenqiang Chen <zhenqiang.chen@linaro.org>
626
627 * config/arm/arm-protos.h: Add and update function protos.
628 * config/arm/arm.c (use_simple_return_p): New added.
629 (thumb2_expand_return): Check simple_return flag.
630 * config/arm/arm.md: Add simple_return and conditional simple_return.
631 * config/arm/iterators.md: Add iterator for return and simple_return.
632
c1cccc15
ZC
6332013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
634
635 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
636 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
637 (arm_emit_vfp_multi_reg_pop): Likewise.
638 (thumb2_emit_ldrd_pop): Likewise.
639 (arm_expand_epilogue): Add misc REG_CFA notes.
640 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
641
3a4f280b
LC
6422013-05-29 Lawrence Crowl <crowl@google.com>
643
644 * config/arm/t-arm: Update for below.
645
646 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
647 Change type to hash_table. Update dependent calls and types.
648
649 * config/i386/t-cygming: Update for below.
650
651 * config/i386/t-interix: Update for below.
652
653 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
654 Change type to hash_table. Update dependent calls and types.
655 (i386_find_on_wrapper_list::wrappers): Likewise.
656
657 * config/ia64/t-ia64: Update for below.
658
659 * config/ia64/ia64.c (bundle_state_table):
660 Change type to hash_table. Update dependent calls and types.
661
662 * config/mips/mips.c (mips_reorg_process_insns::htab):
663 Change type to hash_table. Update dependent calls and types.
664
665 * config/sol2.c (solaris_comdat_htab):
666 Change type to hash_table. Update dependent calls and types.
667
668 * config/t-sol2: Update for above.
669
1388a0e3
TJ
6702013-05-29 Teresa Johnson <tejohnson@google.com>
671
672 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
673 functions are not yet marked as defined.
674
a5965b52
MM
6752013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
676 Pat Haugen <pthaugen@us.ibm.com>
677 Peter Bergner <bergner@vnet.ibm.com>
678
679 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
680 instructions.
681 (VEC_A): Likewise.
682 (VEC_C): Likewise.
683 (vrotl<mode>3): Likewise.
684 (vashl<mode>3): Likewise.
685 (vlshr<mode>3): Likewise.
686 (vashr<mode>3): Likewise.
687
688 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
689 support for power8 V2DI builtins.
690
691 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
692 power8 V2DI builtins.
693 (vupkhsw): Likewise.
694 (vupklsw): Likewise.
695 (vaddudm): Likewise.
696 (vminsd): Likewise.
697 (vmaxsd): Likewise.
698 (vminud): Likewise.
699 (vmaxud): Likewise.
700 (vpkudum): Likewise.
701 (vpksdss): Likewise.
702 (vpkudus): Likewise.
703 (vpksdus): Likewise.
704 (vrld): Likewise.
705 (vsld): Likewise.
706 (vsrd): Likewise.
707 (vsrad): Likewise.
708 (vsubudm): Likewise.
709 (vcmpequd): Likewise.
710 (vcmpgtsd): Likewise.
711 (vcmpgtud): Likewise.
712 (vcmpequd_p): Likewise.
713 (vcmpgtsd_p): Likewise.
714 (vcmpgtud_p): Likewise.
715 (vupkhsw): Likewise.
716 (vupklsw): Likewise.
717 (vaddudm): Likewise.
718 (vmaxsd): Likewise.
719 (vmaxud): Likewise.
720 (vminsd): Likewise.
721 (vminud): Likewise.
722 (vpksdss): Likewise.
723 (vpksdus): Likewise.
724 (vpkudum): Likewise.
725 (vpkudus): Likewise.
726 (vrld): Likewise.
727 (vsld): Likewise.
728 (vsrad): Likewise.
729 (vsrd): Likewise.
730 (vsubudm): Likewise.
731
732 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
733 support for power8 V2DI instructions.
734
735 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
736 power8 V2DI instructions. Combine pack and unpack insns to use an
737 iterator for each mode. Check whether a particular mode supports
738 Altivec instructions instead of just checking TARGET_ALTIVEC.
739 (UNSPEC_VPKUWUM): Likewise.
740 (UNSPEC_VPKSHSS): Likewise.
741 (UNSPEC_VPKSWSS): Likewise.
742 (UNSPEC_VPKUHUS): Likewise.
743 (UNSPEC_VPKSHUS): Likewise.
744 (UNSPEC_VPKUWUS): Likewise.
745 (UNSPEC_VPKSWUS): Likewise.
746 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
747 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
748 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
749 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
750 (UNSPEC_VUPKHSB): Likewise.
751 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
752 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
753 (UNSPEC_VUPKHSH): Likewise.
754 (UNSPEC_VUPKLSB): Likewise.
755 (UNSPEC_VUPKLSH): Likewise.
756 (VI2): Likewise.
757 (VI_char): Likewise.
758 (VI_scalar): Likewise.
759 (VI_unit): Likewise.
760 (VP): Likewise.
761 (VP_small): Likewise.
762 (VP_small_lc): Likewise.
763 (VU_char): Likewise.
764 (add<mode>3): Likewise.
765 (altivec_vaddcuw): Likewise.
766 (altivec_vaddu<VI_char>s): Likewise.
767 (altivec_vadds<VI_char>s): Likewise.
768 (sub<mode>3): Likewise.
769 (altivec_vsubcuw): Likewise.
770 (altivec_vsubu<VI_char>s): Likewise.
771 (altivec_vsubs<VI_char>s): Likewise.
772 (altivec_vavgs<VI_char>): Likewise.
773 (altivec_vcmpbfp): Likewise.
774 (altivec_eq<mode>): Likewise.
775 (altivec_gt<mode>): Likewise.
776 (altivec_gtu<mode>): Likewise.
777 (umax<mode>3): Likewise.
778 (smax<mode>3): Likewise.
779 (umin<mode>3): Likewise.
780 (smin<mode>3): Likewise.
781 (altivec_vpkuhum): Likewise.
782 (altivec_vpkuwum): Likewise.
783 (altivec_vpkshss): Likewise.
784 (altivec_vpkswss): Likewise.
785 (altivec_vpkuhus): Likewise.
786 (altivec_vpkshus): Likewise.
787 (altivec_vpkuwus): Likewise.
788 (altivec_vpkswus): Likewise.
789 (altivec_vpks<VI_char>ss): Likewise.
790 (altivec_vpks<VI_char>us): Likewise.
791 (altivec_vpku<VI_char>us): Likewise.
792 (altivec_vpku<VI_char>um): Likewise.
793 (altivec_vrl<VI_char>): Likewise.
794 (altivec_vsl<VI_char>): Likewise.
795 (altivec_vsr<VI_char>): Likewise.
796 (altivec_vsra<VI_char>): Likewise.
797 (altivec_vsldoi_<mode>): Likewise.
798 (altivec_vupkhsb): Likewise.
799 (altivec_vupkhs<VU_char>): Likewise.
800 (altivec_vupkls<VU_char>): Likewise.
801 (altivec_vupkhsh): Likewise.
802 (altivec_vupklsb): Likewise.
803 (altivec_vupklsh): Likewise.
804 (altivec_vcmpequ<VI_char>_p): Likewise.
805 (altivec_vcmpgts<VI_char>_p): Likewise.
806 (altivec_vcmpgtu<VI_char>_p): Likewise.
807 (abs<mode>2): Likewise.
808 (vec_unpacks_hi_v16qi): Likewise.
809 (vec_unpacks_hi_v8hi): Likewise.
810 (vec_unpacks_lo_v16qi): Likewise.
811 (vec_unpacks_hi_<VP_small_lc>): Likewise.
812 (vec_unpacks_lo_v8hi): Likewise.
813 (vec_unpacks_lo_<VP_small_lc>): Likewise.
814 (vec_pack_trunc_v8h): Likewise.
815 (vec_pack_trunc_v4si): Likewise.
816 (vec_pack_trunc_<mode>): Likewise.
817
818 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
819 V2DI builtins.
820 (vec_vmaxsd): Likewise.
821 (vec_vmaxud): Likewise.
822 (vec_vminsd): Likewise.
823 (vec_vminud): Likewise.
824 (vec_vpksdss): Likewise.
825 (vec_vpksdus): Likewise.
826 (vec_vpkudum): Likewise.
827 (vec_vpkudus): Likewise.
828 (vec_vrld): Likewise.
829 (vec_vsld): Likewise.
830 (vec_vsrad): Likewise.
831 (vec_vsrd): Likewise.
832 (vec_vsubudm): Likewise.
833 (vec_vupkhsw): Likewise.
834 (vec_vupklsw): Likewise.
835
e70670cf
JH
8362013-05-29 Jan Hubicka <jh@suse.cz>
837
838 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
839 flags; reorder rest of fields in more consistent way.
840 (varpool_node): Remove analyzed, finalized and alias.
841 (cgraph_ndoe): Likewise.
842 (symtab_alias_ultimate_target): New function.
843 (cgraph_function_node): Move offline.
844 (cgraph_reset_node): Declare.
845 (cgraph_comdat_can_be_unshared_p): Remove.
846 (varpool_remove_initializer): Declare.
847 (varpool_first_defined_variable, varpool_next_defined_variable
848 cgraph_first_defined_function, cgraph_next_defined_function): Update.
849 (cgraph_function_with_gimple_body_p): Update.
850 (varpool_all_refs_explicit_p): Update.
851 (symtab_alias_target): New function.
852 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
853 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
c1e183a9
UB
854 (cgraph_function_or_thunk_node): Simplify using
855 symtab_alias_ultimate_target.
e70670cf
JH
856 (varpool_variable_node): Likewise.
857 * cgraph.c (cgraph_create_function_alias): Update.
858 (cgraph_add_thunk): Update.
859 (cgraph_remove_node): Update.
860 (dump_cgraph_node): Do not dump removed flags.
861 (cgraph_function_body_availability): Update.
862 (cgraph_propagate_frequency): Update.
863 (verify_cgraph_node): Check sanity of local flag.
864 (cgraph_function_node): Move here from cgraph.h; revamp for
865 cgraph_function_or_thunk_node.
866 * lto-symtab.c (lto_varpool_replace_node): Update.
867 (lto_symtab_resolve_can_prevail_p): Update.
868 (lto_symtab_merge_cgraph_nodes): Update.
869 * ipa-cp.c (determine_versionability, initialize_node_lattices,
870 propagate_constants_accross_call, devirtualization_time_bonus,
871 ipcp_propagate_stage): Update.
872 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
c1e183a9
UB
873 * ipa-inline-transform.c (clone_inlined_nodes,
874 preserve_function_body_p): Update.
e70670cf
JH
875 * ipa-reference.c (propagate): Update.
876 (write_node_summary_p): Update.
877 * toplev.c (wrapup_global_declaration_2): Update.
878 * cgraphunit.c (cgraph_analyze_function): Rename to ...
879 (analyze_function) ... this one.
880 (cgraph_process_new_functions): Update.
881 (cgraph_reset_node): Export.
882 (cgraph_finalize_function): Update.
883 (cgraph_add_new_function): Update.
884 (process_function_and_variable_attributes): Update.
885 (varpool_finalize_decl): Update.
886 (symbol_finalized): Remove.
887 (symbol_finalized_and_needed): Rename to ...
888 (symbol_defined_and_needed): ... update.
889 (cgraph_analyze_functions): Update.
890 (handle_alias_pairs): Update.
891 (mark_functions_to_output): Update.
892 (assemble_thunk): Update.
893 (output_in_order): Update.
894 (output_weakrefs): Update.
895 (finalize_compilation_unit): Update.
896 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
897 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
898 input_node, input_varpool_node): Update.
899 * dbxout.c (dbxout_expand_expr): Update.
900 * cgraphclones.c (cgraph_clone_node): Update.
901 (cgraph_copy_node_for_versioning): Update.
902 (cgraph_materialize_clone): Update.
903 (cgraph_materialize_all_clones): Update.
904 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
905 propagate_pure_const, propagate_nothrow): Update.
906 * lto-streamer-out.c (lto_output, write_symbol): Update.
907 * ipa-utils.c (ipa_reverse_postorder): Update.
908 * ipa-inline.c (can_inline_edge_p): Update.
909 (update_caller_keys, ipa_inline): Update.
910 * dwarf2out.c (reference_to_unused,
911 premark_types_used_by_global_vars_helper): Update.
912 * tree-eh.c (tree_could_trap_p): Update.
913 * ipa-split.c (consider_split, execute_split_functions): Update.
914 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
c1e183a9
UB
915 has_addr_references_p): Update; move ahead in file for better
916 readability.
e70670cf
JH
917 (process_references): Simplify.
918 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
919 bodies are removed.
920 (cgraph_comdat_can_be_unshared_p): Make static.
921 (cgraph_externally_visible_p): Update.
922 (varpool_externally_visible_p): Update.
923 (function_and_variable_visibility): Update.
924 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
925 ipa_tm_mark_force_output_node): Update.
926 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
927 estimate_edge_devirt_benefit, inline_generate_summary,
928 inline_write_summary): Update.
929 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
930 * ipa-prop.c (ipa_compute_jump_functions): Update.
c1e183a9
UB
931 (ipa_print_node_params, ipa_prop_read_section,
932 ipa_update_after_lto_read, read_replacements_section): Update.
e70670cf
JH
933 * varasm.c (mark_decl_referenced): Update.
934 (assemble_alias, dump_tm_clone_pairs): Update.
935 * tree-inline.c (copy_bb): Update.
936 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
937 Update.
938 * symtab.c (dump_symtab_base): Print new flags.
939 (verify_symtab_base): Verify new flags.
940 (symtab_alias_ultimate_target): New function.
941 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
942 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
943 Update.
c1e183a9
UB
944 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
945 Update.
e70670cf
JH
946 * i386.c (ix86_get_function_versions_dispatcher,
947 ix86_generate_version_dispatcher_body): Update.
948 (fold_builtin_cpu): Use varpool_add_new_variable.
949 * varpool.c (varpool_remove_initializer): Break out from ...
950 (varpool_remove_node): ... this one.
951 (dump_varpool_node, varpool_node_for_asm,
952 cgraph_variable_initializer_availability, varpool_analyze_node,
953 varpool_assemble_decl, varpool_remove_unreferenced_decls,
c1e183a9
UB
954 varpool_finalize_named_section_flags, varpool_create_variable_alias):
955 Update.
e70670cf 956
182802ad
JH
9572013-05-29 Jan Hubicka <jh@suse.cz>
958
959 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
960
8190b609
ER
9612013-05-29 Easwaran Raman <eraman@google.com>
962
963 PR tree-optimization/57442
964 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
965 when control exits the main loop.
966
69f5aa9b
SKS
9672013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
968
969 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
970 and RX600.
c1e183a9 971 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
69f5aa9b
SKS
972 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
973 * rx/t-rx: Add rx100 under multi library matches option for nofpu
974 option.
975
4b847da9
BS
9762013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
977
978 PR tree-optimization/57441
979 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
980 Don't limit size of incr_vec to number of candidates.
981
4fc43c39
SE
9822013-05-29 Steve Ellcey <sellcey@imgtec.com>
983
984 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
985 and mips16 directories.
c1e183a9 986 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
4fc43c39
SE
987 (MULTILIB_DIRNAMES): Ditto.
988 (MULTILIB_EXCEPTIONS): Add new exceptions.
989 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
990 (MULTILIB_DIRNAMES): Ditto.
991 (MULTILIB_EXCEPTIONS): Add new exceptions.
992
a5350ddc
CSS
9932012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
994 Marcus Shawcroft <marcus.shawcroft@arm.com>
995
996 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
997 SYMBOL_TINY_ABSOLUTE.
998 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
999 SYMBOL_TINY_ABSOLUTE.
1000 (aarch64_expand_mov_immediate): Likewise.
1001 (aarch64_classify_symbol): Likewise.
1002 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
1003 Permit SYMBOL_TINY_ABSOLUTE.
1004 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
1005
17f4d4bf
CSS
10062013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1007 Marcus Shawcroft <marcus.shawcroft@arm.com>
1008
1009 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
1010 Refactor if/switch. Replace gcc_assert with if.
1011
c0186656
GG
10122013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
1013
1014 * config/i386/i386.c (initial_ix86_tune_features): Enable
1015 FP Reassociation for AMD bdver1 and bdver2.
1016
d20188f3
MJ
10172013-05-29 Martin Jambor <mjambor@suse.cz>
1018
1019 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
1020 and IMAGPART_EXPR do not occur within other handled_components.
1021
292cba13
RB
10222013-05-29 Richard Biener <rguenther@suse.de>
1023
1024 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
1025 access on whether the use is in the BB we currently try to
1026 vectorize.
1027 (vect_bb_vectorization_profitable_p): Pass the BB we currently
1028 vectorize to vect_bb_slp_scalar_cost.
1029
6eddf228
RB
10302013-05-29 Richard Biener <rguenther@suse.de>
1031
1032 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
1033 computing scalar cost offsetted by stmts that are kept live
1034 by scalar uses.
1035 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
1036 for computation of scalar cost.
1037
7df36117
SE
10382013-05-28 Steve Ellcey <sellcey@mips.com>
1039
1040 * config/mips/mips-cpus.def (mips32r2): Change processor type.
1041
36536d79
BI
10422013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
1043
1044 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
1045 array notation built-in reduction functions.
1046 * doc/passes.texi (Passes): Added documentation about changes done
1047 for Cilk Plus.
1048 * doc/invoke.texi (C Dialect Options): Added documentation about
1049 the -fcilkplus flag.
1050 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
1051 (BUILTINS_DEF): Depend on cilkplus.def.
1052 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
1053 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
1054 * cilkplus.def: New file.
1055
b49eefa5
JR
10562013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
1057
1058 PR rtl-optimization/57439
1059 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
1060
9daf6dbb
ER
10612013-05-28 Easwaran Raman <eraman@google.com>
1062
1063 PR tree-optimization/57337
1064 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
1065 (find_insert_point): Correctly identify the insertion point
1066 when two statements with the same UID is compared.
1067
fbd7e877
RB
10682013-05-28 Richard Biener <rguenther@suse.de>
1069
1070 PR tree-optimization/56787
1071 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
1072 from the list of data references.
1073 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1074 clobbers.
1075 (vect_analyze_loop_operations): Likewise.
1076 (vect_transform_loop): Remove clobbers.
1077
bbba1117
MJ
10782013-05-28 Martin Jambor <mjambor@suse.cz>
1079
1080 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
1081 and REALPART_EXPRs have scalar type.
1082
bd388c2a
RB
10832013-05-28 Richard Biener <rguenther@suse.de>
1084
1085 PR tree-optimization/57411
1086 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
1087 virtual operands.
1088 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
1089 virtual operand propagation.
1090
2f56a311
EB
10912013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1092
1093 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
1094 destination register for bmasksi_vis.
1095 (vector_init_bshuffle): Likewise.
1096 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
1097
5c3eacbb
EB
10982013-05-28 Eric Botcazou <ebotcazou@adacore.com>
1099
1100 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
1101 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
1102 mode if the instruction isn't available in the original mode.
1103 * config/sparc/sparc.opt (mfix-ut699): New option.
1104 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
1105 (divdf3): Turn into expander.
1106 (divdf3_nofix): New insn.
1107 (divdf3_fix): Likewise.
1108 (divsf3): Disable if -mfix-ut699.
1109 (sqrtdf2): Turn into expander.
1110 (sqrtdf2_nofix): New insn.
1111 (sqrtdf2_fix): Likewise.
1112 (sqrtsf2): Disable if -mfix-ut699.
1113
a1756c0a
RB
11142013-05-27 Richard Biener <rguenther@suse.de>
1115
1116 PR middle-end/57412
1117 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
1118 block for the new loop.
1119
5a892248
RB
11202013-05-27 Richard Biener <rguenther@suse.de>
1121
1122 PR tree-optimization/57343
1123 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
1124 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
1125 (number_of_iterations_cond): Do not build the folded tree.
1126
d1de852b
RB
11272013-05-27 Richard Biener <rguenther@suse.de>
1128
1129 Revert
1130 PR middle-end/57381
1131 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1132 OEP_CONSTANT_ADDRESS_OF retained.
1133
1134 PR tree-optimization/57417
1135 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
1136 for unchanged base.
1137 (set_ssa_val_to): Compare addresses using
1138 get_addr_base_and_unit_offset.
1139
7894bc6b
JR
11402013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
1141
1142 PR rtl-optimization/56833
1143 * postreload.c (move2add_record_mode): New function.
1144 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
1145 (move2add_use_add2_insn): Use move2add_record_sym_value.
1146 (move2add_use_add3_insn): Likewise.
1147 (reload_cse_move2add): Use move2add_valid_value_p and
1148 move2add_record_mode. Invalidate call-clobbered and REG_INC
1149 affected regs by setting reg_mode to VOIDmode.
1150 (move2add_note_store): Don't pretend the inside of a SUBREG is
1151 the actual destination. Invalidate single/leading registers by
1152 setting reg_mode to VOIDmode.
1153 Use move2add_record_sym_value, move2add_valid_value_p and
1154 move2add_record_mode.
1155
b03be25f
RB
11562013-05-27 Richard Biener <rguenther@suse.de>
1157
1158 PR tree-optimization/57396
1159 * tree-affine.c (double_int_constant_multiple_p): Properly
1160 return false for val == 0 and div != 0.
1161
44e88db2
RS
11622013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1163
1164 * config/mips/mips.h: Use #elif in preprocessor conditions.
1165
3b859704
RS
11662013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1167
1168 PR target/53916
1169 * config/mips/constraints.md (kl): New constraint.
1170 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
1171 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
1172 constraint for operand 0. Split after CSE for MIPS16. Emit a move
1173 from LO for MIPS16.
1174 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
1175
c979d5f5
RS
11762013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
1177
1178 PR target/55777
1179 * config/mips/mips.c (mips_can_inline_p): New function.
1180 (TARGET_CAN_INLINE_P): Define.
1181
8e90de43
SB
11822013-05-25 Steven Bosscher <steven@gcc.gnu.org>
1183
1184 * sched-int.h (ds_t, dw_t): Make unsigned int.
1185 Fix documentation that describes how all the ds_t bits are used.
1186 Reserve the last bit for delayed-branch scheduling.
1187 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
1188 (BITS_PER_DEP_WEAK): Fix definition and documentation.
1189 (gen_dep_weak_1): Remove prototype.
1190 * sched-deps.c (get_dep_weak_1): Make static.
1191 * target.def (speculate_insn, needs_block_p, gen_spec_check,
1192 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
1193 * doc/tm.texi: Regenerate.
1194 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
1195
cb5cb194
SB
11962013-05-24 Steven Bosscher <steven@gcc.gnu.org>
1197
1198 PR debug/56950
1199 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
1200
5bd93ff6
NS
12012013-05-24 Nathan Sidwell <nathan@codesourcery.com>
1202 Sandra Loosemore <sandra@codesourcery.com>
1203
1204 * config.gcc (powerpc-*): Allow native for with-cpu.
1205
2343af65
JL
12062013-05-24 Jeff Law <law@redhat.com>
1207
1208 PR tree-optimization/57124
1209 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
1210 conversion feeding a condition if the range has an overflow
1211 if -fstrict-overflow. Add warnings for when we do make the
1212 transformation.
1213
3ad695b9
DC
12142013-05-24 Dehao Chen <dehao@google.com>
1215
04960246 1216 * tree-cfg.c (locus_discrim_map): Fix the typo.
3ad695b9
DC
1217 (locus_discrim_hasher): Likewise.
1218 (locus_discrim_hasher::hash): Likewise.
1219 (locus_discrim_hasher::equal): Likewise.
1220
82338059
MJ
12212013-05-24 Martin Jambor <mjambor@suse.cz>
1222
1223 PR tree-optimization/57294
1224 * cgraph.h (ipa_record_stmt_references): Declare.
1225 * cgraphbuild.c (ipa_record_stmt_references): New function.
1226 (build_cgraph_edges): Use ipa_record_stmt_references.
1227 (rebuild_cgraph_edges): Likewise.
1228 (cgraph_rebuild_references): Likewise.
1229 * ipa-prop.c (ipa_modify_call_arguments): Discard references
1230 associated with the old statement and build references from the
1231 newly built statements.
1232 * ipa-ref.c (ipa_remove_stmt_references): New function.
1233 * ipa-ref.h (ipa_remove_stmt_references): Declare.
1234
1ccd4874
VM
12352013-05-24 Vladimir Makarov <vmakarov@redhat.com>
1236
55805e54 1237 * lra-constraints.c (emit_spill_move): Use smaller mode for
1ccd4874 1238 mem-mem moves.
55805e54 1239 (check_and_process_move): Consider mem-reg moves for secondary
1ccd4874 1240 too.
55805e54 1241 (curr_insn_transform): Don't lose insns emitted before for
1ccd4874
VM
1242 secondary memory moves.
1243 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
1244 reg set up in the current insn.
1245
25e25c73
DC
12462013-05-24 Dehao Chen <dehao@google.com>
1247
04960246 1248 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
25e25c73
DC
1249 hash function.
1250 (locus_descrim_hasher::equal): Likewise.
04960246 1251 (build_gimple_cfg): New discriminator assignment algorithm.
25e25c73
DC
1252 (make_edges): Likewise.
1253 (next_discriminator_for_locus): Likewise.
1254 (same_line_p): Likewise.
1255 (assign_discriminators): Likewise.
1256 (make_cond_expr_edges): Likewise.
1257 (make_gimple_switch_edges): Likewise.
1258 (make_goto_expr_edges): Likewise.
1259 (make_gimple_asm_edges): Likewise.
1260
50d38551
IB
12612013-05-24 Ian Bolton <ian.bolton@arm.com>
1262
1263 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
1264 X format specifier to only display bottom 16 bits.
1265 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
1266 immediate to match for operand 2, since it will be masked.
1267
aea0101d
RB
12682013-05-24 Richard Biener <rguenther@suse.de>
1269
1270 PR tree-optimization/57287
1271 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
1272 all SSA names that occur in abnormal PHIs.
1273
634e03d3
AI
12742013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
1275
1276 PR tree-ssa/57385
1277 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
1278 that index is not negative.
1279
b17c024f
EB
12802013-05-24 Eric Botcazou <ebotcazou@adacore.com>
1281
1282 PR rtl-optimization/55177
1283 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
1284 (simplify_byte_swapping_operation): New.
1285 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
1286 (simplify_relational_operation_1): Deal with BSWAP.
1287
46aeac1b
RH
12882013-05-23 Richard Henderson <rth@redhat.com>
1289
1290 PR target/56742
1291 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
1292 (ix86_reorg): Call it.
1293
70cc1536
UB
12942013-05-23 Uros Bizjak <ubizjak@gmail.com>
1295
1296 PR target/57379
1297 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
1298 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
1299 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
1300
b3851501
CB
13012013-05-23 Christian Bruel <christian.bruel@st.com>
1302
1303 PR debug/57351
1304 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
1305
4e194912
CSS
13062013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1307 Marcus Shawcroft <marcus.shawcroft@arm.com>
1308
1309 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
1310 * config/aarch64/constraints.md (Usa): Remove.
1311 * doc/md.texi (AArch64 Usa): Remove.
1312
83f8c414
CSS
13132013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
1314 Marcus Shawcroft <marcus.shawcroft@arm.com>
1315
1316 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
1317 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
1318 * config/aarch64/predicates.md (aarch64_const_address): Remove.
1319 (aarch64_mov_operand): Use aarch64_mov_operand_p.
1320
b5574232
VP
13212013-05-23 Vidya Praveen <vidyapraveen@arm.com>
1322
1323 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
1324 instruction (AdvSIMD).
1325 * config/aarch64/aarch64-builtins.c
1326 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
1327 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
1328
76c36cb1 13292013-05-23 Martin Jambor <mjambor@suse.cz>
7d2fb524
MJ
1330
1331 PR middle-end/57347
1332 * tree.h (contains_bitfld_component_ref_p): Declare.
1333 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
70cc1536
UB
1334 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
1335 caller.
7d2fb524
MJ
1336 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
1337 not access a bit-field. Assert all final offsets are byte-aligned.
1338
ce521ae6
RB
13392013-05-23 Richard Biener <rguenther@suse.de>
1340
1341 PR tree-optimization/57380
1342 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
1343 least one invariant or re-used load.
1344 * passes.c (init_optimization_passes): Move pass_phiprop before
1345 pass_forwprop.
1346
75c7257f
JG
13472013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
1348
1349 * config/aarch64/aarch64-simd.md
1350 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
1351
af6d44b5
RB
13522013-05-23 Richard Biener <rguenther@suse.de>
1353
1354 PR middle-end/57381
1355 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
1356 OEP_CONSTANT_ADDRESS_OF retained.
1357
bd3647bf
JJ
13582013-05-23 Jakub Jelinek <jakub@redhat.com>
1359
1360 PR middle-end/57344
70cc1536
UB
1361 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
1362 don't lower unit. Handle unit not being always BITS_PER_WORD.
bd3647bf 1363
a55757ea
RB
13642013-05-23 Richard Biener <rguenther@suse.de>
1365
1366 PR rtl-optimization/57341
1367 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
1368 instead of true_dependence.
1369
cfb00b41
DM
13702013-05-22 David Malcolm <dmalcolm@redhat.com>
1371
dd1c676f
DM
1372 * bb-reorder.c (branch_threshold): Make const.
1373 (exec_threshold): Ditto.
cfb00b41 1374
f62511da
MM
13752013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1376 Pat Haugen <pthaugen@us.ibm.com>
1377 Peter Bergner <bergner@vnet.ibm.com>
1378
1379 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
1380 documentation for the power8 crypto builtins.
1381
1382 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
1383
1384 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
1385 macros for defining power8 builtin functions.
1386 (BU_P8V_AV_2): Likewise.
1387 (BU_P8V_AV_P): Likewise.
1388 (BU_P8V_VSX_1): Likewise.
1389 (BU_P8V_OVERLOAD_1): Likewise.
1390 (BU_P8V_OVERLOAD_2): Likewise.
1391 (BU_CRYPTO_1): Likewise.
1392 (BU_CRYPTO_2): Likewise.
1393 (BU_CRYPTO_3): Likewise.
1394 (BU_CRYPTO_OVERLOAD_1): Likewise.
1395 (BU_CRYPTO_OVERLOAD_2): Likewise.
1396 (XSCVSPDP): Fix typo, point to the correct instruction.
1397 (VCIPHER): Add power8 crypto builtins.
1398 (VCIPHERLAST): Likewise.
1399 (VNCIPHER): Likewise.
1400 (VNCIPHERLAST): Likewise.
1401 (VPMSUMB): Likewise.
1402 (VPMSUMH): Likewise.
1403 (VPMSUMW): Likewise.
1404 (VPERMXOR_V2DI): Likewise.
1405 (VPERMXOR_V4SI: Likewise.
1406 (VPERMXOR_V8HI: Likewise.
1407 (VPERMXOR_V16QI: Likewise.
1408 (VSHASIGMAW): Likewise.
1409 (VSHASIGMAD): Likewise.
1410 (VPMSUM): Likewise.
1411 (VPERMXOR): Likewise.
1412 (VSHASIGMA): Likewise.
1413
1414 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1415 __CRYPTO__ if the crypto instructions are available.
1416 (altivec_overloaded_builtins): Add support for overloaded power8
1417 builtins.
1418
1419 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
1420 support for power8 crypto builtins.
1421 (builtin_function_type): Likewise.
1422 (altivec_init_builtins): Add support for builtins that take vector
1423 long long (V2DI) arguments.
1424
1425 * config/rs6000/crypto.md: New file, define power8 crypto
1426 instructions.
1427
14282013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
1429 Pat Haugen <pthaugen@us.ibm.com>
1430 Peter Bergner <bergner@vnet.ibm.com>
1431
1432 * doc/invoke.texi (Option Summary): Add power8 options.
1433 (RS/6000 and PowerPC Options): Likewise.
1434
1435 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
1436 constraints.md instead of rs6000.h. Reorder w* constraints. Add
1437 wm, wn, wr documentation.
1438
1439 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
1440 registers if direct move instructions are enabled.
1441 (wn): New constraint for no registers.
1442 (wq): New constraint for quad word even GPR registers.
1443 (wr): New constraint if 64-bit instructions are enabled.
1444 (wv): New constraint if power8 vector instructions are enabled.
1445 (wQ): New constraint for quad word memory locations.
1446
1447 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
1448 constraint for 0..15 for crypto instructions.
1449 (gpc_reg_operand): If VSX allow registers in VSX registers as well
1450 as GPR and floating point registers.
1451 (int_reg_operand): New predicate to match only GPR registers.
1452 (base_reg_operand): New predicate to match base registers.
1453 (quad_int_reg_operand): New predicate to match even GPR registers
1454 for quad memory operations.
1455 (vsx_reg_or_cint_operand): New predicate to allow vector logical
1456 operations in both GPR and VSX registers.
1457 (quad_memory_operand): New predicate for quad memory operations.
1458 (reg_or_indexed_operand): New predicate for direct move support.
1459
1460 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
1461 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
1462 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
1463 (POWERPC_MASKS): Add power8 options.
1464 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
1465 various options.
1466
1467 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
1468 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
1469
1470 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
1471 (-mpower8-fusion): New power8 options.
1472 (-mpower8-fusion-sign): Likewise.
1473 (-mpower8-vector): Likewise.
1474 (-mcrypto): Likewise.
1475 (-mdirect-move): Likewise.
1476 (-mquad-memory): Likewise.
1477
1478 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
1479 power8.
1480 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
1481 registers.
70cc1536 1482 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
f62511da
MM
1483 (rs6000_debug_vector_unit): Add p8_vector.
1484 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
1485 definitions. Also print fusion state.
1486 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
1487 (rs6000_builtin_mask_calculate): Add power8 builtin support.
1488 (rs6000_option_override_internal): Add support for power8.
1489 (rs6000_common_init_builtins): Add debugging for skipped builtins
1490 if -mdebug=builtin.
1491 (rs6000_adjust_cost): Add power8 support.
1492 (rs6000_issue_rate): Likewise.
1493 (insn_must_be_first_in_group): Likewise.
1494 (insn_must_be_last_in_group): Likewise.
1495 (force_new_group): Likewise.
1496 (rs6000_register_move_cost): Likewise.
1497 (rs6000_opt_masks): Likewise.
1498
1499 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
1500 power8 capable assembler, default to power7 options.
1501 (TARGET_DIRECT_MOVE): Likewise.
1502 (TARGET_CRYPTO): Likewise.
1503 (TARGET_P8_VECTOR): Likewise.
1504 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
1505 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
1506 (VECTOR_MEM_P8_VECTOR_P): Likewise.
1507 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
1508 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
1509 (TARGET_XSCVDPSPN): Likewise.
1510 (TARGET_XSCVSPDPN): Likewsie.
1511 (TARGET_SYNC_HI_QI): Likewise.
1512 (TARGET_SYNC_TI): Likewise.
1513 (MASK_CRYPTO): Likewise.
1514 (MASK_DIRECT_MOVE): Likewise.
1515 (MASK_P8_FUSION): Likewise.
1516 (MASK_P8_VECTOR): Likewise.
70cc1536
UB
1517 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
1518 temporary used by some of the direct move instructions to get two FP
1519 temporary registers does not force creation of a stack frame.
f62511da
MM
1520 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
1521 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
1522 that any VSX registers are tieable, even if they are also an
1523 Altivec vector mode.
1524 (r6000_reg_class_enum): Add wm, wr, wv constraints.
1525 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
1526 (RS6000_BTM_CRYPTO): Likewise.
1527 (RS6000_BTM_COMMON): Likewise.
1528
1529 * config/rs6000/rs6000.md (cpu attribute): Add power8.
1530 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
1531 (enum rs6000_vector): Add power8 vector support.
1532
73a1a707
RR
15332013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1534
1535 PR target/19599
1536 PR target/57340
1537 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
1538 (any_sibcall_could_use_r3): this and handle indirect calls.
1539 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
1540
d28073d4
BS
15412013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1542
1543 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
1544
bee0b10c
RB
15452013-05-22 Richard Biener <rguenther@suse.de>
1546
1547 PR middle-end/57349
1548 * profile.c (branch_prob): Do not split blocks that are
1549 abnormally receiving from ECF_RETURNS_TWICE functions.
1550
98409b51
RS
15512013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
1552
1553 * recog.c (offsettable_address_addr_space_p): Fix calculation of
1554 address mode. Move pointer mode initialization to the same place.
1555
c0602ab8
MZ
15562013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1557
1558 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
1559 while it has any effect.
1560
4f7a634e
ER
15612013-05-21 Easwaran Raman <eraman@google.com>
1562
1563 PR tree-optimization/57322
9daf6dbb
ER
1564 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
1565 UID of the statement added to the BB to be 1.
4f7a634e 1566
a4ce1258
JJ
15672013-05-21 Jakub Jelinek <jakub@redhat.com>
1568
1569 PR tree-optimization/57331
70cc1536
UB
1570 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
1571 of conversion from pointer type to integral type with integer.
a4ce1258 1572
1b14621a
MJ
15732013-05-21 Martin Jambor <mjambor@suse.cz>
1574
1575 PR lto/57289
1576 * ipa-prop.c (ipa_read_node_info): Process param_used and
1577 controlled_uses in the same order as when writing.
1578
e60661f0
MG
15792013-05-21 Magnus Granberg <baldrick@free.fr>
1580
1581 PR plugins/56754
ee49aa34 1582 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
e60661f0 1583
4a61be9a
RB
15842013-05-21 Richard Biener <rguenther@suse.de>
1585
1586 PR tree-optimization/57318
1587 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
1588 estimate stmts with side-effects as likely eliminated.
1589
c52da5f7
RB
15902013-05-21 Richard Biener <rguenther@suse.de>
1591
1592 PR tree-optimization/57330
1593 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
1594 preserve the call stmts fntype.
1595
7ec67e2a
RB
15962013-05-21 Richard Biener <rguenther@suse.de>
1597
1598 PR tree-optimization/57303
1599 * tree-ssa-sink.c (statement_sink_location): Improve killing
1600 stmt detection and properly handle self-assignments.
1601
b112d513
CB
16022013-05-21 Christian Bruel <christian.bruel@st.com>
1603
55805e54
YR
1604 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
1605 spanning registers. LEAF_REG_REMAP is supported only for contiguous
b112d513
CB
1606 registers. Set register size out of the PARALLEL loop.
1607
14c2ec26
OE
16082013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
1609
1610 PR target/56547
1611 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
1612 (*fmasf4, *fmasf4_media): New insns.
1613
da734fa1
RS
16142013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1615
1616 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
1617 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
1618 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
1619 (mips_idiv_insns): Update the comments to say that the returned
1620 instruction counts are in units of BASE_INSN_LENGTH.
1621 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
1622 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
1623 using 2 rather than 4 as the length of indirect MIPS16 and
1624 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
1625 length of a NOP. Don't divide MIPS16 lengths by 2.
1626 (mips16_split_long_branches): Assume a branch is long if the
1627 length is greater than 4 rather than 8.
1628 * config/mips/mips.md (length): Give MIPS16 lengths directly,
1629 rather than multiplying them by 2. Multiply instruction counts
1630 by BASE_INSN_LENGTH rather than 4.
1631 (*jump_mips16, tls_get_tp_mips16_<mode>)
1632 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
1633
13719e8b
RS
16342013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1635
1636 * config/mips/mips.md (extended_mips16): Remove branch case.
1637 (length): Remove duplicated extended_mips16 test.
1638
c3850d14
RS
16392013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
1640
1641 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
1642
8da2e059
RS
16432013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
1644
1645 * recog.h (Recog_data): Rename to...
1646 (recog_data_d): ...this.
1647 (recog_data): Update accordingly.
1648 * recog.c (recog_data): Likewise.
1649 * reload.c (save_recog_data): Likewise.
1650 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
1651 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
1652
2df013f3
JB
16532013-05-17 Julian Brown <julian@codesourcery.com>
1654
1655 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
1656 found in a REG_EQUAL note, invalidate it.
1657
933f507d
ER
16582013-05-17 Easwaran Raman <eraman@google.com>
1659
1660 * tree-ssa-reassoc.c (find_insert_point): New function.
1661 (insert_stmt_after): Likewise.
1662 (get_def_stmt): Likewise.
1663 (ensure_ops_are_available): Likewise.
1664 (not_dominated_by): Likewise.
1665 (rewrite_expr_tree): Do not move statements beyond what is
1666 necessary. Remove call to swap_ops_for_binary_stmt...
1667 (reassociate_bb): ... and move it here.
1668 (build_and_add_sum): Assign UIDs for new statements.
1669 (linearize_expr): Likewise.
1670 (do_reassoc): Renumber gimple statement UIDs.
1671
e01c7cca
JH
16722013-05-17 Jan Hubicka <jh@suse.cz>
1673
1674 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
1675 weakrefs.
1676 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
e2420687
UB
1677 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
1678 weakrefs.
e01c7cca
JH
1679 (output_weakrefs): Update.
1680
c3272a92
PCC
16812013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
1682 Martin Jambor <mjambor@suse.cz>
1683
1684 PR middle-end/57276
1685 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
1686 value that corresponds to the given aggval is found in values vector.
1687
11c2aa39
UB
16882013-05-17 Uros Bizjak <ubizjak@gmail.com>
1689
1690 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
1691 sse, sse2, sse3, ssse3 and sse4a flags to options.
1692
abecc8c6
DM
16932013-05-17 David Malcolm <dmalcolm@redhat.com>
1694
1695 * gengtype-state.c: (s_expr_writer): New class, to handle
1696 prettifying of output layout of s-expressions.
1697 (state_writer): New class, to write out gtype.state.
1698 (state_written_type_count): Move this variable into member data of
1699 state_writer.
1700 (s_expr_writer::s_expr_writer): New code: constructor for new class
1701 (state_writer::state_writer(): ditto
1702 (s_expr_writer::write_new_line): New function
1703 (s_expr_writer::write_any_indent): ditto
1704 (s_expr_writer::begin_s_expr): ditto
1705 (s_expr_writer::end_s_expr): ditto
1706 (write_state_fileloc): convert to method of state_writer...
1707 (state_writer:: write_state_fileloc): ...and use methods of
1708 s_expr_writer to write indentation into the gtype.state output file
1709 to visually represent the hierarchical structure of the list
1710 structures
1711 (write_state_fields): ditto, renaming to...
1712 (state_writer::write_state_fields)
1713 (write_state_a_string): ditto, renaming to...
1714 (state_writer::write_state_a_string)
1715 (write_state_string_option): ditto, renaming to...
1716 (state_writer::write_state_string_option)
1717 (write_state_type_option): ditto, renaming to...
1718 (state_writer::write_state_type_option)
1719 (write_state_nested_option): ditto, renaming to...
1720 (state_writer::write_state_nested_option)
1721 (write_state_option): ditto, renaming to...
1722 (state_writer::write_state_option)
1723 (write_state_options): ditto, renaming to...
1724 (state_writer::write_state_options)
1725 (write_state_lang_bitmap): ditto, renaming to...
1726 (state_writer::write_state_lang_bitmap)
1727 (write_state_version): ditto, renaming to...
1728 (state_writer::write_state_version)
1729 (write_state_scalar_type): ditto, renaming to...
1730 (state_writer::write_state_scalar_type)
1731 (write_state_string_type): ditto, renaming to...
1732 (state_writer::write_state_string_type)
1733 (write_state_undefined_type): ditto, renaming to...
1734 (state_writer::write_state_undefined_type)
1735 (write_state_struct_union_type): ditto, renaming to...
1736 (state_writer::write_state_struct_union_type)
1737 (write_state_struct_type): ditto, renaming to...
1738 (state_writer::write_state_struct_type)
1739 (write_state_user_struct_type): ditto, renaming to...
1740 (state_writer::write_state_user_struct_type)
1741 (write_state_lang_struct_type): ditto, renaming to...
1742 (state_writer::write_state_lang_struct_type)
1743 (write_state_param_struct_type): ditto, renaming to...
1744 (state_writer::write_state_param_struct_type)
1745 (write_state_pointer_type): ditto, renaming to...
1746 (state_writer::write_state_pointer_type)
1747 (write_state_array_type): ditto, renaming to...
1748 (state_writer::write_state_array_type)
1749 (write_state_gc_used): ditto, renaming to...
1750 (state_writer::write_state_gc_used)
1751 (write_state_common_type_content): ditto, renaming to...
1752 (state_writer::write_state_common_type_content)
1753 (write_state_type): ditto, renaming to...
1754 (state_writer::write_state_type)
1755 (write_state_pair_list): ditto, renaming to...
1756 (state_writer::write_state_pair_list)
1757 (write_state_pair): ditto, renaming to...
1758 (state_writer::write_state_pair)
1759 (write_state_typedefs): ditto, renaming to...
1760 (state_writer::write_state_typedefs)
1761 (write_state_structures): ditto, renaming to...
1762 (state_writer::write_state_structures)
1763 (write_state_param_structs): ditto, renaming to...
1764 (state_writer::write_state_param_structs)
1765 (write_state_variables): ditto, renaming to...
1766 (state_writer::write_state_variables)
1767 (write_state_srcdir): ditto, renaming to...
1768 (state_writer::write_state_srcdir)
1769 (write_state_files_list): ditto, renaming to...
1770 (state_writer::write_state_files_list)
1771 (write_state_languages): ditto, renaming to...
1772 (state_writer::write_state_languages)
1773 (write_state): create a state_writer instance and use it when
1774 writing out the state file
1775
d6545f29
MS
17762013-05-17 Mike Stump <mikestump@comcast.net>
1777
816a3f73 1778 PR rtl-optimization/57304
d6545f29
MS
1779 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
1780 accessing DF_REF_REAL_LOC.
1781
38c821cf
JJ
17822013-05-17 Jakub Jelinek <jakub@redhat.com>
1783
1784 PR rtl-optimization/57281
1785 PR rtl-optimization/57300
1786 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
1787 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
1788 what the other splitter did if the registers are dead.
1789
2a293391
RB
17902013-05-17 Richard Biener <rguenther@suse.de>
1791
1792 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
1793 MEM_REF offsets.
1794
17042d2b
JJ
17952013-05-17 Jakub Jelinek <jakub@redhat.com>
1796
1797 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
1798 linking.
1799
5b115c1f
MP
18002013-05-17 Marek Polacek <polacek@redhat.com>
1801
11c2aa39
UB
1802 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
1803 length when doing non-zero store of storing '\0' to '\0'.
5b115c1f 1804
52d84413
JJ
18052013-05-17 Jakub Jelinek <jakub@redhat.com>
1806
68119618
JJ
1807 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
1808 vect_external_def oprnd1 with loop_vinfo, try to emit
1809 optional cast, negation and and stmts on the loop preheader
1810 edge instead of into the pattern def seq.
1811
52d84413
JJ
1812 PR tree-optimization/57051
1813 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
1814 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
1815
17b962bd
NC
18162013-05-16 Nick Clifton <nickc@redhat.com>
1817
1818 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
1819 (rl78_is_naked_func): New function.
1820 (rl78_expand_prologue): Skip prologue generation for naked
1821 functions.
1822 (rl78_expand_epilogue): Skip epilogue generation for naked
1823 functions.
1824 * doc/extend.texi (naked): Add RL78 to the list of processors
1825 that supports this attribute.
1826
b1a0f84e
JL
18272013-05-16 Jeff Law <law@redhat.com>
1828
1829 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
1830
af0e415b
UB
18312013-05-16 Uros Bizjak <ubizjak@gmail.com>
1832
1833 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
1834 cache parameters using detect_caches_amd also for CYRIX,
1835 NSC and TM2 signatures.
1836
19db293a
UB
18372013-05-16 Uros Bizjak <ubizjak@gmail.com>
1838 Dzianis Kahanovich <mahatma@eu.by>
1839
1840 PR target/45359
1841 PR target/46396
1842 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1843 VIA/Centaur processors and determine their cache parameters
1844 using detect_caches_amd.
1845
251a41b9
TJ
18462013-05-16 Teresa Johnson <tejohnson@google.com>
1847
1848 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
1849 (rtl_verify_edges): New function.
1850 (rtl_verify_bb_insns): Ditto.
1851 (rtl_verify_bb_pointers): Ditto.
1852 (rtl_verify_bb_insn_chain): Ditto.
1853 (rtl_verify_fallthru): Ditto.
1854 (rtl_verify_bb_layout): Ditto.
1855 (rtl_verify_flow_info_1): Outline checks into new functions.
1856 (rtl_verify_flow_info): Ditto.
1857
f14540b6
SE
18582013-05-16 Steve Ellcey <sellcey@imgtec.com>
1859
1860 * cfghooks.c (copy_bbs): Add update_dominance argument.
1861 * cfghooks.h (copy_bbs): Update prototype.
1862 * tree-cfg.c (gimple_duplicate_sese_region):
1863 Add update_dominance argument.
1864 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
1865 * tree-ssa-loop-ch.c (copy_loop_headers): Update
1866 gimple_duplicate_sese_region call.
1867 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
1868 Update copy_bbs call.
1869 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
1870 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
1871
7e9a3abb
JJ
18722013-05-16 Jakub Jelinek <jakub@redhat.com>
1873
1874 * tree-vectorizer.h (NUM_PATTERNS): Increment.
1875 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
1876 vect_recog_rotate_pattern.
1877 (vect_recog_rotate_pattern): New function.
1878
427b248d
JM
18792013-05-16 Jason Merrill <jason@redhat.com>
1880
1881 * Makefile.in (LLINKER): New variable.
1882 (mostlyclean): Remove link mutex.
1883 * configure.ac: Handle --enable-link-mutex.
1884 * lock-and-run.sh: New script.
1885
b871e3d2
RR
18862013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1887
1888 PR target/19599
1889 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
1890 for NULL decl.
1891
ce858126
RO
18922013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1893
1894 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
1895
798d3d04
GY
18962013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
1897
1898 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
1899 * config/arm/arm.c (next_consecutive_mem): New function.
1900 (gen_movmem_ldrd_strd): Likewise.
1901 * config/arm/arm.md (movmemqi): Update condition and code.
1902 (unaligned_loaddi, unaligned_storedi): New patterns.
1903
0baddc45
RO
19042013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1905
1906 * config.gcc: Obsolete *-*-solaris2.9*.
1907 * doc/install.texi (Specific, *-*-solaris2*): Document it.
1908
aa9d5bcf
RB
19092013-05-16 Richard Biener <rguenther@suse.de>
1910
1911 * passes.c (init_optimization_passes): Move pass_parallelize_loops
1912 earlier, after GRAPHITE transforms and IV canonicalization.
1913
5a0f4dd3
JJ
19142013-05-16 Jakub Jelinek <jakub@redhat.com>
1915
1916 * omp-low.c (extract_omp_for_data): For collapsed loops,
1917 if at least one of the loops is known at compile time to
1918 iterate zero times, set count to 0.
1919 (expand_omp_regimplify_p): New function.
1920 (expand_omp_for_generic): For collapsed loops, if at least
1921 one of the loops isn't known to iterate at least once,
1922 add runtime check with setting count to 0.
1923 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1924 For unsigned types if it isn't known at compile time that
1925 the loop will iterate at least once, add runtime check to bypass
1926 the whole loop if initial condition isn't true.
1927
e3753785
NS
19282013-05-16 Nathan Sidwell <nathan@codesourcery.com>
1929
1930 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
1931
43bb4dd1
MG
19322013-05-16 Marc Glisse <marc.glisse@inria.fr>
1933
1934 PR middle-end/57286
1935 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
1936 transformations to avoid an infinite loop.
1937
3571dde6
MP
19382013-05-16 Marek Polacek <polacek@redhat.com>
1939
1940 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
1941
b8b3f0ca
LE
19422013-05-15 Leif Ekblad <leif@rdos.net>
1943
1944 * config/i386/i386.c (ix86_decompose_address): Use
1945 DEFAULT_TLS_SEG_REG to access TLS segment register.
1946 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
1947 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
1948 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
1949
e299a383
RS
19502013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
1951
1952 PR target/57260
1953 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
1954 sibling calls to functions that would normally be lazily bound,
1955 unless $gp is call-clobbered.
1956
e7208ea3
UB
19572013-05-15 Uros Bizjak <ubizjak@gmail.com>
1958
19db293a 1959 * config/i386/i386.c (ix86_option_override_internal): Update
e7208ea3 1960 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
5d280e2b
UB
1961 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
1962 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
e7208ea3
UB
1963 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
1964 of TARGET_3DNOW.
1965 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
1966
e7413f3d
AS
19672013-05-15 Andreas Schwab <schwab@suse.de>
1968
1969 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
1970 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
1971 third operand.
1972
ad4db775
TJ
19732013-05-15 Teresa Johnson <tejohnson@google.com>
1974
1975 * loop-unroll.c (report_unroll_peel): Check decision before
1976 emitting unroll/peel message.
1977
af205f67
TJ
19782013-05-15 Teresa Johnson <tejohnson@google.com>
1979
1980 * function.h (has_bb_partition): New rtl_data flag.
1981 (bb_reorder_complete): Ditto.
1982 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
1983 instead of flag_reorder_blocks_and_partition.
1984 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
1985 with some enhancements.
1986 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
1987 * bb-reorder.c (connect_traces): Check for has_bb_partition
1988 instead of flag_reorder_blocks_and_partition.
1989 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
1990 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
1991 verify_hot_cold_block_grouping.
1992 (partition_hot_cold_basic_blocks): Set has_bb_partition.
1993
9adcfa3c
RR
19942013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1995
1996 PR target/19599
1997 * config/arm/predicates.md (call_insn_operand): New predicate.
1998 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
1999 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
2000 if insn is not a tail call.
2001 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
2002 registers.
2003 * config/arm/arm.h (enum reg_class): New caller save register class.
2004 (REG_CLASS_NAMES): Likewise.
2005 (REG_CLASS_CONTENTS): Likewise.
2006 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
2007 without decls.
2008
ccb3ad87
RB
20092013-05-15 Richard Biener <rguenther@suse.de>
2010
2011 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
2012 of MSG_OPTIMIZED_LOCATIONS.
2013 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
2014 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
2015 message.
2016 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
2017 of MSG_OPTIMIZED_LOCATIONS.
2018 (execute_vect_slp): Likewise.
2019 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
2020 (vect_create_cond_for_alias_checks): Likewise.
2021 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
2022 (vect_recog_widen_mult_pattern): Likewise.
2023 (vect_recog_widen_sum_pattern): Likewise.
2024 (vect_recog_over_widening_pattern): Likewise.
2025 (vect_recog_widen_shift_pattern): Likewise.
2026 (vect_recog_vector_vector_shift_pattern): Likewise.
2027 (vect_recog_divmod_pattern): Likewise.
2028 (vect_recog_mixed_size_cond_pattern): Likewise.
2029 (vect_recog_bool_pattern): Likewise.
2030 (vect_pattern_recog_1): Likewise.
2031
48b1474e
MJ
20322013-05-15 Martin Jambor <mjambor@suse.cz>
2033
2034 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
2035 non-functions to builtin_unreachable.
2036 * ipa-inline-transform.c (inline_call): Do not assert estimates were
2037 correct when new direct edges were discovered.
2038
9de04252
MJ
20392013-05-15 Martin Jambor <mjambor@suse.cz>
2040
2041 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
2042 header, print symbol order instead of node uid, print more information
2043 about indirect edge targets.
2044 (ipa_make_edge_direct_to_target): Print symbol order instead of node
2045 uids.
2046 (ipa_make_edge_direct_to_target): Likewise.
2047 (remove_described_reference): Likewise.
2048 (propagate_controlled_uses): Likewise.
2049 (ipa_print_node_params): Also print symbol order.
2050 (ipcp_transform_function): Print symbol order instead of node uids.
2051 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
2052 (cgraph_get_create_real_symbol_node): Likewise.
2053 * ipa-cp.c (print_lattice): Likewise.
2054 (print_all_lattices): Likewise.
2055 (determine_versionability): Likewise.
2056 (initialize_node_lattices): Likewise.
2057 (estimate_local_effects): Likewise.
2058 (update_profiling_info): Likewise.
2059 (create_specialized_node): Likewise.
2060 (perhaps_add_new_callers): Likewise.
2061 (decide_about_value): Likewise.
2062 (decide_whether_version_node): Likewise.
2063 (identify_dead_nodes): Likewise.
2064 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
2065 (dump_inline_summary): Likewise.
2066 (estimate_node_size_and_time): Likewise.
2067 (inline_analyze_function): Likewise.
2068 * ipa-inline.c (report_inline_failed_reason): Likewise.
2069 (want_early_inline_function_p): Likewise.
2070 (edge_badness): Likewise.
2071 (update_edge_key): Likewise.
2072 (inline_small_functions): Likewise. Add dumping of order to two other
2073 dumps.
2074 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
2075 instead of node uids.
2076 (propagate_pure_const): Likewise.
2077 (propagate_pure_const): Likewise.
2078 * ipa-utils.c (dump_cgraph_node_set): Likewise.
2079 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
2080 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
2081 of node uids.
2082 * tree-pretty-print.c (dump_function_header): Likewise.
2083 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
2084 Print symbol order instead of node uids.
2085
1dd03b91
AK
20862013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2087
2088 * config/s390/s390.c (s390_register_move_cost): Don't impose the
2089 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
2090
fdf6a7b9
RB
20912013-05-15 Richard Biener <rguenther@suse.de>
2092
2093 PR tree-optimization/57275
2094 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
2095 return value for fail to do runtime alias checks for gather loads.
2096
2d6e4603
JH
20972013-05-15 Jan Hubicka <jh@suse.cz>
2098
2099 PR lto/57038
2100 PR lto/47375
e7208ea3
UB
2101 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
2102 weakrefs are not external.
2103 (lto_symtab_merge_decls): Fix thinko when dealing with
2104 non-lto_symtab decls.
2d6e4603
JH
2105 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
2106 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
2107 * varpool.c (dump_varpool_node): Dump more flags.
2108
83f44b39
GG
21092013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2110
2111 * config/i386/i386.c (processor_alias_table): Add instruction
2112 FSGSBASE for AMD bdver3 architecture.
2113
2e55d062
JJ
21142013-05-14 Jakub Jelinek <jakub@redhat.com>
2115
2116 * tree.c (warn_deprecated_use): Print file:line using locus color.
2117 * diagnostic.c (diagnostic_report_current_module): Print file:line
2118 and file:line:column using locus color.
2119
0bfdb81e
MS
21202013-05-14 Mike Stump <mikestump@comcast.net>
2121
2122 * gdbinit.in: Add __null.
2123
a508ef22
MS
21242013-05-14 Mike Stump <mikestump@comcast.net>
2125
2126 * recog.h: Rename struct recog_data to Recog_data.
2127 * recog.c: Likewise.
2128 * reload.c (can_reload_into): Likewise.
2129 * config/picochip/picochip.c: Likewise.
2130
e7180acb
MS
21312013-05-14 Mike Stump <mikestump@comcast.net>
2132
2133 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
2134
61216c26
SB
21352013-05-14 Steven Bosscher <steven@gcc.gnu.org>
2136
fd6beed4
SB
2137 * resource.h (struct resources): Remove unch_memory member.
2138 (CLEAR_RESOURCE): Don't clear unch_memory.
2139 * resource.c (mark_referenced_resources): Don't set it.
2140 (mark_set_resources): Likewise.
2141 (mark_target_live_regs): Don't clear it.
2142 (init_resource_info): Likewise.
2143 * reorg.c (resource_conflicts_p): Don't compare it.
2144 (redundant_insn): Don't set it.
2145
61216c26
SB
2146 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
2147 Remove prototypes.
2148 * emit-rtl.c (next_label): Remove unused function.
2149 (skip_consecutive_labels, link_cc0_insns): Move to ...
2150 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
2151 only place where these functions are used, and make them static.
2152
418d1b87
MG
21532013-05-14 Marc Glisse <marc.glisse@inria.fr>
2154
2155 * fold-const.c (fold_negate_expr): Handle vectors.
2156 (fold_truth_not_expr): Make it static.
2157 (fold_invert_truthvalue): New static function.
2158 (invert_truthvalue_loc): Handle vectors. Do not call
2159 fold_truth_not_expr directly.
2160 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
2161 <TRUTH_NOT_EXPR>: Do not cast to boolean.
2162 (fold_comparison): Handle vector constants.
2163 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
2164 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
2165 * tree.h (fold_truth_not_expr): Remove declaration.
2166
fc21784d
JG
21672013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
2168
2169 * config/aarch64/aarch64-simd.md
2170 (aarch64_vcond_internal<mode>): Rename to...
2171 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
2172 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
2173 float modes. Clarify all iterator modes.
2174 (vcond<mode><mode>): Use new name for vcond expanders.
2175 (vcond<v_cmp_result><mode>): Likewise.
2176 (vcondu<mode><mode>: Likewise.
2177 * config/aarch64/iterators.md (VDQF_COND): New.
2178
d4c52634
MG
21792013-05-14 Marc Glisse <marc.glisse@inria.fr>
2180
2181 PR bootstrap/57266
2182 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
2183 variable for the shift amount. Check that we shift by non-negative
2184 amounts.
2185
2b261262
CLT
21862013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
2187
2188 PR target/42017
2189 * config/arm/arm.h (EPILOGUE_USES): Only return true
2190 for LR_REGNUM after epilogue_completed.
2191
6e022d7b
JR
21922013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
2193
2194 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
e7208ea3 2195 is error_mark_node.
6e022d7b 2196
56cf7859
RO
21972013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2198
2199 PR target/57261
2200 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
2201 and Solaris 11+/x86 with gld.
2202 * configure: Regenerate.
2203
75776c6d
JJ
22042013-05-14 Jakub Jelinek <jakub@redhat.com>
2205
2206 * expmed.c (expand_shift_1): Canonicalize rotates by
2207 constant bitsize / 2 to bitsize - 1.
7f998021 2208 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
75776c6d
JJ
2209 case ROTATERT>: Likewise.
2210
2211 Revert:
2212 2013-05-10 Jakub Jelinek <jakub@redhat.com>
2213
2214 * config/i386/i386.md (rotateinv): New code attr.
2215 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2216 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2217 roll $31, %eax, etc.
2218
df35498a
RB
22192013-05-14 Richard Biener <rguenther@suse.de>
2220
2221 PR middle-end/57235
2222 * tree-eh.c (sink_clobbers): Give up for successors with
2223 multiple predecessors and no virtual uses.
2224
cc6e7ece
EB
22252013-05-14 Eric Botcazou <ebotcazou@adacore.com>
2226
2227 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
2228 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
2229
f778dd4d
JJ
22302013-05-14 Jakub Jelinek <jakub@redhat.com>
2231
2232 PR middle-end/57251
2233 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
2234 the case when both op0 and op1 have VOIDmode.
2235
bad4df9b
KP
22362013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2237
2238 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
2239 in multiply-accumulate mode.
2240
56f3e9ac
GW
22412013-05-13 Guozhi Wei <carrot@google.com>
2242
2243 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
2244
a3d7ab92
KT
22452013-05-13 Kai Tietz <ktietz@redhat.com>
2246
2247 PR target/56975
2248 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
e7208ea3 2249 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
a3d7ab92 2250 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
e7208ea3 2251 * config/i386/i386.c (ix86_option_override_internal): Likewise.
a3d7ab92
KT
2252 (ix86_expand_prologue): Likewise.
2253 (ix86_expand_split_stack_prologue): Likewise.
2254 (legitimate_pic_address_disp_p): Likewise.
2255 (legitimize_pic_address): Likewise.
2256 (legitimize_tls_address): Likewise.
2257 (legitimize_pe_coff_symbol): Likewise.
2258 (output_pic_addr_const): Likewise.
2259 (construct_plt_address): Likewise.
2260 (ix86_expand_call): Likewise.
2261 (x86_output_mi_thunk): Likewise.
2262 (x86_function_profiler): Likewise.
2263
c59b7e28
SN
22642013-05-13 Sofiane Naci <sofiane.naci@arm.com>
2265
2266 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
2267 similar switch cases.
2268 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
2269 (aarch64_simd_mov_to_<mode>low): Delete.
2270 (aarch64_simd_mov_to_<mode>high): Delete.
2271 (move_lo_quad_<mode>): Add w<-r alternative.
2272 (aarch64_simd_move_hi_quad_<mode>): Likewise.
2273 (aarch64_simd_mov_from_*): Update type attribute.
2274 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
2275 statement.
2276
5f28524a
JH
22772013-05-13 Jan Hubicka <jh@suse.cz>
2278
2279 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
2280 * config/i386/i386.c (ix86_compute_frame_layout,
e7208ea3
UB
2281 ix86_expand_epilogue, emit_i387_cw_initialization,
2282 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
2283 ix86_local_alignment): Fix use of size/speed predicates.
5f28524a 2284
ae6fa899
JJ
22852013-05-13 Jakub Jelinek <jakub@redhat.com>
2286
2287 PR tree-optimization/45216
2288 PR tree-optimization/57157
2289 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
2290 the (-Y) & (B - 1) variant if OP is |.
2291 * expmed.c (expand_shift_1): For rotations by const0_rtx just
2292 return shifted. Use (-op1) & (prec - 1) as other_amount
2293 instead of prec - op1.
2294
4502fe8d
MJ
22952013-05-13 Martin Jambor <mjambor@suse.cz>
2296
2297 PR middle-end/42371
2298 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
2299 (ipa_constant_data): New type.
2300 (ipa_jump_func): Use ipa_constant_data to hold information about
2301 constant jump functions.
2302 (ipa_get_jf_constant): Adjust to jump function type changes.
2303 (ipa_get_jf_constant_rdesc): New function.
2304 (ipa_param_descriptor): New field controlled_uses.
2305 (ipa_get_controlled_uses): New function.
2306 (ipa_set_controlled_uses): Likewise.
2307 * ipa-ref.h (ipa_find_reference): Declare.
2308 * ipa-prop.c (ipa_cst_ref_desc): New type.
2309 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
2310 changes.
2311 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
2312 New parameter cs. Adjust all callers.
2313 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
2314 (remove_described_reference): New function.
2315 (jfunc_rdesc_usable): Likewise.
2316 (try_make_edge_direct_simple_call): Decrement controlled use count,
2317 attempt to remove reference if it hits zero.
2318 (combine_controlled_uses_counters): New function.
2319 (propagate_controlled_uses): Likewise.
2320 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
2321 (ipa_edge_duplication_hook): Duplicate reference descriptions.
2322 (ipa_print_node_params): Print described use counter.
2323 (ipa_write_jump_function): Adjust to jump function type changes.
2324 (ipa_read_jump_function): New parameter CS, pass it to
2325 ipa_set_jf_constant. Adjust caller.
2326 (ipa_write_node_info): Stream controlled use count
2327 (ipa_read_node_info): Likewise.
2328 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
2329 asserting.
2330 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
2331 count. Remove cloning-added reference if it reaches zero.
2332 * ipa-ref.c (ipa_find_reference): New function.
2333
0864bfc2
GG
23342013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
2335
e7208ea3 2336 * config/i386/i386.c (processor_target_table): Modified default
0864bfc2
GG
2337 alignment values for AMD BD and BT architectures.
2338
640bfeb2
MG
23392013-05-13 Marc Glisse <marc.glisse@inria.fr>
2340
2341 * tree-vect-generic.c (uniform_vector_p): Move ...
2342 * tree.c (uniform_vector_p): ... here.
2343 * tree.h (uniform_vector_p): Declare it.
2344 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
2345 into a scalar.
2346
3a60f32b
JJ
23472013-05-13 Jakub Jelinek <jakub@redhat.com>
2348
198fe1bf
JJ
2349 PR tree-optimization/57230
2350 * tree-ssa-strlen.c (handle_char_store): Record length for
2351 array store from STRING_CST.
2352
3a60f32b
JJ
2353 PR tree-optimization/57230
2354 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
2355 check.
2356
566be57c
JR
23572013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
2358
2359 * config/epiphany/epiphany.c (epiphany_init): Check size of
2360 NUM_MODES_FOR_MODE_SWITCHING.
2361 (epiphany_expand_prologue):
2362 Remove CONFIG_REGNUM initial value handling code.
2363 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
2364 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
2710a27a 2365 (emit_set_fp_mode, epiphany_mode_after): Likewise.
566be57c
JR
2366 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
2367 Don't return 1 for FP_MODE_NONE.
2368 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
2369 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
2370 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
2371 * config/epiphany/epiphany.md (save_config): New pattern.
2372
0f2c2331
UB
23732013-05-12 Uros Bizjak <ubizjak@gmail.com>
2374
2375 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
2376
5b3f93c7
UB
23772013-05-10 Uros Bizjak <ubizjak@gmail.com>
2378
2379 * config/i386/i386.md (memory): Handle sseishft1.
2380 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
2381 (*vec_extractv2di_1): Ditto.
2382
1f873f0e
VM
23832013-05-10 Vladimir Makarov <vmakarov@redhat.com>
2384
2385 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
2386 saved registers.
2387
341427fa 23882013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
d7de6455
SH
2389
2390 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
2391 Add mthumb/march=armv7-a multilib.
2392 Add mthumb/march=armv7-r multilib.
2393 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
2394
9e69bdde
RC
23952013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
2396
2397 * config/v850/t-rtems: Add more multilibs.
2398
9ff09a22
RB
23992013-05-10 Richard Biener <rguenther@suse.de>
2400
2401 PR tree-optimization/57214
2402 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
2403 not propagate from SSA names that occur in abnormal PHI nodes.
2404
a5e0cd1d
MG
24052013-05-10 Marc Glisse <marc.glisse@inria.fr>
2406
2407 * stor-layout.c (element_precision): New function.
2408 * machmode.h (element_precision): Declare it.
2409 * tree.c (build_minus_one_cst): New function.
2410 (element_precision): Likewise.
2411 * tree.h (build_minus_one_cst): Declare new function.
2412 (element_precision): Likewise.
2413 * fold-const.c (operand_equal_p): Use element_precision.
2414 (fold_binary_loc): Handle vector types.
2415 * convert.c (convert_to_integer): Use element_precision.
2416 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
2417 separately.
2418
cb2558bc
RS
24192013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
2420
2421 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
2422 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
2423 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
2424 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2425 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
2426 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
2427 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
2428 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
2429 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
2430 (Uuw8): New constraints.
2431 (Usb4): Move into alphabetical order.
2432 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
2433 (sd8_operand, ub8_operand, uw8_operand): New predicates.
2434 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
2435 previously unnamed patterns.
2436 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
2437 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
2438 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
2439 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
2440 of set_attr_alternative/if_then_else. Use extended_mips16 instead
2441 of specific lengths.
2442
cb3b8d33
JJ
24432013-05-10 Jakub Jelinek <jakub@redhat.com>
2444
6f93c008
JJ
2445 * config/i386/i386.md (rotateinv): New code attr.
2446 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
2447 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
2448 roll $31, %eax, etc.
2449
cb3b8d33
JJ
2450 PR tree-optimization/45216
2451 PR tree-optimization/57157
2452 * tree-ssa-forwprop.c (simplify_rotate): New function.
2453 (ssa_forward_propagate_and_combine): Call it.
2454
afb119be
RB
24552013-05-10 Richard Biener <rguenther@suse.de>
2456
2457 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
2458 disable peeling when we version for aliasing.
2459 (vector_alignment_reachable_p): Honor explicit user alignment.
2460 (vect_supportable_dr_alignment): Likewise.
2461 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
2462 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
2463 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
2464 then peeling to arrange for the cost-model check to come first.
2465
01ae4861
AM
24662013-05-10 Alan Modra <amodra@gmail.com>
2467
2468 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
2469 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
2470 * configure: Regenerate.
2471
ebc9a431
AM
24722013-05-10 Alan Modra <amodra@gmail.com>
2473
2474 PR target/55033
2475 * varasm.c (default_elf_select_section): Move !DECL_P check..
2476 (get_named_section): ..to here before calling get_section_name.
2477 Adjust assertion.
2478 (default_section_type_flags): Add DECL_P check.
2479 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
2480 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
2481
d4bca93c
JR
24822013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
2483
2484 * config/epiphany/epiphany.c (epiphany_expand_prologue):
2485 When using gen_stack_adjust_str with a register offset, add a
2486 REG_FRAME_RELATED_EXPR note.
2487
60ca9a65
UB
24882013-05-09 Uros Bizjak <ubizjak@gmail.com>
2489
2490 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
2491 (*vec_extractv4si_zext_mem): Ditto.
2492 (*vec_extractv2di): Add 0->x and x->x alternatives.
2493 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
2494 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
2495
a3409c02
JM
24962013-05-09 Jason Merrill <jason@redhat.com>
2497
0138d6b2
JM
2498 N3639 C++1y VLA support
2499 * gimplify.c (gimplify_vla_decl): Don't touch an existing
2500 DECL_VALUE_EXPR.
2501
a3409c02
JM
2502 * tree.c (build_constructor_va): New.
2503 * tree.h: Declare it.
2504
66e6b990
MJ
25052013-05-09 Martin Jambor <mjambor@suse.cz>
2506
2507 PR lto/57084
2508 * gimple-fold.c (canonicalize_constructor_val): Call
2509 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
2510
64cfa6c0
JH
25112013-05-09 Jan Hubicka <jh@suse.cz>
2512 Richard Biener <rguenther@suse.de>
2513
2514 PR lto/54095
2515 * symtab.c (symtab_make_decl_local): Do not add private names.
2516
c3167b00
JH
25172013-05-09 Jan Hubicka <jh@suse.cz>
2518
2519 PR lto/54095
2520 * symtab.c (insert_to_assembler_name_hash): Handle clones.
2521 (unlink_from_assembler_name_hash): Likewise.
2522 (symtab_prevail_in_asm_name_hash, symtab_register_node,
2523 symtab_unregister_node, symtab_initialize_asm_name_hash,
2524 change_decl_assembler_name): Update.
2525
12dc6974
SN
25262013-05-09 Sofiane Naci <sofiane.naci@arm.com>
2527
2528 * config/aarch64/aarch64.md: New movtf split.
2529 (*movtf_aarch64): Update.
2530 (aarch64_movdi_tilow): Handle TF modes and rename to
2531 aarch64_movdi_<mode>low.
2532 (aarch64_movdi_tihigh): Handle TF modes and rename to
2533 aarch64_movdi_<mode>high
2534 (aarch64_movtihigh_di): Handle TF modes and rename to
2535 aarch64_mov<mode>high_di
2536 (aarch64_movtilow_di): Handle TF modes and rename to
2537 aarch64_mov<mode>low_di
2538 (aarch64_movtilow_tilow): Remove spurious whitespace.
2539 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
2540 splits.
2541 (aarch64_print_operand): Update.
2542
227eb343
AM
25432013-05-09 Alan Modra <amodra@gmail.com>
2544
2545 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
2546 powerpc64le.
2547 * configure: Regenerate.
2548
0b013847
UB
25492013-05-08 Uros Bizjak <ubizjak@gmail.com>
2550
2551 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
2552 splitter preparation statements.
2553 * config/i386/sse.md (*vec_extract* splitters): Ditto.
2554 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
2555 adjust_address_nv.
2556
1dc3d6e9
BS
25572013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2558
2559 * gimple-ssa-strength-reduction.c (count_candidates): Change
2560 return value to int.
2561 (analyze_candidates_and_replace): Change type of length to int.
2562
e61e7d28
UB
25632013-05-08 Uros Bizjak <ubizjak@gmail.com>
2564
2565 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
2566 (*vec_extract<mode>): Use VI12_128 mode iterator.
2567 (*vec_extract<mode>_mem): Ditto.
2568 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
2569 attribute.
2570
4fbfcf44
DN
25712013-05-08 Diego Novillo <dnovillo@google.com>
2572
2573 PR bootstrap/54659
2574
2575 Revert:
4fbfcf44
DN
2576 2012-08-17 Diego Novillo <dnovillo@google.com>
2577
e61e7d28
UB
2578 PR bootstrap/54281
2579 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
2580 * config.in: Regenerate.
2581 * configure: Regenerate.
2582 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4fbfcf44 2583
702d8703
JH
25842013-05-08 Jan Hubicka <jh@suse.cz>
2585
2586 PR lto/54095
2587 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
2588 * cgraph.h (symtab_node_base): Add unique_name.
2589 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2590 input_overwrite_node, input_varpool_node): Stream unique_name.
2591 * cgraphclones.c (cgraph_create_virtual_clone,
2592 cgraph_function_versioning): Set unique_name.
2593 * ipa.c (function_and_variable_visibility): Set unique_name.
2594
8b28cf47
BS
25952013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2596
2597 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
2598 (alloc_cand_and_find_basis): Restrict conditional candidate
2599 processing to CAND_MULTs.
2600
e86074fd
JH
26012013-05-08 Jan Hubicka <jh@suse.cz>
2602
2603 PR lto/54095
2604 lto-symtab.c (lto_symtab_symbol_p): New function.
2605 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
2606 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
2607 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
2608 Skip static symbols.
2609
44398cbe
PC
26102013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
2611
2612 PR tree-optimization/57200
2613 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
2614 Only call inform if the preceding warning_at returns true.
2615
f6bc1c4a
HS
26162013-05-07 Han Shen <shenhan@google.com>
2617
2618 * cfgexpand.c (record_or_union_type_has_array_p): New function.
2619 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
2620 * common.opt (fstack-protector-strong): New option.
2621 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
2622 * doc/invoke.texi (Optimization Options): Document
2623 "-fstack-protector-strong".
2624 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
2625
4ffecb1f
SB
26262013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2627
2628 * config/mips/mips.c (mips_machine_reorg2): Return 0.
2629
5a107a0f
VM
26302013-05-07 Vladimir Makarov <vmakarov@redhat.com>
2631
2632 * ira.c (update_equiv_regs): Add insn having equiv memory even if
2633 it is not lhs of the insn.
2634 (setup_reg_equiv): Remove insn having equiv memory which it is not
2635 lhs of the insn.
2636 * lra-constraints.c (process_address): Try to improve generation
2637 code for address base + disp.
2638 (lra_constraints): Make correct the code for checking insn setting
2639 up backward equivalence. Remove insn only if it is in the init
2640 insn list.
2641 * lra-eliminations.c (update_reg_eliminate): Change return value.
2642 (lra_eliminate): Use the result.
2643
3f5783ea
UB
26442013-05-07 Uros Bizjak <ubizjak@gmail.com>
2645
2646 * config/i386/sse.md (ssescalarnummask): New mode attribute.
2647 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
2648 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
2649 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
2650 register target operands.
2651 (*vec_extractv8hi_sse2): New pattern.
2652 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
2653 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
2654 (*vec_extract<mode>_mem): New insn and split pattern.
2655
8a5800b8
CL
26562013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
2657
2658 * config/arm/arm.c (arm_asan_shadow_offset): New function.
2659 (TARGET_ASAN_SHADOW_OFFSET): Define.
2660 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
2661 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
2662
7bf55a70
BS
26632013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2664
2665 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
2666 (incr_vec_index): Return -1 if increment not found.
2667 (create_add_on_incoming_edge): Assert if increment not found.
2668 (record_increment): Limit number of increments recorded.
2669 (all_phi_incrs_profitable): Return false if an increment not found.
2670 (replace_profitable_candidates): Don't process increments that were
2671 not recorded.
2672 (analyze_candidates_and_replace): Limit size of incr_vec.
2673
3f8825c0
RB
26742013-05-07 Richard Biener <rguenther@suse.de>
2675
2676 * calls.c (special_function_p): setjmp-like functions are leaf.
2677 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
2678 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
2679
fd4842cd
SN
26802013-05-07 Sofiane Naci <sofiane.naci@arm.com>
2681
2682 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
2683 (aarch64_simd_mov<mode>): New expander.
2684 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
2685 (aarch64_simd_mov_to_<mode>high): Likewise.
2686 (aarch64_simd_mov_from_<mode>low): Likewise.
2687 (aarch64_simd_mov_from_<mode>high): Likewise.
2688 (aarch64_dup_lane<mode>): Update.
2689 (aarch64_dup_lanedi): New instruction pattern.
2690 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
2691 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
2692
a7a7d10e
BS
26932013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2694
2695 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
2696 (replace_mult_candidate): Remove unnecessary argument; remove
2697 unnecessary parameter from call to introduce_cast_before_cand.
2698 (replace_unconditional_candidate): Remove unnecessary parameter
2699 from call to replace_mult_candidate.
2700 (replace_conditional_candidate): Likewise.
2701 (insert_initializers): Use make_temp_ssa_name.
2702 (introduce_cast_before_cand): Remove unnecessary argument; use
2703 make_temp_ssa_name.
2704 (replace_one_candidate): Remove unnecessary argument; remove
2705 unnecessary parameter from calls to introduce_cast_before_cand.
2706 (replace_profitable_candidates): Remove unnecessary parameters
2707 from calls to replace_one_candidate.
2708
29105868
BS
27092013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2710
2711 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
2712 phi def as possibly hiding a basis for a CAND_ADD whose operands
2713 have been commuted in the analysis.
2714 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
2715
4095f9fa
N
27162013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2717
2718 * config/aarch64/aarch64.md
2719 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
2720 shift value between 0-4.
2721
39e843e8
RB
27222013-05-07 Richard Biener <rguenther@suse.de>
2723
2724 * double-int.h (rshift): New overload.
2725 * double-int.c (rshift): New function.
2726 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
2727 (create_reference_ops_from_ref): Remove.
2728 (vn_reference_insert): Use shared ops for constructing the
2729 reference and copy it.
2730
0a1a83cb
RB
27312013-05-07 Richard Biener <rguenther@suse.de>
2732
2733 PR middle-end/57190
2734 * tree-eh.c (sink_clobbers): Properly propagate
2735 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2736
43303d6f
JJ
27372013-05-07 Jakub Jelinek <jakub@redhat.com>
2738
ba7e83f8
JJ
2739 PR tree-optimization/57149
2740 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
2741 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
2742 collect_phi_def_edges, execute_late_warn_uninitialized): Use
2743 uninit_undefined_value_p instead of ssa_undefined_value_p.
2744
43303d6f
JJ
2745 PR debug/57184
2746 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
2747 for modifier == EXPAND_INITIALIZER.
2748
14523c25
AB
27492013-05-07 Anton Blanchard <anton@samba.org>
2750
2751 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
2752 for powerpc64 little endian.
2753 * configure: Regenerate.
2754
cb7c8be9
GS
27552013-05-06 Graham Stott <grahams@btinternet.com>
2756
2757 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
2758 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
2759 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
2760 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
2761
27622013-05-06 Graham Stott <grahams@btinternet.com>
a8fd4225
GS
2763
2764 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
2765 codes which allow non-lvalues.
2766
9a0ee7b0
MG
27672013-05-06 Marc Glisse <marc.glisse@inria.fr>
2768
2769 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
2770 components are all 1s.
2771 (integer_minus_onep): New function.
2772 * tree.h (integer_minus_onep): Declare it.
2773 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
2774 integer_minus_onep instead of integer_all_onesp.
2775
f2c17ea9
OE
27762013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2777
2778 PR target/52933
2779 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
2780 variations of these patterns.
2781
f75e6a51
UB
27822013-05-06 Uros Bizjak <ubizjak@gmail.com>
2783
2784 * config/i386/i386.md (isa): Add x64_sse4 member.
2785 (enabled): Handle x64_sse4.
2786 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
2787 instruction for 64bit SSE4_1 targets. Update insn attributes.
2788 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
2789 instruction for SSE4_1 targets. Update insn attributes.
2790 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2791 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
2792 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
2793 const_1 selector.
2794 (*vec_extractv4si): Rename from *sse4_1_pextrd.
2795 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
2796 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
2797
a986d468
OE
27982013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2799
2800 PR target/57108
2801 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
2802
382522cb
MK
28032013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
2804
2805 * final.c (do_assembler_dialects): Don't handle curly braces and
2806 vertical bar escaped by % as dialect delimiters.
2807 (output_asm_insn): Print curly braces and vertical bar if escaped
2808 by % and ASSEMBLER_DIALECT defined.
2809 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
2810 * doc/tm.texi: Regenerated.
2811
fb0d5c60
SB
28122013-05-06 Steven Bosscher <steven@gcc.gnu.org>
2813
fb0d5c60
SB
2814 * config/mips/mips.c: Include tree-pass.h.
2815 (mips_reorg): Split in pre- and post-dbr_schedule parts.
2816 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
2817 (pass_mips_machine_reorg2): New machine specific pass.
2818 (insert_pass_mips_machine_reorg2): New pass plugin definition.
2819 (mips_option_override): Register the new pass.
2820 * rtl.h (cleanup_barriers): Remove prototype.
2821 (dbr_schedule): Likewise.
2822 * jump.c (cleanup_barriers): Make static.
2823 * reorg.c (dbr_schedule): Likewise.
2824
aa06a978
RB
28252013-05-06 Richard Biener <rguenther@suse.de>
2826
2827 PR tree-optimization/57185
2828 * tree-parloops.c (add_field_for_reduction): Handle anonymous
2829 SSA names properly.
2830
0b953bec
UB
28312013-05-06 Uros Bizjak <ubizjak@gmail.com>
2832
2833 PR target/57106
2834 * config/i386/i386.c (add_parameter_dependencies): Add dependence
2835 between "first_arg" and "insn", not "last" and "insn".
2836
28708525
WS
28372013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2838
2839 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
2840 (find_candidates_in_block): Re-enable slsr_process_phi.
2841 (create_phi_basis): Fix double counting of candidate adjustment.
2842
0107dca2
RB
28432013-05-06 Richard Biener <rguenther@suse.de>
2844
2845 PR middle-end/57147
2846 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
2847 the edge is also fallthru, preserve it and just clear the
2848 abnormal flag.
2849 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
2850 also complex, preserve that and just clear the fallthru flag.
2851 * tree-inline.c (update_ssa_across_abnormal_edges): Also
2852 update virtual operands.
2853
470d4d13
AM
28542013-05-06 Alan Modra <amodra@gmail.com>
2855
2856 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
2857 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
2858 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
2859 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
2860 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2861 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
2862
8f1dbf8d
AM
28632013-05-06 Alan Modra <amodra@gmail.com>
2864
2865 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
2866 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
2867 (DEFAULT_ASM_ENDIAN): Define.
2868 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
2869 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
2870 Update -K PIC clause from sysv4.h.
2871 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
2872 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
2873
54890767
AM
28742013-05-06 Alan Modra <amodra@gmail.com>
2875
2876 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
2877 twice for little-endian.
2878 (ashrdi3_no_power, ashrdi3): Support little-endian.
2879
2353515d
OE
28802013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
2881
2882 PR target/55303
2883 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
2884 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
2885 related expanders.
2886 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
2887 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
2888 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
2889 New predicates.
2890
33e67557
SB
28912013-05-05 Steven Bosscher <steven@gcc.gnu.org>
2892 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2893
2894 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
2895 * config/pa/pa.opt: Make mbig-switch a no-op.
2896 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
2897 (CASE_VECTOR_MODE): Always return SImode.
2898 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
2899 for the !TARGET_BIG_SWITCH case.
2900 * config/pa/pa-linux.h: Likewise.
2901 * config/pa/pa-openbsd.h: Likewise.
2902 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
2903 * config/pa/pa.md (short_jump): Remove define_insn.
2904 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
2905 (casesi0): Remove define_insn.
2906 (type): Remove btable_branch.
2907 (pa_combine_type): Likewise.
2908 (in_nullified_branch_delay): Likewise.
2909 (in_call_delay): Likewise.
2910 (define_delay): Likewise.
2911 (define_insn_reservation "Z3"): Likewise.
2912 (define_insn_reservation "Z4"): Likewise.
2913 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
2914 (pa_adjust_insn_length): Remove adjustment for btable branches.
2915 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
2916 and mno-big-switch
2917
3095685e
UB
29182013-05-05 Uros Bizjak <ubizjak@gmail.com>
2919
2920 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
2921 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
2922 Add m->r,x alternatives.
2923 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
2924 splitters using SWI48x mode iterator.
2925 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
2926 TARGET_64BIT. Add m->x alternative.
2927 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
2928 Add o->x alternative. Enable for TARGET_SSE.
2929 (sse_storeq): Remove expander.
2930 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
2931 with memory input operand.
2932 (*vec_extractv2di_1 splitter): New.
2933 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
2934 * config/i386/i386.md (ssevecmodelower): New mode attribute.
2935
4b36ae28
SB
29362013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2937
2938 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
2939 (INT_LOWPART): Delete.
2940 (extract_MB): Adjust.
2941 (extract_ME): Adjust.
2942 (print_operand): Adjust.
2943
da226db2
SB
29442013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
2945
2946 * config/rs6000/predicates.md (reg_or_add_cint_operand,
2947 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2948 (reg_or_logical_cint_operand, easy_fp_constant,
2949 logical_const_operand): Delete "CONST_DOUBLE" case.
2950 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
2951 "HOST_BITS_PER_WIDE_INT == 64" test.
3095685e 2952 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
da226db2
SB
2953 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
2954 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
2955 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
2956 test.
2957 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
2958 CONST_DOUBLE DImode/VOIDmode case.
2959 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
2960 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2961 CONST_DOUBLE VOIDmode case.
2962 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
2963 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
2964 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
2965 Delete CONST_DOUBLE case.
2966 (splitters for mov FMOVE64 const_double): Delete
2967 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
2968 "HOST_BITS_PER_WIDE_INT >= 64" test.
2969 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
2970 case.
2971 (mov DI const_double): Delete.
2972
40de22d6
JJ
29732013-05-04 Jakub Jelinek <jakub@redhat.com>
2974
2975 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
2976 on op shows all bits zero in mode of a lowpart subreg, return zero.
2977
5ec6aff2
MM
29782013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
2979
2980 PR target/57150
2981 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
2982 to save TFmode registers and DImode to save TImode registers for
2983 caller save operations.
2984 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
2985 mark being partially clobbered since they only use the first
2986 double word.
2987
2988 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
2989 and TDmode only use the upper 64-bits of each VSX register.
2990
2cefad90
BS
29912013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2992
2993 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
2994 (find_candidates_in_block): Disable slsr_process_phi.
2995
d6d7eee1
GW
29962013-05-03 Guozhi Wei <carrot@google.com>
2997
2998 * coverage.c (coverage_obj_init): Move the construction of gcov
3095685e
UB
2999 constructor to ...
3000 (build_init_ctor): ... here.
d6d7eee1 3001
9b92d12b
BS
30022013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3003
3004 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
3005 (slsr_cand_d): Redefine def_phi.
3006 (stride_status, phi_adjust_status, count_phis_status): New enums.
3007 (find_phi_def): New.
3008 (find_basis_for_base_expr): New.
3009 (find_basis_for_candidate): Handle hidden bases.
3010 (alloc_cand_and_find_basis): Handle phi candidates.
3011 (slsr_process_phi): New.
3012 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
3013 (create_mul_imm_cand): Likewise.
3014 (create_add_ssa_cand): Exclude phi base candidates.
3015 (create_add_imm_cand): Likewise.
3016 (slsr_process_cast): Likewise.
3017 (slsr_process_copy): Likewise.
3018 (find_candidates_in_block): Handle phi candidates.
3019 (dump_candidate): Likewise.
3020 (unconditional_cands): Delete.
3021 (unconditional_cands_with_known_stride_p): Delete.
3022 (phi_dependent_cand_p): New.
3023 (cand_increment): Handle phi-dependent candidates.
3024 (replace_dependent): Delete.
3025 (replace_mult_candidate): New.
3026 (replace_unconditional_candidate): New.
3027 (incr_vec_index): Move to avoid forward reference.
3028 (create_add_on_incoming_edge): New.
3029 (create_phi_basis): New.
3030 (replace_dependents): Delete.
3031 (replace_conditional_candidate): New.
3032 (phi_add_costs): New.
3033 (replace_uncond_cands_and_profitable_phis): New.
3034 (record_increment): Handle phi adjustments.
3035 (record_phi_increments): New.
3036 (record_increments): Handle phi adjustments.
3037 (phi_incr_cost): New.
3038 (lowest_cost_path): Handle phis.
3039 (total_savings): Likewise.
3040 (analyze_increments): Likewise.
3041 (ncd_with_phi): New.
3042 (ncd_of_cand_and_phis): New.
3043 (nearest_common_dominator_for_cands): Handle phi increments.
3044 (all_phi_incrs_profitable): New.
3045 (replace_profitable_candidates): Handle phi-dependent candidates.
3046 (analyze_candidates_and_replace): Likewise.
3047
68f073d4
TJ
30482013-05-03 Teresa Johnson <tejohnson@google.com>
3049
3050 PR bootstrap/57154
3051 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
3052 do not exceed REG_BR_PROB_BASE.
3053
a4ee7cb9
JL
30542013-05-03 Jeff Law <law@redhat.com>
3055
ade67f70 3056 PR tree-optimization/57144
a4ee7cb9
JL
3057 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
3058 operand of the condition will bit into the new type when eliminating
3059 a cast feeding a condition.
3060
47954c4e
JJ
30612013-05-03 Jakub Jelinek <jakub@redhat.com>
3062
3063 PR rtl-optimization/57130
3095685e
UB
3064 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
3065 of COMPARE as in_code to the recursive call if needed.
47954c4e 3066
3c21604f
UB
30672013-05-03 Uros Bizjak <ubizjak@gmail.com>
3068
3069 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
3070 (enabled): Handle new members.
3071 * config/i386/sse.md (*vec_concatv2si): Merge from
3072 *vec_concatv2si_sse2 and vec_concatv2si_sse.
3073 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
3074
95c03b36
JR
30752013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
3076
3077 PR tree-optimization/57027
3078 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
3079 for fnms opportunity, check we got the prerequisite kind
3080 of tree / gimple before using accessor functions.
3081
07bfc9ec
RB
30822013-05-03 Richard Biener <rguenther@suse.de>
3083
3084 * double-int.h (lshift): New overload without precision
3085 and arith argument.
3086 (operator *=, operator +=, operator -=): Move ...
3087 * double-int.c (operator *=, operator +=, operator -=): ... here
3088 and implement more efficiently.
3089 (mul_double_with_sign): Remove.
3090 (lshift_double): Adjust to take unsinged shift argument, push
3091 dispatching code to callers.
3092 (mul_double_wide_with_sign): Add early out for callers that
3093 are not interested in high parts or overflow.
3094 (lshift): New function.
3095 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
3096 dispatch code here.
3097 (lrotate, rrotate): Use logical shifts.
3098 * expr.c (get_inner_reference): Use lshift.
3099 * fixed-value.c (do_fixed_divide): Likewise.
3100 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3101 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
3102 (indirect_refs_may_alias_p): Likewise.
3103 (stmt_kills_ref_p_1): Likewise.
3104
7769bb64
VP
31052013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3106
3107 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
3108
1d0c8e5c
VP
31092013-05-03 Vidya Praveen <vidyapraveen@arm.com>
3110
3111 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
3112 scalar form of FABD instruction.
3113
f15feaf9
VM
31142013-05-02 Vladimir Makarov <vmakarov@redhat.com>
3115
3116 * lra-constraints.c (process_alt_operands): Add checking alt
3117 number to choose the best alternative.
3118
d90e76d4
RB
31192013-05-02 Richard Biener <rguenther@suse.de>
3120
3121 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
3122 bitmap and its handling.
3123 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
3124
9f8e7a96
RB
31252013-05-02 Richard Biener <rguenther@suse.de>
3126
3127 PR middle-end/57140
3128 * tree-inline.c (copy_loops): Properly handle removed loops.
3129 (copy_cfg_body): Mark destination loops for fixup if source
3130 loops needed fixup.
3131
f3a81b39
GY
31322013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
3133
3134 PR target/56732
3135 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
3136 generating simple_return for naked functions.
3137
7b920a9a
MJ
31382013-05-02 Martin Jambor <mjambor@suse.cz>
3139
3140 PR middle-end/56988
3141 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
3142 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
3143 flags match.
3144 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
3145 ipa_agg_replacement_value structures.
3146 (known_aggs_to_agg_replacement_list): Likewise.
3147 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
3148 (read_agg_replacement_chain): Likewise.
3149 (ipcp_transform_function): Also check that by_ref flags match.
3150
2c41c19d
RB
31512013-05-02 Richard Biener <rguenther@suse.de>
3152
3153 * graphds.h (struct graph): Add obstack member.
3154 * graphds.c (new_graph): Initialize obstack and allocate
3155 vertices from it.
3156 (add_edge): Allocate edge from the obstack.
3c21604f 3157 (free_graph): Free the obstack instead of all edges and vertices.
2c41c19d 3158
8b47039c
TJ
31592013-05-02 Teresa Johnson <tejohnson@google.com>
3160
3161 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
3162 divides.
3163 * cfg.c (update_bb_profile_for_threading): Ditto.
3164 * tree-inline.c (copy_bb): Ditto.
3165 (copy_edges_for_bb): Ditto.
3166 (initialize_cfun): Ditto.
3167 (copy_cfg_body): Ditto.
3168 (expand_call_inline): Ditto.
3169 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
3170 (estimate_node_size_and_time): Ditto.
3171 (inline_merge_summary): Ditto.
3172 * cgraphclones.c (cgraph_clone_edge): Ditto.
3173 (cgraph_clone_node): Ditto.
3174 * sched-rgn.c (compute_dom_prob_ps): Ditto.
3175 (compute_trg_info): Ditto.
3176
da65928c
IB
31772013-05-02 Ian Bolton <ian.bolton@arm.com>
3178
3179 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
3180 S reg when fp attribute set.
3181 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
3182
add3c965
IB
31832013-05-02 Ian Bolton <ian.bolton@arm.com>
3184
3185 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
3186 New pattern.
3187 (*and_one_cmplsi3_compare0_uxtw): Likewise.
3188 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
3189 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
3190
fdd43ac4
RB
31912013-05-02 Richard Biener <rguenther@suse.de>
3192
3193 * tree-scalar-evolution.c (scev_info_hasher): Remove.
3194 (struct instantiate_cache_entry): New type.
3195 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
3196 (struct instantiate_cache_type): New type.
3197 (set_instantiated_value, get_instantiated_value): Remove.
3198 (get_instantiated_value_entry): New function.
3199 (instantiate_scev_name): Use the new cache and adjust.
3200 (instantiate_scev_poly): Adjust.
3201 (instantiate_scev_binary): Likewise.
3202 (instantiate_array_ref): Likewise.
3203 (instantiate_scev_convert): Likewise.
3204 (instantiate_scev_not): Likewise.
3205 (instantiate_scev_3): Likewise.
3206 (instantiate_scev_2): Likewise.
3207 (instantiate_scev_r): Likewise.
3208 (instantiate_scev): Likewise.
3209 (resolve_mixers): Likewise.
3210
36ff9dfb
VM
32112013-05-01 Vladimir Makarov <vmakarov@redhat.com>
3212
3213 PR target/57091
3214 * lra-constraints.c (best_small_class_operands_num): Remove.
3215 (process_alt_operands): Remove small_class_operands_num. Take
3216 small classes operands into losers and only if the operand is not
3217 matched. Modify debugging output.
3218 (curr_insn_transform): Remove best_small_class_operands_num.
3219 Print insn name.
3220
36054fab
JG
32212013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3222
3223 * config/aarch64/aarch64-builtins.c
3224 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
3225 * config/aarch64/aarch64-simd-builtins.def
3226 (reduc_splus_): Add new modes.
3227 (reduc_uplus_): New.
3228 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
3229 (reduc_uplus_v4sf): Likewise.
3230 (reduc_splus_v4sf): Likewise.
3231 (aarch64_addv<mode>): Likewise.
3232 (reduc_uplus_<mode>): Likewise.
3233 (reduc_splus_<mode>): Likewise.
3234 (aarch64_addvv2di): Likewise.
3235 (reduc_uplus_v2di): Likewise.
3236 (reduc_splus_v2di): Likewise.
3237 (aarch64_addvv2si): Likewise.
3238 (reduc_uplus_v2si): Likewise.
3239 (reduc_splus_v2si): Likewise.
3240 (reduc_<sur>plus_<mode>): New.
3241 (reduc_<sur>plus_v2di): Likewise.
3242 (reduc_<sur>plus_v2si): Likewise.
3243 (reduc_<sur>plus_v4sf): Likewise.
3244 (aarch64_addpv4sf): Likewise.
3245 * config/aarch64/arm_neon.h
3246 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
3247 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
3248 add UNSPEC_SADDV, UNSPEC_UADDV.
3249 (SUADDV): New.
3250 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
3251
6dce23a8
JG
32522013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3253
3254 * config/aarch64/arm_neon.h
3255 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
3256
1598945b
JG
32572013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3258
3259 * config/aarch64/aarch64-builtins
3260 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
3261
998eaf97
JG
32622013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3263
3264 * config/aarch64/aarch64-simd-builtins.def
3265 (reduc_smax_): New.
3266 (reduc_smin_): Likewise.
3267 (reduc_umax_): Likewise.
3268 (reduc_umin_): Likewise.
3269 (reduc_smax_nan_): Likewise.
3270 (reduc_smin_nan_): Likewise.
3271 (fmax): Remove.
3272 (fmin): Likewise.
3273 (smax): Update for V2SF, V4SF and V2DF modes.
3274 (smin): Likewise.
3275 (smax_nan): New.
3276 (smin_nan): Likewise.
3277 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
3278 (<su><maxmin><mode>3): ...This, refactor.
3279 (s<maxmin><mode>3): New.
3280 (<maxmin_uns><mode>3): Likewise.
3281 (reduc_<maxmin_uns>_<mode>): Refactor.
3282 (reduc_<maxmin_uns>_v4sf): Likewise.
3283 (reduc_<maxmin_uns>_v2si): Likewise.
3284 (aarch64_<fmaxmin><mode>: Remove.
3285 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
3286 new builtin names.
3287 (vmin<q>_f<32,64>): Likewise.
3288 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3289 (FMAXMIN): New.
3290 (su): Add mappings for smax, smin, umax, umin.
3291 (maxmin): New.
3292 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
3293 (FMAXMIN): Rename as...
3294 (FMAXMIN_UNS): ...This.
3295 (maxminv): Remove.
3296 (fmaxminv): Likewise.
3297 (fmaxmin): Likewise.
3298 (maxmin_uns): New.
3299 (maxmin_uns_op): Likewise.
3300
bd11644e
JG
33012013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3302
3303 * config/aarch64/arm_neon.h
3304 (vac<ge, gt><sd>_f<32, 64>): Rename to...
3305 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
3306 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
3307
75dd5ace
JG
33082013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3309
3310 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
3311 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
3312
7c19979f
JG
33132013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3314
3315 * config/aarch64/aarch64-simd.md
3316 (vcond<mode>_internal): Handle special cases for constant masks.
3317 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
3318 (vcondu<mode><mode>): Likewise.
3319 (vcond<v_cmp_result><mode>): New.
3320
bb60efd9
JG
33212013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3322
3323 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
3324 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
3325 * config/aarch64/aarch64-simd-builtins.def
3326 (cmeq): Update to BUILTIN_VALLDI.
3327 (cmgt): Likewise.
3328 (cmge): Likewise.
3329 (cmle): Likewise.
3330 (cmlt): Likewise.
3331 * config/aarch64/arm_neon.h
3332 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
3333 to builtins or C as appropriate.
3334
889b9412
JG
33352013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
3336
3337 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
3338 (cmgeu): ...This.
3339 (cmhi): Rename to...
3340 (cmgtu): ...This.
3341 * config/aarch64/aarch64-simd.md
3342 (simd_mode): Add SF.
3343 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
3344 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
3345 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
3346 (cstore<mode>_neg): ...This.
3347 * config/aarch64/iterators.md
3348 (VALLF): new.
3349 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
3350 (COMPARISONS): New.
3351 (UCOMPARISONS): Likewise.
3352 (optab): Add missing comparisons.
3353 (n_optab): New.
3354 (cmp_1): Likewise.
3355 (cmp_2): Likewise.
3356 (CMP): Likewise.
3357 (cmp): Remove.
3358 (VCMP_S): Likewise.
3359 (VCMP_U): Likewise.
3360 (V_cmp_result): Add DF, SF modes.
3361 (v_cmp_result): Likewise.
3362 (v): Likewise.
3363 (vmtype): Likewise.
3364 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
3365
0a7dbb76
GY
33662013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
3367
3368 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
3369 define_insn to define_insn_and_split.
3370 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
3371 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
3372 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
3373 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
3374 (thumb2_negscc): Likewise.
3375
fb614ca6
GY
33762013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3377
3378 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
3379
9e64a0bf
GY
33802013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
3381
3382 * config/arm/thumb2.md: Remove trailing whitespaces.
3383
d6b28156
RS
33842013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3385
3386 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
3387 Use gen_int_mode rather than GEN_INT.
3388
f91674c3
L
33892013-04-30 H.J. Lu <hongjiu.lu@intel.com>
3390
b0dec607 3391 * value-prof.c (stream_in_histogram_value): Remove the strayed
f91674c3
L
3392 debug_gimple_stmt.
3393
3551257c
RB
33942013-04-30 Richard Biener <rguenther@suse.de>
3395
3396 PR middle-end/57122
3c21604f 3397 * cfghooks.c (split_edge): Properly check for the loop latch edge.
3551257c 3398
4c1aff1c
RB
33992013-04-30 Richard Biener <rguenther@suse.de>
3400
3401 PR middle-end/57107
3402 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
3403
54b8379a
AB
34042013-04-30 Andrey Belevantsev <abel@ispras.ru>
3405
3406 PR rtl-optimization/56957
3407 PR rtl-optimization/57105
54b8379a
AB
3408 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
3409 variable. Use just INSN_UID for determining whether an insn
3410 should be only disconnected from the insn stream.
3411 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
3412
abc27962
JJ
34132013-04-30 Jakub Jelinek <jakub@redhat.com>
3414
3415 PR tree-optimization/57104
3416 * tsan.c (instrument_expr): Don't instrument accesses to
3417 DECL_HARD_REGISTER VAR_DECLs.
3418
0fc822d0
RB
34192013-04-30 Richard Biener <rguenther@suse.de>
3420
3421 * function.h (loops_for_fn): New inline function.
3422 (set_loops_for_fn): Likewise.
3423 * cfgloop.h (place_new_loop): Add struct function parameter.
3424 (get_loop): Likewise.
3425 (get_loops): Likewise.
3426 (number_of_loops): Likewise.
3427 (fel_next): Adjust.
3428 (fel_init): Likewise.
3429 * cfg.c (get_loop_copy): Adjust.
3430 * cfgloop.c (flow_loops_dump): Likewise.
3431 (record_loop_exits): Likewise.
3432 (verify_loop_structure): Likewise.
3433 * cfgloopanal.c (mark_irreducible_loops): Likewise.
3434 (estimate_reg_pressure_cost): Likewise.
3435 (mark_loop_exit_edges): Likewise.
3436 * cfgloopmanip.c (place_new_loop): Likewise.
3437 (add_loop): Likewise.
3438 (duplicate_loop): Likewise.
3439 * graph.c (draw_cfg_nodes): Likewise.
3440 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
3441 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
3442 (extract_affine_chrec): Likewise.
3443 (build_scop_iteration_domain): Likewise.
3444 * graphite.c (graphite_initialize): Likewise.
3445 * ira-build.c (create_loop_tree_nodes): Likewise.
3446 (more_one_region_p): Likewise.
3447 (rebuild_regno_allocno_maps): Likewise.
3448 (mark_loops_for_removal): Likewise.
3449 (mark_all_loops_for_removal): Likewise.
3450 (remove_unnecessary_regions): Likewise.
3451 (ira_build): Likewise.
3452 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
3453 * loop-init.c (fix_loop_structure): Likewise.
3454 (gate_rtl_move_loop_invariants): Likewise.
3455 (gate_rtl_unswitch): Likewise.
3456 (gate_rtl_unroll_and_peel_loops): Likewise.
3457 (rtl_doloop): Likewise.
3458 * lto-streamer-in.c (input_cfg): Likewise.
3459 * lto-streamer-out.c (output_cfg): Likewise.
3460 * modulo-sched.c (sms_schedule): Likewise.
3461 * predict.c (tree_estimate_probability): Likewise.
3462 (tree_estimate_probability_driver): Likewise.
3463 (estimate_loops): Likewise.
3464 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
3465 (move_sese_region_to_fn): Likewise.
3466 (debug_loop_num): Likewise.
3467 * tree-chrec.c (chrec_evaluate): Likewise.
3468 (hide_evolution_in_other_loops_than_loop): Likewise.
3469 (chrec_component_in_loop_num): Likewise.
3470 (reset_evolution_in_loop): Likewise.
3471 (evolution_function_is_invariant_rec_p): Likewise.
3472 * tree-if-conv.c (main_tree_if_conversion): Likewise.
3473 * tree-inline.c (copy_loops): Likewise.
3474 (copy_cfg_body): Likewise.
3475 (tree_function_versioning): Likewise.
3476 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
3477 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
3478 Likewise.
3479 (add_to_evolution_1): Likewise.
3480 (scev_const_prop): Likewise.
3481 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
3482 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
3483 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
3484 (tree_ssa_lim_initialize): Likewise.
3485 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
3486 (verify_loop_closed_ssa): Likewise.
3487 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
3488 (tree_ssa_loop_im): Likewise.
3489 (tree_ssa_loop_unswitch): Likewise.
3490 (tree_vectorize): Likewise.
3491 (check_data_deps): Likewise.
3492 (tree_ssa_loop_ivcanon): Likewise.
3493 (tree_ssa_loop_bounds): Likewise.
3494 (tree_complete_unroll): Likewise.
3495 (tree_complete_unroll_inner): Likewise.
3496 (tree_parallelize_loops): Likewise.
3497 (tree_ssa_loop_prefetch): Likewise.
3498 (tree_ssa_loop_ivopts): Likewise.
3499 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
3500 * tree-vectorizer.c (vectorize_loops): Likewise.
3501
37953bd3
MF
35022013-04-29 Mike Frysinger <vapier@gentoo.org>
3503
3504 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
3505 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
3506 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
3507 with EABI_LINK_SPEC.
3508
f9ed28db
UB
35092013-04-29 Uros Bizjak <ubizjak@gmail.com>
3510
3511 PR target/44578
3512 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
3513 alternative.
3514
deca73f5
VM
35152013-04-29 Vladimir Makarov <vmakarov@redhat.com>
3516
3517 PR target/57097
37953bd3 3518 * lra-constraints.c (process_alt_operands): Discourage a bit more
deca73f5
VM
3519 using memory for pseudos. Print cost dump for alternatives.
3520 Modify cost values for conflicts with early clobbers.
3521 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
3522
fdca7d03
UB
35232013-04-29 Uros Bizjak <ubizjak@gmail.com>
3524
3525 PR target/57098
3526 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
3527
0b064172
IB
35282013-04-29 Ian Bolton <ian.bolton@arm.com>
3529
3530 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
3531 from/to S register.
3532 (movdi_aarch64): Support LDR/STR from/to D register.
3533
473cec55
IB
35342013-04-29 Ian Bolton <ian.bolton@arm.com>
3535
3536 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
3537 or higher by default.
3538
a6f30e66
RB
35392013-04-29 Richard Biener <rguenther@suse.de>
3540
3541 PR middle-end/57075
3542 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
3543 even if not adding abnormal edges for calls that can make
3544 abnormal gotos.
3545
0c2b2040
RB
35462013-04-29 Richard Biener <rguenther@suse.de>
3547
3548 PR middle-end/57103
3549 * tree-cfg.c (move_stmt_op): Fix condition under which to update
3550 TREE_BLOCK.
3551 (move_stmt_r): Remove redundant checking.
3552
f41f80f9
TJ
35532013-04-29 Teresa Johnson <tejohnson@google.com>
3554
3555 PR bootstrap/57077
3556 * basic-block.h (apply_scale): New function.
3557 (apply_probability): Use apply_scale.
3558 * gimple-streamer-in.c (input_bb): Ditto.
3559 * lto-streamer-in.c (input_cfg): Ditto.
3560 * lto-cgraph.c (merge_profile_summaries): Ditto.
3561 * tree-optimize.c (execute_fixup_cfg): Ditto.
fdca7d03 3562 * tree-inline.c (copy_bb): Update comment to use apply_scale.
f41f80f9
TJ
3563 (copy_edges_for_bb): Ditto.
3564 (copy_cfg_body): Ditto.
3565
315bbd2e
TV
35662013-04-29 Tom de Vries <tom@codesourcery.com>
3567
3568 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
3569 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
3570 (tail_merge_optimize): Handle current_loops == NULL.
3571
ebbd90d8
JL
35722013-04-26 Jeff Law <law@redhat.com>
3573
3574 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
3575 (simplify_cond_using_ranges): Generalize code to simplify
3576 COND_EXPRs where one argument is a constant and the other
3577 is an SSA_NAME created by an integral type conversion.
3578
8b9b57eb
KT
35792013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3580
3581 * config/arm/arm.md (store_minmaxsi): Use only when
3582 optimize_insn_for_size_p.
3583
9498e5dc
CB
35842013-04-29 Christian Bruel <christian.bruel@st.com>
3585
3586 PR target/57108
3587 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
3588
6093bc06
RB
35892013-04-29 Richard Biener <rguenther@suse.de>
3590
3591 PR middle-end/57089
fdca7d03
UB
3592 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
3593 loop tree make sure to schedule a fixup for the child as well.
6093bc06
RB
3594 (expand_omp_for_generic): Properly add loops.
3595 (expand_omp_for_static_nochunk): Likewise.
3596 (expand_omp_for_static_chunk): Likewise.
3597 (expand_omp_for): For the degenerate case fixup loops.
3598 (expand_omp_sections): Fix default bb placement in loops.
3599 (expand_omp_atomic_pipeline): Properly add loops.
3600
84aacbfd
KT
36012013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3602
3603 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
3604
8dee4479
TV
36052013-04-29 Tom de Vries <tom@codesourcery.com>
3606
3607 * tree-ssa-tail-merge.c: Update header comment.
3608
47934dc4
JG
36092013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3610
3611 * config/aarch64/arm_neon.h
3612 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
3613 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
3614 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
3615 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
3616 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
3617 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
3618 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
3619 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
3620
384be29f
JG
36212013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3622
3623 * config/aarch64/aarch64-simd.md
3624 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
3625 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
3626 fix_trunc, fixuns_trunc.
3627 (ftrunc<VDQF:mode>2): New.
3628 * config/aarch64/iterators.md (optab): Add fix, fixuns.
3629 (fix_trunc_optab): New.
3630
0386b123
JG
36312013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3632
3633 * config/aarch64/aarch64-builtins.c
3634 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
3635 iceilf, lround, iroundf.
3636
00fcb892
UB
36372013-04-29 Uros Bizjak <ubizjak@gmail.com>
3638
3639 PR target/54349
3640 * config/i386/i386.h (enum ix86_tune_indices)
3641 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
3642 New, split from X86_TUNE_INTER_UNIT_MOVES.
3643 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
3644 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
3645 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
3646 (TARGET_INTER_UNIT_MOVES): Remove.
3647 * config/i386/i386.c (initial_ix86_tune_features): Update.
3648 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
3649 (ix86_expand_convert_uns_didf_sse): Use
3650 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3651 (ix86_expand_vector_init_one_nonzero): Ditto.
3652 (ix86_expand_vector_init_interleave): Ditto.
3653 (inline_secondary_memory_needed): Return true for moves from SSE class
3654 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
3655 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
3656 * config/i386/constraints.md (Yi, Ym): Depend on
3657 TARGET_INTER_UNIT_MOVES_TO_VEC.
3658 (Yj, Yn): New constraints.
3659 * config/i386/i386.md (*movdi_internal): Change constraints of
3660 operand 1 from Yi to Yj and from Ym to Yn.
3661 (*movsi_internal): Ditto.
3662 (*movdf_internal): Ditto.
3663 (*movsf_internal): Ditto.
3664 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
3665 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
3666 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
3667 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
3668 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
3669 * config/i386/sse.md (movdi_to_sse): Ditto.
3670 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
3671 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
3672 TARGET_INTER_UNIT_MOVES.
3673 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
3674 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
3675 instead of TARGET_INTER_UNIT_MOVES.
3676 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
3677 operand 1 from Yi to Yj and from Ym to Yn.
3678
4c871069
JG
36792013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3680
3681 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
3682 (float_truncate_hi_): Likewise.
3683 (float_extend_lo_): Likewise.
3684 (float_truncate_lo_): Likewise.
3685 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
3686 (aarch64_float_extend_lo_v2df): Likewise.
3687 (vec_unpacks_hi_v4sf): Likewise.
3688 (aarch64_float_truncate_lo_v2sf): Likewise.
3689 (aarch64_float_truncate_hi_v4sf): Likewise.
3690 (vec_pack_trunc_v2df): Likewise.
3691 (vec_pack_trunc_df): Likewise.
3692
1709ff9b
JG
36932013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3694
3695 * config/aarch64/aarch64-builtins.c
3696 (aarch64_fold_builtin): Fold float conversions.
3697 * config/aarch64/aarch64-simd-builtins.def
3698 (floatv2si, floatv4si, floatv2di): New.
3699 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
3700 * config/aarch64/aarch64-simd.md
3701 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
3702 * config/aarch64/iterators.md (FLOATUORS): New.
3703 (optab): Add float, floatuns.
3704 (su_optab): Likewise.
3705
ce966824
JG
37062013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3707
3708 * config/aarch64/aarch64-builtins.c
3709 (aarch64_builtin_vectorized_function): Use new names for
3710 fcvt builtins.
3711 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
3712 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
3713 (fcvtzu): Split as...
3714 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
3715 (fcvtas): Split as...
3716 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
3717 (fcvtau): Split as...
3718 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
3719 (fcvtps): Split as...
3720 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
3721 (fcvtpu): Split as...
3722 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
3723 (fcvtms): Split as...
3724 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
3725 (fcvtmu): Split as...
3726 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
3727 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
3728 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
3729 (lfrintnusf, lfrintnudf): Likewise.
3730 * config/aarch64/aarch64-simd.md
3731 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
3732 define_insn.
3733 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
3734 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
3735 (fcvt_pattern): Likewise.
3736
b9de24fe
JG
37372013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3738
3739 * config/aarch64/aarch64-simd.md
3740 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
3741 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
3742
77a205be
JG
37432013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3744
3745 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
3746 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
3747 (vrnd<a,m,n,p>_f32): Implement using builtins.
3748 (vrnd<i,x><q>_f<32, 64>): New.
3749
0659ce6f
JG
37502013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
3751
3752 * config/aarch64/aarch64-builtins.c
3753 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
3754 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
3755 (frintz): Rename to...
3756 (btrunc): ...this.
3757 (frintp): Rename to...
3758 (ceil): ...this.
3759 (frintm): Rename to...
3760 (floor): ...this.
3761 (frinti): Rename to...
3762 (nearbyint): ...this.
3763 (frintx): Rename to...
3764 (rint): ...this.
3765 (frinta): Rename to...
3766 (round): ...this.
3767 * config/aarch64/aarch64-simd.md
3768 (aarch64_frint<frint_suffix><mode>): Delete.
3769 (<frint_pattern><mode>2): Convert to insn.
3770 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
3771 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
3772 (frint_pattern): Likewise.
3773 (frint_suffix): Likewise.
3774
ea78906a
RB
37752013-04-29 Richard Biener <rguenther@suse.de>
3776
3777 PR tree-optimization/57081
3778 * loop-init.c: Include tree-flow.h.
3779 (loop_optimizer_finalize): Free number of iteration estimates.
3780 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
3781
baee1763
JJ
37822013-04-29 Jakub Jelinek <jakub@redhat.com>
3783
94dc5332
JJ
3784 PR tree-optimization/57083
3785 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
3786 non-singleton shift count range, zero extend low_bound for uns case.
3787
baee1763
JJ
3788 * config/i386/predicates.md (general_vector_operand): New predicate.
3789 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
3790 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
3791 if they aren't nonimmediate operands. If their original values
3792 satisfy const_vector_equal_evenodd_p, don't shift them.
3793 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
3794 predicates. For the SSE4.1 case force operands[{1,2}] into registers
3795 if not nonimmediate_operand.
3796 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
3797 instead of register_operand.
3798 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
3799
a9073727 38002013-04-28 Eric Botcazou <ebotcazou@adacore.com>
22ad5e0a
EB
3801
3802 * stor-layout.c (finalize_size_functions): Allocate a structure and
3803 reset cfun before dumping the functions.
3804
ba8011e6
JJ
38052013-04-27 Jakub Jelinek <jakub@redhat.com>
3806
d6fde69e
JJ
3807 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
3808
ba8011e6
JJ
3809 PR target/56866
3810 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
3811 use xop_pmacsdqh if uns_p.
3812 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
3813 the immediate rotate count.
3814
2c62cbaa
VM
38152013-04-26 Vladimir Makarov <vmakarov@redhat.com>
3816
3817 * rtl.h (struct rtx_def): Add comment for field jump.
3818 (LRA_SUBREG_P): New macro.
3819 * recog.c (register_operand): Check LRA_SUBREG_P.
3820 * lra.c (lra): Add note at the end of RTL code. Align non-empty
3821 stack frame.
3822 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
3823 (lra_final_code_change): Skip subreg change for operators.
3824 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
3825 if there are no operand changes.
3826 * lra-constraints.c (curr_insn_set): New.
3827 (match_reload): Set LRA_SUBREG_P.
3828 (emit_spill_move): Ditto.
3829 (check_and_process_move): Use curr_insn_set. Process only single
3830 set insns. Don't initialize sec_mem_p and change_p.
3831 (simplify_operand_subreg): Use LRA_SUBREG_P.
3832 (reg_in_class_p): New function.
3833 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
3834 of #ifdef. Add code to remove cycling.
3835 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
3836 non-null disp. Reload inner instead of disp when base and index
3837 are null. Try to put lo_sum into register.
3838 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
3839 (check_and_process_move): Move code for move cost check to
3840 simple_move_p. Remove equiv_substitution.
3841 (simple_move_p): New function.
3842 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
3843 curr_insn_set. Call check_and_process_move only for single set
3844 insns. Use the new function. Move call of check_and_process_move
3845 after operand equiv substitution and address process.
3846
e7d764f3
JJ
38472013-04-26 Jakub Jelinek <jakub@redhat.com>
3848
3849 PR go/57045
3850 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
3851 with nonlocal goto receivers or returns twice calls, ignore
3852 unininitialized values from abnormal edges to nl goto receiver
3853 or returns twice call.
3854
41e10689
JJ
38552013-04-26 Jakub Jelinek <jakub@redhat.com>
3856
3857 PR tree-optimization/57051
3858 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
3859 and VEC_RSHIFT_EXPR if shift count is a multiple of element
3860 bitsize.
3861
d7ed20db
RB
38622013-04-26 Richard Biener <rguenther@suse.de>
3863
3864 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
3865 (expand_omp_taskreg): Likewise. Mark loops for fixup.
3866 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
3867 (fixup_loop_arrays_after_move): New function.
3868 (move_sese_region_to_fn): Properly outline the loop tree parts
3869 of the SESE region.
3870
df93505e
UB
38712013-04-26 Uros Bizjak <ubizjak@gmail.com>
3872
3873 * config/i386/i386.md (type, unit): Fix long lines.
3874
dd366ec3
RB
38752013-04-26 Richard Biener <rguenther@suse.de>
3876
3877 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
3878 (lto-streamer-out.o): Likewise.
3879 * cfgloop.c (init_loops_structure): Export, add struct function
3880 argument and adjust.
3881 (flow_loops_find): Adjust.
3882 * cfgloop.h (enum loop_estimation): Add EST_LAST.
3883 (init_loops_structure): Declare.
3884 * lto-streamer-in.c: Include cfgloop.h.
3885 (input_cfg): Input the loop tree.
3886 * lto-streamer-out.c: Include cfgloop.h.
3887 (output_cfg): Output the loop tree.
3888 (output_struct_function_base): Do not drop PROP_loops.
3889
a9e0d843
RB
38902013-03-26 Richard Biener <rguenther@suse.de>
3891
3892 * tree-cfg.c (execute_build_cfg): Build the loop tree.
3893 (pass_build_cfg): Provide PROP_loops.
3894 (move_sese_region_to_fn): Remove loops that are outlined into fn
3895 for now.
3896 * tree-inline.c: Include cfgloop.h.
3897 (initialize_cfun): Do not drop PROP_loops.
3898 (copy_loops): New function.
3899 (copy_cfg_body): Copy loop structure.
3900 (tree_function_versioning): Initialize destination loop tree.
3901 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
3902 (pass_parallelize_loops): Do IL verification.
3903 * loop-init.c (loop_optimizer_init): Fixup loops if required.
3904 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
3905 the CFG make sure we fixup loops as well.
3906 * tree-ssa-tail-merge.c: Include cfgloop.h.
3907 (replace_block_by): When merging loop latches mark loops for fixup.
3908 * lto-streamer-out.c (output_struct_function_base): Drop
3909 PROP_loops for now.
3910 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
3911 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
3912 * ipa-split.c: Include cfgloop.h.
3913 (split_function): Add the new return block to the loop tree root.
3914 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
3915 whether we have removed the forwarder block.
3916 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
3917 * cfgloop.h (place_new_loop): Declare.
3918 * cfgloopmanip.c (place_new_loop): Export.
3919 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
3920 (tree-switch-conversion.o): Likewise.
3921 (tree-complex.o): Likewise.
3922 (tree-inline.o): Likewise.
3923 (tree-ssa-tailmerge.o): Likewise.
3924 (ipa-split.o): Likewise.
3925 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
3926 (tree-ssa-copy.o): Likewise.
3927 * tree-switch-conversion.c: Include cfgloop.h
3928 (process_switch): If we emit a bit-test cascade, schedule loops
3929 for fixup.
3930 * tree-complex.c: Include cfgloop.h.
3931 (expand_complex_div_wide): Properly add new basic-blocks to loops.
3932 * asan.c: Include cfgloop.h.
3933 (create_cond_insert_point): Properly add new basic-blocks to
3934 loops, schedule loop fixup.
3935 * cfgloop.c (verify_loop_structure): Check that looks are not
3936 marked for fixup.
3937 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
3938 to loops.
3939 (expand_omp_for_generic): Likewise.
3940 (expand_omp_sections): Likewise.
3941 (expand_omp_atomic_pipeline): Schedule loops for fixup.
3942 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
3943 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
3944 is initialized, not when loops are present.
3945 * tree-parloops.c (parallelize_loops): Remove checking here.
3946 * passes.c (init_optimization_passes): Schedule a copy-propagation
3947 pass before complete unrolling of inner loops.
3948
e78e8a0b
JJ
39492013-04-26 Jakub Jelinek <jakub@redhat.com>
3950
a2e836b2
JJ
3951 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
3952 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
3953 (colorize_init): Add argument to _WIN32 version.
3954 * toplev.c: Include diagnostic-color.h.
3955 (process_options): Default to -fdiagnostics-color=auto if
3956 GCC_COLORS env var is in the environment.
3957 * common.opt (fdiagnostics-color=): Add Var and Init.
df93505e
UB
3958 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
3959 env var is in the environment, the default is auto rather than never.
a2e836b2 3960
e78e8a0b
JJ
3961 * diagnostic.h (file_name_as_prefix): Add context argument.
3962 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
3963 the string as locus.
3964 * langhooks.c (lhd_print_error_function): Adjust caller.
3965
013e5ef9
LC
39662013-04-25 Lawrence Crowl <crowl@google.com>
3967
3968 * var-tracking.c (shared_hash_def::htab):
3969 Change type to hash_table. Update dependent calls and types.
3970
4a8fb1a1
LC
39712013-04-25 Lawrence Crowl <crowl@google.com>
3972
3973 * Makefile.in: Update as needed below.
3974
3975 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
3976 Move declaration to after the type's method definitons.
3977
3978 * attribs.c (htab_t scoped_attributes::attribute_hash):
3979 Change type to hash_table. Update dependent calls and types.
3980
3981 * bitmap.c (htab_t bitmap_desc_hash):
3982 Change type to hash_table. Update dependent calls and types.
3983
3984 * cselib.c (htab_t cselib_hash_table):
3985 Change type to hash_table. Update dependent calls and types.
3986
3987 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
3988 (hash_string_slot_node): Move implementation into lto-streamer.h
3989 struct string_slot_hasher.
3990 (eq_string_slot_node): Likewise.
3991
3992 * data-streamer-out.c: Update output_block::string_hash_table
3993 dependent calls and types.
3994
3995 * dwarf2cfi.c (htab_t trace_index):
3996 Change type to hash_table. Update dependent calls and types.
3997
3998 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
3999 Change type to hash_table. Update dependent calls and types.
4000 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
4001 (htab_t optimize_external_refs::map): Likewise.
4002 (htab_t output_comp_unit::extern_map): Likewise.
4003 (htab_t output_comdat_type_unit::extern_map): Likewise.
4004 (htab_t output_macinfo::macinfo_htab): Likewise.
4005 (htab_t optimize_location_lists::htab): Likewise.
4006 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
4007
4008 * except.c (htab_t ehspec_hash_type):
4009 Change type to hash_table. Update dependent calls and types.
4010 (assign_filter_values::ttypes): Likewise.
4011 (assign_filter_values::ehspec): Likewise.
4012 (sjlj_assign_call_site_values::ar_hash): Likewise.
4013 (convert_to_eh_region_ranges::ar_hash): Likewise.
4014
4015 * gcse.c (htab_t pre_ldst_table):
4016 Change type to hash_table. Update dependent calls and types.
4017
4018 * ggc-common.c (htab_t saving_htab):
4019 Change type to hash_table. Update dependent calls and types.
4020 (htab_t loc_hash): Likewise.
4021 (htab_t ptr_hash): Likewise.
4022 (call_count): Rename ggc_call_count.
4023 (call_alloc): Rename ggc_call_alloc.
4024 (loc_descriptor): Rename make_loc_descriptor.
4025 (add_statistics): Rename ggc_add_statistics.
4026
4027 * ggc-common.c (saving_htab):
4028 Change type to hash_table. Update dependent calls and types.
4029
4030 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
4031 (push_gimplify_context): Likewise.
4032 (pop_gimplify_context): Likewise.
4033 (struct gimple_temp_hash_elt): Added.
4034 (struct gimplify_hasher): Likewise.
4035 (struct gimplify_ctx.temp_htab):
4036 Change type to hash_table. Update dependent calls and types.
4037
4038 * gimple-fold.c: Include gimplify-ctx.h.
4039
4040 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
4041 Change type to hash_table. Update dependent calls and types.
4042 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
4043 avoid potential global name collision.
4044
4045 * gimplify.c: Include gimplify-ctx.h.
4046 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
4047 (htab_t gimplify_ctx::temp_htab):
4048 Update dependent calls and types for new type hash_table.
4049 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
4050 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
4051
4052 * gimplify-ctx.h: New.
4053 (struct gimple_temp_hash_elt): Move from gimplify.c.
4054 (class gimplify_hasher): New.
4055 (struct gimplify_ctx): Move from gimple.h.
4056 (htab_t gimplify_ctx::temp_htab):
4057 Change type to hash_table. Update dependent calls and types.
4058
4059 * graphite-clast-to-gimple.c: Include graphite-htab.h.
4060 (htab_t ivs_params::newivs_index):
4061 Change type to hash_table. Update dependent calls and types.
4062 (htab_t ivs_params::params_index): Likewise.
4063 (htab_t print_generated_program::params_index): Likewise.
4064 (htab_t gloog::newivs_index): Likewise.
4065 (htab_t gloog::params_index): Likewise.
4066
4067 * graphite.c: Include graphite-htab.h.
4068 4htab_t graphite_transform_loops::bb_pbb_mapping):
4069 Change type to hash_table. Update dependent calls and types.
4070
4071 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
4072 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
4073 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
4074
4075 * graphite-dependences.c: Include graphite-htab.h.
4076 (loop_is_parallel_p): Change hash table type of parameter.
4077
4078 * graphite-htab.h: New.
4079 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
4080 (extern find_pbb_via_hash): Move from graphite-poly.h.
4081 (extern loop_is_parallel_p): Move from graphite-poly.h.
4082 (extern get_loop_body_pbbs): Move from graphite-poly.h.
4083
4084 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
4085 (extern loop_is_parallel_p): Move to graphite-htab.h.
4086 (extern get_loop_body_pbbs): Move to graphite-htab.h.
4087
4088 * haifa-sched.c (htab_t delay_htab):
4089 Change type to hash_table. Update dependent calls and types.
4090 (htab_t delay_htab_i2): Likewise.
4091
4092 * ira-color.c (htab_t allocno_hard_regs_htab):
4093 Change type to hash_table. Update dependent calls and types.
4094
4095 * ira-costs.c (htab_t cost_classes_htab):
4096 Change type to hash_table. Update dependent calls and types.
4097
4098 * loop-invariant.c (htab_t merge_identical_invariants::eq):
4099 Change type to hash_table. Update dependent calls and types.
4100
4101 * loop-iv.c (htab_t bivs):
4102 Change type to hash_table. Update dependent calls and types.
4103
4104 * loop-unroll.c (htab_t opt_info::insns_to_split):
4105 Change type to hash_table. Update dependent calls and types.
4106 (htab_t opt_info::insns_with_var_to_expand): Likewise.
4107
4108 * lto-streamer.h (struct string_slot): Move from data-streamer.h
4109 (struct string_slot_hasher): New.
4110 (htab_t output_block::string_hash_table):
4111 Change type to hash_table. Update dependent calls and types.
4112
4113 * lto-streamer-in.c (freeing_string_slot_hasher): New.
4114 (htab_t file_name_hash_table):
4115 Change type to hash_table. Update dependent calls and types.
4116
4117 * lto-streamer-out.c: Update output_block::string_hash_table dependent
4118 calls and types.
4119
4120 * lto-streamer.c (htab_t tree_htab):
4121 Change type to hash_table. Update dependent calls and types.
4122
4123 * omp-low.c: Include gimplify-ctx.h.
4124
4125 * passes.c (htab_t name_to_pass_map):
4126 Change type to hash_table. Update dependent calls and types.
4127 (pass_traverse): Rename to passes_pass_traverse.
4128
4129 * plugin.c (htab_t event_tab):
4130 Change type to hash_table. Update dependent calls and types.
4131
4132 * postreload-gcse.c (htab_t expr_table):
4133 Change type to hash_table. Update dependent calls and types.
4134 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
4135
4136 * sese.c (debug_rename_map_1): Make extern.
4137 (htab_t copy_bb_and_scalar_dependences::rename_map):
4138 Change type to hash_table. Update dependent calls and types.
4139
4140 * sese.h (extern debug_rename_map): Move to .c file.
4141
4142 * store-motion.c (htab_t store_motion_mems_table):
4143 Change type to hash_table. Update dependent calls and types.
4144
4145 * trans-mem.c (htab_t tm_new_mem_hash):
4146 Change type to hash_table. Update dependent calls and types.
4147
4148 * tree-browser.c (htab_t TB_up_ht):
4149 Change type to hash_table. Update dependent calls and types.
4150
4151 * tree-cfg.c (htab_t discriminator_per_locus):
4152 Change type to hash_table. Update dependent calls and types.
4153
4154 * tree-complex.c: Include tree-hasher.h
4155 (htab_t complex_variable_components):
4156 Change type to hash_table. Update dependent calls and types.
4157
4158 * tree-eh.c (htab_t finally_tree):
4159 Change type to hash_table. Update dependent calls and types.
4160
4161 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
4162 struct int_tree_hasher.
4163 (extern int_tree_map_eq): Likewise.
4164 (uid_decl_map_hash): Removed.
4165 (extern decl_tree_map_eq): Likewise.
4166
4167 * tree-hasher.h: New.
4168 (struct int_tree_hasher): New.
4169 (typedef int_tree_htab_type): New.
4170
4171 * tree-inline.c: Include gimplify-ctx.h.
4172
4173 * tree-mudflap.c: Include gimplify-ctx.h.
4174
4175 * tree-parloops.c: Include tree-hasher.h.
4176 (htab_t eliminate_local_variables_stmt::decl_address):
4177 Change type to hash_table. Update dependent calls and types.
4178 (htab_t separate_decls_in_region::decl_copies): Likewise.
4179
4180 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
4181 Change type to hash_table. Update dependent calls and types.
4182
4183 * tree-sra.c (candidates):
4184 Change type to hash_table. Update dependent calls and types.
4185
4186 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
4187 in tree-flow.h.
4188 (int_tree_map_hash): Likewise.
4189
4190 * tree-ssa-dom.c (htab_t avail_exprs):
4191 Change type to hash_table. Update dependent calls and types.
4192
4193 * tree-ssa-live.c (var_map_base_init::tree_to_index):
4194 Change type to hash_table. Update dependent calls and types.
4195
4196 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
4197 Change type to hash_table. Update dependent calls and types.
4198
4199 * tree-ssa-phiopt.c (seen_ssa_names):
4200 Change type to hash_table. Update dependent calls and types.
4201
4202 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
4203 Change type to hash_table. Update dependent calls and types.
4204
4205 * tree-ssa-uncprop.c (equiv):
4206 Change type to hash_table. Update dependent calls and types.
4207
c5a44004
JJ
42082013-04-25 Jakub Jelinek <jakub@redhat.com>
4209
4210 PR rtl-optimization/57003
4211 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
4212 call note_stores with kill_clobbered_value callback again after
4213 killing regs_invalidated_by_call.
4214
09962a4a
JG
42152013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4216
4217 * config/aarch64/aarch64-simd.md
4218 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
4219 (aarch64_simd_bsl<mode>): Likewise.
4220 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
4221
ea28bb0b
MP
42222013-04-25 Marek Polacek <polacek@redhat.com>
4223
4224 PR tree-optimization/57066
3c21604f 4225 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
ea28bb0b 4226
96659611
JG
42272013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
4228
4229 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
4230
9697e620
JG
42312013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4232
4233 * config/aarch64/aarch64-builtins.c
4234 (aarch64_fold_builtin): New.
4235 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
4236 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
4237 * config/aarch64/aarch64-simd-builtins.def (abs): New.
4238 * config/aarch64/arm_neon.h
4239 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
4240
0ac198d3
JG
42412013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4242 Tejas Belagod <tejas.belagod@arm.com>
4243
4244 * config/aarch64/aarch64-builtins.c
4245 (aarch64_gimple_fold_builtin): New.
4246 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
4247 * config/aarch64/aarch64-simd-builtins.def (addv): New.
4248 * config/aarch64/aarch64-simd.md (addpv4sf): New.
4249 (addvv4sf): Update.
4250 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
4251
58cff58c
N
42522013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4253
df93505e 4254 * config/aarch64/aarch64.md
58cff58c
N
4255 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
4256
7e0228bf
N
42572013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4258
4259 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
4260 (*ngcsi_uxtw): New pattern.
4261
5819f96f 42622013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3c21604f 4263 Julian Brown <julian@codesourcery.com>
5819f96f
KT
4264
4265 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
4266 (TB_DREG): Add T_V4HF.
4267 (v4hf_UP): New macro.
4268 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
df93505e 4269 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
4270 Handle initialisation of V4HF. Adjust initialisation of reinterpret
4271 built-ins.
df93505e 4272 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
5819f96f
KT
4273 (arm_vector_mode_supported_p): Handle V4HF.
4274 (arm_mangle_map): Handle V4HFmode.
4275 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
4276 * config/arm/arm_neon_builtins.def: Add entries for
4277 vcvtv4hfv4sf, vcvtv4sfv4hf.
4278 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
4279 (neon_vcvtv4hfv4sf): Likewise.
4280 * config/arm/neon-gen.ml: Handle half-precision floating point
4281 features.
4282 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
4283 * config/arm/arm_neon.h: Regenerate.
4284 * config/arm/neon.ml (type elts): Add F16.
4285 (type vectype): Add T_float16x4, T_floatHF.
4286 (type vecmode): Add V4HF.
4287 (type features): Add Requires_FP_bit feature.
4288 (elt_width): Handle F16.
4289 (elt_class): Likewise.
4290 (elt_of_class_width): Likewise.
4291 (mode_of_elt): Refactor.
4292 (type_for_elt): Handle F16, fix error messages.
4293 (vectype_size): Handle T_float16x4.
4294 (vcvt_sh): New function.
4295 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
4296 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
4297 (string_of_mode): Handle V4HF.
4298 * doc/arm-neon-intrinsics.texi: Regenerate.
4299
1ef395e4
JG
43002013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
4301
4302 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
4303 format specifier in 'X' case.
4304
41c34e94
AM
43052013-04-25 Alan Modra <amodra@gmail.com>
4306
4307 PR target/57052
4308 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
4309 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
4310 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
4311 Repeat for many other rotate/shift and mask patterns using subregs.
4312 Name lshiftrt insns.
4313 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
4314 on WORDS_BIG_ENDIAN.
4315
b9a7eb5d
AM
43162013-04-25 Alan Modra <amodra@gmail.com>
4317
4318 * config.gcc: Support little-endian powerpc-linux targets.
4319 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
4320 (LINK_OS_LINUX_SPEC): Define.
4321 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
4322 Preserve MASK_LITTLE_ENDIAN.
4323 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
4324 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
4325 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
4326 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
4327 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
4328 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
4329 Correct fp word order for little-endian. Don't shift toc entries
4330 smaller than a word for little-endian.
4331 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
4332 (bswapdi2 splits): Correct low-part subreg for little-endian.
4333 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
4334 low/high where such is correct only for be.
4335 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
4336 little-endian for -mcall-aixdesc.
4337
87f73374
AM
43382013-04-25 Alan Modra <amodra@gmail.com>
4339
4340 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
4341 replace_equiv_address_nv.
4342
cabf91cd
AM
43432013-04-25 Alan Modra <amodra@gmail.com>
4344
4345 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
4346
0ae24cc8
VM
43472013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4348
4349 Revert:
4350 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4351 * rtl.h (struct rtx_def): ...
cabf91cd 4352
77bce07c
VM
43532013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4354
4355 PR rtl-optimizations/57046
4356 * lra-constraints (split_reg): Set up lra_risky_transformations_p
4357 for multi-reg splits.
4358
0db63e7f
L
43592013-04-24 H.J. Lu <hongjiu.lu@intel.com>
4360
4361 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
4362
3362b6b6
SA
43632013-04-24 Sterling Augustine <saugustine@google.com>
4364
4365 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
4366 (comp_dir_string, debug_str_dwo_section): New.
4367 (DEBUG_STR_DWO_SECTION): Rename to ...
4368 (DEBUG_DWO_STR_SECTION): ... this.
4369 (DEBUG_NORM_STR_SECTION): Delete.
4370 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
4371 (DEBUG_STR_DWO_SECTION_FLAGS): New.
4372 (find_AT_string): Move most logic to ...
4373 (find_AT_string_in_table): ... here. New.
4374 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
4375 add_skeleton_AT_string. Delete logic.
4376 (output_skeleton_debug_sections): Remove call to
4377 add_top_level_skeleton_die_attrs.
4378 (add_comp_dir_attribute): Move logic to comp_dir_string.
4379 (dwarf2out_init): Initialize debug_str_dwo_section.
4380 (output_indirect_string): Call find_string_form.
4381 (output_indirect_strings): Rewrite.
4382 (prune_unused_types): Empty skeleton_debug_str_hash.
4383 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
4384 (dwarf2out_finish): Call output_indirect_strings.
4385
e93e18e9
PC
43862013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4387
4388 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
4389
f6ce35ac
VM
43902013-04-24 Vladimir Makarov <vmakarov@redhat.com>
4391
cabf91cd 4392 * rtl.h (struct rtx_def): Add comment for field jump.
f6ce35ac
VM
4393 (LRA_SUBREG_P): New macro.
4394 * recog.c (register_operand): Check LRA_SUBREG_P.
4395 * lra.c (lra): Add note at the end of RTL code. Align non-empty
4396 stack frame.
4397 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
4398 (lra_final_code_change): Skip subreg change for operators.
4399 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
4400 if there are no operand changes.
4401 * lra-constraints.c (curr_insn_set): New.
4402 (match_reload): Set LRA_SUBREG_P.
4403 (emit_spill_move): Ditto.
4404 (check_and_process_move): Use curr_insn_set. Process only single
4405 set insns. Don't initialize sec_mem_p and change_p.
4406 (simplify_operand_subreg): Use LRA_SUBREG_P.
4407 (reg_in_class_p): New function.
4408 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
4409 of #ifdef. Add code to remove cycling.
4410 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
4411 non-null disp. Reload inner instead of disp when base and index
4412 are null. Try to put lo_sum into register.
4413 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
cabf91cd 4414 (check_and_process_move): Move code for move cost check to
f6ce35ac 4415 simple_move_p. Remove equiv_substitution.
cabf91cd 4416 (simple_move_p): New function.
f6ce35ac
VM
4417 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
4418 curr_insn_set. Call check_and_process_move only for single set
4419 insns. Use the new function. Move call of check_and_process_move
4420 after operand equiv substitution and address process.
4421
38047d90
JG
44222013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
4423
4424 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
4425 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
4426 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
4427
13f39b2e
PC
44282013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
4429
4430 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
4431
97c116dc
MP
44322013-04-24 Marek Polacek <polacek@redhat.com>
4433
4434 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
4435 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
4436 (select_loops_exit_conditions): Likewise.
4437 (number_of_iterations_for_all_loops): Likewise.
4438 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
4439 (scev_analysis): Likewise.
4440
83082391
CM
44412013-04-02 Catherine Moore <clm@codesourcery.com>
4442 Chao-ying Fu <fu@mips.com>
4443
cabf91cd
AM
4444 * config/mips/micromips.md (jraddiusp): New pattern.
4445 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
4446 instruction if possible.
83082391 4447
19e34aa2
AM
44482013-04-24 Alan Modra <amodra@gmail.com>
4449
4450 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
4451
fdb6603c
JB
44522013-04-24 Julian Brown <julian@codesourcery.com>
4453 Chung-Lin Tang <cltang@codesourcery.com>
4454
4455 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
df93505e
UB
4456 dependency behavior in enumeration type DIE generation. Add TODO note
4457 to comments about future DW_FORM_sdata/udata re-work of related code.
fdb6603c 4458
bf190e8d
LC
44592013-04-23 Lawrence Crowl <crowl@google.com>
4460
4461 * Makefile.in: Update as needed below.
4462
4463 * hash-table.h (class hash_table):
4464 Correct many methods with parameter types compare_type to the correct
4465 value_type. (Correct code was unlikely to notice the change.)
4466 (hash_table::elements_with_deleted) New.
4467 (class hashtable::iterator): New.
4468 (hashtable::begin()): New.
4469 (hashtable::end()): New.
4470 (FOR_EACH_HASH_TABLE_ELEMENT): New.
4471
4472 * statistics.c (statistics_hashes):
4473 Change type to hash_table. Update dependent calls and types.
4474
4475 * tree-into-ssa.c (var_infos):
4476 Change type to hash_table. Update dependent calls and types.
4477
4478 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
4479 Change type to hash_table. Update dependent calls and types.
4480
4481 * tree-ssa-loop-im.c (struct mem_ref.refs):
4482 Change type to hash_table. Update dependent calls and types.
4483
4484 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
4485 Change type to hash_table. Update dependent calls and types.
4486
4487 * tree-ssa-sccvn.c (vn_tables_s::nary):
4488 Change type to hash_table. Update dependent calls and types.
4489 (vn_tables_s::phis): Likewise.
4490 (vn_tables_s::references): Likewise.
4491
4492 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
4493 (vn_reference_eq): Update parameter and return types.
4494
4495 * tree-ssa-structalias.c (pointer_equiv_class_table):
4496 Change type to hash_table. Update dependent calls and types.
4497 (location_equiv_class_table): Likewise.
4498
4499 * tree-vect-data-refs.c: Consequential changes for making
4500 peeling a hash_table.
4501
4502 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
4503 (destroy_loop_vec_info): Dependent hash_table update.
4504
4505 * tree-vectorizer.h (peeling_htab):
4506 Change type to hash_table. Update dependent calls and types.
4507
d70a81dd
SC
45082013-04-23 Shiva Chen <shiva0217@gmail.com>
4509
cabf91cd
AM
4510 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
4511 to check the register content is equal or not.
4512 * lra-constraints.c (match_reload): Use lra_assign_reg_val
4513 to assign register content record.
4514 * lra-eliminations.c (update_reg_eliminate): Use
d70a81dd 4515 lra_update_reg_val_offset to update register content offset.
cabf91cd
AM
4516 * lra-int.h (struct lra_reg): Add offset member.
4517 (lra_reg_val_equal_p): New static inline function.
4518 (lra_update_reg_val_offset): New static inline function.
4519 (lra_assign_reg_val): New static inline function.
4520 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
4521 to assign register content record.
4522 (initialize_lra_reg_info_element): Initial offset to zero.
d70a81dd 4523
b894a1f3
CM
45242013-04-23 Catherine Moore <clm@codesourcery.com>
4525
4526 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
4527 operands. Record compression.
4528
ecd14de9
XDL
45292013-04-23 Xinliang David Li <davidxl@google.com>
4530
4531 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
4532
92e776e9
RB
45332013-04-23 Richard Biener <rguenther@suse.de>
4534
4535 PR middle-end/57036
4536 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
4537 parameter, only add abnormal goto edges from the copied body
4538 if the call could perform abnormal gotos.
4539 (copy_cfg_body): Adjust.
4540
a15ee567
SN
45412013-04-23 Sofiane Naci <sofiane.naci@arm.com>
4542
4543 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
4544
08c52234
AS
45452013-04-23 Andreas Schwab <schwab@linux-m68k.org>
4546
4547 * coretypes.h (gimple_stmt_iterator): Add struct to make
4548 compatible with C.
4549
999c1171
RB
45502013-04-23 Richard Biener <rguenther@suse.de>
4551
4552 PR tree-optimization/57026
4553 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
4554 from SSA names occuring in abnormal PHI nodes.
4555
53669259
AK
45562013-04-22 Andi Kleen <ak@linux.intel.com>
4557
4558 * lto/lto.c (print_lto_report_1): Fix LTO report names.
4559
1a0ad150
AK
45602013-04-22 Andi Kleen <ak@linux.intel.com>
4561
4562 * lto/lto.c (print_lto_report_1): Declare early.
4563 (read_cgraph_and_symbols): Call print_lto_report_1 early.
4564
057f8f20
AK
45652013-04-22 Andi Kleen <ak@linux.intel.com>
4566
4567 * common.opt (-flto-report-wpa): Add.
4568 * doc/invoke.texi (-flto-report-wpa): Add.
4569 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
4570 (lto_main): dito.
4571
473b1e05
XDL
45722013-04-22 Xinliang David Li <davidxl@google.com>
4573
4574 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
4575 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
4576 * Makefile.in: New dependency
4577
cabf91cd 4578 David Daney <ddaney.cavm@gmail.com>
b1485a33 4579
cabf91cd
AM
4580 * configure.ac (gcc_cv_as_micromips_support): Use the
4581 --fatal-warnings option.
4582 * configure: Regenerate.
b1485a33 4583
829d0168
MP
45842013-04-22 Marek Polacek <polacek@redhat.com>
4585
4586 PR sanitizer/56990
4587 * tsan.c (instrument_expr): Don't instrument expression
4588 in case its size is zero.
4589
6d9b7208
UB
45902013-04-22 Uros Bizjak <ubizjak@gmail.com>
4591
4592 PR target/57032
4593 Revert:
4594 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
4595
4596 * config/alpha/alpha.c (TARGET_LRA_P): New define.
4597
ea679d55
JG
45982013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4599
4600 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
4601 (gimple_stmt_iterator): New typedef.
4602 * gimple.h (gimple_stmt_iterator): Rename to...
4603 (gimple_stmt_iterator_d): ... This.
4604 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
4605 trees be valid for GIMPLE and GENERIC.
4606 (TARGET_GIMPLE_FOLD_BUILTIN): New.
4607 * gimple-fold.c (gimple_fold_call): Call target hook
4608 gimple_fold_builtin.
4609 * hooks.c (hook_bool_gsiptr_false): New.
4610 * hooks.h (hook_bool_gsiptr_false): New.
4611 * target.def (fold_stmt): New.
4612 * doc/tm.texi: Regenerate.
4613
88a581da
VM
46142013-04-22 Vladimir Makarov <vmakarov@redhat.com>
4615
4616 PR target/57018
4617 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
4618 a set sp if no stack realignment.
4619
92be22dc
NC
46202013-04-22 Nick Clifton <nickc@redhat.com>
4621
4622 * config.gcc (tilegx-linux): Extend extra_objs rather than
4623 overwriting it.
4624 (tilepro-linux): Likewise.
4625
0ddec79f
JG
46262013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4627
4628 * config/aarch64/aarch64-builtins.c
4629 (CF): Remove.
4630 (CF0, CF1, CF2, CF3, CF4, CF10): New.
4631 (VAR<1-12>): Add MAP parameter.
4632 (BUILTIN_*): Likewise.
4633 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
4634 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
4635 (aarch64_ushl_n<mode>): Likewise.
4636 (aarch64_sshr_n<mode>): Likewise.
4637 (aarch64_ushr_n<mode>): Likewise.
4638 (aarch64_<maxmin><mode>): Likewise.
4639 (aarch64_sqrt<mode>): Likewise.
4640 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
4641 (vshr<q>_n_*): Likewise.
4642
0050faf8
JG
46432013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
4644
4645 * config/aarch64/aarch64-builtins.c
4646 (aarch64_simd_builtin_type_mode): Handle SF types.
4647 (sf_UP): Define.
4648 (BUILTIN_GPF): Define.
4649 (aarch64_init_simd_builtins): Handle SF types.
4650 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
4651 (frecps): Likewise.
4652 (frecpx): Likewise.
4653 * config/aarch64/aarch64-simd.md
4654 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
4655 (aarch64_frecpe<mode>): New.
4656 (aarch64_frecps<mode>): Likewise.
4657 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
4658 (v8type): Add frecp<esx>.
4659 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
4660 (aarch64_frecps<mode>): Likewise.
4661 * config/aarch64/iterators.md (FRECP): New.
4662 (frecp_suffix): Likewise.
4663 * config/aarch64/arm_neon.h
4664 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
4665
0fad3dbc 46662013-04-22 Christian Bruel <christian.bruel@st.com>
1818d01c
CB
4667
4668 PR target/56995
4669 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
4670 (REG_CLASS_NAMES): Idem.
4671 (REG_CLASS_CONTENTS): Idem.
4672 (REGCLASS_HAS_FP_REG): Idem.
4673 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
4674 (sh_conditional_register_usage): Idem.
4675
3e8a33f9
JL
46762013-04-21 Jeff Law <law@redhat.com>
4677
4678 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
4679 (ssa_forward_propagate_and_combine): Use it.
4680
f38e1b0a
VM
46812013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4682
4683 * lra.c: Update the flow chart diagram.
4684
682303da
VM
46852013-04-19 Vladimir Makarov <vmakarov@redhat.com>
4686
4687 PR rtl-optimization/56847
4688 * lra-constraints.c (process_alt_operands): Discourage alternative
4689 with non-matche doffsettable memory constraint fro memory with
4690 known offset.
4691
f6b64c35
RB
46922013-04-19 Richard Biener <rguenther@suse.de>
4693
4694 PR tree-optimization/56982
4695 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
4696 function.
4697 * gimplify.c (gimplify_call_expr): Notice special calls.
4698 (gimplify_modify_expr): Likewise.
4699 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
4700 abnormal control flow receivers.
4701 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
4702 in the same way as cfun->has_nonlocal_labels.
4703 (gimple_purge_dead_abnormal_call_edges): Likewise.
4704 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
4705 receivers start a basic-block.
4706
01d8bf07
RB
47072013-04-19 Richard Biener <rguenther@suse.de>
4708
4709 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
4710 member ...
4711 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
4712 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
4713 (SLP_TREE_LOAD_PERMUTATION): Add.
4714 (vect_transform_slp_perm_load): Adjust prototype.
4715 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
4716 (vect_free_slp_instance): Likewise.
4717 (vect_create_new_slp_node): Likewise.
4718 (vect_supported_slp_permutation_p): Remove.
4719 (vect_slp_rearrange_stmts): Adjust.
4720 (vect_supported_load_permutation_p): Likewise. Inline
4721 vect_supported_slp_permutation_p here.
4722 (vect_analyze_slp_instance): Compute load permutations per
4723 slp node instead of per instance.
4724 (vect_get_slp_defs): Adjust.
4725 (vect_transform_slp_perm_load): Likewise.
4726 (vect_schedule_slp_instance): Remove redundant code.
4727 (vect_schedule_slp): Remove hack for PR56270, add it ...
4728 * tree-vect-stmts.c (vectorizable_load): ... here, do not
4729 CSE loads for SLP. Adjust.
4730
ede22fc3
GY
47312013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4732
4733 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
4734 spelling in two comments.
4735
67bc84fb
GY
47362013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
4737
4738 PR target/56797
4739 * config/arm/arm.c (load_multiple_sequence): Require SP
4740 as base register for loads if SP is in the register list.
4741
e248d83f
MJ
47422013-04-19 Martin Jambor <mjambor@suse.cz>
4743
4744 PR tree-optimization/56718
4745 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
4746 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
4747 and made public. Adjusted all callers.
4748 (ipa_intraprocedural_devirtualization): New function.
4749 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
4750 (ipa_intraprocedural_devirtualization): Likewise.
4751 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
4752
4891e8f8
RB
47532013-04-19 Richard Biener <rguenther@suse.de>
4754
4755 PR tree-optimization/57000
4756 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
4757
dad89f7c
TG
47582013-04-19 Terry Guo <terry.guo@arm.com>
4759
4760 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
4761 Replace with ...
4762 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
4763 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
4764 (cortex_m4_fmacs): Use new reservations.
4765 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
4766
72ea0d47
VM
47672013-04-18 Vladimir Makarov <vmakarov@redhat.com>
4768
f1e6512c 4769 PR rtl-optimization/56999
72ea0d47
VM
4770 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
4771 related code.
4772 (lra_coalesce): Remove split_origin_bitmap and related code.
4773 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
4774 ranges if necessary.
4775
780a5b71
UB
47762013-04-18 Uros Bizjak <ubizjak@gmail.com>
4777
4778 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
4779 New array.
4780 (ix86_expand_call): Remove clobbered_registers array and use
4781 x86_64_ms_sysv_extra_clobbered_registers instead.
4782 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
4783 Declare here.
4784 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
4785 predicate.
4786 * config/i386/i386.md (*call_rex64_ms_sysv): Use
4787 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
4788 (*call_value_rex64_ms_sysv): Ditto.
4789
6f5a366a
CC
47902013-04-18 Cary Coutant <ccoutant@google.com>
4791
4792 * dwarf2out.c (output_pubnames): Check die_perennial_p of
4793 parent instead of die_mark.
4794
475b8f37
DN
47952013-04-18 Diego Novillo <dnovillo@google.com>
4796
4797 * gimple.c (create_gimple_tmp): New.
4798 (get_expr_type): New.
4799 (build_assign): New.
4800 (build_type_cast): New.
4801 * gimple.h (enum ssa_mode): Define.
4802 (gimple_seq_set_location): New.
4803 * asan.c (build_check_stmt): Change some gimple_build_* calls
780a5b71 4804 to use build_assign and build_type_cast.
475b8f37 4805
08940f33
RB
48062013-04-18 Richard Biener <rguenther@suse.de>
4807
4808 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
4809 handle negative step. Remove redundant checks.
4810 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
4811 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
4812 for negative step and grouped loads fail to vectorize.
4813
0e0f87d4
SB
48142013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4815
4816 * emit-rtl.c (reset_insn_used_flags): New function.
4817 (reset_all_used_flags): Use it.
4818 (verify_insn_sharing): New function.
4819 (verify_rtl_sharing): Fix verification for SEQUENCEs.
4820
4c445590
JJ
48212013-04-18 Jakub Jelinek <jakub@redhat.com>
4822
4823 PR tree-optimization/56984
4824 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
4825 and (x >> M) >= N don't register any assertion if N << M is the
4826 minimum value.
4827
6873ecab
SB
48282013-04-18 Steven Bosscher <steven@gcc.gnu.org>
4829
4830 * lower-subreg.c (resolve_simple_move): If called self-recursive,
4831 do not delete_insn insns that have not yet been emitted, only
4832 unlink them with remove_insn.
4833 * df-scan.c (df_insn_delete): Revert r197492.
4834
3ccb989e
SB
48352013-04-17 Steven Bosscher <steven@gcc.gnu.org>
4836
4837 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
4838 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
4839
48402013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
0480fff0
GY
4841
4842 * config/arm/arm.md (movsicc_insn): Convert define_insn into
4843 define_insn_and_split.
4844 (and_scc,ior_scc,negscc): Likewise.
4845 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
4846
3ccb989e 48472013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
367075fe
GY
4848
4849 * config/arm/arm.c (use_return_insn): Return 0 for targets that
4850 can benefit from using a sequence of LDRD instructions in epilogue
4851 instead of a single LDM instruction.
4852
6d10a203
MLI
48532013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4854
4855 PR 45688
4856 * doc/extend.texi: Fix typo.
4857
6983e6b5
RB
48582013-04-17 Richard Biener <rguenther@suse.de>
4859
4860 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
4861 (vect_build_slp_tree): ... here.
4862 (vect_build_slp_tree_1): Compute which stmts of the SLP group
4863 match. Remove special-casing of mismatched complex loads.
4864 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
4865 re-try the match with swapped commutative operands.
4866 (vect_supported_load_permutation_p): Remove special-casing of
4867 mismatched complex loads.
4868 (vect_analyze_slp_instance): Adjust.
4869
ef23e6a2
RB
48702013-04-17 Richard Biener <rguenther@suse.de>
4871
4872 PR rtl-optimization/56921
4873 * cfgloop.h (struct loop): Add simple_loop_desc member.
4874 (struct niter_desc): Mark with GTY(()).
4875 (simple_loop_desc): Do not use aux field but simple_loop_desc.
4876 * loop-iv.c (get_simple_loop_desc): Likewise.
4877 (free_simple_loop_desc): Likewise.
4878
4879 Revert
4880 2013-04-16 Richard Biener <rguenther@suse.de>
4881
4882 PR rtl-optimization/56921
4883 * loop-init.c (pass_rtl_move_loop_invariants): Add
4884 TODO_do_not_ggc_collect to todo_flags_finish.
4885 (pass_rtl_unswitch): Same.
4886 (pass_rtl_unroll_and_peel_loops): Same.
4887 (pass_rtl_doloop): Same.
4888
fc6f94f5
EB
48892013-04-17 Eric Botcazou <ebotcazou@adacore.com>
4890
4891 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
4892 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
4893 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
4894 references.
4895 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
4896 * tree-streamer.c (record_common_node): Adjust reference in comment.
4897
10a88311
TG
48982013-04-17 Terry Guo <terry.guo@arm.com>
4899
4900 * config/arm/cortex-m4.md: Add a new bypass.
4901
6d9b7208 49022013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f3d096b0
N
4903
4904 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
4905 New pattern.
4906 (*subs_<optab><mode>_multp2): New pattern.
4907 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4908 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
4909
6d9b7208 49102013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
860ad33f
N
4911
4912 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
4913 (*subs_mul_imm_<mode>): New pattern.
4914
18a6701e
DE
49152013-04-16 David Edelsohn <dje.gcc@gmail.com>
4916
4917 PR target/56948
4918 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
4919 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
4920 (vsx_movti_32bit): Change j->wa to O->wa.
4921
07c37b2f
RB
49222013-04-16 Richard Biener <rguenther@suse.de>
4923
4924 PR rtl-optimization/56921
4925 * loop-init.c (pass_rtl_move_loop_invariants): Add
4926 TODO_do_not_ggc_collect to todo_flags_finish.
4927 (pass_rtl_unswitch): Same.
4928 (pass_rtl_unroll_and_peel_loops): Same.
4929 (pass_rtl_doloop): Same.
4930
0e0f87d4 49312013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
974ba22d
GY
4932
4933 * config/arm/arm.c (emit_multi_reg_push): New declaration
4934 for an existing function.
4935 (arm_emit_strd_push): New function.
4936 (arm_expand_prologue): Used here.
4937 (arm_emit_ldrd_pop): New function.
4938 (arm_expand_epilogue): Used here.
4939 (arm_get_frame_offsets): Update condition.
4940 (arm_emit_multi_reg_pop): Add a special case for load of a single
4941 register with writeback.
4942
5e8e2af4
UB
49432013-04-16 Uros Bizjak <ubizjak@gmail.com>
4944
4945 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
4946 description.
4947
9fd9ccf7
RB
49482013-04-16 Richard Biener <rguenther@suse.de>
4949
4950 PR tree-optimization/56756
4951 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
4952 (first_mem_ref_loc): New.
4953 (execute_sm): Place the load temporarily before a previous
4954 access instead of in the latch edge to ensure its SSA dependencies
4955 are defined at points dominating the load.
4956
96fba521
SB
49572013-04-16 Steven Bosscher <steven@gcc.gnu.org>
4958
4c8af858
SB
4959 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
4960 correct fix by moving header and footer insn to the footer of
4961 the merged basic block. Clear BB_END of the merged-away block.
4962
96fba521
SB
4963 PR middle-end/43631
4964 * emit-rtl.c (make_note_raw): New function.
4965 (link_insn_into_chain): New static inline function.
4966 (add_insn): Use it.
4967 (add_insn_before, add_insn_after): Factor insn chain linking code...
4968 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
4969 using link_insn_into_chain.
4970 (note_outside_basic_block_p): New helper function for emit_note_after
4971 and emit_note_before.
4972 (emit_note_after): Use nobb variant of add_insn_after if the note
4973 should not be contained in a basic block.
4974 (emit_note_before): Use nobb variant of add_insn_before if the note
4975 should not be contained in a basic block.
4976 (emit_note_copy): Use make_note_raw.
4977 (emit_note): Likewise.
4978 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
4979 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
4980 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
4981 the moved barrier the tail of the basic block it follows.
4982 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
4983
7b8265ba
JJ
49842013-04-15 Jakub Jelinek <jakub@redhat.com>
4985
4986 PR tree-optimization/56962
4987 * gimple-ssa-strength-reduction.c (record_increment): Only set
4988 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
4989 either rhs1 or rhs2 is equal to c->base_expr.
4990
5185d248
RB
49912013-04-15 Richard Biener <rguenther@suse.de>
4992
4993 PR tree-optimization/56933
4994 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
4995 member.
4996 (GROUP_READ_WRITE_DEPENDENCE): Remove.
4997 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
4998 * tree-vect-data-refs.c (vect_analyze_group_access): Move
4999 dependence check ...
5000 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
5001 ... here.
5002 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
5003 GROUP_READ_WRITE_DEPENDENCE.
5004
a24243a0
AK
50052013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5006
5007 * emit-rtl.c (reset_all_used_flags): New function.
5008 (verify_rtl_sharing): Call reset_all_used_flags before and after
5009 performing the checks.
5010
1c50eada
KT
50112013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5012
5013 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
5014 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
5015 * config/arm/constraints.md (De): New constraint.
5016 * config/arm/neon.md (anddi3_neon): Delete.
5017 (neon_vand<mode>): Expand to standard anddi3 pattern.
5018 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
5019 Move earlier in the file.
5020 (neon_inv_logic_op2): Likewise.
5021 (arm_anddi_operand_neon): New predicate.
5022
e927b6ad
RO
50232013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5024
5025 * configure.ac (gcc_cv_ld_as_needed): Set
5026 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
5027 Use -z ignore, -z record on *-*-solaris2*.
5028 (HAVE_LD_AS_NEEDED): Update comment.
5029 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
5030 * configure: Regenerate.
5031 * config.in: Regenerate.
5032 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
5033 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
5034 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
5035 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
5036 equivalents. Fix markup.
5037 * doc/tm.texi: Regenerate.
5038
e0ea8797
AH
50392013-04-15 Andrew Hsieh <andrewhsieh.google.com>
5040
5041 * config/i386/i386.opt: New option mstack-protector-guard=.
5042 * config/i386/i386-opts.h: Add enum stack_protector_guard.
5043 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
5044 TARGET_SSP_TLS_GUARD.
5045 * config/i386/i386.c (ix86_option_override_internal): Set
5046 ix86_stack_protector_guard.
5047 * config/i386/i386.md (stack_protect_set): Enable for
5048 TARGET_SSP_TLS_GUARD only.
5049 (stack_protect_set_<mode>): Ditto.
5050 (stack_protect_test): Ditto.
5051 (stack_protect_test_<mode>): Ditto.
5052 * doc/invoke.texi (i386 Option): Document.
5053
811b72f9
EB
50542013-04-15 Eric Botcazou <ebotcazou@adacore.com>
5055
5056 PR target/56890
5057 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
5058 (S_MODES): Set H_MODE bit.
5059 (SF_MODES): Set only S_MODE and SF_MODE bits.
5060 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
5061 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
5062 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
5063 <MODE_FLOAT>: Likewise.
5064
5529fdd6
JY
50652013-04-15 Joey Ye <joey.ye@arm.com>
5066
5067 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
5068
517b1da2
JY
50692013-04-15 Joey Ye <joey.ye@arm.com>
5070
5071 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
5072 for real far jump.
5073 (thumb_far_jump_used_p): Count instruction size and set
5074 far_jump_used.
5075
01007ae0
EB
50762013-04-14 Eric Botcazou <ebotcazou@adacore.com>
5077
5078 * reorg.c (fill_simple_delay_slots): Reindent block of code.
5079 * resource.c (mark_target_live_regs): Reformat conditional block.
5080
c46f6580
SB
50812013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5082
5083 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
5084 notes, they are emitted only just before final.
5085 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
5086
1f397f45
SB
50872013-04-13 Steven Bosscher <steven@gcc.gnu.org>
5088
5089 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
5090 * cfgrtl.c (delete_insn): Call it here instead.
5091 * lra-spills.c (lra_final_code_change): Use delete_insn.
5092 * haifa-sched.c (sched_remove_insn): Likewise.
5093 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
5094 returning to the nop pool.
5095 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
5096 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
5097
58a51369
SB
50982013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5099
5100 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
5101 * doc/tm.texi: Regenerated.
5102
33159866
UB
51032013-04-12 Uros Bizjak <ubizjak@gmail.com>
5104
5105 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
5106 QImode checks.
5107
226e378f
SB
51082013-04-12 Steven Bosscher <steven@gcc.gnu.org>
5109
5110 * df-core.c (df_find_def): Compare register numbers.
5111 (df_find_use): Likewise.
5112
fafb9b18
VM
51132013-04-12 Vladimir Makarov <vmakarov@redhat.com>
5114
5115 PR target/56903
5116 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
5117 lra_in_progress for return.
5118
9a946fd6
GY
51192013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5120
5121 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
5122 define_insn into define_insn_and_split and emit movsicc patterns.
5123
41b83758
GY
51242013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
5125
5126 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
5127
d3afd9aa
RB
51282013-04-12 Richard Biener <rguenther@suse.de>
5129
5130 * tree-pass.h (TODO_do_not_ggc_collect): New.
5131 * passes.c (execute_one_ipa_transform_pass): Honor
5132 TODO_do_not_ggc_collect.
5133 (execute_one_pass): Likewise.
5134
5135 Revert
5136 2013-04-10 Richard Biener <rguenther@suse.de>
5137
5138 * passes.c (init_optimization_passes): Remove reload pass.
5139 * ira.c (do_reload): Merge into ...
5140 (ira): ... this.
5141 (rest_of_handle_reload): Remove.
5142 (pass_reload): Likewise.
5143 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5144 of reload for vzeroupper pass placement.
5145
06f9b387
JJ
51462013-04-12 Jakub Jelinek <jakub@redhat.com>
5147
5148 PR tree-optimization/56918
5149 PR tree-optimization/56920
5150 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
5151 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
5152 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
5153 use wide_mul_with_sign method.
5154
953094d2
RB
51552013-04-12 Richard Biener <rguenther@suse.de>
5156
5157 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
5158 not be considered a gimple constant.
5159
bb506982
MG
51602013-04-12 Marc Glisse <marc.glisse@inria.fr>
5161
5162 * fold-const.c (const_binop): Handle vector shifts by a scalar.
5163 (fold_binary_loc): Call const_binop also for mixed vector-scalar
5164 operations.
5165
4b84d650
JJ
51662013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
5167 Jakub Jelinek <jakub@redhat.com>
5168
5169 * opts.c: Include diagnostic-color.h.
5170 (common_handle_option): Handle OPT_fdiagnostics_color_.
5171 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
5172 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
5173 (diagnostic-color.o): New.
5174 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
5175 (diagnostic_color_rule): New enum.
5176 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
5177 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
5178 the location string.
5179 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
5180 either NULL, or color kind.
5181 * diagnostic-color.c: New file.
5182 * diagnostic-color.h: New file.
5183 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
5184 arguments.
5185 * doc/invoke.texi (-fdiagnostics-color): Document.
5186 * pretty-print.h (pp_show_color): Define.
5187 (struct pretty_print_info): Add show_color field.
5188 * diagnostic.c: Include diagnostic-color.h.
5189 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
5190 macros. Colorize error:, warning: etc. strings and also the location
5191 string.
5192 (diagnostic_show_locus): Colorize the caret line.
5193 * pretty-print.c: Include diagnostic-color.h.
5194 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
5195 inside of %< %> quotes or quoted through q format modifier.
5196
067a1e71
AK
51972013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5198
33159866 5199 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
067a1e71 5200
33159866 52012013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
b056c910
N
5202
5203 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
5204 code in CC_NZ mode.
5205 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
5206 pattern.
5207
7b55f98f
MP
52082013-04-11 Marek Polacek <polacek@redhat.com>
5209
5210 PR tree-optimization/48184
33159866 5211 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7b55f98f 5212
966b587e
EB
52132013-04-11 Eric Botcazou <ebotcazou@adacore.com>
5214
5215 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
5216 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
5217 (skip_simple_arithmetic): Tidy up.
5218 * tree.h (skip_simple_constant_arithmetic): Declare.
5219
33159866 52202013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
f8bf91ab
N
5221
5222 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
5223
1d42c1ec
RB
52242013-04-11 Richard Biener <rguenther@suse.de>
5225
5226 * tree-vect-loop.c (get_initial_def_for_induction): Properly
5227 generate vector constants.
5228
4ba5ea11
RB
52292013-04-11 Richard Biener <rguenther@suse.de>
5230
5231 PR tree-optimization/56878
5232 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
5233 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
5234 New function.
5235 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
5236 Prefer to align the DR with the most invariant base address.
5237
f0defe58
SKS
52382013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
5239
5240 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
5241 comment.
5242
d07458be
JG
52432013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
5244
5245 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
5246 floating-point vector comparisons against 0.
5247
146b8692
JJ
52482013-04-11 Jakub Jelinek <jakub@redhat.com>
5249
5250 PR tree-optimization/56899
5251 * fold-const.c (extract_muldiv_1): Apply distributive law
5252 only if TYPE_OVERFLOW_WRAPS (ctype).
5253
b8578ff7
BC
52542013-04-11 Bin Cheng <bin.cheng@arm.com>
5255
5256 PR target/56124
5257 * ira-costs.c (scan_one_insn): Check whether the source rtx of
5258 loading has side effect.
5259
0ea8a6f9
SB
52602013-04-10 Steven Bosscher <steven@gcc.gnu.org>
5261
5262 * config/sparc/sparc.c: Include tree-pass.h.
5263 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
5264 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
5265 head of file. Change return type. Split off gate function.
5266 (sparc_gate_work_around_errata): New function.
5267 (pass_work_around_errata): New pass definition.
5268 (insert_pass_work_around_errata) New pass insert definition to
5269 insert pass_work_around_errata just after delayed-branch scheduling.
5270 (sparc_option_override): Insert the pass.
5271 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
5272
42e37616
DM
52732013-04-10 David S. Miller <davem@davemloft.net>
5274
89deeb3b
DM
5275 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
5276 or -mcpu=hypersparc.
5277
42e37616
DM
5278 * target.def (cstore_mode): New hook.
5279 * target.h: Include insn-codes.h
5280 * targhooks.c: Likewise.
5281 (default_cstore_mode): New function.
5282 * targhooks.h: Declare it.
5283 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
5284 * doc/tm.texi: Rebuild.
5285 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
5286 target hook, rather than inspecting the insn_data.
5287 * config/sparc/sparc.c (sparc_cstore_mode): New function.
5288 (TARGET_CSTORE_MODE): Redefine.
5289 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
5290 result patterns.
5291 * config/sparc/predicates.md (cstore_result_operand): New special
5292 predicate.
5293 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
5294 Use it for operand 0.
5295 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
5296 (*snesi_special): Likewise.
5297 (*snesi_zero): Likewise.
5298 (*seqsi_zero): Likewise.
5299 (*sltu_insn): Likewise.
5300 (*sgeu_insn): Likewise.
5301 (*seqdi_special): Make operand 0 and comparison operation be of
5302 DImode.
5303 (*snedi_special): Likewise.
5304 (*snedi_special_vis3): Likewise.
5305 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
5306 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
5307 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
5308 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
5309 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
5310 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
5311 (*sltu_extend_sp64): Likewise.
5312 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
5313 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
5314 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
5315 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
5316 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
5317
95ca411e
YZ
53182013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
5319
5320 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
5321 (aarch64_start_file): Use the new function.
5322
6782438d 53232013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33159866 5324 Jason Merrill <jason@redhat.com>
6782438d
SKS
5325
5326 * common.opt: Add -gdwarf.
5327 * opts.c (common_handle_option): Handle it.
5328 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
5329
bb313b93
RB
53302013-04-10 Richard Biener <rguenther@suse.de>
5331
5332 * passes.c (execute_todo): Do not call ggc_collect conditional here.
5333 (execute_one_ipa_transform_pass): But unconditionally here.
5334 (execute_one_pass): And here.
5335 (init_optimization_passes): Remove reload pass.
5336 * tree-pass.h (TODO_ggc_collect): Remove.
5337 (pass_reload): Likewise.
5338 * ira.c (do_reload): Merge into ...
5339 (ira): ... this.
5340 (rest_of_handle_reload): Remove.
5341 (pass_reload): Likewise.
5342 * config/i386/i386.c (ix86_option_override): Refer to ira instead
5343 of reload for vzeroupper pass placement.
5344 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
5345 and todo_flags_finish of all passes.
5346
793d9a16
RB
53472013-04-10 Richard Biener <rguenther@suse.de>
5348
5349 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
5350 first_const_oprnd field, rename first_def_type to first_op_type.
5351 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
5352 (vect_get_and_check_slp_defs): Always use the type of the
5353 operand. Allow mixed vect_external_def, vect_constant_def types.
5354 (vect_get_constant_vectors): Handle mixed vect_external_def,
5355 vect_constant_def types.
5356
ee8a9b7b
JR
53572013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
5358
5359 PR tree-optimization/55524
5360 * tree-ssa-math-opts.c
5361 (convert_mult_to_fma): Don't use an fms construct
5362 when we don't have an fms operation, but fnma, and it looks
5363 likely that we'll be able to use the latter.
5364
6957a6f6
ZZ
53652013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
5366
5367 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
5368 function.
5369 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
5370 inline fail caused by overwritable functions.
5371
34ab4a5b
CJW
53722013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
5373
5374 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
5375 unnecessary bits in the constant power of two case.
5376
abf9bfbc
RB
53772013-04-10 Richard Biener <rguenther@suse.de>
5378
5379 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
5380 broken code swapping operands.
5381 (vect_build_slp_tree): Do not compute load permutations here.
5382 (vect_analyze_slp_instance): Compute load permutations here,
5383 after building the SLP tree.
5384
f408477e
CB
53852013-04-09 Christian Bruel <christian.bruel@st.com>
5386
5387 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
5388 of next/prev_real_insn.
5389
5ac42672
JH
53902013-04-09 Jan Hubicka <jh@suse.cz>
5391
abf9bfbc
RB
5392 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5393 Drop aliased parameter.
5ac42672
JH
5394 (function_and_variable_visibility): Do not handle alias pairs.
5395 * cgraph.c (varpool_externally_visible_p): Update prototype.
5396 * varpool.c (varpool_add_new_variable): Update.
5397
5017f1d2
KT
53982013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5399
5400 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
5401
48eecbee
SB
54022013-04-09 Steven Bosscher <steven@gcc.gnu.org>
5403
a949cf1c
SB
5404 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
5405
48eecbee
SB
5406 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
5407
75ef8e3d
MP
54082013-04-09 Marek Polacek <polacek@redhat.com>
5409
5410 PR tree-optimization/48762
33159866 5411 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
75ef8e3d 5412
23847df4
RB
54132013-04-09 Richard Biener <rguenther@suse.de>
5414
5415 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
5416 dealing with cost.
5417 (vect_build_slp_tree): Likewise.
5418 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
5419 calculating the cost of a SLP instance.
5420 (vect_analyze_slp_instance): Use it from here, after building
5421 the SLP tree.
5422
ea3a0fde
JJ
54232013-04-09 Jakub Jelinek <jakub@redhat.com>
5424
5425 PR middle-end/56883
5426 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
5427 expand_omp_for_static_chunk): Use simple_p = true in
5428 force_gimple_operand_gsi calls when assigning to addressable decls.
5429
a32dfe9d
JL
54302013-04-09 Jeff Law <law@redhat.com>
5431
5432 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
5433 when the boolean was created by converting a wider object which
5434 had a boolean range.
5435
d755c7ef
RB
54362013-04-09 Richard Biener <rguenther@suse.de>
5437
5438 * tree-vectorizer.h (slp_void_p): Remove.
5439 (slp_tree): Typedef before _slp_tree declaration.
5440 (struct _slp_tree): Use a vector of slp_tree as children.
5441 (vect_get_place_in_interleaving_chain): Remove.
5442 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
5443 Move ...
5444 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
5445 and make static.
5446 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
5447 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
5448 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
5449 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
5450 Use slp_node instead of slp_void_p and adjust.
5451
3d741091
RB
54522013-04-09 Richard Biener <rguenther@suse.de>
5453
5454 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
5455 work that is not necessary.
5456
39307ba7
JJ
54572013-04-09 Jakub Jelinek <jakub@redhat.com>
5458
5459 PR tree-optimization/56854
5460 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
5461 forward into clobber stmts if it would change MEM_REF lhs into
5462 non-MEM_REF.
5463
343881fd
MK
54642013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
5465
5466 * tree.c (type_hash_lookup, type_hash_add): Make static.
5467 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
5468
3922658a
RB
54692013-04-09 Richard Biener <rguenther@suse.de>
5470
5471 * tree.h (unsave_expr_now): Remove.
5472 * tree-inline.c (mark_local_for_remap_r): Remove.
5473 (unsave_expr_1): Likewise.
5474 (unsave_r): Likewise.
5475 (unsave_expr_now): Likewise.
5476 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
5477 (propagate_tree_value): Likewise.
5478
9fb6b620
SB
54792013-04-08 Steven Bosscher <steven@gcc.gnu.org>
5480
5481 * doc/rtl.texi (sequence): Rewrite documentation to match the
5482 current use of SEQUENCE rtl objects.
5483 * rtl.def (SEQUENCE): Likewise.
5484
5485 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
5486 Update documentation.
5487 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
5488 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
5489
5490 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
5491
8ddb5a29
TJ
54922013-04-08 Teresa Johnson <tejohnson@google.com>
5493
5494 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
5495 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
33159866 5496 methods.
8ddb5a29
TJ
5497 (estimate_edge_size_and_time): Add comment to suggest using rounding
5498 methods.
5499 (estimate_node_size_and_time): Ditto.
5500 (remap_edge_change_prob): Use helper rounding divide methods.
5501 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
5502 (gimple_mod_pow2_value_transform): Ditto.
5503 (gimple_mod_subtract_transform): Ditto.
5504 (gimple_ic_transform): Ditto.
5505 (gimple_stringops_transform): Ditto.
5506 * stmt.c (conditional_probability): Ditto.
5507 (emit_case_dispatch_table): Ditto.
5508 * lto-cgraph.c (merge_profile_summaries): Ditto.
5509 * tree-optimize.c (execute_fixup_cfg): Ditto.
5510 * cfgcleanup.c (try_forward_edges): Ditto.
5511 * cfgloopmanip.c (scale_loop_profile): Ditto.
5512 (loopify): Ditto.
5513 (duplicate_loop_to_header_edge): Ditto.
5514 (lv_adjust_loop_entry_edge): Ditto.
5515 * tree-vect-loop.c (vect_transform_loop): Ditto.
5516 * profile.c (compute_branch_probabilities): Ditto.
5517 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
5518 * lto-streamer-in.c (input_cfg): Ditto.
5519 * gimple-streamer-in.c (input_bb): Ditto.
5520 * ipa-cp.c (update_profiling_info): Ditto.
5521 (update_specialized_profile): Ditto.
5522 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
5523 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
33159866 5524 rounding methods.
8ddb5a29
TJ
5525 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5526 (compute_trg_info): Ditto.
5527 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
5528 (purge_dead_edges): Ditto.
5529 * loop-unswitch.c (unswitch_loop): Ditto.
5530 * cgraphclones.c (cgraph_clone_edge): Ditto.
5531 (cgraph_clone_node): Ditto.
5532 * tree-inline.c (copy_bb): Ditto.
5533 (copy_edges_for_bb): Ditto.
5534 (initialize_cfun): Ditto.
5535 (copy_cfg_body): Ditto.
5536 (expand_call_inline): Ditto.
5537
661e6bd7
KT
55382013-04-08 Kai Tietz <ktietz@redhat.com>
5539
5540 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
5541 TARGET_CYGWIN64 by TARGET_64BIT.
5542
105766f3
JR
55432013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5544
5545 * config/epiphany/epiphany.md (GPR_1): New constant.
5546 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
5547 * config/epiphany/epiphany.c (gen_compare_reg):
5548 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
5549 is already in place.
5550 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
5551 Don't require being called during rtl expansion; If y operlaps r0,
5552 return 0.
5553 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
5554 (epiphany_expand_epilogue): Likewise.
5555
8afab237
JR
5556 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
5557 Don't use CC_FPmode for ORDERED / UNORDERED.
33159866 5558 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
8afab237 5559
fa7707d6
JR
5560 * config/epiphany/constraints.md (CnL): New constraint.
5561 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
5562 * config/epiphany/predicates.md (add_operand): Allow 1024.
5563
5138e18d
JR
5564 * config/epiphany/epiphany.md (logical_op): New code iterator.
5565 (op_mnc): New code attribute.
5566 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
5567 (mov_f+1, mov_f+2): New peephole2 patterns.
5568
2ccc703d
JR
5569 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
5570 (cstoresi4): Also allow re-use of zero result when doing a NE
5571 comparison to a non-zero operand.
aefb0819 5572 Use (clobber (scratch)) for first insn if the gpr output is not needed.
2ccc703d 5573
093ac0a5
JR
5574 * config/epiphany/epiphany.md (<insn_opname>v2si3):
5575 Use gen_addsi3_i / gen_subsi3_i.
5576
f223bb13
JJ
55772013-04-08 Jakub Jelinek <jakub@redhat.com>
5578
5579 PR c++/34949
5580 PR c++/50243
5581 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
5582 contain anything but clobbers, at most one __builtin_stack_restore,
5583 optionally debug stmts and final resx, and if it has at least one
5584 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
5585 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
5586 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
5587 which isn't defaut definition, remove them.
5588 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
5589 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
5590 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
5591 with MEM_REF LHS with SSA_NAME address.
5592
4481581f
JL
55932013-04-08 Jeff Law <law@redhat.com>
5594
5595 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
a32dfe9d 5596
451dabda
RB
55972013-04-08 Richard Biener <rguenther@suse.de>
5598
5599 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
5600 extra newline.
5601 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
5602 determined vector type.
5603 (vect_analyze_data_refs): Likewise.
5604 (vect_get_new_vect_var): Adjust.
5605 (vect_create_destination_var): Preserve SSA name versions.
5606 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
5607 not dump anything here.
5608
3b088b47
JR
56092013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
5610
5611 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
5612 Add member lr_slot_known.
5613 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
5614 if necessary.
5615 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
5616 Remove code that sets lr_slot_offset according to what a previous
5617 version of epiphany_emit_save_restore used to do.
5618 (epiphany_emit_save_restore): When doing an lr save or restore,
5619 set/verify lr_slot_known and lr_slot_offset.
5620
d8484d41
XQ
56212013-04-08 Xinyu Qi <xyqi@marvell.com>
5622
33159866
UB
5623 PR target/54338
5624 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
d8484d41
XQ
5625 in ALL_REGS.
5626
481be1c4
RB
56272013-04-08 Richard Biener <rguenther@suse.de>
5628
5629 * alias.c (find_base_term): Fix thinko in previous change.
5630
401f3a81
JJ
56312013-04-08 Jakub Jelinek <jakub@redhat.com>
5632
5633 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
5634 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
5635 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
5636 if possible to compute val.
5637 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
5638 For QImode integers don't require anything about precision. Use
5639 const_with_all_bytes_same to find out if the constant doesn't have
5640 repeated bytes in it.
5641
03ed99a8
AK
56422013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5643
5644 * config/s390/s390.c (s390_expand_insv): Only accept insertions
5645 within mode size.
5646
781b2e62
MP
56472013-04-08 Marek Polacek <polacek@redhat.com>
5648
5649 PR rtl-optimization/48182
5650 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
5651 value to 1.
5652
27e430a2
JDA
56532013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5654
5655 PR target/55487
5656 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
5657 nuses, make sure we have a label.
5658
4902aa64
BS
56592013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5660
5661 PR target/56843
5662 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
5663 (rs6000_emit_swdiv_low_precision): Remove.
5664 (rs6000_emit_swdiv): Rewrite to handle between one and four
5665 iterations of Newton-Raphson generally; modify required number of
5666 iterations for some cases.
5667 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
5668
7bca81dc
SB
56692013-04-05 Steven Bosscher <steven@gcc.gnu.org>
5670
5671 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
5672 set-but-unused variable.
5673
5674 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
5675 basic blocks of released function bodies garbage-collectable.
5676
5677 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
5678 (struct rtl_opt_pass): Add TODO_df_finish.
5679
5680 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
5681
4542a38a
GY
56822013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5683
5684 * config/arm/constraints.md (q): New constraint.
5685 * config/arm/ldrdstrd.md: New file.
5686 * config/arm/arm.md (ldrdstrd.md) New include.
5687 (arm_movdi): Use "q" instead of "r" constraint
5688 for double-word memory access.
5689 (movdf_soft_insn): Likewise.
5690 * config/arm/vfp.md (movdi_vfp): Likewise.
5691 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
33159866 5692 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
4542a38a
GY
5693 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
5694 (mem_ok_for_ldrd_strd): Likewise.
5695 (output_move_double): Update assertion.
5696
2385b218
GY
56972013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5698
5699 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
5700
75fe1cb5
GY
57012013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5702
5703 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
5704 define_insn_and_split.
5705 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
5706
dd660e8e
GY
57072013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5708
5709 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
5710 define_insn_and_split.
33159866 5711 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
dd660e8e
GY
5712 (shiftsi3_compare): New pattern.
5713 (rrx): New pattern.
5714 * config/arm/unspecs.md (UNSPEC_RRX): New.
5715
045e472c
GY
57162013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5717
5718 * config/arm/arm.md (negdi_extendsidi): New pattern.
5719 (negdi_zero_extendsidi): Likewise.
5720
3f3bf1a8
GY
57212013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5722
5723 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
5724 define_insn_and_split.
5725 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
5726 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
5727
b0b49556
GY
57282013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5729
5730 * config/arm/arm.md (arm_subdi3): Convert define_insn into
5731 define_insn_and_split.
5732 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
5733 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
5734
d633dd84
GY
57352013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5736
5737 * config/arm/arm.md (subsi3_carryin): New pattern.
5738 (subsi3_carryin_const): Likewise.
5739 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
5740 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
5741
f4499066
GY
57422013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5743
5744 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
5745
ceef6fd9
GY
57462013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
5747
5748 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
d633dd84 5749 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
ceef6fd9 5750
ddbdd8a7
KT
57512013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5752
5753 * config/arm/arm.c (arm_expand_builtin): Change fcode
5754 type to unsigned int.
5755
8456d78a
RR
57562013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5757
5758 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
5759
526c230f
ILT
57602013-04-04 Ian Lance Taylor <iant@google.com>
5761
33159866
UB
5762 * doc/standards.texi (Standards): The Go frontend supports the Go 1
5763 language standard.
526c230f 5764
3cfbe04d
SB
57652013-04-04 Steven Bosscher <steven@gcc.gnu.org>
5766
5767 PR middle-end/56729
5768 * df-scan.c (df_insn_delete): Disable failing assert.
5769
dfa3f8d0
KT
57702013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5771
5772 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
5773 New function prototype.
5774 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
5775 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
5776 (arm_builtin_vectorized_function): New function.
5777
f7837758
KT
57782013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5779
5780 * config/arm/arm_neon_builtins.def: New file.
5781 * config/arm/arm.c (neon_builtin_data): Move contents to
5782 arm_neon_builtins.def.
5783 (enum arm_builtins): Include neon builtin definitions.
5784 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
33159866 5785 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
f7837758 5786
39c1b6db
MP
57872013-04-04 Marek Polacek <polacek@redhat.com>
5788
5789 PR tree-optimization/48186
5790 * predict.c (maybe_hot_frequency_p): Return false if
5791 HOT_BB_FREQUENCY_FRACTION is 0.
5792 (cgraph_maybe_hot_edge_p): Likewise.
5793
314f64eb
RB
57942013-04-04 Richard Biener <rguenther@suse.de>
5795
5796 PR tree-optimization/56826
5797 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
5798 more accurately.
5799
51a905b2
RB
58002013-04-04 Richard Biener <rguenther@suse.de>
5801
5802 PR tree-optimization/56213
5803 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
33159866 5804 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
51a905b2 5805
f1bf4f3a
RB
58062013-04-04 Richard Biener <rguenther@suse.de>
5807
5808 PR tree-optimization/56837
5809 * tree-loop-distribution.c (classify_partition): For non-zero
5810 values require that the value has the same precision as its
5811 mode to be useful as memset value.
5812
0bca7ded
NC
58132013-04-03 Nick Clifton <nickc@redhat.com>
5814
33159866 5815 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
0bca7ded
NC
5816 (fmssf4): Use fmsf.s on E3V5 architectures.
5817 (fnmasf4): Use fnmaf.s on E3V5 architectures.
5818 (fnmssf4): Use fnmsf.s on E3V5 architectures.
5819
b4019227
JL
58202013-04-03 Jeff Law <law@redhat.com>
5821
5822 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
5823 (lra-eliminations.o): Likewise.
5824
f57ddb5b
TJ
58252013-04-03 Teresa Johnson <tejohnson@google.com>
5826
5827 * gcov-io.c (compute_working_sets): Moved most of body of old
33159866 5828 compute_working_sets here from profile.c.
f57ddb5b 5829 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
33159866
UB
5830 (gcov_working_set_t): Moved typedef here from basic-block.h
5831 (compute_working_set): Declare.
f57ddb5b
TJ
5832 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
5833 (get_working_sets): Renamed from compute_working_set,
33159866 5834 replace most of body with call to new compute_working_sets.
f57ddb5b 5835 (get_exec_counts): Replace call to compute_working_sets
33159866
UB
5836 to get_working_sets.
5837 * profile.h (get_working_sets): Renamed from compute_working_set.
f57ddb5b 5838 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
33159866 5839 to get_working_sets.
f57ddb5b
TJ
5840 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
5841 * gcov-dump.c (dump_working_sets): New function.
5842
5e0919f1
KZ
58432013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
5844
5845 * hwint.c (sext_hwi, zext_hwi): New functions.
5846 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
5847 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
5848 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
5849 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
5850 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
5851 (sext_hwi, zext_hwi): New functions.
0bca7ded 5852
be672e08
JL
58532013-04-03 Jeff Law <law@redhat.com>
5854
5855 PR tree-optimization/56799
33159866
UB
5856 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
5857 back test for widening conversion erroneously dropped in prior change.
be672e08 5858
9d821fa5
KT
58592013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5860
5861 PR target/56809
5862 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
5863 instead of next_real_insn.
5864
71c581e7
MP
58652013-04-03 Marek Polacek <polacek@redhat.com>
5866
5867 PR sanitizer/55702
33159866 5868 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
71c581e7 5869
4a32ef80
KT
58702013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5871
5872 PR target/56809
5873 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
5874 next_real_insn.
5875 (thumb1_output_casesi): Likewise.
5876 (thumb2_output_casesi): Likewise.
5877
1b2253d4
RB
58782013-04-03 Richard Biener <rguenther@suse.de>
5879
5880 PR tree-optimization/56817
5881 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
5882 Split out ...
5883 (tree_unroll_loops_completely_1): ... new function to manually
5884 walk the loop tree, properly defering outer loops of unrolled
5885 loops to later iterations.
5886
38000232
MG
58872013-04-03 Marc Glisse <marc.glisse@inria.fr>
5888
5889 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
5890 (vectorizable_load): Likewise.
5891 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
5892 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
5893
3fa35298
MG
58942013-04-03 Marc Glisse <marc.glisse@inria.fr>
5895
5896 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
5897 BIT_FIELD_REF.
5898
b3d45ff0
UW
58992013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5900
5901 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
5902
ec9202a8
BC
59032013-04-03 Bin Cheng <bin.cheng@arm.com>
5904
5905 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
5906
6805bd36
MG
59072013-04-03 Marc Glisse <marc.glisse@inria.fr>
5908
5909 PR tree-optimization/56790
33159866
UB
5910 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
5911 folding.
6805bd36 5912
da694a77
MG
59132013-04-03 Marc Glisse <marc.glisse@inria.fr>
5914
5915 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
5916 Handle VEC_MERGE.
5917 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
5918 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
5919 equal arguments.
5920
4e7d7b3d
JJ
59212013-04-03 Jakub Jelinek <jakub@redhat.com>
5922
5923 PR c/19449
5924 * tree.h (force_folding_builtin_constant_p): New decl.
5925 * builtins.c (force_folding_builtin_constant_p): New variable.
5926 (fold_builtin_constant_p): Fold immediately also if
5927 force_folding_builtin_constant_p.
5928
e6c9d234
RB
59292013-04-03 Richard Biener <rguenther@suse.de>
5930
5931 PR tree-optimization/56812
5932 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
5933 DRs of the same interleaving chain are independent.
5934
984d07dd
JM
59352013-04-02 Jason Merrill <jason@redhat.com>
5936
5937 * gdbinit.in (pbb): Use debug fn.
5938
622849c9
LC
59392013-04-02 Lawrence Crowl <crowl@google.com>
5940
5941 * sese.h (struct ivtype_map_elt_s): Remove unused.
5942 (extern debug_ivtype_map): Remove unused.
5943 (extern eq_ivtype_map_elts): Remove unused.
5944 * sese.c (debug_ivtype_map): Removed unused.
5945 (debug_ivtype_map_1): Removed unused.
5946 (debug_ivtype_elt): Remove unused.
5947 (eq_ivtype_map_elts): Remove unused.
5948
5949
82c0e1a0
KT
59502013-04-02 Kai Tietz <ktietz@redhat.com>
5951
5952 PR target/52790
5953 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
5954 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
33159866
UB
5955 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
5956 function.
82c0e1a0
KT
5957 (legitimize_pe_coff_symbol): Likewise.
5958 (is_imported_p): New helper-function.
5959 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
5960 for Windows x64 targets.
5961 (ix86_expand_prologue): Optimize for pe-coff targets.
5962 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
5963 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
5964 medium/large code-model.
5965 (legitimize_pic_address): Likewise.
5966 (legitimize_tls_address): Likewise.
5967 (ix86_expand_call): Likewise.
5968 (x86_output_mi_thunk): Likewise.
5969 (get_dllimport_decl): Add new beimport argument.
5970 (construct_plt_address): Don't assert for x64 pe-coff targets.
5971 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
5972 targets.
5973 (SYMBOL_FLAG_STUBVAR): New macro.
5974 (SYMBOL_REF_STUBVAR_P): Likewise.
5975 * config/i386/winnt.c (stub_list): New structure.
5976 (stub_head): New local variable.
5977 (i386_pe_record_stub): New function.
5978 (i386_pe_file_end): Emit refptr-stubs.
5979
5d751b0c
JJ
59802013-04-02 Jakub Jelinek <jakub@redhat.com>
5981
09bb4c99
JJ
5982 PR rtl-optimization/56745
5983 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
5984 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
5985
a1d8947a
JJ
5986 PR c++/34949
5987 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
5988 and both of them are MEM_REFs, just compare first argument for
5989 equality and attempt to deal even with differing offsets.
5990
5d751b0c
JJ
5991 PR c++/34949
5992 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
5993 of gimple_clobber_p to be MEM_REF.
5994 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
5995 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
5996 after gimplification.
5997 * asan.c (get_mem_ref_of_assignment): Don't instrument
5998 gimple_clobber_p stmts.
5999 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
6000 gimple_clobber_p stmt if they have MEM_REF lhs and
6001 are dead because of another gimple_clobber_p stmt.
6002 * tree-ssa-live.c (clear_unused_block_pointer): Treat
6003 gimple_clobber_p stmts like debug stmts.
6004 (remove_unused_locals): Remove clobbers with MEM_REF lhs
6005 that refer to unused VAR_DECLs or uninitialized values.
6006 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
6007 gimple_clobber_p stmts if they refer to removed parameters.
6008 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
6009 formatting.
6010
e594716a
UB
60112013-04-02 Uros Bizjak <ubizjak@gmail.com>
6012
6013 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
6014 using SWI48 mode attribute.
6015
7a80735b
WM
60162013-04-02 Wei Mi <wmi@google.com>
6017
6018 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
6019 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
6020 *<rotate_insn><mode>3_mask in i386.md.
6021
f423a9e4
AI
60222013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
6023
6024 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
6025
90eb75f2
RB
60262013-04-02 Richard Biener <rguenther@suse.de>
6027
6028 PR tree-optimization/56778
6029 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6030 Runtime alias tests are not supported for gather loads.
6031 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
6032 stmts referenced from SSA operands before updating SSA form.
6033
d8c69a92
IC
60342013-04-02 Ian Caulfield <ian.caulfield@arm.com>
6035 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6036
6037 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
e594716a
UB
6038 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
6039 * config/arm/cortex-a53.md: New file.
6040 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
6041 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
6042 * config/arm/arm.c (arm_issue_rate): Likewise.
6043 * config/arm/arm-tune.md: Regenerate
6044 * config/arm/arm-tables.opt: Regenerate.
6045 * config/arm/arm-cores.def: Add cortex-a53.
d8c69a92 6046
239eb04c
ZC
60472013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
6048
6049 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
6050 non-static link.
6051
c902d3c8
SN
60522013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6053
d8c69a92
IC
6054 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
6055 scalar load/store operations using B/H registers.
c902d3c8
SN
6056 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
6057
051d0e2f
SN
60582013-04-02 Sofiane Naci <sofiane.naci@arm.com>
6059
6060 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
6061 scalar move.
6062 * config/aarch64/aarch64.c
6063 (aarch64_simd_scalar_immediate_valid_for_move): New.
6064 * config/aarch64/aarch64-protos.h
6065 (aarch64_simd_scalar_immediate_valid_for_move): New.
6066 * config/aarch64/constraints.md (Dh, Dq): New.
6067 * config/aarch64/iterators.md (hq): New.
6068
0ee1e3d9
EB
60692013-04-02 Eric Botcazou <ebotcazou@adacore.com>
6070
6071 * reorg.c (get_branch_condition): Deal with conditional returns.
6072 (fill_simple_delay_slots): Remove dead code dealing with jumps.
6073
136fb3f7
WM
60742013-04-01 Wei Mi <wmi@google.com>
6075
6076 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
6077 Truncate operand 2 using %b asm operand modifier.
6078 (*<shift_insn><mode>3_mask): Ditto.
6079 (*<rotate_insn><mode>3_mask): Ditto.
6080
6388c738
SB
60812013-04-01 Steven Bosscher <steven@gcc.gnu.org>
6082
6083 PR middle-end/56798
6084 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
6085
f7a4d826
KK
60862013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
6087
6088 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
6089 of next_real_insn.
6090 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
6091
4b943a49
LC
60922013-03-30 Lawrence Crowl <crowl@google.com>
6093
6094 * dse.c (clear_alias_sets): Remove never set.
6095 (disqualified_clear_alias_sets): Remove never set.
6096 (clear_alias_mode_pool): Remove never set.
6097 (dse_step0): Remove condition that is never true.
6098 (canon_address): Remove condition that is never true.
6099 (dse_step7): Remove condition that is never true.
6100 (rest_of_handle_dse): Remove condition that is never true.
6101 (rest_of_handle_dse::did_global): Remove never read from above.
6102 (dse_step2_spill): Remove never called from above.
6103 (dse_step5_spill): Remove never called from above.
6104
39718607
SB
61052013-03-30 Steven Bosscher <steven@gcc.gnu.org>
6106
da5c6bde
SB
6107 * doc/md.texi (Standard Names) <casesi>: Update documentation for
6108 JUMP_TABLE_DATA changes.
6109 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
6110 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
6111 (Insns) <jump_table_data>: New entry.
6112 * doc/tm.texi: Regenerate.
6113
39718607
SB
6114 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
6115
6116 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
6117 for table jump at the end of a basic block using tablejump_p.
6118 * targhooks.c (default_invalid_within_doloop): Likewise.
6119 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
6120 target hook implementation that is identical to the default hook.
6121 (rs6000_invalid_within_doloop): Remove.
6122
6123 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
6124 unused variable from tablejump_p call.
6125
6126 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
6127 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
6128 (INSN_DELETED_P): Likewise.
6129 (emit_jump_table_data): New prototype.
6130 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
6131 after 4th as unused.
6132 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
6133 * sched-vis.c (print_insn): Likewise.
6134 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
6135 insn for compatibility with back ends that use next_active_insn to
6136 identify jump table data.
6137 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
6138 (remove_insn): Likewise.
6139 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
6140 to be emitted.
6141 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
6142 (emit_jump_table_data): New function.
6143
6144 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
6145 basic block, a JUMP_TABLE_DATA never is.
6146 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
6147 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
6148 off from code handling real insns.
6149 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
6150 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
6151 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
6152 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
6153 is not a NONDEBUG_INSN_P.
6154 * ira-costs.c (scan_one_insn): Likewise.
6155 * jump.c (mark_all_labels): Likewise.
6156 (mark_jump_label_1): Likewise.
6157 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6158 * lra.c (get_insn_freq): Expect all insns reaching here to be in
6159 a basic block.
6160 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
6161 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
6162 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
6163 JUMP_TABLE_DATA_P insns.
6164 (calculate_elim_costs_all_insns): Likewise.
6165 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
6166 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
6167 (delete_output_reload): Code style fixups.
6168 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
6169 insn flags on this non-insn.
6170 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
6171 as scheduling barriers, for pre-change compatibility.
6172 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
6173 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
6174
6175 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
6176 redundant JUMP_TABLE_DATA_P test.
6177 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
6178 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6179 (frv_for_each_packet): Likewise.
6180 * config/i386/i386.c (min_insn_size): Likewise.
6181 (ix86_avoid_jump_mispredicts): Likewise.
6182 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6183 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
6184 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6185 (mips16_insn_length): Robustify.
6186 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
6187 (mips16_split_long_branches): Likewise.
6188 * config/pa/pa.c (pa_combine_instructions): Likewise.
6189 * config/rs6000/rs6000.c (get_next_active_insn): Treat
6190 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
6191 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
6192 as contributing to pool range lengths.
6193 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
6194 Remove redundant JUMP_TABLE_DATA_P test.
6195 (sh_loop_align): Likewise.
6196 (split_branches): Likewise.
6197 (sh_insn_length_adjustment): Likewise.
6198 * config/spu/spu.c (get_branch_target): Likewise.
6199
0208f7da
JH
62002013-03-29 Jan Hubicka <jh@suse.cz>
6201
6202 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
6203 gcov streaming; stream hot bb threshold to ltrans.
6204 * predict.c (get_hot_bb_threshold): Break out from ....
6205 (maybe_hot_count_p): ... here.
6206 (set_hot_bb_threshold): New function.
6207 * lto-section-in.c (lto_section_name): Add profile.
6208 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
6209 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
6210 and data-streamer.h
6211 (histogram_entry): New structure.
6212 (histogram, histogram_pool): New global vars.
6213 (histogram_hash): New structure.
6214 (histogram_hash::hash): New method.
6215 (histogram_hash::equal): Likewise.
6216 (account_time_size): New function.
6217 (cmp_counts): New function.
6218 (dump_histogram): New function.
6219 (ipa_profile_generate_summary): New function.
6220 (ipa_profile_write_summary): New function.
6221 (ipa_profile_read_summary): New function.
6222 (ipa_profile): Decide on threshold.
e594716a
UB
6223 (pass_ipa_profile): Add ipa_profile_write_summary and
6224 ipa_profile_read_summary.
0208f7da
JH
6225 * Makefile.in (ipa.o): Update dependencies.
6226 * lto-streamer.h (LTO_section_ipa_profile): New section.
6227
5a6ccc94
GDR
62282013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
6229
6230 * tree.h (VAR_P): New.
6231
39385fa6
PC
62322013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
6233
6234 PR lto/56777
6235 * doc/invoke.texi ([-fwhole-program]): Fix typo.
6236
34f0d87a
SB
62372013-03-29 Steven Bosscher <steven@gcc.gnu.org>
6238
6239 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
6240 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6241 (control_flow_insn_p): Likewise.
6242 * cfgrtl.c (duplicate_insn_chain): Likewise.
6243 * final.c (get_attr_length_1): Likewise.
6244 (shorten_branches): Likewise.
6245 (final_scan_insn): Likewise.
6246 * function.c (instantiate_virtual_regs): Likewise.
6247 * gcse.c (insert_insn_end_basic_block): Likewise.
6248 * ira-costs.c (scan_one_insn): Likewise.
6249 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
6250 * lra.c (check_rtl): Likewise.
6251 * reload1.c (elimination_costs_in_insn): Likewise.
6252 * reorg.c (follow_jumps): Likewise.
6253
6254 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
6255 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
6256 (thumb_far_jump_used_p): Likewise.
6257 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
6258 (workaround_speculation): Likewise.
6259 (add_sched_insns_for_speculation): Likewise.
6260 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
6261 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
6262 (frv_for_each_packet): Likewise.
6263 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
6264 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
6265 (final_emit_insn_group_barriers): Likewise.
6266 * config/m32r/m32r.c (m32r_is_insn): Likewise.
6267 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
6268 (mips16_insn_length): Likewise.
6269 * config/pa/pa.c (pa_reorg): Likewise.
6270 (pa_combine_instructions): Likewise.
6271 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
6272 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
6273 (sh_reorg): Likewise.
6274 (split_branches): Likewise.
6275 * config/spu/spu.c (get_branch_target): Likewise.
6276
6277 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
6278 JUMP_TABLE_DATA_P.
6279
4ac761b0
KY
62802013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
6281
39385fa6 6282 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
4ac761b0
KY
6283 Fix declaration name.
6284
58a49189
LC
62852013-03-28 Lawrence Crowl <crowl@google.com>
6286
6287 * graphds.h (struct graph.indicies): Remove unused.
6288 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
6289 (SCOP_ORIGINAL_PDDRS): Remove unused.
6290 * sese.h (extern insert_loop_close_phis): Removed unused.
6291 (extern insert_guard_phis): Removed unused.
6292 (extern ivtype_map_elt_info): Removed unused.
6293 (new_ivtype_map_elt): Removed unused.
6294 * sese.c (ivtype_map_elt_info): Removed unused.
6295
7b3b6ae4
LC
62962013-03-28 Lawrence Crowl <crowl@google.com>
6297
6298 * Makefile.in: Add several missing include dependences.
6299 (DUMPFILE_H): New.
6300 (test-dump.o): New. This object is not added to any executable,
6301 but is present for ad-hoc testing.
6302 * bitmap.c
6303 (debug (const bitmap_head_def &)): New.
6304 (debug (const bitmap_head_def *)): New.
6305 * bitmap.h
6306 (extern debug (const bitmap_head_def &)): New.
6307 (extern debug (const bitmap_head_def *)): New.
6308 * cfg.c
6309 (debug (edge_def &)): New.
6310 (debug (edge_def *)): New.
6311 * cfghooks.c
6312 (debug (basic_block_def &)): New.
6313 (debug (basic_block_def *)): New.
6314 * dumpfile.h
6315 (dump_node (const_tree, int, FILE *)): Correct source file.
6316 * dwarf2out.c
6317 (debug (die_struct &)): New.
6318 (debug (die_struct *)): New.
6319 * dwarf2out.h
6320 (extern debug (die_struct &)): New.
6321 (extern debug (die_struct *)): New.
6322 * gimple-pretty-print.c
6323 (debug (gimple_statement_d &)): New.
6324 (debug (gimple_statement_d *)): New.
6325 * gimple-pretty-print.h
6326 (extern debug (gimple_statement_d &)): New.
6327 (extern debug (gimple_statement_d *)): New.
6328 * ira-build.c
6329 (debug (ira_allocno_copy &)): New.
6330 (debug (ira_allocno_copy *)): New.
6331 (debug (ira_allocno &)): New.
6332 (debug (ira_allocno *)): New.
6333 * ira-int.h
6334 (extern debug (ira_allocno_copy &)): New.
6335 (extern debug (ira_allocno_copy *)): New.
6336 (extern debug (ira_allocno &)): New.
6337 (extern debug (ira_allocno *)): New.
6338 * ira-lives.c
6339 (debug (live_range &)): New.
6340 (debug (live_range *)): New.
6341 * lra-int.h
6342 (debug (lra_live_range &)): New.
6343 (debug (lra_live_range *)): New.
6344 * lra-lives.c
6345 (debug (lra_live_range &)): New.
6346 (debug (lra_live_range *)): New.
6347 * omega.c
6348 (debug (omega_pb_d &)): New.
6349 (debug (omega_pb_d *)): New.
6350 * omega.h
6351 (extern debug (omega_pb_d &)): New.
6352 (extern debug (omega_pb_d *)): New.
6353 * print-rtl.c
6354 (debug (const rtx_def &)): New.
6355 (debug (const rtx_def *)): New.
6356 * print-tree.c
6357 (debug_tree (tree): Move within file.
6358 (debug_raw (const tree_node &)): New.
6359 (debug_raw (const tree_node *)): New.
6360 (dump_tree_via_hooks (const tree_node *, int)): New.
6361 (debug (const tree_node &)): New.
6362 (debug (const tree_node *)): New.
6363 (debug_verbose (const tree_node &)): New.
6364 (debug_verbose (const tree_node *)): New.
6365 (debug_head (const tree_node &)): New.
6366 (debug_head (const tree_node *)): New.
6367 (debug_body (const tree_node &)): New.
6368 (debug_body (const tree_node *)): New.
6369 (debug_vec_tree (tree): Move and reimplement in terms of dump.
6370 (debug (vec<tree, va_gc> &)): New.
6371 (debug (vec<tree, va_gc> *)): New.
6372 * rtl.h
6373 (extern debug (const rtx_def &)): New.
6374 (extern debug (const rtx_def *)): New.
6375 * sbitmap.c
6376 (debug_raw (simple_bitmap_def &)): New.
6377 (debug_raw (simple_bitmap_def *)): New.
6378 (debug (simple_bitmap_def &)): New.
6379 (debug (simple_bitmap_def *)): New.
6380 * sbitmap.h
6381 (extern debug (simple_bitmap_def &)): New.
6382 (extern debug (simple_bitmap_def *)): New.
6383 (extern debug_raw (simple_bitmap_def &)): New.
6384 (extern debug_raw (simple_bitmap_def *)): New.
6385 * sel-sched-dump.c
6386 (debug (vinsn_def &)): New.
6387 (debug (vinsn_def *)): New.
6388 (debug_verbose (vinsn_def &)): New.
6389 (debug_verbose (vinsn_def *)): New.
6390 (debug (expr_def &)): New.
6391 (debug (expr_def *)): New.
6392 (debug_verbose (expr_def &)): New.
6393 (debug_verbose (expr_def *)): New.
6394 (debug (vec<rtx> &)): New.
6395 (debug (vec<rtx> *)): New.
6396 * sel-sched-dump.h
6397 (extern debug (vinsn_def &)): New.
6398 (extern debug (vinsn_def *)): New.
6399 (extern debug_verbose (vinsn_def &)): New.
6400 (extern debug_verbose (vinsn_def *)): New.
6401 (extern debug (expr_def &)): New.
6402 (extern debug (expr_def *)): New.
6403 (extern debug_verbose (expr_def &)): New.
6404 (extern debug_verbose (expr_def *)): New.
6405 (extern debug (vec<rtx> &)): New.
6406 (extern debug (vec<rtx> *)): New.
6407 * sel-sched-ir.h
6408 (_list_iter_cond_expr): Make inline instead of static.
6409 * sreal.c
6410 (debug (sreal &)): New.
6411 (debug (sreal *)): New.
6412 * sreal.h
6413 (extern debug (sreal &)): New.
6414 (extern debug (sreal *)): New.
6415 * tree.h
6416 (extern debug_raw (const tree_node &)): New.
6417 (extern debug_raw (const tree_node *)): New.
6418 (extern debug (const tree_node &)): New.
6419 (extern debug (const tree_node *)): New.
6420 (extern debug_verbose (const tree_node &)): New.
6421 (extern debug_verbose (const tree_node *)): New.
6422 (extern debug_head (const tree_node &)): New.
6423 (extern debug_head (const tree_node *)): New.
6424 (extern debug_body (const tree_node &)): New.
6425 (extern debug_body (const tree_node *)): New.
6426 (extern debug (vec<tree, va_gc> &)): New.
6427 (extern debug (vec<tree, va_gc> *)): New.
6428 * tree-cfg.c
6429 (debug (struct loop &)): New.
6430 (debug (struct loop *)): New.
6431 (debug_verbose (struct loop &)): New.
6432 (debug_verbose (struct loop *)): New.
6433 * tree-dump.c: Add header dependence.
6434 * tree-flow.h
6435 (extern debug (struct loop &)): New.
6436 (extern debug (struct loop *)): New.
6437 (extern debug_verbose (struct loop &)): New.
6438 (extern debug_verbose (struct loop *)): New.
6439 * tree-data-ref.c
6440 (debug (data_reference &)): New.
6441 (debug (data_reference *)): New.
6442 (debug (vec<data_reference_p> &)): New.
6443 (debug (vec<data_reference_p> *)): New.
6444 (debug (vec<ddr_p> &)): New.
6445 (debug (vec<ddr_p> *)): New.
6446 * tree-data-ref.h
6447 (extern debug (data_reference &)): New.
6448 (extern debug (data_reference *)): New.
6449 (extern debug (vec<data_reference_p> &)): New.
6450 (extern debug (vec<data_reference_p> *)): New.
6451 (extern debug (vec<ddr_p> &)): New.
6452 (extern debug (vec<ddr_p> *)): New.
6453 * tree-ssa-alias.c
6454 (debug (pt_solution &)): New.
6455 (debug (pt_solution *)): New.
6456 * tree-ssa-alias.h
6457 (extern debug (pt_solution &)): New.
6458 (extern debug (pt_solution *)): New.
6459 * tree-ssa-alias.c
6460 (debug (_var_map &)): New.
6461 (debug (_var_map *)): New.
6462 (debug (tree_live_info_d &)): New.
6463 (debug (tree_live_info_d *)): New.
6464 * tree-ssa-alias.h
6465 (extern debug (_var_map &)): New.
6466 (extern debug (_var_map *)): New.
6467 (extern debug (tree_live_info_d &)): New.
6468 (extern debug (tree_live_info_d *)): New.
6469
be77e1e5
JH
64702013-03-28 Jan Hubicka <jh@suse.cz>
6471
6472 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
6473
777e6976
IB
64742013-03-28 Ian Bolton <ian.bolton@arm.com>
6475
6476 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
6477 record only when desired or required.
6478
9cd347ae
UB
64792013-03-28 Uros Bizjak <ubizjak@gmail.com>
6480
6481 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
6482 *vec_extractv2di_1_rex64. Use x64 isa attribute.
6483
33159866 64842013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2a1d1991
N
6485
6486 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
6487 (*andsi3_compare0_uxtw): New pattern.
6488 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
6489 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
6490
89ab31c1
JH
64912013-03-28 Jan Hubicka <jh@suse.cz>
6492
6493 * data-streamer-in.c (streamer_read_gcov_count): New function.
6494 * gimple-streamer-out.c: Include value-prof.h.
6495 (output_gimple_stmt): Output histogram.
6496 (output_bb): Use streamer_write_gcov_count.
6497 * value-prof.c: Include data-streamer.h
6498 (dump_histogram_value): Add HIST_TYPE_MAX.
6499 (stream_out_histogram_value): New function.
6500 (stream_in_histogram_value): New function.
6501 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
6502 (stream_out_histogram_value, stream_in_histogram_value): Declare.
6503 * data-streamer-out.c (streamer_write_gcov_count): New function.
6504 (streamer_write_gcov_count_stream): New function.
6505 * lto-cgraph.c (lto_output_edge): Update counter streaming.
6506 (lto_output_node): Likewise.
6507 (input_node, input_edge): Likewise.
6508 * lto-streamer-out.c (output_cfg): Update streaming.
6509 * lto-streamer-in.c (input_cfg): Likewise.
6510 * data-streamer.h (streamer_write_gcov_count,
6511 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
6512 * gimple-streamer-in.c: Include value-prof.h
6513 (input_gimple_stmt): Input histograms.
6514 (input_bb): Update profile streaming.
6515
e594716a 65162013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
b4c73eed 6517
33159866 6518 * genmodes.c (emit_max_int): New function.
8697be17 6519 (emit_insn_modes_h): Added call to emit_max_function.
39385fa6
PC
6520 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
6521 Added doc.
8697be17 6522 * machmode.def: Fixed comment.
89ab31c1 6523
e594716a 65242013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8697be17
KZ
6525
6526 * combine.c (try_combine): Removed useless assert.
b4c73eed
KZ
6527 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
6528
74946978
MP
65292013-03-28 Marek Polacek <polacek@redhat.com>
6530 Richard Biener <rguenther@suse.de>
6531
6532 PR tree-optimization/56695
6533 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
6534 build signed result of a vector comparison.
6535 * tree-cfg.c (verify_gimple_comparison): Check that a result
6536 of a vector comparison has signed type.
6537
a64b9c26
RB
65382013-03-28 Richard Biener <rguenther@suse.de>
6539
6540 PR tree-optimization/37021
6541 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
6542 do not restrict gaps between groups.
6543 * tree-vect-stmts.c (vectorizable_load): Properly account for
6544 a gap between groups.
6545
a9dc2a2f
EB
65462013-03-28 Eric Botcazou <ebotcazou@adacore.com>
6547
6548 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
6549 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
6550 is not enabled.
6551
53cb97f9
GP
65522013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
6553
6554 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
6555 * doc/extend.texi (Named Address Spaces): Ditto.
6556 (Variable Attributes): Ditto.
6557
b802ae5c
KT
65582013-03-27 Kai Tietz <ktietz@redhat.com>
6559
eddae10a
KT
6560 * config.build: Add support for cygwin x64 target.
6561 * config.gcc: Likewise.
6562 * config.host: Likewise.
6563 * configure.ac: Likewise
6564 * configure: Regenerated.
b802ae5c 6565
8269de54
KT
65662013-03-27 Kai Tietz <ktietz@redhat.com>
6567
6568 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
6569 * config/i386/t-cygwin-w64: New file.
6570 * config/i386/cygwin-w64.h: New file.
6571 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
6572 and add support for x64-cygwin target.
6573 (CPP_SPEC): Likewise.
6574 (CXX_WRAP_SPEC_LIST): Undefine before define.
6575 (LIBGCJ_SONAME): Use 15 as version.
6576
f49b33cb
RB
65772013-03-27 Richard Biener <rguenther@suse.de>
6578
6579 PR tree-optimization/56716
6580 * tree-ssa-structalias.c (perform_var_substitution): Adjust
6581 dumping for ref nodes.
6582
b37a6ce5
MJ
65832013-03-27 Martin Jambor <mjambor@suse.cz>
6584
6585 PR tree-optimization/55334
6586 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
6587 restricted pointers to arrays.
6588
9469b9b2
GDR
65892013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
6590
6591 * Makefile.in (.SUFFIXES): Add .cc.
6592 (.c.o): Apply same recipe for implicit rule .cc.o.
6593
7d24f650
RB
65942013-03-27 Richard Biener <rguenther@suse.de>
6595
6596 PR tree-optimization/37021
6597 * tree-vect-data-refs.c (vect_check_strided_load): Allow
6598 REALPART/IMAGPART_EXPRs around the supported refs.
6599 * tree-ssa-structalias.c (find_func_aliases): Assume that
6600 floating-point values are not used to transfer pointers.
6601
2f251a05
AI
66022013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
6603
39385fa6
PC
6604 * target.def (TARGET_HAS_IFUNC_P): New target hook.
6605 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
6606 * doc/tm.texi: Regenerate.
6607 * targhooks.h (default_has_ifunc_p): New.
6608 * targhooks.c (default_has_ifunc_p): Ditto.
6609 * config/linux-protos.h: New file.
6610 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
2f251a05
AI
6611 this hook for linux which disables support of indirect functions in
6612 android.
39385fa6
PC
6613 * config/linux-android.c: New file.
6614 * config/t-linux-android.c: Ditto.
6615 * config.gcc: Added new object file linux-android.o.
6616 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
2f251a05 6617 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
39385fa6 6618 * varasm.c (do_assemble_alias): Likewise.
2f251a05
AI
6619 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
6620 doesn't support indirect functions.
6621 * configure: Regenerate.
6622
78b4e425
BC
66232013-03-27 Bin Cheng <bin.cheng@arm.com>
6624
6625 PR target/56102
6626 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
6627 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
6628 mult-word mode.
6629
a5ba7b92
AK
66302013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6631
6632 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
6633
be624986
TG
66342013-03-27 Terry Guo <terry.guo@arm.com>
6635
6636 * config/arm/arm-cores.def: Added core cortex-r7.
6637 * config/arm/arm-tune.md: Regenerated.
6638 * config/arm/arm-tables.opt: Regenerated.
6639 * doc/invoke.texi: Added entry for core cortex-r7.
6640
0a514f47
WL
66412013-03-27 Walter Lee <walt@tilera.com>
6642
6643 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
6644 double-decrement of next_scratch_regno.
6645
9332b0d2
WL
66462013-03-27 Walter Lee <walt@tilera.com>
6647
801d9b2a 6648 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
9332b0d2
WL
6649 input operands.
6650 (insn_v1mulus): Ditto.
6651 (insn_v2muls): Ditto.
6652
f54ea5dd
WL
66532013-03-27 Walter Lee <walt@tilera.com>
6654
e594716a 6655 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
f54ea5dd
WL
6656 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
6657
bf60f4ca
WL
66582013-03-27 Walter Lee <walt@tilera.com>
6659
e594716a 6660 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
bf60f4ca
WL
6661 (*sibcall_value): Ditto.
6662
e3b51eeb
WL
66632013-03-27 Walter Lee <walt@tilera.com>
6664
6665 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
6666 (insn_mnz_v8qi): ... this ...
6667 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
6668 vector equivalent.
6669 (insn_v<n>mnz): Replaced by ...
6670 (insn_v1mnz): ... this ...
6671 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
6672 equivalent.
6673 (insn_mz_<mode>): Replaced by ...
6674 (insn_mz_v8qi): ... this ...
6675 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
6676 vector equivalent.
6677 (insn_v<n>mz): Replaced by ...
6678 (insn_v1mz): ... this ...
6679 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
6680 equivalent.
6681
4fc7b145
EB
66822013-03-26 Eric Botcazou <ebotcazou@adacore.com>
6683
6684 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
6685
6f33817e
RM
66862013-03-26 Roland McGrath <mcgrathr@google.com>
6687
6688 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
6689 than fprintf with a non-constant, non-format string.
6690
93a4145b
UB
66912013-03-26 Uros Bizjak <ubizjak@gmail.com>
6692
6693 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
6694 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
6695 operand 0 predicate.
6696 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
6697 attribute. Use general_x64nomem_operand as operand 1 predicate.
6698 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
6699 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6700 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
6701 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
6702 (mov<mode>_insv_1): Remove expander. Merge insn with
6703 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
6704 Use general_x64nomem_operand as operand 1 predicate.
6705 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
6706 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
6707 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6708 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
6709 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
6710 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
6711 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
6712 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
6713 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
6714 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
6715 (general_x64nomem_operand): Ditto.
6716
c6a9ed5a 67172013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
df599020
SH
6718
6719 * config/rtems.opt: Add -pthread option.
6720
31b0a960
RB
67212013-03-26 Richard Biener <rguenther@suse.de>
6722
93a4145b
UB
6723 * alias.c (find_base_term): Avoid redundant and not used recursion.
6724 (base_alias_check): Get the initial base term from the caller.
31b0a960
RB
6725 (true_dependence_1): Compute and pass base terms to base_alias_check.
6726 (write_dependence_p): Likewise.
6727 (may_alias_p): Likewise.
6728
79517551
SN
67292013-03-26 Sofiane Naci <sofiane.naci@arm.com>
6730
6731 * config/aarch64/aarch64.c (aarch64_classify_address): Support
6732 PC-relative load in SI modes and above only.
6733
a76213b9
XQ
67342013-03-26 Xinyu Qi <xyqi@marvell.com>
6735
6736 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
33159866
UB
6737 * config/arm/iwmmxt.md (WCGR0): Update.
6738 (WCGR1, WCGR2, WCGR3): Likewise.
a76213b9 6739
37ff9355
UB
67402013-03-26 Uros Bizjak <ubizjak@gmail.com>
6741
6742 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
6743 Use x64 and nox64 isa attributes.
6744
30b0317c
RB
67452013-03-26 Richard Biener <rguenther@suse.de>
6746
6747 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
6748 alignment computations and rely on get_object_alignment_1
6749 for the !TYPE_P case.
6750 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
6751
cbcdb140
WL
67522013-03-26 Walter Lee <walt@tilera.com>
6753
6754 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
6755 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
6756
dd884525 67572013-03-25 Jeff Law <law@redhat.com>
be672e08 6758
33159866
UB
6759 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
6760 check for INTEGRAL_TYPE_P that was missing due to checking in
dd884525
JL
6761 wrong version of prior patch.
6762
0051d3ec
WL
67632013-03-25 Walter Lee <walt@tilera.com>
6764
6765 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
6766 TILEGX_INSN_SHUFFLEBYTES1.
6767 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
6768 shufflebytes1.
6769 (tilegx_builtins): Ditto.
6770 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
6771
065a3605
WL
67722013-03-25 Walter Lee <walt@tilera.com>
6773
6774 * config/tilegx/tilegx.md (floatsisf2): New pattern.
0051d3ec
WL
6775 (floatunssisf2): New pattern.
6776 (floatsidf2): New pattern.
6777 (floatunssidf2): New pattern.
065a3605 6778
5b2a3c82
WL
67792013-03-25 Walter Lee <walt@tilera.com>
6780
6781 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
6782 tests for constraint J, K, N, P.
6783
192ea533
WL
67842013-03-25 Walter Lee <walt@tilera.com>
6785
6786 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
6787 Use indirect/pcrel encoding.
6788 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
6789 Ditto.
6790
855e0d0b
SE
67912013-03-25 Steve Ellcey <sellcey@mips.com>
6792
6793 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
6794 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
6795 * config/mips/mips.c (mips_option_override): Set IMADD default.
6796 * config/mips/mips.h (PTF_AVOID_IMADD): New.
6797 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
6798 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
6799 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
6800 * doc/invoke.texi (-mimadd/-mno-imadd): New.
6801
39e45653
JL
68022013-03-25 Jeff Law <law@redhat.com>
6803
6804 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
6805 slightly to avoid creating and folding useless trees. Simplify
6806 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
6807
7482c470
UB
68082013-03-25 Uros Bizjak <ubizjak@gmail.com>
6809
6810 * config/i386/i386.md (*zero_extendsidi2): Merge with
6811 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
6812 * config/i386/predicates.md (x86_64_zext_operand): Rename from
6813 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
6814 targets. Clarify comment.
6815
4a53743e
MJ
68162013-03-25 Martin Jambor <mjambor@suse.cz>
6817
6818 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
6819 pass-through jump functions differently.
6820 (ipa_read_jump_function): Likewise. Also use setter functions to set
6821 up jump functions.
6822
162712de
MJ
68232013-03-25 Martin Jambor <mjambor@suse.cz>
6824
6825 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
6826 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
6827 process it.
6828 (ipa_get_indirect_edge_target): New function.
6829 (devirtualization_time_bonus): New parameter known_aggs, pass it to
6830 ipa_get_indirect_edge_target. Update all callers.
6831 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
6832 ipa_get_indirect_edge_target_1 instead of calling
6833 ipa_get_indirect_edge_target.
6834 (create_specialized_node): Pass aggvlas to
6835 ipcp_discover_new_direct_edges.
6836
a5a4c20a
KT
68372013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6838
6839 * config/arm/arm.md (f_sels, f_seld): New types.
6840 (*cmov<mode>): New pattern.
6841 * config/arm/predicates.md (arm_vsel_comparison_operator): New
6842 predicate.
6843
f992b9fc
KT
68442013-03-25 Kai Tietz <ktietz@redhat.com>
6845
6846 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
6847 POSIX-printf for mingw-hosted builds.
6848
c16fd676
RB
68492013-03-25 Richard Biener <rguenther@suse.de>
6850
6851 PR middle-end/56694
6852 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
6853 must-not-throw stmt location.
6854
5ad29f12
KT
68552013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6856
6857 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
6858 Emit load-acquire versions when acq is true.
6859 (arm_emit_store_exclusive): Add rel parameter.
6860 Emit store-release versions when rel is true.
6861 (arm_split_compare_and_swap): Use acquire-release instructions
6862 instead.
6863 of barriers when appropriate.
6864 (arm_split_atomic_op): Likewise.
6865 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
6866 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
6867 (VUNSPEC_SLX): Likewise.
6868 (VUNSPEC_LDA): Likewise.
6869 (VUNSPEC_STL): Likewise.
6870 * config/arm/sync.md (atomic_load<mode>): New pattern.
6871 (atomic_store<mode>): Likewise.
6872 (arm_load_acquire_exclusive<mode>): Likewise.
6873 (arm_load_acquire_exclusivesi): Likewise.
6874 (arm_load_acquire_exclusivedi): Likewise.
6875 (arm_store_release_exclusive<mode>): Likewise.
6876
03a7dddb
CM
68772013-03-25 Catherine Moore <clm@codesourcery.com>
6878
6879 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
6880 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
6881 * config/mip/predicates.md (lwsp_swsp_operand,
6882 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
6883 sb16_operand, db4_operand, db7_operand, ib3_operand,
6884 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
6885 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
6886 andi16_operand): New predicates.
6887 * config/mips/mips.md (compression): New attribute.
6888 (enabled): New attribute.
6889 (length): Consider compression in computing length.
6890 (shift_compression): New code attribute.
6891 (*add<mode>3): New operands. Record compression.
6892 (sub<mode>3): Likewise.
6893 (one_cmpl<mode>2): Likewise.
6894 (*and<mode>3): Likewise.
6895 (*ior<mode>3): Likewise.
6896 (unnamed pattern for xor): Likewise.
6897 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
6898 (*<optab><mode>3): Likewise.
6899 (*mov<mode>_internal: Likewise.
6900 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
6901 (mips_unsigned_immediate_p): New.
6902 (umips_lwsp_swsp_address_p): New.
6903 (m16_based_address_p): New.
6904 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
6905 (mips_unsigned_immediate_p): New prototype.
6906 (lwsp_swsp_address_p): New prototype.
6907 (m16_based_address_p): New prototype.
6908 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
6909 (mips_signed_immediate_p): New function.
6910 (m16_based_address_p): New function.
6911 (lwsp_swsp_address_p): New function.
6912 (mips_print_operand_punctuation): Recognize short delay slot insns
6913 for microMIPS.add<mode>3"
6914
f35c297f 69152013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
a5784ce6 6916
f35c297f
KT
6917 PR target/56720
6918 * config/arm/iterators.md (v_cmp_result): New mode attribute.
6919 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
6920
051b9446
RB
69212013-03-25 Richard Biener <rguenther@suse.de>
6922
6923 PR tree-optimization/56689
6924 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
6925 any edge.
6926
374001cb
RB
69272013-03-25 Richard Biener <rguenther@suse.de>
6928
6929 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
6930 of bitmap.
6931 (memory_references): Likewise.
6932 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
6933 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
6934 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
6935 (gather_mem_refs_in_loops): Fold into ...
6936 (analyze_memory_references): ... this. Move initialization
6937 to tree_ssa_lim_initialize.
6938 (fill_always_executed_in): Rename to ...
6939 (fill_always_executed_in_1): ... this.
6940 (fill_always_executed_in): Move contains_call computation to
6941 this new function from ...
6942 (tree_ssa_lim_initialize): ... here.
6943 (tree_ssa_lim): Call fill_always_executed_in.
6944
57895947
EB
69452013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6946
6947 * postreload.c (reload_combine): Fix code detecting returns.
6948
1e1b18c1
EB
69492013-03-25 Eric Botcazou <ebotcazou@adacore.com>
6950
6951 * function.c (emit_use_return_register_into_block): On cc0 targets,
6952 do not emit the sequence between cc0 setter and user.
6953
9216baf1
KT
69542013-03-25 Kai Tietz <ktietz@redhat.com>
6955
1e1b18c1
EB
6956 * config/i386/predicates.md (local_symbolic_operand): Interpret
6957 dll-imported symbols as none-local.
9216baf1 6958
76421b44
RB
69592013-03-25 Richard Biener <rguenther@suse.de>
6960
6961 * tree-ssa-loop-im.c (struct depend): Remove.
6962 (struct lim_aux_data): Make depends a vec of gimples.
6963 (free_lim_aux_data): Adjust.
6964 (add_dependency): Likewise.
6965 (set_level): Likewise.
6966
d154bfa2
RB
69672013-03-25 Richard Biener <rguenther@suse.de>
6968
6969 PR middle-end/56434
6970 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
6971 the pointer returned by calls with ECF_MALLOC set.
6972
2cd9804e
UB
69732013-03-24 Uros Bizjak <ubizjak@gmail.com>
6974
acef5fe0
UB
6975 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
6976
69772013-03-24 Uros Bizjak <ubizjak@gmail.com>
6978
6979 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
2cd9804e
UB
6980 using MMXMODE mode iterator.
6981 (*move<mode>_internal): Merge with *movv2sf_internal and
6982 *movv2sf_internal_rex64 using MMXMODE mode iterator.
6983
225ccc68
SB
69842013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6985
85c0f02d
SB
6986 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
6987 (record_last_mem_set_info): Likewise.
6988
225ccc68
SB
6989 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
6990 of XNEWVEC followed by memset.
6991 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
6992
b64925dc
SB
69932013-03-23 Steven Bosscher <steven@gcc.gnu.org>
6994
6995 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
6996 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
6997 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
6998 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
6999 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
7000 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
7001 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
7002 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
7003 BARRIER_P instead of GET_CODE.
7004
b9aaf52e
EB
70052013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7006
7007 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
7008 inaccuracy in the probing code.
7009
7010 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
7011 (ctrapdi4): Likewise.
7012
66de4d7c
EB
70132013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7014
7015 * calls.c (expand_call): Add missing guard to code handling return
7016 of non-BLKmode structures in MSB.
7017 * function.c (expand_function_end): Likewise.
7018
4f25c8fb
EB
70192013-03-23 Eric Botcazou <ebotcazou@adacore.com>
7020
7021 * combine.c (try_combine): Adjust comment. Do not add the set of
7022 insn #0 if the destination indirectly is set or dies in insn #2.
7023 Tidy up code to distribute a new note.
7024
23b7850d
UB
70252013-03-22 Uros Bizjak <ubizjak@gmail.com>
7026
7027 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
7028 also for alternatives 16 and 17.
7029
bed852cf
UB
70302013-03-22 Uros Bizjak <ubizjak@gmail.com>
7031
7032 * config/i386/sse.md (*mov<mode>_internal): Merge with
7033 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
7034 Emit insn template depending on type attribute. Use
7035 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7036 movd instead of movq mnemonic for interunit moves. Rewrite mode
7037 attribute calculation. Remove unit attribute calculation.
7038 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
7039 Set prefix_data16 attribute for DImode ssemov types.
7040 Use Ym instead of y for SSE-MMX conversion alternatives.
7041 Reorder operand constraints.
7042
1e8a7937
SB
70432013-03-22 Steven Bosscher <steven@gcc.gnu.org>
7044
7045 * df.h (df_insn_delete): Adjust prototype.
7046 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
7047 and let it decide whether mark the basic block dirty.
7048 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
7049 * df-scan.c (df_insn_info_delete): New helper function, split
7050 off from df_insn_delete.
7051 (df_scan_free_bb_info): Use it.
7052 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
7053 Likewise.
7054 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
7055 that the insn is actually an insn and it has a non-NULL basic block.
7056 Do not mark basic block dirty if only deleting a DEBUG_INSN.
7057
e14d094c
RB
70582013-03-22 Richard Biener <rguenther@suse.de>
7059
7060 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
7061 dep_ref members.
7062 (mem_ref_alloc): Do not allocate them.
7063 (refs_independent_p): Do not query or maintain a cache.
7064
e9cf7316
RB
70652013-03-22 Richard Biener <rguenther@suse.de>
7066
7067 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
7068 (gather_mem_refs_in_loops): Do not compute it.
7069 (analyze_memory_references): Do not allocate it.
7070 (tree_ssa_lim_finalize): Do not free it.
7071 (for_all_locs_in_loop): Do not query all_refs_in_loop.
7072
f046e81b
RB
70732013-03-22 Richard Biener <rguenther@suse.de>
7074
7075 * is-a.h (as_a): Use gcc_checking_assert.
bed852cf 7076
a05c0ddf
IB
70772013-03-22 Ian Bolton <ian.bolton@arm.com>
7078
7079 * config/aarch64/aarch64.c (aarch64_print_operand): New
7080 format specifier for printing a constant in hex.
7081 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
7082 format specifier for printing second operand.
7083
c00217fc
RB
70842013-03-22 Richard Biener <rguenther@suse.de>
7085
7086 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
7087 bitmaps.
7088 (gather_mem_refs_in_loops): Perform store accumulation here.
7089 (create_vop_ref_mapping_loop): Remove.
7090 (create_vop_ref_mapping): Likewise.
7091 (analyze_memory_references): Initialize refs_stored_in_loop.
bed852cf 7092 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
c00217fc
RB
7093 (record_indep_loop): Remove.
7094 (record_dep_loop): New function.
7095 (ref_indep_loop_p_1): Adjust to only walk over references
7096 in the loop, not its subloops.
7097 (ref_indep_loop_p): Rename to ...
7098 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
7099 maintaining a more fine-grained cache.
7100 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
7101 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
7102
15d19bf8
RB
71032013-03-22 Richard Biener <rguenther@suse.de>
7104
7105 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
7106 (struct mem_ref): Make accesses_in_loop a vec of a vec of
7107 aggregate mem_ref_loc.
7108 (free_mem_ref_locs): Inline into ...
7109 (memref_free): ... this and adjust.
7110 (mem_ref_alloc): Adjust.
7111 (mem_ref_locs_alloc): Remove.
7112 (record_mem_ref_loc): Adjust.
7113 (get_all_locs_in_loop): Rewrite into ...
7114 (for_all_locs_in_loop): ... this iterator.
7115 (rewrite_mem_ref_loc): New functor.
7116 (rewrite_mem_refs): Use for_all_locs_in_loop.
7117 (sm_set_flag_if_changed): New functor.
7118 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
7119 (ref_always_accessed): New functor.
7120 (ref_always_accessed_p): Use for_all_locs_in_loop.
7121
6f37411d
MG
71222013-03-21 Marc Glisse <marc.glisse@inria.fr>
7123
7124 * tree-pass.h (PROP_gimple_lvec): New.
7125 * passes.c (dump_properties): Handle PROP_gimple_lvec.
7126 (init_optimization_passes): Move pass_lower_vector.
7127 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
7128 PROP_gimple_lvec.
7129 (pass_lower_vector): Provide PROP_gimple_lvec.
7130 (pass_lower_vector_ssa): Likewise.
7131 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
7132
511ef689
MW
71332013-03-21 Mark Wielaard <mjw@redhat.com>
7134
7135 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
7136
cc1df30b
UB
71372013-03-21 Uros Bizjak <ubizjak@gmail.com>
7138
7139 * config/i386/i386.md (*movdi_internal): Disparage slightly
7140 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
7141 conversion alternatives.
7142
c845cfe1
JJ
71432013-03-21 Jakub Jelinek <jakub@redhat.com>
7144
37e99116
JJ
7145 PR middle-end/48087
7146 * diagnostic.def (DK_WERROR): New kind.
7147 * diagnostic.h (werrorcount): Define.
7148 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
7149 promoted to DK_ERROR, increment DK_WERROR counter instead of
7150 DK_ERROR counter.
7151 * toplev.c (toplev_main): Call print_ignored_options even if
7152 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
7153 even if just werrorcount is non-zero.
7154
c845cfe1
JJ
7155 PR debug/55608
7156 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
7157 on failure.
7158 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
7159 (string_cst_pool_decl): New function.
7160 (optimize_one_addr_into_implicit_ptr): New function.
7161 (resolve_addr_in_expr): Optimize DWARF location expression
7162 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
7163 which doesn't live in memory, but has DW_AT_location or
7164 DW_AT_const_value, or refers to a string literal, into
7165 DW_OP_GNU_implicit_pointer.
7166 (optimize_location_into_implicit_ptr): New function.
7167 (resolve_addr): If removing DW_AT_location of a variable because
7168 it was DW_OP_addr of address of the variable, but the variable doesn't
7169 live in memory, try to emit const value attribute for the initializer.
7170
08e0cda6
MG
71712013-03-21 Marc Glisse <marc.glisse@inria.fr>
7172
7173 * tree.h (VECTOR_TYPE_P): New macro.
7174 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
7175 TYPE_MODE): Use it.
7176 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
7177 VEC_COND_EXPR cannot be lvalues.
7178 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
7179
d08633b4
MG
71802013-03-21 Marc Glisse <marc.glisse@inria.fr>
7181
7182 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
7183 Restrict the transformation to equal modes.
7184
e6647190
RB
71852013-03-21 Richard Biener <rguenther@suse.de>
7186
7187 PR tree-optimization/39326
7188 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
7189 (MEM_ANALYZABLE): Adjust.
7190 (record_mem_ref_loc): Move bitmap ops ...
7191 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
7192 unanalyzable refs, do not record locations for it.
7193 (analyze_memory_references): Allocate ref zero as shared
7194 unanalyzable ref.
7195 (refs_independent_p): Do not test for unanalyzed mems here.
7196 (ref_indep_loop_p_1): Special-case disambiguation against
7197 the unanalyzed ref.
cc1df30b 7198 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
e6647190 7199
65074f54
CL
72002013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
7201
7202 * config/arm/arm-protos.h (tune_params): Add
7203 prefer_neon_for_64bits field.
7204 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
7205 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
7206 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7207 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7208 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
7209 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7210 (arm_option_override): Handle -mneon-for-64bits new option.
7211 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
7212 (prefer_neon_for_64bits): Declare new variable.
7213 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
cc1df30b 7214 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
65074f54
CL
7215 (arch_enabled): Handle new arch types. Remove support for onlya8
7216 and nota8.
7217 (one_cmpldi2): Use new arch names.
bc5faa5b 7218 (zero_extend<mode>di2, extend<mode>di2): Ditto.
65074f54
CL
7219 * config/arm/arm.opt (mneon-for-64bits): Add option.
7220 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
7221 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
7222 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
7223 of onlya8.
7224 * doc/invoke.texi (-mneon-for-64bits): Document.
7225
5a2d2a79
RB
72262013-03-21 Richard Biener <rguenther@suse.de>
7227
7228 PR tree-optimization/39326
7229 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
7230 (sort_bbs_in_loop_postorder_cmp): New function.
cc1df30b 7231 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
5a2d2a79 7232
5abe1e05
RB
72332013-03-21 Richard Biener <rguenther@suse.de>
7234
7235 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
7236 (vect_insert_into_interleaving_chain): Likewise.
7237 (vect_drs_dependent_in_basic_block): Inline ...
7238 (vect_slp_analyze_data_ref_dependence): ... here. New function,
7239 split out from ...
7240 (vect_analyze_data_ref_dependence): ... here. Simplify.
7241 (vect_check_interleaving): Simplify.
7242 (vect_analyze_data_ref_dependences): Likewise. Split out ...
7243 (vect_slp_analyze_data_ref_dependences): ... this new function.
7244 (dr_group_sort_cmp): New function.
7245 (vect_analyze_data_ref_accesses): Compute data-reference groups
7246 here instead of in vect_analyze_data_ref_dependence. Use
7247 a more efficient algorithm.
7248 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
7249 vect_slp_analyze_data_ref_dependences. Call
7250 vect_analyze_data_ref_accesses earlier.
7251 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
7252 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
7253 (vect_slp_analyze_data_ref_dependences): New prototype.
7254
cad1735b
RB
72552013-03-21 Richard Biener <rguenther@suse.de>
7256
7257 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
7258 ref is stored in the loop.
7259 (find_refs_for_sm): Walk only over all stores.
7260 (store_motion_loop): Allocate from lim_bitmap_obstack.
7261 (store_motion): Likewise.
7262
141310ef
RB
72632013-03-21 Richard Biener <rguenther@suse.de>
7264
7265 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
7266 Update virtual SSA form.
7267
5022315a
RO
72682013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7269
7270 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
7271 * configure: Regenerate.
7272 * config.in: Regenerate.
7273 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
7274 if !HAVE_LD_EH_FRAME_CIEV3.
7275
50d4421c
RB
72762013-03-21 Richard Biener <rguenther@suse.de>
7277
7278 * tree-cfg.c (verify_expr_no_block): New function.
7279 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
7280 nor DECL_VALUE_EXPR have locations with associated blocks.
7281 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
7282 (clear_unused_block_pointer): Remove code dealing with
7283 blocks in DECL_DEBUG_EXPR locations.
7284
839b422f
RB
72852013-03-21 Richard Biener <rguenther@suse.de>
7286
7287 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
7288 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
7289 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
7290 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
7291 instead of DECL_DEBUG_EXPR_IS_FROM.
7292 * gimplify.c (gimplify_modify_expr): Likewise.
7293 * tree-cfg.c (verify_expr_location_1): Likewise.
7294 * tree-complex.c (create_one_component_var): Likewise.
7295 * tree-sra.c (create_access_replacement): Likewise.
7296 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
7297 (clear_unused_block_pointer): Likewise.
7298 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
7299 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
7300 * var-tracking.c (var_debug_decl): Likewise.
7301 (track_expr_p): Likewise.
7302 * tree-inline.c (add_local_variables): Likewise. Set
7303 DECL_HAS_DEBUG_EXPR_P after copying it.
7304 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
7305 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
7306
fe04878d
UB
73072013-03-21 Uros Bizjak <ubizjak@gmail.com>
7308
7309 PR bootstrap/56656
7310 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
7311 * configure: Regenerate.
7312 * config.in: Regenerate.
7313 * config/i386/i386.md (*movdf_internal): Use
7314 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
7315 movd instead of movq mnemonic for interunit moves.
7316 (*movdi_internal): Ditto.
7317
bd059b26 73182013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
fa2e9a58
N
7319
7320 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
7321 (abd<mode>_3): New pattern.
7322 (aba<mode>_3): New pattern.
7323 (fabd<mode>_3): New pattern.
7324
bd059b26 73252013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
50ce6f88
N
7326
7327 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
7328 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
7329 occurrence of REGISTER_PREFIX as its empty string.
7330
4f1f78b9
JL
73312013-03-20 Jeff Law <law@redhat.com>
7332
7333 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
7334 addititional equivalences for equality comparisons between an SSA_NAME
7335 and a constant where the SSA_NAME was set from a widening conversion.
7336
327a1118
WL
73372013-03-20 Walter Lee <walt@tilera.com>
7338
7339 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
7340
813e0036
UB
73412013-03-20 Uros Bizjak <ubizjak@gmail.com>
7342
7343 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
7344 depending on type attribute.
7345 (*movti_internal): Ditto.
7346 (*movtf_internal): Ditto.
7347 (*movxf_internal): Ditto.
7348 (*movdf_internal): Ditto.
7349 (*movsf_internal): Ditto.
7350
7cf34aae
UB
73512013-03-20 Uros Bizjak <ubizjak@gmail.com>
7352
7353 * config/i386/i386.md (*movti_internal): Set prefix attribute to
7354 maybe_vex for sselog1 and ssemov types.
7355 (*movdi_internal): Reorder operand constraints.
7356 (*movsi_internal): Ditto. Set prefix attribute to
7357 maybe_vex for sselog1 and ssemov types.
7358 (*movtf_internal): Set prefix attribute to maybe_vex
7359 for sselog1 and ssemov types.
7360 (*movdf_internal): Ditto. Set prefix_data16 attribute for
7361 DImode ssemov types. Reorder operand constraints.
7362 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
7363 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
7364 attribute for SImode ssemov types. Reorder operand constraints.
7365
19321415
MJ
73662013-03-20 Martin Jambor <mjambor@suse.cz>
7367
7368 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
7369 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
7370
c6d5ff83
MM
73712013-03-20 Pat Haugen <pthaugen@us.ibm.com>
7372
7373 * config/rs6000/predicates.md (indexed_address, update_address_mem
7374 update_indexed_address_mem): New predicates.
7375 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
7376 attribute for load/store instructions.
7377 * config/rs6000/dfp.md (movsd_store): Likewise.
7378 (movsd_load): Likewise.
7379 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
7380 (unnamed HI->DI extend define_insn): Likewise.
7381 (unnamed SI->DI extend define_insn): Likewise.
7382 (unnamed QI->SI extend define_insn): Likewise.
7383 (unnamed QI->HI extend define_insn): Likewise.
7384 (unnamed HI->SI extend define_insn): Likewise.
7385 (unnamed HI->SI extend define_insn): Likewise.
7386 (extendsfdf2_fpr): Likewise.
7387 (movsi_internal1): Likewise.
7388 (movsi_internal1_single): Likewise.
7389 (movhi_internal): Likewise.
7390 (movqi_internal): Likewise.
7391 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
7392 attribute for load/store instructions.
7393 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
7394 instructions.
7395 (mov<mode>_softfloat): Likewise.
7396 (mov<mode>_hardfloat32): Likewise.
7397 (mov<mode>_hardfloat64): Likewise.
7398 (mov<mode>_softfloat64): Likewise.
7399 (movdi_internal32): Likewise.
7400 (movdi_internal64): Likewise.
7401 (probe_stack_<mode>): Likewise.
7402
74032013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
7404
7405 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
7406 floating point, and decimal floating point to reload iterator.
7407
7408 * config/rs6000/constraints.md (wl constraint): New constraints to
7409 return FLOAT_REGS if certain options are used to reduce the number
7410 of separate patterns that exist in the file.
7411 (wx constraint): Likewise.
7412 (wz constraint): Likewise.
7413
7414 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7415 -mdebug=reg, print wg, wl, wx, and wz constraints.
7416 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7417 Initialize the reload functions for 64-bit binary/decimal floating
7418 point types.
7419 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7420 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7421 create the buffer on the stack to overcome not having a 32-bit
7422 load and store.
7423 (rs6000_emit_move): Likewise.
7424 (rs6000_secondary_memory_needed_rtx): Likewise.
7425 (rs6000_alloc_sdmode_stack_slot): Likewise.
7426 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7427 via xxlxor, just like DFmode 0.0.
7428
7429 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
7430 define as 1 if we are running on a power7 or newer.
7431 (enum r6000_reg_class_enum): Add new constraints.
7432
7433 * config/rs6000/dfp.md (movsd): Delete, combine with binary
7434 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7435 with other moves by using conditional constraits (wg). Use LFIWZX
bd059b26 7436 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
c6d5ff83
MM
7437 (movsd splitter): Likewise.
7438 (movsd_hardfloat): Likewise.
7439 (movsd_softfloat): Likewise.
7440
7441 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
7442 binary and decimal floating point moves.
7443 (fmove_ok): New attributes to combine binary and decimal floating
7444 point moves, and to combine power6x (mfpgpr) moves along normal
7445 floating moves.
7446 (real_value_to_target): Likewise.
7447 (f32_lr): Likewise.
7448 (f32_lm): Likewise.
7449 (f32_li): Likewise.
7450 (f32_sr): Likewise.
7451 (f32_sm): Likewise.
7452 (f32_si): Likewise.
7453 (movsf): Combine binary and decimal floating point moves. Combine
7454 power6x (mfpgpr) moves with other moves by using conditional
bd059b26 7455 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
c6d5ff83
MM
7456 (mov<mode> for SFmode/SDmode); Likewise.
7457 (SFmode/SDmode splitters): Likewise.
7458 (movsf_hardfloat): Likewise.
7459 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
7460 (movsf_softfloat): Likewise.
7461 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
7462
7463 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
7464 wx and wz constraints.
7465
7466 * config/rs6000/constraints.md (wg constraint): New constraint to
7467 return FLOAT_REGS if -mmfpgpr (power6x) was used.
7468
7469 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
7470 constraint.
7471
7472 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
7473 -mdebug=reg, print wg, wl, wx, and wz constraints.
7474 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
7475 Initialize the reload functions for 64-bit binary/decimal floating
7476 point types.
7477 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
7478 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
7479 create the buffer on the stack to overcome not having a 32-bit
7480 load and store.
7481 (rs6000_emit_move): Likewise.
7482 (rs6000_secondary_memory_needed_rtx): Likewise.
7483 (rs6000_alloc_sdmode_stack_slot): Likewise.
7484 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
7485 via xxlxor, just like DFmode 0.0.
7486
c6d5ff83
MM
7487 * config/rs6000/dfp.md (movdd): Delete, combine with binary
7488 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
7489 with other moves by using conditional constraits (wg). Use LFIWZX
7490 and STFIWX for loading SDmode on power7.
7491 (movdd splitters): Likewise.
7492 (movdd_hardfloat32): Likewise.
7493 (movdd_softfloat32): Likewise.
7494 (movdd_hardfloat64_mfpgpr): Likewise.
7495 (movdd_hardfloat64): Likewise.
7496 (movdd_softfloat64): Likewise.
7497
7498 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
7499 64-bit binary and decimal floating point moves.
7500 (FMOVE64X): Likewise.
7501 (movdf): Combine 64-bit binary and decimal floating point moves.
7502 Combine power6x (mfpgpr) moves with other moves by using
7503 conditional constraits (wg).
7504 (mov<mode> for DFmode/DDmode): Likewise.
7505 (DFmode/DDmode splitters): Likewise.
7506 (movdf_hardfloat32): Likewise.
7507 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
7508 (movdf_softfloat32): Likewise.
7509 (movdf_hardfloat64_mfpgpr): Likewise.
7510 (movdf_hardfloat64): Likewise.
7511 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
7512 (movdf_softfloat64): Likewise.
7513 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
7514 (reload_<mode>_load): Move to later in the file so they aren't in
7515 the middle of the floating point move insns.
7516 (reload_<mode>_store): Likewise.
7517
7518 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
7519 constraint.
7520
7521 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
7522 constraint if -mdebug=reg.
bd059b26
UB
7523 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
7524 Enable using dd reload support if needed.
c6d5ff83
MM
7525
7526 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
7527 binary and decimal floating point moves in rs6000.md.
7528 (movtd_internal): Likewise.
7529
7530 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
7531 decimal floating point moves.
7532 (movtf): Likewise.
7533 (movtf_internal): Likewise.
7534 (mov<mode>_internal, TDmode/TFmode): Likewise.
7535 (movtf_softfloat): Likewise.
7536 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
7537
7538 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
7539 movdi_internal64, using wg constraint for move direct operations.
7540 (movdi_internal64): Likewise.
7541
7542 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
7543 MODES_TIEABLE_P for selected modes. Print the numerical value of
7544 the various virtual registers. Use GPR/FPR first/last values,
7545 instead of hard coding the register numbers. Print which modes
7546 have reload functions registered.
bd059b26
UB
7547 (rs6000_option_override_internal): If -mdebug=reg, trace the options
7548 settings before/after setting cpu, target and subtarget settings.
7549 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
7550 and for secondary reload failures in rs6000_secondary_reload_inner.
c6d5ff83
MM
7551 (rs6000_secondary_reload_fail): Likewise.
7552 (rs6000_secondary_reload_inner): Likewise.
7553
7554 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
7555 macros for first/last GPR and FPR registers.
7556 (LAST_GPR_REGNO): Likewise.
7557 (FIRST_FPR_REGNO): Likewise.
7558 (LAST_FPR_REGNO): Likewise.
7559
7560 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
7561 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
7562 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
7563 (vcond<mode><mode>): Likewise.
7564 (vcondu<mode><mode>): Likewise.
7565 (vector_gtu<mode>): Likewise.
7566 (vector_gte<mode>): Likewise.
7567 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
bd059b26 7568 to prevent the compiler from converting DImode operations to TImode.
c6d5ff83
MM
7569 (ior<mode>3): Likewise.
7570 (and<mode>3): Likewise.
7571 (one_cmpl<mode>2): Likewise.
7572 (nor<mode>3): Likewise.
7573 (andc<mode>3): Likewise.
7574
7575 * config/rs6000/constraints.md (wt constraint): New constraint
7576 that returns VSX_REGS if TImode is allowed in VSX registers.
7577
7578 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
7579 constant under VSX.
7580
7581 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
7582 similar to TImode, but it is restricted to being in the GPRs.
7583
7584 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
7585 TImode to occupy a single VSX register.
7586
7587 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
7588 -mvsx-timode for power7/power8.
7589 (power7 cpu): Likewise.
7590 (power8 cpu): Likewise.
7591
7592 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
7593 sure that TFmode/TDmode take up two registers if they are ever
7594 allowed in the upper VSX registers.
7595 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
7596 registers.
7597 (rs6000_init_hard_regno_mode_ok): Likewise.
7598 (rs6000_debug_reg_global): Add debugging for PTImode and wt
7599 constraint. Print if LRA is turned on.
7600 (rs6000_option_override_internal): Give an error if -mvsx-timode
7601 and VSX is not enabled.
7602 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
7603 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
7604 to reg+offset addressing. Use PTImode when checking offset
7605 addresses for validity.
7606 (reg_offset_addressing_ok_p): Likewise.
7607 (rs6000_legitimate_offset_address_p): Likewise.
7608 (rs6000_legitimize_address): Likewise.
7609 (rs6000_legitimize_reload_address): Likewise.
7610 (rs6000_legitimate_address_p): Likewise.
7611 (rs6000_eliminate_indexed_memrefs): Likewise.
7612 (rs6000_emit_move): Likewise.
7613 (rs6000_secondary_reload): Likewise.
7614 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
7615 reloads to fpr registers to continue to use reg+offset addressing,
7616 but 64-bit reloads to altivec registers need reg+reg addressing.
7617 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
7618 it. Treat LO_SUM like a PLUS operation.
7619 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
bd059b26 7620 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
c6d5ff83
MM
7621 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
7622 registers to share a register with a smaller sized type, since VSX
7623 puts scalars in the upper 64-bits.
7624 (print_operand): Add support for PTImode.
7625 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
7626 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
7627 registers, but don't have arithmetic support.
7628 (rs6000_memory_move_cost): Add test for VSX.
7629 (rs6000_opt_masks): Add -mvsx-timode.
7630
7631 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
7632 for TImode.
7633 (VSs): Likewise.
7634 (VSr): Use wt constraint for TImode.
7635 (VSv): Drop TImode support.
7636 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
7637 (vsx_movti_64bit): Likewise.
7638 (vsx_movti_32bit): Likewise.
7639 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
7640 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
7641 one '?' on the appropriate output constraint. Do not allow TImode
7642 logical operations on 32-bit systems.
7643 (vsx_ior<mode>3): Likewise.
7644 (vsx_xor<mode>3): Likewise.
7645 (vsx_one_cmpl<mode>2): Likewise.
7646 (vsx_nor<mode>3): Likewise.
7647 (vsx_andc<mode>3): Likewise.
7648 (vsx_concat_<mode>): Likewise.
7649 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
7650
7651 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
7652 OPTION_MASK_VSX_TIMODE.
7653 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
7654 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
7655
7656 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
7657 (TI2 iterator): New iterator for TImode, PTImode.
7658 (wd mode attribute): Add values for vector types.
bd059b26
UB
7659 (movti_string): Replace TI move operations with operations for TImode
7660 and PTImode. Add support for TImode being allowed in VSX registers.
c6d5ff83
MM
7661 (mov<mode>_string, TImode/PTImode): Likewise.
7662 (movti_ppc64): Likewise.
7663 (mov<mode>_ppc64, TImode/PTImode): Likewise.
7664 (TI mode splitters): Likewise.
7665
7666 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
7667 constraint.
7668
1fc5eced
MG
76692013-03-20 Marc Glisse <marc.glisse@inria.fr>
7670
7671 PR tree-optimization/56355
7672 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
7673 Also handle integers with undefined overflow.
7674
22c4c869
CM
76752013-03-20 Catherine Moore <clm@codesourcery.com>
7676 Maciej W. Rozycki <macro@codesourcery.com>
7677 Tom de Vries <tom@codesourcery.com>
7678 Nathan Sidwell <nathan@codesourcery.com>
7679 Iain Sandoe <iain@codesourcery.com>
7680 Nathan Froyd <froydnj@codesourcery.com>
7681 Chao-ying Fu <fu@mips.com>
7682
7683 * doc/extend.texi: (micromips, nomicromips, nocompression):
7cf34aae 7684 Document new function attributes.
22c4c869
CM
7685 * doc/invoke.texi (minterlink-compressed, mmicromips,
7686 m14k, m14ke, m14kec): Document new options.
7687 (minterlink-mips16): Update documentation.
7688 * doc/md.texi (ZC, ZD): Document new constraints.
7689 * configure.ac (gcc_cv_as_micromips): Check if linker
7690 supports the .set micromips directive.
7691 * configure: Regenerate.
7692 * config.in: Regenerate.
7693 * config/mips/mips-tables.opt: Regenerate.
7694 * config/mips/micromips.md: New file.
7695 * constraints.md (ZC, ZD): New constraints.
7696 * config/mips/predicates.md (movep_src_register): New predicate.
7697 (movep_src_operand): New predicate.
7698 (non_volatile_mem_operand): New predicate.
7699 * config/mips/mips.md (multimem): New type.
7700 (length): Differentiate between 17-bit and 18-bit branch offsets.
7701 (MOVEP1, MOVEP2): New mode iterator.
33159866 7702 (mov_<load>l): Use ZC constraint.
22c4c869
CM
7703 (mov_<load>r): Likewise.
7704 (mov_<store>l): Likewise.
7705 (mov_<store>r): Likewise.
7706 (*branch_equality<mode>_inverted): Add microMIPS support.
7707 (*branch_equality<mode>): Likewise.
7708 (*jump_absolute): Likewise.
7709 (indirect_jump_<mode>): Likewise.
7710 (tablejump_<mode>): Likewise.
7711 (<optab>_internal): Likewise.
7712 (sibcall_internal): Likewise.
7713 (sibcall_value_internal): Likewise.
7714 (prefetch): Use constraint ZD.
7715 * config/mips/mips.opt (minterlink-compressed): New option.
7716 (minterlink-mips16): Now an alias for minterlink-compressed.
7717 (mmicromips): New option.
7718 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
7719 (compare_and_swap_12): Likewise.
7720 (sync_add<mode>): Likewise.
7721 (sync_<optab>_12): Likewise.
7722 (sync_old_<optab>_12): Likewise.
7723 (sync_new_<optab>_12): Likewise.
7724 (sync_nand_12): Likewise.
7725 (sync_old_nand_12): Likewise.
7726 (sync_new_nand_12): Likewise.
7727 (sync_sub<mode>): Likewise.
7728 (sync_old_add<mode>): Likewise.
7729 (sync_old_sub<mode>): Likewise.
7730 (sync_new_add<mode>): Likewise.
7731 (sync_new_sub<mode>): Likewise.
7732 (sync_<optab><mode>): Likewise.
7733 (sync_old_<optab><mode>): Likewise.
7734 (sync_new_<optab><mode>): Likewise.
7735 (sync_nand<mode>): Likewise.
7736 (sync_old_nand<mode>): Likewise.
7737 (sync_new_nand<mode>): Likewise.
7738 (sync_lock_test_and_set<mode>): Likewise.
7739 (test_and_set_12): Likewise.
7740 (atomic_compare_and_swap<mode>): Likewise.
7741 (atomic_exchange<mode>_llsc): Likewise.
7742 (atomic_fetch_add<mode>_llsc): Likewise.
7743 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
7744 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
7745 (umips_save_restore_pattern_p): Likewise.
7746 (umips_load_store_pair_p): Likewise.
7747 (umips_output_load_store_pair): Likewise.
7748 (umips_movep_target_p): Likewise.
7749 (umips_12bit_offset_address_p): Likewise.
7750 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
7751 (mips_base_mips16): Rename this...
7752 (mips_base_compression_flags): ...to this. Update all uses.
7753 (mips_attribute_table): Add micromips, nomicromips and nocompression.
7754 (mips_mips16_decl_p): Delete.
7755 (mips_nomips16_decl_p): Delete.
33159866 7756 (mips_get_compress_on_flags): New function.
22c4c869
CM
7757 (mips_get_compress_off_flags): New function.
7758 (mips_get_compress_mode): New function.
7759 (mips_get_compress_on_name): New function.
7760 (mips_get_compress_off_name): New function.
7761 (mips_insert_attributes): Support multiple compression types.
7762 (mips_merge_decl_attributes): Likewise.
7763 (umips_12bit_offset_address_p): New function.
7764 (mips_start_function_definition): Emit .set micromips directive.
7765 (mips_call_may_need_jalx_p): New function.
7766 (mips_function_ok_for_sibcall): Add microMIPS support.
7767 (mips_print_operand_punctuation): Support short delay slots and
7768 compact jumps.
7769 (umips_swm_mask, umips_swm_encoding): New.
7770 (umips_build_save_restore): New function.
7771 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
7772 (was_mips16_p): Remove.
7773 (old_compression_mode): New.
7774 (mips_set_compression_mode): New function.
7775 (mips_set_current_function): Add microMIPS support.
7776 (mips_option_override): Likewise.
7777 (umips_save_restore_pattern_p): New function.
7778 (umips_output_save_restore): New function.
7779 (umips_load_store_pair_p_1): New function.
7780 (umips_load_store_pair_p): New function.
7781 (umips_output_load_store_pair_1): New function.
7782 (umips_output_load_store_pair): New function.
7783 (umips_movep_target_p) New function.
7784 (mips_prepare_pch_save): Add microMIPS support.
7785 * config/mips/mips.h (TARGET_COMPRESSION): New.
7786 (TARGET_CPU_CPP_BUILTINS): Update macro
7787 to use new compression flags and to support microMIPS.
7788 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
7789 (MIPS_ARCH_FLOAT_SPEC): Likewise.
7790 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
7791 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
7792 (ASM_SPEC): Support mmicromips and mno-micromips.
7793 (M16STORE_REG_P): New macro.
7794 (MIPS_CALL): Support TARGET_MICROMIPS.
7795 (MICROMIPS_J): New macro.
7796 (mips_base_mips16): Rename this...
7797 (mips_base_compression_flags): ...to this.
7798 (UMIPS_12BIT_OFFSET_P): New macro.
7799 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
7800 (MULTILIB_DIRNAMES): Likewise.
92a8d7a7
RB
78012013-03-20 Richard Biener <rguenther@suse.de>
7802
7803 PR tree-optimization/56661
7804 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
7805 the result does not have to be distinct.
7806
54714c68
RB
78072013-03-20 Richard Biener <rguenther@suse.de>
7808
7809 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
7810 remap_gimple_op_r.
7811
cca1130d
BS
78122013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7813 Steven Bosscher <steven@gcc.gnu.org>
7814
7815 PR rtl-optimization/56605
7816 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
7817
2a930377
UB
78182013-03-20 Uros Bizjak <ubizjak@gmail.com>
7819
7820 PR bootstrap/56656
7821 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
7822 that require movd instead of movq.
7823
d6d305fe
RB
78242013-03-20 Richard Biener <rguenther@suse.de>
7825
7826 * tree-ssa-structalias.c (struct variable_info): Add pointer
7827 to the first field of an aggregate with sub-vars. Make
7828 this and the pointer to the next subfield its ID.
7829 (vi_next): New function.
7830 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
7831 storedanything_id, integer_id): Increment by one.
7832 (new_var_info, get_call_vi, lookup_call_clobber_vi,
7833 get_call_clobber_vi): Adjust.
7834 (solution_set_expand): Simplify and speedup.
7835 (solution_set_add): Inline into ...
7836 (set_union_with_increment): ... this. Adjust accordingly.
7837 (do_sd_constraint): Likewise.
7838 (do_ds_constraint): Likewise.
7839 (do_complex_constraint): Simplify.
7840 (build_pred_graph): Adjust.
7841 (solve_graph): Likewise. Simplify and speedup.
7842 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
7843 get_constraint_for_component_ref, get_constraint_for_1,
7844 first_vi_for_offset, first_or_preceding_vi_for_offset,
7845 create_function_info_for, create_variable_info_for_1,
7846 create_variable_info_for, intra_create_variable_infos): Adjust.
7847 (init_base_vars): Push NULL for ID zero.
7848 (compute_points_to_sets): Adjust.
7849
a271b42d
RB
78502013-03-20 Richard Biener <rguenther@suse.de>
7851
7852 * cfgloop.c (verify_loop_structure): Streamline and avoid
7853 ICEing on corrupt loop tree.
7854 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
7855 loop tree.
7856
ebd65954
RB
78572013-03-20 Richard Biener <rguenther@suse.de>
7858
7859 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
7860 check whether an SSA update is needed.
7861
4547b7ee
RS
78622013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
7863
7864 * config/mips/constraints.md (T): Rename to...
7865 (Yf): ...this.
7866 (U): Rename to...
7867 (Yd): ...this.
7868 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
7869 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
7870
0b8cdc58
IB
78712013-03-19 Ian Bolton <ian.bolton@arm.com>
7872
7873 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
7874 (*subsi3_carryin_uxtw): Likewise.
7875
5977a10d
IB
78762013-03-19 Ian Bolton <ian.bolton@arm.com>
7877
7878 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
7879 (*rorsi3_insn_uxtw): Likewise.
7880
bd83ff2c
IB
78812013-03-19 Ian Bolton <ian.bolton@arm.com>
7882
7883 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
7884 (*extrsi5_insn_uxtw): Likewise.
7885
ba65123c
RB
78862013-03-19 Richard Biener <rguenther@suse.de>
7887
7888 PR tree-optimization/56273
7889 * passes.c (init_optimization_passes): Move second VRP after DOM.
7890
2eac0476
UB
78912013-03-19 Uros Bizjak <ubizjak@gmail.com>
7892
7893 * config/i386/i386.md (*movti_internal): Merge from
7894 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
7895 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
7896 nox64 isa attributes.
7897
6e55eda7
RB
78982013-03-18 Richard Biener <rguenther@suse.de>
7899
7900 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
7901 (unite): Likewise.
7902 (merge_node_constraints): Likewise.
7903 (build_succ_graph): Likewise.
7904 (valid_graph_edge): Inline into single caller.
7905 (unify_nodes): Likewise. Use bitmap_set_bit return value
7906 and cache varinfo.
7907 (scc_visit): Fix formatting and variable use.
7908 (do_sd_constraint): Use gcc_checking_assert.
7909 (do_ds_constraint): Likewise.
7910 (do_complex_constraint): Likewise.
7911 (condense_visit): Likewise. Cleanup.
7912 (dump_pred_graph): New function.
7913 (perform_var_substitution): Dump the pred-graph before
7914 variable substitution.
7915 (find_equivalent_node): Use gcc_checking_assert.
7916 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
7917
4bdd44c4
RB
79182013-03-18 Richard Biener <rguenther@suse.de>
7919
7920 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7921 Remove cond_expr_stmt_list argument and do not gimplify the
7922 built expression.
7923 (vect_loop_versioning): Adjust.
7924 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
7925 Cleanup to use less temporaries.
7926 (vect_create_data_ref_ptr): Cleanup.
7927
38c56a5b
JJ
79282013-03-18 Jakub Jelinek <jakub@redhat.com>
7929
7930 PR tree-optimization/56635
7931 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
7932 require types_compatible_p types.
7933
20b2e6a0
NC
79342013-03-18 Nick Clifton <nickc@redhat.com>
7935
a6178a25
NC
7936 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
7937 spurious backslash.
7938
20b2e6a0
NC
7939 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
7940 Add missing line to comment describing function.
7941
92608d0e
RB
79422013-03-18 Richard Biener <rguenther@suse.de>
7943
7944 PR tree-optimization/56210
7945 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7946 Handle string / character search functions.
7947 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7948
31348d52
RB
79492013-03-18 Richard Biener <rguenther@suse.de>
7950
7951 PR middle-end/56483
7952 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
7953 and implement properly.
7954 * gimple.h (gimple_cond_single_var_p): Remove.
7955
fcac74a1
RB
79562013-03-18 Richard Biener <rguenther@suse.de>
7957
7958 * tree-data-ref.h (find_data_references_in_loop): Declare.
7959 * tree-data-ref.c (get_references_in_stmt): Use a stack
7960 vector pre-allocated in the callers.
7961 (find_data_references_in_stmt): Adjust.
7962 (graphite_find_data_references_in_stmt): Likewise.
7963 (create_rdg_vertices): Likewise.
7964 (find_data_references_in_loop): Export.
7965 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
7966 Compute dependences here...
7967 (vect_analyze_data_refs): ...not here. When we encounter
7968 a non-vectorizable data reference in basic-block vectorization
7969 truncate the data reference vector. Do not bother to
7970 fixup data-dependence information for gather loads.
7971 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
7972 of data references, as reported.
7973
0d5a1b56
RB
79742013-03-18 Richard Biener <rguenther@suse.de>
7975
7976 PR tree-optimization/3713
7977 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
7978 has_constants and expr.
7979 (stmt_has_constants): Properly valueize SSA names when deciding
7980 whether the stmt has constants.
7981
789c34e3
RB
79822013-03-18 Richard Biener <rguenther@suse.de>
7983
7984 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
7985 whole function when there is nothing to do.
7986 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
7987 * tree-vectorizer.c (vectorize_loops): Update virtual and
7988 loop-closed SSA once.
7989 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
7990
076b4605
RB
79912013-03-18 Richard Biener <rguenther@suse.de>
7992
7993 PR middle-end/56113
7994 * domwalk.c (bb_postorder): New global static.
7995 (cmp_bb_postorder): New function.
7996 (walk_dominator_tree): Replace scheme imposing an order for
7997 visiting dominator sons by one sorting them at the time they
7998 are pushed on the stack.
7999
bdb01696
RB
80002013-03-18 Richard Biener <rguenther@suse.de>
8001
8002 PR tree-optimization/39326
8003 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
8004 (struct mem_ref): Replace mem member with ao_ref typed member.
8005 (MEM_ANALYZABLE): Adjust.
8006 (memref_eq): Likewise.
8007 (mem_ref_alloc): Likewise.
8008 (gather_mem_refs_stmt): Likewise.
8009 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
8010 (execute_sm_if_changed_flag_set): Adjust.
8011 (execute_sm): Likewise.
8012 (ref_always_accessed_p): Likewise.
8013 (refs_independent_p): Likewise.
8014 (can_sm_ref_p): Likewise.
8015
12d2dc5e
JJ
80162013-03-18 Jakub Jelinek <jakub@redhat.com>
8017
8018 PR c/56566
8019 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
8020 return 1 even for !unsignedp.
8021
286fb677
UB
80222013-03-17 Uros Bizjak <ubizjak@gmail.com>
8023
8024 * config/i386/i386.md (isa): Add x64 and nox64.
8025 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
8026 (*pushtf): Enable *roF alternative for x64 isa only.
8027 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
8028 mode attribute of integer alternatives to DImode for TARGET_64BIT.
8029 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
8030 (*movtf_internal): Merge from *movtf_internal_rex64 and
8031 *movtf_internal_sse. Use x64 and nox64 isa attributes.
8032 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
8033 nox64 isa attributes.
8034 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
8035 nox64 isa attributes.
8036 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
8037
88b97037
UB
80382013-03-17 Uros Bizjak <ubizjak@gmail.com>
8039
8040 * config/alpha/alpha.c (TARGET_LRA_P): New define.
8041
9f4f1735
JJ
80422013-03-17 Jakub Jelinek <jakub@redhat.com>
8043
8044 PR target/56640
8045 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
8046 class names. Remove trailing comma after "ALL_REGS".
8047
48f4a6fa
JH
80482013-03-16 Jan Hubicka <jh@suse.cz>
8049
8050 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
8051 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
8052 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
8053 of cgraph_get_create_node.
8054 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
8055
98e81123
JM
80562013-03-16 Jason Merrill <jason@redhat.com>
8057
8058 PR debug/49090
8059 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
8060 with DW_AT_default_value.
8061
8a298c04
JJ
80622013-03-16 Jakub Jelinek <jakub@redhat.com>
8063
8064 * BASE-VER: Set to 4.9.0.
8065
4323afa0
AK
80662013-03-14 Andi Kleen <ak@linux.intel.com>
8067
8068 PR target/56619
8069 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
8070 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
8071 Document _x* TSX intrinsics.
8072
b3c0d469
JJ
80732013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
8074 David Holsgrove <david.holsgrove@xilinx.com>
8cc9a5a5
EI
8075
8076 * configure.ac: Add MicroBlaze TLS support detection.
8077 * configure: Regenerate.
88b97037
UB
8078 * config/microblaze/microblaze-protos.h
8079 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
8080 symbol_mentioned_p, label_mentioned_p): Add prototypes.
8081 * config/microblaze/microblaze.c (microblaze_address_type): Add
8082 ADDRESS_TLS and tls_reloc address types.
8cc9a5a5
EI
8083 (microblaze_address_info): Add tls_reloc.
8084 (TARGET_HAVE_TLS): Define.
8085 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
8086 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
88b97037
UB
8087 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
8088 load_tls_operand, microblaze_call_tls_get_addr,
8089 microblaze_legitimize_tls_address): New functions.
8cc9a5a5
EI
8090 (microblaze_classify_unspec): Handle UNSPEC_TLS.
8091 (get_base_reg): Use microblaze_tls_symbol_p.
8092 (microblaze_classify_address): Handle TLS.
88b97037
UB
8093 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
8094 label_mentioned_p and microblaze_tls_referenced_p.
8cc9a5a5
EI
8095 (microblaze_legitimize_address): Handle TLS.
8096 (microblaze_address_insns): Handle ADDRESS_TLS.
8097 (pic_address_needs_scratch): Handle TLS.
8098 (print_operand_address): Handle TLS.
8099 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
8100 (microblaze_expand_move): Handle TLS.
88b97037
UB
8101 (microblaze_legitimate_constant_p): Check
8102 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
8cc9a5a5
EI
8103 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
8104 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
8105 (PIC_OFFSET_TABLE_REGNUM): Set.
8106 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
8107 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
8108 (addsi3, movsi_internal2, movdf_internal): Update constraints
8109 * config/microblaze/predicates.md (arith_plus_operand): Define
88b97037
UB
8110 (move_operand): Redefine as move_src_operand,
8111 check microblaze_tls_referenced_p.
8cc9a5a5 8112
d803a491
IB
81132013-03-14 Ian Bolton <ian.bolton@arm.com>
8114
8115 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
8116 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
8117
a8504f22
IB
81182013-03-14 Ian Bolton <ian.bolton@arm.com>
8119
8120 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
8121 CC mode for AND.
8122
df2dfaea
JJ
81232013-03-14 Jakub Jelinek <jakub@redhat.com>
8124
fbd28bc3
JJ
8125 PR tree-optimization/53265
8126 * common.opt (Waggressive-loop-optimizations): New option.
8127 * tree-ssa-loop-niter.c: Include tree-pass.h.
8128 (do_warn_aggressive_loop_optimizations): New function.
8129 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
8130 if number_of_latch_executions returned constant.
8131 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
8132 early. If number_of_latch_executions returned constant, set
8133 nb_iterations_upper_bound back to it.
8134 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
8135 field.
8136 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
8137 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
8138
df2dfaea
JJ
8139 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
8140 (MULTILIB_OSDIRNAMES): Set.
8141 * genmultilib: If defaultosdirname doesn't start with :: , set
8142 defaultosdirname2 instead, clear it and emit two . multilib_raw
8143 entries instead of just one.
8144
ee0d2b68
KK
81452013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
8146
8147 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8148 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
8149 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
8150 (SUBTARGET_OVERRIDE_OPTIONS): New.
8151
decc676e
OE
81522013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
8153
8154 PR target/49880
8155 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
8156 (musermode): Convert to Var(TARGET_USERMODE).
8157 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
8158 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
8159 * config/sh/sh.c (sh_option_override): Use
8160 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
8161 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
8162 condition.
8163 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
8164 TARGET_SH4.
8165 (udivsi3_i4_single, divsi3_i4_single): Use
8166 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
8167
f4b719c7
DK
81682013-03-13 Dave Korn <dave.korn.cygwin@....>
8169
8170 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
8171 default setting.
8172
c40eced0
RB
81732013-03-13 Richard Biener <rguenther@suse.de>
8174
8175 PR tree-optimization/56608
8176 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
8177 calls when vectorizing basic-blocks.
8178
1bfa5973
JJ
81792013-03-13 Jakub Jelinek <jakub@redhat.com>
8180
8181 PR plugins/45078
8182 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
8183 tm_file.
8184
6fcf5434
JJ
81852013-03-12 Jakub Jelinek <jakub@redhat.com>
8186
8187 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
8188
4f38fa8c
JH
81892013-03-11 Jan Hubicka <jh@suse.cz>
8190
8191 PR lto/56557
8192 * lto-streamer-out.c (output_symbol_p): Skip references from
8193 constructors of external variables.
8194
c5c5ba89
JH
81952013-03-11 Jan Hubicka <jh@suse.cz>
8196
8197 PR middle-end/56571
8198 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
8199 from pseudos.
8200 * emit-rtl.c (verify_rtx_sharing): Likewise.
8201 (copy_insn_1): Likewise.
8202 * rtl.c (copy_rtx): Likewise.
8203
c2a939b1
GJL
82042013-03-11 Georg-Johann Lay <avr@gjlay.de>
8205
8206 PR target/56591
8207 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
8208 output_operand_lossage message.
88b97037 8209
3c3279fb
RE
82102013-03-11 Richard Earnshaw <rearnsha@arm.com>
8211
8212 PR target/56470
8213 * arm.c (shift_op): Validate RTL pattern on the fly.
8214 (arm_print_operand, case 'S'): Don't use shift_operator to validate
8215 the RTL.
8216
aef5ef9d
JDA
82172013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8218
8219 PR target/56347
8220 * config/pa/pa.md (call_value): Check for calls to powf and direct to
8221 new call patterns that clobber %fr12.
8222 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
8223 split and postreload patterns.
8224 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
8225 registers %fr12 and %fr12R as call used.
8226
456610d3
SB
82272013-03-09 Steven Bosscher <steven@gcc.gnu.org>
8228
8229 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
8230 (canon_address, record_store, replace_read, check_mem_read_rtx,
8231 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
8232 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
8233 rest_of_handle_dse): Likewise.
8234
4b1baac8
RS
82352013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
8236
8237 PR middle-end/56524
8238 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
8239 Add base_optabs.
8240 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
8241 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
8242 (save_optabs_if_changed): Replace with...
8243 (init_tree_optimization_optabs): ...this.
8244 * optabs.c (save_optabs_if_changed): Rename to...
8245 (init_tree_optimization_optabs): ...this. Take the optimization node
8246 as argument. Do nothing if the base optabs are already correct.
8247 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
8248 to recompute optabs.
8249 * function.h (function): Remove optabs field.
8250 * function.c (invoke_set_current_function_hook): Call
8251 init_tree_optimization_optabs. Use the result to initialize
8252 this_fn_optabs.
8253
b7a78683
AH
82542013-02-27 Aldy Hernandez <aldyh@redhat.com>
8255
8256 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
8257 if GTMA_HAS_NO_INSTRUMENTATION.
8258 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
8259 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
8260 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
8261 * gimple-pretty-print.c (dump_gimple_transaction): Handle
8262 GTMA_HAS_NO_INSTRUMENTATION.
8263
6384c29b
JJ
82642013-03-08 Jakub Jelinek <jakub@redhat.com>
8265
8266 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
8267 libasan_preinit.o.
8268
ecd4f20a
MP
82692013-03-08 Marek Polacek <polacek@redhat.com>
8270 Jakub Jelinek <jakub@redhat.com>
8271
8272 PR tree-optimization/56478
8273 * predict.c (is_comparison_with_loop_invariant_p): Change the
8274 type of loop_step to tree.
8275 (predict_loops): Adjust.
8276 (predict_iv_comparison): Perform the computations on double_ints.
8277
64366d35
RB
82782013-03-08 Richard Biener <rguenther@suse.de>
8279
8280 PR tree-optimization/56570
8281 * tree-cfg.c (verify_expr_location_1): Verify locations for
8282 DECL_DEBUG_EXPR.
8283 * tree-sra.c (create_access_replacement): Strip locations
8284 from DECL_DEBUG_EXPRs.
8285
a9d5a059
RB
82862013-03-08 Richard Biener <rguenther@suse.de>
8287
8288 * tree-inline.c (expand_call_inline): Do not associate
8289 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
8290 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
8291
b7aa4e9a
RB
82922013-03-08 Richard Biener <rguenther@suse.de>
8293
8294 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
8295 or block changes with -Og. Fix for location / block encoding
8296 changes and PHI arguments with locations.
8297
c4c2f9fa
SB
82982013-03-07 Steven Bosscher <steven@gcc.gnu.org>
8299
8300 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
8301 for all counters.
8302 (struct output_info): Likewise.
8303 (register_overhead): Remove bad gcc_assert.
8304 (bitmap_find_bit): If there is only a single bitmap element, do not
8305 count a miss as a search.
8306 (print_statistics): Update for counter type changes.
8307 (dump_bitmap_statistics): Likewise. Print headers such that they
8308 are properly lined up with the printed counters.
8309
5bf6606a
JJ
83102013-03-07 Jakub Jelinek <jakub@redhat.com>
8311
8312 PR tree-optimization/56559
8313 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
8314 check that it has only a single use.
8315
2c653d46
RB
83162013-03-07 Richard Biener <rguenther@suse.de>
8317
8318 * doc/invoke.texi (fwhole-program): Discourage use in combination
8319 with -flto.
8320
a72d8780
JJ
83212013-03-06 Jakub Jelinek <jakub@redhat.com>
8322
01a454df
JJ
8323 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
8324
c1781047
JJ
8325 PR tree-optimization/56539
8326 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
8327 instead of GSI_CONTINUE_LINKING as last argument to
8328 force_gimple_operand_gsi. Adjust function comment.
8329
9772c47a
JJ
8330 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
8331 aarch64-cores.def.
8332
a72d8780
JJ
8333 PR middle-end/56548
8334 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
8335 promoted mode, convert the result back to the original mode.
8336
fa5556de
RB
83372013-03-06 Richard Biener <rguenther@suse.de>
8338
8339 PR middle-end/56294
8340 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
8341 (insert_updated_phi_nodes_compare_uids): New function.
8342 (update_ssa): Sort symbols_to_rename after UID before
8343 traversing it to insert PHI nodes.
8344
010403d1
RB
83452013-03-06 Richard Biener <rguenther@suse.de>
8346
8347 PR middle-end/50494
8348 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
8349 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
8350
8351 Revert
8352 2013-02-13 Richard Biener <rguenther@suse.de>
8353
8354 PR lto/50494
8355 * varasm.c (output_constant_def_1): Get the decl representing
8356 the constant as argument.
8357 (output_constant_def): Wrap output_constant_def_1.
8358 (make_decl_rtl): Use output_constant_def_1 with the decl
8359 representing the constant.
8360 (build_constant_desc): Optionally re-use a decl already
8361 representing the constant.
8362 (tree_output_constant_def): Adjust.
8363
3c27ce4c
JY
83642013-03-06 Joey Ye <joey.ye@arm.com>
8365
8366 PR lto/50293
8367 * gcc.c (convert_white_space): New function.
8368 (main): Handles white space in function name.
8369
8f6d1c86
OE
83702013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
8371
8372 PR target/56529
8373 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
8374 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
8375 to SH_DIV_CALL_TABLE for TARGET_SH2.
8376 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
8377 list.
8378 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
8379 call-table options.
8380
798a209f
SA
83812013-03-05 Sterling Augustine <saugustine@google.com>
8382 Cary Coutant <ccoutant@google.com>
8383
8384 PR debug/55364
8385 * dwarf2out.c (resolve_addr): Don't call
8386 remove_loc_list_addr_table_entries a second time for the same
8387 expression.
8388
6cfa417f 83892013-03-05 Jakub Jelinek <jakub@redhat.com>
ee61ea38 8390
6cfa417f
JJ
8391 PR debug/56510
8392 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
8393 (avoid_complex_debug_insns): New function.
8394 (expand_debug_locations): Call it.
8395
8396 PR rtl-optimization/56484
8397 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
8398 lifetimes of hard registers on small register class machines.
8399
84002013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
8401
8402 * config/microblaze/microblaze-protos.h: Rename
ee61ea38 8403 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
6cfa417f 8404 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
ee61ea38
DH
8405 fast_interrupt.
8406 (microblaze_fast_interrupt_function_p): New function.
8407 (microblaze_is_interrupt_handler): Rename to
8408 microblaze_is_interrupt_variant and add fast_interrupt check.
8409 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
8410 (save_restore_insns): Likewise.
8411 (compute_frame_size): Likewise.
8412 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
8413 (microblaze_globalize_label): Likewise.
6cfa417f
JJ
8414 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
8415 * config/microblaze/microblaze.md: Use wrapper
ee61ea38
DH
8416 microblaze_is_interrupt_variant.
8417
731aefac
KT
84182013-03-05 Kai Tietz <ktietz@redhat.com>
8419
8420 * sdbout.c (sdbout_one_type): Switch to current function's section
8421 supporting cold/hot.
8422
a72d8780 84232013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
e34fd5a7
DH
8424
8425 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
8426 -mxl-reorder.
8427
334e71e8
JJ
84282013-03-05 Jakub Jelinek <jakub@redhat.com>
8429
0b50e654
JJ
8430 PR middle-end/56461
8431 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
8432 if VALGRIND_GET_VBITS is defined, temporarily make object
8433 memory all defined, and restore previous valgrind addressability
8434 and definability afterwards. Free this_object at the end.
8435
4ccf8f43
JJ
8436 PR middle-end/56461
8437 * lra.c (lra): Call lra_clear_live_ranges if live_p,
8438 right before calling lra_create_live_ranges, also call it
8439 when clearing live_p. Only call lra_clear_live_ranges
8440 at the end if live_p.
8441
334e71e8
JJ
8442 PR middle-end/56461
8443 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
8444
9ca966ca
RB
84452013-03-05 Richard Biener <rguenther@suse.de>
8446
8447 PR tree-optimization/56521
8448 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
8449 value-id.
8450
d273b176
SB
84512013-03-05 Steven Bosscher <steven@gcc.gnu.org>
8452
8453 PR c++/55135
8454 * except.h (remove_unreachable_eh_regions): New prototype.
8455 * except.c (remove_eh_handler_splicer): New function, split out
8456 of remove_eh_handler.
8457 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
8458 warning about running it on many EH regions one at a time.
8459 (remove_unreachable_eh_regions_worker): New function, walk the
8460 EH tree in depth-first order and remove non-marked regions.
8461 (remove_unreachable_eh_regions): New function.
8462 * tree-eh.c (mark_reachable_handlers): New function, split out
8463 from remove_unreachable_handlers.
8464 (remove_unreachable_handlers): Use mark_reachable_handlers and
8465 remove_unreachable_eh_regions.
8466 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
8467 and remove_unreachable_eh_regions.
8468
5e7f1aef
RB
84692013-03-05 Richard Biener <rguenther@suse.de>
8470
8471 PR middle-end/56525
8472 * loop-init.c (fix_loop_structure): Remove loops in two stages,
8473 not freeing them until the end.
8474
f276b762
AK
84752013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8476
8477 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
8478
12a43ab8
RB
84792013-03-05 Richard Biener <rguenther@suse.de>
8480
8481 PR tree-optimization/56270
8482 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
8483 of loads after scheduling an SLP instance.
8484
93675444
JJ
84852013-03-05 Jakub Jelinek <jakub@redhat.com>
8486
db4138e3
JJ
8487 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
8488 tic6x.exp.
8489 (check_gcc_parallelize): Run guality.exp as a separate job from
8490 vect.exp with unsorted.exp and $(dg_target_exps) separately from
8491 struct-layout-1.exp with stackalign.exp.
8492
dd3d1ec0
JJ
8493 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
8494
b8d381a3
JJ
8495 PR middle-end/56461
8496 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
8497 load_index sbitmap even if some bit in it isn't set.
8498
b4f9786b
JJ
8499 PR middle-end/56461
8500 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
8501 (discover_iteration_bound_by_body_walk): Change queues to
8502 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
8503 spelling in comment. Call safe_push on queues[bound_index] directly.
8504 Release queues[queue_index] in every iteration unconditionally.
8505 Release bounds vector.
8506
93675444
JJ
8507 PR middle-end/56461
8508 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
8509 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
8510 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
8511 inner_phis vector.
8512
3e492e9c
RB
85132013-03-05 Richard Biener <rguenther@suse.de>
8514
8515 PR lto/56515
8516 * tree-inline.c (remap_blocks_to_null): New function.
8517 (expand_call_inline): When expanding a call stmt without
8518 an associated block inline remap all callee blocks to NULL.
8519
a5d1569a
JJ
85202013-03-05 Jakub Jelinek <jakub@redhat.com>
8521
86efb5cd
JJ
8522 PR rtl-optimization/56494
8523 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
8524 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
8525 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
8526
85f5dbea
JJ
8527 PR middle-end/56461
8528 * sel-sched-ir.c (free_sched_pools): Release
8529 succs_info_pool.stack[succs_info_pool.max_top] vectors too
8530 if succs_info_pool.max_top isn't -1.
8531
a5d1569a
JJ
8532 PR bootstrap/56509
8533 * opts.c (opts_obstack, opts_concat): Moved to...
8534 * opts-common.c (opts_obstack, opts_concat): ... here.
8535
4432aa6c
JJ
85362013-03-04 Jakub Jelinek <jakub@redhat.com>
8537
8538 PR middle-end/56461
8539 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
8540
f3a1fb91
MJ
85412013-03-04 Martin Jambor <mjambor@suse.cz>
8542
8543 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
8544 all appropriate places.
8545
22110e6c
EB
85462013-01-04 Eric Botcazou <ebotcazou@adacore.com>
8547
8548 PR tree-optimization/56424
8549 * ipa-split.c (split_function): Do not set the RSO flag if result is
8550 not by reference and its type is a register type.
8551
a72d8780 85522013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
91c4e421 8553
88b97037 8554 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
91c4e421 8555 (microblaze_legitimate_pic_operand): Likewise
88b97037 8556 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
91c4e421
DH
8557 new function microblaze_legitimate_pic_operand
8558 * config/microblaze/microblaze-protos.h
8559 (microblaze_legitimate_pic_operand): Declare.
8560
a72d8780 85612013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
82f8f53a 8562
a72d8780 8563 * config/microblaze/predicates.md (call_insn_simple_operand):
82f8f53a 8564 New predicate for supported rtx code types.
a72d8780 8565 * config/microblaze/microblaze.md (call_internal1): Use
82f8f53a
EI
8566 call_insn_simple_operand predicate.
8567
541d9ac8
JJ
85682013-03-04 Jakub Jelinek <jakub@redhat.com>
8569
5eb010bc
JJ
8570 PR middle-end/56461
8571 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
8572 partitions.ordered_remove.
8573
30862efc
JJ
8574 PR middle-end/56461
8575 * tree-vect-stmts.c (vectorizable_conversion): Don't call
8576 vec_oprnds0.create (1) for modifier == NONE.
8577
8930f723
JJ
8578 PR middle-end/56461
8579 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
8580 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
8581 vec_oprnds1 right before pushing anything to it for
8582 scalar_shift_arg.
8583
541d9ac8
JJ
8584 PR middle-end/56461
8585 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
8586 set nbbs to 0 instead of having separate code path.
8587 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
8588 instead of false as last argument if returning NULL.
8589
7aa7f2e3
SL
85902013-03-03 Sandra Loosemore <sandra@codesourcery.com>
8591
8592 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
8593 the attribute is now called "target" instead of "option".
8594 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
8595 * doc/tm.texi.in (Target Attributes): Likewise document the correct
8596 attribute/pragma name for TARGET_OPTION_VALID_P and
8597 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
8598 * doc/tm.texi: Regenerated.
8599
8930f723 86002013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
cb8a1637 8601
8930f723 8602 * config/microblaze/microblaze.c:
cb8a1637 8603 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
8930f723
JJ
8604 * config/microblaze/microblaze.h: Add -mxl-reorder to
8605 DRIVER_SELF_SPECS.
8606 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
8607 instructions emitted if TARGET_REORDER.
88b97037
UB
8608 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
8609 or 0 for -m/-mno case, but initialises as 2 to detect default use case
8930f723 8610 separately.
cb8a1637 8611
4dc1d68c
XDL
86122013-03-01 Xinliang David Li <davidxl@google.com>
8613
8614 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
8615 walk length.
8616
689eaba3
JJ
86172013-03-01 Jakub Jelinek <jakub@redhat.com>
8618
9d676bf6
JJ
8619 PR middle-end/56461
8620 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
8621 vector even when returning true. Fix up function comment formatting.
8622
caff7edf
JJ
8623 PR middle-end/56461
8624 * ira-build.c (ira_loop_nodes_count): New variable.
8625 (create_loop_tree_nodes): Initialize it.
8626 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
8627
b6b9227d
JJ
8628 PR middle-end/56461
8629 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
8630 method on dr_chain and result_chain.
8631 * tree-vect-stmts.c (vectorizable_store): Only call
8632 result_chain.create if j == 0.
8633
689eaba3
JJ
8634 PR middle-end/56461
8635 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
8636 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
8637 before overwriting it.
8638
40bf31ed
TB
86392013-03-01 Tobias Burnus <burnus@net-b.de>
8640
8641 * doc/extended.texi (C Extensions): Change order in @menu
8642 to match @node.
8643 (Other MIPS Built-in Functions): Move last MIPS entry before
8644 "picoChip Built-in Functions".
8645 (SH Built-in Functions): Move after RX Built-in Functions.
8646 * doc/gcc.texi (Introduction): Change order in @menu
8647 to match @node.
8648 * doc/md.texi (Constraints): Ditto.
8649 * gty.texi (Type Information): Ditto.
8650 (User-provided marking routines for template types): Make
8651 subsection.
8652 * doc/invoke.texi (AArch64 Options): Move before
8653 "Adapteva Epiphany Options".
8654
e664c61c
KS
86552013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
8656 Jakub Jelinek <jakub@redhat.com>
8657
8658 PR sanitizer/56454
8659 * asan.c (gate_asan): Lookup no_sanitize_address instead of
8660 no_address_safety_analysis attribute.
8661 * doc/extend.texi (no_address_safety_attribute): Rename to
8662 no_sanitize_address attribute, mention no_address_safety_analysis
8663 attribute as deprecated alias.
8664
37b5ec8f
JJ
86652013-02-28 Jakub Jelinek <jakub@redhat.com>
8666
8667 PR middle-end/56461
8668 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
8669 type to vec<vec<tree> > *.
8670 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
8671 to be vec<tree> instead of vec<tree> *, set vec_defs
8672 to vNULL and call vec_defs.create (number_of_vects), adjust other
8673 uses of vec_defs.
8674 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
8675 vectorizable_condition): Adjust vect_get_slp_defs callers.
8676
ba96cdfb
JG
86772013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8678
8679 * config/aarch64/aarch64.c
8680 (aarch64_float_const_representable): Remove unused variable.
8681
6f549691
JG
86822013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8683
8684 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
8685
af55e82d
JG
86862013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8687
8688 * config/aarch64/aarch64-builtins.c
8689 (aarch64_init_simd_builtins): Make static.
8690
1df3f464
JG
86912013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
8692
8693 * config/aarch64/aarch64.c
8694 (aarch64_simd_make_constant): Make static.
8695
f8f42513
MJ
86962013-02-28 Martin Jambor <mjambor@suse.cz>
8697
8698 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
8699 with no initialization to the RHS of debug statements.
8700
b48b3fc4
MJ
87012013-02-28 Martin Jambor <mjambor@suse.cz>
8702
8703 PR tree-optimization/56294
8704 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
8705 Adjust dumping.
8706 (get_access_replacement): Do not call create_access_replacement.
8707 Assert a replacement exists.
8708 (get_repl_default_def_ssa_name): Create the replacement declaration
8709 itself.
8710
c3ae224c
RR
87112013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8712
8713 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
8714 final_end_function.
8715
45fa0eef
MP
87162013-02-28 Marek Polacek <polacek@redhat.com>
8717
8718 PR rtl-optimization/56466
8719 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
8720 if we're changing a loop.
8721 (peel_loops_completely): Likewise.
8722
502c067d
PC
87232013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
8724
8725 PR c++/55813
8726 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
8727
ff24afc8
GJL
87282013-02-28 Georg-Johann Lay <avr@gjlay.de>
8729
8730 PR target/56445
8731 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
8732 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
8733 INTX_FTYPE_FX, FX_FTYPE_INTX.
8734 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
8735
c7b1fc1b
GJL
87362013-02-28 Georg-Johann Lay <avr@gjlay.de>
8737
8738 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
8739 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
8740 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
8741 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
8742 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
8743 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
8744 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
8745 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
8746 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
8747 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
8748 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
8749 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
8750 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
8751 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
8752 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
8753 (avrxmega6): Increase max flash segments from 5 to 6.
8754 * config/avr/t-multilib: Regenerate.
8755 * config/avr/avr-tables.opt: Regenerate.
8756 * doc/avr-mmcu.texi: Regenerate.
8757
4a0e3cfe
GJL
87582013-02-28 Georg-Johann Lay <avr@gjlay.de>
8759
8760 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
8761 (avr_device_to_arch): Rename to avr_device_to_ld.
8762 (avr_device_to_as): New prototype.
8763 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
8764 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
8765 * config/avr/driver-avr.c (avr_device_to_as): New.
8766 (avr_device_to_arch): Rename to avr_device_to_ld.
8767
97785e52
JJ
87682013-02-27 Jakub Jelinek <jakub@redhat.com>
8769
3f292312
JJ
8770 PR middle-end/56461
8771 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
8772 method on dr_chain and result_chain.
8773
a344216b
JJ
8774 PR middle-end/56461
8775 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
8776 pointer_set_destroy on not_executed_last_iteration.
8777
f121ad02 8778 PR middle-end/56461
88b97037 8779 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
f121ad02 8780
307f83a3
JJ
8781 PR middle-end/56461
8782 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
8783 FOR_EACH_DEFINED_FUNCTION when freeing state.
8784
e19624ee
JJ
8785 PR middle-end/56461
8786 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
8787 pool_free.
8788 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
8789 overwriting it.
8790
90e709fd
JJ
8791 PR middle-end/56461
8792 * ipa-cp.c (decide_whether_version_node): Call vec_free on
8793 known_aggs[i].items and release known_aggs vector.
8794
97785e52
JJ
8795 PR middle-end/56461
8796 * ipa-reference.c (propagate): Free node_info even for alias nodes.
8797
87982013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
bbb3a9e2 8799
97785e52
JJ
8800 * config/microblaze/microblaze.c (microblaze_emit_compare):
8801 Use xor for EQ/NE comparisions.
8802 * config/microblaze/microblaze.md (cstoresf4): Add constraints
8803 (cbranchsf4): Adjust operator to comparison_operator.
bbb3a9e2 8804
6fa5e0ed
JJ
88052013-02-27 Jakub Jelinek <jakub@redhat.com>
8806
8807 PR middle-end/56461
8808 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
8809 vector.
8810 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
8811 vec_safe_push, always update *slot.
8812 (redirect_edge_var_map_clear): Use vec_free.
8813 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
8814 (free_var_map_entry): Use vec_free.
8815 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
8816 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
8817
436a956a
AB
88182013-02-27 Andrey Belevantsev <abel@ispras.ru>
8819
8820 PR middle-end/45472
436a956a
AB
8821 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
8822 when the may_trap_p bit of the exprs being merged differs.
436a956a
AB
8823 Reorder tests for speculativeness in the logical and operator.
8824
f5c2caca
JJ
88252013-02-27 Jakub Jelinek <jakub@redhat.com>
8826
0fcb564b
JJ
8827 * incpath.c (add_standard_paths): Use reconcat instead of concat
8828 where appropriate and avoid leaking memory.
8829
dc357798
JJ
8830 * opts.h: Include obstack.h.
8831 (opts_concat): New prototype.
8832 (opts_obstack): New declaration.
8833 * opts.c (opts_concat): New function.
8834 (opts_obstack): New variable.
8835 (init_options_struct): Call gcc_init_obstack on opts_obstack.
8836 (finish_options): Use opts_concat instead of concat
8837 and XOBNEWVEC instead of XNEWVEC.
8838 * opts-common.c (generate_canonical_option, decode_cmdline_option,
8839 generate_option): Likewise.
8840 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
8841 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
8842
f5c2caca
JJ
8843 PR target/56455
8844 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
8845 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
8846
d0163673
JJ
88472013-02-26 Jakub Jelinek <jakub@redhat.com>
8848
8849 PR middle-end/56461
8850 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
8851
b5ad2b8e
JR
88522013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8853
8854 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
8855 (arm_block_move_unaligned_straight): Likewise.
8856 (arm_adjust_block_mem): Likewise.
8857
9b639e2c
JR
88582013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
8859
8860 PR target/48901
8861 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
8862 temp, cond and label.
8863 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
8864
e13a0ccb
JR
8865 PR target/52500
8866 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
8867 * config/c6x/c6x.h (dbx_register_map): Update declaration.
8868
fbe4f171
JR
8869 PR target/52501
8870 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
8871 of prologue/epilogue functions.
8872
ae006543
JR
8873 PR target/52550
8874 * config/tilegx/tilegx.c (tilegx_expand_prologue):
8875 Remove unused variable cfa_offset.
8876 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
8877
c81369fa
JR
8878 PR target/54639
8879 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
8880 type promotion to unsigned.
8881
f8a8fea7
JR
8882 PR target/54640
8883 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
8884 for HOST_WIDE_INT of 32 bit / same size as int.
8885 (arm_block_move_unaligned_straight): Likewise.
8886 (arm_adjust_block_mem): Likewise.
8887
f8be5169
JR
8888 PR target/54662
8889 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
8890 ALL_CFLAGS.
8891
f1ad3354
MP
88922013-02-26 Marek Polacek <polacek@redhat.com>
8893
8894 PR tree-optimization/56426
88b97037 8895 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
f1ad3354 8896
a6af0f42
RB
88972013-02-26 Richard Biener <rguenther@suse.de>
8898
8899 PR target/56444
8900 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
8901 unused variable loops.
8902
aca43c6c
JJ
89032013-02-26 Jakub Jelinek <jakub@redhat.com>
8904
cecbe5d9
JJ
8905 PR tree-optimization/56448
8906 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
8907 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
8908 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
8909 later operands of the references, or even first operand for
8910 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
8911
aca43c6c
JJ
8912 PR tree-optimization/56443
8913 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
8914 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
8915 to type_for_mode langhook.
8916
53e2e141
MT
89172013-02-25 Matt Turner <mattst88@gmail.com>
8918
8919 * doc/invoke.texi: Document r4700.
8920
259ee451
RB
89212013-02-25 Richard Biener <rguenther@suse.de>
8922
8923 PR tree-optimization/56175
8924 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
8925 split out from ...
8926 (simplify_bitwise_binary): ... here. Also guard the conversion
8927 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
8928
6d65e8f1
CM
89292013-02-25 Catherine Moore <clm@codesourcery.com>
8930
8931 Revert:
8932 2013-02-24 Catherine Moore <clm@codesourcery.com>
8933 Maciej W. Rozycki <macro@codesourcery.com>
8934 Tom de Vries <tom@codesourcery.com>
a72d8780 8935 Nathan Sidwell <nathan@codesourcery.com>
6d65e8f1
CM
8936 Iain Sandoe <iain@codesourcery.com>
8937 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 8938 Chao-ying Fu <fu@mips.com>
88b97037 8939
6d65e8f1 8940 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 8941 Document new function attributes.
6d65e8f1
CM
8942 * doc/invoke.texi (minterlink-compressed, mmicromips,
8943 m14k, m14ke, m14kec): Document new options.
8944 (minterlink-mips16): Update documentation.
8945 * doc/md.texi (ZC, ZD): Document new constraints.
8946 * configure.ac (gcc_cv_as_micromips): Check if linker
8947 supports the .set micromips directive.
8948 * configure: Regenerate.
8949 * config.in: Regenerate.
8950 * config/mips/mips-tables.opt: Regenerate.
8951 * config/mips/micromips.md: New file.
8952 * constraints.md (ZC, AD): New constraints.
8953 * config/mips/predicates.md (movep_src_register): New predicate.
8954 (movep_src_operand): New predicate.
8955 (non_volatile_mem_operand): New predicate.
8956 * config/mips/mips.md (multimem): New type.
8957 (length): Differentiate between 17-bit and 18-bit branch offsets.
8958 (MOVEP1, MOVEP2): New mode iterator.
8959 (mov_<load>l): Use ZC constraint.
8960 (mov_<load>r): Likewise.
8961 (mov_<store>l): Likewise.
8962 (mov_<store>r): Likewise.
8963 (*branch_equality<mode>_inverted): Add microMIPS support.
8964 (*branch_equality<mode>): Likewise.
8965 (*jump_absolute): Likewise.
8966 (indirect_jump_<mode>): Likewise.
8967 (tablejump_<mode>): Likewise.
8968 (<optab>_internal): Likewise.
8969 (sibcall_internal): Likewise.
8970 (sibcall_value_internal): Likewise.
8971 (prefetch): Use constraint ZD.
8972 * config/mips/mips.opt (minterlink-compressed): New option.
8973 (minterlink-mips16): Now an alias for minterlink-compressed.
8974 (mmicromips): New option.
8975 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
8976 (compare_and_swap_12): Likewise.
8977 (sync_add<mode>): Likewise.
8978 (sync_<optab>_12): Likewise.
8979 (sync_old_<optab>_12): Likewise.
8980 (sync_new_<optab>_12): Likewise.
8981 (sync_nand_12): Likewise.
8982 (sync_old_nand_12): Likewise.
8983 (sync_new_nand_12): Likewise.
8984 (sync_sub<mode>): Likewise.
8985 (sync_old_add<mode>): Likewise.
8986 (sync_old_sub<mode>): Likewise.
8987 (sync_new_add<mode>): Likewise.
8988 (sync_new_sub<mode>): Likewise.
8989 (sync_<optab><mode>): Likewise.
8990 (sync_old_<optab><mode>): Likewise.
8991 (sync_new_<optab><mode>): Likewise.
8992 (sync_nand<mode>): Likewise.
8993 (sync_old_nand<mode>): Likewise.
8994 (sync_new_nand<mode>): Likewise.
8995 (sync_lock_test_and_set<mode>): Likewise.
8996 (test_and_set_12): Likewise.
8997 (atomic_compare_and_swap<mode>): Likewise.
8998 (atomic_exchange<mode>_llsc): Likewise.
8999 (atomic_fetch_add<mode>_llsc): Likewise.
9000 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9001 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9002 (umips_save_restore_pattern_p): Likewise.
9003 (umips_load_store_pair_p): Likewise.
9004 (umips_output_load_store_pair): Likewise.
9005 (umips_movep_target_p): Likewise.
9006 (umips_12bit_offset_address_p): Likewise.
9007 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9008 (mips_base_mips16): Rename this...
9009 (mips_base_compression_flags): ...to this. Update all uses.
9010 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9011 (mips_mips16_decl_p): Delete.
9012 (mips_nomips16_decl_p): Delete.
9013 (mips_get_compress_on_flags): New function.
9014 (mips_get_compress_off_flags): New function.
9015 (mips_get_compress_mode): New function.
9016 (mips_get_compress_on_name): New function.
9017 (mips_get_compress_off_name): New function.
9018 (mips_insert_attributes): Support multiple compression types.
9019 (mips_merge_decl_attributes): Likewise.
9020 (umips_12bit_offset_address_p): New function.
9021 (mips_start_function_definition): Emit .set micromips directive.
9022 (mips_call_may_need_jalx_p): New function.
9023 (mips_function_ok_for_sibcall): Add microMIPS support.
9024 (mips_print_operand_punctuation): Support short delay slots and
9025 compact jumps.
9026 (umips_swm_mask, umips_swm_encoding): New.
9027 (umips_build_save_restore): New function.
9028 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9029 (was_mips16_p): Remove.
9030 (old_compression_mode): New.
9031 (mips_set_compression_mode): New function.
9032 (mips_set_current_function): Add microMIPS support.
9033 (mips_option_override): Likewise.
9034 (umips_save_restore_pattern_p): New function.
9035 (umips_output_save_restore): New function.
9036 (umips_load_store_pair_p_1): New function.
9037 (umips_load_store_pair_p): New function.
9038 (umips_output_load_store_pair_1): New function.
9039 (umips_output_load_store_pair): New function.
9040 (umips_movep_target_p) New function.
9041 (mips_prepare_pch_save): Add microMIPS support.
9042 * config/mips/mips.h (TARGET_COMPRESSION): New.
9043 (TARGET_CPU_CPP_BUILTINS): Update macro
9044 to use new compression flags and to support microMIPS.
9045 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9046 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9047 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9048 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9049 (ASM_SPEC): Support mmicromips and mno-micromips.
9050 (M16STORE_REG_P): New macro.
9051 (MIPS_CALL): Support TARGET_MICROMIPS.
9052 (MICROMIPS_J): New macro.
9053 (mips_base_mips16): Rename this...
9054 (mips_base_compression_flags): ...to this.
9055 (UMIPS_12BIT_OFFSET_P): New macro.
9056 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9057 (MULTILIB_DIRNAMES): Likewise.
9058
5e5df392
TV
90592013-02-25 Tom de Vries <tom@codesourcery.com>
9060
9061 PR rtl-optimization/56131
9062 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
9063 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
9064 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
9065
3fdb53c1
TB
90662013-02-25 Tobias Burnus <burnus@net-b.de>
9067
9068 * doc/invoke.texi (-fsanitize=): Move from optimization
9069 to debugging options.
9070
ed358aea
AB
90712013-02-25 Andrey Belevantsev <abel@ispras.ru>
9072
9073 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
9074
f45e9053
AB
90752013-02-25 Andrey Belevantsev <abel@ispras.ru>
9076 Alexander Monakov <amonakov@ispras.ru>
9077
9078 PR middle-end/56077
9079 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
9080 flush pending lists also on non-jumps. Adjust comment.
9081
6941b508
CM
90822013-02-24 Catherine Moore <clm@codesourcery.com>
9083 Maciej W. Rozycki <macro@codesourcery.com>
9084 Tom de Vries <tom@codesourcery.com>
a72d8780 9085 Nathan Sidwell <nathan@codesourcery.com>
6941b508
CM
9086 Iain Sandoe <iain@codesourcery.com>
9087 Nathan Froyd <froydnj@codesourcery.com>
a72d8780 9088 Chao-ying Fu <fu@mips.com>
6941b508
CM
9089
9090 * doc/extend.texi: (micromips, nomicromips, nocompression):
88b97037 9091 Document new function attributes.
6941b508
CM
9092 * doc/invoke.texi (minterlink-compressed, mmicromips,
9093 m14k, m14ke, m14kec): Document new options.
9094 (minterlink-mips16): Update documentation.
9095 * doc/md.texi (ZC, ZD): Document new constraints.
9096 * configure.ac (gcc_cv_as_micromips): Check if linker
9097 supports the .set micromips directive.
9098 * configure: Regenerate.
9099 * config.in: Regenerate.
9100 * config/mips/mips-tables.opt: Regenerate.
9101 * config/mips/micromips.md: New file.
9102 * constraints.md (ZC, AD): New constraints.
9103 * config/mips/predicates.md (movep_src_register): New predicate.
9104 (movep_src_operand): New predicate.
9105 (non_volatile_mem_operand): New predicate.
9106 * config/mips/mips.md (multimem): New type.
9107 (length): Differentiate between 17-bit and 18-bit branch offsets.
9108 (MOVEP1, MOVEP2): New mode iterator.
3fdb53c1 9109 (mov_<load>l): Use ZC constraint.
6941b508
CM
9110 (mov_<load>r): Likewise.
9111 (mov_<store>l): Likewise.
9112 (mov_<store>r): Likewise.
9113 (*branch_equality<mode>_inverted): Add microMIPS support.
9114 (*branch_equality<mode>): Likewise.
9115 (*jump_absolute): Likewise.
9116 (indirect_jump_<mode>): Likewise.
9117 (tablejump_<mode>): Likewise.
9118 (<optab>_internal): Likewise.
9119 (sibcall_internal): Likewise.
9120 (sibcall_value_internal): Likewise.
9121 (prefetch): Use constraint ZD.
9122 * config/mips/mips.opt (minterlink-compressed): New option.
9123 (minterlink-mips16): Now an alias for minterlink-compressed.
9124 (mmicromips): New option.
9125 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9126 (compare_and_swap_12): Likewise.
9127 (sync_add<mode>): Likewise.
9128 (sync_<optab>_12): Likewise.
9129 (sync_old_<optab>_12): Likewise.
9130 (sync_new_<optab>_12): Likewise.
9131 (sync_nand_12): Likewise.
9132 (sync_old_nand_12): Likewise.
9133 (sync_new_nand_12): Likewise.
9134 (sync_sub<mode>): Likewise.
9135 (sync_old_add<mode>): Likewise.
9136 (sync_old_sub<mode>): Likewise.
9137 (sync_new_add<mode>): Likewise.
9138 (sync_new_sub<mode>): Likewise.
9139 (sync_<optab><mode>): Likewise.
9140 (sync_old_<optab><mode>): Likewise.
9141 (sync_new_<optab><mode>): Likewise.
9142 (sync_nand<mode>): Likewise.
9143 (sync_old_nand<mode>): Likewise.
9144 (sync_new_nand<mode>): Likewise.
9145 (sync_lock_test_and_set<mode>): Likewise.
9146 (test_and_set_12): Likewise.
9147 (atomic_compare_and_swap<mode>): Likewise.
9148 (atomic_exchange<mode>_llsc): Likewise.
9149 (atomic_fetch_add<mode>_llsc): Likewise.
9150 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9151 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9152 (umips_save_restore_pattern_p): Likewise.
9153 (umips_load_store_pair_p): Likewise.
9154 (umips_output_load_store_pair): Likewise.
9155 (umips_movep_target_p): Likewise.
9156 (umips_12bit_offset_address_p): Likewise.
9157 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9158 (mips_base_mips16): Rename this...
9159 (mips_base_compression_flags): ...to this. Update all uses.
9160 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9161 (mips_mips16_decl_p): Delete.
9162 (mips_nomips16_decl_p): Delete.
3fdb53c1 9163 (mips_get_compress_on_flags): New function.
6941b508
CM
9164 (mips_get_compress_off_flags): New function.
9165 (mips_get_compress_mode): New function.
9166 (mips_get_compress_on_name): New function.
9167 (mips_get_compress_off_name): New function.
9168 (mips_insert_attributes): Support multiple compression types.
9169 (mips_merge_decl_attributes): Likewise.
9170 (umips_12bit_offset_address_p): New function.
9171 (mips_start_function_definition): Emit .set micromips directive.
9172 (mips_call_may_need_jalx_p): New function.
9173 (mips_function_ok_for_sibcall): Add microMIPS support.
9174 (mips_print_operand_punctuation): Support short delay slots and
9175 compact jumps.
9176 (umips_swm_mask, umips_swm_encoding): New.
9177 (umips_build_save_restore): New function.
9178 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9179 (was_mips16_p): Remove.
9180 (old_compression_mode): New.
9181 (mips_set_compression_mode): New function.
9182 (mips_set_current_function): Add microMIPS support.
9183 (mips_option_override): Likewise.
9184 (umips_save_restore_pattern_p): New function.
9185 (umips_output_save_restore): New function.
9186 (umips_load_store_pair_p_1): New function.
9187 (umips_load_store_pair_p): New function.
9188 (umips_output_load_store_pair_1): New function.
9189 (umips_output_load_store_pair): New function.
9190 (umips_movep_target_p) New function.
9191 (mips_prepare_pch_save): Add microMIPS support.
9192 * config/mips/mips.h (TARGET_COMPRESSION): New.
9193 (TARGET_CPU_CPP_BUILTINS): Update macro
9194 to use new compression flags and to support microMIPS.
9195 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9196 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9197 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9198 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
9199 (ASM_SPEC): Support mmicromips and mno-micromips.
9200 (M16STORE_REG_P): New macro.
9201 (MIPS_CALL): Support TARGET_MICROMIPS.
9202 (MICROMIPS_J): New macro.
9203 (mips_base_mips16): Rename this...
9204 (mips_base_compression_flags): ...to this.
9205 (UMIPS_12BIT_OFFSET_P): New macro.
9206 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
9207 (MULTILIB_DIRNAMES): Likewise.
9208
cdebbc6d
JJ
92092013-02-24 Jakub Jelinek <jakub@redhat.com>
9210
9211 PR target/52555
9212 * target-globals.c (save_target_globals): For init_reg_sets and
9213 target_reinit remporarily set this_fn_optabs to this_target_optabs.
9214
18c63565
JG
92152013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
9216
9217 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
9218 * config/aarch64/t-aarch64
9219 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
9220
2194f7a2
VM
92212013-02-22 Vladimir Makarov <vmakarov@redhat.com>
9222
9223 PR inline-asm/56148
9224 * lra-constraints.c (process_alt_operands): Reload operand
9225 conflicting with earlier clobber only if no more other conflicting
9226 operands.
9227
7d613735
JJ
92282013-02-22 Jakub Jelinek <jakub@redhat.com>
9229
9230 PR sanitizer/56393
9231 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
9232 if not linking a shared library.
9233
ac8d93a7
SL
92342013-02-22 Seth LaForge <sethml@google.com>
9235
9236 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
9237
e0237780
GY
92382013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
9239
3fdb53c1
TB
9240 * config/arm/arm.md (split for extendsidi): Update condition.
9241 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
9242 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
9243 (qhs_zextenddi_cstr): Likewise.
e0237780 9244
d7fde18c
JJ
92452013-02-21 Jakub Jelinek <jakub@redhat.com>
9246
be63b77d
JJ
9247 PR middle-end/56420
9248 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
9249 avoid signed wrapping.
9250 (expand_mult): Handle properly multiplication by
9251 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
9252 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
9253 in the compiler if coeff is HOST_WIDE_INT_MIN.
9254 (expand_divmod): Don't make ext_op1 static, change it's type to
9255 uhwi. Avoid undefined behavior in -INTVAL (op1).
9256
d7fde18c
JJ
9257 PR rtl-optimization/50339
9258 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
9259 field.
9260 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
9261 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
9262 into splitting_ashiftrt field.
9263 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
9264 ASHIFTRT.
9265 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
9266 choices.
9267
6aad4455
AH
92682013-02-20 Aldy Hernandez <aldyh@redhat.com>
9269
9270 PR middle-end/56108
9271 * trans-mem.c (execute_tm_mark): Do not expand transactions that
9272 are sure to go irrevocable.
9273
38fe784d
HPN
92742013-02-21 Hans-Peter Nilsson <hp@axis.com>
9275
9276 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
9277 scalars are valid operands.
9278
0fd44da3
MJ
92792013-02-21 Martin Jambor <mjambor@suse.cz>
9280
9281 PR tree-optimization/56310
9282 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
9283 only matching indices and non-negative final offsets.
9284 (intersect_aggregates_with_edge): Pass src_idx to
9285 agg_replacements_to_vector. Pass src_idx insstead of index to
9286 intersect_with_agg_replacements.
9287
7a92038b
MJ
92882013-02-21 Martin Jambor <mjambor@suse.cz>
9289
9290 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
9291 instead of hard-wired defaults.
9292
c0da9c37
MR
92932013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
9294
9295 * doc/invoke.texi (MIPS Options): Update documentation of the
9296 floating-point multiply-accumulate instruction restrictions.
9297
d247ea0c 92982013-02-21 Kostya Serebryany <kcc@google.com>
7df59255
KS
9299
9300 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
9301 asan_shadow_offset on x86_64 linux.
9302
22deefcb
RB
93032013-02-21 Richard Biener <rguenther@suse.de>
9304
9305 PR tree-optimization/56415
9306 Revert
9307 2013-02-11 Richard Biener <rguenther@suse.de>
9308
9309 PR tree-optimization/56273
9310 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9311 first VRP run.
9312
7bcc6e75
JJ
93132013-02-21 Jakub Jelinek <jakub@redhat.com>
9314
a0ad148f
JJ
9315 PR bootstrap/56258
9316 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
9317 instead of @itemx.
9318
7bcc6e75
JJ
9319 PR inline-asm/56405
9320 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
9321 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
9322
a0a7b611
JH
93232013-02-20 Jan Hubicka <jh@suse.cz>
9324
9325 PR tree-optimization/56265
88b97037
UB
9326 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
9327 when target is referenced for first time.
a0a7b611 9328
c0e50f72
RB
93292013-02-20 Richard Biener <rguenther@suse.de>
9330
9331 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
9332 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
9333 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
9334 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
9335 not return anything.
9336 (rename_ssa_copies): Do not remove unused locals.
9337 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
88b97037 9338 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
c0e50f72
RB
9339 * passes.c (execute_function_todo): Do not schedule unused locals
9340 removal if cleanup_tree_cfg did something.
9341 * tree-ssa-live.c (remove_unused_locals): Dump statistics
9342 about the number of removed locals.
9343
a52ca739
RB
93442013-02-20 Richard Biener <rguenther@suse.de>
9345
9346 PR tree-optimization/56398
88b97037 9347 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
a52ca739 9348
ec9c9d1b
MJ
93492013-02-20 Martin Jambor <mjambor@suse.cz>
9350
9351 PR tree-optimization/55334
9352 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
9353 restricted pointers to arrays.
9354
e91c8ed6 93552013-02-20 Richard Biener <rguenther@suse.de>
88b97037 9356 Jakub Jelinek <jakub@redhat.com>
e91c8ed6
RB
9357
9358 PR tree-optimization/56396
9359 * tree-ssa-ccp.c (n_const_val): New static variable.
9360 (get_value): Return NULL for SSA names we don't have a lattice
9361 entry for.
9362 (ccp_initialize): Initialize n_const_val.
9363 * tree-ssa-copy.c (n_copy_of): New static variable.
9364 (init_copy_prop): Initialize n_copy_of.
9365 (get_value): Return NULL_TREE for SSA names we don't have a
9366 lattice entry for.
9367
3d916479
MJ
93682013-02-20 Martin Jambor <mjambor@suse.cz>
9369
9370 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
9371
71a86758
RB
93722013-02-20 Richard Biener <rguenther@suse.de>
9373
9374 * genpreds.c (write_lookup_constraint): Do not compare first
9375 letter of the constraint again.
9376
79836a12
RB
93772013-02-20 Richard Biener <rguenther@suse.de>
9378
9379 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
9380 and ceil_log2.
9381 (get_use_iv_cost): Terminate hashtable walk when coming across
9382 an empty entry.
9383
bbe4fb2c
IZ
93842013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
9385
9386 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
9387 reassociation for avx2 targets.
9388
a72d8780 93892012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
79836a12 9390
c77f83d5
EI
9391 * config/microblaze/microblaze.c: microblaze_has_clz = 0
9392 Add version check for v8.10.a to enable microblaze_has_clz
88b97037 9393 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
c77f83d5
EI
9394 version and TARGET_PATTERN_COMPARE check
9395 * config/microblaze/microblaze.md: New clzsi2 instruction
3fdb53c1 9396
a72d8780 93972012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
959434e6 9398
a72d8780 9399 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
959434e6
EI
9400 function before branching.
9401
242387fa
AB
94022012-02-19 Andrey Belevantsev <abel@ispras.ru>
9403
9404 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
9405 DUMP_INSN_RTX_UID.
9406 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
9407
b4979ab9
AB
94082012-02-19 Andrey Belevantsev <abel@ispras.ru>
9409
9410 PR middle-end/55889
b4979ab9
AB
9411 * sel-sched.c: Include ira.h.
9412 (implicit_clobber_conflict_p): New function.
9413 (moveup_expr): Use it.
88b97037 9414 * Makefile.in (sel-sched.o): Depend on ira.h.
b4979ab9 9415
24d63016
RB
94162013-02-19 Richard Biener <rguenther@suse.de>
9417
9418 PR tree-optimization/56384
9419 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
9420 (vn_hash_type): Split out from ...
9421 (vn_hash_constant_with_type): ... here.
9422 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
9423 (vn_phi_eq): Compare types from vn_phi_s structure.
9424 (vn_phi_lookup): Populate vn_phi_s type.
9425 (vn_phi_insert): Likewise.
9426
a475fd3d
JJ
94272013-02-19 Jakub Jelinek <jakub@redhat.com>
9428
47cc28f5
JJ
9429 PR tree-optimization/56350
9430 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
9431 if haven't found reduction or nested cycle operand, rather than
9432 asserting we must find it.
9433
a475fd3d
JJ
9434 PR tree-optimization/56381
9435 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
9436 to fold_build3.
9437
94382013-02-18 Aldy Hernandez <aldyh@redhat.com>
135204dd
AH
9439 Jakub Jelinek <jakub@redhat.com>
9440
9441 PR target/52555
9442 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
9443 (swap_optab_enable): Same.
9444 (init_all_optabs): Use argument instead of global.
88b97037 9445 * tree.h (struct tree_optimization_option): New field target_optabs.
135204dd
AH
9446 * expr.h (init_all_optabs): Add argument to prototype.
9447 (TREE_OPTIMIZATION_OPTABS): New.
9448 (save_optabs_if_changed): Protoize.
9449 * optabs.h: Declare this_fn_optabs.
9450 * optabs.c (save_optabs_if_changed): New.
9451 Declare this_fn_optabs.
9452 (init_optabs): Add argument to init_all_optabs() call.
9453 * function.c (invoke_set_current_function_hook): Handle per
9454 function optabs.
9455 * function.h (struct function): New field optabs.
9456 * config/mips/mips.c (mips_set_mips16_mode): Handle when
9457 optimization_current_node has changed.
9458 * target-globals.h (save_target_globals_default_opts): Protoize.
9459 * target-globals.c (save_target_globals_default_opts): New.
9460
3f587ca3
JDA
94612013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9462
9463 PR target/56347
9464 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
9465 registers %fr12 and %fr12R as call used.
ceaca33e
JDA
9466
9467 PR target/56214
9468 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
88b97037
UB
9469 and HImode, require all displacements to be an integer multiple of
9470 their mode size.
ceaca33e
JDA
9471 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
9472 only allow QImode and HImode when reload is in progress and strict is
9473 true. Likewise for symbolic addresses. Use base14_operand to check
9474 displacements in REG+BASE addresses.
9475
fe0b4796
RB
94762013-02-18 Richard Biener <rguenther@suse.de>
9477
9478 PR tree-optimization/56366
9479 * tree-vect-loop.c (get_initial_def_for_induction): Properly
9480 handle sign-conversion of outer-loop initial induction value.
9481
6aaf596b
RB
94822013-02-18 Richard Biener <rguenther@suse.de>
9483
73db8ff1 9484 PR middle-end/56349
6aaf596b
RB
9485 * cfghooks.c (merge_blocks): If we merge a latch into another
9486 block adjust references to it.
9487 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
9488 (verify_loop_structure): Verify that a recorded latch is in fact
9489 a latch.
9490
5e97dfb6
RB
94912013-02-18 Richard Biener <rguenther@suse.de>
9492
9493 PR tree-optimization/56321
9494 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
9495 order SSA name release and virtual operand unlinking.
9496
825527e8
EI
94972013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9498
9499 * config/microblaze/microblaze.md (save_stack_block): Define.
9500 (restore_stack_block): Likewise.
9501
debd11d9
EI
95022013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9503
9504 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
9505 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
9506 * config/microblaze/microblaze.c (microblaze_option_override):
9507 Bail out early for PIC modes when target does not support PIC.
9508
8ec77be0
EI
95092013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9510
88b97037 9511 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
8ec77be0
EI
9512 Replace with a microblaze version.
9513 (microblaze_trampoline_init): Adapt for microblaze.
a752b80f 9514 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
8ec77be0
EI
9515 microblaze.
9516
b41288b3
JJ
95172013-02-16 Jakub Jelinek <jakub@redhat.com>
9518 Dodji Seketeli <dodji@redhat.com>
9519
9520 PR asan/56330
88b97037 9521 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
b41288b3
JJ
9522 (instrument_mem_region_access): Do not forget to always put
9523 instrumentation of the of 'base' and 'base + len' in a "if (len !=
9524 0) statement, even for cases where either 'base' or 'base + len'
9525 are not instrumented -- because they have been previously
9526 instrumented. Simplify the logic by putting all the statements
9527 instrument 'base + len' inside a sequence, and then insert that
9528 sequence right before the current insertion point. Then, to
9529 instrument 'base + len', just get an iterator on that statement.
9530 And do not forget to update the pointer to iterator the function
9531 received as argument.
9532
47918951
VM
95332013-02-15 Vladimir Makarov <vmakarov@redhat.com>
9534
9535 PR rtl-optimization/56348
9536 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
9537
3fb7c699
SB
95382013-02-15 Steven Bosscher <steven@gcc.gnu.org>
9539
9540 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
9541 (clean_graph_dump_file): Pass base to start_graph_dump.
9542
576fe41a
RH
95432013-02-14 Richard Henderson <rth@redhat.com>
9544
9545 PR target/55941
9546 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
9547
bb3accfa
SB
95482013-02-14 Steven Bosscher <steven@gcc.gnu.org>
9549
9550 * collect2-aix.h: Define F_LOADONLY.
9551
03143140
RB
95522013-02-14 Richard Biener <rguenther@suse.de>
9553
9554 PR lto/50494
9555 * varasm.c (output_constant_def_1): Get the decl representing
9556 the constant as argument.
9557 (output_constant_def): Wrap output_constant_def_1.
9558 (make_decl_rtl): Use output_constant_def_1 with the decl
9559 representing the constant.
9560 (build_constant_desc): Optionally re-use a decl already
9561 representing the constant.
9562 (tree_output_constant_def): Adjust.
9563
8fb06726
DS
95642013-02-14 Dodji Seketeli <dodji@redhat.com>
9565
9566 Fix an asan crash
9567 * asan.c (instrument_builtin_call): Really put the length of the
9568 second source argument into src1_len.
9569
c4bfe8bf
JJ
95702013-02-13 Jakub Jelinek <jakub@redhat.com>
9571
9572 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
9573 argument. If it is false, don't create edge from then_bb to
9574 fallthru_bb.
9575 (insert_if_then_before_iter): Pass true to it.
9576 (build_check_stmt): Pass false to it.
9577 (transform_statements): Flush hash table only on extended basic
9578 block boundaries, rather than at the beginning of every bb.
9579 Don't flush hash table on nonfreeing_call_p calls.
9580 * tree-flow.h (nonfreeing_call_p): New prototype.
9581 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
9582
7afe2801
DM
95832013-02-13 David S. Miller <davem@davemloft.net>
9584
9585 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
9586
70cc3288
VM
95872013-02-13 Vladimir Makarov <vmakarov@redhat.com>
9588
9589 PR target/56184
9590 * ira.c (max_regno_before_ira): Move from ...
9591 (ira): ... here.
9592 (fix_reg_equiv_init): Use max_regno_before_ira instead of
9593 vec_safe_length.
9594
6422242b
JJ
95952013-02-13 Jakub Jelinek <jakub@redhat.com>
9596
9597 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
9598
976a81ee
RB
95992013-02-13 Richard Biener <rguenther@suse.de>
9600
9601 PR lto/56295
9602 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
9603 globals in MEM_REFs.
9604
c1874a87
RB
96052013-02-13 Richard Biener <rguenther@suse.de>
9606
9607 * loop-init.c (loop_optimizer_init): Clear loop state when
9608 re-initializing preserved loops.
9609 * loop-unswitch.c (unswitch_single_loop): Return whether
9610 we unswitched the loop. Do not verify loop state here.
88b97037 9611 (unswitch_loops): When we unswitched a loop discover new loops.
c1874a87 9612
b4ab7d34
KS
96132013-02-13 Kostya Serebryany <kcc@google.com>
9614
88b97037
UB
9615 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
9616 on x86_64 linux.
b4ab7d34
KS
9617 * sanitizer.def: Rename __asan_init to __asan_init_v1.
9618
bdcbe80c
DS
96192013-02-12 Dodji Seketeli <dodji@redhat.com>
9620
9621 Avoid instrumenting duplicated memory access in the same basic block
9622 * Makefile.in (asan.o): Add new dependency on hash-table.h
9623 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
9624 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
9625 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
9626 (free_mem_ref_resources, has_mem_ref_been_instrumented)
9627 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
9628 (get_mem_ref_of_assignment): New functions.
9629 (get_mem_refs_of_builtin_call): Extract from
9630 instrument_builtin_call and tweak a little bit to make it fit with
9631 the new signature.
9632 (instrument_builtin_call): Use the new
9633 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
9634 of is_gimple_builtin_call.
9635 (instrument_derefs, instrument_mem_region_access): Insert the
9636 instrumented memory reference into the hash table.
9637 (maybe_instrument_assignment): Renamed instrument_assignment into
9638 this, and change it to advance the iterator when instrumentation
9639 actually happened and return true in that case. This makes it
9640 homogeneous with maybe_instrument_assignment, and thus give a
9641 chance to callers to be more 'regular'.
9642 (transform_statements): Clear the memory reference hash table
9643 whenever we enter a new BB, when we cross a function call, or when
9644 we are done transforming statements. Use
9645 maybe_instrument_assignment instead of instrumentation. No more
9646 need to special case maybe_instrument_assignment and advance the
9647 iterator after calling it; it's now handled just like
9648 maybe_instrument_call. Update comment.
9649
4861a1f7
RB
96502013-02-13 Richard Biener <rguenther@suse.de>
9651
9652 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
9653 Fix loop discovery code.
9654
1c86bd80
VM
96552013-02-12 Vladimir Makarov <vmakarov@redhat.com>
9656
9657 PR inline-asm/56148
9658 * lra-constraints.c (process_alt_operands): Match early clobber
70cc3288 9659 operand with itself. Check conflicts with earlyclobber only if
1c86bd80
VM
9660 the operand is not reloaded. Prefer to reload conflicting operand
9661 if earlyclobber and matching operands are the same.
9662
7cbda518
RB
96632013-02-12 Richard Biener <rguenther@suse.de>
9664
9665 PR lto/56297
9666 * lto-streamer-out.c (write_symbol): Do not output symbols
9667 for hard register variables.
9668
e68a4ef6
GJL
96692013-02-12 Georg-Johann Lay <avr@gjlay.de>
9670
9671 PR target/54222
9672 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
9673 (umulsidi3_insn, mulsidi3_insn): New insns.
9674
a72d8780 96752013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
2597da22
CL
9676
9677 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
9678 (struct tune_params): Add vec_costs field.
9679 * config/arm/arm.c (arm_builtin_vectorization_cost)
9680 (arm_add_stmt_cost): New functions.
9681 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
9682 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
9683 (arm_default_vec_cost): New struct of type cpu_vec_costs.
9684 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
9685 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
9686 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
9687 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
9688
43320568
RB
96892013-02-12 Richard Biener <rguenther@suse.de>
9690
9691 PR lto/56295
9692 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
9693 decls again if possible.
9694
a011aa39
RB
96952013-02-12 Richard Biener <rguenther@suse.de>
9696
9697 PR middle-end/56288
9698 * tree-ssa.c (verify_ssa_name): Fix check, move
9699 SSA_NAME_IN_FREE_LIST check up.
9700
6da26889
JJ
97012013-02-12 Jakub Jelinek <jakub@redhat.com>
9702 Steven Bosscher <steven@gcc.gnu.org>
9703
9704 PR rtl-optimization/56151
9705 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
9706 equal to op0 or op1, and last_insn pattern is CODE operation
9707 with MEM dest and one of the operands matches that MEM.
9708
f80e0faf
ST
97092013-02-11 Sriraman Tallam <tmsriramgoogle.com>
9710
9711 * doc/extend.texi: Document Function Multiversioning and "default"
9712 parameter string to target attribute.
9713 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
9714 target attribute parameter is "default".
9715 (ix86_compare_version_priority): Remove checks for target attribute.
9716 (ix86_mangle_function_version_assembler_name): Change error to sorry.
9717 Remove check for target attribute equal to NULL. Add assert.
9718 (ix86_generate_version_dispatcher_body): Change error to sorry.
9719
6c59ffd1
IS
97202013-02-11 Iain Sandoe <iain@codesourcery.com>
9721 Jack Howarth <howarth@bromo.med.uc.edu>
9722 Patrick Marlier <patrick.marlier@gmail.com>
9723
9724 PR libitm/55693
9725 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
9726 define ENDFILE_SPEC as TM_DESTRUCTOR.
9727 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
9728
a72d8780 97292013-02-11 Alexander Potapenko <glider@google.com>
6a52ccb3
AP
9730 Jack Howarth <howarth@bromo.med.uc.edu>
9731 Jakub Jelinek <jakub@redhat.com>
9732
9733 PR sanitizer/55617
9734 * config/darwin.c (cdtor_record): Rename ctor_record.
9735 (sort_cdtor_records): Rename sort_ctor_records.
9736 (finalize_dtors): New routine to sort destructors by
9737 priority before use in assemble_integer.
9738 (machopic_asm_out_destructor): Use finalize_dtors if needed.
9739
b63fe007
UB
97402013-02-11 Uros Bizjak <ubizjak@gmail.com>
9741
9742 PR rtl-optimization/56275
9743 * simplify-rtx.c (avoid_constant_pool_reference): Check that
9744 offset is non-negative and less than cmode size before
9745 calling simplify_subreg.
9746
8e89b5b5
RB
97472013-02-11 Richard Biener <rguenther@suse.de>
9748
9749 PR tree-optimization/56264
9750 * cfgloop.h (fix_loop_structure): Adjust prototype.
9751 * loop-init.c (fix_loop_structure): Return the number of
9752 newly discovered loops.
9753 * tree-cfgcleanup.c (repair_loop_structures): When new loops
9754 are discovered, do a full loop-closed SSA rewrite.
9755
b4a4b56d
RB
97562013-02-11 Richard Biener <rguenther@suse.de>
9757
9758 PR tree-optimization/56273
9759 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
9760 first VRP run.
9761 (check_array_ref): Fix missing newline in dumps.
9762 (search_for_addr_array): Likewise.
9763
0c885229
DE
97642013-02-09 David Edelsohn <dje.gcc@gmail.com>
9765
9766 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
9767
59ac9a55
JJ
97682013-02-09 Jakub Jelinek <jakub@redhat.com>
9769
9770 PR target/56256
9771 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
9772
25bb0bb5
VM
97732013-02-08 Vladimir Makarov <vmakarov@redhat.com>
9774
9775 PR rtl-optimization/56246
0c885229 9776 * lra-constraints.c (simplify_operand_subreg): Try to reuse
25bb0bb5
VM
9777 reload pseudo.
9778 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
9779 constraints are satisfied.
9780
a698cc03
JL
97812013-02-08 Jeff Law <law@redhat.com>
9782
9783 PR debug/53948
9784 * emit-rtl.c (reg_is_parm_p): New function.
9785 * regs.h (reg_is_parm_p): New prototype.
9786 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
9787 callee-clobbered registers.
9788
e1122ddd
MM
97892013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9790
9791 PR target/56043
9792 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
9793 If there is no implicit builtin declaration, just return NULL.
9794
19c5f6e6
UB
97952013-02-08 Uros Bizjak <ubizjak@gmail.com>
9796
9797 * config/i386/sse.md (FMAMODEM): New mode iterator.
9798 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
9799 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
9800
2480f2ca 98012013-02-08 Uros Bizjak <ubizjak@gmail.com>
76ef61fb 9802
2480f2ca
UB
9803 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
9804 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
9805 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
9806
98072013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
9808
9809 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
9810 (microblaze*-*-elf): Likewise.
9811 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
9812 LINK_SPEC.
9813 * config/microblaze/microblaze-c.c: Add builtin defines for
9814 _LITTLE_ENDIAN and _BIG_ENDIAN.
9815 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
9816 add to TARGET_DEFAULT flags.
76ef61fb 9817 Expand ASM_SPEC and LINK_SPEC.
2480f2ca
UB
9818 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
9819 * config/microblaze/microblaze.md: Update extendsidi2 and
9820 movdi_internal instructions to use low-order / high-order reg
9821 print_operands.
9822 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
9823 options and inversemask / mask of LITTLE_ENDIAN.
9824 * config/microblaze/t-microblaze: Expand multilib options to
9825 include mlittle-endian (le) and update exceptions patterns.
9826
600a5961
JJ
98272013-02-08 Jakub Jelinek <jakub@redhat.com>
9828
5df81313
JJ
9829 PR rtl-optimization/56195
9830 * lra-constraints.c (get_reload_reg): Don't reuse regs
9831 if they have smaller mode than requested, if they have
9832 wider mode than requested, try to return a SUBREG.
9833
600a5961
JJ
9834 PR tree-optimization/56250
9835 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
9836 if type is unsigned and code isn't MULT_EXPR.
9837
ff544649
GJL
98382013-02-08 Georg-Johann Lay <avr@gjlay.de>
9839
9840 PR tree-optimization/56064
9841 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
9842 bits according to mode.
9843 * fixed-value.h (fixed_from_double_int)
9844 (const_fixed_from_double_int): Adjust comments.
9845
e45cde98
RB
98462013-02-08 Richard Biener <rguenther@suse.de>
9847
9848 PR lto/56231
9849 * lto-streamer.h (struct data_in): Remove current_file, current_line
9850 and current_col members.
9851 * lto-streamer-out.c (lto_output_location): Stream changed bits
9852 en-block for efficiency.
9853 * lto-streamer-in.c (clear_line_info): Remove.
9854 (lto_input_location): Cache current file, line and column
9855 globally via local statics. Read changed bits en-block.
9856 (input_function): Do not call clear_line_info.
9857 (lto_read_body): Likewise.
9858 (lto_input_toplevel_asms): Likewise.
9859
c1ca73d8
MM
98602013-02-08 Michael Matz <matz@suse.de>
9861
9862 PR tree-optimization/52448
9863 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
9864 (nt_call_phase): New static.
9865 (add_or_mark_expr): Only mark accesses with newer phase than any
9866 call seen.
9867 (nonfreeing_call_p): New.
9868 (nt_init_block): Update nt_call_phase, mark blocks as visited.
9869 (nt_fini_block): Keep blocks marked as visited.
9870 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
9871
57548aa2
RB
98722013-02-08 Richard Biener <rguenther@suse.de>
9873
9874 * ira.c (ira): Free broken dominator information.
9875
8e10366f
UB
98762013-02-08 Uros Bizjak <ubizjak@gmail.com>
9877
9878 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
9879
f64fb0fa
MP
98802013-02-08 Marek Polacek <polacek@redhat.com>
9881
8e10366f 9882 * cfgloop.c (verify_loop_structure): Add more checking of headers.
f64fb0fa 9883
0375167b
RB
98842013-02-08 Richard Biener <rguenther@suse.de>
9885
9886 PR middle-end/56181
9887 * cfgloop.h (flow_loops_find): Adjust.
9888 (bb_loop_header_p): Declare.
9889 * cfgloop.c (bb_loop_header_p): New function split out from ...
9890 (flow_loops_find): ... here. Adjust function signature,
9891 support incremental loop structure update.
9892 (verify_loop_structure): Cleanup. Verify a loop is a loop.
9893 * cfgloopmanip.c (fix_loop_structure): Move ...
9894 * loop-init.c (fix_loop_structure): ... here.
9895 (apply_loop_flags): Split out from ...
9896 (loop_optimizer_init): ... here.
9897 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
9898 in incremental mode, only remove dead loops here.
9899
85d768f3
GJL
99002013-02-08 Georg-Johann Lay <avr@gjlay.de>
9901
9902 PR target/54222
9903 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
9904 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
9905 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
9906 (*round<mode>3.libgcc): New insns for fixed-modes.
9907 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
9908 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
9909 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
9910 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
9911 implementations. Define to __builtin_avr_absFX,
9912 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
9913 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
9914 __builtin_avr_countlsFX, respectively.
9915 * config/avr/avr-c.c (target.h): Include it.
9916 (enum avr_builtin_id): New enum.
9917 (avr_resolve_overloaded_builtin): New static function.
9918 (avr_register_target_pragmas): Use it to set
9919 targetm.resolve_overloaded_builtin.
9920 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
9921 tree nodes used by DEF_BUILTIN.
9922 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
9923 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
9924 <AVR_BUILTIN_xxBITS>: Same.
9925
661bc682
RB
99262013-02-08 Richard Biener <rguenther@suse.de>
9927
9928 * cfgloop.c (verify_loop_structure): Properly handle
9929 a loop exiting to another loop header.
9930 * ira-int.h (ira_loops): Remove.
9931 * ira.c (ira_loops): Remove.
9932 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
9933 (do_reload): Use loop_optimizer_finalize.
9934 * ira-build.c (create_loop_tree_nodes): Use get_loops and
9935 number_of_loops to access the loop tree.
9936 (more_one_region_p): Likewise.
9937 (finish_loop_tree_nodes): Likewise.
9938 (rebuild_regno_allocno_maps): Likewise.
9939 (mark_loops_for_removal): Likewise.
9940 (mark_all_loops_for_removal): Likewise.
9941 (remove_unnecessary_regions): Likewise.
9942 (ira_build): Likewise.
9943 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
9944
0d5049b2
RB
99452013-02-08 Richard Biener <rguenther@suse.de>
9946
9947 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
9948 * ipa-pure-const.c (analyze_function): Avoid calling
9949 mark_irreducible_loops twice.
8e10366f 9950 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
0d5049b2 9951
499f32e8
DM
99522013-02-07 David S. Miller <davem@davemloft.net>
9953
9954 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
9955 on 'reg'.
9956 * var-tracking.c (vt_add_function_parameter): Test the presence of
9957 HAVE_window_save properly and do not remap argument registers when
9958 we have a leaf function.
9959
6edc3e32
UB
99602013-02-07 Uros Bizjak <ubizjak@gmail.com>
9961
9962 PR bootstrap/56227
9963 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
9964 instead of "ll".
9965 * config/i386/i386.c (ix86_print_operand): Ditto.
9966
5306401f
VM
99672013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9968
6edc3e32 9969 * lra-constraints.c (process_alt_operands): Fix recently added comment.
5306401f 9970
027ece11
VM
99712013-02-07 Vladimir Makarov <vmakarov@redhat.com>
9972
9973 PR rtl-optimization/56225
9974 * lra-constraints.c (process_alt_operands): Check that reload hard
9975 reg can hold value for strict_low_part.
9976
f980dfdb
JJ
99772013-02-07 Jakub Jelinek <jakub@redhat.com>
9978
9979 PR debug/56154
9980 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
9981 dwarf2out_end_function.
9982 (in_first_function_p, maybe_at_text_label_p,
9983 first_loclabel_num_not_at_text_label): New variables.
9984 (dwarf2out_var_location): In the first function find out
6edc3e32 9985 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
f980dfdb
JJ
9986 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
9987 functions.
9988
73dd3123
EB
99892013-02-07 Eric Botcazou <ebotcazou@adacore.com>
9990
9991 PR rtl-optimization/56178
9992 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
9993 SUBREG of a register. Tidy up related block of code.
9994 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
9995 note if the source is a register or a SUBREG of a register.
9996
e3936f47
JJ
99972013-02-07 Jakub Jelinek <jakub@redhat.com>
9998
9999 PR target/56228
10000 * config/rs6000/rs6000.md (ptrm): New mode attr.
10001 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
10002 call_value_indirect_aix<pttrsize>,
10003 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
10004 m in constraints.
10005
d96d674b
MH
100062013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10007
10008 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
10009 if -bnortl. Convert to strcmp and strncmp.
10010
921f2dee
AM
100112013-02-07 Alan Modra <amodra@gmail.com>
10012
10013 PR target/54009
10014 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
10015 addresses won't wrap when offsetting.
10016 (rs6000_secondary_reload): Provide secondary reloads needed for
10017 wrapping LO_SUM addresses.
10018
d09c7dba
TS
100192013-02-06 Thomas Schwinge <thomas@codesourcery.com>
10020
10021 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
10022 MACH, just __MACH__.
10023
a44bbd48
RB
100242013-02-06 Richard Biener <rguenther@suse.de>
10025
10026 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
10027 instead of calling fix_loop_structure.
10028
6d840d99
JJ
100292013-02-06 Jakub Jelinek <jakub@redhat.com>
10030
10031 PR middle-end/56217
10032 * omp-low.c (use_pointer_for_field): Return false if
10033 lower_send_shared_vars doesn't generate any copy-out code.
10034
0f33baa9
TV
100352013-02-06 Tom de Vries <tom@codesourcery.com>
10036
10037 PR rtl-optimization/56131
10038 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
10039 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
10040 of the label is NULL. Add comment.
10041
11f1e3ab
JJ
100422013-02-05 Jakub Jelinek <jakub@redhat.com>
10043
31502f9f
JJ
10044 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
10045
a74db9bd
JJ
10046 PR sanitizer/55374
10047 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
10048 (STATIC_LIBTSAN_LIBS): Likewise.
10049 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
10050 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
10051 is defined, don't add anything else beyond that.
10052 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
10053 (LINK_COMMAND_SPEC): Use them.
10054
11f1e3ab
JJ
10055 PR tree-optimization/56205
10056 * tree-stdarg.c (check_all_va_list_escapes): Return true if
10057 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
10058 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
10059
14ac6aa2
RB
100602013-02-05 Richard Biener <rguenther@suse.de>
10061
10062 PR tree-optimization/53342
10063 PR tree-optimization/53185
10064 * tree-vectorizer.h (vect_check_strided_load): Remove.
10065 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
10066 not disallow peeling for vectorized strided loads.
10067 (vect_check_strided_load): Make static and simplify.
10068 (vect_analyze_data_refs): Adjust.
10069 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
10070 correctly when vectorizing strided loads.
10071
6f22445a
RB
100722013-02-05 Richard Biener <rguenther@suse.de>
10073
10074 * doc/install.texi: Refer to ISL, not PPL.
10075
39f9719e
JH
100762013-02-05 Jan Hubicka <jh@suse.cz>
10077
ec4224ac
JH
10078 PR tree-optimization/55789
10079 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
10080
100812013-02-05 Jan Hubicka <jh@suse.cz>
10082
10083 PR tree-optimization/55789
39f9719e
JH
10084 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
10085 the dead call anyway.
10086
956d3b33
EB
100872013-02-05 Eric Botcazou <ebotcazou@adacore.com>
10088
10089 PR sanitizer/55374
10090 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
10091
100922013-02-04 Alexander Potapenko <glider@google.com>
10093 Jack Howarth <howarth@bromo.med.uc.edu>
ae526fe5
AP
10094 Jakub Jelinek <jakub@redhat.com>
10095
10096 PR sanitizer/55617
10097 * config/darwin.c (sort_ctor_records): Stabilized qsort
10098 on constructor priority by using original position.
10099 (finalize_ctors): New routine to sort constructors by
10100 priority before use in assemble_integer.
10101 (machopic_asm_out_constructor): Use finalize_ctors if needed.
10102
7ac3af38
JJ
101032013-02-04 Jakub Jelinek <jakub@redhat.com>
10104
10105 PR libstdc++/54314
10106 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
10107 about visibility on artificial decls.
10108 * config/sol2.c (solaris_assemble_visibility): Likewise.
10109
152689dc
KT
101102013-02-04 Kai Tietz <ktietz@redhat.com>
10111
10112 PR target/56186
10113 * config/i386/i386.c (function_value_ms_64): Add additional valtype
10114 argument and improve checking of return-argument types for 16-byte
10115 modes.
10116 (ix86_function_value_1): Add additional valtype argument on call
10117 of function_value_64.
10118 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
10119 handling infunction_value_64 function.
10120
2b5987b5
MGD
101212013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
10122
7ac3af38 10123 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
2b5987b5 10124
14597080
RB
101252013-02-04 Richard Biener <rguenther@suse.de>
10126
10127 PR tree-optimization/56188
10128 * tree-ssa-structalias.c (label_visit): Consider case with
10129 initially non-empty points-to set.
10130 (perform_var_substitution): Dump node mapping and clean up.
10131
ed73881e
RG
101322013-02-04 Richard Guenther <rguenther@suse.de>
10133
10134 PR lto/56168
10135 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
10136 node prevail as last resort.
10137 (lto_symtab_merge_decls): Remove guard on LTRANS here.
6edc3e32 10138 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
ed73881e 10139
139a0707
RB
101402013-02-04 Richard Biener <rguenther@suse.de>
10141
10142 PR tree-optimization/56113
10143 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
10144 Merge into ...
10145 (equiv_class_lookup_or_add): ... this.
10146 (label_visit): Adjust and fix error in previous patch.
10147 (perform_var_substitution): Adjust.
10148
50fe8924
OE
101492013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
10150
10151 * config/sh/divtab.c: Fix formatting and comments throughout the file.
10152 * config/sh/sh4-300.md: Likewise.
10153 * config/sh/sh4a.md: Likewise.
10154 * config/sh/constraints.md: Likewise.
10155 * config/sh/sh.md: Likewise.
10156 * config/sh/netbsd-elf.h: Likewise.
10157 * config/sh/predicates.md: Likewise.
10158 * config/sh/sh-protos.h: Likewise.
10159 * config/sh/ushmedia.h: Likewise.
10160 * config/sh/linux.h: Likewise.
10161 * config/sh/sh.c: Likewise.
10162 * config/sh/superh.h: Likewise.
10163 * config/sh/elf.h: Likewise.
10164 * config/sh/sh4.md: Likewise.
10165 * config/sh/sh.h: Likewise.
10166
1a04ac2b
JDA
101672013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10168
10169 * config/pa/constraints.md: Adjust unused letters. Change "T"
10170 constraint to match_test floating_point_store_memory_operand().
10171 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
10172 (base14_operand): New.
10173 (floating_point_store_memory_operand): New.
10174 (integer_store_memory_operand): Revise to use base14_operand and
10175 reg_plus_base_memory_operand.
10176 (move_dest_operand): Allow symbolic_memory_operands.
10177 (symbolic_memory_operand): Check for LO_SOM.
10178 (symbolic_operand): Change default case to break.
10179 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
10180 CONST_DOUBLE values to be reloaded by putting them into memory when
10181 the destination is a floating point register.
10182 (movdf): Remove code to handle CONST_DOUBLE.
10183 (movsf): Likewise.
10184 (reload_indf_r1): New.
10185 (reload_insf_r1): New.
10186 Consistently use "Q" and "T" constraints with integer and floating
10187 point move instructions, respectively.
10188 (movdi): Remove FAIL.
10189 Change predicate for source operand unamed DImode move from
10190 general_operand to move_src_operand.
10191 (umulsidi3): Change predicate for destination operand to
10192 register_operand.
10193 Likewise for similar unamed patterns.
10194 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
10195 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
10196 (hppa_legitimize_address): Simplify mask calculation.
10197 (pa_emit_move_sequence): Revised handling of secondary reloads from
10198 REG+D addresses for floating point loads and stores. Directly handle
10199 loading CONST0_RTX (mode) to a floating point register.
10200 (pa_secondary_reload): Handle reloading DF and SFmode constant values
10201 to floating point registers. Don't restrict secondary reloads to
10202 floating point registers to integer modes. Revise some comments and
10203 cleanup some code.
10204 (TARGET_LEGITIMATE_ADDRESS_P): Define.
10205 (pa_legitimate_address_p): New.
10206 (pa_legitimize_reload_address): New.
10207 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
10208 (STRICT_REG_OK_FOR_BASE_P): New.
10209 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
10210 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
10211
3bf65591
DE
102122013-02-03 David Edelsohn <dje.gcc@gmail.com>
10213 Andrew Dixie <andrewd@gentrack.com>
10214
10215 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
10216 flag set.
10217
c0a8a3e6
RS
102182013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
10219
10220 * expmed.c (extract_bit_field_1): Pass the full width of the
10221 structure to get_best_reg_extraction_insn.
10222
99113dff
DE
102232013-02-01 David Edelsohn <dje.gcc@gmail.com>
10224
10225 PR target/54601
10226 * configure.ac (use_cxa_atexit): Add AIX.
10227 * configure: Regenerate.
10228
10229 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
10230
ddd84654
JJ
102312013-02-01 Jakub Jelinek <jakub@redhat.com>
10232
10233 PR debug/54793
10234 * final.c (need_profile_function): New variable.
10235 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
10236 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
10237 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
10238 notes, targetm.asm_out.function_prologue doesn't emit anything,
10239 HAVE_prologue and profiler should be emitted before prologue,
10240 set need_profile_function instead of emitting it.
10241 (final_scan_insn): If need_profile_function, emit
10242 profile_function on the first NOTE_INSN_BASIC_BLOCK or
10243 NOTE_INSN_FUNCTION_BEG note.
10244
102452013-02-01 Richard Henderson <rth@redhat.com>
749af8ee
RH
10246
10247 * config/rs6000/rs6000.md (smulditi3): New.
10248 (umulditi3): New.
10249
ff2a9d88
RH
10250 * config/alpha/alpha.md (umulditi3): New.
10251
14d52b90
DE
102522013-02-01 David Edelsohn <dje.gcc@gmail.com>
10253
10254 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
10255 (ASM_OUTPUT_ALIGNED_LOCAL): New.
10256
8c7ca45c
RB
102572013-02-01 Richard Biener <rguenther@suse.de>
10258
10259 PR tree-optimization/56113
10260 * tree-ssa-structalias.c (label_visit): Reduce work for
10261 single-predecessor nodes.
10262
9f419393
EB
102632013-02-01 Eric Botcazou <ebotcazou@adacore.com>
10264
10265 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
10266 range isn't testing for zero.
10267
c5f4be84
SB
102682013-01-31 Steven Bosscher <steven@gcc.gnu.org>
10269
10270 PR middle-end/56113
10271 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
10272
dbdbd982
NC
102732013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
10274 Nick Clifton <nickc@redhat.com>
10275
10276 * config/v850/constraints.md (Q): Define as a memory constraint.
10277 * config/v850/predicates.md (label_ref_operand): New predicate.
10278 (e3v5_shift_operand): New predicate.
10279 (ior_operator): New predicate.
10280 * config/v850/t-v850: Add e3v5 multilib.
10281 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
10282 (v850_gen_movdi): Prototype.
10283 * config/v850/v850.c: Add support for e3v5 architecture.
10284 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
10285 TARGET_V850E_UP.
10286 (construct_save_jarl): Add e3v5 long JARL support.
10287 (v850_adjust_insn_length): New function. Adjust length of call
10288 insns when using e3v5 instructions.
10289 (v850_gen_movdi): New function: Generate instructions to move a
10290 DImode value.
10291 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
10292 (CPP_SPEC): Define __v850e3v5__ as appropriate.
10293 (TARGET_USE_FPU): Enable for e3v5.
10294 (CONST_OK_FOR_W): New macro.
10295 (ADJUST_INSN_LENGTH): Define.
10296 * config/v850/v850.md (UNSPEC_LOOP): Define.
10297 (attr cpu): Add v850e3v5.
10298 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
10299 (movdi): New pattern.
10300 (movdi_internal): New pattern.
10301 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
10302 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
10303 (cstoresf4): Likewise.
10304 (cstoredf4): Likewise.
10305 (insv): New pattern.
10306 (rotlso3_a): New pattern.
10307 (rotlsi3_b): New pattern
10308 (rotlsi3_v850e3v5): New pattern.
10309 (doloop_begin): New pattern.
10310 (fix_loop_counter): New pattern.
10311 (doloop_end): New pattern.
10312 (branch_normal): Add e3v5 long branch support.
10313 (branch_invert): Likewise.
10314 (branch_z_normal): Likewise.
10315 (branch_z_invert): Likewise.
10316 (branch_nz_normal): Likewise.
10317 (branch_nz_invert): Likewise.
10318 (call_internal_short): Add e3v5 register-indirect JARL support.
10319 (call_internal_long): Likewise.
10320 (call_value_internal_short): Likewise.
10321 (call_value_internal_long): Likewise.
10322 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
10323 (mloop): New option.
10324 * config.gcc: Add support for configuring v840e3v5 target.
6edc3e32 10325 * doc/invoke.texi: Document new v850 specific command line options.
dbdbd982 10326
73861a41
PK
103272013-01-31 Paul Koning <ni1d@arrl.net>
10328
10329 PR debug/55059
10330 PR debug/54508
10331 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
10332 children if parent is a class.
10333 (prune_unused_types_prune): Don't add DW_AT_declaration.
10334
e44978dc
RB
103352013-01-31 Richard Biener <rguenther@suse.de>
10336
10337 PR tree-optimization/56157
10338 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
10339 match up operand with SLP child.
10340
90b10dec
JM
103412013-01-31 Jason Merrill <jason@redhat.com>
10342
04d2dadd 10343 PR debug/54410
90b10dec
JM
10344 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
10345 parameters the first time.
10346 (gen_scheduled_generic_parms_dies): Check completeness here.
10347
6e616110
RB
103482013-01-31 Richard Biener <rguenther@suse.de>
10349
10350 PR middle-end/53073
10351 * common.opt (faggressive-loop-optimizations): New flag,
10352 enabled by default.
10353 * doc/invoke.texi (faggressive-loop-optimizations): Document.
10354 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
10355 infer_loop_bounds_from_undefined by it.
10356
636f59cf
RB
103572013-01-31 Richard Biener <rguenther@suse.de>
10358
10359 PR tree-optimization/56150
10360 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
10361 visit virtual operands.
10362 (find_uses_to_rename_bb): Likewise.
10363
103642013-01-31 Richard Biener <rguenther@suse.de>
fcfa87ac
RB
10365
10366 PR tree-optimization/56150
10367 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
10368 mixed store non-store stmts.
10369
32887460
JJ
103702013-01-30 Jakub Jelinek <jakub@redhat.com>
10371
e60e09a0
JJ
10372 PR sanitizer/55374
10373 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
10374 LIBASAN_EARLY_SPEC is defined.
10375 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
10376 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
10377 before %o.
10378 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
10379
32887460
JJ
10380 PR c++/55742
10381 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
10382 invalid args instead of ICEing on it.
10383 (ix86_valid_target_attribute_tree): Return error_mark_node if
10384 ix86_valid_target_attribute_inner_p failed.
10385 (ix86_valid_target_attribute_p): Return false only if
10386 ix86_valid_target_attribute_tree returned error_mark_node. Allow
10387 target("default") attribute.
10388 (sorted_attr_string): Change argument from const char * to tree,
10389 merge in all target attribute arguments rather than just one.
10390 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
10391 instead of free. Avoid using strcat.
10392 (ix86_mangle_function_version_assembler_name): Mangle
10393 target("default") as if no target attribute is present. Adjust
10394 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
10395 instead of xmalloc and XDELETEVEC instead of free.
10396 (ix86_function_versions): Don't return true if one of the decls
10397 doesn't have target attribute. If they don't and one of the decls
10398 is DECL_FUNCTION_VERSIONED, report an error. Adjust
10399 sorted_attr_string caller. Use XDELETEVEC instead of free.
10400 (ix86_supports_function_versions): Remove.
10401 (make_name): Fix up formatting.
10402 (make_dispatcher_decl): Remove resolver_name and its initialization.
10403 Avoid leaking memory.
10404 (is_function_default_version): Return true if there is
10405 target("default") attribute rather than no target attribute at all.
10406 (make_resolver_func): Avoid leaking memory.
10407 (ix86_generate_version_dispatcher_body): Likewise.
10408 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
10409 * target.def (supports_function_versions): Remove.
10410 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
10411 * doc/tm.texi: Regenerated.
10412
73cca0cc
VM
104132013-01-30 Vladimir Makarov <vmakarov@redhat.com>
10414
10415 PR rtl-optimization/56144
10416 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
10417 for values with side effects.
10418
11452e7b
RB
104192013-01-30 Richard Biener <rguenther@suse.de>
10420
10421 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
10422 (sparseset_pop): Likewise.
10423 * cfganal.c (compute_idf): Likewise. Increase work-stack size
10424 to be able to use quick_push in the worker loop.
10425
01cb1ef5
MP
104262013-01-30 Marek Polacek <polacek@redhat.com>
10427
10428 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
10429
e892936e
RB
104302013-01-30 Richard Biener <rguenther@suse.de>
10431
10432 PR lto/56147
6edc3e32 10433 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
e892936e 10434
cc06c01d
GJL
104352013-01-30 Georg-Johann Lay <avr@gjlay.de>
10436
10437 PR tree-optimization/56064
10438 * fixed-value.c (fixed_from_double_int): New function.
10439 * fixed-value.h (fixed_from_double_int): New prototype.
10440 (const_fixed_from_double_int): New static inline function.
10441 * fold-const.c (native_interpret_fixed): New static function.
10442 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
10443 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
10444 (native_encode_fixed): New static function.
10445 (native_encode_expr) <FIXED_CST>: Use it.
10446 (native_interpret_int): Move double_int worker code to...
10447 * double-int.c (double_int::from_buffer): ...this new static method.
10448 * double-int.h (double_int::from_buffer): Prototype it.
10449
d394a308
RB
104502013-01-30 Richard Biener <rguenther@suse.de>
10451
10452 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
10453 New pointer-map and obstack.
10454 (init_alias_vars): Allocate pointer-map and obstack.
10455 (delete_points_to_sets): Free them.
10456 (find_what_var_points_to): Cache result.
10457 (find_what_p_points_to): Adjust for changed interface of
10458 find_what_var_points_to.
10459 (compute_points_to_sets): Likewise.
10460 (ipa_pta_execute): Likewise.
10461
20804d96
RO
104622013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10463
10464 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
10465 * configure: Regenerate.
10466 * config.in: Regenerate.
10467 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
10468 #nobits/#progbits if supported.
10469
a7ad88a2
OE
104702013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
10471
10472 PR target/56121
10473 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
10474 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
10475 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
10476
7af79f92
GY
104772013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10478
91bfca59
OE
10479 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
10480 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
7af79f92 10481
753bcf7b
GY
104822013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10483
91bfca59
OE
10484 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
10485 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
753bcf7b 10486
8cbc2ea8
GY
104872013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10488
91bfca59
OE
10489 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
10490 declaration.
10491 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
10492 * config/arm/cortex-a7.md: New bypasses using
10493 arm_mac_accumulator_is_result.
8cbc2ea8 10494
697a3325
GY
104952013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10496
91bfca59 10497 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
697a3325 10498 (cortex_a7_neon_mla): Likewise.
91bfca59
OE
10499 (cortex_a7_fpfmad): New reservation.
10500 (cortex_a7_fpmacs): Use ffmas and update required units.
10501 (cortex_a7_fpmuld): Update required units and latency.
10502 (cortex_a7_fpmacd): Likewise.
10503 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
10504 (cortex_a7_neon). Likewise.
10505 (bypass) Update participating units.
697a3325 10506
29637783
GY
105072013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
10508
91bfca59
OE
10509 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
10510 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
10511 from fmac to ffma.
10512 * config/arm/vfp11.md (vfp_farith): Use ffmas.
10513 (vfp_fmul): Use ffmad.
10514 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
10515 (cortex_r4_fmacd): Use ffmad.
10516 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
10517 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
10518 (cortex_a9_fmacd): Use ffmad.
10519 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
10520 (cortex_a8_vfp_macd): Use ffmad.
10521 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
10522 (cortex_a5_fpmacd): Use ffmad.
10523 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
10524 (cortex_a15_vfp_macd): Use ffmad.
10525 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
29637783 10526
2ee8a2d5
JM
105272013-01-29 Jason Merrill <jason@redhat.com>
10528
10529 PR libstdc++/54314
10530 * varasm.c (default_assemble_visibility): Don't warn about
10531 visibility on artificial decls.
10532
78d087bc
RB
105332013-01-29 Richard Biener <rguenther@suse.de>
10534
10535 PR tree-optimization/56113
10536 * tree-ssa-structalias.c (equiv_class_lookup): Also return
10537 the bitmap leader.
10538 (label_visit): Free duplicate bitmaps and record the leader instead.
10539 (perform_var_substitution): Adjust.
10540
83ba4d6f
RB
105412013-01-29 Richard Biener <rguenther@suse.de>
10542
10543 PR tree-optimization/55270
10544 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
10545 the CFG, schedule loops for fixup.
10546
66dfe13f
NC
105472013-01-29 Nick Clifton <nickc@redhat.com>
10548
10549 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
10550 SP_REG.
10551
5a579c3b
LE
105522013-01-28 Leif Ekblad <leif@rdos.net>
10553
10554 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
10555 * config/i386/i386.h (TARGET_RDOS): New macro.
10556 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
10557 * config/i386/i386.c (ix86_option_override_internal): For 64bit
10558 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
10559 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
10560 DEFAULT_LARGE_SECTION_THRESHOLD.
10561 * config/i386/i386.md (R14_REG, R15_REG): New constants.
10562 * config/i386/rdos.h: New file.
10563 * config/i386/rdos64.h: New file.
10564
51e44392
BS
105652013-01-28 Bernd Schmidt <bernds@codesourcery.com>
10566
10567 PR other/54814
10568 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
10569 TEST_HARD_REG_BIT.
10570
db1fb332
JJ
105712013-01-28 Jakub Jelinek <jakub@redhat.com>
10572
10573 PR rtl-optimization/56117
10574 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
10575 call cselib_lookup_from_insn on the MEM before calling
10576 add_insn_mem_dependence.
10577
16917761
RB
105782013-01-28 Richard Biener <rguenther@suse.de>
10579
10580 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
10581 to a stmt that didn't have one.
10582 (copy_phis_for_bb): Likewise for PHI arguments.
10583 (copy_debug_stmt): Likewise for debug stmts.
10584
b9fc0497
RB
105852013-01-28 Richard Biener <rguenther@suse.de>
10586
10587 PR tree-optimization/56034
6edc3e32 10588 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
b9fc0497
RB
10589 (partition_builtin_p): Adjust.
10590 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
10591 it is the last partition.
10592 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
10593 up the vertex for the definition.
10594 (classify_partition): Classify whether a partition is a
10595 PKIND_REDUCTION, thus has uses outside of the loop.
10596 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
10597 Merge all PKIND_REDUCTION partitions into the last partition.
10598 (tree_loop_distribution): Seed partitions from reductions as well.
10599
aa710d25
JJ
106002013-01-28 Jakub Jelinek <jakub@redhat.com>
10601
0bfbca58
JJ
10602 PR tree-optimization/56125
10603 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
10604 pow(x,c) into sqrt(x) * powi(x, n/2) or
10605 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
10606 optimizing for size.
10607 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
10608 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
10609 integer.
10610
aa710d25
JJ
10611 PR tree-optimization/56094
10612 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
10613 to UNKNOWN_LOCATION while gimplifying expr.
10614
77dc5297
UB
106152013-01-27 Uros Bizjak <ubizjak@gmail.com>
10616
10617 PR target/56114
10618 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
10619 operand 0 in movabs insn template for -masm=intel asm alternative.
10620 (*movabs<mode>_2): Ditto for operand 1.
10621
0bfbca58 106222013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
fbf0cf90
DH
10623
10624 PR target/54663
10625 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
10626 of microblaze-c.o
10627
0bfbca58 106282013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
6f14eef2
EI
10629
10630 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
10631 tm_file.
10632
0bfbca58 106332013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
706b2314
N
10634
10635 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
10636 Undef to avoid warning.
10637
478f60f9
MH
106382013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
10639
10640 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
10641 * configure: Regenerate.
10642
d7fa6ee2
JJ
106432013-01-25 Jakub Jelinek <jakub@redhat.com>
10644
10645 PR tree-optimization/56098
10646 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
10647 for stmts with volatile ops.
10648 (cond_store_replacement): Don't optimize if assign has volatile ops.
10649 (cond_if_else_store_replacement_1): Don't optimize if either
10650 then_assign or else_assign have volatile ops.
10651 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
10652 volatile ops.
10653
f8fe87bd
GJL
106542013-01-25 Georg-Johann Lay <avr@gjlay.de>
10655
10656 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
10657
28398d0d
GJL
106582013-01-25 Georg-Johann Lay <avr@gjlay.de>
10659
10660 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
10661 missing ':' in asm example.
10662
b7d7d917
TB
106632013-01-25 Tejas Belagod <tejas.belagod@arm.com>
10664
10665 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
10666 entries into lane and laneq entries.
77dc5297
UB
10667 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
10668 Remove AdvSIMD scalar modes.
b7d7d917
TB
10669 (aarch64_sq<r>dmulh_laneq<mode>): New.
10670 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
10671 modes.
10672 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
10673 builtin implementations to relfect changes in RTL in aarch64-simd.md.
10674 * config/aarch64/iterators.md (VCOND): New.
10675 (VCONQ): New.
10676
556f9906
GJL
106772013-01-25 Georg-Johann Lay <avr@gjlay.de>
10678
10679 PR target/54222
10680 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
10681 Add NULL LIBNAME argument to existing definitions.
10682 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
10683 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
10684 * config/avr/avr.c (DEF_BUILTIN): Same.
10685 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
10686 (avr_expand_builtin): Expand to a vanilla call if a libgcc
10687 implementation is available (DECL_ASSEMBLER_NAME is set).
10688 (avr_fold_absfx): New static function.
10689 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
10690 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
10691 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
10692 AVR_BUILTIN_ABSLLK.
10693 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
10694 (abshk, absk, abslk, absllk): Provide as static inline functions.
10695
1f546bbb
MP
106962013-01-25 Marek Polacek <polacek@redhat.com>
10697
10698 PR tree-optimization/56035
10699 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
10700
7e184bd7
UB
107012012-01-24 Uros Bizjak <ubizjak@gmail.com>
10702
10703 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
10704 (*movtf_internal_rex64): Add (!o,C) alternative
10705 (*movxf_internal_rex64): Ditto.
10706 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
10707
f5ba49ac
SM
107082013-01-24 Shenghou Ma <minux.ma@gmail.com>
10709
10710 * doc/invoke.texi: fix typo.
10711 * doc/objc.texi: fix typo.
10712
a6343728
RS
107132013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
10714
10715 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
10716 for the first two alternatives.
10717
cd030c07
DN
107182013-01-24 Diego Novillo <dnovillo@google.com>
10719
77dc5297 10720 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
cd030c07
DN
10721 (ggc-zone.o): Remove.
10722 * configure.ac: Remove option --with-gc.
10723 * configure: Re-generate.
10724 * doc/install.texi: Remove documentation for --with-gc.
10725 * gengtype.c (write_enum_defn): Remove. Update all users.
10726 (write_Types_process_field): Remove generation of gt_e_* argument.
10727 (output_type_enum): Remove. Update all users.
10728 (write_enum_defn): Remove. Update all users.
10729 (enum alloc_zone): Remove. Update all users.
77dc5297 10730 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
cd030c07
DN
10731 * ggc-common.c (ggc_splay_alloc): Remove first argument.
10732 Update all callers.
10733 (struct ptr_data): Remove field TYPE. Update all users.
77dc5297 10734 (gt_pch_note_object): Remove argument TYPE. Update all users.
cd030c07
DN
10735 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
10736 Update all users.
aaf1e810 10737 * ggc-none.c (ggc_alloc_typed_stat): Remove.
cd030c07
DN
10738 (struct alloc_zone): Remove.
10739 (ggc_internal_alloc_zone_stat): Remove.
10740 (ggc_internal_cleared_alloc_zone_stat): Remove.
10741 * ggc-page.c (ggc_alloc_typed_stat): Remove.
77dc5297
UB
10742 (ggc_pch_count_object): Remove last argument. Update all users.
10743 (ggc_pch_alloc_object): Remove last argument. Update all users.
cd030c07
DN
10744 (struct alloc_zone): Remove.
10745 * ggc-zone.c: Remove.
77dc5297 10746 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
cd030c07
DN
10747 (struct alloc_zone): Remove.
10748 (ggc_alloc_typed_stat): Remove.
10749 (ggc_alloc_typed): Remove.
10750 (ggc_splay_alloc): Remove first argument.
10751 (rtl_zone): Remove. Update all users.
10752 (tree_zone): Remove. Update all users.
10753 (tree_id_zone): Remove. Update all users.
10754 (ggc_internal_zone_alloc_stat): Remove. Update all users.
77dc5297 10755 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
cd030c07 10756 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
77dc5297 10757 * tree-ssanames.c: Remove references to zone allocator in comments.
cd030c07 10758
a861ffa4
GJL
107592013-01-24 Georg-Johann Lay <avr@gjlay.de>
10760
10761 * config/avr/avr.c (avr_out_fract): Make register numbers that
10762 might be outside of source operand signed.
10763
593c0ddd
UB
107642013-01-24 Uros Bizjak <ubizjak@gmail.com>
10765
10766 * config/i386/constraints.md (Yf): New constraint.
10767 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
10768 of f constraint to conditionaly disable x87 register preferences.
10769 (*movdf_internal): Ditto.
10770 (*movsf_internal): Ditto.
10771
e86c0101
SB
107722013-01-24 Steven Bosscher <steven@gcc.gnu.org>
10773
10774 PR inline-asm/55934
10775 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
10776 that have operands with impossible constraints.
10777 Add a FIXME for a speed-up opportunity.
10778 * lra-constraints.c (process_alt_operands): Verify that a class
10779 selected from constraints on asms is valid for the operand mode.
10780 (curr_insn_transform): Remove incorrect comment.
10781
f6fee35f
DE
107822013-01-23 David Edelsohn <dje.gcc@gmail.com>
10783
10784 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
10785 TOC operand is a valid symbol ref in the constant pool.
10786
107872013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
c7729184 10788
aaf1e810 10789 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
c7729184 10790
dc62d7d1
GJL
107912013-01-23 Georg-Johann Lay <avr@gjlay.de>
10792
10793 PR target/54222
10794 * config/avr/stdfix.h: New file.
10795 * t-avr (stdfix-gcc.h): New rule to build it.
10796 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
10797
2660d12d
KS
107982013-01-23 Kostya Serebryany <kcc@google.com>
10799
77dc5297
UB
10800 * config/darwin.h: remove dependency on
10801 CoreFoundation (asan on Mac OS).
2660d12d 10802
a70418fc
JJ
108032013-01-23 Jakub Jelinek <jakub@redhat.com>
10804
10805 PR target/49069
10806 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
10807 instead of cmpdi_operand for first comparison operand.
10808 Don't assert that comparison operands aren't both constants.
10809
47876a2a
JW
108102013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
10811
10812 * doc/install.texi (Downloading the Source): Update references to
10813 downloading separate components.
10814
108152013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
4ebd56a5
JW
10816
10817 * doc/extend.texi (__int128): Improve grammar.
10818
47876a2a 108192013-01-22 Uros Bizjak <ubizjak@gmail.com>
32fc5b8a
UB
10820
10821 PR target/56028
10822 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
10823 alternative to (o,r).
10824 (*movdi_internal_rex64): Remove (!o,n) alternative.
10825 (DImode immediate->memory splitter): Remove.
10826 (DImode immediate->memory peephole2): Remove.
10827 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
10828 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
10829 alternative to (!o,*r).
10830 (*movtf_internal_sse): New pattern.
10831 (*movxf_internal_rex64): New pattern.
10832 (*movxf_internal): Disable for TARGET_64BIT.
10833 (*movdf_internal_rex64): Remove (!o,F) alternative.
10834
3a984f10
JJ
108352013-01-22 Jakub Jelinek <jakub@redhat.com>
10836
502498d5
JJ
10837 PR middle-end/56074
10838 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
10839 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
10840 * tree-vect-loop-manip.c (find_loop_location): Also ignore
10841 stmt locations where LOCATION_LOCUS of the stmt location is
10842 UNKNOWN_LOCATION or BUILTINS_LOCATION.
10843
3a984f10
JJ
10844 PR target/55686
10845 * config/i386/i386.md (UNSPEC_STOS): New.
10846 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
10847 *strsetqi_1): Add UNSPEC_STOS.
10848
fa817f7f
PC
108492013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
10850
10851 PR c++/56067
10852 * doc/invoke.texi: Remove left over -Wsynth example.
10853
8f498c1b
JJ
108542013-01-21 Jakub Jelinek <jakub@redhat.com>
10855
10856 PR tree-optimization/56051
10857 * fold-const.c (fold_binary_loc): Don't fold
10858 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
10859 a narrowing conversion, or widening conversion from signed
10860 to unsigned.
10861
47876a2a 108622013-01-21 Uros Bizjak <ubizjak@gmail.com>
35d59da7
UB
10863
10864 PR rtl-optimization/56023
10865 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
10866 dependent on debug instruction.
10867
5b9db1bc
MJ
108682013-01-21 Martin Jambor <mjambor@suse.cz>
10869
10870 PR middle-end/56022
10871 * function.c (allocate_struct_function): Call
10872 invoke_set_current_function_hook earlier.
10873
e8bb7d68
JJ
108742013-01-21 Jakub Jelinek <jakub@redhat.com>
10875
10876 * reload1.c (init_reload): Only initialize reload_obstack
10877 during the first call.
10878
616a4e32
MP
108792013-01-21 Marek Polacek <polacek@redhat.com>
10880
10881 * cfgloop.c (verify_loop_structure): Fix up grammar.
10882
4401981b
YHH
108832013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
10884
10885 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
10886 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
10887
8e87740b
RR
108882013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10889
10890 PR target/56058
10891 * config/arm/marvell-pj4.md: Update copyright year.
10892 Fix up use of alu to alu_reg and simple_alu_imm.
10893
47876a2a 108942013-01-21 Uros Bizjak <ubizjak@gmail.com>
1f6bc337
UB
10895
10896 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
10897
89d56d79
VM
108982013-01-20 Vladimir Makarov <vmakarov@redhat.com>
10899
10900 PR target/55433
10901 * lra-constraints.c (curr_insn_transform): Don't reuse original
1f6bc337 10902 insn for secondary memory move when memory mode should be different.
89d56d79 10903
fe603553
JDA
109042013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10905
10906 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
10907 atomic_storedi_1): New patterns.
10908
01284895
VK
109092013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10910
10911 btver2 pipeline descriptions.
10912 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
10913 descriptions.
10914 * config/i386/i386.md (btver2_decode): New type attributes.
1f6bc337 10915 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
01284895
VK
10916 type attributes.
10917 * config/i386/btver2.md: New file describing btver2 pipelines.
10918
5630e3e1
JL
109192013-01-19 Andrew Pinski <apinski@cavium.com>
10920
10921 PR tree-optimization/52631
10922 * tree-ssa-sccvn (visit_use): Before looking up the original
10923 statement, try looking up the simplified expression.
10924
650ae806
AG
109252013-01-19 Anthony Green <green@moxielogic.com>
10926
10927 * config/moxie/moxie.c (moxie_expand_prologue): Set
10928 current_function_static_stack_size.
10929
e300ec2d
JJ
109302013-01-18 Jakub Jelinek <jakub@redhat.com>
10931
10932 PR tree-optimization/56029
10933 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
10934 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
10935
a3d7af04
SS
109362013-01-18 Sharad Singhai <singhai@google.com>
10937
10938 PR tree-optimization/55995
10939 * dumpfile.c (dump_loc): Print location only if available.
10940 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
10941
66aa7879
VM
109422013-01-18 Vladimir Makarov <vmakarov@redhat.com>
10943
10944 PR target/55433
10945 * lra-constraints.c (curr_insn_transform): Reuse original insn for
10946 secondary memory move.
10947 (inherit_reload_reg): Use rclass instead of cl for
10948 check_secondary_memory_needed_p.
10949
3f0fee7b
JJ
109502013-01-18 Jakub Jelinek <jakub@redhat.com>
10951
10952 PR middle-end/56015
10953 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1f6bc337 10954 the case where writing real complex part of target modifies op1.
3f0fee7b 10955
70c67693
JG
109562013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
10957
10958 * config/aarch64/aarch64-simd.md
10959 (aarch64_vcond_internal<mode>): Handle unordered cases.
10960 * config/aarch64/iterators.md (v_cmp_result): New.
10961
df8de9b3
YHH
109622013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
10963 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10964
10965 * config/arm/marvell-pj4.md: New file.
10966 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
10967 * config/arm/arm.md (generic_sched): Add marvell_pj4.
10968 (generic_vfp): Likewise.
10969 * config/arm/arm-cores.def: Add marvell-pj4.
10970 * config/arm/arm-tune.md: Regenerate.
10971 * config/arm/arm-tables.opt: Regenerate.
10972 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
10973 * doc/invoke.texi: Document marvell-pj4.
10974
be30c356
TB
109752013-01-18 Tejas Belagod <tejas.belagod@arm.com>
10976
10977 * config/aarch64/arm_neon.h: Map scalar types to standard types.
10978
0bfbca58 109792013-01-18 Alexandre Oliva <aoliva@redhat.com>
af6236c1
AO
10980
10981 PR debug/54114
10982 PR debug/54402
10983 PR debug/49888
10984 * var-tracking.c (negative_power_of_two_p): New.
10985 (global_get_addr_cache, local_get_addr_cache): New.
10986 (get_addr_from_global_cache, get_addr_from_local_cache): New.
10987 (vt_canonicalize_addr): Rewrite using the above. Adjust the
10988 heading comment.
10989 (vt_stack_offset_p): Remove.
10990 (vt_canon_true_dep): Always canonicalize loc's address.
10991 (clobber_overlapping_mems): Make sure we have a MEM.
10992 (local_get_addr_clear_given_value): New.
10993 (val_reset): Clear local cached entries.
10994 (compute_bb_dataflow): Create and release the local cache.
10995 Disable duplicate MEMs clobbering.
10996 (emit_notes_in_bb): Clobber MEMs likewise.
10997 (vt_emit_notes): Create and release the local cache.
10998 (vt_initialize, vt_finalize): Create and release the global
10999 cache, respectively.
1f6bc337 11000 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
af6236c1 11001
0bfbca58 110022013-01-18 Alexandre Oliva <aoliva@redhat.com>
7ff37ffa
AO
11003
11004 PR libmudflap/53359
11005 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
11006 not found in the symtab.
11007
0bfbca58 110082013-01-18 Alexandre Oliva <aoliva@redhat.com>
3aa03517 11009
c350ba53 11010 PR debug/56006
3aa03517
AO
11011 PR rtl-optimization/55547
11012 PR rtl-optimization/53827
11013 PR debug/53671
11014 PR debug/49888
11015 * alias.c (offset_overlap_p): New, factored out of...
11016 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
11017 the conservative special case for symbolic constants. Don't
11018 adjust zero sizes on alignment.
11019
c664546f
JL
110202013-01-18 Bernd Schmidt <bernds@codesourcery.com>
11021
11022 PR rtl-optimization/52573
11023 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
11024 REG_UNUSED for the same register.
11025
1bd3f750
MP
110262013-01-17 Richard Biener <rguenther@suse.de>
11027 Marek Polacek <polacek@redhat.com>
11028
11029 PR rtl-optimization/55833
11030 * loop-unswitch.c (unswitch_loops): Move loop verification...
11031 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
11032 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
11033 Set it to true when we're removing a loop from hierarchy tree in
11034 an irreducible region.
11035 (fix_bb_placements): Adjust caller.
11036 (fix_loop_placements): Likewise.
11037
e52a8b71
GJL
110382013-01-17 Georg-Johann Lay <avr@gjlay.de>
11039
11040 * config/avr/builtins.def (DEF_BUILTIN): Factor out
11041 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
11042 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
11043 Remove ID. Adjust comments.
11044 * config/avr/avr-c.c (avr_builtin_name): Remove.
11045 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
11046 * config/avr/avr.c (avr_tolower): New static function.
11047 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
11048 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
11049 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
11050 default expansion.
11051
8386a7ea
JH
110522013-01-17 Jan Hubicka <jh@suse.cz>
11053
610fb637 11054 PR tree-optimization/55273
8386a7ea
JH
11055 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
11056
47876a2a 110572013-01-17 Uros Bizjak <ubizjak@gmail.com>
8abaebcd
UB
11058
11059 PR target/55981
11060 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
11061 store through atomic_store<mode>_1.
11062 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
11063
8222c37e
MJ
110642013-01-17 Martin Jambor <mjambor@suse.cz>
11065
11066 PR tree-optimizations/55264
11067 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
11068 for virtual methods.
11069 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
11070 virtual methods before inlining is over.
11071 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
11072 virtual functions.
11073 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
11074 non-virtual.
11075
79f01c76
VM
110762013-01-16 Vladimir Makarov <vmakarov@redhat.com>
11077
11078 PR rtl-optimization/56005
11079 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
11080 pending reads for prefetch.
11081
d0b6bb1b
IB
110822013-01-16 Ian Bolton <ian.bolton@arm.com>
11083
aaf1e810 11084 * config/aarch64/aarch64.md
d0b6bb1b
IB
11085 (*cstoresi_neg_uxtw): New pattern.
11086 (*cmovsi_insn_uxtw): New pattern.
11087 (*<optab>si3_uxtw): New pattern.
11088 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
11089 (*<optab>si3_insn_uxtw): New pattern.
11090 (*bswapsi2_uxtw): New pattern.
11091
cb9cf03b
RB
110922013-01-16 Richard Biener <rguenther@suse.de>
11093
11094 * tree-inline.c (tree_function_versioning): Remove set but
11095 never used variable.
11096
2cfc56b9
RB
110972013-01-16 Richard Biener <rguenther@suse.de>
11098
11099 PR tree-optimization/55964
11100 * tree-flow.h (rename_variables_in_loop): Remove.
11101 (rename_variables_in_bb): Likewise.
11102 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
11103 (copy_loop_before): Adjust and delete update-ssa status.
11104 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
8abaebcd 11105 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
2cfc56b9
RB
11106 (rename_variables_in_loop): Remove.
11107 (slpeel_update_phis_for_duplicate_loop): Likewise.
11108 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
11109 use available cfg machinery instead of duplicating it.
11110 Update PHI nodes and perform poor-mans SSA update here.
11111 (slpeel_tree_peel_loop_to_edge): Adjust.
11112
c25a0c60
RB
111132013-01-16 Richard Biener <rguenther@suse.de>
11114
11115 PR tree-optimization/54767
11116 PR tree-optimization/53465
11117 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
11118 (vrp_visit_phi_node): For PHI arguments coming via backedges
11119 drop all symbolical range information.
11120 (execute_vrp): Compute backedges.
11121
04b535af
RB
111222013-01-16 Richard Biener <rguenther@suse.de>
11123
11124 * doc/install.texi: Update CLooG and ISL requirements to
11125 0.18.0 and 0.11.1.
11126
8b0a1e0b
CB
111272013-01-16 Christian Bruel <christian.bruel@st.com>
11128
11129 PR target/55301
11130 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
11131 (broken_move): Handle UNSPECV_SP_SWITCH_B.
11132 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
11133
111342013-01-16 DJ Delorie <dj@redhat.com>
11135
11136 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
11137 (UNSPECV_SP_SWITCH_E): New.
11138 (sp_switch_1): Change to an unspec.
11139 (sp_switch_2): Change to an unspec. Don't use post-inc when we
11140 replace $r15.
11141
111422013-01-16 Uros Bizjak <ubizjak@gmail.com>
88e784e6
UB
11143
11144 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
11145 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
11146 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
11147 (expand_mem_thread_fence): Ditto.
11148 (expand_mem_signal_fence): Ditto.
11149 (expand_atomic_load): Ditto.
11150 (expand_atomic_store): Ditto.
11151
0bfbca58 111522013-01-16 Alexandre Oliva <aoliva@redhat.com>
5147bf6a
AO
11153
11154 PR rtl-optimization/55547
11155 PR rtl-optimization/53827
11156 PR debug/53671
11157 PR debug/49888
11158 * alias.c (memrefs_conflict_p): Set sizes to negative after
11159 AND adjustments.
11160
305e3ac1
JJ
111612013-01-15 Jakub Jelinek <jakub@redhat.com>
11162
11163 PR target/55940
11164 * function.c (thread_prologue_and_epilogue_insns): Always
11165 add crtl->drap_reg to set_up_by_prologue.set, even if
11166 stack_realign_drap is false.
11167
f78ac4f2
JBG
111682013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
11169
11170 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
11171 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
11172 *call): Fix indention.
11173
a78a8cc4
TV
111742013-01-15 Tom de Vries <tom@codesourcery.com>
11175
11176 PR target/55876
11177 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
11178 Update comment.
11179
0e80383f
VM
111802013-01-15 Vladimir Makarov <vmakarov@redhat.com>
11181
305e3ac1 11182 PR rtl-optimization/55153
0e80383f
VM
11183 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
11184
207b5956
MJ
111852013-01-15 Martin Jambor <mjambor@suse.cz>
11186
11187 PR tree-optimization/55920
11188 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
11189 accesses as grp_to_be_debug_replaced.
11190
a7818b54
JJ
111912013-01-15 Jakub Jelinek <jakub@redhat.com>
11192
11193 PR tree-optimization/55920
11194 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
11195 there is non-useless type conversion needed from debug rhs to lhs,
11196 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
11197
b0fe107e
JM
111982013-01-15 Joseph Myers <joseph@codesourcery.com>
11199 Mikael Pettersson <mikpe@it.uu.se>
11200
11201 PR target/43961
11202 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
11203 Thumb.
11204 (ASM_OUTPUT_CASE_LABEL): Remove.
11205 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
11206 * final.c (shorten_branches): Update alignment of labels before
11207 jump tables if CASE_VECTOR_SHORTEN_MODE.
11208
34ab62ee
RB
112092013-01-15 Richard Biener <rguenther@suse.de>
11210
11211 PR bootstrap/55961
11212 * system.h: Do not include gmp.h for building host tools.
11213
783a3a05
RB
112142013-01-15 Richard Biener <rguenther@suse.de>
11215
11216 PR middle-end/55882
11217 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
11218 account for bitpos when computing alignment.
11219
3a579e09
VY
112202013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
11221
11222 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
11223 (ix86_target_macros_internal): Likewise.
11224
11225 * config/i386/i386.c (m_CORE2I7): Removed.
11226 (m_CORE_HASWELL): New macro.
11227 (m_CORE_ALL): Likewise.
11228 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
11229 (initial_ix86_arch_features): Likewise.
11230 (processor_target_table): Initializations for Core avx2.
11231 (cpu_names): New names "core-avx2".
11232 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
11233 PROCESSOR_CORE_HASWELL.
11234 (ix86_issue_rate): New case.
11235 (ia32_multipass_dfa_lookahead): Likewise.
11236 (ix86_sched_init_global): Likewise.
11237
11238 * config/i386/i386.h (TARGET_HASWELL): New macro.
11239 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
11240 (processor_type): New PROCESSOR_HASWELL.
11241
955f5a07
JJ
112422013-01-15 Jakub Jelinek <jakub@redhat.com>
11243
ff784829
JJ
11244 PR tree-optimization/55955
11245 * tree-vect-loop.c (vectorizable_reduction): Give up early on
11246 *SHIFT_EXPR and *ROTATE_EXPR codes.
11247
955f5a07
JJ
11248 PR tree-optimization/48766
11249 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
11250 -ftrapv disable -fwrapv.
11251
aeb8b4e9
GJL
112522013-01-14 Georg-Johann Lay <avr@gjlay.de>
11253
11254 PR target/55974
11255 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
11256 etc. to 1 and not to __flash.
11257 Use LL suffix for __INT24_MAX__ with -mint8.
11258 Use ULL suffix for __UINT24_MAX__ with -mint8.
11259
1c494c6a
GJL
112602013-01-14 Georg-Johann Lay <avr@gjlay.de>
11261
11262 * config/avr/avr-arch.h
11263 (struct base_arch_s): Use typedef avr_arch_t instead.
11264 (struct arch_info_s): Use typedef avr_arch_info_t instead.
11265 (struct mcu_type_s): Use typedef avr_mcu_t instead.
11266 * config/avr/avr.c: Same.
11267 * config/avr/avr-devices.c: Same.
11268 * config/avr/driver-avr.c: Same.
11269 * config/avr/gen-avr-mmcu-texi.c: Same.
11270 * config/avr/avr-mcus.def: Adjust comment.
11271
a50344cb
TB
112722013-01-14 Tejas Belagod <tejas.belagod@arm.com>
11273
88e784e6
UB
11274 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
11275 * config/aarch64/iterators.md (VALLDI): New.
a50344cb 11276
47876a2a 112772013-01-14 Uros Bizjak <ubizjak@gmail.com>
e6f0e052
UB
11278 Andi Kleen <ak@linux.intel.com>
11279
11280 PR target/55948
11281 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
11282 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
11283 memmodel flag.
11284
00892272
GJL
112852013-01-14 Georg-Johann Lay <avr@gjlay.de>
11286
11287 * config/avr/avr-stdint.h: Remove trailing blanks.
11288 * config/avr/avr-log.h: Same.
11289 * config/avr/avr-arch.h: Same.
11290 * config/avr/avr-devices.c: Same.
11291 * config/avr/avr-dimode.md: Same.
11292 * config/avr/predicates.md: Same.
11293 * config/avr/avr-c.c: Same. And fix typo.
e6f0e052 11294
00892272
GJL
11295 * config/avr/avr-protos.h: Same. And:
11296 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
11297 (init_cumulative_args): Rename to avr_init_cumulative_args.
11298 (expand_prologue): Rename to avr_expand_prologue.
11299 (expand_epilogue): Rename to avr_expand_epilogue.
11300 (adjust_insn_length): Rename to avr_adjust_insn_length.
11301 (notice_update_cc): Rename to avr_notice_update_cc.
11302 (final_prescan_insn): Rename to avr_final_prescan_insn.
11303 * config/avr/avr.c: Same.
11304 * config/avr/avr.h: Same.
11305 * config/avr/avr.md: Remove trailing blanks.
11306 (prologue): Use avr_expand_prologue.
11307 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
11308
7bb01996
RB
113092013-01-14 Richard Biener <rguenther@suse.de>
11310
11311 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
11312 verify_location, collect_subblocks): New functions.
11313 (verify_gimple_in_cfg): Verify that locations only reference
11314 BLOCKs in the functions BLOCK tree.
11315
2724573f
RB
113162013-01-14 Richard Biener <rguenther@suse.de>
11317
11318 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
11319 PHI argument.
11320 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
11321 unshare reference.
11322 (insert_out_of_ssa_copy_on_edge): Likewise.
11323 (rewrite_close_phi_out_of_ssa): Likewise.
11324 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
11325 debug expressions.
11326 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
11327 propagated constants.
11328 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
11329 can not be shared.
11330
9a0bbab6
GJL
113312013-01-14 Georg-Johann Lay <avr@gjlay.de>
11332
11333 * config/avr/avr-modes.def: Add GPL copyright notice.
11334
45805f17
UB
113352013-01-13 Uros Bizjak <ubizjak@gmail.com>
11336
11337 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
11338 MEMMODEL_MASK to determine memory model.
11339 (atomic_store<mode>): Ditto from operands[2].
11340 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
11341
9d60be38
JJ
113422013-01-13 Jakub Jelinek <jakub@redhat.com>
11343
11344 PR fortran/55935
45805f17 11345 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
9d60be38
JJ
11346 (fold_gimple_assign): Don't call unshare_expr here.
11347 (fold_ctor_reference): Call unshare_expr.
11348
e7f49d92
TG
113492013-01-13 Terry Guo <terry.guo@arm.com>
11350
aaf1e810
EB
11351 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
11352 * doc/fragments.texi: Document MULTILIB_REUSE.
11353 * gcc.c (multilib_reuse): New internal spec.
e7f49d92 11354 (set_multilib_dir): Also search multilib from multilib_reuse.
aaf1e810 11355 * genmultilib (tmpmultilib3): Refactor code.
e7f49d92
TG
11356 (tmpmultilib4): Ditto.
11357 (multilib_reuse): New multilib argument.
11358
fbd03a27
RS
113592013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
11360
11361 * Makefile.in: Update copyright.
11362
b3681f13
TV
113632013-01-12 Tom de Vries <tom@codesourcery.com>
11364
11365 PR middle-end/55890
11366 * calls.c (expand_call): Check if arg_nr is valid.
11367
3f287e4b
MM
113682013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11369
11370 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
11371 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
5bc35113
MM
11372 documentation. Add missing '__' in front of
11373 __builtin_ia32_packssdw256.
3f287e4b 11374
1abcd5eb
AK
113752013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11376
11377 PR target/55719
11378 * config/s390/s390.c (s390_preferred_reload_class): Do not return
11379 NO_REGS for larl operands.
11380 (s390_reload_larl_operand): Use s390_load_address instead of
11381 emit_move_insn.
11382
980d0812
RB
113832013-01-11 Richard Biener <rguenther@suse.de>
11384
11385 * tree-cfg.c (verify_node_sharing_1): Split out from ...
11386 (verify_node_sharing): ... here.
11387 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
11388
7cb9fd07
EB
113892013-01-11 Eric Botcazou <ebotcazou@adacore.com>
11390
11391 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
11392 Substitute TREECHECKING.
11393 * configure: Regenerate.
11394 * Makefile.in (TREECHECKING): New.
11395
47876a2a 113962013-01-11 Richard Guenther <rguenther@suse.de>
c7ab2530
RG
11397
11398 PR tree-optimization/44061
11399 * tree-vrp.c (extract_range_basic): Compute zero as
11400 value-range for __builtin_constant_p of function parameters.
11401
d1e082c2
RS
114022013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
11403
45805f17 11404 Update copyright years.
d1e082c2 11405
f85021b0
VM
114062013-01-10 Vladimir Makarov <vmakarov@redhat.com>
11407
9d60be38 11408 PR rtl-optimization/55672
0160442c
VM
11409 * lra-eliminations.c (mark_not_eliminable): Permit addition with
11410 const to be eliminable.
f85021b0 11411
7a8b1ec4
DE
114122013-01-10 David Edelsohn <dje.gcc@gmail.com>
11413
11414 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
11415 * configure: Regenerate.
11416
ad2e5b71
RB
114172013-01-10 Richard Biener <rguenther@suse.de>
11418
ddf9322d 11419 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
ad2e5b71 11420
ffc5b2bb
RB
114212013-01-10 Richard Biener <rguenther@suse.de>
11422
11423 PR bootstrap/55792
11424 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
11425 locations for virtual PHI arguments.
11426 (rewrite_update_phi_arguments): Likewise.
11427
e1f674e4
JS
114282013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
11429
11430 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
11431 on to assembler.
11432
a57fc743
JJ
114332013-01-10 Jakub Jelinek <jakub@redhat.com>
11434
11435 PR tree-optimization/55921
11436 * tree-complex.c (expand_complex_asm): New function.
11437 (expand_complex_operations_1): Call it for GIMPLE_ASM.
11438
0ff4390d
AK
114392013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11440
11441 PR target/55718
11442 * config/s390/s390.c (s390_symref_operand_p)
11443 (s390_loadrelative_operand_p): Merge the two functions.
11444 (s390_check_qrst_address, print_operand_address): Add parameters
11445 to s390_loadrelative_operand_p invokation.
11446 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
11447 (s390_reload_larl_operand, s390_secondary_reload): Use
11448 s390_loadrelative_operand_p instead of s390_symref_operand_p.
11449 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
11450
6f557e0e
MS
114512013-01-09 Mike Stump <mikestump@comcast.net>
11452
11453 * dse.c (record_store): Remove unnecessary assert.
11454
7770c9e9
JH
114552013-01-09 Jan Hubicka <jh@suse.cz>
11456
11457 PR tree-optimization/55569
11458 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
11459 * cfgloop.h (scale_loop_profile): Likewise.
11460
a19b1432
JH
114612013-01-09 Jan Hubicka <jh@suse.cz>
11462
11463 PR lto/45375
ddf9322d
UB
11464 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
11465 functions.
a19b1432
JH
11466 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
11467
9a002da8
RS
114682013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
11469
11470 PR middle-end/55114
11471 * expr.h (maybe_emit_group_store): Declare.
11472 * expr.c (maybe_emit_group_store): New function.
11473 * builtins.c (expand_builtin_int_roundingfn): Call it.
11474 (expand_builtin_int_roundingfn_2): Likewise.
11475
511dcace
VM
114762013-01-09 Vladimir Makarov <vmakarov@redhat.com>
11477
e1f2b729 11478 PR rtl-optimization/55829
511dcace
VM
11479 * lra-constraints.c (match_reload): Add code for absent output.
11480 (curr_insn_transform): Add code for reloads of matched inputs
11481 without output.
11482
7b0fe4f4
UB
114832013-01-09 Uros Bizjak <ubizjak@gmail.com>
11484
11485 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
11486 attribute of movddup insn to DF.
11487 (*vec_interleave_lowv2df): Ditto.
11488 (vec_dupv2df): Ditto.
11489
870ca331
JH
114902013-01-09 Jan Hubicka <jh@suse.cz>
11491
11492 PR tree-optimiation/55875
11493 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
11494 EVERY_ITERATION parameter.
7b0fe4f4 11495 (number_of_iterations_exit): Check if exit is executed every iteration.
870ca331
JH
11496 (idx_infer_loop_bounds): Similarly here.
11497 (n_of_executions_at_most): Simplify
11498 to only test for cases where statement is dominated by the
7b0fe4f4 11499 particular bound; handle correctly the "postdominance" test.
870ca331
JH
11500 (scev_probably_wraps_p): Use max loop iterations info
11501 as a global bound first.
11502
6f575fe4 115032013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
3cd232b5
NDD
11504 Nick Clifton <nickc@redhat.com>
11505
11506 * config/v850/v850.md (cbranchsf4): New pattern.
11507 (cstoresf4): New pattern.
11508 (cbranchdf4): New pattern.
11509 (cstoredf4): New pattern.
11510 (movsicc): Disallow floating point comparisons.
11511 (cmpsf_le_insn): Fix order of operators.
11512 (cmpsf_lt_insn): Likewise.
11513 (cmpsf_eq_insn): Likewise.
11514 (cmpdf_le_insn): Likewise.
11515 (cmpdf_lt_insn): Likewise.
11516 (cmpdf_eq_insn): Likewise.
11517 (cmpsf_ge_insn): Use LE comparison.
11518 (cmpdf_ge_insn): Likewise.
11519 (cmpsf_gt_insn): Use LT comparison.
11520 (cmpdf_gt_insn): Likewise.
11521 (cmpsf_ne_insn): Delete pattern.
11522 (cmpdf_ne_insn): Delete pattern.
11523 * config/v850/v850.c (v850_gen_float_compare): Use
11524 gen_cmpdf_eq_insn for NE comparison.
11525 (v850_float_z_comparison_operator)
11526 (v850_float_nz_comparison_operator): Move from here ...
11527 * config/v850/predicates.md: ... to here. Move GT and GE
11528 comparisons into v850_float_z_comparison_operator.
11529 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
11530 Delete prototype.
11531 (v850_float_nz_comparison_operator): Likewise.
11532
f0d54148
JDA
115332013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11534
11535 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
11536 with calls to gen_insvsi/gen_insvdi.
11537
8f01beca
VK
115382013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11539
11540 * config/i386/i386.c (initial_ix86_tune_features): Set up
11541 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
11542
2aa579ad
JJ
115432013-01-09 Steven Bosscher <steven@gcc.gnu.org>
11544 Jakub Jelinek <jakub@redhat.com>
11545
11546 PR tree-optimization/48189
11547 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
11548 If nitercst is 0, don't predict the exit edge.
11549
6edc3e32 115502013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
01a3a324
N
11551
11552 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
11553 in asm_fprintf with reg_names.
11554 (aarch64_print_operand_address): Likewise.
11555 (aarch64_return_addr): Likewise.
11556 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
11557
f6f94d94
JDA
115582013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11559
11560 * config/pa/pa.h (VAL_U6_BITS_P): Define.
11561 (INT_U6_BITS): Likewise.
11562 * config/pa/predicates.md (uint6_operand): New predicate.
11563 (shift5_operand, shift6_operand): Likewise.
11564 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
11565 arith32_operand.
11566 (lshrdi3): Use shift6_operand.
11567 (shrpsi4, shrpdi4): New insn patterns.
11568 (extzv): Delete expander.
11569 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
11570 predicates in unamed zero extract patterns. Tighten common constraint.
11571 (extv): Delete expander.
11572 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
11573 predicates in unamed sign extract patterns. Tighten common constraint.
11574 (insv): Delete expander.
11575 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
11576 predicates in unamed insert patterns. Tighten common constraint.
11577 Change uint32_operand predicate to uint6_operand predicate in unamed
11578 DImode pattern to insert constant values of type 1...1xxxx.
11579
36b72910
JH
115802013-01-04 Jan Hubicka <jh@suse.cz>
11581
11582 PR tree-optimization/55823
7b0fe4f4
UB
11583 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
11584 issue.
36b72910 11585
47876a2a 115862013-01-08 Jakub Jelinek <jakub@redhat.com>
c6d851b9
JJ
11587 Uros Bizjak <ubizjak@gmail.com>
11588
11589 PR rtl-optimization/55845
11590 * df-problems.c (can_move_insns_across): Stop scanning at
11591 volatile_insn_p source instruction or give up if
11592 across_from .. across_to range contains any volatile_insn_p
11593 instructions.
11594
4369c11e
TB
115952013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11596
7b0fe4f4
UB
11597 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
11598 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
11599 Declare.
4369c11e 11600 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
7b0fe4f4 11601 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
4369c11e 11602
aeb7e7c1
JJ
116032013-01-08 Jakub Jelinek <jakub@redhat.com>
11604
11605 PR fortran/55341
11606 * asan.c (asan_clear_shadow): New function.
11607 (asan_emit_stack_protection): Use it.
11608
a02ad1aa
TB
116092013-01-08 Tejas Belagod <tejas.belagod@arm.com>
11610
11611 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
11612 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
11613 with tab instead of space.
11614
f90d87f5
NC
116152013-01-08 Nick Clifton <nickc@redhat.com>
11616
11617 * config/rl78/rl78.c (rl78_expand_prologue): Always select
11618 register bank 0 at the start of an interrupt handler.
83ffd964
NC
11619 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
11620 MDBH registers.
f90d87f5 11621
385eb93d
JG
116222013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11623
11624 * config/aarch64/aarch64-simd.md
11625 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
11626 (aarch64_simd_bsl): Likewise.
11627 (aarch64_vcond_internal<mode>): Likewise.
11628 (vcond<mode><mode>): Likewise.
11629 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
11630 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
11631
4dcd1054
JG
116322013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
11633
11634 * config/aarch64/aarch64-builtins.c
11635 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
11636
4267a4a6
MJ
116372013-01-08 Martin Jambor <mjambor@suse.cz>
11638
11639 PR debug/55579
11640 * tree-sra.c (analyze_access_subtree): Return true also after
11641 potentially creating a debug-only replacement.
11642
5f4e6de3
JJ
116432013-01-08 Jakub Jelinek <jakub@redhat.com>
11644
3138f224
JJ
11645 PR middle-end/55890
11646 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
11647
5f4e6de3
JJ
11648 PR tree-optimization/54120
11649 * tree-vrp.c (range_fits_type_p): Don't allow
11650 src_precision < precision from signed vr to unsigned_p
11651 if vr->min or vr->max is negative.
11652 (simplify_float_conversion_using_ranges): Test can_float_p
11653 against CODE_FOR_nothing.
11654
f3ef18ff
JJ
116552013-01-08 Jakub Jelinek <jakub@redhat.com>
11656 Richard Biener <rguenther@suse.de>
11657
11658 PR middle-end/55851
11659 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
11660 types instead of just INTEGER_TYPE types.
11661
25c210f9
MK
116622013-01-07 Mark Kettenis <kettenis@openbsd.org>
11663
11664 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
11665 TF_SIZE): Define.
f90d87f5 11666
81826a7b
SE
116672013-01-07 Steve Ellcey <sellcey@mips.com>
11668
11669 PR target/42661
11670 * config/mips/mips.opt: Change mad to mmad to match documentation.
11671
35678514
GJL
116722013-01-07 Georg-Johann Lay <avr@gjlay.de>
11673
11674 PR target/55897
11675 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
11676 .progmemx.data now.
11677
e5669488
GJL
116782013-01-07 Georg-Johann Lay <avr@gjlay.de>
11679
11680 PR target/55897
11681 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
11682 (avr_addrspace_t): Add .section_name field.
11683 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
11684 array size.
11685 (avr_addrspace): Same. Initialize .section_name. Remove last
11686 NULL entry. Put __memx into .progmemx.data.
11687 (progmem_section_prefix): Remove.
11688 (avr_asm_init_sections): No need to initialize progmem_section.
11689 (avr_asm_named_section): Use avr_addrspace[].section_name to get
11690 section name prefix.
11691 (avr_asm_select_section): Ditto. And use get_unnamed_section to
11692 retrieve the progmem section.
11693 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
11694 boundary to run over avr_addrspace[].
11695 (avr_register_target_pragmas): Ditto.
11696
656e6f37
JJ
116972013-01-06 Jakub Jelinek <jakub@redhat.com>
11698
11699 * varasm.c (output_constant_def_contents): For asan_protect_global
11700 protected strings, adjust DECL_ALIGN if needed, before testing for
11701 anchored symbols.
11702 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
11703 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
11704 normal decls.
11705 (output_object_block): For asan protected decls, emit asan padding
11706 after their contents.
11707 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
11708 (asan_finish_file): Test it here instead.
11709
6edc3e32
UB
117102013-01-07 Nick Clifton <nickc@redhat.com>
11711 Matthias Klose <doko@debian.org>
11712 Doug Kwan <dougkwan@google.com>
11713 H.J. Lu <hongjiu.lu@intel.com>
b352afba
NC
11714
11715 PR driver/55470
11716 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
11717
11718 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
11719
11720 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
11721
7b0fe4f4 11722 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
b352afba
NC
11723
11724 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
11725
2a095093
GJL
117262013-01-07 Georg-Johann Lay <avr@gjlay.de>
11727
f3b503f4 11728 PR target/54461
2a095093
GJL
11729 * doc/install.texi (Cross-Compiler-Specific Options): Document
11730 --with-avrlibc.
11731
383f9b34
TB
117322013-01-07 Tejas Belagod <tejas.belagod@arm.com>
11733
11734 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
11735 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
11736 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
11737 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
11738 vqmovun_high_s64): Fix source operand number and update copyright.
11739
3626621a
RB
117402013-01-07 Richard Biener <rguenther@suse.de>
11741
11742 PR middle-end/55890
11743 * gimple.h (gimple_call_builtin_p): New overload.
11744 * gimple.c (validate_call): New function.
11745 (gimple_call_builtin_p): Likewise.
11746 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
11747 Use gimple_call_builtin_p.
11748 (find_func_clobbers): Likewise.
11749 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
11750 (strlen_optimize_stmt): Likewise.
11751
8b2ea410
JG
117522013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11753
11754 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
11755 (vld1q_dup_*): Likewise.
11756 (vld1_*): Likewise.
11757 (vld1q_*): Likewise.
11758 (vld1_lane_*): Likewise.
11759 (vld1q_lane_*): Likewise.
11760
9713d329
RB
117612013-01-07 Richard Biener <rguenther@suse.de>
11762
11763 * lto-streamer.h (LTO_minor_version): Bump to 2.
11764
3520f7cc
JG
117652013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
11766
11767 * config/aarch64/aarch64-protos.h
11768 (aarch64_const_double_zero_rtx_p): Rename to...
11769 (aarch64_float_const_zero_rtx_p): ...this.
11770 (aarch64_float_const_representable_p): New.
11771 (aarch64_output_simd_mov_immediate): Likewise.
11772 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
11773 move immediate case.
11774 * config/aarch64/aarch64.c
11775 (aarch64_const_double_zero_rtx_p): Rename to...
11776 (aarch64_float_const_zero_rtx_p): ...this.
11777 (aarch64_print_operand): Allow printing of new constants.
11778 (aarch64_valid_floating_const): New.
11779 (aarch64_legitimate_constant_p): Check for valid floating-point
11780 constants.
11781 (aarch64_simd_valid_immediate): Likewise.
11782 (aarch64_vect_float_const_representable_p): New.
11783 (aarch64_float_const_representable_p): Likewise.
11784 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
11785 (aarch64_output_simd_mov_immediate): New.
11786 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
11787 (*movdf_aarch64): Likewise.
11788 * config/aarch64/constraints.md (Ufc): New.
11789 (Y): call aarch64_float_const_zero_rtx.
11790 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
11791
e167c04d
RB
117922013-01-07 Richard Biener <rguenther@suse.de>
11793
11794 PR tree-optimization/55888
11795 PR tree-optimization/55862
11796 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
11797 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
11798 not if it is contained therein.
11799
0139aaab
GJL
118002013-01-07 Georg-Johann Lay <avr@gjlay.de>
11801
11802 * config/avr/t-avr: Typo.
11803
4a176b23
GJL
118042013-01-07 Georg-Johann Lay <avr@gjlay.de>
11805
11806 PR55243
11807 * config/avr/t-avr: Don't automatically rebuild
11808 $(srcdir)/config/avr/t-multilib
11809 $(srcdir)/config/avr/avr-tables.opt
11810 $(srcdir)/doc/avr-mmcu.texi
11811 (avr-mcus): New phony target to build them on request.
11812 (s-avr-mlib, s-avr-mmcu-texi): Remove.
11813 * avr/avr-mcus.def: Adjust comments.
11814
c7afdc98
UB
118152013-01-07 Uros Bizjak <ubizjak@gmail.com>
11816
11817 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
11818
1ab05c31
RS
118192013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11820
11821 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
11822
488e3acc
RS
118232013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11824
11825 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
11826
a89599d2
DE
118272013-01-05 David Edelsohn <dje.gcc@gmail.com>
11828
11829 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
11830 to generate profiling.
11831 * config/rs6000/aix64.h (LIB_SPEC): Same.
11832
70f09188
AP
118332013-01-04 Andrew Pinski <apinski@cavium.com>
11834
11835 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
11836 New function.
11837 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
11838
918d445f
UB
118392013-01-04 Uros Bizjak <ubizjak@gmail.com>
11840
11841 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
11842 unconditionally.
11843 (ix86_expand_move): Ditto.
11844 (ix86_zero_extend_to_Pmode): Ditto.
11845 (ix86_expand_call): Ditto.
11846 (ix86_expand_special_args_builtin): Ditto.
11847 (ix86_expand_builtin): Ditto.
11848
361618ec
RB
118492013-01-04 Richard Biener <rguenther@suse.de>
11850
11851 PR tree-optimization/55862
11852 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
11853 translating them through PHI nodes.
11854
87eab554
MJ
118552013-01-04 Martin Jambor <mjambor@suse.cz>
11856
11857 PR tree-optimization/55755
11858 * tree-sra.c (sra_modify_assign): Do not check that an access has no
11859 children when trying to avoid producing a VIEW_CONVERT_EXPR.
11860
33879b9f
MP
118612013-01-04 Marek Polacek <polacek@redhat.com>
11862
11863 PR middle-end/55859
11864 * opts.c (default_options_optimization): Clarify error message.
11865
3068819a
RB
118662013-01-04 Richard Biener <rguenther@suse.de>
11867
11868 PR middle-end/55863
11869 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
11870 reassociation.
11871
0e4ae794
JDA
118722013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11873
11874 PR target/53789
11875 * config/pa/pa.md (movsi): Revert previous change.
e58d2e48
JDA
11876 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
11877 references.
0e4ae794 11878
65c88cef
RH
118792013-01-03 Richard Henderson <rth@redhat.com>
11880
11881 * config/i386/i386.c (ix86_expand_move): Always assign to op1
11882 after eliminating TLS symbols.
11883
8ac16127
MG
118842013-01-03 Marc Glisse <marc.glisse@inria.fr>
11885
11886 PR bootstrap/50167
11887 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
11888 * graphite-poly.c (debug_gmp_value): Likewise.
11889
bb664f09
UB
118902013-01-03 Uros Bizjak <ubizjak@gmail.com>
11891
11892 PR target/55712
11893 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
11894 selected code model, define __code_mode_small__, __code_model_medium__,
11895 __code_model_large__, __code_model_32__ or __code_model_kernel__.
11896 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
11897 xchg temporary register with %k. Declare temporary register as
11898 early clobbered.
11899 [__x86_64__]: For medium and large code models, preserve %rbx register.
11900
bcf1ef00
RB
119012013-01-03 Richard Biener <rguenther@suse.de>
11902
0506634a 11903 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
bcf1ef00
RB
11904 (dump_subscript): Adjust.
11905 (finalize_ddr_dependent): Do not dump redundant info.
11906 (analyze_siv_subscript): Adjust.
11907 (subscript_dependence_tester): Likewise.
11908 (compute_affine_dependence): Likewise.
11909
59fd17e3
RB
119102013-01-03 Richard Biener <rguenther@suse.de>
11911
11912 Revert
11913 2013-01-03 Richard Biener <rguenther@suse.de>
11914
11915 PR tree-optimization/55857
11916 * tree-vect-stmts.c (vectorizable_load): Do not setup
11917 re-alignment for invariant loads.
11918
11919 2013-01-02 Richard Biener <rguenther@suse.de>
11920
11921 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 11922 invariant load do not generate a vector load from the scalar location.
59fd17e3 11923
595c2679
RB
119242013-01-03 Richard Biener <rguenther@suse.de>
11925
11926 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
11927 for not vectorizing.
11928 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
11929 not build INDIRECT_REFs, call get_name once only.
11930 (vect_create_data_ref_ptr): Likewise. Dump base object kind
11931 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
11932
90bb7d7a
RB
119332013-01-03 Richard Biener <rguenther@suse.de>
11934
11935 PR tree-optimization/55857
11936 * tree-vect-stmts.c (vectorizable_load): Do not setup
11937 re-alignment for invariant loads.
11938
f09b77ca
RB
119392013-01-03 Richard Biener <rguenther@suse.de>
11940
11941 PR lto/55848
11942 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
11943 prefer a built-in decl.
11944
3461a16e
JJ
119452013-01-03 Jakub Jelinek <jakub@redhat.com>
11946
df8e2b4f
JJ
11947 * gcc.c (process_command): Update copyright notice dates.
11948 * gcov.c (print_version): Likewise.
11949 * gcov-dump.c (print_version): Likewise.
11950
3461a16e
JJ
11951 PR rtl-optimization/55838
11952 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
11953 iv0.step, iv1.step and step.
11954
8b5546d6
JJ
119552013-01-03 Jakub Jelinek <jakub@redhat.com>
11956 Marc Glisse <marc.glisse@inria.fr>
11957
11958 PR tree-optimization/55832
11959 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
11960 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
11961 integer_{one,zero}_node.
11962
8ab1d2e9
JJ
119632013-01-03 Jakub Jelinek <jakub@redhat.com>
11964
11965 PR debug/54402
11966 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
11967 * var-tracking.c (reverse_op): Don't add reverse ops to
11968 VALUEs that have already
0506634a 11969 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
8ab1d2e9 11970
5b9ad1d4
GP
119712013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
11972
11973 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
11974
e25a6711
TJ
119752013-01-02 Teresa Johnson <tejohnson@google.com>
11976
11977 * dumpfile.c (dump_loc): Print filename with location.
11978 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
11979 new location_t parameter to emit complete unroll message with
11980 new dump framework.
11981 (canonicalize_loop_induction_variables): Compute loops location
11982 and pass to try_unroll_loop_completely.
11983 * loop-unroll.c (report_unroll_peel): New function.
11984 (peel_loops_completely): Use new dump format with location
11985 for main dumpfile message, and invoke report_unroll_peel on success.
11986 (decide_unrolling_and_peeling): Ditto.
11987 (decide_peel_once_rolling): Remove old dumpfile message subsumed
11988 by report_unroll_peel.
11989 (decide_peel_completely): Ditto.
11990 (decide_unroll_constant_iterations): Ditto.
11991 (decide_unroll_runtime_iterations): Ditto.
11992 (decide_peel_simple): Ditto.
11993 (decide_unroll_stupid): Ditto.
11994 * cfgloop.c (get_loop_location): New function.
11995 * cfgloop.h (get_loop_location): Declare.
11996
77878621
ST
119972013-01-02 Sriraman Tallam <tmsriram@google.com>
11998
11999 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
12000 NULL.
12001
9e65d03e
JDA
120022013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12003
12004 PR middle-end/55198
12005 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
12006 BLKmode objects when EXPAND_MEMORY is specified.
12007
6a7da30f
ST
120082013-01-02 Sriraman Tallam <tmsriram@google.com>
12009
12010 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
12011 in loop predicate.
12012 (fold_builtin_cpu): Do not share cpu model decls across statements.
12013
e78167f2
JM
120142013-01-02 Jason Merrill <jason@redhat.com>
12015
12016 PR c++/55804
12017 * tree.c (build_array_type_1): Revert earlier change.
12018
8c075fb4
YZ
120192013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
12020
12021 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
12022 "cortex-a57".
12023 * config/aarch64/aarch64-tune.md: Re-generate.
12024
0682ed3e
RB
120252013-01-02 Richard Biener <rguenther@suse.de>
12026
12027 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
0506634a 12028 invariant load do not generate a vector load from the scalar location.
0682ed3e 12029
b8f6a302
RB
120302013-01-02 Richard Biener <rguenther@suse.de>
12031
12032 PR bootstrap/55784
12033 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
12034 * configure: Regenerate.
12035
04b80dbb
RS
120362013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12037
12038 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
12039 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
12040 (expand_builtin_int_roundingfn_2): Keep the original target around
12041 for the fallback case.
12042
635b0b0c
RS
120432013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
12044
12045 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
12046 to be clear for sign changes.
12047
42d57399
JH
120482013-01-01 Jan Hubicka <jh@suse.cz>
12049
12050 * ipa-inline-analysis.c: Fix formatting.
12051
5bb6669d
JJ
120522013-01-01 Jakub Jelinek <jakub@redhat.com>
12053
12054 PR tree-optimization/55831
12055 * tree-vect-loop.c (get_initial_def_for_induction): Use
12056 gsi_after_labels instead of gsi_start_bb.
ad41bd84 12057\f
86a2db33 12058Copyright (C) 2013 Free Software Foundation, Inc.
ad41bd84
JM
12059
12060Copying and distribution of this file, with or without modification,
12061are permitted in any medium without royalty provided the copyright
12062notice and this notice are preserved.